@pismo/marola 1.0.0-beta.49 → 1.0.0-beta.5

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 (147) hide show
  1. package/dist/{Button-BAljjMv3.js → Button-2b1peDFT.js} +2 -2
  2. package/dist/{ClickAwayListener-DbEYZpyh.js → ClickAwayListener-BSW-Nd-y.js} +3 -4
  3. package/dist/Dialog.module-DFEmFdYT.js +30 -0
  4. package/dist/Group-B3p31ftp.js +26 -0
  5. package/dist/{Popup-Ck3XlWMq.js → Popup-B6ZSGIEI.js} +3 -3
  6. package/dist/{Portal-oY3enyAm.js → Portal-DIeBsWdL.js} +2 -2
  7. package/dist/SelectButton-K3OIfR5m.js +61 -0
  8. package/dist/{Tabs.module-BGGTkDc5.js → Tabs.module-jkH1Qjn7.js} +7 -7
  9. package/dist/Toggle-BCgIItCc.js +142 -0
  10. package/dist/assets/Advice.css +1 -1
  11. package/dist/assets/Button.css +1 -1
  12. package/dist/assets/Checkbox.css +1 -1
  13. package/dist/assets/Dialog.css +1 -1
  14. package/dist/assets/EllipsisTooltip.css +1 -1
  15. package/dist/assets/Group.css +1 -1
  16. package/dist/assets/IconButton.css +1 -1
  17. package/dist/assets/Input.css +1 -1
  18. package/dist/assets/PageHeader.css +1 -1
  19. package/dist/assets/Pagination.css +1 -1
  20. package/dist/assets/SelectButton.css +1 -1
  21. package/dist/assets/Skeleton.css +1 -1
  22. package/dist/assets/Snackbar.css +1 -1
  23. package/dist/assets/SortTooltip.css +1 -1
  24. package/dist/assets/Stepper.css +1 -1
  25. package/dist/assets/Table.css +1 -1
  26. package/dist/assets/Tabs.css +1 -1
  27. package/dist/assets/TextDisplay.css +1 -1
  28. package/dist/assets/Toggle.css +1 -1
  29. package/dist/assets/Toggle2.css +1 -1
  30. package/dist/assets/Typography.css +1 -1
  31. package/dist/{combineHooksSlotProps-C-zYvfnF.js → combineHooksSlotProps-DVjg9PRh.js} +1 -1
  32. package/dist/components/Advice/Advice.d.ts +17 -32
  33. package/dist/components/Advice/Advice.js +40 -39
  34. package/dist/components/Advice/Advice.stories.d.ts +3 -4
  35. package/dist/components/Button/Button.d.ts +0 -2
  36. package/dist/components/Button/Button.js +49 -51
  37. package/dist/components/Checkbox/Checkbox.js +52 -52
  38. package/dist/components/Chip/Chip.d.ts +12 -6
  39. package/dist/components/Chip/Chip.js +6 -9
  40. package/dist/components/Chip/Chip.stories.d.ts +14 -5
  41. package/dist/components/Dialog/Actions.js +1 -1
  42. package/dist/components/Dialog/Backdrop.d.ts +3 -3
  43. package/dist/components/Dialog/Backdrop.js +7 -8
  44. package/dist/components/Dialog/CloseIconButton.d.ts +2 -1
  45. package/dist/components/Dialog/CloseIconButton.js +18 -15
  46. package/dist/components/Dialog/Dialog.d.ts +6 -9
  47. package/dist/components/Dialog/Dialog.js +139 -139
  48. package/dist/components/Dialog/Dialog.stories.d.ts +46 -50
  49. package/dist/components/Dialog/DialogTitle.js +1 -1
  50. package/dist/components/EllipsisTooltip/EllipsisTooltip.js +17 -30
  51. package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -2
  52. package/dist/components/Icon/Icon.js +52 -177
  53. package/dist/components/Icon/types.d.ts +1 -1
  54. package/dist/components/IconButton/IconButton.js +42 -42
  55. package/dist/components/Input/Input.d.ts +5 -24
  56. package/dist/components/Input/Input.js +292 -301
  57. package/dist/components/Input/Input.stories.d.ts +21 -2
  58. package/dist/components/InputSearch/InputSearch.stories.d.ts +21 -1
  59. package/dist/components/PageHeader/PageHeader.js +57 -57
  60. package/dist/components/Pagination/Pagination.d.ts +1 -5
  61. package/dist/components/Pagination/Pagination.js +185 -87
  62. package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
  63. package/dist/components/Select/Select.d.ts +0 -21
  64. package/dist/components/Select/Select.js +413 -476
  65. package/dist/components/Select/SelectButton.d.ts +0 -2
  66. package/dist/components/Select/SelectButton.js +2 -3
  67. package/dist/components/Skeleton/Skeleton.d.ts +1 -3
  68. package/dist/components/Skeleton/Skeleton.js +14 -20
  69. package/dist/components/Skeleton/SkeletonTable.stories.d.ts +1 -1
  70. package/dist/components/Snackbar/Snackbar.js +94 -94
  71. package/dist/components/Snackbar/Snackbar.stories.d.ts +3 -3
  72. package/dist/components/SortTooltip/SortTooltip.js +46 -46
  73. package/dist/components/Stepper/Stepper.js +35 -35
  74. package/dist/components/Table/Table.d.ts +1 -3
  75. package/dist/components/Table/Table.js +99 -87
  76. package/dist/components/Table/Table.stories.d.ts +1 -1
  77. package/dist/components/Tabs/Tab.d.ts +3 -5
  78. package/dist/components/Tabs/Tab.js +36 -38
  79. package/dist/components/Tabs/TabPanel.d.ts +2 -4
  80. package/dist/components/Tabs/TabPanel.js +40 -51
  81. package/dist/components/Tabs/Tabs.d.ts +4 -6
  82. package/dist/components/Tabs/Tabs.js +128 -131
  83. package/dist/components/TextDisplay/TextDisplay.d.ts +3 -9
  84. package/dist/components/TextDisplay/TextDisplay.js +31 -45
  85. package/dist/components/TextDisplay/TextDisplay.stories.d.ts +1 -2
  86. package/dist/components/Toggle/Toggle.js +56 -56
  87. package/dist/components/ToggleGroup/Group.d.ts +0 -2
  88. package/dist/components/ToggleGroup/Group.js +2 -4
  89. package/dist/components/ToggleGroup/Toggle.d.ts +0 -2
  90. package/dist/components/ToggleGroup/Toggle.js +5 -7
  91. package/dist/components/ToggleGroup/ToggleGroup.js +2 -2
  92. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +0 -2
  93. package/dist/components/Tooltip/Tooltip.d.ts +1 -3
  94. package/dist/components/Tooltip/Tooltip.js +4 -4
  95. package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -1
  96. package/dist/components/Typography/Typography.js +47 -47
  97. package/dist/{useSlotProps-C_I1kEHr.js → index-CH45lKw7.js} +99 -99
  98. package/dist/{index-bQFToy-I.js → index-CjW42-M-.js} +1 -1
  99. package/dist/main.d.ts +0 -6
  100. package/dist/main.js +76 -87
  101. package/dist/{useButton-DcihopJG.js → useButton-DNk3wrQp.js} +1 -1
  102. package/dist/useCompoundItem-D1iRfg8D.js +84 -0
  103. package/dist/useEventCallback-xTG9piMa.js +45 -0
  104. package/dist/{useList-B9C55YB7.js → useList-B0hog_3-.js} +2 -2
  105. package/package.json +12 -21
  106. package/dist/Dialog.module-D9e4RsKo.js +0 -30
  107. package/dist/Group-DspH8hyO.js +0 -30
  108. package/dist/Popover.module-B4boCutS.js +0 -10
  109. package/dist/SelectButton-B38avP9u.js +0 -75
  110. package/dist/Toggle-BbmXeuJd.js +0 -188
  111. package/dist/assets/Adornment.css +0 -1
  112. package/dist/assets/Autocomplete.css +0 -1
  113. package/dist/assets/Popover.css +0 -1
  114. package/dist/assets/ResultWithChips.css +0 -1
  115. package/dist/assets/StepperNavigator.css +0 -1
  116. package/dist/components/Adornment/Adornment.d.ts +0 -20
  117. package/dist/components/Adornment/Adornment.js +0 -13
  118. package/dist/components/Adornment/Adornment.stories.d.ts +0 -14
  119. package/dist/components/Adornment/adornment.test.d.ts +0 -1
  120. package/dist/components/Autocomplete/Autocomplete.d.ts +0 -20
  121. package/dist/components/Autocomplete/Autocomplete.js +0 -679
  122. package/dist/components/Autocomplete/Autocomplete.stories.d.ts +0 -23
  123. package/dist/components/Pagination/usePagination.d.ts +0 -90
  124. package/dist/components/Pagination/usePagination.js +0 -79
  125. package/dist/components/Popover/Popover.d.ts +0 -32
  126. package/dist/components/Popover/Popover.js +0 -24
  127. package/dist/components/Popover/Popover.stories.d.ts +0 -34
  128. package/dist/components/Popover/PopoverBody.d.ts +0 -6
  129. package/dist/components/Popover/PopoverBody.js +0 -6
  130. package/dist/components/Popover/PopoverFooter.d.ts +0 -6
  131. package/dist/components/Popover/PopoverFooter.js +0 -6
  132. package/dist/components/Popover/PopoverHeader.d.ts +0 -6
  133. package/dist/components/Popover/PopoverHeader.js +0 -6
  134. package/dist/components/ResultWithChips/ResultWithChips.d.ts +0 -12
  135. package/dist/components/ResultWithChips/ResultWithChips.js +0 -33
  136. package/dist/components/RowItem/RowItem.d.ts +0 -25
  137. package/dist/components/RowItem/RowItem.js +0 -21
  138. package/dist/components/RowItem/RowItem.stories.d.ts +0 -17
  139. package/dist/components/RowItem/rowItem.test.d.ts +0 -1
  140. package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -58
  141. package/dist/components/StepperNavigator/StepperNavigator.js +0 -115
  142. package/dist/components/StepperNavigator/StepperNavigator.stories.d.ts +0 -18
  143. package/dist/components/StepperNavigator/StepperNavigator.test.d.ts +0 -1
  144. package/dist/ownerDocument-YGhwAnr1.js +0 -33
  145. package/dist/useCompoundItem-B7Eo_qZk.js +0 -68
  146. package/dist/useEventCallback-BAQJJ3ye.js +0 -14
  147. package/dist/useId-BW-oWmul.js +0 -19
