@sk-web-gui/core 0.1.45 → 0.1.47

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/dist/cjs/colors.js +140 -0
  4. package/dist/cjs/colors.js.map +1 -0
  5. package/dist/cjs/components/accordion.js +86 -0
  6. package/dist/cjs/components/accordion.js.map +1 -0
  7. package/dist/cjs/components/alert.js +71 -0
  8. package/dist/cjs/components/alert.js.map +1 -0
  9. package/dist/cjs/components/avatar.js +78 -0
  10. package/dist/cjs/components/avatar.js.map +1 -0
  11. package/dist/cjs/components/badge.js +53 -0
  12. package/dist/cjs/components/badge.js.map +1 -0
  13. package/dist/cjs/components/breadcrumb.js +23 -0
  14. package/dist/cjs/components/breadcrumb.js.map +1 -0
  15. package/dist/cjs/components/button-group.js +50 -0
  16. package/dist/cjs/components/button-group.js.map +1 -0
  17. package/dist/cjs/components/button.js +154 -0
  18. package/dist/cjs/components/button.js.map +1 -0
  19. package/dist/cjs/components/calendar.js +76 -0
  20. package/dist/cjs/components/calendar.js.map +1 -0
  21. package/dist/cjs/components/card.js +59 -0
  22. package/dist/cjs/components/card.js.map +1 -0
  23. package/dist/cjs/components/checkbox.js +92 -0
  24. package/dist/cjs/components/checkbox.js.map +1 -0
  25. package/dist/cjs/components/code.js +21 -0
  26. package/dist/cjs/components/code.js.map +1 -0
  27. package/dist/cjs/components/cookie-consent.js +35 -0
  28. package/dist/cjs/components/cookie-consent.js.map +1 -0
  29. package/dist/cjs/components/divider.js +24 -0
  30. package/dist/cjs/components/divider.js.map +1 -0
  31. package/dist/cjs/components/dot.js +70 -0
  32. package/dist/cjs/components/dot.js.map +1 -0
  33. package/dist/cjs/components/footer.js +39 -0
  34. package/dist/cjs/components/footer.js.map +1 -0
  35. package/dist/cjs/components/forms.js +225 -0
  36. package/dist/cjs/components/forms.js.map +1 -0
  37. package/dist/cjs/components/header.js +34 -0
  38. package/dist/cjs/components/header.js.map +1 -0
  39. package/dist/cjs/components/icon-button.js +17 -0
  40. package/dist/cjs/components/icon-button.js.map +1 -0
  41. package/dist/cjs/components/icon.js +20 -0
  42. package/dist/cjs/components/icon.js.map +1 -0
  43. package/dist/cjs/components/kbd.js +21 -0
  44. package/dist/cjs/components/kbd.js.map +1 -0
  45. package/dist/cjs/components/link.js +29 -0
  46. package/dist/cjs/components/link.js.map +1 -0
  47. package/dist/cjs/components/message.js +63 -0
  48. package/dist/cjs/components/message.js.map +1 -0
  49. package/dist/cjs/components/modal.js +35 -0
  50. package/dist/cjs/components/modal.js.map +1 -0
  51. package/dist/cjs/components/notification.js +58 -0
  52. package/dist/cjs/components/notification.js.map +1 -0
  53. package/dist/cjs/components/pagination.js +66 -0
  54. package/dist/cjs/components/pagination.js.map +1 -0
  55. package/dist/cjs/components/radio.js +95 -0
  56. package/dist/cjs/components/radio.js.map +1 -0
  57. package/dist/cjs/components/switch.js +107 -0
  58. package/dist/cjs/components/switch.js.map +1 -0
  59. package/dist/cjs/components/table.js +23 -0
  60. package/dist/cjs/components/table.js.map +1 -0
  61. package/dist/cjs/components/tag.js +88 -0
  62. package/dist/cjs/components/tag.js.map +1 -0
  63. package/dist/cjs/components/types.js +10 -0
  64. package/dist/cjs/components/types.js.map +1 -0
  65. package/dist/cjs/components/user-menu.js +33 -0
  66. package/dist/cjs/components/user-menu.js.map +1 -0
  67. package/dist/cjs/components/zebratable.js +70 -0
  68. package/dist/cjs/components/zebratable.js.map +1 -0
  69. package/dist/cjs/index.js +282 -0
  70. package/dist/cjs/index.js.map +1 -0
  71. package/dist/cjs/with-opacity.js +15 -0
  72. package/dist/cjs/with-opacity.js.map +1 -0
  73. package/dist/esm/colors.js +137 -0
  74. package/dist/esm/colors.js.map +1 -0
  75. package/dist/esm/components/accordion.js +76 -0
  76. package/dist/esm/components/accordion.js.map +1 -0
  77. package/dist/esm/components/alert.js +67 -0
  78. package/dist/esm/components/alert.js.map +1 -0
  79. package/dist/esm/components/avatar.js +68 -0
  80. package/dist/esm/components/avatar.js.map +1 -0
  81. package/dist/esm/components/badge.js +48 -0
  82. package/dist/esm/components/badge.js.map +1 -0
  83. package/dist/esm/components/breadcrumb.js +13 -0
  84. package/dist/esm/components/breadcrumb.js.map +1 -0
  85. package/dist/esm/components/button-group.js +40 -0
  86. package/dist/esm/components/button-group.js.map +1 -0
  87. package/dist/esm/components/button.js +197 -0
  88. package/dist/esm/components/button.js.map +1 -0
  89. package/dist/esm/components/calendar.js +66 -0
  90. package/dist/esm/components/calendar.js.map +1 -0
  91. package/dist/esm/components/card.js +49 -0
  92. package/dist/esm/components/card.js.map +1 -0
  93. package/dist/esm/components/checkbox.js +110 -0
  94. package/dist/esm/components/checkbox.js.map +1 -0
  95. package/dist/esm/components/code.js +11 -0
  96. package/dist/esm/components/code.js.map +1 -0
  97. package/dist/esm/components/cookie-consent.js +25 -0
  98. package/dist/esm/components/cookie-consent.js.map +1 -0
  99. package/dist/esm/components/divider.js +14 -0
  100. package/dist/esm/components/divider.js.map +1 -0
  101. package/dist/esm/components/dot.js +61 -0
  102. package/dist/esm/components/dot.js.map +1 -0
  103. package/dist/esm/components/footer.js +29 -0
  104. package/dist/esm/components/footer.js.map +1 -0
  105. package/dist/esm/components/forms.js +217 -0
  106. package/dist/esm/components/forms.js.map +1 -0
  107. package/dist/esm/components/header.js +29 -0
  108. package/dist/esm/components/header.js.map +1 -0
  109. package/dist/esm/components/icon-button.js +7 -0
  110. package/dist/esm/components/icon-button.js.map +1 -0
  111. package/dist/esm/components/icon.js +10 -0
  112. package/dist/esm/components/icon.js.map +1 -0
  113. package/dist/esm/components/kbd.js +11 -0
  114. package/dist/esm/components/kbd.js.map +1 -0
  115. package/dist/esm/components/link.js +19 -0
  116. package/dist/esm/components/link.js.map +1 -0
  117. package/dist/esm/components/message.js +53 -0
  118. package/dist/esm/components/message.js.map +1 -0
  119. package/dist/esm/components/modal.js +25 -0
  120. package/dist/esm/components/modal.js.map +1 -0
  121. package/dist/esm/components/notification.js +48 -0
  122. package/dist/esm/components/notification.js.map +1 -0
  123. package/dist/esm/components/pagination.js +56 -0
  124. package/dist/esm/components/pagination.js.map +1 -0
  125. package/dist/esm/components/radio.js +88 -0
  126. package/dist/esm/components/radio.js.map +1 -0
  127. package/dist/esm/components/switch.js +98 -0
  128. package/dist/esm/components/switch.js.map +1 -0
  129. package/dist/esm/components/table.js +13 -0
  130. package/dist/esm/components/table.js.map +1 -0
  131. package/dist/esm/components/tag.js +84 -0
  132. package/dist/esm/components/tag.js.map +1 -0
  133. package/dist/esm/components/types.js +3 -0
  134. package/dist/esm/components/types.js.map +1 -0
  135. package/dist/esm/components/user-menu.js +23 -0
  136. package/dist/esm/components/user-menu.js.map +1 -0
  137. package/dist/esm/components/zebratable.js +60 -0
  138. package/dist/esm/components/zebratable.js.map +1 -0
  139. package/dist/esm/index.js +327 -0
  140. package/dist/esm/index.js.map +1 -0
  141. package/dist/esm/with-opacity.js +10 -0
  142. package/dist/esm/with-opacity.js.map +1 -0
  143. package/dist/types/accordion/index.d.ts +1 -0
  144. package/dist/types/accordion/src/accordion.d.ts +17 -0
  145. package/dist/types/accordion/src/index.d.ts +1 -0
  146. package/dist/types/accordion/src/styles.d.ts +1 -0
  147. package/dist/types/accordion/stories/accordion.stories.d.ts +40 -0
  148. package/dist/types/alert/index.d.ts +1 -0
  149. package/dist/types/alert/src/alert.d.ts +15 -0
  150. package/dist/types/alert/src/index.d.ts +8 -0
  151. package/dist/types/alert/src/styles.d.ts +2 -0
  152. package/dist/types/breadcrumb/index.d.ts +1 -0
  153. package/dist/types/breadcrumb/src/breadcrumb.d.ts +34 -0
  154. package/dist/types/breadcrumb/src/index.d.ts +10 -0
  155. package/dist/types/breadcrumb/stories/breadcrumb.stories.d.ts +28 -0
  156. package/dist/types/button/index.d.ts +1 -0
  157. package/dist/types/button/src/button-group.d.ts +20 -0
  158. package/dist/types/button/src/button.d.ts +21 -0
  159. package/dist/types/button/src/icon-button.d.ts +17 -0
  160. package/dist/types/button/src/index.d.ts +10 -0
  161. package/dist/types/button/src/styles.d.ts +1 -0
  162. package/dist/types/button/stories/announcement.d.ts +6 -0
  163. package/dist/types/button/stories/button-group.stories.d.ts +14 -0
  164. package/dist/types/button/stories/button.stories.d.ts +127 -0
  165. package/dist/types/button/stories/icon-button.stories.d.ts +16 -0
  166. package/dist/types/card/index.d.ts +1 -0
  167. package/dist/types/card/src/card.d.ts +38 -0
  168. package/dist/types/card/src/index.d.ts +1 -0
  169. package/dist/types/card/src/styles.d.ts +1 -0
  170. package/dist/types/card/stories/card.stories.d.ts +56 -0
  171. package/dist/types/checkbox/index.d.ts +1 -0
  172. package/dist/types/checkbox/src/checkbox-group.d.ts +36 -0
  173. package/dist/types/checkbox/src/checkbox.d.ts +46 -0
  174. package/dist/types/checkbox/src/index.d.ts +9 -0
  175. package/dist/types/checkbox/src/styles.d.ts +2 -0
  176. package/dist/types/checkbox/stories/checkbox.stories.d.ts +103 -0
  177. package/dist/types/cookie-consent/index.d.ts +1 -0
  178. package/dist/types/cookie-consent/src/cookie-consent.d.ts +37 -0
  179. package/dist/types/cookie-consent/src/index.d.ts +1 -0
  180. package/dist/types/cookie-consent/src/styles.d.ts +1 -0
  181. package/dist/types/core/src/colors.d.ts +1 -0
  182. package/dist/types/core/src/components/accordion.d.ts +3 -0
  183. package/dist/types/core/src/components/alert.d.ts +3 -0
  184. package/dist/types/core/src/components/avatar.d.ts +3 -0
  185. package/dist/types/core/src/components/badge.d.ts +3 -0
  186. package/dist/types/core/src/components/breadcrumb.d.ts +3 -0
  187. package/dist/types/core/src/components/button-group.d.ts +3 -0
  188. package/dist/types/core/src/components/button.d.ts +3 -0
  189. package/dist/types/core/src/components/calendar.d.ts +3 -0
  190. package/dist/types/core/src/components/card.d.ts +3 -0
  191. package/dist/types/core/src/components/checkbox.d.ts +3 -0
  192. package/dist/types/core/src/components/code.d.ts +3 -0
  193. package/dist/types/core/src/components/cookie-consent.d.ts +3 -0
  194. package/dist/types/core/src/components/divider.d.ts +3 -0
  195. package/dist/types/core/src/components/dot.d.ts +3 -0
  196. package/dist/types/core/src/components/footer.d.ts +3 -0
  197. package/dist/types/core/src/components/forms.d.ts +3 -0
  198. package/dist/types/core/src/components/header.d.ts +3 -0
  199. package/dist/types/core/src/components/icon-button.d.ts +3 -0
  200. package/dist/types/core/src/components/icon.d.ts +3 -0
  201. package/dist/types/core/src/components/kbd.d.ts +3 -0
  202. package/dist/types/core/src/components/link.d.ts +3 -0
  203. package/dist/types/core/src/components/message.d.ts +3 -0
  204. package/dist/types/core/src/components/modal.d.ts +3 -0
  205. package/dist/types/core/src/components/notification.d.ts +3 -0
  206. package/dist/types/core/src/components/pagination.d.ts +3 -0
  207. package/dist/types/core/src/components/radio.d.ts +3 -0
  208. package/dist/types/core/src/components/switch.d.ts +3 -0
  209. package/dist/types/core/src/components/table.d.ts +3 -0
  210. package/dist/types/core/src/components/tag.d.ts +3 -0
  211. package/dist/types/core/src/components/types.d.ts +5 -0
  212. package/dist/types/core/src/components/user-menu.d.ts +3 -0
  213. package/dist/types/core/src/components/zebratable.d.ts +3 -0
  214. package/dist/types/core/src/index.d.ts +1 -0
  215. package/dist/types/core/src/with-opacity.d.ts +3 -0
  216. package/dist/types/divider/index.d.ts +1 -0
  217. package/dist/types/divider/src/divider.d.ts +9 -0
  218. package/dist/types/divider/src/index.d.ts +1 -0
  219. package/dist/types/divider/stories/divider.stories.d.ts +33 -0
  220. package/dist/types/dot/index.d.ts +1 -0
  221. package/dist/types/dot/src/dot.d.ts +12 -0
  222. package/dist/types/dot/src/index.d.ts +1 -0
  223. package/dist/types/dot/src/styles.d.ts +1 -0
  224. package/dist/types/dot/stories/dot.stories.d.ts +15 -0
  225. package/dist/types/footer/index.d.ts +1 -0
  226. package/dist/types/footer/src/footer.d.ts +11 -0
  227. package/dist/types/footer/src/index.d.ts +1 -0
  228. package/dist/types/footer/stories/footer.stories.d.ts +95 -0
  229. package/dist/types/forms/index.d.ts +1 -0
  230. package/dist/types/forms/src/calendar/index.d.ts +12 -0
  231. package/dist/types/forms/src/calendar/styles.d.ts +1 -0
  232. package/dist/types/forms/src/form-control/index.d.ts +27 -0
  233. package/dist/types/forms/src/form-error-message/index.d.ts +9 -0
  234. package/dist/types/forms/src/form-helper-text/index.d.ts +9 -0
  235. package/dist/types/forms/src/form-label/index.d.ts +13 -0
  236. package/dist/types/forms/src/index.d.ts +8 -0
  237. package/dist/types/forms/src/input/index.d.ts +15 -0
  238. package/dist/types/forms/src/input/input.d.ts +30 -0
  239. package/dist/types/forms/src/input/styles.d.ts +1 -0
  240. package/dist/types/forms/src/input-addon/index.d.ts +13 -0
  241. package/dist/types/forms/src/input-element/index.d.ts +15 -0
  242. package/dist/types/forms/src/input-group/index.d.ts +11 -0
  243. package/dist/types/forms/src/select/index.d.ts +6 -0
  244. package/dist/types/forms/src/select/styles.d.ts +1 -0
  245. package/dist/types/forms/src/textarea/index.d.ts +13 -0
  246. package/dist/types/forms/stories/calendar.stories.d.ts +58 -0
  247. package/dist/types/forms/stories/check.d.ts +6 -0
  248. package/dist/types/forms/stories/form-control.stories.d.ts +16 -0
  249. package/dist/types/forms/stories/input.stories.d.ts +32 -0
  250. package/dist/types/forms/stories/select.stories.d.ts +118 -0
  251. package/dist/types/forms/stories/textarea.stories.d.ts +23 -0
  252. package/dist/types/header/index.d.ts +1 -0
  253. package/dist/types/header/src/header.d.ts +13 -0
  254. package/dist/types/header/src/index.d.ts +1 -0
  255. package/dist/types/header/stories/header.stories.d.ts +118 -0
  256. package/dist/types/icon/index.d.ts +1 -0
  257. package/dist/types/icon/src/core.d.ts +10 -0
  258. package/dist/types/icon/src/icon.d.ts +14 -0
  259. package/dist/types/icon/src/index.d.ts +2 -0
  260. package/dist/types/icon/stories/icon.stories.d.ts +12 -0
  261. package/dist/types/image/index.d.ts +1 -0
  262. package/dist/types/image/src/image.d.ts +28 -0
  263. package/dist/types/image/src/index.d.ts +2 -0
  264. package/dist/types/image/src/use-image.d.ts +52 -0
  265. package/dist/types/image/stories/image.stories.d.ts +12 -0
  266. package/dist/types/link/index.d.ts +1 -0
  267. package/dist/types/link/src/index.d.ts +1 -0
  268. package/dist/types/link/src/link.d.ts +12 -0
  269. package/dist/types/link/stories/link.stories.d.ts +46 -0
  270. package/dist/types/message/index.d.ts +1 -0
  271. package/dist/types/message/src/index.d.ts +1 -0
  272. package/dist/types/message/src/message.d.ts +2 -0
  273. package/dist/types/message/stories/message.stories.d.ts +11 -0
  274. package/dist/types/notification/index.d.ts +1 -0
  275. package/dist/types/notification/src/index.d.ts +1 -0
  276. package/dist/types/notification/src/notification.d.ts +5 -0
  277. package/dist/types/notification/stories/notification.stories.d.ts +11 -0
  278. package/dist/types/pagination/index.d.ts +1 -0
  279. package/dist/types/pagination/src/index.d.ts +1 -0
  280. package/dist/types/pagination/src/pagination.d.ts +11 -0
  281. package/dist/types/pagination/src/styles.d.ts +1 -0
  282. package/dist/types/pagination/stories/pagination.stories.d.ts +75 -0
  283. package/dist/types/radio/index.d.ts +1 -0
  284. package/dist/types/radio/src/index.d.ts +9 -0
  285. package/dist/types/radio/src/radio-group.d.ts +41 -0
  286. package/dist/types/radio/src/radio.d.ts +45 -0
  287. package/dist/types/radio/src/styles.d.ts +2 -0
  288. package/dist/types/radio/stories/radio-group.stories.d.ts +75 -0
  289. package/dist/types/radio/stories/radio.stories.d.ts +104 -0
  290. package/dist/types/react/index.d.ts +1 -0
  291. package/dist/types/react/src/index.d.ts +26 -0
  292. package/dist/types/spinner/index.d.ts +1 -0
  293. package/dist/types/spinner/src/index.d.ts +1 -0
  294. package/dist/types/spinner/src/spinner.d.ts +8 -0
  295. package/dist/types/spinner/src/styles.d.ts +2 -0
  296. package/dist/types/spinner/stories/spinner.stories.d.ts +13 -0
  297. package/dist/types/switch/index.d.ts +1 -0
  298. package/dist/types/switch/src/index.d.ts +1 -0
  299. package/dist/types/switch/src/styles.d.ts +2 -0
  300. package/dist/types/switch/src/switch.d.ts +42 -0
  301. package/dist/types/switch/stories/switch.stories.d.ts +76 -0
  302. package/dist/types/table/index.d.ts +1 -0
  303. package/dist/types/table/src/index.d.ts +1 -0
  304. package/dist/types/table/src/styles.d.ts +1 -0
  305. package/dist/types/table/src/zebratable.d.ts +33 -0
  306. package/dist/types/table/stories/zebratable.stories.d.ts +69 -0
  307. package/dist/types/tag/index.d.ts +1 -0
  308. package/dist/types/tag/src/index.d.ts +1 -0
  309. package/dist/types/tag/src/styles.d.ts +1 -0
  310. package/dist/types/tag/src/tag.d.ts +13 -0
  311. package/dist/types/tag/stories/tag.stories.d.ts +86 -0
  312. package/dist/types/theme/index.d.ts +1 -0
  313. package/dist/types/theme/src/colors.d.ts +272 -0
  314. package/dist/types/theme/src/create-memo-class.d.ts +1 -0
  315. package/dist/types/theme/src/create-theme-vars/calc.d.ts +19 -0
  316. package/dist/types/theme/src/create-theme-vars/create-theme-vars.d.ts +9 -0
  317. package/dist/types/theme/src/create-theme-vars/css-var.d.ts +7 -0
  318. package/dist/types/theme/src/create-theme-vars/index.d.ts +4 -0
  319. package/dist/types/theme/src/create-theme-vars/theme-tokens.d.ts +10 -0
  320. package/dist/types/theme/src/create-theme-vars/to-css-var.d.ts +2 -0
  321. package/dist/types/theme/src/default-theme.d.ts +4 -0
  322. package/dist/types/theme/src/gui-provider.d.ts +16 -0
  323. package/dist/types/theme/src/index.d.ts +6 -0
  324. package/dist/types/theme/src/types.d.ts +56 -0
  325. package/dist/types/theme/src/use-safe-effect.d.ts +2 -0
  326. package/dist/types/theme/src/utils.d.ts +1 -0
  327. package/dist/types/toast/index.d.ts +1 -0
  328. package/dist/types/toast/src/index.d.ts +1 -0
  329. package/dist/types/toast/src/toast.d.ts +62 -0
  330. package/dist/types/toasted-notes/index.d.ts +1 -0
  331. package/dist/types/toasted-notes/src/Alert.d.ts +8 -0
  332. package/dist/types/toasted-notes/src/Message.d.ts +26 -0
  333. package/dist/types/toasted-notes/src/Positions.d.ts +9 -0
  334. package/dist/types/toasted-notes/src/Toast.d.ts +13 -0
  335. package/dist/types/toasted-notes/src/ToastManager.d.ts +45 -0
  336. package/dist/types/toasted-notes/src/index.d.ts +4 -0
  337. package/dist/types/toasted-notes/src/useTimeout.d.ts +3 -0
  338. package/dist/types/user-menu/index.d.ts +1 -0
  339. package/dist/types/user-menu/src/index.d.ts +6 -0
  340. package/dist/types/user-menu/src/styles.d.ts +1 -0
  341. package/dist/types/user-menu/src/user-menu.d.ts +21 -0
  342. package/dist/types/user-menu/stories/announcement.d.ts +6 -0
  343. package/dist/types/user-menu/stories/user-menu.stories.d.ts +5 -0
  344. package/dist/types/utils/index.d.ts +1 -0
  345. package/dist/types/utils/src/assertion.d.ts +4 -0
  346. package/dist/types/utils/src/children.d.ts +8 -0
  347. package/dist/types/utils/src/color.d.ts +9 -0
  348. package/dist/types/utils/src/index.d.ts +10 -0
  349. package/dist/types/utils/src/object.d.ts +6 -0
  350. package/dist/types/utils/src/refs.d.ts +5 -0
  351. package/dist/types/utils/src/slug.d.ts +1 -0
  352. package/dist/types/utils/src/types.d.ts +13 -0
  353. package/dist/types/utils/src/walk-object.d.ts +5 -0
  354. package/dist/types/visually-hidden/index.d.ts +1 -0
  355. package/dist/types/visually-hidden/src/index.d.ts +32 -0
  356. package/package.json +2 -2
  357. package/src/colors.js +145 -145
  358. package/src/components/accordion.js +93 -89
  359. package/src/components/alert-banner.js +25 -0
  360. package/src/components/alert.js +98 -98
  361. package/src/components/avatar.js +85 -85
  362. package/src/components/badge.js +60 -60
  363. package/src/components/breadcrumb.js +13 -13
  364. package/src/components/button-group.js +46 -46
  365. package/src/components/button.js +304 -304
  366. package/src/components/calendar.js +82 -82
  367. package/src/components/card.js +54 -54
  368. package/src/components/checkbox.js +127 -127
  369. package/src/components/code.js +9 -9
  370. package/src/components/cookie-consent.js +30 -30
  371. package/src/components/divider.js +12 -12
  372. package/src/components/dot.js +84 -84
  373. package/src/components/dropdown-filter.js +72 -72
  374. package/src/components/footer.js +42 -42
  375. package/src/components/forms.js +256 -256
  376. package/src/components/header.js +35 -35
  377. package/src/components/icon-button.js +5 -5
  378. package/src/components/icon.js +9 -9
  379. package/src/components/kbd.js +9 -9
  380. package/src/components/link.js +20 -20
  381. package/src/components/message.js +62 -62
  382. package/src/components/modal.js +30 -30
  383. package/src/components/notification.js +56 -56
  384. package/src/components/pagination.js +69 -69
  385. package/src/components/radio.js +104 -104
  386. package/src/components/search-bar.js +45 -45
  387. package/src/components/side-menu.js +167 -167
  388. package/src/components/switch.js +119 -119
  389. package/src/components/tab-menu.js +44 -44
  390. package/src/components/table.js +13 -13
  391. package/src/components/tag.js +97 -97
  392. package/src/components/user-menu.js +23 -23
  393. package/src/components/zebratable.js +77 -77
  394. package/src/index.js +284 -272
  395. package/src/with-opacity.js +6 -6
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2021 Sundsvalls Kommun
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Sundsvalls Kommun
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
- ## Installation
2
-
3
- ```sh
4
- yarn add @sk-web-gui/core
5
- ```
1
+ ## Installation
2
+
3
+ ```sh
4
+ yarn add @sk-web-gui/core
5
+ ```
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+
3
+ var _withOpacity = require("./with-opacity");
4
+
5
+ module.exports = {
6
+ primary: {
7
+ DEFAULT: (0, _withOpacity.withOpacity)('--vc-colors-primary-DEFAULT'),
8
+ dark: (0, _withOpacity.withOpacity)('--vc-colors-primary-dark'),
9
+ light: (0, _withOpacity.withOpacity)('--vc-colors-primary-light'),
10
+ active: (0, _withOpacity.withOpacity)('--vc-colors-primary-active'),
11
+ 50: (0, _withOpacity.withOpacity)('--vc-colors-primary-DEFAULT'),
12
+ 100: (0, _withOpacity.withOpacity)('--vc-colors-primary-DEFAULT'),
13
+ 200: (0, _withOpacity.withOpacity)('--vc-colors-primary-DEFAULT'),
14
+ 300: (0, _withOpacity.withOpacity)('--vc-colors-primary-DEFAULT'),
15
+ 400: (0, _withOpacity.withOpacity)('--vc-colors-primary-DEFAULT'),
16
+ 500: (0, _withOpacity.withOpacity)('--vc-colors-primary-DEFAULT'),
17
+ 600: (0, _withOpacity.withOpacity)('--vc-colors-primary-DEFAULT'),
18
+ 700: (0, _withOpacity.withOpacity)('--vc-colors-primary-DEFAULT'),
19
+ 800: (0, _withOpacity.withOpacity)('--vc-colors-primary-DEFAULT'),
20
+ 900: (0, _withOpacity.withOpacity)('--vc-colors-primary-DEFAULT')
21
+ },
22
+ secondary: {
23
+ DEFAULT: (0, _withOpacity.withOpacity)('--vc-colors-secondary-DEFAULT'),
24
+ dark: (0, _withOpacity.withOpacity)('--vc-colors-secondary-dark'),
25
+ light: (0, _withOpacity.withOpacity)('--vc-colors-secondary-light'),
26
+ active: (0, _withOpacity.withOpacity)('--vc-colors-secondary-active'),
27
+ 50: (0, _withOpacity.withOpacity)('--vc-colors-secondary-DEFAULT'),
28
+ 100: (0, _withOpacity.withOpacity)('--vc-colors-secondary-DEFAULT'),
29
+ 200: (0, _withOpacity.withOpacity)('--vc-colors-secondary-DEFAULT'),
30
+ 300: (0, _withOpacity.withOpacity)('--vc-colors-secondary-DEFAULT'),
31
+ 400: (0, _withOpacity.withOpacity)('--vc-colors-secondary-DEFAULT'),
32
+ 500: (0, _withOpacity.withOpacity)('--vc-colors-secondary-DEFAULT'),
33
+ 600: (0, _withOpacity.withOpacity)('--vc-colors-secondary-DEFAULT'),
34
+ 700: (0, _withOpacity.withOpacity)('--vc-colors-secondary-DEFAULT'),
35
+ 800: (0, _withOpacity.withOpacity)('--vc-colors-secondary-DEFAULT'),
36
+ 900: (0, _withOpacity.withOpacity)('--vc-colors-secondary-DEFAULT')
37
+ },
38
+ success: {
39
+ DEFAULT: (0, _withOpacity.withOpacity)('--vc-colors-success-DEFAULT'),
40
+ dark: (0, _withOpacity.withOpacity)('--vc-colors-success-dark'),
41
+ light: (0, _withOpacity.withOpacity)('--vc-colors-success-light'),
42
+ active: (0, _withOpacity.withOpacity)('--vc-colors-success-active'),
43
+ 50: (0, _withOpacity.withOpacity)('--vc-colors-success-DEFAULT'),
44
+ 100: (0, _withOpacity.withOpacity)('--vc-colors-success-DEFAULT'),
45
+ 200: (0, _withOpacity.withOpacity)('--vc-colors-success-DEFAULT'),
46
+ 300: (0, _withOpacity.withOpacity)('--vc-colors-success-DEFAULT'),
47
+ 400: (0, _withOpacity.withOpacity)('--vc-colors-success-DEFAULT'),
48
+ 500: (0, _withOpacity.withOpacity)('--vc-colors-success-DEFAULT'),
49
+ 600: (0, _withOpacity.withOpacity)('--vc-colors-success-DEFAULT'),
50
+ 700: (0, _withOpacity.withOpacity)('--vc-colors-success-DEFAULT'),
51
+ 800: (0, _withOpacity.withOpacity)('--vc-colors-success-DEFAULT'),
52
+ 900: (0, _withOpacity.withOpacity)('--vc-colors-success-DEFAULT')
53
+ },
54
+ info: {
55
+ DEFAULT: (0, _withOpacity.withOpacity)('--vc-colors-info-DEFAULT'),
56
+ dark: (0, _withOpacity.withOpacity)('--vc-colors-info-dark'),
57
+ light: (0, _withOpacity.withOpacity)('--vc-colors-info-light'),
58
+ active: (0, _withOpacity.withOpacity)('--vc-colors-info-active'),
59
+ 50: (0, _withOpacity.withOpacity)('--vc-colors-info-DEFAULT'),
60
+ 100: (0, _withOpacity.withOpacity)('--vc-colors-info-DEFAULT'),
61
+ 200: (0, _withOpacity.withOpacity)('--vc-colors-info-DEFAULT'),
62
+ 300: (0, _withOpacity.withOpacity)('--vc-colors-info-DEFAULT'),
63
+ 400: (0, _withOpacity.withOpacity)('--vc-colors-info-DEFAULT'),
64
+ 500: (0, _withOpacity.withOpacity)('--vc-colors-info-DEFAULT'),
65
+ 600: (0, _withOpacity.withOpacity)('--vc-colors-info-DEFAULT'),
66
+ 700: (0, _withOpacity.withOpacity)('--vc-colors-info-DEFAULT'),
67
+ 800: (0, _withOpacity.withOpacity)('--vc-colors-info-DEFAULT'),
68
+ 900: (0, _withOpacity.withOpacity)('--vc-colors-info-DEFAULT')
69
+ },
70
+ warning: {
71
+ DEFAULT: (0, _withOpacity.withOpacity)('--vc-colors-warning-DEFAULT'),
72
+ dark: (0, _withOpacity.withOpacity)('--vc-colors-warning-dark'),
73
+ light: (0, _withOpacity.withOpacity)('--vc-colors-warning-light'),
74
+ active: (0, _withOpacity.withOpacity)('--vc-colors-warning-active'),
75
+ 50: (0, _withOpacity.withOpacity)('--vc-colors-warning-DEFAULT'),
76
+ 100: (0, _withOpacity.withOpacity)('--vc-colors-warning-DEFAULT'),
77
+ 200: (0, _withOpacity.withOpacity)('--vc-colors-warning-DEFAULT'),
78
+ 300: (0, _withOpacity.withOpacity)('--vc-colors-warning-DEFAULT'),
79
+ 400: (0, _withOpacity.withOpacity)('--vc-colors-warning-DEFAULT'),
80
+ 500: (0, _withOpacity.withOpacity)('--vc-colors-warning-DEFAULT'),
81
+ 600: (0, _withOpacity.withOpacity)('--vc-colors-warning-DEFAULT'),
82
+ 700: (0, _withOpacity.withOpacity)('--vc-colors-warning-DEFAULT'),
83
+ 800: (0, _withOpacity.withOpacity)('--vc-colors-warning-DEFAULT'),
84
+ 900: (0, _withOpacity.withOpacity)('--vc-colors-warning-DEFAULT')
85
+ },
86
+ error: {
87
+ DEFAULT: (0, _withOpacity.withOpacity)('--vc-colors-error-DEFAULT'),
88
+ dark: (0, _withOpacity.withOpacity)('--vc-colors-error-dark'),
89
+ light: (0, _withOpacity.withOpacity)('--vc-colors-error-light'),
90
+ active: (0, _withOpacity.withOpacity)('--vc-colors-error-active'),
91
+ 50: (0, _withOpacity.withOpacity)('--vc-colors-error-DEFAULT'),
92
+ 100: (0, _withOpacity.withOpacity)('--vc-colors-error-DEFAULT'),
93
+ 200: (0, _withOpacity.withOpacity)('--vc-colors-error-DEFAULT'),
94
+ 300: (0, _withOpacity.withOpacity)('--vc-colors-error-DEFAULT'),
95
+ 400: (0, _withOpacity.withOpacity)('--vc-colors-error-DEFAULT'),
96
+ 500: (0, _withOpacity.withOpacity)('--vc-colors-error-DEFAULT'),
97
+ 600: (0, _withOpacity.withOpacity)('--vc-colors-error-DEFAULT'),
98
+ 700: (0, _withOpacity.withOpacity)('--vc-colors-error-DEFAULT'),
99
+ 800: (0, _withOpacity.withOpacity)('--vc-colors-error-DEFAULT'),
100
+ 900: (0, _withOpacity.withOpacity)('--vc-colors-error-DEFAULT')
101
+ },
102
+ neutral: {
103
+ DEFAULT: (0, _withOpacity.withOpacity)('--vc-colors-neutral'),
104
+ 50: (0, _withOpacity.withOpacity)('--vc-colors-neutral-50'),
105
+ 100: (0, _withOpacity.withOpacity)('--vc-colors-neutral-100'),
106
+ 200: (0, _withOpacity.withOpacity)('--vc-colors-neutral-200'),
107
+ 300: (0, _withOpacity.withOpacity)('--vc-colors-neutral-300'),
108
+ 400: (0, _withOpacity.withOpacity)('--vc-colors-neutral-400'),
109
+ 500: (0, _withOpacity.withOpacity)('--vc-colors-neutral-500'),
110
+ 600: (0, _withOpacity.withOpacity)('--vc-colors-neutral-600'),
111
+ 700: (0, _withOpacity.withOpacity)('--vc-colors-neutral-700'),
112
+ 800: (0, _withOpacity.withOpacity)('--vc-colors-neutral-800'),
113
+ 900: (0, _withOpacity.withOpacity)('--vc-colors-neutral-900')
114
+ },
115
+ whiteAlpha: {
116
+ 50: 'rgba(255, 255, 255, 0.04)',
117
+ 100: 'rgba(255, 255, 255, 0.06)',
118
+ 200: 'rgba(255, 255, 255, 0.08)',
119
+ 300: 'rgba(255, 255, 255, 0.16)',
120
+ 400: 'rgba(255, 255, 255, 0.24)',
121
+ 500: 'rgba(255, 255, 255, 0.36)',
122
+ 600: 'rgba(255, 255, 255, 0.48)',
123
+ 700: 'rgba(255, 255, 255, 0.64)',
124
+ 800: 'rgba(255, 255, 255, 0.80)',
125
+ 900: 'rgba(255, 255, 255, 0.92)'
126
+ },
127
+ blackAlpha: {
128
+ 50: 'rgba(0, 0, 0, 0.04)',
129
+ 100: 'rgba(0, 0, 0, 0.06)',
130
+ 200: 'rgba(0, 0, 0, 0.08)',
131
+ 300: 'rgba(0, 0, 0, 0.16)',
132
+ 400: 'rgba(0, 0, 0, 0.24)',
133
+ 500: 'rgba(0, 0, 0, 0.36)',
134
+ 600: 'rgba(0, 0, 0, 0.48)',
135
+ 700: 'rgba(0, 0, 0, 0.64)',
136
+ 800: 'rgba(0, 0, 0, 0.80)',
137
+ 900: 'rgba(0, 0, 0, 0.92)'
138
+ }
139
+ };
140
+ //# sourceMappingURL=colors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colors.js","names":["module","exports","primary","DEFAULT","withOpacity","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;;AAEAA,MAAM,CAACC,OAAP,GAAiB;EACfC,OAAO,EAAE;IACPC,OAAO,EAAE,IAAAC,wBAAA,EAAY,6BAAZ,CADF;IAEPC,IAAI,EAAE,IAAAD,wBAAA,EAAY,0BAAZ,CAFC;IAGPE,KAAK,EAAE,IAAAF,wBAAA,EAAY,2BAAZ,CAHA;IAIPG,MAAM,EAAE,IAAAH,wBAAA,EAAY,4BAAZ,CAJD;IAKP,IAAI,IAAAA,wBAAA,EAAY,6BAAZ,CALG;IAMP,KAAK,IAAAA,wBAAA,EAAY,6BAAZ,CANE;IAOP,KAAK,IAAAA,wBAAA,EAAY,6BAAZ,CAPE;IAQP,KAAK,IAAAA,wBAAA,EAAY,6BAAZ,CARE;IASP,KAAK,IAAAA,wBAAA,EAAY,6BAAZ,CAT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AA,EAAY,2BAAZ,CAbA;IAcL,KAAK,IAAAA,wBAAA,EAAY,2BAAZ;EAdA,CAtFQ;EAuGfS,OAAO,EAAE;IACPV,OAAO,EAAE,IAAAC,wBAAA,EAAY,qBAAZ,CADF;IAEP,IAAI,IAAAA,wBAAA,EAAY,wBAAZ,CAFG;IAGP,KAAK,IAAAA,wBAAA,EAAY,yBAAZ,CAHE;IAIP,KAAK,IAAAA,wBAAA,EAAY,yBAAZ,CAJE;IAKP,KAAK,IAAAA,wBAAA,EAAY,yBAAZ,CALE;IAMP,KAAK,IAAAA,wBAAA,EAAY,yBAAZ,CANE;IAOP,KAAK,IAAAA,wBAAA,EAAY,yBAAZ,CAPE;IAQP,KAAK,IAAAA,wBAAA,EAAY,yBAAZ,CARE;IASP,KAAK,IAAAA,wBAAA,EAAY,yBAAZ,CATE;IAUP,KAAK,IAAAA,wBAAA,EAAY,yBAAZ,CAVE;IAWP,KAAK,IAAAA,wBAAA,EAAY,yBAAZ;EAXE,CAvGM;EAqHfU,UAAU,EAAE;IACV,IAAI,2BADM;IAEV,KAAK,2BAFK;IAGV,KAAK,2BAHK;IAIV,KAAK,2BAJK;IAKV,KAAK,2BALK;IAMV,KAAK,2BANK;IAOV,KAAK,2BAPK;IAQV,KAAK,2BARK;IASV,KAAK,2BATK;IAUV,KAAK;EAVK,CArHG;EAkIfC,UAAU,EAAE;IACV,IAAI,qBADM;IAEV,KAAK,qBAFK;IAGV,KAAK,qBAHK;IAIV,KAAK,qBAJK;IAKV,KAAK,qBALK;IAMV,KAAK,qBANK;IAOV,KAAK,qBAPK;IAQV,KAAK,qBARK;IASV,KAAK,qBATK;IAUV,KAAK;EAVK;AAlIG,CAAjB"}
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports["default"] = exports.Accordion = void 0;
5
+
6
+ var Accordion = function Accordion() {
7
+ return {
8
+ '.accordion': {
9
+ '&-header': {
10
+ '@apply flex flex-col text-left': {},
11
+ '[aria-expanded="true"] &': {
12
+ '@apply bg-hover': {}
13
+ },
14
+ '&-icon': {
15
+ '@apply ml-auto !text-2xl': {}
16
+ }
17
+ },
18
+ '&-is-open &-header': {
19
+ '@apply bg-hover': {}
20
+ },
21
+ '&-toggle': {
22
+ '@apply flex items-center inline-block text-lg leading-lg text-left text-lg mx-lg my-md': {},
23
+ fontWeight: 'bold',
24
+ //"@apply focus-visible:shadow shadow-lg": {},
25
+ '&:focus-visible': {
26
+ boxShadow: '0 0 0 0.4rem #fff!important',
27
+ outline: '0' //"@apply border-4": {},
28
+
29
+ },
30
+ '.accordion-subtitle': {
31
+ '@apply m-0 text-sm font-normal': {}
32
+ }
33
+ },
34
+ '&-body': {
35
+ '@apply h-0 overflow-hidden m-lg': {},
36
+ transitionProperty: 'visibility, height, padding, margin',
37
+ transitionTimingFunction: 'cubic-bezier(0.4, 0, 0.2, 1)',
38
+ transitionDuration: '180ms',
39
+ '&[aria-hidden="true"], &[data-hidden="true"]': {
40
+ '@apply my-0 invisible': {}
41
+ },
42
+ '&[aria-hidden="false"], &[data-hidden="false"]': {
43
+ '@apply block h-auto visible': {}
44
+ }
45
+ },
46
+ '&-solid': {
47
+ '@apply border border-primary': {},
48
+ '.accordion-header': {
49
+ '@apply bg-primary text-white': {},
50
+ '[aria-expanded="true"] &': {
51
+ '@apply bg-hover': {}
52
+ }
53
+ }
54
+ },
55
+ '&-is-open': {
56
+ '@apply border border-gray-stroke': {},
57
+ '& .accordion-header': {
58
+ '@apply bg-hover text-white': {}
59
+ }
60
+ },
61
+ '&-outline': {
62
+ '@apply border border-gray-stroke': {},
63
+ '.accordion-body': {
64
+ '@apply mt-0': {}
65
+ },
66
+ '.accordion-toggle': {
67
+ '&:focus-visible': {
68
+ boxShadow: '0 0 0 0.4rem #4b4b4b!important',
69
+ outline: '0'
70
+ }
71
+ },
72
+ '.accordion-header': {
73
+ '@apply bg-transparent text-body': {},
74
+ '[aria-expanded="true"] &': {
75
+ '@apply bg-hover': {}
76
+ }
77
+ }
78
+ }
79
+ }
80
+ };
81
+ };
82
+
83
+ exports.Accordion = Accordion;
84
+ var _default = Accordion;
85
+ exports["default"] = _default;
86
+ //# sourceMappingURL=accordion.js.map
@@ -0,0 +1 @@
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":";;;;;AAEO,IAAMA,SAAmD,GAAG,SAAtDA,SAAsD;EAAA,OAAO;IACxE,cAAc;MACZ,YAAY;QACV,kCAAkC,EADxB;QAGV,4BAA4B;UAC1B,mBAAmB;QADO,CAHlB;QAOV,UAAU;UACR,4BAA4B;QADpB;MAPA,CADA;MAaZ,sBAAsB;QACpB,mBAAmB;MADC,CAbV;MAiBZ,YAAY;QACV,0FAA0F,EADhF;QAEVC,UAAU,EAAE,MAFF;QAGV;QACA,mBAAmB;UACjBC,SAAS,EAAE,6BADM;UAEjBC,OAAO,EAAE,GAFQ,CAGjB;;QAHiB,CAJT;QASV,uBAAuB;UACrB,kCAAkC;QADb;MATb,CAjBA;MA+BZ,UAAU;QACR,mCAAmC,EAD3B;QAERC,kBAAkB,EAAE,qCAFZ;QAGRC,wBAAwB,EAAE,8BAHlB;QAIRC,kBAAkB,EAAE,OAJZ;QAMR,gDAAgD;UAC9C,yBAAyB;QADqB,CANxC;QAUR,kDAAkD;UAChD,+BAA+B;QADiB;MAV1C,CA/BE;MA8CZ,WAAW;QACT,gCAAgC,EADvB;QAET,qBAAqB;UACnB,gCAAgC,EADb;UAGnB,4BAA4B;YAC1B,mBAAmB;UADO;QAHT;MAFZ,CA9CC;MAyDZ,aAAa;QACX,oCAAoC,EADzB;QAEX,uBAAuB;UACrB,8BAA8B;QADT;MAFZ,CAzDD;MAgEZ,aAAa;QACX,oCAAoC,EADzB;QAEX,mBAAmB;UACjB,eAAe;QADE,CAFR;QAKX,qBAAqB;UACnB,mBAAmB;YACjBJ,SAAS,EAAE,gCADM;YAEjBC,OAAO,EAAE;UAFQ;QADA,CALV;QAWX,qBAAqB;UACnB,mCAAmC,EADhB;UAGnB,4BAA4B;YAC1B,mBAAmB;UADO;QAHT;MAXV;IAhED;EAD0D,CAAP;AAAA,CAA5D;;;eAsFQH,S"}
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports["default"] = exports.Alert = void 0;
5
+
6
+ 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); }
7
+
8
+ function alertSubtle(colors) {
9
+ return {
10
+ '.alert-subtle': _extends({
11
+ '@apply border rounded-base': {},
12
+ '@apply text-body': {}
13
+ }, colors.reduce(function (styles, color) {
14
+ var _ref, _extends2;
15
+
16
+ return _extends({}, styles, (_extends2 = {}, _extends2["&[data-color=\"" + color + "\"]"] = (_ref = {}, _ref["@apply bg-" + color + "-50 border-" + color + "-500"] = {}, _ref["@apply dark:text-" + color + "-300 dark:bg-" + color + "-500"] = {}, _ref['@apply dark:bg-opacity-15'] = {}, _ref['@apply dark:border-opacity-40'] = {}, _ref), _extends2));
17
+ }, {}))
18
+ };
19
+ }
20
+
21
+ function alertSolid(colors) {
22
+ return {
23
+ '.alert-solid': _extends({
24
+ '@apply border rounded-base': {},
25
+ '@apply text-white': {}
26
+ }, colors.reduce(function (styles, color) {
27
+ var _ref2, _extends3;
28
+
29
+ return _extends({}, styles, (_extends3 = {}, _extends3["&[data-color=\"" + color + "\"]"] = (_ref2 = {}, _ref2["@apply bg-" + color + "-500 border-" + color + "-700 border-opacity-20"] = {}, _ref2["@apply dark:bg-" + color + "-600 dark:border-" + color + "-500"] = {}, _ref2['@apply dark:border-opacity-40'] = {}, _ref2), _extends3));
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(function (styles, color) {
40
+ var _ref3, _extends4;
41
+
42
+ return _extends({}, styles, (_extends4 = {}, _extends4["&[data-color=\"" + color + "\"]"] = (_ref3 = {}, _ref3["@apply bg-transparent border-" + color + "-500"] = {}, _ref3["@apply dark:text-" + color + "-300"] = {}, _ref3), _extends4));
43
+ }, {}))
44
+ };
45
+ }
46
+
47
+ function alertCloseButton(colors) {
48
+ return {
49
+ '.alert-close-button': _extends({
50
+ '@apply absolute right-4 cursor-base focus-visible:outline-none': {},
51
+ '@apply text-neutral-600 hover:text-neutral-700': {}
52
+ }, colors.reduce(function (styles, color) {
53
+ var _ref4, _extends5;
54
+
55
+ return _extends({}, styles, (_extends5 = {}, _extends5["&[data-color=\"" + color + "\"]"] = (_ref4 = {}, _ref4["@apply dark:text-" + color + "-300 dark:hover:text-" + color + "-400"] = {}, _ref4), _extends5));
56
+ }, {}))
57
+ };
58
+ }
59
+
60
+ var Alert = function Alert(colors) {
61
+ return _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
+ };
67
+
68
+ exports.Alert = Alert;
69
+ var _default = Alert;
70
+ exports["default"] = _default;
71
+ //# sourceMappingURL=alert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.js","names":["alertSubtle","colors","reduce","styles","color","alertSolid","alertLeftAccent","alertCloseButton","Alert"],"sources":["../../../src/components/alert.ts"],"sourcesContent":["import { tailwindModuleType } from './types';\n\nfunction alertSubtle(colors: string[]) {\n return {\n '.alert-subtle': {\n '@apply border rounded-base': {},\n '@apply text-body': {},\n\n ...colors.reduce(\n (styles, color: string) => ({\n ...styles,\n [`&[data-color=\"${color}\"]`]: {\n [`@apply bg-${color}-50 border-${color}-500`]: {},\n\n [`@apply dark:text-${color}-300 dark:bg-${color}-500`]: {},\n '@apply dark:bg-opacity-15': {},\n '@apply dark:border-opacity-40': {},\n },\n }),\n {}\n ),\n },\n };\n}\n\nfunction alertSolid(colors: string[]) {\n return {\n '.alert-solid': {\n '@apply border rounded-base': {},\n '@apply text-white': {},\n\n ...colors.reduce(\n (styles, color: string) => ({\n ...styles,\n [`&[data-color=\"${color}\"]`]: {\n [`@apply bg-${color}-500 border-${color}-700 border-opacity-20`]: {},\n\n [`@apply dark:bg-${color}-600 dark:border-${color}-500`]: {},\n '@apply dark:border-opacity-40': {},\n },\n }),\n {}\n ),\n },\n };\n}\n\nfunction alertLeftAccent(colors: string[]) {\n return {\n '.alert-left-accent': {\n '@apply border-l-2 rounded-none': {},\n '@apply text-body': {},\n\n ...colors.reduce(\n (styles, color: string) => ({\n ...styles,\n [`&[data-color=\"${color}\"]`]: {\n [`@apply bg-transparent border-${color}-500`]: {},\n\n [`@apply dark:text-${color}-300`]: {},\n },\n }),\n {}\n ),\n },\n };\n}\n\nfunction alertCloseButton(colors: string[]) {\n return {\n '.alert-close-button': {\n '@apply absolute right-4 cursor-base focus-visible:outline-none': {},\n '@apply text-neutral-600 hover:text-neutral-700': {},\n\n ...colors.reduce(\n (styles, color: string) => ({\n ...styles,\n [`&[data-color=\"${color}\"]`]: {\n [`@apply dark:text-${color}-300 dark:hover:text-${color}-400`]: {},\n },\n }),\n {}\n ),\n },\n };\n}\n\nexport const Alert: (colors: string[]) => tailwindModuleType = (colors) => ({\n '.alert': {\n '@apply w-full flex items-center px-4 py-3 relative overflow-hidden text-sm': {},\n },\n\n // variants\n ...alertSubtle(colors),\n ...alertSolid(colors),\n ...alertLeftAccent(colors),\n\n // close button\n ...alertCloseButton(colors),\n});\nexport default Alert;\n"],"mappings":";;;;;;;AAEA,SAASA,WAAT,CAAqBC,MAArB,EAAuC;EACrC,OAAO;IACL;MACE,8BAA8B,EADhC;MAEE,oBAAoB;IAFtB,GAIKA,MAAM,CAACC,MAAP,CACD,UAACC,MAAD,EAASC,KAAT;M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AkD,CAACP,MAAD;EAAA;IAC7D,UAAU;MACR,8EAA8E;IADtE;EADmD,GAM1DD,WAAW,CAACC,MAAD,CAN+C,EAO1DI,UAAU,CAACJ,MAAD,CAPgD,EAQ1DK,eAAe,CAACL,MAAD,CAR2C,EAW1DM,gBAAgB,CAACN,MAAD,CAX0C;AAAA,CAAxD;;;eAaQO,K"}
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports["default"] = exports.Avatar = void 0;
5
+
6
+ var Avatar = function Avatar() {
7
+ return {
8
+ '.avatar': {
9
+ '@apply relative inline-flex items-center justify-center flex-shrink-0 align-top rounded-full': {},
10
+ '@apply bg-neutral-300 text-neutral-800': {},
11
+ // dark colors
12
+ '@apply dark:bg-neutral-600 dark:text-neutral-100': {},
13
+ '&-2xs': {
14
+ '@apply w-4 h-4': {}
15
+ },
16
+ '&-xs': {
17
+ '@apply w-5 h-5': {}
18
+ },
19
+ '&-sm': {
20
+ '@apply w-6 h-6': {}
21
+ },
22
+ '&-md': {
23
+ '@apply w-7 h-7': {}
24
+ },
25
+ '&-lg': {
26
+ '@apply w-8 h-8': {}
27
+ },
28
+ '&-xl': {
29
+ '@apply w-10 h-10': {}
30
+ },
31
+ '&-2xl': {
32
+ '@apply w-12 h-12': {}
33
+ },
34
+ '&-3xl': {
35
+ '@apply w-16 h-16': {}
36
+ }
37
+ },
38
+ '.avatar-bordered': {
39
+ '@apply border-2 border-white': {},
40
+ '@apply dark:border-neutral-800': {}
41
+ },
42
+ '.avatar-name': {
43
+ '@apply font-medium text-center uppercase': {},
44
+ '&-2xs': {
45
+ '@apply w-4 h-4': {}
46
+ },
47
+ '&-xs': {
48
+ '@apply w-5 h-5': {}
49
+ },
50
+ '&-sm': {
51
+ '@apply w-6 h-6': {}
52
+ },
53
+ '&-md': {
54
+ '@apply w-7 h-7': {}
55
+ },
56
+ '&-lg': {
57
+ '@apply w-8 h-8': {}
58
+ },
59
+ '&-xl': {
60
+ '@apply w-10 h-10': {}
61
+ },
62
+ '&-2xl': {
63
+ '@apply w-12 h-12': {}
64
+ },
65
+ '&-3xl': {
66
+ '@apply w-16 h-16': {}
67
+ }
68
+ },
69
+ '.avatar-group': {
70
+ '@apply flex items-center justify-end flex-row-reverse': {}
71
+ }
72
+ };
73
+ };
74
+
75
+ exports.Avatar = Avatar;
76
+ var _default = Avatar;
77
+ exports["default"] = _default;
78
+ //# sourceMappingURL=avatar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"avatar.js","names":["Avatar"],"sources":["../../../src/components/avatar.ts"],"sourcesContent":["import { tailwindModuleType } from './types';\n\nexport const Avatar: (colors: string[]) => tailwindModuleType = () => ({\n '.avatar': {\n '@apply relative inline-flex items-center justify-center flex-shrink-0 align-top rounded-full': {},\n '@apply bg-neutral-300 text-neutral-800': {},\n // dark colors\n '@apply dark:bg-neutral-600 dark:text-neutral-100': {},\n\n '&-2xs': {\n '@apply w-4 h-4': {},\n },\n\n '&-xs': {\n '@apply w-5 h-5': {},\n },\n\n '&-sm': {\n '@apply w-6 h-6': {},\n },\n\n '&-md': {\n '@apply w-7 h-7': {},\n },\n\n '&-lg': {\n '@apply w-8 h-8': {},\n },\n\n '&-xl': {\n '@apply w-10 h-10': {},\n },\n\n '&-2xl': {\n '@apply w-12 h-12': {},\n },\n\n '&-3xl': {\n '@apply w-16 h-16': {},\n },\n },\n\n '.avatar-bordered': {\n '@apply border-2 border-white': {},\n '@apply dark:border-neutral-800': {},\n },\n\n '.avatar-name': {\n '@apply font-medium text-center uppercase': {},\n\n '&-2xs': {\n '@apply w-4 h-4': {},\n },\n\n '&-xs': {\n '@apply w-5 h-5': {},\n },\n\n '&-sm': {\n '@apply w-6 h-6': {},\n },\n\n '&-md': {\n '@apply w-7 h-7': {},\n },\n\n '&-lg': {\n '@apply w-8 h-8': {},\n },\n\n '&-xl': {\n '@apply w-10 h-10': {},\n },\n\n '&-2xl': {\n '@apply w-12 h-12': {},\n },\n\n '&-3xl': {\n '@apply w-16 h-16': {},\n },\n },\n\n '.avatar-group': {\n '@apply flex items-center justify-end flex-row-reverse': {},\n },\n});\nexport default Avatar;\n"],"mappings":";;;;;AAEO,IAAMA,MAAgD,GAAG,SAAnDA,MAAmD;EAAA,OAAO;IACrE,WAAW;MACT,gGAAgG,EADvF;MAET,0CAA0C,EAFjC;MAGT;MACA,oDAAoD,EAJ3C;MAMT,SAAS;QACP,kBAAkB;MADX,CANA;MAUT,QAAQ;QACN,kBAAkB;MADZ,CAVC;MAcT,QAAQ;QACN,kBAAkB;MADZ,CAdC;MAkBT,QAAQ;QACN,kBAAkB;MADZ,CAlBC;MAsBT,QAAQ;QACN,kBAAkB;MADZ,CAtBC;MA0BT,QAAQ;QACN,oBAAoB;MADd,CA1BC;MA8BT,SAAS;QACP,oBAAoB;MADb,CA9BA;MAkCT,SAAS;QACP,oBAAoB;MADb;IAlCA,CAD0D;IAwCrE,oBAAoB;MAClB,gCAAgC,EADd;MAElB,kCAAkC;IAFhB,CAxCiD;IA6CrE,gBAAgB;MACd,4CAA4C,EAD9B;MAGd,SAAS;QACP,kBAAkB;MADX,CAHK;MAOd,QAAQ;QACN,kBAAkB;MADZ,CAPM;MAWd,QAAQ;QACN,kBAAkB;MADZ,CAXM;MAed,QAAQ;QACN,kBAAkB;MADZ,CAfM;MAmBd,QAAQ;QACN,kBAAkB;MADZ,CAnBM;MAuBd,QAAQ;QACN,oBAAoB;MADd,CAvBM;MA2Bd,SAAS;QACP,oBAAoB;MADb,CA3BK;MA+Bd,SAAS;QACP,oBAAoB;MADb;IA/BK,CA7CqD;IAiFrE,iBAAiB;MACf,yDAAyD;IAD1C;EAjFoD,CAAP;AAAA,CAAzD;;;eAqFQA,M"}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports["default"] = exports.Badge = void 0;
5
+
6
+ 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); }
7
+
8
+ var Badge = function Badge(colors) {
9
+ return {
10
+ '.badge': {
11
+ '@apply inline-block text-xs font-medium leading-4 text-center whitespace-nowrap': {},
12
+ '&-light': _extends({
13
+ '@apply text-body bg-neutral-200 border border-transparent': {},
14
+ '@apply dark:text-neutral-100 dark:bg-neutral-700': {}
15
+ }, colors.reduce(function (styles, color) {
16
+ var _ref, _extends2;
17
+
18
+ return _extends({}, styles, (_extends2 = {}, _extends2["&[data-color=\"" + color + "\"]"] = (_ref = {}, _ref["@apply text-" + color + "-800 bg-" + color + "-100"] = {}, _ref["@apply dark:text-" + color + "-400 dark:bg-" + color + "-500"] = {}, _ref['@apply dark:bg-opacity-15'] = {}, _ref), _extends2));
19
+ }, {})),
20
+ '&-solid': _extends({
21
+ '@apply text-white bg-neutral-500 border border-transparent': {},
22
+ '@apply dark:border-neutral-600 dark:text-neutral-100 dark:bg-neutral-700': {}
23
+ }, colors.reduce(function (styles, color) {
24
+ var _ref2, _extends3;
25
+
26
+ return _extends({}, styles, (_extends3 = {}, _extends3["&[data-color=\"" + color + "\"]"] = (_ref2 = {}, _ref2["@apply bg-" + color + "-500"] = {}, _ref2["@apply dark:text-" + color + "-400 dark:border-" + color + "-500 dark:bg-" + color + "-500"] = {}, _ref2['@apply dark:bg-opacity-15'] = {}, _ref2['@apply dark:border-opacity-40'] = {}, _ref2), _extends3));
27
+ }, {})),
28
+ '&-sm': {
29
+ minWidth: '14px',
30
+ height: '14px',
31
+ padding: '0px',
32
+ lineHeight: '12px',
33
+ borderRadius: '2em'
34
+ },
35
+ '&-md': {
36
+ '@apply px-1.5 py-0': {},
37
+ minWidth: '20px',
38
+ height: '20px',
39
+ lineHeight: '18px',
40
+ borderRadius: '2em'
41
+ },
42
+ '&-shadow': {
43
+ '@apply ring-1 ring-white': {},
44
+ '@apply dark:ring-black': {}
45
+ }
46
+ }
47
+ };
48
+ };
49
+
50
+ exports.Badge = Badge;
51
+ var _default = Badge;
52
+ exports["default"] = _default;
53
+ //# sourceMappingURL=badge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge.js","names":["Badge","colors","reduce","styles","color","minWidth","height","padding","lineHeight","borderRadius"],"sources":["../../../src/components/badge.ts"],"sourcesContent":["import { tailwindModuleType } from './types';\n\nexport const Badge: (colors: string[]) => tailwindModuleType = (colors) => ({\n '.badge': {\n '@apply inline-block text-xs font-medium leading-4 text-center whitespace-nowrap': {},\n\n '&-light': {\n '@apply text-body bg-neutral-200 border border-transparent': {},\n '@apply dark:text-neutral-100 dark:bg-neutral-700': {},\n\n ...colors.reduce(\n (styles, color) => ({\n ...styles,\n [`&[data-color=\"${color}\"]`]: {\n [`@apply text-${color}-800 bg-${color}-100`]: {},\n [`@apply dark:text-${color}-400 dark:bg-${color}-500`]: {},\n '@apply dark:bg-opacity-15': {},\n },\n }),\n {}\n ),\n },\n\n '&-solid': {\n '@apply text-white bg-neutral-500 border border-transparent': {},\n '@apply dark:border-neutral-600 dark:text-neutral-100 dark:bg-neutral-700': {},\n ...colors.reduce(\n (styles, color) => ({\n ...styles,\n [`&[data-color=\"${color}\"]`]: {\n [`@apply bg-${color}-500`]: {},\n [`@apply dark:text-${color}-400 dark:border-${color}-500 dark:bg-${color}-500`]: {},\n '@apply dark:bg-opacity-15': {},\n '@apply dark:border-opacity-40': {},\n },\n }),\n {}\n ),\n },\n\n '&-sm': {\n minWidth: '14px',\n height: '14px',\n padding: '0px',\n lineHeight: '12px',\n borderRadius: '2em',\n },\n\n '&-md': {\n '@apply px-1.5 py-0': {},\n minWidth: '20px',\n height: '20px',\n lineHeight: '18px',\n borderRadius: '2em',\n },\n\n '&-shadow': {\n '@apply ring-1 ring-white': {},\n '@apply dark:ring-black': {},\n },\n },\n});\nexport default Badge;\n"],"mappings":";;;;;;;AAEO,IAAMA,KAA+C,GAAG,SAAlDA,KAAkD,CAACC,MAAD;EAAA,OAAa;IAC1E,UAAU;MACR,mFAAmF,EAD3E;MAGR;QACE,6DAA6D,EAD/D;QAEE,oDAAoD;MAFtD,GAIKA,MAAM,CAACC,MAAP,CACD,UAACC,MAAD,EAASC,KAAT;QAAA;;QAAA,oBACKD,MADL,iDAEoBC,KAFpB,8CAGoBA,KAHpB,gBAGoCA,KAHpC,aAGkD,EAHlD,6BAIyBA,KAJzB,qBAI8CA,KAJ9C,aAI4D,EAJ5D,OAKI,2BALJ,IAKiC,EALjC;MAAA,CADC,EASD,EATC,CAJL,CAHQ;MAoBR;QACE,8DAA8D,EADhE;QAEE,4EAA4E;MAF9E,GAGKH,MAAM,CAACC,MAAP,CACD,UAACC,MAAD,EAASC,KAAT;QAAA;;QAAA,oBACKD,MADL,iDAEoBC,KAFpB,8CAGkBA,KAHlB,aAGgC,EAHhC,8BAIyBA,KAJzB,yBAIkDA,KAJlD,qBAIuEA,KAJvE,aAIqF,EAJrF,QAKI,2BALJ,IAKiC,EALjC,QAMI,+BANJ,IAMqC,EANrC;MAAA,CADC,EAUD,EAVC,CAHL,CApBQ;MAqCR,QAAQ;QACNC,QAAQ,EAAE,MADJ;QAENC,MAAM,EAAE,MAFF;QAGNC,OAAO,EAAE,KAHH;QAINC,UAAU,EAAE,MAJN;QAKNC,YAAY,EAAE;MALR,CArCA;MA6CR,QAAQ;QACN,sBAAsB,EADhB;QAENJ,QAAQ,EAAE,MAFJ;QAGNC,MAAM,EAAE,MAHF;QAINE,UAAU,EAAE,MAJN;QAKNC,YAAY,EAAE;MALR,CA7CA;MAqDR,YAAY;QACV,4BAA4B,EADlB;QAEV,0BAA0B;MAFhB;IArDJ;EADgE,CAAb;AAAA,CAAxD;;;eA4DQT,K"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports["default"] = exports.Breadcrumb = void 0;
5
+
6
+ var Breadcrumb = function Breadcrumb() {
7
+ return {
8
+ '.breadcrumb': {
9
+ '@apply text-body relative': {},
10
+ '&-item': {
11
+ '@apply inline-flex items-center whitespace-nowrap': {}
12
+ },
13
+ '&-separator': {
14
+ '@apply mx-2': {}
15
+ }
16
+ }
17
+ };
18
+ };
19
+
20
+ exports.Breadcrumb = Breadcrumb;
21
+ var _default = Breadcrumb;
22
+ exports["default"] = _default;
23
+ //# sourceMappingURL=breadcrumb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breadcrumb.js","names":["Breadcrumb"],"sources":["../../../src/components/breadcrumb.ts"],"sourcesContent":["import { tailwindModuleType } from './types';\n\nexport const Breadcrumb: (colors: string[]) => tailwindModuleType = () => ({\n '.breadcrumb': {\n '@apply text-body relative': {},\n\n '&-item': {\n '@apply inline-flex items-center whitespace-nowrap': {},\n },\n\n '&-separator': {\n '@apply mx-2': {},\n },\n },\n});\nexport default Breadcrumb;\n"],"mappings":";;;;;AAEO,IAAMA,UAAoD,GAAG,SAAvDA,UAAuD;EAAA,OAAO;IACzE,eAAe;MACb,6BAA6B,EADhB;MAGb,UAAU;QACR,qDAAqD;MAD7C,CAHG;MAOb,eAAe;QACb,eAAe;MADF;IAPF;EAD0D,CAAP;AAAA,CAA7D;;;eAaQA,U"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports["default"] = exports.ButtonGroup = void 0;
5
+
6
+ // TODO: how it works with prefix?
7
+ var ButtonGroup = function ButtonGroup() {
8
+ return {
9
+ '.btn-group': {
10
+ '@apply inline-block': {},
11
+ '&.btn-group-attached': {
12
+ '> .btn-icon': {
13
+ boxSizing: 'content-box'
14
+ },
15
+ '> *:first-of-type:not(:last-of-type)': {
16
+ borderTopRightRadius: '0px',
17
+ borderBottomRightRadius: '0px'
18
+ },
19
+ '> *:not(:first-of-type):not(:last-of-type)': {
20
+ borderRadius: '0px'
21
+ },
22
+ '> *:not(:first-of-type):last-of-type': {
23
+ borderTopLeftRadius: '0px',
24
+ borderBottomLeftRadius: '0px'
25
+ },
26
+ '> .btn-solid:not(:last-child), > .btn-outline:not(:last-child)': {
27
+ borderRightWidth: '0px'
28
+ },
29
+ '> .btn-solid:hover, > .btn-outline:hover': {
30
+ borderRightWidth: '1px'
31
+ },
32
+ '> *:not(:last-of-type):hover + .btn-solid, > *:not(:last-of-type):hover + .btn-outline': {
33
+ borderLeftWidth: '0px'
34
+ },
35
+ '> .btn-solid:focus, > .btn-outline:focus': {
36
+ zIndex: '1px',
37
+ borderRightWidth: '1px'
38
+ },
39
+ '> *:not(:last-of-type):focus + .btn-solid, > *:not(:last-of-type):focus + .btn-outline': {
40
+ borderLeftWidth: '0px'
41
+ }
42
+ }
43
+ }
44
+ };
45
+ };
46
+
47
+ exports.ButtonGroup = ButtonGroup;
48
+ var _default = ButtonGroup;
49
+ exports["default"] = _default;
50
+ //# sourceMappingURL=button-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button-group.js","names":["ButtonGroup","boxSizing","borderTopRightRadius","borderBottomRightRadius","borderRadius","borderTopLeftRadius","borderBottomLeftRadius","borderRightWidth","borderLeftWidth","zIndex"],"sources":["../../../src/components/button-group.ts"],"sourcesContent":["import { tailwindModuleType } from './types';\n\n// TODO: how it works with prefix?\nexport const ButtonGroup: (colors: string[]) => tailwindModuleType = () => ({\n '.btn-group': {\n '@apply inline-block': {},\n\n '&.btn-group-attached': {\n '> .btn-icon': {\n boxSizing: 'content-box',\n },\n '> *:first-of-type:not(:last-of-type)': {\n borderTopRightRadius: '0px',\n borderBottomRightRadius: '0px',\n },\n\n '> *:not(:first-of-type):not(:last-of-type)': {\n borderRadius: '0px',\n },\n\n '> *:not(:first-of-type):last-of-type': {\n borderTopLeftRadius: '0px',\n borderBottomLeftRadius: '0px',\n },\n\n '> .btn-solid:not(:last-child), > .btn-outline:not(:last-child)': {\n borderRightWidth: '0px',\n },\n\n '> .btn-solid:hover, > .btn-outline:hover': {\n borderRightWidth: '1px',\n },\n\n '> *:not(:last-of-type):hover + .btn-solid, > *:not(:last-of-type):hover + .btn-outline': {\n borderLeftWidth: '0px',\n },\n\n '> .btn-solid:focus, > .btn-outline:focus': {\n zIndex: '1px',\n borderRightWidth: '1px',\n },\n\n '> *:not(:last-of-type):focus + .btn-solid, > *:not(:last-of-type):focus + .btn-outline': {\n borderLeftWidth: '0px',\n },\n },\n },\n});\nexport default ButtonGroup;\n"],"mappings":";;;;;AAEA;AACO,IAAMA,WAAqD,GAAG,SAAxDA,WAAwD;EAAA,OAAO;IAC1E,cAAc;MACZ,uBAAuB,EADX;MAGZ,wBAAwB;QACtB,eAAe;UACbC,SAAS,EAAE;QADE,CADO;QAItB,wCAAwC;UACtCC,oBAAoB,EAAE,KADgB;UAEtCC,uBAAuB,EAAE;QAFa,CAJlB;QAStB,8CAA8C;UAC5CC,YAAY,EAAE;QAD8B,CATxB;QAatB,wCAAwC;UACtCC,mBAAmB,EAAE,KADiB;UAEtCC,sBAAsB,EAAE;QAFc,CAblB;QAkBtB,kEAAkE;UAChEC,gBAAgB,EAAE;QAD8C,CAlB5C;QAsBtB,4CAA4C;UAC1CA,gBAAgB,EAAE;QADwB,CAtBtB;QA0BtB,0FAA0F;UACxFC,eAAe,EAAE;QADuE,CA1BpE;QA8BtB,4CAA4C;UAC1CC,MAAM,EAAE,KADkC;UAE1CF,gBAAgB,EAAE;QAFwB,CA9BtB;QAmCtB,0FAA0F;UACxFC,eAAe,EAAE;QADuE;MAnCpE;IAHZ;EAD4D,CAAP;AAAA,CAA9D;;;eA6CQR,W"}