@dododog/ui 0.8.1 → 0.9.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.
Files changed (149) hide show
  1. package/dist/chunk-P2SGBTKS.mjs +138 -0
  2. package/dist/chunk-ZCQJN4IT.js +160 -0
  3. package/dist/components/FloatingDock/index.js +2 -2
  4. package/dist/components/FloatingDock/index.mjs +1 -1
  5. package/dist/index.js +80 -80
  6. package/dist/index.mjs +14 -14
  7. package/package.json +1 -1
  8. package/dist/chunk-PBDPZTHK.mjs +0 -53
  9. package/dist/chunk-S732LTPT.js +0 -75
  10. package/dist/components/Accordion/index.d.mts +0 -24
  11. package/dist/components/Accordion/index.d.ts +0 -24
  12. package/dist/components/Alert/index.d.mts +0 -40
  13. package/dist/components/Alert/index.d.ts +0 -40
  14. package/dist/components/AnchorTabs/index.d.mts +0 -59
  15. package/dist/components/AnchorTabs/index.d.ts +0 -59
  16. package/dist/components/Autocomplete/index.d.mts +0 -27
  17. package/dist/components/Autocomplete/index.d.ts +0 -27
  18. package/dist/components/Avatar/index.d.mts +0 -13
  19. package/dist/components/Avatar/index.d.ts +0 -13
  20. package/dist/components/Badge/index.d.mts +0 -13
  21. package/dist/components/Badge/index.d.ts +0 -13
  22. package/dist/components/Banner/index.d.mts +0 -19
  23. package/dist/components/Banner/index.d.ts +0 -19
  24. package/dist/components/BottomNavBar/index.d.mts +0 -17
  25. package/dist/components/BottomNavBar/index.d.ts +0 -17
  26. package/dist/components/Breadcrumb/index.d.mts +0 -23
  27. package/dist/components/Breadcrumb/index.d.ts +0 -23
  28. package/dist/components/Button/index.d.mts +0 -17
  29. package/dist/components/Button/index.d.ts +0 -17
  30. package/dist/components/Card/index.d.mts +0 -30
  31. package/dist/components/Card/index.d.ts +0 -30
  32. package/dist/components/CardList/index.d.mts +0 -30
  33. package/dist/components/CardList/index.d.ts +0 -30
  34. package/dist/components/Carousel/index.d.mts +0 -15
  35. package/dist/components/Carousel/index.d.ts +0 -15
  36. package/dist/components/Checkbox/index.d.mts +0 -16
  37. package/dist/components/Checkbox/index.d.ts +0 -16
  38. package/dist/components/Counter/index.d.mts +0 -14
  39. package/dist/components/Counter/index.d.ts +0 -14
  40. package/dist/components/DateRangePicker/index.d.mts +0 -26
  41. package/dist/components/DateRangePicker/index.d.ts +0 -26
  42. package/dist/components/DetailList/index.d.mts +0 -23
  43. package/dist/components/DetailList/index.d.ts +0 -23
  44. package/dist/components/Divider/index.d.mts +0 -10
  45. package/dist/components/Divider/index.d.ts +0 -10
  46. package/dist/components/Drawer/index.d.mts +0 -13
  47. package/dist/components/Drawer/index.d.ts +0 -13
  48. package/dist/components/DropdownMenu/index.d.mts +0 -19
  49. package/dist/components/DropdownMenu/index.d.ts +0 -19
  50. package/dist/components/DualRangeSlider/index.d.mts +0 -26
  51. package/dist/components/DualRangeSlider/index.d.ts +0 -26
  52. package/dist/components/EmptyState/index.d.mts +0 -12
  53. package/dist/components/EmptyState/index.d.ts +0 -12
  54. package/dist/components/ErrorBoundary/index.d.mts +0 -21
  55. package/dist/components/ErrorBoundary/index.d.ts +0 -21
  56. package/dist/components/FilterAccordion/index.d.mts +0 -16
  57. package/dist/components/FilterAccordion/index.d.ts +0 -16
  58. package/dist/components/FilterPill/index.d.mts +0 -19
  59. package/dist/components/FilterPill/index.d.ts +0 -19
  60. package/dist/components/FloatingDock/index.d.mts +0 -44
  61. package/dist/components/FloatingDock/index.d.ts +0 -44
  62. package/dist/components/Footer/index.d.mts +0 -46
  63. package/dist/components/Footer/index.d.ts +0 -46
  64. package/dist/components/GuestPicker/index.d.mts +0 -31
  65. package/dist/components/GuestPicker/index.d.ts +0 -31
  66. package/dist/components/Header/index.d.mts +0 -37
  67. package/dist/components/Header/index.d.ts +0 -37
  68. package/dist/components/HotelCard/index.d.mts +0 -45
  69. package/dist/components/HotelCard/index.d.ts +0 -45
  70. package/dist/components/IconBadge/index.d.mts +0 -14
  71. package/dist/components/IconBadge/index.d.ts +0 -14
  72. package/dist/components/ImageGallery/index.d.mts +0 -16
  73. package/dist/components/ImageGallery/index.d.ts +0 -16
  74. package/dist/components/ImageWithFallback/index.d.mts +0 -17
  75. package/dist/components/ImageWithFallback/index.d.ts +0 -17
  76. package/dist/components/Input/index.d.mts +0 -18
  77. package/dist/components/Input/index.d.ts +0 -18
  78. package/dist/components/Lightbox/index.d.mts +0 -15
  79. package/dist/components/Lightbox/index.d.ts +0 -15
  80. package/dist/components/LinkCard/index.d.mts +0 -12
  81. package/dist/components/LinkCard/index.d.ts +0 -12
  82. package/dist/components/LoadingOverlay/index.d.mts +0 -12
  83. package/dist/components/LoadingOverlay/index.d.ts +0 -12
  84. package/dist/components/MegaMenu/index.d.mts +0 -52
  85. package/dist/components/MegaMenu/index.d.ts +0 -52
  86. package/dist/components/MobileMenu/index.d.mts +0 -35
  87. package/dist/components/MobileMenu/index.d.ts +0 -35
  88. package/dist/components/Modal/index.d.mts +0 -12
  89. package/dist/components/Modal/index.d.ts +0 -12
  90. package/dist/components/Pagination/index.d.mts +0 -13
  91. package/dist/components/Pagination/index.d.ts +0 -13
  92. package/dist/components/PriceDisplay/index.d.mts +0 -14
  93. package/dist/components/PriceDisplay/index.d.ts +0 -14
  94. package/dist/components/ProgressBar/index.d.mts +0 -19
  95. package/dist/components/ProgressBar/index.d.ts +0 -19
  96. package/dist/components/PromoBanner/index.d.mts +0 -39
  97. package/dist/components/PromoBanner/index.d.ts +0 -39
  98. package/dist/components/RadioGroup/index.d.mts +0 -21
  99. package/dist/components/RadioGroup/index.d.ts +0 -21
  100. package/dist/components/Rating/index.d.mts +0 -12
  101. package/dist/components/Rating/index.d.ts +0 -12
  102. package/dist/components/RoomTypeCard/index.d.mts +0 -102
  103. package/dist/components/RoomTypeCard/index.d.ts +0 -102
  104. package/dist/components/SearchBar/index.d.mts +0 -20
  105. package/dist/components/SearchBar/index.d.ts +0 -20
  106. package/dist/components/SegmentedControl/index.d.mts +0 -15
  107. package/dist/components/SegmentedControl/index.d.ts +0 -15
  108. package/dist/components/Select/index.d.mts +0 -26
  109. package/dist/components/Select/index.d.ts +0 -26
  110. package/dist/components/Sidebar/index.d.mts +0 -19
  111. package/dist/components/Sidebar/index.d.ts +0 -19
  112. package/dist/components/SignInCallout/index.d.mts +0 -26
  113. package/dist/components/SignInCallout/index.d.ts +0 -26
  114. package/dist/components/Skeleton/index.d.mts +0 -31
  115. package/dist/components/Skeleton/index.d.ts +0 -31
  116. package/dist/components/Spinner/index.d.mts +0 -13
  117. package/dist/components/Spinner/index.d.ts +0 -13
  118. package/dist/components/StatCard/index.d.mts +0 -15
  119. package/dist/components/StatCard/index.d.ts +0 -15
  120. package/dist/components/StatusBadge/index.d.mts +0 -16
  121. package/dist/components/StatusBadge/index.d.ts +0 -16
  122. package/dist/components/Stepper/index.d.mts +0 -16
  123. package/dist/components/Stepper/index.d.ts +0 -16
  124. package/dist/components/Switch/index.d.mts +0 -22
  125. package/dist/components/Switch/index.d.ts +0 -22
  126. package/dist/components/Tabs/index.d.mts +0 -18
  127. package/dist/components/Tabs/index.d.ts +0 -18
  128. package/dist/components/Tag/index.d.mts +0 -15
  129. package/dist/components/Tag/index.d.ts +0 -15
  130. package/dist/components/Textarea/index.d.mts +0 -16
  131. package/dist/components/Textarea/index.d.ts +0 -16
  132. package/dist/components/Toast/index.d.mts +0 -16
  133. package/dist/components/Toast/index.d.ts +0 -16
  134. package/dist/components/Toggle/index.d.mts +0 -13
  135. package/dist/components/Toggle/index.d.ts +0 -13
  136. package/dist/components/Tooltip/index.d.mts +0 -11
  137. package/dist/components/Tooltip/index.d.ts +0 -11
  138. package/dist/components/VerticalMarquee/index.d.mts +0 -16
  139. package/dist/components/VerticalMarquee/index.d.ts +0 -16
  140. package/dist/index.d.mts +0 -189
  141. package/dist/index.d.ts +0 -189
  142. package/dist/tailwind-preset.d.mts +0 -170
  143. package/dist/tailwind-preset.d.ts +0 -170
  144. package/dist/tokens/index.d.mts +0 -219
  145. package/dist/tokens/index.d.ts +0 -219
  146. package/dist/typography-BUlhEnfy.d.mts +0 -16
  147. package/dist/typography-BUlhEnfy.d.ts +0 -16
  148. package/dist/utils/index.d.mts +0 -5
  149. package/dist/utils/index.d.ts +0 -5
