@cscfi/csc-ui-react 4.0.0-alpha.4 → 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.
@@ -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 CButtonElement, type CButtonGroupElement, type CButtonGroupElementEventMap, type CCardElement, type CCardActionsElement, type CCardContentElement, type CCardTitleElement, type CCheckboxElement, type CCheckboxElementEventMap, type CCscLogoElement, type CDataTableElement, type CDataTableElementEventMap, 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 COptionElement, type COptionValueElement, type COtpInputElement, type COtpInputElementEventMap, type CPageElement, type CPaginationElement, type CPaginationElementEventMap, type CPopoverElement, type CPopoverElementEventMap, type CProgressBarElement, 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 CToastElement, type CToastElementEventMap, type CToastsElement, type CToolbarElement, type CTooltipElement, type CTooltipElementEventMap } 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 CButtonElement, type CButtonGroupElement, type CButtonGroupElementEventMap, type CCardElement, type CCardActionsElement, type CCardContentElement, type CCardTitleElement, type CCheckboxElement, type CCheckboxElementEventMap, type CCscLogoElement, type CDataTableElement, type CDataTableElementEventMap, 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 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 CToastElement, type CToastElementEventMap, type CToastsElement, type CToolbarElement, type CTooltipElement, type CTooltipElementEventMap } 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"]>;
@@ -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"]>;
@@ -104,7 +106,10 @@ export declare const CPagination: import("@lit/react").ReactWebComponent<CPagina
104
106
  export declare const CPopover: import("@lit/react").ReactWebComponent<CPopoverElement, {
105
107
  onChangeOpen: EventName<CPopoverElementEventMap["change:open"]>;
106
108
  }>;
109
+ /** A horizontal progress bar that fills a track to a known completion percentage, with an optional details line showing the value and a label. */
107
110
  export declare const CProgressBar: import("@lit/react").ReactWebComponent<CProgressBarElement, {}>;
111
+ /** A circular progress indicator that draws a known completion percentage as an arc around a track — the circular counterpart of `c-progress-bar`. */
112
+ export declare const CProgressCircle: import("@lit/react").ReactWebComponent<CProgressCircleElement, {}>;
108
113
  /** A single radio option inside a `c-radio-group`: a native radio input whose default slot is its clickable, announced label. */
109
114
  export declare const CRadio: import("@lit/react").ReactWebComponent<CRadioElement, {
110
115
  onChange: EventName<CRadioElementEventMap["change"]>;
@@ -132,11 +137,13 @@ export declare const CSlider: import("@lit/react").ReactWebComponent<CSliderElem
132
137
  onInput: EventName<CSliderElementEventMap["input"]>;
133
138
  onUpdateValue: EventName<CSliderElementEventMap["update:value"]>;
134
139
  }>;
140
+ /** A circular indeterminate activity indicator — pure motion with no value, for waits of unknown duration. */
135
141
  export declare const CSpinner: import("@lit/react").ReactWebComponent<CSpinnerElement, {}>;
136
142
  export declare const CStatus: import("@lit/react").ReactWebComponent<CStatusElement, {}>;
137
143
  export declare const CStep: import("@lit/react").ReactWebComponent<CStepElement, {}>;
138
144
  export declare const CSteps: import("@lit/react").ReactWebComponent<CStepsElement, {}>;
139
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. */
140
147
  export declare const CSwitch: import("@lit/react").ReactWebComponent<CSwitchElement, {
141
148
  onChange: EventName<CSwitchElementEventMap["change"]>;
142
149
  onChangeValue: EventName<CSwitchElementEventMap["changeValue"]>;
@@ -155,6 +162,7 @@ export declare const CTabItem: import("@lit/react").ReactWebComponent<CTabItemEl
155
162
  onContentChange: EventName<CTabItemElementEventMap["contentChange"]>;
156
163
  }>;
157
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. */
158
166
  export declare const CTable: import("@lit/react").ReactWebComponent<CTableElement, {}>;
159
167
  export declare const CTabs: import("@lit/react").ReactWebComponent<CTabsElement, {
160
168
  onChangeValue: EventName<CTabsElementEventMap["changeValue"]>;
@@ -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'),
@@ -343,12 +345,20 @@ export const CPopover = createComponent({
343
345
  react: React,
344
346
  tagName: 'c-popover',
345
347
  });
348
+ /** A horizontal progress bar that fills a track to a known completion percentage, with an optional details line showing the value and a label. */
346
349
  export const CProgressBar = createComponent({
347
350
  displayName: 'CProgressBar',
348
351
  elementClass: elementClass('c-progress-bar'),
349
352
  react: React,
350
353
  tagName: 'c-progress-bar',
351
354
  });
355
+ /** A circular progress indicator that draws a known completion percentage as an arc around a track — the circular counterpart of `c-progress-bar`. */
356
+ export const CProgressCircle = createComponent({
357
+ displayName: 'CProgressCircle',
358
+ elementClass: elementClass('c-progress-circle'),
359
+ react: React,
360
+ tagName: 'c-progress-circle',
361
+ });
352
362
  /** A single radio option inside a `c-radio-group`: a native radio input whose default slot is its clickable, announced label. */
353
363
  export const CRadio = createComponent({
354
364
  displayName: 'CRadio',
@@ -417,6 +427,7 @@ export const CSlider = createComponent({
417
427
  react: React,
418
428
  tagName: 'c-slider',
419
429
  });
430
+ /** A circular indeterminate activity indicator — pure motion with no value, for waits of unknown duration. */
420
431
  export const CSpinner = createComponent({
421
432
  displayName: 'CSpinner',
422
433
  elementClass: elementClass('c-spinner'),
@@ -447,6 +458,7 @@ export const CSubNavigationItem = createComponent({
447
458
  react: React,
448
459
  tagName: 'c-sub-navigation-item',
449
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. */
450
462
  export const CSwitch = createComponent({
451
463
  displayName: 'CSwitch',
452
464
  elementClass: elementClass('c-switch'),
@@ -494,6 +506,7 @@ export const CTabItems = createComponent({
494
506
  react: React,
495
507
  tagName: 'c-tab-items',
496
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. */
497
510
  export const CTable = createComponent({
498
511
  displayName: 'CTable',
499
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.4",
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.4"
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.4"
30
+ "@cscfi/csc-ui": "4.0.0-alpha.6"
31
31
  },
32
32
  "license": "MIT",
33
33
  "repository": "CSCfi/ui",