@solostylist/ui-kit 1.0.228 → 1.0.230

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 (69) hide show
  1. package/dist/{FormControl-BbzvApma.js → FormControl-DsRIRfTs.js} +204 -177
  2. package/dist/{MenuItem-CwAhn4sd.js → MenuItem-IOMcBScJ.js} +2 -2
  3. package/dist/{MenuList-5C2nFAWS.js → MenuList-vtqACjea.js} +1 -1
  4. package/dist/{Modal-Cu5Cgh-q.js → Modal-CLdC2-Th.js} +372 -395
  5. package/dist/Popover-ZneFWo2r.js +333 -0
  6. package/dist/{checkbox-B5GlJYcB.js → checkbox-DC-OoGvh.js} +1 -1
  7. package/dist/s-chat-message/index.js +1 -1
  8. package/dist/s-chat-message/s-chat-message.js +1 -1
  9. package/dist/{s-chat-message-B9JOBvzP.js → s-chat-message-C-d9amiC.js} +2 -2
  10. package/dist/s-code-block/index.js +1 -1
  11. package/dist/s-code-block/s-code-block.js +1 -1
  12. package/dist/{s-code-block-B5k-1Acd.js → s-code-block-DEojINTt.js} +16 -11
  13. package/dist/s-comment-message/index.js +1 -1
  14. package/dist/s-comment-message/s-comment-message.js +1 -1
  15. package/dist/{s-comment-message-BPE5a6p6.js → s-comment-message-Dum0P6de.js} +2 -2
  16. package/dist/s-data-table/index.js +1 -1
  17. package/dist/s-data-table/s-data-table.d.ts +1 -5
  18. package/dist/s-data-table/s-data-table.js +1 -1
  19. package/dist/{s-data-table-D-esZw_W.js → s-data-table-DfGYIIvn.js} +202 -172
  20. package/dist/s-date-picker/index.js +1 -1
  21. package/dist/s-date-picker/picker-action-bar.d.ts +3 -7
  22. package/dist/s-date-picker/picker-action-bar.js +33 -19
  23. package/dist/s-date-picker/s-date-picker.js +1 -1
  24. package/dist/{s-date-picker-CdH1pta6.js → s-date-picker-C06rlE6_.js} +1 -1
  25. package/dist/s-datetime-picker/index.js +1 -1
  26. package/dist/s-datetime-picker/s-datetime-picker.js +1 -1
  27. package/dist/{s-datetime-picker-BHkWSJKj.js → s-datetime-picker-DnIK-QnQ.js} +24 -24
  28. package/dist/s-error-layout/s-error-layout.d.ts +2 -2
  29. package/dist/s-error-layout/s-error-layout.js +1 -1
  30. package/dist/s-language-switcher/index.js +1 -1
  31. package/dist/s-language-switcher/s-language-switcher.d.ts +2 -5
  32. package/dist/s-language-switcher/s-language-switcher.js +1 -1
  33. package/dist/s-language-switcher-B96dUknj.js +192 -0
  34. package/dist/s-link/s-link.d.ts +2 -2
  35. package/dist/s-link/s-link.js +8 -5
  36. package/dist/s-moving-border/s-moving-border.d.ts +6 -9
  37. package/dist/s-moving-border/s-moving-border.js +73 -81
  38. package/dist/s-pagination/index.d.ts +1 -0
  39. package/dist/s-pagination/s-pagination.d.ts +43 -6
  40. package/dist/s-pagination/s-pagination.js +46 -28
  41. package/dist/s-pagination/types.d.ts +9 -0
  42. package/dist/s-pagination/types.js +27 -0
  43. package/dist/s-review/index.js +1 -1
  44. package/dist/s-review/s-review.js +1 -1
  45. package/dist/{s-review-CRnakHRo.js → s-review-CvTVBxTZ.js} +3 -3
  46. package/dist/s-skeleton/index.d.ts +1 -1
  47. package/dist/s-skeleton/s-skeleton.d.ts +25 -9
  48. package/dist/s-skeleton/s-skeleton.js +59 -63
  49. package/dist/s-text-editor/index.js +1 -1
  50. package/dist/s-text-editor/s-text-editor-toolbar.js +1 -1
  51. package/dist/s-text-editor/s-text-editor.js +1 -1
  52. package/dist/{s-text-editor-toolbar-BEFVwZ-B.js → s-text-editor-toolbar-ChtNCg2A.js} +900 -736
  53. package/dist/s-theme-demo/index.js +1 -1
  54. package/dist/s-theme-demo/s-theme-demo.js +1 -1
  55. package/dist/s-theme-demo-Bnv7lPIh.js +867 -0
  56. package/dist/theme/components/checkbox.d.ts +0 -9
  57. package/dist/theme/components/checkbox.js +1 -1
  58. package/dist/theme/components/components.js +94 -92
  59. package/dist/theme/components/pagination-item.d.ts +1077 -1015
  60. package/dist/theme/components/pagination-item.js +81 -6
  61. package/dist/theme/components/pagination.d.ts +14 -0
  62. package/dist/theme/components/pagination.js +5 -0
  63. package/dist/theme/components/pickers-calendar-header.d.ts +14 -1
  64. package/dist/theme/components/pickers-calendar-header.js +5 -2
  65. package/dist/{useMobilePicker-Dw1IxoE6.js → useMobilePicker-CQA6fYLQ.js} +384 -384
  66. package/package.json +1 -1
  67. package/dist/Menu-Ct_sL_Dg.js +0 -497
  68. package/dist/s-language-switcher-UgSBC_n_.js +0 -199
  69. package/dist/s-theme-demo-Fktc-UlY.js +0 -857
