@solostylist/ui-kit 1.0.44 → 1.0.46

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 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 t } from "./s-button-link/s-button-link.js";
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 x } from "./s-chips/s-chips.js";
6
- import { default as u } from "./s-data-table/s-data-table.js";
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 P } from "./s-dialog-message/s-dialog-message.js";
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 k } from "./s-empty/s-empty.js";
11
- import { default as C } from "./s-dialog/s-dialog.js";
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 h } from "./s-file-icon/s-file-icon.js";
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 j } from "./s-icon-button/s-icon-button.js";
16
- import { default as G } from "./s-label/s-label.js";
17
- import { default as q } from "./s-multi-select/s-multi-select.js";
18
- import { default as H } from "./s-no-ssr/s-no-ssr.js";
19
- import { default as K } from "./s-text-field/s-text-field.js";
20
- import { default as Q } from "./s-pagination/s-pagination.js";
21
- import { default as U } from "./s-select/s-select.js";
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 te } from "./s-image-gallery/s-image-gallery.js";
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 { default as xe } from "./s-theme-provider/s-theme-provider.js";
30
- import { useDialog as ue } from "./hooks/use-dialog.js";
31
- import { usePopover as ie } from "./hooks/use-popover.js";
32
- import { formatDatePosted as ne } from "./utils/dayjs.js";
33
- import { bytesToSize as De } from "./utils/bytes-to-size.js";
34
- import { LogLevel as Pe, Logger as be, createLogger as ve, logger as Me } from "./utils/logger.js";
35
- import { default as Le } from "dayjs";
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
- Pe as LogLevel,
40
- be as Logger,
40
+ ke as LogLevel,
41
+ Fe as Logger,
41
42
  r as SAutocomplete,
42
- t as SButtonLink,
43
+ a as SButtonLink,
43
44
  m as SCheckbox,
44
- x as SChips,
45
- u as SDataTable,
46
- C as SDialog,
45
+ S as SChips,
46
+ d as SDataTable,
47
+ F as SDialog,
47
48
  g as SDialogConfirm,
48
49
  T as SDialogMessage,
49
- k as SEmpty,
50
+ M as SEmpty,
50
51
  v as SError,
51
52
  y as SFileDropzone,
52
- h as SFileIcon,
53
+ I as SFileIcon,
53
54
  le as SForm,
54
55
  z as SI18nProvider,
55
- j as SIconButton,
56
- te as SImageGallery,
57
- G as SLabel,
58
- q as SMultiSelect,
59
- H as SNoSsr,
60
- Q as SPagination,
61
- U as SSelect,
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
- K as STextField,
70
+ J as STextField,
67
71
  _ as STextTruncation,
68
- xe as SThemeProvider,
72
+ ge as SThemeProvider,
69
73
  Y as STip,
70
74
  oe as SnackbarMessageProvider,
71
- De as bytesToSize,
72
- ve as createLogger,
73
- Le as dayjs,
74
- ne as formatDatePosted,
75
- Me as logger,
76
- ue as useDialog,
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
- P as useDialogMessage,
79
- ie as usePopover,
83
+ b as useDialogMessage,
84
+ Te as usePopover,
80
85
  re as useSnackbarMessage
81
86
  };
@@ -1,2 +1,2 @@
1
- export { default } from './s-text-field';
2
- export type { SSmartTextFieldProps } from './s-text-field';
1
+ export { default } from './s-smart-text-field';
2
+ export type { SSmartTextFieldProps } from './s-smart-text-field';
@@ -1,4 +1,4 @@
1
- import { SSmartTextField as a } from "./s-text-field.js";
1
+ import { SSmartTextField as a } from "./s-smart-text-field.js";
2
2
  export {
3
3
  a as default
4
4
  };
@@ -1,3 +1,4 @@
1
+ import { CopilotKitProps } from '@copilotkit/react-core';
1
2
  import { AutosuggestionsConfigUserSpecified, CopilotTextarea } from '@copilotkit/react-textarea';
2
3
  export type SSmartTextFieldProps = Omit<React.ComponentProps<typeof CopilotTextarea>, 'autosuggestionsConfig'> & {
3
4
  autosuggestionsConfig?: AutosuggestionsConfigUserSpecified;
@@ -6,6 +7,7 @@ export type SSmartTextFieldProps = Omit<React.ComponentProps<typeof CopilotTexta
6
7
  error?: string;
7
8
  required?: boolean;
8
9
  htmlFor?: string;
10
+ copilotKitProps: Omit<CopilotKitProps, 'children'>;
9
11
  };
