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 @@
|
|
|
1
|
+
{"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../src/puck/fields.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,UAAU,EAEV,WAAW,EACX,WAAW,EACX,aAAa,EACb,SAAS,EACV,MAAM,kBAAkB,CAAC;AAE1B;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,EAC1C,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,SAAS,CAAC,EAAE,GACpB,WAAW,CAMb;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAExE;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,MAAM,EACb,WAAW,CAAC,EAAE,MAAM,GACnB,aAAa,CAEf;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,8BAA+B,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,eAAe,wDAQlB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,kBAAkB,sCAAuC,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,sBAAsB,2CAA4C,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,eAAe,+BAAgC,CAAC;AAE7D;;GAEG;AACH,eAAO,MAAM,sBAAsB,kDAKzB,CAAC;AAEX;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,CAQA,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,UAAU,CACzC,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,CAU9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,UAAU,CAC5C,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC,CAiB5C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;CAGI,CAAC;AAElC;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,UAAU,CAC7C,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAerD,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region src/puck/fields.ts
|
|
3
|
+
function e(e, t) {
|
|
4
|
+
return {
|
|
5
|
+
type: "select",
|
|
6
|
+
label: e,
|
|
7
|
+
options: t.map((e) => ({
|
|
8
|
+
label: e,
|
|
9
|
+
value: e
|
|
10
|
+
}))
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
function t(e, t) {
|
|
14
|
+
return {
|
|
15
|
+
type: "text",
|
|
16
|
+
label: e,
|
|
17
|
+
placeholder: t
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function n(e, t) {
|
|
21
|
+
return {
|
|
22
|
+
type: "textarea",
|
|
23
|
+
label: e,
|
|
24
|
+
placeholder: t
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
var r = ["start", "center"], i = [
|
|
28
|
+
"none",
|
|
29
|
+
"xs",
|
|
30
|
+
"sm",
|
|
31
|
+
"md",
|
|
32
|
+
"lg",
|
|
33
|
+
"xl",
|
|
34
|
+
"2xl"
|
|
35
|
+
], a = [
|
|
36
|
+
"none",
|
|
37
|
+
"muted",
|
|
38
|
+
"tinted"
|
|
39
|
+
], o = [
|
|
40
|
+
"sm",
|
|
41
|
+
"md",
|
|
42
|
+
"lg",
|
|
43
|
+
"xl",
|
|
44
|
+
"full"
|
|
45
|
+
], s = [
|
|
46
|
+
"1",
|
|
47
|
+
"2",
|
|
48
|
+
"3",
|
|
49
|
+
"4"
|
|
50
|
+
], c = [
|
|
51
|
+
"solid",
|
|
52
|
+
"faded",
|
|
53
|
+
"bordered",
|
|
54
|
+
"ghost"
|
|
55
|
+
], l = {
|
|
56
|
+
type: "object",
|
|
57
|
+
label: "Action",
|
|
58
|
+
objectFields: {
|
|
59
|
+
label: t("Action label"),
|
|
60
|
+
href: t("Action link", "/pricing"),
|
|
61
|
+
variant: e("Action emphasis", c)
|
|
62
|
+
}
|
|
63
|
+
}, u = {
|
|
64
|
+
type: "array",
|
|
65
|
+
label: "Features",
|
|
66
|
+
arrayFields: {
|
|
67
|
+
title: t("Feature title"),
|
|
68
|
+
description: n("Feature description")
|
|
69
|
+
},
|
|
70
|
+
defaultItemProps: {
|
|
71
|
+
title: "New feature",
|
|
72
|
+
description: ""
|
|
73
|
+
},
|
|
74
|
+
getItemSummary: (e) => e.title
|
|
75
|
+
}, d = {
|
|
76
|
+
type: "array",
|
|
77
|
+
label: "Feature lines",
|
|
78
|
+
arrayFields: {
|
|
79
|
+
label: t("Line"),
|
|
80
|
+
included: {
|
|
81
|
+
type: "radio",
|
|
82
|
+
label: "Included",
|
|
83
|
+
options: [{
|
|
84
|
+
label: "Included",
|
|
85
|
+
value: !0
|
|
86
|
+
}, {
|
|
87
|
+
label: "Not included",
|
|
88
|
+
value: !1
|
|
89
|
+
}]
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
defaultItemProps: {
|
|
93
|
+
label: "New line",
|
|
94
|
+
included: !0
|
|
95
|
+
},
|
|
96
|
+
getItemSummary: (e) => e.label
|
|
97
|
+
}, f = {
|
|
98
|
+
label: t("Link label"),
|
|
99
|
+
href: t("Link", "/pricing")
|
|
100
|
+
}, p = {
|
|
101
|
+
type: "array",
|
|
102
|
+
label: "Quotes",
|
|
103
|
+
arrayFields: {
|
|
104
|
+
quote: n("Quote"),
|
|
105
|
+
name: t("Name"),
|
|
106
|
+
role: t("Role")
|
|
107
|
+
},
|
|
108
|
+
defaultItemProps: {
|
|
109
|
+
quote: "They send twice as fast as they used to.",
|
|
110
|
+
name: "New customer",
|
|
111
|
+
role: ""
|
|
112
|
+
},
|
|
113
|
+
getItemSummary: (e) => e.name
|
|
114
|
+
};
|
|
115
|
+
//#endregion
|
|
116
|
+
export { l as ACTION_FIELDS, c as ACTION_VARIANT_OPTIONS, r as ALIGNMENT_OPTIONS, a as BACKGROUND_OPTIONS, s as COLUMNS_OPTIONS, o as CONTAINER_SIZE_OPTIONS, u as FEATURE_ITEM_FIELD, f as LINK_ITEM_FIELDS, d as PRICING_FEATURE_FIELD, i as SPACING_OPTIONS, p as TESTIMONIAL_ITEM_FIELD, e as selectField, t as textField, n as textareaField };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Puck integration for AsheeUI.
|
|
3
|
+
*
|
|
4
|
+
* The subpath holds the framework's block configuration: the fields a builder
|
|
5
|
+
* can edit, one block per component, the categories they are filed under and the
|
|
6
|
+
* page shell a published page renders into. Nothing here is imported by the
|
|
7
|
+
* component library itself, so a consumer that does not use Puck never loads it.
|
|
8
|
+
*
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import { asheePuckConfig } from "asheeui/puck";
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export * from './adapters';
|
|
14
|
+
export * from './blocks/content';
|
|
15
|
+
export * from './blocks/layout';
|
|
16
|
+
export * from './blocks/navigation';
|
|
17
|
+
export * from './blocks/sections';
|
|
18
|
+
export * from './blocks/utility';
|
|
19
|
+
export * from './config';
|
|
20
|
+
export * from './fields';
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/puck/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { toAction as e, toColumns as t } from "./adapters.js";
|
|
3
|
+
import { ACTION_FIELDS as n, ACTION_VARIANT_OPTIONS as r, ALIGNMENT_OPTIONS as i, BACKGROUND_OPTIONS as a, COLUMNS_OPTIONS as o, CONTAINER_SIZE_OPTIONS as s, FEATURE_ITEM_FIELD as c, LINK_ITEM_FIELDS as l, PRICING_FEATURE_FIELD as u, SPACING_OPTIONS as d, TESTIMONIAL_ITEM_FIELD as f, selectField as p, textField as m, textareaField as h } from "./fields.js";
|
|
4
|
+
import { headingBlock as g, textBlock as _ } from "./blocks/content.js";
|
|
5
|
+
import { COLUMN_RATIO_OPTIONS as v, columnsBlock as y, sectionBlock as b } from "./blocks/layout.js";
|
|
6
|
+
import { footerBlock as x, navbarBlock as S } from "./blocks/navigation.js";
|
|
7
|
+
import { ctaBlock as C, featureGridBlock as w, heroBlock as T, pricingCardBlock as E, testimonialsBlock as D } from "./blocks/sections.js";
|
|
8
|
+
import { emptyStateBlock as O } from "./blocks/utility.js";
|
|
9
|
+
import { asheePuckConfig as k } from "./config.js";
|
|
10
|
+
export { n as ACTION_FIELDS, r as ACTION_VARIANT_OPTIONS, i as ALIGNMENT_OPTIONS, a as BACKGROUND_OPTIONS, o as COLUMNS_OPTIONS, v as COLUMN_RATIO_OPTIONS, s as CONTAINER_SIZE_OPTIONS, c as FEATURE_ITEM_FIELD, l as LINK_ITEM_FIELDS, u as PRICING_FEATURE_FIELD, d as SPACING_OPTIONS, f as TESTIMONIAL_ITEM_FIELD, k as asheePuckConfig, y as columnsBlock, C as ctaBlock, O as emptyStateBlock, w as featureGridBlock, x as footerBlock, g as headingBlock, T as heroBlock, S as navbarBlock, E as pricingCardBlock, b as sectionBlock, p as selectField, D as testimonialsBlock, _ as textBlock, m as textField, h as textareaField, e as toAction, t as toColumns };
|
|
@@ -13,15 +13,44 @@ var n = {
|
|
|
13
13
|
success: "--ashee-success",
|
|
14
14
|
scrollbarThumb: "--ashee-scrollbar-thumb",
|
|
15
15
|
scrollbarTrack: "--ashee-scrollbar-track"
|
|
16
|
-
}, r = "ashee-theme-vars";
|
|
17
|
-
function
|
|
16
|
+
}, r = "ashee-theme-vars", i = "ashee-theme-script";
|
|
17
|
+
function a(e) {
|
|
18
18
|
return Object.entries(e).map(([e, t]) => {
|
|
19
19
|
let r = Object.entries(t).map(([e, t]) => ` ${n[e]}: ${t};`).join("\n");
|
|
20
20
|
return `${e === "light" ? ":root, .theme-light" : `.theme-${e}`} {\n${r}\n}`;
|
|
21
21
|
}).join("\n\n");
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
var o = {
|
|
24
|
+
width: "--ashee-scrollbar-width",
|
|
25
|
+
radius: "--ashee-scrollbar-radius",
|
|
26
|
+
trackRadius: "--ashee-scrollbar-track-radius",
|
|
27
|
+
thumbBorder: "--ashee-scrollbar-thumb-border",
|
|
28
|
+
gutter: "--ashee-scrollbar-gutter"
|
|
29
|
+
};
|
|
30
|
+
function s(e) {
|
|
31
|
+
if (!e) return "";
|
|
32
|
+
let t = {
|
|
33
|
+
width: e.width,
|
|
34
|
+
radius: e.radius,
|
|
35
|
+
trackRadius: e.trackRadius ?? e.radius,
|
|
36
|
+
thumbBorder: e.thumbBorder,
|
|
37
|
+
gutter: e.gutter
|
|
38
|
+
}, n = Object.entries(o).map(([e, n]) => {
|
|
39
|
+
let r = t[e];
|
|
40
|
+
return r ? ` ${n}: ${r};` : null;
|
|
41
|
+
}).filter((e) => e !== null);
|
|
42
|
+
return n.length > 0 ? `:root {\n${n.join("\n")}\n}` : "";
|
|
43
|
+
}
|
|
44
|
+
function c(e) {
|
|
45
|
+
return [a(e.color), s(e.components?.scrollbar)].filter((e) => e !== "").join("\n\n");
|
|
46
|
+
}
|
|
47
|
+
function l(e) {
|
|
48
|
+
if (typeof document > "u" || document.getElementById("ashee-theme-vars")) return;
|
|
49
|
+
let t = document.createElement("style");
|
|
50
|
+
t.id = r, t.textContent = c(e), document.head.appendChild(t);
|
|
51
|
+
}
|
|
52
|
+
function u({ config: n }) {
|
|
53
|
+
let a = Object.keys(n.color ?? {}), o = n.defaultTheme ?? "system", s = e, l = c(n), u = `
|
|
25
54
|
(function() {
|
|
26
55
|
var el = document.documentElement;
|
|
27
56
|
var storageKey = ${JSON.stringify(s)};
|
|
@@ -35,7 +64,13 @@ function a({ config: n }) {
|
|
|
35
64
|
} catch (e) {}
|
|
36
65
|
|
|
37
66
|
var selection = stored || defaultTheme;
|
|
67
|
+
if (selection !== 'system' && themes.indexOf(selection) === -1) {
|
|
68
|
+
selection = defaultTheme;
|
|
69
|
+
}
|
|
38
70
|
var resolved = selection === 'system' ? (systemDark ? 'dark' : 'light') : selection;
|
|
71
|
+
if (themes.indexOf(resolved) === -1) {
|
|
72
|
+
resolved = themes.indexOf(defaultTheme) !== -1 ? defaultTheme : (themes[0] || resolved);
|
|
73
|
+
}
|
|
39
74
|
|
|
40
75
|
var prefix = 'theme-';
|
|
41
76
|
for (var i = el.classList.length - 1; i >= 0; i--) {
|
|
@@ -51,16 +86,16 @@ function a({ config: n }) {
|
|
|
51
86
|
if (!styleEl) {
|
|
52
87
|
styleEl = document.createElement('style');
|
|
53
88
|
styleEl.id = ${JSON.stringify(r)};
|
|
54
|
-
styleEl.textContent = ${JSON.stringify(
|
|
89
|
+
styleEl.textContent = ${JSON.stringify(l)};
|
|
55
90
|
document.head.appendChild(styleEl);
|
|
56
91
|
}
|
|
57
92
|
})();
|
|
58
93
|
`;
|
|
59
94
|
return /* @__PURE__ */ t("script", {
|
|
60
|
-
id:
|
|
61
|
-
dangerouslySetInnerHTML: { __html:
|
|
95
|
+
id: i,
|
|
96
|
+
dangerouslySetInnerHTML: { __html: u },
|
|
62
97
|
suppressHydrationWarning: !0
|
|
63
98
|
});
|
|
64
99
|
}
|
|
65
100
|
//#endregion
|
|
66
|
-
export {
|
|
101
|
+
export { u as AsheeThemeScript, i as THEME_SCRIPT_ID, r as THEME_VARS_STYLE_ID, c as buildThemeVarsCss, l as ensureThemeVarsStyle };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ElementType, ReactNode } from 'react';
|
|
2
|
+
import { Radius, Size } from './radius';
|
|
3
|
+
import { Color, Variant } from './variant';
|
|
4
|
+
/**
|
|
5
|
+
* A call to action described as configuration.
|
|
6
|
+
*
|
|
7
|
+
* Every field maps to a prop of {@link Button}, so a configured action renders
|
|
8
|
+
* exactly like an action the consumer wrote by hand. `label` is the only
|
|
9
|
+
* required field: an action without a name cannot be read or clicked.
|
|
10
|
+
*/
|
|
11
|
+
export interface ActionConfig {
|
|
12
|
+
/**
|
|
13
|
+
* Visible name of the action, and the accessible name of its control.
|
|
14
|
+
*/
|
|
15
|
+
label: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Destination of the action.
|
|
18
|
+
* With one, the action renders as a link; without one, as a button.
|
|
19
|
+
*/
|
|
20
|
+
href?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Visual style of the action.
|
|
23
|
+
* Defaults to the emphasis the pattern gives that position: the primary
|
|
24
|
+
* action is solid and the secondary action is bordered.
|
|
25
|
+
*/
|
|
26
|
+
variant?: Variant;
|
|
27
|
+
/**
|
|
28
|
+
* Accent colour of the action.
|
|
29
|
+
*/
|
|
30
|
+
color?: Color;
|
|
31
|
+
/**
|
|
32
|
+
* Density of the action.
|
|
33
|
+
*/
|
|
34
|
+
size?: Size;
|
|
35
|
+
/**
|
|
36
|
+
* Corner rounding of the action.
|
|
37
|
+
*/
|
|
38
|
+
radius?: Radius;
|
|
39
|
+
/**
|
|
40
|
+
* Content before the label, typically an icon.
|
|
41
|
+
*/
|
|
42
|
+
icon?: ReactNode;
|
|
43
|
+
/**
|
|
44
|
+
* Component that replaces the anchor, such as a framework router link.
|
|
45
|
+
*/
|
|
46
|
+
component?: ElementType;
|
|
47
|
+
/**
|
|
48
|
+
* Props for that component.
|
|
49
|
+
*/
|
|
50
|
+
componentProps?: Record<string, unknown>;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../src/shared/action.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IAEjB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;IAEZ;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC1C"}
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Spacing token definitions for AsheeUI.
|
|
3
|
+
*
|
|
4
|
+
* This file provides the shared spacing scale that the layout components use
|
|
5
|
+
* for gaps, vertical rhythm and section padding. Every entry is a complete,
|
|
6
|
+
* static Tailwind class string, so the scale never assembles a utility name at
|
|
7
|
+
* runtime (Hard Rule 5) and a layout component can resolve spacing through the
|
|
8
|
+
* standard configuration cascade.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* The available spacing tokens.
|
|
12
|
+
* The scale is intentionally small: it exists so layout primitives agree on
|
|
13
|
+
* rhythm, not so it can express every value Tailwind supports.
|
|
14
|
+
*/
|
|
15
|
+
export type Space = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
16
|
+
/**
|
|
17
|
+
* Flex and grid gap classes for each spacing token.
|
|
18
|
+
* Used by `Stack` and `Grid` for the space between their children.
|
|
19
|
+
*/
|
|
20
|
+
export declare const SPACE_GAP_CLASS: Record<Space, string>;
|
|
21
|
+
/**
|
|
22
|
+
* Vertical rhythm classes for stacked block content.
|
|
23
|
+
* Applied to a container whose direct children are blocks rather than
|
|
24
|
+
* flex or grid items.
|
|
25
|
+
*/
|
|
26
|
+
export declare const SPACE_BLOCK_CLASS: Record<Space, string>;
|
|
27
|
+
/**
|
|
28
|
+
* Vertical padding classes for a page section.
|
|
29
|
+
* Larger tokens add a wider step at the `md` breakpoint, so the same token
|
|
30
|
+
* reads as a section on a phone and as a band on a wide screen.
|
|
31
|
+
*/
|
|
32
|
+
export declare const SPACE_PADDING_Y_CLASS: Record<Space, string>;
|
|
33
|
+
/**
|
|
34
|
+
* Horizontal padding classes for a page gutter.
|
|
35
|
+
* Used by `Container`, where the gutter widens with the viewport.
|
|
36
|
+
*/
|
|
37
|
+
export declare const SPACE_PADDING_X_CLASS: Record<Space, string>;
|
|
38
|
+
//# sourceMappingURL=spacing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spacing.d.ts","sourceRoot":"","sources":["../../src/shared/spacing.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;GAIG;AACH,MAAM,MAAM,KAAK,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAEtE;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAQjD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAQnD,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAQvD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAQvD,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region src/shared/spacing.ts
|
|
3
|
+
var e = {
|
|
4
|
+
none: "gap-0",
|
|
5
|
+
xs: "gap-1",
|
|
6
|
+
sm: "gap-2",
|
|
7
|
+
md: "gap-4",
|
|
8
|
+
lg: "gap-6",
|
|
9
|
+
xl: "gap-8",
|
|
10
|
+
"2xl": "gap-12"
|
|
11
|
+
}, t = {
|
|
12
|
+
none: "py-0",
|
|
13
|
+
xs: "py-2",
|
|
14
|
+
sm: "py-6",
|
|
15
|
+
md: "py-8 md:py-12",
|
|
16
|
+
lg: "py-12 md:py-16",
|
|
17
|
+
xl: "py-16 md:py-24",
|
|
18
|
+
"2xl": "py-20 md:py-32"
|
|
19
|
+
}, n = {
|
|
20
|
+
none: "px-0",
|
|
21
|
+
xs: "px-1",
|
|
22
|
+
sm: "px-3",
|
|
23
|
+
md: "px-4 sm:px-6",
|
|
24
|
+
lg: "px-4 sm:px-6 lg:px-8",
|
|
25
|
+
xl: "px-6 sm:px-8 lg:px-12",
|
|
26
|
+
"2xl": "px-8 sm:px-12 lg:px-16"
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { e as SPACE_GAP_CLASS, n as SPACE_PADDING_X_CLASS, t as SPACE_PADDING_Y_CLASS };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typography token definitions for AsheeUI.
|
|
3
|
+
*
|
|
4
|
+
* Typography uses the same two-layer model as radius and colour: a semantic
|
|
5
|
+
* layer (roles) resolves to a size/style layer, which resolves to complete,
|
|
6
|
+
* static Tailwind class strings. This file holds the types and the mappings;
|
|
7
|
+
* the public `Typography` component consumes them.
|
|
8
|
+
*
|
|
9
|
+
* @see `docs/docs/asheeui-typography-specification-proposal.md` (approved M2
|
|
10
|
+
* specification) for the rationale, the role table and the compatibility notes.
|
|
11
|
+
*/
|
|
12
|
+
/** The available typography size tokens. */
|
|
13
|
+
export type TypographySize = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
|
|
14
|
+
/** The available font-weight tokens. */
|
|
15
|
+
export type TypographyWeight = "normal" | "medium" | "semibold" | "bold";
|
|
16
|
+
/** The available line-height tokens. */
|
|
17
|
+
export type TypographyLeading = "tight" | "snug" | "normal" | "relaxed" | "loose";
|
|
18
|
+
/** The available letter-spacing tokens. */
|
|
19
|
+
export type TypographyTracking = "tighter" | "tight" | "normal" | "wide" | "wider" | "widest";
|
|
20
|
+
/**
|
|
21
|
+
* The semantic typography roles.
|
|
22
|
+
* A role describes why text exists and resolves to a complete treatment.
|
|
23
|
+
*/
|
|
24
|
+
export type TypographyRole = "display" | "heading-xl" | "heading-lg" | "heading-md" | "heading-sm" | "body-lg" | "body-md" | "body-sm" | "label" | "caption" | "overline";
|
|
25
|
+
/**
|
|
26
|
+
* The colour treatments available to typography.
|
|
27
|
+
* `default`, `muted` and `disabled` are derived from the foreground token;
|
|
28
|
+
* the remaining values are framework colour tokens resolved through the colour
|
|
29
|
+
* engine, never raw Tailwind palette colours.
|
|
30
|
+
*/
|
|
31
|
+
export type TypographyTone = "default" | "muted" | "disabled" | "primary" | "secondary" | "danger" | "warning" | "success" | "none";
|
|
32
|
+
/** Text alignment options. */
|
|
33
|
+
export type TypographyAlign = "left" | "center" | "right" | "justify";
|
|
34
|
+
/** The size/style tokens a role resolves to. */
|
|
35
|
+
export interface TypographyRoleTokens {
|
|
36
|
+
/** Size token. */
|
|
37
|
+
size: TypographySize;
|
|
38
|
+
/** Font-weight token. */
|
|
39
|
+
weight: TypographyWeight;
|
|
40
|
+
/** Line-height token. */
|
|
41
|
+
leading: TypographyLeading;
|
|
42
|
+
/** Letter-spacing token. */
|
|
43
|
+
tracking: TypographyTracking;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Size token to static Tailwind class.
|
|
47
|
+
* Note the deliberate difference between the token name (`md`) and the utility
|
|
48
|
+
* (`text-base`): the token is the semantic name, as with `RADIUS_CLASS`.
|
|
49
|
+
*/
|
|
50
|
+
export declare const TYPOGRAPHY_SIZE_CLASS: Record<TypographySize, string>;
|
|
51
|
+
/** Font-weight token to static Tailwind class. */
|
|
52
|
+
export declare const TYPOGRAPHY_WEIGHT_CLASS: Record<TypographyWeight, string>;
|
|
53
|
+
/** Line-height token to static Tailwind class. */
|
|
54
|
+
export declare const TYPOGRAPHY_LEADING_CLASS: Record<TypographyLeading, string>;
|
|
55
|
+
/** Letter-spacing token to static Tailwind class. */
|
|
56
|
+
export declare const TYPOGRAPHY_TRACKING_CLASS: Record<TypographyTracking, string>;
|
|
57
|
+
/** Tone token to static Tailwind class, using framework colour tokens only. */
|
|
58
|
+
export declare const TYPOGRAPHY_TONE_CLASS: Record<TypographyTone, string>;
|
|
59
|
+
/** Alignment token to static Tailwind class. */
|
|
60
|
+
export declare const TYPOGRAPHY_ALIGN_CLASS: Record<TypographyAlign, string>;
|
|
61
|
+
/**
|
|
62
|
+
* The size/style tokens each semantic role resolves to.
|
|
63
|
+
* This table is the documentation source for {@link TYPOGRAPHY_ROLE_CLASS};
|
|
64
|
+
* a test asserts the two can never drift.
|
|
65
|
+
*/
|
|
66
|
+
export declare const TYPOGRAPHY_ROLE_TOKEN: Record<TypographyRole, TypographyRoleTokens>;
|
|
67
|
+
/**
|
|
68
|
+
* The semantic element each role renders by default.
|
|
69
|
+
* Consumers can override the element without changing the treatment.
|
|
70
|
+
*/
|
|
71
|
+
export declare const TYPOGRAPHY_ROLE_DEFAULT_ELEMENT: Record<TypographyRole, string>;
|
|
72
|
+
/**
|
|
73
|
+
* The complete, static class string for each semantic role.
|
|
74
|
+
*
|
|
75
|
+
* These are written out in full rather than composed at render time: Tailwind
|
|
76
|
+
* class names must always be static and complete. The entries are asserted
|
|
77
|
+
* against {@link TYPOGRAPHY_ROLE_TOKEN} in the test suite, so the documented
|
|
78
|
+
* token table and the shipped classes cannot drift.
|
|
79
|
+
*/
|
|
80
|
+
export declare const TYPOGRAPHY_ROLE_CLASS: Record<TypographyRole, string>;
|
|
81
|
+
//# sourceMappingURL=typography.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../src/shared/typography.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,4CAA4C;AAC5C,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,CAAC;AAE9E,wCAAwC;AACxC,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;AAEzE,wCAAwC;AACxC,MAAM,MAAM,iBAAiB,GACzB,OAAO,GACP,MAAM,GACN,QAAQ,GACR,SAAS,GACT,OAAO,CAAC;AAEZ,2CAA2C;AAC3C,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,OAAO,GACP,QAAQ,GACR,MAAM,GACN,OAAO,GACP,QAAQ,CAAC;AAEb;;;GAGG;AACH,MAAM,MAAM,cAAc,GACtB,SAAS,GACT,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,SAAS,GACT,SAAS,GACT,SAAS,GACT,OAAO,GACP,SAAS,GACT,UAAU,CAAC;AAEf;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GACtB,SAAS,GACT,OAAO,GACP,UAAU,GACV,SAAS,GACT,WAAW,GACX,QAAQ,GACR,SAAS,GACT,SAAS,GACT,MAAM,CAAC;AAEX,8BAA8B;AAC9B,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;AAEtE,gDAAgD;AAChD,MAAM,WAAW,oBAAoB;IACnC,kBAAkB;IAClB,IAAI,EAAE,cAAc,CAAC;IACrB,yBAAyB;IACzB,MAAM,EAAE,gBAAgB,CAAC;IACzB,yBAAyB;IACzB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,4BAA4B;IAC5B,QAAQ,EAAE,kBAAkB,CAAC;CAC9B;AAED;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAQhE,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAKpE,CAAC;AAEF,kDAAkD;AAClD,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAMtE,CAAC;AAEF,qDAAqD;AACrD,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAOxE,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAUhE,CAAC;AAEF,gDAAgD;AAChD,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAKlE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CACxC,cAAc,EACd,oBAAoB,CAoErB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,+BAA+B,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAY1E,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAYhE,CAAC"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region src/shared/typography.ts
|
|
3
|
+
var e = {
|
|
4
|
+
xs: "text-xs",
|
|
5
|
+
sm: "text-sm",
|
|
6
|
+
md: "text-base",
|
|
7
|
+
lg: "text-lg",
|
|
8
|
+
xl: "text-xl",
|
|
9
|
+
"2xl": "text-2xl",
|
|
10
|
+
"3xl": "text-3xl"
|
|
11
|
+
}, t = {
|
|
12
|
+
normal: "font-normal",
|
|
13
|
+
medium: "font-medium",
|
|
14
|
+
semibold: "font-semibold",
|
|
15
|
+
bold: "font-bold"
|
|
16
|
+
}, n = {
|
|
17
|
+
tight: "leading-tight",
|
|
18
|
+
snug: "leading-snug",
|
|
19
|
+
normal: "leading-normal",
|
|
20
|
+
relaxed: "leading-relaxed",
|
|
21
|
+
loose: "leading-loose"
|
|
22
|
+
}, r = {
|
|
23
|
+
tighter: "tracking-tighter",
|
|
24
|
+
tight: "tracking-tight",
|
|
25
|
+
normal: "tracking-normal",
|
|
26
|
+
wide: "tracking-wide",
|
|
27
|
+
wider: "tracking-wider",
|
|
28
|
+
widest: "tracking-widest"
|
|
29
|
+
}, i = {
|
|
30
|
+
default: "text-foreground",
|
|
31
|
+
muted: "text-foreground/60",
|
|
32
|
+
disabled: "text-foreground/50",
|
|
33
|
+
primary: "text-primary",
|
|
34
|
+
secondary: "text-secondary",
|
|
35
|
+
danger: "text-danger",
|
|
36
|
+
warning: "text-warning",
|
|
37
|
+
success: "text-success",
|
|
38
|
+
none: "text-background"
|
|
39
|
+
}, a = {
|
|
40
|
+
left: "text-left",
|
|
41
|
+
center: "text-center",
|
|
42
|
+
right: "text-right",
|
|
43
|
+
justify: "text-justify"
|
|
44
|
+
}, o = {
|
|
45
|
+
display: {
|
|
46
|
+
size: "3xl",
|
|
47
|
+
weight: "semibold",
|
|
48
|
+
leading: "tight",
|
|
49
|
+
tracking: "tight"
|
|
50
|
+
},
|
|
51
|
+
"heading-xl": {
|
|
52
|
+
size: "2xl",
|
|
53
|
+
weight: "semibold",
|
|
54
|
+
leading: "tight",
|
|
55
|
+
tracking: "tight"
|
|
56
|
+
},
|
|
57
|
+
"heading-lg": {
|
|
58
|
+
size: "xl",
|
|
59
|
+
weight: "semibold",
|
|
60
|
+
leading: "snug",
|
|
61
|
+
tracking: "normal"
|
|
62
|
+
},
|
|
63
|
+
"heading-md": {
|
|
64
|
+
size: "lg",
|
|
65
|
+
weight: "semibold",
|
|
66
|
+
leading: "snug",
|
|
67
|
+
tracking: "normal"
|
|
68
|
+
},
|
|
69
|
+
"heading-sm": {
|
|
70
|
+
size: "md",
|
|
71
|
+
weight: "semibold",
|
|
72
|
+
leading: "snug",
|
|
73
|
+
tracking: "normal"
|
|
74
|
+
},
|
|
75
|
+
"body-lg": {
|
|
76
|
+
size: "lg",
|
|
77
|
+
weight: "normal",
|
|
78
|
+
leading: "relaxed",
|
|
79
|
+
tracking: "normal"
|
|
80
|
+
},
|
|
81
|
+
"body-md": {
|
|
82
|
+
size: "md",
|
|
83
|
+
weight: "normal",
|
|
84
|
+
leading: "normal",
|
|
85
|
+
tracking: "normal"
|
|
86
|
+
},
|
|
87
|
+
"body-sm": {
|
|
88
|
+
size: "sm",
|
|
89
|
+
weight: "normal",
|
|
90
|
+
leading: "normal",
|
|
91
|
+
tracking: "normal"
|
|
92
|
+
},
|
|
93
|
+
label: {
|
|
94
|
+
size: "sm",
|
|
95
|
+
weight: "medium",
|
|
96
|
+
leading: "normal",
|
|
97
|
+
tracking: "normal"
|
|
98
|
+
},
|
|
99
|
+
caption: {
|
|
100
|
+
size: "xs",
|
|
101
|
+
weight: "normal",
|
|
102
|
+
leading: "normal",
|
|
103
|
+
tracking: "normal"
|
|
104
|
+
},
|
|
105
|
+
overline: {
|
|
106
|
+
size: "xs",
|
|
107
|
+
weight: "semibold",
|
|
108
|
+
leading: "normal",
|
|
109
|
+
tracking: "wider"
|
|
110
|
+
}
|
|
111
|
+
}, s = {
|
|
112
|
+
display: "h1",
|
|
113
|
+
"heading-xl": "h1",
|
|
114
|
+
"heading-lg": "h2",
|
|
115
|
+
"heading-md": "h3",
|
|
116
|
+
"heading-sm": "h4",
|
|
117
|
+
"body-lg": "p",
|
|
118
|
+
"body-md": "p",
|
|
119
|
+
"body-sm": "p",
|
|
120
|
+
label: "span",
|
|
121
|
+
caption: "span",
|
|
122
|
+
overline: "span"
|
|
123
|
+
}, c = {
|
|
124
|
+
display: "text-3xl font-semibold leading-tight tracking-tight",
|
|
125
|
+
"heading-xl": "text-2xl font-semibold leading-tight tracking-tight",
|
|
126
|
+
"heading-lg": "text-xl font-semibold leading-snug tracking-normal",
|
|
127
|
+
"heading-md": "text-lg font-semibold leading-snug tracking-normal",
|
|
128
|
+
"heading-sm": "text-base font-semibold leading-snug tracking-normal",
|
|
129
|
+
"body-lg": "text-lg font-normal leading-relaxed tracking-normal",
|
|
130
|
+
"body-md": "text-base font-normal leading-normal tracking-normal",
|
|
131
|
+
"body-sm": "text-sm font-normal leading-normal tracking-normal",
|
|
132
|
+
label: "text-sm font-medium leading-normal tracking-normal",
|
|
133
|
+
caption: "text-xs font-normal leading-normal tracking-normal",
|
|
134
|
+
overline: "text-xs font-semibold leading-normal tracking-wider"
|
|
135
|
+
};
|
|
136
|
+
//#endregion
|
|
137
|
+
export { a as TYPOGRAPHY_ALIGN_CLASS, n as TYPOGRAPHY_LEADING_CLASS, c as TYPOGRAPHY_ROLE_CLASS, s as TYPOGRAPHY_ROLE_DEFAULT_ELEMENT, o as TYPOGRAPHY_ROLE_TOKEN, e as TYPOGRAPHY_SIZE_CLASS, i as TYPOGRAPHY_TONE_CLASS, r as TYPOGRAPHY_TRACKING_CLASS, t as TYPOGRAPHY_WEIGHT_CLASS };
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Utility functions for resolving cascade values in AsheeUI.
|
|
3
|
-
* This file provides helper functions that implement the configuration
|
|
4
|
-
* precedence hierarchy: instance prop > component config > theme default > hard fallback.
|
|
5
|
-
* These utilities are used throughout the component library to resolve
|
|
6
|
-
* values like variant, color, size, and radius.
|
|
7
|
-
*/
|
|
1
|
+
import { DeepPartial } from './types';
|
|
8
2
|
/**
|
|
9
3
|
* Resolves a value using the standard cascade precedence order.
|
|
10
4
|
* Follows the hierarchy: instance prop > component config > global default > hard fallback.
|
|
@@ -71,6 +65,37 @@ export declare function resolveAnimate<T>(instance: T | undefined, section: T |
|
|
|
71
65
|
* ```
|
|
72
66
|
*/
|
|
73
67
|
export declare function resolveRadiusKey<TKey>(instanceProp: TKey | undefined, sectionConfig: TKey | undefined, globalDefaultRadius: TKey | undefined, hardFallback?: TKey): TKey;
|
|
68
|
+
/**
|
|
69
|
+
* Resolve every option of a component's configuration in one step.
|
|
70
|
+
*
|
|
71
|
+
* A layout or pattern component usually exposes its whole configuration as a
|
|
72
|
+
* set of optional props that resolve through the same cascade. Calling
|
|
73
|
+
* {@link resolveCascade} once per key repeats the same precedence rule and the
|
|
74
|
+
* same fallback argument for every option, which is where drift creeps in. This
|
|
75
|
+
* helper applies the rule to every key of the hard fallback in one call, so a
|
|
76
|
+
* component states its options once and the precedence is guaranteed to be
|
|
77
|
+
* identical for all of them.
|
|
78
|
+
*
|
|
79
|
+
* The fallback object defines the shape: every key it declares is resolved and
|
|
80
|
+
* returned, and a key it omits has no fallback at all (which is how optional
|
|
81
|
+
* responsive keys stay undefined).
|
|
82
|
+
*
|
|
83
|
+
* @param instance - The props passed to the component instance.
|
|
84
|
+
* @param section - The component's configuration section, if any.
|
|
85
|
+
* @param fallback - The hard fallback for every option.
|
|
86
|
+
* @returns A complete set of resolved values.
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```tsx
|
|
90
|
+
* const resolved = resolveConfigCascade<HeroConfig, Required<HeroConfig>>(
|
|
91
|
+
* { align, spacing, background },
|
|
92
|
+
* config.components?.hero,
|
|
93
|
+
* FALLBACK_HERO_CONFIG,
|
|
94
|
+
* );
|
|
95
|
+
* // resolved.align is the prop, then components.hero.align, then the fallback
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
export declare function resolveConfigCascade<C extends object, F extends Required<C>>(instance: Partial<C>, section: DeepPartial<C> | undefined, fallback: F): F;
|
|
74
99
|
/**
|
|
75
100
|
* Resolves a CSS class from a class map based on a key.
|
|
76
101
|
* Returns the class string for the given key, falling back to the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-token.d.ts","sourceRoot":"","sources":["../../src/utils/resolve-token.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAC9B,QAAQ,EAAE,CAAC,GAAG,SAAS,EACvB,OAAO,EAAE,CAAC,GAAG,SAAS,EACtB,aAAa,EAAE,CAAC,GAAG,SAAS,EAC5B,YAAY,EAAE,CAAC,GACd,CAAC,CAEH;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAC9B,QAAQ,EAAE,CAAC,GAAG,SAAS,EACvB,OAAO,EAAE,CAAC,GAAG,SAAS,EACtB,YAAY,EAAE,CAAC,GACd,CAAC,CAEH;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EACnC,YAAY,EAAE,IAAI,GAAG,SAAS,EAC9B,aAAa,EAAE,IAAI,GAAG,SAAS,EAC/B,mBAAmB,EAAE,IAAI,GAAG,SAAS,EACrC,YAAY,GAAE,IAAmB,GAChC,IAAI,CAEN;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,eAAe,CAAC,IAAI,SAAS,WAAW,EACtD,GAAG,EAAE,IAAI,EACT,QAAQ,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,EAC9B,WAAW,EAAE,IAAI,GAChB,MAAM,CAER"}
|
|
1
|
+
{"version":3,"file":"resolve-token.d.ts","sourceRoot":"","sources":["../../src/utils/resolve-token.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAC9B,QAAQ,EAAE,CAAC,GAAG,SAAS,EACvB,OAAO,EAAE,CAAC,GAAG,SAAS,EACtB,aAAa,EAAE,CAAC,GAAG,SAAS,EAC5B,YAAY,EAAE,CAAC,GACd,CAAC,CAEH;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAC9B,QAAQ,EAAE,CAAC,GAAG,SAAS,EACvB,OAAO,EAAE,CAAC,GAAG,SAAS,EACtB,YAAY,EAAE,CAAC,GACd,CAAC,CAEH;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EACnC,YAAY,EAAE,IAAI,GAAG,SAAS,EAC9B,aAAa,EAAE,IAAI,GAAG,SAAS,EAC/B,mBAAmB,EAAE,IAAI,GAAG,SAAS,EACrC,YAAY,GAAE,IAAmB,GAChC,IAAI,CAEN;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,QAAQ,CAAC,CAAC,CAAC,EAC1E,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,EACpB,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,SAAS,EACnC,QAAQ,EAAE,CAAC,GACV,CAAC,CAeH;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,eAAe,CAAC,IAAI,SAAS,WAAW,EACtD,GAAG,EAAE,IAAI,EACT,QAAQ,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,EAC9B,WAAW,EAAE,IAAI,GAChB,MAAM,CAER"}
|