@sk-web-gui/core 3.10.0 → 3.11.1
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 +101 -1
- package/dist/cjs/aria-plugin.js.map +1 -1
- package/dist/cjs/base.js +60 -1
- package/dist/cjs/base.js.map +1 -1
- package/dist/cjs/colors.js +724 -1
- package/dist/cjs/colors.js.map +1 -1
- package/dist/cjs/components/accordion.js +211 -1
- package/dist/cjs/components/accordion.js.map +1 -1
- package/dist/cjs/components/ai/ai-corner-module.js +344 -1
- package/dist/cjs/components/ai/ai-corner-module.js.map +1 -1
- package/dist/cjs/components/ai/ai-feed.js +74 -1
- package/dist/cjs/components/ai/ai-feed.js.map +1 -1
- package/dist/cjs/components/ai/ai-service-module.js +225 -1
- package/dist/cjs/components/ai/ai-service-module.js.map +1 -1
- package/dist/cjs/components/ai/assistant-presentation.js +65 -1
- package/dist/cjs/components/ai/assistant-presentation.js.map +1 -1
- package/dist/cjs/components/ai/assistant-switch.js +58 -1
- package/dist/cjs/components/ai/assistant-switch.js.map +1 -1
- package/dist/cjs/components/ai/bubble.js +127 -1
- package/dist/cjs/components/ai/bubble.js.map +1 -1
- package/dist/cjs/components/ai/feedback.js +40 -1
- package/dist/cjs/components/ai/feedback.js.map +1 -1
- package/dist/cjs/components/ai/input-section.js +34 -1
- package/dist/cjs/components/ai/input-section.js.map +1 -1
- package/dist/cjs/components/ai/markdown-rendered.js +33 -1
- package/dist/cjs/components/ai/markdown-rendered.js.map +1 -1
- package/dist/cjs/components/ai/new-session-button.js +29 -1
- package/dist/cjs/components/ai/new-session-button.js.map +1 -1
- package/dist/cjs/components/ai/typing-bubble.js +31 -1
- package/dist/cjs/components/ai/typing-bubble.js.map +1 -1
- package/dist/cjs/components/ai/typing-sequence.js +91 -1
- package/dist/cjs/components/ai/typing-sequence.js.map +1 -1
- package/dist/cjs/components/avatar.js +104 -1
- package/dist/cjs/components/avatar.js.map +1 -1
- package/dist/cjs/components/badge.js +93 -1
- package/dist/cjs/components/badge.js.map +1 -1
- package/dist/cjs/components/breadcrumb.js +49 -1
- package/dist/cjs/components/breadcrumb.js.map +1 -1
- package/dist/cjs/components/button-group.js +38 -1
- package/dist/cjs/components/button-group.js.map +1 -1
- package/dist/cjs/components/button.js +306 -1
- package/dist/cjs/components/button.js.map +1 -1
- package/dist/cjs/components/callout.js +96 -1
- package/dist/cjs/components/callout.js.map +1 -1
- package/dist/cjs/components/card.js +282 -1
- package/dist/cjs/components/card.js.map +1 -1
- package/dist/cjs/components/checkbox.js +141 -1
- package/dist/cjs/components/checkbox.js.map +1 -1
- package/dist/cjs/components/chip.js +50 -1
- package/dist/cjs/components/chip.js.map +1 -1
- package/dist/cjs/components/code.js +22 -1
- package/dist/cjs/components/code.js.map +1 -1
- package/dist/cjs/components/combobox.js +102 -1
- package/dist/cjs/components/combobox.js.map +1 -1
- package/dist/cjs/components/cookie-consent.js +54 -1
- package/dist/cjs/components/cookie-consent.js.map +1 -1
- package/dist/cjs/components/dialog.js +82 -1
- package/dist/cjs/components/dialog.js.map +1 -1
- package/dist/cjs/components/divider.js +63 -1
- package/dist/cjs/components/divider.js.map +1 -1
- package/dist/cjs/components/dot.js +115 -1
- package/dist/cjs/components/dot.js.map +1 -1
- package/dist/cjs/components/file-upload.js +230 -1
- package/dist/cjs/components/file-upload.js.map +1 -1
- package/dist/cjs/components/filter.js +27 -1
- package/dist/cjs/components/filter.js.map +1 -1
- package/dist/cjs/components/footer.js +44 -1
- package/dist/cjs/components/footer.js.map +1 -1
- package/dist/cjs/components/forms.js +37 -1
- package/dist/cjs/components/forms.js.map +1 -1
- package/dist/cjs/components/header.js +41 -1
- package/dist/cjs/components/header.js.map +1 -1
- package/dist/cjs/components/icon.js +117 -1
- package/dist/cjs/components/icon.js.map +1 -1
- package/dist/cjs/components/input.js +302 -1
- package/dist/cjs/components/input.js.map +1 -1
- package/dist/cjs/components/kbd.js +20 -1
- package/dist/cjs/components/kbd.js.map +1 -1
- package/dist/cjs/components/label.js +96 -1
- package/dist/cjs/components/label.js.map +1 -1
- package/dist/cjs/components/link.js +62 -1
- package/dist/cjs/components/link.js.map +1 -1
- package/dist/cjs/components/list.js +66 -1
- package/dist/cjs/components/list.js.map +1 -1
- package/dist/cjs/components/logo.js +61 -1
- package/dist/cjs/components/logo.js.map +1 -1
- package/dist/cjs/components/menu-vertical.js +256 -1
- package/dist/cjs/components/menu-vertical.js.map +1 -1
- package/dist/cjs/components/menubar.js +104 -1
- package/dist/cjs/components/menubar.js.map +1 -1
- package/dist/cjs/components/modal.js +61 -1
- package/dist/cjs/components/modal.js.map +1 -1
- package/dist/cjs/components/pagination.js +114 -1
- package/dist/cjs/components/pagination.js.map +1 -1
- package/dist/cjs/components/popup-menu.js +153 -1
- package/dist/cjs/components/popup-menu.js.map +1 -1
- package/dist/cjs/components/progress-bar.js +82 -1
- package/dist/cjs/components/progress-bar.js.map +1 -1
- package/dist/cjs/components/progress-stepper.js +83 -1
- package/dist/cjs/components/progress-stepper.js.map +1 -1
- package/dist/cjs/components/radio.js +143 -1
- package/dist/cjs/components/radio.js.map +1 -1
- package/dist/cjs/components/search-field.js +48 -1
- package/dist/cjs/components/search-field.js.map +1 -1
- package/dist/cjs/components/select.js +267 -1
- package/dist/cjs/components/select.js.map +1 -1
- package/dist/cjs/components/snackbar.js +43 -1
- package/dist/cjs/components/snackbar.js.map +1 -1
- package/dist/cjs/components/spinner.js +82 -1
- package/dist/cjs/components/spinner.js.map +1 -1
- package/dist/cjs/components/switch.js +93 -1
- package/dist/cjs/components/switch.js.map +1 -1
- package/dist/cjs/components/table.js +308 -1
- package/dist/cjs/components/table.js.map +1 -1
- package/dist/cjs/components/tabs.js +134 -1
- package/dist/cjs/components/tabs.js.map +1 -1
- package/dist/cjs/components/tooltip.js +71 -1
- package/dist/cjs/components/tooltip.js.map +1 -1
- package/dist/cjs/components/user-menu.js +27 -1
- package/dist/cjs/components/user-menu.js.map +1 -1
- package/dist/cjs/components.js +415 -1
- package/dist/cjs/components.js.map +1 -1
- package/dist/cjs/data-plugin.js +67 -1
- package/dist/cjs/data-plugin.js.map +1 -1
- package/dist/cjs/fonts.js +19 -1
- package/dist/cjs/fonts.js.map +1 -1
- package/dist/cjs/index.js +38 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/plugin.js +144 -1
- package/dist/cjs/plugin.js.map +1 -1
- package/dist/cjs/preset.js +164 -1
- package/dist/cjs/preset.js.map +1 -1
- package/dist/cjs/theme.js +209 -1
- package/dist/cjs/theme.js.map +1 -1
- package/dist/cjs/units.js +415 -1
- package/dist/cjs/units.js.map +1 -1
- package/dist/cjs/with-opacity.js +19 -1
- package/dist/cjs/with-opacity.js.map +1 -1
- package/dist/esm/aria-plugin.js +86 -1
- package/dist/esm/aria-plugin.js.map +1 -1
- package/dist/esm/base.js +51 -1
- package/dist/esm/base.js.map +1 -1
- package/dist/esm/colors.js +715 -1
- package/dist/esm/colors.js.map +1 -1
- package/dist/esm/components/accordion.js +201 -1
- package/dist/esm/components/accordion.js.map +1 -1
- package/dist/esm/components/ai/ai-corner-module.js +334 -1
- package/dist/esm/components/ai/ai-corner-module.js.map +1 -1
- package/dist/esm/components/ai/ai-feed.js +64 -1
- package/dist/esm/components/ai/ai-feed.js.map +1 -1
- package/dist/esm/components/ai/ai-service-module.js +215 -1
- package/dist/esm/components/ai/ai-service-module.js.map +1 -1
- package/dist/esm/components/ai/assistant-presentation.js +55 -1
- package/dist/esm/components/ai/assistant-presentation.js.map +1 -1
- package/dist/esm/components/ai/assistant-switch.js +48 -1
- package/dist/esm/components/ai/assistant-switch.js.map +1 -1
- package/dist/esm/components/ai/bubble.js +117 -1
- package/dist/esm/components/ai/bubble.js.map +1 -1
- package/dist/esm/components/ai/feedback.js +30 -1
- package/dist/esm/components/ai/feedback.js.map +1 -1
- package/dist/esm/components/ai/input-section.js +24 -1
- package/dist/esm/components/ai/input-section.js.map +1 -1
- package/dist/esm/components/ai/markdown-rendered.js +23 -1
- package/dist/esm/components/ai/markdown-rendered.js.map +1 -1
- package/dist/esm/components/ai/new-session-button.js +19 -1
- package/dist/esm/components/ai/new-session-button.js.map +1 -1
- package/dist/esm/components/ai/typing-bubble.js +21 -1
- package/dist/esm/components/ai/typing-bubble.js.map +1 -1
- package/dist/esm/components/ai/typing-sequence.js +81 -1
- package/dist/esm/components/ai/typing-sequence.js.map +1 -1
- package/dist/esm/components/avatar.js +94 -1
- package/dist/esm/components/avatar.js.map +1 -1
- package/dist/esm/components/badge.js +83 -1
- package/dist/esm/components/badge.js.map +1 -1
- package/dist/esm/components/breadcrumb.js +39 -1
- package/dist/esm/components/breadcrumb.js.map +1 -1
- package/dist/esm/components/button-group.js +28 -1
- package/dist/esm/components/button-group.js.map +1 -1
- package/dist/esm/components/button.js +296 -1
- package/dist/esm/components/button.js.map +1 -1
- package/dist/esm/components/callout.js +86 -1
- package/dist/esm/components/callout.js.map +1 -1
- package/dist/esm/components/card.js +272 -1
- package/dist/esm/components/card.js.map +1 -1
- package/dist/esm/components/checkbox.js +131 -1
- package/dist/esm/components/checkbox.js.map +1 -1
- package/dist/esm/components/chip.js +40 -1
- package/dist/esm/components/chip.js.map +1 -1
- package/dist/esm/components/code.js +12 -1
- package/dist/esm/components/code.js.map +1 -1
- package/dist/esm/components/combobox.js +92 -1
- package/dist/esm/components/combobox.js.map +1 -1
- package/dist/esm/components/cookie-consent.js +44 -1
- package/dist/esm/components/cookie-consent.js.map +1 -1
- package/dist/esm/components/dialog.js +72 -1
- package/dist/esm/components/dialog.js.map +1 -1
- package/dist/esm/components/divider.js +53 -1
- package/dist/esm/components/divider.js.map +1 -1
- package/dist/esm/components/dot.js +105 -1
- package/dist/esm/components/dot.js.map +1 -1
- package/dist/esm/components/file-upload.js +220 -1
- package/dist/esm/components/file-upload.js.map +1 -1
- package/dist/esm/components/filter.js +17 -1
- package/dist/esm/components/filter.js.map +1 -1
- package/dist/esm/components/footer.js +34 -1
- package/dist/esm/components/footer.js.map +1 -1
- package/dist/esm/components/forms.js +27 -1
- package/dist/esm/components/forms.js.map +1 -1
- package/dist/esm/components/header.js +31 -1
- package/dist/esm/components/header.js.map +1 -1
- package/dist/esm/components/icon.js +107 -1
- package/dist/esm/components/icon.js.map +1 -1
- package/dist/esm/components/input.js +292 -1
- package/dist/esm/components/input.js.map +1 -1
- package/dist/esm/components/kbd.js +10 -1
- package/dist/esm/components/kbd.js.map +1 -1
- package/dist/esm/components/label.js +86 -1
- package/dist/esm/components/label.js.map +1 -1
- package/dist/esm/components/link.js +52 -1
- package/dist/esm/components/link.js.map +1 -1
- package/dist/esm/components/list.js +56 -1
- package/dist/esm/components/list.js.map +1 -1
- package/dist/esm/components/logo.js +51 -1
- package/dist/esm/components/logo.js.map +1 -1
- package/dist/esm/components/menu-vertical.js +241 -1
- package/dist/esm/components/menu-vertical.js.map +1 -1
- package/dist/esm/components/menubar.js +94 -1
- package/dist/esm/components/menubar.js.map +1 -1
- package/dist/esm/components/modal.js +51 -1
- package/dist/esm/components/modal.js.map +1 -1
- package/dist/esm/components/pagination.js +104 -1
- package/dist/esm/components/pagination.js.map +1 -1
- package/dist/esm/components/popup-menu.js +143 -1
- package/dist/esm/components/popup-menu.js.map +1 -1
- package/dist/esm/components/progress-bar.js +72 -1
- package/dist/esm/components/progress-bar.js.map +1 -1
- package/dist/esm/components/progress-stepper.js +73 -1
- package/dist/esm/components/progress-stepper.js.map +1 -1
- package/dist/esm/components/radio.js +133 -1
- package/dist/esm/components/radio.js.map +1 -1
- package/dist/esm/components/search-field.js +38 -1
- package/dist/esm/components/search-field.js.map +1 -1
- package/dist/esm/components/select.js +257 -1
- package/dist/esm/components/select.js.map +1 -1
- package/dist/esm/components/snackbar.js +33 -1
- package/dist/esm/components/snackbar.js.map +1 -1
- package/dist/esm/components/spinner.js +72 -1
- package/dist/esm/components/spinner.js.map +1 -1
- package/dist/esm/components/switch.js +83 -1
- package/dist/esm/components/switch.js.map +1 -1
- package/dist/esm/components/table.js +298 -1
- package/dist/esm/components/table.js.map +1 -1
- package/dist/esm/components/tabs.js +124 -1
- package/dist/esm/components/tabs.js.map +1 -1
- package/dist/esm/components/tooltip.js +61 -1
- package/dist/esm/components/tooltip.js.map +1 -1
- package/dist/esm/components/user-menu.js +17 -1
- package/dist/esm/components/user-menu.js.map +1 -1
- package/dist/esm/components.js +407 -1
- package/dist/esm/components.js.map +1 -1
- package/dist/esm/data-plugin.js +52 -1
- package/dist/esm/data-plugin.js.map +1 -1
- package/dist/esm/fonts.js +9 -1
- package/dist/esm/fonts.js.map +1 -1
- package/dist/esm/index.js +7 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/plugin.js +121 -1
- package/dist/esm/plugin.js.map +1 -1
- package/dist/esm/preset.js +109 -1
- package/dist/esm/preset.js.map +1 -1
- package/dist/esm/theme.js +195 -1
- package/dist/esm/theme.js.map +1 -1
- package/dist/esm/units.js +406 -1
- package/dist/esm/units.js.map +1 -1
- package/dist/esm/with-opacity.js +9 -1
- package/dist/esm/with-opacity.js.map +1 -1
- package/dist/types/components/checkbox.d.ts +19 -3
- package/dist/types/components/input.d.ts +12 -0
- package/dist/types/components/radio.d.ts +8 -0
- package/dist/types/components/select.d.ts +7 -0
- package/dist/types/components/tabs.d.ts +6 -1
- package/package.json +10 -8
|
@@ -1,2 +1,309 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "Table", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return Table;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
function _define_property(obj, key, value) {
|
|
12
|
+
if (key in obj) {
|
|
13
|
+
Object.defineProperty(obj, key, {
|
|
14
|
+
value: value,
|
|
15
|
+
enumerable: true,
|
|
16
|
+
configurable: true,
|
|
17
|
+
writable: true
|
|
18
|
+
});
|
|
19
|
+
} else {
|
|
20
|
+
obj[key] = value;
|
|
21
|
+
}
|
|
22
|
+
return obj;
|
|
23
|
+
}
|
|
24
|
+
function _object_spread(target) {
|
|
25
|
+
for(var i = 1; i < arguments.length; i++){
|
|
26
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
27
|
+
var ownKeys = Object.keys(source);
|
|
28
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
29
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
30
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
31
|
+
}));
|
|
32
|
+
}
|
|
33
|
+
ownKeys.forEach(function(key) {
|
|
34
|
+
_define_property(target, key, source[key]);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
return target;
|
|
38
|
+
}
|
|
39
|
+
function ownKeys(object, enumerableOnly) {
|
|
40
|
+
var keys = Object.keys(object);
|
|
41
|
+
if (Object.getOwnPropertySymbols) {
|
|
42
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
43
|
+
if (enumerableOnly) {
|
|
44
|
+
symbols = symbols.filter(function(sym) {
|
|
45
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
keys.push.apply(keys, symbols);
|
|
49
|
+
}
|
|
50
|
+
return keys;
|
|
51
|
+
}
|
|
52
|
+
function _object_spread_props(target, source) {
|
|
53
|
+
source = source != null ? source : {};
|
|
54
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
55
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
56
|
+
} else {
|
|
57
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
58
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
return target;
|
|
62
|
+
}
|
|
63
|
+
var Table = function() {
|
|
64
|
+
return {
|
|
65
|
+
'.sk-table-wrapper': {
|
|
66
|
+
'@apply text-base': {},
|
|
67
|
+
'@apply rounded-groups': {},
|
|
68
|
+
'@apply border-1 border-divider': {},
|
|
69
|
+
'@apply bg-background-content': {},
|
|
70
|
+
'@apply relative': {},
|
|
71
|
+
'&-inside': {
|
|
72
|
+
'@apply border-0 rounded-t-groups': {},
|
|
73
|
+
'@apply overflow-hidden': {},
|
|
74
|
+
'@apply w-full': {},
|
|
75
|
+
'@apply h-full max-h-full': {},
|
|
76
|
+
'&[data-scroll="x"]': {
|
|
77
|
+
'@apply overflow-x-auto': {}
|
|
78
|
+
},
|
|
79
|
+
'&[data-scroll="y"]': {
|
|
80
|
+
'@apply overflow-y-auto': {}
|
|
81
|
+
},
|
|
82
|
+
'&[data-scroll="true"]': {
|
|
83
|
+
'@apply overflow-auto': {}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
'&:not([data-background="true"]):not([data-wrappingborder="true"])': {
|
|
87
|
+
'@apply border-0': {},
|
|
88
|
+
'@apply bg-transparent': {}
|
|
89
|
+
},
|
|
90
|
+
'.sk-table-wrapper-inside': {
|
|
91
|
+
'@apply border-0 rounded-b-groups': {}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
'.sk-table': {
|
|
95
|
+
'@apply w-full text-left table-auto': {},
|
|
96
|
+
'@apply text-dark-secondary': {},
|
|
97
|
+
'&-caption': _object_spread_props(_object_spread({
|
|
98
|
+
'@apply text-left': {},
|
|
99
|
+
'@apply w-full': {}
|
|
100
|
+
}, [
|
|
101
|
+
'left',
|
|
102
|
+
'center',
|
|
103
|
+
'right'
|
|
104
|
+
].reduce(function(classes, position) {
|
|
105
|
+
return _object_spread_props(_object_spread({}, classes), _define_property({}, '&[data-textalign="'.concat(position, '"]'), _define_property({}, "@apply text-".concat(position), {})));
|
|
106
|
+
}, {})), {
|
|
107
|
+
'&-sr': {
|
|
108
|
+
'@apply sr-only': {}
|
|
109
|
+
}
|
|
110
|
+
}),
|
|
111
|
+
'&-auto': {
|
|
112
|
+
'&-cell': {
|
|
113
|
+
'@apply w-full': {}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
'&-thead': {
|
|
117
|
+
'@apply border-b-1 border-dark-primary': {},
|
|
118
|
+
'&[data-stickyheader="true"]': {
|
|
119
|
+
'@apply sticky top-0': {},
|
|
120
|
+
'@apply bg-background-content': {},
|
|
121
|
+
'@apply border-b-0': {},
|
|
122
|
+
'.sk-table-col-content': {
|
|
123
|
+
'@apply border-b-1 border-dark-primary': {}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
'&-tr': {
|
|
127
|
+
'@apply table-row': {},
|
|
128
|
+
'@apply text-label-small': {}
|
|
129
|
+
},
|
|
130
|
+
'.sk-table-th': {
|
|
131
|
+
'@apply h-56': {},
|
|
132
|
+
'@apply p-0': {},
|
|
133
|
+
'&:first-of-type': {
|
|
134
|
+
'.sk-table-sticky-col': {
|
|
135
|
+
'@apply rounded-tl-groups': {}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
'&:last-of-type': {
|
|
139
|
+
'.sk-table-sticky-col': {
|
|
140
|
+
'@apply rounded-tr-groups': {}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
'.sk-table-col-content': {
|
|
144
|
+
'@apply py-4': {},
|
|
145
|
+
'@apply px-16': {}
|
|
146
|
+
},
|
|
147
|
+
"&[data-isColumnSortable='true']": {
|
|
148
|
+
'@apply cursor-pointer': {}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
'@apply bg-transparent': {},
|
|
152
|
+
'&[data-background="true"]': {
|
|
153
|
+
'@apply border-b-0': {},
|
|
154
|
+
'@apply bg-vattjom-background-200 border-b-transparent': {},
|
|
155
|
+
'.sk-table-col-content': {
|
|
156
|
+
'@apply border-b-0': {}
|
|
157
|
+
},
|
|
158
|
+
'[data-sticky="true"]': {
|
|
159
|
+
'@apply bg-vattjom-background-200': {}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
'&-sortbutton': {
|
|
164
|
+
'@apply flex items-center': {},
|
|
165
|
+
'@apply focus-visible:ring ring-ring ring-offset-0': {},
|
|
166
|
+
'@apply focus-visible:bg-vattjom-background-200': {},
|
|
167
|
+
'@apply rounded-utility': {},
|
|
168
|
+
'@apply pr-16': {},
|
|
169
|
+
'@apply h-40': {},
|
|
170
|
+
'&[data-sronly="true"]': {
|
|
171
|
+
'@apply sr-only': {}
|
|
172
|
+
},
|
|
173
|
+
'&-icon': {
|
|
174
|
+
'@apply inline-flex pl-sm': {},
|
|
175
|
+
'&-sort': {
|
|
176
|
+
'@apply text-dark-secondary': {},
|
|
177
|
+
'@apply flex flex-col': {},
|
|
178
|
+
svg: {
|
|
179
|
+
'@apply h-16 w-16': {},
|
|
180
|
+
'@apply first-of-type:-mb-4': {},
|
|
181
|
+
'@apply last-of-type:-mt-4': {}
|
|
182
|
+
},
|
|
183
|
+
"&[data-sortmode='ascending']": {
|
|
184
|
+
'> *': {
|
|
185
|
+
'@apply last-of-type:text-dark-ghost': {}
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"&[data-sortmode='descending']": {
|
|
189
|
+
'> *': {
|
|
190
|
+
'@apply first-of-type:text-dark-ghost': {}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
'&-tbody': {
|
|
197
|
+
'@apply text-dark-secondary bg-transparent': {},
|
|
198
|
+
'&-tr': {
|
|
199
|
+
'@apply bg-transparent': {},
|
|
200
|
+
'@apply hover:bg-background-100': {},
|
|
201
|
+
'@apply border-b-1 border-divider': {},
|
|
202
|
+
'@apply last-of-type:border-b-transparent': {},
|
|
203
|
+
'@apply focus-visible:shadow-insetring': {},
|
|
204
|
+
'&:hover': {
|
|
205
|
+
td: {
|
|
206
|
+
'@apply bg-background-100': {}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
'&-td, .sk-table-th': {
|
|
211
|
+
'@apply p-0': {},
|
|
212
|
+
'@apply text-small': {},
|
|
213
|
+
'@apply h-64-1': {},
|
|
214
|
+
'@apply min-h-64-1': {},
|
|
215
|
+
'@apply focus-visible:shadow-insetring': {},
|
|
216
|
+
'.sk-table-col-content': {
|
|
217
|
+
'@apply py-8 px-18': {},
|
|
218
|
+
'@apply gap-8': {}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
'&-col-content': {
|
|
223
|
+
'@apply flex': {},
|
|
224
|
+
'@apply w-full': {},
|
|
225
|
+
'@apply justify-start items-center': {},
|
|
226
|
+
'@apply h-full': {}
|
|
227
|
+
},
|
|
228
|
+
'&[data-dense="dense"]': {
|
|
229
|
+
'.sk-table': {
|
|
230
|
+
'&-col-content': {
|
|
231
|
+
'@apply py-0': {}
|
|
232
|
+
},
|
|
233
|
+
'&-thead': {
|
|
234
|
+
th: {
|
|
235
|
+
'@apply h-48': {}
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
'&-tbody': {
|
|
239
|
+
'&-td, .sk-table-th': {
|
|
240
|
+
'@apply h-48-1': {},
|
|
241
|
+
'@apply min-h-48-1': {}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
'[data-sticky="true"]': {
|
|
247
|
+
'@apply sticky': {},
|
|
248
|
+
'@apply bg-background-content': {},
|
|
249
|
+
'&:first-of-type': {
|
|
250
|
+
'@apply left-0': {}
|
|
251
|
+
},
|
|
252
|
+
'&:last-of-type': {
|
|
253
|
+
'@apply right-0': {}
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
'&[data-hasscroll="true"]': {
|
|
257
|
+
'[data-sticky="true"]': {
|
|
258
|
+
'&:first-of-type': {
|
|
259
|
+
'.sk-table-col-content': {
|
|
260
|
+
'@apply border-r-1 border-r-divider': {}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
'&:last-of-type': {
|
|
264
|
+
'.sk-table-col-content': {
|
|
265
|
+
'@apply border-l-1 border-r-divider': {}
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
'.sk-table-col-content': {}
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
'&-paginationwrapper': {
|
|
272
|
+
'@apply max-w-full -order-1 w-full mb-10 @screen-md/footer:order-none @screen-md/footer:w-fit @screen-md/footer:max-w-[33em] @screen-md/footer:px-20 @screen-md/footer:mb-0': {},
|
|
273
|
+
'@apply shrink grow flex justify-center': {}
|
|
274
|
+
},
|
|
275
|
+
'&-bottom': {
|
|
276
|
+
'@apply @container/footer': {},
|
|
277
|
+
'@apply py-14 px-16': {},
|
|
278
|
+
'@apply border-t-1 border-divider': {},
|
|
279
|
+
'@apply flex flex-row': {},
|
|
280
|
+
'@apply flex-wrap': {},
|
|
281
|
+
'@apply @screen-lg/footer:gap-32': {},
|
|
282
|
+
'@apply @screen-md/footer:gap-16': {},
|
|
283
|
+
'@apply gap-8': {},
|
|
284
|
+
'@apply justify-between items-center': {},
|
|
285
|
+
'&-section': {
|
|
286
|
+
'@apply shrink-0': {},
|
|
287
|
+
'@apply flex flex-col': {},
|
|
288
|
+
'@apply justify-start items-center': {},
|
|
289
|
+
'@apply @screen-sm/footer:flex-row': {},
|
|
290
|
+
'@apply gap-8': {},
|
|
291
|
+
'&-label': {
|
|
292
|
+
'@apply font-normal': {},
|
|
293
|
+
'@apply text-small': {},
|
|
294
|
+
'@apply shrink-0': {}
|
|
295
|
+
},
|
|
296
|
+
'&.spacer': {
|
|
297
|
+
'@apply w-[18rem]': {}
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
'&-pagination': {
|
|
301
|
+
'@apply grow': {},
|
|
302
|
+
'@apply shrink': {}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
|
|
2
309
|
//# sourceMappingURL=table.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/table.ts"],"sourcesContent":["export const Table = () => ({\r\n '.sk-table-wrapper': {\r\n '@apply text-base': {},\r\n '@apply rounded-groups': {},\r\n '@apply border-1 border-divider': {},\r\n '@apply bg-background-content': {},\r\n '@apply relative': {},\r\n\r\n '&-inside': {\r\n '@apply border-0 rounded-t-groups': {},\r\n '@apply overflow-hidden': {},\r\n '@apply w-full': {},\r\n '@apply h-full max-h-full': {},\r\n '&[data-scroll=\"x\"]': {\r\n '@apply overflow-x-auto': {},\r\n },\r\n '&[data-scroll=\"y\"]': {\r\n '@apply overflow-y-auto': {},\r\n },\r\n '&[data-scroll=\"true\"]': {\r\n '@apply overflow-auto': {},\r\n },\r\n },\r\n '&:not([data-background=\"true\"]):not([data-wrappingborder=\"true\"])': {\r\n '@apply border-0': {},\r\n '@apply bg-transparent': {},\r\n },\r\n '.sk-table-wrapper-inside': {\r\n '@apply border-0 rounded-b-groups': {},\r\n },\r\n },\r\n '.sk-table': {\r\n '@apply w-full text-left table-auto': {},\r\n '@apply text-dark-secondary': {},\r\n\r\n '&-caption': {\r\n '@apply text-left': {},\r\n '@apply w-full': {},\r\n ...['left', 'center', 'right'].reduce(\r\n (classes, position) => ({\r\n ...classes,\r\n [`&[data-textalign=\"${position}\"]`]: {\r\n [`@apply text-${position}`]: {},\r\n },\r\n }),\r\n {}\r\n ),\r\n '&-sr': {\r\n '@apply sr-only': {},\r\n },\r\n },\r\n '&-auto': {\r\n '&-cell': {\r\n '@apply w-full': {},\r\n },\r\n },\r\n\r\n '&-thead': {\r\n '@apply border-b-1 border-dark-primary': {},\r\n '&[data-stickyheader=\"true\"]': {\r\n '@apply sticky top-0': {},\r\n '@apply bg-background-content': {},\r\n '@apply border-b-0': {},\r\n '.sk-table-col-content': {\r\n '@apply border-b-1 border-dark-primary': {},\r\n },\r\n },\r\n\r\n '&-tr': {\r\n '@apply table-row': {},\r\n '@apply text-label-small': {},\r\n },\r\n\r\n '.sk-table-th': {\r\n '@apply h-56': {},\r\n '@apply p-0': {},\r\n '&:first-of-type': {\r\n '.sk-table-sticky-col': {\r\n '@apply rounded-tl-groups': {},\r\n },\r\n },\r\n '&:last-of-type': {\r\n '.sk-table-sticky-col': {\r\n '@apply rounded-tr-groups': {},\r\n },\r\n },\r\n '.sk-table-col-content': {\r\n '@apply py-4': {},\r\n '@apply px-16': {},\r\n },\r\n\r\n \"&[data-isColumnSortable='true']\": {\r\n '@apply cursor-pointer': {},\r\n },\r\n },\r\n '@apply bg-transparent': {},\r\n '&[data-background=\"true\"]': {\r\n '@apply border-b-0': {},\r\n '@apply bg-vattjom-background-200 border-b-transparent': {},\r\n '.sk-table-col-content': {\r\n '@apply border-b-0': {},\r\n },\r\n '[data-sticky=\"true\"]': {\r\n '@apply bg-vattjom-background-200': {},\r\n },\r\n },\r\n },\r\n\r\n '&-sortbutton': {\r\n '@apply flex items-center': {},\r\n '@apply focus-visible:ring ring-ring ring-offset-0': {},\r\n '@apply focus-visible:bg-vattjom-background-200': {},\r\n '@apply rounded-utility': {},\r\n '@apply pr-16': {},\r\n '@apply h-40': {},\r\n '&[data-sronly=\"true\"]': {\r\n '@apply sr-only': {},\r\n },\r\n\r\n '&-icon': {\r\n '@apply inline-flex pl-sm': {},\r\n\r\n '&-sort': {\r\n '@apply text-dark-secondary': {},\r\n '@apply flex flex-col': {},\r\n\r\n svg: {\r\n '@apply h-16 w-16': {},\r\n '@apply first-of-type:-mb-4': {},\r\n '@apply last-of-type:-mt-4': {},\r\n },\r\n\r\n \"&[data-sortmode='ascending']\": {\r\n '> *': {\r\n '@apply last-of-type:text-dark-ghost': {},\r\n },\r\n },\r\n\r\n \"&[data-sortmode='descending']\": {\r\n '> *': {\r\n '@apply first-of-type:text-dark-ghost': {},\r\n },\r\n },\r\n },\r\n },\r\n },\r\n\r\n '&-tbody': {\r\n '@apply text-dark-secondary bg-transparent': {},\r\n\r\n '&-tr': {\r\n '@apply bg-transparent': {},\r\n '@apply hover:bg-background-100': {},\r\n '@apply border-b-1 border-divider': {},\r\n '@apply last-of-type:border-b-transparent': {},\r\n '@apply focus-visible:shadow-insetring': {},\r\n '&:hover': {\r\n td: {\r\n '@apply bg-background-100': {},\r\n },\r\n },\r\n },\r\n\r\n '&-td, .sk-table-th': {\r\n '@apply p-0': {},\r\n '@apply text-small': {},\r\n '@apply h-64-1': {},\r\n '@apply min-h-64-1': {},\r\n\r\n '@apply focus-visible:shadow-insetring': {},\r\n '.sk-table-col-content': {\r\n '@apply py-8 px-18': {},\r\n '@apply gap-8': {},\r\n },\r\n },\r\n },\r\n\r\n '&-col-content': {\r\n '@apply flex': {},\r\n '@apply w-full': {},\r\n '@apply justify-start items-center': {},\r\n '@apply h-full': {},\r\n },\r\n\r\n '&[data-dense=\"dense\"]': {\r\n '.sk-table': {\r\n '&-col-content': {\r\n '@apply py-0': {},\r\n },\r\n '&-thead': {\r\n th: {\r\n '@apply h-48': {},\r\n },\r\n },\r\n '&-tbody': {\r\n '&-td, .sk-table-th': {\r\n '@apply h-48-1': {},\r\n '@apply min-h-48-1': {},\r\n },\r\n },\r\n },\r\n },\r\n\r\n '[data-sticky=\"true\"]': {\r\n '@apply sticky': {},\r\n '@apply bg-background-content': {},\r\n\r\n '&:first-of-type': {\r\n '@apply left-0': {},\r\n },\r\n '&:last-of-type': {\r\n '@apply right-0': {},\r\n },\r\n },\r\n\r\n '&[data-hasscroll=\"true\"]': {\r\n '[data-sticky=\"true\"]': {\r\n '&:first-of-type': {\r\n '.sk-table-col-content': {\r\n '@apply border-r-1 border-r-divider': {},\r\n },\r\n },\r\n '&:last-of-type': {\r\n '.sk-table-col-content': {\r\n '@apply border-l-1 border-r-divider': {},\r\n },\r\n },\r\n '.sk-table-col-content': {},\r\n },\r\n },\r\n '&-paginationwrapper': {\r\n '@apply max-w-full -order-1 w-full mb-10 @screen-md/footer:order-none @screen-md/footer:w-fit @screen-md/footer:max-w-[33em] @screen-md/footer:px-20 @screen-md/footer:mb-0':\r\n {},\r\n '@apply shrink grow flex justify-center': {},\r\n },\r\n\r\n '&-bottom': {\r\n '@apply @container/footer': {},\r\n '@apply py-14 px-16': {},\r\n '@apply border-t-1 border-divider': {},\r\n '@apply flex flex-row': {},\r\n '@apply flex-wrap': {},\r\n '@apply @screen-lg/footer:gap-32': {},\r\n '@apply @screen-md/footer:gap-16': {},\r\n '@apply gap-8': {},\r\n '@apply justify-between items-center': {},\r\n '&-section': {\r\n '@apply shrink-0': {},\r\n '@apply flex flex-col': {},\r\n '@apply justify-start items-center': {},\r\n '@apply @screen-sm/footer:flex-row': {},\r\n '@apply gap-8': {},\r\n '&-label': {\r\n '@apply font-normal': {},\r\n '@apply text-small': {},\r\n '@apply shrink-0': {},\r\n },\r\n '&.spacer': {\r\n '@apply w-[18rem]': {},\r\n },\r\n },\r\n '&-pagination': {\r\n '@apply grow': {},\r\n '@apply shrink': {},\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["Table","reduce","classes","position","svg","td","th"],"mappings":"oGAAaA,+CAAAA,gvCAAN,IAAMA,MAAQ,iBAAO,CAC1B,oBAAqB,CACnB,mBAAoB,CAAC,EACrB,wBAAyB,CAAC,EAC1B,iCAAkC,CAAC,EACnC,+BAAgC,CAAC,EACjC,kBAAmB,CAAC,EAEpB,WAAY,CACV,mCAAoC,CAAC,EACrC,yBAA0B,CAAC,EAC3B,gBAAiB,CAAC,EAClB,2BAA4B,CAAC,EAC7B,qBAAsB,CACpB,yBAA0B,CAAC,CAC7B,EACA,qBAAsB,CACpB,yBAA0B,CAAC,CAC7B,EACA,wBAAyB,CACvB,uBAAwB,CAAC,CAC3B,CACF,EACA,oEAAqE,CACnE,kBAAmB,CAAC,EACpB,wBAAyB,CAAC,CAC5B,EACA,2BAA4B,CAC1B,mCAAoC,CAAC,CACvC,CACF,EACA,YAAa,CACX,qCAAsC,CAAC,EACvC,6BAA8B,CAAC,EAE/B,YAAa,qCACX,mBAAoB,CAAC,EACrB,gBAAiB,CAAC,GACf,CAAC,OAAQ,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CACV,2BAA4B,CAAC,EAC7B,qBAAsB,CAAC,EACvB,mCAAoC,CAAC,EACrC,uBAAwB,CAAC,EACzB,mBAAoB,CAAC,EACrB,kCAAmC,CAAC,EACpC,kCAAmC,CAAC,EACpC,eAAgB,CAAC,EACjB,sCAAuC,CAAC,EACxC,YAAa,CACX,kBAAmB,CAAC,EACpB,uBAAwB,CAAC,EACzB,oCAAqC,CAAC,EACtC,oCAAqC,CAAC,EACtC,eAAgB,CAAC,EACjB,UAAW,CACT,qBAAsB,CAAC,EACvB,oBAAqB,CAAC,EACtB,kBAAmB,CAAC,CACtB,EACA,WAAY,CACV,mBAAoB,CAAC,CACvB,CACF,EACA,eAAgB,CACd,cAAe,CAAC,EAChB,gBAAiB,CAAC,CACpB,CACF,CACF,CACF"}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/table.ts"],"sourcesContent":["export const Table = () => ({\r\n '.sk-table-wrapper': {\r\n '@apply text-base': {},\r\n '@apply rounded-groups': {},\r\n '@apply border-1 border-divider': {},\r\n '@apply bg-background-content': {},\r\n '@apply relative': {},\r\n\r\n '&-inside': {\r\n '@apply border-0 rounded-t-groups': {},\r\n '@apply overflow-hidden': {},\r\n '@apply w-full': {},\r\n '@apply h-full max-h-full': {},\r\n '&[data-scroll=\"x\"]': {\r\n '@apply overflow-x-auto': {},\r\n },\r\n '&[data-scroll=\"y\"]': {\r\n '@apply overflow-y-auto': {},\r\n },\r\n '&[data-scroll=\"true\"]': {\r\n '@apply overflow-auto': {},\r\n },\r\n },\r\n '&:not([data-background=\"true\"]):not([data-wrappingborder=\"true\"])': {\r\n '@apply border-0': {},\r\n '@apply bg-transparent': {},\r\n },\r\n '.sk-table-wrapper-inside': {\r\n '@apply border-0 rounded-b-groups': {},\r\n },\r\n },\r\n '.sk-table': {\r\n '@apply w-full text-left table-auto': {},\r\n '@apply text-dark-secondary': {},\r\n\r\n '&-caption': {\r\n '@apply text-left': {},\r\n '@apply w-full': {},\r\n ...['left', 'center', 'right'].reduce(\r\n (classes, position) => ({\r\n ...classes,\r\n [`&[data-textalign=\"${position}\"]`]: {\r\n [`@apply text-${position}`]: {},\r\n },\r\n }),\r\n {}\r\n ),\r\n '&-sr': {\r\n '@apply sr-only': {},\r\n },\r\n },\r\n '&-auto': {\r\n '&-cell': {\r\n '@apply w-full': {},\r\n },\r\n },\r\n\r\n '&-thead': {\r\n '@apply border-b-1 border-dark-primary': {},\r\n '&[data-stickyheader=\"true\"]': {\r\n '@apply sticky top-0': {},\r\n '@apply bg-background-content': {},\r\n '@apply border-b-0': {},\r\n '.sk-table-col-content': {\r\n '@apply border-b-1 border-dark-primary': {},\r\n },\r\n },\r\n\r\n '&-tr': {\r\n '@apply table-row': {},\r\n '@apply text-label-small': {},\r\n },\r\n\r\n '.sk-table-th': {\r\n '@apply h-56': {},\r\n '@apply p-0': {},\r\n '&:first-of-type': {\r\n '.sk-table-sticky-col': {\r\n '@apply rounded-tl-groups': {},\r\n },\r\n },\r\n '&:last-of-type': {\r\n '.sk-table-sticky-col': {\r\n '@apply rounded-tr-groups': {},\r\n },\r\n },\r\n '.sk-table-col-content': {\r\n '@apply py-4': {},\r\n '@apply px-16': {},\r\n },\r\n\r\n \"&[data-isColumnSortable='true']\": {\r\n '@apply cursor-pointer': {},\r\n },\r\n },\r\n '@apply bg-transparent': {},\r\n '&[data-background=\"true\"]': {\r\n '@apply border-b-0': {},\r\n '@apply bg-vattjom-background-200 border-b-transparent': {},\r\n '.sk-table-col-content': {\r\n '@apply border-b-0': {},\r\n },\r\n '[data-sticky=\"true\"]': {\r\n '@apply bg-vattjom-background-200': {},\r\n },\r\n },\r\n },\r\n\r\n '&-sortbutton': {\r\n '@apply flex items-center': {},\r\n '@apply focus-visible:ring ring-ring ring-offset-0': {},\r\n '@apply focus-visible:bg-vattjom-background-200': {},\r\n '@apply rounded-utility': {},\r\n '@apply pr-16': {},\r\n '@apply h-40': {},\r\n '&[data-sronly=\"true\"]': {\r\n '@apply sr-only': {},\r\n },\r\n\r\n '&-icon': {\r\n '@apply inline-flex pl-sm': {},\r\n\r\n '&-sort': {\r\n '@apply text-dark-secondary': {},\r\n '@apply flex flex-col': {},\r\n\r\n svg: {\r\n '@apply h-16 w-16': {},\r\n '@apply first-of-type:-mb-4': {},\r\n '@apply last-of-type:-mt-4': {},\r\n },\r\n\r\n \"&[data-sortmode='ascending']\": {\r\n '> *': {\r\n '@apply last-of-type:text-dark-ghost': {},\r\n },\r\n },\r\n\r\n \"&[data-sortmode='descending']\": {\r\n '> *': {\r\n '@apply first-of-type:text-dark-ghost': {},\r\n },\r\n },\r\n },\r\n },\r\n },\r\n\r\n '&-tbody': {\r\n '@apply text-dark-secondary bg-transparent': {},\r\n\r\n '&-tr': {\r\n '@apply bg-transparent': {},\r\n '@apply hover:bg-background-100': {},\r\n '@apply border-b-1 border-divider': {},\r\n '@apply last-of-type:border-b-transparent': {},\r\n '@apply focus-visible:shadow-insetring': {},\r\n '&:hover': {\r\n td: {\r\n '@apply bg-background-100': {},\r\n },\r\n },\r\n },\r\n\r\n '&-td, .sk-table-th': {\r\n '@apply p-0': {},\r\n '@apply text-small': {},\r\n '@apply h-64-1': {},\r\n '@apply min-h-64-1': {},\r\n\r\n '@apply focus-visible:shadow-insetring': {},\r\n '.sk-table-col-content': {\r\n '@apply py-8 px-18': {},\r\n '@apply gap-8': {},\r\n },\r\n },\r\n },\r\n\r\n '&-col-content': {\r\n '@apply flex': {},\r\n '@apply w-full': {},\r\n '@apply justify-start items-center': {},\r\n '@apply h-full': {},\r\n },\r\n\r\n '&[data-dense=\"dense\"]': {\r\n '.sk-table': {\r\n '&-col-content': {\r\n '@apply py-0': {},\r\n },\r\n '&-thead': {\r\n th: {\r\n '@apply h-48': {},\r\n },\r\n },\r\n '&-tbody': {\r\n '&-td, .sk-table-th': {\r\n '@apply h-48-1': {},\r\n '@apply min-h-48-1': {},\r\n },\r\n },\r\n },\r\n },\r\n\r\n '[data-sticky=\"true\"]': {\r\n '@apply sticky': {},\r\n '@apply bg-background-content': {},\r\n\r\n '&:first-of-type': {\r\n '@apply left-0': {},\r\n },\r\n '&:last-of-type': {\r\n '@apply right-0': {},\r\n },\r\n },\r\n\r\n '&[data-hasscroll=\"true\"]': {\r\n '[data-sticky=\"true\"]': {\r\n '&:first-of-type': {\r\n '.sk-table-col-content': {\r\n '@apply border-r-1 border-r-divider': {},\r\n },\r\n },\r\n '&:last-of-type': {\r\n '.sk-table-col-content': {\r\n '@apply border-l-1 border-r-divider': {},\r\n },\r\n },\r\n '.sk-table-col-content': {},\r\n },\r\n },\r\n '&-paginationwrapper': {\r\n '@apply max-w-full -order-1 w-full mb-10 @screen-md/footer:order-none @screen-md/footer:w-fit @screen-md/footer:max-w-[33em] @screen-md/footer:px-20 @screen-md/footer:mb-0':\r\n {},\r\n '@apply shrink grow flex justify-center': {},\r\n },\r\n\r\n '&-bottom': {\r\n '@apply @container/footer': {},\r\n '@apply py-14 px-16': {},\r\n '@apply border-t-1 border-divider': {},\r\n '@apply flex flex-row': {},\r\n '@apply flex-wrap': {},\r\n '@apply @screen-lg/footer:gap-32': {},\r\n '@apply @screen-md/footer:gap-16': {},\r\n '@apply gap-8': {},\r\n '@apply justify-between items-center': {},\r\n '&-section': {\r\n '@apply shrink-0': {},\r\n '@apply flex flex-col': {},\r\n '@apply justify-start items-center': {},\r\n '@apply @screen-sm/footer:flex-row': {},\r\n '@apply gap-8': {},\r\n '&-label': {\r\n '@apply font-normal': {},\r\n '@apply text-small': {},\r\n '@apply shrink-0': {},\r\n },\r\n '&.spacer': {\r\n '@apply w-[18rem]': {},\r\n },\r\n },\r\n '&-pagination': {\r\n '@apply grow': {},\r\n '@apply shrink': {},\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["Table","reduce","classes","position","svg","td","th"],"mappings":";;;;+BAAaA;;;eAAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAN,IAAMA,QAAQ;WAAO;QAC1B,qBAAqB;YACnB,oBAAoB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;oBAChB,iBAAiB,CAAC;gBACpB;YACF;QACF;IACF"}
|
|
@@ -1,2 +1,135 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "Tabs", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return Tabs;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
function _define_property(obj, key, value) {
|
|
12
|
+
if (key in obj) {
|
|
13
|
+
Object.defineProperty(obj, key, {
|
|
14
|
+
value: value,
|
|
15
|
+
enumerable: true,
|
|
16
|
+
configurable: true,
|
|
17
|
+
writable: true
|
|
18
|
+
});
|
|
19
|
+
} else {
|
|
20
|
+
obj[key] = value;
|
|
21
|
+
}
|
|
22
|
+
return obj;
|
|
23
|
+
}
|
|
24
|
+
function _object_spread(target) {
|
|
25
|
+
for(var i = 1; i < arguments.length; i++){
|
|
26
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
27
|
+
var ownKeys = Object.keys(source);
|
|
28
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
29
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
30
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
31
|
+
}));
|
|
32
|
+
}
|
|
33
|
+
ownKeys.forEach(function(key) {
|
|
34
|
+
_define_property(target, key, source[key]);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
return target;
|
|
38
|
+
}
|
|
39
|
+
function ownKeys(object, enumerableOnly) {
|
|
40
|
+
var keys = Object.keys(object);
|
|
41
|
+
if (Object.getOwnPropertySymbols) {
|
|
42
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
43
|
+
if (enumerableOnly) {
|
|
44
|
+
symbols = symbols.filter(function(sym) {
|
|
45
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
keys.push.apply(keys, symbols);
|
|
49
|
+
}
|
|
50
|
+
return keys;
|
|
51
|
+
}
|
|
52
|
+
function _object_spread_props(target, source) {
|
|
53
|
+
source = source != null ? source : {};
|
|
54
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
55
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
56
|
+
} else {
|
|
57
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
58
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
return target;
|
|
62
|
+
}
|
|
63
|
+
var Tabs = function(colors) {
|
|
64
|
+
return {
|
|
65
|
+
'.sk-tabs': {
|
|
66
|
+
'@apply w-full': {},
|
|
67
|
+
'&-list': {
|
|
68
|
+
'@apply flex items-center gap-20 border-b-1 border-transparent': {},
|
|
69
|
+
'&[data-underline="true"]': {
|
|
70
|
+
'@apply border-divider': {}
|
|
71
|
+
},
|
|
72
|
+
'&-item': _object_spread_props(_object_spread({
|
|
73
|
+
'@apply flex flex-col gap-y-10': {},
|
|
74
|
+
'&[data-size="sm"]': {
|
|
75
|
+
'> button': {
|
|
76
|
+
'@apply text-small': {}
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
'&:hover': {
|
|
80
|
+
// hover
|
|
81
|
+
'.sk-tabs-list-item-divider': {
|
|
82
|
+
'@apply opacity-90': {}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
'&-button': {
|
|
86
|
+
'@apply h-auto border-0 py-0 px-2': {},
|
|
87
|
+
// ring
|
|
88
|
+
'@apply rounded-4': {},
|
|
89
|
+
'&[aria-readonly="true"]': {
|
|
90
|
+
'@apply text-dark-disabled cursor-default': {}
|
|
91
|
+
},
|
|
92
|
+
'&:focus-visible': {
|
|
93
|
+
// focus
|
|
94
|
+
'@apply ring-[.3rem]': {},
|
|
95
|
+
'@apply ring-ring': {},
|
|
96
|
+
'@apply ring-offset-background-content': {},
|
|
97
|
+
'@apply outline-0': {}
|
|
98
|
+
},
|
|
99
|
+
'.sk-callout': {
|
|
100
|
+
'@apply absolute self-end': {}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
'.sk-tabs-list-item-divider': {
|
|
104
|
+
'@apply m-0 min-h-2 h-2 rounded-t-24 opacity-0': {}
|
|
105
|
+
},
|
|
106
|
+
'&[data-current="true"]': {
|
|
107
|
+
'.sk-tabs-list-item-divider': {
|
|
108
|
+
'@apply opacity-100': {}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}, colors.reduce(function(styles, color) {
|
|
112
|
+
return _object_spread_props(_object_spread({}, styles), _define_property({}, '&[data-color="'.concat(color, '"]'), {
|
|
113
|
+
'.sk-tabs-list-item-divider': _define_property({}, "@apply bg-".concat(color, "-surface-primary"), {})
|
|
114
|
+
}));
|
|
115
|
+
}, {})), {
|
|
116
|
+
"&[data-color='tertiary']": {
|
|
117
|
+
'.sk-tabs-list-item-divider': {
|
|
118
|
+
'@apply bg-primary-surface': {}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
})
|
|
122
|
+
},
|
|
123
|
+
'&-panels': {
|
|
124
|
+
'@apply mt-20': {}
|
|
125
|
+
},
|
|
126
|
+
'&-content': {
|
|
127
|
+
'&:not([data-selected="true"])': {
|
|
128
|
+
'@apply hidden': {}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
|
|
2
135
|
//# sourceMappingURL=tabs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/tabs.ts"],"sourcesContent":["export const Tabs = (colors: string[]) => ({\n '.sk-tabs': {\n '@apply w-full': {},\n\n '&-list': {\n '@apply flex items-center gap-20 border-b-1 border-transparent': {},\n\n '&[data-underline=\"true\"]': {\n '@apply border-divider': {},\n },\n\n '&-item': {\n '@apply flex flex-col gap-y-10': {},\n\n '&[data-size=\"sm\"]': {\n '> button': {\n '@apply text-small': {},\n },\n },\n\n '&-button': {\n '@apply h-auto border-0 py-0 px-2': {},\n // ring\n '@apply rounded-4': {},\n\n '&[aria-readonly=\"true\"]': {\n '@apply text-dark-disabled cursor-default': {},\n },\n\n '
|
|
1
|
+
{"version":3,"sources":["../../../src/components/tabs.ts"],"sourcesContent":["export const Tabs = (colors: string[]) => ({\r\n '.sk-tabs': {\r\n '@apply w-full': {},\r\n\r\n '&-list': {\r\n '@apply flex items-center gap-20 border-b-1 border-transparent': {},\r\n\r\n '&[data-underline=\"true\"]': {\r\n '@apply border-divider': {},\r\n },\r\n\r\n '&-item': {\r\n '@apply flex flex-col gap-y-10': {},\r\n\r\n '&[data-size=\"sm\"]': {\r\n '> button': {\r\n '@apply text-small': {},\r\n },\r\n },\r\n\r\n '&:hover': {\r\n // hover\r\n '.sk-tabs-list-item-divider': {\r\n '@apply opacity-90': {},\r\n },\r\n },\r\n\r\n '&-button': {\r\n '@apply h-auto border-0 py-0 px-2': {},\r\n // ring\r\n '@apply rounded-4': {},\r\n\r\n '&[aria-readonly=\"true\"]': {\r\n '@apply text-dark-disabled cursor-default': {},\r\n },\r\n\r\n '&:focus-visible': {\r\n // focus\r\n '@apply ring-[.3rem]': {},\r\n '@apply ring-ring': {},\r\n '@apply ring-offset-background-content': {},\r\n '@apply outline-0': {},\r\n },\r\n\r\n '.sk-callout': {\r\n '@apply absolute self-end': {},\r\n },\r\n },\r\n\r\n '.sk-tabs-list-item-divider': {\r\n '@apply m-0 min-h-2 h-2 rounded-t-24 opacity-0': {},\r\n },\r\n\r\n '&[data-current=\"true\"]': {\r\n '.sk-tabs-list-item-divider': {\r\n '@apply opacity-100': {},\r\n },\r\n },\r\n\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n [`&[data-color=\"${color}\"]`]: {\r\n '.sk-tabs-list-item-divider': {\r\n [`@apply bg-${color}-surface-primary`]: {},\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n \"&[data-color='tertiary']\": {\r\n '.sk-tabs-list-item-divider': {\r\n '@apply bg-primary-surface': {},\r\n },\r\n },\r\n },\r\n },\r\n\r\n '&-panels': {\r\n '@apply mt-20': {},\r\n },\r\n\r\n '&-content': {\r\n '&:not([data-selected=\"true\"])': {\r\n '@apply hidden': {},\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["Tabs","colors","reduce","styles","color"],"mappings":";;;;+BAAaA;;;eAAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAN,IAAMA,OAAO,SAACC;WAAsB;QACzC,YAAY;YACV,iBAAiB,CAAC;YAElB,UAAU;gBACR,iEAAiE,CAAC;gBAElE,4BAA4B;oBAC1B,yBAAyB,CAAC;gBAC5B;gBAEA,UAAU;oBACR,iCAAiC,CAAC;oBAElC,qBAAqB;wBACnB,YAAY;4BACV,qBAAqB,CAAC;wBACxB;oBACF;oBAEA,WAAW;wBACT,QAAQ;wBACR,8BAA8B;4BAC5B,qBAAqB,CAAC;wBACxB;oBACF;oBAEA,YAAY;wBACV,oCAAoC,CAAC;wBACrC,OAAO;wBACP,oBAAoB,CAAC;wBAErB,2BAA2B;4BACzB,4CAA4C,CAAC;wBAC/C;wBAEA,mBAAmB;4BACjB,QAAQ;4BACR,uBAAuB,CAAC;4BACxB,oBAAoB,CAAC;4BACrB,yCAAyC,CAAC;4BAC1C,oBAAoB,CAAC;wBACvB;wBAEA,eAAe;4BACb,4BAA4B,CAAC;wBAC/B;oBACF;oBAEA,8BAA8B;wBAC5B,iDAAiD,CAAC;oBACpD;oBAEA,0BAA0B;wBACxB,8BAA8B;4BAC5B,sBAAsB,CAAC;wBACzB;oBACF;mBAEGA,OAAOC,MAAM,CACd,SAACC,QAAQC;2BAAW,wCACfD,SACH,qBAAC,AAAC,iBAAsB,OAANC,OAAM,OAAM;wBAC5B,8BACE,qBAAC,AAAC,aAAkB,OAANA,OAAM,qBAAoB,CAAC;oBAE7C;mBAEF,CAAC;oBAEH,4BAA4B;wBAC1B,8BAA8B;4BAC5B,6BAA6B,CAAC;wBAChC;oBACF;;YAEJ;YAEA,YAAY;gBACV,gBAAgB,CAAC;YACnB;YAEA,aAAa;gBACX,iCAAiC;oBAC/B,iBAAiB,CAAC;gBACpB;YACF;QACF;IACF"}
|
|
@@ -1,2 +1,72 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "Tooltip", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return Tooltip;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var Tooltip = function() {
|
|
12
|
+
return {
|
|
13
|
+
'.sk-tooltip': {
|
|
14
|
+
'@apply inline-flex justify-center items-center': {},
|
|
15
|
+
'@apply w-fit h-fit': {},
|
|
16
|
+
'@apply grow-0': {},
|
|
17
|
+
'&-text': {
|
|
18
|
+
'@apply inline-flex': {},
|
|
19
|
+
'@apply bg-primary-surface shadow': {},
|
|
20
|
+
'@apply px-16 py-8': {},
|
|
21
|
+
'@apply rounded-utility': {},
|
|
22
|
+
'@apply text-light-primary text-small': {},
|
|
23
|
+
'@apply font-bold': {},
|
|
24
|
+
'@apply w-fit h-fit': {},
|
|
25
|
+
'@apply grow-0': {},
|
|
26
|
+
'@apply min-h-34': {}
|
|
27
|
+
},
|
|
28
|
+
//Arrow
|
|
29
|
+
'&::after, &::before': {
|
|
30
|
+
'@apply h-0 w-0 overflow-hidden': {}
|
|
31
|
+
},
|
|
32
|
+
// Above
|
|
33
|
+
'&[data-position="above"]': {
|
|
34
|
+
'@apply flex-col': {},
|
|
35
|
+
'@apply pb-2': {},
|
|
36
|
+
'&::after': {
|
|
37
|
+
'@apply content-[""] border-solid border-6 border-b-0': {},
|
|
38
|
+
'@apply border-t-primary-surface border-r-transparent border-b-transparent border-l-transparent': {}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
// Below
|
|
42
|
+
'&[data-position="below"]': {
|
|
43
|
+
'@apply flex-col': {},
|
|
44
|
+
'@apply pt-2': {},
|
|
45
|
+
'&::before': {
|
|
46
|
+
'@apply content-[""] border-solid border-6 border-t-0': {},
|
|
47
|
+
'@apply border-t-transparent border-r-transparent border-b-primary-surface border-l-transparent': {}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
// Left
|
|
51
|
+
'&[data-position="left"]': {
|
|
52
|
+
'@apply flex-row': {},
|
|
53
|
+
'@apply pr-2 py-3': {},
|
|
54
|
+
'&::after': {
|
|
55
|
+
'@apply content-[""] border-solid border-6 border-r-0': {},
|
|
56
|
+
'@apply border-t-transparent border-r-transparent border-b-transparent border-l-primary-surface': {}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
// Right
|
|
60
|
+
'&[data-position="right"]': {
|
|
61
|
+
'@apply flex-row': {},
|
|
62
|
+
'@apply pl-2 py-3': {},
|
|
63
|
+
'&::before': {
|
|
64
|
+
'@apply content-[""] border-solid border-6 border-l-0': {},
|
|
65
|
+
'@apply border-t-transparent border-r-primary-surface border-b-transparent border-l-transparent': {}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
|
|
2
72
|
//# sourceMappingURL=tooltip.js.map
|