@pismo/marola 1.0.0-beta.4 → 1.0.0-beta.40
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-BAljjMv3.js} +2 -2
- package/dist/{ClickAwayListener-BSW-Nd-y.js → ClickAwayListener-DbEYZpyh.js} +4 -3
- package/dist/Dialog.module-D9e4RsKo.js +30 -0
- package/dist/Group-B80_u5Q1.js +27 -0
- package/dist/{Popup-B6ZSGIEI.js → Popup-Ck3XlWMq.js} +3 -3
- package/dist/{Portal-DIeBsWdL.js → Portal-oY3enyAm.js} +2 -2
- package/dist/SelectButton-BlVl6pJn.js +70 -0
- package/dist/{Tabs.module-jkH1Qjn7.js → Tabs.module-BGGTkDc5.js} +7 -7
- package/dist/Toggle-Dl-yPy8S.js +187 -0
- package/dist/assets/Adornment.css +1 -0
- package/dist/assets/Advice.css +1 -1
- package/dist/assets/Autocomplete.css +1 -0
- 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/ResultWithChips.css +1 -0
- 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/StepperNavigator.css +1 -0
- 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-DVjg9PRh.js → combineHooksSlotProps-C-zYvfnF.js} +1 -1
- package/dist/components/Adornment/Adornment.d.ts +20 -0
- package/dist/components/Adornment/Adornment.js +13 -0
- package/dist/components/Adornment/Adornment.stories.d.ts +14 -0
- package/dist/components/Adornment/adornment.test.d.ts +1 -0
- package/dist/components/Advice/Advice.d.ts +32 -17
- package/dist/components/Advice/Advice.js +39 -40
- package/dist/components/Advice/Advice.stories.d.ts +4 -3
- package/dist/components/Autocomplete/Autocomplete.d.ts +20 -0
- package/dist/components/Autocomplete/Autocomplete.js +679 -0
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +23 -0
- package/dist/components/Button/Button.d.ts +2 -0
- package/dist/components/Button/Button.js +51 -49
- package/dist/components/Checkbox/Checkbox.js +52 -52
- package/dist/components/Chip/Chip.d.ts +6 -12
- package/dist/components/Chip/Chip.js +8 -6
- package/dist/components/Chip/Chip.stories.d.ts +6 -15
- package/dist/components/Dialog/Actions.js +1 -1
- package/dist/components/Dialog/Backdrop.d.ts +3 -3
- package/dist/components/Dialog/Backdrop.js +8 -7
- package/dist/components/Dialog/CloseIconButton.d.ts +1 -2
- package/dist/components/Dialog/CloseIconButton.js +15 -18
- package/dist/components/Dialog/Dialog.d.ts +9 -6
- package/dist/components/Dialog/Dialog.js +139 -139
- package/dist/components/Dialog/Dialog.stories.d.ts +51 -47
- package/dist/components/Dialog/DialogTitle.js +1 -1
- package/dist/components/EllipsisTooltip/EllipsisTooltip.js +30 -17
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +3 -2
- package/dist/components/Icon/Icon.js +141 -47
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/IconButton/IconButton.js +42 -42
- package/dist/components/Input/Input.d.ts +24 -5
- package/dist/components/Input/Input.js +291 -278
- package/dist/components/Input/Input.stories.d.ts +2 -21
- package/dist/components/InputSearch/InputSearch.stories.d.ts +1 -21
- package/dist/components/LoadingSpinner/LoadingSpinner.stories.d.ts +1 -1
- package/dist/components/PageHeader/PageHeader.js +57 -57
- package/dist/components/Pagination/Pagination.d.ts +5 -1
- package/dist/components/Pagination/Pagination.js +87 -185
- package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
- package/dist/components/Pagination/usePagination.d.ts +90 -0
- package/dist/components/Pagination/usePagination.js +79 -0
- package/dist/components/ResultWithChips/ResultWithChips.d.ts +12 -0
- package/dist/components/ResultWithChips/ResultWithChips.js +33 -0
- package/dist/components/RowItem/RowItem.d.ts +25 -0
- package/dist/components/RowItem/RowItem.js +20 -0
- package/dist/components/RowItem/RowItem.stories.d.ts +17 -0
- package/dist/components/RowItem/rowItem.test.d.ts +1 -0
- package/dist/components/Select/Select.d.ts +7 -0
- package/dist/components/Select/Select.js +409 -365
- package/dist/components/Select/SelectButton.d.ts +1 -0
- package/dist/components/Select/SelectButton.js +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +3 -1
- package/dist/components/Skeleton/Skeleton.js +20 -14
- 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 +4 -4
- package/dist/components/SortTooltip/SortTooltip.js +46 -46
- package/dist/components/Stepper/Stepper.js +35 -35
- package/dist/components/StepperNavigator/StepperNavigator.d.ts +43 -0
- package/dist/components/StepperNavigator/StepperNavigator.js +56 -0
- package/dist/components/StepperNavigator/StepperNavigator.stories.d.ts +16 -0
- package/dist/components/StepperNavigator/StepperNavigator.test.d.ts +1 -0
- package/dist/components/Table/Table.d.ts +3 -1
- package/dist/components/Table/Table.js +87 -99
- package/dist/components/Table/Table.stories.d.ts +1 -1
- package/dist/components/Tabs/Tab.d.ts +5 -3
- package/dist/components/Tabs/Tab.js +38 -36
- package/dist/components/Tabs/TabPanel.d.ts +4 -2
- package/dist/components/Tabs/TabPanel.js +51 -40
- package/dist/components/Tabs/Tabs.d.ts +6 -4
- package/dist/components/Tabs/Tabs.js +131 -128
- package/dist/components/TextDisplay/TextDisplay.d.ts +9 -3
- package/dist/components/TextDisplay/TextDisplay.js +45 -31
- package/dist/components/TextDisplay/TextDisplay.stories.d.ts +2 -1
- package/dist/components/Toggle/Toggle.js +56 -56
- package/dist/components/ToggleGroup/Group.js +1 -1
- package/dist/components/ToggleGroup/Toggle.d.ts +1 -0
- package/dist/components/ToggleGroup/Toggle.js +6 -5
- package/dist/components/ToggleGroup/ToggleGroup.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +3 -1
- package/dist/components/Tooltip/Tooltip.js +4 -4
- package/dist/components/Tooltip/Tooltip.stories.d.ts +2 -1
- package/dist/components/Typography/Typography.js +47 -47
- package/dist/components/Typography/Typography.stories.d.ts +1 -1
- package/dist/contexts/SnackbarProvider/SnackbarProvider.stories.d.ts +1 -1
- package/dist/{index-CjW42-M-.js → index-bQFToy-I.js} +1 -1
- package/dist/main.d.ts +5 -0
- package/dist/main.js +85 -76
- package/dist/ownerDocument-YGhwAnr1.js +33 -0
- package/dist/{useButton-DNk3wrQp.js → useButton-DcihopJG.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-B9C55YB7.js} +2 -2
- package/dist/{index-CH45lKw7.js → useSlotProps-C_I1kEHr.js} +99 -99
- package/package.json +21 -12
- package/dist/Dialog.module-DFEmFdYT.js +0 -30
- package/dist/Group-B3p31ftp.js +0 -26
- package/dist/SelectButton-K3OIfR5m.js +0 -61
- package/dist/Toggle-BCgIItCc.js +0 -142
- package/dist/useCompoundItem-D1iRfg8D.js +0 -84
- package/dist/useEventCallback-xTG9piMa.js +0 -45
package/dist/main.js
CHANGED
|
@@ -1,78 +1,87 @@
|
|
|
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 {
|
|
1
|
+
import { Adornment as e } from "./components/Adornment/Adornment.js";
|
|
2
|
+
import { Advice as p } from "./components/Advice/Advice.js";
|
|
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-Dl-yPy8S.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 C } 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 v } from "./components/LoadingSpinner/LoadingSpinner.js";
|
|
14
|
+
import { PageHeader as G } from "./components/PageHeader/PageHeader.js";
|
|
15
|
+
import { Pagination as H, paginationDefaultTranslations as w } from "./components/Pagination/Pagination.js";
|
|
16
|
+
import { ResultWithChips as L } from "./components/ResultWithChips/ResultWithChips.js";
|
|
17
|
+
import { Select as O, SelectOption as W } from "./components/Select/Select.js";
|
|
18
|
+
import { Skeleton as q, SkeletonCircle as z, SkeletonTable as F } from "./components/Skeleton/Skeleton.js";
|
|
19
|
+
import { Snackbar as K } from "./components/Snackbar/Snackbar.js";
|
|
20
|
+
import { SortTooltip as Q, sortTooltipDefaultTranslations as U } from "./components/SortTooltip/SortTooltip.js";
|
|
21
|
+
import { Stepper as X } from "./components/Stepper/Stepper.js";
|
|
22
|
+
import { StepperNavigator as Z } from "./components/StepperNavigator/StepperNavigator.js";
|
|
23
|
+
import { TBody as $, THead as oo, Table as ro, Td as eo, Th as to, Tr as po } from "./components/Table/Table.js";
|
|
24
|
+
import { Tabs as fo } from "./components/Tabs/Tabs.js";
|
|
25
|
+
import { TextDisplay as xo } from "./components/TextDisplay/TextDisplay.js";
|
|
26
|
+
import { Toggle as lo } from "./components/Toggle/Toggle.js";
|
|
27
|
+
import { G as To } from "./Group-B80_u5Q1.js";
|
|
28
|
+
import { Tooltip as co } from "./components/Tooltip/Tooltip.js";
|
|
29
|
+
import { Text as uo, Typography as So } from "./components/Typography/Typography.js";
|
|
30
|
+
import { SnackbarContext as ko, SnackbarProvider as ho, useSnackbar as Co } from "./contexts/SnackbarProvider/SnackbarProvider.js";
|
|
31
|
+
import { default as Do } from "./components/Dialog/DialogTitle.js";
|
|
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";
|
|
32
36
|
export {
|
|
33
|
-
|
|
34
|
-
e as
|
|
35
|
-
p as
|
|
36
|
-
f as
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
C as
|
|
46
|
-
D as
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
H as
|
|
51
|
-
L as
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
F as
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
37
|
+
vo as Actions,
|
|
38
|
+
e as Adornment,
|
|
39
|
+
p as Advice,
|
|
40
|
+
f as Autocomplete,
|
|
41
|
+
x as Button,
|
|
42
|
+
l as Checkbox,
|
|
43
|
+
T as Chip,
|
|
44
|
+
Ao as Content,
|
|
45
|
+
u as Dialog,
|
|
46
|
+
Do as DialogTitle,
|
|
47
|
+
d as EllipsisTooltip,
|
|
48
|
+
k as Icon,
|
|
49
|
+
C as IconButton,
|
|
50
|
+
D as Input,
|
|
51
|
+
A as InputSearch,
|
|
52
|
+
v as LoadingSpinner,
|
|
53
|
+
G as PageHeader,
|
|
54
|
+
H as Pagination,
|
|
55
|
+
L as ResultWithChips,
|
|
56
|
+
s as RowItem,
|
|
57
|
+
O as Select,
|
|
58
|
+
W as SelectOption,
|
|
59
|
+
q as Skeleton,
|
|
60
|
+
z as SkeletonCircle,
|
|
61
|
+
F as SkeletonTable,
|
|
62
|
+
K as Snackbar,
|
|
63
|
+
ko as SnackbarContext,
|
|
64
|
+
ho as SnackbarProvider,
|
|
65
|
+
Q as SortTooltip,
|
|
66
|
+
X as Stepper,
|
|
67
|
+
Z as StepperNavigator,
|
|
68
|
+
$ as TBody,
|
|
69
|
+
oo as THead,
|
|
70
|
+
Go as Tab,
|
|
71
|
+
Ho as TabPanel,
|
|
72
|
+
ro as Table,
|
|
73
|
+
fo as Tabs,
|
|
74
|
+
eo as Td,
|
|
75
|
+
uo as Text,
|
|
76
|
+
xo as TextDisplay,
|
|
77
|
+
to as Th,
|
|
78
|
+
lo as Toggle,
|
|
79
|
+
To as ToggleGroup,
|
|
80
|
+
c as ToggleGroupItem,
|
|
81
|
+
co as Tooltip,
|
|
82
|
+
po as Tr,
|
|
83
|
+
So as Typography,
|
|
84
|
+
w as paginationDefaultTranslations,
|
|
85
|
+
U as sortTooltipDefaultTranslations,
|
|
86
|
+
Co as useSnackbar
|
|
78
87
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { P as c } from "./useSlotProps-C_I1kEHr.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
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { u as I } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
3
|
+
const p = /* @__PURE__ */ o.createContext(null);
|
|
4
|
+
process.env.NODE_ENV !== "production" && (p.displayName = "CompoundComponentContext");
|
|
5
|
+
function b(t) {
|
|
6
|
+
const c = Array.from(t.keys()).map((e) => {
|
|
7
|
+
const r = t.get(e);
|
|
8
|
+
return {
|
|
9
|
+
key: e,
|
|
10
|
+
subitem: r
|
|
11
|
+
};
|
|
12
|
+
});
|
|
13
|
+
return c.sort((e, r) => {
|
|
14
|
+
const n = e.subitem.ref.current, s = r.subitem.ref.current;
|
|
15
|
+
return n === null || s === null || n === s ? 0 : n.compareDocumentPosition(s) & Node.DOCUMENT_POSITION_PRECEDING ? 1 : -1;
|
|
16
|
+
}), new Map(c.map((e) => [e.key, e.subitem]));
|
|
17
|
+
}
|
|
18
|
+
function x() {
|
|
19
|
+
const [t, c] = o.useState(/* @__PURE__ */ new Map()), e = o.useRef(/* @__PURE__ */ new Set()), r = o.useCallback(function(i) {
|
|
20
|
+
e.current.delete(i), c((a) => {
|
|
21
|
+
const u = new Map(a);
|
|
22
|
+
return u.delete(i), u;
|
|
23
|
+
});
|
|
24
|
+
}, []), n = o.useCallback(function(i, a) {
|
|
25
|
+
let u;
|
|
26
|
+
return typeof i == "function" ? u = i(e.current) : u = i, e.current.add(u), c((C) => {
|
|
27
|
+
const l = new Map(C);
|
|
28
|
+
return l.set(u, a), l;
|
|
29
|
+
}), {
|
|
30
|
+
id: u,
|
|
31
|
+
deregister: () => r(u)
|
|
32
|
+
};
|
|
33
|
+
}, [r]), s = o.useMemo(() => b(t), [t]), m = o.useCallback(function(i) {
|
|
34
|
+
return Array.from(s.keys()).indexOf(i);
|
|
35
|
+
}, [s]);
|
|
36
|
+
return {
|
|
37
|
+
contextValue: o.useMemo(() => ({
|
|
38
|
+
getItemIndex: m,
|
|
39
|
+
registerItem: n,
|
|
40
|
+
totalSubitemCount: t.size
|
|
41
|
+
}), [m, n, t.size]),
|
|
42
|
+
subitems: s
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function S(t, c) {
|
|
46
|
+
const e = o.useContext(p);
|
|
47
|
+
if (e === null)
|
|
48
|
+
throw new Error("useCompoundItem must be used within a useCompoundParent");
|
|
49
|
+
const {
|
|
50
|
+
registerItem: r
|
|
51
|
+
} = e, [n, s] = o.useState(typeof t == "function" ? void 0 : t);
|
|
52
|
+
return I(() => {
|
|
53
|
+
const {
|
|
54
|
+
id: m,
|
|
55
|
+
deregister: d
|
|
56
|
+
} = r(t, c);
|
|
57
|
+
return s(m), d;
|
|
58
|
+
}, [r, c, t]), {
|
|
59
|
+
id: n,
|
|
60
|
+
index: n !== void 0 ? e.getItemIndex(n) : -1,
|
|
61
|
+
totalItemCount: e.totalSubitemCount
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export {
|
|
65
|
+
p as C,
|
|
66
|
+
x as a,
|
|
67
|
+
S as u
|
|
68
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
import { u as c } from "./useEnhancedEffect-CJGo-L3B.js";
|
|
3
|
+
function s(e) {
|
|
4
|
+
const r = t.useRef(e);
|
|
5
|
+
return c(() => {
|
|
6
|
+
r.current = e;
|
|
7
|
+
}), t.useRef((...u) => (
|
|
8
|
+
// @ts-expect-error hide `this`
|
|
9
|
+
(0, r.current)(...u)
|
|
10
|
+
)).current;
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
s as u
|
|
14
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
let n = 0;
|
|
3
|
+
function l(t) {
|
|
4
|
+
const [u, o] = e.useState(t), a = t || u;
|
|
5
|
+
return e.useEffect(() => {
|
|
6
|
+
u == null && (n += 1, o(`mui-${n}`));
|
|
7
|
+
}, [u]), a;
|
|
8
|
+
}
|
|
9
|
+
const s = e.useId;
|
|
10
|
+
function c(t) {
|
|
11
|
+
if (s !== void 0) {
|
|
12
|
+
const u = s();
|
|
13
|
+
return t ?? u;
|
|
14
|
+
}
|
|
15
|
+
return l(t);
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
c as u
|
|
19
|
+
};
|
|
@@ -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 "./useSlotProps-C_I1kEHr.js";
|
|
2
2
|
import * as f from "react";
|
|
3
|
-
import { L as x } from "./combineHooksSlotProps-
|
|
3
|
+
import { L as x } from "./combineHooksSlotProps-C-zYvfnF.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
|
}
|
|
@@ -12,47 +12,6 @@ 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) {
|
|
56
15
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
57
16
|
}
|
|
58
17
|
var se = { exports: {} }, V = { exports: {} }, P = {};
|
|
@@ -65,7 +24,7 @@ var se = { exports: {} }, V = { exports: {} }, P = {};
|
|
|
65
24
|
* LICENSE file in the root directory of this source tree.
|
|
66
25
|
*/
|
|
67
26
|
var de;
|
|
68
|
-
function
|
|
27
|
+
function Re() {
|
|
69
28
|
if (de)
|
|
70
29
|
return P;
|
|
71
30
|
de = 1;
|
|
@@ -141,7 +100,7 @@ var O = {};
|
|
|
141
100
|
* LICENSE file in the root directory of this source tree.
|
|
142
101
|
*/
|
|
143
102
|
var pe;
|
|
144
|
-
function
|
|
103
|
+
function xe() {
|
|
145
104
|
return pe || (pe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
146
105
|
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;
|
|
147
106
|
function j(o) {
|
|
@@ -224,8 +183,8 @@ function Me() {
|
|
|
224
183
|
}()), O;
|
|
225
184
|
}
|
|
226
185
|
var ye;
|
|
227
|
-
function
|
|
228
|
-
return ye || (ye = 1, process.env.NODE_ENV === "production" ? V.exports =
|
|
186
|
+
function Se() {
|
|
187
|
+
return ye || (ye = 1, process.env.NODE_ENV === "production" ? V.exports = Re() : V.exports = xe()), V.exports;
|
|
229
188
|
}
|
|
230
189
|
/*
|
|
231
190
|
object-assign
|
|
@@ -233,7 +192,7 @@ object-assign
|
|
|
233
192
|
@license MIT
|
|
234
193
|
*/
|
|
235
194
|
var re, ve;
|
|
236
|
-
function
|
|
195
|
+
function we() {
|
|
237
196
|
if (ve)
|
|
238
197
|
return re;
|
|
239
198
|
ve = 1;
|
|
@@ -288,18 +247,18 @@ function ce() {
|
|
|
288
247
|
return te = e, te;
|
|
289
248
|
}
|
|
290
249
|
var ne, be;
|
|
291
|
-
function
|
|
250
|
+
function Pe() {
|
|
292
251
|
return be || (be = 1, ne = Function.call.bind(Object.prototype.hasOwnProperty)), ne;
|
|
293
252
|
}
|
|
294
253
|
var oe, he;
|
|
295
|
-
function
|
|
254
|
+
function Ae() {
|
|
296
255
|
if (he)
|
|
297
256
|
return oe;
|
|
298
257
|
he = 1;
|
|
299
258
|
var e = function() {
|
|
300
259
|
};
|
|
301
260
|
if (process.env.NODE_ENV !== "production") {
|
|
302
|
-
var s = ce(), t = {}, n =
|
|
261
|
+
var s = ce(), t = {}, n = Pe();
|
|
303
262
|
e = function(u) {
|
|
304
263
|
var h = "Warning: " + u;
|
|
305
264
|
typeof console < "u" && console.error(h);
|
|
@@ -342,11 +301,11 @@ function Ye() {
|
|
|
342
301
|
}, oe = c, oe;
|
|
343
302
|
}
|
|
344
303
|
var ie, Ee;
|
|
345
|
-
function
|
|
304
|
+
function je() {
|
|
346
305
|
if (Ee)
|
|
347
306
|
return ie;
|
|
348
307
|
Ee = 1;
|
|
349
|
-
var e =
|
|
308
|
+
var e = Se(), s = we(), t = ce(), n = Pe(), c = Ae(), u = function() {
|
|
350
309
|
};
|
|
351
310
|
process.env.NODE_ENV !== "production" && (u = function(f) {
|
|
352
311
|
var _ = "Warning: " + f;
|
|
@@ -664,7 +623,7 @@ Valid keys: ` + JSON.stringify(Object.keys(r), null, " ")
|
|
|
664
623
|
}, ie;
|
|
665
624
|
}
|
|
666
625
|
var ae, ge;
|
|
667
|
-
function
|
|
626
|
+
function $e() {
|
|
668
627
|
if (ge)
|
|
669
628
|
return ae;
|
|
670
629
|
ge = 1;
|
|
@@ -713,23 +672,23 @@ function ke() {
|
|
|
713
672
|
}, ae;
|
|
714
673
|
}
|
|
715
674
|
if (process.env.NODE_ENV !== "production") {
|
|
716
|
-
var
|
|
717
|
-
se.exports =
|
|
675
|
+
var Ie = Se(), Me = !0;
|
|
676
|
+
se.exports = je()(Ie.isElement, Me);
|
|
718
677
|
} else
|
|
719
|
-
se.exports =
|
|
720
|
-
var
|
|
721
|
-
const
|
|
722
|
-
function
|
|
678
|
+
se.exports = $e()();
|
|
679
|
+
var qe = se.exports;
|
|
680
|
+
const Ke = /* @__PURE__ */ _e(qe);
|
|
681
|
+
function Ye(e, s) {
|
|
723
682
|
typeof e == "function" ? e(s) : e && (e.current = s);
|
|
724
683
|
}
|
|
725
|
-
function
|
|
684
|
+
function De(...e) {
|
|
726
685
|
return ue.useMemo(() => e.every((s) => s == null) ? null : (s) => {
|
|
727
686
|
e.forEach((t) => {
|
|
728
|
-
|
|
687
|
+
Ye(t, s);
|
|
729
688
|
});
|
|
730
689
|
}, e);
|
|
731
690
|
}
|
|
732
|
-
function
|
|
691
|
+
function Qe(e, s, t = void 0) {
|
|
733
692
|
const n = {};
|
|
734
693
|
return Object.keys(e).forEach(
|
|
735
694
|
// `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
|
|
@@ -745,7 +704,7 @@ function er(e, s, t = void 0) {
|
|
|
745
704
|
}
|
|
746
705
|
), n;
|
|
747
706
|
}
|
|
748
|
-
const
|
|
707
|
+
const ke = {
|
|
749
708
|
active: "active",
|
|
750
709
|
checked: "checked",
|
|
751
710
|
completed: "completed",
|
|
@@ -759,6 +718,64 @@ const ze = {
|
|
|
759
718
|
required: "required",
|
|
760
719
|
selected: "selected"
|
|
761
720
|
};
|
|
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
|
+
}
|
|
762
779
|
function Te(e) {
|
|
763
780
|
if (e === void 0)
|
|
764
781
|
return {};
|
|
@@ -767,7 +784,7 @@ function Te(e) {
|
|
|
767
784
|
s[t] = e[t];
|
|
768
785
|
}), s;
|
|
769
786
|
}
|
|
770
|
-
function
|
|
787
|
+
function Je(e) {
|
|
771
788
|
const {
|
|
772
789
|
getSlotProps: s,
|
|
773
790
|
additionalProps: t,
|
|
@@ -782,59 +799,42 @@ function He(e) {
|
|
|
782
799
|
internalRef: void 0
|
|
783
800
|
};
|
|
784
801
|
}
|
|
785
|
-
const h =
|
|
802
|
+
const h = Ve(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);
|
|
786
803
|
return m.length > 0 && (x.className = m), Object.keys(S).length > 0 && (x.style = S), {
|
|
787
804
|
props: x,
|
|
788
805
|
internalRef: v.ref
|
|
789
806
|
};
|
|
790
807
|
}
|
|
791
|
-
const
|
|
792
|
-
function
|
|
808
|
+
const Xe = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
|
|
809
|
+
function tr(e) {
|
|
793
810
|
var s;
|
|
794
811
|
const {
|
|
795
812
|
elementType: t,
|
|
796
813
|
externalSlotProps: n,
|
|
797
814
|
ownerState: c,
|
|
798
815
|
skipResolvingSlotProps: u = !1
|
|
799
|
-
} = e, h =
|
|
816
|
+
} = e, h = We(e, Xe), f = u ? {} : Be(n, c), {
|
|
800
817
|
props: _,
|
|
801
818
|
internalRef: v
|
|
802
|
-
} =
|
|
819
|
+
} = Je(Y({}, h, {
|
|
803
820
|
externalSlotProps: f
|
|
804
|
-
})), m =
|
|
805
|
-
return
|
|
821
|
+
})), m = De(v, f == null ? void 0 : f.ref, (s = e.additionalProps) == null ? void 0 : s.ref);
|
|
822
|
+
return ze(t, Y({}, _, {
|
|
806
823
|
ref: m
|
|
807
824
|
}), c);
|
|
808
825
|
}
|
|
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
|
+
Ke as P,
|
|
828
|
+
We as _,
|
|
829
|
+
er as a,
|
|
830
830
|
Y as b,
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
831
|
+
tr as c,
|
|
832
|
+
Qe as d,
|
|
833
|
+
rr as e,
|
|
834
|
+
Ve as f,
|
|
835
|
+
Ue as g,
|
|
836
|
+
_e as h,
|
|
837
|
+
Le as i,
|
|
838
|
+
Ye as s,
|
|
839
|
+
De as u
|
|
840
840
|
};
|