@unchainedshop/admin-ui 4.8.31 → 4.8.32

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 (458) hide show
  1. package/out/403/index.html +3 -3
  2. package/out/404/index.html +3 -3
  3. package/out/404.html +3 -3
  4. package/out/423/index.html +3 -3
  5. package/out/500/index.html +3 -3
  6. package/out/_next/static/chunks/{0696190awbl-j.js → 0a5nr3-_q7xx1.js} +10 -10
  7. package/out/_next/static/chunks/{1m85ne6w_6tei.js → 11go520d1hcm5.js} +1 -1
  8. package/out/_next/static/chunks/{2-kvt9e7irukm.js → 182l1mlbf0glb.js} +1 -1
  9. package/out/_next/static/chunks/{09avk6mqdin_1.js → 1wnuiwsbi70eq.js} +1 -1
  10. package/out/_next/static/chunks/{0uls4bq8a7gyh.js → 2wmsx4gjbgvfv.js} +3 -3
  11. package/out/_next/static/chunks/{1_3e6x79fcyv3.js → 41p3ng89i5lem.js} +1 -1
  12. package/out/_next/static/{4ESrB8YpR2n44PFePtbgX → jOx5PlckLwWIJ5yrvePdU}/_buildManifest.js +2 -2
  13. package/out/_offline/index.html +3 -3
  14. package/out/account/forgot-password/index.html +3 -3
  15. package/out/account/index.html +3 -3
  16. package/out/assortments/AssortmentDetailPage/index.html +3 -3
  17. package/out/assortments/index.html +3 -3
  18. package/out/assortments/new/index.html +3 -3
  19. package/out/copilot/index.html +3 -3
  20. package/out/country/CountryDetailPage/index.html +3 -3
  21. package/out/country/index.html +3 -3
  22. package/out/country/new/index.html +3 -3
  23. package/out/currency/CurrencyDetailPage/index.html +3 -3
  24. package/out/currency/index.html +3 -3
  25. package/out/currency/new/index.html +3 -3
  26. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -3
  27. package/out/delivery-provider/index.html +3 -3
  28. package/out/delivery-provider/new/index.html +3 -3
  29. package/out/enrollments/EnrollmentDetailPage/index.html +3 -3
  30. package/out/enrollments/index.html +3 -3
  31. package/out/events/EventDetailPage/index.html +3 -3
  32. package/out/events/index.html +3 -3
  33. package/out/exports/index.html +3 -3
  34. package/out/external/index.html +3 -3
  35. package/out/filters/FilterDetailPage/index.html +3 -3
  36. package/out/filters/index.html +3 -3
  37. package/out/filters/new/index.html +3 -3
  38. package/out/index.html +3 -3
  39. package/out/install/index.html +3 -3
  40. package/out/language/LanguageDetailPage/index.html +3 -3
  41. package/out/language/index.html +3 -3
  42. package/out/language/new/index.html +3 -3
  43. package/out/log-in/index.html +3 -3
  44. package/out/orders/OrderDetailPage/index.html +3 -3
  45. package/out/orders/index.html +3 -3
  46. package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -3
  47. package/out/payment-provider/index.html +3 -3
  48. package/out/payment-provider/new/index.html +3 -3
  49. package/out/products/ProductDetailPage/index.html +3 -3
  50. package/out/products/index.html +3 -3
  51. package/out/products/new/index.html +3 -3
  52. package/out/quotations/QuotationDetailPage/index.html +3 -3
  53. package/out/quotations/index.html +3 -3
  54. package/out/reset-password/index.html +3 -3
  55. package/out/sign-up/index.html +3 -3
  56. package/out/styleguide/index.html +3 -3
  57. package/out/tokens/TokenDetailPage/index.html +3 -3
  58. package/out/tokens/index.html +3 -3
  59. package/out/users/UserDetailPage/index.html +3 -3
  60. package/out/users/index.html +3 -3
  61. package/out/users/new/index.html +3 -3
  62. package/out/verify-email/index.html +3 -3
  63. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -3
  64. package/out/warehousing-provider/index.html +3 -3
  65. package/out/warehousing-provider/new/index.html +3 -3
  66. package/out/works/WorkDetailPage/index.html +3 -3
  67. package/out/works/WorkQueueListView/index.html +3 -3
  68. package/out/works/index.html +3 -3
  69. package/out/works/management/index.html +3 -3
  70. package/package.json +31 -31
  71. package/dist/chunk-3L6EZQ6P.js +0 -135
  72. package/dist/chunk-54DKBWXV.js +0 -33
  73. package/dist/chunk-5WPFHQZN.js +0 -388
  74. package/dist/chunk-6UGLNLJG.js +0 -44
  75. package/dist/chunk-BMDNY67T.js +0 -22547
  76. package/dist/chunk-BOMSMJF2.js +0 -77
  77. package/dist/chunk-COV7BREX.js +0 -50
  78. package/dist/chunk-E77YIMGR.js +0 -2083
  79. package/dist/chunk-EJDZRZSZ.js +0 -59
  80. package/dist/chunk-ELPURWDC.js +0 -75
  81. package/dist/chunk-F6LBNV3H.js +0 -9
  82. package/dist/chunk-FDHXLNZQ.js +0 -44
  83. package/dist/chunk-GY2DRQGW.js +0 -166
  84. package/dist/chunk-HERLM47Z.js +0 -309
  85. package/dist/chunk-HJKRGBDG.js +0 -694
  86. package/dist/chunk-I64TXIE7.js +0 -618
  87. package/dist/chunk-IAQPLRXZ.js +0 -16
  88. package/dist/chunk-ICJH36K4.js +0 -326
  89. package/dist/chunk-ILYPJE4N.js +0 -57
  90. package/dist/chunk-IWKDBADX.js +0 -73
  91. package/dist/chunk-IXBMHOB5.js +0 -13
  92. package/dist/chunk-IYKPRAWC.js +0 -26
  93. package/dist/chunk-J23QSWDL.js +0 -8
  94. package/dist/chunk-KH5MK6ZW.js +0 -18
  95. package/dist/chunk-KRIRF7F6.js +0 -76
  96. package/dist/chunk-NT7RB7AK.js +0 -70
  97. package/dist/chunk-OKGJ6HDE.js +0 -26
  98. package/dist/chunk-OTXM2UCD.js +0 -19
  99. package/dist/chunk-PJLYVMUM.js +0 -3308
  100. package/dist/chunk-PUI5BIKO.js +0 -41
  101. package/dist/chunk-Q6S3LBUF.js +0 -180
  102. package/dist/chunk-QHR23GVH.js +0 -1099
  103. package/dist/chunk-QWQ3WJJN.js +0 -1
  104. package/dist/chunk-RAQV2GYF.js +0 -70
  105. package/dist/chunk-VBO377AY.js +0 -14
  106. package/dist/chunk-VYEXPG3M.js +0 -107
  107. package/dist/chunk-WPLOTFGW.js +0 -36
  108. package/dist/chunk-YO6PT7KD.js +0 -13
  109. package/dist/chunk-ZUOVKRKC.js +0 -957
  110. package/dist/components/ui/Accordion/Accordion.d.ts +0 -11
  111. package/dist/components/ui/Accordion/Accordion.d.ts.map +0 -1
  112. package/dist/components/ui/Accordion/AccordionHeader.d.ts +0 -6
  113. package/dist/components/ui/Accordion/AccordionHeader.d.ts.map +0 -1
  114. package/dist/components/ui/Accordion/AccordionItem.d.ts +0 -11
  115. package/dist/components/ui/Accordion/AccordionItem.d.ts.map +0 -1
  116. package/dist/components/ui/ActiveInActive.d.ts +0 -10
  117. package/dist/components/ui/ActiveInActive.d.ts.map +0 -1
  118. package/dist/components/ui/AnimatedCounter.d.ts +0 -7
  119. package/dist/components/ui/AnimatedCounter.d.ts.map +0 -1
  120. package/dist/components/ui/Badge.d.ts +0 -10
  121. package/dist/components/ui/Badge.d.ts.map +0 -1
  122. package/dist/components/ui/BreadCrumbs.d.ts +0 -7
  123. package/dist/components/ui/BreadCrumbs.d.ts.map +0 -1
  124. package/dist/components/ui/Button.d.ts +0 -36
  125. package/dist/components/ui/Button.d.ts.map +0 -1
  126. package/dist/components/ui/CopyableText.d.ts +0 -5
  127. package/dist/components/ui/CopyableText.d.ts.map +0 -1
  128. package/dist/components/ui/DateInput.d.ts +0 -15
  129. package/dist/components/ui/DateInput.d.ts.map +0 -1
  130. package/dist/components/ui/DateRangeFilterInput.d.ts +0 -4
  131. package/dist/components/ui/DateRangeFilterInput.d.ts.map +0 -1
  132. package/dist/components/ui/DetailHeader.d.ts +0 -6
  133. package/dist/components/ui/DetailHeader.d.ts.map +0 -1
  134. package/dist/components/ui/DraggableIcon.d.ts +0 -3
  135. package/dist/components/ui/DraggableIcon.d.ts.map +0 -1
  136. package/dist/components/ui/ErrorBoundary.d.ts +0 -18
  137. package/dist/components/ui/ErrorBoundary.d.ts.map +0 -1
  138. package/dist/components/ui/ErrorFallback.d.ts +0 -6
  139. package/dist/components/ui/ErrorFallback.d.ts.map +0 -1
  140. package/dist/components/ui/HelpText.d.ts +0 -11
  141. package/dist/components/ui/HelpText.d.ts.map +0 -1
  142. package/dist/components/ui/ImageWithFallback.d.ts +0 -7
  143. package/dist/components/ui/ImageWithFallback.d.ts.map +0 -1
  144. package/dist/components/ui/InfoTextBanner.d.ts +0 -6
  145. package/dist/components/ui/InfoTextBanner.d.ts.map +0 -1
  146. package/dist/components/ui/JSONView.d.ts +0 -6
  147. package/dist/components/ui/JSONView.d.ts.map +0 -1
  148. package/dist/components/ui/ListHeader.d.ts +0 -6
  149. package/dist/components/ui/ListHeader.d.ts.map +0 -1
  150. package/dist/components/ui/Loading.d.ts +0 -10
  151. package/dist/components/ui/Loading.d.ts.map +0 -1
  152. package/dist/components/ui/NoData.d.ts +0 -7
  153. package/dist/components/ui/NoData.d.ts.map +0 -1
  154. package/dist/components/ui/NoImage.d.ts +0 -7
  155. package/dist/components/ui/NoImage.d.ts.map +0 -1
  156. package/dist/components/ui/NoImageSvg.d.ts +0 -8
  157. package/dist/components/ui/NoImageSvg.d.ts.map +0 -1
  158. package/dist/components/ui/PageHeader.d.ts +0 -11
  159. package/dist/components/ui/PageHeader.d.ts.map +0 -1
  160. package/dist/components/ui/Pagination.d.ts +0 -8
  161. package/dist/components/ui/Pagination.d.ts.map +0 -1
  162. package/dist/components/ui/Portal/Portal.d.ts +0 -16
  163. package/dist/components/ui/Portal/Portal.d.ts.map +0 -1
  164. package/dist/components/ui/Portal/Portal.types.d.ts +0 -16
  165. package/dist/components/ui/Portal/Portal.types.d.ts.map +0 -1
  166. package/dist/components/ui/SaveAndCancelButtons.d.ts +0 -10
  167. package/dist/components/ui/SaveAndCancelButtons.d.ts.map +0 -1
  168. package/dist/components/ui/SearchField.d.ts +0 -7
  169. package/dist/components/ui/SearchField.d.ts.map +0 -1
  170. package/dist/components/ui/Tab.d.ts +0 -18
  171. package/dist/components/ui/Tab.d.ts.map +0 -1
  172. package/dist/components/ui/Tag/TagInput.d.ts +0 -19
  173. package/dist/components/ui/Tag/TagInput.d.ts.map +0 -1
  174. package/dist/components/ui/Tag/TagList.d.ts +0 -8
  175. package/dist/components/ui/Tag/TagList.d.ts.map +0 -1
  176. package/dist/components/ui/Tag/TagListForm.d.ts +0 -8
  177. package/dist/components/ui/Tag/TagListForm.d.ts.map +0 -1
  178. package/dist/components/ui/Toggle.d.ts +0 -11
  179. package/dist/components/ui/Toggle.d.ts.map +0 -1
  180. package/dist/components/ui/ToolTip.d.ts +0 -7
  181. package/dist/components/ui/ToolTip.d.ts.map +0 -1
  182. package/dist/components/ui/card.d.ts +0 -9
  183. package/dist/components/ui/card.d.ts.map +0 -1
  184. package/dist/components/ui/chart.d.ts +0 -42
  185. package/dist/components/ui/chart.d.ts.map +0 -1
  186. package/dist/components/ui/form/CheckboxField.d.ts +0 -4
  187. package/dist/components/ui/form/CheckboxField.d.ts.map +0 -1
  188. package/dist/components/ui/form/ChoicesField.d.ts +0 -12
  189. package/dist/components/ui/form/ChoicesField.d.ts.map +0 -1
  190. package/dist/components/ui/form/Combobox.d.ts +0 -20
  191. package/dist/components/ui/form/Combobox.d.ts.map +0 -1
  192. package/dist/components/ui/form/DatePickerField.d.ts +0 -4
  193. package/dist/components/ui/form/DatePickerField.d.ts.map +0 -1
  194. package/dist/components/ui/form/EmailField.d.ts +0 -7
  195. package/dist/components/ui/form/EmailField.d.ts.map +0 -1
  196. package/dist/components/ui/form/FieldWithHelp.d.ts +0 -10
  197. package/dist/components/ui/form/FieldWithHelp.d.ts.map +0 -1
  198. package/dist/components/ui/form/FieldWrapper.d.ts +0 -8
  199. package/dist/components/ui/form/FieldWrapper.d.ts.map +0 -1
  200. package/dist/components/ui/form/FormErrors.d.ts +0 -6
  201. package/dist/components/ui/form/FormErrors.d.ts.map +0 -1
  202. package/dist/components/ui/form/JSONAreaField.d.ts +0 -7
  203. package/dist/components/ui/form/JSONAreaField.d.ts.map +0 -1
  204. package/dist/components/ui/form/MarkdownTextAreaField.d.ts +0 -8
  205. package/dist/components/ui/form/MarkdownTextAreaField.d.ts.map +0 -1
  206. package/dist/components/ui/form/PasswordField.d.ts +0 -3
  207. package/dist/components/ui/form/PasswordField.d.ts.map +0 -1
  208. package/dist/components/ui/form/SelectField.d.ts +0 -11
  209. package/dist/components/ui/form/SelectField.d.ts.map +0 -1
  210. package/dist/components/ui/form/SubmitButton.d.ts +0 -9
  211. package/dist/components/ui/form/SubmitButton.d.ts.map +0 -1
  212. package/dist/components/ui/form/TagInputField.d.ts +0 -7
  213. package/dist/components/ui/form/TagInputField.d.ts.map +0 -1
  214. package/dist/components/ui/form/TextAreaField.d.ts +0 -8
  215. package/dist/components/ui/form/TextAreaField.d.ts.map +0 -1
  216. package/dist/components/ui/form/TextField.d.ts +0 -10
  217. package/dist/components/ui/form/TextField.d.ts.map +0 -1
  218. package/dist/components/ui/form/index.d.ts +0 -18
  219. package/dist/components/ui/form/index.d.ts.map +0 -1
  220. package/dist/components/ui/icons.d.ts +0 -4
  221. package/dist/components/ui/icons.d.ts.map +0 -1
  222. package/dist/components/ui/index.d.ts +0 -47
  223. package/dist/components/ui/index.d.ts.map +0 -1
  224. package/dist/form.js +0 -2617
  225. package/dist/gql/operation-types.d.ts +0 -13239
  226. package/dist/gql/operation-types.d.ts.map +0 -1
  227. package/dist/gql/schema-types.d.ts +0 -3876
  228. package/dist/gql/schema-types.d.ts.map +0 -1
  229. package/dist/gql/types.d.ts +0 -3
  230. package/dist/gql/types.d.ts.map +0 -1
  231. package/dist/hooks.js +0 -49
  232. package/dist/lib/utils.d.ts +0 -3
  233. package/dist/lib/utils.d.ts.map +0 -1
  234. package/dist/modal.js +0 -51
  235. package/dist/modules/Auth/AuthContext.d.ts +0 -9
  236. package/dist/modules/Auth/AuthContext.d.ts.map +0 -1
  237. package/dist/modules/Auth/useAuth.d.ts +0 -6
  238. package/dist/modules/Auth/useAuth.d.ts.map +0 -1
  239. package/dist/modules/UnchainedContext/UnchainedContext.d.ts +0 -8
  240. package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +0 -1
  241. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +0 -7
  242. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +0 -1
  243. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts +0 -3
  244. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts.map +0 -1
  245. package/dist/modules/accounts/fragment/UserFragment.d.ts +0 -3
  246. package/dist/modules/accounts/fragment/UserFragment.d.ts.map +0 -1
  247. package/dist/modules/accounts/hooks/useCurrentUser.d.ts +0 -10
  248. package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +0 -1
  249. package/dist/modules/accounts/hooks/useUsersCount.d.ts +0 -8
  250. package/dist/modules/accounts/hooks/useUsersCount.d.ts.map +0 -1
  251. package/dist/modules/accounts.js +0 -1349
  252. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts +0 -8
  253. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts.map +0 -1
  254. package/dist/modules/assortment.js +0 -1205
  255. package/dist/modules/common/components/AppContext.d.ts +0 -18
  256. package/dist/modules/common/components/AppContext.d.ts.map +0 -1
  257. package/dist/modules/common/components/FormWrapper.d.ts +0 -8
  258. package/dist/modules/common/components/FormWrapper.d.ts.map +0 -1
  259. package/dist/modules/common/components/LocaleWrapper.d.ts +0 -7
  260. package/dist/modules/common/components/LocaleWrapper.d.ts.map +0 -1
  261. package/dist/modules/common/components/MediaAvatar.d.ts +0 -6
  262. package/dist/modules/common/components/MediaAvatar.d.ts.map +0 -1
  263. package/dist/modules/common/components/SelectOptions.d.ts +0 -17
  264. package/dist/modules/common/components/SelectOptions.d.ts.map +0 -1
  265. package/dist/modules/common/components/Table.d.ts +0 -25
  266. package/dist/modules/common/components/Table.d.ts.map +0 -1
  267. package/dist/modules/common/components/TableCell.d.ts +0 -12
  268. package/dist/modules/common/components/TableCell.d.ts.map +0 -1
  269. package/dist/modules/common/components/TableRow.d.ts +0 -10
  270. package/dist/modules/common/components/TableRow.d.ts.map +0 -1
  271. package/dist/modules/common/components/ThemeWrapper.d.ts +0 -10
  272. package/dist/modules/common/components/ThemeWrapper.d.ts.map +0 -1
  273. package/dist/modules/common/data/iso-codes.d.ts +0 -4
  274. package/dist/modules/common/data/iso-codes.d.ts.map +0 -1
  275. package/dist/modules/common/data/miscellaneous.d.ts +0 -52
  276. package/dist/modules/common/data/miscellaneous.d.ts.map +0 -1
  277. package/dist/modules/common/fragments/AddressFragment.d.ts +0 -3
  278. package/dist/modules/common/fragments/AddressFragment.d.ts.map +0 -1
  279. package/dist/modules/common/hooks/useApp.d.ts +0 -11
  280. package/dist/modules/common/hooks/useApp.d.ts.map +0 -1
  281. package/dist/modules/common/hooks/useBulkResultHandler.d.ts +0 -8
  282. package/dist/modules/common/hooks/useBulkResultHandler.d.ts.map +0 -1
  283. package/dist/modules/common/hooks/useBulkSelection.d.ts +0 -12
  284. package/dist/modules/common/hooks/useBulkSelection.d.ts.map +0 -1
  285. package/dist/modules/common/hooks/useCSVExport.d.ts +0 -10
  286. package/dist/modules/common/hooks/useCSVExport.d.ts.map +0 -1
  287. package/dist/modules/common/hooks/useCSVImport.d.ts +0 -18
  288. package/dist/modules/common/hooks/useCSVImport.d.ts.map +0 -1
  289. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts +0 -5
  290. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts.map +0 -1
  291. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts +0 -10
  292. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts.map +0 -1
  293. package/dist/modules/common/hooks/useDashboardMetrics.d.ts +0 -23
  294. package/dist/modules/common/hooks/useDashboardMetrics.d.ts.map +0 -1
  295. package/dist/modules/common/hooks/useLocalStorage.d.ts +0 -3
  296. package/dist/modules/common/hooks/useLocalStorage.d.ts.map +0 -1
  297. package/dist/modules/common/hooks/useOrderAnalytics.d.ts +0 -25
  298. package/dist/modules/common/hooks/useOrderAnalytics.d.ts.map +0 -1
  299. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts +0 -16
  300. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts.map +0 -1
  301. package/dist/modules/common/hooks/useOutsideClick.d.ts +0 -3
  302. package/dist/modules/common/hooks/useOutsideClick.d.ts.map +0 -1
  303. package/dist/modules/common/hooks/usePortal.d.ts +0 -20
  304. package/dist/modules/common/hooks/usePortal.d.ts.map +0 -1
  305. package/dist/modules/common/hooks/useScrollRestoration.d.ts +0 -8
  306. package/dist/modules/common/hooks/useScrollRestoration.d.ts.map +0 -1
  307. package/dist/modules/common/hooks/useShopConfiguration.d.ts +0 -8
  308. package/dist/modules/common/hooks/useShopConfiguration.d.ts.map +0 -1
  309. package/dist/modules/common/hooks/useShopInfo.d.ts +0 -41
  310. package/dist/modules/common/hooks/useShopInfo.d.ts.map +0 -1
  311. package/dist/modules/common/hooks/useStatusTypes.d.ts +0 -10
  312. package/dist/modules/common/hooks/useStatusTypes.d.ts.map +0 -1
  313. package/dist/modules/common/hooks/useSystemRoles.d.ts +0 -7
  314. package/dist/modules/common/hooks/useSystemRoles.d.ts.map +0 -1
  315. package/dist/modules/common/hooks/useTheme.d.ts +0 -7
  316. package/dist/modules/common/hooks/useTheme.d.ts.map +0 -1
  317. package/dist/modules/common/utils/deBounce.d.ts +0 -3
  318. package/dist/modules/common/utils/deBounce.d.ts.map +0 -1
  319. package/dist/modules/common/utils/defaultNextImageLoader.d.ts +0 -7
  320. package/dist/modules/common/utils/defaultNextImageLoader.d.ts.map +0 -1
  321. package/dist/modules/common/utils/formatUsername.d.ts +0 -3
  322. package/dist/modules/common/utils/formatUsername.d.ts.map +0 -1
  323. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts +0 -30
  324. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts.map +0 -1
  325. package/dist/modules/common/utils/normalizeFilterKeys.d.ts +0 -4
  326. package/dist/modules/common/utils/normalizeFilterKeys.d.ts.map +0 -1
  327. package/dist/modules/common/utils/sharedContext.d.ts +0 -9
  328. package/dist/modules/common/utils/sharedContext.d.ts.map +0 -1
  329. package/dist/modules/common/utils/useFormatDateTime.d.ts +0 -16
  330. package/dist/modules/common/utils/useFormatDateTime.d.ts.map +0 -1
  331. package/dist/modules/common/utils/utils.d.ts +0 -21
  332. package/dist/modules/common/utils/utils.d.ts.map +0 -1
  333. package/dist/modules/country/fragments/CountryFragment.d.ts +0 -3
  334. package/dist/modules/country/fragments/CountryFragment.d.ts.map +0 -1
  335. package/dist/modules/country/hooks/useCountries.d.ts +0 -22
  336. package/dist/modules/country/hooks/useCountries.d.ts.map +0 -1
  337. package/dist/modules/country.js +0 -108
  338. package/dist/modules/currency.js +0 -119
  339. package/dist/modules/delivery-provider.js +0 -269
  340. package/dist/modules/enrollment.js +0 -431
  341. package/dist/modules/event.js +0 -123
  342. package/dist/modules/filter.js +0 -497
  343. package/dist/modules/forms/components/Form.d.ts +0 -8
  344. package/dist/modules/forms/components/Form.d.ts.map +0 -1
  345. package/dist/modules/forms/hooks/useField.d.ts +0 -35
  346. package/dist/modules/forms/hooks/useField.d.ts.map +0 -1
  347. package/dist/modules/forms/hooks/useForm.d.ts +0 -44
  348. package/dist/modules/forms/hooks/useForm.d.ts.map +0 -1
  349. package/dist/modules/forms/hooks/useFormContext.d.ts +0 -3
  350. package/dist/modules/forms/hooks/useFormContext.d.ts.map +0 -1
  351. package/dist/modules/forms/lib/FormContext.d.ts +0 -13
  352. package/dist/modules/forms/lib/FormContext.d.ts.map +0 -1
  353. package/dist/modules/forms/lib/clean.d.ts +0 -3
  354. package/dist/modules/forms/lib/clean.d.ts.map +0 -1
  355. package/dist/modules/forms/lib/validators.d.ts +0 -20
  356. package/dist/modules/forms/lib/validators.d.ts.map +0 -1
  357. package/dist/modules/language/fragments/LanguageFragment.d.ts +0 -3
  358. package/dist/modules/language/fragments/LanguageFragment.d.ts.map +0 -1
  359. package/dist/modules/language/hooks/useLanguages.d.ts +0 -19
  360. package/dist/modules/language/hooks/useLanguages.d.ts.map +0 -1
  361. package/dist/modules/language.js +0 -106
  362. package/dist/modules/modal/components/AlertMessage.d.ts +0 -9
  363. package/dist/modules/modal/components/AlertMessage.d.ts.map +0 -1
  364. package/dist/modules/modal/components/DangerMessage.d.ts +0 -13
  365. package/dist/modules/modal/components/DangerMessage.d.ts.map +0 -1
  366. package/dist/modules/modal/components/ImportResultMessage.d.ts +0 -14
  367. package/dist/modules/modal/components/ImportResultMessage.d.ts.map +0 -1
  368. package/dist/modules/modal/components/Modal.d.ts +0 -10
  369. package/dist/modules/modal/components/Modal.d.ts.map +0 -1
  370. package/dist/modules/modal/components/ModalWrapper.d.ts +0 -6
  371. package/dist/modules/modal/components/ModalWrapper.d.ts.map +0 -1
  372. package/dist/modules/modal/hooks/useModal.d.ts +0 -7
  373. package/dist/modules/modal/hooks/useModal.d.ts.map +0 -1
  374. package/dist/modules/modal/utils/ModalContext.d.ts +0 -9
  375. package/dist/modules/modal/utils/ModalContext.d.ts.map +0 -1
  376. package/dist/modules/order/fragments/OrderDetailFragment.d.ts +0 -3
  377. package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +0 -1
  378. package/dist/modules/order/fragments/OrderFragment.d.ts +0 -3
  379. package/dist/modules/order/fragments/OrderFragment.d.ts.map +0 -1
  380. package/dist/modules/order/hooks/useOrders.d.ts +0 -46
  381. package/dist/modules/order/hooks/useOrders.d.ts.map +0 -1
  382. package/dist/modules/order.js +0 -569
  383. package/dist/modules/payment-providers.js +0 -206
  384. package/dist/modules/product/hooks/useProductsCount.d.ts +0 -8
  385. package/dist/modules/product/hooks/useProductsCount.d.ts.map +0 -1
  386. package/dist/modules/product-review.js +0 -270
  387. package/dist/modules/product.js +0 -6914
  388. package/dist/modules/quotation.js +0 -324
  389. package/dist/modules/token.js +0 -143
  390. package/dist/modules/warehousing-providers.js +0 -206
  391. package/dist/modules/work/fragments/WorkFragment.d.ts +0 -3
  392. package/dist/modules/work/fragments/WorkFragment.d.ts.map +0 -1
  393. package/dist/modules/work/hooks/useAddWork.d.ts +0 -6
  394. package/dist/modules/work/hooks/useAddWork.d.ts.map +0 -1
  395. package/dist/modules/work/hooks/useWork.d.ts +0 -32
  396. package/dist/modules/work/hooks/useWork.d.ts.map +0 -1
  397. package/dist/modules/work.js +0 -232
  398. package/dist/plugins.js +0 -13
  399. package/dist/providers.js +0 -9
  400. package/dist/sdk/hooks.d.ts +0 -12
  401. package/dist/sdk/hooks.d.ts.map +0 -1
  402. package/dist/sdk/modal.d.ts +0 -7
  403. package/dist/sdk/modal.d.ts.map +0 -1
  404. package/dist/sdk/plugins.d.ts +0 -78
  405. package/dist/sdk/plugins.d.ts.map +0 -1
  406. package/dist/sdk/providers.d.ts +0 -5
  407. package/dist/sdk/providers.d.ts.map +0 -1
  408. package/dist/sdk/shims/admin-ui-plugins.d.ts +0 -3
  409. package/dist/sdk/shims/admin-ui-plugins.d.ts.map +0 -1
  410. package/dist/sdk/shims/apollo-client-react.d.ts +0 -3
  411. package/dist/sdk/shims/apollo-client-react.d.ts.map +0 -1
  412. package/dist/sdk/shims/apollo-client.d.ts +0 -3
  413. package/dist/sdk/shims/apollo-client.d.ts.map +0 -1
  414. package/dist/sdk/shims/host.d.ts +0 -17
  415. package/dist/sdk/shims/host.d.ts.map +0 -1
  416. package/dist/sdk/shims/next-head.d.ts +0 -3
  417. package/dist/sdk/shims/next-head.d.ts.map +0 -1
  418. package/dist/sdk/shims/next-image.d.ts +0 -3
  419. package/dist/sdk/shims/next-image.d.ts.map +0 -1
  420. package/dist/sdk/shims/next-link.d.ts +0 -3
  421. package/dist/sdk/shims/next-link.d.ts.map +0 -1
  422. package/dist/sdk/shims/next-router.d.ts +0 -3
  423. package/dist/sdk/shims/next-router.d.ts.map +0 -1
  424. package/dist/sdk/shims/react-dom-client.d.ts +0 -3
  425. package/dist/sdk/shims/react-dom-client.d.ts.map +0 -1
  426. package/dist/sdk/shims/react-dom.d.ts +0 -3
  427. package/dist/sdk/shims/react-dom.d.ts.map +0 -1
  428. package/dist/sdk/shims/react-hook-form.d.ts +0 -3
  429. package/dist/sdk/shims/react-hook-form.d.ts.map +0 -1
  430. package/dist/sdk/shims/react-intl.d.ts +0 -3
  431. package/dist/sdk/shims/react-intl.d.ts.map +0 -1
  432. package/dist/sdk/shims/react-jsx-runtime.d.ts +0 -3
  433. package/dist/sdk/shims/react-jsx-runtime.d.ts.map +0 -1
  434. package/dist/sdk/shims/react-toastify.d.ts +0 -3
  435. package/dist/sdk/shims/react-toastify.d.ts.map +0 -1
  436. package/dist/sdk/shims/react.d.ts +0 -3
  437. package/dist/sdk/shims/react.d.ts.map +0 -1
  438. package/dist/sdk/theme.d.ts +0 -26
  439. package/dist/sdk/theme.d.ts.map +0 -1
  440. package/dist/shims/admin-ui-plugins.js +0 -9
  441. package/dist/shims/apollo-client-react.js +0 -25
  442. package/dist/shims/apollo-client.js +0 -55
  443. package/dist/shims/next-head.js +0 -9
  444. package/dist/shims/next-image.js +0 -9
  445. package/dist/shims/next-link.js +0 -9
  446. package/dist/shims/next-router.js +0 -13
  447. package/dist/shims/react-dom-client.js +0 -11
  448. package/dist/shims/react-dom.js +0 -22
  449. package/dist/shims/react-hook-form.js +0 -25
  450. package/dist/shims/react-intl.js +0 -37
  451. package/dist/shims/react-jsx-runtime.js +0 -11
  452. package/dist/shims/react-toastify.js +0 -16
  453. package/dist/shims/react.js +0 -52
  454. package/dist/theme.js +0 -34
  455. package/dist/ui.js +0 -19764
  456. package/out/manifest.json +0 -48
  457. /package/out/_next/static/{4ESrB8YpR2n44PFePtbgX → jOx5PlckLwWIJ5yrvePdU}/_clientMiddlewareManifest.js +0 -0
  458. /package/out/_next/static/{4ESrB8YpR2n44PFePtbgX → jOx5PlckLwWIJ5yrvePdU}/_ssgManifest.js +0 -0
