@pismo/marola 0.0.1-alpha.6 → 0.0.1-alpha.8

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 (72) hide show
  1. package/dist/{Button-W6tM-_IT.js → Button-B1umG8kJ.js} +2 -2
  2. package/dist/ClickAwayListener-BKznXF1d.js +106 -0
  3. package/dist/Portal-BcdMtRGF.js +73 -0
  4. package/dist/Tab-CRwnhsj5.js +254 -0
  5. package/dist/Tabs.module-yYcTJnj6.js +103 -0
  6. package/dist/assets/Input.css +1 -0
  7. package/dist/assets/InputSearch.css +1 -0
  8. package/dist/assets/PageHeader.css +1 -1
  9. package/dist/assets/Snackbar.css +1 -0
  10. package/dist/assets/Toggle.css +1 -0
  11. package/dist/assets/global.css +1 -1
  12. package/dist/components/Advice/Advice.d.ts +6 -3
  13. package/dist/components/Advice/Advice.js +15 -15
  14. package/dist/components/Button/Button.d.ts +8 -0
  15. package/dist/components/Button/Button.js +1 -1
  16. package/dist/components/Button/Button.stories.d.ts +60 -0
  17. package/dist/components/Button/Button.stories.js +40 -0
  18. package/dist/components/Dialog/CloseIconButton.js +9 -9
  19. package/dist/components/Dialog/Dialog.d.ts +3 -2
  20. package/dist/components/Dialog/Dialog.js +10 -9
  21. package/dist/components/Dialog/Dialog.stories.d.ts +343 -0
  22. package/dist/components/Dialog/Dialog.stories.js +59 -0
  23. package/dist/components/Icon/Icon.d.ts +15 -4
  24. package/dist/components/Icon/Icon.js +92 -6
  25. package/dist/components/IconButton/IconButton.js +1 -1
  26. package/dist/components/Input/Input.d.ts +44 -0
  27. package/dist/components/Input/Input.js +497 -0
  28. package/dist/components/Input/Input.stories.d.ts +43 -0
  29. package/dist/components/Input/Input.stories.js +106 -0
  30. package/dist/components/InputSearch/InputSearch.d.ts +11 -0
  31. package/dist/components/InputSearch/InputSearch.js +29 -0
  32. package/dist/components/InputSearch/InputSearch.stories.d.ts +22 -0
  33. package/dist/components/InputSearch/InputSearch.stories.js +36 -0
  34. package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +2 -0
  35. package/dist/components/LoadingSpinner/LoadingSpinner.stories.d.ts +14 -0
  36. package/dist/components/LoadingSpinner/LoadingSpinner.stories.js +38 -0
  37. package/dist/components/PageHeader/PageHeader.js +25 -25
  38. package/dist/components/PageHeader/PageHeader.stories.js +3 -3
  39. package/dist/components/Pagination/Pagination.d.ts +1 -1
  40. package/dist/components/Pagination/Pagination.js +10 -10
  41. package/dist/components/Snackbar/Snackbar.d.ts +13 -0
  42. package/dist/components/Snackbar/Snackbar.js +622 -0
  43. package/dist/components/SortTooltip/SortTooltip.d.ts +1 -1
  44. package/dist/components/SortTooltip/SortTooltip.js +8 -8
  45. package/dist/components/Table/Table.d.ts +1 -1
  46. package/dist/components/Table/Table.js +15 -15
  47. package/dist/components/Tabs/Tab.js +6 -239
  48. package/dist/components/Tabs/TabPanel.js +18 -19
  49. package/dist/components/Tabs/Tabs.d.ts +2 -0
  50. package/dist/components/Tabs/Tabs.js +12 -8
  51. package/dist/components/Toggle/Toggle.d.ts +12 -0
  52. package/dist/components/Toggle/Toggle.js +251 -0
  53. package/dist/components/Toggle/Toggle.stories.d.ts +22 -0
  54. package/dist/components/Toggle/Toggle.stories.js +27 -0
  55. package/dist/components/Tooltip/Tooltip.js +558 -655
  56. package/dist/components/Typography/Typography.d.ts +5 -5
  57. package/dist/components/Typography/Typography.stories.d.ts +13 -0
  58. package/dist/components/Typography/Typography.stories.js +15 -15
  59. package/dist/components/Typography/typography.test.js +5 -8
  60. package/dist/{Portal-P3fPvS3-.js → index-BNWbc5Kh.js} +5709 -5776
  61. package/dist/{index-D2P7y2mE.js → index-CqjC7P5Y.js} +4 -3
  62. package/dist/main.d.ts +17 -8
  63. package/dist/main.js +55 -28
  64. package/dist/useButton-Bc8IAgyk.js +106 -0
  65. package/dist/useIsFocusVisible-BH4IAdcw.js +69 -0
  66. package/dist/useTimeout-DxF9kiZL.js +36 -0
  67. package/package.json +5 -4
  68. package/dist/ListContext-Dj2Va7Iv.js +0 -18
  69. package/dist/Tabs.module-BA-PC7fA.js +0 -66
  70. package/dist/react-CGNQ6M5x.js +0 -117
  71. package/dist/useButton-JpyBo5M4.js +0 -187
  72. package/dist/useCompoundItem-CTYi5M_E.js +0 -41
@@ -1,8 +1,8 @@
1
1
  import { _ as T, a as i } from "./objectWithoutPropertiesLoose-D7Cp0Pg_.js";
2
2
  import * as c from "react";
3
- import { g as _, a as x, u as B, P as o, c as O, b as D } from "./index-D2P7y2mE.js";
3
+ import { g as _, a as x, b as B, P as o, c as O, d as D } from "./index-CqjC7P5Y.js";
4
4
  import { jsx as F } from "react/jsx-runtime";
5
- import { u as S } from "./useButton-JpyBo5M4.js";
5
+ import { u as S } from "./useButton-Bc8IAgyk.js";
6
6
  const m = "Button";
