@xanui/core 1.1.3 → 1.1.6

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 (200) hide show
  1. package/ServerStyleTags.d.ts +3 -1
  2. package/ServerStyleTags.js +3 -2
  3. package/ServerStyleTags.js.map +1 -7
  4. package/ServerStyleTags.mjs +3 -0
  5. package/ServerStyleTags.mjs.map +1 -0
  6. package/Tag/cssPropList.js +186 -2
  7. package/Tag/cssPropList.js.map +1 -7
  8. package/Tag/cssPropList.mjs +186 -0
  9. package/Tag/cssPropList.mjs.map +1 -0
  10. package/Tag/index.d.ts +4 -2
  11. package/Tag/index.js +6 -2
  12. package/Tag/index.js.map +1 -7
  13. package/Tag/index.mjs +6 -0
  14. package/Tag/index.mjs.map +1 -0
  15. package/Tag/types.d.ts +9 -7
  16. package/Tag/useTagProps.d.ts +4 -2
  17. package/Tag/useTagProps.js +21 -2
  18. package/Tag/useTagProps.js.map +1 -7
  19. package/Tag/useTagProps.mjs +21 -0
  20. package/Tag/useTagProps.mjs.map +1 -0
  21. package/Transition/index.d.ts +13 -10
  22. package/Transition/index.js +93 -2
  23. package/Transition/index.js.map +1 -7
  24. package/Transition/index.mjs +93 -0
  25. package/Transition/index.mjs.map +1 -0
  26. package/Transition/variants.d.ts +18 -15
  27. package/Transition/variants.js +158 -2
  28. package/Transition/variants.js.map +1 -7
  29. package/Transition/variants.mjs +158 -0
  30. package/Transition/variants.mjs.map +1 -0
  31. package/breakpoint/BreakpointProvider.js +43 -0
  32. package/breakpoint/BreakpointProvider.js.map +1 -0
  33. package/breakpoint/BreakpointProvider.mjs +43 -0
  34. package/breakpoint/BreakpointProvider.mjs.map +1 -0
  35. package/breakpoint/useBreakpoint.d.ts +4 -2
  36. package/breakpoint/useBreakpoint.js +23 -2
  37. package/breakpoint/useBreakpoint.js.map +1 -7
  38. package/breakpoint/useBreakpoint.mjs +23 -0
  39. package/breakpoint/useBreakpoint.mjs.map +1 -0
  40. package/breakpoint/useBreakpointProps.d.ts +6 -3
  41. package/breakpoint/useBreakpointProps.js +42 -2
  42. package/breakpoint/useBreakpointProps.js.map +1 -7
  43. package/breakpoint/useBreakpointProps.mjs +42 -0
  44. package/breakpoint/useBreakpointProps.mjs.map +1 -0
  45. package/css/aliases.js +29 -2
  46. package/css/aliases.js.map +1 -7
  47. package/css/aliases.mjs +29 -0
  48. package/css/aliases.mjs.map +1 -0
  49. package/css/getProps.d.ts +4 -2
  50. package/css/getProps.js +32 -2
  51. package/css/getProps.js.map +1 -7
  52. package/css/getProps.mjs +32 -0
  53. package/css/getProps.mjs.map +1 -0
  54. package/css/getValue.d.ts +4 -2
  55. package/css/getValue.js +92 -2
  56. package/css/getValue.js.map +1 -7
  57. package/css/getValue.mjs +92 -0
  58. package/css/getValue.mjs.map +1 -0
  59. package/css/index.d.ts +10 -9
  60. package/css/index.js +55 -2
  61. package/css/index.js.map +1 -7
  62. package/css/index.mjs +55 -0
  63. package/css/index.mjs.map +1 -0
  64. package/css/types.d.ts +12 -9
  65. package/index.d.ts +19 -21
  66. package/index.js +1 -2
  67. package/index.js.map +1 -7
  68. package/index.mjs +1 -0
  69. package/index.mjs.map +1 -0
  70. package/isWindow.d.ts +2 -1
  71. package/isWindow.js +1 -2
  72. package/isWindow.js.map +1 -7
  73. package/isWindow.mjs +1 -0
  74. package/isWindow.mjs.map +1 -0
  75. package/package.json +28 -24
  76. package/theme/ThemeCssVars.js +5 -2
  77. package/theme/ThemeCssVars.js.map +1 -7
  78. package/theme/ThemeCssVars.mjs +5 -0
  79. package/theme/ThemeCssVars.mjs.map +1 -0
  80. package/theme/ThemeDefaultOptions.js +131 -2
  81. package/theme/ThemeDefaultOptions.js.map +1 -7
  82. package/theme/ThemeDefaultOptions.mjs +131 -0
  83. package/theme/ThemeDefaultOptions.mjs.map +1 -0
  84. package/theme/ThemeProvider.d.ts +7 -4
  85. package/theme/ThemeProvider.js +88 -2
  86. package/theme/ThemeProvider.js.map +1 -7
  87. package/theme/ThemeProvider.mjs +88 -0
  88. package/theme/ThemeProvider.mjs.map +1 -0
  89. package/theme/core.d.ts +6 -7
  90. package/theme/core.js +18 -2
  91. package/theme/core.js.map +1 -7
  92. package/theme/core.mjs +18 -0
  93. package/theme/core.mjs.map +1 -0
  94. package/theme/createColor.js +46 -2
  95. package/theme/createColor.js.map +1 -7
  96. package/theme/createColor.mjs +46 -0
  97. package/theme/createColor.mjs.map +1 -0
  98. package/theme/createTheme.js +21 -2
  99. package/theme/createTheme.js.map +1 -7
  100. package/theme/createTheme.mjs +21 -0
  101. package/theme/createTheme.mjs.map +1 -0
  102. package/theme/createThemeSwitcher.d.ts +5 -2
  103. package/theme/createThemeSwitcher.js +12 -2
  104. package/theme/createThemeSwitcher.js.map +1 -7
  105. package/theme/createThemeSwitcher.mjs +12 -0
  106. package/theme/createThemeSwitcher.mjs.map +1 -0
  107. package/theme/index.js +2 -2
  108. package/theme/index.js.map +1 -7
  109. package/theme/index.mjs +2 -0
  110. package/theme/index.mjs.map +1 -0
  111. package/theme/types.d.ts +17 -14
  112. package/useAnimation.d.ts +7 -4
  113. package/useAnimation.js +25 -2
  114. package/useAnimation.js.map +1 -7
  115. package/useAnimation.mjs +25 -0
  116. package/useAnimation.mjs.map +1 -0
  117. package/useColorTemplate.d.ts +5 -3
  118. package/useColorTemplate.js +6 -2
  119. package/useColorTemplate.js.map +1 -7
  120. package/useColorTemplate.mjs +6 -0
  121. package/useColorTemplate.mjs.map +1 -0
  122. package/useInterface.d.ts +5 -2
  123. package/useInterface.js +8 -2
  124. package/useInterface.js.map +1 -7
  125. package/useInterface.mjs +8 -0
  126. package/useInterface.mjs.map +1 -0
  127. package/Tag/cssPropList.d.ts +0 -2
  128. package/Tag/types.js +0 -1
  129. package/Tag/types.js.map +0 -7
  130. package/breakpoint/index.d.ts +0 -6
  131. package/breakpoint/index.js +0 -2
  132. package/breakpoint/index.js.map +0 -7
  133. package/cjs/ServerStyleTags.js +0 -2
  134. package/cjs/ServerStyleTags.js.map +0 -7
  135. package/cjs/Tag/cssPropList.js +0 -2
  136. package/cjs/Tag/cssPropList.js.map +0 -7
  137. package/cjs/Tag/index.js +0 -2
  138. package/cjs/Tag/index.js.map +0 -7
  139. package/cjs/Tag/types.js +0 -2
  140. package/cjs/Tag/types.js.map +0 -7
  141. package/cjs/Tag/useTagProps.js +0 -2
  142. package/cjs/Tag/useTagProps.js.map +0 -7
  143. package/cjs/Transition/index.js +0 -2
  144. package/cjs/Transition/index.js.map +0 -7
  145. package/cjs/Transition/variants.js +0 -2
  146. package/cjs/Transition/variants.js.map +0 -7
  147. package/cjs/breakpoint/index.js +0 -2
  148. package/cjs/breakpoint/index.js.map +0 -7
  149. package/cjs/breakpoint/useBreakpoint.js +0 -2
  150. package/cjs/breakpoint/useBreakpoint.js.map +0 -7
  151. package/cjs/breakpoint/useBreakpointProps.js +0 -2
  152. package/cjs/breakpoint/useBreakpointProps.js.map +0 -7
  153. package/cjs/css/aliases.js +0 -2
  154. package/cjs/css/aliases.js.map +0 -7
  155. package/cjs/css/getProps.js +0 -2
  156. package/cjs/css/getProps.js.map +0 -7
  157. package/cjs/css/getValue.js +0 -2
  158. package/cjs/css/getValue.js.map +0 -7
  159. package/cjs/css/index.js +0 -2
  160. package/cjs/css/index.js.map +0 -7
  161. package/cjs/css/types.js +0 -2
  162. package/cjs/css/types.js.map +0 -7
  163. package/cjs/index.js +0 -2
  164. package/cjs/index.js.map +0 -7
  165. package/cjs/isWindow.js +0 -2
  166. package/cjs/isWindow.js.map +0 -7
  167. package/cjs/theme/ThemeCssVars.js +0 -2
  168. package/cjs/theme/ThemeCssVars.js.map +0 -7
  169. package/cjs/theme/ThemeDefaultOptions.js +0 -2
  170. package/cjs/theme/ThemeDefaultOptions.js.map +0 -7
  171. package/cjs/theme/ThemeProvider.js +0 -2
  172. package/cjs/theme/ThemeProvider.js.map +0 -7
  173. package/cjs/theme/core.js +0 -2
  174. package/cjs/theme/core.js.map +0 -7
  175. package/cjs/theme/createColor.js +0 -2
  176. package/cjs/theme/createColor.js.map +0 -7
  177. package/cjs/theme/createTheme.js +0 -2
  178. package/cjs/theme/createTheme.js.map +0 -7
  179. package/cjs/theme/createThemeSwitcher.js +0 -2
  180. package/cjs/theme/createThemeSwitcher.js.map +0 -7
  181. package/cjs/theme/index.js +0 -2
  182. package/cjs/theme/index.js.map +0 -7
  183. package/cjs/theme/types.js +0 -2
  184. package/cjs/theme/types.js.map +0 -7
  185. package/cjs/useAnimation.js +0 -2
  186. package/cjs/useAnimation.js.map +0 -7
  187. package/cjs/useColorTemplate.js +0 -2
  188. package/cjs/useColorTemplate.js.map +0 -7
  189. package/cjs/useInterface.js +0 -2
  190. package/cjs/useInterface.js.map +0 -7
  191. package/css/aliases.d.ts +0 -4
  192. package/css/types.js +0 -1
  193. package/css/types.js.map +0 -7
  194. package/theme/ThemeCssVars.d.ts +0 -3
  195. package/theme/ThemeDefaultOptions.d.ts +0 -68
  196. package/theme/createColor.d.ts +0 -41
  197. package/theme/createTheme.d.ts +0 -2
  198. package/theme/index.d.ts +0 -5
  199. package/theme/types.js +0 -1
  200. package/theme/types.js.map +0 -7
