@sk-web-gui/core 0.1.38 → 0.1.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (395) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +5 -5
  3. package/package.json +2 -2
  4. package/src/colors.js +145 -145
  5. package/src/components/accordion.js +89 -89
  6. package/src/components/alert.js +98 -98
  7. package/src/components/avatar.js +85 -85
  8. package/src/components/badge.js +60 -60
  9. package/src/components/breadcrumb.js +13 -13
  10. package/src/components/button-group.js +46 -46
  11. package/src/components/button.js +304 -304
  12. package/src/components/calendar.js +82 -82
  13. package/src/components/card.js +54 -54
  14. package/src/components/checkbox.js +127 -127
  15. package/src/components/code.js +9 -9
  16. package/src/components/cookie-consent.js +30 -30
  17. package/src/components/divider.js +12 -12
  18. package/src/components/dot.js +84 -84
  19. package/src/components/dropdown-filter.js +72 -72
  20. package/src/components/footer.js +42 -42
  21. package/src/components/forms.js +256 -256
  22. package/src/components/header.js +35 -35
  23. package/src/components/icon-button.js +5 -5
  24. package/src/components/icon.js +9 -9
  25. package/src/components/kbd.js +9 -9
  26. package/src/components/link.js +20 -20
  27. package/src/components/message.js +62 -62
  28. package/src/components/modal.js +30 -30
  29. package/src/components/notification.js +56 -56
  30. package/src/components/pagination.js +69 -69
  31. package/src/components/radio.js +104 -104
  32. package/src/components/search-bar.js +44 -44
  33. package/src/components/side-menu.js +186 -0
  34. package/src/components/switch.js +119 -119
  35. package/src/components/tab-menu.js +42 -36
  36. package/src/components/table.js +13 -13
  37. package/src/components/tag.js +97 -97
  38. package/src/components/user-menu.js +23 -23
  39. package/src/components/zebratable.js +77 -77
  40. package/src/index.js +272 -272
  41. package/src/with-opacity.js +6 -6
  42. package/dist/cjs/colors.js +0 -140
  43. package/dist/cjs/colors.js.map +0 -1
  44. package/dist/cjs/components/accordion.js +0 -86
  45. package/dist/cjs/components/accordion.js.map +0 -1
  46. package/dist/cjs/components/alert.js +0 -71
  47. package/dist/cjs/components/alert.js.map +0 -1
  48. package/dist/cjs/components/avatar.js +0 -78
  49. package/dist/cjs/components/avatar.js.map +0 -1
  50. package/dist/cjs/components/badge.js +0 -53
  51. package/dist/cjs/components/badge.js.map +0 -1
  52. package/dist/cjs/components/breadcrumb.js +0 -23
  53. package/dist/cjs/components/breadcrumb.js.map +0 -1
  54. package/dist/cjs/components/button-group.js +0 -50
  55. package/dist/cjs/components/button-group.js.map +0 -1
  56. package/dist/cjs/components/button.js +0 -154
  57. package/dist/cjs/components/button.js.map +0 -1
  58. package/dist/cjs/components/calendar.js +0 -76
  59. package/dist/cjs/components/calendar.js.map +0 -1
  60. package/dist/cjs/components/card.js +0 -59
  61. package/dist/cjs/components/card.js.map +0 -1
  62. package/dist/cjs/components/checkbox.js +0 -92
  63. package/dist/cjs/components/checkbox.js.map +0 -1
  64. package/dist/cjs/components/code.js +0 -21
  65. package/dist/cjs/components/code.js.map +0 -1
  66. package/dist/cjs/components/cookie-consent.js +0 -35
  67. package/dist/cjs/components/cookie-consent.js.map +0 -1
  68. package/dist/cjs/components/divider.js +0 -24
  69. package/dist/cjs/components/divider.js.map +0 -1
  70. package/dist/cjs/components/dot.js +0 -70
  71. package/dist/cjs/components/dot.js.map +0 -1
  72. package/dist/cjs/components/footer.js +0 -39
  73. package/dist/cjs/components/footer.js.map +0 -1
  74. package/dist/cjs/components/forms.js +0 -225
  75. package/dist/cjs/components/forms.js.map +0 -1
  76. package/dist/cjs/components/header.js +0 -34
  77. package/dist/cjs/components/header.js.map +0 -1
  78. package/dist/cjs/components/icon-button.js +0 -17
  79. package/dist/cjs/components/icon-button.js.map +0 -1
  80. package/dist/cjs/components/icon.js +0 -20
  81. package/dist/cjs/components/icon.js.map +0 -1
  82. package/dist/cjs/components/kbd.js +0 -21
  83. package/dist/cjs/components/kbd.js.map +0 -1
  84. package/dist/cjs/components/link.js +0 -29
  85. package/dist/cjs/components/link.js.map +0 -1
  86. package/dist/cjs/components/message.js +0 -63
  87. package/dist/cjs/components/message.js.map +0 -1
  88. package/dist/cjs/components/modal.js +0 -35
  89. package/dist/cjs/components/modal.js.map +0 -1
  90. package/dist/cjs/components/notification.js +0 -58
  91. package/dist/cjs/components/notification.js.map +0 -1
  92. package/dist/cjs/components/pagination.js +0 -66
  93. package/dist/cjs/components/pagination.js.map +0 -1
  94. package/dist/cjs/components/radio.js +0 -95
  95. package/dist/cjs/components/radio.js.map +0 -1
  96. package/dist/cjs/components/switch.js +0 -107
  97. package/dist/cjs/components/switch.js.map +0 -1
  98. package/dist/cjs/components/table.js +0 -23
  99. package/dist/cjs/components/table.js.map +0 -1
  100. package/dist/cjs/components/tag.js +0 -88
  101. package/dist/cjs/components/tag.js.map +0 -1
  102. package/dist/cjs/components/types.js +0 -10
  103. package/dist/cjs/components/types.js.map +0 -1
  104. package/dist/cjs/components/user-menu.js +0 -33
  105. package/dist/cjs/components/user-menu.js.map +0 -1
  106. package/dist/cjs/components/zebratable.js +0 -70
  107. package/dist/cjs/components/zebratable.js.map +0 -1
  108. package/dist/cjs/index.js +0 -282
  109. package/dist/cjs/index.js.map +0 -1
  110. package/dist/cjs/with-opacity.js +0 -15
  111. package/dist/cjs/with-opacity.js.map +0 -1
  112. package/dist/esm/colors.js +0 -137
  113. package/dist/esm/colors.js.map +0 -1
  114. package/dist/esm/components/accordion.js +0 -76
  115. package/dist/esm/components/accordion.js.map +0 -1
  116. package/dist/esm/components/alert.js +0 -67
  117. package/dist/esm/components/alert.js.map +0 -1
  118. package/dist/esm/components/avatar.js +0 -68
  119. package/dist/esm/components/avatar.js.map +0 -1
  120. package/dist/esm/components/badge.js +0 -48
  121. package/dist/esm/components/badge.js.map +0 -1
  122. package/dist/esm/components/breadcrumb.js +0 -13
  123. package/dist/esm/components/breadcrumb.js.map +0 -1
  124. package/dist/esm/components/button-group.js +0 -40
  125. package/dist/esm/components/button-group.js.map +0 -1
  126. package/dist/esm/components/button.js +0 -197
  127. package/dist/esm/components/button.js.map +0 -1
  128. package/dist/esm/components/calendar.js +0 -66
  129. package/dist/esm/components/calendar.js.map +0 -1
  130. package/dist/esm/components/card.js +0 -49
  131. package/dist/esm/components/card.js.map +0 -1
  132. package/dist/esm/components/checkbox.js +0 -110
  133. package/dist/esm/components/checkbox.js.map +0 -1
  134. package/dist/esm/components/code.js +0 -11
  135. package/dist/esm/components/code.js.map +0 -1
  136. package/dist/esm/components/cookie-consent.js +0 -25
  137. package/dist/esm/components/cookie-consent.js.map +0 -1
  138. package/dist/esm/components/divider.js +0 -14
  139. package/dist/esm/components/divider.js.map +0 -1
  140. package/dist/esm/components/dot.js +0 -61
  141. package/dist/esm/components/dot.js.map +0 -1
  142. package/dist/esm/components/footer.js +0 -29
  143. package/dist/esm/components/footer.js.map +0 -1
  144. package/dist/esm/components/forms.js +0 -217
  145. package/dist/esm/components/forms.js.map +0 -1
  146. package/dist/esm/components/header.js +0 -29
  147. package/dist/esm/components/header.js.map +0 -1
  148. package/dist/esm/components/icon-button.js +0 -7
  149. package/dist/esm/components/icon-button.js.map +0 -1
  150. package/dist/esm/components/icon.js +0 -10
  151. package/dist/esm/components/icon.js.map +0 -1
  152. package/dist/esm/components/kbd.js +0 -11
  153. package/dist/esm/components/kbd.js.map +0 -1
  154. package/dist/esm/components/link.js +0 -19
  155. package/dist/esm/components/link.js.map +0 -1
  156. package/dist/esm/components/message.js +0 -53
  157. package/dist/esm/components/message.js.map +0 -1
  158. package/dist/esm/components/modal.js +0 -25
  159. package/dist/esm/components/modal.js.map +0 -1
  160. package/dist/esm/components/notification.js +0 -48
  161. package/dist/esm/components/notification.js.map +0 -1
  162. package/dist/esm/components/pagination.js +0 -56
  163. package/dist/esm/components/pagination.js.map +0 -1
  164. package/dist/esm/components/radio.js +0 -88
  165. package/dist/esm/components/radio.js.map +0 -1
  166. package/dist/esm/components/switch.js +0 -98
  167. package/dist/esm/components/switch.js.map +0 -1
  168. package/dist/esm/components/table.js +0 -13
  169. package/dist/esm/components/table.js.map +0 -1
  170. package/dist/esm/components/tag.js +0 -84
  171. package/dist/esm/components/tag.js.map +0 -1
  172. package/dist/esm/components/types.js +0 -3
  173. package/dist/esm/components/types.js.map +0 -1
  174. package/dist/esm/components/user-menu.js +0 -23
  175. package/dist/esm/components/user-menu.js.map +0 -1
  176. package/dist/esm/components/zebratable.js +0 -60
  177. package/dist/esm/components/zebratable.js.map +0 -1
  178. package/dist/esm/index.js +0 -327
  179. package/dist/esm/index.js.map +0 -1
  180. package/dist/esm/with-opacity.js +0 -10
  181. package/dist/esm/with-opacity.js.map +0 -1
  182. package/dist/types/accordion/index.d.ts +0 -1
  183. package/dist/types/accordion/src/accordion.d.ts +0 -17
  184. package/dist/types/accordion/src/index.d.ts +0 -1
  185. package/dist/types/accordion/src/styles.d.ts +0 -1
  186. package/dist/types/accordion/stories/accordion.stories.d.ts +0 -40
  187. package/dist/types/alert/index.d.ts +0 -1
  188. package/dist/types/alert/src/alert.d.ts +0 -15
  189. package/dist/types/alert/src/index.d.ts +0 -8
  190. package/dist/types/alert/src/styles.d.ts +0 -2
  191. package/dist/types/breadcrumb/index.d.ts +0 -1
  192. package/dist/types/breadcrumb/src/breadcrumb.d.ts +0 -34
  193. package/dist/types/breadcrumb/src/index.d.ts +0 -10
  194. package/dist/types/breadcrumb/stories/breadcrumb.stories.d.ts +0 -28
  195. package/dist/types/button/index.d.ts +0 -1
  196. package/dist/types/button/src/button-group.d.ts +0 -20
  197. package/dist/types/button/src/button.d.ts +0 -21
  198. package/dist/types/button/src/icon-button.d.ts +0 -17
  199. package/dist/types/button/src/index.d.ts +0 -10
  200. package/dist/types/button/src/styles.d.ts +0 -1
  201. package/dist/types/button/stories/announcement.d.ts +0 -6
  202. package/dist/types/button/stories/button-group.stories.d.ts +0 -14
  203. package/dist/types/button/stories/button.stories.d.ts +0 -127
  204. package/dist/types/button/stories/icon-button.stories.d.ts +0 -16
  205. package/dist/types/card/index.d.ts +0 -1
  206. package/dist/types/card/src/card.d.ts +0 -38
  207. package/dist/types/card/src/index.d.ts +0 -1
  208. package/dist/types/card/src/styles.d.ts +0 -1
  209. package/dist/types/card/stories/card.stories.d.ts +0 -56
  210. package/dist/types/checkbox/index.d.ts +0 -1
  211. package/dist/types/checkbox/src/checkbox-group.d.ts +0 -36
  212. package/dist/types/checkbox/src/checkbox.d.ts +0 -46
  213. package/dist/types/checkbox/src/index.d.ts +0 -9
  214. package/dist/types/checkbox/src/styles.d.ts +0 -2
  215. package/dist/types/checkbox/stories/checkbox.stories.d.ts +0 -103
  216. package/dist/types/cookie-consent/index.d.ts +0 -1
  217. package/dist/types/cookie-consent/src/cookie-consent.d.ts +0 -37
  218. package/dist/types/cookie-consent/src/index.d.ts +0 -1
  219. package/dist/types/cookie-consent/src/styles.d.ts +0 -1
  220. package/dist/types/core/src/colors.d.ts +0 -1
  221. package/dist/types/core/src/components/accordion.d.ts +0 -3
  222. package/dist/types/core/src/components/alert.d.ts +0 -3
  223. package/dist/types/core/src/components/avatar.d.ts +0 -3
  224. package/dist/types/core/src/components/badge.d.ts +0 -3
  225. package/dist/types/core/src/components/breadcrumb.d.ts +0 -3
  226. package/dist/types/core/src/components/button-group.d.ts +0 -3
  227. package/dist/types/core/src/components/button.d.ts +0 -3
  228. package/dist/types/core/src/components/calendar.d.ts +0 -3
  229. package/dist/types/core/src/components/card.d.ts +0 -3
  230. package/dist/types/core/src/components/checkbox.d.ts +0 -3
  231. package/dist/types/core/src/components/code.d.ts +0 -3
  232. package/dist/types/core/src/components/cookie-consent.d.ts +0 -3
  233. package/dist/types/core/src/components/divider.d.ts +0 -3
  234. package/dist/types/core/src/components/dot.d.ts +0 -3
  235. package/dist/types/core/src/components/footer.d.ts +0 -3
  236. package/dist/types/core/src/components/forms.d.ts +0 -3
  237. package/dist/types/core/src/components/header.d.ts +0 -3
  238. package/dist/types/core/src/components/icon-button.d.ts +0 -3
  239. package/dist/types/core/src/components/icon.d.ts +0 -3
  240. package/dist/types/core/src/components/kbd.d.ts +0 -3
  241. package/dist/types/core/src/components/link.d.ts +0 -3
  242. package/dist/types/core/src/components/message.d.ts +0 -3
  243. package/dist/types/core/src/components/modal.d.ts +0 -3
  244. package/dist/types/core/src/components/notification.d.ts +0 -3
  245. package/dist/types/core/src/components/pagination.d.ts +0 -3
  246. package/dist/types/core/src/components/radio.d.ts +0 -3
  247. package/dist/types/core/src/components/switch.d.ts +0 -3
  248. package/dist/types/core/src/components/table.d.ts +0 -3
  249. package/dist/types/core/src/components/tag.d.ts +0 -3
  250. package/dist/types/core/src/components/types.d.ts +0 -5
  251. package/dist/types/core/src/components/user-menu.d.ts +0 -3
  252. package/dist/types/core/src/components/zebratable.d.ts +0 -3
  253. package/dist/types/core/src/index.d.ts +0 -1
  254. package/dist/types/core/src/with-opacity.d.ts +0 -3
  255. package/dist/types/divider/index.d.ts +0 -1
  256. package/dist/types/divider/src/divider.d.ts +0 -9
  257. package/dist/types/divider/src/index.d.ts +0 -1
  258. package/dist/types/divider/stories/divider.stories.d.ts +0 -33
  259. package/dist/types/dot/index.d.ts +0 -1
  260. package/dist/types/dot/src/dot.d.ts +0 -12
  261. package/dist/types/dot/src/index.d.ts +0 -1
  262. package/dist/types/dot/src/styles.d.ts +0 -1
  263. package/dist/types/dot/stories/dot.stories.d.ts +0 -15
  264. package/dist/types/footer/index.d.ts +0 -1
  265. package/dist/types/footer/src/footer.d.ts +0 -11
  266. package/dist/types/footer/src/index.d.ts +0 -1
  267. package/dist/types/footer/stories/footer.stories.d.ts +0 -95
  268. package/dist/types/forms/index.d.ts +0 -1
  269. package/dist/types/forms/src/calendar/index.d.ts +0 -12
  270. package/dist/types/forms/src/calendar/styles.d.ts +0 -1
  271. package/dist/types/forms/src/form-control/index.d.ts +0 -27
  272. package/dist/types/forms/src/form-error-message/index.d.ts +0 -9
  273. package/dist/types/forms/src/form-helper-text/index.d.ts +0 -9
  274. package/dist/types/forms/src/form-label/index.d.ts +0 -13
  275. package/dist/types/forms/src/index.d.ts +0 -8
  276. package/dist/types/forms/src/input/index.d.ts +0 -15
  277. package/dist/types/forms/src/input/input.d.ts +0 -30
  278. package/dist/types/forms/src/input/styles.d.ts +0 -1
  279. package/dist/types/forms/src/input-addon/index.d.ts +0 -13
  280. package/dist/types/forms/src/input-element/index.d.ts +0 -15
  281. package/dist/types/forms/src/input-group/index.d.ts +0 -11
  282. package/dist/types/forms/src/select/index.d.ts +0 -6
  283. package/dist/types/forms/src/select/styles.d.ts +0 -1
  284. package/dist/types/forms/src/textarea/index.d.ts +0 -13
  285. package/dist/types/forms/stories/calendar.stories.d.ts +0 -58
  286. package/dist/types/forms/stories/check.d.ts +0 -6
  287. package/dist/types/forms/stories/form-control.stories.d.ts +0 -16
  288. package/dist/types/forms/stories/input.stories.d.ts +0 -32
  289. package/dist/types/forms/stories/select.stories.d.ts +0 -118
  290. package/dist/types/forms/stories/textarea.stories.d.ts +0 -23
  291. package/dist/types/header/index.d.ts +0 -1
  292. package/dist/types/header/src/header.d.ts +0 -13
  293. package/dist/types/header/src/index.d.ts +0 -1
  294. package/dist/types/header/stories/header.stories.d.ts +0 -118
  295. package/dist/types/icon/index.d.ts +0 -1
  296. package/dist/types/icon/src/core.d.ts +0 -10
  297. package/dist/types/icon/src/icon.d.ts +0 -14
  298. package/dist/types/icon/src/index.d.ts +0 -2
  299. package/dist/types/icon/stories/icon.stories.d.ts +0 -12
  300. package/dist/types/image/index.d.ts +0 -1
  301. package/dist/types/image/src/image.d.ts +0 -28
  302. package/dist/types/image/src/index.d.ts +0 -2
  303. package/dist/types/image/src/use-image.d.ts +0 -52
  304. package/dist/types/image/stories/image.stories.d.ts +0 -12
  305. package/dist/types/link/index.d.ts +0 -1
  306. package/dist/types/link/src/index.d.ts +0 -1
  307. package/dist/types/link/src/link.d.ts +0 -12
  308. package/dist/types/link/stories/link.stories.d.ts +0 -46
  309. package/dist/types/message/index.d.ts +0 -1
  310. package/dist/types/message/src/index.d.ts +0 -1
  311. package/dist/types/message/src/message.d.ts +0 -2
  312. package/dist/types/message/stories/message.stories.d.ts +0 -11
  313. package/dist/types/notification/index.d.ts +0 -1
  314. package/dist/types/notification/src/index.d.ts +0 -1
  315. package/dist/types/notification/src/notification.d.ts +0 -5
  316. package/dist/types/notification/stories/notification.stories.d.ts +0 -11
  317. package/dist/types/pagination/index.d.ts +0 -1
  318. package/dist/types/pagination/src/index.d.ts +0 -1
  319. package/dist/types/pagination/src/pagination.d.ts +0 -11
  320. package/dist/types/pagination/src/styles.d.ts +0 -1
  321. package/dist/types/pagination/stories/pagination.stories.d.ts +0 -75
  322. package/dist/types/radio/index.d.ts +0 -1
  323. package/dist/types/radio/src/index.d.ts +0 -9
  324. package/dist/types/radio/src/radio-group.d.ts +0 -41
  325. package/dist/types/radio/src/radio.d.ts +0 -45
  326. package/dist/types/radio/src/styles.d.ts +0 -2
  327. package/dist/types/radio/stories/radio-group.stories.d.ts +0 -75
  328. package/dist/types/radio/stories/radio.stories.d.ts +0 -104
  329. package/dist/types/react/index.d.ts +0 -1
  330. package/dist/types/react/src/index.d.ts +0 -26
  331. package/dist/types/spinner/index.d.ts +0 -1
  332. package/dist/types/spinner/src/index.d.ts +0 -1
  333. package/dist/types/spinner/src/spinner.d.ts +0 -8
  334. package/dist/types/spinner/src/styles.d.ts +0 -2
  335. package/dist/types/spinner/stories/spinner.stories.d.ts +0 -13
  336. package/dist/types/switch/index.d.ts +0 -1
  337. package/dist/types/switch/src/index.d.ts +0 -1
  338. package/dist/types/switch/src/styles.d.ts +0 -2
  339. package/dist/types/switch/src/switch.d.ts +0 -42
  340. package/dist/types/switch/stories/switch.stories.d.ts +0 -76
  341. package/dist/types/table/index.d.ts +0 -1
  342. package/dist/types/table/src/index.d.ts +0 -1
  343. package/dist/types/table/src/styles.d.ts +0 -1
  344. package/dist/types/table/src/zebratable.d.ts +0 -33
  345. package/dist/types/table/stories/zebratable.stories.d.ts +0 -69
  346. package/dist/types/tag/index.d.ts +0 -1
  347. package/dist/types/tag/src/index.d.ts +0 -1
  348. package/dist/types/tag/src/styles.d.ts +0 -1
  349. package/dist/types/tag/src/tag.d.ts +0 -13
  350. package/dist/types/tag/stories/tag.stories.d.ts +0 -86
  351. package/dist/types/theme/index.d.ts +0 -1
  352. package/dist/types/theme/src/colors.d.ts +0 -272
  353. package/dist/types/theme/src/create-memo-class.d.ts +0 -1
  354. package/dist/types/theme/src/create-theme-vars/calc.d.ts +0 -19
  355. package/dist/types/theme/src/create-theme-vars/create-theme-vars.d.ts +0 -9
  356. package/dist/types/theme/src/create-theme-vars/css-var.d.ts +0 -7
  357. package/dist/types/theme/src/create-theme-vars/index.d.ts +0 -4
  358. package/dist/types/theme/src/create-theme-vars/theme-tokens.d.ts +0 -10
  359. package/dist/types/theme/src/create-theme-vars/to-css-var.d.ts +0 -2
  360. package/dist/types/theme/src/default-theme.d.ts +0 -4
  361. package/dist/types/theme/src/gui-provider.d.ts +0 -16
  362. package/dist/types/theme/src/index.d.ts +0 -6
  363. package/dist/types/theme/src/types.d.ts +0 -56
  364. package/dist/types/theme/src/use-safe-effect.d.ts +0 -2
  365. package/dist/types/theme/src/utils.d.ts +0 -1
  366. package/dist/types/toast/index.d.ts +0 -1
  367. package/dist/types/toast/src/index.d.ts +0 -1
  368. package/dist/types/toast/src/toast.d.ts +0 -62
  369. package/dist/types/toasted-notes/index.d.ts +0 -1
  370. package/dist/types/toasted-notes/src/Alert.d.ts +0 -8
  371. package/dist/types/toasted-notes/src/Message.d.ts +0 -26
  372. package/dist/types/toasted-notes/src/Positions.d.ts +0 -9
  373. package/dist/types/toasted-notes/src/Toast.d.ts +0 -13
  374. package/dist/types/toasted-notes/src/ToastManager.d.ts +0 -45
  375. package/dist/types/toasted-notes/src/index.d.ts +0 -4
  376. package/dist/types/toasted-notes/src/useTimeout.d.ts +0 -3
  377. package/dist/types/user-menu/index.d.ts +0 -1
  378. package/dist/types/user-menu/src/index.d.ts +0 -6
  379. package/dist/types/user-menu/src/styles.d.ts +0 -1
  380. package/dist/types/user-menu/src/user-menu.d.ts +0 -21
  381. package/dist/types/user-menu/stories/announcement.d.ts +0 -6
  382. package/dist/types/user-menu/stories/user-menu.stories.d.ts +0 -5
  383. package/dist/types/utils/index.d.ts +0 -1
  384. package/dist/types/utils/src/assertion.d.ts +0 -4
  385. package/dist/types/utils/src/children.d.ts +0 -8
  386. package/dist/types/utils/src/color.d.ts +0 -9
  387. package/dist/types/utils/src/index.d.ts +0 -10
  388. package/dist/types/utils/src/object.d.ts +0 -6
  389. package/dist/types/utils/src/refs.d.ts +0 -5
  390. package/dist/types/utils/src/slug.d.ts +0 -1
  391. package/dist/types/utils/src/types.d.ts +0 -13
  392. package/dist/types/utils/src/walk-object.d.ts +0 -5
  393. package/dist/types/visually-hidden/index.d.ts +0 -1
  394. package/dist/types/visually-hidden/src/index.d.ts +0 -32
  395. package/src/components/menu.js +0 -171
