mautourco-components 0.2.4 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/README.md +190 -190
  2. package/dist/components/atoms/Avatar/Avatar.d.ts +14 -14
  3. package/dist/components/atoms/Avatar/Avatar.js +31 -31
  4. package/dist/components/atoms/Button/Button.css +320 -320
  5. package/dist/components/atoms/Button/Button.d.ts +27 -27
  6. package/dist/components/atoms/Button/Button.js +35 -35
  7. package/dist/components/atoms/Checkbox/Checkbox.d.ts +13 -13
  8. package/dist/components/atoms/Checkbox/Checkbox.js +39 -39
  9. package/dist/components/atoms/Icon/Icon.d.ts +10 -10
  10. package/dist/components/atoms/Icon/Icon.js +123 -123
  11. package/dist/components/atoms/Icon/icons/ArrivalIcon.d.ts +8 -8
  12. package/dist/components/atoms/Icon/icons/ArrivalIcon.js +31 -31
  13. package/dist/components/atoms/Icon/icons/BuildingIcon.d.ts +8 -8
  14. package/dist/components/atoms/Icon/icons/BuildingIcon.js +36 -36
  15. package/dist/components/atoms/Icon/icons/CalendarIcon.d.ts +12 -12
  16. package/dist/components/atoms/Icon/icons/CalendarIcon.js +41 -41
  17. package/dist/components/atoms/Icon/icons/CalendarOutlineIcon.d.ts +8 -8
  18. package/dist/components/atoms/Icon/icons/CalendarOutlineIcon.js +36 -36
  19. package/dist/components/atoms/Icon/icons/CarIcon.d.ts +8 -8
  20. package/dist/components/atoms/Icon/icons/CarIcon.js +30 -30
  21. package/dist/components/atoms/Icon/icons/Check.d.ts +8 -8
  22. package/dist/components/atoms/Icon/icons/Check.js +30 -30
  23. package/dist/components/atoms/Icon/icons/CheckCircleIcon.d.ts +8 -8
  24. package/dist/components/atoms/Icon/icons/CheckCircleIcon.js +30 -30
  25. package/dist/components/atoms/Icon/icons/Chevron.d.ts +9 -9
  26. package/dist/components/atoms/Icon/icons/Chevron.js +54 -54
  27. package/dist/components/atoms/Icon/icons/ChevronDownIcon.d.ts +8 -8
  28. package/dist/components/atoms/Icon/icons/ChevronDownIcon.js +30 -30
  29. package/dist/components/atoms/Icon/icons/Close.d.ts +8 -8
  30. package/dist/components/atoms/Icon/icons/Close.js +30 -30
  31. package/dist/components/atoms/Icon/icons/DeleteIcon.d.ts +8 -8
  32. package/dist/components/atoms/Icon/icons/DeleteIcon.js +30 -30
  33. package/dist/components/atoms/Icon/icons/DepartureIcon.d.ts +8 -8
  34. package/dist/components/atoms/Icon/icons/DepartureIcon.js +30 -30
  35. package/dist/components/atoms/Icon/icons/EyeIcon.d.ts +8 -8
  36. package/dist/components/atoms/Icon/icons/EyeIcon.js +30 -30
  37. package/dist/components/atoms/Icon/icons/FacebookIcon.d.ts +8 -8
  38. package/dist/components/atoms/Icon/icons/FacebookIcon.js +36 -36
  39. package/dist/components/atoms/Icon/icons/HomeIcon.d.ts +8 -8
  40. package/dist/components/atoms/Icon/icons/HomeIcon.js +25 -25
  41. package/dist/components/atoms/Icon/icons/InfoIcon.d.ts +8 -8
  42. package/dist/components/atoms/Icon/icons/InfoIcon.js +30 -30
  43. package/dist/components/atoms/Icon/icons/LinkedInIcon.d.ts +8 -8
  44. package/dist/components/atoms/Icon/icons/LinkedInIcon.js +36 -36
  45. package/dist/components/atoms/Icon/icons/MapPinIcon.d.ts +8 -8
  46. package/dist/components/atoms/Icon/icons/MapPinIcon.js +30 -30
  47. package/dist/components/atoms/Icon/icons/MautoucoLogo.d.ts +8 -8
  48. package/dist/components/atoms/Icon/icons/MautoucoLogo.js +37 -37
  49. package/dist/components/atoms/Icon/icons/MenuIcon.d.ts +8 -8
  50. package/dist/components/atoms/Icon/icons/MenuIcon.js +37 -37
  51. package/dist/components/atoms/Icon/icons/MinusIcon.d.ts +8 -8
  52. package/dist/components/atoms/Icon/icons/MinusIcon.js +25 -25
  53. package/dist/components/atoms/Icon/icons/MoreIcon.d.ts +8 -8
  54. package/dist/components/atoms/Icon/icons/MoreIcon.js +30 -30
  55. package/dist/components/atoms/Icon/icons/PlaneIcon.d.ts +8 -8
  56. package/dist/components/atoms/Icon/icons/PlaneIcon.js +36 -36
  57. package/dist/components/atoms/Icon/icons/PlusIcon.d.ts +8 -8
  58. package/dist/components/atoms/Icon/icons/PlusIcon.js +25 -25
  59. package/dist/components/atoms/Icon/icons/Search.d.ts +8 -8
  60. package/dist/components/atoms/Icon/icons/Search.js +30 -30
  61. package/dist/components/atoms/Icon/icons/Settings.d.ts +8 -8
  62. package/dist/components/atoms/Icon/icons/Settings.js +30 -30
  63. package/dist/components/atoms/Icon/icons/ShipIcon.d.ts +8 -8
  64. package/dist/components/atoms/Icon/icons/ShipIcon.js +36 -36
  65. package/dist/components/atoms/Icon/icons/StrollerIcon.d.ts +8 -8
  66. package/dist/components/atoms/Icon/icons/StrollerIcon.js +30 -30
  67. package/dist/components/atoms/Icon/icons/TwitterIcon.d.ts +8 -8
  68. package/dist/components/atoms/Icon/icons/TwitterIcon.js +36 -36
  69. package/dist/components/atoms/Icon/icons/User.d.ts +8 -8
  70. package/dist/components/atoms/Icon/icons/User.js +30 -30
  71. package/dist/components/atoms/Icon/icons/UserIcon.d.ts +12 -12
  72. package/dist/components/atoms/Icon/icons/UserIcon.js +41 -41
  73. package/dist/components/atoms/Icon/icons/Youtube.d.ts +8 -8
  74. package/dist/components/atoms/Icon/icons/Youtube.js +36 -36
  75. package/dist/components/atoms/Illustration/Illustration.d.ts +14 -14
  76. package/dist/components/atoms/Illustration/Illustration.js +33 -33
  77. package/dist/components/atoms/Illustration/illustrations.d.ts +51 -51
  78. package/dist/components/atoms/Illustration/illustrations.js +97 -97
  79. package/dist/components/atoms/Inputs/DropdownInput/DropdownInput.d.ts +12 -12
  80. package/dist/components/atoms/Inputs/DropdownInput/DropdownInput.js +53 -53
  81. package/dist/components/atoms/Inputs/Input/Input.d.ts +15 -15
  82. package/dist/components/atoms/Inputs/Input/Input.js +27 -27
  83. package/dist/components/atoms/Inputs/Textarea/Textarea.d.ts +14 -14
  84. package/dist/components/atoms/Inputs/Textarea/Textarea.js +15 -15
  85. package/dist/components/atoms/Link/Link.d.ts +44 -44
  86. package/dist/components/atoms/Link/Link.js +76 -76
  87. package/dist/components/atoms/RatingStar/RatingStar.d.ts +40 -40
  88. package/dist/components/atoms/RatingStar/RatingStar.js +54 -54
  89. package/dist/components/atoms/SegmentedButton/SegmentedButton.d.ts +27 -27
  90. package/dist/components/atoms/SegmentedButton/SegmentedButton.js +49 -49
  91. package/dist/components/atoms/SelectedValue/SelectedValue.d.ts +11 -11
  92. package/dist/components/atoms/SelectedValue/SelectedValue.js +29 -29
  93. package/dist/components/atoms/Slider/Slider.d.ts +52 -52
  94. package/dist/components/atoms/Slider/Slider.js +30 -30
  95. package/dist/components/atoms/Spinner/Spinner.d.ts +9 -9
  96. package/dist/components/atoms/Spinner/Spinner.js +38 -38
  97. package/dist/components/atoms/Spinner/variants/ButtonSpinner.d.ts +8 -8
  98. package/dist/components/atoms/Spinner/variants/ButtonSpinner.js +19 -19
  99. package/dist/components/atoms/Spinner/variants/LoadingSpinner.d.ts +7 -7
  100. package/dist/components/atoms/Spinner/variants/LoadingSpinner.js +7 -7
  101. package/dist/components/atoms/Tab/Tab.css +266 -266
  102. package/dist/components/atoms/Tab/Tab.d.ts +22 -22
  103. package/dist/components/atoms/Tab/Tab.js +54 -54
  104. package/dist/components/atoms/Typography/Typography.d.ts +24 -24
  105. package/dist/components/atoms/Typography/Typography.js +100 -100
  106. package/dist/components/molecules/Calendar/CalendarInput.d.ts +34 -34
  107. package/dist/components/molecules/Calendar/CalendarInput.js +49 -49
  108. package/dist/components/molecules/Calendar/DateTime.d.ts +25 -25
  109. package/dist/components/molecules/Calendar/DateTime.js +106 -106
  110. package/dist/components/molecules/Calendar/TimePicker.d.ts +16 -16
  111. package/dist/components/molecules/Calendar/TimePicker.js +91 -91
  112. package/dist/components/molecules/LocationDropdown/LocationDropdown.d.ts +34 -34
  113. package/dist/components/molecules/LocationDropdown/LocationDropdown.js +120 -120
  114. package/dist/components/molecules/LocationDropdown/index.d.ts +2 -2
  115. package/dist/components/molecules/LocationDropdown/index.js +1 -1
  116. package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.d.ts +29 -29
  117. package/dist/components/molecules/MultiSelectDropdown/MultiSelectDropdown.js +106 -106
  118. package/dist/components/molecules/RatingTab/RatingTab.d.ts +39 -39
  119. package/dist/components/molecules/RatingTab/RatingTab.js +41 -41
  120. package/dist/components/molecules/TabGroup/TabGroup.d.ts +17 -17
  121. package/dist/components/molecules/TabGroup/TabGroup.js +30 -30
  122. package/dist/components/molecules/UserCard/UserCard.d.ts +20 -20
  123. package/dist/components/molecules/UserCard/UserCard.js +57 -57
  124. package/dist/components/organisms/CardContainer/CardContainer.d.ts +37 -37
  125. package/dist/components/organisms/CardContainer/CardContainer.js +27 -27
  126. package/dist/components/organisms/DateTimePicker/DateTimePicker.d.ts +15 -15
  127. package/dist/components/organisms/DateTimePicker/DateTimePicker.js +66 -66
  128. package/dist/components/organisms/Dialog/Dialog.d.ts +103 -103
  129. package/dist/components/organisms/Dialog/Dialog.js +162 -162
  130. package/dist/components/organisms/Footer/Footer.d.ts +38 -38
  131. package/dist/components/organisms/Footer/Footer.js +74 -74
  132. package/dist/components/organisms/PaxSelector/PaxSelector.d.ts +63 -63
  133. package/dist/components/organisms/PaxSelector/PaxSelector.js +402 -402
  134. package/dist/components/organisms/RoundTrip/RoundTrip.d.ts +54 -54
  135. package/dist/components/organisms/RoundTrip/RoundTrip.js +179 -179
  136. package/dist/components/organisms/RoundTrip/index.d.ts +2 -2
  137. package/dist/components/organisms/RoundTrip/index.js +1 -1
  138. package/dist/components/organisms/SearchBarTransfer/SearchBarTransfer.d.ts +35 -35
  139. package/dist/components/organisms/SearchBarTransfer/SearchBarTransfer.js +192 -192
  140. package/dist/components/organisms/SearchBarTransfer/index.d.ts +2 -2
  141. package/dist/components/organisms/SearchBarTransfer/index.js +1 -1
  142. package/dist/components/organisms/TopNavigation/DesktopNav.d.ts +33 -33
  143. package/dist/components/organisms/TopNavigation/DesktopNav.js +32 -26
  144. package/dist/components/organisms/TopNavigation/MobileNav.d.ts +32 -32
  145. package/dist/components/organisms/TopNavigation/MobileNav.js +45 -45
  146. package/dist/components/organisms/TopNavigation/TopNavigation.d.ts +33 -33
  147. package/dist/components/organisms/TopNavigation/TopNavigation.js +20 -20
  148. package/dist/components/organisms/TransferLine/TransferLine.d.ts +53 -53
  149. package/dist/components/organisms/TransferLine/TransferLine.js +179 -179
  150. package/dist/components/ui/button.d.ts +10 -10
  151. package/dist/components/ui/button.js +56 -56
  152. package/dist/components/ui/calendar.d.ts +8 -8
  153. package/dist/components/ui/calendar.js +87 -87
  154. package/dist/components/ui/popover.d.ts +7 -7
  155. package/dist/components/ui/popover.js +42 -42
  156. package/dist/hooks/useMobile.d.ts +5 -5
  157. package/dist/hooks/useMobile.js +26 -26
  158. package/dist/index.d.ts +49 -49
  159. package/dist/index.js +46 -46
  160. package/dist/lib/utils.d.ts +7 -7
  161. package/dist/lib/utils.js +13 -13
  162. package/dist/styles/components/avatar.css +122 -122
  163. package/dist/styles/components/calendar.css +140 -140
  164. package/dist/styles/components/checkbox.css +206 -206
  165. package/dist/styles/components/dropdown.css +269 -269
  166. package/dist/styles/components/forms.css +209 -209
  167. package/dist/styles/components/illustration.css +123 -123
  168. package/dist/styles/components/molecule/calendarInput.css +133 -133
  169. package/dist/styles/components/molecule/dateTime.css +126 -126
  170. package/dist/styles/components/molecule/location-dropdown.css +132 -132
  171. package/dist/styles/components/molecule/timePicker.css +122 -122
  172. package/dist/styles/components/multiselect-dropdown.css +286 -286
  173. package/dist/styles/components/organism/card-container.css +148 -148
  174. package/dist/styles/components/organism/dialog.css +168 -168
  175. package/dist/styles/components/organism/footer.css +119 -119
  176. package/dist/styles/components/organism/pax-selector.css +617 -617
  177. package/dist/styles/components/organism/round-trip.css +139 -139
  178. package/dist/styles/components/organism/search-bar-transfer.css +158 -161
  179. package/dist/styles/components/organism/topnavigation.css +143 -143
  180. package/dist/styles/components/organism/transfer-line.css +138 -138
  181. package/dist/styles/components/rating-star.css +145 -145
  182. package/dist/styles/components/rating-tab.css +179 -179
  183. package/dist/styles/components/scrollbar.css +155 -155
  184. package/dist/styles/components/segmented-button.css +214 -214
  185. package/dist/styles/components/selected-value.css +175 -175
  186. package/dist/styles/components/slider.css +182 -182
  187. package/dist/styles/components/typography.css +245 -245
  188. package/dist/styles/tokens/tokens.css +119 -119
  189. package/dist/styles/tokens/tokens.d.ts +3108 -3108
  190. package/dist/styles/tokens/tokens.js +2652 -2652
  191. package/package.json +103 -103
  192. package/src/components/atoms/Avatar/Avatar.tsx +60 -60
  193. package/src/components/atoms/Button/Button.css +200 -200
  194. package/src/components/atoms/Button/Button.tsx +82 -82
  195. package/src/components/atoms/Checkbox/Checkbox.tsx +83 -83
  196. package/src/components/atoms/Icon/Icon.tsx +163 -163
  197. package/src/components/atoms/Icon/icons/ArrivalIcon.tsx +52 -52
  198. package/src/components/atoms/Icon/icons/BuildingIcon.tsx +50 -50
  199. package/src/components/atoms/Icon/icons/CalendarIcon.tsx +63 -63
  200. package/src/components/atoms/Icon/icons/CalendarOutlineIcon.tsx +50 -50
  201. package/src/components/atoms/Icon/icons/CarIcon.tsx +44 -44
  202. package/src/components/atoms/Icon/icons/Check.tsx +36 -36
  203. package/src/components/atoms/Icon/icons/CheckCircleIcon.tsx +48 -48
  204. package/src/components/atoms/Icon/icons/Chevron.tsx +73 -73
  205. package/src/components/atoms/Icon/icons/ChevronDownIcon.tsx +46 -46
  206. package/src/components/atoms/Icon/icons/Close.tsx +39 -39
  207. package/src/components/atoms/Icon/icons/DeleteIcon.tsx +44 -44
  208. package/src/components/atoms/Icon/icons/DepartureIcon.tsx +50 -50
  209. package/src/components/atoms/Icon/icons/EyeIcon.tsx +44 -44
  210. package/src/components/atoms/Icon/icons/FacebookIcon.tsx +50 -50
  211. package/src/components/atoms/Icon/icons/HomeIcon.tsx +52 -52
  212. package/src/components/atoms/Icon/icons/InfoIcon.tsx +44 -44
  213. package/src/components/atoms/Icon/icons/LinkedInIcon.tsx +50 -50
  214. package/src/components/atoms/Icon/icons/MapPinIcon.tsx +44 -44
  215. package/src/components/atoms/Icon/icons/MautoucoLogo.tsx +93 -93
  216. package/src/components/atoms/Icon/icons/MenuIcon.tsx +49 -49
  217. package/src/components/atoms/Icon/icons/MinusIcon.tsx +45 -45
  218. package/src/components/atoms/Icon/icons/MoreIcon.tsx +44 -44
  219. package/src/components/atoms/Icon/icons/PlaneIcon.tsx +50 -50
  220. package/src/components/atoms/Icon/icons/PlusIcon.tsx +45 -45
  221. package/src/components/atoms/Icon/icons/Search.tsx +37 -37
  222. package/src/components/atoms/Icon/icons/Settings.tsx +38 -38
  223. package/src/components/atoms/Icon/icons/ShipIcon.tsx +50 -50
  224. package/src/components/atoms/Icon/icons/StrollerIcon.tsx +44 -44
  225. package/src/components/atoms/Icon/icons/TwitterIcon.tsx +50 -50
  226. package/src/components/atoms/Icon/icons/User.tsx +37 -37
  227. package/src/components/atoms/Icon/icons/UserIcon.tsx +63 -63
  228. package/src/components/atoms/Icon/icons/Youtube.tsx +50 -50
  229. package/src/components/atoms/Illustration/Illustration.tsx +28 -28
  230. package/src/components/atoms/Illustration/illustrations.ts +116 -116
  231. package/src/components/atoms/Inputs/DropdownInput/DropdownInput.tsx +96 -96
  232. package/src/components/atoms/Inputs/Textarea/Textarea.tsx +51 -51
  233. package/src/components/atoms/Link/Link.tsx +168 -168
  234. package/src/components/atoms/RatingStar/RatingStar.tsx +114 -114
  235. package/src/components/atoms/SegmentedButton/SegmentedButton.tsx +94 -94
  236. package/src/components/atoms/SelectedValue/SelectedValue.tsx +59 -59
  237. package/src/components/atoms/Slider/Slider.tsx +95 -95
  238. package/src/components/atoms/Spinner/Spinner.tsx +56 -56
  239. package/src/components/atoms/Spinner/variants/ButtonSpinner.tsx +37 -37
  240. package/src/components/atoms/Spinner/variants/LoadingSpinner.tsx +22 -22
  241. package/src/components/atoms/Tab/Tab.css +147 -147
  242. package/src/components/atoms/Tab/Tab.tsx +96 -96
  243. package/src/components/atoms/Typography/Typography.tsx +153 -153
  244. package/src/components/molecules/Calendar/CalendarInput.tsx +135 -135
  245. package/src/components/molecules/Calendar/DateTime.tsx +172 -172
  246. package/src/components/molecules/Calendar/TimePicker.tsx +174 -174
  247. package/src/components/molecules/LocationDropdown/LocationDropdown.tsx +234 -234
  248. package/src/components/molecules/LocationDropdown/index.ts +2 -2
  249. package/src/components/molecules/RatingTab/RatingTab.tsx +96 -96
  250. package/src/components/molecules/TabGroup/TabGroup.tsx +60 -60
  251. package/src/components/molecules/UserCard/UserCard.stories.tsx +36 -36
  252. package/src/components/molecules/UserCard/UserCard.tsx +173 -173
  253. package/src/components/organisms/CardContainer/CardContainer.tsx +66 -66
  254. package/src/components/organisms/DateTimePicker/DateTimePicker.tsx +110 -110
  255. package/src/components/organisms/Dialog/Dialog.tsx +352 -352
  256. package/src/components/organisms/Footer/Footer.tsx +290 -290
  257. package/src/components/organisms/PaxSelector/PaxSelector.tsx +979 -979
  258. package/src/components/organisms/RoundTrip/RoundTrip.tsx +335 -335
  259. package/src/components/organisms/RoundTrip/index.ts +2 -2
  260. package/src/components/organisms/SearchBarTransfer/SearchBarTransfer.tsx +388 -388
  261. package/src/components/organisms/SearchBarTransfer/index.ts +2 -2
  262. package/src/components/organisms/TopNavigation/DesktopNav.tsx +133 -122
  263. package/src/components/organisms/TopNavigation/MobileNav.tsx +212 -212
  264. package/src/components/organisms/TopNavigation/TopNavigation.tsx +45 -45
  265. package/src/components/organisms/TransferLine/TransferLine.tsx +369 -369
  266. package/src/components/ui/button.tsx +60 -60
  267. package/src/components/ui/calendar.tsx +246 -246
  268. package/src/components/ui/popover.tsx +46 -46
  269. package/src/styles/components/avatar.css +58 -58
  270. package/src/styles/components/calendar.css +85 -85
  271. package/src/styles/components/checkbox.css +130 -130
  272. package/src/styles/components/dropdown.css +214 -214
  273. package/src/styles/components/forms.css +147 -147
  274. package/src/styles/components/illustration.css +7 -7
  275. package/src/styles/components/molecule/calendarInput.css +156 -156
  276. package/src/styles/components/molecule/dateTime.css +14 -14
  277. package/src/styles/components/molecule/location-dropdown.css +204 -204
  278. package/src/styles/components/molecule/timePicker.css +78 -78
  279. package/src/styles/components/multiselect-dropdown.css +230 -230
  280. package/src/styles/components/organism/card-container.css +49 -49
  281. package/src/styles/components/organism/dialog.css +241 -241
  282. package/src/styles/components/organism/footer.css +113 -113
  283. package/src/styles/components/organism/pax-selector.css +702 -702
  284. package/src/styles/components/organism/round-trip.css +55 -55
  285. package/src/styles/components/organism/search-bar-transfer.css +128 -127
  286. package/src/styles/components/organism/topnavigation.css +161 -161
  287. package/src/styles/components/organism/transfer-line.css +86 -86
  288. package/src/styles/components/rating-star.css +39 -39
  289. package/src/styles/components/rating-tab.css +83 -83
  290. package/src/styles/components/scrollbar.css +63 -63
  291. package/src/styles/components/segmented-button.css +134 -134
  292. package/src/styles/components/selected-value.css +80 -80
  293. package/src/styles/components/slider.css +86 -86
  294. package/src/styles/components/typography.css +251 -251
  295. package/src/styles/fonts.css +50 -0
  296. package/src/styles/tokens/tokens.css +119 -119
  297. package/src/styles/tokens/tokens.js +12 -6
