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
@@ -10,9 +10,7 @@ import j from "../../colors/grey.js";
10
10
  import M from "../../colors/white.js";
11
11
  import { black as q } from "../../colors/black.js";
12
12
  import { ICON_SIZE_MAPPING as H, MEDIUM as V, FONT_SIZE_MAPPING as J, SIZE_REM_MAPPING as G, SELECTED_BG as I, NOT_SELECTED_BG as T, ACTIVE_NOT_SELECTED_BG as K } from "./constants.js";
13
- const v = (e) => ({
14
- $shades: o
15
- }) => {
13
+ const v = (e) => ({ $shades: o }) => {
16
14
  if (["#FFFFFF"].includes(o))
17
15
  return q.m900;
18
16
  if (e === I)
@@ -29,9 +27,7 @@ const v = (e) => ({
29
27
  min-width: 100%;
30
28
  width: 100%;
31
29
 
32
- ${({
33
- $isDisabled: e
34
- }) => e && R`
30
+ ${({ $isDisabled: e }) => e && R`
35
31
  pointer-events: none;
36
32
  opacity: 0.4;
37
33
  `};
@@ -41,24 +37,16 @@ const v = (e) => ({
41
37
  font-family: inherit;
42
38
  outline-offset: 2px;
43
39
 
44
- height: ${({
45
- $individualRemSize: e
46
- }) => `${e}rem`};
47
- width: ${({
48
- $individualRemSize: e
49
- }) => `${e}rem`};
40
+ height: ${({ $individualRemSize: e }) => `${e}rem`};
41
+ width: ${({ $individualRemSize: e }) => `${e}rem`};
50
42
  border-radius: 50%;
51
43
  display: flex;
52
44
  align-items: center;
53
45
  flex-direction: column;
54
46
  justify-content: center;
55
47
  text-align: center;
56
- font-size: ${({
57
- $fontRemSize: e
58
- }) => e}rem;
59
- ${({
60
- $isSelected: e
61
- }) => e ? R`
48
+ font-size: ${({ $fontRemSize: e }) => e}rem;
49
+ ${({ $isSelected: e }) => e ? R`
62
50
  cursor: auto;
63
51
  color: ${M};
64
52
  background-color: ${v(I)};
@@ -99,42 +87,41 @@ const v = (e) => ({
99
87
  outline-offset: 2px;
100
88
 
101
89
  &:focus-visible {
102
- outline: 1px solid ${({
103
- $shades: e
104
- }) => e == null ? void 0 : e.m600};
90
+ outline: 1px solid ${({ $shades: e }) => e == null ? void 0 : e.m600};
105
91
  }
106
92
  `, X = f(O)`
107
93
  cursor: pointer;
108
94
  `, Y = f(z)`
109
95
  cursor: pointer;
110
96
  `, D = f.div`
111
- min-width: ${({
112
- size: e
113
- }) => e};
97
+ min-width: ${({ size: e }) => e};
114
98
  display: flex;
115
99
  align-items: center;
116
100
  justify-content: space-between;
117
- `, h = ({
118
- size: e,
119
- selected: o,
120
- shades: n,
121
- changePage: x
122
- }) => (r) => {
101
+ `, h = ({ size: e, selected: o, shades: n, changePage: x }) => (r) => {
123
102
  const p = G[e], y = J[e], a = n, l = o === r, c = () => {
124
103
  x(r);
125
104
  }, u = (d) => {
126
105
  (d.key === "Enter" || d.key === " ") && (d.preventDefault(), c());
127
106
  };
128
- return /* @__PURE__ */ i(Q, { "data-testid": l ? "current-page" : `test-${r}`, $isSelected: l, onClick: c, onKeyDown: u, tabIndex: l ? 0 : -1, "aria-label": `Page ${r}`, "aria-current": l ? "page" : void 0, $shades: a, $individualRemSize: p, $fontRemSize: y, children: r }, `page_${r}`);
129
- }, S = () => /* @__PURE__ */ i(W, { "aria-hidden": "true", children: "…" }), _ = ({
130
- iconSize: e,
131
- shades: o,
132
- setPrevPage: n
133
- }) => /* @__PURE__ */ i(P, { onClick: n, "aria-label": "Previous page", $shades: o, children: /* @__PURE__ */ i(b, { rippleColor: o.m50, children: /* @__PURE__ */ i(X, { size: e, "aria-hidden": "true" }) }) }), k = ({
134
- iconSize: e,
135
- shades: o,
136
- setNextPage: n
137
- }) => /* @__PURE__ */ i(P, { onClick: n, "aria-label": "Next page", $shades: o, children: /* @__PURE__ */ i(b, { rippleColor: o.m50, children: /* @__PURE__ */ i(Y, { size: e, "aria-hidden": "true" }) }) }), fe = ({
107
+ return /* @__PURE__ */ i(
108
+ Q,
109
+ {
110
+ "data-testid": l ? "current-page" : `test-${r}`,
111
+ $isSelected: l,
112
+ onClick: c,
113
+ onKeyDown: u,
114
+ tabIndex: l ? 0 : -1,
115
+ "aria-label": `Page ${r}`,
116
+ "aria-current": l ? "page" : void 0,
117
+ $shades: a,
118
+ $individualRemSize: p,
119
+ $fontRemSize: y,
120
+ children: r
121
+ },
122
+ `page_${r}`
123
+ );
124
+ }, S = () => /* @__PURE__ */ i(W, { "aria-hidden": "true", children: "…" }), _ = ({ iconSize: e, shades: o, setPrevPage: n }) => /* @__PURE__ */ i(P, { onClick: n, "aria-label": "Previous page", $shades: o, children: /* @__PURE__ */ i(b, { rippleColor: o.m50, children: /* @__PURE__ */ i(X, { size: e, "aria-hidden": "true" }) }) }), k = ({ iconSize: e, shades: o, setNextPage: n }) => /* @__PURE__ */ i(P, { onClick: n, "aria-label": "Next page", $shades: o, children: /* @__PURE__ */ i(b, { rippleColor: o.m50, children: /* @__PURE__ */ i(Y, { size: e, "aria-hidden": "true" }) }) }), fe = ({
138
125
  pageNumber: e,
139
126
  setPageNumber: o,
140
127
  totalPages: n,
@@ -158,61 +145,66 @@ const v = (e) => ({
158
145
  }, E = (s) => {
159
146
  ["ArrowLeft", "ArrowUp"].includes(s.code) && (l.current = !0, u()), ["ArrowRight", "ArrowDown"].includes(s.code) && (l.current = !0, d());
160
147
  }, t = (F = Z[x]) != null ? F : U, C = G[r], m = H[r];
161
- return n <= 7 ? /* @__PURE__ */ $(A, { ref: a, onKeyDown: E, "aria-label": "Pagination", $isDisabled: p, ...y, children: [
162
- /* @__PURE__ */ i(_, { iconSize: m, shades: t, setPrevPage: u }),
163
- /* @__PURE__ */ i(D, { size: `${n * C}rem`, children: Array.from({
164
- length: n
165
- }, (s, w) => w + 1).map(h({
166
- size: r,
167
- selected: e,
168
- shades: t,
169
- changePage: c
170
- })) }),
171
- /* @__PURE__ */ i(k, { iconSize: m, shades: t, setNextPage: d })
172
- ] }) : n < 10 || e < 4 || e > n - 3 && e <= n ? /* @__PURE__ */ $(A, { ref: a, onKeyDown: E, "aria-label": "Pagination", $isDisabled: p, ...y, children: [
173
- /* @__PURE__ */ i(_, { iconSize: m, shades: t, setPrevPage: u }),
174
- /* @__PURE__ */ $(D, { size: `${9 * C}rem`, children: [
175
- [1, 2, 3, 4].map(h({
176
- size: r,
177
- selected: e,
178
- shades: t,
179
- changePage: c
180
- })),
181
- S(),
182
- [n - 3, n - 2, n - 1, n].map(h({
183
- size: r,
184
- selected: e,
185
- shades: t,
186
- changePage: c
187
- }))
188
- ] }),
189
- /* @__PURE__ */ i(k, { iconSize: m, shades: t, setNextPage: d })
190
- ] }) : /* @__PURE__ */ $(A, { ref: a, onKeyDown: E, "aria-label": "Pagination", $isDisabled: p, children: [
191
- /* @__PURE__ */ i(_, { iconSize: m, shades: t, setPrevPage: u }),
192
- /* @__PURE__ */ $(D, { size: `${9 * C}rem`, children: [
193
- [1, 2].map(h({
194
- size: r,
195
- selected: e,
196
- shades: t,
197
- changePage: c
198
- })),
199
- e > 4 && S(),
200
- [e - 1, e, e + 1].map(h({
201
- size: r,
202
- selected: e,
203
- shades: t,
204
- changePage: c
205
- })),
206
- e < n - 3 && S(),
207
- [n - 1, n].map(h({
208
- size: r,
209
- selected: e,
210
- shades: t,
211
- changePage: c
212
- }))
213
- ] }),
214
- /* @__PURE__ */ i(k, { iconSize: m, shades: t, setNextPage: d })
215
- ] });
148
+ return n <= 7 ? /* @__PURE__ */ $(
149
+ A,
150
+ {
151
+ ref: a,
152
+ onKeyDown: E,
153
+ "aria-label": "Pagination",
154
+ $isDisabled: p,
155
+ ...y,
156
+ children: [
157
+ /* @__PURE__ */ i(_, { iconSize: m, shades: t, setPrevPage: u }),
158
+ /* @__PURE__ */ i(D, { size: `${n * C}rem`, children: Array.from({ length: n }, (s, w) => w + 1).map(
159
+ h({ size: r, selected: e, shades: t, changePage: c })
160
+ ) }),
161
+ /* @__PURE__ */ i(k, { iconSize: m, shades: t, setNextPage: d })
162
+ ]
163
+ }
164
+ ) : n < 10 || e < 4 || e > n - 3 && e <= n ? /* @__PURE__ */ $(
165
+ A,
166
+ {
167
+ ref: a,
168
+ onKeyDown: E,
169
+ "aria-label": "Pagination",
170
+ $isDisabled: p,
171
+ ...y,
172
+ children: [
173
+ /* @__PURE__ */ i(_, { iconSize: m, shades: t, setPrevPage: u }),
174
+ /* @__PURE__ */ $(D, { size: `${9 * C}rem`, children: [
175
+ [1, 2, 3, 4].map(h({ size: r, selected: e, shades: t, changePage: c })),
176
+ S(),
177
+ [n - 3, n - 2, n - 1, n].map(
178
+ h({ size: r, selected: e, shades: t, changePage: c })
179
+ )
180
+ ] }),
181
+ /* @__PURE__ */ i(k, { iconSize: m, shades: t, setNextPage: d })
182
+ ]
183
+ }
184
+ ) : /* @__PURE__ */ $(
185
+ A,
186
+ {
187
+ ref: a,
188
+ onKeyDown: E,
189
+ "aria-label": "Pagination",
190
+ $isDisabled: p,
191
+ children: [
192
+ /* @__PURE__ */ i(_, { iconSize: m, shades: t, setPrevPage: u }),
193
+ /* @__PURE__ */ $(D, { size: `${9 * C}rem`, children: [
194
+ [1, 2].map(h({ size: r, selected: e, shades: t, changePage: c })),
195
+ e > 4 && S(),
196
+ [e - 1, e, e + 1].map(
197
+ h({ size: r, selected: e, shades: t, changePage: c })
198
+ ),
199
+ e < n - 3 && S(),
200
+ [n - 1, n].map(
201
+ h({ size: r, selected: e, shades: t, changePage: c })
202
+ )
203
+ ] }),
204
+ /* @__PURE__ */ i(k, { iconSize: m, shades: t, setNextPage: d })
205
+ ]
206
+ }
207
+ );
216
208
  };
217
209
  export {
218
210
  fe as default
@@ -2,7 +2,7 @@ import { jsx as f } from "react/jsx-runtime";
2
2
  import { useRef as y } from "react";
3
3
  const h = ".ripple-container{position:relative;overflow:hidden;display:inline-block;cursor:pointer}.ripple-effect{position:absolute;border-radius:50%;transform:scale(0);animation:ripple-animation 600ms linear;pointer-events:none}@keyframes ripple-animation{to{transform:scale(4);opacity:0}}";
4
4
  if (typeof document != "undefined" && !document.getElementById("meticulous-ripple-styles")) {
5
- const i = /* @__PURE__ */ document.createElement("style");
5
+ const i = document.createElement("style");
6
6
  i.id = "meticulous-ripple-styles", i.textContent = h, document.head.appendChild(i);
7
7
  }
8
8
  const R = ({
@@ -25,7 +25,17 @@ const R = ({
25
25
  const n = o.current.getBoundingClientRect();
26
26
  s(n.width / 2, n.height / 2);
27
27
  };
28
- return /* @__PURE__ */ f("div", { ref: o, className: `ripple-container ${a}`, onClick: u, onKeyDown: m, ...d, children: i });
28
+ return /* @__PURE__ */ f(
29
+ "div",
30
+ {
31
+ ref: o,
32
+ className: `ripple-container ${a}`,
33
+ onClick: u,
34
+ onKeyDown: m,
35
+ ...d,
36
+ children: i
37
+ }
38
+ );
29
39
  };
30
40
  export {
31
41
  R as default
@@ -4,10 +4,7 @@ import p from "styled-components";
4
4
  const s = p.div`
5
5
  font-size: 62.5%;
6
6
  -webkit-text-size-adjust: 100%;
7
- `, i = ({
8
- children: o,
9
- ...t
10
- }) => /* @__PURE__ */ e(s, { ...t, children: o });
7
+ `, i = ({ children: o, ...t }) => /* @__PURE__ */ e(s, { ...t, children: o });
11
8
  i.propTypes = {
12
9
  /** Content to render inside the root wrapper */
13
10
  children: r.node
@@ -18,37 +18,25 @@ const ye = d.m500, ke = J`
18
18
  from { transform: rotate(180deg); }
19
19
  to { transform: rotate(0deg); }
20
20
  `, Ie = s.div`
21
- max-width: ${({
22
- $width: t
23
- }) => t};
21
+ max-width: ${({ $width: t }) => t};
24
22
  position: relative;
25
23
  outline: none;
26
24
 
27
- ${({
28
- $isDisabled: t
29
- }) => t && O`
25
+ ${({ $isDisabled: t }) => t && O`
30
26
  pointer-events: none;
31
27
  opacity: 0.7;
32
28
  `}
33
29
 
34
- ${({
35
- $isLoading: t
36
- }) => t && O`
30
+ ${({ $isLoading: t }) => t && O`
37
31
  pointer-events: none;
38
32
  opacity: 0.7;
39
33
  `}
40
34
  `, Se = s.div`
41
35
  height: 3.2rem;
42
- width: ${({
43
- $width: t
44
- }) => t};
36
+ width: ${({ $width: t }) => t};
45
37
  border-radius: 0.96rem;
46
38
  outline: none;
47
- border: ${({
48
- $isOpen: t,
49
- $isFocused: m,
50
- $border: a
51
- }) => t || m ? `2px solid ${a}` : `1px solid ${ye}`};
39
+ border: ${({ $isOpen: t, $isFocused: m, $border: a }) => t || m ? `2px solid ${a}` : `1px solid ${ye}`};
52
40
  padding: 0.64rem 0.96rem 0.64rem;
53
41
  display: flex;
54
42
  align-items: center;
@@ -58,22 +46,14 @@ const ye = d.m500, ke = J`
58
46
  overflow: hidden;
59
47
  white-space: nowrap;
60
48
  text-overflow: ellipsis;
61
- max-width: calc(${({
62
- $width: t
63
- }) => t} - 3.2rem);
49
+ max-width: calc(${({ $width: t }) => t} - 3.2rem);
64
50
  pointer-events: none;
65
51
  `, Ee = s(we)`
66
- animation: ${({
67
- $isOpen: t
68
- }) => t ? ke : Ce} 0.15s linear;
69
- transform: rotate(${({
70
- $isOpen: t
71
- }) => t ? 180 : 0}deg);
52
+ animation: ${({ $isOpen: t }) => t ? ke : Ce} 0.15s linear;
53
+ transform: rotate(${({ $isOpen: t }) => t ? 180 : 0}deg);
72
54
  `, ze = s.div`
73
55
  border: 1px solid ${d.m700};
74
- width: calc(${({
75
- $width: t
76
- }) => t} + 1.6rem);
56
+ width: calc(${({ $width: t }) => t} + 1.6rem);
77
57
  display: flex;
78
58
  flex-direction: column;
79
59
  position: absolute;
@@ -85,18 +65,12 @@ const ye = d.m500, ke = J`
85
65
  opacity: 0;
86
66
  overflow: hidden;
87
67
 
88
- ${({
89
- $isOpen: t
90
- }) => t && O`
91
- max-height: ${({
92
- $height: m
93
- }) => m};
68
+ ${({ $isOpen: t }) => t && O`
69
+ max-height: ${({ $height: m }) => m};
94
70
  opacity: 1;
95
71
  `};
96
72
 
97
- ${({
98
- $top: t
99
- }) => t ? O`
73
+ ${({ $top: t }) => t ? O`
100
74
  bottom: 100%;
101
75
  flex-direction: column-reverse;
102
76
  border-top-right-radius: 0.96rem;
@@ -112,30 +86,19 @@ const ye = d.m500, ke = J`
112
86
  overflow-y: auto;
113
87
  flex: 1;
114
88
  `, Fe = s.div`
115
- width: ${({
116
- $width: t
117
- }) => t};
89
+ width: ${({ $width: t }) => t};
118
90
  box-sizing: border-box;
119
- background-color: ${({
120
- $isHighlighted: t,
121
- $hoverColor: m
122
- }) => t ? m : "transparent"};
123
- cursor: ${({
124
- $isDisabled: t
125
- }) => t ? "not-allowed" : "pointer"};
91
+ background-color: ${({ $isHighlighted: t, $hoverColor: m }) => t ? m : "transparent"};
92
+ cursor: ${({ $isDisabled: t }) => t ? "not-allowed" : "pointer"};
126
93
  padding: 0.96rem 1.6rem 1.28rem;
127
94
  margin-top: 0.16rem;
128
95
  display: flex;
129
96
  align-items: center;
130
97
  gap: 0.96rem;
131
- pointer-events: ${({
132
- $isDisabled: t
133
- }) => t ? "none" : "auto"};
98
+ pointer-events: ${({ $isDisabled: t }) => t ? "none" : "auto"};
134
99
 
135
100
  &:active {
136
- background-color: ${({
137
- $activeColor: t
138
- }) => t};
101
+ background-color: ${({ $activeColor: t }) => t};
139
102
  }
140
103
  `, Re = s.div`
141
104
  position: relative;
@@ -206,9 +169,7 @@ const ye = d.m500, ke = J`
206
169
  }, h = ue(() => {
207
170
  if (!$ || !z.trim()) return t;
208
171
  const e = z.toLowerCase();
209
- return t.filter(({
210
- label: r
211
- }) => r.toLowerCase().includes(e));
172
+ return t.filter(({ label: r }) => r.toLowerCase().includes(e));
212
173
  }, [t, z, $]);
213
174
  S(() => {
214
175
  if (n) {
@@ -219,10 +180,7 @@ const ye = d.m500, ke = J`
219
180
  }, [n]), S(() => {
220
181
  if (n && l !== -1 && k.current) {
221
182
  const e = k.current.children[l];
222
- e && e.scrollIntoView({
223
- block: "nearest",
224
- behavior: "auto"
225
- });
183
+ e && e.scrollIntoView({ block: "nearest", behavior: "auto" });
226
184
  }
227
185
  }, [l, n]), S(() => {
228
186
  n && $ && B.current && B.current.focus();
@@ -234,7 +192,9 @@ const ye = d.m500, ke = J`
234
192
  }, []), fe(() => {
235
193
  if (n && k.current && f.current) {
236
194
  const e = f.current.getBoundingClientRect(), r = window.innerHeight, i = Te(R), b = r - e.bottom;
237
- te(b < i + 8 && e.top > b ? "top" : "bottom");
195
+ te(
196
+ b < i + 8 && e.top > b ? "top" : "bottom"
197
+ );
238
198
  }
239
199
  }, [n, R]);
240
200
  const oe = (e) => {
@@ -257,13 +217,12 @@ const ye = d.m500, ke = J`
257
217
  S(() => {
258
218
  const e = V.current;
259
219
  if (!e || !p || !w) return;
260
- const r = new IntersectionObserver(([i]) => {
261
- i.isIntersecting && !u && K();
262
- }, {
263
- root: k.current,
264
- threshold: 0.1,
265
- rootMargin: "20px"
266
- });
220
+ const r = new IntersectionObserver(
221
+ ([i]) => {
222
+ i.isIntersecting && !u && K();
223
+ },
224
+ { root: k.current, threshold: 0.1, rootMargin: "20px" }
225
+ );
267
226
  return r.observe(e), () => r.disconnect();
268
227
  }, [K, p, w, u]);
269
228
  const ie = (e) => {
@@ -299,44 +258,127 @@ const ye = d.m500, ke = J`
299
258
  m100: ae,
300
259
  m500: Q,
301
260
  m800: ce
302
- } = (N = be[Z]) != null ? N : ge, le = (e, r) => () => !e && y(r), q = (e) => `${D}-opt-${e}`, de = a.length === 0 ? Y : `${a.length} selected`, me = ({
303
- value: e,
304
- label: r,
305
- disabled: i
306
- }, b) => {
261
+ } = (N = be[Z]) != null ? N : ge, le = (e, r) => () => !e && y(r), q = (e) => `${D}-opt-${e}`, de = a.length === 0 ? Y : `${a.length} selected`, me = ({ value: e, label: r, disabled: i }, b) => {
307
262
  const W = a.includes(e);
308
- return /* @__PURE__ */ c(Fe, { id: q(b), role: "option", "aria-selected": W, "aria-disabled": i || void 0, $width: `calc(${g} + 1.6rem)`, $isHighlighted: b === l, $isDisabled: i, $hoverColor: se, $activeColor: ae, onClick: () => P(e), onMouseEnter: le(i, b), title: r, children: /* @__PURE__ */ c("div", { onClick: (pe) => pe.stopPropagation(), children: /* @__PURE__ */ c(xe, { value: W, onChange: () => P(e), label: r, disabled: i, innerShade: Q, outerShade: ce, tabIndex: -1 }) }) }, e);
263
+ return /* @__PURE__ */ c(
264
+ Fe,
265
+ {
266
+ id: q(b),
267
+ role: "option",
268
+ "aria-selected": W,
269
+ "aria-disabled": i || void 0,
270
+ $width: `calc(${g} + 1.6rem)`,
271
+ $isHighlighted: b === l,
272
+ $isDisabled: i,
273
+ $hoverColor: se,
274
+ $activeColor: ae,
275
+ onClick: () => P(e),
276
+ onMouseEnter: le(i, b),
277
+ title: r,
278
+ children: /* @__PURE__ */ c("div", { onClick: (pe) => pe.stopPropagation(), children: /* @__PURE__ */ c(
279
+ xe,
280
+ {
281
+ value: W,
282
+ onChange: () => P(e),
283
+ label: r,
284
+ disabled: i,
285
+ innerShade: Q,
286
+ outerShade: ce,
287
+ tabIndex: -1
288
+ }
289
+ ) })
290
+ },
291
+ e
292
+ );
309
293
  };
310
- return /* @__PURE__ */ C(Ie, { ref: f, $width: g, $isDisabled: x, $isLoading: E, onKeyDown: ie, onBlur: (e) => {
311
- var r;
312
- (r = f.current) != null && r.contains(e.relatedTarget) || (j(!1), v(!1));
313
- }, onFocus: () => j(!0), ...L, children: [
314
- /* @__PURE__ */ C(Se, { id: U, role: "button", $width: g, onClick: re, $isOpen: n, $border: Q, $isFocused: M && !n, tabIndex: x ? -1 : 0, "aria-haspopup": "listbox", "aria-expanded": n, "aria-controls": D, "aria-disabled": x || void 0, "aria-activedescendant": l !== -1 ? q(l) : void 0, children: [
315
- /* @__PURE__ */ c(Oe, { $width: g, color: a.length > 0 ? d.m700 : d.m500, size: "1.92rem", children: de }),
316
- /* @__PURE__ */ c(Ee, { color: d.m500, size: 22, $isOpen: n, "aria-hidden": !0 })
317
- ] }),
318
- /* @__PURE__ */ C(ze, { $isOpen: n, $width: g, $height: R, $top: ee === "top", children: [
319
- $ && /* @__PURE__ */ C(Re, { onClick: (e) => e.stopPropagation(), children: [
320
- /* @__PURE__ */ c(Pe, { size: 20, color: d.m600, "aria-hidden": !0 }),
321
- /* @__PURE__ */ c(Be, { ref: B, value: z, onChange: (e) => H(e.target.value), placeholder: A, "aria-label": A, "aria-controls": D, "aria-autocomplete": "list", "aria-expanded": n, role: "combobox", tabIndex: n ? 0 : -1 })
322
- ] }),
323
- /* @__PURE__ */ C(De, { ref: k, role: "listbox", id: D, tabIndex: -1, "aria-multiselectable": !0, "aria-labelledby": U, children: [
324
- h.map(me),
325
- p && /* @__PURE__ */ c(Ae, { ref: V, children: u && /* @__PURE__ */ c(G, { size: "small", color: T }) })
326
- ] })
327
- ] }),
328
- E && /* @__PURE__ */ c(We, { children: /* @__PURE__ */ c(G, { size: "small", color: T }) })
329
- ] });
294
+ return /* @__PURE__ */ C(
295
+ Ie,
296
+ {
297
+ ref: f,
298
+ $width: g,
299
+ $isDisabled: x,
300
+ $isLoading: E,
301
+ onKeyDown: ie,
302
+ onBlur: (e) => {
303
+ var r;
304
+ (r = f.current) != null && r.contains(e.relatedTarget) || (j(!1), v(!1));
305
+ },
306
+ onFocus: () => j(!0),
307
+ ...L,
308
+ children: [
309
+ /* @__PURE__ */ C(
310
+ Se,
311
+ {
312
+ id: U,
313
+ role: "button",
314
+ $width: g,
315
+ onClick: re,
316
+ $isOpen: n,
317
+ $border: Q,
318
+ $isFocused: M && !n,
319
+ tabIndex: x ? -1 : 0,
320
+ "aria-haspopup": "listbox",
321
+ "aria-expanded": n,
322
+ "aria-controls": D,
323
+ "aria-disabled": x || void 0,
324
+ "aria-activedescendant": l !== -1 ? q(l) : void 0,
325
+ children: [
326
+ /* @__PURE__ */ c(Oe, { $width: g, color: a.length > 0 ? d.m700 : d.m500, size: "1.92rem", children: de }),
327
+ /* @__PURE__ */ c(Ee, { color: d.m500, size: 22, $isOpen: n, "aria-hidden": !0 })
328
+ ]
329
+ }
330
+ ),
331
+ /* @__PURE__ */ C(ze, { $isOpen: n, $width: g, $height: R, $top: ee === "top", children: [
332
+ $ && /* @__PURE__ */ C(Re, { onClick: (e) => e.stopPropagation(), children: [
333
+ /* @__PURE__ */ c(Pe, { size: 20, color: d.m600, "aria-hidden": !0 }),
334
+ /* @__PURE__ */ c(
335
+ Be,
336
+ {
337
+ ref: B,
338
+ value: z,
339
+ onChange: (e) => H(e.target.value),
340
+ placeholder: A,
341
+ "aria-label": A,
342
+ "aria-controls": D,
343
+ "aria-autocomplete": "list",
344
+ "aria-expanded": n,
345
+ role: "combobox",
346
+ tabIndex: n ? 0 : -1
347
+ }
348
+ )
349
+ ] }),
350
+ /* @__PURE__ */ C(
351
+ De,
352
+ {
353
+ ref: k,
354
+ role: "listbox",
355
+ id: D,
356
+ tabIndex: -1,
357
+ "aria-multiselectable": !0,
358
+ "aria-labelledby": U,
359
+ children: [
360
+ h.map(me),
361
+ p && /* @__PURE__ */ c(Ae, { ref: V, children: u && /* @__PURE__ */ c(G, { size: "small", color: T }) })
362
+ ]
363
+ }
364
+ )
365
+ ] }),
366
+ E && /* @__PURE__ */ c(We, { children: /* @__PURE__ */ c(G, { size: "small", color: T }) })
367
+ ]
368
+ }
369
+ );
330
370
  };
331
371
  je.propTypes = {
332
372
  /** Array of option objects: `{ value, label, disabled? }` */
333
- options: /* @__PURE__ */ o.arrayOf(/* @__PURE__ */ o.shape({
334
- value: o.any,
335
- label: o.string,
336
- disabled: o.bool
337
- })),
373
+ options: o.arrayOf(
374
+ o.shape({
375
+ value: o.any,
376
+ label: o.string,
377
+ disabled: o.bool
378
+ })
379
+ ),
338
380
  /** Array of currently selected values (controlled multi-select). Defaults to `[]` */
339
- value: /* @__PURE__ */ o.arrayOf(o.any),
381
+ value: o.arrayOf(o.any),
340
382
  /** Called with the updated array of selected values on each change */
341
383
  onChange: o.func,
342
384
  /** CSS width of the selectbox trigger. Defaults to `'32rem'` */
@@ -9,15 +9,9 @@ const f = p`
9
9
  position: relative;
10
10
  overflow: hidden;
11
11
  background-color: ${o.m300};
12
- border-radius: ${({
13
- $borderRadius: r
14
- }) => r};
15
- width: ${({
16
- $width: r
17
- }) => r};
18
- height: ${({
19
- $height: r
20
- }) => r};
12
+ border-radius: ${({ $borderRadius: r }) => r};
13
+ width: ${({ $width: r }) => r};
14
+ height: ${({ $height: r }) => r};
21
15
 
22
16
  &:after {
23
17
  content: '';
@@ -40,14 +34,24 @@ const f = p`
40
34
  borderRadius: n = "0.64rem",
41
35
  label: s = "Loading...",
42
36
  ...m
43
- }) => /* @__PURE__ */ a(u, { role: "status", "aria-label": s, $width: t(r), $height: t(i), $borderRadius: t(n), ...m });
37
+ }) => /* @__PURE__ */ a(
38
+ u,
39
+ {
40
+ role: "status",
41
+ "aria-label": s,
42
+ $width: t(r),
43
+ $height: t(i),
44
+ $borderRadius: t(n),
45
+ ...m
46
+ }
47
+ );
44
48
  g.propTypes = {
45
49
  /** Width of the shimmer block (rem string or number). Defaults to `'100%'` */
46
- width: /* @__PURE__ */ e.oneOfType([e.string, e.number]),
50
+ width: e.oneOfType([e.string, e.number]),
47
51
  /** Height of the shimmer block (rem string or number). Defaults to `'100%'` */
48
- height: /* @__PURE__ */ e.oneOfType([e.string, e.number]),
52
+ height: e.oneOfType([e.string, e.number]),
49
53
  /** Border-radius of the shimmer block. Defaults to `'0.64rem'` */
50
- borderRadius: /* @__PURE__ */ e.oneOfType([e.string, e.number]),
54
+ borderRadius: e.oneOfType([e.string, e.number]),
51
55
  /** Accessible label for screen readers. Defaults to `'Loading...'` */
52
56
  label: e.string
53
57
  };