@cscfi/csc-ui-react 4.0.0-alpha.5 → 4.0.0-alpha.6
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 +4 -0
- package/dist/components.js +4 -0
- package/package.json +3 -3
package/dist/components.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ 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
|
+
/** 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. */
|
|
16
17
|
export declare const CAlert: import("@lit/react").ReactWebComponent<CAlertElement, {
|
|
17
18
|
onDismiss: EventName<CAlertElementEventMap["dismiss"]>;
|
|
18
19
|
}>;
|
|
@@ -37,6 +38,7 @@ export declare const CCard: import("@lit/react").ReactWebComponent<CCardElement,
|
|
|
37
38
|
export declare const CCardActions: import("@lit/react").ReactWebComponent<CCardActionsElement, {}>;
|
|
38
39
|
export declare const CCardContent: import("@lit/react").ReactWebComponent<CCardContentElement, {}>;
|
|
39
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. */
|
|
40
42
|
export declare const CCheckbox: import("@lit/react").ReactWebComponent<CCheckboxElement, {
|
|
41
43
|
onChange: EventName<CCheckboxElementEventMap["change"]>;
|
|
42
44
|
onChangeValue: EventName<CCheckboxElementEventMap["changeValue"]>;
|
|
@@ -141,6 +143,7 @@ export declare const CStatus: import("@lit/react").ReactWebComponent<CStatusElem
|
|
|
141
143
|
export declare const CStep: import("@lit/react").ReactWebComponent<CStepElement, {}>;
|
|
142
144
|
export declare const CSteps: import("@lit/react").ReactWebComponent<CStepsElement, {}>;
|
|
143
145
|
export declare const CSubNavigationItem: import("@lit/react").ReactWebComponent<CSubNavigationItemElement, {}>;
|
|
146
|
+
/** A toggle for a binary setting that takes effect immediately: a native switch control with a label, an optional hint, and validation messaging. */
|
|
144
147
|
export declare const CSwitch: import("@lit/react").ReactWebComponent<CSwitchElement, {
|
|
145
148
|
onChange: EventName<CSwitchElementEventMap["change"]>;
|
|
146
149
|
onChangeValue: EventName<CSwitchElementEventMap["changeValue"]>;
|
|
@@ -159,6 +162,7 @@ export declare const CTabItem: import("@lit/react").ReactWebComponent<CTabItemEl
|
|
|
159
162
|
onContentChange: EventName<CTabItemElementEventMap["contentChange"]>;
|
|
160
163
|
}>;
|
|
161
164
|
export declare const CTabItems: import("@lit/react").ReactWebComponent<CTabItemsElement, {}>;
|
|
165
|
+
/** 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. */
|
|
162
166
|
export declare const CTable: import("@lit/react").ReactWebComponent<CTableElement, {}>;
|
|
163
167
|
export declare const CTabs: import("@lit/react").ReactWebComponent<CTabsElement, {
|
|
164
168
|
onChangeValue: EventName<CTabsElementEventMap["changeValue"]>;
|
package/dist/components.js
CHANGED
|
@@ -42,6 +42,7 @@ 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'),
|
|
@@ -114,6 +115,7 @@ export const CCardTitle = createComponent({
|
|
|
114
115
|
react: React,
|
|
115
116
|
tagName: 'c-card-title',
|
|
116
117
|
});
|
|
118
|
+
/** A form control for a single on/off choice: a native checkbox with a label, an optional hint, and validation messaging. */
|
|
117
119
|
export const CCheckbox = createComponent({
|
|
118
120
|
displayName: 'CCheckbox',
|
|
119
121
|
elementClass: elementClass('c-checkbox'),
|
|
@@ -456,6 +458,7 @@ export const CSubNavigationItem = createComponent({
|
|
|
456
458
|
react: React,
|
|
457
459
|
tagName: 'c-sub-navigation-item',
|
|
458
460
|
});
|
|
461
|
+
/** A toggle for a binary setting that takes effect immediately: a native switch control with a label, an optional hint, and validation messaging. */
|
|
459
462
|
export const CSwitch = createComponent({
|
|
460
463
|
displayName: 'CSwitch',
|
|
461
464
|
elementClass: elementClass('c-switch'),
|
|
@@ -503,6 +506,7 @@ export const CTabItems = createComponent({
|
|
|
503
506
|
react: React,
|
|
504
507
|
tagName: 'c-tab-items',
|
|
505
508
|
});
|
|
509
|
+
/** 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. */
|
|
506
510
|
export const CTable = createComponent({
|
|
507
511
|
displayName: 'CTable',
|
|
508
512
|
elementClass: elementClass('c-table'),
|
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.6",
|
|
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.6"
|
|
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.6"
|
|
31
31
|
},
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"repository": "CSCfi/ui",
|