@pismo/marola 1.0.0-beta.17 → 1.0.0-beta.19

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.
@@ -0,0 +1,30 @@
1
+ import './assets/Dialog.css';
2
+ const _ = "_dialog__subtitle_1rdlq_53", a = "_dialog_1rdlq_53", o = "_dialog__backdrop_1rdlq_88", l = "_dialog__panel_1rdlq_96", r = "_dialog__title_1rdlq_57", d = "_dialog__divider_1rdlq_122", p = "_dialog__actions_1rdlq_136", t = {
3
+ "u-typography-h1": "_u-typography-h1_1rdlq_1",
4
+ "u-typography-h2": "_u-typography-h2_1rdlq_8",
5
+ "u-typography-h3": "_u-typography-h3_1rdlq_15",
6
+ "u-typography-h4": "_u-typography-h4_1rdlq_22",
7
+ "u-typography-h5": "_u-typography-h5_1rdlq_29",
8
+ "u-typography-h6": "_u-typography-h6_1rdlq_36",
9
+ "u-typography-base": "_u-typography-base_1rdlq_43",
10
+ "u-typography-base--xxl": "_u-typography-base--xxl_1rdlq_49",
11
+ "u-typography-base--xl": "_u-typography-base--xl_1rdlq_53",
12
+ dialog__subtitle: _,
13
+ "u-typography-base--lg": "_u-typography-base--lg_1rdlq_57",
14
+ "dialog__title--small": "_dialog__title--small_1rdlq_57",
15
+ "u-typography-base--sm": "_u-typography-base--sm_1rdlq_61",
16
+ "u-typography-base--bold": "_u-typography-base--bold_1rdlq_65",
17
+ "u-typography-base--strikethrough": "_u-typography-base--strikethrough_1rdlq_68",
18
+ "u-typography-base--underlined": "_u-typography-base--underlined_1rdlq_71",
19
+ "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1rdlq_74",
20
+ dialog: a,
21
+ dialog__backdrop: o,
22
+ dialog__panel: l,
23
+ dialog__title: r,
24
+ dialog__divider: d,
25
+ "dialog__close-icon": "_dialog__close-icon_1rdlq_126",
26
+ dialog__actions: p
27
+ };
28
+ export {
29
+ t as s
30
+ };
@@ -0,0 +1,181 @@
1
+ import './assets/Toggle2.css';
2
+ import { jsx as i, jsxs as k } from "react/jsx-runtime";
3
+ import { forwardRef as y } from "react";
4
+ import { c as s } from "./clsx-DB4S2d7J.js";
5
+ import { Icon as C } from "./components/Icon/Icon.js";
6
+ import { Typography as N } from "./components/Typography/Typography.js";
7
+ import "./components/Button/Button.js";
8
+ import { Adornment as v } from "./components/Adornment/Adornment.js";
9
+ import "./components/Dialog/Dialog.js";
10
+ import "./components/IconButton/IconButton.js";
11
+ import "./components/Select/Select.js";
12
+ import "./components/Table/Table.js";
13
+ import "./components/Tabs/Tabs.js";
14
+ import { s as w } from "./Group-B3p31ftp.js";
15
+ import "./contexts/SnackbarProvider/SnackbarProvider.js";
16
+ import { Skeleton as f } from "./components/Skeleton/Skeleton.js";
17
+ import { B as x } from "./Button-DiLqcAJG.js";
18
+ const I = "_chip_1wvod_61", P = "_chip__adornment_1wvod_116", z = "_chip__remove_1wvod_121", p = {
19
+ "u-typography-h1": "_u-typography-h1_1wvod_1",
20
+ "u-typography-h2": "_u-typography-h2_1wvod_8",
21
+ "u-typography-h3": "_u-typography-h3_1wvod_15",
22
+ "u-typography-h4": "_u-typography-h4_1wvod_22",
23
+ "u-typography-h5": "_u-typography-h5_1wvod_29",
24
+ "u-typography-h6": "_u-typography-h6_1wvod_36",
25
+ "u-typography-base": "_u-typography-base_1wvod_43",
26
+ "u-typography-base--xxl": "_u-typography-base--xxl_1wvod_49",
27
+ "u-typography-base--xl": "_u-typography-base--xl_1wvod_53",
28
+ "u-typography-base--lg": "_u-typography-base--lg_1wvod_57",
29
+ "u-typography-base--sm": "_u-typography-base--sm_1wvod_61",
30
+ chip: I,
31
+ "u-typography-base--bold": "_u-typography-base--bold_1wvod_65",
32
+ "u-typography-base--strikethrough": "_u-typography-base--strikethrough_1wvod_68",
33
+ "u-typography-base--underlined": "_u-typography-base--underlined_1wvod_71",
34
+ "u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1wvod_74",
35
+ "chip--button": "_chip--button_1wvod_90",
36
+ "chip--outlined": "_chip--outlined_1wvod_104",
37
+ "chip--contained": "_chip--contained_1wvod_110",
38
+ chip__adornment: P,
39
+ chip__remove: z,
40
+ "chip__remove--disabled": "_chip__remove--disabled_1wvod_133",
41
+ "chip-loading": "_chip-loading_1wvod_137"
42
+ }, S = y((t, c) => {
43
+ const { children: _, onClickContent: o, disabled: r, className: a, variant: n } = t;
44
+ let e = s(
45
+ p.chip,
46
+ { [p["chip--outlined"]]: n === "outlined" },
47
+ { [p["chip--contained"]]: n === "contained" },
48
+ a
49
+ );
50
+ return o ? (e += ` ${p["chip--button"]}`, /* @__PURE__ */ i(
51
+ x,
52
+ {
53
+ onClick: o,
54
+ disabled: r,
55
+ "data-testid": t["data-testid"],
56
+ ref: c,
57
+ className: e,
58
+ children: _
59
+ }
60
+ )) : /* @__PURE__ */ i("span", { "data-testid": t["data-testid"], ref: c, className: e, children: _ });
61
+ }), M = y((t, c) => {
62
+ const {
63
+ label: _,
64
+ className: o,
65
+ onClickContent: r,
66
+ leftAdornment: a,
67
+ loading: n = !1,
68
+ disabled: e = !1,
69
+ variant: u = "default",
70
+ onClickRemove: m
71
+ } = t;
72
+ if (n)
73
+ return /* @__PURE__ */ i(
74
+ f,
75
+ {
76
+ className: s(p["chip-loading"], t["className-skeleton"]),
77
+ "data-testid": t["data-testid-skeleton"]
78
+ }
79
+ );
80
+ const g = s(a == null ? void 0 : a.className, p.chip__adornment), b = a != null && a.customIcon ? { ...a, className: g } : { ...a, disabled: e, className: g };
81
+ return /* @__PURE__ */ k(
82
+ S,
83
+ {
84
+ ref: c,
85
+ "data-testid": t["data-testid"],
86
+ onClickContent: r,
87
+ disabled: e,
88
+ className: o,
89
+ variant: u,
90
+ children: [
91
+ a && /* @__PURE__ */ i(v, { ...b }),
92
+ _,
93
+ m && /* @__PURE__ */ i(
94
+ "span",
95
+ {
96
+ className: s(p.chip__remove, { [p["chip__remove--disabled"]]: e }),
97
+ role: "button",
98
+ tabIndex: e ? -1 : 0,
99
+ "aria-label": "remove",
100
+ onClick: (d) => {
101
+ d == null || d.stopPropagation(), d == null || d.nativeEvent.stopImmediatePropagation(), m();
102
+ },
103
+ "aria-disabled": e,
104
+ children: /* @__PURE__ */ i(C, { icon: "circle-xmark", size: "1.125rem", color: "rgba(var(--gray-95-rgb), 0.45)" })
105
+ }
106
+ )
107
+ ]
108
+ }
109
+ );
110
+ }), h = {
111
+ "row-item": "_row-item_8z1a0_1",
112
+ "row-item--clickable": "_row-item--clickable_8z1a0_13",
113
+ "row-item--disabled": "_row-item--disabled_8z1a0_19",
114
+ "row-item__content": "_row-item__content_8z1a0_22"
115
+ }, O = y((t, c) => {
116
+ const { children: _, leftAdornment: o, disabled: r, onClick: a, buttons: n, ariaLabel: e, className: u } = t, m = s(o == null ? void 0 : o.className, h["row-item__adornment"]), b = {
117
+ onClick: (l) => {
118
+ r || a && a(l);
119
+ },
120
+ tabIndex: 0,
121
+ "aria-label": e,
122
+ role: "button"
123
+ }, d = o != null && o.customIcon ? o : { size: "1rem", ...o };
124
+ return /* @__PURE__ */ k(
125
+ "div",
126
+ {
127
+ "data-testid": t["data-testid"],
128
+ className: s(
129
+ h["row-item"],
130
+ a && h["row-item--clickable"],
131
+ a && r && h["row-item--disabled"],
132
+ u
133
+ ),
134
+ ...!!a && b,
135
+ ref: c,
136
+ children: [
137
+ o && /* @__PURE__ */ i(v, { ...d, className: m, disabled: r }),
138
+ /* @__PURE__ */ i("span", { className: s(h["row-item__content"]), children: _ }),
139
+ n && /* @__PURE__ */ i(
140
+ "div",
141
+ {
142
+ onClick: (l) => {
143
+ l == null || l.stopPropagation(), l == null || l.nativeEvent.stopImmediatePropagation();
144
+ },
145
+ children: n
146
+ }
147
+ )
148
+ ]
149
+ }
150
+ );
151
+ }), Q = y((t, c) => {
152
+ const { text: _, isSelected: o = !1, value: r, onChange: a } = t;
153
+ return /* @__PURE__ */ k(
154
+ "label",
155
+ {
156
+ className: s([w.toggle__label], { [w["toggle__label--selected"]]: o }),
157
+ "data-testid": t["data-testid"],
158
+ children: [
159
+ /* @__PURE__ */ i(
160
+ "input",
161
+ {
162
+ className: s([w.toggle__input]),
163
+ type: "radio",
164
+ ref: c,
165
+ value: r.toString(),
166
+ onChange: () => a(r),
167
+ role: "radio",
168
+ checked: o,
169
+ "aria-checked": o
170
+ }
171
+ ),
172
+ /* @__PURE__ */ i(N, { bold: !0, children: _ })
173
+ ]
174
+ }
175
+ );
176
+ });
177
+ export {
178
+ M as C,
179
+ O as R,
180
+ Q as T
181
+ };
@@ -1 +1 @@
1
- ._autocomplete_1mx2f_1{margin-bottom:16px}._autocomplete__dropdown-list_1mx2f_4{margin-top:.1rem;border:solid .0625rem var(--gray-25);border-radius:.375rem}._autocomplete__dropdown-item_1mx2f_9{padding:.375rem;list-style-type:none;cursor:pointer}._autocomplete__dropdown-item_1mx2f_9:hover{color:var(--accent)}
1
+ ._autocomplete_1k4ph_1{margin-bottom:16px;position:relative}._autocomplete__dropdown-list_1k4ph_5{position:absolute;background-color:var(--white-100);margin-top:.1rem;border:solid .0625rem var(--gray-25);border-radius:.375rem}._autocomplete__dropdown-list_1k4ph_5:hover{border-color:var(--gray-75)}._autocomplete__dropdown-item_1k4ph_15{background-color:var(--white-100);padding:.375rem;list-style-type:none;cursor:pointer}._autocomplete__dropdown-item_1k4ph_15:hover{color:var(--accent)}
@@ -1 +1 @@
1
- ._u-typography-h1_1qs0q_1{font-size:var(--heading-font-size-1);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-1);margin:0}._u-typography-h2_1qs0q_8{font-size:var(--heading-font-size-2);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-2);margin:0}._u-typography-h3_1qs0q_15{font-size:var(--heading-font-size-3);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-3);margin:0}._u-typography-h4_1qs0q_22{font-size:var(--heading-font-size-4);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-4);margin:0}._u-typography-h5_1qs0q_29{font-size:var(--heading-font-size-5);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-5);margin:0}._u-typography-h6_1qs0q_36{font-size:var(--heading-font-size-6);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-6);margin:0}._u-typography-base_1qs0q_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_1qs0q_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_1qs0q_53,._dialog__subtitle_1qs0q_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_1qs0q_57,._dialog__title--small_1qs0q_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_1qs0q_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_1qs0q_65{font-weight:var(--base-bold)}._u-typography-base--strikethrough_1qs0q_68{text-decoration:line-through}._u-typography-base--underlined_1qs0q_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_1qs0q_74{text-decoration:underline line-through}._dialog_1qs0q_53{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1300;display:flex;align-items:center;justify-content:center;-webkit-box-align:center;-webkit-box-pack:center}._dialog__backdrop_1qs0q_88{position:fixed;z-index:-1;width:100%;height:100%;background-color:rgb(var(--black-100-rgb),.05);-webkit-tap-highlight-color:transparent}._dialog__panel_1qs0q_96{position:relative;display:flex;flex-direction:column;gap:8px;width:680px;padding:2rem;overflow:hidden;font-weight:500;color:var(--gray-75);text-align:start;background-color:var(--white-100);border:1px solid rgb(218,226,237);border-radius:8px;box-shadow:0 10px 20px rgb(var(--black-100-rgb),.2)}._dialog__title_1qs0q_57{padding-bottom:1rem}._dialog__subtitle_1qs0q_53{margin-top:1rem;font-family:Lato,sans-serif;color:var(--secondary-orange-dark);text-align:left;letter-spacing:0}._dialog__divider_1qs0q_122{width:100%;border-top:1px solid var(--gray-10)}._dialog__close-icon_1qs0q_126{position:absolute;top:27px;right:16px;padding:0;margin:0;background:none;border:none}._dialog__actions_1qs0q_135{display:flex;gap:.5rem;justify-content:center;margin-top:1.5rem}
1
+ ._u-typography-h1_1rdlq_1{font-size:var(--heading-font-size-1);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-1);margin:0}._u-typography-h2_1rdlq_8{font-size:var(--heading-font-size-2);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-2);margin:0}._u-typography-h3_1rdlq_15{font-size:var(--heading-font-size-3);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-3);margin:0}._u-typography-h4_1rdlq_22{font-size:var(--heading-font-size-4);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-4);margin:0}._u-typography-h5_1rdlq_29{font-size:var(--heading-font-size-5);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-5);margin:0}._u-typography-h6_1rdlq_36{font-size:var(--heading-font-size-6);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-6);margin:0}._u-typography-base_1rdlq_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_1rdlq_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_1rdlq_53,._dialog__subtitle_1rdlq_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_1rdlq_57,._dialog__title--small_1rdlq_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_1rdlq_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_1rdlq_65{font-weight:var(--base-bold)}._u-typography-base--strikethrough_1rdlq_68{text-decoration:line-through}._u-typography-base--underlined_1rdlq_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_1rdlq_74{text-decoration:underline line-through}._dialog_1rdlq_53{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1300;display:flex;align-items:center;justify-content:center;-webkit-box-align:center;-webkit-box-pack:center}._dialog__backdrop_1rdlq_88{position:fixed;z-index:-1;width:100%;height:100%;background-color:rgb(var(--black-100-rgb),.05);-webkit-tap-highlight-color:transparent}._dialog__panel_1rdlq_96{position:relative;display:flex;flex-direction:column;gap:8px;width:680px;padding:2rem;overflow:hidden;font-weight:500;color:var(--gray-90);text-align:start;background-color:var(--white-100);border:1px solid rgb(218,226,237);border-radius:8px;box-shadow:0 10px 20px rgb(var(--black-100-rgb),.2)}._dialog__title_1rdlq_57{padding-bottom:1rem}._dialog__subtitle_1rdlq_53{margin-top:1rem;font-family:Lato,sans-serif;color:var(--secondary-orange-dark);text-align:left;letter-spacing:0}._dialog__divider_1rdlq_122{width:100%;border-top:1px solid var(--gray-10)}._dialog__close-icon_1rdlq_126{position:absolute;top:27px;right:16px;padding:0;margin:0;cursor:pointer;background:none;border:none}._dialog__actions_1rdlq_136{display:flex;gap:.5rem;justify-content:center;margin-top:1.5rem}
@@ -1 +1 @@
1
- ._u-typography-h1_k90cj_1{font-size:var(--heading-font-size-1);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-1);margin:0}._u-typography-h2_k90cj_8{font-size:var(--heading-font-size-2);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-2);margin:0}._u-typography-h3_k90cj_15{font-size:var(--heading-font-size-3);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-3);margin:0}._u-typography-h4_k90cj_22{font-size:var(--heading-font-size-4);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-4);margin:0}._u-typography-h5_k90cj_29{font-size:var(--heading-font-size-5);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-5);margin:0}._u-typography-h6_k90cj_36{font-size:var(--heading-font-size-6);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-6);margin:0}._u-typography-base_k90cj_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_k90cj_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_k90cj_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_k90cj_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_k90cj_61,._chip_k90cj_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_k90cj_65,._chip_k90cj_61{font-weight:var(--base-bold)}._u-typography-base--strikethrough_k90cj_68{text-decoration:line-through}._u-typography-base--underlined_k90cj_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_k90cj_74{text-decoration:underline line-through}._chip_k90cj_61{display:flex;align-items:center;width:fit-content;padding:.375rem .5rem;background-color:var(--cream);border-width:1px;border-radius:calc(var(--border-radius-soft) * 4)}._chip_k90cj_61:not(:disabled){color:rgb(var(--gray-95-rgb) .65)}._chip--button_k90cj_90{cursor:pointer;border-color:transparent}._chip--button_k90cj_90:disabled{cursor:initial}._chip--button_k90cj_90:focus-visible{outline:none}._chip--button_k90cj_90:focus{outline:2px solid var(--black-100)}._chip--outlined_k90cj_103{padding:.3125rem .5rem;background-color:var(--white-100);border:1px solid var(--border);border-radius:calc(var(--border-radius-soft) * 4)}._chip--contained_k90cj_109{padding:.3125rem .5rem;border:1px solid var(--border);border-color:var(--accent);border-radius:calc(var(--border-radius-soft) * 4)}._chip__adornment_k90cj_115{display:flex;align-items:center;margin-right:.5rem}._chip__remove_k90cj_120{display:flex;margin-left:.5rem}._chip__remove_k90cj_120:focus-visible{outline:none}._chip__remove_k90cj_120:focus:not(:disabled){border-radius:calc(var(--border-radius-soft) * 4);outline:2px solid var(--black-100)}._chip__remove--disabled_k90cj_131{cursor:default}._chip-loading_k90cj_135{display:inline-flex;min-width:6rem;height:2rem;border-radius:4rem}._row-item_8z1a0_1{display:flex;align-items:center;justify-content:space-between;padding:.5rem 1rem;border:1px solid var(--gray-10);border-radius:6px;outline:none}._row-item_8z1a0_1:focus-visible{outline:none}._row-item--clickable_8z1a0_13{cursor:pointer}._row-item--clickable_8z1a0_13:focus{outline:2px solid var(--black-100)}._row-item--disabled_8z1a0_19{cursor:not-allowed}._row-item__content_8z1a0_22{display:flex;flex-grow:1;align-items:center;justify-content:space-between;padding-right:1rem;padding-left:1rem;margin:0;text-align:center}._row-item__content_8z1a0_22:focus-visible{outline:none}._row-item__content_8z1a0_22:focus{outline:2px solid var(--black-100)}
1
+ ._u-typography-h1_1wvod_1{font-size:var(--heading-font-size-1);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-1);margin:0}._u-typography-h2_1wvod_8{font-size:var(--heading-font-size-2);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-2);margin:0}._u-typography-h3_1wvod_15{font-size:var(--heading-font-size-3);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-3);margin:0}._u-typography-h4_1wvod_22{font-size:var(--heading-font-size-4);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-4);margin:0}._u-typography-h5_1wvod_29{font-size:var(--heading-font-size-5);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-5);margin:0}._u-typography-h6_1wvod_36{font-size:var(--heading-font-size-6);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-6);margin:0}._u-typography-base_1wvod_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_1wvod_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_1wvod_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_1wvod_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_1wvod_61,._chip_1wvod_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_1wvod_65,._chip_1wvod_61{font-weight:var(--base-bold)}._u-typography-base--strikethrough_1wvod_68{text-decoration:line-through}._u-typography-base--underlined_1wvod_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_1wvod_74{text-decoration:underline line-through}._chip_1wvod_61{display:flex;align-items:center;width:fit-content;padding:.375rem .5rem;background-color:var(--cream);border-width:1px;border-radius:calc(var(--border-radius-soft) * 4)}._chip_1wvod_61:not(:disabled){color:rgb(var(--gray-95-rgb) .65)}._chip--button_1wvod_90{cursor:pointer;border-color:transparent}._chip--button_1wvod_90:disabled{pointer-events:none;cursor:initial}._chip--button_1wvod_90:focus-visible{outline:none}._chip--button_1wvod_90:focus{outline:2px solid var(--black-100)}._chip--outlined_1wvod_104{padding:.3125rem .5rem;background-color:var(--white-100);border:1px solid var(--border);border-radius:calc(var(--border-radius-soft) * 4)}._chip--contained_1wvod_110{padding:.3125rem .5rem;border:1px solid var(--border);border-color:var(--accent);border-radius:calc(var(--border-radius-soft) * 4)}._chip__adornment_1wvod_116{display:flex;align-items:center;margin-right:.5rem}._chip__remove_1wvod_121{display:flex;margin-left:.5rem;cursor:pointer}._chip__remove_1wvod_121:focus-visible{outline:none}._chip__remove_1wvod_121:focus:not(:disabled){border-radius:calc(var(--border-radius-soft) * 4);outline:2px solid var(--black-100)}._chip__remove--disabled_1wvod_133{cursor:default}._chip-loading_1wvod_137{display:inline-flex;min-width:6rem;height:2rem;border-radius:4rem}._row-item_8z1a0_1{display:flex;align-items:center;justify-content:space-between;padding:.5rem 1rem;border:1px solid var(--gray-10);border-radius:6px;outline:none}._row-item_8z1a0_1:focus-visible{outline:none}._row-item--clickable_8z1a0_13{cursor:pointer}._row-item--clickable_8z1a0_13:focus{outline:2px solid var(--black-100)}._row-item--disabled_8z1a0_19{cursor:not-allowed}._row-item__content_8z1a0_22{display:flex;flex-grow:1;align-items:center;justify-content:space-between;padding-right:1rem;padding-left:1rem;margin:0;text-align:center}._row-item__content_8z1a0_22:focus-visible{outline:none}._row-item__content_8z1a0_22:focus{outline:2px solid var(--black-100)}
@@ -1,12 +1,12 @@
1
1
  import '../../assets/Autocomplete.css';
