@cscfi/csc-ui-react 4.0.0-alpha.2 → 4.0.0-alpha.21
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 +38 -4
- package/dist/components.js +60 -1
- package/dist/index.d.ts +7 -3
- package/dist/index.js +4 -2
- 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, type CTreeSelectElement, type CTreeSelectElementEventMap } 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,10 @@ 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
|
-
|
|
16
|
+
/** A persistent, in-flow status message: a tinted box whose type carries a status family's colours through the icon, heading and accent edge, while the body copy stays neutral. */
|
|
17
|
+
export declare const CAlert: import("@lit/react").ReactWebComponent<CAlertElement, {
|
|
18
|
+
onDismiss: EventName<CAlertElementEventMap["dismiss"]>;
|
|
19
|
+
}>;
|
|
17
20
|
/** A filterable value-selection component: a readonly value field that opens a popover panel with a search input above the matching options. */
|
|
18
21
|
export declare const CAutocomplete: import("@lit/react").ReactWebComponent<CAutocompleteElement, {
|
|
19
22
|
onChange: EventName<CAutocompleteElementEventMap["change"]>;
|
|
@@ -35,6 +38,7 @@ export declare const CCard: import("@lit/react").ReactWebComponent<CCardElement,
|
|
|
35
38
|
export declare const CCardActions: import("@lit/react").ReactWebComponent<CCardActionsElement, {}>;
|
|
36
39
|
export declare const CCardContent: import("@lit/react").ReactWebComponent<CCardContentElement, {}>;
|
|
37
40
|
export declare const CCardTitle: import("@lit/react").ReactWebComponent<CCardTitleElement, {}>;
|
|
41
|
+
/** A form control for a single on/off choice: a native checkbox with a label, an optional hint, and validation messaging. */
|
|
38
42
|
export declare const CCheckbox: import("@lit/react").ReactWebComponent<CCheckboxElement, {
|
|
39
43
|
onChange: EventName<CCheckboxElementEventMap["change"]>;
|
|
40
44
|
onChangeValue: EventName<CCheckboxElementEventMap["changeValue"]>;
|
|
@@ -66,8 +70,9 @@ export declare const CLoginCard: import("@lit/react").ReactWebComponent<CLoginCa
|
|
|
66
70
|
export declare const CLoginCardActions: import("@lit/react").ReactWebComponent<CLoginCardActionsElement, {}>;
|
|
67
71
|
export declare const CLoginCardContent: import("@lit/react").ReactWebComponent<CLoginCardContentElement, {}>;
|
|
68
72
|
export declare const CLoginCardTitle: import("@lit/react").ReactWebComponent<CLoginCardTitleElement, {}>;
|
|
69
|
-
/**
|
|
73
|
+
/** The page shell of an application: it paints the page canvas and lays out the toolbar, the side navigation and the page in the dashboard layout. It is at least a viewport tall and grows with its content, so the document — not a component — is what scrolls. */
|
|
70
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. */
|
|
71
76
|
export declare const CMenu: import("@lit/react").ReactWebComponent<CMenuElement, {
|
|
72
77
|
onChangeOpen: EventName<CMenuElementEventMap["change:open"]>;
|
|
73
78
|
onSelect: EventName<CMenuElementEventMap["select"]>;
|
|
@@ -85,6 +90,7 @@ export declare const CModal: import("@lit/react").ReactWebComponent<CModalElemen
|
|
|
85
90
|
}>;
|
|
86
91
|
export declare const CNavigationButton: import("@lit/react").ReactWebComponent<CNavigationButtonElement, {}>;
|
|
87
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)`). */
|
|
88
94
|
export declare const COptionValue: import("@lit/react").ReactWebComponent<COptionValueElement, {}>;
|
|
89
95
|
export declare const COtpInput: import("@lit/react").ReactWebComponent<COtpInputElement, {
|
|
90
96
|
onChangeValue: EventName<COtpInputElementEventMap["changeValue"]>;
|
|
@@ -98,18 +104,31 @@ export declare const CPagination: import("@lit/react").ReactWebComponent<CPagina
|
|
|
98
104
|
onInput: EventName<CPaginationElementEventMap["input"]>;
|
|
99
105
|
onUpdateValue: EventName<CPaginationElementEventMap["update:value"]>;
|
|
100
106
|
}>;
|
|
107
|
+
/** A click-opened, non-modal surface anchored to its trigger, floating in the top layer; its content may be interactive. */
|
|
108
|
+
export declare const CPopover: import("@lit/react").ReactWebComponent<CPopoverElement, {
|
|
109
|
+
onChangeOpen: EventName<CPopoverElementEventMap["change:open"]>;
|
|
110
|
+
}>;
|
|
111
|
+
/** 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
112
|
export declare const CProgressBar: import("@lit/react").ReactWebComponent<CProgressBarElement, {}>;
|
|
102
|
-
|
|
113
|
+
/** A circular progress indicator that draws a known completion percentage as an arc around a track — the circular counterpart of `c-progress-bar`. */
|
|
114
|
+
export declare const CProgressCircle: import("@lit/react").ReactWebComponent<CProgressCircleElement, {}>;
|
|
115
|
+
/** A single radio option inside a `c-radio-group`: a native radio input whose default slot is its clickable, announced label. */
|
|
116
|
+
export declare const CRadio: import("@lit/react").ReactWebComponent<CRadioElement, {
|
|
117
|
+
onChange: EventName<CRadioElementEventMap["change"]>;
|
|
118
|
+
}>;
|
|
119
|
+
/** 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
120
|
export declare const CRadioGroup: import("@lit/react").ReactWebComponent<CRadioGroupElement, {
|
|
104
121
|
onChangeValue: EventName<CRadioGroupElementEventMap["changeValue"]>;
|
|
105
122
|
onInput: EventName<CRadioGroupElementEventMap["input"]>;
|
|
106
123
|
onUpdateValue: EventName<CRadioGroupElementEventMap["update:value"]>;
|
|
107
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`. */
|
|
108
126
|
export declare const CSelect: import("@lit/react").ReactWebComponent<CSelectElement, {
|
|
109
127
|
onChangeValue: EventName<CSelectElementEventMap["changeValue"]>;
|
|
110
128
|
onInput: EventName<CSelectElementEventMap["input"]>;
|
|
111
129
|
onUpdateValue: EventName<CSelectElementEventMap["update:value"]>;
|
|
112
130
|
}>;
|
|
131
|
+
/** The dashboard layout's left-hand menu: section titles, navigation items and their sub-items in a drawer that is pinned beside the page on desktop and slides in over it on mobile. */
|
|
113
132
|
export declare const CSideNavigation: import("@lit/react").ReactWebComponent<CSideNavigationElement, {
|
|
114
133
|
onChangeMenuVisible: EventName<CSideNavigationElementEventMap["change:menu-visible"]>;
|
|
115
134
|
}>;
|
|
@@ -122,11 +141,13 @@ export declare const CSlider: import("@lit/react").ReactWebComponent<CSliderElem
|
|
|
122
141
|
onInput: EventName<CSliderElementEventMap["input"]>;
|
|
123
142
|
onUpdateValue: EventName<CSliderElementEventMap["update:value"]>;
|
|
124
143
|
}>;
|
|
144
|
+
/** A circular indeterminate activity indicator — pure motion with no value, for waits of unknown duration. */
|
|
125
145
|
export declare const CSpinner: import("@lit/react").ReactWebComponent<CSpinnerElement, {}>;
|
|
126
146
|
export declare const CStatus: import("@lit/react").ReactWebComponent<CStatusElement, {}>;
|
|
127
147
|
export declare const CStep: import("@lit/react").ReactWebComponent<CStepElement, {}>;
|
|
128
148
|
export declare const CSteps: import("@lit/react").ReactWebComponent<CStepsElement, {}>;
|
|
129
149
|
export declare const CSubNavigationItem: import("@lit/react").ReactWebComponent<CSubNavigationItemElement, {}>;
|
|
150
|
+
/** A toggle for a binary setting that takes effect immediately: a native switch control with a label, an optional hint, and validation messaging. */
|
|
130
151
|
export declare const CSwitch: import("@lit/react").ReactWebComponent<CSwitchElement, {
|
|
131
152
|
onChange: EventName<CSwitchElementEventMap["change"]>;
|
|
132
153
|
onChangeValue: EventName<CSwitchElementEventMap["changeValue"]>;
|
|
@@ -145,6 +166,7 @@ export declare const CTabItem: import("@lit/react").ReactWebComponent<CTabItemEl
|
|
|
145
166
|
onContentChange: EventName<CTabItemElementEventMap["contentChange"]>;
|
|
146
167
|
}>;
|
|
147
168
|
export declare const CTabItems: import("@lit/react").ReactWebComponent<CTabItemsElement, {}>;
|
|
169
|
+
/** A styled wrapper for a table you author yourself: slot in a plain `<table>` and c-table gives it the CSC look plus an optional responsive card layout on narrow screens. The table stays in your own DOM — your stylesheets, your framework's rendering, and `::part()` selectors on components nested in cells (a `c-tag` status chip, a `c-pagination` footer) all keep working. */
|
|
148
170
|
export declare const CTable: import("@lit/react").ReactWebComponent<CTableElement, {}>;
|
|
149
171
|
export declare const CTabs: import("@lit/react").ReactWebComponent<CTabsElement, {
|
|
150
172
|
onChangeValue: EventName<CTabsElementEventMap["changeValue"]>;
|
|
@@ -167,4 +189,16 @@ export declare const CToast: import("@lit/react").ReactWebComponent<CToastElemen
|
|
|
167
189
|
}>;
|
|
168
190
|
/** Toasts are passive, transient notifications — operation results, background progress — stacked and managed by a single `c-toasts` container via its `addToast` / `removeToast` methods. */
|
|
169
191
|
export declare const CToasts: import("@lit/react").ReactWebComponent<CToastsElement, {}>;
|
|
192
|
+
/** The app-wide bar at the top of the dashboard layout: the logo, the service name and global actions such as the user menu or log out. It is pinned to the top of the viewport by default and stays there while the page scrolls; `static` keeps it in the page flow so it scrolls away with the content. */
|
|
170
193
|
export declare const CToolbar: import("@lit/react").ReactWebComponent<CToolbarElement, {}>;
|
|
194
|
+
/** A non-interactive text hint shown when its trigger is hovered or keyboard-focused, floating in the top layer on the inverted surface tier. */
|
|
195
|
+
export declare const CTooltip: import("@lit/react").ReactWebComponent<CTooltipElement, {
|
|
196
|
+
onChangeOpen: EventName<CTooltipElementEventMap["change:open"]>;
|
|
197
|
+
}>;
|
|
198
|
+
/** A hierarchical value-selection component: a readonly value field that opens a panel for browsing a tree one level at a time, or searching it as a whole, to commit one item. */
|
|
199
|
+
export declare const CTreeSelect: import("@lit/react").ReactWebComponent<CTreeSelectElement, {
|
|
200
|
+
onChange: EventName<CTreeSelectElementEventMap["change"]>;
|
|
201
|
+
onChangeQuery: EventName<CTreeSelectElementEventMap["change:query"]>;
|
|
202
|
+
onInput: EventName<CTreeSelectElementEventMap["input"]>;
|
|
203
|
+
onUpdateValue: EventName<CTreeSelectElementEventMap["update:value"]>;
|
|
204
|
+
}>;
|
package/dist/components.js
CHANGED
|
@@ -42,9 +42,13 @@ export const CAccordionItem = createComponent({
|
|
|
42
42
|
react: React,
|
|
43
43
|
tagName: 'c-accordion-item',
|
|
44
44
|
});
|
|
45
|
+
/** A persistent, in-flow status message: a tinted box whose type carries a status family's colours through the icon, heading and accent edge, while the body copy stays neutral. */
|
|
45
46
|
export const CAlert = createComponent({
|
|
46
47
|
displayName: 'CAlert',
|
|
47
48
|
elementClass: elementClass('c-alert'),
|
|
49
|
+
events: {
|
|
50
|
+
onDismiss: 'dismiss',
|
|
51
|
+
},
|
|
48
52
|
react: React,
|
|
49
53
|
tagName: 'c-alert',
|
|
50
54
|
});
|
|
@@ -111,6 +115,7 @@ export const CCardTitle = createComponent({
|
|
|
111
115
|
react: React,
|
|
112
116
|
tagName: 'c-card-title',
|
|
113
117
|
});
|
|
118
|
+
/** A form control for a single on/off choice: a native checkbox with a label, an optional hint, and validation messaging. */
|
|
114
119
|
export const CCheckbox = createComponent({
|
|
115
120
|
displayName: 'CCheckbox',
|
|
116
121
|
elementClass: elementClass('c-checkbox'),
|
|
@@ -234,13 +239,14 @@ export const CLoginCardTitle = createComponent({
|
|
|
234
239
|
react: React,
|
|
235
240
|
tagName: 'c-login-card-title',
|
|
236
241
|
});
|
|
237
|
-
/**
|
|
242
|
+
/** The page shell of an application: it paints the page canvas and lays out the toolbar, the side navigation and the page in the dashboard layout. It is at least a viewport tall and grows with its content, so the document — not a component — is what scrolls. */
|
|
238
243
|
export const CMain = createComponent({
|
|
239
244
|
displayName: 'CMain',
|
|
240
245
|
elementClass: elementClass('c-main'),
|
|
241
246
|
react: React,
|
|
242
247
|
tagName: 'c-main',
|
|
243
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. */
|
|
244
250
|
export const CMenu = createComponent({
|
|
245
251
|
displayName: 'CMenu',
|
|
246
252
|
elementClass: elementClass('c-menu'),
|
|
@@ -295,6 +301,7 @@ export const COption = createComponent({
|
|
|
295
301
|
react: React,
|
|
296
302
|
tagName: 'c-option',
|
|
297
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)`). */
|
|
298
305
|
export const COptionValue = createComponent({
|
|
299
306
|
displayName: 'COptionValue',
|
|
300
307
|
elementClass: elementClass('c-option-value'),
|
|
@@ -330,18 +337,41 @@ export const CPagination = createComponent({
|
|
|
330
337
|
react: React,
|
|
331
338
|
tagName: 'c-pagination',
|
|
332
339
|
});
|
|
340
|
+
/** A click-opened, non-modal surface anchored to its trigger, floating in the top layer; its content may be interactive. */
|
|
341
|
+
export const CPopover = createComponent({
|
|
342
|
+
displayName: 'CPopover',
|
|
343
|
+
elementClass: elementClass('c-popover'),
|
|
344
|
+
events: {
|
|
345
|
+
onChangeOpen: 'change:open',
|
|
346
|
+
},
|
|
347
|
+
react: React,
|
|
348
|
+
tagName: 'c-popover',
|
|
349
|
+
});
|
|
350
|
+
/** 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
351
|
export const CProgressBar = createComponent({
|
|
334
352
|
displayName: 'CProgressBar',
|
|
335
353
|
elementClass: elementClass('c-progress-bar'),
|
|
336
354
|
react: React,
|
|
337
355
|
tagName: 'c-progress-bar',
|
|
338
356
|
});
|
|
357
|
+
/** A circular progress indicator that draws a known completion percentage as an arc around a track — the circular counterpart of `c-progress-bar`. */
|
|
358
|
+
export const CProgressCircle = createComponent({
|
|
359
|
+
displayName: 'CProgressCircle',
|
|
360
|
+
elementClass: elementClass('c-progress-circle'),
|
|
361
|
+
react: React,
|
|
362
|
+
tagName: 'c-progress-circle',
|
|
363
|
+
});
|
|
364
|
+
/** A single radio option inside a `c-radio-group`: a native radio input whose default slot is its clickable, announced label. */
|
|
339
365
|
export const CRadio = createComponent({
|
|
340
366
|
displayName: 'CRadio',
|
|
341
367
|
elementClass: elementClass('c-radio'),
|
|
368
|
+
events: {
|
|
369
|
+
onChange: 'change',
|
|
370
|
+
},
|
|
342
371
|
react: React,
|
|
343
372
|
tagName: 'c-radio',
|
|
344
373
|
});
|
|
374
|
+
/** 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
375
|
export const CRadioGroup = createComponent({
|
|
346
376
|
displayName: 'CRadioGroup',
|
|
347
377
|
elementClass: elementClass('c-radio-group'),
|
|
@@ -353,6 +383,7 @@ export const CRadioGroup = createComponent({
|
|
|
353
383
|
react: React,
|
|
354
384
|
tagName: 'c-radio-group',
|
|
355
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`. */
|
|
356
387
|
export const CSelect = createComponent({
|
|
357
388
|
displayName: 'CSelect',
|
|
358
389
|
elementClass: elementClass('c-select'),
|
|
@@ -364,6 +395,7 @@ export const CSelect = createComponent({
|
|
|
364
395
|
react: React,
|
|
365
396
|
tagName: 'c-select',
|
|
366
397
|
});
|
|
398
|
+
/** The dashboard layout's left-hand menu: section titles, navigation items and their sub-items in a drawer that is pinned beside the page on desktop and slides in over it on mobile. */
|
|
367
399
|
export const CSideNavigation = createComponent({
|
|
368
400
|
displayName: 'CSideNavigation',
|
|
369
401
|
elementClass: elementClass('c-side-navigation'),
|
|
@@ -399,6 +431,7 @@ export const CSlider = createComponent({
|
|
|
399
431
|
react: React,
|
|
400
432
|
tagName: 'c-slider',
|
|
401
433
|
});
|
|
434
|
+
/** A circular indeterminate activity indicator — pure motion with no value, for waits of unknown duration. */
|
|
402
435
|
export const CSpinner = createComponent({
|
|
403
436
|
displayName: 'CSpinner',
|
|
404
437
|
elementClass: elementClass('c-spinner'),
|
|
@@ -429,6 +462,7 @@ export const CSubNavigationItem = createComponent({
|
|
|
429
462
|
react: React,
|
|
430
463
|
tagName: 'c-sub-navigation-item',
|
|
431
464
|
});
|
|
465
|
+
/** A toggle for a binary setting that takes effect immediately: a native switch control with a label, an optional hint, and validation messaging. */
|
|
432
466
|
export const CSwitch = createComponent({
|
|
433
467
|
displayName: 'CSwitch',
|
|
434
468
|
elementClass: elementClass('c-switch'),
|
|
@@ -476,6 +510,7 @@ export const CTabItems = createComponent({
|
|
|
476
510
|
react: React,
|
|
477
511
|
tagName: 'c-tab-items',
|
|
478
512
|
});
|
|
513
|
+
/** A styled wrapper for a table you author yourself: slot in a plain `<table>` and c-table gives it the CSC look plus an optional responsive card layout on narrow screens. The table stays in your own DOM — your stylesheets, your framework's rendering, and `::part()` selectors on components nested in cells (a `c-tag` status chip, a `c-pagination` footer) all keep working. */
|
|
479
514
|
export const CTable = createComponent({
|
|
480
515
|
displayName: 'CTable',
|
|
481
516
|
elementClass: elementClass('c-table'),
|
|
@@ -537,9 +572,33 @@ export const CToasts = createComponent({
|
|
|
537
572
|
react: React,
|
|
538
573
|
tagName: 'c-toasts',
|
|
539
574
|
});
|
|
575
|
+
/** The app-wide bar at the top of the dashboard layout: the logo, the service name and global actions such as the user menu or log out. It is pinned to the top of the viewport by default and stays there while the page scrolls; `static` keeps it in the page flow so it scrolls away with the content. */
|
|
540
576
|
export const CToolbar = createComponent({
|
|
541
577
|
displayName: 'CToolbar',
|
|
542
578
|
elementClass: elementClass('c-toolbar'),
|
|
543
579
|
react: React,
|
|
544
580
|
tagName: 'c-toolbar',
|
|
545
581
|
});
|
|
582
|
+
/** A non-interactive text hint shown when its trigger is hovered or keyboard-focused, floating in the top layer on the inverted surface tier. */
|
|
583
|
+
export const CTooltip = createComponent({
|
|
584
|
+
displayName: 'CTooltip',
|
|
585
|
+
elementClass: elementClass('c-tooltip'),
|
|
586
|
+
events: {
|
|
587
|
+
onChangeOpen: 'change:open',
|
|
588
|
+
},
|
|
589
|
+
react: React,
|
|
590
|
+
tagName: 'c-tooltip',
|
|
591
|
+
});
|
|
592
|
+
/** A hierarchical value-selection component: a readonly value field that opens a panel for browsing a tree one level at a time, or searching it as a whole, to commit one item. */
|
|
593
|
+
export const CTreeSelect = createComponent({
|
|
594
|
+
displayName: 'CTreeSelect',
|
|
595
|
+
elementClass: elementClass('c-tree-select'),
|
|
596
|
+
events: {
|
|
597
|
+
onChange: 'change',
|
|
598
|
+
onChangeQuery: 'change:query',
|
|
599
|
+
onInput: 'input',
|
|
600
|
+
onUpdateValue: 'update:value',
|
|
601
|
+
},
|
|
602
|
+
react: React,
|
|
603
|
+
tagName: 'c-tree-select',
|
|
604
|
+
});
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
* types come from `@cscfi/csc-ui` — import any option/item types you
|
|
7
7
|
* need (e.g. `CSelectItem`) from there.
|
|
8
8
|
*/
|
|
9
|
-
export * from
|
|
10
|
-
export { applyTheme, resetTheme, themeToCss } from
|
|
11
|
-
export type { Family, ThemeSeeds } from
|
|
9
|
+
export * from "./components.js";
|
|
10
|
+
export { DEFAULT_SEEDS, FAMILIES, applyTheme, resetTheme, themeToCss, } from "@cscfi/csc-ui";
|
|
11
|
+
export type { Family, ThemeSeeds } from "@cscfi/csc-ui";
|
|
12
|
+
export { DEFAULTABLE_PROPS, applyDefaults, resetDefaults, } from "@cscfi/csc-ui";
|
|
13
|
+
export type { AppDefaults, DefaultableTag } from "@cscfi/csc-ui";
|
|
14
|
+
export { chartAnatomy, chartAnatomyHex, chartSlots, chartSlotsHex, observeThemeMode, themeMode, } from "@cscfi/csc-ui";
|
|
15
|
+
export type { ChartAnatomy, ChartSlots, ThemeMode } from "@cscfi/csc-ui";
|
package/dist/index.js
CHANGED
|
@@ -6,5 +6,7 @@
|
|
|
6
6
|
* types come from `@cscfi/csc-ui` — import any option/item types you
|
|
7
7
|
* need (e.g. `CSelectItem`) from there.
|
|
8
8
|
*/
|
|
9
|
-
export * from
|
|
10
|
-
export { applyTheme, resetTheme, themeToCss } from
|
|
9
|
+
export * from "./components.js";
|
|
10
|
+
export { DEFAULT_SEEDS, FAMILIES, applyTheme, resetTheme, themeToCss, } from "@cscfi/csc-ui";
|
|
11
|
+
export { DEFAULTABLE_PROPS, applyDefaults, resetDefaults, } from "@cscfi/csc-ui";
|
|
12
|
+
export { chartAnatomy, chartAnatomyHex, chartSlots, chartSlotsHex, observeThemeMode, themeMode, } from "@cscfi/csc-ui";
|
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.21",
|
|
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.21"
|
|
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.21"
|
|
31
31
|
},
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"repository": "CSCfi/ui",
|