@machinerd/js-module 0.3.1 → 0.4.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/README.md +147 -21
- package/dist/hooks/index.cjs +1 -1
- package/dist/hooks/index.d.cts +3 -18
- package/dist/hooks/index.d.mts +3 -18
- package/dist/hooks/index.mjs +1 -1
- package/dist/hooks-BDwkyixK.mjs +1 -0
- package/dist/hooks-D1JcFVTH.cjs +1 -0
- package/dist/index-CWgr7lXX.d.cts +661 -0
- package/dist/index-CfKO4Lbp.d.mts +661 -0
- package/dist/index-DiZ4xS_f.d.mts +37 -0
- package/dist/index-OjfbEYpE.d.cts +37 -0
- package/dist/index.d.cts +1 -36
- package/dist/index.d.mts +1 -36
- package/dist/skeleton-B1Jzl0cz.cjs +1 -0
- package/dist/skeleton-NTpsm0XR.mjs +1 -0
- package/dist/styles/index.css +331 -189
- package/dist/ui/index.cjs +1 -1
- package/dist/ui/index.d.cts +40 -272
- package/dist/ui/index.d.mts +43 -275
- package/dist/ui/index.mjs +1 -1
- package/dist/ui-client/index.cjs +1 -0
- package/dist/ui-client/index.d.cts +158 -0
- package/dist/ui-client/index.d.mts +158 -0
- package/dist/ui-client/index.mjs +1 -0
- package/dist/util/index.cjs +1 -1
- package/dist/util/index.d.cts +32 -22
- package/dist/util/index.d.mts +31 -22
- package/dist/util/index.mjs +1 -1
- package/dist/util-1BLWEgZB.cjs +1 -0
- package/dist/util-Dtb82Us1.mjs +1 -0
- package/package.json +6 -4
- package/dist/hooks-C9M3V-Pb.mjs +0 -1
- package/dist/hooks-DPYIex_y.cjs +0 -1
- package/dist/ui/client-only/index.cjs +0 -1
- package/dist/ui/client-only/index.d.cts +0 -136
- package/dist/ui/client-only/index.d.mts +0 -136
- package/dist/ui/client-only/index.mjs +0 -1
- package/dist/util-BrmjOcya.mjs +0 -1
- package/dist/util-CDkao6z3.cjs +0 -1
package/dist/ui/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import React$1, { HTMLAttributes } from "react";
|
|
3
|
-
import * as
|
|
1
|
+
import * as react7 from "react";
|
|
2
|
+
import React$1, { ComponentProps, HTMLAttributes } from "react";
|
|
3
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
5
|
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
6
6
|
|
|
@@ -9,10 +9,6 @@ interface BottomAppBarProps<T> extends React$1.HTMLAttributes<HTMLElement> {
|
|
|
9
9
|
items: T[];
|
|
10
10
|
render: (item: T) => React$1.ReactNode;
|
|
11
11
|
}
|
|
12
|
-
/**
|
|
13
|
-
* @param items - Items to render
|
|
14
|
-
* @param render - Render function
|
|
15
|
-
*/
|
|
16
12
|
declare function BottomAppBar<T>({
|
|
17
13
|
className,
|
|
18
14
|
items,
|
|
@@ -21,107 +17,48 @@ declare function BottomAppBar<T>({
|
|
|
21
17
|
}: BottomAppBarProps<T>): React$1.ReactNode;
|
|
22
18
|
//#endregion
|
|
23
19
|
//#region src/ui/button/button.d.ts
|
|
24
|
-
declare const classes$
|
|
25
|
-
size?: "
|
|
26
|
-
shadow?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" |
|
|
20
|
+
declare const classes$2: (props?: ({
|
|
21
|
+
size?: "sm" | "md" | "lg" | "xl" | "2xl" | "xxs" | "xs" | "3xl" | "4xl" | null | undefined;
|
|
22
|
+
shadow?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | null | undefined;
|
|
27
23
|
outline?: "line" | "solid" | "clear" | null | undefined;
|
|
28
24
|
variant?: "blue" | "duo" | "white" | "gray" | "neutral" | "night" | "black" | "sky" | "sky-blue" | "indigo" | null | undefined;
|
|
29
|
-
px?: "
|
|
30
|
-
rounded?: "sm" | "md" | "lg" | "xl" | "2xl" | "
|
|
25
|
+
px?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "xs" | "3xl" | "4xl" | null | undefined;
|
|
26
|
+
rounded?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "full" | "3xl" | null | undefined;
|
|
31
27
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
32
28
|
interface VariantMap {
|
|
33
29
|
line: 'blue' | 'duo' | 'white' | 'gray' | 'neutral' | 'sky' | 'sky-blue';
|
|
34
30
|
solid: 'white' | 'gray' | 'blue' | 'night' | 'black' | 'sky' | 'sky-blue' | 'indigo';
|
|
35
31
|
clear: 'sky' | 'gray';
|
|
36
32
|
}
|
|
37
|
-
type BaseProps = Omit<VariantProps<typeof classes$
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
* - gray
|
|
52
|
-
* - neutral
|
|
53
|
-
* - sky
|
|
54
|
-
* - sky-blue
|
|
55
|
-
* @property solid
|
|
56
|
-
* - white
|
|
57
|
-
* - gray
|
|
58
|
-
* - blue
|
|
59
|
-
* - night
|
|
60
|
-
* - black
|
|
61
|
-
* - sky
|
|
62
|
-
* - sky-blue
|
|
63
|
-
* - indigo
|
|
64
|
-
* @property clear
|
|
65
|
-
* - sky
|
|
66
|
-
* - gray
|
|
67
|
-
* @param px
|
|
68
|
-
* @property
|
|
69
|
-
* - none - px-0
|
|
70
|
-
* - xs - px-0.5
|
|
71
|
-
* - sm - px-1
|
|
72
|
-
* - md - px-1.5
|
|
73
|
-
* - lg - px-2
|
|
74
|
-
* - xl - px-3
|
|
75
|
-
* - 2xl - px-4
|
|
76
|
-
* - 3xl - px-5
|
|
77
|
-
* - 4xl - px-6
|
|
78
|
-
* @param rounded
|
|
79
|
-
* @property
|
|
80
|
-
* - none - rounded-none
|
|
81
|
-
* - sm - rounded-sm
|
|
82
|
-
* - md - rounded-md
|
|
83
|
-
* - lg - rounded-lg
|
|
84
|
-
* - xl - rounded-xl
|
|
85
|
-
* - 2xl - rounded-2xl
|
|
86
|
-
* - 3xl - rounded-3xl
|
|
87
|
-
* - full - rounded-full
|
|
88
|
-
* @param size
|
|
89
|
-
* @property
|
|
90
|
-
* - xxs - h-7.5
|
|
91
|
-
* - xs - h-8
|
|
92
|
-
* - sm - h-9
|
|
93
|
-
* - md - h-10
|
|
94
|
-
* - lg - h-11
|
|
95
|
-
* - xl - h-12
|
|
96
|
-
* - 2xl - h-13
|
|
97
|
-
* - 3xl - h-14
|
|
98
|
-
* - 4xl - h-15
|
|
99
|
-
* @param shadow
|
|
100
|
-
* @property
|
|
101
|
-
* - none
|
|
102
|
-
* - sm
|
|
103
|
-
* - md
|
|
104
|
-
* - lg
|
|
105
|
-
* - xl
|
|
106
|
-
* - 2xl
|
|
107
|
-
* - 3xl
|
|
108
|
-
*/
|
|
109
|
-
declare const Button: react1.ForwardRefExoticComponent<(Omit<react1.ClassAttributes<HTMLButtonElement> & react1.ButtonHTMLAttributes<HTMLButtonElement> & BaseProps & {
|
|
33
|
+
type BaseProps = Omit<VariantProps<typeof classes$2>, 'outline' | 'variant'>;
|
|
34
|
+
type ButtonProps = ComponentProps<'button'> & BaseProps & ({
|
|
35
|
+
outline?: 'line';
|
|
36
|
+
variant?: VariantMap['line'];
|
|
37
|
+
} | {
|
|
38
|
+
outline: 'solid';
|
|
39
|
+
variant?: VariantMap['solid'];
|
|
40
|
+
} | {
|
|
41
|
+
outline: 'clear';
|
|
42
|
+
variant?: VariantMap['clear'];
|
|
43
|
+
}) & {
|
|
44
|
+
asChild?: boolean;
|
|
45
|
+
};
|
|
46
|
+
declare const Button: react7.ForwardRefExoticComponent<(Omit<react7.ClassAttributes<HTMLButtonElement> & react7.ButtonHTMLAttributes<HTMLButtonElement> & BaseProps & {
|
|
110
47
|
outline?: "line";
|
|
111
48
|
variant?: VariantMap["line"];
|
|
112
49
|
} & {
|
|
113
50
|
asChild?: boolean;
|
|
114
|
-
}, "ref"> | Omit<
|
|
51
|
+
}, "ref"> | Omit<react7.ClassAttributes<HTMLButtonElement> & react7.ButtonHTMLAttributes<HTMLButtonElement> & BaseProps & {
|
|
115
52
|
outline: "solid";
|
|
116
53
|
variant?: VariantMap["solid"];
|
|
117
54
|
} & {
|
|
118
55
|
asChild?: boolean;
|
|
119
|
-
}, "ref"> | Omit<
|
|
56
|
+
}, "ref"> | Omit<react7.ClassAttributes<HTMLButtonElement> & react7.ButtonHTMLAttributes<HTMLButtonElement> & BaseProps & {
|
|
120
57
|
outline: "clear";
|
|
121
58
|
variant?: VariantMap["clear"];
|
|
122
59
|
} & {
|
|
123
60
|
asChild?: boolean;
|
|
124
|
-
}, "ref">) &
|
|
61
|
+
}, "ref">) & react7.RefAttributes<HTMLButtonElement>>;
|
|
125
62
|
//#endregion
|
|
126
63
|
//#region src/ui/conditional-wrapper/conditional-wrapper.d.ts
|
|
127
64
|
interface ConditionalWrapperProps {
|
|
@@ -129,218 +66,40 @@ interface ConditionalWrapperProps {
|
|
|
129
66
|
wrapper: (children: React.ReactNode) => React.ReactNode;
|
|
130
67
|
children: React.ReactNode;
|
|
131
68
|
}
|
|
132
|
-
/**
|
|
133
|
-
* @param condition - Condition to wrap the children
|
|
134
|
-
* @param wrapper - Wrapper function
|
|
135
|
-
* @param children - Children to wrap
|
|
136
|
-
*/
|
|
137
69
|
declare function ConditionalWrapper({
|
|
138
70
|
condition,
|
|
139
71
|
wrapper,
|
|
140
72
|
children
|
|
141
|
-
}: ConditionalWrapperProps):
|
|
142
|
-
//#endregion
|
|
143
|
-
//#region src/ui/footer/footer.d.ts
|
|
144
|
-
declare const classes$3: (props?: ({
|
|
145
|
-
maxWidth?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | "4xl" | "5xl" | "6xl" | "7xl" | null | undefined;
|
|
146
|
-
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
147
|
-
interface FooterProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof classes$3> {
|
|
148
|
-
/**
|
|
149
|
-
* @param maxWidth - Maximum width of the footer
|
|
150
|
-
* @default full
|
|
151
|
-
* @property
|
|
152
|
-
* - none: 0
|
|
153
|
-
* - xs: 320px
|
|
154
|
-
* - sm: 384px
|
|
155
|
-
* - md: 448px
|
|
156
|
-
* - lg: 512px
|
|
157
|
-
* - xl: 576px
|
|
158
|
-
* - 2xl: 672px
|
|
159
|
-
* - 3xl: 768px
|
|
160
|
-
* - 4xl: 896px
|
|
161
|
-
* - 5xl: 1024px
|
|
162
|
-
* - 6xl: 1152px
|
|
163
|
-
* - 7xl: 1280px
|
|
164
|
-
* - full: 100%
|
|
165
|
-
*/
|
|
166
|
-
maxWidth?: VariantProps<typeof classes$3>['maxWidth'];
|
|
167
|
-
}
|
|
168
|
-
declare function Footer({
|
|
169
|
-
className,
|
|
170
|
-
children,
|
|
171
|
-
maxWidth,
|
|
172
|
-
...props
|
|
173
|
-
}: FooterProps): react_jsx_runtime5.JSX.Element;
|
|
174
|
-
//#endregion
|
|
175
|
-
//#region src/ui/header/header.d.ts
|
|
176
|
-
declare const classes$2: (props?: ({
|
|
177
|
-
maxWidth?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | "none" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | null | undefined;
|
|
178
|
-
size?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "4.25xl" | null | undefined;
|
|
179
|
-
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
180
|
-
interface HeaderProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof classes$2> {
|
|
181
|
-
children?: React.ReactNode;
|
|
182
|
-
/**
|
|
183
|
-
* @param maxWidth - Maximum width of the header
|
|
184
|
-
* @default full
|
|
185
|
-
* @property
|
|
186
|
-
* - none: 0
|
|
187
|
-
* - xs: 320px
|
|
188
|
-
* - sm: 384px
|
|
189
|
-
* - md: 448px
|
|
190
|
-
* - lg: 512px
|
|
191
|
-
* - xl: 576px
|
|
192
|
-
* - 2xl: 672px
|
|
193
|
-
* - 3xl: 768px
|
|
194
|
-
* - 4xl: 896px
|
|
195
|
-
* - 5xl: 1024px
|
|
196
|
-
* - 6xl: 1152px
|
|
197
|
-
* - 7xl: 1280px
|
|
198
|
-
* - 8xl: 1320px
|
|
199
|
-
* - full: 100%
|
|
200
|
-
*/
|
|
201
|
-
maxWidth?: VariantProps<typeof classes$2>['maxWidth'];
|
|
202
|
-
/**
|
|
203
|
-
* @param size - Size of the header
|
|
204
|
-
* @default xl
|
|
205
|
-
* @property
|
|
206
|
-
* - sm: 40px
|
|
207
|
-
* - md: 48px
|
|
208
|
-
* - lg: 56px
|
|
209
|
-
* - xl: 64px
|
|
210
|
-
* - 2xl: 72px
|
|
211
|
-
* - 3xl: 88px
|
|
212
|
-
* - 4xl: 80px
|
|
213
|
-
* - 4.25xl: 90px
|
|
214
|
-
* - 5xl: 96px
|
|
215
|
-
* - 6xl: 104px
|
|
216
|
-
* - 7xl: 112px
|
|
217
|
-
* - 8xl: 120px
|
|
218
|
-
* - full: 100%
|
|
219
|
-
*/
|
|
220
|
-
size?: VariantProps<typeof classes$2>['size'];
|
|
221
|
-
}
|
|
222
|
-
declare function Header({
|
|
223
|
-
children,
|
|
224
|
-
maxWidth,
|
|
225
|
-
size,
|
|
226
|
-
className,
|
|
227
|
-
...props
|
|
228
|
-
}: HeaderProps): react_jsx_runtime5.JSX.Element;
|
|
73
|
+
}: ConditionalWrapperProps): react7.ReactNode;
|
|
229
74
|
//#endregion
|
|
230
75
|
//#region src/ui/input/input.d.ts
|
|
231
76
|
declare const classes$1: (props?: ({
|
|
232
|
-
size?: "
|
|
233
|
-
gap?: "
|
|
77
|
+
size?: "sm" | "md" | "lg" | "xl" | "2xl" | "base" | "xs" | "3xl" | null | undefined;
|
|
78
|
+
gap?: "none" | "sm" | "md" | "lg" | "xl" | "xs" | null | undefined;
|
|
234
79
|
outline?: "line" | "solid" | "clear" | "dashed" | "dotted" | null | undefined;
|
|
235
|
-
rounded?: "sm" | "md" | "lg" | "xl" | "2xl" |
|
|
80
|
+
rounded?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
|
|
236
81
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
237
82
|
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'prefix' | 'surffix' | 'size'>, VariantProps<typeof classes$1> {
|
|
238
|
-
/**
|
|
239
|
-
* @param size - Height of the input
|
|
240
|
-
* @default lg - 44px
|
|
241
|
-
* @property
|
|
242
|
-
* - xs: 30px
|
|
243
|
-
* - sm: 32px
|
|
244
|
-
* - base: 36px
|
|
245
|
-
* - md: 40px
|
|
246
|
-
* - lg: 44px
|
|
247
|
-
* - xl: 48px
|
|
248
|
-
* - 2xl: 52px
|
|
249
|
-
* - 3xl: 56px
|
|
250
|
-
*/
|
|
251
83
|
size?: VariantProps<typeof classes$1>['size'];
|
|
252
|
-
/**
|
|
253
|
-
* @param gap - Gap between the input and the prefix/suffix
|
|
254
|
-
* @default xl - 20px
|
|
255
|
-
* @property
|
|
256
|
-
* - none: 0
|
|
257
|
-
* - xs: 4px
|
|
258
|
-
* - sm: 8px
|
|
259
|
-
* - md: 12px
|
|
260
|
-
* - lg: 16px
|
|
261
|
-
* - xl: 20px
|
|
262
|
-
*/
|
|
263
84
|
gap?: VariantProps<typeof classes$1>['gap'];
|
|
264
85
|
outline?: VariantProps<typeof classes$1>['outline'];
|
|
265
|
-
/**
|
|
266
|
-
* @param rounded - Border radius of the input
|
|
267
|
-
* @default lg
|
|
268
|
-
* @property
|
|
269
|
-
* - none: 0
|
|
270
|
-
* - sm: 2px
|
|
271
|
-
* - md: 6px
|
|
272
|
-
* - lg: 8px
|
|
273
|
-
* - xl: 12px
|
|
274
|
-
* - 2xl: 16px
|
|
275
|
-
*/
|
|
276
86
|
rounded?: VariantProps<typeof classes$1>['rounded'];
|
|
277
87
|
prefix?: React.ReactNode;
|
|
278
88
|
surffix?: React.ReactNode;
|
|
279
89
|
}
|
|
280
|
-
|
|
281
|
-
* @param prefix - Prefix of the input
|
|
282
|
-
* @param surffix - Surffix of the input
|
|
283
|
-
* @param size - Size of the input
|
|
284
|
-
* @param gap - Gap between the input and the prefix/suffix
|
|
285
|
-
* @param outline - Outline of the input
|
|
286
|
-
* @param rounded - Border radius of the input
|
|
287
|
-
*/
|
|
288
|
-
declare const Input: react1.ForwardRefExoticComponent<InputProps & react1.RefAttributes<HTMLInputElement>>;
|
|
90
|
+
declare const Input: react7.ForwardRefExoticComponent<InputProps & react7.RefAttributes<HTMLInputElement>>;
|
|
289
91
|
//#endregion
|
|
290
92
|
//#region src/ui/skeleton/skeleton.d.ts
|
|
291
93
|
declare const classes: (props?: ({
|
|
292
|
-
size?: "
|
|
293
|
-
rounded?: "sm" | "md" | "lg" | "xl" | "2xl" | "
|
|
94
|
+
size?: "sm" | "md" | "lg" | "xl" | "2xl" | "full" | "xs" | "3xl" | "square" | null | undefined;
|
|
95
|
+
rounded?: "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "full" | "3xl" | null | undefined;
|
|
294
96
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
295
97
|
interface SkeletonProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof classes> {
|
|
296
|
-
/**
|
|
297
|
-
* @param width - Width of the skeleton
|
|
298
|
-
* @description string or number, number unit is px
|
|
299
|
-
* @default 100
|
|
300
|
-
*/
|
|
301
98
|
width?: string | number;
|
|
302
|
-
/**
|
|
303
|
-
* @param height - Height of the skeleton
|
|
304
|
-
* @description string or number, number unit is px
|
|
305
|
-
* @default 100
|
|
306
|
-
*/
|
|
307
99
|
height?: string | number;
|
|
308
|
-
/**
|
|
309
|
-
* @param size - Size of the skeleton (height)
|
|
310
|
-
* @default sm
|
|
311
|
-
* @property
|
|
312
|
-
* - xs: 4px
|
|
313
|
-
* - sm: 8px
|
|
314
|
-
* - md: 12px
|
|
315
|
-
* - lg: 16px
|
|
316
|
-
* - xl: 20px
|
|
317
|
-
* - 2xl: 24px
|
|
318
|
-
* - 3xl: 28px
|
|
319
|
-
* - square: 100%
|
|
320
|
-
* - full: 100%
|
|
321
|
-
*/
|
|
322
100
|
size?: VariantProps<typeof classes>['size'];
|
|
323
|
-
/**
|
|
324
|
-
* @param rounded - Rounded of the skeleton
|
|
325
|
-
* @default sm
|
|
326
|
-
* @property
|
|
327
|
-
* - none: 0
|
|
328
|
-
* - sm: 2px
|
|
329
|
-
* - md: 6px
|
|
330
|
-
* - lg: 8px
|
|
331
|
-
* - xl: 12px
|
|
332
|
-
* - 2xl: 16px
|
|
333
|
-
* - 3xl: 20px
|
|
334
|
-
* - full: 100%
|
|
335
|
-
*/
|
|
336
101
|
rounded?: VariantProps<typeof classes>['rounded'];
|
|
337
102
|
}
|
|
338
|
-
/**
|
|
339
|
-
* @param size - Size of the skeleton (height)
|
|
340
|
-
* @param rounded - Rounded of the skeleton
|
|
341
|
-
* @param width - Width of the skeleton
|
|
342
|
-
* @param height - Height of the skeleton
|
|
343
|
-
*/
|
|
344
103
|
declare function Skeleton({
|
|
345
104
|
size,
|
|
346
105
|
rounded,
|
|
@@ -348,6 +107,15 @@ declare function Skeleton({
|
|
|
348
107
|
height,
|
|
349
108
|
className,
|
|
350
109
|
...props
|
|
351
|
-
}: SkeletonProps):
|
|
110
|
+
}: SkeletonProps): react_jsx_runtime6.JSX.Element;
|
|
111
|
+
//#endregion
|
|
112
|
+
//#region src/ui/stable-text/stable-text.d.ts
|
|
113
|
+
declare function StableText({
|
|
114
|
+
children,
|
|
115
|
+
className,
|
|
116
|
+
...props
|
|
117
|
+
}: Omit<HTMLAttributes<HTMLSpanElement>, 'children'> & {
|
|
118
|
+
children: string | number;
|
|
119
|
+
}): react_jsx_runtime6.JSX.Element;
|
|
352
120
|
//#endregion
|
|
353
|
-
export { BottomAppBar, type BottomAppBarProps, Button,
|
|
121
|
+
export { BottomAppBar, type BottomAppBarProps, Button, type ButtonProps, ConditionalWrapper, type ConditionalWrapperProps, Input, type InputProps, Skeleton, type SkeletonProps, StableText };
|
package/dist/ui/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as e}from"../util-BrmjOcya.mjs";import t from"clsx";import n,{forwardRef as r}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";import{cva as o}from"class-variance-authority";import{Slot as s}from"@radix-ui/react-slot";function c({className:e,items:r,render:a,...o}){return i(`nav`,{"data-komc":!0,className:t(`komc:fixed komc:bottom-0 komc:left-0 komc:right-0`,`komc:border-t komc:border-neutral-200 komc:bg-white komc:z-10`,e),...o,children:i(`div`,{className:`komc:grid komc:min-h-15`,style:{gridTemplateColumns:`repeat(${r.length}, 1fr)`},children:r.map((e,t)=>i(n.Fragment,{children:a(e)},t))})})}const l=o(e(`komc:flex komc:justify-center komc:items-center komc:gap-x-2 komc:w-full`,`komc:transition-colors komc:duration-200 komc:relative`,`komc:[&_svg]:transition-colors komc:[&_svg]:duration-200`,`komc:cursor-pointer komc:disabled:cursor-default`),{variants:{size:{xxs:`komc:h-7.5`,xs:`komc:h-8`,sm:`komc:h-9`,md:`komc:h-10`,lg:`komc:h-11`,xl:`komc:h-12`,"2xl":`komc:h-13`,"3xl":`komc:h-14`,"4xl":`komc:h-15`},shadow:{none:``,sm:`komc:drop-shadow-sm`,md:`komc:drop-shadow-md`,lg:`komc:drop-shadow-lg`,xl:`komc:drop-shadow-xl`,"2xl":`komc:drop-shadow-2xl`,"3xl":`komc:drop-shadow-3xl`},outline:{line:`komc:border`,solid:`komc:border komc:border-transparent`,clear:`komc:border-none`},variant:{blue:``,duo:``,white:``,gray:``,neutral:``,night:``,black:``,sky:``,"sky-blue":``,indigo:``},px:{none:`komc:px-0`,xs:`komc:px-0.5`,sm:`komc:px-1`,md:`komc:px-1.5`,lg:`komc:px-2`,xl:`komc:px-3`,"2xl":`komc:px-4`,"3xl":`komc:px-5`,"4xl":`komc:px-6`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`,"3xl":`komc:rounded-3xl`,full:`komc:rounded-full`}},compoundVariants:[{outline:`line`,variant:`blue`,className:e(`komc:border-blue-500 komc:bg-white komc:text-blue-500`,`komc:hover:border-transparent komc:hover:bg-blue-500 komc:hover:text-white`,`komc:active:border-transparent komc:active:bg-blue-500 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`duo`,className:e(`komc:border-blue-500 komc:bg-white komc:text-brand-blck`,`komc:hover:border-transparent komc:hover:bg-blue-500 komc:hover:text-white`,`komc:active:border-transparent komc:active:bg-blue-500 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`white`,className:e(`komc:border-gray-600 komc:bg-white komc:text-brand-blck`,`komc:hover:bg-gray-200 komc:hover:text-brand-blck`,`komc:active:bg-gray-200 komc:active:text-brand-blck`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`gray`,className:e(`komc:border-white komc:bg-transparent komc:text-white`,`komc:hover:bg-[rgb(199,199,199)] komc:hover:text-white`,`komc:active:bg-[rgb(199,199,199)] komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`neutral`,className:e(`komc:border-gray-800 komc:bg-transparent komc:text-black`,`komc:hover:bg-gray-200 komc:hover:text-black`,`komc:active:bg-gray-200 komc:active:text-black`,`komc:disabled:border-gray-500 komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`line`,variant:`sky`,className:e(`komc:border-sky-750 komc:bg-transparent komc:text-black`,`komc:hover:bg-sky-750 komc:hover:text-white`,`komc:active:bg-sky-750 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`line`,variant:`sky-blue`,className:e(`komc:border-sky-450 komc:bg-transparent komc:text-black`,`komc:hover:bg-sky-450 komc:hover:text-white`,`komc:active:bg-sky-450 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`solid`,variant:`white`,className:e(`komc:bg-white komc:text-brand-blck`,`komc:hover:bg-gray-200`,`komc:active:bg-gray-200`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`gray`,className:e(`komc:bg-gray-100 komc:text-blue-500`,`komc:hover:bg-blue-500 komc:hover:text-white`,`komc:active:bg-blue-500 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`blue`,className:e(`komc:bg-blue-500 komc:text-white`,`komc:hover:bg-night-700 komc:hover:text-white`,`komc:active:bg-night-700 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`night`,className:e(`komc:bg-night-700 komc:text-white`,`komc:hover:bg-night-800 komc:hover:text-white`,`komc:active:bg-night-800 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`black`,className:e(`komc:bg-[rgb(95,95,96)] komc:text-white`,`komc:hover:bg-[rgb(76,76,77)] komc:hover:text-white`,`komc:active:bg-[rgb(76,76,77)] komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`sky`,className:e(`komc:bg-sky-750 komc:text-white`,`komc:hover:bg-sky-950 komc:hover:text-white`,`komc:active:bg-sky-950 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-700`)},{outline:`solid`,variant:`sky-blue`,className:e(`komc:bg-sky-450 komc:text-white`,`komc:hover:bg-sky-650 komc:hover:text-white`,`komc:active:bg-sky-650 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-700`)},{outline:`solid`,variant:`indigo`,className:e(`komc:bg-indigo-600 komc:text-white`,`komc:hover:bg-indigo-700 komc:hover:text-white`,`komc:active:bg-indigo-700 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-700`)},{outline:`clear`,variant:`sky`,className:e(`komc:bg-transparent komc:text-[#1890FF]`,`komc:hover:bg-transparent komc:hover:text-[#1890FF] komc:hover:underline`,`komc:active:bg-transparent komc:active:text-[#1890FF] komc:active:underline`,`komc:disabled:border-transparent komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`clear`,variant:`gray`,className:e(`komc:bg-transparent komc:text-gray-800`,`komc:hover:bg-transparent komc:hover:text-gray-800 komc:hover:underline`,`komc:active:bg-transparent komc:active:text-gray-800 komc:active:underline`,`komc:disabled:border-transparent komc:disabled:bg-transparent komc:disabled:text-gray-500`)}],defaultVariants:{size:`md`,shadow:`none`,outline:`line`,variant:`blue`,px:`2xl`,rounded:`sm`}});var u=r(({type:e=`button`,className:t,id:n,size:r,shadow:a,outline:o,variant:c,px:u,rounded:d,asChild:f,...p},m)=>i(f?s:`button`,{ref:m,...p,type:e,id:n,className:l({size:r,shadow:a,outline:o,variant:c,px:u,rounded:d,className:t})}));function d({condition:e,wrapper:t,children:n}){return e?t(n):n}const f=o(`komc:flex komc:flex-col komc:w-full komc:mx-auto`,{variants:{maxWidth:{none:``,xs:`komc:max-w-xs`,sm:`komc:max-w-sm`,md:`komc:max-w-md`,lg:`komc:max-w-lg`,xl:`komc:max-w-xl`,"2xl":`komc:max-w-2xl`,"3xl":`komc:max-w-3xl`,"4xl":`komc:max-w-4xl`,"5xl":`komc:max-w-5xl`,"6xl":`komc:max-w-6xl`,"7xl":`komc:max-w-7xl`,full:`komc:max-w-full`}},defaultVariants:{maxWidth:`full`}});function p({className:e,children:n,maxWidth:r,...a}){return i(`footer`,{"data-komc":!0,className:t(`komc:block komc:w-full komc:h-full`,`komc:border-t komc:border-neutral-200`,e),...a,children:i(`div`,{className:f({maxWidth:r}),children:n})})}const m=o(e(`komc:flex komc:items-center`,`komc:mx-auto komc:min-h-10`),{variants:{maxWidth:{none:``,sm:`komc:max-w-sm`,md:`komc:max-w-md`,lg:`komc:max-w-lg`,xl:`komc:max-w-xl`,"2xl":`komc:max-w-2xl`,"3xl":`komc:max-w-3xl`,"4xl":`komc:max-w-4xl`,"5xl":`komc:max-w-5xl`,"6xl":`komc:max-w-6xl`,"7xl":`komc:max-w-7xl`,"8xl":`komc:max-w-330`,full:`komc:max-w-full`},size:{sm:`komc:h-10`,md:`komc:h-12`,lg:`komc:h-14`,xl:`komc:h-16`,"2xl":`komc:h-18`,"3xl":`komc:h-20`,"4xl":`komc:h-22`,"4.25xl":`komc:h-22.5`,"5xl":`komc:h-24`,"6xl":`komc:h-26`,"7xl":`komc:h-28`,"8xl":`komc:h-30`,full:`komc:h-full`}},defaultVariants:{maxWidth:`full`,size:`xl`}});function h({children:e,maxWidth:n,size:r,className:a,...o}){return i(`header`,{"data-komc":!0,className:t(`komc:w-full komc:sticky komc:top-0 komc:z-1000`,`komc:transition-all komc:duration-200`,a),...o,children:i(`div`,{className:m({maxWidth:n,size:r}),children:e})})}const g=o(e(`komc:flex komc:items-center komc:w-full komc:px-2`,`komc:[&>input]:outline-none komc:[&>input]:w-full`,`komc:[&>input]:focus:ring-0 komc:[&>input]:focus:ring-offset-0`,`komc:[&>input]:h-full`),{variants:{size:{xs:`komc:h-7.5`,sm:`komc:h-8`,base:`komc:h-9`,md:`komc:h-10`,lg:`komc:h-11`,xl:`komc:h-12`,"2xl":`komc:h-13`,"3xl":`komc:h-14`},gap:{none:`komc:gap-0`,xs:`komc:gap-1`,sm:`komc:gap-2`,md:`komc:gap-3`,lg:`komc:gap-4`,xl:`komc:gap-5`},outline:{line:`komc:border`,solid:`komc:border-transparent`,clear:`komc:border-none`,dashed:`komc:border-dashed`,dotted:`komc:border-dotted`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`}}});var _=r(({prefix:e=null,surffix:t=null,size:n=`lg`,gap:r=`xl`,outline:o=`line`,rounded:s=`lg`,className:c,...l},u)=>a(`div`,{"data-komc":!0,className:g({size:n,gap:r,outline:o,rounded:s,className:c}),children:[e,i(`input`,{ref:u,type:`text`,...l}),t]}));const v=o(e(`komc:w-full komc:animate-pulse komc:bg-gray-200`),{variants:{size:{xs:`komc:h-4`,sm:`komc:h-8`,md:`komc:h-12`,lg:`komc:h-16`,xl:`komc:h-20`,"2xl":`komc:h-24`,"3xl":`komc:h-28`,square:`komc:h-auto komc:aspect-square`,full:`komc:h-full`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`,"3xl":`komc:rounded-3xl`,full:`komc:rounded-full`}},defaultVariants:{size:`sm`,rounded:`sm`}});function y({size:e,rounded:t,width:n,height:r,className:a,...o}){let s=n?typeof n==`string`?n:`${n}px`:void 0,c=r?typeof r==`string`?r:`${r}px`:void 0;return i(`div`,{"data-komc":!0,className:v({size:e,rounded:t,className:a}),style:{width:s,height:c},...o})}export{c as BottomAppBar,u as Button,d as ConditionalWrapper,p as Footer,h as Header,_ as Input,y as Skeleton};
|
|
1
|
+
import{y as e}from"../util-Dtb82Us1.mjs";import{t}from"../skeleton-NTpsm0XR.mjs";import n from"clsx";import r,{forwardRef as i}from"react";import{jsx as a,jsxs as o}from"react/jsx-runtime";import{cva as s}from"class-variance-authority";import{Slot as c}from"@radix-ui/react-slot";function l({className:e,items:t,render:i,...o}){return a(`nav`,{"data-komc":!0,"aria-label":`bottom app bar`,className:n(`komc:fixed komc:bottom-0 komc:left-0 komc:right-0`,`komc:border-t komc:border-neutral-200 komc:bg-white komc:z-10`,e),...o,children:a(`div`,{className:`komc:grid komc:min-h-15`,style:{gridTemplateColumns:`repeat(${t.length}, 1fr)`},children:t.map((e,t)=>a(r.Fragment,{children:i(e)},t))})})}const u=s(e(`komc:flex komc:justify-center komc:items-center komc:gap-x-2 komc:w-full`,`komc:transition-colors komc:duration-200 komc:relative`,`komc:[&_svg]:transition-colors komc:[&_svg]:duration-200`,`komc:cursor-pointer komc:disabled:cursor-default`),{variants:{size:{xxs:`komc:h-7.5`,xs:`komc:h-8`,sm:`komc:h-9`,md:`komc:h-10`,lg:`komc:h-11`,xl:`komc:h-12`,"2xl":`komc:h-13`,"3xl":`komc:h-14`,"4xl":`komc:h-15`},shadow:{none:``,sm:`komc:drop-shadow-sm`,md:`komc:drop-shadow-md`,lg:`komc:drop-shadow-lg`,xl:`komc:drop-shadow-xl`,"2xl":`komc:drop-shadow-2xl`,"3xl":`komc:drop-shadow-3xl`},outline:{line:`komc:border`,solid:`komc:border komc:border-transparent`,clear:`komc:border-none`},variant:{blue:``,duo:``,white:``,gray:``,neutral:``,night:``,black:``,sky:``,"sky-blue":``,indigo:``},px:{none:`komc:px-0`,xs:`komc:px-0.5`,sm:`komc:px-1`,md:`komc:px-1.5`,lg:`komc:px-2`,xl:`komc:px-3`,"2xl":`komc:px-4`,"3xl":`komc:px-5`,"4xl":`komc:px-6`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`,"3xl":`komc:rounded-3xl`,full:`komc:rounded-full`}},compoundVariants:[{outline:`line`,variant:`blue`,className:e(`komc:border-blue-500 komc:bg-white komc:text-blue-500`,`komc:hover:border-transparent komc:hover:bg-blue-500 komc:hover:text-white`,`komc:active:border-transparent komc:active:bg-blue-500 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`duo`,className:e(`komc:border-blue-500 komc:bg-white komc:text-brand-blck`,`komc:hover:border-transparent komc:hover:bg-blue-500 komc:hover:text-white`,`komc:active:border-transparent komc:active:bg-blue-500 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`white`,className:e(`komc:border-gray-600 komc:bg-white komc:text-brand-blck`,`komc:hover:bg-gray-200 komc:hover:text-brand-blck`,`komc:active:bg-gray-200 komc:active:text-brand-blck`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`gray`,className:e(`komc:border-white komc:bg-transparent komc:text-white`,`komc:hover:bg-[rgb(199,199,199)] komc:hover:text-white`,`komc:active:bg-[rgb(199,199,199)] komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-white komc:disabled:text-gray-500`)},{outline:`line`,variant:`neutral`,className:e(`komc:border-gray-800 komc:bg-transparent komc:text-black`,`komc:hover:bg-gray-200 komc:hover:text-black`,`komc:active:bg-gray-200 komc:active:text-black`,`komc:disabled:border-gray-500 komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`line`,variant:`sky`,className:e(`komc:border-sky-750 komc:bg-transparent komc:text-black`,`komc:hover:bg-sky-750 komc:hover:text-white`,`komc:active:bg-sky-750 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`line`,variant:`sky-blue`,className:e(`komc:border-sky-450 komc:bg-transparent komc:text-black`,`komc:hover:bg-sky-450 komc:hover:text-white`,`komc:active:bg-sky-450 komc:active:text-white`,`komc:disabled:border-gray-500 komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`solid`,variant:`white`,className:e(`komc:bg-white komc:text-brand-blck`,`komc:hover:bg-gray-200`,`komc:active:bg-gray-200`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`gray`,className:e(`komc:bg-gray-100 komc:text-blue-500`,`komc:hover:bg-blue-500 komc:hover:text-white`,`komc:active:bg-blue-500 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`blue`,className:e(`komc:bg-blue-500 komc:text-white`,`komc:hover:bg-night-700 komc:hover:text-white`,`komc:active:bg-night-700 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`night`,className:e(`komc:bg-night-700 komc:text-white`,`komc:hover:bg-night-800 komc:hover:text-white`,`komc:active:bg-night-800 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`black`,className:e(`komc:bg-[rgb(95,95,96)] komc:text-white`,`komc:hover:bg-[rgb(76,76,77)] komc:hover:text-white`,`komc:active:bg-[rgb(76,76,77)] komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-50 komc:disabled:text-gray-800`)},{outline:`solid`,variant:`sky`,className:e(`komc:bg-sky-750 komc:text-white`,`komc:hover:bg-sky-950 komc:hover:text-white`,`komc:active:bg-sky-950 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-700`)},{outline:`solid`,variant:`sky-blue`,className:e(`komc:bg-sky-450 komc:text-white`,`komc:hover:bg-sky-650 komc:hover:text-white`,`komc:active:bg-sky-650 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-700`)},{outline:`solid`,variant:`indigo`,className:e(`komc:bg-indigo-600 komc:text-white`,`komc:hover:bg-indigo-700 komc:hover:text-white`,`komc:active:bg-indigo-700 komc:active:text-white`,`komc:disabled:border-white komc:disabled:bg-gray-700`)},{outline:`clear`,variant:`sky`,className:e(`komc:bg-transparent komc:text-[#1890FF]`,`komc:hover:bg-transparent komc:hover:text-[#1890FF] komc:hover:underline`,`komc:active:bg-transparent komc:active:text-[#1890FF] komc:active:underline`,`komc:disabled:border-transparent komc:disabled:bg-transparent komc:disabled:text-gray-500`)},{outline:`clear`,variant:`gray`,className:e(`komc:bg-transparent komc:text-gray-800`,`komc:hover:bg-transparent komc:hover:text-gray-800 komc:hover:underline`,`komc:active:bg-transparent komc:active:text-gray-800 komc:active:underline`,`komc:disabled:border-transparent komc:disabled:bg-transparent komc:disabled:text-gray-500`)}],defaultVariants:{size:`md`,shadow:`none`,outline:`line`,variant:`blue`,px:`2xl`,rounded:`sm`}});var d=i(({type:e=`button`,className:t,id:n,size:r,shadow:i,outline:o,variant:s,px:l,rounded:d,asChild:f,...p},m)=>a(f?c:`button`,{ref:m,...p,type:e,id:n,className:u({size:r,shadow:i,outline:o,variant:s,px:l,rounded:d,className:t})}));function f({condition:e,wrapper:t,children:n}){return e?t(n):n}const p=s(e(`komc:flex komc:items-center komc:w-full komc:px-2`,`komc:[&>input]:outline-none komc:[&>input]:w-full`,`komc:[&>input]:focus:ring-0 komc:[&>input]:focus:ring-offset-0`,`komc:[&>input]:h-full`),{variants:{size:{xs:`komc:h-7.5`,sm:`komc:h-8`,base:`komc:h-9`,md:`komc:h-10`,lg:`komc:h-11`,xl:`komc:h-12`,"2xl":`komc:h-13`,"3xl":`komc:h-14`},gap:{none:`komc:gap-0`,xs:`komc:gap-1`,sm:`komc:gap-2`,md:`komc:gap-3`,lg:`komc:gap-4`,xl:`komc:gap-5`},outline:{line:`komc:border`,solid:`komc:border-transparent`,clear:`komc:border-none`,dashed:`komc:border-dashed`,dotted:`komc:border-dotted`},rounded:{none:`komc:rounded-none`,sm:`komc:rounded-sm`,md:`komc:rounded-md`,lg:`komc:rounded-lg`,xl:`komc:rounded-xl`,"2xl":`komc:rounded-2xl`}}});var m=i(({prefix:e=null,surffix:t=null,size:n=`lg`,gap:r=`xl`,outline:i=`line`,rounded:s=`lg`,className:c,...l},u)=>o(`div`,{"data-komc":!0,className:p({size:n,gap:r,outline:i,rounded:s,className:c}),children:[e,a(`input`,{ref:u,type:`text`,...l}),t]}));function h({children:e,className:t,...r}){return a(`span`,{...r,"data-komc":!0,"data-text":`${e}`,className:n(`komc:inline-flex komc:flex-col komc:justify-center komc:items-center`,`komc:after:content-[attr(data-text)] komc:after:font-bold`,`komc:after:h-0 komc:after:invisible komc:after:overflow-hidden`,`komc:after:select-none komc:after:pointer-events-none`,t),children:e})}export{l as BottomAppBar,d as Button,f as ConditionalWrapper,m as Input,t as Skeleton,h as StableText};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`../chunk-Bmb41Sf3.cjs`),t=require(`../util-1BLWEgZB.cjs`),n=require(`../skeleton-B1Jzl0cz.cjs`),r=require(`../hooks-D1JcFVTH.cjs`);let i=require(`lodash-es`),a=require(`clsx`);a=e.t(a);let o=require(`react`);o=e.t(o);let s=require(`react/jsx-runtime`),c=require(`class-variance-authority`),l=require(`embla-carousel-react`);l=e.t(l);let u=require(`react-dom`);const d=o.default.createContext(null);function f(){let e=o.default.useContext(d);if(!e)throw Error(`useCarousel must be used within a <Carousel />`);return e}function p({orientation:e=`horizontal`,options:n,setApi:r,plugins:i,className:a,children:c,...u}){let[f,p]=(0,l.default)({...n,axis:e===`horizontal`?`x`:`y`},i),[m,h]=(0,o.useState)(!1),[g,_]=(0,o.useState)(!1),v=(0,o.useCallback)(e=>{e&&(h(e.canScrollPrev()),_(e.canScrollNext()))},[]),y=(0,o.useCallback)(()=>{p?.scrollPrev()},[p]),b=(0,o.useCallback)(()=>{p?.scrollNext()},[p]),x=(0,o.useCallback)(t=>{e===`horizontal`?t.key===`ArrowLeft`?(t.preventDefault(),y()):t.key===`ArrowRight`&&(t.preventDefault(),b()):t.key===`ArrowUp`?(t.preventDefault(),y()):t.key===`ArrowDown`&&(t.preventDefault(),b())},[y,b,e]);return(0,o.useEffect)(()=>{!p||!r||r(p)},[p,r]),(0,o.useEffect)(()=>{if(p)return v(p),p.on(`reInit`,v),p.on(`select`,v),()=>{p?.off(`select`,v)}},[p,v]),(0,s.jsx)(d.Provider,{value:{carouselRef:f,api:p,options:n,orientation:e||(n?.axis===`y`?`vertical`:`horizontal`),scrollPrev:y,scrollNext:b,canScrollPrev:m,canScrollNext:g},children:(0,s.jsx)(`div`,{"data-komc":!0,role:`region`,"aria-label":`carousel`,"aria-roledescription":`carousel`,tabIndex:0,onKeyDownCapture:x,className:t.y(`komc:relative`,a),...u,children:c})})}function m({className:e,...n}){let{carouselRef:r,orientation:i}=f();return(0,s.jsx)(`div`,{ref:r,"data-komc":!0,className:`komc:h-full komc:overflow-hidden`,children:(0,s.jsx)(`div`,{className:t.y(`komc:flex komc:h-full`,i===`horizontal`?`komc:-ml-4`:`komc:-mt-4 komc:flex-col`,e),...n})})}function h({className:e,...n}){let{orientation:r}=f();return(0,s.jsx)(`div`,{"data-komc":!0,className:t.y(`komc:min-w-0 komc:shrink-0 komc:grow-0 komc:basis-full`,r===`horizontal`?`komc:pl-4`:`komc:pt-4`,e),...n})}function g({children:e,className:t,...n}){let{scrollPrev:r,canScrollPrev:i}=f();return(0,s.jsx)(`button`,{type:`button`,"data-komc":!0,disabled:!i,"aria-label":`previous slide`,className:(0,a.default)(`komc:w-full`,t),onClick:r,...n,children:e})}function _({children:e,className:t,...n}){let{scrollNext:r,canScrollNext:i}=f();return(0,s.jsx)(`button`,{type:`button`,"data-komc":!0,disabled:!i,"aria-label":`next slide`,className:(0,a.default)(`komc:w-full`,t),onClick:r,...n,children:e})}const v=(0,c.cva)(`komc:relative komc:z-10 komc:w-full komc:transition-all komc:duration-300 komc:ease-in-out`,{variants:{padding:{sm:`komc:p-2`,md:`komc:p-4`,lg:`komc:p-6`,none:`komc:p-0`},maxWidth:{sm:`komc:max-w-sm`,md:`komc:max-w-md`,lg:`komc:max-w-lg`,xl:`komc:max-w-xl`,"2xl":`komc:max-w-2xl`,full:`komc:max-w-full`}},defaultVariants:{padding:`sm`,maxWidth:`md`}});function y({closeOnBackdropClick:e=!0,isOpen:t,zIndex:n=1e4,padding:i,maxWidth:a,className:c,onClose:l,children:u,...d}){let f=r.c(t,300),[p,m]=(0,o.useState)(!1);(0,o.useEffect)(()=>{if(t&&f){let e=setTimeout(()=>m(!0),10);return()=>clearTimeout(e)}else t||m(!1)},[t,f]);let h=(0,o.useCallback)(e=>{e.key===`Escape`&&l()},[l]),g=(0,o.useCallback)(()=>{e&&l()},[e,l]);return(0,o.useEffect)(()=>(t?(document.addEventListener(`keydown`,h),document.body.style.overflow=`hidden`):document.body.style.overflow=`unset`,()=>{document.removeEventListener(`keydown`,h),document.body.style.overflow=`unset`}),[t,h]),f?(0,s.jsxs)(`div`,{"data-komc":!0,className:`komc:flex komc:justify-center komc:items-center komc:fixed komc:inset-0`,style:{zIndex:n},children:[(0,s.jsx)(`button`,{type:`button`,"data-state":p?`open`:`closed`,className:`komc:w-full komc:h-full komc:bg-black/50 komc:absolute komc:inset-0 komc:cursor-default komc:transition-opacity komc:duration-300 komc:ease-in-out komc:data-[state=closed]:opacity-0 komc:data-[state=open]:opacity-100`,onClick:g,"aria-label":`close dialog`}),(0,s.jsx)(`div`,{"data-state":p?`open`:`closed`,className:`${v({padding:i,maxWidth:a,className:c})} komc:data-[state=closed]:opacity-0 komc:data-[state=open]:opacity-100 komc:data-[state=closed]:scale-95 komc:data-[state=open]:scale-100`,role:`dialog`,"aria-modal":`true`,...d,children:u})]}):null}const b=(0,c.cva)(``,{variants:{fill:{true:`komc:w-full komc:h-full komc:absolute komc:inset-0`,false:``}},defaultVariants:{fill:!1}}),x=(0,o.forwardRef)(({...e},t)=>{let{ref:n,imageProps:i}=r.r({ref:t,...e});return(0,s.jsx)(`img`,{ref:n,...i})}),S=(0,o.forwardRef)(({skeleton:e=!0,layout:t=`stretch`,fallbackSrc:i,className:o,emptyNode:c,emptyNodeClassName:l,skeletonClassName:u,...d},f)=>{let{ref:p,isLoad:m,isError:h,imageProps:g}=r.r({ref:f,fallbackSrc:i,forceLoad:!e,...d}),_=!d.fill&&t===`intrinsic`?{width:`${d.width}px`,height:`${d.height}px`}:void 0,v=(0,a.default)(`komc:flex komc:justify-center komc:items-center komc:relative komc:min-h-0`,!d.fill&&t===`stretch`&&`komc:w-full komc:h-full`);return!i&&h&&c?d.fill?(0,s.jsx)(C,{className:l,children:c}):(0,s.jsx)(`div`,{"data-komc":!0,style:_,className:v,children:(0,s.jsx)(C,{className:l,children:c})}):d.fill?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(`img`,{ref:p,...g,className:(0,a.default)(`komc:w-full komc:h-full komc:absolute komc:inset-0`,e&&!m?`komc:invisible`:`komc:visible`,o)}),(0,s.jsx)(`div`,{"data-komc":!0,className:(0,a.default)(`komc:w-full komc:h-full komc:absolute komc:inset-0`,e&&!m?`komc:block`:`komc:hidden`),children:(0,s.jsx)(n.t,{size:`full`,className:u})})]}):(0,s.jsxs)(`div`,{"data-komc":!0,style:_,className:v,children:[(0,s.jsx)(`img`,{ref:p,...g,className:(0,a.default)(b({fill:d.fill,className:o}),e&&!m?`komc:invisible`:`komc:visible`)}),(0,s.jsx)(`div`,{className:(0,a.default)(`komc:w-full komc:h-full komc:absolute komc:inset-0`,e&&!m?`komc:block`:`komc:hidden`),children:(0,s.jsx)(n.t,{size:`full`,className:u})})]})}),C=({children:e,className:t})=>(0,s.jsx)(`div`,{"data-komc":!0,role:`alert`,className:(0,a.default)(`komc:flex komc:justify-center komc:items-center komc:w-full komc:h-full komc:bg-gray-100 komc:absolute komc:inset-0 komc:p-1`,t),children:e});var w=S;function T({children:e,setOpen:t}){return(0,s.jsx)(`div`,{"data-komc":!0,className:(0,a.default)(`komc:inline-flex komc:shrink-0 komc:justify-center`,`komc:items-center komc:outline-none`),onMouseLeave:()=>t(!1),onMouseOver:()=>t(!0),onFocus:()=>t(!0),onBlur:()=>t(!1),onClick:()=>t(!0),children:e})}const E=(0,c.cva)(t.y(`komc:absolute komc:z-99 komc:w-max komc:max-w-70 komc:p-2 komc:rounded-md`,`komc:break-all komc:transition-opacity komc:duration-300 komc:bg-white`,`komc:drop-shadow-[0px_0.5px_3px_rgba(0,0,0,0.2)] komc:text-xs`),{variants:{portal:{true:``,false:``},placement:{top:``,bottom:``,"top-start":``,"top-end":``,"bottom-start":``,"bottom-end":``}},compoundVariants:[{portal:!0,placement:`top`,className:`komc:-translate-y-2`},{portal:!0,placement:`bottom`,className:`komc:translate-y-2`},{portal:!0,placement:`top-start`,className:`komc:-translate-y-2`},{portal:!0,placement:`top-end`,className:`komc:-translate-y-2`},{portal:!0,placement:`bottom-start`,className:`komc:translate-y-2`},{portal:!0,placement:`bottom-end`,className:`komc:translate-y-2`},{portal:!1,placement:`top`,className:`komc:bottom-full komc:left-1/2 komc:-translate-x-1/2`},{portal:!1,placement:`bottom`,className:`komc:top-full komc:left-1/2 komc:-translate-x-1/2`},{portal:!1,placement:`top-start`,className:`komc:bottom-full komc:left-0`},{portal:!1,placement:`top-end`,className:`komc:bottom-full komc:right-0`},{portal:!1,placement:`bottom-start`,className:`komc:top-full komc:left-0`},{portal:!1,placement:`bottom-end`,className:`komc:top-full komc:right-0`}],defaultVariants:{placement:`top`,portal:!1}}),D=(0,o.forwardRef)(({portal:e,children:t,className:n,placement:r,...i},a)=>(0,s.jsx)(`div`,{ref:a,"data-komc":!0,role:`tooltip`,className:E({portal:e,placement:r,className:n}),...i,children:t}));var O=D;const k=(0,c.cva)(t.y(`komc:absolute komc:w-2 komc:h-2 komc:bg-inherit`,`komc:transition-opacity komc:duration-300`),{variants:{placement:{top:t.y(`komc:top-full komc:-mt-1 komc:left-1/2`),bottom:t.y(`komc:bottom-full komc:-mb-1 komc:left-1/2`),"top-start":t.y(`komc:top-full komc:-mt-1 komc:left-5`),"top-end":t.y(`komc:top-full komc:-mt-1 komc:right-5`),"bottom-start":t.y(`komc:bottom-full komc:-mb-1 komc:left-5`),"bottom-end":t.y(`komc:bottom-full komc:-mb-1 komc:right-5`)}},defaultVariants:{placement:`top`}}),A=({placement:e,className:t,offset:n,style:r,...i})=>{let a=(0,o.useMemo)(()=>{switch(e){case`top`:case`top-start`:case`top-end`:return`rotate(45deg)`;case`bottom`:case`bottom-start`:case`bottom-end`:return`rotate(225deg)`;default:return`rotate(45deg)`}},[e]);return(0,s.jsx)(`div`,{className:k({placement:e,className:t}),style:{transform:`translate(${n?.x}px, ${n?.y}px) ${a}`},...i})};var j=A;const M=24,N=(e,t)=>{let[,n]=e.split(`-`);return n?`${t}-${n}`:t};function P({placement:e,className:t,content:n,open:r,hiddenRef:c,containerRef:l}){let[d,f]=(0,o.useState)(!1),p=(0,o.useRef)(null),[m,h]=(0,o.useState)(e),[g,_]=(0,o.useState)({top:0,left:0}),[v,y]=(0,o.useState)({x:0,y:0}),b=(0,o.useCallback)((0,i.debounce)(()=>{let e=l?.current,t=c.current;if(!e||!t)return;let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=window.scrollY||document.documentElement.scrollTop,a=window.scrollX||document.documentElement.scrollLeft,[o,s]=m.split(`-`),u=i+n.top,d=a+n.left+n.width/2-r.width/2;switch(o){case`top`:u-=r.height;break;case`bottom`:u+=n.height;break}switch(s){case`start`:d+=r.width/2-24;break;case`end`:d-=r.width/2-24;break}let f=d,p=window.innerWidth;f+r.width>p-4&&(f=p-r.width-4),f<4&&(f=4),_({top:u,left:f}),y({x:d-f,y:0})},50),[m]),x=(0,o.useCallback)((0,i.debounce)(()=>{if(!c.current)return;let{top:t,height:n}=c.current.getBoundingClientRect();h(r=>{let i=e;return t+n>=window.innerHeight?i=N(r,`top`):t<0&&(i=N(r,`bottom`)),i})},50),[e]);return(0,o.useEffect)(()=>(f(!0),x(),window.addEventListener(`scroll`,b,{passive:!0}),window.addEventListener(`resize`,b),window.addEventListener(`scroll`,x,{passive:!0}),window.addEventListener(`resize`,x),()=>{window.removeEventListener(`scroll`,b),window.removeEventListener(`resize`,b),window.removeEventListener(`scroll`,x),window.removeEventListener(`resize`,x)}),[b,x]),(0,o.useEffect)(()=>{d&&b()},[d,b]),d?(0,u.createPortal)((0,s.jsxs)(O,{ref:p,portal:!0,"data-komc":!0,placement:m,className:(0,a.default)(t,r?`komc:visible komc:opacity-100`:`komc:opacity-0 komc:invisible`),style:{...g},children:[(0,s.jsx)(`span`,{children:n}),(0,s.jsx)(j,{placement:m,offset:v})]}),document.body):null}const F=(0,o.forwardRef)(({children:e,content:t,defaultOpen:n=!1,className:i,placement:c=`top`},l)=>{let[u,d]=(0,o.useState)(n),f=(0,o.useRef)(null),p=(0,o.useRef)(null);return r.o({ref:f,setOpen:d}),(0,s.jsxs)(`div`,{ref:f,"data-komc":!0,className:`komc:flex komc:shrink-0 komc:relative komc:overflow-hidden komc:w-fit komc:h-fit`,children:[(0,s.jsx)(T,{setOpen:d,children:e}),(0,s.jsx)(P,{placement:c,className:i,open:u,content:t,hiddenRef:p,containerRef:f}),(0,s.jsx)(O,{ref:p,role:`presentation`,"aria-hidden":`true`,placement:c,className:(0,a.default)(`komc:opacity-0 komc:invisible`,i),children:(0,s.jsx)(`span`,{children:t})})]})});var I=F;exports.BaseImage=x,exports.Carousel=p,exports.CarouselItem=h,exports.CarouselNext=_,exports.CarouselPrevious=g,exports.CarouselWrapper=m,exports.Dialog=y,exports.EmptyNode=C,exports.Image=w,exports.Tooltip=I;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { a as UseSubsetImageProps, n as BaseProps, o as UseSubsetImagePropsWithoutApiClient } from "../index-CWgr7lXX.cjs";
|
|
2
|
+
import { t as ApiClient } from "../index-OjfbEYpE.cjs";
|
|
3
|
+
import * as react14 from "react";
|
|
4
|
+
import React$1, { ComponentProps, HTMLAttributes, ReactNode } from "react";
|
|
5
|
+
import useEmblaCarousel, { UseEmblaCarouselType } from "embla-carousel-react";
|
|
6
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
7
|
+
import * as class_variance_authority_types2 from "class-variance-authority/types";
|
|
8
|
+
import { VariantProps } from "class-variance-authority";
|
|
9
|
+
|
|
10
|
+
//#region src/ui-client/carousel/carousel-context.d.ts
|
|
11
|
+
type CarouselApi = UseEmblaCarouselType[1];
|
|
12
|
+
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
13
|
+
type CarouselOptions = UseCarouselParameters[0];
|
|
14
|
+
type CarouselPlugin = UseCarouselParameters[1];
|
|
15
|
+
interface CarouselProps {
|
|
16
|
+
options?: CarouselOptions;
|
|
17
|
+
plugins?: CarouselPlugin;
|
|
18
|
+
orientation?: 'horizontal' | 'vertical';
|
|
19
|
+
setApi?: (api: CarouselApi) => void;
|
|
20
|
+
}
|
|
21
|
+
type CarouselContextProps = {
|
|
22
|
+
carouselRef: ReturnType<typeof useEmblaCarousel>[0];
|
|
23
|
+
api: ReturnType<typeof useEmblaCarousel>[1];
|
|
24
|
+
scrollPrev: () => void;
|
|
25
|
+
scrollNext: () => void;
|
|
26
|
+
canScrollPrev: boolean;
|
|
27
|
+
canScrollNext: boolean;
|
|
28
|
+
} & CarouselProps;
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/ui-client/carousel/carousel.d.ts
|
|
31
|
+
interface CarouselProps$1 extends ComponentProps<'div'>, CarouselProps {
|
|
32
|
+
orientation?: 'horizontal' | 'vertical';
|
|
33
|
+
options?: CarouselProps['options'];
|
|
34
|
+
setApi?: CarouselProps['setApi'];
|
|
35
|
+
plugins?: CarouselProps['plugins'];
|
|
36
|
+
}
|
|
37
|
+
declare function Carousel({
|
|
38
|
+
orientation,
|
|
39
|
+
options,
|
|
40
|
+
setApi,
|
|
41
|
+
plugins,
|
|
42
|
+
className,
|
|
43
|
+
children,
|
|
44
|
+
...props
|
|
45
|
+
}: CarouselProps$1): react_jsx_runtime2.JSX.Element;
|
|
46
|
+
//#endregion
|
|
47
|
+
//#region src/ui-client/carousel/carousel-wrapper.d.ts
|
|
48
|
+
declare function CarouselWrapper({
|
|
49
|
+
className,
|
|
50
|
+
...props
|
|
51
|
+
}: React$1.ComponentProps<'div'>): react_jsx_runtime2.JSX.Element;
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/ui-client/carousel/carousel-item.d.ts
|
|
54
|
+
declare function CarouselItem({
|
|
55
|
+
className,
|
|
56
|
+
...props
|
|
57
|
+
}: React$1.ComponentProps<'div'>): react_jsx_runtime2.JSX.Element;
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/ui-client/carousel/carousel-previous.d.ts
|
|
60
|
+
declare function CarouselPrevious({
|
|
61
|
+
children,
|
|
62
|
+
className,
|
|
63
|
+
...props
|
|
64
|
+
}: React$1.ComponentProps<'button'>): react_jsx_runtime2.JSX.Element;
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/ui-client/carousel/carousel-next.d.ts
|
|
67
|
+
declare function CarouselNext({
|
|
68
|
+
children,
|
|
69
|
+
className,
|
|
70
|
+
...props
|
|
71
|
+
}: React$1.ComponentProps<'button'>): react_jsx_runtime2.JSX.Element;
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/ui-client/dialog/dialog.d.ts
|
|
74
|
+
declare const classes: (props?: ({
|
|
75
|
+
padding?: "none" | "sm" | "md" | "lg" | null | undefined;
|
|
76
|
+
maxWidth?: "sm" | "md" | "lg" | "xl" | "2xl" | "full" | null | undefined;
|
|
77
|
+
} & class_variance_authority_types2.ClassProp) | undefined) => string;
|
|
78
|
+
interface DialogProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof classes> {
|
|
79
|
+
closeOnBackdropClick?: boolean;
|
|
80
|
+
isOpen: boolean;
|
|
81
|
+
zIndex?: number;
|
|
82
|
+
onClose: () => void;
|
|
83
|
+
children: ReactNode;
|
|
84
|
+
}
|
|
85
|
+
declare function Dialog({
|
|
86
|
+
closeOnBackdropClick,
|
|
87
|
+
isOpen,
|
|
88
|
+
zIndex,
|
|
89
|
+
padding,
|
|
90
|
+
maxWidth,
|
|
91
|
+
className,
|
|
92
|
+
onClose,
|
|
93
|
+
children,
|
|
94
|
+
...rest
|
|
95
|
+
}: DialogProps): react_jsx_runtime2.JSX.Element | null;
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/ui-client/image/image.d.ts
|
|
98
|
+
type ImageSubsetProps = {
|
|
99
|
+
layout?: 'intrinsic' | 'stretch';
|
|
100
|
+
skeleton?: boolean;
|
|
101
|
+
emptyNode?: React.ReactNode;
|
|
102
|
+
emptyNodeClassName?: string;
|
|
103
|
+
skeletonClassName?: string;
|
|
104
|
+
};
|
|
105
|
+
type ImageProps = UseSubsetImageProps & ImageSubsetProps;
|
|
106
|
+
type ImagePropsWithoutApiClient = UseSubsetImagePropsWithoutApiClient & ImageSubsetProps;
|
|
107
|
+
declare const BaseImage: react14.ForwardRefExoticComponent<(Omit<Omit<BaseProps, "apiClient"> & {
|
|
108
|
+
fill: true;
|
|
109
|
+
sizes: string;
|
|
110
|
+
width?: never;
|
|
111
|
+
height?: never;
|
|
112
|
+
} & {
|
|
113
|
+
apiClient: ApiClient;
|
|
114
|
+
}, "ref"> | Omit<Omit<BaseProps, "apiClient"> & {
|
|
115
|
+
fill?: false;
|
|
116
|
+
sizes?: never;
|
|
117
|
+
width: number;
|
|
118
|
+
height: number;
|
|
119
|
+
} & {
|
|
120
|
+
apiClient: ApiClient;
|
|
121
|
+
}, "ref">) & react14.RefAttributes<HTMLImageElement>>;
|
|
122
|
+
declare const Image: react14.ForwardRefExoticComponent<(Omit<Omit<BaseProps, "apiClient"> & {
|
|
123
|
+
fill: true;
|
|
124
|
+
sizes: string;
|
|
125
|
+
width?: never;
|
|
126
|
+
height?: never;
|
|
127
|
+
} & {
|
|
128
|
+
apiClient: ApiClient;
|
|
129
|
+
} & ImageSubsetProps, "ref"> | Omit<Omit<BaseProps, "apiClient"> & {
|
|
130
|
+
fill?: false;
|
|
131
|
+
sizes?: never;
|
|
132
|
+
width: number;
|
|
133
|
+
height: number;
|
|
134
|
+
} & {
|
|
135
|
+
apiClient: ApiClient;
|
|
136
|
+
} & ImageSubsetProps, "ref">) & react14.RefAttributes<HTMLImageElement>>;
|
|
137
|
+
interface EmptyNodeProps {
|
|
138
|
+
children: React.ReactNode;
|
|
139
|
+
className?: string;
|
|
140
|
+
}
|
|
141
|
+
declare const EmptyNode: ({
|
|
142
|
+
children,
|
|
143
|
+
className
|
|
144
|
+
}: EmptyNodeProps) => react_jsx_runtime2.JSX.Element;
|
|
145
|
+
//#endregion
|
|
146
|
+
//#region src/ui-client/tooltip/tooltip-container.d.ts
|
|
147
|
+
type SubPlacement = 'start' | 'end';
|
|
148
|
+
type MainPlacement = 'top' | 'bottom';
|
|
149
|
+
type TooltipPlacement = MainPlacement | `${MainPlacement}-${SubPlacement}`;
|
|
150
|
+
interface TooltipContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
151
|
+
children: React.ReactNode;
|
|
152
|
+
content: string;
|
|
153
|
+
placement?: TooltipPlacement;
|
|
154
|
+
defaultOpen?: boolean;
|
|
155
|
+
}
|
|
156
|
+
declare const TooltipContainer: react14.ForwardRefExoticComponent<TooltipContainerProps & react14.RefAttributes<HTMLDivElement>>;
|
|
157
|
+
//#endregion
|
|
158
|
+
export { BaseImage, Carousel, type CarouselApi, type CarouselContextProps, CarouselItem, CarouselNext, type CarouselOptions, type CarouselPlugin, CarouselPrevious, type CarouselProps, CarouselWrapper, Dialog, type DialogProps, EmptyNode, type EmptyNodeProps, Image, type ImageProps, type ImagePropsWithoutApiClient, type ImageSubsetProps, TooltipContainer as Tooltip, type TooltipContainerProps as TooltipProps };
|