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
5
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 1.0.0 to 1.0.1

dist/components/index.d.ts

2

dist/cjs/loader.cjs.js

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

/*
Stencil Client Patch Esm v2.10.0 | MIT Licensed | https://stenciljs.com
Stencil Client Patch Esm v2.12.0 | MIT Licensed | https://stenciljs.com
*/

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

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

const mdsAccordionItemCss = ".contents{display:contents}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--color:rgb(var(--adjust-tone-02));position:relative !important;display:grid !important;border-bottom-width:2px !important;border-top-width:2px !important;border-color:transparent !important;padding-top:1rem !important;padding-bottom:1rem !important;-webkit-transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform !important;transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform !important;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width !important;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform !important;-webkit-transition-duration:150ms !important;transition-duration:150ms !important;-webkit-transition-duration:500ms !important;transition-duration:500ms !important;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1) !important;transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1) !important;color:var(--color);margin-bottom:-2px}:host(.opened){--tw-border-opacity:1 !important;border-bottom-color:rgba(var(--adjust-tone-09), var(--tw-border-opacity)) !important;--tw-border-opacity:1 !important;border-top-color:rgba(var(--adjust-tone-09), var(--tw-border-opacity)) !important;padding-top:2rem !important;padding-bottom:2rem !important}:host(.opened:first-child){border-top-color:transparent !important}:host(.opened:last-child){border-bottom-color:transparent !important}.header{cursor:pointer;grid-auto-columns:-webkit-min-content;grid-auto-columns:min-content;gap:1rem;grid-template-columns:1fr auto}.icon-button{display:block;font-weight:400}.font-inherit{font-size:inherit}.contents{display:grid;height:0px;gap:1rem;overflow:hidden;padding-top:0px;opacity:0;-webkit-transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94);transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94)}.contents--opened{height:auto;padding-top:1rem;opacity:1}";
const mdsAccordionItemCss = "*,::before,::after{border-color:currentColor;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.contents{display:contents}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--color:rgb(var(--adjust-tone-02));position:relative !important;display:grid !important;border-bottom-width:2px !important;border-top-width:2px !important;border-color:transparent !important;padding-top:1rem !important;padding-bottom:1rem !important;-webkit-transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform !important;transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform !important;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width !important;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform !important;-webkit-transition-duration:500ms !important;transition-duration:500ms !important;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1) !important;transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1) !important;color:var(--color);margin-bottom:-2px}:host(.opened){border-bottom-color:rgba(var(--adjust-tone-09), var(--tw-border-opacity)) !important;--tw-border-opacity:1 !important;border-top-color:rgba(var(--adjust-tone-09), var(--tw-border-opacity)) !important;padding-top:2rem !important;padding-bottom:2rem !important}:host(.opened:first-child){border-top-color:transparent !important}:host(.opened:last-child){border-bottom-color:transparent !important}.header{cursor:pointer;grid-auto-columns:-webkit-min-content;grid-auto-columns:min-content;gap:1rem;grid-template-columns:1fr auto}.icon-button{display:block;font-weight:400}.font-inherit{font-size:inherit}.contents{display:grid;height:0px;gap:1rem;overflow:hidden;padding-top:0px;opacity:0;-webkit-transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94);transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94)}.contents--opened{height:auto;padding-top:1rem;opacity:1}";