package/dist/index.mjs CHANGED
@@ -1,46 +1,46 @@
1
1
  export { Textarea, textareaVariants } from './chunk-ZZ4EWC53.mjs';
2
2
  export { Toast, toastVariants } from './chunk-YVTUUNAX.mjs';
3
3
  export { Toggle } from './chunk-2AB5ZHY5.mjs';
4
- export { VerticalMarquee } from './chunk-JP5ZR2HI.mjs';
5
4
  export { Tooltip } from './chunk-2MJTZ6RR.mjs';
5
+ export { VerticalMarquee } from './chunk-JP5ZR2HI.mjs';
6
6
  export { Spinner, spinnerVariants } from './chunk-NCSFXSOZ.mjs';
7
7
  export { StatCard } from './chunk-O2W7NR33.mjs';
8
8
  export { StatusBadge, statusBadgeVariants } from './chunk-FZ7UNXSC.mjs';
9
- export { Sidebar } from './chunk-MPL35D5G.mjs';
10
9
  export { Stepper } from './chunk-2ASKBL63.mjs';
11
10
  export { Switch, switchThumbVariants, switchTrackVariants } from './chunk-DMCMWOBJ.mjs';
12
11
  export { Tabs } from './chunk-VOZPGXQD.mjs';
13
12
  export { Tag, tagVariants } from './chunk-WOG6V7OW.mjs';
