@sk-web-gui/core 0.1.47 → 0.1.48

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 +93 -93
  6. package/src/components/alert-banner.js +25 -25
  7. package/src/components/alert.js +98 -98
  8. package/src/components/avatar.js +85 -85
  9. package/src/components/badge.js +60 -60
  10. package/src/components/breadcrumb.js +13 -13
  11. package/src/components/button-group.js +46 -46
  12. package/src/components/button.js +304 -304
  13. package/src/components/calendar.js +82 -82
  14. package/src/components/card.js +54 -54
  15. package/src/components/checkbox.js +127 -127
  16. package/src/components/code.js +9 -9
  17. package/src/components/cookie-consent.js +30 -30
  18. package/src/components/divider.js +12 -12
  19. package/src/components/dot.js +84 -84
  20. package/src/components/dropdown-filter.js +72 -72
  21. package/src/components/footer.js +42 -42
  22. package/src/components/forms.js +256 -256
  23. package/src/components/header.js +35 -35
  24. package/src/components/icon-button.js +5 -5
  25. package/src/components/icon.js +9 -9
  26. package/src/components/kbd.js +9 -9
  27. package/src/components/link.js +20 -20
  28. package/src/components/message.js +62 -62
  29. package/src/components/modal.js +30 -30
  30. package/src/components/notification.js +56 -56
  31. package/src/components/pagination.js +69 -69
  32. package/src/components/radio.js +104 -104
  33. package/src/components/search-bar.js +45 -45
  34. package/src/components/side-menu.js +166 -167
  35. package/src/components/switch.js +119 -119
  36. package/src/components/tab-menu.js +44 -44
  37. package/src/components/table.js +13 -13
  38. package/src/components/tag.js +97 -97
  39. package/src/components/user-menu.js +23 -23
  40. package/src/components/zebratable.js +77 -77
  41. package/src/index.js +284 -284
  42. package/src/with-opacity.js +6 -6
  43. package/dist/cjs/colors.js +0 -140
  44. package/dist/cjs/colors.js.map +0 -1
  45. package/dist/cjs/components/accordion.js +0 -86
  46. package/dist/cjs/components/accordion.js.map +0 -1
  47. package/dist/cjs/components/alert.js +0 -71
  48. package/dist/cjs/components/alert.js.map +0 -1
  49. package/dist/cjs/components/avatar.js +0 -78
  50. package/dist/cjs/components/avatar.js.map +0 -1
  51. package/dist/cjs/components/badge.js +0 -53
  52. package/dist/cjs/components/badge.js.map +0 -1
  53. package/dist/cjs/components/breadcrumb.js +0 -23
  54. package/dist/cjs/components/breadcrumb.js.map +0 -1
  55. package/dist/cjs/components/button-group.js +0 -50
  56. package/dist/cjs/components/button-group.js.map +0 -1
  57. package/dist/cjs/components/button.js +0 -154
  58. package/dist/cjs/components/button.js.map +0 -1
  59. package/dist/cjs/components/calendar.js +0 -76
  60. package/dist/cjs/components/calendar.js.map +0 -1
  61. package/dist/cjs/components/card.js +0 -59
  62. package/dist/cjs/components/card.js.map +0 -1
  63. package/dist/cjs/components/checkbox.js +0 -92
  64. package/dist/cjs/components/checkbox.js.map +0 -1
  65. package/dist/cjs/components/code.js +0 -21
  66. package/dist/cjs/components/code.js.map +0 -1
  67. package/dist/cjs/components/cookie-consent.js +0 -35
  68. package/dist/cjs/components/cookie-consent.js.map +0 -1
  69. package/dist/cjs/components/divider.js +0 -24
  70. package/dist/cjs/components/divider.js.map +0 -1
  71. package/dist/cjs/components/dot.js +0 -70
  72. package/dist/cjs/components/dot.js.map +0 -1
  73. package/dist/cjs/components/footer.js +0 -39
  74. package/dist/cjs/components/footer.js.map +0 -1
  75. package/dist/cjs/components/forms.js +0 -225
  76. package/dist/cjs/components/forms.js.map +0 -1
  77. package/dist/cjs/components/header.js +0 -34
  78. package/dist/cjs/components/header.js.map +0 -1
  79. package/dist/cjs/components/icon-button.js +0 -17
  80. package/dist/cjs/components/icon-button.js.map +0 -1
  81. package/dist/cjs/components/icon.js +0 -20
  82. package/dist/cjs/components/icon.js.map +0 -1
  83. package/dist/cjs/components/kbd.js +0 -21
  84. package/dist/cjs/components/kbd.js.map +0 -1
  85. package/dist/cjs/components/link.js +0 -29
  86. package/dist/cjs/components/link.js.map +0 -1
  87. package/dist/cjs/components/message.js +0 -63
  88. package/dist/cjs/components/message.js.map +0 -1
  89. package/dist/cjs/components/modal.js +0 -35
  90. package/dist/cjs/components/modal.js.map +0 -1
  91. package/dist/cjs/components/notification.js +0 -58
  92. package/dist/cjs/components/notification.js.map +0 -1
  93. package/dist/cjs/components/pagination.js +0 -66
  94. package/dist/cjs/components/pagination.js.map +0 -1
  95. package/dist/cjs/components/radio.js +0 -95
  96. package/dist/cjs/components/radio.js.map +0 -1
  97. package/dist/cjs/components/switch.js +0 -107
  98. package/dist/cjs/components/switch.js.map +0 -1
  99. package/dist/cjs/components/table.js +0 -23
  100. package/dist/cjs/components/table.js.map +0 -1
  101. package/dist/cjs/components/tag.js +0 -88
  102. package/dist/cjs/components/tag.js.map +0 -1
  103. package/dist/cjs/components/types.js +0 -10
  104. package/dist/cjs/components/types.js.map +0 -1
  105. package/dist/cjs/components/user-menu.js +0 -33
  106. package/dist/cjs/components/user-menu.js.map +0 -1
  107. package/dist/cjs/components/zebratable.js +0 -70
  108. package/dist/cjs/components/zebratable.js.map +0 -1
  109. package/dist/cjs/index.js +0 -282
  110. package/dist/cjs/index.js.map +0 -1
  111. package/dist/cjs/with-opacity.js +0 -15
  112. package/dist/cjs/with-opacity.js.map +0 -1
  113. package/dist/esm/colors.js +0 -137
  114. package/dist/esm/colors.js.map +0 -1
  115. package/dist/esm/components/accordion.js +0 -76
  116. package/dist/esm/components/accordion.js.map +0 -1
  117. package/dist/esm/components/alert.js +0 -67
  118. package/dist/esm/components/alert.js.map +0 -1
  119. package/dist/esm/components/avatar.js +0 -68
  120. package/dist/esm/components/avatar.js.map +0 -1
  121. package/dist/esm/components/badge.js +0 -48
  122. package/dist/esm/components/badge.js.map +0 -1
  123. package/dist/esm/components/breadcrumb.js +0 -13
  124. package/dist/esm/components/breadcrumb.js.map +0 -1
  125. package/dist/esm/components/button-group.js +0 -40
  126. package/dist/esm/components/button-group.js.map +0 -1
  127. package/dist/esm/components/button.js +0 -197
  128. package/dist/esm/components/button.js.map +0 -1
  129. package/dist/esm/components/calendar.js +0 -66
  130. package/dist/esm/components/calendar.js.map +0 -1
  131. package/dist/esm/components/card.js +0 -49
  132. package/dist/esm/components/card.js.map +0 -1
  133. package/dist/esm/components/checkbox.js +0 -110
  134. package/dist/esm/components/checkbox.js.map +0 -1
  135. package/dist/esm/components/code.js +0 -11
  136. package/dist/esm/components/code.js.map +0 -1
  137. package/dist/esm/components/cookie-consent.js +0 -25
  138. package/dist/esm/components/cookie-consent.js.map +0 -1
  139. package/dist/esm/components/divider.js +0 -14
  140. package/dist/esm/components/divider.js.map +0 -1
  141. package/dist/esm/components/dot.js +0 -61
  142. package/dist/esm/components/dot.js.map +0 -1
  143. package/dist/esm/components/footer.js +0 -29
  144. package/dist/esm/components/footer.js.map +0 -1
  145. package/dist/esm/components/forms.js +0 -217
  146. package/dist/esm/components/forms.js.map +0 -1
  147. package/dist/esm/components/header.js +0 -29
  148. package/dist/esm/components/header.js.map +0 -1
  149. package/dist/esm/components/icon-button.js +0 -7
  150. package/dist/esm/components/icon-button.js.map +0 -1
  151. package/dist/esm/components/icon.js +0 -10
  152. package/dist/esm/components/icon.js.map +0 -1
  153. package/dist/esm/components/kbd.js +0 -11
  154. package/dist/esm/components/kbd.js.map +0 -1
  155. package/dist/esm/components/link.js +0 -19
  156. package/dist/esm/components/link.js.map +0 -1
  157. package/dist/esm/components/message.js +0 -53
  158. package/dist/esm/components/message.js.map +0 -1
  159. package/dist/esm/components/modal.js +0 -25
  160. package/dist/esm/components/modal.js.map +0 -1
  161. package/dist/esm/components/notification.js +0 -48
  162. package/dist/esm/components/notification.js.map +0 -1
  163. package/dist/esm/components/pagination.js +0 -56
  164. package/dist/esm/components/pagination.js.map +0 -1
  165. package/dist/esm/components/radio.js +0 -88
  166. package/dist/esm/components/radio.js.map +0 -1
  167. package/dist/esm/components/switch.js +0 -98
  168. package/dist/esm/components/switch.js.map +0 -1
  169. package/dist/esm/components/table.js +0 -13
  170. package/dist/esm/components/table.js.map +0 -1
  171. package/dist/esm/components/tag.js +0 -84
  172. package/dist/esm/components/tag.js.map +0 -1
  173. package/dist/esm/components/types.js +0 -3
  174. package/dist/esm/components/types.js.map +0 -1
  175. package/dist/esm/components/user-menu.js +0 -23
  176. package/dist/esm/components/user-menu.js.map +0 -1
  177. package/dist/esm/components/zebratable.js +0 -60
  178. package/dist/esm/components/zebratable.js.map +0 -1
  179. package/dist/esm/index.js +0 -327
  180. package/dist/esm/index.js.map +0 -1
  181. package/dist/esm/with-opacity.js +0 -10
  182. package/dist/esm/with-opacity.js.map +0 -1
  183. package/dist/types/accordion/index.d.ts +0 -1
  184. package/dist/types/accordion/src/accordion.d.ts +0 -17
  185. package/dist/types/accordion/src/index.d.ts +0 -1
  186. package/dist/types/accordion/src/styles.d.ts +0 -1
  187. package/dist/types/accordion/stories/accordion.stories.d.ts +0 -40
  188. package/dist/types/alert/index.d.ts +0 -1
  189. package/dist/types/alert/src/alert.d.ts +0 -15
  190. package/dist/types/alert/src/index.d.ts +0 -8
  191. package/dist/types/alert/src/styles.d.ts +0 -2
  192. package/dist/types/breadcrumb/index.d.ts +0 -1
  193. package/dist/types/breadcrumb/src/breadcrumb.d.ts +0 -34
  194. package/dist/types/breadcrumb/src/index.d.ts +0 -10
  195. package/dist/types/breadcrumb/stories/breadcrumb.stories.d.ts +0 -28
  196. package/dist/types/button/index.d.ts +0 -1
  197. package/dist/types/button/src/button-group.d.ts +0 -20
  198. package/dist/types/button/src/button.d.ts +0 -21
  199. package/dist/types/button/src/icon-button.d.ts +0 -17
  200. package/dist/types/button/src/index.d.ts +0 -10
  201. package/dist/types/button/src/styles.d.ts +0 -1
  202. package/dist/types/button/stories/announcement.d.ts +0 -6
  203. package/dist/types/button/stories/button-group.stories.d.ts +0 -14
  204. package/dist/types/button/stories/button.stories.d.ts +0 -127
  205. package/dist/types/button/stories/icon-button.stories.d.ts +0 -16
  206. package/dist/types/card/index.d.ts +0 -1
  207. package/dist/types/card/src/card.d.ts +0 -38
  208. package/dist/types/card/src/index.d.ts +0 -1
  209. package/dist/types/card/src/styles.d.ts +0 -1
  210. package/dist/types/card/stories/card.stories.d.ts +0 -56
  211. package/dist/types/checkbox/index.d.ts +0 -1
  212. package/dist/types/checkbox/src/checkbox-group.d.ts +0 -36
  213. package/dist/types/checkbox/src/checkbox.d.ts +0 -46
  214. package/dist/types/checkbox/src/index.d.ts +0 -9
  215. package/dist/types/checkbox/src/styles.d.ts +0 -2
  216. package/dist/types/checkbox/stories/checkbox.stories.d.ts +0 -103
  217. package/dist/types/cookie-consent/index.d.ts +0 -1
  218. package/dist/types/cookie-consent/src/cookie-consent.d.ts +0 -37
  219. package/dist/types/cookie-consent/src/index.d.ts +0 -1
  220. package/dist/types/cookie-consent/src/styles.d.ts +0 -1
  221. package/dist/types/core/src/colors.d.ts +0 -1
  222. package/dist/types/core/src/components/accordion.d.ts +0 -3
  223. package/dist/types/core/src/components/alert.d.ts +0 -3
  224. package/dist/types/core/src/components/avatar.d.ts +0 -3
  225. package/dist/types/core/src/components/badge.d.ts +0 -3
  226. package/dist/types/core/src/components/breadcrumb.d.ts +0 -3
  227. package/dist/types/core/src/components/button-group.d.ts +0 -3
  228. package/dist/types/core/src/components/button.d.ts +0 -3
  229. package/dist/types/core/src/components/calendar.d.ts +0 -3
  230. package/dist/types/core/src/components/card.d.ts +0 -3
  231. package/dist/types/core/src/components/checkbox.d.ts +0 -3
  232. package/dist/types/core/src/components/code.d.ts +0 -3
  233. package/dist/types/core/src/components/cookie-consent.d.ts +0 -3
  234. package/dist/types/core/src/components/divider.d.ts +0 -3
  235. package/dist/types/core/src/components/dot.d.ts +0 -3
  236. package/dist/types/core/src/components/footer.d.ts +0 -3
  237. package/dist/types/core/src/components/forms.d.ts +0 -3
  238. package/dist/types/core/src/components/header.d.ts +0 -3
  239. package/dist/types/core/src/components/icon-button.d.ts +0 -3
  240. package/dist/types/core/src/components/icon.d.ts +0 -3
  241. package/dist/types/core/src/components/kbd.d.ts +0 -3
  242. package/dist/types/core/src/components/link.d.ts +0 -3
  243. package/dist/types/core/src/components/message.d.ts +0 -3
  244. package/dist/types/core/src/components/modal.d.ts +0 -3
  245. package/dist/types/core/src/components/notification.d.ts +0 -3
  246. package/dist/types/core/src/components/pagination.d.ts +0 -3
  247. package/dist/types/core/src/components/radio.d.ts +0 -3
  248. package/dist/types/core/src/components/switch.d.ts +0 -3
  249. package/dist/types/core/src/components/table.d.ts +0 -3
  250. package/dist/types/core/src/components/tag.d.ts +0 -3
  251. package/dist/types/core/src/components/types.d.ts +0 -5
  252. package/dist/types/core/src/components/user-menu.d.ts +0 -3
  253. package/dist/types/core/src/components/zebratable.d.ts +0 -3
  254. package/dist/types/core/src/index.d.ts +0 -1
  255. package/dist/types/core/src/with-opacity.d.ts +0 -3
  256. package/dist/types/divider/index.d.ts +0 -1
  257. package/dist/types/divider/src/divider.d.ts +0 -9
  258. package/dist/types/divider/src/index.d.ts +0 -1
  259. package/dist/types/divider/stories/divider.stories.d.ts +0 -33
  260. package/dist/types/dot/index.d.ts +0 -1
  261. package/dist/types/dot/src/dot.d.ts +0 -12
  262. package/dist/types/dot/src/index.d.ts +0 -1
  263. package/dist/types/dot/src/styles.d.ts +0 -1
  264. package/dist/types/dot/stories/dot.stories.d.ts +0 -15
  265. package/dist/types/footer/index.d.ts +0 -1
  266. package/dist/types/footer/src/footer.d.ts +0 -11
  267. package/dist/types/footer/src/index.d.ts +0 -1
  268. package/dist/types/footer/stories/footer.stories.d.ts +0 -95
  269. package/dist/types/forms/index.d.ts +0 -1
  270. package/dist/types/forms/src/calendar/index.d.ts +0 -12
  271. package/dist/types/forms/src/calendar/styles.d.ts +0 -1
  272. package/dist/types/forms/src/form-control/index.d.ts +0 -27
  273. package/dist/types/forms/src/form-error-message/index.d.ts +0 -9
  274. package/dist/types/forms/src/form-helper-text/index.d.ts +0 -9
  275. package/dist/types/forms/src/form-label/index.d.ts +0 -13
  276. package/dist/types/forms/src/index.d.ts +0 -8
  277. package/dist/types/forms/src/input/index.d.ts +0 -15
  278. package/dist/types/forms/src/input/input.d.ts +0 -30
  279. package/dist/types/forms/src/input/styles.d.ts +0 -1
  280. package/dist/types/forms/src/input-addon/index.d.ts +0 -13
  281. package/dist/types/forms/src/input-element/index.d.ts +0 -15
  282. package/dist/types/forms/src/input-group/index.d.ts +0 -11
  283. package/dist/types/forms/src/select/index.d.ts +0 -6
  284. package/dist/types/forms/src/select/styles.d.ts +0 -1
  285. package/dist/types/forms/src/textarea/index.d.ts +0 -13
  286. package/dist/types/forms/stories/calendar.stories.d.ts +0 -58
  287. package/dist/types/forms/stories/check.d.ts +0 -6
  288. package/dist/types/forms/stories/form-control.stories.d.ts +0 -16
  289. package/dist/types/forms/stories/input.stories.d.ts +0 -32
  290. package/dist/types/forms/stories/select.stories.d.ts +0 -118
  291. package/dist/types/forms/stories/textarea.stories.d.ts +0 -23
  292. package/dist/types/header/index.d.ts +0 -1
  293. package/dist/types/header/src/header.d.ts +0 -13
  294. package/dist/types/header/src/index.d.ts +0 -1
  295. package/dist/types/header/stories/header.stories.d.ts +0 -118
  296. package/dist/types/icon/index.d.ts +0 -1
  297. package/dist/types/icon/src/core.d.ts +0 -10
  298. package/dist/types/icon/src/icon.d.ts +0 -14
  299. package/dist/types/icon/src/index.d.ts +0 -2
  300. package/dist/types/icon/stories/icon.stories.d.ts +0 -12
  301. package/dist/types/image/index.d.ts +0 -1
  302. package/dist/types/image/src/image.d.ts +0 -28
  303. package/dist/types/image/src/index.d.ts +0 -2
  304. package/dist/types/image/src/use-image.d.ts +0 -52
  305. package/dist/types/image/stories/image.stories.d.ts +0 -12
  306. package/dist/types/link/index.d.ts +0 -1
  307. package/dist/types/link/src/index.d.ts +0 -1
  308. package/dist/types/link/src/link.d.ts +0 -12
  309. package/dist/types/link/stories/link.stories.d.ts +0 -46
  310. package/dist/types/message/index.d.ts +0 -1
  311. package/dist/types/message/src/index.d.ts +0 -1
  312. package/dist/types/message/src/message.d.ts +0 -2
  313. package/dist/types/message/stories/message.stories.d.ts +0 -11
  314. package/dist/types/notification/index.d.ts +0 -1
  315. package/dist/types/notification/src/index.d.ts +0 -1
  316. package/dist/types/notification/src/notification.d.ts +0 -5
  317. package/dist/types/notification/stories/notification.stories.d.ts +0 -11
  318. package/dist/types/pagination/index.d.ts +0 -1
  319. package/dist/types/pagination/src/index.d.ts +0 -1
  320. package/dist/types/pagination/src/pagination.d.ts +0 -11
  321. package/dist/types/pagination/src/styles.d.ts +0 -1
  322. package/dist/types/pagination/stories/pagination.stories.d.ts +0 -75
  323. package/dist/types/radio/index.d.ts +0 -1
  324. package/dist/types/radio/src/index.d.ts +0 -9
  325. package/dist/types/radio/src/radio-group.d.ts +0 -41
  326. package/dist/types/radio/src/radio.d.ts +0 -45
  327. package/dist/types/radio/src/styles.d.ts +0 -2
  328. package/dist/types/radio/stories/radio-group.stories.d.ts +0 -75
  329. package/dist/types/radio/stories/radio.stories.d.ts +0 -104
  330. package/dist/types/react/index.d.ts +0 -1
  331. package/dist/types/react/src/index.d.ts +0 -26
  332. package/dist/types/spinner/index.d.ts +0 -1
  333. package/dist/types/spinner/src/index.d.ts +0 -1
  334. package/dist/types/spinner/src/spinner.d.ts +0 -8
  335. package/dist/types/spinner/src/styles.d.ts +0 -2
  336. package/dist/types/spinner/stories/spinner.stories.d.ts +0 -13
  337. package/dist/types/switch/index.d.ts +0 -1
  338. package/dist/types/switch/src/index.d.ts +0 -1
  339. package/dist/types/switch/src/styles.d.ts +0 -2
  340. package/dist/types/switch/src/switch.d.ts +0 -42
  341. package/dist/types/switch/stories/switch.stories.d.ts +0 -76
  342. package/dist/types/table/index.d.ts +0 -1
  343. package/dist/types/table/src/index.d.ts +0 -1
  344. package/dist/types/table/src/styles.d.ts +0 -1
  345. package/dist/types/table/src/zebratable.d.ts +0 -33
  346. package/dist/types/table/stories/zebratable.stories.d.ts +0 -69
  347. package/dist/types/tag/index.d.ts +0 -1
  348. package/dist/types/tag/src/index.d.ts +0 -1
  349. package/dist/types/tag/src/styles.d.ts +0 -1
  350. package/dist/types/tag/src/tag.d.ts +0 -13
  351. package/dist/types/tag/stories/tag.stories.d.ts +0 -86
  352. package/dist/types/theme/index.d.ts +0 -1
  353. package/dist/types/theme/src/colors.d.ts +0 -272
  354. package/dist/types/theme/src/create-memo-class.d.ts +0 -1
  355. package/dist/types/theme/src/create-theme-vars/calc.d.ts +0 -19
  356. package/dist/types/theme/src/create-theme-vars/create-theme-vars.d.ts +0 -9
  357. package/dist/types/theme/src/create-theme-vars/css-var.d.ts +0 -7
  358. package/dist/types/theme/src/create-theme-vars/index.d.ts +0 -4
  359. package/dist/types/theme/src/create-theme-vars/theme-tokens.d.ts +0 -10
  360. package/dist/types/theme/src/create-theme-vars/to-css-var.d.ts +0 -2
  361. package/dist/types/theme/src/default-theme.d.ts +0 -4
  362. package/dist/types/theme/src/gui-provider.d.ts +0 -16
  363. package/dist/types/theme/src/index.d.ts +0 -6
  364. package/dist/types/theme/src/types.d.ts +0 -56
  365. package/dist/types/theme/src/use-safe-effect.d.ts +0 -2
  366. package/dist/types/theme/src/utils.d.ts +0 -1
  367. package/dist/types/toast/index.d.ts +0 -1
  368. package/dist/types/toast/src/index.d.ts +0 -1
  369. package/dist/types/toast/src/toast.d.ts +0 -62
  370. package/dist/types/toasted-notes/index.d.ts +0 -1
  371. package/dist/types/toasted-notes/src/Alert.d.ts +0 -8
  372. package/dist/types/toasted-notes/src/Message.d.ts +0 -26
  373. package/dist/types/toasted-notes/src/Positions.d.ts +0 -9
  374. package/dist/types/toasted-notes/src/Toast.d.ts +0 -13
  375. package/dist/types/toasted-notes/src/ToastManager.d.ts +0 -45
  376. package/dist/types/toasted-notes/src/index.d.ts +0 -4
  377. package/dist/types/toasted-notes/src/useTimeout.d.ts +0 -3
  378. package/dist/types/user-menu/index.d.ts +0 -1
  379. package/dist/types/user-menu/src/index.d.ts +0 -6
  380. package/dist/types/user-menu/src/styles.d.ts +0 -1
  381. package/dist/types/user-menu/src/user-menu.d.ts +0 -21
  382. package/dist/types/user-menu/stories/announcement.d.ts +0 -6
  383. package/dist/types/user-menu/stories/user-menu.stories.d.ts +0 -5
  384. package/dist/types/utils/index.d.ts +0 -1
  385. package/dist/types/utils/src/assertion.d.ts +0 -4
  386. package/dist/types/utils/src/children.d.ts +0 -8
  387. package/dist/types/utils/src/color.d.ts +0 -9
  388. package/dist/types/utils/src/index.d.ts +0 -10
  389. package/dist/types/utils/src/object.d.ts +0 -6
  390. package/dist/types/utils/src/refs.d.ts +0 -5
  391. package/dist/types/utils/src/slug.d.ts +0 -1
  392. package/dist/types/utils/src/types.d.ts +0 -13
  393. package/dist/types/utils/src/walk-object.d.ts +0 -5
  394. package/dist/types/visually-hidden/index.d.ts +0 -1
  395. package/dist/types/visually-hidden/src/index.d.ts +0 -32
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
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sk-web-gui/core",
3
- "version": "0.1.47",
3
+ "version": "0.1.48",
4
4
  "license": "MIT",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -31,5 +31,5 @@