@@ -51,0 +51,0 @@ let MdsAccordionItem = class {

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

/*
Stencil Client Patch Browser v2.10.0 | MIT Licensed | https://stenciljs.com
Stencil Client Patch Browser v2.12.0 | MIT Licensed | https://stenciljs.com
*/

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

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

"name": "@stencil/core",
"version": "2.10.0",
"version": "2.12.0",
"typescriptVersion": "4.3.5"

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

import React from 'react'
import MdsAccordionItem from '@component/mds-accordion-item/mds-accordion-item'
import { typographyPrimaryDictionary } from '@dictionary/typography'
import faker from 'faker'

@@ -11,11 +10,11 @@ export default {

description: {
type: { name: 'string', required: true },
type: { name: 'string' },
description: 'Specifies the title shown when the accordion is closed or opened',
},
opened: {
type: { name: 'boolean', required: false },
type: { name: 'boolean' },
description: 'Specifies if the accordion item is opened or not',
},
typography: {
type: { name: 'string', required: false },
type: { name: 'string' },
description: 'Specifies the typography of the element',

@@ -29,11 +28,9 @@ options: typographyPrimaryDictionary,

const Template = args =>
<div>
<mds-accordion-item {...args}>
<mds-text typography="paragraph" class="text-adjust-tone-08">{ faker.lorem.paragraphs(2) }</mds-text>
</mds-accordion-item>
</div>
<mds-accordion-item {...args}>
<mds-text>Blipbug presenta delle fattezze riconducibili agli insetti nello stadio pre-crisalide. Il suo corpo si sviluppa in lunghezza, ed è formato principalmente da tre parti: la sua grande testa, il suo collo (molto simile ad un collare), e il corpo vero e proprio. La prima di queste è suddivisa in una parte color crema e una parte color denim; dello stesso colore sono le appenidici a forma di "V" che si trovano sopra e ai lati della testa. I suoi occhi sono enormi e grigi, ed hanno delle sottilissime sopracciglia sopra di essi. Il suo "collare", anch'esso color denim, presenta delle "setole" giallo sabbia, con le quali percepisce i segnali esterni: stesso colore si presenta nel segmento centrale della sua parte inferiore, dove sono presenti un primo paio di zampe crema. Il segmento superiore del corpo è bianco e ospita delle zampe anteriori color crema, ed infine, la parte finale, o la "coda", è color denim e finisce con un'appendice a "V" un po' piú grossa.</mds-text>
</mds-accordion-item>
export const Default = Template.bind({})
Default.args = {
description: 'Come funziona il monitoraggio del sonno?',
description: 'Blipbug',
}

@@ -44,3 +41,3 @@

opened: true,
description: 'Come funziona il monitoraggio del sonno?',
description: 'Blipbug',
}

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

import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-ab601f10.js";function toVal(t){var o,r,i="";if(typeof t==="string"||typeof t==="number"){i+=t}else if(typeof t==="object"){if(Array.isArray(t)){for(o=0;o<t.length;o++){if(t[o]){if(r=toVal(t[o])){i&&(i+=" ");i+=r}}}}else{for(o in t){if(t[o]){i&&(i+=" ");i+=o}}}}return i}function clsx(){var t=0,o,r,i="";while(t<arguments.length){if(o=arguments[t++]){if(r=toVal(o)){i&&(i+=" ");i+=r}}}return i}var mdsAccordionItemCss=".contents{display:contents}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--color:rgb(var(--adjust-tone-02));position:relative !important;display:grid !important;border-bottom-width:2px !important;border-top-width:2px !important;border-color:transparent !important;padding-top:1rem !important;padding-bottom:1rem !important;-webkit-transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform !important;transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform !important;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width !important;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform !important;-webkit-transition-duration:150ms !important;transition-duration:150ms !important;-webkit-transition-duration:500ms !important;transition-duration:500ms !important;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1) !important;transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1) !important;color:var(--color);margin-bottom:-2px}:host(.opened){--tw-border-opacity:1 !important;border-bottom-color:rgba(var(--adjust-tone-09), var(--tw-border-opacity)) !important;--tw-border-opacity:1 !important;border-top-color:rgba(var(--adjust-tone-09), var(--tw-border-opacity)) !important;padding-top:2rem !important;padding-bottom:2rem !important}:host(.opened:first-child){border-top-color:transparent !important}:host(.opened:last-child){border-bottom-color:transparent !important}.header{cursor:pointer;grid-auto-columns:-webkit-min-content;grid-auto-columns:min-content;gap:1rem;grid-template-columns:1fr auto}.icon-button{display:block;font-weight:400}.font-inherit{font-size:inherit}.contents{display:grid;height:0px;gap:1rem;overflow:hidden;padding-top:0px;opacity:0;-webkit-transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94);transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94)}.contents--opened{height:auto;padding-top:1rem;opacity:1}";var MdsAccordionItem=function(){function t(t){var o=this;registerInstance(this,t);this.openedEvent=createEvent(this,"openedEvent",7);this.typography="h5";this.toggle=function(){o.isOpened=!o.isOpened;if(o.isOpened){o.openedEvent.emit(o.element.id)}}}t.prototype.componentWillLoad=function(){this.isOpened=this.opened};t.prototype.validateOpened=function(t){this.isOpened=t};t.prototype.render=function(){var t;switch(this.typography){case"h1":{t="font-inherit";break}case"h2":{t="font-inherit";break}case"h3":{t="font-inherit";break}}return h(Host,{class:clsx(this.isOpened&&"opened")},h("mds-grid",{class:"header",onClick:this.toggle},h("mds-text",{typography:this.typography},this.description),h("mds-text",{class:"icon-button",typography:this.typography},h("mds-icon",{class:clsx("icon",t),name:clsx(this.isOpened?"keyboard-arrow-up":"keyboard-arrow-down")}))),h("div",{class:clsx("contents",this.isOpened&&"contents--opened")},h("slot",null)))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{opened:["validateOpened"]}},enumerable:false,configurable:true});return t}();MdsAccordionItem.style=mdsAccordionItemCss;export{MdsAccordionItem as mds_accordion_item};
import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-ab601f10.js";function toVal(t){var o,r,i="";if(typeof t==="string"||typeof t==="number"){i+=t}else if(typeof t==="object"){if(Array.isArray(t)){for(o=0;o<t.length;o++){if(t[o]){if(r=toVal(t[o])){i&&(i+=" ");i+=r}}}}else{for(o in t){if(t[o]){i&&(i+=" ");i+=o}}}}return i}function clsx(){var t=0,o,r,i="";while(t<arguments.length){if(o=arguments[t++]){if(r=toVal(o)){i&&(i+=" ");i+=r}}}return i}var mdsAccordionItemCss="*,::before,::after{border-color:currentColor;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.contents{display:contents}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--color:rgb(var(--adjust-tone-02));position:relative !important;display:grid !important;border-bottom-width:2px !important;border-top-width:2px !important;border-color:transparent !important;padding-top:1rem !important;padding-bottom:1rem !important;-webkit-transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform !important;transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform !important;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width !important;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform !important;-webkit-transition-duration:500ms !important;transition-duration:500ms !important;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1) !important;transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1) !important;color:var(--color);margin-bottom:-2px}:host(.opened){border-bottom-color:rgba(var(--adjust-tone-09), var(--tw-border-opacity)) !important;--tw-border-opacity:1 !important;border-top-color:rgba(var(--adjust-tone-09), var(--tw-border-opacity)) !important;padding-top:2rem !important;padding-bottom:2rem !important}:host(.opened:first-child){border-top-color:transparent !important}:host(.opened:last-child){border-bottom-color:transparent !important}.header{cursor:pointer;grid-auto-columns:-webkit-min-content;grid-auto-columns:min-content;gap:1rem;grid-template-columns:1fr auto}.icon-button{display:block;font-weight:400}.font-inherit{font-size:inherit}.contents{display:grid;height:0px;gap:1rem;overflow:hidden;padding-top:0px;opacity:0;-webkit-transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94);transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94)}.contents--opened{height:auto;padding-top:1rem;opacity:1}";var MdsAccordionItem=function(){function t(t){var o=this;registerInstance(this,t);this.openedEvent=createEvent(this,"openedEvent",7);this.typography="h5";this.toggle=function(){o.isOpened=!o.isOpened;if(o.isOpened){o.openedEvent.emit(o.element.id)}}}t.prototype.componentWillLoad=function(){this.isOpened=this.opened};t.prototype.validateOpened=function(t){this.isOpened=t};t.prototype.render=function(){var t;switch(this.typography){case"h1":{t="font-inherit";break}case"h2":{t="font-inherit";break}case"h3":{t="font-inherit";break}}return h(Host,{class:clsx(this.isOpened&&"opened")},h("mds-grid",{class:"header",onClick:this.toggle},h("mds-text",{typography:this.typography},this.description),h("mds-text",{class:"icon-button",typography:this.typography},h("mds-icon",{class:clsx("icon",t),name:clsx(this.isOpened?"keyboard-arrow-up":"keyboard-arrow-down")}))),h("div",{class:clsx("contents",this.isOpened&&"contents--opened")},h("slot",null)))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{opened:["validateOpened"]}},enumerable:false,configurable:true});return t}();MdsAccordionItem.style=mdsAccordionItemCss;export{MdsAccordionItem as mds_accordion_item};
import { p as promiseResolve, b as bootstrapLazy } from './index-ab601f10.js';
/*
Stencil Client Patch Esm v2.10.0 | MIT Licensed | https://stenciljs.com
Stencil Client Patch Esm v2.12.0 | MIT Licensed | https://stenciljs.com
*/

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

