@sk-web-gui/core 3.9.1 → 3.11.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 (287) hide show
  1. package/dist/cjs/aria-plugin.js +98 -43
  2. package/dist/cjs/aria-plugin.js.map +1 -1
  3. package/dist/cjs/base.js +55 -48
  4. package/dist/cjs/base.js.map +1 -1
  5. package/dist/cjs/colors.js +676 -599
  6. package/dist/cjs/colors.js.map +1 -1
  7. package/dist/cjs/components/accordion.js +203 -196
  8. package/dist/cjs/components/accordion.js.map +1 -1
  9. package/dist/cjs/components/ai/ai-corner-module.js +335 -278
  10. package/dist/cjs/components/ai/ai-corner-module.js.map +1 -1
  11. package/dist/cjs/components/ai/ai-feed.js +70 -63
  12. package/dist/cjs/components/ai/ai-feed.js.map +1 -1
  13. package/dist/cjs/components/ai/ai-service-module.js +218 -160
  14. package/dist/cjs/components/ai/ai-service-module.js.map +1 -1
  15. package/dist/cjs/components/ai/assistant-presentation.js +62 -55
  16. package/dist/cjs/components/ai/assistant-presentation.js.map +1 -1
  17. package/dist/cjs/components/ai/assistant-switch.js +54 -47
  18. package/dist/cjs/components/ai/assistant-switch.js.map +1 -1
  19. package/dist/cjs/components/ai/bubble.js +123 -66
  20. package/dist/cjs/components/ai/bubble.js.map +1 -1
  21. package/dist/cjs/components/ai/feedback.js +37 -30
  22. package/dist/cjs/components/ai/feedback.js.map +1 -1
  23. package/dist/cjs/components/ai/input-section.js +31 -24
  24. package/dist/cjs/components/ai/input-section.js.map +1 -1
  25. package/dist/cjs/components/ai/markdown-rendered.js +30 -23
  26. package/dist/cjs/components/ai/markdown-rendered.js.map +1 -1
  27. package/dist/cjs/components/ai/new-session-button.js +26 -19
  28. package/dist/cjs/components/ai/new-session-button.js.map +1 -1
  29. package/dist/cjs/components/ai/typing-bubble.js +28 -21
  30. package/dist/cjs/components/ai/typing-bubble.js.map +1 -1
  31. package/dist/cjs/components/ai/typing-sequence.js +87 -30
  32. package/dist/cjs/components/ai/typing-sequence.js.map +1 -1
  33. package/dist/cjs/components/avatar.js +101 -43
  34. package/dist/cjs/components/avatar.js.map +1 -1
  35. package/dist/cjs/components/badge.js +90 -32
  36. package/dist/cjs/components/badge.js.map +1 -1
  37. package/dist/cjs/components/breadcrumb.js +47 -27
  38. package/dist/cjs/components/breadcrumb.js.map +1 -1
  39. package/dist/cjs/components/button-group.js +35 -28
  40. package/dist/cjs/components/button-group.js.map +1 -1
  41. package/dist/cjs/components/button.js +290 -237
  42. package/dist/cjs/components/button.js.map +1 -1
  43. package/dist/cjs/components/callout.js +92 -35
  44. package/dist/cjs/components/callout.js.map +1 -1
  45. package/dist/cjs/components/card.js +273 -209
  46. package/dist/cjs/components/card.js.map +1 -1
  47. package/dist/cjs/components/checkbox.js +137 -113
  48. package/dist/cjs/components/checkbox.js.map +1 -1
  49. package/dist/cjs/components/chip.js +47 -40
  50. package/dist/cjs/components/chip.js.map +1 -1
  51. package/dist/cjs/components/code.js +19 -12
  52. package/dist/cjs/components/code.js.map +1 -1
  53. package/dist/cjs/components/combobox.js +97 -91
  54. package/dist/cjs/components/combobox.js.map +1 -1
  55. package/dist/cjs/components/cookie-consent.js +51 -46
  56. package/dist/cjs/components/cookie-consent.js.map +1 -1
  57. package/dist/cjs/components/dialog.js +78 -21
  58. package/dist/cjs/components/dialog.js.map +1 -1
  59. package/dist/cjs/components/divider.js +60 -53
  60. package/dist/cjs/components/divider.js.map +1 -1
  61. package/dist/cjs/components/dot.js +111 -56
  62. package/dist/cjs/components/dot.js.map +1 -1
  63. package/dist/cjs/components/file-upload.js +221 -214
  64. package/dist/cjs/components/file-upload.js.map +1 -1
  65. package/dist/cjs/components/filter.js +24 -17
  66. package/dist/cjs/components/filter.js.map +1 -1
  67. package/dist/cjs/components/footer.js +41 -34
  68. package/dist/cjs/components/footer.js.map +1 -1
  69. package/dist/cjs/components/forms.js +34 -27
  70. package/dist/cjs/components/forms.js.map +1 -1
  71. package/dist/cjs/components/header.js +38 -31
  72. package/dist/cjs/components/header.js.map +1 -1
  73. package/dist/cjs/components/icon.js +113 -55
  74. package/dist/cjs/components/icon.js.map +1 -1
  75. package/dist/cjs/components/input.js +285 -219
  76. package/dist/cjs/components/input.js.map +1 -1
  77. package/dist/cjs/components/kbd.js +17 -12
  78. package/dist/cjs/components/kbd.js.map +1 -1
  79. package/dist/cjs/components/label.js +93 -35
  80. package/dist/cjs/components/label.js.map +1 -1
  81. package/dist/cjs/components/link.js +59 -52
  82. package/dist/cjs/components/link.js.map +1 -1
  83. package/dist/cjs/components/list.js +63 -56
  84. package/dist/cjs/components/list.js.map +1 -1
  85. package/dist/cjs/components/logo.js +58 -51
  86. package/dist/cjs/components/logo.js.map +1 -1
  87. package/dist/cjs/components/menu-vertical.js +243 -204
  88. package/dist/cjs/components/menu-vertical.js.map +1 -1
  89. package/dist/cjs/components/menubar.js +100 -42
  90. package/dist/cjs/components/menubar.js.map +1 -1
  91. package/dist/cjs/components/modal.js +58 -51
  92. package/dist/cjs/components/modal.js.map +1 -1
  93. package/dist/cjs/components/pagination.js +108 -101
  94. package/dist/cjs/components/pagination.js.map +1 -1
  95. package/dist/cjs/components/popup-menu.js +148 -144
  96. package/dist/cjs/components/popup-menu.js.map +1 -1
  97. package/dist/cjs/components/progress-bar.js +80 -24
  98. package/dist/cjs/components/progress-bar.js.map +1 -1
  99. package/dist/cjs/components/progress-stepper.js +80 -73
  100. package/dist/cjs/components/progress-stepper.js.map +1 -1
  101. package/dist/cjs/components/radio.js +140 -134
  102. package/dist/cjs/components/radio.js.map +1 -1
  103. package/dist/cjs/components/search-field.js +44 -37
  104. package/dist/cjs/components/search-field.js.map +1 -1
  105. package/dist/cjs/components/select.js +256 -182
  106. package/dist/cjs/components/select.js.map +1 -1
  107. package/dist/cjs/components/snackbar.js +40 -33
  108. package/dist/cjs/components/snackbar.js.map +1 -1
  109. package/dist/cjs/components/spinner.js +80 -23
  110. package/dist/cjs/components/spinner.js.map +1 -1
  111. package/dist/cjs/components/switch.js +89 -66
  112. package/dist/cjs/components/switch.js.map +1 -1
  113. package/dist/cjs/components/table.js +297 -236
  114. package/dist/cjs/components/table.js.map +1 -1
  115. package/dist/cjs/components/tabs.js +124 -16
  116. package/dist/cjs/components/tabs.js.map +1 -1
  117. package/dist/cjs/components/tooltip.js +68 -61
  118. package/dist/cjs/components/tooltip.js.map +1 -1
  119. package/dist/cjs/components/user-menu.js +24 -17
  120. package/dist/cjs/components/user-menu.js.map +1 -1
  121. package/dist/cjs/components.js +377 -177
  122. package/dist/cjs/components.js.map +1 -1
  123. package/dist/cjs/data-plugin.js +64 -26
  124. package/dist/cjs/data-plugin.js.map +1 -1
  125. package/dist/cjs/fonts.js +17 -10
  126. package/dist/cjs/fonts.js.map +1 -1
  127. package/dist/cjs/index.js +36 -12
  128. package/dist/cjs/index.js.map +1 -1
  129. package/dist/cjs/plugin.js +136 -54
  130. package/dist/cjs/plugin.js.map +1 -1
  131. package/dist/cjs/preset.js +161 -25
  132. package/dist/cjs/preset.js.map +1 -1
  133. package/dist/cjs/theme.js +198 -137
  134. package/dist/cjs/theme.js.map +1 -1
  135. package/dist/cjs/units.js +412 -288
  136. package/dist/cjs/units.js.map +1 -1
  137. package/dist/cjs/with-opacity.js +16 -9
  138. package/dist/cjs/with-opacity.js.map +1 -1
  139. package/dist/esm/aria-plugin.js +83 -38
  140. package/dist/esm/aria-plugin.js.map +1 -1
  141. package/dist/esm/base.js +45 -44
  142. package/dist/esm/base.js.map +1 -1
  143. package/dist/esm/colors.js +667 -596
  144. package/dist/esm/colors.js.map +1 -1
  145. package/dist/esm/components/accordion.js +198 -195
  146. package/dist/esm/components/accordion.js.map +1 -1
  147. package/dist/esm/components/ai/ai-corner-module.js +327 -275
  148. package/dist/esm/components/ai/ai-corner-module.js.map +1 -1
  149. package/dist/esm/components/ai/ai-feed.js +63 -60
  150. package/dist/esm/components/ai/ai-feed.js.map +1 -1
  151. package/dist/esm/components/ai/ai-service-module.js +211 -167
  152. package/dist/esm/components/ai/ai-service-module.js.map +1 -1
  153. package/dist/esm/components/ai/assistant-presentation.js +54 -51
  154. package/dist/esm/components/ai/assistant-presentation.js.map +1 -1
  155. package/dist/esm/components/ai/assistant-switch.js +47 -44
  156. package/dist/esm/components/ai/assistant-switch.js.map +1 -1
  157. package/dist/esm/components/ai/bubble.js +112 -82
  158. package/dist/esm/components/ai/bubble.js.map +1 -1
  159. package/dist/esm/components/ai/feedback.js +29 -26
  160. package/dist/esm/components/ai/feedback.js.map +1 -1
  161. package/dist/esm/components/ai/input-section.js +24 -21
  162. package/dist/esm/components/ai/input-section.js.map +1 -1
  163. package/dist/esm/components/ai/markdown-rendered.js +23 -20
  164. package/dist/esm/components/ai/markdown-rendered.js.map +1 -1
  165. package/dist/esm/components/ai/new-session-button.js +19 -16
  166. package/dist/esm/components/ai/new-session-button.js.map +1 -1
  167. package/dist/esm/components/ai/typing-bubble.js +21 -18
  168. package/dist/esm/components/ai/typing-bubble.js.map +1 -1
  169. package/dist/esm/components/ai/typing-sequence.js +80 -32
  170. package/dist/esm/components/ai/typing-sequence.js.map +1 -1
  171. package/dist/esm/components/avatar.js +91 -41
  172. package/dist/esm/components/avatar.js.map +1 -1
  173. package/dist/esm/components/badge.js +80 -29
  174. package/dist/esm/components/badge.js.map +1 -1
  175. package/dist/esm/components/breadcrumb.js +38 -27
  176. package/dist/esm/components/breadcrumb.js.map +1 -1
  177. package/dist/esm/components/button-group.js +28 -25
  178. package/dist/esm/components/button-group.js.map +1 -1
  179. package/dist/esm/components/button.js +283 -255
  180. package/dist/esm/components/button.js.map +1 -1
  181. package/dist/esm/components/callout.js +82 -31
  182. package/dist/esm/components/callout.js.map +1 -1
  183. package/dist/esm/components/card.js +262 -235
  184. package/dist/esm/components/card.js.map +1 -1
  185. package/dist/esm/components/checkbox.js +130 -110
  186. package/dist/esm/components/checkbox.js.map +1 -1
  187. package/dist/esm/components/chip.js +40 -37
  188. package/dist/esm/components/chip.js.map +1 -1
  189. package/dist/esm/components/code.js +12 -9
  190. package/dist/esm/components/code.js.map +1 -1
  191. package/dist/esm/components/combobox.js +89 -87
  192. package/dist/esm/components/combobox.js.map +1 -1
  193. package/dist/esm/components/cookie-consent.js +43 -42
  194. package/dist/esm/components/cookie-consent.js.map +1 -1
  195. package/dist/esm/components/dialog.js +70 -18
  196. package/dist/esm/components/dialog.js.map +1 -1
  197. package/dist/esm/components/divider.js +52 -49
  198. package/dist/esm/components/divider.js.map +1 -1
  199. package/dist/esm/components/dot.js +104 -56
  200. package/dist/esm/components/dot.js.map +1 -1
  201. package/dist/esm/components/file-upload.js +214 -211
  202. package/dist/esm/components/file-upload.js.map +1 -1
  203. package/dist/esm/components/filter.js +17 -14
  204. package/dist/esm/components/filter.js.map +1 -1
  205. package/dist/esm/components/footer.js +33 -30
  206. package/dist/esm/components/footer.js.map +1 -1
  207. package/dist/esm/components/forms.js +27 -24
  208. package/dist/esm/components/forms.js.map +1 -1
  209. package/dist/esm/components/header.js +31 -28
  210. package/dist/esm/components/header.js.map +1 -1
  211. package/dist/esm/components/icon.js +103 -54
  212. package/dist/esm/components/icon.js.map +1 -1
  213. package/dist/esm/components/input.js +278 -216
  214. package/dist/esm/components/input.js.map +1 -1
  215. package/dist/esm/components/kbd.js +10 -9
  216. package/dist/esm/components/kbd.js.map +1 -1
  217. package/dist/esm/components/label.js +83 -35
  218. package/dist/esm/components/label.js.map +1 -1
  219. package/dist/esm/components/link.js +52 -49
  220. package/dist/esm/components/link.js.map +1 -1
  221. package/dist/esm/components/list.js +55 -52
  222. package/dist/esm/components/list.js.map +1 -1
  223. package/dist/esm/components/logo.js +51 -48
  224. package/dist/esm/components/logo.js.map +1 -1
  225. package/dist/esm/components/menu-vertical.js +233 -199
  226. package/dist/esm/components/menu-vertical.js.map +1 -1
  227. package/dist/esm/components/menubar.js +92 -45
  228. package/dist/esm/components/menubar.js.map +1 -1
  229. package/dist/esm/components/modal.js +50 -47
  230. package/dist/esm/components/modal.js.map +1 -1
  231. package/dist/esm/components/pagination.js +101 -98
  232. package/dist/esm/components/pagination.js.map +1 -1
  233. package/dist/esm/components/popup-menu.js +142 -142
  234. package/dist/esm/components/popup-menu.js.map +1 -1
  235. package/dist/esm/components/progress-bar.js +69 -21
  236. package/dist/esm/components/progress-bar.js.map +1 -1
  237. package/dist/esm/components/progress-stepper.js +72 -69
  238. package/dist/esm/components/progress-stepper.js.map +1 -1
  239. package/dist/esm/components/radio.js +132 -130
  240. package/dist/esm/components/radio.js.map +1 -1
  241. package/dist/esm/components/search-field.js +37 -34
  242. package/dist/esm/components/search-field.js.map +1 -1
  243. package/dist/esm/components/select.js +250 -180
  244. package/dist/esm/components/select.js.map +1 -1
  245. package/dist/esm/components/snackbar.js +33 -30
  246. package/dist/esm/components/snackbar.js.map +1 -1
  247. package/dist/esm/components/spinner.js +70 -18
  248. package/dist/esm/components/spinner.js.map +1 -1
  249. package/dist/esm/components/switch.js +80 -70
  250. package/dist/esm/components/switch.js.map +1 -1
  251. package/dist/esm/components/table.js +292 -236
  252. package/dist/esm/components/table.js.map +1 -1
  253. package/dist/esm/components/tabs.js +118 -14
  254. package/dist/esm/components/tabs.js.map +1 -1
  255. package/dist/esm/components/tooltip.js +61 -58
  256. package/dist/esm/components/tooltip.js.map +1 -1
  257. package/dist/esm/components/user-menu.js +17 -14
  258. package/dist/esm/components/user-menu.js.map +1 -1
  259. package/dist/esm/components.js +404 -206
  260. package/dist/esm/components.js.map +1 -1
  261. package/dist/esm/data-plugin.js +49 -23
  262. package/dist/esm/data-plugin.js.map +1 -1
  263. package/dist/esm/fonts.js +7 -6
  264. package/dist/esm/fonts.js.map +1 -1
  265. package/dist/esm/index.js +5 -4
  266. package/dist/esm/index.js.map +1 -1
  267. package/dist/esm/plugin.js +114 -46
  268. package/dist/esm/plugin.js.map +1 -1
  269. package/dist/esm/preset.js +104 -17
  270. package/dist/esm/preset.js.map +1 -1
  271. package/dist/esm/theme.js +187 -139
  272. package/dist/esm/theme.js.map +1 -1
  273. package/dist/esm/units.js +402 -284
  274. package/dist/esm/units.js.map +1 -1
  275. package/dist/esm/with-opacity.js +6 -7
  276. package/dist/esm/with-opacity.js.map +1 -1
  277. package/dist/types/colors.d.ts +70 -0
  278. package/dist/types/components/checkbox.d.ts +23 -7
  279. package/dist/types/components/combobox.d.ts +1 -2
  280. package/dist/types/components/input.d.ts +29 -34
  281. package/dist/types/components/popup-menu.d.ts +3 -6
  282. package/dist/types/components/radio.d.ts +27 -29
  283. package/dist/types/components/select.d.ts +24 -23
  284. package/dist/types/components/switch.d.ts +9 -8
  285. package/dist/types/components/tabs.d.ts +45 -3
  286. package/dist/types/preset.d.ts +1 -1
  287. package/package.json +17 -14