2
- import { jsxs as Fe, jsx as $ } from "react/jsx-runtime";
2
+ import { jsxs as qe, jsx as $ } from "react/jsx-runtime";
3
3
  import * as g from "react";
4
- import { useId as pt, useState as qe } from "react";
4
+ import { useId as pt, useState as Be } from "react";
5
5
  import { c as ee } from "../../clsx-DB4S2d7J.js";
6
- import { Icon as Be } from "../Icon/Icon.js";
6
+ import { Icon as Ke } from "../Icon/Icon.js";
7
7
  import { s as P, I as gt } from "../../Input.module-ZTRZRcNt.js";
8
- import { Typography as Ke } from "../Typography/Typography.js";
9
- import { b as Ue, s as ht } from "../../useSlotProps-kRhf7Gil.js";
8
+ import { Typography as Ue } from "../Typography/Typography.js";
9
+ import { b as je, s as ht } from "../../useSlotProps-kRhf7Gil.js";
10
10
  import { u as mt } from "../../useId-BW-oWmul.js";
11
11
  import { u as $e } from "../../useControlled-CCMYYdCM.js";
12
12
  import { u as me } from "../../useEventCallback-BAQJJ3ye.js";
@@ -16,7 +16,7 @@ const bt = (u) => {
16
16
  b.current = u;
17
17
  }), b.current;
