@plaidev/karte-action-sdk 1.1.268-29111070.d0bdfb56 → 1.1.268-29127338.e0debfc5
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.
- package/dist/action.d.ts +63 -0
- package/dist/actionEvent.d.ts +25 -0
- package/dist/collection.d.ts +121 -0
- package/dist/components/index.d.ts +32 -0
- package/dist/components-flex/avatar/styles.d.ts +3 -0
- package/dist/components-flex/avatar/types.d.ts +24 -0
- package/dist/components-flex/brand-kit.d.ts +16 -0
- package/dist/components-flex/button/styles.d.ts +8 -0
- package/dist/components-flex/button/types.d.ts +57 -0
- package/dist/components-flex/button-outlined/styles.d.ts +8 -0
- package/dist/components-flex/button-outlined/types.d.ts +20 -0
- package/dist/components-flex/button-text/styles.d.ts +6 -0
- package/dist/components-flex/button-text/types.d.ts +33 -0
- package/dist/components-flex/clip-copy/types.d.ts +6 -0
- package/dist/components-flex/close-button/types.d.ts +32 -0
- package/dist/components-flex/code/types.d.ts +6 -0
- package/dist/components-flex/count-down/types.d.ts +17 -0
- package/dist/components-flex/icon/styles.d.ts +3 -0
- package/dist/components-flex/icon/types.d.ts +18 -0
- package/dist/components-flex/image/styles.d.ts +3 -0
- package/dist/components-flex/image/types.d.ts +26 -0
- package/dist/components-flex/layout/types.d.ts +20 -0
- package/dist/components-flex/list/types.d.ts +30 -0
- package/dist/components-flex/modal/types.d.ts +5 -0
- package/dist/components-flex/multi-column/types.d.ts +31 -0
- package/dist/components-flex/props.d.ts +91 -0
- package/dist/components-flex/schemas.d.ts +36 -0
- package/dist/components-flex/shared/styles.d.ts +3 -0
- package/dist/components-flex/shared/types.d.ts +13 -0
- package/dist/components-flex/slider/types.d.ts +10 -0
- package/dist/components-flex/styles.d.ts +9 -0
- package/dist/components-flex/text/constants.d.ts +4 -0
- package/dist/components-flex/text/styles.d.ts +7 -0
- package/dist/components-flex/text/types.d.ts +37 -0
- package/dist/components-flex/text-link/styles.d.ts +6 -0
- package/dist/components-flex/text-link/types.d.ts +31 -0
- package/dist/components-flex/utils/color.d.ts +7 -0
- package/dist/components-flex/utils/obj-to-style.d.ts +2 -0
- package/dist/components-flex/utils/parser.d.ts +5 -0
- package/dist/components-flex/utils/prop-to-style.d.ts +11 -0
- package/dist/components-flex/variants.d.ts +42 -0
- package/dist/components-flex/youtube/types.d.ts +16 -0
- package/dist/constants.d.ts +27 -0
- package/dist/display-logic.d.ts +125 -0
- package/dist/enhancedStopPropagation.d.ts +6 -0
- package/dist/form.d.ts +100 -0
- package/dist/functions.d.ts +71 -0
- package/dist/hooks/useClickable.d.ts +7 -0
- package/dist/hooks/useInjectCustomizeCss.d.ts +2 -0
- package/dist/hooks/useText.d.ts +5 -0
- package/dist/hydrate/action.d.ts +63 -0
- package/dist/hydrate/actionEvent.d.ts +25 -0
- package/dist/hydrate/collection.d.ts +121 -0
- package/dist/hydrate/components/index.d.ts +32 -0
- package/dist/hydrate/components-flex/avatar/styles.d.ts +3 -0
- package/dist/hydrate/components-flex/avatar/types.d.ts +24 -0
- package/dist/hydrate/components-flex/brand-kit.d.ts +16 -0
- package/dist/hydrate/components-flex/button/styles.d.ts +8 -0
- package/dist/hydrate/components-flex/button/types.d.ts +57 -0
- package/dist/hydrate/components-flex/button-outlined/styles.d.ts +8 -0
- package/dist/hydrate/components-flex/button-outlined/types.d.ts +20 -0
- package/dist/hydrate/components-flex/button-text/styles.d.ts +6 -0
- package/dist/hydrate/components-flex/button-text/types.d.ts +33 -0
- package/dist/hydrate/components-flex/clip-copy/types.d.ts +6 -0
- package/dist/hydrate/components-flex/close-button/types.d.ts +32 -0
- package/dist/hydrate/components-flex/code/types.d.ts +6 -0
- package/dist/hydrate/components-flex/count-down/types.d.ts +17 -0
- package/dist/hydrate/components-flex/icon/styles.d.ts +3 -0
- package/dist/hydrate/components-flex/icon/types.d.ts +18 -0
- package/dist/hydrate/components-flex/image/styles.d.ts +3 -0
- package/dist/hydrate/components-flex/image/types.d.ts +26 -0
- package/dist/hydrate/components-flex/layout/types.d.ts +20 -0
- package/dist/hydrate/components-flex/list/types.d.ts +30 -0
- package/dist/hydrate/components-flex/modal/types.d.ts +5 -0
- package/dist/hydrate/components-flex/multi-column/types.d.ts +31 -0
- package/dist/hydrate/components-flex/props.d.ts +91 -0
- package/dist/hydrate/components-flex/schemas.d.ts +36 -0
- package/dist/hydrate/components-flex/shared/styles.d.ts +3 -0
- package/dist/hydrate/components-flex/shared/types.d.ts +13 -0
- package/dist/hydrate/components-flex/slider/types.d.ts +10 -0
- package/dist/hydrate/components-flex/styles.d.ts +9 -0
- package/dist/hydrate/components-flex/text/constants.d.ts +4 -0
- package/dist/hydrate/components-flex/text/styles.d.ts +7 -0
- package/dist/hydrate/components-flex/text/types.d.ts +37 -0
- package/dist/hydrate/components-flex/text-link/styles.d.ts +6 -0
- package/dist/hydrate/components-flex/text-link/types.d.ts +31 -0
- package/dist/hydrate/components-flex/utils/color.d.ts +7 -0
- package/dist/hydrate/components-flex/utils/obj-to-style.d.ts +2 -0
- package/dist/hydrate/components-flex/utils/parser.d.ts +5 -0
- package/dist/hydrate/components-flex/utils/prop-to-style.d.ts +11 -0
- package/dist/hydrate/components-flex/variants.d.ts +42 -0
- package/dist/hydrate/components-flex/youtube/types.d.ts +16 -0
- package/dist/hydrate/constants.d.ts +27 -0
- package/dist/hydrate/display-logic.d.ts +125 -0
- package/dist/hydrate/enhancedStopPropagation.d.ts +6 -0
- package/dist/hydrate/form.d.ts +100 -0
- package/dist/hydrate/functions.d.ts +71 -0
- package/dist/hydrate/hooks/useClickable.d.ts +7 -0
- package/dist/hydrate/hooks/useInjectCustomizeCss.d.ts +2 -0
- package/dist/hydrate/hooks/useText.d.ts +5 -0
- package/dist/hydrate/index.d.ts +111 -0
- package/dist/hydrate/index.es.js +12721 -12529
- package/dist/hydrate/index.svelte5.d.ts +79 -0
- package/dist/hydrate/logger.d.ts +48 -0
- package/dist/hydrate/modal.d.ts +214 -0
- package/dist/hydrate/modal.svelte5.d.ts +214 -0
- package/dist/hydrate/prop.d.ts +431 -0
- package/dist/hydrate/script.d.ts +33 -0
- package/dist/hydrate/stores.d.ts +376 -0
- package/dist/hydrate/types.d.ts +183 -0
- package/dist/hydrate/utils.d.ts +171 -0
- package/dist/hydrate/widget.d.ts +148 -0
- package/dist/icons.d.ts +27 -28
- package/dist/icons.js +225 -159
- package/dist/index.es.d.ts +111 -2988
- package/dist/index.es.js +11913 -12372
- package/dist/logger.d.ts +48 -0
- package/dist/modal.d.ts +214 -0
- package/dist/modal.svelte5.d.ts +214 -0
- package/dist/prop.d.ts +431 -0
- package/dist/script.d.ts +33 -0
- package/dist/stores.d.ts +376 -0
- package/dist/svelte5/action.d.ts +63 -0
- package/dist/svelte5/actionEvent.d.ts +25 -0
- package/dist/svelte5/collection.d.ts +121 -0
- package/dist/svelte5/components/index.d.ts +32 -0
- package/dist/svelte5/components-flex/avatar/styles.d.ts +3 -0
- package/dist/svelte5/components-flex/avatar/types.d.ts +24 -0
- package/dist/svelte5/components-flex/brand-kit.d.ts +16 -0
- package/dist/svelte5/components-flex/button/styles.d.ts +8 -0
- package/dist/svelte5/components-flex/button/types.d.ts +57 -0
- package/dist/svelte5/components-flex/button-outlined/styles.d.ts +8 -0
- package/dist/svelte5/components-flex/button-outlined/types.d.ts +20 -0
- package/dist/svelte5/components-flex/button-text/styles.d.ts +6 -0
- package/dist/svelte5/components-flex/button-text/types.d.ts +33 -0
- package/dist/svelte5/components-flex/clip-copy/types.d.ts +6 -0
- package/dist/svelte5/components-flex/close-button/types.d.ts +32 -0
- package/dist/svelte5/components-flex/code/types.d.ts +6 -0
- package/dist/svelte5/components-flex/count-down/types.d.ts +17 -0
- package/dist/svelte5/components-flex/icon/styles.d.ts +3 -0
- package/dist/svelte5/components-flex/icon/types.d.ts +18 -0
- package/dist/svelte5/components-flex/image/styles.d.ts +3 -0
- package/dist/svelte5/components-flex/image/types.d.ts +26 -0
- package/dist/svelte5/components-flex/layout/types.d.ts +20 -0
- package/dist/svelte5/components-flex/list/types.d.ts +30 -0
- package/dist/svelte5/components-flex/modal/types.d.ts +5 -0
- package/dist/svelte5/components-flex/multi-column/types.d.ts +31 -0
- package/dist/svelte5/components-flex/props.d.ts +91 -0
- package/dist/svelte5/components-flex/schemas.d.ts +36 -0
- package/dist/svelte5/components-flex/shared/styles.d.ts +3 -0
- package/dist/svelte5/components-flex/shared/types.d.ts +13 -0
- package/dist/svelte5/components-flex/slider/types.d.ts +10 -0
- package/dist/svelte5/components-flex/styles.d.ts +9 -0
- package/dist/svelte5/components-flex/text/constants.d.ts +4 -0
- package/dist/svelte5/components-flex/text/styles.d.ts +7 -0
- package/dist/svelte5/components-flex/text/types.d.ts +37 -0
- package/dist/svelte5/components-flex/text-link/styles.d.ts +6 -0
- package/dist/svelte5/components-flex/text-link/types.d.ts +31 -0
- package/dist/svelte5/components-flex/utils/color.d.ts +7 -0
- package/dist/svelte5/components-flex/utils/obj-to-style.d.ts +2 -0
- package/dist/svelte5/components-flex/utils/parser.d.ts +5 -0
- package/dist/svelte5/components-flex/utils/prop-to-style.d.ts +11 -0
- package/dist/svelte5/components-flex/variants.d.ts +42 -0
- package/dist/svelte5/components-flex/youtube/types.d.ts +16 -0
- package/dist/svelte5/constants.d.ts +27 -0
- package/dist/svelte5/display-logic.d.ts +125 -0
- package/dist/svelte5/form.d.ts +100 -0
- package/dist/svelte5/functions.d.ts +71 -0
- package/dist/svelte5/hooks/useClickable.d.ts +7 -0
- package/dist/svelte5/hooks/useInjectCustomizeCss.d.ts +2 -0
- package/dist/svelte5/hooks/useText.d.ts +5 -0
- package/dist/svelte5/hydrate/action.d.ts +63 -0
- package/dist/svelte5/hydrate/actionEvent.d.ts +25 -0
- package/dist/svelte5/hydrate/collection.d.ts +121 -0
- package/dist/svelte5/hydrate/components/index.d.ts +32 -0
- package/dist/svelte5/hydrate/components-flex/avatar/styles.d.ts +3 -0
- package/dist/svelte5/hydrate/components-flex/avatar/types.d.ts +24 -0
- package/dist/svelte5/hydrate/components-flex/brand-kit.d.ts +16 -0
- package/dist/svelte5/hydrate/components-flex/button/styles.d.ts +8 -0
- package/dist/svelte5/hydrate/components-flex/button/types.d.ts +57 -0
- package/dist/svelte5/hydrate/components-flex/button-outlined/styles.d.ts +8 -0
- package/dist/svelte5/hydrate/components-flex/button-outlined/types.d.ts +20 -0
- package/dist/svelte5/hydrate/components-flex/button-text/styles.d.ts +6 -0
- package/dist/svelte5/hydrate/components-flex/button-text/types.d.ts +33 -0
- package/dist/svelte5/hydrate/components-flex/clip-copy/types.d.ts +6 -0
- package/dist/svelte5/hydrate/components-flex/close-button/types.d.ts +32 -0
- package/dist/svelte5/hydrate/components-flex/code/types.d.ts +6 -0
- package/dist/svelte5/hydrate/components-flex/count-down/types.d.ts +17 -0
- package/dist/svelte5/hydrate/components-flex/icon/styles.d.ts +3 -0
- package/dist/svelte5/hydrate/components-flex/icon/types.d.ts +18 -0
- package/dist/svelte5/hydrate/components-flex/image/styles.d.ts +3 -0
- package/dist/svelte5/hydrate/components-flex/image/types.d.ts +26 -0
- package/dist/svelte5/hydrate/components-flex/layout/types.d.ts +20 -0
- package/dist/svelte5/hydrate/components-flex/list/types.d.ts +30 -0
- package/dist/svelte5/hydrate/components-flex/modal/types.d.ts +5 -0
- package/dist/svelte5/hydrate/components-flex/multi-column/types.d.ts +31 -0
- package/dist/svelte5/hydrate/components-flex/props.d.ts +91 -0
- package/dist/svelte5/hydrate/components-flex/schemas.d.ts +36 -0
- package/dist/svelte5/hydrate/components-flex/shared/styles.d.ts +3 -0
- package/dist/svelte5/hydrate/components-flex/shared/types.d.ts +13 -0
- package/dist/svelte5/hydrate/components-flex/slider/types.d.ts +10 -0
- package/dist/svelte5/hydrate/components-flex/styles.d.ts +9 -0
- package/dist/svelte5/hydrate/components-flex/text/constants.d.ts +4 -0
- package/dist/svelte5/hydrate/components-flex/text/styles.d.ts +7 -0
- package/dist/svelte5/hydrate/components-flex/text/types.d.ts +37 -0
- package/dist/svelte5/hydrate/components-flex/text-link/styles.d.ts +6 -0
- package/dist/svelte5/hydrate/components-flex/text-link/types.d.ts +31 -0
- package/dist/svelte5/hydrate/components-flex/utils/color.d.ts +7 -0
- package/dist/svelte5/hydrate/components-flex/utils/obj-to-style.d.ts +2 -0
- package/dist/svelte5/hydrate/components-flex/utils/parser.d.ts +5 -0
- package/dist/svelte5/hydrate/components-flex/utils/prop-to-style.d.ts +11 -0
- package/dist/svelte5/hydrate/components-flex/variants.d.ts +42 -0
- package/dist/svelte5/hydrate/components-flex/youtube/types.d.ts +16 -0
- package/dist/svelte5/hydrate/constants.d.ts +27 -0
- package/dist/svelte5/hydrate/display-logic.d.ts +125 -0
- package/dist/svelte5/hydrate/form.d.ts +100 -0
- package/dist/svelte5/hydrate/functions.d.ts +71 -0
- package/dist/svelte5/hydrate/hooks/useClickable.d.ts +7 -0
- package/dist/svelte5/hydrate/hooks/useInjectCustomizeCss.d.ts +2 -0
- package/dist/svelte5/hydrate/hooks/useText.d.ts +5 -0
- package/dist/svelte5/hydrate/index.es.d.ts +79 -2956
- package/dist/svelte5/hydrate/index.es.js +5444 -6490
- package/dist/svelte5/hydrate/logger.d.ts +48 -0
- package/dist/svelte5/hydrate/modal.d.ts +214 -0
- package/dist/svelte5/hydrate/modal.svelte5.d.ts +214 -0
- package/dist/svelte5/hydrate/prop.d.ts +431 -0
- package/dist/svelte5/hydrate/script.d.ts +33 -0
- package/dist/svelte5/hydrate/stores.d.ts +376 -0
- package/dist/svelte5/hydrate/types.d.ts +183 -0
- package/dist/svelte5/hydrate/utils.d.ts +171 -0
- package/dist/svelte5/hydrate/widget.d.ts +148 -0
- package/dist/svelte5/index.es.d.ts +79 -2956
- package/dist/svelte5/index.es.js +5416 -6459
- package/dist/svelte5/index.front2.es.d.ts +1 -2
- package/dist/svelte5/index.front2.es.js +5657 -6715
- package/dist/svelte5/index.svelte5.d.ts +79 -0
- package/dist/svelte5/logger.d.ts +48 -0
- package/dist/svelte5/modal.d.ts +214 -0
- package/dist/svelte5/modal.svelte5.d.ts +214 -0
- package/dist/svelte5/prop.d.ts +431 -0
- package/dist/svelte5/script.d.ts +33 -0
- package/dist/svelte5/stores.d.ts +376 -0
- package/dist/svelte5/types.d.ts +183 -0
- package/dist/svelte5/utils.d.ts +171 -0
- package/dist/svelte5/widget.d.ts +148 -0
- package/dist/templates.cjs.js +38 -47
- package/dist/templates.d.ts +27 -28
- package/dist/templates.js +37 -46
- package/dist/types.d.ts +183 -0
- package/dist/utils.d.ts +171 -0
- package/dist/widget.d.ts +148 -0
- package/package.json +9 -18
- package/dist/hydrate/index.es.d.ts +0 -2988
- package/dist/templates.cjs.d.ts +0 -34
@@ -0,0 +1,57 @@
|
|
1
|
+
import type { Properties } from "csstype";
|
2
|
+
import type { BorderProps, ClickableProps, CommonProps, LinkProps, ShadowProps, WithIconProps, RadiusProps } from "../props.js";
|
3
|
+
export declare const BUTTON_SIZE: {
|
4
|
+
readonly extra_small: "エクストラ スモール"
|
5
|
+
readonly small: "スモール"
|
6
|
+
readonly medium: "ミディアム"
|
7
|
+
readonly large: "ラージ"
|
8
|
+
readonly extra_large: "エクストラ ラージ"
|
9
|
+
};
|
10
|
+
export declare const BUTTON_THEME: {
|
11
|
+
readonly default: "ノーマル / ブランド"
|
12
|
+
readonly general: "ノーマル / ジェネラル"
|
13
|
+
readonly danger: "ノーマル / アラート"
|
14
|
+
readonly white: "ノーマル / ホワイト"
|
15
|
+
readonly default_outline: "アウトライン / ブランド"
|
16
|
+
readonly general_outline: "アウトライン / ジェネラル"
|
17
|
+
readonly danger_outline: "アウトライン / アラート"
|
18
|
+
readonly default_text: "テキスト / ブランド"
|
19
|
+
readonly general_text: "テキスト / ジェネラル"
|
20
|
+
readonly danger_text: "テキスト / アラート"
|
21
|
+
};
|
22
|
+
export declare const BUTTON_VARIANT: {
|
23
|
+
readonly normal: "ノーマル"
|
24
|
+
readonly outline: "アウトライン"
|
25
|
+
readonly text: "テキスト"
|
26
|
+
};
|
27
|
+
export declare const BUTTON_ROUND: {
|
28
|
+
readonly default: "デフォルト"
|
29
|
+
readonly none: "なし"
|
30
|
+
readonly fulled: "円形"
|
31
|
+
};
|
32
|
+
export declare const BUTTON_LINK_TARGET: {
|
33
|
+
readonly _self: "画面内遷移"
|
34
|
+
readonly _blank: "別タブで開く"
|
35
|
+
};
|
36
|
+
export declare const BUTTON_ICON_ANGLE: {
|
37
|
+
readonly row: "左側"
|
38
|
+
readonly "row-reverse": "右側"
|
39
|
+
};
|
40
|
+
export type ButtonProps = CommonProps & ClickableProps & ShadowProps & LinkProps & WithIconProps & RadiusProps & BorderProps & {
|
41
|
+
label?: string
|
42
|
+
size?: keyof typeof BUTTON_SIZE | string
|
43
|
+
height?: Properties["height"]
|
44
|
+
paddingLeft?: Properties["paddingLeft"]
|
45
|
+
paddingRight?: Properties["paddingRight"]
|
46
|
+
fontSize?: Properties["fontSize"]
|
47
|
+
theme?: keyof typeof BUTTON_THEME | string
|
48
|
+
variant?: keyof typeof BUTTON_VARIANT | string
|
49
|
+
color?: Properties["color"]
|
50
|
+
backgroundColor?: Properties["backgroundColor"]
|
51
|
+
borderColor?: Properties["borderColor"]
|
52
|
+
fontWeight?: Properties["fontWeight"]
|
53
|
+
round?: keyof typeof BUTTON_ROUND
|
54
|
+
width?: Properties["width"]
|
55
|
+
wrap?: "wrap" | "nowrap"
|
56
|
+
};
|
57
|
+
export declare const buttonPropsDefault: ButtonProps;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import type { ButtonOutlinedProps } from "./types.js";
|
2
|
+
import type { PropStyles } from "../shared/types.js";
|
3
|
+
import type { BrandKit } from "../brand-kit.js";
|
4
|
+
import type { BrandableStyles } from "../styles.js";
|
5
|
+
export declare const BUTTON_OUTLINED_SIZE_STYLES: PropStyles<ButtonOutlinedProps, "size">;
|
6
|
+
export declare const getButtonOutlinedThemeStyles: (customBrandKit?: Partial<BrandKit>) => BrandableStyles<ButtonOutlinedProps>;
|
7
|
+
export declare const BUTTON_OUTLINED_ROUND_STYLES: PropStyles<ButtonOutlinedProps, "round">;
|
8
|
+
export declare const BUTTON_OUTLINED_WRAP_STYLES: PropStyles<ButtonOutlinedProps, "wrap">;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import type { Properties } from "csstype";
|
2
|
+
import type { BorderProps, ClickableProps, CommonProps, LinkProps, ShadowProps, WithIconProps } from "../props.js";
|
3
|
+
import type { BUTTON_THEME, BUTTON_ROUND, BUTTON_SIZE } from "../button/types.js";
|
4
|
+
export type ButtonOutlinedProps = CommonProps & ClickableProps & ShadowProps & WithIconProps & LinkProps & BorderProps & {
|
5
|
+
label?: string
|
6
|
+
size?: keyof typeof BUTTON_SIZE
|
7
|
+
height?: Properties["height"]
|
8
|
+
paddingLeft?: Properties["paddingLeft"]
|
9
|
+
paddingRight?: Properties["paddingRight"]
|
10
|
+
fontSize?: Properties["fontSize"]
|
11
|
+
theme?: keyof typeof BUTTON_THEME
|
12
|
+
color?: Properties["color"]
|
13
|
+
backgroundColor?: Properties["backgroundColor"]
|
14
|
+
borderColor?: Properties["backgroundColor"]
|
15
|
+
width?: Properties["width"]
|
16
|
+
round?: keyof typeof BUTTON_ROUND
|
17
|
+
fontWeight?: Properties["fontWeight"]
|
18
|
+
wrap?: "wrap" | "nowrap"
|
19
|
+
};
|
20
|
+
export declare const buttonOutlinedPropsDefault: ButtonOutlinedProps;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import type { PropStyles } from "../shared/types.js";
|
2
|
+
import type { ButtonTextProps } from "./types.js";
|
3
|
+
import type { BrandKit } from "../brand-kit.js";
|
4
|
+
import type { BrandableStyles } from "../styles.js";
|
5
|
+
export declare const BUTTON_TEXT_SIZE_STYLES: PropStyles<ButtonTextProps, "size">;
|
6
|
+
export declare const getButtonTextThemeStyles: (customBrandKit?: Partial<BrandKit>) => BrandableStyles<ButtonTextProps>;
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import type { Properties } from "csstype";
|
2
|
+
import type { ClickableProps, CommonProps, LinkProps, WithIconProps } from "../props.js";
|
3
|
+
import type { BUTTON_ROUND } from "../button/types.js";
|
4
|
+
export declare const BUTTON_TEXT_SIZE: {
|
5
|
+
readonly small: "Small"
|
6
|
+
readonly medium: "Medium"
|
7
|
+
readonly large: "Large"
|
8
|
+
};
|
9
|
+
export declare const BUTTON_TEXT_THEME: {
|
10
|
+
readonly default: "Default"
|
11
|
+
readonly link: "Link"
|
12
|
+
readonly general: "General"
|
13
|
+
readonly success: "Success"
|
14
|
+
readonly warning: "Warning"
|
15
|
+
readonly danger: "Danger"
|
16
|
+
readonly info: "Info"
|
17
|
+
readonly white: "White"
|
18
|
+
};
|
19
|
+
export type ButtonTextProps = CommonProps & ClickableProps & LinkProps & WithIconProps & {
|
20
|
+
label?: string
|
21
|
+
size?: keyof typeof BUTTON_TEXT_SIZE
|
22
|
+
height?: Properties["height"]
|
23
|
+
paddingLeft?: Properties["paddingLeft"]
|
24
|
+
paddingRight?: Properties["paddingRight"]
|
25
|
+
fontSize?: Properties["fontSize"]
|
26
|
+
theme?: keyof typeof BUTTON_TEXT_THEME
|
27
|
+
color?: Properties["color"]
|
28
|
+
backgroundColor?: Properties["backgroundColor"]
|
29
|
+
fontWeight?: Properties["fontWeight"]
|
30
|
+
width?: Properties["width"]
|
31
|
+
round?: keyof typeof BUTTON_ROUND
|
32
|
+
wrap?: "wrap" | "nowrap"
|
33
|
+
};
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import type { BorderProps, ClickableProps, CommonProps } from "../props.js";
|
2
|
+
import type { Properties } from "csstype";
|
3
|
+
export declare const CLOSE_BUTTON_PLACEMENT: {
|
4
|
+
readonly topRight: "topRight"
|
5
|
+
readonly topLeft: "topLeft"
|
6
|
+
readonly bottomRight: "bottomRight"
|
7
|
+
readonly bottomLeft: "bottomLeft"
|
8
|
+
};
|
9
|
+
export declare const CLOSE_BUTTON_ROUND: {
|
10
|
+
readonly default: "デフォルト"
|
11
|
+
readonly none: "なし"
|
12
|
+
readonly fulled: "円形"
|
13
|
+
};
|
14
|
+
export declare const CLOSE_BUTTON_LABEL_PLACEMENT: {
|
15
|
+
readonly right: "right"
|
16
|
+
readonly left: "left"
|
17
|
+
};
|
18
|
+
export type CloseButtonProps = CommonProps & ClickableProps & BorderProps & {
|
19
|
+
size?: number
|
20
|
+
placement?: keyof typeof CLOSE_BUTTON_PLACEMENT
|
21
|
+
round?: keyof typeof CLOSE_BUTTON_ROUND
|
22
|
+
bordered?: boolean
|
23
|
+
color?: Properties["color"]
|
24
|
+
backgroundColor?: Properties["backgroundColor"]
|
25
|
+
label?: string
|
26
|
+
labelColor?: Properties["color"]
|
27
|
+
labelPlacement?: keyof typeof CLOSE_BUTTON_LABEL_PLACEMENT
|
28
|
+
top?: Properties["top"]
|
29
|
+
right?: Properties["right"]
|
30
|
+
left?: Properties["left"]
|
31
|
+
bottom?: Properties["bottom"]
|
32
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import type { CommonProps } from "../props.js";
|
2
|
+
import type { OnClickOperation } from "../../prop.js";
|
3
|
+
import type { LayerTextProps } from "../text/types.js";
|
4
|
+
export type CountDownProps = CommonProps & {
|
5
|
+
timeLimit?: string
|
6
|
+
onEnd?: OnClickOperation
|
7
|
+
};
|
8
|
+
export type CountDownValueType = "day" | "hour" | "minute" | "second";
|
9
|
+
export type CountDownValueProps = LayerTextProps & {
|
10
|
+
type: CountDownValueType
|
11
|
+
};
|
12
|
+
export type CountDownValues = {
|
13
|
+
day: number
|
14
|
+
hour: number
|
15
|
+
min: number
|
16
|
+
sec: number
|
17
|
+
};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import type { ClickableProps, CommonProps } from "../props.js";
|
2
|
+
import type { Properties } from "preact/src/jsx-csstype";
|
3
|
+
export declare const ICON_SIZE: {
|
4
|
+
[key: string]: {
|
5
|
+
label: string
|
6
|
+
value: string
|
7
|
+
}
|
8
|
+
};
|
9
|
+
export declare const ICON_VARIANTS: {
|
10
|
+
[key: string]: any
|
11
|
+
};
|
12
|
+
export type IconProps = CommonProps & ClickableProps & {
|
13
|
+
variant: string
|
14
|
+
size?: keyof typeof ICON_SIZE
|
15
|
+
color?: Properties["color"]
|
16
|
+
width?: Properties["width"]
|
17
|
+
height?: Properties["height"]
|
18
|
+
};
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import type { Properties } from "csstype";
|
2
|
+
import type { CommonProps, BorderProps, ClickableProps, AspectProps, RadiusProps } from "../props.js";
|
3
|
+
export declare const IMAGE_ROUND_SHAPE: {
|
4
|
+
readonly circle: "ラウンド / ミディアム"
|
5
|
+
readonly rounded: "ラウンド / スモール"
|
6
|
+
readonly square: "スクエア"
|
7
|
+
};
|
8
|
+
export declare const IMAGE_ASPECT_VARIANTS: {
|
9
|
+
"1/1": string
|
10
|
+
"2/1": string
|
11
|
+
"3/2": string
|
12
|
+
"4/3": string
|
13
|
+
"16/9": string
|
14
|
+
"16/5": string
|
15
|
+
"1/2": string
|
16
|
+
"2/3": string
|
17
|
+
"3/4": string
|
18
|
+
"9/16": string
|
19
|
+
};
|
20
|
+
export type ImageProps = CommonProps & ClickableProps & AspectProps & RadiusProps & BorderProps & {
|
21
|
+
image?: string
|
22
|
+
width?: Properties["width"]
|
23
|
+
height?: Properties["height"]
|
24
|
+
alt?: string
|
25
|
+
shape?: keyof typeof IMAGE_ROUND_SHAPE
|
26
|
+
};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import type { Properties } from "csstype";
|
2
|
+
import type { BackgroundColorProps, BackgroundImageProps, BorderProps, ClickableProps, CommonProps, OverflowProps, PaddingProps, RadiusProps, ShadowProps } from "../props.js";
|
3
|
+
export declare const LAYOUT_DISPLAY_TYPE: readonly ["inline-flex", "flex", "block"];
|
4
|
+
export type LayoutDisplayType = (typeof LAYOUT_DISPLAY_TYPE)[number];
|
5
|
+
export declare const LAYOUT_DIRECTION: readonly ["column", "column-reverse", "row", "row-reverse"];
|
6
|
+
export type LayoutFlexDirection = (typeof LAYOUT_DIRECTION)[number];
|
7
|
+
export declare const LAYOUT_ALIGN: readonly ["flex-start", "center", "flex-end", "stretch"];
|
8
|
+
export type LayoutFlexAlign = (typeof LAYOUT_ALIGN)[number];
|
9
|
+
export declare const LAYOUT_JUSTIFY: readonly ["flex-start", "center", "flex-end", "space-between"];
|
10
|
+
export type LayoutFlexJustify = (typeof LAYOUT_JUSTIFY)[number];
|
11
|
+
export type LayerLayoutProps = CommonProps & ClickableProps & OverflowProps & BorderProps & RadiusProps & ShadowProps & BackgroundColorProps & BackgroundImageProps & PaddingProps & {
|
12
|
+
display?: LayoutDisplayType
|
13
|
+
direction?: LayoutFlexDirection
|
14
|
+
align?: LayoutFlexAlign
|
15
|
+
justify?: LayoutFlexJustify
|
16
|
+
gap?: Properties["gap"]
|
17
|
+
rowGap?: Properties["rowGap"]
|
18
|
+
columnGap?: Properties["columnGap"]
|
19
|
+
width?: Properties["width"]
|
20
|
+
};
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import type { Properties } from "csstype";
|
2
|
+
import type { CommonProps, ClickableProps, ActionTableProps } from "../props.js";
|
3
|
+
export type ListProps = CommonProps & ActionTableProps & {
|
4
|
+
gap?: Properties["gap"]
|
5
|
+
borderWidth?: Properties["borderTopWidth"]
|
6
|
+
borderStyle?: Properties["borderTopStyle"]
|
7
|
+
borderColor?: Properties["borderTopColor"]
|
8
|
+
width?: Properties["width"]
|
9
|
+
itemPaddingTop?: Properties["paddingTop"]
|
10
|
+
itemPaddingLeft?: Properties["paddingLeft"]
|
11
|
+
itemPaddingRight?: Properties["paddingRight"]
|
12
|
+
itemPaddingBottom?: Properties["paddingBottom"]
|
13
|
+
itemHeight?: Properties["height"]
|
14
|
+
itemGap?: Properties["gap"]
|
15
|
+
};
|
16
|
+
export type ListItemProps = CommonProps & ClickableProps & {
|
17
|
+
gap?: number
|
18
|
+
};
|
19
|
+
export declare const LIST_ITEM_CONTEXT_KEY = "ListItemContext";
|
20
|
+
export type ListItemContext = {
|
21
|
+
paddingTop?: Properties["paddingTop"]
|
22
|
+
paddingLeft?: Properties["paddingLeft"]
|
23
|
+
paddingRight?: Properties["paddingRight"]
|
24
|
+
paddingBottom?: Properties["paddingBottom"]
|
25
|
+
height?: Properties["paddingTop"]
|
26
|
+
borderTopWidth?: Properties["borderTopWidth"]
|
27
|
+
borderTopStyle?: Properties["borderTopStyle"]
|
28
|
+
borderTopColor?: Properties["borderTopColor"]
|
29
|
+
gap?: Properties["gap"]
|
30
|
+
};
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import type { Properties } from "csstype";
|
2
|
+
import type { CommonProps, OverflowProps, BorderProps, RadiusProps, ShadowProps, BackgroundColorProps, BackgroundImageProps } from "../props.js";
|
3
|
+
export type FrameModalProps = CommonProps & OverflowProps & BorderProps & RadiusProps & ShadowProps & BackgroundColorProps & BackgroundImageProps & {
|
4
|
+
width?: Properties["width"]
|
5
|
+
};
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import type { Properties } from "csstype";
|
2
|
+
import type { CommonProps, ClickableProps } from "../props.js";
|
3
|
+
export type MultiColumnProps = CommonProps & {
|
4
|
+
gap?: Properties["columnGap"]
|
5
|
+
borderWidth?: Properties["borderTopWidth"]
|
6
|
+
borderStyle?: Properties["borderTopStyle"]
|
7
|
+
borderColor?: Properties["borderTopColor"]
|
8
|
+
width?: Properties["width"]
|
9
|
+
itemPaddingTop?: Properties["paddingTop"]
|
10
|
+
itemPaddingLeft?: Properties["paddingLeft"]
|
11
|
+
itemPaddingRight?: Properties["paddingRight"]
|
12
|
+
itemPaddingBottom?: Properties["paddingBottom"]
|
13
|
+
itemHeight?: Properties["height"]
|
14
|
+
itemGap?: Properties["gap"]
|
15
|
+
};
|
16
|
+
export type MultiColumnItemProps = CommonProps & ClickableProps & {
|
17
|
+
gap?: number
|
18
|
+
};
|
19
|
+
export declare const MULTI_COLUMN_ITEM_CONTEXT_KEY = "MultiColumnItemContext";
|
20
|
+
export type MultiColumnItemContext = {
|
21
|
+
paddingTop?: Properties["paddingTop"]
|
22
|
+
paddingLeft?: Properties["paddingLeft"]
|
23
|
+
paddingRight?: Properties["paddingRight"]
|
24
|
+
paddingBottom?: Properties["paddingBottom"]
|
25
|
+
height?: Properties["paddingTop"]
|
26
|
+
borderLeftWidth?: Properties["borderTopWidth"]
|
27
|
+
borderLeftStyle?: Properties["borderTopStyle"]
|
28
|
+
borderLeftColor?: Properties["borderTopColor"]
|
29
|
+
gap?: Properties["gap"]
|
30
|
+
innerGap?: Properties["gap"]
|
31
|
+
};
|
@@ -0,0 +1,91 @@
|
|
1
|
+
import type { Properties } from "csstype";
|
2
|
+
import type { OnClickOperation } from "../prop.js";
|
3
|
+
import type { BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET } from "./button/types.js";
|
4
|
+
import type { BrandKit } from "./brand-kit.js";
|
5
|
+
import type { AspectVariantCode, FontFamilyVariantCode, ShadowVariantCode } from "./variants.js";
|
6
|
+
type PositionPlaceProps = {
|
7
|
+
top?: Properties["top"]
|
8
|
+
left?: Properties["left"]
|
9
|
+
right?: Properties["right"]
|
10
|
+
bottom?: Properties["bottom"]
|
11
|
+
transform?: Properties["transform"]
|
12
|
+
};
|
13
|
+
export type PositionProps = PositionPlaceProps & {
|
14
|
+
position?: Properties["position"]
|
15
|
+
};
|
16
|
+
export type MetaProps = {
|
17
|
+
displayName?: string
|
18
|
+
};
|
19
|
+
export type CustomizeCssProps = {
|
20
|
+
isCustomizeCss?: boolean
|
21
|
+
customizeCss?: string
|
22
|
+
};
|
23
|
+
export type BrandStyleProps = {
|
24
|
+
customBrandKit?: Partial<BrandKit>
|
25
|
+
};
|
26
|
+
export type ActionTableProps = {
|
27
|
+
actionTableKey?: string
|
28
|
+
};
|
29
|
+
export type CommonProps = MetaProps & PositionProps & CustomizeCssProps & BrandStyleProps;
|
30
|
+
export type ClickableProps = {
|
31
|
+
onClick?: OnClickOperation
|
32
|
+
eventName?: string
|
33
|
+
eventValue?: object
|
34
|
+
element?: string
|
35
|
+
};
|
36
|
+
export type OverflowProps = {
|
37
|
+
overflow?: Properties["overflow"]
|
38
|
+
};
|
39
|
+
export type BorderProps = {
|
40
|
+
borderTopWidth?: Properties["borderTopWidth"]
|
41
|
+
borderLeftWidth?: Properties["borderLeftWidth"]
|
42
|
+
borderRightWidth?: Properties["borderRightWidth"]
|
43
|
+
borderBottomWidth?: Properties["borderBottomWidth"]
|
44
|
+
borderColor?: Properties["borderColor"]
|
45
|
+
};
|
46
|
+
export type PaddingProps = {
|
47
|
+
paddingTop?: Properties["paddingTop"]
|
48
|
+
paddingLeft?: Properties["paddingLeft"]
|
49
|
+
paddingBottom?: Properties["paddingBottom"]
|
50
|
+
paddingRight?: Properties["paddingRight"]
|
51
|
+
};
|
52
|
+
export type RadiusProps = {
|
53
|
+
borderTopLeftRadius?: Properties["borderTopLeftRadius"]
|
54
|
+
borderTopRightRadius?: Properties["borderTopRightRadius"]
|
55
|
+
borderBottomLeftRadius?: Properties["borderBottomLeftRadius"]
|
56
|
+
borderBottomRightRadius?: Properties["borderBottomRightRadius"]
|
57
|
+
};
|
58
|
+
export type BackgroundColorProps = {
|
59
|
+
backgroundColor?: Properties["backgroundColor"]
|
60
|
+
};
|
61
|
+
export type BackgroundImageProps = {
|
62
|
+
backgroundImageUrl?: string
|
63
|
+
backgroundPositionX?: Properties["backgroundPositionX"]
|
64
|
+
backgroundPositionY?: Properties["backgroundPositionY"]
|
65
|
+
backgroundBlendMode?: Properties["backgroundBlendMode"]
|
66
|
+
backgroundBlendColor?: Properties["backgroundColor"]
|
67
|
+
};
|
68
|
+
export type ShadowProps = {
|
69
|
+
shadow?: Properties["boxShadow"]
|
70
|
+
shadowVariant?: ShadowVariantCode
|
71
|
+
};
|
72
|
+
export type WithIconProps = {
|
73
|
+
isIcon?: boolean
|
74
|
+
iconVariant?: string
|
75
|
+
iconColor?: Properties["color"]
|
76
|
+
iconAngle?: keyof typeof BUTTON_ICON_ANGLE
|
77
|
+
};
|
78
|
+
export type LinkProps = {
|
79
|
+
isLink?: boolean
|
80
|
+
linkUrl?: string
|
81
|
+
linkTarget?: keyof typeof BUTTON_LINK_TARGET
|
82
|
+
};
|
83
|
+
export type AspectProps = {
|
84
|
+
aspectVariant?: AspectVariantCode | string
|
85
|
+
aspect?: Properties["aspectRatio"]
|
86
|
+
};
|
87
|
+
export type FontFamilyProps = {
|
88
|
+
fontFamilyVariant?: FontFamilyVariantCode
|
89
|
+
fontFamily?: Properties["fontFamily"]
|
90
|
+
};
|
91
|
+
export {};
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import type { ButtonProps } from "./button/types.js";
|
2
|
+
import type { AvatarProps } from "./avatar/types.js";
|
3
|
+
import type { LayerLayoutProps } from "./layout/types.js";
|
4
|
+
import type { ClipboardProps, CloseButtonProps, CountDownProps, IconProps, ImageProps, ListProps, ListItemProps, LayerTextProps } from "../index.svelte5.js";
|
5
|
+
type FlexComponentSchemaPropType = "string" | "url" | "number" | "boolean" | "color" | "date_string";
|
6
|
+
type FlexComponentSchemaProp<
|
7
|
+
Props extends Record<string, any>,
|
8
|
+
Key extends keyof Props
|
9
|
+
> = {
|
10
|
+
key: Key
|
11
|
+
type: FlexComponentSchemaPropType
|
12
|
+
suggestions: Props[Key][]
|
13
|
+
default?: Props[Key]
|
14
|
+
priority?: number
|
15
|
+
};
|
16
|
+
type FlexComponentSchema<Props extends Record<string, any> = object> = {
|
17
|
+
props: FlexComponentSchemaProp<Props, keyof Props>[]
|
18
|
+
};
|
19
|
+
export declare const createProp: <
|
20
|
+
Props extends Record<string, any>,
|
21
|
+
K extends keyof Props
|
22
|
+
>(key: K, type: FlexComponentSchemaPropType, suggestions?: Props[K][], priority?: number, defaultValue?: Props[K]) => FlexComponentSchemaProp<Props, K>;
|
23
|
+
export declare const flexComponentSchemes: {
|
24
|
+
readonly FlexAvatar: FlexComponentSchema<AvatarProps>
|
25
|
+
readonly FlexButton: FlexComponentSchema<ButtonProps>
|
26
|
+
readonly FlexClipCopy: FlexComponentSchema<ClipboardProps>
|
27
|
+
readonly FlexCloseButton: FlexComponentSchema<CloseButtonProps>
|
28
|
+
readonly FlexCountDown: FlexComponentSchema<CountDownProps>
|
29
|
+
readonly FlexIcon: FlexComponentSchema<IconProps>
|
30
|
+
readonly FlexImage: FlexComponentSchema<ImageProps>
|
31
|
+
readonly FlexLayout: FlexComponentSchema<LayerLayoutProps>
|
32
|
+
readonly FlexList: FlexComponentSchema<ListProps>
|
33
|
+
readonly FlexListItem: FlexComponentSchema<ListItemProps>
|
34
|
+
readonly FlexText: FlexComponentSchema<LayerTextProps>
|
35
|
+
};
|
36
|
+
export {};
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import type { ROUND_VARIANT } from "./types.js";
|
2
|
+
import type { Properties } from "csstype";
|
3
|
+
export declare const ROUND_STYLES: Record<keyof typeof ROUND_VARIANT, Pick<Properties, "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius">>;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { Properties } from "csstype";
|
2
|
+
export type PropStyles<
|
3
|
+
Props extends Record<string, any>,
|
4
|
+
K extends keyof Props
|
5
|
+
> = Record<NonNullable<Props[K]>, Props | Properties>;
|
6
|
+
export declare const ROUND_VARIANT: {
|
7
|
+
readonly extra_small: "XSmall (2px)"
|
8
|
+
readonly small: "Small (4px)"
|
9
|
+
readonly medium: "Medium (8px)"
|
10
|
+
readonly large: "Large (16px)"
|
11
|
+
readonly extra_large: "Large (24px)"
|
12
|
+
readonly fulled: "Full (100%)"
|
13
|
+
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { CommonProps, ClickableProps } from "../props.js";
|
2
|
+
export type SliderProps = CommonProps & {
|
3
|
+
gap: number
|
4
|
+
itemWidthPercentage: number
|
5
|
+
auto?: boolean
|
6
|
+
loop?: boolean
|
7
|
+
hideIndicator?: boolean
|
8
|
+
interval?: number
|
9
|
+
};
|
10
|
+
export type SliderItemProps = CommonProps & ClickableProps;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { type BrandKit } from "./brand-kit.js";
|
2
|
+
import type { Properties } from "csstype";
|
3
|
+
export declare const getPropStyles: <
|
4
|
+
T extends object = object,
|
5
|
+
R = BrandableStyles<T>
|
6
|
+
>(callback: (args: {
|
7
|
+
brandKit: BrandKit
|
8
|
+
}) => R) => (customBrandKit?: Partial<BrandKit>) => R;
|
9
|
+
export type BrandableStyles<T extends object = object> = Record<string, Partial<T & Properties>>;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type { BrandKit } from "../brand-kit.js";
|
2
|
+
import type { BrandableStyles } from "../styles.js";
|
3
|
+
type TextThemeProps = {
|
4
|
+
color: string
|
5
|
+
};
|
6
|
+
export declare const getTextThemeStyles: (customBrandKit?: Partial<BrandKit>) => BrandableStyles<TextThemeProps>;
|
7
|
+
export {};
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import type { Properties } from "csstype";
|
2
|
+
import type { BackgroundColorProps, BorderProps, ClickableProps, CommonProps, CustomizeCssProps, LinkProps, PaddingProps, RadiusProps, WithIconProps, FontFamilyProps } from "../props.js";
|
3
|
+
export declare const LAYER_TEXT_SIZE: {
|
4
|
+
readonly small: "本文 / スモール"
|
5
|
+
readonly medium: "本文 / ミディアム"
|
6
|
+
readonly large: "本文 / ラージ"
|
7
|
+
readonly heading_extra_small: "見出し / スモール"
|
8
|
+
readonly heading_small: "見出し / ミディアム"
|
9
|
+
readonly heading_medium: "見出し / ラージ"
|
10
|
+
readonly heading_large: "見出し / エクストララージ"
|
11
|
+
};
|
12
|
+
export declare const TEXT_THEME: {
|
13
|
+
readonly default: "デフォルト"
|
14
|
+
readonly gray: "グレー"
|
15
|
+
readonly brand: "ブランド"
|
16
|
+
readonly success: "サクセス"
|
17
|
+
readonly warning: "ワーニング"
|
18
|
+
readonly danger: "アラート"
|
19
|
+
readonly info: "インフォ"
|
20
|
+
readonly white: "ホワイト"
|
21
|
+
};
|
22
|
+
export declare const TEXT_STYLE: {
|
23
|
+
readonly normal: "normal"
|
24
|
+
readonly italic: "italic"
|
25
|
+
};
|
26
|
+
export type LayerTextProps = CommonProps & BorderProps & RadiusProps & BackgroundColorProps & WithIconProps & LinkProps & ClickableProps & CustomizeCssProps & FontFamilyProps & PaddingProps & {
|
27
|
+
content: string
|
28
|
+
theme?: keyof typeof TEXT_THEME
|
29
|
+
size?: keyof typeof LAYER_TEXT_SIZE
|
30
|
+
align?: Properties["textAlign"]
|
31
|
+
fontStyle?: Properties["fontStyle"]
|
32
|
+
fontSize?: Properties["fontSize"]
|
33
|
+
fontWeight?: Properties["fontWeight"]
|
34
|
+
lineHeight?: number
|
35
|
+
color?: Properties["color"]
|
36
|
+
width?: Properties["width"]
|
37
|
+
};
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import type { PropStyles } from "../shared/types.js";
|
2
|
+
import type { TextLinkProps } from "./types.js";
|
3
|
+
import type { BrandKit } from "../brand-kit.js";
|
4
|
+
import type { BrandableStyles } from "../styles.js";
|
5
|
+
export declare const TEXT_LINK_SIZE_STYLES: PropStyles<TextLinkProps, "size">;
|
6
|
+
export declare const getTextLinkThemeStyles: (customBrandKit?: Partial<BrandKit>) => BrandableStyles<TextLinkProps>;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import type { Properties } from "csstype";
|
2
|
+
import type { ClickableProps, CommonProps, LinkProps, WithIconProps, FontFamilyProps } from "../props.js";
|
3
|
+
export declare const TEXT_LINK_SIZE: {
|
4
|
+
readonly small: "Small"
|
5
|
+
readonly medium: "Medium"
|
6
|
+
readonly large: "Large"
|
7
|
+
};
|
8
|
+
export declare const TEXT_LINK_THEME: {
|
9
|
+
readonly default: "デフォルト"
|
10
|
+
readonly link: "Link"
|
11
|
+
readonly brand: "Brand"
|
12
|
+
readonly alert: "Danger"
|
13
|
+
readonly gray: "Gray"
|
14
|
+
readonly white: "White"
|
15
|
+
};
|
16
|
+
export declare const TEXT_LINK_UNDERLINE: {
|
17
|
+
readonly hover_on: "ホバーで表示"
|
18
|
+
readonly hover_off: "ホバーで非表示"
|
19
|
+
readonly on: "常に表示"
|
20
|
+
readonly off: "常に非表示"
|
21
|
+
};
|
22
|
+
export type TextLinkProps = CommonProps & ClickableProps & LinkProps & FontFamilyProps & WithIconProps & {
|
23
|
+
label: string
|
24
|
+
size?: keyof typeof TEXT_LINK_SIZE
|
25
|
+
lineHeight?: number
|
26
|
+
fontSize?: Properties["fontSize"]
|
27
|
+
theme?: keyof typeof TEXT_LINK_THEME
|
28
|
+
color?: Properties["color"]
|
29
|
+
underline?: keyof typeof TEXT_LINK_UNDERLINE
|
30
|
+
fontWeight?: Properties["fontWeight"]
|
31
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { Properties } from "csstype";
|
2
|
+
import type { BackgroundColorProps, BackgroundImageProps, BorderProps, CommonProps, OverflowProps, PaddingProps, PositionProps, RadiusProps, ShadowProps } from "../props.js";
|
3
|
+
export declare const toCssPosition: (p?: PositionProps) => Properties;
|
4
|
+
export declare const toCssCommon: (p?: CommonProps) => Properties;
|
5
|
+
export declare const toCssBorder: (p?: BorderProps) => Properties;
|
6
|
+
export declare const toCssPadding: (p?: PaddingProps) => Properties;
|
7
|
+
export declare const toCssBackgroundImage: (p?: BackgroundImageProps) => Properties;
|
8
|
+
export declare const toCssBackgroundColor: (p?: BackgroundColorProps) => Properties;
|
9
|
+
export declare const toCssRadius: (p?: RadiusProps) => Properties;
|
10
|
+
export declare const toCssShadow: (p?: ShadowProps) => Properties;
|
11
|
+
export declare const toCssOverflow: (p?: OverflowProps) => Properties;
|