@pismo/marola 0.0.1-alpha.17 → 0.0.1-alpha.18

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 (69) hide show
  1. package/dist/{Button-CSuug0jG.js → Button-2b1peDFT.js} +25 -26
  2. package/dist/{ClickAwayListener-hSFuUJnv.js → ClickAwayListener-BSW-Nd-y.js} +3 -3
  3. package/dist/{Popup-DwaWJ3ye.js → Popup-B6ZSGIEI.js} +12 -13
  4. package/dist/{Portal-CGBQMhI6.js → Portal-DIeBsWdL.js} +2 -2
  5. package/dist/{SelectButton-DWZ2BRaX.js → SelectButton-pciwIWcj.js} +24 -22
  6. package/dist/assets/Pagination.css +1 -1
  7. package/dist/assets/SelectButton.css +1 -1
  8. package/dist/assets/TextDisplay.css +1 -0
  9. package/dist/{combineHooksSlotProps-D8j4htsd.js → combineHooksSlotProps-DVjg9PRh.js} +18 -19
  10. package/dist/components/Button/Button.js +1 -1
  11. package/dist/components/Checkbox/Checkbox.d.ts +15 -0
  12. package/dist/components/Checkbox/Checkbox.stories.d.ts +31 -0
  13. package/dist/components/Chip/Chip.js +1 -1
  14. package/dist/components/Dialog/CloseIconButton.js +1 -1
  15. package/dist/components/Dialog/Dialog.js +15 -16
  16. package/dist/components/Dialog/Dialog.stories.d.ts +3 -3
  17. package/dist/components/Icon/Icon.d.ts +10 -1
  18. package/dist/components/Icon/Icon.js +39 -25
  19. package/dist/components/Icon/Icon.stories.d.ts +16 -0
  20. package/dist/components/IconButton/Icon.stories.d.ts +15 -0
  21. package/dist/components/IconButton/IconButton.d.ts +14 -0
  22. package/dist/components/IconButton/IconButton.js +1 -1
  23. package/dist/components/Input/Input.js +25 -26
  24. package/dist/components/Pagination/Pagination.d.ts +24 -5
  25. package/dist/components/Pagination/Pagination.js +119 -116
  26. package/dist/components/Pagination/Pagination.stories.d.ts +17 -0
  27. package/dist/components/Select/Select.js +137 -138
  28. package/dist/components/Select/SelectButton.js +1 -1
  29. package/dist/components/Skeleton/Skeleton.d.ts +10 -3
  30. package/dist/components/Skeleton/Skeleton.js +12 -15
  31. package/dist/components/Skeleton/Skeleton.stories.d.ts +14 -0
  32. package/dist/components/Skeleton/SkeletonCircle.stories.d.ts +14 -0
  33. package/dist/components/Skeleton/SkeletonTable.stories.d.ts +16 -0
  34. package/dist/components/Snackbar/Snackbar.js +6 -7
  35. package/dist/components/Snackbar/Snackbar.stories.d.ts +3 -3
  36. package/dist/components/SortTooltip/SortTooltip.d.ts +3 -1
  37. package/dist/components/SortTooltip/SortTooltip.js +27 -16
  38. package/dist/components/Stepper/Stepper.d.ts +11 -1
  39. package/dist/components/Stepper/Stepper.stories.d.ts +16 -0
  40. package/dist/components/Table/Table.js +38 -40
  41. package/dist/components/Tabs/Tab.d.ts +5 -0
  42. package/dist/components/Tabs/Tab.js +9 -10
  43. package/dist/components/Tabs/Tab.stories.d.ts +15 -0
  44. package/dist/components/Tabs/TabPanel.d.ts +4 -0
  45. package/dist/components/Tabs/TabPanel.js +13 -14
  46. package/dist/components/Tabs/TabPanel.stories.d.ts +14 -0
  47. package/dist/components/Tabs/Tabs.d.ts +5 -1
  48. package/dist/components/Tabs/Tabs.js +36 -37
  49. package/dist/components/Tabs/Tabs.stories.d.ts +14 -0
  50. package/dist/components/TextDisplay/TextDisplay.d.ts +23 -0
  51. package/dist/components/TextDisplay/TextDisplay.js +37 -0
  52. package/dist/components/TextDisplay/TextDisplay.stories.d.ts +13 -0
  53. package/dist/components/TextDisplay/textDisplay.test.d.ts +1 -0
  54. package/dist/components/Toggle/Toggle.js +7 -8
  55. package/dist/components/Tooltip/Tooltip.d.ts +18 -6
  56. package/dist/components/Tooltip/Tooltip.js +104 -92
  57. package/dist/components/Tooltip/Tooltip.stories.d.ts +33 -0
  58. package/dist/components/Typography/Typography.d.ts +2 -0
  59. package/dist/components/Typography/Typography.js +40 -29
  60. package/dist/components/Typography/Typography.stories.d.ts +1 -0
  61. package/dist/{index-CtPvew6C.js → index-CH45lKw7.js} +310 -287
  62. package/dist/{index-BfeM9yWx.js → index-CjW42-M-.js} +5 -6
  63. package/dist/main.d.ts +1 -0
  64. package/dist/main.js +28 -26
  65. package/dist/{useButton-DSAvAfH_.js → useButton-DNk3wrQp.js} +3 -4
  66. package/dist/{useEventCallback-lXNMsMLa.js → useEventCallback-xTG9piMa.js} +1 -1
  67. package/dist/{useList-C5PBIv2I.js → useList-B0hog_3-.js} +48 -49
  68. package/package.json +1 -1
  69. package/dist/objectWithoutPropertiesLoose-D7Cp0Pg_.js +0 -26
@@ -1,17 +1,24 @@
1
1
  /// <reference types="react" />
