@cscfi/csc-ui-react 4.0.0-alpha.2 → 4.0.0-alpha.4

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 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 CProgressBarElement, type CRadioElement, 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 } 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 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,7 +13,9 @@ 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
- export declare const CAlert: import("@lit/react").ReactWebComponent<CAlertElement, {}>;
16
+ export declare const CAlert: import("@lit/react").ReactWebComponent<CAlertElement, {
17
+ onDismiss: EventName<CAlertElementEventMap["dismiss"]>;
18
+ }>;
17
19
  /** A filterable value-selection component: a readonly value field that opens a popover panel with a search input above the matching options. */
18
20
  export declare const CAutocomplete: import("@lit/react").ReactWebComponent<CAutocompleteElement, {
19
21
  onChange: EventName<CAutocompleteElementEventMap["change"]>;
@@ -98,8 +100,16 @@ export declare const CPagination: import("@lit/react").ReactWebComponent<CPagina
98
100
  onInput: EventName<CPaginationElementEventMap["input"]>;
99
101
  onUpdateValue: EventName<CPaginationElementEventMap["update:value"]>;
100
102
  }>;
103
+ /** A click-opened, non-modal surface anchored to its trigger, floating in the top layer; its content may be interactive. */
104
+ export declare const CPopover: import("@lit/react").ReactWebComponent<CPopoverElement, {
105
+ onChangeOpen: EventName<CPopoverElementEventMap["change:open"]>;
106
+ }>;
101
107
  export declare const CProgressBar: import("@lit/react").ReactWebComponent<CProgressBarElement, {}>;
102
- export declare const CRadio: import("@lit/react").ReactWebComponent<CRadioElement, {}>;
108
+ /** A single radio option inside a `c-radio-group`: a native radio input whose default slot is its clickable, announced label. */
109
+ export declare const CRadio: import("@lit/react").ReactWebComponent<CRadioElement, {
110
+ onChange: EventName<CRadioElementEventMap["change"]>;
111
+ }>;
112
+ /** 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. */
103
113
  export declare const CRadioGroup: import("@lit/react").ReactWebComponent<CRadioGroupElement, {
104
114
  onChangeValue: EventName<CRadioGroupElementEventMap["changeValue"]>;
105
115
  onInput: EventName<CRadioGroupElementEventMap["input"]>;
@@ -168,3 +178,7 @@ export declare const CToast: import("@lit/react").ReactWebComponent<CToastElemen
168
178
  /** Toasts are passive, transient notifications — operation results, background progress — stacked and managed by a single `c-toasts` container via its `addToast` / `removeToast` methods. */
169
179
  export declare const CToasts: import("@lit/react").ReactWebComponent<CToastsElement, {}>;
170
180
  export declare const CToolbar: import("@lit/react").ReactWebComponent<CToolbarElement, {}>;
181
+ /** A non-interactive text hint shown when its trigger is hovered or keyboard-focused, floating in the top layer on the inverted surface tier. */
182
+ export declare const CTooltip: import("@lit/react").ReactWebComponent<CTooltipElement, {
183
+ onChangeOpen: EventName<CTooltipElementEventMap["change:open"]>;
184
+ }>;
@@ -45,6 +45,9 @@ export const CAccordionItem = createComponent({
45
45
  export const CAlert = createComponent({
46
46
  displayName: 'CAlert',
47
47
  elementClass: elementClass('c-alert'),
48
+ events: {
49
+ onDismiss: 'dismiss',
50
+ },
48
51
  react: React,
49
52
  tagName: 'c-alert',
50
53
  });
@@ -330,18 +333,33 @@ export const CPagination = createComponent({
330
333
  react: React,
331
334
  tagName: 'c-pagination',
332
335
  });
336
+ /** A click-opened, non-modal surface anchored to its trigger, floating in the top layer; its content may be interactive. */
337
+ export const CPopover = createComponent({
338
+ displayName: 'CPopover',
339
+ elementClass: elementClass('c-popover'),
340
+ events: {
341
+ onChangeOpen: 'change:open',
342
+ },
343
+ react: React,
344
+ tagName: 'c-popover',
345
+ });
333
346
  export const CProgressBar = createComponent({
334
347
  displayName: 'CProgressBar',
335
348
  elementClass: elementClass('c-progress-bar'),
336
349
  react: React,
337
350
  tagName: 'c-progress-bar',
338
351
  });
352
+ /** A single radio option inside a `c-radio-group`: a native radio input whose default slot is its clickable, announced label. */
339
353
  export const CRadio = createComponent({
340
354
  displayName: 'CRadio',
341
355
  elementClass: elementClass('c-radio'),
356
+ events: {
357
+ onChange: 'change',
358
+ },
342
359
  react: React,
343
360
  tagName: 'c-radio',
344
361
  });
362
+ /** 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. */
345
363
  export const CRadioGroup = createComponent({
346
364
  displayName: 'CRadioGroup',
347
365
  elementClass: elementClass('c-radio-group'),
@@ -543,3 +561,13 @@ export const CToolbar = createComponent({
543
561
  react: React,
544
562
  tagName: 'c-toolbar',
545
563
  });
564
+ /** A non-interactive text hint shown when its trigger is hovered or keyboard-focused, floating in the top layer on the inverted surface tier. */
565
+ export const CTooltip = createComponent({
566
+ displayName: 'CTooltip',
567
+ elementClass: elementClass('c-tooltip'),
568
+ events: {
569
+ onChangeOpen: 'change:open',
570
+ },
571
+ react: React,
572
+ tagName: 'c-tooltip',
573
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cscfi/csc-ui-react",
3
- "version": "4.0.0-alpha.2",
3
+ "version": "4.0.0-alpha.4",
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.2"
24
+ "@cscfi/csc-ui": "^4.0.0-alpha.4"
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.2"
30
+ "@cscfi/csc-ui": "4.0.0-alpha.4"
31
31
  },
32
32
  "license": "MIT",
33
33
  "repository": "CSCfi/ui",