@sgftech/medusa-plugin-product-variant-licenses 0.0.1

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 (954) hide show
  1. package/.cache/admin/index.html +12 -0
  2. package/.cache/admin/public/locales/ar/translation.json +1919 -0
  3. package/.cache/admin/public/locales/bg/translation.json +2011 -0
  4. package/.cache/admin/public/locales/bs/translation.json +2011 -0
  5. package/.cache/admin/public/locales/cs/translation.json +1942 -0
  6. package/.cache/admin/public/locales/de/translation.json +1924 -0
  7. package/.cache/admin/public/locales/en/translation.json +2011 -0
  8. package/.cache/admin/public/locales/es/translation.json +1924 -0
  9. package/.cache/admin/public/locales/fr/translation.json +1924 -0
  10. package/.cache/admin/public/locales/hi/translation.json +2011 -0
  11. package/.cache/admin/public/locales/hr/translation.json +2011 -0
  12. package/.cache/admin/public/locales/it/translation.json +1922 -0
  13. package/.cache/admin/public/locales/ja/translation.json +2006 -0
  14. package/.cache/admin/public/locales/ko/translation.json +2011 -0
  15. package/.cache/admin/public/locales/pl/translation.json +1919 -0
  16. package/.cache/admin/public/locales/pt/translation.json +1925 -0
  17. package/.cache/admin/public/locales/ru/translation.json +1919 -0
  18. package/.cache/admin/public/locales/sl/translation.json +2010 -0
  19. package/.cache/admin/public/locales/tm/translation.json +1924 -0
  20. package/.cache/admin/public/locales/uk/translation.json +1919 -0
  21. package/.cache/admin/public/locales/vi/translation.json +2011 -0
  22. package/.cache/admin/public/locales/zh/translation.json +2011 -0
  23. package/.cache/admin/public/logo.svg +10 -0
  24. package/.cache/admin/src/App.tsx +61 -0
  25. package/.cache/admin/src/assets/styles/emoji-picker.css +109 -0
  26. package/.cache/admin/src/assets/styles/global.css +465 -0
  27. package/.cache/admin/src/assets/svg/carrot.svg +5 -0
  28. package/.cache/admin/src/assets/svg/controller.svg +7 -0
  29. package/.cache/admin/src/assets/svg/flag.svg +4 -0
  30. package/.cache/admin/src/assets/svg/happy.svg +6 -0
  31. package/.cache/admin/src/assets/svg/heart.svg +3 -0
  32. package/.cache/admin/src/assets/svg/lightbulb.svg +5 -0
  33. package/.cache/admin/src/assets/svg/plane.svg +3 -0
  34. package/.cache/admin/src/assets/svg/search.svg +3 -0
  35. package/.cache/admin/src/assets/svg/sprout.svg +6 -0
  36. package/.cache/admin/src/assets/svg/star.svg +3 -0
  37. package/.cache/admin/src/components/atoms/avatar/index.tsx +62 -0
  38. package/.cache/admin/src/components/atoms/back-button/index.tsx +32 -0
  39. package/.cache/admin/src/components/atoms/checkbox/index.tsx +32 -0
  40. package/.cache/admin/src/components/atoms/copy-to-clipboard/index.tsx +59 -0
  41. package/.cache/admin/src/components/atoms/date-picker/custom-header.tsx +44 -0
  42. package/.cache/admin/src/components/atoms/date-picker/date-picker.tsx +155 -0
  43. package/.cache/admin/src/components/atoms/date-picker/time-picker.tsx +103 -0
  44. package/.cache/admin/src/components/atoms/date-picker/types.tsx +6 -0
  45. package/.cache/admin/src/components/atoms/date-picker/utils.ts +25 -0
  46. package/.cache/admin/src/components/atoms/fade-wrapper/index.tsx +47 -0
  47. package/.cache/admin/src/components/atoms/file-upload-field/index.tsx +105 -0
  48. package/.cache/admin/src/components/atoms/includes-tax-tooltip/index.tsx +25 -0
  49. package/.cache/admin/src/components/atoms/input-error/index.tsx +72 -0
  50. package/.cache/admin/src/components/atoms/loading-container/index.tsx +32 -0
  51. package/.cache/admin/src/components/atoms/notification/index.tsx +62 -0
  52. package/.cache/admin/src/components/atoms/number-scroller/index.tsx +51 -0
  53. package/.cache/admin/src/components/atoms/os-shortcut/index.tsx +48 -0
  54. package/.cache/admin/src/components/atoms/page-description/index.tsx +20 -0
  55. package/.cache/admin/src/components/atoms/save-notification/error-state.tsx +49 -0
  56. package/.cache/admin/src/components/atoms/save-notification/index.tsx +94 -0
  57. package/.cache/admin/src/components/atoms/save-notification/saving-state.tsx +30 -0
  58. package/.cache/admin/src/components/atoms/save-notification/success-state.tsx +49 -0
  59. package/.cache/admin/src/components/atoms/settings-card/index.tsx +58 -0
  60. package/.cache/admin/src/components/atoms/skeleton/index.tsx +25 -0
  61. package/.cache/admin/src/components/atoms/spacer/index.tsx +9 -0
  62. package/.cache/admin/src/components/atoms/spinner.tsx +35 -0
  63. package/.cache/admin/src/components/atoms/switch/index.tsx +30 -0
  64. package/.cache/admin/src/components/atoms/text-input/index.tsx +19 -0
  65. package/.cache/admin/src/components/atoms/thumbnail/index.ts +1 -0
  66. package/.cache/admin/src/components/atoms/thumbnail/thumbnail.tsx +31 -0
  67. package/.cache/admin/src/components/atoms/toaster-container/index.tsx +33 -0
  68. package/.cache/admin/src/components/atoms/tooltip/index.tsx +61 -0
  69. package/.cache/admin/src/components/atoms/two-step-delete/index.tsx +110 -0
  70. package/.cache/admin/src/components/declarative-toaster/index.tsx +23 -0
  71. package/.cache/admin/src/components/extensions/route-container/index.tsx +80 -0
  72. package/.cache/admin/src/components/extensions/route-container/route-error-element.tsx +75 -0
  73. package/.cache/admin/src/components/extensions/route-container/use-route-container-props.tsx +8 -0
  74. package/.cache/admin/src/components/extensions/setting-container/index.tsx +14 -0
  75. package/.cache/admin/src/components/extensions/setting-container/setting-error-element.tsx +77 -0
  76. package/.cache/admin/src/components/extensions/setting-container/use-setting-container-props.tsx +7 -0
  77. package/.cache/admin/src/components/extensions/widget-container/index.tsx +32 -0
  78. package/.cache/admin/src/components/extensions/widget-container/types.ts +77 -0
  79. package/.cache/admin/src/components/extensions/widget-container/use-widget-container-props.tsx +31 -0
  80. package/.cache/admin/src/components/extensions/widget-container/widget-error-boundary.tsx +136 -0
  81. package/.cache/admin/src/components/forms/customer-group/customer-group-general-form/index.tsx +34 -0
  82. package/.cache/admin/src/components/forms/discount/discount-conditions-form/index.tsx +0 -0
  83. package/.cache/admin/src/components/forms/discount/discount-configuration-form/index.tsx +159 -0
  84. package/.cache/admin/src/components/forms/discount/discount-general-form/index.tsx +192 -0
  85. package/.cache/admin/src/components/forms/general/address-contact-form/index.tsx +87 -0
  86. package/.cache/admin/src/components/forms/general/address-location-form/index.tsx +129 -0
  87. package/.cache/admin/src/components/forms/general/metadata-form/index.tsx +371 -0
  88. package/.cache/admin/src/components/forms/general/prices-form/price-form-input.tsx +92 -0
  89. package/.cache/admin/src/components/forms/gift-card/denomination-form/index.tsx +183 -0
  90. package/.cache/admin/src/components/forms/gift-card/gift-card-balance-form/index.tsx +67 -0
  91. package/.cache/admin/src/components/forms/gift-card/gift-card-ends-at-form/index.tsx +57 -0
  92. package/.cache/admin/src/components/forms/gift-card/gift-card-receiver-form/index.tsx +43 -0
  93. package/.cache/admin/src/components/forms/gift-card/gift-card-region-form/index.tsx +78 -0
  94. package/.cache/admin/src/components/forms/product/customs-form/index.tsx +75 -0
  95. package/.cache/admin/src/components/forms/product/dimensions-form/index.tsx +74 -0
  96. package/.cache/admin/src/components/forms/product/discountable-form/index.tsx +36 -0
  97. package/.cache/admin/src/components/forms/product/general-form/index.tsx +109 -0
  98. package/.cache/admin/src/components/forms/product/media-form/index.tsx +233 -0
  99. package/.cache/admin/src/components/forms/product/organize-form/index.tsx +131 -0
  100. package/.cache/admin/src/components/forms/product/organize-form/use-organize-data.tsx +63 -0
  101. package/.cache/admin/src/components/forms/product/sales-channels-modal/add-screen.tsx +132 -0
  102. package/.cache/admin/src/components/forms/product/sales-channels-modal/available-screen.tsx +89 -0
  103. package/.cache/admin/src/components/forms/product/sales-channels-modal/index.tsx +55 -0
  104. package/.cache/admin/src/components/forms/product/sales-channels-modal/table.tsx +227 -0
  105. package/.cache/admin/src/components/forms/product/sales-channels-modal/use-sales-channels-modal.tsx +23 -0
  106. package/.cache/admin/src/components/forms/product/thumbnail-form/index.tsx +113 -0
  107. package/.cache/admin/src/components/forms/product/variant-form/create-flow-variant-form/index.tsx +105 -0
  108. package/.cache/admin/src/components/forms/product/variant-form/edit-flow-variant-form/index.tsx +137 -0
  109. package/.cache/admin/src/components/forms/product/variant-form/variant-general-form/index.tsx +50 -0
  110. package/.cache/admin/src/components/forms/product/variant-form/variant-select-options-form/hooks.tsx +74 -0
  111. package/.cache/admin/src/components/forms/product/variant-form/variant-select-options-form/index.tsx +77 -0
  112. package/.cache/admin/src/components/forms/product/variant-form/variant-stock-form/index.tsx +241 -0
  113. package/.cache/admin/src/components/forms/product/variant-inventory-form/edit-flow-variant-form/index.tsx +44 -0
  114. package/.cache/admin/src/components/forms/product/variant-inventory-form/variant-stock-form/index.tsx +429 -0
  115. package/.cache/admin/src/components/fundamentals/badge/index.tsx +46 -0
  116. package/.cache/admin/src/components/fundamentals/button/index.tsx +79 -0
  117. package/.cache/admin/src/components/fundamentals/details-icon/contact.svg +7 -0
  118. package/.cache/admin/src/components/fundamentals/details-icon/index.tsx +57 -0
  119. package/.cache/admin/src/components/fundamentals/feature-toggle.tsx +21 -0
  120. package/.cache/admin/src/components/fundamentals/icon-badge/index.tsx +36 -0
  121. package/.cache/admin/src/components/fundamentals/icons/adjustments-icon.tsx +29 -0
  122. package/.cache/admin/src/components/fundamentals/icons/alert-icon/index.tsx +43 -0
  123. package/.cache/admin/src/components/fundamentals/icons/arrow-down-icon.tsx +36 -0
  124. package/.cache/admin/src/components/fundamentals/icons/arrow-left-icon/index.tsx +35 -0
  125. package/.cache/admin/src/components/fundamentals/icons/arrow-right-icon/index.tsx +36 -0
  126. package/.cache/admin/src/components/fundamentals/icons/arrow-top-right-icon/index.tsx +29 -0
  127. package/.cache/admin/src/components/fundamentals/icons/arrow-up-icon.tsx +36 -0
  128. package/.cache/admin/src/components/fundamentals/icons/arrow-uturn-left/index.tsx +29 -0
  129. package/.cache/admin/src/components/fundamentals/icons/back-icon/index.tsx +36 -0
  130. package/.cache/admin/src/components/fundamentals/icons/backspace-icon/index.tsx +42 -0
  131. package/.cache/admin/src/components/fundamentals/icons/bell-icon/index.tsx +36 -0
  132. package/.cache/admin/src/components/fundamentals/icons/bell-noti-icon/index.tsx +41 -0
  133. package/.cache/admin/src/components/fundamentals/icons/bell-off-icon/index.tsx +57 -0
  134. package/.cache/admin/src/components/fundamentals/icons/building-tax-icon.tsx +67 -0
  135. package/.cache/admin/src/components/fundamentals/icons/buildings-icon/index.tsx +64 -0
  136. package/.cache/admin/src/components/fundamentals/icons/calendar-icon.tsx +54 -0
  137. package/.cache/admin/src/components/fundamentals/icons/cancel-icon/index.tsx +36 -0
  138. package/.cache/admin/src/components/fundamentals/icons/cart-icon/index.tsx +49 -0
  139. package/.cache/admin/src/components/fundamentals/icons/cash-icon/index.tsx +99 -0
  140. package/.cache/admin/src/components/fundamentals/icons/channels-icon.tsx +65 -0
  141. package/.cache/admin/src/components/fundamentals/icons/check-circle-fill-icon/index.tsx +28 -0
  142. package/.cache/admin/src/components/fundamentals/icons/check-circle-icon/index.tsx +36 -0
  143. package/.cache/admin/src/components/fundamentals/icons/check-icon.tsx +29 -0
  144. package/.cache/admin/src/components/fundamentals/icons/chevron-down.tsx +29 -0
  145. package/.cache/admin/src/components/fundamentals/icons/chevron-left-icon/index.tsx +29 -0
  146. package/.cache/admin/src/components/fundamentals/icons/chevron-right-icon/index.tsx +29 -0
  147. package/.cache/admin/src/components/fundamentals/icons/chevron-up.tsx +29 -0
  148. package/.cache/admin/src/components/fundamentals/icons/circle-quarter-solid/index.tsx +24 -0
  149. package/.cache/admin/src/components/fundamentals/icons/clipboard-copy-icon/index.tsx +50 -0
  150. package/.cache/admin/src/components/fundamentals/icons/clock-icon/index.tsx +36 -0
  151. package/.cache/admin/src/components/fundamentals/icons/coins-icon/index.tsx +50 -0
  152. package/.cache/admin/src/components/fundamentals/icons/corner-down-right-icon/index.tsx +36 -0
  153. package/.cache/admin/src/components/fundamentals/icons/cross-icon/index.tsx +36 -0
  154. package/.cache/admin/src/components/fundamentals/icons/crosshair-icon/index.tsx +57 -0
  155. package/.cache/admin/src/components/fundamentals/icons/customer-icon/index.tsx +36 -0
  156. package/.cache/admin/src/components/fundamentals/icons/details-icon.tsx +57 -0
  157. package/.cache/admin/src/components/fundamentals/icons/discord-icon.tsx +26 -0
  158. package/.cache/admin/src/components/fundamentals/icons/dollar-sign-icon/index.tsx +36 -0
  159. package/.cache/admin/src/components/fundamentals/icons/down-left/index.tsx +34 -0
  160. package/.cache/admin/src/components/fundamentals/icons/download-icon.tsx +42 -0
  161. package/.cache/admin/src/components/fundamentals/icons/duplicate-icon.tsx +36 -0
  162. package/.cache/admin/src/components/fundamentals/icons/edit-icon/index.tsx +36 -0
  163. package/.cache/admin/src/components/fundamentals/icons/edit-icon.tsx +36 -0
  164. package/.cache/admin/src/components/fundamentals/icons/ellipsis-vertical-icon/index.tsx +26 -0
  165. package/.cache/admin/src/components/fundamentals/icons/export-icon/index.tsx +43 -0
  166. package/.cache/admin/src/components/fundamentals/icons/eye-icon/index.tsx +36 -0
  167. package/.cache/admin/src/components/fundamentals/icons/eye-off-icon/index.tsx +36 -0
  168. package/.cache/admin/src/components/fundamentals/icons/fast-delivery-icon/index.tsx +64 -0
  169. package/.cache/admin/src/components/fundamentals/icons/file-icon.tsx +55 -0
  170. package/.cache/admin/src/components/fundamentals/icons/folder-open-icon/index.tsx +29 -0
  171. package/.cache/admin/src/components/fundamentals/icons/gear-icon/index.tsx +36 -0
  172. package/.cache/admin/src/components/fundamentals/icons/gift-icon/index.tsx +57 -0
  173. package/.cache/admin/src/components/fundamentals/icons/grip-icon.tsx +64 -0
  174. package/.cache/admin/src/components/fundamentals/icons/happy-icon/index.tsx +50 -0
  175. package/.cache/admin/src/components/fundamentals/icons/help-circle.tsx +43 -0
  176. package/.cache/admin/src/components/fundamentals/icons/image-placeholder-icon/index.tsx +43 -0
  177. package/.cache/admin/src/components/fundamentals/icons/info-icon/index.tsx +29 -0
  178. package/.cache/admin/src/components/fundamentals/icons/key-icon.tsx +30 -0
  179. package/.cache/admin/src/components/fundamentals/icons/list-arrow-icon/index.tsx +57 -0
  180. package/.cache/admin/src/components/fundamentals/icons/list-icon.tsx +64 -0
  181. package/.cache/admin/src/components/fundamentals/icons/lock-icon/index.tsx +36 -0
  182. package/.cache/admin/src/components/fundamentals/icons/log-out-icon/index.tsx +43 -0
  183. package/.cache/admin/src/components/fundamentals/icons/long-arrow-right-icon/index.tsx +38 -0
  184. package/.cache/admin/src/components/fundamentals/icons/mail-icon/index.tsx +36 -0
  185. package/.cache/admin/src/components/fundamentals/icons/map-pin-icon/index.tsx +36 -0
  186. package/.cache/admin/src/components/fundamentals/icons/medusa-icon/index.tsx +27 -0
  187. package/.cache/admin/src/components/fundamentals/icons/medusa-vice/index.tsx +39 -0
  188. package/.cache/admin/src/components/fundamentals/icons/minus-icon/index.tsx +29 -0
  189. package/.cache/admin/src/components/fundamentals/icons/more-horizontal-icon.tsx +43 -0
  190. package/.cache/admin/src/components/fundamentals/icons/package-icon/index.tsx +50 -0
  191. package/.cache/admin/src/components/fundamentals/icons/percent-icon/index.tsx +43 -0
  192. package/.cache/admin/src/components/fundamentals/icons/plus-icon/index.tsx +36 -0
  193. package/.cache/admin/src/components/fundamentals/icons/pointer-icon/index.tsx +35 -0
  194. package/.cache/admin/src/components/fundamentals/icons/publish-icon/index.tsx +57 -0
  195. package/.cache/admin/src/components/fundamentals/icons/refresh-icon.tsx +50 -0
  196. package/.cache/admin/src/components/fundamentals/icons/refund.tsx +57 -0
  197. package/.cache/admin/src/components/fundamentals/icons/reorder-icon/index.tsx +64 -0
  198. package/.cache/admin/src/components/fundamentals/icons/sad-face-icon/index.tsx +50 -0
  199. package/.cache/admin/src/components/fundamentals/icons/sale-icon/index.tsx +50 -0
  200. package/.cache/admin/src/components/fundamentals/icons/search-icon/index.tsx +27 -0
  201. package/.cache/admin/src/components/fundamentals/icons/send-icon/index.tsx +33 -0
  202. package/.cache/admin/src/components/fundamentals/icons/sided-mouth-face/index.tsx +50 -0
  203. package/.cache/admin/src/components/fundamentals/icons/sorting-icon/index.tsx +54 -0
  204. package/.cache/admin/src/components/fundamentals/icons/sparkles-icon/index.tsx +29 -0
  205. package/.cache/admin/src/components/fundamentals/icons/squares-plus/index.tsx +29 -0
  206. package/.cache/admin/src/components/fundamentals/icons/stop-icon.tsx +36 -0
  207. package/.cache/admin/src/components/fundamentals/icons/swatch-icon/index.tsx +29 -0
  208. package/.cache/admin/src/components/fundamentals/icons/tag-dot-icon/index.tsx +29 -0
  209. package/.cache/admin/src/components/fundamentals/icons/tag-icon/index.tsx +36 -0
  210. package/.cache/admin/src/components/fundamentals/icons/taxes-icon.tsx +54 -0
  211. package/.cache/admin/src/components/fundamentals/icons/tile-icon.tsx +50 -0
  212. package/.cache/admin/src/components/fundamentals/icons/trash-icon.tsx +50 -0
  213. package/.cache/admin/src/components/fundamentals/icons/triangle-mini-icon/index.tsx +28 -0
  214. package/.cache/admin/src/components/fundamentals/icons/triangle-right-icon/index.tsx +28 -0
  215. package/.cache/admin/src/components/fundamentals/icons/truck-icon/index.tsx +43 -0
  216. package/.cache/admin/src/components/fundamentals/icons/types/icon-type.ts +8 -0
  217. package/.cache/admin/src/components/fundamentals/icons/u-turn-icon.tsx +29 -0
  218. package/.cache/admin/src/components/fundamentals/icons/unpublish-icon/index.tsx +57 -0
  219. package/.cache/admin/src/components/fundamentals/icons/upload-icon/index.tsx +43 -0
  220. package/.cache/admin/src/components/fundamentals/icons/users-icon/index.tsx +50 -0
  221. package/.cache/admin/src/components/fundamentals/icons/warning-circle.tsx +81 -0
  222. package/.cache/admin/src/components/fundamentals/icons/x-circle-icon.tsx +43 -0
  223. package/.cache/admin/src/components/fundamentals/image-placeholder.tsx +11 -0
  224. package/.cache/admin/src/components/fundamentals/input-container.tsx +37 -0
  225. package/.cache/admin/src/components/fundamentals/input-header.tsx +38 -0
  226. package/.cache/admin/src/components/fundamentals/status-indicator/index.tsx +36 -0
  227. package/.cache/admin/src/components/helpers/form/form.tsx +187 -0
  228. package/.cache/admin/src/components/helpers/form/index.ts +1 -0
  229. package/.cache/admin/src/components/molecules/actionables.tsx +115 -0
  230. package/.cache/admin/src/components/molecules/activity-card/index.tsx +68 -0
  231. package/.cache/admin/src/components/molecules/amount-input/amount-and-currency-input.tsx +134 -0
  232. package/.cache/admin/src/components/molecules/amount-input/amount-input.tsx +91 -0
  233. package/.cache/admin/src/components/molecules/amount-input/index.ts +4 -0
  234. package/.cache/admin/src/components/molecules/availability-duration/index.tsx +86 -0
  235. package/.cache/admin/src/components/molecules/banner-card/index.tsx +74 -0
  236. package/.cache/admin/src/components/molecules/batch-job-file-card/index.tsx +67 -0
  237. package/.cache/admin/src/components/molecules/collapsible-tree/index.tsx +186 -0
  238. package/.cache/admin/src/components/molecules/connected-form.tsx +20 -0
  239. package/.cache/admin/src/components/molecules/customer-avatar-item/index.tsx +34 -0
  240. package/.cache/admin/src/components/molecules/customers-groups-summary/index.tsx +33 -0
  241. package/.cache/admin/src/components/molecules/delimited-list/index.tsx +44 -0
  242. package/.cache/admin/src/components/molecules/emoji-picker/index.tsx +41 -0
  243. package/.cache/admin/src/components/molecules/filter-dropdown/container.tsx +99 -0
  244. package/.cache/admin/src/components/molecules/filter-dropdown/item.tsx +556 -0
  245. package/.cache/admin/src/components/molecules/filter-dropdown/save-field.tsx +48 -0
  246. package/.cache/admin/src/components/molecules/filter-menu/filter-menu.tsx +496 -0
  247. package/.cache/admin/src/components/molecules/filter-menu/index.ts +1 -0
  248. package/.cache/admin/src/components/molecules/filter-tab/index.tsx +62 -0
  249. package/.cache/admin/src/components/molecules/form-error-toaster/index.tsx +41 -0
  250. package/.cache/admin/src/components/molecules/form-toaster/index.tsx +177 -0
  251. package/.cache/admin/src/components/molecules/generating-input/index.tsx +93 -0
  252. package/.cache/admin/src/components/molecules/grid-input/index.tsx +15 -0
  253. package/.cache/admin/src/components/molecules/hot-key-action/index.tsx +23 -0
  254. package/.cache/admin/src/components/molecules/icon-tooltip/index.tsx +36 -0
  255. package/.cache/admin/src/components/molecules/indeterminate-checkbox/index.tsx +84 -0
  256. package/.cache/admin/src/components/molecules/input/index.tsx +165 -0
  257. package/.cache/admin/src/components/molecules/input-signin/index.tsx +101 -0
  258. package/.cache/admin/src/components/molecules/item-search/index.tsx +110 -0
  259. package/.cache/admin/src/components/molecules/json-view/index.tsx +94 -0
  260. package/.cache/admin/src/components/molecules/location-dropdown/index.tsx +50 -0
  261. package/.cache/admin/src/components/molecules/modal/focus-modal.tsx +114 -0
  262. package/.cache/admin/src/components/molecules/modal/index.tsx +167 -0
  263. package/.cache/admin/src/components/molecules/modal/layered-modal.tsx +163 -0
  264. package/.cache/admin/src/components/molecules/modal/side-modal.tsx +63 -0
  265. package/.cache/admin/src/components/molecules/modal/stepped-modal.tsx +227 -0
  266. package/.cache/admin/src/components/molecules/native-select/index.tsx +68 -0
  267. package/.cache/admin/src/components/molecules/note-input/index.tsx +76 -0
  268. package/.cache/admin/src/components/molecules/notification-bell/index.tsx +21 -0
  269. package/.cache/admin/src/components/molecules/numbered-item/index.tsx +52 -0
  270. package/.cache/admin/src/components/molecules/order-status/index.tsx +113 -0
  271. package/.cache/admin/src/components/molecules/rma-select-shipping/index.tsx +54 -0
  272. package/.cache/admin/src/components/molecules/sales-channels-display/index.tsx +82 -0
  273. package/.cache/admin/src/components/molecules/sales-channels-list/index.tsx +46 -0
  274. package/.cache/admin/src/components/molecules/sales-channels-summary/index.tsx +39 -0
  275. package/.cache/admin/src/components/molecules/search-bar.tsx +49 -0
  276. package/.cache/admin/src/components/molecules/section/index.tsx +32 -0
  277. package/.cache/admin/src/components/molecules/select/index.tsx +240 -0
  278. package/.cache/admin/src/components/molecules/select/next-select/components/containers.tsx +190 -0
  279. package/.cache/admin/src/components/molecules/select/next-select/components/control.tsx +149 -0
  280. package/.cache/admin/src/components/molecules/select/next-select/components/index.ts +39 -0
  281. package/.cache/admin/src/components/molecules/select/next-select/components/input.tsx +36 -0
  282. package/.cache/admin/src/components/molecules/select/next-select/components/menu.tsx +344 -0
  283. package/.cache/admin/src/components/molecules/select/next-select/components/multi-value.tsx +118 -0
  284. package/.cache/admin/src/components/molecules/select/next-select/components/placeholder.tsx +32 -0
  285. package/.cache/admin/src/components/molecules/select/next-select/components/select-primitives.ts +3 -0
  286. package/.cache/admin/src/components/molecules/select/next-select/components/single-value.tsx +74 -0
  287. package/.cache/admin/src/components/molecules/select/next-select/createable-select/index.tsx +40 -0
  288. package/.cache/admin/src/components/molecules/select/next-select/index.tsx +4 -0
  289. package/.cache/admin/src/components/molecules/select/next-select/module-augmentation.ts +74 -0
  290. package/.cache/admin/src/components/molecules/select/next-select/select/index.tsx +63 -0
  291. package/.cache/admin/src/components/molecules/select/next-select/use-select-props.tsx +85 -0
  292. package/.cache/admin/src/components/molecules/select/next-select/utils.tsx +83 -0
  293. package/.cache/admin/src/components/molecules/select/select-components.tsx +313 -0
  294. package/.cache/admin/src/components/molecules/shipping-option/index.tsx +70 -0
  295. package/.cache/admin/src/components/molecules/sidebar-company-logo/index.tsx +20 -0
  296. package/.cache/admin/src/components/molecules/sidebar-menu-item/index.tsx +80 -0
  297. package/.cache/admin/src/components/molecules/sidebar-team-member/index.tsx +28 -0
  298. package/.cache/admin/src/components/molecules/status-selector/index.tsx +55 -0
  299. package/.cache/admin/src/components/molecules/switchable-item/index.tsx +55 -0
  300. package/.cache/admin/src/components/molecules/table/filtering-option.tsx +96 -0
  301. package/.cache/admin/src/components/molecules/table/index.tsx +265 -0
  302. package/.cache/admin/src/components/molecules/table/table-search.tsx +47 -0
  303. package/.cache/admin/src/components/molecules/table-fileds-filter/index.tsx +200 -0
  304. package/.cache/admin/src/components/molecules/table-pagination/index.ts +1 -0
  305. package/.cache/admin/src/components/molecules/table-pagination/table-pagination.tsx +77 -0
  306. package/.cache/admin/src/components/molecules/table-toaster/index.tsx +27 -0
  307. package/.cache/admin/src/components/molecules/tag-grid/index.tsx +38 -0
  308. package/.cache/admin/src/components/molecules/tag-input/index.tsx +232 -0
  309. package/.cache/admin/src/components/molecules/textarea/index.tsx +114 -0
  310. package/.cache/admin/src/components/molecules/timeline-events/claim-event/index.tsx +267 -0
  311. package/.cache/admin/src/components/molecules/timeline-events/event-actionables.tsx +20 -0
  312. package/.cache/admin/src/components/molecules/timeline-events/event-container.tsx +108 -0
  313. package/.cache/admin/src/components/molecules/timeline-events/event-item-container.tsx +48 -0
  314. package/.cache/admin/src/components/molecules/timeline-events/event-type.ts +5 -0
  315. package/.cache/admin/src/components/molecules/timeline-events/exchange.tsx +336 -0
  316. package/.cache/admin/src/components/molecules/timeline-events/items-fulfilled.tsx +38 -0
  317. package/.cache/admin/src/components/molecules/timeline-events/items-shipped.tsx +37 -0
  318. package/.cache/admin/src/components/molecules/timeline-events/note.tsx +73 -0
  319. package/.cache/admin/src/components/molecules/timeline-events/notification/index.tsx +66 -0
  320. package/.cache/admin/src/components/molecules/timeline-events/notification/resend-modal.tsx +99 -0
  321. package/.cache/admin/src/components/molecules/timeline-events/order-canceled.tsx +20 -0
  322. package/.cache/admin/src/components/molecules/timeline-events/order-edit/canceled.tsx +26 -0
  323. package/.cache/admin/src/components/molecules/timeline-events/order-edit/confirmed.tsx +40 -0
  324. package/.cache/admin/src/components/molecules/timeline-events/order-edit/created.tsx +289 -0
  325. package/.cache/admin/src/components/molecules/timeline-events/order-edit/declined.tsx +46 -0
  326. package/.cache/admin/src/components/molecules/timeline-events/order-edit/index.tsx +27 -0
  327. package/.cache/admin/src/components/molecules/timeline-events/order-edit/payment-required.tsx +77 -0
  328. package/.cache/admin/src/components/molecules/timeline-events/order-edit/refund-required.tsx +73 -0
  329. package/.cache/admin/src/components/molecules/timeline-events/order-edit/requested.tsx +62 -0
  330. package/.cache/admin/src/components/molecules/timeline-events/order-placed.tsx +29 -0
  331. package/.cache/admin/src/components/molecules/timeline-events/refund.tsx +43 -0
  332. package/.cache/admin/src/components/molecules/timeline-events/return.tsx +151 -0
  333. package/.cache/admin/src/components/molecules/tooltip-icon/index.tsx +20 -0
  334. package/.cache/admin/src/components/molecules/user-menu/index.tsx +76 -0
  335. package/.cache/admin/src/components/organisms/accordion/index.tsx +113 -0
  336. package/.cache/admin/src/components/organisms/activity-drawer/index.tsx +87 -0
  337. package/.cache/admin/src/components/organisms/analytics-config-form/index.tsx +125 -0
  338. package/.cache/admin/src/components/organisms/analytics-preferences/index.tsx +150 -0
  339. package/.cache/admin/src/components/organisms/batch-jobs-activity-list/index.tsx +255 -0
  340. package/.cache/admin/src/components/organisms/batch-jobs-activity-list/utils.ts +43 -0
  341. package/.cache/admin/src/components/organisms/body-card.tsx +133 -0
  342. package/.cache/admin/src/components/organisms/confirmation-prompt.tsx +71 -0
  343. package/.cache/admin/src/components/organisms/currency-input/index.tsx +303 -0
  344. package/.cache/admin/src/components/organisms/custom-table-header/index.tsx +37 -0
  345. package/.cache/admin/src/components/organisms/delete-prompt.tsx +96 -0
  346. package/.cache/admin/src/components/organisms/details-collapsible/index.tsx +60 -0
  347. package/.cache/admin/src/components/organisms/edit-user-modal/index.tsx +145 -0
  348. package/.cache/admin/src/components/organisms/error-boundary/index.tsx +203 -0
  349. package/.cache/admin/src/components/organisms/export-modal/index.tsx +64 -0
  350. package/.cache/admin/src/components/organisms/file-upload-modal/index.tsx +36 -0
  351. package/.cache/admin/src/components/organisms/gift-card-banner/index.tsx +104 -0
  352. package/.cache/admin/src/components/organisms/gift-card-denominations-section/add-denominations-modal.tsx +198 -0
  353. package/.cache/admin/src/components/organisms/gift-card-denominations-section/denominations-table.tsx +75 -0
  354. package/.cache/admin/src/components/organisms/gift-card-denominations-section/edit-denominations-modal.tsx +211 -0
  355. package/.cache/admin/src/components/organisms/gift-card-denominations-section/index.tsx +56 -0
  356. package/.cache/admin/src/components/organisms/gift-card-denominations-section/use-denominations-columns.tsx +207 -0
  357. package/.cache/admin/src/components/organisms/help-dialog/index.tsx +103 -0
  358. package/.cache/admin/src/components/organisms/invite-modal/index.tsx +136 -0
  359. package/.cache/admin/src/components/organisms/login-card/index.tsx +119 -0
  360. package/.cache/admin/src/components/organisms/medusa-price-input/index.tsx +53 -0
  361. package/.cache/admin/src/components/organisms/metadata/index.tsx +150 -0
  362. package/.cache/admin/src/components/organisms/price-input/index.tsx +64 -0
  363. package/.cache/admin/src/components/organisms/product-attributes-section/attribute-modal.tsx +153 -0
  364. package/.cache/admin/src/components/organisms/product-attributes-section/index.tsx +98 -0
  365. package/.cache/admin/src/components/organisms/product-general-section/channels-modal.tsx +54 -0
  366. package/.cache/admin/src/components/organisms/product-general-section/general-modal.tsx +185 -0
  367. package/.cache/admin/src/components/organisms/product-general-section/index.tsx +217 -0
  368. package/.cache/admin/src/components/organisms/product-media-section/index.tsx +51 -0
  369. package/.cache/admin/src/components/organisms/product-media-section/media-modal.tsx +151 -0
  370. package/.cache/admin/src/components/organisms/product-raw-section/index.tsx +28 -0
  371. package/.cache/admin/src/components/organisms/product-thumbnail-section/index.tsx +96 -0
  372. package/.cache/admin/src/components/organisms/product-thumbnail-section/thumbnail-modal.tsx +158 -0
  373. package/.cache/admin/src/components/organisms/product-variant-tree/index.tsx +89 -0
  374. package/.cache/admin/src/components/organisms/product-variants-section/add-variant-modal.tsx +214 -0
  375. package/.cache/admin/src/components/organisms/product-variants-section/edit-prices-modal/currency-cell.tsx +243 -0
  376. package/.cache/admin/src/components/organisms/product-variants-section/edit-prices-modal/edit-prices-actions.tsx +106 -0
  377. package/.cache/admin/src/components/organisms/product-variants-section/edit-prices-modal/edit-prices-table.tsx +842 -0
  378. package/.cache/admin/src/components/organisms/product-variants-section/edit-prices-modal/index.tsx +387 -0
  379. package/.cache/admin/src/components/organisms/product-variants-section/edit-prices-modal/save-prompt.tsx +111 -0
  380. package/.cache/admin/src/components/organisms/product-variants-section/edit-prices-modal/utils.ts +84 -0
  381. package/.cache/admin/src/components/organisms/product-variants-section/edit-variant-inventory-modal.tsx +354 -0
  382. package/.cache/admin/src/components/organisms/product-variants-section/edit-variant-modal.tsx +217 -0
  383. package/.cache/admin/src/components/organisms/product-variants-section/edit-variants-modal/edit-variant-screen.tsx +153 -0
  384. package/.cache/admin/src/components/organisms/product-variants-section/edit-variants-modal/index.tsx +204 -0
  385. package/.cache/admin/src/components/organisms/product-variants-section/edit-variants-modal/use-edit-variants-modal.tsx +20 -0
  386. package/.cache/admin/src/components/organisms/product-variants-section/edit-variants-modal/variant-card.tsx +170 -0
  387. package/.cache/admin/src/components/organisms/product-variants-section/index.tsx +241 -0
  388. package/.cache/admin/src/components/organisms/product-variants-section/options-modal.tsx +273 -0
  389. package/.cache/admin/src/components/organisms/product-variants-section/options-provider.tsx +47 -0
  390. package/.cache/admin/src/components/organisms/product-variants-section/table.tsx +234 -0
  391. package/.cache/admin/src/components/organisms/radio-group/index.tsx +174 -0
  392. package/.cache/admin/src/components/organisms/raw-json/index.tsx +38 -0
  393. package/.cache/admin/src/components/organisms/reset-token-card/index.tsx +129 -0
  394. package/.cache/admin/src/components/organisms/rma-return-product-table/index.tsx +120 -0
  395. package/.cache/admin/src/components/organisms/rma-select-product-table/index.tsx +316 -0
  396. package/.cache/admin/src/components/organisms/section/index.tsx +52 -0
  397. package/.cache/admin/src/components/organisms/sidebar/index.tsx +142 -0
  398. package/.cache/admin/src/components/organisms/table-container/index.tsx +50 -0
  399. package/.cache/admin/src/components/organisms/table-container/pagination.tsx +86 -0
  400. package/.cache/admin/src/components/organisms/table-container/types.ts +12 -0
  401. package/.cache/admin/src/components/organisms/timeline/index.tsx +224 -0
  402. package/.cache/admin/src/components/organisms/topbar/index.tsx +62 -0
  403. package/.cache/admin/src/components/organisms/upload-modal/index.tsx +326 -0
  404. package/.cache/admin/src/components/private-route/index.tsx +31 -0
  405. package/.cache/admin/src/components/seo/index.tsx +80 -0
  406. package/.cache/admin/src/components/templates/add-products-modal/index.tsx +117 -0
  407. package/.cache/admin/src/components/templates/add-products-modal/product-table-config.tsx +106 -0
  408. package/.cache/admin/src/components/templates/add-products-modal/utils.ts +32 -0
  409. package/.cache/admin/src/components/templates/address-form.tsx +191 -0
  410. package/.cache/admin/src/components/templates/collection-modal/index.tsx +237 -0
  411. package/.cache/admin/src/components/templates/collection-product-table/add-product-table.tsx +240 -0
  412. package/.cache/admin/src/components/templates/collection-product-table/index.tsx +198 -0
  413. package/.cache/admin/src/components/templates/collection-product-table/types.ts +11 -0
  414. package/.cache/admin/src/components/templates/collection-product-table/use-collection-product-columns.tsx +48 -0
  415. package/.cache/admin/src/components/templates/collection-product-table/use-sorting-options.tsx +89 -0
  416. package/.cache/admin/src/components/templates/collection-product-table/use-view-product-columns.tsx +59 -0
  417. package/.cache/admin/src/components/templates/collection-product-table/utils.tsx +64 -0
  418. package/.cache/admin/src/components/templates/collection-product-table/view-products-table.tsx +205 -0
  419. package/.cache/admin/src/components/templates/collections-table/index.tsx +192 -0
  420. package/.cache/admin/src/components/templates/collections-table/use-collection-actions.tsx +48 -0
  421. package/.cache/admin/src/components/templates/collections-table/use-collection-column.tsx +54 -0
  422. package/.cache/admin/src/components/templates/customer-group-table/config.tsx +105 -0
  423. package/.cache/admin/src/components/templates/customer-group-table/customer-groups-table.tsx +295 -0
  424. package/.cache/admin/src/components/templates/customer-group-table/customers-list-table.tsx +240 -0
  425. package/.cache/admin/src/components/templates/customer-group-table/edit-customers-table.tsx +252 -0
  426. package/.cache/admin/src/components/templates/customer-orders-table/index.tsx +159 -0
  427. package/.cache/admin/src/components/templates/customer-orders-table/use-customer-orders-columns.tsx +221 -0
  428. package/.cache/admin/src/components/templates/customer-table/index.tsx +208 -0
  429. package/.cache/admin/src/components/templates/customer-table/use-customer-columns.tsx +54 -0
  430. package/.cache/admin/src/components/templates/customer-table/use-customer-filters.tsx +213 -0
  431. package/.cache/admin/src/components/templates/discount-filter-dropdown/index.tsx +142 -0
  432. package/.cache/admin/src/components/templates/discount-table/index.tsx +239 -0
  433. package/.cache/admin/src/components/templates/discount-table/use-copy-promotion.tsx +87 -0
  434. package/.cache/admin/src/components/templates/discount-table/use-promotion-columns.tsx +186 -0
  435. package/.cache/admin/src/components/templates/discount-table/use-promotion-filters.tsx +519 -0
  436. package/.cache/admin/src/components/templates/discount-table/use-promotion-row-actions.tsx +103 -0
  437. package/.cache/admin/src/components/templates/draft-order-table/index.tsx +168 -0
  438. package/.cache/admin/src/components/templates/draft-order-table/use-draft-order-column.tsx +94 -0
  439. package/.cache/admin/src/components/templates/draft-order-table/use-draft-order-filters.ts +213 -0
  440. package/.cache/admin/src/components/templates/gift-card-filter-dropdown/index.tsx +188 -0
  441. package/.cache/admin/src/components/templates/gift-card-table/index.tsx +199 -0
  442. package/.cache/admin/src/components/templates/gift-card-table/use-gift-card-column.tsx +113 -0
  443. package/.cache/admin/src/components/templates/gift-card-table/use-gift-card-filters.ts +591 -0
  444. package/.cache/admin/src/components/templates/image-table/index.tsx +165 -0
  445. package/.cache/admin/src/components/templates/inventory-table/index.tsx +499 -0
  446. package/.cache/admin/src/components/templates/inventory-table/use-inventory-column.tsx +111 -0
  447. package/.cache/admin/src/components/templates/inventory-table/use-inventory-filters.ts +467 -0
  448. package/.cache/admin/src/components/templates/layout.tsx +30 -0
  449. package/.cache/admin/src/components/templates/login-layout.tsx +62 -0
  450. package/.cache/admin/src/components/templates/order-filter-dropdown/index.tsx +263 -0
  451. package/.cache/admin/src/components/templates/order-table/index.tsx +243 -0
  452. package/.cache/admin/src/components/templates/order-table/use-order-column.tsx +155 -0
  453. package/.cache/admin/src/components/templates/order-table/use-order-filters.ts +644 -0
  454. package/.cache/admin/src/components/templates/price-list-table/price-list-filters.tsx +135 -0
  455. package/.cache/admin/src/components/templates/price-list-table/price-list-table.tsx +203 -0
  456. package/.cache/admin/src/components/templates/price-list-table/use-copy-price-list.tsx +69 -0
  457. package/.cache/admin/src/components/templates/price-list-table/use-price-list-actions.tsx +99 -0
  458. package/.cache/admin/src/components/templates/price-list-table/use-price-list-columns.tsx +80 -0
  459. package/.cache/admin/src/components/templates/price-list-table/use-price-list-filters.tsx +495 -0
  460. package/.cache/admin/src/components/templates/price-list-table/utils.tsx +42 -0
  461. package/.cache/admin/src/components/templates/price-overrides/index.tsx +232 -0
  462. package/.cache/admin/src/components/templates/price-overrides/price-amount.tsx +76 -0
  463. package/.cache/admin/src/components/templates/product-table/index.tsx +271 -0
  464. package/.cache/admin/src/components/templates/product-table/overview.tsx +106 -0
  465. package/.cache/admin/src/components/templates/product-table/use-copy-product.ts +208 -0
  466. package/.cache/admin/src/components/templates/product-table/use-filter-tabs.tsx +487 -0
  467. package/.cache/admin/src/components/templates/product-table/use-product-actions.tsx +133 -0
  468. package/.cache/admin/src/components/templates/product-table/use-product-column.tsx +146 -0
  469. package/.cache/admin/src/components/templates/product-table/use-product-filters.ts +604 -0
  470. package/.cache/admin/src/components/templates/reservations-table/components/reservation-form/index.tsx +172 -0
  471. package/.cache/admin/src/components/templates/reservations-table/components/reservations-filter/index.tsx +906 -0
  472. package/.cache/admin/src/components/templates/reservations-table/index.tsx +442 -0
  473. package/.cache/admin/src/components/templates/reservations-table/new/index.tsx +133 -0
  474. package/.cache/admin/src/components/templates/reservations-table/use-reservation-filters.ts +331 -0
  475. package/.cache/admin/src/components/templates/reservations-table/use-reservations-columns.tsx +47 -0
  476. package/.cache/admin/src/components/templates/search-modal/index.tsx +168 -0
  477. package/.cache/admin/src/components/templates/search-modal/keyboard-shortcuts.tsx +47 -0
  478. package/.cache/admin/src/components/templates/search-modal/results/customer-results.tsx +68 -0
  479. package/.cache/admin/src/components/templates/search-modal/results/discount-results.tsx +63 -0
  480. package/.cache/admin/src/components/templates/search-modal/results/order-results.tsx +62 -0
  481. package/.cache/admin/src/components/templates/search-modal/results/product-results.tsx +68 -0
  482. package/.cache/admin/src/components/templates/search-modal/section-collapsible.tsx +28 -0
  483. package/.cache/admin/src/components/templates/search-modal/use-keyboard-navigation-list.tsx +117 -0
  484. package/.cache/admin/src/components/templates/selectable-table/index.tsx +211 -0
  485. package/.cache/admin/src/components/templates/settings-overview.tsx +25 -0
  486. package/.cache/admin/src/components/templates/transfer-orders-modal/index.tsx +263 -0
  487. package/.cache/admin/src/components/templates/two-split-pane.tsx +54 -0
  488. package/.cache/admin/src/components/templates/user-table.tsx +373 -0
  489. package/.cache/admin/src/constants/analytics.ts +1 -0
  490. package/.cache/admin/src/constants/forbidden-routes.ts +59 -0
  491. package/.cache/admin/src/constants/injection-zones.ts +52 -0
  492. package/.cache/admin/src/constants/medusa-backend-url.ts +2 -0
  493. package/.cache/admin/src/constants/query-client.ts +11 -0
  494. package/.cache/admin/src/domain/categories/components/multiselect/index.tsx +401 -0
  495. package/.cache/admin/src/domain/categories/utils/transform-response.ts +12 -0
  496. package/.cache/admin/src/domain/collections/details/index.tsx +284 -0
  497. package/.cache/admin/src/domain/collections/index.tsx +27 -0
  498. package/.cache/admin/src/domain/customers/details/edit.tsx +187 -0
  499. package/.cache/admin/src/domain/customers/details/index.tsx +187 -0
  500. package/.cache/admin/src/domain/customers/groups/customer-group-modal.tsx +191 -0
  501. package/.cache/admin/src/domain/customers/groups/details.tsx +314 -0
  502. package/.cache/admin/src/domain/customers/groups/index.tsx +100 -0
  503. package/.cache/admin/src/domain/customers/header.tsx +28 -0
  504. package/.cache/admin/src/domain/customers/index.tsx +74 -0
  505. package/.cache/admin/src/domain/discounts/details/conditions/add-condition/conditions-provider.tsx +198 -0
  506. package/.cache/admin/src/domain/discounts/details/conditions/add-condition/index.tsx +30 -0
  507. package/.cache/admin/src/domain/discounts/details/conditions/edit-condition/add-condition-resources/collections/add-collections.tsx +82 -0
  508. package/.cache/admin/src/domain/discounts/details/conditions/edit-condition/add-condition-resources/collections/collections-conditions-table.tsx +82 -0
  509. package/.cache/admin/src/domain/discounts/details/conditions/edit-condition/add-condition-resources/customer-groups/add-customer-groups.tsx +83 -0
  510. package/.cache/admin/src/domain/discounts/details/conditions/edit-condition/add-condition-resources/customer-groups/customer-groups-conditions-table.tsx +82 -0
  511. package/.cache/admin/src/domain/discounts/details/conditions/edit-condition/add-condition-resources/product-types/add-types.tsx +84 -0
  512. package/.cache/admin/src/domain/discounts/details/conditions/edit-condition/add-condition-resources/product-types/type-conditions-table.tsx +82 -0
  513. package/.cache/admin/src/domain/discounts/details/conditions/edit-condition/add-condition-resources/products/add-products.tsx +79 -0
  514. package/.cache/admin/src/domain/discounts/details/conditions/edit-condition/add-condition-resources/products/product-conditions-table.tsx +84 -0
  515. package/.cache/admin/src/domain/discounts/details/conditions/edit-condition/add-condition-resources/tags/add-tags.tsx +80 -0
  516. package/.cache/admin/src/domain/discounts/details/conditions/edit-condition/add-condition-resources/tags/tags-conditions-table.tsx +80 -0
  517. package/.cache/admin/src/domain/discounts/details/conditions/edit-condition/add-conditions-screens.tsx +35 -0
  518. package/.cache/admin/src/domain/discounts/details/conditions/edit-condition/condition-table-actions.tsx +78 -0
  519. package/.cache/admin/src/domain/discounts/details/conditions/edit-condition/edit-condition-modal.tsx +82 -0
  520. package/.cache/admin/src/domain/discounts/details/conditions/edit-condition/edit-condition-provider.tsx +148 -0
  521. package/.cache/admin/src/domain/discounts/details/conditions/index.tsx +84 -0
  522. package/.cache/admin/src/domain/discounts/details/conditions/use-discount-conditions.tsx +131 -0
  523. package/.cache/admin/src/domain/discounts/details/configurations/edit-configurations.tsx +134 -0
  524. package/.cache/admin/src/domain/discounts/details/configurations/index.tsx +62 -0
  525. package/.cache/admin/src/domain/discounts/details/configurations/use-discount-configurations.tsx +173 -0
  526. package/.cache/admin/src/domain/discounts/details/general/edit-general.tsx +160 -0
  527. package/.cache/admin/src/domain/discounts/details/general/index.tsx +207 -0
  528. package/.cache/admin/src/domain/discounts/details/index.tsx +135 -0
  529. package/.cache/admin/src/domain/discounts/index.tsx +97 -0
  530. package/.cache/admin/src/domain/discounts/new/discount-form/add-conditions-modal.tsx +133 -0
  531. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/add-condition-tables/add-condition-footer.tsx +71 -0
  532. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/add-condition-tables/collections.tsx +97 -0
  533. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/add-condition-tables/customer-groups.tsx +93 -0
  534. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/add-condition-tables/products.tsx +89 -0
  535. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/add-condition-tables/tags.tsx +79 -0
  536. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/add-condition-tables/types.tsx +82 -0
  537. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/details-condition-tables/collections.tsx +99 -0
  538. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/details-condition-tables/customer-groups.tsx +93 -0
  539. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/details-condition-tables/details-condition-footer.tsx +64 -0
  540. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/details-condition-tables/products.tsx +89 -0
  541. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/details-condition-tables/tags.tsx +81 -0
  542. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/details-condition-tables/types.tsx +84 -0
  543. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/edit-condition-tables/collections.tsx +95 -0
  544. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/edit-condition-tables/customer-groups.tsx +86 -0
  545. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/edit-condition-tables/edit-condition-footer.tsx +65 -0
  546. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/edit-condition-tables/products.tsx +83 -0
  547. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/edit-condition-tables/tags.tsx +82 -0
  548. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/edit-condition-tables/types.tsx +77 -0
  549. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/shared/collection.tsx +72 -0
  550. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/shared/common.tsx +4 -0
  551. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/shared/condition-operator.tsx +44 -0
  552. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/shared/groups.tsx +69 -0
  553. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/shared/products.tsx +120 -0
  554. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/shared/tags.tsx +64 -0
  555. package/.cache/admin/src/domain/discounts/new/discount-form/condition-tables/shared/types.tsx +63 -0
  556. package/.cache/admin/src/domain/discounts/new/discount-form/edit-conditions-modal.tsx +53 -0
  557. package/.cache/admin/src/domain/discounts/new/discount-form/form/discount-form-context.tsx +224 -0
  558. package/.cache/admin/src/domain/discounts/new/discount-form/form/mappers.ts +84 -0
  559. package/.cache/admin/src/domain/discounts/new/discount-form/form/use-form-actions.tsx +44 -0
  560. package/.cache/admin/src/domain/discounts/new/discount-form/index.tsx +196 -0
  561. package/.cache/admin/src/domain/discounts/new/discount-form/sections/conditions/condition-item.tsx +248 -0
  562. package/.cache/admin/src/domain/discounts/new/discount-form/sections/conditions/index.tsx +86 -0
  563. package/.cache/admin/src/domain/discounts/new/discount-form/sections/configuration.tsx +273 -0
  564. package/.cache/admin/src/domain/discounts/new/discount-form/sections/discount-allocation.tsx +49 -0
  565. package/.cache/admin/src/domain/discounts/new/discount-form/sections/discount-type.tsx +65 -0
  566. package/.cache/admin/src/domain/discounts/new/discount-form/sections/general.tsx +210 -0
  567. package/.cache/admin/src/domain/discounts/new/discount-form/use-condition-modal-items.tsx +135 -0
  568. package/.cache/admin/src/domain/discounts/new/index.tsx +14 -0
  569. package/.cache/admin/src/domain/discounts/types.ts +81 -0
  570. package/.cache/admin/src/domain/discounts/utils/index.tsx +24 -0
  571. package/.cache/admin/src/domain/gift-cards/custom-giftcard.tsx +154 -0
  572. package/.cache/admin/src/domain/gift-cards/details/edit-gift-card-modal.tsx +149 -0
  573. package/.cache/admin/src/domain/gift-cards/details/index.tsx +210 -0
  574. package/.cache/admin/src/domain/gift-cards/details/update-balance-modal.tsx +131 -0
  575. package/.cache/admin/src/domain/gift-cards/index.tsx +31 -0
  576. package/.cache/admin/src/domain/gift-cards/manage/index.tsx +105 -0
  577. package/.cache/admin/src/domain/gift-cards/new.tsx +336 -0
  578. package/.cache/admin/src/domain/gift-cards/overview.tsx +215 -0
  579. package/.cache/admin/src/domain/inventory/filter-dropdown.tsx +104 -0
  580. package/.cache/admin/src/domain/inventory/header.tsx +32 -0
  581. package/.cache/admin/src/domain/inventory/index.tsx +17 -0
  582. package/.cache/admin/src/domain/inventory/inventory/index.tsx +22 -0
  583. package/.cache/admin/src/domain/inventory/locations/components/address-form/index.tsx +165 -0
  584. package/.cache/admin/src/domain/inventory/locations/components/edit-sales-channels/index.tsx +81 -0
  585. package/.cache/admin/src/domain/inventory/locations/components/general-form/index.tsx +42 -0
  586. package/.cache/admin/src/domain/inventory/locations/components/location-card/index.tsx +124 -0
  587. package/.cache/admin/src/domain/inventory/locations/components/sales-channels-form/index.tsx +77 -0
  588. package/.cache/admin/src/domain/inventory/locations/components/sales-channels-section/index.tsx +31 -0
  589. package/.cache/admin/src/domain/inventory/locations/edit/index.tsx +146 -0
  590. package/.cache/admin/src/domain/inventory/locations/index.tsx +59 -0
  591. package/.cache/admin/src/domain/inventory/locations/new/index.tsx +263 -0
  592. package/.cache/admin/src/domain/inventory/reservations/index.tsx +22 -0
  593. package/.cache/admin/src/domain/oauth/index.tsx +29 -0
  594. package/.cache/admin/src/domain/orders/components/claim-type-form/index.tsx +48 -0
  595. package/.cache/admin/src/domain/orders/components/items-to-receive-form/index.ts +2 -0
  596. package/.cache/admin/src/domain/orders/components/items-to-receive-form/items-to-receive-form.tsx +75 -0
  597. package/.cache/admin/src/domain/orders/components/items-to-receive-form/items-to-receive-table.tsx +62 -0
  598. package/.cache/admin/src/domain/orders/components/items-to-receive-form/use-items-to-receive-columns.tsx +188 -0
  599. package/.cache/admin/src/domain/orders/components/items-to-return-form/add-return-reason/add-return-reason-screen.tsx +143 -0
  600. package/.cache/admin/src/domain/orders/components/items-to-return-form/add-return-reason/index.tsx +94 -0
  601. package/.cache/admin/src/domain/orders/components/items-to-return-form/index.tsx +93 -0
  602. package/.cache/admin/src/domain/orders/components/items-to-return-form/items-to-return-table.tsx +86 -0
  603. package/.cache/admin/src/domain/orders/components/items-to-return-form/use-return-item-columns.tsx +195 -0
  604. package/.cache/admin/src/domain/orders/components/items-to-send-form/add-additional-items-screen/add-additional-items-screen.tsx +199 -0
  605. package/.cache/admin/src/domain/orders/components/items-to-send-form/add-additional-items-screen/add-additional-items-table.tsx +90 -0
  606. package/.cache/admin/src/domain/orders/components/items-to-send-form/add-additional-items-screen/index.ts +1 -0
  607. package/.cache/admin/src/domain/orders/components/items-to-send-form/add-additional-items-screen/use-add-additional-items-columns.tsx +208 -0
  608. package/.cache/admin/src/domain/orders/components/items-to-send-form/additional-items-table.tsx +71 -0
  609. package/.cache/admin/src/domain/orders/components/items-to-send-form/index.tsx +100 -0
  610. package/.cache/admin/src/domain/orders/components/items-to-send-form/use-additional-items-columns.tsx +178 -0
  611. package/.cache/admin/src/domain/orders/components/refund-amount-form/index.tsx +128 -0
  612. package/.cache/admin/src/domain/orders/components/reservation-indicator/reservation-indicator.tsx +152 -0
  613. package/.cache/admin/src/domain/orders/components/rma-summaries/claim-summary.tsx +196 -0
  614. package/.cache/admin/src/domain/orders/components/rma-summaries/index.ts +3 -0
  615. package/.cache/admin/src/domain/orders/components/rma-summaries/receive-return-summary.tsx +126 -0
  616. package/.cache/admin/src/domain/orders/components/rma-summaries/summary-line-item.tsx +68 -0
  617. package/.cache/admin/src/domain/orders/components/rma-summaries/summary-shipping-line.tsx +43 -0
  618. package/.cache/admin/src/domain/orders/components/send-notification-form/index.tsx +57 -0
  619. package/.cache/admin/src/domain/orders/components/shipping-address-form/index.tsx +66 -0
  620. package/.cache/admin/src/domain/orders/components/shipping-address-form/shipping-address-form-modal.tsx +120 -0
  621. package/.cache/admin/src/domain/orders/components/shipping-form/index.tsx +238 -0
  622. package/.cache/admin/src/domain/orders/components/table-quantity-selector.tsx +93 -0
  623. package/.cache/admin/src/domain/orders/details/address-modal.tsx +229 -0
  624. package/.cache/admin/src/domain/orders/details/claim/register-claim-menu.tsx +395 -0
  625. package/.cache/admin/src/domain/orders/details/create-fulfillment/index.tsx +351 -0
  626. package/.cache/admin/src/domain/orders/details/create-fulfillment/item-table.tsx +241 -0
  627. package/.cache/admin/src/domain/orders/details/detail-cards/draft-summary.tsx +279 -0
  628. package/.cache/admin/src/domain/orders/details/detail-cards/summary.tsx +289 -0
  629. package/.cache/admin/src/domain/orders/details/email-modal.tsx +102 -0
  630. package/.cache/admin/src/domain/orders/details/index.tsx +650 -0
  631. package/.cache/admin/src/domain/orders/details/mark-shipped/index.tsx +273 -0
  632. package/.cache/admin/src/domain/orders/details/order-line/edit.tsx +330 -0
  633. package/.cache/admin/src/domain/orders/details/order-line/index.tsx +79 -0
  634. package/.cache/admin/src/domain/orders/details/receive-return/index.tsx +379 -0
  635. package/.cache/admin/src/domain/orders/details/refund/index.tsx +243 -0
  636. package/.cache/admin/src/domain/orders/details/reservation/edit-reservation-modal.tsx +408 -0
  637. package/.cache/admin/src/domain/orders/details/reservation/reserve-items-modal.tsx +345 -0
  638. package/.cache/admin/src/domain/orders/details/returns/index.tsx +483 -0
  639. package/.cache/admin/src/domain/orders/details/rma-sub-modals/address.tsx +208 -0
  640. package/.cache/admin/src/domain/orders/details/rma-sub-modals/products.tsx +302 -0
  641. package/.cache/admin/src/domain/orders/details/rma-sub-modals/return-reasons.tsx +183 -0
  642. package/.cache/admin/src/domain/orders/details/swap/create.tsx +511 -0
  643. package/.cache/admin/src/domain/orders/details/templates/address.tsx +34 -0
  644. package/.cache/admin/src/domain/orders/details/templates/display-total.tsx +60 -0
  645. package/.cache/admin/src/domain/orders/details/templates/fulfillment-status.tsx +63 -0
  646. package/.cache/admin/src/domain/orders/details/templates/fulfillment.tsx +195 -0
  647. package/.cache/admin/src/domain/orders/details/templates/index.ts +9 -0
  648. package/.cache/admin/src/domain/orders/details/templates/order-status.tsx +39 -0
  649. package/.cache/admin/src/domain/orders/details/templates/payment-actionables.tsx +86 -0
  650. package/.cache/admin/src/domain/orders/details/templates/payment-details.tsx +59 -0
  651. package/.cache/admin/src/domain/orders/details/templates/payment-status.tsx +36 -0
  652. package/.cache/admin/src/domain/orders/details/templates/tracking-link.tsx +18 -0
  653. package/.cache/admin/src/domain/orders/details/utils/create-filtering.ts +70 -0
  654. package/.cache/admin/src/domain/orders/details/utils/get-default-values.ts +262 -0
  655. package/.cache/admin/src/domain/orders/details/utils/use-admin-expand-paramter.ts +45 -0
  656. package/.cache/admin/src/domain/orders/draft-orders/details.tsx +517 -0
  657. package/.cache/admin/src/domain/orders/draft-orders/index.tsx +97 -0
  658. package/.cache/admin/src/domain/orders/edit/context.tsx +54 -0
  659. package/.cache/admin/src/domain/orders/edit/modal.tsx +478 -0
  660. package/.cache/admin/src/domain/orders/edit/utils/user.ts +19 -0
  661. package/.cache/admin/src/domain/orders/edit/variants-table.tsx +354 -0
  662. package/.cache/admin/src/domain/orders/index.tsx +167 -0
  663. package/.cache/admin/src/domain/orders/new/components/billing-details.tsx +89 -0
  664. package/.cache/admin/src/domain/orders/new/components/custom-item-sub-modal.tsx +90 -0
  665. package/.cache/admin/src/domain/orders/new/components/items.tsx +336 -0
  666. package/.cache/admin/src/domain/orders/new/components/select-region.tsx +66 -0
  667. package/.cache/admin/src/domain/orders/new/components/select-shipping.tsx +171 -0
  668. package/.cache/admin/src/domain/orders/new/components/shipping-details.tsx +274 -0
  669. package/.cache/admin/src/domain/orders/new/components/summary.tsx +406 -0
  670. package/.cache/admin/src/domain/orders/new/form/index.tsx +212 -0
  671. package/.cache/admin/src/domain/orders/new/new-order.tsx +141 -0
  672. package/.cache/admin/src/domain/orders/utils.ts +30 -0
  673. package/.cache/admin/src/domain/pricing/components/index.ts +1 -0
  674. package/.cache/admin/src/domain/pricing/components/product-filter-menu/index.ts +1 -0
  675. package/.cache/admin/src/domain/pricing/components/product-filter-menu/product-filter-menu.tsx +52 -0
  676. package/.cache/admin/src/domain/pricing/edit/details/details-drawer.tsx +184 -0
  677. package/.cache/admin/src/domain/pricing/edit/details/details-section.tsx +356 -0
  678. package/.cache/admin/src/domain/pricing/edit/details/index.ts +1 -0
  679. package/.cache/admin/src/domain/pricing/edit/edit.tsx +85 -0
  680. package/.cache/admin/src/domain/pricing/edit/index.ts +1 -0
  681. package/.cache/admin/src/domain/pricing/edit/prices/add-products-modal.tsx +695 -0
  682. package/.cache/admin/src/domain/pricing/edit/prices/edit-prices-modal.tsx +677 -0
  683. package/.cache/admin/src/domain/pricing/edit/prices/index.ts +1 -0
  684. package/.cache/admin/src/domain/pricing/edit/prices/prices-section.tsx +648 -0
  685. package/.cache/admin/src/domain/pricing/forms/price-list-details-form/index.ts +3 -0
  686. package/.cache/admin/src/domain/pricing/forms/price-list-details-form/price-list-details-form.tsx +753 -0
  687. package/.cache/admin/src/domain/pricing/forms/price-list-details-form/schema.ts +37 -0
  688. package/.cache/admin/src/domain/pricing/forms/price-list-details-form/types.ts +20 -0
  689. package/.cache/admin/src/domain/pricing/forms/price-list-prices-form/helpers.ts +46 -0
  690. package/.cache/admin/src/domain/pricing/forms/price-list-prices-form/index.ts +6 -0
  691. package/.cache/admin/src/domain/pricing/forms/price-list-prices-form/price-list-prices-form.tsx +237 -0
  692. package/.cache/admin/src/domain/pricing/forms/price-list-prices-form/schema.ts +32 -0
  693. package/.cache/admin/src/domain/pricing/forms/price-list-prices-form/types.ts +12 -0
  694. package/.cache/admin/src/domain/pricing/forms/price-list-prices-form/use-prices-form-data.tsx +78 -0
  695. package/.cache/admin/src/domain/pricing/forms/price-list-product-prices-form/helpers.ts +566 -0
  696. package/.cache/admin/src/domain/pricing/forms/price-list-product-prices-form/index.ts +3 -0
  697. package/.cache/admin/src/domain/pricing/forms/price-list-product-prices-form/models.ts +187 -0
  698. package/.cache/admin/src/domain/pricing/forms/price-list-product-prices-form/price-list-product-prices-form.tsx +2151 -0
  699. package/.cache/admin/src/domain/pricing/forms/price-list-product-prices-form/schema.ts +27 -0
  700. package/.cache/admin/src/domain/pricing/forms/price-list-product-prices-form/types.ts +91 -0
  701. package/.cache/admin/src/domain/pricing/forms/price-list-products-form/index.ts +3 -0
  702. package/.cache/admin/src/domain/pricing/forms/price-list-products-form/price-list-products-form.tsx +482 -0
  703. package/.cache/admin/src/domain/pricing/forms/price-list-products-form/schema.ts +7 -0
  704. package/.cache/admin/src/domain/pricing/forms/price-list-products-form/types.ts +4 -0
  705. package/.cache/admin/src/domain/pricing/index.tsx +16 -0
  706. package/.cache/admin/src/domain/pricing/new/index.ts +1 -0
  707. package/.cache/admin/src/domain/pricing/new/new.tsx +769 -0
  708. package/.cache/admin/src/domain/pricing/overview/index.ts +1 -0
  709. package/.cache/admin/src/domain/pricing/overview/overview.tsx +481 -0
  710. package/.cache/admin/src/domain/product-categories/components/product-categories-list.tsx +151 -0
  711. package/.cache/admin/src/domain/product-categories/components/product-category-list-item-details.tsx +181 -0
  712. package/.cache/admin/src/domain/product-categories/components/tree-crumbs.tsx +54 -0
  713. package/.cache/admin/src/domain/product-categories/index.tsx +30 -0
  714. package/.cache/admin/src/domain/product-categories/modals/add-product-category.tsx +282 -0
  715. package/.cache/admin/src/domain/product-categories/modals/edit-product-category.tsx +241 -0
  716. package/.cache/admin/src/domain/product-categories/pages/index.tsx +135 -0
  717. package/.cache/admin/src/domain/product-categories/styles/product-categories.css +21 -0
  718. package/.cache/admin/src/domain/product-categories/utils/index.tsx +63 -0
  719. package/.cache/admin/src/domain/products/batch-job/download-template.ts +18 -0
  720. package/.cache/admin/src/domain/products/batch-job/import.tsx +235 -0
  721. package/.cache/admin/src/domain/products/edit/index.tsx +91 -0
  722. package/.cache/admin/src/domain/products/filter-dropdown.tsx +244 -0
  723. package/.cache/admin/src/domain/products/index.tsx +29 -0
  724. package/.cache/admin/src/domain/products/new/add-sales-channels.tsx +123 -0
  725. package/.cache/admin/src/domain/products/new/add-variants/index.tsx +508 -0
  726. package/.cache/admin/src/domain/products/new/add-variants/new-variant/index.tsx +380 -0
  727. package/.cache/admin/src/domain/products/new/index.tsx +518 -0
  728. package/.cache/admin/src/domain/products/overview/index.tsx +269 -0
  729. package/.cache/admin/src/domain/publishable-api-keys/index.tsx +33 -0
  730. package/.cache/admin/src/domain/publishable-api-keys/modals/add-sales-channels.tsx +149 -0
  731. package/.cache/admin/src/domain/publishable-api-keys/modals/details.tsx +116 -0
  732. package/.cache/admin/src/domain/publishable-api-keys/modals/manage-sales-channels.tsx +428 -0
  733. package/.cache/admin/src/domain/publishable-api-keys/pages/index.tsx +294 -0
  734. package/.cache/admin/src/domain/publishable-api-keys/tables/publishable-api-keys-table.tsx +342 -0
  735. package/.cache/admin/src/domain/publishable-api-keys/tables/sales-channels-table.tsx +244 -0
  736. package/.cache/admin/src/domain/sales-channels/form/add-sales-channel.tsx +211 -0
  737. package/.cache/admin/src/domain/sales-channels/form/edit-sales-channel.tsx +116 -0
  738. package/.cache/admin/src/domain/sales-channels/index.tsx +30 -0
  739. package/.cache/admin/src/domain/sales-channels/pages/details.tsx +501 -0
  740. package/.cache/admin/src/domain/sales-channels/tables/config.tsx +57 -0
  741. package/.cache/admin/src/domain/sales-channels/tables/placeholder.tsx +33 -0
  742. package/.cache/admin/src/domain/sales-channels/tables/product.tsx +539 -0
  743. package/.cache/admin/src/domain/settings/currencies/components/currency-tax-setting.tsx +111 -0
  744. package/.cache/admin/src/domain/settings/currencies/components/default-store-currency/default-currency-selector.tsx +104 -0
  745. package/.cache/admin/src/domain/settings/currencies/components/default-store-currency/index.tsx +33 -0
  746. package/.cache/admin/src/domain/settings/currencies/components/store-currencies/add-currencies-screen.tsx +160 -0
  747. package/.cache/admin/src/domain/settings/currencies/components/store-currencies/current-currencies-screen.tsx +197 -0
  748. package/.cache/admin/src/domain/settings/currencies/components/store-currencies/edit-currencies-modal.tsx +46 -0
  749. package/.cache/admin/src/domain/settings/currencies/components/store-currencies/index.tsx +38 -0
  750. package/.cache/admin/src/domain/settings/currencies/components/store-currencies/table.tsx +123 -0
  751. package/.cache/admin/src/domain/settings/currencies/components/store-currencies/use-currency-table-columns.tsx +58 -0
  752. package/.cache/admin/src/domain/settings/currencies/index.tsx +131 -0
  753. package/.cache/admin/src/domain/settings/details.tsx +184 -0
  754. package/.cache/admin/src/domain/settings/index.tsx +196 -0
  755. package/.cache/admin/src/domain/settings/personal-information/edit-user-information/edit-user-information-modal.tsx +116 -0
  756. package/.cache/admin/src/domain/settings/personal-information/edit-user-information/index.tsx +67 -0
  757. package/.cache/admin/src/domain/settings/personal-information/index.tsx +54 -0
  758. package/.cache/admin/src/domain/settings/personal-information/language-settings/index.tsx +42 -0
  759. package/.cache/admin/src/domain/settings/personal-information/language-settings/language-menu.tsx +31 -0
  760. package/.cache/admin/src/domain/settings/personal-information/usage-insights/index.tsx +65 -0
  761. package/.cache/admin/src/domain/settings/personal-information/usage-insights/usage-insights-modal.tsx +99 -0
  762. package/.cache/admin/src/domain/settings/regions/components/region-form/region-details-form.tsx +160 -0
  763. package/.cache/admin/src/domain/settings/regions/components/region-form/region-providers-form.tsx +111 -0
  764. package/.cache/admin/src/domain/settings/regions/components/region-form/use-store-data.tsx +58 -0
  765. package/.cache/admin/src/domain/settings/regions/components/shipping-option-card/edit-modal.tsx +170 -0
  766. package/.cache/admin/src/domain/settings/regions/components/shipping-option-card/index.tsx +127 -0
  767. package/.cache/admin/src/domain/settings/regions/components/shipping-option-form/index.tsx +332 -0
  768. package/.cache/admin/src/domain/settings/regions/components/shipping-option-form/use-shipping-option-form-data.tsx +136 -0
  769. package/.cache/admin/src/domain/settings/regions/edit/general-section/edit-region.modal.tsx +192 -0
  770. package/.cache/admin/src/domain/settings/regions/edit/general-section/index.tsx +210 -0
  771. package/.cache/admin/src/domain/settings/regions/edit/index.tsx +55 -0
  772. package/.cache/admin/src/domain/settings/regions/edit/return-shipping-options/create-return-shipping-option.modal.tsx +110 -0
  773. package/.cache/admin/src/domain/settings/regions/edit/return-shipping-options/index.tsx +59 -0
  774. package/.cache/admin/src/domain/settings/regions/edit/shipping-options/create-shipping-option-modal.tsx +107 -0
  775. package/.cache/admin/src/domain/settings/regions/edit/shipping-options/index.tsx +52 -0
  776. package/.cache/admin/src/domain/settings/regions/index.tsx +25 -0
  777. package/.cache/admin/src/domain/settings/regions/new/index.tsx +177 -0
  778. package/.cache/admin/src/domain/settings/regions/region-overview/index.tsx +95 -0
  779. package/.cache/admin/src/domain/settings/regions/region-overview/region-card.tsx +49 -0
  780. package/.cache/admin/src/domain/settings/return-reasons/create-reason-modal.tsx +150 -0
  781. package/.cache/admin/src/domain/settings/return-reasons/detail.tsx +163 -0
  782. package/.cache/admin/src/domain/settings/return-reasons/index.tsx +101 -0
  783. package/.cache/admin/src/domain/settings/taxes/details.tsx +160 -0
  784. package/.cache/admin/src/domain/settings/taxes/edit-form.tsx +379 -0
  785. package/.cache/admin/src/domain/settings/taxes/edit-tax-rate-details.tsx +83 -0
  786. package/.cache/admin/src/domain/settings/taxes/edit.tsx +56 -0
  787. package/.cache/admin/src/domain/settings/taxes/index.tsx +169 -0
  788. package/.cache/admin/src/domain/settings/taxes/new.tsx +300 -0
  789. package/.cache/admin/src/domain/settings/taxes/product-selector.tsx +80 -0
  790. package/.cache/admin/src/domain/settings/taxes/product-type-selector.tsx +44 -0
  791. package/.cache/admin/src/domain/settings/taxes/region-form.tsx +178 -0
  792. package/.cache/admin/src/domain/settings/taxes/selectable-table.tsx +197 -0
  793. package/.cache/admin/src/domain/settings/taxes/shipping-option-selector.tsx +46 -0
  794. package/.cache/admin/src/domain/settings/taxes/tax-rate-row.tsx +87 -0
  795. package/.cache/admin/src/domain/settings/taxes/tax-rule-item.tsx +43 -0
  796. package/.cache/admin/src/domain/settings/taxes/tax-rule-selector.tsx +161 -0
  797. package/.cache/admin/src/domain/settings/taxes/use-tax-rate-columns.tsx +50 -0
  798. package/.cache/admin/src/domain/settings/users/index.tsx +88 -0
  799. package/.cache/admin/src/extensions/_local-entry.ts +10 -0
  800. package/.cache/admin/src/extensions/_main-entry.ts +7 -0
  801. package/.cache/admin/src/fonts/Inter-Medium.ttf +0 -0
  802. package/.cache/admin/src/fonts/Inter-Regular.ttf +0 -0
  803. package/.cache/admin/src/fonts/Inter-SemiBold.ttf +0 -0
  804. package/.cache/admin/src/fonts/RobotoMono-Bold.ttf +0 -0
  805. package/.cache/admin/src/fonts/RobotoMono-Regular.ttf +0 -0
  806. package/.cache/admin/src/hooks/use-build-timeline.tsx +676 -0
  807. package/.cache/admin/src/hooks/use-command-history.tsx +66 -0
  808. package/.cache/admin/src/hooks/use-computed-height.ts +19 -0
  809. package/.cache/admin/src/hooks/use-debounce.ts +22 -0
  810. package/.cache/admin/src/hooks/use-debounced-search-param.tsx +33 -0
  811. package/.cache/admin/src/hooks/use-detect-change.tsx +50 -0
  812. package/.cache/admin/src/hooks/use-edit-product-actions.tsx +193 -0
  813. package/.cache/admin/src/hooks/use-extension-base-props.tsx +25 -0
  814. package/.cache/admin/src/hooks/use-highlight-search.tsx +33 -0
  815. package/.cache/admin/src/hooks/use-imperative-dialog.tsx +139 -0
  816. package/.cache/admin/src/hooks/use-is-me.tsx +12 -0
  817. package/.cache/admin/src/hooks/use-notification.tsx +20 -0
  818. package/.cache/admin/src/hooks/use-observe-width.ts +30 -0
  819. package/.cache/admin/src/hooks/use-on-click-outside.tsx +28 -0
  820. package/.cache/admin/src/hooks/use-outside-click.ts +19 -0
  821. package/.cache/admin/src/hooks/use-query-filters.ts +229 -0
  822. package/.cache/admin/src/hooks/use-scroll.ts +20 -0
  823. package/.cache/admin/src/hooks/use-selection-column.tsx +39 -0
  824. package/.cache/admin/src/hooks/use-set-search-params.tsx +24 -0
  825. package/.cache/admin/src/hooks/use-stock-locations.ts +28 -0
  826. package/.cache/admin/src/hooks/use-toggle-state.ts +46 -0
  827. package/.cache/admin/src/hooks/use-window-dimensions.ts +25 -0
  828. package/.cache/admin/src/i18n/index.ts +119 -0
  829. package/.cache/admin/src/main.tsx +27 -0
  830. package/.cache/admin/src/medusa-app.tsx +58 -0
  831. package/.cache/admin/src/pages/404.tsx +12 -0
  832. package/.cache/admin/src/pages/a.tsx +86 -0
  833. package/.cache/admin/src/pages/index.tsx +20 -0
  834. package/.cache/admin/src/pages/invite.tsx +246 -0
  835. package/.cache/admin/src/pages/login.tsx +50 -0
  836. package/.cache/admin/src/pages/reset-password.tsx +151 -0
  837. package/.cache/admin/src/providers/analytics-provider.tsx +223 -0
  838. package/.cache/admin/src/providers/feature-flag-provider.tsx +78 -0
  839. package/.cache/admin/src/providers/import-refresh.tsx +57 -0
  840. package/.cache/admin/src/providers/medusa-provider.tsx +17 -0
  841. package/.cache/admin/src/providers/polling-provider.tsx +112 -0
  842. package/.cache/admin/src/providers/providers.tsx +54 -0
  843. package/.cache/admin/src/providers/route-provider.tsx +55 -0
  844. package/.cache/admin/src/providers/setting-provider.tsx +49 -0
  845. package/.cache/admin/src/providers/skeleton-provider.tsx +32 -0
  846. package/.cache/admin/src/providers/widget-provider.tsx +38 -0
  847. package/.cache/admin/src/registries/route-registry.tsx +133 -0
  848. package/.cache/admin/src/registries/setting-registry.tsx +60 -0
  849. package/.cache/admin/src/registries/widget-registry.tsx +26 -0
  850. package/.cache/admin/src/services/analytics.ts +119 -0
  851. package/.cache/admin/src/types/extensions.ts +151 -0
  852. package/.cache/admin/src/types/shared.ts +55 -0
  853. package/.cache/admin/src/types/utils.ts +3 -0
  854. package/.cache/admin/src/utils/bytes-converter.ts +18 -0
  855. package/.cache/admin/src/utils/callAll.ts +4 -0
  856. package/.cache/admin/src/utils/color.ts +12 -0
  857. package/.cache/admin/src/utils/consolidate-images.ts +15 -0
  858. package/.cache/admin/src/utils/countries.ts +639 -0
  859. package/.cache/admin/src/utils/currencies.ts +1087 -0
  860. package/.cache/admin/src/utils/date-utils.ts +5 -0
  861. package/.cache/admin/src/utils/email.ts +9 -0
  862. package/.cache/admin/src/utils/equals-set.ts +11 -0
  863. package/.cache/admin/src/utils/error-messages.ts +10 -0
  864. package/.cache/admin/src/utils/extensions.ts +30 -0
  865. package/.cache/admin/src/utils/extract-customer-name.ts +69 -0
  866. package/.cache/admin/src/utils/extract-options.ts +26 -0
  867. package/.cache/admin/src/utils/focus-by-name.ts +3 -0
  868. package/.cache/admin/src/utils/form-helpers.ts +22 -0
  869. package/.cache/admin/src/utils/form-validator.ts +71 -0
  870. package/.cache/admin/src/utils/fulfillment-providers.mapper.ts +26 -0
  871. package/.cache/admin/src/utils/generate-promotion-code.ts +12 -0
  872. package/.cache/admin/src/utils/get-admin-path.ts +22 -0
  873. package/.cache/admin/src/utils/get-error-status.ts +11 -0
  874. package/.cache/admin/src/utils/get-relative-time.ts +35 -0
  875. package/.cache/admin/src/utils/handle-form-error.tsx +64 -0
  876. package/.cache/admin/src/utils/images.ts +33 -0
  877. package/.cache/admin/src/utils/is-line-item.ts +37 -0
  878. package/.cache/admin/src/utils/is-nullish-object.ts +14 -0
  879. package/.cache/admin/src/utils/map-address-to-form.ts +23 -0
  880. package/.cache/admin/src/utils/nested-form.ts +87 -0
  881. package/.cache/admin/src/utils/payment-providers-mapper.ts +73 -0
  882. package/.cache/admin/src/utils/prices.ts +153 -0
  883. package/.cache/admin/src/utils/product-status-variant.ts +13 -0
  884. package/.cache/admin/src/utils/remove-nullish.ts +11 -0
  885. package/.cache/admin/src/utils/sales-channel-compare-operator.ts +13 -0
  886. package/.cache/admin/src/utils/search-param-utils.ts +86 -0
  887. package/.cache/admin/src/utils/trim-values.ts +11 -0
  888. package/.cache/admin/src/utils/validate-email.ts +7 -0
  889. package/.cache/admin/src/utils/xorObjFields.ts +4 -0
  890. package/.cache/admin/tsconfig.json +22 -0
  891. package/.cache/admin-build-manifest.json +29 -0
  892. package/.eslintrc.js +112 -0
  893. package/.github/dependabot.yml +21 -0
  894. package/.github/scripts/wait-for-server-live.sh +29 -0
  895. package/.github/workflows/test-cli.yml +149 -0
  896. package/.github/workflows/update-preview-deps-ci.yml +70 -0
  897. package/.github/workflows/update-preview-deps.yml +70 -0
  898. package/.vscode/settings.json +2 -0
  899. package/.yarnrc.yml +1 -0
  900. package/README.md +70 -0
  901. package/build/230.c76076a78b7563553415.css +932 -0
  902. package/build/442f6a4cc2f03aaf41f6.ttf +0 -0
  903. package/build/68fda0752a470b05a5c5.ttf +0 -0
  904. package/build/6dcbc9bed1ec438907ee.ttf +0 -0
  905. package/build/6ed339415e1071e8ebc9.ttf +0 -0
  906. package/build/e62b16638c71c0eb4505.ttf +0 -0
  907. package/build/images/icon-minus-gray-fedf0680e4cc60b17e14.svg +16 -0
  908. package/build/images/icon-plus-gray-4813505451ce489532e3.svg +16 -0
  909. package/build/index.html +1 -0
  910. package/build/main.c5035eb0615ccdc82cbf.css +6635 -0
  911. package/build/public/locales/ar/translation.json +1919 -0
  912. package/build/public/locales/bg/translation.json +2011 -0
  913. package/build/public/locales/bs/translation.json +2011 -0
  914. package/build/public/locales/cs/translation.json +1942 -0
  915. package/build/public/locales/de/translation.json +1924 -0
  916. package/build/public/locales/en/translation.json +2011 -0
  917. package/build/public/locales/es/translation.json +1924 -0
  918. package/build/public/locales/fr/translation.json +1924 -0
  919. package/build/public/locales/hi/translation.json +2011 -0
  920. package/build/public/locales/hr/translation.json +2011 -0
  921. package/build/public/locales/it/translation.json +1922 -0
  922. package/build/public/locales/ja/translation.json +2006 -0
  923. package/build/public/locales/ko/translation.json +2011 -0
  924. package/build/public/locales/pl/translation.json +1919 -0
  925. package/build/public/locales/pt/translation.json +1925 -0
  926. package/build/public/locales/ru/translation.json +1919 -0
  927. package/build/public/locales/sl/translation.json +2010 -0
  928. package/build/public/locales/tm/translation.json +1924 -0
  929. package/build/public/locales/uk/translation.json +1919 -0
  930. package/build/public/locales/vi/translation.json +2011 -0
  931. package/build/public/locales/zh/translation.json +2011 -0
  932. package/build/public/logo.svg +10 -0
  933. package/data/seed-onboarding.json +141 -0
  934. package/data/seed.json +1006 -0
  935. package/datasource.js +18 -0
  936. package/dist/index.js +1 -0
  937. package/index.js +50 -0
  938. package/medusa-config.js +153 -0
  939. package/package.json +129 -0
  940. package/src/api/README.md +179 -0
  941. package/src/index.ts +0 -0
  942. package/src/jobs/README.md +32 -0
  943. package/src/loaders/README.md +19 -0
  944. package/src/migrations/1717765546068-licenseVariant.ts +20 -0
  945. package/src/migrations/README.md +29 -0
  946. package/src/models/README.md +46 -0
  947. package/src/models/product-variant.ts +35 -0
  948. package/src/repositories/ProductVariant.ts +11 -0
  949. package/src/services/README.md +49 -0
  950. package/src/subscribers/README.md +44 -0
  951. package/tsconfig.admin.json +8 -0
  952. package/tsconfig.json +30 -0
  953. package/tsconfig.server.json +8 -0
  954. package/tsconfig.spec.json +5 -0
