@cscfi/csc-ui-react 4.0.0-rc.3 → 4.0.0-rc.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 +1 -1
- package/dist/components.js +7 -7
- package/package.json +3 -3
package/dist/components.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export declare const CBadge: import("@lit/react").ReactWebComponent<CBadgeElemen
|
|
|
29
29
|
export declare const CBreadcrumb: import("@lit/react").ReactWebComponent<CBreadcrumbElement, {}>;
|
|
30
30
|
/** One crumb in a `c-breadcrumb`: a link to a level of the hierarchy, or, as the last crumb, the current page. */
|
|
31
31
|
export declare const CBreadcrumbItem: import("@lit/react").ReactWebComponent<CBreadcrumbItemElement, {}>;
|
|
32
|
-
/** Buttons trigger actions — submitting a form, opening a modal, confirming a choice. Use one
|
|
32
|
+
/** Buttons trigger actions — submitting a form, opening a modal, confirming a choice. Use one filled button (the default `appearance`) per view for its main action; other actions use `appearance="outlined"`, `"ghost"` or `"text"`. */
|
|
33
33
|
export declare const CButton: import("@lit/react").ReactWebComponent<CButtonElement, {}>;
|
|
34
34
|
/** A button group is a segmented control: a compact group of choices rendered as plain `c-button` children, where activating a button takes effect immediately (switching a view, picking a billing period). Selection is exclusive by default; set `multiple` to let several buttons be active at once. Give the group a `label` when it acts as a form field so the choice it represents is named for every user. */
|
|
35
35
|
export declare const CButtonGroup: import("@lit/react").ReactWebComponent<CButtonGroupElement, {
|
package/dist/components.js
CHANGED
|
@@ -95,17 +95,17 @@ export const CBreadcrumbItem = createComponent({
|
|
|
95
95
|
react: React,
|
|
96
96
|
tagName: 'c-breadcrumb-item',
|
|
97
97
|
});
|
|
98
|
-
/** Buttons trigger actions — submitting a form, opening a modal, confirming a choice. Use one
|
|
98
|
+
/** Buttons trigger actions — submitting a form, opening a modal, confirming a choice. Use one filled button (the default `appearance`) per view for its main action; other actions use `appearance="outlined"`, `"ghost"` or `"text"`. */
|
|
99
99
|
export const CButton = createComponent({
|
|
100
100
|
displayName: 'CButton',
|
|
101
|
-
elementClass: elementClass(['active', 'appearance', 'danger', 'disabled', 'fit', 'ghost', 'href', 'inverted', 'loading', 'noRadius', 'outlined', 'size', 'target', 'text', 'type', 'value']),
|
|
101
|
+
elementClass: elementClass(['active', 'appearance', 'danger', 'disabled', 'fit', 'ghost', 'href', 'inverted', 'loading', 'noRadius', 'outlined', 'size', 'target', 'text', 'type', 'value', 'variant']),
|
|
102
102
|
react: React,
|
|
103
103
|
tagName: 'c-button',
|
|
104
104
|
});
|
|
105
105
|
/** A button group is a segmented control: a compact group of choices rendered as plain `c-button` children, where activating a button takes effect immediately (switching a view, picking a billing period). Selection is exclusive by default; set `multiple` to let several buttons be active at once. Give the group a `label` when it acts as a form field so the choice it represents is named for every user. */
|
|
106
106
|
export const CButtonGroup = createComponent({
|
|
107
107
|
displayName: 'CButtonGroup',
|
|
108
|
-
elementClass: elementClass(['disabled', 'label', 'mandatory', 'multiple', 'required', 'size', 'value']),
|
|
108
|
+
elementClass: elementClass(['disabled', 'label', 'mandatory', 'multiple', 'name', 'required', 'size', 'value']),
|
|
109
109
|
events: {
|
|
110
110
|
onChange: 'change',
|
|
111
111
|
onInput: 'input',
|
|
@@ -232,7 +232,7 @@ export const CIcon = createComponent({
|
|
|
232
232
|
/** An icon-only button: a round native button that shows a single icon and takes its accessible name from an `aria-label` on the element. */
|
|
233
233
|
export const CIconButton = createComponent({
|
|
234
234
|
displayName: 'CIconButton',
|
|
235
|
-
elementClass: elementClass(['appearance', 'badge', 'danger', 'disabled', 'ghost', 'inverted', 'loading', 'outlined', 'path', 'size', 'text']),
|
|
235
|
+
elementClass: elementClass(['appearance', 'badge', 'danger', 'disabled', 'ghost', 'inverted', 'loading', 'outlined', 'path', 'size', 'text', 'variant']),
|
|
236
236
|
react: React,
|
|
237
237
|
tagName: 'c-icon-button',
|
|
238
238
|
});
|
|
@@ -400,7 +400,7 @@ export const COptionValue = createComponent({
|
|
|
400
400
|
/** A one-time-code field: a row of single-digit boxes, filled in order as the user types or pastes a code, under a group label and above a hint or error message. */
|
|
401
401
|
export const COtpInput = createComponent({
|
|
402
402
|
displayName: 'COtpInput',
|
|
403
|
-
elementClass: elementClass(['autofocus', 'errorMessage', 'hideDetails', 'hideMessage', 'hint', 'invalid', 'label', 'length', 'required', 'value']),
|
|
403
|
+
elementClass: elementClass(['autofocus', 'errorMessage', 'hideDetails', 'hideMessage', 'hint', 'invalid', 'label', 'length', 'name', 'required', 'value']),
|
|
404
404
|
events: {
|
|
405
405
|
onChange: 'change',
|
|
406
406
|
onCompletion: 'completion',
|
|
@@ -463,7 +463,7 @@ export const CRadio = createComponent({
|
|
|
463
463
|
/** 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. */
|
|
464
464
|
export const CRadioGroup = createComponent({
|
|
465
465
|
displayName: 'CRadioGroup',
|
|
466
|
-
elementClass: elementClass(['disabled', 'errorMessage', 'hideDetails', 'hideMessage', 'hint', 'inline', 'invalid', 'label', 'required', 'value']),
|
|
466
|
+
elementClass: elementClass(['disabled', 'errorMessage', 'hideDetails', 'hideMessage', 'hint', 'inline', 'invalid', 'label', 'name', 'required', 'value']),
|
|
467
467
|
events: {
|
|
468
468
|
onChange: 'change',
|
|
469
469
|
onInput: 'input',
|
|
@@ -564,7 +564,7 @@ export const CSubNavigationItem = createComponent({
|
|
|
564
564
|
/** A toggle for a binary setting that takes effect immediately: a native switch control with a label. */
|
|
565
565
|
export const CSwitch = createComponent({
|
|
566
566
|
displayName: 'CSwitch',
|
|
567
|
-
elementClass: elementClass(['checked', 'disabled', 'falseValue', 'label', 'loading', 'required', 'trueValue', 'value']),
|
|
567
|
+
elementClass: elementClass(['checked', 'disabled', 'falseValue', 'label', 'loading', 'name', 'required', 'trueValue', 'value']),
|
|
568
568
|
events: {
|
|
569
569
|
onChange: 'change',
|
|
570
570
|
onInput: 'input',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cscfi/csc-ui-react",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.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",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"react": ">=18",
|
|
32
|
-
"@cscfi/csc-ui": "^4.0.0-rc.
|
|
32
|
+
"@cscfi/csc-ui": "^4.0.0-rc.5"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/react": "^19.1.8",
|
|
36
36
|
"react": "19.3.1",
|
|
37
37
|
"typescript": "^6.0.3",
|
|
38
|
-
"@cscfi/csc-ui": "4.0.0-rc.
|
|
38
|
+
"@cscfi/csc-ui": "4.0.0-rc.5"
|
|
39
39
|
},
|
|
40
40
|
"license": "MIT",
|
|
41
41
|
"repository": "CSCfi/ui",
|