@sk-web-gui/core 3.10.0 → 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 +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 +128 -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 +118 -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/package.json +10 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/list.ts"],"sourcesContent":["export const List = () => ({\n '.sk-list': {\n // General\n li: {\n '&:before': {\n '@apply text-vattjom-surface-primary font-bold': {},\n '@apply absolute inline-flex items-center justify-center text-center': {},\n '@apply w-24 h-24': {},\n },\n },\n\n '&[data-style=\"bullet\"]': {\n li: {\n '&:before': {\n \"@apply content-['•'] my-5 text-lead\": {},\n },\n },\n },\n\n '&[data-style=\"numbered\"]': {\n li: {\n counterIncrement: 'item',\n\n '&:before': {\n '@apply text-small border-vattjom-surface-primary rounded-full leading-8': {},\n '@apply my-6 h-22 w-22 border-2': {},\n content: 'counter(item)',\n },\n },\n },\n\n '&[data-style=\"stroke\"]': {\n li: {\n '&:before': {\n \"@apply content-['–'] my-4 text-base\": {},\n },\n },\n },\n\n '.sk-link': {\n '&-tertiary': {\n '@apply text-dark-primary': {},\n '&:hover': {\n '@apply text-dark-secondary': {},\n },\n },\n },\n\n '&-item': {\n '@apply pt-20': {},\n },\n\n '&-header': {\n '@apply text-large font-bold ml-32': {},\n },\n\n '&-text': {\n '@apply text-dark-secondary ml-32': {},\n },\n },\n});\n"],"names":["List","li","counterIncrement","content"],"mappings":"AAAA,OAAO,IAAMA,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/list.ts"],"sourcesContent":["export const List = () => ({\n '.sk-list': {\n // General\n li: {\n '&:before': {\n '@apply text-vattjom-surface-primary font-bold': {},\n '@apply absolute inline-flex items-center justify-center text-center': {},\n '@apply w-24 h-24': {},\n },\n },\n\n '&[data-style=\"bullet\"]': {\n li: {\n '&:before': {\n \"@apply content-['•'] my-5 text-lead\": {},\n },\n },\n },\n\n '&[data-style=\"numbered\"]': {\n li: {\n counterIncrement: 'item',\n\n '&:before': {\n '@apply text-small border-vattjom-surface-primary rounded-full leading-8': {},\n '@apply my-6 h-22 w-22 border-2': {},\n content: 'counter(item)',\n },\n },\n },\n\n '&[data-style=\"stroke\"]': {\n li: {\n '&:before': {\n \"@apply content-['–'] my-4 text-base\": {},\n },\n },\n },\n\n '.sk-link': {\n '&-tertiary': {\n '@apply text-dark-primary': {},\n '&:hover': {\n '@apply text-dark-secondary': {},\n },\n },\n },\n\n '&-item': {\n '@apply pt-20': {},\n },\n\n '&-header': {\n '@apply text-large font-bold ml-32': {},\n },\n\n '&-text': {\n '@apply text-dark-secondary ml-32': {},\n },\n },\n});\n"],"names":["List","li","counterIncrement","content"],"mappings":"AAAA,OAAO,IAAMA,OAAO;WAAO;QACzB,YAAY;YACV,UAAU;YACVC,IAAI;gBACF,YAAY;oBACV,iDAAiD,CAAC;oBAClD,uEAAuE,CAAC;oBACxE,oBAAoB,CAAC;gBACvB;YACF;YAEA,0BAA0B;gBACxBA,IAAI;oBACF,YAAY;wBACV,uCAAuC,CAAC;oBAC1C;gBACF;YACF;YAEA,4BAA4B;gBAC1BA,IAAI;oBACFC,kBAAkB;oBAElB,YAAY;wBACV,2EAA2E,CAAC;wBAC5E,kCAAkC,CAAC;wBACnCC,SAAS;oBACX;gBACF;YACF;YAEA,0BAA0B;gBACxBF,IAAI;oBACF,YAAY;wBACV,uCAAuC,CAAC;oBAC1C;gBACF;YACF;YAEA,YAAY;gBACV,cAAc;oBACZ,4BAA4B,CAAC;oBAC7B,WAAW;wBACT,8BAA8B,CAAC;oBACjC;gBACF;YACF;YAEA,UAAU;gBACR,gBAAgB,CAAC;YACnB;YAEA,YAAY;gBACV,qCAAqC,CAAC;YACxC;YAEA,UAAU;gBACR,oCAAoC,CAAC;YACvC;QACF;IACF;EAAG"}
|
|
@@ -1,2 +1,52 @@
|
|
|
1
|
-
export var Logo=function()
|
|
1
|
+
export var Logo = function() {
|
|
2
|
+
return {
|
|
3
|
+
'.sk-logo': {
|
|
4
|
+
'@apply flex w-auto h-auto': {},
|
|
5
|
+
'@apply items-center': {},
|
|
6
|
+
'@apply text-dark-primary': {},
|
|
7
|
+
'&[data-inverted="true"]': {
|
|
8
|
+
'@apply text-light-primary': {},
|
|
9
|
+
'.sk-logo-divider': {
|
|
10
|
+
'@apply border-inverted-divider': {}
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
'&-figure': {
|
|
14
|
+
'@apply w-full h-full': {}
|
|
15
|
+
},
|
|
16
|
+
'&[data-variant="service"]': {
|
|
17
|
+
'@apply flex-row gap-6': {},
|
|
18
|
+
'@apply w-max': {},
|
|
19
|
+
'@apply h-60': {},
|
|
20
|
+
'@apply pb-4': {},
|
|
21
|
+
'.sk-logo-figure': {
|
|
22
|
+
'@apply w-auto h-56': {}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
'a:focus-within &': {
|
|
26
|
+
'@apply outline outline-2 outline-ring': {}
|
|
27
|
+
},
|
|
28
|
+
'a &': {
|
|
29
|
+
'@apply no-underline': {}
|
|
30
|
+
},
|
|
31
|
+
'a:hover &': {
|
|
32
|
+
'@apply underline': {}
|
|
33
|
+
},
|
|
34
|
+
'&-service-content': {
|
|
35
|
+
'@apply h-full w-max': {},
|
|
36
|
+
'@apply flex flex-col justify-center': {},
|
|
37
|
+
'@apply pl-2 pt-2 pr-8 pb-0': {}
|
|
38
|
+
},
|
|
39
|
+
'&-title': {
|
|
40
|
+
'@apply font-header text-logo-header': {}
|
|
41
|
+
},
|
|
42
|
+
'&-subtitle': {
|
|
43
|
+
'@apply text-small font-normal block': {}
|
|
44
|
+
},
|
|
45
|
+
'&-divider': {
|
|
46
|
+
'@apply pt-8 pb-4': {}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
|
|
2
52
|
//# sourceMappingURL=logo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/logo.ts"],"sourcesContent":["export const Logo = () => ({\n '.sk-logo': {\n '@apply flex w-auto h-auto': {},\n '@apply items-center': {},\n '@apply text-dark-primary': {},\n '&[data-inverted=\"true\"]': {\n '@apply text-light-primary': {},\n '.sk-logo-divider': {\n '@apply border-inverted-divider': {},\n },\n },\n\n '&-figure': {\n '@apply w-full h-full': {},\n },\n '&[data-variant=\"service\"]': {\n '@apply flex-row gap-6': {},\n '@apply w-max': {},\n '@apply h-60': {},\n '@apply pb-4': {},\n '.sk-logo-figure': {\n '@apply w-auto h-56': {},\n },\n },\n 'a:focus-within &': {\n '@apply outline outline-2 outline-ring': {},\n },\n 'a &': {\n '@apply no-underline': {},\n },\n 'a:hover &': {\n '@apply underline': {},\n },\n '&-service-content': {\n '@apply h-full w-max': {},\n '@apply flex flex-col justify-center': {},\n '@apply pl-2 pt-2 pr-8 pb-0': {},\n },\n '&-title': {\n '@apply font-header text-logo-header': {},\n },\n '&-subtitle': {\n '@apply text-small font-normal block': {},\n },\n '&-divider': {\n '@apply pt-8 pb-4': {},\n },\n },\n});\n"],"names":["Logo"],"mappings":"AAAA,OAAO,IAAMA,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/logo.ts"],"sourcesContent":["export const Logo = () => ({\n '.sk-logo': {\n '@apply flex w-auto h-auto': {},\n '@apply items-center': {},\n '@apply text-dark-primary': {},\n '&[data-inverted=\"true\"]': {\n '@apply text-light-primary': {},\n '.sk-logo-divider': {\n '@apply border-inverted-divider': {},\n },\n },\n\n '&-figure': {\n '@apply w-full h-full': {},\n },\n '&[data-variant=\"service\"]': {\n '@apply flex-row gap-6': {},\n '@apply w-max': {},\n '@apply h-60': {},\n '@apply pb-4': {},\n '.sk-logo-figure': {\n '@apply w-auto h-56': {},\n },\n },\n 'a:focus-within &': {\n '@apply outline outline-2 outline-ring': {},\n },\n 'a &': {\n '@apply no-underline': {},\n },\n 'a:hover &': {\n '@apply underline': {},\n },\n '&-service-content': {\n '@apply h-full w-max': {},\n '@apply flex flex-col justify-center': {},\n '@apply pl-2 pt-2 pr-8 pb-0': {},\n },\n '&-title': {\n '@apply font-header text-logo-header': {},\n },\n '&-subtitle': {\n '@apply text-small font-normal block': {},\n },\n '&-divider': {\n '@apply pt-8 pb-4': {},\n },\n },\n});\n"],"names":["Logo"],"mappings":"AAAA,OAAO,IAAMA,OAAO;WAAO;QACzB,YAAY;YACV,6BAA6B,CAAC;YAC9B,uBAAuB,CAAC;YACxB,4BAA4B,CAAC;YAC7B,2BAA2B;gBACzB,6BAA6B,CAAC;gBAC9B,oBAAoB;oBAClB,kCAAkC,CAAC;gBACrC;YACF;YAEA,YAAY;gBACV,wBAAwB,CAAC;YAC3B;YACA,6BAA6B;gBAC3B,yBAAyB,CAAC;gBAC1B,gBAAgB,CAAC;gBACjB,eAAe,CAAC;gBAChB,eAAe,CAAC;gBAChB,mBAAmB;oBACjB,sBAAsB,CAAC;gBACzB;YACF;YACA,oBAAoB;gBAClB,yCAAyC,CAAC;YAC5C;YACA,OAAO;gBACL,uBAAuB,CAAC;YAC1B;YACA,aAAa;gBACX,oBAAoB,CAAC;YACvB;YACA,qBAAqB;gBACnB,uBAAuB,CAAC;gBACxB,uCAAuC,CAAC;gBACxC,8BAA8B,CAAC;YACjC;YACA,WAAW;gBACT,uCAAuC,CAAC;YAC1C;YACA,cAAc;gBACZ,uCAAuC,CAAC;YAC1C;YACA,aAAa;gBACX,oBAAoB,CAAC;YACvB;QACF;IACF;EAAG"}
|
|
@@ -1,2 +1,242 @@
|
|
|
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
|
+
import svgToTinyDataUri from 'mini-svg-data-uri';
|
|
30
|
+
var MenuVerticalNav = function() {
|
|
31
|
+
return {
|
|
32
|
+
'.sk-menu-vertical-nav': {
|
|
33
|
+
'.sk-menu-vertical': {
|
|
34
|
+
'@apply gap-12': {},
|
|
35
|
+
'&.ul, & ul': {
|
|
36
|
+
'@apply pt-12 pr-16 pb-16': {}
|
|
37
|
+
},
|
|
38
|
+
'&-item': {
|
|
39
|
+
'.sk-menu-vertical-item-submenu': {
|
|
40
|
+
'@apply font-bold': {},
|
|
41
|
+
'&-medium': {
|
|
42
|
+
'button, a': {
|
|
43
|
+
'@apply py-6 px-14': {}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
'&-large': {
|
|
47
|
+
'button, a': {
|
|
48
|
+
'@apply text-large': {},
|
|
49
|
+
'@apply py-10 px-14': {}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
var MenuVerticalSidebar = function() {
|
|
59
|
+
return {
|
|
60
|
+
'.sk-menu-vertical-sidebar': {
|
|
61
|
+
'@apply rounded-button': {},
|
|
62
|
+
'> ul > li > .sk-menu-vertical-item-submenu': {
|
|
63
|
+
'> .sk-menu-vertical-item-submenu-button': {
|
|
64
|
+
'@apply min-h-52': {}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
'> ul': {
|
|
68
|
+
'@apply py-16 px-24': {}
|
|
69
|
+
},
|
|
70
|
+
'.sk-menu-vertical': {
|
|
71
|
+
'@apply gap-12': {},
|
|
72
|
+
'&-header': {
|
|
73
|
+
'@apply bg-primary-surface': {},
|
|
74
|
+
'@apply rounded-t-button': {},
|
|
75
|
+
'@apply py-20 px-32': {},
|
|
76
|
+
'&, a': {
|
|
77
|
+
'@apply text-light-primary': {}
|
|
78
|
+
},
|
|
79
|
+
'.sk-divider': {
|
|
80
|
+
'@apply border-inverted-divider': {}
|
|
81
|
+
},
|
|
82
|
+
'.sk-logo': {
|
|
83
|
+
'@apply text-light-secondary': {}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
'&.ul, & ul': {
|
|
87
|
+
'@apply py-8 pl-20 ml-20': {}
|
|
88
|
+
},
|
|
89
|
+
'li ul': {
|
|
90
|
+
'@apply gap-8': {},
|
|
91
|
+
ul: {
|
|
92
|
+
li: {
|
|
93
|
+
'@apply text-small leading-18': {},
|
|
94
|
+
'.sk-menu-vertical-item-submenu-button, .sk-menu-vertical-item-submenu-button-expand': {
|
|
95
|
+
'@apply py-6 px-14': {}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
li: {
|
|
100
|
+
'@apply relative -ml-4': {},
|
|
101
|
+
// hook
|
|
102
|
+
'&:before': {
|
|
103
|
+
'@apply content-[""] absolute inline-flex w-20 h-44 -top-8 -left-16': {},
|
|
104
|
+
backgroundImage: 'url("'.concat(svgToTinyDataUri('<svg width="16" height="52" viewBox="0 0 16 52" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M1 17V17C1 24.1797 6.8203 30 14 30H15" stroke="#B7B7BA" stroke-linecap="round" />\n </svg>'), '")'),
|
|
105
|
+
backgroundRepeat: 'no-repeat'
|
|
106
|
+
},
|
|
107
|
+
// line
|
|
108
|
+
'&:not(:last-child):after': {
|
|
109
|
+
'@apply content-[""] absolute inline-flex w-20 -top-8 bottom-0 -left-16': {},
|
|
110
|
+
backgroundImage: 'url("'.concat(svgToTinyDataUri('<svg width="16" viewBox="0 0 16 52" xmlns="http://www.w3.org/2000/svg"> \n <line x1="1" y1="0" x2="1" y2="52" stroke="#B7B7BA" stroke-linecap="round" /> \n </svg> '), '")'),
|
|
111
|
+
backgroundRepeat: 'repeat-y'
|
|
112
|
+
},
|
|
113
|
+
// lastline
|
|
114
|
+
'&:last-child:after': {
|
|
115
|
+
'@apply content-[""] absolute inline-flex w-20 -top-8 bottom-0 -left-16': {},
|
|
116
|
+
backgroundImage: 'url("'.concat(svgToTinyDataUri('<svg width="16" height="17" viewBox="0 0 16 17" xmlns="http://www.w3.org/2000/svg"> \n <line x1="1" y1="0" x2="1" y2="17" stroke="#B7B7BA" stroke-linecap="round" /> \n </svg> '), '")'),
|
|
117
|
+
backgroundRepeat: 'no-repeat'
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
'&-item': {
|
|
122
|
+
'.sk-menu-vertical-item-submenu': {
|
|
123
|
+
'&-button': {
|
|
124
|
+
'@apply gap-8': {},
|
|
125
|
+
'&[aria-current="page"], &[aria-current="page"] ~ button': {
|
|
126
|
+
'@apply font-bold': {}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
'> a, > button': {
|
|
131
|
+
'&[aria-current="page"]': {
|
|
132
|
+
'@apply font-bold': {}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
export var MenuVertical = function() {
|
|
141
|
+
return _object_spread({
|
|
142
|
+
'.sk-menu-vertical': {
|
|
143
|
+
'@apply flex flex-col': {},
|
|
144
|
+
'@apply text-base': {},
|
|
145
|
+
'&.hide': {
|
|
146
|
+
'@apply hidden': {}
|
|
147
|
+
},
|
|
148
|
+
'&-backbutton': {
|
|
149
|
+
'@apply flex items-center gap-16 text-lead mb-40': {}
|
|
150
|
+
},
|
|
151
|
+
'&-label': {
|
|
152
|
+
'@apply mb-24': {}
|
|
153
|
+
},
|
|
154
|
+
'&-item': {
|
|
155
|
+
'@apply flex flex-col': {},
|
|
156
|
+
'&.hide': {
|
|
157
|
+
'@apply hidden': {}
|
|
158
|
+
},
|
|
159
|
+
'[aria-disabled="true"]': {
|
|
160
|
+
'@apply cursor-default bg-transparent text-primitives-overlay-darken-6 dark:text-primitives-overlay-lighten-7': {}
|
|
161
|
+
},
|
|
162
|
+
'a, button': {
|
|
163
|
+
'@apply flex': {},
|
|
164
|
+
color: 'unset'
|
|
165
|
+
},
|
|
166
|
+
'& > a, > button': {
|
|
167
|
+
'@apply flex items-center min-h-44': {},
|
|
168
|
+
'&:focus-visible': {
|
|
169
|
+
'@apply outline outline-2 outline-ring': {}
|
|
170
|
+
},
|
|
171
|
+
'> *': {
|
|
172
|
+
'@apply flex w-full py-6 px-14': {},
|
|
173
|
+
'@apply rounded-button cursor-pointer': {}
|
|
174
|
+
},
|
|
175
|
+
'&:not([aria-disabled="true"]) > *': {
|
|
176
|
+
'@apply bg-transparent text-dark-secondary': {}
|
|
177
|
+
},
|
|
178
|
+
'&:hover:not([aria-disabled="true"]) > *': {
|
|
179
|
+
'@apply bg-primitives-overlay-darken-3': {}
|
|
180
|
+
},
|
|
181
|
+
'&[aria-current="page"]:not(:hover) > *': {
|
|
182
|
+
'@apply bg-primary-surface text-light-primary': {},
|
|
183
|
+
'@apply focus-visible:ring': {}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
'.sk-menu-vertical-item-submenu': {
|
|
187
|
+
'@apply flex justify-between w-full': {},
|
|
188
|
+
'@apply rounded-button': {},
|
|
189
|
+
'&:hover': {
|
|
190
|
+
'> a:not([aria-disabled="true"]), > button:not([aria-disabled="true"]), > a[aria-expanded="true"]:not([aria-disabled="true"]), > button[aria-expanded="true"]:not([aria-disabled="true"])': {
|
|
191
|
+
'@apply text-dark-primary bg-primitives-overlay-darken-3': {}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
'&:focus-within': {
|
|
195
|
+
'@apply outline outline-2 outline-ring': {},
|
|
196
|
+
'.sk-menu-vertical-item-submenu-button, .sk-menu-vertical-item-submenu-button-expand': {
|
|
197
|
+
'&:focus-visible': {
|
|
198
|
+
'@apply ring-0 ring-offset-0 outline-0': {}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
'&-medium': {
|
|
203
|
+
'button, a': {
|
|
204
|
+
'@apply py-6 px-14': {}
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
'&-large': {
|
|
208
|
+
'button, a': {
|
|
209
|
+
'@apply py-10 px-14': {}
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
'&-button, &-button-expand': {
|
|
213
|
+
'@apply items-center': {},
|
|
214
|
+
'@apply py-10 px-14': {}
|
|
215
|
+
},
|
|
216
|
+
'&-button-expand': {
|
|
217
|
+
'@apply rounded-r-button rounded-l-0': {}
|
|
218
|
+
},
|
|
219
|
+
'&-button': {
|
|
220
|
+
'@apply text-left grow rounded-l-button rounded-r-0': {},
|
|
221
|
+
'&[aria-current="page"]:not(:hover), &[aria-current="page"]:not(:hover) ~ button:not(:hover)': {
|
|
222
|
+
'@apply bg-primary-surface text-light-primary': {}
|
|
223
|
+
},
|
|
224
|
+
'&[aria-expanded="true"]': {
|
|
225
|
+
'&:not(:hover,[aria-current="page"],[aria-disabled="true"]), &:not(:hover,[aria-current="page"],[aria-disabled="true"]) ~ button:not(:hover)': {
|
|
226
|
+
'@apply bg-vattjom-surface-accent': {}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
'.sk-menu-vertical-item-tool-item': {
|
|
232
|
+
'@apply flex items-center gap-10 p-6 rounded-groups': {},
|
|
233
|
+
'.sk-avatar': {
|
|
234
|
+
'@apply border-2 border-background-content': {}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}, MenuVerticalNav(), MenuVerticalSidebar());
|
|
240
|
+
};
|
|
241
|
+
|
|
2
242
|
//# sourceMappingURL=menu-vertical.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/menu-vertical.ts"],"sourcesContent":["import svgToTinyDataUri from 'mini-svg-data-uri';\n\nconst MenuVerticalNav = () => ({\n '.sk-menu-vertical-nav': {\n '.sk-menu-vertical': {\n '@apply gap-12': {},\n\n '&.ul, & ul': {\n '@apply pt-12 pr-16 pb-16': {},\n },\n\n '&-item': {\n '.sk-menu-vertical-item-submenu': {\n '@apply font-bold': {},\n\n '&-medium': {\n 'button, a': {\n '@apply py-6 px-14': {},\n },\n },\n '&-large': {\n 'button, a': {\n '@apply text-large': {},\n '@apply py-10 px-14': {},\n },\n },\n },\n },\n },\n },\n});\n\nconst MenuVerticalSidebar = () => ({\n '.sk-menu-vertical-sidebar': {\n '@apply rounded-button': {},\n\n '> ul > li > .sk-menu-vertical-item-submenu': {\n '> .sk-menu-vertical-item-submenu-button': {\n '@apply min-h-52': {},\n },\n },\n\n '> ul': {\n '@apply py-16 px-24': {},\n },\n\n '.sk-menu-vertical': {\n '@apply gap-12': {},\n\n '&-header': {\n '@apply bg-primary-surface': {},\n\n '@apply rounded-t-button': {},\n '@apply py-20 px-32': {},\n\n '&, a': {\n '@apply text-light-primary': {},\n },\n\n '.sk-divider': {\n '@apply border-inverted-divider': {},\n },\n\n '.sk-logo': {\n '@apply text-light-secondary': {},\n },\n },\n\n '&.ul, & ul': {\n '@apply py-8 pl-20 ml-20': {},\n },\n\n 'li ul': {\n '@apply gap-8': {},\n\n ul: {\n li: {\n '@apply text-small leading-18': {},\n\n '.sk-menu-vertical-item-submenu-button, .sk-menu-vertical-item-submenu-button-expand': {\n '@apply py-6 px-14': {},\n },\n },\n },\n\n li: {\n '@apply relative -ml-4': {},\n\n // hook\n '&:before': {\n '@apply content-[\"\"] absolute inline-flex w-20 h-44 -top-8 -left-16': {},\n\n backgroundImage: `url(\"${svgToTinyDataUri(\n `<svg width=\"16\" height=\"52\" viewBox=\"0 0 16 52\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M1 17V17C1 24.1797 6.8203 30 14 30H15\" stroke=\"#B7B7BA\" stroke-linecap=\"round\" />\n </svg>`\n )}\")`,\n backgroundRepeat: 'no-repeat',\n },\n\n // line\n '&:not(:last-child):after': {\n '@apply content-[\"\"] absolute inline-flex w-20 -top-8 bottom-0 -left-16': {},\n\n backgroundImage: `url(\"${svgToTinyDataUri(\n `<svg width=\"16\" viewBox=\"0 0 16 52\" xmlns=\"http://www.w3.org/2000/svg\"> \n <line x1=\"1\" y1=\"0\" x2=\"1\" y2=\"52\" stroke=\"#B7B7BA\" stroke-linecap=\"round\" /> \n </svg> `\n )}\")`,\n backgroundRepeat: 'repeat-y',\n },\n\n // lastline\n '&:last-child:after': {\n '@apply content-[\"\"] absolute inline-flex w-20 -top-8 bottom-0 -left-16': {},\n\n backgroundImage: `url(\"${svgToTinyDataUri(\n `<svg width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" xmlns=\"http://www.w3.org/2000/svg\"> \n <line x1=\"1\" y1=\"0\" x2=\"1\" y2=\"17\" stroke=\"#B7B7BA\" stroke-linecap=\"round\" /> \n </svg> `\n )}\")`,\n backgroundRepeat: 'no-repeat',\n },\n },\n },\n '&-item': {\n '.sk-menu-vertical-item-submenu': {\n '&-button': {\n '@apply gap-8': {},\n\n '&[aria-current=\"page\"], &[aria-current=\"page\"] ~ button': {\n '@apply font-bold': {},\n },\n },\n },\n\n '> a, > button': {\n '&[aria-current=\"page\"]': {\n '@apply font-bold': {},\n },\n },\n },\n },\n },\n});\n\nexport const MenuVertical = () => ({\n '.sk-menu-vertical': {\n '@apply flex flex-col': {},\n '@apply text-base': {},\n\n '&.hide': {\n '@apply hidden': {},\n },\n\n '&-backbutton': {\n '@apply flex items-center gap-16 text-lead mb-40': {},\n },\n\n '&-label': {\n '@apply mb-24': {},\n },\n\n '&-item': {\n '@apply flex flex-col': {},\n\n '&.hide': {\n '@apply hidden': {},\n },\n\n '[aria-disabled=\"true\"]': {\n '@apply cursor-default bg-transparent text-primitives-overlay-darken-6 dark:text-primitives-overlay-lighten-7':\n {},\n },\n\n 'a, button': {\n '@apply flex': {},\n color: 'unset',\n },\n\n '& > a, > button': {\n '@apply flex items-center min-h-44': {},\n\n '&:focus-visible': {\n '@apply outline outline-2 outline-ring': {},\n },\n\n '> *': {\n '@apply flex w-full py-6 px-14': {},\n '@apply rounded-button cursor-pointer': {},\n },\n\n '&:not([aria-disabled=\"true\"]) > *': {\n '@apply bg-transparent text-dark-secondary': {},\n },\n\n '&:hover:not([aria-disabled=\"true\"]) > *': {\n '@apply bg-primitives-overlay-darken-3': {},\n },\n\n '&[aria-current=\"page\"]:not(:hover) > *': {\n '@apply bg-primary-surface text-light-primary': {},\n '@apply focus-visible:ring': {},\n },\n },\n\n '.sk-menu-vertical-item-submenu': {\n '@apply flex justify-between w-full': {},\n '@apply rounded-button': {},\n\n '&:hover': {\n '> a:not([aria-disabled=\"true\"]), > button:not([aria-disabled=\"true\"]), > a[aria-expanded=\"true\"]:not([aria-disabled=\"true\"]), > button[aria-expanded=\"true\"]:not([aria-disabled=\"true\"])':\n {\n '@apply text-dark-primary bg-primitives-overlay-darken-3': {},\n },\n },\n\n '&:focus-within': {\n '@apply outline outline-2 outline-ring': {},\n\n '.sk-menu-vertical-item-submenu-button, .sk-menu-vertical-item-submenu-button-expand': {\n '&:focus-visible': {\n '@apply ring-0 ring-offset-0 outline-0': {},\n },\n },\n },\n\n '&-medium': {\n 'button, a': {\n '@apply py-6 px-14': {},\n },\n },\n '&-large': {\n 'button, a': {\n '@apply py-10 px-14': {},\n },\n },\n\n '&-button, &-button-expand': {\n '@apply items-center': {},\n '@apply py-10 px-14': {},\n },\n\n '&-button-expand': {\n '@apply rounded-r-button rounded-l-0': {},\n },\n\n '&-button': {\n '@apply text-left grow rounded-l-button rounded-r-0': {},\n\n '&[aria-current=\"page\"]:not(:hover), &[aria-current=\"page\"]:not(:hover) ~ button:not(:hover)': {\n '@apply bg-primary-surface text-light-primary': {},\n },\n\n '&[aria-expanded=\"true\"]': {\n '&:not(:hover,[aria-current=\"page\"],[aria-disabled=\"true\"]), &:not(:hover,[aria-current=\"page\"],[aria-disabled=\"true\"]) ~ button:not(:hover)':\n {\n '@apply bg-vattjom-surface-accent': {},\n },\n },\n },\n },\n\n '.sk-menu-vertical-item-tool-item': {\n '@apply flex items-center gap-10 p-6 rounded-groups': {},\n\n '.sk-avatar': {\n '@apply border-2 border-background-content': {},\n },\n },\n },\n },\n\n ...MenuVerticalNav(),\n ...MenuVerticalSidebar(),\n});\n"],"names":["svgToTinyDataUri","MenuVerticalNav","MenuVerticalS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ACF,EAEA,4BAA6B,CAC3B,sBAAuB,CAAC,EACxB,qBAAsB,CAAC,CACzB,EAEA,kBAAmB,CACjB,sCAAuC,CAAC,CAC1C,EAEA,WAAY,CACV,qDAAsD,CAAC,EAEvD,8FAA+F,CAC7F,+CAAgD,CAAC,CACnD,EAEA,0BAA2B,CACzB,8IACE,CACE,mCAAoC,CAAC,CACvC,CACJ,CACF,CACF,EAEA,mCAAoC,CAClC,qDAAsD,CAAC,EAEvD,aAAc,CACZ,4CAA6C,CAAC,CAChD,CACF,CACF,CACF,GAEGP,kBACAC,uBACF"}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/menu-vertical.ts"],"sourcesContent":["import svgToTinyDataUri from 'mini-svg-data-uri';\n\nconst MenuVerticalNav = () => ({\n '.sk-menu-vertical-nav': {\n '.sk-menu-vertical': {\n '@apply gap-12': {},\n\n '&.ul, & ul': {\n '@apply pt-12 pr-16 pb-16': {},\n },\n\n '&-item': {\n '.sk-menu-vertical-item-submenu': {\n '@apply font-bold': {},\n\n '&-medium': {\n 'button, a': {\n '@apply py-6 px-14': {},\n },\n },\n '&-large': {\n 'button, a': {\n '@apply text-large': {},\n '@apply py-10 px-14': {},\n },\n },\n },\n },\n },\n },\n});\n\nconst MenuVerticalSidebar = () => ({\n '.sk-menu-vertical-sidebar': {\n '@apply rounded-button': {},\n\n '> ul > li > .sk-menu-vertical-item-submenu': {\n '> .sk-menu-vertical-item-submenu-button': {\n '@apply min-h-52': {},\n },\n },\n\n '> ul': {\n '@apply py-16 px-24': {},\n },\n\n '.sk-menu-vertical': {\n '@apply gap-12': {},\n\n '&-header': {\n '@apply bg-primary-surface': {},\n\n '@apply rounded-t-button': {},\n '@apply py-20 px-32': {},\n\n '&, a': {\n '@apply text-light-primary': {},\n },\n\n '.sk-divider': {\n '@apply border-inverted-divider': {},\n },\n\n '.sk-logo': {\n '@apply text-light-secondary': {},\n },\n },\n\n '&.ul, & ul': {\n '@apply py-8 pl-20 ml-20': {},\n },\n\n 'li ul': {\n '@apply gap-8': {},\n\n ul: {\n li: {\n '@apply text-small leading-18': {},\n\n '.sk-menu-vertical-item-submenu-button, .sk-menu-vertical-item-submenu-button-expand': {\n '@apply py-6 px-14': {},\n },\n },\n },\n\n li: {\n '@apply relative -ml-4': {},\n\n // hook\n '&:before': {\n '@apply content-[\"\"] absolute inline-flex w-20 h-44 -top-8 -left-16': {},\n\n backgroundImage: `url(\"${svgToTinyDataUri(\n `<svg width=\"16\" height=\"52\" viewBox=\"0 0 16 52\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M1 17V17C1 24.1797 6.8203 30 14 30H15\" stroke=\"#B7B7BA\" stroke-linecap=\"round\" />\n </svg>`\n )}\")`,\n backgroundRepeat: 'no-repeat',\n },\n\n // line\n '&:not(:last-child):after': {\n '@apply content-[\"\"] absolute inline-flex w-20 -top-8 bottom-0 -left-16': {},\n\n backgroundImage: `url(\"${svgToTinyDataUri(\n `<svg width=\"16\" viewBox=\"0 0 16 52\" xmlns=\"http://www.w3.org/2000/svg\"> \n <line x1=\"1\" y1=\"0\" x2=\"1\" y2=\"52\" stroke=\"#B7B7BA\" stroke-linecap=\"round\" /> \n </svg> `\n )}\")`,\n backgroundRepeat: 'repeat-y',\n },\n\n // lastline\n '&:last-child:after': {\n '@apply content-[\"\"] absolute inline-flex w-20 -top-8 bottom-0 -left-16': {},\n\n backgroundImage: `url(\"${svgToTinyDataUri(\n `<svg width=\"16\" height=\"17\" viewBox=\"0 0 16 17\" xmlns=\"http://www.w3.org/2000/svg\"> \n <line x1=\"1\" y1=\"0\" x2=\"1\" y2=\"17\" stroke=\"#B7B7BA\" stroke-linecap=\"round\" /> \n </svg> `\n )}\")`,\n backgroundRepeat: 'no-repeat',\n },\n },\n },\n '&-item': {\n '.sk-menu-vertical-item-submenu': {\n '&-button': {\n '@apply gap-8': {},\n\n '&[aria-current=\"page\"], &[aria-current=\"page\"] ~ button': {\n '@apply font-bold': {},\n },\n },\n },\n\n '> a, > button': {\n '&[aria-current=\"page\"]': {\n '@apply font-bold': {},\n },\n },\n },\n },\n },\n});\n\nexport const MenuVertical = () => ({\n '.sk-menu-vertical': {\n '@apply flex flex-col': {},\n '@apply text-base': {},\n\n '&.hide': {\n '@apply hidden': {},\n },\n\n '&-backbutton': {\n '@apply flex items-center gap-16 text-lead mb-40': {},\n },\n\n '&-label': {\n '@apply mb-24': {},\n },\n\n '&-item': {\n '@apply flex flex-col': {},\n\n '&.hide': {\n '@apply hidden': {},\n },\n\n '[aria-disabled=\"true\"]': {\n '@apply cursor-default bg-transparent text-primitives-overlay-darken-6 dark:text-primitives-overlay-lighten-7':\n {},\n },\n\n 'a, button': {\n '@apply flex': {},\n color: 'unset',\n },\n\n '& > a, > button': {\n '@apply flex items-center min-h-44': {},\n\n '&:focus-visible': {\n '@apply outline outline-2 outline-ring': {},\n },\n\n '> *': {\n '@apply flex w-full py-6 px-14': {},\n '@apply rounded-button cursor-pointer': {},\n },\n\n '&:not([aria-disabled=\"true\"]) > *': {\n '@apply bg-transparent text-dark-secondary': {},\n },\n\n '&:hover:not([aria-disabled=\"true\"]) > *': {\n '@apply bg-primitives-overlay-darken-3': {},\n },\n\n '&[aria-current=\"page\"]:not(:hover) > *': {\n '@apply bg-primary-surface text-light-primary': {},\n '@apply focus-visible:ring': {},\n },\n },\n\n '.sk-menu-vertical-item-submenu': {\n '@apply flex justify-between w-full': {},\n '@apply rounded-button': {},\n\n '&:hover': {\n '> a:not([aria-disabled=\"true\"]), > button:not([aria-disabled=\"true\"]), > a[aria-expanded=\"true\"]:not([aria-disabled=\"true\"]), > button[aria-expanded=\"true\"]:not([aria-disabled=\"true\"])':\n {\n '@apply text-dark-primary bg-primitives-overlay-darken-3': {},\n },\n },\n\n '&:focus-within': {\n '@apply outline outline-2 outline-ring': {},\n\n '.sk-menu-vertical-item-submenu-button, .sk-menu-vertical-item-submenu-button-expand': {\n '&:focus-visible': {\n '@apply ring-0 ring-offset-0 outline-0': {},\n },\n },\n },\n\n '&-medium': {\n 'button, a': {\n '@apply py-6 px-14': {},\n },\n },\n '&-large': {\n 'button, a': {\n '@apply py-10 px-14': {},\n },\n },\n\n '&-button, &-button-expand': {\n '@apply items-center': {},\n '@apply py-10 px-14': {},\n },\n\n '&-button-expand': {\n '@apply rounded-r-button rounded-l-0': {},\n },\n\n '&-button': {\n '@apply text-left grow rounded-l-button rounded-r-0': {},\n\n '&[aria-current=\"page\"]:not(:hover), &[aria-current=\"page\"]:not(:hover) ~ button:not(:hover)': {\n '@apply bg-primary-surface text-light-primary': {},\n },\n\n '&[aria-expanded=\"true\"]': {\n '&:not(:hover,[aria-current=\"page\"],[aria-disabled=\"true\"]), &:not(:hover,[aria-current=\"page\"],[aria-disabled=\"true\"]) ~ button:not(:hover)':\n {\n '@apply bg-vattjom-surface-accent': {},\n },\n },\n },\n },\n\n '.sk-menu-vertical-item-tool-item': {\n '@apply flex items-center gap-10 p-6 rounded-groups': {},\n\n '.sk-avatar': {\n '@apply border-2 border-background-content': {},\n },\n },\n },\n },\n\n ...MenuVerticalNav(),\n ...MenuVerticalSidebar(),\n});\n"],"names":["svgToTinyDataUri","MenuVerticalNav","MenuVerticalSidebar","ul","li","backgroundImage","backgroundRepeat","MenuVertical","color"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAOA,sBAAsB,oBAAoB;AAEjD,IAAMC,kBAAkB;WAAO;QAC7B,yBAAyB;YACvB,qBAAqB;gBACnB,iBAAiB,CAAC;gBAElB,cAAc;oBACZ,4BAA4B,CAAC;gBAC/B;gBAEA,UAAU;oBACR,kCAAkC;wBAChC,oBAAoB,CAAC;wBAErB,YAAY;4BACV,aAAa;gCACX,qBAAqB,CAAC;4BACxB;wBACF;wBACA,WAAW;4BACT,aAAa;gCACX,qBAAqB,CAAC;gCACtB,sBAAsB,CAAC;4BACzB;wBACF;oBACF;gBACF;YACF;QACF;IACF;;AAEA,IAAMC,sBAAsB;WAAO;QACjC,6BAA6B;YAC3B,yBAAyB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BACF;gBACF;gBAEA,oCAAoC;oBAClC,sDAAsD,CAAC;oBAEvD,cAAc;wBACZ,6CAA6C,CAAC;oBAChD;gBACF;YACF;QACF;OAEGP,mBACAC;EACF"}
|
|
@@ -1,2 +1,95 @@
|
|
|
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
|
+
export var MenuBar = function(colors) {
|
|
54
|
+
return {
|
|
55
|
+
'.sk-menubar': {
|
|
56
|
+
'@apply flex flex-row': {},
|
|
57
|
+
'@apply p-8 gap-16': {},
|
|
58
|
+
'@apply rounded-cards': {},
|
|
59
|
+
'&[data-background="true"]': {
|
|
60
|
+
'@apply bg-background-color-mixin-1': {}
|
|
61
|
+
},
|
|
62
|
+
'&-item': _object_spread({
|
|
63
|
+
'@apply inline-block': {},
|
|
64
|
+
'@apply relative': {},
|
|
65
|
+
'@apply h-40': {},
|
|
66
|
+
'a, button': {
|
|
67
|
+
color: 'unset'
|
|
68
|
+
},
|
|
69
|
+
'> *:first-child': {
|
|
70
|
+
'@apply rounded-button-sm md:rounded-button-md xl:rounded-button-lg': {},
|
|
71
|
+
'@apply cursor-pointer': {},
|
|
72
|
+
'@apply bg-transparent text-dark-primary': {},
|
|
73
|
+
'@apply hover:bg-tertiary-surface': {},
|
|
74
|
+
'@apply font-bold': {},
|
|
75
|
+
'@apply gap-2 px-14 py-8': {},
|
|
76
|
+
'@apply h-full min-h-full': {},
|
|
77
|
+
'@apply inline-flex shrink-0 flex-nowrap': {},
|
|
78
|
+
'@apply border-0': {},
|
|
79
|
+
'@apply focus-visible:bg-background-content focus-visible:ring': {},
|
|
80
|
+
'&[aria-current="page"]:not(:hover),&[aria-selected="true"]:not(:hover), ': {
|
|
81
|
+
'@apply bg-primary-surface text-light-primary': {},
|
|
82
|
+
'@apply focus-visible:ring': {}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}, colors.reduce(function(styles, color) {
|
|
86
|
+
var _obj, _obj1;
|
|
87
|
+
return _object_spread_props(_object_spread({}, styles), _define_property({}, '&[data-color="'.concat(color, '"]'), {
|
|
88
|
+
'> *:first-child': (_obj1 = {}, _define_property(_obj1, "@apply hover:bg-".concat(color, "-surface-accent"), {}), _define_property(_obj1, "@apply hover:text-".concat(color, "-text-primary"), {}), _define_property(_obj1, '@apply focus-visible:bg-background-content focus-visible:ring', {}), _define_property(_obj1, '&[aria-current="page"]:not(:hover),&[aria-selected="true"]:not(:hover)', (_obj = {}, _define_property(_obj, "@apply bg-".concat(color, "-surface-primary"), {}), _define_property(_obj, '@apply focus-visible:ring', {}), _obj)), _obj1)
|
|
89
|
+
}));
|
|
90
|
+
}, {}))
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
|
|
2
95
|
//# sourceMappingURL=menubar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/menubar.ts"],"sourcesContent":["export const MenuBar = (colors: string[]) => ({\n '.sk-menubar': {\n '@apply flex flex-row': {},\n '@apply p-8 gap-16': {},\n '@apply rounded-cards': {},\n\n '&[data-background=\"true\"]': {\n '@apply bg-background-color-mixin-1': {},\n },\n\n '&-item': {\n '@apply inline-block': {},\n '@apply relative': {},\n '@apply h-40': {},\n 'a, button': {\n color: 'unset',\n },\n\n '> *:first-child': {\n '@apply rounded-button-sm md:rounded-button-md xl:rounded-button-lg': {},\n '@apply cursor-pointer': {},\n '@apply bg-transparent text-dark-primary': {},\n '@apply hover:bg-tertiary-surface': {},\n '@apply font-bold': {},\n '@apply gap-2 px-14 py-8': {},\n '@apply h-full min-h-full': {},\n '@apply inline-flex shrink-0 flex-nowrap': {},\n\n '@apply border-0': {},\n '@apply focus-visible:bg-background-content focus-visible:ring': {},\n '&[aria-current=\"page\"]:not(:hover),&[aria-selected=\"true\"]:not(:hover), ': {\n '@apply bg-primary-surface text-light-primary': {},\n '@apply focus-visible:ring': {},\n },\n },\n ...colors.reduce(\n (styles, color) => ({\n ...styles,\n [`&[data-color=\"${color}\"]`]: {\n '> *:first-child': {\n [`@apply hover:bg-${color}-surface-accent`]: {},\n [`@apply hover:text-${color}-text-primary`]: {},\n '@apply focus-visible:bg-background-content focus-visible:ring': {},\n '&[aria-current=\"page\"]:not(:hover),&[aria-selected=\"true\"]:not(:hover)': {\n [`@apply bg-${color}-surface-primary`]: {},\n '@apply focus-visible:ring': {},\n },\n },\n },\n }),\n {}\n ),\n },\n },\n});\n"],"names":["MenuBar","colors","color","reduce","styles"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/menubar.ts"],"sourcesContent":["export const MenuBar = (colors: string[]) => ({\n '.sk-menubar': {\n '@apply flex flex-row': {},\n '@apply p-8 gap-16': {},\n '@apply rounded-cards': {},\n\n '&[data-background=\"true\"]': {\n '@apply bg-background-color-mixin-1': {},\n },\n\n '&-item': {\n '@apply inline-block': {},\n '@apply relative': {},\n '@apply h-40': {},\n 'a, button': {\n color: 'unset',\n },\n\n '> *:first-child': {\n '@apply rounded-button-sm md:rounded-button-md xl:rounded-button-lg': {},\n '@apply cursor-pointer': {},\n '@apply bg-transparent text-dark-primary': {},\n '@apply hover:bg-tertiary-surface': {},\n '@apply font-bold': {},\n '@apply gap-2 px-14 py-8': {},\n '@apply h-full min-h-full': {},\n '@apply inline-flex shrink-0 flex-nowrap': {},\n\n '@apply border-0': {},\n '@apply focus-visible:bg-background-content focus-visible:ring': {},\n '&[aria-current=\"page\"]:not(:hover),&[aria-selected=\"true\"]:not(:hover), ': {\n '@apply bg-primary-surface text-light-primary': {},\n '@apply focus-visible:ring': {},\n },\n },\n ...colors.reduce(\n (styles, color) => ({\n ...styles,\n [`&[data-color=\"${color}\"]`]: {\n '> *:first-child': {\n [`@apply hover:bg-${color}-surface-accent`]: {},\n [`@apply hover:text-${color}-text-primary`]: {},\n '@apply focus-visible:bg-background-content focus-visible:ring': {},\n '&[aria-current=\"page\"]:not(:hover),&[aria-selected=\"true\"]:not(:hover)': {\n [`@apply bg-${color}-surface-primary`]: {},\n '@apply focus-visible:ring': {},\n },\n },\n },\n }),\n {}\n ),\n },\n },\n});\n"],"names":["MenuBar","colors","color","reduce","styles"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,IAAMA,UAAU,SAACC;WAAsB;QAC5C,eAAe;YACb,wBAAwB,CAAC;YACzB,qBAAqB,CAAC;YACtB,wBAAwB,CAAC;YAEzB,6BAA6B;gBAC3B,sCAAsC,CAAC;YACzC;YAEA,UAAU;gBACR,uBAAuB,CAAC;gBACxB,mBAAmB,CAAC;gBACpB,eAAe,CAAC;gBAChB,aAAa;oBACXC,OAAO;gBACT;gBAEA,mBAAmB;oBACjB,sEAAsE,CAAC;oBACvE,yBAAyB,CAAC;oBAC1B,2CAA2C,CAAC;oBAC5C,oCAAoC,CAAC;oBACrC,oBAAoB,CAAC;oBACrB,2BAA2B,CAAC;oBAC5B,4BAA4B,CAAC;oBAC7B,2CAA2C,CAAC;oBAE5C,mBAAmB,CAAC;oBACpB,iEAAiE,CAAC;oBAClE,4EAA4E;wBAC1E,gDAAgD,CAAC;wBACjD,6BAA6B,CAAC;oBAChC;gBACF;eACGD,OAAOE,MAAM,CACd,SAACC,QAAQF;oBAOuE,MAJzD;uBAHH,wCACfE,SACH,qBAAC,AAAC,iBAAsB,OAANF,OAAM,OAAM;oBAC5B,iBAAiB,GAAE,YACjB,iBADiB,OAChB,AAAC,mBAAwB,OAANA,OAAM,oBAAmB,CAAC,IAC9C,iBAFiB,OAEhB,AAAC,qBAA0B,OAANA,OAAM,kBAAiB,CAAC,IAC9C,iBAHiB,OAGjB,iEAAiE,CAAC,qBAHjD,OAIjB,2EAA0E,WACxE,iBADwE,MACvE,AAAC,aAAkB,OAANA,OAAM,qBAAoB,CAAC,IACzC,iBAFwE,MAExE,6BAA6B,CAAC,IAF0C,QAJzD;gBASrB;eAEF,CAAC;QAGP;IACF;EAAG"}
|
|
@@ -1,2 +1,52 @@
|
|
|
1
|
-
export var Modal=function()
|
|
1
|
+
export var Modal = function() {
|
|
2
|
+
return {
|
|
3
|
+
'.sk-modal': {
|
|
4
|
+
'&-wrapper': {
|
|
5
|
+
'@apply fixed inset-0 z-20 overflow-y-auto': {},
|
|
6
|
+
'@apply bg-primitives-overlay-darken-6': {},
|
|
7
|
+
'@apply dark:bg-primitives-overlay-darken-8': {},
|
|
8
|
+
'&-inner': {
|
|
9
|
+
'@apply min-h-screen px-4 text-center': {}
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
'&-overlay': {
|
|
13
|
+
'@apply fixed inset-0': {}
|
|
14
|
+
},
|
|
15
|
+
'&-trixter': {
|
|
16
|
+
'@apply inline-block h-screen align-middle': {}
|
|
17
|
+
},
|
|
18
|
+
'&-dialog': {
|
|
19
|
+
'@apply text-dark-secondary': {},
|
|
20
|
+
'@apply inline-flex flex-col': {},
|
|
21
|
+
'@apply text-left': {},
|
|
22
|
+
'@apply align-middle': {},
|
|
23
|
+
'@apply transition-all transform': {},
|
|
24
|
+
'@apply rounded-cards': {},
|
|
25
|
+
'@apply bg-background-content': {},
|
|
26
|
+
'@apply dark:bg-background-100': {},
|
|
27
|
+
'@apply px-24 pt-24 pb-40': {},
|
|
28
|
+
'@apply gap-16': {},
|
|
29
|
+
'&-header': {
|
|
30
|
+
'@apply flex justify-between items-center w-full': {},
|
|
31
|
+
'&-title': {
|
|
32
|
+
'@apply grow': {},
|
|
33
|
+
'@apply text-label-medium': {}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
'&-content': {
|
|
38
|
+
'@apply flex flex-col': {},
|
|
39
|
+
'@apply py-8 pb-16 gap-12': {},
|
|
40
|
+
'h1, h2, h3, h4, h5, h6': {
|
|
41
|
+
'@apply text-dark-primary': {}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
'&-footer': {
|
|
45
|
+
'@apply flex flex-row justify-start': {},
|
|
46
|
+
'@apply p-0 gap-12': {}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
|
|
2
52
|
//# sourceMappingURL=modal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/modal.ts"],"sourcesContent":["export const Modal = () => ({\r\n '.sk-modal': {\r\n '&-wrapper': {\r\n '@apply fixed inset-0 z-20 overflow-y-auto': {},\r\n '@apply bg-primitives-overlay-darken-6': {},\r\n '@apply dark:bg-primitives-overlay-darken-8': {},\r\n\r\n '&-inner': {\r\n '@apply min-h-screen px-4 text-center': {},\r\n },\r\n },\r\n\r\n '&-overlay': {\r\n '@apply fixed inset-0': {},\r\n },\r\n\r\n '&-trixter': {\r\n '@apply inline-block h-screen align-middle': {},\r\n },\r\n\r\n '&-dialog': {\r\n '@apply text-dark-secondary': {},\r\n '@apply inline-flex flex-col': {},\r\n '@apply text-left': {},\r\n '@apply align-middle': {},\r\n '@apply transition-all transform': {},\r\n '@apply rounded-cards': {},\r\n '@apply bg-background-content': {},\r\n '@apply dark:bg-background-100': {},\r\n '@apply px-24 pt-24 pb-40': {},\r\n '@apply gap-16': {},\r\n\r\n '&-header': {\r\n '@apply flex justify-between items-center w-full': {},\r\n '&-title': {\r\n '@apply grow': {},\r\n '@apply text-label-medium': {},\r\n },\r\n },\r\n },\r\n '&-content': {\r\n '@apply flex flex-col': {},\r\n '@apply py-8 pb-16 gap-12': {},\r\n 'h1, h2, h3, h4, h5, h6': {\r\n '@apply text-dark-primary': {},\r\n },\r\n },\r\n '&-footer': {\r\n '@apply flex flex-row justify-start': {},\r\n '@apply p-0 gap-12': {},\r\n },\r\n },\r\n});\r\n"],"names":["Modal"],"mappings":"AAAA,OAAO,IAAMA,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/modal.ts"],"sourcesContent":["export const Modal = () => ({\r\n '.sk-modal': {\r\n '&-wrapper': {\r\n '@apply fixed inset-0 z-20 overflow-y-auto': {},\r\n '@apply bg-primitives-overlay-darken-6': {},\r\n '@apply dark:bg-primitives-overlay-darken-8': {},\r\n\r\n '&-inner': {\r\n '@apply min-h-screen px-4 text-center': {},\r\n },\r\n },\r\n\r\n '&-overlay': {\r\n '@apply fixed inset-0': {},\r\n },\r\n\r\n '&-trixter': {\r\n '@apply inline-block h-screen align-middle': {},\r\n },\r\n\r\n '&-dialog': {\r\n '@apply text-dark-secondary': {},\r\n '@apply inline-flex flex-col': {},\r\n '@apply text-left': {},\r\n '@apply align-middle': {},\r\n '@apply transition-all transform': {},\r\n '@apply rounded-cards': {},\r\n '@apply bg-background-content': {},\r\n '@apply dark:bg-background-100': {},\r\n '@apply px-24 pt-24 pb-40': {},\r\n '@apply gap-16': {},\r\n\r\n '&-header': {\r\n '@apply flex justify-between items-center w-full': {},\r\n '&-title': {\r\n '@apply grow': {},\r\n '@apply text-label-medium': {},\r\n },\r\n },\r\n },\r\n '&-content': {\r\n '@apply flex flex-col': {},\r\n '@apply py-8 pb-16 gap-12': {},\r\n 'h1, h2, h3, h4, h5, h6': {\r\n '@apply text-dark-primary': {},\r\n },\r\n },\r\n '&-footer': {\r\n '@apply flex flex-row justify-start': {},\r\n '@apply p-0 gap-12': {},\r\n },\r\n },\r\n});\r\n"],"names":["Modal"],"mappings":"AAAA,OAAO,IAAMA,QAAQ;WAAO;QAC1B,aAAa;YACX,aAAa;gBACX,6CAA6C,CAAC;gBAC9C,yCAAyC,CAAC;gBAC1C,8CAA8C,CAAC;gBAE/C,WAAW;oBACT,wCAAwC,CAAC;gBAC3C;YACF;YAEA,aAAa;gBACX,wBAAwB,CAAC;YAC3B;YAEA,aAAa;gBACX,6CAA6C,CAAC;YAChD;YAEA,YAAY;gBACV,8BAA8B,CAAC;gBAC/B,+BAA+B,CAAC;gBAChC,oBAAoB,CAAC;gBACrB,uBAAuB,CAAC;gBACxB,mCAAmC,CAAC;gBACpC,wBAAwB,CAAC;gBACzB,gCAAgC,CAAC;gBACjC,iCAAiC,CAAC;gBAClC,4BAA4B,CAAC;gBAC7B,iBAAiB,CAAC;gBAElB,YAAY;oBACV,mDAAmD,CAAC;oBACpD,WAAW;wBACT,eAAe,CAAC;wBAChB,4BAA4B,CAAC;oBAC/B;gBACF;YACF;YACA,aAAa;gBACX,wBAAwB,CAAC;gBACzB,4BAA4B,CAAC;gBAC7B,0BAA0B;oBACxB,4BAA4B,CAAC;gBAC/B;YACF;YACA,YAAY;gBACV,sCAAsC,CAAC;gBACvC,qBAAqB,CAAC;YACxB;QACF;IACF;EAAG"}
|