package/index.d.ts CHANGED
@@ -1,21 +1,19 @@
1
- import Tag from './Tag';
2
- import useTagProps from './Tag/useTagProps';
3
- import useAnimation from './useAnimation';
4
- import useColorTemplate from './useColorTemplate';
5
- import useBreakpoint from './breakpoint/useBreakpoint';
6
- import useBreakpointProps from './breakpoint/useBreakpointProps';
7
- import ServerStyleTags from './ServerStyleTags';
8
- import isWindow from './isWindow';
9
- import useInterface from './useInterface';
10
- import Transition from './Transition';
11
- export * from './css';
12
- export * from "./theme";
13
- export * from './css/types';
14
- export * from './Tag/types';
15
- export * from './theme/types';
16
- export * from './useColorTemplate';
17
- export * from './useAnimation';
18
- export type * from './Transition';
19
- export type * from './Tag/types';
20
- export type { useBreakpointPropsType } from './breakpoint/useBreakpointProps';
21
- export { Tag, useTagProps, useAnimation, Transition, useColorTemplate, ServerStyleTags, useBreakpoint, useBreakpointProps, isWindow, useInterface };
1
+ export { default as Tag } from './Tag/index.js';
2
+ export { default as useTagProps } from './Tag/useTagProps.js';
3
+ export { UseAnimationProps, animationEases, default as useAnimation } from './useAnimation.js';
4
+ export { ColorTemplateColors, ColorTemplateType, default as useColorTemplate } from './useColorTemplate.js';
5
+ export { default as useBreakpoint } from './breakpoint/useBreakpoint.js';
6
+ export { default as useBreakpointProps, useBreakpointPropsType } from './breakpoint/useBreakpointProps.js';
7
+ export { default as ServerStyleTags } from './ServerStyleTags.js';
8
+ export { default as isWindow } from './isWindow.js';
9
+ export { default as useInterface } from './useInterface.js';
10
+ export { default as Transition, TransitionElementProps, TransitionProps, TransitionState, TransitionVariantTypes } from './Transition/index.js';
11
+ export { adjustColor, adjustTextContrast, alpha, breakpoints, css } from './css/index.js';
12
+ export { default as ThemeProvider, ThemeProviderProps } from './theme/ThemeProvider.js';
13
+ export { default as createThemeSwitcher } from './theme/createThemeSwitcher.js';
14
+ export { getTheme, useTheme } from './theme/core.js';
15
+ export { Aliases, BreakpointKeys, CSSBreakpointType, CSSOptionProps, CSSProps, CSSValueType, FN, GlobalCSS } from './css/types.js';
16
+ export { CSSPropAsAttr, TagComponentType, TagProps, TagPropsRoot } from './Tag/types.js';
17
+ export { ColorsRefTypes, ObjectType, ThemeColor, ThemeColorInput, ThemeColorItem, ThemeColorItemInput, ThemeOptionInput, ThemeOptions, ThemeTypographyInputType, ThemeTypographyItem, ThemeTypographyItemInput, ThemeTypographyType, TypographyRefTypes } from './theme/types.js';
18
+ export { default as getValue } from './css/getValue.js';
19
+ export { default as getProps } from './css/getProps.js';
package/index.js CHANGED
@@ -1,2 +1 @@
1
- import o from"./Tag";import r from"./Tag/useTagProps";import e from"./useAnimation";import p from"./useColorTemplate";import t from"./breakpoint/useBreakpoint";import m from"./breakpoint/useBreakpointProps";import i from"./ServerStyleTags";import f from"./isWindow";import s from"./useInterface";import a from"./Transition";export*from"./css";export*from"./theme";export*from"./css/types";export*from"./Tag/types";export*from"./theme/types";export*from"./useColorTemplate";export*from"./useAnimation";export{i as ServerStyleTags,o as Tag,a as Transition,f as isWindow,e as useAnimation,t as useBreakpoint,m as useBreakpointProps,p as useColorTemplate,s as useInterface,r as useTagProps};
2
- //# sourceMappingURL=index.js.map
1
+ 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var index=require('./Tag/index.js'),useTagProps=require('./Tag/useTagProps.js'),useAnimation=require('./useAnimation.js'),useColorTemplate=require('./useColorTemplate.js'),useBreakpoint=require('./breakpoint/useBreakpoint.js'),useBreakpointProps=require('./breakpoint/useBreakpointProps.js'),ServerStyleTags=require('./ServerStyleTags.js'),isWindow=require('./isWindow.js'),useInterface=require('./useInterface.js'),index$1=require('./Transition/index.js'),index$2=require('./css/index.js');require('./theme/index.js');var getValue=require('./css/getValue.js'),getProps=require('./css/getProps.js'),ThemeProvider=require('./theme/ThemeProvider.js'),createThemeSwitcher=require('./theme/createThemeSwitcher.js'),core=require('./theme/core.js');exports.Tag=index;exports.useTagProps=useTagProps;exports.animationEases=useAnimation.animationEases;exports.useAnimation=useAnimation.default;exports.useColorTemplate=useColorTemplate;exports.useBreakpoint=useBreakpoint;exports.useBreakpointProps=useBreakpointProps;exports.ServerStyleTags=ServerStyleTags;exports.isWindow=isWindow;exports.useInterface=useInterface;exports.Transition=index$1;exports.adjustColor=index$2.adjustColor;exports.adjustTextContrast=index$2.adjustTextContrast;exports.alpha=index$2.alpha;exports.breakpoints=index$2.breakpoints;exports.css=index$2.css;exports.getValue=getValue;exports.getProps=getProps;exports.ThemeProvider=ThemeProvider;exports.createThemeSwitcher=createThemeSwitcher;exports.getTheme=core.getTheme;exports.useTheme=core.useTheme;//# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/index.ts"],
4
- "sourcesContent": ["import Tag from './Tag'\nimport useTagProps from './Tag/useTagProps'\nimport useAnimation from './useAnimation'\nimport useColorTemplate from './useColorTemplate'\nimport useBreakpoint from './breakpoint/useBreakpoint'\nimport useBreakpointProps from './breakpoint/useBreakpointProps'\nimport ServerStyleTags from './ServerStyleTags'\nimport isWindow from './isWindow'\nimport useInterface from './useInterface'\nimport Transition from './Transition'\n\nexport * from './css'\nexport * from \"./theme\"\nexport * from './css/types'\nexport * from './Tag/types'\nexport * from './theme/types'\nexport * from './useColorTemplate'\nexport * from './useAnimation'\nexport type * from './Transition'\nexport type * from './Tag/types'\nexport type { useBreakpointPropsType } from './breakpoint/useBreakpointProps'\n\nexport {\n Tag,\n useTagProps,\n useAnimation,\n Transition,\n useColorTemplate,\n ServerStyleTags,\n useBreakpoint,\n useBreakpointProps,\n isWindow,\n useInterface\n}"],
5
- "mappings": "AAAA,OAAOA,MAAS,QAChB,OAAOC,MAAiB,oBACxB,OAAOC,MAAkB,iBACzB,OAAOC,MAAsB,qBAC7B,OAAOC,MAAmB,6BAC1B,OAAOC,MAAwB,kCAC/B,OAAOC,MAAqB,oBAC5B,OAAOC,MAAc,aACrB,OAAOC,MAAkB,iBACzB,OAAOC,MAAgB,eAEvB,WAAc,QACd,WAAc,UACd,WAAc,cACd,WAAc,cACd,WAAc,gBACd,WAAc,qBACd,WAAc",
6
- "names": ["Tag", "useTagProps", "useAnimation", "useColorTemplate", "useBreakpoint", "useBreakpointProps", "ServerStyleTags", "isWindow", "useInterface", "Transition"]
7
- }
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/index.mjs ADDED
@@ -0,0 +1 @@
1
+ export{default as Tag}from'./Tag/index.mjs';export{default as useTagProps}from'./Tag/useTagProps.mjs';export{animationEases,default as useAnimation}from'./useAnimation.mjs';export{default as useColorTemplate}from'./useColorTemplate.mjs';export{default as useBreakpoint}from'./breakpoint/useBreakpoint.mjs';export{default as useBreakpointProps}from'./breakpoint/useBreakpointProps.mjs';export{default as ServerStyleTags}from'./ServerStyleTags.mjs';export{default as isWindow}from'./isWindow.mjs';export{default as useInterface}from'./useInterface.mjs';export{default as Transition}from'./Transition/index.mjs';export{adjustColor,adjustTextContrast,alpha,breakpoints,css}from'./css/index.mjs';import'./theme/index.mjs';export{default as getValue}from'./css/getValue.mjs';export{default as getProps}from'./css/getProps.mjs';export{default as ThemeProvider}from'./theme/ThemeProvider.mjs';export{default as createThemeSwitcher}from'./theme/createThemeSwitcher.mjs';export{getTheme,useTheme}from'./theme/core.mjs';//# sourceMappingURL=index.mjs.map
package/index.mjs.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/isWindow.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  declare const isWindow: () => Window | void;
2
- export default isWindow;
2
+
3
+ export { isWindow as default };
package/isWindow.js CHANGED
@@ -1,2 +1 @@
1
- const d=()=>typeof window<"u"?window:void 0;var n=d;export{n as default};
2
- //# sourceMappingURL=isWindow.js.map
1
+ 'use strict';const isWindow = () => typeof window !== 'undefined' ? window : undefined;module.exports=isWindow;//# sourceMappingURL=isWindow.js.map
package/isWindow.js.map CHANGED
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/isWindow.ts"],
4
- "sourcesContent": ["\nconst isWindow = (): Window | void => typeof window !== 'undefined' ? window : undefined\nexport default isWindow"],
5
- "mappings": "AACA,MAAMA,EAAW,IAAqB,OAAO,OAAW,IAAc,OAAS,OAC/E,IAAOC,EAAQD",
6
- "names": ["isWindow", "isWindow_default"]
7
- }
1
+ {"version":3,"file":"isWindow.js","sources":["../src/isWindow.ts"],"sourcesContent":["\nconst isWindow = (): Window | void => typeof window !== 'undefined' ? window : undefined\nexport default isWindow"],"names":[],"mappings":"aACA,MAAM,QAAQ,GAAG,MAAqB,OAAO,MAAM,KAAK,WAAW,GAAG,MAAM,GAAG"}
package/isWindow.mjs ADDED
@@ -0,0 +1 @@
1
+ const isWindow = () => typeof window !== 'undefined' ? window : undefined;export{isWindow as default};//# sourceMappingURL=isWindow.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isWindow.mjs","sources":["../src/isWindow.ts"],"sourcesContent":["\nconst isWindow = (): Window | void => typeof window !== 'undefined' ? window : undefined\nexport default isWindow"],"names":[],"mappings":"AACA,MAAM,QAAQ,GAAG,MAAqB,OAAO,MAAM,KAAK,WAAW,GAAG,MAAM,GAAG"}
package/package.json CHANGED
@@ -1,47 +1,51 @@
1
1
  {
2
2
  "name": "@xanui/core",
3
- "version": "1.1.3",
3
+ "version": "1.1.6",
4
4
  "description": "",
5
5
  "private": false,
6
- "main": "./cjs/index.js",
7
- "module": "./index.js",
6
+ "main": "./index.js",
7
+ "module": "./index.mjs",
8
8
  "types": "./index.d.ts",
9
9
  "sideEffects": false,
10
10
  "dependencies": {
11
- "oncss": "^1.1.17",
12
- "pretty-class": "^1.0.5",
11
+ "oncss": "^1.2.2",
12
+ "pretty-class": "^1.0.8",
13
13
  "react": "^19.0.0",
14
14
  "react-dom": "^19.0.0",
15
- "react-state-bucket": "^1.1.9"
15
+ "react-state-bucket": "^1.2.2"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/react": "^19.0.2",
19
19
  "@types/react-dom": "^19.0.2",
20
- "makepack": "^1.6.8",
20
+ "makepack": "^1.7.7",
21
21
  "typescript": "^4.9.5"
22
22
  },
23
23
  "keywords": [],
24
24
  "exports": {
25
25
  ".": {
26
- "require": {
27
- "types": "./index.d.ts",
28
- "default": "./cjs/index.js"
29
- },
30
- "import": {
31
- "types": "./index.d.ts",
32
- "default": "./index.js"
33
- }
26
+ "import": "./index.mjs",
27
+ "require": "./index.js",
28
+ "types": "./index.d.ts"
34
29
  },
35
30
  "./*": {
36
- "require": {
37
- "types": "./*.d.ts",
38
- "default": "./cjs/*.js"
39
- },
40
- "import": {
41
- "types": "./*.d.ts",
42
- "default": "./*.js"
43
- }
31
+ "import": "./*/index.mjs",
32
+ "require": "./*/index.js",
33
+ "types": "./*/index.d.ts"
44
34
  },
45
- "./cjs": null
35
+ "./useAnimation": {
36
+ "import": "./useAnimation.mjs",
37
+ "require": "./useAnimation.js",
38
+ "types": "./useAnimation.d.ts"
39
+ },
40
+ "./useInterface": {
41
+ "import": "./useInterface.mjs",
42
+ "require": "./useInterface.js",
43
+ "types": "./useInterface.d.ts"
44
+ },
45
+ "./ServerStyleTags": {
46
+ "import": "./ServerStyleTags.mjs",
47
+ "require": "./ServerStyleTags.js",
48
+ "types": "./ServerStyleTags.d.ts"
49
+ }
46
50
  }
47
51
  }
