@shipengine/elements 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +15 -0
  2. package/index.cjs +2868 -3267
  3. package/index.js +2868 -3270
  4. package/package.json +6 -2
  5. package/src/components/carrier-icon/carrier-icon.d.ts +13 -0
  6. package/src/components/carrier-icon/index.d.ts +1 -0
  7. package/src/components/collapsible-panel/collapsible-panel.styles.d.ts +1 -1
  8. package/src/components/display-term/display-term.styles.d.ts +2 -2
  9. package/src/components/grid-controller/cell-formatted-date.d.ts +4 -0
  10. package/src/components/grid-controller/grid-controller.d.ts +22 -0
  11. package/src/components/grid-controller/grid-controller.styles.d.ts +61 -0
  12. package/src/components/grid-controller/hooks/use-grid.d.ts +43 -0
  13. package/src/components/grid-controller/index.d.ts +2 -0
  14. package/src/components/history/history-card-extension/history-card-extension.styles.d.ts +2 -2
  15. package/src/components/index.d.ts +2 -0
  16. package/src/components/label-layout/label-layout.styles.d.ts +8 -5
  17. package/src/components/powered-by-shipengine/powered-by-shipengine.styles.d.ts +2 -2
  18. package/src/components/save-status/save-status-styles.d.ts +4 -9
  19. package/src/components/section/section.d.ts +2 -2
  20. package/src/components/templates/connect-carrier/connect-carrier.d.ts +1 -0
  21. package/src/components/templates/connect-carrier/connect-carrier.styles.d.ts +1 -0
  22. package/src/components/templates/connect-carrier/index.d.ts +1 -0
  23. package/src/components/templates/connect-carrier-form/connect-carrier-form.d.ts +4 -0
  24. package/src/components/templates/connect-carrier-form/connect-carrier-form.styles.d.ts +60 -0
  25. package/src/components/templates/connect-carrier-form/index.d.ts +1 -0
  26. package/src/components/templates/display-carrier-terms/display-carrier-terms.styles.d.ts +2 -2
  27. package/src/elements/account-settings/account-settings.d.ts +13 -7
  28. package/src/elements/configure-shipment/hooks/use-rates-form.d.ts +1 -1
  29. package/src/elements/connect-carrier/connect-carrier.d.ts +685 -0
  30. package/src/elements/connect-carrier/index.d.ts +1 -0
  31. package/src/elements/labels-grid/index.d.ts +1 -0
  32. package/src/elements/labels-grid/labels-grid.d.ts +687 -0
  33. package/src/elements/purchase-label/purchase-label.d.ts +20 -2
  34. package/src/elements/view-shipment/view-shipment.d.ts +17 -1
  35. package/src/elements/void-label/void-label.d.ts +13 -6
  36. package/src/features/wallet-history/wallet-history.styles.d.ts +2 -2
  37. package/src/locales/en/index.d.ts +13 -0
  38. package/src/workflows/onboarding/components/carrier-recovery-form/carrier-recovery-form-schema.d.ts +29 -29
  39. package/src/workflows/onboarding/onboarding.d.ts +55 -2
@@ -466,9 +466,17 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
466
466
  cancel: string;
467
467
  close: string;
468
468
  confirm: string;
469
+ connect: string;
469
470
  continue: string;
470
471
  delete: string;
471
472
  edit: string;
473
+ /**
474
+ * # Onboarding Component Props
475
+ *
476
+ * - These are the base props that will be passed into the `<Onboarding />` component.
477
+ *
478
+ * @see {@link Onboarding.Component | This prop types usage in the `<Onboarding />` component}
479
+ */
472
480
  hide: string;
473
481
  parse: string;
474
482
  purchase: string;
@@ -489,14 +497,47 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
489
497
  cityLocality: string;
490
498
  stateProvince: string;
491
499
  postalCode: string;
492
- phone: string;
493
- email: string; /** The partner responsible for the currently onboarding seller. This is typically the name of the entity that owns the host application. */
500
+ phone: string; /** The partner responsible for the currently onboarding seller. This is typically the name of the entity that owns the host application. */
501
+ email: string;
494
502
  addressResidentialIndicator: string;
495
503
  };
496
504
  noResults: string;
497
505
  subFields: {
498
506
  optional: string;
499
507
  };
508
+ /**
509
+ * # Onboarding Component
510
+ *
511
+ * - The `<Onboarding />` component is used to onboard a new user to the ShipEngine platform. This
512
+ * component will allow the user to create a warehouse, register a carrier, and create a funding
513
+ * source for their account. This is everything a user needs to begin fulfilling their shipments
514
+ * using the ShipEngine Platform.
515
+ *
516
+ * @param ComponentProps The base props that will be passed into the `<Onboarding />` component.
517
+ *
518
+ * @returns Element An EmotionJSX.Element that will render the `<Onboarding />` component
519
+ * with all the appropriate wrappers.
520
+ *
521
+ * @example
522
+ * You can see how the `<Component />` is used in the `createElement` function call below.
523
+ * ```tsx
524
+ * export const Element = alchemy.createElement(Component, ErrorFallback, {
525
+ * css: {
526
+ * height: "100%",
527
+ * maxWidth: "800px",
528
+ * minWidth: "440px",
529
+ * overflow: "auto",
530
+ * scrollbarGutter: "stable both-edges",
531
+ * width: "100%",
532
+ * },
533
+ * resources: { en },
534
+ * });
535
+ * ```
536
+ *
537
+ * <br />
538
+ *
539
+ * @see {@link Onboarding.Element | The **Element** created to render `<Onboarding />`}
540
+ */
500
541
  parserFields: {
501
542
  fullAddress: string;
502
543
  };
@@ -619,6 +660,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
619
660
  unknown: string;
620
661
  validation: string;
621
662
  };
663
+ grid: {
664
+ "row-count_one": string;
665
+ "row-count_other": string;
666
+ rows: string;
667
+ };
622
668
  insuranceProviders: {
623
669
  carrier: string;
624
670
  none: string;
@@ -727,6 +773,13 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
727
773
  "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBNaXNzaW5nIG9yIGludmFsaWQgc2hpcCB0byBTdGF0ZVByb3ZpbmNlQ29kZQ==": string;
728
774
  "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
729
775
  };
776
+ "connect-carrier": {
777
+ registrationForm: {
778
+ title: string;
779
+ isLoading: string;
780
+ betaWarning: string;
781
+ };
782
+ };
730
783
  "account-settings": {
731
784
  title: string;
732
785
  sections: {