@pismo/marola 1.0.0-beta.69 → 1.0.0-beta.8

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 (174) hide show
  1. package/dist/{Button-BAljjMv3.js → Button-DiLqcAJG.js} +2 -2
  2. package/dist/{ClickAwayListener-DbEYZpyh.js → ClickAwayListener-BaJ-OV_7.js} +3 -3
  3. package/dist/Dialog.module-DFEmFdYT.js +30 -0
  4. package/dist/Group-B3p31ftp.js +26 -0
  5. package/dist/Input.module-iOYlI_1w.js +405 -0
  6. package/dist/{Popup-Ck3XlWMq.js → Popup-lLWZt2wk.js} +3 -3
  7. package/dist/{Portal-oY3enyAm.js → Portal-B_Es6eUL.js} +2 -2
  8. package/dist/SelectButton-K3OIfR5m.js +61 -0
  9. package/dist/{Tabs.module-BGGTkDc5.js → Tabs.module-jkH1Qjn7.js} +7 -7
  10. package/dist/Toggle-BSvvbKBp.js +175 -0
  11. package/dist/assets/Advice.css +1 -1
  12. package/dist/assets/Autocomplete.css +1 -1
  13. package/dist/assets/Button.css +1 -1
  14. package/dist/assets/Checkbox.css +1 -1
  15. package/dist/assets/Dialog.css +1 -1
  16. package/dist/assets/EllipsisTooltip.css +1 -1
  17. package/dist/assets/Group.css +1 -1
  18. package/dist/assets/IconButton.css +1 -1
  19. package/dist/assets/Input.css +1 -1
  20. package/dist/assets/PageHeader.css +1 -1
  21. package/dist/assets/Pagination.css +1 -1
  22. package/dist/assets/SelectButton.css +1 -1
  23. package/dist/assets/Skeleton.css +1 -1
  24. package/dist/assets/Snackbar.css +1 -1
  25. package/dist/assets/SortTooltip.css +1 -1
  26. package/dist/assets/Stepper.css +1 -1
  27. package/dist/assets/Table.css +1 -1
  28. package/dist/assets/Tabs.css +1 -1
  29. package/dist/assets/Toggle.css +1 -1
  30. package/dist/assets/Toggle2.css +1 -1
  31. package/dist/assets/Typography.css +1 -1
  32. package/dist/{combineHooksSlotProps-C-zYvfnF.js → combineHooksSlotProps-BtBYUV_B.js} +1 -1
  33. package/dist/components/Adornment/Adornment.d.ts +2 -11
  34. package/dist/components/Adornment/Adornment.js +6 -6
  35. package/dist/components/Advice/Advice.d.ts +17 -32
  36. package/dist/components/Advice/Advice.js +40 -39
  37. package/dist/components/Advice/Advice.stories.d.ts +3 -4
  38. package/dist/components/Autocomplete/Autocomplete.d.ts +42 -12
  39. package/dist/components/Autocomplete/Autocomplete.js +435 -425
  40. package/dist/components/Autocomplete/Autocomplete.stories.d.ts +25 -3
  41. package/dist/components/Button/Button.d.ts +0 -2
  42. package/dist/components/Button/Button.js +49 -51
  43. package/dist/components/Checkbox/Checkbox.js +52 -52
  44. package/dist/components/Chip/Chip.d.ts +4 -6
  45. package/dist/components/Chip/Chip.js +6 -10
  46. package/dist/components/Chip/Chip.stories.d.ts +15 -6
  47. package/dist/components/Dialog/Actions.js +1 -1
  48. package/dist/components/Dialog/Backdrop.d.ts +3 -3
  49. package/dist/components/Dialog/Backdrop.js +7 -8
  50. package/dist/components/Dialog/CloseIconButton.d.ts +2 -1
  51. package/dist/components/Dialog/CloseIconButton.js +18 -15
  52. package/dist/components/Dialog/Dialog.d.ts +10 -16
  53. package/dist/components/Dialog/Dialog.js +167 -167
  54. package/dist/components/Dialog/Dialog.stories.d.ts +69 -75
  55. package/dist/components/Dialog/DialogTitle.d.ts +2 -5
  56. package/dist/components/Dialog/DialogTitle.js +16 -22
  57. package/dist/components/EllipsisTooltip/EllipsisTooltip.js +17 -30
  58. package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -2
  59. package/dist/components/Icon/Icon.js +51 -331
  60. package/dist/components/Icon/types.d.ts +1 -1
  61. package/dist/components/IconButton/IconButton.js +42 -42
  62. package/dist/components/Input/Input.d.ts +5 -26
  63. package/dist/components/Input/Input.js +102 -514
  64. package/dist/components/Input/Input.stories.d.ts +21 -2
  65. package/dist/components/InputSearch/InputSearch.d.ts +7 -37
  66. package/dist/components/InputSearch/InputSearch.js +29 -27
  67. package/dist/components/InputSearch/InputSearch.stories.d.ts +3 -15
  68. package/dist/components/LoadingSpinner/LoadingSpinner.stories.d.ts +1 -1
  69. package/dist/components/PageHeader/PageHeader.d.ts +2 -6
  70. package/dist/components/PageHeader/PageHeader.js +71 -78
  71. package/dist/components/PageHeader/PageHeader.stories.d.ts +1 -3
  72. package/dist/components/Pagination/Pagination.d.ts +1 -5
  73. package/dist/components/Pagination/Pagination.js +91 -90
  74. package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
  75. package/dist/components/RowItem/RowItem.d.ts +2 -2
  76. package/dist/components/RowItem/RowItem.js +5 -9
  77. package/dist/components/Select/Select.d.ts +0 -22
  78. package/dist/components/Select/Select.js +414 -476
  79. package/dist/components/Select/SelectButton.d.ts +0 -2
  80. package/dist/components/Select/SelectButton.js +2 -3
  81. package/dist/components/Skeleton/Skeleton.d.ts +1 -3
  82. package/dist/components/Skeleton/Skeleton.js +14 -20
  83. package/dist/components/Skeleton/SkeletonTable.stories.d.ts +1 -1
  84. package/dist/components/Snackbar/Snackbar.js +93 -93
  85. package/dist/components/Snackbar/Snackbar.stories.d.ts +1 -1
  86. package/dist/components/SortTooltip/SortTooltip.js +46 -46
  87. package/dist/components/Stepper/Stepper.js +35 -35
  88. package/dist/components/Table/Table.d.ts +1 -3
  89. package/dist/components/Table/Table.js +99 -87
  90. package/dist/components/Table/Table.stories.d.ts +1 -1
  91. package/dist/components/Tabs/Tab.d.ts +3 -5
  92. package/dist/components/Tabs/Tab.js +35 -36
  93. package/dist/components/Tabs/TabPanel.d.ts +2 -4
  94. package/dist/components/Tabs/TabPanel.js +38 -48
  95. package/dist/components/Tabs/Tabs.d.ts +4 -6
  96. package/dist/components/Tabs/Tabs.js +112 -115
  97. package/dist/components/TextDisplay/TextDisplay.d.ts +3 -7
  98. package/dist/components/TextDisplay/TextDisplay.js +37 -44
  99. package/dist/components/TextDisplay/TextDisplay.stories.d.ts +1 -2
  100. package/dist/components/Toggle/Toggle.js +55 -55
  101. package/dist/components/ToggleGroup/Group.d.ts +0 -2
  102. package/dist/components/ToggleGroup/Group.js +2 -4
  103. package/dist/components/ToggleGroup/Toggle.d.ts +0 -2
  104. package/dist/components/ToggleGroup/Toggle.js +4 -8
  105. package/dist/components/ToggleGroup/ToggleGroup.js +2 -2
  106. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +1 -3
  107. package/dist/components/Tooltip/Tooltip.d.ts +1 -3
  108. package/dist/components/Tooltip/Tooltip.js +4 -4
  109. package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -2
  110. package/dist/components/Typography/Typography.js +47 -47
  111. package/dist/components/Typography/Typography.stories.d.ts +1 -1
  112. package/dist/contexts/SnackbarProvider/SnackbarProvider.js +30 -34
  113. package/dist/contexts/SnackbarProvider/SnackbarProvider.stories.d.ts +1 -1
  114. package/dist/{index-bQFToy-I.js → index-D3Wj0eid.js} +1 -1
  115. package/dist/main.d.ts +0 -8
  116. package/dist/main.js +79 -95
  117. package/dist/marola.css +1 -1
  118. package/dist/{ownerDocument-YGhwAnr1.js → ownerDocument-B61GUaFs.js} +1 -1
  119. package/dist/test-utils/assertStyles.d.ts +1 -1
  120. package/dist/{useButton-DcihopJG.js → useButton-Bn3MNH8I.js} +1 -1
  121. package/dist/{useList-B9C55YB7.js → useList-BpJT77u3.js} +2 -2
  122. package/dist/{useSlotProps-C_I1kEHr.js → useSlotProps-kRhf7Gil.js} +72 -73
  123. package/package.json +13 -22
  124. package/dist/Dialog.module-W7UCXlf3.js +0 -29
  125. package/dist/Group-DspH8hyO.js +0 -30
  126. package/dist/Popover.module-B4boCutS.js +0 -10
  127. package/dist/SelectButton-B38avP9u.js +0 -75
  128. package/dist/Toggle-MfR7l8Wn.js +0 -190
  129. package/dist/assets/Alert.css +0 -1
  130. package/dist/assets/Avatar.css +0 -1
  131. package/dist/assets/Description.css +0 -1
  132. package/dist/assets/Popover.css +0 -1
  133. package/dist/assets/RadioButton.css +0 -1
  134. package/dist/assets/ResultWithChips.css +0 -1
  135. package/dist/assets/StepperNavigator.css +0 -1
  136. package/dist/components/Adornment/Adornment.stories.d.ts +0 -14
  137. package/dist/components/Adornment/adornment.test.d.ts +0 -1
  138. package/dist/components/Alert/Alert.d.ts +0 -11
  139. package/dist/components/Alert/Alert.js +0 -46
  140. package/dist/components/Alert/Alert.stories.d.ts +0 -24
  141. package/dist/components/Alert/Alert.test.d.ts +0 -1
  142. package/dist/components/Avatar/Avatar.d.ts +0 -15
  143. package/dist/components/Avatar/Avatar.js +0 -51
  144. package/dist/components/Avatar/Avatar.stories.d.ts +0 -25
  145. package/dist/components/ConfirmationDialog/ConfirmationDialog.d.ts +0 -14
  146. package/dist/components/ConfirmationDialog/ConfirmationDialog.js +0 -37
  147. package/dist/components/ConfirmationDialog/ConfirmationDialog.stories.d.ts +0 -23
  148. package/dist/components/ConfirmationDialog/ConfirmationModal.test.d.ts +0 -1
  149. package/dist/components/Description/Description.d.ts +0 -21
  150. package/dist/components/Description/Description.js +0 -66
  151. package/dist/components/Description/Description.stories.d.ts +0 -22
  152. package/dist/components/Description/Description.test.d.ts +0 -1
  153. package/dist/components/PageHeader/PageHeader.test.d.ts +0 -1
  154. package/dist/components/Popover/Popover.d.ts +0 -32
  155. package/dist/components/Popover/Popover.js +0 -24
  156. package/dist/components/Popover/Popover.stories.d.ts +0 -34
  157. package/dist/components/Popover/PopoverBody.d.ts +0 -6
  158. package/dist/components/Popover/PopoverBody.js +0 -6
  159. package/dist/components/Popover/PopoverFooter.d.ts +0 -6
  160. package/dist/components/Popover/PopoverFooter.js +0 -6
  161. package/dist/components/Popover/PopoverHeader.d.ts +0 -6
  162. package/dist/components/Popover/PopoverHeader.js +0 -6
  163. package/dist/components/RadioButton/RadioButton.d.ts +0 -19
  164. package/dist/components/RadioButton/RadioButton.js +0 -37
  165. package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -24
  166. package/dist/components/RadioButton/RadioButton.test.d.ts +0 -1
  167. package/dist/components/ResultWithChips/ResultWithChips.d.ts +0 -12
  168. package/dist/components/ResultWithChips/ResultWithChips.js +0 -33
  169. package/dist/components/RowItem/RowItem.stories.d.ts +0 -17
  170. package/dist/components/RowItem/rowItem.test.d.ts +0 -1
  171. package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -58
  172. package/dist/components/StepperNavigator/StepperNavigator.js +0 -115
  173. package/dist/components/StepperNavigator/StepperNavigator.stories.d.ts +0 -18
  174. package/dist/components/StepperNavigator/StepperNavigator.test.d.ts +0 -1
