@ctrliq/quantic-components 1.85.1 → 1.86.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/card/card-carousel.stories.js +2 -2
- package/dist/card/card-group.stories.js +2 -2
- package/dist/checkbox/index.stories.js +3 -3
- package/dist/cluster/cluster.component.d.ts +7 -0
- package/dist/cluster/cluster.component.js +14 -5
- package/dist/cluster/index.constants.d.ts +3 -0
- package/dist/cluster/index.constants.js +3 -0
- package/dist/code-input/index.stories.js +3 -3
- package/dist/grid/grid.component.d.ts +8 -0
- package/dist/grid/grid.component.js +16 -2
- package/dist/index.js.map +1 -1
- package/dist/meta/index.js.map +1 -1
- package/dist/meta.json +53 -65
- package/dist/number-input/index.stories.js +3 -3
- package/dist/option-card/option-card-group.stories.js +3 -3
- package/dist/panel/panel-group.stories.js +1 -1
- package/dist/quantic-components.js +48 -10
- package/dist/quantic-components.js.map +1 -1
- package/dist/quantic-components.min.js +3 -3
- package/dist/quantic-components.min.js.map +1 -1
- package/dist/radio/index.stories.js +1 -1
- package/dist/radio/radio-group.stories.js +5 -5
- package/dist/register.js.map +1 -1
- package/dist/shared/meta.types.d.ts +1 -1
- package/dist/tabs/index.stories.js +35 -35
- package/dist/text/index.constants.d.ts +4 -0
- package/dist/text/index.constants.js +2 -0
- package/dist/text/index.d.ts +7 -0
- package/dist/text/index.js +13 -3
- package/dist/text-input/index.stories.js +3 -3
- package/dist/textarea/index.stories.js +3 -3
- package/dist/toggle/index.stories.js +3 -3
- package/dist/types/cluster/cluster.component.d.ts +7 -0
- package/dist/types/cluster/index.constants.d.ts +3 -0
- package/dist/types/grid/grid.component.d.ts +8 -0
- package/dist/types/shared/meta.types.d.ts +1 -1
- package/dist/types/text/index.constants.d.ts +4 -0
- package/dist/types/text/index.d.ts +7 -0
- package/package.json +1 -1
- package/dist/cluster/cluster.stories.d.ts +0 -57
- package/dist/cluster/cluster.stories.js +0 -67
- package/dist/grid/grid.stories.d.ts +0 -36
- package/dist/grid/grid.stories.js +0 -95
- package/dist/text/index.stories.d.ts +0 -50
- package/dist/text/index.stories.js +0 -55
- package/dist/types/cluster/cluster.stories.d.ts +0 -57
- package/dist/types/grid/grid.stories.d.ts +0 -36
- package/dist/types/text/index.stories.d.ts +0 -50
|
@@ -1667,7 +1667,7 @@ function an({context:e}){return(t,i)=>{const n=new WeakMap;if("object"==typeof i
|
|
|
1667
1667
|
<div class=${e}>
|
|
1668
1668
|
<slot></slot>
|
|
1669
1669
|
</div>
|
|
1670
|
-
`}},e.Grid.meta={tag:"quantic-grid",description:"
|
|
1670
|
+
`}},e.Grid.meta={tag:"quantic-grid",description:"Deprecated public export, becoming internal anatomy of quantic-card-group and quantic-option-card-group. Use quantic-card-group, quantic-option-card-group for option cards, or write the grid in your own stylesheet.",category:"layout",deprecated:{use:"quantic-card-group",reason:"Grid sizes its children, so any track or row rule it does not anticipate cannot be reached from outside."},slots:{"":{description:"Grid items to be laid out."}},relatedTo:["quantic-card-group","quantic-option-card-group"]},e.Grid.styles=d`
|
|
1671
1671
|
:host {
|
|
1672
1672
|
display: block;
|
|
1673
1673
|
font-family: var(--quantic-font-family-body);
|
|
@@ -2677,7 +2677,7 @@ function an({context:e}){return(t,i)=>{const n=new WeakMap;if("object"==typeof i
|
|
|
2677
2677
|
<div class=${t}>
|
|
2678
2678
|
<slot></slot>
|
|
2679
2679
|
</div>
|
|
2680
|
-
`}},e.Cluster.meta={tag:"quantic-cluster",description:"
|
|
2680
|
+
`}},e.Cluster.meta={tag:"quantic-cluster",description:"Deprecated generic flex container. Use quantic-tag-group, quantic-badge-group or quantic-action-group for a uniform run of children, and a flex rule in your own stylesheet for anything else.",category:"layout",deprecated:{reason:"Every prop maps one-to-one to a CSS property, so the element adds a shadow boundary and nothing else."},slots:{"":{description:"Items to arrange."}},relatedTo:["quantic-tag-group","quantic-badge-group","quantic-action-group"]},e.Cluster.styles=d`
|
|
2681
2681
|
:host {
|
|
2682
2682
|
display: block;
|
|
2683
2683
|
}
|
|
@@ -39913,7 +39913,7 @@ const ko="important",yo=" !"+ko,xo=Ze(class extends Ne{constructor(e){if(super(e
|
|
|
39913
39913
|
var(--quantic-spacing-1)
|
|
39914
39914
|
);
|
|
39915
39915
|
}
|
|
39916
|
-
`,t([fe({type:"string",attribute:"aria-label",description:"Accessible name for the group."})],e.TagGroup.prototype,"ariaLabel",void 0),e.TagGroup=t([Se("quantic-tag-group")],e.TagGroup);const $s={Body:"body",Display:"display"},_s={ExtraSmall:"xs",Small:"sm",Medium:"md",Large:"lg",ExtraLarge:"xl",TwoExtraLarge:"2xl"},Es=[".main {\n color: var(--quantic-text-primary);\n font-weight: inherit;\n }",...Object.values($s).map(e=>`\n.variant--${e} {\n font-family: var(--quantic-font-family-${e});\n}`),...Object.values(_s).flatMap(e=>Object.values($s).map(t=>((e,t)=>`\n.size--${t}-${e} {\n font-size: var(--quantic-font-size-${t}-${e});\n line-height: var(--quantic-line-height-${t}-${e});\n}`)(e,t)))].join("\n");e.Text=class extends qe{constructor(){super(...arguments),this.as="span",this.variant=$s.Body}render(){const e={main:!0,[`variant--${this.variant}`]:!0,[`size--${this.variant}-${this.size}`]:!!this.size},t=Fe(this.as);return Oe`<${t} class=${We(e)}><slot></slot></${t}>`}},e.Text.meta={tag:"quantic-text",description:"
|
|
39916
|
+
`,t([fe({type:"string",attribute:"aria-label",description:"Accessible name for the group."})],e.TagGroup.prototype,"ariaLabel",void 0),e.TagGroup=t([Se("quantic-tag-group")],e.TagGroup);const $s={Body:"body",Display:"display"},_s={ExtraSmall:"xs",Small:"sm",Medium:"md",Large:"lg",ExtraLarge:"xl",TwoExtraLarge:"2xl"},Es=[".main {\n color: var(--quantic-text-primary);\n font-weight: inherit;\n }",...Object.values($s).map(e=>`\n.variant--${e} {\n font-family: var(--quantic-font-family-${e});\n}`),...Object.values(_s).flatMap(e=>Object.values($s).map(t=>((e,t)=>`\n.size--${t}-${e} {\n font-size: var(--quantic-font-size-${t}-${e});\n line-height: var(--quantic-line-height-${t}-${e});\n}`)(e,t)))].join("\n");e.Text=class extends qe{constructor(){super(...arguments),this.as="span",this.variant=$s.Body}render(){const e={main:!0,[`variant--${this.variant}`]:!0,[`size--${this.variant}-${this.size}`]:!!this.size},t=Fe(this.as);return Oe`<${t} class=${We(e)}><slot></slot></${t}>`}},e.Text.meta={tag:"quantic-text",description:"Deprecated typography wrapper. Write the semantic element in your own document, where quantic-css type styles and IDREF-based accessibility can reach it.",category:"display",deprecated:{reason:"Renders the consumer's element inside a shadow root, so the typography stylesheet cannot style it and IDREFs cannot cross the boundary."},slots:{"":{description:"Text content to render."}},relatedTo:["quantic-prose"]},e.Text.styles=l(Es),t([fe({type:"string",default:"span",description:'HTML tag to render (e.g. "p", "h1", "span", "label").'})],e.Text.prototype,"as",void 0),t([fe({type:"TextVariant",options:Object.values($s),default:$s.Body,description:"Font family variant — body or display."})],e.Text.prototype,"variant",void 0),t([fe({type:"TextSize",options:Object.values(_s),description:"Font size and line-height token. Omit to inherit from context."})],e.Text.prototype,"size",void 0),e.Text=t([Se("quantic-text")],e.Text);const Us={ExtraSmall:"xs",Small:"sm",Medium:"md",Large:"lg"},Gs={None:"none",Vertical:"vertical",Horizontal:"horizontal",Both:"both"};e.LucideIconCircleAlert.ensureDefined(),e.Textarea=class extends(Ki(qe)){constructor(){super(),this.value="",this.name="",this.placeholder="",this.size=Us.Medium,this.rows=4,this.resize=Gs.Vertical,this.disabled=!1,this.required=!1,this.readOnly=!1,this.invalid=!1,this.autoComplete="off",this.internals=this.attachInternals()}updated(e){e.has("value")&&(this.internals.setFormValue(this.value),this.updateValidity()),lt(this,e,this.value)}forwardNative(e){const t=e.target;this.value=t.value,this.dispatchEvent(new Event(e.type,{bubbles:!0,composed:!0}))}dispatchValueChanged(e){this.value=e.target.value}formResetCallback(){this.value="",this.internals.setFormValue("")}formStateRestoreCallback(e){this.value=e,this.internals.setFormValue(e)}formDisabledCallback(e){this.disabled=e}updateValidity(){const e=this.shadowRoot?.querySelector("textarea");e&&this.internals.setValidity(e.validity,e.validationMessage,e)}render(){const e=We({main:!0,[`size--${this.size}`]:!0}),t=this.getA11yAttributes({invalid:this.invalid});return W`
|
|
39917
39917
|
<div class=${e}>
|
|
39918
39918
|
<textarea
|
|
39919
39919
|
.value=${this.value}
|