@plaidev/karte-action-sdk 1.1.263-29017865.b826d7d2 → 1.1.263-29030812.2440f3a0

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.
@@ -7,7 +7,6 @@ import { afterUpdate as afterUpdateSvelte } from "svelte";
7
7
  import { tick as tickSvelte } from "svelte";
8
8
  import { Properties } from "csstype";
9
9
  import { Properties as Properties$0 } from "preact/src/jsx-csstype";
10
- import IconArrowDown from "./variants/IconArrowDown.svelte";
11
10
  /** @internal */
12
11
  declare const ACTION_HOOK_LABEL = "__ACTION_HOOK__";
13
12
  // -------- The following codes are deprecated --------
@@ -133,7 +132,7 @@ interface ActionOptions<Props, Variables, VariablesQuery> {
133
132
  *
134
133
  * @defaultValue `{}`
135
134
  */
136
- variables?: Variables;
135
+ variables?: VariablesQuery;
137
136
  /**
138
137
  * アクションで使用されるアクション実行時に取得される変数
139
138
  *
@@ -145,7 +144,7 @@ interface ActionOptions<Props, Variables, VariablesQuery> {
145
144
  *
146
145
  * @defaultValue `() => {}`
147
146
  */
148
- onCreate?: ActionHook<Props, Variables & ActionVariables>;
147
+ onCreate?: ActionHook<Props, VariablesQuery & ActionVariables>;
149
148
  /**
150
149
  * KARTEテンプレートの情報
151
150
  *
@@ -402,6 +401,7 @@ declare function showOnScroll<ModalProps extends Pick<Props, "show_on_scroll" |
402
401
  * @internal
403
402
  */
404
403
  declare function showOnTime<ModalProps extends Pick<Props, "show_on_time" | "show_on_time_count">>(props: ModalProps, show?: Function): (() => void) | null;
404
+ declare function checkAndDo(checkFn: Function, fn: Function, ...conditionFns: Function[]): () => void | null;
405
405
  type ModalProps = Props;
406
406
  /**
407
407
  * アクションを作成する
@@ -935,34 +935,7 @@ type FontWeight = string;
935
935
  /** @internal */
936
936
  declare const SYSTEM_FONT = "sans-serif, serif, monospace, system-ui";
937
937
  /** @internal */
938
- declare const Fonts: readonly [
939
- "sans-serif, serif, monospace, system-ui",
940
- "Noto Sans JP",
941
- "Sawarabi Gothic",
942
- "Zen Kaku Gothic New",
943
- "BIZ UDPGothic",
944
- "Open Sans",
945
- "M PLUS 1p",
946
- "M PLUS Rounded 1c",
947
- "Kiwi Maru",
948
- "Zen Maru Gothic",
949
- "Noto Serif JP",
950
- "Shippori Mincho",
951
- "BIZ UDPMincho",
952
- "Roboto",
953
- "Lato",
954
- "Poppins",
955
- "Lora",
956
- "Raleway",
957
- "Montserrat",
958
- "Nunito",
959
- "Playfair Display",
960
- "Merriweather",
961
- "Libre Baskerville",
962
- "EB Garamond",
963
- "Kosugi Maru",
964
- "Kosugi"
965
- ];
938
+ declare const Fonts: string[];
966
939
  type Font = (typeof Fonts)[number];
967
940
  /** @internal */
968
941
  declare const Justifies: readonly [
@@ -1487,7 +1460,7 @@ interface App {
1487
1460
  *
1488
1461
  * @internal
1489
1462
  */
1490
- type AppOptions<Props, Variables, VariablesQuery> = ActionOptions<Props, Variables, VariablesQuery>;
1463
+ type AppOptions<Props, Variables, VariablesQuery> = ActionOptions<Props, VariablesQuery, VariablesQuery>;
1491
1464
  /**
1492
1465
  * 非推奨
1493
1466
  *
@@ -1503,7 +1476,7 @@ declare const ensureModalRoot: typeof ensureActionRoot;
1503
1476
  *
1504
1477
  * @internal
1505
1478
  */
1506
- declare function createApp<Props, Variables, VariablesQuery>(App: typeof SvelteComponentDev, options?: AppOptions<Props, Variables, VariablesQuery>): App;
1479
+ declare function createApp<Props, Variables, VariablesQuery>(App: typeof SvelteComponentDev, options?: AppOptions<Props, VariablesQuery, VariablesQuery>): App;
1507
1480
  /**
1508
1481
  * 非推奨
1509
1482
  *
@@ -1517,7 +1490,7 @@ declare function createFog({ color, opacity, zIndex, onclick }: {
1517
1490
  zIndex?: number;
1518
1491
  onclick: () => void;
1519
1492
  }): {
1520
- fog: HTMLDivElement;
1493
+ fog: HTMLElement | null;
1521
1494
  close: () => void;
1522
1495
  };
1523
1496
  type AnswerValue = {
@@ -1704,7 +1677,7 @@ declare namespace widget {
1704
1677
  *
1705
1678
  * @defaultValue `{}`
1706
1679
  */
1707
- variables?: Variables;
1680
+ variables?: VariablesQuery;
1708
1681
  /**
1709
1682
  * アクションで使用されるアクション実行時に取得される変数
1710
1683
  *
@@ -1716,7 +1689,7 @@ declare namespace widget {
1716
1689
  *
1717
1690
  * @defaultValue `() => {}`
1718
1691
  */
1719
- onCreate?: ActionHook<Props, Variables & ActionVariables>;
1692
+ onCreate?: ActionHook<Props, VariablesQuery & ActionVariables>;
1720
1693
  /**
1721
1694
  * KARTEテンプレートの情報
1722
1695
  *
@@ -1982,9 +1955,10 @@ declare namespace widget {
1982
1955
  */
1983
1956
  function showOnTime<ModalProps extends Pick<Props, "show_on_time" | "show_on_time_count">>(props: ModalProps, show?: Function): (() => void) | null;
1984
1957
  /** @internal */
1985
- function and(fn: Function, ...conditionFns: Function[]): () => void;
1958
+ function and(fn: Function, ...conditionFns: Function[]): ReturnType<typeof checkAndDo>;
1986
1959
  /** @internal */
1987
- function or(fn: Function, ...conditionFns: Function[]): () => void;
1960
+ function or(fn: Function, ...conditionFns: Function[]): ReturnType<typeof checkAndDo>;
1961
+ function checkAndDo(checkFn: Function, fn: Function, ...conditionFns: Function[]): () => void | null;
1988
1962
  type ModalProps = Props;
1989
1963
  /**
1990
1964
  * 表示アクショントリガー
@@ -2077,7 +2051,7 @@ declare namespace widget {
2077
2051
  */
2078
2052
  function getActionRoot(): ShadowRoot | null;
2079
2053
  /** @internal */
2080
- function createModal<Props extends ModalProps, Variables, VariablesQuery extends Array<VariableQuery>>(App: typeof SvelteComponentDev, options?: ActionOptions<Props, Variables & ActionVariables, VariablesQuery>): () => void;
2054
+ function createModal<Props extends ModalProps, Variables, VariablesQuery extends Array<VariableQuery>>(App: typeof SvelteComponentDev, options?: ActionOptions<Props, VariablesQuery & ActionVariables, VariablesQuery>): () => void;
2081
2055
  /** @internal */
2082
2056
  function ensureActionRoot(useShadow?: boolean): ShadowRoot | HTMLElement;
2083
2057
  // -------- The following codes are deprecated --------
@@ -2129,7 +2103,7 @@ declare namespace widget {
2129
2103
  *
2130
2104
  * @internal
2131
2105
  */
2132
- type AppOptions<Props, Variables, VariablesQuery> = ActionOptions<Props, Variables, VariablesQuery>;
2106
+ type AppOptions<Props, Variables, VariablesQuery> = ActionOptions<Props, VariablesQuery, VariablesQuery>;
2133
2107
  /**
2134
2108
  * 非推奨
2135
2109
  *
@@ -2137,7 +2111,7 @@ declare namespace widget {
2137
2111
  *
2138
2112
  * @internal
2139
2113
  */
2140
- type ModalOptions<Props, Variables, VariablesQuery> = ActionOptions<Props, Variables, VariablesQuery>;
2114
+ type ModalOptions<Props, Variables, VariablesQuery> = ActionOptions<Props, VariablesQuery, VariablesQuery>;
2141
2115
  /**
2142
2116
  * 非推奨
2143
2117
  *
@@ -2153,7 +2127,7 @@ declare namespace widget {
2153
2127
  *
2154
2128
  * @internal
2155
2129
  */
2156
- function createApp<Props, Variables, VariablesQuery>(App: typeof SvelteComponentDev, options?: AppOptions<Props, Variables, VariablesQuery>): App;
2130
+ function createApp<Props, Variables, VariablesQuery>(App: typeof SvelteComponentDev, options?: AppOptions<Props, VariablesQuery, VariablesQuery>): App;
2157
2131
  /**
2158
2132
  * 非推奨
2159
2133
  *
@@ -2167,15 +2141,16 @@ declare namespace widget {
2167
2141
  zIndex?: number;
2168
2142
  onclick: () => void;
2169
2143
  }): {
2170
- fog: HTMLDivElement;
2144
+ fog: HTMLElement | null;
2171
2145
  close: () => void;
2172
2146
  };
2173
- // @ts-ignore
2174
- type ChangeValCallback = ({ newVal, oldVal, key }: {
2147
+ const newCollection: typeof collection;
2148
+ type ChangeValCallbackArg = {
2175
2149
  newVal: any;
2176
2150
  oldVal: any;
2177
- key: any;
2178
- }) => void;
2151
+ key: string;
2152
+ };
2153
+ type ChangeValCallback = (arg: ChangeValCallbackArg) => void;
2179
2154
  type EventCallback = (event: any) => void;
2180
2155
  type WidgetEventName = "hide" | "clickBackdrop" | "destroyed";
2181
2156
  /**
@@ -2297,15 +2272,7 @@ declare namespace widget {
2297
2272
  *
2298
2273
  * @public
2299
2274
  */
2300
- function collection$0(table: string): {
2301
- get(key: string | string[], cb: (err: Error, items?: (string | number | boolean | Date) | (string | number | boolean | Date)[]) => void): void;
2302
- getByQuery(query_name: string, params: {
2303
- [key: string]: (string | number | boolean | Date) | (string | number | boolean | Date)[];
2304
- }, options: {
2305
- ignore_fields?: string[];
2306
- }, cb: (err: Error, items?: (string | number | boolean | Date)[]) => void): void;
2307
- set(key: string, value: string, cb: (err: Error) => void): void;
2308
- };
2275
+ function collection$0(table: string): ReturnType<typeof newCollection>;
2309
2276
  /**
2310
2277
  * アクションを表示する
2311
2278
  *
@@ -2442,14 +2409,16 @@ type VariantDefinition<Props extends object = object, Meta extends object = obje
2442
2409
  meta?: Meta;
2443
2410
  };
2444
2411
  type VariantDefinitionGroup<Props extends object = object, Meta extends object = object> = Record<string, VariantDefinition<Props, Meta>>;
2412
+ type ToVariantArrayReturn<T> = T[keyof T] & {
2413
+ code: keyof T;
2414
+ };
2415
+ declare const toVariantArray: <T extends VariantDefinitionGroup>(group: T) => ToVariantArrayReturn<T>[];
2445
2416
  // ================================
2446
2417
  // Aspect
2447
2418
  // ================================
2448
- declare const ASPECT_VARIANT: VariantDefinitionGroup<Omit<AspectProps, "aspectVariant">, object>;
2419
+ declare const ASPECT_VARIANT: VariantDefinitionGroup<Omit<AspectProps, "aspectVariant">>;
2449
2420
  type AspectVariantCode = keyof typeof ASPECT_VARIANT;
2450
- declare const ASPECT_VARIANTS: (VariantDefinition<Omit<AspectProps, "aspectVariant">, object> & {
2451
- code: string;
2452
- })[];
2421
+ declare const ASPECT_VARIANTS: ReturnType<typeof toVariantArray>;
2453
2422
  // ================================
2454
2423
  // FontFamily
2455
2424
  // ================================
@@ -2459,43 +2428,18 @@ type FontVariantMeta = {
2459
2428
  };
2460
2429
  declare const FONT_FAMILY_VARIANT: VariantDefinitionGroup<Omit<FontFamilyProps, "fontFamilyVariant">, FontVariantMeta>;
2461
2430
  type FontFamilyVariantCode = keyof typeof FONT_FAMILY_VARIANT;
2462
- declare const FONT_FAMILY_VARIANTS: (VariantDefinition<Omit<FontFamilyProps, "fontFamilyVariant">, FontVariantMeta> & {
2463
- code: string;
2464
- })[];
2465
- declare const FONT_FAMILY_VARIANT_GROUPS: readonly [
2466
- {
2467
- readonly label: "\u65E5\u672C\u8A9E / \u89D2\u30B4\u30B7\u30C3\u30AF";
2468
- readonly variants: (VariantDefinition<Omit<FontFamilyProps, "fontFamilyVariant">, FontVariantMeta> & {
2469
- code: string;
2470
- })[];
2471
- },
2472
- {
2473
- readonly label: "\u65E5\u672C\u8A9E / \u4E38\u30B4\u30B7\u30C3\u30AF";
2474
- readonly variants: (VariantDefinition<Omit<FontFamilyProps, "fontFamilyVariant">, FontVariantMeta> & {
2475
- code: string;
2476
- })[];
2477
- },
2478
- {
2479
- readonly label: "\u65E5\u672C\u8A9E / \u660E\u671D";
2480
- readonly variants: (VariantDefinition<Omit<FontFamilyProps, "fontFamilyVariant">, FontVariantMeta> & {
2481
- code: string;
2482
- })[];
2483
- },
2484
- {
2485
- readonly label: "\u82F1\u8A9E";
2486
- readonly variants: (VariantDefinition<Omit<FontFamilyProps, "fontFamilyVariant">, FontVariantMeta> & {
2487
- code: string;
2488
- })[];
2489
- }
2490
- ];
2431
+ declare const FONT_FAMILY_VARIANTS: ToVariantArrayReturn<VariantDefinitionGroup<Omit<FontFamilyProps, "fontFamilyVariant">, FontVariantMeta>>[];
2432
+ type FontFamilyVariantGroup = {
2433
+ label: string;
2434
+ variants: ReturnType<typeof toVariantArray>;
2435
+ };
2436
+ declare const FONT_FAMILY_VARIANT_GROUPS: FontFamilyVariantGroup[];
2491
2437
  // ================================
2492
2438
  // Shadow
2493
2439
  // ================================
2494
- declare const SHADOW_VARIANT: VariantDefinitionGroup<Omit<ShadowProps, "shadowVariant">, object>;
2440
+ declare const SHADOW_VARIANT: VariantDefinitionGroup<Omit<ShadowProps, "shadowVariant">>;
2495
2441
  type ShadowVariantCode = keyof typeof SHADOW_VARIANT;
2496
- declare const SHADOW_VARIANTS: (VariantDefinition<Omit<ShadowProps, "shadowVariant">, object> & {
2497
- code: string;
2498
- })[];
2442
+ declare const SHADOW_VARIANTS: ToVariantArrayReturn<VariantDefinitionGroup<Omit<ShadowProps, "shadowVariant">, object>>[];
2499
2443
  type PositionPlaceProps = {
2500
2444
  top?: Properties["top"];
2501
2445
  left?: Properties["left"];
@@ -2598,31 +2542,8 @@ type AvatarProps = CommonProps & ClickableProps & BorderProps & {
2598
2542
  };
2599
2543
  declare const avatarPropsDefault: AvatarProps;
2600
2544
  declare const AVATAR_SIZE_STYLES: PropStyles<AvatarProps, "size">;
2601
- declare const getButtonThemeStyles: (customBrandKit?: Partial<BrandKit>) => Record<string, Partial<MetaProps & {
2602
- top?: import("csstype").Property.Top<0 | (string & {})>;
2603
- left?: import("csstype").Property.Left<0 | (string & {})>;
2604
- right?: import("csstype").Property.Right<0 | (string & {})>;
2605
- bottom?: import("csstype").Property.Bottom<0 | (string & {})>;
2606
- transform?: import("csstype").Property.Transform;
2607
- } & {
2608
- position?: import("csstype").Property.Position;
2609
- } & CustomizeCssProps & BrandStyleProps & ClickableProps & ShadowProps & LinkProps & WithIconProps & RadiusProps & BorderProps & {
2610
- label?: string;
2611
- size?: string;
2612
- height?: import("csstype").Property.Height<0 | (string & {})>;
2613
- paddingLeft?: import("csstype").Property.PaddingLeft<0 | (string & {})>;
2614
- paddingRight?: import("csstype").Property.PaddingRight<0 | (string & {})>;
2615
- fontSize?: import("csstype").Property.FontSize<0 | (string & {})>;
2616
- theme?: string;
2617
- variant?: string;
2618
- color?: import("csstype").Property.Color;
2619
- backgroundColor?: import("csstype").Property.BackgroundColor;
2620
- borderColor?: import("csstype").Property.BorderColor;
2621
- fontWeight?: import("csstype").Property.FontWeight;
2622
- round?: "none" | "default" | "fulled";
2623
- width?: import("csstype").Property.Width<0 | (string & {})>;
2624
- wrap?: "wrap" | "nowrap";
2625
- } & import("csstype").Properties<0 | (string & {}), string & {}>>>;
2545
+ type BrandableStyles<T extends object = object> = Record<string, Partial<T & Properties>>;
2546
+ declare const getButtonThemeStyles: (customBrandKit?: Partial<BrandKit>) => BrandableStyles<ButtonProps>;
2626
2547
  declare const BUTTON_SIZE_STYLES: PropStyles<ButtonProps, "size">;
2627
2548
  declare const BUTTON_ROUND_STYLES: PropStyles<ButtonProps, "round">;
2628
2549
  declare const BUTTON_WRAP_STYLES: PropStyles<ButtonProps, "wrap">;
@@ -2647,43 +2568,7 @@ type ButtonOutlinedProps = CommonProps & ClickableProps & ShadowProps & WithIcon
2647
2568
  };
2648
2569
  declare const buttonOutlinedPropsDefault: ButtonOutlinedProps;
2649
2570
  declare const BUTTON_OUTLINED_SIZE_STYLES: PropStyles<ButtonOutlinedProps, "size">;
2650
- declare const getButtonOutlinedThemeStyles: (customBrandKit?: Partial<BrandKit>) => {
2651
- default: {
2652
- color: string;
2653
- borderColor: string;
2654
- backgroundColor: string;
2655
- };
2656
- general: {
2657
- color: string;
2658
- borderColor: string;
2659
- backgroundColor: string;
2660
- };
2661
- success: {
2662
- color: string;
2663
- borderColor: string;
2664
- backgroundColor: string;
2665
- };
2666
- warning: {
2667
- color: string;
2668
- borderColor: string;
2669
- backgroundColor: string;
2670
- };
2671
- danger: {
2672
- color: string;
2673
- borderColor: string;
2674
- backgroundColor: string;
2675
- };
2676
- info: {
2677
- color: string;
2678
- borderColor: string;
2679
- backgroundColor: string;
2680
- };
2681
- white: {
2682
- color: string;
2683
- borderColor: string;
2684
- backgroundColor: string;
2685
- };
2686
- };
2571
+ declare const getButtonOutlinedThemeStyles: (customBrandKit?: Partial<BrandKit>) => BrandableStyles<ButtonOutlinedProps>;
2687
2572
  declare const BUTTON_OUTLINED_ROUND_STYLES: PropStyles<ButtonOutlinedProps, "round">;
2688
2573
  declare const BUTTON_OUTLINED_WRAP_STYLES: PropStyles<ButtonOutlinedProps, "wrap">;
2689
2574
  declare const BUTTON_TEXT_SIZE: {
@@ -2720,40 +2605,7 @@ type ButtonTextProps = CommonProps & ClickableProps & LinkProps & WithIconProps
2720
2605
  wrap?: "wrap" | "nowrap";
2721
2606
  };
2722
2607
  declare const BUTTON_TEXT_SIZE_STYLES: PropStyles<ButtonTextProps, "size">;
2723
- declare const getButtonTextThemeStyles: (customBrandKit?: Partial<BrandKit>) => {
2724
- default: {
2725
- backgroundColor: string;
2726
- color: string;
2727
- };
2728
- link: {
2729
- backgroundColor: string;
2730
- color: string;
2731
- };
2732
- general: {
2733
- backgroundColor: string;
2734
- color: string;
2735
- };
2736
- success: {
2737
- backgroundColor: string;
2738
- color: string;
2739
- };
2740
- warning: {
2741
- backgroundColor: string;
2742
- color: string;
2743
- };
2744
- danger: {
2745
- backgroundColor: string;
2746
- color: string;
2747
- };
2748
- info: {
2749
- backgroundColor: string;
2750
- color: string;
2751
- };
2752
- white: {
2753
- backgroundColor: string;
2754
- color: string;
2755
- };
2756
- };
2608
+ declare const getButtonTextThemeStyles: (customBrandKit?: Partial<BrandKit>) => BrandableStyles<ButtonTextProps>;
2757
2609
  declare const CLOSE_BUTTON_PLACEMENT: {
2758
2610
  readonly topRight: "topRight";
2759
2611
  readonly topLeft: "topLeft";
@@ -2785,67 +2637,13 @@ type CloseButtonProps = CommonProps & ClickableProps & BorderProps & {
2785
2637
  bottom?: Properties["bottom"];
2786
2638
  };
2787
2639
  declare const ICON_SIZE: {
2788
- readonly x_small: {
2789
- readonly label: "X Small";
2790
- readonly value: "12px";
2791
- };
2792
- readonly small: {
2793
- readonly label: "Small";
2794
- readonly value: "16px";
2795
- };
2796
- readonly medium: {
2797
- readonly label: "Medium";
2798
- readonly value: "20px";
2799
- };
2800
- readonly large: {
2801
- readonly label: "Large";
2802
- readonly value: "24px";
2803
- };
2804
- readonly x_large: {
2805
- readonly label: "X Large";
2806
- readonly value: "32px";
2807
- };
2808
- readonly x2_large: {
2809
- readonly label: "2X Large";
2810
- readonly value: "40px";
2811
- };
2812
- readonly x3_large: {
2813
- readonly label: "3X Large";
2814
- readonly value: "48px";
2640
+ [key: string]: {
2641
+ label: string;
2642
+ value: string;
2815
2643
  };
2816
2644
  };
2817
2645
  declare const ICON_VARIANTS: {
2818
- readonly arrow_down: typeof IconArrowDown;
2819
- readonly arrow_up: typeof IconArrowDown;
2820
- readonly arrow_left: typeof IconArrowDown;
2821
- readonly arrow_right: typeof IconArrowDown;
2822
- readonly arrow_up_from_square: typeof IconArrowDown;
2823
- readonly bell: typeof IconArrowDown;
2824
- readonly buildings: typeof IconArrowDown;
2825
- readonly cart_shopping: typeof IconArrowDown;
2826
- readonly check: typeof IconArrowDown;
2827
- readonly chevrons_right: typeof IconArrowDown;
2828
- readonly chevron_right: typeof IconArrowDown;
2829
- readonly circle: typeof IconArrowDown;
2830
- readonly circle_info: typeof IconArrowDown;
2831
- readonly circle_question: typeof IconArrowDown;
2832
- readonly circle_x_mark: typeof IconArrowDown;
2833
- readonly copy: typeof IconArrowDown;
2834
- readonly envelope: typeof IconArrowDown;
2835
- readonly fire: typeof IconArrowDown;
2836
- readonly gift: typeof IconArrowDown;
2837
- readonly heart: typeof IconArrowDown;
2838
- readonly link: typeof IconArrowDown;
2839
- readonly locationDot: typeof IconArrowDown;
2840
- readonly magnifying_grass: typeof IconArrowDown;
2841
- readonly paperclip: typeof IconArrowDown;
2842
- readonly paper_plane: typeof IconArrowDown;
2843
- readonly phone: typeof IconArrowDown;
2844
- readonly star: typeof IconArrowDown;
2845
- readonly ticket: typeof IconArrowDown;
2846
- readonly truck: typeof IconArrowDown;
2847
- readonly users: typeof IconArrowDown;
2848
- readonly x_mark: typeof IconArrowDown;
2646
+ [key: string]: any;
2849
2647
  };
2850
2648
  type IconProps = CommonProps & ClickableProps & {
2851
2649
  variant: string;
@@ -2958,70 +2756,12 @@ type LayerTextProps = CommonProps & BorderProps & RadiusProps & BackgroundColorP
2958
2756
  color?: Properties["color"];
2959
2757
  width?: Properties["width"];
2960
2758
  };
2961
- declare const getTextThemeStyles: (customBrandKit?: Partial<BrandKit>) => {
2962
- default: {
2963
- color: string;
2964
- };
2965
- gray: {
2966
- color: string;
2967
- };
2968
- brand: {
2969
- color: string;
2970
- };
2971
- success: {
2972
- color: string;
2973
- };
2974
- warning: {
2975
- color: string;
2976
- };
2977
- danger: {
2978
- color: string;
2979
- };
2980
- info: {
2981
- color: string;
2982
- };
2983
- white: {
2984
- color: string;
2985
- };
2759
+ type TextThemeProps = {
2760
+ color: string;
2986
2761
  };
2762
+ declare const getTextThemeStyles: (customBrandKit?: Partial<BrandKit>) => BrandableStyles<TextThemeProps>;
2987
2763
  declare const TEXT_VARIANTS: {
2988
- size: {
2989
- small: {
2990
- fontSize: string;
2991
- lineHeight: number;
2992
- fontWeight: string;
2993
- };
2994
- medium: {
2995
- fontSize: string;
2996
- lineHeight: number;
2997
- fontWeight: string;
2998
- };
2999
- large: {
3000
- fontSize: string;
3001
- lineHeight: number;
3002
- fontWeight: string;
3003
- };
3004
- heading_extra_small: {
3005
- fontSize: string;
3006
- lineHeight: number;
3007
- fontWeight: string;
3008
- };
3009
- heading_small: {
3010
- fontSize: string;
3011
- lineHeight: number;
3012
- fontWeight: string;
3013
- };
3014
- heading_medium: {
3015
- fontSize: string;
3016
- lineHeight: number;
3017
- fontWeight: string;
3018
- };
3019
- heading_large: {
3020
- fontSize: string;
3021
- lineHeight: number;
3022
- fontWeight: string;
3023
- };
3024
- };
2764
+ size: Record<NonNullable<LayerTextProps["size"]>, any>;
3025
2765
  };
3026
2766
  declare const TEXT_LINK_SIZE: {
3027
2767
  readonly small: "Small";
@@ -3056,26 +2796,7 @@ type TextLinkProps = CommonProps & ClickableProps & LinkProps & FontFamilyProps
3056
2796
  fontWeight?: Properties["fontWeight"];
3057
2797
  };
3058
2798
  declare const TEXT_LINK_SIZE_STYLES: PropStyles<TextLinkProps, "size">;
3059
- declare const getTextLinkThemeStyles: (customBrandKit?: Partial<BrandKit>) => {
3060
- default: {
3061
- color: string;
3062
- };
3063
- link: {
3064
- color: string;
3065
- };
3066
- brand: {
3067
- color: string;
3068
- };
3069
- alert: {
3070
- color: string;
3071
- };
3072
- gray: {
3073
- color: string;
3074
- };
3075
- white: {
3076
- color: string;
3077
- };
3078
- };
2799
+ declare const getTextLinkThemeStyles: (customBrandKit?: Partial<BrandKit>) => BrandableStyles<TextLinkProps>;
3079
2800
  type ListProps = CommonProps & {
3080
2801
  gap?: Properties["gap"];
3081
2802
  borderWidth?: Properties["borderTopWidth"];