@pismo/marola 1.0.0-beta.49 → 1.0.0-beta.5
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-BAljjMv3.js → Button-2b1peDFT.js} +2 -2
- package/dist/{ClickAwayListener-DbEYZpyh.js → ClickAwayListener-BSW-Nd-y.js} +3 -4
- package/dist/Dialog.module-DFEmFdYT.js +30 -0
- package/dist/Group-B3p31ftp.js +26 -0
- package/dist/{Popup-Ck3XlWMq.js → Popup-B6ZSGIEI.js} +3 -3
- package/dist/{Portal-oY3enyAm.js → Portal-DIeBsWdL.js} +2 -2
- package/dist/SelectButton-K3OIfR5m.js +61 -0
- package/dist/{Tabs.module-BGGTkDc5.js → Tabs.module-jkH1Qjn7.js} +7 -7
- 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/EllipsisTooltip.css +1 -1
- package/dist/assets/Group.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/Skeleton.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/Tabs.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-C-zYvfnF.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 +6 -9
- package/dist/components/Chip/Chip.stories.d.ts +14 -5
- package/dist/components/Dialog/Actions.js +1 -1
- package/dist/components/Dialog/Backdrop.d.ts +3 -3
- package/dist/components/Dialog/Backdrop.js +7 -8
- package/dist/components/Dialog/CloseIconButton.d.ts +2 -1
- package/dist/components/Dialog/CloseIconButton.js +18 -15
- package/dist/components/Dialog/Dialog.d.ts +6 -9
- package/dist/components/Dialog/Dialog.js +139 -139
- 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 +52 -177
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/IconButton/IconButton.js +42 -42
- package/dist/components/Input/Input.d.ts +5 -24
- package/dist/components/Input/Input.js +292 -301
- package/dist/components/Input/Input.stories.d.ts +21 -2
- package/dist/components/InputSearch/InputSearch.stories.d.ts +21 -1
- package/dist/components/PageHeader/PageHeader.js +57 -57
- package/dist/components/Pagination/Pagination.d.ts +1 -5
- package/dist/components/Pagination/Pagination.js +185 -87
- package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +0 -21
- package/dist/components/Select/Select.js +413 -476
- package/dist/components/Select/SelectButton.d.ts +0 -2
- package/dist/components/Select/SelectButton.js +2 -3
- package/dist/components/Skeleton/Skeleton.d.ts +1 -3
- package/dist/components/Skeleton/Skeleton.js +14 -20
- 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 +99 -87
- package/dist/components/Table/Table.stories.d.ts +1 -1
- package/dist/components/Tabs/Tab.d.ts +3 -5
- package/dist/components/Tabs/Tab.js +36 -38
- package/dist/components/Tabs/TabPanel.d.ts +2 -4
- package/dist/components/Tabs/TabPanel.js +40 -51
- package/dist/components/Tabs/Tabs.d.ts +4 -6
- package/dist/components/Tabs/Tabs.js +128 -131
- package/dist/components/TextDisplay/TextDisplay.d.ts +3 -9
- package/dist/components/TextDisplay/TextDisplay.js +31 -45
- package/dist/components/TextDisplay/TextDisplay.stories.d.ts +1 -2
- package/dist/components/Toggle/Toggle.js +56 -56
- package/dist/components/ToggleGroup/Group.d.ts +0 -2
- package/dist/components/ToggleGroup/Group.js +2 -4
- package/dist/components/ToggleGroup/Toggle.d.ts +0 -2
- package/dist/components/ToggleGroup/Toggle.js +5 -7
- package/dist/components/ToggleGroup/ToggleGroup.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +0 -2
- 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-C_I1kEHr.js → index-CH45lKw7.js} +99 -99
- package/dist/{index-bQFToy-I.js → index-CjW42-M-.js} +1 -1
- package/dist/main.d.ts +0 -6
- package/dist/main.js +76 -87
- package/dist/{useButton-DcihopJG.js → useButton-DNk3wrQp.js} +1 -1
- package/dist/useCompoundItem-D1iRfg8D.js +84 -0
- package/dist/useEventCallback-xTG9piMa.js +45 -0
- package/dist/{useList-B9C55YB7.js → useList-B0hog_3-.js} +2 -2
- package/package.json +12 -21
- package/dist/Dialog.module-D9e4RsKo.js +0 -30
- package/dist/Group-DspH8hyO.js +0 -30
- package/dist/Popover.module-B4boCutS.js +0 -10
- package/dist/SelectButton-B38avP9u.js +0 -75
- package/dist/Toggle-BbmXeuJd.js +0 -188
- package/dist/assets/Adornment.css +0 -1
- package/dist/assets/Autocomplete.css +0 -1
- package/dist/assets/Popover.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 -20
- package/dist/components/Autocomplete/Autocomplete.js +0 -679
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +0 -23
- package/dist/components/Pagination/usePagination.d.ts +0 -90
- package/dist/components/Pagination/usePagination.js +0 -79
- package/dist/components/Popover/Popover.d.ts +0 -32
- package/dist/components/Popover/Popover.js +0 -24
- package/dist/components/Popover/Popover.stories.d.ts +0 -34
- package/dist/components/Popover/PopoverBody.d.ts +0 -6
- package/dist/components/Popover/PopoverBody.js +0 -6
- package/dist/components/Popover/PopoverFooter.d.ts +0 -6
- package/dist/components/Popover/PopoverFooter.js +0 -6
- package/dist/components/Popover/PopoverHeader.d.ts +0 -6
- package/dist/components/Popover/PopoverHeader.js +0 -6
- 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 -21
- 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 -58
- package/dist/components/StepperNavigator/StepperNavigator.js +0 -115
- package/dist/components/StepperNavigator/StepperNavigator.stories.d.ts +0 -18
- package/dist/components/StepperNavigator/StepperNavigator.test.d.ts +0 -1
- package/dist/ownerDocument-YGhwAnr1.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
|
@@ -12,6 +12,47 @@ function Y() {
|
|
|
12
12
|
}, Y.apply(this, arguments);
|
|
13
13
|
}
|
|
14
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) {
|
|
44
|
+
if (e == null)
|
|
45
|
+
return {};
|
|
46
|
+
var t = {};
|
|
47
|
+
for (var n in e)
|
|
48
|
+
if (Object.prototype.hasOwnProperty.call(e, n)) {
|
|
49
|
+
if (s.indexOf(n) >= 0)
|
|
50
|
+
continue;
|
|
51
|
+
t[n] = e[n];
|
|
52
|
+
}
|
|
53
|
+
return t;
|
|
54
|
+
}
|
|
55
|
+
function $e(e) {
|
|
15
56
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
16
57
|
}
|
|
17
58
|
var se = { exports: {} }, V = { exports: {} }, P = {};
|
|
@@ -24,7 +65,7 @@ var se = { exports: {} }, V = { exports: {} }, P = {};
|
|
|
24
65
|
* LICENSE file in the root directory of this source tree.
|
|
25
66
|
*/
|
|
26
67
|
var de;
|
|
27
|
-
function
|
|
68
|
+
function Ie() {
|
|
28
69
|
if (de)
|
|
29
70
|
return P;
|
|
30
71
|
de = 1;
|
|
@@ -100,7 +141,7 @@ var O = {};
|
|
|
100
141
|
* LICENSE file in the root directory of this source tree.
|
|
101
142
|
*/
|
|
102
143
|
var pe;
|
|
103
|
-
function
|
|
144
|
+
function Me() {
|
|
104
145
|
return pe || (pe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
105
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;
|
|
106
147
|
function j(o) {
|
|
@@ -183,8 +224,8 @@ function xe() {
|
|
|
183
224
|
}()), O;
|
|
184
225
|
}
|
|
185
226
|
var ye;
|
|
186
|
-
function
|
|
187
|
-
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;
|
|
188
229
|
}
|
|
189
230
|
/*
|
|
190
231
|
object-assign
|
|
@@ -192,7 +233,7 @@ object-assign
|
|
|
192
233
|
@license MIT
|
|
193
234
|
*/
|
|
194
235
|
var re, ve;
|
|
195
|
-
function
|
|
236
|
+
function qe() {
|
|
196
237
|
if (ve)
|
|
197
238
|
return re;
|
|
198
239
|
ve = 1;
|
|
@@ -247,18 +288,18 @@ function ce() {
|
|
|
247
288
|
return te = e, te;
|
|
248
289
|
}
|
|
249
290
|
var ne, be;
|
|
250
|
-
function
|
|
291
|
+
function Oe() {
|
|
251
292
|
return be || (be = 1, ne = Function.call.bind(Object.prototype.hasOwnProperty)), ne;
|
|
252
293
|
}
|
|
253
294
|
var oe, he;
|
|
254
|
-
function
|
|
295
|
+
function Ye() {
|
|
255
296
|
if (he)
|
|
256
297
|
return oe;
|
|
257
298
|
he = 1;
|
|
258
299
|
var e = function() {
|
|
259
300
|
};
|
|
260
301
|
if (process.env.NODE_ENV !== "production") {
|
|
261
|
-
var s = ce(), t = {}, n =
|
|
302
|
+
var s = ce(), t = {}, n = Oe();
|
|
262
303
|
e = function(u) {
|
|
263
304
|
var h = "Warning: " + u;
|
|
264
305
|
typeof console < "u" && console.error(h);
|
|
@@ -301,11 +342,11 @@ function Ae() {
|
|
|
301
342
|
}, oe = c, oe;
|
|
302
343
|
}
|
|
303
344
|
var ie, Ee;
|
|
304
|
-
function
|
|
345
|
+
function De() {
|
|
305
346
|
if (Ee)
|
|
306
347
|
return ie;
|
|
307
348
|
Ee = 1;
|
|
308
|
-
var e =
|
|
349
|
+
var e = Pe(), s = qe(), t = ce(), n = Oe(), c = Ye(), u = function() {
|
|
309
350
|
};
|
|
310
351
|
process.env.NODE_ENV !== "production" && (u = function(f) {
|
|
311
352
|
var _ = "Warning: " + f;
|
|
@@ -623,7 +664,7 @@ Valid keys: ` + JSON.stringify(Object.keys(r), null, " ")
|
|
|
623
664
|
}, ie;
|
|
624
665
|
}
|
|
625
666
|
var ae, ge;
|
|
626
|
-
function
|
|
667
|
+
function ke() {
|
|
627
668
|
if (ge)
|
|
628
669
|
return ae;
|
|
629
670
|
ge = 1;
|
|
@@ -672,23 +713,23 @@ function $e() {
|
|
|
672
713
|
}, ae;
|
|
673
714
|
}
|
|
674
715
|
if (process.env.NODE_ENV !== "production") {
|
|
675
|
-
var
|
|
676
|
-
se.exports =
|
|
716
|
+
var We = Pe(), Le = !0;
|
|
717
|
+
se.exports = De()(We.isElement, Le);
|
|
677
718
|
} else
|
|
678
|
-
se.exports =
|
|
679
|
-
var
|
|
680
|
-
const
|
|
681
|
-
function
|
|
719
|
+
se.exports = ke()();
|
|
720
|
+
var Ne = se.exports;
|
|
721
|
+
const Qe = /* @__PURE__ */ $e(Ne);
|
|
722
|
+
function Fe(e, s) {
|
|
682
723
|
typeof e == "function" ? e(s) : e && (e.current = s);
|
|
683
724
|
}
|
|
684
|
-
function
|
|
725
|
+
function Ue(...e) {
|
|
685
726
|
return ue.useMemo(() => e.every((s) => s == null) ? null : (s) => {
|
|
686
727
|
e.forEach((t) => {
|
|
687
|
-
|
|
728
|
+
Fe(t, s);
|
|
688
729
|
});
|
|
689
730
|
}, e);
|
|
690
731
|
}
|
|
691
|
-
function
|
|
732
|
+
function er(e, s, t = void 0) {
|
|
692
733
|
const n = {};
|
|
693
734
|
return Object.keys(e).forEach(
|
|
694
735
|
// `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
|
|
@@ -704,7 +745,7 @@ function Qe(e, s, t = void 0) {
|
|
|
704
745
|
}
|
|
705
746
|
), n;
|
|
706
747
|
}
|
|
707
|
-
const
|
|
748
|
+
const ze = {
|
|
708
749
|
active: "active",
|
|
709
750
|
checked: "checked",
|
|
710
751
|
completed: "completed",
|
|
@@ -718,64 +759,6 @@ const ke = {
|
|
|
718
759
|
required: "required",
|
|
719
760
|
selected: "selected"
|
|
720
761
|
};
|
|
721
|
-
function We(e, s) {
|
|
722
|
-
if (e == null)
|
|
723
|
-
return {};
|
|
724
|
-
var t = {};
|
|
725
|
-
for (var n in e)
|
|
726
|
-
if (Object.prototype.hasOwnProperty.call(e, n)) {
|
|
727
|
-
if (s.indexOf(n) >= 0)
|
|
728
|
-
continue;
|
|
729
|
-
t[n] = e[n];
|
|
730
|
-
}
|
|
731
|
-
return t;
|
|
732
|
-
}
|
|
733
|
-
function Le(e) {
|
|
734
|
-
return typeof e == "string";
|
|
735
|
-
}
|
|
736
|
-
const Oe = "base";
|
|
737
|
-
function Ne(e) {
|
|
738
|
-
return `${Oe}--${e}`;
|
|
739
|
-
}
|
|
740
|
-
function Fe(e, s) {
|
|
741
|
-
return `${Oe}-${e}-${s}`;
|
|
742
|
-
}
|
|
743
|
-
function Ue(e, s) {
|
|
744
|
-
const t = ke[s];
|
|
745
|
-
return t ? Ne(t) : Fe(e, s);
|
|
746
|
-
}
|
|
747
|
-
function er(e, s) {
|
|
748
|
-
const t = {};
|
|
749
|
-
return s.forEach((n) => {
|
|
750
|
-
t[n] = Ue(e, n);
|
|
751
|
-
}), t;
|
|
752
|
-
}
|
|
753
|
-
function ze(e, s, t) {
|
|
754
|
-
return e === void 0 || Le(e) ? s : Y({}, s, {
|
|
755
|
-
ownerState: Y({}, s.ownerState, t)
|
|
756
|
-
});
|
|
757
|
-
}
|
|
758
|
-
const He = {
|
|
759
|
-
disableDefaultClasses: !1
|
|
760
|
-
}, Ce = /* @__PURE__ */ ue.createContext(He);
|
|
761
|
-
process.env.NODE_ENV !== "production" && (Ce.displayName = "ClassNameConfiguratorContext");
|
|
762
|
-
function rr(e) {
|
|
763
|
-
const {
|
|
764
|
-
disableDefaultClasses: s
|
|
765
|
-
} = ue.useContext(Ce);
|
|
766
|
-
return (t) => s ? "" : e(t);
|
|
767
|
-
}
|
|
768
|
-
function Ve(e, s = []) {
|
|
769
|
-
if (e === void 0)
|
|
770
|
-
return {};
|
|
771
|
-
const t = {};
|
|
772
|
-
return Object.keys(e).filter((n) => n.match(/^on[A-Z]/) && typeof e[n] == "function" && !s.includes(n)).forEach((n) => {
|
|
773
|
-
t[n] = e[n];
|
|
774
|
-
}), t;
|
|
775
|
-
}
|
|
776
|
-
function Be(e, s, t) {
|
|
777
|
-
return typeof e == "function" ? e(s, t) : e;
|
|
778
|
-
}
|
|
779
762
|
function Te(e) {
|
|
780
763
|
if (e === void 0)
|
|
781
764
|
return {};
|
|
@@ -784,7 +767,7 @@ function Te(e) {
|
|
|
784
767
|
s[t] = e[t];
|
|
785
768
|
}), s;
|
|
786
769
|
}
|
|
787
|
-
function
|
|
770
|
+
function He(e) {
|
|
788
771
|
const {
|
|
789
772
|
getSlotProps: s,
|
|
790
773
|
additionalProps: t,
|
|
@@ -799,42 +782,59 @@ function Je(e) {
|
|
|
799
782
|
internalRef: void 0
|
|
800
783
|
};
|
|
801
784
|
}
|
|
802
|
-
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);
|
|
803
786
|
return m.length > 0 && (x.className = m), Object.keys(S).length > 0 && (x.style = S), {
|
|
804
787
|
props: x,
|
|
805
788
|
internalRef: v.ref
|
|
806
789
|
};
|
|
807
790
|
}
|
|
808
|
-
const
|
|
809
|
-
function
|
|
791
|
+
const Ve = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
|
|
792
|
+
function rr(e) {
|
|
810
793
|
var s;
|
|
811
794
|
const {
|
|
812
795
|
elementType: t,
|
|
813
796
|
externalSlotProps: n,
|
|
814
797
|
ownerState: c,
|
|
815
798
|
skipResolvingSlotProps: u = !1
|
|
816
|
-
} = e, h =
|
|
799
|
+
} = e, h = je(e, Ve), f = u ? {} : Ae(n, c), {
|
|
817
800
|
props: _,
|
|
818
801
|
internalRef: v
|
|
819
|
-
} =
|
|
802
|
+
} = He(Y({}, h, {
|
|
820
803
|
externalSlotProps: f
|
|
821
|
-
})), m =
|
|
822
|
-
return
|
|
804
|
+
})), m = Ue(v, f == null ? void 0 : f.ref, (s = e.additionalProps) == null ? void 0 : s.ref);
|
|
805
|
+
return Re(t, Y({}, _, {
|
|
823
806
|
ref: m
|
|
824
807
|
}), c);
|
|
825
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
|
+
}
|
|
826
826
|
export {
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
827
|
+
Qe as P,
|
|
828
|
+
je as _,
|
|
829
|
+
tr as a,
|
|
830
830
|
Y as b,
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
831
|
+
rr as c,
|
|
832
|
+
er as d,
|
|
833
|
+
Ke as e,
|
|
834
|
+
we as f,
|
|
835
|
+
Xe as g,
|
|
836
|
+
$e as h,
|
|
837
|
+
_e as i,
|
|
838
|
+
Fe as s,
|
|
839
|
+
Ue as u
|
|
840
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,15 +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/Popover/Popover';
|
|
21
|
-
export * from './components/ResultWithChips/ResultWithChips';
|
|
22
|
-
export * from './components/RowItem/RowItem';
|
|
23
18
|
export * from './components/Select/Select';
|
|
24
19
|
export * from './components/Skeleton/Skeleton';
|
|
25
20
|
export * from './components/Snackbar/Snackbar';
|
|
26
21
|
export * from './components/SortTooltip/SortTooltip';
|
|
27
22
|
export * from './components/Stepper/Stepper';
|
|
28
|
-
export * from './components/StepperNavigator/StepperNavigator';
|
|
29
23
|
export * from './components/Table/Table';
|
|
30
24
|
export * from './components/Tabs/Tabs';
|
|
31
25
|
export * from './components/TextDisplay/TextDisplay';
|
package/dist/main.js
CHANGED
|
@@ -1,89 +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 vo } from "./components/Dialog/DialogTitle.js";
|
|
33
|
-
import { default as Ao } from "./components/Dialog/Content.js";
|
|
34
|
-
import { default as Go } from "./components/Dialog/Actions.js";
|
|
35
|
-
import { Tab as Ho } from "./components/Tabs/Tab.js";
|
|
36
|
-
import { TabPanel as Eo } 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";
|
|
37
32
|
export {
|
|
38
|
-
|
|
39
|
-
e as
|
|
40
|
-
p as
|
|
41
|
-
f as
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
C as
|
|
51
|
-
D as
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
H as
|
|
56
|
-
L as
|
|
57
|
-
O as
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
Q as
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
uo as Tooltip,
|
|
84
|
-
fo as Tr,
|
|
85
|
-
ko as Typography,
|
|
86
|
-
w as paginationDefaultTranslations,
|
|
87
|
-
X as sortTooltipDefaultTranslations,
|
|
88
|
-
Do 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
|
|
89
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
|
}
|