@zonos/amino 5.4.35 → 5.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (442) hide show
  1. package/CountryMultiSelectExpandedOption-920c1ec2.js +1 -0
  2. package/{DateControlsWrapper-d09e2e06.js → DateControlsWrapper-4900e6bb.js} +1 -1
  3. package/all.d.ts +1 -4
  4. package/components/avatar/AvatarBase.js +1 -1
  5. package/components/avatar/ImageAvatar.js +1 -1
  6. package/components/avatar/UserAvatar.js +1 -1
  7. package/components/badge/Badge.js +1 -1
  8. package/components/banner/Banner.d.ts +2 -2
  9. package/components/banner/Banner.js +1 -1
  10. package/components/button/Button.d.ts +1 -1
  11. package/components/button/Button.js +1 -1
  12. package/components/button/ButtonIcon.js +1 -1
  13. package/components/button/MenuButton.js +1 -1
  14. package/components/button/RippleGroup.d.ts +1 -1
  15. package/components/button/RippleGroup.js +1 -1
  16. package/components/button/_Ripple.d.ts +2 -2
  17. package/components/button/_Ripple.js +1 -1
  18. package/components/button/button-group/ButtonGroup.js +1 -1
  19. package/components/card/Card.js +1 -1
  20. package/components/checkbox/Checkbox.d.ts +1 -1
  21. package/components/checkbox/Checkbox.js +1 -1
  22. package/components/connection-map/ConnectionMap.js +1 -1
  23. package/components/country-multi-select/CountryMultiSelectExpanded.d.ts +2 -16
  24. package/components/country-multi-select/CountryMultiSelectExpanded.js +1 -1
  25. package/components/country-multi-select/CountryMultiSelectExpandedOption.d.ts +23 -0
  26. package/components/country-multi-select/CountryMultiSelectExpandedOption.js +1 -0
  27. package/components/cover-sheet/CoverSheet.js +1 -1
  28. package/components/cover-sheet/CoverSheetActions.js +1 -1
  29. package/components/currency/Currency.js +1 -1
  30. package/components/currency/DualCurrency.js +1 -1
  31. package/components/danger-zone/DangerZone.js +1 -1
  32. package/components/dialog/BaseDialog.d.ts +1 -1
  33. package/components/dialog/BaseDialog.js +1 -1
  34. package/components/dialog/Dialog.d.ts +3 -3
  35. package/components/dialog/Dialog.js +1 -1
  36. package/components/dialog/DismissableDialog.d.ts +2 -2
  37. package/components/dialog/DismissableDialog.js +1 -1
  38. package/components/dialog/alert/AlertContext.js +1 -1
  39. package/components/dialog/alert/AlertDialog.d.ts +1 -1
  40. package/components/dialog/alert/AlertDialog.js +1 -1
  41. package/components/dialog/alert/useAlert.js +1 -1
  42. package/components/dialog/announcement/AnnouncementDialog.d.ts +1 -1
  43. package/components/dialog/announcement/AnnouncementDialog.js +1 -1
  44. package/components/dialog/confirm/ConfirmContext.js +1 -1
  45. package/components/dialog/confirm/ConfirmDialog.d.ts +2 -2
  46. package/components/dialog/confirm/ConfirmDialog.js +1 -1
  47. package/components/dialog/confirm/useConfirm.js +1 -1
  48. package/components/drop-zone/DropZone.d.ts +2 -2
  49. package/components/drop-zone/DropZone.js +1 -1
  50. package/components/file-upload/FileUpload.d.ts +1 -1
  51. package/components/file-upload/FileUpload.js +1 -1
  52. package/components/filter/FilterWrapper.d.ts +2 -2
  53. package/components/filter/FilterWrapper.js +1 -1
  54. package/components/filter/filter-amount/FilterAmount.js +1 -1
  55. package/components/filter/filter-amount/filterAmountReducer.js +1 -1
  56. package/components/filter/filter-date/DateControls.d.ts +2 -2
  57. package/components/filter/filter-date/DateControls.js +1 -1
  58. package/components/filter/filter-date/DateControlsWrapper.d.ts +1 -1
  59. package/components/filter/filter-date/DateControlsWrapper.js +1 -1
  60. package/components/filter/filter-date/FilterDate.js +1 -1
  61. package/components/filter/filter-date/_DateControls/_IsAfter.js +1 -1
  62. package/components/filter/filter-date/_DateControls/_IsBefore.js +1 -1
  63. package/components/filter/filter-date/_DateControls/_IsBeforeOrOn.js +1 -1
  64. package/components/filter/filter-date/_DateControls/_IsBetween.js +1 -1
  65. package/components/filter/filter-date/_DateControls/_IsEqualTo.js +1 -1
  66. package/components/filter/filter-date/_DateControls/_IsInTheLast.js +1 -1
  67. package/components/filter/filter-date/_DateControls/_IsOnOrAfter.js +1 -1
  68. package/components/filter/filter-date/filterDateReducer.js +1 -1
  69. package/components/filter/filter-multi-select/FilterMultiSelect.d.ts +1 -1
  70. package/components/filter/filter-multi-select/FilterMultiSelect.js +1 -1
  71. package/components/filter/filter-select/FilterSelect.d.ts +3 -3
  72. package/components/filter/filter-select/FilterSelect.js +1 -1
  73. package/components/filter/filter-text/FilterText.d.ts +1 -1
  74. package/components/filter/filter-text/FilterText.js +1 -1
  75. package/components/filter/useFilterWrapper.js +1 -1
  76. package/components/flex/Flex.js +1 -1
  77. package/components/glow/GlowWrapper.js +1 -1
  78. package/components/help-text/HelpText.js +1 -1
  79. package/components/input/Input.js +1 -1
  80. package/components/input/MultiInput.d.ts +2 -2
  81. package/components/input/MultiInput.js +1 -1
  82. package/components/input/input-type/_DateInput.d.ts +1 -1
  83. package/components/input/input-type/_DateInput.js +1 -1
  84. package/components/input/input-type/_FloatLabelInput.d.ts +1 -1
  85. package/components/input/input-type/_FloatLabelInput.js +1 -1
  86. package/components/input/input-type/_NumberInput.d.ts +1 -1
  87. package/components/input/input-type/_NumberInput.js +1 -1
  88. package/components/input/input-type/_PasswordInput.d.ts +1 -1
  89. package/components/input/input-type/_PasswordInput.js +1 -1
  90. package/components/input/input-type/_TimeInput.d.ts +1 -1
  91. package/components/input/input-type/_TimeInput.js +1 -1
  92. package/components/layout/Layout.js +1 -1
  93. package/components/lightbox/LightBox.js +1 -1
  94. package/components/list/CollapsibleList.js +1 -1
  95. package/components/list-item/ListItem.js +1 -1
  96. package/components/nested-data-table/NestedDataTable.d.ts +1 -1
  97. package/components/nested-data-table/NestedDataTable.js +1 -1
  98. package/components/nested-data-table/NestedDataTableHasura.d.ts +2 -2
  99. package/components/nested-data-table/NestedDataTableHasura.js +1 -1
  100. package/components/nested-data-table/_Filter.js +1 -1
  101. package/components/nested-data-table/_TableData.js +1 -1
  102. package/components/pivot-table/PivotTable.d.ts +2 -2
  103. package/components/pivot-table/PivotTable.js +1 -1
  104. package/components/progress-bar/ProgressBar.d.ts +1 -1
  105. package/components/progress-bar/ProgressBar.js +1 -1
  106. package/components/radio/Radio.d.ts +1 -1
  107. package/components/radio/Radio.js +1 -1
  108. package/components/radio/RadioGroup.js +1 -1
  109. package/components/rest-state/RestState.js +1 -1
  110. package/components/rich-card-select/RichCardStateSelect.d.ts +1 -1
  111. package/components/rich-card-select/RichCardStateSelect.js +1 -1
  112. package/components/rich-checkbox/RichCheckbox.js +1 -1
  113. package/components/rich-radio/RichRadio.d.ts +1 -1
  114. package/components/rich-radio/RichRadio.js +1 -1
  115. package/components/rounded-icon/RoundedIcon.js +1 -1
  116. package/components/section/HSection.js +1 -1
  117. package/components/section/VSection.js +1 -1
  118. package/components/section/_SectionHeader.js +1 -1
  119. package/components/section/_SectionSubheader.js +1 -1
  120. package/components/select/CountryMultiSelect.d.ts +1 -1
  121. package/components/select/CountryMultiSelect.js +1 -1
  122. package/components/select/CountrySelect.d.ts +1 -1
  123. package/components/select/CountrySelect.js +1 -1
  124. package/components/select/MultiSelect.js +1 -1
  125. package/components/select/Select.d.ts +9 -9
  126. package/components/select/Select.js +1 -1
  127. package/components/select/_StyledReactSelect.d.ts +1 -1
  128. package/components/select/_StyledReactSelect.js +1 -1
  129. package/components/simple-table/SimpleTable.d.ts +18 -18
  130. package/components/simple-table/SimpleTable.js +1 -1
  131. package/components/skeleton/Skeleton.js +1 -1
  132. package/components/slide-over/SlideOver.js +1 -1
  133. package/components/spinner/Spinner.js +1 -1
  134. package/components/split-panel/SplitPanel.js +1 -1
  135. package/components/stack/HStack.js +1 -1
  136. package/components/stack/Stack.d.ts +1 -1
  137. package/components/stack/Stack.js +1 -1
  138. package/components/stack/VStack.js +1 -1
  139. package/components/switch/Switch.d.ts +1 -1
  140. package/components/switch/Switch.js +1 -1
  141. package/components/table/TableCell.js +1 -1
  142. package/components/table/TableRowCollapse.js +1 -1
  143. package/components/tabs/Tabs.d.ts +1 -1
  144. package/components/tabs/Tabs.js +1 -1
  145. package/components/tag/Tag.d.ts +1 -1
  146. package/components/text/Text.d.ts +1 -1
  147. package/components/text/Text.js +1 -1
  148. package/components/text-avatar/TextAvatar.js +1 -1
  149. package/components/textarea/Textarea.js +1 -1
  150. package/components/theme-select/ThemeSelect.js +1 -1
  151. package/components/thumbnail/Thumbnail.js +1 -1
  152. package/components/toast/Toast.d.ts +2 -2
  153. package/components/toast/Toast.js +1 -1
  154. package/components/toast/ToastContext.d.ts +1 -1
  155. package/components/toast/ToastContext.js +1 -1
  156. package/components/toggle/Toggle.d.ts +1 -1
  157. package/components/toggle/Toggle.js +1 -1
  158. package/components/tooltip/Tooltip.d.ts +1 -1
  159. package/components/tooltip/Tooltip.js +1 -1
  160. package/icons/AIDuotoneIcon.d.ts +1 -1
  161. package/icons/ArrowSwapDuotoneIcon.d.ts +1 -1
  162. package/icons/BagDuotoneIcon.d.ts +1 -1
  163. package/icons/BankDuotoneIcon.d.ts +1 -1
  164. package/icons/BellDuotoneIcon.d.ts +1 -1
  165. package/icons/BellOffDuotoneIcon.d.ts +1 -1
  166. package/icons/BookDuotoneIcon.d.ts +1 -1
  167. package/icons/BookmarkAddDuotoneIcon.d.ts +1 -1
  168. package/icons/BookmarkCheckDuotoneIcon.d.ts +1 -1
  169. package/icons/BookmarkOffDuotoneIcon.d.ts +1 -1
  170. package/icons/BookmarkRemoveDuotoneIcon.d.ts +1 -1
  171. package/icons/BookmarkSubtractDuotoneIcon.d.ts +1 -1
  172. package/icons/BoxesDuotoneIcon.d.ts +1 -1
  173. package/icons/BufferDuotoneIcon.d.ts +1 -1
  174. package/icons/CalculatorDuotoneIcon.d.ts +1 -1
  175. package/icons/CalendarDuotoneIcon.d.ts +1 -1
  176. package/icons/CardDuotoneIcon.d.ts +1 -1
  177. package/icons/CartDuotoneIcon.d.ts +1 -1
  178. package/icons/ChartDuotoneIcon.d.ts +1 -1
  179. package/icons/CheckCircleDuotoneIcon.d.ts +1 -1
  180. package/icons/CheckoutDuotoneIcon.d.ts +1 -1
  181. package/icons/ChevronDownCircleDuotoneIcon.d.ts +1 -1
  182. package/icons/ChevronLeftCircleDuotoneIcon.d.ts +1 -1
  183. package/icons/ChevronRightCircleDuotoneIcon.d.ts +1 -1
  184. package/icons/ClassifyDuotoneIcon.d.ts +1 -1
  185. package/icons/ClearDuotoneIcon.d.ts +1 -1
  186. package/icons/ClockDuotoneIcon.d.ts +1 -1
  187. package/icons/CodeCircleDuotoneIcon.d.ts +1 -1
  188. package/icons/CodeDuotoneIcon.d.ts +1 -1
  189. package/icons/CoinsDuotoneIcon.d.ts +1 -1
  190. package/icons/CollectDuotoneIcon.d.ts +1 -1
  191. package/icons/CommentDuotoneIcon.d.ts +1 -1
  192. package/icons/CopilotDuotoneIcon.d.ts +1 -1
  193. package/icons/CopyDuotoneIcon.d.ts +1 -1
  194. package/icons/CubeDuotoneIcon.d.ts +1 -1
  195. package/icons/DashboardDuotoneIcon.d.ts +1 -1
  196. package/icons/DislikeDuotoneIcon.d.ts +1 -1
  197. package/icons/DocsDuotoneIcon.d.ts +1 -1
  198. package/icons/DollarDuotoneIcon.d.ts +1 -1
  199. package/icons/DoubleChevronDuotoneIcon.d.ts +1 -1
  200. package/icons/DragDuotoneIcon.d.ts +1 -1
  201. package/icons/EditDuotoneIcon.d.ts +1 -1
  202. package/icons/ExclamationMarkDuotoneIcon.d.ts +1 -1
  203. package/icons/ExportDuotoneIcon.d.ts +1 -1
  204. package/icons/ExternalDuotoneIcon.d.ts +1 -1
  205. package/icons/EyeDuotoneIcon.d.ts +1 -1
  206. package/icons/EyeOffDuotoneIcon.d.ts +1 -1
  207. package/icons/FileDuotoneIcon.d.ts +1 -1
  208. package/icons/FileUploadDuotoneIcon.d.ts +1 -1
  209. package/icons/FilterDuotoneIcon.d.ts +1 -1
  210. package/icons/FolderListDuotoneIcon.d.ts +1 -1
  211. package/icons/FolderUploadDuotoneIcon.d.ts +1 -1
  212. package/icons/FusionDuotoneIcon.d.ts +1 -1
  213. package/icons/GlobeDuotoneIcon.d.ts +1 -1
  214. package/icons/GridDuotoneIcon.d.ts +1 -1
  215. package/icons/HelloDuotoneIcon.d.ts +1 -1
  216. package/icons/HelpDuotoneIcon.d.ts +1 -1
  217. package/icons/HomeDuotoneIcon.d.ts +1 -1
  218. package/icons/ImageDuotoneIcon.d.ts +1 -1
  219. package/icons/ImportDuotoneIcon.d.ts +1 -1
  220. package/icons/InfoDuotoneIcon.d.ts +1 -1
  221. package/icons/IntegrationDuotoneIcon.d.ts +1 -1
  222. package/icons/LandedCostDuotoneIcon.d.ts +1 -1
  223. package/icons/LaptopDuotoneIcon.d.ts +1 -1
  224. package/icons/LeftPanelClosedDuotoneIcon.d.ts +1 -1
  225. package/icons/LeftPanelOpenDuotoneIcon.d.ts +1 -1
  226. package/icons/LightDuotoneIcon.d.ts +1 -1
  227. package/icons/LikeDuotoneIcon.d.ts +1 -1
  228. package/icons/LineDownDuotoneIcon.d.ts +1 -1
  229. package/icons/LineUpDuotoneIcon.d.ts +1 -1
  230. package/icons/LinkDuotoneIcon.d.ts +1 -1
  231. package/icons/LocationDuotoneIcon.d.ts +1 -1
  232. package/icons/LockDuotoneIcon.d.ts +1 -1
  233. package/icons/LoginDuotoneIcon.d.ts +1 -1
  234. package/icons/LogoutDuotoneIcon.d.ts +1 -1
  235. package/icons/MailDuotoneIcon.d.ts +1 -1
  236. package/icons/MaximizeDuotoneIcon.d.ts +1 -1
  237. package/icons/MenuDuotoneIcon.d.ts +1 -1
  238. package/icons/MinimizeDuotoneIcon.d.ts +1 -1
  239. package/icons/MinusCircleDuotoneIcon.d.ts +1 -1
  240. package/icons/MobileDuotoneIcon.d.ts +1 -1
  241. package/icons/MoneyDuotoneIcon.d.ts +1 -1
  242. package/icons/MonitorDuotoneIcon.d.ts +1 -1
  243. package/icons/PaletteDuotoneIcon.d.ts +1 -1
  244. package/icons/PauseCircleDuotoneIcon.d.ts +1 -1
  245. package/icons/PenDuotoneIcon.d.ts +1 -1
  246. package/icons/PercentBadgeDuotoneIcon.d.ts +1 -1
  247. package/icons/PercentDuotoneIcon.d.ts +1 -1
  248. package/icons/PlaneDuotoneIcon.d.ts +1 -1
  249. package/icons/PlayCircleDuotoneIcon.d.ts +1 -1
  250. package/icons/PlusCircleDuotoneIcon.d.ts +1 -1
  251. package/icons/PrepayDuotoneIcon.d.ts +1 -1
  252. package/icons/PrinterDuotoneIcon.d.ts +1 -1
  253. package/icons/RateDuotoneIcon.d.ts +1 -1
  254. package/icons/ReceiptDuotoneIcon.d.ts +1 -1
  255. package/icons/RefreshDuotoneIcon.d.ts +1 -1
  256. package/icons/RemoveCircleDuotoneIcon.d.ts +1 -1
  257. package/icons/RestrictDuotoneIcon.d.ts +1 -1
  258. package/icons/RightPanelClosedDuotoneIcon.d.ts +1 -1
  259. package/icons/RightPanelOpenDuotoneIcon.d.ts +1 -1
  260. package/icons/RocketDuotoneIcon.d.ts +1 -1
  261. package/icons/ScanDuotoneIcon.d.ts +1 -1
  262. package/icons/ScreenDuotoneIcon.d.ts +1 -1
  263. package/icons/SearchDuotoneIcon.d.ts +1 -1
  264. package/icons/SendDuotoneIcon.d.ts +1 -1
  265. package/icons/SettingsDuotoneIcon.d.ts +1 -1
  266. package/icons/ShoppingListDuotoneIcon.d.ts +1 -1
  267. package/icons/ShoppingTagDuotoneIcon.d.ts +1 -1
  268. package/icons/StarOffDuotoneIcon.d.ts +1 -1
  269. package/icons/StarsDuotoneIcon.d.ts +1 -1
  270. package/icons/SunnyDuotoneIcon.d.ts +1 -1
  271. package/icons/TagDuotoneIcon.d.ts +1 -1
  272. package/icons/TaxDuotoneIcon.d.ts +1 -1
  273. package/icons/TotalLandedCostDuotoneIcon.d.ts +1 -1
  274. package/icons/TrashCanDuotoneIcon.d.ts +1 -1
  275. package/icons/TruckDuotoneIcon.d.ts +1 -1
  276. package/icons/UFODuotoneIcon.d.ts +1 -1
  277. package/icons/UserDuotoneIcon.d.ts +1 -1
  278. package/icons/WarningDuotoneIcon.d.ts +1 -1
  279. package/icons/custom/products/CheckoutColorIcon.js +1 -1
  280. package/icons/custom/products/ClassifyColorIcon.js +1 -1
  281. package/icons/custom/products/ClearColorIcon.js +1 -1
  282. package/icons/custom/products/CollectColorIcon.js +1 -1
  283. package/icons/custom/products/CounterCompanionColorIcon.js +1 -1
  284. package/icons/custom/products/DashboardColorIcon.js +1 -1
  285. package/icons/custom/products/HelloColorIcon.js +1 -1
  286. package/icons/custom/products/InclusivePricingColorIcon.js +1 -1
  287. package/icons/custom/products/LandedCostColorIcon.js +1 -1
  288. package/icons/custom/products/PrepayColorIcon.js +1 -1
  289. package/icons/custom/products/RateColorIcon.js +1 -1
  290. package/icons/custom/products/RestrictColorIcon.js +1 -1
  291. package/icons/custom/products/ScreenColorIcon.js +1 -1
  292. package/icons/custom/products/TaxColorIcon.js +1 -1
  293. package/icons/custom/theme/ThemeDarkIcon.js +1 -1
  294. package/icons/custom/theme/ThemeLightIcon.js +1 -1
  295. package/icons/flag-icon/FlagIcon.d.ts +1 -1
  296. package/icons/flag-icon/FlagIcon.js +1 -1
  297. package/icons/flag-icon/_FlagIconBase.js +1 -1
  298. package/icons/flag-icon/useStableUniqueId.js +1 -1
  299. package/icons/flags/AF.js +1 -1
  300. package/icons/flags/AG.js +1 -1
  301. package/icons/flags/AL.js +1 -1
  302. package/icons/flags/AR.js +1 -1
  303. package/icons/flags/AS.js +1 -1
  304. package/icons/flags/AX.js +1 -1
  305. package/icons/flags/BA.js +1 -1
  306. package/icons/flags/BB.js +1 -1
  307. package/icons/flags/BH.js +1 -1
  308. package/icons/flags/BI.js +1 -1
  309. package/icons/flags/BS.js +1 -1
  310. package/icons/flags/BV.js +1 -1
  311. package/icons/flags/CF.js +1 -1
  312. package/icons/flags/CG.js +1 -1
  313. package/icons/flags/CL.js +1 -1
  314. package/icons/flags/CN.js +1 -1
  315. package/icons/flags/CU.js +1 -1
  316. package/icons/flags/CV.js +1 -1
  317. package/icons/flags/CW.js +1 -1
  318. package/icons/flags/CX.js +1 -1
  319. package/icons/flags/CY.js +1 -1
  320. package/icons/flags/CZ.js +1 -1
  321. package/icons/flags/DJ.js +1 -1
  322. package/icons/flags/DO.js +1 -1
  323. package/icons/flags/EH.js +1 -1
  324. package/icons/flags/ET.js +1 -1
  325. package/icons/flags/FM.js +1 -1
  326. package/icons/flags/FO.js +1 -1
  327. package/icons/flags/GB.js +1 -1
  328. package/icons/flags/GD.js +1 -1
  329. package/icons/flags/GG.js +1 -1
  330. package/icons/flags/GI.js +1 -1
  331. package/icons/flags/GM.js +1 -1
  332. package/icons/flags/GR.js +1 -1
  333. package/icons/flags/HK.js +1 -1
  334. package/icons/flags/HN.js +1 -1
  335. package/icons/flags/IL.js +1 -1
  336. package/icons/flags/IN.js +1 -1
  337. package/icons/flags/IO.js +1 -1
  338. package/icons/flags/IS.js +1 -1
  339. package/icons/flags/JE.js +1 -1
  340. package/icons/flags/JO.js +1 -1
  341. package/icons/flags/JP.js +1 -1
  342. package/icons/flags/KE.js +1 -1
  343. package/icons/flags/KG.js +1 -1
  344. package/icons/flags/KI.js +1 -1
  345. package/icons/flags/KM.js +1 -1
  346. package/icons/flags/KN.js +1 -1
  347. package/icons/flags/KP.js +1 -1
  348. package/icons/flags/KR.js +1 -1
  349. package/icons/flags/KW.js +1 -1
  350. package/icons/flags/LA.js +1 -1
  351. package/icons/flags/LB.js +1 -1
  352. package/icons/flags/LR.js +1 -1
  353. package/icons/flags/LY.js +1 -1
  354. package/icons/flags/MO.js +1 -1
  355. package/icons/flags/MP.js +1 -1
  356. package/icons/flags/MR.js +1 -1
  357. package/icons/flags/MY.js +1 -1
  358. package/icons/flags/NA.js +1 -1
  359. package/icons/flags/NP.js +1 -1
  360. package/icons/flags/NR.js +1 -1
  361. package/icons/flags/NU.js +1 -1
  362. package/icons/flags/NZ.js +1 -1
  363. package/icons/flags/OM.js +1 -1
  364. package/icons/flags/PA.js +1 -1
  365. package/icons/flags/PF.js +1 -1
  366. package/icons/flags/PK.js +1 -1
  367. package/icons/flags/PR.js +1 -1
  368. package/icons/flags/PS.js +1 -1
  369. package/icons/flags/PW.js +1 -1
  370. package/icons/flags/RW.js +1 -1
  371. package/icons/flags/SA.js +1 -1
  372. package/icons/flags/SB.js +1 -1
  373. package/icons/flags/SC.js +1 -1
  374. package/icons/flags/SD.js +1 -1
  375. package/icons/flags/SG.js +1 -1
  376. package/icons/flags/SI.js +1 -1
  377. package/icons/flags/SO.js +1 -1
  378. package/icons/flags/ST.js +1 -1
  379. package/icons/flags/SZ.js +1 -1
  380. package/icons/flags/TF.js +1 -1
  381. package/icons/flags/TG.js +1 -1
  382. package/icons/flags/TJ.js +1 -1
  383. package/icons/flags/TL.js +1 -1
  384. package/icons/flags/TN.js +1 -1
  385. package/icons/flags/TV.js +1 -1
  386. package/icons/flags/TW.js +1 -1
  387. package/icons/flags/TZ.js +1 -1
  388. package/icons/flags/UM.js +1 -1
  389. package/icons/flags/UY.js +1 -1
  390. package/icons/flags/UZ.js +1 -1
  391. package/icons/flags/VE.js +1 -1
  392. package/icons/flags/VI.js +1 -1
  393. package/icons/flags/VN.js +1 -1
  394. package/icons/flags/ZA.js +1 -1
  395. package/icons/flags/ZW.js +1 -1
  396. package/icons/icon-base/_StateIconBase.d.ts +1 -1
  397. package/package.json +3 -9
  398. package/theme.css +2 -1
  399. package/tslib.es6-5672428a.js +1 -0
  400. package/utils/_extractQueryParams.js +1 -1
  401. package/utils/addIndex.js +1 -1
  402. package/utils/flattenRow.js +1 -1
  403. package/utils/formatCurrency.js +1 -1
  404. package/utils/getAminoColor.d.ts +1 -1
  405. package/utils/getFuzzySearch.d.ts +1 -1
  406. package/utils/getIsInternalLink.js +1 -1
  407. package/utils/getProductDetails.js +1 -1
  408. package/utils/handleFetch.d.ts +10 -6
  409. package/utils/handleFetch.js +1 -1
  410. package/utils/hooks/action-pivot-table/useHasuraGqlPagination.js +1 -1
  411. package/utils/hooks/useAminoTheme.d.ts +1 -1
  412. package/utils/hooks/useCountryOptions.d.ts +2 -2
  413. package/utils/hooks/useCountryOptions.js +1 -1
  414. package/utils/hooks/useDropdown.js +1 -1
  415. package/utils/hooks/useHeightAdjustTextarea.js +1 -1
  416. package/utils/hooks/useNotify.d.ts +1 -1
  417. package/utils/hooks/useNotify.js +1 -1
  418. package/utils/hooks/usePrevious.d.ts +1 -1
  419. package/utils/hooks/useStateUrl.js +1 -1
  420. package/utils/hooks/useStorage.d.ts +3 -3
  421. package/utils/hooks/useSwrt.d.ts +9 -1
  422. package/utils/hooks/useSwrt.js +1 -1
  423. package/utils/jsonParse.d.ts +1 -1
  424. package/utils/prepCountryOptions.js +1 -1
  425. package/utils/prepRegionCountryOptions.js +1 -1
  426. package/utils/setupNestedData.js +1 -1
  427. package/utils/storage.d.ts +4 -4
  428. package/utils/useCopyText.js +1 -1
  429. package/_tslib-bd4862e8.js +0 -1
  430. package/components/slider/Slider.d.ts +0 -21
  431. package/components/slider/Slider.js +0 -1
  432. package/components/sortable-list/SortableList.d.ts +0 -10
  433. package/components/sortable-list/SortableList.js +0 -1
  434. package/components/sortable-list/SortableListDeps.d.ts +0 -2
  435. package/components/sortable-list/SortableListDeps.js +0 -1
  436. package/components/sortable-list/SortableListItem.d.ts +0 -10
  437. package/components/sortable-list/SortableListItem.js +0 -1
  438. package/types/FetcherError.d.ts +0 -5
  439. package/types/JsonError.d.ts +0 -5
  440. package/types/NoInfer.d.ts +0 -5
  441. package/types/SwrtParams.d.ts +0 -4
  442. package/types/index.d.ts +0 -9
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@zonos/amino",
3
- "version": "5.4.35",
3
+ "version": "5.5.0",
4
4
  "description": "Core UI components for Amino",