@@ -1,8 +1,83 @@
1
+ import { paginationColors as e, paginationDimensions as t } from "../../s-pagination/types.js";
1
2
  //#region lib/theme/components/pagination-item.tsx
2
- var e = { styleOverrides: { root: ({ theme: e }) => ({ ...e.applyStyles("dark", { "&.Mui-selected": {
3
- color: (e.vars ?? e).palette.grey[900],
4
- backgroundColor: (e.vars ?? e).palette.grey[50],
5
- "&:hover": { backgroundColor: (e.vars ?? e).palette.grey[200] }
6
- } }) }) } };
3
+ var n = (t) => e.includes(t), r = (e, t) => {
4
+ let n = (e.vars ?? e).palette, r = n[t];
5
+ return {
6
+ backgroundColor: r[800],
7
+ borderColor: "transparent",
8
+ color: r[50],
9
+ "&:hover, &.Mui-focusVisible": {
10
+ backgroundColor: r[900],
11
+ color: r[100]
12
+ },
13
+ "@media (hover: none)": { "&:hover": {
14
+ backgroundColor: r[800],
15
+ color: r[50]
16
+ } },
17
+ "&.Mui-disabled": {
18
+ backgroundColor: n.action.disabledBackground,
19
+ borderColor: "transparent",
20
+ color: n.action.disabled
21
+ },
22
+ ...e.applyStyles("dark", {
23
+ color: r[100],
24
+ "&:hover, &.Mui-focusVisible": {
25
+ backgroundColor: r[900],
26
+ color: r[50]
27
+ },
28
+ "@media (hover: none)": { "&:hover": {
29
+ backgroundColor: r[800],
30
+ color: r[100]
31
+ } }
32
+ })
33
+ };
34
+ }, i = { styleOverrides: { root: ({ theme: e, ownerState: i }) => {
35
+ let a = (e.vars ?? e).palette, o = n(i.color) ? i.color : "primary";
36
+ return {
37
+ margin: 0,
38
+ transition: e.transitions.create([
39
+ "background-color",
40
+ "border-color",
41
+ "color"
42
+ ], { duration: e.transitions.duration.shorter }),
43
+ "&.MuiPaginationItem-outlined": { borderColor: a.divider },
44
+ "&.Mui-disabled": {
45
+ backgroundColor: "transparent",
46
+ color: a.action.disabled,
47
+ opacity: 1
48
+ },
49
+ "&.MuiPaginationItem-outlined.Mui-disabled": { borderColor: a.action.disabled },
50
+ "&:not(.Mui-selected):active": { backgroundColor: a.action.selected },
51
+ "&.Mui-selected": r(e, o),
52
+ "&.MuiPaginationItem-ellipsis": {
53
+ alignItems: "center",
54
+ display: "inline-flex",
55
+ justifyContent: "center"
56
+ },
57
+ variants: [
58
+ {
59
+ props: { size: "small" },
60
+ style: {
61
+ height: t.small.item,
62
+ minWidth: t.small.item
63
+ }
64
+ },
65
+ {
66
+ props: { size: "medium" },
67
+ style: {
68
+ height: t.medium.item,
69
+ minWidth: t.medium.item
70
+ }
71
+ },
72
+ {
73
+ props: { size: "large" },
74
+ style: {
75
+ height: t.large.item,
76
+ minWidth: t.large.item
77
+ }
78
+ }
79
+ ]
80
+ };
81
+ } } };
7
82
  //#endregion