7
7
  function U(s) {
8
8
  return _(m, s);
@@ -0,0 +1,106 @@
1
+ import * as t from "react";
2
+ import { u as C, P as f } from "./index-CqjC7P5Y.js";
3
+ import { jsx as w } from "react/jsx-runtime";
4
+ import { u as L, o as h, e as b, a as g } from "./index-BNWbc5Kh.js";
5
+ function T(c) {
6
+ return c.substring(2).toLowerCase();
7
+ }
8
+ function D(c, s) {
9
+ return s.documentElement.clientWidth < c.clientX || s.documentElement.clientHeight < c.clientY;
10
+ }
11
+ function v(c) {
12
+ const {
13
+ children: s,
14
+ disableReactTree: y = !1,
15
+ mouseEvent: i = "onClick",
16
+ onClickAway: P,
17
+ touchEvent: u = "onTouchEnd"
18
+ } = c, l = t.useRef(!1), o = t.useRef(null), d = t.useRef(!1), p = t.useRef(!1);
19
+ t.useEffect(() => (setTimeout(() => {
20
+ d.current = !0;
21
+ }, 0), () => {
22
+ d.current = !1;
23
+ }), []);
24
+ const k = C(
25
+ // @ts-expect-error TODO upstream fix
26
+ s.ref,
27
+ o
28
+ ), a = L((e) => {
29
+ const n = p.current;
30
+ p.current = !1;
31
+ const r = h(o.current);
32
+ if (!d.current || !o.current || "clientX" in e && D(e, r))
33
+ return;
34
+ if (l.current) {
35
+ l.current = !1;
36
+ return;
37
+ }
38
+ let E;
39
+ e.composedPath ? E = e.composedPath().indexOf(o.current) > -1 : E = !r.documentElement.contains(
40
+ // @ts-expect-error returns `false` as intended when not dispatched from a Node
41
+ e.target
42
+ ) || o.current.contains(
43
+ // @ts-expect-error returns `false` as intended when not dispatched from a Node
44
+ e.target
45
+ ), !E && (y || !n) && P(e);
46
+ }), R = (e) => (n) => {
47
+ p.current = !0;
48
+ const r = s.props[e];
49
+ r && r(n);
50
+ }, m = {
51
+ ref: k
52
+ };
53
+ return u !== !1 && (m[u] = R(u)), t.useEffect(() => {
54
+ if (u !== !1) {
55
+ const e = T(u), n = h(o.current), r = () => {
56
+ l.current = !0;
57
+ };
58
+ return n.addEventListener(e, a), n.addEventListener("touchmove", r), () => {
59
+ n.removeEventListener(e, a), n.removeEventListener("touchmove", r);
60
+ };
61
+ }
62
+ }, [a, u]), i !== !1 && (m[i] = R(i)), t.useEffect(() => {
63
+ if (i !== !1) {
64
+ const e = T(i), n = h(o.current);
65
+ return n.addEventListener(e, a), () => {
66
+ n.removeEventListener(e, a);
67
+ };
68
+ }
69
+ }, [a, i]), /* @__PURE__ */ w(t.Fragment, {
70
+ children: /* @__PURE__ */ t.cloneElement(s, m)
71
+ });
72
+ }
73
+ process.env.NODE_ENV !== "production" && (v.propTypes = {
74
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
75
+ // │ These PropTypes are generated from the TypeScript type definitions. │
76
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
77
+ // └─────────────────────────────────────────────────────────────────────┘
78
+ /**
79
+ * The wrapped element.
80
+ */
81
+ children: b.isRequired,
82
+ /**
83
+ * If `true`, the React tree is ignored and only the DOM tree is considered.
84
+ * This prop changes how portaled elements are handled.
85
+ * @default false
86
+ */
87
+ disableReactTree: f.bool,
88
+ /**
89
+ * The mouse event to listen to. You can disable the listener by providing `false`.
90
+ * @default 'onClick'
91
+ */
92
+ mouseEvent: f.oneOf(["onClick", "onMouseDown", "onMouseUp", "onPointerDown", "onPointerUp", !1]),
93
+ /**
94
+ * Callback fired when a "click away" event is detected.
95
+ */
96
+ onClickAway: f.func.isRequired,
97
+ /**
98
+ * The touch event to listen to. You can disable the listener by providing `false`.
99
+ * @default 'onTouchEnd'
100
+ */
101
+ touchEvent: f.oneOf(["onTouchEnd", "onTouchStart", !1])
102
+ });
103
+ process.env.NODE_ENV !== "production" && (v.propTypes = g(v.propTypes));
104
+ export {
105
+ v as C
106
+ };
@@ -0,0 +1,73 @@
1
+ import * as o from "react";
2
+ import { r as P, a as y } from "./index-BNWbc5Kh.js";
3
+ import { u as T, s as a, P as i } from "./index-CqjC7P5Y.js";
4
+ import { jsx as c } from "react/jsx-runtime";
5
+ import { u as f } from "./useEnhancedEffect-CJGo-L3B.js";
6
+ function N(t, l, s, n, u) {
7
+ if (process.env.NODE_ENV === "production")
8
+ return null;
9
+ const e = t[l], r = u || l;
10
+ return e == null ? null : e && e.nodeType !== 1 ? new Error(`Invalid ${n} \`${r}\` supplied to \`${s}\`. Expected an HTMLElement.`) : null;
11
+ }
12
+ function h(t) {
13
+ return typeof t == "function" ? t() : t;
14
+ }
15
+ const p = /* @__PURE__ */ o.forwardRef(function(l, s) {
16
+ const {
17
+ children: n,
18
+ container: u,
19
+ disablePortal: e = !1
20
+ } = l, [r, d] = o.useState(null), m = T(/* @__PURE__ */ o.isValidElement(n) ? n.ref : null, s);
21
+ if (f(() => {
22
+ e || d(h(u) || document.body);
23
+ }, [u, e]), f(() => {
24
+ if (r && !e)
25
+ return a(s, r), () => {
26
+ a(s, null);
27
+ };
28
+ }, [s, r, e]), e) {
29
+ if (/* @__PURE__ */ o.isValidElement(n)) {
30
+ const E = {
31
+ ref: m
32
+ };
33
+ return /* @__PURE__ */ o.cloneElement(n, E);
34
+ }
35
+ return /* @__PURE__ */ c(o.Fragment, {
36
+ children: n
37
+ });
38
+ }
39
+ return /* @__PURE__ */ c(o.Fragment, {
40
+ children: r && /* @__PURE__ */ P.createPortal(n, r)
41
+ });
42
+ });
43
+ process.env.NODE_ENV !== "production" && (p.propTypes = {
44
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
45
+ // │ These PropTypes are generated from the TypeScript type definitions. │
46
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
47
+ // └─────────────────────────────────────────────────────────────────────┘
48
+ /**
49
+ * The children to render into the `container`.
50
+ */
51
+ children: i.node,
52
+ /**
53
+ * An HTML element or function that returns one.
54
+ * The `container` will have the portal children appended to it.
55
+ *
56
+ * You can also provide a callback, which is called in a React layout effect.
57
+ * This lets you set the container from a ref, and also makes server-side rendering possible.
58
+ *
59
+ * By default, it uses the body of the top-level document object,
60
+ * so it's simply `document.body` most of the time.
61
+ */
62
+ container: i.oneOfType([N, i.func]),
63
+ /**
64
+ * The `children` will be under the DOM hierarchy of the parent component.
65
+ * @default false
66
+ */
67
+ disablePortal: i.bool
68
+ });
69
+ process.env.NODE_ENV !== "production" && (p.propTypes = y(p.propTypes));
70
+ export {
71
+ N as H,
72
+ p as P
73
+ };
@@ -0,0 +1,254 @@
1
+ import { jsx as N } from "react/jsx-runtime";
2
+ import * as f from "react";
3
+ import { forwardRef as F, useContext as U, useMemo as j } from "react";
4
+ import { c as $ } from "./clsx-DB4S2d7J.js";
5
+ import { a as A, u as B, b as W, T as q, s as y } from "./Tabs.module-yYcTJnj6.js";
6
+ import { a as p, _ as z } from "./objectWithoutPropertiesLoose-D7Cp0Pg_.js";
7
+ import { e as O, g as G, a as J, u as k, b as K, P as o, c as Q, d as X } from "./index-CqjC7P5Y.js";
8
+ import { u as Y } from "./useButton-Bc8IAgyk.js";
9
+ const E = {
10
+ blur: "list:blur",
11
+ focus: "list:focus",
12
+ itemClick: "list:itemClick",
13
+ itemHover: "list:itemHover",
14
+ itemsChange: "list:itemsChange",
15
+ keyDown: "list:keyDown",
16
+ resetHighlight: "list:resetHighlight",
17
+ highlightLast: "list:highlightLast",
18
+ textNavigation: "list:textNavigation",
19
+ clearSelection: "list:clearSelection"
20
+ }, w = /* @__PURE__ */ f.createContext(null);
21
+ process.env.NODE_ENV !== "production" && (w.displayName = "ListContext");
22
+ function Z(n) {
23
+ const {
24
+ handlePointerOverEvents: t = !1,
25
+ item: e
26
+ } = n, s = f.useContext(w);
27
+ if (!s)
28
+ throw new Error("useListItem must be used within a ListProvider");
29
+ const {
30
+ dispatch: i,
31
+ getItemState: a
32
+ } = s, {
33
+ highlighted: c,
34
+ selected: b,
35
+ focusable: m
36
+ } = a(e), h = f.useCallback((l) => (r) => {
37
+ var d;
38
+ if ((d = l.onClick) == null || d.call(l, r), !r.defaultPrevented) {
39
+ if (process.env.NODE_ENV !== "production" && e === void 0)
40
+ throw new Error(["MUI: The `item` provided to useListItem() is undefined.", "This should happen only during server-side rendering under React 17."].join(`
41
+ `));
42
+ i({
43
+ type: E.itemClick,
44
+ item: e,
45
+ event: r
46
+ });
47
+ }
48
+ }, [i, e]), g = f.useCallback((l) => (r) => {
49
+ var d;
50
+ if ((d = l.onMouseOver) == null || d.call(l, r), !r.defaultPrevented) {
51
+ if (process.env.NODE_ENV !== "production" && e === void 0)
52
+ throw new Error(["MUI: The `item` provided to useListItem() is undefined.", "This should happen only during server-side rendering under React 17."].join(`
53
+ `));
54
+ i({
55
+ type: E.itemHover,
56
+ item: e,
57
+ event: r
58
+ });
59
+ }
60
+ }, [i, e]);
61
+ let u;
62
+ return m && (u = c ? 0 : -1), {
63
+ getRootProps: (l = {}) => {
64
+ const r = O(l);
65
+ return p({}, l, {
66
+ onClick: h(r),
67
+ onPointerOver: t ? g(r) : void 0,
68
+ tabIndex: u
69
+ });
70
+ },
71
+ highlighted: c,
72
+ selected: b
73
+ };
74
+ }
75
+ function ee(n, t) {
76
+ return function(s = {}) {
77
+ const i = p({}, s, n(s));
78
+ return p({}, i, t(i));
79
+ };
80
+ }
81
+ const I = "Tab";
82
+ function te(n) {
83
+ return G(I, n);
84
+ }
85
+ J(I, ["root", "selected", "disabled"]);
86
+ function oe(n) {
87
+ return n.size;
88
+ }
89
+ function se(n) {
90
+ const {
91
+ value: t,
92
+ rootRef: e,
93
+ disabled: s = !1,
94
+ id: i
95
+ } = n, a = f.useRef(null), c = A(i), {
96
+ value: b,
97
+ selectionFollowsFocus: m,
98
+ getTabPanelId: h
99
+ } = B(), g = f.useMemo(() => ({
100
+ disabled: s,
101
+ ref: a,
102
+ id: c
103
+ }), [s, a, c]), {
104
+ id: u,
105
+ index: v,
106
+ totalItemCount: l
107
+ } = W(t ?? oe, g), {
108
+ getRootProps: r,
109
+ highlighted: d,
110
+ selected: C
111
+ } = Z({
112
+ item: u
113
+ }), {
114
+ getRootProps: R,
115
+ rootRef: P,
116
+ active: T,
117
+ focusVisible: L,
118
+ setFocusVisible: M
119
+ } = Y({
120
+ disabled: s,
121
+ focusableWhenDisabled: !m,
122
+ type: "button"
123
+ }), x = k(a, e, P), V = u !== void 0 ? h(u) : void 0;
124
+ return {
125
+ getRootProps: (_ = {}) => {
126
+ const S = O(_), D = ee(r, R);
127
+ return p({}, _, D(S), {
128
+ role: "tab",
129
+ "aria-controls": V,
130
+ "aria-selected": C,
131
+ id: c,
132
+ ref: x
133
+ });
134
+ },
135
+ active: T,
136
+ focusVisible: L,
137
+ highlighted: d,
138
+ index: v,
139
+ rootRef: x,
140
+ // the `selected` state isn't set on the server (it relies on effects to be calculated),
141
+ // so we fall back to checking the `value` prop with the selectedValue from the TabsContext
142
+ selected: C || u === b,
143
+ setFocusVisible: M,
144
+ totalTabsCount: l
145
+ };
146
+ }
147
+ const ne = ["action", "children", "disabled", "onChange", "onClick", "onFocus", "slotProps", "slots", "value"], re = (n) => {
148
+ const {
149
+ selected: t,
150
+ disabled: e
151
+ } = n;
152
+ return Q({
153
+ root: ["root", t && "selected", e && "disabled"]
154
+ }, X(te));
155
+ }, H = /* @__PURE__ */ f.forwardRef(function(t, e) {
156
+ var s;
157
+ const {
158
+ children: i,
159
+ disabled: a = !1,
160
+ slotProps: c = {},
161
+ slots: b = {},
162
+ value: m
163
+ } = t, h = z(t, ne), g = f.useRef(), u = k(g, e), {
164
+ active: v,
165
+ highlighted: l,
166
+ selected: r,
167
+ getRootProps: d
168
+ } = se(p({}, t, {
169
+ rootRef: u,
170
+ value: m
171
+ })), C = p({}, t, {
172
+ active: v,
173
+ disabled: a,
174
+ highlighted: l,
175
+ selected: r
176
+ }), R = re(C), P = (s = b.root) != null ? s : "button", T = K({
177
+ elementType: P,
178
+ getSlotProps: d,
179
+ externalSlotProps: c.root,
180
+ externalForwardedProps: h,
181
+ additionalProps: {
182
+ ref: e
183
+ },
184
+ ownerState: C,
185
+ className: R.root
186
+ });
187
+ return /* @__PURE__ */ N(P, p({}, T, {
188
+ children: i
189
+ }));
190
+ });
191
+ process.env.NODE_ENV !== "production" && (H.propTypes = {
192
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
193
+ // │ These PropTypes are generated from the TypeScript type definitions. │
194
+ // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
195
+ // └─────────────────────────────────────────────────────────────────────┘
196
+ /**
197
+ * A ref for imperative actions. It currently only supports `focusVisible()` action.
198
+ */
199
+ action: o.oneOfType([o.func, o.shape({
200
+ current: o.shape({
201
+ focusVisible: o.func.isRequired
202
+ })
203
+ })]),
204
+ /**
205
+ * @ignore
206
+ */
207
+ children: o.node,
208
+ /**
209
+ * If `true`, the component is disabled.
210
+ * @default false
211
+ */
212
+ disabled: o.bool,
213
+ /**
214
+ * Callback invoked when new value is being set.
215
+ */
216
+ onChange: o.func,
217
+ /**
218
+ * The props used for each slot inside the Tab.
219
+ * @default {}
220
+ */
221
+ slotProps: o.shape({
222
+ root: o.oneOfType([o.func, o.object])
223
+ }),
224
+ /**
225
+ * The components used for each slot inside the Tab.
226
+ * Either a string to use a HTML element or a component.
227
+ * @default {}
228
+ */
229
+ slots: o.shape({
230
+ root: o.elementType
231
+ }),
232
+ /**
233
+ * You can provide your own value. Otherwise, it falls back to the child position index.
234
+ */
235
+ value: o.oneOfType([o.number, o.string])
236
+ });
237
+ const be = F(
238
+ ({ children: n, value: t, disabled: e, dataTestId: s }, i) => {
239
+ const a = U(q), c = j(
240
+ () => $(
241
+ y.tabs__tab,
242
+ t === (a == null ? void 0 : a.value) && y["tabs__tab--selected"],
243
+ e && y["tabs__tab--disabled"]
244
+ ),
245
+ [t, a, e]
246
+ );
247
+ return /* @__PURE__ */ N(H, { className: c, disabled: e, value: t, "data-testid": s, ref: i, children: n });
248
+ }
249
+ );
250
+ export {
251
+ E as L,
252
+ be as T,
253
+ w as a
254
+ };
@@ -0,0 +1,103 @@
1
+ import './assets/Tabs.css';
2
+ import * as n from "react";
3
+ import { u as x } from "./useEnhancedEffect-CJGo-L3B.js";
4
+ let f = 0;
5
+ function y(t) {
6
+ const [s, e] = n.useState(t), o = t || s;
7
+ return n.useEffect(() => {
8
+ s == null && (f += 1, e(`mui-${f}`));
9
+ }, [s]), o;
10
+ }
11
+ const _ = n.useId;
12
+ function E(t) {
13
+ if (_ !== void 0) {
14
+ const s = _();
15
+ return t ?? s;
16
+ }
17
+ return y(t);
18
+ }
19
+ const p = /* @__PURE__ */ n.createContext(null);
20
+ process.env.NODE_ENV !== "production" && (p.displayName = "CompoundComponentContext");
21
+ function g(t) {
22
+ const s = Array.from(t.keys()).map((e) => {
23
+ const o = t.get(e);
24
+ return {
25
+ key: e,
26
+ subitem: o
27
+ };
28
+ });
29
+ return s.sort((e, o) => {
30
+ const u = e.subitem.ref.current, r = o.subitem.ref.current;
31
+ return u === null || r === null || u === r ? 0 : u.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_PRECEDING ? 1 : -1;
32
+ }), new Map(s.map((e) => [e.key, e.subitem]));
33
+ }
34
+ function z() {
35
+ const [t, s] = n.useState(/* @__PURE__ */ new Map()), e = n.useRef(/* @__PURE__ */ new Set()), o = n.useCallback(function(c) {
36
+ e.current.delete(c), s((i) => {
37
+ const a = new Map(i);
38
+ return a.delete(c), a;
39
+ });
40
+ }, []), u = n.useCallback(function(c, i) {
41
+ let a;
42
+ return typeof c == "function" ? a = c(e.current) : a = c, e.current.add(a), s((C) => {
43
+ const l = new Map(C);
44
+ return l.set(a, i), l;
45
+ }), {
46
+ id: a,
47
+ deregister: () => o(a)
48
+ };
49
+ }, [o]), r = n.useMemo(() => g(t), [t]), d = n.useCallback(function(c) {
50
+ return Array.from(r.keys()).indexOf(c);
51
+ }, [r]);
52
+ return {
53
+ contextValue: n.useMemo(() => ({
54
+ getItemIndex: d,
55
+ registerItem: u,
56
+ totalSubitemCount: t.size
57
+ }), [d, u, t.size]),
58
+ subitems: r
59
+ };
60
+ }
61
+ function T(t, s) {
62
+ const e = n.useContext(p);
63
+ if (e === null)
64
+ throw new Error("useCompoundItem must be used within a useCompoundParent");
65
+ const {
66
+ registerItem: o
67
+ } = e, [u, r] = n.useState(typeof t == "function" ? void 0 : t);
68
+ return x(() => {
69
+ const {
70
+ id: d,
71
+ deregister: m
72
+ } = o(t, s);
73
+ return r(d), m;
74
+ }, [o, s, t]), {
75
+ id: u,
76
+ index: u !== void 0 ? e.getItemIndex(u) : -1,
77
+ totalItemCount: e.totalSubitemCount
78
+ };
79
+ }
80
+ const I = /* @__PURE__ */ n.createContext(null);
81
+ process.env.NODE_ENV !== "production" && (I.displayName = "TabsContext");
82
+ function D() {
83
+ const t = n.useContext(I);
84
+ if (t == null)
85
+ throw new Error("No TabsContext provided");
86
+ return t;
87
+ }
88
+ const N = "_tabs_18ymz_1", S = "_tabs__tab_18ymz_5", M = {
89
+ tabs: N,
90
+ tabs__tab: S,
91
+ "tabs__tab--disabled": "_tabs__tab--disabled_18ymz_22",
92
+ "tabs__tab--selected": "_tabs__tab--selected_18ymz_31",
93
+ "tabs__tab-panel": "_tabs__tab-panel_18ymz_35"
94
+ };
95
+ export {
96
+ p as C,
97
+ I as T,
98
+ E as a,
99
+ T as b,
100
+ z as c,
101
+ M as s,
102
+ D as u
103
+ };
@@ -0,0 +1 @@
1
+ ._input__label_f2das_1{display:block;margin-bottom:.3125rem;color:var(--gray-75)}._input__input-el-wrapper_f2das_6{display:flex;align-items:center;border:solid .0625rem var(--gray-25);border-radius:.375rem;transition:all .3s}._input__input-el_f2das_6{all:unset;width:100%;height:2.5rem;padding:0 1rem;font-size:var(--form-input-font-size);font-weight:var(--form-input-font-weight);line-height:var(--form-input-line-height);color:var(--gray-90);outline:none}._input__input-el_f2das_6::placeholder{color:var(--gray-50)}._input__left-icon_f2das_27{padding-left:1rem}._input__right-icon_f2das_30{padding-right:1rem}._input__messages-wrapper_f2das_33{display:flex;align-items:center;justify-content:space-between}._input__messages-wrapper_f2das_33:not(:empty){margin-top:.3125rem}._input__info-message_f2das_41,._input__error-message_f2das_41{display:flex;gap:.375rem;align-items:center}._input__info-message_f2das_41{color:var(--gray-75)}._input__error-message_f2das_41{color:var(--alert)}._input__chars-counter_f2das_52{margin-left:auto;color:var(--gray-75)}._input--disabled_f2das_56 ._input__input-el_f2das_6{color:var(--gray-50)}._input_f2das_1:has(._input--disabled_f2das_56) ._input__label_f2das_1{color:var(--gray-25)}._input--focused_f2das_62._input__input-el-wrapper_f2das_6{border-color:var(--accent)}._input--error_f2das_65._input__input-el-wrapper_f2das_6{border-color:var(--alert)}._input__input-el-wrapper_f2das_6:hover:not(._input--disabled_f2das_56,._input--focused_f2das_62,._input--error_f2das_65){border-color:var(--gray-75)}
@@ -0,0 +1 @@
1
+ ._inputSearch_8ayrz_1 span{display:block;margin-top:.1875rem}._inputSearch_8ayrz_1 input[type=search]::-webkit-search-cancel-button{width:1rem;height:1rem;-webkit-appearance:none;-moz-appearance:none;appearance:none;pointer-events:none;background:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3694_1860)'%3e%3cpath%20d='M7.97207%206.94064L9.46895%205.46876C9.7627%205.17814%2010.2377%205.17814%2010.5033%205.46876C10.8221%205.76251%2010.8221%206.23751%2010.5033%206.50314L9.05957%207.97189L10.5033%209.46876C10.8221%209.76251%2010.8221%2010.2375%2010.5033%2010.5031C10.2377%2010.8219%209.7627%2010.8219%209.46895%2010.5031L7.97207%209.05939L6.50332%2010.5031C6.2377%2010.8219%205.7627%2010.8219%205.46895%2010.5031C5.17832%2010.2375%205.17832%209.76251%205.46895%209.46876L6.94082%207.97189L5.46895%206.50314C5.17832%206.23751%205.17832%205.76251%205.46895%205.46876C5.7627%205.17814%206.2377%205.17814%206.50332%205.46876L7.97207%206.94064Z'%20fill='%23838192'/%3e%3cpath%20opacity='0.4'%20d='M0%208C0%203.58125%203.58125%200%208%200C12.4187%200%2016%203.58125%2016%208C16%2012.4187%2012.4187%2016%208%2016C3.58125%2016%200%2012.4187%200%208ZM5.46875%206.50313L6.94063%207.97188L5.46875%209.46875C5.17812%209.7625%205.17812%2010.2375%205.46875%2010.5031C5.7625%2010.8219%206.2375%2010.8219%206.50313%2010.5031L7.97188%209.05937L9.46875%2010.5031C9.7625%2010.8219%2010.2375%2010.8219%2010.5031%2010.5031C10.8219%2010.2375%2010.8219%209.7625%2010.5031%209.46875L9.05937%207.97188L10.5031%206.50313C10.8219%206.2375%2010.8219%205.7625%2010.5031%205.46875C10.2375%205.17812%209.7625%205.17812%209.46875%205.46875L7.97188%206.94063L6.50313%205.46875C6.2375%205.17812%205.7625%205.17812%205.46875%205.46875C5.17812%205.7625%205.17812%206.2375%205.46875%206.50313Z'%20fill='%23838192'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_3694_1860'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e") no-repeat 50% 50%;background-size:contain;border-radius:50%;opacity:0}._inputSearch_8ayrz_1 input[type=search]:focus::-webkit-search-cancel-button{pointer-events:all;cursor:pointer;opacity:1}
@@ -1 +1 @@
1
- ._page-header_cz9x0_1{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;min-height:7.375rem;background:var(--cream);-webkit-font-smoothing:antialiased!important}._page-header_cz9x0_1:has(._page-header__top-content_cz9x0_10){justify-content:flex-start}._page-header__top-content_cz9x0_10,._page-header__main-content_cz9x0_13,._page-header__bottom-content_cz9x0_13{width:63.875rem;margin:0 auto}._page-header__top-content_cz9x0_10{padding:1rem 0 .5rem}._page-header__top-content_cz9x0_10 button{all:unset;display:inline-flex;gap:.5rem;align-items:center;width:fit-content;height:1.125rem;font-size:.875rem;font-weight:400;line-height:1.125rem;color:var(--accent);cursor:pointer;transition:all .3s}._page-header__top-content_cz9x0_10 button:hover{color:var(--accent-dark)}._page-header__main-content_cz9x0_13{display:flex}._page-header__main-left-content_cz9x0_40{display:flex;flex:1;flex-direction:column;justify-content:center}._page-header__main-left-content_cz9x0_40 ._title_cz9x0_46,._page-header__main-left-content_cz9x0_40 ._subtitle_cz9x0_47{display:block;width:100%;padding:0;margin:0;color:var(--gray-90)}._page-header__main-left-content_cz9x0_40 ._title_cz9x0_46{font-size:1.5rem;font-weight:700;line-height:2rem}._page-header__main-left-content_cz9x0_40 ._subtitle_cz9x0_47{font-size:.875rem;font-weight:400;line-height:1.125rem}._page-header__main-right-content_cz9x0_64{display:flex;align-items:center;margin-bottom:1.125rem}._page-header__bottom-content_cz9x0_13{margin-top:.8125rem}
1
+ ._page-header_157kz_1{display:flex;flex-direction:column;justify-content:center;min-height:7.375rem;background:var(--cream);-webkit-font-smoothing:antialiased!important}._page-header_157kz_1:has(._page-header__top-content_157kz_9){justify-content:flex-start}._page-header__top-content_157kz_9,._page-header__main-content_157kz_12,._page-header__bottom-content_157kz_12{width:63.875rem;margin:0 auto}._page-header__top-content_157kz_9{padding:1rem 0 .5rem}._page-header__top-content_157kz_9 button{all:unset;display:inline-flex;gap:.5rem;align-items:center;width:fit-content;height:1.125rem;font-size:.875rem;font-weight:400;line-height:1.125rem;color:var(--accent);cursor:pointer;transition:all .3s}._page-header__top-content_157kz_9 button:hover{color:var(--accent-dark)}._page-header__main-content_157kz_12{display:flex}._page-header__main-left-content_157kz_39{display:flex;flex:1;flex-direction:column;justify-content:center}._page-header__main-left-content_157kz_39 ._title_157kz_45,._page-header__main-left-content_157kz_39 ._subtitle_157kz_46{display:block;width:100%;padding:0;margin:0;color:var(--gray-90)}._page-header__main-left-content_157kz_39 ._title_157kz_45{font-size:1.5rem;font-weight:700;line-height:2rem}._page-header__main-left-content_157kz_39 ._subtitle_157kz_46{font-size:.875rem;font-weight:400;line-height:1.125rem}._page-header__main-right-content_157kz_63{display:flex;align-items:center;margin-bottom:1.125rem}._page-header__bottom-content_157kz_12{margin-top:.8125rem}
@@ -0,0 +1 @@
1
+ ._snackbar_kt3bd_1{display:block;width:40.5rem;margin:0 auto}@keyframes _bottomToTop_kt3bd_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}._snackbar__snackbar-el-wrapper_kt3bd_14{position:fixed;bottom:1rem;z-index:5500}._snackbar--content_kt3bd_19{display:flex;align-items:center;justify-content:space-between;width:40.5rem;height:3.5rem;padding:1rem;overflow:hidden;border-radius:8px}._snackbar_kt3bd_1:has(._snackbar--success_kt3bd_29) ._snackbar--content_kt3bd_19{background-color:var(--secondary-green-darker)}._snackbar_kt3bd_1:has(._snackbar--error_kt3bd_32) ._snackbar--content_kt3bd_19{background-color:var(--alert)}._snackbar_kt3bd_1:has(._snackbar--attention_kt3bd_35) ._snackbar--content_kt3bd_19{background-color:var(--secondary-orange)}._snackbar--message_kt3bd_38{text-align:start}._snackbar--message_kt3bd_38 p{font-size:1rem;font-weight:900;color:var(--white-100)}._snackbar--action_kt3bd_46{position:absolute;top:1rem;right:1rem;padding:0;margin:0;cursor:pointer;background:none;border:none}
@@ -0,0 +1 @@
1
+ ._toggle_11c3l_1{position:relative;display:flex;gap:1rem;align-items:center;cursor:pointer}._toggle__toggle-el-wrapper_11c3l_8{width:2.25rem;height:1.5rem}._toggle_11c3l_1 ._input_11c3l_12{position:absolute;top:0;left:0;z-index:1;width:100%;height:100%;margin:0;cursor:inherit;opacity:0}._toggle_11c3l_1 ._thumb_11c3l_23{position:relative;top:.375rem;left:.375rem;display:block;width:.75rem;height:.75rem;background-color:var(--gray-90);border-radius:.75rem;opacity:.4;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.12s;transition-property:all}._toggle_11c3l_1 ._track_11c3l_37{position:absolute;display:block;width:2.25rem;height:1.5rem;background:var(--white-100);border-radius:1.5rem;box-shadow:inset 0 0 0 .25rem var(--gray-50);opacity:.4}._toggle--focus-visible_11c3l_47._toggle__toggle-el-wrapper_11c3l_8 ._track_11c3l_37{border:1px solid var(--black-100);opacity:1}._toggle--checked_11c3l_51._toggle__toggle-el-wrapper_11c3l_8 ._thumb_11c3l_23{left:1.125rem;background-color:var(--accent);opacity:1}._toggle--checked_11c3l_51._toggle__toggle-el-wrapper_11c3l_8 ._track_11c3l_37{background:var(--accent);box-shadow:none;opacity:.4}._toggle__label_11c3l_61{font-size:.875rem;font-weight:400;color:var(--gray-75)}._toggle__toggle-el-wrapper_11c3l_8:hover:not(._toggle--focus-visible_11c3l_47,._toggle--checked_11c3l_51,._toggle--disabled_11c3l_66) ._track_11c3l_37{border-color:var(--gray-90);opacity:1}._toggle__toggle-el-wrapper_11c3l_8:hover:not(._toggle--focus-visible_11c3l_47,._toggle--checked_11c3l_51,._toggle--disabled_11c3l_66) ._thumb_11c3l_23{opacity:1}._toggle_11c3l_1:has(._toggle__toggle-el-wrapper_11c3l_8:hover:not(._toggle--focus-visible_11c3l_47,._toggle--checked_11c3l_51,._toggle--disabled_11c3l_66)) ._toggle__label_11c3l_61{color:var(--black-100)}._toggle_11c3l_1:has(._toggle--disabled_11c3l_66) ._toggle__label_11c3l_61{color:var(--gray-50)}._toggle_11c3l_1:has(._toggle--checked_11c3l_51) ._toggle__label_11c3l_61{font-weight:900;color:var(--accent)}._toggle_11c3l_1:has(._toggle--focus-visible_11c3l_47) ._toggle__label_11c3l_61{color:var(--black-100)}
@@ -1 +1 @@
1
- :root{--secondary-orange: #ffa945;--secondary-orange-rgb: 255, 169, 69;--secondary-orange-dark: #fe8d53;--secondary-orange-dark-rgb: 254, 141, 83;--secondary-orange-light: #525061;--secondary-orange-light-rgb: 82, 80, 97;--secondary-green: #99dec3;--secondary-green-rgb: 153, 222, 195;--secondary-green-dark: #6acbb1;--secondary-green-dark-rgb: 106, 203, 177;--secondary-green-darker: #31aa7e;--secondary-green-darker-rgb: 49, 170, 126;--secondary-green-light: #baedd9;--secondary-green-light-rgb: 186, 237, 217;--accent: #1897f3;--accent-rgb: 24, 151, 243;--accent-dark: #1672c7;--accent-dark-rgb: 22, 114, 199;--accent-light: #4fb1f9;--accent-light-rgb: 79, 177, 249;--accent-lighter: #8ae1fd;--accent-lighter-rgb: 138, 225, 253;--alert: #df4561;--alert-rgb: 223, 69, 97;--alert-dark: #bb2b45;--alert-dark-rgb: 187, 43, 69;--accent-alert-light: #f37c91;--accent-alert-light-rgb: 243, 124, 145;--cream: #fafafa;--cream-rgb: 250, 250, 250;--hover: #42b7ff;--hover-rgb: 66, 183, 255;--active: #0a75cc;--active-rgb: 10, 117, 204}:root{--gray-100: #16161e;--gray-100-rgb: 22, 22, 30;--gray-95: #3f3d4b;--gray-95-rgb: 63, 61, 75;--gray-90: #525061;--gray-90-rgb: 82, 80, 97;--gray-75: #838192;--gray-75-rgb: 131, 129, 146;--gray-50: #bcbac8;--gray-50-rgb: 188, 186, 200;--gray-25: #dbdae2;--gray-25-rgb: 219, 218, 226;--gray-10: #ebeaf0;--gray-10-rgb: 235, 234, 240;--gray-5: #f7f7fc;--gray-5-rgb: 247, 247, 252;--black-100: #000000;--black-100-rgb: 0, 0, 0;--black-75: #616161;--black-75-rgb: 97, 97, 97;--black-50: #838192;--black-50-rgb: 131, 129, 146;--black-25: #bcbac8;--black-25-rgb: 188, 186, 200;--black-10: #ebeaf0;--black-10-rgb: 235, 234, 240;--white-100: #ffffff;--white-100-rgb: 255, 255, 255}:root{--heading-font-weight: 700;--heading-font-size-xl: 3.75rem;--heading-line-height-xl: 4.875rem;--heading-font-size-l: 3rem;--heading-line-height-l: 3.9375rem;--heading-font-size: 2.25rem;--heading-line-height: 2.875rem;--heading-font-size-s: 1.5rem;--heading-line-height-s: 2rem;--body-font-size: 1rem;--body-line-height: 1.3125rem;--body-weight: normal;--body-bold: bold;--body-font-size-large: 1.5rem;--body-line-height-large: 1.625rem;--body-font-size-medium: 1.125;--body-line-height-medium: 1rem;--body-font-size-small: .875rem;--body-line-height-small: 1.125rem;--body-font-size-tiny: .75rem;--body-line-height-tiny: 1rem;--quote-font-size-large: 1.5rem;--quote-line-height-large: 2rem;--quote-font-weight-large: normal;--quote-font-size: 1rem;--quote-line-height: 1.3125rem;--quote-font-weight: normal;--form-input-font-size: 1rem;--form-input-line-height: 1.3125rem;--form-input-font-weight: bold;--form-hint-font-size: .875rem;--form-hint-line-height: 1.3125rem;--form-hint-font-weight: normal;--form-label-font-size: .875rem;--form-label-line-height: 1.3125rem;--form-label-font-weight: normal;--form-dropdown-font-size: 1rem;--form-dropdown-line-height: 1.3125rem;--form-dropdown-font-weight: normal;--table-font-size: .875rem;--table-line-height: 1.0625rem;--table-header-font-weight: bold;--table-body-font-weight: normal;--table-body-secondary-line-height: 1.3125rem;--button-font-size: 1rem;--button-line-height: 1.25rem;--button-font-weight: bold}:root{--spacing: 8px;--border-radius: 6px;--border-radius-soft: 4px;--transition-soft: .3s;--transition-long: .75s}
1
+ :root{--secondary-orange: #ffa945;--secondary-orange-rgb: 255, 169, 69;--secondary-orange-dark: #fe8d53;--secondary-orange-dark-rgb: 254, 141, 83;--secondary-orange-light: #525061;--secondary-orange-light-rgb: 82, 80, 97;--secondary-green: #99dec3;--secondary-green-rgb: 153, 222, 195;--secondary-green-dark: #6acbb1;--secondary-green-dark-rgb: 106, 203, 177;--secondary-green-darker: #31aa7e;--secondary-green-darker-rgb: 49, 170, 126;--secondary-green-light: #baedd9;--secondary-green-light-rgb: 186, 237, 217;--accent: #1897f3;--accent-rgb: 24, 151, 243;--accent-dark: #1672c7;--accent-dark-rgb: 22, 114, 199;--accent-light: #4fb1f9;--accent-light-rgb: 79, 177, 249;--accent-lighter: #8ae1fd;--accent-lighter-rgb: 138, 225, 253;--alert: #df4561;--alert-rgb: 223, 69, 97;--alert-dark: #bb2b45;--alert-dark-rgb: 187, 43, 69;--accent-alert-light: #f37c91;--accent-alert-light-rgb: 243, 124, 145;--cream: #fafafa;--cream-rgb: 250, 250, 250;--hover: #42b7ff;--hover-rgb: 66, 183, 255;--active: #0a75cc;--active-rgb: 10, 117, 204}:root{--gray-100: #16161e;--gray-100-rgb: 22, 22, 30;--gray-95: #3f3d4b;--gray-95-rgb: 63, 61, 75;--gray-90: #525061;--gray-90-rgb: 82, 80, 97;--gray-75: #838192;--gray-75-rgb: 131, 129, 146;--gray-50: #bcbac8;--gray-50-rgb: 188, 186, 200;--gray-25: #dbdae2;--gray-25-rgb: 219, 218, 226;--gray-10: #ebeaf0;--gray-10-rgb: 235, 234, 240;--gray-5: #f7f7fc;--gray-5-rgb: 247, 247, 252;--black-100: #000000;--black-100-rgb: 0, 0, 0;--black-75: #616161;--black-75-rgb: 97, 97, 97;--black-50: #838192;--black-50-rgb: 131, 129, 146;--black-25: #bcbac8;--black-25-rgb: 188, 186, 200;--black-10: #ebeaf0;--black-10-rgb: 235, 234, 240;--white-100: #ffffff;--white-100-rgb: 255, 255, 255}:root{--heading-font-weight: 700;--heading-font-size-xl: 3.75rem;--heading-line-height-xl: 4.875rem;--heading-font-size-l: 3rem;--heading-line-height-l: 3.9375rem;--heading-font-size: 2.25rem;--heading-line-height: 2.875rem;--heading-font-size-s: 1.5rem;--heading-line-height-s: 2rem;--body-font-size: 1rem;--body-line-height: 1.3125rem;--body-weight: normal;--body-bold: bold;--body-font-size-large: 1.5rem;--body-line-height-large: 1.625rem;--body-font-size-medium: 1.125;--body-line-height-medium: 1rem;--body-font-size-small: .875rem;--body-line-height-small: 1.125rem;--body-font-size-tiny: .75rem;--body-line-height-tiny: 1rem;--quote-font-size-large: 1.5rem;--quote-line-height-large: 2rem;--quote-font-weight-large: normal;--quote-font-size: 1rem;--quote-line-height: 1.3125rem;--quote-font-weight: normal;--form-input-font-size: 1rem;--form-input-line-height: 1.3125rem;--form-input-font-weight: bold;--form-hint-font-size: .875rem;--form-hint-line-height: 1.3125rem;--form-hint-font-weight: normal;--form-label-font-size: .875rem;--form-label-line-height: 1.3125rem;--form-label-font-weight: normal;--form-dropdown-font-size: 1rem;--form-dropdown-line-height: 1.3125rem;--form-dropdown-font-weight: normal;--table-font-size: .875rem;--table-line-height: 1.0625rem;--table-header-font-weight: bold;--table-body-font-weight: normal;--table-body-secondary-line-height: 1.3125rem;--button-font-size: 1rem;--button-line-height: 1.25rem;--button-font-weight: bold}:root{--spacing: 8px;--border-radius: 6px;--border-radius-soft: 4px;--transition-soft: .3s;--transition-long: .75s}*{box-sizing:border-box}
@@ -1,13 +1,16 @@
1
- import { IconProps } from '../Icon/Icon';
1
+ import { Icon } from '../Icon/Icon';
2
2
  import { ReactNode } from 'react';
3
3
 
4
4
  export type AdviceTypes = 'without-results' | 'no-permission';
5
5
  export type AdviceProps = {
6
- icon?: Partial<IconProps>;
6
+ icon?: React.ComponentProps<typeof Icon>;
7
+ IconSvg?: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
8
+ title?: string | undefined;
9
+ }>;
7
10
  type?: AdviceTypes;
8
11
  content: ReactNode;
9
12
  className?: string;
10
13
  'data-testid'?: string;
11
14
  };
12
- declare const Advice: ({ icon, type, content, className, ...rest }: AdviceProps) => import("react/jsx-runtime").JSX.Element;
15
+ declare const Advice: ({ icon, type, content, className, IconSvg, ...rest }: AdviceProps) => import("react/jsx-runtime").JSX.Element;
13
16
  export { Advice };
@@ -1,25 +1,25 @@
1
1
  import '../../assets/Advice.css';
2
- import { jsxs as d, jsx as r } from "react/jsx-runtime";
3
- import { c as i } from "../../clsx-DB4S2d7J.js";
4
- import { Icon as v } from "../Icon/Icon.js";
5
- const y = "_advice_1yug7_1", n = "_content_1yug7_7", a = {
6
- advice: y,
7
- content: n
8
- }, l = {
2
+ import { jsxs as m, jsx as t } from "react/jsx-runtime";
3
+ import { c as y } from "../../clsx-DB4S2d7J.js";
4
+ import { Icon as n } from "../Icon/Icon.js";
5
+ const f = "_advice_1yug7_1", h = "_content_1yug7_7", l = {
6
+ advice: f,
7
+ content: h
8
+ }, d = {
9
9
  "no-permission": "eye-slash",
10
10
  "without-results": "folder-magnifying-glass"
11
- }, _ = ({ icon: s, type: t, content: e, className: o, ...m }) => {
12
- const c = {
11
+ }, g = ({ icon: s, type: o, content: r, className: i, IconSvg: a, ...c }) => {
12
+ const e = {
13
13
  color: (s == null ? void 0 : s.color) || "var(--accent)",
14
14
  size: (s == null ? void 0 : s.size) || "3.375rem",
15
- icon: l[t] || (s == null ? void 0 : s.icon) || "",
16
- iconFamily: l[t] || s == null ? void 0 : s.iconFamily
15
+ icon: d[o] || (s == null ? void 0 : s.icon) || "",
16
+ iconFamily: d[o] ? "fa/duotone" : (s == null ? void 0 : s.iconFamily) || "fa/duotone"
17
17
  };
18
- return /* @__PURE__ */ d("div", { className: i(a.advice, o), ...m, children: [
19
- /* @__PURE__ */ r(v, { ...c }),
20
- typeof e == "string" ? /* @__PURE__ */ r("p", { children: e }) : /* @__PURE__ */ r("div", { className: a.content, children: e })
18
+ return /* @__PURE__ */ m("div", { className: y(l.advice, i), ...c, children: [
19
+ a ? /* @__PURE__ */ t(a, { style: { color: e.color, height: e.size, width: e.size } }) : /* @__PURE__ */ t(n, { ...e }),
20
+ typeof r == "string" ? /* @__PURE__ */ t("p", { children: r }) : /* @__PURE__ */ t("div", { className: l.content, children: r })
21
21
  ] });
22
22
  };
23
23
  export {
24
- _ as Advice
24
+ g as Advice
25
25
  };