@pismo/marola 1.0.0-beta.7 → 1.0.0-beta.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.
- package/dist/{Button-2b1peDFT.js → Button-DiLqcAJG.js} +2 -2
- package/dist/{ClickAwayListener-BSW-Nd-y.js → ClickAwayListener-BaJ-OV_7.js} +4 -3
- package/dist/Input.module-iOYlI_1w.js +405 -0
- package/dist/{Popup-B6ZSGIEI.js → Popup-lLWZt2wk.js} +3 -3
- package/dist/{Portal-DIeBsWdL.js → Portal-B_Es6eUL.js} +2 -2
- package/dist/{Toggle-BWF0-SPB.js → Toggle-BSvvbKBp.js} +2 -2
- package/dist/assets/Autocomplete.css +1 -0
- package/dist/{combineHooksSlotProps-DVjg9PRh.js → combineHooksSlotProps-BtBYUV_B.js} +1 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +50 -0
- package/dist/components/Autocomplete/Autocomplete.js +689 -0
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +45 -0
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Chip/Chip.js +3 -3
- package/dist/components/Dialog/CloseIconButton.js +1 -1
- package/dist/components/Dialog/Dialog.js +12 -11
- package/dist/components/Dialog/Dialog.stories.d.ts +42 -42
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -1
- package/dist/components/IconButton/IconButton.js +1 -1
- package/dist/components/Input/Input.js +74 -471
- package/dist/components/RowItem/RowItem.js +2 -2
- package/dist/components/Select/Select.js +7 -6
- package/dist/components/Snackbar/Snackbar.js +4 -4
- package/dist/components/Snackbar/Snackbar.stories.d.ts +3 -3
- package/dist/components/Tabs/Tab.js +18 -17
- package/dist/components/Tabs/TabPanel.js +27 -26
- package/dist/components/Tabs/Tabs.js +25 -25
- package/dist/components/Toggle/Toggle.js +1 -1
- package/dist/components/ToggleGroup/Toggle.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +3 -3
- package/dist/{index-CjW42-M-.js → index-D3Wj0eid.js} +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.js +77 -75
- package/dist/ownerDocument-B61GUaFs.js +33 -0
- package/dist/{useButton-DNk3wrQp.js → useButton-Bn3MNH8I.js} +1 -1
- package/dist/useCompoundItem-B7Eo_qZk.js +68 -0
- package/dist/useEventCallback-BAQJJ3ye.js +14 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/{useList-B0hog_3-.js → useList-BpJT77u3.js} +2 -2
- package/dist/{index-CH45lKw7.js → useSlotProps-kRhf7Gil.js} +93 -94
- package/package.json +1 -1
- package/dist/useCompoundItem-D1iRfg8D.js +0 -84
- package/dist/useEventCallback-xTG9piMa.js +0 -45
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsx as N } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as f from "react";
|
|
3
3
|
import { forwardRef as H, useContext as U, useMemo as j } from "react";
|
|
4
4
|
import { c as k } from "../../clsx-DB4S2d7J.js";
|
|
5
5
|
import { u as B, T as D, s as y } from "../../Tabs.module-jkH1Qjn7.js";
|
|
6
|
-
import { g as L, a as W, u as O, f as $, b as d, _ as q, c as z, P as e, d as A, e as G } from "../../
|
|
7
|
-
import { u as J, c as K } from "../../combineHooksSlotProps-
|
|
8
|
-
import { u as Q
|
|
9
|
-
import { u as
|
|
6
|
+
import { g as L, a as W, u as O, f as $, b as d, _ as q, c as z, P as e, d as A, e as G } from "../../useSlotProps-kRhf7Gil.js";
|
|
7
|
+
import { u as J, c as K } from "../../combineHooksSlotProps-BtBYUV_B.js";
|
|
8
|
+
import { u as Q } from "../../useId-BW-oWmul.js";
|
|
9
|
+
import { u as X } from "../../useButton-Bn3MNH8I.js";
|
|
10
|
+
import { u as Y } from "../../useCompoundItem-B7Eo_qZk.js";
|
|
10
11
|
const E = "Tab";
|
|
11
12
|
function Z(o) {
|
|
12
13
|
return L(E, o);
|
|
@@ -21,11 +22,11 @@ function te(o) {
|
|
|
21
22
|
rootRef: s,
|
|
22
23
|
disabled: n = !1,
|
|
23
24
|
id: c
|
|
24
|
-
} = o, a =
|
|
25
|
-
value:
|
|
25
|
+
} = o, a = f.useRef(null), r = Q(c), {
|
|
26
|
+
value: b,
|
|
26
27
|
selectionFollowsFocus: p,
|
|
27
28
|
getTabPanelId: m
|
|
28
|
-
} = B(), P =
|
|
29
|
+
} = B(), P = f.useMemo(() => ({
|
|
29
30
|
disabled: n,
|
|
30
31
|
ref: a,
|
|
31
32
|
id: r
|
|
@@ -33,7 +34,7 @@ function te(o) {
|
|
|
33
34
|
id: l,
|
|
34
35
|
index: R,
|
|
35
36
|
totalItemCount: g
|
|
36
|
-
} =
|
|
37
|
+
} = Y(t ?? ee, P), {
|
|
37
38
|
getRootProps: h,
|
|
38
39
|
highlighted: T,
|
|
39
40
|
selected: i
|
|
@@ -45,7 +46,7 @@ function te(o) {
|
|
|
45
46
|
active: v,
|
|
46
47
|
focusVisible: I,
|
|
47
48
|
setFocusVisible: V
|
|
48
|
-
} =
|
|
49
|
+
} = X({
|
|
49
50
|
disabled: n,
|
|
50
51
|
focusableWhenDisabled: !p,
|
|
51
52
|
type: "button"
|
|
@@ -68,7 +69,7 @@ function te(o) {
|
|
|
68
69
|
rootRef: _,
|
|
69
70
|
// the `selected` state isn't set on the server (it relies on effects to be calculated),
|
|
70
71
|
// so we fall back to checking the `value` prop with the selectedValue from the TabsContext
|
|
71
|
-
selected: i || l ===
|
|
72
|
+
selected: i || l === b,
|
|
72
73
|
setFocusVisible: V,
|
|
73
74
|
totalTabsCount: g
|
|
74
75
|
};
|
|
@@ -81,15 +82,15 @@ const oe = ["action", "children", "disabled", "onChange", "onClick", "onFocus",
|
|
|
81
82
|
return A({
|
|
82
83
|
root: ["root", t && "selected", s && "disabled"]
|
|
83
84
|
}, G(Z));
|
|
84
|
-
}, F = /* @__PURE__ */
|
|
85
|
+
}, F = /* @__PURE__ */ f.forwardRef(function(t, s) {
|
|
85
86
|
var n;
|
|
86
87
|
const {
|
|
87
88
|
children: c,
|
|
88
89
|
disabled: a = !1,
|
|
89
90
|
slotProps: r = {},
|
|
90
|
-
slots:
|
|
91
|
+
slots: b = {},
|
|
91
92
|
value: p
|
|
92
|
-
} = t, m = q(t, oe), P =
|
|
93
|
+
} = t, m = q(t, oe), P = f.useRef(), l = O(P, s), {
|
|
93
94
|
active: R,
|
|
94
95
|
highlighted: g,
|
|
95
96
|
selected: h,
|
|
@@ -102,7 +103,7 @@ const oe = ["action", "children", "disabled", "onChange", "onClick", "onFocus",
|
|
|
102
103
|
disabled: a,
|
|
103
104
|
highlighted: g,
|
|
104
105
|
selected: h
|
|
105
|
-
}), C = se(i), u = (n =
|
|
106
|
+
}), C = se(i), u = (n = b.root) != null ? n : "button", v = z({
|
|
106
107
|
elementType: u,
|
|
107
108
|
getSlotProps: T,
|
|
108
109
|
externalSlotProps: r.root,
|
|
@@ -163,7 +164,7 @@ process.env.NODE_ENV !== "production" && (F.propTypes = {
|
|
|
163
164
|
*/
|
|
164
165
|
value: e.oneOfType([e.number, e.string])
|
|
165
166
|
});
|
|
166
|
-
const
|
|
167
|
+
const pe = H(
|
|
167
168
|
({ children: o, value: t, disabled: s, dataTestId: n }, c) => {
|
|
168
169
|
const a = U(D), r = j(
|
|
169
170
|
() => k(
|
|
@@ -177,5 +178,5 @@ const fe = H(
|
|
|
177
178
|
}
|
|
178
179
|
);
|
|
179
180
|
export {
|
|
180
|
-
|
|
181
|
+
pe as Tab
|
|
181
182
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as T } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as P from "react";
|
|
3
3
|
import { forwardRef as v } from "react";
|
|
4
4
|
import { u as y, s as x } from "../../Tabs.module-jkH1Qjn7.js";
|
|
5
|
-
import { g as C, a as N, u as _, b, _ as w, c as O, P as o, d as E, e as I } from "../../
|
|
6
|
-
import { u as S
|
|
5
|
+
import { g as C, a as N, u as _, b, _ as w, c as O, P as o, d as E, e as I } from "../../useSlotProps-kRhf7Gil.js";
|
|
6
|
+
import { u as S } from "../../useId-BW-oWmul.js";
|
|
7
|
+
import { u as U } from "../../useCompoundItem-B7Eo_qZk.js";
|
|
7
8
|
const h = "TabPanel";
|
|
8
9
|
function j(t) {
|
|
9
10
|
return C(h, t);
|
|
@@ -22,23 +23,23 @@ function V(t) {
|
|
|
22
23
|
throw new Error("No TabContext provided");
|
|
23
24
|
const {
|
|
24
25
|
value: f,
|
|
25
|
-
getTabId:
|
|
26
|
-
} = i,
|
|
27
|
-
id:
|
|
28
|
-
ref:
|
|
29
|
-
}), [
|
|
26
|
+
getTabId: m
|
|
27
|
+
} = i, r = S(s), a = P.useRef(null), u = _(a, n), c = P.useMemo(() => ({
|
|
28
|
+
id: r,
|
|
29
|
+
ref: a
|
|
30
|
+
}), [r]), {
|
|
30
31
|
id: l
|
|
31
|
-
} = U(e ?? M,
|
|
32
|
+
} = U(e ?? M, c), d = l !== f, p = l !== void 0 ? m(l) : void 0;
|
|
32
33
|
return {
|
|
33
34
|
hidden: d,
|
|
34
35
|
getRootProps: (g = {}) => b({
|
|
35
36
|
"aria-labelledby": p ?? void 0,
|
|
36
37
|
hidden: d,
|
|
37
|
-
id:
|
|
38
|
+
id: r ?? void 0
|
|
38
39
|
}, g, {
|
|
39
|
-
ref:
|
|
40
|
+
ref: u
|
|
40
41
|
}),
|
|
41
|
-
rootRef:
|
|
42
|
+
rootRef: u
|
|
42
43
|
};
|
|
43
44
|
}
|
|
44
45
|
const F = ["children", "value", "slotProps", "slots"], $ = (t) => {
|
|
@@ -48,31 +49,31 @@ const F = ["children", "value", "slotProps", "slots"], $ = (t) => {
|
|
|
48
49
|
return E({
|
|
49
50
|
root: ["root", e && "hidden"]
|
|
50
51
|
}, I(j));
|
|
51
|
-
}, R = /* @__PURE__ */
|
|
52
|
+
}, R = /* @__PURE__ */ P.forwardRef(function(e, s) {
|
|
52
53
|
var n;
|
|
53
54
|
const {
|
|
54
55
|
children: i,
|
|
55
56
|
slotProps: f = {},
|
|
56
|
-
slots:
|
|
57
|
-
} = e,
|
|
58
|
-
hidden:
|
|
59
|
-
getRootProps:
|
|
60
|
-
} = V(e),
|
|
61
|
-
hidden:
|
|
62
|
-
}), l = $(
|
|
57
|
+
slots: m = {}
|
|
58
|
+
} = e, r = w(e, F), {
|
|
59
|
+
hidden: a,
|
|
60
|
+
getRootProps: u
|
|
61
|
+
} = V(e), c = b({}, e, {
|
|
62
|
+
hidden: a
|
|
63
|
+
}), l = $(c), d = (n = m.root) != null ? n : "div", p = O({
|
|
63
64
|
elementType: d,
|
|
64
|
-
getSlotProps:
|
|
65
|
+
getSlotProps: u,
|
|
65
66
|
externalSlotProps: f.root,
|
|
66
|
-
externalForwardedProps:
|
|
67
|
+
externalForwardedProps: r,
|
|
67
68
|
additionalProps: {
|
|
68
69
|
role: "tabpanel",
|
|
69
70
|
ref: s
|
|
70
71
|
},
|
|
71
|
-
ownerState:
|
|
72
|
+
ownerState: c,
|
|
72
73
|
className: l.root
|
|
73
74
|
});
|
|
74
75
|
return /* @__PURE__ */ T(d, b({}, p, {
|
|
75
|
-
children: !
|
|
76
|
+
children: !a && i
|
|
76
77
|
}));
|
|
77
78
|
});
|
|
78
79
|
process.env.NODE_ENV !== "production" && (R.propTypes = {
|
|
@@ -110,9 +111,9 @@ process.env.NODE_ENV !== "production" && (R.propTypes = {
|
|
|
110
111
|
*/
|
|
111
112
|
value: o.oneOfType([o.number, o.string])
|
|
112
113
|
});
|
|
113
|
-
const
|
|
114
|
+
const q = v(
|
|
114
115
|
({ children: t, value: e, dataTestId: s }, n) => /* @__PURE__ */ T(R, { className: x["tabs__tab-panel"], value: e, "data-testid": s, ref: n, children: t })
|
|
115
116
|
);
|
|
116
117
|
export {
|
|
117
|
-
|
|
118
|
+
q as TabPanel
|
|
118
119
|
};
|
|
@@ -4,11 +4,11 @@ import { forwardRef as q, useState as B } from "react";
|
|
|
4
4
|
import { T as G, u as J, s as Q } from "../../Tabs.module-jkH1Qjn7.js";
|
|
5
5
|
import { Tab as Le } from "./Tab.js";
|
|
6
6
|
import { TabPanel as _e } from "./TabPanel.js";
|
|
7
|
-
import { g as I, a as _, b as C, _ as F, c as $, P as t, d as N, e as M } from "../../
|
|
8
|
-
import {
|
|
7
|
+
import { g as I, a as _, b as C, _ as F, c as $, P as t, d as N, e as M } from "../../useSlotProps-kRhf7Gil.js";
|
|
8
|
+
import { a as O, C as S } from "../../useCompoundItem-B7Eo_qZk.js";
|
|
9
9
|
import { u as X } from "../../useControlled-CCMYYdCM.js";
|
|
10
|
-
import { L as Y, a as Z } from "../../combineHooksSlotProps-
|
|
11
|
-
import { l as ee, m as te, u as oe } from "../../useList-
|
|
10
|
+
import { L as Y, a as Z } from "../../combineHooksSlotProps-BtBYUV_B.js";
|
|
11
|
+
import { l as ee, m as te, u as oe } from "../../useList-BpJT77u3.js";
|
|
12
12
|
const k = "Tabs";
|
|
13
13
|
function se(s) {
|
|
14
14
|
return I(k, s);
|
|
@@ -33,17 +33,17 @@ function ne(s) {
|
|
|
33
33
|
subitems: m,
|
|
34
34
|
contextValue: g
|
|
35
35
|
} = O(), p = r.useRef(() => {
|
|
36
|
-
}),
|
|
36
|
+
}), f = r.useCallback((x) => {
|
|
37
37
|
var y;
|
|
38
38
|
return (y = m.get(x)) == null ? void 0 : y.id;
|
|
39
|
-
}, [m]),
|
|
39
|
+
}, [m]), b = r.useCallback((x) => p.current(x), []), P = r.useCallback((x) => {
|
|
40
40
|
p.current = x;
|
|
41
41
|
}, []);
|
|
42
42
|
return {
|
|
43
43
|
contextValue: C({
|
|
44
44
|
direction: c,
|
|
45
|
-
getTabId:
|
|
46
|
-
getTabPanelId:
|
|
45
|
+
getTabId: b,
|
|
46
|
+
getTabPanelId: f,
|
|
47
47
|
onSelected: a,
|
|
48
48
|
orientation: i,
|
|
49
49
|
registerTabIdLookup: P,
|
|
@@ -67,23 +67,23 @@ function le(s) {
|
|
|
67
67
|
totalSubitemCount: m,
|
|
68
68
|
value: g,
|
|
69
69
|
getTabId: p,
|
|
70
|
-
getTabPanelId:
|
|
71
|
-
} = e,
|
|
70
|
+
getTabPanelId: f
|
|
71
|
+
} = e, b = r.useMemo(() => ({
|
|
72
72
|
getItemIndex: i,
|
|
73
73
|
registerItem: d,
|
|
74
74
|
totalSubitemCount: m
|
|
75
75
|
}), [d, i, m]), P = r.useMemo(() => ({
|
|
76
76
|
direction: n,
|
|
77
77
|
getTabId: p,
|
|
78
|
-
getTabPanelId:
|
|
78
|
+
getTabPanelId: f,
|
|
79
79
|
onSelected: c,
|
|
80
80
|
orientation: l,
|
|
81
81
|
registerTabIdLookup: u,
|
|
82
82
|
selectionFollowsFocus: a,
|
|
83
83
|
value: g
|
|
84
|
-
}), [n, p,
|
|
84
|
+
}), [n, p, f, c, l, u, a, g]);
|
|
85
85
|
return /* @__PURE__ */ T(S.Provider, {
|
|
86
|
-
value:
|
|
86
|
+
value: b,
|
|
87
87
|
children: /* @__PURE__ */ T(G.Provider, {
|
|
88
88
|
value: P,
|
|
89
89
|
children: o
|
|
@@ -110,8 +110,8 @@ const re = ["children", "value", "defaultValue", "orientation", "direction", "on
|
|
|
110
110
|
direction: l
|
|
111
111
|
}), {
|
|
112
112
|
contextValue: g
|
|
113
|
-
} = ne(m), p = ae(m),
|
|
114
|
-
elementType:
|
|
113
|
+
} = ne(m), p = ae(m), f = (n = u.root) != null ? n : "div", b = $({
|
|
114
|
+
elementType: f,
|
|
115
115
|
externalSlotProps: d.root,
|
|
116
116
|
externalForwardedProps: a,
|
|
117
117
|
additionalProps: {
|
|
@@ -120,7 +120,7 @@ const re = ["children", "value", "defaultValue", "orientation", "direction", "on
|
|
|
120
120
|
ownerState: m,
|
|
121
121
|
className: p.root
|
|
122
122
|
});
|
|
123
|
-
return /* @__PURE__ */ T(
|
|
123
|
+
return /* @__PURE__ */ T(f, C({}, b, {
|
|
124
124
|
children: /* @__PURE__ */ T(le, {
|
|
125
125
|
value: g,
|
|
126
126
|
children: i
|
|
@@ -232,12 +232,12 @@ function ce(s) {
|
|
|
232
232
|
return (v = a.get(h)) == null ? void 0 : v.id;
|
|
233
233
|
}, [a]);
|
|
234
234
|
d(g);
|
|
235
|
-
const p = r.useMemo(() => Array.from(a.keys()), [a]),
|
|
235
|
+
const p = r.useMemo(() => Array.from(a.keys()), [a]), f = r.useCallback((h) => {
|
|
236
236
|
var v, V;
|
|
237
237
|
return h == null ? null : (v = (V = a.get(h)) == null ? void 0 : V.ref.current) != null ? v : null;
|
|
238
|
-
}, [a]),
|
|
238
|
+
}, [a]), b = n === "rtl";
|
|
239
239
|
let P;
|
|
240
|
-
c === "vertical" ? P = "vertical" : P =
|
|
240
|
+
c === "vertical" ? P = "vertical" : P = b ? "horizontal-rtl" : "horizontal-ltr";
|
|
241
241
|
const x = r.useCallback((h, v) => {
|
|
242
242
|
var V;
|
|
243
243
|
i(h, (V = v[0]) != null ? V : null);
|
|
@@ -261,7 +261,7 @@ function ce(s) {
|
|
|
261
261
|
controlledProps: y,
|
|
262
262
|
disabledItemsFocusable: !u,
|
|
263
263
|
focusManagement: "DOM",
|
|
264
|
-
getItemDomElement:
|
|
264
|
+
getItemDomElement: f,
|
|
265
265
|
isItemDisabled: U,
|
|
266
266
|
items: p,
|
|
267
267
|
rootRef: o,
|
|
@@ -288,7 +288,7 @@ function ce(s) {
|
|
|
288
288
|
dispatch: R,
|
|
289
289
|
getRootProps: W,
|
|
290
290
|
highlightedValue: j,
|
|
291
|
-
isRtl:
|
|
291
|
+
isRtl: b,
|
|
292
292
|
orientation: c,
|
|
293
293
|
rootRef: K,
|
|
294
294
|
selectedValue: (e = H[0]) != null ? e : null
|
|
@@ -344,17 +344,17 @@ const me = ["children", "slotProps", "slots"], pe = (s) => {
|
|
|
344
344
|
}), p = C({}, e, {
|
|
345
345
|
isRtl: u,
|
|
346
346
|
orientation: a
|
|
347
|
-
}),
|
|
348
|
-
elementType:
|
|
347
|
+
}), f = pe(p), b = (n = l.root) != null ? n : "div", P = $({
|
|
348
|
+
elementType: b,
|
|
349
349
|
getSlotProps: m,
|
|
350
350
|
externalSlotProps: c.root,
|
|
351
351
|
externalForwardedProps: d,
|
|
352
352
|
ownerState: p,
|
|
353
|
-
className:
|
|
353
|
+
className: f.root
|
|
354
354
|
});
|
|
355
355
|
return /* @__PURE__ */ T(de, {
|
|
356
356
|
value: g,
|
|
357
|
-
children: /* @__PURE__ */ T(
|
|
357
|
+
children: /* @__PURE__ */ T(b, C({}, P, {
|
|
358
358
|
children: i
|
|
359
359
|
}))
|
|
360
360
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '../../assets/Toggle.css';
|
|
2
2
|
import { jsxs as j, jsx as P } from "react/jsx-runtime";
|
|
3
3
|
import { c as O } from "../../clsx-DB4S2d7J.js";
|
|
4
|
-
import { u as E, b as k, g as v, a as U, _ as q, c as C, P as e, d as H, e as M } from "../../
|
|
4
|
+
import { u as E, b as k, g as v, a as U, _ as q, c as C, P as e, d as H, e as M } from "../../useSlotProps-kRhf7Gil.js";
|
|
5
5
|
import * as F from "react";
|
|
6
6
|
import { u as A } from "../../useControlled-CCMYYdCM.js";
|
|
7
7
|
import { u as D } from "../../useIsFocusVisible-BH4IAdcw.js";
|
|
@@ -2,10 +2,10 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../clsx-DB4S2d7J.js";
|
|
4
4
|
import "../Icon/Icon.js";
|
|
5
|
+
import "../Typography/Typography.js";
|
|
5
6
|
import "../Button/Button.js";
|
|
6
|
-
import { T as b } from "../../Toggle-
|
|
7
|
+
import { T as b } from "../../Toggle-BSvvbKBp.js";
|
|
7
8
|
import "../Dialog/Backdrop.js";
|
|
8
|
-
import "../Typography/Typography.js";
|
|
9
9
|
import "../IconButton/IconButton.js";
|
|
10
10
|
import "../Select/Select.js";
|
|
11
11
|
import "../Table/Table.js";
|
|
@@ -2,10 +2,10 @@ import '../../assets/Tooltip.css';
|
|
|
2
2
|
import { jsx as a, jsxs as v, Fragment as P } from "react/jsx-runtime";
|
|
3
3
|
import * as u from "react";
|
|
4
4
|
import { useRef as R, useState as T, useEffect as E, isValidElement as q, cloneElement as M } from "react";
|
|
5
|
-
import { T as O, P as V } from "../../Popup-
|
|
6
|
-
import { _ as $, b as z, P as l } from "../../
|
|
5
|
+
import { T as O, P as V } from "../../Popup-lLWZt2wk.js";
|
|
6
|
+
import { _ as $, b as z, P as l } from "../../useSlotProps-kRhf7Gil.js";
|
|
7
7
|
import { c as D } from "../../clsx-DB4S2d7J.js";
|
|
8
|
-
import { C as F } from "../../ClickAwayListener-
|
|
8
|
+
import { C as F } from "../../ClickAwayListener-BaJ-OV_7.js";
|
|
9
9
|
function I() {
|
|
10
10
|
const e = u.useContext(O);
|
|
11
11
|
if (!e)
|
package/dist/main.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export * from './components/Adornment/Adornment';
|
|
6
6
|
export * from './components/Advice/Advice';
|
|
7
|
+
export * from './components/Autocomplete/Autocomplete';
|
|
7
8
|
export * from './components/Button/Button';
|
|
8
9
|
export * from './components/Checkbox/Checkbox';
|
|
9
10
|
export * from './components/Chip/Chip';
|
package/dist/main.js
CHANGED
|
@@ -1,81 +1,83 @@
|
|
|
1
1
|
import { Adornment as e } from "./components/Adornment/Adornment.js";
|
|
2
2
|
import { Advice as p } from "./components/Advice/Advice.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import { default as ko } from "./components/Dialog/
|
|
30
|
-
import { default as Io } from "./components/Dialog/
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
3
|
+
import { Autocomplete as f } from "./components/Autocomplete/Autocomplete.js";
|
|
4
|
+
import { Button as x } from "./components/Button/Button.js";
|
|
5
|
+
import { Checkbox as l } from "./components/Checkbox/Checkbox.js";
|
|
6
|
+
import { C as T, R as s, T as c } from "./Toggle-BSvvbKBp.js";
|
|
7
|
+
import { Dialog as u } from "./components/Dialog/Dialog.js";
|
|
8
|
+
import { EllipsisTooltip as d } from "./components/EllipsisTooltip/EllipsisTooltip.js";
|
|
9
|
+
import { Icon as k } from "./components/Icon/Icon.js";
|
|
10
|
+
import { IconButton as I } from "./components/IconButton/IconButton.js";
|
|
11
|
+
import { Input as D } from "./components/Input/Input.js";
|
|
12
|
+
import { InputSearch as A } from "./components/InputSearch/InputSearch.js";
|
|
13
|
+
import { LoadingSpinner as B } from "./components/LoadingSpinner/LoadingSpinner.js";
|
|
14
|
+
import { PageHeader as v } from "./components/PageHeader/PageHeader.js";
|
|
15
|
+
import { Pagination as R, paginationDefaultTranslations as w } from "./components/Pagination/Pagination.js";
|
|
16
|
+
import { Select as L, SelectOption as O } from "./components/Select/Select.js";
|
|
17
|
+
import { Skeleton as q, SkeletonCircle as z, SkeletonTable as F } from "./components/Skeleton/Skeleton.js";
|
|
18
|
+
import { Snackbar as K } from "./components/Snackbar/Snackbar.js";
|
|
19
|
+
import { SortTooltip as N, sortTooltipDefaultTranslations as Q } from "./components/SortTooltip/SortTooltip.js";
|
|
20
|
+
import { Stepper as V } from "./components/Stepper/Stepper.js";
|
|
21
|
+
import { TBody as X, THead as Y, Table as Z, Td as _, Th as $, Tr as oo } from "./components/Table/Table.js";
|
|
22
|
+
import { Tabs as eo } from "./components/Tabs/Tabs.js";
|
|
23
|
+
import { TextDisplay as po } from "./components/TextDisplay/TextDisplay.js";
|
|
24
|
+
import { Toggle as fo } from "./components/Toggle/Toggle.js";
|
|
25
|
+
import { G as xo } from "./Group-B3p31ftp.js";
|
|
26
|
+
import { Tooltip as lo } from "./components/Tooltip/Tooltip.js";
|
|
27
|
+
import { Text as To, Typography as so } from "./components/Typography/Typography.js";
|
|
28
|
+
import { SnackbarContext as go, SnackbarProvider as uo, useSnackbar as So } from "./contexts/SnackbarProvider/SnackbarProvider.js";
|
|
29
|
+
import { default as ko } from "./components/Dialog/DialogTitle.js";
|
|
30
|
+
import { default as Io } from "./components/Dialog/Content.js";
|
|
31
|
+
import { default as Do } from "./components/Dialog/Actions.js";
|
|
32
|
+
import { Tab as Ao } from "./components/Tabs/Tab.js";
|
|
33
|
+
import { TabPanel as Bo } from "./components/Tabs/TabPanel.js";
|
|
33
34
|
export {
|
|
34
|
-
|
|
35
|
+
Do as Actions,
|
|
35
36
|
e as Adornment,
|
|
36
37
|
p as Advice,
|
|
37
|
-
f as
|
|
38
|
-
|
|
39
|
-
l as
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
d as
|
|
45
|
-
k as
|
|
46
|
-
I as
|
|
47
|
-
D as
|
|
48
|
-
|
|
49
|
-
B as
|
|
50
|
-
v as
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
O as
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
F as
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
V as
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
fo as
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
38
|
+
f as Autocomplete,
|
|
39
|
+
x as Button,
|
|
40
|
+
l as Checkbox,
|
|
41
|
+
T as Chip,
|
|
42
|
+
Io as Content,
|
|
43
|
+
u as Dialog,
|
|
44
|
+
ko as DialogTitle,
|
|
45
|
+
d as EllipsisTooltip,
|
|
46
|
+
k as Icon,
|
|
47
|
+
I as IconButton,
|
|
48
|
+
D as Input,
|
|
49
|
+
A as InputSearch,
|
|
50
|
+
B as LoadingSpinner,
|
|
51
|
+
v as PageHeader,
|
|
52
|
+
R as Pagination,
|
|
53
|
+
s as RowItem,
|
|
54
|
+
L as Select,
|
|
55
|
+
O as SelectOption,
|
|
56
|
+
q as Skeleton,
|
|
57
|
+
z as SkeletonCircle,
|
|
58
|
+
F as SkeletonTable,
|
|
59
|
+
K as Snackbar,
|
|
60
|
+
go as SnackbarContext,
|
|
61
|
+
uo as SnackbarProvider,
|
|
62
|
+
N as SortTooltip,
|
|
63
|
+
V as Stepper,
|
|
64
|
+
X as TBody,
|
|
65
|
+
Y as THead,
|
|
66
|
+
Ao as Tab,
|
|
67
|
+
Bo as TabPanel,
|
|
68
|
+
Z as Table,
|
|
69
|
+
eo as Tabs,
|
|
70
|
+
_ as Td,
|
|
71
|
+
To as Text,
|
|
72
|
+
po as TextDisplay,
|
|
73
|
+
$ as Th,
|
|
74
|
+
fo as Toggle,
|
|
75
|
+
xo as ToggleGroup,
|
|
76
|
+
c as ToggleGroupItem,
|
|
77
|
+
lo as Tooltip,
|
|
78
|
+
oo as Tr,
|
|
79
|
+
so as Typography,
|
|
80
|
+
w as paginationDefaultTranslations,
|
|
81
|
+
Q as sortTooltipDefaultTranslations,
|
|
82
|
+
So as useSnackbar
|
|
81
83
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { P as c } from "./useSlotProps-kRhf7Gil.js";
|
|
2
|
+
function a(e, n) {
|
|
3
|
+
return process.env.NODE_ENV === "production" ? () => null : function(...t) {
|
|
4
|
+
return e(...t) || n(...t);
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
function p(e) {
|
|
8
|
+
const {
|
|
9
|
+
prototype: n = {}
|
|
10
|
+
} = e;
|
|
11
|
+
return !!n.isReactComponent;
|
|
12
|
+
}
|
|
13
|
+
function l(e, n, i, t, s) {
|
|
14
|
+
const r = e[n], f = s || n;
|
|
15
|
+
if (r == null || // When server-side rendering React doesn't warn either.
|
|
16
|
+
// This is not an accurate check for SSR.
|
|
17
|
+
// This is only in place for Emotion compat.
|
|
18
|
+
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
19
|
+
typeof window > "u")
|
|
20
|
+
return null;
|
|
21
|
+
let o;
|
|
22
|
+
const u = r.type;
|
|
23
|
+
return typeof u == "function" && !p(u) && (o = "Did you accidentally use a plain function component for an element instead?"), o !== void 0 ? new Error(`Invalid ${t} \`${f}\` supplied to \`${i}\`. Expected an element that can hold a ref. ${o} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
24
|
+
}
|
|
25
|
+
const m = a(c.element, l);
|
|
26
|
+
m.isRequired = a(c.element.isRequired, l);
|
|
27
|
+
function y(e) {
|
|
28
|
+
return e && e.ownerDocument || document;
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
m as e,
|
|
32
|
+
y as o
|
|
33
|
+
};
|