14
- export { RadioGroup } from './chunk-F2BUMJYW.mjs';
15
13
  export { Rating } from './chunk-SGDC4IVX.mjs';
14
+ export { RadioGroup } from './chunk-F2BUMJYW.mjs';
16
15
  export { RoomTypeCard, RoomTypeCardSkeleton } from './chunk-BFGRWOQM.mjs';
16
+ export { Skeleton, SkeletonCircle, SkeletonImage, SkeletonText } from './chunk-PAHSQMXV.mjs';
17
17
  export { SearchBar } from './chunk-KQK7LFWM.mjs';
18
18
  export { SegmentedControl } from './chunk-36Y7UU32.mjs';
19
19
  export { Select, selectVariants } from './chunk-333YD5QI.mjs';
20
+ export { Sidebar } from './chunk-MPL35D5G.mjs';
20
21
  export { SignInCallout, signInCalloutVariants } from './chunk-Z3KRMKHP.mjs';
21
- export { Skeleton, SkeletonCircle, SkeletonImage, SkeletonText } from './chunk-PAHSQMXV.mjs';
22
- export { LoadingOverlay } from './chunk-WVEJS2J2.mjs';
23
22
  export { MegaMenu } from './chunk-EUEM2D5M.mjs';
24
- export { MobileMenu } from './chunk-R4DC7XPP.mjs';
25
- export { Pagination } from './chunk-XQVODPHL.mjs';
23
+ export { LinkCard } from './chunk-UYDZKAGZ.mjs';
26
24
  export { Modal } from './chunk-74B2EGKT.mjs';
25
+ export { MobileMenu } from './chunk-R4DC7XPP.mjs';
27
26
  export { PriceDisplay } from './chunk-REXLQTNE.mjs';
28
- export { PromoBanner, promoBannerVariants } from './chunk-FNDR3WOZ.mjs';
27
+ export { Pagination } from './chunk-XQVODPHL.mjs';
29
28
  export { ProgressBar, progressBarVariants, progressFillVariants } from './chunk-UGYMWWKT.mjs';
29
+ export { PromoBanner, promoBannerVariants } from './chunk-FNDR3WOZ.mjs';
30
30
  export { Header } from './chunk-PPDKQ3FF.mjs';
31
31
  export { HotelCard } from './chunk-XSSRFA5O.mjs';
32
32
  export { IconBadge, iconBadgeVariants } from './chunk-I4WCNTNP.mjs';
33
33
  export { ImageGallery } from './chunk-QU6ZRLKO.mjs';
34
34
  export { ImageWithFallback } from './chunk-BUXVK2HE.mjs';
35
- export { Lightbox } from './chunk-GBWVIY3C.mjs';
36
35
  export { Input, inputVariants } from './chunk-GRG4USTC.mjs';
37
- export { LinkCard } from './chunk-UYDZKAGZ.mjs';
36
+ export { Lightbox } from './chunk-GBWVIY3C.mjs';
37
+ export { LoadingOverlay } from './chunk-WVEJS2J2.mjs';
38
38
  export { DualRangeSlider } from './chunk-ERL3WXNY.mjs';