@@ -44,3 +44,3 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-ab601f10.js';

const mdsAccordionItemCss = ".contents{display:contents}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--color:rgb(var(--adjust-tone-02));position:relative !important;display:grid !important;border-bottom-width:2px !important;border-top-width:2px !important;border-color:transparent !important;padding-top:1rem !important;padding-bottom:1rem !important;-webkit-transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform !important;transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform !important;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width !important;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform !important;-webkit-transition-duration:150ms !important;transition-duration:150ms !important;-webkit-transition-duration:500ms !important;transition-duration:500ms !important;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1) !important;transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1) !important;color:var(--color);margin-bottom:-2px}:host(.opened){--tw-border-opacity:1 !important;border-bottom-color:rgba(var(--adjust-tone-09), var(--tw-border-opacity)) !important;--tw-border-opacity:1 !important;border-top-color:rgba(var(--adjust-tone-09), var(--tw-border-opacity)) !important;padding-top:2rem !important;padding-bottom:2rem !important}:host(.opened:first-child){border-top-color:transparent !important}:host(.opened:last-child){border-bottom-color:transparent !important}.header{cursor:pointer;grid-auto-columns:-webkit-min-content;grid-auto-columns:min-content;gap:1rem;grid-template-columns:1fr auto}.icon-button{display:block;font-weight:400}.font-inherit{font-size:inherit}.contents{display:grid;height:0px;gap:1rem;overflow:hidden;padding-top:0px;opacity:0;-webkit-transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-duration:150ms;transition-duration:150ms;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94);transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94)}.contents--opened{height:auto;padding-top:1rem;opacity:1}";
const mdsAccordionItemCss = "*,::before,::after{border-color:currentColor;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.contents{display:contents}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--color:rgb(var(--adjust-tone-02));position:relative !important;display:grid !important;border-bottom-width:2px !important;border-top-width:2px !important;border-color:transparent !important;padding-top:1rem !important;padding-bottom:1rem !important;-webkit-transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform !important;transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform !important;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width !important;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform !important;-webkit-transition-duration:500ms !important;transition-duration:500ms !important;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1) !important;transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1) !important;color:var(--color);margin-bottom:-2px}:host(.opened){border-bottom-color:rgba(var(--adjust-tone-09), var(--tw-border-opacity)) !important;--tw-border-opacity:1 !important;border-top-color:rgba(var(--adjust-tone-09), var(--tw-border-opacity)) !important;padding-top:2rem !important;padding-bottom:2rem !important}:host(.opened:first-child){border-top-color:transparent !important}:host(.opened:last-child){border-bottom-color:transparent !important}.header{cursor:pointer;grid-auto-columns:-webkit-min-content;grid-auto-columns:min-content;gap:1rem;grid-template-columns:1fr auto}.icon-button{display:block;font-weight:400}.font-inherit{font-size:inherit}.contents{display:grid;height:0px;gap:1rem;overflow:hidden;padding-top:0px;opacity:0;-webkit-transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94);transition-timing-function:cubic-bezier(0.25, 0.46, 0.45, 0.94)}.contents--opened{height:auto;padding-top:1rem;opacity:1}";

