@shiflo/ui 0.0.19 → 0.1.1

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 (52) hide show
  1. package/dist/components/BottomSheet/BottomSheet.d.ts +1 -1
  2. package/dist/components/BottomSheet/BottomSheet.mjs +61 -76
  3. package/dist/components/BottomSheet/BottomSheet.typing.d.ts +4 -2
  4. package/dist/components/Box/Box.mjs +16 -21
  5. package/dist/components/Box/Box.typing.d.ts +4 -4
  6. package/dist/components/Button/Button.d.ts +1 -1
  7. package/dist/components/Button/Button.mjs +176 -86
  8. package/dist/components/Button/Button.typing.d.ts +7 -2
  9. package/dist/components/Dialog/Dialog.d.ts +1 -1
  10. package/dist/components/Dialog/Dialog.mjs +34 -32
  11. package/dist/components/Dialog/Dialog.typing.d.ts +3 -2
  12. package/dist/components/FPSMonitor/FPSMonitor.d.ts +11 -0
  13. package/dist/components/FPSMonitor/FPSMonitor.mjs +201 -0
  14. package/dist/components/FPSMonitor/FPSMonitor.utils.d.ts +69 -0
  15. package/dist/components/FPSMonitor/FPSMonitor.utils.mjs +116 -0
  16. package/dist/components/FPSMonitor/index.d.ts +3 -0
  17. package/dist/components/FPSMonitor/index.mjs +4 -0
  18. package/dist/components/Icon/Icon.d.ts +1 -1
  19. package/dist/components/Icon/Icon.mjs +2 -2
  20. package/dist/components/Icon/Icon.typing.d.ts +4 -4
  21. package/dist/components/Overlay/Overlay.d.ts +1 -1
  22. package/dist/components/Overlay/Overlay.mjs +45 -42
  23. package/dist/components/Overlay/Overlay.typing.d.ts +2 -3
  24. package/dist/components/Snackbar/Snackbar.mjs +64 -60
  25. package/dist/components/Snackbar/Snackbar.typing.d.ts +3 -3
  26. package/dist/components/Switch/Switch.d.ts +1 -1
  27. package/dist/components/Switch/Switch.mjs +53 -40
  28. package/dist/components/Switch/Switch.typing.d.ts +3 -3
  29. package/dist/components/Tag/Tag.d.ts +1 -1
  30. package/dist/components/Tag/Tag.mjs +13 -14
  31. package/dist/components/Tag/Tag.typing.d.ts +2 -2
  32. package/dist/components/TextField/TextField.d.ts +1 -1
  33. package/dist/components/TextField/TextField.mjs +24 -30
  34. package/dist/components/TextField/TextField.typing.d.ts +3 -3
  35. package/dist/components/Typography/Typography.mjs +21 -26
  36. package/dist/components/Typography/Typography.typing.d.ts +4 -4
  37. package/dist/components/index.d.ts +23 -0
  38. package/dist/components/index.mjs +24 -0
  39. package/dist/theme/GlobalStyle.d.ts +1 -1
  40. package/dist/theme/GlobalStyle.mjs +69 -38
  41. package/dist/theme/ThemeProvider.d.ts +1 -1
  42. package/dist/theme/ThemeProvider.mjs +10 -16
  43. package/dist/theme/dark.d.ts +2 -2
  44. package/dist/theme/dark.mjs +19 -2
  45. package/dist/theme/light.d.ts +2 -2
  46. package/dist/theme/light.mjs +28 -11
  47. package/dist/theme/typing.d.ts +87 -68
  48. package/dist/typings/utility.d.ts +3 -2
  49. package/dist/utils/getUtilityProps.mjs +9 -9
  50. package/dist/utils/index.d.ts +3 -0
  51. package/dist/utils/index.mjs +8 -0
  52. package/package.json +27 -24
