asheeui 0.6.15 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AsheeUIProvider.d.ts.map +1 -1
- package/dist/AsheeUIProvider.js +29 -24
- package/dist/components/accordion/Accordion.d.ts.map +1 -1
- package/dist/components/accordion/Accordion.js +81 -173
- package/dist/components/accordion/accordion-config.js +12 -13
- package/dist/components/accordion/accordion-styles.js +21 -24
- package/dist/components/alert/Alert.d.ts +88 -0
- package/dist/components/alert/Alert.d.ts.map +1 -0
- package/dist/components/alert/Alert.js +61 -0
- package/dist/components/alert/alert-config.d.ts +56 -0
- package/dist/components/alert/alert-config.d.ts.map +1 -0
- package/dist/components/alert/alert-config.js +14 -0
- package/dist/components/alert/alert-styles.d.ts +32 -0
- package/dist/components/alert/alert-styles.d.ts.map +1 -0
- package/dist/components/alert/alert-styles.js +20 -0
- package/dist/components/alert/index.d.ts +3 -0
- package/dist/components/alert/index.d.ts.map +1 -0
- package/dist/components/alert/index.js +3 -0
- package/dist/components/autocomplete/Autocomplete.d.ts +6 -6
- package/dist/components/autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/components/autocomplete/Autocomplete.js +114 -136
- package/dist/components/autocomplete/autocomplete-config.d.ts +1 -1
- package/dist/components/autocomplete/autocomplete-config.d.ts.map +1 -1
- package/dist/components/autocomplete/autocomplete-config.js +7 -12
- package/dist/components/avatar/Avatar.d.ts +87 -0
- package/dist/components/avatar/Avatar.d.ts.map +1 -0
- package/dist/components/avatar/Avatar.js +43 -0
- package/dist/components/avatar/avatar-config.d.ts +48 -0
- package/dist/components/avatar/avatar-config.d.ts.map +1 -0
- package/dist/components/avatar/avatar-config.js +14 -0
- package/dist/components/avatar/avatar-styles.d.ts +21 -0
- package/dist/components/avatar/avatar-styles.d.ts.map +1 -0
- package/dist/components/avatar/avatar-styles.js +13 -0
- package/dist/components/avatar/avatar.helpers.d.ts +19 -0
- package/dist/components/avatar/avatar.helpers.d.ts.map +1 -0
- package/dist/components/avatar/avatar.helpers.js +11 -0
- package/dist/components/avatar/index.d.ts +3 -0
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/avatar/index.js +4 -0
- package/dist/components/badge/Badge.d.ts +69 -0
- package/dist/components/badge/Badge.d.ts.map +1 -0
- package/dist/components/badge/Badge.js +39 -0
- package/dist/components/badge/badge-config.d.ts +63 -0
- package/dist/components/badge/badge-config.d.ts.map +1 -0
- package/dist/components/badge/badge-config.js +15 -0
- package/dist/components/badge/badge-styles.d.ts +27 -0
- package/dist/components/badge/badge-styles.d.ts.map +1 -0
- package/dist/components/badge/badge-styles.js +25 -0
- package/dist/components/badge/index.d.ts +3 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/badge/index.js +3 -0
- package/dist/components/breadcrumb/Breadcrumb.d.ts +106 -0
- package/dist/components/breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb/Breadcrumb.js +52 -0
- package/dist/components/breadcrumb/breadcrumb-config.d.ts +41 -0
- package/dist/components/breadcrumb/breadcrumb-config.d.ts.map +1 -0
- package/dist/components/breadcrumb/breadcrumb-config.js +10 -0
- package/dist/components/breadcrumb/breadcrumb-styles.d.ts +28 -0
- package/dist/components/breadcrumb/breadcrumb-styles.d.ts.map +1 -0
- package/dist/components/breadcrumb/breadcrumb-styles.js +17 -0
- package/dist/components/breadcrumb/index.d.ts +3 -0
- package/dist/components/breadcrumb/index.d.ts.map +1 -0
- package/dist/components/breadcrumb/index.js +3 -0
- package/dist/components/button/Button.d.ts +29 -1
- package/dist/components/button/Button.d.ts.map +1 -1
- package/dist/components/button/Button.js +50 -108
- package/dist/components/button/button-config.js +16 -17
- package/dist/components/button/button-styles.js +10 -11
- package/dist/components/{date-picker/DatePicker.d.ts → calendar/Calendar.d.ts} +22 -22
- package/dist/components/calendar/Calendar.d.ts.map +1 -0
- package/dist/components/calendar/Calendar.js +123 -0
- package/dist/components/{date-picker/Calendar.d.ts → calendar/DateGrid.d.ts} +7 -7
- package/dist/components/calendar/DateGrid.d.ts.map +1 -0
- package/dist/components/calendar/DateGrid.js +194 -0
- package/dist/components/calendar/TimeSpinner.d.ts.map +1 -0
- package/dist/components/calendar/TimeSpinner.js +60 -0
- package/dist/components/{date-picker/date-picker-config.d.ts → calendar/calendar-config.d.ts} +17 -17
- package/dist/components/calendar/calendar-config.d.ts.map +1 -0
- package/dist/components/calendar/calendar-config.js +15 -0
- package/dist/components/{date-picker/date-picker-styles.d.ts → calendar/calendar-styles.d.ts} +1 -1
- package/dist/components/calendar/calendar-styles.d.ts.map +1 -0
- package/dist/components/calendar/calendar-styles.js +46 -0
- package/dist/components/{date-picker/date-picker.helpers.d.ts → calendar/calendar.helpers.d.ts} +9 -9
- package/dist/components/calendar/calendar.helpers.d.ts.map +1 -0
- package/dist/components/calendar/calendar.helpers.js +82 -0
- package/dist/components/calendar/index.d.ts +3 -0
- package/dist/components/calendar/index.d.ts.map +1 -0
- package/dist/components/calendar/index.js +6 -0
- package/dist/components/card/Card.d.ts +36 -16
- package/dist/components/card/Card.d.ts.map +1 -1
- package/dist/components/card/Card.js +115 -205
- package/dist/components/card/card-config.js +24 -21
- package/dist/components/card/card-styles.js +19 -22
- package/dist/components/carousel/Carousel.d.ts.map +1 -1
- package/dist/components/carousel/Carousel.js +125 -248
- package/dist/components/carousel/carousel-config.js +24 -25
- package/dist/components/carousel/carousel-styles.d.ts +1 -20
- package/dist/components/carousel/carousel-styles.d.ts.map +1 -1
- package/dist/components/carousel/carousel-styles.js +14 -16
- package/dist/components/chip/Chip.js +84 -191
- package/dist/components/chip/chip-config.js +13 -14
- package/dist/components/chip/chip-styles.js +22 -26
- package/dist/components/drawer/Drawer.d.ts +33 -11
- package/dist/components/drawer/Drawer.d.ts.map +1 -1
- package/dist/components/drawer/Drawer.js +70 -131
- package/dist/components/drawer/drawer-config.js +14 -15
- package/dist/components/drawer/drawer-styles.js +38 -42
- package/dist/components/{select/Select.d.ts → dropmenu/Dropmenu.d.ts} +22 -21
- package/dist/components/dropmenu/Dropmenu.d.ts.map +1 -0
- package/dist/components/dropmenu/Dropmenu.js +102 -0
- package/dist/components/{select/select-config.d.ts → dropmenu/dropmenu-config.d.ts} +8 -8
- package/dist/components/dropmenu/dropmenu-config.d.ts.map +1 -0
- package/dist/components/dropmenu/dropmenu-config.js +9 -0
- package/dist/components/{select/select-styles.d.ts → dropmenu/dropmenu-styles.d.ts} +1 -1
- package/dist/components/dropmenu/dropmenu-styles.d.ts.map +1 -0
- package/dist/components/dropmenu/dropmenu-styles.js +6 -0
- package/dist/components/dropmenu/index.d.ts +3 -0
- package/dist/components/dropmenu/index.d.ts.map +1 -0
- package/dist/components/dropmenu/index.js +3 -0
- package/dist/components/field/FieldShell.d.ts +13 -1
- package/dist/components/field/FieldShell.d.ts.map +1 -1
- package/dist/components/field/FieldShell.js +50 -56
- package/dist/components/field/field-config.js +17 -18
- package/dist/components/field/field-styles.js +8 -8
- package/dist/components/form/Form.d.ts +109 -0
- package/dist/components/form/Form.d.ts.map +1 -0
- package/dist/components/form/Form.js +42 -0
- package/dist/components/form/form-config.d.ts +57 -0
- package/dist/components/form/form-config.d.ts.map +1 -0
- package/dist/components/form/form-config.js +12 -0
- package/dist/components/form/form-styles.d.ts +27 -0
- package/dist/components/form/form-styles.d.ts.map +1 -0
- package/dist/components/form/form-styles.js +5 -0
- package/dist/components/form/index.d.ts +3 -0
- package/dist/components/form/index.d.ts.map +1 -0
- package/dist/components/form/index.js +3 -0
- package/dist/components/image/Image.d.ts +8 -9
- package/dist/components/image/Image.d.ts.map +1 -1
- package/dist/components/image/Image.js +65 -132
- package/dist/components/image/image-config.js +17 -18
- package/dist/components/image/image-styles.js +14 -15
- package/dist/components/input/Input.js +65 -150
- package/dist/components/input/PasswordInput.js +30 -49
- package/dist/components/input/input-config.js +7 -7
- package/dist/components/input/input-styles.js +9 -10
- package/dist/components/keyboard/KeyboardContext.js +10 -11
- package/dist/components/keyboard/KeyboardProvider.js +100 -181
- package/dist/components/keyboard/OnScreenKeyboard.d.ts.map +1 -1
- package/dist/components/keyboard/OnScreenKeyboard.js +159 -166
- package/dist/components/keyboard/keyboard-config.js +59 -57
- package/dist/components/keyboard/keyboard-styles.js +10 -11
- package/dist/components/keyboard/use-keyboard-field.js +29 -21
- package/dist/components/link/Link.d.ts +12 -10
- package/dist/components/link/Link.d.ts.map +1 -1
- package/dist/components/link/Link.js +47 -137
- package/dist/components/link/link-config.js +14 -15
- package/dist/components/link/link-styles.js +25 -29
- package/dist/components/marquee/Marquee.d.ts.map +1 -1
- package/dist/components/marquee/Marquee.js +58 -144
- package/dist/components/marquee/marquee-config.js +18 -19
- package/dist/components/marquee/marquee-styles.js +13 -15
- package/dist/components/{select-menu/SelectMenu.d.ts → menu/Menu.d.ts} +52 -19
- package/dist/components/menu/Menu.d.ts.map +1 -0
- package/dist/components/menu/Menu.js +161 -0
- package/dist/components/menu/index.d.ts +5 -0
- package/dist/components/menu/index.d.ts.map +1 -0
- package/dist/components/menu/index.js +4 -0
- package/dist/components/{select-menu/select-menu-config.d.ts → menu/menu-config.d.ts} +5 -5
- package/dist/components/menu/menu-config.d.ts.map +1 -0
- package/dist/components/menu/menu-config.js +14 -0
- package/dist/components/menu/menu-navigation.d.ts +38 -0
- package/dist/components/menu/menu-navigation.d.ts.map +1 -0
- package/dist/components/menu/menu-navigation.js +20 -0
- package/dist/components/{select-menu/use-select-floating.d.ts → menu/use-menu-floating.d.ts} +20 -10
- package/dist/components/menu/use-menu-floating.d.ts.map +1 -0
- package/dist/components/menu/use-menu-floating.js +43 -0
- package/dist/components/modal/Modal.d.ts +32 -11
- package/dist/components/modal/Modal.d.ts.map +1 -1
- package/dist/components/modal/Modal.js +74 -137
- package/dist/components/modal/modal-config.js +15 -16
- package/dist/components/modal/modal-styles.js +13 -14
- package/dist/components/multi-select/MultiSelect.d.ts +29 -12
- package/dist/components/multi-select/MultiSelect.d.ts.map +1 -1
- package/dist/components/multi-select/MultiSelect.js +162 -283
- package/dist/components/multi-select/multi-select-config.d.ts +24 -19
- package/dist/components/multi-select/multi-select-config.d.ts.map +1 -1
- package/dist/components/multi-select/multi-select-config.js +18 -21
- package/dist/components/multi-select/multi-select-styles.js +17 -20
- package/dist/components/pagination/Pagination.d.ts +91 -0
- package/dist/components/pagination/Pagination.d.ts.map +1 -0
- package/dist/components/pagination/Pagination.js +66 -0
- package/dist/components/pagination/index.d.ts +3 -0
- package/dist/components/pagination/index.d.ts.map +1 -0
- package/dist/components/pagination/index.js +4 -0
- package/dist/components/pagination/pagination-config.d.ts +66 -0
- package/dist/components/pagination/pagination-config.d.ts.map +1 -0
- package/dist/components/pagination/pagination-config.js +19 -0
- package/dist/components/pagination/pagination-styles.d.ts +19 -0
- package/dist/components/pagination/pagination-styles.d.ts.map +1 -0
- package/dist/components/pagination/pagination-styles.js +5 -0
- package/dist/components/pagination/pagination.helpers.d.ts +26 -0
- package/dist/components/pagination/pagination.helpers.d.ts.map +1 -0
- package/dist/components/pagination/pagination.helpers.js +12 -0
- package/dist/components/radio/Radio.d.ts +53 -107
- package/dist/components/radio/Radio.d.ts.map +1 -1
- package/dist/components/radio/Radio.js +56 -79
- package/dist/components/radio/RadioGroup.d.ts +107 -53
- package/dist/components/radio/RadioGroup.d.ts.map +1 -1
- package/dist/components/radio/RadioGroup.js +51 -155
- package/dist/components/radio/index.d.ts +0 -1
- package/dist/components/radio/index.d.ts.map +1 -1
- package/dist/components/radio/radio-config.js +15 -16
- package/dist/components/radio/radio-context.js +6 -6
- package/dist/components/radio/radio-styles.js +55 -60
- package/dist/components/resizable-screen/ResizableScreen.d.ts +4 -4
- package/dist/components/resizable-screen/ResizableScreen.js +87 -177
- package/dist/components/resizable-screen/resizable-screen-config.js +16 -17
- package/dist/components/scrollbar/index.js +1 -0
- package/dist/components/scrollbar/scrollbar-config.js +13 -0
- package/dist/components/sidebar/Sidebar.d.ts +43 -22
- package/dist/components/sidebar/Sidebar.d.ts.map +1 -1
- package/dist/components/sidebar/Sidebar.js +148 -331
- package/dist/components/sidebar/sidebar-config.d.ts +98 -31
- package/dist/components/sidebar/sidebar-config.d.ts.map +1 -1
- package/dist/components/sidebar/sidebar-config.js +47 -33
- package/dist/components/sidebar/sidebar-styles.js +27 -32
- package/dist/components/skeleton/Skeleton.d.ts +65 -0
- package/dist/components/skeleton/Skeleton.d.ts.map +1 -0
- package/dist/components/skeleton/Skeleton.js +29 -0
- package/dist/components/skeleton/index.d.ts +3 -0
- package/dist/components/skeleton/index.d.ts.map +1 -0
- package/dist/components/skeleton/index.js +3 -0
- package/dist/components/skeleton/skeleton-config.d.ts +40 -0
- package/dist/components/skeleton/skeleton-config.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton-config.js +13 -0
- package/dist/components/skeleton/skeleton-styles.d.ts +19 -0
- package/dist/components/skeleton/skeleton-styles.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton-styles.js +5 -0
- package/dist/components/spinner/spinner-config.js +12 -13
- package/dist/components/spinner/spinner-styles.js +13 -14
- package/dist/components/spinner/spinner.js +39 -82
- package/dist/components/switch/Switch.d.ts.map +1 -1
- package/dist/components/switch/Switch.js +64 -154
- package/dist/components/switch/switch-config.js +11 -12
- package/dist/components/switch/switch-styles.js +14 -16
- package/dist/components/table/Table.js +64 -186
- package/dist/components/table/table-config.js +17 -18
- package/dist/components/table/table-styles.js +48 -52
- package/dist/components/tabs/Tabs.d.ts +16 -8
- package/dist/components/tabs/Tabs.d.ts.map +1 -1
- package/dist/components/tabs/Tabs.js +93 -208
- package/dist/components/tabs/tabs-config.d.ts +42 -20
- package/dist/components/tabs/tabs-config.d.ts.map +1 -1
- package/dist/components/tabs/tabs-config.js +26 -18
- package/dist/components/tabs/tabs-styles.js +15 -17
- package/dist/components/textarea/Textarea.d.ts +10 -10
- package/dist/components/textarea/Textarea.js +52 -138
- package/dist/components/textarea/textarea-config.d.ts +2 -2
- package/dist/components/textarea/textarea-config.js +10 -11
- package/dist/components/textarea/textarea-styles.js +9 -10
- package/dist/components/toast/ToastContext.js +22 -26
- package/dist/components/toast/ToastItem.d.ts.map +1 -1
- package/dist/components/toast/ToastItem.js +83 -144
- package/dist/components/toast/ToastProvider.d.ts.map +1 -1
- package/dist/components/toast/ToastProvider.js +128 -190
- package/dist/components/toast/toast-config.js +23 -24
- package/dist/components/toast/toast-styles.js +50 -55
- package/dist/components/toast/use-pausable-timeout.js +17 -13
- package/dist/components/tooltip/Tooltip.d.ts +5 -0
- package/dist/components/tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/tooltip/Tooltip.js +68 -158
- package/dist/components/tooltip/tooltip-config.d.ts +25 -0
- package/dist/components/tooltip/tooltip-config.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip-config.js +26 -22
- package/dist/components/tooltip/tooltip-styles.js +15 -17
- package/dist/components/typography/Typography.d.ts +60 -0
- package/dist/components/typography/Typography.d.ts.map +1 -0
- package/dist/components/typography/Typography.js +28 -0
- package/dist/components/typography/index.d.ts +3 -0
- package/dist/components/typography/index.d.ts.map +1 -0
- package/dist/components/typography/index.js +3 -0
- package/dist/components/typography/typography-config.d.ts +54 -0
- package/dist/components/typography/typography-config.d.ts.map +1 -0
- package/dist/components/typography/typography-config.js +12 -0
- package/dist/components/typography/typography-styles.d.ts +21 -0
- package/dist/components/typography/typography-styles.d.ts.map +1 -0
- package/dist/components/typography/typography-styles.js +19 -0
- package/dist/config/default-config.d.ts.map +1 -1
- package/dist/config/default-config.js +11 -34
- package/dist/config/index.js +1 -0
- package/dist/config/resolve-color.js +23 -23
- package/dist/config/resolve-config.d.ts.map +1 -1
- package/dist/config/resolve-config.js +14 -12
- package/dist/config/validate-config.d.ts +34 -0
- package/dist/config/validate-config.d.ts.map +1 -0
- package/dist/config/validate-config.js +190 -0
- package/dist/icons/ArrowLeftIcon.js +16 -19
- package/dist/icons/CalendarIcon.js +43 -24
- package/dist/icons/CheckIcon.js +16 -19
- package/dist/icons/ChevronDownIcon.js +15 -21
- package/dist/icons/ChevronLeftIcon.js +16 -19
- package/dist/icons/ChevronRightIcon.js +16 -19
- package/dist/icons/ChevronUpIcon.js +16 -19
- package/dist/icons/ClearIcon.js +26 -22
- package/dist/icons/ClockIcon.js +20 -22
- package/dist/icons/CloseIcon.js +26 -22
- package/dist/icons/ErrorIcon.js +16 -19
- package/dist/icons/ExternalLinkIcon.js +25 -23
- package/dist/icons/EyeIcon.js +20 -22
- package/dist/icons/EyeOffIcon.js +21 -22
- package/dist/icons/InfoIcon.js +16 -19
- package/dist/icons/SearchIcon.js +25 -22
- package/dist/icons/WarningIcon.js +16 -19
- package/dist/index.d.ts +15 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +79 -163
- package/dist/libs/context.js +10 -13
- package/dist/libs/index.js +4 -0
- package/dist/libs/registry.js +10 -12
- package/dist/libs/use-body-scroll-lock.d.ts +21 -0
- package/dist/libs/use-body-scroll-lock.d.ts.map +1 -0
- package/dist/libs/use-body-scroll-lock.js +27 -0
- package/dist/libs/use-dialog-overlay.d.ts +21 -0
- package/dist/libs/use-dialog-overlay.d.ts.map +1 -0
- package/dist/libs/use-dialog-overlay.js +21 -0
- package/dist/libs/use-floating-z-index.d.ts +32 -0
- package/dist/libs/use-floating-z-index.d.ts.map +1 -0
- package/dist/libs/use-floating-z-index.js +16 -0
- package/dist/libs/use-isomorphic-layout-effect.js +5 -5
- package/dist/libs/use-prefers-reduced-motion.d.ts +23 -0
- package/dist/libs/use-prefers-reduced-motion.d.ts.map +1 -0
- package/dist/libs/use-prefers-reduced-motion.js +19 -0
- package/dist/scripts/AsheeThemeScript.js +70 -44
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/radius.d.ts.map +1 -1
- package/dist/shared/radius.js +12 -13
- package/dist/shared/typography.d.ts +81 -0
- package/dist/shared/typography.d.ts.map +1 -0
- package/dist/shared/typography.js +137 -0
- package/dist/shared/variant.js +46 -134
- package/dist/theme/color.js +28 -28
- package/dist/theme/controller.d.ts.map +1 -1
- package/dist/theme/controller.js +65 -178
- package/dist/theme/useTheme.js +13 -44
- package/dist/utils/cn.js +7 -7
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/merge-object.js +13 -14
- package/dist/utils/resolve-token.js +11 -14
- package/dist/utils/stacking.d.ts +76 -0
- package/dist/utils/stacking.d.ts.map +1 -0
- package/dist/utils/stacking.js +34 -0
- package/package.json +22 -14
- package/dist/components/date-picker/Calendar.d.ts.map +0 -1
- package/dist/components/date-picker/Calendar.js +0 -224
- package/dist/components/date-picker/DatePicker.d.ts.map +0 -1
- package/dist/components/date-picker/DatePicker.js +0 -221
- package/dist/components/date-picker/TimeSpinner.d.ts.map +0 -1
- package/dist/components/date-picker/TimeSpinner.js +0 -84
- package/dist/components/date-picker/date-picker-config.d.ts.map +0 -1
- package/dist/components/date-picker/date-picker-config.js +0 -16
- package/dist/components/date-picker/date-picker-styles.d.ts.map +0 -1
- package/dist/components/date-picker/date-picker-styles.js +0 -47
- package/dist/components/date-picker/date-picker.helpers.d.ts.map +0 -1
- package/dist/components/date-picker/date-picker.helpers.js +0 -110
- package/dist/components/date-picker/index.d.ts +0 -3
- package/dist/components/date-picker/index.d.ts.map +0 -1
- package/dist/components/date-picker/index.js +0 -6
- package/dist/components/select/Select.d.ts.map +0 -1
- package/dist/components/select/Select.js +0 -196
- package/dist/components/select/index.d.ts +0 -3
- package/dist/components/select/index.d.ts.map +0 -1
- package/dist/components/select/index.js +0 -3
- package/dist/components/select/select-config.d.ts.map +0 -1
- package/dist/components/select/select-config.js +0 -10
- package/dist/components/select/select-styles.d.ts.map +0 -1
- package/dist/components/select/select-styles.js +0 -6
- package/dist/components/select-menu/SelectMenu.d.ts.map +0 -1
- package/dist/components/select-menu/SelectMenu.js +0 -198
- package/dist/components/select-menu/index.d.ts +0 -4
- package/dist/components/select-menu/index.d.ts.map +0 -1
- package/dist/components/select-menu/index.js +0 -3
- package/dist/components/select-menu/select-menu-config.d.ts.map +0 -1
- package/dist/components/select-menu/select-menu-config.js +0 -14
- package/dist/components/select-menu/use-select-floating.d.ts.map +0 -1
- package/dist/components/select-menu/use-select-floating.js +0 -50
- /package/dist/components/{date-picker → calendar}/TimeSpinner.d.ts +0 -0
|
@@ -1,36 +1,61 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
`);
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
2
|
+
import { THEME_STORAGE_KEY as e } from "../theme/controller.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region src/scripts/AsheeThemeScript.tsx
|
|
5
|
+
var n = {
|
|
6
|
+
background: "--ashee-background",
|
|
7
|
+
foreground: "--ashee-foreground",
|
|
8
|
+
primary: "--ashee-primary",
|
|
9
|
+
secondary: "--ashee-secondary",
|
|
10
|
+
border: "--ashee-border",
|
|
11
|
+
danger: "--ashee-danger",
|
|
12
|
+
warning: "--ashee-warning",
|
|
13
|
+
success: "--ashee-success",
|
|
14
|
+
scrollbarThumb: "--ashee-scrollbar-thumb",
|
|
15
|
+
scrollbarTrack: "--ashee-scrollbar-track"
|
|
16
|
+
}, r = "ashee-theme-vars", i = "ashee-theme-script";
|
|
17
|
+
function a(e) {
|
|
18
|
+
return Object.entries(e).map(([e, t]) => {
|
|
19
|
+
let r = Object.entries(t).map(([e, t]) => ` ${n[e]}: ${t};`).join("\n");
|
|
20
|
+
return `${e === "light" ? ":root, .theme-light" : `.theme-${e}`} {\n${r}\n}`;
|
|
21
|
+
}).join("\n\n");
|
|
22
|
+
}
|
|
23
|
+
var o = {
|
|
24
|
+
width: "--ashee-scrollbar-width",
|
|
25
|
+
radius: "--ashee-scrollbar-radius",
|
|
26
|
+
trackRadius: "--ashee-scrollbar-track-radius",
|
|
27
|
+
thumbBorder: "--ashee-scrollbar-thumb-border",
|
|
28
|
+
gutter: "--ashee-scrollbar-gutter"
|
|
29
|
+
};
|
|
30
|
+
function s(e) {
|
|
31
|
+
if (!e) return "";
|
|
32
|
+
let t = {
|
|
33
|
+
width: e.width,
|
|
34
|
+
radius: e.radius,
|
|
35
|
+
trackRadius: e.trackRadius ?? e.radius,
|
|
36
|
+
thumbBorder: e.thumbBorder,
|
|
37
|
+
gutter: e.gutter
|
|
38
|
+
}, n = Object.entries(o).map(([e, n]) => {
|
|
39
|
+
let r = t[e];
|
|
40
|
+
return r ? ` ${n}: ${r};` : null;
|
|
41
|
+
}).filter((e) => e !== null);
|
|
42
|
+
return n.length > 0 ? `:root {\n${n.join("\n")}\n}` : "";
|
|
43
|
+
}
|
|
44
|
+
function c(e) {
|
|
45
|
+
return [a(e.color), s(e.components?.scrollbar)].filter((e) => e !== "").join("\n\n");
|
|
26
46
|
}
|
|
27
|
-
function
|
|
28
|
-
|
|
47
|
+
function l(e) {
|
|
48
|
+
if (typeof document > "u" || document.getElementById("ashee-theme-vars")) return;
|
|
49
|
+
let t = document.createElement("style");
|
|
50
|
+
t.id = r, t.textContent = c(e), document.head.appendChild(t);
|
|
51
|
+
}
|
|
52
|
+
function u({ config: n }) {
|
|
53
|
+
let a = Object.keys(n.color ?? {}), o = n.defaultTheme ?? "system", s = e, l = c(n), u = `
|
|
29
54
|
(function() {
|
|
30
55
|
var el = document.documentElement;
|
|
31
|
-
var storageKey = ${JSON.stringify(
|
|
32
|
-
var defaultTheme = ${JSON.stringify(
|
|
33
|
-
var themes = ${JSON.stringify(
|
|
56
|
+
var storageKey = ${JSON.stringify(s)};
|
|
57
|
+
var defaultTheme = ${JSON.stringify(o)};
|
|
58
|
+
var themes = ${JSON.stringify(a)};
|
|
34
59
|
var systemDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
|
35
60
|
|
|
36
61
|
var stored = null;
|
|
@@ -39,7 +64,13 @@ function u({ config: e }) {
|
|
|
39
64
|
} catch (e) {}
|
|
40
65
|
|
|
41
66
|
var selection = stored || defaultTheme;
|
|
67
|
+
if (selection !== 'system' && themes.indexOf(selection) === -1) {
|
|
68
|
+
selection = defaultTheme;
|
|
69
|
+
}
|
|
42
70
|
var resolved = selection === 'system' ? (systemDark ? 'dark' : 'light') : selection;
|
|
71
|
+
if (themes.indexOf(resolved) === -1) {
|
|
72
|
+
resolved = themes.indexOf(defaultTheme) !== -1 ? defaultTheme : (themes[0] || resolved);
|
|
73
|
+
}
|
|
43
74
|
|
|
44
75
|
var prefix = 'theme-';
|
|
45
76
|
for (var i = el.classList.length - 1; i >= 0; i--) {
|
|
@@ -51,25 +82,20 @@ function u({ config: e }) {
|
|
|
51
82
|
el.style.colorScheme = resolved;
|
|
52
83
|
|
|
53
84
|
// Synchronously inject style tag before first paint
|
|
54
|
-
var styleEl = document.getElementById(${JSON.stringify(
|
|
85
|
+
var styleEl = document.getElementById(${JSON.stringify(r)});
|
|
55
86
|
if (!styleEl) {
|
|
56
87
|
styleEl = document.createElement('style');
|
|
57
|
-
styleEl.id = ${JSON.stringify(
|
|
58
|
-
styleEl.textContent = ${JSON.stringify(
|
|
88
|
+
styleEl.id = ${JSON.stringify(r)};
|
|
89
|
+
styleEl.textContent = ${JSON.stringify(l)};
|
|
59
90
|
document.head.appendChild(styleEl);
|
|
60
91
|
}
|
|
61
92
|
})();
|
|
62
93
|
`;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
suppressHydrationWarning: !0
|
|
69
|
-
}
|
|
70
|
-
);
|
|
94
|
+
return /* @__PURE__ */ t("script", {
|
|
95
|
+
id: i,
|
|
96
|
+
dangerouslySetInnerHTML: { __html: u },
|
|
97
|
+
suppressHydrationWarning: !0
|
|
98
|
+
});
|
|
71
99
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
l as THEME_VARS_STYLE_ID
|
|
75
|
-
};
|
|
100
|
+
//#endregion
|
|
101
|
+
export { u as AsheeThemeScript, i as THEME_SCRIPT_ID, r as THEME_VARS_STYLE_ID, c as buildThemeVarsCss, l as ensureThemeVarsStyle };
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radius.d.ts","sourceRoot":"","sources":["../../src/shared/radius.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC;AAEjC;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEtC;;;;GAIG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAQ/C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"radius.d.ts","sourceRoot":"","sources":["../../src/shared/radius.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC;AAEjC;;;GAGG;AACH,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEtC;;;;GAIG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAQ/C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,OAAO,EAAE,QAAQ,MAAM,KAAG,MAKlE,CAAC"}
|
package/dist/shared/radius.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
2
|
+
//#region src/shared/radius.ts
|
|
3
|
+
var e = {
|
|
4
|
+
none: "rounded-none",
|
|
5
|
+
xs: "rounded-xs",
|
|
6
|
+
sm: "rounded-sm",
|
|
7
|
+
md: "rounded-md",
|
|
8
|
+
lg: "rounded-lg",
|
|
9
|
+
xl: "rounded-xl",
|
|
10
|
+
full: "rounded-full"
|
|
11
|
+
}, t = (e, t) => e === "underlined" ? "none" : t;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { e as RADIUS_CLASS, t as UnderlineRadius };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typography token definitions for AsheeUI.
|
|
3
|
+
*
|
|
4
|
+
* Typography uses the same two-layer model as radius and colour: a semantic
|
|
5
|
+
* layer (roles) resolves to a size/style layer, which resolves to complete,
|
|
6
|
+
* static Tailwind class strings. This file holds the types and the mappings;
|
|
7
|
+
* the public `Typography` component consumes them.
|
|
8
|
+
*
|
|
9
|
+
* @see `docs/docs/asheeui-typography-specification-proposal.md` (approved M2
|
|
10
|
+
* specification) for the rationale, the role table and the compatibility notes.
|
|
11
|
+
*/
|
|
12
|
+
/** The available typography size tokens. */
|
|
13
|
+
export type TypographySize = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
|
|
14
|
+
/** The available font-weight tokens. */
|
|
15
|
+
export type TypographyWeight = "normal" | "medium" | "semibold" | "bold";
|
|
16
|
+
/** The available line-height tokens. */
|
|
17
|
+
export type TypographyLeading = "tight" | "snug" | "normal" | "relaxed" | "loose";
|
|
18
|
+
/** The available letter-spacing tokens. */
|
|
19
|
+
export type TypographyTracking = "tighter" | "tight" | "normal" | "wide" | "wider" | "widest";
|
|
20
|
+
/**
|
|
21
|
+
* The semantic typography roles.
|
|
22
|
+
* A role describes why text exists and resolves to a complete treatment.
|
|
23
|
+
*/
|
|
24
|
+
export type TypographyRole = "display" | "heading-xl" | "heading-lg" | "heading-md" | "heading-sm" | "body-lg" | "body-md" | "body-sm" | "label" | "caption" | "overline";
|
|
25
|
+
/**
|
|
26
|
+
* The colour treatments available to typography.
|
|
27
|
+
* `default`, `muted` and `disabled` are derived from the foreground token;
|
|
28
|
+
* the remaining values are framework colour tokens resolved through the colour
|
|
29
|
+
* engine, never raw Tailwind palette colours.
|
|
30
|
+
*/
|
|
31
|
+
export type TypographyTone = "default" | "muted" | "disabled" | "primary" | "secondary" | "danger" | "warning" | "success" | "none";
|
|
32
|
+
/** Text alignment options. */
|
|
33
|
+
export type TypographyAlign = "left" | "center" | "right" | "justify";
|
|
34
|
+
/** The size/style tokens a role resolves to. */
|
|
35
|
+
export interface TypographyRoleTokens {
|
|
36
|
+
/** Size token. */
|
|
37
|
+
size: TypographySize;
|
|
38
|
+
/** Font-weight token. */
|
|
39
|
+
weight: TypographyWeight;
|
|
40
|
+
/** Line-height token. */
|
|
41
|
+
leading: TypographyLeading;
|
|
42
|
+
/** Letter-spacing token. */
|
|
43
|
+
tracking: TypographyTracking;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Size token to static Tailwind class.
|
|
47
|
+
* Note the deliberate difference between the token name (`md`) and the utility
|
|
48
|
+
* (`text-base`): the token is the semantic name, as with `RADIUS_CLASS`.
|
|
49
|
+
*/
|
|
50
|
+
export declare const TYPOGRAPHY_SIZE_CLASS: Record<TypographySize, string>;
|
|
51
|
+
/** Font-weight token to static Tailwind class. */
|
|
52
|
+
export declare const TYPOGRAPHY_WEIGHT_CLASS: Record<TypographyWeight, string>;
|
|
53
|
+
/** Line-height token to static Tailwind class. */
|
|
54
|
+
export declare const TYPOGRAPHY_LEADING_CLASS: Record<TypographyLeading, string>;
|
|
55
|
+
/** Letter-spacing token to static Tailwind class. */
|
|
56
|
+
export declare const TYPOGRAPHY_TRACKING_CLASS: Record<TypographyTracking, string>;
|
|
57
|
+
/** Tone token to static Tailwind class, using framework colour tokens only. */
|
|
58
|
+
export declare const TYPOGRAPHY_TONE_CLASS: Record<TypographyTone, string>;
|
|
59
|
+
/** Alignment token to static Tailwind class. */
|
|
60
|
+
export declare const TYPOGRAPHY_ALIGN_CLASS: Record<TypographyAlign, string>;
|
|
61
|
+
/**
|
|
62
|
+
* The size/style tokens each semantic role resolves to.
|
|
63
|
+
* This table is the documentation source for {@link TYPOGRAPHY_ROLE_CLASS};
|
|
64
|
+
* a test asserts the two can never drift.
|
|
65
|
+
*/
|
|
66
|
+
export declare const TYPOGRAPHY_ROLE_TOKEN: Record<TypographyRole, TypographyRoleTokens>;
|
|
67
|
+
/**
|
|
68
|
+
* The semantic element each role renders by default.
|
|
69
|
+
* Consumers can override the element without changing the treatment.
|
|
70
|
+
*/
|
|
71
|
+
export declare const TYPOGRAPHY_ROLE_DEFAULT_ELEMENT: Record<TypographyRole, string>;
|
|
72
|
+
/**
|
|
73
|
+
* The complete, static class string for each semantic role.
|
|
74
|
+
*
|
|
75
|
+
* These are written out in full rather than composed at render time: Tailwind
|
|
76
|
+
* class names must always be static and complete. The entries are asserted
|
|
77
|
+
* against {@link TYPOGRAPHY_ROLE_TOKEN} in the test suite, so the documented
|
|
78
|
+
* token table and the shipped classes cannot drift.
|
|
79
|
+
*/
|
|
80
|
+
export declare const TYPOGRAPHY_ROLE_CLASS: Record<TypographyRole, string>;
|
|
81
|
+
//# sourceMappingURL=typography.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../src/shared/typography.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,4CAA4C;AAC5C,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,CAAC;AAE9E,wCAAwC;AACxC,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;AAEzE,wCAAwC;AACxC,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAC;AAElF,2CAA2C;AAC3C,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,OAAO,GACP,QAAQ,GACR,MAAM,GACN,OAAO,GACP,QAAQ,CAAC;AAEb;;;GAGG;AACH,MAAM,MAAM,cAAc,GACtB,SAAS,GACT,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,SAAS,GACT,SAAS,GACT,SAAS,GACT,OAAO,GACP,SAAS,GACT,UAAU,CAAC;AAEf;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GACtB,SAAS,GACT,OAAO,GACP,UAAU,GACV,SAAS,GACT,WAAW,GACX,QAAQ,GACR,SAAS,GACT,SAAS,GACT,MAAM,CAAC;AAEX,8BAA8B;AAC9B,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;AAEtE,gDAAgD;AAChD,MAAM,WAAW,oBAAoB;IACnC,kBAAkB;IAClB,IAAI,EAAE,cAAc,CAAC;IACrB,yBAAyB;IACzB,MAAM,EAAE,gBAAgB,CAAC;IACzB,yBAAyB;IACzB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,4BAA4B;IAC5B,QAAQ,EAAE,kBAAkB,CAAC;CAC9B;AAED;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAQhE,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAKpE,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAMtE,CAAC;AAEF,qDAAqD;AACrD,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAOxE,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAUhE,CAAC;AAEF,gDAAgD;AAChD,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAKlE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,cAAc,EAAE,oBAAoB,CA0D5E,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAY1E,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAYhE,CAAC"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region src/shared/typography.ts
|
|
3
|
+
var e = {
|
|
4
|
+
xs: "text-xs",
|
|
5
|
+
sm: "text-sm",
|
|
6
|
+
md: "text-base",
|
|
7
|
+
lg: "text-lg",
|
|
8
|
+
xl: "text-xl",
|
|
9
|
+
"2xl": "text-2xl",
|
|
10
|
+
"3xl": "text-3xl"
|
|
11
|
+
}, t = {
|
|
12
|
+
normal: "font-normal",
|
|
13
|
+
medium: "font-medium",
|
|
14
|
+
semibold: "font-semibold",
|
|
15
|
+
bold: "font-bold"
|
|
16
|
+
}, n = {
|
|
17
|
+
tight: "leading-tight",
|
|
18
|
+
snug: "leading-snug",
|
|
19
|
+
normal: "leading-normal",
|
|
20
|
+
relaxed: "leading-relaxed",
|
|
21
|
+
loose: "leading-loose"
|
|
22
|
+
}, r = {
|
|
23
|
+
tighter: "tracking-tighter",
|
|
24
|
+
tight: "tracking-tight",
|
|
25
|
+
normal: "tracking-normal",
|
|
26
|
+
wide: "tracking-wide",
|
|
27
|
+
wider: "tracking-wider",
|
|
28
|
+
widest: "tracking-widest"
|
|
29
|
+
}, i = {
|
|
30
|
+
default: "text-foreground",
|
|
31
|
+
muted: "text-foreground/60",
|
|
32
|
+
disabled: "text-foreground/50",
|
|
33
|
+
primary: "text-primary",
|
|
34
|
+
secondary: "text-secondary",
|
|
35
|
+
danger: "text-danger",
|
|
36
|
+
warning: "text-warning",
|
|
37
|
+
success: "text-success",
|
|
38
|
+
none: "text-background"
|
|
39
|
+
}, a = {
|
|
40
|
+
left: "text-left",
|
|
41
|
+
center: "text-center",
|
|
42
|
+
right: "text-right",
|
|
43
|
+
justify: "text-justify"
|
|
44
|
+
}, o = {
|
|
45
|
+
display: {
|
|
46
|
+
size: "3xl",
|
|
47
|
+
weight: "semibold",
|
|
48
|
+
leading: "tight",
|
|
49
|
+
tracking: "tight"
|
|
50
|
+
},
|
|
51
|
+
"heading-xl": {
|
|
52
|
+
size: "2xl",
|
|
53
|
+
weight: "semibold",
|
|
54
|
+
leading: "tight",
|
|
55
|
+
tracking: "tight"
|
|
56
|
+
},
|
|
57
|
+
"heading-lg": {
|
|
58
|
+
size: "xl",
|
|
59
|
+
weight: "semibold",
|
|
60
|
+
leading: "snug",
|
|
61
|
+
tracking: "normal"
|
|
62
|
+
},
|
|
63
|
+
"heading-md": {
|
|
64
|
+
size: "lg",
|
|
65
|
+
weight: "semibold",
|
|
66
|
+
leading: "snug",
|
|
67
|
+
tracking: "normal"
|
|
68
|
+
},
|
|
69
|
+
"heading-sm": {
|
|
70
|
+
size: "md",
|
|
71
|
+
weight: "semibold",
|
|
72
|
+
leading: "snug",
|
|
73
|
+
tracking: "normal"
|
|
74
|
+
},
|
|
75
|
+
"body-lg": {
|
|
76
|
+
size: "lg",
|
|
77
|
+
weight: "normal",
|
|
78
|
+
leading: "relaxed",
|
|
79
|
+
tracking: "normal"
|
|
80
|
+
},
|
|
81
|
+
"body-md": {
|
|
82
|
+
size: "md",
|
|
83
|
+
weight: "normal",
|
|
84
|
+
leading: "normal",
|
|
85
|
+
tracking: "normal"
|
|
86
|
+
},
|
|
87
|
+
"body-sm": {
|
|
88
|
+
size: "sm",
|
|
89
|
+
weight: "normal",
|
|
90
|
+
leading: "normal",
|
|
91
|
+
tracking: "normal"
|
|
92
|
+
},
|
|
93
|
+
label: {
|
|
94
|
+
size: "sm",
|
|
95
|
+
weight: "medium",
|
|
96
|
+
leading: "normal",
|
|
97
|
+
tracking: "normal"
|
|
98
|
+
},
|
|
99
|
+
caption: {
|
|
100
|
+
size: "xs",
|
|
101
|
+
weight: "normal",
|
|
102
|
+
leading: "normal",
|
|
103
|
+
tracking: "normal"
|
|
104
|
+
},
|
|
105
|
+
overline: {
|
|
106
|
+
size: "xs",
|
|
107
|
+
weight: "semibold",
|
|
108
|
+
leading: "normal",
|
|
109
|
+
tracking: "wider"
|
|
110
|
+
}
|
|
111
|
+
}, s = {
|
|
112
|
+
display: "h1",
|
|
113
|
+
"heading-xl": "h1",
|
|
114
|
+
"heading-lg": "h2",
|
|
115
|
+
"heading-md": "h3",
|
|
116
|
+
"heading-sm": "h4",
|
|
117
|
+
"body-lg": "p",
|
|
118
|
+
"body-md": "p",
|
|
119
|
+
"body-sm": "p",
|
|
120
|
+
label: "span",
|
|
121
|
+
caption: "span",
|
|
122
|
+
overline: "span"
|
|
123
|
+
}, c = {
|
|
124
|
+
display: "text-3xl font-semibold leading-tight tracking-tight",
|
|
125
|
+
"heading-xl": "text-2xl font-semibold leading-tight tracking-tight",
|
|
126
|
+
"heading-lg": "text-xl font-semibold leading-snug tracking-normal",
|
|
127
|
+
"heading-md": "text-lg font-semibold leading-snug tracking-normal",
|
|
128
|
+
"heading-sm": "text-base font-semibold leading-snug tracking-normal",
|
|
129
|
+
"body-lg": "text-lg font-normal leading-relaxed tracking-normal",
|
|
130
|
+
"body-md": "text-base font-normal leading-normal tracking-normal",
|
|
131
|
+
"body-sm": "text-sm font-normal leading-normal tracking-normal",
|
|
132
|
+
label: "text-sm font-medium leading-normal tracking-normal",
|
|
133
|
+
caption: "text-xs font-normal leading-normal tracking-normal",
|
|
134
|
+
overline: "text-xs font-semibold leading-normal tracking-wider"
|
|
135
|
+
};
|
|
136
|
+
//#endregion
|
|
137
|
+
export { a as TYPOGRAPHY_ALIGN_CLASS, n as TYPOGRAPHY_LEADING_CLASS, c as TYPOGRAPHY_ROLE_CLASS, s as TYPOGRAPHY_ROLE_DEFAULT_ELEMENT, o as TYPOGRAPHY_ROLE_TOKEN, e as TYPOGRAPHY_SIZE_CLASS, i as TYPOGRAPHY_TONE_CLASS, r as TYPOGRAPHY_TRACKING_CLASS, t as TYPOGRAPHY_WEIGHT_CLASS };
|
package/dist/shared/variant.js
CHANGED
|
@@ -1,138 +1,50 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { cn as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
),
|
|
26
|
-
danger: r(
|
|
27
|
-
e,
|
|
28
|
-
"bg-transparent text-danger hover:bg-danger/20 hover:text-danger"
|
|
29
|
-
),
|
|
30
|
-
warning: r(
|
|
31
|
-
e,
|
|
32
|
-
"bg-transparent text-warning hover:bg-warning/20 hover:text-warning"
|
|
33
|
-
),
|
|
34
|
-
success: r(
|
|
35
|
-
e,
|
|
36
|
-
"bg-transparent text-success hover:bg-success/20 hover:text-success"
|
|
37
|
-
)
|
|
38
|
-
}, t = {
|
|
39
|
-
none: r(
|
|
40
|
-
e,
|
|
41
|
-
o.primary,
|
|
42
|
-
"border-2 border-background hover:border-background/60"
|
|
43
|
-
),
|
|
44
|
-
primary: r(
|
|
45
|
-
e,
|
|
46
|
-
o.primary,
|
|
47
|
-
"border-2 border-primary hover:border-primary/60"
|
|
48
|
-
),
|
|
49
|
-
secondary: r(
|
|
50
|
-
e,
|
|
51
|
-
o.secondary,
|
|
52
|
-
"border-2 border-border hover:border-border/60"
|
|
53
|
-
),
|
|
54
|
-
danger: r(
|
|
55
|
-
e,
|
|
56
|
-
o.danger,
|
|
57
|
-
"border-2 border-danger hover:border-danger/60"
|
|
58
|
-
),
|
|
59
|
-
warning: r(
|
|
60
|
-
e,
|
|
61
|
-
o.warning,
|
|
62
|
-
"border-2 border-warning hover:border-warning/60"
|
|
63
|
-
),
|
|
64
|
-
success: r(
|
|
65
|
-
e,
|
|
66
|
-
o.success,
|
|
67
|
-
"border-2 border-success hover:border-success/60"
|
|
68
|
-
)
|
|
69
|
-
}, c = {
|
|
70
|
-
none: r(
|
|
71
|
-
e,
|
|
72
|
-
"bg-secondary/40 text-foreground border-2 border-transparent hover:bg-secondary/60 hover:border-secondary/40"
|
|
73
|
-
),
|
|
74
|
-
primary: r(
|
|
75
|
-
e,
|
|
76
|
-
"bg-primary/10 text-primary border-2 border-primary/20 hover:bg-primary/20 hover:border-primary/40"
|
|
77
|
-
),
|
|
78
|
-
secondary: r(
|
|
79
|
-
e,
|
|
80
|
-
"bg-secondary/15 text-foreground border-2 border-secondary/30 hover:bg-secondary/25 hover:border-secondary/50"
|
|
81
|
-
),
|
|
82
|
-
danger: r(
|
|
83
|
-
e,
|
|
84
|
-
"bg-danger/10 text-danger border-2 border-danger/20 hover:bg-danger/20 hover:border-danger/40"
|
|
85
|
-
),
|
|
86
|
-
warning: r(
|
|
87
|
-
e,
|
|
88
|
-
"bg-warning/10 text-warning border-2 border-warning/20 hover:bg-warning/20 hover:border-warning/40"
|
|
89
|
-
),
|
|
90
|
-
success: r(
|
|
91
|
-
e,
|
|
92
|
-
"bg-success/10 text-success border-2 border-success/20 hover:bg-success/20 hover:border-success/40"
|
|
93
|
-
)
|
|
94
|
-
}, n = "border-b-2 border-t-0 border-x-0 rounded-none bg-transparent shadow-none", i = {
|
|
95
|
-
none: r(
|
|
96
|
-
e,
|
|
97
|
-
n,
|
|
98
|
-
"border-background text-foreground hover:border-background/80"
|
|
99
|
-
),
|
|
100
|
-
primary: r(
|
|
101
|
-
e,
|
|
102
|
-
n,
|
|
103
|
-
"border-primary text-primary hover:border-primary/80"
|
|
104
|
-
),
|
|
105
|
-
secondary: r(
|
|
106
|
-
e,
|
|
107
|
-
n,
|
|
108
|
-
"border-secondary text-secondary hover:border-secondary/80"
|
|
109
|
-
),
|
|
110
|
-
danger: r(
|
|
111
|
-
e,
|
|
112
|
-
n,
|
|
113
|
-
"border-danger text-danger hover:border-danger/80"
|
|
114
|
-
),
|
|
115
|
-
warning: r(
|
|
116
|
-
e,
|
|
117
|
-
n,
|
|
118
|
-
"border-warning text-warning hover:border-warning/80"
|
|
119
|
-
),
|
|
120
|
-
success: r(
|
|
121
|
-
e,
|
|
122
|
-
n,
|
|
123
|
-
"border-success text-success hover:border-success/80"
|
|
124
|
-
)
|
|
2
|
+
import { cn as e } from "../utils/cn.js";
|
|
3
|
+
//#region src/shared/variant.ts
|
|
4
|
+
var t = "transition-all duration-200 ease-in-out", n = {
|
|
5
|
+
none: e(t, "bg-background text-foreground hover:bg-background/80"),
|
|
6
|
+
primary: e(t, "bg-primary text-foreground hover:bg-primary/80"),
|
|
7
|
+
secondary: e(t, "bg-secondary text-foreground hover:bg-secondary/80"),
|
|
8
|
+
danger: e(t, "bg-danger text-foreground hover:bg-danger/80"),
|
|
9
|
+
warning: e(t, "bg-warning text-foreground hover:bg-warning/80"),
|
|
10
|
+
success: e(t, "bg-success text-foreground hover:bg-success/80")
|
|
11
|
+
}, r = {
|
|
12
|
+
none: e(t, "bg-transparent text-foreground hover:bg-foreground/20 hover:text-foreground"),
|
|
13
|
+
primary: e(t, "bg-transparent text-primary hover:bg-primary/20 hover:text-primary"),
|
|
14
|
+
secondary: e(t, "bg-transparent text-foreground hover:bg-secondary/20 hover:text-foreground"),
|
|
15
|
+
danger: e(t, "bg-transparent text-danger hover:bg-danger/20 hover:text-danger"),
|
|
16
|
+
warning: e(t, "bg-transparent text-warning hover:bg-warning/20 hover:text-warning"),
|
|
17
|
+
success: e(t, "bg-transparent text-success hover:bg-success/20 hover:text-success")
|
|
18
|
+
}, i = {
|
|
19
|
+
none: e(t, r.primary, "border-2 border-background hover:border-background/60"),
|
|
20
|
+
primary: e(t, r.primary, "border-2 border-primary hover:border-primary/60"),
|
|
21
|
+
secondary: e(t, r.secondary, "border-2 border-border hover:border-border/60"),
|
|
22
|
+
danger: e(t, r.danger, "border-2 border-danger hover:border-danger/60"),
|
|
23
|
+
warning: e(t, r.warning, "border-2 border-warning hover:border-warning/60"),
|
|
24
|
+
success: e(t, r.success, "border-2 border-success hover:border-success/60")
|
|
125
25
|
}, a = {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
26
|
+
none: e(t, "bg-secondary/40 text-foreground border-2 border-transparent hover:bg-secondary/60 hover:border-secondary/40"),
|
|
27
|
+
primary: e(t, "bg-primary/10 text-primary border-2 border-primary/20 hover:bg-primary/20 hover:border-primary/40"),
|
|
28
|
+
secondary: e(t, "bg-secondary/15 text-foreground border-2 border-secondary/30 hover:bg-secondary/25 hover:border-secondary/50"),
|
|
29
|
+
danger: e(t, "bg-danger/10 text-danger border-2 border-danger/20 hover:bg-danger/20 hover:border-danger/40"),
|
|
30
|
+
warning: e(t, "bg-warning/10 text-warning border-2 border-warning/20 hover:bg-warning/20 hover:border-warning/40"),
|
|
31
|
+
success: e(t, "bg-success/10 text-success border-2 border-success/20 hover:bg-success/20 hover:border-success/40")
|
|
32
|
+
}, o = "border-b-2 border-t-0 border-x-0 rounded-none bg-transparent shadow-none", s = {
|
|
33
|
+
solid: n,
|
|
34
|
+
ghost: r,
|
|
35
|
+
bordered: i,
|
|
36
|
+
faded: a,
|
|
37
|
+
underlined: {
|
|
38
|
+
none: e(t, o, "border-background text-foreground hover:border-background/80"),
|
|
39
|
+
primary: e(t, o, "border-primary text-primary hover:border-primary/80"),
|
|
40
|
+
secondary: e(t, o, "border-secondary text-secondary hover:border-secondary/80"),
|
|
41
|
+
danger: e(t, o, "border-danger text-danger hover:border-danger/80"),
|
|
42
|
+
warning: e(t, o, "border-warning text-warning hover:border-warning/80"),
|
|
43
|
+
success: e(t, o, "border-success text-success hover:border-success/80")
|
|
44
|
+
}
|
|
131
45
|
};
|
|
132
|
-
function
|
|
133
|
-
|
|
134
|
-
return ((d = a[s]) == null ? void 0 : d[g]) ?? a.bordered.secondary;
|
|
46
|
+
function c(e, t) {
|
|
47
|
+
return s[e]?.[t] ?? s.bordered.secondary;
|
|
135
48
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
};
|
|
49
|
+
//#endregion
|
|
50
|
+
export { c as resolveVariantClass };
|
package/dist/theme/color.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
r as defaultColorConfig
|
|
2
|
+
//#region src/theme/color.ts
|
|
3
|
+
var e = {
|
|
4
|
+
light: {
|
|
5
|
+
background: "#ffffff",
|
|
6
|
+
foreground: "#000000",
|
|
7
|
+
primary: "#2563eb",
|
|
8
|
+
secondary: "#f3f4f6",
|
|
9
|
+
border: "#d5d5d5",
|
|
10
|
+
danger: "#dc2626",
|
|
11
|
+
warning: "#d97706",
|
|
12
|
+
success: "#16a34a",
|
|
13
|
+
scrollbarThumb: "#3b82f6",
|
|
14
|
+
scrollbarTrack: "transparent"
|
|
15
|
+
},
|
|
16
|
+
dark: {
|
|
17
|
+
background: "#111111",
|
|
18
|
+
foreground: "#ffffff",
|
|
19
|
+
primary: "#005bc4",
|
|
20
|
+
secondary: "#262626",
|
|
21
|
+
border: "#2a2a2a",
|
|
22
|
+
danger: "#ef4444",
|
|
23
|
+
warning: "#f59e0b",
|
|
24
|
+
success: "#22c55e",
|
|
25
|
+
scrollbarThumb: "#1e40af",
|
|
26
|
+
scrollbarTrack: "#1f293700"
|
|
27
|
+
}
|
|
30
28
|
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { e as defaultColorConfig };
|