react-minolith 0.0.30 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/README.md +7 -3
  2. package/dist/assets/Minolith.css +1 -1
  3. package/dist/backgrounds/Dot/Dot.d.ts.map +1 -1
  4. package/dist/backgrounds/Dot/Dot.js +18 -8
  5. package/dist/backgrounds/Dot/Dot.js.map +1 -1
  6. package/dist/backgrounds/Gingham/Gingham.d.ts.map +1 -1
  7. package/dist/backgrounds/Gingham/Gingham.js +18 -8
  8. package/dist/backgrounds/Gingham/Gingham.js.map +1 -1
  9. package/dist/backgrounds/Rhombus/Rhombus.d.ts.map +1 -1
  10. package/dist/backgrounds/Rhombus/Rhombus.js +16 -6
  11. package/dist/backgrounds/Rhombus/Rhombus.js.map +1 -1
  12. package/dist/backgrounds/Stripe/Stripe.d.ts.map +1 -1
  13. package/dist/backgrounds/Stripe/Stripe.js +20 -10
  14. package/dist/backgrounds/Stripe/Stripe.js.map +1 -1
  15. package/dist/backgrounds/Zigzag/Zigzag.d.ts.map +1 -1
  16. package/dist/backgrounds/Zigzag/Zigzag.js +20 -10
  17. package/dist/backgrounds/Zigzag/Zigzag.js.map +1 -1
  18. package/dist/base/Minolith/Minolith.d.ts.map +1 -1
  19. package/dist/base/Minolith/Minolith.js +14 -13
  20. package/dist/base/Minolith/Minolith.js.map +1 -1
  21. package/dist/base/Minolith/Minolith.stories.d.ts.map +1 -1
  22. package/dist/base/MinolithStatic/MinolithStatic.d.ts.map +1 -1
  23. package/dist/base/MinolithStatic/MinolithStatic.js +18 -13
  24. package/dist/base/MinolithStatic/MinolithStatic.js.map +1 -1
  25. package/dist/base/MinolithStatic/MinolithStatic.stories.d.ts.map +1 -1
  26. package/dist/base/Tabula/Tabula.d.ts.map +1 -1
  27. package/dist/base/Tabula/Tabula.js +21 -16
  28. package/dist/base/Tabula/Tabula.js.map +1 -1
  29. package/dist/common/models/BaseComponentProps.d.ts +16 -14
  30. package/dist/common/models/BaseComponentProps.d.ts.map +1 -1
  31. package/dist/components/Accordion/Accordion.d.ts.map +1 -1
  32. package/dist/components/Accordion/Accordion.js +21 -11
  33. package/dist/components/Accordion/Accordion.js.map +1 -1
  34. package/dist/components/Accordion/AccordionDetails.d.ts.map +1 -1
  35. package/dist/components/Accordion/AccordionDetails.js +25 -8
  36. package/dist/components/Accordion/AccordionDetails.js.map +1 -1
  37. package/dist/components/Accordion/AccordionSummary.d.ts.map +1 -1
  38. package/dist/components/Accordion/AccordionSummary.js +18 -8
  39. package/dist/components/Accordion/AccordionSummary.js.map +1 -1
  40. package/dist/components/Badge/Badge.d.ts.map +1 -1
  41. package/dist/components/Badge/Badge.js +26 -9
  42. package/dist/components/Badge/Badge.js.map +1 -1
  43. package/dist/components/Blockquote/Blockquote.d.ts.map +1 -1
  44. package/dist/components/Blockquote/Blockquote.js +20 -10
  45. package/dist/components/Blockquote/Blockquote.js.map +1 -1
  46. package/dist/components/Breadcrumbs/Breadcrumb.d.ts.map +1 -1
  47. package/dist/components/Breadcrumbs/Breadcrumb.js +12 -9
  48. package/dist/components/Breadcrumbs/Breadcrumb.js.map +1 -1
  49. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  50. package/dist/components/Breadcrumbs/Breadcrumbs.js +13 -10
  51. package/dist/components/Breadcrumbs/Breadcrumbs.js.map +1 -1
  52. package/dist/components/Breadcrumbs/BreadcrumbsNav.d.ts.map +1 -1
  53. package/dist/components/Breadcrumbs/BreadcrumbsNav.js +14 -10
  54. package/dist/components/Breadcrumbs/BreadcrumbsNav.js.map +1 -1
  55. package/dist/components/Button/Button.d.ts.map +1 -1
  56. package/dist/components/Button/Button.js +10 -8
  57. package/dist/components/Button/Button.js.map +1 -1
  58. package/dist/components/Card/Card.d.ts.map +1 -1
  59. package/dist/components/Card/Card.js +24 -7
  60. package/dist/components/Card/Card.js.map +1 -1
  61. package/dist/components/Card/CardBody.d.ts.map +1 -1
  62. package/dist/components/Card/CardBody.js +24 -7
  63. package/dist/components/Card/CardBody.js.map +1 -1
  64. package/dist/components/Card/CardFooter.d.ts.map +1 -1
  65. package/dist/components/Card/CardFooter.js +25 -8
  66. package/dist/components/Card/CardFooter.js.map +1 -1
  67. package/dist/components/Card/CardHeader.d.ts.map +1 -1
  68. package/dist/components/Card/CardHeader.js +24 -7
  69. package/dist/components/Card/CardHeader.js.map +1 -1
  70. package/dist/components/Dialogue/Dialogue.d.ts.map +1 -1
  71. package/dist/components/Dialogue/Dialogue.js +25 -8
  72. package/dist/components/Dialogue/Dialogue.js.map +1 -1
  73. package/dist/components/Dialogue/DialogueAvatar.d.ts.map +1 -1
  74. package/dist/components/Dialogue/DialogueAvatar.js +25 -8
  75. package/dist/components/Dialogue/DialogueAvatar.js.map +1 -1
  76. package/dist/components/Dialogue/DialogueAvatarContainer.d.ts.map +1 -1
  77. package/dist/components/Dialogue/DialogueAvatarContainer.js +27 -8
  78. package/dist/components/Dialogue/DialogueAvatarContainer.js.map +1 -1
  79. package/dist/components/Dialogue/DialogueContentContainer.d.ts.map +1 -1
  80. package/dist/components/Dialogue/DialogueContentContainer.js +27 -8
  81. package/dist/components/Dialogue/DialogueContentContainer.js.map +1 -1
  82. package/dist/components/Dialogue/DialogueMessage.d.ts.map +1 -1
  83. package/dist/components/Dialogue/DialogueMessage.js +25 -8
  84. package/dist/components/Dialogue/DialogueMessage.js.map +1 -1
  85. package/dist/components/Dialogue/DialogueMessageInner.d.ts.map +1 -1
  86. package/dist/components/Dialogue/DialogueMessageInner.js +25 -8
  87. package/dist/components/Dialogue/DialogueMessageInner.js.map +1 -1
  88. package/dist/components/Dialogue/DialogueName.d.ts.map +1 -1
  89. package/dist/components/Dialogue/DialogueName.js +26 -9
  90. package/dist/components/Dialogue/DialogueName.js.map +1 -1
  91. package/dist/components/Div/Div.d.ts.map +1 -1
  92. package/dist/components/Div/Div.js +19 -9
  93. package/dist/components/Div/Div.js.map +1 -1
  94. package/dist/components/Footer/Footer.d.ts.map +1 -1
  95. package/dist/components/Footer/Footer.js +18 -8
  96. package/dist/components/Footer/Footer.js.map +1 -1
  97. package/dist/components/Hamburger/Hamburger.d.ts.map +1 -1
  98. package/dist/components/Hamburger/Hamburger.js +17 -13
  99. package/dist/components/Hamburger/Hamburger.js.map +1 -1
  100. package/dist/components/Header/Header.d.ts.map +1 -1
  101. package/dist/components/Header/Header.js +19 -9
  102. package/dist/components/Header/Header.js.map +1 -1
  103. package/dist/components/Heading/Heading.d.ts.map +1 -1
  104. package/dist/components/Heading/Heading.js +62 -17
  105. package/dist/components/Heading/Heading.js.map +1 -1
  106. package/dist/components/Input/Input.d.ts.map +1 -1
  107. package/dist/components/Input/Input.js +20 -8
  108. package/dist/components/Input/Input.js.map +1 -1
  109. package/dist/components/Label/Label.d.ts.map +1 -1
  110. package/dist/components/Label/Label.js +18 -8
  111. package/dist/components/Label/Label.js.map +1 -1
  112. package/dist/components/Link/Link.d.ts.map +1 -1
  113. package/dist/components/Link/Link.js +19 -9
  114. package/dist/components/Link/Link.js.map +1 -1
  115. package/dist/components/Loader/Loader.d.ts.map +1 -1
  116. package/dist/components/Loader/Loader.js +19 -9
  117. package/dist/components/Loader/Loader.js.map +1 -1
  118. package/dist/components/Main/Main.d.ts.map +1 -1
  119. package/dist/components/Main/Main.js +14 -4
  120. package/dist/components/Main/Main.js.map +1 -1
  121. package/dist/components/Message/Message.d.ts.map +1 -1
  122. package/dist/components/Message/Message.js +17 -12
  123. package/dist/components/Message/Message.js.map +1 -1
  124. package/dist/components/Message/MessageBody.d.ts.map +1 -1
  125. package/dist/components/Message/MessageBody.js +16 -11
  126. package/dist/components/Message/MessageBody.js.map +1 -1
  127. package/dist/components/Message/MessageHeader.d.ts.map +1 -1
  128. package/dist/components/Message/MessageHeader.js +16 -11
  129. package/dist/components/Message/MessageHeader.js.map +1 -1
  130. package/dist/components/Modal/Modal.d.ts.map +1 -1
  131. package/dist/components/Modal/Modal.js +18 -8
  132. package/dist/components/Modal/Modal.js.map +1 -1
  133. package/dist/components/Modal/ModalContent.d.ts.map +1 -1
  134. package/dist/components/Modal/ModalContent.js +16 -6
  135. package/dist/components/Modal/ModalContent.js.map +1 -1
  136. package/dist/components/Nav/Nav.d.ts.map +1 -1
  137. package/dist/components/Nav/Nav.js +23 -13
  138. package/dist/components/Nav/Nav.js.map +1 -1
  139. package/dist/components/Nav/NavAccordion.d.ts.map +1 -1
  140. package/dist/components/Nav/NavAccordion.js +23 -13
  141. package/dist/components/Nav/NavAccordion.js.map +1 -1
  142. package/dist/components/Nav/NavBrand.d.ts.map +1 -1
  143. package/dist/components/Nav/NavBrand.js +17 -7
  144. package/dist/components/Nav/NavBrand.js.map +1 -1
  145. package/dist/components/Nav/NavBrandCenter.d.ts.map +1 -1
  146. package/dist/components/Nav/NavBrandCenter.js +19 -9
  147. package/dist/components/Nav/NavBrandCenter.js.map +1 -1
  148. package/dist/components/Nav/NavBrandLeft.d.ts.map +1 -1
  149. package/dist/components/Nav/NavBrandLeft.js +18 -8
  150. package/dist/components/Nav/NavBrandLeft.js.map +1 -1
  151. package/dist/components/Nav/NavBrandRight.d.ts.map +1 -1
  152. package/dist/components/Nav/NavBrandRight.js +19 -9
  153. package/dist/components/Nav/NavBrandRight.js.map +1 -1
  154. package/dist/components/Nav/NavMenu.d.ts.map +1 -1
  155. package/dist/components/Nav/NavMenu.js +17 -7
  156. package/dist/components/Nav/NavMenu.js.map +1 -1
  157. package/dist/components/Nav/NavMenuItem.d.ts.map +1 -1
  158. package/dist/components/Nav/NavMenuItem.js +25 -8
  159. package/dist/components/Nav/NavMenuItem.js.map +1 -1
  160. package/dist/components/Nav/NavStatic.d.ts.map +1 -1
  161. package/dist/components/Nav/NavStatic.js +23 -13
  162. package/dist/components/Nav/NavStatic.js.map +1 -1
  163. package/dist/components/Paragraph/Paragraph.d.ts.map +1 -1
  164. package/dist/components/Paragraph/Paragraph.js +12 -9
  165. package/dist/components/Paragraph/Paragraph.js.map +1 -1
  166. package/dist/components/Progress/Progress.d.ts.map +1 -1
  167. package/dist/components/Progress/Progress.js +18 -8
  168. package/dist/components/Progress/Progress.js.map +1 -1
  169. package/dist/components/Ruby/Ruby.d.ts.map +1 -1
  170. package/dist/components/Ruby/Ruby.js +14 -13
  171. package/dist/components/Ruby/Ruby.js.map +1 -1
  172. package/dist/components/Ruby/RubyText.d.ts.map +1 -1
  173. package/dist/components/Ruby/RubyText.js +21 -11
  174. package/dist/components/Ruby/RubyText.js.map +1 -1
  175. package/dist/components/Section/Section.d.ts.map +1 -1
  176. package/dist/components/Section/Section.js +19 -9
  177. package/dist/components/Section/Section.js.map +1 -1
  178. package/dist/components/Span/Span.d.ts.map +1 -1
  179. package/dist/components/Span/Span.js +19 -9
  180. package/dist/components/Span/Span.js.map +1 -1
  181. package/dist/components/Textarea/Textarea.d.ts.map +1 -1
  182. package/dist/components/Textarea/Textarea.js +19 -9
  183. package/dist/components/Textarea/Textarea.js.map +1 -1
  184. package/dist/layouts/Centering/Centering.d.ts.map +1 -1
  185. package/dist/layouts/Centering/Centering.js +20 -10
  186. package/dist/layouts/Centering/Centering.js.map +1 -1
  187. package/dist/layouts/Columns/Column.d.ts.map +1 -1
  188. package/dist/layouts/Columns/Column.js +21 -13
  189. package/dist/layouts/Columns/Column.js.map +1 -1
  190. package/dist/layouts/Columns/Columns.d.ts.map +1 -1
  191. package/dist/layouts/Columns/Columns.js +20 -10
  192. package/dist/layouts/Columns/Columns.js.map +1 -1
  193. package/dist/layouts/Container/Container.d.ts.map +1 -1
  194. package/dist/layouts/Container/Container.js +19 -9
  195. package/dist/layouts/Container/Container.js.map +1 -1
  196. package/dist/react-minolith.d.ts +0 -2
  197. package/dist/react-minolith.d.ts.map +1 -1
  198. package/dist/react-minolith.js +127 -131
  199. package/dist/react-minolith.js.map +1 -1
  200. package/dist/utilities/classNameUtility.d.ts.map +1 -1
  201. package/dist/utilities/classNameUtility.js +83 -164
  202. package/dist/utilities/classNameUtility.js.map +1 -1
  203. package/dist/utilities/minolithStyleUtility/minolithStyleUtility.d.ts +7 -4
  204. package/dist/utilities/minolithStyleUtility/minolithStyleUtility.d.ts.map +1 -1
  205. package/dist/utilities/minolithStyleUtility/minolithStyleUtility.js +684 -476
  206. package/dist/utilities/minolithStyleUtility/minolithStyleUtility.js.map +1 -1
  207. package/package.json +10 -1
  208. package/dist/assets/MinolithCssVariableStylesProvider.css +0 -1
  209. package/dist/base/MinolithCssVariableStylesProvider/MinolithCssVariableStylesProvider.d.ts +0 -3
  210. package/dist/base/MinolithCssVariableStylesProvider/MinolithCssVariableStylesProvider.d.ts.map +0 -1
  211. package/dist/base/MinolithCssVariableStylesProvider/MinolithCssVariableStylesProvider.js +0 -15
  212. package/dist/base/MinolithCssVariableStylesProvider/MinolithCssVariableStylesProvider.js.map +0 -1
  213. package/dist/base/MinolithCssVariableStylesProvider/MinolithCssVariableStylesProviderProps.d.ts +0 -6
  214. package/dist/base/MinolithCssVariableStylesProvider/MinolithCssVariableStylesProviderProps.d.ts.map +0 -1
  215. package/dist/base/MinolithCssVariableStylesProvider/MinolithCssVariableStylesProviderProps.js +0 -2
  216. package/dist/base/MinolithCssVariableStylesProvider/MinolithCssVariableStylesProviderProps.js.map +0 -1
  217. package/dist/base/MinolithCssVariableStylesProvider/index.d.ts +0 -3
  218. package/dist/base/MinolithCssVariableStylesProvider/index.d.ts.map +0 -1
  219. package/dist/base/MinolithCssVariableStylesProvider/index.js +0 -5
  220. package/dist/base/MinolithCssVariableStylesProvider/index.js.map +0 -1
  221. package/dist/base/MinolithCssVariableStylesProviderStatic/MinolithCssVariableStylesProviderStatic.d.ts +0 -3
  222. package/dist/base/MinolithCssVariableStylesProviderStatic/MinolithCssVariableStylesProviderStatic.d.ts.map +0 -1
  223. package/dist/base/MinolithCssVariableStylesProviderStatic/MinolithCssVariableStylesProviderStatic.js +0 -17
  224. package/dist/base/MinolithCssVariableStylesProviderStatic/MinolithCssVariableStylesProviderStatic.js.map +0 -1
  225. package/dist/base/MinolithCssVariableStylesProviderStatic/MinolithCssVariableStylesProviderStaticProps.d.ts +0 -6
  226. package/dist/base/MinolithCssVariableStylesProviderStatic/MinolithCssVariableStylesProviderStaticProps.d.ts.map +0 -1
  227. package/dist/base/MinolithCssVariableStylesProviderStatic/MinolithCssVariableStylesProviderStaticProps.js +0 -2
  228. package/dist/base/MinolithCssVariableStylesProviderStatic/MinolithCssVariableStylesProviderStaticProps.js.map +0 -1
  229. package/dist/base/MinolithCssVariableStylesProviderStatic/index.d.ts +0 -3
  230. package/dist/base/MinolithCssVariableStylesProviderStatic/index.d.ts.map +0 -1
  231. package/dist/base/MinolithCssVariableStylesProviderStatic/index.js +0 -5
  232. package/dist/base/MinolithCssVariableStylesProviderStatic/index.js.map +0 -1