@@ -1,39 +1,9 @@
1
- import { ForwardedRef } from 'react';
1
+ import { Input } from '../Input/Input';
2
+ import { ComponentProps } from 'react';
2
3
 
3
- export declare const InputSearch: import('react').ForwardRefExoticComponent<(Omit<{
4
+ type InputSearchProps = {
4
5
  /** How many milliseconds to wait before trigger the onChange event */
5
- triggerDelay?: number | undefined;
6
- ref?: ForwardedRef<HTMLInputElement> | undefined;
7
- } & import('react').InputHTMLAttributes<HTMLInputElement> & {
8
- label?: string | undefined;
9
- infoMessage?: string | undefined;
10
- error?: boolean | undefined;
11
- errorMessage?: string | undefined;
12
- multiline?: false | undefined;
13
- leftIcon?: import('react').ReactNode;
14
- rightIcon?: import('react').ReactNode;
15
- type?: ("number" | "url" | "file" | "color" | "search" | (string & {}) | "button" | "time" | "image" | "text" | "reset" | "tel" | "email" | "date" | "hidden" | "range" | "datetime-local" | "month" | "password" | "week") | undefined;
16
- decimalLength?: number | undefined;
17
- hideCharsCounter?: boolean | undefined;
18
- classNameWrapper?: string | undefined;
19
- classNameLabel?: string | undefined;
20
- classNameInput?: string | undefined;
21
- classNameInfoMessage?: string | undefined;
22
- classNameErrorMessage?: string | undefined;
23
- classNameCharsCounter?: string | undefined;
24
- 'data-testid-wrapper'?: string | undefined;
25
- 'data-testid-label'?: string | undefined;
26
- 'data-testid-input'?: string | undefined;
27
- 'data-testid-infoMessage'?: string | undefined;
28
- 'data-testid-errorMessage'?: string | undefined;
29
- 'data-testid-charsCounter'?: string | undefined;
30
- } & import('react').RefAttributes<HTMLInputElement>, "ref"> | Omit<{
31
- /** How many milliseconds to wait before trigger the onChange event */
32
- triggerDelay?: number | undefined;
33
- ref?: ForwardedRef<HTMLInputElement> | undefined;
34
- } & Omit<import('../Input/Input').SingleInputProps, "multiline"> & {
35
- multiline: true;
36
- minRows?: number | undefined;
37
- maxRows?: number | undefined;
38
- rows?: number | undefined;
39
- } & import('react').RefAttributes<HTMLInputElement>, "ref">) & import('react').RefAttributes<HTMLInputElement>>;
6
+ triggerDelay?: number;
7
+ } & ComponentProps<typeof Input>;
8
+ export declare const InputSearch: ({ classNameWrapper, triggerDelay, value, onChange, ...rest }: InputSearchProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -1,32 +1,34 @@
1
1
  import '../../assets/InputSearch.css';
2
2
  import { jsx as e } from "react/jsx-runtime";
3
- import { forwardRef as p } from "react";
4
- import { c as u } from "../../clsx-DB4S2d7J.js";
5
- import { Icon as f } from "../Icon/Icon.js";
6
- import { Input as l } from "../Input/Input.js";
7
- const h = "_inputSearch_114e1_1", g = {
8
- inputSearch: h
3
+ import { c as m } from "../../clsx-DB4S2d7J.js";
4
+ import { Icon as p } from "../Icon/Icon.js";
5
+ import { Input as u } from "../Input/Input.js";
6
+ const l = "_inputSearch_114e1_1", h = {
7
+ inputSearch: l
8
+ };
9
+ let n;
10
+ const d = ({
11
+ classNameWrapper: r,
12
+ triggerDelay: o = 500,
13
+ value: c,
14
+ onChange: i = () => {
15
+ },
16
+ ...a
17
+ }) => {
18
+ const s = (t) => {
19
+ n && clearTimeout(n), n = setTimeout(() => i(t), o);
20
+ };
21
+ return /* @__PURE__ */ e("div", { className: m(h.inputSearch, r), children: /* @__PURE__ */ e(
22
+ u,
23
+ {
24
+ type: "search",
25
+ ...a,
26
+ leftIcon: /* @__PURE__ */ e(p, { icon: "magnifying-glass" }),
27
+ defaultValue: c,
28
+ onChange: (t) => s(t)
29
+ }
30
+ ) });
9
31
  };
10
- let r;
11
- const _ = p(
12
- ({ classNameWrapper: n, triggerDelay: o = 500, value: c, onChange: i = () => {
13
- }, ...a }, s) => {
14
- const m = (t) => {
15
- r && clearTimeout(r), r = setTimeout(() => i(t), o);
16
- };
17
- return /* @__PURE__ */ e("div", { className: u(g.inputSearch, n), children: /* @__PURE__ */ e(
18
- l,
19
- {
20
- type: "search",
21
- ref: s,
22
- ...a,
23
- leftIcon: /* @__PURE__ */ e(f, { icon: "magnifying-glass" }),
24
- defaultValue: c,
25
- onChange: (t) => m(t)
26
- }
27
- ) });
28
- }
29
- );
30
32
  export {
31
- _ as InputSearch
33
+ d as InputSearch
32
34
  };
@@ -2,19 +2,15 @@ import { StoryObj } from '@storybook/react';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
5
- component: import('react').ForwardRefExoticComponent<(Omit<{
5
+ component: ({ classNameWrapper, triggerDelay, value, onChange, ...rest }: {
6
6
  triggerDelay?: number | undefined;
7
- ref?: import('react').ForwardedRef<HTMLInputElement> | undefined;
8
7
  } & import('react').InputHTMLAttributes<HTMLInputElement> & {
9
8
  label?: string | undefined;
10
9
  infoMessage?: string | undefined;
11
- error?: boolean | undefined;
12
10
  errorMessage?: string | undefined;
13
- multiline?: false | undefined;
14
11
  leftIcon?: import('react').ReactNode;
15
12
  rightIcon?: import('react').ReactNode;
16
- type?: ("number" | "url" | "file" | "color" | "search" | (string & {}) | "button" | "time" | "image" | "text" | "reset" | "tel" | "email" | "date" | "hidden" | "range" | "datetime-local" | "month" | "password" | "week") | undefined;
17
- decimalLength?: number | undefined;
13
+ type?: "search" | "text" | "password" | undefined;
18
14
  hideCharsCounter?: boolean | undefined;
19
15
  classNameWrapper?: string | undefined;
20
16
  classNameLabel?: string | undefined;
@@ -28,15 +24,7 @@ declare const meta: {
28
24
  'data-testid-infoMessage'?: string | undefined;
29
25
  'data-testid-errorMessage'?: string | undefined;
30
26
  'data-testid-charsCounter'?: string | undefined;
31
- } & import('react').RefAttributes<HTMLInputElement>, "ref"> | Omit<{
32
- triggerDelay?: number | undefined;
33
- ref?: import('react').ForwardedRef<HTMLInputElement> | undefined;
34
- } & Omit<import('../Input/Input').SingleInputProps, "multiline"> & {
35
- multiline: true;
36
- minRows?: number | undefined;
37
- maxRows?: number | undefined;
38
- rows?: number | undefined;
39
- } & import('react').RefAttributes<HTMLInputElement>, "ref">) & import('react').RefAttributes<HTMLInputElement>>;
27
+ }) => import("react/jsx-runtime").JSX.Element;
40
28
  tags: string[];
41
29
  parameters: {
42
30
  layout: string;
@@ -4,7 +4,7 @@ declare const meta: {
4
4
  title: string;
5
5
  component: ({ invert, classNames }: import('./LoadingSpinner').LoadingSpinnerProps) => import("react/jsx-runtime").JSX.Element;
6
6
  tags: string[];
7
- decorators: ((Story: import('@storybook/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
7
+ decorators: ((Story: import('@storybook/types').PartialStoryFn<import('@storybook/react').ReactRenderer, {
8
8
  invert?: boolean | undefined;
9
9
  classNames?: string | undefined;
10
10
  }>) => import("react/jsx-runtime").JSX.Element)[];
@@ -17,11 +17,9 @@ type LastBreadcrumbItem = Omit<BreadcrumbItem, 'onClick'> & {
17
17
  };
18
18
  type PageHeaderCommonProps = {
19
19
  /** Title text */
20
- title?: string;
20
+ title: string;
21
21
  /** Subtitle text */
22
22
  subtitle?: string;
23
- /** component to be rendered in the place of title and subtitle */
24
- headerBubble?: ReactNode;
25
23
  /** Back link text
26
24
  * @deprecated Use breadcrumb prop instead.
27
25
  */
@@ -57,8 +55,6 @@ type PageHeaderCommonProps = {
57
55
  'data-testid-title'?: string;
58
56
  /** Id to be applied as `data-testid` on the subtitle element */
59
57
  'data-testid-subtitle'?: string;
60
- /** Id to be applied as `data-testid` on the headerBubble element */
61
- 'data-testid-account-header'?: string;
62
58
  breadcrumb?: never;
63
59
  };
64
60
  type PageHeaderWithBreadcrumb = Omit<PageHeaderCommonProps, 'backLinkText' | 'onBackLinkClick' | 'classNameBackLink' | 'data-testid-backLink' | 'breadcrumb'> & {
@@ -66,5 +62,5 @@ type PageHeaderWithBreadcrumb = Omit<PageHeaderCommonProps, 'backLinkText' | 'on
66
62
  breadcrumb?: [...BreadcrumbItem[], LastBreadcrumbItem];
67
63
  };
68
64
  export type PageHeaderProps = RequireAllOrNone<PageHeaderCommonProps, 'backLinkText' | 'onBackLinkClick'> | PageHeaderWithBreadcrumb;
69
- export declare const PageHeader: ({ title, subtitle, rightChildren, bottomChildren, classNameWrapper, classNameTitle, classNameSubtitle, headerBubble, "data-testid-wrapper": wrapperTestId, "data-testid-title": titleTestId, "data-testid-subtitle": subtitleTestId, "data-testid-account-header": headerBubbleTestId, ...props }: PageHeaderProps) => import("react/jsx-runtime").JSX.Element;
65
+ export declare const PageHeader: ({ title, subtitle, rightChildren, bottomChildren, classNameWrapper, classNameTitle, classNameSubtitle, "data-testid-wrapper": wrapperTestId, "data-testid-title": titleTestId, "data-testid-subtitle": subtitleTestId, ...props }: PageHeaderProps) => import("react/jsx-runtime").JSX.Element;
70
66
  export {};
@@ -1,94 +1,87 @@
1
1
  import '../../assets/PageHeader.css';
2
- import { jsx as e, Fragment as l, jsxs as i } from "react/jsx-runtime";
3
- import { useMemo as H } from "react";
4
- import { c as _ } from "../../clsx-DB4S2d7J.js";
5
- import { Icon as I } from "../Icon/Icon.js";
6
- import { IconButton as T } from "../IconButton/IconButton.js";
7
- const $ = "_title_1loyf_22", q = "_subtitle_1loyf_43", a = {
8
- "u-typography-h1": "_u-typography-h1_1loyf_1",
9
- "u-typography-h2": "_u-typography-h2_1loyf_8",
10
- "u-typography-h3": "_u-typography-h3_1loyf_15",
11
- "u-typography-h4": "_u-typography-h4_1loyf_22",
12
- "page-header__main-left-content": "_page-header__main-left-content_1loyf_22",
13
- title: $,
14
- "u-typography-h5": "_u-typography-h5_1loyf_29",
15
- "u-typography-h6": "_u-typography-h6_1loyf_36",
16
- "u-typography-base": "_u-typography-base_1loyf_43",
17
- subtitle: q,
18
- "u-typography-base--xxl": "_u-typography-base--xxl_1loyf_49",
19
- "u-typography-base--xl": "_u-typography-base--xl_1loyf_53",
20
- "u-typography-base--lg": "_u-typography-base--lg_1loyf_57",
21
- "u-typography-base--sm": "_u-typography-base--sm_1loyf_61",
22
- "u-typography-base--bold": "_u-typography-base--bold_1loyf_65",
23
- "u-typography-base--strikethrough": "_u-typography-base--strikethrough_1loyf_68",
24
- "u-typography-base--underlined": "_u-typography-base--underlined_1loyf_71",
25
- "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1loyf_74",
26
- "page-header": "_page-header_1loyf_22",
27
- "page-header__top-content": "_page-header__top-content_1loyf_87",
28
- "page-header__main-content": "_page-header__main-content_1loyf_90",
29
- "page-header__bottom-content": "_page-header__bottom-content_1loyf_90",
30
- "page-header__breadcrumb": "_page-header__breadcrumb_1loyf_104",
31
- "page-header__breadcrumb__separator": "_page-header__breadcrumb__separator_1loyf_115",
32
- "account-header": "_account-header_1loyf_139",
33
- "account-header--container": "_account-header--container_1loyf_142",
34
- "page-header__main-right-content": "_page-header__main-right-content_1loyf_150",
35
- "account-header-margin": "_account-header-margin_1loyf_159"
36
- }, D = ({
37
- title: n,
38
- subtitle: y,
39
- rightChildren: g,
40
- bottomChildren: h,
41
- classNameWrapper: u,
42
- classNameTitle: f,
43
- classNameSubtitle: k,
44
- headerBubble: r,
45
- "data-testid-wrapper": N,
46
- "data-testid-title": v,
47
- "data-testid-subtitle": x,
48
- "data-testid-account-header": C,
49
- ...L
2
+ import { jsx as a, jsxs as h } from "react/jsx-runtime";
3
+ import { useMemo as L } from "react";
4
+ import { c as n } from "../../clsx-DB4S2d7J.js";
5
+ import { Icon as B } from "../Icon/Icon.js";
6
+ import { IconButton as C } from "../IconButton/IconButton.js";
7
+ const j = "_title_z7ezb_22", w = "_subtitle_z7ezb_43", e = {
8
+ "u-typography-h1": "_u-typography-h1_z7ezb_1",
9
+ "u-typography-h2": "_u-typography-h2_z7ezb_8",
10
+ "u-typography-h3": "_u-typography-h3_z7ezb_15",
11
+ "u-typography-h4": "_u-typography-h4_z7ezb_22",
12
+ "page-header__main-left-content": "_page-header__main-left-content_z7ezb_22",
13
+ title: j,
14
+ "u-typography-h5": "_u-typography-h5_z7ezb_29",
15
+ "u-typography-h6": "_u-typography-h6_z7ezb_36",
16
+ "u-typography-base": "_u-typography-base_z7ezb_43",
17
+ subtitle: w,
18
+ "u-typography-base--xxl": "_u-typography-base--xxl_z7ezb_48",
19
+ "u-typography-base--xl": "_u-typography-base--xl_z7ezb_52",
20
+ "u-typography-base--lg": "_u-typography-base--lg_z7ezb_56",
21
+ "u-typography-base--sm": "_u-typography-base--sm_z7ezb_60",
22
+ "u-typography-base--bold": "_u-typography-base--bold_z7ezb_64",
23
+ "u-typography-base--strikethrough": "_u-typography-base--strikethrough_z7ezb_67",
24
+ "u-typography-base--underlined": "_u-typography-base--underlined_z7ezb_70",
25
+ "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_z7ezb_73",
26
+ "page-header": "_page-header_z7ezb_22",
27
+ "page-header__top-content": "_page-header__top-content_z7ezb_86",
28
+ "page-header__main-content": "_page-header__main-content_z7ezb_89",
29
+ "page-header__bottom-content": "_page-header__bottom-content_z7ezb_89",
30
+ "page-header__breadcrumb": "_page-header__breadcrumb_z7ezb_103",
31
+ "page-header__breadcrumb__separator": "_page-header__breadcrumb__separator_z7ezb_108",
32
+ "page-header__main-right-content": "_page-header__main-right-content_z7ezb_131"
33
+ }, P = ({
34
+ title: l,
35
+ subtitle: g,
36
+ rightChildren: d,
37
+ bottomChildren: b,
38
+ classNameWrapper: y,
39
+ classNameTitle: u,
40
+ classNameSubtitle: z,
41
+ "data-testid-wrapper": m,
42
+ "data-testid-title": k,
43
+ "data-testid-subtitle": N,
44
+ ...f
50
45
  }) => {
51
46
  const {
52
- breadcrumb: s,
47
+ breadcrumb: r,
53
48
  backLinkText: p,
54
- onBackLinkClick: c,
55
- classNameBackLink: m,
56
- "data-testid-backLink": b,
57
- ...w
58
- } = L;
59
- r && (n || y || h) && console.error("headerBubble prop can not be used with title, subtitle or bottomChildren"), !r && !n && console.error("title prop is required when not using headerBubble");
60
- const j = r ? _([a["page-header"], u, a["account-header-margin"]]) : _([a["page-header"], u]), B = H(() => {
61
- const o = [];
62
- return p && c && o.push({
49
+ onBackLinkClick: s,
50
+ classNameBackLink: c,
51
+ "data-testid-backLink": i,
52
+ ...x
53
+ } = f, v = L(() => {
54
+ const _ = [];
55
+ return p && s && _.push({
63
56
  label: p,
64
- className: m,
65
- "data-testid": b,
66
- onClick: c
67
- }), s && o.push(...s), /* @__PURE__ */ e("div", { className: a["page-header__top-content"], children: /* @__PURE__ */ e("div", { className: a["page-header__breadcrumb"], children: o.map((t, d) => /* @__PURE__ */ e(
68
- T,
57
+ className: c,
58
+ "data-testid": i,
59
+ onClick: s
60
+ }), r && _.push(...r), /* @__PURE__ */ a("div", { className: e["page-header__top-content"], children: /* @__PURE__ */ a("div", { className: e["page-header__breadcrumb"], children: _.map((t, o) => /* @__PURE__ */ a(
61
+ C,
69
62
  {
70
- icon: d === 0 ? /* @__PURE__ */ e(I, { icon: "house-blank" }) : /* @__PURE__ */ e("span", { className: a["page-header__breadcrumb__separator"], children: "/" }),
63
+ icon: o === 0 ? /* @__PURE__ */ a(B, { icon: "arrow-left" }) : /* @__PURE__ */ a("span", { className: e["page-header__breadcrumb__separator"], children: "/" }),
71
64
  onClick: () => t.onClick && t.onClick(),
72
65
  className: t.className,
73
66
  "data-testid": t["data-testid"],
74
- disabled: o.length === 1 ? !1 : d === o.length - 1,
67
+ disabled: _.length === 1 ? !1 : o === _.length - 1,
75
68
  children: t.label
76
69
  },
77
- `${t.label}_${d}`
70
+ `${t.label}_${o}`
78
71
  )) }) });
79
- }, [s, p, m, b, c]);
80
- return /* @__PURE__ */ e(l, { children: /* @__PURE__ */ i("div", { className: j, "data-testid": N, ...w, children: [
81
- B,
82
- /* @__PURE__ */ i("div", { className: a["page-header__main-content"], children: [
83
- /* @__PURE__ */ e("div", { className: a["page-header__main-left-content"], children: r ? /* @__PURE__ */ e(l, { children: /* @__PURE__ */ e("div", { className: a["account-header"], children: /* @__PURE__ */ e("div", { className: a["account-header--container"], "data-testid": C, children: r }) }) }) : /* @__PURE__ */ i(l, { children: [
84
- /* @__PURE__ */ e("h1", { className: _(a.title, f), "data-testid": v, children: n }),
85
- /* @__PURE__ */ e("h2", { className: _(a.subtitle, k), "data-testid": x, children: y })
86
- ] }) }),
87
- g && /* @__PURE__ */ e("div", { className: a["page-header__main-right-content"], children: g })
72
+ }, [r, p, c, i, s]);
73
+ return /* @__PURE__ */ h("div", { className: n([e["page-header"], y]), "data-testid": m, ...x, children: [
74
+ v,
75
+ /* @__PURE__ */ h("div", { className: e["page-header__main-content"], children: [
76
+ /* @__PURE__ */ h("div", { className: e["page-header__main-left-content"], children: [
77
+ /* @__PURE__ */ a("h1", { className: n(e.title, u), "data-testid": k, children: l }),
78
+ /* @__PURE__ */ a("h2", { className: n(e.subtitle, z), "data-testid": N, children: g })
79
+ ] }),
80
+ d && /* @__PURE__ */ a("div", { className: e["page-header__main-right-content"], children: d })
88
81
  ] }),
89
- h && /* @__PURE__ */ e("div", { className: a["page-header__bottom-content"], children: h })
90
- ] }) });
82
+ b && /* @__PURE__ */ a("div", { className: e["page-header__bottom-content"], children: b })
83
+ ] });
91
84
  };
92
85
  export {
93
- D as PageHeader
86
+ P as PageHeader
94
87
  };
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
2
2
 
3
3
  declare const meta: {
4
4
  title: string;
5
- component: ({ title, subtitle, rightChildren, bottomChildren, classNameWrapper, classNameTitle, classNameSubtitle, headerBubble, "data-testid-wrapper": wrapperTestId, "data-testid-title": titleTestId, "data-testid-subtitle": subtitleTestId, "data-testid-account-header": headerBubbleTestId, ...props }: import('./PageHeader').PageHeaderProps) => import("react/jsx-runtime").JSX.Element;
5
+ component: ({ title, subtitle, rightChildren, bottomChildren, classNameWrapper, classNameTitle, classNameSubtitle, "data-testid-wrapper": wrapperTestId, "data-testid-title": titleTestId, "data-testid-subtitle": subtitleTestId, ...props }: import('./PageHeader').PageHeaderProps) => import("react/jsx-runtime").JSX.Element;
6
6
  tags: string[];
7
7
  };
8
8
  export default meta;
@@ -12,5 +12,3 @@ export declare const WithBackLink: Story;
12
12
  export declare const WithBreadcrumb: Story;
13
13
  export declare const WithRightChildren: Story;
14
14
  export declare const WithBottomChildren: Story;
15
- export declare const WithHeaderBubble: Story;
16
- export declare const WithLargeHeaderBubble: Story;
@@ -1,5 +1,3 @@
1
- import { UsePaginationProps } from './usePagination';
2
-
3
1
  export type PaginationParams = {
4
2
  /** Total number of items to paginate */
5
3
  totalItems: number;
@@ -55,11 +53,9 @@ export type PaginationProps = {
55
53
  language?: PaginationLanguages;
56
54
  /** Custom translation object to be used for texts. */
57
55
  t?: Partial<PaginationTranslations>;
58
- /** usePagination hook props */
59
- usePaginationProps?: UsePaginationProps;
60
56
  } & PaginationParams & PaginationCommonProps;
61
57
  export declare const paginationDefaultTranslations: {
62
58
  [key in PaginationLanguages]: PaginationTranslations;
63
59
  };
64
- export declare const Pagination: ({ perPageOptions, language, usePaginationProps, ...props }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
60
+ export declare const Pagination: ({ perPageOptions, language, ...props }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
65
61
  export {};