@shipengine/elements 0.19.0 → 0.20.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 (343) hide show
  1. package/index.cjs +7790 -25698
  2. package/index.js +7785 -25696
  3. package/package.json +32 -22
  4. package/{components → src/components}/accordion/accordion.styles.d.ts +1 -1
  5. package/{components → src/components}/add-funds-form/add-funds-form.styles.d.ts +1 -1
  6. package/{components → src/components}/add-funds-form/add-funds-schema.d.ts +7 -7
  7. package/{components → src/components}/auto-funding-form/auto-funding-form.styles.d.ts +1 -1
  8. package/{components → src/components}/auto-funding-form/auto-funding-schema.d.ts +10 -10
  9. package/{components → src/components}/carrier-balance/carrier-balance.styles.d.ts +1 -1
  10. package/{components → src/components}/disclosure/disclosure.styles.d.ts +1 -1
  11. package/{components → src/components}/field/date-picker/date-picker.styles.d.ts +1 -1
  12. package/{components → src/components}/field/field.styles.d.ts +1 -1
  13. package/{components → src/components}/field/rate-card/cost-breakdown/cost-breakdown.styles.d.ts +1 -1
  14. package/{components → src/components}/field/rate-card/rate-card.styles.d.ts +1 -1
  15. package/{components → src/components}/field/rate-select/rate-select.styles.d.ts +1 -1
  16. package/{components → src/components}/fund-and-purchase/fund-and-purchase.styles.d.ts +1 -1
  17. package/src/components/history/history-actions/history-actions.styles.d.ts +1 -0
  18. package/{components → src/components}/items-breakdown/items-breakdown.styles.d.ts +1 -1
  19. package/src/components/label-layout/index.d.ts +1 -0
  20. package/src/components/label-layout/label-layout-purchase.d.ts +4 -0
  21. package/src/components/label-layout/label-layout-settings.d.ts +4 -0
  22. package/src/components/label-layout/label-layout.d.ts +4 -0
  23. package/src/components/label-layout/label-layout.styles.d.ts +1 -0
  24. package/{components → src/components}/link-action/link-action.d.ts +1 -1
  25. package/{components → src/components}/preset-descriptor/preset-descriptor.styles.d.ts +1 -1
  26. package/{components → src/components}/settings-card/settings-card.styles.d.ts +1 -1
  27. package/{components → src/components}/spacer/spacer.d.ts +1 -1
  28. package/{components → src/components}/templates/address-form/address-fields.styles.d.ts +1 -1
  29. package/{components → src/components}/templates/carrier-recovery-form/carrier-recovery-form.styles.d.ts +1 -1
  30. package/{components → src/components}/templates/carrier-terms-form/carrier-terms-form.styles.d.ts +1 -1
  31. package/{components → src/components}/templates/customs-item-form/customs-item-form-schema.d.ts +20 -20
  32. package/{components → src/components}/templates/edit-billing-form/edit-billing-form.styles.d.ts +1 -1
  33. package/{components → src/components}/templates/landing-page/landing-page.styles.d.ts +1 -1
  34. package/{components → src/components}/templates/list-carriers/list-carriers.d.ts +2 -1
  35. package/src/components/templates/list-carriers/list-carriers.styles.d.ts +1 -0
  36. package/{components → src/components}/templates/list-carriers-row/list-carriers-row.styles.d.ts +1 -1
  37. package/{components → src/components}/templates/manage-wallet/manage-wallet.styles.d.ts +1 -1
  38. package/{components → src/components}/templates/manage-warehouses/manage-warehouse.styles.d.ts +1 -1
  39. package/src/components/templates/onboarding/onboarding.styles.d.ts +1 -0
  40. package/{components → src/components}/templates/rate-form/rate-form.d.ts +4 -1
  41. package/{components → src/components}/templates/rate-form/rate-form.styles.d.ts +1 -1
  42. package/src/components/templates/wallet-card/wallet-card.styles.d.ts +1 -0
  43. package/{components → src/components}/templates/wallet-form/wallet-form.styles.d.ts +1 -1
  44. package/{elements → src/elements}/components/configure-shipment/hooks/use-rates-form.d.ts +2 -0
  45. package/{elements → src/elements}/components/configure-shipment/hooks/use-shipment-form.d.ts +2 -0
  46. package/{elements → src/elements}/components/list-carriers/hooks/use-list-connected-carriers.d.ts +2 -2
  47. package/{elements → src/elements}/components/purchase-label/hooks/use-import-sales-order.d.ts +2 -2
  48. package/{elements → src/elements}/components/purchase-label/hooks/use-load-shipment.d.ts +3 -3
  49. package/src/hooks/use-scrub-errors.d.ts +14 -0
  50. package/{locales → src/locales}/en/index.d.ts +17 -0
  51. package/{utilities → src/utilities}/styles.d.ts +1 -1
  52. package/components/history/history-actions/history-actions.styles.d.ts +0 -1
  53. package/components/templates/list-carriers/list-carriers.styles.d.ts +0 -1
  54. package/components/templates/onboarding/onboarding.styles.d.ts +0 -1
  55. package/components/templates/wallet-card/wallet-card.styles.d.ts +0 -1
  56. /package/{components → src/components}/accordion/accordion.d.ts +0 -0
  57. /package/{components → src/components}/accordion/index.d.ts +0 -0
  58. /package/{components → src/components}/add-funds-form/add-funds-form.d.ts +0 -0
  59. /package/{components → src/components}/add-funds-form/index.d.ts +0 -0
  60. /package/{components → src/components}/auto-funding-form/auto-funding-form.d.ts +0 -0
  61. /package/{components → src/components}/auto-funding-form/index.d.ts +0 -0
  62. /package/{components → src/components}/button-group/button-group.d.ts +0 -0
  63. /package/{components → src/components}/button-group/index.d.ts +0 -0
  64. /package/{components → src/components}/carrier-balance/carrier-balance.d.ts +0 -0
  65. /package/{components → src/components}/carrier-balance/index.d.ts +0 -0
  66. /package/{components → src/components}/cube/cube.d.ts +0 -0
  67. /package/{components → src/components}/cube/index.d.ts +0 -0
  68. /package/{components → src/components}/disclosure/disclosure.d.ts +0 -0
  69. /package/{components → src/components}/disclosure/index.d.ts +0 -0
  70. /package/{components → src/components}/error-boundary/error-boundary.d.ts +0 -0
  71. /package/{components → src/components}/error-boundary/index.d.ts +0 -0
  72. /package/{components → src/components}/field/checkbox-input/checkbox-input.d.ts +0 -0
  73. /package/{components → src/components}/field/checkbox-input/index.d.ts +0 -0
  74. /package/{components → src/components}/field/create-field-controller.d.ts +0 -0
  75. /package/{components → src/components}/field/credit-card-input/credit-card-input.d.ts +0 -0
  76. /package/{components → src/components}/field/credit-card-input/index.d.ts +0 -0
  77. /package/{components → src/components}/field/date-picker/date-picker.d.ts +0 -0
  78. /package/{components → src/components}/field/date-picker/index.d.ts +0 -0
  79. /package/{components → src/components}/field/expiration-input/expiration-input.d.ts +0 -0
  80. /package/{components → src/components}/field/expiration-input/index.d.ts +0 -0
  81. /package/{components → src/components}/field/fields.d.ts +0 -0
  82. /package/{components → src/components}/field/index.d.ts +0 -0
  83. /package/{components → src/components}/field/input-group/index.d.ts +0 -0
  84. /package/{components → src/components}/field/input-group/input-group.d.ts +0 -0
  85. /package/{components → src/components}/field/money-input/hooks/index.d.ts +0 -0
  86. /package/{components → src/components}/field/money-input/hooks/use-utils.d.ts +0 -0
  87. /package/{components → src/components}/field/money-input/index.d.ts +0 -0
  88. /package/{components → src/components}/field/money-input/money-input-styles.d.ts +0 -0
  89. /package/{components → src/components}/field/money-input/money-input.d.ts +0 -0
  90. /package/{components → src/components}/field/number-input/index.d.ts +0 -0
  91. /package/{components → src/components}/field/number-input/number-input.d.ts +0 -0
  92. /package/{components → src/components}/field/rate-card/cost-breakdown/cost-breakdown.d.ts +0 -0
  93. /package/{components → src/components}/field/rate-card/cost-breakdown/index.d.ts +0 -0
  94. /package/{components → src/components}/field/rate-card/index.d.ts +0 -0
  95. /package/{components → src/components}/field/rate-card/rate-card.d.ts +0 -0
  96. /package/{components → src/components}/field/rate-select/index.d.ts +0 -0
  97. /package/{components → src/components}/field/rate-select/rate-select.d.ts +0 -0
  98. /package/{components → src/components}/field/select/index.d.ts +0 -0
  99. /package/{components → src/components}/field/select/select.d.ts +0 -0
  100. /package/{components → src/components}/field/submit-button/index.d.ts +0 -0
  101. /package/{components → src/components}/field/submit-button/submit-button.d.ts +0 -0
  102. /package/{components → src/components}/field/switch/index.d.ts +0 -0
  103. /package/{components → src/components}/field/switch/switch.d.ts +0 -0
  104. /package/{components → src/components}/field/text-area/index.d.ts +0 -0
  105. /package/{components → src/components}/field/text-area/text-area.d.ts +0 -0
  106. /package/{components → src/components}/field/text-input/index.d.ts +0 -0
  107. /package/{components → src/components}/field/text-input/text-input.d.ts +0 -0
  108. /package/{components → src/components}/field-label/field-label.d.ts +0 -0
  109. /package/{components → src/components}/field-label/index.d.ts +0 -0
  110. /package/{components → src/components}/form-portal/form-portal.d.ts +0 -0
  111. /package/{components → src/components}/form-portal/index.d.ts +0 -0
  112. /package/{components → src/components}/fund-and-purchase/fund-and-purchase.d.ts +0 -0
  113. /package/{components → src/components}/fund-and-purchase/index.d.ts +0 -0
  114. /package/{components → src/components}/history/history-actions/history-actions.d.ts +0 -0
  115. /package/{components → src/components}/history/history-actions/index.d.ts +0 -0
  116. /package/{components → src/components}/history/history-body/history-body.d.ts +0 -0
  117. /package/{components → src/components}/history/history-body/index.d.ts +0 -0
  118. /package/{components → src/components}/history/history-list/history-list.d.ts +0 -0
  119. /package/{components → src/components}/history/history-list/index.d.ts +0 -0
  120. /package/{components → src/components}/history/history-row/history-row.d.ts +0 -0
  121. /package/{components → src/components}/history/history-row/index.d.ts +0 -0
  122. /package/{components → src/components}/history/history.d.ts +0 -0
  123. /package/{components → src/components}/history/index.d.ts +0 -0
  124. /package/{components → src/components}/index.d.ts +0 -0
  125. /package/{components → src/components}/inline-label/index.d.ts +0 -0
  126. /package/{components → src/components}/inline-label/inline-label.d.ts +0 -0
  127. /package/{components → src/components}/items-breakdown/index.d.ts +0 -0
  128. /package/{components → src/components}/items-breakdown/items-breakdown.d.ts +0 -0
  129. /package/{components → src/components}/link-action/index.d.ts +0 -0
  130. /package/{components → src/components}/loader/index.d.ts +0 -0
  131. /package/{components → src/components}/loader/loader.d.ts +0 -0
  132. /package/{components → src/components}/manage-funding/index.d.ts +0 -0
  133. /package/{components → src/components}/manage-funding/manage-funding.d.ts +0 -0
  134. /package/{components → src/components}/portal/index.d.ts +0 -0
  135. /package/{components → src/components}/portal/portal.d.ts +0 -0
  136. /package/{components → src/components}/preset-descriptor/index.d.ts +0 -0
  137. /package/{components → src/components}/preset-descriptor/preset-descriptor.d.ts +0 -0
  138. /package/{components → src/components}/settings-card/index.d.ts +0 -0
  139. /package/{components → src/components}/settings-card/settings-card.d.ts +0 -0
  140. /package/{components → src/components}/spacer/index.d.ts +0 -0
  141. /package/{components → src/components}/spread/index.d.ts +0 -0
  142. /package/{components → src/components}/spread/spread.d.ts +0 -0
  143. /package/{components → src/components}/story-notes/index.d.ts +0 -0
  144. /package/{components → src/components}/story-notes/story-notes.d.ts +0 -0
  145. /package/{components → src/components}/templates/add-carrier-form/add-carrier-form-schema.d.ts +0 -0
  146. /package/{components → src/components}/templates/add-carrier-form/add-carrier-form-test.d.ts +0 -0
  147. /package/{components → src/components}/templates/add-carrier-form/add-carrier-form.d.ts +0 -0
  148. /package/{components → src/components}/templates/add-carrier-form/index.d.ts +0 -0
  149. /package/{components → src/components}/templates/address-display/address-display.d.ts +0 -0
  150. /package/{components → src/components}/templates/address-display/index.d.ts +0 -0
  151. /package/{components → src/components}/templates/address-form/address-fields.d.ts +0 -0
  152. /package/{components → src/components}/templates/address-form/address-form-schema.d.ts +0 -0
  153. /package/{components → src/components}/templates/address-form/address-form.d.ts +0 -0
  154. /package/{components → src/components}/templates/address-form/address-schema.d.ts +0 -0
  155. /package/{components → src/components}/templates/address-form/index.d.ts +0 -0
  156. /package/{components → src/components}/templates/address-parser/address-parser-schema.d.ts +0 -0
  157. /package/{components → src/components}/templates/address-parser/address-parser.d.ts +0 -0
  158. /package/{components → src/components}/templates/address-parser/index.d.ts +0 -0
  159. /package/{components → src/components}/templates/address-preference-display/address-preference-display.d.ts +0 -0
  160. /package/{components → src/components}/templates/address-preference-display/index.d.ts +0 -0
  161. /package/{components → src/components}/templates/carrier-recovery-form/carrier-recovery-form-schema.d.ts +0 -0
  162. /package/{components → src/components}/templates/carrier-recovery-form/carrier-recovery-form.d.ts +0 -0
  163. /package/{components → src/components}/templates/carrier-recovery-form/index.d.ts +0 -0
  164. /package/{components → src/components}/templates/carrier-terms-form/carrier-terms-form-schema.d.ts +0 -0
  165. /package/{components → src/components}/templates/carrier-terms-form/carrier-terms-form.d.ts +0 -0
  166. /package/{components → src/components}/templates/carrier-terms-form/index.d.ts +0 -0
  167. /package/{components → src/components}/templates/completion-page/completion-page.d.ts +0 -0
  168. /package/{components → src/components}/templates/completion-page/index.d.ts +0 -0
  169. /package/{components → src/components}/templates/customs-item-form/customs-item-form.d.ts +0 -0
  170. /package/{components → src/components}/templates/customs-item-form/index.d.ts +0 -0
  171. /package/{components → src/components}/templates/customs-items-display/customs-items-display.d.ts +0 -0
  172. /package/{components → src/components}/templates/customs-items-display/customs-items-display.styles.d.ts +0 -0
  173. /package/{components → src/components}/templates/customs-items-display/index.d.ts +0 -0
  174. /package/{components → src/components}/templates/display-carrier-terms/display-carrier-terms.d.ts +0 -0
  175. /package/{components → src/components}/templates/display-carrier-terms/index.d.ts +0 -0
  176. /package/{components → src/components}/templates/edit-billing-form/edit-billing-form.d.ts +0 -0
  177. /package/{components → src/components}/templates/edit-billing-form/index.d.ts +0 -0
  178. /package/{components → src/components}/templates/index.d.ts +0 -0
  179. /package/{components → src/components}/templates/label/index.d.ts +0 -0
  180. /package/{components → src/components}/templates/label/label.d.ts +0 -0
  181. /package/{components → src/components}/templates/landing-page/index.d.ts +0 -0
  182. /package/{components → src/components}/templates/landing-page/landing-page-form-schema.d.ts +0 -0
  183. /package/{components → src/components}/templates/landing-page/landing-page-form.d.ts +0 -0
  184. /package/{components → src/components}/templates/landing-page/landing-page.d.ts +0 -0
  185. /package/{components → src/components}/templates/list-carriers/index.d.ts +0 -0
  186. /package/{components → src/components}/templates/list-carriers-row/index.d.ts +0 -0
  187. /package/{components → src/components}/templates/list-carriers-row/list-carriers-row.d.ts +0 -0
  188. /package/{components → src/components}/templates/manage-wallet/index.d.ts +0 -0
  189. /package/{components → src/components}/templates/manage-wallet/manage-wallet.d.ts +0 -0
  190. /package/{components → src/components}/templates/manage-warehouses/index.d.ts +0 -0
  191. /package/{components → src/components}/templates/manage-warehouses/manage-warehouses.d.ts +0 -0
  192. /package/{components → src/components}/templates/onboarding/index.d.ts +0 -0
  193. /package/{components → src/components}/templates/onboarding/onboarding.d.ts +0 -0
  194. /package/{components → src/components}/templates/rate-form/index.d.ts +0 -0
  195. /package/{components → src/components}/templates/rate-form/rate-schema.d.ts +0 -0
  196. /package/{components → src/components}/templates/shipment/index.d.ts +0 -0
  197. /package/{components → src/components}/templates/shipment/shipment.d.ts +0 -0
  198. /package/{components → src/components}/templates/shipment-form/index.d.ts +0 -0
  199. /package/{components → src/components}/templates/shipment-form/shipment-form.d.ts +0 -0
  200. /package/{components → src/components}/templates/shipment-form/shipment-schema.d.ts +0 -0
  201. /package/{components → src/components}/templates/suspend-sales-order/index.d.ts +0 -0
  202. /package/{components → src/components}/templates/suspend-sales-order/suspend-sales-order.d.ts +0 -0
  203. /package/{components → src/components}/templates/suspend-shipment/index.d.ts +0 -0
  204. /package/{components → src/components}/templates/suspend-shipment/suspend-shipment.d.ts +0 -0
  205. /package/{components → src/components}/templates/void-label/index.d.ts +0 -0
  206. /package/{components → src/components}/templates/void-label/void-label.d.ts +0 -0
  207. /package/{components → src/components}/templates/wallet-card/index.d.ts +0 -0
  208. /package/{components → src/components}/templates/wallet-card/wallet-card.d.ts +0 -0
  209. /package/{components → src/components}/templates/wallet-form/billing-fields.d.ts +0 -0
  210. /package/{components → src/components}/templates/wallet-form/edit-wallet-address-form.d.ts +0 -0
  211. /package/{components → src/components}/templates/wallet-form/index.d.ts +0 -0
  212. /package/{components → src/components}/templates/wallet-form/wallet-form.d.ts +0 -0
  213. /package/{components → src/components}/templates/wallet-form/wallet-schema.d.ts +0 -0
  214. /package/{components → src/components}/templates/wallet-history/index.d.ts +0 -0
  215. /package/{components → src/components}/templates/wallet-history/wallet-history.d.ts +0 -0
  216. /package/{components → src/components}/templates/warehouse-display/index.d.ts +0 -0
  217. /package/{components → src/components}/templates/warehouse-display/warehouse-display.d.ts +0 -0
  218. /package/{components → src/components}/templates/warehouse-form/index.d.ts +0 -0
  219. /package/{components → src/components}/templates/warehouse-form/warehouse-form-schema.d.ts +0 -0
  220. /package/{components → src/components}/templates/warehouse-form/warehouse-form.d.ts +0 -0
  221. /package/{components → src/components}/templates/warehouse-preference-select/index.d.ts +0 -0
  222. /package/{components → src/components}/templates/warehouse-preference-select/warehouse-preference-select.d.ts +0 -0
  223. /package/{components → src/components}/templates/warehouse-preference-wizard/index.d.ts +0 -0
  224. /package/{components → src/components}/templates/warehouse-preference-wizard/warehouse-preference-wizard.d.ts +0 -0
  225. /package/{constants → src/constants}/index.d.ts +0 -0
  226. /package/{constants → src/constants}/shipengine/address.d.ts +0 -0
  227. /package/{constants → src/constants}/shipengine/index.d.ts +0 -0
  228. /package/{elements → src/elements}/components/configure-shipment/configure-shipment.d.ts +0 -0
  229. /package/{elements → src/elements}/components/configure-shipment/hooks/index.d.ts +0 -0
  230. /package/{elements → src/elements}/components/configure-shipment/hooks/use-address.d.ts +0 -0
  231. /package/{elements → src/elements}/components/configure-shipment/hooks/use-customs.d.ts +0 -0
  232. /package/{elements → src/elements}/components/configure-shipment/hooks/use-presets.d.ts +0 -0
  233. /package/{elements → src/elements}/components/configure-shipment/hooks/use-request-rates.d.ts +0 -0
  234. /package/{elements → src/elements}/components/configure-shipment/index.d.ts +0 -0
  235. /package/{elements → src/elements}/components/index.d.ts +0 -0
  236. /package/{elements → src/elements}/components/list-carriers/index.d.ts +0 -0
  237. /package/{elements → src/elements}/components/list-carriers/list-carriers.d.ts +0 -0
  238. /package/{elements → src/elements}/components/manage-warehouses/index.d.ts +0 -0
  239. /package/{elements → src/elements}/components/manage-warehouses/manage-warehouses.d.ts +0 -0
  240. /package/{elements → src/elements}/components/onboarding/index.d.ts +0 -0
  241. /package/{elements → src/elements}/components/onboarding/onboarding.d.ts +0 -0
  242. /package/{elements → src/elements}/components/purchase-label/hooks/index.d.ts +0 -0
  243. /package/{elements → src/elements}/components/purchase-label/hooks/use-configure-shipment.d.ts +0 -0
  244. /package/{elements → src/elements}/components/purchase-label/hooks/use-pending-shipment.d.ts +0 -0
  245. /package/{elements → src/elements}/components/purchase-label/index.d.ts +0 -0
  246. /package/{elements → src/elements}/components/purchase-label/purchase-label-by-sales-order.d.ts +0 -0
  247. /package/{elements → src/elements}/components/purchase-label/purchase-label-by-shipment.d.ts +0 -0
  248. /package/{elements → src/elements}/components/purchase-label/purchase-label.d.ts +0 -0
  249. /package/{elements → src/elements}/components/shipment/index.d.ts +0 -0
  250. /package/{elements → src/elements}/components/shipment/shipment.d.ts +0 -0
  251. /package/{elements → src/elements}/components/void-label/index.d.ts +0 -0
  252. /package/{elements → src/elements}/components/void-label/void-label.d.ts +0 -0
  253. /package/{elements → src/elements}/components/wallet-history/index.d.ts +0 -0
  254. /package/{elements → src/elements}/components/wallet-history/wallet-history.d.ts +0 -0
  255. /package/{elements → src/elements}/index.d.ts +0 -0
  256. /package/{elements → src/elements}/list-carriers.d.ts +0 -0
  257. /package/{elements → src/elements}/manage-warehouses.d.ts +0 -0
  258. /package/{elements → src/elements}/onboarding.d.ts +0 -0
  259. /package/{elements → src/elements}/purchase-label.d.ts +0 -0
  260. /package/{elements → src/elements}/view-shipment.d.ts +0 -0
  261. /package/{elements → src/elements}/void-label.d.ts +0 -0
  262. /package/{elements → src/elements}/wallet-history.d.ts +0 -0
  263. /package/{extensions → src/extensions}/index.d.ts +0 -0
  264. /package/{extensions → src/extensions}/zod.d.ts +0 -0
  265. /package/{factories → src/factories}/index.d.ts +0 -0
  266. /package/{factories → src/factories}/shipengine/address.d.ts +0 -0
  267. /package/{factories → src/factories}/shipengine/carrier.d.ts +0 -0
  268. /package/{factories → src/factories}/shipengine/index.d.ts +0 -0
  269. /package/{factories → src/factories}/shipengine/label.d.ts +0 -0
  270. /package/{factories → src/factories}/shipengine/money.d.ts +0 -0
  271. /package/{factories → src/factories}/shipengine/order-source.d.ts +0 -0
  272. /package/{factories → src/factories}/shipengine/package.d.ts +0 -0
  273. /package/{factories → src/factories}/shipengine/resource.d.ts +0 -0
  274. /package/{factories → src/factories}/shipengine/sales-order.d.ts +0 -0
  275. /package/{factories → src/factories}/shipengine/service.d.ts +0 -0
  276. /package/{factories → src/factories}/shipengine/shipment.d.ts +0 -0
  277. /package/{factories → src/factories}/shipengine/wallet-history.d.ts +0 -0
  278. /package/{factories → src/factories}/shipengine/warehouse.d.ts +0 -0
  279. /package/{factories → src/factories}/shipengine/weight.d.ts +0 -0
  280. /package/{factories → src/factories}/utils.d.ts +0 -0
  281. /package/{hooks → src/hooks}/index.d.ts +0 -0
  282. /package/{hooks → src/hooks}/options/index.d.ts +0 -0
  283. /package/{hooks → src/hooks}/options/use-confirmation-options.d.ts +0 -0
  284. /package/{hooks → src/hooks}/options/use-country-code-options.d.ts +0 -0
  285. /package/{hooks → src/hooks}/options/use-customs-contents-options.d.ts +0 -0
  286. /package/{hooks → src/hooks}/options/use-customs-non-delivery-options.d.ts +0 -0
  287. /package/{hooks → src/hooks}/options/use-expiration-month-options.d.ts +0 -0
  288. /package/{hooks → src/hooks}/options/use-insurance-provider-options.d.ts +0 -0
  289. /package/{hooks → src/hooks}/options/use-package-options.d.ts +0 -0
  290. /package/{hooks → src/hooks}/options/use-rate-options.d.ts +0 -0
  291. /package/{hooks → src/hooks}/options/use-service-code-options.d.ts +0 -0
  292. /package/{hooks → src/hooks}/options/use-shipping-presets-options.d.ts +0 -0
  293. /package/{hooks → src/hooks}/options/use-state-code-options.d.ts +0 -0
  294. /package/{hooks → src/hooks}/options/use-warehouse-options.d.ts +0 -0
  295. /package/{hooks → src/hooks}/use-carrier-metadata.d.ts +0 -0
  296. /package/{hooks → src/hooks}/use-elements.d.ts +0 -0
  297. /package/{hooks → src/hooks}/use-nested-form.d.ts +0 -0
  298. /package/{hooks → src/hooks}/use-page-layout.d.ts +0 -0
  299. /package/{hooks → src/hooks}/use-root-portal.d.ts +0 -0
  300. /package/{hooks → src/hooks}/use-run-once-on-true.d.ts +0 -0
  301. /package/{hooks → src/hooks}/use-toggle.d.ts +0 -0
  302. /package/{hooks → src/hooks}/use-warehouse-validation.d.ts +0 -0
  303. /package/{index.d.ts → src/index.d.ts} +0 -0
  304. /package/{locales → src/locales}/index.d.ts +0 -0
  305. /package/{mocks → src/mocks}/browser.d.ts +0 -0
  306. /package/{mocks → src/mocks}/carriers/handlers.d.ts +0 -0
  307. /package/{mocks → src/mocks}/carriers/index.d.ts +0 -0
  308. /package/{mocks → src/mocks}/index.d.ts +0 -0
  309. /package/{mocks → src/mocks}/server.d.ts +0 -0
  310. /package/{mocks → src/mocks}/warehouses/handlers.d.ts +0 -0
  311. /package/{mocks → src/mocks}/warehouses/index.d.ts +0 -0
  312. /package/{providers → src/providers}/giger-provider.d.ts +0 -0
  313. /package/{providers → src/providers}/index.d.ts +0 -0
  314. /package/{register.d.ts → src/register.d.ts} +0 -0
  315. /package/{schemas → src/schemas}/index.d.ts +0 -0
  316. /package/{schemas → src/schemas}/shipengine/index.d.ts +0 -0
  317. /package/{schemas → src/schemas}/shipengine/money.d.ts +0 -0
  318. /package/{schemas → src/schemas}/shipengine/phone.d.ts +0 -0
  319. /package/{testing → src/testing}/index.d.ts +0 -0
  320. /package/{testing → src/testing}/render.d.ts +0 -0
  321. /package/{types → src/types}/carrier-metadata.d.ts +0 -0
  322. /package/{types → src/types}/index.d.ts +0 -0
  323. /package/{types → src/types}/shipping-preset/index.d.ts +0 -0
  324. /package/{types → src/types}/shipping-preset/shipping-preset.d.ts +0 -0
  325. /package/{utilities → src/utilities}/create-dictionary.d.ts +0 -0
  326. /package/{utilities → src/utilities}/date.d.ts +0 -0
  327. /package/{utilities → src/utilities}/error.d.ts +0 -0
  328. /package/{utilities → src/utilities}/form-logger.d.ts +0 -0
  329. /package/{utilities → src/utilities}/index.d.ts +0 -0
  330. /package/{utilities → src/utilities}/money.d.ts +0 -0
  331. /package/{utilities → src/utilities}/predicates/index.d.ts +0 -0
  332. /package/{utilities → src/utilities}/predicates/isString.d.ts +0 -0
  333. /package/{utilities → src/utilities}/rates.d.ts +0 -0
  334. /package/{utilities → src/utilities}/shipengine/address.d.ts +0 -0
  335. /package/{utilities → src/utilities}/shipengine/carrier.d.ts +0 -0
  336. /package/{utilities → src/utilities}/shipengine/dimensions.d.ts +0 -0
  337. /package/{utilities → src/utilities}/shipengine/index.d.ts +0 -0
  338. /package/{utilities → src/utilities}/shipengine/package.d.ts +0 -0
  339. /package/{utilities → src/utilities}/shipengine/sales-order.d.ts +0 -0
  340. /package/{utilities → src/utilities}/shipengine/shipment.d.ts +0 -0
  341. /package/{utilities → src/utilities}/shipengine/weight.d.ts +0 -0
  342. /package/{utilities → src/utilities}/string.d.ts +0 -0
  343. /package/{utilities → src/utilities}/validation.d.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/elements",
