@schematichq/schematic-components 0.1.0 → 0.2.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.
@@ -9,7 +9,6 @@ import { IStyledComponentBase } from 'styled-components/dist/types';
9
9
  import { JSX as JSX_2 } from 'react/jsx-runtime';
10
10
  import { RefAttributes } from 'react';
11
11
  import { RefObject } from 'react';
12
- import { Stripe } from '@stripe/stripe-js';
13
12
  import { Substitute } from 'styled-components/dist/types';
14
13
 
15
14
  declare interface ApiResponse<T> {
@@ -292,7 +291,7 @@ declare interface BillingProductForSubscriptionResponseData {
292
291
  * @type {string}
293
292
  * @memberof BillingProductForSubscriptionResponseData
294
293
  */
295
- interval?: string | null;
294
+ interval: string;
296
295
  /**
297
296
  *
298
297
  * @type {string}
@@ -310,7 +309,7 @@ declare interface BillingProductForSubscriptionResponseData {
310
309
  * @type {string}
311
310
  * @memberof BillingProductForSubscriptionResponseData
312
311
  */
313
- priceExternalId?: string | null;
312
+ priceExternalId: string;
314
313
  /**
315
314
  *
316
315
  * @type {number}
@@ -384,12 +383,13 @@ export declare const Box: IStyledComponentBase<"web", Substitute<DetailedHTMLPro
384
383
 
385
384
  export declare type BoxProps = ComponentProps;
386
385
 
387
- export declare const Button: ({ color, size, variant, disabled, children, ...props }: ButtonProps) => JSX_2.Element;
386
+ export declare const Button: ({ color, size, variant, disabled, isLoading, children, ...props }: ButtonProps) => JSX_2.Element;
388
387
 
389
388
  export declare interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
390
389
  color?: ButtonStyleTypes;
391
390
  size?: ButtonSizeTypes;
392
391
  variant?: ButtonVariantTypes;
392
+ isLoading?: boolean;
393
393
  }
394
394
 
395
395
  export declare type ButtonSizeTypes = "sm" | "md" | "lg";
@@ -763,6 +763,12 @@ declare interface CompanySubscriptionResponseData {
763
763
  * @memberof CompanySubscriptionResponseData
764
764
  */
765
765
  products: Array<BillingProductForSubscriptionResponseData>;
766
+ /**
767
+ *
768
+ * @type {string}
769
+ * @memberof CompanySubscriptionResponseData
770
+ */
771
+ status: string;
766
772
  /**
767
773
  *
768
774
  * @type {string}
@@ -1171,14 +1177,12 @@ export declare interface EmbedContextProps {
1171
1177
  data: ComponentHydrateResponseData;
1172
1178
  nodes: SerializedNodeWithChildren[];
1173
1179
  settings: EmbedSettings;
1174
- stripe: Promise<Stripe | null> | null;
1175
1180
  layout: EmbedLayout;
1176
1181
  error?: Error;
1177
1182
  isPending: boolean;
1178
1183
  hydrate: () => void;
1179
1184
  setData: (data: RecursivePartial<ComponentHydrateResponseData>) => void;
1180
1185
  updateSettings: (settings: RecursivePartial<EmbedSettings>) => void;
1181
- setStripe: (stripe: Promise<Stripe | null> | null) => void;
1182
1186
  setLayout: (layout: EmbedLayout) => void;
1183
1187
  }
1184
1188
 
@@ -2115,7 +2119,11 @@ declare class JSONApiResponse<T> {
2115
2119
  value(): Promise<T>;
2116
2120
  }
2117
2121
 
2118
- export declare const Loader: IStyledComponentBase<"web", FastOmit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2122
+ export declare const Loader: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
2123
+ $size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
2124
+ $color?: string;
2125
+ $isLoading?: boolean;
2126
+ }>> & string;
2119
2127
 
2120
2128
  declare function mapValues(data: any, fn: (item: any) => any): {};
2121
2129