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,96 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { useAsheeConfig as e } from "../../libs/context.js";
|
|
4
|
+
import { resolveConfigCascade as t } from "../../utils/resolve-token.js";
|
|
5
|
+
import { Typography as n } from "../typography/Typography.js";
|
|
6
|
+
import { SectionHeading as r } from "../section-kit/SectionHeading.js";
|
|
7
|
+
import { Avatar as i } from "../avatar/Avatar.js";
|
|
8
|
+
import { Card as a } from "../card/Card.js";
|
|
9
|
+
import { Container as o } from "../container/Container.js";
|
|
10
|
+
import { Section as s } from "../section/Section.js";
|
|
11
|
+
import { Grid as c } from "../grid/Grid.js";
|
|
12
|
+
import { FALLBACK_TESTIMONIALS_CONFIG as l } from "./testimonials-config.js";
|
|
13
|
+
import { TESTIMONIAL_HEADING_CLASS as u, TESTIMONIAL_PERSON_CLASS as d, TESTIMONIAL_QUOTE_CLASS as f } from "./testimonials-styles.js";
|
|
14
|
+
import { forwardRef as p } from "react";
|
|
15
|
+
import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
16
|
+
//#region src/components/testimonials/Testimonials.tsx
|
|
17
|
+
var _ = p(({ eyebrow: p, title: _, description: v, items: y, columns: b, columnsMd: x, columnsLg: S, gap: C, spacing: w, background: T, align: E, containerSize: D, contained: O, as: k, className: A, children: j, ...M }, N) => {
|
|
18
|
+
let P = e(), F = t({
|
|
19
|
+
columns: b,
|
|
20
|
+
columnsMd: x,
|
|
21
|
+
columnsLg: S,
|
|
22
|
+
gap: C,
|
|
23
|
+
spacing: w,
|
|
24
|
+
background: T,
|
|
25
|
+
align: E,
|
|
26
|
+
containerSize: D,
|
|
27
|
+
contained: O
|
|
28
|
+
}, P.components?.testimonials, l), I = /* @__PURE__ */ g(m, { children: [
|
|
29
|
+
/* @__PURE__ */ h(r, {
|
|
30
|
+
eyebrow: p,
|
|
31
|
+
title: _,
|
|
32
|
+
description: v,
|
|
33
|
+
align: F.align,
|
|
34
|
+
className: u
|
|
35
|
+
}),
|
|
36
|
+
/* @__PURE__ */ h(c, {
|
|
37
|
+
columns: F.columns,
|
|
38
|
+
columnsMd: F.columnsMd,
|
|
39
|
+
columnsLg: F.columnsLg,
|
|
40
|
+
gap: F.gap,
|
|
41
|
+
as: "ul",
|
|
42
|
+
children: y.map((e, t) => /* @__PURE__ */ h("li", {
|
|
43
|
+
className: "min-w-0",
|
|
44
|
+
children: /* @__PURE__ */ h(a, {
|
|
45
|
+
variant: "bordered",
|
|
46
|
+
size: "md",
|
|
47
|
+
className: "h-full",
|
|
48
|
+
children: /* @__PURE__ */ g("figure", {
|
|
49
|
+
className: f,
|
|
50
|
+
children: [/* @__PURE__ */ h(n, {
|
|
51
|
+
as: "blockquote",
|
|
52
|
+
role: "body-md",
|
|
53
|
+
children: e.quote
|
|
54
|
+
}), /* @__PURE__ */ g("figcaption", {
|
|
55
|
+
className: d,
|
|
56
|
+
children: [/* @__PURE__ */ h(i, {
|
|
57
|
+
name: e.name,
|
|
58
|
+
src: e.avatarSrc,
|
|
59
|
+
size: "sm",
|
|
60
|
+
component: e.avatarComponent,
|
|
61
|
+
componentProps: e.avatarComponentProps
|
|
62
|
+
}), /* @__PURE__ */ g("span", {
|
|
63
|
+
className: "flex min-w-0 flex-col",
|
|
64
|
+
children: [/* @__PURE__ */ h(n, {
|
|
65
|
+
role: "label",
|
|
66
|
+
children: e.name
|
|
67
|
+
}), e.role && /* @__PURE__ */ h(n, {
|
|
68
|
+
role: "caption",
|
|
69
|
+
tone: "muted",
|
|
70
|
+
children: e.role
|
|
71
|
+
})]
|
|
72
|
+
})]
|
|
73
|
+
})]
|
|
74
|
+
})
|
|
75
|
+
})
|
|
76
|
+
}, e.id ?? t))
|
|
77
|
+
}),
|
|
78
|
+
j
|
|
79
|
+
] });
|
|
80
|
+
return /* @__PURE__ */ h(s, {
|
|
81
|
+
ref: N,
|
|
82
|
+
as: k,
|
|
83
|
+
spacing: F.spacing,
|
|
84
|
+
background: F.background,
|
|
85
|
+
contained: !1,
|
|
86
|
+
className: A,
|
|
87
|
+
...M,
|
|
88
|
+
children: F.contained ? /* @__PURE__ */ h(o, {
|
|
89
|
+
size: F.containerSize,
|
|
90
|
+
children: I
|
|
91
|
+
}) : I
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
_.displayName = "Testimonials";
|
|
95
|
+
//#endregion
|
|
96
|
+
export { _ as Testimonials };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/testimonials/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { Space } from '../../shared';
|
|
2
|
+
import { ContainerSize } from '../container/container-config';
|
|
3
|
+
import { GridColumns } from '../grid/grid-config';
|
|
4
|
+
import { SectionBackground } from '../section/section-config';
|
|
5
|
+
/**
|
|
6
|
+
* Theme configuration options for the Testimonials component.
|
|
7
|
+
*
|
|
8
|
+
* Set under `components.testimonials` in the AsheeUI config. Values feed the
|
|
9
|
+
* component-level fallback tier of the theme cascade.
|
|
10
|
+
*/
|
|
11
|
+
export interface TestimonialsConfig {
|
|
12
|
+
/** Columns from the smallest viewport upwards. @default 1 */
|
|
13
|
+
columns?: GridColumns;
|
|
14
|
+
/** Columns from the `md` breakpoint upwards. @default 2 */
|
|
15
|
+
columnsMd?: GridColumns;
|
|
16
|
+
/** Columns from the `lg` breakpoint upwards. @default 3 */
|
|
17
|
+
columnsLg?: GridColumns;
|
|
18
|
+
/** Space between the quotes. @default "lg" */
|
|
19
|
+
gap?: Space;
|
|
20
|
+
/** Vertical padding of the band. @default "lg" */
|
|
21
|
+
spacing?: Space;
|
|
22
|
+
/** Background treatment of the band. @default "none" */
|
|
23
|
+
background?: SectionBackground;
|
|
24
|
+
/** Alignment of the heading above the quotes. @default "center" */
|
|
25
|
+
align?: "start" | "center";
|
|
26
|
+
/** Maximum content width of the band. @default "lg" */
|
|
27
|
+
containerSize?: ContainerSize;
|
|
28
|
+
/** Whether the band wraps its content in a `Container`. @default true */
|
|
29
|
+
contained?: boolean;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Default config values registered for the Testimonials component.
|
|
33
|
+
*/
|
|
34
|
+
export declare const defaultTestimonialsConfig: TestimonialsConfig;
|
|
35
|
+
declare module "../../libs/registry" {
|
|
36
|
+
interface ComponentTypeConfigRegistry {
|
|
37
|
+
testimonials: TestimonialsConfig;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Hard fallback values used when no config tier provides a value.
|
|
42
|
+
*/
|
|
43
|
+
export declare const FALLBACK_TESTIMONIALS_CONFIG: Required<TestimonialsConfig>;
|
|
44
|
+
//# sourceMappingURL=testimonials-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testimonials-config.d.ts","sourceRoot":"","sources":["../../../src/components/testimonials/testimonials-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,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAEnE;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,6DAA6D;IAC7D,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB,2DAA2D;IAC3D,SAAS,CAAC,EAAE,WAAW,CAAC;IAExB,2DAA2D;IAC3D,SAAS,CAAC,EAAE,WAAW,CAAC;IAExB,8CAA8C;IAC9C,GAAG,CAAC,EAAE,KAAK,CAAC;IAEZ,kDAAkD;IAClD,OAAO,CAAC,EAAE,KAAK,CAAC;IAEhB,wDAAwD;IACxD,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAE/B,mEAAmE;IACnE,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IAE3B,uDAAuD;IACvD,aAAa,CAAC,EAAE,aAAa,CAAC;IAE9B,yEAAyE;IACzE,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,kBAUvC,CAAC;AAEF,OAAO,QAAQ,qBAAqB,CAAC;IACnC,UAAU,2BAA2B;QACnC,YAAY,EAAE,kBAAkB,CAAC;KAClC;CACF;AAID;;GAEG;AACH,eAAO,MAAM,4BAA4B,EAAE,QAAQ,CAAC,kBAAkB,CAUrE,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { registerComponentDefaults as e } from "../../libs/registry.js";
|
|
3
|
+
//#region src/components/testimonials/testimonials-config.ts
|
|
4
|
+
var t = {
|
|
5
|
+
columns: 1,
|
|
6
|
+
columnsMd: 2,
|
|
7
|
+
columnsLg: 3,
|
|
8
|
+
gap: "lg",
|
|
9
|
+
spacing: "lg",
|
|
10
|
+
background: "none",
|
|
11
|
+
align: "center",
|
|
12
|
+
containerSize: "lg",
|
|
13
|
+
contained: !0
|
|
14
|
+
};
|
|
15
|
+
e("testimonials", t);
|
|
16
|
+
var n = {
|
|
17
|
+
columns: 1,
|
|
18
|
+
columnsMd: 2,
|
|
19
|
+
columnsLg: 3,
|
|
20
|
+
gap: "lg",
|
|
21
|
+
spacing: "lg",
|
|
22
|
+
background: "none",
|
|
23
|
+
align: "center",
|
|
24
|
+
containerSize: "lg",
|
|
25
|
+
contained: !0
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { n as FALLBACK_TESTIMONIALS_CONFIG, t as defaultTestimonialsConfig };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Testimonials component styles for AsheeUI.
|
|
3
|
+
* This file provides the static class mappings for the Testimonials pattern.
|
|
4
|
+
*/
|
|
5
|
+
/** The quote itself. */
|
|
6
|
+
export declare const TESTIMONIAL_QUOTE_CLASS = "flex flex-col gap-4";
|
|
7
|
+
/** The person credited with a quote. */
|
|
8
|
+
export declare const TESTIMONIAL_PERSON_CLASS = "flex items-center gap-3";
|
|
9
|
+
/** The heading block above the quotes. */
|
|
10
|
+
export declare const TESTIMONIAL_HEADING_CLASS = "mb-10";
|
|
11
|
+
//# sourceMappingURL=testimonials-styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testimonials-styles.d.ts","sourceRoot":"","sources":["../../../src/components/testimonials/testimonials-styles.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,wBAAwB;AACxB,eAAO,MAAM,uBAAuB,wBAAwB,CAAC;AAE7D,wCAAwC;AACxC,eAAO,MAAM,wBAAwB,4BAA4B,CAAC;AAElE,0CAA0C;AAC1C,eAAO,MAAM,yBAAyB,UAAU,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region src/components/testimonials/testimonials-styles.ts
|
|
3
|
+
var e = "flex flex-col gap-4", t = "flex items-center gap-3", n = "mb-10";
|
|
4
|
+
//#endregion
|
|
5
|
+
export { n as TESTIMONIAL_HEADING_CLASS, t as TESTIMONIAL_PERSON_CLASS, e as TESTIMONIAL_QUOTE_CLASS };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { default as React, TextareaHTMLAttributes } from 'react';
|
|
2
2
|
import { KeyboardOpenOptions } from '../keyboard';
|
|
3
3
|
import { TextAreaConfig } from './textarea-config';
|
|
4
|
-
type
|
|
4
|
+
type BaseTextareaProps = TextAreaConfig & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "size" | "color" | "children">;
|
|
5
5
|
/**
|
|
6
|
-
* Configuration options for the
|
|
6
|
+
* Configuration options for the Textarea component.
|
|
7
7
|
*/
|
|
8
|
-
export interface
|
|
8
|
+
export interface TextareaProps extends BaseTextareaProps {
|
|
9
9
|
/**
|
|
10
10
|
* Label text for the textarea.
|
|
11
11
|
* Displayed above the input field.
|
|
@@ -50,7 +50,7 @@ export interface TextAreaProps extends BaseTextAreaProps {
|
|
|
50
50
|
* A multi-line text input with label, description, validation message,
|
|
51
51
|
* and virtual keyboard support.
|
|
52
52
|
*
|
|
53
|
-
*
|
|
53
|
+
* Textarea renders a textarea with consistent styling and field layout.
|
|
54
54
|
* It supports validation states, loading state, configurable rows, and
|
|
55
55
|
* the standard AsheeUI cascade for visual tokens. The component integrates
|
|
56
56
|
* with FieldShell for label, description, and message handling.
|
|
@@ -59,7 +59,7 @@ export interface TextAreaProps extends BaseTextAreaProps {
|
|
|
59
59
|
* aria-invalid, aria-describedby, and proper focus management. It also
|
|
60
60
|
* supports mobile virtual keyboard control via the enableVirtualKeyboard prop.
|
|
61
61
|
*
|
|
62
|
-
* @param props -
|
|
62
|
+
* @param props - Textarea configuration options and native textarea props.
|
|
63
63
|
* @param props.label - Label text for the textarea.
|
|
64
64
|
* @param props.isLoading - Loading state. Defaults to false.
|
|
65
65
|
* @param props.description - Description text.
|
|
@@ -80,14 +80,14 @@ export interface TextAreaProps extends BaseTextAreaProps {
|
|
|
80
80
|
*
|
|
81
81
|
* @example
|
|
82
82
|
* ```tsx
|
|
83
|
-
* import {
|
|
83
|
+
* import { Textarea } from "asheeui";
|
|
84
84
|
* import { useState } from "react";
|
|
85
85
|
*
|
|
86
86
|
* export function Example() {
|
|
87
87
|
* const [value, setValue] = useState("");
|
|
88
88
|
*
|
|
89
89
|
* return (
|
|
90
|
-
* <
|
|
90
|
+
* <Textarea
|
|
91
91
|
* label="Message"
|
|
92
92
|
* description="Write your message here"
|
|
93
93
|
* placeholder="Type your message..."
|
|
@@ -102,7 +102,7 @@ export interface TextAreaProps extends BaseTextAreaProps {
|
|
|
102
102
|
* @example
|
|
103
103
|
* ```tsx
|
|
104
104
|
* // With validation state
|
|
105
|
-
* <
|
|
105
|
+
* <Textarea
|
|
106
106
|
* label="Feedback"
|
|
107
107
|
* status="error"
|
|
108
108
|
* message="Feedback must be at least 10 characters"
|
|
@@ -113,7 +113,7 @@ export interface TextAreaProps extends BaseTextAreaProps {
|
|
|
113
113
|
* @example
|
|
114
114
|
* ```tsx
|
|
115
115
|
* // With virtual keyboard configuration
|
|
116
|
-
* <
|
|
116
|
+
* <Textarea
|
|
117
117
|
* label="Numeric Input"
|
|
118
118
|
* enableVirtualKeyboard={{
|
|
119
119
|
* layout: "numeric",
|
|
@@ -128,6 +128,6 @@ export interface TextAreaProps extends BaseTextAreaProps {
|
|
|
128
128
|
* @see useAsheeConfig - Hook for accessing the global configuration.
|
|
129
129
|
* @see useKeyboardField - Hook for connecting inputs to the virtual keyboard.
|
|
130
130
|
*/
|
|
131
|
-
export declare const
|
|
131
|
+
export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
132
132
|
export {};
|
|
133
133
|
//# sourceMappingURL=Textarea.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
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 { FieldShell as ee } from "../field/FieldShell.js";
|
|
9
9
|
import { useKeyboardField as s } from "../keyboard/use-keyboard-field.js";
|
|
@@ -13,13 +13,13 @@ import { forwardRef as u, useCallback as d, useId as f, useImperativeHandle as p
|
|
|
13
13
|
import { jsx as h } from "react/jsx-runtime";
|
|
14
14
|
//#region src/components/textarea/Textarea.tsx
|
|
15
15
|
var g = u(({ size: u, radius: g, variant: _, color: v, status: y, label: b, labelAlign: x, description: S, message: C, required: w, isLoading: T, rows: E, id: D, className: O, disabled: k, style: A, onFocus: j, onBlur: M, enableVirtualKeyboard: N = !0, ...P }, F) => {
|
|
16
|
-
let I =
|
|
16
|
+
let I = r(), L = I.components?.textarea, R = m(null);
|
|
17
17
|
p(F, () => R.current);
|
|
18
18
|
let z = f(), B = D ?? z, V = S ? `${B}-description` : void 0, H = C ? `${B}-message` : void 0, U = [V, H].filter(Boolean).join(" ") || void 0, { handleFocus: W, handleBlur: G } = s(B, R, !!N, typeof N == "object" && N ? N : void 0), K = d((e) => {
|
|
19
19
|
W(e), j?.(e);
|
|
20
20
|
}, [W, j]), q = d((e) => {
|
|
21
21
|
G(), M?.(e);
|
|
22
|
-
}, [G, M]), J = i(u, L?.size, void 0, c.size), Y = i(_, L?.variant, I.defaultVariant, c.variant), X = i(v, L?.color, I.defaultColor, c.color), Z = (e) => e === "full" ? "xl" : e, Q = o(Z(g), Z(L?.radius), I.defaultRadius, c.radius), $ = y ?? c.status, ne = i(x, L?.labelAlign, void 0, c.labelAlign), re = i(E, L?.rows, void 0, c.rows), ie =
|
|
22
|
+
}, [G, M]), J = i(u, L?.size, void 0, c.size), Y = i(_, L?.variant, I.defaultVariant, c.variant), X = i(v, L?.color, I.defaultColor, c.color), Z = (e) => e === "full" ? "xl" : e, Q = o(Z(g), Z(L?.radius), I.defaultRadius, c.radius), $ = y ?? c.status, ne = i(x, L?.labelAlign, void 0, c.labelAlign), re = i(E, L?.rows, void 0, c.rows), ie = n(Y, X), ae = $ === "default" ? "" : l[$], oe = Y === "underlined" ? "rounded-none" : a(Q, t, c.radius);
|
|
23
23
|
return /* @__PURE__ */ h(ee, {
|
|
24
24
|
id: B,
|
|
25
25
|
label: b,
|
|
@@ -48,6 +48,6 @@ var g = u(({ size: u, radius: g, variant: _, color: v, status: y, label: b, labe
|
|
|
48
48
|
})
|
|
49
49
|
});
|
|
50
50
|
});
|
|
51
|
-
g.displayName = "
|
|
51
|
+
g.displayName = "Textarea";
|
|
52
52
|
//#endregion
|
|
53
|
-
export { g as
|
|
53
|
+
export { g as Textarea };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FieldConfig } from '../field/field-config';
|
|
2
2
|
/**
|
|
3
|
-
* Theme configuration options for the
|
|
3
|
+
* Theme configuration options for the Textarea component.
|
|
4
4
|
*
|
|
5
5
|
* Set under `components.textarea` in the AsheeUI config. Values feed the
|
|
6
6
|
* component-level fallback tier of the theme cascade.
|
|
@@ -15,7 +15,7 @@ export interface TextAreaConfig extends FieldConfig {
|
|
|
15
15
|
rows?: number;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* Default config values registered for the
|
|
18
|
+
* Default config values registered for the Textarea component.
|
|
19
19
|
* Inherits field defaults and sets default rows to 4.
|
|
20
20
|
*/
|
|
21
21
|
export declare const defaultTextAreaConfig: TextAreaConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToastItem.d.ts","sourceRoot":"","sources":["../../../src/components/toast/ToastItem.tsx"],"names":[],"mappings":"AAgBA,OAAO,EACL,KAAK,KAAK,EAEV,KAAK,MAAM,EAEX,KAAK,IAAI,EACT,KAAK,OAAO,EACb,MAAM,cAAc,CAAC;AAGtB,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,cAAc,EAEpB,MAAM,gBAAgB,CAAC;AA0DxB;;;GAGG;AACH,MAAM,WAAW,cAAe,SAAQ,aAAa;IACnD;;OAEG;IACH,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAEhC;;;OAGG;IACH,SAAS,EAAE,cAAc,CAAC;IAE1B;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IAEX;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,SAAS,CAAC,EACxB,EAAE,EACF,KAAK,EACL,OAAO,EACP,IAAa,EACb,OAAc,EACd,IAAI,EACJ,MAAM,EACN,WAAkB,EAClB,SAAS,EACT,SAAS,EACT,IAAI,EACJ,OAAO,EACP,KAAK,EACL,MAAM,EACN,QAAQ,GACT,EAAE,cAAc,+
|
|
1
|
+
{"version":3,"file":"ToastItem.d.ts","sourceRoot":"","sources":["../../../src/components/toast/ToastItem.tsx"],"names":[],"mappings":"AAgBA,OAAO,EACL,KAAK,KAAK,EAEV,KAAK,MAAM,EAEX,KAAK,IAAI,EACT,KAAK,OAAO,EACb,MAAM,cAAc,CAAC;AAGtB,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,cAAc,EAEpB,MAAM,gBAAgB,CAAC;AA0DxB;;;GAGG;AACH,MAAM,WAAW,cAAe,SAAQ,aAAa;IACnD;;OAEG;IACH,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAEhC;;;OAGG;IACH,SAAS,EAAE,cAAc,CAAC;IAE1B;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IAEX;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,SAAS,CAAC,EACxB,EAAE,EACF,KAAK,EACL,OAAO,EACP,IAAa,EACb,OAAc,EACd,IAAI,EACJ,MAAM,EACN,WAAkB,EAClB,SAAS,EACT,SAAS,EACT,IAAI,EACJ,OAAO,EACP,KAAK,EACL,MAAM,EACN,QAAQ,GACT,EAAE,cAAc,+BA0HhB;yBA1Ie,SAAS"}
|
|
@@ -1,9 +1,9 @@
|
|
|
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 } from "../../utils/resolve-token.js";
|
|
8
8
|
import { CheckIcon as o } from "../../icons/CheckIcon.js";
|
|
9
9
|
import { CloseIcon as s } from "../../icons/CloseIcon.js";
|
|
@@ -35,7 +35,7 @@ function C(t = "info", n = !1) {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
function w({ id: o, title: c, message: l, type: u = "info", timeout: w = 3500, icon: T, action: E, dismissible: D = !0, onDismiss: O, placement: k, size: A, variant: j, color: M, radius: N, animated: P }) {
|
|
38
|
-
let F =
|
|
38
|
+
let F = r().components?.toast, [I, L] = y(!1), R = i(P, F?.animated, void 0, d.animated), z = v(() => {
|
|
39
39
|
R && !I ? (L(!0), setTimeout(() => {
|
|
40
40
|
O(o);
|
|
41
41
|
}, 150)) : O(o);
|
|
@@ -44,11 +44,12 @@ function w({ id: o, title: c, message: l, type: u = "info", timeout: w = 3500, i
|
|
|
44
44
|
I,
|
|
45
45
|
O,
|
|
46
46
|
o
|
|
47
|
-
]), { pause: B, resume: V } = _(z, w), H = M ?? S(u), U = j === "solid", W = a(A, g, d.size), G = a(A, m, d.size), K = a(A, p, d.size), q = a(A, h, d.size), J = a(N,
|
|
47
|
+
]), { pause: B, resume: V } = _(z, w), H = M ?? S(u), U = j === "solid", W = a(A, g, d.size), G = a(A, m, d.size), K = a(A, p, d.size), q = a(A, h, d.size), J = a(N, t, d.radius), Y = f[k], X = P ? I ? Y.exit : Y.enter : "";
|
|
48
48
|
return /* @__PURE__ */ x("div", {
|
|
49
|
+
role: "status",
|
|
49
50
|
onMouseEnter: B,
|
|
50
51
|
onMouseLeave: V,
|
|
51
|
-
className: e("pointer-events-auto relative flex gap-3 items-start shadow-lg border backdrop-blur-md select-none scrollbar-hide overflow-hidden transition-all duration-200 active:scale-[0.99]", "bg-background", W, G, J, X,
|
|
52
|
+
className: e("pointer-events-auto relative flex gap-3 items-start shadow-lg border backdrop-blur-md select-none scrollbar-hide overflow-hidden transition-all duration-200 active:scale-[0.99]", "bg-background", W, G, J, X, n(j, H)),
|
|
52
53
|
children: [
|
|
53
54
|
/* @__PURE__ */ b("div", {
|
|
54
55
|
className: "shrink-0 pt-0.5 ps-1",
|
|
@@ -75,7 +76,7 @@ function w({ id: o, title: c, message: l, type: u = "info", timeout: w = 3500, i
|
|
|
75
76
|
type: "button",
|
|
76
77
|
onClick: () => O(o),
|
|
77
78
|
"aria-label": "Dismiss notification",
|
|
78
|
-
className: "shrink-0 p-1 rounded-md opacity-70 hover:opacity-100 hover:bg-
|
|
79
|
+
className: "shrink-0 p-1 rounded-md opacity-70 hover:opacity-100 hover:bg-foreground/10 transition-all cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-current",
|
|
79
80
|
children: /* @__PURE__ */ b(s, { className: "w-4 h-4" })
|
|
80
81
|
})
|
|
81
82
|
]
|
|
@@ -1,9 +1,9 @@
|
|
|
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 ee } from "../../shared/variant.js";
|
|
6
|
+
import { useAsheeConfig as n } from "../../libs/context.js";
|
|
7
7
|
import { resolveCascade as r, resolveClassKey as i, resolveRadiusKey as te } from "../../utils/resolve-token.js";
|
|
8
8
|
import { useFloatingZIndex as ne } from "../../libs/use-floating-z-index.js";
|
|
9
9
|
import { FALLBACK_TOOLTIP_CONFIG as a } from "./tooltip-config.js";
|
|
@@ -13,7 +13,7 @@ import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
|
13
13
|
import { FloatingArrow as ie, FloatingPortal as ae, arrow as oe, autoUpdate as se, flip as ce, offset as le, shift as g, useDismiss as _, useFloating as v, useFocus as y, useHover as b, useInteractions as x, useRole as S } from "@floating-ui/react";
|
|
14
14
|
//#region src/components/tooltip/Tooltip.tsx
|
|
15
15
|
var C = u(({ content: u, children: C, variant: w, color: T, size: E, placement: D, delay: O, offset: k, radius: A, showArrow: j, portal: M, zIndex: N, isDisabled: P = !1, className: F }, I) => {
|
|
16
|
-
let L =
|
|
16
|
+
let L = n(), R = L.components?.tooltip, z = d(null), [B, V] = f(!1), H = r(E, R?.size, void 0, a.size), U = r(D, R?.placement, void 0, a.placement), W = r(w, R?.variant, L.defaultVariant, a.variant), ue = r(T, R?.color, L.defaultColor, a.color), de = r(O, R?.delay, void 0, a.delay), fe = r(k, R?.offset, void 0, a.offset), G = r(j, R?.showArrow, void 0, a.showArrow), K = r(M, R?.portal, void 0, a.portal), pe = r(N, R?.zIndex, void 0, a.zIndex), me = te(A, R?.radius, L.defaultRadius, a.radius), he = i(H, s, a.size), ge = i(H, c, a.size), _e = i(H, o, a.size), ve = i(me, t, a.radius), q = [
|
|
17
17
|
le(fe),
|
|
18
18
|
ce({ padding: 8 }),
|
|
19
19
|
g({ padding: 8 })
|
|
@@ -54,7 +54,7 @@ var C = u(({ content: u, children: C, variant: w, color: T, size: E, placement:
|
|
|
54
54
|
className: "pointer-events-none",
|
|
55
55
|
...Se(),
|
|
56
56
|
children: /* @__PURE__ */ h("div", {
|
|
57
|
-
className: e("font-medium border whitespace-nowrap select-none bg-background shadow-md transition-all duration-150 ease-out animate-in fade-in-0 zoom-in-95", he, ge, _e, ve,
|
|
57
|
+
className: e("font-medium border whitespace-nowrap select-none bg-background shadow-md transition-all duration-150 ease-out animate-in fade-in-0 zoom-in-95", he, ge, _e, ve, ee(W, ue), R?.className, F),
|
|
58
58
|
children: [u, G && /* @__PURE__ */ m(ie, {
|
|
59
59
|
ref: z,
|
|
60
60
|
context: X,
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ElementType, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { TypographyLeading, TypographySize, TypographyTracking, TypographyWeight } from '../../shared';
|
|
3
|
+
import { TypographyConfig } from './typography-config';
|
|
4
|
+
/**
|
|
5
|
+
* Typography props. Combines the component configuration with the shared
|
|
6
|
+
* typography options and standard element attributes.
|
|
7
|
+
*
|
|
8
|
+
* The ARIA `role` attribute is intentionally not part of the inherited
|
|
9
|
+
* attributes: `role` here is the typography role, and letting both exist would
|
|
10
|
+
* make the prop ambiguous. Consumers who need an explicit ARIA role can wrap the
|
|
11
|
+
* component or render a semantic element through `as`.
|
|
12
|
+
*/
|
|
13
|
+
export interface TypographyProps extends TypographyConfig, Omit<HTMLAttributes<HTMLElement>, "color" | "role"> {
|
|
14
|
+
/**
|
|
15
|
+
* Element to render.
|
|
16
|
+
* Defaults to the semantic element implied by the resolved role.
|
|
17
|
+
*/
|
|
18
|
+
as?: ElementType;
|
|
19
|
+
/**
|
|
20
|
+
* Size token override. Replaces the size part of the role's treatment.
|
|
21
|
+
*/
|
|
22
|
+
size?: TypographySize;
|
|
23
|
+
/**
|
|
24
|
+
* Font-weight token override.
|
|
25
|
+
*/
|
|
26
|
+
weight?: TypographyWeight;
|
|
27
|
+
/**
|
|
28
|
+
* Line-height token override.
|
|
29
|
+
*/
|
|
30
|
+
leading?: TypographyLeading;
|
|
31
|
+
/**
|
|
32
|
+
* Letter-spacing token override.
|
|
33
|
+
*/
|
|
34
|
+
tracking?: TypographyTracking;
|
|
35
|
+
/**
|
|
36
|
+
* Content to render.
|
|
37
|
+
*/
|
|
38
|
+
children?: ReactNode;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Semantic text rendering.
|
|
42
|
+
*
|
|
43
|
+
* Resolution order follows the standard AsheeUI cascade: instance prop, then
|
|
44
|
+
* `components.typography` configuration, then the framework fallback. A role
|
|
45
|
+
* supplies size, weight, leading and tracking together; any explicit token prop
|
|
46
|
+
* replaces just that part of the treatment.
|
|
47
|
+
*
|
|
48
|
+
* @param props - Typography options and element attributes.
|
|
49
|
+
* @returns The rendered semantic element.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```tsx
|
|
53
|
+
* <Typography role="heading-lg">Dashboard</Typography>
|
|
54
|
+
* <Typography role="body-md" tone="muted" as="h2">A muted paragraph rendered as a heading</Typography>
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* @see TYPOGRAPHY_ROLE_TOKEN - The documented role table.
|
|
58
|
+
*/
|
|
59
|
+
export declare const Typography: import('react').ForwardRefExoticComponent<TypographyProps & import('react').RefAttributes<HTMLElement>>;
|
|
60
|
+
//# sourceMappingURL=Typography.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../src/components/typography/Typography.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,EAKL,KAAK,iBAAiB,EAEtB,KAAK,cAAc,EAEnB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACtB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,qBAAqB,CAAC;AAG7B;;;;;;;;GAQG;AACH,MAAM,WAAW,eACf,SAAQ,gBAAgB,EACtB,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACrD;;;OAGG;IACH,EAAE,CAAC,EAAE,WAAW,CAAC;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IAEtB;;OAEG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAE5B;;OAEG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAE9B;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,UAAU,yGAuFtB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { cn as e } from "../../utils/cn.js";
|
|
4
|
+
import { TYPOGRAPHY_ALIGN_CLASS as t, TYPOGRAPHY_ROLE_DEFAULT_ELEMENT as n, TYPOGRAPHY_TONE_CLASS as r } from "../../shared/typography.js";
|
|
5
|
+
import { useAsheeConfig as i } from "../../libs/context.js";
|
|
6
|
+
import { resolveCascade as a } from "../../utils/resolve-token.js";
|
|
7
|
+
import { FALLBACK_TYPOGRAPHY_CONFIG as o } from "./typography-config.js";
|
|
8
|
+
import { resolveTypographyRoleClass as s } from "./typography-styles.js";
|
|
9
|
+
import { forwardRef as c } from "react";
|
|
10
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
11
|
+
//#region src/components/typography/Typography.tsx
|
|
12
|
+
var u = c(({ as: c, role: u, tone: d, align: f, truncate: p, size: m, weight: h, leading: g, tracking: _, className: v, children: y, ...b }, x) => {
|
|
13
|
+
let S = i().components?.typography, C = a(u, S?.role, void 0, o.role), w = a(d, S?.tone, void 0, o.tone), T = a(f, S?.align, void 0, void 0), E = a(p, S?.truncate, void 0, o.truncate), D = S?.roles?.[C], O = {
|
|
14
|
+
size: m ?? D?.size,
|
|
15
|
+
weight: h ?? D?.weight,
|
|
16
|
+
leading: g ?? D?.leading,
|
|
17
|
+
tracking: _ ?? D?.tracking
|
|
18
|
+
}, k = O.size !== void 0 || O.weight !== void 0 || O.leading !== void 0 || O.tracking !== void 0 ? s(C, O) : s(C), A = e(k, T ? t[T] : void 0, E && "truncate", r[w], S?.className, v), j = c ?? n[C];
|
|
19
|
+
return /* @__PURE__ */ l(j, {
|
|
20
|
+
ref: x,
|
|
21
|
+
className: A,
|
|
22
|
+
...b,
|
|
23
|
+
children: y
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
u.displayName = "Typography";
|
|
27
|
+
//#endregion
|
|
28
|
+
export { u as Typography };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/typography/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { TypographyAlign, TypographyRole, TypographyRoleTokens, TypographyTone } from '../../shared';
|
|
2
|
+
/**
|
|
3
|
+
* Configuration options for the Typography component.
|
|
4
|
+
*
|
|
5
|
+
* Set under `components.typography` in the AsheeUI configuration.
|
|
6
|
+
*/
|
|
7
|
+
export interface TypographyConfig {
|
|
8
|
+
/**
|
|
9
|
+
* Default semantic role.
|
|
10
|
+
* @default "body-md"
|
|
11
|
+
*/
|
|
12
|
+
role?: TypographyRole;
|
|
13
|
+
/**
|
|
14
|
+
* Default colour treatment.
|
|
15
|
+
* @default "default"
|
|
16
|
+
*/
|
|
17
|
+
tone?: TypographyTone;
|
|
18
|
+
/**
|
|
19
|
+
* Default text alignment. Unset means the alignment is inherited.
|
|
20
|
+
*/
|
|
21
|
+
align?: TypographyAlign;
|
|
22
|
+
/**
|
|
23
|
+
* Whether text is truncated to a single line by default.
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
truncate?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Per-application role overrides.
|
|
29
|
+
*
|
|
30
|
+
* Each entry retunes the size/style tokens a role resolves to, so a role can
|
|
31
|
+
* keep its semantic meaning while the underlying typography changes. Values
|
|
32
|
+
* still come from the static class maps, so no class is built dynamically.
|
|
33
|
+
*/
|
|
34
|
+
roles?: Partial<Record<TypographyRole, Partial<TypographyRoleTokens>>>;
|
|
35
|
+
/**
|
|
36
|
+
* Extra classes applied to every instance, before the instance `className`.
|
|
37
|
+
*/
|
|
38
|
+
className?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Default configuration registered for the Typography component.
|
|
42
|
+
* Intentionally empty: roles and tones have framework fallbacks.
|
|
43
|
+
*/
|
|
44
|
+
export declare const defaultTypographyConfig: TypographyConfig;
|
|
45
|
+
declare module "../../libs/registry" {
|
|
46
|
+
interface ComponentTypeConfigRegistry {
|
|
47
|
+
typography: TypographyConfig;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Hard fallback values used when no cascade tier provides a value.
|
|
52
|
+
*/
|
|
53
|
+
export declare const FALLBACK_TYPOGRAPHY_CONFIG: Required<Pick<TypographyConfig, "role" | "tone" | "truncate">>;
|
|
54
|
+
//# sourceMappingURL=typography-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography-config.d.ts","sourceRoot":"","sources":["../../../src/components/typography/typography-config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,cAAc,EACf,MAAM,cAAc,CAAC;AAEtB;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IAEtB;;;OAGG;IACH,IAAI,CAAC,EAAE,cAAc,CAAC;IAEtB;;OAEG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IAExB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC;IAEvE;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,gBAAqB,CAAC;AAE5D,OAAO,QAAQ,qBAAqB,CAAC;IACnC,UAAU,2BAA2B;QACnC,UAAU,EAAE,gBAAgB,CAAC;KAC9B;CACF;AAID;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAC/C,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC,CAKrD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { registerComponentDefaults as e } from "../../libs/registry.js";
|
|
3
|
+
//#region src/components/typography/typography-config.ts
|
|
4
|
+
var t = {};
|
|
5
|
+
e("typography", t);
|
|
6
|
+
var n = {
|
|
7
|
+
role: "body-md",
|
|
8
|
+
tone: "default",
|
|
9
|
+
truncate: !1
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { n as FALLBACK_TYPOGRAPHY_CONFIG, t as defaultTypographyConfig };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TypographyRole, TypographyRoleTokens } from '../../shared';
|
|
2
|
+
/**
|
|
3
|
+
* Compose a role's class string from its size/style tokens.
|
|
4
|
+
*
|
|
5
|
+
* @param tokens - Complete size/style tokens.
|
|
6
|
+
* @returns A space-separated class string of static utilities.
|
|
7
|
+
*/
|
|
8
|
+
export declare function composeTypographyRoleClass(tokens: TypographyRoleTokens): string;
|
|
9
|
+
/**
|
|
10
|
+
* Resolve the class string for a semantic role.
|
|
11
|
+
*
|
|
12
|
+
* With no overrides the role's literal class string is returned directly. When
|
|
13
|
+
* a role has been retuned, the tokens are resolved (overrides on top of the
|
|
14
|
+
* role table) and composed from the static maps.
|
|
15
|
+
*
|
|
16
|
+
* @param role - Semantic role.
|
|
17
|
+
* @param overrides - Partial token overrides for the role.
|
|
18
|
+
* @returns A space-separated class string of static utilities.
|
|
19
|
+
*/
|
|
20
|
+
export declare function resolveTypographyRoleClass(role: TypographyRole, overrides?: Partial<TypographyRoleTokens>): string;
|
|
21
|
+
//# sourceMappingURL=typography-styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography-styles.d.ts","sourceRoot":"","sources":["../../../src/components/typography/typography-styles.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAOL,KAAK,cAAc,EACnB,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AAGtB;;;;;GAKG;AACH,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,oBAAoB,GAC3B,MAAM,CAOR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,cAAc,EACpB,SAAS,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,GACxC,MAAM,CAcR"}
|