@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,194 +1,268 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
'@apply bg-right-8': {},
|
|
22
|
-
//Padding + icon width - border width
|
|
23
|
-
'@apply pr-32': {}
|
|
24
|
-
},
|
|
25
|
-
'&.sk-form-select-md': {
|
|
26
|
-
//Padding - border width
|
|
27
|
-
'@apply pl-16': {},
|
|
28
|
-
//Background position - border width
|
|
29
|
-
'@apply bg-right-12': {},
|
|
30
|
-
//Padding + icon width - border width
|
|
31
|
-
'@apply pr-42': {}
|
|
32
|
-
},
|
|
33
|
-
'&.sk-form-select-lg': {
|
|
34
|
-
//Padding - border width
|
|
35
|
-
'@apply pl-18': {},
|
|
36
|
-
//Background position - border width
|
|
37
|
-
'@apply bg-right-16': {},
|
|
38
|
-
//Padding + icon width - border width
|
|
39
|
-
'@apply pr-48': {}
|
|
40
|
-
},
|
|
41
|
-
//Disabled
|
|
42
|
-
'&[aria-disabled="true"]': {
|
|
43
|
-
'@apply bg-tertiary-surface-disabled': {}
|
|
44
|
-
}
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "Select", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return Select;
|
|
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;
|
|
45
21
|
}
|
|
46
|
-
|
|
22
|
+
return obj;
|
|
47
23
|
}
|
|
48
|
-
function
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
'@apply bg-primitives-overlay-lighten-10': {},
|
|
57
|
-
'@apply dark:bg-primitives-overlay-darken-6': {},
|
|
58
|
-
'@apply hover:bg-primitives-overlay-lighten-10': {},
|
|
59
|
-
'@apply dark:hover:bg-primitives-overlay-darken-6': {},
|
|
60
|
-
'&.sk-form-select-sm': {
|
|
61
|
-
//Padding - border width
|
|
62
|
-
'@apply pl-13': {},
|
|
63
|
-
//Background position - border width
|
|
64
|
-
'@apply bg-[center_right_0.643em]': {},
|
|
65
|
-
//Padding + icon width - border width
|
|
66
|
-
'@apply pr-34-1': {},
|
|
67
|
-
'&[aria-invalid="true"]': {
|
|
68
|
-
//Padding - border width
|
|
69
|
-
'@apply pl-12': {},
|
|
70
|
-
//Background position - border width
|
|
71
|
-
'@apply bg-right-8': {},
|
|
72
|
-
//Padding + icon width - border width
|
|
73
|
-
'@apply pr-32': {}
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
'&.sk-form-select-md': {
|
|
77
|
-
//Padding - border width
|
|
78
|
-
'@apply pl-17': {},
|
|
79
|
-
//Background position - border width
|
|
80
|
-
'@apply bg-[center_right_0.8125em]': {},
|
|
81
|
-
//Padding + icon width - border width
|
|
82
|
-
'@apply pr-44-1': {},
|
|
83
|
-
'&[aria-invalid="true"]': {
|
|
84
|
-
//Padding - border width
|
|
85
|
-
'@apply pl-16': {},
|
|
86
|
-
//Background position - border width
|
|
87
|
-
'@apply bg-right-12': {},
|
|
88
|
-
//Padding + icon width - border width
|
|
89
|
-
'@apply pr-42': {}
|
|
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
|
+
}));
|
|
90
32
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
'@apply pr-48': {}
|
|
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
|
+
});
|
|
106
47
|
}
|
|
107
|
-
|
|
108
|
-
//Disabled
|
|
109
|
-
'&[aria-disabled="true"]': {
|
|
110
|
-
'@apply bg-primitives-overlay-darken-1': {},
|
|
111
|
-
'@apply dark:bg-primitives-overlay-lighten-1': {},
|
|
112
|
-
'@apply border-primitives-overlay-darken-3': {},
|
|
113
|
-
'@apply dark:border-primitives-overlay-lighten-3': {},
|
|
114
|
-
'@apply hover:border-primitives-overlay-darken-3': {},
|
|
115
|
-
'@apply dark:hover:border-primitives-overlay-lighten-3': {}
|
|
116
|
-
}
|
|
48
|
+
keys.push.apply(keys, symbols);
|
|
117
49
|
}
|
|
118
|
-
|
|
50
|
+
return keys;
|
|
119
51
|
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
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
|
+
function chevronDown(color) {
|
|
64
|
+
//TODO: This wont work with CSS variables. The colors are set here and wont work with themes
|
|
65
|
+
return "<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='".concat(color, "' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6' /></svg>");
|
|
66
|
+
}
|
|
67
|
+
function tertiary() {
|
|
68
|
+
return {
|
|
69
|
+
'&-tertiary': {
|
|
70
|
+
'@apply border-2': {},
|
|
71
|
+
'@apply bg-tertiary-surface': {},
|
|
72
|
+
'@apply hover:bg-tertiary-surface-hover': {},
|
|
73
|
+
'@apply border-transparent': {},
|
|
74
|
+
'&.sk-form-select-sm': {
|
|
75
|
+
//Padding - border width
|
|
76
|
+
'@apply pl-12': {},
|
|
77
|
+
//Background position - border width
|
|
78
|
+
'@apply bg-right-8': {},
|
|
79
|
+
//Padding + icon width - border width
|
|
80
|
+
'@apply pr-32': {}
|
|
81
|
+
},
|
|
82
|
+
'&.sk-form-select-md': {
|
|
83
|
+
//Padding - border width
|
|
84
|
+
'@apply pl-16': {},
|
|
85
|
+
//Background position - border width
|
|
86
|
+
'@apply bg-right-12': {},
|
|
87
|
+
//Padding + icon width - border width
|
|
88
|
+
'@apply pr-42': {}
|
|
89
|
+
},
|
|
90
|
+
'&.sk-form-select-lg': {
|
|
91
|
+
//Padding - border width
|
|
92
|
+
'@apply pl-18': {},
|
|
93
|
+
//Background position - border width
|
|
94
|
+
'@apply bg-right-16': {},
|
|
95
|
+
//Padding + icon width - border width
|
|
96
|
+
'@apply pr-48': {}
|
|
97
|
+
},
|
|
98
|
+
//Disabled
|
|
99
|
+
'&[aria-disabled="true"]': {
|
|
100
|
+
'@apply bg-tertiary-surface-disabled': {}
|
|
101
|
+
}
|
|
164
102
|
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
'
|
|
170
|
-
|
|
171
|
-
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
function primary() {
|
|
106
|
+
return {
|
|
107
|
+
'&-primary': {
|
|
108
|
+
'@apply border-1': {},
|
|
109
|
+
'@apply border-input-field-outline': {},
|
|
110
|
+
'@apply hover:border-input-field-outline-hover': {},
|
|
111
|
+
'@apply bg-input-field-surface': {},
|
|
112
|
+
'@apply hover:bg-input-field-surface': {},
|
|
113
|
+
'&.sk-form-select-sm': {
|
|
114
|
+
//Padding - border width
|
|
115
|
+
'@apply pl-13': {},
|
|
116
|
+
//Background position - border width
|
|
117
|
+
'@apply bg-[center_right_0.643em]': {},
|
|
118
|
+
//Padding + icon width - border width
|
|
119
|
+
'@apply pr-34-1': {},
|
|
120
|
+
'&[aria-invalid="true"]': {
|
|
121
|
+
//Padding - border width
|
|
122
|
+
'@apply pl-12': {},
|
|
123
|
+
//Background position - border width
|
|
124
|
+
'@apply bg-right-8': {},
|
|
125
|
+
//Padding + icon width - border width
|
|
126
|
+
'@apply pr-32': {}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
'&.sk-form-select-md': {
|
|
130
|
+
//Padding - border width
|
|
131
|
+
'@apply pl-17': {},
|
|
132
|
+
//Background position - border width
|
|
133
|
+
'@apply bg-[center_right_0.8125em]': {},
|
|
134
|
+
//Padding + icon width - border width
|
|
135
|
+
'@apply pr-44-1': {},
|
|
136
|
+
'&[aria-invalid="true"]': {
|
|
137
|
+
//Padding - border width
|
|
138
|
+
'@apply pl-16': {},
|
|
139
|
+
//Background position - border width
|
|
140
|
+
'@apply bg-right-12': {},
|
|
141
|
+
//Padding + icon width - border width
|
|
142
|
+
'@apply pr-42': {}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
'&.sk-form-select-lg': {
|
|
146
|
+
//Padding - border width
|
|
147
|
+
'@apply pl-19': {},
|
|
148
|
+
//Background position - border width
|
|
149
|
+
'@apply bg-[center_right_0.944em]': {},
|
|
150
|
+
//Padding + icon width - border width
|
|
151
|
+
'@apply pr-50-1': {},
|
|
152
|
+
'&[aria-invalid="true"]': {
|
|
153
|
+
//Padding - border width
|
|
154
|
+
'@apply pl-18': {},
|
|
155
|
+
//Background position - border width
|
|
156
|
+
'@apply bg-right-16': {},
|
|
157
|
+
//Padding + icon width - border width
|
|
158
|
+
'@apply pr-48': {}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
//Disabled
|
|
162
|
+
'&[aria-disabled="true"],&:disabled': {
|
|
163
|
+
'@apply bg-input-field-surface-disabled': {},
|
|
164
|
+
'@apply hover:bg-input-field-surface-disabled': {},
|
|
165
|
+
'@apply border-input-field-outline-disabled': {},
|
|
166
|
+
'@apply hover:border-input-field-outline-disabled': {}
|
|
167
|
+
}
|
|
172
168
|
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
'
|
|
178
|
-
|
|
179
|
-
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
var Select = function() {
|
|
172
|
+
return {
|
|
173
|
+
'.sk-form-select': _object_spread_props(_object_spread({
|
|
174
|
+
'@apply h-fit': {},
|
|
175
|
+
'@apply w-fit': {},
|
|
176
|
+
'@apply box-border': {},
|
|
177
|
+
'@apply focus:border-transparent': {},
|
|
178
|
+
'@apply rounded-button': {},
|
|
179
|
+
'@apply text-dark-secondary': {},
|
|
180
|
+
'@apply placeholder:text-dark-secondary': {},
|
|
181
|
+
'@apply hover:placeholder:text-dark-primary': {},
|
|
182
|
+
'@apply focus:placeholder:text-dark-primary': {},
|
|
183
|
+
'@apply hover:text-dark-primary': {},
|
|
184
|
+
'@apply focus:text-dark-primary': {},
|
|
185
|
+
'@apply py-6': {},
|
|
186
|
+
'@apply focus:ring focus:ring-ring focus:ring-offset': {},
|
|
187
|
+
'@apply focus:outline-0': {},
|
|
188
|
+
backgroundImage: [
|
|
189
|
+
'url("data:image/svg+xml;utf-8,'.concat(chevronDown('rgb(68,68,80)'), '")')
|
|
190
|
+
],
|
|
191
|
+
'&:hover, &:focus': {
|
|
192
|
+
backgroundImage: [
|
|
193
|
+
'url("data:image/svg+xml;utf-8,'.concat(chevronDown('rgb(28,28,40)'), '")')
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
//Invalid
|
|
197
|
+
'&[aria-invalid="true"]': {
|
|
198
|
+
'@apply border-2 border-error-surface-primary': {}
|
|
199
|
+
},
|
|
200
|
+
//Disabled
|
|
201
|
+
'&[aria-disabled="true"]': {
|
|
202
|
+
'@apply opacity-100': {},
|
|
203
|
+
'@apply text-dark-disabled': {},
|
|
204
|
+
'@apply placeholder:text-dark-disabled': {},
|
|
205
|
+
'@apply bg-tertiary-surface-disabled': {},
|
|
206
|
+
backgroundImage: [
|
|
207
|
+
'url("data:image/svg+xml;utf-8,'.concat(chevronDown('rgba(28,28,40, 0.64)'), '")')
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
}, tertiary(), primary()), {
|
|
211
|
+
//Droprown
|
|
212
|
+
'*': {
|
|
213
|
+
'@apply bg-background-content': {}
|
|
214
|
+
},
|
|
215
|
+
//readOnly
|
|
216
|
+
'&[readonly], &[readonly="true"]': {
|
|
217
|
+
'@apply border-input-field-outline-disabled': {},
|
|
218
|
+
'@apply bg-input-field-surface-disabled': {},
|
|
219
|
+
'@apply text-dark-secondary': {},
|
|
220
|
+
'@apply pointer-events-none': {},
|
|
221
|
+
backgroundImage: [
|
|
222
|
+
'url("data:image/svg+xml;utf-8,'.concat(chevronDown('rgba(28,28,40, 0.64)'), '")')
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
'&-sm': {
|
|
226
|
+
'@apply h-32': {},
|
|
227
|
+
'@apply text-label-small': {},
|
|
228
|
+
'@apply rounded-button-sm': {},
|
|
229
|
+
'*': {
|
|
230
|
+
'@apply text-input-small': {}
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
'&-md': {
|
|
234
|
+
'@apply h-40': {},
|
|
235
|
+
'@apply text-label-medium': {},
|
|
236
|
+
'@apply rounded-button-md': {},
|
|
237
|
+
'*': {
|
|
238
|
+
'@apply text-input-medium': {}
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
'&-lg': {
|
|
242
|
+
'@apply h-48': {},
|
|
243
|
+
'@apply text-label-large': {},
|
|
244
|
+
'@apply rounded-button-lg': {},
|
|
245
|
+
'*': {
|
|
246
|
+
'@apply text-input-large': {}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}),
|
|
250
|
+
'.dark .sk-form-select': {
|
|
251
|
+
backgroundImage: [
|
|
252
|
+
'url("data:image/svg+xml;utf-8,'.concat(chevronDown('rgb(229,229,229)'), '")')
|
|
253
|
+
],
|
|
254
|
+
'&:hover, &:focus': {
|
|
255
|
+
backgroundImage: [
|
|
256
|
+
'url("data:image/svg+xml;utf-8,'.concat(chevronDown('rgb(255,255,255)'), '")')
|
|
257
|
+
]
|
|
258
|
+
},
|
|
259
|
+
'&[aria-disabled="true"]': {
|
|
260
|
+
backgroundImage: [
|
|
261
|
+
'url("data:image/svg+xml;utf-8,'.concat(chevronDown('rgba(255,255,255, 0.64)'), '")')
|
|
262
|
+
]
|
|
263
|
+
}
|
|
180
264
|
}
|
|
181
|
-
|
|
182
|
-
}),
|
|
183
|
-
'.dark .sk-form-select': {
|
|
184
|
-
backgroundImage: ["url(\"data:image/svg+xml;utf-8," + chevronDown('rgb(229,229,229)') + "\")"],
|
|
185
|
-
'&:hover, &:focus': {
|
|
186
|
-
backgroundImage: ["url(\"data:image/svg+xml;utf-8," + chevronDown('rgb(255,255,255)') + "\")"]
|
|
187
|
-
},
|
|
188
|
-
'&[aria-disabled="true"]': {
|
|
189
|
-
backgroundImage: ["url(\"data:image/svg+xml;utf-8," + chevronDown('rgba(255,255,255, 0.64)') + "\")"]
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
};
|
|
265
|
+
};
|
|
193
266
|
};
|
|
267
|
+
|
|
194
268
|
//# sourceMappingURL=select.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","names":["chevronDown","color","tertiary","primary","Select","exports","_extends","backgroundImage"],"sources":["../../../src/components/select.ts"],"sourcesContent":["function chevronDown(color: string) {\r\n //TODO: This wont work with CSS variables. The colors are set here and wont work with themes\r\n return `<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='${color}' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6' /></svg>`;\r\n}\r\n\r\nfunction tertiary() {\r\n return {\r\n '&-tertiary': {\r\n '@apply border-2': {},\r\n\r\n '@apply bg-tertiary-surface': {},\r\n '@apply hover:bg-tertiary-surface-hover': {},\r\n '@apply border-transparent': {},\r\n\r\n '&.sk-form-select-sm': {\r\n //Padding - border width\r\n '@apply pl-12': {},\r\n //Background position - border width\r\n '@apply bg-right-8': {},\r\n\r\n //Padding + icon width - border width\r\n '@apply pr-32': {},\r\n },\r\n '&.sk-form-select-md': {\r\n //Padding - border width\r\n '@apply pl-16': {},\r\n //Background position - border width\r\n '@apply bg-right-12': {},\r\n //Padding + icon width - border width\r\n '@apply pr-42': {},\r\n },\r\n '&.sk-form-select-lg': {\r\n //Padding - border width\r\n '@apply pl-18': {},\r\n //Background position - border width\r\n '@apply bg-right-16': {},\r\n //Padding + icon width - border width\r\n '@apply pr-48': {},\r\n },\r\n //Disabled\r\n '&[aria-disabled=\"true\"]': {\r\n '@apply bg-tertiary-surface-disabled': {},\r\n },\r\n },\r\n };\r\n}\r\n\r\nfunction primary() {\r\n return {\r\n '&-primary': {\r\n '@apply border-1': {},\r\n '@apply border-primitives-overlay-darken-6': {},\r\n '@apply dark:border-primitives-overlay-lighten-6': {},\r\n '@apply hover:border-primitives-overlay-darken-8': {},\r\n '@apply dark:hover:border-primitives-overlay-lighten-4': {},\r\n '@apply bg-primitives-overlay-lighten-10': {},\r\n '@apply dark:bg-primitives-overlay-darken-6': {},\r\n '@apply hover:bg-primitives-overlay-lighten-10': {},\r\n '@apply dark:hover:bg-primitives-overlay-darken-6': {},\r\n\r\n '&.sk-form-select-sm': {\r\n //Padding - border width\r\n '@apply pl-13': {},\r\n //Background position - border width\r\n '@apply bg-[center_right_0.643em]': {},\r\n //Padding + icon width - border width\r\n '@apply pr-34-1': {},\r\n\r\n '&[aria-invalid=\"true\"]': {\r\n //Padding - border width\r\n '@apply pl-12': {},\r\n //Background position - border width\r\n '@apply bg-right-8': {},\r\n //Padding + icon width - border width\r\n '@apply pr-32': {},\r\n },\r\n },\r\n '&.sk-form-select-md': {\r\n //Padding - border width\r\n '@apply pl-17': {},\r\n //Background position - border width\r\n '@apply bg-[center_right_0.8125em]': {},\r\n //Padding + icon width - border width\r\n '@apply pr-44-1': {},\r\n\r\n '&[aria-invalid=\"true\"]': {\r\n //Padding - border width\r\n '@apply pl-16': {},\r\n //Background position - border width\r\n '@apply bg-right-12': {},\r\n //Padding + icon width - border width\r\n '@apply pr-42': {},\r\n },\r\n },\r\n '&.sk-form-select-lg': {\r\n //Padding - border width\r\n '@apply pl-19': {},\r\n //Background position - border width\r\n '@apply bg-[center_right_0.944em]': {},\r\n //Padding + icon width - border width\r\n '@apply pr-50-1': {},\r\n\r\n '&[aria-invalid=\"true\"]': {\r\n //Padding - border width\r\n '@apply pl-18': {},\r\n //Background position - border width\r\n '@apply bg-right-16': {},\r\n //Padding + icon width - border width\r\n '@apply pr-48': {},\r\n },\r\n },\r\n //Disabled\r\n '&[aria-disabled=\"true\"]': {\r\n '@apply bg-primitives-overlay-darken-1': {},\r\n '@apply dark:bg-primitives-overlay-lighten-1': {},\r\n '@apply border-primitives-overlay-darken-3': {},\r\n '@apply dark:border-primitives-overlay-lighten-3': {},\r\n '@apply hover:border-primitives-overlay-darken-3': {},\r\n '@apply dark:hover:border-primitives-overlay-lighten-3': {},\r\n },\r\n },\r\n };\r\n}\r\n\r\nexport const Select = () => ({\r\n '.sk-form-select': {\r\n '@apply h-fit': {},\r\n '@apply w-fit': {},\r\n '@apply box-border': {},\r\n '@apply focus:border-transparent': {},\r\n '@apply rounded-button': {},\r\n '@apply text-dark-secondary': {},\r\n '@apply placeholder:text-dark-secondary': {},\r\n '@apply hover:placeholder:text-dark-primary': {},\r\n '@apply focus:placeholder:text-dark-primary': {},\r\n '@apply hover:text-dark-primary': {},\r\n '@apply focus:text-dark-primary': {},\r\n '@apply py-6': {},\r\n '@apply focus:ring focus:ring-ring focus:ring-offset': {},\r\n '@apply focus:outline-0': {},\r\n\r\n backgroundImage: [`url(\"data:image/svg+xml;utf-8,${chevronDown('rgb(68,68,80)')}\")`],\r\n '&:hover, &:focus': {\r\n backgroundImage: [`url(\"data:image/svg+xml;utf-8,${chevronDown('rgb(28,28,40)')}\")`],\r\n },\r\n\r\n ...tertiary(),\r\n ...primary(),\r\n\r\n //Droprown\r\n '*': {\r\n '@apply bg-background-content': {},\r\n },\r\n\r\n //Invalid\r\n '&[aria-invalid=\"true\"]': {\r\n '@apply border-2 border-error-surface-primary': {},\r\n },\r\n\r\n //Disabled\r\n '&[aria-disabled=\"true\"]': {\r\n '@apply opacity-100': {},\r\n '@apply text-dark-disabled': {},\r\n '@apply placeholder:text-dark-disabled': {},\r\n '@apply bg-tertiary-surface-disabled': {},\r\n backgroundImage: [`url(\"data:image/svg+xml;utf-8,${chevronDown('rgba(28,28,40, 0.5)')}\")`],\r\n },\r\n\r\n '&-sm': {\r\n '@apply h-32': {},\r\n '@apply text-label-small': {},\r\n '@apply rounded-button-sm': {},\r\n '*': {\r\n '@apply text-input-small': {},\r\n },\r\n },\r\n '&-md': {\r\n '@apply h-40': {},\r\n '@apply text-label-medium': {},\r\n '@apply rounded-button-md': {},\r\n '*': {\r\n '@apply text-input-medium': {},\r\n },\r\n },\r\n '&-lg': {\r\n '@apply h-48': {},\r\n '@apply text-label-large': {},\r\n '@apply rounded-button-lg': {},\r\n '*': {\r\n '@apply text-input-large': {},\r\n },\r\n },\r\n },\r\n '.dark .sk-form-select': {\r\n backgroundImage: [`url(\"data:image/svg+xml;utf-8,${chevronDown('rgb(229,229,229)')}\")`],\r\n '&:hover, &:focus': {\r\n backgroundImage: [`url(\"data:image/svg+xml;utf-8,${chevronDown('rgb(255,255,255)')}\")`],\r\n },\r\n '&[aria-disabled=\"true\"]': {\r\n backgroundImage: [`url(\"data:image/svg+xml;utf-8,${chevronDown('rgba(255,255,255, 0.64)')}\")`],\r\n },\r\n },\r\n});\r\n"],"mappings":";;;;;AAAA,SAASA,WAAWA,CAACC,KAAa,EAAE;EAClC;EACA,mHAAiHA,KAAK;AACxH;AAEA,SAASC,QAAQA,CAAA,EAAG;EAClB,OAAO;IACL,YAAY,EAAE;MACZ,iBAAiB,EAAE,CAAC,CAAC;MAErB,4BAA4B,EAAE,CAAC,CAAC;MAChC,wCAAwC,EAAE,CAAC,CAAC;MAC5C,2BAA2B,EAAE,CAAC,CAAC;MAE/B,qBAAqB,EAAE;QACrB;QACA,cAAc,EAAE,CAAC,CAAC;QAClB;QACA,mBAAmB,EAAE,CAAC,CAAC;QAEvB;QACA,cAAc,EAAE,CAAC;MACnB,CAAC;MACD,qBAAqB,EAAE;Q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esContent":["function chevronDown(color: string) {\n //TODO: This wont work with CSS variables. The colors are set here and wont work with themes\n return `<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='${color}' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6' /></svg>`;\n}\n\nfunction tertiary() {\n return {\n '&-tertiary': {\n '@apply border-2': {},\n\n '@apply bg-tertiary-surface': {},\n '@apply hover:bg-tertiary-surface-hover': {},\n '@apply border-transparent': {},\n\n '&.sk-form-select-sm': {\n //Padding - border width\n '@apply pl-12': {},\n //Background position - border width\n '@apply bg-right-8': {},\n\n //Padding + icon width - border width\n '@apply pr-32': {},\n },\n '&.sk-form-select-md': {\n //Padding - border width\n '@apply pl-16': {},\n //Background position - border width\n '@apply bg-right-12': {},\n //Padding + icon width - border width\n '@apply pr-42': {},\n },\n '&.sk-form-select-lg': {\n //Padding - border width\n '@apply pl-18': {},\n //Background position - border width\n '@apply bg-right-16': {},\n //Padding + icon width - border width\n '@apply pr-48': {},\n },\n //Disabled\n '&[aria-disabled=\"true\"]': {\n '@apply bg-tertiary-surface-disabled': {},\n },\n },\n };\n}\n\nfunction primary() {\n return {\n '&-primary': {\n '@apply border-1': {},\n '@apply border-input-field-outline': {},\n '@apply hover:border-input-field-outline-hover': {},\n '@apply bg-input-field-surface': {},\n '@apply hover:bg-input-field-surface': {},\n\n '&.sk-form-select-sm': {\n //Padding - border width\n '@apply pl-13': {},\n //Background position - border width\n '@apply bg-[center_right_0.643em]': {},\n //Padding + icon width - border width\n '@apply pr-34-1': {},\n\n '&[aria-invalid=\"true\"]': {\n //Padding - border width\n '@apply pl-12': {},\n //Background position - border width\n '@apply bg-right-8': {},\n //Padding + icon width - border width\n '@apply pr-32': {},\n },\n },\n '&.sk-form-select-md': {\n //Padding - border width\n '@apply pl-17': {},\n //Background position - border width\n '@apply bg-[center_right_0.8125em]': {},\n //Padding + icon width - border width\n '@apply pr-44-1': {},\n\n '&[aria-invalid=\"true\"]': {\n //Padding - border width\n '@apply pl-16': {},\n //Background position - border width\n '@apply bg-right-12': {},\n //Padding + icon width - border width\n '@apply pr-42': {},\n },\n },\n '&.sk-form-select-lg': {\n //Padding - border width\n '@apply pl-19': {},\n //Background position - border width\n '@apply bg-[center_right_0.944em]': {},\n //Padding + icon width - border width\n '@apply pr-50-1': {},\n\n '&[aria-invalid=\"true\"]': {\n //Padding - border width\n '@apply pl-18': {},\n //Background position - border width\n '@apply bg-right-16': {},\n //Padding + icon width - border width\n '@apply pr-48': {},\n },\n },\n //Disabled\n '&[aria-disabled=\"true\"],&:disabled': {\n '@apply bg-input-field-surface-disabled': {},\n '@apply hover:bg-input-field-surface-disabled': {},\n '@apply border-input-field-outline-disabled': {},\n '@apply hover:border-input-field-outline-disabled': {},\n },\n },\n };\n}\n\nexport const Select = () => ({\n '.sk-form-select': {\n '@apply h-fit': {},\n '@apply w-fit': {},\n '@apply box-border': {},\n '@apply focus:border-transparent': {},\n '@apply rounded-button': {},\n '@apply text-dark-secondary': {},\n '@apply placeholder:text-dark-secondary': {},\n '@apply hover:placeholder:text-dark-primary': {},\n '@apply focus:placeholder:text-dark-primary': {},\n '@apply hover:text-dark-primary': {},\n '@apply focus:text-dark-primary': {},\n '@apply py-6': {},\n '@apply focus:ring focus:ring-ring focus:ring-offset': {},\n '@apply focus:outline-0': {},\n\n backgroundImage: [`url(\"data:image/svg+xml;utf-8,${chevronDown('rgb(68,68,80)')}\")`],\n '&:hover, &:focus': {\n backgroundImage: [`url(\"data:image/svg+xml;utf-8,${chevronDown('rgb(28,28,40)')}\")`],\n },\n\n //Invalid\n '&[aria-invalid=\"true\"]': {\n '@apply border-2 border-error-surface-primary': {},\n },\n\n //Disabled\n '&[aria-disabled=\"true\"]': {\n '@apply opacity-100': {},\n '@apply text-dark-disabled': {},\n '@apply placeholder:text-dark-disabled': {},\n '@apply bg-tertiary-surface-disabled': {},\n backgroundImage: [`url(\"data:image/svg+xml;utf-8,${chevronDown('rgba(28,28,40, 0.64)')}\")`],\n },\n\n ...tertiary(),\n ...primary(),\n\n //Droprown\n '*': {\n '@apply bg-background-content': {},\n },\n\n //readOnly\n '&[readonly], &[readonly=\"true\"]': {\n '@apply border-input-field-outline-disabled': {},\n '@apply bg-input-field-surface-disabled': {},\n '@apply text-dark-secondary': {},\n '@apply pointer-events-none': {},\n backgroundImage: [`url(\"data:image/svg+xml;utf-8,${chevronDown('rgba(28,28,40, 0.64)')}\")`],\n },\n\n\n '&-sm': {\n '@apply h-32': {},\n '@apply text-label-small': {},\n '@apply rounded-button-sm': {},\n '*': {\n '@apply text-input-small': {},\n },\n },\n '&-md': {\n '@apply h-40': {},\n '@apply text-label-medium': {},\n '@apply rounded-button-md': {},\n '*': {\n '@apply text-input-medium': {},\n },\n },\n '&-lg': {\n '@apply h-48': {},\n '@apply text-label-large': {},\n '@apply rounded-button-lg': {},\n '*': {\n '@apply text-input-large': {},\n },\n },\n },\n '.dark .sk-form-select': {\n backgroundImage: [`url(\"data:image/svg+xml;utf-8,${chevronDown('rgb(229,229,229)')}\")`],\n '&:hover, &:focus': {\n backgroundImage: [`url(\"data:image/svg+xml;utf-8,${chevronDown('rgb(255,255,255)')}\")`],\n },\n '&[aria-disabled=\"true\"]': {\n backgroundImage: [`url(\"data:image/svg+xml;utf-8,${chevronDown('rgba(255,255,255, 0.64)')}\")`],\n },\n },\n});\n"],"names":["Select","chevronDown","color","tertiary","primary","backgroundImage"],"mappings":";;;;+BAsHaA;;;eAAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAtHb,SAASC,YAAYC,KAAa;IAChC,4FAA4F;IAC5F,OAAO,AAAC,0GAA+G,OAANA,OAAM;AACzH;AAEA,SAASC;IACP,OAAO;QACL,cAAc;YACZ,mBAAmB,CAAC;YAEpB,8BAA8B,CAAC;YAC/B,0CAA0C,CAAC;YAC3C,6BAA6B,CAAC;YAE9B,uBAAuB;gBACrB,wBAAwB;gBAC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GA,QAAQ;gBACN,eAAe,CAAC;gBAChB,2BAA2B,CAAC;gBAC5B,4BAA4B,CAAC;gBAC7B,KAAK;oBACH,2BAA2B,CAAC;gBAC9B;YACF;YACA,QAAQ;gBACN,eAAe,CAAC;gBAChB,4BAA4B,CAAC;gBAC7B,4BAA4B,CAAC;gBAC7B,KAAK;oBACH,4BAA4B,CAAC;gBAC/B;YACF;YACA,QAAQ;gBACN,eAAe,CAAC;gBAChB,2BAA2B,CAAC;gBAC5B,4BAA4B,CAAC;gBAC7B,KAAK;oBACH,2BAA2B,CAAC;gBAC9B;YACF;;QAEF,yBAAyB;YACvBI,iBAAiB;gBAAE,iCAAgE,OAAhCJ,YAAY,qBAAoB;aAAI;YACvF,oBAAoB;gBAClBI,iBAAiB;oBAAE,iCAAgE,OAAhCJ,YAAY,qBAAoB;iBAAI;YACzF;YACA,2BAA2B;gBACzBI,iBAAiB;oBAAE,iCAAuE,OAAvCJ,YAAY,4BAA2B;iBAAI;YAChG;QACF;IACF"}
|
|
@@ -1,37 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
'@apply flex items-center gap-12 py-8 pl-16 pr-8 rounded-groups break-words max-w-[28.6em]': {},
|
|
10
|
-
'&-text': {
|
|
11
|
-
'@apply flex-grow': {}
|
|
12
|
-
},
|
|
13
|
-
'.sk-icon': {
|
|
14
|
-
'@apply text-light-primary': {}
|
|
15
|
-
},
|
|
16
|
-
'&-content': {
|
|
17
|
-
'@apply flex-grow gap-12 py-4 flex items-center': {}
|
|
18
|
-
},
|
|
19
|
-
'&-primary': {
|
|
20
|
-
'@apply text-light-secondary bg-dark-primary': {}
|
|
21
|
-
},
|
|
22
|
-
'&-info': {
|
|
23
|
-
'@apply text-vattjom-text-secondary bg-vattjom-surface-primary': {}
|
|
24
|
-
},
|
|
25
|
-
'&-success': {
|
|
26
|
-
'@apply text-gronsta-text-secondary bg-gronsta-surface-primary': {}
|
|
27
|
-
},
|
|
28
|
-
'&-warning': {
|
|
29
|
-
'@apply text-warning-text-secondary bg-warning-surface-primary': {}
|
|
30
|
-
},
|
|
31
|
-
'&-error': {
|
|
32
|
-
'@apply text-error-text-secondary bg-error-surface-primary': {}
|
|
33
|
-
}
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "Snackbar", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return Snackbar;
|
|
34
9
|
}
|
|
35
|
-
|
|
10
|
+
});
|
|
11
|
+
var Snackbar = function() {
|
|
12
|
+
return {
|
|
13
|
+
'.sk-snackbar': {
|
|
14
|
+
'@apply text-label-small text-vattjom-text-secondary': {},
|
|
15
|
+
'@apply flex items-center gap-12 py-8 pl-16 pr-8 rounded-groups break-words max-w-[28.6em]': {},
|
|
16
|
+
'&-text': {
|
|
17
|
+
'@apply flex-grow': {}
|
|
18
|
+
},
|
|
19
|
+
'.sk-icon': {
|
|
20
|
+
'@apply text-light-primary': {}
|
|
21
|
+
},
|
|
22
|
+
'&-content': {
|
|
23
|
+
'@apply flex-grow gap-12 py-4 flex items-center': {}
|
|
24
|
+
},
|
|
25
|
+
'&-primary': {
|
|
26
|
+
'@apply text-light-secondary bg-dark-primary': {}
|
|
27
|
+
},
|
|
28
|
+
'&-info': {
|
|
29
|
+
'@apply text-vattjom-text-secondary bg-vattjom-surface-primary': {}
|
|
30
|
+
},
|
|
31
|
+
'&-success': {
|
|
32
|
+
'@apply text-gronsta-text-secondary bg-gronsta-surface-primary': {}
|
|
33
|
+
},
|
|
34
|
+
'&-warning': {
|
|
35
|
+
'@apply text-warning-text-secondary bg-warning-surface-primary': {}
|
|
36
|
+
},
|
|
37
|
+
'&-error': {
|
|
38
|
+
'@apply text-error-text-secondary bg-error-surface-primary': {}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
36
42
|
};
|
|
43
|
+
|
|
37
44
|
//# sourceMappingURL=snackbar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/snackbar.ts"],"sourcesContent":["export const Snackbar = () => ({\r\n '.sk-snackbar': {\r\n '@apply text-label-small text-vattjom-text-secondary': {},\r\n '@apply flex items-center gap-12 py-8 pl-16 pr-8 rounded-groups break-words max-w-[28.6em]': {},\r\n\r\n '&-text': {\r\n '@apply flex-grow': {},\r\n },\r\n\r\n '.sk-icon': {\r\n '@apply text-light-primary': {},\r\n },\r\n\r\n '&-content': {\r\n '@apply flex-grow gap-12 py-4 flex items-center': {},\r\n },\r\n\r\n '&-primary': {\r\n '@apply text-light-secondary bg-dark-primary': {},\r\n },\r\n '&-info': {\r\n '@apply text-vattjom-text-secondary bg-vattjom-surface-primary': {},\r\n },\r\n '&-success': {\r\n '@apply text-gronsta-text-secondary bg-gronsta-surface-primary': {},\r\n },\r\n '&-warning': {\r\n '@apply text-warning-text-secondary bg-warning-surface-primary': {},\r\n },\r\n '&-error': {\r\n '@apply text-error-text-secondary bg-error-surface-primary': {},\r\n },\r\n },\r\n});\r\n"],"names":["Snackbar"],"mappings":";;;;+BAAaA;;;eAAAA;;;AAAN,IAAMA,WAAW;WAAO;QAC7B,gBAAgB;YACd,uDAAuD,CAAC;YACxD,6FAA6F,CAAC;YAE9F,UAAU;gBACR,oBAAoB,CAAC;YACvB;YAEA,YAAY;gBACV,6BAA6B,CAAC;YAChC;YAEA,aAAa;gBACX,kDAAkD,CAAC;YACrD;YAEA,aAAa;gBACX,+CAA+C,CAAC;YAClD;YACA,UAAU;gBACR,iEAAiE,CAAC;YACpE;YACA,aAAa;gBACX,iEAAiE,CAAC;YACpE;YACA,aAAa;gBACX,iEAAiE,CAAC;YACpE;YACA,WAAW;gBACT,6DAA6D,CAAC;YAChE;QACF;IACF"}
|