@@ -1,622 +1,830 @@
1
- const d = "minolith-";
2
- function h(t, l, e, i) {
3
- const s = [];
4
- return l && (l.fore && s.push(
5
- `--${d}color-${t}${e ? `-${e}` : ""}${i ? `-${i}` : ""}-fore: ${l.fore.startsWith("--") ? `var(${l.fore});` : `${l.fore};`}`
6
- ), l.back && s.push(
7
- `--${d}color-${t}${e ? `-${e}` : ""}${i ? `-${i}` : ""}-back: ${l.back.startsWith("--") ? `var(${l.back});` : `${l.back};`}`
8
- ), l.border && s.push(
9
- `--${d}color-${t}${e ? `-${e}` : ""}${i ? `-${i}` : ""}-border: ${l.border.startsWith("--") ? `var(${l.border});` : `${l.border};`}`
10
- ), l.shadow && s.push(
11
- `--${d}color-${t}${e ? `-${e}` : ""}${i ? `-${i}` : ""}-shadow: ${l.shadow.startsWith("--") ? `var(${l.shadow});` : `${l.shadow};`}`
12
- ), l.placeholder && s.push(
13
- `--${d}color-${t}${e ? `-${e}` : ""}${i ? `-${i}` : ""}-placeholder: ${l.placeholder.startsWith("--") ? `var(${l.placeholder});` : `${l.placeholder};`}`
14
- )), s;
1
+ import { css as A } from "@emotion/react";
2
+ import { merge as P } from "lodash";
3
+ const o = "minolith-";
4
+ function z(e, a, r, i) {
5
+ const t = [];
6
+ return a && (a.fore && t.push(
7
+ `--${o}color-${e}${r ? `-${r}` : ""}${i ? `-${i}` : ""}-fore: ${a.fore.startsWith("--") ? `var(${a.fore});` : `${a.fore};`}`
8
+ ), a.back && t.push(
9
+ `--${o}color-${e}${r ? `-${r}` : ""}${i ? `-${i}` : ""}-back: ${a.back.startsWith("--") ? `var(${a.back});` : `${a.back};`}`
10
+ ), a.border && t.push(
11
+ `--${o}color-${e}${r ? `-${r}` : ""}${i ? `-${i}` : ""}-border: ${a.border.startsWith("--") ? `var(${a.border});` : `${a.border};`}`
12
+ ), a.shadow && t.push(
13
+ `--${o}color-${e}${r ? `-${r}` : ""}${i ? `-${i}` : ""}-shadow: ${a.shadow.startsWith("--") ? `var(${a.shadow});` : `${a.shadow};`}`
14
+ ), a.placeholder && t.push(
15
+ `--${o}color-${e}${r ? `-${r}` : ""}${i ? `-${i}` : ""}-placeholder: ${a.placeholder.startsWith("--") ? `var(${a.placeholder});` : `${a.placeholder};`}`
16
+ )), t;
15
17
  }
16
- function f(t, l, e) {
18
+ function l(e, a, r) {
17
19
  const i = [];
18
- if (l.default) {
19
- const s = h(
20
- t,
21
- l.default,
20
+ if (a.default) {
21
+ const t = z(
22
+ e,
23
+ a.default,
22
24
  void 0,
23
- e
25
+ r
24
26
  );
25
- s.length > 0 && i.push(...s);
27
+ t.length > 0 && i.push(...t);
26
28
  }
27
- if (l.hover) {
28
- const s = h(
29
- t,
30
- l.hover,
29
+ if (a.hover) {
30
+ const t = z(
31
+ e,
32
+ a.hover,
31
33
  "hover",
32
- e
34
+ r
33
35
  );
34
- s.length > 0 && i.push(...s);
36
+ t.length > 0 && i.push(...t);
35
37
  }
36
- if (l.focus) {
37
- const s = h(
38
- t,
39
- l.focus,
38
+ if (a.focus) {
39
+ const t = z(
40
+ e,
41
+ a.focus,
40
42
  "focus",
41
- e
43
+ r
42
44
  );
43
- s.length > 0 && i.push(...s);
45
+ t.length > 0 && i.push(...t);
44
46
  }
45
- if (l.active) {
46
- const s = h(
47
- t,
48
- l.active,
47
+ if (a.active) {
48
+ const t = z(
49
+ e,
50
+ a.active,
49
51
  "active",
50
- e
52
+ r
51
53
  );
52
- s.length > 0 && i.push(...s);
54
+ t.length > 0 && i.push(...t);
53
55
  }
54
- if (l.disabled) {
55
- const s = h(
56
- t,
57
- l.disabled,
56
+ if (a.disabled) {
57
+ const t = z(
58
+ e,
59
+ a.disabled,
58
60
  "disabled",
59
- e
61
+ r
60
62
  );
61
- s.length > 0 && i.push(...s);
63
+ t.length > 0 && i.push(...t);
62
64
  }
63
65
  return i;
64
66
  }
65
- function r(t, l) {
66
- const e = [];
67
- if (t.default) {
68
- const i = f(
67
+ function n(e, a) {
68
+ const r = [];
69
+ if (e.default) {
70
+ const i = l(
69
71
  "default",
70
- t.default,
71
- l
72
+ e.default,
73
+ a
72
74
  );
73
- i.length > 0 && e.push(...i);
75
+ i.length > 0 && r.push(...i);
74
76
  }
75
- if (t.gray) {
76
- const i = f("gray", t.gray, l);
77
- i.length > 0 && e.push(...i);
77
+ if (e.gray) {
78
+ const i = l("gray", e.gray, a);
79
+ i.length > 0 && r.push(...i);
78
80
  }
79
- if (t.red) {
80
- const i = f("red", t.red, l);
81
- i.length > 0 && e.push(...i);
81
+ if (e.red) {
82
+ const i = l("red", e.red, a);
83
+ i.length > 0 && r.push(...i);
82
84
  }
83
- if (t.coral) {
84
- const i = f("coral", t.coral, l);
85
- i.length > 0 && e.push(...i);
85
+ if (e.coral) {
86
+ const i = l("coral", e.coral, a);
87
+ i.length > 0 && r.push(...i);
86
88
  }
87
- if (t.orange) {
88
- const i = f("orange", t.orange, l);
89
- i.length > 0 && e.push(...i);
89
+ if (e.orange) {
90
+ const i = l("orange", e.orange, a);
91
+ i.length > 0 && r.push(...i);
90
92
  }
91
- if (t.yellow) {
92
- const i = f("yellow", t.yellow, l);
93
- i.length > 0 && e.push(...i);
93
+ if (e.yellow) {
94
+ const i = l("yellow", e.yellow, a);
95
+ i.length > 0 && r.push(...i);
94
96
  }
95
- if (t.lime) {
96
- const i = f("lime", t.lime, l);
97
- i.length > 0 && e.push(...i);
97
+ if (e.lime) {
98
+ const i = l("lime", e.lime, a);
99
+ i.length > 0 && r.push(...i);
98
100
  }
99
- if (t.green) {
100
- const i = f("green", t.green, l);
101
- i.length > 0 && e.push(...i);
101
+ if (e.green) {
102
+ const i = l("green", e.green, a);
103
+ i.length > 0 && r.push(...i);
102
104
  }
103
- if (t.cyan) {
104
- const i = f("cyan", t.cyan, l);
105
- i.length > 0 && e.push(...i);
105
+ if (e.cyan) {
106
+ const i = l("cyan", e.cyan, a);
107
+ i.length > 0 && r.push(...i);
106
108
  }
107
- if (t.blue) {
108
- const i = f("blue", t.blue, l);
109
- i.length > 0 && e.push(...i);
109
+ if (e.blue) {
110
+ const i = l("blue", e.blue, a);
111
+ i.length > 0 && r.push(...i);
110
112
  }
111
- if (t.violet) {
112
- const i = f("violet", t.violet, l);
113
- i.length > 0 && e.push(...i);
113
+ if (e.violet) {
114
+ const i = l("violet", e.violet, a);
115
+ i.length > 0 && r.push(...i);
114
116
  }
115
- if (t.magenta) {
116
- const i = f(
117
+ if (e.magenta) {
118
+ const i = l(
117
119
  "magenta",
118
- t.magenta,
119
- l
120
+ e.magenta,
121
+ a
120
122
  );
121
- i.length > 0 && e.push(...i);
123
+ i.length > 0 && r.push(...i);
122
124
  }
123
- return e;
125
+ return r;
124
126
  }
125
- function n(t) {
126
- const l = [];
127
- if (t.badge) {
128
- const e = r(
129
- t.badge,
127
+ function F(e) {
128
+ const a = [];
129
+ if (e.badge) {
130
+ const r = n(
131
+ e.badge,
130
132
  "badge"
131
133
  );
132
- e.length > 0 && l.push(...e);
134
+ r.length > 0 && a.push(...r);
133
135
  }
134
- if (t.accordion) {
135
- const e = r(
136
- t.accordion,
136
+ if (e.accordion) {
137
+ const r = n(
138
+ e.accordion,
137
139
  "accordion"
138
140
  );
139
- if (e.length > 0 && l.push(...e), t.accordion.accordionSummary) {
140
- const i = r(
141
- t.accordion.accordionSummary,
141
+ if (r.length > 0 && a.push(...r), e.accordion.accordionSummary) {
142
+ const i = n(
143
+ e.accordion.accordionSummary,
142
144
  "accordion-summary"
143
145
  );
144
- i.length > 0 && l.push(...i);
146
+ i.length > 0 && a.push(...i);
145
147
  }
146
- if (t.accordion.accordionDetails) {
147
- const i = r(
148
- t.accordion.accordionDetails,
148
+ if (e.accordion.accordionDetails) {
149
+ const i = n(
150
+ e.accordion.accordionDetails,
149
151
  "accordion-details"
150
152
  );
151
- i.length > 0 && l.push(...i);
153
+ i.length > 0 && a.push(...i);
152
154
  }
153
155
  }
154
- if (t.button) {
155
- const e = r(
156
- t.button,
156
+ if (e.button) {
157
+ const r = n(
158
+ e.button,
157
159
  "button"
158
160
  );
159
- e.length > 0 && l.push(...e);
161
+ r.length > 0 && a.push(...r);
160
162
  }
161
- if (t.card) {
162
- const e = r(t.card, "card");
163
- if (e.length > 0 && l.push(...e), t.card.cardHeader) {
164
- const i = r(
165
- t.card.cardHeader,
163
+ if (e.card) {
164
+ const r = n(e.card, "card");
165
+ if (r.length > 0 && a.push(...r), e.card.cardHeader) {
166
+ const i = n(
167
+ e.card.cardHeader,
166
168
  "card-header"
167
169
  );
168
- i.length > 0 && l.push(...i);
170
+ i.length > 0 && a.push(...i);
169
171
  }
170
- if (t.card.cardBody) {
171
- const i = r(
172
- t.card.cardBody,
172
+ if (e.card.cardBody) {
173
+ const i = n(
174
+ e.card.cardBody,
173
175
  "card-body"
174
176
  );
175
- i.length > 0 && l.push(...i);
177
+ i.length > 0 && a.push(...i);
176
178
  }
177
- if (t.card.cardFooter) {
178
- const i = r(
179
- t.card.cardFooter,
179
+ if (e.card.cardFooter) {
180
+ const i = n(
181
+ e.card.cardFooter,
180
182
  "card-footer"
181
183
  );
182
- i.length > 0 && l.push(...i);
184
+ i.length > 0 && a.push(...i);
183
185
  }
184
186
  }
185
- if (t.dialogue) {
186
- const e = r(
187
- t.dialogue,
187
+ if (e.dialogue) {
188
+ const r = n(
189
+ e.dialogue,
188
190
  "dialogue"
189
191
  );
190
- if (e.length > 0 && l.push(...e), t.dialogue.dialogueAvatar) {
191
- const i = r(
192
- t.dialogue.dialogueAvatar,
192
+ if (r.length > 0 && a.push(...r), e.dialogue.dialogueAvatar) {
193
+ const i = n(
194
+ e.dialogue.dialogueAvatar,
193
195
  "dialogue-avatar"
194
196
  );
195
- i.length > 0 && l.push(...i);
197
+ i.length > 0 && a.push(...i);
196
198
  }
197
- if (t.dialogue.dialogueName) {
198
- const i = r(
199
- t.dialogue.dialogueName,
199
+ if (e.dialogue.dialogueName) {
200
+ const i = n(
201
+ e.dialogue.dialogueName,
200
202
  "dialogue-name"
201
203
  );
202
- i.length > 0 && l.push(...i);
204
+ i.length > 0 && a.push(...i);
203
205
  }
204
- if (t.dialogue.dialogueMessage) {
205
- const i = r(
206
- t.dialogue.dialogueMessage,
206
+ if (e.dialogue.dialogueMessage) {
207
+ const i = n(
208
+ e.dialogue.dialogueMessage,
207
209
  "dialogue-message"
208
210
  );
209
- i.length > 0 && l.push(...i);
211
+ i.length > 0 && a.push(...i);
210
212
  }
211
213
  }
212
- if (t.header) {
213
- const e = r(
214
- t.header,
214
+ if (e.header) {
215
+ const r = n(
216
+ e.header,
215
217
  "header"
216
218
  );
217
- e.length > 0 && l.push(...e);
219
+ r.length > 0 && a.push(...r);
218
220
  }
219
- if (t.label) {
220
- const e = r(
221
- t.label,
221
+ if (e.label) {
222
+ const r = n(
223
+ e.label,
222
224
  "label"
223
225
  );
224
- e.length > 0 && l.push(...e);
226
+ r.length > 0 && a.push(...r);
225
227
  }
226
- if (t.link) {
227
- const e = r(t.link, "link");
228
- e.length > 0 && l.push(...e);
228
+ if (e.link) {
229
+ const r = n(e.link, "link");
230
+ r.length > 0 && a.push(...r);
229
231
  }
230
- if (t.loader) {
231
- const e = r(
232
- t.loader,
232
+ if (e.loader) {
233
+ const r = n(
234
+ e.loader,
233
235
  "loader"
234
236
  );
235
- e.length > 0 && l.push(...e);
237
+ r.length > 0 && a.push(...r);
236
238
  }
237
- if (t.message) {
238
- const e = r(
239
- t.message,
239
+ if (e.message) {
240
+ const r = n(
241
+ e.message,
240
242
  "message"
241
243
  );
242
- if (e.length > 0 && l.push(...e), t.message.messageHeader) {
243
- const i = r(
244
- t.message.messageHeader,
244
+ if (r.length > 0 && a.push(...r), e.message.messageHeader) {
245
+ const i = n(
246
+ e.message.messageHeader,
245
247
  "message-header"
246
248
  );
247
- i.length > 0 && l.push(...i);
249
+ i.length > 0 && a.push(...i);
248
250
  }
249
- if (t.message.messageBody) {
250
- const i = r(
251
- t.message.messageBody,
251
+ if (e.message.messageBody) {
252
+ const i = n(
253
+ e.message.messageBody,
252
254
  "message-body"
253
255
  );
254
- i.length > 0 && l.push(...i);
256
+ i.length > 0 && a.push(...i);
255
257
  }
256
258
  }
257
- if (t.progress) {
258
- const e = r(
259
- t.progress,
259
+ if (e.progress) {
260
+ const r = n(
261
+ e.progress,
260
262
  "progress"
261
263
  );
262
- e.length > 0 && l.push(...e);
264
+ r.length > 0 && a.push(...r);
263
265
  }
264
- return l;
266
+ return a;
265
267
  }
266
- function c(t) {
267
- const l = [], e = o(t), i = $(t), s = y(t);
268
- return e.length > 0 && l.push(`:root{${e.join("")}}`), i.length > 0 && l.push(`:root{${i.join("")}}`), i.length > 0 && l.push(
268
+ function V(e) {
269
+ const a = [], r = I(e), i = C(e), t = N(e);
270
+ return r.length > 0 && a.push(`:root{${r.join("")}}`), i.length > 0 && a.push(`:root{${i.join("")}}`), i.length > 0 && a.push(
269
271
  `[data-color-scheme="light"]{${i.join("")}}`
270
- ), s.length > 0 && l.push(
271
- `[data-color-scheme="dark"]{${s.join("")}}`
272
- ), l;
272
+ ), t.length > 0 && a.push(
273
+ `[data-color-scheme="dark"]{${t.join("")}}`
274
+ ), a;
273
275
  }
274
- function o(t) {
275
- const l = [];
276
- if (t) {
277
- if (t.animation) {
278
- const e = t.animation;
279
- e.speedHeavey && l.push(
280
- `--${d}animation-speed-heavy: ${e.speedHeavey};`
281
- ), e.speedSlower && l.push(
282
- `--${d}animation-speed-slower: ${e.speedSlower};`
283
- ), e.speedSlow && l.push(
284
- `--${d}animation-speed-slow: ${e.speedSlow};`
285
- ), e.speedNormal && l.push(
286
- `--${d}animation-speed-normal: ${e.speedNormal};`
287
- ), e.speedfFast && l.push(
288
- `--${d}animation-speed-fast: ${e.speedfFast};`
289
- ), e.speedfFaster && l.push(
290
- `--${d}animation-speed-faster: ${e.speedfFaster};`
291
- ), e.speedfFlash && l.push(
292
- `--${d}animation-speed-flash: ${e.speedfFlash};`
276
+ function I(e) {
277
+ const a = [];
278
+ if (e) {
279
+ if (e.animation) {
280
+ const r = e.animation;
281
+ r.speedHeavey && a.push(
282
+ `--${o}animation-speed-heavy: ${r.speedHeavey};`
283
+ ), r.speedSlower && a.push(
284
+ `--${o}animation-speed-slower: ${r.speedSlower};`
285
+ ), r.speedSlow && a.push(
286
+ `--${o}animation-speed-slow: ${r.speedSlow};`
287
+ ), r.speedNormal && a.push(
288
+ `--${o}animation-speed-normal: ${r.speedNormal};`
289
+ ), r.speedfFast && a.push(
290
+ `--${o}animation-speed-fast: ${r.speedfFast};`
291
+ ), r.speedfFaster && a.push(
292
+ `--${o}animation-speed-faster: ${r.speedfFaster};`
293
+ ), r.speedfFlash && a.push(
294
+ `--${o}animation-speed-flash: ${r.speedfFlash};`
293
295
  );
294
296
  }
295
- if (t.border) {
296
- const e = t.border;
297
- e.borderWidthXThin && l.push(
298
- `--${d}border-width-xthin: ${e.borderWidthXThin};`
299
- ), e.borderWidthThin && l.push(
300
- `--${d}border-width-thin: ${e.borderWidthThin};`
301
- ), e.borderWidthMedium && l.push(
302
- `--${d}border-width-medium: ${e.borderWidthMedium};`
303
- ), e.borderWidthThick && l.push(
304
- `--${d}border-width-thick: ${e.borderWidthThick};`
305
- ), e.borderWidthXThick && l.push(
306
- `--${d}border-width-xthick: ${e.borderWidthXThick};`
307
- ), e.borderRadiusSmall && l.push(
308
- `--${d}border-radius-small: ${e.borderRadiusSmall};`
309
- ), e.borderRadiusMedium && l.push(
310
- `--${d}border-radius-medium: ${e.borderRadiusMedium};`
311
- ), e.borderRadiusLarge && l.push(
312
- `--${d}border-radius-large: ${e.borderRadiusLarge};`
297
+ if (e.border) {
298
+ const r = e.border;
299
+ r.borderWidthXThin && a.push(
300
+ `--${o}border-width-xthin: ${r.borderWidthXThin};`
301
+ ), r.borderWidthThin && a.push(
302
+ `--${o}border-width-thin: ${r.borderWidthThin};`
303
+ ), r.borderWidthMedium && a.push(
304
+ `--${o}border-width-medium: ${r.borderWidthMedium};`
305
+ ), r.borderWidthThick && a.push(
306
+ `--${o}border-width-thick: ${r.borderWidthThick};`
307
+ ), r.borderWidthXThick && a.push(
308
+ `--${o}border-width-xthick: ${r.borderWidthXThick};`
309
+ ), r.borderRadiusSmall && a.push(
310
+ `--${o}border-radius-small: ${r.borderRadiusSmall};`
311
+ ), r.borderRadiusMedium && a.push(
312
+ `--${o}border-radius-medium: ${r.borderRadiusMedium};`
313
+ ), r.borderRadiusLarge && a.push(
314
+ `--${o}border-radius-large: ${r.borderRadiusLarge};`
313
315
  );
314
316
  }
315
- if (t.color) {
316
- const e = t.color, i = (s, a, g) => {
317
- if (g) {
318
- const u = `${g.lightness}% ${g.chroma} ${g.hue}`;
319
- l.push(
320
- `--${d}color-${s}-${a}-oklch: ${u};`
321
- ), l.push(
322
- `--${d}color-${s}-${a}: oklch(${u});`
317
+ if (e.color) {
318
+ const r = e.color, i = (t, d, f) => {
319
+ if (f) {
320
+ const s = `${f.lightness}% ${f.chroma} ${f.hue}`;
321
+ a.push(
322
+ `--${o}color-${t}-${d}-oklch: ${s};`
323
+ ), a.push(
324
+ `--${o}color-${t}-${d}: oklch(${s});`
323
325
  );
324
326
  }
325
327
  };
326
- if (e.gray) {
327
- const s = e.gray, a = "gray";
328
- i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
328
+ if (r.gray) {
329
+ const t = r.gray, d = "gray";
330
+ i(d, "95", t[95]), i(d, "90", t[90]), i(d, "85", t[85]), i(d, "80", t[80]), i(d, "75", t[75]), i(d, "70", t[70]), i(d, "65", t[65]), i(d, "60", t[60]), i(d, "55", t[55]), i(d, "50", t[50]), i(d, "45", t[45]), i(d, "40", t[40]), i(d, "35", t[35]), i(d, "30", t[30]), i(d, "25", t[25]), i(d, "20", t[20]), i(d, "15", t[15]), i(d, "10", t[10]), i(d, "05", t[5]);
329
331
  }
330
- if (e.red) {
331
- const s = e.red, a = "red";
332
- i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
332
+ if (r.red) {
333
+ const t = r.red, d = "red";
334
+ i(d, "95", t[95]), i(d, "90", t[90]), i(d, "85", t[85]), i(d, "80", t[80]), i(d, "75", t[75]), i(d, "70", t[70]), i(d, "65", t[65]), i(d, "60", t[60]), i(d, "55", t[55]), i(d, "50", t[50]), i(d, "45", t[45]), i(d, "40", t[40]), i(d, "35", t[35]), i(d, "30", t[30]), i(d, "25", t[25]), i(d, "20", t[20]), i(d, "15", t[15]), i(d, "10", t[10]), i(d, "05", t[5]);
333
335
  }
334
- if (e.coral) {
335
- const s = e.coral, a = "coral";
336
- i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
336
+ if (r.coral) {
337
+ const t = r.coral, d = "coral";
338
+ i(d, "95", t[95]), i(d, "90", t[90]), i(d, "85", t[85]), i(d, "80", t[80]), i(d, "75", t[75]), i(d, "70", t[70]), i(d, "65", t[65]), i(d, "60", t[60]), i(d, "55", t[55]), i(d, "50", t[50]), i(d, "45", t[45]), i(d, "40", t[40]), i(d, "35", t[35]), i(d, "30", t[30]), i(d, "25", t[25]), i(d, "20", t[20]), i(d, "15", t[15]), i(d, "10", t[10]), i(d, "05", t[5]);
337
339
  }
338
- if (e.orange) {
339
- const s = e.orange, a = "orange";
340
- i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
340
+ if (r.orange) {
341
+ const t = r.orange, d = "orange";
342
+ i(d, "95", t[95]), i(d, "90", t[90]), i(d, "85", t[85]), i(d, "80", t[80]), i(d, "75", t[75]), i(d, "70", t[70]), i(d, "65", t[65]), i(d, "60", t[60]), i(d, "55", t[55]), i(d, "50", t[50]), i(d, "45", t[45]), i(d, "40", t[40]), i(d, "35", t[35]), i(d, "30", t[30]), i(d, "25", t[25]), i(d, "20", t[20]), i(d, "15", t[15]), i(d, "10", t[10]), i(d, "05", t[5]);
341
343
  }
342
- if (e.yellow) {
343
- const s = e.yellow, a = "yellow";
344
- i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
344
+ if (r.yellow) {
345
+ const t = r.yellow, d = "yellow";
346
+ i(d, "95", t[95]), i(d, "90", t[90]), i(d, "85", t[85]), i(d, "80", t[80]), i(d, "75", t[75]), i(d, "70", t[70]), i(d, "65", t[65]), i(d, "60", t[60]), i(d, "55", t[55]), i(d, "50", t[50]), i(d, "45", t[45]), i(d, "40", t[40]), i(d, "35", t[35]), i(d, "30", t[30]), i(d, "25", t[25]), i(d, "20", t[20]), i(d, "15", t[15]), i(d, "10", t[10]), i(d, "05", t[5]);
345
347
  }
346
- if (e.lime) {
347
- const s = e.lime, a = "lime";
348
- i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
348
+ if (r.lime) {
349
+ const t = r.lime, d = "lime";
350
+ i(d, "95", t[95]), i(d, "90", t[90]), i(d, "85", t[85]), i(d, "80", t[80]), i(d, "75", t[75]), i(d, "70", t[70]), i(d, "65", t[65]), i(d, "60", t[60]), i(d, "55", t[55]), i(d, "50", t[50]), i(d, "45", t[45]), i(d, "40", t[40]), i(d, "35", t[35]), i(d, "30", t[30]), i(d, "25", t[25]), i(d, "20", t[20]), i(d, "15", t[15]), i(d, "10", t[10]), i(d, "05", t[5]);
349
351
  }
350
- if (e.green) {
351
- const s = e.green, a = "green";
352
- i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
352
+ if (r.green) {
353
+ const t = r.green, d = "green";
354
+ i(d, "95", t[95]), i(d, "90", t[90]), i(d, "85", t[85]), i(d, "80", t[80]), i(d, "75", t[75]), i(d, "70", t[70]), i(d, "65", t[65]), i(d, "60", t[60]), i(d, "55", t[55]), i(d, "50", t[50]), i(d, "45", t[45]), i(d, "40", t[40]), i(d, "35", t[35]), i(d, "30", t[30]), i(d, "25", t[25]), i(d, "20", t[20]), i(d, "15", t[15]), i(d, "10", t[10]), i(d, "05", t[5]);
353
355
  }
354
- if (e.cyan) {
355
- const s = e.cyan, a = "cyan";
356
- i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
356
+ if (r.cyan) {
357
+ const t = r.cyan, d = "cyan";
358
+ i(d, "95", t[95]), i(d, "90", t[90]), i(d, "85", t[85]), i(d, "80", t[80]), i(d, "75", t[75]), i(d, "70", t[70]), i(d, "65", t[65]), i(d, "60", t[60]), i(d, "55", t[55]), i(d, "50", t[50]), i(d, "45", t[45]), i(d, "40", t[40]), i(d, "35", t[35]), i(d, "30", t[30]), i(d, "25", t[25]), i(d, "20", t[20]), i(d, "15", t[15]), i(d, "10", t[10]), i(d, "05", t[5]);
357
359
  }
358
- if (e.blue) {
359
- const s = e.blue, a = "blue";
360
- i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
360
+ if (r.blue) {
361
+ const t = r.blue, d = "blue";
362
+ i(d, "95", t[95]), i(d, "90", t[90]), i(d, "85", t[85]), i(d, "80", t[80]), i(d, "75", t[75]), i(d, "70", t[70]), i(d, "65", t[65]), i(d, "60", t[60]), i(d, "55", t[55]), i(d, "50", t[50]), i(d, "45", t[45]), i(d, "40", t[40]), i(d, "35", t[35]), i(d, "30", t[30]), i(d, "25", t[25]), i(d, "20", t[20]), i(d, "15", t[15]), i(d, "10", t[10]), i(d, "05", t[5]);
361
363
  }
362
- if (e.violet) {
363
- const s = e.violet, a = "violet";
364
- i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
364
+ if (r.violet) {
365
+ const t = r.violet, d = "violet";
366
+ i(d, "95", t[95]), i(d, "90", t[90]), i(d, "85", t[85]), i(d, "80", t[80]), i(d, "75", t[75]), i(d, "70", t[70]), i(d, "65", t[65]), i(d, "60", t[60]), i(d, "55", t[55]), i(d, "50", t[50]), i(d, "45", t[45]), i(d, "40", t[40]), i(d, "35", t[35]), i(d, "30", t[30]), i(d, "25", t[25]), i(d, "20", t[20]), i(d, "15", t[15]), i(d, "10", t[10]), i(d, "05", t[5]);
365
367
  }
366
- if (e.magenta) {
367
- const s = e.magenta, a = "magenta";
368
- i(a, "95", s[95]), i(a, "90", s[90]), i(a, "85", s[85]), i(a, "80", s[80]), i(a, "75", s[75]), i(a, "70", s[70]), i(a, "65", s[65]), i(a, "60", s[60]), i(a, "55", s[55]), i(a, "50", s[50]), i(a, "45", s[45]), i(a, "40", s[40]), i(a, "35", s[35]), i(a, "30", s[30]), i(a, "25", s[25]), i(a, "20", s[20]), i(a, "15", s[15]), i(a, "10", s[10]), i(a, "05", s[5]);
368
+ if (r.magenta) {
369
+ const t = r.magenta, d = "magenta";
370
+ i(d, "95", t[95]), i(d, "90", t[90]), i(d, "85", t[85]), i(d, "80", t[80]), i(d, "75", t[75]), i(d, "70", t[70]), i(d, "65", t[65]), i(d, "60", t[60]), i(d, "55", t[55]), i(d, "50", t[50]), i(d, "45", t[45]), i(d, "40", t[40]), i(d, "35", t[35]), i(d, "30", t[30]), i(d, "25", t[25]), i(d, "20", t[20]), i(d, "15", t[15]), i(d, "10", t[10]), i(d, "05", t[5]);
369
371
  }
370
372
  }
371
- if (t.miscellaneous) {
372
- const e = t.miscellaneous;
373
- e.zIndexTabula && l.push(
374
- `--${d}z-index-tabula: ${e.zIndexTabula};`
375
- ), e.zIndexModal && l.push(
376
- `--${d}z-index-modal: ${e.zIndexModal};`
377
- ), e.zIndexModalContent && l.push(
378
- `--${d}z-index-tabula-content: ${e.zIndexModalContent};`
379
- ), e.zIndexHeaderIsSticky && l.push(
380
- `--${d}z-index-header-is-sticky: ${e.zIndexHeaderIsSticky};`
373
+ if (e.miscellaneous) {
374
+ const r = e.miscellaneous;
375
+ r.zIndexTabula && a.push(
376
+ `--${o}z-index-tabula: ${r.zIndexTabula};`
377
+ ), r.zIndexModal && a.push(
378
+ `--${o}z-index-modal: ${r.zIndexModal};`
379
+ ), r.zIndexModalContent && a.push(
380
+ `--${o}z-index-tabula-content: ${r.zIndexModalContent};`
381
+ ), r.zIndexHeaderIsSticky && a.push(
382
+ `--${o}z-index-header-is-sticky: ${r.zIndexHeaderIsSticky};`
381
383
  );
382
384
  }
383
- if (t.typography) {
384
- const e = t.typography;
385
- e.fontFamily && (e.fontFamily.sansSerif && l.push(
386
- `--${d}font-family-sans-serif: ${e.fontFamily.sansSerif};`
387
- ), e.fontFamily.serif && l.push(
388
- `--${d}font-family-serif: ${e.fontFamily.serif};`
389
- ), e.fontFamily.monospace && l.push(
390
- `--${d}font-family-monospace: ${e.fontFamily.monospace};`
391
- ), e.fontFamily.main && l.push(
392
- `--${d}font-family-main: ${e.fontFamily.main};`
393
- ), e.fontFamily.heading && l.push(
394
- `--${d}font-family-heading: ${e.fontFamily.heading};`
395
- ), e.fontFamily.code && l.push(
396
- `--${d}font-family-code: ${e.fontFamily.code};`
397
- )), e.fontSize && (e.fontSize.xsmall && l.push(
398
- `--${d}font-size-xsmall: ${e.fontSize.xsmall};`
399
- ), e.fontSize.small && l.push(
400
- `--${d}font-size-small: ${e.fontSize.small};`
401
- ), e.fontSize.normal && l.push(
402
- `--${d}font-size-normal: ${e.fontSize.normal};`
403
- ), e.fontSize.medium && l.push(
404
- `--${d}font-size-medium: ${e.fontSize.medium};`
405
- ), e.fontSize.large && l.push(
406
- `--${d}font-size-large: ${e.fontSize.large};`
407
- ), e.fontSize.xlarge && l.push(
408
- `--${d}font-size-xlarge: ${e.fontSize.xlarge};`
409
- ), e.fontSize.xxlarge && l.push(
410
- `--${d}font-size-xxlarge: ${e.fontSize.xxlarge};`
411
- ), e.fontSize.xxxlarge && l.push(
412
- `--${d}font-size-xxxlarge: ${e.fontSize.xxxlarge};`
413
- ), e.fontSize.xxxxlarge && l.push(
414
- `--${d}font-size-xxxxlarge: ${e.fontSize.xxxxlarge};`
415
- ), e.fontSize.xxxxxlarge && l.push(
416
- `--${d}font-size-xxxxxlarge: ${e.fontSize.xxxxxlarge};`
417
- )), e.fontWeight && (e.fontWeight.light && l.push(
418
- `--${d}font-weight-light: ${e.fontWeight.light};`
419
- ), e.fontWeight.normal && l.push(
420
- `--${d}font-weight-normal: ${e.fontWeight.normal};`
421
- ), e.fontWeight.medium && l.push(
422
- `--${d}font-weight-medium: ${e.fontWeight.medium};`
423
- ), e.fontWeight.semibold && l.push(
424
- `--${d}font-weight-semibold: ${e.fontWeight.semibold};`
425
- ), e.fontWeight.bold && l.push(
426
- `--${d}font-weight-bold: ${e.fontWeight.bold};`
385
+ if (e.typography) {
386
+ const r = e.typography;
387
+ r.fontFamily && (r.fontFamily.sansSerif && a.push(
388
+ `--${o}font-family-sans-serif: ${r.fontFamily.sansSerif};`
389
+ ), r.fontFamily.serif && a.push(
390
+ `--${o}font-family-serif: ${r.fontFamily.serif};`
391
+ ), r.fontFamily.monospace && a.push(
392
+ `--${o}font-family-monospace: ${r.fontFamily.monospace};`
393
+ ), r.fontFamily.main && a.push(
394
+ `--${o}font-family-main: ${r.fontFamily.main};`
395
+ ), r.fontFamily.heading && a.push(
396
+ `--${o}font-family-heading: ${r.fontFamily.heading};`
397
+ ), r.fontFamily.code && a.push(
398
+ `--${o}font-family-code: ${r.fontFamily.code};`
399
+ )), r.fontSize && (r.fontSize.xsmall && a.push(
400
+ `--${o}font-size-xsmall: ${r.fontSize.xsmall};`
401
+ ), r.fontSize.small && a.push(
402
+ `--${o}font-size-small: ${r.fontSize.small};`
403
+ ), r.fontSize.normal && a.push(
404
+ `--${o}font-size-normal: ${r.fontSize.normal};`
405
+ ), r.fontSize.medium && a.push(
406
+ `--${o}font-size-medium: ${r.fontSize.medium};`
407
+ ), r.fontSize.large && a.push(
408
+ `--${o}font-size-large: ${r.fontSize.large};`
409
+ ), r.fontSize.xlarge && a.push(
410
+ `--${o}font-size-xlarge: ${r.fontSize.xlarge};`
411
+ ), r.fontSize.xxlarge && a.push(
412
+ `--${o}font-size-xxlarge: ${r.fontSize.xxlarge};`
413
+ ), r.fontSize.xxxlarge && a.push(
414
+ `--${o}font-size-xxxlarge: ${r.fontSize.xxxlarge};`
415
+ ), r.fontSize.xxxxlarge && a.push(
416
+ `--${o}font-size-xxxxlarge: ${r.fontSize.xxxxlarge};`
417
+ ), r.fontSize.xxxxxlarge && a.push(
418
+ `--${o}font-size-xxxxxlarge: ${r.fontSize.xxxxxlarge};`
419
+ )), r.fontWeight && (r.fontWeight.light && a.push(
420
+ `--${o}font-weight-light: ${r.fontWeight.light};`
421
+ ), r.fontWeight.normal && a.push(
422
+ `--${o}font-weight-normal: ${r.fontWeight.normal};`
423
+ ), r.fontWeight.medium && a.push(
424
+ `--${o}font-weight-medium: ${r.fontWeight.medium};`
425
+ ), r.fontWeight.semibold && a.push(
426
+ `--${o}font-weight-semibold: ${r.fontWeight.semibold};`
427
+ ), r.fontWeight.bold && a.push(
428
+ `--${o}font-weight-bold: ${r.fontWeight.bold};`
427
429
  ));
428
430
  }
429
- if (t.components) {
430
- const e = t.components;
431
- if (e.breadcrumbs) {
432
- const i = e.breadcrumbs;
433
- i.breadcrumbDivider && l.push(
434
- `--${d}breadcrumb-divider: ${i.breadcrumbDivider};`
431
+ if (e.components) {
432
+ const r = e.components;
433
+ if (r.breadcrumbs) {
434
+ const i = r.breadcrumbs;
435
+ i.breadcrumbDivider && a.push(
436
+ `--${o}breadcrumb-divider: ${i.breadcrumbDivider};`
435
437
  );
436
438
  }
437
- if (e.button) {
438
- const i = e.button;
439
- i.paddingX && l.push(
440
- `--${d}button-padding-x: ${i.paddingX};`
441
- ), i.paddingY && l.push(
442
- `--${d}button-padding-y: ${i.paddingY};`
439
+ if (r.button) {
440
+ const i = r.button;
441
+ i.paddingX && a.push(
442
+ `--${o}button-padding-x: ${i.paddingX};`
443
+ ), i.paddingY && a.push(
444
+ `--${o}button-padding-y: ${i.paddingY};`
443
445
  );
444
446
  }
445
- if (e.dialogue) {
446
- const i = e.dialogue;
447
- i.avatarSizeDefault && l.push(
448
- `--${d}dialogue-avatar-size-default: ${i.avatarSizeDefault};`
449
- ), i.avatarSizeSmall && l.push(
450
- `--${d}dialogue-avatar-size-small: ${i.avatarSizeSmall};`
451
- ), i.avatarSizeLarge && l.push(
452
- `--${d}dialogue-avatar-size-large: ${i.avatarSizeLarge};`
453
- ), i.avatarTopOffset && l.push(
454
- `--${d}dialogue-avatar-top-offset: ${i.avatarTopOffset};`
455
- ), i.nameFontSize && (i.nameFontSize.includes("rem"), l.push(
456
- `--${d}dialogue-name-font-size: ${i.nameFontSize};`
457
- )), i.namePaddingX && l.push(
458
- `--${d}dialogue-name-padding-x: ${i.namePaddingX};`
459
- ), i.namePaddingY && l.push(
460
- `--${d}dialogue-name-padding-y: ${i.namePaddingY};`
461
- ), i.messageArrowHeight && l.push(
462
- `--${d}dialogue-messege-arrow-height: ${i.messageArrowHeight};`
463
- ), i.messageArrowWidth && l.push(
464
- `--${d}dialogue-messege-arrow-width: ${i.messageArrowWidth};`
465
- ), i.messageInnerPaddingX && l.push(
466
- `--${d}dialogue-message-inner-padding-x: ${i.messageInnerPaddingX};`
467
- ), i.messageInnerPaddingY && l.push(
468
- `--${d}dialogue-message-inner-padding-y: ${i.messageInnerPaddingY};`
447
+ if (r.dialogue) {
448
+ const i = r.dialogue;
449
+ i.avatarSizeDefault && a.push(
450
+ `--${o}dialogue-avatar-size-default: ${i.avatarSizeDefault};`
451
+ ), i.avatarSizeSmall && a.push(
452
+ `--${o}dialogue-avatar-size-small: ${i.avatarSizeSmall};`
453
+ ), i.avatarSizeLarge && a.push(
454
+ `--${o}dialogue-avatar-size-large: ${i.avatarSizeLarge};`
455
+ ), i.avatarTopOffset && a.push(
456
+ `--${o}dialogue-avatar-top-offset: ${i.avatarTopOffset};`
457
+ ), i.nameFontSize && (i.nameFontSize.includes("rem"), a.push(
458
+ `--${o}dialogue-name-font-size: ${i.nameFontSize};`
459
+ )), i.namePaddingX && a.push(
460
+ `--${o}dialogue-name-padding-x: ${i.namePaddingX};`
461
+ ), i.namePaddingY && a.push(
462
+ `--${o}dialogue-name-padding-y: ${i.namePaddingY};`
463
+ ), i.messageArrowHeight && a.push(
464
+ `--${o}dialogue-messege-arrow-height: ${i.messageArrowHeight};`
465
+ ), i.messageArrowWidth && a.push(
466
+ `--${o}dialogue-messege-arrow-width: ${i.messageArrowWidth};`
467
+ ), i.messageInnerPaddingX && a.push(
468
+ `--${o}dialogue-message-inner-padding-x: ${i.messageInnerPaddingX};`
469
+ ), i.messageInnerPaddingY && a.push(
470
+ `--${o}dialogue-message-inner-padding-y: ${i.messageInnerPaddingY};`
469
471
  );
470
472
  }
471
- if (e.header) {
472
- const i = e.header;
473
- i.backdropFilter && l.push(
474
- `--${d}header-backdrop-filter: ${i.backdropFilter};`
475
- ), i.zIndexIsSticky && (i.zIndexIsSticky === "auto" ? l.push(
476
- `--${d}header-z-index-is-sticky: "auto";`
477
- ) : l.push(
478
- `--${d}header-z-index-is-sticky: ${i.zIndexIsSticky};`
479
- )), i.zIndexIsFixed && (i.zIndexIsFixed === "auto" ? l.push(
480
- `--${d}header-z-index-is-fixed: "auto";`
481
- ) : l.push(
482
- `--${d}header-z-index-is-fixed: ${i.zIndexIsFixed};`
473
+ if (r.header) {
474
+ const i = r.header;
475
+ i.backdropFilter && a.push(
476
+ `--${o}header-backdrop-filter: ${i.backdropFilter};`
477
+ ), i.zIndexIsSticky && (i.zIndexIsSticky === "auto" ? a.push(
478
+ `--${o}header-z-index-is-sticky: "auto";`
479
+ ) : a.push(
480
+ `--${o}header-z-index-is-sticky: ${i.zIndexIsSticky};`
481
+ )), i.zIndexIsFixed && (i.zIndexIsFixed === "auto" ? a.push(
482
+ `--${o}header-z-index-is-fixed: "auto";`
483
+ ) : a.push(
484
+ `--${o}header-z-index-is-fixed: ${i.zIndexIsFixed};`
483
485
  ));
484
486
  }
485
- if (e.heading) {
486
- const i = e.heading;
487
- i.fontFamily && l.push(
488
- `--${d}font-family-heading: ${i.fontFamily};`
487
+ if (r.heading) {
488
+ const i = r.heading;
489
+ i.fontFamily && a.push(
490
+ `--${o}font-family-heading: ${i.fontFamily};`
489
491
  );
490
492
  }
491
493
  }
492
494
  }
493
- return l;
495
+ return a;
494
496
  }
495
- function $(t) {
496
- const l = [];
497
- if (t && t.color) {
498
- const e = t.color;
499
- if (e.light) {
500
- if (e.light.default) {
501
- const i = f("default", e.light.default);
502
- i.length > 0 && l.push(...i);
503
- }
504
- if (e.light.gray) {
505
- const i = f("gray", e.light.gray);
506
- i.length > 0 && l.push(...i);
507
- }
508
- if (e.light.red) {
509
- const i = f("red", e.light.red);
510
- i.length > 0 && l.push(...i);
511
- }
512
- if (e.light.coral) {
513
- const i = f("coral", e.light.coral);
514
- i.length > 0 && l.push(...i);
515
- }
516
- if (e.light.orange) {
517
- const i = f("orange", e.light.orange);
518
- i.length > 0 && l.push(...i);
519
- }
520
- if (e.light.yellow) {
521
- const i = f("yellow", e.light.yellow);
522
- i.length > 0 && l.push(...i);
523
- }
524
- if (e.light.lime) {
525
- const i = f("lime", e.light.lime);
526
- i.length > 0 && l.push(...i);
527
- }
528
- if (e.light.green) {
529
- const i = f("green", e.light.green);
530
- i.length > 0 && l.push(...i);
531
- }
532
- if (e.light.cyan) {
533
- const i = f("cyan", e.light.cyan);
534
- i.length > 0 && l.push(...i);
535
- }
536
- if (e.light.blue) {
537
- const i = f("blue", e.light.blue);
538
- i.length > 0 && l.push(...i);
539
- }
540
- if (e.light.violet) {
541
- const i = f("violet", e.light.violet);
542
- i.length > 0 && l.push(...i);
543
- }
544
- if (e.light.components) {
545
- const i = e.light.components, s = n(i);
546
- s.length > 0 && l.push(...s);
497
+ function C(e) {
498
+ const a = [];
499
+ if (e && e.color) {
500
+ const r = e.color;
501
+ if (r.light) {
502
+ if (r.light.default) {
503
+ const i = l("default", r.light.default);
504
+ i.length > 0 && a.push(...i);
505
+ }
506
+ if (r.light.gray) {
507
+ const i = l("gray", r.light.gray);
508
+ i.length > 0 && a.push(...i);
509
+ }
510
+ if (r.light.red) {
511
+ const i = l("red", r.light.red);
512
+ i.length > 0 && a.push(...i);
513
+ }
514
+ if (r.light.coral) {
515
+ const i = l("coral", r.light.coral);
516
+ i.length > 0 && a.push(...i);
517
+ }
518
+ if (r.light.orange) {
519
+ const i = l("orange", r.light.orange);
520
+ i.length > 0 && a.push(...i);
521
+ }
522
+ if (r.light.yellow) {
523
+ const i = l("yellow", r.light.yellow);
524
+ i.length > 0 && a.push(...i);
525
+ }
526
+ if (r.light.lime) {
527
+ const i = l("lime", r.light.lime);
528
+ i.length > 0 && a.push(...i);
529
+ }
530
+ if (r.light.green) {
531
+ const i = l("green", r.light.green);
532
+ i.length > 0 && a.push(...i);
533
+ }
534
+ if (r.light.cyan) {
535
+ const i = l("cyan", r.light.cyan);
536
+ i.length > 0 && a.push(...i);
537
+ }
538
+ if (r.light.blue) {
539
+ const i = l("blue", r.light.blue);
540
+ i.length > 0 && a.push(...i);
541
+ }
542
+ if (r.light.violet) {
543
+ const i = l("violet", r.light.violet);
544
+ i.length > 0 && a.push(...i);
545
+ }
546
+ if (r.light.components) {
547
+ const i = r.light.components, t = F(i);
548
+ t.length > 0 && a.push(...t);
547
549
  }
548
550
  }
549
551
  }
550
- return l;
552
+ return a;
551
553
  }
552
- function y(t) {
553
- const l = [];
554
- if (t && t.color) {
555
- const e = t.color;
556
- if (e.dark) {
557
- if (e.dark.default) {
558
- const i = f("default", e.dark.default);
559
- i.length > 0 && l.push(...i);
560
- }
561
- if (e.dark.gray) {
562
- const i = f("gray", e.dark.gray);
563
- i.length > 0 && l.push(...i);
564
- }
565
- if (e.dark.red) {
566
- const i = f("red", e.dark.red);
567
- i.length > 0 && l.push(...i);
568
- }
569
- if (e.dark.coral) {
570
- const i = f("coral", e.dark.coral);
571
- i.length > 0 && l.push(...i);
572
- }
573
- if (e.dark.orange) {
574
- const i = f("orange", e.dark.orange);
575
- i.length > 0 && l.push(...i);
576
- }
577
- if (e.dark.yellow) {
578
- const i = f("yellow", e.dark.yellow);
579
- i.length > 0 && l.push(...i);
580
- }
581
- if (e.dark.lime) {
582
- const i = f("lime", e.dark.lime);
583
- i.length > 0 && l.push(...i);
584
- }
585
- if (e.dark.green) {
586
- const i = f("green", e.dark.green);
587
- i.length > 0 && l.push(...i);
588
- }
589
- if (e.dark.cyan) {
590
- const i = f("cyan", e.dark.cyan);
591
- i.length > 0 && l.push(...i);
592
- }
593
- if (e.dark.blue) {
594
- const i = f("blue", e.dark.blue);
595
- i.length > 0 && l.push(...i);
596
- }
597
- if (e.dark.violet) {
598
- const i = f("violet", e.dark.violet);
599
- i.length > 0 && l.push(...i);
600
- }
601
- if (e.dark.magenta) {
602
- const i = f("magenta", e.dark.magenta);
603
- i.length > 0 && l.push(...i);
604
- }
605
- if (e.dark.components) {
606
- const i = e.dark.components, s = n(i);
607
- s.length > 0 && l.push(...s);
554
+ function N(e) {
555
+ const a = [];
556
+ if (e && e.color) {
557
+ const r = e.color;
558
+ if (r.dark) {
559
+ if (r.dark.default) {
560
+ const i = l("default", r.dark.default);
561
+ i.length > 0 && a.push(...i);
562
+ }
563
+ if (r.dark.gray) {
564
+ const i = l("gray", r.dark.gray);
565
+ i.length > 0 && a.push(...i);
566
+ }
567
+ if (r.dark.red) {
568
+ const i = l("red", r.dark.red);
569
+ i.length > 0 && a.push(...i);
570
+ }
571
+ if (r.dark.coral) {
572
+ const i = l("coral", r.dark.coral);
573
+ i.length > 0 && a.push(...i);
574
+ }
575
+ if (r.dark.orange) {
576
+ const i = l("orange", r.dark.orange);
577
+ i.length > 0 && a.push(...i);
578
+ }
579
+ if (r.dark.yellow) {
580
+ const i = l("yellow", r.dark.yellow);
581
+ i.length > 0 && a.push(...i);
582
+ }
583
+ if (r.dark.lime) {
584
+ const i = l("lime", r.dark.lime);
585
+ i.length > 0 && a.push(...i);
586
+ }
587
+ if (r.dark.green) {
588
+ const i = l("green", r.dark.green);
589
+ i.length > 0 && a.push(...i);
590
+ }
591
+ if (r.dark.cyan) {
592
+ const i = l("cyan", r.dark.cyan);
593
+ i.length > 0 && a.push(...i);
594
+ }
595
+ if (r.dark.blue) {
596
+ const i = l("blue", r.dark.blue);
597
+ i.length > 0 && a.push(...i);
598
+ }
599
+ if (r.dark.violet) {
600
+ const i = l("violet", r.dark.violet);
601
+ i.length > 0 && a.push(...i);
602
+ }
603
+ if (r.dark.magenta) {
604
+ const i = l("magenta", r.dark.magenta);
605
+ i.length > 0 && a.push(...i);
606
+ }
607
+ if (r.dark.components) {
608
+ const i = r.dark.components, t = F(i);
609
+ t.length > 0 && a.push(...t);
608
610
  }
609
611
  }
610
612
  }
611
- return l;
613
+ return a;
612
614
  }
613
- const p = {
614
- getMinolithCssVariableStyles: c,
615
- getRootStyles: o,
616
- getLightSchemeStyles: $,
617
- getDarkSchemeStyles: y
615
+ function g(e, a) {
616
+ return e ? a === "highlighter" ? {
617
+ default: w(e.default),
618
+ hover: w(e.hover),
619
+ focus: w(e.focus),
620
+ active: w(e.active),
621
+ disabled: w(e.disabled)
622
+ } : {
623
+ default: x(e.default),
624
+ hover: x(e.hover),
625
+ focus: x(e.focus),
626
+ active: x(e.active),
627
+ disabled: x(e.disabled)
628
+ } : {
629
+ default: void 0,
630
+ hover: void 0,
631
+ focus: void 0,
632
+ active: void 0,
633
+ disabled: void 0
634
+ };
635
+ }
636
+ function x(e) {
637
+ if (e)
638
+ return e.name === "rainbow" ? "transparent !important" : `var(--${o}color-${e.name}-${e.lightness === 5 ? "05" : e.lightness}) !important`;
639
+ }
640
+ function w(e) {
641
+ if (e && e.name !== "rainbow")
642
+ return `linear-gradient(
643
+ transparent 66.66%,
644
+ var(--${o}color-${e.name}-${e.lightness}) 33.33%
645
+ )`;
646
+ }
647
+ function m(e) {
648
+ return e.foreColor || e.backColor || e.highlighter || e.borderColor ? {
649
+ color: e.foreColor,
650
+ backgroundColor: e.backColor,
651
+ backgroundImage: e.highlighter,
652
+ borderColor: e.borderColor,
653
+ borderTopColor: e.borderTopColor,
654
+ borderRightColor: e.borderRightColor,
655
+ borderBottomColor: e.borderBottomColor,
656
+ borderLeftColor: e.borderLeftColor
657
+ } : void 0;
658
+ }
659
+ function W({
660
+ foreColor: e,
661
+ backColor: a,
662
+ highlighter: r,
663
+ borderColor: i,
664
+ borderTopColor: t,
665
+ borderRightColor: d,
666
+ borderBottomColor: f,
667
+ borderLeftColor: s
668
+ }) {
669
+ return (e || a || r || i || t || d || f || s) && {
670
+ color: e && e.default,
671
+ backgroundColor: a && a.default,
672
+ backgroundImage: r && r.default,
673
+ borderColor: i && i.default,
674
+ borderTopColor: t && t.default,
675
+ borderRightColor: d && d.default,
676
+ borderBottomColor: f && f.default,
677
+ borderLeftColor: s && s.default,
678
+ ":hover": m({
679
+ foreColor: e && e.hover,
680
+ backColor: a && a.hover,
681
+ highlighter: r && r.hover,
682
+ borderColor: i && i.hover,
683
+ borderTopColor: t && t.hover,
684
+ borderRightColor: d && d.hover,
685
+ borderBottomColor: f && f.hover,
686
+ borderLeftColor: s && s.hover
687
+ }),
688
+ ":focus": m({
689
+ foreColor: e && e.focus,
690
+ backColor: a && a.focus,
691
+ highlighter: r && r.focus,
692
+ borderColor: i && i.focus,
693
+ borderTopColor: t && t.focus,
694
+ borderRightColor: d && d.focus,
695
+ borderBottomColor: f && f.focus,
696
+ borderLeftColor: s && s.focus
697
+ }),
698
+ ":active": m({
699
+ foreColor: e && e.active,
700
+ backColor: a && a.active,
701
+ highlighter: r && r.active,
702
+ borderColor: i && i.active,
703
+ borderTopColor: t && t.active,
704
+ borderRightColor: d && d.active,
705
+ borderBottomColor: f && f.active,
706
+ borderLeftColor: s && s.active
707
+ }),
708
+ "[disabled]": m({
709
+ foreColor: e && e.disabled,
710
+ backColor: a && a.disabled,
711
+ highlighter: r && r.disabled,
712
+ borderColor: i && i.disabled,
713
+ borderTopColor: t && t.disabled,
714
+ borderRightColor: d && d.disabled,
715
+ borderBottomColor: f && f.disabled,
716
+ borderLeftColor: s && s.disabled
717
+ })
718
+ };
719
+ }
720
+ function p(e) {
721
+ if (Object.keys(e).filter(
722
+ (k) => k === "fore" || k === "back" || k === "highlighter" || k === "border" || k === "positioning" || k === "sizing" || k === "spacing"
723
+ ).length === 0)
724
+ return e.css ? e.css : void 0;
725
+ const i = e.fore && g(e.fore.color), t = e.fore && e.fore.color && g(e.fore.color.light), d = e.fore && e.fore.color && g(e.fore.color.dark), f = e.fore && e.fore.fontSize ? `var(--${o}font-size-${e.fore.fontSize})` : void 0, s = e.fore && e.fore.fontWeight ? `var(--${o}font-weight-${e.fore.fontWeight})` : void 0, h = e.back && g(e.back.color), B = e.back && e.back.color && g(e.back.color.light), L = e.back && e.back.color && g(e.back.color.dark), c = e.highlighter && g(e.highlighter.color, "highlighter"), T = e.highlighter && e.highlighter.color && g(e.highlighter.color.light, "highlighter"), R = e.highlighter && e.highlighter.color && g(e.highlighter.color.dark, "highlighter"), u = e.border && g(e.border.color), b = e.border && e.border.top && g(e.border.top.color), $ = e.border && e.border.right && g(e.border.right.color), y = e.border && e.border.bottom && g(e.border.bottom.color), v = e.border && e.border.left && g(e.border.left.color), D = e.border && e.border.color && g(e.border.color.light), j = e.border && e.border.top && e.border.top.color && g(e.border.top.color.light), H = e.border && e.border.right && e.border.right.color && g(e.border.right.color.light), M = e.border && e.border.bottom && e.border.bottom.color && g(e.border.bottom.color.light), X = e.border && e.border.left && e.border.left.color && g(e.border.left.color.light), Y = e.border && e.border.color && g(e.border.color.dark), O = e.border && e.border.top && e.border.top.color && g(e.border.top.color.dark), K = e.border && e.border.right && e.border.right.color && g(e.border.right.color.dark), U = e.border && e.border.bottom && e.border.bottom.color && g(e.border.bottom.color.dark), E = e.border && e.border.left && e.border.left.color && g(e.border.left.color.dark), q = m({
726
+ foreColor: i && i.hover,
727
+ backColor: h && h.hover,
728
+ highlighter: c && c.hover,
729
+ borderColor: u && u.hover,
730
+ borderTopColor: b && b.hover,
731
+ borderRightColor: $ && $.hover,
732
+ borderBottomColor: y && y.hover,
733
+ borderLeftColor: v && v.hover
734
+ }), G = m({
735
+ foreColor: i && i.focus,
736
+ backColor: h && h.focus,
737
+ highlighter: c && c.focus,
738
+ borderColor: u && u.focus,
739
+ borderTopColor: b && b.focus,
740
+ borderRightColor: $ && $.focus,
741
+ borderBottomColor: y && y.focus,
742
+ borderLeftColor: v && v.focus
743
+ }), J = m({
744
+ foreColor: i && i.active,
745
+ backColor: h && h.active,
746
+ highlighter: c && c.active,
747
+ borderColor: u && u.active,
748
+ borderTopColor: b && b.active,
749
+ borderRightColor: $ && $.active,
750
+ borderBottomColor: y && y.active,
751
+ borderLeftColor: v && v.active
752
+ }), Q = m({
753
+ foreColor: i && i.disabled,
754
+ backColor: h && h.disabled,
755
+ highlighter: c && c.disabled,
756
+ borderColor: u && u.disabled,
757
+ borderTopColor: b && b.disabled,
758
+ borderRightColor: $ && $.disabled,
759
+ borderBottomColor: y && y.disabled,
760
+ borderLeftColor: v && v.disabled
761
+ }), Z = W({
762
+ foreColor: t,
763
+ backColor: B,
764
+ highlighter: T,
765
+ borderColor: D,
766
+ borderTopColor: j,
767
+ borderRightColor: H,
768
+ borderBottomColor: M,
769
+ borderLeftColor: X
770
+ }), _ = W({
771
+ foreColor: d,
772
+ backColor: L,
773
+ highlighter: R,
774
+ borderColor: Y,
775
+ borderTopColor: O,
776
+ borderRightColor: K,
777
+ borderBottomColor: U,
778
+ borderLeftColor: E
779
+ }), S = A({
780
+ color: i && i.default,
781
+ fontSize: f,
782
+ fontWeight: s,
783
+ backgroundColor: h && h.default,
784
+ backgroundImage: c && c.default,
785
+ borderColor: u && u.default,
786
+ borderCollapse: e.border && e.border.collapse ? e.border.collapse === "collapted" ? "collapse" : "separate" : void 0,
787
+ borderRadius: e.border && e.border.radius ? `var(--${o}border-radius-${e.border.radius})` : void 0,
788
+ borderStyle: e.border && e.border.style ? e.border.style : void 0,
789
+ borderWidth: e.border && e.border.width ? `var(--${o}border-width-${e.border.width})` : void 0,
790
+ borderTopColor: b && b.default,
791
+ borderTopStyle: e.border && e.border.top && e.border.top.style ? e.border.top.style : void 0,
792
+ borderTopWidth: e.border && e.border.top && e.border.top.width ? `var(--${o}border-width-${e.border.top.width})` : void 0,
793
+ borderRightColor: $ && $.default,
794
+ borderRightStyle: e.border && e.border.right && e.border.right.style ? e.border.right.style : void 0,
795
+ borderRightWidth: e.border && e.border.right && e.border.right.width ? `var(--${o}border-width-${e.border.right.width})` : void 0,
796
+ borderBottomColor: y && y.default,
797
+ borderBottomStyle: e.border && e.border.bottom && e.border.bottom.style ? e.border.bottom.style : void 0,
798
+ borderBottomWidth: e.border && e.border.bottom && e.border.bottom.width ? `var(--${o}border-width-${e.border.bottom.width})` : void 0,
799
+ borderLeftColor: v && v.default,
800
+ borderLeftStyle: e.border && e.border.left && e.border.left.style ? e.border.left.style : void 0,
801
+ borderLeftWidth: e.border && e.border.left && e.border.left.width ? `var(--${o}border-width-${e.border.left.width})` : void 0,
802
+ margin: e.spacing && e.spacing.margin ? typeof e.spacing.margin == "number" ? `${e.spacing.margin}rem` : typeof e.spacing.margin == "string" ? e.spacing.margin : void 0 : void 0,
803
+ marginTop: e.spacing && e.spacing.margin && typeof e.spacing.margin == "object" && e.spacing.margin.top ? typeof e.spacing.margin.top == "number" ? `${e.spacing.margin.top}rem` : e.spacing.margin.top : void 0,
804
+ marginRight: e.spacing && e.spacing.margin && typeof e.spacing.margin == "object" && e.spacing.margin.right ? typeof e.spacing.margin.right == "number" ? `${e.spacing.margin.right}rem` : e.spacing.margin.right : void 0,
805
+ marginBottom: e.spacing && e.spacing.margin && typeof e.spacing.margin == "object" && e.spacing.margin.bottom ? typeof e.spacing.margin.bottom == "number" ? `${e.spacing.margin.bottom}rem` : e.spacing.margin.bottom : void 0,
806
+ marginLeft: e.spacing && e.spacing.margin && typeof e.spacing.margin == "object" && e.spacing.margin.left ? typeof e.spacing.margin.left == "number" ? `${e.spacing.margin.left}rem` : e.spacing.margin.left : void 0,
807
+ padding: e.spacing && e.spacing.padding ? typeof e.spacing.padding == "number" ? `${e.spacing.padding}rem` : typeof e.spacing.padding == "string" ? e.spacing.padding : void 0 : void 0,
808
+ paddingTop: e.spacing && e.spacing.padding && typeof e.spacing.padding == "object" && e.spacing.padding.top ? typeof e.spacing.padding.top == "number" ? `${e.spacing.padding.top}rem` : e.spacing.padding.top : void 0,
809
+ paddingRight: e.spacing && e.spacing.padding && typeof e.spacing.padding == "object" && e.spacing.padding.right ? typeof e.spacing.padding.right == "number" ? `${e.spacing.padding.right}rem` : e.spacing.padding.right : void 0,
810
+ paddingBottom: e.spacing && e.spacing.padding && typeof e.spacing.padding == "object" && e.spacing.padding.bottom ? typeof e.spacing.padding.bottom == "number" ? `${e.spacing.padding.bottom}rem` : e.spacing.padding.bottom : void 0,
811
+ paddingLeft: e.spacing && e.spacing.padding && typeof e.spacing.padding == "object" && e.spacing.padding.left ? typeof e.spacing.padding.left == "number" ? `${e.spacing.padding.left}rem` : e.spacing.padding.left : void 0,
812
+ ":hover": q,
813
+ ":focus": G,
814
+ ":active": J,
815
+ "[disabled]": Q,
816
+ "@media (prefers-color-scheme: light)": Z,
817
+ "@media (prefers-color-scheme: dark)": _
818
+ });
819
+ return e.css ? P(S, e.css) : S;
820
+ }
821
+ const ti = {
822
+ getMinolithCssVariableStyles: V,
823
+ getRootStyles: I,
824
+ getColorVariable: x,
825
+ getEmotionCss: p
618
826
  };
619
827
  export {
620
- p as default
828
+ ti as default
621
829
  };
622
830
  //# sourceMappingURL=minolithStyleUtility.js.map