39
- export { ErrorBoundary } from './chunk-5257MWFI.mjs';
40
39
  export { EmptyState } from './chunk-OCUHCDAQ.mjs';
40
+ export { ErrorBoundary } from './chunk-5257MWFI.mjs';
41
41
  export { FilterAccordion } from './chunk-VQVRKRSM.mjs';
42
- export { FloatingDock } from './chunk-PBDPZTHK.mjs';
43
42
  export { FilterPill } from './chunk-YKBASX5A.mjs';
43
+ export { FloatingDock } from './chunk-P2SGBTKS.mjs';
44
44
  export { Footer } from './chunk-SZ3SV4SJ.mjs';
45
45
  export { GuestPicker } from './chunk-EJ7LDW7E.mjs';
46
46
  export { Carousel } from './chunk-OOPP4ES2.mjs';
@@ -51,7 +51,7 @@ export { DetailList } from './chunk-N6THLJIG.mjs';
51
51
  export { Divider } from './chunk-E4B6LXK7.mjs';
52
52
  export { Drawer } from './chunk-ZLF7IL3Y.mjs';
53
53
  export { DropdownMenu } from './chunk-Q7BKR6O7.mjs';
54
- export { Autocomplete, autocompleteInputVariants } from './chunk-B47HQHX3.mjs';
54
+ export { Avatar } from './chunk-2POGTS27.mjs';
55
55
  export { Badge, badgeVariants } from './chunk-XZU2SISM.mjs';
56
56
  export { Banner, bannerVariants } from './chunk-LFIZX2S6.mjs';
57
57
  export { BottomNavBar } from './chunk-UQRQZLMQ.mjs';
@@ -62,7 +62,7 @@ export { CardList } from './chunk-RJWHPHHX.mjs';
62
62
  export { Accordion } from './chunk-NZ7GF6RF.mjs';
63
63
  export { Alert } from './chunk-BQWVWK74.mjs';
64
64
  export { AnchorTabs } from './chunk-M2H6QUAL.mjs';
65
- export { Avatar } from './chunk-2POGTS27.mjs';
65
+ export { Autocomplete, autocompleteInputVariants } from './chunk-B47HQHX3.mjs';
66
66
  import { cn } from './chunk-IMKLN273.mjs';
67
67
  export { cn } from './chunk-IMKLN273.mjs';
68
68
  import * as React from 'react';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dododog/ui",
3
- "version": "0.8.1",
3
+ "version": "0.9.0",
4
4
  "description": "React UI component library for DodoDog — pet-friendly travel platform",
5
5
  "sideEffects": false,
6
6
  "license": "MIT",
