@cscfi/csc-ui-react 4.0.0-alpha.11 → 4.0.0-alpha.12
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/components.d.ts +3 -0
- package/dist/components.js +3 -0
- package/package.json +3 -3
package/dist/components.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ export declare const CLoginCardContent: import("@lit/react").ReactWebComponent<C
|
|
|
72
72
|
export declare const CLoginCardTitle: import("@lit/react").ReactWebComponent<CLoginCardTitleElement, {}>;
|
|
73
73
|
/** Wrapper component for the whole page */
|
|
74
74
|
export declare const CMain: import("@lit/react").ReactWebComponent<CMainElement, {}>;
|
|
75
|
+
/** A command menu: a transient panel of actions or navigation choices opened from a trigger (the WAI-ARIA menu-button pattern), authored declaratively with slotted `c-menu-item`, `c-menu-label` and `c-divider` elements. Activating an item fires a one-off `select` event and closes the menu; the menu holds no selected value — that is `c-select`'s job. */
|
|
75
76
|
export declare const CMenu: import("@lit/react").ReactWebComponent<CMenuElement, {
|
|
76
77
|
onChangeOpen: EventName<CMenuElementEventMap["change:open"]>;
|
|
77
78
|
onSelect: EventName<CMenuElementEventMap["select"]>;
|
|
@@ -89,6 +90,7 @@ export declare const CModal: import("@lit/react").ReactWebComponent<CModalElemen
|
|
|
89
90
|
}>;
|
|
90
91
|
export declare const CNavigationButton: import("@lit/react").ReactWebComponent<CNavigationButtonElement, {}>;
|
|
91
92
|
export declare const COption: import("@lit/react").ReactWebComponent<COptionElement, {}>;
|
|
93
|
+
/** The label region of a `c-option`: wraps the text that c-select and c-autocomplete use as the option's label — in the closed field, its tag and the autocomplete filter — so the option can carry a description or an icon beside its label, and the region in which c-autocomplete marks the runs equal to the query (`::part(match)`). */
|
|
92
94
|
export declare const COptionValue: import("@lit/react").ReactWebComponent<COptionValueElement, {}>;
|
|
93
95
|
export declare const COtpInput: import("@lit/react").ReactWebComponent<COtpInputElement, {
|
|
94
96
|
onChangeValue: EventName<COtpInputElementEventMap["changeValue"]>;
|
|
@@ -120,6 +122,7 @@ export declare const CRadioGroup: import("@lit/react").ReactWebComponent<CRadioG
|
|
|
120
122
|
onInput: EventName<CRadioGroupElementEventMap["input"]>;
|
|
121
123
|
onUpdateValue: EventName<CRadioGroupElementEventMap["update:value"]>;
|
|
122
124
|
}>;
|
|
125
|
+
/** A value-selection field: a readonly field that opens a listbox of options — slotted `c-option` elements or an `items` array — and holds the picked value, emitting the value events that back `v-model`. */
|
|
123
126
|
export declare const CSelect: import("@lit/react").ReactWebComponent<CSelectElement, {
|
|
124
127
|
onChangeValue: EventName<CSelectElementEventMap["changeValue"]>;
|
|
125
128
|
onInput: EventName<CSelectElementEventMap["input"]>;
|
package/dist/components.js
CHANGED
|
@@ -246,6 +246,7 @@ export const CMain = createComponent({
|
|
|
246
246
|
react: React,
|
|
247
247
|
tagName: 'c-main',
|
|
248
248
|
});
|
|
249
|
+
/** A command menu: a transient panel of actions or navigation choices opened from a trigger (the WAI-ARIA menu-button pattern), authored declaratively with slotted `c-menu-item`, `c-menu-label` and `c-divider` elements. Activating an item fires a one-off `select` event and closes the menu; the menu holds no selected value — that is `c-select`'s job. */
|
|
249
250
|
export const CMenu = createComponent({
|
|
250
251
|
displayName: 'CMenu',
|
|
251
252
|
elementClass: elementClass('c-menu'),
|
|
@@ -300,6 +301,7 @@ export const COption = createComponent({
|
|
|
300
301
|
react: React,
|
|
301
302
|
tagName: 'c-option',
|
|
302
303
|
});
|
|
304
|
+
/** The label region of a `c-option`: wraps the text that c-select and c-autocomplete use as the option's label — in the closed field, its tag and the autocomplete filter — so the option can carry a description or an icon beside its label, and the region in which c-autocomplete marks the runs equal to the query (`::part(match)`). */
|
|
303
305
|
export const COptionValue = createComponent({
|
|
304
306
|
displayName: 'COptionValue',
|
|
305
307
|
elementClass: elementClass('c-option-value'),
|
|
@@ -381,6 +383,7 @@ export const CRadioGroup = createComponent({
|
|
|
381
383
|
react: React,
|
|
382
384
|
tagName: 'c-radio-group',
|
|
383
385
|
});
|
|
386
|
+
/** A value-selection field: a readonly field that opens a listbox of options — slotted `c-option` elements or an `items` array — and holds the picked value, emitting the value events that back `v-model`. */
|
|
384
387
|
export const CSelect = createComponent({
|
|
385
388
|
displayName: 'CSelect',
|
|
386
389
|
elementClass: elementClass('c-select'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cscfi/csc-ui-react",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.12",
|
|
4
4
|
"description": "React components for the @cscfi/csc-ui custom elements, generated from the Custom Elements Manifest.",
|
|
5
5
|
"author": "My CSC Team <suiteamsui@gmail.com>",
|
|
6
6
|
"type": "module",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": ">=18",
|
|
24
|
-
"@cscfi/csc-ui": "^4.0.0-alpha.
|
|
24
|
+
"@cscfi/csc-ui": "^4.0.0-alpha.12"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/react": "^19.1.8",
|
|
28
28
|
"react": "^19.1.0",
|
|
29
29
|
"typescript": "^6.0.3",
|
|
30
|
-
"@cscfi/csc-ui": "4.0.0-alpha.
|
|
30
|
+
"@cscfi/csc-ui": "4.0.0-alpha.12"
|
|
31
31
|
},
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"repository": "CSCfi/ui",
|