@maggioli-design-system/mds-accordion-item
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
690525
2
123
8094
+ Added@maggioli-design-system/mds-accordion@1.0.2(transitive)
+ Added@maggioli-design-system/mds-accordion-item@1.0.3(transitive)
- Removedtailwindcss@^2.2.19
- Removed@babel/code-frame@7.26.2(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@fullhuman/postcss-purgecss@2.3.0(transitive)
- Removed@maggioli-design-system/design-tokens@5.0.5(transitive)
- Removed@maggioli-design-system/icons@1.83.0(transitive)
- Removed@maggioli-design-system/identity@1.12.0(transitive)
- Removed@maggioli-design-system/styles@4.0.2(transitive)
- Removed@maggioli-design-system/svg-icons@3.32.0(transitive)
- Removed@material-icons/svg@1.0.33(transitive)
- Removed@mdi/svg@7.4.47(transitive)
- Removed@nodelib/fs.scandir@2.1.5(transitive)
- Removed@nodelib/fs.stat@2.0.5(transitive)
- Removed@nodelib/fs.walk@1.2.8(transitive)
- Removed@tailwindcss/aspect-ratio@0.2.1(transitive)
- Removed@types/parse-json@4.0.2(transitive)
- Removedacorn@7.4.1(transitive)
- Removedacorn-node@1.8.2(transitive)
- Removedacorn-walk@7.2.0(transitive)
- Removedansi-styles@3.2.14.3.0(transitive)
- Removedanymatch@3.1.3(transitive)
- Removedarg@5.0.2(transitive)
- Removedautoprefixer@10.4.209.8.8(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbinary-extensions@2.3.0(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbraces@3.0.3(transitive)
- Removedbrowserslist@4.24.3(transitive)
- Removedbytes@3.1.2(transitive)
- Removedcallsites@3.1.0(transitive)
- Removedcamelcase-css@2.0.1(transitive)
- Removedcaniuse-lite@1.0.30001690(transitive)
- Removedchalk@2.4.24.1.2(transitive)
- Removedchokidar@3.6.0(transitive)
- Removedcolor@3.2.14.2.3(transitive)
- Removedcolor-convert@1.9.32.0.1(transitive)
- Removedcolor-name@1.1.31.1.4(transitive)
- Removedcolor-string@1.9.1(transitive)
- Removedcommander@5.1.08.3.0(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedcosmiconfig@7.1.0(transitive)
- Removedcss-color-names@0.0.4(transitive)
- Removedcss-unit-converter@1.1.2(transitive)
- Removedcssesc@3.0.0(transitive)
- Removeddefined@1.0.1(transitive)
- Removeddetective@5.2.1(transitive)
- Removeddidyoumean@1.2.2(transitive)
- Removeddlv@1.1.3(transitive)
- Removedelectron-to-chromium@1.5.75(transitive)
- Removederror-ex@1.3.2(transitive)
- Removedescalade@3.2.0(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedfast-glob@3.3.2(transitive)
- Removedfastq@1.17.1(transitive)
- Removedfill-range@7.1.1(transitive)
- Removedflat@4.1.1(transitive)
- Removedfraction.js@4.3.7(transitive)
- Removedfs-extra@10.1.08.1.0(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedfsevents@2.3.3(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedglob@7.2.3(transitive)
- Removedglob-parent@5.1.26.0.2(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhas-flag@3.0.04.0.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhex-color-regex@1.1.0(transitive)
- Removedhsl-regex@1.0.0(transitive)
- Removedhsla-regex@1.0.0(transitive)
- Removedhtml-tags@3.3.1(transitive)
- Removedimport-fresh@3.3.0(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedis-arrayish@0.2.10.3.2(transitive)
- Removedis-binary-path@2.1.0(transitive)
- Removedis-buffer@2.0.5(transitive)
- Removedis-color-stop@1.1.0(transitive)
- Removedis-core-module@2.16.0(transitive)
- Removedis-extglob@2.1.1(transitive)
- Removedis-glob@4.0.3(transitive)
- Removedis-number@7.0.0(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjson-parse-even-better-errors@2.3.1(transitive)
- Removedjsonfile@4.0.06.1.0(transitive)
- Removedlilconfig@2.1.0(transitive)
- Removedlines-and-columns@1.2.4(transitive)
- Removedlodash@4.17.21(transitive)
- Removedlodash.topath@4.5.2(transitive)
- Removedmaterial-design-icons-updated@7.0.0(transitive)
- Removedmerge2@1.4.1(transitive)
- Removedmicromatch@4.0.8(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmodern-normalize@1.1.0(transitive)
- Removednanoid@3.3.8(transitive)
- Removednode-emoji@1.11.0(transitive)
- Removednode-releases@2.0.19(transitive)
- Removednormalize-path@3.0.0(transitive)
- Removednormalize-range@0.1.2(transitive)
- Removednormalize.css@8.0.1(transitive)
- Removednum2fraction@1.2.2(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedobject-hash@2.2.0(transitive)
- Removedonce@1.4.0(transitive)
- Removedparent-module@1.0.1(transitive)
- Removedparse-json@5.2.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedpath-type@4.0.0(transitive)
- Removedpicocolors@0.2.11.1.1(transitive)
- Removedpicomatch@2.3.1(transitive)
- Removedpostcss@6.0.237.0.327.0.398.4.49(transitive)
- Removedpostcss-functions@3.0.0(transitive)
- Removedpostcss-js@2.0.33.0.3(transitive)
- Removedpostcss-load-config@3.1.4(transitive)
- Removedpostcss-nested@4.2.35.0.6(transitive)
- Removedpostcss-selector-parser@6.1.2(transitive)
- Removedpostcss-value-parser@3.3.14.2.0(transitive)
- Removedpretty-hrtime@1.0.3(transitive)
- Removedpurgecss@2.3.04.1.3(transitive)
- Removedqueue-microtask@1.2.3(transitive)
- Removedquick-lru@5.1.1(transitive)
- Removedreaddirp@3.6.0(transitive)
- Removedreduce-css-calc@2.1.8(transitive)
- Removedresolve@1.22.10(transitive)
- Removedresolve-from@4.0.0(transitive)
- Removedreusify@1.0.4(transitive)
- Removedrgb-regex@1.0.1(transitive)
- Removedrgba-regex@1.0.0(transitive)
- Removedrun-parallel@1.2.0(transitive)
- Removedsimple-swizzle@0.2.2(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedsource-map-js@1.2.1(transitive)
- Removedsupports-color@5.5.06.1.07.2.0(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedtailwindcss@1.9.62.2.19(transitive)
- Removedtailwindcss-multi-column@1.0.2(transitive)
- Removedtailwindcss-scroll-snap@1.1.0(transitive)
- Removedtailwindcss-textshadow@2.1.3(transitive)
- Removedtmp@0.2.3(transitive)
- Removedto-regex-range@5.0.1(transitive)
- Removedtypeface-karla@1.1.13(transitive)
- Removedtypeface-roboto@1.1.13(transitive)
- Removeduniversalify@0.1.22.0.1(transitive)
- Removedupdate-browserslist-db@1.1.1(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedxtend@4.0.2(transitive)
- Removedyaml@1.10.2(transitive)
Updated@stencil/core@^2.12.0