@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.
- package/dist/cjs/aria-plugin.js +98 -43
- package/dist/cjs/aria-plugin.js.map +1 -1
- package/dist/cjs/base.js +55 -48
- package/dist/cjs/base.js.map +1 -1
- package/dist/cjs/colors.js +676 -599
- package/dist/cjs/colors.js.map +1 -1
- package/dist/cjs/components/accordion.js +203 -196
- package/dist/cjs/components/accordion.js.map +1 -1
- package/dist/cjs/components/ai/ai-corner-module.js +335 -278
- package/dist/cjs/components/ai/ai-corner-module.js.map +1 -1
- package/dist/cjs/components/ai/ai-feed.js +70 -63
- package/dist/cjs/components/ai/ai-feed.js.map +1 -1
- package/dist/cjs/components/ai/ai-service-module.js +218 -160
- package/dist/cjs/components/ai/ai-service-module.js.map +1 -1
- package/dist/cjs/components/ai/assistant-presentation.js +62 -55
- package/dist/cjs/components/ai/assistant-presentation.js.map +1 -1
- package/dist/cjs/components/ai/assistant-switch.js +54 -47
- package/dist/cjs/components/ai/assistant-switch.js.map +1 -1
- package/dist/cjs/components/ai/bubble.js +123 -66
- package/dist/cjs/components/ai/bubble.js.map +1 -1
- package/dist/cjs/components/ai/feedback.js +37 -30
- package/dist/cjs/components/ai/feedback.js.map +1 -1
- package/dist/cjs/components/ai/input-section.js +31 -24
- package/dist/cjs/components/ai/input-section.js.map +1 -1
- package/dist/cjs/components/ai/markdown-rendered.js +30 -23
- package/dist/cjs/components/ai/markdown-rendered.js.map +1 -1
- package/dist/cjs/components/ai/new-session-button.js +26 -19
- package/dist/cjs/components/ai/new-session-button.js.map +1 -1
- package/dist/cjs/components/ai/typing-bubble.js +28 -21
- package/dist/cjs/components/ai/typing-bubble.js.map +1 -1
- package/dist/cjs/components/ai/typing-sequence.js +87 -30
- package/dist/cjs/components/ai/typing-sequence.js.map +1 -1
- package/dist/cjs/components/avatar.js +101 -43
- package/dist/cjs/components/avatar.js.map +1 -1
- package/dist/cjs/components/badge.js +90 -32
- package/dist/cjs/components/badge.js.map +1 -1
- package/dist/cjs/components/breadcrumb.js +47 -27
- package/dist/cjs/components/breadcrumb.js.map +1 -1
- package/dist/cjs/components/button-group.js +35 -28
- package/dist/cjs/components/button-group.js.map +1 -1
- package/dist/cjs/components/button.js +290 -237
- package/dist/cjs/components/button.js.map +1 -1
- package/dist/cjs/components/callout.js +92 -35
- package/dist/cjs/components/callout.js.map +1 -1
- package/dist/cjs/components/card.js +273 -209
- package/dist/cjs/components/card.js.map +1 -1
- package/dist/cjs/components/checkbox.js +137 -113
- package/dist/cjs/components/checkbox.js.map +1 -1
- package/dist/cjs/components/chip.js +47 -40
- package/dist/cjs/components/chip.js.map +1 -1
- package/dist/cjs/components/code.js +19 -12
- package/dist/cjs/components/code.js.map +1 -1
- package/dist/cjs/components/combobox.js +97 -91
- package/dist/cjs/components/combobox.js.map +1 -1
- package/dist/cjs/components/cookie-consent.js +51 -46
- package/dist/cjs/components/cookie-consent.js.map +1 -1
- package/dist/cjs/components/dialog.js +78 -21
- package/dist/cjs/components/dialog.js.map +1 -1
- package/dist/cjs/components/divider.js +60 -53
- package/dist/cjs/components/divider.js.map +1 -1
- package/dist/cjs/components/dot.js +111 -56
- package/dist/cjs/components/dot.js.map +1 -1
- package/dist/cjs/components/file-upload.js +221 -214
- package/dist/cjs/components/file-upload.js.map +1 -1
- package/dist/cjs/components/filter.js +24 -17
- package/dist/cjs/components/filter.js.map +1 -1
- package/dist/cjs/components/footer.js +41 -34
- package/dist/cjs/components/footer.js.map +1 -1
- package/dist/cjs/components/forms.js +34 -27
- package/dist/cjs/components/forms.js.map +1 -1
- package/dist/cjs/components/header.js +38 -31
- package/dist/cjs/components/header.js.map +1 -1
- package/dist/cjs/components/icon.js +113 -55
- package/dist/cjs/components/icon.js.map +1 -1
- package/dist/cjs/components/input.js +285 -219
- package/dist/cjs/components/input.js.map +1 -1
- package/dist/cjs/components/kbd.js +17 -12
- package/dist/cjs/components/kbd.js.map +1 -1
- package/dist/cjs/components/label.js +93 -35
- package/dist/cjs/components/label.js.map +1 -1
- package/dist/cjs/components/link.js +59 -52
- package/dist/cjs/components/link.js.map +1 -1
- package/dist/cjs/components/list.js +63 -56
- package/dist/cjs/components/list.js.map +1 -1
- package/dist/cjs/components/logo.js +58 -51
- package/dist/cjs/components/logo.js.map +1 -1
- package/dist/cjs/components/menu-vertical.js +243 -204
- package/dist/cjs/components/menu-vertical.js.map +1 -1
- package/dist/cjs/components/menubar.js +100 -42
- package/dist/cjs/components/menubar.js.map +1 -1
- package/dist/cjs/components/modal.js +58 -51
- package/dist/cjs/components/modal.js.map +1 -1
- package/dist/cjs/components/pagination.js +108 -101
- package/dist/cjs/components/pagination.js.map +1 -1
- package/dist/cjs/components/popup-menu.js +148 -144
- package/dist/cjs/components/popup-menu.js.map +1 -1
- package/dist/cjs/components/progress-bar.js +80 -24
- package/dist/cjs/components/progress-bar.js.map +1 -1
- package/dist/cjs/components/progress-stepper.js +80 -73
- package/dist/cjs/components/progress-stepper.js.map +1 -1
- package/dist/cjs/components/radio.js +140 -134
- package/dist/cjs/components/radio.js.map +1 -1
- package/dist/cjs/components/search-field.js +44 -37
- package/dist/cjs/components/search-field.js.map +1 -1
- package/dist/cjs/components/select.js +256 -182
- package/dist/cjs/components/select.js.map +1 -1
- package/dist/cjs/components/snackbar.js +40 -33
- package/dist/cjs/components/snackbar.js.map +1 -1
- package/dist/cjs/components/spinner.js +80 -23
- package/dist/cjs/components/spinner.js.map +1 -1
- package/dist/cjs/components/switch.js +89 -66
- package/dist/cjs/components/switch.js.map +1 -1
- package/dist/cjs/components/table.js +297 -236
- package/dist/cjs/components/table.js.map +1 -1
- package/dist/cjs/components/tabs.js +124 -16
- package/dist/cjs/components/tabs.js.map +1 -1
- package/dist/cjs/components/tooltip.js +68 -61
- package/dist/cjs/components/tooltip.js.map +1 -1
- package/dist/cjs/components/user-menu.js +24 -17
- package/dist/cjs/components/user-menu.js.map +1 -1
- package/dist/cjs/components.js +377 -177
- package/dist/cjs/components.js.map +1 -1
- package/dist/cjs/data-plugin.js +64 -26
- package/dist/cjs/data-plugin.js.map +1 -1
- package/dist/cjs/fonts.js +17 -10
- package/dist/cjs/fonts.js.map +1 -1
- package/dist/cjs/index.js +36 -12
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/plugin.js +136 -54
- package/dist/cjs/plugin.js.map +1 -1
- package/dist/cjs/preset.js +161 -25
- package/dist/cjs/preset.js.map +1 -1
- package/dist/cjs/theme.js +198 -137
- package/dist/cjs/theme.js.map +1 -1
- package/dist/cjs/units.js +412 -288
- package/dist/cjs/units.js.map +1 -1
- package/dist/cjs/with-opacity.js +16 -9
- package/dist/cjs/with-opacity.js.map +1 -1
- package/dist/esm/aria-plugin.js +83 -38
- package/dist/esm/aria-plugin.js.map +1 -1
- package/dist/esm/base.js +45 -44
- package/dist/esm/base.js.map +1 -1
- package/dist/esm/colors.js +667 -596
- package/dist/esm/colors.js.map +1 -1
- package/dist/esm/components/accordion.js +198 -195
- package/dist/esm/components/accordion.js.map +1 -1
- package/dist/esm/components/ai/ai-corner-module.js +327 -275
- package/dist/esm/components/ai/ai-corner-module.js.map +1 -1
- package/dist/esm/components/ai/ai-feed.js +63 -60
- package/dist/esm/components/ai/ai-feed.js.map +1 -1
- package/dist/esm/components/ai/ai-service-module.js +211 -167
- package/dist/esm/components/ai/ai-service-module.js.map +1 -1
- package/dist/esm/components/ai/assistant-presentation.js +54 -51
- package/dist/esm/components/ai/assistant-presentation.js.map +1 -1
- package/dist/esm/components/ai/assistant-switch.js +47 -44
- package/dist/esm/components/ai/assistant-switch.js.map +1 -1
- package/dist/esm/components/ai/bubble.js +112 -82
- package/dist/esm/components/ai/bubble.js.map +1 -1
- package/dist/esm/components/ai/feedback.js +29 -26
- package/dist/esm/components/ai/feedback.js.map +1 -1
- package/dist/esm/components/ai/input-section.js +24 -21
- package/dist/esm/components/ai/input-section.js.map +1 -1
- package/dist/esm/components/ai/markdown-rendered.js +23 -20
- package/dist/esm/components/ai/markdown-rendered.js.map +1 -1
- package/dist/esm/components/ai/new-session-button.js +19 -16
- package/dist/esm/components/ai/new-session-button.js.map +1 -1
- package/dist/esm/components/ai/typing-bubble.js +21 -18
- package/dist/esm/components/ai/typing-bubble.js.map +1 -1
- package/dist/esm/components/ai/typing-sequence.js +80 -32
- package/dist/esm/components/ai/typing-sequence.js.map +1 -1
- package/dist/esm/components/avatar.js +91 -41
- package/dist/esm/components/avatar.js.map +1 -1
- package/dist/esm/components/badge.js +80 -29
- package/dist/esm/components/badge.js.map +1 -1
- package/dist/esm/components/breadcrumb.js +38 -27
- package/dist/esm/components/breadcrumb.js.map +1 -1
- package/dist/esm/components/button-group.js +28 -25
- package/dist/esm/components/button-group.js.map +1 -1
- package/dist/esm/components/button.js +283 -255
- package/dist/esm/components/button.js.map +1 -1
- package/dist/esm/components/callout.js +82 -31
- package/dist/esm/components/callout.js.map +1 -1
- package/dist/esm/components/card.js +262 -235
- package/dist/esm/components/card.js.map +1 -1
- package/dist/esm/components/checkbox.js +130 -110
- package/dist/esm/components/checkbox.js.map +1 -1
- package/dist/esm/components/chip.js +40 -37
- package/dist/esm/components/chip.js.map +1 -1
- package/dist/esm/components/code.js +12 -9
- package/dist/esm/components/code.js.map +1 -1
- package/dist/esm/components/combobox.js +89 -87
- package/dist/esm/components/combobox.js.map +1 -1
- package/dist/esm/components/cookie-consent.js +43 -42
- package/dist/esm/components/cookie-consent.js.map +1 -1
- package/dist/esm/components/dialog.js +70 -18
- package/dist/esm/components/dialog.js.map +1 -1
- package/dist/esm/components/divider.js +52 -49
- package/dist/esm/components/divider.js.map +1 -1
- package/dist/esm/components/dot.js +104 -56
- package/dist/esm/components/dot.js.map +1 -1
- package/dist/esm/components/file-upload.js +214 -211
- package/dist/esm/components/file-upload.js.map +1 -1
- package/dist/esm/components/filter.js +17 -14
- package/dist/esm/components/filter.js.map +1 -1
- package/dist/esm/components/footer.js +33 -30
- package/dist/esm/components/footer.js.map +1 -1
- package/dist/esm/components/forms.js +27 -24
- package/dist/esm/components/forms.js.map +1 -1
- package/dist/esm/components/header.js +31 -28
- package/dist/esm/components/header.js.map +1 -1
- package/dist/esm/components/icon.js +103 -54
- package/dist/esm/components/icon.js.map +1 -1
- package/dist/esm/components/input.js +278 -216
- package/dist/esm/components/input.js.map +1 -1
- package/dist/esm/components/kbd.js +10 -9
- package/dist/esm/components/kbd.js.map +1 -1
- package/dist/esm/components/label.js +83 -35
- package/dist/esm/components/label.js.map +1 -1
- package/dist/esm/components/link.js +52 -49
- package/dist/esm/components/link.js.map +1 -1
- package/dist/esm/components/list.js +55 -52
- package/dist/esm/components/list.js.map +1 -1
- package/dist/esm/components/logo.js +51 -48
- package/dist/esm/components/logo.js.map +1 -1
- package/dist/esm/components/menu-vertical.js +233 -199
- package/dist/esm/components/menu-vertical.js.map +1 -1
- package/dist/esm/components/menubar.js +92 -45
- package/dist/esm/components/menubar.js.map +1 -1
- package/dist/esm/components/modal.js +50 -47
- package/dist/esm/components/modal.js.map +1 -1
- package/dist/esm/components/pagination.js +101 -98
- package/dist/esm/components/pagination.js.map +1 -1
- package/dist/esm/components/popup-menu.js +142 -142
- package/dist/esm/components/popup-menu.js.map +1 -1
- package/dist/esm/components/progress-bar.js +69 -21
- package/dist/esm/components/progress-bar.js.map +1 -1
- package/dist/esm/components/progress-stepper.js +72 -69
- package/dist/esm/components/progress-stepper.js.map +1 -1
- package/dist/esm/components/radio.js +132 -130
- package/dist/esm/components/radio.js.map +1 -1
- package/dist/esm/components/search-field.js +37 -34
- package/dist/esm/components/search-field.js.map +1 -1
- package/dist/esm/components/select.js +250 -180
- package/dist/esm/components/select.js.map +1 -1
- package/dist/esm/components/snackbar.js +33 -30
- package/dist/esm/components/snackbar.js.map +1 -1
- package/dist/esm/components/spinner.js +70 -18
- package/dist/esm/components/spinner.js.map +1 -1
- package/dist/esm/components/switch.js +80 -70
- package/dist/esm/components/switch.js.map +1 -1
- package/dist/esm/components/table.js +292 -236
- package/dist/esm/components/table.js.map +1 -1
- package/dist/esm/components/tabs.js +118 -14
- package/dist/esm/components/tabs.js.map +1 -1
- package/dist/esm/components/tooltip.js +61 -58
- package/dist/esm/components/tooltip.js.map +1 -1
- package/dist/esm/components/user-menu.js +17 -14
- package/dist/esm/components/user-menu.js.map +1 -1
- package/dist/esm/components.js +404 -206
- package/dist/esm/components.js.map +1 -1
- package/dist/esm/data-plugin.js +49 -23
- package/dist/esm/data-plugin.js.map +1 -1
- package/dist/esm/fonts.js +7 -6
- package/dist/esm/fonts.js.map +1 -1
- package/dist/esm/index.js +5 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/plugin.js +114 -46
- package/dist/esm/plugin.js.map +1 -1
- package/dist/esm/preset.js +104 -17
- package/dist/esm/preset.js.map +1 -1
- package/dist/esm/theme.js +187 -139
- package/dist/esm/theme.js.map +1 -1
- package/dist/esm/units.js +402 -284
- package/dist/esm/units.js.map +1 -1
- package/dist/esm/with-opacity.js +6 -7
- package/dist/esm/with-opacity.js.map +1 -1
- package/dist/types/colors.d.ts +70 -0
- package/dist/types/components/checkbox.d.ts +23 -7
- package/dist/types/components/combobox.d.ts +1 -2
- package/dist/types/components/input.d.ts +29 -34
- package/dist/types/components/popup-menu.d.ts +3 -6
- package/dist/types/components/radio.d.ts +27 -29
- package/dist/types/components/select.d.ts +24 -23
- package/dist/types/components/switch.d.ts +9 -8
- package/dist/types/components/tabs.d.ts +45 -3
- package/dist/types/preset.d.ts +1 -1
- package/package.json +17 -14
|
@@ -1,36 +1,87 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
+
});
|
|
27
37
|
}
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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,"
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
'
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
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
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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
|
-
|
|
150
|
-
|
|
151
|
-
'
|
|
152
|
-
|
|
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
|
-
|
|
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
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
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
|
-
|
|
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
|