@@ -1,694 +0,0 @@
1
- import { textColor, badgeButtonColors, borderColor, bgColor } from './chunk-ZUOVKRKC.js';
2
- import { FormContext_default, useField_default, validateRequiredTag, useFormContext_default } from './chunk-I64TXIE7.js';
3
- import { QuestionMarkCircleIcon_default } from './chunk-HERLM47Z.js';
4
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
- import { useRouter } from 'next/router';
6
- import * as React6 from 'react';
7
- import React6__default, { useState, useRef, useEffect, useCallback, useMemo } from 'react';
8
- import { useIntl } from 'react-intl';
9
- import { FormProvider, useFormContext } from 'react-hook-form';
10
-
11
- // ../node_modules/clsx/dist/clsx.mjs
12
- function r(e) {
13
- var t, f, n = "";
14
- if ("string" == typeof e || "number" == typeof e) n += e;
15
- else if ("object" == typeof e) if (Array.isArray(e)) {
16
- var o = e.length;
17
- for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
18
- } else for (f in e) e[f] && (n && (n += " "), n += f);
19
- return n;
20
- }
21
- function clsx() {
22
- for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
23
- return n;
24
- }
25
- var clsx_default = clsx;
26
- var Badge = ({
27
- text,
28
- className: classes = "",
29
- dotted = null,
30
- color = "green",
31
- square = null,
32
- onClick = null
33
- }) => {
34
- const normalizedColor = color?.trim();
35
- const isRainbow = normalizedColor === "rainbow";
36
- return /* @__PURE__ */ jsx(
37
- "span",
38
- {
39
- id: "badge",
40
- className: clsx_default(
41
- isRainbow ? "inline-flex items-center text-sm font-bold text-text-primary shadow-lg relative p-[2px] bg-gradient-to-r from-rose-500 via-emerald-500 to-sky-500" : `inline-flex items-center border ${borderColor(
42
- normalizedColor,
43
- 400
44
- )} px-2.5 py-0.5 text-sm font-medium ${bgColor(
45
- normalizedColor,
46
- 100
47
- )} ${textColor(normalizedColor, 800)}`,
48
- classes,
49
- {
50
- "rounded-full": !square,
51
- "rounded-md": square
52
- }
53
- ),
54
- children: isRainbow ? /* @__PURE__ */ jsxs(
55
- "span",
56
- {
57
- className: clsx_default(
58
- "inline-flex items-center bg-surface-raised px-2.5 py-0.5",
59
- {
60
- "rounded-full": !square,
61
- "rounded-md": square
62
- }
63
- ),
64
- children: [
65
- dotted && /* @__PURE__ */ jsx(
66
- "svg",
67
- {
68
- className: "text-text-primary -ml-1 mr-1.5 h-2 w-2",
69
- fill: "currentColor",
70
- viewBox: "0 0 8 8",
71
- children: /* @__PURE__ */ jsx("circle", { cx: "4", cy: "4", r: "3" })
72
- }
73
- ),
74
- text,
75
- onClick && /* @__PURE__ */ jsx(
76
- "button",
77
- {
78
- id: "badge-x-button",
79
- type: "button",
80
- onClick,
81
- className: "ml-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full text-text-primary hover:bg-surface-raised focus:outline-hidden focus:bg-surface-raised",
82
- children: /* @__PURE__ */ jsx(
83
- "svg",
84
- {
85
- className: "h-2 w-2",
86
- stroke: "currentColor",
87
- fill: "none",
88
- viewBox: "0 0 8 8",
89
- children: /* @__PURE__ */ jsx(
90
- "path",
91
- {
92
- strokeLinecap: "round",
93
- strokeWidth: "1.5",
94
- d: "M1 1l6 6m0-6L1 7"
95
- }
96
- )
97
- }
98
- )
99
- }
100
- )
101
- ]
102
- }
103
- ) : /* @__PURE__ */ jsxs(Fragment, { children: [
104
- dotted && /* @__PURE__ */ jsx(
105
- "svg",
106
- {
107
- className: `-ml-1 mr-1.5 h-2 w-2 ${textColor(normalizedColor, 400)}`,
108
- fill: "currentColor",
109
- viewBox: "0 0 8 8",
110
- children: /* @__PURE__ */ jsx("circle", { cx: "4", cy: "4", r: "3" })
111
- }
112
- ),
113
- text,
114
- onClick && /* @__PURE__ */ jsx(
115
- "button",
116
- {
117
- id: "badge-x-button",
118
- type: "button",
119
- onClick,
120
- className: `ml-0.5 inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full ${textColor(
121
- normalizedColor,
122
- 400
123
- )} ${badgeButtonColors(normalizedColor)} focus:outline-hidden focus:text-white`,
124
- children: /* @__PURE__ */ jsx(
125
- "svg",
126
- {
127
- className: "h-2 w-2",
128
- stroke: "currentColor",
129
- fill: "none",
130
- viewBox: "0 0 8 8",
131
- children: /* @__PURE__ */ jsx(
132
- "path",
133
- {
134
- strokeLinecap: "round",
135
- strokeWidth: "1.5",
136
- d: "M1 1l6 6m0-6L1 7"
137
- }
138
- )
139
- }
140
- )
141
- }
142
- )
143
- ] })
144
- }
145
- );
146
- };
147
- var Badge_default = Badge;
148
- var Tab = ({
149
- children,
150
- tabItems,
151
- defaultTab,
152
- updateRoute = true
153
- }) => {
154
- const router = useRouter();
155
- const { tab = defaultTab } = router?.query || {};
156
- const currentTab = Array.isArray(tab) ? tab[0] : tab;
157
- const { formatMessage } = useIntl();
158
- const onTabSelected = (selectedTab) => {
159
- if (updateRoute) {
160
- const { sort, ...queryWithoutSort } = router?.query || {};
161
- router.push(
162
- {
163
- query: { ...queryWithoutSort, tab: selectedTab }
164
- },
165
- void 0,
166
- {
167
- shallow: true
168
- }
169
- );
170
- }
171
- };
172
- return /* @__PURE__ */ jsxs("div", { className: "mt-10", children: [
173
- /* @__PURE__ */ jsxs("div", { className: "lg:hidden", children: [
174
- /* @__PURE__ */ jsx("label", { htmlFor: "selected-tab", className: "sr-only", children: formatMessage({
175
- id: "select_tab",
176
- defaultMessage: "Select a tab"
177
- }) }),
178
- /* @__PURE__ */ jsx(
179
- "select",
180
- {
181
- onChange: (e) => onTabSelected(e.target.value),
182
- id: "selected-tab",
183
- name: "selected-tab",
184
- className: "mt-1 block dark:bg-slate-800 dark:text-white w-full rounded-md border-border-default py-2 pl-3 pr-10 text-base capitalize focus:outline-none focus:ring-2 focus:ring-focus-ring focus:border-slate-800 dark:focus:border-slate-400 sm:text-sm",
185
- value: currentTab,
186
- children: tabItems.filter(Boolean).map((value) => /* @__PURE__ */ jsx("option", { value: value.id, className: "dark:text-white", children: value?.title || value?.id }, value.id))
187
- }
188
- )
189
- ] }),
190
- /* @__PURE__ */ jsx("div", { className: "mt-5 hidden lg:block", children: /* @__PURE__ */ jsx("div", { className: "", children: /* @__PURE__ */ jsx("nav", { className: "flex flex-wrap gap-3", children: tabItems.filter(Boolean).map((option) => /* @__PURE__ */ jsx(
191
- "a",
192
- {
193
- id: option.id,
194
- tabIndex: 0,
195
- onClick: () => onTabSelected(option.id),
196
- onKeyDown: (e) => {
197
- if (e.key === "Enter" || e.key === " ") {
198
- e.preventDefault();
199
- onTabSelected(option.id);
200
- }
201
- },
202
- className: clsx_default(
203
- {
204
- "cursor-pointer rounded-lg border border-border-default bg-white text-text-primary dark:bg-slate-900 shadow-sm dark:hover:border-slate-500 hover:border-slate-400 focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 dark:focus:ring-offset-slate-900": currentTab === option.id
205
- },
206
- "cursor-pointer relative whitespace-nowrap border border-border-subtle py-2 px-1 pr-3 pl-2 text-sm dark:text-slate-400 font-medium hover:bg-white dark:hover:bg-slate-800 hover:border-slate-300 dark:hover:border-slate-500 rounded-lg focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 dark:focus:ring-offset-slate-900"
207
- ),
208
- children: /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-1", children: [
209
- /* @__PURE__ */ jsx("div", { children: option.Icon }),
210
- /* @__PURE__ */ jsx("div", { className: "capitalize", children: option?.title || option?.id }),
211
- option?.length ? /* @__PURE__ */ jsx("span", { className: "absolute top-0 right-0 inline-flex translate-x-1/2 -translate-y-1/2 transform items-center justify-center rounded-full bg-slate-400 px-1 py-0.5 text-sm leading-none text-slate-900", children: option?.length }) : null
212
- ] })
213
- },
214
- option.id
215
- )) }) }) }),
216
- /* @__PURE__ */ jsx("div", { className: "mt-5", children: React6__default.cloneElement(children, { selectedView: currentTab }) })
217
- ] });
218
- };
219
- var Tab_default = Tab;
220
- var normalizeTagValue = (tags) => {
221
- if (tags) {
222
- if (Array.isArray(tags)) return tags;
223
- return tags.toString()?.split(",")?.map((str) => str.trim());
224
- }
225
- return [];
226
- };
227
- var TagInput = ({
228
- tagList: tags,
229
- onChange,
230
- disabled = false,
231
- name = "tag-input",
232
- id = "tag-input",
233
- placeholder = "",
234
- selectOptions = [],
235
- className = "",
236
- buttonText = "",
237
- showTagsInline = true
238
- }) => {
239
- const { formatMessage } = useIntl();
240
- const [tagList, setTagList] = useState(normalizeTagValue(tags));
241
- const [inputValue, setInputValue] = useState("");
242
- const [isOpen, setIsOpen] = useState(false);
243
- const wrapperRef = useRef(null);
244
- useEffect(() => {
245
- setTagList(normalizeTagValue(tags));
246
- }, [tags]);
247
- useEffect(() => {
248
- const handleClickOutside = (e) => {
249
- if (wrapperRef.current && !wrapperRef.current.contains(e.target)) {
250
- setIsOpen(false);
251
- }
252
- };
253
- document.addEventListener("mousedown", handleClickOutside);
254
- return () => document.removeEventListener("mousedown", handleClickOutside);
255
- }, []);
256
- const onRemoveTag = (tag) => {
257
- const index = tagList.indexOf(tag);
258
- if (index !== -1) {
259
- const newTags = [...tagList];
260
- newTags.splice(index, 1);
261
- onChange(newTags);
262
- setTagList(newTags);
263
- }
264
- };
265
- const addTag = useCallback(
266
- (tag) => {
267
- const trimmedTag = tag.trim();
268
- const existingOption = selectOptions.find(
269
- (option) => option.value.toLowerCase() === trimmedTag.toLowerCase()
270
- );
271
- const resolvedTag = existingOption?.value || trimmedTag;
272
- const isAlreadySelected = tagList.some(
273
- (selectedTag) => selectedTag.toLowerCase() === resolvedTag.toLowerCase()
274
- );
275
- if (!isAlreadySelected && resolvedTag) {
276
- const newTags = [...tagList, resolvedTag];
277
- setTagList(newTags);
278
- onChange(newTags);
279
- setInputValue("");
280
- setIsOpen(false);
281
- }
282
- },
283
- [tagList, onChange, selectOptions]
284
- );
285
- const filteredOptions = useMemo(() => {
286
- const available = selectOptions.filter(
287
- (option) => !tagList.some(
288
- (tag) => tag.toLowerCase() === option.value.toLowerCase()
289
- )
290
- );
291
- if (!inputValue) return available;
292
- return available.filter(
293
- (opt) => opt.label.toLowerCase().includes(inputValue.toLowerCase())
294
- );
295
- }, [selectOptions, tagList, inputValue]);
296
- const normalizedInput = inputValue.trim().toLowerCase();
297
- const showCreateOption = Boolean(
298
- normalizedInput && !tagList.some((tag) => tag.toLowerCase() === normalizedInput) && !selectOptions.some(
299
- (option) => option.value.toLowerCase() === normalizedInput
300
- )
301
- );
302
- const handleKeyDown = (e) => {
303
- if (e.key === "Enter" && inputValue.trim()) {
304
- e.preventDefault();
305
- addTag(filteredOptions[0]?.value || inputValue.trim());
306
- }
307
- };
308
- const TagInputComponent = /* @__PURE__ */ jsxs("div", { className: "relative", ref: wrapperRef, children: [
309
- /* @__PURE__ */ jsx(
310
- "input",
311
- {
312
- id,
313
- name,
314
- type: "text",
315
- role: "combobox",
316
- "aria-expanded": isOpen,
317
- "aria-autocomplete": "list",
318
- disabled,
319
- className: clsx_default(
320
- "w-full rounded-md border border-border-default bg-surface-input py-2.5 pl-4 pr-4 text-sm text-text-primary placeholder:text-text-muted shadow-xs focus:outline-hidden focus:ring-2 focus:ring-focus-ring",
321
- className
322
- ),
323
- placeholder,
324
- value: inputValue,
325
- onChange: (e) => {
326
- setInputValue(e.target.value);
327
- setIsOpen(true);
328
- },
329
- onFocus: () => setIsOpen(true),
330
- onKeyDown: handleKeyDown
331
- }
332
- ),
333
- isOpen && (showCreateOption || filteredOptions.length > 0) && /* @__PURE__ */ jsxs(
334
- "ul",
335
- {
336
- role: "listbox",
337
- className: "absolute z-9999999 mt-1 max-h-60 w-full overflow-auto rounded-md bg-surface border border-border-subtle py-1 text-sm shadow-lg",
338
- children: [
339
- filteredOptions.map((opt) => /* @__PURE__ */ jsx(
340
- "li",
341
- {
342
- role: "option",
343
- "aria-selected": false,
344
- className: "cursor-pointer select-none py-2 px-4 text-text-primary hover:bg-surface-raised",
345
- onMouseDown: (e) => {
346
- e.preventDefault();
347
- addTag(opt.value);
348
- },
349
- children: opt.label
350
- },
351
- opt.value
352
- )),
353
- showCreateOption && /* @__PURE__ */ jsx(
354
- "li",
355
- {
356
- role: "option",
357
- "aria-selected": false,
358
- className: "cursor-pointer select-none border-t border-border-subtle py-2 px-4 text-text-primary hover:bg-surface-raised",
359
- onMouseDown: (e) => {
360
- e.preventDefault();
361
- addTag(inputValue.trim());
362
- },
363
- children: buttonText || formatMessage(
364
- {
365
- id: "add_new_tag",
366
- defaultMessage: 'Add "{inputValue}"'
367
- },
368
- { inputValue: inputValue.trim() }
369
- )
370
- }
371
- )
372
- ]
373
- }
374
- )
375
- ] });
376
- if (!showTagsInline) {
377
- return TagInputComponent;
378
- }
379
- return /* @__PURE__ */ jsxs(Fragment, { children: [
380
- TagInputComponent,
381
- /* @__PURE__ */ jsx(
382
- "div",
383
- {
384
- className: clsx_default(
385
- "ml-4 flex items-center flex-wrap gap-5",
386
- tagList.length > 0 && "mt-1"
387
- ),
388
- children: tagList?.map((tag) => /* @__PURE__ */ jsx(
389
- Badge_default,
390
- {
391
- text: tag,
392
- color: "slate",
393
- onClick: () => onRemoveTag(tag)
394
- },
395
- tag
396
- ))
397
- }
398
- )
399
- ] });
400
- };
401
- var TagInput_default = TagInput;
402
- var Form = ({ form, children, className = "", ...props }) => {
403
- return /* @__PURE__ */ jsx(FormContext_default.Provider, { value: form, children: /* @__PURE__ */ jsx(FormProvider, { ...form.rhf, children: /* @__PURE__ */ jsx(
404
- "form",
405
- {
406
- onReset: () => form.api.handleReset(),
407
- onSubmit: form.api.handleSubmit,
408
- method: "POST",
409
- className,
410
- ...props,
411
- children
412
- }
413
- ) }) });
414
- };
415
- var Form_default = Form;
416
- var FieldWrapper = ({
417
- children,
418
- className,
419
- error,
420
- disabled,
421
- required,
422
- name,
423
- label,
424
- hideLabel,
425
- labelClassName
426
- }) => {
427
- return /* @__PURE__ */ jsxs(
428
- "div",
429
- {
430
- className: clsx_default(
431
- "container",
432
- {
433
- "is-invalid": !!error,
434
- disabled,
435
- required
436
- },
437
- className
438
- ),
439
- children: [
440
- /* @__PURE__ */ jsx(
441
- "label",
442
- {
443
- "aria-label": label,
444
- htmlFor: name,
445
- className: clsx_default(
446
- "mb-2 block text-left text-sm font-light text-text-secondary",
447
- {
448
- "mt-1 rounded-sm border border-rose-100 dark:border-rose-800 bg-rose-50 dark:bg-rose-900/20 p-2 pl-4 text-rose-700 dark:text-rose-400": !!error,
449
- "sr-only": hideLabel
450
- },
451
- labelClassName
452
- ),
453
- children: error || label
454
- }
455
- ),
456
- children
457
- ]
458
- }
459
- );
460
- };
461
- var FieldWrapper_default = FieldWrapper;
462
- var TagInputField = ({
463
- buttonText = "",
464
- validators = [],
465
- selectOptions = [],
466
- ...props
467
- }) => {
468
- const field = useField_default({
469
- validators: [...validators, validateRequiredTag(props?.required)],
470
- label: "Tags",
471
- ...props
472
- });
473
- return /* @__PURE__ */ jsx(FieldWrapper_default, { ...field, children: /* @__PURE__ */ jsx(
474
- TagInput_default,
475
- {
476
- disabled: field.disabled,
477
- id: field.id,
478
- name: field.name,
479
- className: clsx_default({
480
- "border-rose-300": !!field.error
481
- }),
482
- onChange: (value) => field.setValue(value, true),
483
- placeholder: field.placeholder,
484
- tagList: field.value,
485
- buttonText,
486
- selectOptions
487
- }
488
- ) });
489
- };
490
- var TagInputField_default = TagInputField;
491
- var SubmitButton = ({
492
- label,
493
- disabled: disabledProp = false,
494
- className = "",
495
- hidden = false,
496
- ...props
497
- }) => {
498
- const { formState } = useFormContext();
499
- const { ...restProps } = props;
500
- const hasError = Object.keys(formState.errors).length > 0 && Object.values(formState.errors).some((err) => !!err);
501
- const { disabled: contextDisabled } = useFormContext_default();
502
- const disabled = disabledProp || contextDisabled || formState.isSubmitting || hasError;
503
- const isSubmitting = formState.isSubmitting && !hasError;
504
- const hasErrorOrDisabled = (disabledProp || contextDisabled || hasError) && !formState.isSubmitting;
505
- return /* @__PURE__ */ jsx(
506
- "input",
507
- {
508
- className: clsx_default(
509
- "inline-flex cursor-pointer justify-center rounded-sm border border-slate-300 px-4 py-2 text-center text-sm font-medium leading-5 shadow-sm hover:shadow-md focus:ring-focus-ring",
510
- className,
511
- {
512
- "bg-rose-50 dark:bg-slate-800 dark:text-rose-300 cursor-not-allowed border-rose-300 dark:border-rose-600 text-rose-900": hasErrorOrDisabled,
513
- "bg-slate-600 dark:bg-slate-700 text-white cursor-not-allowed border-slate-400 dark:border-slate-600": isSubmitting,
514
- "bg-accent text-text-on-accent hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-offset-2 border-transparent": !disabled,
515
- hidden
516
- }
517
- ),
518
- "aria-label": label,
519
- type: "submit",
520
- value: label,
521
- disabled,
522
- ...restProps
523
- }
524
- );
525
- };
526
- var SubmitButton_default = SubmitButton;
527
- var HelpText = ({
528
- messageKey,
529
- defaultMessage,
530
- values,
531
- className = "",
532
- showIcon = true
533
- }) => {
534
- const { formatMessage } = useIntl();
535
- const helpText = formatMessage(
536
- {
537
- id: messageKey,
538
- defaultMessage
539
- },
540
- values
541
- );
542
- if (!helpText) return null;
543
- return /* @__PURE__ */ jsxs(
544
- "div",
545
- {
546
- className: `flex items-start space-x-1 text-sm text-text-secondary ${className}`,
547
- children: [
548
- showIcon && /* @__PURE__ */ jsx(QuestionMarkCircleIcon_default, { className: "h-4 w-4 mt-0.5 flex-shrink-0" }),
549
- /* @__PURE__ */ jsx("span", { children: helpText })
550
- ]
551
- }
552
- );
553
- };
554
- var HelpText_default = HelpText;
555
- function CheckIcon({
556
- title,
557
- titleId,
558
- ...props
559
- }, svgRef) {
560
- return /* @__PURE__ */ React6.createElement("svg", Object.assign({
561
- xmlns: "http://www.w3.org/2000/svg",
562
- viewBox: "0 0 20 20",
563
- fill: "currentColor",
564
- "aria-hidden": "true",
565
- "data-slot": "icon",
566
- ref: svgRef,
567
- "aria-labelledby": titleId
568
- }, props), title ? /* @__PURE__ */ React6.createElement("title", {
569
- id: titleId
570
- }, title) : null, /* @__PURE__ */ React6.createElement("path", {
571
- fillRule: "evenodd",
572
- d: "M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z",
573
- clipRule: "evenodd"
574
- }));
575
- }
576
- var ForwardRef = /* @__PURE__ */ React6.forwardRef(CheckIcon);
577
- var CheckIcon_default = ForwardRef;
578
- function ChevronDownIcon({
579
- title,
580
- titleId,
581
- ...props
582
- }, svgRef) {
583
- return /* @__PURE__ */ React6.createElement("svg", Object.assign({
584
- xmlns: "http://www.w3.org/2000/svg",
585
- viewBox: "0 0 20 20",
586
- fill: "currentColor",
587
- "aria-hidden": "true",
588
- "data-slot": "icon",
589
- ref: svgRef,
590
- "aria-labelledby": titleId
591
- }, props), title ? /* @__PURE__ */ React6.createElement("title", {
592
- id: titleId
593
- }, title) : null, /* @__PURE__ */ React6.createElement("path", {
594
- fillRule: "evenodd",
595
- d: "M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",
596
- clipRule: "evenodd"
597
- }));
598
- }
599
- var ForwardRef2 = /* @__PURE__ */ React6.forwardRef(ChevronDownIcon);
600
- var ChevronDownIcon_default = ForwardRef2;
601
- function ChevronUpDownIcon({
602
- title,
603
- titleId,
604
- ...props
605
- }, svgRef) {
606
- return /* @__PURE__ */ React6.createElement("svg", Object.assign({
607
- xmlns: "http://www.w3.org/2000/svg",
608
- viewBox: "0 0 20 20",
609
- fill: "currentColor",
610
- "aria-hidden": "true",
611
- "data-slot": "icon",
612
- ref: svgRef,
613
- "aria-labelledby": titleId
614
- }, props), title ? /* @__PURE__ */ React6.createElement("title", {
615
- id: titleId
616
- }, title) : null, /* @__PURE__ */ React6.createElement("path", {
617
- fillRule: "evenodd",
618
- d: "M10.53 3.47a.75.75 0 0 0-1.06 0L6.22 6.72a.75.75 0 0 0 1.06 1.06L10 5.06l2.72 2.72a.75.75 0 1 0 1.06-1.06l-3.25-3.25Zm-4.31 9.81 3.25 3.25a.75.75 0 0 0 1.06 0l3.25-3.25a.75.75 0 1 0-1.06-1.06L10 14.94l-2.72-2.72a.75.75 0 0 0-1.06 1.06Z",
619
- clipRule: "evenodd"
620
- }));
621
- }
622
- var ForwardRef3 = /* @__PURE__ */ React6.forwardRef(ChevronUpDownIcon);
623
- var ChevronUpDownIcon_default = ForwardRef3;
624
- function ChevronUpIcon({
625
- title,
626
- titleId,
627
- ...props
628
- }, svgRef) {
629
- return /* @__PURE__ */ React6.createElement("svg", Object.assign({
630
- xmlns: "http://www.w3.org/2000/svg",
631
- viewBox: "0 0 20 20",
632
- fill: "currentColor",
633
- "aria-hidden": "true",
634
- "data-slot": "icon",
635
- ref: svgRef,
636
- "aria-labelledby": titleId
637
- }, props), title ? /* @__PURE__ */ React6.createElement("title", {
638
- id: titleId
639
- }, title) : null, /* @__PURE__ */ React6.createElement("path", {
640
- fillRule: "evenodd",
641
- d: "M9.47 6.47a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 1 1-1.06 1.06L10 8.06l-3.72 3.72a.75.75 0 0 1-1.06-1.06l4.25-4.25Z",
642
- clipRule: "evenodd"
643
- }));
644
- }
645
- var ForwardRef4 = /* @__PURE__ */ React6.forwardRef(ChevronUpIcon);
646
- var ChevronUpIcon_default = ForwardRef4;
647
- function PencilSquareIcon({
648
- title,
649
- titleId,
650
- ...props
651
- }, svgRef) {
652
- return /* @__PURE__ */ React6.createElement("svg", Object.assign({
653
- xmlns: "http://www.w3.org/2000/svg",
654
- viewBox: "0 0 20 20",
655
- fill: "currentColor",
656
- "aria-hidden": "true",
657
- "data-slot": "icon",
658
- ref: svgRef,
659
- "aria-labelledby": titleId
660
- }, props), title ? /* @__PURE__ */ React6.createElement("title", {
661
- id: titleId
662
- }, title) : null, /* @__PURE__ */ React6.createElement("path", {
663
- d: "m5.433 13.917 1.262-3.155A4 4 0 0 1 7.58 9.42l6.92-6.918a2.121 2.121 0 0 1 3 3l-6.92 6.918c-.383.383-.84.685-1.343.886l-3.154 1.262a.5.5 0 0 1-.65-.65Z"
664
- }), /* @__PURE__ */ React6.createElement("path", {
665
- d: "M3.5 5.75c0-.69.56-1.25 1.25-1.25H10A.75.75 0 0 0 10 3H4.75A2.75 2.75 0 0 0 2 5.75v9.5A2.75 2.75 0 0 0 4.75 18h9.5A2.75 2.75 0 0 0 17 15.25V10a.75.75 0 0 0-1.5 0v5.25c0 .69-.56 1.25-1.25 1.25h-9.5c-.69 0-1.25-.56-1.25-1.25v-9.5Z"
666
- }));
667
- }
668
- var ForwardRef5 = /* @__PURE__ */ React6.forwardRef(PencilSquareIcon);
669
- var PencilSquareIcon_default = ForwardRef5;
670
- function TrashIcon({
671
- title,
672
- titleId,
673
- ...props
674
- }, svgRef) {
675
- return /* @__PURE__ */ React6.createElement("svg", Object.assign({
676
- xmlns: "http://www.w3.org/2000/svg",
677
- viewBox: "0 0 20 20",
678
- fill: "currentColor",
679
- "aria-hidden": "true",
680
- "data-slot": "icon",
681
- ref: svgRef,
682
- "aria-labelledby": titleId
683
- }, props), title ? /* @__PURE__ */ React6.createElement("title", {
684
- id: titleId
685
- }, title) : null, /* @__PURE__ */ React6.createElement("path", {
686
- fillRule: "evenodd",
687
- d: "M8.75 1A2.75 2.75 0 0 0 6 3.75v.443c-.795.077-1.584.176-2.365.298a.75.75 0 1 0 .23 1.482l.149-.022.841 10.518A2.75 2.75 0 0 0 7.596 19h4.807a2.75 2.75 0 0 0 2.742-2.53l.841-10.52.149.023a.75.75 0 0 0 .23-1.482A41.03 41.03 0 0 0 14 4.193V3.75A2.75 2.75 0 0 0 11.25 1h-2.5ZM10 4c.84 0 1.673.025 2.5.075V3.75c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v.325C8.327 4.025 9.16 4 10 4ZM8.58 7.72a.75.75 0 0 0-1.5.06l.3 7.5a.75.75 0 1 0 1.5-.06l-.3-7.5Zm4.34.06a.75.75 0 1 0-1.5-.06l-.3 7.5a.75.75 0 1 0 1.5.06l.3-7.5Z",
688
- clipRule: "evenodd"
689
- }));
690
- }
691
- var ForwardRef6 = /* @__PURE__ */ React6.forwardRef(TrashIcon);
692
- var TrashIcon_default = ForwardRef6;
693
-
694
- export { Badge_default, CheckIcon_default, ChevronDownIcon_default, ChevronUpDownIcon_default, ChevronUpIcon_default, FieldWrapper_default, Form_default, HelpText_default, PencilSquareIcon_default, SubmitButton_default, Tab_default, TagInputField_default, TagInput_default, TrashIcon_default, clsx, clsx_default };