5
5
  "repository": "git@github.com:Zonos/amino.git",
6
6
  "license": "MIT",
7
7
  "private": false,
8
8
  "homepage": "https://amino.zonos.com",
9
9
  "engines": {
10
- "node": "^20"
10
+ "node": "^20 || ^22"
11
11
  },
12
12
  "packageManager": "pnpm@8.15.8",
13
13
  "browserslist": [
@@ -18,20 +18,14 @@
18
18
  ],
19
19
  "scripts": {},
20
20
  "dependencies": {
21
- "@dnd-kit/core": "^6.0.8",
22
- "@dnd-kit/modifiers": "^6.0.1",
23
- "@dnd-kit/sortable": "^7.0.2",
24
- "@dnd-kit/utilities": "^3.2.1",
25
21
  "@floating-ui/react": "^0.26.0",
26
22
  "@mui/material": "^5.14.0",
27
- "@radix-ui/react-slider": "^1.1.2",
28
- "@types/topojson-client": "^3.1.1",
29
23
  "clsx": "^2.0.0",
30
24
  "d3-geo": "^2.0.2",
31
25
  "fuse.js": "^6.6.2",
32
- "pretty-bytes": "^6.1.0",
33
26
  "react-data-grid": "7.0.0-beta.34",
34
27
  "react-dropzone": "^12.1.0",
28
+ "react-intersection-observer": "^9.13.1",
35
29
  "react-select": "^5.7.4",
36
30
  "react-simple-maps": "^3.0.0",
37
31
  "react-split-it": "^2.0.0",
package/theme.css CHANGED
@@ -413,7 +413,8 @@
413
413
  --amino-v3-shadow-inset: 0px 2px 4px rgba(0, 0, 0, 0.24),
414
414
  0px 1px 0px rgba(17, 17, 20, 1), inset 0px 0px 8px rgba(0, 0, 0, 0.16),
415
415
  inset 0px 0px 0px 0.5px rgba(0, 0, 0, 0.24),
416
- inset 0px 2px 4px rgba(0, 0, 0, 0.24), inset 0px 1px 1px rgba(0, 0, 0, 0.24),
416
+ inset 0px 2px 4px rgba(0, 0, 0, 0.24),
417
+ inset 0px 1px 1px rgba(0, 0, 0, 0.24),
417
418
  0px 0px 6px rgba(255, 255, 255, 0.08),
418
419
  0px 0px 0px 1px rgba(255, 255, 255, 0.12);
419
420
  --amino-shadow-button-primary: 0px 1px 3px 0px rgba(68, 111, 238, 0.4),
@@ -0,0 +1 @@
1
+ "use strict";exports.__assign=function(){return exports.__assign=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r},exports.__assign.apply(this,arguments)},"function"==typeof SuppressedError&&SuppressedError,exports.__awaiter=function(r,t,e,n){return new(e||(e=Promise))((function(o,a){function l(r){try{i(n.next(r))}catch(r){a(r)}}function c(r){try{i(n.throw(r))}catch(r){a(r)}}function i(r){var t;r.done?o(r.value):(t=r.value,t instanceof e?t:new e((function(r){r(t)}))).then(l,c)}i((n=n.apply(r,t||[])).next())}))},exports.__generator=function(r,t){var e,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},l=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return l.next=c(0),l.throw=c(1),l.return=c(2),"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function c(c){return function(i){return function(c){if(e)throw new TypeError("Generator is already executing.");for(;l&&(l=0,c[0]&&(a=0)),a;)try{if(e=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(6===c[0]&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(r,a)}catch(r){c=[6,r],n=0}finally{e=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,i])}}},exports.__read=function(r,t){var e="function"==typeof Symbol&&r[Symbol.iterator];if(!e)return r;var n,o,a=e.call(r),l=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)l.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(e=a.return)&&e.call(a)}finally{if(o)throw o.error}}return l},exports.__rest=function(r,t){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(e[n[o]]=r[n[o]])}return e},exports.__spreadArray=function(r,t,e){if(e||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return r.concat(n||Array.prototype.slice.call(t))};
@@ -1 +1 @@
1
- "use strict";var r=require("../_tslib-bd4862e8.js"),e="\\s*\\(([\\W\\w]*)\\)";exports.extractQueryParams=function(t){var a=t.actionName,s=t.query,n="".concat(a).concat(e),i=new RegExp(n).exec(s),c=r.__read(i?Array.from(i):[],2)[1],u=((null==c?void 0:c.split(/\s*,\s*/).map((function(r){return r.trim()})))||[]).reduce((function(e,t){var a,s=r.__read(t.split(/\s*:\s*/),2),n=s[0],i=s[1];return r.__assign(r.__assign({},e),((a={})[n]=i,a))}),{});return u},exports.paramRegex=e;
1
+ "use strict";var r=require("../tslib.es6-5672428a.js"),e="\\s*\\(([\\W\\w]*)\\)";exports.extractQueryParams=function(s){var t=s.actionName,a=s.query,n="".concat(t).concat(e),i=new RegExp(n).exec(a),c=r.__read(i?Array.from(i):[],2)[1],u=((null==c?void 0:c.split(/\s*,\s*/).map((function(r){return r.trim()})))||[]).reduce((function(e,s){var t,a=r.__read(s.split(/\s*:\s*/),2),n=a[0],i=a[1];return r.__assign(r.__assign({},e),((t={})[n]=i,t))}),{});return u},exports.paramRegex=e;
package/utils/addIndex.js CHANGED
@@ -1 +1 @@
1
- "use strict";var s=require("../_tslib-bd4862e8.js");exports.addIndex=function(e,i){return s.__assign(s.__assign({},e),{_itemIndex:i+1})};
1
+ "use strict";var s=require("../tslib.es6-5672428a.js");exports.addIndex=function(e,i){return s.__assign(s.__assign({},e),{_itemIndex:i+1})};
@@ -1 +1 @@
1
- "use strict";var r=require("../_tslib-bd4862e8.js"),e=function(n){var t,s,a,i,c,_,o=r.__read(n.currentVal,2),u=o[0],f=o[1],p=n.prev,g=n.previousKey,y=void 0===g?"":g,v=""!==y?"".concat(y,".").concat(u):u;if(Array.isArray(f))return r.__assign(r.__assign({},p),((t={})[v]=f.map((function(r){return"object"==typeof r&&r?Object.entries(r).reduce((function(r,n){return e({currentVal:n,prev:r})}),{}):r})),t));if("object"==typeof f&&f){var b=Object.entries(f).reduce((function(n,t){var s=r.__read(t,2),a=s[0],i=s[1],c=e({currentVal:[a,i],prev:n,previousKey:y?"".concat(y,".").concat(a):u});return"object"==typeof c?r.__assign({},c):c}),{});return r.__assign(r.__assign({},p),b)}if("number"==typeof f)return r.__assign(r.__assign({},p),((s={})[v]=f,s));if("boolean"==typeof f)return r.__assign(r.__assign({},p),((a={})[v]=!!f,a));if("string"==typeof f)try{var j=JSON.parse(f);if(Array.isArray(j))return r.__assign(r.__assign({},p),((i={})[v]=j.map((function(r){return"object"==typeof r&&r?Object.entries(r).reduce((function(r,n){return e({currentVal:n,prev:r})}),{}):r})),i));if("object"==typeof j&&j){b=Object.entries(j).reduce((function(n,t){var s=r.__read(t,2),a=s[0],i=s[1],c=e({currentVal:[a,i],prev:n,previousKey:y?"".concat(y,".").concat(a):u});return"object"==typeof c?r.__assign({},c):c}),{});return r.__assign(r.__assign({},p),b)}}catch(r){}return f?r.__assign(r.__assign({},p),((_={})[v]="".concat(f),_)):r.__assign(r.__assign({},p),((c={})[v]="",c))};exports.flattenRow=e;
1
+ "use strict";var r=require("../tslib.es6-5672428a.js"),e=function(n){var t,s,a,i,c,_,o=r.__read(n.currentVal,2),u=o[0],f=o[1],p=n.prev,g=n.previousKey,y=void 0===g?"":g,v=""!==y?"".concat(y,".").concat(u):u;if(Array.isArray(f))return r.__assign(r.__assign({},p),((t={})[v]=f.map((function(r){return"object"==typeof r&&r?Object.entries(r).reduce((function(r,n){return e({currentVal:n,prev:r})}),{}):r})),t));if("object"==typeof f&&f){var b=Object.entries(f).reduce((function(n,t){var s=r.__read(t,2),a=s[0],i=s[1],c=e({currentVal:[a,i],prev:n,previousKey:y?"".concat(y,".").concat(a):u});return"object"==typeof c?r.__assign({},c):c}),{});return r.__assign(r.__assign({},p),b)}if("number"==typeof f)return r.__assign(r.__assign({},p),((s={})[v]=f,s));if("boolean"==typeof f)return r.__assign(r.__assign({},p),((a={})[v]=!!f,a));if("string"==typeof f)try{var j=JSON.parse(f);if(Array.isArray(j))return r.__assign(r.__assign({},p),((i={})[v]=j.map((function(r){return"object"==typeof r&&r?Object.entries(r).reduce((function(r,n){return e({currentVal:n,prev:r})}),{}):r})),i));if("object"==typeof j&&j){b=Object.entries(j).reduce((function(n,t){var s=r.__read(t,2),a=s[0],i=s[1],c=e({currentVal:[a,i],prev:n,previousKey:y?"".concat(y,".").concat(a):u});return"object"==typeof c?r.__assign({},c):c}),{});return r.__assign(r.__assign({},p),b)}}catch(r){}return f?r.__assign(r.__assign({},p),((_={})[v]="".concat(f),_)):r.__assign(r.__assign({},p),((c={})[v]="",c))};exports.flattenRow=e;
@@ -1 +1 @@
1
- "use strict";var e=require("../_tslib-bd4862e8.js"),r=function(r){var l=r.code,n=r.options,o=r.value;return new Intl.NumberFormat(navigator.language,e.__assign({currency:l,style:"currency"},n)).format(o).replace(/[^0-9.\-,]+/g,"")};exports.formatCurrency=r,exports.getDualCurrency=function(e){var l=e.conversionRate,n=e.foreignCode,o=void 0===n?"USD":n,u=e.localCode,a=void 0===u?"USD":u,t=e.value,c=e.valueIsForeign,i=void 0!==c&&c,v=l?i?t/l:t:i?null:t,s=l?i?t:t*l:i?t:null,d=null!==v?{amount:v,code:a,value:r({code:a,value:v})}:null;return{foreign:null!==s?{amount:s,code:o,value:r({code:o,value:s})}:null,local:d}};
1
+ "use strict";var e=require("../tslib.es6-5672428a.js"),r=function(r){var l=r.code,n=r.options,o=r.value;return new Intl.NumberFormat(navigator.language,e.__assign({currency:l,style:"currency"},n)).format(o).replace(/[^0-9.\-,]+/g,"")};exports.formatCurrency=r,exports.getDualCurrency=function(e){var l=e.conversionRate,n=e.foreignCode,o=void 0===n?"USD":n,u=e.localCode,a=void 0===u?"USD":u,t=e.value,c=e.valueIsForeign,i=void 0!==c&&c,v=l?i?t/l:t:i?null:t,s=l?i?t:t*l:i?t:null,d=null!==v?{amount:v,code:a,value:r({code:a,value:v})}:null;return{foreign:null!==s?{amount:s,code:o,value:r({code:o,value:s})}:null,local:d}};
@@ -1,2 +1,2 @@
1
- import type { Color } from "../types";
1
+ import type { Color } from "../types/Color";
2
2
  export declare const getAminoColor: (color?: Color | 'inherit') => "var(--amino-glass-0)" | "var(--amino-glass-50)" | "var(--amino-glass-100)" | "var(--amino-glass-200)" | "var(--amino-glass-300)" | "var(--amino-glass-400)" | "var(--amino-glass-500)" | "var(--amino-glass-600)" | "var(--amino-glass-700)" | "var(--amino-glass-800)" | "var(--amino-glass-900)" | "var(--amino-glass-950)" | "var(--amino-glass-1000)" | "var(--amino-gray-0)" | "var(--amino-gray-50)" | "var(--amino-gray-100)" | "var(--amino-gray-200)" | "var(--amino-gray-300)" | "var(--amino-gray-400)" | "var(--amino-gray-500)" | "var(--amino-gray-600)" | "var(--amino-gray-700)" | "var(--amino-gray-800)" | "var(--amino-gray-900)" | "var(--amino-gray-950)" | "var(--amino-gray-1000)" | "var(--amino-blue-50)" | "var(--amino-blue-100)" | "var(--amino-blue-200)" | "var(--amino-blue-300)" | "var(--amino-blue-400)" | "var(--amino-blue-500)" | "var(--amino-blue-600)" | "var(--amino-blue-700)" | "var(--amino-blue-800)" | "var(--amino-blue-900)" | "var(--amino-blue-950)" | "var(--amino-cyan-50)" | "var(--amino-cyan-100)" | "var(--amino-cyan-200)" | "var(--amino-cyan-300)" | "var(--amino-cyan-400)" | "var(--amino-cyan-500)" | "var(--amino-cyan-600)" | "var(--amino-cyan-700)" | "var(--amino-cyan-800)" | "var(--amino-cyan-900)" | "var(--amino-cyan-950)" | "var(--amino-red-50)" | "var(--amino-red-100)" | "var(--amino-red-200)" | "var(--amino-red-300)" | "var(--amino-red-400)" | "var(--amino-red-500)" | "var(--amino-red-600)" | "var(--amino-red-700)" | "var(--amino-red-800)" | "var(--amino-red-900)" | "var(--amino-red-950)" | "var(--amino-orange-50)" | "var(--amino-orange-100)" | "var(--amino-orange-200)" | "var(--amino-orange-300)" | "var(--amino-orange-400)" | "var(--amino-orange-500)" | "var(--amino-orange-600)" | "var(--amino-orange-700)" | "var(--amino-orange-800)" | "var(--amino-orange-900)" | "var(--amino-orange-950)" | "var(--amino-green-50)" | "var(--amino-green-100)" | "var(--amino-green-200)" | "var(--amino-green-300)" | "var(--amino-green-400)" | "var(--amino-green-500)" | "var(--amino-green-600)" | "var(--amino-green-700)" | "var(--amino-green-800)" | "var(--amino-green-900)" | "var(--amino-green-950)" | "var(--amino-purple-50)" | "var(--amino-purple-100)" | "var(--amino-purple-200)" | "var(--amino-purple-300)" | "var(--amino-purple-400)" | "var(--amino-purple-500)" | "var(--amino-purple-600)" | "var(--amino-purple-700)" | "var(--amino-purple-800)" | "var(--amino-purple-900)" | "var(--amino-purple-950)" | "inherit" | undefined;
