@schematichq/schematic-components 0.3.14 → 0.4.0-rc.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.
@@ -818,6 +818,12 @@ declare interface CompanyPlanDetailResponseData {
818
818
  * @memberof CompanyPlanDetailResponseData
819
819
  */
820
820
  isDefault: boolean;
821
+ /**
822
+ *
823
+ * @type {boolean}
824
+ * @memberof CompanyPlanDetailResponseData
825
+ */
826
+ isTrialable: boolean;
821
827
  /**
822
828
  *
823
829
  * @type {BillingPriceResponseData}
@@ -836,6 +842,12 @@ declare interface CompanyPlanDetailResponseData {
836
842
  * @memberof CompanyPlanDetailResponseData
837
843
  */
838
844
  planType: string;
845
+ /**
846
+ *
847
+ * @type {number}
848
+ * @memberof CompanyPlanDetailResponseData
849
+ */
850
+ trialDays?: number | null;
839
851
  /**
840
852
  *
841
853
  * @type {Date}
@@ -1452,8 +1464,8 @@ declare interface ElementProps {
1452
1464
 
1453
1465
  export declare const EmbedButton: IStyledComponentBase<"web", Substitute<ButtonProps, {
1454
1466
  $size?: "sm" | "md" | "lg";
1455
- $color?: "primary" | "secondary";
1456
- $variant?: "outline" | "filled" | "text";
1467
+ $color?: "primary" | "secondary" | "danger";
1468
+ $variant?: "filled" | "outline" | "ghost" | "text";
1457
1469
  }>> & string & Omit<({ color, size, variant, disabled, isLoading, children, ...props }: ButtonProps) => JSX_2.Element, keyof Component<any, {}, any>>;
1458
1470
 
1459
1471
  export declare const EmbedContext: Context<EmbedContextProps>;
@@ -1495,6 +1507,9 @@ export declare interface EmbedProviderProps {
1495
1507
 
1496
1508
  export declare type EmbedSettings = {
1497
1509
  theme: EmbedThemeSettings;
1510
+ badge: {
1511
+ alignment: ComponentProps["$justifyContent"];
1512
+ };
1498
1513
  };
1499
1514
 
1500
1515
  export declare interface EmbedThemeSettings {
@@ -1503,6 +1518,7 @@ export declare interface EmbedThemeSettings {
1503
1518
  colorMode: "light" | "dark";
1504
1519
  primary: string;
1505
1520
  secondary: string;
1521
+ danger: string;
1506
1522
  card: {
1507
1523
  background: string;
1508
1524
  borderRadius: number;
@@ -2051,6 +2067,12 @@ declare interface FeatureUsageResponseData {
2051
2067
  * @memberof FeatureUsageResponseData
2052
2068
  */
2053
2069
  feature?: FeatureDetailResponseData;
2070
+ /**
2071
+ * If the period is current_month, when the month resets.
2072
+ * @type {string}
2073
+ * @memberof FeatureUsageResponseData
2074
+ */
2075
+ monthReset?: string | null;
2054
2076
  /**
2055
2077
  * The period over which usage is measured.
2056
2078
  * @type {string}
@@ -2540,7 +2562,7 @@ declare interface Middleware {
2540
2562
  onError?(context: ErrorContext): Promise<Response | void>;
2541
2563
  }
2542
2564
 
2543
- export declare const Modal: ({ children, size, onClose }: ModalProps) => JSX_2.Element;
2565
+ export declare const Modal: ({ children, size, top, onClose, }: ModalProps) => JSX_2.Element;
2544
2566
 
2545
2567
  export declare const ModalHeader: ({ children, bordered, onClose, }: ModalHeaderProps) => JSX_2.Element;
2546
2568
 
@@ -2553,6 +2575,7 @@ declare interface ModalHeaderProps {
2553
2575
  declare interface ModalProps {
2554
2576
  children: React.ReactNode;
2555
2577
  size?: "sm" | "md" | "lg" | "auto";
2578
+ top?: number;
2556
2579
  onClose?: () => void;
2557
2580
  }
2558
2581
 
@@ -2560,6 +2583,7 @@ declare type ModelPropertyNaming = "camelCase" | "snake_case" | "PascalCase" | "
2560
2583
 
2561
2584
  export declare const PaymentMethod: ForwardRefExoticComponent<ElementProps & RecursivePartial<DesignProps_4> & HTMLAttributes<HTMLDivElement> & {
2562
2585
  portal?: HTMLElement | null;
2586
+ allowEdit?: boolean;
2563
2587
  } & RefAttributes<HTMLDivElement | null>>;
2564
2588
 
2565
2589
  export declare type PaymentMethodProps = DesignProps_4;
@@ -2733,6 +2757,12 @@ declare interface PlanEntitlementResponseData {
2733
2757
  * @memberof PlanEntitlementResponseData
2734
2758
  */
2735
2759
  metricPeriod?: string | null;
2760
+ /**
2761
+ *
2762
+ * @type {string}
2763
+ * @memberof PlanEntitlementResponseData
2764
+ */
2765
+ metricPeriodMonthReset?: string | null;
2736
2766
  /**
2737
2767
  *
2738
2768
  * @type {PlanResponseData}
@@ -3031,6 +3061,8 @@ export declare interface ProgressBarProps extends React.ComponentPropsWithoutRef
3031
3061
  barWidth?: string | number;
3032
3062
  }
3033
3063
 
3064
+ export declare const progressColorMap: ("blue" | "red" | "yellow")[];
3065
+
3034
3066
  declare function querystring(params: HTTPQuery, prefix?: string): string;
3035
3067
 
3036
3068
  declare type RecursivePartial<T> = {
@@ -3147,6 +3179,12 @@ declare interface RuleConditionDetailResponseData {
3147
3179
  * @memberof RuleConditionDetailResponseData
3148
3180
  */
3149
3181
  metricPeriod?: string | null;
3182
+ /**
3183
+ *
3184
+ * @type {string}
3185
+ * @memberof RuleConditionDetailResponseData
3186
+ */
3187
+ metricPeriodMonthReset?: string | null;
3150
3188
  /**
3151
3189
  *
3152
3190
  * @type {number}
@@ -3482,7 +3520,7 @@ export declare interface TextProps extends ComponentProps {
3482
3520
  $size?: ComponentProps["$fontSize"];
3483
3521
  $weight?: ComponentProps["$fontWeight"];
3484
3522
  $color?: ComponentProps["$color"];
3485
- $lineHeight?: ComponentProps["$lineHeight"];
3523
+ $leading?: ComponentProps["$lineHeight"];
3486
3524
  }
3487
3525
 
3488
3526
  export declare const Tooltip: ({ label, description }: TooltipProps) => JSX_2.Element;
@@ -3601,9 +3639,11 @@ export declare function useAvailablePlans(activePeriod: string): {
3601
3639
  icon: string;
3602
3640
  id: string;
3603
3641
  isDefault: boolean;
3642
+ isTrialable: boolean;
3604
3643
  monthlyPrice?: BillingPriceResponseData;
3605
3644
  name: string;
3606
3645
  planType: string;
3646
+ trialDays?: number | null;
3607
3647
  updatedAt: Date;
3608
3648
  valid: boolean;
3609
3649
  yearlyPrice?: BillingPriceResponseData;
@@ -3621,9 +3661,11 @@ export declare function useAvailablePlans(activePeriod: string): {
3621
3661
  icon: string;
3622
3662
  id: string;
3623
3663
  isDefault: boolean;
3664
+ isTrialable: boolean;
3624
3665
  monthlyPrice?: BillingPriceResponseData;
3625
3666
  name: string;
3626
3667
  planType: string;
3668
+ trialDays?: number | null;
3627
3669
  updatedAt: Date;
3628
3670
  valid: boolean;
3629
3671
  yearlyPrice?: BillingPriceResponseData;