@thorprovider/blocks 0.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/.turbo/turbo-build.log +24 -0
- package/.turbo/turbo-test.log +10 -0
- package/.turbo/turbo-type-check.log +0 -0
- package/AGENTS.md +1 -0
- package/README.md +161 -0
- package/components.json +33 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/contracts.d.mts +563 -0
- package/dist/contracts.d.ts +563 -0
- package/dist/contracts.js +207 -0
- package/dist/contracts.js.map +1 -0
- package/dist/contracts.mjs +168 -0
- package/dist/contracts.mjs.map +1 -0
- package/dist/index.d.mts +2408 -0
- package/dist/index.d.ts +2408 -0
- package/dist/index.js +16422 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +16352 -0
- package/dist/index.mjs.map +1 -0
- package/docs/standards/data-contracts.md +70 -0
- package/docs/standards/theming.md +85 -0
- package/package.json +62 -0
- package/src/blocks/application/app-shells/app-shell-1-sidebar.tsx +198 -0
- package/src/blocks/application/app-shells/app-shell-1.tsx +196 -0
- package/src/blocks/application/login-forms/login-page-1.tsx +246 -0
- package/src/blocks/application/login-forms/login-page-2.tsx +207 -0
- package/src/blocks/application/password-recovery/forgot-password-page-1-brand-mark.tsx +38 -0
- package/src/blocks/application/password-recovery/forgot-password-page-1.tsx +320 -0
- package/src/blocks/application/signup-forms/signup-page-1.tsx +231 -0
- package/src/blocks/application/verification/verify-1.tsx +307 -0
- package/src/blocks/application/verification/verify-confetti.tsx +192 -0
- package/src/blocks/e-commerce/category-filters/category-filter-1.tsx +260 -0
- package/src/blocks/e-commerce/category-filters/category-filter-2-filter-panel.tsx +179 -0
- package/src/blocks/e-commerce/category-filters/category-filter-2.tsx +341 -0
- package/src/blocks/e-commerce/category-filters/category-filter-4-chip-rail.tsx +57 -0
- package/src/blocks/e-commerce/category-filters/category-filter-4-drawer.tsx +124 -0
- package/src/blocks/e-commerce/category-filters/category-filter-4-fields.tsx +170 -0
- package/src/blocks/e-commerce/category-filters/category-filter-4-sidebar.tsx +52 -0
- package/src/blocks/e-commerce/category-filters/category-filter-4-sort-sheet.tsx +57 -0
- package/src/blocks/e-commerce/category-filters/category-filter-4-state.ts +68 -0
- package/src/blocks/e-commerce/category-filters/category-filter-4.tsx +298 -0
- package/src/blocks/e-commerce/checkout-forms/card-formatting.test.ts +47 -0
- package/src/blocks/e-commerce/checkout-forms/card-formatting.ts +9 -0
- package/src/blocks/e-commerce/checkout-forms/checkbox-check.tsx +74 -0
- package/src/blocks/e-commerce/checkout-forms/checkout-confirmation-fulfilment-progress.tsx +189 -0
- package/src/blocks/e-commerce/checkout-forms/checkout-confirmation.tsx +283 -0
- package/src/blocks/e-commerce/checkout-forms/checkout-field-feedback.tsx +29 -0
- package/src/blocks/e-commerce/checkout-forms/checkout-form-1-contact-step.tsx +96 -0
- package/src/blocks/e-commerce/checkout-forms/checkout-form-1-country-field.tsx +51 -0
- package/src/blocks/e-commerce/checkout-forms/checkout-form-1-order-summary.tsx +139 -0
- package/src/blocks/e-commerce/checkout-forms/checkout-form-1-payment-step.tsx +184 -0
- package/src/blocks/e-commerce/checkout-forms/checkout-form-1-progress.tsx +36 -0
- package/src/blocks/e-commerce/checkout-forms/checkout-form-1-shipping-step.tsx +107 -0
- package/src/blocks/e-commerce/checkout-forms/checkout-form-1.tsx +235 -0
- package/src/blocks/e-commerce/checkout-forms/checkout-form-2-order-summary.tsx +130 -0
- package/src/blocks/e-commerce/checkout-forms/checkout-form-2-payment-card.tsx +175 -0
- package/src/blocks/e-commerce/checkout-forms/checkout-form-2-shipping-card.tsx +190 -0
- package/src/blocks/e-commerce/checkout-forms/checkout-form-2.tsx +312 -0
- package/src/blocks/e-commerce/checkout-forms/checkout-form-3-information-step.tsx +91 -0
- package/src/blocks/e-commerce/checkout-forms/checkout-form-3-order-summary.tsx +110 -0
- package/src/blocks/e-commerce/checkout-forms/checkout-form-3-payment-step.tsx +137 -0
- package/src/blocks/e-commerce/checkout-forms/checkout-form-3-progress.tsx +68 -0
- package/src/blocks/e-commerce/checkout-forms/checkout-form-3-review-step.tsx +79 -0
- package/src/blocks/e-commerce/checkout-forms/checkout-form-3-shipping-step.tsx +172 -0
- package/src/blocks/e-commerce/checkout-forms/checkout-form-3.tsx +392 -0
- package/src/blocks/e-commerce/checkout-forms/checkout-form-types.ts +7 -0
- package/src/blocks/e-commerce/navigation/category-icon.test.tsx +54 -0
- package/src/blocks/e-commerce/navigation/category-icon.tsx +94 -0
- package/src/blocks/e-commerce/navigation/mega-menu.test.tsx +139 -0
- package/src/blocks/e-commerce/navigation/mega-menu.tsx +271 -0
- package/src/blocks/e-commerce/navigation/mobile-category-drawer.test.tsx +152 -0
- package/src/blocks/e-commerce/navigation/mobile-category-drawer.tsx +276 -0
- package/src/blocks/e-commerce/order-history/order-history-1.tsx +159 -0
- package/src/blocks/e-commerce/order-history/order-history-2.tsx +222 -0
- package/src/blocks/e-commerce/product-categories/avatar-group.tsx +86 -0
- package/src/blocks/e-commerce/product-categories/product-category-1.tsx +126 -0
- package/src/blocks/e-commerce/product-categories/product-category-2.tsx +100 -0
- package/src/blocks/e-commerce/product-categories/product-category-4.tsx +129 -0
- package/src/blocks/e-commerce/product-categories/product-category-5.tsx +218 -0
- package/src/blocks/e-commerce/product-list/product-card-1.tsx +131 -0
- package/src/blocks/e-commerce/product-list/product-card-2.tsx +71 -0
- package/src/blocks/e-commerce/product-list/product-card-3-reaction-toggle.tsx +166 -0
- package/src/blocks/e-commerce/product-list/product-card-3.tsx +215 -0
- package/src/blocks/e-commerce/product-list/product-card-5-checkbox-check.tsx +98 -0
- package/src/blocks/e-commerce/product-list/product-card-5-reaction-toggle.tsx +171 -0
- package/src/blocks/e-commerce/product-list/product-card-5.tsx +367 -0
- package/src/blocks/e-commerce/product-overview/product-overview-1.tsx +201 -0
- package/src/blocks/e-commerce/product-overview/product-overview-2.tsx +272 -0
- package/src/blocks/e-commerce/product-overview/product-overview-5-gallery.tsx +59 -0
- package/src/blocks/e-commerce/product-overview/product-overview-5-lightbox-tab.tsx +104 -0
- package/src/blocks/e-commerce/product-overview/product-overview-5-reviews-tab.tsx +82 -0
- package/src/blocks/e-commerce/product-overview/product-overview-5-tabs.tsx +69 -0
- package/src/blocks/e-commerce/product-overview/product-overview-5.tsx +274 -0
- package/src/blocks/e-commerce/product-overview/product-quick-view-card.tsx +135 -0
- package/src/blocks/e-commerce/product-overview/product-quick-view-dialog.tsx +393 -0
- package/src/blocks/e-commerce/product-overview/product-quick-view.tsx +136 -0
- package/src/blocks/e-commerce/reviews/review-rating-1-review-form.tsx +133 -0
- package/src/blocks/e-commerce/reviews/review-rating-1.tsx +178 -0
- package/src/blocks/e-commerce/reviews/review-rating-2.tsx +246 -0
- package/src/blocks/e-commerce/shopping-carts/shopping-cart-1-spinning-counter.tsx +142 -0
- package/src/blocks/e-commerce/shopping-carts/shopping-cart-1.tsx +291 -0
- package/src/blocks/e-commerce/shopping-carts/shopping-cart-2-item-row.tsx +110 -0
- package/src/blocks/e-commerce/shopping-carts/shopping-cart-2-recommendations.tsx +51 -0
- package/src/blocks/e-commerce/shopping-carts/shopping-cart-2-spinning-counter.tsx +146 -0
- package/src/blocks/e-commerce/shopping-carts/shopping-cart-2.tsx +295 -0
- package/src/blocks/e-commerce/shopping-carts/shopping-cart-3-spinning-counter.tsx +142 -0
- package/src/blocks/e-commerce/shopping-carts/shopping-cart-3.tsx +342 -0
- package/src/blocks/e-commerce/shopping-carts/shopping-cart-4-spinning-counter.tsx +146 -0
- package/src/blocks/e-commerce/shopping-carts/shopping-cart-4.tsx +391 -0
- package/src/blocks/e-commerce/store-containers/store-container-1.tsx +29 -0
- package/src/blocks/e-commerce/storefront-hero/storefront-hero-1.tsx +244 -0
- package/src/blocks/e-commerce/storefront-hero/storefront-hero-2.tsx +283 -0
- package/src/blocks/e-commerce/storefront-hero/storefront-hero-5.tsx +318 -0
- package/src/blocks/e-commerce/storefront-hero/storefront-hero-6.tsx +205 -0
- package/src/blocks/marketing/banners/avatar-group.tsx +69 -0
- package/src/blocks/marketing/banners/banner-1.tsx +188 -0
- package/src/blocks/marketing/cta/cta-section-1.tsx +112 -0
- package/src/blocks/marketing/faq/faq-block-1.tsx +45 -0
- package/src/blocks/marketing/features/feature-1.tsx +97 -0
- package/src/blocks/marketing/features/feature-2.tsx +82 -0
- package/src/blocks/marketing/footers/footer-section-1.tsx +141 -0
- package/src/blocks/marketing/footers/footer-section-3.tsx +192 -0
- package/src/blocks/marketing/footers/footer-section-4.tsx +355 -0
- package/src/blocks/marketing/hero-sections/avatar-group.tsx +86 -0
- package/src/blocks/marketing/hero-sections/hero-section-1.tsx +135 -0
- package/src/blocks/marketing/logo-clouds/logo-cloud-1-logo-icon.tsx +52 -0
- package/src/blocks/marketing/logo-clouds/logo-cloud-1.tsx +56 -0
- package/src/blocks/marketing/navbars/navbar-1.tsx +267 -0
- package/src/blocks/marketing/navbars/navbar-2.tsx +351 -0
- package/src/blocks/marketing/navbars/navbar-3.tsx +303 -0
- package/src/blocks/marketing/navbars/navbar-4-account-menu.tsx +118 -0
- package/src/blocks/marketing/navbars/navbar-4-cart-sheet.tsx +248 -0
- package/src/blocks/marketing/navbars/navbar-4-like-button.tsx +177 -0
- package/src/blocks/marketing/navbars/navbar-4-mobile-nav.tsx +104 -0
- package/src/blocks/marketing/navbars/navbar-4-product-grid.tsx +219 -0
- package/src/blocks/marketing/navbars/navbar-4-search-bar.tsx +52 -0
- package/src/blocks/marketing/navbars/navbar-4.tsx +411 -0
- package/src/blocks/marketing/pricing/pricing-section-1.tsx +94 -0
- package/src/blocks/marketing/statistics/statistic-1.tsx +93 -0
- package/src/blocks/marketing/testimonials/testimonial-1.tsx +141 -0
- package/src/blocks/marketing/testimonials/testimonial-2.tsx +108 -0
- package/src/blocks/shared/reaction-toggle.tsx +145 -0
- package/src/hooks/use-mobile.ts +19 -0
- package/src/index.ts +200 -0
- package/src/lib/contracts.test.ts +32 -0
- package/src/lib/contracts.ts +235 -0
- package/src/lib/types/menu.ts +43 -0
- package/src/lib/types.ts +4 -0
- package/src/lib/utils.ts +10 -0
- package/src/ui/accordion.tsx +65 -0
- package/src/ui/avatar.tsx +108 -0
- package/src/ui/badge.tsx +47 -0
- package/src/ui/breadcrumb.tsx +108 -0
- package/src/ui/button-group.tsx +83 -0
- package/src/ui/button.tsx +63 -0
- package/src/ui/card.tsx +91 -0
- package/src/ui/carousel.tsx +241 -0
- package/src/ui/dialog.tsx +158 -0
- package/src/ui/drawer.tsx +134 -0
- package/src/ui/dropdown-menu.tsx +256 -0
- package/src/ui/empty.tsx +103 -0
- package/src/ui/field.tsx +248 -0
- package/src/ui/input-group.tsx +170 -0
- package/src/ui/input-otp.tsx +76 -0
- package/src/ui/input.tsx +20 -0
- package/src/ui/label.tsx +23 -0
- package/src/ui/navigation-menu.tsx +167 -0
- package/src/ui/pagination.tsx +127 -0
- package/src/ui/progress.tsx +30 -0
- package/src/ui/radio-group.tsx +44 -0
- package/src/ui/select.tsx +189 -0
- package/src/ui/separator.tsx +27 -0
- package/src/ui/sheet.tsx +142 -0
- package/src/ui/sidebar.tsx +726 -0
- package/src/ui/skeleton.tsx +13 -0
- package/src/ui/table.tsx +115 -0
- package/src/ui/tabs.tsx +90 -0
- package/src/ui/textarea.tsx +17 -0
- package/src/ui/toggle-group.tsx +83 -0
- package/src/ui/toggle.tsx +46 -0
- package/src/ui/tooltip.tsx +56 -0
- package/tsconfig.json +20 -0
- package/tsup.config.ts +16 -0
- package/vitest.config.ts +9 -0
|
@@ -0,0 +1,563 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Money, ProductPreview, PaymentMethod } from '@thorprovider/types';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Serialization contracts for spec-driven storefronts.
|
|
6
|
+
*
|
|
7
|
+
* These Zod schemas are the *serializable subset* of what a spec may write for
|
|
8
|
+
* a block. The component keeps its rich React interface; the catalog/registry
|
|
9
|
+
* is the adapter that maps these props to real component props and binds
|
|
10
|
+
* callbacks (see storefronts-on-blocks design D3). `z.infer` is the typed
|
|
11
|
+
* boundary between spec and catalog — a prop outside the schema is a compile
|
|
12
|
+
* error, not a runtime surprise.
|
|
13
|
+
*
|
|
14
|
+
* Data shapes are projections of the @thorprovider/types canon so that
|
|
15
|
+
* @thorprovider/adapters output validates without conflict:
|
|
16
|
+
* - Prices are plain numbers here while the canon `Money` is a decimal string
|
|
17
|
+
* ({ amount: "45.00", currencyCode }). The projection happens at the
|
|
18
|
+
* loader boundary.
|
|
19
|
+
* - Blocks use `title` while the canon `ProductPreview` uses `name`. Reconcile
|
|
20
|
+
* via the canonical aliases below or the catalog/loader adapter.
|
|
21
|
+
*/
|
|
22
|
+
type CanonMoney = Money;
|
|
23
|
+
type CanonProduct = ProductPreview;
|
|
24
|
+
/**
|
|
25
|
+
* Fallback data-URI for required image fields when the data source has no
|
|
26
|
+
* image. Image fields are non-optional `z.string()` in these contracts, so the
|
|
27
|
+
* boundary must never emit `""` (React warns about `src=""`); it must emit a
|
|
28
|
+
* real, renderable value. Hosts may override with their own branded fallback
|
|
29
|
+
* (e.g. electrostore's `CATEGORY_IMAGE_FALLBACK`), but blocks ship a neutral
|
|
30
|
+
* one so direct consumers are safe by default.
|
|
31
|
+
*/
|
|
32
|
+
declare const PRODUCT_IMAGE_FALLBACK: string;
|
|
33
|
+
declare const cardProductSchema: z.ZodObject<{
|
|
34
|
+
id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
35
|
+
title: z.ZodString;
|
|
36
|
+
price: z.ZodNumber;
|
|
37
|
+
originalPrice: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
image: z.ZodString;
|
|
39
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
title: string;
|
|
42
|
+
image: string;
|
|
43
|
+
id: string | number;
|
|
44
|
+
price: number;
|
|
45
|
+
badge?: string | undefined;
|
|
46
|
+
originalPrice?: number | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
title: string;
|
|
49
|
+
image: string;
|
|
50
|
+
id: string | number;
|
|
51
|
+
price: number;
|
|
52
|
+
badge?: string | undefined;
|
|
53
|
+
originalPrice?: number | undefined;
|
|
54
|
+
}>;
|
|
55
|
+
type CardProduct = z.infer<typeof cardProductSchema>;
|
|
56
|
+
declare const cartItemSchema: z.ZodObject<{
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
name: z.ZodString;
|
|
59
|
+
price: z.ZodNumber;
|
|
60
|
+
quantity: z.ZodNumber;
|
|
61
|
+
image: z.ZodString;
|
|
62
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
image: string;
|
|
65
|
+
id: string;
|
|
66
|
+
name: string;
|
|
67
|
+
price: number;
|
|
68
|
+
quantity: number;
|
|
69
|
+
variant?: string | undefined;
|
|
70
|
+
}, {
|
|
71
|
+
image: string;
|
|
72
|
+
id: string;
|
|
73
|
+
name: string;
|
|
74
|
+
price: number;
|
|
75
|
+
quantity: number;
|
|
76
|
+
variant?: string | undefined;
|
|
77
|
+
}>;
|
|
78
|
+
type CartItem = z.infer<typeof cartItemSchema>;
|
|
79
|
+
declare const recentlyViewedItemSchema: z.ZodObject<{
|
|
80
|
+
id: z.ZodString;
|
|
81
|
+
name: z.ZodString;
|
|
82
|
+
price: z.ZodNumber;
|
|
83
|
+
image: z.ZodString;
|
|
84
|
+
}, "strip", z.ZodTypeAny, {
|
|
85
|
+
image: string;
|
|
86
|
+
id: string;
|
|
87
|
+
name: string;
|
|
88
|
+
price: number;
|
|
89
|
+
}, {
|
|
90
|
+
image: string;
|
|
91
|
+
id: string;
|
|
92
|
+
name: string;
|
|
93
|
+
price: number;
|
|
94
|
+
}>;
|
|
95
|
+
type RecentlyViewedItem = z.infer<typeof recentlyViewedItemSchema>;
|
|
96
|
+
declare const promotionSchema: z.ZodObject<{
|
|
97
|
+
threshold: z.ZodNumber;
|
|
98
|
+
reward: z.ZodString;
|
|
99
|
+
icon: z.ZodDefault<z.ZodString>;
|
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
|
101
|
+
icon: string;
|
|
102
|
+
threshold: number;
|
|
103
|
+
reward: string;
|
|
104
|
+
}, {
|
|
105
|
+
threshold: number;
|
|
106
|
+
reward: string;
|
|
107
|
+
icon?: string | undefined;
|
|
108
|
+
}>;
|
|
109
|
+
type Promotion = z.infer<typeof promotionSchema>;
|
|
110
|
+
declare const storeCategorySchema: z.ZodType<StoreCategory>;
|
|
111
|
+
type StoreCategory = {
|
|
112
|
+
label: string;
|
|
113
|
+
href: string;
|
|
114
|
+
children?: StoreCategory[];
|
|
115
|
+
emphasis?: boolean;
|
|
116
|
+
};
|
|
117
|
+
declare const utilityLinkSchema: z.ZodObject<{
|
|
118
|
+
label: z.ZodString;
|
|
119
|
+
href: z.ZodString;
|
|
120
|
+
}, "strip", z.ZodTypeAny, {
|
|
121
|
+
label: string;
|
|
122
|
+
href: string;
|
|
123
|
+
}, {
|
|
124
|
+
label: string;
|
|
125
|
+
href: string;
|
|
126
|
+
}>;
|
|
127
|
+
type UtilityLink = z.infer<typeof utilityLinkSchema>;
|
|
128
|
+
declare const navCartItemSchema: z.ZodObject<{
|
|
129
|
+
id: z.ZodString;
|
|
130
|
+
name: z.ZodString;
|
|
131
|
+
variant: z.ZodString;
|
|
132
|
+
price: z.ZodNumber;
|
|
133
|
+
qty: z.ZodNumber;
|
|
134
|
+
image: z.ZodString;
|
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
|
+
variant: string;
|
|
137
|
+
image: string;
|
|
138
|
+
id: string;
|
|
139
|
+
name: string;
|
|
140
|
+
price: number;
|
|
141
|
+
qty: number;
|
|
142
|
+
}, {
|
|
143
|
+
variant: string;
|
|
144
|
+
image: string;
|
|
145
|
+
id: string;
|
|
146
|
+
name: string;
|
|
147
|
+
price: number;
|
|
148
|
+
qty: number;
|
|
149
|
+
}>;
|
|
150
|
+
type NavCartItem = z.infer<typeof navCartItemSchema>;
|
|
151
|
+
declare const storeUserSchema: z.ZodObject<{
|
|
152
|
+
name: z.ZodString;
|
|
153
|
+
email: z.ZodString;
|
|
154
|
+
avatar: z.ZodString;
|
|
155
|
+
initials: z.ZodString;
|
|
156
|
+
}, "strip", z.ZodTypeAny, {
|
|
157
|
+
email: string;
|
|
158
|
+
name: string;
|
|
159
|
+
avatar: string;
|
|
160
|
+
initials: string;
|
|
161
|
+
}, {
|
|
162
|
+
email: string;
|
|
163
|
+
name: string;
|
|
164
|
+
avatar: string;
|
|
165
|
+
initials: string;
|
|
166
|
+
}>;
|
|
167
|
+
type StoreUser = z.infer<typeof storeUserSchema>;
|
|
168
|
+
declare const accountMenuItemSchema: z.ZodObject<{
|
|
169
|
+
label: z.ZodString;
|
|
170
|
+
href: z.ZodString;
|
|
171
|
+
description: z.ZodOptional<z.ZodString>;
|
|
172
|
+
icon: z.ZodOptional<z.ZodEnum<["orders", "wishlist", "addresses", "settings"]>>;
|
|
173
|
+
}, "strip", z.ZodTypeAny, {
|
|
174
|
+
label: string;
|
|
175
|
+
href: string;
|
|
176
|
+
icon?: "orders" | "wishlist" | "addresses" | "settings" | undefined;
|
|
177
|
+
description?: string | undefined;
|
|
178
|
+
}, {
|
|
179
|
+
label: string;
|
|
180
|
+
href: string;
|
|
181
|
+
icon?: "orders" | "wishlist" | "addresses" | "settings" | undefined;
|
|
182
|
+
description?: string | undefined;
|
|
183
|
+
}>;
|
|
184
|
+
type AccountMenuItem = z.infer<typeof accountMenuItemSchema>;
|
|
185
|
+
/**
|
|
186
|
+
* Serialization contract for a payment method offered at checkout.
|
|
187
|
+
*
|
|
188
|
+
* A projection of `@thorprovider/types` `PaymentMethod` — the storefront-facing
|
|
189
|
+
* shape produced by the adapters transform. Checkout blocks render the method
|
|
190
|
+
* list from this data instead of hardcoding providers.
|
|
191
|
+
*/
|
|
192
|
+
declare const paymentMethodSchema: z.ZodType<PaymentMethod>;
|
|
193
|
+
declare const buttonPropsSchema: z.ZodObject<{
|
|
194
|
+
variant: z.ZodOptional<z.ZodEnum<["default", "destructive", "outline", "secondary", "ghost", "link"]>>;
|
|
195
|
+
size: z.ZodOptional<z.ZodEnum<["default", "xs", "sm", "lg", "icon", "icon-xs", "icon-sm", "icon-lg"]>>;
|
|
196
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
197
|
+
className: z.ZodOptional<z.ZodString>;
|
|
198
|
+
}, "strip", z.ZodTypeAny, {
|
|
199
|
+
variant?: "default" | "secondary" | "destructive" | "outline" | "ghost" | "link" | undefined;
|
|
200
|
+
className?: string | undefined;
|
|
201
|
+
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | undefined;
|
|
202
|
+
disabled?: boolean | undefined;
|
|
203
|
+
}, {
|
|
204
|
+
variant?: "default" | "secondary" | "destructive" | "outline" | "ghost" | "link" | undefined;
|
|
205
|
+
className?: string | undefined;
|
|
206
|
+
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | undefined;
|
|
207
|
+
disabled?: boolean | undefined;
|
|
208
|
+
}>;
|
|
209
|
+
type ButtonSpecProps = z.infer<typeof buttonPropsSchema>;
|
|
210
|
+
declare const storeContainer1PropsSchema: z.ZodObject<{
|
|
211
|
+
size: z.ZodOptional<z.ZodEnum<["default", "narrow", "wide", "full"]>>;
|
|
212
|
+
className: z.ZodOptional<z.ZodString>;
|
|
213
|
+
}, "strip", z.ZodTypeAny, {
|
|
214
|
+
className?: string | undefined;
|
|
215
|
+
size?: "default" | "narrow" | "wide" | "full" | undefined;
|
|
216
|
+
}, {
|
|
217
|
+
className?: string | undefined;
|
|
218
|
+
size?: "default" | "narrow" | "wide" | "full" | undefined;
|
|
219
|
+
}>;
|
|
220
|
+
type StoreContainer1SpecProps = z.infer<typeof storeContainer1PropsSchema>;
|
|
221
|
+
declare const productCard1PropsSchema: z.ZodObject<{
|
|
222
|
+
products: z.ZodArray<z.ZodObject<{
|
|
223
|
+
id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
224
|
+
title: z.ZodString;
|
|
225
|
+
price: z.ZodNumber;
|
|
226
|
+
originalPrice: z.ZodOptional<z.ZodNumber>;
|
|
227
|
+
image: z.ZodString;
|
|
228
|
+
badge: z.ZodOptional<z.ZodString>;
|
|
229
|
+
}, "strip", z.ZodTypeAny, {
|
|
230
|
+
title: string;
|
|
231
|
+
image: string;
|
|
232
|
+
id: string | number;
|
|
233
|
+
price: number;
|
|
234
|
+
badge?: string | undefined;
|
|
235
|
+
originalPrice?: number | undefined;
|
|
236
|
+
}, {
|
|
237
|
+
title: string;
|
|
238
|
+
image: string;
|
|
239
|
+
id: string | number;
|
|
240
|
+
price: number;
|
|
241
|
+
badge?: string | undefined;
|
|
242
|
+
originalPrice?: number | undefined;
|
|
243
|
+
}>, "many">;
|
|
244
|
+
heading: z.ZodOptional<z.ZodString>;
|
|
245
|
+
maxItems: z.ZodOptional<z.ZodNumber>;
|
|
246
|
+
}, "strip", z.ZodTypeAny, {
|
|
247
|
+
products: {
|
|
248
|
+
title: string;
|
|
249
|
+
image: string;
|
|
250
|
+
id: string | number;
|
|
251
|
+
price: number;
|
|
252
|
+
badge?: string | undefined;
|
|
253
|
+
originalPrice?: number | undefined;
|
|
254
|
+
}[];
|
|
255
|
+
heading?: string | undefined;
|
|
256
|
+
maxItems?: number | undefined;
|
|
257
|
+
}, {
|
|
258
|
+
products: {
|
|
259
|
+
title: string;
|
|
260
|
+
image: string;
|
|
261
|
+
id: string | number;
|
|
262
|
+
price: number;
|
|
263
|
+
badge?: string | undefined;
|
|
264
|
+
originalPrice?: number | undefined;
|
|
265
|
+
}[];
|
|
266
|
+
heading?: string | undefined;
|
|
267
|
+
maxItems?: number | undefined;
|
|
268
|
+
}>;
|
|
269
|
+
type ProductCard1SpecProps = z.infer<typeof productCard1PropsSchema>;
|
|
270
|
+
declare const shoppingCart4PropsSchema: z.ZodObject<{
|
|
271
|
+
items: z.ZodArray<z.ZodObject<{
|
|
272
|
+
id: z.ZodString;
|
|
273
|
+
name: z.ZodString;
|
|
274
|
+
price: z.ZodNumber;
|
|
275
|
+
quantity: z.ZodNumber;
|
|
276
|
+
image: z.ZodString;
|
|
277
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
278
|
+
}, "strip", z.ZodTypeAny, {
|
|
279
|
+
image: string;
|
|
280
|
+
id: string;
|
|
281
|
+
name: string;
|
|
282
|
+
price: number;
|
|
283
|
+
quantity: number;
|
|
284
|
+
variant?: string | undefined;
|
|
285
|
+
}, {
|
|
286
|
+
image: string;
|
|
287
|
+
id: string;
|
|
288
|
+
name: string;
|
|
289
|
+
price: number;
|
|
290
|
+
quantity: number;
|
|
291
|
+
variant?: string | undefined;
|
|
292
|
+
}>, "many">;
|
|
293
|
+
promotions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
294
|
+
threshold: z.ZodNumber;
|
|
295
|
+
reward: z.ZodString;
|
|
296
|
+
icon: z.ZodDefault<z.ZodString>;
|
|
297
|
+
}, "strip", z.ZodTypeAny, {
|
|
298
|
+
icon: string;
|
|
299
|
+
threshold: number;
|
|
300
|
+
reward: string;
|
|
301
|
+
}, {
|
|
302
|
+
threshold: number;
|
|
303
|
+
reward: string;
|
|
304
|
+
icon?: string | undefined;
|
|
305
|
+
}>, "many">>;
|
|
306
|
+
recentlyViewed: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
307
|
+
id: z.ZodString;
|
|
308
|
+
name: z.ZodString;
|
|
309
|
+
price: z.ZodNumber;
|
|
310
|
+
image: z.ZodString;
|
|
311
|
+
}, "strip", z.ZodTypeAny, {
|
|
312
|
+
image: string;
|
|
313
|
+
id: string;
|
|
314
|
+
name: string;
|
|
315
|
+
price: number;
|
|
316
|
+
}, {
|
|
317
|
+
image: string;
|
|
318
|
+
id: string;
|
|
319
|
+
name: string;
|
|
320
|
+
price: number;
|
|
321
|
+
}>, "many">>;
|
|
322
|
+
taxRate: z.ZodOptional<z.ZodNumber>;
|
|
323
|
+
titleLabel: z.ZodOptional<z.ZodString>;
|
|
324
|
+
subtotalLabel: z.ZodOptional<z.ZodString>;
|
|
325
|
+
taxLabel: z.ZodOptional<z.ZodString>;
|
|
326
|
+
shippingLabel: z.ZodOptional<z.ZodString>;
|
|
327
|
+
shippingFreeLabel: z.ZodOptional<z.ZodString>;
|
|
328
|
+
totalLabel: z.ZodOptional<z.ZodString>;
|
|
329
|
+
awayFromLabel: z.ZodOptional<z.ZodString>;
|
|
330
|
+
activatedLabel: z.ZodOptional<z.ZodString>;
|
|
331
|
+
itemsLabel: z.ZodOptional<z.ZodString>;
|
|
332
|
+
expressCheckoutLabel: z.ZodOptional<z.ZodString>;
|
|
333
|
+
expressLabel: z.ZodOptional<z.ZodString>;
|
|
334
|
+
standardLabel: z.ZodOptional<z.ZodString>;
|
|
335
|
+
estimatedDeliveryLabel: z.ZodOptional<z.ZodString>;
|
|
336
|
+
secureCheckoutLabel: z.ZodOptional<z.ZodString>;
|
|
337
|
+
recentlyViewedLabel: z.ZodOptional<z.ZodString>;
|
|
338
|
+
collapseLabel: z.ZodOptional<z.ZodString>;
|
|
339
|
+
expandLabel: z.ZodOptional<z.ZodString>;
|
|
340
|
+
checkoutLabel: z.ZodOptional<z.ZodString>;
|
|
341
|
+
quickCheckoutLabel: z.ZodOptional<z.ZodString>;
|
|
342
|
+
checkoutNowLabel: z.ZodOptional<z.ZodString>;
|
|
343
|
+
}, "strip", z.ZodTypeAny, {
|
|
344
|
+
items: {
|
|
345
|
+
image: string;
|
|
346
|
+
id: string;
|
|
347
|
+
name: string;
|
|
348
|
+
price: number;
|
|
349
|
+
quantity: number;
|
|
350
|
+
variant?: string | undefined;
|
|
351
|
+
}[];
|
|
352
|
+
promotions: {
|
|
353
|
+
icon: string;
|
|
354
|
+
threshold: number;
|
|
355
|
+
reward: string;
|
|
356
|
+
}[];
|
|
357
|
+
recentlyViewed?: {
|
|
358
|
+
image: string;
|
|
359
|
+
id: string;
|
|
360
|
+
name: string;
|
|
361
|
+
price: number;
|
|
362
|
+
}[] | undefined;
|
|
363
|
+
taxRate?: number | undefined;
|
|
364
|
+
titleLabel?: string | undefined;
|
|
365
|
+
subtotalLabel?: string | undefined;
|
|
366
|
+
taxLabel?: string | undefined;
|
|
367
|
+
shippingLabel?: string | undefined;
|
|
368
|
+
shippingFreeLabel?: string | undefined;
|
|
369
|
+
totalLabel?: string | undefined;
|
|
370
|
+
awayFromLabel?: string | undefined;
|
|
371
|
+
activatedLabel?: string | undefined;
|
|
372
|
+
itemsLabel?: string | undefined;
|
|
373
|
+
expressCheckoutLabel?: string | undefined;
|
|
374
|
+
expressLabel?: string | undefined;
|
|
375
|
+
standardLabel?: string | undefined;
|
|
376
|
+
estimatedDeliveryLabel?: string | undefined;
|
|
377
|
+
secureCheckoutLabel?: string | undefined;
|
|
378
|
+
recentlyViewedLabel?: string | undefined;
|
|
379
|
+
collapseLabel?: string | undefined;
|
|
380
|
+
expandLabel?: string | undefined;
|
|
381
|
+
checkoutLabel?: string | undefined;
|
|
382
|
+
quickCheckoutLabel?: string | undefined;
|
|
383
|
+
checkoutNowLabel?: string | undefined;
|
|
384
|
+
}, {
|
|
385
|
+
items: {
|
|
386
|
+
image: string;
|
|
387
|
+
id: string;
|
|
388
|
+
name: string;
|
|
389
|
+
price: number;
|
|
390
|
+
quantity: number;
|
|
391
|
+
variant?: string | undefined;
|
|
392
|
+
}[];
|
|
393
|
+
promotions?: {
|
|
394
|
+
threshold: number;
|
|
395
|
+
reward: string;
|
|
396
|
+
icon?: string | undefined;
|
|
397
|
+
}[] | undefined;
|
|
398
|
+
recentlyViewed?: {
|
|
399
|
+
image: string;
|
|
400
|
+
id: string;
|
|
401
|
+
name: string;
|
|
402
|
+
price: number;
|
|
403
|
+
}[] | undefined;
|
|
404
|
+
taxRate?: number | undefined;
|
|
405
|
+
titleLabel?: string | undefined;
|
|
406
|
+
subtotalLabel?: string | undefined;
|
|
407
|
+
taxLabel?: string | undefined;
|
|
408
|
+
shippingLabel?: string | undefined;
|
|
409
|
+
shippingFreeLabel?: string | undefined;
|
|
410
|
+
totalLabel?: string | undefined;
|
|
411
|
+
awayFromLabel?: string | undefined;
|
|
412
|
+
activatedLabel?: string | undefined;
|
|
413
|
+
itemsLabel?: string | undefined;
|
|
414
|
+
expressCheckoutLabel?: string | undefined;
|
|
415
|
+
expressLabel?: string | undefined;
|
|
416
|
+
standardLabel?: string | undefined;
|
|
417
|
+
estimatedDeliveryLabel?: string | undefined;
|
|
418
|
+
secureCheckoutLabel?: string | undefined;
|
|
419
|
+
recentlyViewedLabel?: string | undefined;
|
|
420
|
+
collapseLabel?: string | undefined;
|
|
421
|
+
expandLabel?: string | undefined;
|
|
422
|
+
checkoutLabel?: string | undefined;
|
|
423
|
+
quickCheckoutLabel?: string | undefined;
|
|
424
|
+
checkoutNowLabel?: string | undefined;
|
|
425
|
+
}>;
|
|
426
|
+
type ShoppingCart4SpecProps = z.infer<typeof shoppingCart4PropsSchema>;
|
|
427
|
+
declare const navbar4PropsSchema: z.ZodObject<{
|
|
428
|
+
storeCategories: z.ZodArray<z.ZodType<StoreCategory, z.ZodTypeDef, StoreCategory>, "many">;
|
|
429
|
+
shippingNote: z.ZodString;
|
|
430
|
+
utilityLinks: z.ZodArray<z.ZodObject<{
|
|
431
|
+
label: z.ZodString;
|
|
432
|
+
href: z.ZodString;
|
|
433
|
+
}, "strip", z.ZodTypeAny, {
|
|
434
|
+
label: string;
|
|
435
|
+
href: string;
|
|
436
|
+
}, {
|
|
437
|
+
label: string;
|
|
438
|
+
href: string;
|
|
439
|
+
}>, "many">;
|
|
440
|
+
logoText: z.ZodString;
|
|
441
|
+
logoHref: z.ZodOptional<z.ZodString>;
|
|
442
|
+
accountHref: z.ZodOptional<z.ZodString>;
|
|
443
|
+
searchQuery: z.ZodOptional<z.ZodString>;
|
|
444
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
445
|
+
id: z.ZodString;
|
|
446
|
+
name: z.ZodString;
|
|
447
|
+
variant: z.ZodString;
|
|
448
|
+
price: z.ZodNumber;
|
|
449
|
+
qty: z.ZodNumber;
|
|
450
|
+
image: z.ZodString;
|
|
451
|
+
}, "strip", z.ZodTypeAny, {
|
|
452
|
+
variant: string;
|
|
453
|
+
image: string;
|
|
454
|
+
id: string;
|
|
455
|
+
name: string;
|
|
456
|
+
price: number;
|
|
457
|
+
qty: number;
|
|
458
|
+
}, {
|
|
459
|
+
variant: string;
|
|
460
|
+
image: string;
|
|
461
|
+
id: string;
|
|
462
|
+
name: string;
|
|
463
|
+
price: number;
|
|
464
|
+
qty: number;
|
|
465
|
+
}>, "many">>;
|
|
466
|
+
user: z.ZodOptional<z.ZodObject<{
|
|
467
|
+
name: z.ZodString;
|
|
468
|
+
email: z.ZodString;
|
|
469
|
+
avatar: z.ZodString;
|
|
470
|
+
initials: z.ZodString;
|
|
471
|
+
}, "strip", z.ZodTypeAny, {
|
|
472
|
+
email: string;
|
|
473
|
+
name: string;
|
|
474
|
+
avatar: string;
|
|
475
|
+
initials: string;
|
|
476
|
+
}, {
|
|
477
|
+
email: string;
|
|
478
|
+
name: string;
|
|
479
|
+
avatar: string;
|
|
480
|
+
initials: string;
|
|
481
|
+
}>>;
|
|
482
|
+
accountMenuItems: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
483
|
+
label: z.ZodString;
|
|
484
|
+
href: z.ZodString;
|
|
485
|
+
description: z.ZodOptional<z.ZodString>;
|
|
486
|
+
icon: z.ZodOptional<z.ZodEnum<["orders", "wishlist", "addresses", "settings"]>>;
|
|
487
|
+
}, "strip", z.ZodTypeAny, {
|
|
488
|
+
label: string;
|
|
489
|
+
href: string;
|
|
490
|
+
icon?: "orders" | "wishlist" | "addresses" | "settings" | undefined;
|
|
491
|
+
description?: string | undefined;
|
|
492
|
+
}, {
|
|
493
|
+
label: string;
|
|
494
|
+
href: string;
|
|
495
|
+
icon?: "orders" | "wishlist" | "addresses" | "settings" | undefined;
|
|
496
|
+
description?: string | undefined;
|
|
497
|
+
}>, "many">>;
|
|
498
|
+
}, "strip", z.ZodTypeAny, {
|
|
499
|
+
logoText: string;
|
|
500
|
+
storeCategories: StoreCategory[];
|
|
501
|
+
utilityLinks: {
|
|
502
|
+
label: string;
|
|
503
|
+
href: string;
|
|
504
|
+
}[];
|
|
505
|
+
shippingNote: string;
|
|
506
|
+
logoHref?: string | undefined;
|
|
507
|
+
user?: {
|
|
508
|
+
email: string;
|
|
509
|
+
name: string;
|
|
510
|
+
avatar: string;
|
|
511
|
+
initials: string;
|
|
512
|
+
} | undefined;
|
|
513
|
+
items?: {
|
|
514
|
+
variant: string;
|
|
515
|
+
image: string;
|
|
516
|
+
id: string;
|
|
517
|
+
name: string;
|
|
518
|
+
price: number;
|
|
519
|
+
qty: number;
|
|
520
|
+
}[] | undefined;
|
|
521
|
+
accountHref?: string | undefined;
|
|
522
|
+
searchQuery?: string | undefined;
|
|
523
|
+
accountMenuItems?: {
|
|
524
|
+
label: string;
|
|
525
|
+
href: string;
|
|
526
|
+
icon?: "orders" | "wishlist" | "addresses" | "settings" | undefined;
|
|
527
|
+
description?: string | undefined;
|
|
528
|
+
}[] | undefined;
|
|
529
|
+
}, {
|
|
530
|
+
logoText: string;
|
|
531
|
+
storeCategories: StoreCategory[];
|
|
532
|
+
utilityLinks: {
|
|
533
|
+
label: string;
|
|
534
|
+
href: string;
|
|
535
|
+
}[];
|
|
536
|
+
shippingNote: string;
|
|
537
|
+
logoHref?: string | undefined;
|
|
538
|
+
user?: {
|
|
539
|
+
email: string;
|
|
540
|
+
name: string;
|
|
541
|
+
avatar: string;
|
|
542
|
+
initials: string;
|
|
543
|
+
} | undefined;
|
|
544
|
+
items?: {
|
|
545
|
+
variant: string;
|
|
546
|
+
image: string;
|
|
547
|
+
id: string;
|
|
548
|
+
name: string;
|
|
549
|
+
price: number;
|
|
550
|
+
qty: number;
|
|
551
|
+
}[] | undefined;
|
|
552
|
+
accountHref?: string | undefined;
|
|
553
|
+
searchQuery?: string | undefined;
|
|
554
|
+
accountMenuItems?: {
|
|
555
|
+
label: string;
|
|
556
|
+
href: string;
|
|
557
|
+
icon?: "orders" | "wishlist" | "addresses" | "settings" | undefined;
|
|
558
|
+
description?: string | undefined;
|
|
559
|
+
}[] | undefined;
|
|
560
|
+
}>;
|
|
561
|
+
type Navbar4SpecProps = z.infer<typeof navbar4PropsSchema>;
|
|
562
|
+
|
|
563
|
+
export { type AccountMenuItem, type ButtonSpecProps, type CanonMoney, type CanonProduct, type CardProduct, type CartItem, type NavCartItem, type Navbar4SpecProps, PRODUCT_IMAGE_FALLBACK, type ProductCard1SpecProps, type Promotion, type RecentlyViewedItem, type ShoppingCart4SpecProps, type StoreCategory, type StoreContainer1SpecProps, type StoreUser, type UtilityLink, accountMenuItemSchema, buttonPropsSchema, cardProductSchema, cartItemSchema, navCartItemSchema, navbar4PropsSchema, paymentMethodSchema, productCard1PropsSchema, promotionSchema, recentlyViewedItemSchema, shoppingCart4PropsSchema, storeCategorySchema, storeContainer1PropsSchema, storeUserSchema, utilityLinkSchema };
|