@solostylist/ui-kit 2.0.0 → 2.0.1
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/{gradients-90SYkAC0.js → gradients-DSnBONEQ.js} +1 -1
- package/dist/main.js +1 -1
- package/dist/palettes/index.js +1 -1
- package/dist/{palettes-Dw3PEYF5.js → palettes-CJLuEy1m.js} +163 -163
- package/dist/s-accordion/index.js +1 -1
- package/dist/s-accordion/s-accordion.js +70 -2
- package/dist/s-action-overlay/s-action-overlay.js +21 -21
- package/dist/s-autocomplete/s-autocomplete.js +1 -1
- package/dist/s-avatar/s-avatar.js +17 -17
- package/dist/s-blur-text/s-blur-text.js +16 -16
- package/dist/s-brand-logo/index.js +1 -1
- package/dist/s-brand-logo/s-brand-logo.js +1 -1
- package/dist/s-breadcrumbs/s-breadcrumbs.js +19 -19
- package/dist/s-carousel/index.js +1 -1
- package/dist/s-carousel/s-carousel.js +184 -2
- package/dist/s-category-card/s-category-card.js +22 -22
- package/dist/s-chat-input/index.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +398 -2
- package/dist/s-chat-message/index.js +1 -1
- package/dist/s-chat-message/s-chat-message.js +314 -2
- package/dist/s-checkbox/s-checkbox.js +18 -19
- package/dist/s-chips/index.js +1 -1
- package/dist/s-chips/s-chips.js +174 -2
- package/dist/s-code-block/index.js +1 -1
- package/dist/s-code-block/s-code-block.js +103 -2
- package/dist/s-comment-message/index.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +189 -2
- package/dist/s-copyable-text/s-copyable-text.js +18 -18
- package/dist/s-countdown/s-count-box.js +18 -18
- package/dist/s-data-table/index.js +1 -1
- package/dist/s-data-table/s-data-table.js +213 -2
- package/dist/s-date-picker/index.js +1 -1
- package/dist/s-date-picker/s-date-picker.js +106 -2
- package/dist/s-datetime-picker/index.js +1 -1
- package/dist/s-datetime-picker/s-datetime-picker.js +108 -2
- package/dist/s-dialog/index.js +1 -1
- package/dist/s-dialog/s-dialog.js +80 -2
- package/dist/s-dialog-confirm/s-dialog-confirm.js +32 -33
- package/dist/s-dialog-message/s-dialog-message.js +31 -32
- package/dist/s-empty/s-empty.js +13 -14
- package/dist/s-file-dropzone/index.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +219 -2
- package/dist/s-file-icon/s-file-icon.js +87 -88
- package/dist/s-flex-box/s-flex-box.js +11 -12
- package/dist/s-form/s-form.js +15 -15
- package/dist/s-gallery/s-gallery.js +1 -1
- package/dist/s-glow-button/s-glow-button.js +9 -10
- package/dist/s-icon-button/s-icon-button.js +15 -16
- package/dist/s-image-comparison/s-image-comparison.js +29 -31
- package/dist/s-image-viewer/image-viewer-thumbnail-dock.js +1 -1
- package/dist/s-image-viewer/index.js +3 -3
- package/dist/s-image-viewer/s-image-viewer.js +266 -2
- package/dist/s-image-viewer/use-image-viewer-navigation.js +7 -7
- package/dist/s-label/s-label.js +26 -27
- package/dist/s-language-switcher/index.js +2 -2
- package/dist/s-language-switcher/s-language-switcher.js +150 -2
- package/dist/s-lazy-image/s-lazy-image.js +17 -18
- package/dist/s-link/index.js +1 -1
- package/dist/s-link/s-link.js +5 -2
- package/dist/s-localization-provider/index.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.js +12 -2
- package/dist/s-nav-item/s-nav-item.js +16 -16
- package/dist/s-nav-items/index.js +2 -2
- package/dist/s-nav-items/s-nav-items.js +167 -2
- package/dist/s-no-ssr/index.js +1 -1
- package/dist/s-no-ssr/s-no-ssr.js +5 -2
- package/dist/s-pagination/index.js +1 -1
- package/dist/s-pagination/s-pagination.js +85 -2
- package/dist/s-pixel-reveal/s-pixel-reveal.js +20 -20
- package/dist/s-quantity-input/index.js +1 -1
- package/dist/s-quantity-input/s-quantity-input.js +246 -2
- package/dist/s-review/index.js +1 -1
- package/dist/s-review/s-review.js +272 -2
- package/dist/s-scroll-reveal/s-scroll-reveal.js +7 -8
- package/dist/s-scroll-to-top/s-scroll-to-top.js +27 -28
- package/dist/s-scroll-velocity/scroll-velocity-row.js +29 -29
- package/dist/s-select/index.js +1 -1
- package/dist/s-select/s-select.js +201 -2
- package/dist/s-select-list/s-select-list.js +47 -50
- package/dist/s-skeleton/s-skeleton.js +16 -17
- package/dist/s-snackbar-message/index.js +2 -2
- package/dist/s-snackbar-message/s-snackbar-message.js +89 -2
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +27 -27
- package/dist/s-status-illustration/s-status-illustration.js +74 -74
- package/dist/s-stripe/s-stripe.js +11 -12
- package/dist/s-stripe/stripe-input.js +3 -2
- package/dist/s-switch/index.js +1 -1
- package/dist/s-switch/s-switch.js +48 -2
- package/dist/s-tabs/s-tabs.js +48 -50
- package/dist/s-text-editor/index.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +216 -2
- package/dist/s-text-editor/s-text-editor.js +25 -26
- package/dist/s-text-field/index.js +1 -1
- package/dist/s-text-field/s-text-field.js +52 -2
- package/dist/s-text-shimmer/s-text-shimmer.js +1 -3
- package/dist/s-text-truncation/s-text-truncation.js +20 -20
- package/dist/s-theme-demo/s-theme-demo.js +8 -8
- package/dist/s-theme-demo/theme-demo-color-palette-section.js +1 -1
- package/dist/s-theme-demo/theme-demo-color-ramps-section.js +1 -1
- package/dist/s-theme-demo/theme-demo-components-section.js +265 -2
- package/dist/s-theme-demo/theme-demo-typography-section.js +10 -10
- package/dist/s-theme-provider/s-theme-provider.js +1 -1
- package/dist/s-theme-switch/index.js +1 -1
- package/dist/s-theme-switch/s-theme-switch.js +60 -2
- package/dist/s-tip/index.js +1 -1
- package/dist/s-tip/s-tip.js +61 -2
- package/dist/s-tool-bar/s-tool-bar.js +28 -28
- package/dist/s-tool-bar/tool-bar-action-buttons.js +55 -2
- package/dist/s-tool-bar/tool-bar-image-input.js +148 -2
- package/dist/s-tool-bar/tool-bar-inputs.js +55 -55
- package/dist/s-tool-item/s-tool-item.js +22 -22
- package/dist/s-two-pane-layout/s-two-pane-layout.js +32 -32
- package/dist/s-zoom-image/s-zoom-image.js +18 -19
- package/dist/theme/components/autocomplete.js +43 -2
- package/dist/theme/components/avatar.js +9 -2
- package/dist/theme/components/card.js +3 -3
- package/dist/theme/components/checkbox.js +90 -2
- package/dist/theme/components/chip.js +3 -3
- package/dist/theme/components/components.js +20 -20
- package/dist/theme/components/date-calendar.js +1 -0
- package/dist/theme/components/day-calendar.js +1 -0
- package/dist/theme/components/field-label-styles.js +19 -2
- package/dist/theme/components/form-label.js +1 -1
- package/dist/theme/components/list-item-button.js +1 -1
- package/dist/theme/components/list-item.js +7 -7
- package/dist/theme/components/month-calendar.js +14 -13
- package/dist/theme/components/multi-section-digital-clock-section.js +1 -0
- package/dist/theme/components/outlined-input.js +6 -6
- package/dist/theme/components/picker-day.js +1 -0
- package/dist/theme/components/pickers-arrow-switcher.js +1 -0
- package/dist/theme/components/pickers-calendar-header.js +3 -2
- package/dist/theme/components/select.js +6 -6
- package/dist/theme/components/switch.js +1 -1
- package/dist/theme/components/table-pagination.js +1 -1
- package/dist/theme/components/toggle-button.js +93 -2
- package/dist/theme/components/year-calendar.js +14 -13
- package/dist/theme/theme-primitives.js +2 -2
- package/dist/{theme-primitives-Dt_DT9b5.js → theme-primitives-CRfnMsNy.js} +108 -109
- package/dist/utils/dayjs.js +9 -146
- package/package.json +1 -1
- package/dist/Add-COc9VdNg.js +0 -6
- package/dist/ArrowUpward-D88i2k4q.js +0 -6
- package/dist/Box-9oeZgA1U.js +0 -46
- package/dist/Button-DgIFcM44.js +0 -534
- package/dist/ButtonBase-DxKtpFYs.js +0 -747
- package/dist/Checkbox-BoZu9z2l.js +0 -152
- package/dist/ChevronRight-BxsM4W78.js +0 -6
- package/dist/Close-o4HFfK0I.js +0 -6
- package/dist/Collapse-zgIFP5Sj.js +0 -266
- package/dist/ContentCopy-5unyTYXy.js +0 -6
- package/dist/DefaultPropsProvider-ebWx4_5E.js +0 -128
- package/dist/DialogContent-CAry6lVf.js +0 -450
- package/dist/Download-DtvoRwpl.js +0 -6
- package/dist/ExpandMore-Ba5bg6s-.js +0 -6
- package/dist/Favorite-B_GsElm0.js +0 -6
- package/dist/FormControl-BxmM9UP6.js +0 -221
- package/dist/FormControlLabel-DzgppcC_.js +0 -173
- package/dist/Grow-zRRuwUl-.js +0 -121
- package/dist/InfoOutlined-VC7X46pc.js +0 -6
- package/dist/List-CnGIAXAS.js +0 -103
- package/dist/ListContext-B1HQt3OD.js +0 -6
- package/dist/Menu-C4Zabc9U.js +0 -504
- package/dist/MenuItem-rXJfQzDC.js +0 -223
- package/dist/MenuList-DDV8J-yd.js +0 -407
- package/dist/Modal-jAiibALV.js +0 -707
- package/dist/Paper-ixxCeml9.js +0 -115
- package/dist/Popper-CVYyMS3c.js +0 -1350
- package/dist/Portal-AnyvFRC4.js +0 -53
- package/dist/RtlProvider-B7uVJXUY.js +0 -19
- package/dist/Skeleton-iZFynl7z.js +0 -220
- package/dist/Stack-UMc4dV4G.js +0 -158
- package/dist/SwitchBase-D7zqrstO.js +0 -198
- package/dist/Tooltip-DbCd6rgF.js +0 -447
- package/dist/Typography-yXjc7kVP.js +0 -168
- package/dist/UnfoldMoreRounded-DsN0HVDV.js +0 -6
- package/dist/appendOwnerState-CELpvdMz.js +0 -17
- package/dist/assets/stripe-input.css +0 -1
- package/dist/autocomplete-B_4y84Ba.js +0 -43
- package/dist/avatar-BHuZu3DN.js +0 -10
- package/dist/buttonBaseClasses-BvBqFLb_.js +0 -13
- package/dist/capitalize-CccCFNpQ.js +0 -5
- package/dist/checkbox-BKMZEVU5.js +0 -88
- package/dist/checkboxClasses-CEsqS4sc.js +0 -18
- package/dist/chunk-C_CI6nMA.js +0 -13
- package/dist/clsx-DGZSe4Nt.js +0 -16
- package/dist/colorManipulator-DmUjcif3.js +0 -129
- package/dist/contains-WOhYaq1E.js +0 -16
- package/dist/createSimplePaletteValueFilter-C1gWywW_.js +0 -14
- package/dist/createSvgIcon-B0SZlJF1.js +0 -155
- package/dist/createTheme-xB2Em0Na.js +0 -1869
- package/dist/defaultTheme-BaGcIzCh.js +0 -210
- package/dist/elementAcceptingRef-DhkNAkFH.js +0 -472
- package/dist/exactProp-C_IsucXf.js +0 -13
- package/dist/field-label-styles-BOyhp6gw.js +0 -50
- package/dist/formLabelClasses-B0Fa-86T.js +0 -18
- package/dist/generateUtilityClass-PAIOm1jC.js +0 -34
- package/dist/generateUtilityClasses-DvX505Gy.js +0 -10
- package/dist/iconButtonClasses-CkciZuIe.js +0 -27
- package/dist/inputAdornmentClasses-D5yYK5bM.js +0 -19
- package/dist/inputBaseClasses-DuWQGq8Z.js +0 -25
- package/dist/integerPropType-Disnft4a.js +0 -27
- package/dist/isEventHandler-8dPdzK9U.js +0 -7
- package/dist/isFocusVisible-Y7157FQS.js +0 -35
- package/dist/isLayoutSupported-Ceir7nyK.js +0 -21
- package/dist/listItemButtonClasses-DbL-aTVf.js +0 -18
- package/dist/memoTheme-qFyKAk7y.js +0 -15
- package/dist/mergeSlotProps-xl1-PgWL.js +0 -45
- package/dist/monthCalendarClasses-BYVHyEfI.js +0 -14
- package/dist/objectWithoutPropertiesLoose-Cpds-4w8.js +0 -23
- package/dist/outlinedInputClasses-DECY98u0.js +0 -17
- package/dist/pickersCalendarHeaderClasses-CIj0gBye.js +0 -12
- package/dist/prop-types-BzYPyWN7.js +0 -516
- package/dist/resolveProps-7jIA45vn.js +0 -30
- package/dist/s-accordion-B8nlrdFc.js +0 -487
- package/dist/s-carousel-Dnjke4JQ.js +0 -1353
- package/dist/s-chat-input-DCS0mJE4.js +0 -419
- package/dist/s-chat-message-9oollJJq.js +0 -315
- package/dist/s-chips-WqGdqHW9.js +0 -176
- package/dist/s-code-block-DzGoGg5e.js +0 -658
- package/dist/s-comment-message-C6kfgRjv.js +0 -191
- package/dist/s-data-table-B1TGVupB.js +0 -805
- package/dist/s-date-picker-BpX4HmBp.js +0 -656
- package/dist/s-datetime-picker-ByzW44E0.js +0 -3878
- package/dist/s-dialog-BLiyjLkx.js +0 -123
- package/dist/s-file-dropzone-CVQpYRdY.js +0 -422
- package/dist/s-image-viewer-DNIEYdtL.js +0 -269
- package/dist/s-language-switcher-D-1nywT3.js +0 -251
- package/dist/s-link-CAMTGfd9.js +0 -234
- package/dist/s-localization-provider-Xw3NO2uP.js +0 -519
- package/dist/s-nav-items-BUp7DddG.js +0 -327
- package/dist/s-no-ssr-D8tPdDfh.js +0 -25
- package/dist/s-pagination-Dt8Pk5Tp.js +0 -606
- package/dist/s-quantity-input-mYCixlJc.js +0 -246
- package/dist/s-review-DSXXtWlL.js +0 -272
- package/dist/s-select-dwY2DYa9.js +0 -204
- package/dist/s-snackbar-message-3Z6VySlB.js +0 -808
- package/dist/s-switch-B8bZAzLh.js +0 -307
- package/dist/s-text-editor-toolbar-D-XgFQix.js +0 -2121
- package/dist/s-text-field-BM4qk0mf.js +0 -51
- package/dist/s-theme-switch-BLMz1_m2.js +0 -60
- package/dist/s-tip-ty41ePQm.js +0 -62
- package/dist/selectClasses-DoUlWfzV.js +0 -22
- package/dist/styled-Bog8QCl3.js +0 -163
- package/dist/svgIconClasses-C8D4AsMj.js +0 -20
- package/dist/switchClasses-eiq1bkQN.js +0 -23
- package/dist/theme-demo-components-section-gtIYRngY.js +0 -267
- package/dist/toggle-button-Cxi5CfXC.js +0 -104
- package/dist/tool-bar-action-buttons-Dt-pV3GA.js +0 -54
- package/dist/tool-bar-image-input-BXlll_hV.js +0 -148
- package/dist/typographyClasses-BLM3NmYd.js +0 -31
- package/dist/useControlled-BeB0W_Ui.js +0 -5
- package/dist/useControlled-C4QJnpiR.js +0 -29
- package/dist/useEnhancedEffect-Bc3gBClC.js +0 -5
- package/dist/useEnhancedEffect-DFq_FMGX.js +0 -5
- package/dist/useEventCallback-CVqMfiG_.js +0 -14
- package/dist/useForkRef-CKneCEtr.js +0 -29
- package/dist/useFormControl-iWLrn7Ek.js +0 -18
- package/dist/useMobilePicker-C4UQFvkj.js +0 -7580
- package/dist/useSlot-iIu8ek6E.js +0 -83
- package/dist/useTheme-BIWMbX3i.js +0 -9
- package/dist/useThemeProps-BI9yq95N.js +0 -19
- package/dist/useThemeProps-Cr28OQu3.js +0 -13
- package/dist/utils-oJyTAkZY.js +0 -214
- package/dist/warning-CNkSZkq6.js +0 -98
- package/dist/yearCalendarClasses-CuAQumpz.js +0 -14
- /package/dist/{colors-DKqWMRgW.js → colors-CNjL5fhq.js} +0 -0
- /package/dist/{s-brand-logo-jtAJZQIv.js → s-brand-logo-CErW9Slg.js} +0 -0
- /package/dist/{utils-DaSrTYUS.js → utils-CMeAWSRO.js} +0 -0
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "../
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import { Box as c } from "@mui/material";
|
|
1
|
+
import { toSxArray as e } from "../utils/sx.js";
|
|
2
|
+
import { SLazyImage as t } from "../s-lazy-image/s-lazy-image.js";
|
|
3
|
+
import { styled as n, useThemeProps as r } from "@mui/material/styles";
|
|
4
|
+
import i, { useState as a } from "react";
|
|
5
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
6
|
+
import { Box as s } from "@mui/material";
|
|
7
|
+
import { mergeSlotProps as c } from "@mui/material/utils";
|
|
9
8
|
import { motion as l, useMotionValue as u, useReducedMotion as d, useSpring as f, useTransform as p } from "framer-motion";
|
|
10
9
|
//#region lib/s-zoom-image/s-zoom-image.tsx
|
|
11
|
-
var m =
|
|
10
|
+
var m = n(s, {
|
|
12
11
|
name: "SZoomImage",
|
|
13
12
|
slot: "Root"
|
|
14
|
-
})({}), h =
|
|
15
|
-
let h =
|
|
16
|
-
props:
|
|
13
|
+
})({}), h = i.forwardRef((n, i) => {
|
|
14
|
+
let h = r({
|
|
15
|
+
props: n,
|
|
17
16
|
name: "SZoomImage"
|
|
18
|
-
}), { src: g, alt: _, zoomScale: v = 1.2, transitionDuration: y = .3, borderRadius: b = 1, skeletonVariant: x = "rounded", height: S = "100%", width: C = "100%", slots: w, slotProps: T, onMouseLeave: E, onMouseMove: D, sx: O, ...k } = h, [A, j] =
|
|
17
|
+
}), { src: g, alt: _, zoomScale: v = 1.2, transitionDuration: y = .3, borderRadius: b = 1, skeletonVariant: x = "rounded", height: S = "100%", width: C = "100%", slots: w, slotProps: T, onMouseLeave: E, onMouseMove: D, sx: O, ...k } = h, [A, j] = a(null), M = A === g, N = d(), P = u(50), F = u(50), I = {
|
|
19
18
|
damping: 20,
|
|
20
19
|
stiffness: 150,
|
|
21
20
|
mass: .5
|
|
@@ -33,7 +32,7 @@ var m = e(c, {
|
|
|
33
32
|
transitionDuration: y,
|
|
34
33
|
width: C,
|
|
35
34
|
zoomScale: v
|
|
36
|
-
}, V =
|
|
35
|
+
}, V = c(T?.image, {
|
|
37
36
|
onLoad: () => j(g),
|
|
38
37
|
sx: {
|
|
39
38
|
borderRadius: "inherit",
|
|
@@ -41,8 +40,8 @@ var m = e(c, {
|
|
|
41
40
|
objectFit: "cover"
|
|
42
41
|
}
|
|
43
42
|
});
|
|
44
|
-
return /* @__PURE__ */
|
|
45
|
-
ref:
|
|
43
|
+
return /* @__PURE__ */ o(m, {
|
|
44
|
+
ref: i,
|
|
46
45
|
ownerState: B,
|
|
47
46
|
onMouseMove: R,
|
|
48
47
|
onMouseLeave: z,
|
|
@@ -52,9 +51,9 @@ var m = e(c, {
|
|
|
52
51
|
height: "auto",
|
|
53
52
|
overflow: "hidden",
|
|
54
53
|
borderRadius: b
|
|
55
|
-
}, ...
|
|
54
|
+
}, ...e(O)],
|
|
56
55
|
...k,
|
|
57
|
-
children: /* @__PURE__ */ s
|
|
56
|
+
children: /* @__PURE__ */ o(s, {
|
|
58
57
|
component: l.div,
|
|
59
58
|
style: { transformOrigin: N ? "50% 50%" : L },
|
|
60
59
|
animate: { scale: 1 },
|
|
@@ -64,7 +63,7 @@ var m = e(c, {
|
|
|
64
63
|
duration: y,
|
|
65
64
|
bounce: 0
|
|
66
65
|
},
|
|
67
|
-
children: /* @__PURE__ */
|
|
66
|
+
children: /* @__PURE__ */ o(t, {
|
|
68
67
|
src: g,
|
|
69
68
|
alt: _,
|
|
70
69
|
variant: x,
|
|
@@ -1,2 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import e from "@mui/icons-material/UnfoldMoreRounded";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { autocompleteClasses as n } from "@mui/material/Autocomplete";
|
|
4
|
+
//#region lib/theme/components/autocomplete.tsx
|
|
5
|
+
var r = {
|
|
6
|
+
defaultProps: {
|
|
7
|
+
popupIcon: /* @__PURE__ */ t(e, { fontSize: "small" }),
|
|
8
|
+
slotProps: { clearIndicator: {
|
|
9
|
+
edge: "end",
|
|
10
|
+
size: "small"
|
|
11
|
+
} }
|
|
12
|
+
},
|
|
13
|
+
styleOverrides: {
|
|
14
|
+
paper: ({ theme: e }) => ({
|
|
15
|
+
marginTop: 2,
|
|
16
|
+
border: "1px solid",
|
|
17
|
+
borderColor: (e.vars ?? e).palette.divider
|
|
18
|
+
}),
|
|
19
|
+
popupIndicator: {
|
|
20
|
+
pointerEvents: "none",
|
|
21
|
+
background: "none",
|
|
22
|
+
"&:hover": { background: "none" }
|
|
23
|
+
},
|
|
24
|
+
popupIndicatorOpen: { transform: "none" },
|
|
25
|
+
endAdornment: ({ theme: e }) => ({
|
|
26
|
+
display: "flex",
|
|
27
|
+
alignItems: "center",
|
|
28
|
+
right: e.spacing(1),
|
|
29
|
+
color: "inherit",
|
|
30
|
+
".MuiAutocomplete-inputRoot:has(input:placeholder-shown) &": { color: (e.vars ?? e).palette.text.secondary },
|
|
31
|
+
".Mui-disabled &": { color: (e.vars ?? e).palette.text.disabled }
|
|
32
|
+
}),
|
|
33
|
+
inputRoot: ({ theme: e }) => ({
|
|
34
|
+
"&.MuiOutlinedInput-root": { padding: `${e.spacing(1)} ${e.spacing(1.5)} !important` },
|
|
35
|
+
[`& .${n.endAdornment}`]: { right: `${e.spacing(1)} !important` },
|
|
36
|
+
[`&.${n.hasPopupIcon}, &.${n.hasClearIcon}`]: { paddingRight: `${e.spacing(4.5)} !important` },
|
|
37
|
+
[`&.${n.hasPopupIcon}.${n.hasClearIcon}`]: { paddingRight: `${e.spacing(8)} !important` },
|
|
38
|
+
"& .MuiAutocomplete-input": { padding: 0 }
|
|
39
|
+
})
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
export { r as MuiAutocomplete };
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Person as t } from "@mui/icons-material";
|
|
3
|
+
//#region lib/theme/components/avatar.tsx
|
|
4
|
+
var n = {
|
|
5
|
+
defaultProps: { children: /* @__PURE__ */ e(t, { sx: { color: "text.primary" } }) },
|
|
6
|
+
styleOverrides: { rounded: ({ theme: e }) => ({ borderRadius: e.radius.lg }) }
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { n as MuiAvatar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { r as e } from "../../colors-CNjL5fhq.js";
|
|
2
|
+
import { alpha as t } from "@mui/material/styles";
|
|
3
3
|
//#region lib/theme/components/card.tsx
|
|
4
4
|
var n = { styleOverrides: { root: ({ theme: n }) => ({
|
|
5
5
|
gap: 16,
|
|
@@ -16,7 +16,7 @@ var n = { styleOverrides: { root: ({ theme: n }) => ({
|
|
|
16
16
|
border: `1px solid ${(n.vars ?? n).palette.divider}`,
|
|
17
17
|
boxShadow: "none",
|
|
18
18
|
background: "rgb(255, 255, 255)",
|
|
19
|
-
...n.applyStyles("dark", { background: e
|
|
19
|
+
...n.applyStyles("dark", { background: t(e[900], .4) })
|
|
20
20
|
}
|
|
21
21
|
}]
|
|
22
22
|
}) } };
|
|
@@ -1,2 +1,90 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { r as e } from "../../colors-CNjL5fhq.js";
|
|
2
|
+
import { alpha as t } from "@mui/material/styles";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import r from "@mui/icons-material/CheckBoxOutlineBlankRounded";
|
|
5
|
+
import i from "@mui/icons-material/CheckRounded";
|
|
6
|
+
import a from "@mui/icons-material/RemoveRounded";
|
|
7
|
+
import { checkboxClasses as o } from "@mui/material/Checkbox";
|
|
8
|
+
//#region lib/theme/components/checkbox.tsx
|
|
9
|
+
var s = {
|
|
10
|
+
defaultProps: {
|
|
11
|
+
disableRipple: !0,
|
|
12
|
+
icon: /* @__PURE__ */ n(r, { sx: { color: "hsla(210, 0%, 0%, 0.0)" } }),
|
|
13
|
+
checkedIcon: /* @__PURE__ */ n(i, { sx: {
|
|
14
|
+
height: 14,
|
|
15
|
+
width: 14
|
|
16
|
+
} }),
|
|
17
|
+
indeterminateIcon: /* @__PURE__ */ n(a, { sx: {
|
|
18
|
+
height: 14,
|
|
19
|
+
width: 14
|
|
20
|
+
} })
|
|
21
|
+
},
|
|
22
|
+
styleOverrides: { root: ({ theme: n }) => ({
|
|
23
|
+
margin: 8,
|
|
24
|
+
marginLeft: 0,
|
|
25
|
+
height: 16,
|
|
26
|
+
width: 16,
|
|
27
|
+
borderRadius: n.radius.sm,
|
|
28
|
+
border: "1px solid",
|
|
29
|
+
borderColor: t(e[300], .8),
|
|
30
|
+
boxShadow: "0 0 0 1.5px hsla(210, 0%, 0%, 0.04) inset",
|
|
31
|
+
backgroundColor: t(e[100], .4),
|
|
32
|
+
transition: "border-color, background-color, 120ms ease-in",
|
|
33
|
+
"&:hover": { borderColor: (n.vars ?? n).palette.primary[300] },
|
|
34
|
+
"&.Mui-focusVisible": {
|
|
35
|
+
outline: `3px solid rgba(${(n.vars ?? n).palette.primary.mainChannel} / 0.5)`,
|
|
36
|
+
outlineOffset: "2px",
|
|
37
|
+
borderColor: (n.vars ?? n).palette.primary[400]
|
|
38
|
+
},
|
|
39
|
+
[`&.Mui-checked, &.${o.indeterminate}`]: {
|
|
40
|
+
color: "white",
|
|
41
|
+
backgroundColor: (n.vars ?? n).palette.primary[500],
|
|
42
|
+
borderColor: (n.vars ?? n).palette.primary[500],
|
|
43
|
+
boxShadow: "none",
|
|
44
|
+
"&:hover": { backgroundColor: (n.vars ?? n).palette.primary[600] }
|
|
45
|
+
},
|
|
46
|
+
[`&.${o.disabled}`]: {
|
|
47
|
+
color: (n.vars ?? n).palette.grey[100],
|
|
48
|
+
borderColor: (n.vars ?? n).palette.grey[300],
|
|
49
|
+
backgroundColor: (n.vars ?? n).palette.grey[100],
|
|
50
|
+
boxShadow: "none",
|
|
51
|
+
cursor: "not-allowed",
|
|
52
|
+
"&:hover": {
|
|
53
|
+
borderColor: (n.vars ?? n).palette.grey[300],
|
|
54
|
+
backgroundColor: (n.vars ?? n).palette.grey[100]
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
[`&.${o.checked}.${o.disabled}, &.${o.indeterminate}.${o.disabled}`]: {
|
|
58
|
+
color: (n.vars ?? n).palette.grey[100],
|
|
59
|
+
borderColor: (n.vars ?? n).palette.grey[300],
|
|
60
|
+
backgroundColor: (n.vars ?? n).palette.grey[300]
|
|
61
|
+
},
|
|
62
|
+
...n.applyStyles("dark", {
|
|
63
|
+
borderColor: t(e[700], .8),
|
|
64
|
+
boxShadow: "0 0 0 1.5px hsl(210, 0%, 0%) inset",
|
|
65
|
+
backgroundColor: t(e[900], .8),
|
|
66
|
+
"&:hover": { borderColor: (n.vars ?? n).palette.primary[300] },
|
|
67
|
+
"&.Mui-focusVisible": {
|
|
68
|
+
borderColor: (n.vars ?? n).palette.primary[400],
|
|
69
|
+
outline: `3px solid rgba(${(n.vars ?? n).palette.primary.mainChannel} / 0.5)`,
|
|
70
|
+
outlineOffset: "2px"
|
|
71
|
+
},
|
|
72
|
+
[`&.${o.disabled}`]: {
|
|
73
|
+
color: (n.vars ?? n).palette.grey[700],
|
|
74
|
+
borderColor: (n.vars ?? n).palette.grey[600],
|
|
75
|
+
backgroundColor: (n.vars ?? n).palette.grey[700],
|
|
76
|
+
"&:hover": {
|
|
77
|
+
borderColor: (n.vars ?? n).palette.grey[600],
|
|
78
|
+
backgroundColor: (n.vars ?? n).palette.grey[700]
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
[`&.${o.checked}.${o.disabled}, &.${o.indeterminate}.${o.disabled}`]: {
|
|
82
|
+
color: (n.vars ?? n).palette.grey[700],
|
|
83
|
+
borderColor: (n.vars ?? n).palette.grey[600],
|
|
84
|
+
backgroundColor: (n.vars ?? n).palette.grey[600]
|
|
85
|
+
}
|
|
86
|
+
})
|
|
87
|
+
}) }
|
|
88
|
+
};
|
|
89
|
+
//#endregion
|
|
90
|
+
export { s as MuiCheckbox };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { actionHoverMedia as e, getFocusVisibleStyle as t, getSemanticActionTokens as n, isSemanticActionColor as r } from "./action-styles.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import { Close as a } from "@mui/icons-material";
|
|
4
4
|
import { chipClasses as o } from "@mui/material";
|
|
5
5
|
//#region lib/theme/components/chip.tsx
|
|
6
6
|
var s = (e, t) => {
|
|
@@ -80,7 +80,7 @@ var s = (e, t) => {
|
|
|
80
80
|
defaultProps: {
|
|
81
81
|
variant: "filled",
|
|
82
82
|
size: "small",
|
|
83
|
-
deleteIcon: /* @__PURE__ */ a
|
|
83
|
+
deleteIcon: /* @__PURE__ */ i(a, {})
|
|
84
84
|
},
|
|
85
85
|
styleOverrides: { root: ({ theme: e }) => ({
|
|
86
86
|
border: "1px solid",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MuiYearCalendar as e } from "./year-calendar.js";
|
|
2
2
|
import { MuiTooltip as t } from "./tooltip.js";
|
|
3
|
-
import {
|
|
3
|
+
import { MuiToggleButton as n } from "./toggle-button.js";
|
|
4
4
|
import { MuiToggleButtonGroup as r } from "./toggle-button-group.js";
|
|
5
5
|
import { MuiTabs as i } from "./tabs.js";
|
|
6
6
|
import { MuiTablePagination as a } from "./table-pagination.js";
|
|
@@ -55,16 +55,16 @@ import { MuiAccordionDetails as $ } from "./accordion-details.js";
|
|
|
55
55
|
import { MuiAccordionSummary as ee } from "./accordion-summary.js";
|
|
56
56
|
import { MuiAlert as te } from "./alert.js";
|
|
57
57
|
import { MuiAppBar as ne } from "./app-bar.js";
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
58
|
+
import { MuiAutocomplete as re } from "./autocomplete.js";
|
|
59
|
+
import { MuiAvatar as ie } from "./avatar.js";
|
|
60
|
+
import { MuiBackdrop as ae } from "./backdrop.js";
|
|
61
|
+
import { MuiButton as oe } from "./button.js";
|
|
62
|
+
import { MuiButtonBase as se } from "./button-base.js";
|
|
63
|
+
import { MuiCard as ce } from "./card.js";
|
|
64
|
+
import { MuiCardActions as le } from "./card-actions.js";
|
|
65
|
+
import { MuiCardContent as ue } from "./card-content.js";
|
|
66
|
+
import { MuiCardHeader as de } from "./card-header.js";
|
|
67
|
+
import { MuiCheckbox as fe } from "./checkbox.js";
|
|
68
68
|
import { MuiChip as pe } from "./chip.js";
|
|
69
69
|
//#region lib/theme/components/components.ts
|
|
70
70
|
var me = {
|
|
@@ -74,15 +74,15 @@ var me = {
|
|
|
74
74
|
MuiAlert: te,
|
|
75
75
|
MuiAppBar: ne,
|
|
76
76
|
MuiAutocomplete: re,
|
|
77
|
-
MuiAvatar:
|
|
78
|
-
MuiBackdrop:
|
|
79
|
-
MuiButton:
|
|
80
|
-
MuiButtonBase:
|
|
81
|
-
MuiCard:
|
|
82
|
-
MuiCardActions:
|
|
83
|
-
MuiCardContent:
|
|
84
|
-
MuiCardHeader:
|
|
85
|
-
MuiCheckbox:
|
|
77
|
+
MuiAvatar: ie,
|
|
78
|
+
MuiBackdrop: ae,
|
|
79
|
+
MuiButton: oe,
|
|
80
|
+
MuiButtonBase: se,
|
|
81
|
+
MuiCard: ce,
|
|
82
|
+
MuiCardActions: le,
|
|
83
|
+
MuiCardContent: ue,
|
|
84
|
+
MuiCardHeader: de,
|
|
85
|
+
MuiCheckbox: fe,
|
|
86
86
|
MuiChip: pe,
|
|
87
87
|
MuiContainer: Z,
|
|
88
88
|
MuiCssBaseline: X,
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { inputClasses as e } from "@mui/material/Input";
|
|
2
|
+
import { inputLabelClasses as t } from "@mui/material/InputLabel";
|
|
3
|
+
//#region lib/theme/components/field-label-styles.ts
|
|
4
|
+
var n = {
|
|
5
|
+
[`& .${t.root}`]: {
|
|
6
|
+
maxWidth: "100%",
|
|
7
|
+
pointerEvents: "auto",
|
|
8
|
+
position: "static",
|
|
9
|
+
transform: "none",
|
|
10
|
+
transformOrigin: "initial"
|
|
11
|
+
},
|
|
12
|
+
[`& .${t.shrink}`]: {
|
|
13
|
+
maxWidth: "100%",
|
|
14
|
+
transform: "none"
|
|
15
|
+
},
|
|
16
|
+
[`& .${t.root} + .${e.root}`]: { marginTop: 0 }
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { n as staticFieldLabelStyles };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { formLabelClasses as e } from "@mui/material/FormLabel";
|
|
2
2
|
//#region lib/theme/components/form-label.tsx
|
|
3
3
|
var t = { styleOverrides: { root: ({ theme: t }) => ({
|
|
4
4
|
color: (t.vars ?? t).palette.text.primary,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { actionHoverMedia as e, getFocusVisibleStyle as t } from "./action-styles.js";
|
|
2
|
-
import { n } from "
|
|
2
|
+
import { svgIconClasses as n } from "@mui/material/SvgIcon";
|
|
3
3
|
//#region lib/theme/components/list-item-button.tsx
|
|
4
4
|
var r = (r) => ({
|
|
5
5
|
alignItems: "center",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { n } from "
|
|
4
|
-
import {
|
|
1
|
+
import { listItemButtonStyles as e } from "./list-item-button.js";
|
|
2
|
+
import { buttonBaseClasses as t } from "@mui/material/ButtonBase";
|
|
3
|
+
import { svgIconClasses as n } from "@mui/material/SvgIcon";
|
|
4
|
+
import { typographyClasses as r } from "@mui/material/Typography";
|
|
5
5
|
//#region lib/theme/components/list-item.tsx
|
|
6
6
|
var i = { styleOverrides: { root: ({ theme: i }) => ({
|
|
7
|
-
[`& .${
|
|
8
|
-
[`& .${
|
|
9
|
-
[`& .${
|
|
7
|
+
[`& .${n.root}`]: { color: (i.vars ?? i).palette.text.secondary },
|
|
8
|
+
[`& .${r.root}`]: { fontWeight: 500 },
|
|
9
|
+
[`& .${t.root}`]: e(i)
|
|
10
10
|
}) } };
|
|
11
11
|
//#endregion
|
|
12
12
|
export { i as MuiListItem };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { actionHoverMedia as e, getFocusVisibleStyle as t, getSelectedActionStyle as n } from "./action-styles.js";
|
|
2
|
+
import { styled as r } from "@mui/material/styles";
|
|
3
|
+
import i from "@mui/material/ButtonBase";
|
|
4
|
+
import "@mui/x-date-pickers/themeAugmentation";
|
|
5
|
+
import { monthCalendarClasses as a } from "@mui/x-date-pickers/MonthCalendar";
|
|
5
6
|
var o = {
|
|
6
7
|
defaultProps: {
|
|
7
8
|
monthsPerRow: 4,
|
|
8
|
-
slots: { monthButton:
|
|
9
|
+
slots: { monthButton: r(i, {
|
|
9
10
|
name: "MuiMonthCalendar",
|
|
10
11
|
slot: "Button"
|
|
11
12
|
})(({ theme: e }) => ({
|
|
@@ -24,14 +25,14 @@ var o = {
|
|
|
24
25
|
paddingTop: 0,
|
|
25
26
|
paddingBottom: 0
|
|
26
27
|
}),
|
|
27
|
-
button: ({ theme:
|
|
28
|
-
height:
|
|
29
|
-
width: `calc((100% - ${
|
|
30
|
-
borderRadius: (
|
|
31
|
-
[
|
|
32
|
-
"&.Mui-focusVisible": r
|
|
33
|
-
"&.Mui-disabled": { color: (
|
|
34
|
-
[`&.${a.selected}`]: { ...
|
|
28
|
+
button: ({ theme: r }) => ({
|
|
29
|
+
height: r.spacing(4),
|
|
30
|
+
width: `calc((100% - ${r.spacing(3)}) / 4)`,
|
|
31
|
+
borderRadius: (r.vars ?? r).shape.borderRadius,
|
|
32
|
+
[e]: { "&:hover": { backgroundColor: (r.vars ?? r).palette.action.hover } },
|
|
33
|
+
"&.Mui-focusVisible": t(r),
|
|
34
|
+
"&.Mui-disabled": { color: (r.vars ?? r).palette.action.disabled },
|
|
35
|
+
[`&.${a.selected}`]: { ...n(r, "primary") }
|
|
35
36
|
})
|
|
36
37
|
}
|
|
37
38
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { actionHoverMedia as e, getFocusVisibleStyle as t, getSelectedActionStyle as n } from "./action-styles.js";
|
|
2
|
+
import "@mui/x-date-pickers/themeAugmentation";
|
|
2
3
|
//#region lib/theme/components/multi-section-digital-clock-section.tsx
|
|
3
4
|
var r = { styleOverrides: {
|
|
4
5
|
root: ({ theme: e }) => ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { inputAdornmentClasses as e } from "@mui/material/InputAdornment";
|
|
2
|
+
import { outlinedInputClasses as t } from "@mui/material/OutlinedInput";
|
|
3
3
|
//#region lib/theme/components/outlined-input.tsx
|
|
4
4
|
var n = { styleOverrides: {
|
|
5
5
|
input: ({ theme: e }) => ({
|
|
@@ -30,16 +30,16 @@ var n = { styleOverrides: {
|
|
|
30
30
|
"&:hover": { borderColor: (n.vars ?? n).palette.grey[500] },
|
|
31
31
|
"&:not(.MuiInputBase-sizeSmall)": { minHeight: n.spacing(5) },
|
|
32
32
|
"&.MuiInputBase-sizeSmall": { height: n.spacing(4.5) },
|
|
33
|
-
[`&:has(input:placeholder-shown) .${
|
|
34
|
-
[`&.${
|
|
33
|
+
[`&:has(input:placeholder-shown) .${e.root}`]: { color: (n.vars ?? n).palette.text.secondary },
|
|
34
|
+
[`&.${t.focused}`]: {
|
|
35
35
|
outline: `3px solid rgba(${(n.vars ?? n).palette.primary.mainChannel} / 0.5)`,
|
|
36
36
|
borderColor: (n.vars ?? n).palette.primary[400]
|
|
37
37
|
},
|
|
38
|
-
[`&.${
|
|
38
|
+
[`&.${t.error}:not(.${t.disabled})`]: {
|
|
39
39
|
borderColor: (n.vars ?? n).palette.error.main,
|
|
40
40
|
"&:hover": { borderColor: (n.vars ?? n).palette.error.main }
|
|
41
41
|
},
|
|
42
|
-
[`&.${
|
|
42
|
+
[`&.${t.error}.${t.focused}`]: {
|
|
43
43
|
outline: `3px solid rgba(${(n.vars ?? n).palette.error.mainChannel} / 0.5)`,
|
|
44
44
|
borderColor: (n.vars ?? n).palette.error.main
|
|
45
45
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { actionHoverMedia as e, getFocusVisibleStyle as t, getSelectedActionStyle as n } from "./action-styles.js";
|
|
2
|
+
import "@mui/x-date-pickers/themeAugmentation";
|
|
2
3
|
//#region lib/theme/components/picker-day.tsx
|
|
3
4
|
var r = { styleOverrides: { root: ({ theme: r }) => ({
|
|
4
5
|
fontSize: r.typography.subtitle1.fontSize,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { reducedMotionMedia as e } from "./action-styles.js";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import "@mui/x-date-pickers/themeAugmentation";
|
|
3
|
+
import t from "@mui/icons-material/ExpandMore";
|
|
4
|
+
import { pickersCalendarHeaderClasses as n } from "@mui/x-date-pickers/PickersCalendarHeader";
|
|
4
5
|
//#region lib/theme/components/pickers-calendar-header.tsx
|
|
5
6
|
var r = {
|
|
6
7
|
defaultProps: { slots: { switchViewIcon: t } },
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import t from "@mui/icons-material/UnfoldMoreRounded";
|
|
3
|
+
import { selectClasses as n } from "@mui/material/Select";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
//#region lib/theme/components/select.tsx
|
|
6
6
|
var i = {
|
|
7
|
-
defaultProps: { IconComponent:
|
|
7
|
+
defaultProps: { IconComponent: e.forwardRef((e, n) => /* @__PURE__ */ r(t, {
|
|
8
8
|
fontSize: "small",
|
|
9
|
-
...
|
|
9
|
+
...e,
|
|
10
10
|
ref: n
|
|
11
11
|
})) },
|
|
12
12
|
styleOverrides: {
|
|
@@ -18,7 +18,7 @@ var i = {
|
|
|
18
18
|
color: "inherit",
|
|
19
19
|
right: e.spacing(1)
|
|
20
20
|
}),
|
|
21
|
-
root: ({ theme: e }) => ({ [`&:has(.${
|
|
21
|
+
root: ({ theme: e }) => ({ [`&:has(.${n.select} > span) .${n.icon}`]: { color: (e.vars ?? e).palette.text.secondary } })
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
//#endregion
|
|
@@ -1,2 +1,93 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { actionHoverMedia as e, getFocusVisibleStyle as t, getSelectedActionStyle as n, isSemanticActionColor as r, reducedPressMotionStyle as i, semanticActionColors as a } from "./action-styles.js";
|
|
2
|
+
import { buttonBaseClasses as o } from "@mui/material/ButtonBase";
|
|
3
|
+
import { toggleButtonClasses as s } from "@mui/material/ToggleButton";
|
|
4
|
+
//#region lib/theme/components/toggle-button.tsx
|
|
5
|
+
var c = (n) => {
|
|
6
|
+
let r = (n.vars ?? n).palette;
|
|
7
|
+
return {
|
|
8
|
+
backgroundColor: r.action.selected,
|
|
9
|
+
color: r.text.primary,
|
|
10
|
+
[`&.${o.focusVisible}`]: {
|
|
11
|
+
...t(n),
|
|
12
|
+
backgroundColor: r.action.selected
|
|
13
|
+
},
|
|
14
|
+
[e]: { "&:hover": {
|
|
15
|
+
backgroundColor: r.action.selected,
|
|
16
|
+
color: r.text.primary
|
|
17
|
+
} },
|
|
18
|
+
[`&.${s.disabled}`]: {
|
|
19
|
+
backgroundColor: r.action.disabledBackground,
|
|
20
|
+
borderColor: "transparent",
|
|
21
|
+
color: r.action.disabled
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
}, l = {
|
|
25
|
+
defaultProps: { disableFocusRipple: !0 },
|
|
26
|
+
styleOverrides: { root: ({ ownerState: l, theme: u }) => {
|
|
27
|
+
let d = (u.vars ?? u).palette, f = l.color ?? "standard", p = r(f) ? d[f] : d.primary;
|
|
28
|
+
return {
|
|
29
|
+
borderRadius: (u.vars ?? u).shape.borderRadius,
|
|
30
|
+
boxSizing: "border-box",
|
|
31
|
+
gap: u.spacing(1),
|
|
32
|
+
fontWeight: 500,
|
|
33
|
+
paddingBlock: 0,
|
|
34
|
+
textTransform: "none",
|
|
35
|
+
transition: u.transitions.create([
|
|
36
|
+
"background-color",
|
|
37
|
+
"border-color",
|
|
38
|
+
"color"
|
|
39
|
+
], { duration: u.transitions.duration.shorter }),
|
|
40
|
+
[`&.${o.focusVisible}`]: t(u, p),
|
|
41
|
+
[e]: { [`&:hover:not(.${s.selected})`]: {
|
|
42
|
+
backgroundColor: d.action.hover,
|
|
43
|
+
color: d.text.primary
|
|
44
|
+
} },
|
|
45
|
+
[`&:active:not(.${s.disabled}):not(.${s.selected})`]: { backgroundColor: d.action.selected },
|
|
46
|
+
[`&.${s.disabled}:not(.${s.selected})`]: {
|
|
47
|
+
backgroundColor: "transparent",
|
|
48
|
+
borderColor: d.action.disabledBackground,
|
|
49
|
+
color: d.action.disabled
|
|
50
|
+
},
|
|
51
|
+
...i,
|
|
52
|
+
variants: [
|
|
53
|
+
{
|
|
54
|
+
props: { size: "small" },
|
|
55
|
+
style: {
|
|
56
|
+
height: u.spacing(4.5),
|
|
57
|
+
minWidth: u.spacing(4.5),
|
|
58
|
+
paddingInline: u.spacing(1.5)
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
props: { size: "medium" },
|
|
63
|
+
style: {
|
|
64
|
+
height: u.spacing(5),
|
|
65
|
+
minWidth: u.spacing(5),
|
|
66
|
+
paddingInline: u.spacing(2)
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
props: { size: "large" },
|
|
71
|
+
style: {
|
|
72
|
+
height: u.spacing(5.5),
|
|
73
|
+
minWidth: u.spacing(5.5),
|
|
74
|
+
paddingInline: u.spacing(2.5)
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
props: { color: "standard" },
|
|
79
|
+
style: { [`&.${s.selected}`]: c(u) }
|
|
80
|
+
},
|
|
81
|
+
...a.map((e) => ({
|
|
82
|
+
props: { color: e },
|
|
83
|
+
style: { [`&.${s.selected}`]: {
|
|
84
|
+
...n(u, e),
|
|
85
|
+
borderColor: "transparent"
|
|
86
|
+
} }
|
|
87
|
+
}))
|
|
88
|
+
]
|
|
89
|
+
};
|
|
90
|
+
} }
|
|
91
|
+
};
|
|
92
|
+
//#endregion
|
|
93
|
+
export { l as MuiToggleButton };
|