31
31
  "postcss-import": "^14.0.2",
32
32
  "tailwindcss": "^2.2.4"
33
33
  },
34
- "gitHead": "a14791d11b9d1fa052b5135525d06707fc3d9e7d"
34
+ "gitHead": "2687a7f93a723947dd0fa6fcbc2b1f57ecf79822"
35
35
  }
package/src/colors.js CHANGED
@@ -1,145 +1,145 @@
1
- const withOpacity = require('./with-opacity');
2
-
3
- module.exports = {
4
- primary: {
5
- DEFAULT: withOpacity('--vc-colors-primary-DEFAULT'),
6
- dark: withOpacity('--vc-colors-primary-dark'),
7
- light: withOpacity('--vc-colors-primary-light'),
8
- active: withOpacity('--vc-colors-primary-active'),
9
- 50: withOpacity('--vc-colors-primary-DEFAULT'),
10
- 100: withOpacity('--vc-colors-primary-DEFAULT'),
11
- 200: withOpacity('--vc-colors-primary-DEFAULT'),
12
- 300: withOpacity('--vc-colors-primary-DEFAULT'),
13
- 400: withOpacity('--vc-colors-primary-DEFAULT'),
14
- 500: withOpacity('--vc-colors-primary-DEFAULT'),
15
- 600: withOpacity('--vc-colors-primary-DEFAULT'),
16
- 700: withOpacity('--vc-colors-primary-DEFAULT'),
17
- 800: withOpacity('--vc-colors-primary-DEFAULT'),
18
- 900: withOpacity('--vc-colors-primary-DEFAULT'),
19
- },
20
-
21
- secondary: {
22
- DEFAULT: withOpacity('--vc-colors-secondary-DEFAULT'),
23
- dark: withOpacity('--vc-colors-secondary-dark'),
24
- light: withOpacity('--vc-colors-secondary-light'),
25
- active: withOpacity('--vc-colors-secondary-active'),
26
- 50: withOpacity('--vc-colors-secondary-DEFAULT'),
27
- 100: withOpacity('--vc-colors-secondary-DEFAULT'),
28
- 200: withOpacity('--vc-colors-secondary-DEFAULT'),
29
- 300: withOpacity('--vc-colors-secondary-DEFAULT'),
30
- 400: withOpacity('--vc-colors-secondary-DEFAULT'),
31
- 500: withOpacity('--vc-colors-secondary-DEFAULT'),
32
- 600: withOpacity('--vc-colors-secondary-DEFAULT'),
33
- 700: withOpacity('--vc-colors-secondary-DEFAULT'),
34
- 800: withOpacity('--vc-colors-secondary-DEFAULT'),
35
- 900: withOpacity('--vc-colors-secondary-DEFAULT'),
36
- },
37
-
38
- success: {
39
- DEFAULT: withOpacity('--vc-colors-success-DEFAULT'),
40
- dark: withOpacity('--vc-colors-success-dark'),
41
- light: withOpacity('--vc-colors-success-light'),
42
- active: withOpacity('--vc-colors-success-active'),
43
- 50: withOpacity('--vc-colors-success-DEFAULT'),
44
- 100: withOpacity('--vc-colors-success-DEFAULT'),
45
- 200: withOpacity('--vc-colors-success-DEFAULT'),
46
- 300: withOpacity('--vc-colors-success-DEFAULT'),
47
- 400: withOpacity('--vc-colors-success-DEFAULT'),
48
- 500: withOpacity('--vc-colors-success-DEFAULT'),
49
- 600: withOpacity('--vc-colors-success-DEFAULT'),
50
- 700: withOpacity('--vc-colors-success-DEFAULT'),
51
- 800: withOpacity('--vc-colors-success-DEFAULT'),
52
- 900: withOpacity('--vc-colors-success-DEFAULT'),
53
- },
54
-
55
- info: {
56
- DEFAULT: withOpacity('--vc-colors-info-DEFAULT'),
57
- dark: withOpacity('--vc-colors-info-dark'),
58
- light: withOpacity('--vc-colors-info-light'),
59
- active: withOpacity('--vc-colors-info-active'),
60
- 50: withOpacity('--vc-colors-info-DEFAULT'),
61
- 100: withOpacity('--vc-colors-info-DEFAULT'),
62
- 200: withOpacity('--vc-colors-info-DEFAULT'),
63
- 300: withOpacity('--vc-colors-info-DEFAULT'),
64
- 400: withOpacity('--vc-colors-info-DEFAULT'),
65
- 500: withOpacity('--vc-colors-info-DEFAULT'),
66
- 600: withOpacity('--vc-colors-info-DEFAULT'),
67
- 700: withOpacity('--vc-colors-info-DEFAULT'),
68
- 800: withOpacity('--vc-colors-info-DEFAULT'),
69
- 900: withOpacity('--vc-colors-info-DEFAULT'),
70
- },
71
-
72
- warning: {
73
- DEFAULT: withOpacity('--vc-colors-warning-DEFAULT'),
74
- dark: withOpacity('--vc-colors-warning-dark'),
75
- light: withOpacity('--vc-colors-warning-light'),
76
- active: withOpacity('--vc-colors-warning-active'),
77
- 50: withOpacity('--vc-colors-warning-DEFAULT'),
78
- 100: withOpacity('--vc-colors-warning-DEFAULT'),
79
- 200: withOpacity('--vc-colors-warning-DEFAULT'),
80
- 300: withOpacity('--vc-colors-warning-DEFAULT'),
81
- 400: withOpacity('--vc-colors-warning-DEFAULT'),
82
- 500: withOpacity('--vc-colors-warning-DEFAULT'),
83
- 600: withOpacity('--vc-colors-warning-DEFAULT'),
84
- 700: withOpacity('--vc-colors-warning-DEFAULT'),
85
- 800: withOpacity('--vc-colors-warning-DEFAULT'),
86
- 900: withOpacity('--vc-colors-warning-DEFAULT'),
87
- },
88
-
89
- error: {
90
- DEFAULT: withOpacity('--vc-colors-error-DEFAULT'),
91
- dark: withOpacity('--vc-colors-error-dark'),
92
- light: withOpacity('--vc-colors-error-light'),
93
- active: withOpacity('--vc-colors-error-active'),
94
- 50: withOpacity('--vc-colors-error-DEFAULT'),
95
- 100: withOpacity('--vc-colors-error-DEFAULT'),
96
- 200: withOpacity('--vc-colors-error-DEFAULT'),
97
- 300: withOpacity('--vc-colors-error-DEFAULT'),
98
- 400: withOpacity('--vc-colors-error-DEFAULT'),
99
- 500: withOpacity('--vc-colors-error-DEFAULT'),
100
- 600: withOpacity('--vc-colors-error-DEFAULT'),
101
- 700: withOpacity('--vc-colors-error-DEFAULT'),
102
- 800: withOpacity('--vc-colors-error-DEFAULT'),
103
- 900: withOpacity('--vc-colors-error-DEFAULT'),
104
- },
105
-
106
- neutral: {
107
- DEFAULT: withOpacity('--vc-colors-neutral'),
108
- 50: withOpacity('--vc-colors-neutral-50'),
109
- 100: withOpacity('--vc-colors-neutral-100'),
110
- 200: withOpacity('--vc-colors-neutral-200'),
111
- 300: withOpacity('--vc-colors-neutral-300'),
112
- 400: withOpacity('--vc-colors-neutral-400'),
113
- 500: withOpacity('--vc-colors-neutral-500'),
114
- 600: withOpacity('--vc-colors-neutral-600'),
115
- 700: withOpacity('--vc-colors-neutral-700'),
116
- 800: withOpacity('--vc-colors-neutral-800'),
117
- 900: withOpacity('--vc-colors-neutral-900'),
118
- },
119
-
120
- whiteAlpha: {
121
- 50: 'rgba(255, 255, 255, 0.04)',
122
- 100: 'rgba(255, 255, 255, 0.06)',
123
- 200: 'rgba(255, 255, 255, 0.08)',
124
- 300: 'rgba(255, 255, 255, 0.16)',
125
- 400: 'rgba(255, 255, 255, 0.24)',
126
- 500: 'rgba(255, 255, 255, 0.36)',
127
- 600: 'rgba(255, 255, 255, 0.48)',
128
- 700: 'rgba(255, 255, 255, 0.64)',
129
- 800: 'rgba(255, 255, 255, 0.80)',
130
- 900: 'rgba(255, 255, 255, 0.92)',
131
- },
132
-
133
- blackAlpha: {
134
- 50: 'rgba(0, 0, 0, 0.04)',
135
- 100: 'rgba(0, 0, 0, 0.06)',
136
- 200: 'rgba(0, 0, 0, 0.08)',
137
- 300: 'rgba(0, 0, 0, 0.16)',
138
- 400: 'rgba(0, 0, 0, 0.24)',
139
- 500: 'rgba(0, 0, 0, 0.36)',
140
- 600: 'rgba(0, 0, 0, 0.48)',
141
- 700: 'rgba(0, 0, 0, 0.64)',
142
- 800: 'rgba(0, 0, 0, 0.80)',
143
- 900: 'rgba(0, 0, 0, 0.92)',
144
- },
145
- };
1
+ const withOpacity = require('./with-opacity');
2
+
3
+ module.exports = {
4
+ primary: {
5
+ DEFAULT: withOpacity('--vc-colors-primary-DEFAULT'),
6
+ dark: withOpacity('--vc-colors-primary-dark'),
7
+ light: withOpacity('--vc-colors-primary-light'),
8
+ active: withOpacity('--vc-colors-primary-active'),
9
+ 50: withOpacity('--vc-colors-primary-DEFAULT'),
10
+ 100: withOpacity('--vc-colors-primary-DEFAULT'),
11
+ 200: withOpacity('--vc-colors-primary-DEFAULT'),
12
+ 300: withOpacity('--vc-colors-primary-DEFAULT'),
13
+ 400: withOpacity('--vc-colors-primary-DEFAULT'),
14
+ 500: withOpacity('--vc-colors-primary-DEFAULT'),
15
+ 600: withOpacity('--vc-colors-primary-DEFAULT'),
16
+ 700: withOpacity('--vc-colors-primary-DEFAULT'),
17
+ 800: withOpacity('--vc-colors-primary-DEFAULT'),
18
+ 900: withOpacity('--vc-colors-primary-DEFAULT'),
19
+ },
20
+
21
+ secondary: {
22
+ DEFAULT: withOpacity('--vc-colors-secondary-DEFAULT'),
23
+ dark: withOpacity('--vc-colors-secondary-dark'),
24
+ light: withOpacity('--vc-colors-secondary-light'),
25
+ active: withOpacity('--vc-colors-secondary-active'),
26
+ 50: withOpacity('--vc-colors-secondary-DEFAULT'),
27
+ 100: withOpacity('--vc-colors-secondary-DEFAULT'),
28
+ 200: withOpacity('--vc-colors-secondary-DEFAULT'),
29
+ 300: withOpacity('--vc-colors-secondary-DEFAULT'),
30
+ 400: withOpacity('--vc-colors-secondary-DEFAULT'),
31
+ 500: withOpacity('--vc-colors-secondary-DEFAULT'),
32
+ 600: withOpacity('--vc-colors-secondary-DEFAULT'),
33
+ 700: withOpacity('--vc-colors-secondary-DEFAULT'),
34
+ 800: withOpacity('--vc-colors-secondary-DEFAULT'),
35
+ 900: withOpacity('--vc-colors-secondary-DEFAULT'),
36
+ },
37
+
38
+ success: {
39
+ DEFAULT: withOpacity('--vc-colors-success-DEFAULT'),
40
+ dark: withOpacity('--vc-colors-success-dark'),
41
+ light: withOpacity('--vc-colors-success-light'),
42
+ active: withOpacity('--vc-colors-success-active'),
43
+ 50: withOpacity('--vc-colors-success-DEFAULT'),
44
+ 100: withOpacity('--vc-colors-success-DEFAULT'),
45
+ 200: withOpacity('--vc-colors-success-DEFAULT'),
46
+ 300: withOpacity('--vc-colors-success-DEFAULT'),
47
+ 400: withOpacity('--vc-colors-success-DEFAULT'),
48
+ 500: withOpacity('--vc-colors-success-DEFAULT'),
49
+ 600: withOpacity('--vc-colors-success-DEFAULT'),
50
+ 700: withOpacity('--vc-colors-success-DEFAULT'),
51
+ 800: withOpacity('--vc-colors-success-DEFAULT'),
52
+ 900: withOpacity('--vc-colors-success-DEFAULT'),
53
+ },
54
+
55
+ info: {
56
+ DEFAULT: withOpacity('--vc-colors-info-DEFAULT'),
57
+ dark: withOpacity('--vc-colors-info-dark'),
58
+ light: withOpacity('--vc-colors-info-light'),
59
+ active: withOpacity('--vc-colors-info-active'),
60
+ 50: withOpacity('--vc-colors-info-DEFAULT'),
61
+ 100: withOpacity('--vc-colors-info-DEFAULT'),
62
+ 200: withOpacity('--vc-colors-info-DEFAULT'),
63
+ 300: withOpacity('--vc-colors-info-DEFAULT'),
64
+ 400: withOpacity('--vc-colors-info-DEFAULT'),
65
+ 500: withOpacity('--vc-colors-info-DEFAULT'),
66
+ 600: withOpacity('--vc-colors-info-DEFAULT'),
67
+ 700: withOpacity('--vc-colors-info-DEFAULT'),
68
+ 800: withOpacity('--vc-colors-info-DEFAULT'),
69
+ 900: withOpacity('--vc-colors-info-DEFAULT'),
70
+ },
71
+
72
+ warning: {
73
+ DEFAULT: withOpacity('--vc-colors-warning-DEFAULT'),
74
+ dark: withOpacity('--vc-colors-warning-dark'),
75
+ light: withOpacity('--vc-colors-warning-light'),
76
+ active: withOpacity('--vc-colors-warning-active'),
77
+ 50: withOpacity('--vc-colors-warning-DEFAULT'),
78
+ 100: withOpacity('--vc-colors-warning-DEFAULT'),
79
+ 200: withOpacity('--vc-colors-warning-DEFAULT'),
80
+ 300: withOpacity('--vc-colors-warning-DEFAULT'),
81
+ 400: withOpacity('--vc-colors-warning-DEFAULT'),
82
+ 500: withOpacity('--vc-colors-warning-DEFAULT'),
83
+ 600: withOpacity('--vc-colors-warning-DEFAULT'),
84
+ 700: withOpacity('--vc-colors-warning-DEFAULT'),
85
+ 800: withOpacity('--vc-colors-warning-DEFAULT'),
86
+ 900: withOpacity('--vc-colors-warning-DEFAULT'),
87
+ },
88
+
89
+ error: {
90
+ DEFAULT: withOpacity('--vc-colors-error-DEFAULT'),
91
+ dark: withOpacity('--vc-colors-error-dark'),
92
+ light: withOpacity('--vc-colors-error-light'),
93
+ active: withOpacity('--vc-colors-error-active'),
94
+ 50: withOpacity('--vc-colors-error-DEFAULT'),
95
+ 100: withOpacity('--vc-colors-error-DEFAULT'),
96
+ 200: withOpacity('--vc-colors-error-DEFAULT'),
97
+ 300: withOpacity('--vc-colors-error-DEFAULT'),
98
+ 400: withOpacity('--vc-colors-error-DEFAULT'),
99
+ 500: withOpacity('--vc-colors-error-DEFAULT'),
100
+ 600: withOpacity('--vc-colors-error-DEFAULT'),
101
+ 700: withOpacity('--vc-colors-error-DEFAULT'),
102
+ 800: withOpacity('--vc-colors-error-DEFAULT'),
103
+ 900: withOpacity('--vc-colors-error-DEFAULT'),
104
+ },
105
+
106
+ neutral: {
107
+ DEFAULT: withOpacity('--vc-colors-neutral'),
108
+ 50: withOpacity('--vc-colors-neutral-50'),
109
+ 100: withOpacity('--vc-colors-neutral-100'),
110
+ 200: withOpacity('--vc-colors-neutral-200'),
111
+ 300: withOpacity('--vc-colors-neutral-300'),
112
+ 400: withOpacity('--vc-colors-neutral-400'),
113
+ 500: withOpacity('--vc-colors-neutral-500'),
114
+ 600: withOpacity('--vc-colors-neutral-600'),
115
+ 700: withOpacity('--vc-colors-neutral-700'),
116
+ 800: withOpacity('--vc-colors-neutral-800'),
117
+ 900: withOpacity('--vc-colors-neutral-900'),
118
+ },
119
+
120
+ whiteAlpha: {
121
+ 50: 'rgba(255, 255, 255, 0.04)',
122
+ 100: 'rgba(255, 255, 255, 0.06)',
123
+ 200: 'rgba(255, 255, 255, 0.08)',
124
+ 300: 'rgba(255, 255, 255, 0.16)',
125
+ 400: 'rgba(255, 255, 255, 0.24)',
126
+ 500: 'rgba(255, 255, 255, 0.36)',
127
+ 600: 'rgba(255, 255, 255, 0.48)',
128
+ 700: 'rgba(255, 255, 255, 0.64)',
129
+ 800: 'rgba(255, 255, 255, 0.80)',
130
+ 900: 'rgba(255, 255, 255, 0.92)',
131
+ },
132
+
133
+ blackAlpha: {
134
+ 50: 'rgba(0, 0, 0, 0.04)',
135
+ 100: 'rgba(0, 0, 0, 0.06)',
136
+ 200: 'rgba(0, 0, 0, 0.08)',
137
+ 300: 'rgba(0, 0, 0, 0.16)',
138
+ 400: 'rgba(0, 0, 0, 0.24)',
139
+ 500: 'rgba(0, 0, 0, 0.36)',
140
+ 600: 'rgba(0, 0, 0, 0.48)',
141
+ 700: 'rgba(0, 0, 0, 0.64)',
142
+ 800: 'rgba(0, 0, 0, 0.80)',
143
+ 900: 'rgba(0, 0, 0, 0.92)',
144
+ },
145
+ };
@@ -1,93 +1,93 @@
1
- module.exports = Accordion = (colors) => ({
2
- '.accordion': {
3
- '&-header': {
4
- '@apply flex flex-col text-left': {},
5
-
6
- '[aria-expanded="true"] &': {
7
- '@apply bg-hover': {},
8
- },
9
-
10
- '&-icon': {
11
- '@apply ml-auto !text-2xl': {},
12
- },
13
- },
14
-
15
- '&-is-open &-header': {
16
- '@apply bg-hover': {},
17
- },
18
-
19
- '&-toggle': {
20
- '@apply flex items-center inline-block text-lg leading-lg text-left text-lg mx-md sm:mx-lg my-md': {},
21
- fontWeight: 'bold',
22
- //"@apply focus-visible:shadow shadow-lg": {},
23
- '&:focus-visible': {
24
- boxShadow: '0 0 0 0.4rem #fff!important',
25
- outline: '0',
26
- //"@apply border-4": {},
27
- },
28
- '.accordion-title': {
29
- '@apply mr-md text-base leading-base md:text-lg md:leading-lg': {},
30
- },
31
- '.accordion-subtitle': {
32
- '@apply m-0 mr-md text-sm font-normal': {},
33
- },
34
- },
35
-
36
- '&-body': {
37
- '@apply h-0 overflow-hidden m-lg': {},
38
- transitionProperty: 'visibility, height, padding, margin',
39
- transitionTimingFunction: 'cubic-bezier(0.4, 0, 0.2, 1)',
40
- transitionDuration: '180ms',
41
-
42
- '&[aria-hidden="true"], &[data-hidden="true"]': {
43
- '@apply my-0 invisible': {},
44
- },
45
-
46
- '&[aria-hidden="false"], &[data-hidden="false"]': {
47
- '@apply block h-auto visible': {},
48
- },
49
- },
50
-
51
- '&-solid': {
52
- '@apply border border-primary': {},
53
- '.accordion-header': {
54
- '@apply bg-primary text-white': {},
55
-
56
- '[aria-expanded="true"] &': {
57
- '@apply bg-hover': {},
58
- },
59
- },
60
- },
61
-
62
- '&-is-open': {
63
- '@apply border border-gray-stroke': {},
64
- '& .accordion-header': {
65
- '@apply bg-hover text-white': {},
66
- },
67
- },
68
-
69
- '&-is-open &-body': {
70
- '@apply overflow-visible animate-reset-overflow': {},
71
- },
72
-
73
- '&-outline': {
74
- '@apply border border-gray-stroke': {},
75
- '.accordion-body': {
76
- '@apply mt-0': {},
77
- },
78
- '.accordion-toggle': {
79
- '&:focus-visible': {
80
- boxShadow: '0 0 0 0.4rem #4b4b4b!important',
81
- outline: '0',
82
- },
83
- },
84
- '.accordion-header': {
85
- '@apply bg-transparent text-body': {},
86
-
87
- '[aria-expanded="true"] &': {
88
- '@apply bg-hover': {},
89
- },
90
- },
91
- },
92
- },
93
- });
1
+ module.exports = Accordion = (colors) => ({
2
+ '.accordion': {
3
+ '&-header': {
4
+ '@apply flex flex-col text-left': {},
5
+
6
+ '[aria-expanded="true"] &': {
7
+ '@apply bg-hover': {},
8
+ },
9
+
10
+ '&-icon': {
11
+ '@apply ml-auto !text-2xl': {},
12
+ },
13
+ },
14
+
15
+ '&-is-open &-header': {
16
+ '@apply bg-hover': {},
17
+ },
18
+
19
+ '&-toggle': {
20
+ '@apply flex items-center inline-block text-lg leading-lg text-left text-lg mx-md sm:mx-lg my-md': {},
21
+ fontWeight: 'bold',
22
+ //"@apply focus-visible:shadow shadow-lg": {},
23
+ '&:focus-visible': {
24
+ boxShadow: '0 0 0 0.4rem #fff!important',
25
+ outline: '0',
26
+ //"@apply border-4": {},
27
+ },
28
+ '.accordion-title': {
29
+ '@apply mr-md text-base leading-base md:text-lg md:leading-lg': {},
30
+ },
31
+ '.accordion-subtitle': {
32
+ '@apply m-0 mr-md text-sm font-normal': {},
33
+ },
34
+ },
35
+
36
+ '&-body': {
37
+ '@apply h-0 overflow-hidden m-lg': {},
38
+ transitionProperty: 'visibility, height, padding, margin',
39
+ transitionTimingFunction: 'cubic-bezier(0.4, 0, 0.2, 1)',
40
+ transitionDuration: '180ms',
41
+
42
+ '&[aria-hidden="true"], &[data-hidden="true"]': {
43
+ '@apply my-0 invisible': {},
44
+ },
45
+
46
+ '&[aria-hidden="false"], &[data-hidden="false"]': {
47
+ '@apply block h-auto visible': {},
48
+ },
49
+ },
50
+
51
+ '&-solid': {
52
+ '@apply border border-primary': {},
53
+ '.accordion-header': {
54
+ '@apply bg-primary text-white': {},
55
+
56
+ '[aria-expanded="true"] &': {
57
+ '@apply bg-hover': {},
58
+ },
59
+ },
60
+ },
61
+
62
+ '&-is-open': {
63
+ '@apply border border-gray-stroke': {},
64
+ '& .accordion-header': {
65
+ '@apply bg-hover text-white': {},
66
+ },
67
+ },
68
+
69
+ '&-is-open &-body': {
70
+ '@apply overflow-visible animate-reset-overflow': {},
71
+ },
72
+
73
+ '&-outline': {
74
+ '@apply border border-gray-stroke': {},
75
+ '.accordion-body': {
76
+ '@apply mt-0': {},
77
+ },
78
+ '.accordion-toggle': {
79
+ '&:focus-visible': {
80
+ boxShadow: '0 0 0 0.4rem #4b4b4b!important',
81
+ outline: '0',
82
+ },
83
+ },
84
+ '.accordion-header': {
85
+ '@apply bg-transparent text-body': {},
86
+
87
+ '[aria-expanded="true"] &': {
88
+ '@apply bg-hover': {},
89
+ },
90
+ },
91
+ },
92
+ },
93
+ });
@@ -1,25 +1,25 @@
1
- module.exports = Modal = () => ({
2
- '.alert-banner': {
3
- '@apply p-md': {},
4
-
5
- '&-content': {
6
- '@apply w-full m-auto flex': {},
7
-
8
- '&-wrapper': {
9
- '@apply flex-grow flex': {},
10
- },
11
- },
12
-
13
- '&-icon': {
14
- '@apply mr-[10px]': {},
15
- },
16
-
17
- '&-message': {
18
- '@apply underline inline-block max-w-[800px] text-body text-base': {},
19
- },
20
-
21
- '&-close': {
22
- '@apply p-4 -m-4 inline-flex': {},
23
- },
24
- },
25
- });
1
+ module.exports = Modal = () => ({
2
+ '.alert-banner': {
3
+ '@apply p-md': {},
4
+
5
+ '&-content': {
6
+ '@apply w-full m-auto flex': {},
7
+
8
+ '&-wrapper': {
9
+ '@apply flex-grow flex': {},
10
+ },
11
+ },
12
+
13
+ '&-icon': {
14
+ '@apply mr-[10px]': {},
15
+ },
16
+
17
+ '&-message': {
18
+ '@apply underline inline-block max-w-[800px] text-body text-base': {},
19
+ },
20
+
21
+ '&-close': {
22
+ '@apply p-4 -m-4 inline-flex': {},
23
+ },
24
+ },
25
+ });