@solostylist/ui-kit 1.0.86 → 1.0.88
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/{Box-Bfkq7uIw.js → Box-Cf99MewL.js} +5 -5
- package/dist/ChevronRight-D5BryGH5.js +11 -0
- package/dist/{Close-C1lLcTQu.js → Close-CKpTrk7X.js} +1 -1
- package/dist/{Menu-DbldWmqB.js → Menu-D2LDo0yd.js} +14 -14
- package/dist/{MenuItem-BHTJlag0.js → MenuItem-JkMrBIMD.js} +6 -6
- package/dist/{Select-CT0Hpudx.js → Select-4BjFewNI.js} +9 -9
- package/dist/{Stack-W0weBtf9.js → Stack-UjxgGQu9.js} +5 -5
- package/dist/{TransitionGroup-q306siJs.js → TransitionGroup-DzGaAPUk.js} +1 -1
- package/dist/{Typography-CeAbQ9LX.js → Typography-CGoVq27h.js} +4 -4
- package/dist/{buttonBaseClasses-CR6HkqQ3.js → buttonBaseClasses-jCihfot4.js} +2 -2
- package/dist/{colorManipulator-CPZHCebU.js → colorManipulator-ep5lERxB.js} +12 -11
- package/dist/{createSvgIcon-9XY7lJan.js → createSvgIcon-vJH0FaMW.js} +77 -78
- package/dist/{createTheme-wt8sY36y.js → createTheme-DjqDAiZm.js} +154 -153
- package/dist/{defaultTheme-YL2LZ-0U.js → defaultTheme-CaAxts6z.js} +1 -1
- package/dist/{extendSxProp-B1pEE-ot.js → extendSxProp-BnfiUPQK.js} +1 -1
- package/dist/{generateUtilityClasses-D-O3RBPF.js → generateUtilityClasses-BtVDwGrk.js} +1 -1
- package/dist/{iconButtonClasses-WmsPyI4v.js → iconButtonClasses-qz3jor3M.js} +2 -2
- package/dist/{index-DAXzX0k9.js → index-DcImsw9J.js} +4 -4
- package/dist/main.d.ts +5 -1
- package/dist/main.js +107 -103
- package/dist/{outlinedInputClasses-Cor6Mcxo.js → outlinedInputClasses-DM19xjo3.js} +2 -2
- package/dist/s-chat-input/index.d.ts +2 -0
- package/dist/s-chat-input/index.js +4 -0
- package/dist/s-chat-input/package.json +5 -0
- package/dist/s-chat-input/s-chat-input.d.ts +11 -0
- package/dist/s-chat-input/s-chat-input.js +185 -0
- package/dist/s-copyable-text/s-copyable-text.js +1 -1
- package/dist/s-data-table/s-data-table.js +5 -5
- package/dist/s-date-picker/s-date-picker.js +8 -8
- package/dist/s-datetime-picker/s-datetime-picker.js +11 -11
- package/dist/s-dialog/s-dialog.js +1 -1
- package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
- package/dist/s-dialog-message/s-dialog-message.js +2 -2
- package/dist/s-file-dropzone/s-file-dropzone.js +4 -4
- package/dist/s-file-icon/s-file-icon.js +1 -1
- package/dist/s-image-comparison/index.d.ts +2 -0
- package/dist/s-image-comparison/index.js +4 -0
- package/dist/s-image-comparison/package.json +5 -0
- package/dist/s-image-comparison/s-image-comparison.d.ts +11 -0
- package/dist/s-image-comparison/s-image-comparison.js +155 -0
- package/dist/s-image-modal/s-image-modal.js +94 -98
- package/dist/s-interactive-gallery/s-interactive-gallery.js +69 -69
- package/dist/s-label/s-label.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.js +1 -1
- package/dist/s-multi-select/s-multi-select.js +3 -3
- package/dist/s-smart-text-field/s-smart-text-field.js +2 -2
- package/dist/s-text-editor/s-text-editor-toolbar.js +4 -4
- package/dist/s-text-editor/s-text-editor.js +1 -1
- package/dist/s-text-field/s-text-field.js +11 -2
- package/dist/s-tip/s-tip.js +3 -3
- package/dist/{svgIconClasses-BYFQaEQ7.js → svgIconClasses-CBCi8U9g.js} +2 -2
- package/dist/{tabClasses-CXQXD3XZ.js → tabClasses-Bub2PPlp.js} +2 -2
- package/dist/theme/components/avatar.js +1 -1
- package/dist/theme/components/chip.js +1 -1
- package/dist/theme/customizations/data-display.js +5 -5
- package/dist/theme/customizations/inputs.js +9 -14
- package/dist/theme/customizations/navigation.js +3 -3
- package/dist/theme/customizations/surfaces.js +1 -1
- package/dist/theme/theme-primitives.js +2 -2
- package/dist/{typographyClasses-DTwotNbm.js → typographyClasses-C7fhAsUD.js} +2 -2
- package/dist/{useMobilePicker-CYRSYIKP.js → useMobilePicker-DmFQ075P.js} +13 -13
- package/dist/{useSlot-B_4ipGBP.js → useSlot-DFSsVuMw.js} +6 -6
- package/dist/{useTheme-D1MJ3g_i.js → useTheme-DPtt6ExE.js} +1 -1
- package/dist/{useThemeProps-CTcSO3lC.js → useThemeProps-DQiCrjPQ.js} +2 -2
- package/dist/{warning-DyDdgu8-.js → warning-UxpRUL3s.js} +3 -3
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export { default as SButton } from './s-button/index';
|
|
|
4
4
|
export type { SButtonProps } from './s-button/index';
|
|
5
5
|
export { default as SButtonLink } from './s-button-link/index';
|
|
6
6
|
export type { SButtonLinkProps } from './s-button-link/index';
|
|
7
|
+
export { default as SChatInput } from './s-chat-input/index';
|
|
8
|
+
export type { SChatInputProps } from './s-chat-input/index';
|
|
7
9
|
export { default as STextEditor } from './s-text-editor/index';
|
|
8
10
|
export type { STextEditorProps } from './s-text-editor/index';
|
|
9
11
|
export { default as SCheckbox } from './s-checkbox/index';
|
|
@@ -75,11 +77,13 @@ export type { SMovingBorderProps } from './s-moving-border/index';
|
|
|
75
77
|
export { default as SCopyableText } from './s-copyable-text/index';
|
|
76
78
|
export type { SCopyableTextProps } from './s-copyable-text/index';
|
|
77
79
|
export { default as SInteractiveGallery, MediaItem } from './s-interactive-gallery/index';
|
|
78
|
-
export type { SInteractiveGalleryProps, MediaItemProps
|
|
80
|
+
export type { SInteractiveGalleryProps, MediaItemProps } from './s-interactive-gallery/index';
|
|
79
81
|
export { default as SImageModal } from './s-image-modal/index';
|
|
80
82
|
export type { MediaItemType } from './s-image-modal/index';
|
|
81
83
|
export type { SImageModalProps } from './s-image-modal/index';
|
|
82
84
|
export { default as SLazyImage } from './s-lazy-image/index';
|
|
83
85
|
export type { SLazyImageProps } from './s-lazy-image/index';
|
|
86
|
+
export { default as SImageComparison } from './s-image-comparison/index';
|
|
87
|
+
export type { SImageComparisonProps } from './s-image-comparison/index';
|
|
84
88
|
export * from './hooks';
|
|
85
89
|
export * from './utils';
|
package/dist/main.js
CHANGED
|
@@ -1,112 +1,116 @@
|
|
|
1
1
|
import { default as t } from "./s-autocomplete/s-autocomplete.js";
|
|
2
2
|
import { default as f } from "./s-button/s-button.js";
|
|
3
3
|
import { default as m } from "./s-button-link/s-button-link.js";
|
|
4
|
-
import { default as s } from "./s-
|
|
4
|
+
import { default as s } from "./s-chat-input/s-chat-input.js";
|
|
5
|
+
import { default as S } from "./s-text-editor/s-text-editor.js";
|
|
5
6
|
import "./s-text-editor/s-text-editor-toolbar.js";
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { DialogConfirmProvider as
|
|
11
|
-
import { DialogMessageProvider as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { SSmartTextField as
|
|
31
|
-
import { SCopilotKitProvider as
|
|
32
|
-
import { SStripeCVC as
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { MediaItem as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
7
|
+
import { default as u } from "./s-checkbox/s-checkbox.js";
|
|
8
|
+
import { default as n } from "./s-chip/s-chip.js";
|
|
9
|
+
import { default as c } from "./s-chips/s-chips.js";
|
|
10
|
+
import { default as C } from "./s-data-table/s-data-table.js";
|
|
11
|
+
import { DialogConfirmProvider as T, default as v, useDialogConfirm as I } from "./s-dialog-confirm/s-dialog-confirm.js";
|
|
12
|
+
import { DialogMessageProvider as b, default as k, useDialogMessage as L } from "./s-dialog-message/s-dialog-message.js";
|
|
13
|
+
import { default as F } from "./s-error/s-error.js";
|
|
14
|
+
import { default as B } from "./s-empty/s-empty.js";
|
|
15
|
+
import { default as E } from "./s-dialog/s-dialog.js";
|
|
16
|
+
import { default as N } from "./s-file-dropzone/s-file-dropzone.js";
|
|
17
|
+
import { default as w } from "./s-file-icon/s-file-icon.js";
|
|
18
|
+
import { default as K } from "./s-i18n-provider/s-i18n-provider.js";
|
|
19
|
+
import { default as q } from "./s-icon-button/s-icon-button.js";
|
|
20
|
+
import { default as J } from "./s-label/s-label.js";
|
|
21
|
+
import { default as Q } from "./s-multi-select/s-multi-select.js";
|
|
22
|
+
import { default as U } from "./s-no-ssr/s-no-ssr.js";
|
|
23
|
+
import { default as X } from "./s-text-field/s-text-field.js";
|
|
24
|
+
import { default as Z } from "./s-pagination/s-pagination.js";
|
|
25
|
+
import { default as $ } from "./s-select/s-select.js";
|
|
26
|
+
import { default as oe } from "./s-skeleton/s-skeleton.js";
|
|
27
|
+
import { default as te } from "./s-tip/s-tip.js";
|
|
28
|
+
import { default as fe } from "./s-text-truncation/s-text-truncation.js";
|
|
29
|
+
import { default as me, SnackbarMessageProvider as pe, useSnackbarMessage as se } from "./s-snackbar-message/s-snackbar-message.js";
|
|
30
|
+
import { default as Se } from "./s-form/s-form.js";
|
|
31
|
+
import { SSmartTextField as ue } from "./s-smart-text-field/s-smart-text-field.js";
|
|
32
|
+
import { SCopilotKitProvider as ne } from "./s-copilot-kit-provider/s-copilot-kit-provider.js";
|
|
33
|
+
import { SStripeCVC as ce, SStripeExpiry as De, SStripeNumber as Ce, StripeTextField as Pe } from "./s-stripe/s-stripe.js";
|
|
34
|
+
import { default as ve } from "./s-theme-provider/s-theme-provider.js";
|
|
35
|
+
import { default as Me } from "./s-datetime-picker/s-datetime-picker.js";
|
|
36
|
+
import { default as ke } from "./s-date-picker/s-date-picker.js";
|
|
37
|
+
import { default as ye } from "./s-localization-provider/s-localization-provider.js";
|
|
38
|
+
import { default as he } from "./s-gradient-icon/s-gradient-icon.js";
|
|
39
|
+
import { default as ze } from "./s-glow-button/s-glow-button.js";
|
|
40
|
+
import { default as Ge } from "./s-moving-border/s-moving-border.js";
|
|
41
|
+
import { default as je } from "./s-copyable-text/s-copyable-text.js";
|
|
42
|
+
import { MediaItem as Ae, default as Ke } from "./s-interactive-gallery/s-interactive-gallery.js";
|
|
43
|
+
import { default as qe } from "./s-image-modal/s-image-modal.js";
|
|
44
|
+
import { default as Je } from "./s-lazy-image/s-lazy-image.js";
|
|
45
|
+
import { default as Qe } from "./s-image-comparison/s-image-comparison.js";
|
|
46
|
+
import { useDialog as Ue } from "./hooks/use-dialog.js";
|
|
47
|
+
import { usePopover as Xe } from "./hooks/use-popover.js";
|
|
48
|
+
import { formatDatePosted as Ze } from "./utils/dayjs.js";
|
|
49
|
+
import { bytesToSize as $e } from "./utils/bytes-to-size.js";
|
|
50
|
+
import { LogLevel as oo, Logger as ro, createLogger as to, logger as ao } from "./utils/logger.js";
|
|
51
|
+
import { default as lo } from "dayjs";
|
|
50
52
|
export {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
T as DialogConfirmProvider,
|
|
54
|
+
b as DialogMessageProvider,
|
|
55
|
+
oo as LogLevel,
|
|
56
|
+
ro as Logger,
|
|
57
|
+
Ae as MediaItem,
|
|
56
58
|
t as SAutocomplete,
|
|
57
59
|
f as SButton,
|
|
58
60
|
m as SButtonLink,
|
|
59
|
-
|
|
60
|
-
u as
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
N as
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
K as
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
ce as
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
61
|
+
s as SChatInput,
|
|
62
|
+
u as SCheckbox,
|
|
63
|
+
n as SChip,
|
|
64
|
+
c as SChips,
|
|
65
|
+
ne as SCopilotKitProvider,
|
|
66
|
+
je as SCopyableText,
|
|
67
|
+
C as SDataTable,
|
|
68
|
+
ke as SDatePicker,
|
|
69
|
+
Me as SDateTimePicker,
|
|
70
|
+
E as SDialog,
|
|
71
|
+
v as SDialogConfirm,
|
|
72
|
+
k as SDialogMessage,
|
|
73
|
+
B as SEmpty,
|
|
74
|
+
F as SError,
|
|
75
|
+
N as SFileDropzone,
|
|
76
|
+
w as SFileIcon,
|
|
77
|
+
Se as SForm,
|
|
78
|
+
ze as SGlowButton,
|
|
79
|
+
he as SGradientIcon,
|
|
80
|
+
K as SI18nProvider,
|
|
81
|
+
q as SIconButton,
|
|
82
|
+
Qe as SImageComparison,
|
|
83
|
+
qe as SImageModal,
|
|
84
|
+
Ke as SInteractiveGallery,
|
|
85
|
+
J as SLabel,
|
|
86
|
+
Je as SLazyImage,
|
|
87
|
+
ye as SLocalizationProvider,
|
|
88
|
+
Ge as SMovingBorder,
|
|
89
|
+
Q as SMultiSelect,
|
|
90
|
+
U as SNoSsr,
|
|
91
|
+
Z as SPagination,
|
|
92
|
+
$ as SSelect,
|
|
93
|
+
oe as SSkeleton,
|
|
94
|
+
ue as SSmartTextField,
|
|
95
|
+
me as SSnackbarMessage,
|
|
96
|
+
ce as SStripeCVC,
|
|
97
|
+
De as SStripeExpiry,
|
|
98
|
+
Ce as SStripeNumber,
|
|
99
|
+
S as STextEditor,
|
|
100
|
+
X as STextField,
|
|
101
|
+
fe as STextTruncation,
|
|
102
|
+
ve as SThemeProvider,
|
|
103
|
+
te as STip,
|
|
104
|
+
pe as SnackbarMessageProvider,
|
|
105
|
+
Pe as StripeTextField,
|
|
106
|
+
$e as bytesToSize,
|
|
107
|
+
to as createLogger,
|
|
108
|
+
lo as dayjs,
|
|
109
|
+
Ze as formatDatePosted,
|
|
110
|
+
ao as logger,
|
|
111
|
+
Ue as useDialog,
|
|
112
|
+
I as useDialogConfirm,
|
|
113
|
+
L as useDialogMessage,
|
|
114
|
+
Xe as usePopover,
|
|
115
|
+
se as useSnackbarMessage
|
|
112
116
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as n } from "./generateUtilityClasses-
|
|
2
|
-
import { g as e } from "./colorManipulator-
|
|
1
|
+
import { g as n } from "./generateUtilityClasses-BtVDwGrk.js";
|
|
2
|
+
import { g as e } from "./colorManipulator-ep5lERxB.js";
|
|
3
3
|
function l(t) {
|
|
4
4
|
return e("MuiInputBase", t);
|
|
5
5
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { STextFieldProps } from '../s-text-field';
|
|
3
|
+
export interface SChatInputProps extends Omit<STextFieldProps, 'onSubmit'> {
|
|
4
|
+
onSubmit?: (value: string, files?: File[]) => void;
|
|
5
|
+
onFileSelect?: (files: File[]) => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
acceptedFileTypes?: string;
|
|
8
|
+
maxFileSize?: number;
|
|
9
|
+
}
|
|
10
|
+
declare const SChatInput: React.ForwardRefExoticComponent<Omit<SChatInputProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export default SChatInput;
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { j as t } from "../jsx-runtime-DywqP_6a.js";
|
|
2
|
+
import { forwardRef as k, useState as x, useId as F, useEffect as E } from "react";
|
|
3
|
+
import { Box as o, outlinedInputClasses as K } from "@mui/material";
|
|
4
|
+
import A from "../s-file-icon/s-file-icon.js";
|
|
5
|
+
import j from "../s-icon-button/s-icon-button.js";
|
|
6
|
+
import O from "../s-text-field/s-text-field.js";
|
|
7
|
+
import { C as P } from "../Close-CKpTrk7X.js";
|
|
8
|
+
import { c as I } from "../createSvgIcon-vJH0FaMW.js";
|
|
9
|
+
const W = I(/* @__PURE__ */ t.jsx("path", {
|
|
10
|
+
d: "m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"
|
|
11
|
+
}), "ArrowUpward"), B = I(/* @__PURE__ */ t.jsx("path", {
|
|
12
|
+
d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6z"
|
|
13
|
+
}), "AttachFile"), N = k(
|
|
14
|
+
({ onSubmit: c, onFileSelect: d, disabled: i, acceptedFileTypes: b, maxFileSize: g, ...C }, U) => {
|
|
15
|
+
const [p, v] = x(""), [l, m] = x([]), [a, h] = x(/* @__PURE__ */ new Map()), w = F(), u = (e) => e.type.startsWith("image/"), z = (e) => {
|
|
16
|
+
const s = `${e.name}-${e.size}-${e.lastModified}`;
|
|
17
|
+
if (a.has(s))
|
|
18
|
+
return a.get(s);
|
|
19
|
+
if (u(e)) {
|
|
20
|
+
const r = URL.createObjectURL(e);
|
|
21
|
+
return h((n) => new Map(n).set(s, r)), r;
|
|
22
|
+
}
|
|
23
|
+
return "";
|
|
24
|
+
}, $ = (e) => {
|
|
25
|
+
v(e.target.value);
|
|
26
|
+
}, y = () => {
|
|
27
|
+
i || p.trim().length === 0 && l.length === 0 || (c == null || c(p, l), v(""), a.forEach((e) => URL.revokeObjectURL(e)), h(/* @__PURE__ */ new Map()), m([]));
|
|
28
|
+
}, L = (e) => {
|
|
29
|
+
const r = Array.from(e.target.files || []).filter((n) => !(g && n.size > g));
|
|
30
|
+
m((n) => [...n, ...r]), d == null || d(r), e.target.value = "";
|
|
31
|
+
}, M = (e) => {
|
|
32
|
+
const s = l[e];
|
|
33
|
+
if (s && u(s)) {
|
|
34
|
+
const r = `${s.name}-${s.size}-${s.lastModified}`, n = a.get(r);
|
|
35
|
+
n && (URL.revokeObjectURL(n), h((f) => {
|
|
36
|
+
const R = new Map(f);
|
|
37
|
+
return R.delete(r), R;
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
m((r) => r.filter((n, f) => f !== e));
|
|
41
|
+
}, V = (e) => {
|
|
42
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), y());
|
|
43
|
+
};
|
|
44
|
+
return E(() => () => {
|
|
45
|
+
a.forEach((e) => URL.revokeObjectURL(e));
|
|
46
|
+
}, [a]), /* @__PURE__ */ t.jsxs(o, { border: "1px solid", borderColor: "divider", borderRadius: 2, padding: "8px 12px", children: [
|
|
47
|
+
/* @__PURE__ */ t.jsx(
|
|
48
|
+
O,
|
|
49
|
+
{
|
|
50
|
+
placeholder: "Enter your message here...",
|
|
51
|
+
disabled: i,
|
|
52
|
+
value: p,
|
|
53
|
+
onChange: $,
|
|
54
|
+
onKeyDown: V,
|
|
55
|
+
multiline: !0,
|
|
56
|
+
minRows: 1,
|
|
57
|
+
maxRows: 10,
|
|
58
|
+
size: "small",
|
|
59
|
+
variant: "outlined",
|
|
60
|
+
fullWidth: !0,
|
|
61
|
+
inputRef: U,
|
|
62
|
+
slotProps: {
|
|
63
|
+
input: {
|
|
64
|
+
sx: {
|
|
65
|
+
height: "100%",
|
|
66
|
+
backgroundColor: "transparent",
|
|
67
|
+
border: "none",
|
|
68
|
+
padding: 0,
|
|
69
|
+
[`&.${K.focused}`]: {
|
|
70
|
+
outline: "none"
|
|
71
|
+
},
|
|
72
|
+
"& fieldset": {
|
|
73
|
+
border: "none"
|
|
74
|
+
},
|
|
75
|
+
"&:hover fieldset": {
|
|
76
|
+
border: "none"
|
|
77
|
+
},
|
|
78
|
+
"&.Mui-focused fieldset": {
|
|
79
|
+
border: "none"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
...C
|
|
85
|
+
}
|
|
86
|
+
),
|
|
87
|
+
l.length > 0 && /* @__PURE__ */ t.jsx(o, { mt: 1, children: l.map((e, s) => {
|
|
88
|
+
const r = u(e), n = e.name.split(".").pop();
|
|
89
|
+
return /* @__PURE__ */ t.jsxs(
|
|
90
|
+
o,
|
|
91
|
+
{
|
|
92
|
+
display: "flex",
|
|
93
|
+
alignItems: "center",
|
|
94
|
+
justifyContent: "space-between",
|
|
95
|
+
sx: {
|
|
96
|
+
bgcolor: "var(--s-palette-action-hover)",
|
|
97
|
+
border: "1px solid var(--s-palette-divider)",
|
|
98
|
+
borderRadius: 1,
|
|
99
|
+
p: 1,
|
|
100
|
+
mb: 0.5
|
|
101
|
+
},
|
|
102
|
+
children: [
|
|
103
|
+
/* @__PURE__ */ t.jsxs(o, { display: "flex", alignItems: "center", gap: 1, children: [
|
|
104
|
+
r ? /* @__PURE__ */ t.jsx(
|
|
105
|
+
o,
|
|
106
|
+
{
|
|
107
|
+
component: "img",
|
|
108
|
+
src: z(e),
|
|
109
|
+
alt: e.name,
|
|
110
|
+
sx: {
|
|
111
|
+
width: 40,
|
|
112
|
+
height: 40,
|
|
113
|
+
borderRadius: 1,
|
|
114
|
+
objectFit: "cover",
|
|
115
|
+
border: "1px solid var(--s-palette-divider)"
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
) : /* @__PURE__ */ t.jsx(A, { extension: n }),
|
|
119
|
+
/* @__PURE__ */ t.jsxs(o, { children: [
|
|
120
|
+
/* @__PURE__ */ t.jsx(o, { component: "span", sx: { fontSize: "0.875rem", fontWeight: 500 }, children: e.name }),
|
|
121
|
+
/* @__PURE__ */ t.jsxs(o, { component: "span", sx: { fontSize: "0.75rem", color: "text.secondary", ml: 1 }, children: [
|
|
122
|
+
"(",
|
|
123
|
+
Math.round(e.size / 1024),
|
|
124
|
+
" KB)"
|
|
125
|
+
] })
|
|
126
|
+
] })
|
|
127
|
+
] }),
|
|
128
|
+
/* @__PURE__ */ t.jsx(j, { size: "small", onClick: () => M(s), sx: { minWidth: "auto", p: 0.5 }, children: /* @__PURE__ */ t.jsx(P, {}) })
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
`${e.name}-${s}`
|
|
132
|
+
);
|
|
133
|
+
}) }),
|
|
134
|
+
/* @__PURE__ */ t.jsxs(o, { display: "flex", justifyContent: "space-between", alignItems: "center", mt: 1, children: [
|
|
135
|
+
/* @__PURE__ */ t.jsxs(o, { children: [
|
|
136
|
+
/* @__PURE__ */ t.jsx(
|
|
137
|
+
"input",
|
|
138
|
+
{
|
|
139
|
+
type: "file",
|
|
140
|
+
multiple: !0,
|
|
141
|
+
accept: b,
|
|
142
|
+
onChange: L,
|
|
143
|
+
style: { display: "none" },
|
|
144
|
+
id: `file-attachment-input-${w}`,
|
|
145
|
+
disabled: i
|
|
146
|
+
}
|
|
147
|
+
),
|
|
148
|
+
/* @__PURE__ */ t.jsx("label", { htmlFor: `file-attachment-input-${w}`, children: /* @__PURE__ */ t.jsx(
|
|
149
|
+
j,
|
|
150
|
+
{
|
|
151
|
+
component: "span",
|
|
152
|
+
disabled: i,
|
|
153
|
+
size: "small",
|
|
154
|
+
sx: {
|
|
155
|
+
transition: "transform 0.3s ease",
|
|
156
|
+
"&:hover": {
|
|
157
|
+
transform: "scale(1.1)"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
children: /* @__PURE__ */ t.jsx(B, {})
|
|
161
|
+
}
|
|
162
|
+
) })
|
|
163
|
+
] }),
|
|
164
|
+
/* @__PURE__ */ t.jsx(
|
|
165
|
+
j,
|
|
166
|
+
{
|
|
167
|
+
onClick: y,
|
|
168
|
+
disabled: i,
|
|
169
|
+
size: "small",
|
|
170
|
+
sx: {
|
|
171
|
+
transition: "transform 0.3s ease",
|
|
172
|
+
"&:hover": {
|
|
173
|
+
transform: "scale(1.2)"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
children: /* @__PURE__ */ t.jsx(W, {})
|
|
177
|
+
}
|
|
178
|
+
)
|
|
179
|
+
] })
|
|
180
|
+
] });
|
|
181
|
+
}
|
|
182
|
+
);
|
|
183
|
+
export {
|
|
184
|
+
N as default
|
|
185
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import { useState as x } from "react";
|
|
3
3
|
import { Paper as d, Box as m, IconButton as h, Typography as u } from "@mui/material";
|
|
4
|
-
import { c as n } from "../createSvgIcon-
|
|
4
|
+
import { c as n } from "../createSvgIcon-vJH0FaMW.js";
|
|
5
5
|
const f = n(/* @__PURE__ */ e.jsx("path", {
|
|
6
6
|
d: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
|
|
7
7
|
}), "Check"), j = n(/* @__PURE__ */ e.jsx("path", {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { j as r } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import * as y from "react";
|
|
3
3
|
import ve from "../s-empty/s-empty.js";
|
|
4
|
-
import { c as j, P as e } from "../createTheme-
|
|
5
|
-
import { s as S, b as N, r as se, c as q, u as $, a as I, m as _ } from "../createSvgIcon-
|
|
6
|
-
import { g as B } from "../colorManipulator-
|
|
7
|
-
import { g as M } from "../generateUtilityClasses-
|
|
4
|
+
import { c as j, P as e } from "../createTheme-DjqDAiZm.js";
|
|
5
|
+
import { s as S, b as N, r as se, c as q, u as $, a as I, m as _ } from "../createSvgIcon-vJH0FaMW.js";
|
|
6
|
+
import { g as B } from "../colorManipulator-ep5lERxB.js";
|
|
7
|
+
import { g as M } from "../generateUtilityClasses-BtVDwGrk.js";
|
|
8
8
|
import { u as Te, a as Ce } from "../useFormControl-B3RPiDsz.js";
|
|
9
|
-
import { b as L, B as ke, r as je, m as we } from "../useSlot-
|
|
9
|
+
import { b as L, B as ke, r as je, m as we } from "../useSlot-DFSsVuMw.js";
|
|
10
10
|
import { c as X } from "../createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
11
11
|
function Re(o) {
|
|
12
12
|
return B("PrivateSwitchBase", o);
|
|
@@ -3,14 +3,14 @@ import { useTheme as I, TextField as z } from "@mui/material";
|
|
|
3
3
|
import L from "../s-form/s-form.js";
|
|
4
4
|
import { _ as O, a } from "../objectWithoutPropertiesLoose-DiWPeE4c.js";
|
|
5
5
|
import * as p from "react";
|
|
6
|
-
import { P as e } from "../createTheme-
|
|
7
|
-
import { u as P, a as Y, b as U, c as Q, r as T, d as q, P as B, e as H, f as $, g as K, h as Z, i as G, j as J, C as X, k as m, l as M, m as ee, v as F, s as R, n as oe, D as te, o as se } from "../useMobilePicker-
|
|
8
|
-
import { u as y } from "../warning-
|
|
9
|
-
import { g as ae } from "../colorManipulator-
|
|
10
|
-
import { g as ne } from "../generateUtilityClasses-
|
|
11
|
-
import { s as N, b as re } from "../createSvgIcon-
|
|
12
|
-
import { T as le } from "../Typography-
|
|
13
|
-
import { r as h, a as C } from "../useSlot-
|
|
6
|
+
import { P as e } from "../createTheme-DjqDAiZm.js";
|
|
7
|
+
import { u as P, a as Y, b as U, c as Q, r as T, d as q, P as B, e as H, f as $, g as K, h as Z, i as G, j as J, C as X, k as m, l as M, m as ee, v as F, s as R, n as oe, D as te, o as se } from "../useMobilePicker-DmFQ075P.js";
|
|
8
|
+
import { u as y } from "../warning-UxpRUL3s.js";
|
|
9
|
+
import { g as ae } from "../colorManipulator-ep5lERxB.js";
|
|
10
|
+
import { g as ne } from "../generateUtilityClasses-BtVDwGrk.js";
|
|
11
|
+
import { s as N, b as re } from "../createSvgIcon-vJH0FaMW.js";
|
|
12
|
+
import { T as le } from "../Typography-CGoVq27h.js";
|
|
13
|
+
import { r as h, a as C } from "../useSlot-DFSsVuMw.js";
|
|
14
14
|
function ie(l) {
|
|
15
15
|
return ae("MuiDatePickerToolbar", l);
|
|
16
16
|
}
|
|
@@ -3,18 +3,18 @@ import { useTheme as jt, TextField as Nt } from "@mui/material";
|
|
|
3
3
|
import Rt from "../s-form/s-form.js";
|
|
4
4
|
import { a as w, _ as pe } from "../objectWithoutPropertiesLoose-DiWPeE4c.js";
|
|
5
5
|
import * as c from "react";
|
|
6
|
-
import { P as e, c as Yo, j as Ft } from "../createTheme-
|
|
7
|
-
import { p as Et, q as To, s as Ce, v as Bt, u as xe, t as Lt, w as Fo, x as At, b as ze, h as $t, i as _t, j as Wt, C as Ht, y as zt, T as Ut, z as to, a as go, d as De, A as Ze, B as Yt, E as Kt, c as qt, F as Ko, M as Ae, G as $e, P as Xt, H as Gt, I as Je, r as Eo, J as Bo, K as Ee, f as Qt, L as Zt, S as Jt, N as qo, O as Xo, Q as Go, R as Qo, U as Zo, V as eo, W as Lo, X as en, Y as on, Z as tn, _ as Xe, k as Be, l as Jo, m as nn, $ as mo, a0 as sn, a1 as Ao, n as rn, a2 as an, a3 as ln, D as cn, o as un } from "../useMobilePicker-
|
|
8
|
-
import { u as fe } from "../warning-
|
|
9
|
-
import { g as ke, a as oo } from "../colorManipulator-
|
|
10
|
-
import { g as Pe } from "../generateUtilityClasses-
|
|
11
|
-
import { u as no, s as $, a as ve, b as ce, m as Ue, c as et, f as so } from "../createSvgIcon-
|
|
12
|
-
import { g as dn, t as se } from "../tabClasses-
|
|
13
|
-
import { B as ot, r as Ye, d as Ve, b as Fe, u as tt, a as nt } from "../useSlot-
|
|
14
|
-
import { d as st, a as rt, u as yo, b as _e, c as mn, o as pn, e as at } from "../Menu-
|
|
6
|
+
import { P as e, c as Yo, j as Ft } from "../createTheme-DjqDAiZm.js";
|
|
7
|
+
import { p as Et, q as To, s as Ce, v as Bt, u as xe, t as Lt, w as Fo, x as At, b as ze, h as $t, i as _t, j as Wt, C as Ht, y as zt, T as Ut, z as to, a as go, d as De, A as Ze, B as Yt, E as Kt, c as qt, F as Ko, M as Ae, G as $e, P as Xt, H as Gt, I as Je, r as Eo, J as Bo, K as Ee, f as Qt, L as Zt, S as Jt, N as qo, O as Xo, Q as Go, R as Qo, U as Zo, V as eo, W as Lo, X as en, Y as on, Z as tn, _ as Xe, k as Be, l as Jo, m as nn, $ as mo, a0 as sn, a1 as Ao, n as rn, a2 as an, a3 as ln, D as cn, o as un } from "../useMobilePicker-DmFQ075P.js";
|
|
8
|
+
import { u as fe } from "../warning-UxpRUL3s.js";
|
|
9
|
+
import { g as ke, a as oo } from "../colorManipulator-ep5lERxB.js";
|
|
10
|
+
import { g as Pe } from "../generateUtilityClasses-BtVDwGrk.js";
|
|
11
|
+
import { u as no, s as $, a as ve, b as ce, m as Ue, c as et, f as so } from "../createSvgIcon-vJH0FaMW.js";
|
|
12
|
+
import { g as dn, t as se } from "../tabClasses-Bub2PPlp.js";
|
|
13
|
+
import { B as ot, r as Ye, d as Ve, b as Fe, u as tt, a as nt } from "../useSlot-DFSsVuMw.js";
|
|
14
|
+
import { d as st, a as rt, u as yo, b as _e, c as mn, o as pn, e as at } from "../Menu-D2LDo0yd.js";
|
|
15
15
|
import { u as vo } from "../useEnhancedEffect-CJGo-L3B.js";
|
|
16
|
-
import { T as fn } from "../Typography-
|
|
17
|
-
import { g as bn, M as it } from "../MenuItem-
|
|
16
|
+
import { T as fn } from "../Typography-CGoVq27h.js";
|
|
17
|
+
import { g as bn, M as it } from "../MenuItem-JkMrBIMD.js";
|
|
18
18
|
const hn = (o) => {
|
|
19
19
|
const {
|
|
20
20
|
absolute: t,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as r } from "../jsx-runtime-DywqP_6a.js";
|
|
2
|
-
import { C as j } from "../Close-
|
|
2
|
+
import { C as j } from "../Close-CKpTrk7X.js";
|
|
3
3
|
import { Dialog as h, DialogTitle as p, Stack as f, Typography as t, IconButton as m, DialogContent as g, DialogActions as u } from "@mui/material";
|
|
4
4
|
const v = ({
|
|
5
5
|
title: s,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as n } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import * as r from "react";
|
|
3
|
-
import { C as p } from "../Close-
|
|
3
|
+
import { C as p } from "../Close-CKpTrk7X.js";
|
|
4
4
|
import { Dialog as g, DialogTitle as j, Stack as D, IconButton as v, DialogContent as y, DialogActions as b, Button as d } from "@mui/material";
|
|
5
5
|
import { useDialog as k } from "../hooks/use-dialog.js";
|
|
6
|
-
import { T as m } from "../Typography-
|
|
6
|
+
import { T as m } from "../Typography-CGoVq27h.js";
|
|
7
7
|
const w = ({
|
|
8
8
|
title: e,
|
|
9
9
|
content: o,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { j as o } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import { C as u } from "../Close-
|
|
3
|
+
import { C as u } from "../Close-CKpTrk7X.js";
|
|
4
4
|
import { Dialog as p, DialogTitle as g, Stack as m, IconButton as j, DialogContent as C, DialogActions as f, Button as D } from "@mui/material";
|
|
5
5
|
import { useDialog as k } from "../hooks/use-dialog.js";
|
|
6
|
-
import { T as c } from "../Typography-
|
|
6
|
+
import { T as c } from "../Typography-CGoVq27h.js";
|
|
7
7
|
const v = ({
|
|
8
8
|
title: t,
|
|
9
9
|
content: e,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import * as y from "react";
|
|
3
|
-
import { c as d } from "../createSvgIcon-
|
|
3
|
+
import { c as d } from "../createSvgIcon-vJH0FaMW.js";
|
|
4
4
|
import { Avatar as b, Tooltip as C, IconButton as I, Button as z } from "@mui/material";
|
|
5
5
|
import { useDropzone as S } from "react-dropzone";
|
|
6
6
|
import k from "../s-file-icon/s-file-icon.js";
|
|
7
7
|
import w from "../s-form/s-form.js";
|
|
8
8
|
import { bytesToSize as B } from "../utils/bytes-to-size.js";
|
|
9
|
-
import { B as c } from "../Box-
|
|
10
|
-
import { S as t } from "../Stack-
|
|
11
|
-
import { T as o } from "../Typography-
|
|
9
|
+
import { B as c } from "../Box-Cf99MewL.js";
|
|
10
|
+
import { S as t } from "../Stack-UjxgGQu9.js";
|
|
11
|
+
import { T as o } from "../Typography-CGoVq27h.js";
|
|
12
12
|
const D = d(/* @__PURE__ */ e.jsx("path", {
|
|
13
13
|
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
14
14
|
}), "CloseOutlined"), F = d(/* @__PURE__ */ e.jsx("path", {
|