@sk-web-gui/core 0.1.38 → 0.1.40

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 (395) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +5 -5
  3. package/package.json +2 -2
  4. package/src/colors.js +145 -145
  5. package/src/components/accordion.js +89 -89
  6. package/src/components/alert.js +98 -98
  7. package/src/components/avatar.js +85 -85
  8. package/src/components/badge.js +60 -60
  9. package/src/components/breadcrumb.js +13 -13
  10. package/src/components/button-group.js +46 -46
  11. package/src/components/button.js +304 -304
  12. package/src/components/calendar.js +82 -82
  13. package/src/components/card.js +54 -54
  14. package/src/components/checkbox.js +127 -127
  15. package/src/components/code.js +9 -9
  16. package/src/components/cookie-consent.js +30 -30
  17. package/src/components/divider.js +12 -12
  18. package/src/components/dot.js +84 -84
  19. package/src/components/dropdown-filter.js +72 -72
  20. package/src/components/footer.js +42 -42
  21. package/src/components/forms.js +256 -256
  22. package/src/components/header.js +35 -35
  23. package/src/components/icon-button.js +5 -5
  24. package/src/components/icon.js +9 -9
  25. package/src/components/kbd.js +9 -9
  26. package/src/components/link.js +20 -20
  27. package/src/components/message.js +62 -62
  28. package/src/components/modal.js +30 -30
  29. package/src/components/notification.js +56 -56
  30. package/src/components/pagination.js +69 -69
  31. package/src/components/radio.js +104 -104
  32. package/src/components/search-bar.js +44 -44
  33. package/src/components/side-menu.js +186 -0
  34. package/src/components/switch.js +119 -119
  35. package/src/components/tab-menu.js +42 -36
  36. package/src/components/table.js +13 -13
  37. package/src/components/tag.js +97 -97
  38. package/src/components/user-menu.js +23 -23
  39. package/src/components/zebratable.js +77 -77
  40. package/src/index.js +272 -272
  41. package/src/with-opacity.js +6 -6
  42. package/dist/cjs/colors.js +0 -140
  43. package/dist/cjs/colors.js.map +0 -1
  44. package/dist/cjs/components/accordion.js +0 -86
  45. package/dist/cjs/components/accordion.js.map +0 -1
  46. package/dist/cjs/components/alert.js +0 -71
  47. package/dist/cjs/components/alert.js.map +0 -1
  48. package/dist/cjs/components/avatar.js +0 -78
  49. package/dist/cjs/components/avatar.js.map +0 -1
  50. package/dist/cjs/components/badge.js +0 -53
  51. package/dist/cjs/components/badge.js.map +0 -1
  52. package/dist/cjs/components/breadcrumb.js +0 -23
  53. package/dist/cjs/components/breadcrumb.js.map +0 -1
  54. package/dist/cjs/components/button-group.js +0 -50
  55. package/dist/cjs/components/button-group.js.map +0 -1
  56. package/dist/cjs/components/button.js +0 -154
  57. package/dist/cjs/components/button.js.map +0 -1
  58. package/dist/cjs/components/calendar.js +0 -76
  59. package/dist/cjs/components/calendar.js.map +0 -1
  60. package/dist/cjs/components/card.js +0 -59
  61. package/dist/cjs/components/card.js.map +0 -1
  62. package/dist/cjs/components/checkbox.js +0 -92
  63. package/dist/cjs/components/checkbox.js.map +0 -1
  64. package/dist/cjs/components/code.js +0 -21
  65. package/dist/cjs/components/code.js.map +0 -1
  66. package/dist/cjs/components/cookie-consent.js +0 -35
  67. package/dist/cjs/components/cookie-consent.js.map +0 -1
  68. package/dist/cjs/components/divider.js +0 -24
  69. package/dist/cjs/components/divider.js.map +0 -1
  70. package/dist/cjs/components/dot.js +0 -70
  71. package/dist/cjs/components/dot.js.map +0 -1
  72. package/dist/cjs/components/footer.js +0 -39
  73. package/dist/cjs/components/footer.js.map +0 -1
  74. package/dist/cjs/components/forms.js +0 -225
  75. package/dist/cjs/components/forms.js.map +0 -1
  76. package/dist/cjs/components/header.js +0 -34
  77. package/dist/cjs/components/header.js.map +0 -1
  78. package/dist/cjs/components/icon-button.js +0 -17
  79. package/dist/cjs/components/icon-button.js.map +0 -1
  80. package/dist/cjs/components/icon.js +0 -20
  81. package/dist/cjs/components/icon.js.map +0 -1
  82. package/dist/cjs/components/kbd.js +0 -21
  83. package/dist/cjs/components/kbd.js.map +0 -1
  84. package/dist/cjs/components/link.js +0 -29
  85. package/dist/cjs/components/link.js.map +0 -1
  86. package/dist/cjs/components/message.js +0 -63
  87. package/dist/cjs/components/message.js.map +0 -1
  88. package/dist/cjs/components/modal.js +0 -35
  89. package/dist/cjs/components/modal.js.map +0 -1
  90. package/dist/cjs/components/notification.js +0 -58
  91. package/dist/cjs/components/notification.js.map +0 -1
  92. package/dist/cjs/components/pagination.js +0 -66
  93. package/dist/cjs/components/pagination.js.map +0 -1
  94. package/dist/cjs/components/radio.js +0 -95
  95. package/dist/cjs/components/radio.js.map +0 -1
  96. package/dist/cjs/components/switch.js +0 -107
  97. package/dist/cjs/components/switch.js.map +0 -1
  98. package/dist/cjs/components/table.js +0 -23
  99. package/dist/cjs/components/table.js.map +0 -1
  100. package/dist/cjs/components/tag.js +0 -88
  101. package/dist/cjs/components/tag.js.map +0 -1
  102. package/dist/cjs/components/types.js +0 -10
  103. package/dist/cjs/components/types.js.map +0 -1
  104. package/dist/cjs/components/user-menu.js +0 -33
  105. package/dist/cjs/components/user-menu.js.map +0 -1
  106. package/dist/cjs/components/zebratable.js +0 -70
  107. package/dist/cjs/components/zebratable.js.map +0 -1
  108. package/dist/cjs/index.js +0 -282
  109. package/dist/cjs/index.js.map +0 -1
  110. package/dist/cjs/with-opacity.js +0 -15
  111. package/dist/cjs/with-opacity.js.map +0 -1
  112. package/dist/esm/colors.js +0 -137
  113. package/dist/esm/colors.js.map +0 -1
  114. package/dist/esm/components/accordion.js +0 -76
  115. package/dist/esm/components/accordion.js.map +0 -1
  116. package/dist/esm/components/alert.js +0 -67
  117. package/dist/esm/components/alert.js.map +0 -1
  118. package/dist/esm/components/avatar.js +0 -68
  119. package/dist/esm/components/avatar.js.map +0 -1
  120. package/dist/esm/components/badge.js +0 -48
  121. package/dist/esm/components/badge.js.map +0 -1
  122. package/dist/esm/components/breadcrumb.js +0 -13
  123. package/dist/esm/components/breadcrumb.js.map +0 -1
  124. package/dist/esm/components/button-group.js +0 -40
  125. package/dist/esm/components/button-group.js.map +0 -1
  126. package/dist/esm/components/button.js +0 -197
  127. package/dist/esm/components/button.js.map +0 -1
  128. package/dist/esm/components/calendar.js +0 -66
  129. package/dist/esm/components/calendar.js.map +0 -1
  130. package/dist/esm/components/card.js +0 -49
  131. package/dist/esm/components/card.js.map +0 -1
  132. package/dist/esm/components/checkbox.js +0 -110
  133. package/dist/esm/components/checkbox.js.map +0 -1
  134. package/dist/esm/components/code.js +0 -11
  135. package/dist/esm/components/code.js.map +0 -1
  136. package/dist/esm/components/cookie-consent.js +0 -25
  137. package/dist/esm/components/cookie-consent.js.map +0 -1
  138. package/dist/esm/components/divider.js +0 -14
  139. package/dist/esm/components/divider.js.map +0 -1
  140. package/dist/esm/components/dot.js +0 -61
  141. package/dist/esm/components/dot.js.map +0 -1
  142. package/dist/esm/components/footer.js +0 -29
  143. package/dist/esm/components/footer.js.map +0 -1
  144. package/dist/esm/components/forms.js +0 -217
  145. package/dist/esm/components/forms.js.map +0 -1
  146. package/dist/esm/components/header.js +0 -29
  147. package/dist/esm/components/header.js.map +0 -1
  148. package/dist/esm/components/icon-button.js +0 -7
  149. package/dist/esm/components/icon-button.js.map +0 -1
  150. package/dist/esm/components/icon.js +0 -10
  151. package/dist/esm/components/icon.js.map +0 -1
  152. package/dist/esm/components/kbd.js +0 -11
  153. package/dist/esm/components/kbd.js.map +0 -1
  154. package/dist/esm/components/link.js +0 -19
  155. package/dist/esm/components/link.js.map +0 -1
  156. package/dist/esm/components/message.js +0 -53
  157. package/dist/esm/components/message.js.map +0 -1
  158. package/dist/esm/components/modal.js +0 -25
  159. package/dist/esm/components/modal.js.map +0 -1
  160. package/dist/esm/components/notification.js +0 -48
  161. package/dist/esm/components/notification.js.map +0 -1
  162. package/dist/esm/components/pagination.js +0 -56
  163. package/dist/esm/components/pagination.js.map +0 -1
  164. package/dist/esm/components/radio.js +0 -88
  165. package/dist/esm/components/radio.js.map +0 -1
  166. package/dist/esm/components/switch.js +0 -98
  167. package/dist/esm/components/switch.js.map +0 -1
  168. package/dist/esm/components/table.js +0 -13
  169. package/dist/esm/components/table.js.map +0 -1
  170. package/dist/esm/components/tag.js +0 -84
  171. package/dist/esm/components/tag.js.map +0 -1
  172. package/dist/esm/components/types.js +0 -3
  173. package/dist/esm/components/types.js.map +0 -1
  174. package/dist/esm/components/user-menu.js +0 -23
  175. package/dist/esm/components/user-menu.js.map +0 -1
  176. package/dist/esm/components/zebratable.js +0 -60
  177. package/dist/esm/components/zebratable.js.map +0 -1
  178. package/dist/esm/index.js +0 -327
  179. package/dist/esm/index.js.map +0 -1
  180. package/dist/esm/with-opacity.js +0 -10
  181. package/dist/esm/with-opacity.js.map +0 -1
  182. package/dist/types/accordion/index.d.ts +0 -1
  183. package/dist/types/accordion/src/accordion.d.ts +0 -17
  184. package/dist/types/accordion/src/index.d.ts +0 -1
  185. package/dist/types/accordion/src/styles.d.ts +0 -1
  186. package/dist/types/accordion/stories/accordion.stories.d.ts +0 -40
  187. package/dist/types/alert/index.d.ts +0 -1
  188. package/dist/types/alert/src/alert.d.ts +0 -15
  189. package/dist/types/alert/src/index.d.ts +0 -8
  190. package/dist/types/alert/src/styles.d.ts +0 -2
  191. package/dist/types/breadcrumb/index.d.ts +0 -1
  192. package/dist/types/breadcrumb/src/breadcrumb.d.ts +0 -34
  193. package/dist/types/breadcrumb/src/index.d.ts +0 -10
  194. package/dist/types/breadcrumb/stories/breadcrumb.stories.d.ts +0 -28
  195. package/dist/types/button/index.d.ts +0 -1
  196. package/dist/types/button/src/button-group.d.ts +0 -20
  197. package/dist/types/button/src/button.d.ts +0 -21
  198. package/dist/types/button/src/icon-button.d.ts +0 -17
  199. package/dist/types/button/src/index.d.ts +0 -10
  200. package/dist/types/button/src/styles.d.ts +0 -1
  201. package/dist/types/button/stories/announcement.d.ts +0 -6
  202. package/dist/types/button/stories/button-group.stories.d.ts +0 -14
  203. package/dist/types/button/stories/button.stories.d.ts +0 -127
  204. package/dist/types/button/stories/icon-button.stories.d.ts +0 -16
  205. package/dist/types/card/index.d.ts +0 -1
  206. package/dist/types/card/src/card.d.ts +0 -38
  207. package/dist/types/card/src/index.d.ts +0 -1
  208. package/dist/types/card/src/styles.d.ts +0 -1
  209. package/dist/types/card/stories/card.stories.d.ts +0 -56
  210. package/dist/types/checkbox/index.d.ts +0 -1
  211. package/dist/types/checkbox/src/checkbox-group.d.ts +0 -36
  212. package/dist/types/checkbox/src/checkbox.d.ts +0 -46
  213. package/dist/types/checkbox/src/index.d.ts +0 -9
  214. package/dist/types/checkbox/src/styles.d.ts +0 -2
  215. package/dist/types/checkbox/stories/checkbox.stories.d.ts +0 -103
  216. package/dist/types/cookie-consent/index.d.ts +0 -1
  217. package/dist/types/cookie-consent/src/cookie-consent.d.ts +0 -37
  218. package/dist/types/cookie-consent/src/index.d.ts +0 -1
  219. package/dist/types/cookie-consent/src/styles.d.ts +0 -1
  220. package/dist/types/core/src/colors.d.ts +0 -1
  221. package/dist/types/core/src/components/accordion.d.ts +0 -3
  222. package/dist/types/core/src/components/alert.d.ts +0 -3
  223. package/dist/types/core/src/components/avatar.d.ts +0 -3
  224. package/dist/types/core/src/components/badge.d.ts +0 -3
  225. package/dist/types/core/src/components/breadcrumb.d.ts +0 -3
  226. package/dist/types/core/src/components/button-group.d.ts +0 -3
  227. package/dist/types/core/src/components/button.d.ts +0 -3
  228. package/dist/types/core/src/components/calendar.d.ts +0 -3
  229. package/dist/types/core/src/components/card.d.ts +0 -3
  230. package/dist/types/core/src/components/checkbox.d.ts +0 -3
  231. package/dist/types/core/src/components/code.d.ts +0 -3
  232. package/dist/types/core/src/components/cookie-consent.d.ts +0 -3
  233. package/dist/types/core/src/components/divider.d.ts +0 -3
  234. package/dist/types/core/src/components/dot.d.ts +0 -3
  235. package/dist/types/core/src/components/footer.d.ts +0 -3
  236. package/dist/types/core/src/components/forms.d.ts +0 -3
  237. package/dist/types/core/src/components/header.d.ts +0 -3
  238. package/dist/types/core/src/components/icon-button.d.ts +0 -3
  239. package/dist/types/core/src/components/icon.d.ts +0 -3
  240. package/dist/types/core/src/components/kbd.d.ts +0 -3
  241. package/dist/types/core/src/components/link.d.ts +0 -3
  242. package/dist/types/core/src/components/message.d.ts +0 -3
  243. package/dist/types/core/src/components/modal.d.ts +0 -3
  244. package/dist/types/core/src/components/notification.d.ts +0 -3
  245. package/dist/types/core/src/components/pagination.d.ts +0 -3
  246. package/dist/types/core/src/components/radio.d.ts +0 -3
  247. package/dist/types/core/src/components/switch.d.ts +0 -3
  248. package/dist/types/core/src/components/table.d.ts +0 -3
  249. package/dist/types/core/src/components/tag.d.ts +0 -3
  250. package/dist/types/core/src/components/types.d.ts +0 -5
  251. package/dist/types/core/src/components/user-menu.d.ts +0 -3
  252. package/dist/types/core/src/components/zebratable.d.ts +0 -3
  253. package/dist/types/core/src/index.d.ts +0 -1
  254. package/dist/types/core/src/with-opacity.d.ts +0 -3
  255. package/dist/types/divider/index.d.ts +0 -1
  256. package/dist/types/divider/src/divider.d.ts +0 -9
  257. package/dist/types/divider/src/index.d.ts +0 -1
  258. package/dist/types/divider/stories/divider.stories.d.ts +0 -33
  259. package/dist/types/dot/index.d.ts +0 -1
  260. package/dist/types/dot/src/dot.d.ts +0 -12
  261. package/dist/types/dot/src/index.d.ts +0 -1
  262. package/dist/types/dot/src/styles.d.ts +0 -1
  263. package/dist/types/dot/stories/dot.stories.d.ts +0 -15
  264. package/dist/types/footer/index.d.ts +0 -1
  265. package/dist/types/footer/src/footer.d.ts +0 -11
  266. package/dist/types/footer/src/index.d.ts +0 -1
  267. package/dist/types/footer/stories/footer.stories.d.ts +0 -95
  268. package/dist/types/forms/index.d.ts +0 -1
  269. package/dist/types/forms/src/calendar/index.d.ts +0 -12
  270. package/dist/types/forms/src/calendar/styles.d.ts +0 -1
  271. package/dist/types/forms/src/form-control/index.d.ts +0 -27
  272. package/dist/types/forms/src/form-error-message/index.d.ts +0 -9
  273. package/dist/types/forms/src/form-helper-text/index.d.ts +0 -9
  274. package/dist/types/forms/src/form-label/index.d.ts +0 -13
  275. package/dist/types/forms/src/index.d.ts +0 -8
  276. package/dist/types/forms/src/input/index.d.ts +0 -15
  277. package/dist/types/forms/src/input/input.d.ts +0 -30
  278. package/dist/types/forms/src/input/styles.d.ts +0 -1
  279. package/dist/types/forms/src/input-addon/index.d.ts +0 -13
  280. package/dist/types/forms/src/input-element/index.d.ts +0 -15
  281. package/dist/types/forms/src/input-group/index.d.ts +0 -11
  282. package/dist/types/forms/src/select/index.d.ts +0 -6
  283. package/dist/types/forms/src/select/styles.d.ts +0 -1
  284. package/dist/types/forms/src/textarea/index.d.ts +0 -13
  285. package/dist/types/forms/stories/calendar.stories.d.ts +0 -58
  286. package/dist/types/forms/stories/check.d.ts +0 -6
  287. package/dist/types/forms/stories/form-control.stories.d.ts +0 -16
  288. package/dist/types/forms/stories/input.stories.d.ts +0 -32
  289. package/dist/types/forms/stories/select.stories.d.ts +0 -118
  290. package/dist/types/forms/stories/textarea.stories.d.ts +0 -23
  291. package/dist/types/header/index.d.ts +0 -1
  292. package/dist/types/header/src/header.d.ts +0 -13
  293. package/dist/types/header/src/index.d.ts +0 -1
  294. package/dist/types/header/stories/header.stories.d.ts +0 -118
  295. package/dist/types/icon/index.d.ts +0 -1
  296. package/dist/types/icon/src/core.d.ts +0 -10
  297. package/dist/types/icon/src/icon.d.ts +0 -14
  298. package/dist/types/icon/src/index.d.ts +0 -2
  299. package/dist/types/icon/stories/icon.stories.d.ts +0 -12
  300. package/dist/types/image/index.d.ts +0 -1
  301. package/dist/types/image/src/image.d.ts +0 -28
  302. package/dist/types/image/src/index.d.ts +0 -2
  303. package/dist/types/image/src/use-image.d.ts +0 -52
  304. package/dist/types/image/stories/image.stories.d.ts +0 -12
  305. package/dist/types/link/index.d.ts +0 -1
  306. package/dist/types/link/src/index.d.ts +0 -1
  307. package/dist/types/link/src/link.d.ts +0 -12
  308. package/dist/types/link/stories/link.stories.d.ts +0 -46
  309. package/dist/types/message/index.d.ts +0 -1
  310. package/dist/types/message/src/index.d.ts +0 -1
  311. package/dist/types/message/src/message.d.ts +0 -2
  312. package/dist/types/message/stories/message.stories.d.ts +0 -11
  313. package/dist/types/notification/index.d.ts +0 -1
  314. package/dist/types/notification/src/index.d.ts +0 -1
  315. package/dist/types/notification/src/notification.d.ts +0 -5
  316. package/dist/types/notification/stories/notification.stories.d.ts +0 -11
  317. package/dist/types/pagination/index.d.ts +0 -1
  318. package/dist/types/pagination/src/index.d.ts +0 -1
  319. package/dist/types/pagination/src/pagination.d.ts +0 -11
  320. package/dist/types/pagination/src/styles.d.ts +0 -1
  321. package/dist/types/pagination/stories/pagination.stories.d.ts +0 -75
  322. package/dist/types/radio/index.d.ts +0 -1
  323. package/dist/types/radio/src/index.d.ts +0 -9
  324. package/dist/types/radio/src/radio-group.d.ts +0 -41
  325. package/dist/types/radio/src/radio.d.ts +0 -45
  326. package/dist/types/radio/src/styles.d.ts +0 -2
  327. package/dist/types/radio/stories/radio-group.stories.d.ts +0 -75
  328. package/dist/types/radio/stories/radio.stories.d.ts +0 -104
  329. package/dist/types/react/index.d.ts +0 -1
  330. package/dist/types/react/src/index.d.ts +0 -26
  331. package/dist/types/spinner/index.d.ts +0 -1
  332. package/dist/types/spinner/src/index.d.ts +0 -1
  333. package/dist/types/spinner/src/spinner.d.ts +0 -8
  334. package/dist/types/spinner/src/styles.d.ts +0 -2
  335. package/dist/types/spinner/stories/spinner.stories.d.ts +0 -13
  336. package/dist/types/switch/index.d.ts +0 -1
  337. package/dist/types/switch/src/index.d.ts +0 -1
  338. package/dist/types/switch/src/styles.d.ts +0 -2
  339. package/dist/types/switch/src/switch.d.ts +0 -42
  340. package/dist/types/switch/stories/switch.stories.d.ts +0 -76
  341. package/dist/types/table/index.d.ts +0 -1
  342. package/dist/types/table/src/index.d.ts +0 -1
  343. package/dist/types/table/src/styles.d.ts +0 -1
  344. package/dist/types/table/src/zebratable.d.ts +0 -33
  345. package/dist/types/table/stories/zebratable.stories.d.ts +0 -69
  346. package/dist/types/tag/index.d.ts +0 -1
  347. package/dist/types/tag/src/index.d.ts +0 -1
  348. package/dist/types/tag/src/styles.d.ts +0 -1
  349. package/dist/types/tag/src/tag.d.ts +0 -13
  350. package/dist/types/tag/stories/tag.stories.d.ts +0 -86
  351. package/dist/types/theme/index.d.ts +0 -1
  352. package/dist/types/theme/src/colors.d.ts +0 -272
  353. package/dist/types/theme/src/create-memo-class.d.ts +0 -1
  354. package/dist/types/theme/src/create-theme-vars/calc.d.ts +0 -19
  355. package/dist/types/theme/src/create-theme-vars/create-theme-vars.d.ts +0 -9
  356. package/dist/types/theme/src/create-theme-vars/css-var.d.ts +0 -7
  357. package/dist/types/theme/src/create-theme-vars/index.d.ts +0 -4
  358. package/dist/types/theme/src/create-theme-vars/theme-tokens.d.ts +0 -10
  359. package/dist/types/theme/src/create-theme-vars/to-css-var.d.ts +0 -2
  360. package/dist/types/theme/src/default-theme.d.ts +0 -4
  361. package/dist/types/theme/src/gui-provider.d.ts +0 -16
  362. package/dist/types/theme/src/index.d.ts +0 -6
  363. package/dist/types/theme/src/types.d.ts +0 -56
  364. package/dist/types/theme/src/use-safe-effect.d.ts +0 -2
  365. package/dist/types/theme/src/utils.d.ts +0 -1
  366. package/dist/types/toast/index.d.ts +0 -1
  367. package/dist/types/toast/src/index.d.ts +0 -1
  368. package/dist/types/toast/src/toast.d.ts +0 -62
  369. package/dist/types/toasted-notes/index.d.ts +0 -1
  370. package/dist/types/toasted-notes/src/Alert.d.ts +0 -8
  371. package/dist/types/toasted-notes/src/Message.d.ts +0 -26
  372. package/dist/types/toasted-notes/src/Positions.d.ts +0 -9
  373. package/dist/types/toasted-notes/src/Toast.d.ts +0 -13
  374. package/dist/types/toasted-notes/src/ToastManager.d.ts +0 -45
  375. package/dist/types/toasted-notes/src/index.d.ts +0 -4
  376. package/dist/types/toasted-notes/src/useTimeout.d.ts +0 -3
  377. package/dist/types/user-menu/index.d.ts +0 -1
  378. package/dist/types/user-menu/src/index.d.ts +0 -6
  379. package/dist/types/user-menu/src/styles.d.ts +0 -1
  380. package/dist/types/user-menu/src/user-menu.d.ts +0 -21
  381. package/dist/types/user-menu/stories/announcement.d.ts +0 -6
  382. package/dist/types/user-menu/stories/user-menu.stories.d.ts +0 -5
  383. package/dist/types/utils/index.d.ts +0 -1
  384. package/dist/types/utils/src/assertion.d.ts +0 -4
  385. package/dist/types/utils/src/children.d.ts +0 -8
  386. package/dist/types/utils/src/color.d.ts +0 -9
  387. package/dist/types/utils/src/index.d.ts +0 -10
  388. package/dist/types/utils/src/object.d.ts +0 -6
  389. package/dist/types/utils/src/refs.d.ts +0 -5
  390. package/dist/types/utils/src/slug.d.ts +0 -1
  391. package/dist/types/utils/src/types.d.ts +0 -13
  392. package/dist/types/utils/src/walk-object.d.ts +0 -5
  393. package/dist/types/visually-hidden/index.d.ts +0 -1
  394. package/dist/types/visually-hidden/src/index.d.ts +0 -32
  395. package/src/components/menu.js +0 -171