@@ -2,4 +2,4 @@
2
2
  * This file is automatically generated. Any changes will be lost.
3
3
  * run "yarn generate-icon-types" or "yarn build" to regenerate it.
4
4
  */
5
- export type IconName = 'arrow-down-arrow-up' | 'arrow-down-z-a' | 'arrow-left' | 'arrows-rotate' | 'badge-check' | 'bell' | 'building-columns' | 'calendar-days' | 'check-double' | 'chevron-down' | 'chevron-up' | 'circle-arrow-right' | 'circle-check' | 'circle-exclamation' | 'circle-info' | 'circle-xmark' | 'coins' | 'empty-set' | 'eye-slash' | 'eye' | 'filter-list' | 'folder-magnifying-glass' | 'grid-horizontal' | 'house-blank' | 'list' | 'loader' | 'lock-keyhole' | 'magnifying-glass' | 'money-bill-trend-up' | 'money-bills' | 'paste' | 'pen-to-square' | 'piggy-bank' | 'rectangle-history' | 'trash-can' | 'trash' | 'upload' | 'user-group' | 'user' | 'wallet' | 'warehouse-full' | 'xmark' | 'logo';
5
+ export type IconName = 'arrow-down-arrow-up' | 'arrow-left' | 'calendar-days' | 'chevron-down' | 'chevron-up' | 'circle-arrow-right' | 'circle-check' | 'circle-exclamation' | 'circle-xmark' | 'eye-slash' | 'folder-magnifying-glass' | 'lock-keyhole' | 'magnifying-glass' | 'money-bill-trend-up' | 'pen-to-square' | 'piggy-bank' | 'rectangle-history' | 'trash' | 'user-group' | 'warehouse-full' | 'xmark' | 'logo';
@@ -1,58 +1,58 @@
1
1
  import '../../assets/IconButton.css';
