mado-ui 0.5.5 → 0.5.7
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/css/index.css +100 -13
- package/dist/components/drop-down.d.ts +12 -12
- package/dist/components/drop-down.d.ts.map +1 -1
- package/dist/components/form/human-verification.d.ts +15 -0
- package/dist/components/form/human-verification.d.ts.map +1 -0
- package/dist/components/form/index.d.ts +0 -1
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/input/date/index.d.ts +16 -36
- package/dist/components/form/input/date/index.d.ts.map +1 -1
- package/dist/components/form/input/index.d.ts +91 -8
- package/dist/components/form/input/index.d.ts.map +1 -1
- package/dist/components/link.d.ts +14 -13
- package/dist/components/link.d.ts.map +1 -1
- package/dist/components/tooltip.d.ts +7 -7
- package/dist/components/tooltip.d.ts.map +1 -1
- package/dist/components/video.d.ts +6 -6
- package/dist/components/video.d.ts.map +1 -1
- package/dist/components.d.ts +96 -194
- package/dist/components.esm.js +624 -782
- package/dist/components.esm.js.map +1 -1
- package/dist/components.js +621 -779
- package/dist/components.js.map +1 -1
- package/dist/graphics.esm.js +2 -2
- package/dist/graphics.esm.js.map +1 -1
- package/dist/graphics.js +2 -2
- package/dist/graphics.js.map +1 -1
- package/dist/hooks/use-fieldset-context.d.ts.map +1 -1
- package/dist/hooks/use-form-context.d.ts +5 -5
- package/dist/hooks/use-form-context.d.ts.map +1 -1
- package/dist/hooks.d.ts +5 -5
- package/dist/hooks.esm.js.map +1 -1
- package/dist/hooks.js.map +1 -1
- package/dist/icons/index.d.ts +142 -143
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/square-and-arrow-up-right.d.ts +3 -0
- package/dist/icons/square-and-arrow-up-right.d.ts.map +1 -0
- package/dist/icons/square-and-pencil.d.ts +2 -2
- package/dist/icons/square-and-pencil.d.ts.map +1 -1
- package/dist/icons.d.ts +2 -4
- package/dist/icons.esm.js +2 -6
- package/dist/icons.esm.js.map +1 -1
- package/dist/icons.js +1 -6
- package/dist/icons.js.map +1 -1
- package/dist/index.d.ts +96 -194
- package/dist/index.esm.js +624 -782
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +621 -779
- package/dist/index.js.map +1 -1
- package/dist/utils/get-date.d.ts +20 -32
- package/dist/utils/get-date.d.ts.map +1 -1
- package/dist/utils.d.ts +22 -34
- package/dist/utils.esm.js +40 -1064
- package/dist/utils.esm.js.map +1 -1
- package/dist/utils.js +41 -1067
- package/dist/utils.js.map +1 -1
- package/package.json +88 -100
- package/dist/components/form/input/date/views/index.d.ts +0 -5
- package/dist/components/form/input/date/views/index.d.ts.map +0 -1
- package/dist/icons/square-and-pencil-fill.d.ts +0 -3
- package/dist/icons/square-and-pencil-fill.d.ts.map +0 -1
package/css/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.
|
|
1
|
+
/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties;
|
|
3
3
|
@layer theme, base, components, utilities;
|
|
4
4
|
@layer theme {
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
--color-blue-50: oklch(97% 0.014 254.604);
|
|
19
19
|
--color-blue-200: oklch(88.2% 0.059 254.128);
|
|
20
20
|
--color-blue-300: oklch(80.9% 0.105 251.813);
|
|
21
|
+
--color-blue-400: oklch(70.7% 0.165 254.624);
|
|
21
22
|
--color-blue-500: oklch(62.3% 0.214 259.815);
|
|
22
23
|
--color-blue-600: oklch(54.6% 0.245 262.881);
|
|
23
24
|
--color-violet-50: oklch(96.9% 0.016 293.756);
|
|
@@ -29,6 +30,7 @@
|
|
|
29
30
|
--color-neutral-50: oklch(98.5% 0 0);
|
|
30
31
|
--color-neutral-100: oklch(97% 0 0);
|
|
31
32
|
--color-neutral-200: oklch(92.2% 0 0);
|
|
33
|
+
--color-neutral-300: oklch(87% 0 0);
|
|
32
34
|
--color-neutral-400: oklch(70.8% 0 0);
|
|
33
35
|
--color-neutral-500: oklch(55.6% 0 0);
|
|
34
36
|
--color-neutral-600: oklch(43.9% 0 0);
|
|
@@ -280,7 +282,7 @@
|
|
|
280
282
|
padding: 0;
|
|
281
283
|
margin: -1px;
|
|
282
284
|
overflow: hidden;
|
|
283
|
-
clip:
|
|
285
|
+
clip-path: inset(50%);
|
|
284
286
|
white-space: nowrap;
|
|
285
287
|
border-width: 0;
|
|
286
288
|
}
|
|
@@ -353,6 +355,9 @@
|
|
|
353
355
|
.left-0 {
|
|
354
356
|
left: calc(var(--spacing) * 0);
|
|
355
357
|
}
|
|
358
|
+
.left-1 {
|
|
359
|
+
left: calc(var(--spacing) * 1);
|
|
360
|
+
}
|
|
356
361
|
.left-1\/2 {
|
|
357
362
|
left: calc(1/2 * 100%);
|
|
358
363
|
}
|
|
@@ -395,6 +400,24 @@
|
|
|
395
400
|
.row-end-1 {
|
|
396
401
|
grid-row-end: 1;
|
|
397
402
|
}
|
|
403
|
+
.container {
|
|
404
|
+
width: 100%;
|
|
405
|
+
@media (width >= 40rem) {
|
|
406
|
+
max-width: 40rem;
|
|
407
|
+
}
|
|
408
|
+
@media (width >= 48rem) {
|
|
409
|
+
max-width: 48rem;
|
|
410
|
+
}
|
|
411
|
+
@media (width >= 64rem) {
|
|
412
|
+
max-width: 64rem;
|
|
413
|
+
}
|
|
414
|
+
@media (width >= 80rem) {
|
|
415
|
+
max-width: 80rem;
|
|
416
|
+
}
|
|
417
|
+
@media (width >= 96rem) {
|
|
418
|
+
max-width: 96rem;
|
|
419
|
+
}
|
|
420
|
+
}
|
|
398
421
|
.mx-auto {
|
|
399
422
|
margin-inline: auto;
|
|
400
423
|
}
|
|
@@ -410,6 +433,9 @@
|
|
|
410
433
|
.-mb-1\.5 {
|
|
411
434
|
margin-bottom: calc(var(--spacing) * -1.5);
|
|
412
435
|
}
|
|
436
|
+
.ml-1 {
|
|
437
|
+
margin-left: calc(var(--spacing) * 1);
|
|
438
|
+
}
|
|
413
439
|
.ml-1\.5 {
|
|
414
440
|
margin-left: calc(var(--spacing) * 1.5);
|
|
415
441
|
}
|
|
@@ -437,6 +463,9 @@
|
|
|
437
463
|
.field-sizing-content {
|
|
438
464
|
field-sizing: content;
|
|
439
465
|
}
|
|
466
|
+
.aspect-square {
|
|
467
|
+
aspect-ratio: 1 / 1;
|
|
468
|
+
}
|
|
440
469
|
.aspect-video {
|
|
441
470
|
aspect-ratio: var(--aspect-video);
|
|
442
471
|
}
|
|
@@ -466,6 +495,9 @@
|
|
|
466
495
|
.h-2\.5 {
|
|
467
496
|
height: calc(var(--spacing) * 2.5);
|
|
468
497
|
}
|
|
498
|
+
.h-3\.5 {
|
|
499
|
+
height: calc(var(--spacing) * 3.5);
|
|
500
|
+
}
|
|
469
501
|
.h-4 {
|
|
470
502
|
height: calc(var(--spacing) * 4);
|
|
471
503
|
}
|
|
@@ -481,6 +513,9 @@
|
|
|
481
513
|
.h-24 {
|
|
482
514
|
height: calc(var(--spacing) * 24);
|
|
483
515
|
}
|
|
516
|
+
.h-\[calc\(100\%-\(var\(--spacing\)\*2\)\)\] {
|
|
517
|
+
height: calc(100% - (var(--spacing) * 2));
|
|
518
|
+
}
|
|
484
519
|
.h-dvh {
|
|
485
520
|
height: 100dvh;
|
|
486
521
|
}
|
|
@@ -517,6 +552,9 @@
|
|
|
517
552
|
.w-32 {
|
|
518
553
|
width: calc(var(--spacing) * 32);
|
|
519
554
|
}
|
|
555
|
+
.w-72 {
|
|
556
|
+
width: calc(var(--spacing) * 72);
|
|
557
|
+
}
|
|
520
558
|
.w-fit {
|
|
521
559
|
width: fit-content;
|
|
522
560
|
}
|
|
@@ -541,7 +579,7 @@
|
|
|
541
579
|
.min-w-fit {
|
|
542
580
|
min-width: fit-content;
|
|
543
581
|
}
|
|
544
|
-
.
|
|
582
|
+
.grow {
|
|
545
583
|
flex-grow: 1;
|
|
546
584
|
}
|
|
547
585
|
.origin-bottom {
|
|
@@ -702,6 +740,9 @@
|
|
|
702
740
|
.overflow-hidden {
|
|
703
741
|
overflow: hidden;
|
|
704
742
|
}
|
|
743
|
+
.overflow-visible {
|
|
744
|
+
overflow: visible;
|
|
745
|
+
}
|
|
705
746
|
.overflow-x-hidden {
|
|
706
747
|
overflow-x: hidden;
|
|
707
748
|
}
|
|
@@ -795,6 +836,9 @@
|
|
|
795
836
|
.bg-neutral-100 {
|
|
796
837
|
background-color: var(--color-neutral-100);
|
|
797
838
|
}
|
|
839
|
+
.bg-neutral-300 {
|
|
840
|
+
background-color: var(--color-neutral-300);
|
|
841
|
+
}
|
|
798
842
|
.bg-neutral-900\/50 {
|
|
799
843
|
background-color: color-mix(in srgb, oklch(20.5% 0 0) 50%, transparent);
|
|
800
844
|
@supports (color: color-mix(in lab, red, red)) {
|
|
@@ -1134,6 +1178,9 @@
|
|
|
1134
1178
|
.fill-neutral-400 {
|
|
1135
1179
|
fill: var(--color-neutral-400);
|
|
1136
1180
|
}
|
|
1181
|
+
.fill-neutral-500 {
|
|
1182
|
+
fill: var(--color-neutral-500);
|
|
1183
|
+
}
|
|
1137
1184
|
.fill-none {
|
|
1138
1185
|
fill: none;
|
|
1139
1186
|
}
|
|
@@ -1155,9 +1202,15 @@
|
|
|
1155
1202
|
.stroke-1 {
|
|
1156
1203
|
stroke-width: 1;
|
|
1157
1204
|
}
|
|
1205
|
+
.stroke-2 {
|
|
1206
|
+
stroke-width: 2;
|
|
1207
|
+
}
|
|
1158
1208
|
.object-cover {
|
|
1159
1209
|
object-fit: cover;
|
|
1160
1210
|
}
|
|
1211
|
+
.p-1 {
|
|
1212
|
+
padding: calc(var(--spacing) * 1);
|
|
1213
|
+
}
|
|
1161
1214
|
.p-2 {
|
|
1162
1215
|
padding: calc(var(--spacing) * 2);
|
|
1163
1216
|
}
|
|
@@ -1218,6 +1271,9 @@
|
|
|
1218
1271
|
.py-12 {
|
|
1219
1272
|
padding-block: calc(var(--spacing) * 12);
|
|
1220
1273
|
}
|
|
1274
|
+
.pt-1 {
|
|
1275
|
+
padding-top: calc(var(--spacing) * 1);
|
|
1276
|
+
}
|
|
1221
1277
|
.pt-3 {
|
|
1222
1278
|
padding-top: calc(var(--spacing) * 3);
|
|
1223
1279
|
}
|
|
@@ -1257,6 +1313,9 @@
|
|
|
1257
1313
|
.pl-2 {
|
|
1258
1314
|
padding-left: calc(var(--spacing) * 2);
|
|
1259
1315
|
}
|
|
1316
|
+
.pl-8 {
|
|
1317
|
+
padding-left: calc(var(--spacing) * 8);
|
|
1318
|
+
}
|
|
1260
1319
|
.text-center {
|
|
1261
1320
|
text-align: center;
|
|
1262
1321
|
}
|
|
@@ -1303,7 +1362,7 @@
|
|
|
1303
1362
|
.text-\[1px\] {
|
|
1304
1363
|
font-size: 1px;
|
|
1305
1364
|
}
|
|
1306
|
-
.text-\[
|
|
1365
|
+
.text-\[larger\] {
|
|
1307
1366
|
font-size: larger;
|
|
1308
1367
|
}
|
|
1309
1368
|
.leading-6 {
|
|
@@ -1373,6 +1432,9 @@
|
|
|
1373
1432
|
.text-neutral-50 {
|
|
1374
1433
|
color: var(--color-neutral-50);
|
|
1375
1434
|
}
|
|
1435
|
+
.text-neutral-800 {
|
|
1436
|
+
color: var(--color-neutral-800);
|
|
1437
|
+
}
|
|
1376
1438
|
.text-neutral-950 {
|
|
1377
1439
|
color: var(--color-neutral-950);
|
|
1378
1440
|
}
|
|
@@ -1443,6 +1505,9 @@
|
|
|
1443
1505
|
--tw-shadow-color: color-mix(in oklab, color-mix(in oklab, var(--color-neutral-950) 25%, transparent) var(--tw-shadow-alpha), transparent);
|
|
1444
1506
|
}
|
|
1445
1507
|
}
|
|
1508
|
+
.ring-neutral-500 {
|
|
1509
|
+
--tw-ring-color: var(--color-neutral-500);
|
|
1510
|
+
}
|
|
1446
1511
|
.outline-1 {
|
|
1447
1512
|
outline-style: var(--tw-outline-style);
|
|
1448
1513
|
outline-width: 1px;
|
|
@@ -1567,7 +1632,7 @@
|
|
|
1567
1632
|
backdrop-filter: var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);
|
|
1568
1633
|
}
|
|
1569
1634
|
.transition {
|
|
1570
|
-
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display,
|
|
1635
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
|
|
1571
1636
|
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
1572
1637
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
1573
1638
|
}
|
|
@@ -2113,13 +2178,13 @@
|
|
|
2113
2178
|
.after\:origin-left {
|
|
2114
2179
|
&::after {
|
|
2115
2180
|
content: var(--tw-content);
|
|
2116
|
-
transform-origin:
|
|
2181
|
+
transform-origin: 0;
|
|
2117
2182
|
}
|
|
2118
2183
|
}
|
|
2119
2184
|
.after\:origin-right {
|
|
2120
2185
|
&::after {
|
|
2121
2186
|
content: var(--tw-content);
|
|
2122
|
-
transform-origin:
|
|
2187
|
+
transform-origin: 100%;
|
|
2123
2188
|
}
|
|
2124
2189
|
}
|
|
2125
2190
|
.after\:-translate-x-1\/2 {
|
|
@@ -2306,7 +2371,6 @@
|
|
|
2306
2371
|
}
|
|
2307
2372
|
.after\:content-\[\"_\*\"\] {
|
|
2308
2373
|
&::after {
|
|
2309
|
-
content: var(--tw-content);
|
|
2310
2374
|
--tw-content: " *";
|
|
2311
2375
|
content: var(--tw-content);
|
|
2312
2376
|
}
|
|
@@ -2439,6 +2503,34 @@
|
|
|
2439
2503
|
}
|
|
2440
2504
|
}
|
|
2441
2505
|
}
|
|
2506
|
+
.focus\:ring-3 {
|
|
2507
|
+
&:focus {
|
|
2508
|
+
--tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
2509
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
2510
|
+
}
|
|
2511
|
+
}
|
|
2512
|
+
.focus\:ring-blue-400 {
|
|
2513
|
+
&:focus {
|
|
2514
|
+
--tw-ring-color: var(--color-blue-400);
|
|
2515
|
+
}
|
|
2516
|
+
}
|
|
2517
|
+
.focus\:ring-offset-2 {
|
|
2518
|
+
&:focus {
|
|
2519
|
+
--tw-ring-offset-width: 2px;
|
|
2520
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
|
2521
|
+
}
|
|
2522
|
+
}
|
|
2523
|
+
.focus\:ring-offset-neutral-500 {
|
|
2524
|
+
&:focus {
|
|
2525
|
+
--tw-ring-offset-color: var(--color-neutral-500);
|
|
2526
|
+
}
|
|
2527
|
+
}
|
|
2528
|
+
.focus\:outline-none {
|
|
2529
|
+
&:focus {
|
|
2530
|
+
--tw-outline-style: none;
|
|
2531
|
+
outline-style: none;
|
|
2532
|
+
}
|
|
2533
|
+
}
|
|
2442
2534
|
.focus-visible\:bg-neutral-50 {
|
|
2443
2535
|
&:focus-visible {
|
|
2444
2536
|
background-color: var(--color-neutral-50);
|
|
@@ -2782,11 +2874,6 @@
|
|
|
2782
2874
|
--theme-color: var(--color-ui-yellow);
|
|
2783
2875
|
}
|
|
2784
2876
|
}
|
|
2785
|
-
.data-open\:opacity-100 {
|
|
2786
|
-
&[data-open] {
|
|
2787
|
-
opacity: 100%;
|
|
2788
|
-
}
|
|
2789
|
-
}
|
|
2790
2877
|
.data-portal\:fixed {
|
|
2791
2878
|
&[data-portal] {
|
|
2792
2879
|
position: fixed;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { AnyElementProps } from
|
|
2
|
-
import { ElementType, ReactElement, ReactNode } from
|
|
3
|
-
export type DropDownButtonProps<TTag extends ElementType =
|
|
1
|
+
import { AnyElementProps } from "../types";
|
|
2
|
+
import { ElementType, ReactElement, ReactNode } from "react";
|
|
3
|
+
export type DropDownButtonProps<TTag extends ElementType = "button"> = Omit<MenuButtonProps<TTag>, "as" | "className"> & {
|
|
4
4
|
arrow?: boolean | ReactNode;
|
|
5
5
|
as?: TTag | ElementType;
|
|
6
6
|
className?: string;
|
|
7
7
|
};
|
|
8
|
-
export type DropDownItemProps<TTag extends ElementType =
|
|
9
|
-
export type DropDownItemsProps = Omit<MenuItemsProps,
|
|
8
|
+
export type DropDownItemProps<TTag extends ElementType = "div"> = Omit<MenuItemProps<TTag>, "as"> & AnyElementProps<TTag>;
|
|
9
|
+
export type DropDownItemsProps = Omit<MenuItemsProps, "className" | "transition"> & {
|
|
10
10
|
className?: string;
|
|
11
11
|
containerClassName?: string;
|
|
12
12
|
};
|
|
13
13
|
export type DropDownProps = MenuProps;
|
|
14
14
|
export type DropDownSectionProps = MenuSectionProps & {
|
|
15
|
-
label?:
|
|
16
|
-
labelProps?: Omit<MenuHeadingProps,
|
|
15
|
+
label?: ReactNode;
|
|
16
|
+
labelProps?: Omit<MenuHeadingProps, "children"> & {
|
|
17
17
|
/** @deprecated Use `label` instead. */
|
|
18
18
|
children?: never;
|
|
19
19
|
};
|
|
20
20
|
separatorAbove?: boolean;
|
|
21
21
|
separatorBelow?: boolean;
|
|
22
22
|
};
|
|
23
|
-
export type DropDownSeparatorProps<TTag extends ElementType =
|
|
24
|
-
import { MenuButtonProps, MenuHeadingProps, MenuItemProps, MenuItemsProps, MenuProps, MenuSectionProps, MenuSeparatorProps } from
|
|
25
|
-
export declare function DropDownButton<TTag extends ElementType =
|
|
26
|
-
export declare function DropDownItem<TTag extends ElementType =
|
|
23
|
+
export type DropDownSeparatorProps<TTag extends ElementType = "div"> = Omit<MenuSeparatorProps<TTag>, "as"> & AnyElementProps<TTag>;
|
|
24
|
+
import { MenuButtonProps, MenuHeadingProps, MenuItemProps, MenuItemsProps, MenuProps, MenuSectionProps, MenuSeparatorProps } from "@headlessui/react";
|
|
25
|
+
export declare function DropDownButton<TTag extends ElementType = "button">({ arrow, as, children, className, ...props }: DropDownButtonProps<TTag>): ReactElement;
|
|
26
|
+
export declare function DropDownItem<TTag extends ElementType = "div">({ as, ...props }: DropDownItemProps<TTag>): ReactElement;
|
|
27
27
|
export declare function DropDownItems({ anchor, children, className, containerClassName, style, ...props }: DropDownItemsProps): ReactElement;
|
|
28
28
|
export declare function DropDownSection({ children, label, labelProps, separatorAbove, separatorBelow, ...props }: DropDownSectionProps): ReactElement;
|
|
29
|
-
export declare function DropDownSeparator<TTag extends ElementType =
|
|
29
|
+
export declare function DropDownSeparator<TTag extends ElementType = "div">({ as, className, ...props }: DropDownSeparatorProps<TTag>): ReactElement;
|
|
30
30
|
export declare function DropDown(props: DropDownProps): ReactElement;
|
|
31
31
|
//# sourceMappingURL=drop-down.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drop-down.d.ts","sourceRoot":"","sources":["../../src/components/drop-down.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"drop-down.d.ts","sourceRoot":"","sources":["../../src/components/drop-down.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7D,MAAM,MAAM,mBAAmB,CAAC,IAAI,SAAS,WAAW,GAAG,QAAQ,IAChE,IAAI,CACL,eAAe,CAAC,IAAI,CAAC,EACrB,IAAI,GAAG,WAAW,CAClB,GACC;IACD,KAAK,C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EACR,EAAE,mBAAmB,CAAC,IAAI,CAAC,GAAG,YAAY,CAiB1C;AAED,wBAAgB,YAAY,CAAC,IAAI,SAAS,WAAW,GAAG,KAAK,EAAE,EAC9D,EAAE,EACF,GAAG,KAAK,EACR,EAAE,iBAAiB,CAAC,IAAI,CAAC,GAAG,YAAY,CAExC;AAED,wBAAgB,aAAa,CAAC,EAC7B,MAAM,EACN,QAAQ,EACR,SAAS,EACT,kBAAkB,EAClB,KAAK,EACL,GAAG,KAAK,EACR,EAAE,kBAAkB,GAAG,YAAY,CA+CnC;AAED,wBAAgB,eAAe,CAAC,EAC/B,QAAQ,EACR,KAAK,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACd,GAAG,KAAK,EACR,EAAE,oBAAoB,GAAG,YAAY,CAkCrC;AAED,wBAAgB,iBAAiB,CAAC,IAAI,SAAS,WAAW,GAAG,KAAK,EAAE,EACnE,EAAE,EACF,SAAS,EACT,GAAG,KAAK,EACR,EAAE,sBAAsB,CAAC,IAAI,CAAC,GAAG,YAAY,CAY7C;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,YAAY,CAE3D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type HumanVerificationProps = {
|
|
2
|
+
children?: string;
|
|
3
|
+
className?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare function validateHuman(token: string): Promise<{
|
|
6
|
+
error: string;
|
|
7
|
+
success?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
success: boolean;
|
|
10
|
+
error?: undefined;
|
|
11
|
+
}>;
|
|
12
|
+
export declare function generateHumanValidationToken(): Promise<string>;
|
|
13
|
+
export declare function HumanVerification({ children, className }: HumanVerificationProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=human-verification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"human-verification.d.ts","sourceRoot":"","sources":["../../../src/components/form/human-verification.tsx"],"names":[],"mappings":"AACA,KAAK,sBAAsB,GAAG;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAyEF,wBAAsB,aAAa,CAAC,KAAK,EAAE,MAAM;;;;;;GA4ChD;AAED,wBAAsB,4BAA4B,oBAoFjD;AAED,wBAAgB,iBAAiB,CAChC,EAAE,QAAmB,EAAE,SAAS,EAAE,EAAE,sBAAsB,2CAsK1D"}
|
|
@@ -27,7 +27,6 @@ import { FormContext, FormStatus } from '../../hooks';
|
|
|
27
27
|
export declare function Form<T extends ElementType = 'form'>({ controlled, initialStatus, ...props }: FormProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
28
28
|
export * from './fieldset';
|
|
29
29
|
export * from './input';
|
|
30
|
-
export * from './select';
|
|
31
30
|
export * from './submit-button';
|
|
32
31
|
export * from './textarea';
|
|
33
32
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/form/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7C,MAAM,MAAM,cAAc,GAAG;IAC5B,KAAK,EAAE,SAAS,CAAC,eAAe,CAAC,CAAA;IACjC,WAAW,EAAE,WAAW,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,WAAW,GAAG,MAAM,IAAI,IAAI,CAC3D,eAAe,CACd,CAAC,EACD;IACC,UAAU,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAA;IACvC,YAAY,CAAC,EAAE,gBAAgB,CAAC,eAAe,CAAC,CAAA;IAChD,aAAa,CAAC,EAAE,UAAU,CAAA;IAC1B,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,SAAS,CAAC,eAAe,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;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
-
export type DateMinMax = Date | [number, DateTimeObject['month'], DateTimeObject['day']] | Pick<DateTimeObject, 'day' | 'month' | 'year'>;
|
|
4
2
|
export type DateOrTimeSelectorType = 'dropdown' | 'rotary';
|
|
5
3
|
export type DateSelectorType = DateOrTimeSelectorType | 'calendar';
|
|
6
|
-
export type
|
|
7
|
-
number,
|
|
8
|
-
DateTimeObject['month'],
|
|
9
|
-
DateTimeObject['day'],
|
|
10
|
-
DateTimeObject['hour'],
|
|
11
|
-
DateTimeObject['minute'],
|
|
12
|
-
DateTimeObject['second']
|
|
13
|
-
] | DateTimeObject;
|
|
4
|
+
export type TimeSelectorType = DateOrTimeSelectorType | 'clock';
|
|
14
5
|
export type DateAndTimeSelectorType = DateOrTimeSelectorType | 'clock-and-calendar';
|
|
15
|
-
export type
|
|
16
|
-
date: DateSelectorType | DateSelectorType[] | {
|
|
17
|
-
desktop: DateSelectorType | DateSelectorType[];
|
|
18
|
-
mobile: DateSelectorType | DateSelectorType[];
|
|
19
|
-
};
|
|
20
|
-
time: TimeSelectorType | TimeSelectorType[] | {
|
|
21
|
-
desktop: TimeSelectorType | TimeSelectorType[];
|
|
22
|
-
mobile: TimeSelectorType | TimeSelectorType[];
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
export type DateTimeInputProps = BaseInputComponentProps & OneOf<[
|
|
6
|
+
export type DateTimeInputProps = OneOf<[
|
|
26
7
|
{
|
|
27
8
|
type: 'date';
|
|
28
9
|
/** Using an array, offers multiple, defaulting to the first listed option. */
|
|
29
|
-
ui?:
|
|
10
|
+
ui?: DateSelectorType | DateSelectorType[] | {
|
|
11
|
+
desktop: DateSelectorType | DateSelectorType[];
|
|
12
|
+
mobile: DateSelectorType | DateSelectorType[];
|
|
13
|
+
};
|
|
30
14
|
},
|
|
31
15
|
{
|
|
32
16
|
type: 'datetime';
|
|
33
17
|
/** Using an array, offers multiple, defaulting to the first listed option. */
|
|
34
|
-
ui?:
|
|
18
|
+
ui?: DateAndTimeSelectorType | DateAndTimeSelectorType[] | {
|
|
19
|
+
desktop: DateAndTimeSelectorType | DateAndTimeSelectorType[];
|
|
20
|
+
mobile: DateAndTimeSelectorType | DateAndTimeSelectorType[];
|
|
21
|
+
};
|
|
35
22
|
},
|
|
36
23
|
{
|
|
37
24
|
type: 'time';
|
|
38
25
|
/** Using an array, offers multiple, defaulting to the first listed option. */
|
|
39
|
-
ui?:
|
|
26
|
+
ui?: TimeSelectorType | TimeSelectorType[] | {
|
|
27
|
+
desktop: TimeSelectorType | TimeSelectorType[];
|
|
28
|
+
mobile: TimeSelectorType | TimeSelectorType[];
|
|
29
|
+
};
|
|
40
30
|
}
|
|
41
31
|
]> & {
|
|
42
32
|
max?: Date;
|
|
43
33
|
min?: Date;
|
|
44
34
|
theme?: ColorTheme;
|
|
45
35
|
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
mobile: DateSelectorType | DateSelectorType[];
|
|
49
|
-
};
|
|
50
|
-
export type TimeMinMax = Date | [DateTimeObject['hour'], DateTimeObject['minute'], DateTimeObject['second']] | Pick<DateTimeObject, 'hour' | 'minute' | 'second'>;
|
|
51
|
-
export type TimeSelectorType = DateOrTimeSelectorType | 'clock';
|
|
52
|
-
export type TimeUIOption = TimeSelectorType | TimeSelectorType[] | {
|
|
53
|
-
desktop: TimeSelectorType | TimeSelectorType[];
|
|
54
|
-
mobile: TimeSelectorType | TimeSelectorType[];
|
|
55
|
-
};
|
|
56
|
-
import { DateTimeObject } from '../../../../utils';
|
|
57
|
-
export declare function DateTimeInput({ className, fieldContextID, handleBlur, handleChange, ref, theme, type, ui, ...props }: DateTimeInputProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
import { ReactElement } from 'react';
|
|
37
|
+
export declare function DateTimeInput({ theme, type, ui, ...props }: DateTimeInputProps): ReactElement;
|
|
58
38
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/input/date/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/input/date/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAErD,MAAM,MAAM,sBAAsB,GAAG,UAAU,GAAG,QAAQ,CAAA;AAE1D,MAAM,MAAM,gBAAgB,GAAG,sBAAsB,GAAG,UAAU,CAAA;AAElE,MAAM,MAAM,gBAAgB,GAAG,sBAAsB,GAAG,OAAO,CAAA;AAE/D,MAAM,MAAM,uBAAuB,GAAG,sBAAsB,GAAG,oBAAoB,CAAA;AAEnF,MAAM,MAAM,kBAAkB,GAAG,KAAK,CACrC;IACC;QACC,IAAI,EAAE,MAAM,CAAA;QACZ,8EAA8E;QAC9E,EAAE,CAAC,EACA,gBAAgB,GAChB,gBAAgB,EAAE,GAClB;YACA,OAAO,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,CAAA;YAC9C,MAAM,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,CAAA;SAC5C,CAAA;KACJ;IACD;QACC,IAAI,EAAE,UAAU,CAAA;QAChB,8EAA8E;QAC9E,EAAE,CAAC,EACA,uBAAuB,GACvB,uBAAuB,EAAE,GACzB;YACA,OAAO,EAAE,uBAAuB,GAAG,uBAAuB,EAAE,CAAA;YAC5D,MAAM,EAAE,uBAAuB,GAAG,uBAAuB,EAAE,CAAA;SAC1D,CAAA;KACJ;IACD;QACC,IAAI,EAAE,MAAM,CAAA;QACZ,8EAA8E;QAC9E,EAAE,CAAC,EACA,gBAAgB,GAChB,gBAAgB,EAAE,GAClB;YACA,OAAO,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,CAAA;YAC9C,MAAM,EAAE,gBAAgB,GAAG,gBAAgB,EAAE,CAAA;SAC5C,CAAA;KACJ;CACD,CACD,GAAG;IACH,GAAG,CAAC,EAAE,IAAI,CAAA;IACV,GAAG,CAAC,EAAE,IAAI,CAAA;IACV,KAAK,CAAC,EAAE,UAAU,CAAA;CAClB,CAAA;AAGD,OAAO,EAAE,YAAY,EAAa,MAAM,OAAO,CAAA;AAK/C,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,GAAG,YAAY,CAe7F"}
|
|
@@ -1,20 +1,103 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { OneOf } from "../../../types";
|
|
2
|
+
type DateMinMax = Date | [number, DateTimeObject["month"], DateTimeObject["day"]] | Pick<DateTimeObject, "day" | "month" | "year">;
|
|
3
|
+
type DateTimeMinMax = Date | [
|
|
4
|
+
number,
|
|
5
|
+
DateTimeObject["month"],
|
|
6
|
+
DateTimeObject["day"],
|
|
7
|
+
DateTimeObject["hour"],
|
|
8
|
+
DateTimeObject["minute"],
|
|
9
|
+
DateTimeObject["second"]
|
|
10
|
+
] | DateTimeObject;
|
|
11
|
+
type TimeMinMax = [DateTimeObject["hour"], DateTimeObject["minute"], DateTimeObject["second"]] | Pick<DateTimeObject, "hour" | "minute" | "second">;
|
|
12
|
+
type WeekMinMax = [number, WeekNumber];
|
|
13
|
+
type InputType = OneOf<[
|
|
14
|
+
{
|
|
15
|
+
type?: "date";
|
|
16
|
+
min?: DateMinMax;
|
|
17
|
+
max?: DateMinMax;
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
type?: "datetime" | "datetime-local";
|
|
21
|
+
min?: DateTimeMinMax;
|
|
22
|
+
max?: DateTimeMinMax;
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
type?: "number";
|
|
26
|
+
max?: number;
|
|
27
|
+
min?: number;
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
type?: "password";
|
|
31
|
+
options?: Partial<PasswordOptions>;
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
type?: "tel";
|
|
35
|
+
options?: Partial<PhoneOptions>;
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
type?: "time";
|
|
39
|
+
min?: TimeMinMax;
|
|
40
|
+
max?: TimeMinMax;
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
type?: "week";
|
|
44
|
+
min?: WeekMinMax;
|
|
45
|
+
max?: WeekMinMax;
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
type?: Exclude<HTMLInputTypeAttribute, "date" | "datetime" | "datetime-local" | "number" | "password" | "tel" | "time" | "week">;
|
|
49
|
+
}
|
|
50
|
+
]>;
|
|
51
|
+
export type InputProps = Omit<HeadlessInputProps, "max" | "min" | "name" | "type"> & InputType & {
|
|
3
52
|
description?: ReactNode;
|
|
4
|
-
descriptionProps?: Omit<DescriptionProps,
|
|
53
|
+
descriptionProps?: Omit<DescriptionProps, "children"> & {
|
|
5
54
|
/** @deprecated Use the `description` prop instead. */
|
|
6
55
|
children?: never;
|
|
7
56
|
};
|
|
8
|
-
fieldProps?: Omit<FieldProps,
|
|
57
|
+
fieldProps?: Omit<FieldProps, "children" | "disabled">;
|
|
9
58
|
label?: ReactNode;
|
|
10
|
-
labelProps?: Omit<LabelProps,
|
|
59
|
+
labelProps?: Omit<LabelProps, "children"> & {
|
|
11
60
|
/** @deprecated Use the `label` prop instead. */
|
|
12
61
|
children?: never;
|
|
13
62
|
};
|
|
14
63
|
name: string;
|
|
15
64
|
ref?: RefObject<HTMLInputElement | null>;
|
|
16
65
|
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
66
|
+
type PasswordOptions = {
|
|
67
|
+
matchPreviousInput: boolean;
|
|
68
|
+
requireLowercaseCharacter: boolean;
|
|
69
|
+
requireNumber: boolean;
|
|
70
|
+
requireSpecialCharacter: boolean;
|
|
71
|
+
requireUppercaseCharacter: boolean;
|
|
72
|
+
};
|
|
73
|
+
type PhoneOptions = {
|
|
74
|
+
countryCode: string;
|
|
75
|
+
/**
|
|
76
|
+
* @example
|
|
77
|
+
* format: 'continuous'
|
|
78
|
+
* returns: 5555555555
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* format: 'dot'
|
|
82
|
+
* returns: 555.555.5555
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* format: 'hyphenated'
|
|
86
|
+
* returns: 555-555-5555
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* format: 'space'
|
|
90
|
+
* returns: 555 555 5555
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* format: 'standard' (default)
|
|
94
|
+
* returns: (555) 555-5555
|
|
95
|
+
*/
|
|
96
|
+
format: "continuous" | "dot" | "hyphenated" | "none" | "space" | "standard";
|
|
97
|
+
};
|
|
98
|
+
import { HTMLInputTypeAttribute, ReactElement, ReactNode, RefObject } from "react";
|
|
99
|
+
import { DescriptionProps, FieldProps, InputProps as HeadlessInputProps, LabelProps } from "@headlessui/react";
|
|
100
|
+
import { DateTimeObject, WeekNumber } from "../../../utils";
|
|
101
|
+
export declare function Input({ checked, className, defaultValue, description, descriptionProps, disabled, fieldProps, invalid, label, labelProps, max, min, name, onBlur, onChange, options, placeholder, ref, required, type, value, ...props }: InputProps): ReactElement;
|
|
102
|
+
export {};
|
|
20
103
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form/input/index.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form/input/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,KAAK,UAAU,GACZ,IAAI,GACJ,CAAC,MAAM,EAAE,cAAc,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC,GACx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