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,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Body scroll lock for overlay components.
|
|
3
|
+
*
|
|
4
|
+
* Overlays that cover the page (modal dialogs, drawers, dropdown menus) stop
|
|
5
|
+
* the page behind them from scrolling. The lock is reference counted, so
|
|
6
|
+
* overlays that are open at the same time share one lock: the body styles
|
|
7
|
+
* captured when the first overlay opens are restored only after the last one
|
|
8
|
+
* closes. An overlay therefore never captures the styles of an already locked
|
|
9
|
+
* body, and never restores them while another overlay is still open.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Locks body scroll while `active` is true.
|
|
13
|
+
*
|
|
14
|
+
* The lock is shared by every caller: it applies on the first overlay that
|
|
15
|
+
* becomes active and is released when the last one stops being active. The
|
|
16
|
+
* lock is applied from an effect, so server rendering is unaffected.
|
|
17
|
+
*
|
|
18
|
+
* @param active - Whether the calling overlay currently covers the page.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useBodyScrollLock(active: boolean): void;
|
|
21
|
+
//# sourceMappingURL=use-body-scroll-lock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-body-scroll-lock.d.ts","sourceRoot":"","sources":["../../src/libs/use-body-scroll-lock.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAsDH;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAevD"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { useEffect as e } from "react";
|
|
4
|
+
//#region src/libs/use-body-scroll-lock.ts
|
|
5
|
+
var t = 0, n = null;
|
|
6
|
+
function r() {
|
|
7
|
+
let e = window.scrollY, { style: t } = document.body, n = {
|
|
8
|
+
position: t.position,
|
|
9
|
+
top: t.top,
|
|
10
|
+
left: t.left,
|
|
11
|
+
right: t.right,
|
|
12
|
+
width: t.width,
|
|
13
|
+
overflow: t.overflow
|
|
14
|
+
};
|
|
15
|
+
return t.position = "fixed", t.top = `-${e}px`, t.left = "0", t.right = "0", t.width = "100%", t.overflow = "hidden", () => {
|
|
16
|
+
t.position = n.position, t.top = n.top, t.left = n.left, t.right = n.right, t.width = n.width, t.overflow = n.overflow, window.scrollTo(0, e);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function i(i) {
|
|
20
|
+
e(() => {
|
|
21
|
+
if (!(!i || typeof document > "u" || !document.body)) return t === 0 && (n = r()), t += 1, () => {
|
|
22
|
+
--t, t === 0 && (n?.(), n = null);
|
|
23
|
+
};
|
|
24
|
+
}, [i]);
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { i as useBodyScrollLock };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FloatingRootContext } from '@floating-ui/react';
|
|
2
|
+
import { RefCallback } from 'react';
|
|
3
|
+
/** The focus wiring a dialog overlay needs. */
|
|
4
|
+
export interface DialogOverlayWiring {
|
|
5
|
+
/** Context consumed by `FloatingFocusManager`. */
|
|
6
|
+
context: FloatingRootContext;
|
|
7
|
+
/** Registers the dialog element as the focus scope root. */
|
|
8
|
+
setDialogRef: RefCallback<HTMLElement>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Wires a dialog overlay to the shared focus management.
|
|
12
|
+
*
|
|
13
|
+
* The dialog element is held in state rather than a ref so that the root
|
|
14
|
+
* context exposes it on the render after it mounts: the focus manager ignores a
|
|
15
|
+
* context whose floating element is still unknown.
|
|
16
|
+
*
|
|
17
|
+
* @param isOpen - Whether the dialog is open.
|
|
18
|
+
* @returns The focus context and the dialog ref setter.
|
|
19
|
+
*/
|
|
20
|
+
export declare function useDialogOverlay(isOpen: boolean): DialogOverlayWiring;
|
|
21
|
+
//# sourceMappingURL=use-dialog-overlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-dialog-overlay.d.ts","sourceRoot":"","sources":["../../src/libs/use-dialog-overlay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,KAAK,WAAW,EAAyB,MAAM,OAAO,CAAC;AAEhE,+CAA+C;AAC/C,MAAM,WAAW,mBAAmB;IAClC,kDAAkD;IAClD,OAAO,EAAE,mBAAmB,CAAC;IAC7B,4DAA4D;IAC5D,YAAY,EAAE,WAAW,CAAC,WAAW,CAAC,CAAC;CACxC;AAED;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,OAAO,GAAG,mBAAmB,CAerE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { useCallback as e, useState as t } from "react";
|
|
4
|
+
import { useFloatingRootContext as n } from "@floating-ui/react";
|
|
5
|
+
//#region src/libs/use-dialog-overlay.ts
|
|
6
|
+
function r(r) {
|
|
7
|
+
let [i, a] = t(null), o = e(() => {}, []);
|
|
8
|
+
return {
|
|
9
|
+
context: n({
|
|
10
|
+
open: r,
|
|
11
|
+
onOpenChange: o,
|
|
12
|
+
elements: {
|
|
13
|
+
reference: null,
|
|
14
|
+
floating: i
|
|
15
|
+
}
|
|
16
|
+
}),
|
|
17
|
+
setDialogRef: a
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { r as useDialogOverlay };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reduced-motion preference for AsheeUI.
|
|
3
|
+
*
|
|
4
|
+
* Continuous or automatic motion (a marquee loop, carousel autoplay and
|
|
5
|
+
* transitions) must yield to the operating system's reduced-motion preference.
|
|
6
|
+
* Components read the preference through this hook instead of each
|
|
7
|
+
* one querying the media query themselves, so the behaviour is defined once and
|
|
8
|
+
* is observable in a test.
|
|
9
|
+
*/
|
|
10
|
+
/** Media query that reports the user's reduced-motion preference. */
|
|
11
|
+
export declare const REDUCED_MOTION_QUERY = "(prefers-reduced-motion: reduce)";
|
|
12
|
+
/**
|
|
13
|
+
* Reports whether the user asked for reduced motion.
|
|
14
|
+
*
|
|
15
|
+
* The preference is read after mount, so server rendering always produces the
|
|
16
|
+
* motion-safe markup and hydration never mismatches. Without a `matchMedia`
|
|
17
|
+
* implementation the preference is reported as `false`, which keeps the
|
|
18
|
+
* component's own behaviour unchanged.
|
|
19
|
+
*
|
|
20
|
+
* @returns `true` while the user prefers reduced motion.
|
|
21
|
+
*/
|
|
22
|
+
export declare function usePrefersReducedMotion(): boolean;
|
|
23
|
+
//# sourceMappingURL=use-prefers-reduced-motion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-prefers-reduced-motion.d.ts","sourceRoot":"","sources":["../../src/libs/use-prefers-reduced-motion.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,qEAAqE;AACrE,eAAO,MAAM,oBAAoB,qCAAqC,CAAC;AAEvE;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,IAAI,OAAO,CAoBjD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { useEffect as e, useState as t } from "react";
|
|
4
|
+
//#region src/libs/use-prefers-reduced-motion.ts
|
|
5
|
+
var n = "(prefers-reduced-motion: reduce)";
|
|
6
|
+
function r() {
|
|
7
|
+
let [r, i] = t(!1);
|
|
8
|
+
return e(() => {
|
|
9
|
+
if (typeof window > "u" || !window.matchMedia) return;
|
|
10
|
+
let e = window.matchMedia(n);
|
|
11
|
+
i(e.matches);
|
|
12
|
+
let t = (e) => {
|
|
13
|
+
i(e.matches);
|
|
14
|
+
};
|
|
15
|
+
return e.addEventListener("change", t), () => e.removeEventListener("change", t);
|
|
16
|
+
}, []), r;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { n as REDUCED_MOTION_QUERY, r as usePrefersReducedMotion };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { GridColumns } from '../components/grid/grid-config';
|
|
2
|
+
import { Variant } from '../shared';
|
|
3
|
+
/**
|
|
4
|
+
* One action as a builder holds it.
|
|
5
|
+
*
|
|
6
|
+
* The keys are required because a Puck field set is a form the builder fills in,
|
|
7
|
+
* and `defaultProps` supplies a complete value for every block that offers one.
|
|
8
|
+
* A published payload can still arrive with a key missing, which is why the
|
|
9
|
+
* adapter that reads it accepts a partial value.
|
|
10
|
+
*/
|
|
11
|
+
export type BuilderAction = {
|
|
12
|
+
/** Wording of the action. */
|
|
13
|
+
label: string;
|
|
14
|
+
/** Destination of the action. */
|
|
15
|
+
href: string;
|
|
16
|
+
/** Emphasis of the action. */
|
|
17
|
+
variant: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Turn a builder action into a configured action.
|
|
21
|
+
*
|
|
22
|
+
* @param action - The action the builder holds, which may be missing a key when
|
|
23
|
+
* it comes from a stored page rather than from the editor.
|
|
24
|
+
* @returns The action the framework renders, or undefined when it has no
|
|
25
|
+
* wording, because an action without a name cannot be read or clicked.
|
|
26
|
+
*/
|
|
27
|
+
export declare function toAction(action: Partial<BuilderAction> | undefined): {
|
|
28
|
+
label: string;
|
|
29
|
+
href: string | undefined;
|
|
30
|
+
variant: Variant | undefined;
|
|
31
|
+
} | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Turn a builder column count into a grid column count.
|
|
34
|
+
*
|
|
35
|
+
* @param value - The column count as a string, which is what a select field
|
|
36
|
+
* holds.
|
|
37
|
+
* @returns The numeric column count, or undefined when the value is not one the
|
|
38
|
+
* grid accepts.
|
|
39
|
+
*/
|
|
40
|
+
export declare function toColumns(value: string | undefined): GridColumns | undefined;
|
|
41
|
+
//# sourceMappingURL=adapters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapters.d.ts","sourceRoot":"","sources":["../../src/puck/adapters.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IAEd,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAC;IAEb,8BAA8B;IAC9B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAWF;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,SAAS;;;;cAalE;AAED;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,CAO5E"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
//#region src/puck/adapters.ts
|
|
3
|
+
var e = [
|
|
4
|
+
"solid",
|
|
5
|
+
"faded",
|
|
6
|
+
"bordered",
|
|
7
|
+
"ghost",
|
|
8
|
+
"underlined"
|
|
9
|
+
];
|
|
10
|
+
function t(t) {
|
|
11
|
+
if (t?.label) return {
|
|
12
|
+
label: t.label,
|
|
13
|
+
href: t.href,
|
|
14
|
+
variant: t.variant && e.includes(t.variant) ? t.variant : void 0
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function n(e) {
|
|
18
|
+
if (!e) return;
|
|
19
|
+
let t = Number(e);
|
|
20
|
+
if ([
|
|
21
|
+
1,
|
|
22
|
+
2,
|
|
23
|
+
3,
|
|
24
|
+
4,
|
|
25
|
+
6,
|
|
26
|
+
12
|
|
27
|
+
].includes(t)) return t;
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { t as toAction, n as toColumns };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ComponentConfig } from '@puckeditor/core';
|
|
2
|
+
/**
|
|
3
|
+
* Configuration of the heading block.
|
|
4
|
+
*/
|
|
5
|
+
export type HeadingBlockProps = {
|
|
6
|
+
/** Short label above the heading. */
|
|
7
|
+
eyebrow?: string;
|
|
8
|
+
/** The heading itself. */
|
|
9
|
+
title?: string;
|
|
10
|
+
/** Supporting sentence under the heading. */
|
|
11
|
+
description?: string;
|
|
12
|
+
/** Horizontal alignment of the block. */
|
|
13
|
+
align?: "start" | "center";
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* A section heading with an optional eyebrow and description.
|
|
17
|
+
*/
|
|
18
|
+
export declare const headingBlock: ComponentConfig<HeadingBlockProps>;
|
|
19
|
+
/**
|
|
20
|
+
* Configuration of the text block.
|
|
21
|
+
*/
|
|
22
|
+
export type TextBlockProps = {
|
|
23
|
+
/** The paragraph. */
|
|
24
|
+
text?: string;
|
|
25
|
+
/** Alignment of the paragraph. */
|
|
26
|
+
align?: "start" | "center";
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* A paragraph of body text.
|
|
30
|
+
*/
|
|
31
|
+
export declare const textBlock: ComponentConfig<TextBlockProps>;
|
|
32
|
+
//# sourceMappingURL=content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/puck/blocks/content.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAWxD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,qCAAqC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,0BAA0B;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,yCAAyC;IACzC,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,eAAe,CAAC,iBAAiB,CAyB3D,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,qBAAqB;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,kCAAkC;IAClC,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,eAAe,CAAC,cAAc,CAqBrD,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Typography as e } from "../../components/typography/Typography.js";
|
|
3
|
+
import { SectionHeading as t } from "../../components/section-kit/SectionHeading.js";
|
|
4
|
+
import { Section as n } from "../../components/section/Section.js";
|
|
5
|
+
import { ALIGNMENT_OPTIONS as r, selectField as i, textField as a, textareaField as o } from "../fields.js";
|
|
6
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
7
|
+
//#region src/puck/blocks/content.tsx
|
|
8
|
+
var c = {
|
|
9
|
+
label: "Heading",
|
|
10
|
+
fields: {
|
|
11
|
+
eyebrow: a("Eyebrow", "Why teams switch"),
|
|
12
|
+
title: a("Heading", "Everything in one place"),
|
|
13
|
+
description: o("Description"),
|
|
14
|
+
align: i("Alignment", r)
|
|
15
|
+
},
|
|
16
|
+
defaultProps: {
|
|
17
|
+
eyebrow: "",
|
|
18
|
+
title: "Everything in one place",
|
|
19
|
+
description: "",
|
|
20
|
+
align: "start"
|
|
21
|
+
},
|
|
22
|
+
render: ({ eyebrow: e, title: r, description: i, align: a }) => /* @__PURE__ */ s(n, {
|
|
23
|
+
spacing: "md",
|
|
24
|
+
contained: !0,
|
|
25
|
+
children: /* @__PURE__ */ s(t, {
|
|
26
|
+
eyebrow: e || void 0,
|
|
27
|
+
title: r || void 0,
|
|
28
|
+
description: i || void 0,
|
|
29
|
+
align: a ?? "start",
|
|
30
|
+
size: "lg"
|
|
31
|
+
})
|
|
32
|
+
})
|
|
33
|
+
}, l = {
|
|
34
|
+
label: "Text",
|
|
35
|
+
fields: {
|
|
36
|
+
text: o("Text", "Write the paragraph here."),
|
|
37
|
+
align: i("Alignment", r)
|
|
38
|
+
},
|
|
39
|
+
defaultProps: {
|
|
40
|
+
text: "Write the paragraph here.",
|
|
41
|
+
align: "start"
|
|
42
|
+
},
|
|
43
|
+
render: ({ text: t, align: r }) => /* @__PURE__ */ s(n, {
|
|
44
|
+
spacing: "sm",
|
|
45
|
+
contained: !0,
|
|
46
|
+
children: /* @__PURE__ */ s(e, {
|
|
47
|
+
role: "body-lg",
|
|
48
|
+
className: r === "center" ? "mx-auto max-w-2xl text-center" : "max-w-2xl",
|
|
49
|
+
children: t
|
|
50
|
+
})
|
|
51
|
+
})
|
|
52
|
+
};
|
|
53
|
+
//#endregion
|
|
54
|
+
export { c as headingBlock, l as textBlock };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ComponentConfig, SlotComponent } from '@puckeditor/core';
|
|
2
|
+
import { SectionBackground } from '../../components/section/section-config';
|
|
3
|
+
import { Space } from '../../shared';
|
|
4
|
+
/**
|
|
5
|
+
* Ratio options a two-column block offers.
|
|
6
|
+
*/
|
|
7
|
+
export declare const COLUMN_RATIO_OPTIONS: readonly ["50/50", "33/67", "67/33"];
|
|
8
|
+
/**
|
|
9
|
+
* Ratio of a two-column arrangement, from the `lg` breakpoint upwards.
|
|
10
|
+
*/
|
|
11
|
+
export type ColumnRatio = (typeof COLUMN_RATIO_OPTIONS)[number];
|
|
12
|
+
/**
|
|
13
|
+
* Configuration of the band block.
|
|
14
|
+
*/
|
|
15
|
+
export type SectionBlockProps = {
|
|
16
|
+
/** Vertical padding of the band. */
|
|
17
|
+
spacing?: Space;
|
|
18
|
+
/** Background treatment of the band. */
|
|
19
|
+
background?: SectionBackground;
|
|
20
|
+
/** Content dropped into the band. */
|
|
21
|
+
content?: SlotComponent;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* A band with its own vertical rhythm and background.
|
|
25
|
+
*/
|
|
26
|
+
export declare const sectionBlock: ComponentConfig<SectionBlockProps>;
|
|
27
|
+
/**
|
|
28
|
+
* Configuration of the two-column block.
|
|
29
|
+
*/
|
|
30
|
+
export type ColumnsBlockProps = {
|
|
31
|
+
/** Ratio of the two columns from the `lg` breakpoint upwards. */
|
|
32
|
+
ratio?: ColumnRatio;
|
|
33
|
+
/** Vertical padding of the band the columns sit in. */
|
|
34
|
+
spacing?: Space;
|
|
35
|
+
/** Content of the first column. */
|
|
36
|
+
start?: SlotComponent;
|
|
37
|
+
/** Content of the second column. */
|
|
38
|
+
end?: SlotComponent;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Two columns that stack on a narrow screen.
|
|
42
|
+
*/
|
|
43
|
+
export declare const columnsBlock: ComponentConfig<ColumnsBlockProps>;
|
|
44
|
+
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/puck/blocks/layout.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAI1C;;GAEG;AACH,eAAO,MAAM,oBAAoB,sCAAuC,CAAC;AAEzE;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAYhE;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,oCAAoC;IACpC,OAAO,CAAC,EAAE,KAAK,CAAC;IAEhB,wCAAwC;IACxC,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAE/B,qCAAqC;IACrC,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,eAAe,CAAC,iBAAiB,CAgB3D,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,iEAAiE;IACjE,KAAK,CAAC,EAAE,WAAW,CAAC;IAEpB,uDAAuD;IACvD,OAAO,CAAC,EAAE,KAAK,CAAC;IAEhB,mCAAmC;IACnC,KAAK,CAAC,EAAE,aAAa,CAAC;IAEtB,oCAAoC;IACpC,GAAG,CAAC,EAAE,aAAa,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,EAAE,eAAe,CAAC,iBAAiB,CAqB3D,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../utils/cn.js";
|
|
3
|
+
import { Section as t } from "../../components/section/Section.js";
|
|
4
|
+
import { BACKGROUND_OPTIONS as n, SPACING_OPTIONS as r, selectField as i } from "../fields.js";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
//#region src/puck/blocks/layout.tsx
|
|
7
|
+
var s = [
|
|
8
|
+
"50/50",
|
|
9
|
+
"33/67",
|
|
10
|
+
"67/33"
|
|
11
|
+
], c = {
|
|
12
|
+
"50/50": "lg:grid-cols-2",
|
|
13
|
+
"33/67": "lg:grid-cols-[1fr_2fr]",
|
|
14
|
+
"67/33": "lg:grid-cols-[2fr_1fr]"
|
|
15
|
+
}, l = {
|
|
16
|
+
label: "Section",
|
|
17
|
+
fields: {
|
|
18
|
+
spacing: i("Vertical spacing", r),
|
|
19
|
+
background: i("Background", n),
|
|
20
|
+
content: {
|
|
21
|
+
type: "slot",
|
|
22
|
+
label: "Content"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
defaultProps: {
|
|
26
|
+
spacing: "lg",
|
|
27
|
+
background: "none"
|
|
28
|
+
},
|
|
29
|
+
render: ({ spacing: e, background: n, content: r }) => /* @__PURE__ */ a(t, {
|
|
30
|
+
spacing: e ?? "lg",
|
|
31
|
+
background: n ?? "none",
|
|
32
|
+
contained: !0,
|
|
33
|
+
children: r ? /* @__PURE__ */ a(r, {}) : null
|
|
34
|
+
})
|
|
35
|
+
}, u = {
|
|
36
|
+
label: "Columns",
|
|
37
|
+
fields: {
|
|
38
|
+
ratio: i("Column ratio", s),
|
|
39
|
+
spacing: i("Vertical spacing", r),
|
|
40
|
+
start: {
|
|
41
|
+
type: "slot",
|
|
42
|
+
label: "First column"
|
|
43
|
+
},
|
|
44
|
+
end: {
|
|
45
|
+
type: "slot",
|
|
46
|
+
label: "Second column"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
defaultProps: {
|
|
50
|
+
ratio: "50/50",
|
|
51
|
+
spacing: "lg"
|
|
52
|
+
},
|
|
53
|
+
render: ({ ratio: n, spacing: r, start: i, end: s }) => /* @__PURE__ */ a(t, {
|
|
54
|
+
spacing: r ?? "lg",
|
|
55
|
+
contained: !0,
|
|
56
|
+
children: /* @__PURE__ */ o("div", {
|
|
57
|
+
className: e("grid grid-cols-1 gap-8", c[n ?? "50/50"]),
|
|
58
|
+
children: [/* @__PURE__ */ a("div", {
|
|
59
|
+
className: "min-w-0",
|
|
60
|
+
children: i ? /* @__PURE__ */ a(i, {}) : null
|
|
61
|
+
}), /* @__PURE__ */ a("div", {
|
|
62
|
+
className: "min-w-0",
|
|
63
|
+
children: s ? /* @__PURE__ */ a(s, {}) : null
|
|
64
|
+
})]
|
|
65
|
+
})
|
|
66
|
+
})
|
|
67
|
+
};
|
|
68
|
+
//#endregion
|
|
69
|
+
export { s as COLUMN_RATIO_OPTIONS, u as columnsBlock, l as sectionBlock };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ComponentConfig } from '@puckeditor/core';
|
|
2
|
+
/**
|
|
3
|
+
* One navigation link.
|
|
4
|
+
*/
|
|
5
|
+
export type LinkItemProps = {
|
|
6
|
+
/** Visible name of the link. */
|
|
7
|
+
label: string;
|
|
8
|
+
/** Destination of the link. */
|
|
9
|
+
href: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* One column of footer navigation.
|
|
13
|
+
*/
|
|
14
|
+
export type FooterGroupProps = {
|
|
15
|
+
/** Title of the column. */
|
|
16
|
+
title: string;
|
|
17
|
+
/** The links in the column. */
|
|
18
|
+
links: LinkItemProps[];
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Configuration of the navigation bar block.
|
|
22
|
+
*/
|
|
23
|
+
export type NavbarBlockProps = {
|
|
24
|
+
/** Brand content, typically the product name. */
|
|
25
|
+
brand?: string;
|
|
26
|
+
/** Destination of the brand. */
|
|
27
|
+
brandHref?: string;
|
|
28
|
+
/** Where the links sit in the bar, from the `md` breakpoint upwards. */
|
|
29
|
+
align?: "start" | "center" | "end";
|
|
30
|
+
/** The navigation links. */
|
|
31
|
+
links?: LinkItemProps[];
|
|
32
|
+
/** The emphasised action of the bar. */
|
|
33
|
+
primaryAction?: {
|
|
34
|
+
label: string;
|
|
35
|
+
href: string;
|
|
36
|
+
variant: string;
|
|
37
|
+
};
|
|
38
|
+
/** The supporting action of the bar. */
|
|
39
|
+
secondaryAction?: {
|
|
40
|
+
label: string;
|
|
41
|
+
href: string;
|
|
42
|
+
variant: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* The navigation bar of a page.
|
|
47
|
+
*/
|
|
48
|
+
export declare const navbarBlock: ComponentConfig<NavbarBlockProps>;
|
|
49
|
+
/**
|
|
50
|
+
* Configuration of the footer block.
|
|
51
|
+
*/
|
|
52
|
+
export type FooterBlockProps = {
|
|
53
|
+
/** Brand content. */
|
|
54
|
+
brand?: string;
|
|
55
|
+
/** Short description under the brand. */
|
|
56
|
+
description?: string;
|
|
57
|
+
/** The navigation columns. */
|
|
58
|
+
groups?: FooterGroupProps[];
|
|
59
|
+
/** The copyright line. */
|
|
60
|
+
copyright?: string;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* The footer of a page.
|
|
64
|
+
*/
|
|
65
|
+
export declare const footerBlock: ComponentConfig<FooterBlockProps>;
|
|
66
|
+
//# sourceMappingURL=navigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../src/puck/blocks/navigation.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAc,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAapE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;IAEd,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,2BAA2B;IAC3B,KAAK,EAAE,MAAM,CAAC;IAEd,+BAA+B;IAC/B,KAAK,EAAE,aAAa,EAAE,CAAC;CACxB,CAAC;AAiCF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,iDAAiD;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,wEAAwE;IACxE,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IAEnC,4BAA4B;IAC5B,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;IAExB,wCAAwC;IACxC,aAAa,CAAC,EAAE;QACd,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IAEF,wCAAwC;IACxC,eAAe,CAAC,EAAE;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,gBAAgB,CA2CzD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,qBAAqB;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,yCAAyC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAE5B,0BAA0B;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,gBAAgB,CAqCzD,CAAC"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { ActionGroup as e } from "../../components/section-kit/ActionGroup.js";
|
|
3
|
+
import { Footer as t } from "../../components/footer/Footer.js";
|
|
4
|
+
import { Navbar as n } from "../../components/navbar/Navbar.js";
|
|
5
|
+
import { ACTION_FIELDS as r, LINK_ITEM_FIELDS as i, selectField as a, textField as o, textareaField as s } from "../fields.js";
|
|
6
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
7
|
+
//#region src/puck/blocks/navigation.tsx
|
|
8
|
+
var l = {
|
|
9
|
+
type: "array",
|
|
10
|
+
label: "Links",
|
|
11
|
+
arrayFields: i,
|
|
12
|
+
defaultItemProps: {
|
|
13
|
+
label: "New link",
|
|
14
|
+
href: "/"
|
|
15
|
+
},
|
|
16
|
+
getItemSummary: (e) => e.label ?? "Link"
|
|
17
|
+
}, u = {
|
|
18
|
+
type: "array",
|
|
19
|
+
label: "Columns",
|
|
20
|
+
arrayFields: {
|
|
21
|
+
title: o("Column title"),
|
|
22
|
+
links: {
|
|
23
|
+
type: "array",
|
|
24
|
+
label: "Links",
|
|
25
|
+
arrayFields: i,
|
|
26
|
+
defaultItemProps: {
|
|
27
|
+
label: "New link",
|
|
28
|
+
href: "/"
|
|
29
|
+
},
|
|
30
|
+
getItemSummary: (e) => e.label ?? "Link"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
defaultItemProps: {
|
|
34
|
+
title: "New column",
|
|
35
|
+
links: []
|
|
36
|
+
},
|
|
37
|
+
getItemSummary: (e) => e.title ?? "Column"
|
|
38
|
+
}, d = {
|
|
39
|
+
label: "Navbar",
|
|
40
|
+
fields: {
|
|
41
|
+
brand: o("Brand", "Ashee"),
|
|
42
|
+
brandHref: o("Brand link", "/"),
|
|
43
|
+
align: a("Link alignment", [
|
|
44
|
+
"start",
|
|
45
|
+
"center",
|
|
46
|
+
"end"
|
|
47
|
+
]),
|
|
48
|
+
links: l,
|
|
49
|
+
primaryAction: r,
|
|
50
|
+
secondaryAction: r
|
|
51
|
+
},
|
|
52
|
+
defaultProps: {
|
|
53
|
+
brand: "Ashee",
|
|
54
|
+
brandHref: "/",
|
|
55
|
+
align: "center",
|
|
56
|
+
links: [{
|
|
57
|
+
label: "Product",
|
|
58
|
+
href: "/product"
|
|
59
|
+
}, {
|
|
60
|
+
label: "Pricing",
|
|
61
|
+
href: "/pricing"
|
|
62
|
+
}]
|
|
63
|
+
},
|
|
64
|
+
render: ({ brand: t, brandHref: r, align: i, links: a, primaryAction: o, secondaryAction: s }) => /* @__PURE__ */ c(n, {
|
|
65
|
+
brand: t || void 0,
|
|
66
|
+
brandHref: r || void 0,
|
|
67
|
+
align: i ?? "center",
|
|
68
|
+
links: (a ?? []).map((e) => ({
|
|
69
|
+
label: e.label ?? "",
|
|
70
|
+
href: e.href
|
|
71
|
+
})),
|
|
72
|
+
actions: /* @__PURE__ */ c(e, {
|
|
73
|
+
primaryAction: p(o),
|
|
74
|
+
secondaryAction: p(s)
|
|
75
|
+
})
|
|
76
|
+
})
|
|
77
|
+
}, f = {
|
|
78
|
+
label: "Footer",
|
|
79
|
+
fields: {
|
|
80
|
+
brand: o("Brand", "Ashee"),
|
|
81
|
+
description: s("Description"),
|
|
82
|
+
groups: u,
|
|
83
|
+
copyright: o("Copyright", "Ashee Softworks")
|
|
84
|
+
},
|
|
85
|
+
defaultProps: {
|
|
86
|
+
brand: "Ashee",
|
|
87
|
+
description: "Campaign messaging for growing teams.",
|
|
88
|
+
groups: [{
|
|
89
|
+
title: "Product",
|
|
90
|
+
links: [{
|
|
91
|
+
label: "Campaigns",
|
|
92
|
+
href: "/campaigns"
|
|
93
|
+
}, {
|
|
94
|
+
label: "Pricing",
|
|
95
|
+
href: "/pricing"
|
|
96
|
+
}]
|
|
97
|
+
}],
|
|
98
|
+
copyright: "Ashee Softworks"
|
|
99
|
+
},
|
|
100
|
+
render: ({ brand: e, description: n, groups: r, copyright: i }) => /* @__PURE__ */ c(t, {
|
|
101
|
+
brand: e || void 0,
|
|
102
|
+
description: n || void 0,
|
|
103
|
+
copyright: i || void 0,
|
|
104
|
+
groups: (r ?? []).map((e, t) => ({
|
|
105
|
+
id: t,
|
|
106
|
+
title: e.title ?? "Links",
|
|
107
|
+
links: (e.links ?? []).map((e) => ({
|
|
108
|
+
label: e.label ?? "",
|
|
109
|
+
href: e.href
|
|
110
|
+
}))
|
|
111
|
+
}))
|
|
112
|
+
})
|
|
113
|
+
};
|
|
114
|
+
function p(e) {
|
|
115
|
+
if (e?.label) return {
|
|
116
|
+
label: e.label,
|
|
117
|
+
href: e.href,
|
|
118
|
+
variant: e.variant
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
//#endregion
|
|
122
|
+
export { f as footerBlock, d as navbarBlock };
|