@sk-web-gui/core 0.1.93 → 1.0.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 (262) hide show
  1. package/dist/cjs/base.js +21 -40
  2. package/dist/cjs/base.js.map +1 -1
  3. package/dist/cjs/colors.js +629 -123
  4. package/dist/cjs/colors.js.map +1 -1
  5. package/dist/cjs/components/accordion.js +52 -141
  6. package/dist/cjs/components/accordion.js.map +1 -1
  7. package/dist/cjs/components/alert-banner.js +1 -1
  8. package/dist/cjs/components/alert-banner.js.map +1 -1
  9. package/dist/cjs/components/alert.js +6 -6
  10. package/dist/cjs/components/alert.js.map +1 -1
  11. package/dist/cjs/components/avatar.js +28 -63
  12. package/dist/cjs/components/avatar.js.map +1 -1
  13. package/dist/cjs/components/badge.js +21 -165
  14. package/dist/cjs/components/badge.js.map +1 -1
  15. package/dist/cjs/components/breadcrumb.js +15 -3
  16. package/dist/cjs/components/breadcrumb.js.map +1 -1
  17. package/dist/cjs/components/button-group.js +20 -33
  18. package/dist/cjs/components/button-group.js.map +1 -1
  19. package/dist/cjs/components/button.js +178 -151
  20. package/dist/cjs/components/button.js.map +1 -1
  21. package/dist/cjs/components/calendar.js +1 -1
  22. package/dist/cjs/components/calendar.js.map +1 -1
  23. package/dist/cjs/components/card.js +200 -39
  24. package/dist/cjs/components/card.js.map +1 -1
  25. package/dist/cjs/components/checkbox.js +97 -70
  26. package/dist/cjs/components/checkbox.js.map +1 -1
  27. package/dist/cjs/components/combobox.js +67 -0
  28. package/dist/cjs/components/combobox.js.map +1 -0
  29. package/dist/cjs/components/comments.js +2 -2
  30. package/dist/cjs/components/comments.js.map +1 -1
  31. package/dist/cjs/components/cookie-consent.js +25 -8
  32. package/dist/cjs/components/cookie-consent.js.map +1 -1
  33. package/dist/cjs/components/dialog.js +2 -9
  34. package/dist/cjs/components/dialog.js.map +1 -1
  35. package/dist/cjs/components/divider.js +43 -5
  36. package/dist/cjs/components/divider.js.map +1 -1
  37. package/dist/cjs/components/dot.js +3 -3
  38. package/dist/cjs/components/dot.js.map +1 -1
  39. package/dist/cjs/components/filter.js +17 -0
  40. package/dist/cjs/components/filter.js.map +1 -0
  41. package/dist/cjs/components/footer.js +22 -22
  42. package/dist/cjs/components/footer.js.map +1 -1
  43. package/dist/cjs/components/form-control.js +8 -0
  44. package/dist/cjs/components/form-control.js.map +1 -0
  45. package/dist/cjs/components/forms.js +13 -283
  46. package/dist/cjs/components/forms.js.map +1 -1
  47. package/dist/cjs/components/header.js +28 -17
  48. package/dist/cjs/components/header.js.map +1 -1
  49. package/dist/cjs/components/icon.js +52 -7
  50. package/dist/cjs/components/icon.js.map +1 -1
  51. package/dist/cjs/components/input.js +227 -0
  52. package/dist/cjs/components/input.js.map +1 -0
  53. package/dist/cjs/components/kbd.js +2 -2
  54. package/dist/cjs/components/kbd.js.map +1 -1
  55. package/dist/cjs/components/label.js +26 -0
  56. package/dist/cjs/components/label.js.map +1 -0
  57. package/dist/cjs/components/link.js +35 -12
  58. package/dist/cjs/components/link.js.map +1 -1
  59. package/dist/cjs/components/list.js +56 -0
  60. package/dist/cjs/components/list.js.map +1 -0
  61. package/dist/cjs/components/logo.js +50 -0
  62. package/dist/cjs/components/logo.js.map +1 -0
  63. package/dist/cjs/components/menu-vertical.js +234 -0
  64. package/dist/cjs/components/menu-vertical.js.map +1 -0
  65. package/dist/cjs/components/menubar.js +1 -1
  66. package/dist/cjs/components/menubar.js.map +1 -1
  67. package/dist/cjs/components/modal.js +34 -14
  68. package/dist/cjs/components/modal.js.map +1 -1
  69. package/dist/cjs/components/notification.js +2 -2
  70. package/dist/cjs/components/notification.js.map +1 -1
  71. package/dist/cjs/components/pagination.js +50 -29
  72. package/dist/cjs/components/pagination.js.map +1 -1
  73. package/dist/cjs/components/progress-bar.js +23 -0
  74. package/dist/cjs/components/progress-bar.js.map +1 -0
  75. package/dist/cjs/components/radio.js +113 -64
  76. package/dist/cjs/components/radio.js.map +1 -1
  77. package/dist/cjs/components/search-field.js +23 -0
  78. package/dist/cjs/components/search-field.js.map +1 -0
  79. package/dist/cjs/components/select.js +190 -0
  80. package/dist/cjs/components/select.js.map +1 -0
  81. package/dist/cjs/components/side-menu.js +7 -7
  82. package/dist/cjs/components/side-menu.js.map +1 -1
  83. package/dist/cjs/components/snackbar.js +6 -0
  84. package/dist/cjs/components/snackbar.js.map +1 -1
  85. package/dist/cjs/components/spinner.js +19 -0
  86. package/dist/cjs/components/spinner.js.map +1 -0
  87. package/dist/cjs/components/switch.js +46 -75
  88. package/dist/cjs/components/switch.js.map +1 -1
  89. package/dist/cjs/components/tabs.js +1 -1
  90. package/dist/cjs/components/tabs.js.map +1 -1
  91. package/dist/cjs/components/tag.js +4 -4
  92. package/dist/cjs/components/tag.js.map +1 -1
  93. package/dist/cjs/components/tooltip.js +61 -0
  94. package/dist/cjs/components/tooltip.js.map +1 -0
  95. package/dist/cjs/components/user-menu.js +7 -50
  96. package/dist/cjs/components/user-menu.js.map +1 -1
  97. package/dist/cjs/components/zebratable.js +89 -34
  98. package/dist/cjs/components/zebratable.js.map +1 -1
  99. package/dist/cjs/plugin.js +19 -8
  100. package/dist/cjs/plugin.js.map +1 -1
  101. package/dist/cjs/theme.js +83 -37
  102. package/dist/cjs/theme.js.map +1 -1
  103. package/dist/esm/base.js +21 -40
  104. package/dist/esm/base.js.map +1 -1
  105. package/dist/esm/colors.js +629 -123
  106. package/dist/esm/colors.js.map +1 -1
  107. package/dist/esm/components/accordion.js +52 -141
  108. package/dist/esm/components/accordion.js.map +1 -1
  109. package/dist/esm/components/alert-banner.js +1 -1
  110. package/dist/esm/components/alert-banner.js.map +1 -1
  111. package/dist/esm/components/alert.js +5 -11
  112. package/dist/esm/components/alert.js.map +1 -1
  113. package/dist/esm/components/avatar.js +32 -63
  114. package/dist/esm/components/avatar.js.map +1 -1
  115. package/dist/esm/components/badge.js +27 -172
  116. package/dist/esm/components/badge.js.map +1 -1
  117. package/dist/esm/components/breadcrumb.js +19 -2
  118. package/dist/esm/components/breadcrumb.js.map +1 -1
  119. package/dist/esm/components/button-group.js +20 -33
  120. package/dist/esm/components/button-group.js.map +1 -1
  121. package/dist/esm/components/button.js +185 -200
  122. package/dist/esm/components/button.js.map +1 -1
  123. package/dist/esm/components/calendar.js +1 -1
  124. package/dist/esm/components/calendar.js.map +1 -1
  125. package/dist/esm/components/card.js +233 -39
  126. package/dist/esm/components/card.js.map +1 -1
  127. package/dist/esm/components/checkbox.js +83 -93
  128. package/dist/esm/components/checkbox.js.map +1 -1
  129. package/dist/esm/components/combobox.js +65 -0
  130. package/dist/esm/components/combobox.js.map +1 -0
  131. package/dist/esm/components/comments.js +2 -2
  132. package/dist/esm/components/comments.js.map +1 -1
  133. package/dist/esm/components/cookie-consent.js +25 -8
  134. package/dist/esm/components/cookie-consent.js.map +1 -1
  135. package/dist/esm/components/dialog.js +2 -9
  136. package/dist/esm/components/dialog.js.map +1 -1
  137. package/dist/esm/components/divider.js +43 -5
  138. package/dist/esm/components/divider.js.map +1 -1
  139. package/dist/esm/components/dot.js +3 -4
  140. package/dist/esm/components/dot.js.map +1 -1
  141. package/dist/esm/components/filter.js +15 -0
  142. package/dist/esm/components/filter.js.map +1 -0
  143. package/dist/esm/components/footer.js +22 -24
  144. package/dist/esm/components/footer.js.map +1 -1
  145. package/dist/esm/components/form-control.js +6 -0
  146. package/dist/esm/components/form-control.js.map +1 -0
  147. package/dist/esm/components/forms.js +15 -289
  148. package/dist/esm/components/forms.js.map +1 -1
  149. package/dist/esm/components/header.js +22 -18
  150. package/dist/esm/components/header.js.map +1 -1
  151. package/dist/esm/components/icon.js +57 -7
  152. package/dist/esm/components/icon.js.map +1 -1
  153. package/dist/esm/components/input.js +225 -0
  154. package/dist/esm/components/input.js.map +1 -0
  155. package/dist/esm/components/kbd.js +2 -2
  156. package/dist/esm/components/kbd.js.map +1 -1
  157. package/dist/esm/components/label.js +30 -0
  158. package/dist/esm/components/label.js.map +1 -0
  159. package/dist/esm/components/link.js +35 -12
  160. package/dist/esm/components/link.js.map +1 -1
  161. package/dist/esm/components/list.js +54 -0
  162. package/dist/esm/components/list.js.map +1 -0
  163. package/dist/esm/components/logo.js +48 -0
  164. package/dist/esm/components/logo.js.map +1 -0
  165. package/dist/esm/components/menu-vertical.js +228 -0
  166. package/dist/esm/components/menu-vertical.js.map +1 -0
  167. package/dist/esm/components/menubar.js +1 -1
  168. package/dist/esm/components/menubar.js.map +1 -1
  169. package/dist/esm/components/modal.js +34 -14
  170. package/dist/esm/components/modal.js.map +1 -1
  171. package/dist/esm/components/notification.js +2 -2
  172. package/dist/esm/components/notification.js.map +1 -1
  173. package/dist/esm/components/pagination.js +50 -29
  174. package/dist/esm/components/pagination.js.map +1 -1
  175. package/dist/esm/components/progress-bar.js +25 -0
  176. package/dist/esm/components/progress-bar.js.map +1 -0
  177. package/dist/esm/components/radio.js +113 -68
  178. package/dist/esm/components/radio.js.map +1 -1
  179. package/dist/esm/components/search-field.js +21 -0
  180. package/dist/esm/components/search-field.js.map +1 -0
  181. package/dist/esm/components/select.js +188 -0
  182. package/dist/esm/components/select.js.map +1 -0
  183. package/dist/esm/components/side-menu.js +7 -7
  184. package/dist/esm/components/side-menu.js.map +1 -1
  185. package/dist/esm/components/snackbar.js +6 -0
  186. package/dist/esm/components/snackbar.js.map +1 -1
  187. package/dist/esm/components/spinner.js +18 -0
  188. package/dist/esm/components/spinner.js.map +1 -0
  189. package/dist/esm/components/switch.js +53 -80
  190. package/dist/esm/components/switch.js.map +1 -1
  191. package/dist/esm/components/tabs.js +1 -1
  192. package/dist/esm/components/tabs.js.map +1 -1
  193. package/dist/esm/components/tag.js +4 -4
  194. package/dist/esm/components/tag.js.map +1 -1
  195. package/dist/esm/components/tooltip.js +59 -0
  196. package/dist/esm/components/tooltip.js.map +1 -0
  197. package/dist/esm/components/user-menu.js +7 -50
  198. package/dist/esm/components/user-menu.js.map +1 -1
  199. package/dist/esm/components/zebratable.js +89 -34
  200. package/dist/esm/components/zebratable.js.map +1 -1
  201. package/dist/esm/plugin.js +19 -8
  202. package/dist/esm/plugin.js.map +1 -1
  203. package/dist/esm/theme.js +85 -37
  204. package/dist/esm/theme.js.map +1 -1
  205. package/package.json +5 -5
  206. package/src/base.js +28 -28
  207. package/src/colors.js +631 -132
  208. package/src/components/accordion.js +53 -161
  209. package/src/components/alert-banner.js +1 -2
  210. package/src/components/alert.js +5 -13
  211. package/src/components/avatar.js +36 -82
  212. package/src/components/badge.js +33 -200
  213. package/src/components/breadcrumb.js +22 -2
  214. package/src/components/button-group.js +17 -32
  215. package/src/components/button.js +197 -212
  216. package/src/components/card.js +273 -34
  217. package/src/components/checkbox.js +95 -93
  218. package/src/components/combobox.js +66 -0
  219. package/src/components/comments.js +31 -27
  220. package/src/components/cookie-consent.js +24 -9
  221. package/src/components/dialog.js +2 -9
  222. package/src/components/divider.js +45 -5
  223. package/src/components/dot.js +3 -4
  224. package/src/components/filter.js +16 -0
  225. package/src/components/footer.js +20 -33
  226. package/src/components/forms.js +14 -360
  227. package/src/components/header.js +21 -21
  228. package/src/components/icon.js +75 -6
  229. package/src/components/input.js +244 -0
  230. package/src/components/kbd.js +1 -1
  231. package/src/components/label.js +37 -0
  232. package/src/components/link.js +38 -12
  233. package/src/components/list.js +61 -0
  234. package/src/components/logo.js +48 -0
  235. package/src/components/menu-vertical.js +293 -0
  236. package/src/components/menubar.js +56 -0
  237. package/src/components/modal.js +35 -18
  238. package/src/components/notification.js +2 -2
  239. package/src/components/pagination.js +54 -31
  240. package/src/components/popup-menu.js +111 -0
  241. package/src/components/progress-bar.js +31 -0
  242. package/src/components/progress-stepper.js +50 -0
  243. package/src/components/radio.js +114 -80
  244. package/src/components/search-field.js +20 -0
  245. package/src/components/select.js +203 -0
  246. package/src/components/side-menu.js +7 -7
  247. package/src/components/snackbar.js +34 -0
  248. package/src/components/spinner.js +23 -0
  249. package/src/components/switch.js +54 -88
  250. package/src/components/tabs.js +1 -1
  251. package/src/components/tooltip.js +64 -0
  252. package/src/components/user-menu.js +7 -59
  253. package/src/components/zebratable.js +92 -41
  254. package/src/plugin.js +37 -15
  255. package/src/theme.js +105 -31
  256. package/src/units.js +212 -0
  257. package/src/components/calendar.js +0 -78
  258. package/src/components/message.js +0 -60
  259. package/src/components/profile-picture.js +0 -14
  260. package/src/components/profile.js +0 -33
  261. package/src/components/search-bar.js +0 -5
  262. package/src/components/tag.js +0 -96