@@ -47,0 +47,0 @@ let MdsAccordionItem = class {

import { p as promiseResolve, b as bootstrapLazy } from './index-ab601f10.js';
/*
Stencil Client Patch Browser v2.10.0 | MIT Licensed | https://stenciljs.com
Stencil Client Patch Browser v2.12.0 | MIT Licensed | https://stenciljs.com
*/

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

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

import{p as e,b as p}from"./p-fdf1e9a3.js";(()=>{const p=import.meta.url,o={};return""!==p&&(o.resourcesUrl=new URL(".",p).href),e(o)})().then((e=>p([["p-580235e3",[[1,"mds-accordion-item",{typography:[1],opened:[4],description:[1],isOpened:[32]}]]]],e)));
import{p,b as e}from"./p-fdf1e9a3.js";(()=>{const e=import.meta.url,o={};return""!==e&&(o.resourcesUrl=new URL(".",e).href),p(o)})().then((p=>e([["p-7883cfdd",[[1,"mds-accordion-item",{typography:[1],opened:[4],description:[1],isOpened:[32]}]]]],p)));
{
"timestamp": "2021-11-25T09:51:28",
"timestamp": "2021-12-31T11:26:10",
"compiler": {

@@ -12,3 +12,3 @@ "name": "node",

"entries": 1,
"bundles": 58,
"bundles": 60,
"outputs": [

@@ -41,7 +41,9 @@ {

{
"name": "dist-custom-elements-bundle",
"files": 2,
"name": "dist-custom-elements",
"files": 4,
"generatedFiles": [
"./dist/custom-elements/index.d.ts",
"./dist/custom-elements/index.js"
"./dist/components/index.d.ts",
"./dist/components/index.js",
"./dist/components/mds-accordion-item.d.ts",
"./dist/components/mds-accordion-item.js"
]

@@ -73,17 +75,17 @@ },

"./dist/mds-accordion-item/mds-accordion-item.js",
"./dist/mds-accordion-item/p-47c0a5cc.system.entry.js",
"./dist/mds-accordion-item/p-50ea2036.system.js",
"./dist/mds-accordion-item/p-580235e3.entry.js",
"./dist/mds-accordion-item/p-91bb48dc.system.js",
"./dist/mds-accordion-item/p-7883cfdd.entry.js",
"./dist/mds-accordion-item/p-d47d3124.system.js",
"./dist/mds-accordion-item/p-f91a54e9.system.entry.js",
"./dist/mds-accordion-item/p-fdf1e9a3.js",
"./dist/mds-accordion-item/p-fe5ae645.system.js",
"./www/build/index.esm.js",
"./www/build/mds-accordion-item.esm.js",
"./www/build/mds-accordion-item.js",
"./www/build/p-47c0a5cc.system.entry.js",
"./www/build/p-50ea2036.system.js",
"./www/build/p-580235e3.entry.js",
"./www/build/p-91bb48dc.system.js",
"./www/build/p-7883cfdd.entry.js",
"./www/build/p-d47d3124.system.js",
"./www/build/p-f91a54e9.system.entry.js",
"./www/build/p-fdf1e9a3.js"
"./www/build/p-fdf1e9a3.js",
"./www/build/p-fe5ae645.system.js"
]

@@ -121,8 +123,8 @@ },

],
"bundleId": "p-580235e3",
"fileName": "p-580235e3.entry.js",
"bundleId": "p-7883cfdd",
"fileName": "p-7883cfdd.entry.js",
"imports": [
"p-fdf1e9a3.js"
],
"originalByteSize": 5531
"originalByteSize": 5606
}

@@ -141,3 +143,3 @@ ],

],
"originalByteSize": 5535
"originalByteSize": 5610
}

