@cscfi/csc-ui-react 4.0.0-alpha.26 → 4.0.0-alpha.28

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 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, type CTreeSelectElement, type CTreeSelectElementEventMap } 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 CDatePickerElement, type CDatePickerElementEventMap, 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 CNumberFieldElement, type CNumberFieldElementEventMap, 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 CTimePickerElement, type CTimePickerElementEventMap, type CToastElement, type CToastElementEventMap, type CToastsElement, type CToolbarElement, type CTooltipElement, type CTooltipElementEventMap, type CTreeSelectElement, type CTreeSelectElementEventMap } 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"]>;
@@ -53,6 +53,14 @@ export declare const CDataTable: import("@lit/react").ReactWebComponent<CDataTab
53
53
  onChangeSelected: EventName<CDataTableElementEventMap["change:selected"]>;
54
54
  onChangeSort: EventName<CDataTableElementEventMap["change:sort"]>;
55
55
  }>;
56
+ /** A date field that takes a typed date, or opens a calendar panel for picking one, or a start and end date under `range`. */
57
+ export declare const CDatePicker: import("@lit/react").ReactWebComponent<CDatePickerElement, {
58
+ onChange: EventName<CDatePickerElementEventMap["change"]>;
59
+ onChangeMonth: EventName<CDatePickerElementEventMap["change:month"]>;
60
+ onChangeText: EventName<CDatePickerElementEventMap["change:text"]>;
61
+ onInput: EventName<CDatePickerElementEventMap["input"]>;
62
+ onUpdateValue: EventName<CDatePickerElementEventMap["update:value"]>;
63
+ }>;
56
64
  export declare const CDivider: import("@lit/react").ReactWebComponent<CDividerElement, {}>;
57
65
  export declare const CIcon: import("@lit/react").ReactWebComponent<CIconElement, {}>;
58
66
  export declare const CIconButton: import("@lit/react").ReactWebComponent<CIconButtonElement, {}>;
@@ -89,6 +97,12 @@ export declare const CModal: import("@lit/react").ReactWebComponent<CModalElemen
89
97
  onUpdateValue: EventName<CModalElementEventMap["update:value"]>;
90
98
  }>;
91
99
  export declare const CNavigationButton: import("@lit/react").ReactWebComponent<CNavigationButtonElement, {}>;
100
+ /** A field for a number — an integer, or one with decimals — shown with thousands separators as it is typed. */
101
+ export declare const CNumberField: import("@lit/react").ReactWebComponent<CNumberFieldElement, {
102
+ onChange: EventName<CNumberFieldElementEventMap["change"]>;
103
+ onInput: EventName<CNumberFieldElementEventMap["input"]>;
104
+ onUpdateValue: EventName<CNumberFieldElementEventMap["update:value"]>;
105
+ }>;
92
106
  export declare const COption: import("@lit/react").ReactWebComponent<COptionElement, {}>;
93
107
  /** The label region of a `c-option`: wraps the text that c-select and c-autocomplete use as the option's label — in the closed field, its tag and the autocomplete filter — so the option can carry a description or an icon beside its label, and the region in which c-autocomplete marks the runs equal to the query (`::part(match)`). */
94
108
  export declare const COptionValue: import("@lit/react").ReactWebComponent<COptionValueElement, {}>;
@@ -177,12 +191,20 @@ export declare const CTag: import("@lit/react").ReactWebComponent<CTagElement, {
177
191
  onClose: EventName<CTagElementEventMap["close"]>;
178
192
  }>;
179
193
  export declare const CTags: import("@lit/react").ReactWebComponent<CTagsElement, {}>;
194
+ /** A text field for a single line of text, or several lines under `rows`, with a label, a hint and an error message. */
180
195
  export declare const CTextField: import("@lit/react").ReactWebComponent<Omit<CTextFieldElement, "autocorrect"> & HTMLElement, {
181
196
  onChange: EventName<CTextFieldElementEventMap["change"]>;
182
197
  onChangeValue: EventName<CTextFieldElementEventMap["changeValue"]>;
183
198
  onInput: EventName<CTextFieldElementEventMap["input"]>;
184
199
  onUpdateValue: EventName<CTextFieldElementEventMap["update:value"]>;
185
200
  }>;