@@ -1,119 +1,119 @@
1
- module.exports = Switch = (colors) => ({
2
- '.form-switch-label': {
3
- '@apply inline-block align-middle': {},
4
-
5
- "&[type='hidden']": {
6
- '@apply hidden': {},
7
-
8
- '.form-switch': {
9
- '@apply hidden': {},
10
- },
11
- },
12
- },
13
- '.form-switch': {
14
- '@apply rounded-full p-0.5 cursor-base focus:outline-none': {},
15
- '@apply bg-gray-stroke dark:bg-neutral-700': {},
16
- // Hover
17
- //"@apply hover:bg-neutral-300 dark:hover:bg-neutral-600": {},
18
-
19
- border: '0.1rem solid transparent',
20
-
21
- 'input[type=checkbox]:checked + &, input[type=checkbox][aria-checked=mixed] + &': {
22
- backgroundColor: 'currentColor',
23
- '.form-switch-box-sm': {
24
- transform: 'translateX(1.42rem)',
25
- },
26
- '.form-switch-box-md': {
27
- transform: 'translateX(1.6rem)',
28
- },
29
- '.form-switch-box-lg': {
30
- transform: 'translateX(1.78rem)',
31
- },
32
- },
33
-
34
- 'input[type=checkbox]:focus-visible + &': {
35
- '@apply z-base !important': {},
36
- '@apply border-primary !important': {},
37
- '@apply ring-4 ring-black !important': {},
38
- },
39
-
40
- 'input[type=checkbox]:checked:focus-visible + &, input[type=checkbox][aria-checked=mixed]:focus-visible + &': {
41
- '@apply ring-black !important': {},
42
- },
43
- '.dark input[type=checkbox]:checked:focus-visible + &,.dark input[type=checkbox][aria-checked=mixed]:focus-visible + &':
44
- {
45
- '@apply ring-black !important': {},
46
- },
47
- 'input[type=checkbox]:checked:hover:not(:disabled) + &, input[type=checkbox][aria-checked=mixed]:hover:not(:disabled) + &':
48
- {
49
- '@apply cursor-base': {},
50
- },
51
-
52
- // colors
53
- ...colors.reduce(
54
- (styles, color) => ({
55
- ...styles,
56
- [`&[data-color="${color}"]`]: {
57
- [`@apply text-${color}`]: {},
58
-
59
- 'input[type=checkbox]:focus + &': {
60
- borderColor: `theme('colors.${color}.DEFAULT')`,
61
- boxShadow: `0 0 5px theme('colors.${color}.DEFAULT')`,
62
- borderWidth: '0.1rem',
63
- },
64
- },
65
- }),
66
- {}
67
- ),
68
-
69
- // disabled
70
- '&-disabled': {
71
- '@apply cursor-not-allowed': {},
72
-
73
- '&': {
74
- backgroundColor: '#ECECEC',
75
- },
76
- },
77
-
78
- 'input[type=checkbox]:not(:checked) + &-disabled .form-switch-box': {
79
- '@apply bg-gray-stroke': {},
80
- },
81
-
82
- // sizing
83
- '&-sm': {
84
- height: '2.16rem',
85
- width: '3.6rem',
86
- },
87
-
88
- '&-md': {
89
- height: '2.4rem',
90
- width: '4rem',
91
- },
92
-
93
- '&-lg': {
94
- height: '2.64rem',
95
- width: '4.4rem',
96
- },
97
- },
98
-
99
- // Knob
100
- '.form-switch-box': {
101
- '@apply transition-transform ease-in-out duration-150 transform bg-white rounded-full shadow translate-x-0': {},
102
-
103
- // sizing
104
- '&-sm': {
105
- height: '1.6rem',
106
- width: '1.7rem',
107
- },
108
-
109
- '&-md': {
110
- height: '2rem',
111
- width: '2rem',
112
- },
113
-
114
- '&-lg': {
115
- height: '2.2rem',
116
- width: '2.2rem',
117
- },
118
- },
119
- });
1
+ module.exports = Switch = (colors) => ({
2
+ '.form-switch-label': {
3
+ '@apply inline-block align-middle': {},
4
+
5
+ "&[type='hidden']": {
6
+ '@apply hidden': {},
7
+
8
+ '.form-switch': {
9
+ '@apply hidden': {},
10
+ },
11
+ },
12
+ },
13
+ '.form-switch': {
14
+ '@apply rounded-full p-0.5 cursor-base focus:outline-none': {},
15
+ '@apply bg-gray-stroke dark:bg-neutral-700': {},
16
+ // Hover
17
+ //"@apply hover:bg-neutral-300 dark:hover:bg-neutral-600": {},
18
+
19
+ border: '0.1rem solid transparent',
20
+
21
+ 'input[type=checkbox]:checked + &, input[type=checkbox][aria-checked=mixed] + &': {
22
+ backgroundColor: 'currentColor',
23
+ '.form-switch-box-sm': {
24
+ transform: 'translateX(1.42rem)',
25
+ },
26
+ '.form-switch-box-md': {
27
+ transform: 'translateX(1.6rem)',
28
+ },
29
+ '.form-switch-box-lg': {
30
+ transform: 'translateX(1.78rem)',
31
+ },
32
+ },
33
+
34
+ 'input[type=checkbox]:focus-visible + &': {
35
+ '@apply z-base !important': {},
36
+ '@apply border-primary !important': {},
37
+ '@apply ring-4 ring-black !important': {},
38
+ },
39
+
40
+ 'input[type=checkbox]:checked:focus-visible + &, input[type=checkbox][aria-checked=mixed]:focus-visible + &': {
41
+ '@apply ring-black !important': {},
42
+ },
43
+ '.dark input[type=checkbox]:checked:focus-visible + &,.dark input[type=checkbox][aria-checked=mixed]:focus-visible + &':
44
+ {
45
+ '@apply ring-black !important': {},
46
+ },
47
+ 'input[type=checkbox]:checked:hover:not(:disabled) + &, input[type=checkbox][aria-checked=mixed]:hover:not(:disabled) + &':
48
+ {
49
+ '@apply cursor-base': {},
50
+ },
51
+
52
+ // colors
53
+ ...colors.reduce(
54
+ (styles, color) => ({
55
+ ...styles,
56
+ [`&[data-color="${color}"]`]: {
57
+ [`@apply text-${color}`]: {},
58
+
59
+ 'input[type=checkbox]:focus + &': {
60
+ borderColor: `theme('colors.${color}.DEFAULT')`,
61
+ boxShadow: `0 0 5px theme('colors.${color}.DEFAULT')`,
62
+ borderWidth: '0.1rem',
63
+ },
64
+ },
65
+ }),
66
+ {}
67
+ ),
68
+
69
+ // disabled
70
+ '&-disabled': {
71
+ '@apply cursor-not-allowed': {},
72
+
73
+ '&': {
74
+ backgroundColor: '#ECECEC',
75
+ },
76
+ },
77
+
78
+ 'input[type=checkbox]:not(:checked) + &-disabled .form-switch-box': {
79
+ '@apply bg-gray-stroke': {},
80
+ },
81
+
82
+ // sizing
83
+ '&-sm': {
84
+ height: '2.16rem',
85
+ width: '3.6rem',
86
+ },
87
+
88
+ '&-md': {
89
+ height: '2.4rem',
90
+ width: '4rem',
91
+ },
92
+
93
+ '&-lg': {
94
+ height: '2.64rem',
95
+ width: '4.4rem',
96
+ },
97
+ },
98
+
99
+ // Knob
100
+ '.form-switch-box': {
101
+ '@apply transition-transform ease-in-out duration-150 transform bg-white rounded-full shadow translate-x-0': {},
102
+
103
+ // sizing
104
+ '&-sm': {
105
+ height: '1.6rem',
106
+ width: '1.7rem',
107
+ },
108
+
109
+ '&-md': {
110
+ height: '2rem',
111
+ width: '2rem',
112
+ },
113
+
114
+ '&-lg': {
115
+ height: '2.2rem',
116
+ width: '2.2rem',
117
+ },
118
+ },
119
+ });
@@ -1,37 +1,43 @@
1
- module.exports = TabMenu = () => ({
2
- ".TabMenu": {
3
-
4
- ".tab-wrapper": {
5
- display: "flex",
6
- flexDirection: "row"
7
- },
8
-
9
- ".TabItem": {
10
- all: 'unset',
11
- height: 65,
12
- display: "flex",
13
- padding: "0 1rem",
14
- marginRight: "5rem",
15
- alignItems: "center",
16
- position: "relative",
17
-
18
- "&.active::after": {
19
- content: '""',
20
- display: "block",
21
- position: "absolute",
22
- width: "100%",
23
- height: 6,
24
- background: "#005595",
25
- top: "100%",
26
- left: 0,
27
- }
28
- },
29
-
30
- ".underline": {
31
- width: "100%",
32
- height: 6,
33
- background: "#F4F4F4"
34
- }
35
- },
36
- });
1
+ module.exports = TabMenu = () => ({
2
+ ".TabMenu": {
3
+
4
+ ".tab-wrapper": {
5
+ display: "flex",
6
+ flexDirection: "row",
7
+
8
+ "li" : {
9
+ all: "unset",
10
+ display: "flex"
11
+ }
12
+ },
13
+
14
+ ".TabItem": {
15
+ all: 'unset',
16
+ height: 65,
17
+ display: "flex",
18
+ padding: "0 1rem",
19
+ marginRight: "5rem",
20
+ alignItems: "center",
21
+ position: "relative",
22
+ cursor: "pointer",
23
+
24
+ "&.active::after": {
25
+ content: '""',
26
+ display: "block",
27
+ position: "absolute",
28
+ width: "100%",
29
+ height: 6,
30
+ background: "#005595",
31
+ top: "100%",
32
+ left: 0,
33
+ }
34
+ },
35
+
36
+ ".underline": {
37
+ width: "100%",
38
+ height: 6,
39
+ background: "#F4F4F4"
40
+ }
41
+ },
42
+ });
37
43
 
