@dododog/ui 0.14.0 → 0.15.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/README.md +3 -3
- package/dist/{chunk-SZ3SV4SJ.mjs → chunk-4DHZ6MIL.mjs} +1 -1
- package/dist/chunk-5KOWMIWK.mjs +110 -0
- package/dist/{chunk-77WKG2D7.js → chunk-5UNG2O64.js} +38 -8
- package/dist/{chunk-MCF3EQTV.js → chunk-73BHQJW6.js} +13 -1
- package/dist/{chunk-U3XWNFHH.js → chunk-A3M3XQ35.js} +96 -29
- package/dist/chunk-BKM5VCUS.mjs +569 -0
- package/dist/{chunk-333YD5QI.mjs → chunk-EAATIFYL.mjs} +40 -6
- package/dist/{chunk-C4RZBOKH.js → chunk-EQPT6VZF.js} +1 -1
- package/dist/chunk-FLKEMER2.js +592 -0
- package/dist/{chunk-NBDPT3XQ.js → chunk-HH4X2JYO.js} +94 -15
- package/dist/{chunk-I4S3R6C6.js → chunk-JUB3NGJR.js} +51 -6
- package/dist/{chunk-GRG4USTC.mjs → chunk-JWOV5H6G.mjs} +38 -8
- package/dist/chunk-JWQ2OUEG.js +132 -0
- package/dist/{chunk-3R7PT3JG.js → chunk-LJSMPON7.js} +40 -6
- package/dist/chunk-N5ZNXNCO.mjs +178 -0
- package/dist/{chunk-DMCMWOBJ.mjs → chunk-PBXH4I5N.mjs} +51 -6
- package/dist/{chunk-ERL3WXNY.mjs → chunk-PZZWQ6IG.mjs} +5 -5
- package/dist/{chunk-GBWVIY3C.mjs → chunk-UJEIFKSK.mjs} +96 -29
- package/dist/chunk-WY24TZ4R.mjs +94 -0
- package/dist/chunk-XBNIHUSG.js +116 -0
- package/dist/{chunk-TDGU5Y2P.js → chunk-XOFTU3T7.js} +5 -5
- package/dist/{chunk-NZ7GF6RF.mjs → chunk-YOMOULLR.mjs} +13 -1
- package/dist/components/Accordion/index.js +2 -2
- package/dist/components/Accordion/index.mjs +1 -1
- package/dist/components/Counter/index.d.mts +12 -0
- package/dist/components/Counter/index.d.ts +12 -0
- package/dist/components/Counter/index.js +2 -2
- package/dist/components/Counter/index.mjs +1 -1
- package/dist/components/DateRangePicker/index.d.mts +7 -1
- package/dist/components/DateRangePicker/index.d.ts +7 -1
- package/dist/components/DateRangePicker/index.js +3 -3
- package/dist/components/DateRangePicker/index.mjs +1 -1
- package/dist/components/Drawer/index.d.mts +21 -1
- package/dist/components/Drawer/index.d.ts +21 -1
- package/dist/components/Drawer/index.js +2 -2
- package/dist/components/Drawer/index.mjs +1 -1
- package/dist/components/DualRangeSlider/index.js +2 -2
- package/dist/components/DualRangeSlider/index.mjs +1 -1
- package/dist/components/Footer/index.js +2 -2
- package/dist/components/Footer/index.mjs +1 -1
- package/dist/components/Input/index.js +3 -3
- package/dist/components/Input/index.mjs +1 -1
- package/dist/components/Lightbox/index.d.mts +2 -0
- package/dist/components/Lightbox/index.d.ts +2 -0
- package/dist/components/Lightbox/index.js +2 -2
- package/dist/components/Lightbox/index.mjs +1 -1
- package/dist/components/Modal/index.d.mts +12 -0
- package/dist/components/Modal/index.d.ts +12 -0
- package/dist/components/Modal/index.js +2 -2
- package/dist/components/Modal/index.mjs +1 -1
- package/dist/components/Select/index.d.mts +8 -0
- package/dist/components/Select/index.d.ts +8 -0
- package/dist/components/Select/index.js +3 -3
- package/dist/components/Select/index.mjs +1 -1
- package/dist/components/Switch/index.d.mts +41 -1
- package/dist/components/Switch/index.d.ts +41 -1
- package/dist/components/Switch/index.js +4 -4
- package/dist/components/Switch/index.mjs +1 -1
- package/dist/index.js +45 -45
- package/dist/index.mjs +14 -14
- package/dist/tailwind-preset.d.mts +2 -2
- package/dist/tailwind-preset.d.ts +2 -2
- package/dist/tailwind-preset.js +2 -2
- package/dist/tailwind-preset.mjs +2 -2
- package/package.json +14 -14
- package/dist/chunk-74B2EGKT.mjs +0 -99
- package/dist/chunk-AIA3NHCK.js +0 -373
- package/dist/chunk-FL3GD5FJ.mjs +0 -350
- package/dist/chunk-LRNSVRUN.mjs +0 -55
- package/dist/chunk-T4AT3YCT.js +0 -77
- package/dist/chunk-VWFY24XF.js +0 -89
- package/dist/chunk-ZLF7IL3Y.mjs +0 -67
|
@@ -8,15 +8,55 @@ declare const switchTrackVariants: (props?: ({
|
|
|
8
8
|
declare const switchThumbVariants: (props?: ({
|
|
9
9
|
size?: "sm" | "md" | null | undefined;
|
|
10
10
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
|
-
interface
|
|
11
|
+
interface SwitchBaseProps extends VariantProps<typeof switchTrackVariants> {
|
|
12
12
|
checked?: boolean;
|
|
13
13
|
onCheckedChange?: (checked: boolean) => void;
|
|
14
14
|
disabled?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Libelle visible. C'est la maniere PRIVILEGIEE de nommer un switch : il est
|
|
17
|
+
* rendu dans un `<label>` relie au bouton.
|
|
18
|
+
*/
|
|
15
19
|
label?: string;
|
|
16
20
|
description?: string;
|
|
17
21
|
className?: string;
|
|
22
|
+
/** Nom du champ de formulaire (rend un input cache). */
|
|
18
23
|
name?: string;
|
|
24
|
+
/** Id du bouton. Genere automatiquement si absent. */
|
|
25
|
+
id?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Nom accessible quand aucun `label` visible n'est rendu (le texte est deja
|
|
28
|
+
* porte par un titre voisin, par exemple).
|
|
29
|
+
*/
|
|
30
|
+
"aria-label"?: string;
|
|
31
|
+
/** Id d'un texte deja present dans la page qui sert de nom accessible. */
|
|
32
|
+
"aria-labelledby"?: string;
|
|
33
|
+
/** Id(s) d'un texte descriptif externe, compose avec `description`. */
|
|
34
|
+
"aria-describedby"?: string;
|
|
19
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Au moins UNE source de nom accessible est obligatoire. La contrainte est
|
|
38
|
+
* portee par le type, pas seulement par une convention : un switch sans nom ne
|
|
39
|
+
* compile plus. `name` reste accepte parce que la version publiee de la lib en
|
|
40
|
+
* derive deja l'`aria-label`, et que les appelants s'en servent.
|
|
41
|
+
*/
|
|
42
|
+
type SwitchAccessibleNameProps = {
|
|
43
|
+
label: string;
|
|
44
|
+
} | {
|
|
45
|
+
"aria-label": string;
|
|
46
|
+
} | {
|
|
47
|
+
"aria-labelledby": string;
|
|
48
|
+
} | {
|
|
49
|
+
name: string;
|
|
50
|
+
};
|
|
51
|
+
type SwitchProps = SwitchBaseProps & SwitchAccessibleNameProps;
|
|
52
|
+
/**
|
|
53
|
+
* Un switch DOIT avoir un nom accessible. Les quatre sources acceptees, par
|
|
54
|
+
* ordre de priorite : `label`, `aria-labelledby`, `aria-label`, `name`.
|
|
55
|
+
*
|
|
56
|
+
* La contrainte est appliquee par le TYPE (`SwitchAccessibleNameProps`) : un
|
|
57
|
+
* `<Switch />` nu ne compile pas. L'avertissement en developpement reste le
|
|
58
|
+
* filet des consommateurs JavaScript, qui n'ont pas de verification de types.
|
|
59
|
+
*/
|
|
20
60
|
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
21
61
|
|
|
22
62
|
export { Switch, type SwitchProps, switchThumbVariants, switchTrackVariants };
|
|
@@ -8,15 +8,55 @@ declare const switchTrackVariants: (props?: ({
|
|
|
8
8
|
declare const switchThumbVariants: (props?: ({
|
|
9
9
|
size?: "sm" | "md" | null | undefined;
|
|
10
10
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
|
-
interface
|
|
11
|
+
interface SwitchBaseProps extends VariantProps<typeof switchTrackVariants> {
|
|
12
12
|
checked?: boolean;
|
|
13
13
|
onCheckedChange?: (checked: boolean) => void;
|
|
14
14
|
disabled?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Libelle visible. C'est la maniere PRIVILEGIEE de nommer un switch : il est
|
|
17
|
+
* rendu dans un `<label>` relie au bouton.
|
|
18
|
+
*/
|
|
15
19
|
label?: string;
|
|
16
20
|
description?: string;
|
|
17
21
|
className?: string;
|
|
22
|
+
/** Nom du champ de formulaire (rend un input cache). */
|
|
18
23
|
name?: string;
|
|
24
|
+
/** Id du bouton. Genere automatiquement si absent. */
|
|
25
|
+
id?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Nom accessible quand aucun `label` visible n'est rendu (le texte est deja
|
|
28
|
+
* porte par un titre voisin, par exemple).
|
|
29
|
+
*/
|
|
30
|
+
"aria-label"?: string;
|
|
31
|
+
/** Id d'un texte deja present dans la page qui sert de nom accessible. */
|
|
32
|
+
"aria-labelledby"?: string;
|
|
33
|
+
/** Id(s) d'un texte descriptif externe, compose avec `description`. */
|
|
34
|
+
"aria-describedby"?: string;
|
|
19
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Au moins UNE source de nom accessible est obligatoire. La contrainte est
|
|
38
|
+
* portee par le type, pas seulement par une convention : un switch sans nom ne
|
|
39
|
+
* compile plus. `name` reste accepte parce que la version publiee de la lib en
|
|
40
|
+
* derive deja l'`aria-label`, et que les appelants s'en servent.
|
|
41
|
+
*/
|
|
42
|
+
type SwitchAccessibleNameProps = {
|
|
43
|
+
label: string;
|
|
44
|
+
} | {
|
|
45
|
+
"aria-label": string;
|
|
46
|
+
} | {
|
|
47
|
+
"aria-labelledby": string;
|
|
48
|
+
} | {
|
|
49
|
+
name: string;
|
|
50
|
+
};
|
|
51
|
+
type SwitchProps = SwitchBaseProps & SwitchAccessibleNameProps;
|
|
52
|
+
/**
|
|
53
|
+
* Un switch DOIT avoir un nom accessible. Les quatre sources acceptees, par
|
|
54
|
+
* ordre de priorite : `label`, `aria-labelledby`, `aria-label`, `name`.
|
|
55
|
+
*
|
|
56
|
+
* La contrainte est appliquee par le TYPE (`SwitchAccessibleNameProps`) : un
|
|
57
|
+
* `<Switch />` nu ne compile pas. L'avertissement en developpement reste le
|
|
58
|
+
* filet des consommateurs JavaScript, qui n'ont pas de verification de types.
|
|
59
|
+
*/
|
|
20
60
|
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
21
61
|
|
|
22
62
|
export { Switch, type SwitchProps, switchThumbVariants, switchTrackVariants };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkJUB3NGJR_js = require('../../chunk-JUB3NGJR.js');
|
|
4
4
|
require('../../chunk-ADIDI7AJ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "Switch", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkJUB3NGJR_js.Switch; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "switchThumbVariants", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkJUB3NGJR_js.switchThumbVariants; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "switchTrackVariants", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkJUB3NGJR_js.switchTrackVariants; }
|
|
19
19
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Switch, switchThumbVariants, switchTrackVariants } from '../../chunk-
|
|
1
|
+
export { Switch, switchThumbVariants, switchTrackVariants } from '../../chunk-PBXH4I5N.mjs';
|
|
2
2
|
import '../../chunk-IMKLN273.mjs';
|
package/dist/index.js
CHANGED
|
@@ -13,13 +13,13 @@ var chunkCWXP2ZI2_js = require('./chunk-CWXP2ZI2.js');
|
|
|
13
13
|
var chunkDFXXGKMI_js = require('./chunk-DFXXGKMI.js');
|
|
14
14
|
var chunkOTHB7MU7_js = require('./chunk-OTHB7MU7.js');
|
|
15
15
|
var chunk3VU6TPAT_js = require('./chunk-3VU6TPAT.js');
|
|
16
|
-
var
|
|
16
|
+
var chunkJUB3NGJR_js = require('./chunk-JUB3NGJR.js');
|
|
17
17
|
var chunk762LQMWP_js = require('./chunk-762LQMWP.js');
|
|
18
18
|
var chunk6KW7ZSKR_js = require('./chunk-6KW7ZSKR.js');
|
|
19
19
|
var chunkSEHALSKW_js = require('./chunk-SEHALSKW.js');
|
|
20
20
|
var chunkOGB5LIXN_js = require('./chunk-OGB5LIXN.js');
|
|
21
21
|
var chunkQWDKSY6Y_js = require('./chunk-QWDKSY6Y.js');
|
|
22
|
-
var
|
|
22
|
+
var chunkLJSMPON7_js = require('./chunk-LJSMPON7.js');
|
|
23
23
|
var chunkDS4LM7OS_js = require('./chunk-DS4LM7OS.js');
|
|
24
24
|
var chunkWXSBKARZ_js = require('./chunk-WXSBKARZ.js');
|
|
25
25
|
var chunkSCGN5H6D_js = require('./chunk-SCGN5H6D.js');
|
|
@@ -32,34 +32,34 @@ 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');
|
|
34
34
|
var chunkDFC6XK57_js = require('./chunk-DFC6XK57.js');
|
|
35
|
-
var
|
|
36
|
-
var
|
|
35
|
+
var chunk5UNG2O64_js = require('./chunk-5UNG2O64.js');
|
|
36
|
+
var chunkA3M3XQ35_js = require('./chunk-A3M3XQ35.js');
|
|
37
37
|
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
|
|
42
|
-
var
|
|
43
|
-
var chunkC4RZBOKH_js = require('./chunk-C4RZBOKH.js');
|
|
41
|
+
var chunkHH4X2JYO_js = require('./chunk-HH4X2JYO.js');
|
|
42
|
+
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');
|
|
45
|
+
var chunkS5TLUDNM_js = require('./chunk-S5TLUDNM.js');
|
|
46
46
|
var chunkECVKFE6U_js = require('./chunk-ECVKFE6U.js');
|
|
47
47
|
var chunkYN4HPIRC_js = require('./chunk-YN4HPIRC.js');
|
|
48
48
|
var chunkMKOKWME3_js = require('./chunk-MKOKWME3.js');
|
|
49
49
|
var chunkDLOHAW74_js = require('./chunk-DLOHAW74.js');
|
|
50
50
|
var chunkBS7R7VDS_js = require('./chunk-BS7R7VDS.js');
|
|
51
|
-
var
|
|
51
|
+
var chunkJWQ2OUEG_js = require('./chunk-JWQ2OUEG.js');
|
|
52
52
|
var chunkT5FLQQP6_js = require('./chunk-T5FLQQP6.js');
|
|
53
|
-
var chunkTDGU5Y2P_js = require('./chunk-TDGU5Y2P.js');
|
|
54
53
|
var chunkIEHX4DU6_js = require('./chunk-IEHX4DU6.js');
|
|
55
|
-
var
|
|
54
|
+
var chunkXOFTU3T7_js = require('./chunk-XOFTU3T7.js');
|
|
56
55
|
var chunk7W3TFPIF_js = require('./chunk-7W3TFPIF.js');
|
|
57
56
|
var chunkTJDHGNMR_js = require('./chunk-TJDHGNMR.js');
|
|
58
|
-
var
|
|
57
|
+
var chunkZCQJN4IT_js = require('./chunk-ZCQJN4IT.js');
|
|
59
58
|
var chunkMY6BYO5F_js = require('./chunk-MY6BYO5F.js');
|
|
60
|
-
var
|
|
61
|
-
var chunkAIA3NHCK_js = require('./chunk-AIA3NHCK.js');
|
|
59
|
+
var chunkP7GAKOCX_js = require('./chunk-P7GAKOCX.js');
|
|
62
60
|
var chunkIJIUUBFT_js = require('./chunk-IJIUUBFT.js');
|
|
61
|
+
var chunkXBNIHUSG_js = require('./chunk-XBNIHUSG.js');
|
|
62
|
+
var chunkFLKEMER2_js = require('./chunk-FLKEMER2.js');
|
|
63
63
|
var chunkE24VNM6S_js = require('./chunk-E24VNM6S.js');
|
|
64
64
|
var chunkXXC2YD3D_js = require('./chunk-XXC2YD3D.js');
|
|
65
65
|
require('./chunk-VNURXHKK.js');
|
|
@@ -71,7 +71,7 @@ var chunkPND5YKFN_js = require('./chunk-PND5YKFN.js');
|
|
|
71
71
|
var chunkH3JNRTAI_js = require('./chunk-H3JNRTAI.js');
|
|
72
72
|
var chunkYZTVHCLK_js = require('./chunk-YZTVHCLK.js');
|
|
73
73
|
var chunkZAUYE2EI_js = require('./chunk-ZAUYE2EI.js');
|
|
74
|
-
var
|
|
74
|
+
var chunk73BHQJW6_js = require('./chunk-73BHQJW6.js');
|
|
75
75
|
var chunkG3LZ32WA_js = require('./chunk-G3LZ32WA.js');
|
|
76
76
|
var chunkHB2XJOBZ_js = require('./chunk-HB2XJOBZ.js');
|
|
77
77
|
var chunkWBRVUWGC_js = require('./chunk-WBRVUWGC.js');
|
|
@@ -596,15 +596,15 @@ Object.defineProperty(exports, "Stepper", {
|
|
|
596
596
|
});
|
|
597
597
|
Object.defineProperty(exports, "Switch", {
|
|
598
598
|
enumerable: true,
|
|
599
|
-
get: function () { return
|
|
599
|
+
get: function () { return chunkJUB3NGJR_js.Switch; }
|
|
600
600
|
});
|
|
601
601
|
Object.defineProperty(exports, "switchThumbVariants", {
|
|
602
602
|
enumerable: true,
|
|
603
|
-
get: function () { return
|
|
603
|
+
get: function () { return chunkJUB3NGJR_js.switchThumbVariants; }
|
|
604
604
|
});
|
|
605
605
|
Object.defineProperty(exports, "switchTrackVariants", {
|
|
606
606
|
enumerable: true,
|
|
607
|
-
get: function () { return
|
|
607
|
+
get: function () { return chunkJUB3NGJR_js.switchTrackVariants; }
|
|
608
608
|
});
|
|
609
609
|
Object.defineProperty(exports, "Tabs", {
|
|
610
610
|
enumerable: true,
|
|
@@ -628,11 +628,11 @@ Object.defineProperty(exports, "SegmentedControl", {
|
|
|
628
628
|
});
|
|
629
629
|
Object.defineProperty(exports, "Select", {
|
|
630
630
|
enumerable: true,
|
|
631
|
-
get: function () { return
|
|
631
|
+
get: function () { return chunkLJSMPON7_js.Select; }
|
|
632
632
|
});
|
|
633
633
|
Object.defineProperty(exports, "selectVariants", {
|
|
634
634
|
enumerable: true,
|
|
635
|
-
get: function () { return
|
|
635
|
+
get: function () { return chunkLJSMPON7_js.selectVariants; }
|
|
636
636
|
});
|
|
637
637
|
Object.defineProperty(exports, "Sidebar", {
|
|
638
638
|
enumerable: true,
|
|
@@ -716,15 +716,15 @@ Object.defineProperty(exports, "ImpactCard", {
|
|
|
716
716
|
});
|
|
717
717
|
Object.defineProperty(exports, "Input", {
|
|
718
718
|
enumerable: true,
|
|
719
|
-
get: function () { return
|
|
719
|
+
get: function () { return chunk5UNG2O64_js.Input; }
|
|
720
720
|
});
|
|
721
721
|
Object.defineProperty(exports, "inputVariants", {
|
|
722
722
|
enumerable: true,
|
|
723
|
-
get: function () { return
|
|
723
|
+
get: function () { return chunk5UNG2O64_js.inputVariants; }
|
|
724
724
|
});
|
|
725
725
|
Object.defineProperty(exports, "Lightbox", {
|
|
726
726
|
enumerable: true,
|
|
727
|
-
get: function () { return
|
|
727
|
+
get: function () { return chunkA3M3XQ35_js.Lightbox; }
|
|
728
728
|
});
|
|
729
729
|
Object.defineProperty(exports, "LinkCard", {
|
|
730
730
|
enumerable: true,
|
|
@@ -744,15 +744,11 @@ Object.defineProperty(exports, "MobileMenu", {
|
|
|
744
744
|
});
|
|
745
745
|
Object.defineProperty(exports, "Modal", {
|
|
746
746
|
enumerable: true,
|
|
747
|
-
get: function () { return
|
|
748
|
-
});
|
|
749
|
-
Object.defineProperty(exports, "FloatingDock", {
|
|
750
|
-
enumerable: true,
|
|
751
|
-
get: function () { return chunkZCQJN4IT_js.FloatingDock; }
|
|
747
|
+
get: function () { return chunkHH4X2JYO_js.Modal; }
|
|
752
748
|
});
|
|
753
749
|
Object.defineProperty(exports, "Footer", {
|
|
754
750
|
enumerable: true,
|
|
755
|
-
get: function () { return
|
|
751
|
+
get: function () { return chunkEQPT6VZF_js.Footer; }
|
|
756
752
|
});
|
|
757
753
|
Object.defineProperty(exports, "GuestPicker", {
|
|
758
754
|
enumerable: true,
|
|
@@ -762,6 +758,10 @@ Object.defineProperty(exports, "Header", {
|
|
|
762
758
|
enumerable: true,
|
|
763
759
|
get: function () { return chunkIRKM5UF4_js.Header; }
|
|
764
760
|
});
|
|
761
|
+
Object.defineProperty(exports, "ErrorBoundary", {
|
|
762
|
+
enumerable: true,
|
|
763
|
+
get: function () { return chunkS5TLUDNM_js.ErrorBoundary; }
|
|
764
|
+
});
|
|
765
765
|
Object.defineProperty(exports, "HotelCard", {
|
|
766
766
|
enumerable: true,
|
|
767
767
|
get: function () { return chunkECVKFE6U_js.HotelCard; }
|
|
@@ -788,23 +788,19 @@ Object.defineProperty(exports, "DogCard", {
|
|
|
788
788
|
});
|
|
789
789
|
Object.defineProperty(exports, "Drawer", {
|
|
790
790
|
enumerable: true,
|
|
791
|
-
get: function () { return
|
|
791
|
+
get: function () { return chunkJWQ2OUEG_js.Drawer; }
|
|
792
792
|
});
|
|
793
793
|
Object.defineProperty(exports, "DropdownMenu", {
|
|
794
794
|
enumerable: true,
|
|
795
795
|
get: function () { return chunkT5FLQQP6_js.DropdownMenu; }
|
|
796
796
|
});
|
|
797
|
-
Object.defineProperty(exports, "DualRangeSlider", {
|
|
798
|
-
enumerable: true,
|
|
799
|
-
get: function () { return chunkTDGU5Y2P_js.DualRangeSlider; }
|
|
800
|
-
});
|
|
801
797
|
Object.defineProperty(exports, "EmptyState", {
|
|
802
798
|
enumerable: true,
|
|
803
799
|
get: function () { return chunkIEHX4DU6_js.EmptyState; }
|
|
804
800
|
});
|
|
805
|
-
Object.defineProperty(exports, "
|
|
801
|
+
Object.defineProperty(exports, "DualRangeSlider", {
|
|
806
802
|
enumerable: true,
|
|
807
|
-
get: function () { return
|
|
803
|
+
get: function () { return chunkXOFTU3T7_js.DualRangeSlider; }
|
|
808
804
|
});
|
|
809
805
|
Object.defineProperty(exports, "FilterAccordion", {
|
|
810
806
|
enumerable: true,
|
|
@@ -814,29 +810,33 @@ Object.defineProperty(exports, "FilterPill", {
|
|
|
814
810
|
enumerable: true,
|
|
815
811
|
get: function () { return chunkTJDHGNMR_js.FilterPill; }
|
|
816
812
|
});
|
|
817
|
-
Object.defineProperty(exports, "
|
|
813
|
+
Object.defineProperty(exports, "FloatingDock", {
|
|
818
814
|
enumerable: true,
|
|
819
|
-
get: function () { return
|
|
815
|
+
get: function () { return chunkZCQJN4IT_js.FloatingDock; }
|
|
820
816
|
});
|
|
821
817
|
Object.defineProperty(exports, "CardList", {
|
|
822
818
|
enumerable: true,
|
|
823
819
|
get: function () { return chunkMY6BYO5F_js.CardList; }
|
|
824
820
|
});
|
|
821
|
+
Object.defineProperty(exports, "Carousel", {
|
|
822
|
+
enumerable: true,
|
|
823
|
+
get: function () { return chunkP7GAKOCX_js.Carousel; }
|
|
824
|
+
});
|
|
825
|
+
Object.defineProperty(exports, "Checkbox", {
|
|
826
|
+
enumerable: true,
|
|
827
|
+
get: function () { return chunkIJIUUBFT_js.Checkbox; }
|
|
828
|
+
});
|
|
825
829
|
Object.defineProperty(exports, "Counter", {
|
|
826
830
|
enumerable: true,
|
|
827
|
-
get: function () { return
|
|
831
|
+
get: function () { return chunkXBNIHUSG_js.Counter; }
|
|
828
832
|
});
|
|
829
833
|
Object.defineProperty(exports, "DatePickerInput", {
|
|
830
834
|
enumerable: true,
|
|
831
|
-
get: function () { return
|
|
835
|
+
get: function () { return chunkFLKEMER2_js.DatePickerInput; }
|
|
832
836
|
});
|
|
833
837
|
Object.defineProperty(exports, "DateRangePicker", {
|
|
834
838
|
enumerable: true,
|
|
835
|
-
get: function () { return
|
|
836
|
-
});
|
|
837
|
-
Object.defineProperty(exports, "Checkbox", {
|
|
838
|
-
enumerable: true,
|
|
839
|
-
get: function () { return chunkIJIUUBFT_js.Checkbox; }
|
|
839
|
+
get: function () { return chunkFLKEMER2_js.DateRangePicker; }
|
|
840
840
|
});
|
|
841
841
|
Object.defineProperty(exports, "DetailList", {
|
|
842
842
|
enumerable: true,
|
|
@@ -924,7 +924,7 @@ Object.defineProperty(exports, "cardVariants", {
|
|
|
924
924
|
});
|
|
925
925
|
Object.defineProperty(exports, "Accordion", {
|
|
926
926
|
enumerable: true,
|
|
927
|
-
get: function () { return
|
|
927
|
+
get: function () { return chunk73BHQJW6_js.Accordion; }
|
|
928
928
|
});
|
|
929
929
|
Object.defineProperty(exports, "ActiveStayCard", {
|
|
930
930
|
enumerable: true,
|
package/dist/index.mjs
CHANGED
|
@@ -11,13 +11,13 @@ export { StatTile } from './chunk-ZEPXWD6U.mjs';
|
|
|
11
11
|
export { StatusBadge, statusBadgeVariants } from './chunk-FZ7UNXSC.mjs';
|
|
12
12
|
export { StayListRow } from './chunk-IVCQVBOT.mjs';
|
|
13
13
|
export { Stepper } from './chunk-2ASKBL63.mjs';
|
|
14
|
-
export { Switch, switchThumbVariants, switchTrackVariants } from './chunk-
|
|
14
|
+
export { Switch, switchThumbVariants, switchTrackVariants } from './chunk-PBXH4I5N.mjs';
|
|
15
15
|
export { Tabs } from './chunk-VOZPGXQD.mjs';
|
|
16
16
|
export { SearchLoadingChecklist } from './chunk-SRYZ4N7T.mjs';
|
|
17
17
|
export { SearchWidget } from './chunk-DUT3ABEI.mjs';
|
|
18
18
|
export { SectionHeader } from './chunk-DM76AK4A.mjs';
|
|
19
19
|
export { SegmentedControl } from './chunk-36Y7UU32.mjs';
|
|
20
|
-
export { Select, selectVariants } from './chunk-
|
|
20
|
+
export { Select, selectVariants } from './chunk-EAATIFYL.mjs';
|
|
21
21
|
export { Sidebar } from './chunk-MPL35D5G.mjs';
|
|
22
22
|
export { SignInCallout, signInCalloutVariants } from './chunk-Z3KRMKHP.mjs';
|
|
23
23
|
export { Pagination } from './chunk-XQVODPHL.mjs';
|
|
@@ -30,34 +30,34 @@ 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';
|
|
32
32
|
export { ImpactCard } from './chunk-IKQYFSBW.mjs';
|
|
33
|
-
export { Input, inputVariants } from './chunk-
|
|
34
|
-
export { Lightbox } from './chunk-
|
|
33
|
+
export { Input, inputVariants } from './chunk-JWOV5H6G.mjs';
|
|
34
|
+
export { Lightbox } from './chunk-UJEIFKSK.mjs';
|
|
35
35
|
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-
|
|
40
|
-
export {
|
|
41
|
-
export { Footer } from './chunk-SZ3SV4SJ.mjs';
|
|
39
|
+
export { Modal } from './chunk-N5ZNXNCO.mjs';
|
|
40
|
+
export { Footer } from './chunk-4DHZ6MIL.mjs';
|
|
42
41
|
export { GuestPicker } from './chunk-EJ7LDW7E.mjs';
|
|
43
42
|
export { Header } from './chunk-PPDKQ3FF.mjs';
|
|
43
|
+
export { ErrorBoundary } from './chunk-5257MWFI.mjs';
|
|
44
44
|
export { HotelCard } from './chunk-XSSRFA5O.mjs';
|
|
45
45
|
export { IconBadge, iconBadgeVariants } from './chunk-I4WCNTNP.mjs';
|
|
46
46
|
export { ImageGallery } from './chunk-QU6ZRLKO.mjs';
|
|
47
47
|
export { ImageWithFallback } from './chunk-BUXVK2HE.mjs';
|
|
48
48
|
export { DogCard } from './chunk-4A3AQ66D.mjs';
|
|
49
|
-
export { Drawer } from './chunk-
|
|
49
|
+
export { Drawer } from './chunk-5KOWMIWK.mjs';
|
|
50
50
|
export { DropdownMenu } from './chunk-Q7BKR6O7.mjs';
|
|
51
|
-
export { DualRangeSlider } from './chunk-ERL3WXNY.mjs';
|
|
52
51
|
export { EmptyState } from './chunk-OCUHCDAQ.mjs';
|
|
53
|
-
export {
|
|
52
|
+
export { DualRangeSlider } from './chunk-PZZWQ6IG.mjs';
|
|
54
53
|
export { FilterAccordion } from './chunk-VQVRKRSM.mjs';
|
|
55
54
|
export { FilterPill } from './chunk-YKBASX5A.mjs';
|
|
56
|
-
export {
|
|
55
|
+
export { FloatingDock } from './chunk-P2SGBTKS.mjs';
|
|
57
56
|
export { CardList } from './chunk-RJWHPHHX.mjs';
|
|
58
|
-
export {
|
|
59
|
-
export { DatePickerInput, DateRangePicker } from './chunk-FL3GD5FJ.mjs';
|
|
57
|
+
export { Carousel } from './chunk-OOPP4ES2.mjs';
|
|
60
58
|
export { Checkbox } from './chunk-EEIPCJQ2.mjs';
|
|
59
|
+
export { Counter } from './chunk-WY24TZ4R.mjs';
|
|
60
|
+
export { DatePickerInput, DateRangePicker } from './chunk-BKM5VCUS.mjs';
|
|
61
61
|
export { DetailList } from './chunk-N6THLJIG.mjs';
|
|
62
62
|
export { Divider } from './chunk-E4B6LXK7.mjs';
|
|
63
63
|
import './chunk-OZULAGYL.mjs';
|
|
@@ -69,7 +69,7 @@ export { BottomNavBar } from './chunk-UQRQZLMQ.mjs';
|
|
|
69
69
|
export { Breadcrumb, breadcrumbVariants } from './chunk-UKCH6RYL.mjs';
|
|
70
70
|
export { Button, buttonVariants } from './chunk-4U5MNA3B.mjs';
|
|
71
71
|
export { Card, CardContent, CardDescription, CardImage, CardTitle, cardImageVariants, cardVariants } from './chunk-V5J2XLPD.mjs';
|
|
72
|
-
export { Accordion } from './chunk-
|
|
72
|
+
export { Accordion } from './chunk-YOMOULLR.mjs';
|
|
73
73
|
export { ActiveStayCard } from './chunk-CRQ4XOCC.mjs';
|
|
74
74
|
export { DOG_AVATAR_COLORS, DogAvatar, DogAvatarStack, dogAvatarColor } from './chunk-AGNY5DBW.mjs';
|
|
75
75
|
export { Alert } from './chunk-BQWVWK74.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as FontSizeValue } from './typography-BUlhEnfy.mjs';
|
|
2
2
|
|
|
3
|
-
declare const
|
|
3
|
+
declare const toutoutripPreset: {
|
|
4
4
|
theme: {
|
|
5
5
|
extend: {
|
|
6
6
|
colors: {
|
|
@@ -167,4 +167,4 @@ declare const dododogPreset: {
|
|
|
167
167
|
};
|
|
168
168
|
};
|
|
169
169
|
|
|
170
|
-
export {
|
|
170
|
+
export { toutoutripPreset };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { F as FontSizeValue } from './typography-BUlhEnfy.js';
|
|
2
2
|
|
|
3
|
-
declare const
|
|
3
|
+
declare const toutoutripPreset: {
|
|
4
4
|
theme: {
|
|
5
5
|
extend: {
|
|
6
6
|
colors: {
|
|
@@ -167,4 +167,4 @@ declare const dododogPreset: {
|
|
|
167
167
|
};
|
|
168
168
|
};
|
|
169
169
|
|
|
170
|
-
export {
|
|
170
|
+
export { toutoutripPreset };
|
package/dist/tailwind-preset.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var chunk2XH74PQR_js = require('./chunk-2XH74PQR.js');
|
|
4
4
|
|
|
5
5
|
// src/tailwind-preset.ts
|
|
6
|
-
var
|
|
6
|
+
var toutoutripPreset = {
|
|
7
7
|
theme: {
|
|
8
8
|
extend: {
|
|
9
9
|
colors: chunk2XH74PQR_js.colors,
|
|
@@ -16,4 +16,4 @@ var dododogPreset = {
|
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
exports.
|
|
19
|
+
exports.toutoutripPreset = toutoutripPreset;
|
package/dist/tailwind-preset.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { animation, keyframes, boxShadow, fontSize, fontFamily, colors } from './chunk-7JYJ7ICL.mjs';
|
|
2
2
|
|
|
3
3
|
// src/tailwind-preset.ts
|
|
4
|
-
var
|
|
4
|
+
var toutoutripPreset = {
|
|
5
5
|
theme: {
|
|
6
6
|
extend: {
|
|
7
7
|
colors,
|
|
@@ -14,4 +14,4 @@ var dododogPreset = {
|
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
export {
|
|
17
|
+
export { toutoutripPreset };
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dododog/ui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "React UI component library for
|
|
3
|
+
"version": "0.15.0",
|
|
4
|
+
"description": "React UI component library for ToutouTrip — pet-friendly travel platform",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"homepage": "https://storybook.
|
|
7
|
+
"homepage": "https://storybook.toutoutrip.com",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"react",
|
|
10
10
|
"ui",
|
|
11
11
|
"components",
|
|
12
12
|
"tailwindcss",
|
|
13
13
|
"design-system",
|
|
14
|
-
"
|
|
14
|
+
"toutoutrip"
|
|
15
15
|
],
|
|
16
16
|
"files": [
|
|
17
17
|
"dist",
|
|
@@ -417,25 +417,19 @@
|
|
|
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
|
-
},
|
|
426
420
|
"peerDependencies": {
|
|
427
421
|
"react": ">=18",
|
|
428
422
|
"tailwindcss": ">=3"
|
|
429
423
|
},
|
|
430
424
|
"devDependencies": {
|
|
431
|
-
"@dododog/eslint-config": "workspace:*",
|
|
432
|
-
"@dododog/typescript-config": "workspace:*",
|
|
433
425
|
"@types/react": "^18.2.61",
|
|
434
426
|
"@types/react-dom": "^18.2.19",
|
|
435
427
|
"eslint": "^8.57.0",
|
|
436
428
|
"react": "^18.2.0",
|
|
437
429
|
"tsup": "^8.0.2",
|
|
438
|
-
"typescript": "5.5.4"
|
|
430
|
+
"typescript": "5.5.4",
|
|
431
|
+
"@toutoutrip/eslint-config": "0.0.0",
|
|
432
|
+
"@toutoutrip/typescript-config": "0.0.0"
|
|
439
433
|
},
|
|
440
434
|
"publishConfig": {
|
|
441
435
|
"access": "public"
|
|
@@ -445,5 +439,11 @@
|
|
|
445
439
|
"class-variance-authority": "^0.7.1",
|
|
446
440
|
"clsx": "^2.1.1",
|
|
447
441
|
"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-74B2EGKT.mjs
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { cn } from './chunk-IMKLN273.mjs';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
var Modal = React.forwardRef(
|
|
6
|
-
({ isOpen, onClose, children, title, className }, ref) => {
|
|
7
|
-
const contentRef = React.useRef(null);
|
|
8
|
-
React.useEffect(() => {
|
|
9
|
-
if (!isOpen) return;
|
|
10
|
-
const handleKeyDown = (e) => {
|
|
11
|
-
if (e.key === "Escape") onClose();
|
|
12
|
-
};
|
|
13
|
-
document.addEventListener("keydown", handleKeyDown);
|
|
14
|
-
return () => document.removeEventListener("keydown", handleKeyDown);
|
|
15
|
-
}, [isOpen, onClose]);
|
|
16
|
-
React.useEffect(() => {
|
|
17
|
-
if (!isOpen) return;
|
|
18
|
-
const prev = document.body.style.overflow;
|
|
19
|
-
document.body.style.overflow = "hidden";
|
|
20
|
-
return () => {
|
|
21
|
-
document.body.style.overflow = prev;
|
|
22
|
-
};
|
|
23
|
-
}, [isOpen]);
|
|
24
|
-
React.useEffect(() => {
|
|
25
|
-
if (!isOpen || !contentRef.current) return;
|
|
26
|
-
const focusable = contentRef.current.querySelectorAll(
|
|
27
|
-
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
28
|
-
);
|
|
29
|
-
if (focusable.length > 0) focusable[0].focus();
|
|
30
|
-
}, [isOpen]);
|
|
31
|
-
if (!isOpen) return null;
|
|
32
|
-
return /* @__PURE__ */ jsxs(
|
|
33
|
-
"div",
|
|
34
|
-
{
|
|
35
|
-
ref,
|
|
36
|
-
className: "fixed inset-0 z-50 flex items-center justify-center p-4",
|
|
37
|
-
role: "dialog",
|
|
38
|
-
"aria-modal": "true",
|
|
39
|
-
"aria-label": title,
|
|
40
|
-
children: [
|
|
41
|
-
/* @__PURE__ */ jsx(
|
|
42
|
-
"div",
|
|
43
|
-
{
|
|
44
|
-
className: "absolute inset-0 bg-black/50",
|
|
45
|
-
onClick: onClose,
|
|
46
|
-
"aria-hidden": "true"
|
|
47
|
-
}
|
|
48
|
-
),
|
|
49
|
-
/* @__PURE__ */ jsxs(
|
|
50
|
-
"div",
|
|
51
|
-
{
|
|
52
|
-
ref: contentRef,
|
|
53
|
-
className: cn(
|
|
54
|
-
"relative bg-white rounded-2xl shadow-xl max-w-md w-full max-h-[90vh] overflow-auto",
|
|
55
|
-
className
|
|
56
|
-
),
|
|
57
|
-
children: [
|
|
58
|
-
title && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 pt-6 pb-2", children: [
|
|
59
|
-
/* @__PURE__ */ jsx("h2", { className: "text-lg font-heading font-semibold text-primary", children: title }),
|
|
60
|
-
/* @__PURE__ */ jsx(
|
|
61
|
-
"button",
|
|
62
|
-
{
|
|
63
|
-
type: "button",
|
|
64
|
-
onClick: onClose,
|
|
65
|
-
className: "text-text-muted hover:text-primary transition-colors",
|
|
66
|
-
"aria-label": "Fermer",
|
|
67
|
-
children: /* @__PURE__ */ jsxs(
|
|
68
|
-
"svg",
|
|
69
|
-
{
|
|
70
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
71
|
-
width: "20",
|
|
72
|
-
height: "20",
|
|
73
|
-
viewBox: "0 0 24 24",
|
|
74
|
-
fill: "none",
|
|
75
|
-
stroke: "currentColor",
|
|
76
|
-
strokeWidth: "2",
|
|
77
|
-
strokeLinecap: "round",
|
|
78
|
-
strokeLinejoin: "round",
|
|
79
|
-
children: [
|
|
80
|
-
/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }),
|
|
81
|
-
/* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
)
|
|
85
|
-
}
|
|
86
|
-
)
|
|
87
|
-
] }),
|
|
88
|
-
/* @__PURE__ */ jsx("div", { className: cn(title ? "px-6 pb-6" : "p-6"), children })
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
)
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
);
|
|
95
|
-
}
|
|
96
|
-
);
|
|
97
|
-
Modal.displayName = "Modal";
|
|
98
|
-
|
|
99
|
-
export { Modal };
|