@shipengine/elements 1.1.0 → 1.1.2

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.
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
2
- import { InlineNotification, NotificationType, Spinner, SpinnerSize, Typography, Icon, Link, IconSize, FormField, FieldMessageType, Checkbox, Input, Divider, SelectAutocomplete, Select as Select$1, OptionGroup, Option, Button, Switch as Switch$1, Textarea, ChipList, Chip, ButtonVariant, ButtonSize, DatePicker as DatePicker$1, Table, TableBody, TableBaseRow, TableBodyCell, TableHeader, TableHeaderCell, Grid, GridChild, RadioGroup, Radio, ButtonColor, Tag, TagColor, DropdownOptionList, TableFooter, Pagination, TableHeaderRow, TableRow, Skeleton, SkeletonAnimation, SkeletonVariant, SkeletonBackgroundColor, Popover, BottomSheet, IconTooltip, Stepper, Step } from '@shipengine/giger';
2
+ import { InlineNotification, NotificationType, Spinner, SpinnerSize, Typography, Icon, Link, IconSize, FormField, FieldMessageType, Checkbox, Input, Divider, SelectAutocomplete, Select as Select$1, OptionGroup, Option, Button, Switch as Switch$1, Textarea, ChipList, Chip, ButtonVariant, ButtonSize, DatePicker as DatePicker$1, Table, TableBody, TableBaseRow, TableBodyCell, TableHeader, TableHeaderCell, DropdownOptionList, Pagination, Grid, GridChild, RadioGroup, Radio, ButtonColor, Tag, TagColor, TableFooter, TableHeaderRow, TableRow, Skeleton, SkeletonAnimation, SkeletonVariant, SkeletonBackgroundColor, Popover, BottomSheet, IconTooltip, Stepper, Step } from '@shipengine/giger';
3
3
  import { IconNames } from '@shipengine/giger-theme';
4
4
  import { camelize } from 'humps';
5
5
  import * as React from 'react';
@@ -5583,7 +5583,7 @@ const networkErrorPrettyPrinter = e => {
5583
5583
  return e.message.replaceAll(/Invalid rate\. Invalid rate\./g, "Invalid rate.");
5584
5584
  };
5585
5585
 
