@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.
Files changed (44) hide show
  1. package/dist/main.d.ts +54 -32
  2. package/dist/main.js +23 -21
  3. package/dist/s-autocomplete/index.d.ts +1 -0
  4. package/dist/s-button-link/index.d.ts +1 -0
  5. package/dist/s-button-link/s-button-link.d.ts +1 -1
  6. package/dist/s-checkbox/index.d.ts +1 -0
  7. package/dist/s-checkbox/s-checkbox.d.ts +1 -1
  8. package/dist/s-chips/index.d.ts +1 -0
  9. package/dist/s-chips/s-chips.d.ts +1 -1
  10. package/dist/s-dialog/index.d.ts +1 -0
  11. package/dist/s-dialog/s-dialog.d.ts +1 -1
  12. package/dist/s-empty/index.d.ts +1 -0
  13. package/dist/s-empty/s-empty.d.ts +1 -1
  14. package/dist/s-file-dropzone/index.d.ts +1 -1
  15. package/dist/s-file-dropzone/s-file-dropzone.d.ts +2 -2
  16. package/dist/s-file-icon/index.d.ts +1 -0
  17. package/dist/s-form/index.d.ts +1 -0
  18. package/dist/s-form/s-form.d.ts +1 -1
  19. package/dist/s-i18n-provider/index.d.ts +1 -0
  20. package/dist/s-icon-button/index.d.ts +1 -0
  21. package/dist/s-icon-button/s-icon-button.d.ts +1 -1
  22. package/dist/s-image-gallery/index.d.ts +1 -0
  23. package/dist/s-image-gallery/s-image-gallery.d.ts +1 -1
  24. package/dist/s-label/index.d.ts +1 -0
  25. package/dist/s-label/s-label.d.ts +1 -1
  26. package/dist/s-multi-select/index.d.ts +1 -0
  27. package/dist/s-multi-select/s-multi-select.js +72 -70
  28. package/dist/s-no-ssr/index.d.ts +1 -0
  29. package/dist/s-pagination/index.d.ts +1 -0
  30. package/dist/s-pagination/s-pagination.d.ts +1 -1
  31. package/dist/s-select/index.d.ts +1 -0
  32. package/dist/s-select/s-select.d.ts +2 -2
  33. package/dist/s-skeleton/index.d.ts +1 -0
  34. package/dist/s-skeleton/s-skeleton.d.ts +1 -1
  35. package/dist/s-text-editor/index.d.ts +1 -0
  36. package/dist/s-text-field/index.d.ts +1 -0
  37. package/dist/s-text-field/s-text-field.d.ts +2 -2
  38. package/dist/s-text-truncation/index.d.ts +1 -0
  39. package/dist/s-text-truncation/s-text-truncation.d.ts +1 -1
  40. package/dist/s-theme-provider/index.d.ts +1 -0
  41. package/dist/s-theme-provider/s-theme-provider.d.ts +1 -1
  42. package/dist/s-tip/index.d.ts +1 -0
  43. package/dist/theme/customizations/inputs.js +1 -1
  44. 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 { default as SButtonLink } from './s-button-link';
3
- export { default as STextEditor } from './s-text-editor';
4
- export { default as SCheckbox } from './s-checkbox';
5
- export { default as SChips } from './s-chips';
6
- export { default as SDataTable } from './s-data-table';
7
- export type { ColumnDef, SDataTableProps } from './s-data-table';
8
- export { default as SDialogConfirm, DialogConfirmProvider, useDialogConfirm } from './s-dialog-confirm';
9
- export type { DialogConfirmContextProps, DialogConfirmOpenOptions } from './s-dialog-confirm';
10
- export { default as SDialogMessage, DialogMessageProvider, useDialogMessage } from './s-dialog-message';
11
- export type { DialogMessageContextProps, DialogMessageOpenOptions } from './s-dialog-message';
12
- export { default as SError } from './s-error';
13
- export { default as SEmpty } from './s-empty';
14
- export { default as SDialog } from './s-dialog';
15
- export { default as SFileDropzone } from './s-file-dropzone';
16
- export type { CustomFile } from './s-file-dropzone';
17
- export { default as SFileIcon } from './s-file-icon';
18
- export { default as SI18nProvider } from './s-i18n-provider';
19
- export { default as SIconButton } from './s-icon-button';
20
- export { default as SLabel } from './s-label';
21
- export { default as SMultiSelect } from './s-multi-select';
22
- export { default as SNoSsr } from './s-no-ssr';
23
- export { default as STextField } from './s-text-field';
24
- export { default as SPagination } from './s-pagination';
25
- export { default as SSelect } from './s-select';
26
- export { default as SSkeleton } from './s-skeleton';
27
- export { default as STip } from './s-tip';
28
- export { default as STextTruncation } from './s-text-truncation';
29
- export { default as SSnackbarMessage, SnackbarMessageProvider, useSnackbarMessage } from './s-snackbar-message';
30
- export type { SnackbarMessageContextProps, SnackbarMessageOpenOptions } from './s-snackbar-message';
31
- export { default as SImageGallery } from './s-image-gallery';
32
- export { default as SThemeProvider } from './s-theme-provider';
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 I } from "./s-file-dropzone/s-file-dropzone.js";
13
- import { default as E } from "./s-file-icon/s-file-icon.js";
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-theme-provider/s-theme-provider.js";
28
- import { useDialog as me } from "./hooks/use-dialog.js";
29
- import { usePopover as ue } from "./hooks/use-popover.js";
30
- import { formatDatePosted as xe } from "./utils/dayjs.js";
31
- import { bytesToSize as ie } from "./utils/bytes-to-size.js";
32
- import { LogLevel as ne, Logger as ce, createLogger as De, logger as Pe } from "./utils/logger.js";
33
- import { default as be } from "dayjs";
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
- ne as LogLevel,
38
- ce as Logger,
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
- I as SFileDropzone,
50
- E as SFileIcon,
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
- le as SThemeProvider,
66
+ me as SThemeProvider,
65
67
  Y as STip,