@@ -1,36 +1,87 @@
1
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
- export var Callout = colors => ({
3
- '.sk-callout': _extends({
4
- '@apply inline-flex': {},
5
- '@apply p-4': {}
6
- }, colors.reduce((styles, color) => _extends({}, styles, {
7
- ["&[data-color=\"" + color + "\"]"]: {
8
- '.sk-callout-content': {
9
- ["@apply bg-" + color + "-surface-primary text-" + color + "-text-secondary"]: {}
10
- },
11
- '&[data-inverted="true"]': {
12
- '.sk-callout-content': {
13
- '@apply text-inverted-light-primary': {},
14
- ["@apply bg-inverted-" + color + "-surface-primary text-inverted-" + color + "-text-secondary"]: {}
1
+ function _define_property(obj, key, value) {
2
+ if (key in obj) {
3
+ Object.defineProperty(obj, key, {
4
+ value: value,
5
+ enumerable: true,
6
+ configurable: true,
7
+ writable: true
8
+ });
9
+ } else {
10
+ obj[key] = value;
11
+ }
12
+ return obj;
13
+ }
14
+ function _object_spread(target) {
15
+ for(var i = 1; i < arguments.length; i++){
16
+ var source = arguments[i] != null ? arguments[i] : {};
17
+ var ownKeys = Object.keys(source);
18
+ if (typeof Object.getOwnPropertySymbols === "function") {
19
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
+ }));
15
22
  }
16
- }
23
+ ownKeys.forEach(function(key) {
24
+ _define_property(target, key, source[key]);
25
+ });
17
26
  }
18
- }), {}), {
19
- "&[data-color='tertiary']": {
20
- '.sk-callout-content': {
21
- '@apply bg-primary-surface': {}
22
- },
23
- '&[data-inverted="true"]': {
24
- '.sk-callout-content': {
25
- '@apply text-inverted-light-primary': {},
26
- '@apply bg-tertiary-surface dark:bg-inverted-primary-surface': {}
27
+ return target;
28
+ }
29
+ function ownKeys(object, enumerableOnly) {
30
+ var keys = Object.keys(object);
31
+ if (Object.getOwnPropertySymbols) {
32
+ var symbols = Object.getOwnPropertySymbols(object);
33
+ if (enumerableOnly) {
34
+ symbols = symbols.filter(function(sym) {
35
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
36
+ });
27
37
  }
28
- }
29
- },
30
- '&-content': {
31
- '@apply rounded-full': {},
32
- '@apply h-8 w-8': {}
38
+ keys.push.apply(keys, symbols);
39
+ }
40
+ return keys;
41
+ }
42
+ function _object_spread_props(target, source) {
43
+ source = source != null ? source : {};
44
+ if (Object.getOwnPropertyDescriptors) {
45
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
46
+ } else {
47
+ ownKeys(Object(source)).forEach(function(key) {
48
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
49
+ });
33
50
  }
34
- })
35
- });
51
+ return target;
52
+ }
53
+ export var Callout = function(colors) {
54
+ return {
55
+ '.sk-callout': _object_spread_props(_object_spread({
56
+ '@apply inline-flex': {},
57
+ '@apply p-4': {}
58
+ }, colors.reduce(function(styles, color) {
59
+ return _object_spread_props(_object_spread({}, styles), _define_property({}, '&[data-color="'.concat(color, '"]'), {
60
+ '.sk-callout-content': _define_property({}, "@apply bg-".concat(color, "-surface-primary text-").concat(color, "-text-secondary"), {}),
61
+ '&[data-inverted="true"]': {
62
+ '.sk-callout-content': _define_property({
63
+ '@apply text-inverted-light-primary': {}
64
+ }, "@apply bg-inverted-".concat(color, "-surface-primary text-inverted-").concat(color, "-text-secondary"), {})
65
+ }
66
+ }));
67
+ }, {})), {
68
+ "&[data-color='tertiary']": {
69
+ '.sk-callout-content': {
70
+ '@apply bg-primary-surface': {}
71
+ },
72
+ '&[data-inverted="true"]': {
73
+ '.sk-callout-content': {
74
+ '@apply text-inverted-light-primary': {},
75
+ '@apply bg-tertiary-surface dark:bg-inverted-primary-surface': {}
76
+ }
77
+ }
78
+ },
79
+ '&-content': {
80
+ '@apply rounded-full': {},
81
+ '@apply h-8 w-8': {}
82
+ }
83
+ })
84
+ };
85
+ };
86
+
36
87
  //# sourceMappingURL=callout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"callout.js","names":["Callout","colors","_extends","reduce","styles","color"],"sources":["../../../src/components/callout.ts"],"sourcesContent":["export const Callout = (colors: string[]) => ({\r\n '.sk-callout': {\r\n '@apply inline-flex': {},\r\n '@apply p-4': {},\r\n\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n [`&[data-color=\"${color}\"]`]: {\r\n '.sk-callout-content': {\r\n [`@apply bg-${color}-surface-primary text-${color}-text-secondary`]: {},\r\n },\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '.sk-callout-content': {\r\n '@apply text-inverted-light-primary': {},\r\n [`@apply bg-inverted-${color}-surface-primary text-inverted-${color}-text-secondary`]: {},\r\n },\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n\r\n \"&[data-color='tertiary']\": {\r\n '.sk-callout-content': {\r\n '@apply bg-primary-surface': {},\r\n },\r\n '&[data-inverted=\"true\"]': {\r\n '.sk-callout-content': {\r\n '@apply text-inverted-light-primary': {},\r\n '@apply bg-tertiary-surface dark:bg-inverted-primary-surface': {},\r\n },\r\n },\r\n },\r\n\r\n '&-content': {\r\n '@apply rounded-full': {},\r\n '@apply h-8 w-8': {},\r\n },\r\n },\r\n});\r\n"],"mappings":";AAAA,OAAO,IAAMA,OAAO,GAAIC,MAAgB,KAAM;EAC5C,aAAa,EAAAC,QAAA;IACX,oBAAoB,EAAE,CAAC,CAAC;IACxB,YAAY,EAAE,CAAC;EAAC,GAEbD,MAAM,CAACE,MAAM,CACd,CAACC,MAAM,EAAEC,KAAK,KAAAH,QAAA,KACTE,MAAM;IACT,qBAAkBC,KAAK,WAAO;MAC5B,qBAAqB,EAAE;QACrB,gBAAcA,KAAK,+BAA0BA,KAAK,uBAAoB,CAAC;MACzE,CAAC;MAED,yBAAyB,EAAE;QACzB,qBAAqB,EAAE;UACrB,oCAAoC,EAAE,CAAC,CAAC;UACxC,yBAAuBA,KAAK,uCAAkCA,KAAK,uBAAoB,CAAC;QAC1F;MACF;IACF;EAAC,EACD,EACF,CAAC,CACH,CAAC;IAED,0BAA0B,EAAE;MAC1B,qBAAqB,EAAE;QACrB,2BAA2B,EAAE,CAAC;MAChC,CAAC;MACD,yBAAyB,EAAE;QACzB,qBAAqB,EAAE;UACrB,oCAAoC,EAAE,CAAC,CAAC;UACxC,6DAA6D,EAAE,CAAC;QAClE;MACF;IACF,CAAC;IAED,WAAW,EAAE;MACX,qBAAqB,EAAE,CAAC,CAAC;MACzB,gBAAgB,EAAE,CAAC;IACrB;EAAC;AAEL,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"sources":["../../../src/components/callout.ts"],"sourcesContent":["export const Callout = (colors: string[]) => ({\r\n '.sk-callout': {\r\n '@apply inline-flex': {},\r\n '@apply p-4': {},\r\n\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n [`&[data-color=\"${color}\"]`]: {\r\n '.sk-callout-content': {\r\n [`@apply bg-${color}-surface-primary text-${color}-text-secondary`]: {},\r\n },\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '.sk-callout-content': {\r\n '@apply text-inverted-light-primary': {},\r\n [`@apply bg-inverted-${color}-surface-primary text-inverted-${color}-text-secondary`]: {},\r\n },\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n\r\n \"&[data-color='tertiary']\": {\r\n '.sk-callout-content': {\r\n '@apply bg-primary-surface': {},\r\n },\r\n '&[data-inverted=\"true\"]': {\r\n '.sk-callout-content': {\r\n '@apply text-inverted-light-primary': {},\r\n '@apply bg-tertiary-surface dark:bg-inverted-primary-surface': {},\r\n },\r\n },\r\n },\r\n\r\n '&-content': {\r\n '@apply rounded-full': {},\r\n '@apply h-8 w-8': {},\r\n },\r\n },\r\n});\r\n"],"names":["Callout","colors","reduce","styles","color"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,IAAMA,UAAU,SAACC;WAAsB;QAC5C,eAAe;YACb,sBAAsB,CAAC;YACvB,cAAc,CAAC;WAEZA,OAAOC,MAAM,CACd,SAACC,QAAQC;mBAAW,wCACfD,SACH,qBAAC,AAAC,iBAAsB,OAANC,OAAM,OAAM;gBAC5B,uBACE,qBAAC,AAAC,aAA2CA,OAA/BA,OAAM,2BAA+B,OAANA,OAAM,oBAAmB,CAAC;gBAGzE,2BAA2B;oBACzB,uBAEE;wBADA,sCAAsC,CAAC;uBACtC,AAAC,sBAA4DA,OAAvCA,OAAM,mCAAuC,OAANA,OAAM,oBAAmB,CAAC;gBAE5F;YACF;WAEF,CAAC;YAGH,4BAA4B;gBAC1B,uBAAuB;oBACrB,6BAA6B,CAAC;gBAChC;gBACA,2BAA2B;oBACzB,uBAAuB;wBACrB,sCAAsC,CAAC;wBACvC,+DAA+D,CAAC;oBAClE;gBACF;YACF;YAEA,aAAa;gBACX,uBAAuB,CAAC;gBACxB,kBAAkB,CAAC;YACrB;;IAEJ;EAAG"}
@@ -1,246 +1,273 @@
1
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
- export var Card = colors => ({
3
- '.sk-card': _extends({
4
- '@apply text-base': {},
5
- '@apply bg-white relative rounded-b-cards rounded-cards': {},
6
- '@apply flex flex-col': {},
7
- '@apply no-underline hover:no-underline': {},
8
- '@apply h-full': {},
9
- '&-wrapper': {
10
- '@apply grid': {}
11
- },
12
- '&-image': {
13
- '@apply object-cover grow': {},
14
- '@apply rounded-t-cards': {}
15
- },
16
- '&-body': {
17
- '@apply px-24 pb-24 pt-16 rounded-b-cards': {},
18
- '@apply shrink': {},
19
- '&-wrapper': {
20
- '@apply flex': {}
21
- },
22
- '&-meta': {
23
- '@apply flex space-x-12 mt-16 text-base': {},
24
- span: {
25
- '@apply flex space-x-4 items-center': {},
26
- time: {
27
- '@apply h-24': {}
28
- }
29
- },
30
- '&.sk-card-image': {
31
- '@apply min-h-[12.5em] max-h-[20em]': {}
32
- }
33
- },
34
- '&-header': {
35
- 'h1, h2, h3, h4, h5, h6, h7, a': {
36
- '@apply line-clamp-1 text-h3-md text-dark-primary mt-16': {}
37
- },
38
- span: {
39
- '@apply pl-12': {}
1
+ function _define_property(obj, key, value) {
2
+ if (key in obj) {
3
+ Object.defineProperty(obj, key, {
4
+ value: value,
5
+ enumerable: true,
6
+ configurable: true,
7
+ writable: true
8
+ });
9
+ } else {
10
+ obj[key] = value;
11
+ }
12
+ return obj;
13
+ }
14
+ function _object_spread(target) {
15
+ for(var i = 1; i < arguments.length; i++){
16
+ var source = arguments[i] != null ? arguments[i] : {};
17
+ var ownKeys = Object.keys(source);
18
+ if (typeof Object.getOwnPropertySymbols === "function") {
19
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
+ }));
40
22
  }
41
- },
42
- '&-content': {
43
- '@apply w-full': {},
44
- 'p, a': {
45
- '@apply line-clamp-3 m-0 pt-8 text-base text-body': {}
23
+ ownKeys.forEach(function(key) {
24
+ _define_property(target, key, source[key]);
25
+ });
26
+ }
27
+ return target;
28
+ }
29
+ function ownKeys(object, enumerableOnly) {
30
+ var keys = Object.keys(object);
31
+ if (Object.getOwnPropertySymbols) {
32
+ var symbols = Object.getOwnPropertySymbols(object);
33
+ if (enumerableOnly) {
34
+ symbols = symbols.filter(function(sym) {
35
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
36
+ });
46
37
  }
47
- },
48
- '&-icon': {
49
- '@apply hidden': {}
50
- }
38
+ keys.push.apply(keys, symbols);
51
39
  }
52
- }, colors.reduce((styles, color) => _extends({}, styles, {
53
- '&[data-color="mono"], &[data-color="tertiary"]': {
54
- '@apply border-solid border-1': {},
55
- '@apply border-primitives-overlay-darken-5 dark:border-primitives-overlay-lighten-5': {},
56
- '@apply bg-primitives-gray-lightest dark:bg-primitives-gray-800': {},
57
- '.sk-card-body-meta': {
58
- '@apply text-dark-secondary': {}
59
- },
60
- '.sk-card-body-icon': {
61
- '@apply bg-primitives-overlay-darken-9 dark:bg-primitives-overlay-lighten-10': {},
62
- '@apply text-primitives-gray-lightest dark:text-primitives-overlay-darken-9': {},
63
- '@apply hover:bg-primitives-overlay-darken-10 dark:hover:bg-primitives-gray-lightest': {}
64
- },
65
- // inverted.
66
- ["&[data-inverted=\"true\"]"]: {
67
- '@apply bg-primitives-gray-800': {},
68
- '.sk-card-body': {
69
- // Meta
70
- '&-meta': {
71
- span: {
72
- '@apply text-light-secondary': {}
73
- }
74
- },
75
- // header
76
- '&-header': {
77
- 'h1, h2, h3, h4, h5, h6, h7, a': {
78
- ["@apply text-light-primary"]: {}
79
- }
80
- },
81
- // Content
82
- '&-content': {
83
- 'p, a': {
84
- ["@apply text-light-secondary"]: {}
40
+ return keys;
41
+ }
42
+ function _object_spread_props(target, source) {
43
+ source = source != null ? source : {};
44
+ if (Object.getOwnPropertyDescriptors) {
45
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
46
+ } else {
47
+ ownKeys(Object(source)).forEach(function(key) {
48
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
49
+ });
50
+ }
51
+ return target;
52
+ }
53
+ export var Card = function(colors) {
54
+ return {
55
+ '.sk-card': _object_spread_props(_object_spread({
56
+ '@apply text-base': {},
57
+ '@apply bg-white relative rounded-b-cards rounded-cards': {},
58
+ '@apply flex flex-col': {},
59
+ '@apply no-underline hover:no-underline': {},
60
+ '@apply h-full': {},
61
+ '&-wrapper': {
62
+ '@apply grid': {}
63
+ },
64
+ '&-image': {
65
+ '@apply object-cover grow': {},
66
+ '@apply rounded-t-cards': {}
67
+ },
68
+ '&-body': {
69
+ '@apply px-24 pb-24 pt-16 rounded-b-cards': {},
70
+ '@apply shrink': {},
71
+ '&-wrapper': {
72
+ '@apply flex': {}
73
+ },
74
+ '&-meta': {
75
+ '@apply flex space-x-12 mt-16 text-base': {},
76
+ span: {
77
+ '@apply flex space-x-4 items-center': {},
78
+ time: {
79
+ '@apply h-24': {}
80
+ }
81
+ },
82
+ '&.sk-card-image': {
83
+ '@apply min-h-[12.5em] max-h-[20em]': {}
84
+ }
85
+ },
86
+ '&-header': {
87
+ 'h1, h2, h3, h4, h5, h6, h7, a': {
88
+ '@apply line-clamp-1 text-h3-md text-dark-primary mt-16': {}
89
+ },
90
+ span: {
91
+ '@apply pl-12': {}
92
+ }
93
+ },
94
+ '&-content': {
95
+ '@apply w-full': {},
96
+ 'p, a': {
97
+ '@apply line-clamp-3 m-0 pt-8 text-base text-body': {}
98
+ }
99
+ },
100
+ '&-icon': {
101
+ '@apply hidden': {}
102
+ }
85
103
  }
86
- },
87
- '.sk-card-body-icon': {
88
- '@apply bg-primitives-overlay-lighten-10 text-primitives-gray-900': {},
89
- '@apply hover:bg-primitives-gray-lightest': {}
90
- }
91
- }
92
- }
93
- },
94
- '&[data-color="tertiary"]': {
95
- '@apply border-solid border-1': {},
96
- '@apply border-primitives-overlay-darken-5 dark:border-primitives-overlay-lighten-5': {},
97
- '@apply bg-primitives-gray-50 dark:bg-primitives-gray-700': {}
98
- },
99
- ["&[data-color=\"" + color + "\"]"]: {
100
- // card
101
- ["@apply bg-" + color + "-surface-primary-hover"]: {},
102
- // clickable
103
- '&.sk-card-use-hover-effect': {
104
- // hover
105
- ["@apply hover:cursor-pointer hover:bg-" + color + "-surface-primary"]: {}
106
- },
107
- // Meta
108
- '.sk-card-body': {
109
- '&-meta': {
110
- span: {
111
- '@apply text-light-secondary': {}
112
- }
113
- },
114
- // header
115
- '&-header': {
116
- 'h1, h2, h3, h4, h5, h6, h7, a': {
117
- ["@apply text-light-primary"]: {}
118
- }
119
- },
120
- // Content
121
- '&-content': {
122
- 'p, a': {
123
- ["@apply text-light-secondary"]: {}
124
- }
125
- }
126
- },
127
- // inverted.
128
- ["&[data-inverted=\"true\"]"]: {
129
- // card
130
- ["@apply bg-" + color + "-surface-accent-hover"]: {},
131
- // clickable
132
- '&.sk-card-use-hover-effect': {
133
- // hover
134
- ["@apply hover:cursor-pointer hover:bg-" + color + "-surface-accent"]: {}
135
- },
136
- '.sk-card-body': {
137
- // Meta
138
- '&-meta': {
139
- span: {
140
- '@apply text-dark-secondary': {}
104
+ }, colors.reduce(function(styles, color) {
105
+ var _obj, _obj1;
106
+ return _object_spread_props(_object_spread({}, styles), _define_property({
107
+ '&[data-color="mono"], &[data-color="tertiary"]': // inverted.
108
+ _define_property({
109
+ '@apply border-solid border-1': {},
110
+ '@apply border-primitives-overlay-darken-5 dark:border-primitives-overlay-lighten-5': {},
111
+ '@apply bg-primitives-gray-lightest dark:bg-primitives-gray-800': {},
112
+ '.sk-card-body-meta': {
113
+ '@apply text-dark-secondary': {}
114
+ },
115
+ '.sk-card-body-icon': {
116
+ '@apply bg-primitives-overlay-darken-9 dark:bg-primitives-overlay-lighten-10': {},
117
+ '@apply text-primitives-gray-lightest dark:text-primitives-overlay-darken-9': {},
118
+ '@apply hover:bg-primitives-overlay-darken-10 dark:hover:bg-primitives-gray-lightest': {}
119
+ }
120
+ }, '&[data-inverted="true"]', {
121
+ '@apply bg-primitives-gray-800': {},
122
+ '.sk-card-body': {
123
+ // Meta
124
+ '&-meta': {
125
+ span: {
126
+ '@apply text-light-secondary': {}
127
+ }
128
+ },
129
+ // header
130
+ '&-header': {
131
+ 'h1, h2, h3, h4, h5, h6, h7, a': _define_property({}, "@apply text-light-primary", {})
132
+ },
133
+ // Content
134
+ '&-content': {
135
+ 'p, a': _define_property({}, "@apply text-light-secondary", {})
136
+ },
137
+ '.sk-card-body-icon': {
138
+ '@apply bg-primitives-overlay-lighten-10 text-primitives-gray-900': {},
139
+ '@apply hover:bg-primitives-gray-lightest': {}
140
+ }
141
+ }
142
+ }),
143
+ '&[data-color="tertiary"]': {
144
+ '@apply border-solid border-1': {},
145
+ '@apply border-primitives-overlay-darken-5 dark:border-primitives-overlay-lighten-5': {},
146
+ '@apply bg-primitives-gray-50 dark:bg-primitives-gray-700': {}
147
+ }
148
+ }, '&[data-color="'.concat(color, '"]'), (_obj1 = {}, // card
149
+ _define_property(_obj1, "@apply bg-".concat(color, "-surface-primary-hover"), {}), // clickable
150
+ _define_property(_obj1, '&.sk-card-use-hover-effect', // hover
151
+ _define_property({}, "@apply hover:cursor-pointer hover:bg-".concat(color, "-surface-primary"), {})), // Meta
152
+ _define_property(_obj1, '.sk-card-body', {
153
+ '&-meta': {
154
+ span: {
155
+ '@apply text-light-secondary': {}
156
+ }
157
+ },
158
+ // header
159
+ '&-header': {
160
+ 'h1, h2, h3, h4, h5, h6, h7, a': _define_property({}, "@apply text-light-primary", {})
161
+ },
162
+ // Content
163
+ '&-content': {
164
+ 'p, a': _define_property({}, "@apply text-light-secondary", {})
165
+ }
166
+ }), _define_property(_obj1, '&[data-inverted="true"]', (_obj = {}, // card
167
+ _define_property(_obj, "@apply bg-".concat(color, "-surface-accent-hover"), {}), // clickable
168
+ _define_property(_obj, '&.sk-card-use-hover-effect', // hover
169
+ _define_property({}, "@apply hover:cursor-pointer hover:bg-".concat(color, "-surface-accent"), {})), _define_property(_obj, '.sk-card-body', {
170
+ // Meta
171
+ '&-meta': {
172
+ span: {
173
+ '@apply text-dark-secondary': {}
174
+ }
175
+ },
176
+ // header
177
+ '&-header': {
178
+ 'h1, h2, h3, h4, h5, h6, h7, a': _define_property({}, "@apply text-dark-primary", {})
179
+ },
180
+ // Content
181
+ '&-content': {
182
+ 'p, a': _define_property({}, "@apply text-dark-secondary", {})
183
+ }
184
+ }), _obj)), _obj1)));
185
+ }, {})), _define_property({
186
+ // clickable
187
+ '&.sk-card-use-hover-effect': {
188
+ //Hide and show of icon
189
+ '.sk-card-body-icon': {
190
+ '@apply inline-flex': {},
191
+ '@apply mt-auto mb-auto mr-24': {}
192
+ }
141
193
  }
142
- },
143
- // header
144
- '&-header': {
145
- 'h1, h2, h3, h4, h5, h6, h7, a': {
146
- ["@apply text-dark-primary"]: {}
194
+ }, '&[data-layout="horizontal"]', {
195
+ '@apply flex-row h-full': {},
196
+ '.sk-card': {
197
+ '&-image': {
198
+ '@apply h-full w-[8em]': {},
199
+ '@apply float-left': {},
200
+ '@apply rounded-none rounded-l-cards grow-0': {}
201
+ },
202
+ '&-body': {
203
+ '@apply w-full': {},
204
+ '@apply border-none': {},
205
+ '&-wrapper': {
206
+ '@apply w-full': {}
207
+ },
208
+ '&-content': {
209
+ 'p, a': {
210
+ '@apply text-small': {}
211
+ }
212
+ },
213
+ '&-meta': {
214
+ '@apply hidden': {}
215
+ }
216
+ }
147
217
  }
148
- },
149
- // Content
150
- '&-content': {
151
- 'p, a': {
152
- ["@apply text-dark-secondary"]: {}
218
+ })),
219
+ '.sk-card-link': {
220
+ '@apply hover:cursor-pointer': {},
221
+ '&::after': {
222
+ content: "''",
223
+ position: 'absolute',
224
+ left: '0',
225
+ top: '0',
226
+ right: '0',
227
+ bottom: '0'
153
228
  }
154
- }
155
- }
156
- }
157
- }
158
- }), {}), {
159
- // clickable
160
- '&.sk-card-use-hover-effect': {
161
- //Hide and show of icon
162
- '.sk-card-body-icon': {
163
- '@apply inline-flex': {},
164
- '@apply mt-auto mb-auto mr-24': {}
165
- }
166
- },
167
- ["&[data-layout=\"horizontal\"]"]: {
168
- '@apply flex-row h-full': {},
169
- '.sk-card': {
170
- '&-image': {
171
- '@apply h-full w-[8em]': {},
172
- '@apply float-left': {},
173
- '@apply rounded-none rounded-l-cards grow-0': {}
174
229
  },
175
- '&-body': {
176
- '@apply w-full': {},
177
- '@apply border-none': {},
178
- '&-wrapper': {
179
- '@apply w-full': {}
180
- },
181
- '&-content': {
182
- 'p, a': {
183
- '@apply text-small': {}
184
- }
185
- },
186
- '&-meta': {
187
- '@apply hidden': {}
188
- }
189
- }
190
- }
191
- }
192
- }),
193
- '.sk-card-link': {
194
- '@apply hover:cursor-pointer': {},
195
- '&::after': {
196
- content: "''",
197
- position: 'absolute',
198
- left: '0',
199
- top: '0',
200
- right: '0',
201
- bottom: '0'
202
- }
203
- },
204
- /**
230
+ /**
205
231
  * Meta card
206
- */
207
- '.sk-meta-card': {
208
- '@apply no-underline hover:no-underline': {},
209
- '@apply flex bg-vattjom-surface-accent': {},
210
- '@apply p-14 rounded-groups': {},
211
- '&[data-color="mono"]': {
212
- '@apply bg-primitives-overlay-darken-1 dark:bg-primitives-overlay-lighten-1': {}
213
- },
214
- '&[data-color="vattjom"]': {
215
- '@apply bg-vattjom-background-200': {}
216
- },
217
- '&-text-icon': {
218
- '@apply mr-12 rounded-12 p-8': {},
219
- '@apply bg-primitives-gray-lightest dark:bg-primitives-gray-800': {},
220
- '@apply text-dark': {},
221
- svg: {
222
- height: 'unset',
223
- width: 'unset'
224
- }
225
- },
226
- '&-body': {
227
- '&-header': {
228
- 'h1, h2, h3, h4, h5, h6, h7, a, p': {
229
- '@apply mt-6 text-base line-clamp-1': {},
230
- '@apply text-dark-primary': {}
231
- }
232
- },
233
- '&-content': {
234
- 'p, a': {
235
- '@apply text-primitives-gray-700 dark:text-primitives-gray-200 text-small': {},
236
- '@apply text-dark-secondary line-clamp-1': {}
232
+ */ '.sk-meta-card': {
233
+ '@apply no-underline hover:no-underline': {},
234
+ '@apply flex bg-vattjom-surface-accent': {},
235
+ '@apply p-14 rounded-groups': {},
236
+ '&[data-color="mono"]': {
237
+ '@apply bg-primitives-overlay-darken-1 dark:bg-primitives-overlay-lighten-1': {}
238
+ },
239
+ '&[data-color="vattjom"]': {
240
+ '@apply bg-vattjom-background-200': {}
241
+ },
242
+ '&-text-icon': {
243
+ '@apply mr-12 rounded-12 p-8': {},
244
+ '@apply bg-primitives-gray-lightest dark:bg-primitives-gray-800': {},
245
+ '@apply text-dark': {},
246
+ svg: {
247
+ height: 'unset',
248
+ width: 'unset'
249
+ }
250
+ },
251
+ '&-body': {
252
+ '&-header': {
253
+ 'h1, h2, h3, h4, h5, h6, h7, a, p': {
254
+ '@apply mt-6 text-base line-clamp-1': {},
255
+ '@apply text-dark-primary': {}
256
+ }
257
+ },
258
+ '&-content': {
259
+ 'p, a': {
260
+ '@apply text-primitives-gray-700 dark:text-primitives-gray-200 text-small': {},
261
+ '@apply text-dark-secondary line-clamp-1': {}
262
+ }
263
+ }
264
+ },
265
+ '&-external-link-icon': {
266
+ '@apply ml-auto h-32 w-32': {},
267
+ '@apply p-6 text-dark': {}
268
+ }
237
269
  }
238
- }
239
- },
240
- '&-external-link-icon': {
241
- '@apply ml-auto h-32 w-32': {},
242
- '@apply p-6 text-dark': {}
243
- }
244
- }
245
- });
270
+ };
271
+ };
272
+
246
273
  //# sourceMappingURL=card.js.map