5586
- const styles$w = createStyles({
5586
+ const styles$x = createStyles({
5587
5587
  container: {
5588
5588
  alignItems: "center",
5589
5589
  display: "flex",
@@ -5602,7 +5602,7 @@ const styles$w = createStyles({
5602
5602
  */
5603
5603
  const Loader = props => {
5604
5604
  return jsx("div", Object.assign({
5605
- css: styles$w.container
5605
+ css: styles$x.container
5606
5606
  }, {
5607
5607
  children: jsx(Spinner, Object.assign({}, props, {
5608
5608
  size: props.size || SpinnerSize.SIZE_LARGE
@@ -5634,7 +5634,7 @@ const fill = keyframes(_t3 || (_t3 = _$1`
5634
5634
  100% {
5635
5635
  box-shadow: inset 0px 0px 0px 30px #3F8200;
5636
5636
  `));
5637
- const styles$v = createStyles({
5637
+ const styles$w = createStyles({
5638
5638
  checkmark: theme => ({
5639
5639
  animation: `${fill} forwards`,
5640
5640
  borderRadius: "50%",
@@ -5689,7 +5689,7 @@ const SaveStatus = ({
5689
5689
  }
5690
5690
  if (isSaving) {
5691
5691
  return jsxs("div", Object.assign({
5692
- css: styles$v.savingContainer
5692
+ css: styles$w.savingContainer
5693
5693
  }, {
5694
5694
  children: [jsx(Loader, {
5695
5695
  css: theme => ({
@@ -5697,32 +5697,32 @@ const SaveStatus = ({
5697
5697
  }),
5698
5698
  size: SpinnerSize.SIZE_SMALL
5699
5699
  }), jsx(Typography, Object.assign({
5700
- css: styles$v.saving
5700
+ css: styles$w.saving
5701
5701
  }, {
5702
5702
  children: t("manage-defaults:status.saving")
5703
5703
  }))]
5704
5704
  }));
5705
5705
  }
5706
5706
  return !isSaving && !(errors === null || errors === void 0 ? void 0 : errors.length) ? jsxs("div", Object.assign({
5707
- css: styles$v.container
5707
+ css: styles$w.container
5708
5708
  }, {
5709
5709
  children: [jsx("svg", Object.assign({
5710
- css: styles$v.checkmark,
5710
+ css: styles$w.checkmark,
5711
5711
  viewBox: "0 0 52 52"
5712
5712
  }, {
5713
5713
  children: jsx("path", {
5714
- css: styles$v.checkmarkCheck,
5714
+ css: styles$w.checkmarkCheck,
5715
5715
  d: "M14.1 27.2l7.1 7.2 16.7-16.8",
5716
5716
  fill: "none",
5717
5717
  strokeWidth: "5px"
5718
5718
  })
5719
5719
  })), jsx(Typography, Object.assign({
5720
- css: styles$v.saved
5720
+ css: styles$w.saved
5721
5721
  }, {
5722
5722
  children: t("manage-defaults:status.saved")
5723
5723
  }))]
5724
5724
  })) : jsxs("div", Object.assign({
5725
- css: [styles$v.container, {
5725
+ css: [styles$w.container, {
5726
5726
  padding: "0"
5727
5727
  }]
5728
5728
  }, {
@@ -5732,7 +5732,7 @@ const SaveStatus = ({
5732
5732
  }),
5733
5733
  name: IconNames.CANCEL_FILLED
5734
5734
  }), jsx(Typography, Object.assign({
5735
- css: styles$v.savingFailed
5735
+ css: styles$w.savingFailed
5736
5736
  }, {
5737
5737
  children: t("manage-defaults:status.savingFailed")
5738
5738
  }))]
@@ -5785,7 +5785,7 @@ const Spacer = props => jsx("div", {
5785
5785
  css: getSpacerStyles(props)
5786
5786
  });
5787
5787
 
5788
- const styles$u = createStyles({
5788
+ const styles$v = createStyles({
5789
5789
  content: theme => ({
5790
5790
  padding: `${theme.spacing(3)}px ${theme.spacing(4)}px`
5791
5791
  }),
@@ -5833,10 +5833,10 @@ const CollapsiblePanel = ({
5833
5833
  const [isExpanded, toggleIsExpanded] = useToggle(initialExpanded);
5834
5834
  return jsxs(Fragment, {
5835
5835
  children: [jsx("div", Object.assign({
5836
- css: styles$u.header
5836
+ css: styles$v.header
5837
5837
  }, {
5838
5838
  children: jsxs(Link, Object.assign({
5839
- css: styles$u.link,
5839
+ css: styles$v.link,
5840
5840
  onClick: event => {
5841
5841
  event.preventDefault();
5842
5842
  toggleIsExpanded();
@@ -5856,7 +5856,7 @@ const CollapsiblePanel = ({
5856
5856
  errors: errors,
5857
5857
  isSaving: isSaving
5858
5858
  }), jsx(Icon, {
5859
- css: styles$u.icon,
5859
+ css: styles$v.icon,
5860
5860
  "data-testid": "collapsible-panel-dropdown",
5861
5861
  name: isExpanded ? IconNames.CHEVRON_TOP : IconNames.CHEVRON_BOTTOM,
5862
5862
  size: IconSize.SIZE_LARGE
@@ -5864,7 +5864,7 @@ const CollapsiblePanel = ({
5864
5864
  }))]
5865
5865
  }))
5866
5866
  })), isExpanded ? jsx("section", Object.assign({
5867
- css: styles$u.content
5867
+ css: styles$v.content
5868
5868
  }, {
5869
5869
  children: children
5870
5870
  })) : jsx(Spacer, {
@@ -7530,7 +7530,7 @@ const FormPortal = ({
7530
7530
  });
7531
7531
  };
7532
7532
 
7533
- const styles$t = createStyles({
7533
+ const styles$u = createStyles({
7534
7534
  chipList: theme => ({
7535
7535
  gap: theme.spacing(1)
7536
7536
  }),
@@ -7690,7 +7690,7 @@ const AddFundsForm = ({
7690
7690
  })), jsx(Spacer, {
7691
7691
  multiplier: 2
7692
7692
  }), jsx(ChipList, Object.assign({
7693
- css: styles$t.chipList,
7693
+ css: styles$u.chipList,
7694
7694
  onChange: idx => {
7695
7695
  const chip = chips[idx];
7696
7696
  setSelectedChip(chip);
@@ -7705,7 +7705,7 @@ const AddFundsForm = ({
7705
7705
  }
7706
7706
  }, {
7707
7707
  children: chips.map(chip => jsx(Chip, Object.assign({
7708
- css: styles$t.getChip({
7708
+ css: styles$u.getChip({
7709
7709
  isDisabled: chip.value < _minimumAmount,
7710
7710
  isSelected: chip.value === selectedChip.value
7711
7711
  }),
@@ -7722,7 +7722,7 @@ const AddFundsForm = ({
7722
7722
  multiplier: 1
7723
7723
  }), jsx(MoneyInput, {
7724
7724
  control: form.control,
7725
- css: styles$t.fundsInput,
7725
+ css: styles$u.fundsInput,
7726
7726
  defaultValue: {
7727
7727
  amount: undefined,
7728
7728
  currency: SE.Currency.USD
@@ -7847,7 +7847,7 @@ const Spread = ({
7847
7847
  children: children
7848
7848
  }));
7849
7849
 
7850
- const styles$s = createStyles({
7850
+ const styles$t = createStyles({
7851
7851
  edit: theme => ({
7852
7852
  color: theme.palette.primary.main,
7853
7853
  padding: `0 ${theme.spacing(2)}`
@@ -7976,12 +7976,12 @@ const AutoFundingForm = ({
7976
7976
  }, {
7977
7977
  children: t("manage-funding:autoFunding.readSettings", Object.assign({}, autoFundingConfig))
7978
7978
  })), jsx(LinkAction, {
7979
- css: styles$s.edit,
7979
+ css: styles$t.edit,
7980
7980
  onClick: () => handleToggle(true),
7981
7981
  title: t("manage-funding:autoFunding:edit")
7982
7982
  })]
7983
7983
  }), jsxs("form", Object.assign({
7984
- css: styles$s.getForm(showForm),
7984
+ css: styles$t.getForm(showForm),
7985
7985
  "data-testid": "auto-funding-form",
7986
7986
  id: "auto-funding-form",
7987
7987
  onSubmit: handleSubmit
@@ -7992,11 +7992,11 @@ const AutoFundingForm = ({
7992
7992
  }, {
7993
7993
  children: t("manage-funding:autoFunding:editSettings")
7994
7994
  })), jsx("div", Object.assign({
7995
- css: styles$s.marginLeft
7995
+ css: styles$t.marginLeft
7996
7996
  }, {
7997
7997
  children: jsx(MoneyInput, {
7998
7998
  control: form.control,
7999
- css: styles$s.input,
7999
+ css: styles$t.input,
8000
8000
  "data-testid": "auto-funding-threshold-input",
8001
8001
  defaultValue: {
8002
8002
  amount: autoFundingConfig === null || autoFundingConfig === void 0 ? void 0 : autoFundingConfig.autoPurchaseThreshold,
@@ -8009,11 +8009,11 @@ const AutoFundingForm = ({
8009
8009
  showCurrencySymbol: true
8010
8010
  })
8011
8011
  })), jsx("div", Object.assign({
8012
- css: styles$s.marginLeft
8012
+ css: styles$t.marginLeft
8013
8013
  }, {
8014
8014
  children: jsx(MoneyInput, {
8015
8015
  control: form.control,
8016
- css: styles$s.input,
8016
+ css: styles$t.input,
8017
8017
  "data-testid": "auto-funding-purchase-amount-input",
8018
8018
  defaultValue: {
8019
8019
  amount: autoFundingConfig === null || autoFundingConfig === void 0 ? void 0 : autoFundingConfig.autoPurchaseAmount,
@@ -8026,11 +8026,11 @@ const AutoFundingForm = ({
8026
8026
  showCurrencySymbol: true
8027
8027
  })
8028
8028
  })), jsx("div", Object.assign({
8029
- css: styles$s.marginLeft
8029
+ css: styles$t.marginLeft
8030
8030
  }, {
8031
8031
  children: jsx(NumberInput, {
8032
8032
  control: form.control,
8033
- css: styles$s.input,
8033
+ css: styles$t.input,
8034
8034
  "data-testid": "auto-funding-max-per-day-input",
8035
8035
  defaultValue: autoFundingConfig === null || autoFundingConfig === void 0 ? void 0 : autoFundingConfig.autoPurchaseCutoff,
8036
8036
  disabled: !watchIsEnabled,
@@ -8070,7 +8070,7 @@ const AutoFundingForm = ({
8070
8070
  });
8071
8071
  };
8072
8072
 
8073
- const styles$r = isLabelRight => createStyles({
8073
+ const styles$s = isLabelRight => createStyles({
8074
8074
  inlineContainer: theme => ({
8075
8075
  alignItems: "center",
8076
8076
  display: "flex",
@@ -8090,14 +8090,14 @@ const InlineLabel = ({
8090
8090
  isLabelRight,
8091
8091
  labelProps: _labelProps = {}
8092
8092
  }) => jsxs("div", Object.assign({
8093
- css: styles$r(isLabelRight).inlineContainer
8093
+ css: styles$s(isLabelRight).inlineContainer
8094
8094
  }, {
8095
8095
  children: [jsx(Typography, Object.assign({}, _labelProps, {
8096
8096
  children: label
8097
8097
  })), children]
8098
8098
  }));
8099
8099
 
8100
- const styles$q = createStyles({
8100
+ const styles$r = createStyles({
8101
8101
  getBalanceText: balance => theme => ({
8102
8102
  color: balance === undefined ? theme.palette.gray.main : balance >= 0 ? theme.palette.secondary.dark : theme.palette.error.main
8103
8103
  })
@@ -8131,7 +8131,7 @@ const CarrierBalance = ({
8131
8131
  }, {
8132
8132
  children: isFetchingCarrier ? jsx(Spinner, {}) : jsx(Typography, Object.assign({
8133
8133
  bold: true,
8134
- css: styles$q.getBalanceText(carrierBalance)
8134
+ css: styles$r.getBalanceText(carrierBalance)
8135
8135
  }, {
8136
8136
  children: carrierBalance === undefined ? "----" : formatMoney({
8137
8137
  amount: carrierBalance,
@@ -8159,6 +8159,10 @@ const logoDataByCarrierCode$1 = {
8159
8159
  logo: "https://logos.shipstation.com/ipaas/carriers/stamps_com_wl/icon.svg",
8160
8160
  name: "United States Postal Service"
8161
8161
  },
8162
+ ups: {
8163
+ logo: "https://logos.shipstation.com/ipaas/carriers/ups/icon.svg",
8164
+ name: "UPS"
8165
+ },
8162
8166
  ups_walleted: {
8163
8167
  logo: "https://logos.shipstation.com/ipaas/carriers/ups/icon.svg",
8164
8168
  name: "UPS"
@@ -8173,8 +8177,8 @@ const CarrierIcon = ({
8173
8177
  size: _size = "regular"
8174
8178
  }) => {
8175
8179
  const logoData = logoDataByCarrierCode$1[carrierCode];
8176
- if (!logoData) return jsx("div", {
8177
- children: carrierCode.toString()
8180
+ if (!logoData) return jsx(Chip, {
8181
+ children: carrierCode.toString().toUpperCase()
8178
8182
  });
8179
8183
  const {
8180
8184
  logo,
@@ -8182,7 +8186,7 @@ const CarrierIcon = ({
8182
8186
  } = logoData;
8183
8187
  // TODO: use theme ICONSIZE
8184
8188
  return jsx("img", {
8185
- alt: `${name}-logo`,
8189
+ alt: name,
8186
8190
  height: iconSize[_size],
8187
8191
  src: logo,
8188
8192
  width: iconSize[_size]
@@ -8339,7 +8343,7 @@ const Cube = _a => {
8339
8343
  }));
8340
8344
  };
8341
8345
 
8342
- const styles$p = createStyles({
8346
+ const styles$q = createStyles({
8343
8347
  getDateRangeSelect: fullWidth => theme => ({
8344
8348
  minWidth: theme.spacing(30),
8345
8349
  position: "relative",
@@ -8364,7 +8368,7 @@ const DateRangeSelect = ({
8364
8368
  void onChange(nextOption);
8365
8369
  };
8366
8370
  return jsx(Select$1, Object.assign({
8367
- css: styles$p.getDateRangeSelect(fullWidth),
8371
+ css: styles$q.getDateRangeSelect(fullWidth),
8368
8372
  "data-testid": "date-range-select",
8369
8373
  label: t("wallet-history:dateRange"),
8370
8374
  leftContent: jsx(Icon, {
@@ -8433,7 +8437,7 @@ const DateRangeCombo = ({
8433
8437
  });
8434
8438
  };
8435
8439
 
8436
- const styles$o = createStyles({
8440
+ const styles$p = createStyles({
8437
8441
  container: theme => ({
8438
8442
  display: "flex",
8439
8443
  flexDirection: "column",
@@ -8464,13 +8468,13 @@ const DisplayTerm = ({
8464
8468
  t
8465
8469
  } = useTranslation();
8466
8470
  return jsx("ul", Object.assign({
8467
- css: styles$o.container
8471
+ css: styles$p.container
8468
8472
  }, {
8469
8473
  children: term.links.map(({
8470
8474
  link,
8471
8475
  title
8472
8476
  }) => jsxs("li", Object.assign({
8473
- css: styles$o.termLink
8477
+ css: styles$p.termLink
8474
8478
  }, {
8475
8479
  children: [jsx(Typography, Object.assign({
8476
8480
  variant: "subtitle1"
@@ -8479,7 +8483,7 @@ const DisplayTerm = ({
8479
8483
  defaultValue: title
8480
8484
  })
8481
8485
  })), jsx(Link, Object.assign({
8482
- css: styles$o.link,
8486
+ css: styles$p.link,
8483
8487
  href: link,
8484
8488
  isExternal: true,
8485
8489
  target: "_blank"
@@ -8537,7 +8541,7 @@ const ErrorFallback = ({
8537
8541
  }));
8538
8542
  };
8539
8543
 
8540
- const styles$n = createStyles({
8544
+ const styles$o = createStyles({
8541
8545
  icon: theme => ({
8542
8546
  color: theme.palette.primary.main,
8543
8547
  marginRight: theme.spacing(2)
@@ -8587,10 +8591,10 @@ const Section = _a => {
8587
8591
  rest = __rest(_a, ["bold", "title", "children", "rightContent"]);
8588
8592
  return jsxs(Fragment, {
8589
8593
  children: [title && jsx("summary", Object.assign({
8590
- css: styles$n.summary
8594
+ css: styles$o.summary
8591
8595
  }, {
8592
8596
  children: jsxs("div", Object.assign({
8593
- css: styles$n.summaryWrapper
8597
+ css: styles$o.summaryWrapper
8594
8598
  }, {
8595
8599
  children: [title && typeof title === "string" ? jsx(Typography, Object.assign({
8596
8600
  bold: bold,
@@ -8598,20 +8602,20 @@ const Section = _a => {
8598
8602
  }, {
8599
8603
  children: title
8600
8604
  })) : title, rightContent && jsx("div", Object.assign({
8601
- css: styles$n.rightContentWrapper
8605
+ css: styles$o.rightContentWrapper
8602
8606
  }, {
8603
8607
  children: rightContent
8604
8608
  }))]
8605
8609
  }))
8606
8610
  })), jsx("section", Object.assign({
8607
- css: styles$n.section
8611
+ css: styles$o.section
8608
8612
  }, rest, {
8609
8613
  children: children
8610
8614
  }))]
8611
8615
  });
8612
8616
  };
8613
8617
 
8614
- const styles$m = createStyles({
8618
+ const styles$n = createStyles({
8615
8619
  balanceText: theme => ({
8616
8620
  color: theme.palette.secondary.dark
8617
8621
  }),
@@ -8706,7 +8710,7 @@ const FundAndPurchase = ({
8706
8710
  }, {
8707
8711
  children: [jsx(Button, Object.assign({
8708
8712
  bold: false,
8709
- css: styles$m.saveRateButton,
8713
+ css: styles$n.saveRateButton,
8710
8714
  disabled: disabled || !carrierId || isPreferredRate && !isRateFormValid || addFundsForm.isSubmitting || isRateFormSubmitting,
8711
8715
  isLoading: isSavingRate,
8712
8716
  onClick: handleSaveRate,
@@ -8726,7 +8730,7 @@ const FundAndPurchase = ({
8726
8730
  // render when no rate has been selected yet
8727
8731
  if (!carrierId) return jsxs("div", Object.assign({
8728
8732
  className: className,
8729
- css: styles$m.container
8733
+ css: styles$n.container
8730
8734
  }, {
8731
8735
  children: [jsxs(Spread, {
8732
8736
  children: [jsx(CarrierBalance, {
@@ -8750,7 +8754,7 @@ const FundAndPurchase = ({
8750
8754
  if (isPreferredRate) {
8751
8755
  return jsxs("div", Object.assign({
8752
8756
  className: className,
8753
- css: styles$m.container
8757
+ css: styles$n.container
8754
8758
  }, {
8755
8759
  children: [jsx(CarrierBalance, {
8756
8760
  balance: uspsBalance
@@ -8768,7 +8772,7 @@ const FundAndPurchase = ({
8768
8772
  // show balance, but not the funding form.
8769
8773
  if (!isFundingEnabled) return jsxs("div", Object.assign({
8770
8774
  className: className,
8771
- css: styles$m.container
8775
+ css: styles$n.container
8772
8776
  }, {
8773
8777
  children: [jsx(CarrierBalance, {
8774
8778
  carrierId: carrierId
@@ -8810,13 +8814,13 @@ const FundAndPurchase = ({
8810
8814
  var _a, _b;
8811
8815
  return jsxs(Fragment, {
8812
8816
  children: [jsxs("section", Object.assign({
8813
- css: styles$m.getFormExtension(addFundsForm.isCustomAmount)
8817
+ css: styles$n.getFormExtension(addFundsForm.isCustomAmount)
8814
8818
  }, {
8815
8819
  children: [jsx(InlineLabel, Object.assign({
8816
8820
  label: t("manage-funding:fundAndPurchase.newBalance")
8817
8821
  }, {
8818
8822
  children: jsx(Typography, Object.assign({
8819
- css: styles$m.balanceText
8823
+ css: styles$n.balanceText
8820
8824
  }, {
8821
8825
  children: formatMoney({
8822
8826
  amount: balance + ((_a = addFundsForm.selectedAmount) !== null && _a !== void 0 ? _a : 0),
@@ -8827,7 +8831,7 @@ const FundAndPurchase = ({
8827
8831
  label: t("manage-funding:fundAndPurchase.finalBalance")
8828
8832
  }, {
8829
8833
  children: jsx(Typography, Object.assign({
8830
- css: styles$m.balanceText
8834
+ css: styles$n.balanceText
8831
8835
  }, {
8832
8836
  children: formatMoney({
8833
8837
  amount: balance + ((_b = addFundsForm.selectedAmount) !== null && _b !== void 0 ? _b : 0) - purchaseAmount,
@@ -8864,7 +8868,7 @@ const FundAndPurchase = ({
8864
8868
  }
8865
8869
  };
8866
8870
 
8867
- const styles$l = createStyles({
8871
+ const styles$m = createStyles({
8868
8872
  itemDescription: theme => ({
8869
8873
  display: "flex",
8870
8874
  flexDirection: "column",
@@ -8906,15 +8910,15 @@ const ItemsBreakdownTableHeader = ({
8906
8910
  }) => jsx(TableHeader, {
8907
8911
  children: jsxs(TableBaseRow, {
8908
8912
  children: [jsx(TableHeaderCell, {}), jsx(TableHeaderCell, Object.assign({
8909
- css: styles$l.numericCell
8913
+ css: styles$m.numericCell
8910
8914
  }, {
8911
8915
  children: "Qty"
8912
8916
  })), hasValue && jsx(TableHeaderCell, Object.assign({
8913
- css: styles$l.numericCell
8917
+ css: styles$m.numericCell
8914
8918
  }, {
8915
8919
  children: "$/ea"
8916
8920
  })), hasTotal && jsx(TableHeaderCell, Object.assign({
8917
- css: styles$l.numericCell
8921
+ css: styles$m.numericCell
8918
8922
  }, {
8919
8923
  children: "$ Total"
8920
8924
  }))]
@@ -8931,7 +8935,7 @@ const ItemsBreakdown = ({
8931
8935
  const hasValue = items.some(item => item.value !== undefined);
8932
8936
  const hasTotal = items.some(item => item.totalValue !== undefined);
8933
8937
  return jsx("div", Object.assign({
8934
- css: styles$l.tableWrapper
8938
+ css: styles$m.tableWrapper
8935
8939
  }, {
8936
8940
  children: jsx(Table, Object.assign({
8937
8941
  header: jsx(ItemsBreakdownTableHeader, {
@@ -8949,25 +8953,25 @@ const ItemsBreakdown = ({
8949
8953
  }, index) => jsx(Fragment$1, {
8950
8954
  children: jsxs(TableBaseRow, {
8951
8955
  children: [jsxs(TableBodyCell, Object.assign({
8952
- css: styles$l.itemDescription
8956
+ css: styles$m.itemDescription
8953
8957
  }, {
8954
8958
  children: [jsx(Typography, Object.assign({
8955
- css: styles$l.itemName
8959
+ css: styles$m.itemName
8956
8960
  }, {
8957
8961
  children: name
8958
8962
  })), jsx(Typography, {
8959
8963
  children: detail
8960
8964
  })]
8961
8965
  })), jsx(TableBodyCell, Object.assign({
8962
- css: [styles$l.numericCell, styles$l.itemDetail]
8966
+ css: [styles$m.numericCell, styles$m.itemDetail]
8963
8967
  }, {
8964
8968
  children: quantity
8965
8969
  })), hasValue && jsx(TableBodyCell, Object.assign({
8966
- css: [styles$l.numericCell, styles$l.itemDetail]
8970
+ css: [styles$m.numericCell, styles$m.itemDetail]
8967
8971
  }, {
8968
8972
  children: value && formatMoney(value)
8969
8973
  })), hasTotal && jsx(TableBodyCell, Object.assign({
8970
- css: [styles$l.numericCell, styles$l.itemDetail]
8974
+ css: [styles$m.numericCell, styles$m.itemDetail]
8971
8975
  }, {
8972
8976
  children: totalValue && formatMoney(totalValue)
8973
8977
  }))]
@@ -9044,6 +9048,161 @@ const ManageFunding = ({
9044
9048
  }));
9045
9049
  };
9046
9050
 
9051
+ const styles$l = createStyles({
9052
+ footer: {
9053
+ "> *": {
9054
+ borderTop: "0 !important"
9055
+ },
9056
+ alignItems: "center",
9057
+ display: "flex",
9058
+ justifyContent: "space-between"
9059
+ },
9060
+ leftFooter: theme => ({
9061
+ display: "flex",
9062
+ margin: theme.spacing(2),
9063
+ span: {
9064
+ fontWeight: theme.typography.fontWeight.bold
9065
+ }
9066
+ }),
9067
+ rowCount: theme => ({
9068
+ alignItems: "center",
9069
+ display: "flex",
9070
+ marginRight: theme.spacing(4),
9071
+ whiteSpace: "pre"
9072
+ }),
9073
+ rowCountDropDown: {
9074
+ "> * > *": {
9075
+ justifyContent: "center !important"
9076
+ }
9077
+ },
9078
+ rowsActions: theme => ({
9079
+ "#selected-row": {
9080
+ ":hover": {
9081
+ backgroundColor: "transparent"
9082
+ },
9083
+ borderRadius: theme.borderRadius.XS,
9084
+ color: theme.palette.black,
9085
+ padding: theme.spacing(1),
9086
+ paddingRight: theme.spacing(0.5)
9087
+ },
9088
+ alignItems: "baseline",
9089
+ display: "flex",
9090
+ span: {
9091
+ alignSelf: "center"
9092
+ }
9093
+ })
9094
+ });
9095
+
9096
+ const DEFAULT_ROW_COUNT_SELECTION = [5, 10, 25, 50];
9097
+ const Pager = ({
9098
+ currentPageSize,
9099
+ pagingData,
9100
+ rowCountSelection: _rowCountSelection = DEFAULT_ROW_COUNT_SELECTION,
9101
+ onPageSelect,
9102
+ onPageSizeSelect
9103
+ }) => {
9104
+ const [isRowCountDropDownOpen, setIsRowCountDropDownOpen] = useState(false);
9105
+ const buttonIconRef = useRef(null);
9106
+ const {
9107
+ t
9108
+ } = useTranslation();
9109
+ const toggleRowCountDropdown = useCallback(() => setIsRowCountDropDownOpen(prev => !prev), []);
9110
+ const handleClickAway = event => {
9111
+ var _a;
9112
+ if ((_a = buttonIconRef.current) === null || _a === void 0 ? void 0 : _a.contains(event.target)) {
9113
+ return;
9114
+ }
9115
+ toggleRowCountDropdown();
9116
+ };
9117
+ return jsxs("div", Object.assign({
9118
+ css: styles$l.footer
9119
+ }, {
9120
+ children: [jsxs("div", Object.assign({
9121
+ css: styles$l.leftFooter
9122
+ }, {
9123
+ children: [jsx("div", Object.assign({
9124
+ css: styles$l.rowCount
9125
+ }, {
9126
+ children: jsx(Trans, {
9127
+ components: [jsx("b", {
9128
+ style: {
9129
+ fontWeight: "bold"
9130
+ }
9131
+ }, "1")],
9132
+ count: pagingData.total,
9133
+ i18nKey: "common:grid.row-count",
9134
+ values: {
9135
+ firstIndex: pagingData.total !== 0 ? 1 + (pagingData.page - 1) * currentPageSize : 0,
9136
+ lastIndex: Math.min(pagingData.total, pagingData.page * currentPageSize)
9137
+ }
9138
+ })
9139
+ })), jsxs("div", Object.assign({
9140
+ css: styles$l.rowsActions
9141
+ }, {
9142
+ children: [t("common:grid.rows"), jsx(Button, Object.assign({
9143
+ id: "selected-row",
9144
+ onClick: () => toggleRowCountDropdown(),
9145
+ ref: buttonIconRef,
9146
+ variant: ButtonVariant.TEXT
9147
+ }, {
9148
+ children: currentPageSize
9149
+ })), isRowCountDropDownOpen ? jsx(Icon, {
9150
+ name: IconNames.CHEVRON_TOP,
9151
+ onClick: () => toggleRowCountDropdown(),
9152
+ size: IconSize.SIZE_MEDIUM
9153
+ }) : jsx(Icon, {
9154
+ name: IconNames.CHEVRON_BOTTOM,
9155
+ onClick: () => toggleRowCountDropdown(),
9156
+ size: IconSize.SIZE_MEDIUM
9157
+ }), jsx(DropdownOptionList, Object.assign({
9158
+ css: styles$l.rowCountDropDown,
9159
+ dropdownWidth: "max-content",
9160
+ isOpen: isRowCountDropDownOpen,
9161
+ onChange: () => toggleRowCountDropdown(),
9162
+ onClickAway: handleClickAway,
9163
+ placement: "bottom",
9164
+ reference: buttonIconRef.current
9165
+ }, {
9166
+ children: _rowCountSelection.map(selection => jsx(Option, Object.assign({
9167
+ onClick: () => onPageSizeSelect(selection),
9168
+ value: String(selection)
9169
+ }, {
9170
+ children: selection
9171
+ }), selection))
9172
+ }))]
9173
+ }))]
9174
+ })), jsx("div", {
9175
+ children: jsx(Pagination, {
9176
+ boundaryPagesToShow: 5,
9177
+ currentPage: pagingData.page,
9178
+ onPageChange: onPageSelect,
9179
+ totalPages: pagingData.pages
9180
+ })
9181
+ })]
9182
+ }));
9183
+ };
9184
+
9185
+ const usePager = (initialPageSize = 10) => {
9186
+ const [page, setPage] = useState(1);
9187
+ const [pageSize, setPageSize] = useState(initialPageSize);
9188
+ const handlePageSelect = page => {
9189
+ setPage(page);
9190
+ };
9191
+ const handlePageSizeSelect = pageSize => {
9192
+ setPageSize(pageSize);
9193
+ };
9194
+ return {
9195
+ page,
9196
+ pagerProps: {
9197
+ currentPage: page,
9198
+ currentPageSize: pageSize,
9199
+ onPageSelect: handlePageSelect,
9200
+ onPageSizeSelect: handlePageSizeSelect
9201
+ },
9202
+ pageSize
9203
+ };
9204
+ };
9205
+
9047
9206
  const addressParserSchema = z.object({
9048
9207
  fullAddress: z.string().min(1)
9049
9208
  });
@@ -10679,111 +10838,28 @@ const StoryNotes = ({
10679
10838
  });
10680
10839
 
10681
10840
  const styles$e = createStyles({
10682
- footer: {
10683
- "> *": {
10684
- borderTop: "0 !important"
10685
- },
10686
- alignItems: "center",
10687
- display: "flex",
10688
- justifyContent: "space-between"
10689
- },
10690
- leftFooter: theme => ({
10691
- display: "flex",
10692
- margin: theme.spacing(2),
10693
- span: {
10694
- fontWeight: theme.typography.fontWeight.bold
10695
- }
10696
- }),
10697
- rowCount: theme => ({
10698
- alignItems: "center",
10699
- display: "flex",
10700
- marginRight: theme.spacing(4),
10701
- whiteSpace: "pre"
10702
- }),
10703
- rowCountDropDown: {
10704
- "> * > *": {
10705
- justifyContent: "center !important"
10706
- }
10707
- },
10708
- rowsActions: theme => ({
10709
- "#selected-row": {
10710
- ":hover": {
10711
- backgroundColor: "transparent"
10712
- },
10713
- borderRadius: theme.borderRadius.XS,
10714
- color: theme.palette.black,
10715
- padding: theme.spacing(1),
10716
- paddingRight: theme.spacing(0.5)
10717
- },
10718
- alignItems: "baseline",
10719
- display: "flex",
10720
- span: {
10721
- alignSelf: "center"
10722
- }
10841
+ checkboxHeader: theme => ({
10842
+ width: theme.spacing(6)
10723
10843
  }),
10724
10844
  table: {
10725
10845
  "*": {
10726
10846
  overflow: "hidden",
10727
10847
  textOverflow: "clip !important"
10728
10848
  }
10729
- },
10730
- tableHeader: theme => ({
10731
- "> :nth-of-type(1)": {
10732
- width: theme.spacing(6)
10733
- },
10734
- "> :nth-of-type(2)": {
10735
- width: theme.spacing(20)
10736
- },
10737
- "> :nth-of-type(7)": {
10738
- width: theme.spacing(16)
10739
- }
10740
- })
10849
+ }
10741
10850
  });
10742
10851
 
10743
10852
  const GridController = ({
10744
- currentPageSize,
10745
10853
  columns,
10746
10854
  data,
10747
- pagingData,
10748
- rowCountSelection: _rowCountSelection = [5, 10, 25, 50],
10749
- onPageSelect,
10750
- onPageSizeSelect,
10751
- onRowClick
10855
+ footerContent,
10856
+ onRowClick,
10857
+ useCheckboxes: _useCheckboxes = false
10752
10858
  }) => {
10753
10859
  var _a, _b, _c;
10754
- const {
10755
- t
10756
- } = useTranslation();
10757
- const [isRowCountDropDownOpen, setIsRowCountDropDownOpen] = useState(false);
10758
10860
  const [isChecked, setIsChecked] = useState((_a = data === null || data === void 0 ? void 0 : data.map(() => false)) !== null && _a !== void 0 ? _a : []);
10759
- const buttonIconRef = useRef(null);
10760
- const toggleRowCountDropdown = useCallback(() => setIsRowCountDropDownOpen(prev => !prev), []);
10761
- const sortedColumns = useMemo(() => {
10762
- const sortedKeys = Object.keys(columns).sort((a, b) => {
10763
- var _a, _b, _c, _d;
10764
- const orderA = (_b = (_a = columns[a]) === null || _a === void 0 ? void 0 : _a.columnOrder) !== null && _b !== void 0 ? _b : 0;
10765
- const orderB = (_d = (_c = columns[b]) === null || _c === void 0 ? void 0 : _c.columnOrder) !== null && _d !== void 0 ? _d : 0;
10766
- return orderA - orderB;
10767
- });
10768
- const sortedColumns = {};
10769
- for (const key of sortedKeys) {
10770
- sortedColumns[key] = columns[key];
10771
- }
10772
- return sortedColumns;
10773
- }, [columns]);
10774
- const handleClickAway = event => {
10775
- var _a;
10776
- if ((_a = buttonIconRef.current) === null || _a === void 0 ? void 0 : _a.contains(event.target)) {
10777
- return;
10778
- }
10779
- toggleRowCountDropdown();
10780
- };
10781
10861
  const getColumnHeaderContents = () => {
10782
- const columnKeys = Object.keys(sortedColumns);
10783
- return columnKeys.map(column => {
10784
- var _a;
10785
- return (_a = columns[column]) === null || _a === void 0 ? void 0 : _a.headerContent;
10786
- });
10862
+ return columns.map(column => column.headerContent);
10787
10863
  };
10788
10864
  const isAllChecked = useMemo(() => isChecked.length > 0 && isChecked.every(check => check), [isChecked]);
10789
10865
  const isIndeterminate = useMemo(() => isChecked.some(check => check), [isChecked]);
@@ -10804,86 +10880,23 @@ const GridController = ({
10804
10880
  return jsx(Table, Object.assign({
10805
10881
  css: styles$e.table,
10806
10882
  "data-testid": "grid",
10807
- footer: jsxs("div", Object.assign({
10808
- css: styles$e.footer
10809
- }, {
10810
- children: [jsxs("div", Object.assign({
10811
- css: styles$e.leftFooter
10812
- }, {
10813
- children: [jsx("div", Object.assign({
10814
- css: styles$e.rowCount
10815
- }, {
10816
- children: jsx(Trans, {
10817
- components: [jsx("b", {
10818
- style: {
10819
- fontWeight: "bold"
10820
- }
10821
- }, "1")],
10822
- count: pagingData.total,
10823
- i18nKey: "common:grid.row-count",
10824
- values: {
10825
- firstIndex: pagingData.total !== 0 ? 1 + (pagingData.page - 1) * currentPageSize : 0,
10826
- lastIndex: Math.min(pagingData.total, pagingData.page * currentPageSize)
10827
- }
10828
- })
10829
- })), jsxs("div", Object.assign({
10830
- css: styles$e.rowsActions
10831
- }, {
10832
- children: [t("common:grid.rows"), jsx(Button, Object.assign({
10833
- id: "selected-row",
10834
- onClick: () => toggleRowCountDropdown(),
10835
- ref: buttonIconRef,
10836
- variant: ButtonVariant.TEXT
10837
- }, {
10838
- children: currentPageSize
10839
- })), isRowCountDropDownOpen ? jsx(Icon, {
10840
- name: IconNames.CHEVRON_TOP,
10841
- onClick: () => toggleRowCountDropdown(),
10842
- size: IconSize.SIZE_MEDIUM
10843
- }) : jsx(Icon, {
10844
- name: IconNames.CHEVRON_BOTTOM,
10845
- onClick: () => toggleRowCountDropdown(),
10846
- size: IconSize.SIZE_MEDIUM
10847
- }), jsx(DropdownOptionList, Object.assign({
10848
- css: styles$e.rowCountDropDown,
10849
- dropdownWidth: "max-content",
10850
- isOpen: isRowCountDropDownOpen,
10851
- onChange: () => toggleRowCountDropdown(),
10852
- onClickAway: handleClickAway,
10853
- placement: "bottom",
10854
- reference: buttonIconRef.current
10855
- }, {
10856
- children: _rowCountSelection.map(selection => jsx(Option, Object.assign({
10857
- onClick: () => onPageSizeSelect(selection),
10858
- value: String(selection)
10859
- }, {
10860
- children: selection
10861
- }), selection))
10862
- }))]
10863
- }))]
10864
- })), jsx(TableFooter, {
10865
- children: jsx(Pagination, {
10866
- boundaryPagesToShow: 5,
10867
- currentPage: pagingData.page,
10868
- onPageChange: onPageSelect,
10869
- totalPages: pagingData.pages
10870
- })
10871
- })]
10872
- })),
10883
+ footer: footerContent && jsx(TableFooter, {
10884
+ children: footerContent
10885
+ }),
10873
10886
  header: jsx(TableHeader, {
10874
- children: jsxs(TableHeaderRow, Object.assign({
10875
- css: styles$e.tableHeader
10876
- }, {
10877
- children: [jsx(TableHeaderCell, {
10887
+ children: jsxs(TableHeaderRow, {
10888
+ children: [_useCheckboxes ? jsx(TableHeaderCell, Object.assign({
10889
+ css: styles$e.checkboxHeader
10890
+ }, {
10878
10891
  children: jsx(Checkbox, {
10879
10892
  checked: (_b = isAllChecked || isIndeterminate) !== null && _b !== void 0 ? _b : false,
10880
10893
  indeterminate: (_c = !isAllChecked && isIndeterminate) !== null && _c !== void 0 ? _c : false,
10881
10894
  onChange: event => toggleAllCheckboxes(event.target.checked)
10882
10895
  })
10883
- }), getColumnHeaderContents().map((header, index) => jsx(TableHeaderCell, {
10896
+ })) : null, getColumnHeaderContents().map((header, index) => jsx(TableHeaderCell, {
10884
10897
  children: header
10885
10898
  }, index))]
10886
- }))
10899
+ })
10887
10900
  })
10888
10901
  }, {
10889
10902
  children: jsx(TableBody, {
@@ -10892,20 +10905,17 @@ const GridController = ({
10892
10905
  return jsxs(TableRow, Object.assign({
10893
10906
  onClick: onRowClick ? () => onRowClick(row) : undefined
10894
10907
  }, {
10895
- children: [jsx(TableBodyCell, {
10908
+ children: [_useCheckboxes ? jsx(TableBodyCell, {
10896
10909
  children: jsx(Checkbox, {
10897
10910
  checked: (_a = isChecked[index]) !== null && _a !== void 0 ? _a : false,
10898
10911
  onChange: () => toggleCheckbox(index)
10899
10912
  })
10900
- }), Object.keys(sortedColumns).map((columnName, index) => {
10901
- var _a;
10902
- const cellData = row[columnName];
10903
- const render = (_a = columns[columnName]) === null || _a === void 0 ? void 0 : _a.renderCellContent;
10904
- if (!render || !cellData) {
10913
+ }) : null, columns.map((column, index) => {
10914
+ if (!column.renderCellContent) {
10905
10915
  return null;
10906
10916
  } else {
10907
10917
  return jsx(TableBodyCell, {
10908
- children: render(row)
10918
+ children: column.renderCellContent(row)
10909
10919
  }, index);
10910
10920
  }
10911
10921
  })]
@@ -10922,7 +10932,7 @@ const CellFormattedDate = ({
10922
10932
  const [formatWithShort, setFormatWithShort] = useState(!!short);
10923
10933
  return jsx("div", {
10924
10934
  children: jsx("div", {
10925
- children: formatWithShort ? formatDate(date) : formatDateDDMMYY(date)
10935
+ children: formatWithShort ? formatDateDDMMYY(date) : formatDate(date)
10926
10936
  })
10927
10937
  });
10928
10938
  };
@@ -19138,4 +19148,4 @@ var onboarding = /*#__PURE__*/Object.freeze({
19138
19148
  Element: Element
19139
19149
  });
19140
19150
 
19141
- export { accountSettings as AccountSettings, AddFundsForm, AutoFundingForm, ButtonGroup, CarrierBalance, CarrierIcon, CarrierLogo, CellFormattedDate, CollapsiblePanel, CopyButton, Country, Cube, DateRangeCombo, DateRangeSelect, DisplayTerm, ErrorFallback, fields as Field, FieldLabel, FormPortal, FundAndPurchase, GridController, InlineLabel, ItemsBreakdown, labelWorkflow as LabelWorkflow, LinkAction, listCarriers$1 as ListCarriers, Loader, ManageFunding, manageWarehouses$1 as ManageWarehouses, onboarding as Onboarding, PageLayoutProvider, PaymentMethodSettings, Portal, PoweredByShipEngine, purchaseLabel as PurchaseLabel, RootPortalProvider, Section, Spacer, Spread, StoryNotes, UsState, UsaCity, viewShipment as ViewShipment, voidLabel as VoidLabel, assert, autoFundingSchema, calculateTotal, capitalizeFirstLetter, convertDecimalWeightToFractionalWeight, convertDimensions, convertFractionalWeightToDecimalWeight, convertPoundsAndOuncesToOunces, convertWeight, countries, countryCodes, createCodedErrors, createDictionary, createStyles, currencySymbol, daysAfter, errorMap, euCountryCodes, extendZod, featureFlagComponentNameLookup, featureFlags, formLogger, formatCreditCardNumber, formatDate, formatDateDDMMYY, formatDimensions, formatExpiration, formatFractionalWeight, formatMoney, getAddFundsSchema, getCancelledShipment, getCarrierIdByCarrierCode, getCustomsFromSalesOrder, getExpirationYears, getFeatures, getIsCustomsRequiredForSalesOrder, getIsCustomsRequiredForShipment, getIsInternationalShipment, getPendingShipment, getRateRequiresAcknowledgement, getRelativeDates, getRequestedServices, getSalesOrderItemsFromSalesOrderOrShipment, getShipmentByStatus, getTotalRateAmount, isDecimalWeight, isDomesticAddress, isEmptyAddress, isFlatRatePackageCode, isMetricWeightUnit, isMilitaryAddress, isNowOrInTheFuture, isPoBox, isPoBoxAddress, isString, isUnitedStatesTerritory, isUnsupportedByUps, isUpsCarrier, isUspsCarrier, moneySchema, mostRecent, nextDayCutoff, omitTime, overrideCarrierCodes$1 as overrideCarrierCodes, phoneSchema, phoneSchemaUnvalidated, postalCodeRegex$3 as postalCodeRegex, raise, sortByCreationDate, throwAny, throwJoinedMessages, usCities, usStateCodes, usStates, useAddressValidation, useBlackboxDetection, useCarrierMetadata, useConfirmationOptions, useCountryCodeOptions, useCustomsContentsOptions, useCustomsNonDeliveryOptions, useDateRangeOptions, useExpirationMonthOptions, useFeatures, useInsuranceProviderOptions, useNestedForm, usePackageOptions, usePageLayout, useRateOptions, useRootPortal, useRunOnceOnTrue, useScrubErrors, useServiceCodeOptions, useShipmentMetadata, useShippingPresetsOptions, useStateCodeOptions, useToggle, useWarehouseOptions, validationResolver };
19151
+ export { accountSettings as AccountSettings, AddFundsForm, AutoFundingForm, ButtonGroup, CarrierBalance, CarrierIcon, CarrierLogo, CellFormattedDate, CollapsiblePanel, CopyButton, Country, Cube, DateRangeCombo, DateRangeSelect, DisplayTerm, ErrorFallback, fields as Field, FieldLabel, FormPortal, FundAndPurchase, GridController, InlineLabel, ItemsBreakdown, labelWorkflow as LabelWorkflow, LinkAction, listCarriers$1 as ListCarriers, Loader, ManageFunding, manageWarehouses$1 as ManageWarehouses, onboarding as Onboarding, PageLayoutProvider, Pager, PaymentMethodSettings, Portal, PoweredByShipEngine, purchaseLabel as PurchaseLabel, RootPortalProvider, Section, Spacer, Spread, StoryNotes, UsState, UsaCity, viewShipment as ViewShipment, voidLabel as VoidLabel, assert, autoFundingSchema, calculateTotal, capitalizeFirstLetter, convertDecimalWeightToFractionalWeight, convertDimensions, convertFractionalWeightToDecimalWeight, convertPoundsAndOuncesToOunces, convertWeight, countries, countryCodes, createCodedErrors, createDictionary, createStyles, currencySymbol, daysAfter, errorMap, euCountryCodes, extendZod, featureFlagComponentNameLookup, featureFlags, formLogger, formatCreditCardNumber, formatDate, formatDateDDMMYY, formatDimensions, formatExpiration, formatFractionalWeight, formatMoney, getAddFundsSchema, getCancelledShipment, getCarrierIdByCarrierCode, getCustomsFromSalesOrder, getExpirationYears, getFeatures, getIsCustomsRequiredForSalesOrder, getIsCustomsRequiredForShipment, getIsInternationalShipment, getPendingShipment, getRateRequiresAcknowledgement, getRelativeDates, getRequestedServices, getSalesOrderItemsFromSalesOrderOrShipment, getShipmentByStatus, getTotalRateAmount, isDecimalWeight, isDomesticAddress, isEmptyAddress, isFlatRatePackageCode, isMetricWeightUnit, isMilitaryAddress, isNowOrInTheFuture, isPoBox, isPoBoxAddress, isString, isUnitedStatesTerritory, isUnsupportedByUps, isUpsCarrier, isUspsCarrier, moneySchema, mostRecent, nextDayCutoff, omitTime, overrideCarrierCodes$1 as overrideCarrierCodes, phoneSchema, phoneSchemaUnvalidated, postalCodeRegex$3 as postalCodeRegex, raise, sortByCreationDate, throwAny, throwJoinedMessages, usCities, usStateCodes, usStates, useAddressValidation, useBlackboxDetection, useCarrierMetadata, useConfirmationOptions, useCountryCodeOptions, useCustomsContentsOptions, useCustomsNonDeliveryOptions, useDateRangeOptions, useExpirationMonthOptions, useFeatures, useInsuranceProviderOptions, useNestedForm, usePackageOptions, usePageLayout, usePager, useRateOptions, useRootPortal, useRunOnceOnTrue, useScrubErrors, useServiceCodeOptions, useShipmentMetadata, useShippingPresetsOptions, useStateCodeOptions, useToggle, useWarehouseOptions, validationResolver };