@dashx/react 0.4.3 → 0.5.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/CHANGELOG.md +93 -0
- package/README.md +65 -0
- package/dist/cjs/hooks/use-in-app.js +1 -1
- package/dist/cjs/hooks/use-in-app.js.map +3 -3
- package/dist/cjs/providers/DashXProvider.d.ts +1 -1
- package/dist/cjs/providers/DashXProvider.js +1 -1
- package/dist/cjs/providers/DashXProvider.js.map +3 -3
- package/dist/esm/hooks/use-in-app.js +1 -1
- package/dist/esm/hooks/use-in-app.js.map +3 -3
- package/dist/esm/providers/DashXProvider.d.ts +1 -1
- package/dist/esm/providers/DashXProvider.js +1 -1
- package/dist/esm/providers/DashXProvider.js.map +3 -3
- package/package.json +2 -2
- package/src/hooks/use-in-app.ts +35 -9
- package/src/providers/DashXProvider.tsx +46 -2
- package/styles.css +3 -0
- package/dist/cjs/components/popover copy.d.ts +0 -47
- package/dist/cjs/tsconfig.tsbuildinfo +0 -1
- package/dist/cjs/variants/button copy.d.ts +0 -254
- package/dist/esm/components/popover copy.d.ts +0 -47
- package/dist/esm/tsconfig.tsbuildinfo +0 -1
- package/dist/esm/variants/button copy.d.ts +0 -254
|
@@ -1,254 +0,0 @@
|
|
|
1
|
-
import type { VariantProps } from 'tailwind-variants';
|
|
2
|
-
declare const button: import("tailwind-variants").TVReturnType<{
|
|
3
|
-
size: {
|
|
4
|
-
extrasmall: string;
|
|
5
|
-
small: string;
|
|
6
|
-
medium: string;
|
|
7
|
-
large: string;
|
|
8
|
-
extralarge: string;
|
|
9
|
-
};
|
|
10
|
-
variant: {
|
|
11
|
-
fill: string;
|
|
12
|
-
outline: string;
|
|
13
|
-
simple: string;
|
|
14
|
-
ghost: string;
|
|
15
|
-
};
|
|
16
|
-
mode: {
|
|
17
|
-
distinct: string;
|
|
18
|
-
subtle: string;
|
|
19
|
-
negative: string;
|
|
20
|
-
};
|
|
21
|
-
roundness: {};
|
|
22
|
-
elevation: {};
|
|
23
|
-
shape: {
|
|
24
|
-
square: string;
|
|
25
|
-
rect: string;
|
|
26
|
-
};
|
|
27
|
-
inset: {
|
|
28
|
-
left: string;
|
|
29
|
-
right: string;
|
|
30
|
-
both: string;
|
|
31
|
-
};
|
|
32
|
-
}, undefined, "ease-fluid inline-flex items-center justify-center gap-2 outline-none transition-[box-shadow,background-color,color] duration-300 select-none data-[focus-visible]:outline-2 data-[focus-visible]:outline-offset-2 data-[disabled]:pointer-events-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 data-[disabled]:shadow-none", import("tailwind-variants/dist/config.js").TVConfig<{
|
|
33
|
-
size: {
|
|
34
|
-
extrasmall: string;
|
|
35
|
-
small: string;
|
|
36
|
-
medium: string;
|
|
37
|
-
large: string;
|
|
38
|
-
extralarge: string;
|
|
39
|
-
};
|
|
40
|
-
variant: {
|
|
41
|
-
fill: string;
|
|
42
|
-
outline: string;
|
|
43
|
-
simple: string;
|
|
44
|
-
ghost: string;
|
|
45
|
-
};
|
|
46
|
-
mode: {
|
|
47
|
-
distinct: string;
|
|
48
|
-
subtle: string;
|
|
49
|
-
negative: string;
|
|
50
|
-
};
|
|
51
|
-
roundness: {};
|
|
52
|
-
elevation: {};
|
|
53
|
-
shape: {
|
|
54
|
-
square: string;
|
|
55
|
-
rect: string;
|
|
56
|
-
};
|
|
57
|
-
inset: {
|
|
58
|
-
left: string;
|
|
59
|
-
right: string;
|
|
60
|
-
both: string;
|
|
61
|
-
};
|
|
62
|
-
}, {
|
|
63
|
-
size: {
|
|
64
|
-
extrasmall: string;
|
|
65
|
-
small: string;
|
|
66
|
-
medium: string;
|
|
67
|
-
large: string;
|
|
68
|
-
extralarge: string;
|
|
69
|
-
};
|
|
70
|
-
roundness: {
|
|
71
|
-
none: string;
|
|
72
|
-
small: string;
|
|
73
|
-
medium: string;
|
|
74
|
-
large: string;
|
|
75
|
-
full: string;
|
|
76
|
-
};
|
|
77
|
-
elevation: {
|
|
78
|
-
none: string;
|
|
79
|
-
small: string;
|
|
80
|
-
medium: string;
|
|
81
|
-
large: string;
|
|
82
|
-
};
|
|
83
|
-
}>, {
|
|
84
|
-
size: {
|
|
85
|
-
extrasmall: string;
|
|
86
|
-
small: string;
|
|
87
|
-
medium: string;
|
|
88
|
-
large: string;
|
|
89
|
-
extralarge: string;
|
|
90
|
-
};
|
|
91
|
-
roundness: {
|
|
92
|
-
none: string;
|
|
93
|
-
small: string;
|
|
94
|
-
medium: string;
|
|
95
|
-
large: string;
|
|
96
|
-
full: string;
|
|
97
|
-
};
|
|
98
|
-
elevation: {
|
|
99
|
-
none: string;
|
|
100
|
-
small: string;
|
|
101
|
-
medium: string;
|
|
102
|
-
large: string;
|
|
103
|
-
};
|
|
104
|
-
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
105
|
-
size: {
|
|
106
|
-
extrasmall: string;
|
|
107
|
-
small: string;
|
|
108
|
-
medium: string;
|
|
109
|
-
large: string;
|
|
110
|
-
extralarge: string;
|
|
111
|
-
};
|
|
112
|
-
roundness: {
|
|
113
|
-
none: string;
|
|
114
|
-
small: string;
|
|
115
|
-
medium: string;
|
|
116
|
-
large: string;
|
|
117
|
-
full: string;
|
|
118
|
-
};
|
|
119
|
-
elevation: {
|
|
120
|
-
none: string;
|
|
121
|
-
small: string;
|
|
122
|
-
medium: string;
|
|
123
|
-
large: string;
|
|
124
|
-
};
|
|
125
|
-
}, undefined, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
|
|
126
|
-
size: {
|
|
127
|
-
extrasmall: string;
|
|
128
|
-
small: string;
|
|
129
|
-
medium: string;
|
|
130
|
-
large: string;
|
|
131
|
-
extralarge: string;
|
|
132
|
-
};
|
|
133
|
-
roundness: {
|
|
134
|
-
none: string;
|
|
135
|
-
small: string;
|
|
136
|
-
medium: string;
|
|
137
|
-
large: string;
|
|
138
|
-
full: string;
|
|
139
|
-
};
|
|
140
|
-
elevation: {
|
|
141
|
-
none: string;
|
|
142
|
-
small: string;
|
|
143
|
-
medium: string;
|
|
144
|
-
large: string;
|
|
145
|
-
};
|
|
146
|
-
}, {
|
|
147
|
-
size: {
|
|
148
|
-
extrasmall: string;
|
|
149
|
-
small: string;
|
|
150
|
-
medium: string;
|
|
151
|
-
large: string;
|
|
152
|
-
extralarge: string;
|
|
153
|
-
};
|
|
154
|
-
roundness: {
|
|
155
|
-
none: string;
|
|
156
|
-
small: string;
|
|
157
|
-
medium: string;
|
|
158
|
-
large: string;
|
|
159
|
-
full: string;
|
|
160
|
-
};
|
|
161
|
-
elevation: {
|
|
162
|
-
none: string;
|
|
163
|
-
small: string;
|
|
164
|
-
medium: string;
|
|
165
|
-
large: string;
|
|
166
|
-
};
|
|
167
|
-
}>, {
|
|
168
|
-
size: {
|
|
169
|
-
extrasmall: string;
|
|
170
|
-
small: string;
|
|
171
|
-
medium: string;
|
|
172
|
-
large: string;
|
|
173
|
-
extralarge: string;
|
|
174
|
-
};
|
|
175
|
-
roundness: {
|
|
176
|
-
none: string;
|
|
177
|
-
small: string;
|
|
178
|
-
medium: string;
|
|
179
|
-
large: string;
|
|
180
|
-
full: string;
|
|
181
|
-
};
|
|
182
|
-
elevation: {
|
|
183
|
-
none: string;
|
|
184
|
-
small: string;
|
|
185
|
-
medium: string;
|
|
186
|
-
large: string;
|
|
187
|
-
};
|
|
188
|
-
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
189
|
-
size: {
|
|
190
|
-
extrasmall: string;
|
|
191
|
-
small: string;
|
|
192
|
-
medium: string;
|
|
193
|
-
large: string;
|
|
194
|
-
extralarge: string;
|
|
195
|
-
};
|
|
196
|
-
roundness: {
|
|
197
|
-
none: string;
|
|
198
|
-
small: string;
|
|
199
|
-
medium: string;
|
|
200
|
-
large: string;
|
|
201
|
-
full: string;
|
|
202
|
-
};
|
|
203
|
-
elevation: {
|
|
204
|
-
none: string;
|
|
205
|
-
small: string;
|
|
206
|
-
medium: string;
|
|
207
|
-
large: string;
|
|
208
|
-
};
|
|
209
|
-
}, undefined, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
|
|
210
|
-
size: {
|
|
211
|
-
extrasmall: string;
|
|
212
|
-
small: string;
|
|
213
|
-
medium: string;
|
|
214
|
-
large: string;
|
|
215
|
-
extralarge: string;
|
|
216
|
-
};
|
|
217
|
-
roundness: {
|
|
218
|
-
none: string;
|
|
219
|
-
small: string;
|
|
220
|
-
medium: string;
|
|
221
|
-
large: string;
|
|
222
|
-
full: string;
|
|
223
|
-
};
|
|
224
|
-
elevation: {
|
|
225
|
-
none: string;
|
|
226
|
-
small: string;
|
|
227
|
-
medium: string;
|
|
228
|
-
large: string;
|
|
229
|
-
};
|
|
230
|
-
}, {
|
|
231
|
-
size: {
|
|
232
|
-
extrasmall: string;
|
|
233
|
-
small: string;
|
|
234
|
-
medium: string;
|
|
235
|
-
large: string;
|
|
236
|
-
extralarge: string;
|
|
237
|
-
};
|
|
238
|
-
roundness: {
|
|
239
|
-
none: string;
|
|
240
|
-
small: string;
|
|
241
|
-
medium: string;
|
|
242
|
-
large: string;
|
|
243
|
-
full: string;
|
|
244
|
-
};
|
|
245
|
-
elevation: {
|
|
246
|
-
none: string;
|
|
247
|
-
small: string;
|
|
248
|
-
medium: string;
|
|
249
|
-
large: string;
|
|
250
|
-
};
|
|
251
|
-
}>, unknown, unknown, undefined>>>;
|
|
252
|
-
type ButtonVariantProps = VariantProps<typeof button>;
|
|
253
|
-
export type { ButtonVariantProps };
|
|
254
|
-
export { button };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
|
-
import type { PopoverVariantProps } from '../variants/popover.js';
|
|
4
|
-
interface PopoverRootProps extends React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root> {
|
|
5
|
-
}
|
|
6
|
-
declare const PopoverRoot: React.FC<PopoverRootProps>;
|
|
7
|
-
interface PopoverTriggerProps extends React.PropsWithChildren<{}> {
|
|
8
|
-
}
|
|
9
|
-
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
-
interface PopoverContentProps extends React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>, React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Portal>, PopoverVariantProps {
|
|
11
|
-
maxWidth?: number | string;
|
|
12
|
-
minWidth?: number | string;
|
|
13
|
-
width?: number | string;
|
|
14
|
-
maxHeight?: number | string;
|
|
15
|
-
minHeight?: number | string;
|
|
16
|
-
height?: number | string;
|
|
17
|
-
}
|
|
18
|
-
declare const PopoverContent: React.ForwardRefExoticComponent<PopoverContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
-
type PopoverBodyProps = React.PropsWithChildren<{
|
|
20
|
-
asChild?: boolean;
|
|
21
|
-
}>;
|
|
22
|
-
declare const PopoverBody: React.ForwardRefExoticComponent<{
|
|
23
|
-
asChild?: boolean;
|
|
24
|
-
} & {
|
|
25
|
-
children?: React.ReactNode | undefined;
|
|
26
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
-
type PopoverHeaderProps = React.PropsWithChildren<{
|
|
28
|
-
asChild?: boolean;
|
|
29
|
-
}>;
|
|
30
|
-
declare const PopoverHeader: React.ForwardRefExoticComponent<{
|
|
31
|
-
asChild?: boolean;
|
|
32
|
-
} & {
|
|
33
|
-
children?: React.ReactNode | undefined;
|
|
34
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
35
|
-
type PopoverFooterProps = React.PropsWithChildren<{
|
|
36
|
-
asChild?: boolean;
|
|
37
|
-
}>;
|
|
38
|
-
declare const PopoverFooter: React.ForwardRefExoticComponent<{
|
|
39
|
-
asChild?: boolean;
|
|
40
|
-
} & {
|
|
41
|
-
children?: React.ReactNode | undefined;
|
|
42
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
-
interface PopoverCloseProps extends React.PropsWithChildren<{}> {
|
|
44
|
-
}
|
|
45
|
-
declare const PopoverClose: React.ForwardRefExoticComponent<PopoverCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
46
|
-
export { PopoverRoot as Root, PopoverContent as Content, PopoverBody as Body, PopoverHeader as Header, PopoverFooter as Footer, PopoverTrigger as Trigger, PopoverClose as Close, };
|
|
47
|
-
export type { PopoverRootProps as RootProps, PopoverContentProps as ContentProps, PopoverBodyProps as BodyProps, PopoverHeaderProps as HeaderProps, PopoverFooterProps as FooterProps, PopoverTriggerProps as TriggerProps, PopoverCloseProps as CloseProps, };
|