@@ -1,5 +1,5 @@
1
1
  import Fuse from 'fuse.js';
2
- export declare const getFuzzySearch: <T extends unknown>({ array, index, options, }: {
2
+ export declare const getFuzzySearch: <T>({ array, index, options, }: {
3
3
  array: T[];
4
4
  index?: Fuse.FuseIndex<T>;
5
5
  options?: Fuse.IFuseOptions<T>;
@@ -1 +1 @@
1
- "use strict";var n=require("../_tslib-bd4862e8.js");exports.getIsInternalLink=function(i){var t=i.href,e=i.internalPaths,r=i.shouldWarn,s=void 0===r||r,l=(null==t?void 0:t.startsWith("/"))||(null==t?void 0:t.startsWith("#"));if(l&&t&&(null==e?void 0:e.length)){var a=n.__read(t.split("#"),1)[0];if(!(null==e?void 0:e.includes(a)))return s&&console.warn("This page has an internal link that does not exist: ".concat(t),"This internal link may be handled by a redirect, but since it is an internal link it should be corrected."),{isBrokenLink:!0,isInternalLink:l}}return{isBrokenLink:!1,isInternalLink:l}};
1
+ "use strict";var n=require("../tslib.es6-5672428a.js");exports.getIsInternalLink=function(i){var t=i.href,e=i.internalPaths,r=i.shouldWarn,s=void 0===r||r,l=(null==t?void 0:t.startsWith("/"))||(null==t?void 0:t.startsWith("#"));if(l&&t&&(null==e?void 0:e.length)){var a=n.__read(t.split("#"),1)[0];if(!(null==e?void 0:e.includes(a)))return s&&console.warn("This page has an internal link that does not exist: ".concat(t),"This internal link may be handled by a redirect, but since it is an internal link it should be corrected."),{isBrokenLink:!0,isInternalLink:l}}return{isBrokenLink:!1,isInternalLink:l}};
@@ -1 +1 @@
1
- "use strict";var e=require("react/jsx-runtime"),r=require("../icons/custom/products/CheckoutColorIcon.js"),o=require("../icons/custom/products/ClassifyColorIcon.js"),n=require("../icons/custom/products/ClearColorIcon.js"),c=require("../icons/custom/products/CollectColorIcon.js"),i=require("../icons/custom/products/CounterCompanionColorIcon.js"),s=require("../icons/custom/products/DashboardColorIcon.js"),a=require("../icons/custom/products/HelloColorIcon.js"),t=require("../icons/custom/products/InclusivePricingColorIcon.js"),l=require("../icons/custom/products/LandedCostColorIcon.js"),u=require("../icons/custom/products/PrepayColorIcon.js"),d=require("../icons/custom/products/RateColorIcon.js"),g=require("../icons/custom/products/RestrictColorIcon.js"),C=require("../icons/custom/products/ScreenColorIcon.js"),m=require("../icons/custom/products/TaxColorIcon.js");require("react"),require("../icons/flag-icon/useStableUniqueId.js"),require("../_tslib-bd4862e8.js"),require("uuid"),require("../icons/icon-base/_IconBase.js"),require("../styles/constants/theme.js");exports.getProductDetails=function(j){var I=j.iconSize,p=void 0===I?24:I;switch(j.product){case"checkout":return{color:"orange",gradient:"linear-gradient(90deg, #E7910A 42.48%, #DF2B76 109.98%)",icon:e.jsx(r.CheckoutColorIcon,{size:p}),name:"Checkout"};case"classify":return{color:"purple",gradient:"linear-gradient(301.28deg, #AA2DC9 23.74%, #7278F2 95.06%)",icon:e.jsx(o.ClassifyColorIcon,{size:p}),name:"Classify"};case"clear":return{color:"cyan",gradient:"linear-gradient(223.42deg, #00B9B7 50.32%, #3122F6 135.88%)",icon:e.jsx(n.ClearColorIcon,{size:p}),name:"Clear"};case"dashboard":return{color:"blue",gradient:"conic-gradient(#B004A4 -10grad, #FEBD10 10grad 80grad, #98C729 120grad 190grad, #536CFE 210grad 280grad, #B004A4 320grad 390grad, #FEBD10 410grad);",icon:e.jsx(s.DashboardColorIcon,{size:p}),name:"Dashboard"};case"hello":return{color:"green",gradient:"linear-gradient(314.52deg, #80B917 36.5%, #0CC4E2 86.53%)",icon:e.jsx(a.HelloColorIcon,{size:p}),name:"Hello"};case"inclusive-pricing":return{color:"purple",gradient:"linear-gradient(180deg, #C8286B 43.87%, #AA2EC9 77.46%)",icon:e.jsx(t.InclusivePricingColorIcon,{size:p}),name:"Inclusive Pricing"};case"landed-cost":return{color:"red",gradient:"linear-gradient(41.91deg, #DF2B76 31.62%, #FFB90D 83.63%)",icon:e.jsx(l.LandedCostColorIcon,{size:p}),name:"Landed Cost"};case"rate":return{color:"blue",gradient:"linear-gradient(269.86deg, #2740F3 -11.3%, #AA2DC9 168.06%)",icon:e.jsx(d.RateColorIcon,{size:p}),name:"Rate"};case"restrict":return{color:"blue",gradient:"linear-gradient(49.93deg, #9297FA 41.5%, #3122F9 113.97%)",icon:e.jsx(g.RestrictColorIcon,{size:p}),name:"Restrict"};case"screen":return{color:"green",gradient:"linear-gradient(180deg, #80BC17 -16.78%, #FFD900 80.83%)",icon:e.jsx(C.ScreenColorIcon,{size:p}),name:"Screen"};case"prepay":return{color:"blue",gradient:"linear-gradient(270deg, #4560EE 32.33%, #65E4EF 126.81%)",icon:e.jsx(u.PrepayColorIcon,{size:p}),name:"Prepay"};case"collect":return{color:"red",gradient:"linear-gradient(135deg, #DC2A54 46.38%, #D078FC 78.57%)",icon:e.jsx(c.CollectColorIcon,{size:p}),name:"Collect"};case"tax":return{color:"green",gradient:"linear-gradient(126.15deg, #10A74C 42.95%, #93F317 76.49%)",icon:e.jsx(m.TaxColorIcon,{size:p}),name:"Tax"};case"counter-companion":return{color:"purple",gradient:"linear-gradient(180deg, #880DC2 36.69%, #F229F7 76.94%)",icon:e.jsx(i.CounterCompanionColorIcon,{size:p}),name:"Counter Companion"};default:return{color:"blue",gradient:"linear-gradient(223.42deg, #00B9B7 50.32%, #3122F6 135.88%)",icon:e.jsx(s.DashboardColorIcon,{}),name:"Dashboard"}}};
1
+ "use strict";var e=require("react/jsx-runtime"),r=require("../icons/custom/products/CheckoutColorIcon.js"),o=require("../icons/custom/products/ClassifyColorIcon.js"),n=require("../icons/custom/products/ClearColorIcon.js"),c=require("../icons/custom/products/CollectColorIcon.js"),i=require("../icons/custom/products/CounterCompanionColorIcon.js"),s=require("../icons/custom/products/DashboardColorIcon.js"),a=require("../icons/custom/products/HelloColorIcon.js"),t=require("../icons/custom/products/InclusivePricingColorIcon.js"),l=require("../icons/custom/products/LandedCostColorIcon.js"),u=require("../icons/custom/products/PrepayColorIcon.js"),d=require("../icons/custom/products/RateColorIcon.js"),g=require("../icons/custom/products/RestrictColorIcon.js"),C=require("../icons/custom/products/ScreenColorIcon.js"),m=require("../icons/custom/products/TaxColorIcon.js");require("react"),require("../icons/flag-icon/useStableUniqueId.js"),require("../tslib.es6-5672428a.js"),require("uuid"),require("../icons/icon-base/_IconBase.js"),require("../styles/constants/theme.js");exports.getProductDetails=function(j){var I=j.iconSize,p=void 0===I?24:I;switch(j.product){case"checkout":return{color:"orange",gradient:"linear-gradient(90deg, #E7910A 42.48%, #DF2B76 109.98%)",icon:e.jsx(r.CheckoutColorIcon,{size:p}),name:"Checkout"};case"classify":return{color:"purple",gradient:"linear-gradient(301.28deg, #AA2DC9 23.74%, #7278F2 95.06%)",icon:e.jsx(o.ClassifyColorIcon,{size:p}),name:"Classify"};case"clear":return{color:"cyan",gradient:"linear-gradient(223.42deg, #00B9B7 50.32%, #3122F6 135.88%)",icon:e.jsx(n.ClearColorIcon,{size:p}),name:"Clear"};case"dashboard":return{color:"blue",gradient:"conic-gradient(#B004A4 -10grad, #FEBD10 10grad 80grad, #98C729 120grad 190grad, #536CFE 210grad 280grad, #B004A4 320grad 390grad, #FEBD10 410grad);",icon:e.jsx(s.DashboardColorIcon,{size:p}),name:"Dashboard"};case"hello":return{color:"green",gradient:"linear-gradient(314.52deg, #80B917 36.5%, #0CC4E2 86.53%)",icon:e.jsx(a.HelloColorIcon,{size:p}),name:"Hello"};case"inclusive-pricing":return{color:"purple",gradient:"linear-gradient(180deg, #C8286B 43.87%, #AA2EC9 77.46%)",icon:e.jsx(t.InclusivePricingColorIcon,{size:p}),name:"Inclusive Pricing"};case"landed-cost":return{color:"red",gradient:"linear-gradient(41.91deg, #DF2B76 31.62%, #FFB90D 83.63%)",icon:e.jsx(l.LandedCostColorIcon,{size:p}),name:"Landed Cost"};case"rate":return{color:"blue",gradient:"linear-gradient(269.86deg, #2740F3 -11.3%, #AA2DC9 168.06%)",icon:e.jsx(d.RateColorIcon,{size:p}),name:"Rate"};case"restrict":return{color:"blue",gradient:"linear-gradient(49.93deg, #9297FA 41.5%, #3122F9 113.97%)",icon:e.jsx(g.RestrictColorIcon,{size:p}),name:"Restrict"};case"screen":return{color:"green",gradient:"linear-gradient(180deg, #80BC17 -16.78%, #FFD900 80.83%)",icon:e.jsx(C.ScreenColorIcon,{size:p}),name:"Screen"};case"prepay":return{color:"blue",gradient:"linear-gradient(270deg, #4560EE 32.33%, #65E4EF 126.81%)",icon:e.jsx(u.PrepayColorIcon,{size:p}),name:"Prepay"};case"collect":return{color:"red",gradient:"linear-gradient(135deg, #DC2A54 46.38%, #D078FC 78.57%)",icon:e.jsx(c.CollectColorIcon,{size:p}),name:"Collect"};case"tax":return{color:"green",gradient:"linear-gradient(126.15deg, #10A74C 42.95%, #93F317 76.49%)",icon:e.jsx(m.TaxColorIcon,{size:p}),name:"Tax"};case"counter-companion":return{color:"purple",gradient:"linear-gradient(180deg, #880DC2 36.69%, #F229F7 76.94%)",icon:e.jsx(i.CounterCompanionColorIcon,{size:p}),name:"Counter Companion"};default:return{color:"blue",gradient:"linear-gradient(223.42deg, #00B9B7 50.32%, #3122F6 135.88%)",icon:e.jsx(s.DashboardColorIcon,{}),name:"Dashboard"}}};
@@ -1,19 +1,23 @@
1
- import type { JsonError, NoInfer } from "../types";
2
- export type HandleFetchReturn<ResponseBody extends unknown> = {
1
+ export type JsonError = {
2
+ errorId?: number;
3
+ message: string;
4
+ type: string;
5
+ };
6
+ export type HandleFetchReturn<ResponseBody> = {
3
7
  errors: JsonError[];
4
8
  json: NoInfer<ResponseBody> | null;
5
9
  response: Response | null;
6
10
  };
7
- export type FetcherReturn<ResponseBody extends unknown> = {
11
+ export type FetcherReturn<ResponseBody> = {
8
12
  json: NoInfer<ResponseBody> | null;
9
13
  response: Response | null;
10
14
  };
11
- export declare const handleRequest: <ResponseBody extends unknown>(url: string, options?: RequestInit) => Promise<HandleFetchReturn<ResponseBody>>;
15
+ export declare const handleRequest: <ResponseBody>(url: string, options?: RequestInit) => Promise<HandleFetchReturn<ResponseBody>>;
12
16
  export type RequestOptions<ResponseBody, RequestBody> = {
13
17
  body?: NoInfer<RequestBody>;
14
18
  testExpectedData?: (data: ResponseBody) => boolean;
15
19
  } & Omit<RequestInit, 'body'>;
16
- export declare const handleFetch: <ResponseBody extends unknown, RequestBody = unknown>(url: string, _opts?: RequestOptions<ResponseBody, RequestBody> & {
20
+ export declare const handleFetch: <ResponseBody, RequestBody = unknown>(url: string, _opts?: RequestOptions<ResponseBody, RequestBody> & {
17
21
  logRequestIfError?: boolean;
18
22
  }) => Promise<HandleFetchReturn<ResponseBody>>;
19
- export declare const fetcher: <ResponseBody extends unknown, RequestBody = unknown>(url: string, options?: RequestOptions<ResponseBody, RequestBody>) => Promise<FetcherReturn<ResponseBody>>;
23
+ export declare const fetcher: <ResponseBody, RequestBody = unknown>(url: string, options?: RequestOptions<ResponseBody, RequestBody>) => Promise<FetcherReturn<ResponseBody>>;
@@ -1 +1 @@
1
- "use strict";var e=require("../_tslib-bd4862e8.js"),r=function(r){return e.__awaiter(void 0,[r],void 0,(function(r){var n,s=r.response,t=r.shouldLog,o=void 0===t||t,u=r.shouldThrow,a=void 0!==u&&u;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,s.json()];case 1:return[2,e.sent()];case 2:if(n=e.sent(),a)throw n;return o&&console.error(n),[2,null];case 3:return[2]}}))}))},n=function(n,s){return e.__awaiter(void 0,void 0,void 0,(function(){var t,o,u,a,i;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,fetch(n,s)];case 1:return t=e.sent(),[3,3];case 2:return(o=e.sent())instanceof Error?[2,{errors:[{message:o.message,type:"unknown"}],json:null,response:null}]:[2,{errors:[{message:i="Fail to fetch",type:"unknown"}],json:null,response:null}];case 3:return t.ok?[4,r({response:t})]:[3,5];case 4:return[2,{errors:[],json:a=e.sent(),response:t}];case 5:u=t.status.toString(),e.label=6;case 6:return e.trys.push([6,8,,9]),[4,r({response:t,shouldThrow:!0})];case 7:return a=e.sent(),i=JSON.stringify(a),[2,{errors:[{message:"".concat(u,": ").concat(i),type:u}],json:null,response:t}];case 8:return e.sent(),i="Unknown error",[2,{errors:[{message:"".concat(u,": ").concat(i),type:u}],json:null,response:null}];case 9:return[2]}}))}))},s=function(r,s){return e.__awaiter(void 0,void 0,void 0,(function(){var t,o,u,a;return e.__generator(this,(function(i){return(t=s||{}).logRequestIfError,o=e.__rest(t,["logRequestIfError"]),u=o.body&&JSON.stringify(o.body),a=e.__assign(e.__assign({},o),{body:u}),[2,n(r,a)]}))}))};exports.fetcher=function(r,n){return e.__awaiter(void 0,void 0,void 0,(function(){var t,o,u,a,i;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,s(r,n)];case 1:if(t=e.sent(),o=t.errors,u=t.json,a=t.response,i=o.find(Boolean),!(null==a?void 0:a.ok)||["pollUntil","failedData"].includes((null==i?void 0:i.type)||""))throw{errors:o,status:null==a?void 0:a.status};return[2,{json:u,response:a}]}}))}))},exports.handleFetch=s,exports.handleRequest=n;
1
+ "use strict";var e=require("../tslib.es6-5672428a.js"),r=function(r){return e.__awaiter(void 0,[r],void 0,(function(r){var n,s=r.response,t=r.shouldLog,o=void 0===t||t,u=r.shouldThrow,a=void 0!==u&&u;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,s.json()];case 1:return[2,e.sent()];case 2:if(n=e.sent(),a)throw n;return o&&console.error(n),[2,null];case 3:return[2]}}))}))},n=function(n,s){return e.__awaiter(void 0,void 0,void 0,(function(){var t,o,u,a,i;return e.__generator(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,fetch(n,s)];case 1:return t=e.sent(),[3,3];case 2:return(o=e.sent())instanceof Error?[2,{errors:[{message:o.message,type:"unknown"}],json:null,response:null}]:[2,{errors:[{message:i="Fail to fetch",type:"unknown"}],json:null,response:null}];case 3:return t.ok?[4,r({response:t})]:[3,5];case 4:return[2,{errors:[],json:a=e.sent(),response:t}];case 5:u=t.status.toString(),e.label=6;case 6:return e.trys.push([6,8,,9]),[4,r({response:t,shouldThrow:!0})];case 7:return a=e.sent(),i=JSON.stringify(a),[2,{errors:[{message:"".concat(u,": ").concat(i),type:u}],json:null,response:t}];case 8:return e.sent(),i="Unknown error",[2,{errors:[{message:"".concat(u,": ").concat(i),type:u}],json:null,response:null}];case 9:return[2]}}))}))},s=function(r,s){return e.__awaiter(void 0,void 0,void 0,(function(){var t,o,u,a;return e.__generator(this,(function(i){return(t=s||{}).logRequestIfError,o=e.__rest(t,["logRequestIfError"]),u=o.body&&JSON.stringify(o.body),a=e.__assign(e.__assign({},o),{body:u}),[2,n(r,a)]}))}))};exports.fetcher=function(r,n){return e.__awaiter(void 0,void 0,void 0,(function(){var t,o,u,a,i;return e.__generator(this,(function(e){switch(e.label){case 0:return[4,s(r,n)];case 1:if(t=e.sent(),o=t.errors,u=t.json,a=t.response,i=o.find(Boolean),!(null==a?void 0:a.ok)||["pollUntil","failedData"].includes((null==i?void 0:i.type)||""))throw{errors:o,status:null==a?void 0:a.status};return[2,{json:u,response:a}]}}))}))},exports.handleFetch=s,exports.handleRequest=n;
@@ -1 +1 @@
1
- "use strict";var e=require("../../../_tslib-bd4862e8.js"),t=require("react"),a=require("../../_extractQueryParams.js");exports.useHasuraGqlPagination=function(r){var n=r.actionName,c=r.query,i=r.setCachingKey,o=r.setQuery,s=a.extractQueryParams({actionName:n,query:c}),u=s.limit,f=s.offset,g=u&&"string"==typeof u?parseInt(u,10):10,l=f&&"string"==typeof f?parseInt(f,10):0,p=e.__read(t.useState(Math.floor(l/g)+1),2),m=p[0],y=p[1];return{currentPage:m,handlePagination:t.useCallback((function(e){var t=e*g-g,r=c.replace(new RegExp("".concat(n).concat(a.paramRegex),"g"),(function(e){return void 0!==f&&void 0!==u?e.replace(/offset:\s*\d+/g,"offset: ".concat(t)):void 0!==u?e.replace(/(limit:\s*(\d+))/g,"$1, offset: ".concat(t)):e}));o(r),i("".concat(n,"?page=").concat(e)),y(e)}),[u,f,n,g,c,i,o]),limit:g,offset:l}};
1
+ "use strict";var e=require("../../../tslib.es6-5672428a.js"),t=require("react"),a=require("../../_extractQueryParams.js");exports.useHasuraGqlPagination=function(r){var n=r.actionName,c=r.query,i=r.setCachingKey,o=r.setQuery,s=a.extractQueryParams({actionName:n,query:c}),u=s.limit,f=s.offset,g=u&&"string"==typeof u?parseInt(u,10):10,l=f&&"string"==typeof f?parseInt(f,10):0,p=e.__read(t.useState(Math.floor(l/g)+1),2),m=p[0],y=p[1];return{currentPage:m,handlePagination:t.useCallback((function(e){var t=e*g-g,r=c.replace(new RegExp("".concat(n).concat(a.paramRegex),"g"),(function(e){return void 0!==f&&void 0!==u?e.replace(/offset:\s*\d+/g,"offset: ".concat(t)):void 0!==u?e.replace(/(limit:\s*(\d+))/g,"$1, offset: ".concat(t)):e}));o(r),i("".concat(n,"?page=").concat(e)),y(e)}),[u,f,n,g,c,i,o]),limit:g,offset:l}};
@@ -1,4 +1,4 @@
1
- import type { Theme } from "../../types";
1
+ import { type Theme } from "../../types/Theme";
2
2
  type Params = {
3
3
  /** Use with root to override a theme in localStorage */
4
4
  override?: Theme;
@@ -22,8 +22,8 @@ declare const schemaCountry: z.ZodObject<{
22
22
  label: string;
23
23
  region: "Africa" | "Americas" | "Asia" | "Central America" | "Europe" | "North America" | "Oceania" | "South America";
24
24
  active: boolean;
25
- value: string;
26
25
  displayName: string;
26
+ value: string;
27
27
  code3: string | null;
28
28
  currencyCode: string;
29
29
  fraudRisk: number;
@@ -37,8 +37,8 @@ declare const schemaCountry: z.ZodObject<{
37
37
  label: string;
38
38
  region: "Africa" | "Americas" | "Asia" | "Central America" | "Europe" | "North America" | "Oceania" | "South America";
39
39
  active: boolean;
40
- value: string;
41
40
  displayName: string;
41
+ value: string;
42
42
  code3: string | null;
43
43
  currencyCode: string;
44
44
  fraudRisk: number;
@@ -1 +1 @@
1
- "use strict";var e=require("../../_tslib-bd4862e8.js"),r=require("dayjs"),n=require("zod"),t=require("../handleFetch.js"),s=require("./useSwrt.js"),i=require("../prepCountryOptions.js"),a=require("./useStorage.js");function u(e){return e&&e.__esModule?e:{default:e}}require("lodash/isEqual"),require("swr"),require("../countryPhoneCodes.js"),require("react"),require("../storage.js");var o=u(r),l=["Africa","Americas","Asia","Central America","Europe","North America","Oceania","South America"],c=n.z.object({active:n.z.boolean(),code:n.z.string(),code3:n.z.string().nullable(),currencyCode:n.z.string(),displayName:n.z.string(),fraudRisk:n.z.number(),label:n.z.string(),languageCode:n.z.string().nullable(),numericCode:n.z.string().nullable(),phoneCode:n.z.array(n.z.string()),region:n.z.enum(l),upsCode:n.z.string().nullable(),value:n.z.string(),zipRegex:n.z.string().nullable()}),d=n.z.array(c);exports.regions=l,exports.useCountryOptions=function(r){var n=a.useStorageWithLifetime({defaultValue:[],key:"__zn_country_options",lifetime:o.default().endOf("week"),schema:d,type:"local"}),u=n.setValue,l=n.value,c=s.useSwrt("".concat(r,"/api/address/getCountries"),{fetcher:function(r){return e.__awaiter(void 0,void 0,void 0,(function(){var n,s,a,o;return e.__generator(this,(function(e){switch(e.label){case 0:return l.length?[3,2]:[4,t.fetcher(r,{headers:{"cache-control":"no-cache"}})];case 1:return n=e.sent(),s=n.json,a=n.response,o=s?i.prepCountryOptions({json:s}):[],u(o),[2,{json:o,response:a}];case 2:return[2,{json:l,response:null}]}}))}))}}).data;return(null==c?void 0:c.json)||[]};
1
+ "use strict";var e=require("../../tslib.es6-5672428a.js"),r=require("dayjs"),n=require("zod"),t=require("../handleFetch.js"),s=require("./useSwrt.js"),i=require("../prepCountryOptions.js"),a=require("./useStorage.js");function u(e){return e&&e.__esModule?e:{default:e}}require("lodash/isEqual"),require("swr"),require("../countryPhoneCodes.js"),require("react"),require("../storage.js");var o=u(r),l=["Africa","Americas","Asia","Central America","Europe","North America","Oceania","South America"],c=n.z.object({active:n.z.boolean(),code:n.z.string(),code3:n.z.string().nullable(),currencyCode:n.z.string(),displayName:n.z.string(),fraudRisk:n.z.number(),label:n.z.string(),languageCode:n.z.string().nullable(),numericCode:n.z.string().nullable(),phoneCode:n.z.array(n.z.string()),region:n.z.enum(l),upsCode:n.z.string().nullable(),value:n.z.string(),zipRegex:n.z.string().nullable()}),d=n.z.array(c);exports.regions=l,exports.useCountryOptions=function(r){var n=a.useStorageWithLifetime({defaultValue:[],key:"__zn_country_options",lifetime:o.default().endOf("week"),schema:d,type:"local"}),u=n.setValue,l=n.value,c=s.useSwrt("".concat(r,"/api/address/getCountries"),{fetcher:function(r){return e.__awaiter(void 0,void 0,void 0,(function(){var n,s,a,o;return e.__generator(this,(function(e){switch(e.label){case 0:return l.length?[3,2]:[4,t.fetcher(r,{headers:{"cache-control":"no-cache"}})];case 1:return n=e.sent(),s=n.json,a=n.response,o=s?i.prepCountryOptions({json:s}):[],u(o),[2,{json:o,response:a}];case 2:return[2,{json:l,response:null}]}}))}))}}).data;return(null==c?void 0:c.json)||[]};
@@ -1 +1 @@
1
- "use strict";var e=require("../../_tslib-bd4862e8.js"),t=require("react"),i=require("@floating-ui/react");exports.useDropdown=function(n){var o=null!=n?n:{},s=o.floatingOptions,r=void 0===s?{}:s,u=o.offsetCrossAxis,a=void 0===u?0:u,l=o.offsetMainAxis,d=void 0===l?0:l,f=o.placement,c=void 0===f?"bottom-start":f,v=o.startOpen,p=void 0!==v&&v,m=e.__read(t.useState(p),2),b=m[0],g=m[1],w=b?"visible":"hidden",x=t.useRef(null),y=i.useFloating(e.__assign({middleware:[i.shift(),i.offset({crossAxis:a,mainAxis:d}),i.flip()],placement:c,whileElementsMounted:i.autoUpdate},r)),_=y.floatingStyles,A=y.refs,E=t.useCallback((function(e){var t,i=e.target;b&&0===e.button&&((null===(t=null==x?void 0:x.current)||void 0===t?void 0:t.contains(i))||(e.preventDefault(),e.stopPropagation(),g(!1)))}),[b]);return t.useEffect((function(){return"undefined"!=typeof document&&document.addEventListener("mousedown",E),function(){"undefined"!=typeof document&&document.removeEventListener("mousedown",E)}}),[E]),{floatingStyles:_,refs:A,setVisible:g,visibility:w,visible:b,wrapperRef:x}};
1
+ "use strict";var e=require("../../tslib.es6-5672428a.js"),t=require("react"),i=require("@floating-ui/react");exports.useDropdown=function(n){var o=null!=n?n:{},s=o.floatingOptions,r=void 0===s?{}:s,u=o.offsetCrossAxis,a=void 0===u?0:u,l=o.offsetMainAxis,d=void 0===l?0:l,f=o.placement,c=void 0===f?"bottom-start":f,v=o.startOpen,p=void 0!==v&&v,m=e.__read(t.useState(p),2),b=m[0],g=m[1],w=b?"visible":"hidden",x=t.useRef(null),y=i.useFloating(e.__assign({middleware:[i.shift(),i.offset({crossAxis:a,mainAxis:d}),i.flip()],placement:c,whileElementsMounted:i.autoUpdate},r)),A=y.floatingStyles,E=y.refs,_=t.useCallback((function(e){var t,i=e.target;b&&0===e.button&&((null===(t=null==x?void 0:x.current)||void 0===t?void 0:t.contains(i))||(e.preventDefault(),e.stopPropagation(),g(!1)))}),[b]);return t.useEffect((function(){return"undefined"!=typeof document&&document.addEventListener("mousedown",_),function(){"undefined"!=typeof document&&document.removeEventListener("mousedown",_)}}),[_]),{floatingStyles:A,refs:E,setVisible:g,visibility:w,visible:b,wrapperRef:x}};
@@ -1 +1 @@
1
- "use strict";var e=require("../../_tslib-bd4862e8.js"),t=require("react"),a=function(e,t){return window.getComputedStyle(e)[t]};exports.useHeightAdjustTextarea=function(i){var o=i.additionalHeight,r=void 0===o?0:o,s=i.initialRows,l=void 0===s?2:s,n=i.maxRows,d=void 0===n?20:n,h=i.ref,u=i.shouldExpand,c=i.textareaValue,g=e.__read(t.useState(0),2),p=g[0],v=g[1];t.useEffect((function(){var e=h.current;if(e&&u){var t=parseFloat(a(e,"height")),i=parseFloat(a(e,"lineHeight")),o=parseFloat(a(e,"paddingTop"))||0,s=parseFloat(a(e,"paddingBottom"))||0;p||v(t);var l=i*d+o+s;if(e.style.height="0",e.scrollHeight+r<=l){var n=Math.max(p,e.scrollHeight+r);e.style.height="".concat(n,"px"),e.style.overflow="hidden"}else e.style.height="".concat(l+r,"px"),e.style.overflow="auto"}}),[h,d,c,u,p,l,r])};
1
+ "use strict";var e=require("../../tslib.es6-5672428a.js"),t=require("react"),a=function(e,t){return window.getComputedStyle(e)[t]};exports.useHeightAdjustTextarea=function(i){var o=i.additionalHeight,r=void 0===o?0:o,s=i.initialRows,l=void 0===s?2:s,n=i.maxRows,d=void 0===n?20:n,h=i.ref,u=i.shouldExpand,c=i.textareaValue,g=e.__read(t.useState(0),2),p=g[0],v=g[1];t.useEffect((function(){var e=h.current;if(e&&u){var t=parseFloat(a(e,"height")),i=parseFloat(a(e,"lineHeight")),o=parseFloat(a(e,"paddingTop"))||0,s=parseFloat(a(e,"paddingBottom"))||0;p||v(t);var l=i*d+o+s;if(e.style.height="0",e.scrollHeight+r<=l){var n=Math.max(p,e.scrollHeight+r);e.style.height="".concat(n,"px"),e.style.overflow="hidden"}else e.style.height="".concat(l+r,"px"),e.style.overflow="auto"}}),[h,d,c,u,p,l,r])};
@@ -1,5 +1,5 @@
1
1
  export declare const useNotify: () => {
2
- notify: import("../../components/toast/ToastContext").ToastContextFunctionType;
3
2
  dismissAllToasts: () => void;
4
3
  dismissToast: (toastId: string) => void;
4
+ notify: import("../../components/toast/ToastContext").ToastContextFunctionType;
5
5
  };
@@ -1 +1 @@
1
- "use strict";var e=require("react"),r=require("../../components/toast/ToastContext.js");require("../../_tslib-bd4862e8.js"),require("react/jsx-runtime"),require("clsx"),require("framer-motion"),require("uuid"),require("../../components/button/Button.js"),require("../../components/button/RippleGroup.js"),require("../../components/button/_Ripple.js"),require("../getAminoColor.js"),require("../../styles/constants/theme.js"),require("../../style-inject.es-d4ddeae4.js"),require("../../components/button/useRipple.js"),require("../../components/spinner/Spinner.js"),require("../getTestId.js"),require("../../components/flex/Flex.js"),require("../../components/toast/Toast.js"),require("../../icons/CheckCircleIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../../icons/InfoIcon.js"),require("../../icons/RemoveCircleIcon.js"),require("../../icons/RemoveIcon.js"),require("../../icons/WarningIcon.js");exports.useNotify=function(){return e.useContext(r.ToastContext)};
1
+ "use strict";var e=require("react"),r=require("../../components/toast/ToastContext.js");require("../../tslib.es6-5672428a.js"),require("react/jsx-runtime"),require("clsx"),require("framer-motion"),require("uuid"),require("../../components/button/Button.js"),require("../../components/button/RippleGroup.js"),require("../../components/button/_Ripple.js"),require("../getAminoColor.js"),require("../../styles/constants/theme.js"),require("../../style-inject.es-d4ddeae4.js"),require("../../components/button/useRipple.js"),require("../../components/spinner/Spinner.js"),require("../getTestId.js"),require("../../components/flex/Flex.js"),require("../../components/toast/Toast.js"),require("../../icons/CheckCircleIcon.js"),require("../../icons/icon-base/_IconBase.js"),require("../../icons/InfoIcon.js"),require("../../icons/RemoveCircleIcon.js"),require("../../icons/RemoveIcon.js"),require("../../icons/WarningIcon.js");exports.useNotify=function(){return e.useContext(r.ToastContext)};
@@ -1 +1 @@
1
- export declare const usePrevious: <T extends unknown>(value: T) => T | undefined;
1
+ export declare const usePrevious: <T>(value: T) => T | undefined;
@@ -1 +1 @@
1
- "use strict";var e=require("../../_tslib-bd4862e8.js"),t=require("react"),a=function(e){var t=e.name,a=e.schema,r=new URLSearchParams(window.location.search).get(t);if(!r)return null;try{var n=JSON.parse(r);return(s=a.safeParse(n)).success?s.data:null}catch(e){var s;return(s=a.safeParse(r)).success?s.data:null}},r=function(e){var t=e.name,a=e.value,r=new URLSearchParams(window.location.search);try{if("object"==typeof a&&(null===a||0===Object.keys(a).length))return void r.delete(t);var n="string"==typeof a?a:JSON.stringify(a);null===a?r.delete(t):r.set(t,n)}finally{""===r.toString()?window.history.replaceState(null,"",window.location.pathname):window.history.replaceState(null,"","?".concat(r.toString()))}};exports.getCurrentStateUrl=a,exports.setStateUrl=r,exports.useStateUrl=function(n){var s=n.initialValue,l=n.name,i=n.schema,c=e.__read(t.useState(a({name:l,schema:i})||s),2),u=c[0],o=c[1];return[u,t.useCallback((function(e){r({name:l,value:e}),o(e)}),[l])]};
1
+ "use strict";var e=require("../../tslib.es6-5672428a.js"),t=require("react"),a=function(e){var t=e.name,a=e.schema,r=new URLSearchParams(window.location.search).get(t);if(!r)return null;try{var n=JSON.parse(r);return(s=a.safeParse(n)).success?s.data:null}catch(e){var s;return(s=a.safeParse(r)).success?s.data:null}},r=function(e){var t=e.name,a=e.value,r=new URLSearchParams(window.location.search);try{if("object"==typeof a&&(null===a||0===Object.keys(a).length))return void r.delete(t);var n="string"==typeof a?a:JSON.stringify(a);null===a?r.delete(t):r.set(t,n)}finally{""===r.toString()?window.history.replaceState(null,"",window.location.pathname):window.history.replaceState(null,"","?".concat(r.toString()))}};exports.getCurrentStateUrl=a,exports.setStateUrl=r,exports.useStateUrl=function(n){var s=n.initialValue,l=n.name,i=n.schema,c=e.__read(t.useState(a({name:l,schema:i})||s),2),u=c[0],o=c[1];return[u,t.useCallback((function(e){r({name:l,value:e}),o(e)}),[l])]};
@@ -3,14 +3,14 @@ import { type StorageParams } from "../storage";
3
3
  type AminoLocalStorageKey = 'current-schema';
4
4
  /** Storage key that's being used in Amino */
5
5
  export type AminoStorageKey = `amino:${AminoLocalStorageKey}` | (string & Record<never, never>);
6
- export type UseStorageParams<TValue extends unknown, TKey extends AminoStorageKey> = StorageParams<TValue, TKey> & {
6
+ export type UseStorageParams<TValue, TKey extends AminoStorageKey> = StorageParams<TValue, TKey> & {
7
7
  defaultValue: TValue;
8
8
  };
9
- export declare const useStorage: <TValue extends unknown, TKey extends AminoStorageKey = AminoStorageKey>({ defaultValue, key, schema, type, }: UseStorageParams<TValue, TKey>) => {
9
+ export declare const useStorage: <TValue, TKey extends AminoStorageKey = AminoStorageKey>({ defaultValue, key, schema, type, }: UseStorageParams<TValue, TKey>) => {
10
10
  setValue: (value: TValue) => void;
11
11
  value: TValue;
12
12
  };
13
- export declare const useStorageWithLifetime: <TValue extends unknown, TKey extends AminoStorageKey = AminoStorageKey>({ defaultValue, key, lifetime, schema, type, }: UseStorageParams<TValue, TKey> & {
13
+ export declare const useStorageWithLifetime: <TValue, TKey extends AminoStorageKey = AminoStorageKey>({ defaultValue, key, lifetime, schema, type, }: UseStorageParams<TValue, TKey> & {
14
14
  lifetime: Dayjs;
15
15
  }) => {
16
16
  setValue: (value: TValue) => void;
@@ -1,5 +1,13 @@
1
1
  import { type Fetcher, type Key, type SWRConfiguration } from 'swr';
2
- import type { FetcherError, SwrtParams } from "../../types";
2
+ import type { JsonError } from "../handleFetch";
3
+ type SwrtParams<T> = {
4
+ json: T | null;
5
+ response: Response | null;
6
+ };
7
+ type FetcherError = {
8
+ errors: JsonError[];
9
+ status: number;
10
+ };
3
11
  type UseSwrArgs<ResponseData> = readonly [Key] | readonly [Key, Fetcher<SwrtParams<ResponseData>> | null] | readonly [
4
12
  Key,
5
13
  SWRConfiguration<SwrtParams<ResponseData>, FetcherError> | undefined
@@ -1 +1 @@
1
- "use strict";var r=require("../../_tslib-bd4862e8.js"),n=require("lodash/isEqual"),e=require("swr");function u(r){return r&&r.__esModule?r:{default:r}}var t=u(n),i=u(e),o=function(){for(var r=arguments,n=[],e=0;e<arguments.length;e++)n[e]=r[e];return"function"==typeof n[1]?[n[0],n[1],n[2]||{}]:[n[0],null,(null===n[1]?n[2]:n[1])||{}]};exports.useSwrt=function(){for(var n=arguments,e=[],u=0;u<arguments.length;u++)e[u]=n[u];var s=function(r){return{config:r[2],fetcher:r[1],key:r[0]}}(o.apply(void 0,r.__spreadArray([],r.__read(e),!1))),a=r.__assign(r.__assign({},s),{config:r.__assign({compare:function(r,n){return t.default(null==r?void 0:r.json,null==n?void 0:n.json)}},s.config)});return i.default(a.key,a.fetcher,a.config)};
1
+ "use strict";var r=require("../../tslib.es6-5672428a.js"),e=require("lodash/isEqual"),n=require("swr");function u(r){return r&&r.__esModule?r:{default:r}}var t=u(e),i=u(n),o=function(){for(var r=arguments,e=[],n=0;n<arguments.length;n++)e[n]=r[n];return"function"==typeof e[1]?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]};exports.useSwrt=function(){for(var e=arguments,n=[],u=0;u<arguments.length;u++)n[u]=e[u];var s=function(r){return{config:r[2],fetcher:r[1],key:r[0]}}(o.apply(void 0,r.__spreadArray([],r.__read(n),!1))),a=r.__assign(r.__assign({},s),{config:r.__assign({compare:function(r,e){return t.default(null==r?void 0:r.json,null==e?void 0:e.json)}},s.config)});return i.default(a.key,a.fetcher,a.config)};
@@ -1 +1 @@
1
- export declare const jsonParse: <DataType extends unknown>(data: string | null) => DataType | null;
1
+ export declare const jsonParse: <DataType>(data: string | null) => DataType | null;
@@ -1 +1 @@
1
- "use strict";var e=require("../_tslib-bd4862e8.js"),n=require("./countryPhoneCodes.js");exports.prepCountryOptions=function(o){var r=o.json;return Object.entries(r).map((function(o){var r,s=e.__read(o,2)[1];return e.__assign(e.__assign({},s),{label:s.displayName,phoneCode:(null===(r=n.countryPhoneCodes.find((function(e){return e.code===s.code})))||void 0===r?void 0:r.phoneCode)||[],value:s.code})})).sort((function(e,n){return e.displayName.localeCompare(n.displayName)}))};
1
+ "use strict";var e=require("../tslib.es6-5672428a.js"),n=require("./countryPhoneCodes.js");exports.prepCountryOptions=function(o){var r=o.json;return Object.entries(r).map((function(o){var r,s=e.__read(o,2)[1];return e.__assign(e.__assign({},s),{label:s.displayName,phoneCode:(null===(r=n.countryPhoneCodes.find((function(e){return e.code===s.code})))||void 0===r?void 0:r.phoneCode)||[],value:s.code})})).sort((function(e,n){return e.displayName.localeCompare(n.displayName)}))};
@@ -1 +1 @@
1
- "use strict";var r=require("./hooks/useCountryOptions.js");require("../_tslib-bd4862e8.js"),require("dayjs"),require("zod"),require("./handleFetch.js"),require("./hooks/useSwrt.js"),require("lodash/isEqual"),require("swr"),require("./prepCountryOptions.js"),require("./countryPhoneCodes.js"),require("./hooks/useStorage.js"),require("react"),require("./storage.js");exports.prepRegionCountryOptions=function(e){return r.regions.map((function(r){return{label:r,options:e.filter((function(e){return e.region===r}))}}))};
1
+ "use strict";var e=require("./hooks/useCountryOptions.js");require("../tslib.es6-5672428a.js"),require("dayjs"),require("zod"),require("./handleFetch.js"),require("./hooks/useSwrt.js"),require("lodash/isEqual"),require("swr"),require("./prepCountryOptions.js"),require("./countryPhoneCodes.js"),require("./hooks/useStorage.js"),require("react"),require("./storage.js");exports.prepRegionCountryOptions=function(r){return e.regions.map((function(e){return{label:e,options:r.filter((function(r){return r.region===e}))}}))};
@@ -1 +1 @@
1
- "use strict";var e=require("../_tslib-bd4862e8.js");exports.setupNestedData=function(s){return e.__assign(e.__assign({},s),{_expandedData:[],_expandedKey:""})};
1
+ "use strict";var e=require("../tslib.es6-5672428a.js");exports.setupNestedData=function(s){return e.__assign(e.__assign({},s),{_expandedData:[],_expandedKey:""})};
@@ -12,10 +12,10 @@ export type StorageParams<Value, Key extends string = string> = {
12
12
  type SetParams<Value> = Omit<StorageParams<Value>, 'schema'> & {
13
13
  value: Value;
14
14
  };
15
- export declare const getStorageItem: <Value extends unknown>({ key, schema, type, }: StorageParams<Value>) => Value | null;
16
- export declare const setStorageItem: <Value extends unknown>({ key, type, value, }: SetParams<Value>) => void;
17
- export declare const setStorageItemWithLifetime: <Value extends unknown>({ key, lifetime, type, value, }: SetParams<Value> & {
15
+ export declare const getStorageItem: <Value>({ key, schema, type, }: StorageParams<Value>) => Value | null;
16
+ export declare const setStorageItem: <Value>({ key, type, value, }: SetParams<Value>) => void;
17
+ export declare const setStorageItemWithLifetime: <Value>({ key, lifetime, type, value, }: SetParams<Value> & {
18
18
  lifetime: Dayjs;
19
19
  }) => void;
20
- export declare const getShouldUpdateStorageItem: <Value extends unknown>({ key, type, }: StorageParams<Value>) => boolean;
20
+ export declare const getShouldUpdateStorageItem: <Value>({ key, type, }: StorageParams<Value>) => boolean;
21
21
  export {};
@@ -1 +1 @@
1
- "use strict";var t=require("../_tslib-bd4862e8.js"),e=require("react");exports.useCopyText=function(o){var r=(null!=o?o:{}).tooltipDuration,i=void 0===r?4e3:r,u=t.__read(e.useState(!1),2),n=u[0],s=u[1];return{copyText:function(t){navigator.clipboard.writeText(t),s(!0),setTimeout((function(){return s(!1)}),i)},setShowTooltip:s,showTooltip:n}};
1
+ "use strict";var t=require("../tslib.es6-5672428a.js"),e=require("react");exports.useCopyText=function(o){var r=(null!=o?o:{}).tooltipDuration,i=void 0===r?4e3:r,u=t.__read(e.useState(!1),2),n=u[0],s=u[1];return{copyText:function(t){navigator.clipboard.writeText(t),s(!0),setTimeout((function(){return s(!1)}),i)},setShowTooltip:s,showTooltip:n}};
@@ -1 +0,0 @@
1
- "use strict";exports.__assign=function(){return exports.__assign=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r},exports.__assign.apply(this,arguments)},"function"==typeof SuppressedError&&SuppressedError,exports.__awaiter=function(r,t,e,n){return new(e||(e=Promise))((function(o,a){function l(r){try{c(n.next(r))}catch(r){a(r)}}function i(r){try{c(n.throw(r))}catch(r){a(r)}}function c(r){var t;r.done?o(r.value):(t=r.value,t instanceof e?t:new e((function(r){r(t)}))).then(l,i)}c((n=n.apply(r,t||[])).next())}))},exports.__generator=function(r,t){var e,n,o,a,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function i(i){return function(c){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;a&&(a=0,i[0]&&(l=0)),l;)try{if(e=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,n=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(!(o=l.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){l=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){l.label=i[1];break}if(6===i[0]&&l.label<o[1]){l.label=o[1],o=i;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(i);break}o[2]&&l.ops.pop(),l.trys.pop();continue}i=t.call(r,l)}catch(r){i=[6,r],n=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},exports.__read=function(r,t){var e="function"==typeof Symbol&&r[Symbol.iterator];if(!e)return r;var n,o,a=e.call(r),l=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)l.push(n.value)}catch(r){o={error:r}}finally{try{n&&!n.done&&(e=a.return)&&e.call(a)}finally{if(o)throw o.error}}return l},exports.__rest=function(r,t){var e={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.indexOf(n)<0&&(e[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(e[n[o]]=r[n[o]])}return e},exports.__spreadArray=function(r,t,e){if(e||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return r.concat(n||Array.prototype.slice.call(t))};
@@ -1,21 +0,0 @@
1
- import type { BaseProps } from "../../types/BaseProps";
2
- type SliderSize = 8 | 12;
3
- export type SliderProps = BaseProps & {
4
- hideIndicator?: boolean;
5
- max?: number;
6
- min?: number;
7
- /**
8
- * How thick you want the progress look
9
- * @default 12
10
- * */
11
- size?: SliderSize;
12
- step?: number;
13
- /**
14
- * @default "%"
15
- */
16
- suffix?: string;
17
- value: number;
18
- onChange: (newValue: number) => void;
19
- };
20
- export declare const Slider: ({ className, hideIndicator, max, min, onChange, size, step, style, suffix, value, }: SliderProps) => import("react/jsx-runtime").JSX.Element;
21
- export {};
@@ -1 +0,0 @@
1
- "use strict";var e=require("../../_tslib-bd4862e8.js"),i=require("react/jsx-runtime"),r=require("@radix-ui/react-slider"),o=require("clsx"),a=require("../../style-inject.es-d4ddeae4.js");function d(e){return e&&e.__esModule?e:{default:e}}var l=d(o),s="Amino_Slider-module__styledSlider--DgldC",n="Amino_Slider-module__styledTrack--LJSr2",t="Amino_Slider-module__styledRange--H8Kqc",m="Amino_Slider-module__styledThumb--ZJzHZ",u="Amino_Slider-module__sliderWrapper--NJhMD",_="Amino_Slider-module__indicator---fWLA",c="Amino_Slider-module__upTriangle--obmpR",h="Amino_Slider-module__indicatorWrapper---so7l";a.styleInject(".Amino_Slider-module__styledSlider--DgldC{align-items:center;display:flex;height:12px;position:relative;touch-action:none;-webkit-user-select:none;user-select:none}.Amino_Slider-module__styledTrack--LJSr2{background-color:var(--amino-gray-200);border-radius:20px;box-shadow:var(--amino-v3-shadow-inset);flex-grow:1;height:var(--amino-slider-styled-track-height);position:relative}.Amino_Slider-module__styledTrack--LJSr2+span{transition:all .3s ease}.Amino_Slider-module__styledRange--H8Kqc{background-color:var(--amino-primary);border-radius:9999px;height:100%;position:absolute;transition:all .3s ease}.Amino_Slider-module__styledThumb--ZJzHZ{background:var(--amino-gray-0);border:var(--amino-border);border-radius:20px;box-shadow:var(--amino-v3-shadow-base);cursor:pointer;display:block;height:var(--amino-slider-styled-thumb-height);width:var(--amino-slider-styled-thumb-width)}[data-theme=night] .Amino_Slider-module__styledThumb--ZJzHZ{background:var(--amino-gray-1000)}.Amino_Slider-module__styledThumb--ZJzHZ:active,.Amino_Slider-module__styledThumb--ZJzHZ:focus{background:var(--amino-gray-100);border-color:var(--amino-primary);box-shadow:var(--amino-glow-blue);outline:none}.Amino_Slider-module__sliderWrapper--NJhMD{height:var(--amino-slider-wrapper-height);position:relative}.Amino_Slider-module__indicator---fWLA{align-items:center;background:var(--amino-blue-100);border-bottom-left-radius:var(--amino-radius-6);border-bottom-right-radius:var(--amino-radius-6);color:var(--amino-blue-800);display:flex;font-weight:500;height:32px;justify-content:center;position:relative;-webkit-user-select:none;user-select:none;width:48px}.Amino_Slider-module__indicator---fWLA span{margin-top:-8px}.Amino_Slider-module__upTriangle--obmpR{border-bottom:24px solid var(--amino-blue-100);border-left:24px solid #0000;border-right:24px solid #0000;border-top-left-radius:var(--amino-radius-6);border-top-right-radius:var(--amino-radius-6);height:0;width:0;width:48px}.Amino_Slider-module__indicatorWrapper---so7l{margin-left:-12px;margin-top:34px}");exports.Slider=function(o){var a=o.className,d=o.hideIndicator,p=void 0!==d&&d,b=o.max,g=o.min,v=o.onChange,x=o.size,y=void 0===x?12:x,S=o.step,A=o.style,f=o.suffix,w=void 0===f?"%":f,j=o.value;return i.jsx("div",{className:l.default(a,u),style:e.__assign(e.__assign({},A),{"--amino-slider-styled-thumb-height":"".concat(2*y,"px"),"--amino-slider-styled-thumb-width":"".concat(2*y,"px"),"--amino-slider-styled-track-height":"".concat(y,"px"),"--amino-slider-wrapper-height":p?"":"90px"}),children:i.jsxs(r.Root,{className:s,max:b,min:g,onValueChange:function(i){var r=e.__read(i,1)[0];return void 0!==r&&v(r)},step:S,value:[j],children:[i.jsx(r.Track,{className:n,children:i.jsx(r.Range,{className:t})}),i.jsx(r.Thumb,{className:m,children:!p&&i.jsxs("div",{className:h,children:[i.jsx("div",{className:c}),i.jsx("div",{className:_,children:i.jsxs("span",{children:[j,w]})})]})})]})})};
@@ -1,10 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import type { SortingStrategy } from '@dnd-kit/sortable/dist/types';
3
- import type { DragEndEvent } from "./SortableListDeps";
4
- export type SortableListProps = {
5
- children: ReactNode;
6
- itemIds: string[];
7
- sortingStrategy?: SortingStrategy;
8
- handleDragEnd: (e: DragEndEvent) => void;
9
- };
10
- export declare const SortableList: ({ children, handleDragEnd, itemIds, sortingStrategy, }: SortableListProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- "use strict";var e=require("react/jsx-runtime"),t=require("@dnd-kit/core"),r=require("@dnd-kit/modifiers"),i=require("@dnd-kit/sortable"),s=require("../../style-inject.es-d4ddeae4.js"),l="Amino_SortableList-module__styledSortableList--lwAuY";s.styleInject(".Amino_SortableList-module__styledSortableList--lwAuY{display:flex;flex-direction:column;gap:5px}");exports.SortableList=function(s){var n=s.children,o=s.handleDragEnd,d=s.itemIds,a=s.sortingStrategy,c=void 0===a?i.verticalListSortingStrategy:a;return e.jsx(t.DndContext,{collisionDetection:t.closestCenter,modifiers:[r.restrictToParentElement,r.restrictToVerticalAxis],onDragEnd:o,children:e.jsx(i.SortableContext,{items:d,strategy:c,children:e.jsx("div",{className:l,children:n})})})};
@@ -1,2 +0,0 @@
1
- export type { DragEndEvent } from '@dnd-kit/core/dist/types';
2
- export { arrayMove } from '@dnd-kit/sortable';
@@ -1 +0,0 @@
1
- "use strict";var e=require("@dnd-kit/sortable");Object.defineProperty(exports,"arrayMove",{enumerable:!0,get:function(){return e.arrayMove}});
@@ -1,10 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- import type { BaseProps } from "../../types/BaseProps";
3
- export type SortableListItemProps = BaseProps & {
4
- children: ReactNode;
5
- handleIconSize?: number;
6
- id: string;
7
- useHandle?: boolean;
8
- };
9
- /** @description This must be a direct child of SortableList */
10
- export declare const SortableListItem: ({ children, handleIconSize, id, style, useHandle, }: SortableListItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- "use strict";var e=require("../../_tslib-bd4862e8.js"),s=require("react/jsx-runtime"),t=require("@dnd-kit/sortable"),i=require("@dnd-kit/utilities"),r=require("../../icons/DragIcon.js"),n=require("../../style-inject.es-d4ddeae4.js");require("react"),require("../../icons/icon-base/_IconBase.js"),require("../../styles/constants/theme.js");var a="Amino_SortableListItem-module__styledSortableListItem--N-vqT",l="Amino_SortableListItem-module__styledSortableSection--fMakn";n.styleInject(".Amino_SortableListItem-module__styledSortableListItem--N-vqT{align-items:center;display:flex;gap:24px;justify-content:flex-end}.Amino_SortableListItem-module__styledSortableSection--fMakn{flex-grow:1}");exports.SortableListItem=function(n){var o=n.children,d=n.handleIconSize,c=void 0===d?20:d,m=n.id,u=n.style,_=n.useHandle,j=t.useSortable({id:m}),S=j.attributes,b=j.listeners,x=j.setNodeRef,f=j.transform,v=j.transition,y=e.__assign(e.__assign({},u),{transform:i.CSS.Transform.toString(f),transition:v});return s.jsx("div",{ref:x,children:_?s.jsxs("div",{className:a,style:y,children:[s.jsx("div",{className:l,children:o}),s.jsx("div",e.__assign({},b,S,{children:s.jsx(r.DragIcon,{size:c})}))]}):s.jsx("div",e.__assign({className:a,style:u},b,S,{children:s.jsx("div",{className:l,children:o})}))})};
@@ -1,5 +0,0 @@
1
- import type { JsonError } from "./JsonError";
2
- export type FetcherError = {
3
- errors: JsonError[];
4
- status: number;
5
- };
@@ -1,5 +0,0 @@
1
- export type JsonError = {
2
- errorId?: number;
3
- message: string;
4
- type: string;
5
- };
@@ -1,5 +0,0 @@
1
- /**
2
- * @desc A way to disable type inference
3
- * https:stackoverflow.com/questions/56687668/a-way-to-disable-type-argument-inference-in-generics
4
- */
5
- export type NoInfer<T> = [T][T extends unknown ? 0 : never];
@@ -1,4 +0,0 @@
1
- export type SwrtParams<T> = {
2
- json: T | null;
3
- response: Response | null;
4
- };
package/types/index.d.ts DELETED
@@ -1,9 +0,0 @@
1
- export type { Color } from './Color';
2
- export type { FetcherError } from './FetcherError';
3
- export type * from './GridSpacing';
4
- export type { IconProps } from './IconProps';
5
- export type { Intent } from './Intent';
6
- export type { JsonError } from './JsonError';
7
- export type { NoInfer } from './NoInfer';
8
- export type { SwrtParams } from './SwrtParams';
9
- export type { Theme } from './Theme';