66
68
  oe as SnackbarMessageProvider,
67
- ie as bytesToSize,
68
- De as createLogger,
69
- be as dayjs,
70
- xe as formatDatePosted,
71
- Pe as logger,
72
- me as useDialog,
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
- ue as usePopover,
77
+ xe as usePopover,
76
78
  re as useSnackbarMessage
77
79
  };
@@ -1 +1,2 @@
1
1
  export { default } from './s-autocomplete';
2
+ export type { SAutocompleteProps } from './s-autocomplete';
@@ -1 +1,2 @@
1
1
  export { default } from './s-button-link';
2
+ export type { SButtonLinkProps } from './s-button-link';
@@ -1,4 +1,4 @@
1
- interface SButtonLinkProps {
1
+ export interface SButtonLinkProps {
2
2
  beforeText?: string | React.ReactNode;
3
3
  afterText?: string | React.ReactNode;
4
4
  mainText?: string | React.ReactNode;
@@ -1 +1,2 @@
1
1
  export { default } from './s-checkbox';
2
+ export type { SCheckboxProps } from './s-checkbox';
@@ -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>>;
@@ -1 +1,2 @@
1
1
  export { default } from './s-chips';
2
+ export type { SChipsProps } from './s-chips';
@@ -1,4 +1,4 @@
1
- interface SChipsProps {
1
+ export interface SChipsProps {
2
2
  chips: string[];
3
3
  overflow?: boolean;
4
4
  onClick?: (tag: string) => void;
@@ -1 +1,2 @@
1
1
  export { default } from './s-dialog';
2
+ export type { SDialogProps } from './s-dialog';
@@ -1,6 +1,6 @@
1
1
  import { Breakpoint } from '@mui/material';
2
2
  import * as React from 'react';
3
- interface SDialogProps {
3
+ export interface SDialogProps {
4
4
  title?: string | React.ReactNode;
5
5
  content?: string | React.ReactNode;
6
6
  actions?: React.ReactNode;
@@ -1 +1,2 @@
1
1
  export { default } from './s-empty';
2
+ export type { SEmptyProps } from './s-empty';
@@ -1,4 +1,4 @@
1
- interface SEmptyProps {
1
+ export interface SEmptyProps {
2
2
  title?: string;
3
3
  }
4
4
  declare const SEmpty: ({ title }: SEmptyProps) => import("react/jsx-runtime").JSX.Element;
@@ -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;
@@ -1 +1,2 @@
1
1
  export { default } from './s-file-icon';
2
+ export type { SFileIconProps } from './s-file-icon';
@@ -1 +1,2 @@
1
1
  export { default } from './s-form';
2
+ export type { SFormProps } from './s-form';
@@ -1,4 +1,4 @@
1
- interface SFormProps {
1
+ export interface SFormProps {
2
2
  label: string | React.ReactNode;
3
3
  error?: string;
4
4
  required: boolean;
@@ -1 +1,2 @@
1
1
  export { default } from './s-i18n-provider';
2
+ export type { SI18nProviderProps } from './s-i18n-provider';
@@ -1 +1,2 @@
1
1
  export { default } from './s-icon-button';
2
+ export type { SIconButtonProps } from './s-icon-button';
@@ -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 +1,2 @@
1
1
  export { default } from './s-image-gallery';
2
+ export type { SImageGalleryProps } from './s-image-gallery';
@@ -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;
@@ -1 +1,2 @@
1
1
  export { default } from './s-label';
2
+ export type { SLabelProps } from './s-label';
@@ -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 +1,2 @@
1
1
  export { default } from './s-multi-select';
2
+ export type { SMultiSelectProps } from './s-multi-select';
@@ -1,43 +1,44 @@
1
- import { j as p } from "../jsx-runtime-C5mzlN2N.js";
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 { L as I, M as H } from "../Menu-B8rPlcSd.js";
8
- import { a as f, P as a } from "../createTheme-DDycScYN.js";
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 G, s as U, c as z, b as A, m as _ } from "../memoTheme-DX35GGEJ.js";
11
- import { g as W, d as E, m } from "../menuItemClasses-DLFqc90k.js";
12
- import { u as q } from "../useEnhancedEffect-CJGo-L3B.js";
13
- import { u as J, B as K } from "../useSlot-B682hoPx.js";
14
- import { g as h } from "../generateUtilityClasses-Z7VQRhBn.js";
15
- const $ = h("MuiListItemIcon", ["root", "alignItemsFlexStart"]), j = h("MuiListItemText", ["root", "multiline", "dense", "inset", "primary", "secondary"]), Q = (e, t) => {
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: o
18
+ ownerState: a
18
19
  } = e;
19
- return [t.root, o.dense && t.dense, o.divider && t.divider, !o.disableGutters && t.gutters];
20
- }, X = (e) => {
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: o,
24
+ dense: a,
24
25
  divider: n,
25
26
  disableGutters: l,
26
27
  selected: u,
27
28
  classes: r
28
- } = e, i = z({
29
- root: ["root", o && "dense", t && "disabled", !l && "gutters", n && "divider", u && "selected"]
30
- }, W, r);
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
- }, Y = U(K, {
36
- shouldForwardProp: (e) => A(e) || e === "classes",
36
+ }, ee = z(Q, {
37
+ shouldForwardProp: (e) => _(e) || e === "classes",
37
38
  name: "MuiMenuItem",
38
39
  slot: "Root",
39
- overridesResolver: Q
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, o) {
139
- const n = G({
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: c = !1,
147
+ divider: p = !1,
147
148
  disableGutters: i = !1,
148
149
  focusVisibleClassName: b,
149
- role: F = "menuitem",
150
+ role: k = "menuitem",
150
151
  tabIndex: y,
151
- className: S,
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
- q(() => {
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: c,
164
+ divider: p,
164
165
  disableGutters: i
165
- }, v = X(n), N = J(g, o);
166
+ }, v = Y(n), N = K(g, a);
166
167
  let O;
167
- return n.disabled || (O = y !== void 0 ? y : -1), /* @__PURE__ */ p.jsx(I.Provider, {
168
+ return n.disabled || (O = y !== void 0 ? y : -1), /* @__PURE__ */ c.jsx(I.Provider, {
168
169
  value: C,
169
- children: /* @__PURE__ */ p.jsx(Y, {
170
+ children: /* @__PURE__ */ c.jsx(ee, {
170
171
  ref: N,
171
- role: F,
172
+ role: k,
172
173
  tabIndex: O,
173
174
  component: u,
174
175
  focusVisibleClassName: M(v.focusVisible, b),
175
- className: M(v.root, S),
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: a.bool,
193
+ autoFocus: o.bool,
193
194
  /**
194
195
  * The content of the component.
195
196
  */
196
- children: a.node,
197
+ children: o.node,
197
198
  /**
198
199
  * Override or extend the styles applied to the component.
199
200
  */
200
- classes: a.object,
201
+ classes: o.object,
201
202
  /**
202
203
  * @ignore
203
204
  */
204
- className: a.string,
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: a.elementType,
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: a.bool,
216
+ dense: o.bool,
216
217
  /**
217
218
  * @ignore
218
219
  */
219
- disabled: a.bool,
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: a.bool,
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: a.bool,
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: a.string,
239
+ focusVisibleClassName: o.string,
239
240
  /**
240
241
  * @ignore
241
242
  */
242
- role: a.string,
243
+ role: o.string,
243
244
  /**
244
245
  * If `true`, the component is selected.
245
246
  * @default false
246
247
  */
247
- selected: a.bool,
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: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object]),
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: a.number
256
+ tabIndex: o.number
256
257
  });
257
- const ee = /* @__PURE__ */ new Map([
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 te = Object.defineProperty, ae = Object.defineProperties, oe = Object.getOwnPropertyDescriptors, w = Object.getOwnPropertySymbols, se = Object.prototype.hasOwnProperty, re = Object.prototype.propertyIsEnumerable, R = (e, t, o) => t in e ? te(e, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[t] = o, ne = (e, t) => {
284
- for (var o in t || (t = {}))
285
- se.call(t, o) && R(e, o, t[o]);
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 o of w(t))
288
- re.call(t, o) && R(e, o, t[o]);
288
+ for (var a of w(t))
289
+ ne.call(t, a) && h(e, a, t[a]);
289
290
  return e;
290
- }, le = (e, t) => ae(e, oe(t));
291
- const k = B((e, t) => /* @__PURE__ */ s.createElement(Z, le(ne({ ref: t }, e), { weights: ee })));
292
- k.displayName = "CaretDown";
293
- function Oe({ label: e, onChange: t, options: o, value: n = [] }) {
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, c) => {
296
+ (r, p) => {
296
297
  let i = [...n];
297
- c ? i.push(r) : i = i.filter((b) => b !== r), t == null || t(i);
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__ */ p.jsxs(d.Fragment, { children: [
302
- /* @__PURE__ */ p.jsx(
302
+ return /* @__PURE__ */ c.jsxs(d.Fragment, { children: [
303
+ /* @__PURE__ */ c.jsx(
303
304
  V,
304
305
  {
305
- endIcon: /* @__PURE__ */ p.jsx(k, {}),
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__ */ p.jsx(
315
- H,
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: o.map((r) => {
322
- const c = n.includes(r.value);
323
- return /* @__PURE__ */ p.jsx(
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, !c);
328
+ u(r.value, !p);
328
329
  },
329
- selected: c,
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
- Oe as default
342
+ Me as default
341
343
  };
@@ -1 +1,2 @@
1
1
  export { default } from './s-no-ssr';
2
+ export type { SNoSsrProps } from './s-no-ssr';
@@ -1 +1,2 @@
1
1
  export { default } from './s-pagination';
2
+ export type { SPaginationProps } from './s-pagination';
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { PaginationProps } from '@mui/material';
3
- interface SPaginationProps extends PaginationProps {
3
+ export interface SPaginationProps extends PaginationProps {
4
4
  loading?: boolean;
5
5
  count?: number;
6
6
  }
@@ -1 +1,2 @@
1
1
  export { default } from './s-select';
2
+ export type { SSelectProps } from './s-select';
@@ -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 +1,2 @@
1
1
  export { default } from './s-skeleton';
2
+ export type { SSkeletonProps } from './s-skeleton';
@@ -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 +1,2 @@
1
1
  export { default } from './s-text-editor';
2
+ export type { STextEditorProps } from './s-text-editor';
@@ -1 +1,2 @@
1
1
  export { default } from './s-text-field';
2
+ export type { STextFieldProps } from './s-text-field';
@@ -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;
@@ -1 +1,2 @@
1
1
  export { default } from './s-text-truncation';
2
+ export type { STextTruncationProps } from './s-text-truncation';
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- interface STextTruncationProps {
2
+ export interface STextTruncationProps {
3
3
  text?: string;
4
4
  }
5
5
  declare const STextTruncation: ({ text }: STextTruncationProps) => React.JSX.Element;
@@ -1 +1,2 @@
1
1
  export { default } from './s-theme-provider';
2
+ export type { SThemeProviderProps } from './s-theme-provider';
@@ -1,6 +1,6 @@
1
1
  import { ThemeOptions } from '@mui/material';
2
2
  import * as React from 'react';
3
- interface SThemeProviderProps {
3
+ export interface SThemeProviderProps {
4
4
  children: React.ReactNode;
5
5
  /**
6
6
  * This is for the docs site. You can ignore it or remove it.
@@ -1 +1,2 @@
1
1
  export { default } from './s-tip';
2
+ export type { STipProps } from './s-tip';
@@ -413,7 +413,7 @@ const c = t(/* @__PURE__ */ l.jsx("path", {
413
413
  size: "medium"
414
414
  },
415
415
  style: {
416
- height: "2.5rem"
416
+ minHeight: "2.5rem"
417
417
  }
418
418
  }
419
419
  ]
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org"
5
5
  },
6
- "version": "1.0.14",
6
+ "version": "1.0.16",
7
7
  "description": "advanced ui kit for solostylist",
8
8
  "private": false,
9
9
  "type": "module",