meticulous-ui 3.7.12 → 3.7.13

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 (310) hide show
  1. package/components/Button/Button.js +46 -67
  2. package/components/Carousel/Carousel.js +127 -72
  3. package/components/DatePicker/DatePicker.js +181 -142
  4. package/components/DatePicker/constants.js +14 -1
  5. package/components/DatePicker/utils.js +1 -5
  6. package/components/Dropdown/Dropdown.js +114 -80
  7. package/components/Glass/Glass.js +2 -8
  8. package/components/Icons/Add.js +44 -11
  9. package/components/Icons/AddCircle.js +29 -8
  10. package/components/Icons/AddCircleFilled.js +20 -5
  11. package/components/Icons/ArrowDown.js +20 -5
  12. package/components/Icons/ArrowLeft.js +21 -5
  13. package/components/Icons/ArrowRight.js +21 -5
  14. package/components/Icons/ArrowUp.js +20 -5
  15. package/components/Icons/BagFilled.js +20 -5
  16. package/components/Icons/BagOutline.js +30 -8
  17. package/components/Icons/BellFilled.js +31 -8
  18. package/components/Icons/BellOffFilled.js +40 -9
  19. package/components/Icons/BellOffOutline.js +42 -9
  20. package/components/Icons/BellOutline.js +33 -8
  21. package/components/Icons/BookmarkFilled.js +23 -10
  22. package/components/Icons/BookmarkOutline.js +20 -5
  23. package/components/Icons/BoxCoveredFilled.js +41 -10
  24. package/components/Icons/BoxCoveredOutline.js +31 -8
  25. package/components/Icons/BoxFilled.js +34 -9
  26. package/components/Icons/BoxOutline.js +31 -8
  27. package/components/Icons/CalendarDays.js +20 -5
  28. package/components/Icons/CalendarLinesPen.js +21 -5
  29. package/components/Icons/CartCheckFilled.js +36 -9
  30. package/components/Icons/CartCheckOutline.js +46 -10
  31. package/components/Icons/CartCrossFilled.js +36 -9
  32. package/components/Icons/CartCrossOutline.js +45 -10
  33. package/components/Icons/CartFilled.js +34 -9
  34. package/components/Icons/CartMinusFilled.js +36 -9
  35. package/components/Icons/CartMinusOutline.js +47 -11
  36. package/components/Icons/CartOutline.js +46 -10
  37. package/components/Icons/CartPlusFilled.js +36 -9
  38. package/components/Icons/CartPlusOutline.js +45 -10
  39. package/components/Icons/Check.js +21 -5
  40. package/components/Icons/CheckDouble.js +21 -5
  41. package/components/Icons/ChevronDown.js +21 -5
  42. package/components/Icons/ChevronLeft.js +21 -5
  43. package/components/Icons/ChevronRight.js +21 -5
  44. package/components/Icons/ChevronUp.js +21 -5
  45. package/components/Icons/ClockCircleOutline.js +24 -8
  46. package/components/Icons/ClockSquareOutline.js +31 -8
  47. package/components/Icons/Close.js +18 -5
  48. package/components/Icons/CloseCircleFilled.js +20 -5
  49. package/components/Icons/CloseCircleOutline.js +21 -5
  50. package/components/Icons/CommentBubbleFilled.js +23 -10
  51. package/components/Icons/CommentBubbleOutline.js +23 -10
  52. package/components/Icons/CommentFilled.js +23 -10
  53. package/components/Icons/CommentLineFilled.js +23 -10
  54. package/components/Icons/CommentLineOutline.js +23 -10
  55. package/components/Icons/CommentOutline.js +23 -10
  56. package/components/Icons/ContactDetailsFilled.js +15 -8
  57. package/components/Icons/ContactDetailsOutline.js +15 -8
  58. package/components/Icons/DeliveryTruckFastFilled.js +26 -13
  59. package/components/Icons/DeliveryTruckFastOutline.js +26 -13
  60. package/components/Icons/DeliveryTruckLeftFilled.js +22 -9
  61. package/components/Icons/DeliveryTruckLeftOutline.js +22 -9
  62. package/components/Icons/DeliveryTruckRightFilled.js +21 -8
  63. package/components/Icons/DeliveryTruckRightOutline.js +21 -8
  64. package/components/Icons/DetailsOutline.js +15 -8
  65. package/components/Icons/DiscordConversation.js +27 -8
  66. package/components/Icons/DiscordFilled.js +21 -8
  67. package/components/Icons/DiscordOutline.js +25 -9
  68. package/components/Icons/DoorClosedFilled.js +20 -5
  69. package/components/Icons/DoorClosedOutline.js +21 -5
  70. package/components/Icons/DoorOpenFilled.js +20 -5
  71. package/components/Icons/DoorOpenOutline.js +21 -5
  72. package/components/Icons/DotsHorizontalFilled.js +34 -9
  73. package/components/Icons/DotsHorizontalOutline.js +43 -9
  74. package/components/Icons/DotsVerticalFilled.js +34 -9
  75. package/components/Icons/DotsVerticalOutline.js +43 -9
  76. package/components/Icons/Download.js +27 -8
  77. package/components/Icons/DownloadBoxFilled.js +20 -5
  78. package/components/Icons/DownloadBoxOutline.js +36 -9
  79. package/components/Icons/EditBoxThick.js +21 -5
  80. package/components/Icons/EditBoxThin.js +33 -8
  81. package/components/Icons/EmailFilled.js +19 -6
  82. package/components/Icons/EmailOutline.js +19 -6
  83. package/components/Icons/ExitArrowInOutline.js +21 -5
  84. package/components/Icons/ExitArrowOutOutline.js +33 -8
  85. package/components/Icons/ExitFullScreen.js +19 -5
  86. package/components/Icons/ExitFullScreenThick.js +19 -5
  87. package/components/Icons/EyeClosed.js +20 -5
  88. package/components/Icons/EyeFilled.js +29 -8
  89. package/components/Icons/EyeOutline.js +33 -8
  90. package/components/Icons/FacebookFilled.js +19 -6
  91. package/components/Icons/FacebookMessengerOutline.js +29 -8
  92. package/components/Icons/FacebookOutline.js +20 -5
  93. package/components/Icons/FacebookRoundFilled.js +18 -5
  94. package/components/Icons/Filter.js +17 -10
  95. package/components/Icons/FilterList.js +21 -5
  96. package/components/Icons/FilterThickFilled.js +18 -5
  97. package/components/Icons/FilterThickOutline.js +19 -5
  98. package/components/Icons/FullScreenArrowThick.js +19 -5
  99. package/components/Icons/FullScreenArrowThin.js +19 -5
  100. package/components/Icons/FullScreenExit.js +41 -10
  101. package/components/Icons/FullScreenFilled.js +20 -5
  102. package/components/Icons/FullScreenOutline.js +20 -5
  103. package/components/Icons/HamburgerMenu.js +40 -9
  104. package/components/Icons/HamburgerSpaced.js +23 -10
  105. package/components/Icons/HeartFilled.js +18 -5
  106. package/components/Icons/HeartOutline.js +23 -5
  107. package/components/Icons/Help.js +21 -5
  108. package/components/Icons/HelpCircleFilled.js +20 -5
  109. package/components/Icons/HelpCircleOutline.js +41 -9
  110. package/components/Icons/HomeFilled.js +20 -5
  111. package/components/Icons/HomeOutline.js +20 -5
  112. package/components/Icons/Info.js +27 -8
  113. package/components/Icons/InfoCircleFilled.js +20 -5
  114. package/components/Icons/InfoCircleOutline.js +16 -9
  115. package/components/Icons/InfoSquareFilled.js +20 -5
  116. package/components/Icons/InfoSquareOutline.js +23 -9
  117. package/components/Icons/InstagramOuline.js +21 -8
  118. package/components/Icons/InstagramRoundFilled.js +44 -13
  119. package/components/Icons/KeyFilled.js +20 -5
  120. package/components/Icons/KeyInSquareFilled.js +29 -8
  121. package/components/Icons/KeyInSquareOutline.js +38 -9
  122. package/components/Icons/KeyOutline.js +31 -8
  123. package/components/Icons/KeySideSquareFilled.js +29 -8
  124. package/components/Icons/KeySideSquareOutline.js +20 -5
  125. package/components/Icons/KeySquareFilled.js +29 -8
  126. package/components/Icons/KeySquareOutline.js +20 -5
  127. package/components/Icons/Link.js +31 -8
  128. package/components/Icons/LinkedinFilled.js +19 -6
  129. package/components/Icons/LinkedinOutline.js +19 -5
  130. package/components/Icons/LinkedinRoundFilled.js +19 -6
  131. package/components/Icons/Loading.js +21 -8
  132. package/components/Icons/LocationArrowFilled.js +12 -5
  133. package/components/Icons/LocationArrowOutline.js +21 -5
  134. package/components/Icons/LocationFilled.js +23 -10
  135. package/components/Icons/LocationOutline.js +23 -10
  136. package/components/Icons/LockKeyhole.js +20 -5
  137. package/components/Icons/LockKeyholeOutline.js +31 -9
  138. package/components/Icons/LockKeyholeUnlocked.js +20 -5
  139. package/components/Icons/LockKeyholeUnlockedOutline.js +31 -9
  140. package/components/Icons/MediaPauseCircleFilled.js +20 -5
  141. package/components/Icons/MediaPauseCircleOuline.js +36 -9
  142. package/components/Icons/MediaPauseFilled.js +27 -8
  143. package/components/Icons/MediaPauseOutline.js +31 -8
  144. package/components/Icons/MediaPlayCircleFilled.js +20 -5
  145. package/components/Icons/MediaPlayCircleOutline.js +31 -8
  146. package/components/Icons/MediaPlayFilled.js +18 -5
  147. package/components/Icons/MediaPlayOutline.js +20 -5
  148. package/components/Icons/MediaStopCircleFilled.js +20 -5
  149. package/components/Icons/MediaStopCircleOutline.js +31 -8
  150. package/components/Icons/MediaStopFilled.js +18 -5
  151. package/components/Icons/MediaStopOutline.js +20 -5
  152. package/components/Icons/Minus.js +21 -5
  153. package/components/Icons/MinusCircle.js +23 -10
  154. package/components/Icons/MinusCircleFilled.js +23 -10
  155. package/components/Icons/MoneyBagOutline.js +46 -10
  156. package/components/Icons/MoneyBriefcaseFilled.js +20 -5
  157. package/components/Icons/MoneyBriefcaseOutline.js +38 -9
  158. package/components/Icons/NoEntry.js +19 -5
  159. package/components/Icons/NoEntryFilled.js +18 -5
  160. package/components/Icons/NoEntryOutline.js +21 -8
  161. package/components/Icons/PaymentCardFilled.js +16 -9
  162. package/components/Icons/PaymentCardOutline.js +16 -9
  163. package/components/Icons/PhoneCallingFilled.js +36 -9
  164. package/components/Icons/PhoneCallingOutline.js +38 -9
  165. package/components/Icons/PhoneFilled.js +18 -5
  166. package/components/Icons/PhoneOutline.js +18 -5
  167. package/components/Icons/Pin.js +21 -5
  168. package/components/Icons/PinAddFilled.js +17 -10
  169. package/components/Icons/PinAddOutline.js +17 -10
  170. package/components/Icons/PinCircleFilled.js +20 -5
  171. package/components/Icons/PinCircleOutline.js +21 -8
  172. package/components/Icons/PinFilled.js +18 -5
  173. package/components/Icons/PinOutline.js +20 -5
  174. package/components/Icons/PinSubFilled.js +17 -10
  175. package/components/Icons/PinSubOutline.js +17 -10
  176. package/components/Icons/PinterestFilled.js +17 -10
  177. package/components/Icons/PinterestOutline.js +21 -5
  178. package/components/Icons/ProfileFemaleOutline.js +19 -6
  179. package/components/Icons/ProfileGroupFilled.js +28 -8
  180. package/components/Icons/ProfileMaleFilled.js +28 -8
  181. package/components/Icons/ProfileMaleOutline.js +19 -6
  182. package/components/Icons/RedditFilled.js +17 -10
  183. package/components/Icons/RedditOutline.js +43 -10
  184. package/components/Icons/RedditRoundFilled.js +52 -15
  185. package/components/Icons/RedditRoundOutline.js +53 -16
  186. package/components/Icons/RupeeOutlined.js +18 -5
  187. package/components/Icons/RupeeSign.js +21 -5
  188. package/components/Icons/SaveFilled.js +23 -10
  189. package/components/Icons/SaveOutline.js +23 -10
  190. package/components/Icons/Search.js +23 -10
  191. package/components/Icons/SettingFilled.js +18 -5
  192. package/components/Icons/SettingOutline.js +18 -5
  193. package/components/Icons/ShareAllFilled.js +20 -5
  194. package/components/Icons/ShareAllOutline.js +39 -11
  195. package/components/Icons/ShareBoxOutline.js +18 -5
  196. package/components/Icons/ShareFilled.js +29 -8
  197. package/components/Icons/ShareOutline.js +32 -8
  198. package/components/Icons/ShareThickFilled.js +18 -5
  199. package/components/Icons/ShieldCheckFilled.js +20 -5
  200. package/components/Icons/ShieldCheckOutline.js +31 -8
  201. package/components/Icons/ShieldCrossFilled.js +20 -5
  202. package/components/Icons/ShieldCrossOutline.js +30 -8
  203. package/components/Icons/ShieldFilled.js +18 -5
  204. package/components/Icons/ShieldOutline.js +20 -5
  205. package/components/Icons/ShieldWarningFilled.js +20 -5
  206. package/components/Icons/ShieldWarningOutline.js +23 -9
  207. package/components/Icons/SnapchatFilled.js +17 -10
  208. package/components/Icons/SnapchatOutline.js +20 -5
  209. package/components/Icons/SortBottomToTop.js +26 -10
  210. package/components/Icons/SortHorizontal.js +20 -5
  211. package/components/Icons/SortTopToBottom.js +26 -10
  212. package/components/Icons/SortVertical.js +20 -5
  213. package/components/Icons/StarFilled.js +19 -6
  214. package/components/Icons/StarOutline.js +19 -6
  215. package/components/Icons/TelegramFilled.js +22 -9
  216. package/components/Icons/TelegramOutline.js +20 -5
  217. package/components/Icons/TelegramRoundFilled.js +22 -9
  218. package/components/Icons/ThumbsDownFilled.js +18 -5
  219. package/components/Icons/ThumbsDownOutline.js +18 -5
  220. package/components/Icons/ThumbsUpFilled.js +18 -5
  221. package/components/Icons/ThumbsUpOutline.js +18 -5
  222. package/components/Icons/TiktokBox.js +18 -5
  223. package/components/Icons/TiktokThickFilled.js +21 -8
  224. package/components/Icons/TiktokThinFilled.js +32 -8
  225. package/components/Icons/TrashBigFilled.js +23 -10
  226. package/components/Icons/TrashBigOutline.js +23 -10
  227. package/components/Icons/TrashFilled.js +27 -8
  228. package/components/Icons/TrashLinesFilled.js +29 -8
  229. package/components/Icons/TrashLinesOutline.js +33 -11
  230. package/components/Icons/TrashOutline.js +31 -9
  231. package/components/Icons/Upload.js +27 -8
  232. package/components/Icons/UploadBoxFilled.js +20 -5
  233. package/components/Icons/UploadBoxOutline.js +36 -9
  234. package/components/Icons/VolumeFilled.js +30 -11
  235. package/components/Icons/VolumeMuteFilled.js +30 -11
  236. package/components/Icons/VolumeMuteOutline.js +30 -11
  237. package/components/Icons/VolumeOffFilled.js +30 -11
  238. package/components/Icons/VolumeOffOutline.js +30 -11
  239. package/components/Icons/VolumeOutline.js +30 -11
  240. package/components/Icons/WalletFilled.js +23 -10
  241. package/components/Icons/WalletOutline.js +23 -10
  242. package/components/Icons/Warning.js +21 -5
  243. package/components/Icons/WarningCircleFilled.js +18 -5
  244. package/components/Icons/WarningCircleOutline.js +18 -5
  245. package/components/Icons/WarningSmall.js +21 -5
  246. package/components/Icons/WarningTriangleFilled.js +21 -8
  247. package/components/Icons/WarningTriangleOutline.js +21 -5
  248. package/components/Icons/WhatsappFilled.js +17 -10
  249. package/components/Icons/WhatsappOutline.js +20 -5
  250. package/components/Icons/Youtube.js +18 -5
  251. package/components/Icons/YoutubeFilled.js +23 -10
  252. package/components/Icons/YoutubeRoundFilled.js +22 -9
  253. package/components/Image/Image.js +33 -27
  254. package/components/Input/Checkbox/Checkbox.js +30 -20
  255. package/components/Input/FileUploader/FileUploader.js +73 -82
  256. package/components/Input/Input/Input.js +49 -47
  257. package/components/Input/Radio/Radio.js +18 -17
  258. package/components/Input/RadioGroup/RadioGroup.js +33 -16
  259. package/components/Input/Textarea/SvgIcon.js +1 -7
  260. package/components/Input/Textarea/Textarea.js +54 -54
  261. package/components/Loader/Loader.js +18 -29
  262. package/components/Loader/constants.js +3 -12
  263. package/components/MenuItem/MenuItem.js +30 -28
  264. package/components/Modal/Modal.js +58 -37
  265. package/components/OtpInput/OtpInput.js +28 -28
  266. package/components/PageLoader/PageLoader.js +13 -9
  267. package/components/Pagination/Pagination.js +87 -95
  268. package/components/Ripple/Ripple.js +12 -2
  269. package/components/RootComponent/RootComponent.js +1 -4
  270. package/components/Selectbox/Selectbox.js +143 -101
  271. package/components/Shimmer/Shimmer.js +17 -13
  272. package/components/Spinner/Spinner.js +29 -22
  273. package/components/Timer/Timer.js +154 -92
  274. package/components/Timer/components/TimerRing/TimerRing.js +56 -11
  275. package/components/Toast/Toast.js +76 -81
  276. package/components/Typography/Headings/H1.js +2 -8
  277. package/components/Typography/Headings/H2.js +2 -8
  278. package/components/Typography/Headings/H3.js +2 -8
  279. package/components/Typography/Headings/H4.js +2 -8
  280. package/components/Typography/Headings/H5.js +2 -8
  281. package/components/Typography/Headings/H6.js +2 -8
  282. package/components/Typography/Headings/index.js +1 -8
  283. package/components/Typography/P/P.js +3 -12
  284. package/components/VideoPlayer/VideoPlayer.js +19 -23
  285. package/components/VideoPlayer/components/Volumebar/Volumebar.js +2 -6
  286. package/components/VideoPlayer/useSpacebarToggle.js +11 -1
  287. package/components/VideoPlayer/useVolumeOverlay.js +1 -4
  288. package/hooks/useThrottle.js +6 -3
  289. package/hooks/useWindowSize.js +1 -4
  290. package/package.json +1 -1
  291. package/reactUtils/composeProviders.js +1 -3
  292. package/reactUtils/lazyImport.js +1 -3
  293. package/reactUtils/withErrorBoundary.js +2 -8
  294. package/utils/cancelablePromise.js +4 -5
  295. package/utils/createPubSub.js +9 -12
  296. package/utils/formatCompactNumber.js +3 -4
  297. package/utils/formatCurrency.js +1 -4
  298. package/utils/formatDate.js +3 -5
  299. package/utils/handleKeyboardNavigation.js +1 -5
  300. package/utils/isAuthenticated.js +1 -3
  301. package/utils/logError.js +1 -4
  302. package/utils/logInfo.js +1 -6
  303. package/utils/logWarn.js +1 -6
  304. package/utils/mergeDeep.js +1 -3
  305. package/utils/multiSort.js +1 -4
  306. package/utils/scrollToElement.js +1 -4
  307. package/utils/scrollToTop.js +1 -4
  308. package/utils/timeAgo.js +1 -3
  309. package/utils/trackEvent.js +1 -5
  310. package/utils/withTimeout.js +3 -1
