@ctrliq/quantic-components 1.67.5 → 1.67.6

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.
@@ -12,7 +12,10 @@ import { OptionCardVariant, OptionCardSize, OptionCardType, } from './index.cons
12
12
  import { optionCardGroupContext, } from './index.context';
13
13
  import { AutoHideEmptySlotsMixin } from '../shared/auto-hide-empty-slots.mixin';
14
14
  import { event, prop } from '../shared/component-meta.decorators';
15
- let OptionCard = class OptionCard extends AutoHideEmptySlotsMixin(QuanticElement, ['icon', 'description']) {
15
+ let OptionCard = class OptionCard extends AutoHideEmptySlotsMixin(QuanticElement, [
16
+ 'icon',
17
+ 'description',
18
+ ]) {
16
19
  constructor() {
17
20
  super();
18
21
  this.checked = false;
@@ -145,21 +148,21 @@ let OptionCard = class OptionCard extends AutoHideEmptySlotsMixin(QuanticElement
145
148
  ${isRadio
146
149
  ? html `<div class="visual-radio"></div>`
147
150
  : html `<div class="visual-checkbox">
148
- <svg
149
- class="visual-checkmark"
150
- viewBox="0 0 12 12"
151
- fill="none"
152
- xmlns="http://www.w3.org/2000/svg"
153
- >
154
- <path
155
- d="M10 3L4.5 8.5L2 6"
156
- stroke="currentColor"
157
- stroke-width="1.6666"
158
- stroke-linecap="round"
159
- stroke-linejoin="round"
160
- />
161
- </svg>
162
- </div>`}
151
+ <svg
152
+ class="visual-checkmark"
153
+ viewBox="0 0 12 12"
154
+ fill="none"
155
+ xmlns="http://www.w3.org/2000/svg"
156
+ >
157
+ <path
158
+ d="M10 3L4.5 8.5L2 6"
159
+ stroke="currentColor"
160
+ stroke-width="1.6666"
161
+ stroke-linecap="round"
162
+ stroke-linejoin="round"
163
+ />
164
+ </svg>
165
+ </div>`}
163
166
  </div>
164
167
  </div>
165
168
  <slot name="description" class="description"></slot>
@@ -176,7 +179,9 @@ OptionCard.meta = {
176
179
  slots: {
177
180
  '': { description: 'Main label content of the card.' },
178
181
  icon: { description: 'Optional leading icon.' },
179
- description: { description: 'Optional secondary description below the label.' },
182
+ description: {
183
+ description: 'Optional secondary description below the label.',
184
+ },
180
185
  },
181
186
  relatedTo: ['quantic-option-card-group', 'quantic-field'],
182
187
  };
@@ -453,28 +458,65 @@ OptionCard.styles = css `
453
458
  }
454
459
  `;
455
460
  __decorate([
456
- prop({ type: 'boolean', default: 'false', reflect: true, description: 'Whether the card is currently selected.' })
461
+ prop({
462
+ type: 'boolean',
463
+ default: 'false',
464
+ reflect: true,
465
+ description: 'Whether the card is currently selected.',
466
+ })
457
467
  ], OptionCard.prototype, "checked", void 0);
458
468
  __decorate([
459
- prop({ type: 'boolean', default: 'false', reflect: true, description: 'Marks the card as required for form validation.' })
469
+ prop({
470
+ type: 'boolean',
471
+ default: 'false',
472
+ reflect: true,
473
+ description: 'Marks the card as required for form validation.',
474
+ })
460
475
  ], OptionCard.prototype, "required", void 0);
461
476
  __decorate([
462
- prop({ type: 'boolean', default: 'false', reflect: true, description: 'Prevents interaction.' })
477
+ prop({
478
+ type: 'boolean',
479
+ default: 'false',
480
+ reflect: true,
481
+ description: 'Prevents interaction.',
482
+ })
463
483
  ], OptionCard.prototype, "disabled", void 0);
464
484
  __decorate([
465
- prop({ type: 'boolean', default: 'false', reflect: true, description: 'Applies error styling.' })
485
+ prop({
486
+ type: 'boolean',
487
+ default: 'false',
488
+ reflect: true,
489
+ description: 'Applies error styling.',
490
+ })
466
491
  ], OptionCard.prototype, "invalid", void 0);
467
492
  __decorate([
468
- prop({ type: 'string', reflect: true, description: 'Form value submitted when this card is selected.' })
493
+ prop({
494
+ type: 'string',
495
+ reflect: true,
496
+ description: 'Form value submitted when this card is selected.',
497
+ })
469
498
  ], OptionCard.prototype, "value", void 0);
470
499
  __decorate([
471
- prop({ type: 'string', description: 'Name attribute passed to the underlying input for form association.' })
500
+ prop({
501
+ type: 'string',
502
+ description: 'Name attribute passed to the underlying input for form association.',
503
+ })
472
504
  ], OptionCard.prototype, "name", void 0);
473
505
  __decorate([
474
- prop({ type: 'OptionCardVariant', options: Object.values(OptionCardVariant), default: OptionCardVariant.Ghost, description: 'Visual style of the card.' })
506
+ prop({
507
+ type: 'OptionCardVariant',
508
+ options: Object.values(OptionCardVariant),
509
+ default: OptionCardVariant.Ghost,
510
+ description: 'Visual style of the card.',
511
+ })
475
512
  ], OptionCard.prototype, "variant", void 0);
476
513
  __decorate([
477
- prop({ type: 'OptionCardSize', options: Object.values(OptionCardSize), default: OptionCardSize.Medium, description: 'Controls padding and font size.' })
514
+ prop({
515
+ type: 'OptionCardSize',
516
+ options: Object.values(OptionCardSize),
517
+ default: OptionCardSize.Medium,
518
+ description: 'Controls padding and font size.',
519
+ })
478
520
  ], OptionCard.prototype, "size", void 0);
479
521
  __decorate([
480
522
  consume({ context: optionCardGroupContext, subscribe: true })
@@ -11,7 +11,11 @@ import { PanelHeaderSize } from './index.constants';
11
11
  import { classMap } from 'lit/directives/class-map.js';
12
12
  import { QuanticElement, quanticElement } from '../shared/quantic-element';
13
13
  import { prop } from '../shared/component-meta.decorators';
14
- let PanelHeader = class PanelHeader extends AutoHideEmptySlotsMixin(QuanticElement, ['pretitle', 'subtitle', 'meta']) {
14
+ let PanelHeader = class PanelHeader extends AutoHideEmptySlotsMixin(QuanticElement, [
15
+ 'pretitle',
16
+ 'subtitle',
17
+ 'meta',
18
+ ]) {
15
19
  constructor() {
16
20
  super(...arguments);
17
21
  this.size = PanelHeaderSize.Medium;
@@ -104,7 +108,12 @@ PanelHeader.styles = css `
104
108
  }
105
109
  `;
106
110
  __decorate([
107
- prop({ type: 'PanelHeaderSize', options: Object.values(PanelHeaderSize), default: PanelHeaderSize.Medium, description: 'Controls the title font size.' })
111
+ prop({
112
+ type: 'PanelHeaderSize',
113
+ options: Object.values(PanelHeaderSize),
114
+ default: PanelHeaderSize.Medium,
115
+ description: 'Controls the title font size.',
116
+ })
108
117
  ], PanelHeader.prototype, "size", void 0);
109
118
  PanelHeader = __decorate([
110
119
  quanticElement('quantic-panel-header')
@@ -11,7 +11,10 @@ import { classMap } from 'lit/directives/class-map.js';
11
11
  import { AutoHideEmptySlotsMixin } from '../shared/auto-hide-empty-slots.mixin';
12
12
  import { QuanticElement, quanticElement } from '../shared/quantic-element';
13
13
  import { prop } from '../shared/component-meta.decorators';
14
- let Panel = class Panel extends AutoHideEmptySlotsMixin(QuanticElement, ['header', 'footer']) {
14
+ let Panel = class Panel extends AutoHideEmptySlotsMixin(QuanticElement, [
15
+ 'header',
16
+ 'footer',
17
+ ]) {
15
18
  constructor() {
16
19
  super(...arguments);
17
20
  this.variant = PanelVariant.Outline;
@@ -38,7 +41,9 @@ Panel.meta = {
38
41
  'Use for grouping content sections. Prefer quantic-card when the surface needs to be clickable.',
39
42
  category: 'display',
40
43
  slots: {
41
- header: { description: 'Panel header — place quantic-panel-header here.' },
44
+ header: {
45
+ description: 'Panel header — place quantic-panel-header here.',
46
+ },
42
47
  '': { description: 'Main body content.' },
43
48
  footer: { description: 'Footer content.' },
44
49
  },
@@ -107,10 +112,19 @@ Panel.styles = css `
107
112
  }
108
113
  `;
109
114
  __decorate([
110
- prop({ type: 'PanelVariant', options: Object.values(PanelVariant), default: PanelVariant.Outline, description: 'Visual style of the panel.' })
115
+ prop({
116
+ type: 'PanelVariant',
117
+ options: Object.values(PanelVariant),
118
+ default: PanelVariant.Outline,
119
+ description: 'Visual style of the panel.',
120
+ })
111
121
  ], Panel.prototype, "variant", void 0);
112
122
  __decorate([
113
- prop({ type: 'boolean', default: 'false', description: 'Applies brand-color border and title highlight.' })
123
+ prop({
124
+ type: 'boolean',
125
+ default: 'false',
126
+ description: 'Applies brand-color border and title highlight.',
127
+ })
114
128
  ], Panel.prototype, "highlighted", void 0);
115
129
  Panel = __decorate([
116
130
  quanticElement('quantic-panel')
@@ -8,7 +8,10 @@ import { css, html } from 'lit';
8
8
  import { quanticElement, QuanticElement } from '../shared/quantic-element';
9
9
  import { AutoHideEmptySlotsMixin } from '../shared/auto-hide-empty-slots.mixin';
10
10
  import { prop } from '../shared/component-meta.decorators';
11
- let PopoverPopup = class PopoverPopup extends AutoHideEmptySlotsMixin(QuanticElement, ['header', 'footer']) {
11
+ let PopoverPopup = class PopoverPopup extends AutoHideEmptySlotsMixin(QuanticElement, [
12
+ 'header',
13
+ 'footer',
14
+ ]) {
12
15
  constructor() {
13
16
  super(...arguments);
14
17
  this.visible = false;
@@ -124,7 +127,12 @@ PopoverPopup.styles = css `
124
127
  }
125
128
  `;
126
129
  __decorate([
127
- prop({ type: 'boolean', default: 'false', reflect: true, description: 'Controls visibility and pointer-events. Managed by quantic-popover.' })
130
+ prop({
131
+ type: 'boolean',
132
+ default: 'false',
133
+ reflect: true,
134
+ description: 'Controls visibility and pointer-events. Managed by quantic-popover.',
135
+ })
128
136
  ], PopoverPopup.prototype, "visible", void 0);
129
137
  PopoverPopup = __decorate([
130
138
  quanticElement('quantic-popover-popup')