@stigg/react-sdk 5.23.1 → 5.24.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 (29) hide show
  1. package/dist/components/common/mediaQuery.d.ts +12 -0
  2. package/dist/components/hooks/useIsScreenWiderThan.d.ts +2 -0
  3. package/dist/react-sdk.cjs.development.js +155 -102
  4. package/dist/react-sdk.cjs.development.js.map +1 -1
  5. package/dist/react-sdk.cjs.production.min.js +1 -1
  6. package/dist/react-sdk.cjs.production.min.js.map +1 -1
  7. package/dist/react-sdk.esm.js +163 -122
  8. package/dist/react-sdk.esm.js.map +1 -1
  9. package/package.json +6 -4
  10. package/src/components/checkout/CheckoutContainer.style.ts +18 -3
  11. package/src/components/checkout/progressBar/CheckoutProgressBar.tsx +24 -5
  12. package/src/components/checkout/steps/addons/CheckoutAddonsStep.style.tsx +11 -3
  13. package/src/components/checkout/steps/addons/CheckoutAddonsStep.tsx +4 -2
  14. package/src/components/checkout/steps/plan/CheckoutChargeList.tsx +13 -6
  15. package/src/components/checkout/summary/CheckoutSuccess.tsx +8 -2
  16. package/src/components/checkout/summary/CheckoutSummary.tsx +6 -1
  17. package/src/components/checkout/summary/components/LineItems.tsx +15 -4
  18. package/src/components/common/mediaQuery.ts +19 -0
  19. package/src/components/customerPortal/billing/InformationGrid.tsx +1 -0
  20. package/src/components/customerPortal/billing/PaymentDetailsSection.tsx +15 -3
  21. package/src/components/customerPortal/common/SectionContainer.tsx +12 -1
  22. package/src/components/customerPortal/subscriptionOverview/SubscriptionOverviewLoader.tsx +4 -1
  23. package/src/components/customerPortal/subscriptionOverview/SubscriptionsOverview.tsx +3 -1
  24. package/src/components/customerPortal/usage/CustomerUsageData.style.tsx +4 -2
  25. package/src/components/customerPortal/usage/CustomerUsageData.tsx +6 -3
  26. package/src/components/hooks/useIsScreenWiderThan.ts +6 -0
  27. package/src/stories/Checkout.stories.tsx +2 -1
  28. package/src/stories/CustomerPortal.stories.tsx +2 -1
  29. package/src/stories/baseArgs.ts +4 -4
@@ -0,0 +1,12 @@
1
+ export declare const breakpoints: {
2
+ readonly xs: 320;
3
+ readonly sm: 640;
4
+ readonly md: 768;
5
+ readonly lg: 1024;
6
+ readonly xl: 1280;
7
+ readonly xxl: 1536;
8
+ };
9
+ export declare type Breakpoints = typeof breakpoints;
10
+ export declare type Breakpoint = keyof Breakpoints;
11
+ export declare const mqMinWidth: (breakpoint: Breakpoint) => string;
12
+ export declare const mq: Record<"xs" | "sm" | "md" | "lg" | "xl" | "xxl", string>;
@@ -0,0 +1,2 @@
1
+ import { Breakpoint } from '../common/mediaQuery';
2
+ export declare function useIsScreenWiderThan(breakpoint: Breakpoint): boolean;