@@ -29,36 +29,22 @@ const ie = {
29
29
  }, ne = (e) => {
30
30
  var o;
31
31
  return (o = ie[e]) != null ? o : s.m500;
32
- }, x = ({
33
- $hasError: e,
34
- $shade: o,
35
- $isFocused: r,
36
- value: a,
37
- $onlyPh: d
38
- }) => e ? typeof a == "string" && !a && !r ? s.m500 : v.m400 : r && !d ? o : s.m500, se = n.textarea`
32
+ }, x = ({ $hasError: e, $shade: o, $isFocused: r, value: a, $onlyPh: d }) => e ? typeof a == "string" && !a && !r ? s.m500 : v.m400 : r && !d ? o : s.m500, se = n.textarea`
39
33
  border-radius: 0.64rem;
40
34
  font-size: 2.24rem;
41
- border: 2px solid ${({
42
- $hasError: e
43
- }) => e ? v.m400 : L.m200};
35
+ border: 2px solid ${({ $hasError: e }) => e ? v.m400 : L.m200};
44
36
  padding: 0.96rem;
45
37
  font-weight: 400;
46
38
  transition: border-color 0.3s ease;
47
- background-color: ${({
48
- $background: e
49
- }) => e} !important;
39
+ background-color: ${({ $background: e }) => e} !important;
50
40
  min-height: 2.24rem;
