@joralvmel/cosmos-core 0.3.0 → 0.4.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/catalog.d.ts.map +1 -1
- package/dist/catalog.js +11 -3
- package/dist/catalog.js.map +1 -1
- package/dist/codegen.d.ts +6 -0
- package/dist/codegen.d.ts.map +1 -1
- package/dist/codegen.js +207 -4
- package/dist/codegen.js.map +1 -1
- package/dist/headless/calendar.d.ts +32 -0
- package/dist/headless/calendar.d.ts.map +1 -0
- package/dist/headless/calendar.js +242 -0
- package/dist/headless/calendar.js.map +1 -0
- package/dist/headless/listbox.d.ts.map +1 -1
- package/dist/headless/listbox.js +2 -6
- package/dist/headless/listbox.js.map +1 -1
- package/dist/headless/pagination.d.ts +34 -0
- package/dist/headless/pagination.d.ts.map +1 -0
- package/dist/headless/pagination.js +92 -0
- package/dist/headless/pagination.js.map +1 -0
- package/dist/headless/radio-group.d.ts +10 -0
- package/dist/headless/radio-group.d.ts.map +1 -0
- package/dist/headless/radio-group.js +59 -0
- package/dist/headless/radio-group.js.map +1 -0
- package/dist/headless/select.d.ts +4 -0
- package/dist/headless/select.d.ts.map +1 -0
- package/dist/headless/select.js +7 -0
- package/dist/headless/select.js.map +1 -0
- package/dist/headless/size.d.ts +3 -0
- package/dist/headless/size.d.ts.map +1 -0
- package/dist/headless/size.js +7 -0
- package/dist/headless/size.js.map +1 -0
- package/dist/headless/text-field.d.ts +3 -3
- package/dist/headless/text-field.d.ts.map +1 -1
- package/dist/headless/text-field.js +2 -2
- package/dist/headless/text-field.js.map +1 -1
- package/dist/index.d.ts +1132 -77
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +42 -1
- package/dist/index.js.map +1 -1
- package/dist/specs/badge.d.ts +65 -0
- package/dist/specs/badge.d.ts.map +1 -0
- package/dist/specs/badge.js +64 -0
- package/dist/specs/badge.js.map +1 -0
- package/dist/specs/badge.scenarios.d.ts +21 -0
- package/dist/specs/badge.scenarios.d.ts.map +1 -0
- package/dist/specs/badge.scenarios.js +35 -0
- package/dist/specs/badge.scenarios.js.map +1 -0
- package/dist/specs/calendar.d.ts +120 -0
- package/dist/specs/calendar.d.ts.map +1 -0
- package/dist/specs/calendar.js +121 -0
- package/dist/specs/calendar.js.map +1 -0
- package/dist/specs/calendar.scenarios.d.ts +39 -0
- package/dist/specs/calendar.scenarios.d.ts.map +1 -0
- package/dist/specs/calendar.scenarios.js +139 -0
- package/dist/specs/calendar.scenarios.js.map +1 -0
- package/dist/specs/checkbox.d.ts +139 -0
- package/dist/specs/checkbox.d.ts.map +1 -0
- package/dist/specs/checkbox.js +129 -0
- package/dist/specs/checkbox.js.map +1 -0
- package/dist/specs/checkbox.scenarios.d.ts +28 -0
- package/dist/specs/checkbox.scenarios.d.ts.map +1 -0
- package/dist/specs/checkbox.scenarios.js +54 -0
- package/dist/specs/checkbox.scenarios.js.map +1 -0
- package/dist/specs/dialog.d.ts +167 -0
- package/dist/specs/dialog.d.ts.map +1 -0
- package/dist/specs/dialog.js +136 -0
- package/dist/specs/dialog.js.map +1 -0
- package/dist/specs/dialog.scenarios.d.ts +42 -0
- package/dist/specs/dialog.scenarios.d.ts.map +1 -0
- package/dist/specs/dialog.scenarios.js +129 -0
- package/dist/specs/dialog.scenarios.js.map +1 -0
- package/dist/specs/icon.d.ts +11 -20
- package/dist/specs/icon.d.ts.map +1 -1
- package/dist/specs/icon.js +11 -20
- package/dist/specs/icon.js.map +1 -1
- package/dist/specs/icon.scenarios.d.ts +9 -1
- package/dist/specs/icon.scenarios.d.ts.map +1 -1
- package/dist/specs/icon.scenarios.js +70 -6
- package/dist/specs/icon.scenarios.js.map +1 -1
- package/dist/specs/listbox.d.ts +3 -8
- package/dist/specs/listbox.d.ts.map +1 -1
- package/dist/specs/listbox.js +3 -3
- package/dist/specs/listbox.js.map +1 -1
- package/dist/specs/pagination.d.ts +147 -0
- package/dist/specs/pagination.d.ts.map +1 -0
- package/dist/specs/pagination.js +122 -0
- package/dist/specs/pagination.js.map +1 -0
- package/dist/specs/pagination.scenarios.d.ts +15 -0
- package/dist/specs/pagination.scenarios.d.ts.map +1 -0
- package/dist/specs/pagination.scenarios.js +29 -0
- package/dist/specs/pagination.scenarios.js.map +1 -0
- package/dist/specs/popover.d.ts +16 -28
- package/dist/specs/popover.d.ts.map +1 -1
- package/dist/specs/popover.js +16 -28
- package/dist/specs/popover.js.map +1 -1
- package/dist/specs/popover.scenarios.d.ts +10 -4
- package/dist/specs/popover.scenarios.d.ts.map +1 -1
- package/dist/specs/popover.scenarios.js +38 -38
- package/dist/specs/popover.scenarios.js.map +1 -1
- package/dist/specs/radio-group.d.ts +154 -0
- package/dist/specs/radio-group.d.ts.map +1 -0
- package/dist/specs/radio-group.js +133 -0
- package/dist/specs/radio-group.js.map +1 -0
- package/dist/specs/radio-group.scenarios.d.ts +35 -0
- package/dist/specs/radio-group.scenarios.d.ts.map +1 -0
- package/dist/specs/radio-group.scenarios.js +67 -0
- package/dist/specs/radio-group.scenarios.js.map +1 -0
- package/dist/specs/select.d.ts +167 -0
- package/dist/specs/select.d.ts.map +1 -0
- package/dist/specs/select.js +148 -0
- package/dist/specs/select.js.map +1 -0
- package/dist/specs/select.scenarios.d.ts +37 -0
- package/dist/specs/select.scenarios.d.ts.map +1 -0
- package/dist/specs/select.scenarios.js +77 -0
- package/dist/specs/select.scenarios.js.map +1 -0
- package/dist/specs/switch.d.ts +123 -0
- package/dist/specs/switch.d.ts.map +1 -0
- package/dist/specs/switch.js +113 -0
- package/dist/specs/switch.js.map +1 -0
- package/dist/specs/switch.scenarios.d.ts +27 -0
- package/dist/specs/switch.scenarios.d.ts.map +1 -0
- package/dist/specs/switch.scenarios.js +54 -0
- package/dist/specs/switch.scenarios.js.map +1 -0
- package/dist/specs/text-field.d.ts +8 -22
- package/dist/specs/text-field.d.ts.map +1 -1
- package/dist/specs/text-field.js +8 -17
- package/dist/specs/text-field.js.map +1 -1
- package/dist/specs/text-field.scenarios.d.ts +3 -0
- package/dist/specs/text-field.scenarios.d.ts.map +1 -1
- package/dist/specs/text-field.scenarios.js +18 -0
- package/dist/specs/text-field.scenarios.js.map +1 -1
- package/dist/specs/textarea.d.ts +144 -0
- package/dist/specs/textarea.d.ts.map +1 -0
- package/dist/specs/textarea.js +134 -0
- package/dist/specs/textarea.js.map +1 -0
- package/dist/specs/textarea.scenarios.d.ts +33 -0
- package/dist/specs/textarea.scenarios.d.ts.map +1 -0
- package/dist/specs/textarea.scenarios.js +82 -0
- package/dist/specs/textarea.scenarios.js.map +1 -0
- package/llms.md +550 -21
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
export { buildOrder, type CatalogEntry, type ComponentCategory, type ComponentStatus, catalog, catalogEntry, } from './catalog.js';
|
|
2
|
-
export { type ActiveProp, activeProps, type ControlValue, type ControlValues, generateComposedSnippets, generateSnippets, listboxItemExamples, listboxValueExamples, pascalCase, type SnippetChild, type SnippetTarget, snippetTargets, supportsTarget, toAttribute, } from './codegen.js';
|
|
2
|
+
export { type ActiveProp, activeProps, type ControlValue, type ControlValues, generateComposedSnippets, generateSnippets, listboxItemExamples, listboxValueExamples, pascalCase, radioGroupOptionsExamples, radioGroupValueExamples, type SnippetChild, type SnippetTarget, selectItemExamples, selectValueExamples, snippetTargets, supportsTarget, toAttribute, } from './codegen.js';
|
|
3
3
|
export { type ComponentContract, type ContractProps, defaults, defineContract, type EventSpec, eventNames, type KeyboardSpec, type Platform, type PropSpec, platforms, propNames, type StateSpec, supports, } from './contract.js';
|
|
4
|
+
export { addCalendarDays, addCalendarMonths, type CalendarLocaleInfo, type CalendarWeekdayName, canNavigateCalendarMonth, compareCalendarDates, formatCalendarDate, formatCalendarMonth, getCalendarLocaleInfo, getCalendarMonth, getCalendarMonthDates, getCalendarToday, getCalendarTodayLabel, getCalendarWeekdayNames, isCalendarDateSelectable, parseCalendarDate, tryAddCalendarDays, tryAddCalendarMonths, validateCalendarBounds, } from './headless/calendar.js';
|
|
4
5
|
export { findListboxMatch, getListboxInitialActive, getListboxOptions, getListboxSelection, moveListboxActive, validateListboxSize, validateListboxValues, } from './headless/listbox.js';
|
|
6
|
+
export { effectivePaginationPage, getPaginationView, type PaginationItem, paginationItems, validatePaginationNumber, } from './headless/pagination.js';
|
|
5
7
|
export { getPressableState, type PressableInput, type PressableState, } from './headless/pressable.js';
|
|
8
|
+
export { getRadioGroupInitialActive, moveRadioGroupActive, validateRadioGroupOptions, validateRadioGroupValue, } from './headless/radio-group.js';
|
|
9
|
+
export { validateSelectValue } from './headless/select.js';
|
|
10
|
+
export { validateSize } from './headless/size.js';
|
|
6
11
|
export { getTextFieldState, type TextFieldState, type TextFieldStateInput, } from './headless/text-field.js';
|
|
7
12
|
export { componentReference, contractMarkdown, eventsMarkdown, propsMarkdown, propType, snippetsMarkdown, snippetTitles, } from './markdown.js';
|
|
8
13
|
export { aiRules, DOCS_URL, isStack, type SetupGuide, type SetupStep, type Stack, setupGuide, setupMarkdown, stacks, } from './setup.js';
|
|
@@ -104,7 +109,7 @@ export declare const contracts: {
|
|
|
104
109
|
readonly icon: {
|
|
105
110
|
readonly name: "icon";
|
|
106
111
|
readonly tag: "cosm-icon";
|
|
107
|
-
readonly description: "Renders a structured SVG icon.
|
|
112
|
+
readonly description: "Renders a structured SVG icon. Icons are decorative and hidden from assistive technology unless a nonempty label makes them informative.";
|
|
108
113
|
readonly role: "img";
|
|
109
114
|
readonly pattern: "https://www.w3.org/WAI/WCAG22/Techniques/aria/ARIA24";
|
|
110
115
|
readonly props: {
|
|
@@ -128,30 +133,21 @@ export declare const contracts: {
|
|
|
128
133
|
readonly reflect: true;
|
|
129
134
|
readonly description: "Semantic size (16, 20 or 24) or a positive finite number in pixels / native units.";
|
|
130
135
|
};
|
|
131
|
-
readonly
|
|
132
|
-
readonly type: "
|
|
133
|
-
readonly
|
|
134
|
-
readonly
|
|
136
|
+
readonly variant: {
|
|
137
|
+
readonly type: "enum";
|
|
138
|
+
readonly values: readonly ["outline", "filled"];
|
|
139
|
+
readonly default: "outline";
|
|
140
|
+
readonly reflect: true;
|
|
141
|
+
readonly description: "Appearance. outline draws only the stroke; filled also fills the shapes with the icon color (for example a favorite star or heart). Explicit node fills in the definition always win.";
|
|
135
142
|
};
|
|
136
|
-
readonly
|
|
143
|
+
readonly color: {
|
|
137
144
|
readonly type: "string";
|
|
138
|
-
readonly default: "
|
|
139
|
-
readonly description: "
|
|
140
|
-
};
|
|
141
|
-
readonly strokeWidth: {
|
|
142
|
-
readonly type: "number";
|
|
143
|
-
readonly default: 2;
|
|
144
|
-
readonly description: "Finite nonnegative stroke width in SVG viewBox units.";
|
|
145
|
+
readonly default: "currentColor";
|
|
146
|
+
readonly description: "Icon color (stroke, currentColor fills and the filled variant). currentColor inherits the surrounding text color on web and the parent control or theme foreground on native; otherwise a supported color without URLs.";
|
|
145
147
|
};
|
|
146
148
|
readonly label: {
|
|
147
149
|
readonly type: "string";
|
|
148
|
-
readonly description: "Accessible name
|
|
149
|
-
};
|
|
150
|
-
readonly decorative: {
|
|
151
|
-
readonly type: "boolean";
|
|
152
|
-
readonly default: true;
|
|
153
|
-
readonly reflect: true;
|
|
154
|
-
readonly description: "Hides the icon from assistive technology when true.";
|
|
150
|
+
readonly description: "Accessible name. A nonempty label makes the icon an informative image; without one the icon is decorative and hidden from assistive technology.";
|
|
155
151
|
};
|
|
156
152
|
};
|
|
157
153
|
readonly events: {};
|
|
@@ -168,7 +164,7 @@ export declare const contracts: {
|
|
|
168
164
|
readonly 'text-field': {
|
|
169
165
|
readonly name: "text-field";
|
|
170
166
|
readonly tag: "cosm-text-field";
|
|
171
|
-
readonly description: "Accepts a single line of text with an accessible label, optional
|
|
167
|
+
readonly description: "Accepts a single line of text with an accessible label, optional helper and error text, and native form validation on the web.";
|
|
172
168
|
readonly role: "textbox";
|
|
173
169
|
readonly pattern: "https://html.spec.whatwg.org/multipage/input.html";
|
|
174
170
|
readonly props: {
|
|
@@ -207,34 +203,29 @@ export declare const contracts: {
|
|
|
207
203
|
readonly description: "Visual treatment of the editable control.";
|
|
208
204
|
};
|
|
209
205
|
readonly size: {
|
|
210
|
-
readonly type: "
|
|
211
|
-
readonly
|
|
212
|
-
readonly type: "enum";
|
|
213
|
-
readonly values: readonly ["sm", "md", "lg"];
|
|
214
|
-
}, {
|
|
215
|
-
readonly type: "number";
|
|
216
|
-
}];
|
|
206
|
+
readonly type: "enum";
|
|
207
|
+
readonly values: readonly ["sm", "md", "lg"];
|
|
217
208
|
readonly default: "md";
|
|
218
209
|
readonly reflect: true;
|
|
219
|
-
readonly description: "
|
|
210
|
+
readonly description: "Small, medium or large editable control.";
|
|
220
211
|
};
|
|
221
212
|
readonly placeholder: {
|
|
222
213
|
readonly type: "string";
|
|
223
214
|
readonly description: "Short input hint; it never replaces the accessible label.";
|
|
224
215
|
};
|
|
225
|
-
readonly
|
|
216
|
+
readonly helperText: {
|
|
226
217
|
readonly type: "string";
|
|
227
218
|
readonly description: "Optional supporting text associated with the editable control.";
|
|
228
219
|
};
|
|
229
|
-
readonly
|
|
220
|
+
readonly errorText: {
|
|
230
221
|
readonly type: "string";
|
|
231
|
-
readonly description: "Optional
|
|
222
|
+
readonly description: "Optional consumer-localized error text associated with the editable control; a nonempty trimmed value also exposes invalid state.";
|
|
232
223
|
};
|
|
233
224
|
readonly invalid: {
|
|
234
225
|
readonly type: "boolean";
|
|
235
226
|
readonly default: false;
|
|
236
227
|
readonly reflect: true;
|
|
237
|
-
readonly description: "External invalid state, independent of browser constraints or consumer business validation.";
|
|
228
|
+
readonly description: "External invalid state when the visible error is supplied elsewhere, independent of browser constraints or consumer business validation.";
|
|
238
229
|
};
|
|
239
230
|
readonly required: {
|
|
240
231
|
readonly type: "boolean";
|
|
@@ -299,13 +290,6 @@ export declare const contracts: {
|
|
|
299
290
|
readonly example: "search";
|
|
300
291
|
readonly description: "Optional structured decorative icon after the editable text.";
|
|
301
292
|
};
|
|
302
|
-
readonly iconFocusScope: {
|
|
303
|
-
readonly type: "enum";
|
|
304
|
-
readonly values: readonly ["control", "input"];
|
|
305
|
-
readonly default: "control";
|
|
306
|
-
readonly reflect: true;
|
|
307
|
-
readonly description: "When configured icon focus colors apply: control includes the input and clear/reveal buttons; input includes only the editable input. Does not change icons without a focus-color override.";
|
|
308
|
-
};
|
|
309
293
|
readonly prefix: {
|
|
310
294
|
readonly type: "string";
|
|
311
295
|
readonly description: "Optional non-interactive text decoration before the editable text.";
|
|
@@ -386,9 +370,7 @@ export declare const contracts: {
|
|
|
386
370
|
readonly '--cosm-text-field-focus': "Visible focus indicator color.";
|
|
387
371
|
readonly '--cosm-text-field-radius': "Editable control corner radius.";
|
|
388
372
|
readonly '--cosm-text-field-start-icon-color': "Start icon color, independent of text and affixes.";
|
|
389
|
-
readonly '--cosm-text-field-start-icon-focus-color': "Start icon color within iconFocusScope; falls back to its normal color.";
|
|
390
373
|
readonly '--cosm-text-field-end-icon-color': "End icon color, independent of text and affixes.";
|
|
391
|
-
readonly '--cosm-text-field-end-icon-focus-color': "End icon color within iconFocusScope; falls back to its normal color.";
|
|
392
374
|
};
|
|
393
375
|
readonly keyboard: readonly [{
|
|
394
376
|
readonly keys: readonly ["Tab", "Shift+Tab"];
|
|
@@ -544,11 +526,6 @@ export declare const contracts: {
|
|
|
544
526
|
readonly default: "Close";
|
|
545
527
|
readonly description: "Localized accessible name of the close button. Must be non-empty when closable is true.";
|
|
546
528
|
};
|
|
547
|
-
readonly gap: {
|
|
548
|
-
readonly type: "number";
|
|
549
|
-
readonly default: 8;
|
|
550
|
-
readonly description: "Non-negative finite distance from trigger to panel, or to the arrow tip. CSS pixels on web, logical units on native. Viewport/safe-area collision handling takes priority.";
|
|
551
|
-
};
|
|
552
529
|
readonly arrow: {
|
|
553
530
|
readonly type: "boolean";
|
|
554
531
|
readonly default: false;
|
|
@@ -564,22 +541,12 @@ export declare const contracts: {
|
|
|
564
541
|
readonly default: true;
|
|
565
542
|
readonly description: "Requests closure on an outside press without preventing its interaction or restoring trigger focus.";
|
|
566
543
|
};
|
|
567
|
-
readonly initialFocus: {
|
|
568
|
-
readonly type: "boolean";
|
|
569
|
-
readonly default: false;
|
|
570
|
-
readonly description: "On committed opening (including initially open), focus the first focusable panel descendant, falling back to the panel without adding semantics. False leaves focus unchanged. Native moves accessible/input focus where supported.";
|
|
571
|
-
};
|
|
572
|
-
readonly restoreFocus: {
|
|
573
|
-
readonly type: "boolean";
|
|
574
|
-
readonly default: true;
|
|
575
|
-
readonly description: "After committed trigger, Escape, action or Back closure, restore focus only if still inside the panel and the trigger is connected and focusable. Never steal outside focus, restore after outside press, or restore for unsolicited prop closure.";
|
|
576
|
-
};
|
|
577
544
|
readonly side: {
|
|
578
545
|
readonly type: "enum";
|
|
579
546
|
readonly values: readonly ["top", "right", "bottom", "left"];
|
|
580
547
|
readonly default: "bottom";
|
|
581
548
|
readonly reflect: true;
|
|
582
|
-
readonly description: "Requested physical side; actual placement
|
|
549
|
+
readonly description: "Requested physical side; actual placement flips to the opposite side when that reduces viewport/safe-area overflow, then shifts within bounds.";
|
|
583
550
|
};
|
|
584
551
|
readonly align: {
|
|
585
552
|
readonly type: "enum";
|
|
@@ -588,16 +555,6 @@ export declare const contracts: {
|
|
|
588
555
|
readonly reflect: true;
|
|
589
556
|
readonly description: "Cross-axis alignment. On top/bottom, start/end follow inline direction (RTL reverses them); on left/right they mean top/bottom.";
|
|
590
557
|
};
|
|
591
|
-
readonly flip: {
|
|
592
|
-
readonly type: "boolean";
|
|
593
|
-
readonly default: true;
|
|
594
|
-
readonly description: "Try the opposite side when the requested side overflows the available viewport/safe area; flip only if it reduces main-axis overflow. Ties keep the requested side. Runs before shift.";
|
|
595
|
-
};
|
|
596
|
-
readonly shift: {
|
|
597
|
-
readonly type: "boolean";
|
|
598
|
-
readonly default: true;
|
|
599
|
-
readonly description: "After flip, translate within available viewport/safe-area bounds to reduce overflow. Constrain oversized panels to that region regardless of collision flags; flags never change requested props.";
|
|
600
|
-
};
|
|
601
558
|
};
|
|
602
559
|
readonly events: {
|
|
603
560
|
readonly openChange: {
|
|
@@ -702,16 +659,11 @@ export declare const contracts: {
|
|
|
702
659
|
readonly description: "Plain composes inside a panel; outlined adds a standalone container boundary.";
|
|
703
660
|
};
|
|
704
661
|
readonly size: {
|
|
705
|
-
readonly type: "
|
|
706
|
-
readonly
|
|
707
|
-
readonly type: "enum";
|
|
708
|
-
readonly values: readonly ["sm", "md", "lg"];
|
|
709
|
-
}, {
|
|
710
|
-
readonly type: "number";
|
|
711
|
-
}];
|
|
662
|
+
readonly type: "enum";
|
|
663
|
+
readonly values: readonly ["sm", "md", "lg"];
|
|
712
664
|
readonly default: "md";
|
|
713
665
|
readonly reflect: true;
|
|
714
|
-
readonly description: "
|
|
666
|
+
readonly description: "Small, medium or large option rows. Content may grow; native touch targets remain at least 44.";
|
|
715
667
|
};
|
|
716
668
|
readonly disabled: {
|
|
717
669
|
readonly type: "boolean";
|
|
@@ -790,15 +742,1118 @@ export declare const contracts: {
|
|
|
790
742
|
readonly action: "Moves focus to a matching option using locale-aware typeahead without filtering.";
|
|
791
743
|
}];
|
|
792
744
|
};
|
|
745
|
+
readonly checkbox: {
|
|
746
|
+
readonly name: "checkbox";
|
|
747
|
+
readonly tag: "cosm-checkbox";
|
|
748
|
+
readonly description: "Selects an independent boolean value with accessible labeling and native form behavior on the web.";
|
|
749
|
+
readonly role: "checkbox";
|
|
750
|
+
readonly pattern: "https://www.w3.org/WAI/ARIA/apg/patterns/checkbox/";
|
|
751
|
+
readonly props: {
|
|
752
|
+
readonly label: {
|
|
753
|
+
readonly type: "string";
|
|
754
|
+
readonly required: true;
|
|
755
|
+
readonly description: "Required accessible name, visible unless labelHidden is true.";
|
|
756
|
+
};
|
|
757
|
+
readonly labelHidden: {
|
|
758
|
+
readonly type: "boolean";
|
|
759
|
+
readonly default: false;
|
|
760
|
+
readonly reflect: true;
|
|
761
|
+
readonly description: "Visually hides the label while keeping it available to assistive technology.";
|
|
762
|
+
};
|
|
763
|
+
readonly checked: {
|
|
764
|
+
readonly type: "boolean";
|
|
765
|
+
readonly default: false;
|
|
766
|
+
readonly description: "Controlled checked value when supplied, including false; activation proposes changes without self-committing.";
|
|
767
|
+
};
|
|
768
|
+
readonly defaultChecked: {
|
|
769
|
+
readonly type: "boolean";
|
|
770
|
+
readonly default: false;
|
|
771
|
+
readonly description: "Initial autonomous checked value; later changes do not reset it.";
|
|
772
|
+
};
|
|
773
|
+
readonly indeterminate: {
|
|
774
|
+
readonly type: "boolean";
|
|
775
|
+
readonly default: false;
|
|
776
|
+
readonly reflect: true;
|
|
777
|
+
readonly description: "Presentation-only mixed state. Autonomous activation clears it; controlled use leaves it to the owner.";
|
|
778
|
+
};
|
|
779
|
+
readonly size: {
|
|
780
|
+
readonly type: "enum";
|
|
781
|
+
readonly values: readonly ["sm", "md", "lg"];
|
|
782
|
+
readonly default: "md";
|
|
783
|
+
readonly reflect: true;
|
|
784
|
+
readonly description: "Small, medium or large visual box.";
|
|
785
|
+
};
|
|
786
|
+
readonly disabled: {
|
|
787
|
+
readonly type: "boolean";
|
|
788
|
+
readonly default: false;
|
|
789
|
+
readonly reflect: true;
|
|
790
|
+
readonly description: "Prevents user interaction and excludes the value from web form submission.";
|
|
791
|
+
};
|
|
792
|
+
readonly required: {
|
|
793
|
+
readonly type: "boolean";
|
|
794
|
+
readonly default: false;
|
|
795
|
+
readonly reflect: true;
|
|
796
|
+
readonly description: "Exposes required semantics and participates in native web form validation. Native has no automatic validation.";
|
|
797
|
+
};
|
|
798
|
+
readonly invalid: {
|
|
799
|
+
readonly type: "boolean";
|
|
800
|
+
readonly default: false;
|
|
801
|
+
readonly reflect: true;
|
|
802
|
+
readonly description: "Externally supplied invalid presentation state when the visible error is supplied elsewhere; web form validity remains based on required.";
|
|
803
|
+
};
|
|
804
|
+
readonly helperText: {
|
|
805
|
+
readonly type: "string";
|
|
806
|
+
readonly description: "Optional consumer-localized supporting text associated with the checkbox.";
|
|
807
|
+
};
|
|
808
|
+
readonly errorText: {
|
|
809
|
+
readonly type: "string";
|
|
810
|
+
readonly description: "Optional consumer-localized error description; a nonempty trimmed value also exposes invalid state.";
|
|
811
|
+
};
|
|
812
|
+
readonly name: {
|
|
813
|
+
readonly type: "string";
|
|
814
|
+
readonly reflect: true;
|
|
815
|
+
readonly platforms: readonly ["web", "react", "angular"];
|
|
816
|
+
readonly description: "Web form field name; React Native has no HTML form association.";
|
|
817
|
+
};
|
|
818
|
+
readonly value: {
|
|
819
|
+
readonly type: "string";
|
|
820
|
+
readonly default: "on";
|
|
821
|
+
readonly platforms: readonly ["web", "react", "angular"];
|
|
822
|
+
readonly description: "Web form value submitted when checked and enabled; defaults to on. Angular Forms uses checked as its boolean value.";
|
|
823
|
+
};
|
|
824
|
+
};
|
|
825
|
+
readonly events: {
|
|
826
|
+
readonly checkedChange: {
|
|
827
|
+
readonly description: "Proposes the next checked value after enabled user activation; controlled state waits for the owner.";
|
|
828
|
+
readonly detail: "CheckboxCheckedChangeDetail";
|
|
829
|
+
readonly names: {
|
|
830
|
+
readonly dom: "cosm-checked-change";
|
|
831
|
+
readonly react: "onCheckedChange";
|
|
832
|
+
readonly angular: "checkedChange";
|
|
833
|
+
readonly native: "onCheckedChange";
|
|
834
|
+
};
|
|
835
|
+
};
|
|
836
|
+
};
|
|
837
|
+
readonly states: readonly [{
|
|
838
|
+
readonly prop: "checked";
|
|
839
|
+
readonly event: "checkedChange";
|
|
840
|
+
readonly defaultProp: "defaultChecked";
|
|
841
|
+
}];
|
|
842
|
+
readonly slots: {
|
|
843
|
+
readonly '': "Optional noninteractive inline label content; links and buttons are not allowed.";
|
|
844
|
+
};
|
|
845
|
+
readonly parts: {
|
|
846
|
+
readonly base: "The label and visual checkbox control.";
|
|
847
|
+
readonly input: "The native checkbox input and web focus target.";
|
|
848
|
+
readonly box: "The visible checkbox box and indicator.";
|
|
849
|
+
readonly label: "Visible or visually hidden label text.";
|
|
850
|
+
readonly 'help-text': "Supporting text associated with the checkbox.";
|
|
851
|
+
readonly 'error-text': "Error description associated with the checkbox.";
|
|
852
|
+
};
|
|
853
|
+
readonly cssProperties: {
|
|
854
|
+
readonly '--cosm-checkbox-size': "Visual box width and height.";
|
|
855
|
+
readonly '--cosm-checkbox-background': "Unchecked box background.";
|
|
856
|
+
readonly '--cosm-checkbox-checked-background': "Checked and mixed box background.";
|
|
857
|
+
readonly '--cosm-checkbox-color': "Checked indicator foreground.";
|
|
858
|
+
readonly '--cosm-checkbox-border': "Box boundary color.";
|
|
859
|
+
readonly '--cosm-checkbox-radius': "Box corner radius.";
|
|
860
|
+
readonly '--cosm-checkbox-focus': "Visible keyboard focus indicator color.";
|
|
861
|
+
readonly '--cosm-checkbox-gap': "Space between the box and label.";
|
|
862
|
+
};
|
|
863
|
+
readonly keyboard: readonly [{
|
|
864
|
+
readonly keys: readonly ["Tab", "Shift+Tab"];
|
|
865
|
+
readonly action: "Moves focus to or from the enabled checkbox.";
|
|
866
|
+
}, {
|
|
867
|
+
readonly keys: readonly ["Space"];
|
|
868
|
+
readonly action: "Toggles checked state and emits a checkedChange proposal.";
|
|
869
|
+
}];
|
|
870
|
+
};
|
|
871
|
+
readonly switch: {
|
|
872
|
+
readonly name: "switch";
|
|
873
|
+
readonly tag: "cosm-switch";
|
|
874
|
+
readonly description: "Toggles a binary setting immediately with a stable accessible name and form behavior on the web.";
|
|
875
|
+
readonly role: "switch";
|
|
876
|
+
readonly pattern: "https://www.w3.org/WAI/ARIA/apg/patterns/switch/";
|
|
877
|
+
readonly props: {
|
|
878
|
+
readonly label: {
|
|
879
|
+
readonly type: "string";
|
|
880
|
+
readonly required: true;
|
|
881
|
+
readonly description: "Required nonempty accessible name; remains stable in both states.";
|
|
882
|
+
};
|
|
883
|
+
readonly labelHidden: {
|
|
884
|
+
readonly type: "boolean";
|
|
885
|
+
readonly default: false;
|
|
886
|
+
readonly reflect: true;
|
|
887
|
+
readonly description: "Visually hides the label while retaining its accessible name.";
|
|
888
|
+
};
|
|
889
|
+
readonly checked: {
|
|
890
|
+
readonly type: "boolean";
|
|
891
|
+
readonly default: false;
|
|
892
|
+
readonly description: "Controlled checked value when supplied, including false; activation proposes changes without self-committing.";
|
|
893
|
+
};
|
|
894
|
+
readonly defaultChecked: {
|
|
895
|
+
readonly type: "boolean";
|
|
896
|
+
readonly default: false;
|
|
897
|
+
readonly description: "Initial autonomous checked value; later changes do not reset it.";
|
|
898
|
+
};
|
|
899
|
+
readonly size: {
|
|
900
|
+
readonly type: "enum";
|
|
901
|
+
readonly values: readonly ["sm", "md", "lg"];
|
|
902
|
+
readonly default: "md";
|
|
903
|
+
readonly reflect: true;
|
|
904
|
+
readonly platforms: readonly ["web", "react", "angular"];
|
|
905
|
+
readonly description: "Small, medium or large web switch. Native uses system Switch sizing.";
|
|
906
|
+
};
|
|
907
|
+
readonly disabled: {
|
|
908
|
+
readonly type: "boolean";
|
|
909
|
+
readonly default: false;
|
|
910
|
+
readonly reflect: true;
|
|
911
|
+
readonly description: "Prevents user interaction and excludes the value from web form submission.";
|
|
912
|
+
};
|
|
913
|
+
readonly invalid: {
|
|
914
|
+
readonly type: "boolean";
|
|
915
|
+
readonly default: false;
|
|
916
|
+
readonly reflect: true;
|
|
917
|
+
readonly description: "Externally supplied invalid presentation. Does not change checked state or form validity; native uses danger colors without an equivalent system invalid trait.";
|
|
918
|
+
};
|
|
919
|
+
readonly helperText: {
|
|
920
|
+
readonly type: "string";
|
|
921
|
+
readonly description: "Optional consumer-localized supporting text associated with the switch.";
|
|
922
|
+
};
|
|
923
|
+
readonly name: {
|
|
924
|
+
readonly type: "string";
|
|
925
|
+
readonly reflect: true;
|
|
926
|
+
readonly platforms: readonly ["web", "react", "angular"];
|
|
927
|
+
readonly description: "Web form field name; React Native has no HTML form association.";
|
|
928
|
+
};
|
|
929
|
+
readonly value: {
|
|
930
|
+
readonly type: "string";
|
|
931
|
+
readonly default: "on";
|
|
932
|
+
readonly platforms: readonly ["web", "react", "angular"];
|
|
933
|
+
readonly description: "Web form value submitted when checked and enabled; defaults to on. Angular Forms uses checked as its boolean value.";
|
|
934
|
+
};
|
|
935
|
+
};
|
|
936
|
+
readonly events: {
|
|
937
|
+
readonly checkedChange: {
|
|
938
|
+
readonly description: "Proposes the next checked value after enabled user activation; controlled state waits for the owner.";
|
|
939
|
+
readonly detail: "SwitchCheckedChangeDetail";
|
|
940
|
+
readonly names: {
|
|
941
|
+
readonly dom: "cosm-checked-change";
|
|
942
|
+
readonly react: "onCheckedChange";
|
|
943
|
+
readonly angular: "checkedChange";
|
|
944
|
+
readonly native: "onCheckedChange";
|
|
945
|
+
};
|
|
946
|
+
};
|
|
947
|
+
};
|
|
948
|
+
readonly states: readonly [{
|
|
949
|
+
readonly prop: "checked";
|
|
950
|
+
readonly event: "checkedChange";
|
|
951
|
+
readonly defaultProp: "defaultChecked";
|
|
952
|
+
}];
|
|
953
|
+
readonly slots: {};
|
|
954
|
+
readonly parts: {
|
|
955
|
+
readonly base: "Label, control and supporting text layout.";
|
|
956
|
+
readonly input: "Native checkbox input and web focus target.";
|
|
957
|
+
readonly track: "Visible switch track.";
|
|
958
|
+
readonly thumb: "Visible switch thumb.";
|
|
959
|
+
readonly label: "Visible or visually hidden label text.";
|
|
960
|
+
readonly 'help-text': "Supporting text associated with the switch.";
|
|
961
|
+
};
|
|
962
|
+
readonly cssProperties: {
|
|
963
|
+
readonly '--cosm-switch-width': "Track width.";
|
|
964
|
+
readonly '--cosm-switch-height': "Track height.";
|
|
965
|
+
readonly '--cosm-switch-thumb-size': "Thumb diameter.";
|
|
966
|
+
readonly '--cosm-switch-track-background': "Unchecked track background.";
|
|
967
|
+
readonly '--cosm-switch-checked-track-background': "Checked track background.";
|
|
968
|
+
readonly '--cosm-switch-thumb-background': "Thumb background.";
|
|
969
|
+
readonly '--cosm-switch-border': "Unchecked track boundary color.";
|
|
970
|
+
readonly '--cosm-switch-radius': "Track corner radius.";
|
|
971
|
+
readonly '--cosm-switch-gap': "Space between the switch and label.";
|
|
972
|
+
readonly '--cosm-switch-focus': "Visible keyboard focus indicator color.";
|
|
973
|
+
};
|
|
974
|
+
readonly keyboard: readonly [{
|
|
975
|
+
readonly keys: readonly ["Tab", "Shift+Tab"];
|
|
976
|
+
readonly action: "Moves focus to or from the enabled switch.";
|
|
977
|
+
}, {
|
|
978
|
+
readonly keys: readonly ["Space"];
|
|
979
|
+
readonly action: "Toggles checked state and emits a checkedChange proposal.";
|
|
980
|
+
}];
|
|
981
|
+
};
|
|
982
|
+
readonly badge: {
|
|
983
|
+
readonly name: "badge";
|
|
984
|
+
readonly tag: "cosm-badge";
|
|
985
|
+
readonly description: "Displays a noninteractive status or category label, or caller-formatted count, with an optional decorative leading icon.";
|
|
986
|
+
readonly role: "";
|
|
987
|
+
readonly pattern: "https://html.spec.whatwg.org/multipage/text-level-semantics.html";
|
|
988
|
+
readonly props: {
|
|
989
|
+
readonly variant: {
|
|
990
|
+
readonly type: "enum";
|
|
991
|
+
readonly values: readonly ["soft", "solid", "outline"];
|
|
992
|
+
readonly default: "soft";
|
|
993
|
+
readonly reflect: true;
|
|
994
|
+
readonly description: "Visual treatment of the static label.";
|
|
995
|
+
};
|
|
996
|
+
readonly tone: {
|
|
997
|
+
readonly type: "enum";
|
|
998
|
+
readonly values: readonly ["neutral", "info", "success", "warning", "danger"];
|
|
999
|
+
readonly default: "neutral";
|
|
1000
|
+
readonly reflect: true;
|
|
1001
|
+
readonly description: "Semantic color intent of the static label.";
|
|
1002
|
+
};
|
|
1003
|
+
readonly size: {
|
|
1004
|
+
readonly type: "enum";
|
|
1005
|
+
readonly values: readonly ["sm", "md", "lg"];
|
|
1006
|
+
readonly default: "md";
|
|
1007
|
+
readonly reflect: true;
|
|
1008
|
+
readonly description: "Semantic label size.";
|
|
1009
|
+
};
|
|
1010
|
+
readonly startIcon: {
|
|
1011
|
+
readonly type: "reference";
|
|
1012
|
+
readonly reference: "IconDefinition";
|
|
1013
|
+
readonly options: readonly ["search", "house", "heart", "star"];
|
|
1014
|
+
readonly example: "heart";
|
|
1015
|
+
readonly description: "Optional structured decorative icon before the label.";
|
|
1016
|
+
};
|
|
1017
|
+
};
|
|
1018
|
+
readonly events: {};
|
|
1019
|
+
readonly states: readonly [];
|
|
1020
|
+
readonly slots: {
|
|
1021
|
+
readonly '': "Label or caller-formatted count text.";
|
|
1022
|
+
};
|
|
1023
|
+
readonly parts: {
|
|
1024
|
+
readonly base: "Rounded label container.";
|
|
1025
|
+
readonly label: "Label or caller-formatted count text.";
|
|
1026
|
+
readonly icon: "Optional decorative leading icon wrapper.";
|
|
1027
|
+
};
|
|
1028
|
+
readonly cssProperties: {
|
|
1029
|
+
readonly '--cosm-badge-background': "Badge background color.";
|
|
1030
|
+
readonly '--cosm-badge-color': "Badge text and icon color.";
|
|
1031
|
+
readonly '--cosm-badge-border': "Badge border color.";
|
|
1032
|
+
readonly '--cosm-badge-padding-inline': "Badge inline padding.";
|
|
1033
|
+
readonly '--cosm-badge-padding-block': "Badge block padding.";
|
|
1034
|
+
readonly '--cosm-badge-gap': "Space between the icon and label.";
|
|
1035
|
+
readonly '--cosm-badge-font-family': "Badge label font family.";
|
|
1036
|
+
readonly '--cosm-badge-font-size': "Badge label font size.";
|
|
1037
|
+
readonly '--cosm-badge-font-weight': "Badge label font weight.";
|
|
1038
|
+
readonly '--cosm-badge-line-height': "Badge label line height.";
|
|
1039
|
+
readonly '--cosm-badge-radius': "Badge corner radius.";
|
|
1040
|
+
};
|
|
1041
|
+
readonly keyboard: readonly [];
|
|
1042
|
+
};
|
|
1043
|
+
readonly calendar: {
|
|
1044
|
+
readonly name: "calendar";
|
|
1045
|
+
readonly tag: "cosm-calendar";
|
|
1046
|
+
readonly description: "Selects one Gregorian date from an inline, localized calendar with keyboard navigation and optional bounds. Month and year can be selected directly.";
|
|
1047
|
+
readonly role: "grid";
|
|
1048
|
+
readonly pattern: "https://www.w3.org/WAI/ARIA/apg/patterns/grid/";
|
|
1049
|
+
readonly props: {
|
|
1050
|
+
readonly value: {
|
|
1051
|
+
readonly type: "string";
|
|
1052
|
+
readonly description: "Controlled selected date in YYYY-MM-DD format; when supplied, selection proposals wait for the owner to update this value.";
|
|
1053
|
+
};
|
|
1054
|
+
readonly defaultValue: {
|
|
1055
|
+
readonly type: "string";
|
|
1056
|
+
readonly description: "Initial autonomous selected date in YYYY-MM-DD format; later changes do not reset selection.";
|
|
1057
|
+
};
|
|
1058
|
+
readonly min: {
|
|
1059
|
+
readonly type: "string";
|
|
1060
|
+
readonly description: "Earliest selectable date in YYYY-MM-DD format, inclusive.";
|
|
1061
|
+
};
|
|
1062
|
+
readonly max: {
|
|
1063
|
+
readonly type: "string";
|
|
1064
|
+
readonly description: "Latest selectable date in YYYY-MM-DD format, inclusive.";
|
|
1065
|
+
};
|
|
1066
|
+
readonly locale: {
|
|
1067
|
+
readonly type: "string";
|
|
1068
|
+
readonly description: "BCP 47 locale for month and weekday names, week start, and text direction; defaults to the environment locale. Invalid locale identifiers are rejected.";
|
|
1069
|
+
};
|
|
1070
|
+
readonly disabled: {
|
|
1071
|
+
readonly type: "boolean";
|
|
1072
|
+
readonly default: false;
|
|
1073
|
+
readonly reflect: true;
|
|
1074
|
+
readonly description: "Disables date selection and calendar navigation.";
|
|
1075
|
+
};
|
|
1076
|
+
};
|
|
1077
|
+
readonly events: {
|
|
1078
|
+
readonly change: {
|
|
1079
|
+
readonly description: "Proposes an enabled selected date as a YYYY-MM-DD value; autonomous selection commits and controlled selection waits for the owner.";
|
|
1080
|
+
readonly detail: "CalendarChangeDetail";
|
|
1081
|
+
readonly names: {
|
|
1082
|
+
readonly dom: "cosm-change";
|
|
1083
|
+
readonly react: "onChange";
|
|
1084
|
+
readonly angular: "valueChange";
|
|
1085
|
+
readonly native: "onValueChange";
|
|
1086
|
+
};
|
|
1087
|
+
};
|
|
1088
|
+
};
|
|
1089
|
+
readonly states: readonly [{
|
|
1090
|
+
readonly prop: "value";
|
|
1091
|
+
readonly event: "change";
|
|
1092
|
+
readonly defaultProp: "defaultValue";
|
|
1093
|
+
}];
|
|
1094
|
+
readonly slots: {};
|
|
1095
|
+
readonly parts: {
|
|
1096
|
+
readonly base: "Calendar root.";
|
|
1097
|
+
readonly header: "Month heading and navigation controls.";
|
|
1098
|
+
readonly previous: "Previous-month navigation button.";
|
|
1099
|
+
readonly heading: "Localized month and year heading.";
|
|
1100
|
+
readonly next: "Next-month navigation button.";
|
|
1101
|
+
readonly weekday: "Localized weekday heading.";
|
|
1102
|
+
readonly grid: "Seven-column date grid.";
|
|
1103
|
+
readonly day: "Date button, including adjacent-month dates.";
|
|
1104
|
+
readonly 'month-trigger': "Button that opens direct month selection.";
|
|
1105
|
+
readonly 'year-trigger': "Button that opens direct year selection.";
|
|
1106
|
+
readonly 'month-option': "Month choice in the month selection view.";
|
|
1107
|
+
readonly 'year-option': "Year choice in the year selection view.";
|
|
1108
|
+
};
|
|
1109
|
+
readonly cssProperties: {
|
|
1110
|
+
readonly '--cosm-calendar-background': "Calendar surface background.";
|
|
1111
|
+
readonly '--cosm-calendar-color': "Primary calendar text color.";
|
|
1112
|
+
readonly '--cosm-calendar-muted-color': "Adjacent-month and weekday text color.";
|
|
1113
|
+
readonly '--cosm-calendar-selected-background': "Selected-date background.";
|
|
1114
|
+
readonly '--cosm-calendar-selected-color': "Selected-date text color.";
|
|
1115
|
+
readonly '--cosm-calendar-day-size': "Minimum date target dimensions.";
|
|
1116
|
+
readonly '--cosm-calendar-gap': "Space between date targets.";
|
|
1117
|
+
readonly '--cosm-calendar-radius': "Date target corner radius.";
|
|
1118
|
+
readonly '--cosm-calendar-focus': "Visible keyboard focus indicator color.";
|
|
1119
|
+
readonly '--cosm-calendar-today-border': "Non-color-only today marker.";
|
|
1120
|
+
};
|
|
1121
|
+
readonly keyboard: readonly [{
|
|
1122
|
+
readonly keys: readonly ["Tab", "Shift+Tab"];
|
|
1123
|
+
readonly action: "Moves between the navigation controls and one active date.";
|
|
1124
|
+
readonly platforms: readonly ["web", "react", "angular"];
|
|
1125
|
+
}, {
|
|
1126
|
+
readonly keys: readonly ["ArrowLeft", "ArrowRight"];
|
|
1127
|
+
readonly action: "Moves the active date by one day; direction follows the visual RTL/LTR order.";
|
|
1128
|
+
readonly platforms: readonly ["web", "react", "angular"];
|
|
1129
|
+
}, {
|
|
1130
|
+
readonly keys: readonly ["ArrowUp", "ArrowDown"];
|
|
1131
|
+
readonly action: "Moves the active date by one week.";
|
|
1132
|
+
readonly platforms: readonly ["web", "react", "angular"];
|
|
1133
|
+
}, {
|
|
1134
|
+
readonly keys: readonly ["Home", "End"];
|
|
1135
|
+
readonly action: "Moves to the first or last day of the localized week.";
|
|
1136
|
+
readonly platforms: readonly ["web", "react", "angular"];
|
|
1137
|
+
}, {
|
|
1138
|
+
readonly keys: readonly ["PageUp", "PageDown"];
|
|
1139
|
+
readonly action: "Moves the active date by one month.";
|
|
1140
|
+
readonly platforms: readonly ["web", "react", "angular"];
|
|
1141
|
+
}, {
|
|
1142
|
+
readonly keys: readonly ["Shift+PageUp", "Shift+PageDown"];
|
|
1143
|
+
readonly action: "Moves the active date by one year.";
|
|
1144
|
+
readonly platforms: readonly ["web", "react", "angular"];
|
|
1145
|
+
}, {
|
|
1146
|
+
readonly keys: readonly ["Enter", "Space"];
|
|
1147
|
+
readonly action: "Proposes selection of the active enabled date.";
|
|
1148
|
+
readonly platforms: readonly ["web", "react", "angular"];
|
|
1149
|
+
}];
|
|
1150
|
+
};
|
|
1151
|
+
readonly textarea: {
|
|
1152
|
+
readonly name: "textarea";
|
|
1153
|
+
readonly tag: "cosm-textarea";
|
|
1154
|
+
readonly description: "Accepts multiline plain text with an accessible label, optional helper and error text, and native form behavior on the web.";
|
|
1155
|
+
readonly role: "textbox";
|
|
1156
|
+
readonly pattern: "https://html.spec.whatwg.org/multipage/form-elements.html#the-textarea-element";
|
|
1157
|
+
readonly props: {
|
|
1158
|
+
readonly label: {
|
|
1159
|
+
readonly type: "string";
|
|
1160
|
+
readonly required: true;
|
|
1161
|
+
readonly description: "Accessible name for the editable control. It is rendered above the control unless visually hidden.";
|
|
1162
|
+
};
|
|
1163
|
+
readonly labelHidden: {
|
|
1164
|
+
readonly type: "boolean";
|
|
1165
|
+
readonly default: false;
|
|
1166
|
+
readonly reflect: true;
|
|
1167
|
+
readonly description: "Visually hides the label while keeping it available to assistive technology.";
|
|
1168
|
+
};
|
|
1169
|
+
readonly value: {
|
|
1170
|
+
readonly type: "string";
|
|
1171
|
+
readonly description: "Current text. When bound, edits are proposals and the component waits for the owner to supply the accepted value.";
|
|
1172
|
+
};
|
|
1173
|
+
readonly defaultValue: {
|
|
1174
|
+
readonly type: "string";
|
|
1175
|
+
readonly default: "";
|
|
1176
|
+
readonly description: "Initial value for autonomous use. Web form reset restores this value; it does not control subsequent edits.";
|
|
1177
|
+
};
|
|
1178
|
+
readonly rows: {
|
|
1179
|
+
readonly type: "number";
|
|
1180
|
+
readonly default: 4;
|
|
1181
|
+
readonly reflect: true;
|
|
1182
|
+
readonly description: "Visible line count of the multiline editor. It is independent of the visual size.";
|
|
1183
|
+
};
|
|
1184
|
+
readonly variant: {
|
|
1185
|
+
readonly type: "enum";
|
|
1186
|
+
readonly values: readonly ["outlined", "filled"];
|
|
1187
|
+
readonly default: "outlined";
|
|
1188
|
+
readonly reflect: true;
|
|
1189
|
+
readonly description: "Visual treatment of the editable control.";
|
|
1190
|
+
};
|
|
1191
|
+
readonly size: {
|
|
1192
|
+
readonly type: "enum";
|
|
1193
|
+
readonly values: readonly ["sm", "md", "lg"];
|
|
1194
|
+
readonly default: "md";
|
|
1195
|
+
readonly reflect: true;
|
|
1196
|
+
readonly description: "Visual size of the editable control, independent of rows.";
|
|
1197
|
+
};
|
|
1198
|
+
readonly placeholder: {
|
|
1199
|
+
readonly type: "string";
|
|
1200
|
+
readonly description: "Short input hint; it never replaces the accessible label.";
|
|
1201
|
+
};
|
|
1202
|
+
readonly helperText: {
|
|
1203
|
+
readonly type: "string";
|
|
1204
|
+
readonly description: "Optional supporting text associated with the editable control.";
|
|
1205
|
+
};
|
|
1206
|
+
readonly errorText: {
|
|
1207
|
+
readonly type: "string";
|
|
1208
|
+
readonly description: "Optional consumer-localized error text associated with the editable control; a nonempty trimmed value also exposes invalid state.";
|
|
1209
|
+
};
|
|
1210
|
+
readonly invalid: {
|
|
1211
|
+
readonly type: "boolean";
|
|
1212
|
+
readonly default: false;
|
|
1213
|
+
readonly reflect: true;
|
|
1214
|
+
readonly description: "External invalid state when the visible error is supplied elsewhere, independent of browser constraints or consumer business validation.";
|
|
1215
|
+
};
|
|
1216
|
+
readonly required: {
|
|
1217
|
+
readonly type: "boolean";
|
|
1218
|
+
readonly default: false;
|
|
1219
|
+
readonly reflect: true;
|
|
1220
|
+
readonly description: "Exposes required semantics. On web, participates in native HTML constraint validation.";
|
|
1221
|
+
};
|
|
1222
|
+
readonly disabled: {
|
|
1223
|
+
readonly type: "boolean";
|
|
1224
|
+
readonly default: false;
|
|
1225
|
+
readonly reflect: true;
|
|
1226
|
+
readonly description: "Disables editing and interaction. On web, follows disabled fieldsets and excludes the value from form submission.";
|
|
1227
|
+
};
|
|
1228
|
+
readonly readOnly: {
|
|
1229
|
+
readonly type: "boolean";
|
|
1230
|
+
readonly default: false;
|
|
1231
|
+
readonly reflect: true;
|
|
1232
|
+
readonly description: "Prevents editing while remaining focusable and form-submittable on web; distinct from disabled.";
|
|
1233
|
+
};
|
|
1234
|
+
readonly maxLength: {
|
|
1235
|
+
readonly type: "number";
|
|
1236
|
+
readonly description: "Maximum number of characters. Web uses native HTML length constraints and native applies supported input limits.";
|
|
1237
|
+
};
|
|
1238
|
+
readonly name: {
|
|
1239
|
+
readonly type: "string";
|
|
1240
|
+
readonly reflect: true;
|
|
1241
|
+
readonly platforms: readonly ["web", "react", "angular"];
|
|
1242
|
+
readonly description: "Form field name on web. React Native has no HTML form association or name-based submission.";
|
|
1243
|
+
};
|
|
1244
|
+
};
|
|
1245
|
+
readonly events: {
|
|
1246
|
+
readonly change: {
|
|
1247
|
+
readonly description: "Proposes the current text after each user edit; this is not a blur/commit event.";
|
|
1248
|
+
readonly detail: "TextareaChangeDetail";
|
|
1249
|
+
readonly names: {
|
|
1250
|
+
readonly dom: "cosm-change";
|
|
1251
|
+
readonly react: "onChange";
|
|
1252
|
+
readonly angular: "valueChange";
|
|
1253
|
+
readonly native: "onValueChange";
|
|
1254
|
+
};
|
|
1255
|
+
};
|
|
1256
|
+
};
|
|
1257
|
+
readonly states: readonly [{
|
|
1258
|
+
readonly prop: "value";
|
|
1259
|
+
readonly event: "change";
|
|
1260
|
+
readonly defaultProp: "defaultValue";
|
|
1261
|
+
}];
|
|
1262
|
+
readonly slots: {};
|
|
1263
|
+
readonly parts: {
|
|
1264
|
+
readonly label: "Accessible label above the control.";
|
|
1265
|
+
readonly control: "Visual control containing the editable textarea.";
|
|
1266
|
+
readonly textarea: "The native multiline editable textarea.";
|
|
1267
|
+
readonly help: "Supporting text associated with the editable textarea.";
|
|
1268
|
+
readonly error: "External or native-constraint error text associated with the editable textarea.";
|
|
1269
|
+
};
|
|
1270
|
+
readonly cssProperties: {
|
|
1271
|
+
readonly '--cosm-textarea-background': "Editable control background.";
|
|
1272
|
+
readonly '--cosm-textarea-color': "Editable text color.";
|
|
1273
|
+
readonly '--cosm-textarea-placeholder': "Placeholder text color.";
|
|
1274
|
+
readonly '--cosm-textarea-border': "Editable control boundary color.";
|
|
1275
|
+
readonly '--cosm-textarea-focus': "Visible focus indicator color.";
|
|
1276
|
+
readonly '--cosm-textarea-radius': "Editable control corner radius.";
|
|
1277
|
+
};
|
|
1278
|
+
readonly keyboard: readonly [{
|
|
1279
|
+
readonly keys: readonly ["Tab", "Shift+Tab"];
|
|
1280
|
+
readonly action: "Moves focus to or from the enabled editable control.";
|
|
1281
|
+
}, {
|
|
1282
|
+
readonly keys: readonly ["Enter"];
|
|
1283
|
+
readonly action: "Inserts a newline in the editable text.";
|
|
1284
|
+
}];
|
|
1285
|
+
};
|
|
1286
|
+
readonly 'radio-group': {
|
|
1287
|
+
readonly name: "radio-group";
|
|
1288
|
+
readonly tag: "cosm-radio-group";
|
|
1289
|
+
readonly description: "Selects one option from a labeled collection, with optional selection and native Web form behavior.";
|
|
1290
|
+
readonly role: "radiogroup";
|
|
1291
|
+
readonly pattern: "https://www.w3.org/WAI/ARIA/apg/patterns/radio/";
|
|
1292
|
+
readonly props: {
|
|
1293
|
+
readonly label: {
|
|
1294
|
+
readonly type: "string";
|
|
1295
|
+
readonly required: true;
|
|
1296
|
+
readonly description: "Required visible accessible name for the group.";
|
|
1297
|
+
};
|
|
1298
|
+
readonly options: {
|
|
1299
|
+
readonly type: "reference";
|
|
1300
|
+
readonly reference: "RadioGroupOptions";
|
|
1301
|
+
readonly required: true;
|
|
1302
|
+
readonly options: readonly ["contact-methods"];
|
|
1303
|
+
readonly example: "contact-methods";
|
|
1304
|
+
readonly description: "Readonly flat options with unique nonempty values and labels, optional descriptions and disabled states.";
|
|
1305
|
+
};
|
|
1306
|
+
readonly value: {
|
|
1307
|
+
readonly type: "reference";
|
|
1308
|
+
readonly reference: "RadioGroupValue";
|
|
1309
|
+
readonly options: readonly ["none", "email", "phone", "basic", "plus", "premium", "weekly", "monthly"];
|
|
1310
|
+
readonly description: "Controlled selected value; null means no selection, and a supplied null remains controlled.";
|
|
1311
|
+
};
|
|
1312
|
+
readonly defaultValue: {
|
|
1313
|
+
readonly type: "reference";
|
|
1314
|
+
readonly reference: "RadioGroupValue";
|
|
1315
|
+
readonly options: readonly ["none", "email", "phone", "basic", "plus", "premium", "weekly", "monthly"];
|
|
1316
|
+
readonly description: "Initial autonomous selection; null by default.";
|
|
1317
|
+
};
|
|
1318
|
+
readonly size: {
|
|
1319
|
+
readonly type: "enum";
|
|
1320
|
+
readonly values: readonly ["sm", "md", "lg"];
|
|
1321
|
+
readonly default: "md";
|
|
1322
|
+
readonly reflect: true;
|
|
1323
|
+
readonly description: "Small, medium or large radio indicator.";
|
|
1324
|
+
};
|
|
1325
|
+
readonly orientation: {
|
|
1326
|
+
readonly type: "enum";
|
|
1327
|
+
readonly values: readonly ["vertical", "horizontal"];
|
|
1328
|
+
readonly default: "vertical";
|
|
1329
|
+
readonly reflect: true;
|
|
1330
|
+
readonly description: "Vertical list or wrapping horizontal options.";
|
|
1331
|
+
};
|
|
1332
|
+
readonly disabled: {
|
|
1333
|
+
readonly type: "boolean";
|
|
1334
|
+
readonly default: false;
|
|
1335
|
+
readonly reflect: true;
|
|
1336
|
+
readonly description: "Prevents interaction and excludes the value from Web form submission.";
|
|
1337
|
+
};
|
|
1338
|
+
readonly required: {
|
|
1339
|
+
readonly type: "boolean";
|
|
1340
|
+
readonly default: false;
|
|
1341
|
+
readonly reflect: true;
|
|
1342
|
+
readonly description: "Requires a selection in Web form validation; Native exposes descriptive semantics.";
|
|
1343
|
+
};
|
|
1344
|
+
readonly invalid: {
|
|
1345
|
+
readonly type: "boolean";
|
|
1346
|
+
readonly default: false;
|
|
1347
|
+
readonly reflect: true;
|
|
1348
|
+
readonly description: "Externally supplied invalid presentation state when the visible error is supplied elsewhere.";
|
|
1349
|
+
};
|
|
1350
|
+
readonly helperText: {
|
|
1351
|
+
readonly type: "string";
|
|
1352
|
+
readonly description: "Optional supporting text associated with the group.";
|
|
1353
|
+
};
|
|
1354
|
+
readonly errorText: {
|
|
1355
|
+
readonly type: "string";
|
|
1356
|
+
readonly description: "Optional consumer-localized error text; a nonempty trimmed value also exposes invalid state.";
|
|
1357
|
+
};
|
|
1358
|
+
readonly name: {
|
|
1359
|
+
readonly type: "string";
|
|
1360
|
+
readonly reflect: true;
|
|
1361
|
+
readonly platforms: readonly ["web", "react", "angular"];
|
|
1362
|
+
readonly description: "Web form field name; React Native has no HTML form association.";
|
|
1363
|
+
};
|
|
1364
|
+
};
|
|
1365
|
+
readonly events: {
|
|
1366
|
+
readonly change: {
|
|
1367
|
+
readonly description: "Proposes a selection after enabled user activation; autonomous state commits and controlled state waits for the owner.";
|
|
1368
|
+
readonly detail: "RadioGroupChangeDetail";
|
|
1369
|
+
readonly names: {
|
|
1370
|
+
readonly dom: "cosm-change";
|
|
1371
|
+
readonly react: "onChange";
|
|
1372
|
+
readonly angular: "valueChange";
|
|
1373
|
+
readonly native: "onValueChange";
|
|
1374
|
+
};
|
|
1375
|
+
};
|
|
1376
|
+
};
|
|
1377
|
+
readonly states: readonly [{
|
|
1378
|
+
readonly prop: "value";
|
|
1379
|
+
readonly event: "change";
|
|
1380
|
+
readonly defaultProp: "defaultValue";
|
|
1381
|
+
}];
|
|
1382
|
+
readonly slots: {};
|
|
1383
|
+
readonly parts: {
|
|
1384
|
+
readonly base: "Group wrapper and accessible fieldset.";
|
|
1385
|
+
readonly label: "Visible group label.";
|
|
1386
|
+
readonly options: "Option collection.";
|
|
1387
|
+
readonly option: "Selectable option row.";
|
|
1388
|
+
readonly input: "Native radio input and Web focus target.";
|
|
1389
|
+
readonly control: "Visible circular radio boundary.";
|
|
1390
|
+
readonly indicator: "Selected radio dot.";
|
|
1391
|
+
readonly 'option-label': "Primary option text.";
|
|
1392
|
+
readonly description: "Optional option description.";
|
|
1393
|
+
readonly 'help-text': "Supporting text associated with the group.";
|
|
1394
|
+
readonly 'error-text': "Error description associated with the group.";
|
|
1395
|
+
};
|
|
1396
|
+
readonly cssProperties: {
|
|
1397
|
+
readonly '--cosm-radio-group-gap': "Space between option rows.";
|
|
1398
|
+
readonly '--cosm-radio-group-option-gap': "Space between the radio control and option content.";
|
|
1399
|
+
readonly '--cosm-radio-group-control-size': "Diameter of the visible radio control.";
|
|
1400
|
+
readonly '--cosm-radio-group-border': "Unchecked radio boundary color.";
|
|
1401
|
+
readonly '--cosm-radio-group-selected-border': "Selected radio boundary color.";
|
|
1402
|
+
readonly '--cosm-radio-group-indicator': "Selected radio dot color.";
|
|
1403
|
+
readonly '--cosm-radio-group-focus': "Visible keyboard focus indicator color.";
|
|
1404
|
+
};
|
|
1405
|
+
readonly keyboard: readonly [{
|
|
1406
|
+
readonly keys: readonly ["Tab", "Shift+Tab"];
|
|
1407
|
+
readonly action: "Enters or leaves the group as one tab stop.";
|
|
1408
|
+
}, {
|
|
1409
|
+
readonly keys: readonly ["Space"];
|
|
1410
|
+
readonly action: "Selects the focused enabled option.";
|
|
1411
|
+
}, {
|
|
1412
|
+
readonly keys: readonly ["ArrowRight", "ArrowDown", "ArrowLeft", "ArrowUp"];
|
|
1413
|
+
readonly action: "Moves focus and selection through enabled options with wrapping.";
|
|
1414
|
+
}];
|
|
1415
|
+
};
|
|
1416
|
+
readonly select: {
|
|
1417
|
+
readonly name: "select";
|
|
1418
|
+
readonly tag: "cosm-select";
|
|
1419
|
+
readonly description: "Selects one option from an accessible collection, with native Web form behavior.";
|
|
1420
|
+
readonly role: "combobox";
|
|
1421
|
+
readonly pattern: "https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/";
|
|
1422
|
+
readonly props: {
|
|
1423
|
+
readonly label: {
|
|
1424
|
+
readonly type: "string";
|
|
1425
|
+
readonly required: true;
|
|
1426
|
+
readonly description: "Required visible accessible name for the control.";
|
|
1427
|
+
};
|
|
1428
|
+
readonly items: {
|
|
1429
|
+
readonly type: "reference";
|
|
1430
|
+
readonly reference: "SelectItems";
|
|
1431
|
+
readonly required: true;
|
|
1432
|
+
readonly options: readonly ["flat"];
|
|
1433
|
+
readonly example: "flat";
|
|
1434
|
+
readonly description: "Readonly flat options with unique nonempty values, nonempty labels, and optional disabled state.";
|
|
1435
|
+
};
|
|
1436
|
+
readonly value: {
|
|
1437
|
+
readonly type: "reference";
|
|
1438
|
+
readonly reference: "SelectValue";
|
|
1439
|
+
readonly options: readonly ["none", "apple", "cherry"];
|
|
1440
|
+
readonly description: "Controlled selected value; null means no selection, and a supplied null remains controlled.";
|
|
1441
|
+
};
|
|
1442
|
+
readonly defaultValue: {
|
|
1443
|
+
readonly type: "reference";
|
|
1444
|
+
readonly reference: "SelectValue";
|
|
1445
|
+
readonly options: readonly ["none", "apple", "cherry"];
|
|
1446
|
+
readonly example: "none";
|
|
1447
|
+
readonly description: "Initial autonomous selection; null by default.";
|
|
1448
|
+
};
|
|
1449
|
+
readonly placeholder: {
|
|
1450
|
+
readonly type: "string";
|
|
1451
|
+
readonly required: true;
|
|
1452
|
+
readonly description: "Consumer-localized text shown when no value is selected.";
|
|
1453
|
+
};
|
|
1454
|
+
readonly variant: {
|
|
1455
|
+
readonly type: "enum";
|
|
1456
|
+
readonly values: readonly ["outlined", "filled"];
|
|
1457
|
+
readonly default: "outlined";
|
|
1458
|
+
readonly reflect: true;
|
|
1459
|
+
readonly description: "Outlined or filled trigger appearance.";
|
|
1460
|
+
};
|
|
1461
|
+
readonly size: {
|
|
1462
|
+
readonly type: "enum";
|
|
1463
|
+
readonly values: readonly ["sm", "md", "lg"];
|
|
1464
|
+
readonly default: "md";
|
|
1465
|
+
readonly reflect: true;
|
|
1466
|
+
readonly description: "Small, medium, or large control size.";
|
|
1467
|
+
};
|
|
1468
|
+
readonly disabled: {
|
|
1469
|
+
readonly type: "boolean";
|
|
1470
|
+
readonly default: false;
|
|
1471
|
+
readonly reflect: true;
|
|
1472
|
+
readonly description: "Prevents interaction and excludes the value from Web form submission.";
|
|
1473
|
+
};
|
|
1474
|
+
readonly required: {
|
|
1475
|
+
readonly type: "boolean";
|
|
1476
|
+
readonly default: false;
|
|
1477
|
+
readonly reflect: true;
|
|
1478
|
+
readonly description: "Requires a selection in Web form validation; Native exposes descriptive semantics.";
|
|
1479
|
+
};
|
|
1480
|
+
readonly invalid: {
|
|
1481
|
+
readonly type: "boolean";
|
|
1482
|
+
readonly default: false;
|
|
1483
|
+
readonly reflect: true;
|
|
1484
|
+
readonly description: "Externally supplied invalid presentation state when the visible error is supplied elsewhere.";
|
|
1485
|
+
};
|
|
1486
|
+
readonly helperText: {
|
|
1487
|
+
readonly type: "string";
|
|
1488
|
+
readonly description: "Optional supporting text associated with the control.";
|
|
1489
|
+
};
|
|
1490
|
+
readonly errorText: {
|
|
1491
|
+
readonly type: "string";
|
|
1492
|
+
readonly description: "Optional consumer-localized error text; a nonempty trimmed value also exposes invalid state.";
|
|
1493
|
+
};
|
|
1494
|
+
readonly name: {
|
|
1495
|
+
readonly type: "string";
|
|
1496
|
+
readonly reflect: true;
|
|
1497
|
+
readonly platforms: readonly ["web", "react", "angular"];
|
|
1498
|
+
readonly description: "Web form field name; React Native has no HTML form association.";
|
|
1499
|
+
};
|
|
1500
|
+
};
|
|
1501
|
+
readonly events: {
|
|
1502
|
+
readonly change: {
|
|
1503
|
+
readonly description: "Proposes a selected value after user activation; autonomous state commits and controlled state waits for the owner.";
|
|
1504
|
+
readonly detail: "SelectChangeDetail";
|
|
1505
|
+
readonly names: {
|
|
1506
|
+
readonly dom: "cosm-change";
|
|
1507
|
+
readonly react: "onChange";
|
|
1508
|
+
readonly angular: "valueChange";
|
|
1509
|
+
readonly native: "onValueChange";
|
|
1510
|
+
};
|
|
1511
|
+
};
|
|
1512
|
+
};
|
|
1513
|
+
readonly states: readonly [{
|
|
1514
|
+
readonly prop: "value";
|
|
1515
|
+
readonly event: "change";
|
|
1516
|
+
readonly defaultProp: "defaultValue";
|
|
1517
|
+
}];
|
|
1518
|
+
readonly slots: {};
|
|
1519
|
+
readonly parts: {
|
|
1520
|
+
readonly base: "Field wrapper.";
|
|
1521
|
+
readonly label: "Visible accessible label.";
|
|
1522
|
+
readonly trigger: "Select-only combobox trigger.";
|
|
1523
|
+
readonly value: "Selected option text.";
|
|
1524
|
+
readonly placeholder: "Text displayed when no option is selected.";
|
|
1525
|
+
readonly popup: "Anchored popup surface.";
|
|
1526
|
+
readonly listbox: "Single-selection option collection.";
|
|
1527
|
+
readonly option: "Selectable row with selected, active, and disabled states.";
|
|
1528
|
+
readonly content: "Option text wrapper.";
|
|
1529
|
+
readonly 'option-label': "Primary option text.";
|
|
1530
|
+
readonly help: "Supporting text associated with the control.";
|
|
1531
|
+
readonly error: "Error description associated with the control.";
|
|
1532
|
+
};
|
|
1533
|
+
readonly cssProperties: {
|
|
1534
|
+
readonly '--cosm-select-background': "Control background.";
|
|
1535
|
+
readonly '--cosm-select-color': "Control and value text color.";
|
|
1536
|
+
readonly '--cosm-select-placeholder': "Placeholder text color.";
|
|
1537
|
+
readonly '--cosm-select-border': "Control boundary color.";
|
|
1538
|
+
readonly '--cosm-select-focus': "Visible keyboard focus indicator color.";
|
|
1539
|
+
readonly '--cosm-select-radius': "Control corner radius.";
|
|
1540
|
+
readonly '--cosm-select-trigger-min-height': "Custom minimum trigger height.";
|
|
1541
|
+
readonly '--cosm-select-option-selected-background': "Selected option background.";
|
|
1542
|
+
readonly '--cosm-select-option-selected-color': "Selected option text color.";
|
|
1543
|
+
};
|
|
1544
|
+
readonly keyboard: readonly [{
|
|
1545
|
+
readonly keys: readonly ["Tab", "Shift+Tab"];
|
|
1546
|
+
readonly action: "Moves focus to or from the enabled combobox trigger.";
|
|
1547
|
+
}, {
|
|
1548
|
+
readonly keys: readonly ["Enter", "Space", "ArrowDown", "ArrowUp"];
|
|
1549
|
+
readonly action: "On Web, opens the popup; arrows move the active option without changing selection.";
|
|
1550
|
+
}, {
|
|
1551
|
+
readonly keys: readonly ["ArrowDown", "ArrowUp", "Home", "End"];
|
|
1552
|
+
readonly action: "On Web, moves the active option without changing the selected value.";
|
|
1553
|
+
}, {
|
|
1554
|
+
readonly keys: readonly ["Printable characters"];
|
|
1555
|
+
readonly action: "On Web and React Native Web, moves to a matching option using locale-aware typeahead. Native iOS/Android use touch and platform accessibility navigation; React Native core does not expose hardware key events on this control.";
|
|
1556
|
+
}, {
|
|
1557
|
+
readonly keys: readonly ["Enter", "Space"];
|
|
1558
|
+
readonly action: "On Web, selects the active enabled option.";
|
|
1559
|
+
}, {
|
|
1560
|
+
readonly keys: readonly ["Escape"];
|
|
1561
|
+
readonly action: "On Web, closes the popup without changing the selected value.";
|
|
1562
|
+
}];
|
|
1563
|
+
};
|
|
1564
|
+
readonly pagination: {
|
|
1565
|
+
readonly name: "pagination";
|
|
1566
|
+
readonly tag: "cosm-pagination";
|
|
1567
|
+
readonly description: "Navigates a known number of pages using buttons.";
|
|
1568
|
+
readonly role: "navigation";
|
|
1569
|
+
readonly pattern: "https://www.w3.org/WAI/ARIA/apg/practices/landmark-regions/";
|
|
1570
|
+
readonly props: {
|
|
1571
|
+
readonly totalPages: {
|
|
1572
|
+
readonly type: "number";
|
|
1573
|
+
readonly required: true;
|
|
1574
|
+
readonly description: "Required nonnegative safe integer page count.";
|
|
1575
|
+
};
|
|
1576
|
+
readonly page: {
|
|
1577
|
+
readonly type: "number";
|
|
1578
|
+
readonly description: "Controlled one-based safe integer page; out-of-range values are displayed clamped.";
|
|
1579
|
+
};
|
|
1580
|
+
readonly defaultPage: {
|
|
1581
|
+
readonly type: "number";
|
|
1582
|
+
readonly default: 1;
|
|
1583
|
+
readonly description: "Initial one-based page for autonomous state.";
|
|
1584
|
+
};
|
|
1585
|
+
readonly label: {
|
|
1586
|
+
readonly type: "string";
|
|
1587
|
+
readonly required: true;
|
|
1588
|
+
readonly description: "Required localized navigation landmark label.";
|
|
1589
|
+
};
|
|
1590
|
+
readonly previousLabel: {
|
|
1591
|
+
readonly type: "string";
|
|
1592
|
+
readonly default: "Previous page";
|
|
1593
|
+
readonly description: "Previous button label.";
|
|
1594
|
+
};
|
|
1595
|
+
readonly nextLabel: {
|
|
1596
|
+
readonly type: "string";
|
|
1597
|
+
readonly default: "Next page";
|
|
1598
|
+
readonly description: "Next button label.";
|
|
1599
|
+
};
|
|
1600
|
+
readonly firstLabel: {
|
|
1601
|
+
readonly type: "string";
|
|
1602
|
+
readonly default: "First page";
|
|
1603
|
+
readonly description: "First button label.";
|
|
1604
|
+
};
|
|
1605
|
+
readonly lastLabel: {
|
|
1606
|
+
readonly type: "string";
|
|
1607
|
+
readonly default: "Last page";
|
|
1608
|
+
readonly description: "Last button label.";
|
|
1609
|
+
};
|
|
1610
|
+
readonly pageLabel: {
|
|
1611
|
+
readonly type: "string";
|
|
1612
|
+
readonly default: "Page {page}";
|
|
1613
|
+
readonly description: "Page button label template; {page} is replaced with the localized number.";
|
|
1614
|
+
};
|
|
1615
|
+
readonly summaryLabel: {
|
|
1616
|
+
readonly type: "string";
|
|
1617
|
+
readonly default: "Page {page} of {total}";
|
|
1618
|
+
readonly description: "Compact summary template with {page} and {total} placeholders.";
|
|
1619
|
+
};
|
|
1620
|
+
readonly locale: {
|
|
1621
|
+
readonly type: "string";
|
|
1622
|
+
readonly description: "Locale for formatted page numbers.";
|
|
1623
|
+
};
|
|
1624
|
+
readonly direction: {
|
|
1625
|
+
readonly type: "enum";
|
|
1626
|
+
readonly values: readonly ["ltr", "rtl"];
|
|
1627
|
+
readonly default: "ltr";
|
|
1628
|
+
readonly description: "Layout and directional icon direction.";
|
|
1629
|
+
};
|
|
1630
|
+
readonly presentation: {
|
|
1631
|
+
readonly type: "enum";
|
|
1632
|
+
readonly values: readonly ["numbered", "compact"];
|
|
1633
|
+
readonly default: "numbered";
|
|
1634
|
+
readonly reflect: true;
|
|
1635
|
+
readonly description: "Show up to seven fixed-width numbered positions or a compact summary.";
|
|
1636
|
+
};
|
|
1637
|
+
readonly variant: {
|
|
1638
|
+
readonly type: "enum";
|
|
1639
|
+
readonly values: readonly ["solid", "soft", "outline"];
|
|
1640
|
+
readonly default: "solid";
|
|
1641
|
+
readonly reflect: true;
|
|
1642
|
+
readonly description: "Selected page emphasis.";
|
|
1643
|
+
};
|
|
1644
|
+
readonly size: {
|
|
1645
|
+
readonly type: "enum";
|
|
1646
|
+
readonly values: readonly ["sm", "md", "lg"];
|
|
1647
|
+
readonly default: "md";
|
|
1648
|
+
readonly reflect: true;
|
|
1649
|
+
readonly description: "Control size.";
|
|
1650
|
+
};
|
|
1651
|
+
readonly showFirstLast: {
|
|
1652
|
+
readonly type: "boolean";
|
|
1653
|
+
readonly default: false;
|
|
1654
|
+
readonly description: "Show first and last page controls.";
|
|
1655
|
+
};
|
|
1656
|
+
readonly disabled: {
|
|
1657
|
+
readonly type: "boolean";
|
|
1658
|
+
readonly default: false;
|
|
1659
|
+
readonly reflect: true;
|
|
1660
|
+
readonly description: "Disable all controls.";
|
|
1661
|
+
};
|
|
1662
|
+
};
|
|
1663
|
+
readonly events: {
|
|
1664
|
+
readonly change: {
|
|
1665
|
+
readonly description: "Proposes a different page after enabled user activation.";
|
|
1666
|
+
readonly detail: "PaginationChangeDetail";
|
|
1667
|
+
readonly names: {
|
|
1668
|
+
readonly dom: "cosm-change";
|
|
1669
|
+
readonly react: "onChange";
|
|
1670
|
+
readonly angular: "pageChange";
|
|
1671
|
+
readonly native: "onPageChange";
|
|
1672
|
+
};
|
|
1673
|
+
};
|
|
1674
|
+
};
|
|
1675
|
+
readonly states: readonly [{
|
|
1676
|
+
readonly prop: "page";
|
|
1677
|
+
readonly event: "change";
|
|
1678
|
+
readonly defaultProp: "defaultPage";
|
|
1679
|
+
}];
|
|
1680
|
+
readonly slots: {};
|
|
1681
|
+
readonly parts: {
|
|
1682
|
+
readonly base: "Navigation landmark.";
|
|
1683
|
+
readonly control: "Navigation control.";
|
|
1684
|
+
readonly page: "Page control.";
|
|
1685
|
+
readonly current: "Current page control.";
|
|
1686
|
+
readonly ellipsis: "Decorative omitted-page indicator.";
|
|
1687
|
+
readonly summary: "Compact summary.";
|
|
1688
|
+
};
|
|
1689
|
+
readonly cssProperties: {
|
|
1690
|
+
readonly '--cosm-pagination-gap': "Gap between controls.";
|
|
1691
|
+
readonly '--cosm-pagination-min-height': "Minimum control height.";
|
|
1692
|
+
readonly '--cosm-pagination-radius': "Control corner radius.";
|
|
1693
|
+
readonly '--cosm-pagination-current-background': "Current page background.";
|
|
1694
|
+
readonly '--cosm-pagination-current-color': "Current page foreground.";
|
|
1695
|
+
readonly '--cosm-pagination-current-border': "Current page border color.";
|
|
1696
|
+
};
|
|
1697
|
+
readonly keyboard: readonly [{
|
|
1698
|
+
readonly keys: readonly ["Tab", "Shift+Tab"];
|
|
1699
|
+
readonly action: "Moves between enabled controls.";
|
|
1700
|
+
}, {
|
|
1701
|
+
readonly keys: readonly ["Enter", "Space"];
|
|
1702
|
+
readonly action: "Activates the focused control.";
|
|
1703
|
+
}];
|
|
1704
|
+
};
|
|
1705
|
+
readonly dialog: {
|
|
1706
|
+
readonly name: "dialog";
|
|
1707
|
+
readonly tag: "cosm-dialog";
|
|
1708
|
+
readonly description: "Modal content with a title, actions and cancelable close requests.";
|
|
1709
|
+
readonly role: "dialog";
|
|
1710
|
+
readonly pattern: "https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/";
|
|
1711
|
+
readonly props: {
|
|
1712
|
+
readonly open: {
|
|
1713
|
+
readonly type: "boolean";
|
|
1714
|
+
readonly default: false;
|
|
1715
|
+
readonly reflect: true;
|
|
1716
|
+
readonly description: "Committed visibility; supplying this prop, including false, controls state.";
|
|
1717
|
+
};
|
|
1718
|
+
readonly defaultOpen: {
|
|
1719
|
+
readonly type: "boolean";
|
|
1720
|
+
readonly default: false;
|
|
1721
|
+
readonly description: "Initial autonomous visibility; subsequent changes do not reset state.";
|
|
1722
|
+
};
|
|
1723
|
+
readonly presentation: {
|
|
1724
|
+
readonly type: "enum";
|
|
1725
|
+
readonly values: readonly ["standard", "fullscreen"];
|
|
1726
|
+
readonly default: "standard";
|
|
1727
|
+
readonly reflect: true;
|
|
1728
|
+
readonly description: "Centered standard surface or fullscreen surface.";
|
|
1729
|
+
};
|
|
1730
|
+
readonly size: {
|
|
1731
|
+
readonly type: "enum";
|
|
1732
|
+
readonly values: readonly ["sm", "md", "lg"];
|
|
1733
|
+
readonly default: "md";
|
|
1734
|
+
readonly reflect: true;
|
|
1735
|
+
readonly description: "Maximum standard width: sm 400, md 640, lg 960 pixels or logical points.";
|
|
1736
|
+
};
|
|
1737
|
+
readonly responsiveFullscreen: {
|
|
1738
|
+
readonly type: "boolean";
|
|
1739
|
+
readonly default: false;
|
|
1740
|
+
readonly description: "Use fullscreen when available viewport width is below 640 pixels or logical points.";
|
|
1741
|
+
};
|
|
1742
|
+
readonly closeLabel: {
|
|
1743
|
+
readonly type: "string";
|
|
1744
|
+
readonly default: "Close";
|
|
1745
|
+
readonly description: "Non-empty localized accessible name of the built-in close button.";
|
|
1746
|
+
};
|
|
1747
|
+
readonly closeOnEscape: {
|
|
1748
|
+
readonly type: "boolean";
|
|
1749
|
+
readonly default: true;
|
|
1750
|
+
readonly platforms: readonly ["web", "react", "angular"];
|
|
1751
|
+
readonly description: "Request closure on unhandled Escape on web.";
|
|
1752
|
+
};
|
|
1753
|
+
readonly closeOnAndroidBack: {
|
|
1754
|
+
readonly type: "boolean";
|
|
1755
|
+
readonly default: true;
|
|
1756
|
+
readonly platforms: readonly ["native"];
|
|
1757
|
+
readonly description: "Request closure on Android Back; consume Back even if the request is canceled.";
|
|
1758
|
+
};
|
|
1759
|
+
readonly closeOnBackdropPress: {
|
|
1760
|
+
readonly type: "boolean";
|
|
1761
|
+
readonly default: false;
|
|
1762
|
+
readonly description: "Request closure when the backdrop itself is pressed.";
|
|
1763
|
+
};
|
|
1764
|
+
readonly initialFocusTarget: {
|
|
1765
|
+
readonly type: "reference";
|
|
1766
|
+
readonly reference: "DialogFocusTarget";
|
|
1767
|
+
readonly description: "Optional platform focus target used on committed opening; it must be inside the dialog.";
|
|
1768
|
+
};
|
|
1769
|
+
readonly returnFocusTarget: {
|
|
1770
|
+
readonly type: "reference";
|
|
1771
|
+
readonly reference: "DialogFocusTarget";
|
|
1772
|
+
readonly description: "Optional platform focus target used after committed closure.";
|
|
1773
|
+
};
|
|
1774
|
+
};
|
|
1775
|
+
readonly events: {
|
|
1776
|
+
readonly openChange: {
|
|
1777
|
+
readonly description: "Proposes opening or closing; only closing is synchronously cancelable.";
|
|
1778
|
+
readonly detail: "DialogOpenChangeDetail";
|
|
1779
|
+
readonly cancelable: true;
|
|
1780
|
+
readonly names: {
|
|
1781
|
+
readonly dom: "cosm-open-change";
|
|
1782
|
+
readonly react: "onOpenChange";
|
|
1783
|
+
readonly angular: "openChange";
|
|
1784
|
+
readonly native: "onOpenChange";
|
|
1785
|
+
};
|
|
1786
|
+
};
|
|
1787
|
+
};
|
|
1788
|
+
readonly states: readonly [{
|
|
1789
|
+
readonly prop: "open";
|
|
1790
|
+
readonly event: "openChange";
|
|
1791
|
+
readonly defaultProp: "defaultOpen";
|
|
1792
|
+
}];
|
|
1793
|
+
readonly slots: {
|
|
1794
|
+
readonly title: "Required accessible title content.";
|
|
1795
|
+
readonly description: "Optional short accessible description.";
|
|
1796
|
+
readonly '': "Scrollable body content.";
|
|
1797
|
+
readonly actions: "Consumer-supplied actions.";
|
|
1798
|
+
};
|
|
1799
|
+
readonly parts: {
|
|
1800
|
+
readonly backdrop: "Modal backdrop.";
|
|
1801
|
+
readonly base: "Dialog surface.";
|
|
1802
|
+
readonly header: "Title and close control area.";
|
|
1803
|
+
readonly title: "Title container.";
|
|
1804
|
+
readonly description: "Description container.";
|
|
1805
|
+
readonly body: "Scrollable body.";
|
|
1806
|
+
readonly actions: "Actions container.";
|
|
1807
|
+
readonly close: "Close IconButton.";
|
|
1808
|
+
};
|
|
1809
|
+
readonly cssProperties: {
|
|
1810
|
+
readonly '--cosm-dialog-z-index': "Modal stacking level.";
|
|
1811
|
+
readonly '--cosm-dialog-max-width': "Standard surface maximum width.";
|
|
1812
|
+
readonly '--cosm-dialog-backdrop': "Backdrop background.";
|
|
1813
|
+
readonly '--cosm-dialog-surface': "Surface background.";
|
|
1814
|
+
readonly '--cosm-dialog-border': "Surface border.";
|
|
1815
|
+
readonly '--cosm-dialog-radius': "Surface radius.";
|
|
1816
|
+
readonly '--cosm-dialog-shadow': "Surface shadow.";
|
|
1817
|
+
readonly '--cosm-dialog-padding': "Section spacing.";
|
|
1818
|
+
};
|
|
1819
|
+
readonly keyboard: readonly [{
|
|
1820
|
+
readonly keys: readonly ["Escape"];
|
|
1821
|
+
readonly action: "On web request close unless handled by a child or disabled.";
|
|
1822
|
+
}, {
|
|
1823
|
+
readonly keys: readonly ["Tab", "Shift+Tab"];
|
|
1824
|
+
readonly action: "Keep keyboard focus inside the modal.";
|
|
1825
|
+
}, {
|
|
1826
|
+
readonly keys: readonly ["Android Back"];
|
|
1827
|
+
readonly action: "On Android request close unless disabled.";
|
|
1828
|
+
}];
|
|
1829
|
+
};
|
|
793
1830
|
};
|
|
1831
|
+
export { badgeContract } from './specs/badge.js';
|
|
1832
|
+
export { type BadgeScenario, badgeScenarios, badgeScenariosFor, } from './specs/badge.scenarios.js';
|
|
1833
|
+
export { type CalendarChangeDetail, calendarContract } from './specs/calendar.js';
|
|
1834
|
+
export { type CalendarAction, type CalendarKey, type CalendarScenario, calendarScenarios, calendarScenariosFor, } from './specs/calendar.scenarios.js';
|
|
1835
|
+
export { type CheckboxCheckedChangeDetail, checkboxContract, } from './specs/checkbox.js';
|
|
1836
|
+
export { type CheckboxAction, type CheckboxScenario, checkboxScenarios, checkboxScenariosFor, } from './specs/checkbox.scenarios.js';
|
|
1837
|
+
export { type DialogCloseReason, type DialogHandle, type DialogOpenChangeDetail, type DialogReferences, type DialogSize, dialogContract, } from './specs/dialog.js';
|
|
1838
|
+
export { type DialogAction, type DialogLayoutScenario, type DialogScenario, dialogLayoutScenarios, dialogScenarios, dialogScenariosFor, } from './specs/dialog.scenarios.js';
|
|
794
1839
|
export { iconContract } from './specs/icon.js';
|
|
795
1840
|
export { type IconScenario, iconScenarios, iconScenariosFor, } from './specs/icon.scenarios.js';
|
|
796
1841
|
export { type IconButtonPressDetail, type IconButtonPressedChangeDetail, iconButtonContract, } from './specs/icon-button.js';
|
|
797
1842
|
export { type IconButtonAction, type IconButtonScenario, iconButtonScenarios, iconButtonScenariosFor, } from './specs/icon-button.scenarios.js';
|
|
798
1843
|
export { type ListboxGroup, type ListboxItem, type ListboxOption, type ListboxSelectionChangeDetail, type ListboxSelectionMode, listboxContract, } from './specs/listbox.js';
|
|
799
1844
|
export { type ListboxAction, type ListboxScenario, listboxScenarioItems, listboxScenarios, listboxScenariosFor, } from './specs/listbox.scenarios.js';
|
|
1845
|
+
export { type PaginationChangeDetail, paginationContract } from './specs/pagination.js';
|
|
1846
|
+
export { type PaginationScenario, paginationScenarios, paginationScenariosFor, } from './specs/pagination.scenarios.js';
|
|
800
1847
|
export { type PopoverAlign, type PopoverCloseReason, type PopoverHandle, type PopoverOpenChangeDetail, type PopoverSide, popoverContract, } from './specs/popover.js';
|
|
801
1848
|
export { type PopoverAction, type PopoverChangeExpectation, type PopoverScenario, popoverScenarios, popoverScenariosFor, } from './specs/popover.scenarios.js';
|
|
1849
|
+
export { type RadioGroupChangeDetail, type RadioGroupOption, type RadioGroupOptions, type RadioGroupReferences, type RadioGroupValue, radioGroupContract, } from './specs/radio-group.js';
|
|
1850
|
+
export { type RadioGroupAction, type RadioGroupScenario, radioGroupScenarioOptions, radioGroupScenarios, radioGroupScenariosFor, } from './specs/radio-group.scenarios.js';
|
|
1851
|
+
export { type SelectChangeDetail, type SelectItems, type SelectOption, type SelectReferences, type SelectValue, selectContract, } from './specs/select.js';
|
|
1852
|
+
export { type SelectAction, type SelectScenario, selectScenarioItems, selectScenarios, selectScenariosFor, } from './specs/select.scenarios.js';
|
|
1853
|
+
export { type SwitchCheckedChangeDetail, switchContract, } from './specs/switch.js';
|
|
1854
|
+
export { type SwitchAction, type SwitchScenario, switchScenarios, switchScenariosFor, } from './specs/switch.scenarios.js';
|
|
802
1855
|
export { type TextFieldChangeDetail, type TextFieldSubmitDetail, textFieldContract, } from './specs/text-field.js';
|
|
803
1856
|
export { type TextFieldAction, type TextFieldScenario, textFieldScenarios, textFieldScenariosFor, } from './specs/text-field.scenarios.js';
|
|
1857
|
+
export { type TextareaChangeDetail, textareaContract } from './specs/textarea.js';
|
|
1858
|
+
export { type TextareaAction, type TextareaScenario, textareaScenarios, textareaScenariosFor, } from './specs/textarea.scenarios.js';
|
|
804
1859
|
//# sourceMappingURL=index.d.ts.map
|