@cscfi/csc-ui-react 4.0.0-alpha.30 → 4.0.0-alpha.32
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 +15 -1
- package/dist/components.js +26 -0
- package/dist/index.d.ts +7 -7
- package/dist/index.js +4 -4
- 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 CAlertElementEventMap, type CAutocompleteElement, type CAutocompleteElementEventMap, type CBadgeElement, type CBreadcrumbElement, type CBreadcrumbItemElement, 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 CDatePickerElement, type CDatePickerElementEventMap, 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 CNumberFieldElement, type CNumberFieldElementEventMap, 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 CTimePickerElement, type CTimePickerElementEventMap, type CToastElement, type CToastElementEventMap, type CToastsElement, type CToolbarElement, type CTooltipElement, type CTooltipElementEventMap, type CTreeSelectElement, type CTreeSelectElementEventMap } 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 CBreadcrumbElement, type CBreadcrumbItemElement, type CButtonElement, type CButtonGroupElement, type CButtonGroupElementEventMap, type CCardElement, type CCardActionsElement, type CCardContentElement, type CCardTitleElement, type CCheckboxElement, type CCheckboxElementEventMap, type CColorPickerElement, type CColorPickerElementEventMap, type CCscLogoElement, type CDataTableElement, type CDataTableElementEventMap, type CDatePickerElement, type CDatePickerElementEventMap, type CDividerElement, type CFileUploadElement, type CFileUploadElementEventMap, 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 CNumberFieldElement, type CNumberFieldElementEventMap, 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 CTimePickerElement, type CTimePickerElementEventMap, 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"]>;
|
|
@@ -49,6 +49,13 @@ export declare const CCheckbox: import("@lit/react").ReactWebComponent<CCheckbox
|
|
|
49
49
|
onInput: EventName<CCheckboxElementEventMap["input"]>;
|
|
50
50
|
onUpdateValue: EventName<CCheckboxElementEventMap["update:value"]>;
|
|
51
51
|
}>;
|
|
52
|
+
/** A colour field that takes any typed CSS colour, or opens a panel for picking one: a colour area, hue and alpha sliders, per-channel inputs and swatches — or swatches alone under `swatches-only`. */
|
|
53
|
+
export declare const CColorPicker: import("@lit/react").ReactWebComponent<CColorPickerElement, {
|
|
54
|
+
onChange: EventName<CColorPickerElementEventMap["change"]>;
|
|
55
|
+
onChangeText: EventName<CColorPickerElementEventMap["change:text"]>;
|
|
56
|
+
onInput: EventName<CColorPickerElementEventMap["input"]>;
|
|
57
|
+
onUpdateValue: EventName<CColorPickerElementEventMap["update:value"]>;
|
|
58
|
+
}>;
|
|
52
59
|
export declare const CCscLogo: import("@lit/react").ReactWebComponent<CCscLogoElement, {}>;
|
|
53
60
|
export declare const CDataTable: import("@lit/react").ReactWebComponent<CDataTableElement, {
|
|
54
61
|
onChangeExpanded: EventName<CDataTableElementEventMap["change:expanded"]>;
|
|
@@ -66,6 +73,13 @@ export declare const CDatePicker: import("@lit/react").ReactWebComponent<CDatePi
|
|
|
66
73
|
onUpdateValue: EventName<CDatePickerElementEventMap["update:value"]>;
|
|
67
74
|
}>;
|
|
68
75
|
export declare const CDivider: import("@lit/react").ReactWebComponent<CDividerElement, {}>;
|
|
76
|
+
/** A field the user adds files to by dropping them on it or choosing them from a file dialog — and, given an upload function, the place each file's upload shows its progress. */
|
|
77
|
+
export declare const CFileUpload: import("@lit/react").ReactWebComponent<CFileUploadElement, {
|
|
78
|
+
onChange: EventName<CFileUploadElementEventMap["change"]>;
|
|
79
|
+
onInput: EventName<CFileUploadElementEventMap["input"]>;
|
|
80
|
+
onReject: EventName<CFileUploadElementEventMap["reject"]>;
|
|
81
|
+
onUpdateValue: EventName<CFileUploadElementEventMap["update:value"]>;
|
|
82
|
+
}>;
|
|
69
83
|
export declare const CIcon: import("@lit/react").ReactWebComponent<CIconElement, {}>;
|
|
70
84
|
export declare const CIconButton: import("@lit/react").ReactWebComponent<CIconButtonElement, {}>;
|
|
71
85
|
export declare const CInput: import("@lit/react").ReactWebComponent<CInputElement, {}>;
|
package/dist/components.js
CHANGED
|
@@ -142,6 +142,19 @@ export const CCheckbox = createComponent({
|
|
|
142
142
|
react: React,
|
|
143
143
|
tagName: 'c-checkbox',
|
|
144
144
|
});
|
|
145
|
+
/** A colour field that takes any typed CSS colour, or opens a panel for picking one: a colour area, hue and alpha sliders, per-channel inputs and swatches — or swatches alone under `swatches-only`. */
|
|
146
|
+
export const CColorPicker = createComponent({
|
|
147
|
+
displayName: 'CColorPicker',
|
|
148
|
+
elementClass: elementClass('c-color-picker'),
|
|
149
|
+
events: {
|
|
150
|
+
onChange: 'change',
|
|
151
|
+
onChangeText: 'change:text',
|
|
152
|
+
onInput: 'input',
|
|
153
|
+
onUpdateValue: 'update:value',
|
|
154
|
+
},
|
|
155
|
+
react: React,
|
|
156
|
+
tagName: 'c-color-picker',
|
|
157
|
+
});
|
|
145
158
|
export const CCscLogo = createComponent({
|
|
146
159
|
displayName: 'CCscLogo',
|
|
147
160
|
elementClass: elementClass('c-csc-logo'),
|
|
@@ -181,6 +194,19 @@ export const CDivider = createComponent({
|
|
|
181
194
|
react: React,
|
|
182
195
|
tagName: 'c-divider',
|
|
183
196
|
});
|
|
197
|
+
/** A field the user adds files to by dropping them on it or choosing them from a file dialog — and, given an upload function, the place each file's upload shows its progress. */
|
|
198
|
+
export const CFileUpload = createComponent({
|
|
199
|
+
displayName: 'CFileUpload',
|
|
200
|
+
elementClass: elementClass('c-file-upload'),
|
|
201
|
+
events: {
|
|
202
|
+
onChange: 'change',
|
|
203
|
+
onInput: 'input',
|
|
204
|
+
onReject: 'reject',
|
|
205
|
+
onUpdateValue: 'update:value',
|
|
206
|
+
},
|
|
207
|
+
react: React,
|
|
208
|
+
tagName: 'c-file-upload',
|
|
209
|
+
});
|
|
184
210
|
export const CIcon = createComponent({
|
|
185
211
|
displayName: 'CIcon',
|
|
186
212
|
elementClass: elementClass('c-icon'),
|
package/dist/index.d.ts
CHANGED
|
@@ -6,10 +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 { DEFAULT_SEEDS, FAMILIES,
|
|
11
|
-
export type { Family, ThemeSeeds } from
|
|
12
|
-
export {
|
|
13
|
-
export type { AppDefaults, DefaultableTag } from
|
|
14
|
-
export { chartAnatomy, chartAnatomyHex, chartSlots, chartSlotsHex, observeThemeMode, themeMode, } from
|
|
15
|
-
export type { ChartAnatomy, ChartSlots, ThemeMode } from
|
|
9
|
+
export * from './components.js';
|
|
10
|
+
export { applyTheme, DEFAULT_SEEDS, FAMILIES, resetTheme, themeToCss, } from '@cscfi/csc-ui';
|
|
11
|
+
export type { Family, ThemeSeeds } from '@cscfi/csc-ui';
|
|
12
|
+
export { applyDefaults, DEFAULTABLE_PROPS, 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,7 +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 { DEFAULT_SEEDS, FAMILIES,
|
|
11
|
-
export {
|
|
12
|
-
export { chartAnatomy, chartAnatomyHex, chartSlots, chartSlotsHex, observeThemeMode, themeMode, } from
|
|
9
|
+
export * from './components.js';
|
|
10
|
+
export { applyTheme, DEFAULT_SEEDS, FAMILIES, resetTheme, themeToCss, } from '@cscfi/csc-ui';
|
|
11
|
+
export { applyDefaults, DEFAULTABLE_PROPS, 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.32",
|
|
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.32"
|
|
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.32"
|
|
31
31
|
},
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"repository": "CSCfi/ui",
|