@xanui/core 1.0.10 → 1.0.12

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 (178) hide show
  1. package/cjs/ServerStyleTags.js +2 -0
  2. package/cjs/ServerStyleTags.js.map +7 -0
  3. package/cjs/Tag/cssPropList.js +2 -0
  4. package/cjs/Tag/cssPropList.js.map +7 -0
  5. package/cjs/Tag/index.js +2 -0
  6. package/cjs/Tag/index.js.map +7 -0
  7. package/cjs/Tag/types.js +2 -0
  8. package/cjs/Tag/types.js.map +7 -0
  9. package/cjs/Tag/useTagProps.js +2 -0
  10. package/cjs/Tag/useTagProps.js.map +7 -0
  11. package/cjs/Transition/index.js +2 -0
  12. package/cjs/Transition/index.js.map +7 -0
  13. package/cjs/Transition/variants.js +2 -0
  14. package/{Transition → cjs/Transition}/variants.js.map +3 -3
  15. package/cjs/breakpoint/index.js +2 -0
  16. package/cjs/breakpoint/index.js.map +7 -0
  17. package/cjs/breakpoint/useBreakpoint.js +2 -0
  18. package/cjs/breakpoint/useBreakpoint.js.map +7 -0
  19. package/cjs/breakpoint/useBreakpointProps.js +2 -0
  20. package/cjs/breakpoint/useBreakpointProps.js.map +7 -0
  21. package/cjs/css/aliases.js +2 -0
  22. package/cjs/css/aliases.js.map +7 -0
  23. package/cjs/css/getProps.js +2 -0
  24. package/cjs/css/getProps.js.map +7 -0
  25. package/cjs/css/getValue.js +2 -0
  26. package/{css → cjs/css}/getValue.js.map +3 -3
  27. package/cjs/css/index.js +2 -0
  28. package/cjs/css/index.js.map +7 -0
  29. package/cjs/css/types.js +2 -0
  30. package/cjs/css/types.js.map +7 -0
  31. package/cjs/index.js +2 -0
  32. package/cjs/index.js.map +7 -0
  33. package/cjs/isWindow.js +2 -0
  34. package/cjs/isWindow.js.map +7 -0
  35. package/cjs/theme/ThemeCssVars.js +2 -0
  36. package/{theme → cjs/theme}/ThemeCssVars.js.map +3 -3
  37. package/cjs/theme/ThemeDefaultOptions.js +2 -0
  38. package/{theme → cjs/theme}/ThemeDefaultOptions.js.map +3 -3
  39. package/cjs/theme/ThemeProvider.js +2 -0
  40. package/cjs/theme/ThemeProvider.js.map +7 -0
  41. package/cjs/theme/core.js +2 -0
  42. package/cjs/theme/core.js.map +7 -0
  43. package/cjs/theme/createColor.js +2 -0
  44. package/cjs/theme/createColor.js.map +7 -0
  45. package/cjs/theme/createTheme.js +2 -0
  46. package/cjs/theme/createTheme.js.map +7 -0
  47. package/cjs/theme/createThemeSwitcher.js +2 -0
  48. package/cjs/theme/createThemeSwitcher.js.map +7 -0
  49. package/cjs/theme/index.js +2 -0
  50. package/cjs/theme/index.js.map +7 -0
  51. package/cjs/theme/types.js +2 -0
  52. package/cjs/theme/types.js.map +7 -0
  53. package/cjs/useAnimation.js +2 -0
  54. package/cjs/useAnimation.js.map +7 -0
  55. package/cjs/useColorTemplate.js +2 -0
  56. package/cjs/useColorTemplate.js.map +7 -0
  57. package/cjs/useInterface.js +2 -0
  58. package/cjs/useInterface.js.map +7 -0
  59. package/esm/ServerStyleTags.js +2 -0
  60. package/esm/ServerStyleTags.js.map +7 -0
  61. package/esm/Tag/cssPropList.js +2 -0
  62. package/esm/Tag/cssPropList.js.map +7 -0
  63. package/esm/Tag/index.js +2 -0
  64. package/{Tag → esm/Tag}/index.js.map +3 -3
  65. package/esm/Tag/useTagProps.js +2 -0
  66. package/{Tag → esm/Tag}/useTagProps.js.map +3 -3
  67. package/esm/Transition/index.js +2 -0
  68. package/esm/Transition/index.js.map +7 -0
  69. package/esm/Transition/variants.js +2 -0
  70. package/esm/Transition/variants.js.map +7 -0
  71. package/esm/breakpoint/index.js +2 -0
  72. package/{breakpoint → esm/breakpoint}/index.js.map +3 -3
  73. package/esm/breakpoint/useBreakpoint.js +2 -0
  74. package/{breakpoint → esm/breakpoint}/useBreakpoint.js.map +3 -3
  75. package/esm/breakpoint/useBreakpointProps.js +2 -0
  76. package/{breakpoint → esm/breakpoint}/useBreakpointProps.js.map +3 -3
  77. package/esm/css/aliases.js +2 -0
  78. package/esm/css/aliases.js.map +7 -0
  79. package/esm/css/getProps.js +2 -0
  80. package/{css → esm/css}/getProps.js.map +3 -3
  81. package/esm/css/getValue.js +2 -0
  82. package/esm/css/getValue.js.map +7 -0
  83. package/esm/css/index.js +2 -0
  84. package/esm/css/index.js.map +7 -0
  85. package/esm/index.js +2 -0
  86. package/{index.js.map → esm/index.js.map} +3 -3
  87. package/esm/isWindow.js +2 -0
  88. package/{isWindow.js.map → esm/isWindow.js.map} +3 -3
  89. package/esm/theme/ThemeCssVars.js +2 -0
  90. package/esm/theme/ThemeCssVars.js.map +7 -0
  91. package/esm/theme/ThemeDefaultOptions.js +2 -0
  92. package/esm/theme/ThemeDefaultOptions.js.map +7 -0
  93. package/esm/theme/ThemeProvider.js +2 -0
  94. package/{theme → esm/theme}/ThemeProvider.js.map +3 -3
  95. package/esm/theme/core.js +2 -0
  96. package/{theme → esm/theme}/core.js.map +3 -3
  97. package/esm/theme/createColor.js +2 -0
  98. package/{theme → esm/theme}/createColor.js.map +3 -3
  99. package/esm/theme/createTheme.js +2 -0
  100. package/{theme → esm/theme}/createTheme.js.map +3 -3
  101. package/esm/theme/createThemeSwitcher.js +2 -0
  102. package/{theme → esm/theme}/createThemeSwitcher.js.map +3 -3
  103. package/esm/theme/index.js +2 -0
  104. package/{theme → esm/theme}/index.js.map +3 -3
  105. package/esm/useAnimation.js +2 -0
  106. package/esm/useAnimation.js.map +7 -0
  107. package/esm/useColorTemplate.js +2 -0
  108. package/{useColorTemplate.js.map → esm/useColorTemplate.js.map} +3 -3
  109. package/esm/useInterface.js +2 -0
  110. package/{useInterface.js.map → esm/useInterface.js.map} +3 -3
  111. package/package.json +26 -26
  112. package/ServerStyleTags.js +0 -17
  113. package/ServerStyleTags.js.map +0 -7
  114. package/Tag/cssPropList.js +0 -190
  115. package/Tag/cssPropList.js.map +0 -7
  116. package/Tag/index.js +0 -12
  117. package/Tag/useTagProps.js +0 -27
  118. package/Transition/index.js +0 -110
  119. package/Transition/index.js.map +0 -7
  120. package/Transition/variants.js +0 -175
  121. package/breakpoint/index.js +0 -46
  122. package/breakpoint/useBreakpoint.js +0 -32
  123. package/breakpoint/useBreakpointProps.js +0 -48
  124. package/css/aliases.js +0 -34
  125. package/css/aliases.js.map +0 -7
  126. package/css/getProps.js +0 -37
  127. package/css/getValue.js +0 -108
  128. package/css/index.js +0 -70
  129. package/css/index.js.map +0 -7
  130. package/index.js +0 -30
  131. package/isWindow.js +0 -6
  132. package/theme/ThemeCssVars.js +0 -92
  133. package/theme/ThemeDefaultOptions.js +0 -148
  134. package/theme/ThemeProvider.js +0 -123
  135. package/theme/core.js +0 -26
  136. package/theme/createColor.js +0 -52
  137. package/theme/createTheme.js +0 -33
  138. package/theme/createThemeSwitcher.js +0 -19
  139. package/theme/index.js +0 -14
  140. package/useAnimation.js +0 -33
  141. package/useAnimation.js.map +0 -7
  142. package/useColorTemplate.js +0 -11
  143. package/useInterface.js +0 -14
  144. /package/{Tag → esm/Tag}/types.js +0 -0
  145. /package/{Tag → esm/Tag}/types.js.map +0 -0
  146. /package/{css → esm/css}/types.js +0 -0
  147. /package/{css → esm/css}/types.js.map +0 -0
  148. /package/{theme → esm/theme}/types.js +0 -0
  149. /package/{theme → esm/theme}/types.js.map +0 -0
  150. /package/{ServerStyleTags.d.ts → types/ServerStyleTags.d.ts} +0 -0
  151. /package/{Tag → types/Tag}/cssPropList.d.ts +0 -0
  152. /package/{Tag → types/Tag}/index.d.ts +0 -0
  153. /package/{Tag → types/Tag}/types.d.ts +0 -0
  154. /package/{Tag → types/Tag}/useTagProps.d.ts +0 -0
  155. /package/{Transition → types/Transition}/index.d.ts +0 -0
  156. /package/{Transition → types/Transition}/variants.d.ts +0 -0
  157. /package/{breakpoint → types/breakpoint}/index.d.ts +0 -0
  158. /package/{breakpoint → types/breakpoint}/useBreakpoint.d.ts +0 -0
  159. /package/{breakpoint → types/breakpoint}/useBreakpointProps.d.ts +0 -0
  160. /package/{css → types/css}/aliases.d.ts +0 -0
  161. /package/{css → types/css}/getProps.d.ts +0 -0
  162. /package/{css → types/css}/getValue.d.ts +0 -0
  163. /package/{css → types/css}/index.d.ts +0 -0
  164. /package/{css → types/css}/types.d.ts +0 -0
  165. /package/{index.d.ts → types/index.d.ts} +0 -0
  166. /package/{isWindow.d.ts → types/isWindow.d.ts} +0 -0
  167. /package/{theme → types/theme}/ThemeCssVars.d.ts +0 -0
  168. /package/{theme → types/theme}/ThemeDefaultOptions.d.ts +0 -0
  169. /package/{theme → types/theme}/ThemeProvider.d.ts +0 -0
  170. /package/{theme → types/theme}/core.d.ts +0 -0
  171. /package/{theme → types/theme}/createColor.d.ts +0 -0
  172. /package/{theme → types/theme}/createTheme.d.ts +0 -0
  173. /package/{theme → types/theme}/createThemeSwitcher.d.ts +0 -0
  174. /package/{theme → types/theme}/index.d.ts +0 -0
  175. /package/{theme → types/theme}/types.d.ts +0 -0
  176. /package/{useAnimation.d.ts → types/useAnimation.d.ts} +0 -0
  177. /package/{useColorTemplate.d.ts → types/useColorTemplate.d.ts} +0 -0
  178. /package/{useInterface.d.ts → types/useInterface.d.ts} +0 -0
