asheeui 1.0.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/components/alert/Alert.d.ts.map +1 -1
- package/dist/components/alert/Alert.js +6 -6
- 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.map +1 -1
- package/dist/components/avatar/Avatar.d.ts.map +1 -1
- package/dist/components/avatar/Avatar.js +7 -7
- package/dist/components/badge/Badge.d.ts.map +1 -1
- package/dist/components/badge/Badge.js +3 -3
- package/dist/components/breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/components/breadcrumb/Breadcrumb.js +6 -6
- package/dist/components/calendar/Calendar.d.ts.map +1 -1
- package/dist/components/calendar/Calendar.js +4 -4
- package/dist/components/calendar/DateGrid.d.ts.map +1 -1
- package/dist/components/calendar/DateGrid.js +87 -87
- 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/dropmenu/Dropmenu.d.ts.map +1 -1
- 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/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.map +1 -1
- 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/multi-select/MultiSelect.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.map +1 -1
- package/dist/components/pagination/Pagination.js +8 -8
- 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/RadioGroup.d.ts.map +1 -1
- 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-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.map +1 -1
- 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/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/typography/typography-styles.d.ts.map +1 -1
- package/dist/config/validate-config.d.ts.map +1 -1
- 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 +19 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +107 -72
- 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/shared/action.d.ts +52 -0
- package/dist/shared/action.d.ts.map +1 -0
- package/dist/shared/index.d.ts +2 -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.map +1 -1
- 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/package.json +14 -2
|
@@ -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 };
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { ComponentConfig } from '@puckeditor/core';
|
|
2
|
+
import { ContainerSize } from '../../components/container/container-config';
|
|
3
|
+
import { SectionBackground } from '../../components/section/section-config';
|
|
4
|
+
import { BuilderAction } from '../adapters';
|
|
5
|
+
/**
|
|
6
|
+
* Configuration of the hero block.
|
|
7
|
+
*/
|
|
8
|
+
export type HeroBlockProps = {
|
|
9
|
+
/** Short label above the headline. */
|
|
10
|
+
eyebrow?: string;
|
|
11
|
+
/** The headline. */
|
|
12
|
+
title?: string;
|
|
13
|
+
/** Supporting sentence under the headline. */
|
|
14
|
+
description?: string;
|
|
15
|
+
/** The emphasised action. */
|
|
16
|
+
primaryAction?: BuilderAction;
|
|
17
|
+
/** The supporting action. */
|
|
18
|
+
secondaryAction?: BuilderAction;
|
|
19
|
+
/** Alignment of the text column. */
|
|
20
|
+
align?: "start" | "center";
|
|
21
|
+
/** Background treatment of the band. */
|
|
22
|
+
background?: SectionBackground;
|
|
23
|
+
/** Maximum content width of the band. */
|
|
24
|
+
contentWidth?: ContainerSize;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* The leading statement of a page.
|
|
28
|
+
*/
|
|
29
|
+
export declare const heroBlock: ComponentConfig<HeroBlockProps>;
|
|
30
|
+
/**
|
|
31
|
+
* Configuration of the call-to-action block.
|
|
32
|
+
*/
|
|
33
|
+
export type CtaBlockProps = {
|
|
34
|
+
/** Short label above the headline. */
|
|
35
|
+
eyebrow?: string;
|
|
36
|
+
/** The headline of the band. */
|
|
37
|
+
title?: string;
|
|
38
|
+
/** Supporting sentence under the headline. */
|
|
39
|
+
description?: string;
|
|
40
|
+
/** The emphasised action. */
|
|
41
|
+
primaryAction?: BuilderAction;
|
|
42
|
+
/** The supporting action. */
|
|
43
|
+
secondaryAction?: BuilderAction;
|
|
44
|
+
/** Alignment of the content. */
|
|
45
|
+
align?: "start" | "center";
|
|
46
|
+
/** Background treatment of the band. */
|
|
47
|
+
background?: SectionBackground;
|
|
48
|
+
/** Panel treatment of the content. */
|
|
49
|
+
panel?: "bordered" | "muted" | "plain";
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* The closing call to action of a page.
|
|
53
|
+
*/
|
|
54
|
+
export declare const ctaBlock: ComponentConfig<CtaBlockProps>;
|
|
55
|
+
/**
|
|
56
|
+
* Configuration of the feature grid block.
|
|
57
|
+
*/
|
|
58
|
+
export type FeatureGridBlockProps = {
|
|
59
|
+
/** Short label above the heading. */
|
|
60
|
+
eyebrow?: string;
|
|
61
|
+
/** Heading of the band. */
|
|
62
|
+
title?: string;
|
|
63
|
+
/** Supporting sentence under the heading. */
|
|
64
|
+
description?: string;
|
|
65
|
+
/** The features to show. */
|
|
66
|
+
items?: Array<{
|
|
67
|
+
title: string;
|
|
68
|
+
description: string;
|
|
69
|
+
}>;
|
|
70
|
+
/** Columns from the `md` breakpoint upwards. */
|
|
71
|
+
columnsMd?: string;
|
|
72
|
+
/** Columns from the `lg` breakpoint upwards. */
|
|
73
|
+
columnsLg?: string;
|
|
74
|
+
/** Alignment of the heading. */
|
|
75
|
+
align?: "start" | "center";
|
|
76
|
+
/** Background treatment of the band. */
|
|
77
|
+
background?: SectionBackground;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* A band of features laid out in a responsive grid.
|
|
81
|
+
*/
|
|
82
|
+
export declare const featureGridBlock: ComponentConfig<FeatureGridBlockProps>;
|
|
83
|
+
/**
|
|
84
|
+
* Configuration of the testimonials block.
|
|
85
|
+
*/
|
|
86
|
+
export type TestimonialsBlockProps = {
|
|
87
|
+
/** Short label above the heading. */
|
|
88
|
+
eyebrow?: string;
|
|
89
|
+
/** Heading of the band. */
|
|
90
|
+
title?: string;
|
|
91
|
+
/** Supporting sentence under the heading. */
|
|
92
|
+
description?: string;
|
|
93
|
+
/** The quotes to show. */
|
|
94
|
+
items?: Array<{
|
|
95
|
+
quote: string;
|
|
96
|
+
name: string;
|
|
97
|
+
role: string;
|
|
98
|
+
}>;
|
|
99
|
+
/** Alignment of the heading. */
|
|
100
|
+
align?: "start" | "center";
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* A band of attributed customer quotes.
|
|
104
|
+
*/
|
|
105
|
+
export declare const testimonialsBlock: ComponentConfig<TestimonialsBlockProps>;
|
|
106
|
+
/**
|
|
107
|
+
* Configuration of the pricing card block.
|
|
108
|
+
*/
|
|
109
|
+
export type PricingCardBlockProps = {
|
|
110
|
+
/** Name of the plan. */
|
|
111
|
+
name?: string;
|
|
112
|
+
/** The amount. */
|
|
113
|
+
price?: string;
|
|
114
|
+
/** Billing period shown beside the amount. */
|
|
115
|
+
period?: string;
|
|
116
|
+
/** One sentence about the plan. */
|
|
117
|
+
description?: string;
|
|
118
|
+
/** Short label above the plan name. */
|
|
119
|
+
badge?: string;
|
|
120
|
+
/** The plan's feature lines. */
|
|
121
|
+
features?: Array<{
|
|
122
|
+
label: string;
|
|
123
|
+
included: boolean;
|
|
124
|
+
}>;
|
|
125
|
+
/** Whether the plan is the recommended one. */
|
|
126
|
+
highlighted?: boolean;
|
|
127
|
+
/** The emphasised action. */
|
|
128
|
+
primaryAction?: BuilderAction;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* One plan in a pricing table.
|
|
132
|
+
*/
|
|
133
|
+
export declare const pricingCardBlock: ComponentConfig<PricingCardBlockProps>;
|
|
134
|
+
//# sourceMappingURL=sections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sections.d.ts","sourceRoot":"","sources":["../../../src/puck/blocks/sections.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { CTA as e } from "../../components/cta/CTA.js";
|
|
3
|
+
import { FeatureGrid as t } from "../../components/feature-grid/FeatureGrid.js";
|
|
4
|
+
import { Hero as n } from "../../components/hero/Hero.js";
|
|
5
|
+
import { PricingCard as r } from "../../components/pricing-card/PricingCard.js";
|
|
6
|
+
import { Testimonials as i } from "../../components/testimonials/Testimonials.js";
|
|
7
|
+
import { toAction as a, toColumns as o } from "../adapters.js";
|
|
8
|
+
import { ACTION_FIELDS as s, ALIGNMENT_OPTIONS as c, BACKGROUND_OPTIONS as l, COLUMNS_OPTIONS as u, CONTAINER_SIZE_OPTIONS as d, FEATURE_ITEM_FIELD as f, PRICING_FEATURE_FIELD as p, TESTIMONIAL_ITEM_FIELD as m, selectField as h, textField as g, textareaField as _ } from "../fields.js";
|
|
9
|
+
import { jsx as v } from "react/jsx-runtime";
|
|
10
|
+
//#region src/puck/blocks/sections.tsx
|
|
11
|
+
var y = {
|
|
12
|
+
label: "Hero",
|
|
13
|
+
fields: {
|
|
14
|
+
eyebrow: g("Eyebrow"),
|
|
15
|
+
title: g("Headline", "Run your campaigns from one place"),
|
|
16
|
+
description: _("Description"),
|
|
17
|
+
primaryAction: s,
|
|
18
|
+
secondaryAction: s,
|
|
19
|
+
align: h("Alignment", c),
|
|
20
|
+
background: h("Background", l),
|
|
21
|
+
contentWidth: h("Content width", d)
|
|
22
|
+
},
|
|
23
|
+
defaultProps: {
|
|
24
|
+
eyebrow: "",
|
|
25
|
+
title: "Run your campaigns from one place",
|
|
26
|
+
description: "Messages, templates and results, without switching tools.",
|
|
27
|
+
primaryAction: {
|
|
28
|
+
label: "Start free",
|
|
29
|
+
href: "/signup",
|
|
30
|
+
variant: "solid"
|
|
31
|
+
},
|
|
32
|
+
secondaryAction: {
|
|
33
|
+
label: "Book a demo",
|
|
34
|
+
href: "/demo",
|
|
35
|
+
variant: "bordered"
|
|
36
|
+
},
|
|
37
|
+
align: "start",
|
|
38
|
+
background: "none",
|
|
39
|
+
contentWidth: "lg"
|
|
40
|
+
},
|
|
41
|
+
render: ({ eyebrow: e, title: t, description: r, primaryAction: i, secondaryAction: o, align: s, background: c, contentWidth: l }) => /* @__PURE__ */ v(n, {
|
|
42
|
+
eyebrow: e || void 0,
|
|
43
|
+
title: t ?? "",
|
|
44
|
+
description: r || void 0,
|
|
45
|
+
primaryAction: a(i),
|
|
46
|
+
secondaryAction: a(o),
|
|
47
|
+
align: s ?? "start",
|
|
48
|
+
background: c ?? "none",
|
|
49
|
+
containerSize: l ?? "lg"
|
|
50
|
+
})
|
|
51
|
+
}, b = {
|
|
52
|
+
label: "Call to action",
|
|
53
|
+
fields: {
|
|
54
|
+
eyebrow: g("Eyebrow"),
|
|
55
|
+
title: g("Headline", "Send your first campaign today"),
|
|
56
|
+
description: _("Description"),
|
|
57
|
+
primaryAction: s,
|
|
58
|
+
secondaryAction: s,
|
|
59
|
+
align: h("Alignment", c),
|
|
60
|
+
background: h("Background", l),
|
|
61
|
+
panel: h("Panel", [
|
|
62
|
+
"bordered",
|
|
63
|
+
"muted",
|
|
64
|
+
"plain"
|
|
65
|
+
])
|
|
66
|
+
},
|
|
67
|
+
defaultProps: {
|
|
68
|
+
eyebrow: "",
|
|
69
|
+
title: "Send your first campaign today",
|
|
70
|
+
description: "No card required, and no setup call.",
|
|
71
|
+
primaryAction: {
|
|
72
|
+
label: "Create an account",
|
|
73
|
+
href: "/signup",
|
|
74
|
+
variant: "solid"
|
|
75
|
+
},
|
|
76
|
+
align: "center",
|
|
77
|
+
background: "none",
|
|
78
|
+
panel: "bordered"
|
|
79
|
+
},
|
|
80
|
+
render: ({ eyebrow: t, title: n, description: r, primaryAction: i, secondaryAction: o, align: s, background: c, panel: l }) => /* @__PURE__ */ v(e, {
|
|
81
|
+
eyebrow: t || void 0,
|
|
82
|
+
title: n ?? "",
|
|
83
|
+
description: r || void 0,
|
|
84
|
+
primaryAction: a(i),
|
|
85
|
+
secondaryAction: a(o),
|
|
86
|
+
align: s ?? "center",
|
|
87
|
+
background: c ?? "none",
|
|
88
|
+
panel: l ?? "bordered"
|
|
89
|
+
})
|
|
90
|
+
}, x = {
|
|
91
|
+
label: "Feature grid",
|
|
92
|
+
fields: {
|
|
93
|
+
eyebrow: g("Eyebrow"),
|
|
94
|
+
title: g("Heading", "Everything the campaign needs"),
|
|
95
|
+
description: _("Description"),
|
|
96
|
+
items: f,
|
|
97
|
+
columnsMd: h("Columns on tablet", u),
|
|
98
|
+
columnsLg: h("Columns on desktop", u),
|
|
99
|
+
align: h("Heading alignment", c),
|
|
100
|
+
background: h("Background", l)
|
|
101
|
+
},
|
|
102
|
+
defaultProps: {
|
|
103
|
+
eyebrow: "",
|
|
104
|
+
title: "Everything the campaign needs",
|
|
105
|
+
description: "",
|
|
106
|
+
items: [
|
|
107
|
+
{
|
|
108
|
+
title: "Templates",
|
|
109
|
+
description: "Reusable messages."
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
title: "Scheduling",
|
|
113
|
+
description: "Send at the right time."
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
title: "Reporting",
|
|
117
|
+
description: "See what landed."
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
columnsMd: "2",
|
|
121
|
+
columnsLg: "3",
|
|
122
|
+
align: "center",
|
|
123
|
+
background: "none"
|
|
124
|
+
},
|
|
125
|
+
render: ({ eyebrow: e, title: n, description: r, items: i, columnsMd: a, columnsLg: s, align: c, background: l }) => /* @__PURE__ */ v(t, {
|
|
126
|
+
eyebrow: e || void 0,
|
|
127
|
+
title: n || void 0,
|
|
128
|
+
description: r || void 0,
|
|
129
|
+
align: c ?? "center",
|
|
130
|
+
background: l ?? "none",
|
|
131
|
+
columnsMd: o(a),
|
|
132
|
+
columnsLg: o(s),
|
|
133
|
+
items: (i ?? []).map((e, t) => ({
|
|
134
|
+
id: t,
|
|
135
|
+
title: e.title ?? "",
|
|
136
|
+
description: e.description || void 0
|
|
137
|
+
}))
|
|
138
|
+
})
|
|
139
|
+
}, S = {
|
|
140
|
+
label: "Testimonials",
|
|
141
|
+
fields: {
|
|
142
|
+
eyebrow: g("Eyebrow"),
|
|
143
|
+
title: g("Heading", "Teams send more with Ashee"),
|
|
144
|
+
description: _("Description"),
|
|
145
|
+
items: m,
|
|
146
|
+
align: h("Heading alignment", c)
|
|
147
|
+
},
|
|
148
|
+
defaultProps: {
|
|
149
|
+
eyebrow: "",
|
|
150
|
+
title: "Teams send more with Ashee",
|
|
151
|
+
description: "",
|
|
152
|
+
items: [{
|
|
153
|
+
quote: "We cut campaign setup from hours to minutes.",
|
|
154
|
+
name: "Ama Boateng",
|
|
155
|
+
role: "Head of Growth, Kora Retail"
|
|
156
|
+
}],
|
|
157
|
+
align: "center"
|
|
158
|
+
},
|
|
159
|
+
render: ({ eyebrow: e, title: t, description: n, items: r, align: a }) => /* @__PURE__ */ v(i, {
|
|
160
|
+
eyebrow: e || void 0,
|
|
161
|
+
title: t || void 0,
|
|
162
|
+
description: n || void 0,
|
|
163
|
+
align: a ?? "center",
|
|
164
|
+
items: (r ?? []).map((e, t) => ({
|
|
165
|
+
id: t,
|
|
166
|
+
quote: e.quote ?? "",
|
|
167
|
+
name: e.name ?? "",
|
|
168
|
+
role: e.role || void 0
|
|
169
|
+
}))
|
|
170
|
+
})
|
|
171
|
+
}, C = {
|
|
172
|
+
label: "Pricing card",
|
|
173
|
+
fields: {
|
|
174
|
+
badge: g("Badge", "Most popular"),
|
|
175
|
+
name: g("Plan", "Growth"),
|
|
176
|
+
price: g("Price", "$29"),
|
|
177
|
+
period: g("Period", "/month"),
|
|
178
|
+
description: _("Description"),
|
|
179
|
+
features: p,
|
|
180
|
+
highlighted: {
|
|
181
|
+
type: "radio",
|
|
182
|
+
label: "Recommended plan",
|
|
183
|
+
options: [{
|
|
184
|
+
label: "Yes",
|
|
185
|
+
value: !0
|
|
186
|
+
}, {
|
|
187
|
+
label: "No",
|
|
188
|
+
value: !1
|
|
189
|
+
}]
|
|
190
|
+
},
|
|
191
|
+
primaryAction: s
|
|
192
|
+
},
|
|
193
|
+
defaultProps: {
|
|
194
|
+
badge: "",
|
|
195
|
+
name: "Growth",
|
|
196
|
+
price: "$29",
|
|
197
|
+
period: "/month",
|
|
198
|
+
description: "For teams sending their first campaigns.",
|
|
199
|
+
features: [{
|
|
200
|
+
label: "10,000 messages",
|
|
201
|
+
included: !0
|
|
202
|
+
}, {
|
|
203
|
+
label: "Audit log",
|
|
204
|
+
included: !1
|
|
205
|
+
}],
|
|
206
|
+
highlighted: !1,
|
|
207
|
+
primaryAction: {
|
|
208
|
+
label: "Choose Growth",
|
|
209
|
+
href: "/signup",
|
|
210
|
+
variant: "solid"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
render: ({ badge: e, name: t, price: n, period: i, description: o, features: s, highlighted: c, primaryAction: l }) => /* @__PURE__ */ v("div", {
|
|
214
|
+
className: "p-6",
|
|
215
|
+
children: /* @__PURE__ */ v(r, {
|
|
216
|
+
badge: e || void 0,
|
|
217
|
+
name: t ?? "",
|
|
218
|
+
price: n ?? "",
|
|
219
|
+
period: i || void 0,
|
|
220
|
+
description: o || void 0,
|
|
221
|
+
highlighted: c ?? !1,
|
|
222
|
+
features: (s ?? []).map((e, t) => ({
|
|
223
|
+
id: t,
|
|
224
|
+
label: e.label ?? "",
|
|
225
|
+
included: e.included !== !1
|
|
226
|
+
})),
|
|
227
|
+
primaryAction: a(l)
|
|
228
|
+
})
|
|
229
|
+
})
|
|
230
|
+
};
|
|
231
|
+
//#endregion
|
|
232
|
+
export { b as ctaBlock, x as featureGridBlock, y as heroBlock, C as pricingCardBlock, S as testimonialsBlock };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentConfig } from '@puckeditor/core';
|
|
2
|
+
import { BuilderAction } from '../adapters';
|
|
3
|
+
/**
|
|
4
|
+
* Configuration of the empty state block.
|
|
5
|
+
*/
|
|
6
|
+
export type EmptyStateBlockProps = {
|
|
7
|
+
/** What the region is. */
|
|
8
|
+
title?: string;
|
|
9
|
+
/** What the reader can do about it. */
|
|
10
|
+
description?: string;
|
|
11
|
+
/** Tone of the state. */
|
|
12
|
+
type?: "info" | "success" | "warning" | "error";
|
|
13
|
+
/** Whether the state is drawn as a panel. */
|
|
14
|
+
panel?: boolean;
|
|
15
|
+
/** The emphasised action. */
|
|
16
|
+
primaryAction?: BuilderAction;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* A region with nothing in it.
|
|
20
|
+
*/
|
|
21
|
+
export declare const emptyStateBlock: ComponentConfig<EmptyStateBlockProps>;
|
|
22
|
+
//# sourceMappingURL=utility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../../../src/puck/blocks/utility.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,OAAO,EAAE,KAAK,aAAa,EAAY,MAAM,aAAa,CAAC;AAQ3D;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC,0BAA0B;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IAEhD,6CAA6C;IAC7C,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB,6BAA6B;IAC7B,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,oBAAoB,CAiCjE,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { EmptyState as e } from "../../components/empty-state/EmptyState.js";
|
|
3
|
+
import { toAction as t } from "../adapters.js";
|
|
4
|
+
import { ACTION_FIELDS as n, selectField as r, textField as i, textareaField as a } from "../fields.js";
|
|
5
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
6
|
+
//#region src/puck/blocks/utility.tsx
|
|
7
|
+
var s = {
|
|
8
|
+
label: "Empty state",
|
|
9
|
+
fields: {
|
|
10
|
+
title: i("Heading", "Nothing here yet"),
|
|
11
|
+
description: a("Description"),
|
|
12
|
+
type: r("Tone", [
|
|
13
|
+
"info",
|
|
14
|
+
"success",
|
|
15
|
+
"warning",
|
|
16
|
+
"error"
|
|
17
|
+
]),
|
|
18
|
+
panel: {
|
|
19
|
+
type: "radio",
|
|
20
|
+
label: "Panel",
|
|
21
|
+
options: [{
|
|
22
|
+
label: "Yes",
|
|
23
|
+
value: !0
|
|
24
|
+
}, {
|
|
25
|
+
label: "No",
|
|
26
|
+
value: !1
|
|
27
|
+
}]
|
|
28
|
+
},
|
|
29
|
+
primaryAction: n
|
|
30
|
+
},
|
|
31
|
+
defaultProps: {
|
|
32
|
+
title: "Nothing here yet",
|
|
33
|
+
description: "Create the first item to see it here.",
|
|
34
|
+
type: "info",
|
|
35
|
+
panel: !0
|
|
36
|
+
},
|
|
37
|
+
render: ({ title: n, description: r, type: i, panel: a, primaryAction: s }) => /* @__PURE__ */ o("div", {
|
|
38
|
+
className: "p-6",
|
|
39
|
+
children: /* @__PURE__ */ o(e, {
|
|
40
|
+
title: n ?? "",
|
|
41
|
+
description: r || void 0,
|
|
42
|
+
type: i ?? "info",
|
|
43
|
+
panel: a ?? !1,
|
|
44
|
+
primaryAction: t(s)
|
|
45
|
+
})
|
|
46
|
+
})
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
49
|
+
export { s as emptyStateBlock };
|