2
- import { jsx as r, jsxs as c } from "react/jsx-runtime";
3
- import { forwardRef as d, useMemo as l } from "react";
4
- import { c as j } from "../../clsx-DB4S2d7J.js";
5
- import { LoadingSpinner as m } from "../LoadingSpinner/LoadingSpinner.js";
6
- import { B as x } from "../../Button-BAljjMv3.js";
2
+ import { jsx as a, jsxs as c } from "react/jsx-runtime";
3
+ import { forwardRef as x, useMemo as d } from "react";
4
+ import { c as l } from "../../clsx-DB4S2d7J.js";
5
+ import { LoadingSpinner as j } from "../LoadingSpinner/LoadingSpinner.js";
6
+ import { B as m } from "../../Button-2b1peDFT.js";
7
7
  const o = {
8
- "u-typography-h1": "_u-typography-h1_gt5j9_1",
9
- "u-typography-h2": "_u-typography-h2_gt5j9_8",
10
- "u-typography-h3": "_u-typography-h3_gt5j9_15",
11
- "u-typography-h4": "_u-typography-h4_gt5j9_22",
12
- "u-typography-h5": "_u-typography-h5_gt5j9_29",
13
- "u-typography-h6": "_u-typography-h6_gt5j9_36",
14
- "u-typography-base": "_u-typography-base_gt5j9_43",
15
- "icon-button": "_icon-button_gt5j9_43",
16
- "u-typography-base--xxl": "_u-typography-base--xxl_gt5j9_49",
17
- "u-typography-base--xl": "_u-typography-base--xl_gt5j9_53",
18
- "u-typography-base--lg": "_u-typography-base--lg_gt5j9_57",
19
- "u-typography-base--sm": "_u-typography-base--sm_gt5j9_61",
20
- "u-typography-base--bold": "_u-typography-base--bold_gt5j9_65",
21
- "u-typography-base--strikethrough": "_u-typography-base--strikethrough_gt5j9_68",
22
- "u-typography-base--underlined": "_u-typography-base--underlined_gt5j9_71",
23
- "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_gt5j9_74",
24
- "icon-button--primary": "_icon-button--primary_gt5j9_87",
25
- "icon-button--square": "_icon-button--square_gt5j9_109",
26
- "icon-button__container": "_icon-button__container_gt5j9_125"
27
- }, B = d((p, y) => {
8
+ "u-typography-h1": "_u-typography-h1_1xyj5_1",
9
+ "u-typography-h2": "_u-typography-h2_1xyj5_8",
10
+ "u-typography-h3": "_u-typography-h3_1xyj5_15",
11
+ "u-typography-h4": "_u-typography-h4_1xyj5_22",
12
+ "u-typography-h5": "_u-typography-h5_1xyj5_29",
13
+ "u-typography-h6": "_u-typography-h6_1xyj5_36",
14
+ "u-typography-base": "_u-typography-base_1xyj5_43",
15
+ "icon-button": "_icon-button_1xyj5_43",
16
+ "u-typography-base--xxl": "_u-typography-base--xxl_1xyj5_48",
17
+ "u-typography-base--xl": "_u-typography-base--xl_1xyj5_52",
18
+ "u-typography-base--lg": "_u-typography-base--lg_1xyj5_56",
19
+ "u-typography-base--sm": "_u-typography-base--sm_1xyj5_60",
20
+ "u-typography-base--bold": "_u-typography-base--bold_1xyj5_64",
21
+ "u-typography-base--strikethrough": "_u-typography-base--strikethrough_1xyj5_67",
22
+ "u-typography-base--underlined": "_u-typography-base--underlined_1xyj5_70",
23
+ "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1xyj5_73",
24
+ "icon-button--primary": "_icon-button--primary_1xyj5_86",
25
+ "icon-button--square": "_icon-button--square_1xyj5_108",
26
+ "icon-button__container": "_icon-button__container_1xyj5_124"
27
+ }, B = x((r, p) => {
28
28
  const {
29
29
  onClick: _,
30
30
  icon: e,
31
31
  link: u,
32
- loading: g,
33
- children: n,
34
- type: h = "button",
35
- disabled: s,
36
- className: a,
32
+ loading: n,
33
+ children: h,
34
+ type: s = "button",
35
+ disabled: i,
36
+ className: y,
37
37
  variant: t = "primary",
38
- "data-testid": i
39
- } = p, b = l(
40
- () => j([o["icon-button"], o[`icon-button--${t}`], a]),
41
- [a, t]
38
+ "data-testid": g
39
+ } = r, b = d(
40
+ () => l([o["icon-button"], o[`icon-button--${t}`], y]),
41
+ [y, t]
42
42
  );
43
- return /* @__PURE__ */ r(
44
- x,
43
+ return /* @__PURE__ */ a(
44
+ m,
45
45
  {
46
- type: h,
46
+ type: s,
47
47
  href: u,
48
48
  onClick: _,
49
- disabled: s,
49
+ disabled: i,
50
50
  className: b,
51
- ref: y,
52
- "data-testid": i,
51
+ ref: p,
52
+ "data-testid": g,
53
53
  children: /* @__PURE__ */ c("div", { className: o["icon-button__container"], children: [
54
- g ? /* @__PURE__ */ r(m, { invert: !0 }) : e,
55
- t !== "square" && n
54
+ n ? /* @__PURE__ */ a(j, { invert: !0 }) : e,
55
+ t !== "square" && h
56
56
  ] })
57
57
  }
58
58
  );
@@ -1,24 +1,18 @@
1
- import { HTMLInputTypeAttribute, InputHTMLAttributes, ReactNode } from 'react';
1
+ import { InputHTMLAttributes, ReactNode } from 'react';
2
2
 
3
- type ExcludedInputTypes = 'checkbox' | 'radio' | 'submit';
4
- type CustomInputTypeAttribute = Exclude<HTMLInputTypeAttribute, ExcludedInputTypes>;
5
- export type SingleInputProps = InputHTMLAttributes<HTMLInputElement> & {
3
+ type InputProps = InputHTMLAttributes<HTMLInputElement> & {
6
4
  /** Label text */
7
5
  label?: string;
8
6
  /** Info message text */
9
7
  infoMessage?: string;
10
- /** Show the field layout as an error */
11
- error?: boolean;
12
- /** Error message text, if has "errorMessage", the "error" props will be "true" */
8
+ /** Error message text */
13
9
  errorMessage?: string;
14
- /** If "true", a "textarea" element is rendered. */
15
- multiline?: false;
16
10
  /** Left icon element */
17
11
  leftIcon?: ReactNode;
18
12
  /** Right icon element */
19
13
  rightIcon?: ReactNode;
20
14
  /** Input type. Default: text */
21
- type?: CustomInputTypeAttribute;
15
+ type?: 'text' | 'password' | 'search';
22
16
  /** Hide the chars counter */
23
17
  hideCharsCounter?: boolean;
24
18
  /** CSS classes to be applied on the container element */
@@ -46,18 +40,5 @@ export type SingleInputProps = InputHTMLAttributes<HTMLInputElement> & {
46
40
  /** Id to be applied as `data-testid` on the chars counter element */
47
41
  'data-testid-charsCounter'?: string;
48
42
  };
49
- type MultilineInputProps = Omit<SingleInputProps, 'multiline'> & {
50
- /** If "true", a "textarea" element is rendered. */
51
- multiline: true;
52
- /** Minimum number of rows to display when multiline option is set to true. */
53
- minRows?: number;
54
- /** Maximum number of rows to display when multiline option is set to true. */
55
- maxRows?: number;
56
- /** Number of rows to display when multiline option is set to true.
57
- * The prop defaults to the value (5)
58
- */
59
- rows?: number;
60
- };
61
- export type InputProps = SingleInputProps | MultilineInputProps;
62
- export declare const Input: import('react').ForwardRefExoticComponent<InputProps & import('react').RefAttributes<HTMLInputElement>>;
43
+ export declare const Input: ({ label, infoMessage, errorMessage, leftIcon, rightIcon, id, disabled, type, maxLength, hideCharsCounter, onChange, classNameWrapper, classNameLabel, classNameInput, classNameInfoMessage, classNameErrorMessage, classNameCharsCounter, "data-testid-wrapper": testIdWrapper, "data-testid-label": testIdLabel, "data-testid-input": testIdInput, "data-testid-infoMessage": testIdInfoMessage, "data-testid-errorMessage": testIdErrorMessage, "data-testid-charsCounter": testIdCharsCounter, ...rest }: InputProps) => import("react/jsx-runtime").JSX.Element;
63
44
  export {};