8
- export { e as MuiPaginationItem };
83
+ export { i as MuiPaginationItem };
@@ -0,0 +1,14 @@
1
+ import { Theme } from '@mui/material';
2
+ export declare const MuiPagination: {
3
+ styleOverrides: {
4
+ root: ({ ownerState }: import('@mui/material').PaginationProps & Record<string, unknown> & {
5
+ ownerState: import('@mui/material').PaginationProps & Record<string, unknown>;
6
+ } & {
7
+ theme: Theme;
8
+ }) => {
9
+ '& .MuiPagination-ul': {
10
+ gap: string;
11
+ };
12
+ };
13
+ };
14
+ };
@@ -0,0 +1,5 @@
1
+ import { paginationDimensions as e } from "../../s-pagination/types.js";
2
+ //#region lib/theme/components/pagination.tsx
3
+ var t = { styleOverrides: { root: ({ ownerState: t }) => ({ "& .MuiPagination-ul": { gap: `${e[t.size ?? "medium"].gap}px` } }) } };
4
+ //#endregion
5
+ export { t as MuiPagination };
@@ -25,8 +25,21 @@ export declare const MuiPickersCalendarHeader: {
25
25
  backgroundColor: string;
26
26
  };
27
27
  };
28
- switchViewButton: {
28
+ label: ({ theme }: import('@mui/x-date-pickers').ExportedPickersCalendarHeaderProps & Record<string, unknown> & {
29
+ ownerState: import('@mui/x-date-pickers').PickerOwnerState;
30
+ } & {
31
+ theme: Theme;
32
+ }) => {
33
+ marginRight: string;
34
+ };
35
+ switchViewButton: ({ theme }: import('@mui/x-date-pickers').ExportedPickersCalendarHeaderProps & Record<string, unknown> & {
36
+ ownerState: import('@mui/x-date-pickers').PickerOwnerState;
37
+ } & {
38
+ theme: Theme;
39
+ }) => {
29
40
  padding: number;
41
+ marginLeft: string;
42
+ color: string;
30
43
  '& .MuiSvgIcon-root': {
31
44
  fontSize: string;
32
45
  };
@@ -14,11 +14,14 @@ var e = { styleOverrides: {
14
14
  transition: "background-color 0.2s ease-in-out",
15
15
  "&:hover": { backgroundColor: (e.vars ?? e).palette.action.hover }
16
16
  }),
17
- switchViewButton: {
17
+ label: ({ theme: e }) => ({ marginRight: e.spacing(.5) }),
18
+ switchViewButton: ({ theme: e }) => ({
18
19
  padding: 8,
20
+ marginLeft: e.spacing(-1),
21
+ color: (e.vars ?? e).palette.text.primary,
19
22
  "& .MuiSvgIcon-root": { fontSize: "1rem" },
20
23
  "&:hover": { backgroundColor: "transparent" }
21
- }
24
+ })
22
25
  } };
23
26
  //#endregion
24
27
  export { e as MuiPickersCalendarHeader };