@pismo/marola 1.2.0 → 2.0.1

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 (178) hide show
  1. package/dist/{Button-BAljjMv3.js → Button-cCziLrIy.js} +2 -2
  2. package/dist/{ClickAwayListener-DbEYZpyh.js → ClickAwayListener-CUayzVlD.js} +3 -3
  3. package/dist/Dialog.module-BtKUNFVu.js +13 -0
  4. package/dist/{Group-BKXO7GzU.js → Group-Cyc1W1kV.js} +1 -1
  5. package/dist/{Popup-Ck3XlWMq.js → Popup-C7AXLoP0.js} +5 -7
  6. package/dist/{Portal-oY3enyAm.js → Portal-CYV5TK_i.js} +2 -2
  7. package/dist/RadioButton.module-B4kmS66R.js +292 -0
  8. package/dist/SelectButton-k61YYjLu.js +58 -0
  9. package/dist/Tabs.module-DyJgAZt8.js +28 -0
  10. package/dist/{Toggle-Bkf8bKbA.js → Toggle-DEVeyo2f.js} +3 -3
  11. package/dist/assets/RadioButton.css +1 -1
  12. package/dist/assets/Tabs.css +1 -1
  13. package/dist/assets/Tooltip.css +1 -1
  14. package/dist/clsx-OuTLNxxd.js +16 -0
  15. package/dist/{combineHooksSlotProps-C-zYvfnF.js → combineHooksSlotProps-BCXoX9Nx.js} +20 -21
  16. package/dist/components/Adornment/Adornment.d.ts +2 -3
  17. package/dist/components/Adornment/Adornment.js +1 -1
  18. package/dist/components/Adornment/Adornment.stories.d.ts +0 -1
  19. package/dist/components/Advice/Advice.d.ts +2 -3
  20. package/dist/components/Advice/Advice.js +1 -1
  21. package/dist/components/Advice/Advice.stories.d.ts +0 -1
  22. package/dist/components/Alert/Alert.d.ts +0 -1
  23. package/dist/components/Alert/Alert.js +1 -1
  24. package/dist/components/Alert/Alert.stories.d.ts +0 -1
  25. package/dist/components/Autocomplete/Autocomplete.d.ts +1 -2
  26. package/dist/components/Autocomplete/Autocomplete.js +282 -298
  27. package/dist/components/Autocomplete/Autocomplete.stories.d.ts +0 -1
  28. package/dist/components/Avatar/Avatar.d.ts +0 -1
  29. package/dist/components/Avatar/Avatar.js +1 -1
  30. package/dist/components/Avatar/Avatar.stories.d.ts +0 -1
  31. package/dist/components/Badge/Badge.d.ts +0 -1
  32. package/dist/components/Badge/Badge.js +1 -1
  33. package/dist/components/Badge/Badge.stories.d.ts +1 -2
  34. package/dist/components/BankCard/BankCard.js +1 -1
  35. package/dist/components/BankCard/BankCard.stories.d.ts +0 -1
  36. package/dist/components/Button/Button.d.ts +2 -3
  37. package/dist/components/Button/Button.js +2 -2
  38. package/dist/components/Button/Button.stories.d.ts +1 -2
  39. package/dist/components/Calendar/Calendar.js +1 -1
  40. package/dist/components/Calendar/Calendar.stories.d.ts +0 -1
  41. package/dist/components/Checkbox/Checkbox.d.ts +0 -1
  42. package/dist/components/Checkbox/Checkbox.js +1 -1
  43. package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -1
  44. package/dist/components/Chip/Chip.d.ts +1 -2
  45. package/dist/components/Chip/Chip.js +4 -4
  46. package/dist/components/Chip/Chip.stories.d.ts +0 -1
  47. package/dist/components/ConfirmationDialog/ConfirmationDialog.d.ts +0 -1
  48. package/dist/components/ConfirmationDialog/ConfirmationDialog.stories.d.ts +1 -2
  49. package/dist/components/Description/Description.d.ts +0 -1
  50. package/dist/components/Description/Description.js +27 -42
  51. package/dist/components/Description/Description.stories.d.ts +0 -1
  52. package/dist/components/Dialog/Actions.d.ts +0 -1
  53. package/dist/components/Dialog/Actions.js +1 -1
  54. package/dist/components/Dialog/Backdrop.d.ts +0 -1
  55. package/dist/components/Dialog/Backdrop.js +2 -2
  56. package/dist/components/Dialog/CloseIconButton.js +2 -2
  57. package/dist/components/Dialog/Content.d.ts +0 -1
  58. package/dist/components/Dialog/Dialog.d.ts +5 -6
  59. package/dist/components/Dialog/Dialog.js +6 -6
  60. package/dist/components/Dialog/Dialog.stories.d.ts +0 -1
  61. package/dist/components/Dialog/DialogTitle.d.ts +1 -2
  62. package/dist/components/Dialog/DialogTitle.js +1 -1
  63. package/dist/components/EllipsisTooltip/EllipsisTooltip.d.ts +0 -1
  64. package/dist/components/EllipsisTooltip/EllipsisTooltip.js +1 -1
  65. package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +9 -5
  66. package/dist/components/Icon/Icon.d.ts +0 -1
  67. package/dist/components/Icon/Icon.stories.d.ts +1 -2
  68. package/dist/components/IconButton/Icon.stories.d.ts +0 -1
  69. package/dist/components/IconButton/IconButton.d.ts +1 -2
  70. package/dist/components/IconButton/IconButton.js +2 -2
  71. package/dist/components/Input/Input.d.ts +0 -1
  72. package/dist/components/Input/Input.js +259 -274
  73. package/dist/components/Input/Input.stories.d.ts +0 -1
  74. package/dist/components/InputSearch/InputSearch.d.ts +0 -1
  75. package/dist/components/InputSearch/InputSearch.js +1 -1
  76. package/dist/components/InputSearch/InputSearch.stories.d.ts +0 -1
  77. package/dist/components/LoadingSpinner/LoadingSpinner.js +1 -1
  78. package/dist/components/LoadingSpinner/LoadingSpinner.stories.d.ts +0 -1
  79. package/dist/components/PageHeader/PageHeader.d.ts +1 -2
  80. package/dist/components/PageHeader/PageHeader.js +65 -80
  81. package/dist/components/PageHeader/PageHeader.stories.d.ts +0 -1
  82. package/dist/components/Pagination/Pagination.d.ts +0 -1
  83. package/dist/components/Pagination/Pagination.js +43 -58
  84. package/dist/components/Pagination/Pagination.stories.d.ts +1 -2
  85. package/dist/components/Popover/Popover.d.ts +0 -1
  86. package/dist/components/Popover/Popover.js +3 -3
  87. package/dist/components/Popover/Popover.stories.d.ts +1 -2
  88. package/dist/components/RadioButton/RadioButton.d.ts +7 -4
  89. package/dist/components/RadioButton/RadioButton.js +911 -33
  90. package/dist/components/RadioButton/RadioButton.stories.d.ts +7 -13
  91. package/dist/components/RadioButton/RadioOption.d.ts +13 -0
  92. package/dist/components/RadioButton/RadioOption.js +438 -0
  93. package/dist/components/ResultWithChips/ResultWithChips.d.ts +0 -1
  94. package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
  95. package/dist/components/RowItem/RowItem.d.ts +2 -3
  96. package/dist/components/RowItem/RowItem.js +3 -3
  97. package/dist/components/RowItem/RowItem.stories.d.ts +0 -1
  98. package/dist/components/Select/Select.d.ts +0 -1
  99. package/dist/components/Select/Select.js +21 -21
  100. package/dist/components/Select/Select.stories.d.ts +1 -2
  101. package/dist/components/Select/SelectButton.d.ts +0 -1
  102. package/dist/components/Select/SelectButton.js +2 -2
  103. package/dist/components/Skeleton/Skeleton.js +1 -1
  104. package/dist/components/Skeleton/Skeleton.stories.d.ts +0 -1
  105. package/dist/components/Skeleton/SkeletonCircle.stories.d.ts +0 -1
  106. package/dist/components/Skeleton/SkeletonTable.stories.d.ts +0 -1
  107. package/dist/components/Snackbar/Snackbar.d.ts +0 -1
  108. package/dist/components/Snackbar/Snackbar.js +7 -8
  109. package/dist/components/Snackbar/Snackbar.stories.d.ts +1 -2
  110. package/dist/components/SortTooltip/SortTooltip.d.ts +0 -1
  111. package/dist/components/SortTooltip/SortTooltip.js +34 -51
  112. package/dist/components/Stepper/Stepper.d.ts +0 -1
  113. package/dist/components/Stepper/Stepper.js +19 -34
  114. package/dist/components/Stepper/Stepper.stories.d.ts +1 -2
  115. package/dist/components/StepperNavigator/StepperNavigator.js +1 -1
  116. package/dist/components/StepperNavigator/StepperNavigator.stories.d.ts +0 -1
  117. package/dist/components/Table/Table.d.ts +3 -4
  118. package/dist/components/Table/Table.js +1 -1
  119. package/dist/components/Table/Table.stories.d.ts +0 -1
  120. package/dist/components/Table/TableContext.d.ts +2 -3
  121. package/dist/components/Table/TableContext.js +4 -4
  122. package/dist/components/Table/_Table.TBody.stories.d.ts +1 -2
  123. package/dist/components/Table/_Table.THead.stories.d.ts +1 -2
  124. package/dist/components/Table/_Table.Td.stories.d.ts +1 -2
  125. package/dist/components/Table/_Table.Th.stories.d.ts +1 -2
  126. package/dist/components/Table/_Table.Tr.stories.d.ts +1 -2
  127. package/dist/components/Tabs/Tab.d.ts +1 -2
  128. package/dist/components/Tabs/Tab.js +5 -5
  129. package/dist/components/Tabs/Tab.stories.d.ts +1 -2
  130. package/dist/components/Tabs/TabPanel.d.ts +0 -1
  131. package/dist/components/Tabs/TabPanel.js +3 -3
  132. package/dist/components/Tabs/TabPanel.stories.d.ts +1 -2
  133. package/dist/components/Tabs/Tabs.d.ts +0 -1
  134. package/dist/components/Tabs/Tabs.js +5 -5
  135. package/dist/components/Tabs/Tabs.stories.d.ts +1 -2
  136. package/dist/components/Tag/Tag.d.ts +0 -1
  137. package/dist/components/Tag/Tag.js +1 -1
  138. package/dist/components/Tag/Tag.stories.d.ts +1 -2
  139. package/dist/components/TextDisplay/TextDisplay.d.ts +1 -2
  140. package/dist/components/TextDisplay/TextDisplay.js +1 -1
  141. package/dist/components/TextDisplay/TextDisplay.stories.d.ts +0 -1
  142. package/dist/components/ToastCard/ToastCard.d.ts +0 -1
  143. package/dist/components/ToastCard/ToastCard.js +1 -1
  144. package/dist/components/ToastCard/ToastCard.stories.d.ts +0 -1
  145. package/dist/components/Toggle/Toggle.d.ts +0 -1
  146. package/dist/components/Toggle/Toggle.js +102 -117
  147. package/dist/components/Toggle/Toggle.stories.d.ts +0 -1
  148. package/dist/components/ToggleGroup/Group.d.ts +1 -2
  149. package/dist/components/ToggleGroup/Group.js +2 -2
  150. package/dist/components/ToggleGroup/Toggle.js +3 -3
  151. package/dist/components/ToggleGroup/ToggleGroup.js +2 -2
  152. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +2 -3
  153. package/dist/components/Tooltip/Tooltip.d.ts +13 -9
  154. package/dist/components/Tooltip/Tooltip.js +146 -105
  155. package/dist/components/Tooltip/Tooltip.stories.d.ts +18 -10
  156. package/dist/components/Tooltip/Tooltip.test.d.ts +1 -0
  157. package/dist/components/TransactionRow/TransactionRow.d.ts +0 -1
  158. package/dist/components/TransactionRow/TransactionRow.stories.d.ts +0 -1
  159. package/dist/components/Typography/Typography.d.ts +0 -1
  160. package/dist/components/Typography/Typography.js +1 -1
  161. package/dist/components/Typography/Typography.stories.d.ts +0 -1
  162. package/dist/contexts/SnackbarProvider/SnackbarProvider.d.ts +0 -1
  163. package/dist/contexts/SnackbarProvider/SnackbarProvider.js +5 -5
  164. package/dist/contexts/SnackbarProvider/SnackbarProvider.stories.d.ts +1 -2
  165. package/dist/{index-bQFToy-I.js → index-CATDT7fJ.js} +7927 -8368
  166. package/dist/main.js +2 -2
  167. package/dist/{ownerDocument-YGhwAnr1.js → ownerDocument-CAHSRRik.js} +1 -1
  168. package/dist/{useButton-DcihopJG.js → useButton-eF8MXAli.js} +1 -1
  169. package/dist/{useList-B9C55YB7.js → useList-CPY2roI7.js} +3 -4
  170. package/dist/{useSlotProps-C_I1kEHr.js → useSlotProps-DSnfx453.js} +123 -126
  171. package/dist/utils/inputNumberAsText.d.ts +0 -1
  172. package/dist/utils/inputNumberAsText.js +2 -4
  173. package/dist/utils/styleStrings.d.ts +0 -1
  174. package/package.json +2 -1
  175. package/dist/Dialog.module-CE1Q-5tJ.js +0 -28
  176. package/dist/SelectButton-DbiTJagF.js +0 -74
  177. package/dist/Tabs.module-CF9eCJzU.js +0 -28
  178. package/dist/clsx-DB4S2d7J.js +0 -22