@@ -1,13 +1,13 @@
1
- module.exports = Table = () => ({
2
- '.table': {
3
- '@apply min-w-full border-collapse border-gray-stroke divide-gray-lighter table-auto': {},
4
-
5
- '&-item': {
6
- '@apply px-6 py-4 border border-gray-stroke whitespace-nowrap': {},
7
-
8
- '&:nth-child(odd)': {
9
- '@apply bg-gray-lighter': {},
10
- },
11
- },
12
- },
13
- });
1
+ module.exports = Table = () => ({
2
+ '.table': {
3
+ '@apply min-w-full border-collapse border-gray-stroke divide-gray-lighter table-auto': {},
4
+
5
+ '&-item': {
6
+ '@apply px-6 py-4 border border-gray-stroke whitespace-nowrap': {},
7
+
8
+ '&:nth-child(odd)': {
9
+ '@apply bg-gray-lighter': {},
10
+ },
11
+ },
12
+ },
13
+ });
@@ -1,97 +1,97 @@
1
- function tagOutline(colors) {
2
- return {
3
- '.tag-outline': {
4
- '@apply border bg-transparent border-gray-stroke text-body': {},
5
-
6
- '&[href]': {
7
- [`@apply hover:border-hover hover:text-white hover:bg-hover`]: {},
8
- [`@apply active:text-white active:bg-hover`]: {},
9
- [`@apply focus-visible:text-white focus-visible:ring-4 focus-visible:ring-black focus-visible:bg-hover`]: {},
10
- },
11
- },
12
- };
13
- }
14
-
15
- function tagSolid(colors) {
16
- return {
17
- '.tag-solid': {
18
- '@apply border bg-gray-stroke border-transparent text-white': {},
19
-
20
- '&[href]': {
21
- [`@apply hover:text-white hover:bg-hover`]: {},
22
- [`@apply active:text-white active:bg-hover`]: {},
23
- [`@apply focus-visible:text-white focus-visible:ring-4 focus-visible:ring-black focus-visible:bg-hover`]: {},
24
- },
25
-
26
- '.tag-close-button': {
27
- '@apply text-white hover:text-body': {},
28
- },
29
- },
30
- };
31
- }
32
-
33
- function tagLight(colors) {
34
- return {
35
- '.tag-light': {
36
- '@apply border border-transparent text-body': {},
37
-
38
- '&[href]': {
39
- [`@apply hover:border-hover`]: {},
40
- [`@apply active:border-hover`]: {},
41
- [`@apply focus-visible:border-hover focus-visible:ring-4 focus-visible:ring-black`]: {},
42
- },
43
- },
44
- };
45
- }
46
-
47
- module.exports = Tag = (colors) => ({
48
- '.tag': {
49
- '@apply leading-none inline-flex items-center content-center max-h-full rounded-full font-normal outline-none whitespace-nowrap':
50
- {},
51
- width: 'fit-content',
52
- height: 'fit-content',
53
- padding: '0 1.145em 0 1.145em',
54
- borderRadius: '3.2rem',
55
-
56
- '&-text': {
57
- padding: '0.5em 0',
58
- },
59
-
60
- '&-sm': {
61
- '@apply text-xs': {},
62
- minWidth: '1.25rem',
63
- },
64
-
65
- '&-md': {
66
- '@apply text-sm': {},
67
- minWidth: '1.5rem',
68
- },
69
-
70
- '&-lg': {
71
- '@apply text-base': {},
72
- minWidth: '1.75rem',
73
- },
74
- },
75
-
76
- // variants
77
- ...tagOutline(colors),
78
- ...tagSolid(colors),
79
- ...tagLight(colors),
80
-
81
- '.tag-close-button': {
82
- '@apply text-body border-transparent flex items-center justify-center transition-all duration-150 rounded-full outline-none cursor-base':
83
- {},
84
- fontSize: '1em',
85
- padding: '0.36em',
86
- marginLeft: '0.25em',
87
- marginRight: '-0.55em',
88
-
89
- '&-icon': {
90
- fontSize: '1em !important',
91
- },
92
-
93
- '&-disabled': {
94
- '@apply disabled:opacity-40 disabled:cursor-not-allowed disabled:shadow-none': {},
95
- },
96
- },
97
- });
1
+ function tagOutline(colors) {
2
+ return {
3
+ '.tag-outline': {
4
+ '@apply border bg-transparent border-gray-stroke text-body': {},
5
+
6
+ '&[href]': {
7
+ [`@apply hover:border-hover hover:text-white hover:bg-hover`]: {},
8
+ [`@apply active:text-white active:bg-hover`]: {},
9
+ [`@apply focus-visible:text-white focus-visible:ring-4 focus-visible:ring-black focus-visible:bg-hover`]: {},
10
+ },
11
+ },
12
+ };
13
+ }
14
+
15
+ function tagSolid(colors) {
16
+ return {
17
+ '.tag-solid': {
18
+ '@apply border bg-gray-stroke border-transparent text-white': {},
19
+
20
+ '&[href]': {
21
+ [`@apply hover:text-white hover:bg-hover`]: {},
22
+ [`@apply active:text-white active:bg-hover`]: {},
23
+ [`@apply focus-visible:text-white focus-visible:ring-4 focus-visible:ring-black focus-visible:bg-hover`]: {},
24
+ },
25
+
26
+ '.tag-close-button': {
27
+ '@apply text-white hover:text-body': {},
28
+ },
29
+ },
30
+ };
31
+ }
32
+
33
+ function tagLight(colors) {
34
+ return {
35
+ '.tag-light': {
36
+ '@apply border border-transparent text-body': {},
37
+
38
+ '&[href]': {
39
+ [`@apply hover:border-hover`]: {},
40
+ [`@apply active:border-hover`]: {},
41
+ [`@apply focus-visible:border-hover focus-visible:ring-4 focus-visible:ring-black`]: {},
42
+ },
43
+ },
44
+ };
45
+ }
46
+
47
+ module.exports = Tag = (colors) => ({
48
+ '.tag': {
49
+ '@apply leading-none inline-flex items-center content-center max-h-full rounded-full font-normal outline-none whitespace-nowrap':
50
+ {},
51
+ width: 'fit-content',
52
+ height: 'fit-content',
53
+ padding: '0 1.145em 0 1.145em',
54
+ borderRadius: '3.2rem',
55
+
56
+ '&-text': {
57
+ padding: '0.5em 0',
58
+ },
59
+
60
+ '&-sm': {
61
+ '@apply text-xs': {},
62
+ minWidth: '1.25rem',
63
+ },
64
+
65
+ '&-md': {
66
+ '@apply text-sm': {},
67
+ minWidth: '1.5rem',
68
+ },
69
+
70
+ '&-lg': {
71
+ '@apply text-base': {},
72
+ minWidth: '1.75rem',
73
+ },
74
+ },
75
+
76
+ // variants
77
+ ...tagOutline(colors),
78
+ ...tagSolid(colors),
79
+ ...tagLight(colors),
80
+
81
+ '.tag-close-button': {
82
+ '@apply text-body border-transparent flex items-center justify-center transition-all duration-150 rounded-full outline-none cursor-base':
83
+ {},
84
+ fontSize: '1em',
85
+ padding: '0.36em',
86
+ marginLeft: '0.25em',
87
+ marginRight: '-0.55em',
88
+
89
+ '&-icon': {
90
+ fontSize: '1em !important',
91
+ },
92
+
93
+ '&-disabled': {
94
+ '@apply disabled:opacity-40 disabled:cursor-not-allowed disabled:shadow-none': {},
95
+ },
96
+ },
97
+ });
@@ -1,23 +1,23 @@
1
- module.exports = UserMenu = (colors) => ({
2
- '.usermenu': {
3
- // "@apply mx-sm mt-sm mb-0 px-md py-0 divide-y divide-y-2 divide-gray-300 bg-white border-2 border-white border-solid rounded":
4
- '@apply text-body': {},
5
- // "@apply ": {},
6
- '&-is-open': {
7
- // "@apply border-2 border-gray-300 border-solid rounded": {},
8
- // "box-shadow": "0px 4px 12px rgba(27, 29, 31, 0.12)",
9
- },
10
-
11
- '&-header': {
12
- '[aria-expanded="true"] &': {
13
- '@apply bg-hover': {},
14
- },
15
- },
16
- '&-item': {
17
- '@apply block px-lg py-md lg:px-md lg:py-sm w-full cursor-pointer text-body no-underline': {},
18
- '&.active': {
19
- '@apply bg-hover text-white no-underline': {},
20
- },
21
- },
22
- },
23
- });
1
+ module.exports = UserMenu = (colors) => ({
2
+ '.usermenu': {
3
+ // "@apply mx-sm mt-sm mb-0 px-md py-0 divide-y divide-y-2 divide-gray-300 bg-white border-2 border-white border-solid rounded":
4
+ '@apply text-body': {},
5
+ // "@apply ": {},
6
+ '&-is-open': {
7
+ // "@apply border-2 border-gray-300 border-solid rounded": {},
8
+ // "box-shadow": "0px 4px 12px rgba(27, 29, 31, 0.12)",
9
+ },
10
+
11
+ '&-header': {
12
+ '[aria-expanded="true"] &': {
13
+ '@apply bg-hover': {},
14
+ },
15
+ },
16
+ '&-item': {
17
+ '@apply block px-lg py-md lg:px-md lg:py-sm w-full cursor-pointer text-body no-underline': {},
18
+ '&.active': {
19
+ '@apply bg-hover text-white no-underline': {},
20
+ },
21
+ },
22
+ },
23
+ });