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

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 (59) hide show
  1. package/dist/{Button-B1umG8kJ.js → Button-CSuug0jG.js} +2 -2
  2. package/dist/{ClickAwayListener-HI1G6ob9.js → ClickAwayListener-hSFuUJnv.js} +3 -3
  3. package/dist/{Popup-DFJQc_jn.js → Popup-DwaWJ3ye.js} +3 -3
  4. package/dist/{Portal-D__zvwbZ.js → Portal-CGBQMhI6.js} +2 -2
  5. package/dist/SelectButton-DWZ2BRaX.js +44 -0
  6. package/dist/assets/Chip.css +1 -1
  7. package/dist/assets/Input.css +1 -1
  8. package/dist/assets/InputSearch.css +1 -1
  9. package/dist/assets/PageHeader.css +1 -1
  10. package/dist/assets/SelectButton.css +1 -1
  11. package/dist/{combineHooksSlotProps-BHqhiBfc.js → combineHooksSlotProps-D8j4htsd.js} +1 -1
  12. package/dist/components/Button/Button.js +1 -1
  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 +4 -4
  16. package/dist/components/IconButton/IconButton.js +1 -1
  17. package/dist/components/Input/Input.js +51 -51
  18. package/dist/components/InputSearch/InputSearch.js +7 -7
  19. package/dist/components/PageHeader/PageHeader.js +23 -23
  20. package/dist/components/Select/Select.d.ts +9 -8
  21. package/dist/components/Select/Select.js +158 -160
  22. package/dist/components/Select/Select.stories.d.ts +10 -19
  23. package/dist/components/Select/SelectButton.d.ts +3 -4
  24. package/dist/components/Select/SelectButton.js +2 -2
  25. package/dist/components/Snackbar/Snackbar.js +4 -4
  26. package/dist/components/Tabs/Tab.js +3 -3
  27. package/dist/components/Tabs/TabPanel.js +1 -1
  28. package/dist/components/Tabs/Tabs.js +3 -3
  29. package/dist/components/Toggle/Toggle.js +1 -1
  30. package/dist/components/Tooltip/Tooltip.js +3 -3
  31. package/dist/{index-BJ8HbRCy.js → index-BfeM9yWx.js} +1 -1
  32. package/dist/{index-CqjC7P5Y.js → index-CtPvew6C.js} +88 -85
  33. package/dist/main.d.ts +4 -1
  34. package/dist/main.js +19 -19
  35. package/dist/marola.css +1 -0
  36. package/dist/{useButton-Bc8IAgyk.js → useButton-DSAvAfH_.js} +1 -1
  37. package/dist/{useEventCallback-vAfOD-oT.js → useEventCallback-lXNMsMLa.js} +1 -1
  38. package/dist/{useList-ByMguSS_.js → useList-C5PBIv2I.js} +2 -2
  39. package/package.json +2 -2
  40. package/dist/SelectButton-DWtqAiwt.js +0 -45
  41. package/dist/_commonjsHelpers-CT_km90n.js +0 -30
  42. package/dist/components/Advice/Advice.stories.js +0 -48
  43. package/dist/components/Button/Button.stories.js +0 -40
  44. package/dist/components/Chip/Chip.stories.js +0 -59
  45. package/dist/components/Chip/chip.test.js +0 -17303
  46. package/dist/components/Dialog/Dialog.stories.js +0 -59
  47. package/dist/components/Input/Input.stories.js +0 -106
  48. package/dist/components/InputSearch/InputSearch.stories.js +0 -73
  49. package/dist/components/LoadingSpinner/LoadingSpinner.stories.js +0 -38
  50. package/dist/components/PageHeader/PageHeader.stories.js +0 -49
  51. package/dist/components/Select/Select.stories.js +0 -65
  52. package/dist/components/Snackbar/Snackbar.stories.js +0 -62
  53. package/dist/components/Toggle/Toggle.stories.js +0 -33
  54. package/dist/components/Typography/Typography.stories.js +0 -30
  55. package/dist/components/Typography/typography.test.js +0 -234
  56. package/dist/magic-string.es-O_8lTkE3.js +0 -738
  57. package/dist/react.esm-DGd9_oKA.js +0 -11126
  58. package/dist/utils/styleStrings.test.js +0 -41
  59. package/dist/vi.Y_w82WR8-XVYrIxgm.js +0 -9861