3
- "version": "0.19.0",
3
+ "version": "0.20.1",
4
4
  "typedoc": {
5
5
  "entryPoint": "./src/index.ts",
6
6
  "readmeFile": "../../README.md",
@@ -14,30 +14,40 @@
14
14
  "msw": {
15
15
  "workerDirectory": "public"
16
16
  },
17
+ "publishConfig": {
18
+ "access": "restricted"
19
+ },
17
20
  "module": "./index.js",
18
21
  "main": "./index.cjs",
19
22
  "type": "module",
20
- "types": "./index.d.ts",
23
+ "types": "./src/index.d.ts",
21
24
  "dependencies": {
22
- "react": "^18.2.0",
23
- "@emotion/react": "^11.10.0",
24
- "@packlink/brands": "^3.18.0",
25
- "react-hook-form": "^7.31.2",
26
- "@shipengine/api": "0.19.0",
27
- "@shipengine/react": "0.19.0",
28
- "zod": "^3.17.3",
29
- "@emotion/css": "^11.10.5",
30
- "humps": "^2.0.1",
31
- "react-datepicker": "^4.8.0",
32
- "react-query": "^3.39.3",
33
- "react-dom": "^18.2.0",
34
- "libphonenumber-js": "^1.10.14",
35
- "@faker-js/faker": "^7.3.0",
36
- "js-base64": "^3.7.2",
37
- "card-validator": "^8.1.1",
38
- "i18next-browser-languagedetector": "^6.1.4",
39
- "stylis": "^4.1.2",
40
- "axios": "^0.26.1",
41
- "@hookform/resolvers": "2.9.1"
25
+ "@emotion/cache": "11.10.5",
26
+ "@emotion/css": "11.10.5",
27
+ "@emotion/memoize": "0.8.0",
28
+ "@emotion/react": "11.10.0",
29
+ "@emotion/serialize": "1.1.1",
30
+ "@faker-js/faker": "7.6.0",
31
+ "@hookform/resolvers": "2.9.1",
32
+ "@packlink/brands": "3.24.0",
33
+ "@packlink/giger-theme": "1.3.1",
34
+ "@shipengine/api": "0.19.1",
35
+ "@shipengine/react": "0.19.1",
36
+ "@storybook/manager-api": "7.0.0-rc.1",
37
+ "@storybook/theming": "7.0.0-rc.1",
38
+ "axios": "0.26.1",
39
+ "card-validator": "8.1.1",
40
+ "humps": "2.0.1",
41
+ "i18next-browser-languagedetector": "6.1.8",
42
+ "js-base64": "3.7.3",
43
+ "libphonenumber-js": "1.10.14",
44
+ "lodash": "4.17.21",
45
+ "react": "18.2.0",
46
+ "react-datepicker": "4.8.0",
47
+ "react-dom": "18.2.0",
48
+ "react-hook-form": "7.40.0",
49
+ "react-query": "3.39.3",
50
+ "stylis": "4.1.3",
51
+ "zod": "3.19.1"
42
52
  }
43
53
  }
