@solostylist/ui-kit 1.0.43 → 1.0.45
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 +2 -0
- package/dist/main.js +53 -48
- package/dist/s-file-dropzone/s-file-dropzone.js +15 -16
- package/dist/s-multi-select/s-multi-select.js +140 -149
- package/dist/s-smart-text-field/index.d.ts +2 -2
- package/dist/s-smart-text-field/index.js +1 -1
- package/dist/s-smart-text-field/{s-text-field.d.ts → s-smart-text-field.d.ts} +3 -1
- package/dist/s-smart-text-field/{s-text-field.js → s-smart-text-field.js} +5 -4
- package/dist/s-stripe/index.d.ts +2 -0
- package/dist/s-stripe/index.js +7 -0
- package/dist/s-stripe/package.json +5 -0
- package/dist/s-stripe/s-stripe.d.ts +13 -0
- package/dist/s-stripe/s-stripe.js +325 -0
- package/dist/s-stripe/stripe-input.d.ts +4 -0
- package/dist/s-stripe/stripe-input.js +31 -0
- package/dist/s-text-editor/s-text-editor-toolbar.js +150 -147
- package/dist/s-text-editor/s-text-editor.js +16 -17
- package/dist/s-theme-provider/s-theme-provider.d.ts +5 -4
- package/dist/s-theme-provider/s-theme-provider.js +33 -28
- package/dist/theme/components/popover.js +1 -1
- package/dist/theme/customizations/inputs.js +11 -7
- package/dist/theme/customizations/navigation.js +22 -69
- package/dist/theme/customizations/surfaces.js +1 -1
- package/dist/theme/theme-primitives.js +111 -101
- package/package.json +4 -2
- package/dist/selectClasses-DWL9Cxkn.js +0 -10
package/dist/main.d.ts
CHANGED
|
@@ -52,6 +52,8 @@ export { default as SForm } from './s-form/index';
|
|
|
52
52
|
export type { SFormProps } from './s-form/index';
|
|
53
53
|
export { default as SSmartTextField } from './s-smart-text-field/index';
|
|
54
54
|
export type { SSmartTextFieldProps } from './s-smart-text-field/index';
|
|
55
|
+
export { SStripeNumber, SStripeExpiry, SStripeCVC, StripeTextField } from './s-stripe/index';
|
|
56
|
+
export type { StripeTextFieldProps, StripeElement } from './s-stripe/index';
|
|
55
57
|
export { default as SThemeProvider } from './s-theme-provider/index';
|
|
56
58
|
export type { SThemeProviderProps } from './s-theme-provider/index';
|
|
57
59
|
export * from './hooks';
|
package/dist/main.js
CHANGED
|
@@ -1,81 +1,86 @@
|
|
|
1
1
|
import { default as r } from "./s-autocomplete/s-autocomplete.js";
|
|
2
|
-
import { default as
|
|
2
|
+
import { default as a } from "./s-button-link/s-button-link.js";
|
|
3
3
|
import { default as l } from "./s-text-editor/s-text-editor.js";
|
|
4
4
|
import { default as m } from "./s-checkbox/s-checkbox.js";
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
5
|
+
import { default as S } from "./s-chips/s-chips.js";
|
|
6
|
+
import { default as d } from "./s-data-table/s-data-table.js";
|
|
7
7
|
import { DialogConfirmProvider as i, default as g, useDialogConfirm as n } from "./s-dialog-confirm/s-dialog-confirm.js";
|
|
8
|
-
import { DialogMessageProvider as D, default as T, useDialogMessage as
|
|
8
|
+
import { DialogMessageProvider as D, default as T, useDialogMessage as b } from "./s-dialog-message/s-dialog-message.js";
|
|
9
9
|
import { default as v } from "./s-error/s-error.js";
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
10
|
+
import { default as M } from "./s-empty/s-empty.js";
|
|
11
|
+
import { default as F } from "./s-dialog/s-dialog.js";
|
|
12
12
|
import { default as y } from "./s-file-dropzone/s-file-dropzone.js";
|
|
13
|
-
import { default as
|
|
13
|
+
import { default as I } from "./s-file-icon/s-file-icon.js";
|
|
14
14
|
import { default as z } from "./s-i18n-provider/s-i18n-provider.js";
|
|
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
|
|
15
|
+
import { default as N } from "./s-icon-button/s-icon-button.js";
|
|
16
|
+
import { default as A } from "./s-label/s-label.js";
|
|
17
|
+
import { default as V } from "./s-multi-select/s-multi-select.js";
|
|
18
|
+
import { default as w } from "./s-no-ssr/s-no-ssr.js";
|
|
19
|
+
import { default as J } from "./s-text-field/s-text-field.js";
|
|
20
|
+
import { default as O } from "./s-pagination/s-pagination.js";
|
|
21
|
+
import { default as R } from "./s-select/s-select.js";
|
|
22
22
|
import { default as W } from "./s-skeleton/s-skeleton.js";
|
|
23
23
|
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
|
-
import { default as
|
|
26
|
+
import { default as ae } from "./s-image-gallery/s-image-gallery.js";
|
|
27
27
|
import { default as le } from "./s-form/s-form.js";
|
|
28
|
-
import { SSmartTextField as me } from "./s-smart-text-field/s-text-field.js";
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
28
|
+
import { SSmartTextField as me } from "./s-smart-text-field/s-smart-text-field.js";
|
|
29
|
+
import { SStripeCVC as Se, SStripeExpiry as xe, SStripeNumber as de, StripeTextField as ue } from "./s-stripe/s-stripe.js";
|
|
30
|
+
import { default as ge } from "./s-theme-provider/s-theme-provider.js";
|
|
31
|
+
import { useDialog as ce } from "./hooks/use-dialog.js";
|
|
32
|
+
import { usePopover as Te } from "./hooks/use-popover.js";
|
|
33
|
+
import { formatDatePosted as Pe } from "./utils/dayjs.js";
|
|
34
|
+
import { bytesToSize as Ce } from "./utils/bytes-to-size.js";
|
|
35
|
+
import { LogLevel as ke, Logger as Fe, createLogger as Le, logger as ye } from "./utils/logger.js";
|
|
36
|
+
import { default as Ie } from "dayjs";
|
|
36
37
|
export {
|
|
37
38
|
i as DialogConfirmProvider,
|
|
38
39
|
D as DialogMessageProvider,
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
ke as LogLevel,
|
|
41
|
+
Fe as Logger,
|
|
41
42
|
r as SAutocomplete,
|
|
42
|
-
|
|
43
|
+
a as SButtonLink,
|
|
43
44
|
m as SCheckbox,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
S as SChips,
|
|
46
|
+
d as SDataTable,
|
|
47
|
+
F as SDialog,
|
|
47
48
|
g as SDialogConfirm,
|
|
48
49
|
T as SDialogMessage,
|
|
49
|
-
|
|
50
|
+
M as SEmpty,
|
|
50
51
|
v as SError,
|
|
51
52
|
y as SFileDropzone,
|
|
52
|
-
|
|
53
|
+
I as SFileIcon,
|
|
53
54
|
le as SForm,
|
|
54
55
|
z as SI18nProvider,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
N as SIconButton,
|
|
57
|
+
ae as SImageGallery,
|
|
58
|
+
A as SLabel,
|
|
59
|
+
V as SMultiSelect,
|
|
60
|
+
w as SNoSsr,
|
|
61
|
+
O as SPagination,
|
|
62
|
+
R as SSelect,
|
|
62
63
|
W as SSkeleton,
|
|
63
64
|
me as SSmartTextField,
|
|
64
65
|
ee as SSnackbarMessage,
|
|
66
|
+
Se as SStripeCVC,
|
|
67
|
+
xe as SStripeExpiry,
|
|
68
|
+
de as SStripeNumber,
|
|
65
69
|
l as STextEditor,
|
|
66
|
-
|
|
70
|
+
J as STextField,
|
|
67
71
|
_ as STextTruncation,
|
|
68
|
-
|
|
72
|
+
ge as SThemeProvider,
|
|
69
73
|
Y as STip,
|
|
70
74
|
oe as SnackbarMessageProvider,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
Le as
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
ue as StripeTextField,
|
|
76
|
+
Ce as bytesToSize,
|
|
77
|
+
Le as createLogger,
|
|
78
|
+
Ie as dayjs,
|
|
79
|
+
Pe as formatDatePosted,
|
|
80
|
+
ye as logger,
|
|
81
|
+
ce as useDialog,
|
|
77
82
|
n as useDialogConfirm,
|
|
78
|
-
|
|
79
|
-
|
|
83
|
+
b as useDialogMessage,
|
|
84
|
+
Te as usePopover,
|
|
80
85
|
re as useSnackbarMessage
|
|
81
86
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { j as e } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { Avatar as v, Tooltip as
|
|
3
|
-
import { IconCloudUp as S, IconX as
|
|
4
|
-
import { useDropzone as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
2
|
+
import { Avatar as v, Tooltip as y, IconButton as b, Button as I } from "@mui/material";
|
|
3
|
+
import { IconCloudUp as S, IconX as z } from "@tabler/icons-react";
|
|
4
|
+
import { useDropzone as C } from "react-dropzone";
|
|
5
|
+
import k from "../s-file-icon/s-file-icon.js";
|
|
6
|
+
import w from "../s-form/s-form.js";
|
|
7
7
|
import { bytesToSize as B } from "../utils/bytes-to-size.js";
|
|
8
8
|
import { S as r } from "../Stack-CHCAZYKm.js";
|
|
9
|
-
import { B as
|
|
9
|
+
import { B as p } from "../Box-BOnkyXg-.js";
|
|
10
10
|
import { T as o } from "../Typography-8CUP66S2.js";
|
|
11
11
|
const H = ({
|
|
12
12
|
caption: i,
|
|
13
|
-
label:
|
|
13
|
+
label: d = "",
|
|
14
14
|
error: x,
|
|
15
15
|
onRemoveAll: m,
|
|
16
16
|
onUpload: D,
|
|
@@ -21,10 +21,10 @@ const H = ({
|
|
|
21
21
|
...n
|
|
22
22
|
}) => {
|
|
23
23
|
var l, c;
|
|
24
|
-
const { getRootProps: u, getInputProps: g, isDragActive: a } =
|
|
25
|
-
return /* @__PURE__ */ e.jsxs(
|
|
24
|
+
const { getRootProps: u, getInputProps: g, isDragActive: a } = C(n);
|
|
25
|
+
return /* @__PURE__ */ e.jsxs(w, { error: x, label: d, required: h, children: [
|
|
26
26
|
/* @__PURE__ */ e.jsx(r, { spacing: 2, mt: "0.5rem", children: /* @__PURE__ */ e.jsxs(
|
|
27
|
-
|
|
27
|
+
p,
|
|
28
28
|
{
|
|
29
29
|
sx: {
|
|
30
30
|
alignItems: "center",
|
|
@@ -55,7 +55,6 @@ const H = ({
|
|
|
55
55
|
{
|
|
56
56
|
sx: {
|
|
57
57
|
bgcolor: "var(--s-palette-background-paper)",
|
|
58
|
-
boxShadow: "var(--s-shadows-8)",
|
|
59
58
|
color: "var(--s-palette-text-primary)"
|
|
60
59
|
},
|
|
61
60
|
children: /* @__PURE__ */ e.jsx(S, {})
|
|
@@ -90,18 +89,18 @@ const H = ({
|
|
|
90
89
|
p: 1
|
|
91
90
|
},
|
|
92
91
|
children: [
|
|
93
|
-
/* @__PURE__ */ e.jsx(
|
|
94
|
-
/* @__PURE__ */ e.jsxs(
|
|
92
|
+
/* @__PURE__ */ e.jsx(k, { extension: f }),
|
|
93
|
+
/* @__PURE__ */ e.jsxs(p, { sx: { flex: "1 1 auto" }, children: [
|
|
95
94
|
/* @__PURE__ */ e.jsx(o, { variant: "subtitle2", children: t.name }),
|
|
96
95
|
/* @__PURE__ */ e.jsx(o, { color: "text.secondary", variant: "body2", children: B(t.size) })
|
|
97
96
|
] }),
|
|
98
|
-
/* @__PURE__ */ e.jsx(
|
|
99
|
-
|
|
97
|
+
/* @__PURE__ */ e.jsx(y, { title: "Remove", children: /* @__PURE__ */ e.jsx(
|
|
98
|
+
b,
|
|
100
99
|
{
|
|
101
100
|
onClick: () => {
|
|
102
101
|
s == null || s(t);
|
|
103
102
|
},
|
|
104
|
-
children: /* @__PURE__ */ e.jsx(
|
|
103
|
+
children: /* @__PURE__ */ e.jsx(z, {})
|
|
105
104
|
}
|
|
106
105
|
) })
|
|
107
106
|
]
|