@pismo/marola 1.0.0-beta.8 → 1.0.0

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.
Files changed (172) hide show
  1. package/dist/{Button-DiLqcAJG.js → Button-BAljjMv3.js} +2 -2
  2. package/dist/{ClickAwayListener-BaJ-OV_7.js → ClickAwayListener-DbEYZpyh.js} +3 -3
  3. package/dist/Dialog.module-W7UCXlf3.js +29 -0
  4. package/dist/Group-DspH8hyO.js +30 -0
  5. package/dist/Popover.module-B4boCutS.js +10 -0
  6. package/dist/{Popup-lLWZt2wk.js → Popup-Ck3XlWMq.js} +3 -3
  7. package/dist/{Portal-B_Es6eUL.js → Portal-oY3enyAm.js} +2 -2
  8. package/dist/SelectButton-B38avP9u.js +75 -0
  9. package/dist/{Tabs.module-jkH1Qjn7.js → Tabs.module-BGGTkDc5.js} +7 -7
  10. package/dist/Toggle-MfR7l8Wn.js +190 -0
  11. package/dist/assets/Advice.css +1 -1
  12. package/dist/assets/Alert.css +1 -0
  13. package/dist/assets/Autocomplete.css +1 -1
  14. package/dist/assets/Avatar.css +1 -0
  15. package/dist/assets/Button.css +1 -1
  16. package/dist/assets/Checkbox.css +1 -1
  17. package/dist/assets/Description.css +1 -0
  18. package/dist/assets/Dialog.css +1 -1
  19. package/dist/assets/EllipsisTooltip.css +1 -1
  20. package/dist/assets/Group.css +1 -1
  21. package/dist/assets/IconButton.css +1 -1
  22. package/dist/assets/Input.css +1 -1
  23. package/dist/assets/PageHeader.css +1 -1
  24. package/dist/assets/Pagination.css +1 -1
  25. package/dist/assets/Popover.css +1 -0
  26. package/dist/assets/RadioButton.css +1 -0
  27. package/dist/assets/ResultWithChips.css +1 -0
  28. package/dist/assets/SelectButton.css +1 -1
  29. package/dist/assets/Skeleton.css +1 -1
  30. package/dist/assets/Snackbar.css +1 -1
  31. package/dist/assets/SortTooltip.css +1 -1
  32. package/dist/assets/Stepper.css +1 -1
  33. package/dist/assets/StepperNavigator.css +1 -0
  34. package/dist/assets/Table.css +1 -1
  35. package/dist/assets/Tabs.css +1 -1
  36. package/dist/assets/Toggle.css +1 -1
  37. package/dist/assets/Toggle2.css +1 -1
  38. package/dist/assets/Typography.css +1 -1
  39. package/dist/{combineHooksSlotProps-BtBYUV_B.js → combineHooksSlotProps-C-zYvfnF.js} +1 -1
  40. package/dist/components/Adornment/Adornment.d.ts +11 -2
  41. package/dist/components/Adornment/Adornment.js +6 -6
  42. package/dist/components/Adornment/Adornment.stories.d.ts +14 -0
  43. package/dist/components/Adornment/adornment.test.d.ts +1 -0
  44. package/dist/components/Advice/Advice.d.ts +32 -17
  45. package/dist/components/Advice/Advice.js +39 -40
  46. package/dist/components/Advice/Advice.stories.d.ts +4 -3
  47. package/dist/components/Alert/Alert.d.ts +11 -0
  48. package/dist/components/Alert/Alert.js +46 -0
  49. package/dist/components/Alert/Alert.stories.d.ts +24 -0
  50. package/dist/components/Alert/Alert.test.d.ts +1 -0
  51. package/dist/components/Autocomplete/Autocomplete.d.ts +12 -42
  52. package/dist/components/Autocomplete/Autocomplete.js +425 -435
  53. package/dist/components/Autocomplete/Autocomplete.stories.d.ts +3 -25
  54. package/dist/components/Avatar/Avatar.d.ts +15 -0
  55. package/dist/components/Avatar/Avatar.js +51 -0
  56. package/dist/components/Avatar/Avatar.stories.d.ts +25 -0
  57. package/dist/components/Button/Button.d.ts +2 -0
  58. package/dist/components/Button/Button.js +51 -49
  59. package/dist/components/Checkbox/Checkbox.js +52 -52
  60. package/dist/components/Chip/Chip.d.ts +6 -4
  61. package/dist/components/Chip/Chip.js +10 -6
  62. package/dist/components/Chip/Chip.stories.d.ts +5 -14
  63. package/dist/components/ConfirmationDialog/ConfirmationDialog.d.ts +14 -0
  64. package/dist/components/ConfirmationDialog/ConfirmationDialog.js +37 -0
  65. package/dist/components/ConfirmationDialog/ConfirmationDialog.stories.d.ts +23 -0
  66. package/dist/components/ConfirmationDialog/ConfirmationModal.test.d.ts +1 -0
  67. package/dist/components/Description/Description.d.ts +21 -0
  68. package/dist/components/Description/Description.js +66 -0
  69. package/dist/components/Description/Description.stories.d.ts +22 -0
  70. package/dist/components/Description/Description.test.d.ts +1 -0
  71. package/dist/components/Dialog/Actions.js +1 -1
  72. package/dist/components/Dialog/Backdrop.d.ts +3 -3
  73. package/dist/components/Dialog/Backdrop.js +8 -7
  74. package/dist/components/Dialog/CloseIconButton.d.ts +1 -2
  75. package/dist/components/Dialog/CloseIconButton.js +15 -18
  76. package/dist/components/Dialog/Dialog.d.ts +16 -10
  77. package/dist/components/Dialog/Dialog.js +167 -167
  78. package/dist/components/Dialog/Dialog.stories.d.ts +74 -68
  79. package/dist/components/Dialog/DialogTitle.d.ts +5 -2
  80. package/dist/components/Dialog/DialogTitle.js +22 -16
  81. package/dist/components/EllipsisTooltip/EllipsisTooltip.js +30 -17
  82. package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -0
  83. package/dist/components/Icon/Icon.js +331 -51
  84. package/dist/components/Icon/types.d.ts +1 -1
  85. package/dist/components/IconButton/IconButton.js +42 -42
  86. package/dist/components/Input/Input.d.ts +26 -5
  87. package/dist/components/Input/Input.js +514 -102
  88. package/dist/components/Input/Input.stories.d.ts +2 -21
  89. package/dist/components/InputSearch/InputSearch.d.ts +37 -7
  90. package/dist/components/InputSearch/InputSearch.js +27 -29
  91. package/dist/components/InputSearch/InputSearch.stories.d.ts +15 -3
  92. package/dist/components/PageHeader/PageHeader.d.ts +6 -2
  93. package/dist/components/PageHeader/PageHeader.js +78 -71
  94. package/dist/components/PageHeader/PageHeader.stories.d.ts +3 -1
  95. package/dist/components/PageHeader/PageHeader.test.d.ts +1 -0
  96. package/dist/components/Pagination/Pagination.d.ts +5 -1
  97. package/dist/components/Pagination/Pagination.js +90 -91
  98. package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
  99. package/dist/components/Popover/Popover.d.ts +32 -0
  100. package/dist/components/Popover/Popover.js +24 -0
  101. package/dist/components/Popover/Popover.stories.d.ts +34 -0
  102. package/dist/components/Popover/PopoverBody.d.ts +6 -0
  103. package/dist/components/Popover/PopoverBody.js +6 -0
  104. package/dist/components/Popover/PopoverFooter.d.ts +6 -0
  105. package/dist/components/Popover/PopoverFooter.js +6 -0
  106. package/dist/components/Popover/PopoverHeader.d.ts +6 -0
  107. package/dist/components/Popover/PopoverHeader.js +6 -0
  108. package/dist/components/RadioButton/RadioButton.d.ts +19 -0
  109. package/dist/components/RadioButton/RadioButton.js +37 -0
  110. package/dist/components/RadioButton/RadioButton.stories.d.ts +24 -0
  111. package/dist/components/RadioButton/RadioButton.test.d.ts +1 -0
  112. package/dist/components/ResultWithChips/ResultWithChips.d.ts +12 -0
  113. package/dist/components/ResultWithChips/ResultWithChips.js +33 -0
  114. package/dist/components/RowItem/RowItem.d.ts +2 -2
  115. package/dist/components/RowItem/RowItem.js +9 -5
  116. package/dist/components/RowItem/RowItem.stories.d.ts +17 -0
  117. package/dist/components/RowItem/rowItem.test.d.ts +1 -0
  118. package/dist/components/Select/Select.d.ts +22 -0
  119. package/dist/components/Select/Select.js +476 -414
  120. package/dist/components/Select/SelectButton.d.ts +2 -0
  121. package/dist/components/Select/SelectButton.js +3 -2
  122. package/dist/components/Skeleton/Skeleton.d.ts +3 -1
  123. package/dist/components/Skeleton/Skeleton.js +20 -14
  124. package/dist/components/Skeleton/SkeletonTable.stories.d.ts +1 -1
  125. package/dist/components/Snackbar/Snackbar.js +123 -138
  126. package/dist/components/SortTooltip/SortTooltip.js +46 -46
  127. package/dist/components/Stepper/Stepper.js +35 -35
  128. package/dist/components/StepperNavigator/StepperNavigator.d.ts +58 -0
  129. package/dist/components/StepperNavigator/StepperNavigator.js +115 -0
  130. package/dist/components/StepperNavigator/StepperNavigator.stories.d.ts +18 -0
  131. package/dist/components/StepperNavigator/StepperNavigator.test.d.ts +1 -0
  132. package/dist/components/Table/Table.d.ts +3 -1
  133. package/dist/components/Table/Table.js +87 -99
  134. package/dist/components/Table/Table.stories.d.ts +1 -1
  135. package/dist/components/Tabs/Tab.d.ts +5 -3
  136. package/dist/components/Tabs/Tab.js +36 -35
  137. package/dist/components/Tabs/TabPanel.d.ts +4 -2
  138. package/dist/components/Tabs/TabPanel.js +48 -38
  139. package/dist/components/Tabs/Tabs.d.ts +6 -4
  140. package/dist/components/Tabs/Tabs.js +115 -112
  141. package/dist/components/TextDisplay/TextDisplay.d.ts +7 -3
  142. package/dist/components/TextDisplay/TextDisplay.js +44 -37
  143. package/dist/components/TextDisplay/TextDisplay.stories.d.ts +2 -1
  144. package/dist/components/Toggle/Toggle.js +55 -55
  145. package/dist/components/ToggleGroup/Group.d.ts +2 -0
  146. package/dist/components/ToggleGroup/Group.js +4 -2
  147. package/dist/components/ToggleGroup/Toggle.d.ts +2 -0
  148. package/dist/components/ToggleGroup/Toggle.js +8 -4
  149. package/dist/components/ToggleGroup/ToggleGroup.js +2 -2
  150. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +2 -0
  151. package/dist/components/Tooltip/Tooltip.d.ts +3 -1
  152. package/dist/components/Tooltip/Tooltip.js +4 -4
  153. package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -0
  154. package/dist/components/Typography/Typography.js +47 -47
  155. package/dist/contexts/SnackbarProvider/SnackbarProvider.d.ts +2 -2
  156. package/dist/contexts/SnackbarProvider/SnackbarProvider.js +35 -30
  157. package/dist/contexts/SnackbarProvider/SnackbarProvider.stories.d.ts +1 -1
  158. package/dist/{index-D3Wj0eid.js → index-bQFToy-I.js} +1 -1
  159. package/dist/main.d.ts +8 -0
  160. package/dist/main.js +95 -79
  161. package/dist/marola.css +1 -1
  162. package/dist/{ownerDocument-B61GUaFs.js → ownerDocument-YGhwAnr1.js} +1 -1
  163. package/dist/test-utils/assertStyles.d.ts +1 -1
  164. package/dist/{useButton-Bn3MNH8I.js → useButton-DcihopJG.js} +1 -1
  165. package/dist/{useList-BpJT77u3.js → useList-B9C55YB7.js} +2 -2
  166. package/dist/{useSlotProps-kRhf7Gil.js → useSlotProps-C_I1kEHr.js} +73 -72
  167. package/package.json +22 -13
  168. package/dist/Dialog.module-DFEmFdYT.js +0 -30
  169. package/dist/Group-B3p31ftp.js +0 -26
  170. package/dist/Input.module-iOYlI_1w.js +0 -405
  171. package/dist/SelectButton-K3OIfR5m.js +0 -61
  172. package/dist/Toggle-BSvvbKBp.js +0 -175