@@ -1,25 +1,25 @@
1
1
  import '../../assets/PageHeader.css';
2
2
  import { jsxs as a, jsx as t } from "react/jsx-runtime";
3
- import { c as r } from "../../clsx-DB4S2d7J.js";
3
+ import { c as n } from "../../clsx-DB4S2d7J.js";
4
4
  import * as _ from "react";
5
- const z = (n) => /* @__PURE__ */ _.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", "data-waves-icon": "fa/solid/arrow-left", fill: "currentColor", color: "currentColor", width: "1em", height: "1em", style: {
5
+ const w = (c) => /* @__PURE__ */ _.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", "data-waves-icon": "fa/solid/arrow-left", fill: "currentColor", color: "currentColor", width: "1em", height: "1em", style: {
6
6
  fill: "currentcolor",
7
7
  color: "currentcolor",
8
8
  width: "1em",
9
9
  height: "1em"
10
- }, ...n }, /* @__PURE__ */ _.createElement("path", { d: "M447.1 256C447.1 273.7 433.7 288 416 288H109.3l105.4 105.4c12.5 12.5 12.5 32.75 0 45.25C208.4 444.9 200.2 448 192 448s-16.38-3.125-22.62-9.375l-160-160c-12.5-12.5-12.5-32.75 0-45.25l160-160c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L109.3 224H416C433.7 224 447.1 238.3 447.1 256z" })), b = "_title_157kz_45", k = "_subtitle_157kz_46", e = {
11
- "page-header": "_page-header_157kz_1",
12
- "page-header__top-content": "_page-header__top-content_157kz_9",
13
- "page-header__main-content": "_page-header__main-content_157kz_12",
14
- "page-header__bottom-content": "_page-header__bottom-content_157kz_12",
15
- "page-header__main-left-content": "_page-header__main-left-content_157kz_39",
10
+ }, ...c }, /* @__PURE__ */ _.createElement("path", { d: "M447.1 256C447.1 273.7 433.7 288 416 288H109.3l105.4 105.4c12.5 12.5 12.5 32.75 0 45.25C208.4 444.9 200.2 448 192 448s-16.38-3.125-22.62-9.375l-160-160c-12.5-12.5-12.5-32.75 0-45.25l160-160c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L109.3 224H416C433.7 224 447.1 238.3 447.1 256z" })), b = "_title_fxc86_47", N = "_subtitle_fxc86_48", e = {
11
+ "page-header": "_page-header_fxc86_1",
12
+ "page-header__top-content": "_page-header__top-content_fxc86_10",
13
+ "page-header__main-content": "_page-header__main-content_fxc86_13",
14
+ "page-header__bottom-content": "_page-header__bottom-content_fxc86_13",
15
+ "page-header__main-left-content": "_page-header__main-left-content_fxc86_41",
16
16
  title: b,
17
- subtitle: k,
18
- "page-header__main-right-content": "_page-header__main-right-content_157kz_63"
19
- }, C = ({
20
- title: n,
17
+ subtitle: N,
18
+ "page-header__main-right-content": "_page-header__main-right-content_fxc86_65"
19
+ }, H = ({
20
+ title: c,
21
21
  subtitle: d,
22
- backLinkText: c,
22
+ backLinkText: r,
23
23
  onBackLinkClick: s,
24
24
  rightChildren: i,
25
25
  bottomChildren: o,
@@ -29,23 +29,23 @@ const z = (n) => /* @__PURE__ */ _.createElement("svg", { xmlns: "http://www.w3.
29
29
  classNameSubtitle: p,
30
30
  "data-testid-wrapper": g,
31
31
  "data-testid-backLink": f,
32
- "data-testid-title": u,
33
- "data-testid-subtitle": v,
34
- ...w
35
- }) => /* @__PURE__ */ a("div", { className: r([e["page-header"], l]), "data-testid": g, ...w, children: [
36
- c && /* @__PURE__ */ t("div", { className: e["page-header__top-content"], children: /* @__PURE__ */ a("button", { type: "button", onClick: s, className: h, "data-testid": f, children: [
37
- /* @__PURE__ */ t(z, { fontSize: 16 }),
38
- c
32
+ "data-testid-title": x,
33
+ "data-testid-subtitle": u,
34
+ ...v
35
+ }) => /* @__PURE__ */ a("div", { className: n([e["page-header"], l]), "data-testid": g, ...v, children: [
36
+ r && /* @__PURE__ */ t("div", { className: e["page-header__top-content"], children: /* @__PURE__ */ a("button", { type: "button", onClick: s, className: h, "data-testid": f, children: [
37
+ /* @__PURE__ */ t(w, { fontSize: 16 }),
38
+ r
39
39
  ] }) }),
40
40
  /* @__PURE__ */ a("div", { className: e["page-header__main-content"], children: [
41
41
  /* @__PURE__ */ a("div", { className: e["page-header__main-left-content"], children: [
42
- /* @__PURE__ */ t("h1", { className: r(e.title, m), "data-testid": u, children: n }),
43
- /* @__PURE__ */ t("h2", { className: r(e.subtitle, p), "data-testid": v, children: d })
42
+ /* @__PURE__ */ t("h1", { className: n(e.title, m), "data-testid": x, children: c }),
43
+ /* @__PURE__ */ t("h2", { className: n(e.subtitle, p), "data-testid": u, children: d })
44
44
  ] }),
45
45
  i && /* @__PURE__ */ t("div", { className: e["page-header__main-right-content"], children: i })
46
46
  ] }),
47
47
  o && /* @__PURE__ */ t("div", { className: e["page-header__bottom-content"], children: o })
48
48
  ] });
49
49
  export {
50
- C as PageHeader
50
+ H as PageHeader
51
51
  };
@@ -1,23 +1,24 @@
1
1
  import { ReactNode } from 'react';
2
2
 
3
- type SelectOptionProps = {
3
+ export type SelectOptionProps = {
4
4
  disabled?: boolean;
5
- value: string | number;
5
+ value: string;
6
6
  children: ReactNode;
7
7
  icon?: ReactNode;
8
8
  className?: string;
9
9
  'data-testid'?: string;
10
10
  };
11
- type SelectProps = {
12
- children: ReactNode;
11
+ export declare const SelectOption: (props: SelectOptionProps) => import("react/jsx-runtime").JSX.Element;
12
+ export type SelectProps = {
13
+ children?: ReactNode;
13
14
  disabled?: boolean;
14
- placeholder?: string | number;
15
- ariaLabelledby?: string;
16
- onChange?: (value: number | string | null, event?: React.SyntheticEvent<Element, Event> | null) => void;
15
+ placeholder?: string;
16
+ prefix?: string;
17
17
  className?: string;
18
+ value?: string;
18
19
  'data-testid'?: string;
20
+ onChange?: (value: string | null, event?: React.SyntheticEvent<Element, Event> | null) => void;
19
21
  };
20
- export declare const Option: (props: SelectOptionProps) => import("react/jsx-runtime").JSX.Element;
21
22
  declare const Select: {
22
23
  (props: SelectProps): import("react/jsx-runtime").JSX.Element;
23
24
  Option: (props: SelectOptionProps) => import("react/jsx-runtime").JSX.Element;