Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@maggioli-design-system/mds-accordion-item

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maggioli-design-system/mds-accordion-item - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

dist/documentation.d.ts

2

dist/cjs/loader.cjs.js

@@ -8,3 +8,3 @@ 'use strict';

/*
Stencil Client Patch Esm v2.22.2 | MIT Licensed | https://stenciljs.com
Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
*/

@@ -11,0 +11,0 @@ const patchEsm = () => {

@@ -8,3 +8,3 @@ 'use strict';

/*
Stencil Client Patch Browser v2.22.2 | MIT Licensed | https://stenciljs.com
Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
*/

@@ -11,0 +11,0 @@ const patchBrowser = () => {

@@ -7,3 +7,3 @@ {

"name": "@stencil/core",
"version": "2.22.2",
"version": "2.22.3",
"typescriptVersion": "4.9.4"

@@ -10,0 +10,0 @@ },

@@ -9,7 +9,9 @@ const hash = (s) => {

const unslugName = (name) => {
return name.split('/').slice(-1).pop().replace(/-/g, ' ');
var _a, _b, _c;
return (_c = (_b = (_a = name.split('/')) === null || _a === void 0 ? void 0 : _a.slice(-1).pop()) === null || _b === void 0 ? void 0 : _b.replace(/-/g, ' ')) !== null && _c !== void 0 ? _c : name;
};
const setAttributeIfEmpty = (element, attribute, value) => {
var _a;
if (element.hasAttribute(attribute)) {
return element.getAttribute(attribute);
return (_a = element.getAttribute(attribute)) !== null && _a !== void 0 ? _a : '';
}

@@ -16,0 +18,0 @@ element.setAttribute(attribute, value);

@@ -34,3 +34,3 @@ export class KeyboardManager {

this.detachEscapeBehavior = () => {
this.escapeCallback = null;
this.escapeCallback = () => { return; };
if (typeof window !== undefined) {

@@ -37,0 +37,0 @@ window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this));

@@ -40,3 +40,3 @@ import miBaselineKeyboardArrowUp from '@icon/mi/baseline/keyboard-arrow-up.svg';

"original": "TypographyTitleType",
"resolved": "\"action\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\"",
"resolved": "\"action\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | undefined",
"references": {

@@ -64,3 +64,3 @@ "TypographyTitleType": {

"original": "boolean",
"resolved": "boolean",
"resolved": "boolean | undefined",
"references": {}

@@ -67,0 +67,0 @@ },

@@ -5,3 +5,3 @@ import { p as promiseResolve, b as bootstrapLazy } from './index-54e481e6.js';

/*
Stencil Client Patch Esm v2.22.2 | MIT Licensed | https://stenciljs.com
Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
*/

@@ -8,0 +8,0 @@ const patchEsm = () => {

@@ -5,3 +5,3 @@ import { p as promiseResolve, b as bootstrapLazy } from './index-54e481e6.js';

/*
Stencil Client Patch Browser v2.22.2 | MIT Licensed | https://stenciljs.com
Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
*/

@@ -8,0 +8,0 @@ const patchBrowser = () => {

{
"timestamp": "2023-03-14T15:08:01",
"timestamp": "2023-04-14T10:13:20",
"compiler": {

@@ -82,5 +82,5 @@ "name": "node",

"./dist/mds-accordion-item/p-50ea2036.system.js",
"./dist/mds-accordion-item/p-94315af6.system.js",
"./dist/mds-accordion-item/p-b5a1441d.js",
"./dist/mds-accordion-item/p-d2c5ce30.entry.js",
"./dist/mds-accordion-item/p-f8b9f469.system.js",
"./www/build/index.esm.js",

@@ -92,5 +92,5 @@ "./www/build/mds-accordion-item.esm.js",

"./www/build/p-50ea2036.system.js",
"./www/build/p-94315af6.system.js",
"./www/build/p-b5a1441d.js",
"./www/build/p-d2c5ce30.entry.js",
"./www/build/p-f8b9f469.system.js"
"./www/build/p-d2c5ce30.entry.js"
]

@@ -299,3 +299,3 @@ },

"original": "TypographyTitleType",
"resolved": "\"action\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\"",
"resolved": "\"action\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | undefined",
"references": {

@@ -324,3 +324,3 @@ "TypographyTitleType": {

"original": "boolean",
"resolved": "boolean",
"resolved": "boolean | undefined",
"references": {}

@@ -381,3 +381,3 @@ },

"original": "TypographyTitleType",
"resolved": "\"action\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\"",
"resolved": "\"action\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | undefined",
"references": {

@@ -406,3 +406,3 @@ "TypographyTitleType": {

"original": "boolean",
"resolved": "boolean",
"resolved": "boolean | undefined",
"references": {}

@@ -409,0 +409,0 @@ },

@@ -1,4 +0,4 @@

import { InputValueType } from '../types/input-value-type';
import { InputValueType } from '@type/input-value-type';
export interface InputValue {
value: InputValueType;
}
{
"name": "@maggioli-design-system/mds-accordion-item",
"version": "4.1.0",
"version": "4.2.0",
"description": "mds-accordion-item is a web-component from Maggioli Design System Magma, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScirpt framework you are using.",

@@ -15,2 +15,3 @@ "main": "dist/index.cjs.js",

"dist/",
"documentation.json",
"loader/",

@@ -27,5 +28,5 @@ "readme.md",

"dependencies": {
"@maggioli-design-system/mds-text": "^3.2.2",
"@maggioli-design-system/styles": "^11.2.1",
"@stencil/core": "^2.22.2"
"@maggioli-design-system/mds-text": "^3.3.0",
"@maggioli-design-system/styles": "^11.4.0",
"@stencil/core": "^2.22.3"
},

@@ -45,7 +46,12 @@ "license": "MIT",

{
"name": "Nicola Tamburini",
"email": "nicola.tamburini@maggioli.it",
"role": "Software Engineer"
},
{
"name": "Vittorio Vittori",
"email": "vittorio.vittori@maggioli.it",
"role": "UX UI Designer"
"role": "Product Designer"
}
]
}

@@ -10,7 +10,7 @@ # mds-accordion-item

| Property | Attribute | Description | Type | Default |
| -------------------------- | ------------- | ------------------------------------------------------------------ | ---------------------------------------------------------- | ----------- |
| `description` _(required)_ | `description` | Specifies the title shown when the component is closed or selected | `string` | `undefined` |
| `selected` | `selected` | Specifies if the component item is selected or not | `boolean` | `undefined` |
| `typography` | `typography` | Specifies the typography of the element | `"action" \| "h1" \| "h2" \| "h3" \| "h4" \| "h5" \| "h6"` | `'h5'` |
| Property | Attribute | Description | Type | Default |
| -------------------------- | ------------- | ------------------------------------------------------------------ | ----------------------------------------------------------------------- | ----------- |
| `description` _(required)_ | `description` | Specifies the title shown when the component is closed or selected | `string` | `undefined` |
| `selected` | `selected` | Specifies if the component item is selected or not | `boolean \| undefined` | `undefined` |
| `typography` | `typography` | Specifies the typography of the element | `"action" \| "h1" \| "h2" \| "h3" \| "h4" \| "h5" \| "h6" \| undefined` | `'h5'` |

@@ -17,0 +17,0 @@

@@ -10,3 +10,3 @@ const hash = (s: string): string => {

const unslugName = (name: string): string => {
return name.split('/').slice(-1).pop().replace(/-/g, ' ')
return name.split('/')?.slice(-1).pop()?.replace(/-/g, ' ') ?? name
}

@@ -16,3 +16,3 @@

if (element.hasAttribute(attribute)) {
return element.getAttribute(attribute)
return element.getAttribute(attribute) ?? ''
}

@@ -19,0 +19,0 @@ element.setAttribute(attribute, value)

@@ -41,3 +41,3 @@ export class KeyboardManager {

detachEscapeBehavior = (): void => {
this.escapeCallback = null
this.escapeCallback = () => {return}
if (typeof window !== undefined) {

@@ -44,0 +44,0 @@ window.removeEventListener('keydown', this.handleEscapeBehaviorDispatchEvent.bind(this))

@@ -10,7 +10,7 @@ # mds-accordion-item

| Property | Attribute | Description | Type | Default |
| -------------------------- | ------------- | ------------------------------------------------------------------ | ---------------------------------------------------------- | ----------- |
| `description` _(required)_ | `description` | Specifies the title shown when the component is closed or selected | `string` | `undefined` |
| `selected` | `selected` | Specifies if the component item is selected or not | `boolean` | `undefined` |
| `typography` | `typography` | Specifies the typography of the element | `"action" \| "h1" \| "h2" \| "h3" \| "h4" \| "h5" \| "h6"` | `'h5'` |
| Property | Attribute | Description | Type | Default |
| -------------------------- | ------------- | ------------------------------------------------------------------ | ----------------------------------------------------------------------- | ----------- |
| `description` _(required)_ | `description` | Specifies the title shown when the component is closed or selected | `string` | `undefined` |
| `selected` | `selected` | Specifies if the component item is selected or not | `boolean \| undefined` | `undefined` |
| `typography` | `typography` | Specifies the typography of the element | `"action" \| "h1" \| "h2" \| "h3" \| "h4" \| "h5" \| "h6" \| undefined` | `'h5'` |

@@ -17,0 +17,0 @@

@@ -224,2 +224,3 @@ [

"mi/baseline/person",
"mi/baseline/pets",
"mi/baseline/radio-button-checked",

@@ -226,0 +227,0 @@ "mi/baseline/radio-button-unchecked",

@@ -1,2 +0,2 @@

import { InputValueType } from '../types/input-value-type'
import { InputValueType } from '@type/input-value-type'

@@ -3,0 +3,0 @@ export interface InputValue {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc