@jameskabz/nextcraft-ui 0.4.0 → 0.6.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.
Files changed (59) hide show
  1. package/README.md +94 -0
  2. package/dist/chunk-6F7FN2ZF.js +671 -0
  3. package/dist/chunk-6F7FN2ZF.js.map +1 -0
  4. package/dist/chunk-7Q4Z47HT.js +657 -0
  5. package/dist/chunk-7Q4Z47HT.js.map +1 -0
  6. package/dist/chunk-7SKDTIEK.js +49 -0
  7. package/dist/chunk-7SKDTIEK.js.map +1 -0
  8. package/dist/chunk-FEFH5O5K.js +49 -0
  9. package/dist/chunk-FEFH5O5K.js.map +1 -0
  10. package/dist/chunk-M2EKVXB6.js +127 -0
  11. package/dist/chunk-M2EKVXB6.js.map +1 -0
  12. package/dist/chunk-SBLIF6UU.js +1029 -0
  13. package/dist/chunk-SBLIF6UU.js.map +1 -0
  14. package/dist/chunk-VQ6T3HIX.js +9 -0
  15. package/dist/chunk-VQ6T3HIX.js.map +1 -0
  16. package/dist/chunk-YVZL4GET.js +328 -0
  17. package/dist/chunk-YVZL4GET.js.map +1 -0
  18. package/dist/chunk-ZRV4Y374.js +582 -0
  19. package/dist/chunk-ZRV4Y374.js.map +1 -0
  20. package/dist/craft/components.cjs +1838 -0
  21. package/dist/craft/components.cjs.map +1 -0
  22. package/dist/craft/components.d.cts +369 -0
  23. package/dist/craft/components.d.ts +369 -0
  24. package/dist/craft/components.js +78 -0
  25. package/dist/craft/components.js.map +1 -0
  26. package/dist/craft/forms.cjs +1376 -0
  27. package/dist/craft/forms.cjs.map +1 -0
  28. package/dist/craft/forms.d.cts +101 -0
  29. package/dist/craft/forms.d.ts +101 -0
  30. package/dist/craft/forms.js +14 -0
  31. package/dist/craft/forms.js.map +1 -0
  32. package/dist/craft/layout.cjs +410 -0
  33. package/dist/craft/layout.cjs.map +1 -0
  34. package/dist/craft/layout.d.cts +170 -0
  35. package/dist/craft/layout.d.ts +170 -0
  36. package/dist/craft/layout.js +27 -0
  37. package/dist/craft/layout.js.map +1 -0
  38. package/dist/craft/table.cjs +662 -0
  39. package/dist/craft/table.cjs.map +1 -0
  40. package/dist/craft/table.d.cts +99 -0
  41. package/dist/craft/table.d.ts +99 -0
  42. package/dist/craft/table.js +15 -0
  43. package/dist/craft/table.js.map +1 -0
  44. package/dist/craft/theme.cjs +166 -0
  45. package/dist/craft/theme.cjs.map +1 -0
  46. package/dist/craft/theme.d.cts +10 -0
  47. package/dist/craft/theme.d.ts +10 -0
  48. package/dist/craft/theme.js +12 -0
  49. package/dist/craft/theme.js.map +1 -0
  50. package/dist/index.cjs +2374 -317
  51. package/dist/index.cjs.map +1 -1
  52. package/dist/index.d.cts +10 -277
  53. package/dist/index.d.ts +10 -277
  54. package/dist/index.js +92 -1347
  55. package/dist/index.js.map +1 -1
  56. package/dist/styles.css +359 -4
  57. package/dist/theme-context-EVI9PfKv.d.cts +22 -0
  58. package/dist/theme-context-EVI9PfKv.d.ts +22 -0
  59. package/package.json +30 -1
package/dist/index.d.cts CHANGED
@@ -1,277 +1,10 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React$1 from 'react';
3
-
4
- type ThemeName = "aurora" | "ember" | "ocean" | "midnight" | "cosmic";
5
- type ThemeMode = "light" | "dark" | "system";
6
- type ThemeContextValue = {
7
- theme: ThemeName;
8
- mode: ThemeMode;
9
- setTheme: (theme: ThemeName) => void;
10
- setMode: (mode: ThemeMode) => void;
11
- };
12
- type ThemeProviderProps = {
13
- children: React$1.ReactNode;
14
- defaultTheme?: ThemeName;
15
- defaultMode?: ThemeMode;
16
- storageKeyTheme?: string;
17
- storageKeyMode?: string;
18
- };
19
- declare function ThemeProvider({ children, defaultTheme, defaultMode, storageKeyTheme, storageKeyMode, }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
20
- declare function useTheme(): ThemeContextValue;
21
-
22
- type CraftButtonVariant = "solid" | "ghost" | "outline" | "gradient";
23
- type CraftButtonSize = "sm" | "md" | "lg";
24
- type CraftButtonProps = React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
25
- variant?: CraftButtonVariant;
26
- size?: CraftButtonSize;
27
- glow?: boolean;
28
- tone?: ThemeName;
29
- };
30
- declare function CraftButton({ className, variant, size, glow, tone, disabled, ...props }: CraftButtonProps): react_jsx_runtime.JSX.Element;
31
-
32
- type GlassCardProps = React.HTMLAttributes<HTMLDivElement> & {
33
- tone?: ThemeName;
34
- intensity?: "subtle" | "medium" | "strong";
35
- bordered?: boolean;
36
- };
37
- declare function GlassCard({ className, tone, intensity, bordered, children, ...props }: GlassCardProps): react_jsx_runtime.JSX.Element;
38
-
39
- type CraftInputSize = "sm" | "md" | "lg";
40
- type CraftInputProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> & {
41
- tone?: ThemeName;
42
- inputSize?: CraftInputSize;
43
- glow?: boolean;
44
- icon?: React$1.ReactNode;
45
- };
46
- declare const CraftInput: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> & {
47
- tone?: ThemeName;
48
- inputSize?: CraftInputSize;
49
- glow?: boolean;
50
- icon?: React$1.ReactNode;
51
- } & React$1.RefAttributes<HTMLInputElement>>;
52
-
53
- type CraftTextareaProps = React$1.TextareaHTMLAttributes<HTMLTextAreaElement> & {
54
- tone?: ThemeName;
55
- };
56
- declare const CraftTextarea: React$1.ForwardRefExoticComponent<React$1.TextareaHTMLAttributes<HTMLTextAreaElement> & {
57
- tone?: ThemeName;
58
- } & React$1.RefAttributes<HTMLTextAreaElement>>;
59
-
60
- type CraftSelectProps = React$1.SelectHTMLAttributes<HTMLSelectElement> & {
61
- tone?: ThemeName;
62
- };
63
- declare const CraftSelect: React$1.ForwardRefExoticComponent<React$1.SelectHTMLAttributes<HTMLSelectElement> & {
64
- tone?: ThemeName;
65
- } & React$1.RefAttributes<HTMLSelectElement>>;
66
-
67
- type CraftCheckboxProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & {
68
- tone?: ThemeName;
69
- label?: React$1.ReactNode;
70
- description?: React$1.ReactNode;
71
- };
72
- declare const CraftCheckbox: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & {
73
- tone?: ThemeName;
74
- label?: React$1.ReactNode;
75
- description?: React$1.ReactNode;
76
- } & React$1.RefAttributes<HTMLInputElement>>;
77
-
78
- type CraftSwitchProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & {
79
- tone?: ThemeName;
80
- label?: React$1.ReactNode;
81
- };
82
- declare const CraftSwitch: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & {
83
- tone?: ThemeName;
84
- label?: React$1.ReactNode;
85
- } & React$1.RefAttributes<HTMLInputElement>>;
86
-
87
- type CraftBadgeVariant = "solid" | "soft" | "outline";
88
- type CraftBadgeProps = React$1.HTMLAttributes<HTMLSpanElement> & {
89
- variant?: CraftBadgeVariant;
90
- tone?: ThemeName;
91
- };
92
- declare function CraftBadge({ className, variant, tone, ...props }: CraftBadgeProps): react_jsx_runtime.JSX.Element;
93
-
94
- type CraftCardProps = React$1.HTMLAttributes<HTMLDivElement> & {
95
- tone?: ThemeName;
96
- elevated?: boolean;
97
- };
98
- declare function CraftCard({ className, tone, elevated, ...props }: CraftCardProps): react_jsx_runtime.JSX.Element;
99
-
100
- type CraftModalProps = {
101
- open?: boolean;
102
- defaultOpen?: boolean;
103
- onOpenChange?: (open: boolean) => void;
104
- tone?: ThemeName;
105
- title?: React$1.ReactNode;
106
- description?: React$1.ReactNode;
107
- children?: React$1.ReactNode;
108
- trigger?: React$1.ReactNode;
109
- footer?: React$1.ReactNode;
110
- className?: string;
111
- };
112
- declare function CraftModal({ open, defaultOpen, onOpenChange, tone, title, description, children, trigger, footer, className, }: CraftModalProps): react_jsx_runtime.JSX.Element;
113
-
114
- type CraftDrawerProps = {
115
- open?: boolean;
116
- defaultOpen?: boolean;
117
- onOpenChange?: (open: boolean) => void;
118
- tone?: ThemeName;
119
- side?: "right" | "left";
120
- title?: React$1.ReactNode;
121
- children?: React$1.ReactNode;
122
- trigger?: React$1.ReactNode;
123
- footer?: React$1.ReactNode;
124
- className?: string;
125
- };
126
- declare function CraftDrawer({ open, defaultOpen, onOpenChange, tone, side, title, children, trigger, footer, className, }: CraftDrawerProps): react_jsx_runtime.JSX.Element;
127
-
128
- type CraftTabsProps = {
129
- value?: string;
130
- defaultValue?: string;
131
- onValueChange?: (value: string) => void;
132
- tone?: ThemeName;
133
- tabs: Array<{
134
- value: string;
135
- label: React$1.ReactNode;
136
- }>;
137
- panels: Record<string, React$1.ReactNode>;
138
- className?: string;
139
- };
140
- declare function CraftTabs({ value, defaultValue, onValueChange, tone, tabs, panels, className, }: CraftTabsProps): react_jsx_runtime.JSX.Element;
141
-
142
- type CraftTooltipProps = {
143
- content: React$1.ReactNode;
144
- tone?: ThemeName;
145
- children: React$1.ReactElement;
146
- side?: "top" | "bottom" | "left" | "right";
147
- };
148
- declare function CraftTooltip({ content, tone, children, side }: CraftTooltipProps): react_jsx_runtime.JSX.Element;
149
-
150
- type CraftToastVariant = "info" | "success" | "warning" | "error";
151
- type CraftToast = {
152
- id: string;
153
- title: string;
154
- description?: string;
155
- variant?: CraftToastVariant;
156
- };
157
- declare function useCraftToast(): {
158
- toasts: CraftToast[];
159
- push: (toast: Omit<CraftToast, "id">) => string;
160
- remove: (id: string) => void;
161
- };
162
- type CraftToastHostProps = {
163
- toasts: CraftToast[];
164
- onDismiss: (id: string) => void;
165
- tone?: ThemeName;
166
- };
167
- declare function CraftToastHost({ toasts, onDismiss, tone }: CraftToastHostProps): react_jsx_runtime.JSX.Element;
168
-
169
- type CraftSkeletonProps = React$1.HTMLAttributes<HTMLDivElement> & {
170
- tone?: ThemeName;
171
- };
172
- declare function CraftSkeleton({ className, tone, ...props }: CraftSkeletonProps): react_jsx_runtime.JSX.Element;
173
-
174
- type CraftEmptyStateProps = React$1.HTMLAttributes<HTMLDivElement> & {
175
- tone?: ThemeName;
176
- title: string;
177
- description?: string;
178
- icon?: React$1.ReactNode;
179
- action?: React$1.ReactNode;
180
- };
181
- declare function CraftEmptyState({ className, tone, title, description, icon, action, ...props }: CraftEmptyStateProps): react_jsx_runtime.JSX.Element;
182
-
183
- type CraftDatePickerProps = {
184
- value?: string;
185
- defaultValue?: string;
186
- onChange?: (value: string) => void;
187
- tone?: ThemeName;
188
- min?: string;
189
- max?: string;
190
- placeholder?: string;
191
- className?: string;
192
- };
193
- declare function CraftDatePicker({ value, defaultValue, onChange, tone, min, max, placeholder, className, }: CraftDatePickerProps): react_jsx_runtime.JSX.Element;
194
-
195
- type CraftNumberInputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
196
- tone?: ThemeName;
197
- };
198
- declare const CraftNumberInput: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLInputElement> & {
199
- tone?: ThemeName;
200
- } & React$1.RefAttributes<HTMLInputElement>>;
201
-
202
- type CraftCurrencyInputProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & {
203
- tone?: ThemeName;
204
- currencySymbol?: string;
205
- };
206
- declare const CraftCurrencyInput: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & {
207
- tone?: ThemeName;
208
- currencySymbol?: string;
209
- } & React$1.RefAttributes<HTMLInputElement>>;
210
-
211
- type AppShellProps = React$1.HTMLAttributes<HTMLDivElement> & {
212
- sidebar?: React$1.ReactNode;
213
- topNav?: React$1.ReactNode;
214
- };
215
- declare function AppShell({ className, sidebar, topNav, children, ...props }: AppShellProps): react_jsx_runtime.JSX.Element;
216
-
217
- type SidebarItem = {
218
- label: React$1.ReactNode;
219
- href?: string;
220
- icon?: React$1.ReactNode;
221
- active?: boolean;
222
- };
223
- type SidebarProps = React$1.HTMLAttributes<HTMLElement> & {
224
- title?: React$1.ReactNode;
225
- items: SidebarItem[];
226
- footer?: React$1.ReactNode;
227
- };
228
- declare function Sidebar({ className, title, items, footer, ...props }: SidebarProps): react_jsx_runtime.JSX.Element;
229
-
230
- type TopNavProps = React$1.HTMLAttributes<HTMLElement> & {
231
- title?: React$1.ReactNode;
232
- actions?: React$1.ReactNode;
233
- breadcrumb?: React$1.ReactNode;
234
- };
235
- declare function TopNav({ className, title, actions, breadcrumb, ...props }: TopNavProps): react_jsx_runtime.JSX.Element;
236
-
237
- type PageHeaderProps = React$1.HTMLAttributes<HTMLDivElement> & {
238
- title: React$1.ReactNode;
239
- description?: React$1.ReactNode;
240
- actions?: React$1.ReactNode;
241
- };
242
- declare function PageHeader({ className, title, description, actions, ...props }: PageHeaderProps): react_jsx_runtime.JSX.Element;
243
-
244
- type BreadcrumbItem = {
245
- label: React$1.ReactNode;
246
- href?: string;
247
- };
248
- type BreadcrumbsProps = React$1.HTMLAttributes<HTMLElement> & {
249
- items: BreadcrumbItem[];
250
- };
251
- declare function Breadcrumbs({ className, items, ...props }: BreadcrumbsProps): react_jsx_runtime.JSX.Element;
252
-
253
- type AuthLayoutProps = React$1.HTMLAttributes<HTMLDivElement> & {
254
- title?: React$1.ReactNode;
255
- description?: React$1.ReactNode;
256
- footer?: React$1.ReactNode;
257
- graphic?: React$1.ReactNode;
258
- };
259
- declare function AuthLayout({ className, title, description, footer, graphic, children, ...props }: AuthLayoutProps): react_jsx_runtime.JSX.Element;
260
-
261
- type ContainerProps = React$1.HTMLAttributes<HTMLDivElement> & {
262
- size?: "sm" | "md" | "lg" | "xl";
263
- };
264
- declare function Container({ className, size, ...props }: ContainerProps): react_jsx_runtime.JSX.Element;
265
-
266
- type GridProps = React$1.HTMLAttributes<HTMLDivElement> & {
267
- columns?: 1 | 2 | 3 | 4 | 5 | 6;
268
- gap?: "sm" | "md" | "lg" | "xl";
269
- };
270
- declare function Grid({ className, columns, gap, ...props }: GridProps): react_jsx_runtime.JSX.Element;
271
-
272
- type ThemeSwitcherProps = React$1.HTMLAttributes<HTMLDivElement> & {
273
- showLabels?: boolean;
274
- };
275
- declare function ThemeSwitcher({ className, showLabels, ...props }: ThemeSwitcherProps): react_jsx_runtime.JSX.Element;
276
-
277
- export { AppShell, type AppShellProps, AuthLayout, type AuthLayoutProps, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Container, type ContainerProps, CraftBadge, type CraftBadgeProps, CraftButton, type CraftButtonProps, CraftCard, type CraftCardProps, CraftCheckbox, type CraftCheckboxProps, CraftCurrencyInput, type CraftCurrencyInputProps, CraftDatePicker, type CraftDatePickerProps, CraftDrawer, type CraftDrawerProps, CraftEmptyState, type CraftEmptyStateProps, CraftInput, type CraftInputProps, CraftModal, type CraftModalProps, CraftNumberInput, type CraftNumberInputProps, CraftSelect, type CraftSelectProps, CraftSkeleton, type CraftSkeletonProps, CraftSwitch, type CraftSwitchProps, CraftTabs, type CraftTabsProps, CraftTextarea, type CraftTextareaProps, type CraftToast, CraftToastHost, type CraftToastHostProps, CraftTooltip, type CraftTooltipProps, GlassCard, type GlassCardProps, Grid, type GridProps, PageHeader, type PageHeaderProps, Sidebar, type SidebarItem, type SidebarProps, type ThemeMode, type ThemeName, ThemeProvider, ThemeSwitcher, type ThemeSwitcherProps, TopNav, type TopNavProps, useCraftToast, useTheme };
1
+ export { CraftAlert, CraftAlertProps, CraftBadge, CraftBadgeProps, CraftButton, CraftButtonProps, CraftCard, CraftCardProps, CraftCheckbox, CraftCheckboxProps, CraftCommandItem, CraftCommandPalette, CraftCommandPaletteProps, CraftConfirmDialog, CraftConfirmDialogProps, CraftCreateEditDrawer, CraftCreateEditDrawerProps, CraftCurrencyInput, CraftCurrencyInputProps, CraftDatePicker, CraftDatePickerProps, CraftDrawer, CraftDrawerProps, CraftDropdownItem, CraftDropdownMenu, CraftDropdownMenuProps, CraftEmptyState, CraftEmptyStateProps, CraftErrorState, CraftErrorStateProps, CraftIcon, CraftIconProps, CraftIconProvider, CraftIconProviderProps, CraftIconRegistry, CraftInput, CraftInputProps, CraftLink, CraftLinkProps, CraftLoadingState, CraftLoadingStateProps, CraftModal, CraftModalProps, CraftNumberInput, CraftNumberInputProps, CraftPopover, CraftPopoverProps, CraftSelect, CraftSelectProps, CraftSkeleton, CraftSkeletonProps, CraftStatCard, CraftStatCardProps, CraftSubmitButton, CraftSubmitButtonProps, CraftSwitch, CraftSwitchProps, CraftTabs, CraftTabsProps, CraftTextarea, CraftTextareaProps, CraftToast, CraftToastHost, CraftToastHostProps, CraftTooltip, CraftTooltipProps, GlassCard, GlassCardProps, useCraftToast } from './craft/components.cjs';
2
+ export { CraftForm, CraftFormBuilder, CraftFormBuilderField, CraftFormBuilderProps, CraftFormField, CraftFormFieldOption, CraftFormFieldProps, CraftFormFieldType, CraftFormProps } from './craft/forms.cjs';
3
+ export { CraftDataTable, CraftDataTableColumn, CraftDataTableProps, CraftDataTableSort, CraftFilterBar, CraftFilterBarProps, CraftPagination, CraftPaginationProps, CraftTableToolbar, CraftTableToolbarProps } from './craft/table.cjs';
4
+ export { AppShell, AppShellProps, AppTemplate, AppTemplateProps, AuthLayout, AuthLayoutProps, BreadcrumbItem, Breadcrumbs, BreadcrumbsProps, Container, ContainerProps, Grid, GridProps, LayoutBreadcrumbItem, LayoutConfig, LayoutIconName, LayoutSidebarItem, PageHeader, PageHeaderProps, Sidebar, SidebarItem, SidebarProps, TopNav, TopNavProps, layoutConfigSchema } from './craft/layout.cjs';
5
+ export { ThemeSwitcher, ThemeSwitcherProps } from './craft/theme.cjs';
6
+ export { T as ThemeMode, a as ThemeName, b as ThemeProvider, u as useTheme } from './theme-context-EVI9PfKv.cjs';
7
+ import 'react/jsx-runtime';
8
+ import 'react';
9
+ import 'react-hook-form';
10
+ import 'next/link';
package/dist/index.d.ts CHANGED
@@ -1,277 +1,10 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React$1 from 'react';
3
-
4
- type ThemeName = "aurora" | "ember" | "ocean" | "midnight" | "cosmic";
5
- type ThemeMode = "light" | "dark" | "system";
6
- type ThemeContextValue = {
7
- theme: ThemeName;
8
- mode: ThemeMode;
9
- setTheme: (theme: ThemeName) => void;
10
- setMode: (mode: ThemeMode) => void;
11
- };
12
- type ThemeProviderProps = {
13
- children: React$1.ReactNode;
14
- defaultTheme?: ThemeName;
15
- defaultMode?: ThemeMode;
16
- storageKeyTheme?: string;
17
- storageKeyMode?: string;
18
- };
19
- declare function ThemeProvider({ children, defaultTheme, defaultMode, storageKeyTheme, storageKeyMode, }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
20
- declare function useTheme(): ThemeContextValue;
21
-
22
- type CraftButtonVariant = "solid" | "ghost" | "outline" | "gradient";
23
- type CraftButtonSize = "sm" | "md" | "lg";
24
- type CraftButtonProps = React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
25
- variant?: CraftButtonVariant;
26
- size?: CraftButtonSize;
27
- glow?: boolean;
28
- tone?: ThemeName;
29
- };
30
- declare function CraftButton({ className, variant, size, glow, tone, disabled, ...props }: CraftButtonProps): react_jsx_runtime.JSX.Element;
31
-
32
- type GlassCardProps = React.HTMLAttributes<HTMLDivElement> & {
33
- tone?: ThemeName;
34
- intensity?: "subtle" | "medium" | "strong";
35
- bordered?: boolean;
36
- };
37
- declare function GlassCard({ className, tone, intensity, bordered, children, ...props }: GlassCardProps): react_jsx_runtime.JSX.Element;
38
-
39
- type CraftInputSize = "sm" | "md" | "lg";
40
- type CraftInputProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> & {
41
- tone?: ThemeName;
42
- inputSize?: CraftInputSize;
43
- glow?: boolean;
44
- icon?: React$1.ReactNode;
45
- };
46
- declare const CraftInput: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> & {
47
- tone?: ThemeName;
48
- inputSize?: CraftInputSize;
49
- glow?: boolean;
50
- icon?: React$1.ReactNode;
51
- } & React$1.RefAttributes<HTMLInputElement>>;
52
-
53
- type CraftTextareaProps = React$1.TextareaHTMLAttributes<HTMLTextAreaElement> & {
54
- tone?: ThemeName;
55
- };
56
- declare const CraftTextarea: React$1.ForwardRefExoticComponent<React$1.TextareaHTMLAttributes<HTMLTextAreaElement> & {
57
- tone?: ThemeName;
58
- } & React$1.RefAttributes<HTMLTextAreaElement>>;
59
-
60
- type CraftSelectProps = React$1.SelectHTMLAttributes<HTMLSelectElement> & {
61
- tone?: ThemeName;
62
- };
63
- declare const CraftSelect: React$1.ForwardRefExoticComponent<React$1.SelectHTMLAttributes<HTMLSelectElement> & {
64
- tone?: ThemeName;
65
- } & React$1.RefAttributes<HTMLSelectElement>>;
66
-
67
- type CraftCheckboxProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & {
68
- tone?: ThemeName;
69
- label?: React$1.ReactNode;
70
- description?: React$1.ReactNode;
71
- };
72
- declare const CraftCheckbox: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & {
73
- tone?: ThemeName;
74
- label?: React$1.ReactNode;
75
- description?: React$1.ReactNode;
76
- } & React$1.RefAttributes<HTMLInputElement>>;
77
-
78
- type CraftSwitchProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & {
79
- tone?: ThemeName;
80
- label?: React$1.ReactNode;
81
- };
82
- declare const CraftSwitch: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & {
83
- tone?: ThemeName;
84
- label?: React$1.ReactNode;
85
- } & React$1.RefAttributes<HTMLInputElement>>;
86
-
87
- type CraftBadgeVariant = "solid" | "soft" | "outline";
88
- type CraftBadgeProps = React$1.HTMLAttributes<HTMLSpanElement> & {
89
- variant?: CraftBadgeVariant;
90
- tone?: ThemeName;
91
- };
92
- declare function CraftBadge({ className, variant, tone, ...props }: CraftBadgeProps): react_jsx_runtime.JSX.Element;
93
-
94
- type CraftCardProps = React$1.HTMLAttributes<HTMLDivElement> & {
95
- tone?: ThemeName;
96
- elevated?: boolean;
97
- };
98
- declare function CraftCard({ className, tone, elevated, ...props }: CraftCardProps): react_jsx_runtime.JSX.Element;
99
-
100
- type CraftModalProps = {
101
- open?: boolean;
102
- defaultOpen?: boolean;
103
- onOpenChange?: (open: boolean) => void;
104
- tone?: ThemeName;
105
- title?: React$1.ReactNode;
106
- description?: React$1.ReactNode;
107
- children?: React$1.ReactNode;
108
- trigger?: React$1.ReactNode;
109
- footer?: React$1.ReactNode;
110
- className?: string;
111
- };
112
- declare function CraftModal({ open, defaultOpen, onOpenChange, tone, title, description, children, trigger, footer, className, }: CraftModalProps): react_jsx_runtime.JSX.Element;
113
-
114
- type CraftDrawerProps = {
115
- open?: boolean;
116
- defaultOpen?: boolean;
117
- onOpenChange?: (open: boolean) => void;
118
- tone?: ThemeName;
119
- side?: "right" | "left";
120
- title?: React$1.ReactNode;
121
- children?: React$1.ReactNode;
122
- trigger?: React$1.ReactNode;
123
- footer?: React$1.ReactNode;
124
- className?: string;
125
- };
126
- declare function CraftDrawer({ open, defaultOpen, onOpenChange, tone, side, title, children, trigger, footer, className, }: CraftDrawerProps): react_jsx_runtime.JSX.Element;
127
-
128
- type CraftTabsProps = {
129
- value?: string;
130
- defaultValue?: string;
131
- onValueChange?: (value: string) => void;
132
- tone?: ThemeName;
133
- tabs: Array<{
134
- value: string;
135
- label: React$1.ReactNode;
136
- }>;
137
- panels: Record<string, React$1.ReactNode>;
138
- className?: string;
139
- };
140
- declare function CraftTabs({ value, defaultValue, onValueChange, tone, tabs, panels, className, }: CraftTabsProps): react_jsx_runtime.JSX.Element;
141
-
142
- type CraftTooltipProps = {
143
- content: React$1.ReactNode;
144
- tone?: ThemeName;
145
- children: React$1.ReactElement;
146
- side?: "top" | "bottom" | "left" | "right";
147
- };
148
- declare function CraftTooltip({ content, tone, children, side }: CraftTooltipProps): react_jsx_runtime.JSX.Element;
149
-
150
- type CraftToastVariant = "info" | "success" | "warning" | "error";
151
- type CraftToast = {
152
- id: string;
153
- title: string;
154
- description?: string;
155
- variant?: CraftToastVariant;
156
- };
157
- declare function useCraftToast(): {
158
- toasts: CraftToast[];
159
- push: (toast: Omit<CraftToast, "id">) => string;
160
- remove: (id: string) => void;
161
- };
162
- type CraftToastHostProps = {
163
- toasts: CraftToast[];
164
- onDismiss: (id: string) => void;
165
- tone?: ThemeName;
166
- };
167
- declare function CraftToastHost({ toasts, onDismiss, tone }: CraftToastHostProps): react_jsx_runtime.JSX.Element;
168
-
169
- type CraftSkeletonProps = React$1.HTMLAttributes<HTMLDivElement> & {
170
- tone?: ThemeName;
171
- };
172
- declare function CraftSkeleton({ className, tone, ...props }: CraftSkeletonProps): react_jsx_runtime.JSX.Element;
173
-
174
- type CraftEmptyStateProps = React$1.HTMLAttributes<HTMLDivElement> & {
175
- tone?: ThemeName;
176
- title: string;
177
- description?: string;
178
- icon?: React$1.ReactNode;
179
- action?: React$1.ReactNode;
180
- };
181
- declare function CraftEmptyState({ className, tone, title, description, icon, action, ...props }: CraftEmptyStateProps): react_jsx_runtime.JSX.Element;
182
-
183
- type CraftDatePickerProps = {
184
- value?: string;
185
- defaultValue?: string;
186
- onChange?: (value: string) => void;
187
- tone?: ThemeName;
188
- min?: string;
189
- max?: string;
190
- placeholder?: string;
191
- className?: string;
192
- };
193
- declare function CraftDatePicker({ value, defaultValue, onChange, tone, min, max, placeholder, className, }: CraftDatePickerProps): react_jsx_runtime.JSX.Element;
194
-
195
- type CraftNumberInputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
196
- tone?: ThemeName;
197
- };
198
- declare const CraftNumberInput: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLInputElement> & {
199
- tone?: ThemeName;
200
- } & React$1.RefAttributes<HTMLInputElement>>;
201
-
202
- type CraftCurrencyInputProps = Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & {
203
- tone?: ThemeName;
204
- currencySymbol?: string;
205
- };
206
- declare const CraftCurrencyInput: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & {
207
- tone?: ThemeName;
208
- currencySymbol?: string;
209
- } & React$1.RefAttributes<HTMLInputElement>>;
210
-
211
- type AppShellProps = React$1.HTMLAttributes<HTMLDivElement> & {
212
- sidebar?: React$1.ReactNode;
213
- topNav?: React$1.ReactNode;
214
- };
215
- declare function AppShell({ className, sidebar, topNav, children, ...props }: AppShellProps): react_jsx_runtime.JSX.Element;
216
-
217
- type SidebarItem = {
218
- label: React$1.ReactNode;
219
- href?: string;
220
- icon?: React$1.ReactNode;
221
- active?: boolean;
222
- };
223
- type SidebarProps = React$1.HTMLAttributes<HTMLElement> & {
224
- title?: React$1.ReactNode;
225
- items: SidebarItem[];
226
- footer?: React$1.ReactNode;
227
- };
228
- declare function Sidebar({ className, title, items, footer, ...props }: SidebarProps): react_jsx_runtime.JSX.Element;
229
-
230
- type TopNavProps = React$1.HTMLAttributes<HTMLElement> & {
231
- title?: React$1.ReactNode;
232
- actions?: React$1.ReactNode;
233
- breadcrumb?: React$1.ReactNode;
234
- };
235
- declare function TopNav({ className, title, actions, breadcrumb, ...props }: TopNavProps): react_jsx_runtime.JSX.Element;
236
-
237
- type PageHeaderProps = React$1.HTMLAttributes<HTMLDivElement> & {
238
- title: React$1.ReactNode;
239
- description?: React$1.ReactNode;
240
- actions?: React$1.ReactNode;
241
- };
242
- declare function PageHeader({ className, title, description, actions, ...props }: PageHeaderProps): react_jsx_runtime.JSX.Element;
243
-
244
- type BreadcrumbItem = {
245
- label: React$1.ReactNode;
246
- href?: string;
247
- };
248
- type BreadcrumbsProps = React$1.HTMLAttributes<HTMLElement> & {
249
- items: BreadcrumbItem[];
250
- };
251
- declare function Breadcrumbs({ className, items, ...props }: BreadcrumbsProps): react_jsx_runtime.JSX.Element;
252
-
253
- type AuthLayoutProps = React$1.HTMLAttributes<HTMLDivElement> & {
254
- title?: React$1.ReactNode;
255
- description?: React$1.ReactNode;
256
- footer?: React$1.ReactNode;
257
- graphic?: React$1.ReactNode;
258
- };
259
- declare function AuthLayout({ className, title, description, footer, graphic, children, ...props }: AuthLayoutProps): react_jsx_runtime.JSX.Element;
260
-
261
- type ContainerProps = React$1.HTMLAttributes<HTMLDivElement> & {
262
- size?: "sm" | "md" | "lg" | "xl";
263
- };
264
- declare function Container({ className, size, ...props }: ContainerProps): react_jsx_runtime.JSX.Element;
265
-
266
- type GridProps = React$1.HTMLAttributes<HTMLDivElement> & {
267
- columns?: 1 | 2 | 3 | 4 | 5 | 6;
268
- gap?: "sm" | "md" | "lg" | "xl";
269
- };
270
- declare function Grid({ className, columns, gap, ...props }: GridProps): react_jsx_runtime.JSX.Element;
271
-
272
- type ThemeSwitcherProps = React$1.HTMLAttributes<HTMLDivElement> & {
273
- showLabels?: boolean;
274
- };
275
- declare function ThemeSwitcher({ className, showLabels, ...props }: ThemeSwitcherProps): react_jsx_runtime.JSX.Element;
276
-
277
- export { AppShell, type AppShellProps, AuthLayout, type AuthLayoutProps, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Container, type ContainerProps, CraftBadge, type CraftBadgeProps, CraftButton, type CraftButtonProps, CraftCard, type CraftCardProps, CraftCheckbox, type CraftCheckboxProps, CraftCurrencyInput, type CraftCurrencyInputProps, CraftDatePicker, type CraftDatePickerProps, CraftDrawer, type CraftDrawerProps, CraftEmptyState, type CraftEmptyStateProps, CraftInput, type CraftInputProps, CraftModal, type CraftModalProps, CraftNumberInput, type CraftNumberInputProps, CraftSelect, type CraftSelectProps, CraftSkeleton, type CraftSkeletonProps, CraftSwitch, type CraftSwitchProps, CraftTabs, type CraftTabsProps, CraftTextarea, type CraftTextareaProps, type CraftToast, CraftToastHost, type CraftToastHostProps, CraftTooltip, type CraftTooltipProps, GlassCard, type GlassCardProps, Grid, type GridProps, PageHeader, type PageHeaderProps, Sidebar, type SidebarItem, type SidebarProps, type ThemeMode, type ThemeName, ThemeProvider, ThemeSwitcher, type ThemeSwitcherProps, TopNav, type TopNavProps, useCraftToast, useTheme };
1
+ export { CraftAlert, CraftAlertProps, CraftBadge, CraftBadgeProps, CraftButton, CraftButtonProps, CraftCard, CraftCardProps, CraftCheckbox, CraftCheckboxProps, CraftCommandItem, CraftCommandPalette, CraftCommandPaletteProps, CraftConfirmDialog, CraftConfirmDialogProps, CraftCreateEditDrawer, CraftCreateEditDrawerProps, CraftCurrencyInput, CraftCurrencyInputProps, CraftDatePicker, CraftDatePickerProps, CraftDrawer, CraftDrawerProps, CraftDropdownItem, CraftDropdownMenu, CraftDropdownMenuProps, CraftEmptyState, CraftEmptyStateProps, CraftErrorState, CraftErrorStateProps, CraftIcon, CraftIconProps, CraftIconProvider, CraftIconProviderProps, CraftIconRegistry, CraftInput, CraftInputProps, CraftLink, CraftLinkProps, CraftLoadingState, CraftLoadingStateProps, CraftModal, CraftModalProps, CraftNumberInput, CraftNumberInputProps, CraftPopover, CraftPopoverProps, CraftSelect, CraftSelectProps, CraftSkeleton, CraftSkeletonProps, CraftStatCard, CraftStatCardProps, CraftSubmitButton, CraftSubmitButtonProps, CraftSwitch, CraftSwitchProps, CraftTabs, CraftTabsProps, CraftTextarea, CraftTextareaProps, CraftToast, CraftToastHost, CraftToastHostProps, CraftTooltip, CraftTooltipProps, GlassCard, GlassCardProps, useCraftToast } from './craft/components.js';
2
+ export { CraftForm, CraftFormBuilder, CraftFormBuilderField, CraftFormBuilderProps, CraftFormField, CraftFormFieldOption, CraftFormFieldProps, CraftFormFieldType, CraftFormProps } from './craft/forms.js';
3
+ export { CraftDataTable, CraftDataTableColumn, CraftDataTableProps, CraftDataTableSort, CraftFilterBar, CraftFilterBarProps, CraftPagination, CraftPaginationProps, CraftTableToolbar, CraftTableToolbarProps } from './craft/table.js';
4
+ export { AppShell, AppShellProps, AppTemplate, AppTemplateProps, AuthLayout, AuthLayoutProps, BreadcrumbItem, Breadcrumbs, BreadcrumbsProps, Container, ContainerProps, Grid, GridProps, LayoutBreadcrumbItem, LayoutConfig, LayoutIconName, LayoutSidebarItem, PageHeader, PageHeaderProps, Sidebar, SidebarItem, SidebarProps, TopNav, TopNavProps, layoutConfigSchema } from './craft/layout.js';
5
+ export { ThemeSwitcher, ThemeSwitcherProps } from './craft/theme.js';
6
+ export { T as ThemeMode, a as ThemeName, b as ThemeProvider, u as useTheme } from './theme-context-EVI9PfKv.js';
7
+ import 'react/jsx-runtime';
8
+ import 'react';
9
+ import 'react-hook-form';
10
+ import 'next/link';