@workday/canvas-kit-react 8.0.0-alpha.204-next.4 → 8.0.0-alpha.216-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/common/lib/utils/elements.ts +4 -4
- package/dist/commonjs/card/lib/Card.d.ts +1 -1
- package/dist/commonjs/card/lib/CardBody.d.ts +1 -1
- package/dist/commonjs/card/lib/CardBody.d.ts.map +1 -1
- package/dist/commonjs/common/lib/utils/elements.d.ts +1 -1
- package/dist/commonjs/common/lib/utils/elements.d.ts.map +1 -1
- package/dist/commonjs/common/lib/utils/elements.js +3 -3
- package/dist/commonjs/dialog/lib/Dialog.d.ts +1 -1
- package/dist/commonjs/icon/lib/SystemIcon.d.ts +1 -1
- package/dist/commonjs/icon/lib/SystemIcon.d.ts.map +1 -1
- package/dist/commonjs/layout/index.d.ts +8 -4
- package/dist/commonjs/layout/index.d.ts.map +1 -1
- package/dist/commonjs/layout/index.js +10 -2
- package/dist/commonjs/layout/lib/Box.d.ts +6 -4
- package/dist/commonjs/layout/lib/Box.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/Box.js +8 -9
- package/dist/commonjs/layout/lib/Flex.d.ts +5 -2
- package/dist/commonjs/layout/lib/Flex.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/Flex.js +5 -1
- package/dist/commonjs/layout/lib/Grid.d.ts +5 -6
- package/dist/commonjs/layout/lib/Grid.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/Grid.js +2 -2
- package/dist/commonjs/layout/lib/Stack.d.ts +4 -4
- package/dist/commonjs/layout/lib/utils/background.d.ts +44 -0
- package/dist/commonjs/layout/lib/utils/background.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/background.js +57 -0
- package/dist/commonjs/layout/lib/utils/border/color.d.ts +47 -0
- package/dist/commonjs/layout/lib/utils/border/color.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/border/color.js +42 -0
- package/dist/commonjs/layout/lib/utils/border/index.d.ts +26 -0
- package/dist/commonjs/layout/lib/utils/border/index.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/border/index.js +46 -0
- package/dist/commonjs/layout/lib/utils/border/lineStyle.d.ts +38 -0
- package/dist/commonjs/layout/lib/utils/border/lineStyle.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/border/lineStyle.js +52 -0
- package/dist/commonjs/layout/lib/utils/border/radius.d.ts +33 -0
- package/dist/commonjs/layout/lib/utils/border/radius.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/border/radius.js +32 -0
- package/dist/commonjs/layout/lib/utils/border/shorthand.d.ts +34 -0
- package/dist/commonjs/layout/lib/utils/border/shorthand.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/border/shorthand.js +42 -0
- package/dist/commonjs/layout/lib/utils/border/width.d.ts +34 -0
- package/dist/commonjs/layout/lib/utils/border/width.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/border/width.js +42 -0
- package/dist/commonjs/layout/lib/utils/buildStyleFns.d.ts +12 -0
- package/dist/commonjs/layout/lib/utils/buildStyleFns.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/buildStyleFns.js +90 -0
- package/dist/commonjs/layout/lib/utils/color.d.ts +23 -16
- package/dist/commonjs/layout/lib/utils/color.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/color.js +25 -49
- package/dist/commonjs/layout/lib/utils/depth.d.ts +17 -11
- package/dist/commonjs/layout/lib/utils/depth.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/depth.js +20 -20
- package/dist/commonjs/layout/lib/utils/flex.d.ts +31 -12
- package/dist/commonjs/layout/lib/utils/flex.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/flex.js +58 -25
- package/dist/commonjs/layout/lib/utils/flexItem.d.ts +18 -15
- package/dist/commonjs/layout/lib/utils/flexItem.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/flexItem.js +43 -26
- package/dist/commonjs/layout/lib/utils/grid.d.ts +40 -35
- package/dist/commonjs/layout/lib/utils/grid.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/grid.js +99 -72
- package/dist/commonjs/layout/lib/utils/gridItem.d.ts +17 -14
- package/dist/commonjs/layout/lib/utils/gridItem.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/gridItem.js +58 -30
- package/dist/commonjs/layout/lib/utils/layout.d.ts +47 -25
- package/dist/commonjs/layout/lib/utils/layout.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/layout.js +71 -33
- package/dist/commonjs/layout/lib/utils/other.d.ts +44 -2
- package/dist/commonjs/layout/lib/utils/other.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/other.js +101 -17
- package/dist/commonjs/layout/lib/utils/position.d.ts +37 -20
- package/dist/commonjs/layout/lib/utils/position.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/position.js +49 -66
- package/dist/commonjs/layout/lib/utils/space.d.ts +107 -51
- package/dist/commonjs/layout/lib/utils/space.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/space.js +98 -148
- package/dist/commonjs/layout/lib/utils/stack.d.ts +3 -6
- package/dist/commonjs/layout/lib/utils/stack.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/stack.js +13 -39
- package/dist/commonjs/layout/lib/utils/systemProps.d.ts +31 -0
- package/dist/commonjs/layout/lib/utils/systemProps.d.ts.map +1 -0
- package/dist/commonjs/layout/lib/utils/systemProps.js +2 -0
- package/dist/commonjs/layout/lib/utils/text.d.ts +33 -15
- package/dist/commonjs/layout/lib/utils/text.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/utils/text.js +74 -38
- package/dist/commonjs/modal/lib/Modal.d.ts +1 -1
- package/dist/commonjs/popup/lib/Popup.d.ts +1 -1
- package/dist/commonjs/popup/lib/PopupBody.d.ts +1 -1
- package/dist/commonjs/popup/lib/hooks/useReturnFocus.d.ts.map +1 -1
- package/dist/commonjs/popup/lib/hooks/useReturnFocus.js +102 -2
- package/dist/commonjs/tabs/lib/TabsItem.d.ts +1 -1
- package/dist/commonjs/tokens/lib/colors.types.d.ts +4 -6
- package/dist/commonjs/tokens/lib/colors.types.d.ts.map +1 -1
- package/dist/es6/card/lib/Card.d.ts +1 -1
- package/dist/es6/card/lib/CardBody.d.ts +1 -1
- package/dist/es6/card/lib/CardBody.d.ts.map +1 -1
- package/dist/es6/common/lib/utils/elements.d.ts +1 -1
- package/dist/es6/common/lib/utils/elements.d.ts.map +1 -1
- package/dist/es6/common/lib/utils/elements.js +3 -3
- package/dist/es6/dialog/lib/Dialog.d.ts +1 -1
- package/dist/es6/icon/lib/SystemIcon.d.ts +1 -1
- package/dist/es6/icon/lib/SystemIcon.d.ts.map +1 -1
- package/dist/es6/layout/index.d.ts +8 -4
- package/dist/es6/layout/index.d.ts.map +1 -1
- package/dist/es6/layout/index.js +7 -1
- package/dist/es6/layout/lib/Box.d.ts +6 -4
- package/dist/es6/layout/lib/Box.d.ts.map +1 -1
- package/dist/es6/layout/lib/Box.js +8 -9
- package/dist/es6/layout/lib/Flex.d.ts +5 -2
- package/dist/es6/layout/lib/Flex.d.ts.map +1 -1
- package/dist/es6/layout/lib/Flex.js +5 -1
- package/dist/es6/layout/lib/Grid.d.ts +5 -6
- package/dist/es6/layout/lib/Grid.d.ts.map +1 -1
- package/dist/es6/layout/lib/Grid.js +2 -2
- package/dist/es6/layout/lib/Stack.d.ts +4 -4
- package/dist/es6/layout/lib/utils/background.d.ts +44 -0
- package/dist/es6/layout/lib/utils/background.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/background.js +54 -0
- package/dist/es6/layout/lib/utils/border/color.d.ts +47 -0
- package/dist/es6/layout/lib/utils/border/color.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/border/color.js +39 -0
- package/dist/es6/layout/lib/utils/border/index.d.ts +26 -0
- package/dist/es6/layout/lib/utils/border/index.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/border/index.js +43 -0
- package/dist/es6/layout/lib/utils/border/lineStyle.d.ts +38 -0
- package/dist/es6/layout/lib/utils/border/lineStyle.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/border/lineStyle.js +49 -0
- package/dist/es6/layout/lib/utils/border/radius.d.ts +33 -0
- package/dist/es6/layout/lib/utils/border/radius.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/border/radius.js +29 -0
- package/dist/es6/layout/lib/utils/border/shorthand.d.ts +34 -0
- package/dist/es6/layout/lib/utils/border/shorthand.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/border/shorthand.js +39 -0
- package/dist/es6/layout/lib/utils/border/width.d.ts +34 -0
- package/dist/es6/layout/lib/utils/border/width.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/border/width.js +39 -0
- package/dist/es6/layout/lib/utils/buildStyleFns.d.ts +12 -0
- package/dist/es6/layout/lib/utils/buildStyleFns.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/buildStyleFns.js +85 -0
- package/dist/es6/layout/lib/utils/color.d.ts +23 -16
- package/dist/es6/layout/lib/utils/color.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/color.js +24 -47
- package/dist/es6/layout/lib/utils/depth.d.ts +17 -11
- package/dist/es6/layout/lib/utils/depth.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/depth.js +19 -18
- package/dist/es6/layout/lib/utils/flex.d.ts +31 -12
- package/dist/es6/layout/lib/utils/flex.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/flex.js +57 -23
- package/dist/es6/layout/lib/utils/flexItem.d.ts +18 -15
- package/dist/es6/layout/lib/utils/flexItem.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/flexItem.js +42 -24
- package/dist/es6/layout/lib/utils/grid.d.ts +40 -35
- package/dist/es6/layout/lib/utils/grid.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/grid.js +98 -70
- package/dist/es6/layout/lib/utils/gridItem.d.ts +17 -14
- package/dist/es6/layout/lib/utils/gridItem.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/gridItem.js +57 -28
- package/dist/es6/layout/lib/utils/layout.d.ts +47 -25
- package/dist/es6/layout/lib/utils/layout.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/layout.js +70 -31
- package/dist/es6/layout/lib/utils/other.d.ts +44 -2
- package/dist/es6/layout/lib/utils/other.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/other.js +100 -15
- package/dist/es6/layout/lib/utils/position.d.ts +37 -20
- package/dist/es6/layout/lib/utils/position.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/position.js +48 -64
- package/dist/es6/layout/lib/utils/space.d.ts +107 -51
- package/dist/es6/layout/lib/utils/space.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/space.js +97 -146
- package/dist/es6/layout/lib/utils/stack.d.ts +3 -6
- package/dist/es6/layout/lib/utils/stack.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/stack.js +13 -39
- package/dist/es6/layout/lib/utils/systemProps.d.ts +31 -0
- package/dist/es6/layout/lib/utils/systemProps.d.ts.map +1 -0
- package/dist/es6/layout/lib/utils/systemProps.js +1 -0
- package/dist/es6/layout/lib/utils/text.d.ts +33 -15
- package/dist/es6/layout/lib/utils/text.d.ts.map +1 -1
- package/dist/es6/layout/lib/utils/text.js +73 -36
- package/dist/es6/modal/lib/Modal.d.ts +1 -1
- package/dist/es6/popup/lib/Popup.d.ts +1 -1
- package/dist/es6/popup/lib/PopupBody.d.ts +1 -1
- package/dist/es6/popup/lib/hooks/useReturnFocus.d.ts.map +1 -1
- package/dist/es6/popup/lib/hooks/useReturnFocus.js +103 -3
- package/dist/es6/tabs/lib/TabsItem.d.ts +1 -1
- package/dist/es6/tokens/lib/colors.types.d.ts +4 -6
- package/dist/es6/tokens/lib/colors.types.d.ts.map +1 -1
- package/icon/lib/SystemIcon.tsx +1 -1
- package/layout/index.ts +8 -4
- package/layout/lib/Box.tsx +10 -36
- package/layout/lib/Flex.tsx +5 -1
- package/layout/lib/Grid.tsx +3 -4
- package/layout/lib/utils/background.ts +83 -0
- package/layout/lib/utils/border/color.ts +85 -0
- package/layout/lib/utils/border/index.ts +49 -0
- package/layout/lib/utils/border/lineStyle.ts +87 -0
- package/layout/lib/utils/border/radius.ts +61 -0
- package/layout/lib/utils/border/shorthand.ts +73 -0
- package/layout/lib/utils/border/width.ts +73 -0
- package/layout/lib/utils/buildStyleFns.ts +117 -0
- package/layout/lib/utils/color.ts +40 -55
- package/layout/lib/utils/depth.ts +28 -24
- package/layout/lib/utils/flex.ts +83 -32
- package/layout/lib/utils/flexItem.ts +54 -36
- package/layout/lib/utils/grid.ts +131 -94
- package/layout/lib/utils/gridItem.ts +69 -41
- package/layout/lib/utils/layout.ts +109 -50
- package/layout/lib/utils/other.ts +142 -15
- package/layout/lib/utils/position.ts +79 -73
- package/layout/lib/utils/space.ts +202 -196
- package/layout/lib/utils/stack.ts +19 -45
- package/layout/lib/utils/systemProps.ts +46 -0
- package/layout/lib/utils/text.ts +99 -34
- package/package.json +3 -3
- package/popup/lib/hooks/useReturnFocus.tsx +117 -4
- package/tokens/lib/colors.types.ts +4 -7
- package/dist/commonjs/layout/lib/utils/border.d.ts +0 -103
- package/dist/commonjs/layout/lib/utils/border.d.ts.map +0 -1
- package/dist/commonjs/layout/lib/utils/border.js +0 -153
- package/dist/commonjs/layout/lib/utils/font.d.ts +0 -29
- package/dist/commonjs/layout/lib/utils/font.d.ts.map +0 -1
- package/dist/commonjs/layout/lib/utils/font.js +0 -57
- package/dist/es6/layout/lib/utils/border.d.ts +0 -103
- package/dist/es6/layout/lib/utils/border.d.ts.map +0 -1
- package/dist/es6/layout/lib/utils/border.js +0 -149
- package/dist/es6/layout/lib/utils/font.d.ts +0 -29
- package/dist/es6/layout/lib/utils/font.d.ts.map +0 -1
- package/dist/es6/layout/lib/utils/font.js +0 -53
- package/layout/lib/utils/border.ts +0 -263
- package/layout/lib/utils/font.ts +0 -67
|
@@ -1,64 +1,120 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { StyleFnConfig } from './buildStyleFns';
|
|
2
|
+
import { SystemPropValues } from './systemProps';
|
|
3
|
+
/** style props to for CSS space properties */
|
|
4
|
+
export declare type SpaceStyleProps = {
|
|
5
|
+
/**
|
|
6
|
+
* - sets [CSS margin-inline-start property](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-inline-start)
|
|
7
|
+
* - bidirectional support
|
|
8
|
+
* - system tokens: `space`
|
|
9
|
+
* */
|
|
10
|
+
marginInlineStart?: SystemPropValues['space'];
|
|
11
|
+
/**
|
|
12
|
+
* - sets [CSS margin-inline-end property](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-inline-end)
|
|
13
|
+
* - bidirectional support
|
|
14
|
+
* - system tokens: `space`
|
|
15
|
+
* */
|
|
16
|
+
marginInlineEnd?: SystemPropValues['space'];
|
|
17
|
+
/**
|
|
18
|
+
* - sets [CSS padding-inline-start property](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-inline-start)
|
|
19
|
+
* - bidirectional support
|
|
20
|
+
* - system tokens: `space`
|
|
21
|
+
* */
|
|
22
|
+
paddingInlineStart?: SystemPropValues['space'];
|
|
23
|
+
/**
|
|
24
|
+
* - sets [CSS padding-inline-end property](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-inline-end)
|
|
25
|
+
* - bidirectional support
|
|
26
|
+
* - system tokens: `space`
|
|
27
|
+
* */
|
|
28
|
+
paddingInlineEnd?: SystemPropValues['space'];
|
|
29
|
+
/**
|
|
30
|
+
* - sets [CSS margin property](https://developer.mozilla.org/en-US/docs/Web/CSS/margin)
|
|
31
|
+
* - system tokens: `space`
|
|
32
|
+
* */
|
|
33
|
+
margin?: SystemPropValues['space'];
|
|
34
|
+
/**
|
|
35
|
+
* - sets [CSS margin-left](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left) and [margin-right properties](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right)
|
|
36
|
+
* - system tokens: `space`
|
|
37
|
+
* */
|
|
38
|
+
marginX?: SystemPropValues['space'];
|
|
39
|
+
/**
|
|
40
|
+
* - sets [CSS margin-top](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top) and [margin-bottom properties](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom)
|
|
41
|
+
* - system tokens: `space`
|
|
42
|
+
* */
|
|
43
|
+
marginY?: SystemPropValues['space'];
|
|
44
|
+
/**
|
|
45
|
+
* - sets [CSS margin-top property](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top)
|
|
46
|
+
* - system tokens: `space`
|
|
47
|
+
* */
|
|
48
|
+
marginTop?: SystemPropValues['space'];
|
|
49
|
+
/**
|
|
50
|
+
* - sets [CSS margin-right property](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right)
|
|
51
|
+
* - no bidirectional support
|
|
52
|
+
* - system tokens: `space`
|
|
53
|
+
* */
|
|
54
|
+
marginRight?: SystemPropValues['space'];
|
|
55
|
+
/**
|
|
56
|
+
* - sets [CSS margin-bottom property](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom)
|
|
57
|
+
* - system tokens: `space`
|
|
58
|
+
* */
|
|
59
|
+
marginBottom?: SystemPropValues['space'];
|
|
60
|
+
/**
|
|
61
|
+
* - sets [CSS margin-left property](https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left)
|
|
62
|
+
* - no bidirectional support
|
|
63
|
+
* - system tokens: `space`
|
|
64
|
+
* */
|
|
65
|
+
marginLeft?: SystemPropValues['space'];
|
|
66
|
+
/**
|
|
67
|
+
* - sets [CSS padding property](https://developer.mozilla.org/en-US/docs/Web/CSS/padding)
|
|
68
|
+
* - system tokens: `space`
|
|
69
|
+
* */
|
|
70
|
+
padding?: SystemPropValues['space'];
|
|
71
|
+
/**
|
|
72
|
+
* - sets [CSS padding-left]((https://developer.mozilla.org/en-US/docs/Web/CSS/padding-left) and [padding-right properties](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-right)
|
|
73
|
+
* - system tokens: `space`
|
|
74
|
+
* */
|
|
75
|
+
paddingX?: SystemPropValues['space'];
|
|
76
|
+
/**
|
|
77
|
+
* - sets [CSS padding-top](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-top) and [padding-bottom properties](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-bottom)
|
|
78
|
+
* - system tokens: `space`
|
|
79
|
+
* */
|
|
80
|
+
paddingY?: SystemPropValues['space'];
|
|
81
|
+
/**
|
|
82
|
+
* - sets [CSS padding-top property](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-top)
|
|
83
|
+
* - system tokens: `space`
|
|
84
|
+
* */
|
|
85
|
+
paddingTop?: SystemPropValues['space'];
|
|
86
|
+
/**
|
|
87
|
+
* - sets [CSS padding-right property](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-right)
|
|
88
|
+
* - no bidirectional support
|
|
89
|
+
* - system tokens: `space`
|
|
90
|
+
* */
|
|
91
|
+
paddingRight?: SystemPropValues['space'];
|
|
92
|
+
/**
|
|
93
|
+
* - sets [CSS padding-bottom](https://developer.mozilla.org/en-US/docs/Web/CSS/padding)
|
|
94
|
+
* - system tokens: `space`
|
|
95
|
+
* */
|
|
96
|
+
paddingBottom?: SystemPropValues['space'];
|
|
97
|
+
/**
|
|
98
|
+
* - sets [CSS padding-left property](https://developer.mozilla.org/en-US/docs/Web/CSS/padding-left)
|
|
99
|
+
* - no bidirectional support
|
|
100
|
+
* - system tokens: `space`
|
|
101
|
+
* */
|
|
102
|
+
paddingLeft?: SystemPropValues['space'];
|
|
14
103
|
};
|
|
15
|
-
|
|
16
|
-
export declare
|
|
17
|
-
/** sets margin property */
|
|
18
|
-
margin?: SpacePropValues;
|
|
19
|
-
/** sets margin-left and margin-right properties */
|
|
20
|
-
marginX?: SpacePropValues;
|
|
21
|
-
/** sets margin-top and margin-bottom properties */
|
|
22
|
-
marginY?: SpacePropValues;
|
|
23
|
-
/** sets margin-top property */
|
|
24
|
-
marginTop?: SpacePropValues;
|
|
25
|
-
/** sets margin-right property (no bidirectional support) */
|
|
26
|
-
marginRight?: SpacePropValues;
|
|
27
|
-
/** sets margin-bottom property */
|
|
28
|
-
marginBottom?: SpacePropValues;
|
|
29
|
-
/** sets margin-left property (no bidirectional support) */
|
|
30
|
-
marginLeft?: SpacePropValues;
|
|
31
|
-
/** sets padding property */
|
|
32
|
-
padding?: SpacePropValues;
|
|
33
|
-
/** sets padding-left and margin-right properties */
|
|
34
|
-
paddingX?: SpacePropValues;
|
|
35
|
-
/** sets padding-top and padding-bottom properties */
|
|
36
|
-
paddingY?: SpacePropValues;
|
|
37
|
-
/** sets padding-top property */
|
|
38
|
-
paddingTop?: SpacePropValues;
|
|
39
|
-
/** sets padding-right property (no bidirectional support) */
|
|
40
|
-
paddingRight?: SpacePropValues;
|
|
41
|
-
/** sets padding-bottom */
|
|
42
|
-
paddingBottom?: SpacePropValues;
|
|
43
|
-
/** sets padding-left property (no bidirectional support) */
|
|
44
|
-
paddingLeft?: SpacePropValues;
|
|
45
|
-
};
|
|
46
|
-
export declare type SpaceStyleProps = SpaceStandardProps & SpaceLogicalProps;
|
|
104
|
+
export declare const spaceStyleFnConfigs: StyleFnConfig[];
|
|
105
|
+
export declare const spaceStyleFns: import("./buildStyleFns").StyleFns;
|
|
47
106
|
/**
|
|
48
107
|
* A style prop function that takes component props and returns space styles.
|
|
49
108
|
* If no `SpaceStyleProps` are found, it returns an empty object.
|
|
50
109
|
*
|
|
51
110
|
* @example
|
|
52
|
-
*
|
|
111
|
+
* ```tsx
|
|
53
112
|
* const BoxExample = () => (
|
|
54
113
|
* <Box padding="xs" margin="m">
|
|
55
114
|
* Hello, space!
|
|
56
115
|
* </Box>
|
|
57
116
|
* );
|
|
58
|
-
*
|
|
117
|
+
* ```
|
|
59
118
|
*/
|
|
60
|
-
export declare
|
|
61
|
-
theme?: PartialEmotionCanvasTheme;
|
|
62
|
-
}>(props: P): {};
|
|
63
|
-
export {};
|
|
119
|
+
export declare const space: (props: SpaceStyleProps) => {};
|
|
64
120
|
//# sourceMappingURL=space.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"space.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/space.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"space.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/space.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC/E,OAAO,EAAC,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAE/C,8CAA8C;AAC9C,oBAAY,eAAe,GAAG;IAC5B;;;;SAIK;IACL,iBAAiB,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC9C;;;;SAIK;IACL,eAAe,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC5C;;;;SAIK;IACL,kBAAkB,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC/C;;;;SAIK;IACL,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC7C;;;SAGK;IACL,MAAM,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACnC;;;SAGK;IACL,OAAO,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpC;;;SAGK;IACL,OAAO,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpC;;;SAGK;IACL,SAAS,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACtC;;;;SAIK;IACL,WAAW,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACxC;;;SAGK;IACL,YAAY,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACzC;;;;SAIK;IACL,UAAU,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACvC;;;SAGK;IACL,OAAO,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACpC;;;SAGK;IACL,QAAQ,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACrC;;;SAGK;IACL,QAAQ,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACrC;;;SAGK;IACL,UAAU,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACvC;;;;SAIK;IACL,YAAY,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACzC;;;SAGK;IACL,aAAa,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC1C;;;;SAIK;IACL,WAAW,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;CACzC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,aAAa,EA2F9C,CAAC;AAEF,eAAO,MAAM,aAAa,oCAAqC,CAAC;AAChE;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,KAAK,gCAAmD,CAAC"}
|
|
@@ -1,161 +1,111 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.space = void 0;
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
marginX: marginX,
|
|
110
|
-
marginY: marginY,
|
|
111
|
-
marginTop: marginTop,
|
|
112
|
-
marginRight: marginRight,
|
|
113
|
-
marginBottom: marginBottom,
|
|
114
|
-
marginLeft: marginLeft,
|
|
115
|
-
padding: padding,
|
|
116
|
-
paddingX: paddingX,
|
|
117
|
-
paddingY: paddingY,
|
|
118
|
-
paddingTop: paddingTop,
|
|
119
|
-
paddingRight: paddingRight,
|
|
120
|
-
paddingBottom: paddingBottom,
|
|
121
|
-
paddingLeft: paddingLeft,
|
|
122
|
-
};
|
|
3
|
+
exports.space = exports.spaceStyleFns = exports.spaceStyleFnConfigs = void 0;
|
|
4
|
+
var buildStyleFns_1 = require("./buildStyleFns");
|
|
5
|
+
exports.spaceStyleFnConfigs = [
|
|
6
|
+
{
|
|
7
|
+
name: 'marginInlineStart',
|
|
8
|
+
properties: ['marginInlineStart'],
|
|
9
|
+
system: 'space',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
name: 'marginInlineEnd',
|
|
13
|
+
properties: ['marginInlineEnd'],
|
|
14
|
+
system: 'space',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: 'paddingInlineStart',
|
|
18
|
+
properties: ['paddingInlineStart'],
|
|
19
|
+
system: 'space',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'paddingInlineEnd',
|
|
23
|
+
properties: ['paddingInlineEnd'],
|
|
24
|
+
system: 'space',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'margin',
|
|
28
|
+
properties: ['margin'],
|
|
29
|
+
system: 'space',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'marginX',
|
|
33
|
+
properties: ['marginLeft', 'marginRight'],
|
|
34
|
+
system: 'space',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'marginY',
|
|
38
|
+
properties: ['marginTop', 'marginBottom'],
|
|
39
|
+
system: 'space',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'marginTop',
|
|
43
|
+
properties: ['marginTop'],
|
|
44
|
+
system: 'space',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'marginRight',
|
|
48
|
+
properties: ['marginRight'],
|
|
49
|
+
system: 'space',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'marginBottom',
|
|
53
|
+
properties: ['marginBottom'],
|
|
54
|
+
system: 'space',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: 'marginLeft',
|
|
58
|
+
properties: ['marginLeft'],
|
|
59
|
+
system: 'space',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'padding',
|
|
63
|
+
properties: ['padding'],
|
|
64
|
+
system: 'space',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: 'paddingX',
|
|
68
|
+
properties: ['paddingLeft', 'paddingRight'],
|
|
69
|
+
system: 'space',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: 'paddingY',
|
|
73
|
+
properties: ['paddingTop', 'paddingBottom'],
|
|
74
|
+
system: 'space',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'paddingTop',
|
|
78
|
+
properties: ['paddingTop'],
|
|
79
|
+
system: 'space',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: 'paddingRight',
|
|
83
|
+
properties: ['paddingRight'],
|
|
84
|
+
system: 'space',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: 'paddingBottom',
|
|
88
|
+
properties: ['paddingBottom'],
|
|
89
|
+
system: 'space',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: 'paddingLeft',
|
|
93
|
+
properties: ['paddingLeft'],
|
|
94
|
+
system: 'space',
|
|
95
|
+
},
|
|
96
|
+
];
|
|
97
|
+
exports.spaceStyleFns = buildStyleFns_1.buildStyleFns(exports.spaceStyleFnConfigs);
|
|
123
98
|
/**
|
|
124
99
|
* A style prop function that takes component props and returns space styles.
|
|
125
100
|
* If no `SpaceStyleProps` are found, it returns an empty object.
|
|
126
101
|
*
|
|
127
102
|
* @example
|
|
128
|
-
*
|
|
103
|
+
* ```tsx
|
|
129
104
|
* const BoxExample = () => (
|
|
130
105
|
* <Box padding="xs" margin="m">
|
|
131
106
|
* Hello, space!
|
|
132
107
|
* </Box>
|
|
133
108
|
* );
|
|
134
|
-
*
|
|
109
|
+
* ```
|
|
135
110
|
*/
|
|
136
|
-
|
|
137
|
-
// space will always be used within the context of a component, but eslint doesn't know that
|
|
138
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
139
|
-
var canvas = common_1.useTheme(props.theme).canvas;
|
|
140
|
-
var styles = {};
|
|
141
|
-
for (var key in props) {
|
|
142
|
-
if (props.hasOwnProperty(key)) {
|
|
143
|
-
if (key in standardSpaceStyleProps) {
|
|
144
|
-
var value = props[key];
|
|
145
|
-
var spaceFn = standardSpaceStyleProps[key];
|
|
146
|
-
var style = spaceFn(value);
|
|
147
|
-
styles = __assign(__assign({}, styles), style);
|
|
148
|
-
continue;
|
|
149
|
-
}
|
|
150
|
-
if (key in logicalSpaceStyleProps) {
|
|
151
|
-
var value = props[key];
|
|
152
|
-
var spaceFn = logicalSpaceStyleProps[key];
|
|
153
|
-
var isRTL = canvas.direction === common_1.ContentDirection.RTL;
|
|
154
|
-
var style = spaceFn(value, isRTL);
|
|
155
|
-
styles = __assign(__assign({}, styles), style);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
return styles;
|
|
160
|
-
}
|
|
161
|
-
exports.space = space;
|
|
111
|
+
exports.space = buildStyleFns_1.buildStylePropFn(exports.spaceStyleFns);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CanvasSpaceKeys } from '@workday/canvas-kit-react/tokens';
|
|
1
|
+
import { SystemPropValues } from './systemProps';
|
|
3
2
|
export declare type StackDirection = 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
4
3
|
declare const selector = "& > *:not(style) ~ *:not(style)";
|
|
5
|
-
export declare type StackSpacing =
|
|
4
|
+
export declare type StackSpacing = SystemPropValues['space'];
|
|
6
5
|
export declare type StackStyleProps = {
|
|
7
6
|
/** sets space values between child elements (bidirectional support) */
|
|
8
7
|
spacing: StackSpacing;
|
|
@@ -17,9 +16,7 @@ export declare type StackStyleProps = {
|
|
|
17
16
|
* */
|
|
18
17
|
shouldWrapChildren?: boolean;
|
|
19
18
|
};
|
|
20
|
-
export declare function stack<P extends StackStyleProps
|
|
21
|
-
theme?: PartialEmotionCanvasTheme;
|
|
22
|
-
}>(props: P): {
|
|
19
|
+
export declare function stack<P extends StackStyleProps>(props: P): {
|
|
23
20
|
"& > *:not(style) ~ *:not(style)": {};
|
|
24
21
|
};
|
|
25
22
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/stack.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/stack.ts"],"names":[],"mappings":"AACA,OAAO,EAAyB,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAEvE,oBAAY,cAAc,GAAG,KAAK,GAAG,QAAQ,GAAG,aAAa,GAAG,gBAAgB,CAAC;AAEjF,QAAA,MAAM,QAAQ,oCAAoC,CAAC;AAEnD,oBAAY,YAAY,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;AAErD,oBAAY,eAAe,GAAG;IAC5B,uEAAuE;IACvE,OAAO,EAAE,YAAY,CAAC;IACtB;;;SAGK;IACL,aAAa,CAAC,EAAE,cAAc,CAAC;IAC/B;;;SAGK;IACL,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAMF,wBAAgB,KAAK,CAAC,CAAC,SAAS,eAAe,EAAE,KAAK,EAAE,CAAC;;EAuBxD"}
|
|
@@ -1,52 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.stack = void 0;
|
|
4
|
-
var common_1 = require("@workday/canvas-kit-react/common");
|
|
5
4
|
var tokens_1 = require("@workday/canvas-kit-react/tokens");
|
|
6
5
|
var selector = '& > *:not(style) ~ *:not(style)';
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
}); };
|
|
10
|
-
var columnReverse = function (value) { return ({
|
|
11
|
-
marginBottom: tokens_1.space[value] || value,
|
|
12
|
-
}); };
|
|
13
|
-
var row = function (value, isRTL) {
|
|
14
|
-
var _a;
|
|
15
|
-
if (isRTL === void 0) { isRTL = false; }
|
|
16
|
-
var attr = isRTL ? 'marginRight' : 'marginLeft';
|
|
17
|
-
return _a = {},
|
|
18
|
-
_a[attr] = tokens_1.space[value] || value,
|
|
19
|
-
_a;
|
|
20
|
-
};
|
|
21
|
-
var rowReverse = function (value, isRTL) {
|
|
22
|
-
var _a;
|
|
23
|
-
if (isRTL === void 0) { isRTL = false; }
|
|
24
|
-
var attr = isRTL ? 'marginLeft' : 'marginRight';
|
|
25
|
-
return _a = {},
|
|
26
|
-
_a[attr] = tokens_1.space[value] || value,
|
|
27
|
-
_a;
|
|
28
|
-
};
|
|
29
|
-
var stackDirectionProps = {
|
|
30
|
-
column: column,
|
|
31
|
-
'column-reverse': columnReverse,
|
|
32
|
-
row: row,
|
|
33
|
-
'row-reverse': rowReverse,
|
|
6
|
+
var getSpace = function (value) {
|
|
7
|
+
return tokens_1.space[value] || value;
|
|
34
8
|
};
|
|
35
9
|
function stack(props) {
|
|
36
10
|
var _a;
|
|
37
|
-
var styles = {};
|
|
38
11
|
var _b = props.flexDirection, flexDirection = _b === void 0 ? 'row' : _b, spacing = props.spacing;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
styles =
|
|
12
|
+
var styles = {};
|
|
13
|
+
if (flexDirection === 'column') {
|
|
14
|
+
styles = { marginTop: getSpace(spacing) };
|
|
15
|
+
}
|
|
16
|
+
if (flexDirection === 'column-reverse') {
|
|
17
|
+
styles = { marginBottom: getSpace(spacing) };
|
|
18
|
+
}
|
|
19
|
+
if (flexDirection === 'row') {
|
|
20
|
+
styles = { marginInlineStart: getSpace(spacing) };
|
|
42
21
|
}
|
|
43
|
-
if (flexDirection === 'row
|
|
44
|
-
|
|
45
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
46
|
-
var canvas = common_1.useTheme(props.theme).canvas;
|
|
47
|
-
var stackFn = stackDirectionProps[flexDirection];
|
|
48
|
-
var isRTL = canvas.direction === common_1.ContentDirection.RTL;
|
|
49
|
-
styles = stackFn(spacing, isRTL);
|
|
22
|
+
if (flexDirection === 'row-reverse') {
|
|
23
|
+
styles = { marginInlineEnd: getSpace(spacing) };
|
|
50
24
|
}
|
|
51
25
|
return _a = {},
|
|
52
26
|
_a[selector] = styles,
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CanvasBorderRadiusKeys, CanvasColor, CanvasDepth, CanvasSpaceKeys, CanvasTypeProperties } from '@workday/canvas-kit-react/tokens';
|
|
2
|
+
export declare type SystemPropNames = 'color' | 'depth' | 'font' | 'fontSize' | 'fontWeight' | 'shape' | 'space';
|
|
3
|
+
/**
|
|
4
|
+
* Canvas System Prop Values
|
|
5
|
+
* ---
|
|
6
|
+
* These system prop values are restricted to Canvas token values.
|
|
7
|
+
*/
|
|
8
|
+
export declare type CanvasSystemPropValues = {
|
|
9
|
+
color: CanvasColor;
|
|
10
|
+
depth: keyof CanvasDepth;
|
|
11
|
+
font: keyof CanvasTypeProperties['fontFamilies'];
|
|
12
|
+
fontSize: keyof CanvasTypeProperties['fontSizes'];
|
|
13
|
+
fontWeight: keyof CanvasTypeProperties['fontWeights'];
|
|
14
|
+
shape: CanvasBorderRadiusKeys;
|
|
15
|
+
space: CanvasSpaceKeys;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* System Prop Values
|
|
19
|
+
* ---
|
|
20
|
+
* These system prop values include Canvas System Prop Values and generic values.
|
|
21
|
+
*/
|
|
22
|
+
export declare type SystemPropValues = {
|
|
23
|
+
color: CanvasSystemPropValues['color'] | (string & {});
|
|
24
|
+
depth: CanvasSystemPropValues['depth'];
|
|
25
|
+
font: CanvasSystemPropValues['font'] | (string & {});
|
|
26
|
+
fontSize: CanvasSystemPropValues['fontSize'] | (string & {});
|
|
27
|
+
fontWeight: CanvasSystemPropValues['fontWeight'] | (string & {});
|
|
28
|
+
shape: CanvasSystemPropValues['shape'] | number | (string & {});
|
|
29
|
+
space: CanvasSystemPropValues['space'] | number | (string & {});
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=systemProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"systemProps.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/systemProps.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,WAAW,EACX,WAAW,EACX,eAAe,EACf,oBAAoB,EACrB,MAAM,kCAAkC,CAAC;AAE1C,oBAAY,eAAe,GACvB,OAAO,GACP,OAAO,GACP,MAAM,GACN,UAAU,GACV,YAAY,GACZ,OAAO,GACP,OAAO,CAAC;AAEZ;;;;GAIG;AACH,oBAAY,sBAAsB,GAAG;IACnC,KAAK,EAAE,WAAW,CAAC;IACnB,KAAK,EAAE,MAAM,WAAW,CAAC;IACzB,IAAI,EAAE,MAAM,oBAAoB,CAAC,cAAc,CAAC,CAAC;IACjD,QAAQ,EAAE,MAAM,oBAAoB,CAAC,WAAW,CAAC,CAAC;IAClD,UAAU,EAAE,MAAM,oBAAoB,CAAC,aAAa,CAAC,CAAC;IACtD,KAAK,EAAE,sBAAsB,CAAC;IAC9B,KAAK,EAAE,eAAe,CAAC;CACxB,CAAC;AAEF;;;;GAIG;AACH,oBAAY,gBAAgB,GAAG;IAC7B,KAAK,EAAE,sBAAsB,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IACvD,KAAK,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC;IACvC,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IACrD,QAAQ,EAAE,sBAAsB,CAAC,UAAU,CAAC,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAC7D,UAAU,EAAE,sBAAsB,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IACjE,KAAK,EAAE,sBAAsB,CAAC,OAAO,CAAC,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAChE,KAAK,EAAE,sBAAsB,CAAC,OAAO,CAAC,GAAG,MAAM,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;CACjE,CAAC"}
|