@@ -1,87 +1,87 @@
1
- "use client";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
- var __assign = (this && this.__assign) || function () {
7
- __assign = Object.assign || function(t) {
8
- for (var s, i = 1, n = arguments.length; i < n; i++) {
9
- s = arguments[i];
10
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
- t[p] = s[p];
12
- }
13
- return t;
14
- };
15
- return __assign.apply(this, arguments);
16
- };
17
- var __rest = (this && this.__rest) || function (s, e) {
18
- var t = {};
19
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
20
- t[p] = s[p];
21
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
22
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
23
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
24
- t[p[i]] = s[p[i]];
25
- }
26
- return t;
27
- };
28
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
29
- import * as React from "react";
30
- import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, } from "lucide-react";
31
- import { DayPicker, getDefaultClassNames, MonthGrid, } from "react-day-picker";
32
- import { Button, buttonVariants } from "./button";
33
- import { cn } from "../../lib/utils";
34
- function Calendar(_a) {
35
- var className = _a.className, classNames = _a.classNames, _b = _a.showOutsideDays, showOutsideDays = _b === void 0 ? true : _b, _c = _a.captionLayout, captionLayout = _c === void 0 ? "label" : _c, _d = _a.buttonVariant, buttonVariant = _d === void 0 ? "ghost" : _d, formatters = _a.formatters, components = _a.components, props = __rest(_a, ["className", "classNames", "showOutsideDays", "captionLayout", "buttonVariant", "formatters", "components"]);
36
- var defaultClassNames = getDefaultClassNames();
37
- return (_jsx(DayPicker, __assign({ showOutsideDays: showOutsideDays, className: cn("bg-background group/calendar p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent", String.raw(templateObject_1 || (templateObject_1 = __makeTemplateObject(["rtl:**:[.rdp-button_next>svg]:rotate-180"], ["rtl:**:[.rdp-button\\_next>svg]:rotate-180"]))), String.raw(templateObject_2 || (templateObject_2 = __makeTemplateObject(["rtl:**:[.rdp-button_previous>svg]:rotate-180"], ["rtl:**:[.rdp-button\\_previous>svg]:rotate-180"]))), className), captionLayout: captionLayout, formatters: __assign({ formatMonthDropdown: function (date) {
38
- return date.toLocaleString("default", { month: "short" });
39
- } }, formatters), classNames: __assign({ root: cn("w-fit", defaultClassNames.root), months: cn("relative flex flex-col gap-4 md:flex-row", defaultClassNames.months), month: cn("flex w-full flex-col gap-4", defaultClassNames.month), nav: cn("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1", defaultClassNames.nav), button_previous: cn(buttonVariants({ variant: buttonVariant }), "h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50", defaultClassNames.button_previous), button_next: cn(buttonVariants({ variant: buttonVariant }), "h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50", defaultClassNames.button_next), month_caption: cn("flex h-[--cell-size] w-full items-center justify-center px-[--cell-size]", defaultClassNames.month_caption), dropdowns: cn("flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium", defaultClassNames.dropdowns), dropdown_root: cn("has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border", defaultClassNames.dropdown_root), dropdown: cn("absolute inset-0 opacity-0", defaultClassNames.dropdown), caption_label: cn("select-none font-medium", captionLayout === "label"
40
- ? "text-sm"
41
- : "[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5", defaultClassNames.caption_label, "calendar--caption_label"), table: "w-full border-collapse", weekdays: cn("flex", defaultClassNames.weekdays), weekday: cn("text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal", defaultClassNames.weekday, "calendar--weekday"), week: cn("mt-2 flex w-full", defaultClassNames.week), week_number_header: cn("w-[--cell-size] select-none", defaultClassNames.week_number_header), week_number: cn("text-muted-foreground select-none text-[0.8rem]", defaultClassNames.week_number), day: cn("relative w-full h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none", props.showWeekNumber
42
- ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-md"
43
- : "[&:first-child[data-selected=true]_button]:rounded-l-md", defaultClassNames.day), range_start: cn("bg-accent rounded-l-md", defaultClassNames.range_start), range_middle: cn("rounded-none", defaultClassNames.range_middle), range_end: cn("bg-accent rounded-r-md", defaultClassNames.range_end), today: cn("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none", defaultClassNames.today), outside: cn("text-muted-foreground aria-selected:text-muted-foreground", defaultClassNames.outside), disabled: cn("text-muted-foreground opacity-50", defaultClassNames.disabled), hidden: cn("invisible", defaultClassNames.hidden) }, classNames), components: __assign({ Root: function (_a) {
44
- var className = _a.className, rootRef = _a.rootRef, props = __rest(_a, ["className", "rootRef"]);
45
- return (_jsx("div", __assign({ "data-slot": "calendar", ref: rootRef, className: cn(className) }, props)));
46
- }, Chevron: function (_a) {
47
- var className = _a.className, orientation = _a.orientation, props = __rest(_a, ["className", "orientation"]);
48
- if (orientation === "left") {
49
- return (_jsx(ChevronLeftIcon, __assign({ className: cn("size-4", className) }, props)));
50
- }
51
- if (orientation === "right") {
52
- return (_jsx(ChevronRightIcon, __assign({ className: cn("size-4", className) }, props)));
53
- }
54
- return (_jsx(ChevronDownIcon, __assign({ className: cn("size-4", className) }, props)));
55
- }, DayButton: CalendarDayButton, WeekNumber: function (_a) {
56
- var children = _a.children, props = __rest(_a, ["children"]);
57
- return (_jsx("td", __assign({}, props, { children: _jsx("div", __assign({ className: "flex size-[--cell-size] items-center justify-center text-center" }, { children: children })) })));
58
- }, MonthGrid: CustomMonthGrid, CaptionLabel: CustomCaptionLabel }, components) }, props)));
59
- }
60
- function CalendarDayButton(_a) {
61
- var className = _a.className, day = _a.day, modifiers = _a.modifiers, props = __rest(_a, ["className", "day", "modifiers"]);
62
- var defaultClassNames = getDefaultClassNames();
63
- var ref = React.useRef(null);
64
- React.useEffect(function () {
65
- var _a;
66
- if (modifiers.focused)
67
- (_a = ref.current) === null || _a === void 0 ? void 0 : _a.focus();
68
- }, [modifiers.focused]);
69
- return (_jsx(Button, __assign({ ref: ref, variant: "ghost", size: "icon", "data-day": day.date.toLocaleDateString(), "data-selected-single": modifiers.selected &&
70
- !modifiers.range_start &&
71
- !modifiers.range_end &&
72
- !modifiers.range_middle, "data-range-start": modifiers.range_start, "data-range-end": modifiers.range_end, "data-range-middle": modifiers.range_middle, className: cn(
73
- // "data-[selected-single=true]:bg-[#FFAB63] data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-[#FFAB63] data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-[#FFAB63] data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-[--cell-size] flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70",
74
- defaultClassNames.day, className
75
- // 'data-[selected-single=true]:!rounded-full data-[range-start=true]:!rounded-full data-[range-end=true]:!rounded-full data-[range-middle=true]:bg-[#FFEBD4]'
76
- ) }, props, { children: _jsx("span", __assign({ className: "relative z-20" }, { children: day.date.getDate() })) })));
77
- }
78
- function CustomMonthGrid(props) {
79
- return (_jsxs(_Fragment, { children: [_jsx("hr", { className: "calendar--separator" }), _jsx(MonthGrid, __assign({}, props))] }));
80
- }
81
- function CustomCaptionLabel(props) {
82
- var children = props.children;
83
- var _a = String(children).split(" "), month = _a[0], year = _a[1];
84
- return (_jsxs("span", __assign({}, props, { children: [month, ", ", year] })));
85
- }
86
- export { Calendar, CalendarDayButton };
87
- var templateObject_1, templateObject_2;
1
+ "use client";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __assign = (this && this.__assign) || function () {
7
+ __assign = Object.assign || function(t) {
8
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9
+ s = arguments[i];
10
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
11
+ t[p] = s[p];
12
+ }
13
+ return t;
14
+ };
15
+ return __assign.apply(this, arguments);
16
+ };
17
+ var __rest = (this && this.__rest) || function (s, e) {
18
+ var t = {};
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
20
+ t[p] = s[p];
21
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
22
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
23
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
24
+ t[p[i]] = s[p[i]];
25
+ }
26
+ return t;
27
+ };
28
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
29
+ import * as React from "react";
30
+ import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, } from "lucide-react";
31
+ import { DayPicker, getDefaultClassNames, MonthGrid, } from "react-day-picker";
32
+ import { Button, buttonVariants } from "./button";
33
+ import { cn } from "../../lib/utils";
34
+ function Calendar(_a) {
35
+ var className = _a.className, classNames = _a.classNames, _b = _a.showOutsideDays, showOutsideDays = _b === void 0 ? true : _b, _c = _a.captionLayout, captionLayout = _c === void 0 ? "label" : _c, _d = _a.buttonVariant, buttonVariant = _d === void 0 ? "ghost" : _d, formatters = _a.formatters, components = _a.components, props = __rest(_a, ["className", "classNames", "showOutsideDays", "captionLayout", "buttonVariant", "formatters", "components"]);
36
+ var defaultClassNames = getDefaultClassNames();
37
+ return (_jsx(DayPicker, __assign({ showOutsideDays: showOutsideDays, className: cn("bg-background group/calendar p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent", String.raw(templateObject_1 || (templateObject_1 = __makeTemplateObject(["rtl:**:[.rdp-button_next>svg]:rotate-180"], ["rtl:**:[.rdp-button\\_next>svg]:rotate-180"]))), String.raw(templateObject_2 || (templateObject_2 = __makeTemplateObject(["rtl:**:[.rdp-button_previous>svg]:rotate-180"], ["rtl:**:[.rdp-button\\_previous>svg]:rotate-180"]))), className), captionLayout: captionLayout, formatters: __assign({ formatMonthDropdown: function (date) {
38
+ return date.toLocaleString("default", { month: "short" });
39
+ } }, formatters), classNames: __assign({ root: cn("w-fit", defaultClassNames.root), months: cn("relative flex flex-col gap-4 md:flex-row", defaultClassNames.months), month: cn("flex w-full flex-col gap-4", defaultClassNames.month), nav: cn("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1", defaultClassNames.nav), button_previous: cn(buttonVariants({ variant: buttonVariant }), "h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50", defaultClassNames.button_previous), button_next: cn(buttonVariants({ variant: buttonVariant }), "h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50", defaultClassNames.button_next), month_caption: cn("flex h-[--cell-size] w-full items-center justify-center px-[--cell-size]", defaultClassNames.month_caption), dropdowns: cn("flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium", defaultClassNames.dropdowns), dropdown_root: cn("has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border", defaultClassNames.dropdown_root), dropdown: cn("absolute inset-0 opacity-0", defaultClassNames.dropdown), caption_label: cn("select-none font-medium", captionLayout === "label"
40
+ ? "text-sm"
41
+ : "[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5", defaultClassNames.caption_label, "calendar--caption_label"), table: "w-full border-collapse", weekdays: cn("flex", defaultClassNames.weekdays), weekday: cn("text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal", defaultClassNames.weekday, "calendar--weekday"), week: cn("mt-2 flex w-full", defaultClassNames.week), week_number_header: cn("w-[--cell-size] select-none", defaultClassNames.week_number_header), week_number: cn("text-muted-foreground select-none text-[0.8rem]", defaultClassNames.week_number), day: cn("relative w-full h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none", props.showWeekNumber
42
+ ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-md"
43
+ : "[&:first-child[data-selected=true]_button]:rounded-l-md", defaultClassNames.day), range_start: cn("bg-accent rounded-l-md", defaultClassNames.range_start), range_middle: cn("rounded-none", defaultClassNames.range_middle), range_end: cn("bg-accent rounded-r-md", defaultClassNames.range_end), today: cn("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none", defaultClassNames.today), outside: cn("text-muted-foreground aria-selected:text-muted-foreground", defaultClassNames.outside), disabled: cn("text-muted-foreground opacity-50", defaultClassNames.disabled), hidden: cn("invisible", defaultClassNames.hidden) }, classNames), components: __assign({ Root: function (_a) {
44
+ var className = _a.className, rootRef = _a.rootRef, props = __rest(_a, ["className", "rootRef"]);
45
+ return (_jsx("div", __assign({ "data-slot": "calendar", ref: rootRef, className: cn(className) }, props)));
46
+ }, Chevron: function (_a) {
47
+ var className = _a.className, orientation = _a.orientation, props = __rest(_a, ["className", "orientation"]);
48
+ if (orientation === "left") {
49
+ return (_jsx(ChevronLeftIcon, __assign({ className: cn("size-4", className) }, props)));
50
+ }
51
+ if (orientation === "right") {
52
+ return (_jsx(ChevronRightIcon, __assign({ className: cn("size-4", className) }, props)));
53
+ }
54
+ return (_jsx(ChevronDownIcon, __assign({ className: cn("size-4", className) }, props)));
55
+ }, DayButton: CalendarDayButton, WeekNumber: function (_a) {
56
+ var children = _a.children, props = __rest(_a, ["children"]);
57
+ return (_jsx("td", __assign({}, props, { children: _jsx("div", __assign({ className: "flex size-[--cell-size] items-center justify-center text-center" }, { children: children })) })));
58
+ }, MonthGrid: CustomMonthGrid, CaptionLabel: CustomCaptionLabel }, components) }, props)));
59
+ }
60
+ function CalendarDayButton(_a) {
61
+ var className = _a.className, day = _a.day, modifiers = _a.modifiers, props = __rest(_a, ["className", "day", "modifiers"]);
62
+ var defaultClassNames = getDefaultClassNames();
63
+ var ref = React.useRef(null);
64
+ React.useEffect(function () {
65
+ var _a;
66
+ if (modifiers.focused)
67
+ (_a = ref.current) === null || _a === void 0 ? void 0 : _a.focus();
68
+ }, [modifiers.focused]);
69
+ return (_jsx(Button, __assign({ ref: ref, variant: "ghost", size: "icon", "data-day": day.date.toLocaleDateString(), "data-selected-single": modifiers.selected &&
70
+ !modifiers.range_start &&
71
+ !modifiers.range_end &&
72
+ !modifiers.range_middle, "data-range-start": modifiers.range_start, "data-range-end": modifiers.range_end, "data-range-middle": modifiers.range_middle, className: cn(
73
+ // "data-[selected-single=true]:bg-[#FFAB63] data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-[#FFAB63] data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-[#FFAB63] data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-[--cell-size] flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70",
74
+ defaultClassNames.day, className
75
+ // 'data-[selected-single=true]:!rounded-full data-[range-start=true]:!rounded-full data-[range-end=true]:!rounded-full data-[range-middle=true]:bg-[#FFEBD4]'
76
+ ) }, props, { children: _jsx("span", __assign({ className: "relative z-20" }, { children: day.date.getDate() })) })));
77
+ }
78
+ function CustomMonthGrid(props) {
79
+ return (_jsxs(_Fragment, { children: [_jsx("hr", { className: "calendar--separator" }), _jsx(MonthGrid, __assign({}, props))] }));
80
+ }
81
+ function CustomCaptionLabel(props) {
82
+ var children = props.children;
83
+ var _a = String(children).split(" "), month = _a[0], year = _a[1];
84
+ return (_jsxs("span", __assign({}, props, { children: [month, ", ", year] })));
85
+ }
86
+ export { Calendar, CalendarDayButton };
87
+ var templateObject_1, templateObject_2;
@@ -1,7 +1,7 @@
1
- import * as React from "react";
2
- import * as PopoverPrimitive from "@radix-ui/react-popover";
3
- declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
- declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
6
- declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
7
- export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
1
+ import * as React from "react";
2
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
3
+ declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
+ declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
6
+ declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
7
+ export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
@@ -1,42 +1,42 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import { jsx as _jsx } from "react/jsx-runtime";
24
- import * as PopoverPrimitive from "@radix-ui/react-popover";
25
- import { cn } from "../../lib/utils";
26
- function Popover(_a) {
27
- var props = __rest(_a, []);
28
- return _jsx(PopoverPrimitive.Root, __assign({ "data-slot": "popover" }, props));
29
- }
30
- function PopoverTrigger(_a) {
31
- var props = __rest(_a, []);
32
- return _jsx(PopoverPrimitive.Trigger, __assign({ "data-slot": "popover-trigger" }, props));
33
- }
34
- function PopoverContent(_a) {
35
- var className = _a.className, _b = _a.align, align = _b === void 0 ? "center" : _b, _c = _a.sideOffset, sideOffset = _c === void 0 ? 4 : _c, props = __rest(_a, ["className", "align", "sideOffset"]);
36
- return (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, __assign({ "data-slot": "popover-content", align: align, sideOffset: sideOffset, className: cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", className) }, props)) }));
37
- }
38
- function PopoverAnchor(_a) {
39
- var props = __rest(_a, []);
40
- return _jsx(PopoverPrimitive.Anchor, __assign({ "data-slot": "popover-anchor" }, props));
41
- }
42
- export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
25
+ import { cn } from "../../lib/utils";
26
+ function Popover(_a) {
27
+ var props = __rest(_a, []);
28
+ return _jsx(PopoverPrimitive.Root, __assign({ "data-slot": "popover" }, props));
29
+ }
30
+ function PopoverTrigger(_a) {
31
+ var props = __rest(_a, []);
32
+ return _jsx(PopoverPrimitive.Trigger, __assign({ "data-slot": "popover-trigger" }, props));
33
+ }
34
+ function PopoverContent(_a) {
35
+ var className = _a.className, _b = _a.align, align = _b === void 0 ? "center" : _b, _c = _a.sideOffset, sideOffset = _c === void 0 ? 4 : _c, props = __rest(_a, ["className", "align", "sideOffset"]);
36
+ return (_jsx(PopoverPrimitive.Portal, { children: _jsx(PopoverPrimitive.Content, __assign({ "data-slot": "popover-content", align: align, sideOffset: sideOffset, className: cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", className) }, props)) }));
37
+ }
38
+ function PopoverAnchor(_a) {
39
+ var props = __rest(_a, []);
40
+ return _jsx(PopoverPrimitive.Anchor, __assign({ "data-slot": "popover-anchor" }, props));
41
+ }
42
+ export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
@@ -1,5 +1,5 @@
1
- export declare function useMobile(breakpoint?: number): {
2
- isMobile: boolean;
3
- isTablet: boolean;
4
- isDesktop: boolean;
5
- };
1
+ export declare function useMobile(breakpoint?: number): {
2
+ isMobile: boolean;
3
+ isTablet: boolean;
4
+ isDesktop: boolean;
5
+ };
@@ -1,26 +1,26 @@
1
- import { useState, useEffect } from "react";
2
- export function useMobile(breakpoint) {
3
- if (breakpoint === void 0) { breakpoint = 768; }
4
- var _a = useState(false), isMobile = _a[0], setIsMobile = _a[1];
5
- var _b = useState(false), isTablet = _b[0], setIsTablet = _b[1];
6
- var _c = useState(false), isDesktop = _c[0], setIsDesktop = _c[1];
7
- useEffect(function () {
8
- var userAgent = typeof window.navigator === "undefined" ? "" : navigator.userAgent;
9
- var mobileRegex = /Android|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i;
10
- var tabletRegex = /iPad|Tablet|PlayBook|Nexus 7|Nexus 10/i;
11
- var isUserAgentMobile = mobileRegex.test(userAgent);
12
- var isUserAgentTablet = tabletRegex.test(userAgent);
13
- var handleResize = function () {
14
- var width = window.innerWidth;
15
- var widthMobile = width < breakpoint;
16
- var widthTablet = width >= breakpoint && width < 1024;
17
- setIsMobile(isUserAgentMobile || widthMobile);
18
- setIsTablet(isUserAgentTablet || widthTablet);
19
- setIsDesktop(!isUserAgentMobile && !isUserAgentTablet && width >= 1024);
20
- };
21
- handleResize();
22
- window.addEventListener("resize", handleResize);
23
- return function () { return window.removeEventListener("resize", handleResize); };
24
- }, [breakpoint]);
25
- return { isMobile: isMobile, isTablet: isTablet, isDesktop: isDesktop };
26
- }
1
+ import { useState, useEffect } from "react";
2
+ export function useMobile(breakpoint) {
3
+ if (breakpoint === void 0) { breakpoint = 768; }
4
+ var _a = useState(false), isMobile = _a[0], setIsMobile = _a[1];
5
+ var _b = useState(false), isTablet = _b[0], setIsTablet = _b[1];
6
+ var _c = useState(false), isDesktop = _c[0], setIsDesktop = _c[1];
7
+ useEffect(function () {
8
+ var userAgent = typeof window.navigator === "undefined" ? "" : navigator.userAgent;
9
+ var mobileRegex = /Android|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i;
10
+ var tabletRegex = /iPad|Tablet|PlayBook|Nexus 7|Nexus 10/i;
11
+ var isUserAgentMobile = mobileRegex.test(userAgent);
12
+ var isUserAgentTablet = tabletRegex.test(userAgent);
13
+ var handleResize = function () {
14
+ var width = window.innerWidth;
15
+ var widthMobile = width < breakpoint;
16
+ var widthTablet = width >= breakpoint && width < 1024;
17
+ setIsMobile(isUserAgentMobile || widthMobile);
18
+ setIsTablet(isUserAgentTablet || widthTablet);
19
+ setIsDesktop(!isUserAgentMobile && !isUserAgentTablet && width >= 1024);
20
+ };
21
+ handleResize();
22
+ window.addEventListener("resize", handleResize);
23
+ return function () { return window.removeEventListener("resize", handleResize); };
24
+ }, [breakpoint]);
25
+ return { isMobile: isMobile, isTablet: isTablet, isDesktop: isDesktop };
26
+ }
package/dist/index.d.ts CHANGED
@@ -1,49 +1,49 @@
1
- export { default as Button } from './components/atoms/Button/Button';
2
- export { default as Checkbox } from './components/atoms/Checkbox/Checkbox';
3
- export { default as Icon } from './components/atoms/Icon/Icon';
4
- export { default as DropdownInput } from './components/atoms/Inputs/DropdownInput/DropdownInput';
5
- export { default as Input } from './components/atoms/Inputs/Input/Input';
6
- export { default as Textarea } from './components/atoms/Inputs/Textarea/Textarea';
7
- export { default as SelectedValue } from './components/atoms/SelectedValue/SelectedValue';
8
- export { default as Spinner } from './components/atoms/Spinner/Spinner';
9
- export { default as Slider } from './components/atoms/Slider/Slider';
10
- export { default as RatingStar } from './components/atoms/RatingStar/RatingStar';
11
- export { Heading } from './components/atoms/Typography/Typography';
12
- export { Text } from './components/atoms/Typography/Typography';
13
- export { default as SegmentedButton } from './components/atoms/SegmentedButton/SegmentedButton';
14
- export { default as MultiSelectDropdown } from './components/molecules/MultiSelectDropdown/MultiSelectDropdown';
15
- export { default as CalendarInput } from './components/molecules/Calendar/CalendarInput';
16
- export { default as TimePicker } from './components/molecules/Calendar/TimePicker';
17
- export { default as RatingTab } from './components/molecules/RatingTab/RatingTab';
18
- export { default as LocationDropdown } from './components/molecules/LocationDropdown/LocationDropdown';
19
- export { TopNavigation } from './components/organisms/TopNavigation/TopNavigation';
20
- export { Footer } from './components/organisms/Footer/Footer';
21
- export { Dialog } from './components/organisms/Dialog/Dialog';
22
- export { CardContainer } from './components/organisms/CardContainer/CardContainer';
23
- export { Illustration } from './components/atoms/Illustration/Illustration';
24
- export { default as PaxSelector } from './components/organisms/PaxSelector/PaxSelector';
25
- export { default as DateTimePicker } from './components/organisms/DateTimePicker/DateTimePicker';
26
- export { default as RoundTrip } from './components/organisms/RoundTrip/RoundTrip';
27
- export { default as TransferLine } from './components/organisms/TransferLine/TransferLine';
28
- export { default as SearchBarTransfer } from './components/organisms/SearchBarTransfer/SearchBarTransfer';
29
- export { default as ButtonSpinner } from './components/atoms/Spinner/variants/ButtonSpinner';
30
- export { default as LoadingSpinner } from './components/atoms/Spinner/variants/LoadingSpinner';
31
- export { default as CheckIcon } from './components/atoms/Icon/icons/Check';
32
- export { default as ChevronIcon } from './components/atoms/Icon/icons/Chevron';
33
- export { default as CloseIcon } from './components/atoms/Icon/icons/Close';
34
- export { default as SearchIcon } from './components/atoms/Icon/icons/Search';
35
- export { default as SettingsIcon } from './components/atoms/Icon/icons/Settings';
36
- export { default as UserIcon } from './components/atoms/Icon/icons/User';
37
- export { default as PlusIcon } from './components/atoms/Icon/icons/PlusIcon';
38
- export { default as MinusIcon } from './components/atoms/Icon/icons/MinusIcon';
39
- export { default as HomeIcon } from './components/atoms/Icon/icons/HomeIcon';
40
- export type { TopNavigationProps } from './components/organisms/TopNavigation/TopNavigation';
41
- export type { FooterProps } from './components/organisms/Footer/Footer';
42
- export type { DialogProps, DialogSize } from './components/organisms/Dialog/Dialog';
43
- export type { CardContainerProps, CardContainerSpacing } from './components/organisms/CardContainer/CardContainer';
44
- export type { PaxSelectorProps, PaxData, ClientType } from './components/organisms/PaxSelector/PaxSelector';
45
- export type { LocationDropdownProps, LocationOption, LocationGroup, LocationData } from './components/molecules/LocationDropdown/LocationDropdown';
46
- export type { DateTimePickerProps } from './components/organisms/DateTimePicker/DateTimePicker';
47
- export type { RoundTripProps, RoundTripData, RoundTripTransfer } from './components/organisms/RoundTrip/RoundTrip';
48
- export type { TransferLineProps, TransferLineData, TransferType } from './components/organisms/TransferLine/TransferLine';
49
- export type { SearchBarTransferProps, SearchBarTransferData, TransferMode } from './components/organisms/SearchBarTransfer/SearchBarTransfer';
1
+ export { default as Button } from './components/atoms/Button/Button';
2
+ export { default as Checkbox } from './components/atoms/Checkbox/Checkbox';
3
+ export { default as Icon } from './components/atoms/Icon/Icon';
4
+ export { default as DropdownInput } from './components/atoms/Inputs/DropdownInput/DropdownInput';
5
+ export { default as Input } from './components/atoms/Inputs/Input/Input';
6
+ export { default as Textarea } from './components/atoms/Inputs/Textarea/Textarea';
7
+ export { default as SelectedValue } from './components/atoms/SelectedValue/SelectedValue';
8
+ export { default as Spinner } from './components/atoms/Spinner/Spinner';
9
+ export { default as Slider } from './components/atoms/Slider/Slider';
10
+ export { default as RatingStar } from './components/atoms/RatingStar/RatingStar';
11
+ export { Heading } from './components/atoms/Typography/Typography';
12
+ export { Text } from './components/atoms/Typography/Typography';
13
+ export { default as SegmentedButton } from './components/atoms/SegmentedButton/SegmentedButton';
14
+ export { default as MultiSelectDropdown } from './components/molecules/MultiSelectDropdown/MultiSelectDropdown';
15
+ export { default as CalendarInput } from './components/molecules/Calendar/CalendarInput';
16
+ export { default as TimePicker } from './components/molecules/Calendar/TimePicker';
17
+ export { default as RatingTab } from './components/molecules/RatingTab/RatingTab';
18
+ export { default as LocationDropdown } from './components/molecules/LocationDropdown/LocationDropdown';
19
+ export { TopNavigation } from './components/organisms/TopNavigation/TopNavigation';
20
+ export { Footer } from './components/organisms/Footer/Footer';
21
+ export { Dialog } from './components/organisms/Dialog/Dialog';
22
+ export { CardContainer } from './components/organisms/CardContainer/CardContainer';
23
+ export { Illustration } from './components/atoms/Illustration/Illustration';
24
+ export { default as PaxSelector } from './components/organisms/PaxSelector/PaxSelector';
25
+ export { default as DateTimePicker } from './components/organisms/DateTimePicker/DateTimePicker';
26
+ export { default as RoundTrip } from './components/organisms/RoundTrip/RoundTrip';
27
+ export { default as TransferLine } from './components/organisms/TransferLine/TransferLine';
28
+ export { default as SearchBarTransfer } from './components/organisms/SearchBarTransfer/SearchBarTransfer';
29
+ export { default as ButtonSpinner } from './components/atoms/Spinner/variants/ButtonSpinner';
30
+ export { default as LoadingSpinner } from './components/atoms/Spinner/variants/LoadingSpinner';
31
+ export { default as CheckIcon } from './components/atoms/Icon/icons/Check';
32
+ export { default as ChevronIcon } from './components/atoms/Icon/icons/Chevron';
33
+ export { default as CloseIcon } from './components/atoms/Icon/icons/Close';
34
+ export { default as SearchIcon } from './components/atoms/Icon/icons/Search';
35
+ export { default as SettingsIcon } from './components/atoms/Icon/icons/Settings';
36
+ export { default as UserIcon } from './components/atoms/Icon/icons/User';
37
+ export { default as PlusIcon } from './components/atoms/Icon/icons/PlusIcon';
38
+ export { default as MinusIcon } from './components/atoms/Icon/icons/MinusIcon';
39
+ export { default as HomeIcon } from './components/atoms/Icon/icons/HomeIcon';
40
+ export type { TopNavigationProps } from './components/organisms/TopNavigation/TopNavigation';
41
+ export type { FooterProps } from './components/organisms/Footer/Footer';
42
+ export type { DialogProps, DialogSize } from './components/organisms/Dialog/Dialog';
43
+ export type { CardContainerProps, CardContainerSpacing } from './components/organisms/CardContainer/CardContainer';
44
+ export type { PaxSelectorProps, PaxData, ClientType } from './components/organisms/PaxSelector/PaxSelector';
45
+ export type { LocationDropdownProps, LocationOption, LocationGroup, LocationData } from './components/molecules/LocationDropdown/LocationDropdown';
46
+ export type { DateTimePickerProps } from './components/organisms/DateTimePicker/DateTimePicker';
47
+ export type { RoundTripProps, RoundTripData, RoundTripTransfer } from './components/organisms/RoundTrip/RoundTrip';
48
+ export type { TransferLineProps, TransferLineData, TransferType } from './components/organisms/TransferLine/TransferLine';
49
+ export type { SearchBarTransferProps, SearchBarTransferData, TransferMode } from './components/organisms/SearchBarTransfer/SearchBarTransfer';
package/dist/index.js CHANGED
@@ -1,46 +1,46 @@
1
- // Atoms - Base components
2
- export { default as Button } from './components/atoms/Button/Button';
3
- export { default as Checkbox } from './components/atoms/Checkbox/Checkbox';
4
- export { default as Icon } from './components/atoms/Icon/Icon';
5
- export { default as DropdownInput } from './components/atoms/Inputs/DropdownInput/DropdownInput';
6
- export { default as Input } from './components/atoms/Inputs/Input/Input';
7
- export { default as Textarea } from './components/atoms/Inputs/Textarea/Textarea';
8
- export { default as SelectedValue } from './components/atoms/SelectedValue/SelectedValue';
9
- export { default as Spinner } from './components/atoms/Spinner/Spinner';
10
- export { default as Slider } from './components/atoms/Slider/Slider';
11
- export { default as RatingStar } from './components/atoms/RatingStar/RatingStar';
12
- export { Heading } from './components/atoms/Typography/Typography';
13
- export { Text } from './components/atoms/Typography/Typography';
14
- export { default as SegmentedButton } from './components/atoms/SegmentedButton/SegmentedButton';
15
- // Molecules - Composed components
16
- export { default as MultiSelectDropdown } from './components/molecules/MultiSelectDropdown/MultiSelectDropdown';
17
- export { default as CalendarInput } from './components/molecules/Calendar/CalendarInput';
18
- export { default as TimePicker } from './components/molecules/Calendar/TimePicker';
19
- export { default as RatingTab } from './components/molecules/RatingTab/RatingTab';
20
- export { default as LocationDropdown } from './components/molecules/LocationDropdown/LocationDropdown';
21
- // Organisms - Complex components
22
- export { TopNavigation } from './components/organisms/TopNavigation/TopNavigation';
23
- export { Footer } from './components/organisms/Footer/Footer';
24
- export { Dialog } from './components/organisms/Dialog/Dialog';
25
- export { CardContainer } from './components/organisms/CardContainer/CardContainer';
26
- export { Illustration } from './components/atoms/Illustration/Illustration';
27
- export { default as PaxSelector } from './components/organisms/PaxSelector/PaxSelector';
28
- export { default as DateTimePicker } from './components/organisms/DateTimePicker/DateTimePicker';
29
- export { default as RoundTrip } from './components/organisms/RoundTrip/RoundTrip';
30
- export { default as TransferLine } from './components/organisms/TransferLine/TransferLine';
31
- export { default as SearchBarTransfer } from './components/organisms/SearchBarTransfer/SearchBarTransfer';
32
- // Spinner Variants
33
- export { default as ButtonSpinner } from './components/atoms/Spinner/variants/ButtonSpinner';
34
- export { default as LoadingSpinner } from './components/atoms/Spinner/variants/LoadingSpinner';
35
- // Icons - Individual icon components
36
- export { default as CheckIcon } from './components/atoms/Icon/icons/Check';
37
- export { default as ChevronIcon } from './components/atoms/Icon/icons/Chevron';
38
- export { default as CloseIcon } from './components/atoms/Icon/icons/Close';
39
- export { default as SearchIcon } from './components/atoms/Icon/icons/Search';
40
- export { default as SettingsIcon } from './components/atoms/Icon/icons/Settings';
41
- export { default as UserIcon } from './components/atoms/Icon/icons/User';
42
- export { default as PlusIcon } from './components/atoms/Icon/icons/PlusIcon';
43
- export { default as MinusIcon } from './components/atoms/Icon/icons/MinusIcon';
44
- export { default as HomeIcon } from './components/atoms/Icon/icons/HomeIcon';
45
- // export type { InputProps } from './components/atoms/Inputs/Input/Input';
46
- // export type { CheckboxProps } from './components/atoms/Checkbox/Checkbox';
1
+ // Atoms - Base components
2
+ export { default as Button } from './components/atoms/Button/Button';
3
+ export { default as Checkbox } from './components/atoms/Checkbox/Checkbox';
4
+ export { default as Icon } from './components/atoms/Icon/Icon';
5
+ export { default as DropdownInput } from './components/atoms/Inputs/DropdownInput/DropdownInput';
6
+ export { default as Input } from './components/atoms/Inputs/Input/Input';
7
+ export { default as Textarea } from './components/atoms/Inputs/Textarea/Textarea';
8
+ export { default as SelectedValue } from './components/atoms/SelectedValue/SelectedValue';
9
+ export { default as Spinner } from './components/atoms/Spinner/Spinner';
10
+ export { default as Slider } from './components/atoms/Slider/Slider';
11
+ export { default as RatingStar } from './components/atoms/RatingStar/RatingStar';
12
+ export { Heading } from './components/atoms/Typography/Typography';
13
+ export { Text } from './components/atoms/Typography/Typography';
14
+ export { default as SegmentedButton } from './components/atoms/SegmentedButton/SegmentedButton';
15
+ // Molecules - Composed components
16
+ export { default as MultiSelectDropdown } from './components/molecules/MultiSelectDropdown/MultiSelectDropdown';
17
+ export { default as CalendarInput } from './components/molecules/Calendar/CalendarInput';
18
+ export { default as TimePicker } from './components/molecules/Calendar/TimePicker';
19
+ export { default as RatingTab } from './components/molecules/RatingTab/RatingTab';
20
+ export { default as LocationDropdown } from './components/molecules/LocationDropdown/LocationDropdown';
21
+ // Organisms - Complex components
22
+ export { TopNavigation } from './components/organisms/TopNavigation/TopNavigation';
23
+ export { Footer } from './components/organisms/Footer/Footer';
24
+ export { Dialog } from './components/organisms/Dialog/Dialog';
25
+ export { CardContainer } from './components/organisms/CardContainer/CardContainer';
26
+ export { Illustration } from './components/atoms/Illustration/Illustration';
27
+ export { default as PaxSelector } from './components/organisms/PaxSelector/PaxSelector';
28
+ export { default as DateTimePicker } from './components/organisms/DateTimePicker/DateTimePicker';
29
+ export { default as RoundTrip } from './components/organisms/RoundTrip/RoundTrip';
30
+ export { default as TransferLine } from './components/organisms/TransferLine/TransferLine';
31
+ export { default as SearchBarTransfer } from './components/organisms/SearchBarTransfer/SearchBarTransfer';
32
+ // Spinner Variants
33
+ export { default as ButtonSpinner } from './components/atoms/Spinner/variants/ButtonSpinner';
34
+ export { default as LoadingSpinner } from './components/atoms/Spinner/variants/LoadingSpinner';
35
+ // Icons - Individual icon components
36
+ export { default as CheckIcon } from './components/atoms/Icon/icons/Check';
37
+ export { default as ChevronIcon } from './components/atoms/Icon/icons/Chevron';
38
+ export { default as CloseIcon } from './components/atoms/Icon/icons/Close';
39
+ export { default as SearchIcon } from './components/atoms/Icon/icons/Search';
40
+ export { default as SettingsIcon } from './components/atoms/Icon/icons/Settings';
41
+ export { default as UserIcon } from './components/atoms/Icon/icons/User';
42
+ export { default as PlusIcon } from './components/atoms/Icon/icons/PlusIcon';
43
+ export { default as MinusIcon } from './components/atoms/Icon/icons/MinusIcon';
44
+ export { default as HomeIcon } from './components/atoms/Icon/icons/HomeIcon';
45
+ // export type { InputProps } from './components/atoms/Inputs/Input/Input';
46
+ // export type { CheckboxProps } from './components/atoms/Checkbox/Checkbox';
@@ -1,7 +1,7 @@
1
- import { type ClassValue } from "clsx";
2
- /**
3
- * Utility to merge class names.
4
- * For notre design system, `clsx` est suffisant
5
- * (on n'a pas besoin de la logique spécifique de `tailwind-merge`).
6
- */
7
- export declare function cn(...inputs: ClassValue[]): string;
1
+ import { type ClassValue } from "clsx";
2
+ /**
3
+ * Utility to merge class names.
4
+ * For notre design system, `clsx` est suffisant
5
+ * (on n'a pas besoin de la logique spécifique de `tailwind-merge`).
6
+ */
7
+ export declare function cn(...inputs: ClassValue[]): string;
package/dist/lib/utils.js CHANGED
@@ -1,13 +1,13 @@
1
- import { clsx } from "clsx";
2
- /**
3
- * Utility to merge class names.
4
- * For notre design system, `clsx` est suffisant
5
- * (on n'a pas besoin de la logique spécifique de `tailwind-merge`).
6
- */
7
- export function cn() {
8
- var inputs = [];
9
- for (var _i = 0; _i < arguments.length; _i++) {
10
- inputs[_i] = arguments[_i];
11
- }
12
- return clsx(inputs);
13
- }
1
+ import { clsx } from "clsx";
2
+ /**
3
+ * Utility to merge class names.
4
+ * For notre design system, `clsx` est suffisant
5
+ * (on n'a pas besoin de la logique spécifique de `tailwind-merge`).
6
+ */
7
+ export function cn() {
8
+ var inputs = [];
9
+ for (var _i = 0; _i < arguments.length; _i++) {
10
+ inputs[_i] = arguments[_i];
11
+ }
12
+ return clsx(inputs);
13
+ }