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
|
@@ -23,6 +23,30 @@ export interface CardImageProps extends CardImageConfig {
|
|
|
23
23
|
* the native `<img>` tag (e.g. `next/image`).
|
|
24
24
|
*/
|
|
25
25
|
component?: ElementType;
|
|
26
|
+
/**
|
|
27
|
+
* Additional props forwarded to the image component
|
|
28
|
+
* (e.g. `{ priority: true, sizes: "..." }`).
|
|
29
|
+
* These take precedence over the props the framework passes itself.
|
|
30
|
+
*/
|
|
31
|
+
componentProps?: Record<string, unknown>;
|
|
32
|
+
}
|
|
33
|
+
export interface CardLinkConfig {
|
|
34
|
+
}
|
|
35
|
+
export interface CardLinkProps extends CardLinkConfig {
|
|
36
|
+
/**
|
|
37
|
+
* Custom link component used to render the card as a link instead of the
|
|
38
|
+
* native `<a>` tag (e.g. `next/link`, TanStack Router `Link`).
|
|
39
|
+
*
|
|
40
|
+
* When provided, the card root becomes this component and `componentProps`
|
|
41
|
+
* are forwarded to it.
|
|
42
|
+
*/
|
|
43
|
+
component?: ElementType;
|
|
44
|
+
/**
|
|
45
|
+
* Additional props forwarded to the link component
|
|
46
|
+
* (e.g. `{ href: "/blog/post-1" }`).
|
|
47
|
+
* These take precedence over the props the framework passes itself.
|
|
48
|
+
*/
|
|
49
|
+
componentProps?: Record<string, unknown>;
|
|
26
50
|
}
|
|
27
51
|
/**
|
|
28
52
|
* Configuration options for the Card component.
|
|
@@ -31,7 +55,7 @@ export interface CardProps extends BaseCardProps {
|
|
|
31
55
|
/**
|
|
32
56
|
* Whether the card is clickable.
|
|
33
57
|
* When true, the card becomes interactive with hover and focus states.
|
|
34
|
-
* This is automatically enabled when
|
|
58
|
+
* This is automatically enabled when link or onClick is provided.
|
|
35
59
|
*
|
|
36
60
|
* @default false
|
|
37
61
|
*/
|
|
@@ -44,10 +68,11 @@ export interface CardProps extends BaseCardProps {
|
|
|
44
68
|
*/
|
|
45
69
|
isDisabled?: boolean;
|
|
46
70
|
/**
|
|
47
|
-
*
|
|
48
|
-
*
|
|
71
|
+
* Link configuration for the card.
|
|
72
|
+
* When provided, the card root renders as the given link component
|
|
73
|
+
* (e.g. `next/link`) with `props` forwarded to it.
|
|
49
74
|
*/
|
|
50
|
-
|
|
75
|
+
link?: CardLinkProps;
|
|
51
76
|
/**
|
|
52
77
|
* Heading content rendered above the body.
|
|
53
78
|
* Typically a string or React element.
|
|
@@ -75,14 +100,10 @@ export interface CardProps extends BaseCardProps {
|
|
|
75
100
|
footer?: ReactNode;
|
|
76
101
|
/**
|
|
77
102
|
* Image configuration for the card.
|
|
78
|
-
* Includes src, alt, position, ratio, fit,
|
|
103
|
+
* Includes src, alt, position, ratio, fit, loading, the custom image
|
|
104
|
+
* component, and props forwarded to it.
|
|
79
105
|
*/
|
|
80
106
|
image?: CardImageProps;
|
|
81
|
-
/**
|
|
82
|
-
* Additional props forwarded to `imageComponent`
|
|
83
|
-
* (e.g. `{ priority: true, sizes: "..." }`).
|
|
84
|
-
*/
|
|
85
|
-
imageProps?: Record<string, unknown>;
|
|
86
107
|
/**
|
|
87
108
|
* Card body content, used when `body` is not provided.
|
|
88
109
|
*/
|
|
@@ -96,7 +117,7 @@ export interface CardProps extends BaseCardProps {
|
|
|
96
117
|
* footer regions. Visual tokens (`variant`, `size`, `radius`,
|
|
97
118
|
* `animate`, `isClickable`) resolve through the standard AsheeUI
|
|
98
119
|
* cascade. When `isClickable` is enabled, the card becomes keyboard
|
|
99
|
-
* accessible and adopts link or button semantics based on `
|
|
120
|
+
* accessible and adopts link or button semantics based on `link`.
|
|
100
121
|
*
|
|
101
122
|
* The component automatically handles accessibility attributes including
|
|
102
123
|
* role, tabIndex, aria-disabled, and proper keyboard interaction with
|
|
@@ -109,14 +130,13 @@ export interface CardProps extends BaseCardProps {
|
|
|
109
130
|
* @param props.animate - Press animation. Defaults to true.
|
|
110
131
|
* @param props.isClickable - Interactive behaviour. Defaults to false.
|
|
111
132
|
* @param props.isDisabled - Disabled state. Defaults to false.
|
|
112
|
-
* @param props.
|
|
133
|
+
* @param props.link - Link configuration for the card (component and props).
|
|
113
134
|
* @param props.title - Heading content.
|
|
114
135
|
* @param props.description - Supporting text.
|
|
115
136
|
* @param props.header - Custom header node.
|
|
116
137
|
* @param props.body - Explicit body content.
|
|
117
138
|
* @param props.footer - Footer node.
|
|
118
|
-
* @param props.image - Image configuration object containing src, alt, position, ratio, fit, and
|
|
119
|
-
* @param props.imageProps - Props forwarded to the image component.
|
|
139
|
+
* @param props.image - Image configuration object containing src, alt, position, ratio, fit, loading, component and props.
|
|
120
140
|
* @param props.children - Card body content.
|
|
121
141
|
* @param props.className - Extra CSS classes for the card.
|
|
122
142
|
* @param props.id - HTML id attribute.
|
|
@@ -146,10 +166,10 @@ export interface CardProps extends BaseCardProps {
|
|
|
146
166
|
*
|
|
147
167
|
* @example
|
|
148
168
|
* ```tsx
|
|
149
|
-
* // Clickable card with image
|
|
169
|
+
* // Clickable card with image and a custom link component
|
|
150
170
|
* <Card
|
|
151
171
|
* isClickable
|
|
152
|
-
* href
|
|
172
|
+
* link={{ component: NextLink, props: { href: "/blog/post-1" } }}
|
|
153
173
|
* image={{
|
|
154
174
|
* src: "/images/post-1.jpg",
|
|
155
175
|
* alt: "Blog post cover",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/card/Card.tsx"],"names":[],"mappings":"AAUA,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,cAAc,EAGnB,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AAYf,OAAO,EACL,KAAK,UAAU,EACf,KAAK,eAAe,EAKrB,MAAM,eAAe,CAAC;AAQvB,KAAK,aAAa,GAAG,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,GAC5C,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC;AAE7D;;;GAGG;AACH,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/components/card/Card.tsx"],"names":[],"mappings":"AAUA,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,cAAc,EAGnB,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AAYf,OAAO,EACL,KAAK,UAAU,EACf,KAAK,eAAe,EAKrB,MAAM,eAAe,CAAC;AAQvB,KAAK,aAAa,GAAG,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,GAC5C,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC;AAE7D;;;GAGG;AACH,MAAM,WAAW,cAAe,SAAQ,eAAe;IACrD;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC;IAExB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC1C;AAGD,MAAM,WAAW,cAAc;CAAG;AAElC,MAAM,WAAW,aAAc,SAAQ,cAAc;IACnD;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC;IAExB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC1C;AAED;;GAEG;AACH,MAAM,WAAW,SAAU,SAAQ,aAAa;IAC9C;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC;IAErB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB;;;;OAIG;IACH,KAAK,CAAC,EAAE,cAAc,CAAC;IAEvB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4FG;AACH,eAAO,MAAM,IAAI,sGAuUhB,CAAC"}
|
|
@@ -1,206 +1,116 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
imageProps: l,
|
|
118
|
-
loading: Z
|
|
119
|
-
}
|
|
120
|
-
);
|
|
121
|
-
}, tt = () => {
|
|
122
|
-
if (!(t != null && t.src) || b !== "background") return null;
|
|
123
|
-
const n = t.component || "img";
|
|
124
|
-
let a = { ...o ?? {} };
|
|
125
|
-
if (t != null && t.component) {
|
|
126
|
-
const l = (o == null ? void 0 : o.loading) === "lazy", f = (o == null ? void 0 : o.priority) === !0;
|
|
127
|
-
(l || f) && console.warn(
|
|
128
|
-
`[Card] ${l ? '`loading="lazy"`' : "`priority={true}`"} with custom image component may cause rendering issues. Consider using \`loading="eager"\` and removing \`priority\` for card images.`
|
|
129
|
-
), a = {
|
|
130
|
-
...a,
|
|
131
|
-
loading: "eager",
|
|
132
|
-
...a.priority !== void 0 && { priority: !1 }
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
return /* @__PURE__ */ d("div", { className: "absolute inset-0 z-0 pointer-events-none", children: /* @__PURE__ */ d(
|
|
136
|
-
n,
|
|
137
|
-
{
|
|
138
|
-
src: t.src,
|
|
139
|
-
alt: t == null ? void 0 : t.alt,
|
|
140
|
-
className: "h-full w-full object-cover",
|
|
141
|
-
...a
|
|
142
|
-
}
|
|
143
|
-
) });
|
|
144
|
-
}, _ = E ?? F;
|
|
145
|
-
return /* @__PURE__ */ C(
|
|
146
|
-
"div",
|
|
147
|
-
{
|
|
148
|
-
ref: T,
|
|
149
|
-
id: q,
|
|
150
|
-
tabIndex: c && !s ? 0 : -1,
|
|
151
|
-
role: c ? i ? "link" : "button" : void 0,
|
|
152
|
-
"aria-disabled": s,
|
|
153
|
-
onClick: w,
|
|
154
|
-
onKeyDown: g,
|
|
155
|
-
className: p(
|
|
156
|
-
"relative flex flex-col transition-colors duration-200 text-left",
|
|
157
|
-
P,
|
|
158
|
-
Y,
|
|
159
|
-
c && !s && "cursor-pointer hover:shadow-lg hover:border-primary/40 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 select-none",
|
|
160
|
-
c && !s && Q && "motion-safe:transition-transform motion-safe:duration-100 motion-safe:active:scale-[0.99]",
|
|
161
|
-
s && "opacity-50 pointer-events-none select-none",
|
|
162
|
-
V
|
|
163
|
-
),
|
|
164
|
-
style: H,
|
|
165
|
-
...O,
|
|
166
|
-
children: [
|
|
167
|
-
R("top"),
|
|
168
|
-
tt(),
|
|
169
|
-
/* @__PURE__ */ C(
|
|
170
|
-
"div",
|
|
171
|
-
{
|
|
172
|
-
className: p(
|
|
173
|
-
"flex flex-col flex-1 z-10 w-full min-w-0",
|
|
174
|
-
W,
|
|
175
|
-
S
|
|
176
|
-
),
|
|
177
|
-
children: [
|
|
178
|
-
(I || h || x) && /* @__PURE__ */ C("div", { className: p("flex flex-col z-10", X), children: [
|
|
179
|
-
I,
|
|
180
|
-
h && /* @__PURE__ */ d("h3", { className: "font-semibold leading-tight tracking-tight text-foreground text-lg md:text-xl", children: h }),
|
|
181
|
-
x && /* @__PURE__ */ d("p", { className: "text-sm text-muted-foreground leading-relaxed", children: x })
|
|
182
|
-
] }),
|
|
183
|
-
_ && /* @__PURE__ */ d("div", { className: "flex-1 z-10 text-sm leading-relaxed", children: _ }),
|
|
184
|
-
N && /* @__PURE__ */ d(
|
|
185
|
-
"div",
|
|
186
|
-
{
|
|
187
|
-
className: p(
|
|
188
|
-
"flex items-center justify-between z-10 mt-auto pt-2",
|
|
189
|
-
S
|
|
190
|
-
),
|
|
191
|
-
children: N
|
|
192
|
-
}
|
|
193
|
-
)
|
|
194
|
-
]
|
|
195
|
-
}
|
|
196
|
-
),
|
|
197
|
-
R("bottom")
|
|
198
|
-
]
|
|
199
|
-
}
|
|
200
|
-
);
|
|
201
|
-
}
|
|
202
|
-
);
|
|
203
|
-
ft.displayName = "Card";
|
|
204
|
-
export {
|
|
205
|
-
ft as Card
|
|
206
|
-
};
|
|
2
|
+
"use client";
|
|
3
|
+
import { cn as e } from "../../utils/cn.js";
|
|
4
|
+
import { RADIUS_CLASS as t } from "../../shared/radius.js";
|
|
5
|
+
import { useAsheeConfig as n } from "../../libs/context.js";
|
|
6
|
+
import { resolveAnimate as r, resolveCascade as i, resolveClassKey as a, resolveRadiusKey as o } from "../../utils/resolve-token.js";
|
|
7
|
+
import { Image as s } from "../image/Image.js";
|
|
8
|
+
import { FALLBACK_CARD_CONFIG as c } from "./card-config.js";
|
|
9
|
+
import { CARD_GAP_CLASS as l, CARD_HEADER_GAP_CLASS as u, CARD_PADDING_CLASS as d, CARD_VARIANT_CLASS as f } from "./card-styles.js";
|
|
10
|
+
import { forwardRef as p, useId as m } from "react";
|
|
11
|
+
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
12
|
+
//#region src/components/card/Card.tsx
|
|
13
|
+
var _ = p(({ variant: p, size: _, radius: ee, animate: v, isClickable: y, isDisabled: b = !1, link: x, title: S, description: C, header: w, body: T, footer: E, image: D, className: te, children: ne, onClick: O, id: k, style: A, onKeyDown: j, ...M }, N) => {
|
|
14
|
+
let P = n(), F = P.components?.card, I = m(), L = k ?? I, R = i(_, F?.size, void 0, c.size), z = i(p, F?.variant, P.defaultVariant, c.variant), B = o(ee, F?.radius, P.defaultRadius, c.radius), V = i(D?.position, F?.image.position, void 0, c.image.position), H = !!x, U = x?.component ?? (H ? "a" : "div"), W = y ?? !!(H || O), G = r(v, F?.animate, c.animate), K = a(R, d, c.size), q = a(R, l, c.size), J = a(R, u, c.size), Y = a(B, t, c.radius), X = i(D?.loading, F?.image.loading, void 0, c.image.loading), re = f[z] ?? f.bordered, { onClick: ie, ...ae } = x?.componentProps ?? {}, Z = (e) => {
|
|
15
|
+
if (b) {
|
|
16
|
+
e.preventDefault();
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
O?.(e), ie?.(e);
|
|
20
|
+
}, oe = (e) => {
|
|
21
|
+
j?.(e), !H && W && !b && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), Z(e));
|
|
22
|
+
}, Q = (e) => {
|
|
23
|
+
if (!D?.src || V !== e) return null;
|
|
24
|
+
let t = {
|
|
25
|
+
top: "w-full shrink-0 rounded-b-none",
|
|
26
|
+
bottom: "w-full shrink-0 order-last rounded-t-none",
|
|
27
|
+
background: ""
|
|
28
|
+
}[e], n = { ...D?.componentProps ?? {} };
|
|
29
|
+
if (D?.component) {
|
|
30
|
+
let e = D?.componentProps?.loading === "lazy", t = D?.componentProps?.priority === !0;
|
|
31
|
+
(e || t) && console.warn(`[Card] ${e ? "`loading=\"lazy\"`" : "`priority={true}`"} with custom image component may cause rendering issues. Consider using \`loading="eager"\` and removing \`priority\` for card images.`), n = {
|
|
32
|
+
...n,
|
|
33
|
+
loading: "eager",
|
|
34
|
+
...n.priority !== void 0 && { priority: !1 }
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
return /* @__PURE__ */ h(s, {
|
|
38
|
+
src: D.src,
|
|
39
|
+
alt: D.alt,
|
|
40
|
+
ratio: D?.ratio ?? "video",
|
|
41
|
+
fit: D.fit ?? "cover",
|
|
42
|
+
className: t,
|
|
43
|
+
component: D.component,
|
|
44
|
+
componentProps: n,
|
|
45
|
+
loading: X
|
|
46
|
+
});
|
|
47
|
+
}, se = () => {
|
|
48
|
+
if (!D?.src || V !== "background") return null;
|
|
49
|
+
let e = D.component || "img", t = { ...D?.componentProps ?? {} };
|
|
50
|
+
if (D?.component) {
|
|
51
|
+
let e = D?.componentProps?.loading === "lazy", n = D?.componentProps?.priority === !0;
|
|
52
|
+
(e || n) && console.warn(`[Card] ${e ? "`loading=\"lazy\"`" : "`priority={true}`"} with custom image component may cause rendering issues. Consider using \`loading="eager"\` and removing \`priority\` for card images.`), t = {
|
|
53
|
+
...t,
|
|
54
|
+
loading: "eager",
|
|
55
|
+
...t.priority !== void 0 && { priority: !1 }
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
return /* @__PURE__ */ h("div", {
|
|
59
|
+
className: "absolute inset-0 z-0 pointer-events-none",
|
|
60
|
+
children: /* @__PURE__ */ h(e, {
|
|
61
|
+
src: D.src,
|
|
62
|
+
alt: D?.alt,
|
|
63
|
+
className: "h-full w-full object-cover",
|
|
64
|
+
...t
|
|
65
|
+
})
|
|
66
|
+
});
|
|
67
|
+
}, $ = T ?? ne;
|
|
68
|
+
return /* @__PURE__ */ g(U, {
|
|
69
|
+
ref: N,
|
|
70
|
+
id: L,
|
|
71
|
+
tabIndex: W && !b ? 0 : -1,
|
|
72
|
+
role: W ? H ? "link" : "button" : void 0,
|
|
73
|
+
"aria-disabled": b,
|
|
74
|
+
onClick: Z,
|
|
75
|
+
onKeyDown: oe,
|
|
76
|
+
className: e("relative flex flex-col transition-colors duration-200 text-left", re, Y, W && !b && "cursor-pointer hover:shadow-lg hover:border-primary/40 focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 select-none", W && !b && G && "motion-safe:transition-transform motion-safe:duration-100 motion-safe:active:scale-[0.99]", b && "opacity-50 pointer-events-none select-none", te),
|
|
77
|
+
style: A,
|
|
78
|
+
...M,
|
|
79
|
+
...ae,
|
|
80
|
+
children: [
|
|
81
|
+
Q("top"),
|
|
82
|
+
se(),
|
|
83
|
+
/* @__PURE__ */ g("div", {
|
|
84
|
+
className: e("flex flex-col flex-1 z-10 w-full min-w-0", K, q),
|
|
85
|
+
children: [
|
|
86
|
+
(w || S || C) && /* @__PURE__ */ g("div", {
|
|
87
|
+
className: e("flex flex-col z-10", J),
|
|
88
|
+
children: [
|
|
89
|
+
w,
|
|
90
|
+
S && /* @__PURE__ */ h("h3", {
|
|
91
|
+
className: "font-semibold leading-tight tracking-tight text-foreground text-lg md:text-xl",
|
|
92
|
+
children: S
|
|
93
|
+
}),
|
|
94
|
+
C && /* @__PURE__ */ h("p", {
|
|
95
|
+
className: "text-sm text-muted-foreground leading-relaxed",
|
|
96
|
+
children: C
|
|
97
|
+
})
|
|
98
|
+
]
|
|
99
|
+
}),
|
|
100
|
+
$ && /* @__PURE__ */ h("div", {
|
|
101
|
+
className: "flex-1 z-10 text-sm leading-relaxed",
|
|
102
|
+
children: $
|
|
103
|
+
}),
|
|
104
|
+
E && /* @__PURE__ */ h("div", {
|
|
105
|
+
className: e("flex items-center justify-between z-10 mt-auto pt-2", q),
|
|
106
|
+
children: E
|
|
107
|
+
})
|
|
108
|
+
]
|
|
109
|
+
}),
|
|
110
|
+
Q("bottom")
|
|
111
|
+
]
|
|
112
|
+
});
|
|
113
|
+
});
|
|
114
|
+
_.displayName = "Card";
|
|
115
|
+
//#endregion
|
|
116
|
+
export { _ as Card };
|
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { registerComponentDefaults as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { registerComponentDefaults as e } from "../../libs/registry.js";
|
|
3
|
+
//#region src/components/card/card-config.ts
|
|
4
|
+
var t = {
|
|
5
|
+
size: "md",
|
|
6
|
+
image: {
|
|
7
|
+
position: "top",
|
|
8
|
+
ratio: "video",
|
|
9
|
+
fit: "cover"
|
|
10
|
+
},
|
|
11
|
+
animate: !0
|
|
7
12
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
t as FALLBACK_CARD_CONFIG,
|
|
23
|
-
e as defaultCardConfig
|
|
13
|
+
e("card", t);
|
|
14
|
+
var n = {
|
|
15
|
+
size: "md",
|
|
16
|
+
variant: "bordered",
|
|
17
|
+
radius: "md",
|
|
18
|
+
image: {
|
|
19
|
+
position: "top",
|
|
20
|
+
ratio: "video",
|
|
21
|
+
fit: "cover",
|
|
22
|
+
loading: "lazy"
|
|
23
|
+
},
|
|
24
|
+
animate: !0
|
|
24
25
|
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { n as FALLBACK_CARD_CONFIG, t as defaultCardConfig };
|
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
//#region src/components/card/card-styles.ts
|
|
3
|
+
var e = {
|
|
4
|
+
sm: "p-4",
|
|
5
|
+
md: "p-6",
|
|
6
|
+
lg: "p-8"
|
|
7
|
+
}, t = {
|
|
8
|
+
sm: "gap-3",
|
|
9
|
+
md: "gap-4",
|
|
10
|
+
lg: "gap-5"
|
|
11
|
+
}, n = {
|
|
12
|
+
sm: "gap-1",
|
|
13
|
+
md: "gap-1.5",
|
|
14
|
+
lg: "gap-2"
|
|
6
15
|
}, r = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
sm: "gap-1",
|
|
12
|
-
md: "gap-1.5",
|
|
13
|
-
lg: "gap-2"
|
|
14
|
-
}, d = {
|
|
15
|
-
elevated: "bg-secondary text-foreground shadow-md border border-border/40",
|
|
16
|
-
bordered: "bg-background text-foreground border border-border shadow-xs",
|
|
17
|
-
flat: "bg-secondary/50 text-foreground border-none",
|
|
18
|
-
ghost: "bg-transparent text-foreground border-none shadow-none"
|
|
19
|
-
};
|
|
20
|
-
export {
|
|
21
|
-
r as CARD_GAP_CLASS,
|
|
22
|
-
e as CARD_HEADER_GAP_CLASS,
|
|
23
|
-
o as CARD_PADDING_CLASS,
|
|
24
|
-
d as CARD_VARIANT_CLASS
|
|
16
|
+
elevated: "bg-secondary text-foreground shadow-md border border-border/40",
|
|
17
|
+
bordered: "bg-background text-foreground border border-border shadow-xs",
|
|
18
|
+
flat: "bg-secondary/50 text-foreground border-none",
|
|
19
|
+
ghost: "bg-transparent text-foreground border-none shadow-none"
|
|
25
20
|
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { t as CARD_GAP_CLASS, n as CARD_HEADER_GAP_CLASS, e as CARD_PADDING_CLASS, r as CARD_VARIANT_CLASS };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../../src/components/carousel/Carousel.tsx"],"names":[],"mappings":"AAUA,OAAO,EAEL,KAAK,cAAc,EAEnB,KAAK,SAAS,EAOf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Carousel.d.ts","sourceRoot":"","sources":["../../../src/components/carousel/Carousel.tsx"],"names":[],"mappings":"AAUA,OAAO,EAEL,KAAK,cAAc,EAEnB,KAAK,SAAS,EAOf,MAAM,OAAO,CAAC;AAaf,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,YAAY,EAGlB,MAAM,mBAAmB,CAAC;AAY3B,KAAK,iBAAiB,GAAG,cAAc,GACrC,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD;;;OAGG;IACH,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;IAEvB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAExC;;;OAGG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE;QAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,QAAQ,EAAE,OAAO,CAAC;KACnB,KAAK,SAAS,CAAC;IAEhB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE;QAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;QACpB,QAAQ,EAAE,OAAO,CAAC;KACnB,KAAK,SAAS,CAAC;IAEhB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AACH,eAAO,MAAM,QAAQ,0GAiWpB,CAAC"}
|