@ctrliq/quantic-components 1.85.1 → 1.86.1

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.
Files changed (51) hide show
  1. package/dist/card/card-carousel.stories.js +2 -2
  2. package/dist/card/card-group.stories.js +2 -2
  3. package/dist/checkbox/index.stories.js +3 -3
  4. package/dist/cluster/cluster.component.d.ts +7 -0
  5. package/dist/cluster/cluster.component.js +14 -5
  6. package/dist/cluster/index.constants.d.ts +3 -0
  7. package/dist/cluster/index.constants.js +3 -0
  8. package/dist/code-input/index.stories.js +3 -3
  9. package/dist/field/field.stories.d.ts +1 -0
  10. package/dist/field/field.stories.js +1 -0
  11. package/dist/grid/grid.component.d.ts +8 -0
  12. package/dist/grid/grid.component.js +16 -2
  13. package/dist/index.js.map +1 -1
  14. package/dist/meta/index.js.map +1 -1
  15. package/dist/meta.json +62 -65
  16. package/dist/number-input/index.stories.js +3 -3
  17. package/dist/option-card/option-card-group.stories.js +3 -3
  18. package/dist/panel/panel-group.stories.js +1 -1
  19. package/dist/quantic-components.js +48 -10
  20. package/dist/quantic-components.js.map +1 -1
  21. package/dist/quantic-components.min.js +3 -3
  22. package/dist/quantic-components.min.js.map +1 -1
  23. package/dist/radio/index.stories.js +1 -1
  24. package/dist/radio/radio-group.stories.js +5 -5
  25. package/dist/register.js.map +1 -1
  26. package/dist/shared/meta.types.d.ts +1 -1
  27. package/dist/tabs/index.stories.js +35 -35
  28. package/dist/text/index.constants.d.ts +4 -0
  29. package/dist/text/index.constants.js +2 -0
  30. package/dist/text/index.d.ts +7 -0
  31. package/dist/text/index.js +13 -3
  32. package/dist/text-input/index.stories.js +3 -3
  33. package/dist/textarea/index.stories.js +3 -3
  34. package/dist/toggle/index.stories.js +3 -3
  35. package/dist/types/cluster/cluster.component.d.ts +7 -0
  36. package/dist/types/cluster/index.constants.d.ts +3 -0
  37. package/dist/types/field/field.stories.d.ts +1 -0
  38. package/dist/types/grid/grid.component.d.ts +8 -0
  39. package/dist/types/shared/meta.types.d.ts +1 -1
  40. package/dist/types/text/index.constants.d.ts +4 -0
  41. package/dist/types/text/index.d.ts +7 -0
  42. package/package.json +1 -1
  43. package/dist/cluster/cluster.stories.d.ts +0 -57
  44. package/dist/cluster/cluster.stories.js +0 -67
  45. package/dist/grid/grid.stories.d.ts +0 -36
  46. package/dist/grid/grid.stories.js +0 -95
  47. package/dist/text/index.stories.d.ts +0 -50
  48. package/dist/text/index.stories.js +0 -55
  49. package/dist/types/cluster/cluster.stories.d.ts +0 -57
  50. package/dist/types/grid/grid.stories.d.ts +0 -36
  51. package/dist/types/text/index.stories.d.ts +0 -50
@@ -90,7 +90,7 @@ export const WithEventHandlers = story({
90
90
  ?disabled=${disabled}
91
91
  ?invalid=${invalid}
92
92
  ></quantic-number-input>
93
- <quantic-text size="xs">See actions panel for more details.</quantic-text>
93
+ <p class="story-note">See actions panel for more details.</p>
94
94
  </div>
95
95
  `);
96
96
  WithEventHandlers.parameters = {
@@ -123,9 +123,9 @@ export const FormAssociated = story({
123
123
  <quantic-button size="sm" type="reset" variant="outline">Reset</quantic-button>
124
124
  </div>
125
125
 
126
- <quantic-text size="xs">
126
+ <p class="story-note">
127
127
  Demonstrates form-associated behavior. Submit to see value in Actions panel.
128
- </quantic-text>
128
+ </p>
129
129
  </form>
130
130
  `);
131
131
  FormAssociated.parameters = {
@@ -153,7 +153,7 @@ export const InvalidGroup = story({
153
153
  args: { ...defaultArgs, name: 'invalid-group', required: true, invalid: true },
154
154
  }).render((args) => `
155
155
  <div>
156
- <quantic-text variant="label">Select a payment method *</quantic-text>
156
+ <p class="story-label">Select a payment method *</p>
157
157
  <quantic-option-card-group ${groupAttrs(args)}>
158
158
  <quantic-option-card value="credit" variant="${OptionCardVariant.Ghost}">
159
159
  <quantic-icon-lucide-credit-card slot="icon"></quantic-icon-lucide-credit-card>
@@ -173,9 +173,9 @@ export const InvalidGroup = story({
173
173
  <div slot="description">Direct transfer from your bank account</div>
174
174
  </quantic-option-card>
175
175
  </quantic-option-card-group>
176
- <quantic-text variant="helper" style="color: var(--quantic-text-error); margin-top: 0.5rem;">
176
+ <p class="story-note" style="color: var(--quantic-text-error); margin-top: var(--quantic-spacing-2);">
177
177
  Please select a payment method to continue
178
- </quantic-text>
178
+ </p>
179
179
  </div>
180
180
  `);
181
181
  export const MixedVariants = story({ args: { ...defaultArgs, name: 'mixed-variants' } }).render((args) => `
@@ -14,7 +14,7 @@ export default {
14
14
  parameters: {
15
15
  docs: {
16
16
  description: {
17
- component: `PanelGroup stacks panels vertically. Use the gap prop for named spacing — prefer this over Cluster when the children are panels.`,
17
+ component: `PanelGroup stacks panels vertically. Use the gap prop for named spacing.`,
18
18
  },
19
19
  },
20
20
  },
@@ -6864,6 +6864,14 @@
6864
6864
  quanticElement('quantic-card')
6865
6865
  ], exports.Card);
6866
6866
 
6867
+ /**
6868
+ * @deprecated Becoming internal anatomy. Grid sizes its children, so every layout it does
6869
+ * not anticipate is unreachable from outside the shadow boundary. Use `CardGroup`, which
6870
+ * owns its row sizing, or write the grid in your own stylesheet. `OptionCardGroup` is the
6871
+ * equivalent when the children are option cards. The element stays registered because
6872
+ * those two render it; the public export goes in the next major. See
6873
+ * `rules/component-api-boundary.md`.
6874
+ */
6867
6875
  exports.Grid = class Grid extends QuanticElement {
6868
6876
  constructor() {
6869
6877
  super(...arguments);
@@ -6883,10 +6891,16 @@
6883
6891
  };
6884
6892
  exports.Grid.meta = {
6885
6893
  tag: 'quantic-grid',
6886
- description: 'CSS grid layout container that arranges child items into a responsive multi-column grid. ' +
6887
- 'Column count and gap scale automatically with container width based on the chosen density preset.',
6894
+ description: 'Deprecated public export, becoming internal anatomy of quantic-card-group and ' +
6895
+ 'quantic-option-card-group. Use quantic-card-group, quantic-option-card-group for ' +
6896
+ 'option cards, or write the grid in your own stylesheet.',
6888
6897
  category: 'layout',
6898
+ deprecated: {
6899
+ use: 'quantic-card-group',
6900
+ reason: 'Grid sizes its children, so any track or row rule it does not anticipate cannot be reached from outside.',
6901
+ },
6889
6902
  slots: { '': { description: 'Grid items to be laid out.' } },
6903
+ relatedTo: ['quantic-card-group', 'quantic-option-card-group'],
6890
6904
  };
6891
6905
  exports.Grid.styles = i$7 `
6892
6906
  :host {
@@ -8603,11 +8617,13 @@
8603
8617
  quanticElement('quantic-checkbox')
8604
8618
  ], exports.Checkbox);
8605
8619
 
8620
+ /** @deprecated `Cluster` is deprecated. Set `flex-direction` in your own stylesheet. */
8606
8621
  exports.ClusterAxis = void 0;
8607
8622
  (function (ClusterAxis) {
8608
8623
  ClusterAxis["Horizontal"] = "horizontal";
8609
8624
  ClusterAxis["Vertical"] = "vertical";
8610
8625
  })(exports.ClusterAxis || (exports.ClusterAxis = {}));
8626
+ /** @deprecated `Cluster` is deprecated. Set `gap` to a `--quantic-spacing-*` token in your own stylesheet. */
8611
8627
  exports.ClusterGap = void 0;
8612
8628
  (function (ClusterGap) {
8613
8629
  ClusterGap["None"] = "none";
@@ -8617,6 +8633,7 @@
8617
8633
  ClusterGap["Large"] = "lg";
8618
8634
  ClusterGap["ExtraLarge"] = "xl";
8619
8635
  })(exports.ClusterGap || (exports.ClusterGap = {}));
8636
+ /** @deprecated `Cluster` is deprecated. Set `align-items` in your own stylesheet. */
8620
8637
  exports.ClusterAlign = void 0;
8621
8638
  (function (ClusterAlign) {
8622
8639
  ClusterAlign["Start"] = "start";
@@ -8625,6 +8642,13 @@
8625
8642
  ClusterAlign["Stretch"] = "stretch";
8626
8643
  })(exports.ClusterAlign || (exports.ClusterAlign = {}));
8627
8644
 
8645
+ /**
8646
+ * @deprecated Presentation belongs in CSS. Every prop this element carries maps
8647
+ * one-to-one to a CSS property, so it is a `div` with a shadow root around it. For a
8648
+ * uniform run of children use the group that names them: `TagGroup`, `BadgeGroup` or
8649
+ * `ActionGroup`. Anything else is page layout, so write the flex rule in your own
8650
+ * stylesheet. Removed in the next major. See `rules/component-api-boundary.md`.
8651
+ */
8628
8652
  exports.Cluster = class Cluster extends QuanticElement {
8629
8653
  constructor() {
8630
8654
  super(...arguments);
@@ -8650,13 +8674,15 @@
8650
8674
  };
8651
8675
  exports.Cluster.meta = {
8652
8676
  tag: 'quantic-cluster',
8653
- description: 'Generic flex container that arranges child items along a horizontal or vertical axis with consistent spacing. ' +
8654
- 'Use for grouping small inline elements like badges, tags, or buttons. ' +
8655
- 'Prefer quantic-card-group for cards, quantic-panel-group for panels, and quantic-grid for multi-column responsive layouts — ' +
8656
- 'those components provide semantics and density presets that Cluster does not.',
8677
+ description: 'Deprecated generic flex container. Use quantic-tag-group, quantic-badge-group or ' +
8678
+ 'quantic-action-group for a uniform run of children, and a flex rule in your own ' +
8679
+ 'stylesheet for anything else.',
8657
8680
  category: 'layout',
8681
+ deprecated: {
8682
+ reason: 'Every prop maps one-to-one to a CSS property, so the element adds a shadow boundary and nothing else.',
8683
+ },
8658
8684
  slots: { '': { description: 'Items to arrange.' } },
8659
- relatedTo: ['quantic-grid', 'quantic-card-group', 'quantic-panel-group'],
8685
+ relatedTo: ['quantic-tag-group', 'quantic-badge-group', 'quantic-action-group'],
8660
8686
  };
8661
8687
  exports.Cluster.styles = i$7 `
8662
8688
  :host {
@@ -70115,10 +70141,12 @@
70115
70141
  quanticElement('quantic-tag-group')
70116
70142
  ], exports.TagGroup);
70117
70143
 
70144
+ /** @deprecated `Text` is deprecated. Set `font-family` from a `--quantic-font-family-*` token in your own stylesheet. */
70118
70145
  const TextVariant = {
70119
70146
  Body: 'body',
70120
70147
  Display: 'display',
70121
70148
  };
70149
+ /** @deprecated `Text` is deprecated. Set `font-size` from a `--quantic-font-size-*` token in your own stylesheet. */
70122
70150
  const TextSize = {
70123
70151
  ExtraSmall: 'xs',
70124
70152
  Small: 'sm',
@@ -70145,6 +70173,13 @@
70145
70173
  ...Object.values(TextVariant).map(variantRule),
70146
70174
  ...Object.values(TextSize).flatMap((size) => Object.values(TextVariant).map((variant) => sizeRule(size, variant))),
70147
70175
  ].join('\n');
70176
+ /**
70177
+ * @deprecated The markup belongs to the consumer. `as` renders the consumer's own element
70178
+ * inside a shadow root, where `prose.scss` and `type.scss` cannot reach it, type selectors
70179
+ * stop matching, and `aria-labelledby` and `label[for]` cannot cross the boundary. Write
70180
+ * the semantic element in your own document and let the typography stylesheet style it.
70181
+ * Removed in the next major. See `rules/component-api-boundary.md`.
70182
+ */
70148
70183
  exports.Text = class Text extends QuanticElement {
70149
70184
  constructor() {
70150
70185
  super(...arguments);
@@ -70163,13 +70198,16 @@
70163
70198
  };
70164
70199
  exports.Text.meta = {
70165
70200
  tag: 'quantic-text',
70166
- description: 'Typography component for rendering text with consistent sizing, weight, and color tokens. ' +
70167
- 'Renders any HTML element via the `as` prop for semantic correctness.',
70201
+ description: 'Deprecated typography wrapper. Write the semantic element in your own document, ' +
70202
+ 'where quantic-css type styles and IDREF-based accessibility can reach it.',
70168
70203
  category: 'display',
70204
+ deprecated: {
70205
+ reason: "Renders the consumer's element inside a shadow root, so the typography stylesheet cannot style it and IDREFs cannot cross the boundary.",
70206
+ },
70169
70207
  slots: {
70170
70208
  '': { description: 'Text content to render.' },
70171
70209
  },
70172
- relatedTo: [],
70210
+ relatedTo: ['quantic-prose'],
70173
70211
  };
70174
70212
  exports.Text.styles = r$6(rules);
70175
70213
  __decorate([