@@ -1,9 +1,78 @@
1
- module.exports = Icon = () => ({
2
- '.icon-inline': {
3
- '@apply inline-block align-middle': {},
4
- },
1
+ module.exports = Icon = (colors) => ({
2
+ '.sk-icon': {
3
+ '@apply inline-flex items-center justify-center': {},
4
+ '@apply w-24 h-24': {},
5
+ svg: {
6
+ '@apply w-full h-full': {},
7
+ },
8
+
9
+ '&.sk-icon-padded': {
10
+ '@apply rounded-utility': {},
11
+ '@apply text-light-primary fill-light-primary': {},
12
+ '@apply p-[0.4rem]': {},
13
+
14
+ ...colors.reduce(
15
+ (styles, color) => ({
16
+ ...styles,
17
+ [`&[data-color="${color}"]`]: {
18
+ [`@apply bg-${color}-surface-primary text-${color}-text-secondary fill-${color}-text-secondary`]: {},
19
+
20
+ '&[data-inverted="true"]': {
21
+ '@apply text-inverted-light-primary': {},
22
+ [`@apply bg-inverted-${color}-surface-primary text-inverted-${color}-text-secondary fill-inverted-${color}-text-secondary`]:
23
+ {},
24
+ },
25
+ },
26
+ }),
27
+ {}
28
+ ),
29
+
30
+ "&[data-color='primary'], &[data-color='tertiary']": {
31
+ '@apply bg-primary-surface text-light-primary fill-light-primary': {},
32
+
33
+ '&[data-inverted="true"]': {
34
+ '@apply text-inverted-light-primary fill-inverted-light-primary': {},
35
+ '@apply bg-tertiary-surface': {},
36
+ },
37
+ },
38
+ "&[data-variant='ghost']": {
39
+ '@apply bg-transparent text-current fill-current': {},
40
+
41
+ '&[data-inverted="true"]': {
42
+ '@apply bg-transparent text-current fill-current': {},
43
+ },
44
+ },
45
+ },
46
+
47
+ '&[data-size="fit"]': {
48
+ '@apply w-fit h-fit': {},
49
+ },
50
+
51
+ '&[data-rounded="true"]': {
52
+ '@apply rounded-circular': {},
53
+ },
54
+
55
+ ...colors.reduce(
56
+ (styles, color) => ({
57
+ ...styles,
58
+ [`&[data-color="${color}"]`]: {
59
+ '@apply text-inverted-light-primary': {},
60
+ [`@apply text-inverted-${color}-text-secondary fill-inverted-${color}-text-secondary`]: {},
61
+
62
+ '&[data-inverted="true"]': {
63
+ '@apply text-inverted-light-primary': {},
64
+ [`@apply bg-inverted-${color}-surface-primary text-inverted-${color}-text-secondary fill-inverted-${color}-text-secondary`]:
65
+ {},
66
+ },
67
+ },
68
+ }),
69
+ {}
70
+ ),
5
71
 
6
- '.icon-block': {
7
- '@apply block': {},
72
+ "&[data-color='primary']": {
73
+ '&[data-inverted="true"]': {
74
+ '@apply text-light-primary fill-light-primary': {},
75
+ },
76
+ },
8
77
  },
9
78
  });
@@ -0,0 +1,244 @@
1
+ function calendar() {
2
+ return `<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect width='18' height='18' x='3' y='4' rx='2' ry='2' /><line x1='16' x2='16' y1='2' y2='6' /><line x1='8' x2='8' y1='2' y2='6' /><line x1='3' x2='21' y1='10' y2='10' /></svg>`;
3
+ }
4
+ function clock() {
5
+ return `<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10' /><polyline points='12 6 12 12 16 14' /></svg>`;
6
+ }
7
+
8
+ function inputStandards() {
9
+ return {
10
+ '@apply border-1': {},
11
+ '@apply border-primitives-overlay-darken-6': {},
12
+ '@apply dark:border-primitives-overlay-lighten-6': {},
13
+ '@apply hover:border-primitives-overlay-darken-8': {},
14
+ '@apply dark:hover:border-primitives-overlay-lighten-4': {},
15
+
16
+ '@apply placeholder:text-dark-placeholder': {},
17
+
18
+ '@apply bg-primitives-overlay-lighten-10': {},
19
+ '@apply dark:bg-primitives-overlay-darken-6': {},
20
+
21
+ //Invalid
22
+ '&:invalid, &[aria-invalid="true"]': {
23
+ '@apply border-2 border-error-surface-primary': {},
24
+ },
25
+
26
+ //Disabled
27
+ '&:disabled, &[aria-disabled="true"]': {
28
+ '@apply bg-primitives-overlay-darken-1': {},
29
+ '@apply dark:bg-primitives-overlay-lighten-1': {},
30
+ '@apply border-primitives-overlay-darken-3': {},
31
+ '@apply dark:border-primitives-overlay-lighten-3': {},
32
+ '@apply hover:border-primitives-overlay-darken-3': {},
33
+ '@apply dark:hover:border-primitives-overlay-lighten-3': {},
34
+ '@apply text-dark-disabled': {},
35
+ },
36
+ };
37
+ }
38
+
39
+ function addin() {
40
+ return {
41
+ '&-addin': {
42
+ '@apply bg-transparent': {},
43
+ '@apply flex': {},
44
+ '@apply justify-start items-center': {},
45
+ '&-sm': {
46
+ '@apply px-6 gap-6': {},
47
+ '&.sk-form-input-addin-left': {
48
+ '@apply -mr-12': {},
49
+ '@apply pl-10': {},
50
+ },
51
+ '&.sk-form-input-addin-right': {
52
+ '@apply -ml-12': {},
53
+ '@apply pr-10': {},
54
+ },
55
+ svg: {
56
+ '@apply w-[1.6rem] h-[1.6rem]': {},
57
+ },
58
+ },
59
+ '&-md': {
60
+ '@apply md:px-8 md:gap-8': {},
61
+ '&.sk-form-input-addin-left': {
62
+ '@apply -mr-16': {},
63
+ '@apply pl-12': {},
64
+ },
65
+ '&.sk-form-input-addin-right': {
66
+ '@apply -ml-16': {},
67
+ '@apply pr-12': {},
68
+ },
69
+ svg: {
70
+ '@apply w-[2rem] h-[2rem]': {},
71
+ },
72
+ },
73
+ '&-lg': {
74
+ '@apply md:px-8 md:gap-8': {},
75
+ '&.sk-form-input-addin-left': {
76
+ '@apply -mr-20': {},
77
+ '@apply pl-16': {},
78
+ },
79
+ '&.sk-form-input-addin-right': {
80
+ '@apply -ml-20': {},
81
+ '@apply pr-16': {},
82
+ },
83
+ svg: {
84
+ '@apply w-[2.2rem] h-[2.2rem]': {},
85
+ },
86
+ },
87
+ },
88
+ };
89
+ }
90
+
91
+ function inputGroup() {
92
+ return {
93
+ '&-group': {
94
+ '@apply flex relative': {},
95
+ '@apply items-center': {},
96
+ '@apply focus-within:ring': {},
97
+ '@apply focus-within:ring-ring': {},
98
+ '@apply text-dark-secondary': {},
99
+ //Focus
100
+ '@apply focus-within:border-primitives-overlay-lighten-10': {},
101
+ '@apply dark:focus-within:border-primitives-overlay-darken-6': {},
102
+
103
+ '&:not(:invalid):not([aria-invalid="true"])': {
104
+ '@apply focus-within:hover:border-primitives-overlay-lighten-10': {},
105
+ '@apply dark:focus-within:hover:border-primitives-overlay-darken-6': {},
106
+ },
107
+
108
+ '&:disabled, &[aria-disabled="true"]': {
109
+ '&::-webkit-inner-spin-button, &::-webkit-calendar-picker-indicator': {
110
+ '@apply color-black-disabled': {},
111
+ },
112
+ },
113
+ '&&-lg': {
114
+ '@apply text-input-large': {},
115
+ '@apply rounded-button-lg': {},
116
+ },
117
+ '&&-md': {
118
+ '@apply text-input-medium': {},
119
+ '@apply rounded-button-md': {},
120
+ },
121
+ '&&-sm': {
122
+ '@apply text-input-small': {},
123
+ '@apply rounded-button-sm': {},
124
+ },
125
+ ...inputStandards(),
126
+ '.sk-form-input': {
127
+ '@apply rounded-0': {},
128
+ '@apply border-0': {},
129
+ '@apply focus:ring-0': {},
130
+ '@apply focus:ring-offset-0': {},
131
+ '@apply bg-transparent': {},
132
+ '@apply dark:bg-transparent': {},
133
+ '@apply grow': {},
134
+ },
135
+ },
136
+ };
137
+ }
138
+
139
+ function timeAndDatePicker() {
140
+ return {
141
+ '&::-webkit-inner-spin-button, &::-webkit-calendar-picker-indicator': {
142
+ '@apply block': {},
143
+ '@apply p-0': {},
144
+ '@apply pl-6 md:pl-8': {},
145
+ '@apply m-0': {},
146
+ '@apply bg-none': {},
147
+ '@apply bg-dark-secondary': {},
148
+ '&.sk-form-input-sm': {
149
+ '@apply w-[1.6rem] h-[1.6rem]': {},
150
+ '@apply -mr-2': {},
151
+ },
152
+ '&.sk-form-input-md': {
153
+ '@apply -mr-4': {},
154
+ '@apply w-[1.8rem] h-[1.8rem]': {},
155
+ },
156
+ '&.sk-form-input-lg': {
157
+ '@apply -mr-6': {},
158
+ '@apply w-[2rem] h-[2rem]': {},
159
+ },
160
+ },
161
+
162
+ '&[type="date"]::-webkit-inner-spin-button, &[type="date"]::-webkit-calendar-picker-indicator': {
163
+ mask: [`url("data:image/svg+xml;utf-8,${calendar()}") no-repeat 100% 100%`],
164
+ '-webkit-mask': [`url("data:image/svg+xml;utf-8,${calendar()}") no-repeat 100% 100%`],
165
+ maskSize: 'contain',
166
+ '-webkit-mask-size': 'contain',
167
+ },
168
+ '&[type="datetime-local"]::-webkit-inner-spin-button, &[type="datetime-local"]::-webkit-calendar-picker-indicator':
169
+ {
170
+ mask: [`url("data:image/svg+xml;utf-8,${calendar()}") no-repeat 100% 100%`],
171
+ '-webkit-mask': [`url("data:image/svg+xml;utf-8,${calendar()}") no-repeat 100% 100%`],
172
+ maskSize: 'contain',
173
+ '-webkit-mask-size': 'contain',
174
+ },
175
+ '&[type="time"]::-webkit-inner-spin-button, &[type="time"]::-webkit-calendar-picker-indicator': {
176
+ mask: [`url("data:image/svg+xml;utf-8,${clock()}") no-repeat 100% 100%`],
177
+ '-webkit-mask': [`url("data:image/svg+xml;utf-8,${clock()}") no-repeat 100% 100%`],
178
+ maskSize: 'contain',
179
+ '-webkit-mask-size': 'contain',
180
+ },
181
+
182
+ '&:disabled, &[aria-disabled="true"]': {
183
+ '&::-webkit-inner-spin-button, &::-webkit-calendar-picker-indicator': {
184
+ '@apply color-black-disabled': {},
185
+ },
186
+ },
187
+ };
188
+ }
189
+
190
+ module.exports = Input = () => ({
191
+ '.sk-form-input': {
192
+ '@apply grow-0': {},
193
+ '@apply text-dark-primary': {},
194
+
195
+ '&[data-hideextra="true"]': {
196
+ '&::-webkit-outer-spin-button, &::-webkit-inner-spin-button': {
197
+ '-webkit-appearance': 'none',
198
+ display: 'none',
199
+ margin: 0,
200
+ },
201
+ '-moz-appearance': 'textfield',
202
+ },
203
+
204
+ '&&-lg': {
205
+ '@apply rounded-button-lg': {},
206
+ '@apply px-20': {},
207
+ '@apply py-12': {},
208
+ '@apply gap-8': {},
209
+ '@apply text-input-large': {},
210
+ '@apply h-[4.8rem]': {},
211
+ },
212
+ '&&-md': {
213
+ '@apply rounded-button-md': {},
214
+ '@apply px-16': {},
215
+ '@apply py-8': {},
216
+ '@apply gap-8': {},
217
+ '@apply text-input-medium': {},
218
+ '@apply h-[4rem]': {},
219
+ },
220
+ '&&-sm': {
221
+ '@apply rounded-button-sm': {},
222
+ '@apply px-12': {},
223
+ '@apply py-6': {},
224
+ '@apply gap-6': {},
225
+ '@apply text-input-small': {},
226
+ '@apply h-[3.2rem]': {},
227
+ },
228
+
229
+ //Focus
230
+ '@apply focus:ring': {},
231
+ '@apply focus:ring-ring': {},
232
+ '@apply focus:ring-offset': {},
233
+ '@apply focus:border-primitives-overlay-lighten-10': {},
234
+ '@apply dark:focus:border-primitives-overlay-darken-6': {},
235
+ '&:not(:invalid):not([aria-invalid="true"])': {
236
+ '@apply focus:hover:border-primitives-overlay-lighten-10': {},
237
+ '@apply dark:focus:hover:border-primitives-overlay-darken-6': {},
238
+ },
239
+ ...timeAndDatePicker(),
240
+ ...inputStandards(),
241
+ ...inputGroup(),
242
+ ...addin(),
243
+ },
244
+ });
@@ -4,6 +4,6 @@ module.exports = Kbd = () => ({
4
4
  minWidth: '1.25rem',
5
5
  '@apply bg-blackAlpha-100 text-body': {},
6
6
  // dark
7
- '@apply dark:bg-white/30 dark:text-neutral-300': {},
7
+ // '@apply dark:bg-white/30 dark:text-neutral-300': {},
8
8
  },
9
9
  });
@@ -0,0 +1,37 @@
1
+ module.exports = Label = (colors) => ({
2
+ '.sk-label': {
3
+ '@apply inline-flex flex-row': {},
4
+ '@apply justify-center items-center': {},
5
+ '@apply gap-6 px-10 py-4': {},
6
+ '@apply h-24 max-h-24': {},
7
+ '@apply text-label-small': {},
8
+
9
+ '@apply rounded-utility-sm md:rounded-utility-md xl:rounded-utility-lg': {},
10
+
11
+ '@apply bg-primary-surface': {},
12
+ '@apply text-light-primary': {},
13
+
14
+ '&[data-rounded="true"]': {
15
+ '@apply rounded-full': {},
16
+ },
17
+ '&[data-inverted="true"]': {
18
+ '@apply bg-inverted-primary-surface': {},
19
+ '@apply text-inverted-light-primary': {},
20
+ },
21
+
22
+ ...colors.reduce(
23
+ (styles, color) => ({
24
+ ...styles,
25
+ [`&[data-color="${color}"]`]: {
26
+ [`@apply bg-${color}-surface-primary`]: {},
27
+ [`@apply text-${color}-text-secondary`]: {},
28
+ '&[data-inverted="true"]': {
29
+ [`@apply bg-${color}-surface-accent`]: {},
30
+ [`@apply text-${color}-text-primary`]: {},
31
+ },
32
+ },
33
+ }),
34
+ {}
35
+ ),
36
+ },
37
+ });
@@ -1,19 +1,45 @@
1
1
  module.exports = Link = () => ({
2
- '.link': {
3
- '@apply cursor-base underline outline-none hover:underline': {},
4
- '@apply text-primary dark:text-primary': {},
5
- '@apply focus-visible:ring-4 focus-visible:ring-primary': {},
2
+ '.sk-link': {
3
+ '@apply underline outline-none hover:underline': {},
4
+ '@apply rounded-utility': {},
6
5
 
7
- '@apply hover:text-primary-active': {},
6
+ // focus
7
+ '@apply focus-visible:ring ring-offset-[.6rem]': {},
8
+
9
+ // sizes
10
+ '&-sm': {
11
+ '@apply text-small leading-[2rem]': {},
12
+ },
13
+ '&-md': {
14
+ '@apply text-base': {},
15
+ },
16
+ '&-lg': {
17
+ '@apply text-large': {},
18
+ },
19
+ '&-xl': {
20
+ '@apply text-lead leading-[3.2rem]': {},
21
+ },
22
+
23
+ // variants
24
+ '&-primary': {
25
+ '@apply text-vattjom-surface-primary': {},
26
+ '&:hover': {
27
+ '@apply text-vattjom-surface-primary-hover': {},
28
+ },
29
+ },
30
+ '&-tertiary': {
31
+ '@apply text-dark-secondary': {},
32
+ '&:hover': {
33
+ '@apply text-dark-primary': {},
34
+ },
35
+ },
8
36
 
9
37
  '&.active': {
10
- '@apply underline text-primary-active': {},
38
+ '@apply underline': {},
11
39
  },
12
- '&-external-icon': {
13
- fontSize: '0.875em !important',
14
- lineHeight: '1',
15
- marginLeft: '.25em',
16
- verticalAlign: 'text-top',
40
+
41
+ '& &-external-icon': {
42
+ '@apply w-[1em] h-[1em] leading-none ml-[.25em] align-text-top': {},
17
43
  },
18
44
 
19
45
  '&[type="button"]': {
@@ -21,7 +47,7 @@ module.exports = Link = () => ({
21
47
  },
22
48
 
23
49
  '&-disabled': {
24
- '@apply disabled:opacity-60 disabled:cursor-not-allowed disabled:no-underline': {},
50
+ '@apply text-dark-disabled cursor-default': {},
25
51
  },
26
52
  },
27
53
  });
@@ -0,0 +1,61 @@
1
+ module.exports = Link = () => ({
2
+ '.sk-list': {
3
+ // General
4
+ li: {
5
+ '&:before': {
6
+ '@apply text-vattjom-surface-primary font-bold': {},
7
+ '@apply absolute inline-flex items-center justify-center text-center': {},
8
+ '@apply w-24 h-24': {},
9
+ },
10
+ },
11
+
12
+ '&[data-style="bullet"]': {
13
+ li: {
14
+ '&:before': {
15
+ "@apply content-['•'] my-[.5rem] text-[1.8rem]": {},
16
+ },
17
+ },
18
+ },
19
+
20
+ '&[data-style="numbered"]': {
21
+ li: {
22
+ counterIncrement: 'item',
23
+
24
+ '&:before': {
25
+ '@apply text-small border-vattjom-surface-primary rounded-full leading-8': {},
26
+ '@apply my-[.6rem] h-[2.2rem] w-[2.2rem] border-[.2rem]': {},
27
+ content: 'counter(item)',
28
+ },
29
+ },
30
+ },
31
+
32
+ '&[data-style="stroke"]': {
33
+ li: {
34
+ '&:before': {
35
+ "@apply content-['–'] my-[.4rem] text-[1.6rem]": {},
36
+ },
37
+ },
38
+ },
39
+
40
+ '.sk-link': {
41
+ '&-tertiary': {
42
+ '@apply text-dark-primary': {},
43
+ '&:hover': {
44
+ '@apply text-dark-secondary': {},
45
+ },
46
+ },
47
+ },
48
+
49
+ '&-item': {
50
+ '@apply pt-20': {},
51
+ },
52
+
53
+ '&-header': {
54
+ '@apply text-large font-bold ml-[3.2rem]': {},
55
+ },
56
+
57
+ '&-text': {
58
+ '@apply text-dark-secondary ml-[3.2rem]': {},
59
+ },
60
+ },
61
+ });
@@ -0,0 +1,48 @@
1
+ module.exports = Logo = () => ({
2
+ '.sk-logo': {
3
+ '@apply flex w-auto h-auto': {},
4
+ '@apply items-center': {},
5
+ '@apply text-dark-primary': {},
6
+ '&[data-inverted="true"]': {
7
+ '@apply text-light-primary': {},
8
+ '.sk-logo-divider': {
9
+ '@apply border-inverted-divider': {},
10
+ },
11
+ },
12
+
13
+ '&-figure': {
14
+ '@apply w-full h-full': {},
15
+ },
16
+ '&[data-variant="service"]': {
17
+ '@apply flex-row gap-6': {},
18
+ '@apply w-auto h-[6rem]': {},
19
+ '@apply pb-4': {},
20
+ '.sk-logo-figure': {
21
+ '@apply w-auto h-[5.6rem]': {},
22
+ },
23
+ },
24
+ 'a:focus-within &': {
25
+ '@apply outline outline-2 outline-ring': {},
26
+ },
27
+ 'a &': {
28
+ '@apply no-underline': {},
29
+ },
30
+ 'a:hover &': {
31
+ '@apply underline': {},
32
+ },
33
+ '&-service-content': {
34
+ '@apply h-full w-max': {},
35
+ '@apply flex flex-col justify-center': {},
36
+ '@apply pl-2 pt-2 pr-8 pb-0': {},
37
+ },
38
+ '&-title': {
39
+ '@apply text-[2.2rem] leading-[2.8rem] font-header font-bold': {},
40
+ },
41
+ '&-subtitle': {
42
+ '@apply text-small font-normal block': {},
43
+ },
44
+ '&-divider': {
45
+ '@apply pt-8 pb-4': {},
46
+ },
47
+ },
48
+ });