react-minolith 1.0.2 → 1.0.4

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 (203) hide show
  1. package/dist/backgrounds/Dot/Dot.d.ts.map +1 -1
  2. package/dist/backgrounds/Dot/Dot.js +4 -4
  3. package/dist/backgrounds/Dot/Dot.js.map +1 -1
  4. package/dist/backgrounds/Gingham/Gingham.d.ts.map +1 -1
  5. package/dist/backgrounds/Gingham/Gingham.js +6 -6
  6. package/dist/backgrounds/Gingham/Gingham.js.map +1 -1
  7. package/dist/backgrounds/Rhombus/Rhombus.d.ts.map +1 -1
  8. package/dist/backgrounds/Rhombus/Rhombus.js +4 -4
  9. package/dist/backgrounds/Rhombus/Rhombus.js.map +1 -1
  10. package/dist/backgrounds/Stripe/Stripe.d.ts.map +1 -1
  11. package/dist/backgrounds/Stripe/Stripe.js +4 -4
  12. package/dist/backgrounds/Stripe/Stripe.js.map +1 -1
  13. package/dist/backgrounds/Zigzag/Zigzag.d.ts.map +1 -1
  14. package/dist/backgrounds/Zigzag/Zigzag.js +9 -9
  15. package/dist/backgrounds/Zigzag/Zigzag.js.map +1 -1
  16. package/dist/base/Minolith/Minolith.d.ts.map +1 -1
  17. package/dist/base/Minolith/Minolith.js +23 -12
  18. package/dist/base/Minolith/Minolith.js.map +1 -1
  19. package/dist/base/MinolithStatic/MinolithStatic.js +10 -8
  20. package/dist/base/MinolithStatic/MinolithStatic.js.map +1 -1
  21. package/dist/base/Tabula/Tabula.d.ts.map +1 -1
  22. package/dist/base/Tabula/Tabula.js +8 -8
  23. package/dist/base/Tabula/Tabula.js.map +1 -1
  24. package/dist/components/Accordion/Accordion.d.ts.map +1 -1
  25. package/dist/components/Accordion/Accordion.js +4 -4
  26. package/dist/components/Accordion/Accordion.js.map +1 -1
  27. package/dist/components/Accordion/AccordionDetails.d.ts.map +1 -1
  28. package/dist/components/Accordion/AccordionDetails.js +4 -4
  29. package/dist/components/Accordion/AccordionDetails.js.map +1 -1
  30. package/dist/components/Accordion/AccordionSummary.d.ts.map +1 -1
  31. package/dist/components/Accordion/AccordionSummary.js +1 -1
  32. package/dist/components/Accordion/AccordionSummary.js.map +1 -1
  33. package/dist/components/Badge/Badge.d.ts.map +1 -1
  34. package/dist/components/Badge/Badge.js +4 -4
  35. package/dist/components/Badge/Badge.js.map +1 -1
  36. package/dist/components/Blockquote/Blockquote.d.ts.map +1 -1
  37. package/dist/components/Blockquote/Blockquote.js +4 -4
  38. package/dist/components/Blockquote/Blockquote.js.map +1 -1
  39. package/dist/components/Breadcrumbs/Breadcrumb.d.ts.map +1 -1
  40. package/dist/components/Breadcrumbs/Breadcrumb.js +4 -4
  41. package/dist/components/Breadcrumbs/Breadcrumb.js.map +1 -1
  42. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  43. package/dist/components/Breadcrumbs/Breadcrumbs.js +1 -1
  44. package/dist/components/Breadcrumbs/Breadcrumbs.js.map +1 -1
  45. package/dist/components/Breadcrumbs/BreadcrumbsNav.d.ts.map +1 -1
  46. package/dist/components/Breadcrumbs/BreadcrumbsNav.js +6 -6
  47. package/dist/components/Breadcrumbs/BreadcrumbsNav.js.map +1 -1
  48. package/dist/components/Button/Button.d.ts.map +1 -1
  49. package/dist/components/Button/Button.js +4 -6
  50. package/dist/components/Button/Button.js.map +1 -1
  51. package/dist/components/Card/Card.d.ts.map +1 -1
  52. package/dist/components/Card/Card.js +4 -4
  53. package/dist/components/Card/Card.js.map +1 -1
  54. package/dist/components/Card/CardBody.d.ts.map +1 -1
  55. package/dist/components/Card/CardBody.js +4 -4
  56. package/dist/components/Card/CardBody.js.map +1 -1
  57. package/dist/components/Card/CardFooter.d.ts.map +1 -1
  58. package/dist/components/Card/CardFooter.js +1 -1
  59. package/dist/components/Card/CardFooter.js.map +1 -1
  60. package/dist/components/Card/CardHeader.d.ts.map +1 -1
  61. package/dist/components/Card/CardHeader.js +4 -4
  62. package/dist/components/Card/CardHeader.js.map +1 -1
  63. package/dist/components/Dialogue/Dialogue.d.ts.map +1 -1
  64. package/dist/components/Dialogue/Dialogue.js +4 -4
  65. package/dist/components/Dialogue/Dialogue.js.map +1 -1
  66. package/dist/components/Dialogue/DialogueAvatar.d.ts.map +1 -1
  67. package/dist/components/Dialogue/DialogueAvatar.js +4 -4
  68. package/dist/components/Dialogue/DialogueAvatar.js.map +1 -1
  69. package/dist/components/Dialogue/DialogueAvatarContainer.d.ts.map +1 -1
  70. package/dist/components/Dialogue/DialogueAvatarContainer.js +4 -4
  71. package/dist/components/Dialogue/DialogueAvatarContainer.js.map +1 -1
  72. package/dist/components/Dialogue/DialogueContentContainer.d.ts.map +1 -1
  73. package/dist/components/Dialogue/DialogueContentContainer.js +6 -6
  74. package/dist/components/Dialogue/DialogueContentContainer.js.map +1 -1
  75. package/dist/components/Dialogue/DialogueMessage.d.ts.map +1 -1
  76. package/dist/components/Dialogue/DialogueMessage.js +4 -4
  77. package/dist/components/Dialogue/DialogueMessage.js.map +1 -1
  78. package/dist/components/Dialogue/DialogueMessageInner.d.ts.map +1 -1
  79. package/dist/components/Dialogue/DialogueMessageInner.js +9 -9
  80. package/dist/components/Dialogue/DialogueMessageInner.js.map +1 -1
  81. package/dist/components/Dialogue/DialogueName.d.ts.map +1 -1
  82. package/dist/components/Dialogue/DialogueName.js +6 -6
  83. package/dist/components/Dialogue/DialogueName.js.map +1 -1
  84. package/dist/components/Div/Div.d.ts.map +1 -1
  85. package/dist/components/Div/Div.js +4 -4
  86. package/dist/components/Div/Div.js.map +1 -1
  87. package/dist/components/Footer/Footer.d.ts.map +1 -1
  88. package/dist/components/Footer/Footer.js +4 -4
  89. package/dist/components/Footer/Footer.js.map +1 -1
  90. package/dist/components/Hamburger/Hamburger.d.ts.map +1 -1
  91. package/dist/components/Hamburger/Hamburger.js +4 -4
  92. package/dist/components/Hamburger/Hamburger.js.map +1 -1
  93. package/dist/components/Header/Header.d.ts.map +1 -1
  94. package/dist/components/Header/Header.js +6 -6
  95. package/dist/components/Header/Header.js.map +1 -1
  96. package/dist/components/Heading/Heading.d.ts.map +1 -1
  97. package/dist/components/Heading/Heading.js +4 -4
  98. package/dist/components/Heading/Heading.js.map +1 -1
  99. package/dist/components/Input/Input.d.ts.map +1 -1
  100. package/dist/components/Input/Input.js +4 -4
  101. package/dist/components/Input/Input.js.map +1 -1
  102. package/dist/components/Label/Label.d.ts.map +1 -1
  103. package/dist/components/Label/Label.js +6 -6
  104. package/dist/components/Label/Label.js.map +1 -1
  105. package/dist/components/Link/Link.d.ts.map +1 -1
  106. package/dist/components/Link/Link.js +8 -8
  107. package/dist/components/Link/Link.js.map +1 -1
  108. package/dist/components/Loader/Loader.d.ts.map +1 -1
  109. package/dist/components/Loader/Loader.js +6 -6
  110. package/dist/components/Loader/Loader.js.map +1 -1
  111. package/dist/components/Main/Main.d.ts.map +1 -1
  112. package/dist/components/Main/Main.js +6 -6
  113. package/dist/components/Main/Main.js.map +1 -1
  114. package/dist/components/Message/Message.d.ts.map +1 -1
  115. package/dist/components/Message/Message.js +6 -6
  116. package/dist/components/Message/Message.js.map +1 -1
  117. package/dist/components/Message/MessageBody.d.ts.map +1 -1
  118. package/dist/components/Message/MessageBody.js +4 -4
  119. package/dist/components/Message/MessageBody.js.map +1 -1
  120. package/dist/components/Message/MessageHeader.d.ts.map +1 -1
  121. package/dist/components/Message/MessageHeader.js +4 -4
  122. package/dist/components/Message/MessageHeader.js.map +1 -1
  123. package/dist/components/Modal/Modal.d.ts.map +1 -1
  124. package/dist/components/Modal/Modal.js +10 -10
  125. package/dist/components/Modal/Modal.js.map +1 -1
  126. package/dist/components/Modal/ModalContent.d.ts.map +1 -1
  127. package/dist/components/Modal/ModalContent.js +5 -5
  128. package/dist/components/Modal/ModalContent.js.map +1 -1
  129. package/dist/components/Nav/Nav.d.ts.map +1 -1
  130. package/dist/components/Nav/Nav.js +4 -4
  131. package/dist/components/Nav/Nav.js.map +1 -1
  132. package/dist/components/Nav/NavAccordion.d.ts.map +1 -1
  133. package/dist/components/Nav/NavAccordion.js +4 -4
  134. package/dist/components/Nav/NavAccordion.js.map +1 -1
  135. package/dist/components/Nav/NavBrand.d.ts.map +1 -1
  136. package/dist/components/Nav/NavBrand.js +1 -1
  137. package/dist/components/Nav/NavBrand.js.map +1 -1
  138. package/dist/components/Nav/NavBrandCenter.d.ts.map +1 -1
  139. package/dist/components/Nav/NavBrandCenter.js +4 -4
  140. package/dist/components/Nav/NavBrandCenter.js.map +1 -1
  141. package/dist/components/Nav/NavBrandLeft.d.ts.map +1 -1
  142. package/dist/components/Nav/NavBrandLeft.js +4 -4
  143. package/dist/components/Nav/NavBrandLeft.js.map +1 -1
  144. package/dist/components/Nav/NavBrandRight.d.ts.map +1 -1
  145. package/dist/components/Nav/NavBrandRight.js +1 -1
  146. package/dist/components/Nav/NavBrandRight.js.map +1 -1
  147. package/dist/components/Nav/NavMenu.d.ts.map +1 -1
  148. package/dist/components/Nav/NavMenu.js +4 -4
  149. package/dist/components/Nav/NavMenu.js.map +1 -1
  150. package/dist/components/Nav/NavMenuItem.d.ts.map +1 -1
  151. package/dist/components/Nav/NavMenuItem.js +1 -1
  152. package/dist/components/Nav/NavMenuItem.js.map +1 -1
  153. package/dist/components/Nav/NavStatic.d.ts.map +1 -1
  154. package/dist/components/Nav/NavStatic.js +4 -4
  155. package/dist/components/Nav/NavStatic.js.map +1 -1
  156. package/dist/components/Paragraph/Paragraph.d.ts.map +1 -1
  157. package/dist/components/Paragraph/Paragraph.js +4 -4
  158. package/dist/components/Paragraph/Paragraph.js.map +1 -1
  159. package/dist/components/Progress/Progress.d.ts.map +1 -1
  160. package/dist/components/Progress/Progress.js +4 -4
  161. package/dist/components/Progress/Progress.js.map +1 -1
  162. package/dist/components/Ruby/Ruby.d.ts.map +1 -1
  163. package/dist/components/Ruby/Ruby.js +9 -9
  164. package/dist/components/Ruby/Ruby.js.map +1 -1
  165. package/dist/components/Ruby/RubyText.d.ts.map +1 -1
  166. package/dist/components/Ruby/RubyText.js +6 -6
  167. package/dist/components/Ruby/RubyText.js.map +1 -1
  168. package/dist/components/Section/Section.d.ts.map +1 -1
  169. package/dist/components/Section/Section.js +6 -6
  170. package/dist/components/Section/Section.js.map +1 -1
  171. package/dist/components/Span/Span.d.ts.map +1 -1
  172. package/dist/components/Span/Span.js +4 -4
  173. package/dist/components/Span/Span.js.map +1 -1
  174. package/dist/components/Textarea/Textarea.d.ts.map +1 -1
  175. package/dist/components/Textarea/Textarea.js +4 -4
  176. package/dist/components/Textarea/Textarea.js.map +1 -1
  177. package/dist/layouts/Centering/Centering.d.ts.map +1 -1
  178. package/dist/layouts/Centering/Centering.js +4 -4
  179. package/dist/layouts/Centering/Centering.js.map +1 -1
  180. package/dist/layouts/Columns/Column.d.ts.map +1 -1
  181. package/dist/layouts/Columns/Column.js +4 -4
  182. package/dist/layouts/Columns/Column.js.map +1 -1
  183. package/dist/layouts/Columns/Columns.d.ts.map +1 -1
  184. package/dist/layouts/Columns/Columns.js +4 -4
  185. package/dist/layouts/Columns/Columns.js.map +1 -1
  186. package/dist/layouts/Container/Container.d.ts.map +1 -1
  187. package/dist/layouts/Container/Container.js +4 -4
  188. package/dist/layouts/Container/Container.js.map +1 -1
  189. package/dist/react-minolith.js +128 -126
  190. package/dist/react-minolith.js.map +1 -1
  191. package/dist/utilities/emotionStyleUtility.d.ts +11 -0
  192. package/dist/utilities/emotionStyleUtility.d.ts.map +1 -0
  193. package/dist/utilities/emotionStyleUtility.js +217 -0
  194. package/dist/utilities/emotionStyleUtility.js.map +1 -0
  195. package/dist/utilities/index.d.ts +1 -0
  196. package/dist/utilities/index.d.ts.map +1 -1
  197. package/dist/utilities/index.js +6 -4
  198. package/dist/utilities/index.js.map +1 -1
  199. package/dist/utilities/minolithStyleUtility/minolithStyleUtility.d.ts +0 -7
  200. package/dist/utilities/minolithStyleUtility/minolithStyleUtility.d.ts.map +1 -1
  201. package/dist/utilities/minolithStyleUtility/minolithStyleUtility.js +474 -684
  202. package/dist/utilities/minolithStyleUtility/minolithStyleUtility.js.map +1 -1
  203. package/package.json +1 -1
