@sk-web-gui/core 0.1.45 → 0.1.47
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/LICENSE +21 -21
- package/README.md +5 -5
- package/dist/cjs/colors.js +140 -0
- package/dist/cjs/colors.js.map +1 -0
- package/dist/cjs/components/accordion.js +86 -0
- package/dist/cjs/components/accordion.js.map +1 -0
- package/dist/cjs/components/alert.js +71 -0
- package/dist/cjs/components/alert.js.map +1 -0
- package/dist/cjs/components/avatar.js +78 -0
- package/dist/cjs/components/avatar.js.map +1 -0
- package/dist/cjs/components/badge.js +53 -0
- package/dist/cjs/components/badge.js.map +1 -0
- package/dist/cjs/components/breadcrumb.js +23 -0
- package/dist/cjs/components/breadcrumb.js.map +1 -0
- package/dist/cjs/components/button-group.js +50 -0
- package/dist/cjs/components/button-group.js.map +1 -0
- package/dist/cjs/components/button.js +154 -0
- package/dist/cjs/components/button.js.map +1 -0
- package/dist/cjs/components/calendar.js +76 -0
- package/dist/cjs/components/calendar.js.map +1 -0
- package/dist/cjs/components/card.js +59 -0
- package/dist/cjs/components/card.js.map +1 -0
- package/dist/cjs/components/checkbox.js +92 -0
- package/dist/cjs/components/checkbox.js.map +1 -0
- package/dist/cjs/components/code.js +21 -0
- package/dist/cjs/components/code.js.map +1 -0
- package/dist/cjs/components/cookie-consent.js +35 -0
- package/dist/cjs/components/cookie-consent.js.map +1 -0
- package/dist/cjs/components/divider.js +24 -0
- package/dist/cjs/components/divider.js.map +1 -0
- package/dist/cjs/components/dot.js +70 -0
- package/dist/cjs/components/dot.js.map +1 -0
- package/dist/cjs/components/footer.js +39 -0
- package/dist/cjs/components/footer.js.map +1 -0
- package/dist/cjs/components/forms.js +225 -0
- package/dist/cjs/components/forms.js.map +1 -0
- package/dist/cjs/components/header.js +34 -0
- package/dist/cjs/components/header.js.map +1 -0
- package/dist/cjs/components/icon-button.js +17 -0
- package/dist/cjs/components/icon-button.js.map +1 -0
- package/dist/cjs/components/icon.js +20 -0
- package/dist/cjs/components/icon.js.map +1 -0
- package/dist/cjs/components/kbd.js +21 -0
- package/dist/cjs/components/kbd.js.map +1 -0
- package/dist/cjs/components/link.js +29 -0
- package/dist/cjs/components/link.js.map +1 -0
- package/dist/cjs/components/message.js +63 -0
- package/dist/cjs/components/message.js.map +1 -0
- package/dist/cjs/components/modal.js +35 -0
- package/dist/cjs/components/modal.js.map +1 -0
- package/dist/cjs/components/notification.js +58 -0
- package/dist/cjs/components/notification.js.map +1 -0
- package/dist/cjs/components/pagination.js +66 -0
- package/dist/cjs/components/pagination.js.map +1 -0
- package/dist/cjs/components/radio.js +95 -0
- package/dist/cjs/components/radio.js.map +1 -0
- package/dist/cjs/components/switch.js +107 -0
- package/dist/cjs/components/switch.js.map +1 -0
- package/dist/cjs/components/table.js +23 -0
- package/dist/cjs/components/table.js.map +1 -0
- package/dist/cjs/components/tag.js +88 -0
- package/dist/cjs/components/tag.js.map +1 -0
- package/dist/cjs/components/types.js +10 -0
- package/dist/cjs/components/types.js.map +1 -0
- package/dist/cjs/components/user-menu.js +33 -0
- package/dist/cjs/components/user-menu.js.map +1 -0
- package/dist/cjs/components/zebratable.js +70 -0
- package/dist/cjs/components/zebratable.js.map +1 -0
- package/dist/cjs/index.js +282 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/with-opacity.js +15 -0
- package/dist/cjs/with-opacity.js.map +1 -0
- package/dist/esm/colors.js +137 -0
- package/dist/esm/colors.js.map +1 -0
- package/dist/esm/components/accordion.js +76 -0
- package/dist/esm/components/accordion.js.map +1 -0
- package/dist/esm/components/alert.js +67 -0
- package/dist/esm/components/alert.js.map +1 -0
- package/dist/esm/components/avatar.js +68 -0
- package/dist/esm/components/avatar.js.map +1 -0
- package/dist/esm/components/badge.js +48 -0
- package/dist/esm/components/badge.js.map +1 -0
- package/dist/esm/components/breadcrumb.js +13 -0
- package/dist/esm/components/breadcrumb.js.map +1 -0
- package/dist/esm/components/button-group.js +40 -0
- package/dist/esm/components/button-group.js.map +1 -0
- package/dist/esm/components/button.js +197 -0
- package/dist/esm/components/button.js.map +1 -0
- package/dist/esm/components/calendar.js +66 -0
- package/dist/esm/components/calendar.js.map +1 -0
- package/dist/esm/components/card.js +49 -0
- package/dist/esm/components/card.js.map +1 -0
- package/dist/esm/components/checkbox.js +110 -0
- package/dist/esm/components/checkbox.js.map +1 -0
- package/dist/esm/components/code.js +11 -0
- package/dist/esm/components/code.js.map +1 -0
- package/dist/esm/components/cookie-consent.js +25 -0
- package/dist/esm/components/cookie-consent.js.map +1 -0
- package/dist/esm/components/divider.js +14 -0
- package/dist/esm/components/divider.js.map +1 -0
- package/dist/esm/components/dot.js +61 -0
- package/dist/esm/components/dot.js.map +1 -0
- package/dist/esm/components/footer.js +29 -0
- package/dist/esm/components/footer.js.map +1 -0
- package/dist/esm/components/forms.js +217 -0
- package/dist/esm/components/forms.js.map +1 -0
- package/dist/esm/components/header.js +29 -0
- package/dist/esm/components/header.js.map +1 -0
- package/dist/esm/components/icon-button.js +7 -0
- package/dist/esm/components/icon-button.js.map +1 -0
- package/dist/esm/components/icon.js +10 -0
- package/dist/esm/components/icon.js.map +1 -0
- package/dist/esm/components/kbd.js +11 -0
- package/dist/esm/components/kbd.js.map +1 -0
- package/dist/esm/components/link.js +19 -0
- package/dist/esm/components/link.js.map +1 -0
- package/dist/esm/components/message.js +53 -0
- package/dist/esm/components/message.js.map +1 -0
- package/dist/esm/components/modal.js +25 -0
- package/dist/esm/components/modal.js.map +1 -0
- package/dist/esm/components/notification.js +48 -0
- package/dist/esm/components/notification.js.map +1 -0
- package/dist/esm/components/pagination.js +56 -0
- package/dist/esm/components/pagination.js.map +1 -0
- package/dist/esm/components/radio.js +88 -0
- package/dist/esm/components/radio.js.map +1 -0
- package/dist/esm/components/switch.js +98 -0
- package/dist/esm/components/switch.js.map +1 -0
- package/dist/esm/components/table.js +13 -0
- package/dist/esm/components/table.js.map +1 -0
- package/dist/esm/components/tag.js +84 -0
- package/dist/esm/components/tag.js.map +1 -0
- package/dist/esm/components/types.js +3 -0
- package/dist/esm/components/types.js.map +1 -0
- package/dist/esm/components/user-menu.js +23 -0
- package/dist/esm/components/user-menu.js.map +1 -0
- package/dist/esm/components/zebratable.js +60 -0
- package/dist/esm/components/zebratable.js.map +1 -0
- package/dist/esm/index.js +327 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/with-opacity.js +10 -0
- package/dist/esm/with-opacity.js.map +1 -0
- package/dist/types/accordion/index.d.ts +1 -0
- package/dist/types/accordion/src/accordion.d.ts +17 -0
- package/dist/types/accordion/src/index.d.ts +1 -0
- package/dist/types/accordion/src/styles.d.ts +1 -0
- package/dist/types/accordion/stories/accordion.stories.d.ts +40 -0
- package/dist/types/alert/index.d.ts +1 -0
- package/dist/types/alert/src/alert.d.ts +15 -0
- package/dist/types/alert/src/index.d.ts +8 -0
- package/dist/types/alert/src/styles.d.ts +2 -0
- package/dist/types/breadcrumb/index.d.ts +1 -0
- package/dist/types/breadcrumb/src/breadcrumb.d.ts +34 -0
- package/dist/types/breadcrumb/src/index.d.ts +10 -0
- package/dist/types/breadcrumb/stories/breadcrumb.stories.d.ts +28 -0
- package/dist/types/button/index.d.ts +1 -0
- package/dist/types/button/src/button-group.d.ts +20 -0
- package/dist/types/button/src/button.d.ts +21 -0
- package/dist/types/button/src/icon-button.d.ts +17 -0
- package/dist/types/button/src/index.d.ts +10 -0
- package/dist/types/button/src/styles.d.ts +1 -0
- package/dist/types/button/stories/announcement.d.ts +6 -0
- package/dist/types/button/stories/button-group.stories.d.ts +14 -0
- package/dist/types/button/stories/button.stories.d.ts +127 -0
- package/dist/types/button/stories/icon-button.stories.d.ts +16 -0
- package/dist/types/card/index.d.ts +1 -0
- package/dist/types/card/src/card.d.ts +38 -0
- package/dist/types/card/src/index.d.ts +1 -0
- package/dist/types/card/src/styles.d.ts +1 -0
- package/dist/types/card/stories/card.stories.d.ts +56 -0
- package/dist/types/checkbox/index.d.ts +1 -0
- package/dist/types/checkbox/src/checkbox-group.d.ts +36 -0
- package/dist/types/checkbox/src/checkbox.d.ts +46 -0
- package/dist/types/checkbox/src/index.d.ts +9 -0
- package/dist/types/checkbox/src/styles.d.ts +2 -0
- package/dist/types/checkbox/stories/checkbox.stories.d.ts +103 -0
- package/dist/types/cookie-consent/index.d.ts +1 -0
- package/dist/types/cookie-consent/src/cookie-consent.d.ts +37 -0
- package/dist/types/cookie-consent/src/index.d.ts +1 -0
- package/dist/types/cookie-consent/src/styles.d.ts +1 -0
- package/dist/types/core/src/colors.d.ts +1 -0
- package/dist/types/core/src/components/accordion.d.ts +3 -0
- package/dist/types/core/src/components/alert.d.ts +3 -0
- package/dist/types/core/src/components/avatar.d.ts +3 -0
- package/dist/types/core/src/components/badge.d.ts +3 -0
- package/dist/types/core/src/components/breadcrumb.d.ts +3 -0
- package/dist/types/core/src/components/button-group.d.ts +3 -0
- package/dist/types/core/src/components/button.d.ts +3 -0
- package/dist/types/core/src/components/calendar.d.ts +3 -0
- package/dist/types/core/src/components/card.d.ts +3 -0
- package/dist/types/core/src/components/checkbox.d.ts +3 -0
- package/dist/types/core/src/components/code.d.ts +3 -0
- package/dist/types/core/src/components/cookie-consent.d.ts +3 -0
- package/dist/types/core/src/components/divider.d.ts +3 -0
- package/dist/types/core/src/components/dot.d.ts +3 -0
- package/dist/types/core/src/components/footer.d.ts +3 -0
- package/dist/types/core/src/components/forms.d.ts +3 -0
- package/dist/types/core/src/components/header.d.ts +3 -0
- package/dist/types/core/src/components/icon-button.d.ts +3 -0
- package/dist/types/core/src/components/icon.d.ts +3 -0
- package/dist/types/core/src/components/kbd.d.ts +3 -0
- package/dist/types/core/src/components/link.d.ts +3 -0
- package/dist/types/core/src/components/message.d.ts +3 -0
- package/dist/types/core/src/components/modal.d.ts +3 -0
- package/dist/types/core/src/components/notification.d.ts +3 -0
- package/dist/types/core/src/components/pagination.d.ts +3 -0
- package/dist/types/core/src/components/radio.d.ts +3 -0
- package/dist/types/core/src/components/switch.d.ts +3 -0
- package/dist/types/core/src/components/table.d.ts +3 -0
- package/dist/types/core/src/components/tag.d.ts +3 -0
- package/dist/types/core/src/components/types.d.ts +5 -0
- package/dist/types/core/src/components/user-menu.d.ts +3 -0
- package/dist/types/core/src/components/zebratable.d.ts +3 -0
- package/dist/types/core/src/index.d.ts +1 -0
- package/dist/types/core/src/with-opacity.d.ts +3 -0
- package/dist/types/divider/index.d.ts +1 -0
- package/dist/types/divider/src/divider.d.ts +9 -0
- package/dist/types/divider/src/index.d.ts +1 -0
- package/dist/types/divider/stories/divider.stories.d.ts +33 -0
- package/dist/types/dot/index.d.ts +1 -0
- package/dist/types/dot/src/dot.d.ts +12 -0
- package/dist/types/dot/src/index.d.ts +1 -0
- package/dist/types/dot/src/styles.d.ts +1 -0
- package/dist/types/dot/stories/dot.stories.d.ts +15 -0
- package/dist/types/footer/index.d.ts +1 -0
- package/dist/types/footer/src/footer.d.ts +11 -0
- package/dist/types/footer/src/index.d.ts +1 -0
- package/dist/types/footer/stories/footer.stories.d.ts +95 -0
- package/dist/types/forms/index.d.ts +1 -0
- package/dist/types/forms/src/calendar/index.d.ts +12 -0
- package/dist/types/forms/src/calendar/styles.d.ts +1 -0
- package/dist/types/forms/src/form-control/index.d.ts +27 -0
- package/dist/types/forms/src/form-error-message/index.d.ts +9 -0
- package/dist/types/forms/src/form-helper-text/index.d.ts +9 -0
- package/dist/types/forms/src/form-label/index.d.ts +13 -0
- package/dist/types/forms/src/index.d.ts +8 -0
- package/dist/types/forms/src/input/index.d.ts +15 -0
- package/dist/types/forms/src/input/input.d.ts +30 -0
- package/dist/types/forms/src/input/styles.d.ts +1 -0
- package/dist/types/forms/src/input-addon/index.d.ts +13 -0
- package/dist/types/forms/src/input-element/index.d.ts +15 -0
- package/dist/types/forms/src/input-group/index.d.ts +11 -0
- package/dist/types/forms/src/select/index.d.ts +6 -0
- package/dist/types/forms/src/select/styles.d.ts +1 -0
- package/dist/types/forms/src/textarea/index.d.ts +13 -0
- package/dist/types/forms/stories/calendar.stories.d.ts +58 -0
- package/dist/types/forms/stories/check.d.ts +6 -0
- package/dist/types/forms/stories/form-control.stories.d.ts +16 -0
- package/dist/types/forms/stories/input.stories.d.ts +32 -0
- package/dist/types/forms/stories/select.stories.d.ts +118 -0
- package/dist/types/forms/stories/textarea.stories.d.ts +23 -0
- package/dist/types/header/index.d.ts +1 -0
- package/dist/types/header/src/header.d.ts +13 -0
- package/dist/types/header/src/index.d.ts +1 -0
- package/dist/types/header/stories/header.stories.d.ts +118 -0
- package/dist/types/icon/index.d.ts +1 -0
- package/dist/types/icon/src/core.d.ts +10 -0
- package/dist/types/icon/src/icon.d.ts +14 -0
- package/dist/types/icon/src/index.d.ts +2 -0
- package/dist/types/icon/stories/icon.stories.d.ts +12 -0
- package/dist/types/image/index.d.ts +1 -0
- package/dist/types/image/src/image.d.ts +28 -0
- package/dist/types/image/src/index.d.ts +2 -0
- package/dist/types/image/src/use-image.d.ts +52 -0
- package/dist/types/image/stories/image.stories.d.ts +12 -0
- package/dist/types/link/index.d.ts +1 -0
- package/dist/types/link/src/index.d.ts +1 -0
- package/dist/types/link/src/link.d.ts +12 -0
- package/dist/types/link/stories/link.stories.d.ts +46 -0
- package/dist/types/message/index.d.ts +1 -0
- package/dist/types/message/src/index.d.ts +1 -0
- package/dist/types/message/src/message.d.ts +2 -0
- package/dist/types/message/stories/message.stories.d.ts +11 -0
- package/dist/types/notification/index.d.ts +1 -0
- package/dist/types/notification/src/index.d.ts +1 -0
- package/dist/types/notification/src/notification.d.ts +5 -0
- package/dist/types/notification/stories/notification.stories.d.ts +11 -0
- package/dist/types/pagination/index.d.ts +1 -0
- package/dist/types/pagination/src/index.d.ts +1 -0
- package/dist/types/pagination/src/pagination.d.ts +11 -0
- package/dist/types/pagination/src/styles.d.ts +1 -0
- package/dist/types/pagination/stories/pagination.stories.d.ts +75 -0
- package/dist/types/radio/index.d.ts +1 -0
- package/dist/types/radio/src/index.d.ts +9 -0
- package/dist/types/radio/src/radio-group.d.ts +41 -0
- package/dist/types/radio/src/radio.d.ts +45 -0
- package/dist/types/radio/src/styles.d.ts +2 -0
- package/dist/types/radio/stories/radio-group.stories.d.ts +75 -0
- package/dist/types/radio/stories/radio.stories.d.ts +104 -0
- package/dist/types/react/index.d.ts +1 -0
- package/dist/types/react/src/index.d.ts +26 -0
- package/dist/types/spinner/index.d.ts +1 -0
- package/dist/types/spinner/src/index.d.ts +1 -0
- package/dist/types/spinner/src/spinner.d.ts +8 -0
- package/dist/types/spinner/src/styles.d.ts +2 -0
- package/dist/types/spinner/stories/spinner.stories.d.ts +13 -0
- package/dist/types/switch/index.d.ts +1 -0
- package/dist/types/switch/src/index.d.ts +1 -0
- package/dist/types/switch/src/styles.d.ts +2 -0
- package/dist/types/switch/src/switch.d.ts +42 -0
- package/dist/types/switch/stories/switch.stories.d.ts +76 -0
- package/dist/types/table/index.d.ts +1 -0
- package/dist/types/table/src/index.d.ts +1 -0
- package/dist/types/table/src/styles.d.ts +1 -0
- package/dist/types/table/src/zebratable.d.ts +33 -0
- package/dist/types/table/stories/zebratable.stories.d.ts +69 -0
- package/dist/types/tag/index.d.ts +1 -0
- package/dist/types/tag/src/index.d.ts +1 -0
- package/dist/types/tag/src/styles.d.ts +1 -0
- package/dist/types/tag/src/tag.d.ts +13 -0
- package/dist/types/tag/stories/tag.stories.d.ts +86 -0
- package/dist/types/theme/index.d.ts +1 -0
- package/dist/types/theme/src/colors.d.ts +272 -0
- package/dist/types/theme/src/create-memo-class.d.ts +1 -0
- package/dist/types/theme/src/create-theme-vars/calc.d.ts +19 -0
- package/dist/types/theme/src/create-theme-vars/create-theme-vars.d.ts +9 -0
- package/dist/types/theme/src/create-theme-vars/css-var.d.ts +7 -0
- package/dist/types/theme/src/create-theme-vars/index.d.ts +4 -0
- package/dist/types/theme/src/create-theme-vars/theme-tokens.d.ts +10 -0
- package/dist/types/theme/src/create-theme-vars/to-css-var.d.ts +2 -0
- package/dist/types/theme/src/default-theme.d.ts +4 -0
- package/dist/types/theme/src/gui-provider.d.ts +16 -0
- package/dist/types/theme/src/index.d.ts +6 -0
- package/dist/types/theme/src/types.d.ts +56 -0
- package/dist/types/theme/src/use-safe-effect.d.ts +2 -0
- package/dist/types/theme/src/utils.d.ts +1 -0
- package/dist/types/toast/index.d.ts +1 -0
- package/dist/types/toast/src/index.d.ts +1 -0
- package/dist/types/toast/src/toast.d.ts +62 -0
- package/dist/types/toasted-notes/index.d.ts +1 -0
- package/dist/types/toasted-notes/src/Alert.d.ts +8 -0
- package/dist/types/toasted-notes/src/Message.d.ts +26 -0
- package/dist/types/toasted-notes/src/Positions.d.ts +9 -0
- package/dist/types/toasted-notes/src/Toast.d.ts +13 -0
- package/dist/types/toasted-notes/src/ToastManager.d.ts +45 -0
- package/dist/types/toasted-notes/src/index.d.ts +4 -0
- package/dist/types/toasted-notes/src/useTimeout.d.ts +3 -0
- package/dist/types/user-menu/index.d.ts +1 -0
- package/dist/types/user-menu/src/index.d.ts +6 -0
- package/dist/types/user-menu/src/styles.d.ts +1 -0
- package/dist/types/user-menu/src/user-menu.d.ts +21 -0
- package/dist/types/user-menu/stories/announcement.d.ts +6 -0
- package/dist/types/user-menu/stories/user-menu.stories.d.ts +5 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/src/assertion.d.ts +4 -0
- package/dist/types/utils/src/children.d.ts +8 -0
- package/dist/types/utils/src/color.d.ts +9 -0
- package/dist/types/utils/src/index.d.ts +10 -0
- package/dist/types/utils/src/object.d.ts +6 -0
- package/dist/types/utils/src/refs.d.ts +5 -0
- package/dist/types/utils/src/slug.d.ts +1 -0
- package/dist/types/utils/src/types.d.ts +13 -0
- package/dist/types/utils/src/walk-object.d.ts +5 -0
- package/dist/types/visually-hidden/index.d.ts +1 -0
- package/dist/types/visually-hidden/src/index.d.ts +32 -0
- package/package.json +2 -2
- package/src/colors.js +145 -145
- package/src/components/accordion.js +93 -89
- package/src/components/alert-banner.js +25 -0
- package/src/components/alert.js +98 -98
- package/src/components/avatar.js +85 -85
- package/src/components/badge.js +60 -60
- package/src/components/breadcrumb.js +13 -13
- package/src/components/button-group.js +46 -46
- package/src/components/button.js +304 -304
- package/src/components/calendar.js +82 -82
- package/src/components/card.js +54 -54
- package/src/components/checkbox.js +127 -127
- package/src/components/code.js +9 -9
- package/src/components/cookie-consent.js +30 -30
- package/src/components/divider.js +12 -12
- package/src/components/dot.js +84 -84
- package/src/components/dropdown-filter.js +72 -72
- package/src/components/footer.js +42 -42
- package/src/components/forms.js +256 -256
- package/src/components/header.js +35 -35
- package/src/components/icon-button.js +5 -5
- package/src/components/icon.js +9 -9
- package/src/components/kbd.js +9 -9
- package/src/components/link.js +20 -20
- package/src/components/message.js +62 -62
- package/src/components/modal.js +30 -30
- package/src/components/notification.js +56 -56
- package/src/components/pagination.js +69 -69
- package/src/components/radio.js +104 -104
- package/src/components/search-bar.js +45 -45
- package/src/components/side-menu.js +167 -167
- package/src/components/switch.js +119 -119
- package/src/components/tab-menu.js +44 -44
- package/src/components/table.js +13 -13
- package/src/components/tag.js +97 -97
- package/src/components/user-menu.js +23 -23
- package/src/components/zebratable.js +77 -77
- package/src/index.js +284 -272
- package/src/with-opacity.js +6 -6
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export var ZebraTable = () => ({
|
|
2
|
+
'.zebratable': {
|
|
3
|
+
'@apply w-full text-left table-auto': {},
|
|
4
|
+
'&-thead': {
|
|
5
|
+
'&-tr': {
|
|
6
|
+
'@apply text-sm hidden lg:table-row': {}
|
|
7
|
+
},
|
|
8
|
+
'&-th': {
|
|
9
|
+
'@apply py-sm first-of-type:pl-lg': {},
|
|
10
|
+
"&[data-isColumnSortable='true']": {
|
|
11
|
+
'@apply py-sm cursor-pointer': {}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
'&-sortbutton': {
|
|
16
|
+
'@apply flex items-center': {},
|
|
17
|
+
'&-icon': {
|
|
18
|
+
'@apply inline-flex pl-sm': {},
|
|
19
|
+
'.MuiSvgIcon-root': {
|
|
20
|
+
'@apply !text-lg': {}
|
|
21
|
+
},
|
|
22
|
+
'&-sort': {
|
|
23
|
+
'@apply text-black transform': {},
|
|
24
|
+
"&[data-sortmodeascending='true']": {
|
|
25
|
+
'@apply -rotate-90': {}
|
|
26
|
+
},
|
|
27
|
+
"&[data-sortmodeascending='false']": {
|
|
28
|
+
'@apply rotate-90': {}
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
'&-more': {
|
|
32
|
+
'@apply text-gray': {}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
'.material-icons-outlined': {
|
|
37
|
+
fontSize: '1.25em'
|
|
38
|
+
},
|
|
39
|
+
'&-tbody': {
|
|
40
|
+
'@apply text-body lg:bg-white': {},
|
|
41
|
+
'&-tr': {
|
|
42
|
+
'@apply transition-all bg-white lg:even:bg-white lg:odd:bg-gray-100 px-md py-md md:px-lg md:py-lg my-lg first-of-type:mt-0 block shadow-md lg:shadow-none lg:table-row lg:my-0 lg:py-0 lg:px-lg': {},
|
|
43
|
+
'&.highlighted': {
|
|
44
|
+
'@apply lg:border-4 lg:border-hover': {}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
'&-td': {
|
|
48
|
+
'@apply empty:hidden py-4 px-sm lg:px-0 first-of-type:pl-sm lg:first-of-type:pl-lg last-of-type:px-0 lg:last-of-type:pr-lg last-of-type:text-right block lg:table-cell even:bg-white odd:bg-gray-100 last-of-type:bg-transparent lg:even:bg-transparent lg:odd:bg-transparent': {}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
'&-paginationwrapper': {
|
|
52
|
+
'@apply w-full text-lg flex justify-center lg:justify-start': {}
|
|
53
|
+
},
|
|
54
|
+
'&-bottomwrapper': {
|
|
55
|
+
'@apply mt-lg px-lg flex items-center justify-end': {}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
export default ZebraTable;
|
|
60
|
+
//# sourceMappingURL=zebratable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zebratable.js","names":["ZebraTable","fontSize"],"sources":["../../../src/components/zebratable.ts"],"sourcesContent":["import { tailwindModuleType } from './types';\n\nexport const ZebraTable: (colors: string[]) => tailwindModuleType = () => ({\n '.zebratable': {\n '@apply w-full text-left table-auto': {},\n\n '&-thead': {\n '&-tr': {\n '@apply text-sm hidden lg:table-row': {},\n },\n\n '&-th': {\n '@apply py-sm first-of-type:pl-lg': {},\n\n \"&[data-isColumnSortable='true']\": {\n '@apply py-sm cursor-pointer': {},\n },\n },\n },\n\n '&-sortbutton': {\n '@apply flex items-center': {},\n\n '&-icon': {\n '@apply inline-flex pl-sm': {},\n\n '.MuiSvgIcon-root': {\n '@apply !text-lg': {},\n },\n\n '&-sort': {\n '@apply text-black transform': {},\n\n \"&[data-sortmodeascending='true']\": {\n '@apply -rotate-90': {},\n },\n\n \"&[data-sortmodeascending='false']\": {\n '@apply rotate-90': {},\n },\n },\n\n '&-more': {\n '@apply text-gray': {},\n },\n },\n },\n\n '.material-icons-outlined': {\n fontSize: '1.25em',\n },\n\n '&-tbody': {\n '@apply text-body lg:bg-white': {},\n\n '&-tr': {\n '@apply transition-all bg-white lg:even:bg-white lg:odd:bg-gray-100 px-md py-md md:px-lg md:py-lg my-lg first-of-type:mt-0 block shadow-md lg:shadow-none lg:table-row lg:my-0 lg:py-0 lg:px-lg':\n {},\n\n '&.highlighted': {\n '@apply lg:border-4 lg:border-hover': {},\n },\n },\n\n '&-td': {\n '@apply empty:hidden py-4 px-sm lg:px-0 first-of-type:pl-sm lg:first-of-type:pl-lg last-of-type:px-0 lg:last-of-type:pr-lg last-of-type:text-right block lg:table-cell even:bg-white odd:bg-gray-100 last-of-type:bg-transparent lg:even:bg-transparent lg:odd:bg-transparent':\n {},\n },\n },\n\n '&-paginationwrapper': {\n '@apply w-full text-lg flex justify-center lg:justify-start': {},\n },\n\n '&-bottomwrapper': {\n '@apply mt-lg px-lg flex items-center justify-end': {},\n },\n },\n});\nexport default ZebraTable;\n"],"mappings":"AAEA,OAAO,IAAMA,UAAoD,GAAG,OAAO;EACzE,eAAe;IACb,sCAAsC,EADzB;IAGb,WAAW;MACT,QAAQ;QACN,sCAAsC;MADhC,CADC;MAKT,QAAQ;QACN,oCAAoC,EAD9B;QAGN,mCAAmC;UACjC,+BAA+B;QADE;MAH7B;IALC,CAHE;IAiBb,gBAAgB;MACd,4BAA4B,EADd;MAGd,UAAU;QACR,4BAA4B,EADpB;QAGR,oBAAoB;UAClB,mBAAmB;QADD,CAHZ;QAOR,UAAU;UACR,+BAA+B,EADvB;UAGR,oCAAoC;YAClC,qBAAqB;UADa,CAH5B;UAOR,qCAAqC;YACnC,oBAAoB;UADe;QAP7B,CAPF;QAmBR,UAAU;UACR,oBAAoB;QADZ;MAnBF;IAHI,CAjBH;IA6Cb,4BAA4B;MAC1BC,QAAQ,EAAE;IADgB,CA7Cf;IAiDb,WAAW;MACT,gCAAgC,EADvB;MAGT,QAAQ;QACN,kMACE,EAFI;QAIN,iBAAiB;UACf,sCAAsC;QADvB;MAJX,CAHC;MAYT,QAAQ;QACN,gRACE;MAFI;IAZC,CAjDE;IAmEb,uBAAuB;MACrB,8DAA8D;IADzC,CAnEV;IAuEb,mBAAmB;MACjB,oDAAoD;IADnC;EAvEN;AAD0D,CAAP,CAA7D;AA6EP,eAAeD,UAAf"}
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
// components
|
|
4
|
+
// import Alert from './components/alert';
|
|
5
|
+
// import Breadcrumb from './components/breadcrumb';
|
|
6
|
+
// import ButtonGroup from './components/button-group';
|
|
7
|
+
// import Checkbox from './components/checkbox';
|
|
8
|
+
// import Dot from './components/dot';
|
|
9
|
+
// import Forms from './components/forms';
|
|
10
|
+
// import Calendar from './components/calendar';
|
|
11
|
+
// import IconButton from './components/icon-button';
|
|
12
|
+
// import Icon from './components/icon';
|
|
13
|
+
// import Link from './components/link';
|
|
14
|
+
// import Message from './components/message';
|
|
15
|
+
// import NotificationToast from './components/notification';
|
|
16
|
+
// import Radio from './components/radio';
|
|
17
|
+
// import Switch from './components/switch';
|
|
18
|
+
// import Button from './components/button';
|
|
19
|
+
import Accordion from './components/accordion'; // import Card from './components/card';
|
|
20
|
+
// import Table from './components/table';
|
|
21
|
+
// import ZebraTable from './components/zebratable';
|
|
22
|
+
// import Modal from './components/modal';
|
|
23
|
+
// import CookieConsent from './components/cookie-consent';
|
|
24
|
+
// import Divider from './components/divider';
|
|
25
|
+
// import UserMenu from './components/user-menu';
|
|
26
|
+
// import Tag from './components/tag';
|
|
27
|
+
// import Pagination from './components/pagination';
|
|
28
|
+
// import Footer from './components/footer';
|
|
29
|
+
// import Header from './components/header';
|
|
30
|
+
// const { = require(} from './../../theme/src/colors');
|
|
31
|
+
// import { colors } from '@sk-web-gui/theme';
|
|
32
|
+
|
|
33
|
+
import { colors } from '@sk-web-gui/theme';
|
|
34
|
+
import { withOpacity } from './with-opacity';
|
|
35
|
+
import plugin from 'tailwindcss/plugin';
|
|
36
|
+
var components = [// Alert,
|
|
37
|
+
// Breadcrumb,
|
|
38
|
+
// ButtonGroup,
|
|
39
|
+
// Button,
|
|
40
|
+
// Checkbox,
|
|
41
|
+
// Dot,
|
|
42
|
+
// Forms,
|
|
43
|
+
// Calendar,
|
|
44
|
+
// IconButton,
|
|
45
|
+
// Icon,
|
|
46
|
+
// Link,
|
|
47
|
+
// Message,
|
|
48
|
+
// NotificationToast,
|
|
49
|
+
// Radio,
|
|
50
|
+
// Switch,
|
|
51
|
+
// Table,
|
|
52
|
+
// ZebraTable,
|
|
53
|
+
// CookieConsent,
|
|
54
|
+
// Modal,
|
|
55
|
+
Accordion // Card,
|
|
56
|
+
// Divider,
|
|
57
|
+
// UserMenu,
|
|
58
|
+
// Tag,
|
|
59
|
+
// Pagination,
|
|
60
|
+
// Footer,
|
|
61
|
+
// Header,
|
|
62
|
+
];
|
|
63
|
+
var defaultColors = ['primary', 'secondary'];
|
|
64
|
+
var themeColors = colors;
|
|
65
|
+
module.exports = plugin.withOptions(function (options) {
|
|
66
|
+
if (options === void 0) {
|
|
67
|
+
options = {
|
|
68
|
+
colors: [],
|
|
69
|
+
cssBase: true
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
return function (_ref) {
|
|
74
|
+
var {
|
|
75
|
+
addComponents,
|
|
76
|
+
addVariant,
|
|
77
|
+
addBase,
|
|
78
|
+
e
|
|
79
|
+
} = _ref;
|
|
80
|
+
var optionColors = [...defaultColors, ...(options.colors || [])];
|
|
81
|
+
active({
|
|
82
|
+
addVariant,
|
|
83
|
+
e
|
|
84
|
+
});
|
|
85
|
+
selected({
|
|
86
|
+
addVariant,
|
|
87
|
+
e
|
|
88
|
+
});
|
|
89
|
+
disabled({
|
|
90
|
+
addVariant,
|
|
91
|
+
e
|
|
92
|
+
});
|
|
93
|
+
addComponents(components.map(component => {
|
|
94
|
+
component(optionColors);
|
|
95
|
+
}), {
|
|
96
|
+
respectPrefix: false
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
if (options.cssBase) {
|
|
100
|
+
addBase({
|
|
101
|
+
html: {
|
|
102
|
+
'@apply text-foreground antialiased bg-base': {},
|
|
103
|
+
fontSize: '62.5%',
|
|
104
|
+
lineHeight: '1.5',
|
|
105
|
+
textRendering: 'optimizeLegibility',
|
|
106
|
+
textSizeAdjust: '100%',
|
|
107
|
+
touchAction: 'manipulation'
|
|
108
|
+
},
|
|
109
|
+
body: {
|
|
110
|
+
'@apply text-base leading-base': {},
|
|
111
|
+
position: 'relative',
|
|
112
|
+
minHeight: '100%',
|
|
113
|
+
fontFeatureSettings: "'kern'"
|
|
114
|
+
},
|
|
115
|
+
'h1,h2,h3,h4,h5,h6': {
|
|
116
|
+
'@apply font-bold': {}
|
|
117
|
+
},
|
|
118
|
+
small: {
|
|
119
|
+
fontSize: '1.4rem'
|
|
120
|
+
},
|
|
121
|
+
h1: {
|
|
122
|
+
'@apply text-3xl leading-3xl': {}
|
|
123
|
+
},
|
|
124
|
+
h2: {
|
|
125
|
+
'@apply text-2xl leading-2xl': {}
|
|
126
|
+
},
|
|
127
|
+
h3: {
|
|
128
|
+
'@apply text-xl leading-xl': {}
|
|
129
|
+
},
|
|
130
|
+
h4: {
|
|
131
|
+
'@apply text-lg leading-lg': {}
|
|
132
|
+
},
|
|
133
|
+
h5: {
|
|
134
|
+
'@apply text-base leading-base': {}
|
|
135
|
+
},
|
|
136
|
+
h6: {
|
|
137
|
+
'@apply text-sm leading-sm': {}
|
|
138
|
+
},
|
|
139
|
+
p: {
|
|
140
|
+
'@apply my-4': {}
|
|
141
|
+
},
|
|
142
|
+
'.text-content': {
|
|
143
|
+
'@apply max-w-[80rem]': {},
|
|
144
|
+
h1: {
|
|
145
|
+
'@apply mb-md': {},
|
|
146
|
+
'+ p': {
|
|
147
|
+
'@apply mb-[40px] mt-0': {}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
h2: {
|
|
151
|
+
'@apply mt-lg': {}
|
|
152
|
+
},
|
|
153
|
+
h3: {
|
|
154
|
+
'@apply mt-lg': {}
|
|
155
|
+
},
|
|
156
|
+
h4: {
|
|
157
|
+
'@apply mt-lg': {}
|
|
158
|
+
},
|
|
159
|
+
h5: {
|
|
160
|
+
'@apply mt-lg': {}
|
|
161
|
+
},
|
|
162
|
+
h6: {
|
|
163
|
+
'@apply mt-lg': {}
|
|
164
|
+
},
|
|
165
|
+
p: {
|
|
166
|
+
'@apply mt-sm leading-[1.5]': {}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
}, function () {
|
|
173
|
+
return {
|
|
174
|
+
content: [''],
|
|
175
|
+
theme: {
|
|
176
|
+
fontSize: {
|
|
177
|
+
tiny: '1rem',
|
|
178
|
+
xs: '1.2rem',
|
|
179
|
+
sm: '1.4rem',
|
|
180
|
+
base: '1.6rem',
|
|
181
|
+
lg: '1.8rem',
|
|
182
|
+
xl: '2.0rem',
|
|
183
|
+
'2xl': '2.4rem',
|
|
184
|
+
'3xl': '3.2rem',
|
|
185
|
+
'4xl': '4.0rem',
|
|
186
|
+
'5xl': '5.2rem'
|
|
187
|
+
},
|
|
188
|
+
extend: {
|
|
189
|
+
colors: _extends({}, themeColors, {
|
|
190
|
+
current: 'currentColor'
|
|
191
|
+
}),
|
|
192
|
+
cursor: {
|
|
193
|
+
base: 'var(--vc-cursor)'
|
|
194
|
+
},
|
|
195
|
+
spacing: {
|
|
196
|
+
xs: '4px',
|
|
197
|
+
sm: '8px',
|
|
198
|
+
md: '16px',
|
|
199
|
+
lg: '24px',
|
|
200
|
+
xl: '48px'
|
|
201
|
+
},
|
|
202
|
+
lineHeight: {
|
|
203
|
+
tiny: '1.4rem',
|
|
204
|
+
xs: '1.6rem',
|
|
205
|
+
sm: '2rem',
|
|
206
|
+
base: '2.4rem',
|
|
207
|
+
lg: '2.4rem',
|
|
208
|
+
xl: '3.2rem',
|
|
209
|
+
'2xl': '3.2rem',
|
|
210
|
+
'3xl': '4rem',
|
|
211
|
+
'4xl': '4.8rem',
|
|
212
|
+
'5xl': '5.8rem'
|
|
213
|
+
},
|
|
214
|
+
opacity: {
|
|
215
|
+
15: '0.15'
|
|
216
|
+
},
|
|
217
|
+
backgroundColor: {
|
|
218
|
+
base: withOpacity('--vc-colors-bg-base'),
|
|
219
|
+
fill: withOpacity('--vc-colors-bg-fill')
|
|
220
|
+
},
|
|
221
|
+
textColor: {
|
|
222
|
+
foreground: withOpacity('--vc-colors-text-foreground'),
|
|
223
|
+
muted: withOpacity('--vc-colors-text-muted')
|
|
224
|
+
},
|
|
225
|
+
borderRadius: {
|
|
226
|
+
base: 'var(--vc-rounded)'
|
|
227
|
+
},
|
|
228
|
+
zIndex: {
|
|
229
|
+
hide: '-1',
|
|
230
|
+
none: '0',
|
|
231
|
+
base: '1',
|
|
232
|
+
docked: '10',
|
|
233
|
+
dropdown: '1000',
|
|
234
|
+
sticky: '1100',
|
|
235
|
+
banner: '1200',
|
|
236
|
+
overlay: '1300',
|
|
237
|
+
modal: '1400',
|
|
238
|
+
popover: '1500',
|
|
239
|
+
skipLink: '1600',
|
|
240
|
+
toast: '1700',
|
|
241
|
+
tooltip: '1800'
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
variants: {
|
|
246
|
+
extend: {
|
|
247
|
+
boxShadow: ['disabled'],
|
|
248
|
+
cursor: ['disabled'],
|
|
249
|
+
opacity: ['active', 'disabled'],
|
|
250
|
+
textColor: ['active', 'disabled:hover'],
|
|
251
|
+
textDecoration: ['disabled'],
|
|
252
|
+
backgroundColor: ['disabled'],
|
|
253
|
+
borderColor: ['disabled']
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
});
|
|
258
|
+
|
|
259
|
+
function active(_ref2) {
|
|
260
|
+
var {
|
|
261
|
+
addVariant,
|
|
262
|
+
e
|
|
263
|
+
} = _ref2;
|
|
264
|
+
addVariant('active', _ref3 => {
|
|
265
|
+
var {
|
|
266
|
+
modifySelectors,
|
|
267
|
+
separator
|
|
268
|
+
} = _ref3;
|
|
269
|
+
modifySelectors(_ref4 => {
|
|
270
|
+
var {
|
|
271
|
+
className
|
|
272
|
+
} = _ref4;
|
|
273
|
+
return "." + e("active" + separator + className) + ":active, ." + e("active" + separator + className) + "[data-active=true]";
|
|
274
|
+
});
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
function selected(_ref5) {
|
|
279
|
+
var {
|
|
280
|
+
addVariant,
|
|
281
|
+
e
|
|
282
|
+
} = _ref5;
|
|
283
|
+
addVariant('selected', _ref6 => {
|
|
284
|
+
var {
|
|
285
|
+
modifySelectors,
|
|
286
|
+
separator
|
|
287
|
+
} = _ref6;
|
|
288
|
+
modifySelectors(_ref7 => {
|
|
289
|
+
var {
|
|
290
|
+
className
|
|
291
|
+
} = _ref7;
|
|
292
|
+
return "." + e("selected" + separator + className) + "[aria-selected=true]";
|
|
293
|
+
});
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
function disabled(_ref8) {
|
|
298
|
+
var {
|
|
299
|
+
addVariant,
|
|
300
|
+
e
|
|
301
|
+
} = _ref8;
|
|
302
|
+
addVariant('disabled', _ref9 => {
|
|
303
|
+
var {
|
|
304
|
+
modifySelectors,
|
|
305
|
+
separator
|
|
306
|
+
} = _ref9;
|
|
307
|
+
modifySelectors(_ref10 => {
|
|
308
|
+
var {
|
|
309
|
+
className
|
|
310
|
+
} = _ref10;
|
|
311
|
+
return "." + e("disabled" + separator + className) + "[aria-disabled=true]";
|
|
312
|
+
});
|
|
313
|
+
});
|
|
314
|
+
addVariant('disabled:hover', _ref11 => {
|
|
315
|
+
var {
|
|
316
|
+
modifySelectors,
|
|
317
|
+
separator
|
|
318
|
+
} = _ref11;
|
|
319
|
+
modifySelectors(_ref12 => {
|
|
320
|
+
var {
|
|
321
|
+
className
|
|
322
|
+
} = _ref12;
|
|
323
|
+
return "." + e("disabled:hover" + separator + className) + "[aria-disabled=true]";
|
|
324
|
+
});
|
|
325
|
+
});
|
|
326
|
+
}
|
|
327
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["Accordion","colors","withOpacity","plugin","components","defaultColors","themeColors","module","exports","withOptions","options","cssBase","addComponents","addVariant","addBase","e","optionColors","active","selected","disabled","map","component","respectPrefix","html","fontSize","lineHeight","textRendering","textSizeAdjust","touchAction","body","position","minHeight","fontFeatureSettings","small","h1","h2","h3","h4","h5","h6","p","content","theme","tiny","xs","sm","base","lg","xl","extend","current","cursor","spacing","md","opacity","backgroundColor","fill","textColor","foreground","muted","borderRadius","zIndex","hide","none","docked","dropdown","sticky","banner","overlay","modal","popover","skipLink","toast","tooltip","variants","boxShadow","textDecoration","borderColor","modifySelectors","separator","className"],"sources":["../../src/index.ts"],"sourcesContent":["// components\n// import Alert from './components/alert';\n// import Breadcrumb from './components/breadcrumb';\n// import ButtonGroup from './components/button-group';\n\n// import Checkbox from './components/checkbox';\n// import Dot from './components/dot';\n// import Forms from './components/forms';\n// import Calendar from './components/calendar';\n// import IconButton from './components/icon-button';\n// import Icon from './components/icon';\n// import Link from './components/link';\n// import Message from './components/message';\n// import NotificationToast from './components/notification';\n// import Radio from './components/radio';\n// import Switch from './components/switch';\n\n// import Button from './components/button';\nimport Accordion from './components/accordion';\n// import Card from './components/card';\n// import Table from './components/table';\n// import ZebraTable from './components/zebratable';\n\n// import Modal from './components/modal';\n// import CookieConsent from './components/cookie-consent';\n// import Divider from './components/divider';\n\n// import UserMenu from './components/user-menu';\n\n// import Tag from './components/tag';\n// import Pagination from './components/pagination';\n// import Footer from './components/footer';\n// import Header from './components/header';\n\n// const { = require(} from './../../theme/src/colors');\n// import { colors } from '@sk-web-gui/theme';\nimport { colors } from '@sk-web-gui/theme';\nimport { withOpacity } from './with-opacity';\nimport plugin from 'tailwindcss/plugin';\nimport { tailwindModuleType } from './components/types';\nimport { Config } from 'tailwindcss/types/config';\n\nconst components: ((colors: string[]) => tailwindModuleType)[] = [\n // Alert,\n // Breadcrumb,\n // ButtonGroup,\n // Button,\n // Checkbox,\n // Dot,\n // Forms,\n // Calendar,\n // IconButton,\n // Icon,\n // Link,\n // Message,\n // NotificationToast,\n // Radio,\n // Switch,\n\n // Table,\n // ZebraTable,\n // CookieConsent,\n // Modal,\n\n Accordion,\n // Card,\n // Divider,\n\n // UserMenu,\n\n // Tag,\n // Pagination,\n // Footer,\n // Header,\n];\n\nconst defaultColors = ['primary', 'secondary'];\nconst themeColors = colors;\n\ntype AlfaType = (s: { className: string }) => string;\ntype AddVariantType = (\n s1: string,\n s2: (s: { modifySelectors: (arg: AlfaType) => void; separator: string }) => void\n) => string;\ntype PluginAPIType = { addVariant: AddVariantType; e: (className: string) => string };\n\nmodule.exports = plugin.withOptions(\n function (options: { colors: string[]; cssBase: boolean } = { colors: [], cssBase: true }) {\n return function ({ addComponents, addVariant, addBase, e }) {\n const optionColors = [...defaultColors, ...(options.colors || [])];\n\n active({ addVariant, e } as PluginAPIType);\n selected({ addVariant, e } as PluginAPIType);\n disabled({ addVariant, e } as PluginAPIType);\n\n addComponents(\n components.map((component) => {\n component(optionColors);\n }),\n {\n respectPrefix: false,\n }\n );\n\n if (options.cssBase) {\n addBase({\n html: {\n '@apply text-foreground antialiased bg-base': {},\n fontSize: '62.5%',\n lineHeight: '1.5',\n textRendering: 'optimizeLegibility',\n textSizeAdjust: '100%',\n touchAction: 'manipulation',\n },\n body: {\n '@apply text-base leading-base': {},\n position: 'relative',\n minHeight: '100%',\n fontFeatureSettings: \"'kern'\",\n },\n 'h1,h2,h3,h4,h5,h6': {\n '@apply font-bold': {},\n },\n small: {\n fontSize: '1.4rem',\n },\n h1: { '@apply text-3xl leading-3xl': {} },\n h2: { '@apply text-2xl leading-2xl': {} },\n h3: { '@apply text-xl leading-xl': {} },\n h4: { '@apply text-lg leading-lg': {} },\n h5: { '@apply text-base leading-base': {} },\n h6: { '@apply text-sm leading-sm': {} },\n p: { '@apply my-4': {} },\n\n '.text-content': {\n '@apply max-w-[80rem]': {},\n\n h1: {\n '@apply mb-md': {},\n\n '+ p': {\n '@apply mb-[40px] mt-0': {},\n },\n },\n h2: { '@apply mt-lg': {} },\n h3: { '@apply mt-lg': {} },\n h4: { '@apply mt-lg': {} },\n h5: { '@apply mt-lg': {} },\n h6: { '@apply mt-lg': {} },\n p: { '@apply mt-sm leading-[1.5]': {} },\n },\n });\n }\n };\n },\n function (): Config {\n return {\n content: [''],\n theme: {\n fontSize: {\n tiny: '1rem',\n xs: '1.2rem',\n sm: '1.4rem',\n base: '1.6rem',\n lg: '1.8rem',\n xl: '2.0rem',\n '2xl': '2.4rem',\n '3xl': '3.2rem',\n '4xl': '4.0rem',\n '5xl': '5.2rem',\n },\n extend: {\n colors: {\n ...themeColors,\n current: 'currentColor',\n },\n cursor: {\n base: 'var(--vc-cursor)',\n },\n spacing: {\n xs: '4px',\n sm: '8px',\n md: '16px',\n lg: '24px',\n xl: '48px',\n },\n lineHeight: {\n tiny: '1.4rem',\n xs: '1.6rem',\n sm: '2rem',\n base: '2.4rem',\n lg: '2.4rem',\n xl: '3.2rem',\n '2xl': '3.2rem',\n '3xl': '4rem',\n '4xl': '4.8rem',\n '5xl': '5.8rem',\n },\n opacity: {\n 15: '0.15',\n },\n backgroundColor: {\n base: withOpacity('--vc-colors-bg-base') as unknown as string,\n fill: withOpacity('--vc-colors-bg-fill') as unknown as string,\n },\n textColor: {\n foreground: withOpacity('--vc-colors-text-foreground') as unknown as string,\n muted: withOpacity('--vc-colors-text-muted') as unknown as string,\n },\n borderRadius: {\n base: 'var(--vc-rounded)',\n },\n zIndex: {\n hide: '-1',\n none: '0',\n base: '1',\n docked: '10',\n dropdown: '1000',\n sticky: '1100',\n banner: '1200',\n overlay: '1300',\n modal: '1400',\n popover: '1500',\n skipLink: '1600',\n toast: '1700',\n tooltip: '1800',\n },\n },\n },\n variants: {\n extend: {\n boxShadow: ['disabled'],\n cursor: ['disabled'],\n opacity: ['active', 'disabled'],\n textColor: ['active', 'disabled:hover'],\n textDecoration: ['disabled'],\n backgroundColor: ['disabled'],\n borderColor: ['disabled'],\n },\n },\n };\n }\n);\n\nfunction active({ addVariant, e }: PluginAPIType) {\n addVariant('active', ({ modifySelectors, separator }) => {\n modifySelectors(({ className }) => {\n return `.${e(`active${separator}${className}`)}:active, .${e(\n `active${separator}${className}`\n )}[data-active=true]`;\n });\n });\n}\n\nfunction selected({ addVariant, e }: PluginAPIType) {\n addVariant('selected', ({ modifySelectors, separator }) => {\n modifySelectors(({ className }) => {\n return `.${e(`selected${separator}${className}`)}[aria-selected=true]`;\n });\n });\n}\n\nfunction disabled({ addVariant, e }: PluginAPIType) {\n addVariant('disabled', ({ modifySelectors, separator }) => {\n modifySelectors(({ className }) => {\n return `.${e(`disabled${separator}${className}`)}[aria-disabled=true]`;\n });\n });\n addVariant('disabled:hover', ({ modifySelectors, separator }) => {\n modifySelectors(({ className }) => {\n return `.${e(`disabled:hover${separator}${className}`)}[aria-disabled=true]`;\n });\n });\n}\n"],"mappings":";;AAAA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA,OAAOA,SAAP,MAAsB,wBAAtB,C,CACA;AACA;AACA;AAEA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AAEA;AACA;;AACA,SAASC,MAAT,QAAuB,mBAAvB;AACA,SAASC,WAAT,QAA4B,gBAA5B;AACA,OAAOC,MAAP,MAAmB,oBAAnB;AAIA,IAAMC,UAAwD,GAAG,CAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEAJ,SAtB+D,CAuB/D;AACA;AAEA;AAEA;AACA;AACA;AACA;AA/B+D,CAAjE;AAkCA,IAAMK,aAAa,GAAG,CAAC,SAAD,EAAY,WAAZ,CAAtB;AACA,IAAMC,WAAW,GAAGL,MAApB;AASAM,MAAM,CAACC,OAAP,GAAiBL,MAAM,CAACM,WAAP,CACf,UAAUC,OAAV,EAA2F;EAAA,IAAjFA,OAAiF;IAAjFA,OAAiF,GAA/B;MAAET,MAAM,EAAE,EAAV;MAAcU,OAAO,EAAE;IAAvB,CAA+B;EAAA;;EACzF,OAAO,gBAAqD;IAAA,IAA3C;MAAEC,aAAF;MAAiBC,UAAjB;MAA6BC,OAA7B;MAAsCC;IAAtC,CAA2C;IAC1D,IAAMC,YAAY,GAAG,CAAC,GAAGX,aAAJ,EAAmB,IAAIK,OAAO,CAACT,MAAR,IAA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+ opacityValue + ")";
|
|
7
|
+
return "rgb(var(" + variableName + "))";
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=with-opacity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-opacity.js","names":["withOpacity","variableName","opacityValue"],"sources":["../../src/with-opacity.ts"],"sourcesContent":["export const withOpacity = (variableName: string) => {\n return ({ opacityValue }: { opacityValue: number }): string => {\n if (opacityValue) return `rgba(var(${variableName}), ${opacityValue})`;\n return `rgb(var(${variableName}))`;\n };\n};\n"],"mappings":"AAAA,OAAO,IAAMA,WAAW,GAAIC,YAAD,IAA0B;EACnD,OAAO,QAAwD;IAAA,IAAvD;MAAEC;IAAF,CAAuD;IAC7D,IAAIA,YAAJ,EAAkB,qBAAmBD,YAAnB,WAAqCC,YAArC;IAClB,oBAAkBD,YAAlB;EACD,CAHD;AAID,CALM"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DefaultProps } from '@sk-web-gui/theme';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
interface IAccordionProps extends DefaultProps {
|
|
4
|
+
initalOpen?: boolean;
|
|
5
|
+
accordionTitle: string;
|
|
6
|
+
accordionSubTitle?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
color?: string;
|
|
9
|
+
/** Controls accordion appearance */
|
|
10
|
+
variant?: 'solid' | 'outline';
|
|
11
|
+
as?: React.ElementType;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export interface AccordionProps extends React.HTMLAttributes<HTMLDivElement>, IAccordionProps {
|
|
15
|
+
}
|
|
16
|
+
export declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './accordion';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useAccordionClass: (args?: any) => string;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Meta } from '@storybook/react';
|
|
3
|
+
import { AccordionProps } from '../src';
|
|
4
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Template: {
|
|
7
|
+
(args: AccordionProps): JSX.Element;
|
|
8
|
+
argTypes: {
|
|
9
|
+
accordionTitle: {
|
|
10
|
+
control: string;
|
|
11
|
+
defaultValue: string;
|
|
12
|
+
};
|
|
13
|
+
accordionSubTitle: {
|
|
14
|
+
control: string;
|
|
15
|
+
defaultValue: string;
|
|
16
|
+
};
|
|
17
|
+
initalOpen: {
|
|
18
|
+
control: string;
|
|
19
|
+
defaultValue: boolean;
|
|
20
|
+
};
|
|
21
|
+
variant: {
|
|
22
|
+
type: {
|
|
23
|
+
name: string;
|
|
24
|
+
required: boolean;
|
|
25
|
+
};
|
|
26
|
+
description: string;
|
|
27
|
+
table: {
|
|
28
|
+
defaultValue: {
|
|
29
|
+
summary: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
options: string[];
|
|
33
|
+
control: string;
|
|
34
|
+
defaultValue: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
story: {
|
|
38
|
+
name: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DefaultProps } from '@sk-web-gui/theme';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare type IAlertCloseButtonProps = DefaultProps;
|
|
4
|
+
export interface AlertCloseButtonProps extends React.HTMLAttributes<HTMLButtonElement>, IAlertCloseButtonProps {
|
|
5
|
+
}
|
|
6
|
+
export declare const AlertCloseButton: React.ForwardRefExoticComponent<AlertCloseButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
interface IAlertProps extends DefaultProps {
|
|
8
|
+
color?: string;
|
|
9
|
+
/** Controls alert appearance */
|
|
10
|
+
variant?: 'subtle' | 'solid' | 'left-accent';
|
|
11
|
+
}
|
|
12
|
+
export interface AlertProps extends React.HTMLAttributes<HTMLDivElement>, IAlertProps {
|
|
13
|
+
}
|
|
14
|
+
export declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { AlertProps, AlertCloseButton, AlertCloseButtonProps } from './alert';
|
|
3
|
+
interface Alert extends React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>> {
|
|
4
|
+
CloseButton: typeof AlertCloseButton;
|
|
5
|
+
}
|
|
6
|
+
declare const Alert: Alert;
|
|
7
|
+
export type { AlertProps, AlertCloseButtonProps };
|
|
8
|
+
export { Alert, AlertCloseButton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { LinkProps } from '@sk-web-gui/link';
|
|
2
|
+
import { DefaultProps } from '@sk-web-gui/theme';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export interface BreadcrumbSeparatorProps extends DefaultProps, React.HTMLAttributes<HTMLSpanElement> {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
declare const BreadcrumbSeparator: React.ForwardRefExoticComponent<BreadcrumbSeparatorProps & React.RefAttributes<HTMLSpanElement>>;
|
|
8
|
+
interface BreadcrumbLinkProps extends LinkProps {
|
|
9
|
+
/**
|
|
10
|
+
* If `true`, indicates that the breadcrumb item is active, adds
|
|
11
|
+
* `aria-current=page` and renders a `span`
|
|
12
|
+
*/
|
|
13
|
+
currentPage?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export type { BreadcrumbLinkProps };
|
|
16
|
+
declare const BreadcrumbLink: React.ForwardRefExoticComponent<BreadcrumbLinkProps & React.RefAttributes<HTMLAnchorElement | HTMLSpanElement>>;
|
|
17
|
+
export interface BreadcrumbItemProps extends BreadcrumbProps {
|
|
18
|
+
/**
|
|
19
|
+
* If `true`, indicates that the breadcrumb item is active, adds
|
|
20
|
+
* `aria-current=page` and renders a `span`
|
|
21
|
+
*/
|
|
22
|
+
currentPage?: boolean;
|
|
23
|
+
lastChild?: boolean;
|
|
24
|
+
}
|
|
25
|
+
declare const BreadcrumbItem: React.ForwardRefExoticComponent<BreadcrumbItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
26
|
+
interface IBreadcrumbProps extends DefaultProps {
|
|
27
|
+
separator?: string | React.ReactElement;
|
|
28
|
+
addSeparator?: boolean;
|
|
29
|
+
children?: React.ReactNode;
|
|
30
|
+
}
|
|
31
|
+
export interface BreadcrumbProps extends React.HTMLAttributes<HTMLElement>, IBreadcrumbProps {
|
|
32
|
+
}
|
|
33
|
+
declare const Breadcrumb: React.ForwardRefExoticComponent<BreadcrumbProps & React.RefAttributes<HTMLElement>>;
|
|
34
|
+
export { Breadcrumb, BreadcrumbLink, BreadcrumbItem, BreadcrumbSeparator };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BreadcrumbProps, BreadcrumbItem, BreadcrumbItemProps, BreadcrumbLink, BreadcrumbLinkProps, BreadcrumbSeparator, BreadcrumbSeparatorProps } from './breadcrumb';
|
|
3
|
+
interface Breadcrumb extends React.ForwardRefExoticComponent<BreadcrumbProps & React.RefAttributes<HTMLElement>> {
|
|
4
|
+
Item: typeof BreadcrumbItem;
|
|
5
|
+
Link: typeof BreadcrumbLink;
|
|
6
|
+
Separator: typeof BreadcrumbSeparator;
|
|
7
|
+
}
|
|
8
|
+
declare const Breadcrumb: Breadcrumb;
|
|
9
|
+
export type { BreadcrumbProps, BreadcrumbItemProps, BreadcrumbLinkProps, BreadcrumbSeparatorProps };
|
|
10
|
+
export { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbSeparator };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Breadcrumb } from '../src';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: Breadcrumb;
|
|
6
|
+
parameters: {};
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
export declare const Template: {
|
|
10
|
+
(): JSX.Element;
|
|
11
|
+
argTypes: {
|
|
12
|
+
separator: {
|
|
13
|
+
type: {
|
|
14
|
+
name: string;
|
|
15
|
+
required: boolean;
|
|
16
|
+
};
|
|
17
|
+
description: string;
|
|
18
|
+
table: {
|
|
19
|
+
defaultValue: {
|
|
20
|
+
summary: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
control: string;
|
|
24
|
+
defaultValue: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
storyName: string;
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DefaultProps } from '@sk-web-gui/theme';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { ButtonProps } from './button';
|
|
4
|
+
interface IButtonGroupProps extends DefaultProps {
|
|
5
|
+
/**
|
|
6
|
+
* If `true`, the borderRadius of button that are direct children will be altered
|
|
7
|
+
* to look flushed together
|
|
8
|
+
*/
|
|
9
|
+
attached?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
size?: ButtonProps['size'];
|
|
12
|
+
/** Controls all wrapped button appearance */
|
|
13
|
+
variant?: ButtonProps['variant'];
|
|
14
|
+
color?: ButtonProps['color'];
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement>, IButtonGroupProps {
|
|
18
|
+
}
|
|
19
|
+
export declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
export {};
|