@pismo/marola 1.0.0-beta.18 → 1.0.0-beta.2
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-DiLqcAJG.js → Button-2b1peDFT.js} +2 -2
- package/dist/{ClickAwayListener-BaJ-OV_7.js → ClickAwayListener-BSW-Nd-y.js} +3 -4
- package/dist/Dialog.module-DFEmFdYT.js +30 -0
- package/dist/{Popup-lLWZt2wk.js → Popup-B6ZSGIEI.js} +3 -3
- package/dist/{Portal-B_Es6eUL.js → Portal-DIeBsWdL.js} +2 -2
- package/dist/SelectButton-C8JQKaf4.js +61 -0
- package/dist/Toggle-BCgIItCc.js +142 -0
- package/dist/assets/Advice.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/Dialog.css +1 -1
- package/dist/assets/IconButton.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/PageHeader.css +1 -1
- package/dist/assets/Pagination.css +1 -1
- package/dist/assets/SelectButton.css +1 -1
- package/dist/assets/Snackbar.css +1 -1
- package/dist/assets/SortTooltip.css +1 -1
- package/dist/assets/Stepper.css +1 -1
- package/dist/assets/Table.css +1 -1
- package/dist/assets/TextDisplay.css +1 -1
- package/dist/assets/Toggle.css +1 -1
- package/dist/assets/Toggle2.css +1 -1
- package/dist/assets/Typography.css +1 -1
- package/dist/{combineHooksSlotProps-BtBYUV_B.js → combineHooksSlotProps-DVjg9PRh.js} +1 -1
- package/dist/components/Advice/Advice.d.ts +17 -32
- package/dist/components/Advice/Advice.js +40 -39
- package/dist/components/Advice/Advice.stories.d.ts +3 -4
- package/dist/components/Button/Button.d.ts +0 -2
- package/dist/components/Button/Button.js +49 -51
- package/dist/components/Checkbox/Checkbox.js +52 -52
- package/dist/components/Chip/Chip.d.ts +12 -6
- package/dist/components/Chip/Chip.js +5 -6
- package/dist/components/Chip/Chip.stories.d.ts +14 -5
- package/dist/components/Dialog/Actions.js +1 -1
- package/dist/components/Dialog/Backdrop.js +1 -1
- package/dist/components/Dialog/CloseIconButton.js +2 -2
- package/dist/components/Dialog/Dialog.d.ts +6 -9
- package/dist/components/Dialog/Dialog.js +162 -162
- package/dist/components/Dialog/Dialog.stories.d.ts +46 -50
- package/dist/components/Dialog/DialogTitle.js +1 -1
- package/dist/components/EllipsisTooltip/EllipsisTooltip.js +17 -30
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -2
- package/dist/components/Icon/Icon.js +34 -52
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/IconButton/IconButton.js +42 -42
- package/dist/components/Input/Input.d.ts +2 -4
- package/dist/components/Input/Input.js +471 -74
- package/dist/components/Input/Input.stories.d.ts +1 -1
- package/dist/components/InputSearch/InputSearch.stories.d.ts +1 -1
- package/dist/components/PageHeader/PageHeader.js +57 -57
- package/dist/components/Pagination/Pagination.d.ts +1 -7
- package/dist/components/Pagination/Pagination.js +182 -104
- package/dist/components/Select/Select.js +8 -9
- package/dist/components/Select/SelectButton.js +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +1 -3
- package/dist/components/Skeleton/Skeleton.js +12 -18
- package/dist/components/Skeleton/SkeletonTable.stories.d.ts +1 -1
- package/dist/components/Snackbar/Snackbar.js +94 -94
- package/dist/components/Snackbar/Snackbar.stories.d.ts +3 -3
- package/dist/components/SortTooltip/SortTooltip.js +46 -46
- package/dist/components/Stepper/Stepper.js +35 -35
- package/dist/components/Table/Table.d.ts +1 -3
- package/dist/components/Table/Table.js +85 -88
- package/dist/components/Table/Table.stories.d.ts +1 -1
- package/dist/components/Tabs/Tab.js +17 -18
- package/dist/components/Tabs/TabPanel.js +26 -27
- package/dist/components/Tabs/Tabs.js +25 -25
- package/dist/components/TextDisplay/TextDisplay.d.ts +1 -3
- package/dist/components/TextDisplay/TextDisplay.js +28 -42
- package/dist/components/TextDisplay/TextDisplay.stories.d.ts +1 -2
- package/dist/components/Toggle/Toggle.js +56 -56
- package/dist/components/ToggleGroup/Toggle.js +3 -3
- package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -3
- package/dist/components/Tooltip/Tooltip.js +4 -4
- package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -1
- package/dist/components/Typography/Typography.js +47 -47
- package/dist/{useSlotProps-kRhf7Gil.js → index-CH45lKw7.js} +94 -93
- package/dist/{index-D3Wj0eid.js → index-CjW42-M-.js} +1 -1
- package/dist/main.d.ts +0 -5
- package/dist/main.js +76 -85
- package/dist/{useButton-Bn3MNH8I.js → useButton-DNk3wrQp.js} +1 -1
- package/dist/useCompoundItem-D1iRfg8D.js +84 -0
- package/dist/useEventCallback-xTG9piMa.js +45 -0
- package/dist/{useList-BpJT77u3.js → useList-B0hog_3-.js} +2 -2
- package/package.json +3 -8
- package/dist/Dialog.module-D9e4RsKo.js +0 -30
- package/dist/Input.module-ZTRZRcNt.js +0 -405
- package/dist/SelectButton-CoOT2txy.js +0 -61
- package/dist/Toggle-CRfZgFJp.js +0 -181
- package/dist/assets/Adornment.css +0 -1
- package/dist/assets/Autocomplete.css +0 -1
- package/dist/assets/ResultWithChips.css +0 -1
- package/dist/assets/StepperNavigator.css +0 -1
- package/dist/components/Adornment/Adornment.d.ts +0 -20
- package/dist/components/Adornment/Adornment.js +0 -13
- package/dist/components/Adornment/Adornment.stories.d.ts +0 -14
- package/dist/components/Adornment/adornment.test.d.ts +0 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +0 -52
- package/dist/components/Autocomplete/Autocomplete.js +0 -690
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +0 -46
- package/dist/components/Pagination/usePagination.d.ts +0 -90
- package/dist/components/Pagination/usePagination.js +0 -79
- package/dist/components/ResultWithChips/ResultWithChips.d.ts +0 -12
- package/dist/components/ResultWithChips/ResultWithChips.js +0 -33
- package/dist/components/RowItem/RowItem.d.ts +0 -25
- package/dist/components/RowItem/RowItem.js +0 -19
- package/dist/components/RowItem/RowItem.stories.d.ts +0 -17
- package/dist/components/RowItem/rowItem.test.d.ts +0 -1
- package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -43
- package/dist/components/StepperNavigator/StepperNavigator.js +0 -56
- package/dist/components/StepperNavigator/StepperNavigator.stories.d.ts +0 -16
- package/dist/components/StepperNavigator/StepperNavigator.test.d.ts +0 -1
- package/dist/ownerDocument-B61GUaFs.js +0 -33
- package/dist/useCompoundItem-B7Eo_qZk.js +0 -68
- package/dist/useEventCallback-BAQJJ3ye.js +0 -14
- package/dist/useId-BW-oWmul.js +0 -19
|
@@ -11,7 +11,36 @@ function Y() {
|
|
|
11
11
|
return e;
|
|
12
12
|
}, Y.apply(this, arguments);
|
|
13
13
|
}
|
|
14
|
-
function _e(e
|
|
14
|
+
function _e(e) {
|
|
15
|
+
return typeof e == "string";
|
|
16
|
+
}
|
|
17
|
+
function Re(e, s, t) {
|
|
18
|
+
return e === void 0 || _e(e) ? s : Y({}, s, {
|
|
19
|
+
ownerState: Y({}, s.ownerState, t)
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
const xe = {
|
|
23
|
+
disableDefaultClasses: !1
|
|
24
|
+
}, Se = /* @__PURE__ */ ue.createContext(xe);
|
|
25
|
+
process.env.NODE_ENV !== "production" && (Se.displayName = "ClassNameConfiguratorContext");
|
|
26
|
+
function Ke(e) {
|
|
27
|
+
const {
|
|
28
|
+
disableDefaultClasses: s
|
|
29
|
+
} = ue.useContext(Se);
|
|
30
|
+
return (t) => s ? "" : e(t);
|
|
31
|
+
}
|
|
32
|
+
function we(e, s = []) {
|
|
33
|
+
if (e === void 0)
|
|
34
|
+
return {};
|
|
35
|
+
const t = {};
|
|
36
|
+
return Object.keys(e).filter((n) => n.match(/^on[A-Z]/) && typeof e[n] == "function" && !s.includes(n)).forEach((n) => {
|
|
37
|
+
t[n] = e[n];
|
|
38
|
+
}), t;
|
|
39
|
+
}
|
|
40
|
+
function Ae(e, s, t) {
|
|
41
|
+
return typeof e == "function" ? e(s, t) : e;
|
|
42
|
+
}
|
|
43
|
+
function je(e, s) {
|
|
15
44
|
if (e == null)
|
|
16
45
|
return {};
|
|
17
46
|
var t = {};
|
|
@@ -23,7 +52,7 @@ function _e(e, s) {
|
|
|
23
52
|
}
|
|
24
53
|
return t;
|
|
25
54
|
}
|
|
26
|
-
function
|
|
55
|
+
function $e(e) {
|
|
27
56
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
28
57
|
}
|
|
29
58
|
var se = { exports: {} }, V = { exports: {} }, P = {};
|
|
@@ -36,7 +65,7 @@ var se = { exports: {} }, V = { exports: {} }, P = {};
|
|
|
36
65
|
* LICENSE file in the root directory of this source tree.
|
|
37
66
|
*/
|
|
38
67
|
var de;
|
|
39
|
-
function
|
|
68
|
+
function Ie() {
|
|
40
69
|
if (de)
|
|
41
70
|
return P;
|
|
42
71
|
de = 1;
|
|
@@ -112,7 +141,7 @@ var O = {};
|
|
|
112
141
|
* LICENSE file in the root directory of this source tree.
|
|
113
142
|
*/
|
|
114
143
|
var pe;
|
|
115
|
-
function
|
|
144
|
+
function Me() {
|
|
116
145
|
return pe || (pe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
117
146
|
var e = typeof Symbol == "function" && Symbol.for, s = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, c = e ? Symbol.for("react.strict_mode") : 60108, u = e ? Symbol.for("react.profiler") : 60114, h = e ? Symbol.for("react.provider") : 60109, f = e ? Symbol.for("react.context") : 60110, _ = e ? Symbol.for("react.async_mode") : 60111, v = e ? Symbol.for("react.concurrent_mode") : 60111, m = e ? Symbol.for("react.forward_ref") : 60112, S = e ? Symbol.for("react.suspense") : 60113, x = e ? Symbol.for("react.suspense_list") : 60120, w = e ? Symbol.for("react.memo") : 60115, $ = e ? Symbol.for("react.lazy") : 60116, R = e ? Symbol.for("react.block") : 60121, I = e ? Symbol.for("react.fundamental") : 60117, q = e ? Symbol.for("react.responder") : 60118, F = e ? Symbol.for("react.scope") : 60119;
|
|
118
147
|
function j(o) {
|
|
@@ -195,8 +224,8 @@ function we() {
|
|
|
195
224
|
}()), O;
|
|
196
225
|
}
|
|
197
226
|
var ye;
|
|
198
|
-
function
|
|
199
|
-
return ye || (ye = 1, process.env.NODE_ENV === "production" ? V.exports =
|
|
227
|
+
function Pe() {
|
|
228
|
+
return ye || (ye = 1, process.env.NODE_ENV === "production" ? V.exports = Ie() : V.exports = Me()), V.exports;
|
|
200
229
|
}
|
|
201
230
|
/*
|
|
202
231
|
object-assign
|
|
@@ -204,7 +233,7 @@ object-assign
|
|
|
204
233
|
@license MIT
|
|
205
234
|
*/
|
|
206
235
|
var re, ve;
|
|
207
|
-
function
|
|
236
|
+
function qe() {
|
|
208
237
|
if (ve)
|
|
209
238
|
return re;
|
|
210
239
|
ve = 1;
|
|
@@ -259,18 +288,18 @@ function ce() {
|
|
|
259
288
|
return te = e, te;
|
|
260
289
|
}
|
|
261
290
|
var ne, be;
|
|
262
|
-
function
|
|
291
|
+
function Oe() {
|
|
263
292
|
return be || (be = 1, ne = Function.call.bind(Object.prototype.hasOwnProperty)), ne;
|
|
264
293
|
}
|
|
265
294
|
var oe, he;
|
|
266
|
-
function
|
|
295
|
+
function Ye() {
|
|
267
296
|
if (he)
|
|
268
297
|
return oe;
|
|
269
298
|
he = 1;
|
|
270
299
|
var e = function() {
|
|
271
300
|
};
|
|
272
301
|
if (process.env.NODE_ENV !== "production") {
|
|
273
|
-
var s = ce(), t = {}, n =
|
|
302
|
+
var s = ce(), t = {}, n = Oe();
|
|
274
303
|
e = function(u) {
|
|
275
304
|
var h = "Warning: " + u;
|
|
276
305
|
typeof console < "u" && console.error(h);
|
|
@@ -313,11 +342,11 @@ function je() {
|
|
|
313
342
|
}, oe = c, oe;
|
|
314
343
|
}
|
|
315
344
|
var ie, Ee;
|
|
316
|
-
function
|
|
345
|
+
function De() {
|
|
317
346
|
if (Ee)
|
|
318
347
|
return ie;
|
|
319
348
|
Ee = 1;
|
|
320
|
-
var e =
|
|
349
|
+
var e = Pe(), s = qe(), t = ce(), n = Oe(), c = Ye(), u = function() {
|
|
321
350
|
};
|
|
322
351
|
process.env.NODE_ENV !== "production" && (u = function(f) {
|
|
323
352
|
var _ = "Warning: " + f;
|
|
@@ -635,7 +664,7 @@ Valid keys: ` + JSON.stringify(Object.keys(r), null, " ")
|
|
|
635
664
|
}, ie;
|
|
636
665
|
}
|
|
637
666
|
var ae, ge;
|
|
638
|
-
function
|
|
667
|
+
function ke() {
|
|
639
668
|
if (ge)
|
|
640
669
|
return ae;
|
|
641
670
|
ge = 1;
|
|
@@ -684,45 +713,12 @@ function Ie() {
|
|
|
684
713
|
}, ae;
|
|
685
714
|
}
|
|
686
715
|
if (process.env.NODE_ENV !== "production") {
|
|
687
|
-
var
|
|
688
|
-
se.exports =
|
|
716
|
+
var We = Pe(), Le = !0;
|
|
717
|
+
se.exports = De()(We.isElement, Le);
|
|
689
718
|
} else
|
|
690
|
-
se.exports =
|
|
691
|
-
var
|
|
692
|
-
const
|
|
693
|
-
function De(e) {
|
|
694
|
-
return typeof e == "string";
|
|
695
|
-
}
|
|
696
|
-
const ke = {
|
|
697
|
-
active: "active",
|
|
698
|
-
checked: "checked",
|
|
699
|
-
completed: "completed",
|
|
700
|
-
disabled: "disabled",
|
|
701
|
-
error: "error",
|
|
702
|
-
expanded: "expanded",
|
|
703
|
-
focused: "focused",
|
|
704
|
-
focusVisible: "focusVisible",
|
|
705
|
-
open: "open",
|
|
706
|
-
readOnly: "readOnly",
|
|
707
|
-
required: "required",
|
|
708
|
-
selected: "selected"
|
|
709
|
-
}, Oe = "base";
|
|
710
|
-
function We(e) {
|
|
711
|
-
return `${Oe}--${e}`;
|
|
712
|
-
}
|
|
713
|
-
function Le(e, s) {
|
|
714
|
-
return `${Oe}-${e}-${s}`;
|
|
715
|
-
}
|
|
716
|
-
function Ne(e, s) {
|
|
717
|
-
const t = ke[s];
|
|
718
|
-
return t ? We(t) : Le(e, s);
|
|
719
|
-
}
|
|
720
|
-
function Qe(e, s) {
|
|
721
|
-
const t = {};
|
|
722
|
-
return s.forEach((n) => {
|
|
723
|
-
t[n] = Ne(e, n);
|
|
724
|
-
}), t;
|
|
725
|
-
}
|
|
719
|
+
se.exports = ke()();
|
|
720
|
+
var Ne = se.exports;
|
|
721
|
+
const Qe = /* @__PURE__ */ $e(Ne);
|
|
726
722
|
function Fe(e, s) {
|
|
727
723
|
typeof e == "function" ? e(s) : e && (e.current = s);
|
|
728
724
|
}
|
|
@@ -749,32 +745,20 @@ function er(e, s, t = void 0) {
|
|
|
749
745
|
}
|
|
750
746
|
), n;
|
|
751
747
|
}
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
}
|
|
767
|
-
function Ve(e, s = []) {
|
|
768
|
-
if (e === void 0)
|
|
769
|
-
return {};
|
|
770
|
-
const t = {};
|
|
771
|
-
return Object.keys(e).filter((n) => n.match(/^on[A-Z]/) && typeof e[n] == "function" && !s.includes(n)).forEach((n) => {
|
|
772
|
-
t[n] = e[n];
|
|
773
|
-
}), t;
|
|
774
|
-
}
|
|
775
|
-
function Be(e, s, t) {
|
|
776
|
-
return typeof e == "function" ? e(s, t) : e;
|
|
777
|
-
}
|
|
748
|
+
const ze = {
|
|
749
|
+
active: "active",
|
|
750
|
+
checked: "checked",
|
|
751
|
+
completed: "completed",
|
|
752
|
+
disabled: "disabled",
|
|
753
|
+
error: "error",
|
|
754
|
+
expanded: "expanded",
|
|
755
|
+
focused: "focused",
|
|
756
|
+
focusVisible: "focusVisible",
|
|
757
|
+
open: "open",
|
|
758
|
+
readOnly: "readOnly",
|
|
759
|
+
required: "required",
|
|
760
|
+
selected: "selected"
|
|
761
|
+
};
|
|
778
762
|
function Te(e) {
|
|
779
763
|
if (e === void 0)
|
|
780
764
|
return {};
|
|
@@ -783,7 +767,7 @@ function Te(e) {
|
|
|
783
767
|
s[t] = e[t];
|
|
784
768
|
}), s;
|
|
785
769
|
}
|
|
786
|
-
function
|
|
770
|
+
function He(e) {
|
|
787
771
|
const {
|
|
788
772
|
getSlotProps: s,
|
|
789
773
|
additionalProps: t,
|
|
@@ -798,42 +782,59 @@ function Je(e) {
|
|
|
798
782
|
internalRef: void 0
|
|
799
783
|
};
|
|
800
784
|
}
|
|
801
|
-
const h =
|
|
785
|
+
const h = we(Y({}, c, n)), f = Te(n), _ = Te(c), v = s(h), m = le(v == null ? void 0 : v.className, t == null ? void 0 : t.className, u, c == null ? void 0 : c.className, n == null ? void 0 : n.className), S = Y({}, v == null ? void 0 : v.style, t == null ? void 0 : t.style, c == null ? void 0 : c.style, n == null ? void 0 : n.style), x = Y({}, v, t, _, f);
|
|
802
786
|
return m.length > 0 && (x.className = m), Object.keys(S).length > 0 && (x.style = S), {
|
|
803
787
|
props: x,
|
|
804
788
|
internalRef: v.ref
|
|
805
789
|
};
|
|
806
790
|
}
|
|
807
|
-
const
|
|
808
|
-
function
|
|
791
|
+
const Ve = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
|
|
792
|
+
function rr(e) {
|
|
809
793
|
var s;
|
|
810
794
|
const {
|
|
811
795
|
elementType: t,
|
|
812
796
|
externalSlotProps: n,
|
|
813
797
|
ownerState: c,
|
|
814
798
|
skipResolvingSlotProps: u = !1
|
|
815
|
-
} = e, h =
|
|
799
|
+
} = e, h = je(e, Ve), f = u ? {} : Ae(n, c), {
|
|
816
800
|
props: _,
|
|
817
801
|
internalRef: v
|
|
818
|
-
} =
|
|
802
|
+
} = He(Y({}, h, {
|
|
819
803
|
externalSlotProps: f
|
|
820
804
|
})), m = Ue(v, f == null ? void 0 : f.ref, (s = e.additionalProps) == null ? void 0 : s.ref);
|
|
821
|
-
return
|
|
805
|
+
return Re(t, Y({}, _, {
|
|
822
806
|
ref: m
|
|
823
807
|
}), c);
|
|
824
808
|
}
|
|
809
|
+
const Ce = "base";
|
|
810
|
+
function Be(e) {
|
|
811
|
+
return `${Ce}--${e}`;
|
|
812
|
+
}
|
|
813
|
+
function Je(e, s) {
|
|
814
|
+
return `${Ce}-${e}-${s}`;
|
|
815
|
+
}
|
|
816
|
+
function Xe(e, s) {
|
|
817
|
+
const t = ze[s];
|
|
818
|
+
return t ? Be(t) : Je(e, s);
|
|
819
|
+
}
|
|
820
|
+
function tr(e, s) {
|
|
821
|
+
const t = {};
|
|
822
|
+
return s.forEach((n) => {
|
|
823
|
+
t[n] = Xe(e, n);
|
|
824
|
+
}), t;
|
|
825
|
+
}
|
|
825
826
|
export {
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
827
|
+
Qe as P,
|
|
828
|
+
je as _,
|
|
829
|
+
tr as a,
|
|
829
830
|
Y as b,
|
|
830
|
-
|
|
831
|
+
rr as c,
|
|
831
832
|
er as d,
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
833
|
+
Ke as e,
|
|
834
|
+
we as f,
|
|
835
|
+
Xe as g,
|
|
836
|
+
$e as h,
|
|
837
|
+
_e as i,
|
|
837
838
|
Fe as s,
|
|
838
839
|
Ue as u
|
|
839
840
|
};
|
package/dist/main.d.ts
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
* This file is automatically generated. Any changes will be lost.
|
|
3
3
|
* run "yarn export-files" or "yarn build" to regenerate it.
|
|
4
4
|
*/
|
|
5
|
-
export * from './components/Adornment/Adornment';
|
|
6
5
|
export * from './components/Advice/Advice';
|
|
7
|
-
export * from './components/Autocomplete/Autocomplete';
|
|
8
6
|
export * from './components/Button/Button';
|
|
9
7
|
export * from './components/Checkbox/Checkbox';
|
|
10
8
|
export * from './components/Chip/Chip';
|
|
@@ -17,14 +15,11 @@ export * from './components/InputSearch/InputSearch';
|
|
|
17
15
|
export * from './components/LoadingSpinner/LoadingSpinner';
|
|
18
16
|
export * from './components/PageHeader/PageHeader';
|
|
19
17
|
export * from './components/Pagination/Pagination';
|
|
20
|
-
export * from './components/ResultWithChips/ResultWithChips';
|
|
21
|
-
export * from './components/RowItem/RowItem';
|
|
22
18
|
export * from './components/Select/Select';
|
|
23
19
|
export * from './components/Skeleton/Skeleton';
|
|
24
20
|
export * from './components/Snackbar/Snackbar';
|
|
25
21
|
export * from './components/SortTooltip/SortTooltip';
|
|
26
22
|
export * from './components/Stepper/Stepper';
|
|
27
|
-
export * from './components/StepperNavigator/StepperNavigator';
|
|
28
23
|
export * from './components/Table/Table';
|
|
29
24
|
export * from './components/Tabs/Tabs';
|
|
30
25
|
export * from './components/TextDisplay/TextDisplay';
|
package/dist/main.js
CHANGED
|
@@ -1,87 +1,78 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
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 {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import { default as Ao } from "./components/Dialog/Content.js";
|
|
33
|
-
import { default as vo } from "./components/Dialog/Actions.js";
|
|
34
|
-
import { Tab as Go } from "./components/Tabs/Tab.js";
|
|
35
|
-
import { TabPanel as Ho } from "./components/Tabs/TabPanel.js";
|
|
1
|
+
import { Advice as e } from "./components/Advice/Advice.js";
|
|
2
|
+
import { Button as p } from "./components/Button/Button.js";
|
|
3
|
+
import { Checkbox as f } from "./components/Checkbox/Checkbox.js";
|
|
4
|
+
import { C as m, T as n } from "./Toggle-BCgIItCc.js";
|
|
5
|
+
import { Dialog as i } from "./components/Dialog/Dialog.js";
|
|
6
|
+
import { EllipsisTooltip as s } from "./components/EllipsisTooltip/EllipsisTooltip.js";
|
|
7
|
+
import { Icon as g } from "./components/Icon/Icon.js";
|
|
8
|
+
import { IconButton as u } from "./components/IconButton/IconButton.js";
|
|
9
|
+
import { Input as d } from "./components/Input/Input.js";
|
|
10
|
+
import { InputSearch as C } from "./components/InputSearch/InputSearch.js";
|
|
11
|
+
import { LoadingSpinner as D } from "./components/LoadingSpinner/LoadingSpinner.js";
|
|
12
|
+
import { PageHeader as y } from "./components/PageHeader/PageHeader.js";
|
|
13
|
+
import { Pagination as B, paginationDefaultTranslations as G } from "./components/Pagination/Pagination.js";
|
|
14
|
+
import { Select as A, SelectOption as H } from "./components/Select/Select.js";
|
|
15
|
+
import { Skeleton as L, SkeletonCircle as O, SkeletonTable as j } from "./components/Skeleton/Skeleton.js";
|
|
16
|
+
import { Snackbar as w } from "./components/Snackbar/Snackbar.js";
|
|
17
|
+
import { SortTooltip as F, sortTooltipDefaultTranslations as J } from "./components/SortTooltip/SortTooltip.js";
|
|
18
|
+
import { Stepper as M } from "./components/Stepper/Stepper.js";
|
|
19
|
+
import { TBody as Q, THead as R, Table as U, Td as V, Th as W, Tr as X } from "./components/Table/Table.js";
|
|
20
|
+
import { Tabs as Z } from "./components/Tabs/Tabs.js";
|
|
21
|
+
import { TextDisplay as $ } from "./components/TextDisplay/TextDisplay.js";
|
|
22
|
+
import { Toggle as ro } from "./components/Toggle/Toggle.js";
|
|
23
|
+
import { G as to } from "./Group-B3p31ftp.js";
|
|
24
|
+
import { Tooltip as ao } from "./components/Tooltip/Tooltip.js";
|
|
25
|
+
import { Text as xo, Typography as mo } from "./components/Typography/Typography.js";
|
|
26
|
+
import { SnackbarContext as lo, SnackbarProvider as io, useSnackbar as To } from "./contexts/SnackbarProvider/SnackbarProvider.js";
|
|
27
|
+
import { default as co } from "./components/Dialog/DialogTitle.js";
|
|
28
|
+
import { default as So } from "./components/Dialog/Content.js";
|
|
29
|
+
import { default as bo } from "./components/Dialog/Actions.js";
|
|
30
|
+
import { Tab as Co } from "./components/Tabs/Tab.js";
|
|
31
|
+
import { TabPanel as Do } from "./components/Tabs/TabPanel.js";
|
|
36
32
|
export {
|
|
37
|
-
|
|
38
|
-
e as
|
|
39
|
-
p as
|
|
40
|
-
f as
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
C as
|
|
50
|
-
D as
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
H as
|
|
55
|
-
L as
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
F as
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
po as Tr,
|
|
83
|
-
So as Typography,
|
|
84
|
-
w as paginationDefaultTranslations,
|
|
85
|
-
U as sortTooltipDefaultTranslations,
|
|
86
|
-
Co as useSnackbar
|
|
33
|
+
bo as Actions,
|
|
34
|
+
e as Advice,
|
|
35
|
+
p as Button,
|
|
36
|
+
f as Checkbox,
|
|
37
|
+
m as Chip,
|
|
38
|
+
So as Content,
|
|
39
|
+
i as Dialog,
|
|
40
|
+
co as DialogTitle,
|
|
41
|
+
s as EllipsisTooltip,
|
|
42
|
+
g as Icon,
|
|
43
|
+
u as IconButton,
|
|
44
|
+
d as Input,
|
|
45
|
+
C as InputSearch,
|
|
46
|
+
D as LoadingSpinner,
|
|
47
|
+
y as PageHeader,
|
|
48
|
+
B as Pagination,
|
|
49
|
+
A as Select,
|
|
50
|
+
H as SelectOption,
|
|
51
|
+
L as Skeleton,
|
|
52
|
+
O as SkeletonCircle,
|
|
53
|
+
j as SkeletonTable,
|
|
54
|
+
w as Snackbar,
|
|
55
|
+
lo as SnackbarContext,
|
|
56
|
+
io as SnackbarProvider,
|
|
57
|
+
F as SortTooltip,
|
|
58
|
+
M as Stepper,
|
|
59
|
+
Q as TBody,
|
|
60
|
+
R as THead,
|
|
61
|
+
Co as Tab,
|
|
62
|
+
Do as TabPanel,
|
|
63
|
+
U as Table,
|
|
64
|
+
Z as Tabs,
|
|
65
|
+
V as Td,
|
|
66
|
+
xo as Text,
|
|
67
|
+
$ as TextDisplay,
|
|
68
|
+
W as Th,
|
|
69
|
+
ro as Toggle,
|
|
70
|
+
to as ToggleGroup,
|
|
71
|
+
n as ToggleGroupItem,
|
|
72
|
+
ao as Tooltip,
|
|
73
|
+
X as Tr,
|
|
74
|
+
mo as Typography,
|
|
75
|
+
G as paginationDefaultTranslations,
|
|
76
|
+
J as sortTooltipDefaultTranslations,
|
|
77
|
+
To as useSnackbar
|
|
87
78
|
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { u as g } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
3
|
+
let I = 0;
|
|
4
|
+
function x(e) {
|
|
5
|
+
const [n, t] = o.useState(e), u = e || n;
|
|
6
|
+
return o.useEffect(() => {
|
|
7
|
+
n == null && (I += 1, t(`mui-${I}`));
|
|
8
|
+
}, [n]), u;
|
|
9
|
+
}
|
|
10
|
+
const p = o.useId;
|
|
11
|
+
function y(e) {
|
|
12
|
+
if (p !== void 0) {
|
|
13
|
+
const n = p();
|
|
14
|
+
return e ?? n;
|
|
15
|
+
}
|
|
16
|
+
return x(e);
|
|
17
|
+
}
|
|
18
|
+
const b = /* @__PURE__ */ o.createContext(null);
|
|
19
|
+
process.env.NODE_ENV !== "production" && (b.displayName = "CompoundComponentContext");
|
|
20
|
+
function S(e) {
|
|
21
|
+
const n = Array.from(e.keys()).map((t) => {
|
|
22
|
+
const u = e.get(t);
|
|
23
|
+
return {
|
|
24
|
+
key: t,
|
|
25
|
+
subitem: u
|
|
26
|
+
};
|
|
27
|
+
});
|
|
28
|
+
return n.sort((t, u) => {
|
|
29
|
+
const s = t.subitem.ref.current, r = u.subitem.ref.current;
|
|
30
|
+
return s === null || r === null || s === r ? 0 : s.compareDocumentPosition(r) & Node.DOCUMENT_POSITION_PRECEDING ? 1 : -1;
|
|
31
|
+
}), new Map(n.map((t) => [t.key, t.subitem]));
|
|
32
|
+
}
|
|
33
|
+
function E() {
|
|
34
|
+
const [e, n] = o.useState(/* @__PURE__ */ new Map()), t = o.useRef(/* @__PURE__ */ new Set()), u = o.useCallback(function(a) {
|
|
35
|
+
t.current.delete(a), n((m) => {
|
|
36
|
+
const c = new Map(m);
|
|
37
|
+
return c.delete(a), c;
|
|
38
|
+
});
|
|
39
|
+
}, []), s = o.useCallback(function(a, m) {
|
|
40
|
+
let c;
|
|
41
|
+
return typeof a == "function" ? c = a(t.current) : c = a, t.current.add(c), n((C) => {
|
|
42
|
+
const l = new Map(C);
|
|
43
|
+
return l.set(c, m), l;
|
|
44
|
+
}), {
|
|
45
|
+
id: c,
|
|
46
|
+
deregister: () => u(c)
|
|
47
|
+
};
|
|
48
|
+
}, [u]), r = o.useMemo(() => S(e), [e]), i = o.useCallback(function(a) {
|
|
49
|
+
return Array.from(r.keys()).indexOf(a);
|
|
50
|
+
}, [r]);
|
|
51
|
+
return {
|
|
52
|
+
contextValue: o.useMemo(() => ({
|
|
53
|
+
getItemIndex: i,
|
|
54
|
+
registerItem: s,
|
|
55
|
+
totalSubitemCount: e.size
|
|
56
|
+
}), [i, s, e.size]),
|
|
57
|
+
subitems: r
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function N(e, n) {
|
|
61
|
+
const t = o.useContext(b);
|
|
62
|
+
if (t === null)
|
|
63
|
+
throw new Error("useCompoundItem must be used within a useCompoundParent");
|
|
64
|
+
const {
|
|
65
|
+
registerItem: u
|
|
66
|
+
} = t, [s, r] = o.useState(typeof e == "function" ? void 0 : e);
|
|
67
|
+
return g(() => {
|
|
68
|
+
const {
|
|
69
|
+
id: i,
|
|
70
|
+
deregister: d
|
|
71
|
+
} = u(e, n);
|
|
72
|
+
return r(i), d;
|
|
73
|
+
}, [u, n, e]), {
|
|
74
|
+
id: s,
|
|
75
|
+
index: s !== void 0 ? t.getItemIndex(s) : -1,
|
|
76
|
+
totalItemCount: t.totalSubitemCount
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
export {
|
|
80
|
+
b as C,
|
|
81
|
+
N as a,
|
|
82
|
+
E as b,
|
|
83
|
+
y as u
|
|
84
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { P as a } from "./index-CH45lKw7.js";
|
|
2
|
+
import * as c from "react";
|
|
3
|
+
import { u as m } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
4
|
+
function s(e, n) {
|
|
5
|
+
return process.env.NODE_ENV === "production" ? () => null : function(...o) {
|
|
6
|
+
return e(...o) || n(...o);
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
function d(e) {
|
|
10
|
+
const {
|
|
11
|
+
prototype: n = {}
|
|
12
|
+
} = e;
|
|
13
|
+
return !!n.isReactComponent;
|
|
14
|
+
}
|
|
15
|
+
function f(e, n, t, o, l) {
|
|
16
|
+
const u = e[n], p = l || n;
|
|
17
|
+
if (u == null || // When server-side rendering React doesn't warn either.
|
|
18
|
+
// This is not an accurate check for SSR.
|
|
19
|
+
// This is only in place for Emotion compat.
|
|
20
|
+
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
|
21
|
+
typeof window > "u")
|
|
22
|
+
return null;
|
|
23
|
+
let r;
|
|
24
|
+
const i = u.type;
|
|
25
|
+
return typeof i == "function" && !d(i) && (r = "Did you accidentally use a plain function component for an element instead?"), r !== void 0 ? new Error(`Invalid ${o} \`${p}\` supplied to \`${t}\`. Expected an element that can hold a ref. ${r} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
|
26
|
+
}
|
|
27
|
+
const y = s(a.element, f);
|
|
28
|
+
y.isRequired = s(a.element.isRequired, f);
|
|
29
|
+
function E(e) {
|
|
30
|
+
return e && e.ownerDocument || document;
|
|
31
|
+
}
|
|
32
|
+
function h(e) {
|
|
33
|
+
const n = c.useRef(e);
|
|
34
|
+
return m(() => {
|
|
35
|
+
n.current = e;
|
|
36
|
+
}), c.useRef((...t) => (
|
|
37
|
+
// @ts-expect-error hide `this`
|
|
38
|
+
(0, n.current)(...t)
|
|
39
|
+
)).current;
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
y as e,
|
|
43
|
+
E as o,
|
|
44
|
+
h as u
|
|
45
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as p, u as re, f as ie } from "./
|
|
1
|
+
import { b as p, u as re, f as ie } from "./index-CH45lKw7.js";
|
|
2
2
|
import * as f from "react";
|
|
3
|
-
import { L as x } from "./combineHooksSlotProps-
|
|
3
|
+
import { L as x } from "./combineHooksSlotProps-DVjg9PRh.js";
|
|
4
4
|
function W(t, e, r = (n, l) => n === l) {
|
|
5
5
|
return t.length === e.length && t.every((n, l) => r(n, e[l]));
|
|
6
6
|
}
|