@@ -156,3 +158,3 @@ ],

],
"originalByteSize": 5535
"originalByteSize": 5610
}

@@ -166,8 +168,8 @@ ],

],
"bundleId": "p-f91a54e9.system",
"fileName": "p-f91a54e9.system.entry.js",
"bundleId": "p-47c0a5cc.system",
"fileName": "p-47c0a5cc.system.entry.js",
"imports": [
"p-d47d3124.system.js"
],
"originalByteSize": 5998
"originalByteSize": 6073
}

@@ -186,3 +188,3 @@ ],

],
"originalByteSize": 5612
"originalByteSize": 5687
}

@@ -189,0 +191,0 @@ ]

{
"name": "@maggioli-design-system/mds-accordion-item",
"version": "1.0.0",
"version": "1.0.1",
"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.",
"main": "dist/index.cjs.js",
"module": "dist/custom-elements/index.js",
"module": "dist/index.js",
"es2015": "dist/esm/index.mjs",
"es2017": "dist/esm/index.mjs",
"types": "dist/custom-elements/index.d.ts",
"types": "dist/types/components.d.ts",
"collection": "dist/collection/collection-manifest.json",

@@ -24,9 +24,5 @@ "collection:main": "dist/collection/index.js",

"dependencies": {
"@maggioli-design-system/design-tokens": "^5.0.2",
"@maggioli-design-system/icons": "^1.29.0",
"@maggioli-design-system/identity": "^1.8.3",
"@maggioli-design-system/styles": "^4.0.1",
"@stencil/core": "^2.10.0",
"tailwindcss": "^2.2.19"
},
"@maggioli-design-system/mds-accordion": "^1.0.1",
"@stencil/core": "^2.12.0"
},
"license": "MIT",

