@pismo/marola 0.0.1-alpha.19 → 0.0.1-alpha.20

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 (60) hide show
  1. package/dist/Dialog.module-DFEmFdYT.js +30 -0
  2. package/dist/SelectButton-C8JQKaf4.js +61 -0
  3. package/dist/assets/Advice.css +1 -1
  4. package/dist/assets/Button.css +1 -1
  5. package/dist/assets/Checkbox.css +1 -1
  6. package/dist/assets/Chip.css +1 -1
  7. package/dist/assets/Dialog.css +1 -1
  8. package/dist/assets/IconButton.css +1 -1
  9. package/dist/assets/Input.css +1 -1
  10. package/dist/assets/PageHeader.css +1 -1
  11. package/dist/assets/Pagination.css +1 -1
  12. package/dist/assets/SelectButton.css +1 -1
  13. package/dist/assets/Snackbar.css +1 -1
  14. package/dist/assets/SortTooltip.css +1 -1
  15. package/dist/assets/Stepper.css +1 -1
  16. package/dist/assets/Table.css +1 -1
  17. package/dist/assets/Toggle.css +1 -1
  18. package/dist/assets/Typography.css +1 -1
  19. package/dist/components/Advice/Advice.js +32 -17
  20. package/dist/components/Button/Button.js +56 -85
  21. package/dist/components/Checkbox/Checkbox.js +57 -42
  22. package/dist/components/Chip/Chip.js +81 -111
  23. package/dist/components/Dialog/Actions.js +1 -1
  24. package/dist/components/Dialog/Backdrop.js +1 -1
  25. package/dist/components/Dialog/CloseIconButton.js +1 -1
  26. package/dist/components/Dialog/Dialog.d.ts +1 -1
  27. package/dist/components/Dialog/Dialog.js +2 -2
  28. package/dist/components/Dialog/{Title.d.ts → DialogTitle.d.ts} +3 -3
  29. package/dist/components/Dialog/DialogTitle.js +29 -0
  30. package/dist/components/Icon/Icon.d.ts +1 -1
  31. package/dist/components/Icon/Icon.js +31 -25
  32. package/dist/components/IconButton/IconButton.js +34 -64
  33. package/dist/components/Input/Input.js +241 -229
  34. package/dist/components/PageHeader/PageHeader.js +52 -37
  35. package/dist/components/Pagination/Pagination.js +127 -113
  36. package/dist/components/Select/Select.js +2 -2
  37. package/dist/components/Select/SelectButton.js +1 -1
  38. package/dist/components/Snackbar/Snackbar.js +176 -161
  39. package/dist/components/SortTooltip/SortTooltip.js +53 -38
  40. package/dist/components/Stepper/Stepper.js +37 -22
  41. package/dist/components/Table/Table.d.ts +33 -16
  42. package/dist/components/Table/Table.js +98 -81
  43. package/dist/components/Table/Table.stories.d.ts +29 -0
  44. package/dist/components/Table/_Table.TBody.stories.d.ts +14 -0
  45. package/dist/components/Table/_Table.THead.stories.d.ts +14 -0
  46. package/dist/components/Table/_Table.Td.stories.d.ts +16 -0
  47. package/dist/components/Table/_Table.Th.stories.d.ts +15 -0
  48. package/dist/components/Table/_Table.Tr.stories.d.ts +15 -0
  49. package/dist/components/TextDisplay/TextDisplay.js +13 -13
  50. package/dist/components/Toggle/Toggle.js +138 -123
  51. package/dist/components/Typography/Typography.d.ts +1 -1
  52. package/dist/components/Typography/Typography.js +54 -84
  53. package/dist/main.js +42 -37
  54. package/dist/marola.css +1 -1
  55. package/dist/utils/styleStrings.d.ts +1 -1
  56. package/dist/utils/styleStrings.js +7 -7
  57. package/package.json +1 -1
  58. package/dist/Dialog.module-B8COssqi.js +0 -15
  59. package/dist/SelectButton-pciwIWcj.js +0 -46
  60. package/dist/components/Dialog/Title.js +0 -29
@@ -1,94 +1,65 @@
1
1
  import '../../assets/Button.css';
