@schematichq/schematic-components 1.0.0 → 1.0.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.
@@ -4,6 +4,9 @@ import { DetailedHTMLProps } from 'react';
4
4
  import { FastOmit } from 'styled-components';
5
5
  import { ForwardRefExoticComponent } from 'react';
6
6
  import { HTMLAttributes } from 'react';
7
+ import { IconNames } from '@schematichq/schematic-icons';
8
+ import { IconProps as IconProps_2 } from '@schematichq/schematic-icons';
9
+ import { iconsList } from '@schematichq/schematic-icons';
7
10
  import { InputHTMLAttributes } from 'react';
8
11
  import { IStyledComponentBase } from 'styled-components/dist/types';
9
12
  import { JSX } from 'react/jsx-runtime';
@@ -1558,7 +1561,7 @@ export declare type ButtonAlignment = "start" | "center" | "end";
1558
1561
 
1559
1562
  export declare type ButtonColor = "primary" | "secondary" | "danger";
1560
1563
 
1561
- export declare const ButtonElement: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_2> & HTMLAttributes<HTMLDivElement> & {
1564
+ export declare const ButtonElement: ForwardRefExoticComponent<ElementProps & DeepPartial<DesignProps_2> & HTMLAttributes<HTMLDivElement> & {
1562
1565
  portal?: HTMLElement | null;
1563
1566
  } & RefAttributes<HTMLDivElement | null>>;
1564
1567
 
@@ -1643,6 +1646,12 @@ declare interface ChangeSubscriptionRequestBody {
1643
1646
  * @memberof ChangeSubscriptionRequestBody
1644
1647
  */
1645
1648
  promoCode?: string | null;
1649
+ /**
1650
+ *
1651
+ * @type {boolean}
1652
+ * @memberof ChangeSubscriptionRequestBody
1653
+ */
1654
+ skipTrial: boolean;
1646
1655
  }
1647
1656
 
1648
1657
  /**
@@ -1941,6 +1950,12 @@ declare interface CompanyPlanDetailResponseData {
1941
1950
  * @memberof CompanyPlanDetailResponseData
1942
1951
  */
1943
1952
  companyCount: number;
1953
+ /**
1954
+ *
1955
+ * @type {Array<string>}
1956
+ * @memberof CompanyPlanDetailResponseData
1957
+ */
1958
+ compatiblePlanIds: Array<string>;
1944
1959
  /**
1945
1960
  *
1946
1961
  * @type {string}
@@ -2240,6 +2255,68 @@ declare interface CompanySubscriptionResponseData {
2240
2255
  trialEnd?: Date | null;
2241
2256
  }
2242
2257
 
2258
+ /**
2259
+ * Schematic API
2260
+ * Schematic API
2261
+ *
2262
+ * The version of the OpenAPI document: 0.1
2263
+ *
2264
+ *
2265
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2266
+ * https://openapi-generator.tech
2267
+ * Do not edit the class manually.
2268
+ */
2269
+ /**
2270
+ *
2271
+ * @export
2272
+ * @interface CompatiblePlans
2273
+ */
2274
+ declare interface CompatiblePlans {
2275
+ /**
2276
+ *
2277
+ * @type {Array<string>}
2278
+ * @memberof CompatiblePlans
2279
+ */
2280
+ compatiblePlanIds: Array<string>;
2281
+ /**
2282
+ *
2283
+ * @type {string}
2284
+ * @memberof CompatiblePlans
2285
+ */
2286
+ sourcePlanId: string;
2287
+ }
2288
+
2289
+ /**
2290
+ * Schematic API
2291
+ * Schematic API
2292
+ *
2293
+ * The version of the OpenAPI document: 0.1
2294
+ *
2295
+ *
2296
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2297
+ * https://openapi-generator.tech
2298
+ * Do not edit the class manually.
2299
+ */
2300
+ /**
2301
+ *
2302
+ * @export
2303
+ * @interface CompatiblePlans
2304
+ */
2305
+ declare interface CompatiblePlans_2 {
2306
+ /**
2307
+ *
2308
+ * @type {Array<string>}
2309
+ * @memberof CompatiblePlans
2310
+ */
2311
+ compatiblePlanIds: Array<string>;
2312
+ /**
2313
+ *
2314
+ * @type {string}
2315
+ * @memberof CompatiblePlans
2316
+ */
2317
+ sourcePlanId: string;
2318
+ }
2319
+
2243
2320
  /**
2244
2321
  * Schematic API
2245
2322
  * Schematic API
@@ -2326,6 +2403,12 @@ declare interface ComponentHydrateResponseData {
2326
2403
  * @memberof ComponentHydrateResponseData
2327
2404
  */
2328
2405
  activeUsageBasedEntitlements: Array<UsageBasedEntitlementResponseData>;
2406
+ /**
2407
+ *
2408
+ * @type {Array<CompatiblePlans>}
2409
+ * @memberof ComponentHydrateResponseData
2410
+ */
2411
+ addOnCompatibilities: Array<CompatiblePlans>;
2329
2412
  /**
2330
2413
  *
2331
2414
  * @type {ComponentCapabilities}
@@ -2542,124 +2625,8 @@ declare interface CustomPlanConfig_2 {
2542
2625
 
2543
2626
  declare type DebouncedApiPromise<R> = Promise<R | undefined> | undefined;
2544
2627
 
2545
- declare const _default: {
2546
- alarm: number;
2547
- amazonpay: number;
2548
- amex: number;
2549
- applepay: number;
2550
- "arrow-analytics": number;
2551
- "arrow-curved": number;
2552
- "arrow-down": number;
2553
- "arrow-left": number;
2554
- "arrow-right": number;
2555
- "arrow-up": number;
2556
- "arrow-upward": number;
2557
- backspace: number;
2558
- bank: number;
2559
- bell: number;
2560
- board: number;
2561
- bookmark: number;
2562
- "boolean-on": number;
2563
- boolean: number;
2564
- bulb: number;
2565
- burger: number;
2566
- cashapp: number;
2567
- "check-rounded": number;
2568
- check: number;
2569
- "chevron-down": number;
2570
- "chevron-left": number;
2571
- "chevron-right": number;
2572
- "chevron-up": number;
2573
- chip: number;
2574
- chips: number;
2575
- clerk: number;
2576
- "close-rounded-filled": number;
2577
- close: number;
2578
- "cloud-up": number;
2579
- club: number;
2580
- cmd: number;
2581
- code: number;
2582
- coffee: number;
2583
- cog: number;
2584
- "collapse-empty": number;
2585
- collapse: number;
2586
- compass: number;
2587
- connection: number;
2588
- copy: number;
2589
- credit: number;
2590
- cylnder: number;
2591
- diamond: number;
2592
- "dollar-rounded": number;
2593
- "dots-horizontal": number;
2594
- "dots-vertical": number;
2595
- entitlements: number;
2596
- equalizer: number;
2597
- "exclamation-rounded-filled": number;
2598
- eye: number;
2599
- filter: number;
2600
- flask: number;
2601
- "folder-minus": number;
2602
- "folder-plus": number;
2603
- folder: number;
2604
- "generic-payment": number;
2605
- github: number;
2606
- glasses: number;
2607
- globe: number;
2608
- google: number;
2609
- hammer: number;
2610
- hash: number;
2611
- heart: number;
2612
- hubspot: number;
2613
- image: number;
2614
- "info-rounded": number;
2615
- juice: number;
2616
- key: number;
2617
- link: number;
2618
- mastercard: number;
2619
- move: number;
2620
- music: number;
2621
- "node-minus": number;
2622
- "node-plus": number;
2623
- package: number;
2624
- "paper-plane": number;
2625
- paypal: number;
2626
- pencil: number;
2627
- percent: number;
2628
- picker: number;
2629
- plan: number;
2630
- plug: number;
2631
- "plus-minus": number;
2632
- "plus-rounded-outline": number;
2633
- present: number;
2634
- schematic: number;
2635
- search: number;
2636
- segment: number;
2637
- "server-search": number;
2638
- sidebar: number;
2639
- signal: number;
2640
- silence: number;
2641
- spade: number;
2642
- speaker: number;
2643
- stacked: number;
2644
- stacks: number;
2645
- stripe: number;
2646
- text: number;
2647
- thunder: number;
2648
- tornado: number;
2649
- truck: number;
2650
- tube: number;
2651
- unprotected: number;
2652
- unsubscribe: number;
2653
- verified: number;
2654
- "video-camera": number;
2655
- visa: number;
2656
- wallet: number;
2657
- "watch-hand": number;
2658
- "watch-pocket": number;
2659
- "water-drop": number;
2660
- waves: number;
2661
- webhook: number;
2662
- wind: number;
2628
+ declare type DeepPartial<T> = {
2629
+ [K in keyof T]?: T[K] extends (infer U)[] ? DeepPartial<U>[] : T[K] extends object | undefined ? DeepPartial<T[K]> : T[K];
2663
2630
  };
2664
2631
 
2665
2632
  export declare const defaultSettings: EmbedSettings;
@@ -2944,7 +2911,7 @@ export declare interface EmbedContextProps extends EmbedState {
2944
2911
  setLayout: (layout: EmbedLayout) => void;
2945
2912
  setCheckoutState: (state: CheckoutState) => void;
2946
2913
  setData: (data: ComponentHydrateResponseData) => void;
2947
- updateSettings: (settings: RecursivePartial<EmbedSettings>, options?: {
2914
+ updateSettings: (settings: DeepPartial<EmbedSettings>, options?: {
2948
2915
  update?: boolean;
2949
2916
  }) => void;
2950
2917
  }
@@ -2964,7 +2931,7 @@ export declare interface EmbedProviderProps {
2964
2931
  children: React.ReactNode;
2965
2932
  apiKey?: string;
2966
2933
  apiConfig?: ConfigurationParameters;
2967
- settings?: RecursivePartial<EmbedSettings>;
2934
+ settings?: DeepPartial<EmbedSettings>;
2968
2935
  debug?: boolean;
2969
2936
  }
2970
2937
 
@@ -4233,24 +4200,22 @@ declare interface HydrateUpcomingInvoiceResponse {
4233
4200
  params: object;
4234
4201
  }
4235
4202
 
4236
- export declare const Icon: ({ name, className, ...props }: IconProps) => JSX.Element;
4237
-
4238
- export declare type IconNameTypes = keyof typeof _default;
4239
-
4240
- export declare interface IconProps extends React.HTMLAttributes<HTMLElement> {
4241
- name: IconNameTypes;
4242
- }
4203
+ export declare const Icon: ({ children, name, variant, size, color, background, rounded, ...rest }: IconProps) => JSX.Element;
4243
4204
 
4244
- export declare const IconRound: ({ name, variant, size, colors, ...props }: IconRoundProps) => JSX.Element;
4205
+ export { IconNames }
4245
4206
 
4246
- export declare interface IconRoundProps extends React.HTMLAttributes<HTMLElement> {
4247
- name: IconNameTypes | string;
4248
- variant?: "outline" | "filled";
4207
+ export declare interface IconProps extends Omit<IconProps_2, "name"> {
4208
+ name: IconNames | string;
4209
+ variant?: "filled" | "outline";
4249
4210
  size?: "tn" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
4250
- colors?: [string, string];
4211
+ color?: string;
4212
+ background?: string;
4213
+ rounded?: boolean;
4251
4214
  }
4252
4215
 
4253
- export declare const IncludedFeatures: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
4216
+ export { iconsList }
4217
+
4218
+ export declare const IncludedFeatures: ForwardRefExoticComponent<ElementProps & DeepPartial<DesignProps> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
4254
4219
 
4255
4220
  export declare type IncludedFeaturesProps = DesignProps;
4256
4221
 
@@ -4411,7 +4376,7 @@ declare interface InvoiceResponseData {
4411
4376
  url?: string | null;
4412
4377
  }
4413
4378
 
4414
- export declare const Invoices: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_3> & {
4379
+ export declare const Invoices: ForwardRefExoticComponent<ElementProps & DeepPartial<DesignProps_3> & {
4415
4380
  data?: InvoiceResponseData[];
4416
4381
  } & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
4417
4382
 
@@ -4480,7 +4445,7 @@ declare interface LoaderProps {
4480
4445
 
4481
4446
  export declare const loaderStyles: ({ $color, $size, $isLoading, }: LoaderProps) => RuleSet<object>;
4482
4447
 
4483
- export declare const MeteredFeatures: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_4> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
4448
+ export declare const MeteredFeatures: ForwardRefExoticComponent<ElementProps & DeepPartial<DesignProps_4> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
4484
4449
 
4485
4450
  export declare type MeteredFeaturesProps = DesignProps_4;
4486
4451
 
@@ -4524,7 +4489,7 @@ xl?: TransientCSSProperties;
4524
4489
  };
4525
4490
  }, never>> & string;
4526
4491
 
4527
- export declare const PaymentMethod: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_5> & HTMLAttributes<HTMLDivElement> & {
4492
+ export declare const PaymentMethod: ForwardRefExoticComponent<ElementProps & DeepPartial<DesignProps_5> & HTMLAttributes<HTMLDivElement> & {
4528
4493
  portal?: HTMLElement | null;
4529
4494
  allowEdit?: boolean;
4530
4495
  } & RefAttributes<HTMLDivElement | null>>;
@@ -5078,7 +5043,7 @@ declare interface PlanEntitlementResponseData_2 {
5078
5043
  valueType: string;
5079
5044
  }
5080
5045
 
5081
- export declare const PlanManager: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_6> & HTMLAttributes<HTMLDivElement> & {
5046
+ export declare const PlanManager: ForwardRefExoticComponent<ElementProps & DeepPartial<DesignProps_6> & HTMLAttributes<HTMLDivElement> & {
5082
5047
  portal?: HTMLElement | null;
5083
5048
  } & RefAttributes<HTMLDivElement | null>>;
5084
5049
 
@@ -5248,6 +5213,12 @@ declare interface PlanViewPublicResponseData {
5248
5213
  * @memberof PlanViewPublicResponseData
5249
5214
  */
5250
5215
  companyCount: number;
5216
+ /**
5217
+ *
5218
+ * @type {Array<string>}
5219
+ * @memberof PlanViewPublicResponseData
5220
+ */
5221
+ compatiblePlanIds: Array<string>;
5251
5222
  /**
5252
5223
  *
5253
5224
  * @type {string}
@@ -5749,16 +5720,15 @@ declare interface PreviewSubscriptionUpcomingInvoiceLineItems {
5749
5720
  quantity: number;
5750
5721
  }
5751
5722
 
5752
- export declare const PricingTable: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_7> & {
5753
- callToActionUrl?: string;
5754
- onCallToAction?: (plan: PlanViewPublicResponseData | CompanyPlanDetailResponseData) => unknown;
5755
- } & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
5723
+ export declare const PricingTable: ForwardRefExoticComponent<ElementProps & DeepPartial<DesignProps_7> & PricingTableOptions & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
5756
5724
 
5757
- export declare type PricingTableProps = RecursivePartial<DesignProps_7> & {
5725
+ declare type PricingTableOptions = {
5758
5726
  callToActionUrl?: string;
5759
5727
  onCallToAction?: (plan: PlanViewPublicResponseData | CompanyPlanDetailResponseData) => unknown;
5760
5728
  };
5761
5729
 
5730
+ export declare type PricingTableProps = DesignProps_7 & PricingTableOptions;
5731
+
5762
5732
  export declare const ProgressBar: ForwardRefExoticComponent<ProgressBarProps & RefAttributes<HTMLDivElement>>;
5763
5733
 
5764
5734
  export declare interface ProgressBarProps extends React.ComponentPropsWithoutRef<typeof Flex> {
@@ -5789,6 +5759,12 @@ declare interface PublicPlansResponseData {
5789
5759
  * @memberof PublicPlansResponseData
5790
5760
  */
5791
5761
  activePlans: Array<PlanViewPublicResponseData>;
5762
+ /**
5763
+ *
5764
+ * @type {Array<CompatiblePlans>}
5765
+ * @memberof PublicPlansResponseData
5766
+ */
5767
+ addOnCompatibilities: Array<CompatiblePlans_2>;
5792
5768
  /**
5793
5769
  *
5794
5770
  * @type {ComponentCapabilities}
@@ -5797,10 +5773,6 @@ declare interface PublicPlansResponseData {
5797
5773
  capabilities?: ComponentCapabilities_2;
5798
5774
  }
5799
5775
 
5800
- declare type RecursivePartial<T> = {
5801
- [P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object | undefined ? RecursivePartial<T[P]> : T[P];
5802
- };
5803
-
5804
5776
  declare interface RequestContext {
5805
5777
  fetch: FetchAPI;
5806
5778
  url: string;
@@ -6454,7 +6426,7 @@ export declare const StyledCard: IStyledComponentBase<"web", FastOmit<DetailedHT
6454
6426
  declare const Text_2: IStyledComponentBase<"web", Substitute<FastOmit<Substitute<DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>, never>, TextProps>> & string;
6455
6427
  export { Text_2 as Text }
6456
6428
 
6457
- export declare const TextElement: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_8> & HTMLAttributes<HTMLDivElement> & {
6429
+ export declare const TextElement: ForwardRefExoticComponent<ElementProps & DeepPartial<DesignProps_8> & HTMLAttributes<HTMLDivElement> & {
6458
6430
  portal?: HTMLElement | null;
6459
6431
  } & RefAttributes<HTMLDivElement | null>>;
6460
6432
 
@@ -6537,13 +6509,13 @@ export declare interface TypographySettings {
6537
6509
  color: string;
6538
6510
  }
6539
6511
 
6540
- export declare const UnsubscribeButton: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_9> & HTMLAttributes<HTMLDivElement> & {
6512
+ export declare const UnsubscribeButton: ForwardRefExoticComponent<ElementProps & DeepPartial<DesignProps_9> & HTMLAttributes<HTMLDivElement> & {
6541
6513
  portal?: HTMLElement | null;
6542
6514
  } & RefAttributes<HTMLDivElement | null>>;
6543
6515
 
6544
6516
  export declare type UnsubscribeButtonProps = DesignProps_9;
6545
6517
 
6546
- export declare const UpcomingBill: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_10> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
6518
+ export declare const UpcomingBill: ForwardRefExoticComponent<ElementProps & DeepPartial<DesignProps_10> & HTMLAttributes<HTMLDivElement> & RefAttributes<HTMLDivElement | null>>;
6547
6519
 
6548
6520
  export declare type UpcomingBillProps = DesignProps_10;
6549
6521