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
|
@@ -1,149 +1,151 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
3
|
import { cn as e } from "../../utils/cn.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { RADIUS_CLASS as t } from "../../shared/radius.js";
|
|
5
|
+
import { resolveVariantClass as n } from "../../shared/variant.js";
|
|
6
|
+
import { useAsheeConfig as r } from "../../libs/context.js";
|
|
7
7
|
import { resolveCascade as i, resolveClassKey as a, resolveRadiusKey as o } from "../../utils/resolve-token.js";
|
|
8
8
|
import { Button as s } from "../button/Button.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { ArrowLeftIcon as
|
|
12
|
-
import { Tooltip as
|
|
9
|
+
import { ChevronRightIcon as c } from "../../icons/ChevronRightIcon.js";
|
|
10
|
+
import { ChevronLeftIcon as ee } from "../../icons/ChevronLeftIcon.js";
|
|
11
|
+
import { ArrowLeftIcon as l } from "../../icons/ArrowLeftIcon.js";
|
|
12
|
+
import { Tooltip as u } from "../tooltip/Tooltip.js";
|
|
13
13
|
import { FALLBACK_SIDEBAR_CONFIG as d } from "./sidebar-config.js";
|
|
14
|
-
import { SIDEBAR_COLLAPSED_WIDTH_CLASS as te, SIDEBAR_EXPANDED_WIDTH_CLASS as ne, SIDEBAR_HEADER_CLASS as
|
|
15
|
-
import { useCallback as
|
|
16
|
-
import { Fragment as
|
|
14
|
+
import { SIDEBAR_COLLAPSED_WIDTH_CLASS as te, SIDEBAR_EXPANDED_WIDTH_CLASS as ne, SIDEBAR_HEADER_CLASS as re, SIDEBAR_ITEM_CLASS as ie, SIDEBAR_SECTION_LABEL_CLASS as ae, SIDEBAR_VARIANT_CLASS as oe } from "./sidebar-styles.js";
|
|
15
|
+
import { useCallback as f, useEffect as p, useMemo as m, useState as se } from "react";
|
|
16
|
+
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
17
17
|
//#region src/components/sidebar/Sidebar.tsx
|
|
18
|
-
function
|
|
18
|
+
function v(e) {
|
|
19
19
|
return "items" in e && Array.isArray(e.items);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
let
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}, [
|
|
26
|
-
let
|
|
27
|
-
if (!
|
|
28
|
-
let e = !
|
|
29
|
-
|
|
21
|
+
function y({ items: y, activeKey: ce, onSelect: b, isCollapsed: x, onCollapseChange: S, title: C, onBack: w, backIcon: le, userRole: T, footer: E, variant: ue, size: de, radius: fe, options: D, showCollapseButton: O, collapsible: k, defaultCollapsed: A, tooltip: j, headerClassName: M, bodyClassName: N, sectionLabelClassName: P, footerClassName: F, anchorProps: I, link: L, className: R, style: z, ...B }) {
|
|
22
|
+
let V = r(), H = V.components?.sidebar, U = i(k, H?.collapsible, void 0, d.collapsible), W = i(O, H?.showCollapseButton, void 0, d.showCollapseButton), pe = i(A, H?.defaultCollapsed, void 0, d.defaultCollapsed), [me, G] = se(x ?? pe);
|
|
23
|
+
p(() => {
|
|
24
|
+
x !== void 0 && G(x);
|
|
25
|
+
}, [x]);
|
|
26
|
+
let K = x ?? me, he = f(() => {
|
|
27
|
+
if (!U) return;
|
|
28
|
+
let e = !K;
|
|
29
|
+
x === void 0 && G(e), S?.(e);
|
|
30
30
|
}, [
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
K,
|
|
32
|
+
x,
|
|
33
|
+
S,
|
|
34
|
+
U
|
|
35
|
+
]), q = i(de, H?.size, void 0, d.size), ge = i(ue, H?.variant, void 0, d.variant), J = (e) => e === "full" ? "xl" : e, _e = o(J(fe), J(H?.radius), V.defaultRadius, d.radius), Y = o(J(D?.radius), J(H?.options?.radius), V.defaultRadius, d.options.radius), X = i(D?.inactive?.variant, H?.options?.inactive?.variant, V.defaultVariant, d.options.inactive.variant), ve = i(D?.inactive?.color, H?.options?.inactive?.color, void 0, d.options.inactive.color), ye = i(D?.active?.variant, H?.options?.active?.variant, V.defaultVariant, d.options.active.variant), be = i(D?.active?.color, H?.options?.active?.color, V.defaultColor, d.options.active.color), xe = n(ye, be), Se = n(X, ve), Ce = i(j?.show, H?.tooltip?.show, void 0, d.tooltip.show), we = i(j?.placement, H?.tooltip?.placement, void 0, d.tooltip.placement), Z = i(j?.variant, H?.tooltip?.variant, void 0, d.tooltip.variant), Te = i(j?.color, H?.tooltip?.color, void 0, d.tooltip.color), Q = y, $ = m(() => {
|
|
35
36
|
if (!Q) return [];
|
|
36
37
|
let e = Q[0];
|
|
37
|
-
return e ?
|
|
38
|
+
return e ? v(e) ? Q : [{
|
|
38
39
|
id: "__root",
|
|
39
40
|
label: void 0,
|
|
40
41
|
items: Q
|
|
41
42
|
}] : [];
|
|
42
|
-
}, [Q]), Ee =
|
|
43
|
+
}, [Q]), Ee = m(() => $.filter((e) => !e.roles || e.roles.length === 0 ? !0 : T ? e.roles.includes(T) : !1).map((e) => ({
|
|
43
44
|
...e,
|
|
44
|
-
items: e.items?.filter((e) => !e.roles || e.roles.length === 0 ? !0 :
|
|
45
|
-
})).filter((e) => e.items && e.items.length > 0), [$,
|
|
45
|
+
items: e.items?.filter((e) => !e.roles || e.roles.length === 0 ? !0 : T ? e.roles.includes(T) : !1)
|
|
46
|
+
})).filter((e) => e.items && e.items.length > 0), [$, T]), De = f((e, t) => {
|
|
46
47
|
if (t.disabled) {
|
|
47
48
|
e.preventDefault();
|
|
48
49
|
return;
|
|
49
50
|
}
|
|
50
|
-
|
|
51
|
-
}, [
|
|
52
|
-
let r =
|
|
53
|
-
href:
|
|
54
|
-
target:
|
|
55
|
-
rel:
|
|
56
|
-
|
|
51
|
+
b?.(t);
|
|
52
|
+
}, [b]), Oe = K ? te[q] : ne[q], ke = (n) => {
|
|
53
|
+
let r = n.id === ce, i = e("w-full flex items-center gap-3 transition-all truncate no-underline", ie[q], K ? "justify-center px-0" : "justify-start", r && "font-medium", r ? xe : Se, n.disabled && "opacity-50 cursor-not-allowed pointer-events-none", a(X === "underlined" ? "none" : Y, t, d.options.radius), D?.itemClassName), o = L?.component || "a", s = {
|
|
54
|
+
href: n.disabled ? void 0 : n.href,
|
|
55
|
+
target: n.target,
|
|
56
|
+
rel: n.rel,
|
|
57
|
+
"aria-current": r ? "page" : void 0,
|
|
58
|
+
onClick: (e) => De(e, n),
|
|
57
59
|
className: i,
|
|
58
|
-
...
|
|
59
|
-
...
|
|
60
|
-
}, c = /* @__PURE__ */
|
|
60
|
+
...I,
|
|
61
|
+
...L?.props ?? {}
|
|
62
|
+
}, c = /* @__PURE__ */ _(o, {
|
|
61
63
|
...s,
|
|
62
|
-
children: [
|
|
63
|
-
className: e("shrink-0 flex items-center justify-center",
|
|
64
|
-
children:
|
|
65
|
-
}), !
|
|
64
|
+
children: [n.icon && /* @__PURE__ */ g("span", {
|
|
65
|
+
className: e("shrink-0 flex items-center justify-center", K && "w-full"),
|
|
66
|
+
children: n.icon
|
|
67
|
+
}), !K && /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("span", {
|
|
66
68
|
className: "truncate flex-1 text-left",
|
|
67
|
-
children:
|
|
68
|
-
}),
|
|
69
|
+
children: n.label
|
|
70
|
+
}), n.badge && /* @__PURE__ */ g("span", {
|
|
69
71
|
className: "shrink-0",
|
|
70
|
-
children:
|
|
72
|
+
children: n.badge
|
|
71
73
|
})] })]
|
|
72
|
-
}, String(
|
|
73
|
-
return
|
|
74
|
-
content:
|
|
75
|
-
placement:
|
|
76
|
-
variant:
|
|
74
|
+
}, String(n.id));
|
|
75
|
+
return K && Ce ? /* @__PURE__ */ g(u, {
|
|
76
|
+
content: n.label,
|
|
77
|
+
placement: we,
|
|
78
|
+
variant: Z,
|
|
77
79
|
color: Te,
|
|
78
|
-
radius:
|
|
80
|
+
radius: Y,
|
|
79
81
|
children: c
|
|
80
|
-
}, String(
|
|
81
|
-
}, Ae = (t) => !t.items || t.items.length === 0 ? null : /* @__PURE__ */
|
|
82
|
+
}, String(n.id)) : c;
|
|
83
|
+
}, Ae = (t) => !t.items || t.items.length === 0 ? null : /* @__PURE__ */ _("div", {
|
|
82
84
|
className: "flex flex-col gap-0.5",
|
|
83
|
-
children: [!
|
|
84
|
-
className: e("text-foreground/70 font-medium uppercase tracking-wider truncate",
|
|
85
|
+
children: [!K && t.label && /* @__PURE__ */ g("div", {
|
|
86
|
+
className: e("text-foreground/70 font-medium uppercase tracking-wider truncate", ae[q], P),
|
|
85
87
|
children: t.label
|
|
86
88
|
}), t.items.map(ke)]
|
|
87
89
|
}, String(t.id));
|
|
88
|
-
return /* @__PURE__ */
|
|
89
|
-
className: e("h-full flex flex-col transition-all duration-200 select-none shrink-0", Oe,
|
|
90
|
-
style:
|
|
91
|
-
...
|
|
90
|
+
return /* @__PURE__ */ _("aside", {
|
|
91
|
+
className: e("h-full flex flex-col transition-all duration-200 select-none shrink-0", Oe, oe[ge], a(_e, t, d.radius), R),
|
|
92
|
+
style: z,
|
|
93
|
+
...B,
|
|
92
94
|
children: [
|
|
93
|
-
(
|
|
94
|
-
className: e("flex items-center gap-3 border-b border-border border-dashed shrink-0",
|
|
95
|
-
children: [
|
|
95
|
+
(w || C) && /* @__PURE__ */ _("div", {
|
|
96
|
+
className: e("flex items-center gap-3 border-b border-border border-dashed shrink-0", re[q], K && "justify-center px-0", M),
|
|
97
|
+
children: [w && /* @__PURE__ */ g(s, {
|
|
96
98
|
icon: !0,
|
|
97
99
|
"aria-label": "Go back",
|
|
98
|
-
variant:
|
|
100
|
+
variant: X,
|
|
99
101
|
color: "secondary",
|
|
100
|
-
size:
|
|
101
|
-
radius:
|
|
102
|
-
onClick:
|
|
102
|
+
size: q,
|
|
103
|
+
radius: Y,
|
|
104
|
+
onClick: w,
|
|
103
105
|
className: "shrink-0",
|
|
104
|
-
children: /* @__PURE__ */
|
|
106
|
+
children: /* @__PURE__ */ g("span", {
|
|
105
107
|
className: e("flex items-center justify-center transition-transform duration-200"),
|
|
106
|
-
children:
|
|
108
|
+
children: le ?? /* @__PURE__ */ g(l, { className: "size-4" })
|
|
107
109
|
})
|
|
108
|
-
}), !
|
|
110
|
+
}), !K && C && /* @__PURE__ */ g("span", {
|
|
109
111
|
className: "font-semibold text-foreground truncate tracking-tight transition-opacity duration-200",
|
|
110
|
-
children:
|
|
112
|
+
children: C
|
|
111
113
|
})]
|
|
112
114
|
}),
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
-
className: e("flex-1 overflow-y-auto py-3 px-2 flex flex-col gap-3 scrollable-hidden",
|
|
115
|
+
/* @__PURE__ */ g("nav", {
|
|
116
|
+
className: e("flex-1 overflow-y-auto py-3 px-2 flex flex-col gap-3 scrollable-hidden", N),
|
|
115
117
|
children: Ee.map(Ae)
|
|
116
118
|
}),
|
|
117
|
-
|
|
118
|
-
className: e("border-t border-border shrink-0",
|
|
119
|
-
children: [!
|
|
119
|
+
W && U && /* @__PURE__ */ _("div", {
|
|
120
|
+
className: e("border-t border-border shrink-0", K ? "p-2" : "p-3", F),
|
|
121
|
+
children: [!K && E && /* @__PURE__ */ g("div", {
|
|
120
122
|
className: "mb-2",
|
|
121
|
-
children:
|
|
122
|
-
}), /* @__PURE__ */
|
|
123
|
+
children: E
|
|
124
|
+
}), /* @__PURE__ */ g(s, {
|
|
123
125
|
icon: !0,
|
|
124
|
-
"aria-label":
|
|
125
|
-
variant:
|
|
126
|
+
"aria-label": K ? "Expand sidebar" : "Collapse sidebar",
|
|
127
|
+
variant: X,
|
|
126
128
|
color: "secondary",
|
|
127
|
-
size:
|
|
128
|
-
radius:
|
|
129
|
-
onClick:
|
|
130
|
-
className: e("w-full",
|
|
131
|
-
children: /* @__PURE__ */
|
|
129
|
+
size: q,
|
|
130
|
+
radius: Y,
|
|
131
|
+
onClick: he,
|
|
132
|
+
className: e("w-full", K ? "justify-center px-0" : "justify-start"),
|
|
133
|
+
children: /* @__PURE__ */ g("span", {
|
|
132
134
|
className: "flex items-center gap-2",
|
|
133
|
-
children:
|
|
135
|
+
children: K ? /* @__PURE__ */ g(c, { className: "size-4" }) : /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(ee, { className: "size-4" }), /* @__PURE__ */ g("span", {
|
|
134
136
|
className: "text-sm",
|
|
135
137
|
children: "Collapse"
|
|
136
138
|
})] })
|
|
137
139
|
})
|
|
138
140
|
})]
|
|
139
141
|
}),
|
|
140
|
-
!
|
|
141
|
-
className: e("border-t border-border shrink-0 p-3",
|
|
142
|
-
children:
|
|
142
|
+
!W && E && /* @__PURE__ */ g("div", {
|
|
143
|
+
className: e("border-t border-border shrink-0 p-3", F),
|
|
144
|
+
children: E
|
|
143
145
|
})
|
|
144
146
|
]
|
|
145
147
|
});
|
|
146
148
|
}
|
|
147
|
-
|
|
149
|
+
y.displayName = "Sidebar";
|
|
148
150
|
//#endregion
|
|
149
|
-
export {
|
|
151
|
+
export { y as Sidebar };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ElementType, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { SidebarLayoutConfig } from './sidebar-layout-config';
|
|
3
|
+
type BaseSidebarLayoutProps = SidebarLayoutConfig & Omit<HTMLAttributes<HTMLDivElement>, "color">;
|
|
4
|
+
/**
|
|
5
|
+
* Props for the SidebarLayout component.
|
|
6
|
+
*/
|
|
7
|
+
export interface SidebarLayoutProps extends BaseSidebarLayoutProps {
|
|
8
|
+
/** The navigation column, typically the framework's `Sidebar`. */
|
|
9
|
+
sidebar: ReactNode;
|
|
10
|
+
/** Content above both columns, typically the framework's `Navbar`. */
|
|
11
|
+
header?: ReactNode;
|
|
12
|
+
/** Content below both columns. */
|
|
13
|
+
footer?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Name of the navigation landmark the sidebar is rendered in.
|
|
16
|
+
* A shell usually holds one, so the name distinguishes it from the page's
|
|
17
|
+
* other navigation regions.
|
|
18
|
+
*
|
|
19
|
+
* @default "Sidebar"
|
|
20
|
+
*/
|
|
21
|
+
sidebarLabel?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Element to render the shell as.
|
|
24
|
+
* Defaults to a `div`.
|
|
25
|
+
*
|
|
26
|
+
* @default "div"
|
|
27
|
+
*/
|
|
28
|
+
as?: ElementType;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* An application shell with a persistent navigation column.
|
|
32
|
+
*
|
|
33
|
+
* The shell is a single column on a narrow screen and two columns from the `lg`
|
|
34
|
+
* breakpoint, with the navigation column sticky and independently scrollable on
|
|
35
|
+
* a wide screen. It deliberately stacks the navigation above the content on a
|
|
36
|
+
* narrow screen rather than hiding it behind an off-canvas drawer: the whole page
|
|
37
|
+
* then stays reachable with the keyboard, with no focus trap to get wrong.
|
|
38
|
+
*
|
|
39
|
+
* @param props - SidebarLayout configuration options and element attributes.
|
|
40
|
+
* @param props.sidebar - The navigation column.
|
|
41
|
+
* @param props.header - Content above both columns.
|
|
42
|
+
* @param props.footer - Content below both columns.
|
|
43
|
+
* @param props.sidebarLabel - Name of the navigation landmark. Defaults to
|
|
44
|
+
* "Sidebar".
|
|
45
|
+
* @param props.side - Side the navigation column sits on. Defaults to "start".
|
|
46
|
+
* @param props.sidebarWidth - Width of the navigation column. Defaults to "md".
|
|
47
|
+
* @param props.stickySidebar - Keep the column in view. Defaults to true.
|
|
48
|
+
* @param props.as - Element to render. Defaults to "div".
|
|
49
|
+
* @returns The rendered shell.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```tsx
|
|
53
|
+
* <SidebarLayout
|
|
54
|
+
* header={<Navbar brand="Ashee SMS" links={links} />}
|
|
55
|
+
* sidebar={<Sidebar items={items} activeKey="campaigns" />}>
|
|
56
|
+
* <PageContent>
|
|
57
|
+
* <Typography role="heading-lg">Campaigns</Typography>
|
|
58
|
+
* </PageContent>
|
|
59
|
+
* </SidebarLayout>
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* @see Sidebar - The navigation the column usually holds.
|
|
63
|
+
* @see Page - The single-column shell, for a page without navigation.
|
|
64
|
+
*/
|
|
65
|
+
export declare const SidebarLayout: import('react').ForwardRefExoticComponent<SidebarLayoutProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
66
|
+
export {};
|
|
67
|
+
//# sourceMappingURL=SidebarLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarLayout.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar-layout/SidebarLayout.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,yBAAyB,CAAC;AAYjC,KAAK,sBAAsB,GAAG,mBAAmB,GAC/C,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,sBAAsB;IAChE,kEAAkE;IAClE,OAAO,EAAE,SAAS,CAAC;IAEnB,sEAAsE;IACtE,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB,kCAAkC;IAClC,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;;OAKG;IACH,EAAE,CAAC,EAAE,WAAW,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,aAAa,+GAyDzB,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { FALLBACK_SIDEBAR_LAYOUT_CONFIG as r } from "./sidebar-layout-config.js";
|
|
7
|
+
import { SIDEBAR_LAYOUT_ASIDE_CLASS as i, SIDEBAR_LAYOUT_ASIDE_END_BORDER_CLASS as a, SIDEBAR_LAYOUT_ASIDE_END_CLASS as o, SIDEBAR_LAYOUT_ASIDE_START_BORDER_CLASS as s, SIDEBAR_LAYOUT_CLASS as c, SIDEBAR_LAYOUT_CONTENT_CLASS as l, SIDEBAR_LAYOUT_WIDTH_CLASS as u } from "./sidebar-layout-styles.js";
|
|
8
|
+
import { forwardRef as d } from "react";
|
|
9
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
10
|
+
//#region src/components/sidebar-layout/SidebarLayout.tsx
|
|
11
|
+
var m = d(({ sidebar: d, header: m, footer: h, sidebarLabel: g = "Sidebar", side: _, sidebarWidth: v, stickySidebar: y, as: b, className: x, children: S, ...C }, w) => {
|
|
12
|
+
let T = t(), E = n({
|
|
13
|
+
side: _,
|
|
14
|
+
sidebarWidth: v,
|
|
15
|
+
stickySidebar: y
|
|
16
|
+
}, T.components?.sidebarlayout, r), D = E.side === "end";
|
|
17
|
+
return /* @__PURE__ */ p(b ?? "div", {
|
|
18
|
+
ref: w,
|
|
19
|
+
className: e(c, x),
|
|
20
|
+
...C,
|
|
21
|
+
children: [
|
|
22
|
+
m,
|
|
23
|
+
/* @__PURE__ */ p("div", {
|
|
24
|
+
className: "flex w-full flex-1 flex-col lg:flex-row",
|
|
25
|
+
children: [/* @__PURE__ */ f("aside", {
|
|
26
|
+
"aria-label": g,
|
|
27
|
+
className: e(i, u[E.sidebarWidth], D ? o : s, D ? a : void 0, E.stickySidebar && "lg:sticky lg:top-0 lg:h-dvh lg:overflow-y-auto"),
|
|
28
|
+
children: d
|
|
29
|
+
}), /* @__PURE__ */ f("div", {
|
|
30
|
+
className: l,
|
|
31
|
+
children: S
|
|
32
|
+
})]
|
|
33
|
+
}),
|
|
34
|
+
h
|
|
35
|
+
]
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
m.displayName = "SidebarLayout";
|
|
39
|
+
//#endregion
|
|
40
|
+
export { m as SidebarLayout };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar-layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SidebarLayout component configuration for AsheeUI.
|
|
3
|
+
* This file defines the configuration type and defaults for the application
|
|
4
|
+
* shell that places a navigation column beside a page: side, sidebar width and
|
|
5
|
+
* stickiness. It registers the default configuration with the component registry
|
|
6
|
+
* and provides fallback values for the cascade resolution system.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Side the navigation column sits on from the `lg` breakpoint upwards.
|
|
10
|
+
*/
|
|
11
|
+
export type SidebarLayoutSide = "start" | "end";
|
|
12
|
+
/**
|
|
13
|
+
* Width of the navigation column.
|
|
14
|
+
*/
|
|
15
|
+
export type SidebarLayoutWidth = "sm" | "md" | "lg";
|
|
16
|
+
/**
|
|
17
|
+
* Theme configuration options for the SidebarLayout component.
|
|
18
|
+
*
|
|
19
|
+
* Set under `components.sidebarlayout` in the AsheeUI config. Values feed the
|
|
20
|
+
* component-level fallback tier of the theme cascade.
|
|
21
|
+
*/
|
|
22
|
+
export interface SidebarLayoutConfig {
|
|
23
|
+
/** Side the navigation column sits on. @default "start" */
|
|
24
|
+
side?: SidebarLayoutSide;
|
|
25
|
+
/** Width of the navigation column. @default "md" */
|
|
26
|
+
sidebarWidth?: SidebarLayoutWidth;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the navigation column stays in view while the content scrolls.
|
|
29
|
+
* Applies from the `lg` breakpoint upwards, where the column sits beside the
|
|
30
|
+
* content rather than above it.
|
|
31
|
+
*
|
|
32
|
+
* @default true
|
|
33
|
+
*/
|
|
34
|
+
stickySidebar?: boolean;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Default config values registered for the SidebarLayout component.
|
|
38
|
+
*/
|
|
39
|
+
export declare const defaultSidebarLayoutConfig: SidebarLayoutConfig;
|
|
40
|
+
declare module "../../libs/registry" {
|
|
41
|
+
interface ComponentTypeConfigRegistry {
|
|
42
|
+
sidebarlayout: SidebarLayoutConfig;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Hard fallback values used when no config tier provides a value.
|
|
47
|
+
*/
|
|
48
|
+
export declare const FALLBACK_SIDEBAR_LAYOUT_CONFIG: Required<SidebarLayoutConfig>;
|
|
49
|
+
//# sourceMappingURL=sidebar-layout-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar-layout-config.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar-layout/sidebar-layout-config.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,KAAK,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEpD;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAClC,2DAA2D;IAC3D,IAAI,CAAC,EAAE,iBAAiB,CAAC;IAEzB,oDAAoD;IACpD,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAElC;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,mBAIxC,CAAC;AAEF,OAAO,QAAQ,qBAAqB,CAAC;IACnC,UAAU,2BAA2B;QACnC,aAAa,EAAE,mBAAmB,CAAC;KACpC;CACF;AAID;;GAEG;AACH,eAAO,MAAM,8BAA8B,EAAE,QAAQ,CAAC,mBAAmB,CAIxE,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { registerComponentDefaults as e } from "../../libs/registry.js";
|
|
3
|
+
//#region src/components/sidebar-layout/sidebar-layout-config.ts
|
|
4
|
+
var t = {
|
|
5
|
+
side: "start",
|
|
6
|
+
sidebarWidth: "md",
|
|
7
|
+
stickySidebar: !0
|
|
8
|
+
};
|
|
9
|
+
e("sidebarlayout", t);
|
|
10
|
+
var n = {
|
|
11
|
+
side: "start",
|
|
12
|
+
sidebarWidth: "md",
|
|
13
|
+
stickySidebar: !0
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { n as FALLBACK_SIDEBAR_LAYOUT_CONFIG, t as defaultSidebarLayoutConfig };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SidebarLayoutWidth } from './sidebar-layout-config';
|
|
2
|
+
/**
|
|
3
|
+
* The shell: a full-height column that becomes a row from the `lg` breakpoint,
|
|
4
|
+
* where the navigation column and the content sit beside each other.
|
|
5
|
+
*/
|
|
6
|
+
export declare const SIDEBAR_LAYOUT_CLASS = "flex min-h-dvh w-full flex-col bg-background lg:flex-row";
|
|
7
|
+
/** The navigation column, stacked above the content on a narrow screen. */
|
|
8
|
+
export declare const SIDEBAR_LAYOUT_ASIDE_CLASS = "w-full shrink-0 border-b border-border";
|
|
9
|
+
/** The navigation column when it sits at the trailing edge. */
|
|
10
|
+
export declare const SIDEBAR_LAYOUT_ASIDE_END_CLASS = "lg:order-last";
|
|
11
|
+
/** The separator of the navigation column on the leading edge. */
|
|
12
|
+
export declare const SIDEBAR_LAYOUT_ASIDE_START_BORDER_CLASS = "lg:border-r";
|
|
13
|
+
/** The separator of the navigation column on the trailing edge. */
|
|
14
|
+
export declare const SIDEBAR_LAYOUT_ASIDE_END_BORDER_CLASS = "lg:border-l";
|
|
15
|
+
/** Keeps the navigation column in view while the content scrolls. */
|
|
16
|
+
export declare const SIDEBAR_LAYOUT_ASIDE_STICKY_CLASS = "lg:sticky lg:top-0 lg:h-dvh lg:overflow-y-auto";
|
|
17
|
+
/** The content column. */
|
|
18
|
+
export declare const SIDEBAR_LAYOUT_CONTENT_CLASS = "flex min-w-0 flex-1 flex-col";
|
|
19
|
+
/** Width of the navigation column at each size, from `lg` upwards. */
|
|
20
|
+
export declare const SIDEBAR_LAYOUT_WIDTH_CLASS: Record<SidebarLayoutWidth, string>;
|
|
21
|
+
//# sourceMappingURL=sidebar-layout-styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar-layout-styles.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar-layout/sidebar-layout-styles.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE;;;GAGG;AACH,eAAO,MAAM,oBAAoB,6DAC2B,CAAC;AAE7D,2EAA2E;AAC3E,eAAO,MAAM,0BAA0B,2CACG,CAAC;AAE3C,+DAA+D;AAC/D,eAAO,MAAM,8BAA8B,kBAAkB,CAAC;AAE9D,kEAAkE;AAClE,eAAO,MAAM,uCAAuC,gBAAgB,CAAC;AAErE,mEAAmE;AACnE,eAAO,MAAM,qCAAqC,gBAAgB,CAAC;AAEnE,qEAAqE;AACrE,eAAO,MAAM,iCAAiC,mDACI,CAAC;AAEnD,0BAA0B;AAC1B,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAE3E,sEAAsE;AACtE,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAIzE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region src/components/sidebar-layout/sidebar-layout-styles.ts
|
|
3
|
+
var e = "flex min-h-dvh w-full flex-col bg-background lg:flex-row", t = "w-full shrink-0 border-b border-border", n = "lg:order-last", r = "lg:border-r", i = "lg:border-l", a = "lg:sticky lg:top-0 lg:h-dvh lg:overflow-y-auto", o = "flex min-w-0 flex-1 flex-col", s = {
|
|
4
|
+
sm: "lg:w-56",
|
|
5
|
+
md: "lg:w-64",
|
|
6
|
+
lg: "lg:w-80"
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { t as SIDEBAR_LAYOUT_ASIDE_CLASS, i as SIDEBAR_LAYOUT_ASIDE_END_BORDER_CLASS, n as SIDEBAR_LAYOUT_ASIDE_END_CLASS, r as SIDEBAR_LAYOUT_ASIDE_START_BORDER_CLASS, a as SIDEBAR_LAYOUT_ASIDE_STICKY_CLASS, e as SIDEBAR_LAYOUT_CLASS, o as SIDEBAR_LAYOUT_CONTENT_CLASS, s as SIDEBAR_LAYOUT_WIDTH_CLASS };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { SkeletonConfig } from './skeleton-config';
|
|
3
|
+
type BaseSkeletonProps = SkeletonConfig & Omit<HTMLAttributes<HTMLDivElement>, "color" | "children">;
|
|
4
|
+
/**
|
|
5
|
+
* Configuration options for the Skeleton component.
|
|
6
|
+
*/
|
|
7
|
+
export interface SkeletonProps extends BaseSkeletonProps {
|
|
8
|
+
/**
|
|
9
|
+
* Whether the placeholder stands in for a region that is loading rather than
|
|
10
|
+
* appear as decoration.
|
|
11
|
+
*
|
|
12
|
+
* When true the placeholder becomes a labelled busy status, so assistive
|
|
13
|
+
* technology is told that loading is in progress. When false it is hidden
|
|
14
|
+
* from assistive technology, because a placeholder carries no information.
|
|
15
|
+
*
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
isBusy?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Text announced while the placeholder is a busy status.
|
|
21
|
+
*
|
|
22
|
+
* @default "Loading"
|
|
23
|
+
*/
|
|
24
|
+
label?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A loading placeholder.
|
|
28
|
+
*
|
|
29
|
+
* Skeleton renders a neutral surface that stands in for content while it
|
|
30
|
+
* loads. Size it with the standard layout classes, because it has no size axis
|
|
31
|
+
* of its own: `className="h-40 w-full"` is the intended usage.
|
|
32
|
+
*
|
|
33
|
+
* Two accessibility contracts hold here. A decorative placeholder is hidden
|
|
34
|
+
* from assistive technology, because it conveys nothing on its own. A
|
|
35
|
+
* placeholder marked as busy is exposed as a labelled status instead, so a
|
|
36
|
+
* consumer who needs the state announced gets it. Neither replaces a status
|
|
37
|
+
* announcement for a wait the consumer knows will be long: use the framework's
|
|
38
|
+
* notification or a status region for that.
|
|
39
|
+
*
|
|
40
|
+
* The shimmer is applied through the reduced-motion-safe variant, so it stops
|
|
41
|
+
* for a consumer who asked for less motion without any script running.
|
|
42
|
+
*
|
|
43
|
+
* @param props - Skeleton configuration options and div attributes.
|
|
44
|
+
* @param props.isBusy - Expose the placeholder as a labelled busy status. Defaults to false.
|
|
45
|
+
* @param props.label - Text announced while busy. Defaults to "Loading".
|
|
46
|
+
* @param props.radius - Corner rounding. Defaults to "sm".
|
|
47
|
+
* @param props.isAnimated - Whether the placeholder shimmers. Defaults to true.
|
|
48
|
+
* @param props.className - Extra classes applied last, which is where sizing belongs.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```tsx
|
|
52
|
+
* <Skeleton className="h-4 w-40" />
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```tsx
|
|
57
|
+
* // The region is loading and the state should be announced.
|
|
58
|
+
* <Skeleton isBusy label="Loading invoices" className="h-4 w-full" />
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
61
|
+
* @see SkeletonConfig - The configuration type for component defaults.
|
|
62
|
+
*/
|
|
63
|
+
export declare const Skeleton: import('react').ForwardRefExoticComponent<SkeletonProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
64
|
+
export {};
|
|
65
|
+
//# sourceMappingURL=Skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/Skeleton.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAMxD,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,mBAAmB,CAAC;AAM3B,KAAK,iBAAiB,GAAG,cAAc,GACrC,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC;AAE7D;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,QAAQ,0GAsDpB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
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 { resolveCascade as r, resolveClassKey as i } from "../../utils/resolve-token.js";
|
|
7
|
+
import { FALLBACK_SKELETON_CONFIG as a } from "./skeleton-config.js";
|
|
8
|
+
import { SKELETON_BASE_CLASS as o } from "./skeleton-styles.js";
|
|
9
|
+
import { forwardRef as s } from "react";
|
|
10
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
11
|
+
//#region src/components/skeleton/Skeleton.tsx
|
|
12
|
+
var l = s(({ radius: s, isAnimated: l, isBusy: u = !1, label: d = "Loading", className: f, ...p }, m) => {
|
|
13
|
+
let h = n(), g = h.components?.skeleton, _ = r(s, g?.radius, h.defaultRadius, a.radius), v = r(l, g?.isAnimated, void 0, a.isAnimated), y = i(_, t, a.radius);
|
|
14
|
+
return /* @__PURE__ */ c("div", {
|
|
15
|
+
ref: m,
|
|
16
|
+
role: u ? "status" : void 0,
|
|
17
|
+
"aria-busy": u ? !0 : void 0,
|
|
18
|
+
"aria-hidden": !u || void 0,
|
|
19
|
+
className: e(o, v && "motion-safe:animate-pulse", y, f),
|
|
20
|
+
...p,
|
|
21
|
+
children: u && /* @__PURE__ */ c("span", {
|
|
22
|
+
className: "sr-only",
|
|
23
|
+
children: d
|
|
24
|
+
})
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
l.displayName = "Skeleton";
|
|
28
|
+
//#endregion
|
|
29
|
+
export { l as Skeleton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/skeleton/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC"}
|