package/dist/cjs/index.js DELETED
@@ -1,282 +0,0 @@
1
- "use strict";
2
-
3
- var _accordion = _interopRequireDefault(require("./components/accordion"));
4
-
5
- var _theme = require("@sk-web-gui/theme");
6
-
7
- var _withOpacity = require("./with-opacity");
8
-
9
- var _plugin = _interopRequireDefault(require("tailwindcss/plugin"));
10
-
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
-
13
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
14
-
15
- var components = [// Alert,
16
- // Breadcrumb,
17
- // ButtonGroup,
18
- // Button,
19
- // Checkbox,
20
- // Dot,
21
- // Forms,
22
- // Calendar,
23
- // IconButton,
24
- // Icon,
25
- // Link,
26
- // Message,
27
- // NotificationToast,
28
- // Radio,
29
- // Switch,
30
- // Table,
31
- // ZebraTable,
32
- // CookieConsent,
33
- // Modal,
34
- _accordion["default"] // Card,
35
- // Divider,
36
- // UserMenu,
37
- // Tag,
38
- // Pagination,
39
- // Footer,
40
- // Header,
41
- ];
42
- var defaultColors = ['primary', 'secondary'];
43
- var themeColors = _theme.colors;
44
- module.exports = _plugin["default"].withOptions(function (options) {
45
- if (options === void 0) {
46
- options = {
47
- colors: [],
48
- cssBase: true
49
- };
50
- }
51
-
52
- return function (_ref) {
53
- var addComponents = _ref.addComponents,
54
- addVariant = _ref.addVariant,
55
- addBase = _ref.addBase,
56
- e = _ref.e;
57
- var optionColors = [].concat(defaultColors, options.colors || []);
58
- active({
59
- addVariant: addVariant,
60
- e: e
61
- });
62
- selected({
63
- addVariant: addVariant,
64
- e: e
65
- });
66
- disabled({
67
- addVariant: addVariant,
68
- e: e
69
- });
70
- addComponents(components.map(function (component) {
71
- component(optionColors);
72
- }), {
73
- respectPrefix: false
74
- });
75
-
76
- if (options.cssBase) {
77
- addBase({
78
- html: {
79
- '@apply text-foreground antialiased bg-base': {},
80
- fontSize: '62.5%',
81
- lineHeight: '1.5',
82
- textRendering: 'optimizeLegibility',
83
- textSizeAdjust: '100%',
84
- touchAction: 'manipulation'
85
- },
86
- body: {
87
- '@apply text-base leading-base': {},
88
- position: 'relative',
89
- minHeight: '100%',
90
- fontFeatureSettings: "'kern'"
91
- },
92
- 'h1,h2,h3,h4,h5,h6': {
93
- '@apply font-bold': {}
94
- },
95
- small: {
96
- fontSize: '1.4rem'
97
- },
98
- h1: {
99
- '@apply text-3xl leading-3xl': {}
100
- },
101
- h2: {
102
- '@apply text-2xl leading-2xl': {}
103
- },
104
- h3: {
105
- '@apply text-xl leading-xl': {}
106
- },
107
- h4: {
108
- '@apply text-lg leading-lg': {}
109
- },
110
- h5: {
111
- '@apply text-base leading-base': {}
112
- },
113
- h6: {
114
- '@apply text-sm leading-sm': {}
115
- },
116
- p: {
117
- '@apply my-4': {}
118
- },
119
- '.text-content': {
120
- '@apply max-w-[80rem]': {},
121
- h1: {
122
- '@apply mb-md': {},
123
- '+ p': {
124
- '@apply mb-[40px] mt-0': {}
125
- }
126
- },
127
- h2: {
128
- '@apply mt-lg': {}
129
- },
130
- h3: {
131
- '@apply mt-lg': {}
132
- },
133
- h4: {
134
- '@apply mt-lg': {}
135
- },
136
- h5: {
137
- '@apply mt-lg': {}
138
- },
139
- h6: {
140
- '@apply mt-lg': {}
141
- },
142
- p: {
143
- '@apply mt-sm leading-[1.5]': {}
144
- }
145
- }
146
- });
147
- }
148
- };
149
- }, function () {
150
- return {
151
- content: [''],
152
- theme: {
153
- fontSize: {
154
- tiny: '1rem',
155
- xs: '1.2rem',
156
- sm: '1.4rem',
157
- base: '1.6rem',
158
- lg: '1.8rem',
159
- xl: '2.0rem',
160
- '2xl': '2.4rem',
161
- '3xl': '3.2rem',
162
- '4xl': '4.0rem',
163
- '5xl': '5.2rem'
164
- },
165
- extend: {
166
- colors: _extends({}, themeColors, {
167
- current: 'currentColor'
168
- }),
169
- cursor: {
170
- base: 'var(--vc-cursor)'
171
- },
172
- spacing: {
173
- xs: '4px',
174
- sm: '8px',
175
- md: '16px',
176
- lg: '24px',
177
- xl: '48px'
178
- },
179
- lineHeight: {
180
- tiny: '1.4rem',
181
- xs: '1.6rem',
182
- sm: '2rem',
183
- base: '2.4rem',
184
- lg: '2.4rem',
185
- xl: '3.2rem',
186
- '2xl': '3.2rem',
187
- '3xl': '4rem',
188
- '4xl': '4.8rem',
189
- '5xl': '5.8rem'
190
- },
191
- opacity: {
192
- 15: '0.15'
193
- },
194
- backgroundColor: {
195
- base: (0, _withOpacity.withOpacity)('--vc-colors-bg-base'),
196
- fill: (0, _withOpacity.withOpacity)('--vc-colors-bg-fill')
197
- },
198
- textColor: {
199
- foreground: (0, _withOpacity.withOpacity)('--vc-colors-text-foreground'),
200
- muted: (0, _withOpacity.withOpacity)('--vc-colors-text-muted')
201
- },
202
- borderRadius: {
203
- base: 'var(--vc-rounded)'
204
- },
205
- zIndex: {
206
- hide: '-1',
207
- none: '0',
208
- base: '1',
209
- docked: '10',
210
- dropdown: '1000',
211
- sticky: '1100',
212
- banner: '1200',
213
- overlay: '1300',
214
- modal: '1400',
215
- popover: '1500',
216
- skipLink: '1600',
217
- toast: '1700',
218
- tooltip: '1800'
219
- }
220
- }
221
- },
222
- variants: {
223
- extend: {
224
- boxShadow: ['disabled'],
225
- cursor: ['disabled'],
226
- opacity: ['active', 'disabled'],
227
- textColor: ['active', 'disabled:hover'],
228
- textDecoration: ['disabled'],
229
- backgroundColor: ['disabled'],
230
- borderColor: ['disabled']
231
- }
232
- }
233
- };
234
- });
235
-
236
- function active(_ref2) {
237
- var addVariant = _ref2.addVariant,
238
- e = _ref2.e;
239
- addVariant('active', function (_ref3) {
240
- var modifySelectors = _ref3.modifySelectors,
241
- separator = _ref3.separator;
242
- modifySelectors(function (_ref4) {
243
- var className = _ref4.className;
244
- return "." + e("active" + separator + className) + ":active, ." + e("active" + separator + className) + "[data-active=true]";
245
- });
246
- });
247
- }
248
-
249
- function selected(_ref5) {
250
- var addVariant = _ref5.addVariant,
251
- e = _ref5.e;
252
- addVariant('selected', function (_ref6) {
253
- var modifySelectors = _ref6.modifySelectors,
254
- separator = _ref6.separator;
255
- modifySelectors(function (_ref7) {
256
- var className = _ref7.className;
257
- return "." + e("selected" + separator + className) + "[aria-selected=true]";
258
- });
259
- });
260
- }
261
-
262
- function disabled(_ref8) {
263
- var addVariant = _ref8.addVariant,
264
- e = _ref8.e;
265
- addVariant('disabled', function (_ref9) {
266
- var modifySelectors = _ref9.modifySelectors,
267
- separator = _ref9.separator;
268
- modifySelectors(function (_ref10) {
269
- var className = _ref10.className;
270
- return "." + e("disabled" + separator + className) + "[aria-disabled=true]";
271
- });
272
- });
273
- addVariant('disabled:hover', function (_ref11) {
274
- var modifySelectors = _ref11.modifySelectors,
275
- separator = _ref11.separator;
276
- modifySelectors(function (_ref12) {
277
- var className = _ref12.className;
278
- return "." + e("disabled:hover" + separator + className) + "[aria-disabled=true]";
279
- });
280
- });
281
- }
282
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","names":["components","Accordion","defaultColors","themeColors","colors","module","exports","plugin","withOptions","options","cssBase","addComponents","addVariant","addBase","e","optionColors","active","selected","disabled","map","component","respectPrefix","html","fontSize","lineHeight","textRendering","textSizeAdjust","touchAction","body","position","minHeight","fontFeatureSettings","small","h1","h2","h3","h4","h5","h6","p","content","theme","tiny","xs","sm","base","lg","xl","extend","current","cursor","spacing","md","opacity","backgroundColor","withOpacity","fill","textColor","foreground","muted","borderRadius","zIndex","hide","none","docked","dropdown","sticky","banner","overlay","modal","popover","skipLink","toast","tooltip","variants","boxShadow","textDecoration","borderColor","modifySelectors","separator","className"],"sources":["../../src/index.ts"],"sourcesContent":["// components\n// import Alert from './components/alert';\n// import Breadcrumb from './components/breadcrumb';\n// import ButtonGroup from './components/button-group';\n\n// import Checkbox from './components/checkbox';\n// import Dot from './components/dot';\n// import Forms from './components/forms';\n// import Calendar from './components/calendar';\n// import IconButton from './components/icon-button';\n// import Icon from './components/icon';\n// import Link from './components/link';\n// import Message from './components/message';\n// import NotificationToast from './components/notification';\n// import Radio from './components/radio';\n// import Switch from './components/switch';\n\n// import Button from './components/button';\nimport Accordion from './components/accordion';\n// import Card from './components/card';\n// import Table from './components/table';\n// import ZebraTable from './components/zebratable';\n\n// import Modal from './components/modal';\n// import CookieConsent from './components/cookie-consent';\n// import Divider from './components/divider';\n\n// import UserMenu from './components/user-menu';\n\n// import Tag from './components/tag';\n// import Pagination from './components/pagination';\n// import Footer from './components/footer';\n// import Header from './components/header';\n\n// const { = require(} from './../../theme/src/colors');\n// import { colors } from '@sk-web-gui/theme';\nimport { colors } from '@sk-web-gui/theme';\nimport { withOpacity } from './with-opacity';\nimport plugin from 'tailwindcss/plugin';\nimport { tailwindModuleType } from './components/types';\nimport { Config } from 'tailwindcss/types/config';\n\nconst components: ((colors: string[]) => tailwindModuleType)[] = [\n // Alert,\n // Breadcrumb,\n // ButtonGroup,\n // Button,\n // Checkbox,\n // Dot,\n // Forms,\n // Calendar,\n // IconButton,\n // Icon,\n // Link,\n // Message,\n // NotificationToast,\n // Radio,\n // Switch,\n\n // Table,\n // ZebraTable,\n // CookieConsent,\n // Modal,\n\n Accordion,\n // Card,\n // Divider,\n\n // UserMenu,\n\n // Tag,\n // Pagination,\n // Footer,\n // Header,\n];\n\nconst defaultColors = ['primary', 'secondary'];\nconst themeColors = colors;\n\ntype AlfaType = (s: { className: string }) => string;\ntype AddVariantType = (\n s1: string,\n s2: (s: { modifySelectors: (arg: AlfaType) => void; separator: string }) => void\n) => string;\ntype PluginAPIType = { addVariant: AddVariantType; e: (className: string) => string };\n\nmodule.exports = plugin.withOptions(\n function (options: { colors: string[]; cssBase: boolean } = { colors: [], cssBase: true }) {\n return function ({ addComponents, addVariant, addBase, e }) {\n const optionColors = [...defaultColors, ...(options.colors || [])];\n\n active({ addVariant, e } as PluginAPIType);\n selected({ addVariant, e } as PluginAPIType);\n disabled({ addVariant, e } as PluginAPIType);\n\n addComponents(\n components.map((component) => {\n component(optionColors);\n }),\n {\n respectPrefix: false,\n }\n );\n\n if (options.cssBase) {\n addBase({\n html: {\n '@apply text-foreground antialiased bg-base': {},\n fontSize: '62.5%',\n lineHeight: '1.5',\n textRendering: 'optimizeLegibility',\n textSizeAdjust: '100%',\n touchAction: 'manipulation',\n },\n body: {\n '@apply text-base leading-base': {},\n position: 'relative',\n minHeight: '100%',\n fontFeatureSettings: \"'kern'\",\n },\n 'h1,h2,h3,h4,h5,h6': {\n '@apply font-bold': {},\n },\n small: {\n fontSize: '1.4rem',\n },\n h1: { '@apply text-3xl leading-3xl': {} },\n h2: { '@apply text-2xl leading-2xl': {} },\n h3: { '@apply text-xl leading-xl': {} },\n h4: { '@apply text-lg leading-lg': {} },\n h5: { '@apply text-base leading-base': {} },\n h6: { '@apply text-sm leading-sm': {} },\n p: { '@apply my-4': {} },\n\n '.text-content': {\n '@apply max-w-[80rem]': {},\n\n h1: {\n '@apply mb-md': {},\n\n '+ p': {\n '@apply mb-[40px] mt-0': {},\n },\n },\n h2: { '@apply mt-lg': {} },\n h3: { '@apply mt-lg': {} },\n h4: { '@apply mt-lg': {} },\n h5: { '@apply mt-lg': {} },\n h6: { '@apply mt-lg': {} },\n p: { '@apply mt-sm leading-[1.5]': {} },\n },\n });\n }\n };\n },\n function (): Config {\n return {\n content: [''],\n theme: {\n fontSize: {\n tiny: '1rem',\n xs: '1.2rem',\n sm: '1.4rem',\n base: '1.6rem',\n lg: '1.8rem',\n xl: '2.0rem',\n '2xl': '2.4rem',\n '3xl': '3.2rem',\n '4xl': '4.0rem',\n '5xl': '5.2rem',\n },\n extend: {\n colors: {\n ...themeColors,\n current: 'currentColor',\n },\n cursor: {\n base: 'var(--vc-cursor)',\n },\n spacing: {\n xs: '4px',\n sm: '8px',\n md: '16px',\n lg: '24px',\n xl: '48px',\n },\n lineHeight: {\n tiny: '1.4rem',\n xs: '1.6rem',\n sm: '2rem',\n base: '2.4rem',\n lg: '2.4rem',\n xl: '3.2rem',\n '2xl': '3.2rem',\n '3xl': '4rem',\n '4xl': '4.8rem',\n '5xl': '5.8rem',\n },\n opacity: {\n 15: '0.15',\n },\n backgroundColor: {\n base: withOpacity('--vc-colors-bg-base') as unknown as string,\n fill: withOpacity('--vc-colors-bg-fill') as unknown as string,\n },\n textColor: {\n foreground: withOpacity('--vc-colors-text-foreground') as unknown as string,\n muted: withOpacity('--vc-colors-text-muted') as unknown as string,\n },\n borderRadius: {\n base: 'var(--vc-rounded)',\n },\n zIndex: {\n hide: '-1',\n none: '0',\n base: '1',\n docked: '10',\n dropdown: '1000',\n sticky: '1100',\n banner: '1200',\n overlay: '1300',\n modal: '1400',\n popover: '1500',\n skipLink: '1600',\n toast: '1700',\n tooltip: '1800',\n },\n },\n },\n variants: {\n extend: {\n boxShadow: ['disabled'],\n cursor: ['disabled'],\n opacity: ['active', 'disabled'],\n textColor: ['active', 'disabled:hover'],\n textDecoration: ['disabled'],\n backgroundColor: ['disabled'],\n borderColor: ['disabled'],\n },\n },\n };\n }\n);\n\nfunction active({ addVariant, e }: PluginAPIType) {\n addVariant('active', ({ modifySelectors, separator }) => {\n modifySelectors(({ className }) => {\n return `.${e(`active${separator}${className}`)}:active, .${e(\n `active${separator}${className}`\n )}[data-active=true]`;\n });\n });\n}\n\nfunction selected({ addVariant, e }: PluginAPIType) {\n addVariant('selected', ({ modifySelectors, separator }) => {\n modifySelectors(({ className }) => {\n return `.${e(`selected${separator}${className}`)}[aria-selected=true]`;\n });\n });\n}\n\nfunction disabled({ addVariant, e }: PluginAPIType) {\n addVariant('disabled', ({ modifySelectors, separator }) => {\n modifySelectors(({ className }) => {\n return `.${e(`disabled${separator}${className}`)}[aria-disabled=true]`;\n });\n });\n addVariant('disabled:hover', ({ modifySelectors, separator }) => {\n modifySelectors(({ className }) => {\n return `.${e(`disabled:hover${separator}${className}`)}[aria-disabled=true]`;\n });\n });\n}\n"],"mappings":";;AAkBA;;AAkBA;;AACA;;AACA;;;;;;AAIA,IAAMA,UAAwD,GAAG,CAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEAC,qBAtB+D,CAuB/D;AACA;AAEA;AAEA;AACA;AACA;AACA;AA/B+D,CAAjE;AAkCA,IAAMC,aAAa,GAAG,CAAC,SAAD,EAAY,WAAZ,CAAtB;AACA,IAAMC,WAAW,GAAGC,aAApB;AASAC,MAAM,CAACC,OAAP,GAAiBC,kBAAA,CAAOC,WAAP,CACf,UAAUC,OAAV,EAA2F;EAAA,IAAjFA,OAAiF;IAAjFA,OAAiF,GAA/B;MAAEL,MAAM,EAAE,EAAV;MAAcM,OAAO,EAAE;IAAvB,CAA+B;EAAA;;EACzF,OAAO,gBAAqD;IAAA,IAAzCC,aAAyC,QAAzCA,aAAyC;IAAA,IAA1BC,UAA0B,QAA1BA,UAA0B;IAAA,IAAdC,OAAc,QAAdA,OAAc;IAAA,IAALC,CAAK,QAALA,CAAK;IAC1D,IAAMC,YAAY,aAAOb,aAAP,EAA0BO,OAAO,CAACL,MAAR,IAAkB,EAA5C,CAAlB;IAEAY,MAAM,CAAC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,CAAC,oBAAkBiE,SAAlB,GAA8BC,SAA9B,CAAZ;IACD,CAFc,CAAf;EAGD,CAJS,CAAV;AAKD"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.withOpacity = void 0;
5
-
6
- var withOpacity = function withOpacity(variableName) {
7
- return function (_ref) {
8
- var opacityValue = _ref.opacityValue;
9
- if (opacityValue) return "rgba(var(" + variableName + "), " + opacityValue + ")";
10
- return "rgb(var(" + variableName + "))";
11
- };
12
- };
13
-
14
- exports.withOpacity = withOpacity;
15
- //# sourceMappingURL=with-opacity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"with-opacity.js","names":["withOpacity","variableName","opacityValue"],"sources":["../../src/with-opacity.ts"],"sourcesContent":["export const withOpacity = (variableName: string) => {\n return ({ opacityValue }: { opacityValue: number }): string => {\n if (opacityValue) return `rgba(var(${variableName}), ${opacityValue})`;\n return `rgb(var(${variableName}))`;\n };\n};\n"],"mappings":";;;;;AAAO,IAAMA,WAAW,GAAG,SAAdA,WAAc,CAACC,YAAD,EAA0B;EACnD,OAAO,gBAAwD;IAAA,IAArDC,YAAqD,QAArDA,YAAqD;IAC7D,IAAIA,YAAJ,EAAkB,qBAAmBD,YAAnB,WAAqCC,YAArC;IAClB,oBAAkBD,YAAlB;EACD,CAHD;AAID,CALM"}
@@ -1,137 +0,0 @@
1
- import { withOpacity } from './with-opacity';
2
- module.exports = {
3
- primary: {
4
- DEFAULT: withOpacity('--vc-colors-primary-DEFAULT'),
5
- dark: withOpacity('--vc-colors-primary-dark'),
6
- light: withOpacity('--vc-colors-primary-light'),
7
- active: withOpacity('--vc-colors-primary-active'),
8
- 50: withOpacity('--vc-colors-primary-DEFAULT'),
9
- 100: withOpacity('--vc-colors-primary-DEFAULT'),
10
- 200: withOpacity('--vc-colors-primary-DEFAULT'),
11
- 300: withOpacity('--vc-colors-primary-DEFAULT'),
12
- 400: withOpacity('--vc-colors-primary-DEFAULT'),
13
- 500: withOpacity('--vc-colors-primary-DEFAULT'),
14
- 600: withOpacity('--vc-colors-primary-DEFAULT'),
15
- 700: withOpacity('--vc-colors-primary-DEFAULT'),
16
- 800: withOpacity('--vc-colors-primary-DEFAULT'),
17
- 900: withOpacity('--vc-colors-primary-DEFAULT')
18
- },
19
- secondary: {
20
- DEFAULT: withOpacity('--vc-colors-secondary-DEFAULT'),
21
- dark: withOpacity('--vc-colors-secondary-dark'),
22
- light: withOpacity('--vc-colors-secondary-light'),
23
- active: withOpacity('--vc-colors-secondary-active'),
24
- 50: withOpacity('--vc-colors-secondary-DEFAULT'),
25
- 100: withOpacity('--vc-colors-secondary-DEFAULT'),
26
- 200: withOpacity('--vc-colors-secondary-DEFAULT'),
27
- 300: withOpacity('--vc-colors-secondary-DEFAULT'),
28
- 400: withOpacity('--vc-colors-secondary-DEFAULT'),
29
- 500: withOpacity('--vc-colors-secondary-DEFAULT'),
30
- 600: withOpacity('--vc-colors-secondary-DEFAULT'),
31
- 700: withOpacity('--vc-colors-secondary-DEFAULT'),
32
- 800: withOpacity('--vc-colors-secondary-DEFAULT'),
33
- 900: withOpacity('--vc-colors-secondary-DEFAULT')
34
- },
35
- success: {
36
- DEFAULT: withOpacity('--vc-colors-success-DEFAULT'),
37
- dark: withOpacity('--vc-colors-success-dark'),
38
- light: withOpacity('--vc-colors-success-light'),
39
- active: withOpacity('--vc-colors-success-active'),
40
- 50: withOpacity('--vc-colors-success-DEFAULT'),
41
- 100: withOpacity('--vc-colors-success-DEFAULT'),
42
- 200: withOpacity('--vc-colors-success-DEFAULT'),
43
- 300: withOpacity('--vc-colors-success-DEFAULT'),
44
- 400: withOpacity('--vc-colors-success-DEFAULT'),
45
- 500: withOpacity('--vc-colors-success-DEFAULT'),
46
- 600: withOpacity('--vc-colors-success-DEFAULT'),
47
- 700: withOpacity('--vc-colors-success-DEFAULT'),
48
- 800: withOpacity('--vc-colors-success-DEFAULT'),
49
- 900: withOpacity('--vc-colors-success-DEFAULT')
50
- },
51
- info: {
52
- DEFAULT: withOpacity('--vc-colors-info-DEFAULT'),
53
- dark: withOpacity('--vc-colors-info-dark'),
54
- light: withOpacity('--vc-colors-info-light'),
55
- active: withOpacity('--vc-colors-info-active'),
56
- 50: withOpacity('--vc-colors-info-DEFAULT'),
57
- 100: withOpacity('--vc-colors-info-DEFAULT'),
58
- 200: withOpacity('--vc-colors-info-DEFAULT'),
59
- 300: withOpacity('--vc-colors-info-DEFAULT'),
60
- 400: withOpacity('--vc-colors-info-DEFAULT'),
61
- 500: withOpacity('--vc-colors-info-DEFAULT'),
62
- 600: withOpacity('--vc-colors-info-DEFAULT'),
63
- 700: withOpacity('--vc-colors-info-DEFAULT'),
64
- 800: withOpacity('--vc-colors-info-DEFAULT'),
65
- 900: withOpacity('--vc-colors-info-DEFAULT')
66
- },
67
- warning: {
68
- DEFAULT: withOpacity('--vc-colors-warning-DEFAULT'),
69
- dark: withOpacity('--vc-colors-warning-dark'),
70
- light: withOpacity('--vc-colors-warning-light'),
71
- active: withOpacity('--vc-colors-warning-active'),
72
- 50: withOpacity('--vc-colors-warning-DEFAULT'),
73
- 100: withOpacity('--vc-colors-warning-DEFAULT'),
74
- 200: withOpacity('--vc-colors-warning-DEFAULT'),
75
- 300: withOpacity('--vc-colors-warning-DEFAULT'),
76
- 400: withOpacity('--vc-colors-warning-DEFAULT'),
77
- 500: withOpacity('--vc-colors-warning-DEFAULT'),
78
- 600: withOpacity('--vc-colors-warning-DEFAULT'),
79
- 700: withOpacity('--vc-colors-warning-DEFAULT'),
80
- 800: withOpacity('--vc-colors-warning-DEFAULT'),
81
- 900: withOpacity('--vc-colors-warning-DEFAULT')
82
- },
83
- error: {
84
- DEFAULT: withOpacity('--vc-colors-error-DEFAULT'),
85
- dark: withOpacity('--vc-colors-error-dark'),
86
- light: withOpacity('--vc-colors-error-light'),
87
- active: withOpacity('--vc-colors-error-active'),
88
- 50: withOpacity('--vc-colors-error-DEFAULT'),
89
- 100: withOpacity('--vc-colors-error-DEFAULT'),
90
- 200: withOpacity('--vc-colors-error-DEFAULT'),
91
- 300: withOpacity('--vc-colors-error-DEFAULT'),
92
- 400: withOpacity('--vc-colors-error-DEFAULT'),
93
- 500: withOpacity('--vc-colors-error-DEFAULT'),
94
- 600: withOpacity('--vc-colors-error-DEFAULT'),
95
- 700: withOpacity('--vc-colors-error-DEFAULT'),
96
- 800: withOpacity('--vc-colors-error-DEFAULT'),
97
- 900: withOpacity('--vc-colors-error-DEFAULT')
98
- },
99
- neutral: {
100
- DEFAULT: withOpacity('--vc-colors-neutral'),
101
- 50: withOpacity('--vc-colors-neutral-50'),
102
- 100: withOpacity('--vc-colors-neutral-100'),
103
- 200: withOpacity('--vc-colors-neutral-200'),
104
- 300: withOpacity('--vc-colors-neutral-300'),
105
- 400: withOpacity('--vc-colors-neutral-400'),
106
- 500: withOpacity('--vc-colors-neutral-500'),
107
- 600: withOpacity('--vc-colors-neutral-600'),
108
- 700: withOpacity('--vc-colors-neutral-700'),
109
- 800: withOpacity('--vc-colors-neutral-800'),
110
- 900: withOpacity('--vc-colors-neutral-900')
111
- },
112
- whiteAlpha: {
113
- 50: 'rgba(255, 255, 255, 0.04)',
114
- 100: 'rgba(255, 255, 255, 0.06)',
115
- 200: 'rgba(255, 255, 255, 0.08)',
116
- 300: 'rgba(255, 255, 255, 0.16)',
117
- 400: 'rgba(255, 255, 255, 0.24)',
118
- 500: 'rgba(255, 255, 255, 0.36)',
119
- 600: 'rgba(255, 255, 255, 0.48)',
120
- 700: 'rgba(255, 255, 255, 0.64)',
121
- 800: 'rgba(255, 255, 255, 0.80)',
122
- 900: 'rgba(255, 255, 255, 0.92)'
123
- },
124
- blackAlpha: {
125
- 50: 'rgba(0, 0, 0, 0.04)',
126
- 100: 'rgba(0, 0, 0, 0.06)',
127
- 200: 'rgba(0, 0, 0, 0.08)',
128
- 300: 'rgba(0, 0, 0, 0.16)',
129
- 400: 'rgba(0, 0, 0, 0.24)',
130
- 500: 'rgba(0, 0, 0, 0.36)',
131
- 600: 'rgba(0, 0, 0, 0.48)',
132
- 700: 'rgba(0, 0, 0, 0.64)',
133
- 800: 'rgba(0, 0, 0, 0.80)',
134
- 900: 'rgba(0, 0, 0, 0.92)'
135
- }
136
- };
137
- //# sourceMappingURL=colors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"colors.js","names":["withOpacity","module","exports","primary","DEFAULT","dark","light","active","secondary","success","info","warning","error","neutral","whiteAlpha","blackAlpha"],"sources":["../../src/colors.ts"],"sourcesContent":["import { withOpacity } from './with-opacity';\n\nmodule.exports = {\n primary: {\n DEFAULT: withOpacity('--vc-colors-primary-DEFAULT'),\n dark: withOpacity('--vc-colors-primary-dark'),\n light: withOpacity('--vc-colors-primary-light'),\n active: withOpacity('--vc-colors-primary-active'),\n 50: withOpacity('--vc-colors-primary-DEFAULT'),\n 100: withOpacity('--vc-colors-primary-DEFAULT'),\n 200: withOpacity('--vc-colors-primary-DEFAULT'),\n 300: withOpacity('--vc-colors-primary-DEFAULT'),\n 400: withOpacity('--vc-colors-primary-DEFAULT'),\n 500: withOpacity('--vc-colors-primary-DEFAULT'),\n 600: withOpacity('--vc-colors-primary-DEFAULT'),\n 700: withOpacity('--vc-colors-primary-DEFAULT'),\n 800: withOpacity('--vc-colors-primary-DEFAULT'),\n 900: withOpacity('--vc-colors-primary-DEFAULT'),\n },\n\n secondary: {\n DEFAULT: withOpacity('--vc-colors-secondary-DEFAULT'),\n dark: withOpacity('--vc-colors-secondary-dark'),\n light: withOpacity('--vc-colors-secondary-light'),\n active: withOpacity('--vc-colors-secondary-active'),\n 50: withOpacity('--vc-colors-secondary-DEFAULT'),\n 100: withOpacity('--vc-colors-secondary-DEFAULT'),\n 200: withOpacity('--vc-colors-secondary-DEFAULT'),\n 300: withOpacity('--vc-colors-secondary-DEFAULT'),\n 400: withOpacity('--vc-colors-secondary-DEFAULT'),\n 500: withOpacity('--vc-colors-secondary-DEFAULT'),\n 600: withOpacity('--vc-colors-secondary-DEFAULT'),\n 700: withOpacity('--vc-colors-secondary-DEFAULT'),\n 800: withOpacity('--vc-colors-secondary-DEFAULT'),\n 900: withOpacity('--vc-colors-secondary-DEFAULT'),\n },\n\n success: {\n DEFAULT: withOpacity('--vc-colors-success-DEFAULT'),\n dark: withOpacity('--vc-colors-success-dark'),\n light: withOpacity('--vc-colors-success-light'),\n active: withOpacity('--vc-colors-success-active'),\n 50: withOpacity('--vc-colors-success-DEFAULT'),\n 100: withOpacity('--vc-colors-success-DEFAULT'),\n 200: withOpacity('--vc-colors-success-DEFAULT'),\n 300: withOpacity('--vc-colors-success-DEFAULT'),\n 400: withOpacity('--vc-colors-success-DEFAULT'),\n 500: withOpacity('--vc-colors-success-DEFAULT'),\n 600: withOpacity('--vc-colors-success-DEFAULT'),\n 700: withOpacity('--vc-colors-success-DEFAULT'),\n 800: withOpacity('--vc-colors-success-DEFAULT'),\n 900: withOpacity('--vc-colors-success-DEFAULT'),\n },\n\n info: {\n DEFAULT: withOpacity('--vc-colors-info-DEFAULT'),\n dark: withOpacity('--vc-colors-info-dark'),\n light: withOpacity('--vc-colors-info-light'),\n active: withOpacity('--vc-colors-info-active'),\n 50: withOpacity('--vc-colors-info-DEFAULT'),\n 100: withOpacity('--vc-colors-info-DEFAULT'),\n 200: withOpacity('--vc-colors-info-DEFAULT'),\n 300: withOpacity('--vc-colors-info-DEFAULT'),\n 400: withOpacity('--vc-colors-info-DEFAULT'),\n 500: withOpacity('--vc-colors-info-DEFAULT'),\n 600: withOpacity('--vc-colors-info-DEFAULT'),\n 700: withOpacity('--vc-colors-info-DEFAULT'),\n 800: withOpacity('--vc-colors-info-DEFAULT'),\n 900: withOpacity('--vc-colors-info-DEFAULT'),\n },\n\n warning: {\n DEFAULT: withOpacity('--vc-colors-warning-DEFAULT'),\n dark: withOpacity('--vc-colors-warning-dark'),\n light: withOpacity('--vc-colors-warning-light'),\n active: withOpacity('--vc-colors-warning-active'),\n 50: withOpacity('--vc-colors-warning-DEFAULT'),\n 100: withOpacity('--vc-colors-warning-DEFAULT'),\n 200: withOpacity('--vc-colors-warning-DEFAULT'),\n 300: withOpacity('--vc-colors-warning-DEFAULT'),\n 400: withOpacity('--vc-colors-warning-DEFAULT'),\n 500: withOpacity('--vc-colors-warning-DEFAULT'),\n 600: withOpacity('--vc-colors-warning-DEFAULT'),\n 700: withOpacity('--vc-colors-warning-DEFAULT'),\n 800: withOpacity('--vc-colors-warning-DEFAULT'),\n 900: withOpacity('--vc-colors-warning-DEFAULT'),\n },\n\n error: {\n DEFAULT: withOpacity('--vc-colors-error-DEFAULT'),\n dark: withOpacity('--vc-colors-error-dark'),\n light: withOpacity('--vc-colors-error-light'),\n active: withOpacity('--vc-colors-error-active'),\n 50: withOpacity('--vc-colors-error-DEFAULT'),\n 100: withOpacity('--vc-colors-error-DEFAULT'),\n 200: withOpacity('--vc-colors-error-DEFAULT'),\n 300: withOpacity('--vc-colors-error-DEFAULT'),\n 400: withOpacity('--vc-colors-error-DEFAULT'),\n 500: withOpacity('--vc-colors-error-DEFAULT'),\n 600: withOpacity('--vc-colors-error-DEFAULT'),\n 700: withOpacity('--vc-colors-error-DEFAULT'),\n 800: withOpacity('--vc-colors-error-DEFAULT'),\n 900: withOpacity('--vc-colors-error-DEFAULT'),\n },\n\n neutral: {\n DEFAULT: withOpacity('--vc-colors-neutral'),\n 50: withOpacity('--vc-colors-neutral-50'),\n 100: withOpacity('--vc-colors-neutral-100'),\n 200: withOpacity('--vc-colors-neutral-200'),\n 300: withOpacity('--vc-colors-neutral-300'),\n 400: withOpacity('--vc-colors-neutral-400'),\n 500: withOpacity('--vc-colors-neutral-500'),\n 600: withOpacity('--vc-colors-neutral-600'),\n 700: withOpacity('--vc-colors-neutral-700'),\n 800: withOpacity('--vc-colors-neutral-800'),\n 900: withOpacity('--vc-colors-neutral-900'),\n },\n\n whiteAlpha: {\n 50: 'rgba(255, 255, 255, 0.04)',\n 100: 'rgba(255, 255, 255, 0.06)',\n 200: 'rgba(255, 255, 255, 0.08)',\n 300: 'rgba(255, 255, 255, 0.16)',\n 400: 'rgba(255, 255, 255, 0.24)',\n 500: 'rgba(255, 255, 255, 0.36)',\n 600: 'rgba(255, 255, 255, 0.48)',\n 700: 'rgba(255, 255, 255, 0.64)',\n 800: 'rgba(255, 255, 255, 0.80)',\n 900: 'rgba(255, 255, 255, 0.92)',\n },\n\n blackAlpha: {\n 50: 'rgba(0, 0, 0, 0.04)',\n 100: 'rgba(0, 0, 0, 0.06)',\n 200: 'rgba(0, 0, 0, 0.08)',\n 300: 'rgba(0, 0, 0, 0.16)',\n 400: 'rgba(0, 0, 0, 0.24)',\n 500: 'rgba(0, 0, 0, 0.36)',\n 600: 'rgba(0, 0, 0, 0.48)',\n 700: 'rgba(0, 0, 0, 0.64)',\n 800: 'rgba(0, 0, 0, 0.80)',\n 900: 'rgba(0, 0, 0, 0.92)',\n },\n};\n"],"mappings":"AAAA,SAASA,WAAT,QAA4B,gBAA5B;AAEAC,MAAM,CAACC,OAAP,GAAiB;EACfC,OAAO,EAAE;IACPC,OAAO,EAAEJ,WAAW,CAAC,6BAAD,CADb;IAEPK,IAAI,EAAEL,WAAW,CAAC,0BAAD,CAFV;IAGPM,KAAK,EAAEN,WAAW,CAAC,2BAAD,CAHX;IAIPO,MAAM,EAAEP,WAAW,CAAC,4BAAD,CAJZ;IAKP,IAAIA,WAAW,CAAC,6BAAD,CALR;IAMP,KAAKA,WAAW,CAAC,6BAAD,CANT;IAOP,KAAKA,WAAW,CAAC,6BAAD,CAPT;IAQP,KAAKA,WAAW,CAAC,6BAAD,CART;IASP,KAAKA,WAAW,CAAC,6BAAD,CATT;IAUP,KAAKA,WAAW,CAAC,6BAAD,CAVT;IAWP,KAAKA,WAAW,CAAC,6BAAD,CAXT;IAYP,KAAKA,WAAW,CAAC,6BAAD,CAZT;IAaP,KAAKA,WAAW,CAAC,6BAAD,CAbT;IAcP,KAAKA,WAAW,CAAC,6BAAD;EAdT,CADM;EAkBfQ,SAAS,EAAE;IACTJ,OAAO,EAAEJ,WAAW,CAAC,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;IAOV,KAAK,qBAPK;IAQV,KAAK,qBARK;IASV,KAAK,qBATK;IAUV,KAAK;EAVK;AAlIG,CAAjB"}
@@ -1,76 +0,0 @@
1
- export var Accordion = () => ({
2
- '.accordion': {
3
- '&-header': {
4
- '@apply flex flex-col text-left': {},
5
- '[aria-expanded="true"] &': {
6
- '@apply bg-hover': {}
7
- },
8
- '&-icon': {
9
- '@apply ml-auto !text-2xl': {}
10
- }
11
- },
12
- '&-is-open &-header': {
13
- '@apply bg-hover': {}
14
- },
15
- '&-toggle': {
16
- '@apply flex items-center inline-block text-lg leading-lg text-left text-lg mx-lg my-md': {},
17
- fontWeight: 'bold',
18
- //"@apply focus-visible:shadow shadow-lg": {},
19
- '&:focus-visible': {
20
- boxShadow: '0 0 0 0.4rem #fff!important',
21
- outline: '0' //"@apply border-4": {},
22
-
23
- },
24
- '.accordion-subtitle': {
25
- '@apply m-0 text-sm font-normal': {}
26
- }
27
- },
28
- '&-body': {
29
- '@apply h-0 overflow-hidden m-lg': {},
30
- transitionProperty: 'visibility, height, padding, margin',
31
- transitionTimingFunction: 'cubic-bezier(0.4, 0, 0.2, 1)',
32
- transitionDuration: '180ms',
33
- '&[aria-hidden="true"], &[data-hidden="true"]': {
34
- '@apply my-0 invisible': {}
35
- },
36
- '&[aria-hidden="false"], &[data-hidden="false"]': {
37
- '@apply block h-auto visible': {}
38
- }
39
- },
40
- '&-solid': {
41
- '@apply border border-primary': {},
42
- '.accordion-header': {
43
- '@apply bg-primary text-white': {},
44
- '[aria-expanded="true"] &': {
45
- '@apply bg-hover': {}
46
- }
47
- }
48
- },
49
- '&-is-open': {
50
- '@apply border border-gray-stroke': {},
51
- '& .accordion-header': {
52
- '@apply bg-hover text-white': {}
53
- }
54
- },
55
- '&-outline': {
56
- '@apply border border-gray-stroke': {},
57
- '.accordion-body': {
58
- '@apply mt-0': {}
59
- },
60
- '.accordion-toggle': {
61
- '&:focus-visible': {
62
- boxShadow: '0 0 0 0.4rem #4b4b4b!important',
63
- outline: '0'
64
- }
65
- },
66
- '.accordion-header': {
67
- '@apply bg-transparent text-body': {},
68
- '[aria-expanded="true"] &': {
69
- '@apply bg-hover': {}
70
- }
71
- }
72
- }
73
- }
74
- });
75
- export default Accordion;
76
- //# sourceMappingURL=accordion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accordion.js","names":["Accordion","fontWeight","boxShadow","outline","transitionProperty","transitionTimingFunction","transitionDuration"],"sources":["../../../src/components/accordion.ts"],"sourcesContent":["import { tailwindModuleType } from './types';\n\nexport const Accordion: (colors: string[]) => tailwindModuleType = () => ({\n '.accordion': {\n '&-header': {\n '@apply flex flex-col text-left': {},\n\n '[aria-expanded=\"true\"] &': {\n '@apply bg-hover': {},\n },\n\n '&-icon': {\n '@apply ml-auto !text-2xl': {},\n },\n },\n\n '&-is-open &-header': {\n '@apply bg-hover': {},\n },\n\n '&-toggle': {\n '@apply flex items-center inline-block text-lg leading-lg text-left text-lg mx-lg my-md': {},\n fontWeight: 'bold',\n //\"@apply focus-visible:shadow shadow-lg\": {},\n '&:focus-visible': {\n boxShadow: '0 0 0 0.4rem #fff!important',\n outline: '0',\n //\"@apply border-4\": {},\n },\n '.accordion-subtitle': {\n '@apply m-0 text-sm font-normal': {},\n },\n },\n\n '&-body': {\n '@apply h-0 overflow-hidden m-lg': {},\n transitionProperty: 'visibility, height, padding, margin',\n transitionTimingFunction: 'cubic-bezier(0.4, 0, 0.2, 1)',\n transitionDuration: '180ms',\n\n '&[aria-hidden=\"true\"], &[data-hidden=\"true\"]': {\n '@apply my-0 invisible': {},\n },\n\n '&[aria-hidden=\"false\"], &[data-hidden=\"false\"]': {\n '@apply block h-auto visible': {},\n },\n },\n\n '&-solid': {\n '@apply border border-primary': {},\n '.accordion-header': {\n '@apply bg-primary text-white': {},\n\n '[aria-expanded=\"true\"] &': {\n '@apply bg-hover': {},\n },\n },\n },\n\n '&-is-open': {\n '@apply border border-gray-stroke': {},\n '& .accordion-header': {\n '@apply bg-hover text-white': {},\n },\n },\n\n '&-outline': {\n '@apply border border-gray-stroke': {},\n '.accordion-body': {\n '@apply mt-0': {},\n },\n '.accordion-toggle': {\n '&:focus-visible': {\n boxShadow: '0 0 0 0.4rem #4b4b4b!important',\n outline: '0',\n },\n },\n '.accordion-header': {\n '@apply bg-transparent text-body': {},\n\n '[aria-expanded=\"true\"] &': {\n '@apply bg-hover': {},\n },\n },\n },\n },\n});\nexport default Accordion;\n"],"mappings":"AAEA,OAAO,IAAMA,SAAmD,GAAG,OAAO;EACxE,cAAc;IACZ,YAAY;MACV,kCAAkC,EADxB;MAGV,4BAA4B;QAC1B,mBAAmB;MADO,CAHlB;MAOV,UAAU;QACR,4BAA4B;MADpB;IAPA,CADA;IAaZ,sBAAsB;MACpB,mBAAmB;IADC,CAbV;IAiBZ,YAAY;MACV,0FAA0F,EADhF;MAEVC,UAAU,EAAE,MAFF;MAGV;MACA,mBAAmB;QACjBC,SAAS,EAAE,6BADM;QAEjBC,OAAO,EAAE,GAFQ,CAGjB;;MAHiB,CAJT;MASV,uBAAuB;QACrB,kCAAkC;MADb;IATb,CAjBA;IA+BZ,UAAU;MACR,mCAAmC,EAD3B;MAERC,kBAAkB,EAAE,qCAFZ;MAGRC,wBAAwB,EAAE,8BAHlB;MAIRC,kBAAkB,EAAE,OAJZ;MAMR,gDAAgD;QAC9C,yBAAyB;MADqB,CANxC;MAUR,kDAAkD;QAChD,+BAA+B;MADiB;IAV1C,CA/BE;IA8CZ,WAAW;MACT,gCAAgC,EADvB;MAET,qBAAqB;QACnB,gCAAgC,EADb;QAGnB,4BAA4B;UAC1B,mBAAmB;QADO;MAHT;IAFZ,CA9CC;IAyDZ,aAAa;MACX,oCAAoC,EADzB;MAEX,uBAAuB;QACrB,8BAA8B;MADT;IAFZ,CAzDD;IAgEZ,aAAa;MACX,oCAAoC,EADzB;MAEX,mBAAmB;QACjB,eAAe;MADE,CAFR;MAKX,qBAAqB;QACnB,mBAAmB;UACjBJ,SAAS,EAAE,gCADM;UAEjBC,OAAO,EAAE;QAFQ;MADA,CALV;MAWX,qBAAqB;QACnB,mCAAmC,EADhB;QAGnB,4BAA4B;UAC1B,mBAAmB;QADO;MAHT;IAXV;EAhED;AAD0D,CAAP,CAA5D;AAsFP,eAAeH,SAAf"}
@@ -1,67 +0,0 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
- function alertSubtle(colors) {
4
- return {
5
- '.alert-subtle': _extends({
6
- '@apply border rounded-base': {},
7
- '@apply text-body': {}
8
- }, colors.reduce((styles, color) => _extends({}, styles, {
9
- ["&[data-color=\"" + color + "\"]"]: {
10
- ["@apply bg-" + color + "-50 border-" + color + "-500"]: {},
11
- ["@apply dark:text-" + color + "-300 dark:bg-" + color + "-500"]: {},
12
- '@apply dark:bg-opacity-15': {},
13
- '@apply dark:border-opacity-40': {}
14
- }
15
- }), {}))
16
- };
17
- }
18
-
19
- function alertSolid(colors) {
20
- return {
21
- '.alert-solid': _extends({
22
- '@apply border rounded-base': {},
23
- '@apply text-white': {}
24
- }, colors.reduce((styles, color) => _extends({}, styles, {
25
- ["&[data-color=\"" + color + "\"]"]: {
26
- ["@apply bg-" + color + "-500 border-" + color + "-700 border-opacity-20"]: {},
27
- ["@apply dark:bg-" + color + "-600 dark:border-" + color + "-500"]: {},
28
- '@apply dark:border-opacity-40': {}
29
- }
30
- }), {}))
31
- };
32
- }
33
-
34
- function alertLeftAccent(colors) {
35
- return {
36
- '.alert-left-accent': _extends({
37
- '@apply border-l-2 rounded-none': {},
38
- '@apply text-body': {}
39
- }, colors.reduce((styles, color) => _extends({}, styles, {
40
- ["&[data-color=\"" + color + "\"]"]: {
41
- ["@apply bg-transparent border-" + color + "-500"]: {},
42
- ["@apply dark:text-" + color + "-300"]: {}
43
- }
44
- }), {}))
45
- };
46
- }
47
-
48
- function alertCloseButton(colors) {
49
- return {
50
- '.alert-close-button': _extends({
51
- '@apply absolute right-4 cursor-base focus-visible:outline-none': {},
52
- '@apply text-neutral-600 hover:text-neutral-700': {}
53
- }, colors.reduce((styles, color) => _extends({}, styles, {
54
- ["&[data-color=\"" + color + "\"]"]: {
55
- ["@apply dark:text-" + color + "-300 dark:hover:text-" + color + "-400"]: {}
56
- }
57
- }), {}))
58
- };
59
- }
60
-
61
- export var Alert = colors => _extends({
62
- '.alert': {
63
- '@apply w-full flex items-center px-4 py-3 relative overflow-hidden text-sm': {}
64
- }
65
- }, alertSubtle(colors), alertSolid(colors), alertLeftAccent(colors), alertCloseButton(colors));
66
- export default Alert;
67
- //# sourceMappingURL=alert.js.map