@sk-web-gui/core 3.13.0 → 3.13.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 +18 -20
- package/dist/cjs/aria-plugin.js.map +1 -1
- package/dist/cjs/base.js +2 -2
- package/dist/cjs/base.js.map +1 -1
- package/dist/cjs/colors.js +420 -420
- package/dist/cjs/colors.js.map +1 -1
- package/dist/cjs/components/accordion.js +2 -4
- package/dist/cjs/components/accordion.js.map +1 -1
- package/dist/cjs/components/ai/ai-corner-module.js +11 -62
- package/dist/cjs/components/ai/ai-corner-module.js.map +1 -1
- package/dist/cjs/components/ai/ai-feed.js +2 -4
- package/dist/cjs/components/ai/ai-feed.js.map +1 -1
- package/dist/cjs/components/ai/ai-service-module.js +28 -68
- package/dist/cjs/components/ai/ai-service-module.js.map +1 -1
- package/dist/cjs/components/ai/assistant-presentation.js +2 -4
- package/dist/cjs/components/ai/assistant-presentation.js.map +1 -1
- package/dist/cjs/components/ai/assistant-switch.js +2 -4
- package/dist/cjs/components/ai/assistant-switch.js.map +1 -1
- package/dist/cjs/components/ai/bubble.js +42 -71
- package/dist/cjs/components/ai/bubble.js.map +1 -1
- package/dist/cjs/components/ai/feedback.js +2 -4
- package/dist/cjs/components/ai/feedback.js.map +1 -1
- package/dist/cjs/components/ai/input-section.js +2 -4
- package/dist/cjs/components/ai/input-section.js.map +1 -1
- package/dist/cjs/components/ai/markdown-rendered.js +2 -4
- package/dist/cjs/components/ai/markdown-rendered.js.map +1 -1
- package/dist/cjs/components/ai/new-session-button.js +2 -4
- package/dist/cjs/components/ai/new-session-button.js.map +1 -1
- package/dist/cjs/components/ai/typing-bubble.js +2 -4
- package/dist/cjs/components/ai/typing-bubble.js.map +1 -1
- package/dist/cjs/components/ai/typing-sequence.js +17 -63
- package/dist/cjs/components/ai/typing-sequence.js.map +1 -1
- package/dist/cjs/components/avatar.js +14 -63
- package/dist/cjs/components/avatar.js.map +1 -1
- package/dist/cjs/components/badge.js +15 -65
- package/dist/cjs/components/badge.js.map +1 -1
- package/dist/cjs/components/breadcrumb.js +14 -24
- package/dist/cjs/components/breadcrumb.js.map +1 -1
- package/dist/cjs/components/button-group.js +2 -4
- package/dist/cjs/components/button-group.js.map +1 -1
- package/dist/cjs/components/button.js +59 -88
- package/dist/cjs/components/button.js.map +1 -1
- package/dist/cjs/components/callout.js +19 -69
- package/dist/cjs/components/callout.js.map +1 -1
- package/dist/cjs/components/card.js +128 -155
- package/dist/cjs/components/card.js.map +1 -1
- package/dist/cjs/components/checkbox.js +2 -4
- package/dist/cjs/components/checkbox.js.map +1 -1
- package/dist/cjs/components/chip.js +2 -4
- package/dist/cjs/components/chip.js.map +1 -1
- package/dist/cjs/components/code.js +2 -4
- package/dist/cjs/components/code.js.map +1 -1
- package/dist/cjs/components/combobox.js +2 -4
- package/dist/cjs/components/combobox.js.map +1 -1
- package/dist/cjs/components/cookie-consent.js +2 -4
- package/dist/cjs/components/cookie-consent.js.map +1 -1
- package/dist/cjs/components/dialog.js +11 -61
- package/dist/cjs/components/dialog.js.map +1 -1
- package/dist/cjs/components/divider.js +2 -4
- package/dist/cjs/components/divider.js.map +1 -1
- package/dist/cjs/components/dot.js +27 -70
- package/dist/cjs/components/dot.js.map +1 -1
- package/dist/cjs/components/file-upload.js +2 -4
- package/dist/cjs/components/file-upload.js.map +1 -1
- package/dist/cjs/components/filter.js +2 -4
- package/dist/cjs/components/filter.js.map +1 -1
- package/dist/cjs/components/footer.js +2 -4
- package/dist/cjs/components/footer.js.map +1 -1
- package/dist/cjs/components/forms.js +2 -4
- package/dist/cjs/components/forms.js.map +1 -1
- package/dist/cjs/components/header.js +2 -4
- package/dist/cjs/components/header.js.map +1 -1
- package/dist/cjs/components/icon.js +29 -76
- package/dist/cjs/components/icon.js.map +1 -1
- package/dist/cjs/components/input.js +21 -71
- package/dist/cjs/components/input.js.map +1 -1
- package/dist/cjs/components/kbd.js +2 -4
- package/dist/cjs/components/kbd.js.map +1 -1
- package/dist/cjs/components/label.js +16 -63
- package/dist/cjs/components/label.js.map +1 -1
- package/dist/cjs/components/link.js +2 -4
- package/dist/cjs/components/link.js.map +1 -1
- package/dist/cjs/components/list.js +2 -4
- package/dist/cjs/components/list.js.map +1 -1
- package/dist/cjs/components/logo.js +2 -4
- package/dist/cjs/components/logo.js.map +1 -1
- package/dist/cjs/components/menu-vertical.js +19 -45
- package/dist/cjs/components/menu-vertical.js.map +1 -1
- package/dist/cjs/components/menubar.js +19 -64
- package/dist/cjs/components/menubar.js.map +1 -1
- package/dist/cjs/components/modal.js +2 -4
- package/dist/cjs/components/modal.js.map +1 -1
- package/dist/cjs/components/pagination.js +2 -4
- package/dist/cjs/components/pagination.js.map +1 -1
- package/dist/cjs/components/popup-menu.js +2 -4
- package/dist/cjs/components/popup-menu.js.map +1 -1
- package/dist/cjs/components/progress-bar.js +19 -66
- package/dist/cjs/components/progress-bar.js.map +1 -1
- package/dist/cjs/components/progress-stepper.js +2 -4
- package/dist/cjs/components/progress-stepper.js.map +1 -1
- package/dist/cjs/components/radio.js +2 -4
- package/dist/cjs/components/radio.js.map +1 -1
- package/dist/cjs/components/search-field.js +2 -4
- package/dist/cjs/components/search-field.js.map +1 -1
- package/dist/cjs/components/select.js +15 -68
- package/dist/cjs/components/select.js.map +1 -1
- package/dist/cjs/components/snackbar.js +2 -4
- package/dist/cjs/components/snackbar.js.map +1 -1
- package/dist/cjs/components/spinner.js +14 -67
- package/dist/cjs/components/spinner.js.map +1 -1
- package/dist/cjs/components/switch.js +34 -42
- package/dist/cjs/components/switch.js.map +1 -1
- package/dist/cjs/components/table.js +15 -66
- package/dist/cjs/components/table.js.map +1 -1
- package/dist/cjs/components/tabs.js +13 -64
- package/dist/cjs/components/tabs.js.map +1 -1
- package/dist/cjs/components/tooltip.js +2 -4
- package/dist/cjs/components/tooltip.js.map +1 -1
- package/dist/cjs/components/user-menu.js +2 -4
- package/dist/cjs/components/user-menu.js.map +1 -1
- package/dist/cjs/components.js +56 -56
- package/dist/cjs/components.js.map +1 -1
- package/dist/cjs/data-plugin.js +10 -10
- package/dist/cjs/data-plugin.js.map +1 -1
- package/dist/cjs/fonts.js +1 -1
- package/dist/cjs/fonts.js.map +1 -1
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/plugin.js +41 -86
- package/dist/cjs/plugin.js.map +1 -1
- package/dist/cjs/preset.js +31 -99
- package/dist/cjs/preset.js.map +1 -1
- package/dist/cjs/theme.js +83 -98
- package/dist/cjs/theme.js.map +1 -1
- package/dist/cjs/units.js +2 -2
- package/dist/cjs/units.js.map +1 -1
- package/dist/cjs/with-opacity.js +6 -6
- package/dist/cjs/with-opacity.js.map +1 -1
- package/dist/esm/aria-plugin.js +17 -19
- package/dist/esm/aria-plugin.js.map +1 -1
- package/dist/esm/base.js +2 -2
- package/dist/esm/base.js.map +1 -1
- package/dist/esm/colors.js +420 -420
- package/dist/esm/colors.js.map +1 -1
- package/dist/esm/components/accordion.js +2 -4
- package/dist/esm/components/accordion.js.map +1 -1
- package/dist/esm/components/ai/ai-corner-module.js +11 -62
- package/dist/esm/components/ai/ai-corner-module.js.map +1 -1
- package/dist/esm/components/ai/ai-feed.js +2 -4
- package/dist/esm/components/ai/ai-feed.js.map +1 -1
- package/dist/esm/components/ai/ai-service-module.js +28 -68
- package/dist/esm/components/ai/ai-service-module.js.map +1 -1
- package/dist/esm/components/ai/assistant-presentation.js +2 -4
- package/dist/esm/components/ai/assistant-presentation.js.map +1 -1
- package/dist/esm/components/ai/assistant-switch.js +2 -4
- package/dist/esm/components/ai/assistant-switch.js.map +1 -1
- package/dist/esm/components/ai/bubble.js +42 -71
- package/dist/esm/components/ai/bubble.js.map +1 -1
- package/dist/esm/components/ai/feedback.js +2 -4
- package/dist/esm/components/ai/feedback.js.map +1 -1
- package/dist/esm/components/ai/input-section.js +2 -4
- package/dist/esm/components/ai/input-section.js.map +1 -1
- package/dist/esm/components/ai/markdown-rendered.js +2 -4
- package/dist/esm/components/ai/markdown-rendered.js.map +1 -1
- package/dist/esm/components/ai/new-session-button.js +2 -4
- package/dist/esm/components/ai/new-session-button.js.map +1 -1
- package/dist/esm/components/ai/typing-bubble.js +2 -4
- package/dist/esm/components/ai/typing-bubble.js.map +1 -1
- package/dist/esm/components/ai/typing-sequence.js +17 -63
- package/dist/esm/components/ai/typing-sequence.js.map +1 -1
- package/dist/esm/components/avatar.js +14 -63
- package/dist/esm/components/avatar.js.map +1 -1
- package/dist/esm/components/badge.js +15 -65
- package/dist/esm/components/badge.js.map +1 -1
- package/dist/esm/components/breadcrumb.js +14 -24
- package/dist/esm/components/breadcrumb.js.map +1 -1
- package/dist/esm/components/button-group.js +2 -4
- package/dist/esm/components/button-group.js.map +1 -1
- package/dist/esm/components/button.js +59 -88
- package/dist/esm/components/button.js.map +1 -1
- package/dist/esm/components/callout.js +19 -69
- package/dist/esm/components/callout.js.map +1 -1
- package/dist/esm/components/card.js +128 -155
- package/dist/esm/components/card.js.map +1 -1
- package/dist/esm/components/checkbox.js +2 -4
- package/dist/esm/components/checkbox.js.map +1 -1
- package/dist/esm/components/chip.js +2 -4
- package/dist/esm/components/chip.js.map +1 -1
- package/dist/esm/components/code.js +2 -4
- package/dist/esm/components/code.js.map +1 -1
- package/dist/esm/components/combobox.js +2 -4
- package/dist/esm/components/combobox.js.map +1 -1
- package/dist/esm/components/cookie-consent.js +2 -4
- package/dist/esm/components/cookie-consent.js.map +1 -1
- package/dist/esm/components/dialog.js +11 -61
- package/dist/esm/components/dialog.js.map +1 -1
- package/dist/esm/components/divider.js +2 -4
- package/dist/esm/components/divider.js.map +1 -1
- package/dist/esm/components/dot.js +27 -70
- package/dist/esm/components/dot.js.map +1 -1
- package/dist/esm/components/file-upload.js +2 -4
- package/dist/esm/components/file-upload.js.map +1 -1
- package/dist/esm/components/filter.js +2 -4
- package/dist/esm/components/filter.js.map +1 -1
- package/dist/esm/components/footer.js +2 -4
- package/dist/esm/components/footer.js.map +1 -1
- package/dist/esm/components/forms.js +2 -4
- package/dist/esm/components/forms.js.map +1 -1
- package/dist/esm/components/header.js +2 -4
- package/dist/esm/components/header.js.map +1 -1
- package/dist/esm/components/icon.js +29 -76
- package/dist/esm/components/icon.js.map +1 -1
- package/dist/esm/components/input.js +21 -71
- package/dist/esm/components/input.js.map +1 -1
- package/dist/esm/components/kbd.js +2 -4
- package/dist/esm/components/kbd.js.map +1 -1
- package/dist/esm/components/label.js +16 -63
- package/dist/esm/components/label.js.map +1 -1
- package/dist/esm/components/link.js +2 -4
- package/dist/esm/components/link.js.map +1 -1
- package/dist/esm/components/list.js +2 -4
- package/dist/esm/components/list.js.map +1 -1
- package/dist/esm/components/logo.js +2 -4
- package/dist/esm/components/logo.js.map +1 -1
- package/dist/esm/components/menu-vertical.js +18 -44
- package/dist/esm/components/menu-vertical.js.map +1 -1
- package/dist/esm/components/menubar.js +19 -64
- package/dist/esm/components/menubar.js.map +1 -1
- package/dist/esm/components/modal.js +2 -4
- package/dist/esm/components/modal.js.map +1 -1
- package/dist/esm/components/pagination.js +2 -4
- package/dist/esm/components/pagination.js.map +1 -1
- package/dist/esm/components/popup-menu.js +2 -4
- package/dist/esm/components/popup-menu.js.map +1 -1
- package/dist/esm/components/progress-bar.js +19 -66
- package/dist/esm/components/progress-bar.js.map +1 -1
- package/dist/esm/components/progress-stepper.js +2 -4
- package/dist/esm/components/progress-stepper.js.map +1 -1
- package/dist/esm/components/radio.js +2 -4
- package/dist/esm/components/radio.js.map +1 -1
- package/dist/esm/components/search-field.js +2 -4
- package/dist/esm/components/search-field.js.map +1 -1
- package/dist/esm/components/select.js +15 -68
- package/dist/esm/components/select.js.map +1 -1
- package/dist/esm/components/snackbar.js +2 -4
- package/dist/esm/components/snackbar.js.map +1 -1
- package/dist/esm/components/spinner.js +14 -67
- package/dist/esm/components/spinner.js.map +1 -1
- package/dist/esm/components/switch.js +34 -42
- package/dist/esm/components/switch.js.map +1 -1
- package/dist/esm/components/table.js +15 -66
- package/dist/esm/components/table.js.map +1 -1
- package/dist/esm/components/tabs.js +13 -64
- package/dist/esm/components/tabs.js.map +1 -1
- package/dist/esm/components/tooltip.js +2 -4
- package/dist/esm/components/tooltip.js.map +1 -1
- package/dist/esm/components/user-menu.js +2 -4
- package/dist/esm/components/user-menu.js.map +1 -1
- package/dist/esm/components.js +1 -1
- package/dist/esm/components.js.map +1 -1
- package/dist/esm/data-plugin.js +9 -9
- package/dist/esm/data-plugin.js.map +1 -1
- package/dist/esm/fonts.js +1 -1
- package/dist/esm/fonts.js.map +1 -1
- package/dist/esm/plugin.js +36 -81
- package/dist/esm/plugin.js.map +1 -1
- package/dist/esm/preset.js +25 -93
- package/dist/esm/preset.js.map +1 -1
- package/dist/esm/theme.js +79 -94
- package/dist/esm/theme.js.map +1 -1
- package/dist/esm/units.js +2 -2
- package/dist/esm/units.js.map +1 -1
- package/dist/esm/with-opacity.js +5 -5
- package/dist/esm/with-opacity.js.map +1 -1
- package/dist/types/components/spinner.d.ts +1 -4
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/avatar.ts"],"sourcesContent":["export const Avatar = (colors: string[]) => ({\r\n '.sk-avatar': {\r\n '@apply inline-flex': {},\r\n '@apply justify-center items-center': {},\r\n '@apply overflow-hidden': {},\r\n '&&-xs, &&-sm, &&-md, &&-lg' : {\r\n '&[data-rounded=\"true\"]': {\r\n '@apply rounded-circular': {},\r\n }\r\n },\r\n\r\n '&&-xs' : {\r\n '@apply h-24 w-24 min-h-24 max-h-24 min-w-24 max-w-24' : {},\r\n '@apply text-label-extra-small rounded-utility' : {},\r\n },\r\n '&&-sm': {\r\n '@apply h-32 w-32 min-h-24 max-h-32 min-w-24 max-w-32': {},\r\n '@apply text-label-small rounded-button': {},\r\n },\r\n '&&-md': {\r\n '@apply h-40 w-40 min-h-32 max-h-40 min-w-32 max-w-40': {},\r\n '@apply text-label-medium rounded-button': {},\r\n },\r\n '&&-lg': {\r\n '@apply h-64 w-64 min-h-40 max-h-64 min-w-40 max-w-64': {},\r\n '@apply text-label-large rounded-button': {},\r\n },\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n [`&[data-color=\"${color}\"]`]: {\r\n [`@apply bg-${color}-surface-primary text-${color}-text-secondary`]: {},\r\n\r\n '&[data-accent=\"true\"]': {\r\n [`@apply bg-${color}-surface-accent text-${color}-text-primary`]: {},\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n '&[data-color=\"primary\"]': {\r\n '@apply bg-primary-surface text-light-primary': {},\r\n\r\n '&[data-accent=\"true\"]': {\r\n '@apply bg-inverted-primary-surface text-inverted-light-primary': {},\r\n },\r\n },\r\n '&-img': {\r\n '@apply min-w-full min-h-full object-cover': {},\r\n },\r\n '&[data-hasimage=\"true\"]': {\r\n '@apply bg-transparent': {},\r\n },\r\n },\r\n});\r\n"],"names":["Avatar","colors","reduce","styles","color"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/avatar.ts"],"sourcesContent":["export const Avatar = (colors: string[]) => ({\r\n '.sk-avatar': {\r\n '@apply inline-flex': {},\r\n '@apply justify-center items-center': {},\r\n '@apply overflow-hidden': {},\r\n '&&-xs, &&-sm, &&-md, &&-lg' : {\r\n '&[data-rounded=\"true\"]': {\r\n '@apply rounded-circular': {},\r\n }\r\n },\r\n\r\n '&&-xs' : {\r\n '@apply h-24 w-24 min-h-24 max-h-24 min-w-24 max-w-24' : {},\r\n '@apply text-label-extra-small rounded-utility' : {},\r\n },\r\n '&&-sm': {\r\n '@apply h-32 w-32 min-h-24 max-h-32 min-w-24 max-w-32': {},\r\n '@apply text-label-small rounded-button': {},\r\n },\r\n '&&-md': {\r\n '@apply h-40 w-40 min-h-32 max-h-40 min-w-32 max-w-40': {},\r\n '@apply text-label-medium rounded-button': {},\r\n },\r\n '&&-lg': {\r\n '@apply h-64 w-64 min-h-40 max-h-64 min-w-40 max-w-64': {},\r\n '@apply text-label-large rounded-button': {},\r\n },\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n [`&[data-color=\"${color}\"]`]: {\r\n [`@apply bg-${color}-surface-primary text-${color}-text-secondary`]: {},\r\n\r\n '&[data-accent=\"true\"]': {\r\n [`@apply bg-${color}-surface-accent text-${color}-text-primary`]: {},\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n '&[data-color=\"primary\"]': {\r\n '@apply bg-primary-surface text-light-primary': {},\r\n\r\n '&[data-accent=\"true\"]': {\r\n '@apply bg-inverted-primary-surface text-inverted-light-primary': {},\r\n },\r\n },\r\n '&-img': {\r\n '@apply min-w-full min-h-full object-cover': {},\r\n },\r\n '&[data-hasimage=\"true\"]': {\r\n '@apply bg-transparent': {},\r\n },\r\n },\r\n});\r\n"],"names":["Avatar","colors","reduce","styles","color"],"mappings":"AAAA,OAAO,MAAMA,SAAS,CAACC,SAAsB,CAAA;QAC3C,cAAc;YACZ,sBAAsB,CAAC;YACvB,sCAAsC,CAAC;YACvC,0BAA0B,CAAC;YACzB,8BAA+B;gBAC7B,0BAA0B;oBACxB,2BAA2B,CAAC;gBAChC;YACF;YAEA,SAAU;gBACR,wDAAyD,CAAC;gBAC1D,iDAAkD,CAAC;YACrD;YACA,SAAS;gBACP,wDAAwD,CAAC;gBACzD,0CAA0C,CAAC;YAC7C;YACA,SAAS;gBACP,wDAAwD,CAAC;gBACzD,2CAA2C,CAAC;YAC9C;YACA,SAAS;gBACP,wDAAwD,CAAC;gBACzD,0CAA0C,CAAC;YAC7C;YACA,GAAGA,OAAOC,MAAM,CACd,CAACC,QAAQC,QAAW,CAAA;oBAClB,GAAGD,MAAM;oBACT,CAAC,CAAC,cAAc,EAAEC,MAAM,EAAE,CAAC,CAAC,EAAE;wBAC5B,CAAC,CAAC,UAAU,EAAEA,MAAM,uBAAuB,EAAEA,MAAM,eAAe,CAAC,CAAC,EAAE,CAAC;wBAEvE,yBAAyB;4BACvB,CAAC,CAAC,UAAU,EAAEA,MAAM,sBAAsB,EAAEA,MAAM,aAAa,CAAC,CAAC,EAAE,CAAC;wBACtE;oBACF;gBACF,CAAA,GACA,CAAC,EACF;YACD,2BAA2B;gBACzB,iDAAiD,CAAC;gBAElD,yBAAyB;oBACvB,mEAAmE,CAAC;gBACtE;YACF;YACA,SAAS;gBACP,6CAA6C,CAAC;YAChD;YACA,2BAA2B;gBACzB,yBAAyB,CAAC;YAC5B;QACF;IACF,CAAA,EAAG"}
|
|
@@ -1,58 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 Badge = function(colors) {
|
|
54
|
-
return {
|
|
55
|
-
'.sk-badge': _object_spread_props(_object_spread({
|
|
1
|
+
export const Badge = (colors)=>({
|
|
2
|
+
'.sk-badge': {
|
|
56
3
|
'@apply inline-flex': {},
|
|
57
4
|
'@apply justify-center items-center': {},
|
|
58
5
|
'@apply text-light-primary': {},
|
|
@@ -63,13 +10,17 @@ export var Badge = function(colors) {
|
|
|
63
10
|
'@apply text-label-small': {},
|
|
64
11
|
'&[data-rounded="true"]': {
|
|
65
12
|
'@apply rounded-circular': {}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
13
|
+
},
|
|
14
|
+
...colors.reduce((styles, color)=>({
|
|
15
|
+
...styles,
|
|
16
|
+
[`&[data-color="${color}"]`]: {
|
|
17
|
+
[`@apply bg-${color}-surface-primary text-${color}-text-secondary`]: {},
|
|
18
|
+
'&[data-inverted="true"]': {
|
|
19
|
+
'@apply text-inverted-light-primary': {},
|
|
20
|
+
[`@apply bg-inverted-${color}-surface-primary text-inverted-${color}-text-secondary`]: {}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}), {}),
|
|
73
24
|
"&[data-color='tertiary']": {
|
|
74
25
|
'@apply bg-primary-surface': {},
|
|
75
26
|
'&[data-inverted="true"]': {
|
|
@@ -77,8 +28,7 @@ export var Badge = function(colors) {
|
|
|
77
28
|
'@apply bg-tertiary-surface dark:bg-inverted-primary-surface': {}
|
|
78
29
|
}
|
|
79
30
|
}
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
};
|
|
31
|
+
}
|
|
32
|
+
});
|
|
83
33
|
|
|
84
34
|
//# sourceMappingURL=badge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/badge.ts"],"sourcesContent":["export const Badge = (colors: string[]) => ({\r\n '.sk-badge': {\r\n '@apply inline-flex': {},\r\n '@apply justify-center items-center': {},\r\n '@apply text-light-primary': {},\r\n '@apply rounded-utility': {},\r\n '@apply overflow-hidden': {},\r\n\r\n // size\r\n '@apply h-24 w-24': {},\r\n '@apply text-label-small': {},\r\n\r\n '&[data-rounded=\"true\"]': {\r\n '@apply rounded-circular': {},\r\n },\r\n\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n [`&[data-color=\"${color}\"]`]: {\r\n [`@apply bg-${color}-surface-primary text-${color}-text-secondary`]: {},\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-light-primary': {},\r\n [`@apply bg-inverted-${color}-surface-primary text-inverted-${color}-text-secondary`]: {},\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n\r\n \"&[data-color='tertiary']\": {\r\n '@apply bg-primary-surface': {},\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-light-primary': {},\r\n '@apply bg-tertiary-surface dark:bg-inverted-primary-surface': {},\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["Badge","colors","reduce","styles","color"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/badge.ts"],"sourcesContent":["export const Badge = (colors: string[]) => ({\r\n '.sk-badge': {\r\n '@apply inline-flex': {},\r\n '@apply justify-center items-center': {},\r\n '@apply text-light-primary': {},\r\n '@apply rounded-utility': {},\r\n '@apply overflow-hidden': {},\r\n\r\n // size\r\n '@apply h-24 w-24': {},\r\n '@apply text-label-small': {},\r\n\r\n '&[data-rounded=\"true\"]': {\r\n '@apply rounded-circular': {},\r\n },\r\n\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n [`&[data-color=\"${color}\"]`]: {\r\n [`@apply bg-${color}-surface-primary text-${color}-text-secondary`]: {},\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-light-primary': {},\r\n [`@apply bg-inverted-${color}-surface-primary text-inverted-${color}-text-secondary`]: {},\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n\r\n \"&[data-color='tertiary']\": {\r\n '@apply bg-primary-surface': {},\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-light-primary': {},\r\n '@apply bg-tertiary-surface dark:bg-inverted-primary-surface': {},\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["Badge","colors","reduce","styles","color"],"mappings":"AAAA,OAAO,MAAMA,QAAQ,CAACC,SAAsB,CAAA;QAC1C,aAAa;YACX,sBAAsB,CAAC;YACvB,sCAAsC,CAAC;YACvC,6BAA6B,CAAC;YAC9B,0BAA0B,CAAC;YAC3B,0BAA0B,CAAC;YAE3B,OAAO;YACP,oBAAoB,CAAC;YACrB,2BAA2B,CAAC;YAE5B,0BAA0B;gBACxB,2BAA2B,CAAC;YAC9B;YAEA,GAAGA,OAAOC,MAAM,CACd,CAACC,QAAQC,QAAW,CAAA;oBAClB,GAAGD,MAAM;oBACT,CAAC,CAAC,cAAc,EAAEC,MAAM,EAAE,CAAC,CAAC,EAAE;wBAC5B,CAAC,CAAC,UAAU,EAAEA,MAAM,uBAAuB,EAAEA,MAAM,eAAe,CAAC,CAAC,EAAE,CAAC;wBAEvE,2BAA2B;4BACzB,sCAAsC,CAAC;4BACvC,CAAC,CAAC,mBAAmB,EAAEA,MAAM,+BAA+B,EAAEA,MAAM,eAAe,CAAC,CAAC,EAAE,CAAC;wBAC1F;oBACF;gBACF,CAAA,GACA,CAAC,EACF;YAED,4BAA4B;gBAC1B,6BAA6B,CAAC;gBAE9B,2BAA2B;oBACzB,sCAAsC,CAAC;oBACvC,+DAA+D,CAAC;gBAClE;YACF;QACF;IACF,CAAA,EAAG"}
|
|
@@ -1,19 +1,4 @@
|
|
|
1
|
-
|
|
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
|
-
export var Breadcrumb = function() {
|
|
15
|
-
var _obj;
|
|
16
|
-
return {
|
|
1
|
+
export const Breadcrumb = ()=>({
|
|
17
2
|
'.sk-breadcrumb': {
|
|
18
3
|
'@apply text-body text-base relative': {},
|
|
19
4
|
'&-item': {
|
|
@@ -23,18 +8,23 @@ export var Breadcrumb = function() {
|
|
|
23
8
|
'@apply mx-6': {}
|
|
24
9
|
}
|
|
25
10
|
},
|
|
26
|
-
'.sk-breadcrumb-item':
|
|
11
|
+
'.sk-breadcrumb-item': {
|
|
27
12
|
span: {
|
|
28
13
|
'&[aria-current="page"]': {
|
|
29
14
|
'@apply font-bold': {}
|
|
30
15
|
}
|
|
16
|
+
},
|
|
17
|
+
[`&[data-color="primary"]`]: {
|
|
18
|
+
'a.sk-link': {
|
|
19
|
+
[`@apply text-secondary`]: {}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
[`&[data-color="vattjom"]`]: {
|
|
23
|
+
'a.sk-link': {
|
|
24
|
+
[`@apply text-vattjom-text-primary`]: {}
|
|
25
|
+
}
|
|
31
26
|
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
}), _define_property(_obj, '&[data-color="vattjom"]', {
|
|
35
|
-
'a.sk-link': _define_property({}, "@apply text-vattjom-text-primary", {})
|
|
36
|
-
}), _obj)
|
|
37
|
-
};
|
|
38
|
-
};
|
|
27
|
+
}
|
|
28
|
+
});
|
|
39
29
|
|
|
40
30
|
//# sourceMappingURL=breadcrumb.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/breadcrumb.ts"],"sourcesContent":["export const Breadcrumb = () => ({\r\n '.sk-breadcrumb': {\r\n '@apply text-body text-base relative': {},\r\n\r\n '&-item': {\r\n '@apply inline-flex items-center whitespace-nowrap': {},\r\n },\r\n\r\n '&-separator': {\r\n '@apply mx-6': {},\r\n },\r\n },\r\n\r\n '.sk-breadcrumb-item': {\r\n span: {\r\n '&[aria-current=\"page\"]': {\r\n '@apply font-bold': {},\r\n },\r\n },\r\n\r\n [`&[data-color=\"primary\"]`]: {\r\n 'a.sk-link': {\r\n [`@apply text-secondary`]: {},\r\n },\r\n },\r\n\r\n [`&[data-color=\"vattjom\"]`]: {\r\n 'a.sk-link': {\r\n [`@apply text-vattjom-text-primary`]: {},\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["Breadcrumb","span"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/breadcrumb.ts"],"sourcesContent":["export const Breadcrumb = () => ({\r\n '.sk-breadcrumb': {\r\n '@apply text-body text-base relative': {},\r\n\r\n '&-item': {\r\n '@apply inline-flex items-center whitespace-nowrap': {},\r\n },\r\n\r\n '&-separator': {\r\n '@apply mx-6': {},\r\n },\r\n },\r\n\r\n '.sk-breadcrumb-item': {\r\n span: {\r\n '&[aria-current=\"page\"]': {\r\n '@apply font-bold': {},\r\n },\r\n },\r\n\r\n [`&[data-color=\"primary\"]`]: {\r\n 'a.sk-link': {\r\n [`@apply text-secondary`]: {},\r\n },\r\n },\r\n\r\n [`&[data-color=\"vattjom\"]`]: {\r\n 'a.sk-link': {\r\n [`@apply text-vattjom-text-primary`]: {},\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["Breadcrumb","span"],"mappings":"AAAA,OAAO,MAAMA,aAAa,IAAO,CAAA;QAC/B,kBAAkB;YAChB,uCAAuC,CAAC;YAExC,UAAU;gBACR,qDAAqD,CAAC;YACxD;YAEA,eAAe;gBACb,eAAe,CAAC;YAClB;QACF;QAEA,uBAAuB;YACrBC,MAAM;gBACJ,0BAA0B;oBACxB,oBAAoB,CAAC;gBACvB;YACF;YAEA,CAAC,CAAC,uBAAuB,CAAC,CAAC,EAAE;gBAC3B,aAAa;oBACX,CAAC,CAAC,qBAAqB,CAAC,CAAC,EAAE,CAAC;gBAC9B;YACF;YAEA,CAAC,CAAC,uBAAuB,CAAC,CAAC,EAAE;gBAC3B,aAAa;oBACX,CAAC,CAAC,gCAAgC,CAAC,CAAC,EAAE,CAAC;gBACzC;YACF;QACF;IACF,CAAA,EAAG"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
return {
|
|
1
|
+
export const ButtonGroup = ()=>({
|
|
3
2
|
'.sk-btn-group': {
|
|
4
3
|
'@apply inline-flex items-center': {},
|
|
5
4
|
'&.sk-btn-group-attached': {
|
|
@@ -23,7 +22,6 @@ export var ButtonGroup = function() {
|
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
24
|
}
|
|
26
|
-
};
|
|
27
|
-
};
|
|
25
|
+
});
|
|
28
26
|
|
|
29
27
|
//# sourceMappingURL=button-group.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/button-group.ts"],"sourcesContent":["export const ButtonGroup = () => ({\r\n '.sk-btn-group': {\r\n '@apply inline-flex items-center': {},\r\n\r\n '&.sk-btn-group-attached': {\r\n '@apply rounded-groups': {},\r\n '@apply bg-tertiary-surface': {},\r\n '@apply py-6 px-12': {},\r\n\r\n '> *': {\r\n '@apply bg-transparent': {},\r\n },\r\n\r\n '.sk-btn[data-icon=\"true\"] .sk-icon': {\r\n '@apply bg-transparent text-dark-secondary': {},\r\n },\r\n\r\n '.sk-icon': {\r\n '@apply p-0 w-fit h-fit': {},\r\n },\r\n },\r\n\r\n '&-divider': {\r\n '@apply grow bg-tertiary-surface px-6': {},\r\n\r\n hr: {\r\n '@apply h-20': {},\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["ButtonGroup","hr"],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/button-group.ts"],"sourcesContent":["export const ButtonGroup = () => ({\r\n '.sk-btn-group': {\r\n '@apply inline-flex items-center': {},\r\n\r\n '&.sk-btn-group-attached': {\r\n '@apply rounded-groups': {},\r\n '@apply bg-tertiary-surface': {},\r\n '@apply py-6 px-12': {},\r\n\r\n '> *': {\r\n '@apply bg-transparent': {},\r\n },\r\n\r\n '.sk-btn[data-icon=\"true\"] .sk-icon': {\r\n '@apply bg-transparent text-dark-secondary': {},\r\n },\r\n\r\n '.sk-icon': {\r\n '@apply p-0 w-fit h-fit': {},\r\n },\r\n },\r\n\r\n '&-divider': {\r\n '@apply grow bg-tertiary-surface px-6': {},\r\n\r\n hr: {\r\n '@apply h-20': {},\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["ButtonGroup","hr"],"mappings":"AAAA,OAAO,MAAMA,cAAc,IAAO,CAAA;QAChC,iBAAiB;YACf,mCAAmC,CAAC;YAEpC,2BAA2B;gBACzB,yBAAyB,CAAC;gBAC1B,8BAA8B,CAAC;gBAC/B,qBAAqB,CAAC;gBAEtB,OAAO;oBACL,yBAAyB,CAAC;gBAC5B;gBAEA,sCAAsC;oBACpC,6CAA6C,CAAC;gBAChD;gBAEA,YAAY;oBACV,0BAA0B,CAAC;gBAC7B;YACF;YAEA,aAAa;gBACX,wCAAwC,CAAC;gBAEzCC,IAAI;oBACF,eAAe,CAAC;gBAClB;YACF;QACF;IACF,CAAA,EAAG"}
|
|
@@ -1,86 +1,50 @@
|
|
|
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
1
|
function buttonPrimary(colors) {
|
|
54
|
-
var _obj;
|
|
55
2
|
return {
|
|
56
|
-
'&-primary':
|
|
3
|
+
'&-primary': {
|
|
57
4
|
'@apply text-light-primary': {},
|
|
58
|
-
/* hover */ '@apply hover:bg-primary-surface-hover': {}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
5
|
+
/* hover */ '@apply hover:bg-primary-surface-hover': {},
|
|
6
|
+
...colors.reduce((styles, color)=>({
|
|
7
|
+
...styles,
|
|
8
|
+
[`&[data-color="${color}"]`]: {
|
|
9
|
+
[`@apply bg-${color}-surface-primary text-${color}-text-secondary`]: {},
|
|
10
|
+
// hover
|
|
11
|
+
[`@apply hover:bg-${color}-surface-primary-hover hover:text-light-primary`]: {},
|
|
12
|
+
// keyboard active
|
|
13
|
+
'&.active': {
|
|
14
|
+
[`@apply bg-${color}-surface-primary-hover`]: {}
|
|
15
|
+
},
|
|
16
|
+
[`@apply active:bg-${color}-surface-primary-hover`]: {},
|
|
17
|
+
'&[data-inverted="true"]': {
|
|
18
|
+
'@apply text-inverted-light-primary': {},
|
|
19
|
+
[`@apply bg-inverted-${color}-surface-primary text-inverted-${color}-text-secondary`]: {},
|
|
20
|
+
// hover
|
|
21
|
+
[`@apply hover:bg-inverted-${color}-surface-primary-hover hover:text-inverted-light-primary`]: {},
|
|
22
|
+
// keyboard active
|
|
23
|
+
'&.active': {
|
|
24
|
+
[`@apply bg-inverted-${color}-surface-primary-hover`]: {}
|
|
25
|
+
},
|
|
26
|
+
[`@apply active:bg-inverted-${color}-surface-primary-hover`]: {}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}), {}),
|
|
30
|
+
"&[data-color='primary']": {
|
|
70
31
|
'@apply bg-primary-surface': {},
|
|
71
32
|
'@apply hover:bg-primary-surface-hover': {},
|
|
72
33
|
'&.active': {
|
|
73
34
|
'@apply bg-primary-surface-hover': {}
|
|
35
|
+
},
|
|
36
|
+
[`@apply active:bg-primary-surface-hover`]: {},
|
|
37
|
+
'&[data-inverted="true"]': {
|
|
38
|
+
'@apply text-inverted-light-primary': {},
|
|
39
|
+
'@apply bg-inverted-primary-surface': {},
|
|
40
|
+
'@apply hover:bg-inverted-primary-surface-hover': {},
|
|
41
|
+
'&.active': {
|
|
42
|
+
'@apply bg-inverted-primary-surface-hover': {}
|
|
43
|
+
},
|
|
44
|
+
[`@apply active:bg-inverted-primary-surface-hover`]: {}
|
|
74
45
|
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
'@apply bg-inverted-primary-surface': {},
|
|
78
|
-
'@apply hover:bg-inverted-primary-surface-hover': {},
|
|
79
|
-
'&.active': {
|
|
80
|
-
'@apply bg-inverted-primary-surface-hover': {}
|
|
81
|
-
}
|
|
82
|
-
}, "@apply active:bg-inverted-primary-surface-hover", {})), _obj)
|
|
83
|
-
})
|
|
46
|
+
}
|
|
47
|
+
}
|
|
84
48
|
};
|
|
85
49
|
}
|
|
86
50
|
function buttonSecondary() {
|
|
@@ -152,22 +116,25 @@ function buttonGhost() {
|
|
|
152
116
|
}
|
|
153
117
|
function buttonLink(colors) {
|
|
154
118
|
return {
|
|
155
|
-
'&-link':
|
|
119
|
+
'&-link': {
|
|
156
120
|
'@apply h-auto p-0 leading-normal text-neutral-600 hover:underline active:text-neutral-700': {},
|
|
157
121
|
'&.active': {
|
|
158
122
|
'@apply underline': {}
|
|
159
123
|
},
|
|
160
124
|
// dark colors
|
|
161
125
|
'@apply dark:text-neutral-200': {},
|
|
162
|
-
'@apply dark:active:text-neutral-500': {}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
126
|
+
'@apply dark:active:text-neutral-500': {},
|
|
127
|
+
...colors.reduce((styles, color)=>({
|
|
128
|
+
...styles,
|
|
129
|
+
[`&[data-color="${color}"]`]: {
|
|
130
|
+
[`@apply text-${color}-text active:text-${color}-text`]: {}
|
|
131
|
+
}
|
|
132
|
+
}), {})
|
|
133
|
+
}
|
|
166
134
|
};
|
|
167
135
|
}
|
|
168
|
-
export
|
|
169
|
-
|
|
170
|
-
'.sk-btn': _object_spread_props(_object_spread({
|
|
136
|
+
export const Button = (colors)=>({
|
|
137
|
+
'.sk-btn': {
|
|
171
138
|
'@apply box-border': {},
|
|
172
139
|
'@apply border-2 border-transparent': {},
|
|
173
140
|
'@apply cursor-pointer': {},
|
|
@@ -227,8 +194,13 @@ export var Button = function(colors) {
|
|
|
227
194
|
'&-text': {
|
|
228
195
|
'@apply opacity-0': {}
|
|
229
196
|
}
|
|
230
|
-
}
|
|
231
|
-
|
|
197
|
+
},
|
|
198
|
+
// variants
|
|
199
|
+
...buttonPrimary(colors),
|
|
200
|
+
...buttonSecondary(),
|
|
201
|
+
...buttonTertiary(),
|
|
202
|
+
...buttonGhost(),
|
|
203
|
+
...buttonLink(colors),
|
|
232
204
|
'&[data-background="false"]:not(:hover)': {
|
|
233
205
|
'@apply bg-transparent': {}
|
|
234
206
|
},
|
|
@@ -290,8 +262,7 @@ export var Button = function(colors) {
|
|
|
290
262
|
}
|
|
291
263
|
}
|
|
292
264
|
}
|
|
293
|
-
}
|
|
294
|
-
};
|
|
295
|
-
};
|
|
265
|
+
}
|
|
266
|
+
});
|
|
296
267
|
|
|
297
268
|
//# sourceMappingURL=button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/button.ts"],"sourcesContent":["function buttonPrimary(colors: string[]) {\r\n return {\r\n '&-primary': {\r\n '@apply text-light-primary': {},\r\n /* hover */\r\n '@apply hover:bg-primary-surface-hover': {},\r\n\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n [`&[data-color=\"${color}\"]`]: {\r\n [`@apply bg-${color}-surface-primary text-${color}-text-secondary`]: {},\r\n // hover\r\n [`@apply hover:bg-${color}-surface-primary-hover hover:text-light-primary`]: {},\r\n // keyboard active\r\n '&.active': {\r\n [`@apply bg-${color}-surface-primary-hover`]: {},\r\n },\r\n [`@apply active:bg-${color}-surface-primary-hover`]: {},\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-light-primary': {},\r\n [`@apply bg-inverted-${color}-surface-primary text-inverted-${color}-text-secondary`]: {},\r\n // hover\r\n [`@apply hover:bg-inverted-${color}-surface-primary-hover hover:text-inverted-light-primary`]: {},\r\n // keyboard active\r\n '&.active': {\r\n [`@apply bg-inverted-${color}-surface-primary-hover`]: {},\r\n },\r\n [`@apply active:bg-inverted-${color}-surface-primary-hover`]: {},\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n\r\n \"&[data-color='primary']\": {\r\n '@apply bg-primary-surface': {},\r\n '@apply hover:bg-primary-surface-hover': {},\r\n '&.active': {\r\n '@apply bg-primary-surface-hover': {},\r\n },\r\n [`@apply active:bg-primary-surface-hover`]: {},\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-light-primary': {},\r\n '@apply bg-inverted-primary-surface': {},\r\n '@apply hover:bg-inverted-primary-surface-hover': {},\r\n '&.active': {\r\n '@apply bg-inverted-primary-surface-hover': {},\r\n },\r\n [`@apply active:bg-inverted-primary-surface-hover`]: {},\r\n },\r\n },\r\n },\r\n };\r\n}\r\nfunction buttonSecondary() {\r\n return {\r\n '&-secondary': {\r\n '@apply border-secondary-outline': {},\r\n '@apply text-dark-secondary': {},\r\n '@apply bg-secondary-surface': {},\r\n /* hover */\r\n '@apply hover:border-secondary-outline-hover': {},\r\n '@apply hover:bg-secondary-surface-hover': {},\r\n /* focus */\r\n '@apply focus-visible:border-background-content': {},\r\n\r\n // State\r\n '&.sk-btn-disabled, &[aria-disabled=\"true\"]': {\r\n '@apply disabled:bg-secondary-surface-disabled bg-secondary-surface-disabled disabled:border-transparent border-transparent !important':\r\n {},\r\n },\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '@apply border-inverted-secondary-outline': {},\r\n '@apply text-inverted-dark-secondary': {},\r\n '@apply bg-inverted-secondary-surface': {},\r\n /* hover */\r\n '@apply hover:border-inverted-secondary-outline-hover': {},\r\n '@apply hover:bg-inverted-secondary-surface-hover': {},\r\n /* focus */\r\n '@apply focus-visible:border-inverted-background-content': {},\r\n\r\n // State\r\n '&.sk-btn-disabled, &[aria-disabled=\"true\"]': {\r\n '@apply disabled:bg-inverted-secondary-surface-disabled bg-inverted-secondary-surface-disabled disabled:border-transparent border-transparent !important':\r\n {},\r\n },\r\n },\r\n },\r\n };\r\n}\r\n\r\nfunction buttonTertiary() {\r\n return {\r\n '&-tertiary': {\r\n '@apply text-dark-secondary': {},\r\n '@apply bg-tertiary-surface': {},\r\n /* hover */\r\n '@apply hover:bg-tertiary-surface-hover': {},\r\n\r\n // State\r\n '&.sk-btn-disabled, &[aria-disabled=\"true\"]': {\r\n '@apply disabled:bg-tertiary-surface-disabled bg-tertiary-surface-disabled disabled:border-transparent border-transparent !important':\r\n {},\r\n },\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-dark-secondary': {},\r\n '@apply bg-inverted-tertiary-surface': {},\r\n /* hover */\r\n '@apply hover:bg-inverted-tertiary-surface-hover': {},\r\n '&.sk-btn-disabled, &[aria-disabled=\"true\"]': {\r\n '@apply disabled:bg-inverted-tertiary-surface-disabled bg-inverted-tertiary-surface-disabled disabled:border-transparent border-transparent !important':\r\n {},\r\n },\r\n },\r\n },\r\n };\r\n}\r\nfunction buttonGhost() {\r\n return {\r\n '&-ghost': {\r\n '@apply text-dark-secondary': {},\r\n '@apply bg-transparent': {},\r\n '@apply border-transparent': {},\r\n /* hover */\r\n '@apply hover:bg-transparent': {},\r\n '@apply hover:border-transparent': {},\r\n\r\n // State\r\n '&.sk-btn-disabled, &[aria-disabled=\"true\"]': {\r\n '@apply disabled:bg-transparent bg-transparent disabled:border-transparent border-transparent !important': {},\r\n },\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-dark-secondary': {},\r\n },\r\n },\r\n };\r\n}\r\n\r\nfunction buttonLink(colors: string[]) {\r\n return {\r\n '&-link': {\r\n '@apply h-auto p-0 leading-normal text-neutral-600 hover:underline active:text-neutral-700': {},\r\n '&.active': {\r\n '@apply underline': {},\r\n },\r\n // dark colors\r\n '@apply dark:text-neutral-200': {},\r\n '@apply dark:active:text-neutral-500': {},\r\n\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n [`&[data-color=\"${color}\"]`]: {\r\n [`@apply text-${color}-text active:text-${color}-text`]: {},\r\n // dark colors\r\n },\r\n }),\r\n {}\r\n ),\r\n },\r\n };\r\n}\r\n\r\nexport const Button = (colors: string[]) => ({\r\n '.sk-btn': {\r\n '@apply box-border': {},\r\n '@apply border-2 border-transparent': {},\r\n '@apply cursor-pointer': {},\r\n '@apply relative': {},\r\n '@apply m-0': {},\r\n '@apply px-24 py-8 gap-8': {},\r\n '@apply inline-flex items-center justify-center flex-shrink-0 align-middle': {},\r\n '@apply rounded-button': {},\r\n transitionProperty: 'background-color, border-color, color, fill, stroke, box-shadow',\r\n '@apply\tduration-75 ease-out': {},\r\n '@apply outline-none appearance-none select-none whitespace-nowrap': {},\r\n '@apply focus-visible:outline-none': {},\r\n '@apply focus-visible:ring': {},\r\n\r\n \"&[data-rounded='true']\": {\r\n '@apply rounded-circular': {},\r\n },\r\n\r\n // sizing\r\n '&-sm': {\r\n '@apply text-label-small': {},\r\n '@apply px-14 py-8 gap-6': {},\r\n '@apply max-h-32 h-32': {},\r\n '@apply rounded-button-sm': {},\r\n 'svg, .sk-icon': {\r\n '@apply h-16 w-16': {},\r\n },\r\n },\r\n\r\n '&-md': {\r\n '@apply text-label-medium': {},\r\n '@apply px-18 py-8 gap-8': {},\r\n '@apply max-h-40 h-40': {},\r\n '@apply rounded-button-md': {},\r\n 'svg, .sk-icon': {\r\n '@apply h-18 w-18': {},\r\n },\r\n },\r\n\r\n '&-lg': {\r\n '@apply text-label-large': {},\r\n '@apply px-24 py-8 gap-8': {},\r\n '@apply max-h-48 h-48': {},\r\n '@apply rounded-button-lg': {},\r\n 'svg, .sk-icon': {\r\n '@apply h-20 w-20': {},\r\n },\r\n },\r\n\r\n // State\r\n '&-disabled, &[aria-disabled=\"true\"]': {\r\n '@apply shadow-none disabled:shadow-none disabled:cursor-default cursor-default': {},\r\n '@apply disabled:text-dark-disabled text-dark-disabled disabled:bg-primary-surface-disabled bg-primary-surface-disabled disabled:border-transparent border-transparent !important':\r\n {},\r\n },\r\n\r\n '&-loading': {\r\n '&-spinner': {\r\n '@apply absolute mr-0': {},\r\n '&[data-hastext=\"true\"]': {\r\n '@apply relative mr-2': {},\r\n },\r\n },\r\n '&-text': {\r\n '@apply opacity-0': {},\r\n },\r\n },\r\n // variants\r\n ...buttonPrimary(colors),\r\n ...buttonSecondary(),\r\n ...buttonTertiary(),\r\n ...buttonGhost(),\r\n ...buttonLink(colors),\r\n\r\n '&[data-background=\"false\"]:not(:hover)': {\r\n '@apply bg-transparent': {},\r\n },\r\n '.sk-btn-has-icon': {\r\n '&-left': {\r\n '@apply h-full flex items-center justify-center -ml-2': {},\r\n '.sk-icon': {\r\n '@apply bg-transparent': {},\r\n color: 'currentColor',\r\n },\r\n },\r\n '&-right': {\r\n '@apply h-full flex items-center justify-center -mr-2': {},\r\n '.sk-icon': {\r\n '@apply bg-transparent': {},\r\n color: 'currentColor',\r\n },\r\n },\r\n },\r\n '&-lg .sk-btn-has-icon-left': {\r\n '@apply -ml-4': {},\r\n },\r\n '&-lg .sk-btn-has-icon-right': {\r\n '@apply -mr-4': {},\r\n },\r\n '&[data-icon=true]': {\r\n '@apply p-0': {},\r\n\r\n '.sk-icon': {\r\n '@apply bg-transparent': {},\r\n color: 'currentColor',\r\n },\r\n\r\n \"&[data-rounded='true']\": {\r\n '@apply rounded-full': {},\r\n },\r\n\r\n '&.sk-btn-sm': {\r\n '@apply w-32 min-w-32 max-w-32': {},\r\n 'svg, .sk-icon': {\r\n '@apply h-20 w-20': {},\r\n },\r\n },\r\n\r\n '&.sk-btn-md': {\r\n '@apply w-40 min-w-40 max-w-40': {},\r\n\r\n 'svg, .sk-icon': {\r\n '@apply h-20 w-20': {},\r\n },\r\n },\r\n\r\n '&.sk-btn-lg': {\r\n '@apply w-48 min-w-48 max-w-48': {},\r\n\r\n 'svg, .sk-icon': {\r\n '@apply h-24 w-24': {},\r\n },\r\n },\r\n '.sk-btn-has-icon': {\r\n '&-left': {\r\n '@apply m-0': {},\r\n },\r\n '&-right': {\r\n '@apply m-0': {},\r\n },\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["buttonPrimary","colors","reduce","styles","color","buttonSecondary","buttonTertiary","buttonGhost","buttonLink","Button","transitionProperty"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAASA,cAAcC,MAAgB;QAoCN;IAnC/B,OAAO;QACL,aAAa;YACX,6BAA6B,CAAC;YAC9B,SAAS,GACT,yCAAyC,CAAC;WAEvCA,OAAOC,MAAM,CACd,SAACC,QAAQC;gBAYsB,MAVC;mBAFZ,wCACfD,8BACF,AAAC,iBAAsB,OAANC,OAAM,QAAM,YAC5B,iBAD4B,OAC3B,AAAC,aAA2CA,OAA/BA,OAAM,2BAA+B,OAANA,OAAM,oBAAmB,CAAC,IACvE,QAAQ;YACR,iBAH4B,OAG3B,AAAC,mBAAwB,OAANA,OAAM,oDAAmD,CAAC,IAC9E,kBAAkB;YAClB,iBAL4B,OAK5B,YACE,qBAAC,AAAC,aAAkB,OAANA,OAAM,2BAA0B,CAAC,KAEjD,iBAR4B,OAQ3B,AAAC,oBAAyB,OAANA,OAAM,2BAA0B,CAAC,qBAR1B,OAU5B,4BAA2B;gBACzB,sCAAsC,CAAC;eACvC,iBAFyB,MAExB,AAAC,sBAA4DA,OAAvCA,OAAM,mCAAuC,OAANA,OAAM,oBAAmB,CAAC,IACxF,QAAQ;YACR,iBAJyB,MAIx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B;wBACf,oBAAoB,CAAC;oBACvB;gBACF;gBACA,oBAAoB;oBAClB,UAAU;wBACR,cAAc,CAAC;oBACjB;oBACA,WAAW;wBACT,cAAc,CAAC;oBACjB;gBACF;YACF;;IAEJ;EAAG"}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/button.ts"],"sourcesContent":["function buttonPrimary(colors: string[]) {\r\n return {\r\n '&-primary': {\r\n '@apply text-light-primary': {},\r\n /* hover */\r\n '@apply hover:bg-primary-surface-hover': {},\r\n\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n [`&[data-color=\"${color}\"]`]: {\r\n [`@apply bg-${color}-surface-primary text-${color}-text-secondary`]: {},\r\n // hover\r\n [`@apply hover:bg-${color}-surface-primary-hover hover:text-light-primary`]: {},\r\n // keyboard active\r\n '&.active': {\r\n [`@apply bg-${color}-surface-primary-hover`]: {},\r\n },\r\n [`@apply active:bg-${color}-surface-primary-hover`]: {},\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-light-primary': {},\r\n [`@apply bg-inverted-${color}-surface-primary text-inverted-${color}-text-secondary`]: {},\r\n // hover\r\n [`@apply hover:bg-inverted-${color}-surface-primary-hover hover:text-inverted-light-primary`]: {},\r\n // keyboard active\r\n '&.active': {\r\n [`@apply bg-inverted-${color}-surface-primary-hover`]: {},\r\n },\r\n [`@apply active:bg-inverted-${color}-surface-primary-hover`]: {},\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n\r\n \"&[data-color='primary']\": {\r\n '@apply bg-primary-surface': {},\r\n '@apply hover:bg-primary-surface-hover': {},\r\n '&.active': {\r\n '@apply bg-primary-surface-hover': {},\r\n },\r\n [`@apply active:bg-primary-surface-hover`]: {},\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-light-primary': {},\r\n '@apply bg-inverted-primary-surface': {},\r\n '@apply hover:bg-inverted-primary-surface-hover': {},\r\n '&.active': {\r\n '@apply bg-inverted-primary-surface-hover': {},\r\n },\r\n [`@apply active:bg-inverted-primary-surface-hover`]: {},\r\n },\r\n },\r\n },\r\n };\r\n}\r\nfunction buttonSecondary() {\r\n return {\r\n '&-secondary': {\r\n '@apply border-secondary-outline': {},\r\n '@apply text-dark-secondary': {},\r\n '@apply bg-secondary-surface': {},\r\n /* hover */\r\n '@apply hover:border-secondary-outline-hover': {},\r\n '@apply hover:bg-secondary-surface-hover': {},\r\n /* focus */\r\n '@apply focus-visible:border-background-content': {},\r\n\r\n // State\r\n '&.sk-btn-disabled, &[aria-disabled=\"true\"]': {\r\n '@apply disabled:bg-secondary-surface-disabled bg-secondary-surface-disabled disabled:border-transparent border-transparent !important':\r\n {},\r\n },\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '@apply border-inverted-secondary-outline': {},\r\n '@apply text-inverted-dark-secondary': {},\r\n '@apply bg-inverted-secondary-surface': {},\r\n /* hover */\r\n '@apply hover:border-inverted-secondary-outline-hover': {},\r\n '@apply hover:bg-inverted-secondary-surface-hover': {},\r\n /* focus */\r\n '@apply focus-visible:border-inverted-background-content': {},\r\n\r\n // State\r\n '&.sk-btn-disabled, &[aria-disabled=\"true\"]': {\r\n '@apply disabled:bg-inverted-secondary-surface-disabled bg-inverted-secondary-surface-disabled disabled:border-transparent border-transparent !important':\r\n {},\r\n },\r\n },\r\n },\r\n };\r\n}\r\n\r\nfunction buttonTertiary() {\r\n return {\r\n '&-tertiary': {\r\n '@apply text-dark-secondary': {},\r\n '@apply bg-tertiary-surface': {},\r\n /* hover */\r\n '@apply hover:bg-tertiary-surface-hover': {},\r\n\r\n // State\r\n '&.sk-btn-disabled, &[aria-disabled=\"true\"]': {\r\n '@apply disabled:bg-tertiary-surface-disabled bg-tertiary-surface-disabled disabled:border-transparent border-transparent !important':\r\n {},\r\n },\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-dark-secondary': {},\r\n '@apply bg-inverted-tertiary-surface': {},\r\n /* hover */\r\n '@apply hover:bg-inverted-tertiary-surface-hover': {},\r\n '&.sk-btn-disabled, &[aria-disabled=\"true\"]': {\r\n '@apply disabled:bg-inverted-tertiary-surface-disabled bg-inverted-tertiary-surface-disabled disabled:border-transparent border-transparent !important':\r\n {},\r\n },\r\n },\r\n },\r\n };\r\n}\r\nfunction buttonGhost() {\r\n return {\r\n '&-ghost': {\r\n '@apply text-dark-secondary': {},\r\n '@apply bg-transparent': {},\r\n '@apply border-transparent': {},\r\n /* hover */\r\n '@apply hover:bg-transparent': {},\r\n '@apply hover:border-transparent': {},\r\n\r\n // State\r\n '&.sk-btn-disabled, &[aria-disabled=\"true\"]': {\r\n '@apply disabled:bg-transparent bg-transparent disabled:border-transparent border-transparent !important': {},\r\n },\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-dark-secondary': {},\r\n },\r\n },\r\n };\r\n}\r\n\r\nfunction buttonLink(colors: string[]) {\r\n return {\r\n '&-link': {\r\n '@apply h-auto p-0 leading-normal text-neutral-600 hover:underline active:text-neutral-700': {},\r\n '&.active': {\r\n '@apply underline': {},\r\n },\r\n // dark colors\r\n '@apply dark:text-neutral-200': {},\r\n '@apply dark:active:text-neutral-500': {},\r\n\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n [`&[data-color=\"${color}\"]`]: {\r\n [`@apply text-${color}-text active:text-${color}-text`]: {},\r\n // dark colors\r\n },\r\n }),\r\n {}\r\n ),\r\n },\r\n };\r\n}\r\n\r\nexport const Button = (colors: string[]) => ({\r\n '.sk-btn': {\r\n '@apply box-border': {},\r\n '@apply border-2 border-transparent': {},\r\n '@apply cursor-pointer': {},\r\n '@apply relative': {},\r\n '@apply m-0': {},\r\n '@apply px-24 py-8 gap-8': {},\r\n '@apply inline-flex items-center justify-center flex-shrink-0 align-middle': {},\r\n '@apply rounded-button': {},\r\n transitionProperty: 'background-color, border-color, color, fill, stroke, box-shadow',\r\n '@apply\tduration-75 ease-out': {},\r\n '@apply outline-none appearance-none select-none whitespace-nowrap': {},\r\n '@apply focus-visible:outline-none': {},\r\n '@apply focus-visible:ring': {},\r\n\r\n \"&[data-rounded='true']\": {\r\n '@apply rounded-circular': {},\r\n },\r\n\r\n // sizing\r\n '&-sm': {\r\n '@apply text-label-small': {},\r\n '@apply px-14 py-8 gap-6': {},\r\n '@apply max-h-32 h-32': {},\r\n '@apply rounded-button-sm': {},\r\n 'svg, .sk-icon': {\r\n '@apply h-16 w-16': {},\r\n },\r\n },\r\n\r\n '&-md': {\r\n '@apply text-label-medium': {},\r\n '@apply px-18 py-8 gap-8': {},\r\n '@apply max-h-40 h-40': {},\r\n '@apply rounded-button-md': {},\r\n 'svg, .sk-icon': {\r\n '@apply h-18 w-18': {},\r\n },\r\n },\r\n\r\n '&-lg': {\r\n '@apply text-label-large': {},\r\n '@apply px-24 py-8 gap-8': {},\r\n '@apply max-h-48 h-48': {},\r\n '@apply rounded-button-lg': {},\r\n 'svg, .sk-icon': {\r\n '@apply h-20 w-20': {},\r\n },\r\n },\r\n\r\n // State\r\n '&-disabled, &[aria-disabled=\"true\"]': {\r\n '@apply shadow-none disabled:shadow-none disabled:cursor-default cursor-default': {},\r\n '@apply disabled:text-dark-disabled text-dark-disabled disabled:bg-primary-surface-disabled bg-primary-surface-disabled disabled:border-transparent border-transparent !important':\r\n {},\r\n },\r\n\r\n '&-loading': {\r\n '&-spinner': {\r\n '@apply absolute mr-0': {},\r\n '&[data-hastext=\"true\"]': {\r\n '@apply relative mr-2': {},\r\n },\r\n },\r\n '&-text': {\r\n '@apply opacity-0': {},\r\n },\r\n },\r\n // variants\r\n ...buttonPrimary(colors),\r\n ...buttonSecondary(),\r\n ...buttonTertiary(),\r\n ...buttonGhost(),\r\n ...buttonLink(colors),\r\n\r\n '&[data-background=\"false\"]:not(:hover)': {\r\n '@apply bg-transparent': {},\r\n },\r\n '.sk-btn-has-icon': {\r\n '&-left': {\r\n '@apply h-full flex items-center justify-center -ml-2': {},\r\n '.sk-icon': {\r\n '@apply bg-transparent': {},\r\n color: 'currentColor',\r\n },\r\n },\r\n '&-right': {\r\n '@apply h-full flex items-center justify-center -mr-2': {},\r\n '.sk-icon': {\r\n '@apply bg-transparent': {},\r\n color: 'currentColor',\r\n },\r\n },\r\n },\r\n '&-lg .sk-btn-has-icon-left': {\r\n '@apply -ml-4': {},\r\n },\r\n '&-lg .sk-btn-has-icon-right': {\r\n '@apply -mr-4': {},\r\n },\r\n '&[data-icon=true]': {\r\n '@apply p-0': {},\r\n\r\n '.sk-icon': {\r\n '@apply bg-transparent': {},\r\n color: 'currentColor',\r\n },\r\n\r\n \"&[data-rounded='true']\": {\r\n '@apply rounded-full': {},\r\n },\r\n\r\n '&.sk-btn-sm': {\r\n '@apply w-32 min-w-32 max-w-32': {},\r\n 'svg, .sk-icon': {\r\n '@apply h-20 w-20': {},\r\n },\r\n },\r\n\r\n '&.sk-btn-md': {\r\n '@apply w-40 min-w-40 max-w-40': {},\r\n\r\n 'svg, .sk-icon': {\r\n '@apply h-20 w-20': {},\r\n },\r\n },\r\n\r\n '&.sk-btn-lg': {\r\n '@apply w-48 min-w-48 max-w-48': {},\r\n\r\n 'svg, .sk-icon': {\r\n '@apply h-24 w-24': {},\r\n },\r\n },\r\n '.sk-btn-has-icon': {\r\n '&-left': {\r\n '@apply m-0': {},\r\n },\r\n '&-right': {\r\n '@apply m-0': {},\r\n },\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["buttonPrimary","colors","reduce","styles","color","buttonSecondary","buttonTertiary","buttonGhost","buttonLink","Button","transitionProperty"],"mappings":"AAAA,SAASA,cAAcC,MAAgB;IACrC,OAAO;QACL,aAAa;YACX,6BAA6B,CAAC;YAC9B,SAAS,GACT,yCAAyC,CAAC;YAE1C,GAAGA,OAAOC,MAAM,CACd,CAACC,QAAQC,QAAW,CAAA;oBAClB,GAAGD,MAAM;oBACT,CAAC,CAAC,cAAc,EAAEC,MAAM,EAAE,CAAC,CAAC,EAAE;wBAC5B,CAAC,CAAC,UAAU,EAAEA,MAAM,uBAAuB,EAAEA,MAA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;YACnB,GAAGC,aAAa;YAChB,GAAGC,WAAWP,OAAO;YAErB,0CAA0C;gBACxC,yBAAyB,CAAC;YAC5B;YACA,oBAAoB;gBAClB,UAAU;oBACR,wDAAwD,CAAC;oBACzD,YAAY;wBACV,yBAAyB,CAAC;wBAC1BG,OAAO;oBACT;gBACF;gBACA,WAAW;oBACT,wDAAwD,CAAC;oBACzD,YAAY;wBACV,yBAAyB,CAAC;wBAC1BA,OAAO;oBACT;gBACF;YACF;YACA,8BAA8B;gBAC5B,gBAAgB,CAAC;YACnB;YACA,+BAA+B;gBAC7B,gBAAgB,CAAC;YACnB;YACA,qBAAqB;gBACnB,cAAc,CAAC;gBAEf,YAAY;oBACV,yBAAyB,CAAC;oBAC1BA,OAAO;gBACT;gBAEA,0BAA0B;oBACxB,uBAAuB,CAAC;gBAC1B;gBAEA,eAAe;oBACb,iCAAiC,CAAC;oBAClC,iBAAiB;wBACf,oBAAoB,CAAC;oBACvB;gBACF;gBAEA,eAAe;oBACb,iCAAiC,CAAC;oBAElC,iBAAiB;wBACf,oBAAoB,CAAC;oBACvB;gBACF;gBAEA,eAAe;oBACb,iCAAiC,CAAC;oBAElC,iBAAiB;wBACf,oBAAoB,CAAC;oBACvB;gBACF;gBACA,oBAAoB;oBAClB,UAAU;wBACR,cAAc,CAAC;oBACjB;oBACA,WAAW;wBACT,cAAc,CAAC;oBACjB;gBACF;YACF;QACF;IACF,CAAA,EAAG"}
|
|
@@ -1,70 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 Callout = function(colors) {
|
|
54
|
-
return {
|
|
55
|
-
'.sk-callout': _object_spread_props(_object_spread({
|
|
1
|
+
export const Callout = (colors)=>({
|
|
2
|
+
'.sk-callout': {
|
|
56
3
|
'@apply inline-flex': {},
|
|
57
|
-
'@apply p-4': {}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
4
|
+
'@apply p-4': {},
|
|
5
|
+
...colors.reduce((styles, color)=>({
|
|
6
|
+
...styles,
|
|
7
|
+
[`&[data-color="${color}"]`]: {
|
|
8
|
+
'.sk-callout-content': {
|
|
9
|
+
[`@apply bg-${color}-surface-primary text-${color}-text-secondary`]: {}
|
|
10
|
+
},
|
|
11
|
+
'&[data-inverted="true"]': {
|
|
12
|
+
'.sk-callout-content': {
|
|
13
|
+
'@apply text-inverted-light-primary': {},
|
|
14
|
+
[`@apply bg-inverted-${color}-surface-primary text-inverted-${color}-text-secondary`]: {}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}), {}),
|
|
68
19
|
"&[data-color='tertiary']": {
|
|
69
20
|
'.sk-callout-content': {
|
|
70
21
|
'@apply bg-primary-surface': {}
|
|
@@ -80,8 +31,7 @@ export var Callout = function(colors) {
|
|
|
80
31
|
'@apply rounded-full': {},
|
|
81
32
|
'@apply h-8 w-8': {}
|
|
82
33
|
}
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
};
|
|
34
|
+
}
|
|
35
|
+
});
|
|
86
36
|
|
|
87
37
|
//# sourceMappingURL=callout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/callout.ts"],"sourcesContent":["export const Callout = (colors: string[]) => ({\r\n '.sk-callout': {\r\n '@apply inline-flex': {},\r\n '@apply p-4': {},\r\n\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n [`&[data-color=\"${color}\"]`]: {\r\n '.sk-callout-content': {\r\n [`@apply bg-${color}-surface-primary text-${color}-text-secondary`]: {},\r\n },\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '.sk-callout-content': {\r\n '@apply text-inverted-light-primary': {},\r\n [`@apply bg-inverted-${color}-surface-primary text-inverted-${color}-text-secondary`]: {},\r\n },\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n\r\n \"&[data-color='tertiary']\": {\r\n '.sk-callout-content': {\r\n '@apply bg-primary-surface': {},\r\n },\r\n '&[data-inverted=\"true\"]': {\r\n '.sk-callout-content': {\r\n '@apply text-inverted-light-primary': {},\r\n '@apply bg-tertiary-surface dark:bg-inverted-primary-surface': {},\r\n },\r\n },\r\n },\r\n\r\n '&-content': {\r\n '@apply rounded-full': {},\r\n '@apply h-8 w-8': {},\r\n },\r\n },\r\n});\r\n"],"names":["Callout","colors","reduce","styles","color"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/callout.ts"],"sourcesContent":["export const Callout = (colors: string[]) => ({\r\n '.sk-callout': {\r\n '@apply inline-flex': {},\r\n '@apply p-4': {},\r\n\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n [`&[data-color=\"${color}\"]`]: {\r\n '.sk-callout-content': {\r\n [`@apply bg-${color}-surface-primary text-${color}-text-secondary`]: {},\r\n },\r\n\r\n '&[data-inverted=\"true\"]': {\r\n '.sk-callout-content': {\r\n '@apply text-inverted-light-primary': {},\r\n [`@apply bg-inverted-${color}-surface-primary text-inverted-${color}-text-secondary`]: {},\r\n },\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n\r\n \"&[data-color='tertiary']\": {\r\n '.sk-callout-content': {\r\n '@apply bg-primary-surface': {},\r\n },\r\n '&[data-inverted=\"true\"]': {\r\n '.sk-callout-content': {\r\n '@apply text-inverted-light-primary': {},\r\n '@apply bg-tertiary-surface dark:bg-inverted-primary-surface': {},\r\n },\r\n },\r\n },\r\n\r\n '&-content': {\r\n '@apply rounded-full': {},\r\n '@apply h-8 w-8': {},\r\n },\r\n },\r\n});\r\n"],"names":["Callout","colors","reduce","styles","color"],"mappings":"AAAA,OAAO,MAAMA,UAAU,CAACC,SAAsB,CAAA;QAC5C,eAAe;YACb,sBAAsB,CAAC;YACvB,cAAc,CAAC;YAEf,GAAGA,OAAOC,MAAM,CACd,CAACC,QAAQC,QAAW,CAAA;oBAClB,GAAGD,MAAM;oBACT,CAAC,CAAC,cAAc,EAAEC,MAAM,EAAE,CAAC,CAAC,EAAE;wBAC5B,uBAAuB;4BACrB,CAAC,CAAC,UAAU,EAAEA,MAAM,uBAAuB,EAAEA,MAAM,eAAe,CAAC,CAAC,EAAE,CAAC;wBACzE;wBAEA,2BAA2B;4BACzB,uBAAuB;gCACrB,sCAAsC,CAAC;gCACvC,CAAC,CAAC,mBAAmB,EAAEA,MAAM,+BAA+B,EAAEA,MAAM,eAAe,CAAC,CAAC,EAAE,CAAC;4BAC1F;wBACF;oBACF;gBACF,CAAA,GACA,CAAC,EACF;YAED,4BAA4B;gBAC1B,uBAAuB;oBACrB,6BAA6B,CAAC;gBAChC;gBACA,2BAA2B;oBACzB,uBAAuB;wBACrB,sCAAsC,CAAC;wBACvC,+DAA+D,CAAC;oBAClE;gBACF;YACF;YAEA,aAAa;gBACX,uBAAuB,CAAC;gBACxB,kBAAkB,CAAC;YACrB;QACF;IACF,CAAA,EAAG"}
|