10
- export declare function SSmartTextField({ autosuggestionsConfig, label, hint, error, required, htmlFor, ...props }: SSmartTextFieldProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function SSmartTextField({ autosuggestionsConfig, label, hint, error, required, htmlFor, copilotKitProps, ...props }: SSmartTextFieldProps): import("react/jsx-runtime").JSX.Element;
11
13
  export default SSmartTextField;
@@ -27124,10 +27124,10 @@ const $N = Vv(RN)(({ theme: e }) => ({
27124
27124
  }
27125
27125
  ]
27126
27126
  })), MN = {
27127
- textareaPurpose: "Create a detailed prompt for an image-to-image AI model (e.g., ControlNet, Stable Diffusion img2img, or Photoshop Generative Fill) that transforms a given input image into a new visual style or concept. The prompt should include guidance on what changes to apply (e.g., style, environment, pose, lighting, or composition), while preserving key subject details.",
27127
+ textareaPurpose: "",
27128
27128
  chatApiConfigs: {
27129
27129
  suggestionsApiConfig: {
27130
- maxTokens: 100,
27130
+ maxTokens: 512,
27131
27131
  stop: [".", "?", "!"]
27132
27132
  }
27133
27133
  }
@@ -27139,9 +27139,10 @@ function ZN({
27139
27139
  error: r,
27140
27140
  required: i = !1,
27141
27141
  htmlFor: a,
27142
- ...o
27142
+ copilotKitProps: o,
27143
+ ...s
27143
27144
  }) {
27144
- return /* @__PURE__ */ V.jsx(Wv, { label: t, hint: n, error: r, required: i, htmlFor: a, children: /* @__PURE__ */ V.jsx(RD, { publicApiKey: "ck_pub_020d5739b1bb0a773109f77f43fe51b9", children: /* @__PURE__ */ V.jsx($N, { disableBranding: !0, autosuggestionsConfig: e, ...o }) }) });
27145
+ return /* @__PURE__ */ V.jsx(Wv, { label: t, hint: n, error: r, required: i, htmlFor: a, children: /* @__PURE__ */ V.jsx(RD, { ...o, children: /* @__PURE__ */ V.jsx($N, { disableBranding: !0, autosuggestionsConfig: e, ...s }) }) });
27145
27146
  }
27146
27147
  export {
27147
27148
  ZN as SSmartTextField,
@@ -0,0 +1,2 @@
1
+ export { SStripeNumber, SStripeExpiry, SStripeCVC, StripeTextField } from './s-stripe';
2
+ export type { StripeTextFieldProps, StripeElement } from './s-stripe';
@@ -0,0 +1,7 @@
1
+ import { SStripeCVC as S, SStripeExpiry as i, SStripeNumber as p, StripeTextField as t } from "./s-stripe.js";
2
+ export {
3
+ S as SStripeCVC,
4
+ i as SStripeExpiry,
5
+ p as SStripeNumber,
6
+ t as StripeTextField
7
+ };
@@ -0,0 +1,5 @@
1
+ {
2
+ "main": "./index.js",
3
+ "types": "./index.d.ts",
4
+ "sideEffects": false
5
+ }
@@ -0,0 +1,13 @@
1
+ import { AuBankAccountElement, CardCvcElement, CardExpiryElement, CardNumberElement, FpxBankElement, IbanElement, IdealBankElement } from '@stripe/react-stripe-js';
2
+ import { STextFieldProps } from '../s-text-field';
3
+ export type StripeElement = typeof AuBankAccountElement | typeof CardCvcElement | typeof CardExpiryElement | typeof CardNumberElement | typeof FpxBankElement | typeof IbanElement | typeof IdealBankElement;
4
+ export interface StripeTextFieldProps<T extends StripeElement> extends Omit<STextFieldProps, 'onChange' | 'inputComponent' | 'inputProps'> {
5
+ inputProps?: React.ComponentProps<T>;
6
+ labelErrorMessage?: string;
7
+ onChange?: React.ComponentProps<T>['onChange'];
8
+ stripeElement?: T;
9
+ }
10
+ export declare const StripeTextField: <T extends StripeElement>(props: StripeTextFieldProps<T>) => import("react/jsx-runtime").JSX.Element;
11
+ export declare function SStripeNumber(props: StripeTextFieldProps<typeof CardNumberElement>): import("react/jsx-runtime").JSX.Element;
12
+ export declare function SStripeExpiry(props: StripeTextFieldProps<typeof CardExpiryElement>): import("react/jsx-runtime").JSX.Element;
13
+ export declare function SStripeCVC(props: StripeTextFieldProps<typeof CardCvcElement>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,47 @@
1
+ import { j as r } from "../jsx-runtime-C5mzlN2N.js";
2
+ import { CardNumberElement as a, CardExpiryElement as E, CardCvcElement as s } from "@stripe/react-stripe-js";
3
+ import C from "../s-text-field/s-text-field.js";
4
+ import b from "./stripe-input.js";
5
+ const n = (t) => {
6
+ var p;
7
+ const { helperText: u, slotProps: e, inputProps: m, error: i, labelErrorMessage: l, stripeElement: o, ...x } = t;
8
+ return /* @__PURE__ */ r.jsx(
9
+ C,
10
+ {
11
+ fullWidth: !0,
12
+ slotProps: {
13
+ inputLabel: {
14
+ ...e == null ? void 0 : e.inputLabel,
15
+ shrink: !0
16
+ },
17
+ input: {
18
+ ...e == null ? void 0 : e.input,
19
+ inputProps: {
20
+ ...m,
21
+ ...(p = e == null ? void 0 : e.input) == null ? void 0 : p.inputProps,
22
+ component: o
23
+ },
24
+ inputComponent: b
25
+ }
26
+ },
27
+ error: i,
28
+ helperText: i ? l : u,
29
+ ...x
30
+ }
31
+ );
32
+ };
33
+ function j(t) {
34
+ return /* @__PURE__ */ r.jsx(n, { label: "Card Number", stripeElement: a, ...t });
35
+ }
36
+ function h(t) {
37
+ return /* @__PURE__ */ r.jsx(n, { label: "Expiration", stripeElement: E, ...t });
38
+ }
39
+ function T(t) {
40
+ return /* @__PURE__ */ r.jsx(n, { label: "CVC", stripeElement: s, ...t });
41
+ }
42
+ export {
43
+ T as SStripeCVC,
44
+ h as SStripeExpiry,
45
+ j as SStripeNumber,
46
+ n as StripeTextField
47
+ };
@@ -0,0 +1,4 @@
1
+ import { InputBaseComponentProps } from '@mui/material/InputBase';
2
+ import * as React from 'react';
3
+ declare const StripeInput: React.ForwardRefExoticComponent<Omit<InputBaseComponentProps, "ref"> & React.RefAttributes<any>>;
4
+ export default StripeInput;
@@ -0,0 +1,31 @@
1
+ import { j as u } from "../jsx-runtime-C5mzlN2N.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,
9
+ () => ({
10
+ focus: () => t.focus()
11
+ }),
12
+ [t]
13
+ ), /* @__PURE__ */ u.jsx(
14
+ n,
15
+ {
16
+ onReady: p,
17
+ options: {
18
+ ...s,
19
+ style: {
20
+ base: {
21
+ color: a.palette.mode === "dark" ? "rgb(255, 255, 255)" : c[800]
22
+ }
23
+ }
24
+ },
25
+ ...m
26
+ }
27
+ );
28
+ });
29
+ export {
30
+ R as default
31
+ };
@@ -1,13 +1,14 @@
1
- import { ThemeOptions, ThemeProviderProps } from '@mui/material';
1
+ import { Theme, ThemeOptions, ThemeProviderProps } from '@mui/material';
2
2
  import * as React from 'react';
3
- export interface SThemeProviderProps {
3
+ export interface SThemeProviderProps extends Omit<ThemeProviderProps, 'defaultMode' | 'theme'> {
4
4
  children: React.ReactNode;
5
5
  /**
6
6
  * This is for the docs site. You can ignore it or remove it.
7
7
  */
8
8
  disableCustomTheme?: boolean;
9
9
  themeComponents?: ThemeOptions['components'];
10
- themeProviderProps?: ThemeProviderProps;
10
+ defaultMode?: 'light' | 'dark' | 'system' | undefined;
11
+ theme?: Theme;
11
12
  }
12
- declare const SThemeProvider: ({ children, disableCustomTheme, themeComponents, themeProviderProps, }: SThemeProviderProps) => React.JSX.Element;
13
+ declare const SThemeProvider: ({ children, disableCustomTheme, themeComponents, defaultMode, theme, ...themeProviderProps }: SThemeProviderProps) => React.JSX.Element;
13
14
  export default SThemeProvider;
@@ -1,51 +1,56 @@
1
- import { j as m } from "../jsx-runtime-C5mzlN2N.js";
2
- import * as s from "react";
3
- import { createTheme as e, ThemeProvider as n } from "@mui/material";
4
- import { components as c } from "../theme/components/components.js";
5
- import { dataDisplayCustomizations as f } from "../theme/customizations/data-display.js";
6
- import { feedbackCustomizations as u } from "../theme/customizations/feedback.js";
7
- import { inputsCustomizations as p } from "../theme/customizations/inputs.js";
1
+ import { j as e } from "../jsx-runtime-C5mzlN2N.js";
2
+ import * as m from "react";
3
+ import { createTheme as p, ThemeProvider as c } from "@mui/material";
4
+ import { components as f } from "../theme/components/components.js";
5
+ import { dataDisplayCustomizations as u } from "../theme/customizations/data-display.js";
6
+ import { feedbackCustomizations as d } from "../theme/customizations/feedback.js";
7
+ import { inputsCustomizations as h } from "../theme/customizations/inputs.js";
8
8
  import { navigationCustomizations as l } from "../theme/customizations/navigation.js";
9
9
  import { surfacesCustomizations as x } from "../theme/customizations/surfaces.js";
10
- import { shape as z, shadows as g, typography as h, colorSchemes as j } from "../theme/theme-primitives.js";
11
- const b = ({
12
- children: a,
13
- disableCustomTheme: t,
14
- themeComponents: r,
15
- themeProviderProps: o
10
+ import { shape as z, shadows as g, typography as j, colorSchemes as S } from "../theme/theme-primitives.js";
11
+ const w = ({
12
+ children: r,
13
+ disableCustomTheme: o,
14
+ themeComponents: t,
15
+ defaultMode: s = "dark",
16
+ theme: a,
17
+ ...i
16
18
  }) => {
17
- const i = s.useMemo(() => t ? {} : e({
19
+ const n = m.useMemo(() => o ? {} : p({
18
20
  // For more details about CSS variables configuration, see https://mui.com/material-ui/customization/css-theme-variables/configuration/
19
21
  cssVariables: {
20
22
  colorSchemeSelector: "data-mui-color-scheme",
21
23
  cssVarPrefix: "s"
22
24
  },
23
- colorSchemes: j,
25
+ palette: {
26
+ mode: "dark"
27
+ },
28
+ colorSchemes: S,
24
29
  // Recently added in v6 for building light & dark mode app, see https://mui.com/material-ui/customization/palette/#color-schemes
25
- typography: h,
30
+ typography: j,
26
31
  shadows: g,
27
32
  shape: z,
28
33
  components: {
29
- ...p,
30
- ...f,
34
+ ...h,
31
35
  ...u,
36
+ ...d,
32
37
  ...l,
33
38
  ...x,
34
- ...c,
35
- ...r
39
+ ...f,
40
+ ...t
36
41
  }
37
- }), [t, r]);
38
- return t ? /* @__PURE__ */ m.jsx(s.Fragment, { children: a }) : /* @__PURE__ */ m.jsx(
39
- n,
42
+ }), [o, t]);
43
+ return o ? /* @__PURE__ */ e.jsx(m.Fragment, { children: r }) : /* @__PURE__ */ e.jsx(
44
+ c,
40
45
  {
41
46
  disableTransitionOnChange: !0,
42
- defaultMode: "dark",
43
- ...o,
44
- theme: { ...i, ...o == null ? void 0 : o.theme },
45
- children: a
47
+ ...i,
48
+ theme: { ...n, ...a },
49
+ defaultMode: s,
50
+ children: r
46
51
  }
47
52
  );
48
53
  };
49
54
  export {
50
- b as default
55
+ w as default
51
56
  };
@@ -18,14 +18,18 @@ const c = l(/* @__PURE__ */ a.jsx("path", {
18
18
  disableRipple: !0
19
19
  },
20
20
  styleOverrides: {
21
- root: ({ theme: o }) => ({
21
+ // root: ({ theme }) => ({
22
+ // boxSizing: 'border-box',
23
+ // transition: 'all 100ms ease-in',
24
+ // '&:focus-visible': {
25
+ // outline: `3px solid ${alpha(theme.palette.primary.main, 0.5)}`,
26
+ // outlineOffset: '2px',
27
+ // },
28
+ // }),
29
+ root: {
22
30
  boxSizing: "border-box",
23
- transition: "all 100ms ease-in",
24
- "&:focus-visible": {
25
- outline: `3px solid ${t(o.palette.primary.main, 0.5)}`,
26
- outlineOffset: "2px"
27
- }
28
- })
31
+ transition: "all 100ms ease-in"
32
+ }
29
33
  }
30
34
  },
31
35
  MuiButton: {
@@ -73,7 +73,7 @@ const i = {
73
73
  style: {
74
74
  border: `1px solid ${(r.vars || r).palette.divider}`,
75
75
  boxShadow: "none",
76
- background: "hsl(0, 0%, 100%)",
76
+ background: "rgb(255, 255, 255)",
77
77
  ...r.applyStyles("dark", {
78
78
  background: a(o[900], 0.4)
79
79
  })
@@ -1,5 +1,5 @@
1
- import { b as n, a as o } from "../createTheme-CyFSna1a.js";
2
- const e = n(), p = [...e.shadows], t = {
1
+ import { b as s, a as r } from "../createTheme-CyFSna1a.js";
2
+ const a = s(), n = [...a.shadows], t = {
3
3
  50: "hsl(210, 100%, 95%)",
4
4
  100: "hsl(210, 100%, 92%)",
5
5
  200: "hsl(210, 100%, 80%)",
@@ -10,18 +10,28 @@ const e = n(), p = [...e.shadows], t = {
10
10
  700: "hsl(210, 100%, 35%)",
11
11
  800: "hsl(210, 100%, 16%)",
12
12
  900: "hsl(210, 100%, 21%)"
13
- }, h = {
14
- 50: "hsl(220, 35%, 97%)",
15
- 100: "hsl(220, 30%, 94%)",
16
- 200: "hsl(220, 20%, 88%)",
17
- 300: "hsl(220, 20%, 80%)",
18
- 400: "hsl(220, 20%, 65%)",
19
- 500: "hsl(220, 20%, 42%)",
20
- 600: "hsl(220, 20%, 35%)",
21
- 700: "hsl(220, 20%, 25%)",
22
- 800: "hsl(220, 30%, 6%)",
23
- 900: "hsl(220, 35%, 3%)"
24
- }, s = {
13
+ }, e = {
14
+ 50: "rgb(243, 246, 250)",
15
+ // hsl(220, 35%, 97%)
16
+ 100: "rgb(235, 238, 244)",
17
+ // hsl(220, 30%, 94%)
18
+ 200: "rgb(218, 222, 231)",
19
+ // hsl(220, 20%, 88%)
20
+ 300: "rgb(194, 201, 214)",
21
+ // hsl(220, 20%, 80%)
22
+ 400: "rgb(148, 160, 184)",
23
+ // hsl(220, 20%, 65%)
24
+ 500: "rgb(86, 100, 129)",
25
+ // hsl(220, 20%, 42%)
26
+ 600: "rgb(71, 83, 107)",
27
+ // hsl(220, 20%, 35%)
28
+ 700: "rgb(51, 60, 77)",
29
+ // hsl(220, 20%, 25%)
30
+ 800: "rgb(11, 14, 20)",
31
+ // hsl(220, 30%, 6%)
32
+ 900: "rgb(5, 7, 10)"
33
+ // hsl(220, 35%, 3%)
34
+ }, o = {
25
35
  50: "hsl(120, 80%, 98%)",
26
36
  100: "hsl(120, 75%, 94%)",
27
37
  200: "hsl(120, 75%, 87%)",
@@ -32,7 +42,7 @@ const e = n(), p = [...e.shadows], t = {
32
42
  700: "hsl(120, 75%, 16%)",
33
43
  800: "hsl(120, 84%, 10%)",
34
44
  900: "hsl(120, 87%, 6%)"
35
- }, a = {
45
+ }, h = {
36
46
  50: "hsl(45, 100%, 97%)",
37
47
  100: "hsl(45, 92%, 90%)",
38
48
  200: "hsl(45, 94%, 80%)",
@@ -54,15 +64,15 @@ const e = n(), p = [...e.shadows], t = {
54
64
  700: "hsl(0, 94%, 18%)",
55
65
  800: "hsl(0, 95%, 12%)",
56
66
  900: "hsl(0, 93%, 6%)"
57
- }, y = (r) => (p[1] = r === "dark" ? "hsla(220, 30%, 5%, 0.7) 0px 4px 16px 0px, hsla(220, 25%, 10%, 0.8) 0px 8px 16px -5px" : "hsla(220, 30%, 5%, 0.07) 0px 4px 16px 0px, hsla(220, 25%, 10%, 0.07) 0px 8px 16px -5px", {
67
+ }, y = (p) => (n[1] = p === "dark" ? "hsla(220, 30%, 5%, 0.7) 0px 4px 16px 0px, hsla(220, 25%, 10%, 0.8) 0px 8px 16px -5px" : "hsla(220, 30%, 5%, 0.07) 0px 4px 16px 0px, hsla(220, 25%, 10%, 0.07) 0px 8px 16px -5px", {
58
68
  palette: {
59
- mode: r,
69
+ mode: p,
60
70
  primary: {
61
71
  light: t[200],
62
72
  main: t[400],
63
73
  dark: t[700],
64
74
  contrastText: t[50],
65
- ...r === "dark" && {
75
+ ...p === "dark" && {
66
76
  contrastText: t[50],
67
77
  light: t[300],
68
78
  main: t[400],
@@ -73,8 +83,8 @@ const e = n(), p = [...e.shadows], t = {
73
83
  light: t[100],
74
84
  main: t[300],
75
85
  dark: t[600],
76
- contrastText: h[50],
77
- ...r === "dark" && {
86
+ contrastText: e[50],
87
+ ...p === "dark" && {
78
88
  contrastText: t[300],
79
89
  light: t[500],
80
90
  main: t[700],
@@ -82,112 +92,112 @@ const e = n(), p = [...e.shadows], t = {
82
92
  }
83
93
  },
84
94
  warning: {
85
- light: a[300],
86
- main: a[400],
87
- dark: a[800],
88
- ...r === "dark" && {
89
- light: a[400],
90
- main: a[500],
91
- dark: a[700]
95
+ light: h[300],
96
+ main: h[400],
97
+ dark: h[800],
98
+ ...p === "dark" && {
99
+ light: h[400],
100
+ main: h[500],
101
+ dark: h[700]
92
102
  }
93
103
  },
94
104
  error: {
95
105
  light: i[300],
96
106
  main: i[400],
97
107
  dark: i[800],
98
- ...r === "dark" && {
108
+ ...p === "dark" && {
99
109
  light: i[400],
100
110
  main: i[500],
101
111
  dark: i[700]
102
112
  }
103
113
  },
104
114
  success: {
105
- light: s[300],
106
- main: s[400],
107
- dark: s[800],
108
- ...r === "dark" && {
109
- light: s[400],
110
- main: s[500],
111
- dark: s[700]
115
+ light: o[300],
116
+ main: o[400],
117
+ dark: o[800],
118
+ ...p === "dark" && {
119
+ light: o[400],
120
+ main: o[500],
121
+ dark: o[700]
112
122
  }
113
123
  },
114
124
  grey: {
115
- ...h
125
+ ...e
116
126
  },
117
- divider: r === "dark" ? o(h[700], 0.6) : o(h[300], 0.4),
127
+ divider: p === "dark" ? r(e[700], 0.6) : r(e[300], 0.4),
118
128
  background: {
119
129
  default: "hsl(0, 0%, 99%)",
120
130
  paper: "hsl(220, 35%, 97%)",
121
- ...r === "dark" && { default: h[900], paper: "hsl(220, 30%, 7%)" }
131
+ ...p === "dark" && { default: e[900], paper: "hsl(220, 30%, 7%)" }
122
132
  },
123
133
  text: {
124
- primary: h[800],
125
- secondary: h[600],
126
- warning: a[400],
127
- ...r === "dark" && { primary: "hsl(0, 0%, 100%)", secondary: h[400] }
134
+ primary: e[800],
135
+ secondary: e[600],
136
+ warning: h[400],
137
+ ...p === "dark" && { primary: "rgb(255, 255, 255)", secondary: e[400] }
128
138
  },
129
139
  action: {
130
- hover: o(h[200], 0.2),
131
- selected: `${o(h[200], 0.3)}`,
132
- ...r === "dark" && {
133
- hover: o(h[600], 0.2),
134
- selected: o(h[600], 0.3)
140
+ hover: r(e[200], 0.2),
141
+ selected: `${r(e[200], 0.3)}`,
142
+ ...p === "dark" && {
143
+ hover: r(e[600], 0.2),
144
+ selected: r(e[600], 0.3)
135
145
  }
136
146
  }
137
147
  },
138
148
  typography: {
139
149
  fontFamily: "Inter, sans-serif",
140
150
  h1: {
141
- fontSize: e.typography.pxToRem(48),
151
+ fontSize: a.typography.pxToRem(48),
142
152
  fontWeight: 600,
143
153
  lineHeight: 1.2,
144
154
  letterSpacing: -0.5
145
155
  },
146
156
  h2: {
147
- fontSize: e.typography.pxToRem(36),
157
+ fontSize: a.typography.pxToRem(36),
148
158
  fontWeight: 600,
149
159
  lineHeight: 1.2
150
160
  },
151
161
  h3: {
152
- fontSize: e.typography.pxToRem(30),
162
+ fontSize: a.typography.pxToRem(30),
153
163
  lineHeight: 1.2
154
164
  },
155
165
  h4: {
156
- fontSize: e.typography.pxToRem(24),
166
+ fontSize: a.typography.pxToRem(24),
157
167
  fontWeight: 600,
158
168
  lineHeight: 1.5
159
169
  },
160
170
  h5: {
161
- fontSize: e.typography.pxToRem(20),
171
+ fontSize: a.typography.pxToRem(20),
162
172
  fontWeight: 600
163
173
  },
164
174
  h6: {
165
- fontSize: e.typography.pxToRem(18),
175
+ fontSize: a.typography.pxToRem(18),
166
176
  fontWeight: 600
167
177
  },
168
178
  subtitle1: {
169
- fontSize: e.typography.pxToRem(18)
179
+ fontSize: a.typography.pxToRem(18)
170
180
  },
171
181
  subtitle2: {
172
- fontSize: e.typography.pxToRem(14),
182
+ fontSize: a.typography.pxToRem(14),
173
183
  fontWeight: 500
174
184
  },
175
185
  body1: {
176
- fontSize: e.typography.pxToRem(14)
186
+ fontSize: a.typography.pxToRem(14)
177
187
  },
178
188
  body2: {
179
- fontSize: e.typography.pxToRem(14),
189
+ fontSize: a.typography.pxToRem(14),
180
190
  fontWeight: 400
181
191
  },
182
192
  caption: {
183
- fontSize: e.typography.pxToRem(12),
193
+ fontSize: a.typography.pxToRem(12),
184
194
  fontWeight: 400
185
195
  }
186
196
  },
187
197
  shape: {
188
198
  borderRadius: 8
189
199
  },
190
- shadows: p
200
+ shadows: n
191
201
  }), x = {
192
202
  light: {
193
203
  palette: {
@@ -201,12 +211,12 @@ const e = n(), p = [...e.shadows], t = {
201
211
  light: t[100],
202
212
  main: t[300],
203
213
  dark: t[600],
204
- contrastText: h[50]
214
+ contrastText: e[50]
205
215
  },
206
216
  warning: {
207
- light: a[300],
208
- main: a[400],
209
- dark: a[800]
217
+ light: h[300],
218
+ main: h[400],
219
+ dark: h[800]
210
220
  },
211
221
  error: {
212
222
  light: i[300],
@@ -214,26 +224,26 @@ const e = n(), p = [...e.shadows], t = {
214
224
  dark: i[800]
215
225
  },
216
226
  success: {
217
- light: s[300],
218
- main: s[400],
219
- dark: s[800]
227
+ light: o[300],
228
+ main: o[400],
229
+ dark: o[800]
220
230
  },
221
231
  grey: {
222
- ...h
232
+ ...e
223
233
  },
224
- divider: o(h[300], 0.4),
234
+ divider: r(e[300], 0.4),
225
235
  background: {
226
236
  default: "hsl(0, 0%, 99%)",
227
237
  paper: "hsl(220, 35%, 97%)"
228
238
  },
229
239
  text: {
230
- primary: h[800],
231
- secondary: h[600],
232
- warning: a[400]
240
+ primary: e[800],
241
+ secondary: e[600],
242
+ warning: h[400]
233
243
  },
234
244
  action: {
235
- hover: o(h[200], 0.2),
236
- selected: `${o(h[200], 0.3)}`
245
+ hover: r(e[200], 0.2),
246
+ selected: `${r(e[200], 0.3)}`
237
247
  },
238
248
  baseShadow: "hsla(220, 30%, 5%, 0.07) 0px 4px 16px 0px, hsla(220, 25%, 10%, 0.07) 0px 8px 16px -5px"
239
249
  }
@@ -253,9 +263,9 @@ const e = n(), p = [...e.shadows], t = {
253
263
  dark: t[900]
254
264
  },
255
265
  warning: {
256
- light: a[400],
257
- main: a[500],
258
- dark: a[700]
266
+ light: h[400],
267
+ main: h[500],
268
+ dark: h[700]
259
269
  },
260
270
  error: {
261
271
  light: i[400],
@@ -263,25 +273,25 @@ const e = n(), p = [...e.shadows], t = {
263
273
  dark: i[700]
264
274
  },
265
275
  success: {
266
- light: s[400],
267
- main: s[500],
268
- dark: s[700]
276
+ light: o[400],
277
+ main: o[500],
278
+ dark: o[700]
269
279
  },
270
280
  grey: {
271
- ...h
281
+ ...e
272
282
  },
273
- divider: o(h[700], 0.6),
283
+ divider: r(e[700], 0.6),
274
284
  background: {
275
- default: h[900],
285
+ default: e[900],
276
286
  paper: "hsl(220, 30%, 7%)"
277
287
  },
278
288
  text: {
279
- primary: "hsl(0, 0%, 100%)",
280
- secondary: h[400]
289
+ primary: "rgb(255, 255, 255)",
290
+ secondary: e[400]
281
291
  },
282
292
  action: {
283
- hover: o(h[600], 0.2),
284
- selected: o(h[600], 0.3)
293
+ hover: r(e[600], 0.2),
294
+ selected: r(e[600], 0.3)
285
295
  },
286
296
  baseShadow: "hsla(220, 30%, 5%, 0.7) 0px 4px 16px 0px, hsla(220, 25%, 10%, 0.8) 0px 8px 16px -5px"
287
297
  }
@@ -289,61 +299,61 @@ const e = n(), p = [...e.shadows], t = {
289
299
  }, d = {
290
300
  fontFamily: "Inter, sans-serif",
291
301
  h1: {
292
- fontSize: e.typography.pxToRem(48),
302
+ fontSize: a.typography.pxToRem(48),
293
303
  fontWeight: 600,
294
304
  lineHeight: 1.2,
295
305
  letterSpacing: -0.5
296
306
  },
297
307
  h2: {
298
- fontSize: e.typography.pxToRem(36),
308
+ fontSize: a.typography.pxToRem(36),
299
309
  fontWeight: 600,
300
310
  lineHeight: 1.2
301
311
  },
302
312
  h3: {
303
- fontSize: e.typography.pxToRem(30),
313
+ fontSize: a.typography.pxToRem(30),
304
314
  lineHeight: 1.2
305
315
  },
306
316
  h4: {
307
- fontSize: e.typography.pxToRem(24),
317
+ fontSize: a.typography.pxToRem(24),
308
318
  fontWeight: 600,
309
319
  lineHeight: 1.5
310
320
  },
311
321
  h5: {
312
- fontSize: e.typography.pxToRem(20),
322
+ fontSize: a.typography.pxToRem(20),
313
323
  fontWeight: 600
314
324
  },
315
325
  h6: {
316
- fontSize: e.typography.pxToRem(18),
326
+ fontSize: a.typography.pxToRem(18),
317
327
  fontWeight: 600
318
328
  },
319
329
  subtitle1: {
320
- fontSize: e.typography.pxToRem(18)
330
+ fontSize: a.typography.pxToRem(18)
321
331
  },
322
332
  subtitle2: {
323
- fontSize: e.typography.pxToRem(14),
333
+ fontSize: a.typography.pxToRem(14),
324
334
  fontWeight: 500
325
335
  },
326
336
  body1: {
327
- fontSize: e.typography.pxToRem(14)
337
+ fontSize: a.typography.pxToRem(14)
328
338
  },
329
339
  body2: {
330
- fontSize: e.typography.pxToRem(14),
340
+ fontSize: a.typography.pxToRem(14),
331
341
  fontWeight: 400
332
342
  },
333
343
  caption: {
334
- fontSize: e.typography.pxToRem(12),
344
+ fontSize: a.typography.pxToRem(12),
335
345
  fontWeight: 400
336
346
  }
337
347
  }, f = {
338
348
  borderRadius: 8
339
- }, l = ["none", "var(--s-palette-baseShadow)", ...e.shadows.slice(2)], c = l;
349
+ }, l = ["none", "var(--s-palette-baseShadow)", ...a.shadows.slice(2)], c = l;
340
350
  export {
341
351
  t as brand,
342
352
  x as colorSchemes,
343
353
  y as getDesignTokens,
344
- h as gray,
345
- s as green,
346
- a as orange,
354
+ e as gray,
355
+ o as green,
356
+ h as orange,
347
357
  i as red,
348
358
  c as shadows,
349
359
  f as shape,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org"
5
5
  },
6
- "version": "1.0.44",
6
+ "version": "1.0.46",
7
7
  "description": "advanced ui kit for solostylist",
8
8
  "private": false,
9
9
  "type": "module",
@@ -47,7 +47,9 @@
47
47
  "react-dropzone": "^14.3.8",
48
48
  "react-i18next": "^15.5.1",
49
49
  "react-image-gallery": "^1.4.0",
50
- "uuid": "^11.1.0"
50
+ "uuid": "^11.1.0",
51
+ "@stripe/react-stripe-js": "^3.7.0",
52
+ "@stripe/stripe-js": "^7.3.1"
51
53
  },
52
54
  "devDependencies": {
53
55
  "@ianvs/prettier-plugin-sort-imports": "^4.4.2",