@@ -1,46 +1,41 @@
1
- import { jsx as h } from "react/jsx-runtime";
2
- import p from "basic-styled";
3
- import b from "../../utils/getUtilityProps.mjs";
1
+ import { jsx as c } from "@emotion/react/jsx-runtime";
2
+ import f from "@emotion/styled";
3
+ import { motion as y } from "motion/react";
4
+ import d from "../../utils/getUtilityProps.mjs";
4
5
  import r from "../../utils/getValueByPath.mjs";
5
- const f = p.div`
6
- transition:
7
- font-size 0.2s,
8
- line-height 0.2s,
9
- border-width 0.2s,
10
- border-radius 0.2s,
11
- border-color 0.2s,
12
- color 0.2s;
6
+ const h = f(y.div)`
7
+ transition: all 0.2s;
13
8
 
14
- ${({ theme: { typography: o, palette: t }, variant: s, color: n, fontWeight: l, borderColor: i, ...d }) => {
15
- const { fontSize: a, lineHeight: c } = o[s || "body2"], e = {
16
- fontSize: a,
17
- lineHeight: c,
9
+ ${({ theme: { typography: t, palette: i }, variant: s, color: n, fontWeight: l, borderColor: e, ...a }) => {
10
+ const { fontSize: p, lineHeight: m } = t[s || "body2"], o = {
11
+ fontSize: p,
12
+ lineHeight: m,
18
13
  fontWeight: l
19
14
  };
20
- return Object.assign(e, b(d)), i && Object.assign(e, {
21
- borderColor: r(t, i) || "inherit"
22
- }), Object.assign(e, {
23
- color: r(t, n) || "inherit"
24
- }), e;
15
+ return Object.assign(o, d(a)), e && Object.assign(o, {
16
+ borderColor: r(i, e) || "inherit"
17
+ }), Object.assign(o, {
18
+ color: r(i, n) || "inherit"
19
+ }), o;
25
20
  }};
26
21
 
27
- ${({ textAlign: o }) => o ? {
28
- textAlign: o
22
+ ${({ textAlign: t }) => t ? {
23
+ textAlign: t
29
24
  } : {}};
30
25
 
31
- ${({ noWrap: o }) => o ? {
26
+ ${({ noWrap: t }) => t ? {
32
27
  whiteSpace: "nowrap",
33
28
  overflow: "hidden",
34
29
  textOverflow: "ellipsis"
35
30
  } : {}};
36
31
 
37
- ${({ lineClamp: o }) => o ? {
32
+ ${({ lineClamp: t }) => t ? {
38
33
  display: "-webkit-box",
39
34
  overflow: "hidden",
40
- "-webkit-line-clamp": o,
35
+ "-webkit-line-clamp": t,
41
36
  "-webkit-box-orient": "vertical"
42
37
  } : {}};
43
- `, u = (o) => /* @__PURE__ */ h(f, { ...o });
38
+ `, u = (t) => /* @__PURE__ */ c(h, { ...t });
44
39
  export {
45
40
  u as default
46
41
  };
@@ -1,12 +1,12 @@
1
1
  import { ReactNode, ElementType } from 'react';
2
+ import { ShifloTheme } from '../../theme/typing';
2
3
  import { PolymorphicComponentProps } from '../../typings/component';
3
4
  import { UtilityProps, RecursionPath } from '../../typings/utility';
4
- import { BasicTheme } from 'basic-styled';
5
5
  export interface BaseTypographyProps extends UtilityProps {
6
- variant?: keyof BasicTheme["typography"];
6
+ variant?: keyof ShifloTheme["typography"];
7
7
  fontWeight?: 400 | 500 | 700;
8
- color?: RecursionPath<BasicTheme["palette"]> | "inherit";
9
- borderColor?: RecursionPath<BasicTheme["palette"]>;
8
+ color?: RecursionPath<ShifloTheme["palette"]> | "inherit";
9
+ borderColor?: RecursionPath<ShifloTheme["palette"]>;
10
10
  textAlign?: "left" | "center" | "right";
11
11
  noWrap?: boolean;
12
12
  lineClamp?: number;
@@ -0,0 +1,23 @@
1
+ import { default as BottomSheet } from './BottomSheet';
2
+ import { default as Box } from './Box';
3
+ import { default as Button } from './Button';
4
+ import { default as Dialog } from './Dialog';
5
+ import { default as Icon } from './Icon';
6
+ import { default as Overlay } from './Overlay';
7
+ import { default as Snackbar } from './Snackbar';
8
+ import { default as Switch } from './Switch';
9
+ import { default as Tag } from './Tag';
10
+ import { default as TextField } from './TextField';
11
+ import { default as Typography } from './Typography';
12
+ export * from './BottomSheet';
13
+ export * from './Box';
14
+ export * from './Button';
15
+ export * from './Dialog';
16
+ export * from './Icon';
17
+ export * from './Overlay';
18
+ export * from './Snackbar';
19
+ export * from './Switch';
20
+ export * from './Tag';
21
+ export * from './TextField';
22
+ export * from './Typography';
23
+ export { Button, Box, Typography, TextField, Overlay, BottomSheet, Dialog, Icon, Snackbar, Switch, Tag };
@@ -0,0 +1,24 @@
1
+ import { default as a } from "./BottomSheet/BottomSheet.mjs";
2
+ import { default as r } from "./Box/Box.mjs";
3
+ import { default as l } from "./Button/Button.mjs";
4
+ import { default as x } from "./Dialog/Dialog.mjs";
5
+ import { default as m } from "./Icon/Icon.mjs";
6
+ import { default as s } from "./Overlay/Overlay.mjs";
7
+ import { default as g } from "./Snackbar/Snackbar.mjs";
8
+ import { default as i } from "./Switch/Switch.mjs";
9
+ import { default as y } from "./Tag/Tag.mjs";
10
+ import { default as S } from "./TextField/TextField.mjs";
11
+ import { default as b } from "./Typography/Typography.mjs";
12
+ export {
13
+ a as BottomSheet,
14
+ r as Box,
15
+ l as Button,
16
+ x as Dialog,
17
+ m as Icon,
18
+ s as Overlay,
19
+ g as Snackbar,
20
+ i as Switch,
21
+ y as Tag,
22
+ S as TextField,
23
+ b as Typography
24
+ };
@@ -1,2 +1,2 @@
1
- declare function GlobalStyle(): import("react").JSX.Element;
1
+ declare function GlobalStyle(): import("@emotion/react/jsx-runtime").JSX.Element;
2
2
  export default GlobalStyle;
@@ -1,41 +1,72 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import e from "basic-styled";
3
- function r() {
4
- return /* @__PURE__ */ t(a, { globalStyle: !0 });
1
+ import { jsx as t } from "@emotion/react/jsx-runtime";
2
+ import { useTheme as a, Global as r } from "@emotion/react";
3
+ function l() {
4
+ const {
5
+ palette: { common: o, text: e }
6
+ } = a();
7
+ return /* @__PURE__ */ t(
8
+ r,
9
+ {
10
+ styles: {
11
+ "*": {
12
+ margin: 0,
13
+ padding: 0,
14
+ font: "inherit",
15
+ color: "inherit",
16
+ WebkitTapHighlightColor: "transparent",
17
+ userSelect: "none"
18
+ },
19
+ "*, :after, :before": {
20
+ boxSizing: "border-box",
21
+ MozOsxFontSmoothing: "grayscale",
22
+ WebkitFontSmoothing: "antialiased"
23
+ },
24
+ ":root": {
25
+ WebkitTextSizeAdjust: "100%",
26
+ textSizeAdjust: "100%",
27
+ cursor: "default",
28
+ overflowWrap: "break-word",
29
+ MozTabSize: 4,
30
+ tabSize: 4
31
+ },
32
+ "html, body": {
33
+ height: "100%",
34
+ color: e.primary,
35
+ backgroundColor: o.background,
36
+ transition: "background-color 0.2s, color 0.2s",
37
+ fontFamily: `Spoqa Han Sans Neo, -apple-system, BlinkMacSystemFont, Helvetica Neue,
38
+ Apple SD Gothic Neo, Malgun Gothic, 맑은 고딕, 나눔고딕, Nanum Gothic,
39
+ Noto Sans KR, Noto Sans CJK KR, arial, 돋움, Dotum, Tahoma, Geneva, sans-serif`
40
+ },
41
+ "input, textarea": {
42
+ userSelect: "text"
43
+ },
44
+ "picture, video, canvas": {
45
+ display: "block",
46
+ maxWidth: "100%"
47
+ },
48
+ "svg, img, video": {
49
+ verticalAlign: "middle"
50
+ },
51
+ button: {
52
+ background: "none",
53
+ border: 0,
54
+ cursor: "pointer"
55
+ },
56
+ a: {
57
+ textDecoration: "none"
58
+ },
59
+ table: {
60
+ borderCollapse: "collapse",
61
+ borderSpacing: 0
62
+ },
63
+ ul: {
64
+ listStyle: "none"
65
+ }
66
+ }
67
+ }
68
+ );
5
69
  }
6
- const a = e.style`
7
- html,
8
- body {
9
- background-color: ${({
10
- theme: {
11
- palette: { common: o }
12
- }
13
- }) => o.background};
14
- color: ${({
15
- theme: {
16
- palette: { text: o }
17
- }
18
- }) => o.primary};
19
- font-family:
20
- Spoqa Han Sans Neo,
21
- -apple-system-,
22
- BlinkMacSystemFont,
23
- Helvetica Neue,
24
- Apple SD Gothic Neo,
25
- Malgun Gothic,
26
- Nanum Gothic,
27
- Noto Sans KR,
28
- Noto Sans CJK KR,
29
- arial,
30
- Dotum,
31
- Tahoma,
32
- Geneva,
33
- sans-serif;
34
- transition:
35
- background-color 0.2s,
36
- color 0.2s;
37
- }
38
- `;
39
70
  export {
40
- r as default
71
+ l as default
41
72
  };
@@ -2,5 +2,5 @@ import { PropsWithChildren } from 'react';
2
2
  interface ThemeProviderProps {
3
3
  theme: "light" | "dark";
4
4
  }
5
- declare function ThemeProvider({ children, theme }: PropsWithChildren<ThemeProviderProps>): import("react").JSX.Element;
5
+ declare function ThemeProvider({ children, theme }: PropsWithChildren<ThemeProviderProps>): import("@emotion/react/jsx-runtime").JSX.Element;
6
6
  export default ThemeProvider;
@@ -1,20 +1,14 @@
1
- import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
- import m from "basic-styled/setup/configureStyled";
3
- import i from "basic-styled/setup/ResetStyle";
4
- import f from "basic-styled/setup/ThemeProvider";
5
- import l from "./dark.mjs";
6
- import p from "./GlobalStyle.mjs";
7
- import h from "./light.mjs";
8
- m({
9
- prefix: "shiflo-ui"
10
- });
11
- function y({ children: e, theme: o }) {
12
- return /* @__PURE__ */ t(f, { theme: o === "dark" ? l : h, children: [
13
- /* @__PURE__ */ r(i, {}),
14
- /* @__PURE__ */ r(p, {}),
15
- e
1
+ import { jsxs as o, jsx as m } from "@emotion/react/jsx-runtime";
2
+ import { ThemeProvider as t } from "@emotion/react";
3
+ import i from "./dark.mjs";
4
+ import h from "./GlobalStyle.mjs";
5
+ import d from "./light.mjs";
6
+ function c({ children: r, theme: e }) {
7
+ return /* @__PURE__ */ o(t, { theme: e === "dark" ? i : d, children: [
8
+ /* @__PURE__ */ m(h, {}),
9
+ r
16
10
  ] });
17
11
  }
18
12
  export {
19
- y as default
13
+ c as default
20
14
  };
@@ -1,3 +1,3 @@
1
- import { BasicTheme } from 'basic-styled';
2
- declare const dark: BasicTheme;
1
+ import { ShifloTheme } from './typing';
2
+ declare const dark: ShifloTheme;
3
3
  export default dark;
@@ -1,7 +1,7 @@
1
1
  import a from "./radius.mjs";
2
2
  import r from "./spacing.mjs";
3
3
  import i from "./typography.mjs";
4
- const g = {
4
+ const C = {
5
5
  mode: "dark",
6
6
  palette: {
7
7
  primary: {
@@ -10,6 +10,7 @@ const g = {
10
10
  dark: "#004ECC",
11
11
  hover: "#7EAFFF",
12
12
  active: "#336DFF",
13
+ glow: "#1A80E6",
13
14
  alpha: {
14
15
  5: "rgba(90, 139, 255, 0.05)",
15
16
  10: "rgba(90, 139, 255, 0.1)",
@@ -17,6 +18,19 @@ const g = {
17
18
  30: "rgba(90, 139, 255, 0.3)"
18
19
  }
19
20
  },
21
+ accent: {
22
+ main: "#3399FF",
23
+ light: "#66B3FF",
24
+ dark: "#0066CC",
25
+ hover: "#4DA6FF",
26
+ active: "#0066CC",
27
+ alpha: {
28
+ 5: "rgba(51, 153, 255, 0.05)",
29
+ 10: "rgba(51, 153, 255, 0.1)",
30
+ 20: "rgba(51, 153, 255, 0.2)",
31
+ 30: "rgba(51, 153, 255, 0.3)"
32
+ }
33
+ },
20
34
  secondary: {
21
35
  main: "#2D2F36",
22
36
  light: "#40434A",
@@ -75,6 +89,9 @@ const g = {
75
89
  light: "#52565D",
76
90
  main: "#6C757D",
77
91
  dark: "#A5ACB3"
92
+ },
93
+ gradient: {
94
+ primaryToAccent: "linear-gradient(135deg, #5A8BFF 0%, hsl(225 100% 60%) 100%)"
78
95
  }
79
96
  },
80
97
  typography: i,
@@ -82,5 +99,5 @@ const g = {
82
99
  radius: a
83
100
  };
84
101
  export {
85
- g as default
102
+ C as default
86
103
  };
@@ -1,3 +1,3 @@
1
- import { BasicTheme } from 'basic-styled';
2
- declare const light: BasicTheme;
1
+ import { ShifloTheme } from './typing';
2
+ declare const light: ShifloTheme;
3
3
  export default light;
@@ -1,20 +1,34 @@
1
1
  import a from "./radius.mjs";
2
2
  import r from "./spacing.mjs";
3
3
  import F from "./typography.mjs";
4
- const C = {
4
+ const e = {
5
5
  mode: "light",
6
6
  palette: {
7
7
  primary: {
8
- main: "#004ECC",
9
- light: "#5A8BFF",
10
- dark: "#003699",
11
- hover: "#336DFF",
12
- active: "#003699",
8
+ main: "#0066CC",
9
+ light: "#3399FF",
10
+ dark: "#004499",
11
+ hover: "#1A80E6",
12
+ active: "#004499",
13
+ glow: "#1A80E6",
13
14
  alpha: {
14
- 5: "rgba(0, 78, 204, 0.05)",
15
- 10: "rgba(0, 78, 204, 0.1)",
16
- 20: "rgba(0, 78, 204, 0.2)",
17
- 30: "rgba(0, 78, 204, 0.3)"
15
+ 5: "rgba(0, 102, 204, 0.05)",
16
+ 10: "rgba(0, 102, 204, 0.1)",
17
+ 20: "rgba(0, 102, 204, 0.2)",
18
+ 30: "rgba(0, 102, 204, 0.3)"
19
+ }
20
+ },
21
+ accent: {
22
+ main: "#3399FF",
23
+ light: "#66B3FF",
24
+ dark: "#0066CC",
25
+ hover: "#4DA6FF",
26
+ active: "#0066CC",
27
+ alpha: {
28
+ 5: "rgba(51, 153, 255, 0.05)",
29
+ 10: "rgba(51, 153, 255, 0.1)",
30
+ 20: "rgba(51, 153, 255, 0.2)",
31
+ 30: "rgba(51, 153, 255, 0.3)"
18
32
  }
19
33
  },
20
34
  secondary: {
@@ -75,6 +89,9 @@ const C = {
75
89
  light: "#DEE2E6",
76
90
  main: "#ADB5BD",
77
91
  dark: "#6C757D"
92
+ },
93
+ gradient: {
94
+ primaryToAccent: "linear-gradient(135deg, hsl(225 100% 40%) 0%, hsl(225 100% 60%) 100%)"
78
95
  }
79
96
  },
80
97
  typography: F,
@@ -82,5 +99,5 @@ const C = {
82
99
  radius: a
83
100
  };
84
101
  export {
85
- C as default
102
+ e as default
86
103
  };
@@ -1,85 +1,104 @@
1
1
  import { default as radius } from './radius';
2
2
  import { default as spacing } from './spacing';
3
3
  import { default as typography } from './typography';
4
- declare module "basic-styled" {
5
- interface BasicTheme {
6
- mode: "light" | "dark";
7
- palette: {
8
- primary: {
9
- main: string;
4
+ export interface ShifloTheme {
5
+ mode: "light" | "dark";
6
+ palette: {
7
+ primary: {
8
+ main: string;
9
+ light: string;
10
+ dark: string;
11
+ hover: string;
12
+ active: string;
13
+ glow: string;
14
+ alpha: {
15
+ 5: string;
16
+ 10: string;
17
+ 20: string;
18
+ 30: string;
19
+ };
20
+ };
21
+ accent: {
22
+ main: string;
23
+ light: string;
24
+ dark: string;
25
+ hover: string;
26
+ active: string;
27
+ alpha: {
28
+ 5: string;
29
+ 10: string;
30
+ 20: string;
31
+ 30: string;
32
+ };
33
+ };
34
+ secondary: {
35
+ main: string;
36
+ light: string;
37
+ dark: string;
38
+ alpha: {
39
+ 5: string;
40
+ 10: string;
41
+ 20: string;
42
+ 30: string;
43
+ };
44
+ };
45
+ neutral: {
46
+ 100: string;
47
+ 200: string;
48
+ 300: string;
49
+ 400: string;
50
+ 500: string;
51
+ 600: string;
52
+ 700: string;
53
+ 800: string;
54
+ 900: string;
55
+ };
56
+ feedback: {
57
+ success: {
10
58
  light: string;
59
+ main: string;
11
60
  dark: string;
12
- hover: string;
13
- active: string;
14
- alpha: {
15
- 5: string;
16
- 10: string;
17
- 20: string;
18
- 30: string;
19
- };
20
61
  };
21
- secondary: {
22
- main: string;
62
+ warning: {
23
63
  light: string;
64
+ main: string;
24
65
  dark: string;
25
- alpha: {
26
- 5: string;
27
- 10: string;
28
- 20: string;
29
- 30: string;
30
- };
31
66
  };
32
- neutral: {
33
- 100: string;
34
- 200: string;
35
- 300: string;
36
- 400: string;
37
- 500: string;
38
- 600: string;
39
- 700: string;
40
- 800: string;
41
- 900: string;
42
- };
43
- feedback: {
44
- success: {
45
- light: string;
46
- main: string;
47
- dark: string;
48
- };
49
- warning: {
50
- light: string;
51
- main: string;
52
- dark: string;
53
- };
54
- error: {
55
- light: string;
56
- main: string;
57
- dark: string;
58
- };
59
- info: {
60
- light: string;
61
- main: string;
62
- dark: string;
63
- };
64
- };
65
- common: {
66
- background: string;
67
- surface: string;
68
- overlay: string;
69
- };
70
- text: {
71
- primary: string;
72
- secondary: string;
73
- disabled: string;
67
+ error: {
68
+ light: string;
69
+ main: string;
70
+ dark: string;
74
71
  };
75
- border: {
72
+ info: {
76
73
  light: string;
77
74
  main: string;
78
75
  dark: string;
79
76
  };
80
77
  };
81
- typography: typeof typography;
82
- spacing: typeof spacing;
83
- radius: typeof radius;
78
+ common: {
79
+ background: string;
80
+ surface: string;
81
+ overlay: string;
82
+ };
83
+ text: {
84
+ primary: string;
85
+ secondary: string;
86
+ disabled: string;
87
+ };
88
+ border: {
89
+ light: string;
90
+ main: string;
91
+ dark: string;
92
+ };
93
+ gradient: {
94
+ primaryToAccent: string;
95
+ };
96
+ };
97
+ typography: typeof typography;
98
+ spacing: typeof spacing;
99
+ radius: typeof radius;
100
+ }
101
+ declare module "@emotion/react" {
102
+ interface Theme extends ShifloTheme {
84
103
  }
85
104
  }
@@ -1,9 +1,10 @@
1
- import { CSS } from 'basic-styled/core/typing';
1
+ import { Interpolation } from '@emotion/serialize';
2
2
  import { default as radius } from '../theme/radius';
3
3
  import { default as spacing } from '../theme/spacing';
4
+ import { ShifloTheme } from '../theme/typing';
4
5
  import { Properties } from 'csstype';
5
6
  export type UtilityProps = Partial<Pick<Properties, "display" | "alignItems" | "justifyContent" | "flex" | "flexWrap" | "flexDirection" | "flexGrow" | "flexFlow" | "flexBasis" | "flexShrink" | "border" | "borderTop" | "borderBottom" | "borderRight" | "borderLeft"> & Record<"m" | "mt" | "mb" | "mr" | "ml" | "p" | "pt" | "pb" | "pl" | "pr" | "gap", keyof typeof spacing> & Record<"br" | "brtl" | "brtr" | "brml" | "brmr", keyof typeof radius>> & {
6
- css?: CSS;
7
+ css?: Interpolation<ShifloTheme>;
7
8
  };
8
9
  export type RecursionPath<T, Prefix extends string = ""> = Exclude<{
9
10
  [K in keyof T & (string | number)]: T[K] extends object ? `${Prefix}${K}` | RecursionPath<T[K], `${Prefix}${K}.`> : `${Prefix}${K}`;
@@ -12,15 +12,15 @@ function Q({
12
12
  justifyContent: b,
13
13
  alignItems: d,
14
14
  m: o,
15
- mt: R,
16
- mr: u,
15
+ mt: u,
16
+ mr: R,
17
17
  mb: p,
18
- ml: h,
19
- p: m,
20
- pt: L,
21
- pr: T,
22
- pb: r,
23
- pl: B,
18
+ ml: m,
19
+ p: L,
20
+ pt: T,
21
+ pr: h,
22
+ pb: B,
23
+ pl: r,
24
24
  border: P,
25
25
  borderTop: U,
26
26
  borderBottom: q,
@@ -34,7 +34,7 @@ function Q({
34
34
  gap: K
35
35
  }) {
36
36
  const i = {};
37
- return g && Object.assign(i, { display: g }), t && Object.assign(i, { flex: t }), n && Object.assign(i, { flexBasis: n }), c && Object.assign(i, { flexDirection: c }), O && Object.assign(i, { flexFlow: O }), f && Object.assign(i, { flexGrow: f }), j && Object.assign(i, { flexShrink: j }), e && Object.assign(i, { flexWrap: e }), b && Object.assign(i, { justifyContent: b }), d && Object.assign(i, { alignItems: d }), o && Object.assign(i, { margin: s[o] }), R && Object.assign(i, { marginTop: s[R] }), p && Object.assign(i, { marginRight: s[p] }), h && Object.assign(i, { marginLeft: s[h] }), u && Object.assign(i, { marginRight: s[u] }), m && Object.assign(i, { padding: s[m] }), L && Object.assign(i, { paddingTop: s[L] }), r && Object.assign(i, { paddingBottom: s[r] }), B && Object.assign(i, { paddingLeft: s[B] }), T && Object.assign(i, { paddingRight: s[T] }), K && Object.assign(i, { gap: s[K] }), P && Object.assign(i, { border: P }), U && Object.assign(i, { borderTop: U }), q && Object.assign(i, { borderBottom: q }), v && Object.assign(i, { borderRight: v }), y && Object.assign(i, { borderLeft: y }), z && Object.assign(i, { borderRadius: a[z] }), A && Object.assign(i, { borderTopLeftRadius: a[A] }), E && Object.assign(i, { borderTopRightRadius: a[E] }), H && Object.assign(i, { borderBottomLeftRadius: a[H] }), J && Object.assign(i, { borderBottomRightRadius: a[J] }), i;
37
+ return g && Object.assign(i, { display: g }), t && Object.assign(i, { flex: t }), n && Object.assign(i, { flexBasis: n }), c && Object.assign(i, { flexDirection: c }), O && Object.assign(i, { flexFlow: O }), f && Object.assign(i, { flexGrow: f }), j && Object.assign(i, { flexShrink: j }), e && Object.assign(i, { flexWrap: e }), b && Object.assign(i, { justifyContent: b }), d && Object.assign(i, { alignItems: d }), o && Object.assign(i, { margin: s[o] }), u && Object.assign(i, { marginTop: s[u] }), p && Object.assign(i, { marginBottom: s[p] }), m && Object.assign(i, { marginLeft: s[m] }), R && Object.assign(i, { marginRight: s[R] }), L && Object.assign(i, { padding: s[L] }), T && Object.assign(i, { paddingTop: s[T] }), B && Object.assign(i, { paddingBottom: s[B] }), r && Object.assign(i, { paddingLeft: s[r] }), h && Object.assign(i, { paddingRight: s[h] }), K && Object.assign(i, { gap: s[K] }), P && Object.assign(i, { border: P }), U && Object.assign(i, { borderTop: U }), q && Object.assign(i, { borderBottom: q }), v && Object.assign(i, { borderRight: v }), y && Object.assign(i, { borderLeft: y }), z && Object.assign(i, { borderRadius: a[z] }), A && Object.assign(i, { borderTopLeftRadius: a[A] }), E && Object.assign(i, { borderTopRightRadius: a[E] }), H && Object.assign(i, { borderBottomLeftRadius: a[H] }), J && Object.assign(i, { borderBottomRightRadius: a[J] }), i;
38
38
  }
39
39
  export {
40
40
  Q as default
@@ -0,0 +1,3 @@
1
+ export { default as getObjectPaths } from './getObjectPaths';
2
+ export { default as getUtilityProps } from './getUtilityProps';
3
+ export { default as getValueByPath } from './getValueByPath';
@@ -0,0 +1,8 @@
1
+ import { default as a } from "./getObjectPaths.mjs";
2
+ import { default as r } from "./getUtilityProps.mjs";
3
+ import { default as l } from "./getValueByPath.mjs";
4
+ export {
5
+ a as getObjectPaths,
6
+ r as getUtilityProps,
7
+ l as getValueByPath
8
+ };