@workday/canvas-kit-react 8.0.0-alpha.123-next.3 → 8.0.0-alpha.125-next.4
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/commonjs/layout/lib/utils/border.d.ts +8 -8
- package/dist/commonjs/layout/lib/utils/border.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/flex.d.ts +7 -7
- package/dist/commonjs/layout/lib/utils/flex.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/flexItem.d.ts +4 -4
- package/dist/commonjs/layout/lib/utils/flexItem.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/layout.d.ts +7 -7
- package/dist/commonjs/layout/lib/utils/layout.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/position.d.ts +3 -3
- package/dist/commonjs/layout/lib/utils/position.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/border.d.ts +8 -8
- package/dist/es6/layout/lib/utils/border.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/flex.d.ts +7 -7
- package/dist/es6/layout/lib/utils/flex.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/flexItem.d.ts +4 -4
- package/dist/es6/layout/lib/utils/flexItem.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/layout.d.ts +7 -7
- package/dist/es6/layout/lib/utils/layout.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/position.d.ts +3 -3
- package/dist/es6/layout/lib/utils/position.d.ts.map +1 -1
- package/layout/lib/utils/border.ts +8 -8
- package/layout/lib/utils/flex.ts +7 -14
- package/layout/lib/utils/flexItem.ts +4 -4
- package/layout/lib/utils/layout.ts +7 -14
- package/layout/lib/utils/position.ts +3 -3
- package/package.json +6 -5
- package/dist/commonjs/layout/lib/utils/types.d.ts +0 -30
- package/dist/commonjs/layout/lib/utils/types.d.ts.map +0 -1
- package/dist/commonjs/layout/lib/utils/types.js +0 -4
- package/dist/es6/layout/lib/utils/types.d.ts +0 -30
- package/dist/es6/layout/lib/utils/types.d.ts.map +0 -1
- package/dist/es6/layout/lib/utils/types.js +0 -3
- package/layout/lib/utils/types.ts +0 -199
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CanvasBorderRadiusKeys, CanvasColor } from '@workday/canvas-kit-react/tokens';
|
|
2
2
|
import { PartialEmotionCanvasTheme } from '@workday/canvas-kit-react/common';
|
|
3
|
-
import {
|
|
3
|
+
import { Property } from 'csstype';
|
|
4
4
|
/** style props to set the border properties */
|
|
5
5
|
export declare type BorderShorthandStyleProps = {
|
|
6
6
|
/** sets `border` property */
|
|
@@ -43,15 +43,15 @@ export declare type BorderRadiusStyleProps = {
|
|
|
43
43
|
/** style props to set the border style properties */
|
|
44
44
|
export declare type BorderLineStyleProps = {
|
|
45
45
|
/** sets `border-style` property */
|
|
46
|
-
borderStyle?:
|
|
46
|
+
borderStyle?: Property.Border;
|
|
47
47
|
/** sets `border-top-style` property */
|
|
48
|
-
borderTopStyle?:
|
|
48
|
+
borderTopStyle?: Property.Border;
|
|
49
49
|
/** sets `border-right-style` property (no bidirectional support) */
|
|
50
|
-
borderRightStyle?:
|
|
50
|
+
borderRightStyle?: Property.Border;
|
|
51
51
|
/** sets `border-bottom-style` property */
|
|
52
|
-
borderBottomStyle?:
|
|
52
|
+
borderBottomStyle?: Property.Border;
|
|
53
53
|
/** sets `border-left-style` property (no bidirectional support) */
|
|
54
|
-
borderLeftStyle?:
|
|
54
|
+
borderLeftStyle?: Property.Border;
|
|
55
55
|
};
|
|
56
56
|
/** style props to set the border width properties */
|
|
57
57
|
export declare type BorderWidthStyleProps = {
|
|
@@ -72,7 +72,7 @@ export declare type BorderLogicalStyleProps = {
|
|
|
72
72
|
/** sets `border-left-color` property (bidirectional support) */
|
|
73
73
|
borderInlineStartColor?: CanvasColor | (string & {});
|
|
74
74
|
/** sets `border-left-style` property (bidirectional support) */
|
|
75
|
-
borderInlineStartStyle?:
|
|
75
|
+
borderInlineStartStyle?: Property.Border;
|
|
76
76
|
/** sets `border-left-width` property (bidirectional support) */
|
|
77
77
|
borderInlineStartWidth?: string | number;
|
|
78
78
|
/** sets `border-right` property (bidirectional support) */
|
|
@@ -80,7 +80,7 @@ export declare type BorderLogicalStyleProps = {
|
|
|
80
80
|
/** sets `border-right-color` property (bidirectional support) */
|
|
81
81
|
borderInlineEndColor?: CanvasColor | (string & {});
|
|
82
82
|
/** sets `border-right-style` property (bidirectional support) */
|
|
83
|
-
borderInlineEndStyle?:
|
|
83
|
+
borderInlineEndStyle?: Property.Border;
|
|
84
84
|
/** sets `border-right-width` property (bidirectional support) */
|
|
85
85
|
borderInlineEndWidth?: string | number;
|
|
86
86
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"border.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/border.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,sBAAsB,EAEtB,WAAW,EACZ,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,yBAAyB,EAE1B,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"border.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/border.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,sBAAsB,EAEtB,WAAW,EACZ,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,yBAAyB,EAE1B,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAEjC,+CAA+C;AAC/C,oBAAY,yBAAyB,GAAG;IACtC,6BAA6B;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oCAAoC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6DAA6D;IAC7D,UAAU,CAAC,EAAE,MAAM,CAAC;CAC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,yBAAyB,GACtD,qBAAqB,GACrB,sBAAsB,GACtB,oBAAoB,GACpB,qBAAqB,GACrB,uBAAuB,CAAC;AA4D1B;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,gBAAgB,GAAG;IAAC,KAAK,CAAC,EAAE,yBAAyB,CAAA;CAAC,EAAE,KAAK,EAAE,CAAC,MAkFhG"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
2
|
/** style props to for flexbox container properties */
|
|
3
3
|
export declare type FlexStyleProps = {
|
|
4
4
|
/** sets `align-items` property */
|
|
5
|
-
alignItems?:
|
|
5
|
+
alignItems?: Property.AlignItems;
|
|
6
6
|
/** sets `align-content` property */
|
|
7
|
-
alignContent?:
|
|
7
|
+
alignContent?: Property.AlignContent;
|
|
8
8
|
/**
|
|
9
9
|
* sets `display` property
|
|
10
10
|
* @default 'flex'
|
|
11
11
|
* */
|
|
12
12
|
display?: 'flex' | 'inline-flex';
|
|
13
13
|
/** sets `justify-items` property */
|
|
14
|
-
justifyItems?:
|
|
14
|
+
justifyItems?: Property.JustifyItems;
|
|
15
15
|
/** sets `justify-content` property */
|
|
16
|
-
justifyContent?:
|
|
16
|
+
justifyContent?: Property.JustifyContent;
|
|
17
17
|
/** sets `flex-wrap` property */
|
|
18
|
-
flexWrap?:
|
|
18
|
+
flexWrap?: Property.FlexWrap;
|
|
19
19
|
/** sets `flex-direction` property */
|
|
20
|
-
flexDirection?:
|
|
20
|
+
flexDirection?: Property.FlexDirection;
|
|
21
21
|
};
|
|
22
22
|
/**
|
|
23
23
|
* A style prop function that takes component props and returns flexbox styles.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flex.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/flex.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"flex.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/flex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAEjC,sDAAsD;AACtD,oBAAY,cAAc,GAAG;IAC3B,kCAAkC;IAClC,UAAU,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC;IACjC,oCAAoC;IACpC,YAAY,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC;IACrC;;;SAGK;IACL,OAAO,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;IACjC,oCAAoC;IACpC,YAAY,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC;IACrC,sCAAsC;IACtC,cAAc,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC;IACzC,gCAAgC;IAChC,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC7B,qCAAqC;IACrC,aAAa,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC;CACxC,CAAC;AAYF;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,cAAc,EAAE,KAAK,EAAE,CAAC,MAWtD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
2
|
/** style props to for flexbox item properties */
|
|
3
3
|
export declare type FlexItemStyleProps = {
|
|
4
4
|
/** sets `flex` property */
|
|
@@ -10,11 +10,11 @@ export declare type FlexItemStyleProps = {
|
|
|
10
10
|
/** sets `flex-basis` property */
|
|
11
11
|
flexBasis?: number | string;
|
|
12
12
|
/** sets `justify-self` property */
|
|
13
|
-
justifySelf?:
|
|
13
|
+
justifySelf?: Property.JustifySelf;
|
|
14
14
|
/** sets `align-self` property */
|
|
15
|
-
alignSelf?:
|
|
15
|
+
alignSelf?: Property.AlignSelf;
|
|
16
16
|
/** sets `order` property */
|
|
17
|
-
order?:
|
|
17
|
+
order?: Property.Order;
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
20
20
|
* A style prop function that takes component props and returns flexbox item styles.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flexItem.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/flexItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"flexItem.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/flexItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAEjC,iDAAiD;AACjD,oBAAY,kBAAkB,GAAG;IAC/B,2BAA2B;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,kCAAkC;IAClC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,mCAAmC;IACnC,WAAW,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC;IACnC,iCAAiC;IACjC,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B,4BAA4B;IAC5B,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC;CACxB,CAAC;AAaF;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,kBAAkB,EAAE,KAAK,EAAE,CAAC,MAW9D"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
2
|
/** style props to for layout properties */
|
|
3
3
|
export declare type LayoutStyleProps = {
|
|
4
4
|
/** sets `display` property */
|
|
5
|
-
display?:
|
|
5
|
+
display?: Property.Display;
|
|
6
6
|
/** sets `height` property */
|
|
7
7
|
height?: number | string;
|
|
8
8
|
/** sets `list-style property */
|
|
9
|
-
listStyle?:
|
|
9
|
+
listStyle?: Property.ListStyle;
|
|
10
10
|
/** sets `max-height` property */
|
|
11
11
|
maxHeight?: number | string;
|
|
12
12
|
/** sets `max-width` property */
|
|
@@ -16,13 +16,13 @@ export declare type LayoutStyleProps = {
|
|
|
16
16
|
/** sets `min-width` property */
|
|
17
17
|
minWidth?: number | string;
|
|
18
18
|
/** sets `overflow` property */
|
|
19
|
-
overflow?:
|
|
19
|
+
overflow?: Property.Overflow;
|
|
20
20
|
/** sets `overflow-x` property */
|
|
21
|
-
overflowX?:
|
|
21
|
+
overflowX?: Property.OverflowX;
|
|
22
22
|
/** sets `overflow-y` property */
|
|
23
|
-
overflowY?:
|
|
23
|
+
overflowY?: Property.OverflowY;
|
|
24
24
|
/** sets `vertical-align` property */
|
|
25
|
-
verticalAlign?:
|
|
25
|
+
verticalAlign?: Property.VerticalAlign;
|
|
26
26
|
/** sets `width` property */
|
|
27
27
|
width?: number | string;
|
|
28
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/layout.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAEjC,2CAA2C;AAC3C,oBAAY,gBAAgB,GAAG;IAC7B,8BAA8B;IAC9B,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC;IAC3B,6BAA6B;IAC7B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,gCAAgC;IAChC,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC7B,iCAAiC;IACjC,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B,iCAAiC;IACjC,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B,qCAAqC;IACrC,aAAa,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC;IACvC,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB,CAAC;AAiBF;;;;;;;;;;;;GAYG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,gBAAgB,EAAE,KAAK,EAAE,CAAC,MAW1D"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PartialEmotionCanvasTheme } from '@workday/canvas-kit-react/common';
|
|
2
|
-
import {
|
|
2
|
+
import { Property } from 'csstype';
|
|
3
3
|
/** style props to for standard position properties */
|
|
4
4
|
export declare type PositionStandardProps = {
|
|
5
5
|
/** sets `position` property */
|
|
6
|
-
position?:
|
|
6
|
+
position?: Property.Position;
|
|
7
7
|
/** sets `zIndex` property */
|
|
8
|
-
zIndex?:
|
|
8
|
+
zIndex?: Property.ZIndex;
|
|
9
9
|
/** sets `top` property */
|
|
10
10
|
top?: number | string;
|
|
11
11
|
/** sets `right` property (no bidirectional support) */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/position.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EAE1B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/position.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EAE1B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAEjC,sDAAsD;AACtD,oBAAY,qBAAqB,GAAG;IAClC,gCAAgC;IAChC,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC7B,8BAA8B;IAC9B,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC;IACzB,2BAA2B;IAC3B,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,oDAAoD;IACpD,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACnC,oDAAoD;IACpD,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAClC,CAAC;AA0BF,oBAAY,kBAAkB,GAAG,qBAAqB,GAAG,oBAAoB,CAAC;AAE9E;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,kBAAkB,GAAG;IAAC,KAAK,CAAC,EAAE,yBAAyB,CAAA;CAAC,EACzF,KAAK,EAAE,CAAC,MAyBT"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CanvasBorderRadiusKeys, CanvasColor } from '@workday/canvas-kit-react/tokens';
|
|
2
2
|
import { PartialEmotionCanvasTheme } from '@workday/canvas-kit-react/common';
|
|
3
|
-
import {
|
|
3
|
+
import { Property } from 'csstype';
|
|
4
4
|
/** style props to set the border properties */
|
|
5
5
|
export declare type BorderShorthandStyleProps = {
|
|
6
6
|
/** sets `border` property */
|
|
@@ -43,15 +43,15 @@ export declare type BorderRadiusStyleProps = {
|
|
|
43
43
|
/** style props to set the border style properties */
|
|
44
44
|
export declare type BorderLineStyleProps = {
|
|
45
45
|
/** sets `border-style` property */
|
|
46
|
-
borderStyle?:
|
|
46
|
+
borderStyle?: Property.Border;
|
|
47
47
|
/** sets `border-top-style` property */
|
|
48
|
-
borderTopStyle?:
|
|
48
|
+
borderTopStyle?: Property.Border;
|
|
49
49
|
/** sets `border-right-style` property (no bidirectional support) */
|
|
50
|
-
borderRightStyle?:
|
|
50
|
+
borderRightStyle?: Property.Border;
|
|
51
51
|
/** sets `border-bottom-style` property */
|
|
52
|
-
borderBottomStyle?:
|
|
52
|
+
borderBottomStyle?: Property.Border;
|
|
53
53
|
/** sets `border-left-style` property (no bidirectional support) */
|
|
54
|
-
borderLeftStyle?:
|
|
54
|
+
borderLeftStyle?: Property.Border;
|
|
55
55
|
};
|
|
56
56
|
/** style props to set the border width properties */
|
|
57
57
|
export declare type BorderWidthStyleProps = {
|
|
@@ -72,7 +72,7 @@ export declare type BorderLogicalStyleProps = {
|
|
|
72
72
|
/** sets `border-left-color` property (bidirectional support) */
|
|
73
73
|
borderInlineStartColor?: CanvasColor | (string & {});
|
|
74
74
|
/** sets `border-left-style` property (bidirectional support) */
|
|
75
|
-
borderInlineStartStyle?:
|
|
75
|
+
borderInlineStartStyle?: Property.Border;
|
|
76
76
|
/** sets `border-left-width` property (bidirectional support) */
|
|
77
77
|
borderInlineStartWidth?: string | number;
|
|
78
78
|
/** sets `border-right` property (bidirectional support) */
|
|
@@ -80,7 +80,7 @@ export declare type BorderLogicalStyleProps = {
|
|
|
80
80
|
/** sets `border-right-color` property (bidirectional support) */
|
|
81
81
|
borderInlineEndColor?: CanvasColor | (string & {});
|
|
82
82
|
/** sets `border-right-style` property (bidirectional support) */
|
|
83
|
-
borderInlineEndStyle?:
|
|
83
|
+
borderInlineEndStyle?: Property.Border;
|
|
84
84
|
/** sets `border-right-width` property (bidirectional support) */
|
|
85
85
|
borderInlineEndWidth?: string | number;
|
|
86
86
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"border.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/border.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,sBAAsB,EAEtB,WAAW,EACZ,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,yBAAyB,EAE1B,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"border.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/border.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,sBAAsB,EAEtB,WAAW,EACZ,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,yBAAyB,EAE1B,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAEjC,+CAA+C;AAC/C,oBAAY,yBAAyB,GAAG;IACtC,6BAA6B;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8DAA8D;IAC9D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oCAAoC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6DAA6D;IAC7D,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,qDAAqD;AACrD,oBAAY,qBAAqB,GAAG;IAClC,mCAAmC;IACnC,WAAW,CAAC,EAAE,WAAW,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC1C,uCAAuC;IACvC,cAAc,CAAC,EAAE,WAAW,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC7C,oEAAoE;IACpE,gBAAgB,CAAC,EAAE,WAAW,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC/C,0CAA0C;IAC1C,iBAAiB,CAAC,EAAE,WAAW,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAChD,mEAAmE;IACnE,eAAe,CAAC,EAAE,WAAW,GAAG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CAAC;IACnC,0CAA0C;IAC1C,iBAAiB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACpC,mEAAmE;IACnE,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACnC,CAAC;AAEF,oBAAY,uBAAuB,GAAG;IACpC,0DAA0D;IAC1D,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gEAAgE;IAChE,sBAAsB,CAAC,EAAE,WAAW,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IACrD,gEAAgE;IAChE,sBAAsB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC;IACzC,gEAAgE;IAChE,sBAAsB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzC,2DAA2D;IAC3D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iEAAiE;IACjE,oBAAoB,CAAC,EAAE,WAAW,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IACnD,iEAAiE;IACjE,oBAAoB,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC;IACvC,iEAAiE;IACjE,oBAAoB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxC,CAAC;AAEF,qDAAqD;AACrD,oBAAY,gBAAgB,GAAG,yBAAyB,GACtD,qBAAqB,GACrB,sBAAsB,GACtB,oBAAoB,GACpB,qBAAqB,GACrB,uBAAuB,CAAC;AA4D1B;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,gBAAgB,GAAG;IAAC,KAAK,CAAC,EAAE,yBAAyB,CAAA;CAAC,EAAE,KAAK,EAAE,CAAC,MAkFhG"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
2
|
/** style props to for flexbox container properties */
|
|
3
3
|
export declare type FlexStyleProps = {
|
|
4
4
|
/** sets `align-items` property */
|
|
5
|
-
alignItems?:
|
|
5
|
+
alignItems?: Property.AlignItems;
|
|
6
6
|
/** sets `align-content` property */
|
|
7
|
-
alignContent?:
|
|
7
|
+
alignContent?: Property.AlignContent;
|
|
8
8
|
/**
|
|
9
9
|
* sets `display` property
|
|
10
10
|
* @default 'flex'
|
|
11
11
|
* */
|
|
12
12
|
display?: 'flex' | 'inline-flex';
|
|
13
13
|
/** sets `justify-items` property */
|
|
14
|
-
justifyItems?:
|
|
14
|
+
justifyItems?: Property.JustifyItems;
|
|
15
15
|
/** sets `justify-content` property */
|
|
16
|
-
justifyContent?:
|
|
16
|
+
justifyContent?: Property.JustifyContent;
|
|
17
17
|
/** sets `flex-wrap` property */
|
|
18
|
-
flexWrap?:
|
|
18
|
+
flexWrap?: Property.FlexWrap;
|
|
19
19
|
/** sets `flex-direction` property */
|
|
20
|
-
flexDirection?:
|
|
20
|
+
flexDirection?: Property.FlexDirection;
|
|
21
21
|
};
|
|
22
22
|
/**
|
|
23
23
|
* A style prop function that takes component props and returns flexbox styles.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flex.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/flex.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"flex.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/flex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAEjC,sDAAsD;AACtD,oBAAY,cAAc,GAAG;IAC3B,kCAAkC;IAClC,UAAU,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC;IACjC,oCAAoC;IACpC,YAAY,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC;IACrC;;;SAGK;IACL,OAAO,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;IACjC,oCAAoC;IACpC,YAAY,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC;IACrC,sCAAsC;IACtC,cAAc,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC;IACzC,gCAAgC;IAChC,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC7B,qCAAqC;IACrC,aAAa,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC;CACxC,CAAC;AAYF;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,cAAc,EAAE,KAAK,EAAE,CAAC,MAWtD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
2
|
/** style props to for flexbox item properties */
|
|
3
3
|
export declare type FlexItemStyleProps = {
|
|
4
4
|
/** sets `flex` property */
|
|
@@ -10,11 +10,11 @@ export declare type FlexItemStyleProps = {
|
|
|
10
10
|
/** sets `flex-basis` property */
|
|
11
11
|
flexBasis?: number | string;
|
|
12
12
|
/** sets `justify-self` property */
|
|
13
|
-
justifySelf?:
|
|
13
|
+
justifySelf?: Property.JustifySelf;
|
|
14
14
|
/** sets `align-self` property */
|
|
15
|
-
alignSelf?:
|
|
15
|
+
alignSelf?: Property.AlignSelf;
|
|
16
16
|
/** sets `order` property */
|
|
17
|
-
order?:
|
|
17
|
+
order?: Property.Order;
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
20
20
|
* A style prop function that takes component props and returns flexbox item styles.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flexItem.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/flexItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"flexItem.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/flexItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAEjC,iDAAiD;AACjD,oBAAY,kBAAkB,GAAG;IAC/B,2BAA2B;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,kCAAkC;IAClC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,mCAAmC;IACnC,WAAW,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC;IACnC,iCAAiC;IACjC,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B,4BAA4B;IAC5B,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC;CACxB,CAAC;AAaF;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,kBAAkB,EAAE,KAAK,EAAE,CAAC,MAW9D"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
2
|
/** style props to for layout properties */
|
|
3
3
|
export declare type LayoutStyleProps = {
|
|
4
4
|
/** sets `display` property */
|
|
5
|
-
display?:
|
|
5
|
+
display?: Property.Display;
|
|
6
6
|
/** sets `height` property */
|
|
7
7
|
height?: number | string;
|
|
8
8
|
/** sets `list-style property */
|
|
9
|
-
listStyle?:
|
|
9
|
+
listStyle?: Property.ListStyle;
|
|
10
10
|
/** sets `max-height` property */
|
|
11
11
|
maxHeight?: number | string;
|
|
12
12
|
/** sets `max-width` property */
|
|
@@ -16,13 +16,13 @@ export declare type LayoutStyleProps = {
|
|
|
16
16
|
/** sets `min-width` property */
|
|
17
17
|
minWidth?: number | string;
|
|
18
18
|
/** sets `overflow` property */
|
|
19
|
-
overflow?:
|
|
19
|
+
overflow?: Property.Overflow;
|
|
20
20
|
/** sets `overflow-x` property */
|
|
21
|
-
overflowX?:
|
|
21
|
+
overflowX?: Property.OverflowX;
|
|
22
22
|
/** sets `overflow-y` property */
|
|
23
|
-
overflowY?:
|
|
23
|
+
overflowY?: Property.OverflowY;
|
|
24
24
|
/** sets `vertical-align` property */
|
|
25
|
-
verticalAlign?:
|
|
25
|
+
verticalAlign?: Property.VerticalAlign;
|
|
26
26
|
/** sets `width` property */
|
|
27
27
|
width?: number | string;
|
|
28
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/layout.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAEjC,2CAA2C;AAC3C,oBAAY,gBAAgB,GAAG;IAC7B,8BAA8B;IAC9B,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC;IAC3B,6BAA6B;IAC7B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,gCAAgC;IAChC,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC7B,iCAAiC;IACjC,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B,iCAAiC;IACjC,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B,qCAAqC;IACrC,aAAa,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC;IACvC,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB,CAAC;AAiBF;;;;;;;;;;;;GAYG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,gBAAgB,EAAE,KAAK,EAAE,CAAC,MAW1D"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PartialEmotionCanvasTheme } from '@workday/canvas-kit-react/common';
|
|
2
|
-
import {
|
|
2
|
+
import { Property } from 'csstype';
|
|
3
3
|
/** style props to for standard position properties */
|
|
4
4
|
export declare type PositionStandardProps = {
|
|
5
5
|
/** sets `position` property */
|
|
6
|
-
position?:
|
|
6
|
+
position?: Property.Position;
|
|
7
7
|
/** sets `zIndex` property */
|
|
8
|
-
zIndex?:
|
|
8
|
+
zIndex?: Property.ZIndex;
|
|
9
9
|
/** sets `top` property */
|
|
10
10
|
top?: number | string;
|
|
11
11
|
/** sets `right` property (no bidirectional support) */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/position.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EAE1B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/position.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EAE1B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAEjC,sDAAsD;AACtD,oBAAY,qBAAqB,GAAG;IAClC,gCAAgC;IAChC,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC7B,8BAA8B;IAC9B,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC;IACzB,2BAA2B;IAC3B,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,oDAAoD;IACpD,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACnC,oDAAoD;IACpD,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAClC,CAAC;AA0BF,oBAAY,kBAAkB,GAAG,qBAAqB,GAAG,oBAAoB,CAAC;AAE9E;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,kBAAkB,GAAG;IAAC,KAAK,CAAC,EAAE,yBAAyB,CAAA;CAAC,EACzF,KAAK,EAAE,CAAC,MAyBT"}
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
useTheme,
|
|
11
11
|
} from '@workday/canvas-kit-react/common';
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import {Property} from 'csstype';
|
|
14
14
|
|
|
15
15
|
/** style props to set the border properties */
|
|
16
16
|
export type BorderShorthandStyleProps = {
|
|
@@ -57,15 +57,15 @@ export type BorderRadiusStyleProps = {
|
|
|
57
57
|
/** style props to set the border style properties */
|
|
58
58
|
export type BorderLineStyleProps = {
|
|
59
59
|
/** sets `border-style` property */
|
|
60
|
-
borderStyle?:
|
|
60
|
+
borderStyle?: Property.Border;
|
|
61
61
|
/** sets `border-top-style` property */
|
|
62
|
-
borderTopStyle?:
|
|
62
|
+
borderTopStyle?: Property.Border;
|
|
63
63
|
/** sets `border-right-style` property (no bidirectional support) */
|
|
64
|
-
borderRightStyle?:
|
|
64
|
+
borderRightStyle?: Property.Border;
|
|
65
65
|
/** sets `border-bottom-style` property */
|
|
66
|
-
borderBottomStyle?:
|
|
66
|
+
borderBottomStyle?: Property.Border;
|
|
67
67
|
/** sets `border-left-style` property (no bidirectional support) */
|
|
68
|
-
borderLeftStyle?:
|
|
68
|
+
borderLeftStyle?: Property.Border;
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
/** style props to set the border width properties */
|
|
@@ -88,7 +88,7 @@ export type BorderLogicalStyleProps = {
|
|
|
88
88
|
/** sets `border-left-color` property (bidirectional support) */
|
|
89
89
|
borderInlineStartColor?: CanvasColor | (string & {});
|
|
90
90
|
/** sets `border-left-style` property (bidirectional support) */
|
|
91
|
-
borderInlineStartStyle?:
|
|
91
|
+
borderInlineStartStyle?: Property.Border;
|
|
92
92
|
/** sets `border-left-width` property (bidirectional support) */
|
|
93
93
|
borderInlineStartWidth?: string | number;
|
|
94
94
|
/** sets `border-right` property (bidirectional support) */
|
|
@@ -96,7 +96,7 @@ export type BorderLogicalStyleProps = {
|
|
|
96
96
|
/** sets `border-right-color` property (bidirectional support) */
|
|
97
97
|
borderInlineEndColor?: CanvasColor | (string & {});
|
|
98
98
|
/** sets `border-right-style` property (bidirectional support) */
|
|
99
|
-
borderInlineEndStyle?:
|
|
99
|
+
borderInlineEndStyle?: Property.Border;
|
|
100
100
|
/** sets `border-right-width` property (bidirectional support) */
|
|
101
101
|
borderInlineEndWidth?: string | number;
|
|
102
102
|
};
|
package/layout/lib/utils/flex.ts
CHANGED
|
@@ -1,31 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
PropertyAlignItems,
|
|
3
|
-
PropertyAlignContent,
|
|
4
|
-
PropertyJustifyItems,
|
|
5
|
-
PropertyJustifyContent,
|
|
6
|
-
PropertyFlexWrap,
|
|
7
|
-
PropertyFlexDirection,
|
|
8
|
-
} from './types';
|
|
1
|
+
import {Property} from 'csstype';
|
|
9
2
|
|
|
10
3
|
/** style props to for flexbox container properties */
|
|
11
4
|
export type FlexStyleProps = {
|
|
12
5
|
/** sets `align-items` property */
|
|
13
|
-
alignItems?:
|
|
6
|
+
alignItems?: Property.AlignItems;
|
|
14
7
|
/** sets `align-content` property */
|
|
15
|
-
alignContent?:
|
|
8
|
+
alignContent?: Property.AlignContent;
|
|
16
9
|
/**
|
|
17
10
|
* sets `display` property
|
|
18
11
|
* @default 'flex'
|
|
19
12
|
* */
|
|
20
13
|
display?: 'flex' | 'inline-flex';
|
|
21
14
|
/** sets `justify-items` property */
|
|
22
|
-
justifyItems?:
|
|
15
|
+
justifyItems?: Property.JustifyItems;
|
|
23
16
|
/** sets `justify-content` property */
|
|
24
|
-
justifyContent?:
|
|
17
|
+
justifyContent?: Property.JustifyContent;
|
|
25
18
|
/** sets `flex-wrap` property */
|
|
26
|
-
flexWrap?:
|
|
19
|
+
flexWrap?: Property.FlexWrap;
|
|
27
20
|
/** sets `flex-direction` property */
|
|
28
|
-
flexDirection?:
|
|
21
|
+
flexDirection?: Property.FlexDirection;
|
|
29
22
|
};
|
|
30
23
|
|
|
31
24
|
const flexProps = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {Property} from 'csstype';
|
|
2
2
|
|
|
3
3
|
/** style props to for flexbox item properties */
|
|
4
4
|
export type FlexItemStyleProps = {
|
|
@@ -11,11 +11,11 @@ export type FlexItemStyleProps = {
|
|
|
11
11
|
/** sets `flex-basis` property */
|
|
12
12
|
flexBasis?: number | string;
|
|
13
13
|
/** sets `justify-self` property */
|
|
14
|
-
justifySelf?:
|
|
14
|
+
justifySelf?: Property.JustifySelf;
|
|
15
15
|
/** sets `align-self` property */
|
|
16
|
-
alignSelf?:
|
|
16
|
+
alignSelf?: Property.AlignSelf;
|
|
17
17
|
/** sets `order` property */
|
|
18
|
-
order?:
|
|
18
|
+
order?: Property.Order;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
/** style props to for flexbox item properties */
|
|
@@ -1,20 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
PropertyDisplay,
|
|
3
|
-
PropertyListStyle,
|
|
4
|
-
PropertyOverflow,
|
|
5
|
-
PropertyOverflowX,
|
|
6
|
-
PropertyOverflowY,
|
|
7
|
-
PropertyVerticalAlign,
|
|
8
|
-
} from './types';
|
|
1
|
+
import {Property} from 'csstype';
|
|
9
2
|
|
|
10
3
|
/** style props to for layout properties */
|
|
11
4
|
export type LayoutStyleProps = {
|
|
12
5
|
/** sets `display` property */
|
|
13
|
-
display?:
|
|
6
|
+
display?: Property.Display;
|
|
14
7
|
/** sets `height` property */
|
|
15
8
|
height?: number | string;
|
|
16
9
|
/** sets `list-style property */
|
|
17
|
-
listStyle?:
|
|
10
|
+
listStyle?: Property.ListStyle;
|
|
18
11
|
/** sets `max-height` property */
|
|
19
12
|
maxHeight?: number | string;
|
|
20
13
|
/** sets `max-width` property */
|
|
@@ -24,13 +17,13 @@ export type LayoutStyleProps = {
|
|
|
24
17
|
/** sets `min-width` property */
|
|
25
18
|
minWidth?: number | string;
|
|
26
19
|
/** sets `overflow` property */
|
|
27
|
-
overflow?:
|
|
20
|
+
overflow?: Property.Overflow;
|
|
28
21
|
/** sets `overflow-x` property */
|
|
29
|
-
overflowX?:
|
|
22
|
+
overflowX?: Property.OverflowX;
|
|
30
23
|
/** sets `overflow-y` property */
|
|
31
|
-
overflowY?:
|
|
24
|
+
overflowY?: Property.OverflowY;
|
|
32
25
|
/** sets `vertical-align` property */
|
|
33
|
-
verticalAlign?:
|
|
26
|
+
verticalAlign?: Property.VerticalAlign;
|
|
34
27
|
/** sets `width` property */
|
|
35
28
|
width?: number | string;
|
|
36
29
|
};
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
PartialEmotionCanvasTheme,
|
|
4
4
|
useTheme,
|
|
5
5
|
} from '@workday/canvas-kit-react/common';
|
|
6
|
-
import {
|
|
6
|
+
import {Property} from 'csstype';
|
|
7
7
|
|
|
8
8
|
/** style props to for standard position properties */
|
|
9
9
|
export type PositionStandardProps = {
|
|
10
10
|
/** sets `position` property */
|
|
11
|
-
position?:
|
|
11
|
+
position?: Property.Position;
|
|
12
12
|
/** sets `zIndex` property */
|
|
13
|
-
zIndex?:
|
|
13
|
+
zIndex?: Property.ZIndex;
|
|
14
14
|
/** sets `top` property */
|
|
15
15
|
top?: number | string;
|
|
16
16
|
/** sets `right` property (no bidirectional support) */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-react",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.125-next.4+9fedde9c",
|
|
4
4
|
"description": "The parent module that contains all Workday Canvas Kit React components",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -49,12 +49,13 @@
|
|
|
49
49
|
"@emotion/styled": "^11.6.0",
|
|
50
50
|
"@popperjs/core": "^2.5.4",
|
|
51
51
|
"@workday/canvas-colors-web": "^2.0.0",
|
|
52
|
-
"@workday/canvas-kit-labs-react": "^8.0.0-alpha.
|
|
53
|
-
"@workday/canvas-kit-popup-stack": "^8.0.0-alpha.
|
|
54
|
-
"@workday/canvas-kit-preview-react": "^8.0.0-alpha.
|
|
52
|
+
"@workday/canvas-kit-labs-react": "^8.0.0-alpha.125-next.4+9fedde9c",
|
|
53
|
+
"@workday/canvas-kit-popup-stack": "^8.0.0-alpha.125-next.4+9fedde9c",
|
|
54
|
+
"@workday/canvas-kit-preview-react": "^8.0.0-alpha.125-next.4+9fedde9c",
|
|
55
55
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
56
56
|
"@workday/design-assets-types": "^0.2.8",
|
|
57
57
|
"chroma-js": "^2.1.0",
|
|
58
|
+
"csstype": "^3.0.2",
|
|
58
59
|
"element-closest": "^3.0.2",
|
|
59
60
|
"lodash": "^4.17.14",
|
|
60
61
|
"polished": "^4.1.3",
|
|
@@ -69,5 +70,5 @@
|
|
|
69
70
|
"@workday/canvas-accent-icons-web": "^3.0.0",
|
|
70
71
|
"@workday/canvas-applet-icons-web": "^2.0.0"
|
|
71
72
|
},
|
|
72
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "9fedde9cca3026cd0435449480d5004fc929374b"
|
|
73
74
|
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
declare type Globals = '-moz-initial' | 'inherit' | 'initial' | 'revert' | 'unset';
|
|
2
|
-
declare type GlobalsNumber = Globals | number;
|
|
3
|
-
declare type SelfPosition = 'center' | 'end' | 'flex-end' | 'flex-start' | 'self-end' | 'self-start' | 'start';
|
|
4
|
-
declare type DisplayOutside = 'block' | 'inline' | 'run-in';
|
|
5
|
-
declare type DisplayInside = '-ms-flexbox' | '-ms-grid' | '-webkit-flex' | 'flex' | 'flow' | 'flow-root' | 'grid' | 'ruby' | 'table';
|
|
6
|
-
declare type DisplayInternal = 'ruby-base' | 'ruby-base-container' | 'ruby-text' | 'ruby-text-container' | 'table-caption' | 'table-cell' | 'table-column' | 'table-column-group' | 'table-footer-group' | 'table-header-group' | 'table-row' | 'table-row-group';
|
|
7
|
-
declare type DisplayLegacy = '-ms-inline-flexbox' | '-ms-inline-grid' | '-webkit-inline-flex' | 'inline-block' | 'inline-flex' | 'inline-grid' | 'inline-list-item' | 'inline-table';
|
|
8
|
-
declare type LineStyle = 'dashed' | 'dotted' | 'double' | 'groove' | 'hidden' | 'inset' | 'none' | 'outset' | 'ridge' | 'solid';
|
|
9
|
-
declare type ContentDistribution = 'space-around' | 'space-between' | 'space-evenly' | 'stretch';
|
|
10
|
-
declare type ContentPosition = 'center' | 'end' | 'flex-end' | 'flex-start' | 'start';
|
|
11
|
-
export declare type PropertyBorder = Globals | LineStyle | (string & {});
|
|
12
|
-
export declare type PropertyJustifySelf = Globals | SelfPosition | 'auto' | 'baseline' | 'left' | 'normal' | 'right' | 'stretch' | (string & {});
|
|
13
|
-
export declare type PropertyAlignSelf = Globals | SelfPosition | 'auto' | 'baseline' | 'normal' | 'stretch' | (string & {});
|
|
14
|
-
export declare type PropertyOrder = GlobalsNumber;
|
|
15
|
-
export declare type PropertyDisplay = Globals | DisplayOutside | DisplayInside | DisplayInternal | DisplayLegacy | 'contents' | 'list-item' | 'none' | (string & {});
|
|
16
|
-
export declare type PropertyListStyle = Globals | 'inside' | 'none' | 'outside' | (string & {});
|
|
17
|
-
export declare type PropertyOverflow = Globals | '-moz-hidden-unscrollable' | 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible' | (string & {});
|
|
18
|
-
export declare type PropertyOverflowX = Globals | '-moz-hidden-unscrollable' | 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible';
|
|
19
|
-
export declare type PropertyOverflowY = Globals | '-moz-hidden-unscrollable' | 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible';
|
|
20
|
-
export declare type PropertyVerticalAlign = Globals | 'baseline' | 'bottom' | 'middle' | 'sub' | 'super' | 'text-bottom' | 'text-top' | 'top' | (string & {});
|
|
21
|
-
export declare type PropertyPosition = Globals | '-webkit-sticky' | 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky';
|
|
22
|
-
export declare type PropertyZIndex = GlobalsNumber | 'auto';
|
|
23
|
-
export declare type PropertyAlignItems = Globals | SelfPosition | 'baseline' | 'normal' | 'stretch' | (string & {});
|
|
24
|
-
export declare type PropertyAlignContent = Globals | ContentDistribution | ContentPosition | 'baseline' | 'normal' | (string & {});
|
|
25
|
-
export declare type PropertyJustifyItems = Globals | SelfPosition | 'baseline' | 'left' | 'legacy' | 'normal' | 'right' | 'stretch' | (string & {});
|
|
26
|
-
export declare type PropertyJustifyContent = Globals | ContentDistribution | ContentPosition | 'left' | 'normal' | 'right' | (string & {});
|
|
27
|
-
export declare type PropertyFlexWrap = Globals | 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
28
|
-
export declare type PropertyFlexDirection = Globals | 'column' | 'column-reverse' | 'row' | 'row-reverse';
|
|
29
|
-
export {};
|
|
30
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/types.ts"],"names":[],"mappings":"AAGA,aAAK,OAAO,GAAG,cAAc,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC3E,aAAK,aAAa,GAAG,OAAO,GAAG,MA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UAAU,GACV,QAAQ,GACR,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB,oBAAY,oBAAoB,GAC5B,OAAO,GACP,YAAY,GACZ,UAAU,GACV,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,SAAS,GACT,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB,oBAAY,sBAAsB,GAC9B,OAAO,GACP,mBAAmB,GACnB,eAAe,GACf,MAAM,GACN,QAAQ,GACR,OAAO,GACP,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB,oBAAY,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,cAAc,CAAC;AAE5E,oBAAY,qBAAqB,GAAG,OAAO,GAAG,QAAQ,GAAG,gBAAgB,GAAG,KAAK,GAAG,aAAa,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
declare type Globals = '-moz-initial' | 'inherit' | 'initial' | 'revert' | 'unset';
|
|
2
|
-
declare type GlobalsNumber = Globals | number;
|
|
3
|
-
declare type SelfPosition = 'center' | 'end' | 'flex-end' | 'flex-start' | 'self-end' | 'self-start' | 'start';
|
|
4
|
-
declare type DisplayOutside = 'block' | 'inline' | 'run-in';
|
|
5
|
-
declare type DisplayInside = '-ms-flexbox' | '-ms-grid' | '-webkit-flex' | 'flex' | 'flow' | 'flow-root' | 'grid' | 'ruby' | 'table';
|
|
6
|
-
declare type DisplayInternal = 'ruby-base' | 'ruby-base-container' | 'ruby-text' | 'ruby-text-container' | 'table-caption' | 'table-cell' | 'table-column' | 'table-column-group' | 'table-footer-group' | 'table-header-group' | 'table-row' | 'table-row-group';
|
|
7
|
-
declare type DisplayLegacy = '-ms-inline-flexbox' | '-ms-inline-grid' | '-webkit-inline-flex' | 'inline-block' | 'inline-flex' | 'inline-grid' | 'inline-list-item' | 'inline-table';
|
|
8
|
-
declare type LineStyle = 'dashed' | 'dotted' | 'double' | 'groove' | 'hidden' | 'inset' | 'none' | 'outset' | 'ridge' | 'solid';
|
|
9
|
-
declare type ContentDistribution = 'space-around' | 'space-between' | 'space-evenly' | 'stretch';
|
|
10
|
-
declare type ContentPosition = 'center' | 'end' | 'flex-end' | 'flex-start' | 'start';
|
|
11
|
-
export declare type PropertyBorder = Globals | LineStyle | (string & {});
|
|
12
|
-
export declare type PropertyJustifySelf = Globals | SelfPosition | 'auto' | 'baseline' | 'left' | 'normal' | 'right' | 'stretch' | (string & {});
|
|
13
|
-
export declare type PropertyAlignSelf = Globals | SelfPosition | 'auto' | 'baseline' | 'normal' | 'stretch' | (string & {});
|
|
14
|
-
export declare type PropertyOrder = GlobalsNumber;
|
|
15
|
-
export declare type PropertyDisplay = Globals | DisplayOutside | DisplayInside | DisplayInternal | DisplayLegacy | 'contents' | 'list-item' | 'none' | (string & {});
|
|
16
|
-
export declare type PropertyListStyle = Globals | 'inside' | 'none' | 'outside' | (string & {});
|
|
17
|
-
export declare type PropertyOverflow = Globals | '-moz-hidden-unscrollable' | 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible' | (string & {});
|
|
18
|
-
export declare type PropertyOverflowX = Globals | '-moz-hidden-unscrollable' | 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible';
|
|
19
|
-
export declare type PropertyOverflowY = Globals | '-moz-hidden-unscrollable' | 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible';
|
|
20
|
-
export declare type PropertyVerticalAlign = Globals | 'baseline' | 'bottom' | 'middle' | 'sub' | 'super' | 'text-bottom' | 'text-top' | 'top' | (string & {});
|
|
21
|
-
export declare type PropertyPosition = Globals | '-webkit-sticky' | 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky';
|
|
22
|
-
export declare type PropertyZIndex = GlobalsNumber | 'auto';
|
|
23
|
-
export declare type PropertyAlignItems = Globals | SelfPosition | 'baseline' | 'normal' | 'stretch' | (string & {});
|
|
24
|
-
export declare type PropertyAlignContent = Globals | ContentDistribution | ContentPosition | 'baseline' | 'normal' | (string & {});
|
|
25
|
-
export declare type PropertyJustifyItems = Globals | SelfPosition | 'baseline' | 'left' | 'legacy' | 'normal' | 'right' | 'stretch' | (string & {});
|
|
26
|
-
export declare type PropertyJustifyContent = Globals | ContentDistribution | ContentPosition | 'left' | 'normal' | 'right' | (string & {});
|
|
27
|
-
export declare type PropertyFlexWrap = Globals | 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
28
|
-
export declare type PropertyFlexDirection = Globals | 'column' | 'column-reverse' | 'row' | 'row-reverse';
|
|
29
|
-
export {};
|
|
30
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/types.ts"],"names":[],"mappings":"AAGA,aAAK,OAAO,GAAG,cAAc,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC3E,aAAK,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC;AAEtC,aAAK,YAAY,GACb,QAAQ,GACR,KAAK,GACL,UAAU,GACV,YAAY,GACZ,UAAU,GACV,YAAY,GACZ,OAAO,CAAC;AAEZ,aAAK,cAAc,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEpD,aAAK,aAAa,GACd,aAAa,GACb,UAAU,GACV,cAAc,GACd,MAAM,GACN,MAAM,GACN,WAAW,GACX,MAAM,GACN,MAAM,GACN,OAAO,CAAC;AAEZ,aAAK,eAAe,GAChB,WAAW,GACX,qBAAqB,GACrB,WAAW,GACX,qBAAqB,GACrB,eAAe,GACf,YAAY,GACZ,cAAc,GACd,oBAAoB,GACpB,oBAAoB,GACpB,oBAAoB,GACpB,WAAW,GACX,iBAAiB,CAAC;AAEtB,aAAK,aAAa,GACd,oBAAoB,GACpB,iBAAiB,GACjB,qBAAqB,GACrB,cAAc,GACd,aAAa,GACb,aAAa,GACb,kBAAkB,GAClB,cAAc,CAAC;AAEnB,aAAK,SAAS,GACV,QAAQ,GACR,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ACP,0BAA0B,GAC1B,MAAM,GACN,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,SAAS,CAAC;AAEd,oBAAY,qBAAqB,GAC7B,OAAO,GACP,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,KAAK,GACL,OAAO,GACP,aAAa,GACb,UAAU,GACV,KAAK,GACL,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAGlB,oBAAY,gBAAgB,GACxB,OAAO,GACP,gBAAgB,GAChB,UAAU,GACV,OAAO,GACP,UAAU,GACV,QAAQ,GACR,QAAQ,CAAC;AAEb,oBAAY,cAAc,GAAG,aAAa,GAAG,MAAM,CAAC;AAGpD,oBAAY,kBAAkB,GAC1B,OAAO,GACP,YAAY,GACZ,UAAU,GACV,QAAQ,GACR,SAAS,GACT,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB,oBAAY,oBAAoB,GAC5B,OAAO,GACP,mBAAmB,GACnB,eAAe,GACf,UAAU,GACV,QAAQ,GACR,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB,oBAAY,oBAAoB,GAC5B,OAAO,GACP,YAAY,GACZ,UAAU,GACV,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,SAAS,GACT,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB,oBAAY,sBAAsB,GAC9B,OAAO,GACP,mBAAmB,GACnB,eAAe,GACf,MAAM,GACN,QAAQ,GACR,OAAO,GACP,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAElB,oBAAY,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,cAAc,CAAC;AAE5E,oBAAY,qBAAqB,GAAG,OAAO,GAAG,QAAQ,GAAG,gBAAgB,GAAG,KAAK,GAAG,aAAa,CAAC"}
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
// We're temporarily creating these types from csstype
|
|
2
|
-
// to improve type completion until we move to csstype v3.
|
|
3
|
-
|
|
4
|
-
type Globals = '-moz-initial' | 'inherit' | 'initial' | 'revert' | 'unset';
|
|
5
|
-
type GlobalsNumber = Globals | number;
|
|
6
|
-
|
|
7
|
-
type SelfPosition =
|
|
8
|
-
| 'center'
|
|
9
|
-
| 'end'
|
|
10
|
-
| 'flex-end'
|
|
11
|
-
| 'flex-start'
|
|
12
|
-
| 'self-end'
|
|
13
|
-
| 'self-start'
|
|
14
|
-
| 'start';
|
|
15
|
-
|
|
16
|
-
type DisplayOutside = 'block' | 'inline' | 'run-in';
|
|
17
|
-
|
|
18
|
-
type DisplayInside =
|
|
19
|
-
| '-ms-flexbox'
|
|
20
|
-
| '-ms-grid'
|
|
21
|
-
| '-webkit-flex'
|
|
22
|
-
| 'flex'
|
|
23
|
-
| 'flow'
|
|
24
|
-
| 'flow-root'
|
|
25
|
-
| 'grid'
|
|
26
|
-
| 'ruby'
|
|
27
|
-
| 'table';
|
|
28
|
-
|
|
29
|
-
type DisplayInternal =
|
|
30
|
-
| 'ruby-base'
|
|
31
|
-
| 'ruby-base-container'
|
|
32
|
-
| 'ruby-text'
|
|
33
|
-
| 'ruby-text-container'
|
|
34
|
-
| 'table-caption'
|
|
35
|
-
| 'table-cell'
|
|
36
|
-
| 'table-column'
|
|
37
|
-
| 'table-column-group'
|
|
38
|
-
| 'table-footer-group'
|
|
39
|
-
| 'table-header-group'
|
|
40
|
-
| 'table-row'
|
|
41
|
-
| 'table-row-group';
|
|
42
|
-
|
|
43
|
-
type DisplayLegacy =
|
|
44
|
-
| '-ms-inline-flexbox'
|
|
45
|
-
| '-ms-inline-grid'
|
|
46
|
-
| '-webkit-inline-flex'
|
|
47
|
-
| 'inline-block'
|
|
48
|
-
| 'inline-flex'
|
|
49
|
-
| 'inline-grid'
|
|
50
|
-
| 'inline-list-item'
|
|
51
|
-
| 'inline-table';
|
|
52
|
-
|
|
53
|
-
type LineStyle =
|
|
54
|
-
| 'dashed'
|
|
55
|
-
| 'dotted'
|
|
56
|
-
| 'double'
|
|
57
|
-
| 'groove'
|
|
58
|
-
| 'hidden'
|
|
59
|
-
| 'inset'
|
|
60
|
-
| 'none'
|
|
61
|
-
| 'outset'
|
|
62
|
-
| 'ridge'
|
|
63
|
-
| 'solid';
|
|
64
|
-
|
|
65
|
-
type ContentDistribution = 'space-around' | 'space-between' | 'space-evenly' | 'stretch';
|
|
66
|
-
type ContentPosition = 'center' | 'end' | 'flex-end' | 'flex-start' | 'start';
|
|
67
|
-
|
|
68
|
-
// Border
|
|
69
|
-
export type PropertyBorder = Globals | LineStyle | (string & {});
|
|
70
|
-
|
|
71
|
-
// Flex Item
|
|
72
|
-
export type PropertyJustifySelf =
|
|
73
|
-
| Globals
|
|
74
|
-
| SelfPosition
|
|
75
|
-
| 'auto'
|
|
76
|
-
| 'baseline'
|
|
77
|
-
| 'left'
|
|
78
|
-
| 'normal'
|
|
79
|
-
| 'right'
|
|
80
|
-
| 'stretch'
|
|
81
|
-
| (string & {});
|
|
82
|
-
|
|
83
|
-
export type PropertyAlignSelf =
|
|
84
|
-
| Globals
|
|
85
|
-
| SelfPosition
|
|
86
|
-
| 'auto'
|
|
87
|
-
| 'baseline'
|
|
88
|
-
| 'normal'
|
|
89
|
-
| 'stretch'
|
|
90
|
-
| (string & {});
|
|
91
|
-
|
|
92
|
-
export type PropertyOrder = GlobalsNumber;
|
|
93
|
-
|
|
94
|
-
// Layout
|
|
95
|
-
export type PropertyDisplay =
|
|
96
|
-
| Globals
|
|
97
|
-
| DisplayOutside
|
|
98
|
-
| DisplayInside
|
|
99
|
-
| DisplayInternal
|
|
100
|
-
| DisplayLegacy
|
|
101
|
-
| 'contents'
|
|
102
|
-
| 'list-item'
|
|
103
|
-
| 'none'
|
|
104
|
-
| (string & {});
|
|
105
|
-
|
|
106
|
-
export type PropertyListStyle = Globals | 'inside' | 'none' | 'outside' | (string & {});
|
|
107
|
-
|
|
108
|
-
export type PropertyOverflow =
|
|
109
|
-
| Globals
|
|
110
|
-
| '-moz-hidden-unscrollable'
|
|
111
|
-
| 'auto'
|
|
112
|
-
| 'clip'
|
|
113
|
-
| 'hidden'
|
|
114
|
-
| 'scroll'
|
|
115
|
-
| 'visible'
|
|
116
|
-
| (string & {});
|
|
117
|
-
|
|
118
|
-
export type PropertyOverflowX =
|
|
119
|
-
| Globals
|
|
120
|
-
| '-moz-hidden-unscrollable'
|
|
121
|
-
| 'auto'
|
|
122
|
-
| 'clip'
|
|
123
|
-
| 'hidden'
|
|
124
|
-
| 'scroll'
|
|
125
|
-
| 'visible';
|
|
126
|
-
|
|
127
|
-
export type PropertyOverflowY =
|
|
128
|
-
| Globals
|
|
129
|
-
| '-moz-hidden-unscrollable'
|
|
130
|
-
| 'auto'
|
|
131
|
-
| 'clip'
|
|
132
|
-
| 'hidden'
|
|
133
|
-
| 'scroll'
|
|
134
|
-
| 'visible';
|
|
135
|
-
|
|
136
|
-
export type PropertyVerticalAlign =
|
|
137
|
-
| Globals
|
|
138
|
-
| 'baseline'
|
|
139
|
-
| 'bottom'
|
|
140
|
-
| 'middle'
|
|
141
|
-
| 'sub'
|
|
142
|
-
| 'super'
|
|
143
|
-
| 'text-bottom'
|
|
144
|
-
| 'text-top'
|
|
145
|
-
| 'top'
|
|
146
|
-
| (string & {});
|
|
147
|
-
|
|
148
|
-
// Position
|
|
149
|
-
export type PropertyPosition =
|
|
150
|
-
| Globals
|
|
151
|
-
| '-webkit-sticky'
|
|
152
|
-
| 'absolute'
|
|
153
|
-
| 'fixed'
|
|
154
|
-
| 'relative'
|
|
155
|
-
| 'static'
|
|
156
|
-
| 'sticky';
|
|
157
|
-
|
|
158
|
-
export type PropertyZIndex = GlobalsNumber | 'auto';
|
|
159
|
-
|
|
160
|
-
// Flex
|
|
161
|
-
export type PropertyAlignItems =
|
|
162
|
-
| Globals
|
|
163
|
-
| SelfPosition
|
|
164
|
-
| 'baseline'
|
|
165
|
-
| 'normal'
|
|
166
|
-
| 'stretch'
|
|
167
|
-
| (string & {});
|
|
168
|
-
|
|
169
|
-
export type PropertyAlignContent =
|
|
170
|
-
| Globals
|
|
171
|
-
| ContentDistribution
|
|
172
|
-
| ContentPosition
|
|
173
|
-
| 'baseline'
|
|
174
|
-
| 'normal'
|
|
175
|
-
| (string & {});
|
|
176
|
-
|
|
177
|
-
export type PropertyJustifyItems =
|
|
178
|
-
| Globals
|
|
179
|
-
| SelfPosition
|
|
180
|
-
| 'baseline'
|
|
181
|
-
| 'left'
|
|
182
|
-
| 'legacy'
|
|
183
|
-
| 'normal'
|
|
184
|
-
| 'right'
|
|
185
|
-
| 'stretch'
|
|
186
|
-
| (string & {});
|
|
187
|
-
|
|
188
|
-
export type PropertyJustifyContent =
|
|
189
|
-
| Globals
|
|
190
|
-
| ContentDistribution
|
|
191
|
-
| ContentPosition
|
|
192
|
-
| 'left'
|
|
193
|
-
| 'normal'
|
|
194
|
-
| 'right'
|
|
195
|
-
| (string & {});
|
|
196
|
-
|
|
197
|
-
export type PropertyFlexWrap = Globals | 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
198
|
-
|
|
199
|
-
export type PropertyFlexDirection = Globals | 'column' | 'column-reverse' | 'row' | 'row-reverse';
|