@@ -1,123 +0,0 @@
1
- import * as React from "react";
2
- import Tag from "../Tag";
3
- import { BreakpointProvider } from "../breakpoint";
4
- import { ThemeContex, ThemeFactory } from "./core";
5
- import ThemeCssVars from "./ThemeCssVars";
6
- import { css } from "../css";
7
- const ThemeProvider = ({ children, theme, resetCss, scrollbarCss, isRootProvider, renderIsRoot, ...props }) => {
8
- const THEME = ThemeFactory.get(theme);
9
- if (!THEME) throw new Error(`Invalid theme name provided: ${theme}`);
10
- resetCss ??= true;
11
- scrollbarCss ??= true;
12
- React.useMemo(() => {
13
- if (!!Object.keys(THEME.globalStyle).length) {
14
- css({
15
- "@global": THEME.globalStyle
16
- });
17
- }
18
- css({
19
- "@global": {
20
- [`.xui-${theme}-theme-root`]: ThemeCssVars(THEME)
21
- }
22
- });
23
- if (scrollbarCss && typeof document !== "undefined") {
24
- let thumbSize = 10;
25
- let thumbColor = THEME.colors.divider;
26
- let trackColor = THEME.colors.background.secondary;
27
- css({
28
- "@global": {
29
- "*": {
30
- scrollbarWidth: "thin",
31
- scrollbarColor: `${thumbColor} ${trackColor}`
32
- },
33
- "::-webkit-scrollbar": {
34
- width: thumbSize,
35
- height: thumbSize
36
- },
37
- "::-webkit-scrollbar-thumb": {
38
- backgroundColor: thumbColor,
39
- borderRadius: "5px",
40
- border: "2px solid #f4f4f4"
41
- },
42
- "::-webkit-scrollbar-thumb:hover": {
43
- backgroundColor: thumbColor
44
- },
45
- "::-webkit-scrollbar-track": {
46
- backgroundColor: trackColor,
47
- borderRadius: "5px"
48
- }
49
- }
50
- });
51
- }
52
- resetCss && css({
53
- "@global": {
54
- "*": {
55
- m: 0,
56
- p: 0,
57
- outline: "none",
58
- boxSizing: "border-box",
59
- verticalAlign: "baseline"
60
- },
61
- "html, body": {
62
- minHeight: "100%",
63
- "-webkit-font-smoothing": "antialiased"
64
- },
65
- "img, picture, video, canvas, svg": {
66
- maxWidth: "100%",
67
- display: "block"
68
- },
69
- "input, button, textarea, select": {
70
- font: "inherit"
71
- },
72
- "table": {
73
- borderCollapse: "collapse",
74
- borderSpacing: 0
75
- },
76
- "ol, ul": {
77
- listStyle: "none"
78
- },
79
- "a": {
80
- display: "inline-block"
81
- },
82
- "p, h1, h2, h3, h4, h5, h6": {
83
- overflowWrap: "break-word"
84
- }
85
- }
86
- });
87
- }, [theme]);
88
- return /* @__PURE__ */ React.createElement(ThemeContex.Provider, { value: theme }, isRootProvider ? /* @__PURE__ */ React.createElement(BreakpointProvider, null, /* @__PURE__ */ React.createElement(
89
- Tag,
90
- {
91
- minHeight: "100%",
92
- bgcolor: THEME.colors.background.primary,
93
- fontFamily: THEME.typography.fontFamily,
94
- fontSize: THEME.typography.text.fontSize,
95
- fontWeight: THEME.typography.text.fontWeight,
96
- lineHeight: THEME.typography.text.lineHeight,
97
- ...props,
98
- baseClass: `${theme}-theme-root`,
99
- direction: THEME.rtl ? "rtl" : "ltr"
100
- },
101
- children,
102
- renderIsRoot
103
- )) : /* @__PURE__ */ React.createElement(
104
- Tag,
105
- {
106
- minHeight: "100%",
107
- bgcolor: THEME.colors.background.primary,
108
- fontFamily: THEME.typography.fontFamily,
109
- fontSize: THEME.typography.text.fontSize,
110
- fontWeight: THEME.typography.text.fontWeight,
111
- lineHeight: THEME.typography.text.lineHeight,
112
- ...props,
113
- baseClass: `${theme}-theme-root`,
114
- direction: THEME.rtl ? "rtl" : "ltr"
115
- },
116
- children
117
- ));
118
- };
119
- var ThemeProvider_default = ThemeProvider;
120
- export {
121
- ThemeProvider_default as default
122
- };
123
- //# sourceMappingURL=ThemeProvider.js.map
package/theme/core.js DELETED
@@ -1,26 +0,0 @@
1
- import React from "react";
2
- const ThemeFactory = /* @__PURE__ */ new Map();
3
- const ThemeContex = React.createContext("light");
4
- const getTheme = (theme) => ThemeFactory.get(theme);
5
- const useTheme = () => ThemeFactory.get(React.useContext(ThemeContex));
6
- const mergeObject = (a, b) => {
7
- a = { ...a };
8
- b = { ...b };
9
- for (const key in b) {
10
- const v = b[key];
11
- if (typeof v === "object" && !Array.isArray(v) && !React.isValidElement(v)) {
12
- a[key] = mergeObject(a[key], b[key]);
13
- } else {
14
- a[key] = v;
15
- }
16
- }
17
- return a;
18
- };
19
- export {
20
- ThemeContex,
21
- ThemeFactory,
22
- getTheme,
23
- mergeObject,
24
- useTheme
25
- };
26
- //# sourceMappingURL=core.js.map
@@ -1,52 +0,0 @@
1
- import { alpha } from "../css";
2
- const createColor = (theme, name) => {
3
- let color = theme.colors[name];
4
- let { primary, secondary } = color;
5
- let text = color.text || theme.colors.text.primary;
6
- let _alpha = alpha(primary, 0.1);
7
- const isBag = (a, b) => name === "background" ? a : b;
8
- return {
9
- alpha: _alpha,
10
- template: {
11
- outline: {
12
- bgcolor: "transparent",
13
- color: isBag(text, primary),
14
- border: 1,
15
- borderColor: isBag("divider", alpha(primary, 0.4)),
16
- hover: {
17
- color: isBag(text, primary),
18
- borderColor: isBag("divider", alpha(primary, 0.8))
19
- }
20
- },
21
- fill: {
22
- bgcolor: isBag(secondary, primary),
23
- color: text,
24
- hover: {
25
- bgcolor: isBag(alpha(secondary, 0.6), secondary),
26
- color: text
27
- }
28
- },
29
- text: {
30
- bgcolor: "transparent",
31
- color: isBag(text, primary),
32
- hover: {
33
- bgcolor: isBag(alpha(secondary, 0.6), alpha(primary, 0.1)),
34
- color: isBag(text, primary)
35
- }
36
- },
37
- alpha: {
38
- bgcolor: isBag(alpha(secondary, 0.5), alpha(primary, 0.1)),
39
- color: isBag(text, primary),
40
- hover: {
41
- bgcolor: isBag(alpha(secondary, 0.8), alpha(primary, 0.15)),
42
- color: isBag(text, primary)
43
- }
44
- }
45
- }
46
- };
47
- };
48
- var createColor_default = createColor;
49
- export {
50
- createColor_default as default
51
- };
52
- //# sourceMappingURL=createColor.js.map
@@ -1,33 +0,0 @@
1
- import defaultThemeOption, { darkColorPallete } from "./ThemeDefaultOptions";
2
- import { mergeObject, ThemeFactory } from "./core";
3
- import createColor from "./createColor";
4
- import { breakpoints } from "../css";
5
- const createTheme = (name, options, darkMode) => {
6
- if (!ThemeFactory.has(name)) {
7
- let theme = mergeObject(defaultThemeOption, {
8
- ...darkMode ? darkColorPallete : {},
9
- ...options,
10
- name,
11
- breakpoints
12
- });
13
- theme = mergeObject(theme, {
14
- colors: {
15
- background: createColor(theme, "background"),
16
- brand: createColor(theme, "brand"),
17
- accent: createColor(theme, "accent"),
18
- info: createColor(theme, "info"),
19
- success: createColor(theme, "success"),
20
- warning: createColor(theme, "warning"),
21
- danger: createColor(theme, "danger")
22
- }
23
- });
24
- ThemeFactory.set(name, theme);
25
- } else {
26
- throw new Error(`theme "${name}" already exists!`);
27
- }
28
- return ThemeFactory.get(name);
29
- };
30
- export {
31
- createTheme
32
- };
33
- //# sourceMappingURL=createTheme.js.map
@@ -1,19 +0,0 @@
1
- import { createBucket } from "react-state-bucket";
2
- import { getTheme } from "./core";
3
- const createThemeSwitcher = (defaultTheme, store) => {
4
- const useThemeState = createBucket({ name: defaultTheme }, { store });
5
- const useThemeSwitcher = () => {
6
- const state = useThemeState();
7
- return {
8
- name: state.get("name"),
9
- theme: getTheme(state.get("name")),
10
- change: (theme) => state.set("name", theme)
11
- };
12
- };
13
- return useThemeSwitcher;
14
- };
15
- var createThemeSwitcher_default = createThemeSwitcher;
16
- export {
17
- createThemeSwitcher_default as default
18
- };
19
- //# sourceMappingURL=createThemeSwitcher.js.map
package/theme/index.js DELETED
@@ -1,14 +0,0 @@
1
- import { lightColorPallete, darkColorPallete } from "./ThemeDefaultOptions";
2
- import { createTheme } from "./createTheme";
3
- import ThemeProvider from "./ThemeProvider";
4
- import createThemeSwitcher from "./createThemeSwitcher";
5
- import { getTheme, useTheme } from "./core";
6
- createTheme("light", { colors: lightColorPallete });
7
- createTheme("dark", { colors: darkColorPallete });
8
- export {
9
- ThemeProvider,
10
- createThemeSwitcher,
11
- getTheme,
12
- useTheme
13
- };
14
- //# sourceMappingURL=index.js.map
package/useAnimation.js DELETED
@@ -1,33 +0,0 @@
1
- import { css } from "./css";
2
- import { useId } from "react";
3
- const animationEases = {
4
- easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
5
- easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
6
- easeIn: "cubic-bezier(0.4, 0, 1, 1)",
7
- sharp: "cubic-bezier(0.4, 0, 0.6, 1)",
8
- linear: "cubic-bezier(0, 0, 1, 1)",
9
- easeBounceOut: "cubic-bezier(0.68, -0.55, 0.265, 1.55)"
10
- };
11
- const useAnimation = ({ from, to, delay, ease, duration }) => {
12
- let _delay = delay || 0;
13
- let _duration = duration || 600;
14
- let _ease = ease || "easeBounceOut";
15
- const id = "anim" + useId().replaceAll(":", "");
16
- const anim = css({
17
- animationName: id,
18
- animationDelay: _delay + "ms",
19
- animationDuration: _duration + "ms",
20
- animationTimingFunction: animationEases[_ease] || animationEases.easeBounceOut,
21
- [`@keyframes ${id}`]: {
22
- from,
23
- to
24
- }
25
- });
26
- return anim.classname;
27
- };
28
- var useAnimation_default = useAnimation;
29
- export {
30
- animationEases,
31
- useAnimation_default as default
32
- };
33
- //# sourceMappingURL=useAnimation.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/useAnimation.ts"],
4
- "sourcesContent": ["import { css } from './css'\nimport { useId } from 'react'\nimport { CSSProps } from './css/types'\n\nexport const animationEases = {\n easeInOut: \"cubic-bezier(0.4, 0, 0.2, 1)\",\n easeOut: \"cubic-bezier(0.0, 0, 0.2, 1)\",\n easeIn: \"cubic-bezier(0.4, 0, 1, 1)\",\n sharp: \"cubic-bezier(0.4, 0, 0.6, 1)\",\n linear: \"cubic-bezier(0, 0, 1, 1)\",\n easeBounceOut: \"cubic-bezier(0.68, -0.55, 0.265, 1.55)\"\n}\n\nexport interface UseAnimationProps {\n delay?: number;\n duration?: number;\n from: CSSProps;\n to: CSSProps;\n ease?: keyof typeof animationEases;\n}\n\nconst useAnimation = ({ from, to, delay, ease, duration }: UseAnimationProps) => {\n let _delay = delay || 0;\n let _duration = duration || 600;\n let _ease = ease || \"easeBounceOut\"\n const id = \"anim\" + useId().replaceAll(\":\", \"\")\n const anim = css({\n animationName: id,\n animationDelay: _delay + \"ms\",\n animationDuration: _duration + \"ms\",\n animationTimingFunction: animationEases[_ease] || animationEases.easeBounceOut,\n [`@keyframes ${id}`]: {\n from: from as any,\n to: to as any\n }\n })\n return anim.classname\n}\n\nexport default useAnimation"],
5
- "mappings": "AAAA,SAAS,WAAW;AACpB,SAAS,aAAa;AAGf,MAAM,iBAAiB;AAAA,EAC1B,WAAW;AAAA,EACX,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,eAAe;AACnB;AAUA,MAAM,eAAe,CAAC,EAAE,MAAM,IAAI,OAAO,MAAM,SAAS,MAAyB;AAC7E,MAAI,SAAS,SAAS;AACtB,MAAI,YAAY,YAAY;AAC5B,MAAI,QAAQ,QAAQ;AACpB,QAAM,KAAK,SAAS,MAAM,EAAE,WAAW,KAAK,EAAE;AAC9C,QAAM,OAAO,IAAI;AAAA,IACb,eAAe;AAAA,IACf,gBAAgB,SAAS;AAAA,IACzB,mBAAmB,YAAY;AAAA,IAC/B,yBAAyB,eAAe,KAAK,KAAK,eAAe;AAAA,IACjE,CAAC,cAAc,EAAE,EAAE,GAAG;AAAA,MAClB;AAAA,MACA;AAAA,IACJ;AAAA,EACJ,CAAC;AACD,SAAO,KAAK;AAChB;AAEA,IAAO,uBAAQ;",
6
- "names": []
7
- }
@@ -1,11 +0,0 @@
1
- import { useTheme } from "./theme";
2
- const useColorTemplate = (color, type) => {
3
- const theme = useTheme();
4
- let _color = color === "default" ? "background" : color;
5
- return theme.colors[_color]?.template[type];
6
- };
7
- var useColorTemplate_default = useColorTemplate;
8
- export {
9
- useColorTemplate_default as default
10
- };
11
- //# sourceMappingURL=useColorTemplate.js.map
package/useInterface.js DELETED
@@ -1,14 +0,0 @@
1
- import { useTheme } from "./theme";
2
- const useInterface = (name, userPorps, defaultProps) => {
3
- const theme = useTheme();
4
- const _interface = theme.interfaces[name];
5
- if (_interface) {
6
- defaultProps = _interface({ ...defaultProps, ...userPorps }, theme);
7
- }
8
- return [{ ...defaultProps, ...userPorps }, theme];
9
- };
10
- var useInterface_default = useInterface;
11
- export {
12
- useInterface_default as default
13
- };
14
- //# sourceMappingURL=useInterface.js.map
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes