@ctrliq/quantic-components 1.88.0 → 1.89.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/action-group/action-group.component.js +3 -1
- package/dist/badge/badge-group.component.js +3 -1
- package/dist/code-input/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/llms/components/quantic-action-group.md +4 -1
- package/dist/llms/components/quantic-badge-group.md +4 -1
- package/dist/llms/components/quantic-code-input.md +3 -0
- package/dist/llms/components/quantic-number-input.md +3 -0
- package/dist/llms/components/quantic-option-card.md +4 -0
- package/dist/llms/components/quantic-splitter-group.md +3 -0
- package/dist/llms/components/quantic-tab-button.md +5 -1
- package/dist/llms/components/quantic-tabs.md +4 -0
- package/dist/llms/components/quantic-tag-group.md +4 -1
- package/dist/llms/components/quantic-text-input.md +3 -0
- package/dist/llms/components/quantic-textarea.md +3 -0
- package/dist/llms/setup.md +1 -1
- package/dist/llms.txt +1 -1
- package/dist/meta/index.js.map +1 -1
- package/dist/meta/part-parity.test.d.ts +1 -0
- package/dist/meta/part-parity.test.js +68 -0
- package/dist/meta/serialize.d.ts +6 -2
- package/dist/meta/serialize.js +2 -0
- package/dist/meta/serialize.test.js +7 -0
- package/dist/meta.json +83 -5
- package/dist/number-input/index.js +1 -0
- package/dist/option-card/option-card.component.js +4 -0
- package/dist/quantic-components.js +30 -5
- package/dist/quantic-components.js.map +1 -1
- package/dist/quantic-components.min.js +11 -11
- package/dist/quantic-components.min.js.map +1 -1
- package/dist/register.js.map +1 -1
- package/dist/shared/meta.types.d.ts +4 -0
- package/dist/splitter/splitter-group.component.js +3 -0
- package/dist/tabs/button.component.js +6 -2
- package/dist/tabs/tabs.component.js +4 -0
- package/dist/tag/tag-group.component.js +3 -1
- package/dist/text-input/index.js +1 -0
- package/dist/textarea/index.js +1 -0
- package/dist/types/meta/part-parity.test.d.ts +1 -0
- package/dist/types/meta/serialize.d.ts +6 -2
- package/dist/types/shared/meta.types.d.ts +4 -0
- package/package.json +1 -1
|
@@ -12,6 +12,9 @@ export interface SlotMeta {
|
|
|
12
12
|
required?: boolean;
|
|
13
13
|
copyRule?: CopyRuleId;
|
|
14
14
|
}
|
|
15
|
+
export interface PartMeta {
|
|
16
|
+
description: string;
|
|
17
|
+
}
|
|
15
18
|
export interface EventMeta {
|
|
16
19
|
description?: string;
|
|
17
20
|
detail?: string;
|
|
@@ -40,6 +43,7 @@ export interface ComponentMeta {
|
|
|
40
43
|
props?: Record<string, PropMeta>;
|
|
41
44
|
slots?: Record<string, SlotMeta>;
|
|
42
45
|
events?: Record<string, EventMeta>;
|
|
46
|
+
parts?: Record<string, PartMeta>;
|
|
43
47
|
examples?: string[];
|
|
44
48
|
relatedTo?: string[];
|
|
45
49
|
avoidWhen?: {
|
|
@@ -284,6 +284,9 @@ SplitterGroup.meta = {
|
|
|
284
284
|
requiredFromConsumer: ['an accessible name for each pane'],
|
|
285
285
|
},
|
|
286
286
|
slots: { '': { description: 'Two or more quantic-splitter-pane elements.' } },
|
|
287
|
+
parts: {
|
|
288
|
+
divider: { description: 'The draggable handle between two panes.' },
|
|
289
|
+
},
|
|
287
290
|
};
|
|
288
291
|
SplitterGroup.styles = css `
|
|
289
292
|
:host {
|
|
@@ -81,8 +81,8 @@ TabButton.meta = {
|
|
|
81
81
|
description: 'Individual tab trigger button within quantic-tabs. ' +
|
|
82
82
|
'Set index to match the corresponding quantic-tab-panel. ' +
|
|
83
83
|
'Size and orientation are inherited via context from the parent quantic-tabs. ' +
|
|
84
|
-
'Reflects a selected attribute while active. Restyle the mark with
|
|
85
|
-
'
|
|
84
|
+
'Reflects a selected attribute while active. Restyle the mark with ' +
|
|
85
|
+
'--quantic-component-tab-indicator-* / --quantic-component-tab-active-bg.',
|
|
86
86
|
category: 'navigation',
|
|
87
87
|
subComponentOf: 'quantic-tabs',
|
|
88
88
|
slots: {
|
|
@@ -93,6 +93,10 @@ TabButton.meta = {
|
|
|
93
93
|
description: 'Tab label text or custom content.',
|
|
94
94
|
},
|
|
95
95
|
},
|
|
96
|
+
parts: {
|
|
97
|
+
button: { description: 'The native button element.' },
|
|
98
|
+
indicator: { description: 'The active-tab mark.' },
|
|
99
|
+
},
|
|
96
100
|
relatedTo: ['quantic-tabs', 'quantic-tab-panel'],
|
|
97
101
|
};
|
|
98
102
|
TabButton.styles = css `
|
|
@@ -128,6 +128,10 @@ Tabs.meta = {
|
|
|
128
128
|
description: 'quantic-tab-button and quantic-tab-panel elements as direct children.',
|
|
129
129
|
},
|
|
130
130
|
},
|
|
131
|
+
parts: {
|
|
132
|
+
nav: { description: 'The tablist container wrapping the tab buttons.' },
|
|
133
|
+
panels: { description: 'The container wrapping the tab panels.' },
|
|
134
|
+
},
|
|
131
135
|
};
|
|
132
136
|
Tabs.styles = [
|
|
133
137
|
css `
|
|
@@ -24,7 +24,6 @@ TagGroup.meta = {
|
|
|
24
24
|
tag: 'quantic-tag-group',
|
|
25
25
|
description: 'A run of quantic-tag, quantic-status-tag or quantic-count-tag sharing one accessible name and a consistent gap. ' +
|
|
26
26
|
'Wraps across lines, and each tag keeps its own size. Gap: --quantic-component-tag-group-gap. ' +
|
|
27
|
-
'Layout: ::part(group), for a column or a different alignment. ' +
|
|
28
27
|
'Use quantic-badge-group for badges.',
|
|
29
28
|
category: 'display',
|
|
30
29
|
accessibility: {
|
|
@@ -39,6 +38,9 @@ TagGroup.meta = {
|
|
|
39
38
|
description: 'quantic-tag, quantic-status-tag or quantic-count-tag elements.',
|
|
40
39
|
},
|
|
41
40
|
},
|
|
41
|
+
parts: {
|
|
42
|
+
group: { description: 'The flex container, for a column layout or a different alignment.' },
|
|
43
|
+
},
|
|
42
44
|
relatedTo: [
|
|
43
45
|
'quantic-tag',
|
|
44
46
|
'quantic-badge-group',
|
package/dist/text-input/index.js
CHANGED
|
@@ -178,6 +178,7 @@ TextInput.meta = {
|
|
|
178
178
|
prefix: { description: 'Leading content (e.g. icon or currency symbol).' },
|
|
179
179
|
suffix: { description: 'Trailing content (e.g. icon or unit label).' },
|
|
180
180
|
},
|
|
181
|
+
parts: { input: { description: 'The native input element.' } },
|
|
181
182
|
relatedTo: ['quantic-field', 'quantic-number-input', 'quantic-select'],
|
|
182
183
|
};
|
|
183
184
|
TextInput.formAssociated = true;
|
package/dist/textarea/index.js
CHANGED
|
@@ -126,6 +126,7 @@ Textarea.meta = {
|
|
|
126
126
|
'a visible label, by wrapping in quantic-field, or the ariaLabel prop',
|
|
127
127
|
],
|
|
128
128
|
},
|
|
129
|
+
parts: { input: { description: 'The native textarea element.' } },
|
|
129
130
|
relatedTo: ['quantic-field', 'quantic-text-input'],
|
|
130
131
|
};
|
|
131
132
|
Textarea.formAssociated = true;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CopyRule } from '../shared/copy-rules';
|
|
2
|
-
import type { ComponentMeta, EventMeta, PropMeta, SlotMeta } from '../shared/meta.types';
|
|
2
|
+
import type { ComponentMeta, EventMeta, PartMeta, PropMeta, SlotMeta } from '../shared/meta.types';
|
|
3
3
|
export declare const MANIFEST_SCHEMA_VERSION = 1;
|
|
4
4
|
export type ManifestProp = PropMeta & {
|
|
5
5
|
name: string;
|
|
@@ -10,10 +10,14 @@ export type ManifestSlot = SlotMeta & {
|
|
|
10
10
|
export type ManifestEvent = EventMeta & {
|
|
11
11
|
name: string;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type ManifestPart = PartMeta & {
|
|
14
|
+
name: string;
|
|
15
|
+
};
|
|
16
|
+
export interface ManifestComponent extends Omit<ComponentMeta, 'props' | 'slots' | 'events' | 'parts'> {
|
|
14
17
|
props?: ManifestProp[];
|
|
15
18
|
slots?: ManifestSlot[];
|
|
16
19
|
events?: ManifestEvent[];
|
|
20
|
+
parts?: ManifestPart[];
|
|
17
21
|
/** Derived from the children's `subComponentOf`, never hand-authored. */
|
|
18
22
|
subComponents?: string[];
|
|
19
23
|
}
|
|
@@ -12,6 +12,9 @@ export interface SlotMeta {
|
|
|
12
12
|
required?: boolean;
|
|
13
13
|
copyRule?: CopyRuleId;
|
|
14
14
|
}
|
|
15
|
+
export interface PartMeta {
|
|
16
|
+
description: string;
|
|
17
|
+
}
|
|
15
18
|
export interface EventMeta {
|
|
16
19
|
description?: string;
|
|
17
20
|
detail?: string;
|
|
@@ -40,6 +43,7 @@ export interface ComponentMeta {
|
|
|
40
43
|
props?: Record<string, PropMeta>;
|
|
41
44
|
slots?: Record<string, SlotMeta>;
|
|
42
45
|
events?: Record<string, EventMeta>;
|
|
46
|
+
parts?: Record<string, PartMeta>;
|
|
43
47
|
examples?: string[];
|
|
44
48
|
relatedTo?: string[];
|
|
45
49
|
avoidWhen?: {
|