@solostylist/ui-kit 1.0.11 → 1.0.12
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/README.md +1 -1
- package/dist/{Box-DyPisl7H.js → Box-BAmUWsQI.js} +4 -4
- package/dist/{Menu-CzI0zcbw.js → Menu-B8rPlcSd.js} +426 -420
- package/dist/{Stack-DIkbVcfm.js → Stack-DDbGEkxd.js} +17 -18
- package/dist/{Typography-jSFidXje.js → Typography-DiJzGJJd.js} +4 -4
- package/dist/{buttonBaseClasses-DxKwiRBX.js → buttonBaseClasses-DuDP2bLR.js} +2 -2
- package/dist/{createSvgIcon-B7_s-URK.js → createSvgIcon-Bpes8W5L.js} +20 -20
- package/dist/{createTheme-BZxWCiBm.js → createTheme-DDycScYN.js} +294 -263
- package/dist/{extendSxProp-SCsFy5tr.js → extendSxProp-De4gGzfV.js} +1 -1
- package/dist/{generateUtilityClasses-STjIp_B9.js → generateUtilityClasses-Z7VQRhBn.js} +1 -1
- package/dist/{iconButtonClasses-CqYTUZq-.js → iconButtonClasses-8TuGhR-e.js} +2 -2
- package/dist/{index-DljiS4x1.js → index-CBHvlAxO.js} +4 -4
- package/dist/main.d.ts +0 -13
- package/dist/main.js +73 -99
- package/dist/{memoTheme-CaOW5YiB.js → memoTheme-DX35GGEJ.js} +30 -30
- package/dist/{menuItemClasses-BxqenSTj.js → menuItemClasses-DLFqc90k.js} +2 -2
- package/dist/outlinedInputClasses-CnRkAD7A.js +19 -0
- package/dist/s-button-link/s-button-link.d.ts +2 -3
- package/dist/s-button-link/s-button-link.js +11 -12
- package/dist/s-checkbox/s-checkbox.js +8 -9
- package/dist/s-chips/s-chips.js +6 -7
- package/dist/s-data-table/s-data-table.js +232 -233
- package/dist/s-dialog-confirm/s-dialog-confirm.js +26 -27
- package/dist/s-dialog-message/s-dialog-message.js +27 -28
- package/dist/s-file-dropzone/s-file-dropzone.js +27 -29
- package/dist/s-file-icon/s-file-icon.js +1 -1
- package/dist/s-multi-select/s-multi-select.js +318 -33
- package/dist/s-pagination/s-pagination.d.ts +2 -1
- package/dist/s-pagination/s-pagination.js +12 -15
- package/dist/s-select/s-select.js +10 -11
- package/dist/s-text-editor/s-text-editor-toolbar.js +506 -508
- package/dist/s-text-editor/s-text-editor.js +1 -1
- package/dist/s-theme-provider/s-theme-provider.js +1 -1
- package/dist/s-tip/s-tip.js +3 -3
- package/dist/{selectClasses-BaagNb21.js → selectClasses-CDFwg8w_.js} +2 -2
- package/dist/{svgIconClasses-SzHbWjUv.js → svgIconClasses-XJq1Ciua.js} +2 -2
- package/dist/theme/{customizations/components → components}/avatar.js +2 -2
- package/dist/theme/components/components.d.ts +2 -1126
- package/dist/theme/components/components.js +4 -108
- package/dist/theme/customizations/data-display.js +98 -58
- package/dist/theme/customizations/feedback.js +1 -1
- package/dist/theme/customizations/inputs.js +5 -5
- package/dist/theme/customizations/navigation.js +24 -24
- package/dist/theme/customizations/surfaces.js +1 -1
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/{typographyClasses-BrhUWCU3.js → typographyClasses-CyVhKkh8.js} +2 -2
- package/dist/useSlot-B682hoPx.js +1179 -0
- package/dist/{useTheme-DrS6mww6.js → useTheme-DPznNGA-.js} +1 -1
- package/package.json +1 -1
- package/dist/ButtonBase-BFsNsbc9.js +0 -999
- package/dist/CaretDown-CZu0drmJ.js +0 -41
- package/dist/MenuItem-Bl45WcKS.js +0 -258
- package/dist/backdropClasses-lc38rgzd.js +0 -10
- package/dist/generateUtilityClass-CRH_bFW6.js +0 -34
- package/dist/inputBaseClasses-BRd7g4Od.js +0 -10
- package/dist/listItemIconClasses-D-kc0Y9u.js +0 -5
- package/dist/outlinedInputClasses-BTtPbpE5.js +0 -14
- package/dist/paperClasses-D1WMlaxU.js +0 -10
- package/dist/s-avatar/index.d.ts +0 -1
- package/dist/s-avatar/index.js +0 -4
- package/dist/s-avatar/package.json +0 -5
- package/dist/s-avatar/s-avatar.d.ts +0 -6
- package/dist/s-avatar/s-avatar.js +0 -6
- package/dist/s-box/index.d.ts +0 -1
- package/dist/s-box/index.js +0 -4
- package/dist/s-box/package.json +0 -5
- package/dist/s-box/s-box.d.ts +0 -5
- package/dist/s-box/s-box.js +0 -6
- package/dist/s-breadcrumbs-separator/index.d.ts +0 -1
- package/dist/s-breadcrumbs-separator/index.js +0 -4
- package/dist/s-breadcrumbs-separator/package.json +0 -5
- package/dist/s-breadcrumbs-separator/s-breadcrumbs-separator.d.ts +0 -3
- package/dist/s-breadcrumbs-separator/s-breadcrumbs-separator.js +0 -6
- package/dist/s-button/index.d.ts +0 -1
- package/dist/s-button/index.js +0 -4
- package/dist/s-button/package.json +0 -5
- package/dist/s-button/s-button.d.ts +0 -6
- package/dist/s-button/s-button.js +0 -18
- package/dist/s-card/index.d.ts +0 -1
- package/dist/s-card/index.js +0 -4
- package/dist/s-card/package.json +0 -5
- package/dist/s-card/s-card.d.ts +0 -6
- package/dist/s-card/s-card.js +0 -6
- package/dist/s-card-actions/index.d.ts +0 -1
- package/dist/s-card-actions/index.js +0 -4
- package/dist/s-card-actions/package.json +0 -5
- package/dist/s-card-actions/s-card-actions.d.ts +0 -6
- package/dist/s-card-actions/s-card-actions.js +0 -6
- package/dist/s-card-content/index.d.ts +0 -1
- package/dist/s-card-content/index.js +0 -4
- package/dist/s-card-content/package.json +0 -5
- package/dist/s-card-content/s-card-content.d.ts +0 -6
- package/dist/s-card-content/s-card-content.js +0 -6
- package/dist/s-card-header/index.d.ts +0 -1
- package/dist/s-card-header/index.js +0 -4
- package/dist/s-card-header/package.json +0 -5
- package/dist/s-card-header/s-card-header.d.ts +0 -6
- package/dist/s-card-header/s-card-header.js +0 -6
- package/dist/s-chip/index.d.ts +0 -1
- package/dist/s-chip/index.js +0 -4
- package/dist/s-chip/package.json +0 -5
- package/dist/s-chip/s-chip.d.ts +0 -6
- package/dist/s-chip/s-chip.js +0 -6
- package/dist/s-link/index.d.ts +0 -1
- package/dist/s-link/index.js +0 -4
- package/dist/s-link/package.json +0 -5
- package/dist/s-link/s-link.d.ts +0 -6
- package/dist/s-link/s-link.js +0 -6
- package/dist/s-menu-item/index.d.ts +0 -1
- package/dist/s-menu-item/index.js +0 -4
- package/dist/s-menu-item/package.json +0 -5
- package/dist/s-menu-item/s-menu-item.d.ts +0 -9
- package/dist/s-menu-item/s-menu-item.js +0 -6
- package/dist/s-rating/index.d.ts +0 -1
- package/dist/s-rating/index.js +0 -4
- package/dist/s-rating/package.json +0 -5
- package/dist/s-rating/s-rating.d.ts +0 -7
- package/dist/s-rating/s-rating.js +0 -6
- package/dist/s-stack/index.d.ts +0 -1
- package/dist/s-stack/index.js +0 -4
- package/dist/s-stack/package.json +0 -5
- package/dist/s-stack/s-stack.d.ts +0 -5
- package/dist/s-stack/s-stack.js +0 -6
- package/dist/tabClasses-CDDkt7la.js +0 -5
- package/dist/tableCellClasses-CBw1aep0.js +0 -10
- package/dist/theme/components/accordion.d.ts +0 -8
- package/dist/theme/components/accordion.js +0 -11
- package/dist/theme/components/alert.d.ts +0 -7
- package/dist/theme/components/alert.js +0 -4
- package/dist/theme/components/autocomplete.d.ts +0 -124
- package/dist/theme/components/autocomplete.js +0 -51
- package/dist/theme/components/backdrop.d.ts +0 -9
- package/dist/theme/components/backdrop.js +0 -9
- package/dist/theme/components/button-base.d.ts +0 -5
- package/dist/theme/components/button-base.js +0 -4
- package/dist/theme/components/button-group.d.ts +0 -5
- package/dist/theme/components/button-group.js +0 -4
- package/dist/theme/components/button.d.ts +0 -156
- package/dist/theme/components/button.js +0 -109
- package/dist/theme/components/card-actions.d.ts +0 -7
- package/dist/theme/components/card-actions.js +0 -6
- package/dist/theme/components/card-content.d.ts +0 -10
- package/dist/theme/components/card-content.js +0 -7
- package/dist/theme/components/card-header.d.ts +0 -25
- package/dist/theme/components/card-header.js +0 -20
- package/dist/theme/components/card.d.ts +0 -17
- package/dist/theme/components/card.js +0 -17
- package/dist/theme/components/checkbox.d.ts +0 -18
- package/dist/theme/components/checkbox.js +0 -60
- package/dist/theme/components/chip.d.ts +0 -28
- package/dist/theme/components/chip.js +0 -62
- package/dist/theme/components/dialog-actions.d.ts +0 -7
- package/dist/theme/components/dialog-actions.js +0 -6
- package/dist/theme/components/dialog-content-text.d.ts +0 -8
- package/dist/theme/components/dialog-content-text.js +0 -6
- package/dist/theme/components/dialog-content.d.ts +0 -8
- package/dist/theme/components/dialog-content.js +0 -6
- package/dist/theme/components/dialog-title.d.ts +0 -7
- package/dist/theme/components/dialog-title.js +0 -6
- package/dist/theme/components/filled-input.d.ts +0 -31
- package/dist/theme/components/filled-input.js +0 -21
- package/dist/theme/components/form-control-label.d.ts +0 -15
- package/dist/theme/components/form-control-label.js +0 -7
- package/dist/theme/components/form-group.d.ts +0 -7
- package/dist/theme/components/form-group.js +0 -4
- package/dist/theme/components/form-helper-text.d.ts +0 -8
- package/dist/theme/components/form-helper-text.js +0 -8
- package/dist/theme/components/form-label.d.ts +0 -12
- package/dist/theme/components/form-label.js +0 -9
- package/dist/theme/components/icon-button.d.ts +0 -83
- package/dist/theme/components/icon-button.js +0 -49
- package/dist/theme/components/input-base.d.ts +0 -39
- package/dist/theme/components/input-base.js +0 -34
- package/dist/theme/components/input-label.d.ts +0 -10
- package/dist/theme/components/input-label.js +0 -6
- package/dist/theme/components/input.d.ts +0 -32
- package/dist/theme/components/input.js +0 -22
- package/dist/theme/components/linear-progress.d.ts +0 -8
- package/dist/theme/components/linear-progress.js +0 -6
- package/dist/theme/components/link.d.ts +0 -10
- package/dist/theme/components/link.js +0 -11
- package/dist/theme/components/list-item-avatar.d.ts +0 -7
- package/dist/theme/components/list-item-avatar.js +0 -6
- package/dist/theme/components/list-item-button.d.ts +0 -10
- package/dist/theme/components/list-item-button.js +0 -7
- package/dist/theme/components/list-item-icon.d.ts +0 -9
- package/dist/theme/components/list-item-icon.js +0 -6
- package/dist/theme/components/list-item-text.d.ts +0 -7
- package/dist/theme/components/list-item-text.js +0 -6
- package/dist/theme/components/list-item.d.ts +0 -7
- package/dist/theme/components/list-item.js +0 -6
- package/dist/theme/components/list.d.ts +0 -7
- package/dist/theme/components/list.js +0 -6
- package/dist/theme/components/menu-item.d.ts +0 -17
- package/dist/theme/components/menu-item.js +0 -17
- package/dist/theme/components/menu.d.ts +0 -13
- package/dist/theme/components/menu.js +0 -7
- package/dist/theme/components/outlined-input.d.ts +0 -127
- package/dist/theme/components/outlined-input.js +0 -47
- package/dist/theme/components/paper.d.ts +0 -7
- package/dist/theme/components/paper.js +0 -6
- package/dist/theme/components/popover.d.ts +0 -11
- package/dist/theme/components/popover.js +0 -7
- package/dist/theme/components/radio.d.ts +0 -13
- package/dist/theme/components/radio.js +0 -25
- package/dist/theme/components/select.d.ts +0 -21
- package/dist/theme/components/select.js +0 -18
- package/dist/theme/components/skeleton.d.ts +0 -5
- package/dist/theme/components/skeleton.js +0 -8
- package/dist/theme/components/stack.d.ts +0 -5
- package/dist/theme/components/stack.js +0 -4
- package/dist/theme/components/switch.d.ts +0 -19
- package/dist/theme/components/switch.js +0 -11
- package/dist/theme/components/tab.d.ts +0 -18
- package/dist/theme/components/tab.js +0 -15
- package/dist/theme/components/table-body.d.ts +0 -5
- package/dist/theme/components/table-body.js +0 -10
- package/dist/theme/components/table-cell.d.ts +0 -10
- package/dist/theme/components/table-cell.js +0 -11
- package/dist/theme/components/table-head.d.ts +0 -11
- package/dist/theme/components/table-head.js +0 -15
- package/dist/theme/components/table-pagination.d.ts +0 -28
- package/dist/theme/components/table-pagination.js +0 -93
- package/dist/theme/components/tabs.d.ts +0 -33
- package/dist/theme/components/tabs.js +0 -21
- package/dist/theme/components/toggle-button-group.d.ts +0 -23
- package/dist/theme/components/toggle-button-group.js +0 -17
- package/dist/theme/components/toggle-button.d.ts +0 -12
- package/dist/theme/components/toggle-button.js +0 -9
- package/dist/theme/components/tooltip.d.ts +0 -10
- package/dist/theme/components/tooltip.js +0 -7
- package/dist/theme/customizations/components/components.d.ts +0 -7
- package/dist/theme/customizations/components/components.js +0 -7
- package/dist/useSlot-CtsS_jy6.js +0 -184
- /package/dist/theme/{customizations/components → components}/avatar.d.ts +0 -0
|
@@ -1,50 +1,335 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import { M as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { j as p } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import s, { forwardRef as B } from "react";
|
|
4
|
+
import { Button as V } from "@mui/material";
|
|
5
|
+
import { E as Z } from "../SSRBase-BSdFRe_j.js";
|
|
6
|
+
import { usePopover as D } from "../hooks/use-popover.js";
|
|
7
|
+
import { L as I, M as H } from "../Menu-B8rPlcSd.js";
|
|
8
|
+
import { a as f, P as a } from "../createTheme-DDycScYN.js";
|
|
9
|
+
import { c as M } from "../identifier-CHPjnqaz.js";
|
|
10
|
+
import { u as G, s as U, c as z, b as A, m as _ } from "../memoTheme-DX35GGEJ.js";
|
|
11
|
+
import { g as W, d as E, m } from "../menuItemClasses-DLFqc90k.js";
|
|
12
|
+
import { u as q } from "../useEnhancedEffect-CJGo-L3B.js";
|
|
13
|
+
import { u as J, B as K } from "../useSlot-B682hoPx.js";
|
|
14
|
+
import { g as h } from "../generateUtilityClasses-Z7VQRhBn.js";
|
|
15
|
+
const $ = h("MuiListItemIcon", ["root", "alignItemsFlexStart"]), j = h("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]), Q = (e, t) => {
|
|
16
|
+
const {
|
|
17
|
+
ownerState: o
|
|
18
|
+
} = e;
|
|
19
|
+
return [t.root, o.dense && t.dense, o.divider && t.divider, !o.disableGutters && t.gutters];
|
|
20
|
+
}, X = (e) => {
|
|
21
|
+
const {
|
|
22
|
+
disabled: t,
|
|
23
|
+
dense: o,
|
|
24
|
+
divider: n,
|
|
25
|
+
disableGutters: l,
|
|
26
|
+
selected: u,
|
|
27
|
+
classes: r
|
|
28
|
+
} = e, i = z({
|
|
29
|
+
root: ["root", o && "dense", t && "disabled", !l && "gutters", n && "divider", u && "selected"]
|
|
30
|
+
}, W, r);
|
|
31
|
+
return {
|
|
32
|
+
...r,
|
|
33
|
+
...i
|
|
34
|
+
};
|
|
35
|
+
}, Y = U(K, {
|
|
36
|
+
shouldForwardProp: (e) => A(e) || e === "classes",
|
|
37
|
+
name: "MuiMenuItem",
|
|
38
|
+
slot: "Root",
|
|
39
|
+
overridesResolver: Q
|
|
40
|
+
})(_(({
|
|
41
|
+
theme: e
|
|
42
|
+
}) => ({
|
|
43
|
+
...e.typography.body1,
|
|
44
|
+
display: "flex",
|
|
45
|
+
justifyContent: "flex-start",
|
|
46
|
+
alignItems: "center",
|
|
47
|
+
position: "relative",
|
|
48
|
+
textDecoration: "none",
|
|
49
|
+
minHeight: 48,
|
|
50
|
+
paddingTop: 6,
|
|
51
|
+
paddingBottom: 6,
|
|
52
|
+
boxSizing: "border-box",
|
|
53
|
+
whiteSpace: "nowrap",
|
|
54
|
+
"&:hover": {
|
|
55
|
+
textDecoration: "none",
|
|
56
|
+
backgroundColor: (e.vars || e).palette.action.hover,
|
|
57
|
+
// Reset on touch devices, it doesn't add specificity
|
|
58
|
+
"@media (hover: none)": {
|
|
59
|
+
backgroundColor: "transparent"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
[`&.${m.selected}`]: {
|
|
63
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : f(e.palette.primary.main, e.palette.action.selectedOpacity),
|
|
64
|
+
[`&.${m.focusVisible}`]: {
|
|
65
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))` : f(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.focusOpacity)
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
[`&.${m.selected}:hover`]: {
|
|
69
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))` : f(e.palette.primary.main, e.palette.action.selectedOpacity + e.palette.action.hoverOpacity),
|
|
70
|
+
// Reset on touch devices, it doesn't add specificity
|
|
71
|
+
"@media (hover: none)": {
|
|
72
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})` : f(e.palette.primary.main, e.palette.action.selectedOpacity)
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
[`&.${m.focusVisible}`]: {
|
|
76
|
+
backgroundColor: (e.vars || e).palette.action.focus
|
|
77
|
+
},
|
|
78
|
+
[`&.${m.disabled}`]: {
|
|
79
|
+
opacity: (e.vars || e).palette.action.disabledOpacity
|
|
80
|
+
},
|
|
81
|
+
[`& + .${E.root}`]: {
|
|
82
|
+
marginTop: e.spacing(1),
|
|
83
|
+
marginBottom: e.spacing(1)
|
|
84
|
+
},
|
|
85
|
+
[`& + .${E.inset}`]: {
|
|
86
|
+
marginLeft: 52
|
|
87
|
+
},
|
|
88
|
+
[`& .${j.root}`]: {
|
|
89
|
+
marginTop: 0,
|
|
90
|
+
marginBottom: 0
|
|
91
|
+
},
|
|
92
|
+
[`& .${j.inset}`]: {
|
|
93
|
+
paddingLeft: 36
|
|
94
|
+
},
|
|
95
|
+
[`& .${$.root}`]: {
|
|
96
|
+
minWidth: 36
|
|
97
|
+
},
|
|
98
|
+
variants: [{
|
|
99
|
+
props: ({
|
|
100
|
+
ownerState: t
|
|
101
|
+
}) => !t.disableGutters,
|
|
102
|
+
style: {
|
|
103
|
+
paddingLeft: 16,
|
|
104
|
+
paddingRight: 16
|
|
105
|
+
}
|
|
106
|
+
}, {
|
|
107
|
+
props: ({
|
|
108
|
+
ownerState: t
|
|
109
|
+
}) => t.divider,
|
|
110
|
+
style: {
|
|
111
|
+
borderBottom: `1px solid ${(e.vars || e).palette.divider}`,
|
|
112
|
+
backgroundClip: "padding-box"
|
|
113
|
+
}
|
|
114
|
+
}, {
|
|
115
|
+
props: ({
|
|
116
|
+
ownerState: t
|
|
117
|
+
}) => !t.dense,
|
|
118
|
+
style: {
|
|
119
|
+
[e.breakpoints.up("sm")]: {
|
|
120
|
+
minHeight: "auto"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}, {
|
|
124
|
+
props: ({
|
|
125
|
+
ownerState: t
|
|
126
|
+
}) => t.dense,
|
|
127
|
+
style: {
|
|
128
|
+
minHeight: 32,
|
|
129
|
+
// https://m2.material.io/components/menus#specs > Dense
|
|
130
|
+
paddingTop: 4,
|
|
131
|
+
paddingBottom: 4,
|
|
132
|
+
...e.typography.body2,
|
|
133
|
+
[`& .${$.root} svg`]: {
|
|
134
|
+
fontSize: "1.25rem"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}]
|
|
138
|
+
}))), P = /* @__PURE__ */ d.forwardRef(function(t, o) {
|
|
139
|
+
const n = G({
|
|
140
|
+
props: t,
|
|
141
|
+
name: "MuiMenuItem"
|
|
142
|
+
}), {
|
|
143
|
+
autoFocus: l = !1,
|
|
144
|
+
component: u = "li",
|
|
145
|
+
dense: r = !1,
|
|
146
|
+
divider: c = !1,
|
|
147
|
+
disableGutters: i = !1,
|
|
148
|
+
focusVisibleClassName: b,
|
|
149
|
+
role: F = "menuitem",
|
|
150
|
+
tabIndex: y,
|
|
151
|
+
className: S,
|
|
152
|
+
...L
|
|
153
|
+
} = n, x = d.useContext(I), C = d.useMemo(() => ({
|
|
154
|
+
dense: r || x.dense || !1,
|
|
155
|
+
disableGutters: i
|
|
156
|
+
}), [x.dense, r, i]), g = d.useRef(null);
|
|
157
|
+
q(() => {
|
|
158
|
+
l && (g.current ? g.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
|
|
159
|
+
}, [l]);
|
|
160
|
+
const T = {
|
|
161
|
+
...n,
|
|
162
|
+
dense: C.dense,
|
|
163
|
+
divider: c,
|
|
164
|
+
disableGutters: i
|
|
165
|
+
}, v = X(n), N = J(g, o);
|
|
166
|
+
let O;
|
|
167
|
+
return n.disabled || (O = y !== void 0 ? y : -1), /* @__PURE__ */ p.jsx(I.Provider, {
|
|
168
|
+
value: C,
|
|
169
|
+
children: /* @__PURE__ */ p.jsx(Y, {
|
|
170
|
+
ref: N,
|
|
171
|
+
role: F,
|
|
172
|
+
tabIndex: O,
|
|
173
|
+
component: u,
|
|
174
|
+
focusVisibleClassName: M(v.focusVisible, b),
|
|
175
|
+
className: M(v.root, S),
|
|
176
|
+
...L,
|
|
177
|
+
ownerState: T,
|
|
178
|
+
classes: v
|
|
179
|
+
})
|
|
180
|
+
});
|
|
181
|
+
});
|
|
182
|
+
process.env.NODE_ENV !== "production" && (P.propTypes = {
|
|
183
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
184
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
185
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
186
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
187
|
+
/**
|
|
188
|
+
* If `true`, the list item is focused during the first mount.
|
|
189
|
+
* Focus will also be triggered if the value changes from false to true.
|
|
190
|
+
* @default false
|
|
191
|
+
*/
|
|
192
|
+
autoFocus: a.bool,
|
|
193
|
+
/**
|
|
194
|
+
* The content of the component.
|
|
195
|
+
*/
|
|
196
|
+
children: a.node,
|
|
197
|
+
/**
|
|
198
|
+
* Override or extend the styles applied to the component.
|
|
199
|
+
*/
|
|
200
|
+
classes: a.object,
|
|
201
|
+
/**
|
|
202
|
+
* @ignore
|
|
203
|
+
*/
|
|
204
|
+
className: a.string,
|
|
205
|
+
/**
|
|
206
|
+
* The component used for the root node.
|
|
207
|
+
* Either a string to use a HTML element or a component.
|
|
208
|
+
*/
|
|
209
|
+
component: a.elementType,
|
|
210
|
+
/**
|
|
211
|
+
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
212
|
+
* The prop defaults to the value inherited from the parent Menu component.
|
|
213
|
+
* @default false
|
|
214
|
+
*/
|
|
215
|
+
dense: a.bool,
|
|
216
|
+
/**
|
|
217
|
+
* @ignore
|
|
218
|
+
*/
|
|
219
|
+
disabled: a.bool,
|
|
220
|
+
/**
|
|
221
|
+
* If `true`, the left and right padding is removed.
|
|
222
|
+
* @default false
|
|
223
|
+
*/
|
|
224
|
+
disableGutters: a.bool,
|
|
225
|
+
/**
|
|
226
|
+
* If `true`, a 1px light border is added to the bottom of the menu item.
|
|
227
|
+
* @default false
|
|
228
|
+
*/
|
|
229
|
+
divider: a.bool,
|
|
230
|
+
/**
|
|
231
|
+
* This prop can help identify which element has keyboard focus.
|
|
232
|
+
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
233
|
+
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
234
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
235
|
+
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
236
|
+
* if needed.
|
|
237
|
+
*/
|
|
238
|
+
focusVisibleClassName: a.string,
|
|
239
|
+
/**
|
|
240
|
+
* @ignore
|
|
241
|
+
*/
|
|
242
|
+
role: a.string,
|
|
243
|
+
/**
|
|
244
|
+
* If `true`, the component is selected.
|
|
245
|
+
* @default false
|
|
246
|
+
*/
|
|
247
|
+
selected: a.bool,
|
|
248
|
+
/**
|
|
249
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
250
|
+
*/
|
|
251
|
+
sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object]),
|
|
252
|
+
/**
|
|
253
|
+
* @default 0
|
|
254
|
+
*/
|
|
255
|
+
tabIndex: a.number
|
|
256
|
+
});
|
|
257
|
+
const ee = /* @__PURE__ */ new Map([
|
|
258
|
+
[
|
|
259
|
+
"bold",
|
|
260
|
+
/* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("path", { d: "M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z" }))
|
|
261
|
+
],
|
|
262
|
+
[
|
|
263
|
+
"duotone",
|
|
264
|
+
/* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("path", { d: "M208,96l-80,80L48,96Z", opacity: "0.2" }), /* @__PURE__ */ s.createElement("path", { d: "M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z" }))
|
|
265
|
+
],
|
|
266
|
+
[
|
|
267
|
+
"fill",
|
|
268
|
+
/* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("path", { d: "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z" }))
|
|
269
|
+
],
|
|
270
|
+
[
|
|
271
|
+
"light",
|
|
272
|
+
/* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("path", { d: "M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z" }))
|
|
273
|
+
],
|
|
274
|
+
[
|
|
275
|
+
"regular",
|
|
276
|
+
/* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("path", { d: "M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z" }))
|
|
277
|
+
],
|
|
278
|
+
[
|
|
279
|
+
"thin",
|
|
280
|
+
/* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("path", { d: "M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z" }))
|
|
281
|
+
]
|
|
282
|
+
]);
|
|
283
|
+
var te = Object.defineProperty, ae = Object.defineProperties, oe = Object.getOwnPropertyDescriptors, w = Object.getOwnPropertySymbols, se = Object.prototype.hasOwnProperty, re = Object.prototype.propertyIsEnumerable, R = (e, t, o) => t in e ? te(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, ne = (e, t) => {
|
|
284
|
+
for (var o in t || (t = {}))
|
|
285
|
+
se.call(t, o) && R(e, o, t[o]);
|
|
286
|
+
if (w)
|
|
287
|
+
for (var o of w(t))
|
|
288
|
+
re.call(t, o) && R(e, o, t[o]);
|
|
289
|
+
return e;
|
|
290
|
+
}, le = (e, t) => ae(e, oe(t));
|
|
291
|
+
const k = B((e, t) => /* @__PURE__ */ s.createElement(Z, le(ne({ ref: t }, e), { weights: ee })));
|
|
292
|
+
k.displayName = "CaretDown";
|
|
293
|
+
function Oe({ label: e, onChange: t, options: o, value: n = [] }) {
|
|
294
|
+
const l = D(), u = d.useCallback(
|
|
295
|
+
(r, c) => {
|
|
296
|
+
let i = [...n];
|
|
297
|
+
c ? i.push(r) : i = i.filter((b) => b !== r), t == null || t(i);
|
|
13
298
|
},
|
|
14
299
|
[t, n]
|
|
15
300
|
);
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
|
|
301
|
+
return /* @__PURE__ */ p.jsxs(d.Fragment, { children: [
|
|
302
|
+
/* @__PURE__ */ p.jsx(
|
|
303
|
+
V,
|
|
19
304
|
{
|
|
20
|
-
endIcon: /* @__PURE__ */
|
|
21
|
-
onClick:
|
|
22
|
-
ref:
|
|
305
|
+
endIcon: /* @__PURE__ */ p.jsx(k, {}),
|
|
306
|
+
onClick: l.handleOpen,
|
|
307
|
+
ref: l.anchorRef,
|
|
23
308
|
sx: {
|
|
24
309
|
"& .MuiButton-endIcon svg": { fontSize: "var(--icon-fontSize-sm)" }
|
|
25
310
|
},
|
|
26
|
-
children:
|
|
311
|
+
children: e
|
|
27
312
|
}
|
|
28
313
|
),
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
|
|
314
|
+
/* @__PURE__ */ p.jsx(
|
|
315
|
+
H,
|
|
31
316
|
{
|
|
32
|
-
anchorEl:
|
|
33
|
-
onClose:
|
|
34
|
-
open:
|
|
317
|
+
anchorEl: l.anchorRef.current,
|
|
318
|
+
onClose: l.handleClose,
|
|
319
|
+
open: l.open,
|
|
35
320
|
slotProps: { paper: { sx: { width: "250px" } } },
|
|
36
|
-
children:
|
|
37
|
-
const
|
|
38
|
-
return /* @__PURE__ */
|
|
39
|
-
|
|
321
|
+
children: o.map((r) => {
|
|
322
|
+
const c = n.includes(r.value);
|
|
323
|
+
return /* @__PURE__ */ p.jsx(
|
|
324
|
+
P,
|
|
40
325
|
{
|
|
41
326
|
onClick: () => {
|
|
42
|
-
|
|
327
|
+
u(r.value, !c);
|
|
43
328
|
},
|
|
44
|
-
selected:
|
|
45
|
-
children:
|
|
329
|
+
selected: c,
|
|
330
|
+
children: r.label
|
|
46
331
|
},
|
|
47
|
-
|
|
332
|
+
r.label
|
|
48
333
|
);
|
|
49
334
|
})
|
|
50
335
|
}
|
|
@@ -52,5 +337,5 @@ function v({ label: i, onChange: t, options: a, value: n = [] }) {
|
|
|
52
337
|
] });
|
|
53
338
|
}
|
|
54
339
|
export {
|
|
55
|
-
|
|
340
|
+
Oe as default
|
|
56
341
|
};
|
|
@@ -2,6 +2,7 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { PaginationProps } from '@mui/material';
|
|
3
3
|
interface SPaginationProps extends PaginationProps {
|
|
4
4
|
loading?: boolean;
|
|
5
|
+
count?: number;
|
|
5
6
|
}
|
|
6
|
-
declare const SPagination: ({ loading, ...props }: SPaginationProps) => React.JSX.Element;
|
|
7
|
+
declare const SPagination: ({ loading, count, ...props }: SPaginationProps) => React.JSX.Element;
|
|
7
8
|
export default SPagination;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { Box as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
/* @__PURE__ */
|
|
6
|
-
/* @__PURE__ */
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
] }),
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
] }),
|
|
13
|
-
t ? /* @__PURE__ */ n.jsx(a, { style: e.style }) : null
|
|
14
|
-
] });
|
|
1
|
+
import { j as t } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { useTheme as a, useMediaQuery as m, Box as u, Pagination as c, Stack as x } from "@mui/material";
|
|
3
|
+
import n from "../s-skeleton/s-skeleton.js";
|
|
4
|
+
const d = ({ style: e }) => /* @__PURE__ */ t.jsxs(x, { direction: "row", flexWrap: "wrap", gap: 1, justifyContent: "center", style: e, children: [
|
|
5
|
+
/* @__PURE__ */ t.jsx(n, { component: "icon-button" }),
|
|
6
|
+
/* @__PURE__ */ t.jsx(n, { variant: "rounded", width: 120 }),
|
|
7
|
+
/* @__PURE__ */ t.jsx(n, { component: "icon-button" })
|
|
8
|
+
] }), f = ({ loading: e, count: i = 0, ...o }) => {
|
|
9
|
+
const r = a(), s = m(r.breakpoints.down("sm"));
|
|
10
|
+
return i === 0 ? /* @__PURE__ */ t.jsx(t.Fragment, {}) : e ? /* @__PURE__ */ t.jsx(d, { style: o.style }) : /* @__PURE__ */ t.jsx(u, { width: "100%", children: /* @__PURE__ */ t.jsx(c, { size: s ? "small" : "medium", ...o }) });
|
|
11
|
+
};
|
|
15
12
|
export {
|
|
16
|
-
|
|
13
|
+
f as default
|
|
17
14
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { j as n } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import { forwardRef as E, useState as R, useEffect as g } from "react";
|
|
3
|
-
import { Select as w } from "@mui/material";
|
|
4
|
-
import
|
|
5
|
-
import M from "../s-menu-item/s-menu-item.js";
|
|
3
|
+
import { Select as w, MenuItem as I } from "@mui/material";
|
|
4
|
+
import M from "../s-form/s-form.js";
|
|
6
5
|
const z = E(
|
|
7
6
|
({
|
|
8
7
|
options: e = [],
|
|
@@ -11,23 +10,23 @@ const z = E(
|
|
|
11
10
|
placeholder: s,
|
|
12
11
|
label: x = "",
|
|
13
12
|
error: j,
|
|
14
|
-
required:
|
|
13
|
+
required: h = !1,
|
|
15
14
|
variant: W = "outlined",
|
|
16
15
|
simple: a = !1,
|
|
17
16
|
htmlFor: c,
|
|
18
17
|
...u
|
|
19
|
-
},
|
|
20
|
-
const [
|
|
18
|
+
}, y) => {
|
|
19
|
+
const [S, m] = R(u.value ?? null);
|
|
21
20
|
return g(() => {
|
|
22
|
-
|
|
23
|
-
}, [u.value]), /* @__PURE__ */ n.jsx(
|
|
21
|
+
m(u.value ?? null);
|
|
22
|
+
}, [u.value]), /* @__PURE__ */ n.jsx(M, { error: j, label: x, required: h, htmlFor: c, children: /* @__PURE__ */ n.jsx(
|
|
24
23
|
w,
|
|
25
24
|
{
|
|
26
25
|
id: c,
|
|
27
26
|
displayEmpty: !0,
|
|
28
27
|
fullWidth: !0,
|
|
29
28
|
defaultValue: "",
|
|
30
|
-
ref:
|
|
29
|
+
ref: y,
|
|
31
30
|
renderValue: u.multiple ? (r) => {
|
|
32
31
|
var d;
|
|
33
32
|
return (d = e.filter((l) => r == null ? void 0 : r.includes(l[f]))) == null ? void 0 : d.map((l) => l[t]).join(", ");
|
|
@@ -36,9 +35,9 @@ const z = E(
|
|
|
36
35
|
return r !== null && typeof r < "u" && r !== "" ? a ? e.find((l) => l == r) : (d = e.find((l) => l[f] == r)) == null ? void 0 : d[t] : /* @__PURE__ */ n.jsx("span", { style: { color: "var(--mui-palette-text-secondary)" }, children: s });
|
|
37
36
|
},
|
|
38
37
|
...u,
|
|
39
|
-
value: e.length ?
|
|
38
|
+
value: e.length ? S ?? "" : "",
|
|
40
39
|
children: e == null ? void 0 : e.map((r, d) => /* @__PURE__ */ n.jsx(
|
|
41
|
-
|
|
40
|
+
I,
|
|
42
41
|
{
|
|
43
42
|
disabled: (r == null ? void 0 : r.disabled) ?? !1,
|
|
44
43
|
value: a ? r : r[f],
|