@@ -1,5 +1,4 @@
1
1
  import { StoryObj } from '@storybook/react';
2
-
3
2
  declare const meta: {
4
3
  title: string;
5
4
  component: import('react').ForwardRefExoticComponent<import('./Input').InputProps & import('react').RefAttributes<HTMLInputElement>>;
@@ -1,5 +1,4 @@
1
1
  import { ForwardedRef } from 'react';
2
-
3
2
  export declare const InputSearch: import('react').ForwardRefExoticComponent<(Omit<{
4
3
  /** How many milliseconds to wait before trigger the onChange event */
5
4
  triggerDelay?: number | undefined;
@@ -1,6 +1,6 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { forwardRef as p } from "react";
3
- import { c as u } from "../../clsx-DB4S2d7J.js";
3
+ import { c as u } from "../../clsx-OuTLNxxd.js";
4
4
  import { Icon as f } from "../Icon/Icon.js";
5
5
  import { Input as l } from "../Input/Input.js";
6
6
  import '../../assets/InputSearch.css';const h = "_inputSearch_114e1_1", g = {
@@ -1,5 +1,4 @@
1
1
  import { StoryObj } from '@storybook/react';
2
-
3
2
  declare const meta: {
4
3
  title: string;
5
4
  component: import('react').ForwardRefExoticComponent<(Omit<{
@@ -1,6 +1,6 @@
1
1
  import { jsxs as e, jsx as s } from "react/jsx-runtime";
2
2
  import { useMemo as o } from "react";
3
- import { c as t } from "../../clsx-DB4S2d7J.js";
3
+ import { c as t } from "../../clsx-OuTLNxxd.js";
4
4
  import '../../assets/LoadingSpinner.css';const n = {
5
5
  "ls-ring": "_ls-ring_elvjz_1",
6
6
  "ls-ring--invert": "_ls-ring--invert_elvjz_34"
@@ -1,5 +1,4 @@
1
1
  import { StoryObj } from '@storybook/react';
2
-
3
2
  declare const meta: {
4
3
  title: string;
5
4
  component: ({ invert, classNames }: import('./LoadingSpinner').LoadingSpinnerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,5 @@
1
- import { RequireAllOrNone } from '../../types/helpers';
2
1
  import { ReactNode } from 'react';
3
-
2
+ import { RequireAllOrNone } from '../../types/helpers';
4
3
  type BreadcrumbItem = {
5
4
  /** Breadcrumb item label */
6
5
  label: string;
@@ -1,25 +1,10 @@
1
- import { jsx as e, jsxs as p, Fragment as n } from "react/jsx-runtime";
2
- import { useMemo as I } from "react";
3
- import { c as y } from "../../clsx-DB4S2d7J.js";
4
- import { Icon as P } from "../Icon/Icon.js";
5
- import { IconButton as $ } from "../IconButton/IconButton.js";
6
- import { Text as m } from "../Typography/Typography.js";
1
+ import { jsx as e, jsxs as n, Fragment as i } from "react/jsx-runtime";
2
+ import { useMemo as P } from "react";
3
+ import { c as g } from "../../clsx-OuTLNxxd.js";
4
+ import { Icon as $ } from "../Icon/Icon.js";
5
+ import { IconButton as q } from "../IconButton/IconButton.js";
6
+ import { Text as k } from "../Typography/Typography.js";
7
7
  import '../../assets/PageHeader.css';const a = {
8
- "u-typography-h1": "_u-typography-h1_1oa3o_1",
9
- "u-typography-h2": "_u-typography-h2_1oa3o_8",
10
- "u-typography-h3": "_u-typography-h3_1oa3o_15",
11
- "u-typography-h4": "_u-typography-h4_1oa3o_22",
12
- "u-typography-h5": "_u-typography-h5_1oa3o_29",
13
- "u-typography-h6": "_u-typography-h6_1oa3o_36",
14
- "u-typography-base": "_u-typography-base_1oa3o_43",
15
- "u-typography-base--xxl": "_u-typography-base--xxl_1oa3o_49",
16
- "u-typography-base--xl": "_u-typography-base--xl_1oa3o_53",
17
- "u-typography-base--lg": "_u-typography-base--lg_1oa3o_57",
18
- "u-typography-base--sm": "_u-typography-base--sm_1oa3o_61",
19
- "u-typography-base--bold": "_u-typography-base--bold_1oa3o_65",
20
- "u-typography-base--strikethrough": "_u-typography-base--strikethrough_1oa3o_68",
21
- "u-typography-base--underlined": "_u-typography-base--underlined_1oa3o_71",
22
- "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1oa3o_74",
23
8
  "page-header": "_page-header_1oa3o_78",
24
9
  "page-header__main-content": "_page-header__main-content_1oa3o_83",
25
10
  "page-header__bottom-content": "_page-header__bottom-content_1oa3o_90",
@@ -31,94 +16,94 @@ import '../../assets/PageHeader.css';const a = {
31
16
  "header-bubble--container--full": "_header-bubble--container--full_1oa3o_146",
32
17
  "header-bubble-margin": "_header-bubble-margin_1oa3o_150"
33
18
  }, E = ({
34
- title: l,
35
- subtitle: b,
36
- rightChildren: s,
37
- bottomChildren: c,
38
- classNameWrapper: k,
39
- classNameTitle: N,
40
- classNameSubtitle: f,
41
- headerBubble: t,
19
+ title: b,
20
+ subtitle: p,
21
+ rightChildren: c,
22
+ bottomChildren: _,
23
+ classNameWrapper: N,
24
+ classNameTitle: f,
25
+ classNameSubtitle: v,
26
+ headerBubble: o,
42
27
  fullWidthHeaderBubble: x,
43
- "data-testid-wrapper": v,
44
- "data-testid-title": w,
45
- "data-testid-subtitle": L,
46
- "data-testid-header-bubble": C,
47
- ...T
28
+ "data-testid-wrapper": w,
29
+ "data-testid-title": L,
30
+ "data-testid-subtitle": C,
31
+ "data-testid-header-bubble": T,
32
+ ...B
48
33
  }) => {
49
34
  const {
50
35
  breadcrumb: r,
51
- backLinkText: d,
52
- onBackLinkClick: h,
53
- classNameBackLink: u,
54
- "data-testid-backLink": g,
55
- ...B
56
- } = T;
57
- t && (l || b || c) && console.error("headerBubble prop can not be used with title, subtitle or bottomChildren"), !t && !l && console.error("title prop is required when not using headerBubble"), (d || h) && console.error("backLinkText and onBackLinkClick props are deprecated. Please use breadcrumb instead");
58
- const j = y([a["page-header"], k]), H = I(() => {
59
- const _ = [];
60
- return d && h && _.push({
61
- label: d,
62
- className: u,
63
- "data-testid": g,
64
- onClick: h
65
- }), r && _.push(...r), /* @__PURE__ */ e("div", { className: a["page-header__breadcrumb"], children: _.map((o, i) => /* @__PURE__ */ e(
66
- $,
36
+ backLinkText: s,
37
+ onBackLinkClick: l,
38
+ classNameBackLink: m,
39
+ "data-testid-backLink": u,
40
+ ...j
41
+ } = B;
42
+ o && (b || p || _) && console.error("headerBubble prop can not be used with title, subtitle or bottomChildren"), !o && !b && console.error("title prop is required when not using headerBubble"), (s || l) && console.error("backLinkText and onBackLinkClick props are deprecated. Please use breadcrumb instead");
43
+ const H = g([a["page-header"], N]), I = P(() => {
44
+ const d = [];
45
+ return s && l && d.push({
46
+ label: s,
47
+ className: m,
48
+ "data-testid": u,
49
+ onClick: l
50
+ }), r && d.push(...r), /* @__PURE__ */ e("div", { className: a["page-header__breadcrumb"], children: d.map((t, h) => /* @__PURE__ */ e(
51
+ q,
67
52
  {
68
- icon: i === 0 ? /* @__PURE__ */ e(P, { icon: "house-blank" }) : /* @__PURE__ */ e("span", { className: a["page-header__breadcrumb__separator"], children: "/" }),
69
- onClick: () => o.onClick && o.onClick(),
70
- className: o.className,
71
- "data-testid": o["data-testid"],
72
- disabled: _.length === 1 ? !1 : i === _.length - 1,
73
- children: o.label
53
+ icon: h === 0 ? /* @__PURE__ */ e($, { icon: "house-blank" }) : /* @__PURE__ */ e("span", { className: a["page-header__breadcrumb__separator"], children: "/" }),
54
+ onClick: () => t.onClick && t.onClick(),
55
+ className: t.className,
56
+ "data-testid": t["data-testid"],
57
+ disabled: d.length === 1 ? !1 : h === d.length - 1,
58
+ children: t.label
74
59
  },
75
- `${o.label}_${i}`
60
+ `${t.label}_${h}`
76
61
  )) });
77
- }, [r, d, u, g, h]);
78
- return /* @__PURE__ */ p(n, { children: [
79
- /* @__PURE__ */ p("div", { className: j, "data-testid": v, ...B, children: [
80
- /* @__PURE__ */ p("div", { className: a["page-header__main-content"], children: [
81
- /* @__PURE__ */ p("div", { className: a["page-header__right-children-wrapper"], children: [
82
- r && H,
83
- r && s && /* @__PURE__ */ e(n, { children: s })
62
+ }, [r, s, m, u, l]);
63
+ return /* @__PURE__ */ n(i, { children: [
64
+ /* @__PURE__ */ n("div", { className: H, "data-testid": w, ...j, children: [
65
+ /* @__PURE__ */ n("div", { className: a["page-header__main-content"], children: [
66
+ /* @__PURE__ */ n("div", { className: a["page-header__right-children-wrapper"], children: [
67
+ r && I,
68
+ r && c && /* @__PURE__ */ e(i, { children: c })
84
69
  ] }),
85
- /* @__PURE__ */ p("div", { className: a["page-header__right-children-wrapper"], children: [
70
+ /* @__PURE__ */ n("div", { className: a["page-header__right-children-wrapper"], children: [
86
71
  /* @__PURE__ */ e(
87
- m,
72
+ k,
88
73
  {
89
74
  variant: "h4",
90
75
  element: "h1",
91
76
  color: "var(--colors-neutral-text-color-text)",
92
- className: N,
93
- "data-testid": w,
94
- children: l
77
+ className: f,
78
+ "data-testid": L,
79
+ children: b
95
80
  }
96
81
  ),
97
- !r && s && /* @__PURE__ */ e(n, { children: s })
82
+ !r && c && /* @__PURE__ */ e(i, { children: c })
98
83
  ] }),
99
84
  /* @__PURE__ */ e(
100
- m,
85
+ k,
101
86
  {
102
87
  variant: "base",
103
88
  element: "p",
104
89
  color: "var(--colors-neutral-text-color-text)",
105
- className: f,
106
- "data-testid": L,
107
- children: b
90
+ className: v,
91
+ "data-testid": C,
92
+ children: p
108
93
  }
109
94
  ),
110
- t && /* @__PURE__ */ e(n, { children: /* @__PURE__ */ e("div", { className: a["header-bubble"], children: /* @__PURE__ */ e(
95
+ o && /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e("div", { className: a["header-bubble"], children: /* @__PURE__ */ e(
111
96
  "div",
112
97
  {
113
- className: x ? y(a["header-bubble--container"], a["header-bubble--container--full"]) : a["header-bubble--container"],
114
- "data-testid": C,
115
- children: t
98
+ className: x ? g(a["header-bubble--container"], a["header-bubble--container--full"]) : a["header-bubble--container"],
99
+ "data-testid": T,
100
+ children: o
116
101
  }
117
102
  ) }) })
118
103
  ] }),
119
- c && /* @__PURE__ */ e("div", { className: a["page-header__bottom-content"], children: c })
104
+ _ && /* @__PURE__ */ e("div", { className: a["page-header__bottom-content"], children: _ })
120
105
  ] }),
121
- t && /* @__PURE__ */ e("div", { className: a["header-bubble-margin"] })
106
+ o && /* @__PURE__ */ e("div", { className: a["header-bubble-margin"] })
122
107
  ] });
123
108
  };
124
109
  export {
@@ -1,5 +1,4 @@
1
1
  import { StoryObj } from '@storybook/react';
2
-
3
2
  declare const meta: {
4
3
  title: string;
5
4
  component: ({ title, subtitle, rightChildren, bottomChildren, classNameWrapper, classNameTitle, classNameSubtitle, headerBubble, fullWidthHeaderBubble, "data-testid-wrapper": wrapperTestId, "data-testid-title": titleTestId, "data-testid-subtitle": subtitleTestId, "data-testid-header-bubble": headerBubbleTestId, ...props }: import('./PageHeader').PageHeaderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
1
  import { UsePaginationProps } from './usePagination';
2
-
3
2
  export type PaginationParams = {
4
3
  /** Total number of items to paginate */
5
4
  totalItems: number;
@@ -1,25 +1,10 @@
1
- import { jsxs as s, Fragment as h, jsx as a } from "react/jsx-runtime";
2
- import { c as _ } from "../../clsx-DB4S2d7J.js";
3
- import { Select as p } from "../Select/Select.js";
4
- import C from "./usePagination.js";
5
- import '../../assets/Pagination.css';const w = "_pagination_2kmrd_43", n = {
6
- "u-typography-h1": "_u-typography-h1_2kmrd_1",
7
- "u-typography-h2": "_u-typography-h2_2kmrd_8",
8
- "u-typography-h3": "_u-typography-h3_2kmrd_15",
9
- "u-typography-h4": "_u-typography-h4_2kmrd_22",
10
- "u-typography-h5": "_u-typography-h5_2kmrd_29",
11
- "u-typography-h6": "_u-typography-h6_2kmrd_36",
12
- "u-typography-base": "_u-typography-base_2kmrd_43",
13
- pagination: w,
1
+ import { jsxs as r, Fragment as m, jsx as a } from "react/jsx-runtime";
2
+ import { c as o } from "../../clsx-OuTLNxxd.js";
3
+ import { Select as b } from "../Select/Select.js";
4
+ import w from "./usePagination.js";
5
+ import '../../assets/Pagination.css';const y = "_pagination_2kmrd_43", n = {
6
+ pagination: y,
14
7
  "per-page-container": "_per-page-container_2kmrd_43",
15
- "u-typography-base--xxl": "_u-typography-base--xxl_2kmrd_49",
16
- "u-typography-base--xl": "_u-typography-base--xl_2kmrd_53",
17
- "u-typography-base--lg": "_u-typography-base--lg_2kmrd_57",
18
- "u-typography-base--sm": "_u-typography-base--sm_2kmrd_61",
19
- "u-typography-base--bold": "_u-typography-base--bold_2kmrd_65",
20
- "u-typography-base--strikethrough": "_u-typography-base--strikethrough_2kmrd_68",
21
- "u-typography-base--underlined": "_u-typography-base--underlined_2kmrd_71",
22
- "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_2kmrd_74",
23
8
  "per-page-container__select": "_per-page-container__select_2kmrd_91",
24
9
  "pages-navigator-container": "_pages-navigator-container_2kmrd_98",
25
10
  "page-item": "_page-item_2kmrd_115",
@@ -44,105 +29,105 @@ import '../../assets/Pagination.css';const w = "_pagination_2kmrd_43", n = {
44
29
  perPage: "Items per page"
45
30
  }
46
31
  }, $ = ({
47
- perPageOptions: o = [5, 10, 25, 50, 100],
48
- language: m = "en",
49
- usePaginationProps: y = {},
32
+ perPageOptions: c = [5, 10, 25, 50, 100],
33
+ language: h = "en",
34
+ usePaginationProps: v = {},
50
35
  ...e
51
36
  }) => {
52
- const d = Math.ceil(e.totalItems / e.perPage), b = e.currentPage <= 1, k = e.currentPage >= d, v = { ...B[m], ...e.t || {} }, i = (t) => v[t], { items: x } = C({
37
+ const d = Math.ceil(e.totalItems / e.perPage), P = e.currentPage <= 1, N = e.currentPage >= d, f = { ...B[h], ...e.t || {} }, s = (t) => f[t], { items: x } = w({
53
38
  count: d,
54
39
  page: e.currentPage,
55
40
  hideNextButton: !0,
56
41
  hidePrevButton: !0,
57
42
  siblingCount: 1,
58
43
  boundaryCount: 2,
59
- ...y
60
- }), l = e.perPage * (e.currentPage - 1) + 1, u = l + e.perPage - 1, P = u > e.totalItems ? u - e.totalItems : 0, N = u - P;
61
- return /* @__PURE__ */ s("div", { className: _(n.pagination, e.className), "data-testid": e["data-testid"], children: [
62
- /* @__PURE__ */ s(
44
+ ...v
45
+ }), u = e.perPage * (e.currentPage - 1) + 1, g = u + e.perPage - 1, I = g > e.totalItems ? g - e.totalItems : 0, p = g - I;
46
+ return /* @__PURE__ */ r("div", { className: o(n.pagination, e.className), "data-testid": e["data-testid"], children: [
47
+ /* @__PURE__ */ r(
63
48
  "div",
64
49
  {
65
- className: _(n["per-page-container"], e.classNamePerPage),
50
+ className: o(n["per-page-container"], e.classNamePerPage),
66
51
  "data-testid": e["data-testid-per-page"],
67
52
  children: [
68
- o && /* @__PURE__ */ s(h, { children: [
69
- /* @__PURE__ */ a("span", { children: i`perPage` }),
53
+ c && /* @__PURE__ */ r(m, { children: [
54
+ /* @__PURE__ */ a("span", { children: s`perPage` }),
70
55
  /* @__PURE__ */ a(
71
- p,
56
+ b,
72
57
  {
73
58
  className: n["per-page-container__select"],
74
59
  value: String(e.perPage),
75
60
  onChange: (t) => e.onRowsPerPageChange(Number(t)),
76
- children: o == null ? void 0 : o.map((t) => {
77
- const r = typeof t == "number";
61
+ children: c == null ? void 0 : c.map((t) => {
62
+ const i = typeof t == "number";
78
63
  return /* @__PURE__ */ a(
79
- p.Option,
64
+ b.Option,
80
65
  {
81
- value: String(r ? t : t.value),
82
- children: r ? t : t.label
66
+ value: String(i ? t : t.value),
67
+ children: i ? t : t.label
83
68
  },
84
- `per-page__${r ? t : t.value}`
69
+ `per-page__${i ? t : t.value}`
85
70
  );
86
71
  })
87
72
  }
88
73
  )
89
74
  ] }),
90
- /* @__PURE__ */ s("div", { className: e.classNamePagesInfo, "data-testid": e["data-testid-pages-info"], children: [
91
- /* @__PURE__ */ s("span", { children: [
92
- l,
75
+ /* @__PURE__ */ r("div", { className: e.classNamePagesInfo, "data-testid": e["data-testid-pages-info"], children: [
76
+ /* @__PURE__ */ r("span", { children: [
77
+ u,
93
78
  " - ",
94
- N
79
+ p
95
80
  ] }),
96
81
  " ",
97
- /* @__PURE__ */ s("span", { children: [
98
- i`of`,
82
+ /* @__PURE__ */ r("span", { children: [
83
+ s`of`,
99
84
  " ",
100
85
  /* @__PURE__ */ a("strong", { children: e.totalItems }),
101
86
  " ",
102
- i`results`
87
+ s`results`
103
88
  ] })
104
89
  ] })
105
90
  ]
106
91
  }
107
92
  ),
108
- /* @__PURE__ */ s(
93
+ /* @__PURE__ */ r(
109
94
  "div",
110
95
  {
111
- className: _(n["pages-navigator-container"], e.classNamePagesNav),
96
+ className: o(n["pages-navigator-container"], e.classNamePagesNav),
112
97
  "data-testid": e["data-testid-pages-nav"],
113
98
  children: [
114
99
  /* @__PURE__ */ a(
115
100
  "button",
116
101
  {
117
102
  className: n["pages-navigator-container__previous-next-btn"],
118
- disabled: b,
103
+ disabled: P,
119
104
  onClick: () => e.onPageChange(e.currentPage - 1),
120
105
  type: "button",
121
- children: i`previous`
106
+ children: s`previous`
122
107
  },
123
108
  "page__previous"
124
109
  ),
125
- /* @__PURE__ */ a("ul", { children: x.map(({ page: t, type: r, selected: f, ...I }, c) => {
126
- let g = /* @__PURE__ */ a(h, {});
127
- return r === "start-ellipsis" || r === "end-ellipsis" ? g = /* @__PURE__ */ a("span", { className: n["page-item"], children: "..." }) : r === "page" ? g = /* @__PURE__ */ a(
110
+ /* @__PURE__ */ a("ul", { children: x.map(({ page: t, type: i, selected: k, ...C }, _) => {
111
+ let l = /* @__PURE__ */ a(m, {});
112
+ return i === "start-ellipsis" || i === "end-ellipsis" ? l = /* @__PURE__ */ a("span", { className: n["page-item"], children: "..." }) : i === "page" ? l = /* @__PURE__ */ a(
128
113
  "button",
129
114
  {
130
- className: _(n["page-number__btn"], f && n["page-number__btn--selected"]),
115
+ className: o(n["page-number__btn"], k && n["page-number__btn--selected"]),
131
116
  onClick: () => e.onPageChange(t || 0),
132
117
  type: "button",
133
118
  children: t
134
119
  },
135
- `page__${c}`
136
- ) : g = /* @__PURE__ */ a("button", { type: "button", ...I, children: r }), /* @__PURE__ */ a("li", { children: g }, c);
120
+ `page__${_}`
121
+ ) : l = /* @__PURE__ */ a("button", { type: "button", ...C, children: i }), /* @__PURE__ */ a("li", { children: l }, _);
137
122
  }) }),
138
123
  /* @__PURE__ */ a(
139
124
  "button",
140
125
  {
141
126
  className: n["pages-navigator-container__previous-next-btn"],
142
- disabled: k,
127
+ disabled: N,
143
128
  onClick: () => e.onPageChange(e.currentPage + 1),
144
129
  type: "button",
145
- children: i`next`
130
+ children: s`next`
146
131
  },
147
132
  "page__next"
148
133
  )
@@ -1,6 +1,5 @@
1
- import { PaginationProps } from '../../main';
2
1
  import { StoryObj } from '@storybook/react';
3
-
2
+ import { PaginationProps } from '../../main';
4
3
  declare const meta: {
5
4
  title: string;
6
5
  component: ({ perPageOptions, language, usePaginationProps, ...props }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
1
  import { PopupOffsetOptions, PopupPlacement } from '@mui/base/Unstable_Popup';
2
-
3
2
  export type PopoverProps = {
4
3
  /** An HTML element or a function that returns either. */
5
4
  anchorRef?: Element;
@@ -1,11 +1,11 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { c as f } from "../../clsx-DB4S2d7J.js";
2
+ import { c as f } from "../../clsx-OuTLNxxd.js";
3
3
  import { s as v } from "../../Popover.module-B4boCutS.js";
4
4
  import { PopoverBody as l } from "./PopoverBody.js";
5
5
  import { PopoverFooter as n } from "./PopoverFooter.js";
6
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";
7
+ import { P as y } from "../../Popup-C7AXLoP0.js";
8
+ import { C as h } from "../../ClickAwayListener-CUayzVlD.js";
9
9
  const r = ({
10
10
  anchorRef: t,
11
11
  open: m,
@@ -1,6 +1,5 @@
1
- import { PopoverProps } from './Popover';
2
1
  import { StoryObj } from '@storybook/react';
3
-
2
+ import { PopoverProps } from './Popover';
4
3
  declare const meta: {
5
4
  title: string;
6
5
  component: {
@@ -1,11 +1,13 @@
1
1
  /// <reference types="react" />
2
- type RadioButtonProps = {
2
+ export type RadioButtonProps = {
3
3
  /** Space separated list of CSS classes to apply */
4
4
  className?: string;
5
5
  /** Name */
6
6
  name?: string;
7
7
  /** Component label */
8
8
  label?: React.ReactNode;
9
+ /** Component default value */
10
+ defaultValue?: string | number | boolean;
9
11
  /** Checked state */
10
12
  checked?: boolean;
11
13
  /** Disabled state */
@@ -13,7 +15,8 @@ type RadioButtonProps = {
13
15
  /** TestId to use in tests if needed */
14
16
  'data-testid'?: string;
15
17
  /** Action that is triggered when the Radio button value changes */
16
- onChange: (state: boolean) => void;
18
+ onChange: (value: unknown, event?: Event) => void;
19
+ /** Component children */
20
+ children?: React.ReactNode;
17
21
  };
18
- export declare const RadioButton: ({ className, name, label, checked, disabled, "data-testid": dataTestId, onChange, }: RadioButtonProps) => import("react/jsx-runtime").JSX.Element;
19
- export {};
22
+ export declare const RadioButton: ({ className, name, label, disabled, defaultValue, checked, "data-testid": dataTestId, onChange, children, }: RadioButtonProps) => import("react/jsx-runtime").JSX.Element;