@@ -1,5 +1,5 @@
1
1
  import { SerializedStyles } from "@emotion/react";
2
- import { Theme } from "@packlink/brands";
2
+ import { Theme } from "@packlink/giger-theme";
3
3
  export declare const getAccordionSummaryStyles: (theme: Theme) => SerializedStyles;
4
4
  export declare const getAccordionSummaryWrapperStyles: (theme: Theme) => SerializedStyles;
5
5
  export declare const getIconStyles: (theme: Theme) => SerializedStyles;
@@ -2,5 +2,5 @@ type GetStylesProps = {
2
2
  isDisabled?: boolean;
3
3
  isSelected?: boolean;
4
4
  };
5
- export declare const getStyles: ({ isDisabled, isSelected }?: GetStylesProps) => Record<"chip" | "chipList" | "fundsInput", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
5
+ export declare const getStyles: ({ isDisabled, isSelected }?: GetStylesProps) => Record<"chip" | "chipList" | "fundsInput", import("@emotion/serialize").Interpolation<import("@packlink/giger-theme/dist/lib/Theme").Theme>>;
6
6
  export {};
@@ -2,33 +2,33 @@ import { z } from "zod";
2
2
  export declare const getAddFundsSchema: (minimumAmount?: number) => z.ZodEffects<z.ZodObject<{
3
3
  funds: z.ZodObject<z.extendShape<{
4
4
  amount: z.ZodNumber;
5
- currency: z.ZodNativeEnum<typeof import("@shipengine/api").Currency>;
5
+ currency: z.ZodNativeEnum<typeof import("dist/shipengine-api/src").Currency>;
6
6
  }, {
7
7
  amount: z.ZodNumber;
8
8
  }>, "strip", z.ZodTypeAny, {
9
9
  amount: number;
10
- currency: import("@shipengine/api").Currency;
10
+ currency: import("dist/shipengine-api/src").Currency;
11
11
  }, {
12
12
  amount: number;
13
- currency: import("@shipengine/api").Currency;
13
+ currency: import("dist/shipengine-api/src").Currency;
14
14
  }>;
15
15
  }, "strip", z.ZodTypeAny, {
16
16
  funds: {
17
17
  amount: number;
18
- currency: import("@shipengine/api").Currency;
18
+ currency: import("dist/shipengine-api/src").Currency;
19
19
  };
20
20
  }, {
21
21
  funds: {
22
22
  amount: number;
23
- currency: import("@shipengine/api").Currency;
23
+ currency: import("dist/shipengine-api/src").Currency;
24
24
  };
25
25
  }>, {
26
26
  amount: number;
27
- currency: import("@shipengine/api").Currency;
27
+ currency: import("dist/shipengine-api/src").Currency;
28
28
  }, {
29
29
  funds: {
30
30
  amount: number;
31
- currency: import("@shipengine/api").Currency;
31
+ currency: import("dist/shipengine-api/src").Currency;
32
32
  };
33
33
  }>;
