nitrostack 1.0.55 → 1.0.56
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/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +14 -9
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/widgets/hooks/index.d.ts +7 -0
- package/dist/widgets/hooks/index.d.ts.map +1 -0
- package/dist/widgets/hooks/index.js +7 -0
- package/dist/widgets/hooks/index.js.map +1 -0
- package/dist/widgets/hooks/use-display-mode.d.ts +11 -0
- package/dist/widgets/hooks/use-display-mode.d.ts.map +1 -0
- package/dist/widgets/hooks/use-display-mode.js +13 -0
- package/dist/widgets/hooks/use-display-mode.js.map +1 -0
- package/dist/widgets/hooks/use-max-height.d.ts +10 -0
- package/dist/widgets/hooks/use-max-height.d.ts.map +1 -0
- package/dist/widgets/hooks/use-max-height.js +13 -0
- package/dist/widgets/hooks/use-max-height.js.map +1 -0
- package/dist/widgets/hooks/use-openai-global.d.ts +12 -0
- package/dist/widgets/hooks/use-openai-global.d.ts.map +1 -0
- package/dist/widgets/hooks/use-openai-global.js +32 -0
- package/dist/widgets/hooks/use-openai-global.js.map +1 -0
- package/dist/widgets/hooks/use-theme.d.ts +10 -0
- package/dist/widgets/hooks/use-theme.d.ts.map +1 -0
- package/dist/widgets/hooks/use-theme.js +12 -0
- package/dist/widgets/hooks/use-theme.js.map +1 -0
- package/dist/widgets/hooks/use-widget-state.d.ts +18 -0
- package/dist/widgets/hooks/use-widget-state.d.ts.map +1 -0
- package/dist/widgets/hooks/use-widget-state.js +27 -0
- package/dist/widgets/hooks/use-widget-state.js.map +1 -0
- package/dist/widgets/hooks/useWidgetSDK.d.ts +47 -0
- package/dist/widgets/hooks/useWidgetSDK.d.ts.map +1 -0
- package/dist/widgets/hooks/useWidgetSDK.js +67 -0
- package/dist/widgets/hooks/useWidgetSDK.js.map +1 -0
- package/dist/widgets/index.d.ts +7 -1
- package/dist/widgets/index.d.ts.map +1 -1
- package/dist/widgets/index.js +11 -1
- package/dist/widgets/index.js.map +1 -1
- package/dist/widgets/runtime/WidgetLayout.d.ts +32 -0
- package/dist/widgets/runtime/WidgetLayout.d.ts.map +1 -0
- package/dist/widgets/runtime/WidgetLayout.js +143 -0
- package/dist/widgets/runtime/WidgetLayout.js.map +1 -0
- package/dist/widgets/runtime/widget-polyfill.d.ts +1 -0
- package/dist/widgets/runtime/widget-polyfill.d.ts.map +1 -0
- package/dist/widgets/runtime/widget-polyfill.js +28 -0
- package/dist/widgets/runtime/widget-polyfill.js.map +1 -0
- package/dist/widgets/sdk.d.ts +109 -0
- package/dist/widgets/sdk.d.ts.map +1 -0
- package/dist/widgets/sdk.js +221 -0
- package/dist/widgets/sdk.js.map +1 -0
- package/dist/widgets/types.d.ts +89 -0
- package/dist/widgets/types.d.ts.map +1 -0
- package/dist/widgets/types.js +8 -0
- package/dist/widgets/types.js.map +1 -0
- package/dist/widgets/utils/media-queries.d.ts +34 -0
- package/dist/widgets/utils/media-queries.d.ts.map +1 -0
- package/dist/widgets/utils/media-queries.js +42 -0
- package/dist/widgets/utils/media-queries.js.map +1 -0
- package/package.json +1 -1
- package/src/studio/app/chat/page.tsx +274 -137
- package/src/studio/app/globals.css +140 -64
- package/src/studio/branding.md +807 -0
- package/src/studio/components/WidgetRenderer.tsx +222 -16
- package/src/studio/lib/llm-service.ts +39 -39
- package/templates/typescript-oauth/{env.example → .env.example} +4 -10
- package/templates/typescript-oauth/README.md +226 -306
- package/templates/typescript-oauth/package-lock.json +4253 -0
- package/templates/typescript-oauth/package.json +10 -5
- package/templates/typescript-oauth/src/app.module.ts +39 -36
- package/templates/typescript-oauth/src/guards/oauth.guard.ts +0 -1
- package/templates/typescript-oauth/src/index.ts +22 -30
- package/templates/typescript-oauth/src/modules/flights/booking.tools.ts +323 -0
- package/templates/typescript-oauth/src/modules/flights/flights.module.ts +14 -0
- package/templates/typescript-oauth/src/modules/flights/flights.prompts.ts +231 -0
- package/templates/typescript-oauth/src/modules/flights/flights.resources.ts +215 -0
- package/templates/typescript-oauth/src/modules/flights/flights.tools.ts +457 -0
- package/templates/typescript-oauth/src/services/duffel.service.ts +285 -0
- package/templates/typescript-oauth/src/widgets/app/airport-search/page.tsx +270 -0
- package/templates/typescript-oauth/src/widgets/app/flight-details/page.tsx +261 -0
- package/templates/typescript-oauth/src/widgets/app/flight-search-results/page.tsx +378 -0
- package/templates/typescript-oauth/src/widgets/app/globals.css +167 -0
- package/templates/typescript-oauth/src/widgets/app/layout.tsx +6 -2
- package/templates/typescript-oauth/src/widgets/app/order-cancellation/page.tsx +207 -0
- package/templates/typescript-oauth/src/widgets/app/order-summary/page.tsx +245 -0
- package/templates/typescript-oauth/src/widgets/app/payment-confirmation/page.tsx +152 -0
- package/templates/typescript-oauth/src/widgets/app/seat-selection/page.tsx +486 -0
- package/templates/typescript-oauth/src/widgets/next-env.d.ts +5 -0
- package/templates/typescript-oauth/src/widgets/package-lock.json +155 -126
- package/templates/typescript-oauth/src/widgets/widget-manifest.json +374 -27
- package/templates/typescript-pizzaz/IMPLEMENTATION.md +98 -0
- package/templates/typescript-pizzaz/README.md +233 -0
- package/templates/typescript-pizzaz/package.json +31 -0
- package/templates/typescript-pizzaz/src/app.module.ts +28 -0
- package/templates/typescript-pizzaz/src/index.ts +30 -0
- package/templates/typescript-pizzaz/src/modules/pizzaz/pizzaz.data.ts +106 -0
- package/templates/typescript-pizzaz/src/modules/pizzaz/pizzaz.module.ts +11 -0
- package/templates/typescript-pizzaz/src/modules/pizzaz/pizzaz.service.ts +60 -0
- package/templates/typescript-pizzaz/src/modules/pizzaz/pizzaz.tools.ts +197 -0
- package/templates/typescript-pizzaz/src/widgets/app/layout.tsx +18 -0
- package/templates/typescript-pizzaz/src/widgets/app/pizza-list/page.tsx +272 -0
- package/templates/typescript-pizzaz/src/widgets/app/pizza-map/page.tsx +216 -0
- package/templates/typescript-pizzaz/src/widgets/app/pizza-shop/page.tsx +374 -0
- package/templates/typescript-pizzaz/src/widgets/components/CompactShopCard.tsx +144 -0
- package/templates/typescript-pizzaz/src/widgets/components/PizzaCard.tsx +191 -0
- package/templates/typescript-pizzaz/src/widgets/package.json +30 -0
- package/templates/typescript-pizzaz/src/widgets/widget-manifest.json +253 -0
- package/templates/typescript-pizzaz/tsconfig.json +30 -0
- package/templates/typescript-starter/src/modules/calculator/calculator.resources.ts +0 -1
- package/templates/typescript-starter/src/widgets/app/calculator-result/page.tsx +102 -56
- package/templates/typescript-starter/src/widgets/app/layout.tsx +6 -2
- package/templates/typescript-auth/AI_AGENT_CLI_REFERENCE.md +0 -702
- package/templates/typescript-auth/AI_AGENT_SDK_REFERENCE.md +0 -1260
- package/templates/typescript-auth/README.md +0 -402
- package/templates/typescript-auth/env.example +0 -25
- package/templates/typescript-auth/package.json +0 -36
- package/templates/typescript-auth/src/app.module.ts +0 -103
- package/templates/typescript-auth/src/db/database.ts +0 -160
- package/templates/typescript-auth/src/db/seed.ts +0 -374
- package/templates/typescript-auth/src/db/setup.ts +0 -87
- package/templates/typescript-auth/src/events/analytics.service.ts +0 -52
- package/templates/typescript-auth/src/events/notification.service.ts +0 -40
- package/templates/typescript-auth/src/filters/global-exception.filter.ts +0 -28
- package/templates/typescript-auth/src/guards/README.md +0 -75
- package/templates/typescript-auth/src/guards/jwt.guard.ts +0 -105
- package/templates/typescript-auth/src/health/database.health.ts +0 -41
- package/templates/typescript-auth/src/index.ts +0 -29
- package/templates/typescript-auth/src/interceptors/transform.interceptor.ts +0 -24
- package/templates/typescript-auth/src/middleware/logging.middleware.ts +0 -42
- package/templates/typescript-auth/src/modules/addresses/addresses.module.ts +0 -16
- package/templates/typescript-auth/src/modules/addresses/addresses.prompts.ts +0 -114
- package/templates/typescript-auth/src/modules/addresses/addresses.resources.ts +0 -40
- package/templates/typescript-auth/src/modules/addresses/addresses.tools.ts +0 -284
- package/templates/typescript-auth/src/modules/auth/auth.module.ts +0 -16
- package/templates/typescript-auth/src/modules/auth/auth.prompts.ts +0 -147
- package/templates/typescript-auth/src/modules/auth/auth.resources.ts +0 -84
- package/templates/typescript-auth/src/modules/auth/auth.tools.ts +0 -139
- package/templates/typescript-auth/src/modules/cart/cart.module.ts +0 -16
- package/templates/typescript-auth/src/modules/cart/cart.prompts.ts +0 -95
- package/templates/typescript-auth/src/modules/cart/cart.resources.ts +0 -44
- package/templates/typescript-auth/src/modules/cart/cart.tools.ts +0 -277
- package/templates/typescript-auth/src/modules/orders/orders.module.ts +0 -16
- package/templates/typescript-auth/src/modules/orders/orders.prompts.ts +0 -88
- package/templates/typescript-auth/src/modules/orders/orders.resources.ts +0 -48
- package/templates/typescript-auth/src/modules/orders/orders.tools.ts +0 -303
- package/templates/typescript-auth/src/modules/products/products.module.ts +0 -16
- package/templates/typescript-auth/src/modules/products/products.prompts.ts +0 -146
- package/templates/typescript-auth/src/modules/products/products.resources.ts +0 -98
- package/templates/typescript-auth/src/modules/products/products.tools.ts +0 -266
- package/templates/typescript-auth/src/pipes/validation.pipe.ts +0 -42
- package/templates/typescript-auth/src/services/database.service.ts +0 -90
- package/templates/typescript-auth/src/widgets/app/add-to-cart/page.tsx +0 -122
- package/templates/typescript-auth/src/widgets/app/address-added/page.tsx +0 -116
- package/templates/typescript-auth/src/widgets/app/address-deleted/page.tsx +0 -105
- package/templates/typescript-auth/src/widgets/app/address-list/page.tsx +0 -139
- package/templates/typescript-auth/src/widgets/app/address-updated/page.tsx +0 -153
- package/templates/typescript-auth/src/widgets/app/cart-cleared/page.tsx +0 -86
- package/templates/typescript-auth/src/widgets/app/cart-updated/page.tsx +0 -116
- package/templates/typescript-auth/src/widgets/app/categories/page.tsx +0 -134
- package/templates/typescript-auth/src/widgets/app/layout.tsx +0 -21
- package/templates/typescript-auth/src/widgets/app/login-result/page.tsx +0 -129
- package/templates/typescript-auth/src/widgets/app/order-confirmation/page.tsx +0 -231
- package/templates/typescript-auth/src/widgets/app/order-details/page.tsx +0 -225
- package/templates/typescript-auth/src/widgets/app/order-history/page.tsx +0 -218
- package/templates/typescript-auth/src/widgets/app/product-card/page.tsx +0 -121
- package/templates/typescript-auth/src/widgets/app/products-grid/page.tsx +0 -198
- package/templates/typescript-auth/src/widgets/app/shopping-cart/page.tsx +0 -187
- package/templates/typescript-auth/src/widgets/app/whoami/page.tsx +0 -165
- package/templates/typescript-auth/src/widgets/next.config.js +0 -38
- package/templates/typescript-auth/src/widgets/package.json +0 -18
- package/templates/typescript-auth/src/widgets/styles/ecommerce.ts +0 -169
- package/templates/typescript-auth/src/widgets/tsconfig.json +0 -28
- package/templates/typescript-auth/src/widgets/types/tool-data.ts +0 -141
- package/templates/typescript-auth/src/widgets/widget-manifest.json +0 -464
- package/templates/typescript-auth/tsconfig.json +0 -27
- package/templates/typescript-auth-api-key/AI_AGENT_CLI_REFERENCE.md +0 -701
- package/templates/typescript-auth-api-key/AI_AGENT_SDK_REFERENCE.md +0 -1260
- package/templates/typescript-auth-api-key/README.md +0 -485
- package/templates/typescript-auth-api-key/env.example +0 -17
- package/templates/typescript-auth-api-key/package.json +0 -21
- package/templates/typescript-auth-api-key/src/app.module.ts +0 -38
- package/templates/typescript-auth-api-key/src/guards/apikey.guard.ts +0 -47
- package/templates/typescript-auth-api-key/src/guards/multi-auth.guard.ts +0 -157
- package/templates/typescript-auth-api-key/src/index.ts +0 -47
- package/templates/typescript-auth-api-key/src/modules/calculator/calculator.module.ts +0 -12
- package/templates/typescript-auth-api-key/src/modules/calculator/calculator.prompts.ts +0 -73
- package/templates/typescript-auth-api-key/src/modules/calculator/calculator.resources.ts +0 -60
- package/templates/typescript-auth-api-key/src/modules/calculator/calculator.tools.ts +0 -71
- package/templates/typescript-auth-api-key/src/modules/demo/demo.module.ts +0 -18
- package/templates/typescript-auth-api-key/src/modules/demo/demo.tools.ts +0 -155
- package/templates/typescript-auth-api-key/src/modules/demo/multi-auth.tools.ts +0 -123
- package/templates/typescript-auth-api-key/src/widgets/app/calculator-operations/page.tsx +0 -133
- package/templates/typescript-auth-api-key/src/widgets/app/calculator-result/page.tsx +0 -134
- package/templates/typescript-auth-api-key/src/widgets/app/layout.tsx +0 -14
- package/templates/typescript-auth-api-key/src/widgets/package.json +0 -24
- package/templates/typescript-auth-api-key/src/widgets/widget-manifest.json +0 -48
- package/templates/typescript-auth-api-key/tsconfig.json +0 -23
- package/templates/typescript-oauth/OAUTH_SETUP.md +0 -592
- package/templates/typescript-oauth/src/modules/demo/demo.module.ts +0 -16
- package/templates/typescript-oauth/src/modules/demo/demo.tools.ts +0 -190
- package/templates/typescript-oauth/src/widgets/app/calculator-operations/page.tsx +0 -133
- package/templates/typescript-oauth/src/widgets/app/calculator-result/page.tsx +0 -134
- package/templates/typescript-oauth/src/widgets/out/404.html +0 -1
- package/templates/typescript-oauth/src/widgets/out/_next/static/WU9THacVqL52RZbrZOLS1/_buildManifest.js +0 -1
- package/templates/typescript-oauth/src/widgets/out/_next/static/WU9THacVqL52RZbrZOLS1/_ssgManifest.js +0 -1
- package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/117-eb57c7ef86f964a4.js +0 -2
- package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/app/_not-found/page-dcb83ba3e4d0aafd.js +0 -1
- package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/app/calculator-operations/page-b8913a740073ea8a.js +0 -1
- package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/app/calculator-result/page-ddaaab2fce95dea2.js +0 -1
- package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/app/layout-cbd3ebdc4ecc5247.js +0 -1
- package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/fd9d1056-749e5812300142af.js +0 -1
- package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/framework-f66176bb897dc684.js +0 -1
- package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/main-76df43fcef3db344.js +0 -1
- package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/main-app-f9c40224d04023c5.js +0 -1
- package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/pages/_app-72b849fbd24ac258.js +0 -1
- package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/pages/_error-7ba65e1336b92748.js +0 -1
- package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/polyfills-42372ed130431b0a.js +0 -1
- package/templates/typescript-oauth/src/widgets/out/_next/static/chunks/webpack-100b9e646d9c912e.js +0 -1
- package/templates/typescript-oauth/src/widgets/out/calculator-operations.html +0 -1
- package/templates/typescript-oauth/src/widgets/out/calculator-operations.txt +0 -7
- package/templates/typescript-oauth/src/widgets/out/calculator-result.html +0 -1
- package/templates/typescript-oauth/src/widgets/out/calculator-result.txt +0 -7
- package/templates/typescript-starter/src/widgets/app/calculator-operations/page.tsx +0 -133
- /package/templates/{typescript-auth-api-key → typescript-oauth}/src/health/system.health.ts +0 -0
- /package/templates/{typescript-auth-api-key → typescript-pizzaz}/src/widgets/next.config.js +0 -0
- /package/templates/{typescript-auth-api-key → typescript-pizzaz}/src/widgets/tsconfig.json +0 -0
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared E-commerce Design System
|
|
3
|
-
* Consistent styling across all widgets
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export const colors = {
|
|
7
|
-
primary: '#D4AF37', // Gold
|
|
8
|
-
primaryHover: '#F5C842',
|
|
9
|
-
black: '#000000',
|
|
10
|
-
white: '#FFFFFF',
|
|
11
|
-
gray: {
|
|
12
|
-
50: '#F9FAFB',
|
|
13
|
-
100: '#F3F4F6',
|
|
14
|
-
200: '#E5E7EB',
|
|
15
|
-
300: '#D1D5DB',
|
|
16
|
-
400: '#9CA3AF',
|
|
17
|
-
500: '#6B7280',
|
|
18
|
-
600: '#4B5563',
|
|
19
|
-
700: '#374151',
|
|
20
|
-
800: '#1F2937',
|
|
21
|
-
900: '#111827',
|
|
22
|
-
},
|
|
23
|
-
success: '#10B981',
|
|
24
|
-
error: '#EF4444',
|
|
25
|
-
warning: '#F59E0B',
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export const spacing = {
|
|
29
|
-
xs: '4px',
|
|
30
|
-
sm: '8px',
|
|
31
|
-
md: '12px',
|
|
32
|
-
lg: '16px',
|
|
33
|
-
xl: '20px',
|
|
34
|
-
'2xl': '24px',
|
|
35
|
-
'3xl': '32px',
|
|
36
|
-
'4xl': '40px',
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export const borderRadius = {
|
|
40
|
-
sm: '4px',
|
|
41
|
-
md: '8px',
|
|
42
|
-
lg: '12px',
|
|
43
|
-
xl: '16px',
|
|
44
|
-
full: '9999px',
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
export const shadows = {
|
|
48
|
-
sm: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',
|
|
49
|
-
md: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',
|
|
50
|
-
lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',
|
|
51
|
-
xl: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
export const typography = {
|
|
55
|
-
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
|
|
56
|
-
fontSize: {
|
|
57
|
-
xs: '12px',
|
|
58
|
-
sm: '14px',
|
|
59
|
-
base: '16px',
|
|
60
|
-
lg: '18px',
|
|
61
|
-
xl: '20px',
|
|
62
|
-
'2xl': '24px',
|
|
63
|
-
'3xl': '30px',
|
|
64
|
-
},
|
|
65
|
-
fontWeight: {
|
|
66
|
-
normal: 400,
|
|
67
|
-
medium: 500,
|
|
68
|
-
semibold: 600,
|
|
69
|
-
bold: 700,
|
|
70
|
-
extrabold: 800,
|
|
71
|
-
},
|
|
72
|
-
lineHeight: {
|
|
73
|
-
tight: 1.25,
|
|
74
|
-
normal: 1.5,
|
|
75
|
-
relaxed: 1.75,
|
|
76
|
-
},
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
// Common component styles
|
|
80
|
-
|
|
81
|
-
export const containerStyle: React.CSSProperties = {
|
|
82
|
-
background: `linear-gradient(135deg, ${colors.gray[50]} 0%, ${colors.gray[100]} 100%)`,
|
|
83
|
-
minHeight: '250px',
|
|
84
|
-
padding: spacing['2xl'],
|
|
85
|
-
fontFamily: typography.fontFamily,
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
export const cardStyle: React.CSSProperties = {
|
|
89
|
-
background: colors.white,
|
|
90
|
-
borderRadius: borderRadius.lg,
|
|
91
|
-
padding: spacing.lg,
|
|
92
|
-
boxShadow: shadows.md,
|
|
93
|
-
transition: 'all 0.2s ease',
|
|
94
|
-
border: `1px solid ${colors.gray[200]}`,
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
export const cardHoverStyle: React.CSSProperties = {
|
|
98
|
-
...cardStyle,
|
|
99
|
-
boxShadow: shadows.lg,
|
|
100
|
-
transform: 'translateY(-4px)',
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
export const imageStyle: React.CSSProperties = {
|
|
104
|
-
width: '100%',
|
|
105
|
-
height: 'auto',
|
|
106
|
-
borderRadius: borderRadius.md,
|
|
107
|
-
objectFit: 'cover',
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
export const badgeStyle: React.CSSProperties = {
|
|
111
|
-
display: 'inline-flex',
|
|
112
|
-
alignItems: 'center',
|
|
113
|
-
padding: `${spacing.xs} ${spacing.md}`,
|
|
114
|
-
borderRadius: borderRadius.full,
|
|
115
|
-
fontSize: typography.fontSize.xs,
|
|
116
|
-
fontWeight: typography.fontWeight.semibold,
|
|
117
|
-
background: colors.gray[100],
|
|
118
|
-
color: colors.gray[700],
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
export const buttonStyle: React.CSSProperties = {
|
|
122
|
-
display: 'inline-flex',
|
|
123
|
-
alignItems: 'center',
|
|
124
|
-
justifyContent: 'center',
|
|
125
|
-
padding: `${spacing.md} ${spacing.xl}`,
|
|
126
|
-
borderRadius: borderRadius.md,
|
|
127
|
-
fontSize: typography.fontSize.sm,
|
|
128
|
-
fontWeight: typography.fontWeight.semibold,
|
|
129
|
-
background: `linear-gradient(135deg, ${colors.primary} 0%, ${colors.primaryHover} 100%)`,
|
|
130
|
-
color: colors.black,
|
|
131
|
-
border: 'none',
|
|
132
|
-
cursor: 'pointer',
|
|
133
|
-
transition: 'all 0.2s ease',
|
|
134
|
-
boxShadow: shadows.sm,
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
export const titleStyle: React.CSSProperties = {
|
|
138
|
-
fontSize: typography.fontSize['2xl'],
|
|
139
|
-
fontWeight: typography.fontWeight.bold,
|
|
140
|
-
color: colors.gray[900],
|
|
141
|
-
marginBottom: spacing.lg,
|
|
142
|
-
display: 'flex',
|
|
143
|
-
alignItems: 'center',
|
|
144
|
-
gap: spacing.sm,
|
|
145
|
-
};
|
|
146
|
-
|
|
147
|
-
export const emptyStateStyle: React.CSSProperties = {
|
|
148
|
-
textAlign: 'center',
|
|
149
|
-
padding: spacing['4xl'],
|
|
150
|
-
color: colors.gray[500],
|
|
151
|
-
};
|
|
152
|
-
|
|
153
|
-
export const gridStyle: React.CSSProperties = {
|
|
154
|
-
display: 'grid',
|
|
155
|
-
gridTemplateColumns: 'repeat(auto-fill, minmax(250px, 1fr))',
|
|
156
|
-
gap: spacing.lg,
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
export const priceStyle: React.CSSProperties = {
|
|
160
|
-
fontSize: typography.fontSize.xl,
|
|
161
|
-
fontWeight: typography.fontWeight.bold,
|
|
162
|
-
color: colors.primary,
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
export const metaTextStyle: React.CSSProperties = {
|
|
166
|
-
fontSize: typography.fontSize.sm,
|
|
167
|
-
color: colors.gray[600],
|
|
168
|
-
};
|
|
169
|
-
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2022",
|
|
4
|
-
"lib": ["dom", "dom.iterable", "esnext"],
|
|
5
|
-
"allowJs": true,
|
|
6
|
-
"skipLibCheck": true,
|
|
7
|
-
"strict": true,
|
|
8
|
-
"noEmit": true,
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"module": "esnext",
|
|
11
|
-
"moduleResolution": "bundler",
|
|
12
|
-
"resolveJsonModule": true,
|
|
13
|
-
"isolatedModules": true,
|
|
14
|
-
"jsx": "preserve",
|
|
15
|
-
"incremental": true,
|
|
16
|
-
"plugins": [
|
|
17
|
-
{
|
|
18
|
-
"name": "next"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"paths": {
|
|
22
|
-
"@/*": ["./*"]
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
26
|
-
"exclude": ["node_modules"]
|
|
27
|
-
}
|
|
28
|
-
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Type-safe interfaces for all tool outputs
|
|
3
|
-
* Auto-generated from tool schemas for better DX
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
// Common types
|
|
7
|
-
export interface Product {
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
description: string;
|
|
11
|
-
price: number;
|
|
12
|
-
category: string;
|
|
13
|
-
stock: number;
|
|
14
|
-
image_url: string;
|
|
15
|
-
created_at: string;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface User {
|
|
19
|
-
id: string;
|
|
20
|
-
email: string;
|
|
21
|
-
name: string;
|
|
22
|
-
profile_picture?: string;
|
|
23
|
-
memberSince?: string;
|
|
24
|
-
created_at?: string;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface Address {
|
|
28
|
-
id: string;
|
|
29
|
-
user_id: string;
|
|
30
|
-
full_name: string;
|
|
31
|
-
street: string;
|
|
32
|
-
city: string;
|
|
33
|
-
state: string;
|
|
34
|
-
zip_code: string;
|
|
35
|
-
country: string;
|
|
36
|
-
phone: string;
|
|
37
|
-
is_default: boolean;
|
|
38
|
-
created_at: string;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export interface CartItem {
|
|
42
|
-
product_id: string;
|
|
43
|
-
name: string;
|
|
44
|
-
description: string;
|
|
45
|
-
price: number;
|
|
46
|
-
quantity: number;
|
|
47
|
-
image_url: string;
|
|
48
|
-
stock: number;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface OrderItem {
|
|
52
|
-
id: string;
|
|
53
|
-
product_id: string;
|
|
54
|
-
name: string;
|
|
55
|
-
price: number;
|
|
56
|
-
quantity: number;
|
|
57
|
-
image_url?: string;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface Order {
|
|
61
|
-
id: string;
|
|
62
|
-
user_id: string;
|
|
63
|
-
address_id: string;
|
|
64
|
-
total: number;
|
|
65
|
-
status: string;
|
|
66
|
-
created_at: string;
|
|
67
|
-
items: OrderItem[];
|
|
68
|
-
full_name?: string;
|
|
69
|
-
street?: string;
|
|
70
|
-
city?: string;
|
|
71
|
-
state?: string;
|
|
72
|
-
zip_code?: string;
|
|
73
|
-
itemCount?: number;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export interface Pagination {
|
|
77
|
-
page: number;
|
|
78
|
-
limit: number;
|
|
79
|
-
total: number;
|
|
80
|
-
totalPages: number;
|
|
81
|
-
hasMore?: boolean;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// Tool output interfaces
|
|
85
|
-
|
|
86
|
-
export interface LoginResult {
|
|
87
|
-
user: User;
|
|
88
|
-
token: string;
|
|
89
|
-
message: string;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export interface WhoAmIResult {
|
|
93
|
-
user: User;
|
|
94
|
-
authenticated: boolean;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export interface ProductsGridData {
|
|
98
|
-
products: Product[];
|
|
99
|
-
pagination: Pagination;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export interface ProductCardData {
|
|
103
|
-
product: Product;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export interface ShoppingCartData {
|
|
107
|
-
items: CartItem[];
|
|
108
|
-
total: number;
|
|
109
|
-
itemCount: number;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export interface AddToCartResult {
|
|
113
|
-
message: string;
|
|
114
|
-
cartItemCount: number;
|
|
115
|
-
item: CartItem;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export interface OrderConfirmationData {
|
|
119
|
-
order: Order;
|
|
120
|
-
message: string;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export interface OrderHistoryData {
|
|
124
|
-
orders: Order[];
|
|
125
|
-
pagination: Pagination;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export interface OrderDetailsData {
|
|
129
|
-
order: Order;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
export interface AddressListData {
|
|
133
|
-
addresses: Address[];
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export interface AddAddressResult {
|
|
137
|
-
message: string;
|
|
138
|
-
addressId: string;
|
|
139
|
-
isDefault: boolean;
|
|
140
|
-
}
|
|
141
|
-
|