@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.
@@ -1,32 +1,45 @@
1
- import { j as u } from "../jsx-runtime-DywqP_6a.js";
2
- import * as o from "react";
3
- import { useTheme as i } from "@mui/material";
4
- import { gray as c } from "../theme/theme-primitives.js";
5
- const R = o.forwardRef(function(e, r) {
6
- const { component: n, options: s, ...m } = e, [t, p] = o.useState(null), a = i();
7
- return o.useImperativeHandle(
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: () => t.focus()
9
+ focus: () => e.focus()
11
10
  }),
12
- [t]
13
- ), /* @__PURE__ */ u.jsx(
11
+ [e]
12
+ ), /* @__PURE__ */ l.jsx(
14
13
  n,
15
14
  {
16
- onReady: p,
15
+ onReady: i,
17
16
  options: {
18
- ...s,
17
+ ...a,
19
18
  style: {
20
19
  base: {
21
- // Apply theme-appropriate text color
22
- color: a.palette.mode === "dark" ? "rgb(255, 255, 255)" : c[800]
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
- ...m
39
+ ...o
27
40
  }
28
41
  );
29
42
  });
30
43
  export {
31
- R as default
44
+ f as default
32
45
  };
@@ -1,15 +1,39 @@
1
- import { j as r } from "../jsx-runtime-DywqP_6a.js";
2
- import { TextField as d } from "@mui/material";
3
- import f from "../s-form/s-form.js";
4
- const a = ({
5
- label: i = "",
6
- required: o = !1,
7
- error: t,
8
- type: s = "text",
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: x,
11
- ...m
12
- }) => /* @__PURE__ */ r.jsx(f, { label: i, hint: x, error: t, required: o, htmlFor: e, children: /* @__PURE__ */ r.jsx(d, { fullWidth: !0, type: s, id: e, error: !!t, ...m }) });
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
- a as default
38
+ v as default
15
39
  };