34
34
  type AddFundsFormSchema = ReturnType<typeof getAddFundsSchema>;
@@ -1,2 +1,2 @@
1
- import { Theme } from "@packlink/brands";
1
+ import { Theme } from "@packlink/giger-theme";
2
2
  export declare const getStyles: (showForm: boolean) => Record<"edit" | "form" | "input" | "marginLeft", import("@emotion/serialize").Interpolation<Theme>>;
@@ -3,50 +3,50 @@ export declare const autoFundingSchema: z.ZodObject<{
3
3
  isEnabled: z.ZodBoolean;
4
4
  lowBalancePurchaseThreshold: z.ZodObject<z.extendShape<{
5
5
  amount: z.ZodNumber;
6
- currency: z.ZodNativeEnum<typeof import("@shipengine/api").Currency>;
6
+ currency: z.ZodNativeEnum<typeof import("dist/shipengine-api/src").Currency>;
7
7
  }, {
8
8
  amount: z.ZodNumber;
9
9
  }>, "strip", z.ZodTypeAny, {
10
10
  amount: number;
11
- currency: import("@shipengine/api").Currency;
11
+ currency: import("dist/shipengine-api/src").Currency;
12
12
  }, {
13
13
  amount: number;
14
- currency: import("@shipengine/api").Currency;
14
+ currency: import("dist/shipengine-api/src").Currency;
15
15
  }>;
16
16
  maximumPurchasesPerDay: z.ZodNumber;
17
17
  purchaseAmount: z.ZodObject<z.extendShape<{
18
18
  amount: z.ZodNumber;
19
- currency: z.ZodNativeEnum<typeof import("@shipengine/api").Currency>;
19
+ currency: z.ZodNativeEnum<typeof import("dist/shipengine-api/src").Currency>;
20
20
  }, {
21
21
  amount: z.ZodNumber;
22
22
  }>, "strip", z.ZodTypeAny, {
23
23
  amount: number;
24
- currency: import("@shipengine/api").Currency;
24
+ currency: import("dist/shipengine-api/src").Currency;
25
25
  }, {
26
26
  amount: number;
27
- currency: import("@shipengine/api").Currency;
27
+ currency: import("dist/shipengine-api/src").Currency;
28
28
  }>;
29
29
  }, "strip", z.ZodTypeAny, {
30
30
  isEnabled: boolean;
31
31
  lowBalancePurchaseThreshold: {
32
32
  amount: number;
33
- currency: import("@shipengine/api").Currency;
33
+ currency: import("dist/shipengine-api/src").Currency;
34
34
  };
35
35
  maximumPurchasesPerDay: number;
36
36
  purchaseAmount: {
37
37
  amount: number;
38
- currency: import("@shipengine/api").Currency;
38
+ currency: import("dist/shipengine-api/src").Currency;
39
39
  };
40
40
  }, {
41
41
  isEnabled: boolean;
42
42
  lowBalancePurchaseThreshold: {
43
43
  amount: number;
44
- currency: import("@shipengine/api").Currency;
44
+ currency: import("dist/shipengine-api/src").Currency;
45
45
  };
46
46
  maximumPurchasesPerDay: number;
47
47
  purchaseAmount: {
48
48
  amount: number;
49
- currency: import("@shipengine/api").Currency;
49
+ currency: import("dist/shipengine-api/src").Currency;
50
50
  };
51
51
  }>;