201
+ /** 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`. */
202
+ export declare const CTimePicker: import("@lit/react").ReactWebComponent<CTimePickerElement, {
203
+ onChange: EventName<CTimePickerElementEventMap["change"]>;
204
+ onChangeText: EventName<CTimePickerElementEventMap["change:text"]>;
205
+ onInput: EventName<CTimePickerElementEventMap["input"]>;
206
+ onUpdateValue: EventName<CTimePickerElementEventMap["update:value"]>;
207
+ }>;
186
208
  /** A single toast notification, rendered and managed by c-toasts */
187
209
  export declare const CToast: import("@lit/react").ReactWebComponent<CToastElement, {
188
210
  onClose: EventName<CToastElementEventMap["close"]>;
@@ -147,6 +147,20 @@ export const CDataTable = createComponent({
147
147
  react: React,
148
148
  tagName: 'c-data-table',
149
149
  });
150
+ /** A date field that takes a typed date, or opens a calendar panel for picking one, or a start and end date under `range`. */
151
+ export const CDatePicker = createComponent({
152
+ displayName: 'CDatePicker',
153
+ elementClass: elementClass('c-date-picker'),
154
+ events: {
155
+ onChange: 'change',
156
+ onChangeMonth: 'change:month',
157
+ onChangeText: 'change:text',
158
+ onInput: 'input',
159
+ onUpdateValue: 'update:value',
160
+ },
161
+ react: React,
162
+ tagName: 'c-date-picker',
163
+ });
150
164
  export const CDivider = createComponent({
151
165
  displayName: 'CDivider',
152
166
  elementClass: elementClass('c-divider'),
@@ -295,6 +309,18 @@ export const CNavigationButton = createComponent({
295
309
  react: React,
296
310
  tagName: 'c-navigation-button',
297
311
  });
312
+ /** A field for a number — an integer, or one with decimals — shown with thousands separators as it is typed. */
313
+ export const CNumberField = createComponent({
314
+ displayName: 'CNumberField',
315
+ elementClass: elementClass('c-number-field'),
316
+ events: {
317
+ onChange: 'change',
318
+ onInput: 'input',
319
+ onUpdateValue: 'update:value',
320
+ },
321
+ react: React,
322
+ tagName: 'c-number-field',
323
+ });
298
324
  export const COption = createComponent({
299
325
  displayName: 'COption',
300
326
  elementClass: elementClass('c-option'),
@@ -543,6 +569,7 @@ export const CTags = createComponent({
543
569
  react: React,
544
570
  tagName: 'c-tags',
545
571
  });
572
+ /** A text field for a single line of text, or several lines under `rows`, with a label, a hint and an error message. */
546
573
  export const CTextField = createComponent({
547
574
  displayName: 'CTextField',
548
575
  elementClass: elementClass('c-text-field'),
@@ -555,6 +582,19 @@ export const CTextField = createComponent({
555
582
  react: React,
556
583
  tagName: 'c-text-field',
557
584
  });
585
+ /** 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`. */
586
+ export const CTimePicker = createComponent({
587
+ displayName: 'CTimePicker',
588
+ elementClass: elementClass('c-time-picker'),
589
+ events: {
590
+ onChange: 'change',
591
+ onChangeText: 'change:text',
592
+ onInput: 'input',
593
+ onUpdateValue: 'update:value',
594
+ },
595
+ react: React,
596
+ tagName: 'c-time-picker',
597
+ });
558
598
  /** A single toast notification, rendered and managed by c-toasts */
559
599
  export const CToast = createComponent({
560
600
  displayName: 'CToast',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cscfi/csc-ui-react",
3
- "version": "4.0.0-alpha.26",
3
+ "version": "4.0.0-alpha.28",
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.26"
24
+ "@cscfi/csc-ui": "^4.0.0-alpha.28"
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.26"
30
+ "@cscfi/csc-ui": "4.0.0-alpha.28"
31
31
  },
32
32
  "license": "MIT",
33
33
  "repository": "CSCfi/ui",