@cscfi/csc-ui-react 4.0.0-alpha.3 → 4.0.0-alpha.5
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 +21 -3
- package/dist/components.js +37 -0
- package/package.json +3 -3
package/dist/components.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Manifest — do not edit. Regenerate with `pnpm run generate`.
|
|
4
4
|
*/
|
|
5
5
|
import { type EventName } from '@lit/react';
|
|
6
|
-
import { type CAccordionElement, type CAccordionElementEventMap, type CAccordionItemElement, type CAccordionItemElementEventMap, type CAlertElement, type CAutocompleteElement, type CAutocompleteElementEventMap, type CBadgeElement, type CButtonElement, type CButtonGroupElement, type CButtonGroupElementEventMap, type CCardElement, type CCardActionsElement, type CCardContentElement, type CCardTitleElement, type CCheckboxElement, type CCheckboxElementEventMap, type CCscLogoElement, type CDataTableElement, type CDataTableElementEventMap, type CDividerElement, type CIconElement, type CIconButtonElement, type CInputElement, type CLinkElement, type CListElement, type CListItemElement, type CListItemTitleElement, type CLoaderElement, type CLoginButtonElement, type CLoginButtonsElement, type CLoginCardElement, type CLoginCardActionsElement, type CLoginCardContentElement, type CLoginCardTitleElement, type CMainElement, type CMenuElement, type CMenuElementEventMap, type CMenuItemElement, type CMenuLabelElement, type CMessageElement, type CModalElement, type CModalElementEventMap, type CNavigationButtonElement, type COptionElement, type COptionValueElement, type COtpInputElement, type COtpInputElementEventMap, type CPageElement, type CPaginationElement, type CPaginationElementEventMap, type CProgressBarElement, type CRadioElement, type CRadioGroupElement, type CRadioGroupElementEventMap, type CSelectElement, type CSelectElementEventMap, type CSideNavigationElement, type CSideNavigationElementEventMap, type CSideNavigationItemElement, type CSideNavigationItemElementEventMap, type CSideNavigationTitleElement, type CSliderElement, type CSliderElementEventMap, type CSpinnerElement, type CStatusElement, type CStepElement, type CStepsElement, type CSubNavigationItemElement, type CSwitchElement, type CSwitchElementEventMap, type CTabElement, type CTabElementEventMap, type CTabButtonsElement, type CTabButtonsElementEventMap, type CTabItemElement, type CTabItemElementEventMap, type CTabItemsElement, type CTableElement, type CTabsElement, type CTabsElementEventMap, type CTagElement, type CTagElementEventMap, type CTagsElement, type CTextFieldElement, type CTextFieldElementEventMap, type CToastElement, type CToastElementEventMap, type CToastsElement, type CToolbarElement } from '@cscfi/csc-ui';
|
|
6
|
+
import { type CAccordionElement, type CAccordionElementEventMap, type CAccordionItemElement, type CAccordionItemElementEventMap, type CAlertElement, type CAlertElementEventMap, type CAutocompleteElement, type CAutocompleteElementEventMap, type CBadgeElement, type CButtonElement, type CButtonGroupElement, type CButtonGroupElementEventMap, type CCardElement, type CCardActionsElement, type CCardContentElement, type CCardTitleElement, type CCheckboxElement, type CCheckboxElementEventMap, type CCscLogoElement, type CDataTableElement, type CDataTableElementEventMap, type CDividerElement, type CIconElement, type CIconButtonElement, type CInputElement, type CLinkElement, type CListElement, type CListItemElement, type CListItemTitleElement, type CLoaderElement, type CLoginButtonElement, type CLoginButtonsElement, type CLoginCardElement, type CLoginCardActionsElement, type CLoginCardContentElement, type CLoginCardTitleElement, type CMainElement, type CMenuElement, type CMenuElementEventMap, type CMenuItemElement, type CMenuLabelElement, type CMessageElement, type CModalElement, type CModalElementEventMap, type CNavigationButtonElement, type COptionElement, type COptionValueElement, type COtpInputElement, type COtpInputElementEventMap, type CPageElement, type CPaginationElement, type CPaginationElementEventMap, type CPopoverElement, type CPopoverElementEventMap, type CProgressBarElement, type CProgressCircleElement, type CRadioElement, type CRadioElementEventMap, type CRadioGroupElement, type CRadioGroupElementEventMap, type CSelectElement, type CSelectElementEventMap, type CSideNavigationElement, type CSideNavigationElementEventMap, type CSideNavigationItemElement, type CSideNavigationItemElementEventMap, type CSideNavigationTitleElement, type CSliderElement, type CSliderElementEventMap, type CSpinnerElement, type CStatusElement, type CStepElement, type CStepsElement, type CSubNavigationItemElement, type CSwitchElement, type CSwitchElementEventMap, type CTabElement, type CTabElementEventMap, type CTabButtonsElement, type CTabButtonsElementEventMap, type CTabItemElement, type CTabItemElementEventMap, type CTabItemsElement, type CTableElement, type CTabsElement, type CTabsElementEventMap, type CTagElement, type CTagElementEventMap, type CTagsElement, type CTextFieldElement, type CTextFieldElementEventMap, type CToastElement, type CToastElementEventMap, type CToastsElement, type CToolbarElement, type CTooltipElement, type CTooltipElementEventMap } from '@cscfi/csc-ui';
|
|
7
7
|
export declare const CAccordion: import("@lit/react").ReactWebComponent<CAccordionElement, {
|
|
8
8
|
onChange: EventName<CAccordionElementEventMap["change"]>;
|
|
9
9
|
onChangeValue: EventName<CAccordionElementEventMap["changeValue"]>;
|
|
@@ -13,7 +13,9 @@ export declare const CAccordion: import("@lit/react").ReactWebComponent<CAccordi
|
|
|
13
13
|
export declare const CAccordionItem: import("@lit/react").ReactWebComponent<CAccordionItemElement, {
|
|
14
14
|
onItemChange: EventName<CAccordionItemElementEventMap["item-change"]>;
|
|
15
15
|
}>;
|
|
16
|
-
export declare const CAlert: import("@lit/react").ReactWebComponent<CAlertElement, {
|
|
16
|
+
export declare const CAlert: import("@lit/react").ReactWebComponent<CAlertElement, {
|
|
17
|
+
onDismiss: EventName<CAlertElementEventMap["dismiss"]>;
|
|
18
|
+
}>;
|
|
17
19
|
/** A filterable value-selection component: a readonly value field that opens a popover panel with a search input above the matching options. */
|
|
18
20
|
export declare const CAutocomplete: import("@lit/react").ReactWebComponent<CAutocompleteElement, {
|
|
19
21
|
onChange: EventName<CAutocompleteElementEventMap["change"]>;
|
|
@@ -98,8 +100,19 @@ export declare const CPagination: import("@lit/react").ReactWebComponent<CPagina
|
|
|
98
100
|
onInput: EventName<CPaginationElementEventMap["input"]>;
|
|
99
101
|
onUpdateValue: EventName<CPaginationElementEventMap["update:value"]>;
|
|
100
102
|
}>;
|
|
103
|
+
/** A click-opened, non-modal surface anchored to its trigger, floating in the top layer; its content may be interactive. */
|
|
104
|
+
export declare const CPopover: import("@lit/react").ReactWebComponent<CPopoverElement, {
|
|
105
|
+
onChangeOpen: EventName<CPopoverElementEventMap["change:open"]>;
|
|
106
|
+
}>;
|
|
107
|
+
/** A horizontal progress bar that fills a track to a known completion percentage, with an optional details line showing the value and a label. */
|
|
101
108
|
export declare const CProgressBar: import("@lit/react").ReactWebComponent<CProgressBarElement, {}>;
|
|
102
|
-
|
|
109
|
+
/** A circular progress indicator that draws a known completion percentage as an arc around a track — the circular counterpart of `c-progress-bar`. */
|
|
110
|
+
export declare const CProgressCircle: import("@lit/react").ReactWebComponent<CProgressCircleElement, {}>;
|
|
111
|
+
/** A single radio option inside a `c-radio-group`: a native radio input whose default slot is its clickable, announced label. */
|
|
112
|
+
export declare const CRadio: import("@lit/react").ReactWebComponent<CRadioElement, {
|
|
113
|
+
onChange: EventName<CRadioElementEventMap["change"]>;
|
|
114
|
+
}>;
|
|
115
|
+
/** A radio group is a set of mutually exclusive choices where exactly one can be selected, authored as slotted `c-radio` children. Give the group a `label` so the choice it represents is named for every user, and a `hint` describing how to answer. */
|
|
103
116
|
export declare const CRadioGroup: import("@lit/react").ReactWebComponent<CRadioGroupElement, {
|
|
104
117
|
onChangeValue: EventName<CRadioGroupElementEventMap["changeValue"]>;
|
|
105
118
|
onInput: EventName<CRadioGroupElementEventMap["input"]>;
|
|
@@ -122,6 +135,7 @@ export declare const CSlider: import("@lit/react").ReactWebComponent<CSliderElem
|
|
|
122
135
|
onInput: EventName<CSliderElementEventMap["input"]>;
|
|
123
136
|
onUpdateValue: EventName<CSliderElementEventMap["update:value"]>;
|
|
124
137
|
}>;
|
|
138
|
+
/** A circular indeterminate activity indicator — pure motion with no value, for waits of unknown duration. */
|
|
125
139
|
export declare const CSpinner: import("@lit/react").ReactWebComponent<CSpinnerElement, {}>;
|
|
126
140
|
export declare const CStatus: import("@lit/react").ReactWebComponent<CStatusElement, {}>;
|
|
127
141
|
export declare const CStep: import("@lit/react").ReactWebComponent<CStepElement, {}>;
|
|
@@ -168,3 +182,7 @@ export declare const CToast: import("@lit/react").ReactWebComponent<CToastElemen
|
|
|
168
182
|
/** Toasts are passive, transient notifications — operation results, background progress — stacked and managed by a single `c-toasts` container via its `addToast` / `removeToast` methods. */
|
|
169
183
|
export declare const CToasts: import("@lit/react").ReactWebComponent<CToastsElement, {}>;
|
|
170
184
|
export declare const CToolbar: import("@lit/react").ReactWebComponent<CToolbarElement, {}>;
|
|
185
|
+
/** A non-interactive text hint shown when its trigger is hovered or keyboard-focused, floating in the top layer on the inverted surface tier. */
|
|
186
|
+
export declare const CTooltip: import("@lit/react").ReactWebComponent<CTooltipElement, {
|
|
187
|
+
onChangeOpen: EventName<CTooltipElementEventMap["change:open"]>;
|
|
188
|
+
}>;
|
package/dist/components.js
CHANGED
|
@@ -45,6 +45,9 @@ export const CAccordionItem = createComponent({
|
|
|
45
45
|
export const CAlert = createComponent({
|
|
46
46
|
displayName: 'CAlert',
|
|
47
47
|
elementClass: elementClass('c-alert'),
|
|
48
|
+
events: {
|
|
49
|
+
onDismiss: 'dismiss',
|
|
50
|
+
},
|
|
48
51
|
react: React,
|
|
49
52
|
tagName: 'c-alert',
|
|
50
53
|
});
|
|
@@ -330,18 +333,41 @@ export const CPagination = createComponent({
|
|
|
330
333
|
react: React,
|
|
331
334
|
tagName: 'c-pagination',
|
|
332
335
|
});
|
|
336
|
+
/** A click-opened, non-modal surface anchored to its trigger, floating in the top layer; its content may be interactive. */
|
|
337
|
+
export const CPopover = createComponent({
|
|
338
|
+
displayName: 'CPopover',
|
|
339
|
+
elementClass: elementClass('c-popover'),
|
|
340
|
+
events: {
|
|
341
|
+
onChangeOpen: 'change:open',
|
|
342
|
+
},
|
|
343
|
+
react: React,
|
|
344
|
+
tagName: 'c-popover',
|
|
345
|
+
});
|
|
346
|
+
/** A horizontal progress bar that fills a track to a known completion percentage, with an optional details line showing the value and a label. */
|
|
333
347
|
export const CProgressBar = createComponent({
|
|
334
348
|
displayName: 'CProgressBar',
|
|
335
349
|
elementClass: elementClass('c-progress-bar'),
|
|
336
350
|
react: React,
|
|
337
351
|
tagName: 'c-progress-bar',
|
|
338
352
|
});
|
|
353
|
+
/** A circular progress indicator that draws a known completion percentage as an arc around a track — the circular counterpart of `c-progress-bar`. */
|
|
354
|
+
export const CProgressCircle = createComponent({
|
|
355
|
+
displayName: 'CProgressCircle',
|
|
356
|
+
elementClass: elementClass('c-progress-circle'),
|
|
357
|
+
react: React,
|
|
358
|
+
tagName: 'c-progress-circle',
|
|
359
|
+
});
|
|
360
|
+
/** A single radio option inside a `c-radio-group`: a native radio input whose default slot is its clickable, announced label. */
|
|
339
361
|
export const CRadio = createComponent({
|
|
340
362
|
displayName: 'CRadio',
|
|
341
363
|
elementClass: elementClass('c-radio'),
|
|
364
|
+
events: {
|
|
365
|
+
onChange: 'change',
|
|
366
|
+
},
|
|
342
367
|
react: React,
|
|
343
368
|
tagName: 'c-radio',
|
|
344
369
|
});
|
|
370
|
+
/** A radio group is a set of mutually exclusive choices where exactly one can be selected, authored as slotted `c-radio` children. Give the group a `label` so the choice it represents is named for every user, and a `hint` describing how to answer. */
|
|
345
371
|
export const CRadioGroup = createComponent({
|
|
346
372
|
displayName: 'CRadioGroup',
|
|
347
373
|
elementClass: elementClass('c-radio-group'),
|
|
@@ -399,6 +425,7 @@ export const CSlider = createComponent({
|
|
|
399
425
|
react: React,
|
|
400
426
|
tagName: 'c-slider',
|
|
401
427
|
});
|
|
428
|
+
/** A circular indeterminate activity indicator — pure motion with no value, for waits of unknown duration. */
|
|
402
429
|
export const CSpinner = createComponent({
|
|
403
430
|
displayName: 'CSpinner',
|
|
404
431
|
elementClass: elementClass('c-spinner'),
|
|
@@ -543,3 +570,13 @@ export const CToolbar = createComponent({
|
|
|
543
570
|
react: React,
|
|
544
571
|
tagName: 'c-toolbar',
|
|
545
572
|
});
|
|
573
|
+
/** A non-interactive text hint shown when its trigger is hovered or keyboard-focused, floating in the top layer on the inverted surface tier. */
|
|
574
|
+
export const CTooltip = createComponent({
|
|
575
|
+
displayName: 'CTooltip',
|
|
576
|
+
elementClass: elementClass('c-tooltip'),
|
|
577
|
+
events: {
|
|
578
|
+
onChangeOpen: 'change:open',
|
|
579
|
+
},
|
|
580
|
+
react: React,
|
|
581
|
+
tagName: 'c-tooltip',
|
|
582
|
+
});
|
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.5",
|
|
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.5"
|
|
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.5"
|
|
31
31
|
},
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"repository": "CSCfi/ui",
|