@@ -1,53 +0,0 @@
1
- import { cn } from './chunk-IMKLN273.mjs';
2
- import * as React from 'react';
3
- import { jsx, jsxs } from 'react/jsx-runtime';
4
-
5
- var FloatingDock = React.forwardRef(
6
- ({ items, className, ariaLabel = "Navigation rapide", onNavigate }, ref) => {
7
- return /* @__PURE__ */ jsx(
8
- "nav",
9
- {
10
- ref,
11
- "aria-label": ariaLabel,
12
- className: cn(
13
- "inline-flex items-center gap-1 rounded-full border border-black/5 bg-white/95 px-2 py-2 shadow-[0_8px_30px_rgba(0,0,0,0.12)] backdrop-blur",
14
- className
15
- ),
16
- children: items.map((item) => /* @__PURE__ */ jsxs(
17
- "a",
18
- {
19
- href: item.href,
20
- "aria-label": item.label,
21
- "aria-current": item.isActive ? "page" : void 0,
22
- title: item.label,
23
- onClick: onNavigate ? (event) => {
24
- event.preventDefault();
25
- onNavigate(item);
26
- } : void 0,
27
- className: cn(
28
- "flex min-h-[44px] items-center justify-center rounded-full outline-none transition-colors focus-visible:ring-2 focus-visible:ring-secondary focus-visible:ring-offset-2",
29
- item.isActive ? "bg-secondary px-4 text-white" : "w-11 text-primary/70 hover:bg-secondary/5 hover:text-secondary"
30
- ),
31
- children: [
32
- /* @__PURE__ */ jsx("span", { className: "shrink-0", "aria-hidden": "true", children: item.icon }),
33
- /* @__PURE__ */ jsx(
34
- "span",
35
- {
36
- className: cn(
37
- "overflow-hidden whitespace-nowrap text-sm font-medium transition-all duration-300",
38
- item.isActive ? "ml-2 max-w-[8rem] opacity-100" : "ml-0 max-w-0 opacity-0"
39
- ),
40
- children: item.label
41
- }
42
- )
43
- ]
44
- },
45
- item.key
46
- ))
47
- }
48
- );
49
- }
50
- );
51
- FloatingDock.displayName = "FloatingDock";
52
-
53
- export { FloatingDock };
@@ -1,75 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkADIDI7AJ_js = require('./chunk-ADIDI7AJ.js');
4
- var React = require('react');
5
- var jsxRuntime = require('react/jsx-runtime');
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
20
- }
21
- n.default = e;
22
- return Object.freeze(n);
23
- }
24
-
25
- var React__namespace = /*#__PURE__*/_interopNamespace(React);
26
-
27
- var FloatingDock = React__namespace.forwardRef(
28
- ({ items, className, ariaLabel = "Navigation rapide", onNavigate }, ref) => {
29
- return /* @__PURE__ */ jsxRuntime.jsx(
30
- "nav",
31
- {
32
- ref,
33
- "aria-label": ariaLabel,
34
- className: chunkADIDI7AJ_js.cn(
35
- "inline-flex items-center gap-1 rounded-full border border-black/5 bg-white/95 px-2 py-2 shadow-[0_8px_30px_rgba(0,0,0,0.12)] backdrop-blur",
36
- className
37
- ),
38
- children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
39
- "a",
40
- {
41
- href: item.href,
42
- "aria-label": item.label,
43
- "aria-current": item.isActive ? "page" : void 0,
44
- title: item.label,
45
- onClick: onNavigate ? (event) => {
46
- event.preventDefault();
47
- onNavigate(item);
48
- } : void 0,
49
- className: chunkADIDI7AJ_js.cn(
50
- "flex min-h-[44px] items-center justify-center rounded-full outline-none transition-colors focus-visible:ring-2 focus-visible:ring-secondary focus-visible:ring-offset-2",
51
- item.isActive ? "bg-secondary px-4 text-white" : "w-11 text-primary/70 hover:bg-secondary/5 hover:text-secondary"
52
- ),
53
- children: [
54
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0", "aria-hidden": "true", children: item.icon }),
55
- /* @__PURE__ */ jsxRuntime.jsx(
56
- "span",
57
- {
58
- className: chunkADIDI7AJ_js.cn(
59
- "overflow-hidden whitespace-nowrap text-sm font-medium transition-all duration-300",
60
- item.isActive ? "ml-2 max-w-[8rem] opacity-100" : "ml-0 max-w-0 opacity-0"
61
- ),
62
- children: item.label
63
- }
64
- )
65
- ]
66
- },
67
- item.key
68
- ))
69
- }
70
- );
71
- }
72
- );
73
- FloatingDock.displayName = "FloatingDock";
74
-
75
- exports.FloatingDock = FloatingDock;
@@ -1,24 +0,0 @@
1
- import * as React from 'react';
2
-
3
- interface AccordionItemData {
4
- key: string;
5
- title: string;
6
- content: React.ReactNode;
7
- }
8
- interface AccordionProps {
9
- items: AccordionItemData[];
10
- defaultOpenIndex?: number | null;
11
- /** Open multiple items by default (requires `allowMultiple`). Takes precedence over `defaultOpenIndex`. */
12
- defaultOpenIndexes?: number[];
13
- allowMultiple?: boolean;
14
- className?: string;
15
- }
16
- declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
17
- interface AccordionItemProps {
18
- title: string;
19
- isOpen: boolean;
20
- onToggle: () => void;
21
- children: React.ReactNode;
22
- }
23
-
24
- export { Accordion, type AccordionItemData, type AccordionItemProps, type AccordionProps };
@@ -1,24 +0,0 @@
1
- import * as React from 'react';
2
-
3
- interface AccordionItemData {
4
- key: string;
5
- title: string;
6
- content: React.ReactNode;
7
- }
8
- interface AccordionProps {
9
- items: AccordionItemData[];
10
- defaultOpenIndex?: number | null;
11
- /** Open multiple items by default (requires `allowMultiple`). Takes precedence over `defaultOpenIndex`. */
12
- defaultOpenIndexes?: number[];
13
- allowMultiple?: boolean;
14
- className?: string;
15
- }
16
- declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
17
- interface AccordionItemProps {
18
- title: string;
19
- isOpen: boolean;
20
- onToggle: () => void;
21
- children: React.ReactNode;
22
- }
23
-
24
- export { Accordion, type AccordionItemData, type AccordionItemProps, type AccordionProps };
@@ -1,40 +0,0 @@
1
- import * as React from 'react';
2
-
3
- declare const variantStyles: {
4
- warning: {
5
- container: string;
6
- icon: string;
7
- dismiss: string;
8
- retry: string;
9
- };
10
- error: {
11
- container: string;
12
- icon: string;
13
- dismiss: string;
14
- retry: string;
15
- };
16
- success: {
17
- container: string;
18
- icon: string;
19
- dismiss: string;
20
- retry: string;
21
- };
22
- info: {
23
- container: string;
24
- icon: string;
25
- dismiss: string;
26
- retry: string;
27
- };
28
- };
29
- interface AlertProps {
30
- message: string;
31
- variant?: keyof typeof variantStyles;
32
- onDismiss?: () => void;
33
- onRetry?: () => void;
34
- retryLabel?: string;
35
- isRetrying?: boolean;
36
- className?: string;
37
- }
38
- declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
39
-
40
- export { Alert, type AlertProps };
@@ -1,40 +0,0 @@
1
- import * as React from 'react';
2
-
3
- declare const variantStyles: {
4
- warning: {
5
- container: string;
6
- icon: string;
7
- dismiss: string;
8
- retry: string;
9
- };
10
- error: {
11
- container: string;
12
- icon: string;
13
- dismiss: string;
14
- retry: string;
15
- };
16
- success: {
17
- container: string;
18
- icon: string;
19
- dismiss: string;
20
- retry: string;
21
- };
22
- info: {
23
- container: string;
24
- icon: string;
25
- dismiss: string;
26
- retry: string;
27
- };
28
- };
29
- interface AlertProps {
30
- message: string;
31
- variant?: keyof typeof variantStyles;
32
- onDismiss?: () => void;
33
- onRetry?: () => void;
34
- retryLabel?: string;
35
- isRetrying?: boolean;
36
- className?: string;
37
- }
38
- declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
39
-
40
- export { Alert, type AlertProps };
@@ -1,59 +0,0 @@
1
- import * as React from 'react';
2
-
3
- interface AnchorTabItem {
4
- /**
5
- * Identifiant de la section cible : doit correspondre à l'attribut `id` de
6
- * l'élément de section dans le DOM (le lien pointe sur `#{key}`).
7
- */
8
- key: string;
9
- /** Libellé affiché de l'onglet. */
10
- label: string;
11
- }
12
- interface AnchorTabsProps {
13
- /** Onglets d'ancrage, dans l'ordre d'apparition des sections. */
14
- items: AnchorTabItem[];
15
- /** Classes supplémentaires appliquées à la barre `<nav>`. */
16
- className?: string;
17
- /** Libellé ARIA de la navigation. */
18
- ariaLabel?: string;
19
- /**
20
- * Décalage (px) réservé en haut de page pour le scroll-spy ET le défilement
21
- * au clic (barre sticky / header). Défaut : 96.
22
- */
23
- offsetTop?: number;
24
- /** Notifié à chaque changement de section active (scroll ou clic). */
25
- onActiveChange?: (key: string) => void;
26
- /**
27
- * Épingle la barre (position fixed) tant qu'au moins une des sections
28
- * ancrées reste dans le viewport — au-delà de la portée d'un simple
29
- * `position: sticky` limité au parent. Un espace réservé conserve la
30
- * hauteur de la barre (aucun layout shift).
31
- */
32
- pinWhileSectionsVisible?: boolean;
33
- /** Ordonnée (px) de l'épinglage sous le header. Défaut : 72. */
34
- pinTop?: number;
35
- /** Classes du conteneur/sentinelle (ex. `hidden lg:block`). */
36
- containerClassName?: string;
37
- /**
38
- * Présentation de la barre :
39
- * - `underline` (défaut) : rangée d'onglets sur fond blanc, actif souligné ;
40
- * - `pills` : chips arrondies posées sur le fond de page (pattern
41
- * FilterPill) — actif rempli `primary`, inactifs en pill blanche bordée.
42
- */
43
- variant?: "underline" | "pills";
44
- }
45
- /**
46
- * Barre d'onglets d'ancrage (desktop) avec scroll-spy.
47
- *
48
- * Présente une rangée de liens `<a href="#{key}">` ; l'onglet dont la section
49
- * est actuellement en haut du viewport (au-delà de `offsetTop`) est souligné.
50
- * Le composant observe le défilement de la fenêtre (via `requestAnimationFrame`)
51
- * pour déterminer la section courante et défile en douceur au clic.
52
- *
53
- * Les sections cibles doivent porter l'`id` correspondant à chaque `key`. Le
54
- * positionnement (sticky, largeur, visibilité responsive) reste à la charge de
55
- * l'appelant via `className`.
56
- */
57
- declare const AnchorTabs: React.ForwardRefExoticComponent<AnchorTabsProps & React.RefAttributes<HTMLElement>>;
58
-
59
- export { type AnchorTabItem, AnchorTabs, type AnchorTabsProps };
@@ -1,59 +0,0 @@
1
- import * as React from 'react';
2
-
3
- interface AnchorTabItem {
4
- /**
5
- * Identifiant de la section cible : doit correspondre à l'attribut `id` de
6
- * l'élément de section dans le DOM (le lien pointe sur `#{key}`).
7
- */
8
- key: string;
9
- /** Libellé affiché de l'onglet. */
10
- label: string;
11
- }
12
- interface AnchorTabsProps {
13
- /** Onglets d'ancrage, dans l'ordre d'apparition des sections. */
14
- items: AnchorTabItem[];
15
- /** Classes supplémentaires appliquées à la barre `<nav>`. */
16
- className?: string;
17
- /** Libellé ARIA de la navigation. */
18
- ariaLabel?: string;
19
- /**
20
- * Décalage (px) réservé en haut de page pour le scroll-spy ET le défilement
21
- * au clic (barre sticky / header). Défaut : 96.
22
- */
23
- offsetTop?: number;
24
- /** Notifié à chaque changement de section active (scroll ou clic). */
25
- onActiveChange?: (key: string) => void;
26
- /**
27
- * Épingle la barre (position fixed) tant qu'au moins une des sections
28
- * ancrées reste dans le viewport — au-delà de la portée d'un simple
29
- * `position: sticky` limité au parent. Un espace réservé conserve la
30
- * hauteur de la barre (aucun layout shift).
31
- */
32
- pinWhileSectionsVisible?: boolean;
33
- /** Ordonnée (px) de l'épinglage sous le header. Défaut : 72. */
34
- pinTop?: number;
35
- /** Classes du conteneur/sentinelle (ex. `hidden lg:block`). */
36
- containerClassName?: string;
37
- /**
38
- * Présentation de la barre :
39
- * - `underline` (défaut) : rangée d'onglets sur fond blanc, actif souligné ;
40
- * - `pills` : chips arrondies posées sur le fond de page (pattern
41
- * FilterPill) — actif rempli `primary`, inactifs en pill blanche bordée.
42
- */
43
- variant?: "underline" | "pills";
44
- }
45
- /**
46
- * Barre d'onglets d'ancrage (desktop) avec scroll-spy.
47
- *
48
- * Présente une rangée de liens `<a href="#{key}">` ; l'onglet dont la section
49
- * est actuellement en haut du viewport (au-delà de `offsetTop`) est souligné.
50
- * Le composant observe le défilement de la fenêtre (via `requestAnimationFrame`)
51
- * pour déterminer la section courante et défile en douceur au clic.
52
- *
53
- * Les sections cibles doivent porter l'`id` correspondant à chaque `key`. Le
54
- * positionnement (sticky, largeur, visibilité responsive) reste à la charge de
55
- * l'appelant via `className`.
56
- */
57
- declare const AnchorTabs: React.ForwardRefExoticComponent<AnchorTabsProps & React.RefAttributes<HTMLElement>>;
58
-
59
- export { type AnchorTabItem, AnchorTabs, type AnchorTabsProps };
@@ -1,27 +0,0 @@
1
- import * as class_variance_authority_types from 'class-variance-authority/types';
2
- import * as React from 'react';
3
- import { VariantProps } from 'class-variance-authority';
4
-
5
- declare const autocompleteInputVariants: (props?: ({
6
- size?: "sm" | "md" | "lg" | null | undefined;
7
- variant?: "default" | "error" | null | undefined;
8
- } & class_variance_authority_types.ClassProp) | undefined) => string;
9
- interface AutocompleteSuggestion {
10
- value: string;
11
- label: string;
12
- }
13
- interface AutocompleteProps extends VariantProps<typeof autocompleteInputVariants> {
14
- value: string;
15
- onChange: (value: string) => void;
16
- onSelect?: (suggestion: AutocompleteSuggestion) => void;
17
- suggestions: AutocompleteSuggestion[];
18
- loading?: boolean;
19
- placeholder?: string;
20
- label?: string;
21
- error?: string;
22
- renderSuggestion?: (suggestion: AutocompleteSuggestion) => React.ReactNode;
23
- className?: string;
24
- }
25
- declare const Autocomplete: React.ForwardRefExoticComponent<AutocompleteProps & React.RefAttributes<HTMLDivElement>>;
26
-
27
- export { Autocomplete, type AutocompleteProps, type AutocompleteSuggestion, autocompleteInputVariants };
@@ -1,27 +0,0 @@
1
- import * as class_variance_authority_types from 'class-variance-authority/types';
2
- import * as React from 'react';
3
- import { VariantProps } from 'class-variance-authority';
4
-
5
- declare const autocompleteInputVariants: (props?: ({
6
- size?: "sm" | "md" | "lg" | null | undefined;
7
- variant?: "default" | "error" | null | undefined;
8
- } & class_variance_authority_types.ClassProp) | undefined) => string;
9
- interface AutocompleteSuggestion {
10
- value: string;
11
- label: string;
12
- }
13
- interface AutocompleteProps extends VariantProps<typeof autocompleteInputVariants> {
14
- value: string;
15
- onChange: (value: string) => void;
16
- onSelect?: (suggestion: AutocompleteSuggestion) => void;
17
- suggestions: AutocompleteSuggestion[];
18
- loading?: boolean;
19
- placeholder?: string;
20
- label?: string;
21
- error?: string;
22
- renderSuggestion?: (suggestion: AutocompleteSuggestion) => React.ReactNode;
23
- className?: string;
24
- }
25
- declare const Autocomplete: React.ForwardRefExoticComponent<AutocompleteProps & React.RefAttributes<HTMLDivElement>>;
26
-
27
- export { Autocomplete, type AutocompleteProps, type AutocompleteSuggestion, autocompleteInputVariants };
@@ -1,13 +0,0 @@
1
- import * as React from 'react';
2
-
3
- interface AvatarProps {
4
- src?: string | null;
5
- alt?: string;
6
- initials?: string;
7
- size?: "sm" | "md" | "lg";
8
- badge?: number;
9
- className?: string;
10
- }
11
- declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
12
-
13
- export { Avatar, type AvatarProps };
@@ -1,13 +0,0 @@
1
- import * as React from 'react';
2
-
3
- interface AvatarProps {
4
- src?: string | null;
5
- alt?: string;
6
- initials?: string;
7
- size?: "sm" | "md" | "lg";
8
- badge?: number;
9
- className?: string;
10
- }
11
- declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
12
-
13
- export { Avatar, type AvatarProps };
@@ -1,13 +0,0 @@
1
- import * as class_variance_authority_types from 'class-variance-authority/types';
2
- import * as React from 'react';
3
- import { VariantProps } from 'class-variance-authority';
4
-
5
- declare const badgeVariants: (props?: ({
6
- variant?: "secondary" | "accent" | "outline" | "default" | "success" | "warning" | null | undefined;
7
- size?: "sm" | "md" | null | undefined;
8
- } & class_variance_authority_types.ClassProp) | undefined) => string;
9
- interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
10
- }
11
- declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
12
-
13
- export { Badge, type BadgeProps, badgeVariants };
@@ -1,13 +0,0 @@
1
- import * as class_variance_authority_types from 'class-variance-authority/types';
2
- import * as React from 'react';
3
- import { VariantProps } from 'class-variance-authority';
4
-
5
- declare const badgeVariants: (props?: ({
6
- variant?: "secondary" | "accent" | "outline" | "default" | "success" | "warning" | null | undefined;
7
- size?: "sm" | "md" | null | undefined;
8
- } & class_variance_authority_types.ClassProp) | undefined) => string;
9
- interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
10
- }
11
- declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
12
-
13
- export { Badge, type BadgeProps, badgeVariants };
@@ -1,19 +0,0 @@
1
- import * as class_variance_authority_types from 'class-variance-authority/types';
2
- import * as React from 'react';
3
- import { VariantProps } from 'class-variance-authority';
4
-
5
- declare const bannerVariants: (props?: ({
6
- variant?: "error" | "success" | "warning" | "info" | null | undefined;
7
- } & class_variance_authority_types.ClassProp) | undefined) => string;
8
- interface BannerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof bannerVariants> {
9
- title?: string;
10
- icon?: React.ReactNode;
11
- onDismiss?: () => void;
12
- action?: {
13
- label: string;
14
- onClick: () => void;
15
- };
16
- }
17
- declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<HTMLDivElement>>;
18
-
19
- export { Banner, type BannerProps, bannerVariants };
@@ -1,19 +0,0 @@
1
- import * as class_variance_authority_types from 'class-variance-authority/types';
2
- import * as React from 'react';
3
- import { VariantProps } from 'class-variance-authority';
4
-
5
- declare const bannerVariants: (props?: ({
6
- variant?: "error" | "success" | "warning" | "info" | null | undefined;
7
- } & class_variance_authority_types.ClassProp) | undefined) => string;
8
- interface BannerProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof bannerVariants> {
9
- title?: string;
10
- icon?: React.ReactNode;
11
- onDismiss?: () => void;
12
- action?: {
13
- label: string;
14
- onClick: () => void;
15
- };
16
- }
17
- declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<HTMLDivElement>>;
18
-
19
- export { Banner, type BannerProps, bannerVariants };
@@ -1,17 +0,0 @@
1
- import * as React from 'react';
2
-
3
- interface BottomNavItem {
4
- key: string;
5
- label: string;
6
- icon: React.ReactNode;
7
- href: string;
8
- isActive?: boolean;
9
- }
10
- interface BottomNavBarProps {
11
- items: BottomNavItem[];
12
- className?: string;
13
- onNavigate?: (href: string) => void;
14
- }
15
- declare const BottomNavBar: React.ForwardRefExoticComponent<BottomNavBarProps & React.RefAttributes<HTMLElement>>;
16
-
17
- export { BottomNavBar, type BottomNavBarProps, type BottomNavItem };
@@ -1,17 +0,0 @@
1
- import * as React from 'react';
2
-
3
- interface BottomNavItem {
4
- key: string;
5
- label: string;
6
- icon: React.ReactNode;
7
- href: string;
8
- isActive?: boolean;
9
- }
10
- interface BottomNavBarProps {
11
- items: BottomNavItem[];
12
- className?: string;
13
- onNavigate?: (href: string) => void;
14
- }
15
- declare const BottomNavBar: React.ForwardRefExoticComponent<BottomNavBarProps & React.RefAttributes<HTMLElement>>;
16
-
17
- export { BottomNavBar, type BottomNavBarProps, type BottomNavItem };