@me1a/ui 1.2.13 → 2.0.1
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/index.css +2 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.mts +437 -0
- package/dist/index.d.ts +437 -2
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +84 -96
- package/dist/components/iconify/iconify.d.ts +0 -7
- package/dist/components/iconify/index.d.ts +0 -2
- package/dist/components/iconify/types.d.ts +0 -2
- package/dist/components/index.cjs.js +0 -7961
- package/dist/components/index.cjs.js.map +0 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.es.js +0 -7941
- package/dist/components/index.es.js.map +0 -1
- package/dist/hook-forms/form-provider.d.ts +0 -8
- package/dist/hook-forms/index.cjs.js +0 -27806
- package/dist/hook-forms/index.cjs.js.map +0 -1
- package/dist/hook-forms/index.d.ts +0 -11
- package/dist/hook-forms/index.es.js +0 -27765
- package/dist/hook-forms/index.es.js.map +0 -1
- package/dist/hook-forms/rhf-autocomplete.d.ts +0 -11
- package/dist/hook-forms/rhf-checkbox.d.ts +0 -19
- package/dist/hook-forms/rhf-radio-group.d.ts +0 -13
- package/dist/hook-forms/rhf-select.d.ts +0 -11
- package/dist/hook-forms/rhf-slider.d.ts +0 -7
- package/dist/hook-forms/rhf-switch.d.ts +0 -7
- package/dist/hook-forms/rhf-text-field.d.ts +0 -6
- package/dist/hooks/index.cjs.js +0 -27
- package/dist/hooks/index.cjs.js.map +0 -1
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.es.js +0 -25
- package/dist/hooks/index.es.js.map +0 -1
- package/dist/hooks/use-boolean.d.ts +0 -9
- package/dist/index.cjs.js +0 -27828
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.es.js +0 -27786
- package/dist/index.es.js.map +0 -1
- package/dist/redux/index.cjs.js +0 -1347
- package/dist/redux/index.cjs.js.map +0 -1
- package/dist/redux/index.d.ts +0 -1
- package/dist/redux/index.es.js +0 -1317
- package/dist/redux/index.es.js.map +0 -1
- package/dist/redux-toolkit/index.cjs.js +0 -7668
- package/dist/redux-toolkit/index.cjs.js.map +0 -1
- package/dist/redux-toolkit/index.d.ts +0 -2
- package/dist/redux-toolkit/index.es.js +0 -7589
- package/dist/redux-toolkit/index.es.js.map +0 -1
- package/dist/snackbar/index.cjs.js +0 -10873
- package/dist/snackbar/index.cjs.js.map +0 -1
- package/dist/snackbar/index.d.ts +0 -2
- package/dist/snackbar/index.es.js +0 -10849
- package/dist/snackbar/index.es.js.map +0 -1
- package/dist/snackbar/snackbar-provider.d.ts +0 -7
package/dist/index.css
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
@tailwind base;@tailwind components;@tailwind utilities;@layer base{:root{--background: 0 0% 100%;--foreground: 0 0% 3.9%;--card: 0 0% 100%;--card-foreground: 0 0% 3.9%;--popover: 0 0% 100%;--popover-foreground: 0 0% 3.9%;--primary: 0 0% 9%;--primary-foreground: 0 0% 98%;--secondary: 0 0% 96.1%;--secondary-foreground: 0 0% 9%;--muted: 0 0% 96.1%;--muted-foreground: 0 0% 45.1%;--accent: 0 0% 96.1%;--accent-foreground: 0 0% 9%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 0 0% 89.8%;--input: 0 0% 89.8%;--ring: 0 0% 3.9%;--radius: .5rem;--chart-1: 12 76% 61%;--chart-2: 173 58% 39%;--chart-3: 197 37% 24%;--chart-4: 43 74% 66%;--chart-5: 27 87% 67%}.dark{--background: 0 0% 3.9%;--foreground: 0 0% 98%;--card: 0 0% 3.9%;--card-foreground: 0 0% 98%;--popover: 0 0% 3.9%;--popover-foreground: 0 0% 98%;--primary: 0 0% 98%;--primary-foreground: 0 0% 9%;--secondary: 0 0% 14.9%;--secondary-foreground: 0 0% 98%;--muted: 0 0% 14.9%;--muted-foreground: 0 0% 63.9%;--accent: 0 0% 14.9%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--border: 0 0% 14.9%;--input: 0 0% 14.9%;--ring: 0 0% 83.1%;--chart-1: 220 70% 50%;--chart-2: 160 60% 45%;--chart-3: 30 80% 55%;--chart-4: 280 65% 60%;--chart-5: 340 75% 55%}}@layer base{*{@apply border-border;}body{@apply bg-background text-foreground;}}
|
|
2
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/styles/globals.css"],"sourcesContent":["@tailwind base;\n@tailwind components;\n@tailwind utilities;\n\n@layer base {\n :root {\n --background: 0 0% 100%;\n --foreground: 0 0% 3.9%;\n\n --card: 0 0% 100%;\n --card-foreground: 0 0% 3.9%;\n \n --popover: 0 0% 100%;\n --popover-foreground: 0 0% 3.9%;\n \n --primary: 0 0% 9%;\n --primary-foreground: 0 0% 98%;\n \n --secondary: 0 0% 96.1%;\n --secondary-foreground: 0 0% 9%;\n \n --muted: 0 0% 96.1%;\n --muted-foreground: 0 0% 45.1%;\n \n --accent: 0 0% 96.1%;\n --accent-foreground: 0 0% 9%;\n \n --destructive: 0 84.2% 60.2%;\n --destructive-foreground: 0 0% 98%;\n\n --border: 0 0% 89.8%;\n --input: 0 0% 89.8%;\n --ring: 0 0% 3.9%;\n \n --radius: 0.5rem;\n \n --chart-1: 12 76% 61%;\n \n --chart-2: 173 58% 39%;\n \n --chart-3: 197 37% 24%;\n \n --chart-4: 43 74% 66%;\n \n --chart-5: 27 87% 67%;\n }\n \n .dark {\n --background: 0 0% 3.9%;\n --foreground: 0 0% 98%;\n \n --card: 0 0% 3.9%;\n --card-foreground: 0 0% 98%;\n \n --popover: 0 0% 3.9%;\n --popover-foreground: 0 0% 98%;\n \n --primary: 0 0% 98%;\n --primary-foreground: 0 0% 9%;\n \n --secondary: 0 0% 14.9%;\n --secondary-foreground: 0 0% 98%;\n \n --muted: 0 0% 14.9%;\n --muted-foreground: 0 0% 63.9%;\n \n --accent: 0 0% 14.9%;\n --accent-foreground: 0 0% 98%;\n \n --destructive: 0 62.8% 30.6%;\n --destructive-foreground: 0 0% 98%;\n \n --border: 0 0% 14.9%;\n --input: 0 0% 14.9%;\n --ring: 0 0% 83.1%;\n --chart-1: 220 70% 50%;\n --chart-2: 160 60% 45%;\n --chart-3: 30 80% 55%;\n --chart-4: 280 65% 60%;\n --chart-5: 340 75% 55%;\n }\n}\n \n@layer base {\n * {\n @apply border-border;\n }\n body {\n @apply bg-background text-foreground;\n }\n} "],"mappings":"AAAA,UAAU,KACV,UAAU,WACV,UAAU,UAEV,YACE,MACE,cAAc,EAAE,GAAG,KACnB,cAAc,EAAE,GAAG,KAEnB,QAAQ,EAAE,GAAG,KACb,mBAAmB,EAAE,GAAG,KAExB,WAAW,EAAE,GAAG,KAChB,sBAAsB,EAAE,GAAG,KAE3B,WAAW,EAAE,GAAG,GAChB,sBAAsB,EAAE,GAAG,IAE3B,aAAa,EAAE,GAAG,MAClB,wBAAwB,EAAE,GAAG,GAE7B,SAAS,EAAE,GAAG,MACd,oBAAoB,EAAE,GAAG,MAEzB,UAAU,EAAE,GAAG,MACf,qBAAqB,EAAE,GAAG,GAE1B,eAAe,EAAE,MAAM,MACvB,0BAA0B,EAAE,GAAG,IAE/B,UAAU,EAAE,GAAG,MACf,SAAS,EAAE,GAAG,MACd,QAAQ,EAAE,GAAG,KAEb,UAAU,MAEV,WAAW,GAAG,IAAI,IAElB,WAAW,IAAI,IAAI,IAEnB,WAAW,IAAI,IAAI,IAEnB,WAAW,GAAG,IAAI,IAElB,WAAW,GAAG,IAAI,GACpB,CAEA,CAAC,KACC,cAAc,EAAE,GAAG,KACnB,cAAc,EAAE,GAAG,IAEnB,QAAQ,EAAE,GAAG,KACb,mBAAmB,EAAE,GAAG,IAExB,WAAW,EAAE,GAAG,KAChB,sBAAsB,EAAE,GAAG,IAE3B,WAAW,EAAE,GAAG,IAChB,sBAAsB,EAAE,GAAG,GAE3B,aAAa,EAAE,GAAG,MAClB,wBAAwB,EAAE,GAAG,IAE7B,SAAS,EAAE,GAAG,MACd,oBAAoB,EAAE,GAAG,MAEzB,UAAU,EAAE,GAAG,MACf,qBAAqB,EAAE,GAAG,IAE1B,eAAe,EAAE,MAAM,MACvB,0BAA0B,EAAE,GAAG,IAE/B,UAAU,EAAE,GAAG,MACf,SAAS,EAAE,GAAG,MACd,QAAQ,EAAE,GAAG,MACb,WAAW,IAAI,IAAI,IACnB,WAAW,IAAI,IAAI,IACnB,WAAW,GAAG,IAAI,IAClB,WAAW,IAAI,IAAI,IACnB,WAAW,IAAI,IAAI,GACrB,CACF,CAEA,YACE,EACE,OAAO,cACT,CACA,KACE,OAAO,cAAc,gBACvB,CACF","names":[]}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
6
|
+
import * as vaul from 'vaul';
|
|
7
|
+
import { Drawer as Drawer$1 } from 'vaul';
|
|
8
|
+
import { ClassValue } from 'clsx';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Props interface for the Button component.
|
|
12
|
+
* Extends the native button HTML attributes and adds support for variants and asChild prop.
|
|
13
|
+
*
|
|
14
|
+
* @interface ButtonProps
|
|
15
|
+
* @extends {React.ButtonHTMLAttributes<HTMLButtonElement>}
|
|
16
|
+
* @extends {VariantProps<typeof buttonVariants>}
|
|
17
|
+
*
|
|
18
|
+
* @property {boolean} [asChild] - When true, renders the button as a child component using Radix UI's Slot.
|
|
19
|
+
* @property {string} [variant] - The visual style variant of the button.
|
|
20
|
+
* @property {string} [size] - The size variant of the button.
|
|
21
|
+
* @property {string} [className] - Additional CSS classes to apply to the button.
|
|
22
|
+
* @property {React.ReactNode} [startIcon] - Icon to display before the button text.
|
|
23
|
+
* @property {React.ReactNode} [endIcon] - Icon to display after the button text.
|
|
24
|
+
* @property {boolean} [loading] - Whether the button is in a loading state.
|
|
25
|
+
*/
|
|
26
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
27
|
+
asChild?: boolean;
|
|
28
|
+
startIcon?: React.ReactNode;
|
|
29
|
+
endIcon?: React.ReactNode;
|
|
30
|
+
loading?: boolean;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Button variant styles using class-variance-authority.
|
|
35
|
+
* Defines the visual styles for different button variants and sizes.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```tsx
|
|
39
|
+
* <Button variant="primary" size="lg">Click me</Button>
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
declare const buttonVariants: (props?: ({
|
|
43
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
44
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
45
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
46
|
+
/**
|
|
47
|
+
* A versatile button component that supports multiple variants, sizes, and can be rendered as a child component.
|
|
48
|
+
* Built on top of Radix UI's Slot primitive for maximum flexibility.
|
|
49
|
+
*
|
|
50
|
+
* @component
|
|
51
|
+
* @example
|
|
52
|
+
* ```tsx
|
|
53
|
+
* // Default button
|
|
54
|
+
* <Button>Click me</Button>
|
|
55
|
+
*
|
|
56
|
+
* // Destructive button with small size
|
|
57
|
+
* <Button variant="destructive" size="sm">Delete</Button>
|
|
58
|
+
*
|
|
59
|
+
* // As a link
|
|
60
|
+
* <Button variant="link" asChild>
|
|
61
|
+
* <a href="/about">About</a>
|
|
62
|
+
* </Button>
|
|
63
|
+
*
|
|
64
|
+
* // With icons
|
|
65
|
+
* <Button startIcon={<Icon />}>With Start Icon</Button>
|
|
66
|
+
* <Button endIcon={<Icon />}>With End Icon</Button>
|
|
67
|
+
*
|
|
68
|
+
* // Loading state
|
|
69
|
+
* <Button loading>Loading</Button>
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* @param {ButtonProps} props - The component props
|
|
73
|
+
* @param {React.Ref<HTMLButtonElement>} ref - Forwarded ref
|
|
74
|
+
* @returns {JSX.Element} A button element
|
|
75
|
+
*/
|
|
76
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Props interface for the TextField component.
|
|
80
|
+
* Extends the native input HTML attributes and adds support for variants and icons.
|
|
81
|
+
*
|
|
82
|
+
* @interface TextFieldProps
|
|
83
|
+
* @extends {React.InputHTMLAttributes<HTMLInputElement>}
|
|
84
|
+
* @extends {VariantProps<typeof textFieldVariants>}
|
|
85
|
+
*
|
|
86
|
+
* @property {string} [variant] - The visual style variant of the text field.
|
|
87
|
+
* @property {string} [size] - The size variant of the text field.
|
|
88
|
+
* @property {string} [className] - Additional CSS classes to apply to the text field.
|
|
89
|
+
* @property {React.ReactNode} [startIcon] - Icon to display before the input.
|
|
90
|
+
* @property {React.ReactNode} [endIcon] - Icon to display after the input.
|
|
91
|
+
* @property {boolean} [loading] - Whether the text field is in a loading state.
|
|
92
|
+
* @property {string} [error] - Error message to display below the text field.
|
|
93
|
+
* @property {string} [label] - Label text for the text field.
|
|
94
|
+
* @property {string} [helperText] - Helper text to display below the text field.
|
|
95
|
+
*/
|
|
96
|
+
interface TextFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size">, VariantProps<typeof textFieldVariants> {
|
|
97
|
+
startIcon?: React.ReactNode;
|
|
98
|
+
endIcon?: React.ReactNode;
|
|
99
|
+
loading?: boolean;
|
|
100
|
+
error?: string;
|
|
101
|
+
label?: string;
|
|
102
|
+
helperText?: string;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Text field variant styles using class-variance-authority.
|
|
107
|
+
* Defines the visual styles for different text field variants and sizes.
|
|
108
|
+
*/
|
|
109
|
+
declare const textFieldVariants: (props?: ({
|
|
110
|
+
variant?: "default" | "error" | null | undefined;
|
|
111
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
112
|
+
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
113
|
+
/**
|
|
114
|
+
* A versatile text field component that supports multiple variants, sizes, and icons.
|
|
115
|
+
* Built on top of shadcn/ui's Input component.
|
|
116
|
+
*
|
|
117
|
+
* @component
|
|
118
|
+
* @example
|
|
119
|
+
* ```tsx
|
|
120
|
+
* // Default text field
|
|
121
|
+
* <TextField placeholder="Enter text" />
|
|
122
|
+
*
|
|
123
|
+
* // With icons
|
|
124
|
+
* <TextField startIcon={<SearchIcon />} placeholder="Search..." />
|
|
125
|
+
* <TextField endIcon={<CalendarIcon />} placeholder="Select date" />
|
|
126
|
+
*
|
|
127
|
+
* // With loading state
|
|
128
|
+
* <TextField loading placeholder="Loading..." />
|
|
129
|
+
*
|
|
130
|
+
* // With error
|
|
131
|
+
* <TextField error="Invalid input" placeholder="Enter text" />
|
|
132
|
+
* ```
|
|
133
|
+
*/
|
|
134
|
+
declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
135
|
+
|
|
136
|
+
interface ContainerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
137
|
+
/**
|
|
138
|
+
* The maximum width of the container.
|
|
139
|
+
* - "sm": 640px
|
|
140
|
+
* - "md": 768px
|
|
141
|
+
* - "lg": 1024px
|
|
142
|
+
* - "xl": 1280px
|
|
143
|
+
* - "full": 100%
|
|
144
|
+
* - false: No max-width (fluid)
|
|
145
|
+
*
|
|
146
|
+
* @default "lg"
|
|
147
|
+
*/
|
|
148
|
+
maxWidth?: "sm" | "md" | "lg" | "xl" | "full" | false;
|
|
149
|
+
/**
|
|
150
|
+
* Whether to disable the default horizontal padding.
|
|
151
|
+
* When true, removes the default padding (px-4 sm:px-6 lg:px-8).
|
|
152
|
+
*
|
|
153
|
+
* @default false
|
|
154
|
+
*/
|
|
155
|
+
disablePadding?: boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Whether to make the container fluid (no max-width).
|
|
158
|
+
* When true, the container will expand to fill its parent's width.
|
|
159
|
+
*
|
|
160
|
+
* @default false
|
|
161
|
+
*/
|
|
162
|
+
fluid?: boolean;
|
|
163
|
+
}
|
|
164
|
+
declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Box is a fundamental layout component that serves as a building block for other components.
|
|
168
|
+
* It's a polymorphic component that can render as different HTML elements while maintaining
|
|
169
|
+
* consistent styling and behavior.
|
|
170
|
+
*
|
|
171
|
+
* @example
|
|
172
|
+
* ```tsx
|
|
173
|
+
* // Basic usage
|
|
174
|
+
* <Box>Content</Box>
|
|
175
|
+
*
|
|
176
|
+
* // As a different element
|
|
177
|
+
* <Box as="section">Section content</Box>
|
|
178
|
+
*
|
|
179
|
+
* // With custom className
|
|
180
|
+
* <Box className="bg-primary text-white p-4">Styled content</Box>
|
|
181
|
+
* ```
|
|
182
|
+
*/
|
|
183
|
+
|
|
184
|
+
type BoxComponent = "div" | "span" | "section" | "article" | "main" | "aside" | "header" | "footer" | "nav";
|
|
185
|
+
interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
186
|
+
/**
|
|
187
|
+
* The HTML element to render the Box as.
|
|
188
|
+
* This allows for semantic HTML while maintaining consistent styling.
|
|
189
|
+
*
|
|
190
|
+
* @default "div"
|
|
191
|
+
*/
|
|
192
|
+
as?: BoxComponent;
|
|
193
|
+
}
|
|
194
|
+
declare const Box: React.ForwardRefExoticComponent<BoxProps & React.RefAttributes<HTMLDivElement>>;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Stack is a layout component that arranges its children in a vertical or horizontal stack
|
|
198
|
+
* with consistent spacing between items. It's built on top of Flexbox and provides
|
|
199
|
+
* a simple way to create consistent layouts.
|
|
200
|
+
*
|
|
201
|
+
* @example
|
|
202
|
+
* ```tsx
|
|
203
|
+
* // Basic vertical stack
|
|
204
|
+
* <Stack>
|
|
205
|
+
* <div>Item 1</div>
|
|
206
|
+
* <div>Item 2</div>
|
|
207
|
+
* <div>Item 3</div>
|
|
208
|
+
* </Stack>
|
|
209
|
+
*
|
|
210
|
+
* // Horizontal stack with custom spacing
|
|
211
|
+
* <Stack direction="horizontal" spacing="lg">
|
|
212
|
+
* <div>Item 1</div>
|
|
213
|
+
* <div>Item 2</div>
|
|
214
|
+
* </Stack>
|
|
215
|
+
*
|
|
216
|
+
* // Centered stack with wrapping
|
|
217
|
+
* <Stack direction="horizontal" center wrap>
|
|
218
|
+
* <div>Item 1</div>
|
|
219
|
+
* <div>Item 2</div>
|
|
220
|
+
* <div>Item 3</div>
|
|
221
|
+
* </Stack>
|
|
222
|
+
*
|
|
223
|
+
* // Stack with custom alignment
|
|
224
|
+
* <Stack align="center" justify="between">
|
|
225
|
+
* <div>Left</div>
|
|
226
|
+
* <div>Center</div>
|
|
227
|
+
* <div>Right</div>
|
|
228
|
+
* </Stack>
|
|
229
|
+
* ```
|
|
230
|
+
*/
|
|
231
|
+
|
|
232
|
+
interface StackProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
233
|
+
/**
|
|
234
|
+
* The direction in which to stack the items.
|
|
235
|
+
* - "vertical": Items are stacked top to bottom
|
|
236
|
+
* - "horizontal": Items are stacked left to right
|
|
237
|
+
*
|
|
238
|
+
* @default "vertical"
|
|
239
|
+
*/
|
|
240
|
+
direction?: "vertical" | "horizontal";
|
|
241
|
+
/**
|
|
242
|
+
* The spacing between items in the stack.
|
|
243
|
+
* - "none": 0px
|
|
244
|
+
* - "xs": 0.25rem (4px)
|
|
245
|
+
* - "sm": 0.5rem (8px)
|
|
246
|
+
* - "md": 1rem (16px)
|
|
247
|
+
* - "lg": 1.5rem (24px)
|
|
248
|
+
* - "xl": 2rem (32px)
|
|
249
|
+
*
|
|
250
|
+
* @default "md"
|
|
251
|
+
*/
|
|
252
|
+
spacing?: "none" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
253
|
+
/**
|
|
254
|
+
* Whether to allow items to wrap to the next line when they don't fit.
|
|
255
|
+
* Only applies to horizontal stacks.
|
|
256
|
+
*
|
|
257
|
+
* @default false
|
|
258
|
+
*/
|
|
259
|
+
wrap?: boolean;
|
|
260
|
+
/**
|
|
261
|
+
* Whether to center items both horizontally and vertically.
|
|
262
|
+
* This is a shorthand for setting both align and justify to "center".
|
|
263
|
+
*
|
|
264
|
+
* @default false
|
|
265
|
+
*/
|
|
266
|
+
center?: boolean;
|
|
267
|
+
/**
|
|
268
|
+
* How to justify items along the main axis.
|
|
269
|
+
* - "start": Items are packed toward the start
|
|
270
|
+
* - "end": Items are packed toward the end
|
|
271
|
+
* - "center": Items are centered
|
|
272
|
+
* - "between": Items are evenly distributed with first item at start and last at end
|
|
273
|
+
* - "around": Items are evenly distributed with equal space around them
|
|
274
|
+
* - "evenly": Items are distributed so that the spacing between any two items is equal
|
|
275
|
+
*
|
|
276
|
+
* @default undefined
|
|
277
|
+
*/
|
|
278
|
+
justify?: "start" | "end" | "center" | "between" | "around" | "evenly";
|
|
279
|
+
/**
|
|
280
|
+
* How to align items along the cross axis.
|
|
281
|
+
* - "start": Items are aligned at the start
|
|
282
|
+
* - "end": Items are aligned at the end
|
|
283
|
+
* - "center": Items are centered
|
|
284
|
+
* - "stretch": Items are stretched to fill the container
|
|
285
|
+
* - "baseline": Items are aligned at their baselines
|
|
286
|
+
*
|
|
287
|
+
* @default undefined
|
|
288
|
+
*/
|
|
289
|
+
align?: "start" | "end" | "center" | "stretch" | "baseline";
|
|
290
|
+
}
|
|
291
|
+
declare const Stack: React.ForwardRefExoticComponent<StackProps & React.RefAttributes<HTMLDivElement>>;
|
|
292
|
+
|
|
293
|
+
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
294
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
295
|
+
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
296
|
+
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
297
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
298
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
299
|
+
declare const DialogHeader: {
|
|
300
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
301
|
+
displayName: string;
|
|
302
|
+
};
|
|
303
|
+
declare const DialogFooter: {
|
|
304
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
305
|
+
displayName: string;
|
|
306
|
+
};
|
|
307
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
308
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
309
|
+
|
|
310
|
+
declare const Input: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Card is a flexible container component that can be used to group related content and actions.
|
|
314
|
+
* It provides a consistent visual style with a subtle border, shadow, and rounded corners.
|
|
315
|
+
*
|
|
316
|
+
* @example
|
|
317
|
+
* ```tsx
|
|
318
|
+
* // Basic card
|
|
319
|
+
* <Card>
|
|
320
|
+
* <CardHeader>
|
|
321
|
+
* <CardTitle>Card Title</CardTitle>
|
|
322
|
+
* <CardDescription>Card Description</CardDescription>
|
|
323
|
+
* </CardHeader>
|
|
324
|
+
* <CardContent>
|
|
325
|
+
* <p>Card content goes here.</p>
|
|
326
|
+
* </CardContent>
|
|
327
|
+
* <CardFooter>
|
|
328
|
+
* <Button>Action</Button>
|
|
329
|
+
* </CardFooter>
|
|
330
|
+
* </Card>
|
|
331
|
+
*
|
|
332
|
+
* // Card with custom styling
|
|
333
|
+
* <Card className="bg-primary text-primary-foreground">
|
|
334
|
+
* <CardHeader>
|
|
335
|
+
* <CardTitle>Custom Styled Card</CardTitle>
|
|
336
|
+
* </CardHeader>
|
|
337
|
+
* <CardContent>
|
|
338
|
+
* <p>This card has custom background and text colors.</p>
|
|
339
|
+
* </CardContent>
|
|
340
|
+
* </Card>
|
|
341
|
+
* ```
|
|
342
|
+
*/
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* The main card container component.
|
|
346
|
+
* Provides the base styling for the card including border, shadow, and rounded corners.
|
|
347
|
+
*/
|
|
348
|
+
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
349
|
+
/**
|
|
350
|
+
* Header section of the card.
|
|
351
|
+
* Typically contains the card title and description.
|
|
352
|
+
* Includes padding and spacing for consistent layout.
|
|
353
|
+
*/
|
|
354
|
+
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
355
|
+
/**
|
|
356
|
+
* Title component for the card.
|
|
357
|
+
* Should be used within CardHeader.
|
|
358
|
+
* Provides consistent typography styling for card titles.
|
|
359
|
+
*/
|
|
360
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
361
|
+
/**
|
|
362
|
+
* Description component for the card.
|
|
363
|
+
* Should be used within CardHeader.
|
|
364
|
+
* Provides consistent typography styling for card descriptions.
|
|
365
|
+
*/
|
|
366
|
+
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
367
|
+
/**
|
|
368
|
+
* Main content section of the card.
|
|
369
|
+
* Includes padding and removes top padding to maintain consistent spacing with the header.
|
|
370
|
+
*/
|
|
371
|
+
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
372
|
+
/**
|
|
373
|
+
* Footer section of the card.
|
|
374
|
+
* Typically contains action buttons or additional information.
|
|
375
|
+
* Includes padding and removes top padding to maintain consistent spacing with the content.
|
|
376
|
+
*/
|
|
377
|
+
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
378
|
+
|
|
379
|
+
declare const Drawer: {
|
|
380
|
+
({ shouldScaleBackground, ...props }: React.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
|
|
381
|
+
displayName: string;
|
|
382
|
+
};
|
|
383
|
+
/**
|
|
384
|
+
* The trigger element that opens the drawer.
|
|
385
|
+
* Should be used with the `asChild` prop to wrap your own trigger element.
|
|
386
|
+
*/
|
|
387
|
+
declare const DrawerTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
388
|
+
/**
|
|
389
|
+
* Portal component that renders the drawer content outside the DOM hierarchy.
|
|
390
|
+
* This ensures proper stacking context and accessibility.
|
|
391
|
+
*/
|
|
392
|
+
declare const DrawerPortal: typeof vaul.Portal;
|
|
393
|
+
/**
|
|
394
|
+
* Close button component for the drawer.
|
|
395
|
+
* Should be used with the `asChild` prop to wrap your own close button.
|
|
396
|
+
*/
|
|
397
|
+
declare const DrawerClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
398
|
+
/**
|
|
399
|
+
* Overlay component that appears behind the drawer.
|
|
400
|
+
* Provides a semi-transparent backdrop and handles click-outside behavior.
|
|
401
|
+
*/
|
|
402
|
+
declare const DrawerOverlay: React.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
403
|
+
/**
|
|
404
|
+
* The main content container for the drawer.
|
|
405
|
+
* Includes the handle bar at the top and manages the slide-up animation.
|
|
406
|
+
*/
|
|
407
|
+
declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
408
|
+
/**
|
|
409
|
+
* Header section of the drawer.
|
|
410
|
+
* Typically contains the title and description.
|
|
411
|
+
*/
|
|
412
|
+
declare const DrawerHeader: {
|
|
413
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
414
|
+
displayName: string;
|
|
415
|
+
};
|
|
416
|
+
/**
|
|
417
|
+
* Footer section of the drawer.
|
|
418
|
+
* Typically contains action buttons.
|
|
419
|
+
*/
|
|
420
|
+
declare const DrawerFooter: {
|
|
421
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
422
|
+
displayName: string;
|
|
423
|
+
};
|
|
424
|
+
/**
|
|
425
|
+
* Title component for the drawer.
|
|
426
|
+
* Should be used within DrawerHeader.
|
|
427
|
+
*/
|
|
428
|
+
declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
429
|
+
/**
|
|
430
|
+
* Description component for the drawer.
|
|
431
|
+
* Should be used within DrawerHeader.
|
|
432
|
+
*/
|
|
433
|
+
declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
434
|
+
|
|
435
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
436
|
+
|
|
437
|
+
export { Box, type BoxProps, Button, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Container, type ContainerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Input, Stack, type StackProps, TextField, buttonVariants, cn, textFieldVariants };
|