@@ -1,830 +1,620 @@
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;
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;
17
15
  }
18
- function l(e, a, r) {
16
+ function f(t, l, e) {
19
17
  const i = [];
20
- if (a.default) {
21
- const t = z(
22
- e,
23
- a.default,
18
+ if (l.default) {
19
+ const s = h(
20
+ t,
21
+ l.default,
24
22
  void 0,
25
- r
23
+ e
26
24
  );
27
- t.length > 0 && i.push(...t);
25
+ s.length > 0 && i.push(...s);
28
26
  }
29
- if (a.hover) {
30
- const t = z(
31
- e,
32
- a.hover,
27
+ if (l.hover) {
28
+ const s = h(
29
+ t,
30
+ l.hover,
33
31
  "hover",
34
- r
32
+ e
35
33
  );
36
- t.length > 0 && i.push(...t);
34
+ s.length > 0 && i.push(...s);
37
35
  }
38
- if (a.focus) {
39
- const t = z(
40
- e,
41
- a.focus,
36
+ if (l.focus) {
37
+ const s = h(
38
+ t,
39
+ l.focus,
42
40
  "focus",
43
- r
41
+ e
44
42
  );
45
- t.length > 0 && i.push(...t);
43
+ s.length > 0 && i.push(...s);
46
44
  }
47
- if (a.active) {
48
- const t = z(
49
- e,
50
- a.active,
45
+ if (l.active) {
46
+ const s = h(
47
+ t,
48
+ l.active,
51
49
  "active",
52
- r
50
+ e
53
51
  );
54
- t.length > 0 && i.push(...t);
52
+ s.length > 0 && i.push(...s);
55
53
  }
56
- if (a.disabled) {
57
- const t = z(
58
- e,
59
- a.disabled,
54
+ if (l.disabled) {
55
+ const s = h(
56
+ t,
57
+ l.disabled,
60
58
  "disabled",
61
- r
59
+ e
62
60
  );
63
- t.length > 0 && i.push(...t);
61
+ s.length > 0 && i.push(...s);
64
62
  }
65
63
  return i;
66
64
  }
67
- function n(e, a) {
68
- const r = [];
69
- if (e.default) {
70
- const i = l(
65
+ function r(t, l) {
66
+ const e = [];
67
+ if (t.default) {
68
+ const i = f(
71
69
  "default",
72
- e.default,
73
- a
70
+ t.default,
71
+ l
74
72
  );
75
- i.length > 0 && r.push(...i);
73
+ i.length > 0 && e.push(...i);
76
74
  }
77
- if (e.gray) {
78
- const i = l("gray", e.gray, a);
79
- i.length > 0 && r.push(...i);
75
+ if (t.gray) {
76
+ const i = f("gray", t.gray, l);
77
+ i.length > 0 && e.push(...i);
80
78
  }
81
- if (e.red) {
82
- const i = l("red", e.red, a);
83
- i.length > 0 && r.push(...i);
79
+ if (t.red) {
80
+ const i = f("red", t.red, l);
81
+ i.length > 0 && e.push(...i);
84
82
  }
85
- if (e.coral) {
86
- const i = l("coral", e.coral, a);
87
- i.length > 0 && r.push(...i);
83
+ if (t.coral) {
84
+ const i = f("coral", t.coral, l);
85
+ i.length > 0 && e.push(...i);
88
86
  }
89
- if (e.orange) {
90
- const i = l("orange", e.orange, a);
91
- i.length > 0 && r.push(...i);
87
+ if (t.orange) {
88
+ const i = f("orange", t.orange, l);
89
+ i.length > 0 && e.push(...i);
92
90
  }
93
- if (e.yellow) {
94
- const i = l("yellow", e.yellow, a);
95
- i.length > 0 && r.push(...i);
91
+ if (t.yellow) {
92
+ const i = f("yellow", t.yellow, l);
93
+ i.length > 0 && e.push(...i);
96
94
  }
97
- if (e.lime) {
98
- const i = l("lime", e.lime, a);
99
- i.length > 0 && r.push(...i);
95
+ if (t.lime) {
96
+ const i = f("lime", t.lime, l);
97
+ i.length > 0 && e.push(...i);
100
98
  }
101
- if (e.green) {
102
- const i = l("green", e.green, a);
103
- i.length > 0 && r.push(...i);
99
+ if (t.green) {
100
+ const i = f("green", t.green, l);
101
+ i.length > 0 && e.push(...i);
104
102
  }
105
- if (e.cyan) {
106
- const i = l("cyan", e.cyan, a);
107
- i.length > 0 && r.push(...i);
103
+ if (t.cyan) {
104
+ const i = f("cyan", t.cyan, l);
105
+ i.length > 0 && e.push(...i);
108
106
  }
109
- if (e.blue) {
110
- const i = l("blue", e.blue, a);
111
- i.length > 0 && r.push(...i);
107
+ if (t.blue) {
108
+ const i = f("blue", t.blue, l);
109
+ i.length > 0 && e.push(...i);
112
110
  }
113
- if (e.violet) {
114
- const i = l("violet", e.violet, a);
115
- i.length > 0 && r.push(...i);
111
+ if (t.violet) {
112
+ const i = f("violet", t.violet, l);
113
+ i.length > 0 && e.push(...i);
116
114
  }
117
- if (e.magenta) {
118
- const i = l(
115
+ if (t.magenta) {
116
+ const i = f(
119
117
  "magenta",
120
- e.magenta,
121
- a
118
+ t.magenta,
119
+ l
122
120
  );
123
- i.length > 0 && r.push(...i);
121
+ i.length > 0 && e.push(...i);
124
122
  }
125
- return r;
123
+ return e;
126
124
  }
127
- function F(e) {
128
- const a = [];
129
- if (e.badge) {
130
- const r = n(
131
- e.badge,
125
+ function n(t) {
126
+ const l = [];
127
+ if (t.badge) {
128
+ const e = r(
129
+ t.badge,
132
130
  "badge"
133
131
  );
134
- r.length > 0 && a.push(...r);
132
+ e.length > 0 && l.push(...e);
135
133
  }
136
- if (e.accordion) {
137
- const r = n(
138
- e.accordion,
134
+ if (t.accordion) {
135
+ const e = r(
136
+ t.accordion,
139
137
  "accordion"
140
138
  );
141
- if (r.length > 0 && a.push(...r), e.accordion.accordionSummary) {
142
- const i = n(
143
- e.accordion.accordionSummary,
139
+ if (e.length > 0 && l.push(...e), t.accordion.accordionSummary) {
140
+ const i = r(
141
+ t.accordion.accordionSummary,
144
142
  "accordion-summary"
145
143
  );
146
- i.length > 0 && a.push(...i);
144
+ i.length > 0 && l.push(...i);
147
145
  }
148
- if (e.accordion.accordionDetails) {
149
- const i = n(
150
- e.accordion.accordionDetails,
146
+ if (t.accordion.accordionDetails) {
147
+ const i = r(
148
+ t.accordion.accordionDetails,
151
149
  "accordion-details"
152
150
  );
153
- i.length > 0 && a.push(...i);
151
+ i.length > 0 && l.push(...i);
154
152
  }
155
153
  }
156
- if (e.button) {
157
- const r = n(
158
- e.button,
154
+ if (t.button) {
155
+ const e = r(
156
+ t.button,
159
157
  "button"
160
158
  );
161
- r.length > 0 && a.push(...r);
159
+ e.length > 0 && l.push(...e);
162
160
  }
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,
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,
168
166
  "card-header"
169
167
  );
170
- i.length > 0 && a.push(...i);
168
+ i.length > 0 && l.push(...i);
171
169
  }
172
- if (e.card.cardBody) {
173
- const i = n(
174
- e.card.cardBody,
170
+ if (t.card.cardBody) {
171
+ const i = r(
172
+ t.card.cardBody,
175
173
  "card-body"
176
174
  );
177
- i.length > 0 && a.push(...i);
175
+ i.length > 0 && l.push(...i);
178
176
  }
179
- if (e.card.cardFooter) {
180
- const i = n(
181
- e.card.cardFooter,
177
+ if (t.card.cardFooter) {
178
+ const i = r(
179
+ t.card.cardFooter,
182
180
  "card-footer"
183
181
  );
184
- i.length > 0 && a.push(...i);
182
+ i.length > 0 && l.push(...i);
185
183
  }
186
184
  }
187
- if (e.dialogue) {
188
- const r = n(
189
- e.dialogue,
185
+ if (t.dialogue) {
186
+ const e = r(
187
+ t.dialogue,
190
188
  "dialogue"
191
189
  );
192
- if (r.length > 0 && a.push(...r), e.dialogue.dialogueAvatar) {
193
- const i = n(
194
- e.dialogue.dialogueAvatar,
190
+ if (e.length > 0 && l.push(...e), t.dialogue.dialogueAvatar) {
191
+ const i = r(
192
+ t.dialogue.dialogueAvatar,
195
193
  "dialogue-avatar"
196
194
  );
197
- i.length > 0 && a.push(...i);
195
+ i.length > 0 && l.push(...i);
198
196
  }
199
- if (e.dialogue.dialogueName) {
200
- const i = n(
201
- e.dialogue.dialogueName,
197
+ if (t.dialogue.dialogueName) {
198
+ const i = r(
199
+ t.dialogue.dialogueName,
202
200
  "dialogue-name"
203
201
  );
204
- i.length > 0 && a.push(...i);
202
+ i.length > 0 && l.push(...i);
205
203
  }
206
- if (e.dialogue.dialogueMessage) {
207
- const i = n(
208
- e.dialogue.dialogueMessage,
204
+ if (t.dialogue.dialogueMessage) {
205
+ const i = r(
206
+ t.dialogue.dialogueMessage,
209
207
  "dialogue-message"
210
208
  );
211
- i.length > 0 && a.push(...i);
209
+ i.length > 0 && l.push(...i);
212
210
  }
213
211
  }
214
- if (e.header) {
215
- const r = n(
216
- e.header,
212
+ if (t.header) {
213
+ const e = r(
214
+ t.header,
217
215
  "header"
218
216
  );
219
- r.length > 0 && a.push(...r);
217
+ e.length > 0 && l.push(...e);
220
218
  }
221
- if (e.label) {
222
- const r = n(
223
- e.label,
219
+ if (t.label) {
220
+ const e = r(
221
+ t.label,
224
222
  "label"
225
223
  );
226
- r.length > 0 && a.push(...r);
224
+ e.length > 0 && l.push(...e);
227
225
  }
228
- if (e.link) {
229
- const r = n(e.link, "link");
230
- r.length > 0 && a.push(...r);
226
+ if (t.link) {
227
+ const e = r(t.link, "link");
228
+ e.length > 0 && l.push(...e);
231
229
  }
232
- if (e.loader) {
233
- const r = n(
234
- e.loader,
230
+ if (t.loader) {
231
+ const e = r(
232
+ t.loader,
235
233
  "loader"
236
234
  );
237
- r.length > 0 && a.push(...r);
235
+ e.length > 0 && l.push(...e);
238
236
  }
239
- if (e.message) {
240
- const r = n(
241
- e.message,
237
+ if (t.message) {
238
+ const e = r(
239
+ t.message,
242
240
  "message"
243
241
  );
244
- if (r.length > 0 && a.push(...r), e.message.messageHeader) {
245
- const i = n(
246
- e.message.messageHeader,
242
+ if (e.length > 0 && l.push(...e), t.message.messageHeader) {
243
+ const i = r(
244
+ t.message.messageHeader,
247
245
  "message-header"
248
246
  );
249
- i.length > 0 && a.push(...i);
247
+ i.length > 0 && l.push(...i);
250
248
  }
251
- if (e.message.messageBody) {
252
- const i = n(
253
- e.message.messageBody,
249
+ if (t.message.messageBody) {
250
+ const i = r(
251
+ t.message.messageBody,
254
252
  "message-body"
255
253
  );
256
- i.length > 0 && a.push(...i);
254
+ i.length > 0 && l.push(...i);
257
255
  }
258
256
  }
259
- if (e.progress) {
260
- const r = n(
261
- e.progress,
257
+ if (t.progress) {
258
+ const e = r(
259
+ t.progress,
262
260
  "progress"
263
261
  );
264
- r.length > 0 && a.push(...r);
262
+ e.length > 0 && l.push(...e);
265
263
  }
266
- return a;
264
+ return l;
267
265
  }
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(
266
+ function $(t) {
267
+ const l = [], e = o(t), i = y(t), s = c(t);
268
+ return e.length > 0 && l.push(`:root{${e.join("")}}`), i.length > 0 && l.push(`:root{${i.join("")}}`), i.length > 0 && l.push(
271
269
  `[data-color-scheme="light"]{${i.join("")}}`
272
- ), t.length > 0 && a.push(
273
- `[data-color-scheme="dark"]{${t.join("")}}`
274
- ), a;
270
+ ), s.length > 0 && l.push(
271
+ `[data-color-scheme="dark"]{${s.join("")}}`
272
+ ), l;
275
273
  }
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};`
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};`
295
293
  );
296
294
  }
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};`
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};`
315
313
  );
316
314
  }
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});`
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});`
325
323
  );
326
324
  }
327
325
  };
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]);
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]);
331
329
  }
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]);
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]);
335
333
  }
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]);
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]);
339
337
  }
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]);
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]);
343
341
  }
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]);
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]);
347
345
  }
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]);
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]);
351
349
  }
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]);
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]);
355
353
  }
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]);
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]);
359
357
  }
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]);
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]);
363
361
  }
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]);
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]);
367
365
  }
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]);
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]);
371
369
  }