@@ -1,2 +1,5 @@
1
- const p=o=>{const r={};return o.shadow.forEach((a,n)=>r[`--shadow-${n}`]=a),{"--bp-xs":o.breakpoints.xs,"--bp-sm":o.breakpoints.sm,"--bp-md":o.breakpoints.md,"--bp-lg":o.breakpoints.lg,"--bp-xl":o.breakpoints.xl,"--font-family":o.typography.fontFamily,"--font-h1":`${o.typography.h1.fontWeight} ${o.typography.h1.fontSize}px/${o.typography.h1.lineHeight} ${o.typography.fontFamily}`,"--font-h2":`${o.typography.h2.fontWeight} ${o.typography.h2.fontSize}px/${o.typography.h2.lineHeight} ${o.typography.fontFamily}`,"--font-h3":`${o.typography.h3.fontWeight} ${o.typography.h3.fontSize}px/${o.typography.h3.lineHeight} ${o.typography.fontFamily}`,"--font-h4":`${o.typography.h4.fontWeight} ${o.typography.h4.fontSize}px/${o.typography.h4.lineHeight} ${o.typography.fontFamily}`,"--font-h5":`${o.typography.h5.fontWeight} ${o.typography.h5.fontSize}px/${o.typography.h5.lineHeight} ${o.typography.fontFamily}`,"--font-h6":`${o.typography.h6.fontWeight} ${o.typography.h6.fontSize}px/${o.typography.h6.lineHeight} ${o.typography.fontFamily}`,"--font-text":`${o.typography.text.fontWeight} ${o.typography.text.fontSize}px/${o.typography.text.lineHeight} ${o.typography.fontFamily}`,"--font-button":`${o.typography.button.fontWeight} ${o.typography.button.fontSize}px/${o.typography.button.lineHeight} ${o.typography.fontFamily}`,"--font-small":`${o.typography.small.fontWeight} ${o.typography.small.fontSize}px/${o.typography.small.lineHeight} ${o.typography.fontFamily}`,"--fontsize-h1":`${o.typography.h1.fontSize}px`,"--fontsize-h2":`${o.typography.h2.fontSize}px`,"--fontsize-h3":`${o.typography.h3.fontSize}px`,"--fontsize-h4":`${o.typography.h4.fontSize}px`,"--fontsize-h5":`${o.typography.h5.fontSize}px`,"--fontsize-h6":`${o.typography.h6.fontSize}px`,"--fontsize-text":`${o.typography.text.fontSize}px`,"--fontsize-button":`${o.typography.button.fontSize}px`,"--fontsize-small":`${o.typography.small.fontSize}px`,"--fontweight-h1":o.typography.h1.fontWeight+"","--fontweight-h2":o.typography.h2.fontWeight+"","--fontweight-h3":o.typography.h3.fontWeight+"","--fontweight-h4":o.typography.h4.fontWeight+"","--fontweight-h5":o.typography.h5.fontWeight+"","--fontweight-h6":o.typography.h6.fontWeight+"","--fontweight-text":o.typography.text.fontWeight+"","--fontweight-button":o.typography.button.fontWeight+"","--fontweight-small":o.typography.small.fontWeight+"","--lineheight-h1":o.typography.h1.lineHeight+"","--lineheight-h2":o.typography.h2.lineHeight+"","--lineheight-h3":o.typography.h3.lineHeight+"","--lineheight-h4":o.typography.h4.lineHeight+"","--lineheight-h5":o.typography.h5.lineHeight+"","--lineheight-h6":o.typography.h6.lineHeight+"","--lineheight-text":o.typography.text.lineHeight+"","--lineheight-button":o.typography.button.lineHeight+"","--lineheight-small":o.typography.small.lineHeight+"","--color-text":o.colors.text.primary,"--color-text-primary":o.colors.text.primary,"--color-text-secondary":o.colors.text.secondary,"--color-background":o.colors.background.primary,"--color-background-primary":o.colors.background.primary,"--color-background-secondary":o.colors.background.secondary,"--color-background-alpha":o.colors.background.alpha,"--color-divider":o.colors.divider,"--color-brand":o.colors.brand.primary,"--color-brand-primary":o.colors.brand.primary,"--color-brand-secondary":o.colors.brand.secondary,"--color-brand-alpha":o.colors.brand.alpha,"--color-brand-text":o.colors.brand.text,"--color-accent":o.colors.accent.primary,"--color-accent-primary":o.colors.accent.primary,"--color-accent-secondary":o.colors.accent.secondary,"--color-accent-alpha":o.colors.accent.alpha,"--color-accent-text":o.colors.accent.text,"--color-info":o.colors.info.primary,"--color-info-primary":o.colors.info.primary,"--color-info-secondary":o.colors.info.secondary,"--color-info-alpha":o.colors.info.alpha,"--color-info-text":o.colors.info.text,"--color-success":o.colors.success.primary,"--color-success-primary":o.colors.success.primary,"--color-success-secondary":o.colors.success.secondary,"--color-success-alpha":o.colors.success.alpha,"--color-success-text":o.colors.success.text,"--color-warning":o.colors.warning.primary,"--color-warning-primary":o.colors.warning.primary,"--color-warning-secondary":o.colors.warning.secondary,"--color-warning-alpha":o.colors.warning.alpha,"--color-warning-text":o.colors.warning.text,"--color-danger":o.colors.danger.primary,"--color-danger-primary":o.colors.danger.primary,"--color-danger-secondary":o.colors.danger.secondary,"--color-danger-alpha":o.colors.danger.alpha,"--color-danger-text":o.colors.danger.text,...r}};var i=p;export{i as default};
2
- //# sourceMappingURL=ThemeCssVars.js.map
1
+ 'use strict';const ThemeCssVars = (theme) => {
2
+ const shadows = {};
3
+ theme.shadow.forEach((s, i) => shadows[`--shadow-${i}`] = s);
4
+ return Object.assign({ "--bp-xs": theme.breakpoints.xs, "--bp-sm": theme.breakpoints.sm, "--bp-md": theme.breakpoints.md, "--bp-lg": theme.breakpoints.lg, "--bp-xl": theme.breakpoints.xl, "--font-family": theme.typography.fontFamily, "--font-h1": `${theme.typography.h1.fontWeight} ${theme.typography.h1.fontSize}px/${theme.typography.h1.lineHeight} ${theme.typography.fontFamily}`, "--font-h2": `${theme.typography.h2.fontWeight} ${theme.typography.h2.fontSize}px/${theme.typography.h2.lineHeight} ${theme.typography.fontFamily}`, "--font-h3": `${theme.typography.h3.fontWeight} ${theme.typography.h3.fontSize}px/${theme.typography.h3.lineHeight} ${theme.typography.fontFamily}`, "--font-h4": `${theme.typography.h4.fontWeight} ${theme.typography.h4.fontSize}px/${theme.typography.h4.lineHeight} ${theme.typography.fontFamily}`, "--font-h5": `${theme.typography.h5.fontWeight} ${theme.typography.h5.fontSize}px/${theme.typography.h5.lineHeight} ${theme.typography.fontFamily}`, "--font-h6": `${theme.typography.h6.fontWeight} ${theme.typography.h6.fontSize}px/${theme.typography.h6.lineHeight} ${theme.typography.fontFamily}`, "--font-text": `${theme.typography.text.fontWeight} ${theme.typography.text.fontSize}px/${theme.typography.text.lineHeight} ${theme.typography.fontFamily}`, "--font-button": `${theme.typography.button.fontWeight} ${theme.typography.button.fontSize}px/${theme.typography.button.lineHeight} ${theme.typography.fontFamily}`, "--font-small": `${theme.typography.small.fontWeight} ${theme.typography.small.fontSize}px/${theme.typography.small.lineHeight} ${theme.typography.fontFamily}`, "--fontsize-h1": `${theme.typography.h1.fontSize}px`, "--fontsize-h2": `${theme.typography.h2.fontSize}px`, "--fontsize-h3": `${theme.typography.h3.fontSize}px`, "--fontsize-h4": `${theme.typography.h4.fontSize}px`, "--fontsize-h5": `${theme.typography.h5.fontSize}px`, "--fontsize-h6": `${theme.typography.h6.fontSize}px`, "--fontsize-text": `${theme.typography.text.fontSize}px`, "--fontsize-button": `${theme.typography.button.fontSize}px`, "--fontsize-small": `${theme.typography.small.fontSize}px`, "--fontweight-h1": theme.typography.h1.fontWeight + "", "--fontweight-h2": theme.typography.h2.fontWeight + "", "--fontweight-h3": theme.typography.h3.fontWeight + "", "--fontweight-h4": theme.typography.h4.fontWeight + "", "--fontweight-h5": theme.typography.h5.fontWeight + "", "--fontweight-h6": theme.typography.h6.fontWeight + "", "--fontweight-text": theme.typography.text.fontWeight + "", "--fontweight-button": theme.typography.button.fontWeight + "", "--fontweight-small": theme.typography.small.fontWeight + "", "--lineheight-h1": theme.typography.h1.lineHeight + "", "--lineheight-h2": theme.typography.h2.lineHeight + "", "--lineheight-h3": theme.typography.h3.lineHeight + "", "--lineheight-h4": theme.typography.h4.lineHeight + "", "--lineheight-h5": theme.typography.h5.lineHeight + "", "--lineheight-h6": theme.typography.h6.lineHeight + "", "--lineheight-text": theme.typography.text.lineHeight + "", "--lineheight-button": theme.typography.button.lineHeight + "", "--lineheight-small": theme.typography.small.lineHeight + "", "--color-text": theme.colors.text.primary, "--color-text-primary": theme.colors.text.primary, "--color-text-secondary": theme.colors.text.secondary, "--color-background": theme.colors.background.primary, "--color-background-primary": theme.colors.background.primary, "--color-background-secondary": theme.colors.background.secondary, "--color-background-alpha": theme.colors.background.alpha, "--color-divider": theme.colors.divider, "--color-brand": theme.colors.brand.primary, "--color-brand-primary": theme.colors.brand.primary, "--color-brand-secondary": theme.colors.brand.secondary, "--color-brand-alpha": theme.colors.brand.alpha, "--color-brand-text": theme.colors.brand.text, "--color-accent": theme.colors.accent.primary, "--color-accent-primary": theme.colors.accent.primary, "--color-accent-secondary": theme.colors.accent.secondary, "--color-accent-alpha": theme.colors.accent.alpha, "--color-accent-text": theme.colors.accent.text, "--color-info": theme.colors.info.primary, "--color-info-primary": theme.colors.info.primary, "--color-info-secondary": theme.colors.info.secondary, "--color-info-alpha": theme.colors.info.alpha, "--color-info-text": theme.colors.info.text, "--color-success": theme.colors.success.primary, "--color-success-primary": theme.colors.success.primary, "--color-success-secondary": theme.colors.success.secondary, "--color-success-alpha": theme.colors.success.alpha, "--color-success-text": theme.colors.success.text, "--color-warning": theme.colors.warning.primary, "--color-warning-primary": theme.colors.warning.primary, "--color-warning-secondary": theme.colors.warning.secondary, "--color-warning-alpha": theme.colors.warning.alpha, "--color-warning-text": theme.colors.warning.text, "--color-danger": theme.colors.danger.primary, "--color-danger-primary": theme.colors.danger.primary, "--color-danger-secondary": theme.colors.danger.secondary, "--color-danger-alpha": theme.colors.danger.alpha, "--color-danger-text": theme.colors.danger.text }, shadows);
5
+ };module.exports=ThemeCssVars;//# sourceMappingURL=ThemeCssVars.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/theme/ThemeCssVars.ts"],
4
- "sourcesContent": ["import { ThemeOptions } from \"./types\";\n\nconst ThemeCssVars = (theme: ThemeOptions) => {\n\n const shadows: any = {}\n theme.shadow.forEach((s, i) => shadows[`--shadow-${i}`] = s)\n\n return {\n \"--bp-xs\": theme.breakpoints.xs,\n \"--bp-sm\": theme.breakpoints.sm,\n \"--bp-md\": theme.breakpoints.md,\n \"--bp-lg\": theme.breakpoints.lg,\n \"--bp-xl\": theme.breakpoints.xl,\n\n \"--font-family\": theme.typography.fontFamily,\n \"--font-h1\": `${theme.typography.h1.fontWeight} ${theme.typography.h1.fontSize}px/${theme.typography.h1.lineHeight} ${theme.typography.fontFamily}`,\n \"--font-h2\": `${theme.typography.h2.fontWeight} ${theme.typography.h2.fontSize}px/${theme.typography.h2.lineHeight} ${theme.typography.fontFamily}`,\n \"--font-h3\": `${theme.typography.h3.fontWeight} ${theme.typography.h3.fontSize}px/${theme.typography.h3.lineHeight} ${theme.typography.fontFamily}`,\n \"--font-h4\": `${theme.typography.h4.fontWeight} ${theme.typography.h4.fontSize}px/${theme.typography.h4.lineHeight} ${theme.typography.fontFamily}`,\n \"--font-h5\": `${theme.typography.h5.fontWeight} ${theme.typography.h5.fontSize}px/${theme.typography.h5.lineHeight} ${theme.typography.fontFamily}`,\n \"--font-h6\": `${theme.typography.h6.fontWeight} ${theme.typography.h6.fontSize}px/${theme.typography.h6.lineHeight} ${theme.typography.fontFamily}`,\n \"--font-text\": `${theme.typography.text.fontWeight} ${theme.typography.text.fontSize}px/${theme.typography.text.lineHeight} ${theme.typography.fontFamily}`,\n \"--font-button\": `${theme.typography.button.fontWeight} ${theme.typography.button.fontSize}px/${theme.typography.button.lineHeight} ${theme.typography.fontFamily}`,\n \"--font-small\": `${theme.typography.small.fontWeight} ${theme.typography.small.fontSize}px/${theme.typography.small.lineHeight} ${theme.typography.fontFamily}`,\n\n \"--fontsize-h1\": `${theme.typography.h1.fontSize}px`,\n \"--fontsize-h2\": `${theme.typography.h2.fontSize}px`,\n \"--fontsize-h3\": `${theme.typography.h3.fontSize}px`,\n \"--fontsize-h4\": `${theme.typography.h4.fontSize}px`,\n \"--fontsize-h5\": `${theme.typography.h5.fontSize}px`,\n \"--fontsize-h6\": `${theme.typography.h6.fontSize}px`,\n \"--fontsize-text\": `${theme.typography.text.fontSize}px`,\n \"--fontsize-button\": `${theme.typography.button.fontSize}px`,\n \"--fontsize-small\": `${theme.typography.small.fontSize}px`,\n\n \"--fontweight-h1\": theme.typography.h1.fontWeight + \"\",\n \"--fontweight-h2\": theme.typography.h2.fontWeight + \"\",\n \"--fontweight-h3\": theme.typography.h3.fontWeight + \"\",\n \"--fontweight-h4\": theme.typography.h4.fontWeight + \"\",\n \"--fontweight-h5\": theme.typography.h5.fontWeight + \"\",\n \"--fontweight-h6\": theme.typography.h6.fontWeight + \"\",\n \"--fontweight-text\": theme.typography.text.fontWeight + \"\",\n \"--fontweight-button\": theme.typography.button.fontWeight + \"\",\n \"--fontweight-small\": theme.typography.small.fontWeight + \"\",\n\n \"--lineheight-h1\": theme.typography.h1.lineHeight + \"\",\n \"--lineheight-h2\": theme.typography.h2.lineHeight + \"\",\n \"--lineheight-h3\": theme.typography.h3.lineHeight + \"\",\n \"--lineheight-h4\": theme.typography.h4.lineHeight + \"\",\n \"--lineheight-h5\": theme.typography.h5.lineHeight + \"\",\n \"--lineheight-h6\": theme.typography.h6.lineHeight + \"\",\n \"--lineheight-text\": theme.typography.text.lineHeight + \"\",\n \"--lineheight-button\": theme.typography.button.lineHeight + \"\",\n \"--lineheight-small\": theme.typography.small.lineHeight + \"\",\n\n \"--color-text\": theme.colors.text.primary,\n \"--color-text-primary\": theme.colors.text.primary,\n \"--color-text-secondary\": theme.colors.text.secondary,\n\n \"--color-background\": theme.colors.background.primary,\n \"--color-background-primary\": theme.colors.background.primary,\n \"--color-background-secondary\": theme.colors.background.secondary,\n \"--color-background-alpha\": theme.colors.background.alpha,\n\n \"--color-divider\": theme.colors.divider,\n\n \"--color-brand\": theme.colors.brand.primary,\n \"--color-brand-primary\": theme.colors.brand.primary,\n \"--color-brand-secondary\": theme.colors.brand.secondary,\n \"--color-brand-alpha\": theme.colors.brand.alpha,\n \"--color-brand-text\": theme.colors.brand.text,\n\n \"--color-accent\": theme.colors.accent.primary,\n \"--color-accent-primary\": theme.colors.accent.primary,\n \"--color-accent-secondary\": theme.colors.accent.secondary,\n \"--color-accent-alpha\": theme.colors.accent.alpha,\n \"--color-accent-text\": theme.colors.accent.text,\n\n \"--color-info\": theme.colors.info.primary,\n \"--color-info-primary\": theme.colors.info.primary,\n \"--color-info-secondary\": theme.colors.info.secondary,\n \"--color-info-alpha\": theme.colors.info.alpha,\n \"--color-info-text\": theme.colors.info.text,\n\n \"--color-success\": theme.colors.success.primary,\n \"--color-success-primary\": theme.colors.success.primary,\n \"--color-success-secondary\": theme.colors.success.secondary,\n \"--color-success-alpha\": theme.colors.success.alpha,\n \"--color-success-text\": theme.colors.success.text,\n\n \"--color-warning\": theme.colors.warning.primary,\n \"--color-warning-primary\": theme.colors.warning.primary,\n \"--color-warning-secondary\": theme.colors.warning.secondary,\n \"--color-warning-alpha\": theme.colors.warning.alpha,\n \"--color-warning-text\": theme.colors.warning.text,\n\n \"--color-danger\": theme.colors.danger.primary,\n \"--color-danger-primary\": theme.colors.danger.primary,\n \"--color-danger-secondary\": theme.colors.danger.secondary,\n \"--color-danger-alpha\": theme.colors.danger.alpha,\n \"--color-danger-text\": theme.colors.danger.text,\n ...shadows,\n }\n}\n\n\nexport default ThemeCssVars"],
5
- "mappings": "AAEA,MAAMA,EAAgBC,GAAwB,CAE1C,MAAMC,EAAe,CAAC,EACtB,OAAAD,EAAM,OAAO,QAAQ,CAACE,EAAGC,IAAMF,EAAQ,YAAYE,CAAC,EAAE,EAAID,CAAC,EAEpD,CACH,UAAWF,EAAM,YAAY,GAC7B,UAAWA,EAAM,YAAY,GAC7B,UAAWA,EAAM,YAAY,GAC7B,UAAWA,EAAM,YAAY,GAC7B,UAAWA,EAAM,YAAY,GAE7B,gBAAiBA,EAAM,WAAW,WAClC,YAAa,GAAGA,EAAM,WAAW,GAAG,UAAU,IAAIA,EAAM,WAAW,GAAG,QAAQ,MAAMA,EAAM,WAAW,GAAG,UAAU,IAAIA,EAAM,WAAW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"],"sourcesContent":["import { ThemeOptions } from \"./types\";\n\nconst ThemeCssVars = (theme: ThemeOptions) => {\n\n const shadows: any = {}\n theme.shadow.forEach((s, i) => shadows[`--shadow-${i}`] = s)\n\n return {\n \"--bp-xs\": theme.breakpoints.xs,\n \"--bp-sm\": theme.breakpoints.sm,\n \"--bp-md\": theme.breakpoints.md,\n \"--bp-lg\": theme.breakpoints.lg,\n \"--bp-xl\": theme.breakpoints.xl,\n\n \"--font-family\": theme.typography.fontFamily,\n \"--font-h1\": `${theme.typography.h1.fontWeight} ${theme.typography.h1.fontSize}px/${theme.typography.h1.lineHeight} ${theme.typography.fontFamily}`,\n \"--font-h2\": `${theme.typography.h2.fontWeight} ${theme.typography.h2.fontSize}px/${theme.typography.h2.lineHeight} ${theme.typography.fontFamily}`,\n \"--font-h3\": `${theme.typography.h3.fontWeight} ${theme.typography.h3.fontSize}px/${theme.typography.h3.lineHeight} ${theme.typography.fontFamily}`,\n \"--font-h4\": `${theme.typography.h4.fontWeight} ${theme.typography.h4.fontSize}px/${theme.typography.h4.lineHeight} ${theme.typography.fontFamily}`,\n \"--font-h5\": `${theme.typography.h5.fontWeight} ${theme.typography.h5.fontSize}px/${theme.typography.h5.lineHeight} ${theme.typography.fontFamily}`,\n \"--font-h6\": `${theme.typography.h6.fontWeight} ${theme.typography.h6.fontSize}px/${theme.typography.h6.lineHeight} ${theme.typography.fontFamily}`,\n \"--font-text\": `${theme.typography.text.fontWeight} ${theme.typography.text.fontSize}px/${theme.typography.text.lineHeight} ${theme.typography.fontFamily}`,\n \"--font-button\": `${theme.typography.button.fontWeight} ${theme.typography.button.fontSize}px/${theme.typography.button.lineHeight} ${theme.typography.fontFamily}`,\n \"--font-small\": `${theme.typography.small.fontWeight} ${theme.typography.small.fontSize}px/${theme.typography.small.lineHeight} ${theme.typography.fontFamily}`,\n\n \"--fontsize-h1\": `${theme.typography.h1.fontSize}px`,\n \"--fontsize-h2\": `${theme.typography.h2.fontSize}px`,\n \"--fontsize-h3\": `${theme.typography.h3.fontSize}px`,\n \"--fontsize-h4\": `${theme.typography.h4.fontSize}px`,\n \"--fontsize-h5\": `${theme.typography.h5.fontSize}px`,\n \"--fontsize-h6\": `${theme.typography.h6.fontSize}px`,\n \"--fontsize-text\": `${theme.typography.text.fontSize}px`,\n \"--fontsize-button\": `${theme.typography.button.fontSize}px`,\n \"--fontsize-small\": `${theme.typography.small.fontSize}px`,\n\n \"--fontweight-h1\": theme.typography.h1.fontWeight + \"\",\n \"--fontweight-h2\": theme.typography.h2.fontWeight + \"\",\n \"--fontweight-h3\": theme.typography.h3.fontWeight + \"\",\n \"--fontweight-h4\": theme.typography.h4.fontWeight + \"\",\n \"--fontweight-h5\": theme.typography.h5.fontWeight + \"\",\n \"--fontweight-h6\": theme.typography.h6.fontWeight + \"\",\n \"--fontweight-text\": theme.typography.text.fontWeight + \"\",\n \"--fontweight-button\": theme.typography.button.fontWeight + \"\",\n \"--fontweight-small\": theme.typography.small.fontWeight + \"\",\n\n \"--lineheight-h1\": theme.typography.h1.lineHeight + \"\",\n \"--lineheight-h2\": theme.typography.h2.lineHeight + \"\",\n \"--lineheight-h3\": theme.typography.h3.lineHeight + \"\",\n \"--lineheight-h4\": theme.typography.h4.lineHeight + \"\",\n \"--lineheight-h5\": theme.typography.h5.lineHeight + \"\",\n \"--lineheight-h6\": theme.typography.h6.lineHeight + \"\",\n \"--lineheight-text\": theme.typography.text.lineHeight + \"\",\n \"--lineheight-button\": theme.typography.button.lineHeight + \"\",\n \"--lineheight-small\": theme.typography.small.lineHeight + \"\",\n\n \"--color-text\": theme.colors.text.primary,\n \"--color-text-primary\": theme.colors.text.primary,\n \"--color-text-secondary\": theme.colors.text.secondary,\n\n \"--color-background\": theme.colors.background.primary,\n \"--color-background-primary\": theme.colors.background.primary,\n \"--color-background-secondary\": theme.colors.background.secondary,\n \"--color-background-alpha\": theme.colors.background.alpha,\n\n \"--color-divider\": theme.colors.divider,\n\n \"--color-brand\": theme.colors.brand.primary,\n \"--color-brand-primary\": theme.colors.brand.primary,\n \"--color-brand-secondary\": theme.colors.brand.secondary,\n \"--color-brand-alpha\": theme.colors.brand.alpha,\n \"--color-brand-text\": theme.colors.brand.text,\n\n \"--color-accent\": theme.colors.accent.primary,\n \"--color-accent-primary\": theme.colors.accent.primary,\n \"--color-accent-secondary\": theme.colors.accent.secondary,\n \"--color-accent-alpha\": theme.colors.accent.alpha,\n \"--color-accent-text\": theme.colors.accent.text,\n\n \"--color-info\": theme.colors.info.primary,\n \"--color-info-primary\": theme.colors.info.primary,\n \"--color-info-secondary\": theme.colors.info.secondary,\n \"--color-info-alpha\": theme.colors.info.alpha,\n \"--color-info-text\": theme.colors.info.text,\n\n \"--color-success\": theme.colors.success.primary,\n \"--color-success-primary\": theme.colors.success.primary,\n \"--color-success-secondary\": theme.colors.success.secondary,\n \"--color-success-alpha\": theme.colors.success.alpha,\n \"--color-success-text\": theme.colors.success.text,\n\n \"--color-warning\": theme.colors.warning.primary,\n \"--color-warning-primary\": theme.colors.warning.primary,\n \"--color-warning-secondary\": theme.colors.warning.secondary,\n \"--color-warning-alpha\": theme.colors.warning.alpha,\n \"--color-warning-text\": theme.colors.warning.text,\n\n \"--color-danger\": theme.colors.danger.primary,\n \"--color-danger-primary\": theme.colors.danger.primary,\n \"--color-danger-secondary\": theme.colors.danger.secondary,\n \"--color-danger-alpha\": theme.colors.danger.alpha,\n \"--color-danger-text\": theme.colors.danger.text,\n ...shadows,\n }\n}\n\n\nexport default ThemeCssVars"],"names":[],"mappings":"aAEA,MAAM,YAAY,GAAG,CAAC,KAAmB,KAAI;IAEzC,MAAM,OAAO,GAAQ,EAAE;IACvB,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,OAAO,CAAC,CAAY,SAAA,EAAA,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AAE5D,IAAA,OAAA,MAAA,CAAA,MAAA,CAAA,EACI,SAAS,EAAE,KAAK,CAAC,WAAW,CA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B,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,EAC/C,yBAAyB,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,EACvD,2BAA2B,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,EAC3D,uBAAuB,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EACnD,sBAAsB,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,EAEjD,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,EAC/C,yBAAyB,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,EACvD,2BAA2B,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,EAC3D,uBAAuB,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EACnD,sBAAsB,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,EAEjD,gBAAgB,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,EAC7C,wBAAwB,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,EACrD,0BAA0B,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,EACzD,sBAAsB,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,EACjD,qBAAqB,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAA,EAC5C,OAAO,CACb;AACL"}
@@ -0,0 +1,5 @@
1
+ const ThemeCssVars = (theme) => {
2
+ const shadows = {};
3
+ theme.shadow.forEach((s, i) => shadows[`--shadow-${i}`] = s);
4
+ return Object.assign({ "--bp-xs": theme.breakpoints.xs, "--bp-sm": theme.breakpoints.sm, "--bp-md": theme.breakpoints.md, "--bp-lg": theme.breakpoints.lg, "--bp-xl": theme.breakpoints.xl, "--font-family": theme.typography.fontFamily, "--font-h1": `${theme.typography.h1.fontWeight} ${theme.typography.h1.fontSize}px/${theme.typography.h1.lineHeight} ${theme.typography.fontFamily}`, "--font-h2": `${theme.typography.h2.fontWeight} ${theme.typography.h2.fontSize}px/${theme.typography.h2.lineHeight} ${theme.typography.fontFamily}`, "--font-h3": `${theme.typography.h3.fontWeight} ${theme.typography.h3.fontSize}px/${theme.typography.h3.lineHeight} ${theme.typography.fontFamily}`, "--font-h4": `${theme.typography.h4.fontWeight} ${theme.typography.h4.fontSize}px/${theme.typography.h4.lineHeight} ${theme.typography.fontFamily}`, "--font-h5": `${theme.typography.h5.fontWeight} ${theme.typography.h5.fontSize}px/${theme.typography.h5.lineHeight} ${theme.typography.fontFamily}`, "--font-h6": `${theme.typography.h6.fontWeight} ${theme.typography.h6.fontSize}px/${theme.typography.h6.lineHeight} ${theme.typography.fontFamily}`, "--font-text": `${theme.typography.text.fontWeight} ${theme.typography.text.fontSize}px/${theme.typography.text.lineHeight} ${theme.typography.fontFamily}`, "--font-button": `${theme.typography.button.fontWeight} ${theme.typography.button.fontSize}px/${theme.typography.button.lineHeight} ${theme.typography.fontFamily}`, "--font-small": `${theme.typography.small.fontWeight} ${theme.typography.small.fontSize}px/${theme.typography.small.lineHeight} ${theme.typography.fontFamily}`, "--fontsize-h1": `${theme.typography.h1.fontSize}px`, "--fontsize-h2": `${theme.typography.h2.fontSize}px`, "--fontsize-h3": `${theme.typography.h3.fontSize}px`, "--fontsize-h4": `${theme.typography.h4.fontSize}px`, "--fontsize-h5": `${theme.typography.h5.fontSize}px`, "--fontsize-h6": `${theme.typography.h6.fontSize}px`, "--fontsize-text": `${theme.typography.text.fontSize}px`, "--fontsize-button": `${theme.typography.button.fontSize}px`, "--fontsize-small": `${theme.typography.small.fontSize}px`, "--fontweight-h1": theme.typography.h1.fontWeight + "", "--fontweight-h2": theme.typography.h2.fontWeight + "", "--fontweight-h3": theme.typography.h3.fontWeight + "", "--fontweight-h4": theme.typography.h4.fontWeight + "", "--fontweight-h5": theme.typography.h5.fontWeight + "", "--fontweight-h6": theme.typography.h6.fontWeight + "", "--fontweight-text": theme.typography.text.fontWeight + "", "--fontweight-button": theme.typography.button.fontWeight + "", "--fontweight-small": theme.typography.small.fontWeight + "", "--lineheight-h1": theme.typography.h1.lineHeight + "", "--lineheight-h2": theme.typography.h2.lineHeight + "", "--lineheight-h3": theme.typography.h3.lineHeight + "", "--lineheight-h4": theme.typography.h4.lineHeight + "", "--lineheight-h5": theme.typography.h5.lineHeight + "", "--lineheight-h6": theme.typography.h6.lineHeight + "", "--lineheight-text": theme.typography.text.lineHeight + "", "--lineheight-button": theme.typography.button.lineHeight + "", "--lineheight-small": theme.typography.small.lineHeight + "", "--color-text": theme.colors.text.primary, "--color-text-primary": theme.colors.text.primary, "--color-text-secondary": theme.colors.text.secondary, "--color-background": theme.colors.background.primary, "--color-background-primary": theme.colors.background.primary, "--color-background-secondary": theme.colors.background.secondary, "--color-background-alpha": theme.colors.background.alpha, "--color-divider": theme.colors.divider, "--color-brand": theme.colors.brand.primary, "--color-brand-primary": theme.colors.brand.primary, "--color-brand-secondary": theme.colors.brand.secondary, "--color-brand-alpha": theme.colors.brand.alpha, "--color-brand-text": theme.colors.brand.text, "--color-accent": theme.colors.accent.primary, "--color-accent-primary": theme.colors.accent.primary, "--color-accent-secondary": theme.colors.accent.secondary, "--color-accent-alpha": theme.colors.accent.alpha, "--color-accent-text": theme.colors.accent.text, "--color-info": theme.colors.info.primary, "--color-info-primary": theme.colors.info.primary, "--color-info-secondary": theme.colors.info.secondary, "--color-info-alpha": theme.colors.info.alpha, "--color-info-text": theme.colors.info.text, "--color-success": theme.colors.success.primary, "--color-success-primary": theme.colors.success.primary, "--color-success-secondary": theme.colors.success.secondary, "--color-success-alpha": theme.colors.success.alpha, "--color-success-text": theme.colors.success.text, "--color-warning": theme.colors.warning.primary, "--color-warning-primary": theme.colors.warning.primary, "--color-warning-secondary": theme.colors.warning.secondary, "--color-warning-alpha": theme.colors.warning.alpha, "--color-warning-text": theme.colors.warning.text, "--color-danger": theme.colors.danger.primary, "--color-danger-primary": theme.colors.danger.primary, "--color-danger-secondary": theme.colors.danger.secondary, "--color-danger-alpha": theme.colors.danger.alpha, "--color-danger-text": theme.colors.danger.text }, shadows);
5
+ };export{ThemeCssVars as default};//# sourceMappingURL=ThemeCssVars.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ThemeCssVars.mjs","sources":["../../src/theme/ThemeCssVars.ts"],"sourcesContent":["import { ThemeOptions } from \"./types\";\n\nconst ThemeCssVars = (theme: ThemeOptions) => {\n\n const shadows: any = {}\n theme.shadow.forEach((s, i) => shadows[`--shadow-${i}`] = s)\n\n return {\n \"--bp-xs\": theme.breakpoints.xs,\n \"--bp-sm\": theme.breakpoints.sm,\n \"--bp-md\": theme.breakpoints.md,\n \"--bp-lg\": theme.breakpoints.lg,\n \"--bp-xl\": theme.breakpoints.xl,\n\n \"--font-family\": theme.typography.fontFamily,\n \"--font-h1\": `${theme.typography.h1.fontWeight} ${theme.typography.h1.fontSize}px/${theme.typography.h1.lineHeight} ${theme.typography.fontFamily}`,\n \"--font-h2\": `${theme.typography.h2.fontWeight} ${theme.typography.h2.fontSize}px/${theme.typography.h2.lineHeight} ${theme.typography.fontFamily}`,\n \"--font-h3\": `${theme.typography.h3.fontWeight} ${theme.typography.h3.fontSize}px/${theme.typography.h3.lineHeight} ${theme.typography.fontFamily}`,\n \"--font-h4\": `${theme.typography.h4.fontWeight} ${theme.typography.h4.fontSize}px/${theme.typography.h4.lineHeight} ${theme.typography.fontFamily}`,\n \"--font-h5\": `${theme.typography.h5.fontWeight} ${theme.typography.h5.fontSize}px/${theme.typography.h5.lineHeight} ${theme.typography.fontFamily}`,\n \"--font-h6\": `${theme.typography.h6.fontWeight} ${theme.typography.h6.fontSize}px/${theme.typography.h6.lineHeight} ${theme.typography.fontFamily}`,\n \"--font-text\": `${theme.typography.text.fontWeight} ${theme.typography.text.fontSize}px/${theme.typography.text.lineHeight} ${theme.typography.fontFamily}`,\n \"--font-button\": `${theme.typography.button.fontWeight} ${theme.typography.button.fontSize}px/${theme.typography.button.lineHeight} ${theme.typography.fontFamily}`,\n \"--font-small\": `${theme.typography.small.fontWeight} ${theme.typography.small.fontSize}px/${theme.typography.small.lineHeight} ${theme.typography.fontFamily}`,\n\n \"--fontsize-h1\": `${theme.typography.h1.fontSize}px`,\n \"--fontsize-h2\": `${theme.typography.h2.fontSize}px`,\n \"--fontsize-h3\": `${theme.typography.h3.fontSize}px`,\n \"--fontsize-h4\": `${theme.typography.h4.fontSize}px`,\n \"--fontsize-h5\": `${theme.typography.h5.fontSize}px`,\n \"--fontsize-h6\": `${theme.typography.h6.fontSize}px`,\n \"--fontsize-text\": `${theme.typography.text.fontSize}px`,\n \"--fontsize-button\": `${theme.typography.button.fontSize}px`,\n \"--fontsize-small\": `${theme.typography.small.fontSize}px`,\n\n \"--fontweight-h1\": theme.typography.h1.fontWeight + \"\",\n \"--fontweight-h2\": theme.typography.h2.fontWeight + \"\",\n \"--fontweight-h3\": theme.typography.h3.fontWeight + \"\",\n \"--fontweight-h4\": theme.typography.h4.fontWeight + \"\",\n \"--fontweight-h5\": theme.typography.h5.fontWeight + \"\",\n \"--fontweight-h6\": theme.typography.h6.fontWeight + \"\",\n \"--fontweight-text\": theme.typography.text.fontWeight + \"\",\n \"--fontweight-button\": theme.typography.button.fontWeight + \"\",\n \"--fontweight-small\": theme.typography.small.fontWeight + \"\",\n\n \"--lineheight-h1\": theme.typography.h1.lineHeight + \"\",\n \"--lineheight-h2\": theme.typography.h2.lineHeight + \"\",\n \"--lineheight-h3\": theme.typography.h3.lineHeight + \"\",\n \"--lineheight-h4\": theme.typography.h4.lineHeight + \"\",\n \"--lineheight-h5\": theme.typography.h5.lineHeight + \"\",\n \"--lineheight-h6\": theme.typography.h6.lineHeight + \"\",\n \"--lineheight-text\": theme.typography.text.lineHeight + \"\",\n \"--lineheight-button\": theme.typography.button.lineHeight + \"\",\n \"--lineheight-small\": theme.typography.small.lineHeight + \"\",\n\n \"--color-text\": theme.colors.text.primary,\n \"--color-text-primary\": theme.colors.text.primary,\n \"--color-text-secondary\": theme.colors.text.secondary,\n\n \"--color-background\": theme.colors.background.primary,\n \"--color-background-primary\": theme.colors.background.primary,\n \"--color-background-secondary\": theme.colors.background.secondary,\n \"--color-background-alpha\": theme.colors.background.alpha,\n\n \"--color-divider\": theme.colors.divider,\n\n \"--color-brand\": theme.colors.brand.primary,\n \"--color-brand-primary\": theme.colors.brand.primary,\n \"--color-brand-secondary\": theme.colors.brand.secondary,\n \"--color-brand-alpha\": theme.colors.brand.alpha,\n \"--color-brand-text\": theme.colors.brand.text,\n\n \"--color-accent\": theme.colors.accent.primary,\n \"--color-accent-primary\": theme.colors.accent.primary,\n \"--color-accent-secondary\": theme.colors.accent.secondary,\n \"--color-accent-alpha\": theme.colors.accent.alpha,\n \"--color-accent-text\": theme.colors.accent.text,\n\n \"--color-info\": theme.colors.info.primary,\n \"--color-info-primary\": theme.colors.info.primary,\n \"--color-info-secondary\": theme.colors.info.secondary,\n \"--color-info-alpha\": theme.colors.info.alpha,\n \"--color-info-text\": theme.colors.info.text,\n\n \"--color-success\": theme.colors.success.primary,\n \"--color-success-primary\": theme.colors.success.primary,\n \"--color-success-secondary\": theme.colors.success.secondary,\n \"--color-success-alpha\": theme.colors.success.alpha,\n \"--color-success-text\": theme.colors.success.text,\n\n \"--color-warning\": theme.colors.warning.primary,\n \"--color-warning-primary\": theme.colors.warning.primary,\n \"--color-warning-secondary\": theme.colors.warning.secondary,\n \"--color-warning-alpha\": theme.colors.warning.alpha,\n \"--color-warning-text\": theme.colors.warning.text,\n\n \"--color-danger\": theme.colors.danger.primary,\n \"--color-danger-primary\": theme.colors.danger.primary,\n \"--color-danger-secondary\": theme.colors.danger.secondary,\n \"--color-danger-alpha\": theme.colors.danger.alpha,\n \"--color-danger-text\": theme.colors.danger.text,\n ...shadows,\n }\n}\n\n\nexport default ThemeCssVars"],"names":[],"mappings":"AAEA,MAAM,YA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O,CACb;AACL"}
@@ -1,2 +1,131 @@
1
- const p={text:{primary:"#212B36",secondary:"#637381"},background:{primary:"#FFFFFF",secondary:"#EDEFF7"},divider:"#DADCE0"},b={text:{primary:"#FFFFFF",secondary:"#C4CDD5"},background:{primary:"#272727",secondary:"#1E1E1E"},divider:"#3D3D3D"},x={...p,brand:{primary:"#3b82f6",secondary:"#60a5fa",text:"#FFFFFF"},accent:{primary:"#14b8a6",secondary:"#2dd4bf",text:"#FFFFFF"},info:{primary:"#0ea5e9",secondary:"#60a5fa",text:"#FFFFFF"},success:{primary:"#22c55e",secondary:"#4ade80",text:"#FFFFFF"},warning:{primary:"#f59e0b",secondary:"#fbbf24",text:"#FFFFFF"},danger:{primary:"#ef4444",secondary:"#f87171",text:"#FFFFFF"}},r={fontFamily:'"Inter",sans-serif,"Helvetica","Arial"',h1:{fontSize:47.78,lineHeight:1.3,fontWeight:400},h2:{fontSize:39.81,lineHeight:1.35,fontWeight:400},h3:{fontSize:33.18,lineHeight:1.4,fontWeight:400},h4:{fontSize:27.65,lineHeight:1.45,fontWeight:400},h5:{fontSize:27.65,lineHeight:1.5,fontWeight:400},h6:{fontSize:23.04,lineHeight:1.55,fontWeight:400},text:{fontSize:16,lineHeight:1.6,fontWeight:400},button:{fontSize:13.33,lineHeight:1.6,fontWeight:500},small:{fontSize:12.33,lineHeight:1.6,fontWeight:400}},a=["none","0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12)","0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12)","0px 3px 3px -2px rgba(0,0,0,0.2),0px 3px 4px 0px rgba(0,0,0,0.14),0px 1px 8px 0px rgba(0,0,0,0.12)","0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12)","0px 3px 5px -1px rgba(0,0,0,0.2),0px 5px 8px 0px rgba(0,0,0,0.14),0px 1px 14px 0px rgba(0,0,0,0.12)","0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)","0px 4px 5px -2px rgba(0,0,0,0.2),0px 7px 10px 1px rgba(0,0,0,0.14),0px 2px 16px 1px rgba(0,0,0,0.12)","0px 5px 5px -3px rgba(0,0,0,0.2),0px 8px 10px 1px rgba(0,0,0,0.14),0px 3px 14px 2px rgba(0,0,0,0.12)","0px 5px 6px -3px rgba(0,0,0,0.2),0px 9px 12px 1px rgba(0,0,0,0.14),0px 3px 16px 2px rgba(0,0,0,0.12)","0px 6px 6px -3px rgba(0,0,0,0.2),0px 10px 14px 1px rgba(0,0,0,0.14),0px 4px 18px 3px rgba(0,0,0,0.12)","0px 6px 7px -4px rgba(0,0,0,0.2),0px 11px 15px 1px rgba(0,0,0,0.14),0px 4px 20px 3px rgba(0,0,0,0.12)","0px 7px 8px -4px rgba(0,0,0,0.2),0px 12px 17px 2px rgba(0,0,0,0.14),0px 5px 22px 4px rgba(0,0,0,0.12)","0px 7px 8px -4px rgba(0,0,0,0.2),0px 13px 19px 2px rgba(0,0,0,0.14),0px 5px 24px 4px rgba(0,0,0,0.12)","0px 7px 9px -4px rgba(0,0,0,0.2),0px 14px 21px 2px rgba(0,0,0,0.14),0px 5px 26px 4px rgba(0,0,0,0.12)","0px 8px 9px -5px rgba(0,0,0,0.2),0px 15px 22px 2px rgba(0,0,0,0.14),0px 6px 28px 5px rgba(0,0,0,0.12)","0px 8px 10px -5px rgba(0,0,0,0.2),0px 16px 24px 2px rgba(0,0,0,0.14),0px 6px 30px 5px rgba(0,0,0,0.12)","0px 8px 11px -5px rgba(0,0,0,0.2),0px 17px 26px 2px rgba(0,0,0,0.14),0px 6px 32px 5px rgba(0,0,0,0.12)","0px 9px 11px -5px rgba(0,0,0,0.2),0px 18px 28px 2px rgba(0,0,0,0.14),0px 7px 34px 6px rgba(0,0,0,0.12)","0px 9px 12px -6px rgba(0,0,0,0.2),0px 19px 29px 2px rgba(0,0,0,0.14),0px 7px 36px 6px rgba(0,0,0,0.12)","0px 10px 13px -6px rgba(0,0,0,0.2),0px 20px 31px 3px rgba(0,0,0,0.14),0px 8px 38px 7px rgba(0,0,0,0.12)","0px 10px 13px -6px rgba(0,0,0,0.2),0px 21px 33px 3px rgba(0,0,0,0.14),0px 8px 40px 7px rgba(0,0,0,0.12)","0px 10px 14px -6px rgba(0,0,0,0.2),0px 22px 35px 3px rgba(0,0,0,0.14),0px 8px 42px 7px rgba(0,0,0,0.12)","0px 11px 14px -7px rgba(0,0,0,0.2),0px 23px 36px 3px rgba(0,0,0,0.14),0px 9px 44px 8px rgba(0,0,0,0.12)","0px 11px 15px -7px rgba(0,0,0,0.2),0px 24px 38px 3px rgba(0,0,0,0.14),0px 9px 46px 8px rgba(0,0,0,0.12)"];var o={name:"light",rtl:!1,shadow:a,globalStyle:{},colors:x,typography:r,interfaces:{}};export{x as ThemeColors,r as ThemeTypography,b as darkColorPallete,o as default,p as lightColorPallete,a as shadow};
2
- //# sourceMappingURL=ThemeDefaultOptions.js.map
1
+ 'use strict';Object.defineProperty(exports,'__esModule',{value:true});const lightColorPallete = {
2
+ text: {
3
+ primary: "#212B36",
4
+ secondary: "#637381",
5
+ },
6
+ background: {
7
+ primary: "#FFFFFF",
8
+ secondary: "#EDEFF7",
9
+ },
10
+ divider: "#DADCE0"
11
+ };
12
+ const darkColorPallete = {
13
+ text: {
14
+ primary: "#FFFFFF",
15
+ secondary: "#C4CDD5",
16
+ },
17
+ background: {
18
+ primary: "#272727",
19
+ secondary: "#1E1E1E",
20
+ },
21
+ divider: "#3D3D3D"
22
+ };
23
+ const ThemeColors = Object.assign(Object.assign({}, lightColorPallete), { brand: {
24
+ primary: "#3b82f6",
25
+ secondary: "#60a5fa",
26
+ text: "#FFFFFF"
27
+ }, accent: {
28
+ primary: "#14b8a6",
29
+ secondary: "#2dd4bf",
30
+ text: "#FFFFFF"
31
+ }, info: {
32
+ primary: "#0ea5e9",
33
+ secondary: "#60a5fa",
34
+ text: "#FFFFFF"
35
+ }, success: {
36
+ primary: "#22c55e",
37
+ secondary: "#4ade80",
38
+ text: "#FFFFFF"
39
+ }, warning: {
40
+ primary: "#f59e0b",
41
+ secondary: "#fbbf24",
42
+ text: "#FFFFFF"
43
+ }, danger: {
44
+ primary: "#ef4444",
45
+ secondary: "#f87171",
46
+ text: "#FFFFFF"
47
+ } });
48
+ const ThemeTypography = {
49
+ fontFamily: '"Inter",sans-serif,"Helvetica","Arial"',
50
+ h1: {
51
+ fontSize: 47.78,
52
+ lineHeight: 1.3,
53
+ fontWeight: 400,
54
+ },
55
+ h2: {
56
+ fontSize: 39.81,
57
+ lineHeight: 1.35,
58
+ fontWeight: 400,
59
+ },
60
+ h3: {
61
+ fontSize: 33.18,
62
+ lineHeight: 1.4,
63
+ fontWeight: 400,
64
+ },
65
+ h4: {
66
+ fontSize: 27.65,
67
+ lineHeight: 1.45,
68
+ fontWeight: 400,
69
+ },
70
+ h5: {
71
+ fontSize: 27.65,
72
+ lineHeight: 1.5,
73
+ fontWeight: 400,
74
+ },
75
+ h6: {
76
+ fontSize: 23.04,
77
+ lineHeight: 1.55,
78
+ fontWeight: 400,
79
+ },
80
+ text: {
81
+ fontSize: 16,
82
+ lineHeight: 1.6,
83
+ fontWeight: 400,
84
+ },
85
+ button: {
86
+ fontSize: 13.33,
87
+ lineHeight: 1.6,
88
+ fontWeight: 500,
89
+ },
90
+ small: {
91
+ fontSize: 12.33,
92
+ lineHeight: 1.6,
93
+ fontWeight: 400,
94
+ }
95
+ };
96
+ const shadow = [
97
+ "none",
98
+ "0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12)",
99
+ "0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12)",
100
+ "0px 3px 3px -2px rgba(0,0,0,0.2),0px 3px 4px 0px rgba(0,0,0,0.14),0px 1px 8px 0px rgba(0,0,0,0.12)",
101
+ "0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12)",
102
+ "0px 3px 5px -1px rgba(0,0,0,0.2),0px 5px 8px 0px rgba(0,0,0,0.14),0px 1px 14px 0px rgba(0,0,0,0.12)",
103
+ "0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)",
104
+ "0px 4px 5px -2px rgba(0,0,0,0.2),0px 7px 10px 1px rgba(0,0,0,0.14),0px 2px 16px 1px rgba(0,0,0,0.12)",
105
+ "0px 5px 5px -3px rgba(0,0,0,0.2),0px 8px 10px 1px rgba(0,0,0,0.14),0px 3px 14px 2px rgba(0,0,0,0.12)",
106
+ "0px 5px 6px -3px rgba(0,0,0,0.2),0px 9px 12px 1px rgba(0,0,0,0.14),0px 3px 16px 2px rgba(0,0,0,0.12)",
107
+ "0px 6px 6px -3px rgba(0,0,0,0.2),0px 10px 14px 1px rgba(0,0,0,0.14),0px 4px 18px 3px rgba(0,0,0,0.12)",
108
+ "0px 6px 7px -4px rgba(0,0,0,0.2),0px 11px 15px 1px rgba(0,0,0,0.14),0px 4px 20px 3px rgba(0,0,0,0.12)",
109
+ "0px 7px 8px -4px rgba(0,0,0,0.2),0px 12px 17px 2px rgba(0,0,0,0.14),0px 5px 22px 4px rgba(0,0,0,0.12)",
110
+ "0px 7px 8px -4px rgba(0,0,0,0.2),0px 13px 19px 2px rgba(0,0,0,0.14),0px 5px 24px 4px rgba(0,0,0,0.12)",
111
+ "0px 7px 9px -4px rgba(0,0,0,0.2),0px 14px 21px 2px rgba(0,0,0,0.14),0px 5px 26px 4px rgba(0,0,0,0.12)",
112
+ "0px 8px 9px -5px rgba(0,0,0,0.2),0px 15px 22px 2px rgba(0,0,0,0.14),0px 6px 28px 5px rgba(0,0,0,0.12)",
113
+ "0px 8px 10px -5px rgba(0,0,0,0.2),0px 16px 24px 2px rgba(0,0,0,0.14),0px 6px 30px 5px rgba(0,0,0,0.12)",
114
+ "0px 8px 11px -5px rgba(0,0,0,0.2),0px 17px 26px 2px rgba(0,0,0,0.14),0px 6px 32px 5px rgba(0,0,0,0.12)",
115
+ "0px 9px 11px -5px rgba(0,0,0,0.2),0px 18px 28px 2px rgba(0,0,0,0.14),0px 7px 34px 6px rgba(0,0,0,0.12)",
116
+ "0px 9px 12px -6px rgba(0,0,0,0.2),0px 19px 29px 2px rgba(0,0,0,0.14),0px 7px 36px 6px rgba(0,0,0,0.12)",
117
+ "0px 10px 13px -6px rgba(0,0,0,0.2),0px 20px 31px 3px rgba(0,0,0,0.14),0px 8px 38px 7px rgba(0,0,0,0.12)",
118
+ "0px 10px 13px -6px rgba(0,0,0,0.2),0px 21px 33px 3px rgba(0,0,0,0.14),0px 8px 40px 7px rgba(0,0,0,0.12)",
119
+ "0px 10px 14px -6px rgba(0,0,0,0.2),0px 22px 35px 3px rgba(0,0,0,0.14),0px 8px 42px 7px rgba(0,0,0,0.12)",
120
+ "0px 11px 14px -7px rgba(0,0,0,0.2),0px 23px 36px 3px rgba(0,0,0,0.14),0px 9px 44px 8px rgba(0,0,0,0.12)",
121
+ "0px 11px 15px -7px rgba(0,0,0,0.2),0px 24px 38px 3px rgba(0,0,0,0.14),0px 9px 46px 8px rgba(0,0,0,0.12)",
122
+ ];
123
+ var defaultThemeOption = {
124
+ name: "light",
125
+ rtl: false,
126
+ shadow,
127
+ globalStyle: {},
128
+ colors: ThemeColors,
129
+ typography: ThemeTypography,
130
+ interfaces: {}
131
+ };exports.ThemeColors=ThemeColors;exports.ThemeTypography=ThemeTypography;exports.darkColorPallete=darkColorPallete;exports.default=defaultThemeOption;exports.lightColorPallete=lightColorPallete;exports.shadow=shadow;//# sourceMappingURL=ThemeDefaultOptions.js.map
@@ -1,7 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/theme/ThemeDefaultOptions.ts"],
4
- "sourcesContent": ["import { ThemeOptionInput, ThemeTypographyType } from './types'\n\nexport const lightColorPallete = {\n text: {\n primary: \"#212B36\",\n secondary: \"#637381\",\n },\n background: {\n primary: \"#FFFFFF\",\n secondary: \"#EDEFF7\",\n },\n divider: \"#DADCE0\"\n}\n\nexport const darkColorPallete = {\n text: {\n primary: \"#FFFFFF\",\n secondary: \"#C4CDD5\",\n },\n background: {\n primary: \"#272727\",\n secondary: \"#1E1E1E\",\n },\n divider: \"#3D3D3D\"\n}\n\nexport const ThemeColors = {\n ...lightColorPallete,\n brand: {\n primary: \"#3b82f6\",\n secondary: \"#60a5fa\",\n text: \"#FFFFFF\"\n },\n accent: {\n primary: \"#14b8a6\",\n secondary: \"#2dd4bf\",\n text: \"#FFFFFF\"\n },\n info: {\n primary: \"#0ea5e9\",\n secondary: \"#60a5fa\",\n text: \"#FFFFFF\"\n },\n success: {\n primary: \"#22c55e\",\n secondary: \"#4ade80\",\n text: \"#FFFFFF\"\n },\n warning: {\n primary: \"#f59e0b\",\n secondary: \"#fbbf24\",\n text: \"#FFFFFF\"\n },\n danger: {\n primary: \"#ef4444\",\n secondary: \"#f87171\",\n text: \"#FFFFFF\"\n },\n}\n\nexport const ThemeTypography: ThemeTypographyType = {\n fontFamily: '\"Inter\",sans-serif,\"Helvetica\",\"Arial\"',\n h1: {\n fontSize: 47.78,\n lineHeight: 1.3,\n fontWeight: 400,\n },\n h2: {\n fontSize: 39.81,\n lineHeight: 1.35,\n fontWeight: 400,\n },\n h3: {\n fontSize: 33.18,\n lineHeight: 1.4,\n fontWeight: 400,\n },\n h4: {\n fontSize: 27.65,\n lineHeight: 1.45,\n fontWeight: 400,\n },\n h5: {\n fontSize: 27.65,\n lineHeight: 1.5,\n fontWeight: 400,\n },\n h6: {\n fontSize: 23.04,\n lineHeight: 1.55,\n fontWeight: 400,\n },\n text: {\n fontSize: 16,\n lineHeight: 1.6,\n fontWeight: 400,\n },\n button: {\n fontSize: 13.33,\n lineHeight: 1.6,\n fontWeight: 500,\n },\n small: {\n fontSize: 12.33,\n lineHeight: 1.6,\n fontWeight: 400,\n }\n}\n\nexport const shadow = [\n \"none\",\n \"0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12)\",\n \"0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12)\",\n \"0px 3px 3px -2px rgba(0,0,0,0.2),0px 3px 4px 0px rgba(0,0,0,0.14),0px 1px 8px 0px rgba(0,0,0,0.12)\",\n \"0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12)\",\n \"0px 3px 5px -1px rgba(0,0,0,0.2),0px 5px 8px 0px rgba(0,0,0,0.14),0px 1px 14px 0px rgba(0,0,0,0.12)\",\n \"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)\",\n \"0px 4px 5px -2px rgba(0,0,0,0.2),0px 7px 10px 1px rgba(0,0,0,0.14),0px 2px 16px 1px rgba(0,0,0,0.12)\",\n \"0px 5px 5px -3px rgba(0,0,0,0.2),0px 8px 10px 1px rgba(0,0,0,0.14),0px 3px 14px 2px rgba(0,0,0,0.12)\",\n \"0px 5px 6px -3px rgba(0,0,0,0.2),0px 9px 12px 1px rgba(0,0,0,0.14),0px 3px 16px 2px rgba(0,0,0,0.12)\",\n \"0px 6px 6px -3px rgba(0,0,0,0.2),0px 10px 14px 1px rgba(0,0,0,0.14),0px 4px 18px 3px rgba(0,0,0,0.12)\",\n \"0px 6px 7px -4px rgba(0,0,0,0.2),0px 11px 15px 1px rgba(0,0,0,0.14),0px 4px 20px 3px rgba(0,0,0,0.12)\",\n \"0px 7px 8px -4px rgba(0,0,0,0.2),0px 12px 17px 2px rgba(0,0,0,0.14),0px 5px 22px 4px rgba(0,0,0,0.12)\",\n \"0px 7px 8px -4px rgba(0,0,0,0.2),0px 13px 19px 2px rgba(0,0,0,0.14),0px 5px 24px 4px rgba(0,0,0,0.12)\",\n \"0px 7px 9px -4px rgba(0,0,0,0.2),0px 14px 21px 2px rgba(0,0,0,0.14),0px 5px 26px 4px rgba(0,0,0,0.12)\",\n \"0px 8px 9px -5px rgba(0,0,0,0.2),0px 15px 22px 2px rgba(0,0,0,0.14),0px 6px 28px 5px rgba(0,0,0,0.12)\",\n \"0px 8px 10px -5px rgba(0,0,0,0.2),0px 16px 24px 2px rgba(0,0,0,0.14),0px 6px 30px 5px rgba(0,0,0,0.12)\",\n \"0px 8px 11px -5px rgba(0,0,0,0.2),0px 17px 26px 2px rgba(0,0,0,0.14),0px 6px 32px 5px rgba(0,0,0,0.12)\",\n \"0px 9px 11px -5px rgba(0,0,0,0.2),0px 18px 28px 2px rgba(0,0,0,0.14),0px 7px 34px 6px rgba(0,0,0,0.12)\",\n \"0px 9px 12px -6px rgba(0,0,0,0.2),0px 19px 29px 2px rgba(0,0,0,0.14),0px 7px 36px 6px rgba(0,0,0,0.12)\",\n \"0px 10px 13px -6px rgba(0,0,0,0.2),0px 20px 31px 3px rgba(0,0,0,0.14),0px 8px 38px 7px rgba(0,0,0,0.12)\",\n \"0px 10px 13px -6px rgba(0,0,0,0.2),0px 21px 33px 3px rgba(0,0,0,0.14),0px 8px 40px 7px rgba(0,0,0,0.12)\",\n \"0px 10px 14px -6px rgba(0,0,0,0.2),0px 22px 35px 3px rgba(0,0,0,0.14),0px 8px 42px 7px rgba(0,0,0,0.12)\",\n \"0px 11px 14px -7px rgba(0,0,0,0.2),0px 23px 36px 3px rgba(0,0,0,0.14),0px 9px 44px 8px rgba(0,0,0,0.12)\",\n \"0px 11px 15px -7px rgba(0,0,0,0.2),0px 24px 38px 3px rgba(0,0,0,0.14),0px 9px 46px 8px rgba(0,0,0,0.12)\",\n]\n\nexport default {\n name: \"light\",\n rtl: false,\n shadow,\n globalStyle: {},\n colors: ThemeColors,\n typography: ThemeTypography,\n interfaces: {}\n} as ThemeOptionInput\n"],
5
- "mappings": "AAEO,MAAMA,EAAoB,CAC7B,KAAM,CACF,QAAS,UACT,UAAW,SACf,EACA,WAAY,CACR,QAAS,UACT,UAAW,SACf,EACA,QAAS,SACb,EAEaC,EAAmB,CAC5B,KAAM,CACF,QAAS,UACT,UAAW,SACf,EACA,WAAY,CACR,QAAS,UACT,UAAW,SACf,EACA,QAAS,SACb,EAEaC,EAAc,CACvB,GAAGF,EACH,MAAO,CACH,QAAS,UACT,UAAW,UACX,KAAM,SACV,EACA,OAAQ,CACJ,QAAS,UACT,UAAW,UACX,KAAM,SACV,EACA,KAAM,CACF,QAAS,UACT,UAAW,UACX,KAAM,SACV,EACA,QAAS,CACL,QAAS,UACT,UAAW,UACX,KAAM,SACV,EACA,QAAS,CACL,QAAS,UACT,UAAW,UACX,KAAM,SACV,EACA,OAAQ,CACJ,QAAS,UACT,UAAW,UACX,KAAM,SACV,CACJ,EAEaG,EAAuC,CAChD,WAAY,yCACZ,GAAI,CACA,SAAU,MACV,WAAY,IACZ,WAAY,GAChB,EACA,GAAI,CACA,SAAU,MACV,WAAY,KACZ,WAAY,GAChB,EACA,GAAI,CACA,SAAU,MACV,WAAY,IACZ,WAAY,GAChB,EACA,GAAI,CACA,SAAU,MACV,WAAY,KACZ,WAAY,GAChB,EACA,GAAI,CACA,SAAU,MACV,WAAY,IACZ,WAAY,GAChB,EACA,GAAI,CACA,SAAU,MACV,WAAY,KACZ,WAAY,GAChB,EACA,KAAM,CACF,SAAU,GACV,WAAY,IACZ,WAAY,GAChB,EACA,OAAQ,CACJ,SAAU,MACV,WAAY,IACZ,WAAY,GAChB,EACA,MAAO,CACH,SAAU,MACV,WAAY,IACZ,WAAY,GAChB,CACJ,EAEaC,EAAS,CAClB,OACA,qGACA,qGACA,qGACA,sGACA,sGACA,uGACA,uGACA,uGACA,uGACA,wGACA,wGACA,wGACA,wGACA,wGACA,wGACA,yGACA,yGACA,yGACA,yGACA,0GACA,0GACA,0GACA,0GACA,yGACJ,EAEA,IAAOC,EAAQ,CACX,KAAM,QACN,IAAK,GACL,OAAAD,EACA,YAAa,CAAC,EACd,OAAQF,EACR,WAAYC,EACZ,WAAY,CAAC,CACjB",
6
- "names": ["lightColorPallete", "darkColorPallete", "ThemeColors", "ThemeTypography", "shadow", "ThemeDefaultOptions_default"]
7
- }
1
+ {"version":3,"file":"ThemeDefaultOptions.js","sources":["../../src/theme/ThemeDefaultOptions.ts"],"sourcesContent":["import { ThemeOptionInput, ThemeTypographyType } from './types'\n\nexport const lightColorPallete = {\n text: {\n primary: \"#212B36\",\n secondary: \"#637381\",\n },\n background: {\n primary: \"#FFFFFF\",\n secondary: \"#EDEFF7\",\n },\n divider: \"#DADCE0\"\n}\n\nexport const darkColorPallete = {\n text: {\n primary: \"#FFFFFF\",\n secondary: \"#C4CDD5\",\n },\n background: {\n primary: \"#272727\",\n secondary: \"#1E1E1E\",\n },\n divider: \"#3D3D3D\"\n}\n\nexport const ThemeColors = {\n ...lightColorPallete,\n brand: {\n primary: \"#3b82f6\",\n secondary: \"#60a5fa\",\n text: \"#FFFFFF\"\n },\n accent: {\n primary: \"#14b8a6\",\n secondary: \"#2dd4bf\",\n text: \"#FFFFFF\"\n },\n info: {\n primary: \"#0ea5e9\",\n secondary: \"#60a5fa\",\n text: \"#FFFFFF\"\n },\n success: {\n primary: \"#22c55e\",\n secondary: \"#4ade80\",\n text: \"#FFFFFF\"\n },\n warning: {\n primary: \"#f59e0b\",\n secondary: \"#fbbf24\",\n text: \"#FFFFFF\"\n },\n danger: {\n primary: \"#ef4444\",\n secondary: \"#f87171\",\n text: \"#FFFFFF\"\n },\n}\n\nexport const ThemeTypography: ThemeTypographyType = {\n fontFamily: '\"Inter\",sans-serif,\"Helvetica\",\"Arial\"',\n h1: {\n fontSize: 47.78,\n lineHeight: 1.3,\n fontWeight: 400,\n },\n h2: {\n fontSize: 39.81,\n lineHeight: 1.35,\n fontWeight: 400,\n },\n h3: {\n fontSize: 33.18,\n lineHeight: 1.4,\n fontWeight: 400,\n },\n h4: {\n fontSize: 27.65,\n lineHeight: 1.45,\n fontWeight: 400,\n },\n h5: {\n fontSize: 27.65,\n lineHeight: 1.5,\n fontWeight: 400,\n },\n h6: {\n fontSize: 23.04,\n lineHeight: 1.55,\n fontWeight: 400,\n },\n text: {\n fontSize: 16,\n lineHeight: 1.6,\n fontWeight: 400,\n },\n button: {\n fontSize: 13.33,\n lineHeight: 1.6,\n fontWeight: 500,\n },\n small: {\n fontSize: 12.33,\n lineHeight: 1.6,\n fontWeight: 400,\n }\n}\n\nexport const shadow = [\n \"none\",\n \"0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12)\",\n \"0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12)\",\n \"0px 3px 3px -2px rgba(0,0,0,0.2),0px 3px 4px 0px rgba(0,0,0,0.14),0px 1px 8px 0px rgba(0,0,0,0.12)\",\n \"0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12)\",\n \"0px 3px 5px -1px rgba(0,0,0,0.2),0px 5px 8px 0px rgba(0,0,0,0.14),0px 1px 14px 0px rgba(0,0,0,0.12)\",\n \"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)\",\n \"0px 4px 5px -2px rgba(0,0,0,0.2),0px 7px 10px 1px rgba(0,0,0,0.14),0px 2px 16px 1px rgba(0,0,0,0.12)\",\n \"0px 5px 5px -3px rgba(0,0,0,0.2),0px 8px 10px 1px rgba(0,0,0,0.14),0px 3px 14px 2px rgba(0,0,0,0.12)\",\n \"0px 5px 6px -3px rgba(0,0,0,0.2),0px 9px 12px 1px rgba(0,0,0,0.14),0px 3px 16px 2px rgba(0,0,0,0.12)\",\n \"0px 6px 6px -3px rgba(0,0,0,0.2),0px 10px 14px 1px rgba(0,0,0,0.14),0px 4px 18px 3px rgba(0,0,0,0.12)\",\n \"0px 6px 7px -4px rgba(0,0,0,0.2),0px 11px 15px 1px rgba(0,0,0,0.14),0px 4px 20px 3px rgba(0,0,0,0.12)\",\n \"0px 7px 8px -4px rgba(0,0,0,0.2),0px 12px 17px 2px rgba(0,0,0,0.14),0px 5px 22px 4px rgba(0,0,0,0.12)\",\n \"0px 7px 8px -4px rgba(0,0,0,0.2),0px 13px 19px 2px rgba(0,0,0,0.14),0px 5px 24px 4px rgba(0,0,0,0.12)\",\n \"0px 7px 9px -4px rgba(0,0,0,0.2),0px 14px 21px 2px rgba(0,0,0,0.14),0px 5px 26px 4px rgba(0,0,0,0.12)\",\n \"0px 8px 9px -5px rgba(0,0,0,0.2),0px 15px 22px 2px rgba(0,0,0,0.14),0px 6px 28px 5px rgba(0,0,0,0.12)\",\n \"0px 8px 10px -5px rgba(0,0,0,0.2),0px 16px 24px 2px rgba(0,0,0,0.14),0px 6px 30px 5px rgba(0,0,0,0.12)\",\n \"0px 8px 11px -5px rgba(0,0,0,0.2),0px 17px 26px 2px rgba(0,0,0,0.14),0px 6px 32px 5px rgba(0,0,0,0.12)\",\n \"0px 9px 11px -5px rgba(0,0,0,0.2),0px 18px 28px 2px rgba(0,0,0,0.14),0px 7px 34px 6px rgba(0,0,0,0.12)\",\n \"0px 9px 12px -6px rgba(0,0,0,0.2),0px 19px 29px 2px rgba(0,0,0,0.14),0px 7px 36px 6px rgba(0,0,0,0.12)\",\n \"0px 10px 13px -6px rgba(0,0,0,0.2),0px 20px 31px 3px rgba(0,0,0,0.14),0px 8px 38px 7px rgba(0,0,0,0.12)\",\n \"0px 10px 13px -6px rgba(0,0,0,0.2),0px 21px 33px 3px rgba(0,0,0,0.14),0px 8px 40px 7px rgba(0,0,0,0.12)\",\n \"0px 10px 14px -6px rgba(0,0,0,0.2),0px 22px 35px 3px rgba(0,0,0,0.14),0px 8px 42px 7px rgba(0,0,0,0.12)\",\n \"0px 11px 14px -7px rgba(0,0,0,0.2),0px 23px 36px 3px rgba(0,0,0,0.14),0px 9px 44px 8px rgba(0,0,0,0.12)\",\n \"0px 11px 15px -7px rgba(0,0,0,0.2),0px 24px 38px 3px rgba(0,0,0,0.14),0px 9px 46px 8px rgba(0,0,0,0.12)\",\n]\n\nexport default {\n name: \"light\",\n rtl: false,\n shadow,\n globalStyle: {},\n colors: ThemeColors,\n typography: ThemeTypography,\n interfaces: {}\n} as ThemeOptionInput\n"],"names":[],"mappings":"sEAEa,MAAA,iBAAiB,GAAG;AAC7B,IAAA,IAAI,EAAE;AACF,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,SAAS,EAAE,SAAS;AACvB,KAAA;AACD,IAAA,UAAU,EAAE;AACR,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,SAAS,EAAE,SAAS;AACvB,KAAA;AACD,IAAA,OAAO,EAAE;;AAGA,MAAA,gBAAgB,GAAG;AAC5B,IAAA,IAAI,EAAE;AACF,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,SAAS,EAAE,SAAS;AACvB,KAAA;AACD,IAAA,UAAU,EAAE;AACR,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,SAAS,EAAE,SAAS;AACvB,KAAA;AACD,IAAA,OAAO,EAAE;;AAGA,MAAA,WAAW,mCACjB,iBAAiB,CAAA,EAAA,EACpB,KAAK,EAAE;AACH,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,SAAS,EAAE,SAAS;AACpB,QAAA,IAAI,EAAE;AACT,KAAA,EACD,MAAM,EAAE;AACJ,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA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