@ctrliq/quantic-components 1.83.0 → 1.84.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 (91) hide show
  1. package/dist/action-group/action-group.component.d.ts +13 -0
  2. package/dist/action-group/action-group.component.js +63 -0
  3. package/dist/action-group/index.d.ts +1 -0
  4. package/dist/action-group/index.js +1 -0
  5. package/dist/action-group/index.stories.d.ts +25 -0
  6. package/dist/action-group/index.stories.js +59 -0
  7. package/dist/astro.d.ts +4 -1
  8. package/dist/astro.js +4 -1
  9. package/dist/astro.js.map +1 -1
  10. package/dist/badge/badge-group.component.d.ts +13 -0
  11. package/dist/badge/badge-group.component.js +62 -0
  12. package/dist/badge/badge-group.stories.d.ts +41 -0
  13. package/dist/badge/badge-group.stories.js +62 -0
  14. package/dist/badge/index.d.ts +1 -0
  15. package/dist/badge/index.js +1 -0
  16. package/dist/button-bar/button-bar-item.d.ts +3 -0
  17. package/dist/button-bar/button-bar-item.js +12 -1
  18. package/dist/button-bar/button-bar.d.ts +9 -0
  19. package/dist/button-bar/button-bar.js +53 -2
  20. package/dist/button-bar/index.stories.js +2 -2
  21. package/dist/button-bar/index.utils.d.ts +6 -0
  22. package/dist/button-bar/index.utils.js +31 -0
  23. package/dist/button-bar/index.utils.test.d.ts +1 -0
  24. package/dist/button-bar/index.utils.test.js +53 -0
  25. package/dist/button-group/button-group.js +1 -2
  26. package/dist/capacity-bar/index.js +30 -30
  27. package/dist/card/card-carousel.component.js +35 -35
  28. package/dist/card/card-group.component.js +2 -8
  29. package/dist/card/card.component.js +38 -38
  30. package/dist/code-input/index.js +33 -33
  31. package/dist/combobox/index.js +30 -30
  32. package/dist/dialog/dialog-actions.js +11 -10
  33. package/dist/dialog/dialog.js +18 -18
  34. package/dist/dropdown-menu/item.component.js +24 -24
  35. package/dist/field/field-group.component.js +13 -13
  36. package/dist/field/field.component.js +31 -31
  37. package/dist/fieldset/fieldset.component.js +27 -27
  38. package/dist/grid/grid.component.js +31 -31
  39. package/dist/index.d.ts +1 -0
  40. package/dist/index.js +1 -0
  41. package/dist/index.js.map +1 -1
  42. package/dist/layout/layout.component.js +1 -0
  43. package/dist/layout/navbar-menu-item.component.js +1 -0
  44. package/dist/layout/sidebar-menu-item.component.js +1 -0
  45. package/dist/log-output/log-output.component.js +1 -1
  46. package/dist/meta/index.js +6 -0
  47. package/dist/meta/index.js.map +1 -1
  48. package/dist/meta/public-css-variables.test.d.ts +1 -0
  49. package/dist/meta/public-css-variables.test.js +244 -0
  50. package/dist/meta.json +110 -5
  51. package/dist/number-input/index.js +18 -17
  52. package/dist/option-card/option-card.component.js +27 -27
  53. package/dist/panel/panel-group.component.js +10 -7
  54. package/dist/panel/panel.component.js +3 -3
  55. package/dist/progress/index.js +15 -15
  56. package/dist/quantic-components.js +709 -454
  57. package/dist/quantic-components.js.map +1 -1
  58. package/dist/quantic-components.min.js +606 -548
  59. package/dist/quantic-components.min.js.map +1 -1
  60. package/dist/register.js.map +1 -1
  61. package/dist/select/index.js +8 -8
  62. package/dist/spinner/index.js +7 -3
  63. package/dist/table/table-cell.component.js +2 -2
  64. package/dist/table/table-head.component.js +1 -1
  65. package/dist/table/table.component.js +16 -16
  66. package/dist/tag/index.d.ts +1 -0
  67. package/dist/tag/index.js +1 -0
  68. package/dist/tag/tag-group.component.d.ts +13 -0
  69. package/dist/tag/tag-group.component.js +62 -0
  70. package/dist/tag/tag-group.stories.d.ts +34 -0
  71. package/dist/tag/tag-group.stories.js +65 -0
  72. package/dist/text-input/index.js +10 -10
  73. package/dist/textarea/index.js +10 -10
  74. package/dist/tooltip/tooltip.js +0 -1
  75. package/dist/types/action-group/action-group.component.d.ts +13 -0
  76. package/dist/types/action-group/index.d.ts +1 -0
  77. package/dist/types/action-group/index.stories.d.ts +25 -0
  78. package/dist/types/astro.d.ts +4 -1
  79. package/dist/types/badge/badge-group.component.d.ts +13 -0
  80. package/dist/types/badge/badge-group.stories.d.ts +41 -0
  81. package/dist/types/badge/index.d.ts +1 -0
  82. package/dist/types/button-bar/button-bar-item.d.ts +3 -0
  83. package/dist/types/button-bar/button-bar.d.ts +9 -0
  84. package/dist/types/button-bar/index.utils.d.ts +6 -0
  85. package/dist/types/button-bar/index.utils.test.d.ts +1 -0
  86. package/dist/types/index.d.ts +1 -0
  87. package/dist/types/meta/public-css-variables.test.d.ts +1 -0
  88. package/dist/types/tag/index.d.ts +1 -0
  89. package/dist/types/tag/tag-group.component.d.ts +13 -0
  90. package/dist/types/tag/tag-group.stories.d.ts +34 -0
  91. package/package.json +5 -3
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,244 @@
1
+ import { globSync, readFileSync } from 'node:fs';
2
+ import { dirname, join } from 'node:path';
3
+ import { fileURLToPath } from 'node:url';
4
+ import postcss from 'postcss';
5
+ import { describe, expect, it } from 'vitest';
6
+ const SRC_DIR = join(dirname(fileURLToPath(import.meta.url)), '..');
7
+ const PUBLIC = /^--quantic-component-[a-z0-9-]+$/;
8
+ const PRIVATE = /^--quantic-internal-[a-z0-9-]+$/;
9
+ const TAG = /@quanticElement\(\s*['"`]quantic-([a-z0-9-]+)['"`]/g;
10
+ const VAR_CALL = /var\(\s*(--[a-z0-9_-]+)/g;
11
+ function skipInterpolation(source, start) {
12
+ let depth = 0;
13
+ for (let cursor = start; cursor < source.length; cursor += 1) {
14
+ if (source[cursor] === '{')
15
+ depth += 1;
16
+ else if (source[cursor] === '}') {
17
+ depth -= 1;
18
+ if (depth === 0)
19
+ return cursor + 1;
20
+ }
21
+ }
22
+ return source.length;
23
+ }
24
+ function readTemplate(source, start) {
25
+ let css = '';
26
+ let index = start;
27
+ while (index < source.length && source[index] !== '`') {
28
+ if (source[index] === '$' && source[index + 1] === '{') {
29
+ index = skipInterpolation(source, index + 1);
30
+ continue;
31
+ }
32
+ css += source[index];
33
+ index += 1;
34
+ }
35
+ return { css, end: index };
36
+ }
37
+ function isInComment(source, matchIndex) {
38
+ const lineStart = source.lastIndexOf('\n', matchIndex) + 1;
39
+ const prefix = source.slice(lineStart, matchIndex).trim();
40
+ return prefix.startsWith('*') || prefix.startsWith('//');
41
+ }
42
+ function parse(source) {
43
+ const blocks = /\bcss`/g;
44
+ const roots = [];
45
+ for (let match = blocks.exec(source); match; match = blocks.exec(source)) {
46
+ const { css, end } = readTemplate(source, blocks.lastIndex);
47
+ blocks.lastIndex = end + 1;
48
+ if (!isInComment(source, match.index))
49
+ roots.push(postcss.parse(css));
50
+ }
51
+ return roots;
52
+ }
53
+ function namespacesOf(source) {
54
+ return [...source.matchAll(TAG)].map(([, name]) => `--quantic-component-${name}-`);
55
+ }
56
+ const elements = globSync('**/*.ts', { cwd: SRC_DIR })
57
+ .filter((file) => !/\.(stories|test|d)\.ts$/.test(file))
58
+ .map((file) => ({ file, source: readFileSync(join(SRC_DIR, file), 'utf-8') }))
59
+ .map(({ file, source }) => ({
60
+ file,
61
+ dir: file.split('/')[0],
62
+ tags: [...source.matchAll(TAG)].map(([, name]) => `quantic-${name}`),
63
+ roots: parse(source),
64
+ namespaces: namespacesOf(source),
65
+ }))
66
+ .filter(({ roots }) => roots.length > 0);
67
+ const components = Object.entries(elements
68
+ .reduce((grouped, { dir, roots, namespaces }) => {
69
+ const found = grouped[dir] ?? { file: dir, roots: [], namespaces: [] };
70
+ return {
71
+ ...grouped,
72
+ [dir]: {
73
+ file: dir,
74
+ roots: [...found.roots, ...roots],
75
+ namespaces: [...found.namespaces, ...namespaces],
76
+ },
77
+ };
78
+ }, {})).map(([, component]) => component);
79
+ function hasFallback(value, openIndex) {
80
+ return [...value.slice(openIndex)].reduce((state, char) => {
81
+ if (state.closed)
82
+ return state;
83
+ if (char === '(')
84
+ return { ...state, depth: state.depth + 1 };
85
+ if (char === ')') {
86
+ const depth = state.depth - 1;
87
+ return { ...state, depth, closed: depth === 0 };
88
+ }
89
+ if (char === ',' && state.depth === 1)
90
+ return { ...state, found: true };
91
+ return state;
92
+ }, { depth: 0, closed: false, found: false }).found;
93
+ }
94
+ function varCalls(value) {
95
+ return [...value.matchAll(VAR_CALL)].map((match) => ({
96
+ name: match[1],
97
+ hasFallback: hasFallback(value, (match.index ?? 0) + 3),
98
+ }));
99
+ }
100
+ function isHostOnly(rule) {
101
+ return rule.selectors.every((selector) => selector.trim().startsWith(':host'));
102
+ }
103
+ function declarations(component) {
104
+ const found = [];
105
+ for (const root of component.roots) {
106
+ root.walkDecls((decl) => {
107
+ found.push(decl);
108
+ });
109
+ }
110
+ return found;
111
+ }
112
+ function reads(component) {
113
+ const names = new Set();
114
+ for (const root of component.roots) {
115
+ root.walkDecls((decl) => {
116
+ for (const { name } of varCalls(decl.value)) {
117
+ if (name !== decl.prop)
118
+ names.add(name);
119
+ }
120
+ });
121
+ }
122
+ return names;
123
+ }
124
+ function hostDeclared(component) {
125
+ const names = new Set();
126
+ for (const decl of declarations(component)) {
127
+ const parent = decl.parent;
128
+ if (parent?.type === 'rule' && isHostOnly(parent))
129
+ names.add(decl.prop);
130
+ }
131
+ return names;
132
+ }
133
+ function innerDeclarations(component, pattern) {
134
+ return declarations(component).filter((decl) => {
135
+ if (!pattern.test(decl.prop))
136
+ return false;
137
+ const parent = decl.parent;
138
+ if (!parent || parent.type !== 'rule')
139
+ return true;
140
+ return !isHostOnly(parent);
141
+ });
142
+ }
143
+ function privateDeclarations(element) {
144
+ const names = new Set();
145
+ for (const root of element.roots) {
146
+ root.walkDecls((decl) => {
147
+ if (PRIVATE.test(decl.prop))
148
+ names.add(decl.prop);
149
+ });
150
+ }
151
+ return names;
152
+ }
153
+ describe('public CSS variables', () => {
154
+ it('parses the stylesheet of every component that declares one', () => {
155
+ expect(components.length).toBeGreaterThan(40);
156
+ });
157
+ it('reads a stylesheet past an interpolated template literal', () => {
158
+ const spinner = components.find((component) => component.file === 'spinner');
159
+ expect(spinner, 'quantic-spinner is the fixture for this check').toBeDefined();
160
+ const atRules = (spinner?.roots ?? []).flatMap((root) => root.nodes.filter((node) => node.type === 'atrule').map((node) => node.name));
161
+ expect(atRules).toContain('keyframes');
162
+ });
163
+ it('never declares a public variable on the element that reads it', () => {
164
+ const dead = components.flatMap((component) => {
165
+ const read = reads(component);
166
+ return innerDeclarations(component, PUBLIC)
167
+ .filter((decl) => read.has(decl.prop))
168
+ .map((decl) => `${decl.prop} in ${component.file} (on "${decl.parent.selector}")`);
169
+ });
170
+ expect([...new Set(dead)]).toEqual([]);
171
+ });
172
+ it('names every private variable after the component that owns it', () => {
173
+ const generic = components.flatMap((component) => {
174
+ const owned = `--quantic-internal-${component.file}-`;
175
+ const names = [
176
+ ...declarations(component)
177
+ .map((decl) => decl.prop)
178
+ .filter((name) => PRIVATE.test(name)),
179
+ ...[...reads(component)].filter((name) => PRIVATE.test(name)),
180
+ ];
181
+ return names
182
+ .filter((name) => !name.startsWith(owned))
183
+ .map((name) => `${name} in ${component.file} (expected ${owned}*)`);
184
+ });
185
+ expect([...new Set(generic)]).toEqual([]);
186
+ });
187
+ it('names every private variable after the element that declares it', () => {
188
+ const misattributed = elements
189
+ .filter((element) => element.tags.length > 0)
190
+ .flatMap((element) => [...privateDeclarations(element)]
191
+ .filter((name) => !element.tags.some((tag) => name.startsWith(`--quantic-internal-${tag.replace(/^quantic-/, '')}-`)))
192
+ .map((name) => `${name} declared by ${element.tags.join(', ')} (${element.file})`));
193
+ expect([...new Set(misattributed)]).toEqual([]);
194
+ });
195
+ it('declares every private variable it reads', () => {
196
+ const dangling = components.flatMap((component) => {
197
+ const declared = new Set(declarations(component)
198
+ .filter((decl) => PRIVATE.test(decl.prop))
199
+ .map((decl) => decl.prop));
200
+ return [...reads(component)]
201
+ .filter((name) => PRIVATE.test(name) && !declared.has(name))
202
+ .map((name) => `${name} in ${component.file}`);
203
+ });
204
+ expect(dangling).toEqual([]);
205
+ });
206
+ it('reads every private variable it declares', () => {
207
+ const orphaned = components.flatMap((component) => {
208
+ const read = reads(component);
209
+ return declarations(component)
210
+ .filter((decl) => PRIVATE.test(decl.prop) && !read.has(decl.prop))
211
+ .map((decl) => `${decl.prop} in ${component.file}`);
212
+ });
213
+ expect([...new Set(orphaned)]).toEqual([]);
214
+ });
215
+ it('reads every public variable it declares in its own namespace', () => {
216
+ const orphaned = components.flatMap((component) => {
217
+ const read = reads(component);
218
+ return declarations(component)
219
+ .filter((decl) => PUBLIC.test(decl.prop) && !read.has(decl.prop))
220
+ .filter((decl) => component.namespaces.some((prefix) => decl.prop.startsWith(prefix)))
221
+ .map((decl) => `${decl.prop} in ${component.file}`);
222
+ });
223
+ expect([...new Set(orphaned)]).toEqual([]);
224
+ });
225
+ it('gives every public read a default', () => {
226
+ const bare = components.flatMap((component) => {
227
+ const onHost = hostDeclared(component);
228
+ const found = [];
229
+ for (const root of component.roots) {
230
+ root.walkDecls((decl) => {
231
+ if (decl.prop.startsWith('--'))
232
+ return;
233
+ for (const { name, hasFallback } of varCalls(decl.value)) {
234
+ if (PUBLIC.test(name) && !hasFallback && !onHost.has(name)) {
235
+ found.push(`${name} in ${component.file} (read by ${decl.prop})`);
236
+ }
237
+ }
238
+ });
239
+ }
240
+ return found;
241
+ });
242
+ expect([...new Set(bare)]).toEqual([]);
243
+ });
244
+ });
package/dist/meta.json CHANGED
@@ -1,7 +1,42 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "generated": "2026-08-27T20:08:17.213Z",
3
+ "generated": "2026-08-27T21:15:44.818Z",
4
4
  "components": [
5
+ {
6
+ "tag": "quantic-action-group",
7
+ "description": "A row of related actions sharing one accessible name and a consistent gap. Takes quantic-button, and quantic-dropdown-menu or quantic-popover when the trigger is a button. Wraps when the row runs out of width. Gap: --quantic-component-action-group-gap. Use quantic-button-bar when the buttons should read as one joined control.",
8
+ "category": "action",
9
+ "props": [
10
+ {
11
+ "name": "ariaLabel",
12
+ "description": "Accessible name for the group.",
13
+ "type": "string"
14
+ }
15
+ ],
16
+ "slots": [
17
+ {
18
+ "name": "",
19
+ "description": "quantic-button elements, or a quantic-dropdown-menu or quantic-popover triggered by one."
20
+ }
21
+ ],
22
+ "examples": [
23
+ "<quantic-action-group ><quantic-button variant=\"outline\">Cancel</quantic-button><quantic-button variant=\"primary\">Save</quantic-button></quantic-action-group>",
24
+ "<quantic-action-group aria-label=\"Asset actions\">\n <quantic-button variant=\"ghost\" size=\"sm\">\n <quantic-icon-lucide-copy size=\"xs\"></quantic-icon-lucide-copy>\n </quantic-button>\n <quantic-button variant=\"ghost\" size=\"sm\">\n <quantic-icon-lucide-download size=\"xs\"></quantic-icon-lucide-download>\n </quantic-button>\n </quantic-action-group>",
25
+ "<quantic-dialog open>\n <quantic-dialog-title slot=\"header\">Confirm action</quantic-dialog-title>\n <p>Are you sure you want to perform this action? This cannot be undone.</p>\n <quantic-dialog-actions slot=\"footer\">\n <quantic-button variant=\"outline\">Cancel</quantic-button>\n <quantic-button variant=\"primary\">Confirm</quantic-button>\n </quantic-dialog-actions>\n </quantic-dialog>",
26
+ "<quantic-action-group ><quantic-button variant=\"outline\">Delete</quantic-button><quantic-button variant=\"outline\">Duplicate</quantic-button><quantic-button variant=\"primary\">Publish</quantic-button></quantic-action-group>",
27
+ "<quantic-action-group aria-label=\"Record actions\"><quantic-button variant=\"outline\">Cancel</quantic-button><quantic-button variant=\"primary\">Save</quantic-button></quantic-action-group>"
28
+ ],
29
+ "relatedTo": [
30
+ "quantic-button",
31
+ "quantic-button-bar",
32
+ "quantic-dialog-actions"
33
+ ],
34
+ "subComponents": [
35
+ "quantic-button",
36
+ "quantic-dropdown-menu",
37
+ "quantic-popover"
38
+ ]
39
+ },
5
40
  {
6
41
  "tag": "quantic-alert",
7
42
  "description": "Inline alert banner with severity styles and optional dismiss action. Visibility is owned by the consumer.",
@@ -146,6 +181,38 @@
146
181
  "quantic-status-badge"
147
182
  ]
148
183
  },
184
+ {
185
+ "tag": "quantic-badge-group",
186
+ "description": "A run of quantic-badge or quantic-status-badge sharing one accessible name and a consistent gap. Wraps across lines, and each badge keeps its own size. Gap: --quantic-component-badge-group-gap. Use quantic-tag-group for tags.",
187
+ "category": "display",
188
+ "props": [
189
+ {
190
+ "name": "ariaLabel",
191
+ "description": "Accessible name for the group.",
192
+ "type": "string"
193
+ }
194
+ ],
195
+ "slots": [
196
+ {
197
+ "name": "",
198
+ "description": "quantic-badge or quantic-status-badge elements."
199
+ }
200
+ ],
201
+ "examples": [
202
+ "<quantic-badge-group ><quantic-badge color=\"gray\" size=\"sm\">Backgrounds</quantic-badge><quantic-badge color=\"gray\" size=\"sm\">Email signatures</quantic-badge><quantic-badge color=\"gray\" size=\"sm\">Headers</quantic-badge></quantic-badge-group>",
203
+ "<quantic-badge-group aria-label=\"Service status\">\n <quantic-status-badge color=\"success\" size=\"sm\">Running</quantic-status-badge>\n <quantic-status-badge color=\"warning\" size=\"sm\">Degraded</quantic-status-badge>\n <quantic-status-badge color=\"error\" size=\"sm\">Offline</quantic-status-badge>\n </quantic-badge-group>",
204
+ "<quantic-badge-group aria-label=\"Asset types\"><quantic-badge color=\"gray\" size=\"sm\">Backgrounds</quantic-badge><quantic-badge color=\"gray\" size=\"sm\">Email signatures</quantic-badge><quantic-badge color=\"gray\" size=\"sm\">Headers</quantic-badge></quantic-badge-group>",
205
+ "<quantic-badge-group ><quantic-badge color=\"gray\" size=\"sm\">Backgrounds</quantic-badge><quantic-badge color=\"gray\" size=\"sm\">Email signatures</quantic-badge><quantic-badge color=\"gray\" size=\"sm\">Headers</quantic-badge><quantic-badge color=\"gray\" size=\"sm\">Social graphics</quantic-badge><quantic-badge color=\"gray\" size=\"sm\">Slide templates</quantic-badge><quantic-badge color=\"gray\" size=\"sm\">Press kits</quantic-badge><quantic-badge color=\"gray\" size=\"sm\">Advisory cards</quantic-badge></quantic-badge-group>"
206
+ ],
207
+ "relatedTo": [
208
+ "quantic-badge",
209
+ "quantic-tag-group"
210
+ ],
211
+ "subComponents": [
212
+ "quantic-badge",
213
+ "quantic-status-badge"
214
+ ]
215
+ },
149
216
  {
150
217
  "tag": "quantic-button",
151
218
  "description": "Clickable action trigger for form submission, primary CTAs, and secondary actions. Supports icon-only mode and polymorphic rendering as an <a> or <span>. Prefer over quantic-icon-label when the element needs to be interactive.",
@@ -285,7 +352,7 @@
285
352
  },
286
353
  {
287
354
  "tag": "quantic-button-bar",
288
- "description": "Toolbar of related buttons joined into one cohesive control, with shared sizing. Use for switching between views or modes, and for a compact run of icon actions. Items carry aria-pressed via active, so a set can behave as exclusive options or as independent toggles. Prefer quantic-button for a standalone action, and quantic-tabs when each segment reveals a panel.",
355
+ "description": "Toolbar of related buttons joined into one cohesive control, with shared sizing. Use for switching between views or modes, and for a compact run of icon actions. Items carry aria-pressed via active, so a set can behave as exclusive options or as independent toggles. Focus follows the toolbar pattern: one tab stop, arrow keys move between items, Home and End jump to the ends. Prefer quantic-button for a standalone action, and quantic-tabs when each segment reveals a panel.",
289
356
  "category": "action",
290
357
  "props": [
291
358
  {
@@ -362,7 +429,7 @@
362
429
  },
363
430
  {
364
431
  "tag": "quantic-button-group",
365
- "description": "Deprecated alias of quantic-button-bar. This element never grouped buttons: it joins borders and gives its items a pressed state. Use quantic-button-bar.",
432
+ "description": "Deprecated alias of quantic-button-bar. Use quantic-button-bar.",
366
433
  "category": "action",
367
434
  "deprecated": {
368
435
  "use": "quantic-button-bar",
@@ -1655,7 +1722,7 @@
1655
1722
  },
1656
1723
  {
1657
1724
  "tag": "quantic-dialog-actions",
1658
- "description": "Footer actions bar sub-component for quantic-dialog. Lays out action buttons (confirm/cancel) flush to the right.",
1725
+ "description": "Footer actions bar for quantic-dialog. Lays action buttons out as a quantic-action-group, flush to the right.",
1659
1726
  "category": "feedback",
1660
1727
  "slots": [
1661
1728
  {
@@ -1665,7 +1732,11 @@
1665
1732
  ],
1666
1733
  "relatedTo": [
1667
1734
  "quantic-dialog",
1668
- "quantic-button"
1735
+ "quantic-button",
1736
+ "quantic-action-group"
1737
+ ],
1738
+ "subComponents": [
1739
+ "quantic-action-group"
1669
1740
  ]
1670
1741
  },
1671
1742
  {
@@ -4701,6 +4772,40 @@
4701
4772
  "quantic-badge"
4702
4773
  ]
4703
4774
  },
4775
+ {
4776
+ "tag": "quantic-tag-group",
4777
+ "description": "A run of quantic-tag, quantic-status-tag or quantic-count-tag sharing one accessible name and a consistent gap. Wraps across lines, and each tag keeps its own size. Gap: --quantic-component-tag-group-gap. Use quantic-badge-group for badges.",
4778
+ "category": "display",
4779
+ "props": [
4780
+ {
4781
+ "name": "ariaLabel",
4782
+ "description": "Accessible name for the group.",
4783
+ "type": "string"
4784
+ }
4785
+ ],
4786
+ "slots": [
4787
+ {
4788
+ "name": "",
4789
+ "description": "quantic-tag, quantic-status-tag or quantic-count-tag elements."
4790
+ }
4791
+ ],
4792
+ "examples": [
4793
+ "<quantic-tag-group ><quantic-tag size=\"md\">Compute</quantic-tag><quantic-tag size=\"md\">Storage</quantic-tag><quantic-tag size=\"md\">Networking</quantic-tag></quantic-tag-group>",
4794
+ "<quantic-tag-group aria-label=\"Applied filters\">\n <quantic-tag dismissible>Compute</quantic-tag>\n <quantic-tag dismissible>Storage</quantic-tag>\n <quantic-tag dismissible>Networking</quantic-tag>\n </quantic-tag-group>",
4795
+ "<quantic-tag-group aria-label=\"Cluster state\">\n <quantic-tag>Compute</quantic-tag>\n <quantic-status-tag color=\"success\">Healthy</quantic-status-tag>\n <quantic-count-tag count=\"12\">Nodes</quantic-count-tag>\n </quantic-tag-group>",
4796
+ "<quantic-tag-group aria-label=\"Cluster capabilities\"><quantic-tag size=\"md\">Compute</quantic-tag><quantic-tag size=\"md\">Storage</quantic-tag><quantic-tag size=\"md\">Networking</quantic-tag></quantic-tag-group>",
4797
+ "<quantic-tag-group ><quantic-tag size=\"md\">Compute</quantic-tag><quantic-tag size=\"md\">Storage</quantic-tag><quantic-tag size=\"md\">Networking</quantic-tag><quantic-tag size=\"md\">Scheduling</quantic-tag><quantic-tag size=\"md\">Monitoring</quantic-tag><quantic-tag size=\"md\">Provisioning</quantic-tag><quantic-tag size=\"md\">Authentication</quantic-tag><quantic-tag size=\"md\">Observability</quantic-tag></quantic-tag-group>"
4798
+ ],
4799
+ "relatedTo": [
4800
+ "quantic-tag",
4801
+ "quantic-badge-group"
4802
+ ],
4803
+ "subComponents": [
4804
+ "quantic-tag",
4805
+ "quantic-status-tag",
4806
+ "quantic-count-tag"
4807
+ ]
4808
+ },
4704
4809
  {
4705
4810
  "tag": "quantic-text",
4706
4811
  "description": "Typography component for rendering text with consistent sizing, weight, and color tokens. Renders any HTML element via the `as` prop for semantic correctness.",
@@ -187,8 +187,8 @@ NumberInput.styles = css `
187
187
  display: inline-block;
188
188
  width: 100%;
189
189
 
190
- --quantic-component-number-input-padding-inline: var(--quantic-spacing-3);
191
- --quantic-component-number-input-padding-block: var(--quantic-spacing-md);
190
+ --quantic-internal-number-input-padding-inline: var(--quantic-spacing-3);
191
+ --quantic-internal-number-input-padding-block: var(--quantic-spacing-md);
192
192
  --quantic-component-number-input-bg: var(--quantic-bg-primary);
193
193
  --quantic-component-number-input-color: var(--quantic-text-primary);
194
194
  }
@@ -205,12 +205,13 @@ NumberInput.styles = css `
205
205
  border-radius: var(--quantic-component-number-input-border-radius, var(--quantic-radius-sm));
206
206
  color: var(--quantic-component-number-input-color);
207
207
  background-color: var(--quantic-component-number-input-bg);
208
- padding-block: var(--quantic-component-number-input-padding-block);
208
+ padding-block: var(--quantic-component-number-input-padding-block, var(--quantic-internal-number-input-padding-block));
209
209
  padding-inline-start: var(
210
- --quantic-component-number-input-padding-inline
211
- );
210
+ --quantic-component-number-input-padding-inline,
211
+ var(--quantic-internal-number-input-padding-inline)
212
+ );
212
213
  padding-inline-end: calc(
213
- var(--quantic-component-number-input-padding-inline) + var(--quantic-spacing-6)
214
+ var(--quantic-component-number-input-padding-inline, var(--quantic-internal-number-input-padding-inline)) + var(--quantic-spacing-6)
214
215
  );
215
216
  transition:
216
217
  border-color 0.2s ease-in-out,
@@ -231,30 +232,30 @@ NumberInput.styles = css `
231
232
 
232
233
  .main.size--xs {
233
234
  font-size: 13px;
234
- --quantic-component-number-input-padding-inline: var(--quantic-spacing-2);
235
- --quantic-component-number-input-padding-block: var(
235
+ --quantic-internal-number-input-padding-inline: var(--quantic-spacing-2);
236
+ --quantic-internal-number-input-padding-block: var(
236
237
  --quantic-spacing-xxs
237
238
  );
238
- --quantic-component-number-input-icon-size: var(--quantic-spacing-3);
239
+ --quantic-internal-number-input-icon-size: var(--quantic-spacing-3);
239
240
  }
240
241
 
241
242
  .main.size--sm {
242
243
  font-size: var(--quantic-font-size-body-sm);
243
- --quantic-component-number-input-padding-inline: var(--quantic-spacing-2);
244
- --quantic-component-number-input-padding-block: var(--quantic-spacing-sm);
245
- --quantic-component-number-input-icon-size: var(--quantic-spacing-4);
244
+ --quantic-internal-number-input-padding-inline: var(--quantic-spacing-2);
245
+ --quantic-internal-number-input-padding-block: var(--quantic-spacing-sm);
246
+ --quantic-internal-number-input-icon-size: var(--quantic-spacing-4);
246
247
  }
247
248
 
248
249
  .main.size--md {
249
250
  font-size: var(--quantic-font-size-body-md);
250
- --quantic-component-number-input-icon-size: var(--quantic-spacing-4);
251
+ --quantic-internal-number-input-icon-size: var(--quantic-spacing-4);
251
252
  }
252
253
 
253
254
  .main.size--lg {
254
255
  font-size: var(--quantic-font-size-body-lg);
255
- --quantic-component-number-input-padding-inline: var(--quantic-spacing-4);
256
- --quantic-component-number-input-padding-block: var(--quantic-spacing-3);
257
- --quantic-component-number-input-icon-size: var(--quantic-spacing-5);
256
+ --quantic-internal-number-input-padding-inline: var(--quantic-spacing-4);
257
+ --quantic-internal-number-input-padding-block: var(--quantic-spacing-3);
258
+ --quantic-internal-number-input-icon-size: var(--quantic-spacing-5);
258
259
  }
259
260
 
260
261
  .input {
@@ -310,7 +311,7 @@ NumberInput.styles = css `
310
311
 
311
312
  quantic-icon-lucide-chevron-up,
312
313
  quantic-icon-lucide-chevron-down {
313
- --icon-size: var(--quantic-component-number-input-icon-size);
314
+ --icon-size: var(--quantic-component-number-input-icon-size, var(--quantic-internal-number-input-icon-size));
314
315
  }
315
316
 
316
317
  slot[name='prefix'] {
@@ -194,13 +194,13 @@ OptionCard.styles = css `
194
194
  font-family: var(--quantic-font-family-body);
195
195
  color: var(--quantic-text-secondary);
196
196
 
197
- --quantic-component-option-card-padding: var(--quantic-spacing-5);
198
- --quantic-component-option-card-radius: var(--quantic-radius-md);
199
- --quantic-component-option-card-spacing: var(--quantic-spacing-3);
200
- --quantic-component-option-card-font-size: var(
197
+ --quantic-internal-option-card-padding: var(--quantic-spacing-5);
198
+ --quantic-internal-option-card-radius: var(--quantic-radius-md);
199
+ --quantic-internal-option-card-spacing: var(--quantic-spacing-3);
200
+ --quantic-internal-option-card-font-size: var(
201
201
  --quantic-font-size-body-md
202
202
  );
203
- --quantic-component-option-card-line-height: var(
203
+ --quantic-internal-option-card-line-height: var(
204
204
  --quantic-line-height-body-md
205
205
  );
206
206
  }
@@ -209,13 +209,13 @@ OptionCard.styles = css `
209
209
  position: relative;
210
210
  display: flex;
211
211
  flex-direction: column;
212
- gap: var(--quantic-component-option-card-spacing);
213
- padding: var(--quantic-component-option-card-padding);
214
- border-radius: var(--quantic-component-option-card-radius);
212
+ gap: var(--quantic-component-option-card-spacing, var(--quantic-internal-option-card-spacing));
213
+ padding: var(--quantic-component-option-card-padding, var(--quantic-internal-option-card-padding));
214
+ border-radius: var(--quantic-component-option-card-radius, var(--quantic-internal-option-card-radius));
215
215
  border: 2px solid var(--quantic-border-secondary);
216
216
  background-color: transparent;
217
- font-size: var(--quantic-component-option-card-font-size);
218
- line-height: var(--quantic-component-option-card-line-height);
217
+ font-size: var(--quantic-component-option-card-font-size, var(--quantic-internal-option-card-font-size));
218
+ line-height: var(--quantic-component-option-card-line-height, var(--quantic-internal-option-card-line-height));
219
219
  cursor: pointer;
220
220
  user-select: none;
221
221
  transition:
@@ -233,37 +233,37 @@ OptionCard.styles = css `
233
233
 
234
234
  /* Size variants */
235
235
  .size--sm {
236
- --quantic-component-option-card-padding: var(--quantic-spacing-4);
237
- --quantic-component-option-card-spacing: var(--quantic-spacing-2);
238
- --quantic-component-option-card-radius: var(--quantic-radius-sm);
239
- --quantic-component-option-card-font-size: var(
236
+ --quantic-internal-option-card-padding: var(--quantic-spacing-4);
237
+ --quantic-internal-option-card-spacing: var(--quantic-spacing-2);
238
+ --quantic-internal-option-card-radius: var(--quantic-radius-sm);
239
+ --quantic-internal-option-card-font-size: var(
240
240
  --quantic-font-size-body-sm
241
241
  );
242
- --quantic-component-option-card-line-height: var(
242
+ --quantic-internal-option-card-line-height: var(
243
243
  --quantic-line-height-body-sm
244
244
  );
245
245
  }
246
246
 
247
247
  .size--md {
248
- --quantic-component-option-card-padding: var(--quantic-spacing-5);
249
- --quantic-component-option-card-spacing: var(--quantic-spacing-3);
250
- --quantic-component-option-card-radius: var(--quantic-radius-md);
251
- --quantic-component-option-card-font-size: var(
248
+ --quantic-internal-option-card-padding: var(--quantic-spacing-5);
249
+ --quantic-internal-option-card-spacing: var(--quantic-spacing-3);
250
+ --quantic-internal-option-card-radius: var(--quantic-radius-md);
251
+ --quantic-internal-option-card-font-size: var(
252
252
  --quantic-font-size-body-md
253
253
  );
254
- --quantic-component-option-card-line-height: var(
254
+ --quantic-internal-option-card-line-height: var(
255
255
  --quantic-line-height-body-md
256
256
  );
257
257
  }
258
258
 
259
259
  .size--lg {
260
- --quantic-component-option-card-padding: var(--quantic-spacing-6);
261
- --quantic-component-option-card-spacing: var(--quantic-spacing-4);
262
- --quantic-component-option-card-radius: var(--quantic-radius-lg);
263
- --quantic-component-option-card-font-size: var(
260
+ --quantic-internal-option-card-padding: var(--quantic-spacing-6);
261
+ --quantic-internal-option-card-spacing: var(--quantic-spacing-4);
262
+ --quantic-internal-option-card-radius: var(--quantic-radius-lg);
263
+ --quantic-internal-option-card-font-size: var(
264
264
  --quantic-font-size-body-lg
265
265
  );
266
- --quantic-component-option-card-line-height: var(
266
+ --quantic-internal-option-card-line-height: var(
267
267
  --quantic-line-height-body-lg
268
268
  );
269
269
  }
@@ -313,7 +313,7 @@ OptionCard.styles = css `
313
313
  position: absolute;
314
314
  inset: 0;
315
315
  opacity: 0;
316
- border-radius: calc(var(--quantic-component-option-card-radius) + 4px);
316
+ border-radius: calc(var(--quantic-component-option-card-radius, var(--quantic-internal-option-card-radius)) + 4px);
317
317
  border: 2px solid transparent;
318
318
  transition: all 0.2s ease-in-out;
319
319
  pointer-events: none;
@@ -337,7 +337,7 @@ OptionCard.styles = css `
337
337
  display: flex;
338
338
  align-items: flex-start;
339
339
  justify-content: space-between;
340
- gap: var(--quantic-component-option-card-spacing);
340
+ gap: var(--quantic-component-option-card-spacing, var(--quantic-internal-option-card-spacing));
341
341
  }
342
342
 
343
343
  .indicator {
@@ -46,31 +46,34 @@ PanelGroup.styles = css `
46
46
  .group {
47
47
  display: flex;
48
48
  flex-direction: column;
49
- gap: var(--quantic-component-panel-group-gap, var(--quantic-spacing-6));
49
+ gap: var(
50
+ --quantic-component-panel-group-gap,
51
+ var(--quantic-internal-panel-group-gap, var(--quantic-spacing-6))
52
+ );
50
53
  }
51
54
 
52
55
  .gap--none {
53
- --quantic-component-panel-group-gap: 0;
56
+ --quantic-internal-panel-group-gap: 0;
54
57
  }
55
58
 
56
59
  .gap--xs {
57
- --quantic-component-panel-group-gap: var(--quantic-spacing-3);
60
+ --quantic-internal-panel-group-gap: var(--quantic-spacing-3);
58
61
  }
59
62
 
60
63
  .gap--sm {
61
- --quantic-component-panel-group-gap: var(--quantic-spacing-4);
64
+ --quantic-internal-panel-group-gap: var(--quantic-spacing-4);
62
65
  }
63
66
 
64
67
  .gap--md {
65
- --quantic-component-panel-group-gap: var(--quantic-spacing-6);
68
+ --quantic-internal-panel-group-gap: var(--quantic-spacing-6);
66
69
  }
67
70
 
68
71
  .gap--lg {
69
- --quantic-component-panel-group-gap: var(--quantic-spacing-8);
72
+ --quantic-internal-panel-group-gap: var(--quantic-spacing-8);
70
73
  }
71
74
 
72
75
  .gap--xl {
73
- --quantic-component-panel-group-gap: var(--quantic-spacing-12);
76
+ --quantic-internal-panel-group-gap: var(--quantic-spacing-12);
74
77
  }
75
78
  `;
76
79
  __decorate([