@@ -3,7 +3,7 @@ import { StoryObj } from '@storybook/react';
3
3
 
4
4
  declare const meta: {
5
5
  title: string;
6
- component: ({ perPageOptions, language, ...props }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
6
+ component: ({ perPageOptions, language, usePaginationProps, ...props }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
7
7
  tags: string[];
8
8
  parameters: {
9
9
  layout: string;
@@ -0,0 +1,32 @@
1
+ import { PopupOffsetOptions, PopupPlacement } from '@mui/base/Unstable_Popup';
2
+
3
+ export type PopoverProps = {
4
+ /** An HTML element or a function that returns either. */
5
+ anchorRef?: Element;
6
+ /** Boolean to open. */
7
+ open?: boolean;
8
+ /** React Node. */
9
+ children: React.ReactNode;
10
+ /** Determines where to place the popup relative to the trigger element. */
11
+ placement?: PopupPlacement;
12
+ /** Distance between a popup and the trigger element */
13
+ offset?: PopupOffsetOptions;
14
+ /** Class name */
15
+ className?: string;
16
+ /** Id to be applied as `data-testid` on the root element */
17
+ 'data-testid'?: string;
18
+ /** Callback fired when a "click away" event is detected. */
19
+ onClickAway?: (event: MouseEvent | TouchEvent) => void;
20
+ };
21
+ export declare const Popover: {
22
+ ({ anchorRef, open, children, placement, className, offset, "data-testid": dataTestId, onClickAway, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
23
+ Header: ({ children }: {
24
+ children: import('react').ReactNode;
25
+ }) => import("react/jsx-runtime").JSX.Element;
26
+ Footer: ({ children }: {
27
+ children: import('react').ReactNode;
28
+ }) => import("react/jsx-runtime").JSX.Element;
29
+ Body: ({ children }: {
30
+ children: import('react').ReactNode;
31
+ }) => import("react/jsx-runtime").JSX.Element;
32
+ };
@@ -0,0 +1,24 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { c as f } from "../../clsx-DB4S2d7J.js";
3
+ import { s as v } from "../../Popover.module-B4boCutS.js";
4
+ import { PopoverBody as l } from "./PopoverBody.js";
5
+ import { PopoverFooter as n } from "./PopoverFooter.js";
6
+ import { PopoverHeader as P } from "./PopoverHeader.js";
7
+ import { P as y } from "../../Popup-Ck3XlWMq.js";
8
+ import { C as h } from "../../ClickAwayListener-DbEYZpyh.js";
9
+ const r = ({
10
+ anchorRef: t,
11
+ open: m,
12
+ children: p,
13
+ placement: i,
14
+ className: s,
15
+ offset: a,
16
+ "data-testid": d,
17
+ onClickAway: e
18
+ }) => /* @__PURE__ */ o(h, { onClickAway: (c) => e ? e(c) : void 0, children: /* @__PURE__ */ o(y, { offset: a, placement: i, open: m, anchor: t, children: /* @__PURE__ */ o("div", { "data-testid": d, className: f(v.popover, s), children: p }) }) });
19
+ r.Header = P;
20
+ r.Footer = n;
21
+ r.Body = l;
22
+ export {
23
+ r as Popover
24
+ };
@@ -0,0 +1,34 @@
1
+ import { PopoverProps } from './Popover';
2
+ import { StoryObj } from '@storybook/react';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: {
7
+ ({ anchorRef, open, children, placement, className, offset, "data-testid": dataTestId, onClickAway, }: PopoverProps): import("react/jsx-runtime").JSX.Element;
8
+ Header: ({ children }: {
9
+ children: import('react').ReactNode;
10
+ }) => import("react/jsx-runtime").JSX.Element;
11
+ Footer: ({ children }: {
12
+ children: import('react').ReactNode;
13
+ }) => import("react/jsx-runtime").JSX.Element;
14
+ Body: ({ children }: {
15
+ children: import('react').ReactNode;
16
+ }) => import("react/jsx-runtime").JSX.Element;
17
+ };
18
+ parameters: {
19
+ docs: {
20
+ source: {
21
+ language: string;
22
+ format: boolean;
23
+ code: string;
24
+ };
25
+ };
26
+ };
27
+ tags: string[];
28
+ decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
29
+ [x: string]: any;
30
+ }>) => import("react/jsx-runtime").JSX.Element)[];
31
+ };
32
+ export default meta;
33
+ type Story = StoryObj<typeof meta>;
34
+ export declare const Provider: Story;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ type PopoverBodyProps = {
3
+ children: React.ReactNode;
4
+ };
5
+ export declare const PopoverBody: ({ children }: PopoverBodyProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { s } from "../../Popover.module-B4boCutS.js";
3
+ const t = ({ children: o }) => /* @__PURE__ */ r("div", { className: s["popover-body"], children: o });
4
+ export {
5
+ t as PopoverBody
6
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ type PopoverFooterProps = {
3
+ children: React.ReactNode;
4
+ };
5
+ export declare const PopoverFooter: ({ children }: PopoverFooterProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { s as e } from "../../Popover.module-B4boCutS.js";
3
+ const p = ({ children: o }) => /* @__PURE__ */ r("div", { className: e["popover-footer"], children: o });
4
+ export {
5
+ p as PopoverFooter
6
+ };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ type PopoverHeaderProps = {
3
+ children: React.ReactNode;
4
+ };
5
+ export declare const PopoverHeader: ({ children }: PopoverHeaderProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { s as o } from "../../Popover.module-B4boCutS.js";
3
+ const t = ({ children: r }) => /* @__PURE__ */ e("div", { className: o["popover-header"], children: r });
4
+ export {
5
+ t as PopoverHeader
6
+ };
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ type RadioButtonProps = {
3
+ /** Space separated list of CSS classes to apply */
4
+ className?: string;
5
+ /** Name */
6
+ name?: string;
7
+ /** Component label */
8
+ label?: React.ReactNode;
9
+ /** Checked state */
10
+ checked?: boolean;
11
+ /** Disabled state */
12
+ disabled?: boolean;
13
+ /** TestId to use in tests if needed */
14
+ 'data-testid'?: string;
15
+ /** Action that is triggered when the Radio button value changes */
16
+ onChange: (state: boolean) => void;
17
+ };
18
+ export declare const RadioButton: ({ className, name, label, checked, disabled, "data-testid": dataTestId, onChange, }: RadioButtonProps) => import("react/jsx-runtime").JSX.Element;
19
+ export {};
@@ -0,0 +1,37 @@
1
+ import '../../assets/RadioButton.css';
2
+ import { jsxs as h, jsx as i } from "react/jsx-runtime";
3
+ import { useState as x } from "react";
4
+ import { c as o } from "../../clsx-DB4S2d7J.js";
5
+ import { Icon as y } from "../Icon/Icon.js";
6
+ import { Typography as C } from "../Typography/Typography.js";
7
+ const S = "_radio_1t160_1", a = {
8
+ radio: S,
9
+ "radio--label": "_radio--label_1t160_9",
10
+ "radio--label__disabled": "_radio--label__disabled_1t160_12",
11
+ "radio--input": "_radio--input_1t160_16",
12
+ "radio--input__disabled": "_radio--input__disabled_1t160_26",
13
+ "radio--disabled": "_radio--disabled_1t160_37"
14
+ }, k = ({
15
+ className: d,
16
+ name: r,
17
+ label: l,
18
+ checked: n = !1,
19
+ disabled: e = !1,
20
+ "data-testid": c = "radio-button",
21
+ onChange: _
22
+ }) => {
23
+ const [t, p] = x(n), b = o(a["radio--input"], e && a["radio--input__disabled"]), u = o(a["radio--label"], e && a["radio--label__disabled"]), m = o(a.radio, e && a["radio--disabled"], d), f = () => {
24
+ if (e)
25
+ return;
26
+ const s = !t;
27
+ p(s), _(s);
28
+ };
29
+ return /* @__PURE__ */ h("div", { "data-testid": c, onClick: () => f(), className: m, children: [
30
+ /* @__PURE__ */ i("input", { name: r, type: "radio", checked: t, readOnly: !0 }),
31
+ /* @__PURE__ */ i("span", { className: b, children: t && /* @__PURE__ */ i(y, { icon: "circle", color: "var(--accent)", size: 8 }) }),
32
+ /* @__PURE__ */ i(C, { className: u, variant: "base-lg", children: l })
33
+ ] });
34
+ };
35
+ export {
36
+ k as RadioButton
37
+ };
@@ -0,0 +1,24 @@
1
+ import { StoryObj } from '@storybook/react';
2
+
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ className, name, label, checked, disabled, "data-testid": dataTestId, onChange, }: {
6
+ className?: string | undefined;
7
+ name?: string | undefined;
8
+ label?: import('react').ReactNode;
9
+ checked?: boolean | undefined;
10
+ disabled?: boolean | undefined;
11
+ 'data-testid'?: string | undefined;
12
+ onChange: (state: boolean) => void;
13
+ }) => import("react/jsx-runtime").JSX.Element;
14
+ tags: string[];
15
+ parameters: {
16
+ layout: string;
17
+ };
18
+ };
19
+ export default meta;
20
+ type Story = StoryObj<typeof meta>;
21
+ export declare const Simple: Story;
22
+ export declare const WithLabel: Story;
23
+ export declare const Disabled: Story;
24
+ export declare const WithOnChangeAction: Story;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ import { ChipProps } from '../Chip/Chip';
2
+
3
+ type ResultWithChipsProps = {
4
+ chips: Array<Partial<ChipProps> & {
5
+ joinLabel?: string | React.ReactNode;
6
+ key?: string;
7
+ }>;
8
+ title: string;
9
+ className?: string;
10
+ };
11
+ declare const ResultWithChips: ({ chips, title, className, ...rest }: ResultWithChipsProps) => import("react/jsx-runtime").JSX.Element;
12
+ export { ResultWithChips };
@@ -0,0 +1,33 @@
1
+ import '../../assets/ResultWithChips.css';
2
+ import { jsxs as i, jsx as e } from "react/jsx-runtime";
3
+ import { C as t } from "../../Toggle-MfR7l8Wn.js";
4
+ const r = "_container_hgp0p_1", o = "_label_hgp0p_17", a = {
5
+ container: r,
6
+ "chip-item-wrapper": "_chip-item-wrapper_hgp0p_8",
7
+ label: o,
8
+ "chips-container": "_chips-container_hgp0p_35",
9
+ "chip-content": "_chip-content_hgp0p_42",
10
+ "chip-label": "_chip-label_hgp0p_51"
11
+ }, b = ({ chips: c, title: p, className: s, ...h }) => /* @__PURE__ */ i("div", { ...h, className: [a.container, s || ""].join(" ").trim(), children: [
12
+ /* @__PURE__ */ e("span", { className: a.label, children: p }),
13
+ /* @__PURE__ */ e("div", { className: a["chips-container"], "data-testid": "chips-container", children: c.map((l, n) => /* @__PURE__ */ i("span", { className: a["chip-item-wrapper"], children: [
14
+ /* @__PURE__ */ e(
15
+ t,
16
+ {
17
+ ...l,
18
+ label: /* @__PURE__ */ e("span", { className: a["chip-content"], children: typeof l.label == "string" ? /* @__PURE__ */ e("strong", { className: a["chip-label"], children: l.label }) : l.label })
19
+ },
20
+ `chip-${n}`
21
+ ),
22
+ l.joinLabel && n < c.length - 1 && /* @__PURE__ */ e(
23
+ t,
24
+ {
25
+ label: /* @__PURE__ */ e("span", { className: a["chip-content"], children: /* @__PURE__ */ e("strong", { className: a["chip-label"], children: l.joinLabel }) })
26
+ },
27
+ `join-${n}`
28
+ )
29
+ ] }, `full-chip-${n}`)) })
30
+ ] });
31
+ export {
32
+ b as ResultWithChips
33
+ };
@@ -1,5 +1,5 @@
1
1
  import { RequireAllOrNone } from '../../types/helpers';
2
- import { AdornmentSlotProps } from '../../main';
2
+ import { AdornmentProps } from '../../main';
3
3
  import { KeyboardEvent, MouseEvent, ReactNode } from 'react';
4
4
 
5
5
  export type RowItemBaseProps = {
@@ -8,7 +8,7 @@ export type RowItemBaseProps = {
8
8
  /** Buttons to render */
9
9
  buttons?: ReactNode;
10
10
  /** Left adornment */
11
- leftAdornment?: AdornmentSlotProps;
11
+ leftAdornment?: AdornmentProps;
12
12
  /** Whether the row is disabled (not interactable */
13
13
  disabled?: boolean;
14
14
  /** Space seperated list of CSS classes to apply */
@@ -4,16 +4,20 @@ import "../../clsx-DB4S2d7J.js";
4
4
  import "../Adornment/Adornment.js";
5
5
  import "../Icon/Icon.js";
6
6
  import "../Typography/Typography.js";
7
+ import "../Input/Input.js";
8
+ import "../Avatar/Avatar.js";
7
9
  import "../Button/Button.js";
8
- import { R as I, R as b } from "../../Toggle-BSvvbKBp.js";
9
- import "../Dialog/Backdrop.js";
10
+ import { R as h, R as j } from "../../Toggle-MfR7l8Wn.js";
11
+ import "../Dialog/Dialog.js";
10
12
  import "../IconButton/IconButton.js";
13
+ import "../InputSearch/InputSearch.js";
11
14
  import "../Select/Select.js";
15
+ import "../Popover/Popover.js";
12
16
  import "../Table/Table.js";
13
17
  import "../Tabs/Tabs.js";
14
- import "../../Group-B3p31ftp.js";
18
+ import "../../Group-DspH8hyO.js";
15
19
  import "../../contexts/SnackbarProvider/SnackbarProvider.js";
16
20
  export {
17
- I as RowItem,
18
- b as default
21
+ h as RowItem,
22
+ j as default
19
23
  };
@@ -0,0 +1,17 @@
1
+ import { StoryObj } from '@storybook/react';
2
+
3
+ declare const meta: {
4
+ title: string;
5
+ component: import('react').ForwardRefExoticComponent<import('./RowItem').RowItemProps & import('react').RefAttributes<HTMLDivElement>>;
6
+ tags: string[];
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Simple: Story;
14
+ export declare const Clickable: Story;
15
+ export declare const WithAdornement: Story;
16
+ export declare const WithButtons: Story;
17
+ export declare const WithButtonsAndAdornementDisabled: Story;
@@ -0,0 +1 @@
1
+ export {};
@@ -15,9 +15,31 @@ export type SelectProps = {
15
15
  placeholder?: string;
16
16
  prefix?: string;
17
17
  className?: string;
18
+ name?: string;
19
+ id?: string;
18
20
  value?: string;
21
+ label?: string;
22
+ classNameWrapper?: string;
23
+ classNameLabel?: string;
24
+ testIdLabel?: string;
25
+ testIdWrapper?: string;
19
26
  'data-testid'?: string;
20
27
  onChange?: (value: string | null, event?: React.SyntheticEvent<Element, Event> | null) => void;
28
+ fullWidth?: boolean;
29
+ /** Info message text */
30
+ infoMessage?: string;
31
+ /** Show the field layout as an error */
32
+ error?: boolean;
33
+ /** Error message text, if has "errorMessage", the "error" props will be "true" */
34
+ errorMessage?: string;
35
+ /** CSS classes to be applied on the info message element */
36
+ classNameInfoMessage?: string;
37
+ /** CSS classes to be applied on the error message element */
38
+ classNameErrorMessage?: string;
39
+ /** Id to be applied as `data-testid` on the info message element */
40
+ 'data-testid-infoMessage'?: string;
41
+ /** Id to be applied as `data-testid` on the error message element */
42
+ 'data-testid-errorMessage'?: string;
21
43
  };
22
44
  declare const Select: {
23
45
  (props: SelectProps): import("react/jsx-runtime").JSX.Element;