2
- import { jsx as r, jsxs as w } from "react/jsx-runtime";
3
- import { forwardRef as m, useMemo as c } from "react";
4
- import { c as g } from "../../clsx-DB4S2d7J.js";
5
- import { LoadingSpinner as f } from "../LoadingSpinner/LoadingSpinner.js";
6
- import { B as k } from "../../Button-2b1peDFT.js";
7
- const p = "_h1_1swyh_1", q = "_h2_1swyh_11", S = "_h3_1swyh_21", M = "_h4_1swyh_31", B = "_body_1swyh_41", x = "_quote_1swyh_75", N = "_form__input_1swyh_98", v = "_form__hint_1swyh_103", j = "_form__label_1swyh_108", P = "_form__dropdown_1swyh_113", $ = "_table__header_1swyh_131", C = "_table__body_1swyh_136", L = "_button_1swyh_159", R = "_SM_1swyh_178", o = {
8
- h1: p,
9
- "h1--bold": "_h1--bold_1swyh_7",
10
- h2: q,
11
- "h2--bold": "_h2--bold_1swyh_17",
12
- h3: S,
13
- "h3--bold": "_h3--bold_1swyh_27",
14
- h4: M,
15
- "h4--bold": "_h4--bold_1swyh_37",
16
- body: B,
17
- "body--large": "_body--large_1swyh_46",
18
- "body--medium": "_body--medium_1swyh_50",
19
- "body--small": "_body--small_1swyh_54",
20
- "body--tiny": "_body--tiny_1swyh_58",
21
- "body--bold": "_body--bold_1swyh_62",
22
- "body--strikethrough": "_body--strikethrough_1swyh_65",
23
- "body--underlined": "_body--underlined_1swyh_68",
24
- "body--strikethrough-underlined": "_body--strikethrough-underlined_1swyh_71",
25
- quote: x,
26
- "quote--large": "_quote--large_1swyh_80",
27
- "quote--bold": "_quote--bold_1swyh_85",
28
- "quote--strikethrough": "_quote--strikethrough_1swyh_88",
29
- "quote--underlined": "_quote--underlined_1swyh_91",
30
- "quote--strikethrough-underlined": "_quote--strikethrough-underlined_1swyh_94",
31
- form__input: N,
32
- form__hint: v,
33
- form__label: j,
34
- form__dropdown: P,
35
- "form--bold": "_form--bold_1swyh_118",
36
- "form--strikethrough": "_form--strikethrough_1swyh_121",
37
- "form--underlined": "_form--underlined_1swyh_124",
38
- "form--strikethrough-underlined": "_form--strikethrough-underlined_1swyh_127",
39
- table__header: $,
40
- table__body: C,
41
- "table__body--secondary": "_table__body--secondary_1swyh_141",
42
- "table--bold": "_table--bold_1swyh_146",
43
- "table--strikethrough": "_table--strikethrough_1swyh_149",
44
- "table--underlined": "_table--underlined_1swyh_152",
45
- "table--strikethrough-underlined": "_table--strikethrough-underlined_1swyh_155",
46
- button: L,
47
- "button--bold": "_button--bold_1swyh_165",
48
- "button--strikethrough": "_button--strikethrough_1swyh_168",
49
- "button--underlined": "_button--underlined_1swyh_171",
50
- "button--strikethrough-underlined": "_button--strikethrough-underlined_1swyh_174",
51
- SM: R,
52
- "SM--bold": "_SM--bold_1swyh_183",
53
- "button--primary": "_button--primary_1swyh_199",
54
- "button--secondary": "_button--secondary_1swyh_218",
55
- "button--quick": "_button--quick_1swyh_235",
56
- "button__loading-container": "_button__loading-container_1swyh_258"
57
- }, G = m((n, h) => {
2
+ import { jsx as h, jsxs as l } from "react/jsx-runtime";
3
+ import { forwardRef as d, useMemo as c } from "react";
4
+ import { c as m } from "../../clsx-DB4S2d7J.js";
5
+ import { LoadingSpinner as x } from "../LoadingSpinner/LoadingSpinner.js";
6
+ import { B as f } from "../../Button-2b1peDFT.js";
7
+ const k = "_button_1h876_56", o = {
8
+ "u-typography-h1": "_u-typography-h1_1h876_1",
9
+ "u-typography-h2": "_u-typography-h2_1h876_8",
10
+ "u-typography-h3": "_u-typography-h3_1h876_15",
11
+ "u-typography-h4": "_u-typography-h4_1h876_22",
12
+ "u-typography-h5": "_u-typography-h5_1h876_29",
13
+ "u-typography-h6": "_u-typography-h6_1h876_36",
14
+ "u-typography-base": "_u-typography-base_1h876_43",
15
+ "u-typography-base--xxl": "_u-typography-base--xxl_1h876_48",
16
+ "u-typography-base--xl": "_u-typography-base--xl_1h876_52",
17
+ "u-typography-base--lg": "_u-typography-base--lg_1h876_56",
18
+ button: k,
19
+ "u-typography-base--sm": "_u-typography-base--sm_1h876_60",
20
+ "u-typography-base--bold": "_u-typography-base--bold_1h876_64",
21
+ "u-typography-base--strikethrough": "_u-typography-base--strikethrough_1h876_67",
22
+ "u-typography-base--underlined": "_u-typography-base--underlined_1h876_70",
23
+ "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1h876_73",
24
+ "button--primary": "_button--primary_1h876_86",
25
+ "button--secondary": "_button--secondary_1h876_105",
26
+ "button--quick": "_button--quick_1h876_122",
27
+ "button__loading-container": "_button__loading-container_1h876_145"
28
+ }, P = d((p, y) => {
58
29
  const {
59
- onClick: s,
60
- link: d,
61
- loading: u,
62
- children: t,
63
- type: l = "button",
64
- disabled: b,
65
- className: e,
66
- variant: _ = "primary",
67
- muiButtonBaseProps: y
68
- } = n, i = {
69
- invert: _ === "secondary" || _ === "quick"
70
- }, a = c(
71
- () => g([o.button, o[`button--${_}`], e]),
72
- [e, _]
30
+ onClick: _,
31
+ link: u,
32
+ loading: n,
33
+ children: a,
34
+ type: e = "button",
35
+ disabled: s,
36
+ className: r,
37
+ variant: t = "primary",
38
+ muiButtonBaseProps: g
39
+ } = p, i = {
40
+ invert: t === "secondary" || t === "quick"
41
+ }, b = c(
42
+ () => m([o.button, o[`button--${t}`], r]),
43
+ [r, t]
73
44
  );
74
- return /* @__PURE__ */ r(
75
- k,
45
+ return /* @__PURE__ */ h(
46
+ f,
76
47
  {
77
- type: l,
78
- href: d,
79
- onClick: s,
80
- disabled: b,
81
- className: a,
82
- ref: h,
83
- ...y ?? {},
84
- children: u ? /* @__PURE__ */ w("div", { className: o["button__loading-container"], children: [
85
- /* @__PURE__ */ r(f, { ...i }),
86
- t
87
- ] }) : t
48
+ type: e,
49
+ href: u,
50
+ onClick: _,
51
+ disabled: s,
52
+ className: b,
53
+ ref: y,
54
+ ...g ?? {},
55
+ children: n ? /* @__PURE__ */ l("div", { className: o["button__loading-container"], children: [
56
+ /* @__PURE__ */ h(x, { ...i }),
57
+ a
58
+ ] }) : a
88
59
  }
89
60
  );
90
61
  });
91
62
  export {
92
- G as Button,
93
- G as default
63
+ P as Button,
64
+ P as default
94
65
  };
@@ -1,54 +1,69 @@
1
1
  import '../../assets/Checkbox.css';
2
- import { jsxs as N, jsx as h } from "react/jsx-runtime";
3
- import * as k from "react";
4
- import { useState as g, useEffect as w } from "react";
5
- import { c as i } from "../../clsx-DB4S2d7J.js";
6
- const y = (a) => /* @__PURE__ */ k.createElement("svg", { width: 14, height: 10, viewBox: "0 0 14 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ k.createElement("path", { d: "M13.7063 0.293438C14.0969 0.684062 14.0969 1.31531 13.7063 1.70594L5.70625 9.70594C5.31563 10.0966 4.68437 10.0966 4.29375 9.70594L0.292875 5.70594C-0.097625 5.31531 -0.097625 4.68406 0.292875 4.29344C0.683437 3.90281 1.31656 3.90281 1.70719 4.29344L4.97188 7.58406L12.2937 0.293438C12.6844 -0.0978125 13.3156 -0.0978125 13.7063 0.293438Z", fill: "#F7F7FC" })), z = "_label_1aw5t_10", E = "_checkmark_1aw5t_20", e = {
7
- "checkbox-wrapper": "_checkbox-wrapper_1aw5t_1",
2
+ import { jsxs as v, jsx as c } from "react/jsx-runtime";
3
+ import * as o from "react";
4
+ import { useState as k, useEffect as i } from "react";
5
+ import { c as s } from "../../clsx-DB4S2d7J.js";
6
+ const N = (a) => /* @__PURE__ */ o.createElement("svg", { width: 14, height: 10, viewBox: "0 0 14 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ o.createElement("path", { d: "M13.7063 0.293438C14.0969 0.684062 14.0969 1.31531 13.7063 1.70594L5.70625 9.70594C5.31563 10.0966 4.68437 10.0966 4.29375 9.70594L0.292875 5.70594C-0.097625 5.31531 -0.097625 4.68406 0.292875 4.29344C0.683437 3.90281 1.31656 3.90281 1.70719 4.29344L4.97188 7.58406L12.2937 0.293438C12.6844 -0.0978125 13.3156 -0.0978125 13.7063 0.293438Z", fill: "#F7F7FC" })), z = "_label_18hen_64", E = "_checkmark_18hen_93", e = {
7
+ "u-typography-h1": "_u-typography-h1_18hen_1",
8
+ "u-typography-h2": "_u-typography-h2_18hen_8",
9
+ "u-typography-h3": "_u-typography-h3_18hen_15",
10
+ "u-typography-h4": "_u-typography-h4_18hen_22",
11
+ "u-typography-h5": "_u-typography-h5_18hen_29",
12
+ "u-typography-h6": "_u-typography-h6_18hen_36",
13
+ "u-typography-base": "_u-typography-base_18hen_43",
14
+ "u-typography-base--xxl": "_u-typography-base--xxl_18hen_48",
15
+ "u-typography-base--xl": "_u-typography-base--xl_18hen_52",
16
+ "u-typography-base--lg": "_u-typography-base--lg_18hen_56",
17
+ "u-typography-base--sm": "_u-typography-base--sm_18hen_60",
18
+ "u-typography-base--bold": "_u-typography-base--bold_18hen_64",
19
+ "checkbox-wrapper": "_checkbox-wrapper_18hen_64",
20
+ "label--highlighted": "_label--highlighted_18hen_64",
21
+ "u-typography-base--strikethrough": "_u-typography-base--strikethrough_18hen_67",
22
+ "u-typography-base--underlined": "_u-typography-base--underlined_18hen_70",
23
+ "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_18hen_73",
8
24
  label: z,
9
- "label--highlighted": "_label--highlighted_1aw5t_14",
10
- "label--highlighted-checked": "_label--highlighted-checked_1aw5t_17",
25
+ "label--highlighted-checked": "_label--highlighted-checked_18hen_90",
11
26
  checkmark: E,
12
- "checkmark--checked": "_checkmark--checked_1aw5t_32",
13
- "checkmark--light-theme": "_checkmark--light-theme_1aw5t_35",
14
- "checkmark--accent-theme": "_checkmark--accent-theme_1aw5t_42",
15
- "checkmark--small-size": "_checkmark--small-size_1aw5t_49",
16
- "checkmark--normal-size": "_checkmark--normal-size_1aw5t_56"
17
- }, F = (a) => /* @__PURE__ */ k.createElement("svg", { width: 10, height: 3, viewBox: "0 0 10 3", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ k.createElement("rect", { y: 0.5, width: 10, height: 2, rx: 1, fill: "#1897F3" })), M = ({
27
+ "checkmark--checked": "_checkmark--checked_18hen_105",
28
+ "checkmark--light-theme": "_checkmark--light-theme_18hen_108",
29
+ "checkmark--accent-theme": "_checkmark--accent-theme_18hen_115",
30
+ "checkmark--small-size": "_checkmark--small-size_18hen_122",
31
+ "checkmark--normal-size": "_checkmark--normal-size_18hen_129"
32
+ }, F = (a) => /* @__PURE__ */ o.createElement("svg", { width: 10, height: 3, viewBox: "0 0 10 3", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ o.createElement("rect", { y: 0.5, width: 10, height: 2, rx: 1, fill: "#1897F3" })), M = ({
18
33
  className: a,
19
- label: o,
20
- name: d,
21
- theme: b = "accent",
22
- size: p = "normal",
23
- checked: l,
24
- onChange: x,
25
- isIndeterminate: r,
26
- highlightLabel: C = !1,
27
- ...s
34
+ label: n,
35
+ name: m,
36
+ theme: u = "accent",
37
+ size: b = "normal",
38
+ checked: r,
39
+ onChange: d,
40
+ isIndeterminate: l,
41
+ highlightLabel: x = !1,
42
+ ...p
28
43
  }) => {
29
- const [c, n] = g(l), [t, _] = g(r);
30
- w(() => {
31
- l !== c && n(l);
32
- }, [l]), w(() => {
33
- typeof r == "boolean" && _(r);
34
- }, [r]);
35
- const f = i(e["checkbox-wrapper"], a), v = i(
44
+ const [h, g] = k(r), [t, y] = k(l);
45
+ i(() => {
46
+ r !== h && g(r);
47
+ }, [r]), i(() => {
48
+ typeof l == "boolean" && y(l);
49
+ }, [l]);
50
+ const C = s(e["checkbox-wrapper"], a), f = s(
36
51
  e.checkmark,
37
- e[`checkmark--${b}-theme`],
38
- e[`checkmark--${p}-size`],
39
- (c || t) && e["checkmark--checked"]
40
- ), u = C && (s.children || o) ? i(
52
+ e[`checkmark--${u}-theme`],
53
+ e[`checkmark--${b}-size`],
54
+ (h || t) && e["checkmark--checked"]
55
+ ), w = x && (p.children || n) ? s(
41
56
  e.label,
42
57
  e["label--highlighted"],
43
- (c || t) && e["label--highlighted-checked"]
58
+ (h || t) && e["label--highlighted-checked"]
44
59
  ) : e.label;
45
- return /* @__PURE__ */ N("div", { className: f, onClick: () => {
46
- let m = !c;
47
- t && (_(!1), m = !0), x(m), n(m);
48
- }, ...s, children: [
49
- /* @__PURE__ */ h("input", { name: d, type: "checkbox", checked: !t && c, readOnly: !0 }),
50
- /* @__PURE__ */ h("span", { className: v, children: t ? /* @__PURE__ */ h(F, {}) : c && /* @__PURE__ */ h(y, {}) }),
51
- /* @__PURE__ */ h("label", { className: u, children: s.children || o })
60
+ return /* @__PURE__ */ v("div", { className: C, onClick: () => {
61
+ let _ = !h;
62
+ t && (y(!1), _ = !0), d(_), g(_);
63
+ }, ...p, children: [
64
+ /* @__PURE__ */ c("input", { name: m, type: "checkbox", checked: !t && h, readOnly: !0 }),
65
+ /* @__PURE__ */ c("span", { className: f, children: t ? /* @__PURE__ */ c(F, {}) : h && /* @__PURE__ */ c(N, {}) }),
66
+ /* @__PURE__ */ c("label", { className: w, children: p.children || n })
52
67
  ] });
53
68
  };
54
69
  export {
@@ -1,137 +1,107 @@
1
1
  import '../../assets/Chip.css';
2
- import { jsx as t, jsxs as m } from "react/jsx-runtime";
3
- import { forwardRef as u, cloneElement as p } from "react";
4
- import { c as s } from "../../clsx-DB4S2d7J.js";
5
- import { Icon as f } from "../Icon/Icon.js";
2
+ import { jsx as e, jsxs as u } from "react/jsx-runtime";
3
+ import { forwardRef as d, cloneElement as m } from "react";
4
+ import { c as l } from "../../clsx-DB4S2d7J.js";
5
+ import { Icon as g } from "../Icon/Icon.js";
6
6
  import "../Button/Button.js";
7
7
  import "../Dialog/Backdrop.js";
8
8
  import "../Typography/Typography.js";
9
9
  import "../IconButton/IconButton.js";
10
10
  import "../Select/Select.js";
11
- import { Skeleton as y } from "../Skeleton/Skeleton.js";
11
+ import { Skeleton as b } from "../Skeleton/Skeleton.js";
12
12
  import "../Table/Table.js";
13
13
  import "../Tabs/Tabs.js";
14
- import { B as g } from "../../Button-2b1peDFT.js";
15
- const k = "_h1_1hro6_1", q = "_h2_1hro6_11", C = "_h3_1hro6_21", x = "_h4_1hro6_31", N = "_body_1hro6_41", v = "_quote_1hro6_75", S = "_form__input_1hro6_98", w = "_form__hint_1hro6_103", M = "_form__label_1hro6_108", R = "_form__dropdown_1hro6_113", A = "_table__header_1hro6_131", I = "_table__body_1hro6_136", T = "_button_1hro6_159", j = "_SM_1hro6_178", B = "_chip_1hro6_178", E = "_chip__adornment_1hro6_224", P = "_chip__remove_1hro6_229", e = {
16
- h1: k,
17
- "h1--bold": "_h1--bold_1hro6_7",
18
- h2: q,
19
- "h2--bold": "_h2--bold_1hro6_17",
20
- h3: C,
21
- "h3--bold": "_h3--bold_1hro6_27",
22
- h4: x,
23
- "h4--bold": "_h4--bold_1hro6_37",
24
- body: N,
25
- "body--large": "_body--large_1hro6_46",
26
- "body--medium": "_body--medium_1hro6_50",
27
- "body--small": "_body--small_1hro6_54",
28
- "body--tiny": "_body--tiny_1hro6_58",
29
- "body--bold": "_body--bold_1hro6_62",
30
- "body--strikethrough": "_body--strikethrough_1hro6_65",
31
- "body--underlined": "_body--underlined_1hro6_68",
32
- "body--strikethrough-underlined": "_body--strikethrough-underlined_1hro6_71",
33
- quote: v,
34
- "quote--large": "_quote--large_1hro6_80",
35
- "quote--bold": "_quote--bold_1hro6_85",
36
- "quote--strikethrough": "_quote--strikethrough_1hro6_88",
37
- "quote--underlined": "_quote--underlined_1hro6_91",
38
- "quote--strikethrough-underlined": "_quote--strikethrough-underlined_1hro6_94",
39
- form__input: S,
40
- form__hint: w,
41
- form__label: M,
42
- form__dropdown: R,
43
- "form--bold": "_form--bold_1hro6_118",
44
- "form--strikethrough": "_form--strikethrough_1hro6_121",
45
- "form--underlined": "_form--underlined_1hro6_124",
46
- "form--strikethrough-underlined": "_form--strikethrough-underlined_1hro6_127",
47
- table__header: A,
48
- table__body: I,
49
- "table__body--secondary": "_table__body--secondary_1hro6_141",
50
- "table--bold": "_table--bold_1hro6_146",
51
- "table--strikethrough": "_table--strikethrough_1hro6_149",
52
- "table--underlined": "_table--underlined_1hro6_152",
53
- "table--strikethrough-underlined": "_table--strikethrough-underlined_1hro6_155",
54
- button: T,
55
- "button--bold": "_button--bold_1hro6_165",
56
- "button--strikethrough": "_button--strikethrough_1hro6_168",
57
- "button--underlined": "_button--underlined_1hro6_171",
58
- "button--strikethrough-underlined": "_button--strikethrough-underlined_1hro6_174",
59
- SM: j,
60
- chip: B,
61
- "SM--bold": "_SM--bold_1hro6_183",
62
- "chip--button": "_chip--button_1hro6_199",
63
- "chip--outlined": "_chip--outlined_1hro6_212",
64
- "chip--contained": "_chip--contained_1hro6_218",
65
- chip__adornment: E,
66
- chip__remove: P,
67
- "chip__remove--disabled": "_chip__remove--disabled_1hro6_240"
68
- }, z = u((o, _) => {
69
- const { children: d, onClickContent: h, disabled: l, className: n, variant: a } = o;
70
- let r = s(
71
- e.chip,
72
- { [e["chip--outlined"]]: a === "outlined" },
73
- { [e["chip--contained"]]: a === "contained" },
74
- n
14
+ import { B as j } from "../../Button-2b1peDFT.js";
15
+ const f = "_chip_1j9h1_60", x = "_chip__adornment_1j9h1_114", k = "_chip__remove_1j9h1_119", r = {
16
+ "u-typography-h1": "_u-typography-h1_1j9h1_1",
17
+ "u-typography-h2": "_u-typography-h2_1j9h1_8",
18
+ "u-typography-h3": "_u-typography-h3_1j9h1_15",
19
+ "u-typography-h4": "_u-typography-h4_1j9h1_22",
20
+ "u-typography-h5": "_u-typography-h5_1j9h1_29",
21
+ "u-typography-h6": "_u-typography-h6_1j9h1_36",
22
+ "u-typography-base": "_u-typography-base_1j9h1_43",
23
+ "u-typography-base--xxl": "_u-typography-base--xxl_1j9h1_48",
24
+ "u-typography-base--xl": "_u-typography-base--xl_1j9h1_52",
25
+ "u-typography-base--lg": "_u-typography-base--lg_1j9h1_56",
26
+ "u-typography-base--sm": "_u-typography-base--sm_1j9h1_60",
27
+ chip: f,
28
+ "u-typography-base--bold": "_u-typography-base--bold_1j9h1_64",
29
+ "u-typography-base--strikethrough": "_u-typography-base--strikethrough_1j9h1_67",
30
+ "u-typography-base--underlined": "_u-typography-base--underlined_1j9h1_70",
31
+ "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1j9h1_73",
32
+ "chip--button": "_chip--button_1j9h1_89",
33
+ "chip--outlined": "_chip--outlined_1j9h1_102",
34
+ "chip--contained": "_chip--contained_1j9h1_108",
35
+ chip__adornment: x,
36
+ chip__remove: k,
37
+ "chip__remove--disabled": "_chip__remove--disabled_1j9h1_130"
38
+ }, C = d((t, o) => {
39
+ const { children: h, onClickContent: p, disabled: _, className: i, variant: n } = t;
40
+ let a = l(
41
+ r.chip,
42
+ { [r["chip--outlined"]]: n === "outlined" },
43
+ { [r["chip--contained"]]: n === "contained" },
44
+ i
75
45
  );
76
- return h ? (r += ` ${e["chip--button"]}`, /* @__PURE__ */ t(
77
- g,
46
+ return p ? (a += ` ${r["chip--button"]}`, /* @__PURE__ */ e(
47
+ j,
78
48
  {
79
- onClick: h,
80
- disabled: l,
81
- "data-testid": o["data-testid"],
82
- ref: _,
83
- className: r,
84
- children: d
49
+ onClick: p,
50
+ disabled: _,
51
+ "data-testid": t["data-testid"],
52
+ ref: o,
53
+ className: a,
54
+ children: h
85
55
  }
86
- )) : /* @__PURE__ */ t("span", { "data-testid": o["data-testid"], ref: _, className: r, children: d });
87
- }), U = (o) => {
88
- const { icon: _, disabled: d = !1, className: h } = o;
89
- if (_) {
90
- const l = s(e.chip__adornment, h), n = d ? p(_, { color: "rgb(var(--gray-95-rgb), 0.4)" }) : _;
91
- return /* @__PURE__ */ t("span", { className: l, children: n });
56
+ )) : /* @__PURE__ */ e("span", { "data-testid": t["data-testid"], ref: o, className: a, children: h });
57
+ }), N = (t) => {
58
+ const { icon: o, disabled: h = !1, className: p } = t;
59
+ if (o) {
60
+ const _ = l(r.chip__adornment, p), i = h ? m(o, { color: "rgb(var(--gray-95-rgb), 0.4)" }) : o;
61
+ return /* @__PURE__ */ e("span", { className: _, children: i });
92
62
  }
93
63
  return null;
94
- }, Y = u((o, _) => {
64
+ }, $ = d((t, o) => {
95
65
  const {
96
- label: d,
97
- className: h,
98
- onClickContent: l,
99
- leftAdornment: n,
100
- loading: a = !1,
101
- disabled: r = !1,
102
- variant: c = "default",
103
- onClickRemove: b
104
- } = o;
105
- return a ? /* @__PURE__ */ t(
106
- y,
66
+ label: h,
67
+ className: p,
68
+ onClickContent: _,
69
+ leftAdornment: i,
70
+ loading: n = !1,
71
+ disabled: a = !1,
72
+ variant: y = "default",
73
+ onClickRemove: c
74
+ } = t;
75
+ return n ? /* @__PURE__ */ e(
76
+ b,
107
77
  {
108
78
  style: { width: "6rem", height: "2rem", borderRadius: "4rem", display: "inline-flex" },
109
- "data-testid": o["data-testid-skeleton"]
79
+ "data-testid": t["data-testid-skeleton"]
110
80
  }
111
- ) : /* @__PURE__ */ m(
112
- z,
81
+ ) : /* @__PURE__ */ u(
82
+ C,
113
83
  {
114
- ref: _,
115
- "data-testid": o["data-testid"],
116
- onClickContent: l,
117
- disabled: r,
118
- className: h,
119
- variant: c,
84
+ ref: o,
85
+ "data-testid": t["data-testid"],
86
+ onClickContent: _,
87
+ disabled: a,
88
+ className: p,
89
+ variant: y,
120
90
  children: [
121
- n && /* @__PURE__ */ t(U, { ...n, disabled: r }),
122
- d,
123
- b && /* @__PURE__ */ t(
91
+ i && /* @__PURE__ */ e(N, { ...i, disabled: a }),
92
+ h,
93
+ c && /* @__PURE__ */ e(
124
94
  "span",
125
95
  {
126
- className: s(e.chip__remove, { [e["chip__remove--disabled"]]: r }),
96
+ className: l(r.chip__remove, { [r["chip__remove--disabled"]]: a }),
127
97
  role: "button",
128
- tabIndex: r ? -1 : 0,
98
+ tabIndex: a ? -1 : 0,
129
99
  "aria-label": "remove",
130
- onClick: (i) => {
131
- i == null || i.stopPropagation(), i == null || i.nativeEvent.stopImmediatePropagation(), b();
100
+ onClick: (s) => {
101
+ s == null || s.stopPropagation(), s == null || s.nativeEvent.stopImmediatePropagation(), c();
132
102
  },
133
- "aria-disabled": r,
134
- children: /* @__PURE__ */ t(f, { icon: "circle-xmark", size: "1.125rem", color: "rgba(var(--gray-95-rgb), 0.45)" })
103
+ "aria-disabled": a,
104
+ children: /* @__PURE__ */ e(g, { icon: "circle-xmark", size: "1.125rem", color: "rgba(var(--gray-95-rgb), 0.45)" })
135
105
  }
136
106
  )
137
107
  ]
@@ -139,5 +109,5 @@ const k = "_h1_1hro6_1", q = "_h2_1hro6_11", C = "_h3_1hro6_21", x = "_h4_1hro6_
139
109
  );
140
110
  });
141
111
  export {
142
- Y as Chip
112
+ $ as Chip
143
113
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { s as t } from "../../Dialog.module-B8COssqi.js";
2
+ import { s as t } from "../../Dialog.module-DFEmFdYT.js";
3
3
  const i = ({ children: s }) => /* @__PURE__ */ o("div", { className: t.dialog__actions, children: s });
4
4
  export {
5
5
  i as default
@@ -1,6 +1,6 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
2
  import { forwardRef as t } from "react";
3
- import { s as e } from "../../Dialog.module-B8COssqi.js";
3
+ import { s as e } from "../../Dialog.module-DFEmFdYT.js";
4
4
  const i = t((o, r) => {
5
5
  const { open: m, className: p, ...s } = o;
6
6
  return /* @__PURE__ */ a("div", { className: e.dialog__backdrop, ref: r, ...s });
@@ -1,6 +1,6 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
2
  import { Icon as r } from "../Icon/Icon.js";
3
- import { s as t } from "../../Dialog.module-B8COssqi.js";
3
+ import { s as t } from "../../Dialog.module-DFEmFdYT.js";
4
4
  import { B as a } from "../../Button-2b1peDFT.js";
5
5
  const d = ({ handleOnClose: i, className: o }) => {
6
6
  const l = o != null ? t["dialog__close-icon "] + o : t["dialog__close-icon"];
@@ -1,4 +1,4 @@
1
- import { default as DialogTitle } from './Title';
1
+ import { default as DialogTitle } from './DialogTitle';
2
2
  import { default as Content } from './Content';
3
3
  import { default as Actions } from './Actions';
4
4
  import { ModalProps } from '@mui/base';
@@ -3,8 +3,8 @@ import { default as $e } from "./Actions.js";
3
3
  import oe from "./Backdrop.js";
4
4
  import re from "./CloseIconButton.js";
5
5
  import { default as ze } from "./Content.js";
6
- import { s as q } from "../../Dialog.module-B8COssqi.js";
7
- import se from "./Title.js";
6
+ import { s as q } from "../../Dialog.module-DFEmFdYT.js";
7
+ import se from "./DialogTitle.js";
8
8
  import { u as Z, P as i, f as ie, b as C, g as ae, a as le, _ as ce, c as z, d as de, e as ue } from "../../index-CH45lKw7.js";
9
9
  import * as f from "react";
10
10
  import { o as w, e as ee, u as G } from "../../useEventCallback-xTG9piMa.js";
@@ -1,11 +1,11 @@
1
1
  import { ReactNode } from 'react';
2
2
 
3
- export interface TitleProps {
3
+ export interface DialogTitleProps {
4
4
  /** title to be displayed */
5
5
  title?: ReactNode;
6
6
  /** subtitle to be displayed */
7
7
  subTitle?: ReactNode;
8
8
  }
9
9
  /** internal component only - used by the dialog */
10
- declare const Title: ({ title, subTitle }: TitleProps) => import("react/jsx-runtime").JSX.Element;
11
- export default Title;
10
+ declare const DialogTitle: ({ title, subTitle }: DialogTitleProps) => import("react/jsx-runtime").JSX.Element;
11
+ export default DialogTitle;
@@ -0,0 +1,29 @@
1
+ import { jsxs as l, Fragment as o, jsx as e } from "react/jsx-runtime";
2
+ import { Typography as r } from "../Typography/Typography.js";
3
+ import { s as a } from "../../Dialog.module-DFEmFdYT.js";
4
+ const n = ({ title: t, subTitle: i }) => /* @__PURE__ */ l(o, { children: [
5
+ /* @__PURE__ */ e(
6
+ r,
7
+ {
8
+ element: "h1",
9
+ elementProps: { id: "alert-dialog-title" },
10
+ variant: "h4",
11
+ className: a.dialog__title,
12
+ children: t
13
+ }
14
+ ),
15
+ /* @__PURE__ */ e("hr", { className: a.dialog__divider, "aria-hidden": !0 }),
16
+ i && /* @__PURE__ */ e(
17
+ r,
18
+ {
19
+ element: "h2",
20
+ elementProps: { id: "alert-dialog-description" },
21
+ variant: "h4",
22
+ className: a.dialog__subtitle,
23
+ children: i
24
+ }
25
+ )
26
+ ] });
27
+ export {
28
+ n as default
29
+ };
@@ -1,5 +1,5 @@
1
1
  export declare const FamilyAndIcons: {
2
- readonly 'fa/duotone': readonly ["arrow-down-arrow-up", "calendar-days", "circle-arrow-right", "circle-exclamation", "circle-xmark", "eye-slash", "folder-magnifying-glass", "lock-keyhole", "magnifying-glass", "xmark"];
2
+ readonly 'fa/duotone': readonly ["arrow-down-arrow-up", "calendar-days", "circle-arrow-right", "circle-exclamation", "circle-xmark", "eye-slash", "folder-magnifying-glass", "lock-keyhole", "magnifying-glass", "xmark", "warehouse-full", "rectangle-history", "account-group"];
3
3
  readonly pi: readonly ["logo"];
4
4
  };
5
5
  export type IconFamilies = keyof typeof FamilyAndIcons;