@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,134 @@
|
|
|
1
|
-
export var Radio
|
|
1
|
+
export var Radio = function() {
|
|
2
|
+
return {
|
|
3
|
+
'.sk-form-radio': {
|
|
4
|
+
backgroundImage: 'none',
|
|
5
|
+
'@apply relative': {},
|
|
6
|
+
'@apply box-border': {},
|
|
7
|
+
'@apply bg-input-field-surface': {},
|
|
8
|
+
'@apply border-1': {},
|
|
9
|
+
'@apply border-input-field-outline': {},
|
|
10
|
+
'@apply m-0': {},
|
|
11
|
+
'@apply h-24 w-24': {},
|
|
12
|
+
//Hover
|
|
13
|
+
'@apply hover:after:content-[""]': {},
|
|
14
|
+
'@apply hover:border-input-field-outline-hover': {},
|
|
15
|
+
'&::after': {
|
|
16
|
+
'@apply absolute': {},
|
|
17
|
+
'@apply rounded-full': {},
|
|
18
|
+
'@apply bg-dark-placeholder': {},
|
|
19
|
+
'@apply m-5': {},
|
|
20
|
+
'@apply top-0 left-0 bottom-0 right-0': {}
|
|
21
|
+
},
|
|
22
|
+
//Focus
|
|
23
|
+
'@apply focus-visible:ring': {},
|
|
24
|
+
'@apply focus-visible:bg-background-content': {},
|
|
25
|
+
'@apply focus-visible:border-background-content': {},
|
|
26
|
+
'@apply focus-visible:hover:border-background-content': {},
|
|
27
|
+
//Invalid
|
|
28
|
+
'&[aria-invalid="true"]': {
|
|
29
|
+
'@apply border-2': {},
|
|
30
|
+
'@apply border-error-surface-primary': {},
|
|
31
|
+
'@apply hover:border-2': {},
|
|
32
|
+
'@apply hover:border-error-surface-primary': {}
|
|
33
|
+
},
|
|
34
|
+
//Checked
|
|
35
|
+
'&:checked, &[checked="true"]': {
|
|
36
|
+
'@apply bg-input-field-surface': {},
|
|
37
|
+
'@apply hover:bg-input-field-surface': {},
|
|
38
|
+
'@apply focus:bg-input-field-surface': {},
|
|
39
|
+
'@apply text-input-field-surface': {},
|
|
40
|
+
'@apply border-input-field-outline': {},
|
|
41
|
+
'@apply hover:text-input-field-surface': {},
|
|
42
|
+
'@apply focus:text-input-field-surface': {},
|
|
43
|
+
'@apply focus:border-input-field-outline': {},
|
|
44
|
+
'@apply focus:hover:border-input-field-outline-hover': {},
|
|
45
|
+
'@apply hover:border-input-field-outline-hover': {},
|
|
46
|
+
'@apply focus:outline-0': {},
|
|
47
|
+
'@apply focus:ring-0 focus:ring-offset-0': {},
|
|
48
|
+
'@apply focus-visible:ring': {},
|
|
49
|
+
'@apply focus-visible:hover:border-transparent': {},
|
|
50
|
+
'@apply focus-visible:border-transparent': {},
|
|
51
|
+
'@apply after:content-[""]': {},
|
|
52
|
+
'&[aria-invalid="true"]': {
|
|
53
|
+
'@apply border-2': {},
|
|
54
|
+
'@apply border-error-surface-primary': {},
|
|
55
|
+
'@apply hover:border-2': {},
|
|
56
|
+
'@apply hover:border-error-surface-primary': {}
|
|
57
|
+
},
|
|
58
|
+
'&::after': {
|
|
59
|
+
'@apply bg-dark-primary': {}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
'&:active': {
|
|
63
|
+
'@apply ring-0 ring-offset-0': {}
|
|
64
|
+
},
|
|
65
|
+
//Disabled
|
|
66
|
+
'&:disabled, &[disabled="true"]': {
|
|
67
|
+
'@apply border-input-field-outline-disabled': {},
|
|
68
|
+
'@apply hover:border-input-field-outline-disabled': {},
|
|
69
|
+
'@apply bg-input-field-surface-disabled': {},
|
|
70
|
+
'@apply hover:bg-input-field-surface-disabled': {},
|
|
71
|
+
'@apply cursor-not-allowed': {},
|
|
72
|
+
'&:not(:checked):not([checked="true"]):after': {
|
|
73
|
+
'@apply hidden': {}
|
|
74
|
+
},
|
|
75
|
+
'&:checked, &[checked="true"]': {
|
|
76
|
+
'@apply border-input-field-outline-disabled': {},
|
|
77
|
+
'&::after': {
|
|
78
|
+
'@apply bg-dark-disabled': {}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
//ReadOnly
|
|
83
|
+
'&[readonly], &[readonly="true"]': {
|
|
84
|
+
'@apply bg-input-field-surface-disabled': {},
|
|
85
|
+
'@apply border-input-field-outline-disabled': {},
|
|
86
|
+
'@apply hover:border-input-field-outline-disabled': {},
|
|
87
|
+
'&:not(:checked):not([checked="true"]):after': {
|
|
88
|
+
'@apply hidden': {}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
'&-label': {
|
|
92
|
+
'@apply inline-flex align-top items-center': {},
|
|
93
|
+
'@apply font-normal': {},
|
|
94
|
+
'@apply p-2': {},
|
|
95
|
+
'&-sm': {
|
|
96
|
+
'@apply text-small': {},
|
|
97
|
+
'@apply h-28': {},
|
|
98
|
+
'@apply gap-10': {}
|
|
99
|
+
},
|
|
100
|
+
'&-md': {
|
|
101
|
+
'@apply text-base': {},
|
|
102
|
+
'@apply h-28': {},
|
|
103
|
+
'@apply gap-10': {}
|
|
104
|
+
},
|
|
105
|
+
'&-lg': {
|
|
106
|
+
'@apply text-large': {},
|
|
107
|
+
'@apply h-30': {},
|
|
108
|
+
'@apply gap-12': {}
|
|
109
|
+
},
|
|
110
|
+
'&[data-disabled="true"]': {
|
|
111
|
+
'@apply text-dark-disabled': {},
|
|
112
|
+
'@apply cursor-default': {}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
'&-group': {
|
|
116
|
+
'@apply flex flex-row': {},
|
|
117
|
+
'&[data-direction="column"]': {
|
|
118
|
+
'@apply flex-col': {}
|
|
119
|
+
},
|
|
120
|
+
'&-sm': {
|
|
121
|
+
'@apply gap-12': {}
|
|
122
|
+
},
|
|
123
|
+
'&-md': {
|
|
124
|
+
'@apply gap-16': {}
|
|
125
|
+
},
|
|
126
|
+
'&-lg': {
|
|
127
|
+
'@apply gap-16': {}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
|
|
2
134
|
//# sourceMappingURL=radio.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/radio.ts"],"sourcesContent":["export const Radio = () => ({\r\n '.sk-form-radio': {\r\n backgroundImage: 'none',\r\n\r\n '@apply relative': {},\r\n '@apply box-border': {},\r\n '@apply bg-input-field-surface': {},\r\n '@apply border-1': {},\r\n '@apply border-input-field-outline': {},\r\n '@apply m-0': {},\r\n '@apply h-24 w-24': {},\r\n\r\n //Hover\r\n '@apply hover:after:content-[\"\"]': {},\r\n '@apply hover:border-input-field-outline-hover': {},\r\n '&::after': {\r\n '@apply absolute': {},\r\n '@apply rounded-full': {},\r\n '@apply bg-dark-placeholder': {},\r\n '@apply m-5': {},\r\n '@apply top-0 left-0 bottom-0 right-0': {},\r\n },\r\n\r\n //Focus\r\n '@apply focus-visible:ring': {},\r\n '@apply focus-visible:bg-background-content': {},\r\n '@apply focus-visible:border-background-content': {},\r\n '@apply focus-visible:hover:border-background-content': {},\r\n\r\n //Invalid\r\n '&[aria-invalid=\"true\"]': {\r\n '@apply border-2': {},\r\n '@apply border-error-surface-primary': {},\r\n '@apply hover:border-2': {},\r\n '@apply hover:border-error-surface-primary': {},\r\n },\r\n\r\n //Checked\r\n '&:checked, &[checked=\"true\"]': {\r\n '@apply bg-input-field-surface': {},\r\n '@apply hover:bg-input-field-surface': {},\r\n '@apply focus:bg-input-field-surface': {},\r\n '@apply text-input-field-surface': {},\r\n '@apply border-input-field-outline': {},\r\n '@apply hover:text-input-field-surface': {},\r\n '@apply focus:text-input-field-surface': {},\r\n '@apply focus:border-input-field-outline': {},\r\n '@apply focus:hover:border-input-field-outline-hover': {},\r\n '@apply hover:border-input-field-outline-hover': {},\r\n '@apply focus:outline-0': {},\r\n '@apply focus:ring-0 focus:ring-offset-0': {},\r\n '@apply focus-visible:ring': {},\r\n '@apply focus-visible:hover:border-transparent': {},\r\n '@apply focus-visible:border-transparent': {},\r\n '@apply after:content-[\"\"]': {},\r\n '&[aria-invalid=\"true\"]': {\r\n '@apply border-2': {},\r\n '@apply border-error-surface-primary': {},\r\n '@apply hover:border-2': {},\r\n '@apply hover:border-error-surface-primary': {},\r\n },\r\n '&::after': {\r\n '@apply bg-dark-primary': {},\r\n },\r\n },\r\n\r\n '&:active': {\r\n '@apply ring-0 ring-offset-0': {},\r\n },\r\n\r\n //Disabled\r\n '&:disabled, &[disabled=\"true\"]': {\r\n '@apply border-input-field-outline-disabled': {},\r\n '@apply hover:border-input-field-outline-disabled': {},\r\n '@apply bg-input-field-surface-disabled': {},\r\n '@apply hover:bg-input-field-surface-disabled': {},\r\n '@apply cursor-not-allowed': {},\r\n '&:not(:checked):not([checked=\"true\"]):after': {\r\n '@apply hidden': {},\r\n },\r\n '&:checked, &[checked=\"true\"]': {\r\n '@apply border-input-field-outline-disabled': {},\r\n '&::after': {\r\n '@apply bg-dark-disabled': {},\r\n },\r\n },\r\n },\r\n\r\n '&-label': {\r\n '@apply inline-flex align-top items-center': {},\r\n '@apply font-normal': {},\r\n '@apply p-2': {},\r\n '&-sm': {\r\n '@apply text-small': {},\r\n '@apply h-28': {},\r\n '@apply gap-10': {},\r\n },\r\n '&-md': {\r\n '@apply text-base': {},\r\n '@apply h-28': {},\r\n '@apply gap-10': {},\r\n },\r\n '&-lg': {\r\n '@apply text-large': {},\r\n '@apply h-30': {},\r\n '@apply gap-12': {},\r\n },\r\n '&[data-disabled=\"true\"]': {\r\n '@apply text-dark-disabled': {},\r\n '@apply cursor-default': {},\r\n },\r\n },\r\n '&-group': {\r\n '@apply flex flex-row': {},\r\n '&[data-direction=\"column\"]': {\r\n '@apply flex-col': {},\r\n },\r\n '&-sm': {\r\n '@apply gap-12': {},\r\n },\r\n '&-md': {\r\n '@apply gap-16': {},\r\n },\r\n '&-lg': {\r\n '@apply gap-16': {},\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["Radio","backgroundImage"],"mappings":"AAAA,OAAO,IAAMA,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/radio.ts"],"sourcesContent":["export const Radio = () => ({\r\n '.sk-form-radio': {\r\n backgroundImage: 'none',\r\n\r\n '@apply relative': {},\r\n '@apply box-border': {},\r\n '@apply bg-input-field-surface': {},\r\n '@apply border-1': {},\r\n '@apply border-input-field-outline': {},\r\n '@apply m-0': {},\r\n '@apply h-24 w-24': {},\r\n\r\n //Hover\r\n '@apply hover:after:content-[\"\"]': {},\r\n '@apply hover:border-input-field-outline-hover': {},\r\n '&::after': {\r\n '@apply absolute': {},\r\n '@apply rounded-full': {},\r\n '@apply bg-dark-placeholder': {},\r\n '@apply m-5': {},\r\n '@apply top-0 left-0 bottom-0 right-0': {},\r\n },\r\n\r\n //Focus\r\n '@apply focus-visible:ring': {},\r\n '@apply focus-visible:bg-background-content': {},\r\n '@apply focus-visible:border-background-content': {},\r\n '@apply focus-visible:hover:border-background-content': {},\r\n\r\n //Invalid\r\n '&[aria-invalid=\"true\"]': {\r\n '@apply border-2': {},\r\n '@apply border-error-surface-primary': {},\r\n '@apply hover:border-2': {},\r\n '@apply hover:border-error-surface-primary': {},\r\n },\r\n\r\n //Checked\r\n '&:checked, &[checked=\"true\"]': {\r\n '@apply bg-input-field-surface': {},\r\n '@apply hover:bg-input-field-surface': {},\r\n '@apply focus:bg-input-field-surface': {},\r\n '@apply text-input-field-surface': {},\r\n '@apply border-input-field-outline': {},\r\n '@apply hover:text-input-field-surface': {},\r\n '@apply focus:text-input-field-surface': {},\r\n '@apply focus:border-input-field-outline': {},\r\n '@apply focus:hover:border-input-field-outline-hover': {},\r\n '@apply hover:border-input-field-outline-hover': {},\r\n '@apply focus:outline-0': {},\r\n '@apply focus:ring-0 focus:ring-offset-0': {},\r\n '@apply focus-visible:ring': {},\r\n '@apply focus-visible:hover:border-transparent': {},\r\n '@apply focus-visible:border-transparent': {},\r\n '@apply after:content-[\"\"]': {},\r\n '&[aria-invalid=\"true\"]': {\r\n '@apply border-2': {},\r\n '@apply border-error-surface-primary': {},\r\n '@apply hover:border-2': {},\r\n '@apply hover:border-error-surface-primary': {},\r\n },\r\n '&::after': {\r\n '@apply bg-dark-primary': {},\r\n },\r\n },\r\n\r\n '&:active': {\r\n '@apply ring-0 ring-offset-0': {},\r\n },\r\n\r\n //Disabled\r\n '&:disabled, &[disabled=\"true\"]': {\r\n '@apply border-input-field-outline-disabled': {},\r\n '@apply hover:border-input-field-outline-disabled': {},\r\n '@apply bg-input-field-surface-disabled': {},\r\n '@apply hover:bg-input-field-surface-disabled': {},\r\n '@apply cursor-not-allowed': {},\r\n '&:not(:checked):not([checked=\"true\"]):after': {\r\n '@apply hidden': {},\r\n },\r\n '&:checked, &[checked=\"true\"]': {\r\n '@apply border-input-field-outline-disabled': {},\r\n '&::after': {\r\n '@apply bg-dark-disabled': {},\r\n },\r\n },\r\n },\r\n\r\n //ReadOnly\r\n '&[readonly], &[readonly=\"true\"]': {\r\n '@apply bg-input-field-surface-disabled': {},\r\n '@apply border-input-field-outline-disabled': {},\r\n '@apply hover:border-input-field-outline-disabled': {},\r\n '&:not(:checked):not([checked=\"true\"]):after': {\r\n '@apply hidden': {},\r\n },\r\n },\r\n\r\n '&-label': {\r\n '@apply inline-flex align-top items-center': {},\r\n '@apply font-normal': {},\r\n '@apply p-2': {},\r\n '&-sm': {\r\n '@apply text-small': {},\r\n '@apply h-28': {},\r\n '@apply gap-10': {},\r\n },\r\n '&-md': {\r\n '@apply text-base': {},\r\n '@apply h-28': {},\r\n '@apply gap-10': {},\r\n },\r\n '&-lg': {\r\n '@apply text-large': {},\r\n '@apply h-30': {},\r\n '@apply gap-12': {},\r\n },\r\n '&[data-disabled=\"true\"]': {\r\n '@apply text-dark-disabled': {},\r\n '@apply cursor-default': {},\r\n },\r\n },\r\n '&-group': {\r\n '@apply flex flex-row': {},\r\n '&[data-direction=\"column\"]': {\r\n '@apply flex-col': {},\r\n },\r\n '&-sm': {\r\n '@apply gap-12': {},\r\n },\r\n '&-md': {\r\n '@apply gap-16': {},\r\n },\r\n '&-lg': {\r\n '@apply gap-16': {},\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["Radio","backgroundImage"],"mappings":"AAAA,OAAO,IAAMA,QAAQ;WAAO;QAC1B,kBAAkB;YAChBC,iBAAiB;YAEjB,mBAAmB,CAAC;YACpB,qBAAqB,CAAC;YACtB,iCAAiC,CAAC;YAClC,mBAAmB,CAAC;YACpB,qCAAqC,CAAC;YACtC,cAAc,CAAC;YACf,oBAAoB,CAAC;YAErB,OAAO;YACP,mCAAmC,CAAC;YACpC,iDAAiD,CAAC;YAClD,YAAY;gBACV,mBAAmB,CAAC;gBACpB,uBAAuB,CAAC;gBACxB,8BAA8B,CAAC;gBAC/B,cAAc,CAAC;gBACf,wCAAwC,CAAC;YAC3C;YAEA,OAAO;YACP,6BAA6B,CAAC;YAC9B,8CAA8C,CAAC;YAC/C,kDAAkD,CAAC;YACnD,wDAAwD,CAAC;YAEzD,SAAS;YACT,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iBAAiB,CAAC;gBACpB;gBACA,QAAQ;oBACN,oBAAoB,CAAC;oBACrB,eAAe,CAAC;oBAChB,iBAAiB,CAAC;gBACpB;gBACA,QAAQ;oBACN,qBAAqB,CAAC;oBACtB,eAAe,CAAC;oBAChB,iBAAiB,CAAC;gBACpB;gBACA,2BAA2B;oBACzB,6BAA6B,CAAC;oBAC9B,yBAAyB,CAAC;gBAC5B;YACF;YACA,WAAW;gBACT,wBAAwB,CAAC;gBACzB,8BAA8B;oBAC5B,mBAAmB,CAAC;gBACtB;gBACA,QAAQ;oBACN,iBAAiB,CAAC;gBACpB;gBACA,QAAQ;oBACN,iBAAiB,CAAC;gBACpB;gBACA,QAAQ;oBACN,iBAAiB,CAAC;gBACpB;YACF;QACF;IACF;EAAG"}
|
|
@@ -1,2 +1,39 @@
|
|
|
1
|
-
export var SearchField=function()
|
|
1
|
+
export var SearchField = function() {
|
|
2
|
+
return {
|
|
3
|
+
'.sk-search-field-suggestions': {
|
|
4
|
+
'&.sk-form-combobox': {
|
|
5
|
+
'@apply h-auto': {}
|
|
6
|
+
},
|
|
7
|
+
'.sk-form-combobox': {
|
|
8
|
+
'&-list': {
|
|
9
|
+
'@apply w-full': {},
|
|
10
|
+
'&-option': {
|
|
11
|
+
'.sk-icon': {
|
|
12
|
+
'@apply hidden': {}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
'.sk-search-field': {
|
|
19
|
+
'&-md': {
|
|
20
|
+
'.sk-search-field-icon': {
|
|
21
|
+
'@apply w-20 h-20': {},
|
|
22
|
+
svg: {
|
|
23
|
+
'@apply w-20 h-20': {}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
'&-lg': {
|
|
28
|
+
'.sk-search-field-icon': {
|
|
29
|
+
'@apply w-22 h-22': {},
|
|
30
|
+
svg: {
|
|
31
|
+
'@apply w-22 h-22': {}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
|
|
2
39
|
//# sourceMappingURL=search-field.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/search-field.ts"],"sourcesContent":["export const SearchField = () => ({\n '.sk-search-field-suggestions': {\n '&.sk-form-combobox': {\n '@apply h-auto': {},\n },\n '.sk-form-combobox': {\n '&-list': {\n '@apply w-full': {},\n '&-option': {\n '.sk-icon': {\n '@apply hidden': {},\n },\n },\n },\n },\n },\n '.sk-search-field': {\n '&-md': {\n '.sk-search-field-icon': {\n '@apply w-20 h-20': {},\n svg: {\n '@apply w-20 h-20': {},\n },\n },\n },\n '&-lg': {\n '.sk-search-field-icon': {\n '@apply w-22 h-22': {},\n svg: {\n '@apply w-22 h-22': {},\n },\n },\n },\n },\n});\n"],"names":["SearchField","svg"],"mappings":"AAAA,OAAO,IAAMA,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/search-field.ts"],"sourcesContent":["export const SearchField = () => ({\r\n '.sk-search-field-suggestions': {\r\n '&.sk-form-combobox': {\r\n '@apply h-auto': {},\r\n },\r\n '.sk-form-combobox': {\r\n '&-list': {\r\n '@apply w-full': {},\r\n '&-option': {\r\n '.sk-icon': {\r\n '@apply hidden': {},\r\n },\r\n },\r\n },\r\n },\r\n },\r\n '.sk-search-field': {\r\n '&-md': {\r\n '.sk-search-field-icon': {\r\n '@apply w-20 h-20': {},\r\n svg: {\r\n '@apply w-20 h-20': {},\r\n },\r\n },\r\n },\r\n '&-lg': {\r\n '.sk-search-field-icon': {\r\n '@apply w-22 h-22': {},\r\n svg: {\r\n '@apply w-22 h-22': {},\r\n },\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["SearchField","svg"],"mappings":"AAAA,OAAO,IAAMA,cAAc;WAAO;QAChC,gCAAgC;YAC9B,sBAAsB;gBACpB,iBAAiB,CAAC;YACpB;YACA,qBAAqB;gBACnB,UAAU;oBACR,iBAAiB,CAAC;oBAClB,YAAY;wBACV,YAAY;4BACV,iBAAiB,CAAC;wBACpB;oBACF;gBACF;YACF;QACF;QACA,oBAAoB;YAClB,QAAQ;gBACN,yBAAyB;oBACvB,oBAAoB,CAAC;oBACrBC,KAAK;wBACH,oBAAoB,CAAC;oBACvB;gBACF;YACF;YACA,QAAQ;gBACN,yBAAyB;oBACvB,oBAAoB,CAAC;oBACrBA,KAAK;wBACH,oBAAoB,CAAC;oBACvB;gBACF;YACF;QACF;IACF;EAAG"}
|
|
@@ -1,2 +1,258 @@
|
|
|
1
|
-
function _define_property(obj,key,
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _object_spread(target) {
|
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
+
var ownKeys = Object.keys(source);
|
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
ownKeys.forEach(function(key) {
|
|
24
|
+
_define_property(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
function ownKeys(object, enumerableOnly) {
|
|
30
|
+
var keys = Object.keys(object);
|
|
31
|
+
if (Object.getOwnPropertySymbols) {
|
|
32
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
33
|
+
if (enumerableOnly) {
|
|
34
|
+
symbols = symbols.filter(function(sym) {
|
|
35
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
keys.push.apply(keys, symbols);
|
|
39
|
+
}
|
|
40
|
+
return keys;
|
|
41
|
+
}
|
|
42
|
+
function _object_spread_props(target, source) {
|
|
43
|
+
source = source != null ? source : {};
|
|
44
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
45
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
46
|
+
} else {
|
|
47
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
48
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
return target;
|
|
52
|
+
}
|
|
53
|
+
function chevronDown(color) {
|
|
54
|
+
//TODO: This wont work with CSS variables. The colors are set here and wont work with themes
|
|
55
|
+
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>");
|
|
56
|
+
}
|
|
57
|
+
function tertiary() {
|
|
58
|
+
return {
|
|
59
|
+
'&-tertiary': {
|
|
60
|
+
'@apply border-2': {},
|
|
61
|
+
'@apply bg-tertiary-surface': {},
|
|
62
|
+
'@apply hover:bg-tertiary-surface-hover': {},
|
|
63
|
+
'@apply border-transparent': {},
|
|
64
|
+
'&.sk-form-select-sm': {
|
|
65
|
+
//Padding - border width
|
|
66
|
+
'@apply pl-12': {},
|
|
67
|
+
//Background position - border width
|
|
68
|
+
'@apply bg-right-8': {},
|
|
69
|
+
//Padding + icon width - border width
|
|
70
|
+
'@apply pr-32': {}
|
|
71
|
+
},
|
|
72
|
+
'&.sk-form-select-md': {
|
|
73
|
+
//Padding - border width
|
|
74
|
+
'@apply pl-16': {},
|
|
75
|
+
//Background position - border width
|
|
76
|
+
'@apply bg-right-12': {},
|
|
77
|
+
//Padding + icon width - border width
|
|
78
|
+
'@apply pr-42': {}
|
|
79
|
+
},
|
|
80
|
+
'&.sk-form-select-lg': {
|
|
81
|
+
//Padding - border width
|
|
82
|
+
'@apply pl-18': {},
|
|
83
|
+
//Background position - border width
|
|
84
|
+
'@apply bg-right-16': {},
|
|
85
|
+
//Padding + icon width - border width
|
|
86
|
+
'@apply pr-48': {}
|
|
87
|
+
},
|
|
88
|
+
//Disabled
|
|
89
|
+
'&[aria-disabled="true"]': {
|
|
90
|
+
'@apply bg-tertiary-surface-disabled': {}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function primary() {
|
|
96
|
+
return {
|
|
97
|
+
'&-primary': {
|
|
98
|
+
'@apply border-1': {},
|
|
99
|
+
'@apply border-input-field-outline': {},
|
|
100
|
+
'@apply hover:border-input-field-outline-hover': {},
|
|
101
|
+
'@apply bg-input-field-surface': {},
|
|
102
|
+
'@apply hover:bg-input-field-surface': {},
|
|
103
|
+
'&.sk-form-select-sm': {
|
|
104
|
+
//Padding - border width
|
|
105
|
+
'@apply pl-13': {},
|
|
106
|
+
//Background position - border width
|
|
107
|
+
'@apply bg-[center_right_0.643em]': {},
|
|
108
|
+
//Padding + icon width - border width
|
|
109
|
+
'@apply pr-34-1': {},
|
|
110
|
+
'&[aria-invalid="true"]': {
|
|
111
|
+
//Padding - border width
|
|
112
|
+
'@apply pl-12': {},
|
|
113
|
+
//Background position - border width
|
|
114
|
+
'@apply bg-right-8': {},
|
|
115
|
+
//Padding + icon width - border width
|
|
116
|
+
'@apply pr-32': {}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
'&.sk-form-select-md': {
|
|
120
|
+
//Padding - border width
|
|
121
|
+
'@apply pl-17': {},
|
|
122
|
+
//Background position - border width
|
|
123
|
+
'@apply bg-[center_right_0.8125em]': {},
|
|
124
|
+
//Padding + icon width - border width
|
|
125
|
+
'@apply pr-44-1': {},
|
|
126
|
+
'&[aria-invalid="true"]': {
|
|
127
|
+
//Padding - border width
|
|
128
|
+
'@apply pl-16': {},
|
|
129
|
+
//Background position - border width
|
|
130
|
+
'@apply bg-right-12': {},
|
|
131
|
+
//Padding + icon width - border width
|
|
132
|
+
'@apply pr-42': {}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
'&.sk-form-select-lg': {
|
|
136
|
+
//Padding - border width
|
|
137
|
+
'@apply pl-19': {},
|
|
138
|
+
//Background position - border width
|
|
139
|
+
'@apply bg-[center_right_0.944em]': {},
|
|
140
|
+
//Padding + icon width - border width
|
|
141
|
+
'@apply pr-50-1': {},
|
|
142
|
+
'&[aria-invalid="true"]': {
|
|
143
|
+
//Padding - border width
|
|
144
|
+
'@apply pl-18': {},
|
|
145
|
+
//Background position - border width
|
|
146
|
+
'@apply bg-right-16': {},
|
|
147
|
+
//Padding + icon width - border width
|
|
148
|
+
'@apply pr-48': {}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
//Disabled
|
|
152
|
+
'&[aria-disabled="true"],&:disabled': {
|
|
153
|
+
'@apply bg-input-field-surface-disabled': {},
|
|
154
|
+
'@apply hover:bg-input-field-surface-disabled': {},
|
|
155
|
+
'@apply border-input-field-outline-disabled': {},
|
|
156
|
+
'@apply hover:border-input-field-outline-disabled': {}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
export var Select = function() {
|
|
162
|
+
return {
|
|
163
|
+
'.sk-form-select': _object_spread_props(_object_spread({
|
|
164
|
+
'@apply h-fit': {},
|
|
165
|
+
'@apply w-fit': {},
|
|
166
|
+
'@apply box-border': {},
|
|
167
|
+
'@apply focus:border-transparent': {},
|
|
168
|
+
'@apply rounded-button': {},
|
|
169
|
+
'@apply text-dark-secondary': {},
|
|
170
|
+
'@apply placeholder:text-dark-secondary': {},
|
|
171
|
+
'@apply hover:placeholder:text-dark-primary': {},
|
|
172
|
+
'@apply focus:placeholder:text-dark-primary': {},
|
|
173
|
+
'@apply hover:text-dark-primary': {},
|
|
174
|
+
'@apply focus:text-dark-primary': {},
|
|
175
|
+
'@apply py-6': {},
|
|
176
|
+
'@apply focus:ring focus:ring-ring focus:ring-offset': {},
|
|
177
|
+
'@apply focus:outline-0': {},
|
|
178
|
+
backgroundImage: [
|
|
179
|
+
'url("data:image/svg+xml;utf-8,'.concat(chevronDown('rgb(68,68,80)'), '")')
|
|
180
|
+
],
|
|
181
|
+
'&:hover, &:focus': {
|
|
182
|
+
backgroundImage: [
|
|
183
|
+
'url("data:image/svg+xml;utf-8,'.concat(chevronDown('rgb(28,28,40)'), '")')
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
//Invalid
|
|
187
|
+
'&[aria-invalid="true"]': {
|
|
188
|
+
'@apply border-2 border-error-surface-primary': {}
|
|
189
|
+
},
|
|
190
|
+
//Disabled
|
|
191
|
+
'&[aria-disabled="true"]': {
|
|
192
|
+
'@apply opacity-100': {},
|
|
193
|
+
'@apply text-dark-disabled': {},
|
|
194
|
+
'@apply placeholder:text-dark-disabled': {},
|
|
195
|
+
'@apply bg-tertiary-surface-disabled': {},
|
|
196
|
+
backgroundImage: [
|
|
197
|
+
'url("data:image/svg+xml;utf-8,'.concat(chevronDown('rgba(28,28,40, 0.64)'), '")')
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
}, tertiary(), primary()), {
|
|
201
|
+
//Droprown
|
|
202
|
+
'*': {
|
|
203
|
+
'@apply bg-background-content': {}
|
|
204
|
+
},
|
|
205
|
+
//readOnly
|
|
206
|
+
'&[readonly], &[readonly="true"]': {
|
|
207
|
+
'@apply border-input-field-outline-disabled': {},
|
|
208
|
+
'@apply bg-input-field-surface-disabled': {},
|
|
209
|
+
'@apply text-dark-secondary': {},
|
|
210
|
+
'@apply pointer-events-none': {},
|
|
211
|
+
backgroundImage: [
|
|
212
|
+
'url("data:image/svg+xml;utf-8,'.concat(chevronDown('rgba(28,28,40, 0.64)'), '")')
|
|
213
|
+
]
|
|
214
|
+
},
|
|
215
|
+
'&-sm': {
|
|
216
|
+
'@apply h-32': {},
|
|
217
|
+
'@apply text-label-small': {},
|
|
218
|
+
'@apply rounded-button-sm': {},
|
|
219
|
+
'*': {
|
|
220
|
+
'@apply text-input-small': {}
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
'&-md': {
|
|
224
|
+
'@apply h-40': {},
|
|
225
|
+
'@apply text-label-medium': {},
|
|
226
|
+
'@apply rounded-button-md': {},
|
|
227
|
+
'*': {
|
|
228
|
+
'@apply text-input-medium': {}
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
'&-lg': {
|
|
232
|
+
'@apply h-48': {},
|
|
233
|
+
'@apply text-label-large': {},
|
|
234
|
+
'@apply rounded-button-lg': {},
|
|
235
|
+
'*': {
|
|
236
|
+
'@apply text-input-large': {}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}),
|
|
240
|
+
'.dark .sk-form-select': {
|
|
241
|
+
backgroundImage: [
|
|
242
|
+
'url("data:image/svg+xml;utf-8,'.concat(chevronDown('rgb(229,229,229)'), '")')
|
|
243
|
+
],
|
|
244
|
+
'&:hover, &:focus': {
|
|
245
|
+
backgroundImage: [
|
|
246
|
+
'url("data:image/svg+xml;utf-8,'.concat(chevronDown('rgb(255,255,255)'), '")')
|
|
247
|
+
]
|
|
248
|
+
},
|
|
249
|
+
'&[aria-disabled="true"]': {
|
|
250
|
+
backgroundImage: [
|
|
251
|
+
'url("data:image/svg+xml;utf-8,'.concat(chevronDown('rgba(255,255,255, 0.64)'), '")')
|
|
252
|
+
]
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
|
|
2
258
|
//# sourceMappingURL=select.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/select.ts"],"sourcesContent":["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.5)')}\")`],\n },\n\n ...tertiary(),\n ...primary(),\n\n //Droprown\n '*': {\n '@apply bg-background-content': {},\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":["chevronDown","color","tertiary","primary","Select","backgroundImage"],"mappings":"uuCAAA,SAASA,YAAYC,KAAa,EAEhC,MAAO,AAAC,0GAA+G,OAANA,MAAM,oGACzH,CAEA,SAASC,WACP,MAAO,CACL,aAAc,CACZ,kBAAmB,CAAC,EAEpB,6BAA8B,CAAC,EAC/B,yCAA0C,CAAC,EAC3C,4BAA6B,CAAC,EAE9B,sBAAuB,CAErB,eAAgB,CAAC,EAEjB,oBAAqB,CAAC,EAGtB,eAAgB,CAAC,CACnB,EACA,sBAAuB,CAErB,eAAgB,CAAC,EAEjB,qBAAsB,CAAC,EAEvB,eAAgB,CAAC,CACnB,EACA,sBAAuB,CAErB,eAAgB,CAAC,EAEjB,qBAAsB,CAAC,EAEvB,eAAgB,CAAC,CACnB,EAEA,0BAA2B,CACzB,sCAAuC,CAAC,CAC1C,CACF,CACF,CACF,CAEA,SAASC,UACP,MAAO,CACL,YAAa,CACX,kBAAmB,CAAC,EAC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CACzB,qBAAsB,CAAC,EACvB,4BAA6B,CAAC,EAC9B,wCAAyC,CAAC,EAC1C,sCAAuC,CAAC,EACxCK,gBAAiB,CAAC,AAAC,iCAAmE,OAAnCL,YAAY,uBAAuB,MAAI,AAC5F,GAEGE,WACAC,YAGH,IAAK,CACH,+BAAgC,CAAC,CACnC,EAEA,OAAQ,CACN,cAAe,CAAC,EAChB,0BAA2B,CAAC,EAC5B,2BAA4B,CAAC,EAC7B,IAAK,CACH,0BAA2B,CAAC,CAC9B,CACF,EACA,OAAQ,CACN,cAAe,CAAC,EAChB,2BAA4B,CAAC,EAC7B,2BAA4B,CAAC,EAC7B,IAAK,CACH,2BAA4B,CAAC,CAC/B,CACF,EACA,OAAQ,CACN,cAAe,CAAC,EAChB,0BAA2B,CAAC,EAC5B,2BAA4B,CAAC,EAC7B,IAAK,CACH,0BAA2B,CAAC,CAC9B,CACF,IAEF,wBAAyB,CACvBE,gBAAiB,CAAC,AAAC,iCAAgE,OAAhCL,YAAY,oBAAoB,MAAI,CACvF,mBAAoB,CAClBK,gBAAiB,CAAC,AAAC,iCAAgE,OAAhCL,YAAY,oBAAoB,MAAI,AACzF,EACA,0BAA2B,CACzBK,gBAAiB,CAAC,AAAC,iCAAuE,OAAvCL,YAAY,2BAA2B,MAAI,AAChG,CACF,CACF,EAAG"}
|
|
1
|
+
{"version":3,"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-input-field-outline': {},\r\n '@apply hover:border-input-field-outline-hover': {},\r\n '@apply bg-input-field-surface': {},\r\n '@apply hover:bg-input-field-surface': {},\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\"],&:disabled': {\r\n '@apply bg-input-field-surface-disabled': {},\r\n '@apply hover:bg-input-field-surface-disabled': {},\r\n '@apply border-input-field-outline-disabled': {},\r\n '@apply hover:border-input-field-outline-disabled': {},\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 //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.64)')}\")`],\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 //readOnly\r\n '&[readonly], &[readonly=\"true\"]': {\r\n '@apply border-input-field-outline-disabled': {},\r\n '@apply bg-input-field-surface-disabled': {},\r\n '@apply text-dark-secondary': {},\r\n '@apply pointer-events-none': {},\r\n backgroundImage: [`url(\"data:image/svg+xml;utf-8,${chevronDown('rgba(28,28,40, 0.64)')}\")`],\r\n },\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"],"names":["chevronDown","color","tertiary","primary","Select","backgroundImage"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAASA,YAAYC,KAAa;IAChC,4FAA4F;IAC5F,OAAO,AAAC,0GAA+G,OAANA,OAAM;AACzH;AAEA,SAASC;IACP,OAAO;QACL,cAAc;YACZ,mBAAmB,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A8B,CAAC;gBAC/B,8BAA8B,CAAC;gBAC/BE,iBAAiB;oBAAE,iCAAoE,OAApCL,YAAY,yBAAwB;iBAAI;YAC7F;YAGA,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;YACvBK,iBAAiB;gBAAE,iCAAgE,OAAhCL,YAAY,qBAAoB;aAAI;YACvF,oBAAoB;gBAClBK,iBAAiB;oBAAE,iCAAgE,OAAhCL,YAAY,qBAAoB;iBAAI;YACzF;YACA,2BAA2B;gBACzBK,iBAAiB;oBAAE,iCAAuE,OAAvCL,YAAY,4BAA2B;iBAAI;YAChG;QACF;IACF;EAAG"}
|
|
@@ -1,2 +1,34 @@
|
|
|
1
|
-
export var Snackbar=function()
|
|
1
|
+
export var Snackbar = function() {
|
|
2
|
+
return {
|
|
3
|
+
'.sk-snackbar': {
|
|
4
|
+
'@apply text-label-small text-vattjom-text-secondary': {},
|
|
5
|
+
'@apply flex items-center gap-12 py-8 pl-16 pr-8 rounded-groups break-words max-w-[28.6em]': {},
|
|
6
|
+
'&-text': {
|
|
7
|
+
'@apply flex-grow': {}
|
|
8
|
+
},
|
|
9
|
+
'.sk-icon': {
|
|
10
|
+
'@apply text-light-primary': {}
|
|
11
|
+
},
|
|
12
|
+
'&-content': {
|
|
13
|
+
'@apply flex-grow gap-12 py-4 flex items-center': {}
|
|
14
|
+
},
|
|
15
|
+
'&-primary': {
|
|
16
|
+
'@apply text-light-secondary bg-dark-primary': {}
|
|
17
|
+
},
|
|
18
|
+
'&-info': {
|
|
19
|
+
'@apply text-vattjom-text-secondary bg-vattjom-surface-primary': {}
|
|
20
|
+
},
|
|
21
|
+
'&-success': {
|
|
22
|
+
'@apply text-gronsta-text-secondary bg-gronsta-surface-primary': {}
|
|
23
|
+
},
|
|
24
|
+
'&-warning': {
|
|
25
|
+
'@apply text-warning-text-secondary bg-warning-surface-primary': {}
|
|
26
|
+
},
|
|
27
|
+
'&-error': {
|
|
28
|
+
'@apply text-error-text-secondary bg-error-surface-primary': {}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
|
|
2
34
|
//# sourceMappingURL=snackbar.js.map
|
|
@@ -1 +1 @@
|
|
|
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":"AAAA,OAAO,IAAMA,
|
|
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":"AAAA,OAAO,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;EAAG"}
|