372
370
  }
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};`
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};`
383
381
  );
384
382
  }
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};`
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};`
429
427
  ));
430
428
  }
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};`
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};`
437
435
  );
438
436
  }
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};`
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};`
445
443
  );
446
444
  }
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};`
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};`
471
469
  );
472
470
  }
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};`
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};`
485
483
  ));
486
484
  }
487
- if (r.heading) {
488
- const i = r.heading;
489
- i.fontFamily && a.push(
490
- `--${o}font-family-heading: ${i.fontFamily};`
485
+ if (e.heading) {
486
+ const i = e.heading;
487
+ i.fontFamily && l.push(
488
+ `--${d}font-family-heading: ${i.fontFamily};`
491
489
  );
492
490
  }
493
491
  }
494
492
  }
495
- return a;
493
+ return l;
496
494
  }
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);
495
+ function y(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);
549
547
  }
550
548
  }
551
549
  }
552
- return a;
550
+ return l;
553
551
  }
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);
552
+ function c(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);
610
608
  }
611
609
  }
612
610
  }
613
- return a;
611
+ return l;
614
612
  }
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
613
+ const p = {
614
+ getMinolithCssVariableStyles: $,
615
+ getRootStyles: o
826
616
  };
827
617
  export {
828
- ti as default
618
+ p as default
829
619
  };
830
620
  //# sourceMappingURL=minolithStyleUtility.js.map