@ctrliq/quantic-components 1.64.4 → 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/layout/page.component.d.ts +1 -0
- package/dist/layout/page.component.js +19 -0
- package/dist/layout/page.stories.d.ts +10 -0
- package/dist/layout/page.stories.js +23 -0
- package/dist/meta/index.js +2 -0
- package/dist/meta/index.js.map +1 -1
- package/dist/quantic-components.js +88 -0
- package/dist/quantic-components.js.map +1 -1
- package/dist/quantic-components.min.js +53 -3
- 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/layout/page.component.d.ts +1 -0
- package/dist/types/layout/page.stories.d.ts +10 -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
|
@@ -37354,13 +37354,15 @@ const to="important",io=" !"+to,no=Re(class extends Oe{constructor(e){if(super(e
|
|
|
37354
37354
|
:host {
|
|
37355
37355
|
display: contents;
|
|
37356
37356
|
}
|
|
37357
|
-
`,t([en({context:zo,subscribe:!0})],e.LayoutLogo.prototype,"expanded",void 0),e.LayoutLogo=t([be("quantic-layout-logo")],e.LayoutLogo),e.Page=class extends Ce{constructor(){super(...arguments),this.fill=!1,this.bleeds=!1}render(){return ze`
|
|
37357
|
+
`,t([en({context:zo,subscribe:!0})],e.LayoutLogo.prototype,"expanded",void 0),e.LayoutLogo=t([be("quantic-layout-logo")],e.LayoutLogo),e.Page=class extends Ce{constructor(){super(...arguments),this.fill=!1,this.bleeds=!1,this.contained=!1}render(){return ze`
|
|
37358
37358
|
<main class="main">
|
|
37359
37359
|
<slot></slot>
|
|
37360
37360
|
</main>
|
|
37361
37361
|
`}},e.Page.meta={tag:"quantic-page",description:"Main content area of the quantic-layout shell. Wraps content in a semantic <main> element and fills available space.",category:"layout",slots:{"":{description:"Page content."}},relatedTo:["quantic-layout"]},e.Page.styles=l`
|
|
37362
37362
|
:host {
|
|
37363
37363
|
--quantic-component-page-padding: var(--quantic-spacing-4);
|
|
37364
|
+
--quantic-component-page-max-width: 80rem;
|
|
37365
|
+
--quantic-component-page-contained-padding-inline: calc(2 * var(--quantic-component-page-padding));
|
|
37364
37366
|
display: block;
|
|
37365
37367
|
width: 100%;
|
|
37366
37368
|
height: 100%;
|
|
@@ -37386,7 +37388,15 @@ const to="important",io=" !"+to,no=Re(class extends Oe{constructor(e){if(super(e
|
|
|
37386
37388
|
:host([fill]) .main {
|
|
37387
37389
|
overflow: hidden;
|
|
37388
37390
|
}
|
|
37389
|
-
|
|
37391
|
+
|
|
37392
|
+
@media (min-width: 48rem) {
|
|
37393
|
+
:host([contained]:not([bleeds])) .main {
|
|
37394
|
+
max-width: var(--quantic-component-page-max-width);
|
|
37395
|
+
margin-inline: auto;
|
|
37396
|
+
padding-inline: var(--quantic-component-page-contained-padding-inline);
|
|
37397
|
+
}
|
|
37398
|
+
}
|
|
37399
|
+
`,t([Ie({type:"boolean",default:"false",reflect:!0,description:"Constrain the page to the available height and clip overflow, so internal regions own their own scrolling (e.g. splitter panes, full-height grids, maps). Without this, the page grows with its content and the layout body slot scrolls."})],e.Page.prototype,"fill",void 0),t([Ie({type:"boolean",default:"false",reflect:!0,description:"Remove the default padding so content extends edge-to-edge. Useful for full-bleed layouts such as maps, images, or custom-padded regions."})],e.Page.prototype,"bleeds",void 0),t([Ie({type:"boolean",default:"false",reflect:!0,description:"Constrain the page content to a maximum width and center it horizontally on viewports wider than the md breakpoint. Override the width via --quantic-component-page-max-width and inline padding via --quantic-component-page-contained-padding-inline."})],e.Page.prototype,"contained",void 0),e.Page=t([be("quantic-page")],e.Page);const Ho={Top:"top",TopStart:"top-start",TopEnd:"top-end",Bottom:"bottom",BottomStart:"bottom-start",BottomEnd:"bottom-end",Left:"left",LeftStart:"left-start",LeftEnd:"left-end",Right:"right",RightStart:"right-start",RightEnd:"right-end"},To={Small:"sm",Medium:"md",Large:"lg"};var Do,Vo,Fo;e.TooltipPopup=class extends Ce{constructor(){super(...arguments),this.visible=!1}render(){return G`
|
|
37390
37400
|
<div class="content"><slot></slot></div>
|
|
37391
37401
|
<div class="arrow"></div>
|
|
37392
37402
|
`}},e.TooltipPopup.meta={tag:"quantic-tooltip-popup",description:"Internal floating content container for quantic-tooltip. Positioned absolutely relative to the trigger via @floating-ui/dom. Not intended for direct use — use quantic-tooltip instead.",category:"feedback",slots:{"":{description:"Tooltip content (managed by quantic-tooltip)."}},relatedTo:["quantic-tooltip"]},e.TooltipPopup.styles=l`
|
|
@@ -38421,7 +38431,47 @@ const to="important",io=" !"+to,no=Re(class extends Oe{constructor(e){if(super(e
|
|
|
38421
38431
|
width: 100%;
|
|
38422
38432
|
}
|
|
38423
38433
|
}
|
|
38424
|
-
`,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`
|
|
38425
38475
|
<div
|
|
38426
38476
|
class=${$e({sizer:!0,[`size--${this.size}`]:!0,[`color--${this.color}`]:!!this.color})}
|
|
38427
38477
|
aria-hidden="true"
|