@solostylist/ui-kit 1.0.225 → 1.0.227
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/{ArrowUpward-BMKLosZj.js → ArrowUpward-CNiENJp2.js} +1 -1
- package/dist/{ButtonBase-Bo6ysVGS.js → ButtonBase-BDefit5I.js} +100 -99
- package/dist/{ChevronRight-OLNOfW9P.js → ChevronRight-gZJ3kc6N.js} +1 -1
- package/dist/{Close-Bj2HYB9Q.js → Close-CJu3iF1p.js} +1 -1
- package/dist/{Collapse-CnXmaDqT.js → Collapse-JUd84Z9O.js} +4 -3
- package/dist/{ContentCopy-Br2p19dq.js → ContentCopy-BMQ2JTA0.js} +1 -1
- package/dist/{Download-BhSXOhCI.js → Download-SNal6U7j.js} +1 -1
- package/dist/{ExpandMore-Bu7_1g6Q.js → ExpandMore-DIsT5FOp.js} +1 -1
- package/dist/{Favorite-BJSuHe0H.js → Favorite-CbvuQfe4.js} +1 -1
- package/dist/{FormControl-DYkaP-oD.js → FormControl-BbzvApma.js} +6 -6
- package/dist/{InfoOutlined-C1AW3f5V.js → InfoOutlined-BCzG-5py.js} +1 -1
- package/dist/{Menu-C-0KEauj.js → Menu-Ct_sL_Dg.js} +20 -20
- package/dist/{MenuItem-DWivWkNb.js → MenuItem-CwAhn4sd.js} +8 -8
- package/dist/{MenuList-5HOyYdgq.js → MenuList-5C2nFAWS.js} +45 -45
- package/dist/{Modal-C1VRVWBZ.js → Modal-Cu5Cgh-q.js} +109 -108
- package/dist/{Paper-BY4X6-u_.js → Paper-CPC6sMxx.js} +1 -1
- package/dist/{Typography-EsraKPZO.js → Typography-CZ_MYa-E.js} +2 -2
- package/dist/{UnfoldMoreRounded-pz7NMMy3.js → UnfoldMoreRounded-tvqQS6eb.js} +1 -1
- package/dist/{autocomplete-qLj7AqcP.js → autocomplete-Dd4zjpaF.js} +1 -1
- package/dist/{avatar-BuMhUthq.js → avatar-DFQ5F7pY.js} +2 -2
- package/dist/{checkbox-B95Vlykq.js → checkbox-B5GlJYcB.js} +17 -17
- package/dist/{createSvgIcon-BdNZIlKS.js → createSvgIcon-HW-tbFcL.js} +1 -1
- package/dist/{mergeSlotProps-DBBJwoun.js → mergeSlotProps-slENzJO5.js} +1 -1
- package/dist/monthCalendarClasses-BLfBep-t.js +14 -0
- package/dist/s-accordion/index.js +1 -1
- package/dist/s-accordion/s-accordion.js +1 -1
- package/dist/{s-accordion-CXHBadZ_.js → s-accordion-xPDelTvP.js} +7 -7
- package/dist/s-breadcrumbs/s-breadcrumbs.js +1 -1
- package/dist/s-carousel/index.js +1 -1
- package/dist/s-carousel/s-carousel.js +1 -1
- package/dist/{s-carousel-BUJYCigy.js → s-carousel-CvmWl6Sc.js} +7 -9
- package/dist/s-category-card/s-category-card.js +0 -1
- package/dist/s-chat-input/index.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +1 -1
- package/dist/s-chat-input-BHMymKij.js +352 -0
- package/dist/s-chat-message/index.js +1 -1
- package/dist/s-chat-message/s-chat-message.js +1 -1
- package/dist/{s-chat-message-Cb1npIQO.js → s-chat-message-B9JOBvzP.js} +67 -73
- package/dist/s-chips/index.js +1 -1
- package/dist/s-chips/s-chips.js +1 -1
- package/dist/{s-chips-DelHx6zM.js → s-chips-CAC_vVd0.js} +1 -1
- package/dist/s-code-block/index.js +1 -1
- package/dist/s-code-block/s-code-block.js +1 -1
- package/dist/{s-code-block-sjt0AQb_.js → s-code-block-B5k-1Acd.js} +9 -1
- package/dist/s-comment-message/index.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +1 -1
- package/dist/{s-comment-message-DzjXXLZQ.js → s-comment-message-BPE5a6p6.js} +12 -23
- package/dist/s-copyable-text/s-copyable-text.js +1 -2
- package/dist/s-data-table/index.js +1 -1
- package/dist/s-data-table/s-data-table.js +1 -1
- package/dist/{s-data-table-TrCdKq9r.js → s-data-table-D-esZw_W.js} +47 -49
- package/dist/s-date-picker/index.js +1 -1
- package/dist/s-date-picker/picker-action-bar.d.ts +12 -0
- package/dist/s-date-picker/picker-action-bar.js +52 -0
- package/dist/s-date-picker/s-date-picker.d.ts +1 -4
- package/dist/s-date-picker/s-date-picker.js +1 -1
- package/dist/s-date-picker-CdH1pta6.js +640 -0
- package/dist/s-datetime-picker/index.js +1 -1
- package/dist/s-datetime-picker/s-datetime-picker.d.ts +1 -4
- package/dist/s-datetime-picker/s-datetime-picker.js +1 -1
- package/dist/{s-datetime-picker-rCWovez1.js → s-datetime-picker-BHkWSJKj.js} +806 -799
- package/dist/s-dialog/s-dialog.js +2 -3
- package/dist/s-dialog-confirm/s-dialog-confirm.js +3 -4
- package/dist/s-dialog-message/s-dialog-message.js +3 -4
- package/dist/s-empty/s-empty.js +2 -5
- package/dist/s-error/s-error.js +1 -1
- package/dist/s-error-layout/s-error-layout.d.ts +1 -1
- package/dist/s-error-layout/s-error-layout.js +3 -2
- package/dist/s-file-dropzone/index.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.d.ts +1 -4
- package/dist/s-file-dropzone/s-file-dropzone.js +1 -1
- package/dist/{s-file-dropzone-oaQoRV92.js → s-file-dropzone-C4_hCsN8.js} +47 -42
- package/dist/s-gallery/gallery-grid-item.d.ts +17 -0
- package/dist/s-gallery/gallery-grid-item.js +112 -0
- package/dist/s-gallery/gallery-layout.d.ts +16 -0
- package/dist/s-gallery/gallery-layout.js +50 -0
- package/dist/s-gallery/gallery-media-item.d.ts +15 -0
- package/dist/s-gallery/gallery-media-item.js +112 -0
- package/dist/s-gallery/index.d.ts +5 -2
- package/dist/s-gallery/index.js +2 -1
- package/dist/s-gallery/s-gallery.d.ts +1 -17
- package/dist/s-gallery/s-gallery.js +38 -284
- package/dist/s-image-comparison/s-image-comparison.js +46 -42
- package/dist/s-image-modal/default-media-item.d.ts +9 -0
- package/dist/s-image-modal/default-media-item.js +34 -0
- package/dist/s-image-modal/image-modal-thumbnail-dock.d.ts +11 -0
- package/dist/s-image-modal/image-modal-thumbnail-dock.js +102 -0
- package/dist/s-image-modal/index.d.ts +2 -2
- package/dist/s-image-modal/index.js +2 -1
- package/dist/s-image-modal/s-image-modal.d.ts +1 -58
- package/dist/s-image-modal/s-image-modal.js +2 -2
- package/dist/s-image-modal/types.d.ts +52 -0
- package/dist/s-image-modal/types.js +0 -0
- package/dist/s-image-modal/use-image-modal-navigation.d.ts +29 -0
- package/dist/s-image-modal/use-image-modal-navigation.js +57 -0
- package/dist/s-image-modal-D-Jh-5b3.js +243 -0
- package/dist/s-label/s-label.js +1 -1
- package/dist/s-language-switcher/index.js +1 -1
- package/dist/s-language-switcher/s-language-switcher.js +1 -1
- package/dist/{s-language-switcher-vievp2VS.js → s-language-switcher-UgSBC_n_.js} +4 -4
- package/dist/s-localization-provider/index.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.js +1 -1
- package/dist/{s-localization-provider-YCsec18c.js → s-localization-provider-l5J7myJJ.js} +4 -4
- package/dist/s-nav-item/s-nav-item.js +1 -1
- package/dist/s-nav-items/s-nav-items.js +4 -7
- package/dist/s-pagination/s-pagination.js +12 -15
- package/dist/s-review/index.js +1 -1
- package/dist/s-review/s-review.js +1 -1
- package/dist/{s-review-DjvDY-h4.js → s-review-CRnakHRo.js} +18 -27
- package/dist/s-scroll-reveal/s-scroll-reveal.js +1 -1
- package/dist/s-scroll-to-top/s-scroll-to-top.js +1 -1
- package/dist/s-select/index.js +1 -1
- package/dist/s-select/s-select.js +1 -1
- package/dist/{s-select-B-dEcddK.js → s-select-HMWY7frm.js} +1 -1
- package/dist/s-select-list/s-select-list.js +2 -11
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +23 -15
- package/dist/s-stripe/s-stripe-cvc.d.ts +1 -5
- package/dist/s-stripe/s-stripe-cvc.js +11 -11
- package/dist/s-stripe/s-stripe-expiry.d.ts +1 -5
- package/dist/s-stripe/s-stripe-expiry.js +11 -11
- package/dist/s-stripe/s-stripe-number.d.ts +1 -5
- package/dist/s-stripe/s-stripe-number.js +11 -11
- package/dist/s-stripe/s-stripe.d.ts +11 -4
- package/dist/s-stripe/s-stripe.js +19 -17
- package/dist/s-stripe/stripe-input.js +41 -32
- package/dist/s-text-editor/index.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +1 -1
- package/dist/s-text-editor/s-text-editor.d.ts +1 -4
- package/dist/s-text-editor/s-text-editor.js +21 -24
- package/dist/{s-text-editor-toolbar-DP0MkICo.js → s-text-editor-toolbar-BEFVwZ-B.js} +560 -559
- package/dist/s-text-field/index.js +1 -1
- package/dist/s-text-field/s-text-field.d.ts +1 -4
- package/dist/s-text-field/s-text-field.js +1 -1
- package/dist/{s-text-field-GqcwXwta.js → s-text-field-DD6nnwwU.js} +20 -19
- package/dist/s-text-truncation/s-text-truncation.js +11 -16
- package/dist/s-theme-demo/index.js +1 -1
- package/dist/s-theme-demo/s-theme-demo.js +1 -1
- package/dist/{s-theme-demo-BpeyFRKt.js → s-theme-demo-Fktc-UlY.js} +4 -4
- package/dist/s-theme-provider/s-theme-provider.js +26 -25
- package/dist/s-theme-switch/index.js +1 -1
- package/dist/s-theme-switch/s-theme-switch.js +1 -1
- package/dist/{s-theme-switch-V3Q58mkG.js → s-theme-switch-DzXoVmQH.js} +1 -1
- package/dist/s-tip/index.js +1 -1
- package/dist/s-tip/s-tip.js +1 -1
- package/dist/{s-tip-Dwu5T2u0.js → s-tip-BOGEH1v8.js} +2 -2
- package/dist/s-tool-bar/index.d.ts +1 -1
- package/dist/s-tool-bar/index.js +1 -1
- package/dist/s-tool-bar/s-tool-bar.d.ts +1 -155
- package/dist/s-tool-bar/s-tool-bar.js +114 -2
- package/dist/s-tool-bar/tool-bar-action-buttons.d.ts +15 -0
- package/dist/s-tool-bar/tool-bar-action-buttons.js +2 -0
- package/dist/s-tool-bar/tool-bar-image-input.d.ts +8 -0
- package/dist/s-tool-bar/tool-bar-image-input.js +2 -0
- package/dist/s-tool-bar/tool-bar-inputs.d.ts +3 -0
- package/dist/s-tool-bar/tool-bar-inputs.js +139 -0
- package/dist/s-tool-bar/types.d.ts +170 -0
- package/dist/s-tool-bar/types.js +0 -0
- package/dist/s-tool-bar/utils.d.ts +10 -0
- package/dist/s-tool-bar/utils.js +22 -0
- package/dist/switch-BSg1TGWH.js +62 -0
- package/dist/theme/components/accordion-summary.js +2 -2
- package/dist/theme/components/accordion.js +1 -1
- package/dist/theme/components/alert.d.ts +1 -1
- package/dist/theme/components/alert.js +1 -1
- package/dist/theme/components/autocomplete.js +1 -1
- package/dist/theme/components/avatar.d.ts +10 -1
- package/dist/theme/components/avatar.js +1 -1
- package/dist/theme/components/card.js +4 -4
- package/dist/theme/components/checkbox.js +1 -1
- package/dist/theme/components/chip.js +17 -6
- package/dist/theme/components/components.js +136 -118
- package/dist/theme/components/date-calendar.d.ts +13 -0
- package/dist/theme/components/date-calendar.js +7 -0
- package/dist/theme/components/day-calendar.d.ts +14 -1
- package/dist/theme/components/day-calendar.js +14 -1
- package/dist/theme/components/dialog-actions.js +1 -1
- package/dist/theme/components/dialog-content.d.ts +13 -0
- package/dist/theme/components/dialog-content.js +7 -0
- package/dist/theme/components/dialog-title.d.ts +21 -0
- package/dist/theme/components/dialog-title.js +7 -0
- package/dist/theme/components/form-label.js +1 -1
- package/dist/theme/components/icon-button.d.ts +5 -1
- package/dist/theme/components/icon-button.js +18 -24
- package/dist/theme/components/linear-progress.js +2 -2
- package/dist/theme/components/link.d.ts +1 -1
- package/dist/theme/components/link.js +2 -2
- package/dist/theme/components/list-item-button.js +2 -2
- package/dist/theme/components/list-item.js +3 -3
- package/dist/theme/components/month-calendar.d.ts +43 -0
- package/dist/theme/components/month-calendar.js +28 -0
- package/dist/theme/components/multi-section-digital-clock-section.js +25 -0
- package/dist/theme/components/outlined-input.js +6 -6
- package/dist/theme/components/picker-day.d.ts +16 -2
- package/dist/theme/components/picker-day.js +13 -1
- package/dist/theme/components/pickers-arrow-switcher.d.ts +12 -0
- package/dist/theme/components/pickers-arrow-switcher.js +4 -0
- package/dist/theme/components/pickers-calendar-header.d.ts +38 -0
- package/dist/theme/components/pickers-calendar-header.js +24 -0
- package/dist/theme/components/select.js +2 -2
- package/dist/theme/components/slider.d.ts +29 -2
- package/dist/theme/components/slider.js +14 -2
- package/dist/theme/components/step-connector.d.ts +1 -1
- package/dist/theme/components/step-connector.js +1 -1
- package/dist/theme/components/step-icon.js +1 -1
- package/dist/theme/components/switch.d.ts +1032 -0
- package/dist/theme/components/switch.js +2 -0
- package/dist/theme/components/tab.js +1 -1
- package/dist/theme/components/table-pagination.js +1 -1
- package/dist/theme/components/toggle-button-group.js +1 -1
- package/dist/theme/components/toggle-button.js +1 -1
- package/dist/theme/components/year-calendar.d.ts +45 -0
- package/dist/theme/components/year-calendar.js +30 -0
- package/dist/theme/theme-primitives.d.ts +38 -0
- package/dist/theme/theme-primitives.js +2 -2
- package/dist/{theme-primitives-D2vHHGiX.js → theme-primitives-CiQYd9Cc.js} +14 -5
- package/dist/{toggle-button-BUsRxHn0.js → toggle-button-TmtJ4nSp.js} +3 -3
- package/dist/{toggle-button-group-ABwIhV4P.js → toggle-button-group-BCkdd3Jj.js} +4 -4
- package/dist/tool-bar-action-buttons-CSXNDen6.js +50 -0
- package/dist/tool-bar-image-input-IdA6l71Y.js +138 -0
- package/dist/{useControlled-DXKqhylj.js → useControlled-BtZNCHV0.js} +1 -1
- package/dist/useForkRef-yOYCJHzF.js +29 -0
- package/dist/{useMobilePicker-ujH2nH2-.js → useMobilePicker-Dw1IxoE6.js} +7657 -7674
- package/dist/{useSlot-Dkc1Mj31.js → useSlot-IwEDsR9t.js} +107 -133
- package/dist/{utils-CCnIUPad.js → utils-CU6O7jrX.js} +5 -5
- package/dist/{LocalizationProvider-BdaUKqz3.js → warning-CFMmJJnf.js} +51 -51
- package/dist/yearCalendarClasses-DypEe_Vn.js +14 -0
- package/package.json +1 -1
- package/dist/s-chat-input-cOCqPTUS.js +0 -299
- package/dist/s-date-picker-BkZIEZoz.js +0 -634
- package/dist/s-image-modal-Za71QD3d.js +0 -397
- package/dist/s-tool-bar-DaZ2wT09.js +0 -454
- /package/dist/{buttonBaseClasses-BLZbMisL.js → buttonBaseClasses-BVDyR-hz.js} +0 -0
- /package/dist/{checkboxClasses-DSyvUOsN.js → checkboxClasses-DANc9lnq.js} +0 -0
- /package/dist/{createSimplePaletteValueFilter-GHK52GLU.js → createSimplePaletteValueFilter-5v48HHyU.js} +0 -0
- /package/dist/{extends-D8CDMpIy.js → extends-DM-C9PwL.js} +0 -0
- /package/dist/{formLabelClasses-Cv7W0Roi.js → formLabelClasses-LXZqWZfM.js} +0 -0
- /package/dist/{iconButtonClasses-9jjSQ9-U.js → iconButtonClasses-LyjwljJq.js} +0 -0
- /package/dist/{inputAdornmentClasses-VKwluNTs.js → inputAdornmentClasses-ZoGTcUz5.js} +0 -0
- /package/dist/{objectWithoutPropertiesLoose-BpY-kC5L.js → objectWithoutPropertiesLoose-kj3TmhoA.js} +0 -0
- /package/dist/{outlinedInputClasses-Cz4pnn0X.js → outlinedInputClasses-DPwt_pSZ.js} +0 -0
- /package/dist/{selectClasses-DvT1febA.js → selectClasses-C-QpiLPi.js} +0 -0
- /package/dist/{svgIconClasses-D46YUMKp.js → svgIconClasses-BtHvkhy5.js} +0 -0
- /package/dist/{tabClasses-KqPlYv0c.js → tabClasses-CmFw6sbs.js} +0 -0
- /package/dist/{typographyClasses-CFf0OFiD.js → typographyClasses-CiDYRanL.js} +0 -0
- /package/dist/{useControlled-2-C6cXjG.js → useControlled-DuSwFVhD.js} +0 -0
- /package/dist/{useFormControl-B4z6ONhx.js → useFormControl-CUs308br.js} +0 -0
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { t as e } from "../tool-bar-image-input-IdA6l71Y.js";
|
|
2
|
+
import { t } from "../s-select-HMWY7frm.js";
|
|
3
|
+
import n from "react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
import { Box as a, Slider as o, TextField as s, Typography as c, outlinedInputClasses as l } from "@mui/material";
|
|
6
|
+
//#region lib/s-tool-bar/tool-bar-inputs.tsx
|
|
7
|
+
var u = n.memo(({ input: e, value: t, onChange: n, onFocus: i, onBlur: a, disabled: o }) => /* @__PURE__ */ r(s, {
|
|
8
|
+
value: t,
|
|
9
|
+
onChange: (e) => n(e.target.value),
|
|
10
|
+
onFocus: i,
|
|
11
|
+
onBlur: a,
|
|
12
|
+
placeholder: e.placeholder ?? e.label,
|
|
13
|
+
disabled: o,
|
|
14
|
+
multiline: !0,
|
|
15
|
+
minRows: e.minRows ?? 2,
|
|
16
|
+
maxRows: e.maxRows ?? 5,
|
|
17
|
+
fullWidth: !0,
|
|
18
|
+
variant: "outlined",
|
|
19
|
+
slotProps: { input: { sx: {
|
|
20
|
+
backgroundColor: "transparent",
|
|
21
|
+
border: "none",
|
|
22
|
+
padding: 0,
|
|
23
|
+
[`&.${l.focused}`]: { outline: "none" },
|
|
24
|
+
"& fieldset": { border: "none" },
|
|
25
|
+
"&:hover fieldset": { border: "none" },
|
|
26
|
+
"&.Mui-focused fieldset": { border: "none" }
|
|
27
|
+
} } },
|
|
28
|
+
...e.componentProps?.textarea ?? {}
|
|
29
|
+
})), d = n.memo((e) => /* @__PURE__ */ r(c, {
|
|
30
|
+
variant: "subtitle2",
|
|
31
|
+
sx: {
|
|
32
|
+
whiteSpace: "nowrap",
|
|
33
|
+
overflow: "hidden",
|
|
34
|
+
textOverflow: "ellipsis",
|
|
35
|
+
width: "100% !important"
|
|
36
|
+
},
|
|
37
|
+
children: e.label
|
|
38
|
+
})), f = n.memo(({ input: e, value: t, onChange: n, onFocus: o, onBlur: c, disabled: l }) => /* @__PURE__ */ i(a, {
|
|
39
|
+
sx: {
|
|
40
|
+
width: 80,
|
|
41
|
+
display: "flex",
|
|
42
|
+
flexDirection: "column"
|
|
43
|
+
},
|
|
44
|
+
children: [/* @__PURE__ */ r(d, { label: e.label }), /* @__PURE__ */ r(s, {
|
|
45
|
+
type: "number",
|
|
46
|
+
value: t ?? e.defaultValue ?? 0,
|
|
47
|
+
onChange: (e) => n(Number(e.target.value)),
|
|
48
|
+
onFocus: o,
|
|
49
|
+
onBlur: c,
|
|
50
|
+
disabled: l,
|
|
51
|
+
slotProps: { htmlInput: {
|
|
52
|
+
min: e.min,
|
|
53
|
+
max: e.max,
|
|
54
|
+
step: e.step
|
|
55
|
+
} },
|
|
56
|
+
...e.componentProps?.number ?? {}
|
|
57
|
+
})]
|
|
58
|
+
})), p = n.memo(({ input: e, value: n, onChange: o, onFocus: s, onBlur: c, disabled: l }) => /* @__PURE__ */ i(a, {
|
|
59
|
+
sx: {
|
|
60
|
+
width: 180,
|
|
61
|
+
display: "flex",
|
|
62
|
+
flexDirection: "column"
|
|
63
|
+
},
|
|
64
|
+
children: [/* @__PURE__ */ r(d, { label: e.label }), /* @__PURE__ */ r(t, {
|
|
65
|
+
value: n ?? e.defaultValue ?? "",
|
|
66
|
+
onChange: (e) => o(e.target.value),
|
|
67
|
+
onFocus: s,
|
|
68
|
+
onBlur: c,
|
|
69
|
+
disabled: l,
|
|
70
|
+
placeholder: e.placeholder,
|
|
71
|
+
options: e.options ?? [],
|
|
72
|
+
optionLabel: e.optionLabel,
|
|
73
|
+
optionValue: e.optionValue,
|
|
74
|
+
searchable: e.searchable,
|
|
75
|
+
searchPlaceholder: e.searchPlaceholder,
|
|
76
|
+
...e.componentProps?.select ?? {}
|
|
77
|
+
})]
|
|
78
|
+
})), m = n.memo(({ input: e, value: t, onChange: n, onFocus: s, onBlur: l, disabled: u }) => /* @__PURE__ */ i(a, {
|
|
79
|
+
sx: {
|
|
80
|
+
width: 160,
|
|
81
|
+
display: "flex",
|
|
82
|
+
flexDirection: "column"
|
|
83
|
+
},
|
|
84
|
+
children: [/* @__PURE__ */ r(d, { label: e.label }), /* @__PURE__ */ i(a, {
|
|
85
|
+
sx: {
|
|
86
|
+
display: "flex",
|
|
87
|
+
alignItems: "center",
|
|
88
|
+
height: 36
|
|
89
|
+
},
|
|
90
|
+
children: [/* @__PURE__ */ r(o, {
|
|
91
|
+
value: t ?? e.defaultValue ?? e.min ?? 0,
|
|
92
|
+
onChange: (e, t) => n(t),
|
|
93
|
+
onMouseDown: s,
|
|
94
|
+
onMouseUp: l,
|
|
95
|
+
disabled: u,
|
|
96
|
+
min: e.min ?? 0,
|
|
97
|
+
max: e.max ?? 100,
|
|
98
|
+
step: e.step ?? 1,
|
|
99
|
+
sx: { flex: 1 },
|
|
100
|
+
...e.componentProps?.slider ?? {}
|
|
101
|
+
}), /* @__PURE__ */ r(c, {
|
|
102
|
+
variant: "body2",
|
|
103
|
+
sx: {
|
|
104
|
+
minWidth: 60,
|
|
105
|
+
textAlign: "center"
|
|
106
|
+
},
|
|
107
|
+
children: t ?? e.defaultValue ?? e.min ?? 0
|
|
108
|
+
})]
|
|
109
|
+
})]
|
|
110
|
+
})), h = (t) => {
|
|
111
|
+
switch (t.input.type) {
|
|
112
|
+
case "textarea": return /* @__PURE__ */ r(u, { ...t });
|
|
113
|
+
case "number": return /* @__PURE__ */ r(f, { ...t });
|
|
114
|
+
case "slider": return /* @__PURE__ */ r(m, { ...t });
|
|
115
|
+
case "select": return /* @__PURE__ */ r(p, { ...t });
|
|
116
|
+
case "image": return /* @__PURE__ */ r(e, {
|
|
117
|
+
input: t.input,
|
|
118
|
+
value: t.value,
|
|
119
|
+
onChange: t.onChange,
|
|
120
|
+
disabled: t.disabled
|
|
121
|
+
});
|
|
122
|
+
default: return null;
|
|
123
|
+
}
|
|
124
|
+
}, g = n.memo(({ input: e, value: t, disabled: n, onChange: i, onFocus: o, onBlur: s }) => e.renderInput ? /* @__PURE__ */ r(a, { children: e.renderInput({
|
|
125
|
+
value: t,
|
|
126
|
+
onChange: i,
|
|
127
|
+
onFocus: o,
|
|
128
|
+
onBlur: s,
|
|
129
|
+
disabled: n
|
|
130
|
+
}) }) : /* @__PURE__ */ r(h, {
|
|
131
|
+
input: e,
|
|
132
|
+
value: t,
|
|
133
|
+
onChange: i,
|
|
134
|
+
onFocus: o,
|
|
135
|
+
onBlur: s,
|
|
136
|
+
disabled: n
|
|
137
|
+
}));
|
|
138
|
+
//#endregion
|
|
139
|
+
export { g as ToolbarInputItem };
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SelectProps, SliderProps, TextFieldProps } from '@mui/material';
|
|
3
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
4
|
+
/**
|
|
5
|
+
* Possible value types for SToolBar inputs
|
|
6
|
+
*/
|
|
7
|
+
export type SToolBarValue = string | number | File | (string | File)[] | null;
|
|
8
|
+
/**
|
|
9
|
+
* Base type constraint for select options
|
|
10
|
+
*/
|
|
11
|
+
export type SToolBarOption = string | number | Record<string, unknown>;
|
|
12
|
+
/**
|
|
13
|
+
* Supported input types for SToolBar
|
|
14
|
+
*/
|
|
15
|
+
export type SToolBarInputType = 'textarea' | 'slider' | 'image' | 'number' | 'select';
|
|
16
|
+
/**
|
|
17
|
+
* Configuration for individual toolbar input fields
|
|
18
|
+
*/
|
|
19
|
+
export interface SToolBarInput {
|
|
20
|
+
/** Unique identifier for the input */
|
|
21
|
+
key: string;
|
|
22
|
+
/** Display label for the input */
|
|
23
|
+
label: string;
|
|
24
|
+
/** Input type */
|
|
25
|
+
type: SToolBarInputType;
|
|
26
|
+
/** Whether the input is required */
|
|
27
|
+
required?: boolean;
|
|
28
|
+
/** Default value for the input */
|
|
29
|
+
defaultValue?: SToolBarValue;
|
|
30
|
+
/** Placeholder text (for textarea/number/select inputs) */
|
|
31
|
+
placeholder?: string;
|
|
32
|
+
/** Minimum value (for slider/number inputs) */
|
|
33
|
+
min?: number;
|
|
34
|
+
/** Maximum value (for slider/number inputs) */
|
|
35
|
+
max?: number;
|
|
36
|
+
/** Step value (for slider/number inputs) */
|
|
37
|
+
step?: number;
|
|
38
|
+
/** Minimum rows for textarea */
|
|
39
|
+
minRows?: number;
|
|
40
|
+
/** Maximum rows for textarea */
|
|
41
|
+
maxRows?: number;
|
|
42
|
+
/** Allow multiple images (for image inputs) */
|
|
43
|
+
multiple?: boolean;
|
|
44
|
+
/** Maximum number of images (for image inputs with multiple=true) */
|
|
45
|
+
maxImages?: number;
|
|
46
|
+
/** Select options (for select inputs) */
|
|
47
|
+
options?: SToolBarOption[];
|
|
48
|
+
/** Key to extract label from option objects (for select inputs) */
|
|
49
|
+
optionLabel?: string;
|
|
50
|
+
/** Key to extract value from option objects (for select inputs) */
|
|
51
|
+
optionValue?: string;
|
|
52
|
+
/** Enable search functionality in select dropdown */
|
|
53
|
+
searchable?: boolean;
|
|
54
|
+
/** Placeholder for search input in select dropdown */
|
|
55
|
+
searchPlaceholder?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Extra props forwarded to the underlying child component.
|
|
58
|
+
* Each key targets the matching input type:
|
|
59
|
+
* - `textarea` / `number` → MUI `TextField`
|
|
60
|
+
* - `slider` → MUI `Slider`
|
|
61
|
+
* - `select` → `SSelect`
|
|
62
|
+
* - `image` → native `<input type="file">`
|
|
63
|
+
*
|
|
64
|
+
* Only the props relevant to the current `type` are used.
|
|
65
|
+
*/
|
|
66
|
+
componentProps?: SToolBarComponentProps;
|
|
67
|
+
/** Custom renderer for the input */
|
|
68
|
+
renderInput?: (props: {
|
|
69
|
+
value: SToolBarValue;
|
|
70
|
+
onChange: (value: SToolBarValue) => void;
|
|
71
|
+
onFocus: () => void;
|
|
72
|
+
onBlur: () => void;
|
|
73
|
+
disabled?: boolean;
|
|
74
|
+
}) => React.ReactNode;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Per-type overrides forwarded to the underlying child components.
|
|
78
|
+
* Omit props that are already managed by SToolBar to avoid conflicts.
|
|
79
|
+
*/
|
|
80
|
+
export interface SToolBarComponentProps {
|
|
81
|
+
/** Extra props for the MUI TextField used in `textarea` inputs */
|
|
82
|
+
textarea?: Omit<TextFieldProps, 'value' | 'onChange' | 'onFocus' | 'onBlur' | 'disabled' | 'multiline' | 'minRows' | 'maxRows' | 'fullWidth' | 'placeholder'>;
|
|
83
|
+
/** Extra props for the MUI TextField used in `number` inputs */
|
|
84
|
+
number?: Omit<TextFieldProps, 'value' | 'onChange' | 'onFocus' | 'onBlur' | 'disabled' | 'type' | 'slotProps'>;
|
|
85
|
+
/** Extra props for the MUI Slider used in `slider` inputs */
|
|
86
|
+
slider?: Omit<SliderProps, 'value' | 'onChange' | 'onMouseDown' | 'onMouseUp' | 'disabled' | 'min' | 'max' | 'step'>;
|
|
87
|
+
/** Extra props for SSelect used in `select` inputs */
|
|
88
|
+
select?: Omit<SelectProps, 'ref' | 'value' | 'onChange' | 'onFocus' | 'onBlur' | 'disabled' | 'error' | 'variant'> & {
|
|
89
|
+
/** Field label displayed above the select */
|
|
90
|
+
label?: string | React.ReactNode;
|
|
91
|
+
/** Error message to display below the field */
|
|
92
|
+
error?: string;
|
|
93
|
+
/** Whether the field is required */
|
|
94
|
+
required?: boolean;
|
|
95
|
+
/** Whether to use simple value rendering */
|
|
96
|
+
simple?: boolean;
|
|
97
|
+
/** HTML id attribute for the select element */
|
|
98
|
+
htmlFor?: string;
|
|
99
|
+
/** Custom render function for dropdown options */
|
|
100
|
+
renderOption?: (option: SToolBarOption) => React.ReactNode;
|
|
101
|
+
};
|
|
102
|
+
/** Extra props for the native `<input type="file">` element used in `image` inputs */
|
|
103
|
+
image?: Omit<React.InputHTMLAttributes<HTMLInputElement>, 'ref' | 'type' | 'multiple' | 'onChange' | 'disabled' | 'style'>;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Props shared by the built-in input controls rendered inside SToolBar
|
|
107
|
+
*/
|
|
108
|
+
export interface SToolBarInputControlProps {
|
|
109
|
+
/** Input configuration */
|
|
110
|
+
input: SToolBarInput;
|
|
111
|
+
/** Current value of the input */
|
|
112
|
+
value: SToolBarValue;
|
|
113
|
+
/** Callback when the value changes */
|
|
114
|
+
onChange: (value: SToolBarValue) => void;
|
|
115
|
+
/** Callback when the input gains focus */
|
|
116
|
+
onFocus: () => void;
|
|
117
|
+
/** Callback when the input loses focus */
|
|
118
|
+
onBlur: () => void;
|
|
119
|
+
/** Whether the input is disabled */
|
|
120
|
+
disabled?: boolean;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Props interface for SToolBar component
|
|
124
|
+
*/
|
|
125
|
+
export interface SToolBarProps {
|
|
126
|
+
/** Configuration for input fields */
|
|
127
|
+
inputs?: SToolBarInput[];
|
|
128
|
+
/** Callback when process button is clicked */
|
|
129
|
+
onProcess?: () => void;
|
|
130
|
+
/** Callback when reset button is clicked */
|
|
131
|
+
onReset?: () => void;
|
|
132
|
+
/** Callback when download button is clicked */
|
|
133
|
+
onDownload?: () => void;
|
|
134
|
+
/** Whether the toolbar is in processing state */
|
|
135
|
+
processing?: boolean;
|
|
136
|
+
/** Whether the toolbar is in uploading state */
|
|
137
|
+
uploading?: boolean;
|
|
138
|
+
/** Input values controlled externally */
|
|
139
|
+
inputValues?: Record<string, SToolBarValue>;
|
|
140
|
+
/** Callback when input values change */
|
|
141
|
+
onInputChange?: (key: string, value: SToolBarValue, file?: File) => void;
|
|
142
|
+
/** Custom action buttons between inputs and standard actions */
|
|
143
|
+
customActionButtons?: React.ReactNode;
|
|
144
|
+
/** Hide the main process button */
|
|
145
|
+
hideProcessButton?: boolean;
|
|
146
|
+
/** Override to disable the process button */
|
|
147
|
+
processButtonDisabled?: boolean;
|
|
148
|
+
/** Function to check if an input should be disabled */
|
|
149
|
+
getInputDisabled?: (inputKey: string) => boolean;
|
|
150
|
+
/** Tooltip for process button */
|
|
151
|
+
processTooltip?: string;
|
|
152
|
+
/** Tooltip for download button */
|
|
153
|
+
downloadTooltip?: string;
|
|
154
|
+
/** Tooltip for reset button */
|
|
155
|
+
resetTooltip?: string;
|
|
156
|
+
/** Tooltip for info button */
|
|
157
|
+
infoTooltip?: string;
|
|
158
|
+
/** Info dialog title */
|
|
159
|
+
infoTitle?: string;
|
|
160
|
+
/** Info dialog content */
|
|
161
|
+
infoContent?: React.ReactNode;
|
|
162
|
+
/** Position of the toolbar */
|
|
163
|
+
position?: 'bottom' | 'top';
|
|
164
|
+
/** Use relative positioning within container instead of fixed viewport positioning */
|
|
165
|
+
relative?: boolean;
|
|
166
|
+
/** Custom styles for the outer container (wrapper) */
|
|
167
|
+
containerSx?: SxProps<Theme>;
|
|
168
|
+
/** Custom styles for the inner toolbar box */
|
|
169
|
+
sx?: SxProps<Theme>;
|
|
170
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SToolBarInput, SToolBarValue } from './types';
|
|
2
|
+
export declare function isRequiredInputFilled(input: SToolBarInput, value: SToolBarValue): boolean;
|
|
3
|
+
export declare function getImageInputFiles(value: SToolBarValue): Array<string | File>;
|
|
4
|
+
export declare function groupInputsByType(inputs: SToolBarInput[]): {
|
|
5
|
+
imageInputs: SToolBarInput[];
|
|
6
|
+
textareaInputs: SToolBarInput[];
|
|
7
|
+
paramInputs: SToolBarInput[];
|
|
8
|
+
};
|
|
9
|
+
export declare function hasVisibleInputSection(imageInputs: SToolBarInput[], paramInputs: SToolBarInput[]): boolean;
|
|
10
|
+
export declare function isProcessActionDisabled(processButtonDisabled: boolean, areRequiredInputsFilled: boolean, uploading: boolean, processing: boolean): boolean;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region lib/s-tool-bar/utils.ts
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
return e.required ? e.type === "textarea" ? typeof t == "string" && t.trim() !== "" : e.type === "number" || e.type === "slider" ? t != null : e.type === "select" ? t != null && t !== "" : !0 : !0;
|
|
4
|
+
}
|
|
5
|
+
function t(e) {
|
|
6
|
+
return Array.isArray(e) ? e : e instanceof File || typeof e == "string" ? [e] : [];
|
|
7
|
+
}
|
|
8
|
+
function n(e) {
|
|
9
|
+
return e.reduce((e, t) => (t.type === "image" ? e.imageInputs.push(t) : t.type === "textarea" ? e.textareaInputs.push(t) : e.paramInputs.push(t), e), {
|
|
10
|
+
imageInputs: [],
|
|
11
|
+
textareaInputs: [],
|
|
12
|
+
paramInputs: []
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function r(e, t) {
|
|
16
|
+
return e.length > 0 || t.length > 0;
|
|
17
|
+
}
|
|
18
|
+
function i(e, t, n, r) {
|
|
19
|
+
return e || !t || n || r;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { t as getImageInputFiles, n as groupInputsByType, r as hasVisibleInputSection, i as isProcessActionDisabled, e as isRequiredInputFilled };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { t as e } from "./generateUtilityClasses-XrPHiTcM.js";
|
|
2
|
+
//#region ../../node_modules/@mui/material/Switch/switchClasses.mjs
|
|
3
|
+
var t = e("MuiSwitch", [
|
|
4
|
+
"root",
|
|
5
|
+
"edgeStart",
|
|
6
|
+
"edgeEnd",
|
|
7
|
+
"switchBase",
|
|
8
|
+
"colorPrimary",
|
|
9
|
+
"colorSecondary",
|
|
10
|
+
"sizeSmall",
|
|
11
|
+
"sizeMedium",
|
|
12
|
+
"checked",
|
|
13
|
+
"disabled",
|
|
14
|
+
"input",
|
|
15
|
+
"thumb",
|
|
16
|
+
"track"
|
|
17
|
+
]), n = {
|
|
18
|
+
defaultProps: { disableRipple: !0 },
|
|
19
|
+
styleOverrides: { root: ({ theme: e }) => {
|
|
20
|
+
let n = (e.vars ?? e).palette;
|
|
21
|
+
return {
|
|
22
|
+
[`& .${t.track}`]: {
|
|
23
|
+
backgroundColor: n.grey[400],
|
|
24
|
+
opacity: 1
|
|
25
|
+
},
|
|
26
|
+
[`& .${t.switchBase}`]: {
|
|
27
|
+
color: n.common.white,
|
|
28
|
+
[`&.${t.checked}`]: {
|
|
29
|
+
color: n.primary.main,
|
|
30
|
+
"&:hover": { color: n.primary.dark },
|
|
31
|
+
[`& + .${t.track}`]: {
|
|
32
|
+
backgroundColor: n.primary.main,
|
|
33
|
+
opacity: .5
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
[`&.Mui-focusVisible .${t.thumb}`]: {
|
|
37
|
+
outline: `3px solid rgba(${n.primary.mainChannel} / 0.5)`,
|
|
38
|
+
outlineOffset: "2px"
|
|
39
|
+
},
|
|
40
|
+
[`&.${t.disabled}, &.${t.checked}.${t.disabled}`]: {
|
|
41
|
+
color: n.grey[100],
|
|
42
|
+
[`& + .${t.track}`]: {
|
|
43
|
+
backgroundColor: n.grey[300],
|
|
44
|
+
opacity: 1
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
...e.applyStyles("dark", {
|
|
49
|
+
[`& .${t.track}`]: { backgroundColor: n.grey[600] },
|
|
50
|
+
[`& .${t.switchBase}`]: {
|
|
51
|
+
color: n.grey[300],
|
|
52
|
+
[`&.${t.disabled}, &.${t.checked}.${t.disabled}`]: {
|
|
53
|
+
color: n.grey[600],
|
|
54
|
+
[`& + .${t.track}`]: { backgroundColor: n.grey[700] }
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
})
|
|
58
|
+
};
|
|
59
|
+
} }
|
|
60
|
+
};
|
|
61
|
+
//#endregion
|
|
62
|
+
export { n as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as e } from "../../theme-primitives-CiQYd9Cc.js";
|
|
2
2
|
//#region lib/theme/components/accordion-summary.tsx
|
|
3
3
|
var t = { styleOverrides: { root: ({ theme: t }) => ({
|
|
4
4
|
border: "none",
|
|
5
|
-
borderRadius:
|
|
5
|
+
borderRadius: (t.vars ?? t).shape.borderRadius,
|
|
6
6
|
"&:hover": { backgroundColor: e[50] },
|
|
7
7
|
"&:focus-visible": { backgroundColor: "transparent" },
|
|
8
8
|
...t.applyStyles("dark", { "&:hover": { backgroundColor: e[800] } })
|
|
@@ -8,7 +8,7 @@ var e = { styleOverrides: { root: ({ theme: e, ownerState: t }) => ({
|
|
|
8
8
|
borderRadius: (e.vars ?? e).shape.borderRadius,
|
|
9
9
|
":before": { backgroundColor: "transparent" },
|
|
10
10
|
...t.disableGutters ? {
|
|
11
|
-
borderRadius:
|
|
11
|
+
borderRadius: e.radius.none,
|
|
12
12
|
"&:not(:last-of-type)": { borderBottom: "none" },
|
|
13
13
|
"&:first-of-type": {
|
|
14
14
|
borderTopLeftRadius: (e.vars ?? e).shape.borderRadius,
|
|
@@ -13,7 +13,7 @@ var e = (e, t) => {
|
|
|
13
13
|
...e.applyStyles("dark", { backgroundColor: n[700] })
|
|
14
14
|
};
|
|
15
15
|
}, t = { styleOverrides: { root: ({ theme: t }) => ({
|
|
16
|
-
borderRadius:
|
|
16
|
+
borderRadius: (t.vars ?? t).shape.borderRadius,
|
|
17
17
|
"& .MuiAlert-action .MuiIconButton-root": {
|
|
18
18
|
fontSize: "1.25rem",
|
|
19
19
|
"& svg": { fontSize: "1.25rem" }
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../autocomplete-
|
|
1
|
+
import { t as e } from "../../autocomplete-Dd4zjpaF.js";
|
|
2
2
|
export { e as MuiAutocomplete };
|
|
@@ -1,9 +1,18 @@
|
|
|
1
|
+
import { Theme } from '../types';
|
|
1
2
|
export declare const MuiAvatar: {
|
|
2
3
|
defaultProps: {
|
|
3
4
|
children: import("react/jsx-runtime").JSX.Element;
|
|
4
5
|
};
|
|
5
6
|
styleOverrides: {
|
|
6
|
-
rounded: {
|
|
7
|
+
rounded: ({ theme }: import('@mui/material').AvatarOwnProps & import('@mui/material').AvatarSlotsAndSlotProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "classes" | "children" | "sx" | "variant" | "slots" | "slotProps" | "alt" | "src" | "sizes" | "srcSet"> & {
|
|
8
|
+
component?: React.ElementType | undefined;
|
|
9
|
+
} & Record<string, unknown> & {
|
|
10
|
+
ownerState: import('@mui/material').AvatarOwnProps & import('@mui/material').AvatarSlotsAndSlotProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "className" | "style" | "classes" | "children" | "sx" | "variant" | "slots" | "slotProps" | "alt" | "src" | "sizes" | "srcSet"> & {
|
|
11
|
+
component?: React.ElementType | undefined;
|
|
12
|
+
} & Record<string, unknown>;
|
|
13
|
+
} & {
|
|
14
|
+
theme: Theme;
|
|
15
|
+
}) => {
|
|
7
16
|
borderRadius: number;
|
|
8
17
|
};
|
|
9
18
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../avatar-
|
|
1
|
+
import { t as e } from "../../avatar-DFQ5F7pY.js";
|
|
2
2
|
export { e as MuiAvatar };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { i as e } from "../../createTheme-Bnw5w28O.js";
|
|
2
|
-
import {
|
|
2
|
+
import { c as t, f as n } from "../../theme-primitives-CiQYd9Cc.js";
|
|
3
3
|
//#region lib/theme/components/card.tsx
|
|
4
4
|
var r = { styleOverrides: { root: ({ theme: r }) => ({
|
|
5
5
|
gap: 16,
|
|
6
6
|
transition: "all 100ms ease",
|
|
7
|
-
backgroundColor:
|
|
7
|
+
backgroundColor: n[100],
|
|
8
8
|
borderRadius: (r.vars ?? r).shape.borderRadius,
|
|
9
9
|
border: `1px solid ${(r.vars ?? r).palette.divider}`,
|
|
10
10
|
boxShadow: "none",
|
|
11
|
-
...r.applyStyles("dark", { backgroundColor:
|
|
11
|
+
...r.applyStyles("dark", { backgroundColor: t[800] }),
|
|
12
12
|
variants: [{
|
|
13
13
|
props: { variant: "outlined" },
|
|
14
14
|
style: {
|
|
15
15
|
border: `1px solid ${(r.vars ?? r).palette.divider}`,
|
|
16
16
|
boxShadow: "none",
|
|
17
17
|
background: "rgb(255, 255, 255)",
|
|
18
|
-
...r.applyStyles("dark", { background: e(
|
|
18
|
+
...r.applyStyles("dark", { background: e(t[900], .4) })
|
|
19
19
|
}
|
|
20
20
|
}]
|
|
21
21
|
}) } };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../checkbox-
|
|
1
|
+
import { t as e } from "../../checkbox-B5GlJYcB.js";
|
|
2
2
|
export { e as MuiCheckbox };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../../Close-
|
|
1
|
+
import { t as e } from "../../Close-CJu3iF1p.js";
|
|
2
2
|
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import { chipClasses as n } from "@mui/material";
|
|
4
4
|
//#region lib/theme/components/chip.tsx
|
|
@@ -10,9 +10,13 @@ var r = (e, t) => {
|
|
|
10
10
|
return {
|
|
11
11
|
border: "none",
|
|
12
12
|
backgroundColor: i[800],
|
|
13
|
+
color: i[50],
|
|
13
14
|
[`& .${n.label}`]: { color: i[50] },
|
|
14
15
|
[`& .${n.icon}`]: { color: i[300] },
|
|
15
|
-
...e.applyStyles("dark", {
|
|
16
|
+
...e.applyStyles("dark", {
|
|
17
|
+
color: i[200],
|
|
18
|
+
[`& .${n.label}`]: { color: i[200] }
|
|
19
|
+
})
|
|
16
20
|
};
|
|
17
21
|
}, a = (e, t) => {
|
|
18
22
|
let i = r(e, t);
|
|
@@ -22,13 +26,13 @@ var r = (e, t) => {
|
|
|
22
26
|
color: i[800],
|
|
23
27
|
[`& .${n.label}`]: { color: i[800] },
|
|
24
28
|
[`& .${n.icon}`]: { color: i[800] },
|
|
25
|
-
[`& .${n.deleteIcon}`]: { color:
|
|
29
|
+
[`& .${n.deleteIcon}`]: { color: "inherit" },
|
|
26
30
|
...e.applyStyles("dark", {
|
|
27
31
|
borderColor: i[400],
|
|
28
32
|
color: i[300],
|
|
29
33
|
[`& .${n.label}`]: { color: i[300] },
|
|
30
34
|
[`& .${n.icon}`]: { color: i[300] },
|
|
31
|
-
[`& .${n.deleteIcon}`]: { color:
|
|
35
|
+
[`& .${n.deleteIcon}`]: { color: "inherit" }
|
|
32
36
|
})
|
|
33
37
|
};
|
|
34
38
|
}, o = {
|
|
@@ -39,7 +43,7 @@ var r = (e, t) => {
|
|
|
39
43
|
},
|
|
40
44
|
styleOverrides: { root: ({ theme: e }) => ({
|
|
41
45
|
border: "1px solid",
|
|
42
|
-
borderRadius:
|
|
46
|
+
borderRadius: e.radius.full,
|
|
43
47
|
[`& .${n.label}`]: { fontWeight: 500 },
|
|
44
48
|
[`&.${n.sizeSmall}`]: { height: 28 },
|
|
45
49
|
[`&.${n.sizeSmall} .${n.label}`]: { paddingInline: 12 },
|
|
@@ -52,8 +56,15 @@ var r = (e, t) => {
|
|
|
52
56
|
marginLeft: 8
|
|
53
57
|
},
|
|
54
58
|
[`& .${n.deleteIcon}`]: {
|
|
59
|
+
color: "inherit",
|
|
60
|
+
display: "block",
|
|
61
|
+
flexShrink: 0,
|
|
62
|
+
fontSize: "0.875rem",
|
|
63
|
+
lineHeight: 0,
|
|
55
64
|
marginLeft: -8,
|
|
56
|
-
marginRight: 8
|
|
65
|
+
marginRight: 8,
|
|
66
|
+
transform: "translateY(1px)",
|
|
67
|
+
"&:hover, &:active": { color: "inherit" }
|
|
57
68
|
},
|
|
58
69
|
variants: [
|
|
59
70
|
{
|