@dododog/ui 0.16.0 → 0.17.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/dist/{chunk-R4G5LFPN.js → chunk-2NMA3AXV.js} +37 -8
- package/dist/{chunk-Z7CF7EQJ.mjs → chunk-52M2KUC4.mjs} +37 -8
- package/dist/chunk-DUCRCDLI.mjs +78 -0
- package/dist/{chunk-HH4X2JYO.js → chunk-EKOGDJUT.js} +32 -4
- package/dist/{chunk-QWDKSY6Y.js → chunk-OZ4RJDDZ.js} +46 -2
- package/dist/{chunk-762LQMWP.js → chunk-RAXPJ7VC.js} +66 -8
- package/dist/{chunk-N5ZNXNCO.mjs → chunk-UYOPZZBN.mjs} +32 -4
- package/dist/chunk-YGAWCP65.mjs +109 -0
- package/dist/components/Modal/index.d.mts +42 -1
- package/dist/components/Modal/index.d.ts +42 -1
- package/dist/components/Modal/index.js +2 -2
- package/dist/components/Modal/index.mjs +1 -1
- package/dist/components/SegmentedControl/index.d.mts +16 -0
- package/dist/components/SegmentedControl/index.d.ts +16 -0
- package/dist/components/SegmentedControl/index.js +2 -2
- package/dist/components/SegmentedControl/index.mjs +1 -1
- package/dist/components/Tabs/index.d.mts +21 -0
- package/dist/components/Tabs/index.d.ts +21 -0
- package/dist/components/Tabs/index.js +2 -2
- package/dist/components/Tabs/index.mjs +1 -1
- package/dist/components/Textarea/index.js +3 -3
- package/dist/components/Textarea/index.mjs +1 -1
- package/dist/index.d.mts +16 -3
- package/dist/index.d.ts +16 -3
- package/dist/index.js +112 -110
- package/dist/index.mjs +23 -21
- package/package.json +11 -11
- package/dist/chunk-36Y7UU32.mjs +0 -34
- package/dist/chunk-VOZPGXQD.mjs +0 -51
package/dist/index.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk7IJOHVNJ_js = require('./chunk-7IJOHVNJ.js');
|
|
4
|
-
var
|
|
4
|
+
var chunk2NMA3AXV_js = require('./chunk-2NMA3AXV.js');
|
|
5
5
|
var chunkVTELEOT7_js = require('./chunk-VTELEOT7.js');
|
|
6
6
|
var chunkDTIYZ3TQ_js = require('./chunk-DTIYZ3TQ.js');
|
|
7
7
|
var chunkE6ZNND75_js = require('./chunk-E6ZNND75.js');
|
|
8
8
|
var chunkBXFU7V2X_js = require('./chunk-BXFU7V2X.js');
|
|
9
9
|
var chunkN3JU7JS7_js = require('./chunk-N3JU7JS7.js');
|
|
10
|
-
var
|
|
10
|
+
var chunkXHRDPJTF_js = require('./chunk-XHRDPJTF.js');
|
|
11
11
|
var chunkTT7L3ZU7_js = require('./chunk-TT7L3ZU7.js');
|
|
12
12
|
var chunkCWXP2ZI2_js = require('./chunk-CWXP2ZI2.js');
|
|
13
13
|
var chunkDFXXGKMI_js = require('./chunk-DFXXGKMI.js');
|
|
14
|
-
var chunk3VU6TPAT_js = require('./chunk-3VU6TPAT.js');
|
|
15
14
|
var chunkOTHB7MU7_js = require('./chunk-OTHB7MU7.js');
|
|
15
|
+
var chunk3VU6TPAT_js = require('./chunk-3VU6TPAT.js');
|
|
16
16
|
var chunkJUB3NGJR_js = require('./chunk-JUB3NGJR.js');
|
|
17
|
-
var
|
|
17
|
+
var chunkRAXPJ7VC_js = require('./chunk-RAXPJ7VC.js');
|
|
18
18
|
var chunk6KW7ZSKR_js = require('./chunk-6KW7ZSKR.js');
|
|
19
19
|
var chunkSEHALSKW_js = require('./chunk-SEHALSKW.js');
|
|
20
|
-
var
|
|
20
|
+
var chunkOZ4RJDDZ_js = require('./chunk-OZ4RJDDZ.js');
|
|
21
|
+
var chunkOGB5LIXN_js = require('./chunk-OGB5LIXN.js');
|
|
21
22
|
var chunkUSJDHMKS_js = require('./chunk-USJDHMKS.js');
|
|
23
|
+
var chunkDS4LM7OS_js = require('./chunk-DS4LM7OS.js');
|
|
22
24
|
var chunkWXSBKARZ_js = require('./chunk-WXSBKARZ.js');
|
|
23
|
-
var chunkOGB5LIXN_js = require('./chunk-OGB5LIXN.js');
|
|
24
|
-
var chunkXHRDPJTF_js = require('./chunk-XHRDPJTF.js');
|
|
25
25
|
var chunkSCGN5H6D_js = require('./chunk-SCGN5H6D.js');
|
|
26
26
|
var chunkB4LR4H6R_js = require('./chunk-B4LR4H6R.js');
|
|
27
|
-
var chunkPG4I4NWO_js = require('./chunk-PG4I4NWO.js');
|
|
28
27
|
var chunkPRDIS2VR_js = require('./chunk-PRDIS2VR.js');
|
|
29
28
|
var chunkRTI25IBR_js = require('./chunk-RTI25IBR.js');
|
|
30
29
|
var chunkTZHT7NZU_js = require('./chunk-TZHT7NZU.js');
|
|
30
|
+
var chunkPG4I4NWO_js = require('./chunk-PG4I4NWO.js');
|
|
31
31
|
var chunkKFQILIZO_js = require('./chunk-KFQILIZO.js');
|
|
32
32
|
var chunkNCU5PY34_js = require('./chunk-NCU5PY34.js');
|
|
33
33
|
var chunkHS3MAW3G_js = require('./chunk-HS3MAW3G.js');
|
|
@@ -38,44 +38,44 @@ var chunkW7DZZS6L_js = require('./chunk-W7DZZS6L.js');
|
|
|
38
38
|
var chunkTE4WHZ4Q_js = require('./chunk-TE4WHZ4Q.js');
|
|
39
39
|
var chunkHN6B4TAW_js = require('./chunk-HN6B4TAW.js');
|
|
40
40
|
var chunkKZSGVMUG_js = require('./chunk-KZSGVMUG.js');
|
|
41
|
-
var
|
|
41
|
+
var chunkEKOGDJUT_js = require('./chunk-EKOGDJUT.js');
|
|
42
42
|
var chunkZCQJN4IT_js = require('./chunk-ZCQJN4IT.js');
|
|
43
|
-
var chunkEQPT6VZF_js = require('./chunk-EQPT6VZF.js');
|
|
44
43
|
var chunkKOO5ZXLD_js = require('./chunk-KOO5ZXLD.js');
|
|
45
44
|
var chunkIRKM5UF4_js = require('./chunk-IRKM5UF4.js');
|
|
46
45
|
var chunkECVKFE6U_js = require('./chunk-ECVKFE6U.js');
|
|
47
46
|
var chunkYN4HPIRC_js = require('./chunk-YN4HPIRC.js');
|
|
47
|
+
var chunkEQPT6VZF_js = require('./chunk-EQPT6VZF.js');
|
|
48
48
|
var chunkMKOKWME3_js = require('./chunk-MKOKWME3.js');
|
|
49
49
|
var chunkDLOHAW74_js = require('./chunk-DLOHAW74.js');
|
|
50
|
-
|
|
50
|
+
require('./chunk-VNURXHKK.js');
|
|
51
51
|
var chunkJWQ2OUEG_js = require('./chunk-JWQ2OUEG.js');
|
|
52
|
-
var chunkT5FLQQP6_js = require('./chunk-T5FLQQP6.js');
|
|
53
52
|
var chunkXOFTU3T7_js = require('./chunk-XOFTU3T7.js');
|
|
54
|
-
var chunkIEHX4DU6_js = require('./chunk-IEHX4DU6.js');
|
|
55
53
|
var chunkS5TLUDNM_js = require('./chunk-S5TLUDNM.js');
|
|
54
|
+
var chunkIEHX4DU6_js = require('./chunk-IEHX4DU6.js');
|
|
55
|
+
var chunkT5FLQQP6_js = require('./chunk-T5FLQQP6.js');
|
|
56
56
|
var chunk7W3TFPIF_js = require('./chunk-7W3TFPIF.js');
|
|
57
57
|
var chunkTJDHGNMR_js = require('./chunk-TJDHGNMR.js');
|
|
58
58
|
var chunkMY6BYO5F_js = require('./chunk-MY6BYO5F.js');
|
|
59
|
-
var chunkOUN5BU4Z_js = require('./chunk-OUN5BU4Z.js');
|
|
60
59
|
var chunkP7GAKOCX_js = require('./chunk-P7GAKOCX.js');
|
|
60
|
+
var chunkOUN5BU4Z_js = require('./chunk-OUN5BU4Z.js');
|
|
61
|
+
var chunkXBNIHUSG_js = require('./chunk-XBNIHUSG.js');
|
|
61
62
|
var chunkDJTFRMRY_js = require('./chunk-DJTFRMRY.js');
|
|
62
63
|
var chunkE24VNM6S_js = require('./chunk-E24VNM6S.js');
|
|
63
|
-
var chunkXBNIHUSG_js = require('./chunk-XBNIHUSG.js');
|
|
64
64
|
var chunkXXC2YD3D_js = require('./chunk-XXC2YD3D.js');
|
|
65
|
-
require('./chunk-
|
|
66
|
-
var chunkFHAWYXPX_js = require('./chunk-FHAWYXPX.js');
|
|
65
|
+
var chunkBS7R7VDS_js = require('./chunk-BS7R7VDS.js');
|
|
67
66
|
var chunkEY4ZIR3P_js = require('./chunk-EY4ZIR3P.js');
|
|
68
67
|
var chunkZ5S7LHMY_js = require('./chunk-Z5S7LHMY.js');
|
|
68
|
+
var chunk6EG6EAHW_js = require('./chunk-6EG6EAHW.js');
|
|
69
|
+
var chunkG3LZ32WA_js = require('./chunk-G3LZ32WA.js');
|
|
70
|
+
var chunkHB2XJOBZ_js = require('./chunk-HB2XJOBZ.js');
|
|
69
71
|
var chunkPND5YKFN_js = require('./chunk-PND5YKFN.js');
|
|
70
72
|
var chunkH3JNRTAI_js = require('./chunk-H3JNRTAI.js');
|
|
71
73
|
var chunkYZTVHCLK_js = require('./chunk-YZTVHCLK.js');
|
|
72
74
|
var chunkZAUYE2EI_js = require('./chunk-ZAUYE2EI.js');
|
|
73
|
-
var chunk6EG6EAHW_js = require('./chunk-6EG6EAHW.js');
|
|
74
75
|
var chunk73BHQJW6_js = require('./chunk-73BHQJW6.js');
|
|
75
|
-
var chunkG3LZ32WA_js = require('./chunk-G3LZ32WA.js');
|
|
76
|
-
var chunkHB2XJOBZ_js = require('./chunk-HB2XJOBZ.js');
|
|
77
76
|
var chunkWBRVUWGC_js = require('./chunk-WBRVUWGC.js');
|
|
78
77
|
var chunkWXEZA6NE_js = require('./chunk-WXEZA6NE.js');
|
|
78
|
+
var chunkFHAWYXPX_js = require('./chunk-FHAWYXPX.js');
|
|
79
79
|
var chunkADIDI7AJ_js = require('./chunk-ADIDI7AJ.js');
|
|
80
80
|
var React = require('react');
|
|
81
81
|
var classVarianceAuthority = require('class-variance-authority');
|
|
@@ -275,6 +275,7 @@ var MD_COLS = {
|
|
|
275
275
|
};
|
|
276
276
|
function DogFriendlyPanel({
|
|
277
277
|
title = "Voyager avec votre chien",
|
|
278
|
+
headingLevel = 3,
|
|
278
279
|
confirmed = false,
|
|
279
280
|
confirmedLabel = "Confirm\xE9 par l'\xE9tablissement",
|
|
280
281
|
unconfirmedLabel = "Informations \xE0 confirmer",
|
|
@@ -284,6 +285,7 @@ function DogFriendlyPanel({
|
|
|
284
285
|
...props
|
|
285
286
|
}) {
|
|
286
287
|
const mdCols = MD_COLS[Math.min(stats.length, 4)] ?? "md:grid-cols-4";
|
|
288
|
+
const Heading = `h${headingLevel}`;
|
|
287
289
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
288
290
|
"section",
|
|
289
291
|
{
|
|
@@ -296,7 +298,7 @@ function DogFriendlyPanel({
|
|
|
296
298
|
/* @__PURE__ */ jsxRuntime.jsxs("header", { className: "mb-4 flex items-center gap-3", children: [
|
|
297
299
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-secondary text-white", children: /* @__PURE__ */ jsxRuntime.jsx(PawIcon, { className: "h-6 w-6" }) }),
|
|
298
300
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
299
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
301
|
+
/* @__PURE__ */ jsxRuntime.jsx(Heading, { className: "font-heading text-lg font-bold leading-tight text-primary", children: title }),
|
|
300
302
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
301
303
|
"p",
|
|
302
304
|
{
|
|
@@ -532,11 +534,11 @@ Object.defineProperty(exports, "tagVariants", {
|
|
|
532
534
|
});
|
|
533
535
|
Object.defineProperty(exports, "Textarea", {
|
|
534
536
|
enumerable: true,
|
|
535
|
-
get: function () { return
|
|
537
|
+
get: function () { return chunk2NMA3AXV_js.Textarea; }
|
|
536
538
|
});
|
|
537
539
|
Object.defineProperty(exports, "textareaVariants", {
|
|
538
540
|
enumerable: true,
|
|
539
|
-
get: function () { return
|
|
541
|
+
get: function () { return chunk2NMA3AXV_js.textareaVariants; }
|
|
540
542
|
});
|
|
541
543
|
Object.defineProperty(exports, "Toast", {
|
|
542
544
|
enumerable: true,
|
|
@@ -562,9 +564,13 @@ Object.defineProperty(exports, "VerticalMarquee", {
|
|
|
562
564
|
enumerable: true,
|
|
563
565
|
get: function () { return chunkN3JU7JS7_js.VerticalMarquee; }
|
|
564
566
|
});
|
|
565
|
-
Object.defineProperty(exports, "
|
|
567
|
+
Object.defineProperty(exports, "Spinner", {
|
|
566
568
|
enumerable: true,
|
|
567
|
-
get: function () { return
|
|
569
|
+
get: function () { return chunkXHRDPJTF_js.Spinner; }
|
|
570
|
+
});
|
|
571
|
+
Object.defineProperty(exports, "spinnerVariants", {
|
|
572
|
+
enumerable: true,
|
|
573
|
+
get: function () { return chunkXHRDPJTF_js.spinnerVariants; }
|
|
568
574
|
});
|
|
569
575
|
Object.defineProperty(exports, "StatCard", {
|
|
570
576
|
enumerable: true,
|
|
@@ -582,14 +588,14 @@ Object.defineProperty(exports, "statusBadgeVariants", {
|
|
|
582
588
|
enumerable: true,
|
|
583
589
|
get: function () { return chunkDFXXGKMI_js.statusBadgeVariants; }
|
|
584
590
|
});
|
|
585
|
-
Object.defineProperty(exports, "Stepper", {
|
|
586
|
-
enumerable: true,
|
|
587
|
-
get: function () { return chunk3VU6TPAT_js.Stepper; }
|
|
588
|
-
});
|
|
589
591
|
Object.defineProperty(exports, "StayListRow", {
|
|
590
592
|
enumerable: true,
|
|
591
593
|
get: function () { return chunkOTHB7MU7_js.StayListRow; }
|
|
592
594
|
});
|
|
595
|
+
Object.defineProperty(exports, "Stepper", {
|
|
596
|
+
enumerable: true,
|
|
597
|
+
get: function () { return chunk3VU6TPAT_js.Stepper; }
|
|
598
|
+
});
|
|
593
599
|
Object.defineProperty(exports, "Switch", {
|
|
594
600
|
enumerable: true,
|
|
595
601
|
get: function () { return chunkJUB3NGJR_js.Switch; }
|
|
@@ -604,7 +610,7 @@ Object.defineProperty(exports, "switchTrackVariants", {
|
|
|
604
610
|
});
|
|
605
611
|
Object.defineProperty(exports, "Tabs", {
|
|
606
612
|
enumerable: true,
|
|
607
|
-
get: function () { return
|
|
613
|
+
get: function () { return chunkRAXPJ7VC_js.Tabs; }
|
|
608
614
|
});
|
|
609
615
|
Object.defineProperty(exports, "SearchLoadingChecklist", {
|
|
610
616
|
enumerable: true,
|
|
@@ -616,7 +622,11 @@ Object.defineProperty(exports, "SearchWidget", {
|
|
|
616
622
|
});
|
|
617
623
|
Object.defineProperty(exports, "SegmentedControl", {
|
|
618
624
|
enumerable: true,
|
|
619
|
-
get: function () { return
|
|
625
|
+
get: function () { return chunkOZ4RJDDZ_js.SegmentedControl; }
|
|
626
|
+
});
|
|
627
|
+
Object.defineProperty(exports, "SectionHeader", {
|
|
628
|
+
enumerable: true,
|
|
629
|
+
get: function () { return chunkOGB5LIXN_js.SectionHeader; }
|
|
620
630
|
});
|
|
621
631
|
Object.defineProperty(exports, "Select", {
|
|
622
632
|
enumerable: true,
|
|
@@ -626,6 +636,10 @@ Object.defineProperty(exports, "selectVariants", {
|
|
|
626
636
|
enumerable: true,
|
|
627
637
|
get: function () { return chunkUSJDHMKS_js.selectVariants; }
|
|
628
638
|
});
|
|
639
|
+
Object.defineProperty(exports, "Sidebar", {
|
|
640
|
+
enumerable: true,
|
|
641
|
+
get: function () { return chunkDS4LM7OS_js.Sidebar; }
|
|
642
|
+
});
|
|
629
643
|
Object.defineProperty(exports, "SignInCallout", {
|
|
630
644
|
enumerable: true,
|
|
631
645
|
get: function () { return chunkWXSBKARZ_js.SignInCallout; }
|
|
@@ -634,18 +648,6 @@ Object.defineProperty(exports, "signInCalloutVariants", {
|
|
|
634
648
|
enumerable: true,
|
|
635
649
|
get: function () { return chunkWXSBKARZ_js.signInCalloutVariants; }
|
|
636
650
|
});
|
|
637
|
-
Object.defineProperty(exports, "SectionHeader", {
|
|
638
|
-
enumerable: true,
|
|
639
|
-
get: function () { return chunkOGB5LIXN_js.SectionHeader; }
|
|
640
|
-
});
|
|
641
|
-
Object.defineProperty(exports, "Spinner", {
|
|
642
|
-
enumerable: true,
|
|
643
|
-
get: function () { return chunkXHRDPJTF_js.Spinner; }
|
|
644
|
-
});
|
|
645
|
-
Object.defineProperty(exports, "spinnerVariants", {
|
|
646
|
-
enumerable: true,
|
|
647
|
-
get: function () { return chunkXHRDPJTF_js.spinnerVariants; }
|
|
648
|
-
});
|
|
649
651
|
Object.defineProperty(exports, "Pagination", {
|
|
650
652
|
enumerable: true,
|
|
651
653
|
get: function () { return chunkSCGN5H6D_js.Pagination; }
|
|
@@ -654,18 +656,6 @@ Object.defineProperty(exports, "PriceDisplay", {
|
|
|
654
656
|
enumerable: true,
|
|
655
657
|
get: function () { return chunkB4LR4H6R_js.PriceDisplay; }
|
|
656
658
|
});
|
|
657
|
-
Object.defineProperty(exports, "ProgressBar", {
|
|
658
|
-
enumerable: true,
|
|
659
|
-
get: function () { return chunkPG4I4NWO_js.ProgressBar; }
|
|
660
|
-
});
|
|
661
|
-
Object.defineProperty(exports, "progressBarVariants", {
|
|
662
|
-
enumerable: true,
|
|
663
|
-
get: function () { return chunkPG4I4NWO_js.progressBarVariants; }
|
|
664
|
-
});
|
|
665
|
-
Object.defineProperty(exports, "progressFillVariants", {
|
|
666
|
-
enumerable: true,
|
|
667
|
-
get: function () { return chunkPG4I4NWO_js.progressFillVariants; }
|
|
668
|
-
});
|
|
669
659
|
Object.defineProperty(exports, "PromoBanner", {
|
|
670
660
|
enumerable: true,
|
|
671
661
|
get: function () { return chunkPRDIS2VR_js.PromoBanner; }
|
|
@@ -682,6 +672,18 @@ Object.defineProperty(exports, "Rating", {
|
|
|
682
672
|
enumerable: true,
|
|
683
673
|
get: function () { return chunkTZHT7NZU_js.Rating; }
|
|
684
674
|
});
|
|
675
|
+
Object.defineProperty(exports, "ProgressBar", {
|
|
676
|
+
enumerable: true,
|
|
677
|
+
get: function () { return chunkPG4I4NWO_js.ProgressBar; }
|
|
678
|
+
});
|
|
679
|
+
Object.defineProperty(exports, "progressBarVariants", {
|
|
680
|
+
enumerable: true,
|
|
681
|
+
get: function () { return chunkPG4I4NWO_js.progressBarVariants; }
|
|
682
|
+
});
|
|
683
|
+
Object.defineProperty(exports, "progressFillVariants", {
|
|
684
|
+
enumerable: true,
|
|
685
|
+
get: function () { return chunkPG4I4NWO_js.progressFillVariants; }
|
|
686
|
+
});
|
|
685
687
|
Object.defineProperty(exports, "RoomTypeCard", {
|
|
686
688
|
enumerable: true,
|
|
687
689
|
get: function () { return chunkKFQILIZO_js.RoomTypeCard; }
|
|
@@ -744,16 +746,12 @@ Object.defineProperty(exports, "MobileMenu", {
|
|
|
744
746
|
});
|
|
745
747
|
Object.defineProperty(exports, "Modal", {
|
|
746
748
|
enumerable: true,
|
|
747
|
-
get: function () { return
|
|
749
|
+
get: function () { return chunkEKOGDJUT_js.Modal; }
|
|
748
750
|
});
|
|
749
751
|
Object.defineProperty(exports, "FloatingDock", {
|
|
750
752
|
enumerable: true,
|
|
751
753
|
get: function () { return chunkZCQJN4IT_js.FloatingDock; }
|
|
752
754
|
});
|
|
753
|
-
Object.defineProperty(exports, "Footer", {
|
|
754
|
-
enumerable: true,
|
|
755
|
-
get: function () { return chunkEQPT6VZF_js.Footer; }
|
|
756
|
-
});
|
|
757
755
|
Object.defineProperty(exports, "GuestPicker", {
|
|
758
756
|
enumerable: true,
|
|
759
757
|
get: function () { return chunkKOO5ZXLD_js.GuestPicker; }
|
|
@@ -774,6 +772,10 @@ Object.defineProperty(exports, "iconBadgeVariants", {
|
|
|
774
772
|
enumerable: true,
|
|
775
773
|
get: function () { return chunkYN4HPIRC_js.iconBadgeVariants; }
|
|
776
774
|
});
|
|
775
|
+
Object.defineProperty(exports, "Footer", {
|
|
776
|
+
enumerable: true,
|
|
777
|
+
get: function () { return chunkEQPT6VZF_js.Footer; }
|
|
778
|
+
});
|
|
777
779
|
Object.defineProperty(exports, "ImageGallery", {
|
|
778
780
|
enumerable: true,
|
|
779
781
|
get: function () { return chunkMKOKWME3_js.ImageGallery; }
|
|
@@ -782,29 +784,25 @@ Object.defineProperty(exports, "ImageWithFallback", {
|
|
|
782
784
|
enumerable: true,
|
|
783
785
|
get: function () { return chunkDLOHAW74_js.ImageWithFallback; }
|
|
784
786
|
});
|
|
785
|
-
Object.defineProperty(exports, "DogCard", {
|
|
786
|
-
enumerable: true,
|
|
787
|
-
get: function () { return chunkBS7R7VDS_js.DogCard; }
|
|
788
|
-
});
|
|
789
787
|
Object.defineProperty(exports, "Drawer", {
|
|
790
788
|
enumerable: true,
|
|
791
789
|
get: function () { return chunkJWQ2OUEG_js.Drawer; }
|
|
792
790
|
});
|
|
793
|
-
Object.defineProperty(exports, "DropdownMenu", {
|
|
794
|
-
enumerable: true,
|
|
795
|
-
get: function () { return chunkT5FLQQP6_js.DropdownMenu; }
|
|
796
|
-
});
|
|
797
791
|
Object.defineProperty(exports, "DualRangeSlider", {
|
|
798
792
|
enumerable: true,
|
|
799
793
|
get: function () { return chunkXOFTU3T7_js.DualRangeSlider; }
|
|
800
794
|
});
|
|
795
|
+
Object.defineProperty(exports, "ErrorBoundary", {
|
|
796
|
+
enumerable: true,
|
|
797
|
+
get: function () { return chunkS5TLUDNM_js.ErrorBoundary; }
|
|
798
|
+
});
|
|
801
799
|
Object.defineProperty(exports, "EmptyState", {
|
|
802
800
|
enumerable: true,
|
|
803
801
|
get: function () { return chunkIEHX4DU6_js.EmptyState; }
|
|
804
802
|
});
|
|
805
|
-
Object.defineProperty(exports, "
|
|
803
|
+
Object.defineProperty(exports, "DropdownMenu", {
|
|
806
804
|
enumerable: true,
|
|
807
|
-
get: function () { return
|
|
805
|
+
get: function () { return chunkT5FLQQP6_js.DropdownMenu; }
|
|
808
806
|
});
|
|
809
807
|
Object.defineProperty(exports, "FilterAccordion", {
|
|
810
808
|
enumerable: true,
|
|
@@ -818,13 +816,17 @@ Object.defineProperty(exports, "CardList", {
|
|
|
818
816
|
enumerable: true,
|
|
819
817
|
get: function () { return chunkMY6BYO5F_js.CardList; }
|
|
820
818
|
});
|
|
819
|
+
Object.defineProperty(exports, "Carousel", {
|
|
820
|
+
enumerable: true,
|
|
821
|
+
get: function () { return chunkP7GAKOCX_js.Carousel; }
|
|
822
|
+
});
|
|
821
823
|
Object.defineProperty(exports, "Checkbox", {
|
|
822
824
|
enumerable: true,
|
|
823
825
|
get: function () { return chunkOUN5BU4Z_js.Checkbox; }
|
|
824
826
|
});
|
|
825
|
-
Object.defineProperty(exports, "
|
|
827
|
+
Object.defineProperty(exports, "Counter", {
|
|
826
828
|
enumerable: true,
|
|
827
|
-
get: function () { return
|
|
829
|
+
get: function () { return chunkXBNIHUSG_js.Counter; }
|
|
828
830
|
});
|
|
829
831
|
Object.defineProperty(exports, "DatePickerInput", {
|
|
830
832
|
enumerable: true,
|
|
@@ -838,21 +840,13 @@ Object.defineProperty(exports, "DetailList", {
|
|
|
838
840
|
enumerable: true,
|
|
839
841
|
get: function () { return chunkE24VNM6S_js.DetailList; }
|
|
840
842
|
});
|
|
841
|
-
Object.defineProperty(exports, "Counter", {
|
|
842
|
-
enumerable: true,
|
|
843
|
-
get: function () { return chunkXBNIHUSG_js.Counter; }
|
|
844
|
-
});
|
|
845
843
|
Object.defineProperty(exports, "Divider", {
|
|
846
844
|
enumerable: true,
|
|
847
845
|
get: function () { return chunkXXC2YD3D_js.Divider; }
|
|
848
846
|
});
|
|
849
|
-
Object.defineProperty(exports, "
|
|
850
|
-
enumerable: true,
|
|
851
|
-
get: function () { return chunkFHAWYXPX_js.Autocomplete; }
|
|
852
|
-
});
|
|
853
|
-
Object.defineProperty(exports, "autocompleteInputVariants", {
|
|
847
|
+
Object.defineProperty(exports, "DogCard", {
|
|
854
848
|
enumerable: true,
|
|
855
|
-
get: function () { return
|
|
849
|
+
get: function () { return chunkBS7R7VDS_js.DogCard; }
|
|
856
850
|
});
|
|
857
851
|
Object.defineProperty(exports, "Avatar", {
|
|
858
852
|
enumerable: true,
|
|
@@ -866,6 +860,34 @@ Object.defineProperty(exports, "badgeVariants", {
|
|
|
866
860
|
enumerable: true,
|
|
867
861
|
get: function () { return chunkZ5S7LHMY_js.badgeVariants; }
|
|
868
862
|
});
|
|
863
|
+
Object.defineProperty(exports, "Banner", {
|
|
864
|
+
enumerable: true,
|
|
865
|
+
get: function () { return chunk6EG6EAHW_js.Banner; }
|
|
866
|
+
});
|
|
867
|
+
Object.defineProperty(exports, "bannerVariants", {
|
|
868
|
+
enumerable: true,
|
|
869
|
+
get: function () { return chunk6EG6EAHW_js.bannerVariants; }
|
|
870
|
+
});
|
|
871
|
+
Object.defineProperty(exports, "ActiveStayCard", {
|
|
872
|
+
enumerable: true,
|
|
873
|
+
get: function () { return chunkG3LZ32WA_js.ActiveStayCard; }
|
|
874
|
+
});
|
|
875
|
+
Object.defineProperty(exports, "DOG_AVATAR_COLORS", {
|
|
876
|
+
enumerable: true,
|
|
877
|
+
get: function () { return chunkHB2XJOBZ_js.DOG_AVATAR_COLORS; }
|
|
878
|
+
});
|
|
879
|
+
Object.defineProperty(exports, "DogAvatar", {
|
|
880
|
+
enumerable: true,
|
|
881
|
+
get: function () { return chunkHB2XJOBZ_js.DogAvatar; }
|
|
882
|
+
});
|
|
883
|
+
Object.defineProperty(exports, "DogAvatarStack", {
|
|
884
|
+
enumerable: true,
|
|
885
|
+
get: function () { return chunkHB2XJOBZ_js.DogAvatarStack; }
|
|
886
|
+
});
|
|
887
|
+
Object.defineProperty(exports, "dogAvatarColor", {
|
|
888
|
+
enumerable: true,
|
|
889
|
+
get: function () { return chunkHB2XJOBZ_js.dogAvatarColor; }
|
|
890
|
+
});
|
|
869
891
|
Object.defineProperty(exports, "BottomNavBar", {
|
|
870
892
|
enumerable: true,
|
|
871
893
|
get: function () { return chunkPND5YKFN_js.BottomNavBar; }
|
|
@@ -914,38 +936,10 @@ Object.defineProperty(exports, "cardVariants", {
|
|
|
914
936
|
enumerable: true,
|
|
915
937
|
get: function () { return chunkZAUYE2EI_js.cardVariants; }
|
|
916
938
|
});
|
|
917
|
-
Object.defineProperty(exports, "Banner", {
|
|
918
|
-
enumerable: true,
|
|
919
|
-
get: function () { return chunk6EG6EAHW_js.Banner; }
|
|
920
|
-
});
|
|
921
|
-
Object.defineProperty(exports, "bannerVariants", {
|
|
922
|
-
enumerable: true,
|
|
923
|
-
get: function () { return chunk6EG6EAHW_js.bannerVariants; }
|
|
924
|
-
});
|
|
925
939
|
Object.defineProperty(exports, "Accordion", {
|
|
926
940
|
enumerable: true,
|
|
927
941
|
get: function () { return chunk73BHQJW6_js.Accordion; }
|
|
928
942
|
});
|
|
929
|
-
Object.defineProperty(exports, "ActiveStayCard", {
|
|
930
|
-
enumerable: true,
|
|
931
|
-
get: function () { return chunkG3LZ32WA_js.ActiveStayCard; }
|
|
932
|
-
});
|
|
933
|
-
Object.defineProperty(exports, "DOG_AVATAR_COLORS", {
|
|
934
|
-
enumerable: true,
|
|
935
|
-
get: function () { return chunkHB2XJOBZ_js.DOG_AVATAR_COLORS; }
|
|
936
|
-
});
|
|
937
|
-
Object.defineProperty(exports, "DogAvatar", {
|
|
938
|
-
enumerable: true,
|
|
939
|
-
get: function () { return chunkHB2XJOBZ_js.DogAvatar; }
|
|
940
|
-
});
|
|
941
|
-
Object.defineProperty(exports, "DogAvatarStack", {
|
|
942
|
-
enumerable: true,
|
|
943
|
-
get: function () { return chunkHB2XJOBZ_js.DogAvatarStack; }
|
|
944
|
-
});
|
|
945
|
-
Object.defineProperty(exports, "dogAvatarColor", {
|
|
946
|
-
enumerable: true,
|
|
947
|
-
get: function () { return chunkHB2XJOBZ_js.dogAvatarColor; }
|
|
948
|
-
});
|
|
949
943
|
Object.defineProperty(exports, "Alert", {
|
|
950
944
|
enumerable: true,
|
|
951
945
|
get: function () { return chunkWBRVUWGC_js.Alert; }
|
|
@@ -954,6 +948,14 @@ Object.defineProperty(exports, "AnchorTabs", {
|
|
|
954
948
|
enumerable: true,
|
|
955
949
|
get: function () { return chunkWXEZA6NE_js.AnchorTabs; }
|
|
956
950
|
});
|
|
951
|
+
Object.defineProperty(exports, "Autocomplete", {
|
|
952
|
+
enumerable: true,
|
|
953
|
+
get: function () { return chunkFHAWYXPX_js.Autocomplete; }
|
|
954
|
+
});
|
|
955
|
+
Object.defineProperty(exports, "autocompleteInputVariants", {
|
|
956
|
+
enumerable: true,
|
|
957
|
+
get: function () { return chunkFHAWYXPX_js.autocompleteInputVariants; }
|
|
958
|
+
});
|
|
957
959
|
Object.defineProperty(exports, "cn", {
|
|
958
960
|
enumerable: true,
|
|
959
961
|
get: function () { return chunkADIDI7AJ_js.cn; }
|
package/dist/index.mjs
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
export { Tag, tagVariants } from './chunk-WOG6V7OW.mjs';
|
|
2
|
-
export { Textarea, textareaVariants } from './chunk-
|
|
2
|
+
export { Textarea, textareaVariants } from './chunk-52M2KUC4.mjs';
|
|
3
3
|
export { Toast, toastVariants } from './chunk-YVTUUNAX.mjs';
|
|
4
4
|
export { Toggle } from './chunk-2AB5ZHY5.mjs';
|
|
5
5
|
export { Tooltip } from './chunk-2MJTZ6RR.mjs';
|
|
6
6
|
export { TripHeroCard } from './chunk-LO2XNMZO.mjs';
|
|
7
7
|
export { VerticalMarquee } from './chunk-JP5ZR2HI.mjs';
|
|
8
|
-
export {
|
|
8
|
+
export { Spinner, spinnerVariants } from './chunk-NCSFXSOZ.mjs';
|
|
9
9
|
export { StatCard } from './chunk-O2W7NR33.mjs';
|
|
10
10
|
export { StatTile } from './chunk-ZEPXWD6U.mjs';
|
|
11
11
|
export { StatusBadge, statusBadgeVariants } from './chunk-FZ7UNXSC.mjs';
|
|
12
|
-
export { Stepper } from './chunk-2ASKBL63.mjs';
|
|
13
12
|
export { StayListRow } from './chunk-IVCQVBOT.mjs';
|
|
13
|
+
export { Stepper } from './chunk-2ASKBL63.mjs';
|
|
14
14
|
export { Switch, switchThumbVariants, switchTrackVariants } from './chunk-PBXH4I5N.mjs';
|
|
15
|
-
export { Tabs } from './chunk-
|
|
15
|
+
export { Tabs } from './chunk-YGAWCP65.mjs';
|
|
16
16
|
export { SearchLoadingChecklist } from './chunk-SRYZ4N7T.mjs';
|
|
17
17
|
export { SearchWidget } from './chunk-DUT3ABEI.mjs';
|
|
18
|
-
export { SegmentedControl } from './chunk-
|
|
18
|
+
export { SegmentedControl } from './chunk-DUCRCDLI.mjs';
|
|
19
|
+
export { SectionHeader } from './chunk-DM76AK4A.mjs';
|
|
19
20
|
export { Select, selectVariants } from './chunk-WNBZXXFA.mjs';
|
|
21
|
+
export { Sidebar } from './chunk-MPL35D5G.mjs';
|
|
20
22
|
export { SignInCallout, signInCalloutVariants } from './chunk-Z3KRMKHP.mjs';
|
|
21
|
-
export { SectionHeader } from './chunk-DM76AK4A.mjs';
|
|
22
|
-
export { Spinner, spinnerVariants } from './chunk-NCSFXSOZ.mjs';
|
|
23
23
|
export { Pagination } from './chunk-XQVODPHL.mjs';
|
|
24
24
|
export { PriceDisplay } from './chunk-REXLQTNE.mjs';
|
|
25
|
-
export { ProgressBar, progressBarVariants, progressFillVariants } from './chunk-UGYMWWKT.mjs';
|
|
26
25
|
export { PromoBanner, promoBannerVariants } from './chunk-FNDR3WOZ.mjs';
|
|
27
26
|
export { RadioGroup } from './chunk-RBVTV3LA.mjs';
|
|
28
27
|
export { Rating } from './chunk-SGDC4IVX.mjs';
|
|
28
|
+
export { ProgressBar, progressBarVariants, progressFillVariants } from './chunk-UGYMWWKT.mjs';
|
|
29
29
|
export { RoomTypeCard, RoomTypeCardSkeleton } from './chunk-IGBEBAPY.mjs';
|
|
30
30
|
export { Skeleton, SkeletonCircle, SkeletonImage, SkeletonText } from './chunk-PAHSQMXV.mjs';
|
|
31
31
|
export { SearchBar } from './chunk-KQK7LFWM.mjs';
|
|
@@ -36,44 +36,44 @@ export { LinkCard } from './chunk-UYDZKAGZ.mjs';
|
|
|
36
36
|
export { LoadingOverlay } from './chunk-WVEJS2J2.mjs';
|
|
37
37
|
export { MegaMenu } from './chunk-EUEM2D5M.mjs';
|
|
38
38
|
export { MobileMenu } from './chunk-R4DC7XPP.mjs';
|
|
39
|
-
export { Modal } from './chunk-
|
|
39
|
+
export { Modal } from './chunk-UYOPZZBN.mjs';
|
|
40
40
|
export { FloatingDock } from './chunk-P2SGBTKS.mjs';
|
|
41
|
-
export { Footer } from './chunk-4DHZ6MIL.mjs';
|
|
42
41
|
export { GuestPicker } from './chunk-EJ7LDW7E.mjs';
|
|
43
42
|
export { Header } from './chunk-PPDKQ3FF.mjs';
|
|
44
43
|
export { HotelCard } from './chunk-XSSRFA5O.mjs';
|
|
45
44
|
export { IconBadge, iconBadgeVariants } from './chunk-I4WCNTNP.mjs';
|
|
45
|
+
export { Footer } from './chunk-4DHZ6MIL.mjs';
|
|
46
46
|
export { ImageGallery } from './chunk-QU6ZRLKO.mjs';
|
|
47
47
|
export { ImageWithFallback } from './chunk-BUXVK2HE.mjs';
|
|
48
|
-
|
|
48
|
+
import './chunk-OZULAGYL.mjs';
|
|
49
49
|
export { Drawer } from './chunk-5KOWMIWK.mjs';
|
|
50
|
-
export { DropdownMenu } from './chunk-Q7BKR6O7.mjs';
|
|
51
50
|
export { DualRangeSlider } from './chunk-PZZWQ6IG.mjs';
|
|
52
|
-
export { EmptyState } from './chunk-OCUHCDAQ.mjs';
|
|
53
51
|
export { ErrorBoundary } from './chunk-5257MWFI.mjs';
|
|
52
|
+
export { EmptyState } from './chunk-OCUHCDAQ.mjs';
|
|
53
|
+
export { DropdownMenu } from './chunk-Q7BKR6O7.mjs';
|
|
54
54
|
export { FilterAccordion } from './chunk-VQVRKRSM.mjs';
|
|
55
55
|
export { FilterPill } from './chunk-YKBASX5A.mjs';
|
|
56
56
|
export { CardList } from './chunk-RJWHPHHX.mjs';
|
|
57
|
-
export { Checkbox } from './chunk-KWQKC5TG.mjs';
|
|
58
57
|
export { Carousel } from './chunk-OOPP4ES2.mjs';
|
|
58
|
+
export { Checkbox } from './chunk-KWQKC5TG.mjs';
|
|
59
|
+
export { Counter } from './chunk-WY24TZ4R.mjs';
|
|
59
60
|
export { DatePickerInput, DateRangePicker } from './chunk-CPBDDGRX.mjs';
|
|
60
61
|
export { DetailList } from './chunk-N6THLJIG.mjs';
|
|
61
|
-
export { Counter } from './chunk-WY24TZ4R.mjs';
|
|
62
62
|
export { Divider } from './chunk-E4B6LXK7.mjs';
|
|
63
|
-
|
|
64
|
-
export { Autocomplete, autocompleteInputVariants } from './chunk-RGZHSI2G.mjs';
|
|
63
|
+
export { DogCard } from './chunk-4A3AQ66D.mjs';
|
|
65
64
|
export { Avatar } from './chunk-2POGTS27.mjs';
|
|
66
65
|
export { Badge, badgeVariants } from './chunk-XZU2SISM.mjs';
|
|
66
|
+
export { Banner, bannerVariants } from './chunk-LFIZX2S6.mjs';
|
|
67
|
+
export { ActiveStayCard } from './chunk-CRQ4XOCC.mjs';
|
|
68
|
+
export { DOG_AVATAR_COLORS, DogAvatar, DogAvatarStack, dogAvatarColor } from './chunk-AGNY5DBW.mjs';
|
|
67
69
|
export { BottomNavBar } from './chunk-UQRQZLMQ.mjs';
|
|
68
70
|
export { Breadcrumb, breadcrumbVariants } from './chunk-UKCH6RYL.mjs';
|
|
69
71
|
export { Button, buttonVariants } from './chunk-4U5MNA3B.mjs';
|
|
70
72
|
export { Card, CardContent, CardDescription, CardImage, CardTitle, cardImageVariants, cardVariants } from './chunk-V5J2XLPD.mjs';
|
|
71
|
-
export { Banner, bannerVariants } from './chunk-LFIZX2S6.mjs';
|
|
72
73
|
export { Accordion } from './chunk-YOMOULLR.mjs';
|
|
73
|
-
export { ActiveStayCard } from './chunk-CRQ4XOCC.mjs';
|
|
74
|
-
export { DOG_AVATAR_COLORS, DogAvatar, DogAvatarStack, dogAvatarColor } from './chunk-AGNY5DBW.mjs';
|
|
75
74
|
export { Alert } from './chunk-BQWVWK74.mjs';
|
|
76
75
|
export { AnchorTabs } from './chunk-M2H6QUAL.mjs';
|
|
76
|
+
export { Autocomplete, autocompleteInputVariants } from './chunk-RGZHSI2G.mjs';
|
|
77
77
|
import { cn } from './chunk-IMKLN273.mjs';
|
|
78
78
|
export { cn } from './chunk-IMKLN273.mjs';
|
|
79
79
|
import * as React from 'react';
|
|
@@ -254,6 +254,7 @@ var MD_COLS = {
|
|
|
254
254
|
};
|
|
255
255
|
function DogFriendlyPanel({
|
|
256
256
|
title = "Voyager avec votre chien",
|
|
257
|
+
headingLevel = 3,
|
|
257
258
|
confirmed = false,
|
|
258
259
|
confirmedLabel = "Confirm\xE9 par l'\xE9tablissement",
|
|
259
260
|
unconfirmedLabel = "Informations \xE0 confirmer",
|
|
@@ -263,6 +264,7 @@ function DogFriendlyPanel({
|
|
|
263
264
|
...props
|
|
264
265
|
}) {
|
|
265
266
|
const mdCols = MD_COLS[Math.min(stats.length, 4)] ?? "md:grid-cols-4";
|
|
267
|
+
const Heading = `h${headingLevel}`;
|
|
266
268
|
return /* @__PURE__ */ jsxs(
|
|
267
269
|
"section",
|
|
268
270
|
{
|
|
@@ -275,7 +277,7 @@ function DogFriendlyPanel({
|
|
|
275
277
|
/* @__PURE__ */ jsxs("header", { className: "mb-4 flex items-center gap-3", children: [
|
|
276
278
|
/* @__PURE__ */ jsx("span", { className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-xl bg-secondary text-white", children: /* @__PURE__ */ jsx(PawIcon, { className: "h-6 w-6" }) }),
|
|
277
279
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
278
|
-
/* @__PURE__ */ jsx(
|
|
280
|
+
/* @__PURE__ */ jsx(Heading, { className: "font-heading text-lg font-bold leading-tight text-primary", children: title }),
|
|
279
281
|
/* @__PURE__ */ jsxs(
|
|
280
282
|
"p",
|
|
281
283
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dododog/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "React UI component library for ToutouTrip — pet-friendly travel platform",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "MIT",
|
|
@@ -417,19 +417,25 @@
|
|
|
417
417
|
"main": "./dist/index.js",
|
|
418
418
|
"module": "./dist/index.mjs",
|
|
419
419
|
"types": "./dist/index.d.ts",
|
|
420
|
+
"scripts": {
|
|
421
|
+
"build": "NODE_OPTIONS='--max-old-space-size=8192' tsup",
|
|
422
|
+
"dev": "tsup --watch",
|
|
423
|
+
"lint": "eslint . --max-warnings 0",
|
|
424
|
+
"clean": "rm -rf .turbo node_modules dist"
|
|
425
|
+
},
|
|
420
426
|
"peerDependencies": {
|
|
421
427
|
"react": ">=18",
|
|
422
428
|
"tailwindcss": ">=3"
|
|
423
429
|
},
|
|
424
430
|
"devDependencies": {
|
|
431
|
+
"@toutoutrip/eslint-config": "workspace:*",
|
|
432
|
+
"@toutoutrip/typescript-config": "workspace:*",
|
|
425
433
|
"@types/react": "^18.2.61",
|
|
426
434
|
"@types/react-dom": "^18.2.19",
|
|
427
435
|
"eslint": "^8.57.0",
|
|
428
436
|
"react": "^18.2.0",
|
|
429
437
|
"tsup": "^8.0.2",
|
|
430
|
-
"typescript": "5.5.4"
|
|
431
|
-
"@toutoutrip/eslint-config": "0.0.0",
|
|
432
|
-
"@toutoutrip/typescript-config": "0.0.0"
|
|
438
|
+
"typescript": "5.5.4"
|
|
433
439
|
},
|
|
434
440
|
"publishConfig": {
|
|
435
441
|
"access": "public"
|
|
@@ -439,11 +445,5 @@
|
|
|
439
445
|
"class-variance-authority": "^0.7.1",
|
|
440
446
|
"clsx": "^2.1.1",
|
|
441
447
|
"tailwind-merge": "^2.6.1"
|
|
442
|
-
},
|
|
443
|
-
"scripts": {
|
|
444
|
-
"build": "NODE_OPTIONS='--max-old-space-size=8192' tsup",
|
|
445
|
-
"dev": "tsup --watch",
|
|
446
|
-
"lint": "eslint . --max-warnings 0",
|
|
447
|
-
"clean": "rm -rf .turbo node_modules dist"
|
|
448
448
|
}
|
|
449
|
-
}
|
|
449
|
+
}
|
package/dist/chunk-36Y7UU32.mjs
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { cn } from './chunk-IMKLN273.mjs';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
var SegmentedControl = React.forwardRef(
|
|
6
|
-
({ options, value, onChange, className }, ref) => {
|
|
7
|
-
return /* @__PURE__ */ jsx(
|
|
8
|
-
"div",
|
|
9
|
-
{
|
|
10
|
-
ref,
|
|
11
|
-
className: cn("flex gap-1 bg-gray-100 rounded-full p-1", className),
|
|
12
|
-
role: "radiogroup",
|
|
13
|
-
children: options.map((option) => /* @__PURE__ */ jsx(
|
|
14
|
-
"button",
|
|
15
|
-
{
|
|
16
|
-
type: "button",
|
|
17
|
-
role: "radio",
|
|
18
|
-
"aria-checked": value === option.value,
|
|
19
|
-
onClick: () => onChange(option.value),
|
|
20
|
-
className: cn(
|
|
21
|
-
"px-3 py-1.5 text-sm rounded-full transition-all",
|
|
22
|
-
value === option.value ? "bg-white text-gray-900 shadow-sm font-medium" : "text-gray-600 hover:text-gray-900"
|
|
23
|
-
),
|
|
24
|
-
children: option.label
|
|
25
|
-
},
|
|
26
|
-
option.value
|
|
27
|
-
))
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
SegmentedControl.displayName = "SegmentedControl";
|
|
33
|
-
|
|
34
|
-
export { SegmentedControl };
|