@ctrliq/quantic-components 1.65.0 → 1.66.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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/meta/index.js +2 -0
- package/dist/meta/index.js.map +1 -1
- package/dist/quantic-components.js +69 -0
- package/dist/quantic-components.js.map +1 -1
- package/dist/quantic-components.min.js +41 -1
- package/dist/quantic-components.min.js.map +1 -1
- package/dist/skeleton/index.d.ts +1 -0
- package/dist/skeleton/index.js +1 -0
- package/dist/skeleton/index.stories.d.ts +41 -0
- package/dist/skeleton/index.stories.js +35 -0
- package/dist/skeleton/skeleton.component.d.ts +10 -0
- package/dist/skeleton/skeleton.component.js +79 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/skeleton/index.d.ts +1 -0
- package/dist/types/skeleton/index.stories.d.ts +41 -0
- package/dist/types/skeleton/skeleton.component.d.ts +10 -0
- package/package.json +3 -3
|
@@ -38431,7 +38431,47 @@ const to="important",io=" !"+to,no=Re(class extends Oe{constructor(e){if(super(e
|
|
|
38431
38431
|
width: 100%;
|
|
38432
38432
|
}
|
|
38433
38433
|
}
|
|
38434
|
-
`,t([Ie({type:"number",description:"Current progress value (0–100). Omit for indeterminate mode."})],e.Progress.prototype,"value",void 0),t([Ie({type:"ProgressSize",options:Object.values(Uo),default:Uo.Small,description:"Controls the bar height and label font size."})],e.Progress.prototype,"size",void 0),t([Ie({type:"boolean",default:"false",description:"Shows a percentage label next to the bar (only in determinate mode)."})],e.Progress.prototype,"label",void 0),t([Ie({type:"ProgressColor",options:Object.values(Zo),default:Zo.Brand,description:"Fill color of the progress bar."})],e.Progress.prototype,"color",void 0),t([Ie({attribute:"aria-label",type:"string",description:"Accessible label for the progressbar role."})],e.Progress.prototype,"ariaLabel",void 0),t([Ie({type:"string",description:"Accessible description forwarded to aria-description."})],e.Progress.prototype,"description",void 0),e.Progress=t([be("quantic-progress")],e.Progress)
|
|
38434
|
+
`,t([Ie({type:"number",description:"Current progress value (0–100). Omit for indeterminate mode."})],e.Progress.prototype,"value",void 0),t([Ie({type:"ProgressSize",options:Object.values(Uo),default:Uo.Small,description:"Controls the bar height and label font size."})],e.Progress.prototype,"size",void 0),t([Ie({type:"boolean",default:"false",description:"Shows a percentage label next to the bar (only in determinate mode)."})],e.Progress.prototype,"label",void 0),t([Ie({type:"ProgressColor",options:Object.values(Zo),default:Zo.Brand,description:"Fill color of the progress bar."})],e.Progress.prototype,"color",void 0),t([Ie({attribute:"aria-label",type:"string",description:"Accessible label for the progressbar role."})],e.Progress.prototype,"ariaLabel",void 0),t([Ie({type:"string",description:"Accessible description forwarded to aria-description."})],e.Progress.prototype,"description",void 0),e.Progress=t([be("quantic-progress")],e.Progress),e.Skeleton=class extends Ce{render(){return G`
|
|
38435
|
+
<span
|
|
38436
|
+
class="skeleton"
|
|
38437
|
+
aria-hidden="true"
|
|
38438
|
+
style=${no({"--cols":null!=this.cols?String(this.cols):void 0,"--rows":null!=this.rows?String(this.rows):void 0,"animation-delay":null!=this.delay?`${this.delay}s`:void 0})}
|
|
38439
|
+
></span>
|
|
38440
|
+
`}},e.Skeleton.meta={tag:"quantic-skeleton",description:"Animated placeholder used while content is loading. Renders a shimmering block sized by column span and line-height units.",category:"feedback"},e.Skeleton.styles=l`
|
|
38441
|
+
:host {
|
|
38442
|
+
display: block;
|
|
38443
|
+
}
|
|
38444
|
+
|
|
38445
|
+
.skeleton {
|
|
38446
|
+
display: block;
|
|
38447
|
+
border-radius: var(--quantic-radius-sm);
|
|
38448
|
+
width: calc(var(--cols, 12) / 12 * 100%);
|
|
38449
|
+
height: calc(var(--rows, 1) * 1em);
|
|
38450
|
+
background: linear-gradient(
|
|
38451
|
+
120deg,
|
|
38452
|
+
rgb(var(--quantic-bg-tertiary-rgb) / 0.5) 25%,
|
|
38453
|
+
var(--quantic-bg-tertiary) 50%,
|
|
38454
|
+
rgb(var(--quantic-bg-tertiary-rgb) / 0.5) 75%
|
|
38455
|
+
);
|
|
38456
|
+
background-size: 200% 100%;
|
|
38457
|
+
animation: shimmer var(--quantic-component-skeleton-duration, 2.5s) ease-in-out infinite;
|
|
38458
|
+
}
|
|
38459
|
+
|
|
38460
|
+
@keyframes shimmer {
|
|
38461
|
+
from {
|
|
38462
|
+
background-position: 200% 0;
|
|
38463
|
+
}
|
|
38464
|
+
to {
|
|
38465
|
+
background-position: -200% 0;
|
|
38466
|
+
}
|
|
38467
|
+
}
|
|
38468
|
+
|
|
38469
|
+
@media (prefers-reduced-motion: reduce) {
|
|
38470
|
+
.skeleton {
|
|
38471
|
+
animation: none;
|
|
38472
|
+
}
|
|
38473
|
+
}
|
|
38474
|
+
`,t([Ie({type:"number",description:"Width as a fraction of 12 columns (1–12). Defaults to 12 (full width)."})],e.Skeleton.prototype,"cols",void 0),t([Ie({type:"number",description:"Height as a multiple of 1em. Defaults to 1."})],e.Skeleton.prototype,"rows",void 0),t([Ie({type:"number",description:"Animation delay in seconds. Useful for staggering multiple skeletons."})],e.Skeleton.prototype,"delay",void 0),e.Skeleton=t([be("quantic-skeleton")],e.Skeleton);const Go=Pi,No={ExtraSmall:"xs",Small:"sm",Medium:"md",Large:"lg",ExtraLarge:"xl"};e.Spinner=class extends Ce{constructor(){super(...arguments),this.size=No.Medium,this.label="Loading"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","status")}render(){return G`
|
|
38435
38475
|
<div
|
|
38436
38476
|
class=${$e({sizer:!0,[`size--${this.size}`]:!0,[`color--${this.color}`]:!!this.color})}
|
|
38437
38477
|
aria-hidden="true"
|