18
18
  };
19
- function je(u) {
19
+ function ze(u) {
20
20
  return typeof u.normalize < "u" ? u.normalize("NFD").replace(/[\u0300-\u036f]/g, "") : u;
21
21
  }
22
22
  function xt(u = {}) {
@@ -33,10 +33,10 @@ function xt(u = {}) {
33
33
  getOptionLabel: m
34
34
  }) => {
35
35
  let I = V ? F.trim() : F;
36
- h && (I = I.toLowerCase()), b && (I = je(I));
36
+ h && (I = I.toLowerCase()), b && (I = ze(I));
37
37
  const q = I ? M.filter((Y) => {
38
38
  let _ = (H || m)(Y);
39
- return h && (_ = _.toLowerCase()), b && (_ = je(_)), D === "start" ? _.indexOf(I) === 0 : _.indexOf(I) > -1;
39
+ return h && (_ = _.toLowerCase()), b && (_ = ze(_)), D === "start" ? _.indexOf(I) === 0 : _.indexOf(I) > -1;
40
40
  }) : M;
41
41
  return typeof A == "number" ? q.slice(0, A) : q;
42
42
  };
@@ -47,7 +47,7 @@ function be(u, b) {
47
47
  return h;
48
48
  return -1;
49
49
  }
50
- const yt = xt(), ze = 5, Ot = (u) => {
50
+ const yt = xt(), Je = 5, Ot = (u) => {
51
51
  var b;
52
52
  return u.current !== null && ((b = u.current.parentElement) == null ? void 0 : b.contains(document.activeElement));
53
53
  };
@@ -110,7 +110,7 @@ function It(u) {
110
110
  }
111
111
  return e;
112
112
  };
113
- const we = g.useRef(!1), ke = g.useRef(!0), d = g.useRef(null), N = g.useRef(null), [ue, Xe] = g.useState(null), [S, Ne] = g.useState(-1), Ae = D ? 0 : -1, x = g.useRef(Ae), [r, Ge] = $e({
113
+ const we = g.useRef(!1), ke = g.useRef(!0), d = g.useRef(null), N = g.useRef(null), [ue, Xe] = g.useState(null), [S, Ne] = g.useState(-1), De = D ? 0 : -1, x = g.useRef(De), [r, Ge] = $e({
114
114
  controlled: We,
115
115
  default: I,
116
116
  name: m
@@ -119,7 +119,7 @@ function It(u) {
119
119
  default: "",
120
120
  name: m,
121
121
  state: "inputValue"
122
- }), [fe, De] = g.useState(!1), de = g.useCallback((t, e) => {
122
+ }), [fe, Ee] = g.useState(!1), de = g.useCallback((t, e) => {
123
123
  if (!(i ? r.length < e.length : e !== null) && !M)
124
124
  return;
125
125
  let o;
@@ -132,17 +132,17 @@ function It(u) {
132
132
  o = typeof s == "string" ? s : "";
133
133
  }
134
134
  a !== o && (ce(o), v && v(t, o, "reset"));
135
- }, [y, a, i, v, ce, M, r]), [z, Ee] = $e({
135
+ }, [y, a, i, v, ce, M, r]), [z, ve] = $e({
136
136
  controlled: c,
137
137
  default: !1,
138
138
  name: m,
139
139
  state: "open"
140
- }), [Qe, ve] = g.useState(!0), Ce = !i && r != null && a === y(r), w = z && !G, f = w ? ye(
140
+ }), [Qe, Ce] = g.useState(!0), Le = !i && r != null && a === y(r), w = z && !G, f = w ? ye(
141
141
  _e.filter((t) => !(ne && (i ? r : [r]).some((e) => e !== null && E(t, e)))),
142
142
  // we use the empty string to manipulate `filterOptions` to not filter any options
143
143
  // i.e. the filter predicate always returns true
144
144
  {
145
- inputValue: Ce && Qe ? "" : a,
145
+ inputValue: Le && Qe ? "" : a,
146
146
  getOptionLabel: y
147
147
  }
148
148
  ) : [], C = bt({
@@ -210,7 +210,7 @@ function It(u) {
210
210
  const l = Ze((() => {
211
211
  const p = f.length - 1;
212
212
  if (e === "reset")
213
- return Ae;
213
+ return De;
214
214
  if (e === "start")
215
215
  return 0;
216
216
  if (e === "end")
@@ -301,9 +301,9 @@ function It(u) {
301
301
  Pe();
302
302
  }, [Pe]);
303
303
  const K = (t) => {
304
- z || (Ee(!0), ve(!0), ae && ae(t));
304
+ z || (ve(!0), Ce(!0), ae && ae(t));
305
305
  }, Q = (t, e) => {
306
- z && (Ee(!1), X && X(t, e));
306
+ z && (ve(!1), X && X(t, e));
307
307
  }, J = (t, e, n, o) => {
308
308
  if (i) {
309
309
  if (r.length === e.length && r.every((s, l) => s === e[l]))
@@ -340,13 +340,13 @@ function It(u) {
340
340
  return n;
341
341
  }
342
342
  }
343
- const Le = (t, e) => {
343
+ const Ve = (t, e) => {
344
344
  if (!i)
345
345
  return;
346
346
  a === "" && Q(t, "toggleInput");
347
347
  let n = S;
348
348
  S === -1 ? a === "" && e === "previous" && (n = r.length - 1) : (n += e === "next" ? 1 : -1, n < 0 && (n = 0), n === r.length && (n = -1)), n = nt(n, e), Ne(n), pe(n);
349
- }, Ve = (t) => {
349
+ }, Me = (t) => {
350
350
  we.current = !0, ce(""), v && v(t, "", "clear"), J(t, i ? [] : null, "clear");
351
351
  }, rt = (t) => (e) => {
352
352
  if (t.onKeyDown && t.onKeyDown(e), !e.defaultMuiPrevented && (S !== -1 && ["ArrowLeft", "ArrowRight"].indexOf(e.key) === -1 && (Ne(-1), pe(-1)), e.which !== 229))
@@ -369,7 +369,7 @@ function It(u) {
369
369
  break;
370
370
  case "PageUp":
371
371
  e.preventDefault(), L({
372
- diff: -ze,
372
+ diff: -Je,
373
373
  direction: "previous",
374
374
  reason: "keyboard",
375
375
  event: e
@@ -377,7 +377,7 @@ function It(u) {
377
377
  break;
378
378
  case "PageDown":
379
379
  e.preventDefault(), L({
380
- diff: ze,
380
+ diff: Je,
381
381
  direction: "next",
382
382
  reason: "keyboard",
383
383
  event: e
@@ -400,10 +400,10 @@ function It(u) {
400
400
  }), K(e);
401
401
  break;
402
402
  case "ArrowLeft":
403
- Le(e, "previous");
403
+ Ve(e, "previous");
404
404
  break;
405
405
  case "ArrowRight":
406
- Le(e, "next");
406
+ Ve(e, "next");
407
407
  break;
408
408
  case "Enter":
409
409
  if (x.current !== -1 && w) {
@@ -412,10 +412,10 @@ function It(u) {
412
412
  return;
413
413
  Z(e, n, "selectOption"), A && d.current.setSelectionRange(d.current.value.length, d.current.value.length);
414
414
  } else
415
- R && a !== "" && Ce === !1 && (i && e.preventDefault(), Z(e, a, "createOption", "freeSolo"));
415
+ R && a !== "" && Le === !1 && (i && e.preventDefault(), Z(e, a, "createOption", "freeSolo"));
416
416
  break;
417
417
  case "Escape":
418
- w ? (e.preventDefault(), e.stopPropagation(), Q(e, "escape")) : F && (a !== "" || i && r.length > 0) && (e.preventDefault(), e.stopPropagation(), Ve(e));
418
+ w ? (e.preventDefault(), e.stopPropagation(), Q(e, "escape")) : F && (a !== "" || i && r.length > 0) && (e.preventDefault(), e.stopPropagation(), Me(e));
419
419
  break;
420
420
  case "Backspace":
421
421
  if (i && !G && a === "" && r.length > 0) {
@@ -435,16 +435,16 @@ function It(u) {
435
435
  break;
436
436
  }
437
437
  }, ot = (t) => {
438
- De(!0), T && !we.current && K(t);
439
- }, Me = (t) => {
438
+ Ee(!0), T && !we.current && K(t);
439
+ }, Re = (t) => {
440
440
  if (b(N)) {
441
441
  d.current.focus();
442
442
  return;
443
443
  }
444
- De(!1), ke.current = !0, we.current = !1, H && x.current !== -1 && w ? Z(t, f[x.current], "blur") : H && R && a !== "" ? Z(t, a, "blur", "freeSolo") : M && de(t, r), Q(t, "blur");
444
+ Ee(!1), ke.current = !0, we.current = !1, H && x.current !== -1 && w ? Z(t, f[x.current], "blur") : H && R && a !== "" ? Z(t, a, "blur", "freeSolo") : M && de(t, r), Q(t, "blur");
445
445
  }, st = (t) => {
446
446
  const e = t.target.value;
447
- a !== e && (ce(e), ve(!1), v && v(t, e, "input")), e === "" ? !q && !i && J(t, null, "clear") : K(t);
447
+ a !== e && (ce(e), Ce(!1), v && v(t, e, "input")), e === "" ? !q && !i && J(t, null, "clear") : K(t);
448
448
  }, it = (t) => {
449
449
  const e = Number(t.currentTarget.getAttribute("data-option-index"));
450
450
  x.current !== e && B({
@@ -466,22 +466,22 @@ function It(u) {
466
466
  n.splice(t, 1), J(e, n, "removeOption", {
467
467
  option: r[t]
468
468
  });
469
- }, Re = (t) => {
469
+ }, He = (t) => {
470
470
  z ? Q(t, "toggleInput") : K(t);
471
471
  }, ct = (t) => {
472
472
  t.currentTarget.contains(t.target) && t.target.getAttribute("id") !== k && t.preventDefault();
473
473
  }, ft = (t) => {
474
474
  t.currentTarget.contains(t.target) && (d.current.focus(), Ye && ke.current && d.current.selectionEnd - d.current.selectionStart === 0 && d.current.select(), ke.current = !1);
475
475
  }, dt = (t) => {
476
- !_ && (a === "" || !z) && Re(t);
476
+ !_ && (a === "" || !z) && He(t);
477
477
  };
478
478
  let Te = R && a.length > 0;
479
479
  Te = Te || (i ? r.length > 0 : r !== null);
480
- let He = f;
480
+ let Fe = f;
481
481
  if (j) {
482
482
  const t = /* @__PURE__ */ new Map();
483
483
  let e = !1;
484
- He = f.reduce((n, o, s) => {
484
+ Fe = f.reduce((n, o, s) => {
485
485
  const l = j(o);
486
486
  return n.length > 0 && n[n.length - 1].group === l ? n[n.length - 1].options.push(o) : (process.env.NODE_ENV !== "production" && (t.get(l) && !e && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${m} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), e = !0), t.set(l, !0)), n.push({
487
487
  key: s,
@@ -491,8 +491,8 @@ function It(u) {
491
491
  })), n;
492
492
  }, []);
493
493
  }
494
- return _ && fe && Me(), {
495
- getRootProps: (t = {}) => Ue({
494
+ return _ && fe && Re(), {
495
+ getRootProps: (t = {}) => je({
496
496
  "aria-owns": Se ? `${k}-listbox` : null
497
497
  }, t, {
498
498
  onKeyDown: rt(t),
@@ -506,7 +506,7 @@ function It(u) {
506
506
  getInputProps: () => ({
507
507
  id: k,
508
508
  value: a,
509
- onBlur: Me,
509
+ onBlur: Re,
510
510
  onFocus: ot,
511
511
  onChange: st,
512
512
  onMouseDown: dt,
@@ -528,16 +528,16 @@ function It(u) {
528
528
  getClearProps: () => ({
529
529
  tabIndex: -1,
530
530
  type: "button",
531
- onClick: Ve
531
+ onClick: Me
532
532
  }),
533
533
  getPopupIndicatorProps: () => ({
534
534
  tabIndex: -1,
535
535
  type: "button",
536
- onClick: Re
536
+ onClick: He
537
537
  }),
538
538
  getTagProps: ({
539
539
  index: t
540
- }) => Ue({
540
+ }) => je({
541
541
  key: t,
542
542
  "data-tag-index": t,
543
543
  tabIndex: -1
@@ -582,13 +582,13 @@ function It(u) {
582
582
  anchorEl: ue,
583
583
  setAnchorEl: Xe,
584
584
  focusedTag: S,
585
- groupedOptions: He
585
+ groupedOptions: Fe
586
586
  };
587
587
  }
588
- const _t = "_autocomplete_1mx2f_1", Je = {
588
+ const _t = "_autocomplete_1k4ph_1", Ae = {
589
589
  autocomplete: _t,
590
- "autocomplete__dropdown-list": "_autocomplete__dropdown-list_1mx2f_4",
591
- "autocomplete__dropdown-item": "_autocomplete__dropdown-item_1mx2f_9"
590
+ "autocomplete__dropdown-list": "_autocomplete__dropdown-list_1k4ph_5",
591
+ "autocomplete__dropdown-item": "_autocomplete__dropdown-item_1k4ph_15"
592
592
  }, vt = ({
593
593
  label: u,
594
594
  type: b,
@@ -614,7 +614,7 @@ const _t = "_autocomplete_1mx2f_1", Je = {
614
614
  }) => {
615
615
  const re = pt(), j = M || `input_${re}`;
616
616
  Object.assign(W, { "data-testid": ne });
617
- const [oe, Oe] = qe(), [se, Ie] = qe(""), { getRootProps: E, getInputProps: i, getOptionProps: ie, groupedOptions: X, getListboxProps: le, focused: v, getInputLabelProps: ae } = It({
617
+ const [oe, Oe] = Be(), [se, Ie] = Be(""), { getRootProps: E, getInputProps: i, getOptionProps: ie, groupedOptions: X, getListboxProps: le, focused: v, getInputLabelProps: ae } = It({
618
618
  id: j,
619
619
  options: h,
620
620
  getOptionLabel: (c) => typeof c == "string" ? c : c == null ? void 0 : c.label,
@@ -627,9 +627,9 @@ const _t = "_autocomplete_1mx2f_1", Je = {
627
627
  q && q(c, T), Ie(T);
628
628
  }
629
629
  });
630
- return /* @__PURE__ */ Fe("div", { className: "autocomplete", children: [
630
+ return /* @__PURE__ */ qe("div", { className: Ae.autocomplete, children: [
631
631
  u && /* @__PURE__ */ $(
632
- Ke,
632
+ Ue,
633
633
  {
634
634
  element: "label",
635
635
  elementProps: { ...ae() },
@@ -660,25 +660,25 @@ const _t = "_autocomplete_1mx2f_1", Je = {
660
660
  }
661
661
  },
662
662
  startAdornment: H && /* @__PURE__ */ $("span", { className: P["input__left-icon"], children: H }),
663
- endAdornment: b === "search" ? /* @__PURE__ */ $("span", { className: P["input__right-icon"], children: /* @__PURE__ */ $(Be, { color: "var(--accent)", icon: "magnifying-glass" }) }) : V && /* @__PURE__ */ $("span", { className: P["input__right-icon"], children: V })
663
+ endAdornment: b === "search" ? /* @__PURE__ */ $("span", { className: P["input__right-icon"], children: /* @__PURE__ */ $(Ke, { color: "var(--accent)", icon: "magnifying-glass" }) }) : V && /* @__PURE__ */ $("span", { className: P["input__right-icon"], children: V })
664
664
  }
665
665
  ) }),
666
- X.length > 0 && !F && /* @__PURE__ */ $("ul", { ...le(), className: Je["autocomplete__dropdown-list"], children: X.map((c, T) => /* @__PURE__ */ $(
666
+ X.length > 0 && !F && /* @__PURE__ */ $("ul", { ...le(), className: Ae["autocomplete__dropdown-list"], children: X.map((c, T) => /* @__PURE__ */ $(
667
667
  "li",
668
668
  {
669
669
  tabIndex: T,
670
- className: Je["autocomplete__dropdown-item"],
670
+ className: Ae["autocomplete__dropdown-item"],
671
671
  ...ie({ option: c, index: T }),
672
672
  children: typeof c == "string" ? c : c == null ? void 0 : c.label
673
673
  }
674
674
  )) }),
675
- (D || A) && /* @__PURE__ */ Fe(
676
- Ke,
675
+ (D || A) && /* @__PURE__ */ qe(
676
+ Ue,
677
677
  {
678
678
  className: D ? ee(P["input__error-message"], xe) : ee(P["input__info-message"], te),
679
679
  "data-testid": D ? U : R,
680
680
  children: [
681
- /* @__PURE__ */ $(Be, { icon: "circle-exclamation" }),
681
+ /* @__PURE__ */ $(Ke, { icon: "circle-exclamation" }),
682
682
  D || A
683
683
  ]
684
684
  }
@@ -5,8 +5,8 @@ import "../Adornment/Adornment.js";
5
5
  import "../Icon/Icon.js";
6
6
  import "../Typography/Typography.js";
7
7
  import "../Button/Button.js";
8
- import { C as k } from "../../Toggle-BQPzu8NV.js";
9
- import "../Dialog/Backdrop.js";
8
+ import { C as k } from "../../Toggle-CRfZgFJp.js";
9
+ import "../Dialog/Dialog.js";
10
10
  import "../IconButton/IconButton.js";
11
11
  import "../Select/Select.js";
12
12
  import "../Skeleton/Skeleton.js";
@@ -24,7 +24,9 @@ export default meta;
24
24
  type Story = StoryObj<typeof meta>;
25
25
  export declare const Simple: Story;
26
26
  export declare const Clickable: Story;
27
+ export declare const Disabled: Story;
27
28
  export declare const ClickableWithRemove: Story;
29
+ export declare const ClickableOnlyRemove: Story;
28
30
  export declare const FullDefault: Story;
29
31
  export declare const FullOutlined: Story;
30
32
  export declare const FullContained: Story;
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { s as t } from "../../Dialog.module-HFAN4mAD.js";
2
+ import { s as t } from "../../Dialog.module-D9e4RsKo.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-HFAN4mAD.js";
3
+ import { s as e } from "../../Dialog.module-D9e4RsKo.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-HFAN4mAD.js";
3
+ import { s as t } from "../../Dialog.module-D9e4RsKo.js";
4
4
  import { B as a } from "../../Button-DiLqcAJG.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,6 +1,6 @@
1
- import { default as DialogTitle } from './DialogTitle';
2
- import { default as Content } from './Content';
3
- import { default as Actions } from './Actions';
1
+ import { default as DialogTitle, DialogTitleProps } from './DialogTitle';
2
+ import { default as Content, DialogContentProps } from './Content';
3
+ import { default as Actions, DialogActionProps } from './Actions';
4
4
  import { ModalProps } from '@mui/base';
5
5
  import { JSXElementConstructor, ReactElement, ReactNode } from 'react';
6
6
 
@@ -12,11 +12,14 @@ export interface DialogProps extends ModalProps {
12
12
  dialogTitle: ReactNode;
13
13
  /** display subtitle */
14
14
  dialogSubtitle?: ReactNode;
15
- /** if true, show skeleton */
16
- isLoading?: boolean;
17
15
  /** callback for when close is clicked */
18
16
  onClose?: () => void;
19
17
  }
20
- declare const Dialog: ({ children, dialogTitle, dialogSubtitle, isLoading, onClose, ...props }: DialogProps) => import("react/jsx-runtime").JSX.Element;
18
+ declare const Dialog: {
19
+ ({ children, dialogTitle, dialogSubtitle, onClose, ...props }: DialogProps): import("react/jsx-runtime").JSX.Element;
20
+ Title: import('react').FunctionComponent<DialogTitleProps>;
21
+ Content: import('react').FunctionComponent<DialogContentProps>;
22
+ Actions: import('react').FunctionComponent<DialogActionProps>;
23
+ };
21
24
  export { Dialog, DialogTitle, Content, Actions };
22
25
  export default Dialog;