@solostylist/ui-kit 1.0.225 → 1.0.226
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-DONVUi9Q.js} +1 -1
- package/dist/{ButtonBase-Bo6ysVGS.js → ButtonBase-BDefit5I.js} +100 -99
- package/dist/{ChevronRight-OLNOfW9P.js → ChevronRight-cBbrlMYh.js} +1 -1
- package/dist/{Close-Bj2HYB9Q.js → Close-DRS0T6Yu.js} +1 -1
- package/dist/{Collapse-CnXmaDqT.js → Collapse-Dtji6IrM.js} +4 -3
- package/dist/{ContentCopy-Br2p19dq.js → ContentCopy-C4mVqexq.js} +1 -1
- package/dist/{Download-BhSXOhCI.js → Download-D277qwl2.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-DMZWdEWz.js} +6 -6
- package/dist/{InfoOutlined-C1AW3f5V.js → InfoOutlined-BCzG-5py.js} +1 -1
- package/dist/{Menu-C-0KEauj.js → Menu-CbHevx8q.js} +20 -20
- package/dist/{MenuItem-DWivWkNb.js → MenuItem-CCClg9Si.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-Cy7rReyx.js} +1 -1
- package/dist/{Typography-EsraKPZO.js → Typography-DqtTB0ZJ.js} +2 -2
- package/dist/{UnfoldMoreRounded-pz7NMMy3.js → UnfoldMoreRounded-Cbt8Oi8S.js} +1 -1
- package/dist/{autocomplete-qLj7AqcP.js → autocomplete-Du0flrk6.js} +1 -1
- package/dist/{avatar-BuMhUthq.js → avatar-DQtjHpOs.js} +2 -2
- package/dist/{checkbox-B95Vlykq.js → checkbox-BGA2cVbl.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-C1jHkjgt.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-D2VsBSgb.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-S6CRrrpW.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-DNptuBb0.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-Bsvsh45G.js} +4 -6
- 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-CH0zKaz-.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-ByNQ4Zq5.js} +1 -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-DF580Qxk.js} +13 -19
- package/dist/s-copyable-text/s-copyable-text.js +1 -1
- 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-B8llaX-A.js} +9 -9
- 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-CLncO3oo.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-Dy1fX3rI.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-CbaOf3_3.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-hhRD4727.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-BKK0r8Kh.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-DDO9UEu_.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-f0OI1oqM.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-BqWS_5Bs.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-DrQ8v-4J.js} +45 -44
- 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-DLSDoq7u.js} +20 -19
- 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-DeY0K6MC.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-B0KHb2wu.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-Beuy9MLR.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/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 +134 -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 +27 -0
- package/dist/theme/components/month-calendar.js +14 -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/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 +36 -0
- package/dist/theme/components/year-calendar.js +17 -0
- package/dist/theme/theme-primitives.d.ts +36 -0
- package/dist/theme/theme-primitives.js +2 -2
- package/dist/{theme-primitives-D2vHHGiX.js → theme-primitives-7ruiI7gY.js} +10 -3
- package/dist/{toggle-button-group-ABwIhV4P.js → toggle-button-group-Dx9fvVok.js} +4 -4
- package/dist/{toggle-button-BUsRxHn0.js → toggle-button-j6VLaPoa.js} +3 -3
- package/dist/tool-bar-action-buttons-B4QhqdK_.js +50 -0
- package/dist/tool-bar-image-input-BKFAtyJ1.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-C8toWhEP.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-DPzQcJz-.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-BfRVjiBm.js} +0 -0
- /package/dist/{iconButtonClasses-9jjSQ9-U.js → iconButtonClasses-LyjwljJq.js} +0 -0
- /package/dist/{inputAdornmentClasses-VKwluNTs.js → inputAdornmentClasses-DHmz00nZ.js} +0 -0
- /package/dist/{objectWithoutPropertiesLoose-BpY-kC5L.js → objectWithoutPropertiesLoose-kj3TmhoA.js} +0 -0
- /package/dist/{outlinedInputClasses-Cz4pnn0X.js → outlinedInputClasses-Z5R6RJE3.js} +0 -0
- /package/dist/{selectClasses-DvT1febA.js → selectClasses-vjNpSSyQ.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-CspzYrIn.js} +0 -0
- /package/dist/{useControlled-2-C6cXjG.js → useControlled-DuSwFVhD.js} +0 -0
- /package/dist/{useFormControl-B4z6ONhx.js → useFormControl-bYnTwZE5.js} +0 -0
|
@@ -1,454 +0,0 @@
|
|
|
1
|
-
import { tint as e } from "./theme/utils.js";
|
|
2
|
-
import { t } from "./createSvgIcon-BdNZIlKS.js";
|
|
3
|
-
import { t as n } from "./Close-Bj2HYB9Q.js";
|
|
4
|
-
import { t as r } from "./Download-BhSXOhCI.js";
|
|
5
|
-
import { t as i } from "./InfoOutlined-C1AW3f5V.js";
|
|
6
|
-
import { t as a } from "./s-select-B-dEcddK.js";
|
|
7
|
-
import o, { useCallback as s, useEffect as c, useMemo as l, useState as u } from "react";
|
|
8
|
-
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
9
|
-
import { createPortal as p } from "react-dom";
|
|
10
|
-
import { Box as m, Checkbox as h, Dialog as g, DialogContent as _, DialogTitle as v, Divider as y, IconButton as b, Slider as x, TextField as S, Tooltip as C, Typography as w } from "@mui/material";
|
|
11
|
-
//#region ../../node_modules/@mui/icons-material/AddPhotoAlternate.mjs
|
|
12
|
-
var T = t(/* @__PURE__ */ d("path", { d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z" }), "AddPhotoAlternate"), E = t(/* @__PURE__ */ d("path", { d: "m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z" }), "AutoAwesome"), D = t(/* @__PURE__ */ d("path", { d: "M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26" }), "Autorenew"), O = o.memo(({ input: e, value: t, onChange: n, onFocus: r, onBlur: i, disabled: a }) => /* @__PURE__ */ d(S, {
|
|
13
|
-
value: t,
|
|
14
|
-
onChange: (e) => n(e.target.value),
|
|
15
|
-
onFocus: r,
|
|
16
|
-
onBlur: i,
|
|
17
|
-
placeholder: e.placeholder ?? e.label,
|
|
18
|
-
disabled: a,
|
|
19
|
-
multiline: !0,
|
|
20
|
-
minRows: e.minRows ?? 2,
|
|
21
|
-
maxRows: e.maxRows ?? 5,
|
|
22
|
-
fullWidth: !0,
|
|
23
|
-
...e.componentProps?.textarea ?? {}
|
|
24
|
-
})), k = o.memo((e) => /* @__PURE__ */ d(w, {
|
|
25
|
-
variant: "caption",
|
|
26
|
-
sx: {
|
|
27
|
-
whiteSpace: "nowrap",
|
|
28
|
-
overflow: "hidden",
|
|
29
|
-
textOverflow: "ellipsis",
|
|
30
|
-
width: "100% !important",
|
|
31
|
-
textAlign: "center"
|
|
32
|
-
},
|
|
33
|
-
children: e.label
|
|
34
|
-
})), A = o.memo(({ input: e, value: t, onChange: n, onFocus: r, onBlur: i, disabled: a }) => /* @__PURE__ */ f(m, {
|
|
35
|
-
sx: {
|
|
36
|
-
width: 120,
|
|
37
|
-
display: "flex",
|
|
38
|
-
flexDirection: "column"
|
|
39
|
-
},
|
|
40
|
-
children: [/* @__PURE__ */ d(k, { label: e.label }), /* @__PURE__ */ d(S, {
|
|
41
|
-
type: "number",
|
|
42
|
-
value: t ?? e.defaultValue ?? 0,
|
|
43
|
-
onChange: (e) => n(Number(e.target.value)),
|
|
44
|
-
onFocus: r,
|
|
45
|
-
onBlur: i,
|
|
46
|
-
disabled: a,
|
|
47
|
-
slotProps: { htmlInput: {
|
|
48
|
-
min: e.min,
|
|
49
|
-
max: e.max,
|
|
50
|
-
step: e.step
|
|
51
|
-
} },
|
|
52
|
-
sx: { "& input": { textAlign: "center" } },
|
|
53
|
-
...e.componentProps?.number ?? {}
|
|
54
|
-
})]
|
|
55
|
-
})), j = o.memo(({ input: e, value: t, onChange: n, onFocus: r, onBlur: i, disabled: o }) => /* @__PURE__ */ f(m, {
|
|
56
|
-
sx: {
|
|
57
|
-
width: 180,
|
|
58
|
-
display: "flex",
|
|
59
|
-
flexDirection: "column"
|
|
60
|
-
},
|
|
61
|
-
children: [/* @__PURE__ */ d(k, { label: e.label }), /* @__PURE__ */ d(a, {
|
|
62
|
-
value: t ?? e.defaultValue ?? "",
|
|
63
|
-
onChange: (e) => n(e.target.value),
|
|
64
|
-
onFocus: r,
|
|
65
|
-
onBlur: i,
|
|
66
|
-
disabled: o,
|
|
67
|
-
placeholder: e.placeholder,
|
|
68
|
-
options: e.options ?? [],
|
|
69
|
-
optionLabel: e.optionLabel,
|
|
70
|
-
optionValue: e.optionValue,
|
|
71
|
-
searchable: e.searchable,
|
|
72
|
-
searchPlaceholder: e.searchPlaceholder,
|
|
73
|
-
...e.componentProps?.select ?? {}
|
|
74
|
-
})]
|
|
75
|
-
})), M = o.memo(({ input: e, value: t, onChange: n, onFocus: r, onBlur: i, disabled: a }) => /* @__PURE__ */ f(m, {
|
|
76
|
-
sx: {
|
|
77
|
-
width: 160,
|
|
78
|
-
display: "flex",
|
|
79
|
-
flexDirection: "column"
|
|
80
|
-
},
|
|
81
|
-
children: [/* @__PURE__ */ d(k, { label: e.label }), /* @__PURE__ */ f(m, {
|
|
82
|
-
sx: {
|
|
83
|
-
display: "flex",
|
|
84
|
-
alignItems: "center",
|
|
85
|
-
height: 36
|
|
86
|
-
},
|
|
87
|
-
children: [/* @__PURE__ */ d(x, {
|
|
88
|
-
value: t ?? e.defaultValue ?? e.min ?? 0,
|
|
89
|
-
onChange: (e, t) => n(t),
|
|
90
|
-
onMouseDown: r,
|
|
91
|
-
onMouseUp: i,
|
|
92
|
-
disabled: a,
|
|
93
|
-
min: e.min ?? 0,
|
|
94
|
-
max: e.max ?? 100,
|
|
95
|
-
step: e.step ?? 1,
|
|
96
|
-
sx: { flex: 1 },
|
|
97
|
-
...e.componentProps?.slider ?? {}
|
|
98
|
-
}), /* @__PURE__ */ d(m, {
|
|
99
|
-
sx: {
|
|
100
|
-
minWidth: 60,
|
|
101
|
-
textAlign: "center",
|
|
102
|
-
fontWeight: 500,
|
|
103
|
-
fontSize: "0.875rem"
|
|
104
|
-
},
|
|
105
|
-
children: t ?? e.defaultValue ?? e.min ?? 0
|
|
106
|
-
})]
|
|
107
|
-
})]
|
|
108
|
-
})), N = o.memo(({ input: e, value: t, onChange: r, disabled: i }) => {
|
|
109
|
-
let a = o.useRef(null), [s, l] = o.useState([]), [u, p] = o.useState(null), h = e.multiple ?? !1, g = e.maxImages ?? 5;
|
|
110
|
-
c(() => {
|
|
111
|
-
let e = [];
|
|
112
|
-
return l(((t) => {
|
|
113
|
-
if (!t) return [];
|
|
114
|
-
let n = Array.isArray(t) ? t : [t], r = [], i = /* @__PURE__ */ new Map();
|
|
115
|
-
return n.forEach((t) => {
|
|
116
|
-
if (t instanceof File) {
|
|
117
|
-
let n = URL.createObjectURL(t);
|
|
118
|
-
e.push(n);
|
|
119
|
-
let a = `file:${t.name}:${t.size}:${t.lastModified}`, o = i.get(a) ?? 0;
|
|
120
|
-
i.set(a, o + 1), r.push({
|
|
121
|
-
key: o > 0 ? `${a}:${o}` : a,
|
|
122
|
-
src: n
|
|
123
|
-
});
|
|
124
|
-
} else if (typeof t == "string") {
|
|
125
|
-
let e = `url:${t}`, n = i.get(e) ?? 0;
|
|
126
|
-
i.set(e, n + 1), r.push({
|
|
127
|
-
key: n > 0 ? `${e}:${n}` : e,
|
|
128
|
-
src: t
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
}), r;
|
|
132
|
-
})(t)), () => {
|
|
133
|
-
e.forEach((e) => URL.revokeObjectURL(e));
|
|
134
|
-
};
|
|
135
|
-
}, [t]);
|
|
136
|
-
let _ = (e) => {
|
|
137
|
-
let n = e.target.files;
|
|
138
|
-
if (!(!n || n.length === 0)) {
|
|
139
|
-
if (h) {
|
|
140
|
-
let e = I(t), i = Array.from(n).slice(0, g - e.length);
|
|
141
|
-
r([...e, ...i]);
|
|
142
|
-
} else r(n[0]);
|
|
143
|
-
e.target.value = "";
|
|
144
|
-
}
|
|
145
|
-
}, v = (e, n) => {
|
|
146
|
-
if (e.stopPropagation(), h && Array.isArray(t)) {
|
|
147
|
-
let e = t.filter((e, t) => t !== n);
|
|
148
|
-
r(e.length > 0 ? e : null);
|
|
149
|
-
} else r(null);
|
|
150
|
-
}, y = () => {
|
|
151
|
-
i || h && s.length >= g || a.current?.click();
|
|
152
|
-
}, x = h && s.length < g;
|
|
153
|
-
return /* @__PURE__ */ f(m, {
|
|
154
|
-
sx: {
|
|
155
|
-
display: "flex",
|
|
156
|
-
alignItems: "center",
|
|
157
|
-
gap: .75
|
|
158
|
-
},
|
|
159
|
-
children: [
|
|
160
|
-
/* @__PURE__ */ d("input", {
|
|
161
|
-
ref: a,
|
|
162
|
-
type: "file",
|
|
163
|
-
accept: "image/*",
|
|
164
|
-
multiple: h,
|
|
165
|
-
onChange: _,
|
|
166
|
-
disabled: i,
|
|
167
|
-
style: { display: "none" },
|
|
168
|
-
...e.componentProps?.image ?? {}
|
|
169
|
-
}),
|
|
170
|
-
s.map((e, t) => /* @__PURE__ */ f(m, {
|
|
171
|
-
onMouseEnter: () => p(t),
|
|
172
|
-
onMouseLeave: () => p(null),
|
|
173
|
-
sx: {
|
|
174
|
-
width: 50,
|
|
175
|
-
height: 50,
|
|
176
|
-
border: 1,
|
|
177
|
-
borderColor: i ? "action.disabled" : "divider",
|
|
178
|
-
borderRadius: 1,
|
|
179
|
-
display: "flex",
|
|
180
|
-
alignItems: "center",
|
|
181
|
-
justifyContent: "center",
|
|
182
|
-
cursor: i ? "not-allowed" : "default",
|
|
183
|
-
position: "relative",
|
|
184
|
-
overflow: "hidden",
|
|
185
|
-
transition: "all 0.2s"
|
|
186
|
-
},
|
|
187
|
-
children: [/* @__PURE__ */ d(m, {
|
|
188
|
-
component: "img",
|
|
189
|
-
src: e.src,
|
|
190
|
-
alt: `Preview ${t + 1}`,
|
|
191
|
-
sx: {
|
|
192
|
-
width: "100%",
|
|
193
|
-
height: "100%",
|
|
194
|
-
objectFit: "cover"
|
|
195
|
-
}
|
|
196
|
-
}), !i && u === t && /* @__PURE__ */ d(m, {
|
|
197
|
-
onClick: (e) => v(e, t),
|
|
198
|
-
sx: {
|
|
199
|
-
position: "absolute",
|
|
200
|
-
top: 0,
|
|
201
|
-
left: 0,
|
|
202
|
-
right: 0,
|
|
203
|
-
bottom: 0,
|
|
204
|
-
display: "flex",
|
|
205
|
-
alignItems: "center",
|
|
206
|
-
justifyContent: "center"
|
|
207
|
-
},
|
|
208
|
-
children: /* @__PURE__ */ d(b, {
|
|
209
|
-
onClick: (e) => v(e, t),
|
|
210
|
-
children: /* @__PURE__ */ d(n, {})
|
|
211
|
-
})
|
|
212
|
-
})]
|
|
213
|
-
}, e.key)),
|
|
214
|
-
(s.length === 0 || x) && /* @__PURE__ */ d(m, {
|
|
215
|
-
onClick: y,
|
|
216
|
-
sx: {
|
|
217
|
-
width: 50,
|
|
218
|
-
height: 50,
|
|
219
|
-
border: 1,
|
|
220
|
-
borderColor: i ? "action.disabled" : "divider",
|
|
221
|
-
borderRadius: 1,
|
|
222
|
-
display: "flex",
|
|
223
|
-
alignItems: "center",
|
|
224
|
-
justifyContent: "center",
|
|
225
|
-
cursor: i ? "not-allowed" : "pointer",
|
|
226
|
-
transition: "all 0.2s",
|
|
227
|
-
"&:hover": { bgcolor: "action.hover" }
|
|
228
|
-
},
|
|
229
|
-
children: /* @__PURE__ */ d(T, { sx: {
|
|
230
|
-
fontSize: 20,
|
|
231
|
-
color: i ? "action.disabled" : "divider"
|
|
232
|
-
} })
|
|
233
|
-
})
|
|
234
|
-
]
|
|
235
|
-
});
|
|
236
|
-
}), P = o.memo(({ input: e, value: t, onChange: n, onFocus: r, onBlur: i, disabled: a }) => /* @__PURE__ */ f(m, {
|
|
237
|
-
sx: {
|
|
238
|
-
display: "flex",
|
|
239
|
-
flexDirection: "column",
|
|
240
|
-
alignItems: "center",
|
|
241
|
-
minWidth: 60
|
|
242
|
-
},
|
|
243
|
-
children: [/* @__PURE__ */ d(k, { label: e.label }), /* @__PURE__ */ d(h, {
|
|
244
|
-
checked: t ?? e.defaultValue ?? !1,
|
|
245
|
-
onChange: (e) => n(e.target.checked),
|
|
246
|
-
onFocus: r,
|
|
247
|
-
onBlur: i,
|
|
248
|
-
disabled: a,
|
|
249
|
-
...e.componentProps?.checkbox ?? {}
|
|
250
|
-
})]
|
|
251
|
-
}));
|
|
252
|
-
function F(e, t) {
|
|
253
|
-
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;
|
|
254
|
-
}
|
|
255
|
-
function I(e) {
|
|
256
|
-
return Array.isArray(e) ? e : e instanceof File || typeof e == "string" ? [e] : [];
|
|
257
|
-
}
|
|
258
|
-
function L(e) {
|
|
259
|
-
return e.reduce((e, t) => (t.type === "image" ? e.imageInputs.push(t) : t.type === "textarea" ? e.textareaInputs.push(t) : e.paramInputs.push(t), e), {
|
|
260
|
-
imageInputs: [],
|
|
261
|
-
textareaInputs: [],
|
|
262
|
-
paramInputs: []
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
function R(e, t) {
|
|
266
|
-
return e.length > 0 || t.length > 0;
|
|
267
|
-
}
|
|
268
|
-
function z(e, t, n, r) {
|
|
269
|
-
return e || !t || n || r;
|
|
270
|
-
}
|
|
271
|
-
var B = (e) => {
|
|
272
|
-
switch (e.input.type) {
|
|
273
|
-
case "textarea": return /* @__PURE__ */ d(O, { ...e });
|
|
274
|
-
case "number": return /* @__PURE__ */ d(A, { ...e });
|
|
275
|
-
case "slider": return /* @__PURE__ */ d(M, { ...e });
|
|
276
|
-
case "select": return /* @__PURE__ */ d(j, { ...e });
|
|
277
|
-
case "image": return /* @__PURE__ */ d(N, {
|
|
278
|
-
input: e.input,
|
|
279
|
-
value: e.value,
|
|
280
|
-
onChange: e.onChange,
|
|
281
|
-
disabled: e.disabled
|
|
282
|
-
});
|
|
283
|
-
case "checkbox": return /* @__PURE__ */ d(P, { ...e });
|
|
284
|
-
default: return null;
|
|
285
|
-
}
|
|
286
|
-
}, V = o.memo(({ input: e, value: t, disabled: n, onChange: r, onFocus: i, onBlur: a }) => e.renderInput ? /* @__PURE__ */ d(m, { children: e.renderInput({
|
|
287
|
-
value: t,
|
|
288
|
-
onChange: r,
|
|
289
|
-
onFocus: i,
|
|
290
|
-
onBlur: a,
|
|
291
|
-
disabled: n
|
|
292
|
-
}) }) : /* @__PURE__ */ d(B, {
|
|
293
|
-
input: e,
|
|
294
|
-
value: t,
|
|
295
|
-
onChange: r,
|
|
296
|
-
onFocus: i,
|
|
297
|
-
onBlur: a,
|
|
298
|
-
disabled: n
|
|
299
|
-
})), H = o.memo(({ customActionButtons: e, infoContent: t, infoTooltip: n, downloadTooltip: a, resetTooltip: o, processTooltip: s, hideProcessButton: c, processActionDisabled: l, onInfoOpen: u, onDownload: p, onReset: h, onProcess: g }) => /* @__PURE__ */ f(m, {
|
|
300
|
-
sx: {
|
|
301
|
-
display: "flex",
|
|
302
|
-
alignItems: "center",
|
|
303
|
-
gap: 1,
|
|
304
|
-
ml: "auto"
|
|
305
|
-
},
|
|
306
|
-
children: [
|
|
307
|
-
e,
|
|
308
|
-
t && /* @__PURE__ */ d(C, {
|
|
309
|
-
title: n,
|
|
310
|
-
children: /* @__PURE__ */ d(b, {
|
|
311
|
-
onClick: u,
|
|
312
|
-
children: /* @__PURE__ */ d(i, {})
|
|
313
|
-
})
|
|
314
|
-
}),
|
|
315
|
-
/* @__PURE__ */ d(C, {
|
|
316
|
-
title: a,
|
|
317
|
-
children: /* @__PURE__ */ d(b, {
|
|
318
|
-
onClick: p,
|
|
319
|
-
children: /* @__PURE__ */ d(r, {})
|
|
320
|
-
})
|
|
321
|
-
}),
|
|
322
|
-
/* @__PURE__ */ d(C, {
|
|
323
|
-
title: o,
|
|
324
|
-
children: /* @__PURE__ */ d(b, {
|
|
325
|
-
onClick: h,
|
|
326
|
-
children: /* @__PURE__ */ d(D, {})
|
|
327
|
-
})
|
|
328
|
-
}),
|
|
329
|
-
!c && /* @__PURE__ */ d(C, {
|
|
330
|
-
title: s,
|
|
331
|
-
children: /* @__PURE__ */ d("span", { children: /* @__PURE__ */ d(b, {
|
|
332
|
-
onClick: g,
|
|
333
|
-
disabled: l,
|
|
334
|
-
size: "large",
|
|
335
|
-
children: /* @__PURE__ */ d(E, { color: l ? "disabled" : "primary" })
|
|
336
|
-
}) })
|
|
337
|
-
})
|
|
338
|
-
]
|
|
339
|
-
})), U = ({ inputs: t = [], onProcess: n, onReset: r, onDownload: i, processing: a = !1, uploading: o = !1, inputValues: c = {}, onInputChange: h, customActionButtons: b, hideProcessButton: x = !1, processButtonDisabled: S = !1, getInputDisabled: C, processTooltip: w = "Process", downloadTooltip: T = "Download", resetTooltip: E = "Reset", infoTooltip: D = "Information", infoTitle: O = "Tool Information", infoContent: k, position: A = "bottom", relative: j = !1, containerSx: M, sx: N }) => {
|
|
340
|
-
let [P, I] = u(!1), B = l(() => t.length === 0 ? !0 : t.every((e) => F(e, c[e.key])), [t, c]), { imageInputs: U, textareaInputs: W, paramInputs: G } = l(() => L(t), [t]), K = R(U, G), q = z(S, B, o, a), J = s(() => {}, []), Y = s(() => {}, []), X = s((e, t, n) => {
|
|
341
|
-
h?.(e, t, n);
|
|
342
|
-
}, [h]), Z = s(() => I(!0), []), ee = s(() => I(!1), []), Q = s((e) => {
|
|
343
|
-
let t = c[e.key];
|
|
344
|
-
return /* @__PURE__ */ d(V, {
|
|
345
|
-
input: e,
|
|
346
|
-
value: t,
|
|
347
|
-
onChange: (t) => X(e.key, t),
|
|
348
|
-
onFocus: J,
|
|
349
|
-
onBlur: Y,
|
|
350
|
-
disabled: C?.(e.key) ?? !1
|
|
351
|
-
}, e.key);
|
|
352
|
-
}, [
|
|
353
|
-
c,
|
|
354
|
-
C,
|
|
355
|
-
X,
|
|
356
|
-
J,
|
|
357
|
-
Y
|
|
358
|
-
]), $ = /* @__PURE__ */ f(m, {
|
|
359
|
-
sx: {
|
|
360
|
-
position: j ? "relative" : "fixed",
|
|
361
|
-
[A]: j ? "auto" : 20,
|
|
362
|
-
left: j ? "auto" : "50%",
|
|
363
|
-
transform: j ? "none" : "translateX(-50%)",
|
|
364
|
-
zIndex: j ? "auto" : 1300,
|
|
365
|
-
display: j ? "flex" : "block",
|
|
366
|
-
justifyContent: j ? "center" : "initial",
|
|
367
|
-
mt: j && A === "top" ? 2 : 0,
|
|
368
|
-
mb: j && A === "bottom" ? 2 : 0,
|
|
369
|
-
...M
|
|
370
|
-
},
|
|
371
|
-
children: [/* @__PURE__ */ f(m, {
|
|
372
|
-
sx: [(t) => ({
|
|
373
|
-
display: "flex",
|
|
374
|
-
flexDirection: "column",
|
|
375
|
-
gap: 2,
|
|
376
|
-
p: 2,
|
|
377
|
-
borderRadius: 2,
|
|
378
|
-
border: 1,
|
|
379
|
-
borderColor: "divider",
|
|
380
|
-
bgcolor: "background.default",
|
|
381
|
-
transition: "border 120ms ease-in",
|
|
382
|
-
"&:hover": { borderColor: (t.vars ?? t).palette.grey[500] },
|
|
383
|
-
"&:focus-within": {
|
|
384
|
-
outline: `3px solid ${e((t.vars ?? t).palette.primary[500], 50)}`,
|
|
385
|
-
borderColor: (t.vars ?? t).palette.primary[400]
|
|
386
|
-
}
|
|
387
|
-
}), ...Array.isArray(N) ? N : [N]],
|
|
388
|
-
children: [W.length > 0 && /* @__PURE__ */ d(m, {
|
|
389
|
-
sx: {
|
|
390
|
-
display: "flex",
|
|
391
|
-
flexDirection: "column",
|
|
392
|
-
gap: 2
|
|
393
|
-
},
|
|
394
|
-
children: W.map(Q)
|
|
395
|
-
}), /* @__PURE__ */ f(m, {
|
|
396
|
-
sx: {
|
|
397
|
-
display: "flex",
|
|
398
|
-
alignItems: "center",
|
|
399
|
-
gap: .5
|
|
400
|
-
},
|
|
401
|
-
children: [
|
|
402
|
-
/* @__PURE__ */ d(m, {
|
|
403
|
-
sx: {
|
|
404
|
-
display: "flex",
|
|
405
|
-
alignItems: "center",
|
|
406
|
-
gap: 2,
|
|
407
|
-
flex: 1
|
|
408
|
-
},
|
|
409
|
-
children: K && /* @__PURE__ */ f(m, {
|
|
410
|
-
sx: {
|
|
411
|
-
display: "flex",
|
|
412
|
-
alignItems: "center",
|
|
413
|
-
gap: 1.5
|
|
414
|
-
},
|
|
415
|
-
children: [U.map(Q), G.map(Q)]
|
|
416
|
-
})
|
|
417
|
-
}),
|
|
418
|
-
K && /* @__PURE__ */ d(y, {
|
|
419
|
-
orientation: "vertical",
|
|
420
|
-
flexItem: !0,
|
|
421
|
-
sx: {
|
|
422
|
-
mx: .5,
|
|
423
|
-
flexShrink: 0
|
|
424
|
-
}
|
|
425
|
-
}),
|
|
426
|
-
/* @__PURE__ */ d(H, {
|
|
427
|
-
customActionButtons: b,
|
|
428
|
-
infoContent: k,
|
|
429
|
-
infoTooltip: D,
|
|
430
|
-
downloadTooltip: T,
|
|
431
|
-
resetTooltip: E,
|
|
432
|
-
processTooltip: w,
|
|
433
|
-
hideProcessButton: x,
|
|
434
|
-
processActionDisabled: q,
|
|
435
|
-
onInfoOpen: Z,
|
|
436
|
-
onDownload: i,
|
|
437
|
-
onReset: r,
|
|
438
|
-
onProcess: n
|
|
439
|
-
})
|
|
440
|
-
]
|
|
441
|
-
})]
|
|
442
|
-
}), k && /* @__PURE__ */ f(g, {
|
|
443
|
-
open: P,
|
|
444
|
-
onClose: ee,
|
|
445
|
-
maxWidth: "sm",
|
|
446
|
-
fullWidth: !0,
|
|
447
|
-
children: [/* @__PURE__ */ d(v, { children: O }), /* @__PURE__ */ d(_, { children: k })]
|
|
448
|
-
})]
|
|
449
|
-
});
|
|
450
|
-
return !j && typeof window < "u" ? p($, document.body) : $;
|
|
451
|
-
};
|
|
452
|
-
U.displayName = "SToolBar";
|
|
453
|
-
//#endregion
|
|
454
|
-
export { U as t };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{objectWithoutPropertiesLoose-BpY-kC5L.js → objectWithoutPropertiesLoose-kj3TmhoA.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|