@solostylist/ui-kit 1.0.15 → 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 (42) hide show
  1. package/dist/main.d.ts +54 -33
  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 +1 -1
  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-no-ssr/index.d.ts +1 -0
  27. package/dist/s-pagination/index.d.ts +1 -0
  28. package/dist/s-pagination/s-pagination.d.ts +1 -1
  29. package/dist/s-select/index.d.ts +1 -0
  30. package/dist/s-select/s-select.d.ts +1 -1
  31. package/dist/s-skeleton/index.d.ts +1 -0
  32. package/dist/s-skeleton/s-skeleton.d.ts +1 -1
  33. package/dist/s-text-editor/index.d.ts +1 -0
  34. package/dist/s-text-field/index.d.ts +1 -0
  35. package/dist/s-text-field/s-text-field.d.ts +1 -1
  36. package/dist/s-text-truncation/index.d.ts +1 -0
  37. package/dist/s-text-truncation/s-text-truncation.d.ts +1 -1
  38. package/dist/s-theme-provider/index.d.ts +1 -0
  39. package/dist/s-theme-provider/s-theme-provider.d.ts +1 -1
  40. package/dist/s-tip/index.d.ts +1 -0
  41. package/dist/theme/customizations/inputs.js +1 -1
  42. package/package.json +1 -1
package/dist/main.d.ts CHANGED
@@ -1,35 +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 type { SMultiSelectProps } from './s-multi-select';
23
- export { default as SNoSsr } from './s-no-ssr';
24
- export { default as STextField } from './s-text-field';
25
- export { default as SPagination } from './s-pagination';
26
- export { default as SSelect } from './s-select';
27
- export { default as SSkeleton } from './s-skeleton';
28
- export { default as STip } from './s-tip';
29
- export { default as STextTruncation } from './s-text-truncation';
30
- export { default as SSnackbarMessage, SnackbarMessageProvider, useSnackbarMessage } from './s-snackbar-message';
31
- export type { SnackbarMessageContextProps, SnackbarMessageOpenOptions } from './s-snackbar-message';
32
- export { default as SImageGallery } from './s-image-gallery';
33
- 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';
34
55
  export * from './hooks';
35
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,7 +4,7 @@ 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;
@@ -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-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,7 +2,7 @@ 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;
@@ -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,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  import { TextField } from '@mui/material';
3
- type STextFieldProps = Omit<React.ComponentProps<typeof TextField>, 'error'> & {
3
+ export type STextFieldProps = Omit<React.ComponentProps<typeof TextField>, 'error'> & {
4
4
  label?: string | React.ReactNode;
5
5
  required?: boolean;
6
6
  error?: 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.15",
6
+ "version": "1.0.16",
7
7
  "description": "advanced ui kit for solostylist",
8
8
  "private": false,
9
9
  "type": "module",