52
52
  export type AutoFundingFormFields = z.input<typeof autoFundingSchema>;
@@ -1 +1 @@
1
- export declare const getStyles: (balance?: number) => Record<"balanceText", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
1
+ export declare const getStyles: (balance?: number) => Record<"balanceText", import("@emotion/serialize").Interpolation<import("@packlink/giger-theme/dist/lib/Theme").Theme>>;
@@ -1 +1 @@
1
- export declare const styles: Record<"container" | "content" | "icon" | "toggle", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
1
+ export declare const styles: Record<"container" | "content" | "icon" | "toggle", import("@emotion/serialize").Interpolation<import("@packlink/giger-theme/dist/lib/Theme").Theme>>;
@@ -1,3 +1,3 @@
1
- import { Theme } from "@packlink/brands";
1
+ import { Theme } from "@packlink/giger-theme";
2
2
  export declare const getPopperStyles: (theme: Theme) => string;
3
3
  export declare const getWrapperStyles: (theme: Theme) => string;
@@ -1,4 +1,4 @@
1
- import { Theme } from "@packlink/brands";
1
+ import { Theme } from "@packlink/giger-theme";
2
2
  export declare const getOverrideStyles: (theme: Theme) => {
3
3
  "&& input, && span[role='button']": {
4
4
  cursor: string;
@@ -1,5 +1,5 @@
1
1
  import { SerializedStyles } from "@emotion/react";
2
- import { Theme } from "@packlink/brands";
2
+ import { Theme } from "@packlink/giger-theme";
3
3
  export declare const getAsideStyles: (theme: Theme) => SerializedStyles;
4
4
  export declare const getPriceStyles: (theme: Theme) => SerializedStyles;
5
5
  export declare const getTableStyles: (theme: Theme) => SerializedStyles;
@@ -1,5 +1,5 @@
1
1
  import { SerializedStyles } from "@emotion/react";
2
- import { Theme } from "@packlink/brands";
2
+ import { Theme } from "@packlink/giger-theme";
3
3
  export declare const getRateCardFirstLineSize: (theme: Theme) => string;
4
4
  export declare const getArticleStyles: (theme: Theme) => SerializedStyles;
5
5
  export declare const getArticleNonSelectedStyles: (theme: Theme) => SerializedStyles;
@@ -1,3 +1,3 @@
1
1
  import { SerializedStyles } from "@emotion/react";
2
- import { Theme } from "@packlink/brands";
2
+ import { Theme } from "@packlink/giger-theme";
3
3
  export declare const getRateCardOptionStyles: (theme: Theme) => SerializedStyles;
@@ -1 +1 @@
1
- export declare const getStyles: (isCustomAmount?: boolean) => Record<"balanceText" | "container" | "formExtension" | "saveRateButton", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
1
+ export declare const getStyles: (isCustomAmount?: boolean) => Record<"balanceText" | "container" | "formExtension" | "saveRateButton", import("@emotion/serialize").Interpolation<import("@packlink/giger-theme/dist/lib/Theme").Theme>>;
@@ -0,0 +1 @@
1
+ export declare const styles: Record<"dateRangeInput", import("@emotion/serialize").Interpolation<import("@packlink/giger-theme/dist/lib/Theme").Theme>>;
@@ -1,3 +1,3 @@
1
- import { Theme } from "@packlink/brands";
1
+ import { Theme } from "@packlink/giger-theme";
2
2
  export declare const getNumericCellStyle: (theme: Theme) => import("@emotion/utils").SerializedStyles;
3
3
  export declare const getTableWrapperStyles: (theme: Theme) => import("@emotion/utils").SerializedStyles;
@@ -0,0 +1 @@
1
+ export * from "./label-layout";
@@ -0,0 +1,4 @@
1
+ export type LabelLayoutSettingsProps = {
2
+ updateLabelLayout: (newLabelLayout: string) => void;
3
+ };
4
+ export declare const LabelLayoutPurchase: ({ updateLabelLayout }: LabelLayoutSettingsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export type LabelLayoutSettingsProps = {
2
+ updateLabelLayout: (newLabelLayout: string) => void;
3
+ };
4
+ export declare const LabelLayoutSettings: ({ updateLabelLayout }: LabelLayoutSettingsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export type LabelLayoutProps = {
2
+ display: "settings" | "purchase";
3
+ };
4
+ export declare const LabelLayout: ({ display }: LabelLayoutProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const styles: Record<"subtitle" | "letter" | "button" | "buttonContainer" | "headingContainer" | "icon" | "letterInner" | "letterLabel" | "selectedLetter" | "selectedThermal" | "thermal" | "thermalIcon" | "thermalInner" | "thermalLabel", import("@emotion/serialize").Interpolation<import("@packlink/giger-theme/dist/lib/Theme").Theme>>;
@@ -1,5 +1,5 @@
1
- import { IconNames } from "@packlink/brands";
2
1
  import { ILinkProps } from "@packlink/giger";
2
+ import { IconNames } from "@packlink/giger-theme";
3
3
  declare const icons: {
4
4
  readonly add: IconNames.ADD;
5
5
  readonly download: IconNames.DOWNLOAD;
@@ -1,5 +1,5 @@
1
1
  import { SerializedStyles } from "@emotion/react";
2
- import { Theme } from "@packlink/brands";
2
+ import { Theme } from "@packlink/giger-theme";
3
3
  export declare const getContainerStyles: (theme: Theme) => SerializedStyles;
4
4
  export declare const getDimensionStyles: (theme: Theme) => SerializedStyles;
5
5
  export declare const getServiceNameStyles: (theme: Theme) => SerializedStyles;
@@ -1 +1 @@
1
- export declare const styles: Record<"body" | "container" | "header" | "title" | "verticalContainer", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
1
+ export declare const styles: Record<"body" | "container" | "header" | "title" | "verticalContainer", import("@emotion/serialize").Interpolation<import("@packlink/giger-theme/dist/lib/Theme").Theme>>;
@@ -1,4 +1,4 @@
1
- import { Theme } from "@packlink/brands";
1
+ import { Theme } from "@packlink/giger-theme";
2
2
  export type SpacerProps = {
3
3
  displayOn?: keyof Theme["breakPoints"];
4
4
  multiplier?: number;
@@ -1 +1 @@
1
- export declare const styles: Record<"grow" | "stateWrapper" | "stateZipWrapper" | "zipWrapper", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
1
+ export declare const styles: Record<"grow" | "stateWrapper" | "stateZipWrapper" | "zipWrapper", import("@emotion/serialize").Interpolation<import("@packlink/giger-theme/dist/lib/Theme").Theme>>;
@@ -1 +1 @@
1
- export declare const styles: Record<"grid" | "heading" | "subtitle", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
1
+ export declare const styles: Record<"grid" | "heading" | "subtitle", import("@emotion/serialize").Interpolation<import("@packlink/giger-theme/dist/lib/Theme").Theme>>;
@@ -1 +1 @@
1
- export declare const styles: Record<"agreement" | "carrierLogos" | "close" | "link" | "links" | "listItems" | "terms" | "termsForm" | "termsList" | "well", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
1
+ export declare const styles: Record<"agreement" | "carrierLogos" | "close" | "link" | "links" | "listItems" | "terms" | "termsForm" | "termsList" | "well", import("@emotion/serialize").Interpolation<import("@packlink/giger-theme/dist/lib/Theme").Theme>>;
@@ -8,24 +8,24 @@ export declare const getCustomsItemFormSchema: (shipToCountry?: string) => z.Zod
8
8
  quantity: z.ZodNumber;
9
9
  value: z.ZodObject<{
10
10
  amount: z.ZodNumber;
11
- currency: z.ZodNativeEnum<typeof import("@shipengine/api").Currency>;
11
+ currency: z.ZodNativeEnum<typeof import("dist/shipengine-api/src").Currency>;
12
12
  }, "strip", z.ZodTypeAny, {
13
13
  amount: number;
14
- currency: import("@shipengine/api").Currency;
14
+ currency: import("dist/shipengine-api/src").Currency;
15
15
  }, {
16
16
  amount: number;
17
- currency: import("@shipengine/api").Currency;
17
+ currency: import("dist/shipengine-api/src").Currency;
18
18
  }>;
19
19
  }, "strip", z.ZodTypeAny, {
20
20
  value: {
21
21
  amount: number;
22
- currency: import("@shipengine/api").Currency;
22
+ currency: import("dist/shipengine-api/src").Currency;
23
23
  };
24
24
  quantity: number;
25
25
  }, {
26
26
  value: {
27
27
  amount: number;
28
- currency: import("@shipengine/api").Currency;
28
+ currency: import("dist/shipengine-api/src").Currency;
29
29
  };
30
30
  quantity: number;
31
31
  }>;
@@ -39,7 +39,7 @@ export declare const getCustomsItemFormSchema: (shipToCountry?: string) => z.Zod
39
39
  valueQuantity: {
40
40
  value: {
41
41
  amount: number;
42
- currency: import("@shipengine/api").Currency;
42
+ currency: import("dist/shipengine-api/src").Currency;
43
43
  };
44
44
  quantity: number;
45
45
  };
@@ -51,7 +51,7 @@ export declare const getCustomsItemFormSchema: (shipToCountry?: string) => z.Zod
51
51
  valueQuantity: {
52
52
  value: {
53
53
  amount: number;
54
- currency: import("@shipengine/api").Currency;
54
+ currency: import("dist/shipengine-api/src").Currency;
55
55
  };
56
56
  quantity: number;
57
57
  };
@@ -59,7 +59,7 @@ export declare const getCustomsItemFormSchema: (shipToCountry?: string) => z.Zod
59
59
  quantity: number;
60
60
  value: {
61
61
  amount: number;
62
- currency: import("@shipengine/api").Currency;
62
+ currency: import("dist/shipengine-api/src").Currency;
63
63
  };
64
64
  customsItemId?: string | undefined;
65
65
  harmonizedTariffCode?: string | undefined;
@@ -69,7 +69,7 @@ export declare const getCustomsItemFormSchema: (shipToCountry?: string) => z.Zod
69
69
  quantity: number;
70
70
  value: {
71
71
  amount: number;
72
- currency: import("@shipengine/api").Currency;
72
+ currency: import("dist/shipengine-api/src").Currency;
73
73
  };
74
74
  customsItemId?: string | undefined;
75
75
  countryOfOrigin: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BN" | "BG" | "BF" | "BI" | "CA" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FM" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "VI" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
@@ -83,7 +83,7 @@ export declare const getCustomsItemFormSchema: (shipToCountry?: string) => z.Zod
83
83
  valueQuantity: {
84
84
  value: {
85
85
  amount: number;
86
- currency: import("@shipengine/api").Currency;
86
+ currency: import("dist/shipengine-api/src").Currency;
87
87
  };
88
88
  quantity: number;
89
89
  };
@@ -96,24 +96,24 @@ export declare const getCustomsItemFormSchema: (shipToCountry?: string) => z.Zod
96
96
  quantity: z.ZodNumber;
97
97
  value: z.ZodObject<{
98
98
  amount: z.ZodNumber;
99
- currency: z.ZodNativeEnum<typeof import("@shipengine/api").Currency>;
99
+ currency: z.ZodNativeEnum<typeof import("dist/shipengine-api/src").Currency>;
100
100
  }, "strip", z.ZodTypeAny, {
101
101
  amount: number;
102
- currency: import("@shipengine/api").Currency;
102
+ currency: import("dist/shipengine-api/src").Currency;
103
103
  }, {
104
104
  amount: number;
105
- currency: import("@shipengine/api").Currency;
105
+ currency: import("dist/shipengine-api/src").Currency;
106
106
  }>;
107
107
  }, "strip", z.ZodTypeAny, {
108
108
  value: {
109
109
  amount: number;
110
- currency: import("@shipengine/api").Currency;
110
+ currency: import("dist/shipengine-api/src").Currency;
111
111
  };
112
112
  quantity: number;
113
113
  }, {
114
114
  value: {
115
115
  amount: number;
116
- currency: import("@shipengine/api").Currency;
116
+ currency: import("dist/shipengine-api/src").Currency;
117
117
  };
118
118
  quantity: number;
119
119
  }>;
@@ -125,7 +125,7 @@ export declare const getCustomsItemFormSchema: (shipToCountry?: string) => z.Zod
125
125
  valueQuantity: {
126
126
  value: {
127
127
  amount: number;
128
- currency: import("@shipengine/api").Currency;
128
+ currency: import("dist/shipengine-api/src").Currency;
129
129
  };
130
130
  quantity: number;
131
131
  };
@@ -137,7 +137,7 @@ export declare const getCustomsItemFormSchema: (shipToCountry?: string) => z.Zod
137
137
  valueQuantity: {
138
138
  value: {
139
139
  amount: number;
140
- currency: import("@shipengine/api").Currency;
140
+ currency: import("dist/shipengine-api/src").Currency;
141
141
  };
142
142
  quantity: number;
143
143
  };
@@ -145,7 +145,7 @@ export declare const getCustomsItemFormSchema: (shipToCountry?: string) => z.Zod
145
145
  quantity: number;
146
146
  value: {
147
147
  amount: number;
148
- currency: import("@shipengine/api").Currency;
148
+ currency: import("dist/shipengine-api/src").Currency;
149
149
  };
150
150
  customsItemId?: string | undefined;
151
151
  harmonizedTariffCode?: string | undefined;
@@ -155,7 +155,7 @@ export declare const getCustomsItemFormSchema: (shipToCountry?: string) => z.Zod
155
155
  quantity: number;
156
156
  value: {
157
157
  amount: number;
158
- currency: import("@shipengine/api").Currency;
158
+ currency: import("dist/shipengine-api/src").Currency;
159
159
  };
160
160
  customsItemId?: string | undefined;
161
161
  countryOfOrigin: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BN" | "BG" | "BF" | "BI" | "CA" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FM" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "VI" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
@@ -169,7 +169,7 @@ export declare const getCustomsItemFormSchema: (shipToCountry?: string) => z.Zod
169
169
  valueQuantity: {
170
170
  value: {
171
171
  amount: number;
172
- currency: import("@shipengine/api").Currency;
172
+ currency: import("dist/shipengine-api/src").Currency;
173
173
  };
174
174
  quantity: number;
175
175
  };
@@ -1 +1 @@
1
- export declare const styles: Record<"boldLink" | "container" | "heading" | "subtitle", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
1
+ export declare const styles: Record<"boldLink" | "container" | "heading" | "subtitle", import("@emotion/serialize").Interpolation<import("@packlink/giger-theme/dist/lib/Theme").Theme>>;
@@ -1 +1 @@
1
- export declare const styles: Record<"container" | "description" | "header", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
1
+ export declare const styles: Record<"container" | "description" | "header", import("@emotion/serialize").Interpolation<import("@packlink/giger-theme/dist/lib/Theme").Theme>>;
@@ -2,8 +2,9 @@ import { CarrierConnection, CodedError } from "@shipengine/api";
2
2
  import { ConnectedCarrierMetadata } from "../../../elements/components/list-carriers/hooks/use-list-connected-carriers";
3
3
  export type ListCarriersProps = {
4
4
  carriers?: ConnectedCarrierMetadata[];
5
+ errors?: CodedError[] | null;
5
6
  isLoading?: boolean;
6
7
  onRegisterCarrier: (payload: CarrierConnection) => Promise<void>;
7
8
  registerCarrierErrors?: CodedError[] | null;
8
9
  };
9
- export declare const ListCarriers: ({ carriers, isLoading, onRegisterCarrier, registerCarrierErrors, }: ListCarriersProps) => import("@emotion/react/jsx-runtime").JSX.Element;
10
+ export declare const ListCarriers: ({ carriers, errors, isLoading, onRegisterCarrier, registerCarrierErrors, }: ListCarriersProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const styles: Record<"carriersList" | "skeletonLogoContainer" | "skeletonRow", import("@emotion/serialize").Interpolation<import("@packlink/giger-theme/dist/lib/Theme").Theme>>;
@@ -1 +1 @@
1
- export declare const getStyles: (isConnected?: boolean) => Record<"connectButton" | "container" | "logoContainer" | "rowContainer", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
1
+ export declare const getStyles: (isConnected?: boolean) => Record<"connectButton" | "container" | "logoContainer" | "rowContainer", import("@emotion/serialize").Interpolation<import("@packlink/giger-theme/dist/lib/Theme").Theme>>;
@@ -1 +1 @@
1
- export declare const styles: Record<"container" | "subtitle" | "headingContainer", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
1
+ export declare const styles: Record<"container" | "subtitle" | "headingContainer", import("@emotion/serialize").Interpolation<import("@packlink/giger-theme/dist/lib/Theme").Theme>>;
@@ -1 +1 @@
1
- export declare const styles: Record<"cardSpacing" | "header" | "well", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
1
+ export declare const styles: Record<"cardSpacing" | "header" | "well", import("@emotion/serialize").Interpolation<import("@packlink/giger-theme/dist/lib/Theme").Theme>>;
@@ -0,0 +1 @@
1
+ export declare const styles: Record<"step" | "wrapper", import("@emotion/serialize").Interpolation<import("@packlink/giger-theme/dist/lib/Theme").Theme>>;
@@ -9,6 +9,8 @@ export type RateFormFeatures = {
9
9
  export type RateFormProps = {
10
10
  carriers?: SE.Carrier[];
11
11
  disabled?: boolean;
12
+ displayableErrors?: string[];
13
+ displayableLabelErrors?: string[];
12
14
  errors?: SE.CodedError[];
13
15
  features?: RateFormFeatures;
14
16
  isLoading?: boolean;
@@ -16,7 +18,8 @@ export type RateFormProps = {
16
18
  onSave?: (rate: Pick<SE.Rate, "carrierId" | "serviceCode">) => Promise<void> | void;
17
19
  onSelectRate?: (rateId: string) => void;
18
20
  onSubmit?: (rateId: string) => Promise<void> | void;
21
+ outOfBandDisplayableErrors?: string[];
19
22
  rates?: SE.Rate[];
20
23
  shipment?: SE.SalesOrderShipment;
21
24
  };
22
- export declare const RateForm: ({ carriers, disabled, errors, features, labelErrors, isLoading, onSave, onSelectRate, onSubmit, rates, shipment, }: RateFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
25
+ export declare const RateForm: ({ carriers, disabled, errors, displayableErrors, displayableLabelErrors, features, labelErrors, isLoading, onSave, onSelectRate, onSubmit, rates, shipment, outOfBandDisplayableErrors, }: RateFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- export declare const styles: Record<"fundAndPurchase" | "ratesInterstitial" | "showMoreOrLessRatesButton", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
1
+ export declare const styles: Record<"fundAndPurchase" | "ratesInterstitial" | "showMoreOrLessRatesButton", import("@emotion/serialize").Interpolation<import("@packlink/giger-theme/dist/lib/Theme").Theme>>;
@@ -0,0 +1 @@
1
+ export declare const styles: Record<"container" | "icon", import("@emotion/serialize").Interpolation<import("@packlink/giger-theme/dist/lib/Theme").Theme>>;
@@ -1 +1 @@
1
- export declare const styles: Record<"grid" | "heading" | "subtitle", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
1
+ export declare const styles: Record<"grid" | "heading" | "subtitle", import("@emotion/serialize").Interpolation<import("@packlink/giger-theme/dist/lib/Theme").Theme>>;
@@ -12,6 +12,8 @@ export type UseRatesFormProps = {
12
12
  };
13
13
  export declare const useRatesForm: ({ onBeforeLabelCreate, onLabelCreateFailure, onLabelCreateSuccess, onRateSaved, onRatesCalculated, onShipmentUpdated, printLabelLayout, shipment, }: UseRatesFormProps) => {
14
14
  carriers: SE.Carrier[] | undefined;
15
+ displayableErrors: string[] | undefined;
16
+ displayableLabelErrors: string[] | undefined;
15
17
  errors: SE.CodedError[] | undefined;
16
18
  isLoading: boolean;
17
19
  labelErrors: SE.CodedError[] | undefined;
@@ -17,6 +17,7 @@ export declare const useShipmentForm: ({ compatibleCountryCodes, onAddressValida
17
17
  carriers: SE.Carrier[] | undefined;
18
18
  charsetWarning: import("../../../../components/templates").CharsetWarning | undefined;
19
19
  customPackageTypes: SE.CustomPackage[] | undefined;
20
+ displayableErrors: string[] | undefined;
20
21
  errors: SE.CodedError[] | undefined;
21
22
  onApplyPreset: (preset: ShippingPreset) => Promise<void>;
22
23
  onChangeAddress: (shipTo: SE.Address, { shouldValidate }: import("../../../../components/templates").OnChangeAddressOptions) => Promise<SE.SalesOrderShipment>;
@@ -25,6 +26,7 @@ export declare const useShipmentForm: ({ compatibleCountryCodes, onAddressValida
25
26
  fullAddress: string;
26
27
  }) => Promise<SE.AddressExtraction>;
27
28
  onUpdateCustoms: (customs: SE.Customs) => Promise<SE.SalesOrderShipment>;
29
+ resetSalesOrderShipment: () => void;
28
30
  salesOrder: SE.SalesOrder | undefined;
29
31
  shipment: SE.SalesOrderShipment | undefined;
30
32
  warehouses: SE.Warehouse[] | undefined;
@@ -5,7 +5,7 @@ export type ConnectedCarrierMetadata = {
5
5
  };
6
6
  export declare const useListConnectedCarriers: () => {
7
7
  data: ConnectedCarrierMetadata[];
8
- error: import("@shipengine/api").CodedError[] | null;
8
+ error: import("dist/shipengine-api/src").CodedError[] | null;
9
9
  isLoading: boolean;
10
- refetch: <TPageData>(options?: (import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("react-query").QueryObserverResult<import("@shipengine/api").Carrier[], import("@shipengine/api").CodedError[]>>;
10
+ refetch: <TPageData>(options?: (import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("react-query").QueryObserverResult<import("dist/shipengine-api/src").Carrier[], import("dist/shipengine-api/src").CodedError[]>>;
11
11
  };