@@ -0,0 +1,177 @@
1
+ import * as Dropdown from "@radix-ui/react-dropdown-menu"
2
+ import clsx from "clsx"
3
+ import React, { Children, HTMLAttributes, useMemo } from "react"
4
+ import { Toast } from "react-hot-toast"
5
+ import Spinner from "../../atoms/spinner"
6
+ import ChevronDownIcon from "../../fundamentals/icons/chevron-down"
7
+ import RefreshIcon from "../../fundamentals/icons/refresh-icon"
8
+
9
+ type FormToasterContainerProps = {
10
+ toast?: Toast
11
+ isLoading?: boolean
12
+ loadingMessage?: string
13
+ unsavedChangesMessage?: string
14
+ icon?: React.ReactNode
15
+ }
16
+
17
+ type MultiActionButtonProps = {
18
+ actions: {
19
+ onClick: () => void | Promise<void>
20
+ label: string
21
+ icon?: any
22
+ }[]
23
+ className?: string
24
+ }
25
+
26
+ const FormToasterContainer: React.FC<FormToasterContainerProps> & {
27
+ Actions: React.FC
28
+ DiscardButton: React.FC<HTMLAttributes<HTMLButtonElement>>
29
+ ActionButton: React.FC<HTMLAttributes<HTMLButtonElement>>
30
+ MultiActionButton: React.FC<MultiActionButtonProps>
31
+ } = ({
32
+ children,
33
+ toast,
34
+ isLoading = false,
35
+ loadingMessage = "Hang on, this may take a few moments...",
36
+ unsavedChangesMessage = "You have unsaved changes",
37
+ icon = <RefreshIcon size="20" />,
38
+ }) => {
39
+ const content = useMemo(() => {
40
+ if (isLoading) {
41
+ return (
42
+ <div className="p-base gap-x-base flex items-center">
43
+ <span>
44
+ <Spinner />
45
+ </span>
46
+ <span className="inter-small-regular">{loadingMessage}</span>
47
+ </div>
48
+ )
49
+ } else {
50
+ return (
51
+ <>
52
+ <div className="p-base gap-x-base flex items-center">
53
+ <span>{icon}</span>
54
+ <span className="inter-small-regular">{unsavedChangesMessage}</span>
55
+ </div>
56
+ {children}
57
+ </>
58
+ )
59
+ }
60
+ }, [isLoading, children])
61
+
62
+ return (
63
+ <div
64
+ className={clsx({
65
+ "animate-enter": toast?.visible,
66
+ "animate-leave": !toast?.visible,
67
+ })}
68
+ {...toast?.ariaProps}
69
+ >
70
+ <div className="rounded-rounded bg-grey-90 text-grey-0 flex h-[72px] w-[344px] items-center justify-between">
71
+ {content}
72
+ </div>
73
+ </div>
74
+ )
75
+ }
76
+
77
+ const Actions: React.FC = ({ children }) => {
78
+ return (
79
+ <div className="border-grey-70 h-full border-l">
80
+ {Children.map(children, (child) => {
81
+ return (
82
+ <div className="border-grey-70 flex h-1/2 w-[72px] items-center justify-center border-b last:border-none">
83
+ {child}
84
+ </div>
85
+ )
86
+ })}
87
+ </div>
88
+ )
89
+ }
90
+
91
+ const DiscardButton: React.FC<HTMLAttributes<HTMLButtonElement>> = ({
92
+ children,
93
+ className,
94
+ ...props
95
+ }) => {
96
+ return (
97
+ <button
98
+ className={clsx(
99
+ "inter-small-semibold flex h-full w-full items-center justify-center text-white",
100
+ className
101
+ )}
102
+ {...props}
103
+ >
104
+ {children}
105
+ </button>
106
+ )
107
+ }
108
+
109
+ const ActionButton: React.FC<HTMLAttributes<HTMLButtonElement>> = ({
110
+ children,
111
+ className,
112
+ ...props
113
+ }) => {
114
+ return (
115
+ <button
116
+ className={clsx(
117
+ "inter-small-semibold flex h-full w-full items-center justify-center text-white",
118
+ className
119
+ )}
120
+ {...props}
121
+ >
122
+ {children}
123
+ </button>
124
+ )
125
+ }
126
+
127
+ const MultiActionButton: React.FC<MultiActionButtonProps> = ({
128
+ children,
129
+ className,
130
+ actions,
131
+ }) => {
132
+ return (
133
+ <Dropdown.Root>
134
+ <Dropdown.Trigger
135
+ className={clsx(
136
+ "inter-small-semibold flex h-full w-full items-center justify-center",
137
+ className
138
+ )}
139
+ >
140
+ {children}
141
+ <ChevronDownIcon size={16} className="ml-[2px]" />
142
+ </Dropdown.Trigger>
143
+
144
+ <Dropdown.Content
145
+ className="rounded-rounded bg-grey-90 p-xsmall flex min-w-[208px] flex-col text-white"
146
+ sideOffset={10}
147
+ >
148
+ {actions.map((action, i) => {
149
+ return (
150
+ <Dropdown.Item key={i}>
151
+ <button
152
+ onClick={action.onClick}
153
+ className="p-2xsmall hover:bg-grey-80 inter-small-semibold rounded-base flex w-full items-center text-left hover:outline-none"
154
+ >
155
+ {action.icon && (
156
+ <span className="text-grey-0 mr-xsmall">
157
+ {React.cloneElement(action.icon, {
158
+ size: 20,
159
+ })}
160
+ </span>
161
+ )}
162
+ {action.label}
163
+ </button>
164
+ </Dropdown.Item>
165
+ )
166
+ })}
167
+ </Dropdown.Content>
168
+ </Dropdown.Root>
169
+ )
170
+ }
171
+
172
+ FormToasterContainer.Actions = Actions
173
+ FormToasterContainer.DiscardButton = DiscardButton
174
+ FormToasterContainer.ActionButton = ActionButton
175
+ FormToasterContainer.MultiActionButton = MultiActionButton
176
+
177
+ export default FormToasterContainer
@@ -0,0 +1,93 @@
1
+ import React, {
2
+ InputHTMLAttributes,
3
+ useImperativeHandle,
4
+ useRef,
5
+ useState,
6
+ } from "react"
7
+ import { generatePromotionCode } from "../../../utils/generate-promotion-code"
8
+ import RefreshIcon from "../../fundamentals/icons/refresh-icon"
9
+ import InputContainer from "../../fundamentals/input-container"
10
+ import InputHeader from "../../fundamentals/input-header"
11
+ import { InputProps } from "../input"
12
+
13
+ const GeneratingInput = React.forwardRef(
14
+ (
15
+ {
16
+ placeholder,
17
+ label,
18
+ name,
19
+ required,
20
+ deletable,
21
+ onDelete,
22
+ onChange,
23
+ onFocus,
24
+ tooltipContent,
25
+ tooltip,
26
+ props,
27
+ className,
28
+ value: valueProp,
29
+ ...fieldProps
30
+ }: Omit<InputProps, "prefix" | "key">,
31
+ ref
32
+ ) => {
33
+ const [value, setValue] = useState<
34
+ InputHTMLAttributes<HTMLInputElement>["value"]
35
+ >(valueProp || "")
36
+ const inputRef = useRef<HTMLInputElement>(null)
37
+
38
+ useImperativeHandle(ref, () => inputRef.current)
39
+
40
+ const generateCode = () => {
41
+ setValue(generatePromotionCode())
42
+ }
43
+
44
+ const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {
45
+ setValue(e.target.value)
46
+ if (onChange) {
47
+ onChange(e)
48
+ }
49
+ }
50
+
51
+ return (
52
+ <InputContainer
53
+ className={className}
54
+ key={name}
55
+ onClick={() => !fieldProps.disabled && inputRef?.current?.focus()}
56
+ {...props}
57
+ >
58
+ <div className="flex">
59
+ <InputHeader {...{ label, required, tooltipContent, tooltip }} />
60
+ {!value && (
61
+ <button
62
+ onClick={generateCode}
63
+ className="inter-small-semibold text-violet-50"
64
+ >
65
+ Generate
66
+ </button>
67
+ )}
68
+ </div>
69
+ <div className="flex">
70
+ <input
71
+ ref={inputRef}
72
+ value={value}
73
+ onChange={handleChange}
74
+ className="remove-number-spinner leading-base text-grey-90 caret-violet-60 placeholder-grey-40 w-full bg-inherit font-normal outline-none outline-0"
75
+ placeholder={placeholder}
76
+ autoComplete="off"
77
+ name={name}
78
+ onFocus={onFocus}
79
+ required={required}
80
+ {...fieldProps}
81
+ />
82
+ {value && (
83
+ <button onClick={generateCode}>
84
+ <RefreshIcon size={16} className="text-grey-50" />
85
+ </button>
86
+ )}
87
+ </div>
88
+ </InputContainer>
89
+ )
90
+ }
91
+ )
92
+
93
+ export default GeneratingInput
@@ -0,0 +1,15 @@
1
+ import React from "react"
2
+
3
+ type GridInputProps = React.InputHTMLAttributes<HTMLInputElement>
4
+
5
+ const GridInput: React.FC<GridInputProps> = ({ value, ...props }) => {
6
+ return (
7
+ <input
8
+ className="leading-base rounded-rounded inter-small-regular placeholder:text-grey-40 focus-within:shadow-input focus-within:border-violet-60 h-full w-full border border-transparent bg-transparent py-4 px-2 outline-none outline-0 focus-within:border"
9
+ value={value}
10
+ {...props}
11
+ />
12
+ )
13
+ }
14
+
15
+ export default GridInput
@@ -0,0 +1,23 @@
1
+ import React from "react"
2
+ import { useHotkeys } from "react-hotkeys-hook"
3
+
4
+ type HotKeyActionProps = {
5
+ label: string
6
+ hotKey: string
7
+ icon: React.ReactNode
8
+ onAction: (keyboardEvent: KeyboardEvent, hotkeysEvent: any) => void | boolean
9
+ }
10
+
11
+ const HotKeyAction = ({ label, hotKey, icon, onAction }: HotKeyActionProps) => {
12
+ useHotkeys(hotKey, onAction, {})
13
+ return (
14
+ <div className="flex items-center gap-2">
15
+ <span className="text-grey-0 inter-small-semibold">{label}</span>
16
+ <div className="inter-small-semibold text-grey-30 bg-grey-70 flex h-[24px] w-[24px] items-center justify-center rounded">
17
+ {icon}
18
+ </div>
19
+ </div>
20
+ )
21
+ }
22
+
23
+ export default HotKeyAction
@@ -0,0 +1,36 @@
1
+ import React from "react"
2
+ import Tooltip, { TooltipProps } from "../../atoms/tooltip"
3
+ import AlertIcon from "../../fundamentals/icons/alert-icon"
4
+ import InfoIcon from "../../fundamentals/icons/info-icon"
5
+ import IconProps from "../../fundamentals/icons/types/icon-type"
6
+ import XCircleIcon from "../../fundamentals/icons/x-circle-icon"
7
+
8
+ type IconTooltipProps = TooltipProps & {
9
+ type?: "info" | "warning" | "error"
10
+ } & Pick<IconProps, "size">
11
+
12
+ const IconTooltip: React.FC<IconTooltipProps> = ({
13
+ type = "info",
14
+ size = 16,
15
+ content,
16
+ ...props
17
+ }) => {
18
+ const icon = (type: IconTooltipProps["type"]) => {
19
+ switch (type) {
20
+ case "warning":
21
+ return <AlertIcon size={size} className="text-orange-40 flex" />
22
+ case "error":
23
+ return <XCircleIcon size={size} className="text-rose-40 flex" />
24
+ default:
25
+ return <InfoIcon size={size} className="text-grey-40 flex" />
26
+ }
27
+ }
28
+
29
+ return (
30
+ <Tooltip content={content} {...props}>
31
+ {icon(type)}
32
+ </Tooltip>
33
+ )
34
+ }
35
+
36
+ export default IconTooltip
@@ -0,0 +1,84 @@
1
+ import clsx from "clsx"
2
+ import React, { useImperativeHandle } from "react"
3
+
4
+ import CheckIcon from "../../fundamentals/icons/check-icon"
5
+ import MinusIcon from "../../fundamentals/icons/minus-icon"
6
+
7
+ type IndeterminateCheckboxProps = {
8
+ type?: "checkbox" | "radio"
9
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void
10
+ checked?: boolean
11
+ title?: string
12
+ indeterminate?: boolean
13
+ className?: React.HTMLAttributes<HTMLInputElement>["className"]
14
+ name?: string
15
+ disabled?: boolean // NOTE: only visual, still have to filter disabled ids out
16
+ }
17
+
18
+ const IndeterminateCheckbox = React.forwardRef<
19
+ HTMLInputElement,
20
+ IndeterminateCheckboxProps
21
+ >(({ indeterminate = false, className, checked, ...rest }, ref) => {
22
+ const type = rest.type || "checkbox"
23
+ const innerRef = React.useRef<HTMLInputElement | null>(null)
24
+
25
+ useImperativeHandle<HTMLInputElement | null, HTMLInputElement | null>(
26
+ ref,
27
+ () => innerRef.current
28
+ )
29
+
30
+ React.useEffect(() => {
31
+ if (innerRef.current) {
32
+ innerRef.current.indeterminate = indeterminate
33
+ }
34
+ }, [innerRef, indeterminate])
35
+
36
+ const handleClick = () => {
37
+ if (!rest.disabled && innerRef.current) {
38
+ innerRef.current.click()
39
+ }
40
+ }
41
+
42
+ if (type === "radio") {
43
+ return (
44
+ <div className="flex h-full items-center">
45
+ <input
46
+ className={clsx({ "accent-violet-60": checked })}
47
+ type="radio"
48
+ checked={checked}
49
+ ref={innerRef}
50
+ {...rest}
51
+ />
52
+ </div>
53
+ )
54
+ }
55
+
56
+ return (
57
+ <div className="flex h-full items-center">
58
+ <div
59
+ onClick={handleClick}
60
+ className={`rounded-base border-grey-30 text-grey-0 flex h-5 w-5 cursor-pointer justify-center border ${
61
+ rest.disabled
62
+ ? checked
63
+ ? "bg-gray-300"
64
+ : ""
65
+ : checked && "bg-violet-60"
66
+ }`}
67
+ >
68
+ <span className="self-center">
69
+ {checked && <CheckIcon size={16} />}
70
+ {indeterminate && <MinusIcon size={16} />}
71
+ </span>
72
+ </div>
73
+ <input
74
+ type="checkbox"
75
+ className={clsx("hidden", className)}
76
+ defaultChecked={checked}
77
+ ref={innerRef}
78
+ {...rest}
79
+ />
80
+ </div>
81
+ )
82
+ })
83
+
84
+ export default IndeterminateCheckbox
@@ -0,0 +1,165 @@
1
+ import React, {
2
+ ChangeEventHandler,
3
+ FocusEventHandler,
4
+ MouseEventHandler,
5
+ useImperativeHandle,
6
+ useRef,
7
+ } from "react"
8
+ import InputHeader, { InputHeaderProps } from "../../fundamentals/input-header"
9
+
10
+ import clsx from "clsx"
11
+ import InputError from "../../atoms/input-error"
12
+ import MinusIcon from "../../fundamentals/icons/minus-icon"
13
+ import PlusIcon from "../../fundamentals/icons/plus-icon"
14
+
15
+ export type InputProps = Omit<React.ComponentPropsWithRef<"input">, "prefix"> &
16
+ InputHeaderProps & {
17
+ small?: boolean
18
+ label?: string
19
+ deletable?: boolean
20
+ onDelete?: MouseEventHandler<HTMLSpanElement>
21
+ onChange?: ChangeEventHandler<HTMLInputElement>
22
+ onFocus?: FocusEventHandler<HTMLInputElement>
23
+ errors?: { [x: string]: unknown }
24
+ prefix?: React.ReactNode
25
+ suffix?: React.ReactNode
26
+ props?: React.HTMLAttributes<HTMLDivElement>
27
+ }
28
+
29
+ const InputField = React.forwardRef<HTMLInputElement, InputProps>(
30
+ (
31
+ {
32
+ small,
33
+ placeholder,
34
+ label,
35
+ name,
36
+ required,
37
+ deletable,
38
+ onDelete,
39
+ onChange,
40
+ onFocus,
41
+ tooltipContent,
42
+ tooltip,
43
+ prefix,
44
+ suffix,
45
+ errors,
46
+ props,
47
+ className,
48
+ ...fieldProps
49
+ }: InputProps,
50
+ ref
51
+ ) => {
52
+ const inputRef = useRef<HTMLInputElement | null>(null)
53
+
54
+ useImperativeHandle<HTMLInputElement | null, HTMLInputElement | null>(
55
+ ref,
56
+ () => inputRef.current
57
+ )
58
+
59
+ const onNumberIncrement = () => {
60
+ inputRef.current?.stepUp()
61
+ if (onChange) {
62
+ inputRef.current?.dispatchEvent(
63
+ new InputEvent("change", {
64
+ view: window,
65
+ bubbles: true,
66
+ cancelable: false,
67
+ })
68
+ )
69
+ }
70
+ }
71
+
72
+ const onNumberDecrement = () => {
73
+ inputRef.current?.stepDown()
74
+ if (onChange) {
75
+ inputRef.current?.dispatchEvent(
76
+ new InputEvent("change", {
77
+ view: window,
78
+ bubbles: true,
79
+ cancelable: false,
80
+ })
81
+ )
82
+ }
83
+ }
84
+
85
+ return (
86
+ <div className={clsx("w-full", className)} {...props}>
87
+ {label && (
88
+ <InputHeader
89
+ {...{ label, required, tooltipContent, tooltip }}
90
+ className="mb-xsmall"
91
+ />
92
+ )}
93
+ <div
94
+ className={clsx(
95
+ "bg-grey-5 border-gray-20 px-small py-xsmall rounded-rounded focus-within:shadow-input focus-within:border-violet-60 flex w-full items-center border",
96
+ {
97
+ "focus-within:shadow-cta focus-within:shadow-rose-60/10 border-rose-50 focus-within:border-rose-50":
98
+ errors && name && errors[name],
99
+ },
100
+ small ? "h-8" : "h-10"
101
+ )}
102
+ >
103
+ {prefix ? (
104
+ <span className="text-grey-40 mr-2xsmall">{prefix}</span>
105
+ ) : null}
106
+ <input
107
+ className={clsx(
108
+ "remove-number-spinner leading-base text-grey-90 caret-violet-60 placeholder-grey-40 w-full bg-transparent font-normal outline-none outline-0",
109
+ { "text-small": small, "pt-[1px]": small }
110
+ )}
111
+ ref={inputRef}
112
+ autoComplete="off"
113
+ name={name}
114
+ placeholder={placeholder || `${label}...` || "Placeholder"}
115
+ onChange={onChange}
116
+ onFocus={onFocus}
117
+ required={required}
118
+ {...fieldProps}
119
+ />
120
+ {suffix ? (
121
+ <span className="mx-2xsmall text-grey-40">{suffix}</span>
122
+ ) : null}
123
+
124
+ {deletable && (
125
+ <button
126
+ onClick={onDelete}
127
+ className="text-grey-50 hover:bg-grey-10 focus:bg-grey-20 rounded-soft ml-2 flex h-4 w-4 cursor-pointer items-center justify-center pb-px outline-none"
128
+ type="button"
129
+ >
130
+ &times;
131
+ </button>
132
+ )}
133
+
134
+ {fieldProps.type === "number" && (
135
+ <div className="flex h-full items-center self-end">
136
+ <button
137
+ onClick={onNumberDecrement}
138
+ onMouseDown={(e) => e.preventDefault()}
139
+ className="text-grey-50 hover:bg-grey-10 focus:bg-grey-20 rounded-soft mr-2 h-4 w-4 cursor-pointer outline-none"
140
+ type="button"
141
+ tabIndex={-1}
142
+ >
143
+ <MinusIcon size={16} />
144
+ </button>
145
+ <button
146
+ onMouseDown={(e) => e.preventDefault()}
147
+ onClick={onNumberIncrement}
148
+ className="text-grey-50 hover:bg-grey-10 focus:bg-grey-20 rounded-soft h-4 w-4 cursor-pointer outline-none"
149
+ type="button"
150
+ tabIndex={-1}
151
+ >
152
+ <PlusIcon size={16} />
153
+ </button>
154
+ </div>
155
+ )}
156
+ </div>
157
+ <InputError name={name} errors={errors} />
158
+ </div>
159
+ )
160
+ }
161
+ )
162
+
163
+ InputField.displayName = "InputField"
164
+
165
+ export default InputField
@@ -0,0 +1,101 @@
1
+ import clsx from "clsx"
2
+ import React, {
3
+ ChangeEventHandler,
4
+ FocusEventHandler,
5
+ useEffect,
6
+ useImperativeHandle,
7
+ useRef,
8
+ useState,
9
+ } from "react"
10
+ import EyeIcon from "../../fundamentals/icons/eye-icon"
11
+ import EyeOffIcon from "../../fundamentals/icons/eye-off-icon"
12
+ import LockIcon from "../../fundamentals/icons/lock-icon"
13
+
14
+ type InputProps = React.InputHTMLAttributes<HTMLInputElement> & {
15
+ key?: string
16
+ onChange?: ChangeEventHandler<HTMLInputElement>
17
+ onFocus?: FocusEventHandler<HTMLInputElement>
18
+ props?: React.HTMLAttributes<HTMLDivElement>
19
+ }
20
+
21
+ const SigninInput = React.forwardRef(
22
+ (
23
+ {
24
+ placeholder,
25
+ name,
26
+ key,
27
+ onChange,
28
+ onFocus,
29
+ className,
30
+ type,
31
+ ...props
32
+ }: InputProps,
33
+ ref
34
+ ) => {
35
+ const inputRef = useRef(null)
36
+ const [showPassword, setShowPassword] = useState(false)
37
+ const [inputType, setInputType] = useState(type)
38
+
39
+ useEffect(() => {
40
+ if (type === "password" && showPassword) {
41
+ setInputType("text")
42
+ }
43
+
44
+ if (type === "password" && !showPassword) {
45
+ setInputType("password")
46
+ }
47
+ }, [type, showPassword])
48
+
49
+ useImperativeHandle(ref, () => inputRef.current)
50
+
51
+ return (
52
+ <div
53
+ className={clsx(
54
+ "rounded-rounded h-[40px] w-[300px] overflow-hidden border",
55
+ "bg-grey-5 inter-base-regular placeholder:text-grey-40",
56
+ "focus-within:shadow-input focus-within:border-violet-60",
57
+ "flex items-center",
58
+ {
59
+ "text-grey-40 pl-xsmall pointer-events-none focus-within:border-none focus-within:shadow-none":
60
+ props.readOnly,
61
+ },
62
+ className
63
+ )}
64
+ >
65
+ <input
66
+ className={clsx(
67
+ "remove-number-spinner leading-base w-full bg-transparent py-3 px-4 outline-none outline-0",
68
+ {
69
+ "pl-xsmall": props.readOnly,
70
+ }
71
+ )}
72
+ ref={inputRef}
73
+ name={name}
74
+ key={key || name}
75
+ placeholder={placeholder || "Placeholder"}
76
+ onChange={onChange}
77
+ onFocus={onFocus}
78
+ type={inputType}
79
+ {...props}
80
+ />
81
+ {type === "password" && (
82
+ <button
83
+ type="button"
84
+ onClick={() => setShowPassword(!showPassword)}
85
+ className="text-grey-40 focus:text-violet-60 px-4 focus:outline-none"
86
+ tabIndex={-1}
87
+ >
88
+ {showPassword ? <EyeIcon size={16} /> : <EyeOffIcon size={16} />}
89
+ </button>
90
+ )}
91
+ {props.readOnly && (
92
+ <LockIcon size={16} className="text-grey-40 mr-base" />
93
+ )}
94
+ </div>
95
+ )
96
+ }
97
+ )
98
+
99
+ SigninInput.displayName = "SigninInput"
100
+
101
+ export default SigninInput