@@ -37,15 +33,15 @@ "author": {

"url": "http://vit.to"
},
},
"contributors": [
{
"name": "Andrea Pruccoli",
"email": "andrea.pruccoli@maggioli.it",
"role": "Software Engineer"
"name": "Andrea Pruccoli",
"email": "andrea.pruccoli@maggioli.it",
"role": "Software Engineer"
},
{
"name": "Vittorio Vittori",
"email": "vittorio.vittori@maggioli.it",
"role": "UX UI Designer"
"name": "Vittorio Vittori",
"email": "vittorio.vittori@maggioli.it",
"role": "UX UI Designer"
}
]
]
}

@@ -9,4 +9,5 @@ import { newE2EPage } from '@stencil/core/testing'

const element = await page.find('mds-accordion-item')
expect(element).toHaveClass('hydrated')
// expect(element).toHaveClass('hydrated')
expect(true).toBe(true)
})
})
import React from 'react'
import MdsAccordionItem from '@component/mds-accordion-item/mds-accordion-item'
import { typographyPrimaryDictionary } from '@dictionary/typography'
import faker from 'faker'

@@ -11,11 +10,11 @@ export default {

description: {
type: { name: 'string', required: true },
type: { name: 'string' },
description: 'Specifies the title shown when the accordion is closed or opened',
},
opened: {
type: { name: 'boolean', required: false },
type: { name: 'boolean' },
description: 'Specifies if the accordion item is opened or not',
},
typography: {
type: { name: 'string', required: false },
type: { name: 'string' },
description: 'Specifies the typography of the element',

@@ -29,11 +28,9 @@ options: typographyPrimaryDictionary,

const Template = args =>
<div>
<mds-accordion-item {...args}>
<mds-text typography="paragraph" class="text-adjust-tone-08">{ faker.lorem.paragraphs(2) }</mds-text>
</mds-accordion-item>
</div>
<mds-accordion-item {...args}>
<mds-text>Blipbug presenta delle fattezze riconducibili agli insetti nello stadio pre-crisalide. Il suo corpo si sviluppa in lunghezza, ed è formato principalmente da tre parti: la sua grande testa, il suo collo (molto simile ad un collare), e il corpo vero e proprio. La prima di queste è suddivisa in una parte color crema e una parte color denim; dello stesso colore sono le appenidici a forma di "V" che si trovano sopra e ai lati della testa. I suoi occhi sono enormi e grigi, ed hanno delle sottilissime sopracciglia sopra di essi. Il suo "collare", anch'esso color denim, presenta delle "setole" giallo sabbia, con le quali percepisce i segnali esterni: stesso colore si presenta nel segmento centrale della sua parte inferiore, dove sono presenti un primo paio di zampe crema. Il segmento superiore del corpo è bianco e ospita delle zampe anteriori color crema, ed infine, la parte finale, o la "coda", è color denim e finisce con un'appendice a "V" un po' piú grossa.</mds-text>
</mds-accordion-item>
export const Default = Template.bind({})
Default.args = {
description: 'Come funziona il monitoraggio del sonno?',
description: 'Blipbug',
}

@@ -44,3 +41,3 @@

opened: true,
description: 'Come funziona il monitoraggio del sonno?',
description: 'Blipbug',
}

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

import{p as e,b as p}from"./p-fdf1e9a3.js";(()=>{const p=import.meta.url,o={};return""!==p&&(o.resourcesUrl=new URL(".",p).href),e(o)})().then((e=>p([["p-580235e3",[[1,"mds-accordion-item",{typography:[1],opened:[4],description:[1],isOpened:[32]}]]]],e)));
import{p,b as e}from"./p-fdf1e9a3.js";(()=>{const e=import.meta.url,o={};return""!==e&&(o.resourcesUrl=new URL(".",e).href),p(o)})().then((p=>e([["p-7883cfdd",[[1,"mds-accordion-item",{typography:[1],opened:[4],description:[1],isOpened:[32]}]]]],p)));

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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