@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,2 +1,219 @@
|
|
|
1
|
-
import { t as e } from "../
|
|
2
|
-
|
|
1
|
+
import { t as e } from "../utils-CMeAWSRO.js";
|
|
2
|
+
import { toSxArray as t } from "../utils/sx.js";
|
|
3
|
+
import { SForm as n } from "../s-form/s-form.js";
|
|
4
|
+
import { SFileIcon as ee } from "../s-file-icon/s-file-icon.js";
|
|
5
|
+
import { styled as r, useThemeProps as te } from "@mui/material/styles";
|
|
6
|
+
import i from "@mui/material/IconButton";
|
|
7
|
+
import * as a from "react";
|
|
8
|
+
import { Fragment as ne, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
9
|
+
import c from "@mui/material/Typography";
|
|
10
|
+
import { useForkRef as re } from "@mui/material/utils";
|
|
11
|
+
import l from "@mui/utils/appendOwnerState";
|
|
12
|
+
import ie from "@mui/material/Tooltip";
|
|
13
|
+
import u from "@mui/material/Stack";
|
|
14
|
+
import d from "@mui/material/Box";
|
|
15
|
+
import f from "@mui/icons-material/CloseOutlined";
|
|
16
|
+
import p from "@mui/icons-material/CloudUploadOutlined";
|
|
17
|
+
import m from "@mui/material/Avatar";
|
|
18
|
+
import ae from "@mui/material/Button";
|
|
19
|
+
import { useDropzone as oe } from "react-dropzone";
|
|
20
|
+
//#region lib/s-file-dropzone/s-file-dropzone.tsx
|
|
21
|
+
var se = r(n, {
|
|
22
|
+
name: "SFileDropzone",
|
|
23
|
+
slot: "Root"
|
|
24
|
+
})({}), ce = "Click to upload or drag and drop your files here";
|
|
25
|
+
function le(e) {
|
|
26
|
+
return Object.fromEntries(Object.entries(e).filter(([, e]) => e !== void 0));
|
|
27
|
+
}
|
|
28
|
+
function h(e, t) {
|
|
29
|
+
return typeof e == "function" ? e(t) : e;
|
|
30
|
+
}
|
|
31
|
+
var g = a.forwardRef(function(n, r) {
|
|
32
|
+
let { accept: g, autoFocus: ue, defaultFiles: de = [], disabled: _ = !1, error: v = !1, files: y, getFilesFromEvent: b, inputRef: x, maxFiles: S, maxSize: C, minSize: w, multiple: T, noClick: E, noDrag: D, noDragEventsBubbling: O, noKeyboard: k, onDragEnter: A, onDragLeave: j, onDragOver: M, onDrop: N, onDropAccepted: P, onDropRejected: F, onError: I, onFileDialogCancel: L, onFileDialogOpen: R, onFilesChange: z, onRemove: B, onRemoveAll: V, preventDropOnDocument: H, removeAllText: fe = "Remove all", removeText: U = "Remove", showRemoveAll: pe = !1, slotProps: me, slots: W, uploadText: he = ce, useFsAccessApi: ge, validator: _e, ...ve } = te({
|
|
33
|
+
props: n,
|
|
34
|
+
name: "SFileDropzone"
|
|
35
|
+
}), [ye, be] = a.useState(de), G = y !== void 0, K = y ?? ye, q = a.useCallback((e, t) => {
|
|
36
|
+
G || be(t), z?.(e, t);
|
|
37
|
+
}, [G, z]), { getInputProps: xe, getRootProps: Se, inputRef: Ce, isDragActive: J } = oe(le({
|
|
38
|
+
accept: g,
|
|
39
|
+
autoFocus: ue,
|
|
40
|
+
disabled: _,
|
|
41
|
+
getFilesFromEvent: b,
|
|
42
|
+
maxFiles: S,
|
|
43
|
+
maxSize: C,
|
|
44
|
+
minSize: w,
|
|
45
|
+
multiple: T,
|
|
46
|
+
noClick: E,
|
|
47
|
+
noDrag: D,
|
|
48
|
+
noDragEventsBubbling: O,
|
|
49
|
+
noKeyboard: k,
|
|
50
|
+
onDragEnter: A,
|
|
51
|
+
onDragLeave: j,
|
|
52
|
+
onDragOver: M,
|
|
53
|
+
onDrop: a.useCallback((e, t, n) => {
|
|
54
|
+
e.length > 0 && q(n, T === !1 || S === 1 ? e : [...K, ...e].slice(0, S && S > 0 ? S : void 0)), N?.(e, t, n);
|
|
55
|
+
}, [
|
|
56
|
+
K,
|
|
57
|
+
S,
|
|
58
|
+
T,
|
|
59
|
+
N,
|
|
60
|
+
q
|
|
61
|
+
]),
|
|
62
|
+
onDropAccepted: P,
|
|
63
|
+
onDropRejected: F,
|
|
64
|
+
onError: I,
|
|
65
|
+
onFileDialogCancel: L,
|
|
66
|
+
onFileDialogOpen: R,
|
|
67
|
+
preventDropOnDocument: H,
|
|
68
|
+
useFsAccessApi: ge,
|
|
69
|
+
validator: _e
|
|
70
|
+
})), we = re(x, Ce), Y = {
|
|
71
|
+
disabled: _,
|
|
72
|
+
dragActive: J,
|
|
73
|
+
error: v,
|
|
74
|
+
hasFiles: K.length > 0
|
|
75
|
+
}, Te = W?.dropzone ?? d, Ee = W?.fileList ?? u, { dropzone: De, fileList: Oe, input: X, removeAllButton: ke, ...Z } = me ?? {}, { onClick: Ae, ...Q } = ke ?? {}, je = h(De, Y), Me = h(Oe, Y), Ne = l(W?.dropzone, je ?? {}, Y), Pe = l(W?.fileList, Me ?? {}, Y), { sx: Fe, ...$ } = Ne, { sx: Ie, ...Le } = Pe;
|
|
76
|
+
return /* @__PURE__ */ s(ne, { children: [/* @__PURE__ */ o(se, {
|
|
77
|
+
...ve,
|
|
78
|
+
ref: r,
|
|
79
|
+
disabled: _,
|
|
80
|
+
error: v,
|
|
81
|
+
ownerState: Y,
|
|
82
|
+
slots: W,
|
|
83
|
+
slotProps: Z,
|
|
84
|
+
children: /* @__PURE__ */ s(Te, {
|
|
85
|
+
...Se({
|
|
86
|
+
...$,
|
|
87
|
+
"aria-disabled": _ || void 0,
|
|
88
|
+
"aria-invalid": v || void 0,
|
|
89
|
+
role: $.role ?? "button"
|
|
90
|
+
}),
|
|
91
|
+
sx: [(e) => {
|
|
92
|
+
let t = (e.vars ?? e).palette, n = v ? t.error : t.primary;
|
|
93
|
+
return {
|
|
94
|
+
alignItems: "center",
|
|
95
|
+
backgroundColor: _ ? t.background.default : void 0,
|
|
96
|
+
border: "1px dashed",
|
|
97
|
+
borderColor: _ ? t.divider : v ? t.error.main : t.divider,
|
|
98
|
+
borderRadius: 1,
|
|
99
|
+
cursor: _ ? "default" : "pointer",
|
|
100
|
+
display: "flex",
|
|
101
|
+
flexWrap: "wrap",
|
|
102
|
+
justifyContent: "center",
|
|
103
|
+
outline: "none",
|
|
104
|
+
p: 4,
|
|
105
|
+
transition: "border 120ms ease-in, background-color 120ms ease-in, outline 120ms ease-in",
|
|
106
|
+
...J ? {
|
|
107
|
+
backgroundColor: t.action.selected,
|
|
108
|
+
opacity: .5
|
|
109
|
+
} : {},
|
|
110
|
+
"&:hover": !_ && !J ? {
|
|
111
|
+
backgroundColor: t.action.hover,
|
|
112
|
+
borderColor: v ? t.error.main : t.grey[500]
|
|
113
|
+
} : void 0,
|
|
114
|
+
"&:focus-within": _ ? void 0 : {
|
|
115
|
+
borderColor: v ? t.error.main : t.primary[400],
|
|
116
|
+
outline: `3px solid rgba(${n.mainChannel} / 0.5)`
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
}, ...t(Fe)],
|
|
120
|
+
children: [/* @__PURE__ */ o("input", {
|
|
121
|
+
...xe(X),
|
|
122
|
+
ref: we,
|
|
123
|
+
disabled: _ || !!X?.disabled
|
|
124
|
+
}), /* @__PURE__ */ s(u, {
|
|
125
|
+
direction: "row",
|
|
126
|
+
spacing: 1,
|
|
127
|
+
sx: { alignItems: "center" },
|
|
128
|
+
children: [/* @__PURE__ */ o(m, {
|
|
129
|
+
sx: {
|
|
130
|
+
backgroundColor: "transparent",
|
|
131
|
+
border: "1px dashed",
|
|
132
|
+
borderColor: "divider",
|
|
133
|
+
color: _ ? "text.disabled" : "text.secondary"
|
|
134
|
+
},
|
|
135
|
+
children: /* @__PURE__ */ o(p, { fontSize: "small" })
|
|
136
|
+
}), /* @__PURE__ */ o(c, {
|
|
137
|
+
variant: "body2",
|
|
138
|
+
sx: { color: _ ? "text.disabled" : "text.secondary" },
|
|
139
|
+
children: he
|
|
140
|
+
})]
|
|
141
|
+
})]
|
|
142
|
+
})
|
|
143
|
+
}), K.length > 0 && /* @__PURE__ */ s(Ee, {
|
|
144
|
+
spacing: 1,
|
|
145
|
+
...Le,
|
|
146
|
+
sx: [{
|
|
147
|
+
color: _ ? "text.disabled" : void 0,
|
|
148
|
+
mt: 1
|
|
149
|
+
}, ...t(Ie)],
|
|
150
|
+
children: [/* @__PURE__ */ o(u, {
|
|
151
|
+
component: "ul",
|
|
152
|
+
spacing: 1,
|
|
153
|
+
sx: {
|
|
154
|
+
listStyle: "none",
|
|
155
|
+
m: 0,
|
|
156
|
+
p: 0
|
|
157
|
+
},
|
|
158
|
+
children: K.map((t, n) => /* @__PURE__ */ s(u, {
|
|
159
|
+
component: "li",
|
|
160
|
+
direction: "row",
|
|
161
|
+
spacing: 1,
|
|
162
|
+
sx: {
|
|
163
|
+
alignItems: "center",
|
|
164
|
+
border: "1px solid",
|
|
165
|
+
borderColor: "divider",
|
|
166
|
+
borderRadius: 1,
|
|
167
|
+
flex: "1 1 auto",
|
|
168
|
+
p: 1
|
|
169
|
+
},
|
|
170
|
+
children: [
|
|
171
|
+
/* @__PURE__ */ o(ee, {
|
|
172
|
+
extension: t.name.split(".").pop(),
|
|
173
|
+
sx: (e) => ({ opacity: _ ? (e.vars ?? e).palette.action.disabledOpacity : 1 })
|
|
174
|
+
}),
|
|
175
|
+
/* @__PURE__ */ s(d, {
|
|
176
|
+
sx: { flex: "1 1 auto" },
|
|
177
|
+
children: [/* @__PURE__ */ o(c, {
|
|
178
|
+
variant: "body2",
|
|
179
|
+
children: t.name
|
|
180
|
+
}), /* @__PURE__ */ o(c, {
|
|
181
|
+
variant: "caption",
|
|
182
|
+
children: e(t.size)
|
|
183
|
+
})]
|
|
184
|
+
}),
|
|
185
|
+
/* @__PURE__ */ o(ie, {
|
|
186
|
+
title: U,
|
|
187
|
+
children: /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(i, {
|
|
188
|
+
"aria-label": `${U} ${t.name}`,
|
|
189
|
+
disabled: _,
|
|
190
|
+
onClick: (e) => {
|
|
191
|
+
_ || (B?.(e, t), e.defaultPrevented || q(e, K.filter((e, t) => t !== n)));
|
|
192
|
+
},
|
|
193
|
+
children: /* @__PURE__ */ o(f, {})
|
|
194
|
+
}) })
|
|
195
|
+
})
|
|
196
|
+
]
|
|
197
|
+
}, `${t.name}-${t.size}-${n}`))
|
|
198
|
+
}), pe && /* @__PURE__ */ o(u, {
|
|
199
|
+
direction: "row",
|
|
200
|
+
sx: {
|
|
201
|
+
alignItems: "center",
|
|
202
|
+
justifyContent: "flex-end"
|
|
203
|
+
},
|
|
204
|
+
children: /* @__PURE__ */ o(ae, {
|
|
205
|
+
type: "button",
|
|
206
|
+
variant: "text",
|
|
207
|
+
...Q,
|
|
208
|
+
disabled: _ || !!Q.disabled,
|
|
209
|
+
onClick: (e) => {
|
|
210
|
+
_ || (Ae?.(e), !e.defaultPrevented && (V?.(e), e.defaultPrevented || q(e, [])));
|
|
211
|
+
},
|
|
212
|
+
children: fe
|
|
213
|
+
})
|
|
214
|
+
})]
|
|
215
|
+
})] });
|
|
216
|
+
});
|
|
217
|
+
g.displayName = "SFileDropzone";
|
|
218
|
+
//#endregion
|
|
219
|
+
export { g as SFileDropzone, g as default };
|
|
@@ -1,301 +1,300 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
1
|
+
import { toSxArray as e } from "../utils/sx.js";
|
|
2
|
+
import { styled as t, useThemeProps as n } from "@mui/material/styles";
|
|
3
|
+
import * as r from "react";
|
|
4
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
import o from "@mui/material/Box";
|
|
7
6
|
//#region lib/s-file-icon/s-file-icon.tsx
|
|
8
|
-
var s = () => /* @__PURE__ */
|
|
7
|
+
var s = () => /* @__PURE__ */ a("svg", {
|
|
9
8
|
width: "41",
|
|
10
9
|
height: "48",
|
|
11
10
|
viewBox: "0 0 41 48",
|
|
12
11
|
fill: "none",
|
|
13
12
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
-
children: [/* @__PURE__ */
|
|
13
|
+
children: [/* @__PURE__ */ a("g", {
|
|
15
14
|
clipPath: "url(#a)",
|
|
16
15
|
children: [
|
|
17
|
-
/* @__PURE__ */
|
|
16
|
+
/* @__PURE__ */ i("path", {
|
|
18
17
|
opacity: ".3",
|
|
19
18
|
d: "M27.936 9.848a4.126 4.126 0 0 1-4.123-4.124V0H5.384A5.382 5.382 0 0 0 .002 5.384v32.442a5.382 5.382 0 0 0 5.382 5.384h22.12a5.382 5.382 0 0 0 5.382-5.384V9.85l-4.95-.002Z",
|
|
20
19
|
fill: "#00C650"
|
|
21
20
|
}),
|
|
22
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ i("path", {
|
|
23
22
|
d: "M32.886 9.848h-4.95a4.126 4.126 0 0 1-4.123-4.124V0l9.073 9.848ZM36.79 34.12H11.784a3.212 3.212 0 0 0-3.212 3.212v7.456A3.212 3.212 0 0 0 11.783 48H36.79a3.212 3.212 0 0 0 3.212-3.212v-7.456a3.212 3.212 0 0 0-3.212-3.212Z",
|
|
24
23
|
fill: "#00C650"
|
|
25
24
|
}),
|
|
26
|
-
/* @__PURE__ */
|
|
25
|
+
/* @__PURE__ */ i("path", {
|
|
27
26
|
d: "M16.846 42.674v1.456h-1.505v-1.456h1.505Zm4.47-4.558v4.108c0 .63-.17 1.115-.514 1.454a1.937 1.937 0 0 1-1.426.51 2.156 2.156 0 0 1-1.564-.556c-.385-.372-.578-.905-.58-1.6h1.438c0 .562.214.842.638.842.37 0 .554-.216.554-.646V38.12l1.454-.004Zm2.412 3.904v2.11h-1.454v-6.014h2.356c.714 0 1.258.177 1.632.53a1.88 1.88 0 0 1 .562 1.434 2 2 0 0 1-.25 1 1.738 1.738 0 0 1-.744.688 2.62 2.62 0 0 1-1.2.252h-.902Zm1.616-1.94c0-.533-.292-.8-.876-.8h-.74v1.566h.74c.584.005.876-.25.876-.766Zm6.874-1.48c.485.364.81.9.91 1.498h-1.54a1.174 1.174 0 0 0-.472-.498 1.427 1.427 0 0 0-.758-.2 1.41 1.41 0 0 0-1.104.464 1.8 1.8 0 0 0-.418 1.254c0 .572.146 1.011.438 1.318a1.643 1.643 0 0 0 1.246.46c.327.006.646-.094.91-.286a1.51 1.51 0 0 0 .554-.812h-1.838v-1.046H33.2v1.438c-.116.358-.301.69-.544.978-.262.31-.59.56-.958.732a3.044 3.044 0 0 1-1.33.28 3.167 3.167 0 0 1-1.6-.386 2.642 2.642 0 0 1-1.05-1.086 3.342 3.342 0 0 1-.37-1.6 3.341 3.341 0 0 1 .37-1.59c.237-.455.6-.833 1.046-1.086a3.127 3.127 0 0 1 1.578-.386c.67-.03 1.33.166 1.876.554Z",
|
|
28
27
|
fill: "#fff"
|
|
29
28
|
}),
|
|
30
|
-
/* @__PURE__ */
|
|
29
|
+
/* @__PURE__ */ i("path", {
|
|
31
30
|
d: "M20.862 29.282h-8.834a3.266 3.266 0 0 1-3.262-3.262v-8.834a3.266 3.266 0 0 1 3.262-3.262h8.834a3.263 3.263 0 0 1 3.26 3.262v8.834a3.265 3.265 0 0 1-3.26 3.262Zm-8.834-13.916a1.822 1.822 0 0 0-1.82 1.82v8.834a1.822 1.822 0 0 0 1.82 1.82h8.834a1.82 1.82 0 0 0 1.818-1.82v-8.834a1.82 1.82 0 0 0-1.818-1.82h-8.834Z",
|
|
32
31
|
fill: "#00C650"
|
|
33
32
|
}),
|
|
34
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ i("path", {
|
|
35
34
|
d: "M23.402 24.34v1.68a2.542 2.542 0 0 1-2.54 2.54H12.03a2.54 2.54 0 0 1-2.54-2.54V23.2c1.413-.304 3.567-.4 6.181.644l1.62-1.544 1.105 2.8s.296-1.03 1.252-.884c.956.146 2.504.664 3.166.222a.852.852 0 0 1 .59-.098Zm-3.094-5.35a.982.982 0 1 0 0-1.964.982.982 0 0 0 0 1.964Z",
|
|
36
35
|
fill: "#00C650"
|
|
37
36
|
})
|
|
38
37
|
]
|
|
39
|
-
}), /* @__PURE__ */
|
|
38
|
+
}), /* @__PURE__ */ i("defs", { children: /* @__PURE__ */ i("clipPath", {
|
|
40
39
|
id: "a",
|
|
41
|
-
children: /* @__PURE__ */
|
|
40
|
+
children: /* @__PURE__ */ i("path", {
|
|
42
41
|
fill: "#fff",
|
|
43
42
|
d: "M.002 0h40v48h-40z"
|
|
44
43
|
})
|
|
45
44
|
}) })]
|
|
46
|
-
}), c = () => /* @__PURE__ */
|
|
45
|
+
}), c = () => /* @__PURE__ */ a("svg", {
|
|
47
46
|
width: "40",
|
|
48
47
|
height: "48",
|
|
49
48
|
viewBox: "0 0 40 48",
|
|
50
49
|
fill: "none",
|
|
51
50
|
xmlns: "http://www.w3.org/2000/svg",
|
|
52
|
-
children: [/* @__PURE__ */
|
|
51
|
+
children: [/* @__PURE__ */ a("g", {
|
|
53
52
|
clipPath: "url(#a)",
|
|
54
53
|
children: [
|
|
55
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ i("path", {
|
|
56
55
|
opacity: ".3",
|
|
57
56
|
d: "M27.934 9.848a4.128 4.128 0 0 1-4.124-4.124V0H5.382A5.382 5.382 0 0 0 0 5.38v32.444A5.382 5.382 0 0 0 5.382 43.2h22.12a5.383 5.383 0 0 0 5.384-5.382V9.848h-4.952Z",
|
|
58
57
|
fill: "#A140FF"
|
|
59
58
|
}),
|
|
60
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ i("path", {
|
|
61
60
|
d: "M32.886 9.848h-4.952a4.128 4.128 0 0 1-4.124-4.124V0l9.076 9.848Zm3.902 24.272H11.78a3.212 3.212 0 0 0-3.212 3.212v7.456A3.212 3.212 0 0 0 11.78 48h25.008A3.212 3.212 0 0 0 40 44.788v-7.456a3.212 3.212 0 0 0-3.212-3.212Z",
|
|
62
61
|
fill: "#A140FF"
|
|
63
62
|
}),
|
|
64
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ i("path", {
|
|
65
64
|
d: "M15.718 42.674v1.454h-1.506v-1.454h1.506Zm7.52-4.516v5.97h-1.454V40.4l-1.294 3.734h-1.258l-1.302-3.742v3.742h-1.454v-5.97h1.778l1.624 4.158 1.6-4.158 1.76-.006Zm2.458 3.862v2.108h-1.454v-6.014H26.6c.714 0 1.26.178 1.634.532a1.88 1.88 0 0 1 .56 1.434c.007.35-.08.695-.25 1a1.75 1.75 0 0 1-.744.688 2.62 2.62 0 0 1-1.2.252h-.904Zm1.616-1.94c0-.533-.292-.8-.876-.8h-.74v1.566h.74c.584.005.876-.25.876-.766Zm2.068 2.942V41.8l2.748-3.768h1.564v3.718h.724v1.266h-.724v1.106H32.22v-1.106l-2.84.006Zm2.96-3.3-1.48 2.034h1.48v-2.034Z",
|
|
66
65
|
fill: "#fff"
|
|
67
66
|
}),
|
|
68
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ i("path", {
|
|
69
68
|
d: "M23.888 26.382V16.84a.77.77 0 0 0-.114-.394l-.02-.032a.82.82 0 0 0-.084-.102l-.014-.012a.984.984 0 0 0-.086-.072l-.036-.022-.08-.044-.042-.018a.768.768 0 0 0-.096-.03h-.032a.646.646 0 0 0-.138-.014H9.674a.746.746 0 0 0-.678.742v9.574a.518.518 0 0 0 .11.34.742.742 0 0 0 .638.364h13.4a.748.748 0 0 0 .744-.738ZM9.8 17.896v-1.448h1.178v1.448H9.8Zm1.988 0v-1.448h1.178v1.448h-1.178Zm1.988 0v-1.448h1.178v1.448h-1.178Zm1.988 0v-1.448h1.178v1.448h-1.178Zm1.988 0v-1.448h1.178v1.448h-1.178Zm1.988 0v-1.448h1.178v1.448H19.74Zm1.988 0v-1.448h1.178v1.448h-1.178Zm-12.2 7.022v-6.63h13.846v6.63H9.528Zm.27 1.838v-1.448h1.178v1.448H9.798Zm1.988 0v-1.448h1.178v1.448h-1.178Zm1.988 0v-1.448h1.178v1.448h-1.178Zm1.988 0v-1.448h1.178v1.448h-1.178Zm1.988 0v-1.448h1.178v1.448H17.75Zm1.988 0v-1.448h1.178v1.448h-1.178Zm1.988 0v-1.448h1.178v1.448h-1.178Z",
|
|
70
69
|
fill: "#A140FF"
|
|
71
70
|
}),
|
|
72
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ i("path", {
|
|
73
72
|
d: "m18.044 21.112-1.914-1.106a.652.652 0 0 0-.976.564v2.212a.653.653 0 0 0 .976.564l1.914-1.106a.652.652 0 0 0 0-1.128Z",
|
|
74
73
|
fill: "#A140FF"
|
|
75
74
|
})
|
|
76
75
|
]
|
|
77
|
-
}), /* @__PURE__ */
|
|
76
|
+
}), /* @__PURE__ */ i("defs", { children: /* @__PURE__ */ i("clipPath", {
|
|
78
77
|
id: "a",
|
|
79
|
-
children: /* @__PURE__ */
|
|
78
|
+
children: /* @__PURE__ */ i("path", {
|
|
80
79
|
fill: "#fff",
|
|
81
80
|
d: "M0 0h40v48H0z"
|
|
82
81
|
})
|
|
83
82
|
}) })]
|
|
84
|
-
}), l = () => /* @__PURE__ */
|
|
83
|
+
}), l = () => /* @__PURE__ */ a("svg", {
|
|
85
84
|
width: "40",
|
|
86
85
|
height: "48",
|
|
87
86
|
viewBox: "0 0 40 48",
|
|
88
87
|
fill: "none",
|
|
89
88
|
xmlns: "http://www.w3.org/2000/svg",
|
|
90
|
-
children: [/* @__PURE__ */
|
|
89
|
+
children: [/* @__PURE__ */ a("g", {
|
|
91
90
|
clipPath: "url(#a)",
|
|
92
91
|
children: [
|
|
93
|
-
/* @__PURE__ */
|
|
92
|
+
/* @__PURE__ */ i("path", {
|
|
94
93
|
opacity: ".3",
|
|
95
94
|
d: "M27.933 9.85a4.128 4.128 0 0 1-4.124-4.124V0H5.382A5.382 5.382 0 0 0 0 5.382v32.442a5.382 5.382 0 0 0 5.382 5.374h22.12a5.381 5.381 0 0 0 5.383-5.374V9.85h-4.952Z",
|
|
96
95
|
fill: "#FF3E4C"
|
|
97
96
|
}),
|
|
98
|
-
/* @__PURE__ */
|
|
97
|
+
/* @__PURE__ */ i("path", {
|
|
99
98
|
d: "M32.885 9.85h-4.952a4.128 4.128 0 0 1-4.124-4.124V0l9.076 9.85Zm-6.766 20.317H5.472a.75.75 0 1 1 0-1.498h20.647a.748.748 0 1 1 0 1.498Zm0-8.447H5.472a.75.75 0 1 1 0-1.499h20.647a.748.748 0 1 1 0 1.498Zm0 4.223H5.472a.75.75 0 1 1 0-1.498h20.647a.748.748 0 1 1 0 1.498Zm-8.144-8.448H5.472a.75.75 0 0 1 0-1.498h12.503a.75.75 0 0 1 0 1.498Zm0-4.224H5.472a.75.75 0 0 1 0-1.498h12.503a.75.75 0 0 1 .528 1.279.75.75 0 0 1-.528.22ZM36.786 34.12H11.78a3.212 3.212 0 0 0-3.211 3.213v7.455A3.212 3.212 0 0 0 11.78 48h25.006a3.212 3.212 0 0 0 3.212-3.212v-7.455a3.212 3.212 0 0 0-3.212-3.212Z",
|
|
100
99
|
fill: "#FF3E4C"
|
|
101
100
|
}),
|
|
102
|
-
/* @__PURE__ */
|
|
101
|
+
/* @__PURE__ */ i("path", {
|
|
103
102
|
d: "M16.771 42.674v1.454h-1.504v-1.454h1.504Zm2.212-.656v2.11H17.53v-6.014h2.356c.714 0 1.26.178 1.634.533a1.878 1.878 0 0 1 .56 1.433c.007.35-.079.695-.25 1a1.754 1.754 0 0 1-.744.69 2.62 2.62 0 0 1-1.2.25l-.902-.002ZM20.6 40.08c0-.533-.292-.8-.876-.8h-.74v1.566h.74c.584.006.876-.25.876-.766Zm7.225 2.598c-.25.455-.629.826-1.088 1.068a3.487 3.487 0 0 1-1.672.382h-2.27v-6.014h2.27a3.544 3.544 0 0 1 1.676.374 2.6 2.6 0 0 1 1.084 1.056c.26.48.391 1.019.38 1.564.01.548-.12 1.088-.38 1.57Zm-1.564-.302a1.674 1.674 0 0 0 .472-1.268 1.668 1.668 0 0 0-.472-1.266 1.834 1.834 0 0 0-1.322-.452h-.69v3.436h.69c.483.03.957-.132 1.322-.45Zm6.689-4.262v1.159h-2.465v1.317h1.904v1.106h-1.904v2.432h-1.456v-6.014h3.922Z",
|
|
104
103
|
fill: "#fff"
|
|
105
104
|
}),
|
|
106
|
-
/* @__PURE__ */
|
|
105
|
+
/* @__PURE__ */ i("path", {
|
|
107
106
|
d: "M25.753 11.773h-3.536c-.616 0-1.116.5-1.116 1.116v3.536c0 .617.5 1.116 1.116 1.116h3.536c.616 0 1.116-.5 1.116-1.116V12.89c0-.616-.5-1.116-1.116-1.116Z",
|
|
108
107
|
fill: "#FF3E4C"
|
|
109
108
|
})
|
|
110
109
|
]
|
|
111
|
-
}), /* @__PURE__ */
|
|
110
|
+
}), /* @__PURE__ */ i("defs", { children: /* @__PURE__ */ i("clipPath", {
|
|
112
111
|
id: "a",
|
|
113
|
-
children: /* @__PURE__ */
|
|
112
|
+
children: /* @__PURE__ */ i("path", {
|
|
114
113
|
fill: "#fff",
|
|
115
114
|
d: "M0 0h39.998v48H0z"
|
|
116
115
|
})
|
|
117
116
|
}) })]
|
|
118
|
-
}), u = () => /* @__PURE__ */
|
|
117
|
+
}), u = () => /* @__PURE__ */ a("svg", {
|
|
119
118
|
width: "41",
|
|
120
119
|
height: "48",
|
|
121
120
|
viewBox: "0 0 41 48",
|
|
122
121
|
fill: "none",
|
|
123
122
|
xmlns: "http://www.w3.org/2000/svg",
|
|
124
|
-
children: [/* @__PURE__ */
|
|
123
|
+
children: [/* @__PURE__ */ a("g", {
|
|
125
124
|
clipPath: "url(#clip0_11823_127803)",
|
|
126
125
|
children: [
|
|
127
|
-
/* @__PURE__ */
|
|
126
|
+
/* @__PURE__ */ i("g", {
|
|
128
127
|
opacity: "0.3",
|
|
129
|
-
children: /* @__PURE__ */
|
|
128
|
+
children: /* @__PURE__ */ i("path", {
|
|
130
129
|
opacity: "0.3",
|
|
131
130
|
d: "M27.9364 9.848C26.843 9.84694 25.7947 9.41211 25.0215 8.63894C24.2483 7.86577 23.8135 6.81743 23.8124 5.724V0H5.38444C3.95704 0 2.58812 0.567034 1.5788 1.57635C0.569476 2.58568 0.00244141 3.9546 0.00244141 5.38199V37.826C0.00456108 39.252 0.572525 40.6189 1.58162 41.6265C2.59071 42.6341 3.95843 43.2 5.38444 43.2H27.5064C28.9328 43.2 30.3008 42.6338 31.31 41.6258C32.3191 40.6177 32.8869 39.2504 32.8884 37.824V9.848H27.9364Z",
|
|
132
131
|
fill: "#005FAD"
|
|
133
132
|
})
|
|
134
133
|
}),
|
|
135
|
-
/* @__PURE__ */
|
|
134
|
+
/* @__PURE__ */ i("path", {
|
|
136
135
|
d: "M32.8885 9.848H27.9365C26.8431 9.84694 25.7947 9.41211 25.0216 8.63894C24.2484 7.86577 23.8136 6.81743 23.8125 5.724V0L32.8885 9.848Z",
|
|
137
136
|
fill: "#005FAD"
|
|
138
137
|
}),
|
|
139
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ i("path", {
|
|
140
139
|
d: "M36.7906 34.1201H11.7826C10.0086 34.1201 8.57056 35.5582 8.57056 37.3321V44.7881C8.57056 46.562 10.0086 48.0001 11.7826 48.0001H36.7906C38.5645 48.0001 40.0026 46.562 40.0026 44.7881V37.3321C40.0026 35.5582 38.5645 34.1201 36.7906 34.1201Z",
|
|
141
140
|
fill: "#005FAD"
|
|
142
141
|
}),
|
|
143
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ i("path", {
|
|
144
143
|
d: "M15.8144 42.6741V44.1281H14.3083V42.6741H15.8144Z",
|
|
145
144
|
fill: "white"
|
|
146
145
|
}),
|
|
147
|
-
/* @__PURE__ */
|
|
146
|
+
/* @__PURE__ */ i("path", {
|
|
148
147
|
d: "M18.0263 42.02V44.128H16.5703V38.114H18.9263C19.6423 38.114 20.187 38.2913 20.5603 38.646C20.7498 38.8319 20.8979 39.0557 20.9947 39.3029C21.0916 39.55 21.1351 39.8149 21.1223 40.08C21.1286 40.4298 21.0416 40.775 20.8703 41.08C20.6966 41.3785 20.4375 41.6182 20.1263 41.768C19.7521 41.9465 19.3407 42.0329 18.9263 42.02H18.0263ZM19.6423 40.08C19.6423 39.5467 19.3503 39.28 18.7663 39.28H18.0263V40.846H18.7663C19.3503 40.8513 19.6423 40.596 19.6423 40.08Z",
|
|
149
148
|
fill: "white"
|
|
150
149
|
}),
|
|
151
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ i("path", {
|
|
152
151
|
d: "M27.1785 44.128H25.7245L23.2885 40.436V44.128H21.8345V38.114H23.2885L25.7225 41.84V38.114H27.1765L27.1785 44.128Z",
|
|
153
152
|
fill: "white"
|
|
154
153
|
}),
|
|
155
|
-
/* @__PURE__ */
|
|
154
|
+
/* @__PURE__ */ i("path", {
|
|
156
155
|
d: "M32.8604 38.6C33.3457 38.9632 33.6718 39.5 33.7704 40.098H32.2304C32.1294 39.8838 31.9673 39.7043 31.7644 39.582C31.5353 39.4462 31.2728 39.3769 31.0064 39.382C30.7995 39.3735 30.5932 39.4104 30.4021 39.4902C30.211 39.5701 30.0398 39.6908 29.9004 39.844C29.6082 40.1952 29.4596 40.6439 29.4844 41.1C29.4844 41.672 29.6304 42.1114 29.9224 42.4181C30.0865 42.5774 30.2822 42.7006 30.4968 42.7798C30.7114 42.8591 30.9401 42.8925 31.1684 42.8781C31.4947 42.8837 31.814 42.7833 32.0784 42.5921C32.3477 42.3904 32.542 42.1047 32.6304 41.7801H30.7944V40.734H33.8484V42.2C33.7301 42.5577 33.5448 42.8897 33.3024 43.1781C33.0406 43.4885 32.7144 43.7383 32.3464 43.91C31.9292 44.1027 31.4739 44.1984 31.0144 44.1901C30.4562 44.2042 29.9042 44.0703 29.4144 43.8021C28.9663 43.5508 28.6013 43.174 28.3644 42.7181C28.1109 42.227 27.9838 41.6806 27.9944 41.1281C27.9824 40.5722 28.1096 40.0222 28.3644 39.5281C28.601 39.0732 28.9643 38.6967 29.4104 38.444C29.8931 38.1782 30.4376 38.045 30.9884 38.058C31.6554 38.0253 32.3141 38.2161 32.8604 38.6Z",
|
|
157
156
|
fill: "white"
|
|
158
157
|
}),
|
|
159
|
-
/* @__PURE__ */
|
|
158
|
+
/* @__PURE__ */ i("path", {
|
|
160
159
|
d: "M10.9424 13.344H8.19238V16.094H10.9424V13.344Z",
|
|
161
160
|
fill: "#005FAD"
|
|
162
161
|
}),
|
|
163
|
-
/* @__PURE__ */
|
|
162
|
+
/* @__PURE__ */ i("path", {
|
|
164
163
|
d: "M13.6943 16.094H10.9443V18.844H13.6943V16.094Z",
|
|
165
164
|
fill: "#005FAD"
|
|
166
165
|
}),
|
|
167
|
-
/* @__PURE__ */
|
|
166
|
+
/* @__PURE__ */ i("path", {
|
|
168
167
|
d: "M16.4443 13.344H13.6943V16.094H16.4443V13.344Z",
|
|
169
168
|
fill: "#005FAD"
|
|
170
169
|
}),
|
|
171
|
-
/* @__PURE__ */
|
|
170
|
+
/* @__PURE__ */ i("path", {
|
|
172
171
|
d: "M19.1943 16.094H16.4443V18.844H19.1943V16.094Z",
|
|
173
172
|
fill: "#005FAD"
|
|
174
173
|
}),
|
|
175
|
-
/* @__PURE__ */
|
|
174
|
+
/* @__PURE__ */ i("path", {
|
|
176
175
|
d: "M21.9485 13.344H19.1985V16.094H21.9485V13.344Z",
|
|
177
176
|
fill: "#005FAD"
|
|
178
177
|
}),
|
|
179
|
-
/* @__PURE__ */
|
|
178
|
+
/* @__PURE__ */ i("path", {
|
|
180
179
|
d: "M24.6985 16.094H21.9485V18.844H24.6985V16.094Z",
|
|
181
180
|
fill: "#005FAD"
|
|
182
181
|
}),
|
|
183
|
-
/* @__PURE__ */
|
|
182
|
+
/* @__PURE__ */ i("path", {
|
|
184
183
|
d: "M10.9424 18.8401H8.19238V21.5901H10.9424V18.8401Z",
|
|
185
184
|
fill: "#005FAD"
|
|
186
185
|
}),
|
|
187
|
-
/* @__PURE__ */
|
|
186
|
+
/* @__PURE__ */ i("path", {
|
|
188
187
|
d: "M13.6943 21.5901H10.9443V24.3401H13.6943V21.5901Z",
|
|
189
188
|
fill: "#005FAD"
|
|
190
189
|
}),
|
|
191
|
-
/* @__PURE__ */
|
|
190
|
+
/* @__PURE__ */ i("path", {
|
|
192
191
|
d: "M16.4443 18.8401H13.6943V21.5901H16.4443V18.8401Z",
|
|
193
192
|
fill: "#005FAD"
|
|
194
193
|
}),
|
|
195
|
-
/* @__PURE__ */
|
|
194
|
+
/* @__PURE__ */ i("path", {
|
|
196
195
|
d: "M19.1943 21.5901H16.4443V24.3401H19.1943V21.5901Z",
|
|
197
196
|
fill: "#005FAD"
|
|
198
197
|
}),
|
|
199
|
-
/* @__PURE__ */
|
|
198
|
+
/* @__PURE__ */ i("path", {
|
|
200
199
|
d: "M21.9485 18.8401H19.1985V21.5901H21.9485V18.8401Z",
|
|
201
200
|
fill: "#005FAD"
|
|
202
201
|
}),
|
|
203
|
-
/* @__PURE__ */
|
|
202
|
+
/* @__PURE__ */ i("path", {
|
|
204
203
|
d: "M24.6985 21.5901H21.9485V24.3401H24.6985V21.5901Z",
|
|
205
204
|
fill: "#005FAD"
|
|
206
205
|
}),
|
|
207
|
-
/* @__PURE__ */
|
|
206
|
+
/* @__PURE__ */ i("path", {
|
|
208
207
|
d: "M10.9424 24.3621H8.19238V27.1121H10.9424V24.3621Z",
|
|
209
208
|
fill: "#005FAD"
|
|
210
209
|
}),
|
|
211
|
-
/* @__PURE__ */
|
|
210
|
+
/* @__PURE__ */ i("path", {
|
|
212
211
|
d: "M13.6943 27.1121H10.9443V29.8621H13.6943V27.1121Z",
|
|
213
212
|
fill: "#005FAD"
|
|
214
213
|
}),
|
|
215
|
-
/* @__PURE__ */
|
|
214
|
+
/* @__PURE__ */ i("path", {
|
|
216
215
|
d: "M16.4443 24.3621H13.6943V27.1121H16.4443V24.3621Z",
|
|
217
216
|
fill: "#005FAD"
|
|
218
217
|
}),
|
|
219
|
-
/* @__PURE__ */
|
|
218
|
+
/* @__PURE__ */ i("path", {
|
|
220
219
|
d: "M19.1943 27.1121H16.4443V29.8621H19.1943V27.1121Z",
|
|
221
220
|
fill: "#005FAD"
|
|
222
221
|
}),
|
|
223
|
-
/* @__PURE__ */
|
|
222
|
+
/* @__PURE__ */ i("path", {
|
|
224
223
|
d: "M21.9485 24.3621H19.1985V27.1121H21.9485V24.3621Z",
|
|
225
224
|
fill: "#005FAD"
|
|
226
225
|
}),
|
|
227
|
-
/* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ i("path", {
|
|
228
227
|
d: "M24.6985 27.1121H21.9485V29.8621H24.6985V27.1121Z",
|
|
229
228
|
fill: "#005FAD"
|
|
230
229
|
})
|
|
231
230
|
]
|
|
232
|
-
}), /* @__PURE__ */
|
|
231
|
+
}), /* @__PURE__ */ i("defs", { children: /* @__PURE__ */ i("clipPath", {
|
|
233
232
|
id: "clip0_11823_127803",
|
|
234
|
-
children: /* @__PURE__ */
|
|
233
|
+
children: /* @__PURE__ */ i("rect", {
|
|
235
234
|
width: "40",
|
|
236
235
|
height: "48",
|
|
237
236
|
fill: "white",
|
|
238
237
|
transform: "translate(0.00244141)"
|
|
239
238
|
})
|
|
240
239
|
}) })]
|
|
241
|
-
}), d = () => /* @__PURE__ */
|
|
240
|
+
}), d = () => /* @__PURE__ */ a("svg", {
|
|
242
241
|
width: "41",
|
|
243
242
|
height: "48",
|
|
244
243
|
viewBox: "0 0 41 48",
|
|
245
244
|
fill: "none",
|
|
246
245
|
xmlns: "http://www.w3.org/2000/svg",
|
|
247
|
-
children: [/* @__PURE__ */
|
|
246
|
+
children: [/* @__PURE__ */ a("g", {
|
|
248
247
|
clipPath: "url(#a)",
|
|
249
248
|
children: [
|
|
250
|
-
/* @__PURE__ */
|
|
249
|
+
/* @__PURE__ */ i("path", {
|
|
251
250
|
opacity: ".3",
|
|
252
251
|
d: "M27.934 9.848a4.128 4.128 0 0 1-4.123-4.124V0H5.384A5.384 5.384 0 0 0 0 5.384v32.442a5.384 5.384 0 0 0 5.385 5.384h22.12a5.383 5.383 0 0 0 5.381-5.384V9.85l-4.952-.002Z",
|
|
253
252
|
fill: "#FF9908"
|
|
254
253
|
}),
|
|
255
|
-
/* @__PURE__ */
|
|
254
|
+
/* @__PURE__ */ i("path", {
|
|
256
255
|
d: "M32.886 9.848h-4.951a4.128 4.128 0 0 1-4.124-4.124V0l9.075 9.848ZM36.79 34.12H11.784a3.212 3.212 0 0 0-3.212 3.212v7.456A3.212 3.212 0 0 0 11.783 48H36.79a3.212 3.212 0 0 0 3.212-3.212v-7.456a3.212 3.212 0 0 0-3.212-3.212Z",
|
|
257
256
|
fill: "#FF9908"
|
|
258
257
|
}),
|
|
259
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ i("path", {
|
|
260
259
|
d: "M16 42.674v1.456h-1.506v-1.456H16Zm4.836.638a1.7 1.7 0 0 1-.714.638c-.358.168-.75.25-1.146.238a2.696 2.696 0 0 1-1.666-.492 1.779 1.779 0 0 1-.714-1.378h1.548a.814.814 0 0 0 .242.536.746.746 0 0 0 .532.2.62.62 0 0 0 .442-.152.534.534 0 0 0 .162-.4.528.528 0 0 0-.15-.384 1.128 1.128 0 0 0-.37-.25 8.647 8.647 0 0 0-.612-.234 7.533 7.533 0 0 1-.932-.378 1.71 1.71 0 0 1-.62-.546 1.566 1.566 0 0 1-.26-.94c-.008-.33.087-.654.272-.926.19-.268.451-.476.754-.6.35-.141.724-.21 1.1-.2a2.468 2.468 0 0 1 1.6.476 1.822 1.822 0 0 1 .668 1.28h-1.574a.8.8 0 0 0-.218-.472.635.635 0 0 0-.472-.174.6.6 0 0 0-.412.136.5.5 0 0 0-.158.4.5.5 0 0 0 .142.36c.1.104.22.187.352.244.142.062.346.142.612.238.325.104.64.233.944.386.251.134.467.325.63.558a1.6 1.6 0 0 1 .264.952c.003.312-.082.618-.246.884Zm2.174-5.196 1.47 4.524 1.472-4.524h1.558l-2.094 6.014h-1.88l-2.084-6.014h1.558Zm9.738.484c.485.364.812.9.913 1.498h-1.54a1.174 1.174 0 0 0-.469-.514 1.429 1.429 0 0 0-.758-.2 1.416 1.416 0 0 0-1.105.464 1.8 1.8 0 0 0-.417 1.254c0 .572.146 1.011.439 1.318a1.642 1.642 0 0 0 1.245.46c.327.006.646-.094.91-.286.27-.202.465-.487.554-.812h-1.838v-1.046h3.055v1.438c-.118.358-.303.69-.544.978-.264.31-.59.56-.959.732a3.04 3.04 0 0 1-1.33.28 3.166 3.166 0 0 1-1.6-.386 2.642 2.642 0 0 1-1.05-1.086 3.342 3.342 0 0 1-.37-1.6 3.342 3.342 0 0 1 .37-1.59c.237-.455.6-.833 1.046-1.086a3.119 3.119 0 0 1 1.578-.386 3 3 0 0 1 1.87.57Z",
|
|
261
260
|
fill: "#fff"
|
|
262
261
|
}),
|
|
263
|
-
/* @__PURE__ */
|
|
262
|
+
/* @__PURE__ */ i("path", {
|
|
264
263
|
d: "M24.607 25.546h-.498a7.623 7.623 0 0 0-7.614-7.612 7.62 7.62 0 0 0-7.612 7.612h-.5a8.12 8.12 0 0 1 8.112-8.11 8.12 8.12 0 0 1 8.112 8.11Z",
|
|
265
264
|
fill: "#FF9908"
|
|
266
265
|
}),
|
|
267
|
-
/* @__PURE__ */
|
|
266
|
+
/* @__PURE__ */ i("path", {
|
|
268
267
|
d: "M28.02 17.436H4.97v.498h23.05v-.498ZM9.428 24.75H7.834v1.594h1.594V24.75Zm15.725 0h-1.594v1.594h1.594V24.75Z",
|
|
269
268
|
fill: "#FF9908"
|
|
270
269
|
}),
|
|
271
|
-
/* @__PURE__ */
|
|
270
|
+
/* @__PURE__ */ i("path", {
|
|
272
271
|
d: "M17.29 16.862h-1.593v1.594h1.594v-1.594ZM4.943 18.458a.798.798 0 1 0 0-1.596.798.798 0 0 0 0 1.596Zm23.002 0a.798.798 0 1 0 0-1.596.798.798 0 0 0 0 1.596Z",
|
|
273
272
|
fill: "#FF9908"
|
|
274
273
|
})
|
|
275
274
|
]
|
|
276
|
-
}), /* @__PURE__ */
|
|
275
|
+
}), /* @__PURE__ */ i("defs", { children: /* @__PURE__ */ i("clipPath", {
|
|
277
276
|
id: "a",
|
|
278
|
-
children: /* @__PURE__ */
|
|
277
|
+
children: /* @__PURE__ */ i("path", {
|
|
279
278
|
fill: "#fff",
|
|
280
279
|
d: "M0 0h40.002v48H0z"
|
|
281
280
|
})
|
|
282
281
|
}) })]
|
|
283
|
-
}), f = () => /* @__PURE__ */
|
|
282
|
+
}), f = () => /* @__PURE__ */ a("svg", {
|
|
284
283
|
width: "40",
|
|
285
284
|
height: "48",
|
|
286
285
|
viewBox: "0 0 40 48",
|
|
287
286
|
fill: "none",
|
|
288
287
|
xmlns: "http://www.w3.org/2000/svg",
|
|
289
|
-
children: [/* @__PURE__ */
|
|
288
|
+
children: [/* @__PURE__ */ a("g", {
|
|
290
289
|
clipPath: "url(#a)",
|
|
291
290
|
fill: "#6366F1",
|
|
292
|
-
children: [/* @__PURE__ */
|
|
291
|
+
children: [/* @__PURE__ */ i("path", {
|
|
293
292
|
opacity: ".3",
|
|
294
293
|
d: "M30.915 12.402a3.942 3.942 0 0 1-3.939-3.937V3H9.39a5.137 5.137 0 0 0-5.14 5.137v30.968a5.137 5.137 0 0 0 5.138 5.137h21.113a5.137 5.137 0 0 0 5.137-5.137V12.402h-4.724Z"
|
|
295
|
-
}), /* @__PURE__ */
|
|
296
|
-
}), /* @__PURE__ */
|
|
294
|
+
}), /* @__PURE__ */ i("path", { d: "M35.64 12.402h-4.725a3.942 3.942 0 0 1-3.939-3.937V3l8.663 9.402Zm-6.457 6.582H9.473a.716.716 0 0 1 0-1.43h19.71a.716.716 0 0 1 0 1.43Zm0 4.271H9.473a.716.716 0 0 1 0-1.43h19.71a.716.716 0 0 1 0 1.43Zm0 4.27H9.473a.716.716 0 0 1 0-1.43h19.71a.715.715 0 0 1 0 1.43Zm0 4.269H9.473a.714.714 0 1 1 0-1.43h19.71a.716.716 0 0 1 0 1.43Z" })]
|
|
295
|
+
}), /* @__PURE__ */ i("defs", { children: /* @__PURE__ */ i("clipPath", {
|
|
297
296
|
id: "a",
|
|
298
|
-
children: /* @__PURE__ */
|
|
297
|
+
children: /* @__PURE__ */ i("path", {
|
|
299
298
|
fill: "#fff",
|
|
300
299
|
d: "M4.25 3h31.5v42H4.25z"
|
|
301
300
|
})
|
|
@@ -307,21 +306,21 @@ var s = () => /* @__PURE__ */ o("svg", {
|
|
|
307
306
|
pdf: l,
|
|
308
307
|
png: u,
|
|
309
308
|
svg: d
|
|
310
|
-
}, m = t(
|
|
309
|
+
}, m = t(o, {
|
|
311
310
|
name: "SFileIcon",
|
|
312
311
|
slot: "Root"
|
|
313
|
-
})({}), h =
|
|
314
|
-
let
|
|
315
|
-
props:
|
|
312
|
+
})({}), h = r.forwardRef(function(t, r) {
|
|
313
|
+
let a = n({
|
|
314
|
+
props: t,
|
|
316
315
|
name: "SFileIcon"
|
|
317
|
-
}), { "aria-label": o, extension: s, role: c = o ? "img" : void 0, sx: l, ...u } =
|
|
318
|
-
...
|
|
316
|
+
}), { "aria-label": o, extension: s, role: c = o ? "img" : void 0, sx: l, ...u } = a, d = s ? p[s.toLowerCase()] ?? f : f, h = {
|
|
317
|
+
...a,
|
|
319
318
|
role: c
|
|
320
319
|
};
|
|
321
|
-
return /* @__PURE__ */
|
|
320
|
+
return /* @__PURE__ */ i(m, {
|
|
322
321
|
...u,
|
|
323
322
|
ownerState: h,
|
|
324
|
-
ref:
|
|
323
|
+
ref: r,
|
|
325
324
|
"aria-hidden": o ? void 0 : !0,
|
|
326
325
|
"aria-label": o,
|
|
327
326
|
role: c,
|
|
@@ -336,8 +335,8 @@ var s = () => /* @__PURE__ */ o("svg", {
|
|
|
336
335
|
height: "100%",
|
|
337
336
|
width: "auto"
|
|
338
337
|
}
|
|
339
|
-
}, ...
|
|
340
|
-
children: /* @__PURE__ */
|
|
338
|
+
}, ...e(l)],
|
|
339
|
+
children: /* @__PURE__ */ i(d, {})
|
|
341
340
|
});
|
|
342
341
|
});
|
|
343
342
|
h.displayName = "SFileIcon";
|