51
41
  min-width: 4.8rem;
52
42
 
53
- ${({
54
- $isResizeNone: e
55
- }) => e && c`
43
+ ${({ $isResizeNone: e }) => e && c`
56
44
  resize: none;
57
45
  `}
58
46
 
59
- ${({
60
- $isDynamic: e
61
- }) => e && c`
47
+ ${({ $isDynamic: e }) => e && c`
62
48
  resize: none;
63
49
  `}
64
50
 
@@ -75,22 +61,13 @@ const ie = {
75
61
  color: ${s.m500};
76
62
  font-weight: 300;
77
63
  font-size: 2.24rem;
78
- background-color: ${({
79
- $background: e
80
- }) => e};
64
+ background-color: ${({ $background: e }) => e};
81
65
  pointer-events: none;
82
66
  }
83
67
 
84
68
  &:focus {
85
69
  border: 2px solid
86
- ${({
87
- $shade: e,
88
- $hasError: o
89
- }) => x({
90
- $shade: e,
91
- $hasError: o,
92
- $isFocused: !0
93
- })};
70
+ ${({ $shade: e, $hasError: o }) => x({ $shade: e, $hasError: o, $isFocused: !0 })};
94
71
  outline: none;
95
72
  }
96
73
  `, ae = n.p`
@@ -106,9 +83,7 @@ const ie = {
106
83
  top: -0.64rem;
107
84
  left: 0.8rem;
108
85
  font-size: 1.28rem;
109
- background-color: ${({
110
- $outerBackground: e
111
- }) => e};
86
+ background-color: ${({ $outerBackground: e }) => e};
112
87
  border-radius: 0.64rem;
113
88
  margin: 0 0.64rem;
114
89
  transition: 0.25s;
@@ -122,11 +97,7 @@ const ie = {
122
97
  max-width: -webkit-fill-available; /* Chrome, Safari, Edge */
123
98
  max-width: stretch; /* Modern Standard */
124
99
 
125
- ${({
126
- $isFocused: e,
127
- $value: o,
128
- $onlyPh: r
129
- }) => !r && (e || o) ? c`
100
+ ${({ $isFocused: e, $value: o, $onlyPh: r }) => !r && (e || o) ? c`
130
101
  top: -0.64rem;
131
102
  left: 0.8rem;
132
103
  padding: 0 0.64rem;
@@ -175,24 +146,53 @@ const ie = {
175
146
  }
176
147
  }, T = () => C(!0), _ = () => C(!1), D = (t) => {
177
148
  z && b.current && M(b.current), o(t);
178
- }, S = {
179
- color: s.m500,
180
- size: 20
181
- }, w = !!f, F = !!h, l = d, N = z, q = y, G = {
182
- rows: O
183
- }, $ = `textarea-${k}`, I = p ? `${$}-helper` : void 0;
149
+ }, S = { color: s.m500, size: 20 }, w = !!f, F = !!h, l = d, N = z, q = y, G = { rows: O }, $ = `textarea-${k}`, I = p ? `${$}-helper` : void 0;
184
150
  return /* @__PURE__ */ H(me, { children: [
185
- /* @__PURE__ */ i(se, { type: a, name: k, $hasError: l, value: r, $isFocused: m, $shade: g, $isDynamic: N, $background: q, cols: P, $hasLeftIcon: w, $hasRightIcon: F, $isResizeNone: E, ...G, id: $, "aria-invalid": l ? !0 : void 0, "aria-describedby": I, ref: b, onFocus: T, onBlur: _, onChange: D, ...W }),
186
- f && /* @__PURE__ */ i(de, { "aria-hidden": "true", style: {
187
- top: "1.2rem",
188
- transform: "none"
189
- }, children: /* @__PURE__ */ i(B, { svgIcon: f, iconStyles: S }) }),
190
- h && /* @__PURE__ */ i(pe, { "aria-hidden": "true", style: {
191
- top: "1.2rem",
192
- transform: "none"
193
- }, children: /* @__PURE__ */ i(B, { svgIcon: h, iconStyles: S }) }),
151
+ /* @__PURE__ */ i(
152
+ se,
153
+ {
154
+ type: a,
155
+ name: k,
156
+ $hasError: l,
157
+ value: r,
158
+ $isFocused: m,
159
+ $shade: g,
160
+ $isDynamic: N,
161
+ $background: q,
162
+ cols: P,
163
+ $hasLeftIcon: w,
164
+ $hasRightIcon: F,
165
+ $isResizeNone: E,
166
+ ...G,
167
+ id: $,
168
+ "aria-invalid": l ? !0 : void 0,
169
+ "aria-describedby": I,
170
+ ref: b,
171
+ onFocus: T,
172
+ onBlur: _,
173
+ onChange: D,
174
+ ...W
175
+ }
176
+ ),
177
+ f && /* @__PURE__ */ i(de, { "aria-hidden": "true", style: { top: "1.2rem", transform: "none" }, children: /* @__PURE__ */ i(B, { svgIcon: f, iconStyles: S }) }),
178
+ h && /* @__PURE__ */ i(pe, { "aria-hidden": "true", style: { top: "1.2rem", transform: "none" }, children: /* @__PURE__ */ i(B, { svgIcon: h, iconStyles: S }) }),
194
179
  /* @__PURE__ */ H(ce, { children: [
195
- (e || u && !r) && /* @__PURE__ */ i(le, { as: "label", htmlFor: $, $hasError: l, $isFocused: m, $shade: g, $value: r, $outerBackground: m || r ? A : y, $hasLeftIcon: w, $hasRightIcon: F, $onlyPh: u && !e, children: e || u }),
180
+ (e || u && !r) && /* @__PURE__ */ i(
181
+ le,
182
+ {
183
+ as: "label",
184
+ htmlFor: $,
185
+ $hasError: l,
186
+ $isFocused: m,
187
+ $shade: g,
188
+ $value: r,
189
+ $outerBackground: m || r ? A : y,
190
+ $hasLeftIcon: w,
191
+ $hasRightIcon: F,
192
+ $onlyPh: u && !e,
193
+ children: e || u
194
+ }
195
+ ),
196
196
  p && /* @__PURE__ */ i(ae, { id: I, $hasError: l, $isFocused: m, $shade: g, $hasLeftIcon: w, children: p })
197
197
  ] })
198
198
  ] });
@@ -52,9 +52,7 @@ const Y = {
52
52
  `, N = s.div`
53
53
  display: inline-flex;
54
54
  align-items: center;
55
- gap: ${({
56
- $gap: o
57
- }) => o};
55
+ gap: ${({ $gap: o }) => o};
58
56
  `, U = s.span`
59
57
  position: absolute;
60
58
  width: 1px;
@@ -67,22 +65,13 @@ const Y = {
67
65
  border: 0;
68
66
  `, C = s.span`
69
67
  display: inline-block;
70
- width: ${({
71
- $size: o
72
- }) => o};
73
- height: ${({
74
- $size: o
75
- }) => o};
68
+ width: ${({ $size: o }) => o};
69
+ height: ${({ $size: o }) => o};
76
70
  border-radius: 50%;
77
- background-color: ${({
78
- $color: o
79
- }) => o};
71
+ background-color: ${({ $color: o }) => o};
80
72
  flex-shrink: 0;
81
73
 
82
- ${({
83
- $delay: o,
84
- $isBounce: i
85
- }) => A`
74
+ ${({ $delay: o, $isBounce: i }) => A`
86
75
  animation: ${i ? B : z} ${i ? 1.2 : 1.3}s ease-in-out infinite;
87
76
  animation-delay: ${o}s;
88
77
 
@@ -90,24 +79,24 @@ const Y = {
90
79
  animation: none;
91
80
  }
92
81
  `}
93
- `, R = ({
94
- size: o = c,
95
- theme: i = w,
96
- isBounce: u,
97
- isMini: g,
98
- isMiniDark: h,
99
- ...$
100
- }) => {
101
- const {
102
- dot: y,
103
- gap: b
104
- } = p[o] || p[c], a = j(i), m = M, x = (h ? r.slice(2, 6) : g ? r.slice(0, 3) : r).map((n) => {
82
+ `, R = ({ size: o = c, theme: i = w, isBounce: u, isMini: g, isMiniDark: h, ...$ }) => {
83
+ const { dot: y, gap: b } = p[o] || p[c], a = j(i), m = M, x = (h ? r.slice(2, 6) : g ? r.slice(0, 3) : r).map((n) => {
105
84
  var e;
106
85
  return (e = a[n]) != null ? e : a.m500;
107
86
  }), E = m.map(() => y);
108
87
  return /* @__PURE__ */ k(N, { role: "status", $gap: b, ...$, children: [
109
88
  /* @__PURE__ */ l(U, { children: "Loading" }),
110
- E.map((n, e) => /* @__PURE__ */ l(C, { "aria-hidden": "true", $size: n, $color: x[e], $delay: m[e], $isBounce: u }, `dot-${e}`))
89
+ E.map((n, e) => /* @__PURE__ */ l(
90
+ C,
91
+ {
92
+ "aria-hidden": "true",
93
+ $size: n,
94
+ $color: x[e],
95
+ $delay: m[e],
96
+ $isBounce: u
97
+ },
98
+ `dot-${e}`
99
+ ))
111
100
  ] });
112
101
  };
113
102
  R.propTypes = {
@@ -1,16 +1,7 @@
1
1
  const m = "small", o = "medium", t = "large", e = {
2
- [m]: {
3
- dot: "0.8rem",
4
- gap: "0.48rem"
5
- },
6
- [o]: {
7
- dot: "1.2rem",
8
- gap: "0.8rem"
9
- },
10
- [t]: {
11
- dot: "1.6rem",
12
- gap: "1.12rem"
13
- }
2
+ [m]: { dot: "0.8rem", gap: "0.48rem" },
3
+ [o]: { dot: "1.2rem", gap: "0.8rem" },
4
+ [t]: { dot: "1.6rem", gap: "1.12rem" }
14
5
  }, r = "blue", s = ["m200", "m300", "m400", "m600", "m800"], E = [0, 0.17, 0.34, 0.51, 0.68];
15
6
  export {
16
7
  E as ANIMATION_DELAYS,
@@ -5,9 +5,7 @@ import v from "../../colors/white.js";
5
5
  import c from "styled-components";
6
6
  import C from "../Typography/P/P.js";
7
7
  const k = c.div`
8
- width: ${({
9
- $width: r
10
- }) => r};
8
+ width: ${({ $width: r }) => r};
11
9
  background-color: ${({
12
10
  $isSelected: r,
13
11
  $defaultColor: o,
@@ -16,34 +14,20 @@ const k = c.div`
16
14
  $selectedColor: t
17
15
  }) => r ? t : e ? i : o};
18
16
 
19
- cursor: ${({
20
- $isSelected: r,
21
- $isDisabled: o
22
- }) => r ? "auto" : o ? "not-allowed" : "pointer"};
17
+ cursor: ${({ $isSelected: r, $isDisabled: o }) => r ? "auto" : o ? "not-allowed" : "pointer"};
23
18
  padding: 0.96rem 0 1.28rem 1.6rem;
24
19
  margin-top: 0.16rem;
25
- pointer-events: ${({
26
- $isDisabled: r
27
- }) => r ? "none" : "auto"};
20
+ pointer-events: ${({ $isDisabled: r }) => r ? "none" : "auto"};
28
21
 
29
22
  &:active {
30
- background-color: ${({
31
- $isSelected: r,
32
- $activeColor: o,
33
- $selectedColor: e
34
- }) => r ? e : o};
23
+ background-color: ${({ $isSelected: r, $activeColor: o, $selectedColor: e }) => r ? e : o};
35
24
  }
36
25
  `, x = c(C)`
37
26
  overflow: hidden;
38
27
  white-space: nowrap;
39
28
  text-overflow: ellipsis;
40
- max-width: calc(${({
41
- $width: r
42
- }) => r} - 3.2rem);
43
- `, y = ({
44
- isSelected: r,
45
- isDisabled: o
46
- }) => r ? n.m700 : o ? n.m300 : n.m500, q = ({
29
+ max-width: calc(${({ $width: r }) => r} - 3.2rem);
30
+ `, y = ({ isSelected: r, isDisabled: o }) => r ? n.m700 : o ? n.m300 : n.m500, q = ({
47
31
  id: r,
48
32
  value: o,
49
33
  label: e,
@@ -59,12 +43,30 @@ const k = c.div`
59
43
  isDisabled: m,
60
44
  onMouseEnter: w,
61
45
  ...g
62
- }) => /* @__PURE__ */ a(k, { $isSelected: t, $width: i, $defaultColor: d, $selectedColor: p, $hoverColor: $, $activeColor: f, $isDisabled: m, $isHighlighted: h, id: r, role: "option", ...g, "aria-selected": t, "aria-disabled": m || void 0, onClick: () => {
63
- m || s(o);
64
- }, onMouseEnter: w, title: e, children: /* @__PURE__ */ a(x, { size: u, color: y({
65
- isSelected: t,
66
- isDisabled: m
67
- }), $width: i, children: e }) });
46
+ }) => /* @__PURE__ */ a(
47
+ k,
48
+ {
49
+ $isSelected: t,
50
+ $width: i,
51
+ $defaultColor: d,
52
+ $selectedColor: p,
53
+ $hoverColor: $,
54
+ $activeColor: f,
55
+ $isDisabled: m,
56
+ $isHighlighted: h,
57
+ id: r,
58
+ role: "option",
59
+ ...g,
60
+ "aria-selected": t,
61
+ "aria-disabled": m || void 0,
62
+ onClick: () => {
63
+ m || s(o);
64
+ },
65
+ onMouseEnter: w,
66
+ title: e,
67
+ children: /* @__PURE__ */ a(x, { size: u, color: y({ isSelected: t, isDisabled: m }), $width: i, children: e })
68
+ }
69
+ );
68
70
  export {
69
71
  q as default
70
72
  };
@@ -31,9 +31,7 @@ const q = d`
31
31
  animation: ${q} 0.2s ease;
32
32
  padding: 1rem;
33
33
 
34
- ${({
35
- $fullOnMobile: e
36
- }) => e && f`
34
+ ${({ $fullOnMobile: e }) => e && f`
37
35
  @media (max-width: 640px) {
38
36
  align-items: flex-end;
39
37
  padding: 0;
@@ -46,18 +44,11 @@ const q = d`
46
44
  display: flex;
47
45
  flex-direction: column;
48
46
  max-height: 90vh;
49
- width: ${({
50
- $width: e
51
- }) => e || "32rem"};
47
+ width: ${({ $width: e }) => e || "32rem"};
52
48
  max-width: 100%;
53
- animation: ${({
54
- $isClosing: e
55
- }) => e ? H : P} 0.3s ease forwards;
49
+ animation: ${({ $isClosing: e }) => e ? H : P} 0.3s ease forwards;
56
50
 
57
- ${({
58
- $fullOnMobile: e,
59
- $isClosing: o
60
- }) => e && f`
51
+ ${({ $fullOnMobile: e, $isClosing: o }) => e && f`
61
52
  @media (max-width: 640px) {
62
53
  width: 100%;
63
54
  max-width: 100%;
@@ -121,21 +112,31 @@ const q = d`
121
112
  border-top: 1px solid ${i.m200};
122
113
  flex-shrink: 0;
123
114
 
124
- ${({
125
- $align: e
126
- }) => e === "left" && f`
115
+ ${({ $align: e }) => e === "left" && f`
127
116
  justify-content: flex-start;
128
117
  `}
129
118
 
130
- ${({
131
- $align: e
132
- }) => e === "center" && f`
119
+ ${({ $align: e }) => e === "center" && f`
133
120
  justify-content: center;
134
121
  `}
135
- `, R = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])', _ = () => /* @__PURE__ */ p("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: [
136
- /* @__PURE__ */ n("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
137
- /* @__PURE__ */ n("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
138
- ] }), ee = ({
122
+ `, R = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])', _ = () => /* @__PURE__ */ p(
123
+ "svg",
124
+ {
125
+ width: "18",
126
+ height: "18",
127
+ viewBox: "0 0 24 24",
128
+ fill: "none",
129
+ stroke: "currentColor",
130
+ strokeWidth: "2.5",
131
+ strokeLinecap: "round",
132
+ strokeLinejoin: "round",
133
+ "aria-hidden": "true",
134
+ children: [
135
+ /* @__PURE__ */ n("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
136
+ /* @__PURE__ */ n("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
137
+ ]
138
+ }
139
+ ), ee = ({
139
140
  isOpen: e,
140
141
  onClose: o,
141
142
  title: a,
@@ -163,9 +164,12 @@ const q = d`
163
164
  if (!c.length) return;
164
165
  const E = c[0], M = c[c.length - 1];
165
166
  t.shiftKey ? document.activeElement === E && (t.preventDefault(), M.focus()) : document.activeElement === M && (t.preventDefault(), E.focus());
166
- }, []), y = B((t) => {
167
- t.key === "Escape" && (o == null || o()), j(t);
168
- }, [o, j]);
167
+ }, []), y = B(
168
+ (t) => {
169
+ t.key === "Escape" && (o == null || o()), j(t);
170
+ },
171
+ [o, j]
172
+ );
169
173
  return g(() => {
170
174
  if (!e) return;
171
175
  document.addEventListener("keydown", y);
@@ -173,16 +177,33 @@ const q = d`
173
177
  return document.body.style.overflow = "hidden", () => {
174
178
  document.removeEventListener("keydown", y), document.body.style.overflow = t;
175
179
  };
176
- }, [e, y]), w ? F(/* @__PURE__ */ n(W, { onClick: (t) => {
177
- z && t.target === t.currentTarget && (o == null || o());
178
- }, $fullOnMobile: k, children: /* @__PURE__ */ p(G, { ref: s, role: "dialog", "aria-modal": "true", "aria-labelledby": a ? h : void 0, tabIndex: -1, $width: S, $fullOnMobile: k, $isClosing: C, ...A, children: [
179
- (a || v) && /* @__PURE__ */ p(J, { children: [
180
- a && (D(a) ? /* @__PURE__ */ n("div", { id: h, children: a }) : /* @__PURE__ */ n(N, { id: h, children: a })),
181
- v && /* @__PURE__ */ n(Q, { onClick: o, "aria-label": "Close modal", children: /* @__PURE__ */ n(_, {}) })
182
- ] }),
183
- /* @__PURE__ */ n(X, { children: L }),
184
- x && /* @__PURE__ */ n(Z, { $align: O, children: x })
185
- ] }) }), document.body) : null;
180
+ }, [e, y]), w ? F(
181
+ /* @__PURE__ */ n(W, { onClick: (t) => {
182
+ z && t.target === t.currentTarget && (o == null || o());
183
+ }, $fullOnMobile: k, children: /* @__PURE__ */ p(
184
+ G,
185
+ {
186
+ ref: s,
187
+ role: "dialog",
188
+ "aria-modal": "true",
189
+ "aria-labelledby": a ? h : void 0,
190
+ tabIndex: -1,
191
+ $width: S,
192
+ $fullOnMobile: k,
193
+ $isClosing: C,
194
+ ...A,
195
+ children: [
196
+ (a || v) && /* @__PURE__ */ p(J, { children: [
197
+ a && (D(a) ? /* @__PURE__ */ n("div", { id: h, children: a }) : /* @__PURE__ */ n(N, { id: h, children: a })),
198
+ v && /* @__PURE__ */ n(Q, { onClick: o, "aria-label": "Close modal", children: /* @__PURE__ */ n(_, {}) })
199
+ ] }),
200
+ /* @__PURE__ */ n(X, { children: L }),
201
+ x && /* @__PURE__ */ n(Z, { $align: O, children: x })
202
+ ]
203
+ }
204
+ ) }),
205
+ document.body
206
+ ) : null;
186
207
  };
187
208
  ee.propTypes = {
188
209
  /** Controls whether the modal is visible */
@@ -190,7 +211,7 @@ ee.propTypes = {
190
211
  /** Called when the modal requests to close (Escape key, overlay click, or close button) */
191
212
  onClose: r.func,
192
213
  /** Modal header title — string or React element */
193
- title: /* @__PURE__ */ r.oneOfType([r.string, r.node]),
214
+ title: r.oneOfType([r.string, r.node]),
194
215
  /** Modal body content */
195
216
  children: r.node,
196
217
  /** Content rendered in the modal footer (e.g. action buttons) */
@@ -21,27 +21,33 @@ const E = O.div`
21
21
  border-radius: 0.32rem;
22
22
  `, j = (e, c) => (a) => {
23
23
  e(a.target.value, c);
24
- }, v = (e, c) => (a) => e(a, c), F = ({
25
- inputsRef: e,
26
- handleChange: c,
27
- handleKeyDown: a,
28
- handleFocus: n,
29
- digit: l,
30
- index: s,
31
- length: i
32
- }) => /* @__PURE__ */ w(T, { ref: (m) => e.current[s] = m, maxLength: 1, inputMode: "numeric", autoComplete: "one-time-code", "aria-label": `Digit ${s + 1} of ${i}`, value: l, onChange: j(c, s), onKeyDown: v(a, s), onFocus: () => n(s) }, `key-${s}`), K = ({
33
- inputsRef: e,
34
- handleChange: c,
35
- handleKeyDown: a,
36
- handleFocus: n,
37
- length: l
38
- }) => (s, i) => /* @__PURE__ */ w(F, { inputsRef: e, handleChange: c, handleKeyDown: a, handleFocus: n, digit: s, index: i, length: l }, `otp-num-${i}`), B = ({
39
- length: e = 6,
40
- value: c = "",
41
- onChange: a,
42
- onComplete: n,
43
- ...l
44
- }) => {
24
+ }, v = (e, c) => (a) => e(a, c), F = ({ inputsRef: e, handleChange: c, handleKeyDown: a, handleFocus: n, digit: l, index: s, length: i }) => /* @__PURE__ */ w(
25
+ T,
26
+ {
27
+ ref: (m) => e.current[s] = m,
28
+ maxLength: 1,
29
+ inputMode: "numeric",
30
+ autoComplete: "one-time-code",
31
+ "aria-label": `Digit ${s + 1} of ${i}`,
32
+ value: l,
33
+ onChange: j(c, s),
34
+ onKeyDown: v(a, s),
35
+ onFocus: () => n(s)
36
+ },
37
+ `key-${s}`
38
+ ), K = ({ inputsRef: e, handleChange: c, handleKeyDown: a, handleFocus: n, length: l }) => (s, i) => /* @__PURE__ */ w(
39
+ F,
40
+ {
41
+ inputsRef: e,
42
+ handleChange: c,
43
+ handleKeyDown: a,
44
+ handleFocus: n,
45
+ digit: s,
46
+ index: i,
47
+ length: l
48
+ },
49
+ `otp-num-${i}`
50
+ ), B = ({ length: e = 6, value: c = "", onChange: a, onComplete: n, ...l }) => {
45
51
  const [s, i] = P(Array(e).fill("")), d = h([]), m = h(s), g = h(!1), f = (r) => {
46
52
  var t;
47
53
  g.current = !0, (t = d.current[r]) == null || t.focus();
@@ -84,13 +90,7 @@ const E = O.div`
84
90
  t.slice(0, e).split("").forEach((p, I) => o[I] = p), D(o);
85
91
  const u = Math.min(t.length - 1, e - 1);
86
92
  f(u);
87
- }, ...l, children: s.map(K({
88
- inputsRef: d,
89
- handleChange: R,
90
- handleKeyDown: b,
91
- handleFocus: $,
92
- length: e
93
- })) });
93
+ }, ...l, children: s.map(K({ inputsRef: d, handleChange: R, handleKeyDown: b, handleFocus: $, length: e })) });
94
94
  };
95
95
  B.propTypes = {
96
96
  /** Number of OTP input boxes. Defaults to 6 */
@@ -32,19 +32,23 @@ const x = {
32
32
  `, h = v.div`
33
33
  width: 90%;
34
34
  height: 3px;
35
- background-color: ${({
36
- $color: r
37
- }) => r};
35
+ background-color: ${({ $color: r }) => r};
38
36
  transform-origin: left;
39
37
  animation: ${L} 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
40
- `, M = ({
41
- theme: r = "blue",
42
- color: o,
43
- ...a
44
- }) => {
38
+ `, M = ({ theme: r = "blue", color: o, ...a }) => {
45
39
  var e;
46
40
  const m = y(r), i = o || ((e = m == null ? void 0 : m.m500) != null ? e : t.m500);
47
- return /* @__PURE__ */ l(h, { ...a, $color: i, role: "progressbar", "aria-label": "Loading", "aria-valuemin": 0, "aria-valuemax": 100 });
41
+ return /* @__PURE__ */ l(
42
+ h,
43
+ {
44
+ ...a,
45
+ $color: i,
46
+ role: "progressbar",
47
+ "aria-label": "Loading",
48
+ "aria-valuemin": 0,
49
+ "aria-valuemax": 100
50
+ }
51
+ );
48
52
  };
49
53
  export {
50
54
  M as default