@cscfi/csc-ui-react 4.0.0-rc.4 → 4.0.0-rc.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.
@@ -105,7 +105,7 @@ export const CButton = createComponent({
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',
@@ -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.4",
3
+ "version": "4.0.0-rc.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",
@@ -29,13 +29,13 @@
29
29
  },
30
30
  "peerDependencies": {
31
31
  "react": ">=18",
32
- "@cscfi/csc-ui": "^4.0.0-rc.4"
32
+ "@cscfi/csc-ui": "^4.0.0-rc.6"
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.4"
38
+ "@cscfi/csc-ui": "4.0.0-rc.6"
39
39
  },
40
40
  "license": "MIT",
41
41
  "repository": "CSCfi/ui",