2
- type SkeletonProps = {
2
+ export type SkeletonProps = {
3
+ /** CSS styles to be applied on the container element */
3
4
  style?: React.CSSProperties | undefined;
5
+ /** CSS classes to be applied on the container element */
4
6
  className?: string;
7
+ /** Id to be applied as `data-testid` on the container element */
5
8
  'data-testid'?: string;
6
9
  };
7
10
  declare const Skeleton: (props: SkeletonProps) => import("react/jsx-runtime").JSX.Element;
8
- type SkeletonCircleProps = SkeletonProps & {
11
+ export type SkeletonCircleProps = SkeletonProps & {
12
+ /** Size of the circle skeleton */
9
13
  size?: string | number;
10
14
  };
11
15
  declare const SkeletonCircle: ({ size, ...props }: SkeletonCircleProps) => import("react/jsx-runtime").JSX.Element;
12
- type SkeletonTableProps = SkeletonProps & {
16
+ export type SkeletonTableProps = SkeletonProps & {
17
+ /** Number of columns of the table skeleton */
13
18
  columns?: number;
19
+ /** Number of rows of the table skeleton */
14
20
  rows?: number;
21
+ /** Controls if the with of the cells should be automatically defined */
15
22
  autoWidth?: boolean;
16
23
  };
17
24
  declare const SkeletonTable: ({ columns, rows, autoWidth, ...props }: SkeletonTableProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,26 +1,23 @@
1
1
  import '../../assets/Skeleton.css';
2
2
  import { jsx as l, jsxs as w } from "react/jsx-runtime";
3
- import { c as a } from "../../clsx-DB4S2d7J.js";
4
- const N = "_skeleton_1lho5_1", p = "_skeletonLoading_1lho5_1", s = {
3
+ import { c as r } from "../../clsx-DB4S2d7J.js";
4
+ const N = "_skeleton_1lho5_1", b = "_skeletonLoading_1lho5_1", t = {
5
5
  skeleton: N,
6
6
  "skeleton--table-type": "_skeleton--table-type_1lho5_1",
7
- skeletonLoading: p,
7
+ skeletonLoading: b,
8
8
  "skeleton--circle-type": "_skeleton--circle-type_1lho5_15"
9
- }, i = (e) => {
10
- const t = a(s.skeleton, s["skeleton--normal-type"], e.className);
11
- return /* @__PURE__ */ l("div", { style: {}, ...e, className: t });
12
- }, C = ({ size: e = "4rem", ...t }) => {
13
- const n = a(s.skeleton, s["skeleton--circle-type"], t.className);
14
- return /* @__PURE__ */ l("div", { ...t, style: { width: e, height: e }, className: n });
15
- }, h = (e = 30) => `${Math.floor(Math.random() * (100 - e + 1) + e)}%`, $ = ({ columns: e = 5, rows: t = 5, autoWidth: n = !0, ...r }) => {
16
- const k = a(s.skeleton, s["skeleton--table-type"], r.className), c = `${100 / e}%`, d = /* @__PURE__ */ l("tr", { children: new Array(e).fill(null).map((y, o) => /* @__PURE__ */ l("th", { style: { width: c }, children: /* @__PURE__ */ l(i, { style: { width: n ? h(50) : "100%" } }) }, `row-columns-${o}`)) }), m = new Array(t).fill(null).map((y, o) => /* @__PURE__ */ l("tr", { children: new Array(e).fill(null).map((b, _) => /* @__PURE__ */ l("td", { style: { width: c }, children: /* @__PURE__ */ l(i, { style: { width: n ? h() : "100%" } }) }, `row-${o}-cell-${_}`)) }, `row-${o}`));
17
- return /* @__PURE__ */ w("table", { ...r, className: k, children: [
18
- /* @__PURE__ */ l("thead", { children: d }),
9
+ }, i = (e) => /* @__PURE__ */ l("div", { ...e, className: r(t.skeleton, e.className) }), $ = ({ size: e = "4rem", ...s }) => {
10
+ const n = r(t.skeleton, t["skeleton--circle-type"], s.className);
11
+ return /* @__PURE__ */ l("div", { ...s, style: { width: e, height: e }, className: n });
12
+ }, h = (e = 30) => `${Math.floor(Math.random() * (100 - e + 1) + e)}%`, C = ({ columns: e = 5, rows: s = 5, autoWidth: n = !0, ...c }) => {
13
+ const d = r(t.skeleton, t["skeleton--table-type"], c.className), a = `${100 / e}%`, k = /* @__PURE__ */ l("tr", { children: new Array(e).fill(null).map((y, o) => /* @__PURE__ */ l("th", { style: { width: a }, children: /* @__PURE__ */ l(i, { style: { width: n ? h(50) : "100%" } }) }, `row-columns-${o}`)) }), m = new Array(s).fill(null).map((y, o) => /* @__PURE__ */ l("tr", { children: new Array(e).fill(null).map((f, _) => /* @__PURE__ */ l("td", { style: { width: a }, children: /* @__PURE__ */ l(i, { style: { width: n ? h() : "100%" } }) }, `row-${o}-cell-${_}`)) }, `row-${o}`));
14
+ return /* @__PURE__ */ w("table", { ...c, className: d, children: [
15
+ /* @__PURE__ */ l("thead", { children: k }),
19
16
  /* @__PURE__ */ l("tbody", { children: m })
20
17
  ] });
21
18
  };
22
19
  export {
23
20
  i as Skeleton,
24
- C as SkeletonCircle,
25
- $ as SkeletonTable
21
+ $ as SkeletonCircle,
22
+ C as SkeletonTable
26
23
  };
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+
3
+ declare const meta: {
4
+ title: string;
5
+ component: (props: import('./Skeleton').SkeletonProps) => import("react/jsx-runtime").JSX.Element;
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 WithCustomStyles: Story;
@@ -0,0 +1,14 @@
1
+ import { StoryObj } from '@storybook/react';
2
+
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ size, ...props }: import('./Skeleton').SkeletonCircleProps) => import("react/jsx-runtime").JSX.Element;
6
+ tags: string[];
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Circle: Story;
14
+ export declare const WithCustomSize: Story;
@@ -0,0 +1,16 @@
1
+ import { StoryObj } from '@storybook/react';
2
+
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ columns, rows, autoWidth, ...props }: import('./Skeleton').SkeletonTableProps) => import("react/jsx-runtime").JSX.Element;
6
+ tags: string[];
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Table: Story;
14
+ export declare const WithCustomCols: Story;
15
+ export declare const WithCustomRows: Story;
16
+ export declare const WithFixedWidth: Story;
@@ -4,12 +4,11 @@ import * as w from "react";
4
4
  import S, { useState as V, useRef as X } from "react";
5
5
  import { c as N } from "../../clsx-DB4S2d7J.js";
6
6
  import { Icon as K } from "../Icon/Icon.js";
7
- import { a as D, _ as j } from "../../objectWithoutPropertiesLoose-D7Cp0Pg_.js";
8
- import { g as $, a as z, e as H, b as U, P as n, c as J, d as Q } from "../../index-CtPvew6C.js";
7
+ import { g as $, a as z, b as D, f as H, _ as j, c as U, P as n, d as J, e as Q } from "../../index-CH45lKw7.js";
9
8
  import { u as Z } from "../../useTimeout-DxF9kiZL.js";
10
- import { u as I } from "../../useEventCallback-lXNMsMLa.js";
11
- import { C as B } from "../../ClickAwayListener-hSFuUJnv.js";
12
- import { R } from "../../index-BfeM9yWx.js";
9
+ import { u as I } from "../../useEventCallback-xTG9piMa.js";
10
+ import { C as B } from "../../ClickAwayListener-BSW-Nd-y.js";
11
+ import { R } from "../../index-CjW42-M-.js";
13
12
  const W = "Snackbar";
14
13
  function ee(u) {
15
14
  return $(W, u);
@@ -559,7 +558,7 @@ const ae = "_snackbar_13dfh_1", ue = "_bottomToTop_13dfh_1", y = {
559
558
  "snackbar--message": "_snackbar--message_13dfh_38",
560
559
  "snackbar--action": "_snackbar--action_13dfh_46",
561
560
  bottomToTop: ue
562
- }, ve = ({
561
+ }, xe = ({
563
562
  snackbarMessage: u,
564
563
  variant: s,
565
564
  autoHideDuration: a = 5e3,
@@ -619,5 +618,5 @@ const ae = "_snackbar_13dfh_1", ue = "_bottomToTop_13dfh_1", y = {
619
618
  ) });
620
619
  };
621
620
  export {
622
- ve as Snackbar
621
+ xe as Snackbar
623
622
  };
@@ -88,7 +88,7 @@ declare const meta: {
88
88
  is?: string | undefined;
89
89
  "aria-activedescendant"?: string | undefined;
90
90
  "aria-atomic"?: (boolean | "true" | "false") | undefined;
91
- "aria-autocomplete"?: "list" | "none" | "both" | "inline" | undefined;
91
+ "aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
92
92
  "aria-braillelabel"?: string | undefined;
93
93
  "aria-brailleroledescription"?: string | undefined;
94
94
  "aria-busy"?: (boolean | "true" | "false") | undefined;
@@ -103,7 +103,7 @@ declare const meta: {
103
103
  "aria-description"?: string | undefined;
104
104
  "aria-details"?: string | undefined;
105
105
  "aria-disabled"?: (boolean | "true" | "false") | undefined;
106
- "aria-dropeffect"?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
106
+ "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
107
107
  "aria-errormessage"?: string | undefined;
108
108
  "aria-expanded"?: (boolean | "true" | "false") | undefined;
109
109
  "aria-flowto"?: string | undefined;
@@ -125,7 +125,7 @@ declare const meta: {
125
125
  "aria-posinset"?: number | undefined;
126
126
  "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
127
127
  "aria-readonly"?: (boolean | "true" | "false") | undefined;
128
- "aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
128
+ "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
129
129
  "aria-required"?: (boolean | "true" | "false") | undefined;
130
130
  "aria-roledescription"?: string | undefined;
131
131
  "aria-rowcount"?: number | undefined;
@@ -1,3 +1,5 @@
1
+ import { PropsWithChildren } from 'react';
2
+
1
3
  export type SortType = 'ASC' | 'DESC';
2
4
  type SortCommonProps = {
3
5
  className?: string;
@@ -22,5 +24,5 @@ type SortTooltipProps = {
22
24
  export declare const sortTooltipDefaultTranslations: {
23
25
  [key in SortLanguages]: SortTranslationsByKeys;
24
26
  };
25
- declare const SortTooltip: ({ show, onSort, sortType, onClose, t, language, className, ...rest }: SortTooltipProps) => import("react/jsx-runtime").JSX.Element;
27
+ declare const SortTooltip: ({ children, className, language, onClose, onSort, show, sortType, t, ...rest }: PropsWithChildren<SortTooltipProps>) => import("react/jsx-runtime").JSX.Element;
26
28
  export { SortTooltip };
@@ -1,12 +1,12 @@
1
1
  import '../../assets/SortTooltip.css';
2
2
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
3
- import { c as w } from "../../clsx-DB4S2d7J.js";
4
- import { Tooltip as g } from "../Tooltip/Tooltip.js";
3
+ import { c as g } from "../../clsx-DB4S2d7J.js";
4
+ import { Tooltip as H } from "../Tooltip/Tooltip.js";
5
5
  import * as t from "react";
6
- const H = (e) => /* @__PURE__ */ t.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ t.createElement("path", { d: "M4.73768 14.6906C4.35893 15.105 3.64205 15.105 3.26299 14.6906L0.541112 11.6878C0.167987 11.28 0.195487 10.6469 0.602643 10.2731C1.00952 9.89969 1.64233 9.92812 2.01577 10.3348L3.00017 11.4406V2.00094C3.00017 1.44781 3.44799 1 4.00017 1C4.55236 1 5.00017 1.44781 5.00017 2.00094V11.4384L6.01267 10.3325C6.3708 9.94219 7.00236 9.88281 7.4258 10.2708C7.83299 10.6443 7.86018 11.2777 7.48733 11.6855L4.73768 14.6906Z", fill: "#1897F3" }), /* @__PURE__ */ t.createElement("path", { opacity: 0.4, d: "M14.0001 13H12.4141L14.7073 10.7069C14.9934 10.4208 15.0788 9.99098 14.9241 9.61691C14.7693 9.24285 14.4032 9.00004 13.972 9.00004H9.97196C9.44696 9.00004 9.00008 9.44691 9.00008 10C9.00008 10.5532 9.4479 11 10.0001 11H11.586L9.2929 13.2932C9.00677 13.5793 8.92133 14.0091 9.07608 14.3832C9.23083 14.7572 9.59696 15 9.97196 15H13.9438C14.5532 15 15.0001 14.5532 15.0001 14C15.0001 13.4469 14.5532 13 14.0001 13ZM15.3938 6.54066L12.8941 1.53754C12.5554 0.855977 11.4441 0.855977 11.1054 1.53754L8.60633 6.54066C8.35927 7.03785 8.55946 7.64191 9.05352 7.89035C9.54946 8.13791 10.1485 7.93651 10.3951 7.44035L10.6186 6.99066H13.3821L13.6056 7.44035C13.7986 7.82879 14.3547 8.18629 14.9472 7.89035C15.4407 7.64379 15.6407 7.03754 15.3938 6.54066ZM11.4938 5.23129L12.0001 4.20941L12.507 5.2291H11.4938V5.23129Z", fill: "#1897F3" })), u = (e) => /* @__PURE__ */ t.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ t.createElement("path", { d: "M0.512792 11.6594C0.139667 11.2516 0.167167 10.6184 0.574323 10.2447C0.766229 10.0688 1.00839 9.98175 1.24964 9.98175C1.52063 9.98175 1.79026 10.0912 1.98745 10.3064L2.99998 11.4406V2.00094C2.99998 1.44781 3.44779 1 3.99998 1C4.55217 1 4.99998 1.44781 4.99998 2.00094V11.4384L6.01248 10.3325C6.38748 9.92812 7.01873 9.89687 7.42498 10.2719C7.83216 10.6453 7.85935 11.2787 7.48651 11.6866L4.76463 14.6894C4.38588 15.1037 3.66901 15.1037 3.28995 14.6894L0.512792 11.6594Z", fill: "#1897F3" }), /* @__PURE__ */ t.createElement("path", { opacity: 0.4, d: "M10.0002 3H11.5862L9.29303 5.29313C9.00691 5.57925 8.92147 6.00906 9.07622 6.38313C9.23097 6.75719 9.59591 7 9.99997 7H13.9718C14.5533 6.97188 15.0002 6.55313 15.0002 6C15.0002 5.44688 14.5524 5 14.0002 5H12.4143L14.7074 2.70688C14.9935 2.42075 15.079 1.99094 14.9242 1.61688C14.7695 1.24281 14.4033 1 13.9721 1H10.0002C9.44709 1 9.00022 1.44719 9.00022 2C9.00022 2.55281 9.44709 3 10.0002 3ZM15.394 13.5406L12.8943 8.5375C12.5555 7.85594 11.4443 7.85594 11.1055 8.5375L8.60584 13.5406C8.35878 14.0378 8.55897 14.6419 9.05303 14.8903C9.54897 15.1379 10.148 14.9365 10.3946 14.4403L10.6182 13.9906H13.3816L13.6052 14.4403C13.7981 14.8288 14.3542 15.1863 14.9467 14.8903C15.4408 14.6438 15.6408 14.0375 15.394 13.5406ZM11.494 12.2313L12.0002 11.2094L12.5071 12.2291H11.494V12.2313Z", fill: "#1897F3" })), l = {
6
+ const u = (e) => /* @__PURE__ */ t.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ t.createElement("path", { d: "M4.73768 14.6906C4.35893 15.105 3.64205 15.105 3.26299 14.6906L0.541112 11.6878C0.167987 11.28 0.195487 10.6469 0.602643 10.2731C1.00952 9.89969 1.64233 9.92812 2.01577 10.3348L3.00017 11.4406V2.00094C3.00017 1.44781 3.44799 1 4.00017 1C4.55236 1 5.00017 1.44781 5.00017 2.00094V11.4384L6.01267 10.3325C6.3708 9.94219 7.00236 9.88281 7.4258 10.2708C7.83299 10.6443 7.86018 11.2777 7.48733 11.6855L4.73768 14.6906Z", fill: "#1897F3" }), /* @__PURE__ */ t.createElement("path", { opacity: 0.4, d: "M14.0001 13H12.4141L14.7073 10.7069C14.9934 10.4208 15.0788 9.99098 14.9241 9.61691C14.7693 9.24285 14.4032 9.00004 13.972 9.00004H9.97196C9.44696 9.00004 9.00008 9.44691 9.00008 10C9.00008 10.5532 9.4479 11 10.0001 11H11.586L9.2929 13.2932C9.00677 13.5793 8.92133 14.0091 9.07608 14.3832C9.23083 14.7572 9.59696 15 9.97196 15H13.9438C14.5532 15 15.0001 14.5532 15.0001 14C15.0001 13.4469 14.5532 13 14.0001 13ZM15.3938 6.54066L12.8941 1.53754C12.5554 0.855977 11.4441 0.855977 11.1054 1.53754L8.60633 6.54066C8.35927 7.03785 8.55946 7.64191 9.05352 7.89035C9.54946 8.13791 10.1485 7.93651 10.3951 7.44035L10.6186 6.99066H13.3821L13.6056 7.44035C13.7986 7.82879 14.3547 8.18629 14.9472 7.89035C15.4407 7.64379 15.6407 7.03754 15.3938 6.54066ZM11.4938 5.23129L12.0001 4.20941L12.507 5.2291H11.4938V5.23129Z", fill: "#1897F3" })), f = (e) => /* @__PURE__ */ t.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ t.createElement("path", { d: "M0.512792 11.6594C0.139667 11.2516 0.167167 10.6184 0.574323 10.2447C0.766229 10.0688 1.00839 9.98175 1.24964 9.98175C1.52063 9.98175 1.79026 10.0912 1.98745 10.3064L2.99998 11.4406V2.00094C2.99998 1.44781 3.44779 1 3.99998 1C4.55217 1 4.99998 1.44781 4.99998 2.00094V11.4384L6.01248 10.3325C6.38748 9.92812 7.01873 9.89687 7.42498 10.2719C7.83216 10.6453 7.85935 11.2787 7.48651 11.6866L4.76463 14.6894C4.38588 15.1037 3.66901 15.1037 3.28995 14.6894L0.512792 11.6594Z", fill: "#1897F3" }), /* @__PURE__ */ t.createElement("path", { opacity: 0.4, d: "M10.0002 3H11.5862L9.29303 5.29313C9.00691 5.57925 8.92147 6.00906 9.07622 6.38313C9.23097 6.75719 9.59591 7 9.99997 7H13.9718C14.5533 6.97188 15.0002 6.55313 15.0002 6C15.0002 5.44688 14.5524 5 14.0002 5H12.4143L14.7074 2.70688C14.9935 2.42075 15.079 1.99094 14.9242 1.61688C14.7695 1.24281 14.4033 1 13.9721 1H10.0002C9.44709 1 9.00022 1.44719 9.00022 2C9.00022 2.55281 9.44709 3 10.0002 3ZM15.394 13.5406L12.8943 8.5375C12.5555 7.85594 11.4443 7.85594 11.1055 8.5375L8.60584 13.5406C8.35878 14.0378 8.55897 14.6419 9.05303 14.8903C9.54897 15.1379 10.148 14.9365 10.3946 14.4403L10.6182 13.9906H13.3816L13.6052 14.4403C13.7981 14.8288 14.3542 15.1863 14.9467 14.8903C15.4408 14.6438 15.6408 14.0375 15.394 13.5406ZM11.494 12.2313L12.0002 11.2094L12.5071 12.2291H11.494V12.2313Z", fill: "#1897F3" })), l = {
7
7
  "sort-tooltip": "_sort-tooltip_11a3z_1",
8
8
  "button--selected": "_button--selected_11a3z_21"
9
- }, f = {
9
+ }, b = {
10
10
  pt: {
11
11
  asc: "Ascendente",
12
12
  desc: "Descendente"
@@ -15,20 +15,29 @@ const H = (e) => /* @__PURE__ */ t.createElement("svg", { width: 16, height: 16,
15
15
  asc: "Sort ascending",
16
16
  desc: "Sort descending"
17
17
  }
18
- }, x = ({ show: e, onSort: C, sortType: i, onClose: n, t: r, language: a, className: d, ...L }) => {
19
- const p = w(l["sort-tooltip"], d), m = r || f[a || "en"], c = (h) => m[h];
18
+ }, E = ({
19
+ children: e,
20
+ className: r,
21
+ language: a,
22
+ onClose: n,
23
+ onSort: C,
24
+ show: d,
25
+ sortType: i,
26
+ t: p,
27
+ ...L
28
+ }) => {
29
+ const m = g(l["sort-tooltip"], r), h = p || b[a || "en"], c = (w) => h[w];
20
30
  return /* @__PURE__ */ o(
21
- g,
31
+ H,
22
32
  {
23
- className: p,
33
+ className: m,
24
34
  onClose: n,
25
- show: e,
35
+ open: d,
26
36
  theme: "white",
27
37
  padding: "normal",
28
38
  position: "bottom-start",
29
39
  disableHoverListener: !0,
30
- ...L,
31
- children: /* @__PURE__ */ s("ul", { children: [
40
+ title: /* @__PURE__ */ s("ul", { children: [
32
41
  /* @__PURE__ */ o("li", { children: /* @__PURE__ */ s(
33
42
  "button",
34
43
  {
@@ -38,7 +47,7 @@ const H = (e) => /* @__PURE__ */ t.createElement("svg", { width: 16, height: 16,
38
47
  },
39
48
  className: i === "ASC" ? l["button--selected"] : "",
40
49
  children: [
41
- /* @__PURE__ */ o(H, {}),
50
+ /* @__PURE__ */ o(u, {}),
42
51
  c`asc`
43
52
  ]
44
53
  }
@@ -52,16 +61,18 @@ const H = (e) => /* @__PURE__ */ t.createElement("svg", { width: 16, height: 16,
52
61
  },
53
62
  className: i === "DESC" ? l["button--selected"] : "",
54
63
  children: [
55
- /* @__PURE__ */ o(u, {}),
64
+ /* @__PURE__ */ o(f, {}),
56
65
  c`desc`
57
66
  ]
58
67
  }
59
68
  ) })
60
- ] })
69
+ ] }),
70
+ ...L,
71
+ children: e
61
72
  }
62
73
  );
63
74
  };
64
75
  export {
65
- x as SortTooltip,
66
- f as sortTooltipDefaultTranslations
76
+ E as SortTooltip,
77
+ b as sortTooltipDefaultTranslations
67
78
  };
@@ -1,15 +1,25 @@
1
1
  import { ReactNode } from 'react';
2
2
 
3
- type StepperProps = {
3
+ export type StepperProps = {
4
+ /** Array of items to be rendered as steps */
4
5
  steps: Array<ReactNode>;
6
+ /** The current selected step */
5
7
  currentStep: number;
8
+ /** CSS classes to be applied on the container element */
6
9
  className?: string;
10
+ /** CSS classes to be applied on the item element */
7
11
  classNameItem?: string;
12
+ /** CSS classes to be applied on the counter element */
8
13
  classNameCounter?: string;
14
+ /** CSS classes to be applied on the name element */
9
15
  classNameName?: string;
16
+ /** Id to be applied as `data-testid` on the container element */
10
17
  'data-testid'?: string;
18
+ /** Id to be applied as `data-testid` on the item element */
11
19
  'data-testid-item'?: string;
20
+ /** Id to be applied as `data-testid` on the counter element */
12
21
  'data-testid-counter'?: string;
22
+ /** Id to be applied as `data-testid` on the name element */
13
23
  'data-testid-name'?: string;
14
24
  };
15
25
  declare const Stepper: ({ currentStep, steps, classNameItem, classNameCounter, classNameName, ...rest }: StepperProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { StepperProps } from './Stepper';
2
+ import { StoryObj } from '@storybook/react';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: ({ currentStep, steps, classNameItem, classNameCounter, classNameName, ...rest }: StepperProps) => import("react/jsx-runtime").JSX.Element;
7
+ tags: string[];
8
+ parameters: {
9
+ layout: string;
10
+ };
11
+ };
12
+ export default meta;
13
+ type Story = StoryObj<typeof meta>;
14
+ export declare const Simple: Story;
15
+ export declare const WithStepsAsTexts: Story;
16
+ export declare const WithCustomStepNames: Story;
@@ -1,38 +1,38 @@
1
1
  import '../../assets/Table.css';
2
- import { jsxs as b, jsx as r, Fragment as v } from "react/jsx-runtime";
2
+ import { jsxs as x, jsx as r } from "react/jsx-runtime";
3
3
  import * as n from "react";
4
- import { useState as T } from "react";
4
+ import { useState as v } from "react";
5
5
  import { c as h } from "../../clsx-DB4S2d7J.js";
6
- import { paginationDefaultTranslations as w, Pagination as u } from "../Pagination/Pagination.js";
7
- import { sortTooltipDefaultTranslations as x, SortTooltip as g } from "../SortTooltip/SortTooltip.js";
8
- import { TableProvider as N, useTable as C } from "./TableContext.js";
9
- const L = (l) => /* @__PURE__ */ n.createElement("svg", { width: 7, height: 10, viewBox: "0 0 7 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...l }, /* @__PURE__ */ n.createElement("g", { clipPath: "url(#clip0_2291_2457)" }, /* @__PURE__ */ n.createElement("path", { d: "M6.41658 3.93794C6.26731 3.93794 6.11798 3.88301 6.00423 3.77314L3.49991 1.35923L0.995768 3.77271C0.767904 3.99243 0.398763 3.99243 0.170898 3.77271C-0.0569661 3.55298 -0.0569661 3.19702 0.170898 2.97729L3.08756 0.164795C3.31543 -0.0549316 3.68457 -0.0549316 3.91243 0.164795L6.8291 2.97729C7.05697 3.19702 7.05697 3.55298 6.8291 3.77271C6.71553 3.88345 6.56605 3.93794 6.41658 3.93794Z", fill: "#1897F3" }), /* @__PURE__ */ n.createElement("path", { opacity: 0.4, d: "M6.41663 5.38022C6.26737 5.38022 6.11804 5.43516 6.00429 5.54502L3.49997 7.95894L0.99528 5.5437C0.767415 5.32397 0.398275 5.32397 0.17041 5.5437C-0.0574544 5.76343 -0.0574544 6.11938 0.17041 6.33911L3.08708 9.15161C3.31494 9.37134 3.68408 9.37134 3.91195 9.15161L6.82861 6.33911C7.05648 6.11938 7.05648 5.76343 6.82861 5.5437C6.71559 5.43472 6.56611 5.38022 6.41663 5.38022Z", fill: "#1897F3" })), /* @__PURE__ */ n.createElement("defs", null, /* @__PURE__ */ n.createElement("clipPath", { id: "clip0_2291_2457" }, /* @__PURE__ */ n.createElement("rect", { width: 7, height: 10, fill: "white" })))), E = "_table_olvxb_1", y = "_th__wrapper_olvxb_40", P = "_tr_olvxb_58", B = "_td_olvxb_62", t = {
10
- table: E,
6
+ import { paginationDefaultTranslations as m, Pagination as T } from "../Pagination/Pagination.js";
7
+ import { sortTooltipDefaultTranslations as w, SortTooltip as u } from "../SortTooltip/SortTooltip.js";
8
+ import { TableProvider as g, useTable as N } from "./TableContext.js";
9
+ const C = (l) => /* @__PURE__ */ n.createElement("svg", { width: 7, height: 10, viewBox: "0 0 7 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...l }, /* @__PURE__ */ n.createElement("g", { clipPath: "url(#clip0_2291_2457)" }, /* @__PURE__ */ n.createElement("path", { d: "M6.41658 3.93794C6.26731 3.93794 6.11798 3.88301 6.00423 3.77314L3.49991 1.35923L0.995768 3.77271C0.767904 3.99243 0.398763 3.99243 0.170898 3.77271C-0.0569661 3.55298 -0.0569661 3.19702 0.170898 2.97729L3.08756 0.164795C3.31543 -0.0549316 3.68457 -0.0549316 3.91243 0.164795L6.8291 2.97729C7.05697 3.19702 7.05697 3.55298 6.8291 3.77271C6.71553 3.88345 6.56605 3.93794 6.41658 3.93794Z", fill: "#1897F3" }), /* @__PURE__ */ n.createElement("path", { opacity: 0.4, d: "M6.41663 5.38022C6.26737 5.38022 6.11804 5.43516 6.00429 5.54502L3.49997 7.95894L0.99528 5.5437C0.767415 5.32397 0.398275 5.32397 0.17041 5.5437C-0.0574544 5.76343 -0.0574544 6.11938 0.17041 6.33911L3.08708 9.15161C3.31494 9.37134 3.68408 9.37134 3.91195 9.15161L6.82861 6.33911C7.05648 6.11938 7.05648 5.76343 6.82861 5.5437C6.71559 5.43472 6.56611 5.38022 6.41663 5.38022Z", fill: "#1897F3" })), /* @__PURE__ */ n.createElement("defs", null, /* @__PURE__ */ n.createElement("clipPath", { id: "clip0_2291_2457" }, /* @__PURE__ */ n.createElement("rect", { width: 7, height: 10, fill: "white" })))), L = "_table_olvxb_1", E = "_th__wrapper_olvxb_40", y = "_tr_olvxb_58", P = "_td_olvxb_62", t = {
10
+ table: L,
11
11
  "table--full-width": "_table--full-width_olvxb_5",
12
12
  "table--white-theme": "_table--white-theme_olvxb_8",
13
13
  "table--transparent-theme": "_table--transparent-theme_olvxb_11",
14
14
  "cell--left-alignment": "_cell--left-alignment_olvxb_14",
15
15
  "cell--center-alignment": "_cell--center-alignment_olvxb_18",
16
16
  "cell--right-alignment": "_cell--right-alignment_olvxb_22",
17
- th__wrapper: y,
17
+ th__wrapper: E,
18
18
  "th__wrapper--pressed": "_th__wrapper--pressed_olvxb_43",
19
19
  "th__wrapper--clickable": "_th__wrapper--clickable_olvxb_47",
20
20
  "th__sort-icon-container": "_th__sort-icon-container_olvxb_50",
21
21
  "tr__row-or-cell--disabled": "_tr__row-or-cell--disabled_olvxb_58",
22
- tr: P,
23
- td: B,
22
+ tr: y,
23
+ td: P,
24
24
  "tr__row-or-cell--clickable": "_tr__row-or-cell--clickable_olvxb_67",
25
25
  "td__row-or-cell--clickable": "_td__row-or-cell--clickable_olvxb_68",
26
26
  "td__row-or-cell--disabled": "_td__row-or-cell--disabled_olvxb_72",
27
27
  "td-wrapper": "_td-wrapper_olvxb_76"
28
- }, D = {
28
+ }, B = {
29
29
  pt: {
30
- ...w.pt,
31
- ...x.pt
30
+ ...m.pt,
31
+ ...w.pt
32
32
  },
33
33
  en: {
34
- ...w.en,
35
- ...x.en
34
+ ...m.en,
35
+ ...w.en
36
36
  },
37
37
  // example to add a new language translation
38
38
  es: {
@@ -52,19 +52,19 @@ const L = (l) => /* @__PURE__ */ n.createElement("svg", { width: 7, height: 10,
52
52
  paginationProps: o,
53
53
  language: _,
54
54
  translations: c,
55
- ...m
55
+ ...b
56
56
  }) => {
57
57
  const i = h(
58
58
  t.table,
59
59
  a ? t["table--full-width"] : "",
60
60
  t[`table--${e}-theme`],
61
61
  s
62
- ), p = _ && D[_] || c;
63
- return /* @__PURE__ */ b(N, { initialTranslations: p, children: [
64
- /* @__PURE__ */ r("table", { ...m, className: i, children: l }),
65
- o && /* @__PURE__ */ r(u, { ...o, t: p })
62
+ ), p = _ && B[_] || c;
63
+ return /* @__PURE__ */ x(g, { initialTranslations: p, children: [
64
+ /* @__PURE__ */ r("table", { ...b, className: i, children: l }),
65
+ o && /* @__PURE__ */ r(T, { ...o, t: p })
66
66
  ] });
67
- }, F = ({ children: l, ...e }) => /* @__PURE__ */ r("thead", { ...e, children: l }), M = ({ children: l, ...e }) => /* @__PURE__ */ r("tbody", { ...e, children: l }), O = ({ children: l, onClick: e, disabled: a, className: s, ...o }) => {
67
+ }, D = ({ children: l, ...e }) => /* @__PURE__ */ r("thead", { ...e, children: l }), M = ({ children: l, ...e }) => /* @__PURE__ */ r("tbody", { ...e, children: l }), O = ({ children: l, onClick: e, disabled: a, className: s, ...o }) => {
68
68
  const _ = h(
69
69
  t.tr,
70
70
  e && !a ? t["tr__row-or-cell--clickable"] : a ? t["tr__row-or-cell--disabled"] : "",
@@ -88,31 +88,29 @@ const L = (l) => /* @__PURE__ */ n.createElement("svg", { width: 7, height: 10,
88
88
  align: _ = "left",
89
89
  ...c
90
90
  }) => {
91
- const { translations: m } = C(), [i, p] = T(!1), f = h(
91
+ const { translations: b } = N(), [i, p] = v(!1), f = h(
92
92
  t.th__wrapper,
93
93
  i ? t["th__wrapper--pressed"] : "",
94
94
  e ? t["th__wrapper--clickable"] : "",
95
95
  s
96
96
  );
97
- return /* @__PURE__ */ r("th", { ...c, className: t[`cell--${_}-alignment`], children: /* @__PURE__ */ b("span", { className: f, onClick: e && (() => p(!i)), children: [
98
- /* @__PURE__ */ r("span", { children: l }),
99
- e && /* @__PURE__ */ b(v, { children: [
100
- /* @__PURE__ */ r("span", { className: t["th__sort-icon-container"], children: /* @__PURE__ */ r(L, {}) }),
101
- /* @__PURE__ */ r(
102
- g,
103
- {
104
- onClose: () => p(!1),
105
- onSort: e,
106
- show: i,
107
- sortType: a,
108
- className: o,
109
- t: m
110
- }
111
- )
112
- ] })
113
- ] }) });
97
+ return /* @__PURE__ */ r("th", { ...c, className: t[`cell--${_}-alignment`], children: /* @__PURE__ */ r("span", { className: f, onClick: e && (() => p(!i)), children: e ? /* @__PURE__ */ x(
98
+ u,
99
+ {
100
+ onClose: () => p(!1),
101
+ onSort: e,
102
+ show: i,
103
+ sortType: a,
104
+ className: o,
105
+ t: b,
106
+ children: [
107
+ /* @__PURE__ */ r("span", { children: l }),
108
+ /* @__PURE__ */ r("span", { className: t["th__sort-icon-container"], children: /* @__PURE__ */ r(C, {}) })
109
+ ]
110
+ }
111
+ ) : /* @__PURE__ */ r("span", { children: l }) }) });
114
112
  };
115
- d.THead = F;
113
+ d.THead = D;
116
114
  d.TBody = M;
117
115
  d.Tr = O;
118
116
  d.Td = $;
@@ -1,9 +1,14 @@
1
1
  import { ReactNode } from 'react';
2
2
 
3
3
  export interface TabProps {
4
+ /** The value to be showing in the tab */
4
5
  children: ReactNode;
6
+ /** The value that corresponds to the panel to show.
7
+ * e.g. value="1" when this tab is clicked it will show the panel which also has value="1! */
5
8
  value: string | number;
9
+ /** Disable clicking the tab */
6
10
  disabled?: boolean;
11
+ /** data test id */
7
12
  dataTestId?: string;
8
13
  }
9
14
  export declare const Tab: import('react').ForwardRefExoticComponent<TabProps & import('react').RefAttributes<HTMLButtonElement>>;
@@ -3,16 +3,15 @@ import * as b from "react";
3
3
  import { forwardRef as H, useContext as U, useMemo as j } from "react";
4
4
  import { c as k } from "../../clsx-DB4S2d7J.js";
5
5
  import { u as B, T as D, s as y } from "../../Tabs.module-jkH1Qjn7.js";
6
- import { a as d, _ as L } from "../../objectWithoutPropertiesLoose-D7Cp0Pg_.js";
7
- import { g as W, a as $, u as O, e as q, b as z, P as e, c as A, d as G } from "../../index-CtPvew6C.js";
8
- import { u as J, c as K } from "../../combineHooksSlotProps-D8j4htsd.js";
6
+ import { g as L, a as W, u as O, f as $, b as d, _ as q, c as z, P as e, d as A, e as G } from "../../index-CH45lKw7.js";
7
+ import { u as J, c as K } from "../../combineHooksSlotProps-DVjg9PRh.js";
9
8
  import { u as Q, a as X } from "../../useCompoundItem-D1iRfg8D.js";
10
- import { u as Y } from "../../useButton-DSAvAfH_.js";
9
+ import { u as Y } from "../../useButton-DNk3wrQp.js";
11
10
  const E = "Tab";
12
11
  function Z(o) {
13
- return W(E, o);
12
+ return L(E, o);
14
13
  }
15
- $(E, ["root", "selected", "disabled"]);
14
+ W(E, ["root", "selected", "disabled"]);
16
15
  function ee(o) {
17
16
  return o.size;
18
17
  }
@@ -53,7 +52,7 @@ function te(o) {
53
52
  }), _ = O(a, s, u), M = l !== void 0 ? m(l) : void 0;
54
53
  return {
55
54
  getRootProps: (x = {}) => {
56
- const S = q(x), w = K(h, C);
55
+ const S = $(x), w = K(h, C);
57
56
  return d({}, x, w(S), {
58
57
  role: "tab",
59
58
  "aria-controls": M,
@@ -90,7 +89,7 @@ const oe = ["action", "children", "disabled", "onChange", "onClick", "onFocus",
90
89
  slotProps: r = {},
91
90
  slots: f = {},
92
91
  value: p
93
- } = t, m = L(t, oe), P = b.useRef(), l = O(P, s), {
92
+ } = t, m = q(t, oe), P = b.useRef(), l = O(P, s), {
94
93
  active: R,
95
94
  highlighted: g,
96
95
  selected: h,
@@ -164,7 +163,7 @@ process.env.NODE_ENV !== "production" && (F.propTypes = {
164
163
  */
165
164
  value: e.oneOfType([e.number, e.string])
166
165
  });
167
- const pe = H(
166
+ const fe = H(
168
167
  ({ children: o, value: t, disabled: s, dataTestId: n }, c) => {
169
168
  const a = U(D), r = j(
170
169
  () => k(
@@ -178,5 +177,5 @@ const pe = H(
178
177
  }
179
178
  );
180
179
  export {
181
- pe as Tab
180
+ fe as Tab
182
181
  };
@@ -0,0 +1,15 @@
1
+ import { TabProps } from './Tabs.tsx';
2
+ import { StoryObj } from '@storybook/react';
3
+
4
+ declare const meta: {
5
+ title: string;
6
+ component: import('react').ForwardRefExoticComponent<TabProps & import('react').RefAttributes<HTMLButtonElement>>;
7
+ tags: string[];
8
+ parameters: {
9
+ layout: string;
10
+ };
11
+ };
12
+ export default meta;
13
+ type Story = StoryObj<typeof meta>;
14
+ export declare const Simple: Story;
15
+ export declare const Disabled: Story;
@@ -1,8 +1,12 @@
1
1
  import { ReactNode } from 'react';
2
2
 
3
3
  export interface TabPanelProps {
4
+ /** The content to be displayed when the corresponding tab is selected */
4
5
  children: ReactNode;
6
+ /** The value that identifies which tab is selected.
7
+ * e.g. value="1" when the tab button with the value="1" is selected this content will show */
5
8
  value: string | number;
9
+ /** Test id */
6
10
  dataTestId?: string;
7
11
  }
8
12
  export declare const TabPanel: import('react').ForwardRefExoticComponent<TabPanelProps & import('react').RefAttributes<HTMLDivElement>>;