@solostylist/ui-kit 1.0.84 → 1.0.86
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/assets/stripe-input.css +1 -0
- package/dist/main.d.ts +5 -2
- package/dist/main.js +35 -34
- package/dist/s-gradient-icon/s-gradient-icon.d.ts +76 -14
- package/dist/s-gradient-icon/s-gradient-icon.js +77 -24
- package/dist/s-image-modal/index.d.ts +3 -0
- package/dist/s-image-modal/index.js +5 -0
- package/dist/s-image-modal/package.json +5 -0
- package/dist/s-image-modal/s-image-modal.d.ts +75 -0
- package/dist/s-image-modal/s-image-modal.js +404 -0
- package/dist/s-interactive-gallery/index.d.ts +2 -2
- package/dist/s-interactive-gallery/index.js +3 -4
- package/dist/s-interactive-gallery/s-interactive-gallery.d.ts +1 -52
- package/dist/s-interactive-gallery/s-interactive-gallery.js +93 -437
- package/dist/s-stripe/stripe-input.js +31 -18
- package/dist/s-text-field/s-text-field.js +36 -12
- package/dist/theme/components/button.d.ts +158 -158
- package/dist/theme/components/chip.d.ts +2 -2
- package/dist/theme/components/components.d.ts +160 -160
- package/dist/theme/customizations/surfaces.js +2 -2
- package/dist/theme/theme-primitives.d.ts +4 -0
- package/dist/theme/theme-primitives.js +29 -27
- package/package.json +3 -2
|
@@ -1,32 +1,45 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
r,
|
|
1
|
+
import { j as l } from "../jsx-runtime-DywqP_6a.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { gray as d } from "../theme/theme-primitives.js";
|
|
4
|
+
import '../assets/stripe-input.css';const f = t.forwardRef(function(r, s) {
|
|
5
|
+
const { component: n, options: a, ...o } = r, [e, i] = t.useState(null);
|
|
6
|
+
return t.useImperativeHandle(
|
|
7
|
+
s,
|
|
9
8
|
() => ({
|
|
10
|
-
focus: () =>
|
|
9
|
+
focus: () => e.focus()
|
|
11
10
|
}),
|
|
12
|
-
[
|
|
13
|
-
), /* @__PURE__ */
|
|
11
|
+
[e]
|
|
12
|
+
), /* @__PURE__ */ l.jsx(
|
|
14
13
|
n,
|
|
15
14
|
{
|
|
16
|
-
onReady:
|
|
15
|
+
onReady: i,
|
|
17
16
|
options: {
|
|
18
|
-
...
|
|
17
|
+
...a,
|
|
19
18
|
style: {
|
|
20
19
|
base: {
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
fontFamily: "Outfit, sans-serif",
|
|
21
|
+
lineHeight: "1.5",
|
|
22
|
+
color: "rgb(255, 255, 255)",
|
|
23
|
+
...o.disabled && {
|
|
24
|
+
color: "rgba(255, 255, 255, 0.5)"
|
|
25
|
+
// for disabled state
|
|
26
|
+
},
|
|
27
|
+
"&::placeholder": {
|
|
28
|
+
color: d[600],
|
|
29
|
+
...o.disabled && {
|
|
30
|
+
color: "rgba(255, 255, 255, 0.5)"
|
|
31
|
+
// for disabled state
|
|
32
|
+
}
|
|
33
|
+
}
|
|
23
34
|
}
|
|
24
|
-
}
|
|
35
|
+
},
|
|
36
|
+
disabled: o.disabled
|
|
37
|
+
// Pass through the disabled state to Stripe Element
|
|
25
38
|
},
|
|
26
|
-
...
|
|
39
|
+
...o
|
|
27
40
|
}
|
|
28
41
|
);
|
|
29
42
|
});
|
|
30
43
|
export {
|
|
31
|
-
|
|
44
|
+
f as default
|
|
32
45
|
};
|
|
@@ -1,15 +1,39 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { j as s } from "../jsx-runtime-DywqP_6a.js";
|
|
2
|
+
import { useState as j } from "react";
|
|
3
|
+
import { TextField as h, InputAdornment as w, IconButton as b } from "@mui/material";
|
|
4
|
+
import y from "../s-form/s-form.js";
|
|
5
|
+
import { c } from "../createSvgIcon-9XY7lJan.js";
|
|
6
|
+
const g = c(/* @__PURE__ */ s.jsx("path", {
|
|
7
|
+
d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"
|
|
8
|
+
}), "Visibility"), P = c(/* @__PURE__ */ s.jsx("path", {
|
|
9
|
+
d: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"
|
|
10
|
+
}), "VisibilityOff"), v = ({
|
|
11
|
+
label: d = "",
|
|
12
|
+
required: a = !1,
|
|
13
|
+
error: i,
|
|
14
|
+
type: o = "text",
|
|
9
15
|
htmlFor: e,
|
|
10
|
-
hint:
|
|
11
|
-
...
|
|
12
|
-
}) =>
|
|
16
|
+
hint: p,
|
|
17
|
+
...l
|
|
18
|
+
}) => {
|
|
19
|
+
var r;
|
|
20
|
+
const [t, m] = j(!1), n = o === "password", x = () => {
|
|
21
|
+
m(!t);
|
|
22
|
+
}, f = n && t ? "text" : o, u = n ? /* @__PURE__ */ s.jsx(w, { position: "end", children: /* @__PURE__ */ s.jsx(b, { "aria-label": "toggle password visibility", onClick: x, edge: "end", children: t ? /* @__PURE__ */ s.jsx(P, {}) : /* @__PURE__ */ s.jsx(g, {}) }) }) : void 0;
|
|
23
|
+
return /* @__PURE__ */ s.jsx(y, { label: d, hint: p, error: i, required: a, htmlFor: e, children: /* @__PURE__ */ s.jsx(
|
|
24
|
+
h,
|
|
25
|
+
{
|
|
26
|
+
fullWidth: !0,
|
|
27
|
+
type: f,
|
|
28
|
+
id: e,
|
|
29
|
+
error: !!i,
|
|
30
|
+
...l,
|
|
31
|
+
slotProps: {
|
|
32
|
+
input: { endAdornment: u, ...(r = l.slotProps) == null ? void 0 : r.input }
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
) });
|
|
36
|
+
};
|
|
13
37
|
export {
|
|
14
|
-
|
|
38
|
+
v as default
|
|
15
39
|
};
|