@solostylist/ui-kit 1.0.14 → 1.0.16
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/main.d.ts +54 -32
- package/dist/main.js +23 -21
- package/dist/s-autocomplete/index.d.ts +1 -0
- package/dist/s-button-link/index.d.ts +1 -0
- package/dist/s-button-link/s-button-link.d.ts +1 -1
- package/dist/s-checkbox/index.d.ts +1 -0
- package/dist/s-checkbox/s-checkbox.d.ts +1 -1
- package/dist/s-chips/index.d.ts +1 -0
- package/dist/s-chips/s-chips.d.ts +1 -1
- package/dist/s-dialog/index.d.ts +1 -0
- package/dist/s-dialog/s-dialog.d.ts +1 -1
- package/dist/s-empty/index.d.ts +1 -0
- package/dist/s-empty/s-empty.d.ts +1 -1
- package/dist/s-file-dropzone/index.d.ts +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.d.ts +2 -2
- package/dist/s-file-icon/index.d.ts +1 -0
- package/dist/s-form/index.d.ts +1 -0
- package/dist/s-form/s-form.d.ts +1 -1
- package/dist/s-i18n-provider/index.d.ts +1 -0
- package/dist/s-icon-button/index.d.ts +1 -0
- package/dist/s-icon-button/s-icon-button.d.ts +1 -1
- package/dist/s-image-gallery/index.d.ts +1 -0
- package/dist/s-image-gallery/s-image-gallery.d.ts +1 -1
- package/dist/s-label/index.d.ts +1 -0
- package/dist/s-label/s-label.d.ts +1 -1
- package/dist/s-multi-select/index.d.ts +1 -0
- package/dist/s-multi-select/s-multi-select.js +72 -70
- package/dist/s-no-ssr/index.d.ts +1 -0
- package/dist/s-pagination/index.d.ts +1 -0
- package/dist/s-pagination/s-pagination.d.ts +1 -1
- package/dist/s-select/index.d.ts +1 -0
- package/dist/s-select/s-select.d.ts +2 -2
- package/dist/s-skeleton/index.d.ts +1 -0
- package/dist/s-skeleton/s-skeleton.d.ts +1 -1
- package/dist/s-text-editor/index.d.ts +1 -0
- package/dist/s-text-field/index.d.ts +1 -0
- package/dist/s-text-field/s-text-field.d.ts +2 -2
- package/dist/s-text-truncation/index.d.ts +1 -0
- package/dist/s-text-truncation/s-text-truncation.d.ts +1 -1
- package/dist/s-theme-provider/index.d.ts +1 -0
- package/dist/s-theme-provider/s-theme-provider.d.ts +1 -1
- package/dist/s-tip/index.d.ts +1 -0
- package/dist/theme/customizations/inputs.js +1 -1
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -1,34 +1,56 @@
|
|
|
1
|
-
export { default as SAutocomplete } from './s-autocomplete';
|
|
2
|
-
export {
|
|
3
|
-
export { default as
|
|
4
|
-
export {
|
|
5
|
-
export { default as
|
|
6
|
-
export {
|
|
7
|
-
export
|
|
8
|
-
export {
|
|
9
|
-
export
|
|
10
|
-
export {
|
|
11
|
-
export
|
|
12
|
-
export {
|
|
13
|
-
export { default as
|
|
14
|
-
export {
|
|
15
|
-
export { default as
|
|
16
|
-
export type {
|
|
17
|
-
export { default as
|
|
18
|
-
export { default as
|
|
19
|
-
export {
|
|
20
|
-
export { default as
|
|
21
|
-
export {
|
|
22
|
-
export { default as
|
|
23
|
-
export {
|
|
24
|
-
export { default as
|
|
25
|
-
export {
|
|
26
|
-
export { default as
|
|
27
|
-
export {
|
|
28
|
-
export { default as
|
|
29
|
-
export {
|
|
30
|
-
export
|
|
31
|
-
export {
|
|
32
|
-
export { default as
|
|
1
|
+
export { default as SAutocomplete } from './s-autocomplete/index';
|
|
2
|
+
export type { SAutocompleteProps } from './s-autocomplete/index';
|
|
3
|
+
export { default as SButtonLink } from './s-button-link/index';
|
|
4
|
+
export type { SButtonLinkProps } from './s-button-link/index';
|
|
5
|
+
export { default as STextEditor } from './s-text-editor/index';
|
|
6
|
+
export type { STextEditorProps } from './s-text-editor/index';
|
|
7
|
+
export { default as SCheckbox } from './s-checkbox/index';
|
|
8
|
+
export type { SCheckboxProps } from './s-checkbox/index';
|
|
9
|
+
export { default as SChips } from './s-chips/index';
|
|
10
|
+
export type { SChipsProps } from './s-chips/index';
|
|
11
|
+
export { default as SDataTable } from './s-data-table/index';
|
|
12
|
+
export type { ColumnDef, SDataTableProps } from './s-data-table/index';
|
|
13
|
+
export { default as SDialogConfirm, DialogConfirmProvider, useDialogConfirm } from './s-dialog-confirm/index';
|
|
14
|
+
export type { DialogConfirmContextProps, DialogConfirmOpenOptions } from './s-dialog-confirm/index';
|
|
15
|
+
export { default as SDialogMessage, DialogMessageProvider, useDialogMessage } from './s-dialog-message/index';
|
|
16
|
+
export type { DialogMessageContextProps, DialogMessageOpenOptions } from './s-dialog-message/index';
|
|
17
|
+
export { default as SError } from './s-error/index';
|
|
18
|
+
export { default as SEmpty } from './s-empty/index';
|
|
19
|
+
export type { SEmptyProps } from './s-empty/index';
|
|
20
|
+
export { default as SDialog } from './s-dialog/index';
|
|
21
|
+
export type { SDialogProps } from './s-dialog/index';
|
|
22
|
+
export { default as SFileDropzone } from './s-file-dropzone/index';
|
|
23
|
+
export type { CustomFile, SFileDropzoneProps } from './s-file-dropzone/index';
|
|
24
|
+
export { default as SFileIcon } from './s-file-icon/index';
|
|
25
|
+
export type { SFileIconProps } from './s-file-icon/index';
|
|
26
|
+
export { default as SI18nProvider } from './s-i18n-provider/index';
|
|
27
|
+
export type { SI18nProviderProps } from './s-i18n-provider/index';
|
|
28
|
+
export { default as SIconButton } from './s-icon-button/index';
|
|
29
|
+
export type { SIconButtonProps } from './s-icon-button/index';
|
|
30
|
+
export { default as SLabel } from './s-label/index';
|
|
31
|
+
export type { SLabelProps } from './s-label/index';
|
|
32
|
+
export { default as SMultiSelect } from './s-multi-select/index';
|
|
33
|
+
export type { SMultiSelectProps } from './s-multi-select/index';
|
|
34
|
+
export { default as SNoSsr } from './s-no-ssr/index';
|
|
35
|
+
export type { SNoSsrProps } from './s-no-ssr/index';
|
|
36
|
+
export { default as STextField } from './s-text-field/index';
|
|
37
|
+
export type { STextFieldProps } from './s-text-field/index';
|
|
38
|
+
export { default as SPagination } from './s-pagination/index';
|
|
39
|
+
export type { SPaginationProps } from './s-pagination/index';
|
|
40
|
+
export { default as SSelect } from './s-select/index';
|
|
41
|
+
export type { SSelectProps } from './s-select/index';
|
|
42
|
+
export { default as SSkeleton } from './s-skeleton/index';
|
|
43
|
+
export type { SSkeletonProps } from './s-skeleton/index';
|
|
44
|
+
export { default as STip } from './s-tip/index';
|
|
45
|
+
export type { STipProps } from './s-tip/index';
|
|
46
|
+
export { default as STextTruncation } from './s-text-truncation/index';
|
|
47
|
+
export { default as SSnackbarMessage, SnackbarMessageProvider, useSnackbarMessage } from './s-snackbar-message/index';
|
|
48
|
+
export type { SnackbarMessageContextProps, SnackbarMessageOpenOptions } from './s-snackbar-message/index';
|
|
49
|
+
export { default as SImageGallery } from './s-image-gallery/index';
|
|
50
|
+
export type { SImageGalleryProps } from './s-image-gallery/index';
|
|
51
|
+
export { default as SForm } from './s-form/index';
|
|
52
|
+
export type { SFormProps } from './s-form/index';
|
|
53
|
+
export { default as SThemeProvider } from './s-theme-provider/index';
|
|
54
|
+
export type { SThemeProviderProps } from './s-theme-provider/index';
|
|
33
55
|
export * from './hooks';
|
|
34
56
|
export * from './utils';
|
package/dist/main.js
CHANGED
|
@@ -9,8 +9,8 @@ import { DialogMessageProvider as D, default as P, useDialogMessage as T } from
|
|
|
9
9
|
import { default as v } from "./s-error/s-error.js";
|
|
10
10
|
import { default as k } from "./s-empty/s-empty.js";
|
|
11
11
|
import { default as C } from "./s-dialog/s-dialog.js";
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
12
|
+
import { default as F } from "./s-file-dropzone/s-file-dropzone.js";
|
|
13
|
+
import { default as h } from "./s-file-icon/s-file-icon.js";
|
|
14
14
|
import { default as z } from "./s-i18n-provider/s-i18n-provider.js";
|
|
15
15
|
import { default as j } from "./s-icon-button/s-icon-button.js";
|
|
16
16
|
import { default as G } from "./s-label/s-label.js";
|
|
@@ -24,18 +24,19 @@ import { default as Y } from "./s-tip/s-tip.js";
|
|
|
24
24
|
import { default as _ } from "./s-text-truncation/s-text-truncation.js";
|
|
25
25
|
import { default as ee, SnackbarMessageProvider as oe, useSnackbarMessage as re } from "./s-snackbar-message/s-snackbar-message.js";
|
|
26
26
|
import { default as te } from "./s-image-gallery/s-image-gallery.js";
|
|
27
|
-
import { default as le } from "./s-
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
27
|
+
import { default as le } from "./s-form/s-form.js";
|
|
28
|
+
import { default as me } from "./s-theme-provider/s-theme-provider.js";
|
|
29
|
+
import { useDialog as ue } from "./hooks/use-dialog.js";
|
|
30
|
+
import { usePopover as xe } from "./hooks/use-popover.js";
|
|
31
|
+
import { formatDatePosted as ie } from "./utils/dayjs.js";
|
|
32
|
+
import { bytesToSize as ne } from "./utils/bytes-to-size.js";
|
|
33
|
+
import { LogLevel as De, Logger as Pe, createLogger as Te, logger as be } from "./utils/logger.js";
|
|
34
|
+
import { default as Me } from "dayjs";
|
|
34
35
|
export {
|
|
35
36
|
i as DialogConfirmProvider,
|
|
36
37
|
D as DialogMessageProvider,
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
De as LogLevel,
|
|
39
|
+
Pe as Logger,
|
|
39
40
|
r as SAutocomplete,
|
|
40
41
|
t as SButtonLink,
|
|
41
42
|
m as SCheckbox,
|
|
@@ -46,8 +47,9 @@ export {
|
|
|
46
47
|
P as SDialogMessage,
|
|
47
48
|
k as SEmpty,
|
|
48
49
|
v as SError,
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
F as SFileDropzone,
|
|
51
|
+
h as SFileIcon,
|
|
52
|
+
le as SForm,
|
|
51
53
|
z as SI18nProvider,
|
|
52
54
|
j as SIconButton,
|
|
53
55
|
te as SImageGallery,
|
|
@@ -61,17 +63,17 @@ export {
|
|
|
61
63
|
l as STextEditor,
|
|
62
64
|
K as STextField,
|
|
63
65
|
_ as STextTruncation,
|
|
64
|
-
|
|
66
|
+
me as SThemeProvider,
|
|
65
67
|
Y as STip,
|
|
66
68
|
oe as SnackbarMessageProvider,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
ne as bytesToSize,
|
|
70
|
+
Te as createLogger,
|
|
71
|
+
Me as dayjs,
|
|
72
|
+
ie as formatDatePosted,
|
|
73
|
+
be as logger,
|
|
74
|
+
ue as useDialog,
|
|
73
75
|
n as useDialogConfirm,
|
|
74
76
|
T as useDialogMessage,
|
|
75
|
-
|
|
77
|
+
xe as usePopover,
|
|
76
78
|
re as useSnackbarMessage
|
|
77
79
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { CheckboxProps } from '@mui/material';
|
|
3
|
-
interface SCheckboxProps extends Omit<CheckboxProps, 'content'> {
|
|
3
|
+
export interface SCheckboxProps extends Omit<CheckboxProps, 'content'> {
|
|
4
4
|
content?: string | React.ReactNode;
|
|
5
5
|
}
|
|
6
6
|
declare const SCheckbox: React.ForwardRefExoticComponent<Omit<SCheckboxProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
package/dist/s-chips/index.d.ts
CHANGED
package/dist/s-dialog/index.d.ts
CHANGED
package/dist/s-empty/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from './s-file-dropzone';
|
|
2
|
-
export type { CustomFile } from './s-file-dropzone';
|
|
2
|
+
export type { CustomFile, SFileDropzoneProps } from './s-file-dropzone';
|
|
@@ -4,13 +4,13 @@ export type CustomFile = File | FileWithPath | {
|
|
|
4
4
|
name: string;
|
|
5
5
|
size: number;
|
|
6
6
|
};
|
|
7
|
-
interface SFileDropzoneProps extends DropzoneOptions {
|
|
7
|
+
export interface SFileDropzoneProps extends DropzoneOptions {
|
|
8
8
|
caption?: string;
|
|
9
9
|
files?: CustomFile[];
|
|
10
10
|
onRemove?: (file: CustomFile) => void;
|
|
11
11
|
onRemoveAll?: () => void;
|
|
12
12
|
onUpload?: () => void;
|
|
13
|
-
label?: string;
|
|
13
|
+
label?: string | React.ReactNode;
|
|
14
14
|
disabledUpload?: boolean;
|
|
15
15
|
error?: string;
|
|
16
16
|
required?: boolean;
|
package/dist/s-form/index.d.ts
CHANGED
package/dist/s-form/s-form.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IconButtonProps, TooltipProps } from '@mui/material';
|
|
3
|
-
interface SIconButtonProps extends IconButtonProps {
|
|
3
|
+
export interface SIconButtonProps extends IconButtonProps {
|
|
4
4
|
tooltip: string;
|
|
5
5
|
tooltipOptions: TooltipProps;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ReactImageGalleryProps } from 'react-image-gallery';
|
|
3
|
-
interface SImageGalleryProps extends ReactImageGalleryProps {
|
|
3
|
+
export interface SImageGalleryProps extends ReactImageGalleryProps {
|
|
4
4
|
}
|
|
5
5
|
declare const SImageGallery: ({ ...props }: SImageGalleryProps) => React.JSX.Element;
|
|
6
6
|
export default SImageGallery;
|
package/dist/s-label/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { SxProps } from '@mui/material';
|
|
3
3
|
import { Theme } from '../theme/types';
|
|
4
|
-
interface SLabelProps {
|
|
4
|
+
export interface SLabelProps {
|
|
5
5
|
label?: string | React.ReactNode;
|
|
6
6
|
content?: string | React.ReactNode;
|
|
7
7
|
children?: React.ReactNode;
|
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as c } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import * as d from "react";
|
|
3
3
|
import s, { forwardRef as B } from "react";
|
|
4
4
|
import { Button as V } from "@mui/material";
|
|
5
5
|
import { E as Z } from "../SSRBase-BSdFRe_j.js";
|
|
6
6
|
import { usePopover as D } from "../hooks/use-popover.js";
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
7
|
+
import H from "../s-chips/s-chips.js";
|
|
8
|
+
import { L as I, M as G } from "../Menu-B8rPlcSd.js";
|
|
9
|
+
import { a as f, P as o } from "../createTheme-DDycScYN.js";
|
|
9
10
|
import { c as M } from "../identifier-CHPjnqaz.js";
|
|
10
|
-
import { u as
|
|
11
|
-
import { g as
|
|
12
|
-
import { u as
|
|
13
|
-
import { u as
|
|
14
|
-
import { g as
|
|
15
|
-
const $ =
|
|
11
|
+
import { u as U, s as z, c as A, b as _, m as W } from "../memoTheme-DX35GGEJ.js";
|
|
12
|
+
import { g as q, d as E, m } from "../menuItemClasses-DLFqc90k.js";
|
|
13
|
+
import { u as J } from "../useEnhancedEffect-CJGo-L3B.js";
|
|
14
|
+
import { u as K, B as Q } from "../useSlot-B682hoPx.js";
|
|
15
|
+
import { g as R } from "../generateUtilityClasses-Z7VQRhBn.js";
|
|
16
|
+
const $ = R("MuiListItemIcon", ["root", "alignItemsFlexStart"]), j = R("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]), X = (e, t) => {
|
|
16
17
|
const {
|
|
17
|
-
ownerState:
|
|
18
|
+
ownerState: a
|
|
18
19
|
} = e;
|
|
19
|
-
return [t.root,
|
|
20
|
-
},
|
|
20
|
+
return [t.root, a.dense && t.dense, a.divider && t.divider, !a.disableGutters && t.gutters];
|
|
21
|
+
}, Y = (e) => {
|
|
21
22
|
const {
|
|
22
23
|
disabled: t,
|
|
23
|
-
dense:
|
|
24
|
+
dense: a,
|
|
24
25
|
divider: n,
|
|
25
26
|
disableGutters: l,
|
|
26
27
|
selected: u,
|
|
27
28
|
classes: r
|
|
28
|
-
} = e, i =
|
|
29
|
-
root: ["root",
|
|
30
|
-
},
|
|
29
|
+
} = e, i = A({
|
|
30
|
+
root: ["root", a && "dense", t && "disabled", !l && "gutters", n && "divider", u && "selected"]
|
|
31
|
+
}, q, r);
|
|
31
32
|
return {
|
|
32
33
|
...r,
|
|
33
34
|
...i
|
|
34
35
|
};
|
|
35
|
-
},
|
|
36
|
-
shouldForwardProp: (e) =>
|
|
36
|
+
}, ee = z(Q, {
|
|
37
|
+
shouldForwardProp: (e) => _(e) || e === "classes",
|
|
37
38
|
name: "MuiMenuItem",
|
|
38
39
|
slot: "Root",
|
|
39
|
-
overridesResolver:
|
|
40
|
-
})(
|
|
40
|
+
overridesResolver: X
|
|
41
|
+
})(W(({
|
|
41
42
|
theme: e
|
|
42
43
|
}) => ({
|
|
43
44
|
...e.typography.body1,
|
|
@@ -135,44 +136,44 @@ const $ = h("MuiListItemIcon", ["root", "alignItemsFlexStart"]), j = h("MuiListI
|
|
|
135
136
|
}
|
|
136
137
|
}
|
|
137
138
|
}]
|
|
138
|
-
}))), P = /* @__PURE__ */ d.forwardRef(function(t,
|
|
139
|
-
const n =
|
|
139
|
+
}))), P = /* @__PURE__ */ d.forwardRef(function(t, a) {
|
|
140
|
+
const n = U({
|
|
140
141
|
props: t,
|
|
141
142
|
name: "MuiMenuItem"
|
|
142
143
|
}), {
|
|
143
144
|
autoFocus: l = !1,
|
|
144
145
|
component: u = "li",
|
|
145
146
|
dense: r = !1,
|
|
146
|
-
divider:
|
|
147
|
+
divider: p = !1,
|
|
147
148
|
disableGutters: i = !1,
|
|
148
149
|
focusVisibleClassName: b,
|
|
149
|
-
role:
|
|
150
|
+
role: k = "menuitem",
|
|
150
151
|
tabIndex: y,
|
|
151
|
-
className:
|
|
152
|
+
className: F,
|
|
152
153
|
...L
|
|
153
154
|
} = n, x = d.useContext(I), C = d.useMemo(() => ({
|
|
154
155
|
dense: r || x.dense || !1,
|
|
155
156
|
disableGutters: i
|
|
156
157
|
}), [x.dense, r, i]), g = d.useRef(null);
|
|
157
|
-
|
|
158
|
+
J(() => {
|
|
158
159
|
l && (g.current ? g.current.focus() : process.env.NODE_ENV !== "production" && console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."));
|
|
159
160
|
}, [l]);
|
|
160
161
|
const T = {
|
|
161
162
|
...n,
|
|
162
163
|
dense: C.dense,
|
|
163
|
-
divider:
|
|
164
|
+
divider: p,
|
|
164
165
|
disableGutters: i
|
|
165
|
-
}, v =
|
|
166
|
+
}, v = Y(n), N = K(g, a);
|
|
166
167
|
let O;
|
|
167
|
-
return n.disabled || (O = y !== void 0 ? y : -1), /* @__PURE__ */
|
|
168
|
+
return n.disabled || (O = y !== void 0 ? y : -1), /* @__PURE__ */ c.jsx(I.Provider, {
|
|
168
169
|
value: C,
|
|
169
|
-
children: /* @__PURE__ */
|
|
170
|
+
children: /* @__PURE__ */ c.jsx(ee, {
|
|
170
171
|
ref: N,
|
|
171
|
-
role:
|
|
172
|
+
role: k,
|
|
172
173
|
tabIndex: O,
|
|
173
174
|
component: u,
|
|
174
175
|
focusVisibleClassName: M(v.focusVisible, b),
|
|
175
|
-
className: M(v.root,
|
|
176
|
+
className: M(v.root, F),
|
|
176
177
|
...L,
|
|
177
178
|
ownerState: T,
|
|
178
179
|
classes: v
|
|
@@ -189,44 +190,44 @@ process.env.NODE_ENV !== "production" && (P.propTypes = {
|
|
|
189
190
|
* Focus will also be triggered if the value changes from false to true.
|
|
190
191
|
* @default false
|
|
191
192
|
*/
|
|
192
|
-
autoFocus:
|
|
193
|
+
autoFocus: o.bool,
|
|
193
194
|
/**
|
|
194
195
|
* The content of the component.
|
|
195
196
|
*/
|
|
196
|
-
children:
|
|
197
|
+
children: o.node,
|
|
197
198
|
/**
|
|
198
199
|
* Override or extend the styles applied to the component.
|
|
199
200
|
*/
|
|
200
|
-
classes:
|
|
201
|
+
classes: o.object,
|
|
201
202
|
/**
|
|
202
203
|
* @ignore
|
|
203
204
|
*/
|
|
204
|
-
className:
|
|
205
|
+
className: o.string,
|
|
205
206
|
/**
|
|
206
207
|
* The component used for the root node.
|
|
207
208
|
* Either a string to use a HTML element or a component.
|
|
208
209
|
*/
|
|
209
|
-
component:
|
|
210
|
+
component: o.elementType,
|
|
210
211
|
/**
|
|
211
212
|
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
212
213
|
* The prop defaults to the value inherited from the parent Menu component.
|
|
213
214
|
* @default false
|
|
214
215
|
*/
|
|
215
|
-
dense:
|
|
216
|
+
dense: o.bool,
|
|
216
217
|
/**
|
|
217
218
|
* @ignore
|
|
218
219
|
*/
|
|
219
|
-
disabled:
|
|
220
|
+
disabled: o.bool,
|
|
220
221
|
/**
|
|
221
222
|
* If `true`, the left and right padding is removed.
|
|
222
223
|
* @default false
|
|
223
224
|
*/
|
|
224
|
-
disableGutters:
|
|
225
|
+
disableGutters: o.bool,
|
|
225
226
|
/**
|
|
226
227
|
* If `true`, a 1px light border is added to the bottom of the menu item.
|
|
227
228
|
* @default false
|
|
228
229
|
*/
|
|
229
|
-
divider:
|
|
230
|
+
divider: o.bool,
|
|
230
231
|
/**
|
|
231
232
|
* This prop can help identify which element has keyboard focus.
|
|
232
233
|
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
@@ -235,26 +236,26 @@ process.env.NODE_ENV !== "production" && (P.propTypes = {
|
|
|
235
236
|
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
236
237
|
* if needed.
|
|
237
238
|
*/
|
|
238
|
-
focusVisibleClassName:
|
|
239
|
+
focusVisibleClassName: o.string,
|
|
239
240
|
/**
|
|
240
241
|
* @ignore
|
|
241
242
|
*/
|
|
242
|
-
role:
|
|
243
|
+
role: o.string,
|
|
243
244
|
/**
|
|
244
245
|
* If `true`, the component is selected.
|
|
245
246
|
* @default false
|
|
246
247
|
*/
|
|
247
|
-
selected:
|
|
248
|
+
selected: o.bool,
|
|
248
249
|
/**
|
|
249
250
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
250
251
|
*/
|
|
251
|
-
sx:
|
|
252
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
252
253
|
/**
|
|
253
254
|
* @default 0
|
|
254
255
|
*/
|
|
255
|
-
tabIndex:
|
|
256
|
+
tabIndex: o.number
|
|
256
257
|
});
|
|
257
|
-
const
|
|
258
|
+
const te = /* @__PURE__ */ new Map([
|
|
258
259
|
[
|
|
259
260
|
"bold",
|
|
260
261
|
/* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("path", { d: "M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z" }))
|
|
@@ -280,29 +281,29 @@ const ee = /* @__PURE__ */ new Map([
|
|
|
280
281
|
/* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("path", { d: "M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z" }))
|
|
281
282
|
]
|
|
282
283
|
]);
|
|
283
|
-
var
|
|
284
|
-
for (var
|
|
285
|
-
|
|
284
|
+
var ae = Object.defineProperty, oe = Object.defineProperties, se = Object.getOwnPropertyDescriptors, w = Object.getOwnPropertySymbols, re = Object.prototype.hasOwnProperty, ne = Object.prototype.propertyIsEnumerable, h = (e, t, a) => t in e ? ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a, le = (e, t) => {
|
|
285
|
+
for (var a in t || (t = {}))
|
|
286
|
+
re.call(t, a) && h(e, a, t[a]);
|
|
286
287
|
if (w)
|
|
287
|
-
for (var
|
|
288
|
-
|
|
288
|
+
for (var a of w(t))
|
|
289
|
+
ne.call(t, a) && h(e, a, t[a]);
|
|
289
290
|
return e;
|
|
290
|
-
},
|
|
291
|
-
const
|
|
292
|
-
|
|
293
|
-
function
|
|
291
|
+
}, ie = (e, t) => oe(e, se(t));
|
|
292
|
+
const S = B((e, t) => /* @__PURE__ */ s.createElement(Z, ie(le({ ref: t }, e), { weights: te })));
|
|
293
|
+
S.displayName = "CaretDown";
|
|
294
|
+
function Me({ label: e, onChange: t, options: a, value: n = [] }) {
|
|
294
295
|
const l = D(), u = d.useCallback(
|
|
295
|
-
(r,
|
|
296
|
+
(r, p) => {
|
|
296
297
|
let i = [...n];
|
|
297
|
-
|
|
298
|
+
p ? i.push(r) : i = i.filter((b) => b !== r), t == null || t(i);
|
|
298
299
|
},
|
|
299
300
|
[t, n]
|
|
300
301
|
);
|
|
301
|
-
return /* @__PURE__ */
|
|
302
|
-
/* @__PURE__ */
|
|
302
|
+
return /* @__PURE__ */ c.jsxs(d.Fragment, { children: [
|
|
303
|
+
/* @__PURE__ */ c.jsx(
|
|
303
304
|
V,
|
|
304
305
|
{
|
|
305
|
-
endIcon: /* @__PURE__ */
|
|
306
|
+
endIcon: /* @__PURE__ */ c.jsx(S, {}),
|
|
306
307
|
onClick: l.handleOpen,
|
|
307
308
|
ref: l.anchorRef,
|
|
308
309
|
sx: {
|
|
@@ -311,31 +312,32 @@ function Oe({ label: e, onChange: t, options: o, value: n = [] }) {
|
|
|
311
312
|
children: e
|
|
312
313
|
}
|
|
313
314
|
),
|
|
314
|
-
/* @__PURE__ */
|
|
315
|
-
|
|
315
|
+
/* @__PURE__ */ c.jsx(
|
|
316
|
+
G,
|
|
316
317
|
{
|
|
317
318
|
anchorEl: l.anchorRef.current,
|
|
318
319
|
onClose: l.handleClose,
|
|
319
320
|
open: l.open,
|
|
320
321
|
slotProps: { paper: { sx: { width: "250px" } } },
|
|
321
|
-
children:
|
|
322
|
-
const
|
|
323
|
-
return /* @__PURE__ */
|
|
322
|
+
children: a.map((r) => {
|
|
323
|
+
const p = n.includes(r.value);
|
|
324
|
+
return /* @__PURE__ */ c.jsx(
|
|
324
325
|
P,
|
|
325
326
|
{
|
|
326
327
|
onClick: () => {
|
|
327
|
-
u(r.value, !
|
|
328
|
+
u(r.value, !p);
|
|
328
329
|
},
|
|
329
|
-
selected:
|
|
330
|
+
selected: p,
|
|
330
331
|
children: r.label
|
|
331
332
|
},
|
|
332
333
|
r.label
|
|
333
334
|
);
|
|
334
335
|
})
|
|
335
336
|
}
|
|
336
|
-
)
|
|
337
|
+
),
|
|
338
|
+
/* @__PURE__ */ c.jsx(H, { chips: a.filter((r) => n.includes(r.value)).map((r) => r.label) })
|
|
337
339
|
] });
|
|
338
340
|
}
|
|
339
341
|
export {
|
|
340
|
-
|
|
342
|
+
Me as default
|
|
341
343
|
};
|
package/dist/s-no-ssr/index.d.ts
CHANGED
package/dist/s-select/index.d.ts
CHANGED
|
@@ -2,13 +2,13 @@ import { SelectProps } from '@mui/material';
|
|
|
2
2
|
type BaseOption = string | number | {
|
|
3
3
|
[key: string]: unknown;
|
|
4
4
|
};
|
|
5
|
-
type SSelectProps<T extends BaseOption = string> = Omit<SelectProps, 'error' | 'variant'> & {
|
|
5
|
+
export type SSelectProps<T extends BaseOption = string> = Omit<SelectProps, 'error' | 'variant'> & {
|
|
6
6
|
options?: T[];
|
|
7
7
|
optionLabel?: T extends object ? keyof T : never;
|
|
8
8
|
optionValue?: T extends object ? keyof T : never;
|
|
9
9
|
placeholder?: string;
|
|
10
10
|
variant?: 'outlined' | 'filled' | 'standard';
|
|
11
|
-
label?: string;
|
|
11
|
+
label?: string | React.ReactNode;
|
|
12
12
|
error?: string;
|
|
13
13
|
required?: boolean;
|
|
14
14
|
simple?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { SkeletonProps } from '@mui/material';
|
|
3
|
-
interface SSkeletonProps extends Omit<SkeletonProps, 'variant' | 'height' | 'width' | 'component'> {
|
|
3
|
+
export interface SSkeletonProps extends Omit<SkeletonProps, 'variant' | 'height' | 'width' | 'component'> {
|
|
4
4
|
variant?: 'circular' | 'rectangular' | 'rounded' | 'text';
|
|
5
5
|
height?: number | string;
|
|
6
6
|
width?: number | string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TextField } from '@mui/material';
|
|
3
|
-
type STextFieldProps = Omit<React.ComponentProps<typeof TextField>, 'error'> & {
|
|
4
|
-
label?: string;
|
|
3
|
+
export type STextFieldProps = Omit<React.ComponentProps<typeof TextField>, 'error'> & {
|
|
4
|
+
label?: string | React.ReactNode;
|
|
5
5
|
required?: boolean;
|
|
6
6
|
error?: string;
|
|
7
7
|
htmlFor?: string;
|
package/dist/s-tip/index.d.ts
CHANGED