Skip to content

Commit ef00781

Browse files
authored
Allow pixel values for flex sizing (#309)
1 parent 9a71dc5 commit ef00781

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/types.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ export type FlexBox = {
10891089
* - To override this setting for a specific component, set the `margin`
10901090
* property of that component.
10911091
*/
1092-
spacing?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
1092+
spacing?: string | "none" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
10931093
/**
10941094
* Minimum space between this box and the previous component in the parent box.
10951095
*
@@ -1100,7 +1100,7 @@ export type FlexBox = {
11001100
* - If this box is the first component in the parent box, the `margin`
11011101
* property will be ignored.
11021102
*/
1103-
margin?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
1103+
margin?: string | "none" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
11041104
/**
11051105
* Free space between the borders of this box and the child element.
11061106
* For more information, see [Box padding](https://developers.line.biz/en/docs/messaging-api/flex-message-layout/#padding-property) in the API documentation.
@@ -1261,7 +1261,7 @@ export type FlexButton = {
12611261
* - If this box is the first component in the parent box, the `margin`
12621262
* property will be ignored.
12631263
*/
1264-
margin?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
1264+
margin?: string | "none" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
12651265
/**
12661266
* Height of the button. The default value is `md`.
12671267
*/
@@ -1349,7 +1349,7 @@ export type FlexIcon = {
13491349
* - If this box is the first component in the parent box, the `margin`
13501350
* property will be ignored.
13511351
*/
1352-
margin?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
1352+
margin?: string | "none" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
13531353
/**
13541354
* Maximum size of the icon width.
13551355
* The size increases in the order of listing.
@@ -1412,7 +1412,7 @@ export type FlexImage = {
14121412
* - If this box is the first component in the parent box, the `margin`
14131413
* property will be ignored.
14141414
*/
1415-
margin?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
1415+
margin?: string | "none" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
14161416
/**
14171417
* Horizontal alignment style. Specify one of the following values:
14181418
*
@@ -1508,7 +1508,7 @@ export type FlexSeparator = {
15081508
* - If this box is the first component in the parent box, the `margin`
15091509
* property will be ignored.
15101510
*/
1511-
margin?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
1511+
margin?: string | "none" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
15121512
/**
15131513
* Color of the separator. Use a hexadecimal color code.
15141514
*/
@@ -1564,7 +1564,7 @@ type FlexTextBase = {
15641564
* - If this box is the first component in the parent box, the `margin`
15651565
* property will be ignored.
15661566
*/
1567-
margin?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
1567+
margin?: string | "none" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
15681568
/**
15691569
* Font size.
15701570
* The size increases in the order of listing.

0 commit comments

Comments
 (0)