@sk-web-gui/core 1.0.2 → 1.1.0

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 (360) hide show
  1. package/dist/cjs/base.js +6 -1
  2. package/dist/cjs/base.js.map +1 -1
  3. package/dist/cjs/colors.js +5 -1
  4. package/dist/cjs/colors.js.map +1 -1
  5. package/dist/cjs/components/accordion.js +97 -20
  6. package/dist/cjs/components/accordion.js.map +1 -1
  7. package/dist/cjs/components/alert.js +5 -1
  8. package/dist/cjs/components/alert.js.map +1 -1
  9. package/dist/cjs/components/avatar.js +5 -1
  10. package/dist/cjs/components/avatar.js.map +1 -1
  11. package/dist/cjs/components/badge.js +5 -1
  12. package/dist/cjs/components/badge.js.map +1 -1
  13. package/dist/cjs/components/breadcrumb.js +5 -1
  14. package/dist/cjs/components/breadcrumb.js.map +1 -1
  15. package/dist/cjs/components/button-group.js +5 -1
  16. package/dist/cjs/components/button-group.js.map +1 -1
  17. package/dist/cjs/components/button.js +5 -1
  18. package/dist/cjs/components/button.js.map +1 -1
  19. package/dist/cjs/components/card.js +5 -1
  20. package/dist/cjs/components/card.js.map +1 -1
  21. package/dist/cjs/components/checkbox.js +5 -1
  22. package/dist/cjs/components/checkbox.js.map +1 -1
  23. package/dist/cjs/components/chip.js +41 -0
  24. package/dist/cjs/components/chip.js.map +1 -0
  25. package/dist/cjs/components/code.js +5 -1
  26. package/dist/cjs/components/code.js.map +1 -1
  27. package/dist/cjs/components/combobox.js +10 -1
  28. package/dist/cjs/components/combobox.js.map +1 -1
  29. package/dist/cjs/components/cookie-consent.js +5 -1
  30. package/dist/cjs/components/cookie-consent.js.map +1 -1
  31. package/dist/cjs/components/dialog.js +5 -1
  32. package/dist/cjs/components/dialog.js.map +1 -1
  33. package/dist/cjs/components/divider.js +5 -1
  34. package/dist/cjs/components/divider.js.map +1 -1
  35. package/dist/cjs/components/dot.js +5 -1
  36. package/dist/cjs/components/dot.js.map +1 -1
  37. package/dist/cjs/components/filter.js +5 -1
  38. package/dist/cjs/components/filter.js.map +1 -1
  39. package/dist/cjs/components/footer.js +5 -1
  40. package/dist/cjs/components/footer.js.map +1 -1
  41. package/dist/cjs/components/forms.js +5 -1
  42. package/dist/cjs/components/forms.js.map +1 -1
  43. package/dist/cjs/components/header.js +10 -2
  44. package/dist/cjs/components/header.js.map +1 -1
  45. package/dist/cjs/components/icon.js +5 -1
  46. package/dist/cjs/components/icon.js.map +1 -1
  47. package/dist/cjs/components/input.js +17 -10
  48. package/dist/cjs/components/input.js.map +1 -1
  49. package/dist/cjs/components/kbd.js +5 -1
  50. package/dist/cjs/components/kbd.js.map +1 -1
  51. package/dist/cjs/components/label.js +5 -1
  52. package/dist/cjs/components/label.js.map +1 -1
  53. package/dist/cjs/components/link.js +5 -1
  54. package/dist/cjs/components/link.js.map +1 -1
  55. package/dist/cjs/components/list.js +5 -1
  56. package/dist/cjs/components/list.js.map +1 -1
  57. package/dist/cjs/components/logo.js +5 -1
  58. package/dist/cjs/components/logo.js.map +1 -1
  59. package/dist/cjs/components/menu-vertical.js +7 -6
  60. package/dist/cjs/components/menu-vertical.js.map +1 -1
  61. package/dist/cjs/components/menubar.js +7 -3
  62. package/dist/cjs/components/menubar.js.map +1 -1
  63. package/dist/cjs/components/modal.js +5 -1
  64. package/dist/cjs/components/modal.js.map +1 -1
  65. package/dist/cjs/components/pagination.js +5 -1
  66. package/dist/cjs/components/pagination.js.map +1 -1
  67. package/dist/cjs/components/popup-menu.js +5 -1
  68. package/dist/cjs/components/popup-menu.js.map +1 -1
  69. package/dist/cjs/components/progress-bar.js +5 -1
  70. package/dist/cjs/components/progress-bar.js.map +1 -1
  71. package/dist/cjs/components/progress-stepper.js +5 -1
  72. package/dist/cjs/components/progress-stepper.js.map +1 -1
  73. package/dist/cjs/components/radio.js +5 -1
  74. package/dist/cjs/components/radio.js.map +1 -1
  75. package/dist/cjs/components/search-field.js +5 -1
  76. package/dist/cjs/components/search-field.js.map +1 -1
  77. package/dist/cjs/components/select.js +5 -1
  78. package/dist/cjs/components/select.js.map +1 -1
  79. package/dist/cjs/components/snackbar.js +5 -1
  80. package/dist/cjs/components/snackbar.js.map +1 -1
  81. package/dist/cjs/components/spinner.js +5 -1
  82. package/dist/cjs/components/spinner.js.map +1 -1
  83. package/dist/cjs/components/switch.js +5 -1
  84. package/dist/cjs/components/switch.js.map +1 -1
  85. package/dist/cjs/components/table.js +5 -1
  86. package/dist/cjs/components/table.js.map +1 -1
  87. package/dist/cjs/components/tabs.js +12 -57
  88. package/dist/cjs/components/tabs.js.map +1 -1
  89. package/dist/cjs/components/tooltip.js +5 -1
  90. package/dist/cjs/components/tooltip.js.map +1 -1
  91. package/dist/cjs/components/user-menu.js +5 -1
  92. package/dist/cjs/components/user-menu.js.map +1 -1
  93. package/dist/cjs/components/zebratable.js +18 -5
  94. package/dist/cjs/components/zebratable.js.map +1 -1
  95. package/dist/cjs/index.js +10 -7
  96. package/dist/cjs/index.js.map +1 -1
  97. package/dist/cjs/plugin.js +56 -56
  98. package/dist/cjs/plugin.js.map +1 -1
  99. package/dist/cjs/preset.js +10 -2
  100. package/dist/cjs/preset.js.map +1 -1
  101. package/dist/cjs/theme.js +70 -66
  102. package/dist/cjs/theme.js.map +1 -1
  103. package/dist/cjs/units.js +44 -39
  104. package/dist/cjs/units.js.map +1 -1
  105. package/dist/cjs/with-opacity.js +6 -1
  106. package/dist/cjs/with-opacity.js.map +1 -1
  107. package/dist/esm/base.js +3 -1
  108. package/dist/esm/base.js.map +1 -1
  109. package/dist/esm/colors.js +2 -1
  110. package/dist/esm/colors.js.map +1 -1
  111. package/dist/esm/components/accordion.js +93 -20
  112. package/dist/esm/components/accordion.js.map +1 -1
  113. package/dist/esm/components/alert.js +1 -1
  114. package/dist/esm/components/alert.js.map +1 -1
  115. package/dist/esm/components/avatar.js +1 -1
  116. package/dist/esm/components/avatar.js.map +1 -1
  117. package/dist/esm/components/badge.js +1 -1
  118. package/dist/esm/components/badge.js.map +1 -1
  119. package/dist/esm/components/breadcrumb.js +1 -1
  120. package/dist/esm/components/breadcrumb.js.map +1 -1
  121. package/dist/esm/components/button-group.js +1 -1
  122. package/dist/esm/components/button-group.js.map +1 -1
  123. package/dist/esm/components/button.js +1 -1
  124. package/dist/esm/components/button.js.map +1 -1
  125. package/dist/esm/components/card.js +1 -1
  126. package/dist/esm/components/card.js.map +1 -1
  127. package/dist/esm/components/checkbox.js +1 -1
  128. package/dist/esm/components/checkbox.js.map +1 -1
  129. package/dist/esm/components/chip.js +35 -0
  130. package/dist/esm/components/chip.js.map +1 -0
  131. package/dist/esm/components/code.js +1 -1
  132. package/dist/esm/components/code.js.map +1 -1
  133. package/dist/esm/components/combobox.js +6 -1
  134. package/dist/esm/components/combobox.js.map +1 -1
  135. package/dist/esm/components/cookie-consent.js +1 -1
  136. package/dist/esm/components/cookie-consent.js.map +1 -1
  137. package/dist/esm/components/dialog.js +1 -1
  138. package/dist/esm/components/dialog.js.map +1 -1
  139. package/dist/esm/components/divider.js +1 -1
  140. package/dist/esm/components/divider.js.map +1 -1
  141. package/dist/esm/components/dot.js +1 -1
  142. package/dist/esm/components/dot.js.map +1 -1
  143. package/dist/esm/components/filter.js +1 -1
  144. package/dist/esm/components/filter.js.map +1 -1
  145. package/dist/esm/components/footer.js +1 -1
  146. package/dist/esm/components/footer.js.map +1 -1
  147. package/dist/esm/components/forms.js +1 -1
  148. package/dist/esm/components/forms.js.map +1 -1
  149. package/dist/esm/components/header.js +6 -2
  150. package/dist/esm/components/header.js.map +1 -1
  151. package/dist/esm/components/icon.js +1 -1
  152. package/dist/esm/components/icon.js.map +1 -1
  153. package/dist/esm/components/input.js +13 -10
  154. package/dist/esm/components/input.js.map +1 -1
  155. package/dist/esm/components/kbd.js +1 -1
  156. package/dist/esm/components/kbd.js.map +1 -1
  157. package/dist/esm/components/label.js +1 -1
  158. package/dist/esm/components/label.js.map +1 -1
  159. package/dist/esm/components/link.js +1 -1
  160. package/dist/esm/components/link.js.map +1 -1
  161. package/dist/esm/components/list.js +1 -1
  162. package/dist/esm/components/list.js.map +1 -1
  163. package/dist/esm/components/logo.js +1 -1
  164. package/dist/esm/components/logo.js.map +1 -1
  165. package/dist/esm/components/menu-vertical.js +3 -6
  166. package/dist/esm/components/menu-vertical.js.map +1 -1
  167. package/dist/esm/components/menubar.js +3 -3
  168. package/dist/esm/components/menubar.js.map +1 -1
  169. package/dist/esm/components/modal.js +1 -1
  170. package/dist/esm/components/modal.js.map +1 -1
  171. package/dist/esm/components/pagination.js +1 -1
  172. package/dist/esm/components/pagination.js.map +1 -1
  173. package/dist/esm/components/popup-menu.js +1 -1
  174. package/dist/esm/components/popup-menu.js.map +1 -1
  175. package/dist/esm/components/progress-bar.js +1 -1
  176. package/dist/esm/components/progress-bar.js.map +1 -1
  177. package/dist/esm/components/progress-stepper.js +1 -1
  178. package/dist/esm/components/progress-stepper.js.map +1 -1
  179. package/dist/esm/components/radio.js +1 -1
  180. package/dist/esm/components/radio.js.map +1 -1
  181. package/dist/esm/components/search-field.js +1 -1
  182. package/dist/esm/components/search-field.js.map +1 -1
  183. package/dist/esm/components/select.js +1 -1
  184. package/dist/esm/components/select.js.map +1 -1
  185. package/dist/esm/components/snackbar.js +1 -1
  186. package/dist/esm/components/snackbar.js.map +1 -1
  187. package/dist/esm/components/spinner.js +1 -1
  188. package/dist/esm/components/spinner.js.map +1 -1
  189. package/dist/esm/components/switch.js +1 -1
  190. package/dist/esm/components/switch.js.map +1 -1
  191. package/dist/esm/components/table.js +1 -1
  192. package/dist/esm/components/table.js.map +1 -1
  193. package/dist/esm/components/tabs.js +8 -57
  194. package/dist/esm/components/tabs.js.map +1 -1
  195. package/dist/esm/components/tooltip.js +1 -1
  196. package/dist/esm/components/tooltip.js.map +1 -1
  197. package/dist/esm/components/user-menu.js +1 -1
  198. package/dist/esm/components/user-menu.js.map +1 -1
  199. package/dist/esm/components/zebratable.js +14 -5
  200. package/dist/esm/components/zebratable.js.map +1 -1
  201. package/dist/esm/index.js +4 -7
  202. package/dist/esm/index.js.map +1 -1
  203. package/dist/esm/plugin.js +50 -54
  204. package/dist/esm/plugin.js.map +1 -1
  205. package/dist/esm/preset.js +5 -2
  206. package/dist/esm/preset.js.map +1 -1
  207. package/dist/esm/theme.js +25 -26
  208. package/dist/esm/theme.js.map +1 -1
  209. package/dist/esm/units.js +41 -39
  210. package/dist/esm/units.js.map +1 -1
  211. package/dist/esm/with-opacity.js +2 -1
  212. package/dist/esm/with-opacity.js.map +1 -1
  213. package/dist/types/base.d.ts +53 -0
  214. package/dist/types/colors.d.ts +643 -0
  215. package/dist/types/components/accordion.d.ts +169 -0
  216. package/dist/types/components/alert-banner.d.ts +24 -0
  217. package/dist/types/components/alert.d.ts +21 -0
  218. package/dist/types/components/avatar.d.ts +26 -0
  219. package/dist/types/components/badge.d.ts +21 -0
  220. package/dist/types/components/breadcrumb.d.ts +28 -0
  221. package/dist/types/components/button-group.d.ts +25 -0
  222. package/dist/types/components/button.d.ts +198 -0
  223. package/dist/types/components/card.d.ts +135 -0
  224. package/dist/types/components/checkbox.d.ts +105 -0
  225. package/dist/types/components/chip.d.ts +34 -0
  226. package/dist/types/components/code.d.ts +8 -0
  227. package/dist/types/components/combobox.d.ts +69 -0
  228. package/dist/types/components/comments.d.ts +30 -0
  229. package/dist/types/components/context-menu.d.ts +39 -0
  230. package/dist/types/components/cookie-consent.d.ts +35 -0
  231. package/dist/types/components/dialog.d.ts +5 -0
  232. package/dist/types/components/divider.d.ts +50 -0
  233. package/dist/types/components/dot.d.ts +43 -0
  234. package/dist/types/components/dropdown-filter.d.ts +58 -0
  235. package/dist/types/components/filter.d.ts +14 -0
  236. package/dist/types/components/footer.d.ts +27 -0
  237. package/dist/types/components/forms.d.ts +24 -0
  238. package/dist/types/components/header.d.ts +28 -0
  239. package/dist/types/components/icon.d.ts +38 -0
  240. package/dist/types/components/input.d.ts +209 -0
  241. package/dist/types/components/kbd.d.ts +7 -0
  242. package/dist/types/components/label.d.ts +19 -0
  243. package/dist/types/components/link.d.ts +43 -0
  244. package/dist/types/components/list.d.ts +52 -0
  245. package/dist/types/components/logo.d.ts +48 -0
  246. package/dist/types/components/menu-vertical.d.ts +215 -0
  247. package/dist/types/components/menubar.d.ts +35 -0
  248. package/dist/types/components/modal.d.ts +41 -0
  249. package/dist/types/components/notification.d.ts +48 -0
  250. package/dist/types/components/pagination.d.ts +100 -0
  251. package/dist/types/components/popup-menu.d.ts +105 -0
  252. package/dist/types/components/progress-bar.d.ts +13 -0
  253. package/dist/types/components/progress-stepper.d.ts +50 -0
  254. package/dist/types/components/radio.d.ts +125 -0
  255. package/dist/types/components/search-field.d.ts +20 -0
  256. package/dist/types/components/select.d.ts +141 -0
  257. package/dist/types/components/side-menu.d.ts +219 -0
  258. package/dist/types/components/snackbar.d.ts +30 -0
  259. package/dist/types/components/spinner.d.ts +10 -0
  260. package/dist/types/components/switch.d.ts +64 -0
  261. package/dist/types/components/tab-menu.d.ts +57 -0
  262. package/dist/types/components/table.d.ts +11 -0
  263. package/dist/types/components/tabs.d.ts +14 -0
  264. package/dist/types/components/tooltip.d.ts +53 -0
  265. package/dist/types/components/user-menu.d.ts +13 -0
  266. package/dist/types/components/zebratable.d.ts +134 -0
  267. package/dist/types/index.d.ts +4 -0
  268. package/dist/types/plugin.d.ts +12 -0
  269. package/dist/types/preset.d.ts +15 -0
  270. package/dist/types/theme.d.ts +4 -0
  271. package/dist/types/units.d.ts +251 -0
  272. package/dist/types/with-opacity.d.ts +4 -0
  273. package/package.json +20 -13
  274. package/dist/cjs/components/calendar.js +0 -67
  275. package/dist/cjs/components/calendar.js.map +0 -1
  276. package/dist/cjs/components/form-control.js +0 -8
  277. package/dist/cjs/components/form-control.js.map +0 -1
  278. package/dist/cjs/components/message.js +0 -52
  279. package/dist/cjs/components/message.js.map +0 -1
  280. package/dist/cjs/components/profile-picture.js +0 -15
  281. package/dist/cjs/components/profile-picture.js.map +0 -1
  282. package/dist/cjs/components/profile.js +0 -34
  283. package/dist/cjs/components/profile.js.map +0 -1
  284. package/dist/cjs/components/search-bar.js +0 -8
  285. package/dist/cjs/components/search-bar.js.map +0 -1
  286. package/dist/cjs/components/tag.js +0 -72
  287. package/dist/cjs/components/tag.js.map +0 -1
  288. package/dist/esm/components/calendar.js +0 -65
  289. package/dist/esm/components/calendar.js.map +0 -1
  290. package/dist/esm/components/form-control.js +0 -6
  291. package/dist/esm/components/form-control.js.map +0 -1
  292. package/dist/esm/components/message.js +0 -50
  293. package/dist/esm/components/message.js.map +0 -1
  294. package/dist/esm/components/profile-picture.js +0 -13
  295. package/dist/esm/components/profile-picture.js.map +0 -1
  296. package/dist/esm/components/profile.js +0 -32
  297. package/dist/esm/components/profile.js.map +0 -1
  298. package/dist/esm/components/search-bar.js +0 -6
  299. package/dist/esm/components/search-bar.js.map +0 -1
  300. package/dist/esm/components/tag.js +0 -79
  301. package/dist/esm/components/tag.js.map +0 -1
  302. package/src/base.js +0 -47
  303. package/src/colors.js +0 -645
  304. package/src/components/accordion.js +0 -103
  305. package/src/components/alert-banner.js +0 -29
  306. package/src/components/alert.js +0 -90
  307. package/src/components/avatar.js +0 -39
  308. package/src/components/badge.js +0 -41
  309. package/src/components/breadcrumb.js +0 -33
  310. package/src/components/button-group.js +0 -31
  311. package/src/components/button.js +0 -309
  312. package/src/components/card.js +0 -293
  313. package/src/components/checkbox.js +0 -136
  314. package/src/components/code.js +0 -9
  315. package/src/components/combobox.js +0 -66
  316. package/src/components/comments.js +0 -38
  317. package/src/components/context-menu.js +0 -49
  318. package/src/components/cookie-consent.js +0 -45
  319. package/src/components/dialog.js +0 -5
  320. package/src/components/divider.js +0 -52
  321. package/src/components/dot.js +0 -83
  322. package/src/components/dropdown-filter.js +0 -66
  323. package/src/components/filter.js +0 -16
  324. package/src/components/footer.js +0 -29
  325. package/src/components/forms.js +0 -27
  326. package/src/components/header.js +0 -28
  327. package/src/components/icon.js +0 -78
  328. package/src/components/input.js +0 -244
  329. package/src/components/kbd.js +0 -9
  330. package/src/components/label.js +0 -37
  331. package/src/components/link.js +0 -53
  332. package/src/components/list.js +0 -61
  333. package/src/components/logo.js +0 -49
  334. package/src/components/menu-vertical.js +0 -293
  335. package/src/components/menubar.js +0 -56
  336. package/src/components/modal.js +0 -47
  337. package/src/components/notification.js +0 -56
  338. package/src/components/pagination.js +0 -116
  339. package/src/components/popup-menu.js +0 -111
  340. package/src/components/progress-bar.js +0 -31
  341. package/src/components/progress-stepper.js +0 -50
  342. package/src/components/radio.js +0 -138
  343. package/src/components/search-field.js +0 -20
  344. package/src/components/select.js +0 -203
  345. package/src/components/side-menu.js +0 -272
  346. package/src/components/snackbar.js +0 -34
  347. package/src/components/spinner.js +0 -23
  348. package/src/components/switch.js +0 -85
  349. package/src/components/tab-menu.js +0 -58
  350. package/src/components/table.js +0 -13
  351. package/src/components/tabs.js +0 -64
  352. package/src/components/tooltip.js +0 -64
  353. package/src/components/user-menu.js +0 -13
  354. package/src/components/zebratable.js +0 -140
  355. package/src/index.js +0 -8
  356. package/src/plugin.js +0 -142
  357. package/src/preset.js +0 -5
  358. package/src/theme.js +0 -158
  359. package/src/units.js +0 -212
  360. package/src/with-opacity.js +0 -6
