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
package/dist/index.d.ts
CHANGED
|
@@ -11,18 +11,27 @@ export { AsheeUIProvider } from './AsheeUIProvider';
|
|
|
11
11
|
*/
|
|
12
12
|
export * from './components/accordion';
|
|
13
13
|
export * from './components/alert';
|
|
14
|
+
export * from './components/auth-layout';
|
|
14
15
|
export * from './components/autocomplete';
|
|
15
16
|
export * from './components/avatar';
|
|
16
17
|
export * from './components/badge';
|
|
17
18
|
export * from './components/breadcrumb';
|
|
18
19
|
export * from './components/button';
|
|
20
|
+
export * from './components/calendar';
|
|
19
21
|
export * from './components/card';
|
|
20
22
|
export * from './components/carousel';
|
|
21
23
|
export * from './components/chip';
|
|
22
|
-
export * from './components/
|
|
24
|
+
export * from './components/clipboard';
|
|
25
|
+
export * from './components/container';
|
|
26
|
+
export * from './components/cta';
|
|
23
27
|
export * from './components/drawer';
|
|
24
28
|
export * from './components/dropmenu';
|
|
29
|
+
export * from './components/empty-state';
|
|
30
|
+
export * from './components/feature-grid';
|
|
31
|
+
export * from './components/footer';
|
|
25
32
|
export * from './components/form';
|
|
33
|
+
export * from './components/grid';
|
|
34
|
+
export * from './components/hero';
|
|
26
35
|
export * from './components/image';
|
|
27
36
|
export * from './components/input';
|
|
28
37
|
export * from './components/keyboard';
|
|
@@ -30,15 +39,23 @@ export * from './components/link';
|
|
|
30
39
|
export * from './components/marquee';
|
|
31
40
|
export * from './components/modal';
|
|
32
41
|
export * from './components/multi-select';
|
|
42
|
+
export * from './components/navbar';
|
|
43
|
+
export * from './components/page';
|
|
33
44
|
export * from './components/pagination';
|
|
45
|
+
export * from './components/pin-input';
|
|
46
|
+
export * from './components/pricing-card';
|
|
34
47
|
export * from './components/radio';
|
|
35
48
|
export * from './components/resizable-screen';
|
|
49
|
+
export * from './components/section';
|
|
36
50
|
export * from './components/sidebar';
|
|
51
|
+
export * from './components/sidebar-layout';
|
|
37
52
|
export * from './components/skeleton';
|
|
38
53
|
export * from './components/spinner';
|
|
54
|
+
export * from './components/stack';
|
|
39
55
|
export * from './components/switch';
|
|
40
56
|
export * from './components/table';
|
|
41
57
|
export * from './components/tabs';
|
|
58
|
+
export * from './components/testimonials';
|
|
42
59
|
export * from './components/textarea';
|
|
43
60
|
export * from './components/toast';
|
|
44
61
|
export * from './components/tooltip';
|
|
@@ -48,7 +65,7 @@ export type { ExternalConfig } from './config';
|
|
|
48
65
|
* Shared type exports.
|
|
49
66
|
* These types are used across multiple components for consistency.
|
|
50
67
|
*/
|
|
51
|
-
export type { Color, Radius, Size, Variant } from './shared';
|
|
68
|
+
export type { ActionConfig, Color, Radius, Size, Space, Variant, } from './shared';
|
|
52
69
|
/**
|
|
53
70
|
* Theme type exports.
|
|
54
71
|
* These types define the color system and theme configuration.
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAKH,OAAO,yCAAyC,CAAC;AAEjD,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;;;GAQG;AACH,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAKH,OAAO,yCAAyC,CAAC;AAEjD,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;;;GAQG;AACH,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC/C;;;GAGG;AACH,YAAY,EACV,YAAY,EACZ,KAAK,EACL,MAAM,EACN,IAAI,EACJ,KAAK,EACL,OAAO,GACR,MAAM,UAAU,CAAC;AAClB;;;GAGG;AACH,YAAY,EACV,kBAAkB,EAClB,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,SAAS,GACV,MAAM,eAAe,CAAC;AACvB;;;GAGG;AACH,OAAO,EACL,iBAAiB,EACjB,eAAe,GAChB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -7,75 +7,110 @@ import { FALLBACK_ACCORDION_CONFIG as i, defaultAccordionConfig as a } from "./c
|
|
|
7
7
|
import { Accordion as o } from "./components/accordion/Accordion.js";
|
|
8
8
|
import { FALLBACK_ALERT_CONFIG as s, defaultAlertConfig as c } from "./components/alert/alert-config.js";
|
|
9
9
|
import { Alert as l } from "./components/alert/Alert.js";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
|
|
10
|
+
import { FALLBACK_TYPOGRAPHY_CONFIG as u, defaultTypographyConfig as d } from "./components/typography/typography-config.js";
|
|
11
|
+
import { Typography as f } from "./components/typography/Typography.js";
|
|
12
|
+
import { FALLBACK_AUTH_LAYOUT_CONFIG as p, defaultAuthLayoutConfig as m } from "./components/auth-layout/auth-layout-config.js";
|
|
13
|
+
import { AuthLayout as h } from "./components/auth-layout/AuthLayout.js";
|
|
14
|
+
import { FALLBACK_SPINNER_CONFIG as g, defaultSpinnerConfig as _ } from "./components/spinner/spinner-config.js";
|
|
15
|
+
import { Spinner as v } from "./components/spinner/spinner.js";
|
|
16
|
+
import { KeyboardContext as y, useKeyboard as b } from "./components/keyboard/KeyboardContext.js";
|
|
17
|
+
import { FALLBACK_KEYBOARD_CONFIG as x, defaultKeyDisplay as S, defaultKeyboardConfig as C, defaultKeyboardLayouts as w } from "./components/keyboard/keyboard-config.js";
|
|
18
|
+
import { FALLBACK_BUTTON_CONFIG as T, defaultButtonConfig as E } from "./components/button/button-config.js";
|
|
19
|
+
import { Button as D } from "./components/button/Button.js";
|
|
20
|
+
import { OnScreenKeyboard as O } from "./components/keyboard/OnScreenKeyboard.js";
|
|
21
|
+
import { KeyboardProvider as k } from "./components/keyboard/KeyboardProvider.js";
|
|
22
|
+
import { useKeyboardField as A } from "./components/keyboard/use-keyboard-field.js";
|
|
23
|
+
import { Input as j } from "./components/input/Input.js";
|
|
24
|
+
import { defaultInputConfig as M } from "./components/input/input-config.js";
|
|
25
|
+
import { PasswordInput as N } from "./components/input/PasswordInput.js";
|
|
26
|
+
import { FALLBACK_AUTOCOMPLETE_CONFIG as P, defaultAutocompleteConfig as F } from "./components/autocomplete/autocomplete-config.js";
|
|
27
|
+
import { Autocomplete as I } from "./components/autocomplete/Autocomplete.js";
|
|
28
|
+
import { FALLBACK_IMAGE_CONFIG as L, defaultImageConfig as R } from "./components/image/image-config.js";
|
|
29
|
+
import { Image as z } from "./components/image/Image.js";
|
|
30
|
+
import { FALLBACK_AVATAR_CONFIG as B, defaultAvatarConfig as V } from "./components/avatar/avatar-config.js";
|
|
31
|
+
import { Avatar as H } from "./components/avatar/Avatar.js";
|
|
32
|
+
import { FALLBACK_BADGE_CONFIG as U, defaultBadgeConfig as W } from "./components/badge/badge-config.js";
|
|
33
|
+
import { Badge as G } from "./components/badge/Badge.js";
|
|
34
|
+
import { FALLBACK_LINK_CONFIG as K, defaultLinkConfig as q } from "./components/link/link-config.js";
|
|
35
|
+
import { Link as J } from "./components/link/Link.js";
|
|
36
|
+
import { FALLBACK_BREADCRUMB_CONFIG as Y, defaultBreadcrumbConfig as X } from "./components/breadcrumb/breadcrumb-config.js";
|
|
37
|
+
import { Breadcrumb as Z } from "./components/breadcrumb/Breadcrumb.js";
|
|
38
|
+
import { FALLBACK_DATE_PICKER_CONFIG as Q, defaultCalendarConfig as $ } from "./components/calendar/calendar-config.js";
|
|
39
|
+
import { Calendar as ee } from "./components/calendar/Calendar.js";
|
|
40
|
+
import { FALLBACK_CARD_CONFIG as te, defaultCardConfig as ne } from "./components/card/card-config.js";
|
|
41
|
+
import { Card as re } from "./components/card/Card.js";
|
|
42
|
+
import { FALLBACK_CAROUSEL_CONFIG as ie, defaultCarouselConfig as ae } from "./components/carousel/carousel-config.js";
|
|
43
|
+
import { Carousel as oe } from "./components/carousel/Carousel.js";
|
|
44
|
+
import { FALLBACK_CHIP_CONFIG as se, defaultChipConfig as ce } from "./components/chip/chip-config.js";
|
|
45
|
+
import { Chip as le } from "./components/chip/Chip.js";
|
|
46
|
+
import { FALLBACK_CLIPBOARD_CONFIG as ue, defaultClipboardConfig as de } from "./components/clipboard/clipboard-config.js";
|
|
47
|
+
import { Clipboard as fe } from "./components/clipboard/Clipboard.js";
|
|
48
|
+
import { CopyButton as pe } from "./components/clipboard/CopyButton.js";
|
|
49
|
+
import { FALLBACK_CONTAINER_CONFIG as me, defaultContainerConfig as he } from "./components/container/container-config.js";
|
|
50
|
+
import { Container as ge } from "./components/container/Container.js";
|
|
51
|
+
import { FALLBACK_SECTION_CONFIG as _e, defaultSectionConfig as ve } from "./components/section/section-config.js";
|
|
52
|
+
import { Section as ye } from "./components/section/Section.js";
|
|
53
|
+
import { FALLBACK_CTA_CONFIG as be, defaultCtaConfig as xe } from "./components/cta/cta-config.js";
|
|
54
|
+
import { CTA as Se } from "./components/cta/CTA.js";
|
|
55
|
+
import { FALLBACK_DRAWER_CONFIG as Ce, defaultDrawerConfig as we } from "./components/drawer/drawer-config.js";
|
|
56
|
+
import { Drawer as Te } from "./components/drawer/Drawer.js";
|
|
57
|
+
import { FALLBACK_SELECT_CONFIG as Ee, defaultDropmenuConfig as De } from "./components/dropmenu/dropmenu-config.js";
|
|
58
|
+
import { Dropmenu as Oe } from "./components/dropmenu/Dropmenu.js";
|
|
59
|
+
import { FALLBACK_EMPTY_STATE_CONFIG as ke, defaultEmptyStateConfig as Ae } from "./components/empty-state/empty-state-config.js";
|
|
60
|
+
import { EmptyState as je } from "./components/empty-state/EmptyState.js";
|
|
61
|
+
import { FALLBACK_GRID_CONFIG as Me, defaultGridConfig as Ne } from "./components/grid/grid-config.js";
|
|
62
|
+
import { Grid as Pe } from "./components/grid/Grid.js";
|
|
63
|
+
import { FALLBACK_FEATURE_GRID_CONFIG as Fe, defaultFeatureGridConfig as Ie } from "./components/feature-grid/feature-grid-config.js";
|
|
64
|
+
import { FeatureGrid as Le } from "./components/feature-grid/FeatureGrid.js";
|
|
65
|
+
import { FALLBACK_FOOTER_CONFIG as Re, defaultFooterConfig as ze } from "./components/footer/footer-config.js";
|
|
66
|
+
import { Footer as Be } from "./components/footer/Footer.js";
|
|
67
|
+
import { FALLBACK_FORM_CONFIG as Ve, defaultFormConfig as He } from "./components/form/form-config.js";
|
|
68
|
+
import { Form as Ue } from "./components/form/Form.js";
|
|
69
|
+
import { FALLBACK_HERO_CONFIG as We, defaultHeroConfig as Ge } from "./components/hero/hero-config.js";
|
|
70
|
+
import { Hero as Ke } from "./components/hero/Hero.js";
|
|
71
|
+
import { FALLBACK_MARQUEE_CONFIG as qe, defaultMarqueeConfig as Je } from "./components/marquee/marquee-config.js";
|
|
72
|
+
import { Marquee as Ye } from "./components/marquee/Marquee.js";
|
|
73
|
+
import { FALLBACK_MODAL_CONFIG as Xe, defaultModalConfig as Ze } from "./components/modal/modal-config.js";
|
|
74
|
+
import { Modal as Qe } from "./components/modal/Modal.js";
|
|
75
|
+
import { FALLBACK_MULTI_SELECT_CONFIG as $e, defaultMultiSelectConfig as et } from "./components/multi-select/multi-select-config.js";
|
|
76
|
+
import { MultiSelect as tt } from "./components/multi-select/MultiSelect.js";
|
|
77
|
+
import { FALLBACK_NAVBAR_CONFIG as nt, defaultNavbarConfig as rt } from "./components/navbar/navbar-config.js";
|
|
78
|
+
import { Navbar as it } from "./components/navbar/Navbar.js";
|
|
79
|
+
import { FALLBACK_PAGE_CONFIG as at, defaultPageConfig as ot } from "./components/page/page-config.js";
|
|
80
|
+
import { Page as st, PageContent as ct, PageFooter as lt, PageHeader as ut } from "./components/page/Page.js";
|
|
81
|
+
import { FALLBACK_PAGINATION_CONFIG as dt, defaultPaginationConfig as ft } from "./components/pagination/pagination-config.js";
|
|
82
|
+
import { Pagination as pt } from "./components/pagination/Pagination.js";
|
|
83
|
+
import { FALLBACK_PIN_INPUT_CONFIG as mt, defaultPinInputConfig as ht } from "./components/pin-input/pin-input-config.js";
|
|
84
|
+
import { PinInput as gt, sanitizePinValue as _t } from "./components/pin-input/PinInput.js";
|
|
85
|
+
import { FALLBACK_PRICING_CARD_CONFIG as vt, defaultPricingCardConfig as yt } from "./components/pricing-card/pricing-card-config.js";
|
|
86
|
+
import { PricingCard as bt } from "./components/pricing-card/PricingCard.js";
|
|
87
|
+
import { FALLBACK_RADIO_CONFIG as xt, defaultRadioConfig as St } from "./components/radio/radio-config.js";
|
|
88
|
+
import { Radio as Ct } from "./components/radio/Radio.js";
|
|
89
|
+
import { RadioGroup as wt } from "./components/radio/RadioGroup.js";
|
|
90
|
+
import { FALLBACK_RESIZABLE_SCREEN_CONFIG as Tt, defaultResizableScreenConfig as Et } from "./components/resizable-screen/resizable-screen-config.js";
|
|
91
|
+
import { ResizableScreen as Dt } from "./components/resizable-screen/ResizableScreen.js";
|
|
92
|
+
import { FALLBACK_TOOLTIP_CONFIG as Ot, defaultTooltipConfig as kt } from "./components/tooltip/tooltip-config.js";
|
|
93
|
+
import { Tooltip as At } from "./components/tooltip/Tooltip.js";
|
|
94
|
+
import { FALLBACK_SIDEBAR_CONFIG as jt, defaultSidebarConfig as Mt } from "./components/sidebar/sidebar-config.js";
|
|
95
|
+
import { Sidebar as Nt } from "./components/sidebar/Sidebar.js";
|
|
96
|
+
import { FALLBACK_SIDEBAR_LAYOUT_CONFIG as Pt, defaultSidebarLayoutConfig as Ft } from "./components/sidebar-layout/sidebar-layout-config.js";
|
|
97
|
+
import { SidebarLayout as It } from "./components/sidebar-layout/SidebarLayout.js";
|
|
98
|
+
import { FALLBACK_SKELETON_CONFIG as Lt, defaultSkeletonConfig as Rt } from "./components/skeleton/skeleton-config.js";
|
|
99
|
+
import { Skeleton as zt } from "./components/skeleton/Skeleton.js";
|
|
100
|
+
import { FALLBACK_STACK_CONFIG as Bt, defaultStackConfig as Vt } from "./components/stack/stack-config.js";
|
|
101
|
+
import { HStack as Ht, Stack as Ut, VStack as Wt } from "./components/stack/Stack.js";
|
|
102
|
+
import { FALLBACK_SWITCH_CONFIG as Gt, defaultSwitchConfig as Kt } from "./components/switch/switch-config.js";
|
|
103
|
+
import { Switch as qt } from "./components/switch/Switch.js";
|
|
104
|
+
import { FALLBACK_TABLE_CONFIG as Jt, defaultTableConfig as Yt } from "./components/table/table-config.js";
|
|
105
|
+
import { Table as Xt } from "./components/table/Table.js";
|
|
106
|
+
import { FALLBACK_TABS_CONFIG as Zt, defaultTabsConfig as Qt } from "./components/tabs/tabs-config.js";
|
|
107
|
+
import { Tabs as $t } from "./components/tabs/Tabs.js";
|
|
108
|
+
import { FALLBACK_TESTIMONIALS_CONFIG as en, defaultTestimonialsConfig as tn } from "./components/testimonials/testimonials-config.js";
|
|
109
|
+
import { Testimonials as nn } from "./components/testimonials/Testimonials.js";
|
|
110
|
+
import { FALLBACK_TEXTAREA_CONFIG as rn, defaultTextAreaConfig as an } from "./components/textarea/textarea-config.js";
|
|
111
|
+
import { Textarea as on } from "./components/textarea/Textarea.js";
|
|
112
|
+
import { ToastContext as sn, useToast as cn } from "./components/toast/ToastContext.js";
|
|
113
|
+
import { FALLBACK_TOAST_CONFIG as ln, defaultToastConfig as un } from "./components/toast/toast-config.js";
|
|
114
|
+
import { ToastItem as dn } from "./components/toast/ToastItem.js";
|
|
115
|
+
import { ToastProvider as fn } from "./components/toast/ToastProvider.js";
|
|
116
|
+
export { o as Accordion, l as Alert, r as AsheeUIProvider, h as AuthLayout, I as Autocomplete, H as Avatar, G as Badge, Z as Breadcrumb, D as Button, Se as CTA, ee as Calendar, re as Card, oe as Carousel, le as Chip, fe as Clipboard, ge as Container, pe as CopyButton, Te as Drawer, Oe as Dropmenu, je as EmptyState, i as FALLBACK_ACCORDION_CONFIG, s as FALLBACK_ALERT_CONFIG, p as FALLBACK_AUTH_LAYOUT_CONFIG, P as FALLBACK_AUTOCOMPLETE_CONFIG, B as FALLBACK_AVATAR_CONFIG, U as FALLBACK_BADGE_CONFIG, Y as FALLBACK_BREADCRUMB_CONFIG, T as FALLBACK_BUTTON_CONFIG, te as FALLBACK_CARD_CONFIG, ie as FALLBACK_CAROUSEL_CONFIG, se as FALLBACK_CHIP_CONFIG, ue as FALLBACK_CLIPBOARD_CONFIG, me as FALLBACK_CONTAINER_CONFIG, be as FALLBACK_CTA_CONFIG, Q as FALLBACK_DATE_PICKER_CONFIG, Ce as FALLBACK_DRAWER_CONFIG, ke as FALLBACK_EMPTY_STATE_CONFIG, Fe as FALLBACK_FEATURE_GRID_CONFIG, Re as FALLBACK_FOOTER_CONFIG, Ve as FALLBACK_FORM_CONFIG, Me as FALLBACK_GRID_CONFIG, We as FALLBACK_HERO_CONFIG, L as FALLBACK_IMAGE_CONFIG, x as FALLBACK_KEYBOARD_CONFIG, K as FALLBACK_LINK_CONFIG, qe as FALLBACK_MARQUEE_CONFIG, Xe as FALLBACK_MODAL_CONFIG, $e as FALLBACK_MULTI_SELECT_CONFIG, nt as FALLBACK_NAVBAR_CONFIG, at as FALLBACK_PAGE_CONFIG, dt as FALLBACK_PAGINATION_CONFIG, mt as FALLBACK_PIN_INPUT_CONFIG, vt as FALLBACK_PRICING_CARD_CONFIG, xt as FALLBACK_RADIO_CONFIG, Tt as FALLBACK_RESIZABLE_SCREEN_CONFIG, _e as FALLBACK_SECTION_CONFIG, Ee as FALLBACK_SELECT_CONFIG, jt as FALLBACK_SIDEBAR_CONFIG, Pt as FALLBACK_SIDEBAR_LAYOUT_CONFIG, Lt as FALLBACK_SKELETON_CONFIG, g as FALLBACK_SPINNER_CONFIG, Bt as FALLBACK_STACK_CONFIG, Gt as FALLBACK_SWITCH_CONFIG, Jt as FALLBACK_TABLE_CONFIG, Zt as FALLBACK_TABS_CONFIG, en as FALLBACK_TESTIMONIALS_CONFIG, rn as FALLBACK_TEXTAREA_CONFIG, ln as FALLBACK_TOAST_CONFIG, Ot as FALLBACK_TOOLTIP_CONFIG, u as FALLBACK_TYPOGRAPHY_CONFIG, Le as FeatureGrid, Be as Footer, Ue as Form, Pe as Grid, Ht as HStack, Ke as Hero, z as Image, j as Input, y as KeyboardContext, k as KeyboardProvider, J as Link, Ye as Marquee, Qe as Modal, tt as MultiSelect, it as Navbar, O as OnScreenKeyboard, st as Page, ct as PageContent, lt as PageFooter, ut as PageHeader, pt as Pagination, N as PasswordInput, gt as PinInput, bt as PricingCard, Ct as Radio, wt as RadioGroup, Dt as ResizableScreen, ye as Section, Nt as Sidebar, It as SidebarLayout, zt as Skeleton, v as Spinner, Ut as Stack, qt as Switch, e as THEME_STORAGE_KEY, Xt as Table, $t as Tabs, nn as Testimonials, on as Textarea, sn as ToastContext, dn as ToastItem, fn as ToastProvider, At as Tooltip, f as Typography, Wt as VStack, a as defaultAccordionConfig, c as defaultAlertConfig, m as defaultAuthLayoutConfig, F as defaultAutocompleteConfig, V as defaultAvatarConfig, W as defaultBadgeConfig, X as defaultBreadcrumbConfig, E as defaultButtonConfig, $ as defaultCalendarConfig, ne as defaultCardConfig, ae as defaultCarouselConfig, ce as defaultChipConfig, de as defaultClipboardConfig, he as defaultContainerConfig, xe as defaultCtaConfig, we as defaultDrawerConfig, De as defaultDropmenuConfig, Ae as defaultEmptyStateConfig, Ie as defaultFeatureGridConfig, ze as defaultFooterConfig, He as defaultFormConfig, Ne as defaultGridConfig, Ge as defaultHeroConfig, R as defaultImageConfig, M as defaultInputConfig, S as defaultKeyDisplay, C as defaultKeyboardConfig, w as defaultKeyboardLayouts, q as defaultLinkConfig, Je as defaultMarqueeConfig, Ze as defaultModalConfig, et as defaultMultiSelectConfig, rt as defaultNavbarConfig, ot as defaultPageConfig, ft as defaultPaginationConfig, ht as defaultPinInputConfig, yt as defaultPricingCardConfig, St as defaultRadioConfig, Et as defaultResizableScreenConfig, ve as defaultSectionConfig, Mt as defaultSidebarConfig, Ft as defaultSidebarLayoutConfig, Rt as defaultSkeletonConfig, _ as defaultSpinnerConfig, Vt as defaultStackConfig, Kt as defaultSwitchConfig, Yt as defaultTableConfig, Qt as defaultTabsConfig, tn as defaultTestimonialsConfig, an as defaultTextAreaConfig, un as defaultToastConfig, kt as defaultTooltipConfig, d as defaultTypographyConfig, _t as sanitizePinValue, t as themeController, b as useKeyboard, A as useKeyboardField, n as useTheme, cn as useToast };
|
|
@@ -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 };
|