@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.
@@ -64019,6 +64019,7 @@
64019
64019
  super(...arguments);
64020
64020
  this.fill = false;
64021
64021
  this.bleeds = false;
64022
+ this.contained = false;
64022
64023
  }
64023
64024
  render() {
64024
64025
  return u$2 `
@@ -64038,6 +64039,8 @@
64038
64039
  exports.Page.styles = i$7 `
64039
64040
  :host {
64040
64041
  --quantic-component-page-padding: var(--quantic-spacing-4);
64042
+ --quantic-component-page-max-width: 80rem;
64043
+ --quantic-component-page-contained-padding-inline: calc(2 * var(--quantic-component-page-padding));
64041
64044
  display: block;
64042
64045
  width: 100%;
64043
64046
  height: 100%;
@@ -64063,6 +64066,14 @@
64063
64066
  :host([fill]) .main {
64064
64067
  overflow: hidden;
64065
64068
  }
64069
+
64070
+ @media (min-width: 48rem) {
64071
+ :host([contained]:not([bleeds])) .main {
64072
+ max-width: var(--quantic-component-page-max-width);
64073
+ margin-inline: auto;
64074
+ padding-inline: var(--quantic-component-page-contained-padding-inline);
64075
+ }
64076
+ }
64066
64077
  `;
64067
64078
  __decorate([
64068
64079
  prop({
@@ -64080,6 +64091,14 @@
64080
64091
  description: 'Remove the default padding so content extends edge-to-edge. Useful for full-bleed layouts such as maps, images, or custom-padded regions.',
64081
64092
  })
64082
64093
  ], exports.Page.prototype, "bleeds", void 0);
64094
+ __decorate([
64095
+ prop({
64096
+ type: 'boolean',
64097
+ default: 'false',
64098
+ reflect: true,
64099
+ 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.',
64100
+ })
64101
+ ], exports.Page.prototype, "contained", void 0);
64083
64102
  exports.Page = __decorate([
64084
64103
  quanticElement('quantic-page')
64085
64104
  ], exports.Page);
@@ -66270,6 +66289,75 @@
66270
66289
  quanticElement('quantic-progress')
66271
66290
  ], exports.Progress);
66272
66291
 
66292
+ exports.Skeleton = class Skeleton extends QuanticElement {
66293
+ render() {
66294
+ return b `
66295
+ <span
66296
+ class="skeleton"
66297
+ aria-hidden="true"
66298
+ style=${o({
66299
+ '--cols': this.cols != null ? String(this.cols) : undefined,
66300
+ '--rows': this.rows != null ? String(this.rows) : undefined,
66301
+ 'animation-delay': this.delay != null ? `${this.delay}s` : undefined,
66302
+ })}
66303
+ ></span>
66304
+ `;
66305
+ }
66306
+ };
66307
+ exports.Skeleton.meta = {
66308
+ tag: 'quantic-skeleton',
66309
+ description: 'Animated placeholder used while content is loading. ' +
66310
+ 'Renders a shimmering block sized by column span and line-height units.',
66311
+ category: 'feedback',
66312
+ };
66313
+ exports.Skeleton.styles = i$7 `
66314
+ :host {
66315
+ display: block;
66316
+ }
66317
+
66318
+ .skeleton {
66319
+ display: block;
66320
+ border-radius: var(--quantic-radius-sm);
66321
+ width: calc(var(--cols, 12) / 12 * 100%);
66322
+ height: calc(var(--rows, 1) * 1em);
66323
+ background: linear-gradient(
66324
+ 120deg,
66325
+ rgb(var(--quantic-bg-tertiary-rgb) / 0.5) 25%,
66326
+ var(--quantic-bg-tertiary) 50%,
66327
+ rgb(var(--quantic-bg-tertiary-rgb) / 0.5) 75%
66328
+ );
66329
+ background-size: 200% 100%;
66330
+ animation: shimmer var(--quantic-component-skeleton-duration, 2.5s) ease-in-out infinite;
66331
+ }
66332
+
66333
+ @keyframes shimmer {
66334
+ from {
66335
+ background-position: 200% 0;
66336
+ }
66337
+ to {
66338
+ background-position: -200% 0;
66339
+ }
66340
+ }
66341
+
66342
+ @media (prefers-reduced-motion: reduce) {
66343
+ .skeleton {
66344
+ animation: none;
66345
+ }
66346
+ }
66347
+ `;
66348
+ __decorate([
66349
+ prop({ type: 'number', description: 'Width as a fraction of 12 columns (1–12). Defaults to 12 (full width).' })
66350
+ ], exports.Skeleton.prototype, "cols", void 0);
66351
+ __decorate([
66352
+ prop({ type: 'number', description: 'Height as a multiple of 1em. Defaults to 1.' })
66353
+ ], exports.Skeleton.prototype, "rows", void 0);
66354
+ __decorate([
66355
+ prop({ type: 'number', description: 'Animation delay in seconds. Useful for staggering multiple skeletons.' })
66356
+ ], exports.Skeleton.prototype, "delay", void 0);
66357
+ exports.Skeleton = __decorate([
66358
+ quanticElement('quantic-skeleton')
66359
+ ], exports.Skeleton);
66360
+
66273
66361
  const SpinnerColor = ComponentColor;
66274
66362
  const SpinnerSize = {
66275
66363
  ExtraSmall: 'xs',