@cscfi/csc-ui-react 4.0.0-rc.1 → 4.0.0-rc.3
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 +3 -3
- package/dist/components.js +24 -24
- 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 primary (default appearance) button per view; secondary actions use
|
|
32
|
+
/** Buttons trigger actions — submitting a form, opening a modal, confirming a choice. Use one primary (filled, the default `appearance`) button per view; secondary 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, {
|
|
@@ -183,7 +183,7 @@ export declare const CSelect: import("@lit/react").ReactWebComponent<CSelectElem
|
|
|
183
183
|
export declare const CSideNavigation: import("@lit/react").ReactWebComponent<CSideNavigationElement, {
|
|
184
184
|
onChangeOpen: EventName<CSideNavigationElementEventMap["change:open"]>;
|
|
185
185
|
}>;
|
|
186
|
-
/** One entry of a `c-side-navigation`: its label text, after an optional leading `c-icon`, goes in the default slot, and activating it fires `select` with its `value`; with `href` it is a real link, opened in `target`, and without one a button. Write `c-sub-navigation-item` children inside it to make it an expandable parent,
|
|
186
|
+
/** One entry of a `c-side-navigation`: its label text, after an optional leading `c-icon`, goes in the default slot, and activating it fires `select` with its `value`; with `href` it is a real link, opened in `target`, and without one a button. Write `c-sub-navigation-item` children inside it to make it an expandable parent, shown open while `expanded`; an item without sub-items marks the page shown with `current`. */
|
|
187
187
|
export declare const CSideNavigationItem: import("@lit/react").ReactWebComponent<CSideNavigationItemElement, {
|
|
188
188
|
onSelect: EventName<CSideNavigationItemElementEventMap["select"]>;
|
|
189
189
|
}>;
|
|
@@ -203,7 +203,7 @@ export declare const CStatus: import("@lit/react").ReactWebComponent<CStatusElem
|
|
|
203
203
|
export declare const CStep: import("@lit/react").ReactWebComponent<CStepElement, {}>;
|
|
204
204
|
/** A step indicator for a multi-step flow: a row of `c-step` dots joined by lines, with the steps before the current one checked off and the current one ringed. */
|
|
205
205
|
export declare const CSteps: import("@lit/react").ReactWebComponent<CStepsElement, {}>;
|
|
206
|
-
/** A second-level entry of a `c-side-navigation`, written inside the `c-side-navigation-item` it belongs to (no `slot` attribute needed) and shown while that parent is `
|
|
206
|
+
/** A second-level entry of a `c-side-navigation`, written inside the `c-side-navigation-item` it belongs to (no `slot` attribute needed) and shown while that parent is `expanded`. Activating it fires `select` with its `value` and closes the mobile drawer. It does not mark itself as the current page: set `current` on the sub-item of the page shown, and `expanded` on its parent. */
|
|
207
207
|
export declare const CSubNavigationItem: import("@lit/react").ReactWebComponent<CSubNavigationItemElement, {
|
|
208
208
|
onSelect: EventName<CSubNavigationItemElementEventMap["select"]>;
|
|
209
209
|
}>;
|
package/dist/components.js
CHANGED
|
@@ -64,7 +64,7 @@ export const CAlert = createComponent({
|
|
|
64
64
|
/** A filterable value-selection component: a readonly value field that opens a popover panel with a search input above the matching options. */
|
|
65
65
|
export const CAutocomplete = createComponent({
|
|
66
66
|
displayName: 'CAutocomplete',
|
|
67
|
-
elementClass: elementClass(['clearable', 'disabled', 'errorMessage', 'external', 'filter', 'hideDetails', 'hint', 'invalid', 'items', 'itemsPerPage', 'label', 'labelOnTop', 'loading', 'maxTags', 'multiple', 'name', 'placeholder', 'required', 'returnObject', 'selectAll', 'shadow', 'size', 'texts', 'value']),
|
|
67
|
+
elementClass: elementClass(['clearable', 'disabled', 'errorMessage', 'external', 'filter', 'hideDetails', 'hideMessage', 'hint', 'invalid', 'items', 'itemsPerPage', 'label', 'labelOnTop', 'loading', 'maxTags', 'multiple', 'name', 'placeholder', 'required', 'returnObject', 'selectAll', 'shadow', 'size', 'texts', 'value']),
|
|
68
68
|
events: {
|
|
69
69
|
onChange: 'change',
|
|
70
70
|
onChangeQuery: 'change:query',
|
|
@@ -95,10 +95,10 @@ 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 primary (default appearance) button per view; secondary actions use
|
|
98
|
+
/** Buttons trigger actions — submitting a form, opening a modal, confirming a choice. Use one primary (filled, the default `appearance`) button per view; secondary actions use `appearance="outlined"`, `"ghost"` or `"text"`. */
|
|
99
99
|
export const CButton = createComponent({
|
|
100
100
|
displayName: 'CButton',
|
|
101
|
-
elementClass: elementClass(['active', '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']),
|
|
102
102
|
react: React,
|
|
103
103
|
tagName: 'c-button',
|
|
104
104
|
});
|
|
@@ -117,7 +117,7 @@ export const CButtonGroup = createComponent({
|
|
|
117
117
|
/** A raised, bordered surface that groups one piece of content — its heading, body and actions — into a single box on the page. */
|
|
118
118
|
export const CCard = createComponent({
|
|
119
119
|
displayName: 'CCard',
|
|
120
|
-
elementClass: elementClass(['fullscreen']),
|
|
120
|
+
elementClass: elementClass(['fullscreen', 'showFullscreen']),
|
|
121
121
|
react: React,
|
|
122
122
|
tagName: 'c-card',
|
|
123
123
|
});
|
|
@@ -145,7 +145,7 @@ export const CCardTitle = createComponent({
|
|
|
145
145
|
/** A form control for a single on/off choice: a native checkbox with a label, an optional hint, and validation messaging. */
|
|
146
146
|
export const CCheckbox = createComponent({
|
|
147
147
|
displayName: 'CCheckbox',
|
|
148
|
-
elementClass: elementClass(['checked', 'disabled', 'errorMessage', 'falseValue', 'hideDetails', 'hint', 'indeterminate', 'invalid', 'label', 'name', 'required', 'trueValue', 'value']),
|
|
148
|
+
elementClass: elementClass(['checked', 'disabled', 'errorMessage', 'falseValue', 'hideDetails', 'hideMessage', 'hint', 'indeterminate', 'invalid', 'label', 'name', 'required', 'trueValue', 'value']),
|
|
149
149
|
events: {
|
|
150
150
|
onChange: 'change',
|
|
151
151
|
onInput: 'input',
|
|
@@ -157,7 +157,7 @@ export const CCheckbox = createComponent({
|
|
|
157
157
|
/** 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`. */
|
|
158
158
|
export const CColorPicker = createComponent({
|
|
159
159
|
displayName: 'CColorPicker',
|
|
160
|
-
elementClass: elementClass(['alpha', 'clearable', 'disabled', 'errorMessage', 'format', 'hideDetails', 'hint', 'invalid', 'label', 'labelOnTop', 'name', 'placeholder', 'required', 'shadow', 'size', 'swatches', 'swatchesOnly', 'texts', 'value']),
|
|
160
|
+
elementClass: elementClass(['alpha', 'clearable', 'disabled', 'errorMessage', 'format', 'hideDetails', 'hideMessage', 'hint', 'invalid', 'label', 'labelOnTop', 'name', 'placeholder', 'required', 'shadow', 'size', 'swatches', 'swatchesOnly', 'texts', 'value']),
|
|
161
161
|
events: {
|
|
162
162
|
onChange: 'change',
|
|
163
163
|
onChangeText: 'change:text',
|
|
@@ -191,7 +191,7 @@ export const CDataTable = createComponent({
|
|
|
191
191
|
/** A date field that takes a typed date, or opens a calendar panel for picking one, or a start and end date under `range`. */
|
|
192
192
|
export const CDatePicker = createComponent({
|
|
193
193
|
displayName: 'CDatePicker',
|
|
194
|
-
elementClass: elementClass(['clearable', 'disabled', 'disabledDates', 'errorMessage', 'firstDayOfWeek', 'format', 'hideDetails', 'hint', 'invalid', 'isDateDisabled', 'label', 'labelOnTop', 'max', 'min', 'name', 'placeholder', 'range', 'required', 'shadow', 'showToday', 'showWeekNumbers', 'size', 'texts', 'type', 'value']),
|
|
194
|
+
elementClass: elementClass(['clearable', 'disabled', 'disabledDates', 'errorMessage', 'firstDayOfWeek', 'format', 'hideDetails', 'hideMessage', 'hint', 'invalid', 'isDateDisabled', 'label', 'labelOnTop', 'max', 'min', 'name', 'placeholder', 'range', 'required', 'shadow', 'showToday', 'showWeekNumbers', 'size', 'texts', 'type', 'value']),
|
|
195
195
|
events: {
|
|
196
196
|
onChange: 'change',
|
|
197
197
|
onChangeMonth: 'change:month',
|
|
@@ -212,7 +212,7 @@ export const CDivider = createComponent({
|
|
|
212
212
|
/** 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. */
|
|
213
213
|
export const CFileUpload = createComponent({
|
|
214
214
|
displayName: 'CFileUpload',
|
|
215
|
-
elementClass: elementClass(['accept', 'compact', 'disabled', 'errorMessage', 'hideDetails', 'hint', 'invalid', 'label', 'manual', 'maxFiles', 'maxSize', 'multiple', 'required', 'size', 'texts', 'upload', 'value']),
|
|
215
|
+
elementClass: elementClass(['accept', 'compact', 'disabled', 'errorMessage', 'hideDetails', 'hideMessage', 'hint', 'invalid', 'label', 'manual', 'maxFiles', 'maxSize', 'multiple', 'required', 'size', 'texts', 'upload', 'value']),
|
|
216
216
|
events: {
|
|
217
217
|
onChange: 'change',
|
|
218
218
|
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(['badge', 'danger', 'disabled', 'ghost', 'inverted', 'loading', 'outlined', 'path', 'size', 'text']),
|
|
235
|
+
elementClass: elementClass(['appearance', 'badge', 'danger', 'disabled', 'ghost', 'inverted', 'loading', 'outlined', 'path', 'size', 'text']),
|
|
236
236
|
react: React,
|
|
237
237
|
tagName: 'c-icon-button',
|
|
238
238
|
});
|
|
@@ -267,7 +267,7 @@ export const CListItemTitle = createComponent({
|
|
|
267
267
|
/** A loading overlay that covers a container with a translucent scrim and a centred spinner, with an optional message below it, while that container's content loads. */
|
|
268
268
|
export const CLoader = createComponent({
|
|
269
269
|
displayName: 'CLoader',
|
|
270
|
-
elementClass: elementClass(['contentDelay', 'hide', 'size', 'width']),
|
|
270
|
+
elementClass: elementClass(['contentDelay', 'hide', 'size', 'thickness', 'width']),
|
|
271
271
|
react: React,
|
|
272
272
|
tagName: 'c-loader',
|
|
273
273
|
});
|
|
@@ -374,7 +374,7 @@ export const CNavigationButton = createComponent({
|
|
|
374
374
|
/** A field for a number — an integer, or one with decimals — shown with thousands separators as it is typed. */
|
|
375
375
|
export const CNumberField = createComponent({
|
|
376
376
|
displayName: 'CNumberField',
|
|
377
|
-
elementClass: elementClass(['decimalSeparator', 'decimals', 'disabled', 'errorMessage', 'fixedDecimals', 'groupSeparator', 'hideDetails', 'hint', 'invalid', 'label', 'labelOnTop', 'max', 'min', 'name', 'placeholder', 'readonly', 'required', 'shadow', 'size', 'step', 'texts', 'value']),
|
|
377
|
+
elementClass: elementClass(['decimalSeparator', 'decimals', 'disabled', 'errorMessage', 'fixedDecimals', 'groupSeparator', 'hideDetails', 'hideMessage', 'hint', 'invalid', 'label', 'labelOnTop', 'max', 'min', 'name', 'placeholder', 'readonly', 'required', 'shadow', 'size', 'step', 'texts', 'value']),
|
|
378
378
|
events: {
|
|
379
379
|
onChange: 'change',
|
|
380
380
|
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', 'hint', 'invalid', 'label', 'length', 'required', 'value']),
|
|
403
|
+
elementClass: elementClass(['autofocus', 'errorMessage', 'hideDetails', 'hideMessage', 'hint', 'invalid', 'label', 'length', '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', 'hint', 'inline', 'invalid', 'label', 'required', 'value']),
|
|
466
|
+
elementClass: elementClass(['disabled', 'errorMessage', 'hideDetails', 'hideMessage', 'hint', 'inline', 'invalid', 'label', 'required', 'value']),
|
|
467
467
|
events: {
|
|
468
468
|
onChange: 'change',
|
|
469
469
|
onInput: 'input',
|
|
@@ -475,7 +475,7 @@ export const CRadioGroup = createComponent({
|
|
|
475
475
|
/** 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`. */
|
|
476
476
|
export const CSelect = createComponent({
|
|
477
477
|
displayName: 'CSelect',
|
|
478
|
-
elementClass: elementClass(['clearable', 'disabled', 'errorMessage', 'hideDetails', 'hint', 'invalid', 'items', 'itemsPerPage', 'label', 'labelOnTop', 'loading', 'maxTags', 'multiple', 'name', 'optionAsSelection', 'placeholder', 'required', 'returnObject', 'selectAll', 'shadow', 'size', 'texts', 'value']),
|
|
478
|
+
elementClass: elementClass(['clearable', 'disabled', 'errorMessage', 'hideDetails', 'hideMessage', 'hint', 'invalid', 'items', 'itemsPerPage', 'label', 'labelOnTop', 'loading', 'maxTags', 'multiple', 'name', 'optionAsSelection', 'placeholder', 'required', 'returnObject', 'selectAll', 'shadow', 'size', 'texts', 'value']),
|
|
479
479
|
events: {
|
|
480
480
|
onChange: 'change',
|
|
481
481
|
onInput: 'input',
|
|
@@ -494,10 +494,10 @@ export const CSideNavigation = createComponent({
|
|
|
494
494
|
react: React,
|
|
495
495
|
tagName: 'c-side-navigation',
|
|
496
496
|
});
|
|
497
|
-
/** One entry of a `c-side-navigation`: its label text, after an optional leading `c-icon`, goes in the default slot, and activating it fires `select` with its `value`; with `href` it is a real link, opened in `target`, and without one a button. Write `c-sub-navigation-item` children inside it to make it an expandable parent,
|
|
497
|
+
/** One entry of a `c-side-navigation`: its label text, after an optional leading `c-icon`, goes in the default slot, and activating it fires `select` with its `value`; with `href` it is a real link, opened in `target`, and without one a button. Write `c-sub-navigation-item` children inside it to make it an expandable parent, shown open while `expanded`; an item without sub-items marks the page shown with `current`. */
|
|
498
498
|
export const CSideNavigationItem = createComponent({
|
|
499
499
|
displayName: 'CSideNavigationItem',
|
|
500
|
-
elementClass: elementClass(['active', 'href', 'loading', 'target', 'value']),
|
|
500
|
+
elementClass: elementClass(['active', 'current', 'expanded', 'href', 'loading', 'target', 'value']),
|
|
501
501
|
events: {
|
|
502
502
|
onSelect: 'select',
|
|
503
503
|
},
|
|
@@ -514,7 +514,7 @@ export const CSideNavigationTitle = createComponent({
|
|
|
514
514
|
/** A slider for picking a number from a range by dragging a thumb along a track, with a label, a value bubble and optional tick marks. */
|
|
515
515
|
export const CSlider = createComponent({
|
|
516
516
|
displayName: 'CSlider',
|
|
517
|
-
elementClass: elementClass(['disableTooltip', 'disabled', 'label', 'labels', 'max', 'min', 'name', 'segments', 'step', 'ticks', 'unit', 'value']),
|
|
517
|
+
elementClass: elementClass(['disableTooltip', 'disabled', 'label', 'labels', 'max', 'min', 'name', 'segments', 'step', 'tickLabels', 'ticks', 'unit', 'value']),
|
|
518
518
|
events: {
|
|
519
519
|
onChange: 'change',
|
|
520
520
|
onInput: 'input',
|
|
@@ -526,7 +526,7 @@ export const CSlider = createComponent({
|
|
|
526
526
|
/** A circular indeterminate activity indicator — pure motion with no value, for waits of unknown duration. */
|
|
527
527
|
export const CSpinner = createComponent({
|
|
528
528
|
displayName: 'CSpinner',
|
|
529
|
-
elementClass: elementClass(['color', 'size', 'width']),
|
|
529
|
+
elementClass: elementClass(['color', 'size', 'thickness', 'width']),
|
|
530
530
|
react: React,
|
|
531
531
|
tagName: 'c-spinner',
|
|
532
532
|
});
|
|
@@ -551,10 +551,10 @@ export const CSteps = createComponent({
|
|
|
551
551
|
react: React,
|
|
552
552
|
tagName: 'c-steps',
|
|
553
553
|
});
|
|
554
|
-
/** A second-level entry of a `c-side-navigation`, written inside the `c-side-navigation-item` it belongs to (no `slot` attribute needed) and shown while that parent is `
|
|
554
|
+
/** A second-level entry of a `c-side-navigation`, written inside the `c-side-navigation-item` it belongs to (no `slot` attribute needed) and shown while that parent is `expanded`. Activating it fires `select` with its `value` and closes the mobile drawer. It does not mark itself as the current page: set `current` on the sub-item of the page shown, and `expanded` on its parent. */
|
|
555
555
|
export const CSubNavigationItem = createComponent({
|
|
556
556
|
displayName: 'CSubNavigationItem',
|
|
557
|
-
elementClass: elementClass(['active', 'href', 'loading', 'target', 'value']),
|
|
557
|
+
elementClass: elementClass(['active', 'current', 'href', 'loading', 'target', 'value']),
|
|
558
558
|
events: {
|
|
559
559
|
onSelect: 'select',
|
|
560
560
|
},
|
|
@@ -640,7 +640,7 @@ export const CTags = createComponent({
|
|
|
640
640
|
/** A text field for a single line of text, or several lines under `rows`, with a label, a hint and an error message. */
|
|
641
641
|
export const CTextField = createComponent({
|
|
642
642
|
displayName: 'CTextField',
|
|
643
|
-
elementClass: elementClass(['autocapitalize', 'autocomplete', 'autocorrect', 'autofocus', 'disabled', 'errorMessage', 'hideDetails', 'hint', 'invalid', 'label', 'labelOnTop', 'mask', 'max', 'min', 'name', 'placeholder', 'readonly', 'required', 'rows', 'shadow', 'size', 'step', 'trimWhitespace', 'type', 'value']),
|
|
643
|
+
elementClass: elementClass(['autocapitalize', 'autocomplete', 'autocorrect', 'autofocus', 'disabled', 'errorMessage', 'hideDetails', 'hideMessage', 'hint', 'invalid', 'label', 'labelOnTop', 'mask', 'max', 'min', 'name', 'placeholder', 'readonly', 'required', 'rows', 'shadow', 'size', 'step', 'trimWhitespace', 'type', 'value']),
|
|
644
644
|
events: {
|
|
645
645
|
onChange: 'change',
|
|
646
646
|
onInput: 'input',
|
|
@@ -652,7 +652,7 @@ export const CTextField = createComponent({
|
|
|
652
652
|
/** A time field that takes a typed time, or opens hour and minute columns for picking one, or a start and end time under `range`. */
|
|
653
653
|
export const CTimePicker = createComponent({
|
|
654
654
|
displayName: 'CTimePicker',
|
|
655
|
-
elementClass: elementClass(['clearable', 'disabled', 'errorMessage', 'format', 'hideDetails', 'hint', 'invalid', 'label', 'labelOnTop', 'max', 'min', 'minuteStep', 'name', 'placeholder', 'range', 'required', 'shadow', 'showNow', 'size', 'texts', 'value']),
|
|
655
|
+
elementClass: elementClass(['clearable', 'disabled', 'errorMessage', 'format', 'hideDetails', 'hideMessage', 'hint', 'invalid', 'label', 'labelOnTop', 'max', 'min', 'minuteStep', 'name', 'placeholder', 'range', 'required', 'shadow', 'showNow', 'size', 'texts', 'value']),
|
|
656
656
|
events: {
|
|
657
657
|
onChange: 'change',
|
|
658
658
|
onChangeText: 'change:text',
|
|
@@ -665,7 +665,7 @@ export const CTimePicker = createComponent({
|
|
|
665
665
|
/** Toasts are passive, transient notifications — operation results, background progress — stacked and managed by a single `c-toasts` container via its `addToast` / `removeToast` methods. `addToast` returns the message's `id` (its own, or a generated one), which `removeToast` takes; `close` fires on the container with the message once a toast has left. */
|
|
666
666
|
export const CToasts = createComponent({
|
|
667
667
|
displayName: 'CToasts',
|
|
668
|
-
elementClass: elementClass(['absolute', 'horizontal', 'vertical']),
|
|
668
|
+
elementClass: elementClass(['absolute', 'contained', 'horizontal', 'position', 'vertical']),
|
|
669
669
|
events: {
|
|
670
670
|
onClose: 'close',
|
|
671
671
|
},
|
|
@@ -692,7 +692,7 @@ export const CTooltip = createComponent({
|
|
|
692
692
|
/** 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. */
|
|
693
693
|
export const CTreeSelect = createComponent({
|
|
694
694
|
displayName: 'CTreeSelect',
|
|
695
|
-
elementClass: elementClass(['allowBranch', 'clearable', 'disabled', 'errorMessage', 'filter', 'hideDetails', 'hint', 'invalid', 'items', 'itemsPerPage', 'label', 'labelOnTop', 'levelLabels', 'name', 'placeholder', 'required', 'returnObject', 'shadow', 'size', 'texts', 'value']),
|
|
695
|
+
elementClass: elementClass(['allowBranch', 'clearable', 'disabled', 'errorMessage', 'filter', 'hideDetails', 'hideMessage', 'hint', 'invalid', 'items', 'itemsPerPage', 'label', 'labelOnTop', 'levelLabels', 'name', 'placeholder', 'required', 'returnObject', 'shadow', 'size', 'texts', 'value']),
|
|
696
696
|
events: {
|
|
697
697
|
onChange: 'change',
|
|
698
698
|
onChangeQuery: 'change:query',
|
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.3",
|
|
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.3"
|
|
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.3"
|
|
39
39
|
},
|
|
40
40
|
"license": "MIT",
|
|
41
41
|
"repository": "CSCfi/ui",
|