@@ -1,103 +0,0 @@
1
- module.exports = Accordion = () => ({
2
- '.sk-disclosure': {
3
- '&-header': {
4
- '@apply mt-6 mb-8': {},
5
- '@apply flex flex-col text-left': {},
6
- '@apply cursor-pointer': {},
7
- '*': {
8
- '@apply cursor-pointer': {},
9
- },
10
- '&:focus-visible': {
11
- '@apply outline-0': {},
12
- },
13
-
14
- '&-icon': {
15
- '@apply ml-auto': {},
16
- svg: {
17
- '@apply w-20 h-20': {},
18
- },
19
- },
20
- '&[data-disabled="true"]': {
21
- '@apply text-dark-disabled': {},
22
- '@apply cursor-default': {},
23
- '*': {
24
- '@apply cursor-default': {},
25
- },
26
- },
27
- },
28
-
29
- '&-sm': {
30
- '.sk-disclosure-title': {
31
- '@apply text-h4-sm font-bold': {},
32
- },
33
- '.sk-disclosure-toggle': {
34
- '@apply py-4': {},
35
- '@apply h-40': {},
36
- },
37
- '.sk-disclosure-header-icon': {
38
- '@apply w-32 h-32': {},
39
- },
40
- },
41
- '&-md': {
42
- '.sk-disclosure-title': {
43
- '@apply text-h4-md font-bold': {},
44
- },
45
- '.sk-disclosure-toggle': {
46
- '@apply py-8': {},
47
- '@apply h-56': {},
48
- },
49
- '.sk-disclosure-header-icon': {
50
- '@apply w-40 h-40': {},
51
- },
52
- },
53
- '&-toggle': {
54
- '@apply flex items-center justify-between': {},
55
- '@apply gap-16': {},
56
- },
57
- '&-title': {
58
- '@apply text-dark-secondary': {},
59
- },
60
-
61
- '&-body': {
62
- '@apply flex flex-col': {},
63
- '@apply mb-32': {},
64
- '@apply mr-32': {},
65
- '@apply gap-8': {},
66
- '@apply py-0': {},
67
- '@apply h-0 overflow-hidden': {},
68
- transitionProperty: 'visibility, height, padding, margin',
69
- transitionTimingFunction: 'cubic-bezier(0.4, 0, 0.2, 1)',
70
- transitionDuration: '180ms',
71
-
72
- '&[aria-hidden="true"], &[data-hidden="true"]': {
73
- '@apply my-0 invisible h-0': {},
74
- },
75
-
76
- '&[aria-hidden="false"], &[data-hidden="false"]': {
77
- '@apply block h-max visible': {},
78
- },
79
- },
80
-
81
- '&-is-open': {
82
- '.sk-disclosure-body': {
83
- '@apply overflow-visible animate-reset-overflow': {},
84
- },
85
- '.sk-disclosure-title': {
86
- '@apply text-vattjom-text-primary': {},
87
- },
88
- },
89
- },
90
- '.sk-accordion': {
91
- '&-item': {
92
- '.sk-disclosure': {
93
- transitionProperty: 'margin',
94
- transitionDuration: '180ms',
95
- '@apply border-b-1 border-divider': {},
96
- },
97
-
98
- '&:last-child .sk-disclosure': {
99
- '@apply border-b-transparent': {},
100
- },
101
- },
102
- },
103
- });
@@ -1,29 +0,0 @@
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
- '&-children': {
18
- '@apply w-full underline inline-block max-w-[800px] text-body text-base': {},
19
- },
20
-
21
- '&-close': {
22
- '@apply p-4 -m-4 flex flex-col': {},
23
- },
24
- },
25
-
26
- '.tab': {
27
- '@apply mr-[10px] bg-white pt-4 pb-3 px-4 rounded-b-button shadow-[rgba(0,_0,_0,_0.24)_0px_1.5px_4px]': {},
28
- },
29
- });
@@ -1,90 +0,0 @@
1
- function alertSubtle(colors) {
2
- return {
3
- '.alert-subtle': {
4
- '@apply border rounded-base': {},
5
- '@apply text-body': {},
6
-
7
- ...colors.reduce(
8
- (styles, color) => ({
9
- ...styles,
10
- [`&[data-color="${color}"]`]: {
11
- [`@apply bg-${color}-background-100 border-${color}-surface-primary`]: {},
12
-
13
- '@apply dark:bg-opacity-15': {},
14
- '@apply dark:border-opacity-40': {},
15
- },
16
- }),
17
- {}
18
- ),
19
- },
20
- };
21
- }
22
-
23
- function alertSolid(colors) {
24
- return {
25
- '.alert-solid': {
26
- '@apply border rounded-base': {},
27
- '@apply text-white': {},
28
-
29
- ...colors.reduce(
30
- (styles, color) => ({
31
- ...styles,
32
- [`&[data-color="${color}"]`]: {
33
- [`@apply bg-${color}-surface-primary border-${color}-surface-primary border-opacity-20`]: {},
34
- },
35
- }),
36
- {}
37
- ),
38
- },
39
- };
40
- }
41
-
42
- function alertLeftAccent(colors) {
43
- return {
44
- '.alert-left-accent': {
45
- '@apply border-l-2 rounded-none': {},
46
- '@apply text-body': {},
47
-
48
- ...colors.reduce(
49
- (styles, color) => ({
50
- ...styles,
51
- [`&[data-color="${color}"]`]: {
52
- [`@apply bg-transparent border-${color}-surface-primary`]: {},
53
- },
54
- }),
55
- {}
56
- ),
57
- },
58
- };
59
- }
60
-
61
- function alertCloseButton(colors) {
62
- return {
63
- '.alert-close-button': {
64
- '@apply absolute right-4 cursor-base focus-visible:outline-none': {},
65
- '@apply text-neutral-600 hover:text-neutral-700': {},
66
-
67
- ...colors.reduce(
68
- (styles, color) => ({
69
- ...styles,
70
- [`&[data-color="${color}"]`]: {},
71
- }),
72
- {}
73
- ),
74
- },
75
- };
76
- }
77
-
78
- module.exports = Alert = (colors) => ({
79
- '.alert': {
80
- '@apply w-full flex items-center px-4 py-3 relative overflow-hidden text-small': {},
81
- },
82
-
83
- // variants
84
- ...alertSubtle(colors),
85
- ...alertSolid(colors),
86
- ...alertLeftAccent(colors),
87
-
88
- // close button
89
- ...alertCloseButton(colors),
90
- });
@@ -1,39 +0,0 @@
1
- module.exports = Avatar = (colors) => ({
2
- '.sk-avatar': {
3
- '@apply inline-flex': {},
4
- '@apply justify-center items-center': {},
5
- '@apply rounded-button-sm md:rounded-button-md xl:rounded-button-lg': {},
6
- '@apply overflow-hidden': {},
7
- '&[data-rounded="true"]': {
8
- '@apply rounded-circular': {},
9
- },
10
- '&&-sm': {
11
- '@apply h-[3.2rem] w-[3.2rem] min-h-[2.4rem] max-h-[3.2rem] min-w-[2.4rem] max-w-[3.2rem]': {},
12
- '@apply text-label-small': {},
13
- },
14
- '&&-md': {
15
- '@apply h-[4rem] w-[4rem] min-h-[3.2rem] max-h-[4rem] min-w-[3.2rem] max-w-[4rem]': {},
16
- '@apply text-label-medium': {},
17
- },
18
- '&&-lg': {
19
- '@apply h-[6.4rem] w-[6.4rem] min-h-[4rem] max-h-[6.4rem] min-w-[4rem] max-w-[6.4rem]': {},
20
- '@apply text-label-large': {},
21
- },
22
- ...colors.reduce(
23
- (styles, color) => ({
24
- ...styles,
25
- [`&[data-color="${color}"]`]: {
26
- [`@apply bg-${color}-surface-primary text-${color}-text-secondary`]: {},
27
-
28
- '&[data-accent="true"]': {
29
- [`@apply bg-${color}-surface-accent text-${color}-text-primary`]: {},
30
- },
31
- },
32
- }),
33
- {}
34
- ),
35
- '&-img': {
36
- '@apply min-w-full min-h-full object-cover': {},
37
- },
38
- },
39
- });
@@ -1,41 +0,0 @@
1
- module.exports = Badge = (colors) => ({
2
- '.sk-badge': {
3
- '@apply inline-flex': {},
4
- '@apply justify-center items-center': {},
5
- '@apply text-light-primary': {},
6
- '@apply rounded-utility': {},
7
- '@apply overflow-hidden': {},
8
-
9
- // size
10
- '@apply h-[2.4rem] w-[2.4rem]': {},
11
- '@apply text-label-small': {},
12
-
13
- '&[data-rounded="true"]': {
14
- '@apply rounded-circular': {},
15
- },
16
-
17
- ...colors.reduce(
18
- (styles, color) => ({
19
- ...styles,
20
- [`&[data-color="${color}"]`]: {
21
- [`@apply bg-${color}-surface-primary text-${color}-text-secondary`]: {},
22
-
23
- '&[data-inverted="true"]': {
24
- '@apply text-inverted-light-primary': {},
25
- [`@apply bg-inverted-${color}-surface-primary text-inverted-${color}-text-secondary`]: {},
26
- },
27
- },
28
- }),
29
- {}
30
- ),
31
-
32
- "&[data-color='tertiary']": {
33
- '@apply bg-primary-surface': {},
34
-
35
- '&[data-inverted="true"]': {
36
- '@apply text-inverted-light-primary': {},
37
- '@apply bg-tertiary-surface dark:bg-inverted-primary-surface': {},
38
- },
39
- },
40
- },
41
- });
@@ -1,33 +0,0 @@
1
- module.exports = Breadcrumb = () => ({
2
- '.sk-breadcrumb': {
3
- '@apply text-body relative': {},
4
-
5
- '&-item': {
6
- '@apply inline-flex items-center whitespace-nowrap': {},
7
- },
8
-
9
- '&-separator': {
10
- '@apply mx-6': {},
11
- },
12
- },
13
-
14
- '.sk-breadcrumb-item': {
15
- span: {
16
- '&[aria-current="page"]': {
17
- '@apply font-bold': {},
18
- },
19
- },
20
-
21
- [`&[data-color="primary"]`]: {
22
- 'a.sk-link': {
23
- [`@apply text-secondary`]: {},
24
- },
25
- },
26
-
27
- [`&[data-color="vattjom"]`]: {
28
- 'a.sk-link': {
29
- [`@apply text-vattjom-text-primary`]: {},
30
- },
31
- },
32
- },
33
- });
@@ -1,31 +0,0 @@
1
- module.exports = ButtonGroup = () => ({
2
- '.sk-btn-group': {
3
- '@apply inline-flex items-center': {},
4
-
5
- '&.sk-btn-group-attached': {
6
- '@apply rounded-groups': {},
7
- '@apply bg-tertiary-surface': {},
8
- '@apply py-6 px-12': {},
9
-
10
- '> *': {
11
- '@apply bg-transparent': {},
12
- },
13
-
14
- '.sk-btn[data-icon="true"] .sk-icon': {
15
- '@apply bg-transparent text-dark-secondary': {},
16
- },
17
-
18
- '.sk-icon': {
19
- '@apply p-0 w-fit h-fit': {},
20
- },
21
- },
22
-
23
- '&-divider': {
24
- '@apply grow bg-tertiary-surface px-6': {},
25
-
26
- hr: {
27
- '@apply h-[2rem]': {},
28
- },
29
- },
30
- },
31
- });
@@ -1,309 +0,0 @@
1
- function buttonPrimary(colors) {
2
- return {
3
- '&-primary': {
4
- '@apply text-light-primary': {},
5
- /* hover */
6
- '@apply hover:bg-primary-surface-hover': {},
7
-
8
- ...colors.reduce(
9
- (styles, color) => ({
10
- ...styles,
11
- [`&[data-color="${color}"]`]: {
12
- [`@apply bg-${color}-surface-primary text-${color}-text-secondary`]: {},
13
- // hover
14
- [`@apply hover:bg-${color}-surface-primary-hover hover:text-light-primary`]: {},
15
- // keyboard active
16
- '&.active': {
17
- [`@apply bg-${color}-surface-primary-hover`]: {},
18
- },
19
- [`@apply active:bg-${color}-surface-primary-hover`]: {},
20
-
21
- '&[data-inverted="true"]': {
22
- '@apply text-inverted-light-primary': {},
23
- [`@apply bg-inverted-${color}-surface-primary text-inverted-${color}-text-secondary`]: {},
24
- // hover
25
- [`@apply hover:bg-inverted-${color}-surface-primary-hover hover:text-inverted-light-primary`]: {},
26
- // keyboard active
27
- '&.active': {
28
- [`@apply bg-inverted-${color}-surface-primary-hover`]: {},
29
- },
30
- [`@apply active:bg-inverted-${color}-surface-primary-hover`]: {},
31
- },
32
- },
33
- }),
34
- {}
35
- ),
36
-
37
- "&[data-color='primary']": {
38
- '@apply bg-primary-surface': {},
39
- '@apply hover:bg-primary-surface-hover': {},
40
- '&.active': {
41
- '@apply bg-primary-surface-hover': {},
42
- },
43
- [`@apply active:bg-primary-surface-hover`]: {},
44
-
45
- '&[data-inverted="true"]': {
46
- '@apply text-inverted-light-primary': {},
47
- '@apply bg-inverted-primary-surface': {},
48
- '@apply hover:bg-inverted-primary-surface-hover': {},
49
- '&.active': {
50
- '@apply bg-inverted-primary-surface-hover': {},
51
- },
52
- [`@apply active:bg-inverted-primary-surface-hover`]: {},
53
- },
54
- },
55
- },
56
- };
57
- }
58
- function buttonSecondary() {
59
- return {
60
- '&-secondary': {
61
- '@apply border-secondary-outline': {},
62
- '@apply text-dark-secondary': {},
63
- '@apply bg-secondary-surface': {},
64
- /* hover */
65
- '@apply hover:border-secondary-outline-hover': {},
66
- '@apply hover:bg-secondary-surface-hover': {},
67
- /* focus */
68
- '@apply focus-visible:border-background-content': {},
69
-
70
- // State
71
- '&.sk-btn-disabled, &[aria-disabled="true"]': {
72
- '@apply disabled:bg-secondary-surface-disabled bg-secondary-surface-disabled disabled:border-transparent border-transparent !important':
73
- {},
74
- },
75
-
76
- '&[data-inverted="true"]': {
77
- '@apply border-inverted-secondary-outline': {},
78
- '@apply text-inverted-dark-secondary': {},
79
- '@apply bg-inverted-secondary-surface': {},
80
- /* hover */
81
- '@apply hover:border-inverted-secondary-outline-hover': {},
82
- '@apply hover:bg-inverted-secondary-surface-hover': {},
83
- /* focus */
84
- '@apply focus-visible:border-inverted-background-content': {},
85
-
86
- // State
87
- '&.sk-btn-disabled, &[aria-disabled="true"]': {
88
- '@apply disabled:bg-inverted-secondary-surface-disabled bg-inverted-secondary-surface-disabled disabled:border-transparent border-transparent !important':
89
- {},
90
- },
91
- },
92
- },
93
- };
94
- }
95
-
96
- function buttonTertiary() {
97
- return {
98
- '&-tertiary': {
99
- '@apply text-dark-secondary': {},
100
- '@apply bg-tertiary-surface': {},
101
- /* hover */
102
- '@apply hover:bg-tertiary-surface-hover': {},
103
-
104
- // State
105
- '&.sk-btn-disabled, &[aria-disabled="true"]': {
106
- '@apply disabled:bg-tertiary-surface-disabled bg-tertiary-surface-disabled disabled:border-transparent border-transparent !important':
107
- {},
108
- },
109
-
110
- '&[data-inverted="true"]': {
111
- '@apply text-inverted-dark-secondary': {},
112
- '@apply bg-inverted-tertiary-surface': {},
113
- /* hover */
114
- '@apply hover:bg-inverted-tertiary-surface-hover': {},
115
- '&.sk-btn-disabled, &[aria-disabled="true"]': {
116
- '@apply disabled:bg-inverted-tertiary-surface-disabled bg-inverted-tertiary-surface-disabled disabled:border-transparent border-transparent !important':
117
- {},
118
- },
119
- },
120
- },
121
- };
122
- }
123
- function buttonGhost() {
124
- return {
125
- '&-ghost': {
126
- '@apply text-dark-secondary': {},
127
- '@apply bg-transparent': {},
128
- '@apply border-transparent': {},
129
- /* hover */
130
- '@apply hover:bg-transparent': {},
131
- '@apply hover:border-transparent': {},
132
-
133
- // State
134
- '&.sk-btn-disabled, &[aria-disabled="true"]': {
135
- '@apply disabled:bg-transparent bg-transparent disabled:border-transparent border-transparent !important': {},
136
- },
137
-
138
- '&[data-inverted="true"]': {
139
- '@apply text-inverted-dark-secondary': {},
140
- },
141
- },
142
- };
143
- }
144
-
145
- function buttonLink(colors) {
146
- return {
147
- '&-link': {
148
- '@apply h-auto p-0 leading-normal text-neutral-600 hover:underline active:text-neutral-700': {},
149
- '&.active': {
150
- '@apply underline': {},
151
- },
152
- // dark colors
153
- '@apply dark:text-neutral-200': {},
154
- '@apply dark:active:text-neutral-500': {},
155
-
156
- ...colors.reduce(
157
- (styles, color) => ({
158
- ...styles,
159
- [`&[data-color="${color}"]`]: {
160
- [`@apply text-${color}-text active:text-${color}-text`]: {},
161
- // dark colors
162
- },
163
- }),
164
- {}
165
- ),
166
- },
167
- };
168
- }
169
-
170
- module.exports = Button = (colors) => ({
171
- '.sk-btn': {
172
- '@apply box-border': {},
173
- '@apply border-2 border-transparent': {},
174
- '@apply cursor-pointer': {},
175
- '@apply relative': {},
176
- '@apply m-0': {},
177
- '@apply px-24 py-8 gap-8': {},
178
- '@apply inline-flex items-center justify-center flex-shrink-0 align-middle': {},
179
- '@apply rounded-button': {},
180
- transitionProperty: 'background-color, border-color, color, fill, stroke, box-shadow',
181
- '@apply duration-75 ease-out': {},
182
- '@apply outline-none appearance-none select-none whitespace-nowrap': {},
183
- '@apply focus-visible:outline-none': {},
184
- '@apply focus-visible:ring': {},
185
-
186
- "&[data-rounded='true']": {
187
- '@apply rounded-circular': {},
188
- },
189
-
190
- // sizing
191
- '&-sm': {
192
- '@apply text-label-small': {},
193
- '@apply px-14 py-8 gap-6': {},
194
- '@apply max-h-[3.2rem] h-[3.2rem]': {},
195
- '@apply rounded-button-sm': {},
196
- svg: {
197
- '@apply h-[1.6rem] w-[1.6rem]': {},
198
- },
199
- },
200
-
201
- '&-md': {
202
- '@apply text-label-medium': {},
203
- '@apply px-18 py-8 gap-8': {},
204
- '@apply max-h-[4rem] h-[4rem]': {},
205
- '@apply rounded-button-md': {},
206
- svg: {
207
- '@apply h-[1.8rem] w-[1.8rem]': {},
208
- },
209
- },
210
-
211
- '&-lg': {
212
- '@apply text-label-large': {},
213
- '@apply px-24 py-8 gap-8': {},
214
- '@apply max-h-[4.8rem] h-[4.8rem]': {},
215
- '@apply rounded-button-lg': {},
216
- svg: {
217
- '@apply h-[2rem] w-[2rem]': {},
218
- },
219
- },
220
-
221
- // State
222
- '&-disabled, &[aria-disabled="true"]': {
223
- '@apply shadow-none disabled:shadow-none disabled:cursor-default cursor-default': {},
224
- '@apply disabled:text-dark-disabled text-dark-disabled disabled:bg-primary-surface-disabled bg-primary-surface-disabled disabled:border-transparent border-transparent !important':
225
- {},
226
- '&[data-inverted="true"]': {
227
- '@apply disabled:text-inverted-dark-disabled text-inverted-dark-disabled disabled:bg-inverted-primary-surface-disabled bg-inverted-primary-surface-disabled disabled:border-transparent border-transparent !important':
228
- {},
229
- },
230
- },
231
-
232
- // variants
233
- ...buttonPrimary(colors),
234
- ...buttonSecondary(),
235
- ...buttonTertiary(),
236
- ...buttonGhost(),
237
- ...buttonLink(colors),
238
-
239
- '.btn-has-icon': {
240
- '&-left': {
241
- '@apply h-full flex items-center justify-center -ml-2': {},
242
- '.sk-icon': {
243
- '@apply bg-transparent': {},
244
- color: 'currentColor',
245
- },
246
- },
247
- '&-right': {
248
- '@apply h-full flex items-center justify-center -mr-2': {},
249
- '.sk-icon': {
250
- '@apply bg-transparent': {},
251
- color: 'currentColor',
252
- },
253
- },
254
- },
255
- '&-lg .btn-has-icon-left': {
256
- '@apply -ml-4': {},
257
- },
258
- '&-lg .btn-has-icon-right': {
259
- '@apply -mr-4': {},
260
- },
261
- '&[data-icon=true]': {
262
- '@apply p-0': {},
263
-
264
- '.sk-icon': {
265
- '@apply bg-transparent': {},
266
- color: 'currentColor',
267
- },
268
-
269
- "&[data-rounded='true']": {
270
- '@apply rounded-full': {},
271
- },
272
-
273
- '&.sk-btn-sm': {
274
- minWidth: '3.2rem',
275
- width: '3.2rem',
276
- maxWidth: '3.2rem',
277
- svg: {
278
- '@apply h-[2rem] w-[2rem]': {},
279
- },
280
- },
281
-
282
- '&.sk-btn-md': {
283
- minWidth: '4rem',
284
- width: '4rem',
285
- maxWidth: '4rem',
286
- svg: {
287
- '@apply h-[2rem] w-[2rem]': {},
288
- },
289
- },
290
-
291
- '&.sk-btn-lg': {
292
- minWidth: '4.8rem',
293
- width: '4.8rem',
294
- maxWidth: '4.8rem',
295
- svg: {
296
- '@apply h-[2.4rem] w-[2.4rem]': {},
297
- },
298
- },
299
- '.btn-has-icon': {
300
- '&-left': {
301
- '@apply m-0': {},
302
- },
303
- '&-right': {
304
- '@apply m-0': {},
305
- },
306
- },
307
- },
308
- },
309
- });