asheeui 0.7.0 → 1.1.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/README.md +61 -166
- package/dist/AsheeUIProvider.d.ts.map +1 -1
- package/dist/AsheeUIProvider.js +22 -15
- package/dist/components/accordion/Accordion.d.ts.map +1 -1
- package/dist/components/accordion/Accordion.js +9 -7
- 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/auth-layout/AuthLayout.d.ts +79 -0
- package/dist/components/auth-layout/AuthLayout.d.ts.map +1 -0
- package/dist/components/auth-layout/AuthLayout.js +54 -0
- package/dist/components/auth-layout/auth-layout-config.d.ts +41 -0
- package/dist/components/auth-layout/auth-layout-config.d.ts.map +1 -0
- package/dist/components/auth-layout/auth-layout-config.js +18 -0
- package/dist/components/auth-layout/auth-layout-styles.d.ts +25 -0
- package/dist/components/auth-layout/auth-layout-styles.d.ts.map +1 -0
- package/dist/components/auth-layout/auth-layout-styles.js +11 -0
- package/dist/components/auth-layout/index.d.ts +3 -0
- package/dist/components/auth-layout/index.d.ts.map +1 -0
- package/dist/components/auth-layout/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 +94 -58
- package/dist/components/autocomplete/autocomplete-config.d.ts +1 -1
- package/dist/components/autocomplete/autocomplete-config.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/components/button/Button.js +10 -7
- package/dist/components/{date-picker/DatePicker.d.ts → calendar/Calendar.d.ts} +21 -21
- package/dist/components/calendar/Calendar.d.ts.map +1 -0
- package/dist/components/{date-picker/DatePicker.js → calendar/Calendar.js} +12 -12
- 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/{date-picker → calendar}/TimeSpinner.js +3 -3
- 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/{date-picker/date-picker-config.js → calendar/calendar-config.js} +3 -3
- 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/{date-picker/date-picker-styles.js → calendar/calendar-styles.js} +1 -1
- 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/{date-picker/date-picker.helpers.js → calendar/calendar.helpers.js} +4 -4
- 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 +6 -6
- package/dist/components/card/Card.d.ts.map +1 -1
- package/dist/components/card/Card.js +8 -8
- package/dist/components/carousel/Carousel.d.ts.map +1 -1
- package/dist/components/carousel/Carousel.js +85 -83
- package/dist/components/carousel/carousel-styles.d.ts +1 -20
- package/dist/components/carousel/carousel-styles.d.ts.map +1 -1
- package/dist/components/chip/Chip.js +5 -5
- package/dist/components/clipboard/Clipboard.d.ts +75 -0
- package/dist/components/clipboard/Clipboard.d.ts.map +1 -0
- package/dist/components/clipboard/Clipboard.js +53 -0
- package/dist/components/clipboard/CopyButton.d.ts +64 -0
- package/dist/components/clipboard/CopyButton.d.ts.map +1 -0
- package/dist/components/clipboard/CopyButton.js +44 -0
- package/dist/components/clipboard/clipboard-config.d.ts +42 -0
- package/dist/components/clipboard/clipboard-config.d.ts.map +1 -0
- package/dist/components/clipboard/clipboard-config.js +23 -0
- package/dist/components/clipboard/clipboard-styles.d.ts +11 -0
- package/dist/components/clipboard/clipboard-styles.d.ts.map +1 -0
- package/dist/components/clipboard/clipboard-styles.js +5 -0
- package/dist/components/clipboard/index.d.ts +4 -0
- package/dist/components/clipboard/index.d.ts.map +1 -0
- package/dist/components/clipboard/index.js +4 -0
- package/dist/components/container/Container.d.ts +51 -0
- package/dist/components/container/Container.d.ts.map +1 -0
- package/dist/components/container/Container.js +21 -0
- package/dist/components/container/container-config.d.ts +61 -0
- package/dist/components/container/container-config.d.ts.map +1 -0
- package/dist/components/container/container-config.js +16 -0
- package/dist/components/container/container-styles.d.ts +18 -0
- package/dist/components/container/container-styles.d.ts.map +1 -0
- package/dist/components/container/container-styles.js +12 -0
- package/dist/components/container/index.d.ts +3 -0
- package/dist/components/container/index.d.ts.map +1 -0
- package/dist/components/container/index.js +3 -0
- package/dist/components/cta/CTA.d.ts +81 -0
- package/dist/components/cta/CTA.d.ts.map +1 -0
- package/dist/components/cta/CTA.js +60 -0
- package/dist/components/cta/cta-config.d.ts +69 -0
- package/dist/components/cta/cta-config.d.ts.map +1 -0
- package/dist/components/cta/cta-config.js +22 -0
- package/dist/components/cta/cta-styles.d.ts +8 -0
- package/dist/components/cta/cta-styles.d.ts.map +1 -0
- package/dist/components/cta/cta-styles.js +9 -0
- package/dist/components/cta/index.d.ts +3 -0
- package/dist/components/cta/index.d.ts.map +1 -0
- package/dist/components/cta/index.js +3 -0
- package/dist/components/drawer/Drawer.d.ts +8 -4
- package/dist/components/drawer/Drawer.d.ts.map +1 -1
- package/dist/components/drawer/Drawer.js +54 -38
- package/dist/components/{select/Select.d.ts → dropmenu/Dropmenu.d.ts} +21 -21
- package/dist/components/{select/Select.d.ts.map → dropmenu/Dropmenu.d.ts.map} +1 -1
- 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/{select/select-config.js → dropmenu/dropmenu-config.js} +3 -3
- 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/{select/select-styles.js → dropmenu/dropmenu-styles.js} +1 -1
- 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/empty-state/EmptyState.d.ts +77 -0
- package/dist/components/empty-state/EmptyState.d.ts.map +1 -0
- package/dist/components/empty-state/EmptyState.js +46 -0
- package/dist/components/empty-state/empty-state-config.d.ts +44 -0
- package/dist/components/empty-state/empty-state-config.d.ts.map +1 -0
- package/dist/components/empty-state/empty-state-config.js +16 -0
- package/dist/components/empty-state/empty-state-styles.d.ts +13 -0
- package/dist/components/empty-state/empty-state-styles.d.ts.map +1 -0
- package/dist/components/empty-state/empty-state-styles.js +18 -0
- package/dist/components/empty-state/index.d.ts +3 -0
- package/dist/components/empty-state/index.d.ts.map +1 -0
- package/dist/components/empty-state/index.js +3 -0
- package/dist/components/feature-grid/FeatureGrid.d.ts +107 -0
- package/dist/components/feature-grid/FeatureGrid.d.ts.map +1 -0
- package/dist/components/feature-grid/FeatureGrid.js +94 -0
- package/dist/components/feature-grid/feature-grid-config.d.ts +80 -0
- package/dist/components/feature-grid/feature-grid-config.d.ts.map +1 -0
- package/dist/components/feature-grid/feature-grid-config.js +28 -0
- package/dist/components/feature-grid/feature-grid-styles.d.ts +11 -0
- package/dist/components/feature-grid/feature-grid-styles.d.ts.map +1 -0
- package/dist/components/feature-grid/feature-grid-styles.js +5 -0
- package/dist/components/feature-grid/index.d.ts +3 -0
- package/dist/components/feature-grid/index.d.ts.map +1 -0
- package/dist/components/feature-grid/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 +16 -15
- package/dist/components/footer/Footer.d.ts +73 -0
- package/dist/components/footer/Footer.d.ts.map +1 -0
- package/dist/components/footer/Footer.js +112 -0
- package/dist/components/footer/footer-config.d.ts +40 -0
- package/dist/components/footer/footer-config.d.ts.map +1 -0
- package/dist/components/footer/footer-config.js +18 -0
- package/dist/components/footer/footer-styles.d.ts +22 -0
- package/dist/components/footer/footer-styles.d.ts.map +1 -0
- package/dist/components/footer/footer-styles.js +9 -0
- package/dist/components/footer/index.d.ts +3 -0
- package/dist/components/footer/index.d.ts.map +1 -0
- package/dist/components/footer/index.js +3 -0
- 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/grid/Grid.d.ts +71 -0
- package/dist/components/grid/Grid.d.ts.map +1 -0
- package/dist/components/grid/Grid.js +23 -0
- package/dist/components/grid/grid-config.d.ts +63 -0
- package/dist/components/grid/grid-config.d.ts.map +1 -0
- package/dist/components/grid/grid-config.js +16 -0
- package/dist/components/grid/grid-styles.d.ts +12 -0
- package/dist/components/grid/grid-styles.d.ts.map +1 -0
- package/dist/components/grid/grid-styles.js +31 -0
- package/dist/components/grid/index.d.ts +3 -0
- package/dist/components/grid/index.d.ts.map +1 -0
- package/dist/components/grid/index.js +3 -0
- package/dist/components/hero/Hero.d.ts +90 -0
- package/dist/components/hero/Hero.d.ts.map +1 -0
- package/dist/components/hero/Hero.js +63 -0
- package/dist/components/hero/hero-config.d.ts +71 -0
- package/dist/components/hero/hero-config.d.ts.map +1 -0
- package/dist/components/hero/hero-config.js +22 -0
- package/dist/components/hero/hero-styles.d.ts +19 -0
- package/dist/components/hero/hero-styles.d.ts.map +1 -0
- package/dist/components/hero/hero-styles.js +5 -0
- package/dist/components/hero/index.d.ts +3 -0
- package/dist/components/hero/index.d.ts.map +1 -0
- package/dist/components/hero/index.js +3 -0
- package/dist/components/image/Image.d.ts +4 -5
- package/dist/components/image/Image.d.ts.map +1 -1
- package/dist/components/image/Image.js +5 -5
- package/dist/components/input/Input.js +5 -5
- 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 +1 -1
- package/dist/components/marquee/Marquee.d.ts.map +1 -1
- package/dist/components/marquee/Marquee.js +36 -33
- 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/{select-menu/select-menu-config.js → menu/menu-config.js} +2 -2
- 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} +10 -10
- package/dist/components/menu/use-menu-floating.d.ts.map +1 -0
- package/dist/components/{select-menu/use-select-floating.js → menu/use-menu-floating.js} +2 -2
- package/dist/components/modal/Modal.d.ts +6 -1
- package/dist/components/modal/Modal.d.ts.map +1 -1
- package/dist/components/modal/Modal.js +62 -45
- package/dist/components/multi-select/MultiSelect.d.ts +11 -10
- package/dist/components/multi-select/MultiSelect.d.ts.map +1 -1
- package/dist/components/multi-select/MultiSelect.js +99 -86
- package/dist/components/multi-select/multi-select-config.d.ts +1 -1
- package/dist/components/multi-select/multi-select-config.d.ts.map +1 -1
- package/dist/components/navbar/Navbar.d.ts +87 -0
- package/dist/components/navbar/Navbar.d.ts.map +1 -0
- package/dist/components/navbar/Navbar.js +117 -0
- package/dist/components/navbar/index.d.ts +3 -0
- package/dist/components/navbar/index.d.ts.map +1 -0
- package/dist/components/navbar/index.js +3 -0
- package/dist/components/navbar/navbar-config.d.ts +52 -0
- package/dist/components/navbar/navbar-config.d.ts.map +1 -0
- package/dist/components/navbar/navbar-config.js +20 -0
- package/dist/components/navbar/navbar-styles.d.ts +28 -0
- package/dist/components/navbar/navbar-styles.d.ts.map +1 -0
- package/dist/components/navbar/navbar-styles.js +9 -0
- package/dist/components/page/Page.d.ts +166 -0
- package/dist/components/page/Page.d.ts.map +1 -0
- package/dist/components/page/Page.js +90 -0
- package/dist/components/page/index.d.ts +3 -0
- package/dist/components/page/index.d.ts.map +1 -0
- package/dist/components/page/index.js +3 -0
- package/dist/components/page/page-config.d.ts +57 -0
- package/dist/components/page/page-config.d.ts.map +1 -0
- package/dist/components/page/page-config.js +20 -0
- package/dist/components/page/page-styles.d.ts +25 -0
- package/dist/components/page/page-styles.d.ts.map +1 -0
- package/dist/components/page/page-styles.js +5 -0
- 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/pin-input/PinInput.d.ts +109 -0
- package/dist/components/pin-input/PinInput.d.ts.map +1 -0
- package/dist/components/pin-input/PinInput.js +124 -0
- package/dist/components/pin-input/index.d.ts +3 -0
- package/dist/components/pin-input/index.d.ts.map +1 -0
- package/dist/components/pin-input/index.js +3 -0
- package/dist/components/pin-input/pin-input-config.d.ts +82 -0
- package/dist/components/pin-input/pin-input-config.d.ts.map +1 -0
- package/dist/components/pin-input/pin-input-config.js +23 -0
- package/dist/components/pin-input/pin-input-styles.d.ts +16 -0
- package/dist/components/pin-input/pin-input-styles.d.ts.map +1 -0
- package/dist/components/pin-input/pin-input-styles.js +9 -0
- package/dist/components/pricing-card/PricingCard.d.ts +87 -0
- package/dist/components/pricing-card/PricingCard.d.ts.map +1 -0
- package/dist/components/pricing-card/PricingCard.js +79 -0
- package/dist/components/pricing-card/index.d.ts +3 -0
- package/dist/components/pricing-card/index.d.ts.map +1 -0
- package/dist/components/pricing-card/index.js +3 -0
- package/dist/components/pricing-card/pricing-card-config.d.ts +35 -0
- package/dist/components/pricing-card/pricing-card-config.d.ts.map +1 -0
- package/dist/components/pricing-card/pricing-card-config.js +16 -0
- package/dist/components/pricing-card/pricing-card-styles.d.ts +21 -0
- package/dist/components/pricing-card/pricing-card-styles.d.ts.map +1 -0
- package/dist/components/pricing-card/pricing-card-styles.js +5 -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 +50 -36
- 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 +43 -49
- package/dist/components/radio/index.d.ts +0 -1
- package/dist/components/radio/index.d.ts.map +1 -1
- package/dist/components/resizable-screen/ResizableScreen.d.ts +4 -4
- package/dist/components/scrollbar/index.js +1 -0
- package/dist/components/scrollbar/scrollbar-config.js +13 -0
- package/dist/components/section/Section.d.ts +56 -0
- package/dist/components/section/Section.d.ts.map +1 -0
- package/dist/components/section/Section.js +27 -0
- package/dist/components/section/index.d.ts +3 -0
- package/dist/components/section/index.d.ts.map +1 -0
- package/dist/components/section/index.js +3 -0
- package/dist/components/section/section-config.d.ts +64 -0
- package/dist/components/section/section-config.d.ts.map +1 -0
- package/dist/components/section/section-config.js +20 -0
- package/dist/components/section/section-styles.d.ts +8 -0
- package/dist/components/section/section-styles.d.ts.map +1 -0
- package/dist/components/section/section-styles.js +9 -0
- package/dist/components/section-kit/ActionGroup.d.ts +47 -0
- package/dist/components/section-kit/ActionGroup.d.ts.map +1 -0
- package/dist/components/section-kit/ActionGroup.js +35 -0
- package/dist/components/section-kit/SectionHeading.d.ts +65 -0
- package/dist/components/section-kit/SectionHeading.d.ts.map +1 -0
- package/dist/components/section-kit/SectionHeading.js +34 -0
- package/dist/components/section-kit/index.d.ts +12 -0
- package/dist/components/section-kit/index.d.ts.map +1 -0
- package/dist/components/section-kit/index.js +2 -0
- package/dist/components/sidebar/Sidebar.d.ts.map +1 -1
- package/dist/components/sidebar/Sidebar.js +92 -90
- package/dist/components/sidebar-layout/SidebarLayout.d.ts +67 -0
- package/dist/components/sidebar-layout/SidebarLayout.d.ts.map +1 -0
- package/dist/components/sidebar-layout/SidebarLayout.js +40 -0
- package/dist/components/sidebar-layout/index.d.ts +3 -0
- package/dist/components/sidebar-layout/index.d.ts.map +1 -0
- package/dist/components/sidebar-layout/index.js +3 -0
- package/dist/components/sidebar-layout/sidebar-layout-config.d.ts +49 -0
- package/dist/components/sidebar-layout/sidebar-layout-config.d.ts.map +1 -0
- package/dist/components/sidebar-layout/sidebar-layout-config.js +16 -0
- package/dist/components/sidebar-layout/sidebar-layout-styles.d.ts +21 -0
- package/dist/components/sidebar-layout/sidebar-layout-styles.d.ts.map +1 -0
- package/dist/components/sidebar-layout/sidebar-layout-styles.js +9 -0
- 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/stack/Stack.d.ts +107 -0
- package/dist/components/stack/Stack.d.ts.map +1 -0
- package/dist/components/stack/Stack.js +36 -0
- package/dist/components/stack/index.d.ts +3 -0
- package/dist/components/stack/index.d.ts.map +1 -0
- package/dist/components/stack/index.js +3 -0
- package/dist/components/stack/stack-config.d.ts +68 -0
- package/dist/components/stack/stack-config.d.ts.map +1 -0
- package/dist/components/stack/stack-config.js +20 -0
- package/dist/components/stack/stack-styles.d.ts +10 -0
- package/dist/components/stack/stack-styles.d.ts.map +1 -0
- package/dist/components/stack/stack-styles.js +21 -0
- package/dist/components/switch/Switch.d.ts.map +1 -1
- package/dist/components/switch/Switch.js +7 -5
- package/dist/components/table/Table.js +3 -3
- package/dist/components/tabs/Tabs.js +3 -3
- package/dist/components/testimonials/Testimonials.d.ts +78 -0
- package/dist/components/testimonials/Testimonials.d.ts.map +1 -0
- package/dist/components/testimonials/Testimonials.js +96 -0
- package/dist/components/testimonials/index.d.ts +3 -0
- package/dist/components/testimonials/index.d.ts.map +1 -0
- package/dist/components/testimonials/index.js +3 -0
- package/dist/components/testimonials/testimonials-config.d.ts +44 -0
- package/dist/components/testimonials/testimonials-config.d.ts.map +1 -0
- package/dist/components/testimonials/testimonials-config.js +28 -0
- package/dist/components/testimonials/testimonials-styles.d.ts +11 -0
- package/dist/components/testimonials/testimonials-styles.d.ts.map +1 -0
- package/dist/components/testimonials/testimonials-styles.js +5 -0
- package/dist/components/textarea/Textarea.d.ts +10 -10
- package/dist/components/textarea/Textarea.js +7 -7
- package/dist/components/textarea/textarea-config.d.ts +2 -2
- package/dist/components/toast/ToastItem.d.ts.map +1 -1
- package/dist/components/toast/ToastItem.js +8 -7
- package/dist/components/tooltip/Tooltip.js +5 -5
- 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 +2 -2
- package/dist/config/index.js +1 -0
- 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/CopyIcon.d.ts +3 -0
- package/dist/icons/CopyIcon.d.ts.map +1 -0
- package/dist/icons/CopyIcon.js +24 -0
- package/dist/index.d.ts +33 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +110 -61
- package/dist/libs/index.js +3 -0
- 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-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/puck/adapters.d.ts +41 -0
- package/dist/puck/adapters.d.ts.map +1 -0
- package/dist/puck/adapters.js +30 -0
- package/dist/puck/blocks/content.d.ts +32 -0
- package/dist/puck/blocks/content.d.ts.map +1 -0
- package/dist/puck/blocks/content.js +54 -0
- package/dist/puck/blocks/layout.d.ts +44 -0
- package/dist/puck/blocks/layout.d.ts.map +1 -0
- package/dist/puck/blocks/layout.js +69 -0
- package/dist/puck/blocks/navigation.d.ts +66 -0
- package/dist/puck/blocks/navigation.d.ts.map +1 -0
- package/dist/puck/blocks/navigation.js +122 -0
- package/dist/puck/blocks/sections.d.ts +134 -0
- package/dist/puck/blocks/sections.d.ts.map +1 -0
- package/dist/puck/blocks/sections.js +232 -0
- package/dist/puck/blocks/utility.d.ts +22 -0
- package/dist/puck/blocks/utility.d.ts.map +1 -0
- package/dist/puck/blocks/utility.js +49 -0
- package/dist/puck/config.d.ts +63 -0
- package/dist/puck/config.d.ts.map +1 -0
- package/dist/puck/config.js +79 -0
- package/dist/puck/fields.d.ts +94 -0
- package/dist/puck/fields.d.ts.map +1 -0
- package/dist/puck/fields.js +116 -0
- package/dist/puck/index.d.ts +21 -0
- package/dist/puck/index.d.ts.map +1 -0
- package/dist/puck/index.js +10 -0
- package/dist/scripts/AsheeThemeScript.js +43 -8
- package/dist/shared/action.d.ts +52 -0
- package/dist/shared/action.d.ts.map +1 -0
- package/dist/shared/index.d.ts +3 -0
- package/dist/shared/index.d.ts.map +1 -1
- package/dist/shared/spacing.d.ts +38 -0
- package/dist/shared/spacing.d.ts.map +1 -0
- package/dist/shared/spacing.js +29 -0
- 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/utils/resolve-token.d.ts +32 -7
- package/dist/utils/resolve-token.d.ts.map +1 -1
- package/dist/utils/resolve-token.js +9 -1
- package/dist/utils/stacking.d.ts +2 -2
- package/dist/utils/stacking.d.ts.map +1 -1
- package/package.json +26 -7
- package/dist/components/date-picker/Calendar.d.ts.map +0 -1
- package/dist/components/date-picker/Calendar.js +0 -143
- package/dist/components/date-picker/DatePicker.d.ts.map +0 -1
- package/dist/components/date-picker/TimeSpinner.d.ts.map +0 -1
- package/dist/components/date-picker/date-picker-config.d.ts.map +0 -1
- package/dist/components/date-picker/date-picker-styles.d.ts.map +0 -1
- package/dist/components/date-picker/date-picker.helpers.d.ts.map +0 -1
- 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.js +0 -98
- 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-styles.d.ts.map +0 -1
- package/dist/components/select-menu/SelectMenu.d.ts.map +0 -1
- package/dist/components/select-menu/SelectMenu.js +0 -104
- 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/use-select-floating.d.ts.map +0 -1
- /package/dist/components/{date-picker → calendar}/TimeSpinner.d.ts +0 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { cn as e } from "../../utils/cn.js";
|
|
4
|
+
import { useAsheeConfig as t } from "../../libs/context.js";
|
|
5
|
+
import { resolveConfigCascade as n } from "../../utils/resolve-token.js";
|
|
6
|
+
import { SectionHeading as r } from "../section-kit/SectionHeading.js";
|
|
7
|
+
import { Container as i } from "../container/Container.js";
|
|
8
|
+
import { Section as a } from "../section/Section.js";
|
|
9
|
+
import { ActionGroup as o } from "../section-kit/ActionGroup.js";
|
|
10
|
+
import { FALLBACK_CTA_CONFIG as s } from "./cta-config.js";
|
|
11
|
+
import { CTA_INNER_CLASS as c, CTA_PANEL_CLASS as l } from "./cta-styles.js";
|
|
12
|
+
import { forwardRef as u } from "react";
|
|
13
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
14
|
+
//#region src/components/cta/CTA.tsx
|
|
15
|
+
var p = u(({ eyebrow: u, title: p, description: m, primaryAction: h, secondaryAction: g, align: _, spacing: v, background: y, panel: b, containerSize: x, contained: S, as: C, className: w, children: T, ...E }, D) => {
|
|
16
|
+
let O = t(), k = n({
|
|
17
|
+
align: _,
|
|
18
|
+
spacing: v,
|
|
19
|
+
background: y,
|
|
20
|
+
panel: b,
|
|
21
|
+
containerSize: x,
|
|
22
|
+
contained: S
|
|
23
|
+
}, O.components?.cta, s), A = /* @__PURE__ */ d("div", {
|
|
24
|
+
className: l[k.panel],
|
|
25
|
+
children: /* @__PURE__ */ f("div", {
|
|
26
|
+
className: e(c, k.align === "center" && "items-center text-center"),
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ d(r, {
|
|
29
|
+
eyebrow: u,
|
|
30
|
+
title: p,
|
|
31
|
+
description: m,
|
|
32
|
+
align: k.align,
|
|
33
|
+
size: "lg"
|
|
34
|
+
}),
|
|
35
|
+
/* @__PURE__ */ d(o, {
|
|
36
|
+
primaryAction: h,
|
|
37
|
+
secondaryAction: g,
|
|
38
|
+
align: k.align
|
|
39
|
+
}),
|
|
40
|
+
T
|
|
41
|
+
]
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
return /* @__PURE__ */ d(a, {
|
|
45
|
+
ref: D,
|
|
46
|
+
as: C,
|
|
47
|
+
spacing: k.spacing,
|
|
48
|
+
background: k.background,
|
|
49
|
+
contained: !1,
|
|
50
|
+
className: w,
|
|
51
|
+
...E,
|
|
52
|
+
children: k.contained ? /* @__PURE__ */ d(i, {
|
|
53
|
+
size: k.containerSize,
|
|
54
|
+
children: A
|
|
55
|
+
}) : A
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
p.displayName = "CTA";
|
|
59
|
+
//#endregion
|
|
60
|
+
export { p as CTA };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { Space } from '../../shared';
|
|
2
|
+
import { ContainerSize } from '../container/container-config';
|
|
3
|
+
import { SectionBackground } from '../section/section-config';
|
|
4
|
+
/**
|
|
5
|
+
* Visual treatment of the call to action panel.
|
|
6
|
+
*
|
|
7
|
+
* - `bordered`: a bordered surface on the page background.
|
|
8
|
+
* - `muted`: a subdued surface without a border.
|
|
9
|
+
* - `plain`: no panel, so the actions sit directly on the band.
|
|
10
|
+
*/
|
|
11
|
+
export type CtaPanel = "bordered" | "muted" | "plain";
|
|
12
|
+
/**
|
|
13
|
+
* Theme configuration options for the CTA component.
|
|
14
|
+
*
|
|
15
|
+
* Set under `components.cta` in the AsheeUI config. Values feed the
|
|
16
|
+
* component-level fallback tier of the theme cascade.
|
|
17
|
+
*/
|
|
18
|
+
export interface CtaConfig {
|
|
19
|
+
/**
|
|
20
|
+
* Alignment of the panel content.
|
|
21
|
+
*
|
|
22
|
+
* @default "center"
|
|
23
|
+
*/
|
|
24
|
+
align?: "start" | "center";
|
|
25
|
+
/**
|
|
26
|
+
* Vertical padding of the band.
|
|
27
|
+
*
|
|
28
|
+
* @default "lg"
|
|
29
|
+
*/
|
|
30
|
+
spacing?: Space;
|
|
31
|
+
/**
|
|
32
|
+
* Background treatment of the band.
|
|
33
|
+
*
|
|
34
|
+
* @default "none"
|
|
35
|
+
*/
|
|
36
|
+
background?: SectionBackground;
|
|
37
|
+
/**
|
|
38
|
+
* Panel treatment.
|
|
39
|
+
*
|
|
40
|
+
* @default "bordered"
|
|
41
|
+
*/
|
|
42
|
+
panel?: CtaPanel;
|
|
43
|
+
/**
|
|
44
|
+
* Maximum content width of the band.
|
|
45
|
+
*
|
|
46
|
+
* @default "lg"
|
|
47
|
+
*/
|
|
48
|
+
containerSize?: ContainerSize;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the band wraps its content in a {@link Container}.
|
|
51
|
+
*
|
|
52
|
+
* @default true
|
|
53
|
+
*/
|
|
54
|
+
contained?: boolean;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Default config values registered for the CTA component.
|
|
58
|
+
*/
|
|
59
|
+
export declare const defaultCtaConfig: CtaConfig;
|
|
60
|
+
declare module "../../libs/registry" {
|
|
61
|
+
interface ComponentTypeConfigRegistry {
|
|
62
|
+
cta: CtaConfig;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Hard fallback values used when no config tier provides a value.
|
|
67
|
+
*/
|
|
68
|
+
export declare const FALLBACK_CTA_CONFIG: Required<CtaConfig>;
|
|
69
|
+
//# sourceMappingURL=cta-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cta-config.d.ts","sourceRoot":"","sources":["../../../src/components/cta/cta-config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEnE;;;;;;GAMG;AACH,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG,OAAO,GAAG,OAAO,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,WAAW,SAAS;IACxB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAE3B;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC;IAEhB;;;;OAIG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAE/B;;;;OAIG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC;IAEjB;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,SAO9B,CAAC;AAEF,OAAO,QAAQ,qBAAqB,CAAC;IACnC,UAAU,2BAA2B;QACnC,GAAG,EAAE,SAAS,CAAC;KAChB;CACF;AAID;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,QAAQ,CAAC,SAAS,CAOnD,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { registerComponentDefaults as e } from "../../libs/registry.js";
|
|
3
|
+
//#region src/components/cta/cta-config.ts
|
|
4
|
+
var t = {
|
|
5
|
+
align: "center",
|
|
6
|
+
spacing: "lg",
|
|
7
|
+
background: "none",
|
|
8
|
+
panel: "bordered",
|
|
9
|
+
containerSize: "lg",
|
|
10
|
+
contained: !0
|
|
11
|
+
};
|
|
12
|
+
e("cta", t);
|
|
13
|
+
var n = {
|
|
14
|
+
align: "center",
|
|
15
|
+
spacing: "lg",
|
|
16
|
+
background: "none",
|
|
17
|
+
panel: "bordered",
|
|
18
|
+
containerSize: "lg",
|
|
19
|
+
contained: !0
|
|
20
|
+
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { n as FALLBACK_CTA_CONFIG, t as defaultCtaConfig };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CtaPanel } from './cta-config';
|
|
2
|
+
/** Panel treatment classes. */
|
|
3
|
+
export declare const CTA_PANEL_CLASS: Record<CtaPanel, string>;
|
|
4
|
+
/** Inner arrangement of the panel. */
|
|
5
|
+
export declare const CTA_INNER_CLASS = "flex flex-col gap-6";
|
|
6
|
+
/** Centred variant of the inner arrangement. */
|
|
7
|
+
export declare const CTA_CENTERED_CLASS = "items-center text-center";
|
|
8
|
+
//# sourceMappingURL=cta-styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cta-styles.d.ts","sourceRoot":"","sources":["../../../src/components/cta/cta-styles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAE7C,+BAA+B;AAC/B,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAIpD,CAAC;AAEF,sCAAsC;AACtC,eAAO,MAAM,eAAe,wBAAwB,CAAC;AAErD,gDAAgD;AAChD,eAAO,MAAM,kBAAkB,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region src/components/cta/cta-styles.ts
|
|
3
|
+
var e = {
|
|
4
|
+
bordered: "rounded-md border border-border bg-background p-8 md:p-12",
|
|
5
|
+
muted: "rounded-md bg-secondary/50 p-8 md:p-12",
|
|
6
|
+
plain: ""
|
|
7
|
+
}, t = "flex flex-col gap-6", n = "items-center text-center";
|
|
8
|
+
//#endregion
|
|
9
|
+
export { n as CTA_CENTERED_CLASS, t as CTA_INNER_CLASS, e as CTA_PANEL_CLASS };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/cta/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC"}
|
|
@@ -55,9 +55,13 @@ export interface DrawerProps extends BaseDrawerProps {
|
|
|
55
55
|
* the standard AsheeUI cascade: prop, component config, global theme
|
|
56
56
|
* defaults, and the built-in fallback.
|
|
57
57
|
*
|
|
58
|
-
* The
|
|
59
|
-
*
|
|
60
|
-
*
|
|
58
|
+
* The drawer renders in a portal with dialog semantics and locks body scroll
|
|
59
|
+
* while it is open. Focus moves into the drawer, cannot leave it, and returns
|
|
60
|
+
* to the element that was focused before it opened. The dialog element is the
|
|
61
|
+
* container that receives the consumer's attributes, so a consumer names the
|
|
62
|
+
* drawer with the standard `aria-label` or `aria-labelledby` attribute.
|
|
63
|
+
* The component manages its own animation states to prevent transition
|
|
64
|
+
* flashes.
|
|
61
65
|
*
|
|
62
66
|
* @param props - Drawer configuration options and HTML div props.
|
|
63
67
|
* @param props.isOpen - Whether the drawer is open.
|
|
@@ -108,7 +112,7 @@ export interface DrawerProps extends BaseDrawerProps {
|
|
|
108
112
|
* onClose={onClose}
|
|
109
113
|
* placement="bottom"
|
|
110
114
|
* size="full"
|
|
111
|
-
* overlay={{ className: "bg-
|
|
115
|
+
* overlay={{ className: "bg-background/80" }}
|
|
112
116
|
* >
|
|
113
117
|
* <div className="p-6 max-h-[80vh] overflow-y-auto">
|
|
114
118
|
* {content}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/Drawer.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/Drawer.tsx"],"names":[],"mappings":"AAUA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AAOf,OAAO,EACL,KAAK,YAAY,EAIlB,MAAM,iBAAiB,CAAC;AASzB,KAAK,eAAe,GAAG,YAAY,GACjC,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,SAAS,CAAC,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,eAAe;IAClD;;;OAGG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;OAEG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAE7B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4EG;AACH,eAAO,MAAM,MAAM,wGA4NlB,CAAC"}
|
|
@@ -4,52 +4,68 @@ import { cn as e } from "../../utils/cn.js";
|
|
|
4
4
|
import { ASHEE_GLOBAL_LAYER as t } from "../../utils/stacking.js";
|
|
5
5
|
import { useAsheeConfig as n } from "../../libs/context.js";
|
|
6
6
|
import { resolveCascade as r, resolveClassKey as i } from "../../utils/resolve-token.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import { useBodyScrollLock as a } from "../../libs/use-body-scroll-lock.js";
|
|
8
|
+
import { useDialogOverlay as o } from "../../libs/use-dialog-overlay.js";
|
|
9
|
+
import { FALLBACK_DRAWER_CONFIG as s } from "./drawer-config.js";
|
|
10
|
+
import { DRAWER_ANIMATION_STATE as c, DRAWER_BORDER_PLACEMENT_CLASS as l, DRAWER_CONTAINER_PLACEMENT_CLASS as u, DRAWER_HEIGHT_CLASS as d, DRAWER_WIDTH_CLASS as f } from "./drawer-styles.js";
|
|
11
|
+
import { forwardRef as p, useCallback as m, useEffect as h, useRef as g, useState as _ } from "react";
|
|
12
|
+
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
13
|
+
import { FloatingFocusManager as ee, FloatingPortal as b } from "@floating-ui/react";
|
|
11
14
|
//#region src/components/drawer/Drawer.tsx
|
|
12
|
-
var
|
|
13
|
-
let
|
|
14
|
-
|
|
15
|
-
if (
|
|
16
|
-
|
|
15
|
+
var x = p(({ isOpen: p, onClose: x, placement: S, size: te, animated: ne, closeOnOverlayClick: C, closeOnEsc: w, overlay: T, content: E, className: D, children: O, style: k, ...A }, j) => {
|
|
16
|
+
let M = n().components?.drawer, [N, P] = _(p ? "open" : "unmounted");
|
|
17
|
+
h(() => {
|
|
18
|
+
if (p) {
|
|
19
|
+
P("opening");
|
|
17
20
|
let e = requestAnimationFrame(() => {
|
|
18
|
-
|
|
21
|
+
P("open");
|
|
19
22
|
});
|
|
20
23
|
return () => cancelAnimationFrame(e);
|
|
21
24
|
}
|
|
22
|
-
if (
|
|
23
|
-
|
|
25
|
+
if (N !== "unmounted") {
|
|
26
|
+
P("closing");
|
|
24
27
|
let e = setTimeout(() => {
|
|
25
|
-
|
|
28
|
+
P("unmounted");
|
|
26
29
|
}, 250);
|
|
27
30
|
return () => clearTimeout(e);
|
|
28
31
|
}
|
|
29
|
-
}, [
|
|
30
|
-
let
|
|
31
|
-
|
|
32
|
-
}, [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
32
|
+
}, [p]);
|
|
33
|
+
let { context: F, setDialogRef: I } = o(p), L = g(null), R = m((e) => {
|
|
34
|
+
L.current = e, I(e), typeof j == "function" ? j(e) : j && (j.current = e);
|
|
35
|
+
}, [j, I]);
|
|
36
|
+
a(p);
|
|
37
|
+
let z = r(te, M?.size, void 0, s.size), B = r(S, M?.placement, void 0, s.placement), V = r(C, M?.closeOnOverlayClick, void 0, s.closeOnOverlayClick), H = r(w, M?.closeOnEsc, void 0, s.closeOnEsc), U = r(ne, M?.animated, void 0, s.animated), W = T?.className ?? "bg-background/80 backdrop-blur-md", G = E?.className ?? "bg-secondary", K = B === "left" || B === "right", q = K ? i(z, f, s.size) : "w-full", J = K ? "h-full" : i(z, d, s.size), Y = u[B] ?? u.right, X = l[B] ?? l.right, Z = c[B], Q = N === "open" || N === "opening", re = U ? Q ? Z.open : Z.closed : "", ie = U ? Q ? "drawer-backdrop-in" : "drawer-backdrop-out" : "", $ = m((e) => {
|
|
38
|
+
H && e.key === "Escape" && x && x();
|
|
39
|
+
}, [H, x]);
|
|
40
|
+
return h(() => {
|
|
41
|
+
if (N !== "unmounted") return window.addEventListener("keydown", $), () => window.removeEventListener("keydown", $);
|
|
42
|
+
}, [N, $]), N === "unmounted" ? null : /* @__PURE__ */ v(b, { children: /* @__PURE__ */ v(ee, {
|
|
43
|
+
context: F,
|
|
44
|
+
modal: !0,
|
|
45
|
+
initialFocus: L,
|
|
46
|
+
returnFocus: !0,
|
|
47
|
+
closeOnFocusOut: !1,
|
|
48
|
+
children: /* @__PURE__ */ y("div", {
|
|
49
|
+
ref: R,
|
|
50
|
+
role: "dialog",
|
|
51
|
+
"aria-modal": "true",
|
|
52
|
+
tabIndex: -1,
|
|
53
|
+
className: e("fixed inset-0 flex w-full h-full outline-none", Y, D),
|
|
54
|
+
style: { zIndex: t.overlay },
|
|
55
|
+
...A,
|
|
56
|
+
children: [/* @__PURE__ */ v("div", {
|
|
57
|
+
"data-ashee-backdrop": "",
|
|
58
|
+
"aria-hidden": "true",
|
|
59
|
+
onClick: V ? x : void 0,
|
|
60
|
+
className: e("absolute inset-0", W, ie)
|
|
61
|
+
}), /* @__PURE__ */ v("div", {
|
|
62
|
+
style: k,
|
|
63
|
+
className: e("relative z-10 flex flex-col text-foreground shadow-2xl border-border", X, q, J, G, re),
|
|
64
|
+
children: O
|
|
65
|
+
})]
|
|
66
|
+
})
|
|
67
|
+
}) });
|
|
52
68
|
});
|
|
53
|
-
|
|
69
|
+
x.displayName = "Drawer";
|
|
54
70
|
//#endregion
|
|
55
|
-
export {
|
|
71
|
+
export { x as Drawer };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { InputProps } from '../input/Input';
|
|
3
|
-
import { MenuProps } from '../
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { MenuProps } from '../menu/Menu';
|
|
4
|
+
import { MenuOption } from '../menu/menu-config';
|
|
5
|
+
import { DropmenuConfig } from './dropmenu-config';
|
|
6
6
|
/**
|
|
7
|
-
* Field-related props that
|
|
7
|
+
* Field-related props that Dropmenu inherits from Input.
|
|
8
8
|
* Picked to avoid conflicts with Button-specific props.
|
|
9
9
|
*/
|
|
10
10
|
type SelectFieldProps = Pick<InputProps, "label" | "description" | "message" | "required" | "isLoading" | "status" | "labelAlign" | "className" | "id" | "style">;
|
|
11
11
|
/**
|
|
12
|
-
* Configuration options for the
|
|
13
|
-
* Extends field props from Input, and
|
|
12
|
+
* Configuration options for the Dropmenu component.
|
|
13
|
+
* Extends field props from Input, and DropmenuConfig for
|
|
14
14
|
* component-specific options. Uses Button for trigger styling.
|
|
15
15
|
*/
|
|
16
|
-
export interface
|
|
16
|
+
export interface DropmenuProps extends SelectFieldProps, Omit<DropmenuConfig, "menu"> {
|
|
17
17
|
/**
|
|
18
18
|
* Available options to select from.
|
|
19
19
|
* Each option must have a label and a unique value.
|
|
20
20
|
*/
|
|
21
|
-
options:
|
|
21
|
+
options: MenuOption[];
|
|
22
22
|
/**
|
|
23
23
|
* Controlled selected value.
|
|
24
24
|
*/
|
|
@@ -63,7 +63,7 @@ export interface SelectProps extends SelectFieldProps, Omit<SelectConfig, "menu"
|
|
|
63
63
|
/**
|
|
64
64
|
* Placeholder text shown when no value is selected.
|
|
65
65
|
*
|
|
66
|
-
* @default "
|
|
66
|
+
* @default "Dropmenu..."
|
|
67
67
|
*/
|
|
68
68
|
placeholder?: string;
|
|
69
69
|
/**
|
|
@@ -95,7 +95,7 @@ export interface SelectProps extends SelectFieldProps, Omit<SelectConfig, "menu"
|
|
|
95
95
|
/**
|
|
96
96
|
* A dropdown selector with search, label, validation, and configurable styles.
|
|
97
97
|
*
|
|
98
|
-
*
|
|
98
|
+
* Dropmenu renders a dropdown that allows selecting a single option from a list.
|
|
99
99
|
* It supports search filtering, controlled and uncontrolled selection state,
|
|
100
100
|
* validation states, custom menu and trigger styles, and start/end content
|
|
101
101
|
* slots. Visual tokens resolve through the standard AsheeUI cascade system.
|
|
@@ -108,10 +108,10 @@ export interface SelectProps extends SelectFieldProps, Omit<SelectConfig, "menu"
|
|
|
108
108
|
* By default, the dropdown menu uses Floating UI's FloatingPortal to render
|
|
109
109
|
* at the document body level. This ensures the menu escapes CSS containment,
|
|
110
110
|
* overflow clipping, and stacking context issues. The portal can be disabled
|
|
111
|
-
* via the `menu.portal` prop or `components.
|
|
111
|
+
* via the `menu.portal` prop or `components.dropmenu.menu.portal` in the config
|
|
112
112
|
* if the menu needs to stay within a specific parent container.
|
|
113
113
|
*
|
|
114
|
-
* @param props -
|
|
114
|
+
* @param props - Dropmenu configuration options.
|
|
115
115
|
* @param props.options - Available options to select from.
|
|
116
116
|
* @param props.value - Controlled selected value.
|
|
117
117
|
* @param props.onChange - Native change event handler.
|
|
@@ -127,7 +127,7 @@ export interface SelectProps extends SelectFieldProps, Omit<SelectConfig, "menu"
|
|
|
127
127
|
* @param props.searchInputName - Name attribute for the search input. Defaults to "select-search".
|
|
128
128
|
* @param props.initialValue - Initial value for uncontrolled usage.
|
|
129
129
|
* @param props.belowList - Content below the options list.
|
|
130
|
-
* @param props.placeholder - Placeholder text. Defaults to "
|
|
130
|
+
* @param props.placeholder - Placeholder text. Defaults to "Dropmenu...".
|
|
131
131
|
* @param props.size - Size of the trigger. Defaults to "md".
|
|
132
132
|
* @param props.radius - Corner rounding. Defaults to "md".
|
|
133
133
|
* @param props.variant - Visual style variant. Defaults to "bordered".
|
|
@@ -143,7 +143,7 @@ export interface SelectProps extends SelectFieldProps, Omit<SelectConfig, "menu"
|
|
|
143
143
|
*
|
|
144
144
|
* @example
|
|
145
145
|
* ```tsx
|
|
146
|
-
* import {
|
|
146
|
+
* import { Dropmenu } from "asheeui";
|
|
147
147
|
* import { useState } from "react";
|
|
148
148
|
*
|
|
149
149
|
* export function Example() {
|
|
@@ -156,11 +156,11 @@ export interface SelectProps extends SelectFieldProps, Omit<SelectConfig, "menu"
|
|
|
156
156
|
* ];
|
|
157
157
|
*
|
|
158
158
|
* return (
|
|
159
|
-
* <
|
|
159
|
+
* <Dropmenu
|
|
160
160
|
* options={options}
|
|
161
161
|
* value={value}
|
|
162
162
|
* onValueChange={setValue}
|
|
163
|
-
* label="
|
|
163
|
+
* label="Dropmenu Framework"
|
|
164
164
|
* placeholder="Choose a framework..."
|
|
165
165
|
* />
|
|
166
166
|
* );
|
|
@@ -170,7 +170,7 @@ export interface SelectProps extends SelectFieldProps, Omit<SelectConfig, "menu"
|
|
|
170
170
|
* @example
|
|
171
171
|
* ```tsx
|
|
172
172
|
* // With search, validation, and menu configuration
|
|
173
|
-
* <
|
|
173
|
+
* <Dropmenu
|
|
174
174
|
* options={fruits}
|
|
175
175
|
* label="Favorite Fruit"
|
|
176
176
|
* isSearch
|
|
@@ -187,12 +187,12 @@ export interface SelectProps extends SelectFieldProps, Omit<SelectConfig, "menu"
|
|
|
187
187
|
* />
|
|
188
188
|
* ```
|
|
189
189
|
*
|
|
190
|
-
* @see
|
|
190
|
+
* @see DropmenuConfig - The configuration type for component defaults.
|
|
191
191
|
* @see Input - The input component that provides field capabilities.
|
|
192
192
|
* @see Button - The button component used as the trigger.
|
|
193
|
-
* @see
|
|
193
|
+
* @see Menu - The dropdown menu component.
|
|
194
194
|
* @see FieldShell - The wrapper component for label and validation.
|
|
195
195
|
*/
|
|
196
|
-
export declare const
|
|
196
|
+
export declare const Dropmenu: import('react').ForwardRefExoticComponent<DropmenuProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
197
197
|
export {};
|
|
198
|
-
//# sourceMappingURL=
|
|
198
|
+
//# sourceMappingURL=Dropmenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"Dropmenu.d.ts","sourceRoot":"","sources":["../../../src/components/dropmenu/Dropmenu.tsx"],"names":[],"mappings":"AAWA,OAAO,EAEL,KAAK,SAAS,EAKf,MAAM,OAAO,CAAC;AASf,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,KAAK,cAAc,EAA0B,MAAM,mBAAmB,CAAC;AAKhF;;;GAGG;AACH,KAAK,gBAAgB,GAAG,IAAI,CAC1B,UAAU,EACR,OAAO,GACP,aAAa,GACb,SAAS,GACT,UAAU,GACV,WAAW,GACX,QAAQ,GACR,YAAY,GACZ,WAAW,GACX,IAAI,GACJ,OAAO,CACV,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,aACf,SAAQ,gBAAgB,EACtB,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC;IAC9B;;;OAGG;IACH,OAAO,EAAE,UAAU,EAAE,CAAC;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAExB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;IAE7D;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;IAEjD;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAE/B;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IAEzB;;;OAGG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IAEvB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoGG;AACH,eAAO,MAAM,QAAQ,6GAgRpB,CAAC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { cn as e } from "../../utils/cn.js";
|
|
4
|
+
import { useAsheeConfig as t } from "../../libs/context.js";
|
|
5
|
+
import { ChevronDownIcon as n } from "../../icons/ChevronDownIcon.js";
|
|
6
|
+
import { resolveCascade as r, resolveRadiusKey as i } from "../../utils/resolve-token.js";
|
|
7
|
+
import { FieldShell as a } from "../field/FieldShell.js";
|
|
8
|
+
import { Button as ee } from "../button/Button.js";
|
|
9
|
+
import { Menu as te } from "../menu/Menu.js";
|
|
10
|
+
import { useMenuFloating as o } from "../menu/use-menu-floating.js";
|
|
11
|
+
import { FALLBACK_SELECT_CONFIG as s } from "./dropmenu-config.js";
|
|
12
|
+
import { SELECT_STATUS_BORDER_CLASS as c } from "./dropmenu-styles.js";
|
|
13
|
+
import { forwardRef as l, useCallback as u, useId as ne, useMemo as d, useState as f } from "react";
|
|
14
|
+
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
15
|
+
//#region src/components/dropmenu/Dropmenu.tsx
|
|
16
|
+
var g = l(({ options: l = [], value: g, onChange: _, onValueChange: v, size: y, radius: b, variant: x, color: re, status: S, label: ie, labelAlign: ae, description: C, message: w, required: oe, isLoading: T, disabled: E, isSearch: D = !1, searchPlaceholder: O = "Search options...", searchInputName: k = "select-search", initialValue: A, belowList: j, placeholder: M = "Dropmenu...", className: N, id: P, name: F, menu: I, style: L, startContent: R, endContent: z }, B) => {
|
|
17
|
+
let V = t(), H = V.components?.dropmenu, U = ne(), W = P ?? U, [G, K] = f(!1), [q, J] = f(""), se = r(y, H?.size, void 0, s.size), ce = r(x, H?.variant, V.defaultVariant, s.variant), le = r(re, H?.color, V.defaultColor, s.color), ue = i(b, H?.radius, V.defaultRadius, s.radius), Y = S ?? s.status, de = r(ae, H?.labelAlign, void 0, s.labelAlign), fe = Y === "default" ? "" : c[Y], X = d(() => l.find((e) => e.value === g), [l, g]), { refs: Z, context: pe, floatingStyles: me, isPositioned: he, getReferenceProps: ge, getFloatingProps: _e } = o({
|
|
18
|
+
isOpen: G,
|
|
19
|
+
onOpenChange: K,
|
|
20
|
+
disabled: E
|
|
21
|
+
}), ve = u((e) => {
|
|
22
|
+
v?.(e.value), _ && _({ target: {
|
|
23
|
+
value: e.value,
|
|
24
|
+
name: F ?? ""
|
|
25
|
+
} }), K(!1), J("");
|
|
26
|
+
}, [
|
|
27
|
+
F,
|
|
28
|
+
_,
|
|
29
|
+
v
|
|
30
|
+
]), ye = d(() => X?.label ? X.label : A === void 0 ? M : String(A), [
|
|
31
|
+
X,
|
|
32
|
+
A,
|
|
33
|
+
M
|
|
34
|
+
]), be = d(() => g == null ? [] : [g], [g]), Q = C ? `${W}-description` : void 0, $ = w ? `${W}-message` : void 0, xe = [Q, $].filter(Boolean).join(" ") || void 0, Se = ge({ onKeyDown: u((e) => {
|
|
35
|
+
E || (e.key === "ArrowDown" || e.key === "ArrowUp") && (e.preventDefault(), K(!0));
|
|
36
|
+
}, [E]) });
|
|
37
|
+
return /* @__PURE__ */ m(a, {
|
|
38
|
+
id: W,
|
|
39
|
+
label: ie,
|
|
40
|
+
labelAlign: de,
|
|
41
|
+
description: C,
|
|
42
|
+
descriptionId: Q,
|
|
43
|
+
message: w,
|
|
44
|
+
messageId: $,
|
|
45
|
+
status: Y,
|
|
46
|
+
required: oe,
|
|
47
|
+
isLoading: T,
|
|
48
|
+
children: /* @__PURE__ */ h("div", {
|
|
49
|
+
className: "w-full relative inline-block",
|
|
50
|
+
children: [/* @__PURE__ */ m(ee, {
|
|
51
|
+
ref: (e) => {
|
|
52
|
+
Z.setReference(e), typeof B == "function" ? B(e) : B && (B.current = e);
|
|
53
|
+
},
|
|
54
|
+
id: W,
|
|
55
|
+
type: "button",
|
|
56
|
+
variant: ce,
|
|
57
|
+
color: le,
|
|
58
|
+
animate: !1,
|
|
59
|
+
size: se,
|
|
60
|
+
radius: ue,
|
|
61
|
+
isDisabled: E,
|
|
62
|
+
isLoading: T,
|
|
63
|
+
fullWidth: !0,
|
|
64
|
+
"aria-expanded": G,
|
|
65
|
+
"aria-haspopup": "listbox",
|
|
66
|
+
"aria-invalid": Y === "error",
|
|
67
|
+
"aria-describedby": xe,
|
|
68
|
+
className: e("font-normal text-left justify-between", fe, N),
|
|
69
|
+
style: L,
|
|
70
|
+
startContent: R,
|
|
71
|
+
endContent: /* @__PURE__ */ h(p, { children: [z, /* @__PURE__ */ m(n, { className: e("shrink-0 text-foreground/70 transition-transform duration-200", G && "rotate-180") })] }),
|
|
72
|
+
...Se,
|
|
73
|
+
children: /* @__PURE__ */ m("span", {
|
|
74
|
+
className: e("truncate", X || A ? "text-foreground" : "text-foreground/70"),
|
|
75
|
+
children: ye
|
|
76
|
+
})
|
|
77
|
+
}), /* @__PURE__ */ m(te, {
|
|
78
|
+
isOpen: G,
|
|
79
|
+
context: pe,
|
|
80
|
+
floatingStyles: me,
|
|
81
|
+
getFloatingProps: _e,
|
|
82
|
+
setFloatingRef: Z.setFloating,
|
|
83
|
+
isPositioned: he,
|
|
84
|
+
returnFocus: !0,
|
|
85
|
+
options: l,
|
|
86
|
+
selectedValues: be,
|
|
87
|
+
onOptionSelect: ve,
|
|
88
|
+
isSearch: D,
|
|
89
|
+
searchPlaceholder: O,
|
|
90
|
+
searchInputName: k,
|
|
91
|
+
searchQuery: q,
|
|
92
|
+
onSearchChange: J,
|
|
93
|
+
belowList: j,
|
|
94
|
+
menuProps: I,
|
|
95
|
+
menuConfig: H?.menu
|
|
96
|
+
})]
|
|
97
|
+
})
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
g.displayName = "Dropmenu";
|
|
101
|
+
//#endregion
|
|
102
|
+
export { g as Dropmenu };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { InputConfig } from '../input';
|
|
2
|
-
import { MenuConfig } from '../
|
|
2
|
+
import { MenuConfig } from '../menu';
|
|
3
3
|
/**
|
|
4
|
-
* Theme configuration options for the
|
|
4
|
+
* Theme configuration options for the Dropmenu component.
|
|
5
5
|
*
|
|
6
6
|
* Inherits the shared field config (label handling) and adds trigger
|
|
7
|
-
* and dropdown-menu overrides. Set under `components.
|
|
7
|
+
* and dropdown-menu overrides. Set under `components.dropmenu` in
|
|
8
8
|
* the AsheeUI config.
|
|
9
9
|
*/
|
|
10
|
-
export interface
|
|
10
|
+
export interface DropmenuConfig extends InputConfig {
|
|
11
11
|
/**
|
|
12
12
|
* Configuration for the dropdown menu.
|
|
13
13
|
* Controls the menu's visual appearance and behavior.
|
|
@@ -15,9 +15,9 @@ export interface SelectConfig extends InputConfig {
|
|
|
15
15
|
menu?: MenuConfig;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* Default config values registered for the
|
|
18
|
+
* Default config values registered for the Dropmenu component.
|
|
19
19
|
*/
|
|
20
|
-
export declare const
|
|
20
|
+
export declare const defaultDropmenuConfig: DropmenuConfig;
|
|
21
21
|
/**
|
|
22
22
|
* Hard fallback values used when no config tier provides a value.
|
|
23
23
|
* These values are used when instance props, component config,
|
|
@@ -26,7 +26,7 @@ export declare const defaultSelectConfig: SelectConfig;
|
|
|
26
26
|
export declare const FALLBACK_SELECT_CONFIG: Required<import('../field').FieldConfig>;
|
|
27
27
|
declare module "../../libs/registry" {
|
|
28
28
|
interface ComponentTypeConfigRegistry {
|
|
29
|
-
|
|
29
|
+
dropmenu: DropmenuConfig;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
//# sourceMappingURL=
|
|
32
|
+
//# sourceMappingURL=dropmenu-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropmenu-config.d.ts","sourceRoot":"","sources":["../../../src/components/dropmenu/dropmenu-config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAsB,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C;;;;;;GAMG;AACH,MAAM,WAAW,cAAe,SAAQ,WAAW;IACjD;;;OAGG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,cAAmC,CAAC;AAExE;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,0CAAwB,CAAC;AAE5D,OAAO,QAAQ,qBAAqB,CAAC;IACnC,UAAU,2BAA2B;QACnC,QAAQ,EAAE,cAAc,CAAC;KAC1B;CACF"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { registerComponentDefaults as e } from "../../libs/registry.js";
|
|
3
3
|
import { FALLBACK_FIELD_CONFIG as t } from "../field/field-config.js";
|
|
4
4
|
import { defaultInputConfig as n } from "../input/input-config.js";
|
|
5
|
-
//#region src/components/
|
|
5
|
+
//#region src/components/dropmenu/dropmenu-config.ts
|
|
6
6
|
var r = n, i = t;
|
|
7
|
-
e("
|
|
7
|
+
e("dropmenu", r);
|
|
8
8
|
//#endregion
|
|
9
|
-
export { i as FALLBACK_SELECT_CONFIG, r as
|
|
9
|
+
export { i as FALLBACK_SELECT_CONFIG, r as defaultDropmenuConfig };
|
|
@@ -11,4 +11,4 @@ export declare const SELECT_SIZE_CLASS: Record<FieldSizeKey, string>;
|
|
|
11
11
|
* focus ring colors. Re-exports FIELD_STATUS_BORDER_CLASS.
|
|
12
12
|
*/
|
|
13
13
|
export declare const SELECT_STATUS_BORDER_CLASS: Record<FieldStatus, string>;
|
|
14
|
-
//# sourceMappingURL=
|
|
14
|
+
//# sourceMappingURL=dropmenu-styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropmenu-styles.d.ts","sourceRoot":"","sources":["../../../src/components/dropmenu/dropmenu-styles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGvE;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAI1D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,WAAW,EAAE,MAAM,CACxC,CAAC"}
|