@atlaskit/forge-react-types 0.37.14 → 0.39.0
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/CHANGELOG.md +25 -0
- package/dist/cjs/components/__generated__/BoxProps.codegen.js +2 -2
- package/dist/cjs/components/__generated__/PressableProps.codegen.js +183 -1
- package/dist/cjs/components/charts/BarChartProps.js +1 -5
- package/dist/cjs/components/charts/DonutChartProps.js +5 -0
- package/dist/cjs/components/charts/LineChartProps.js +1 -5
- package/dist/cjs/components/charts/PieChartProps.js +1 -5
- package/dist/es2019/components/__generated__/BoxProps.codegen.js +2 -2
- package/dist/es2019/components/__generated__/PressableProps.codegen.js +182 -0
- package/dist/es2019/components/charts/BarChartProps.js +0 -1
- package/dist/es2019/components/charts/DonutChartProps.js +1 -0
- package/dist/es2019/components/charts/LineChartProps.js +0 -1
- package/dist/es2019/components/charts/PieChartProps.js +0 -1
- package/dist/esm/components/__generated__/BoxProps.codegen.js +2 -2
- package/dist/esm/components/__generated__/PressableProps.codegen.js +182 -0
- package/dist/esm/components/charts/BarChartProps.js +0 -1
- package/dist/esm/components/charts/DonutChartProps.js +1 -0
- package/dist/esm/components/charts/LineChartProps.js +0 -1
- package/dist/esm/components/charts/PieChartProps.js +0 -1
- package/dist/types/components/__generated__/BoxProps.codegen.d.ts +3 -3
- package/dist/types/components/charts/BarChartProps.d.ts +0 -10
- package/dist/types/components/charts/DonutChartProps.d.ts +15 -0
- package/dist/types/components/charts/LineChartProps.d.ts +0 -7
- package/dist/types/components/charts/PieChartProps.d.ts +0 -14
- package/dist/types/components/charts/index.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types-ts4.5/components/__generated__/BoxProps.codegen.d.ts +3 -3
- package/dist/types-ts4.5/components/charts/BarChartProps.d.ts +0 -10
- package/dist/types-ts4.5/components/charts/DonutChartProps.d.ts +15 -0
- package/dist/types-ts4.5/components/charts/LineChartProps.d.ts +0 -7
- package/dist/types-ts4.5/components/charts/PieChartProps.d.ts +0 -14
- package/dist/types-ts4.5/components/charts/index.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/package.json +2 -2
- package/scripts/codegen/codeGenerator.ts +12 -3
- package/src/components/__generated__/BoxProps.codegen.tsx +3 -3
- package/src/components/__generated__/PressableProps.codegen.tsx +238 -63
- package/src/components/charts/BarChartProps.tsx +0 -11
- package/src/components/charts/DonutChartProps.tsx +17 -0
- package/src/components/charts/LineChartProps.tsx +0 -8
- package/src/components/charts/PieChartProps.tsx +0 -15
- package/src/components/charts/index.ts +1 -1
- package/src/index.ts +2 -2
- package/dist/cjs/components/charts/SingleValueChartProps.js +0 -1
- package/dist/es2019/components/charts/SingleValueChartProps.js +0 -0
- package/dist/esm/components/charts/SingleValueChartProps.js +0 -0
- package/dist/types/components/charts/SingleValueChartProps.d.ts +0 -33
- package/dist/types-ts4.5/components/charts/SingleValueChartProps.d.ts +0 -33
- package/src/components/charts/SingleValueChartProps.tsx +0 -34
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/forge-react-types
|
|
2
2
|
|
|
3
|
+
## 0.39.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#130095](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/130095)
|
|
8
|
+
[`5cbce3c0a85b2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5cbce3c0a85b2) -
|
|
9
|
+
Update props for chart components to remove showBorder and colors props. Add prop types for
|
|
10
|
+
DonutChart component
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 0.38.0
|
|
17
|
+
|
|
18
|
+
### Minor Changes
|
|
19
|
+
|
|
20
|
+
- [#130951](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/130951)
|
|
21
|
+
[`2741aeb65fe46`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2741aeb65fe46) -
|
|
22
|
+
Allow xcss in Pressable
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
|
|
3
28
|
## 0.37.14
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -8,9 +8,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
*
|
|
9
9
|
* Extract component prop types from UIKit 2 components - BoxProps
|
|
10
10
|
*
|
|
11
|
-
* @codegen <<SignedSource::
|
|
11
|
+
* @codegen <<SignedSource::c3ad3413cf478b4f6da470a99c029688>>
|
|
12
12
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
13
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/box/__generated__/index.partial.tsx <<SignedSource::
|
|
13
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/box/__generated__/index.partial.tsx <<SignedSource::cd2255d6156809f22f110b9eb0936c9d>>
|
|
14
14
|
*/
|
|
15
15
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
16
16
|
|
|
@@ -2,4 +2,186 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
|
-
});
|
|
5
|
+
});
|
|
6
|
+
/**
|
|
7
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
8
|
+
*
|
|
9
|
+
* Extract component prop types from UIKit 2 components - PressableProps
|
|
10
|
+
*
|
|
11
|
+
* @codegen <<SignedSource::515984e69408f30f333241c0b51ceb31>>
|
|
12
|
+
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
13
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/pressable/__generated__/index.partial.tsx <<SignedSource::a7f457ec091071415e904b705d62f605>>
|
|
14
|
+
*/
|
|
15
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @param supportedXCSSProps - the list of css props to be supported for the intended component.
|
|
20
|
+
* If not provided, all the props will be supported. The props could be either standard css props
|
|
21
|
+
* or design token based props. If the prop is a design token based prop, the value of the prop
|
|
22
|
+
* will be validated against the design tokens map to ensure the value is a valid design token string.
|
|
23
|
+
* @returns a function that takes a style object and returns a style object with only the supported props
|
|
24
|
+
* as specified in the supportedXCSSProps list. The props that are not supported will be removed from the
|
|
25
|
+
* returned style object and a warning will be logged in the console.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
var xcssValidator = makeXCSSValidator({
|
|
29
|
+
// color related props
|
|
30
|
+
color: true,
|
|
31
|
+
boxShadow: true,
|
|
32
|
+
opacity: true,
|
|
33
|
+
backgroundColor: true,
|
|
34
|
+
borderColor: true,
|
|
35
|
+
borderBlockColor: true,
|
|
36
|
+
borderBlockEndColor: true,
|
|
37
|
+
borderBlockStartColor: true,
|
|
38
|
+
borderBottomColor: true,
|
|
39
|
+
borderInlineColor: true,
|
|
40
|
+
borderInlineEndColor: true,
|
|
41
|
+
borderInlineStartColor: true,
|
|
42
|
+
borderLeftColor: true,
|
|
43
|
+
borderRightColor: true,
|
|
44
|
+
borderTopColor: true,
|
|
45
|
+
overflow: {
|
|
46
|
+
supportedValues: ['hidden', 'visible', 'scroll', 'auto']
|
|
47
|
+
},
|
|
48
|
+
overflowX: {
|
|
49
|
+
supportedValues: ['hidden', 'visible', 'scroll', 'auto']
|
|
50
|
+
},
|
|
51
|
+
overflowY: {
|
|
52
|
+
supportedValues: ['hidden', 'visible', 'scroll', 'auto']
|
|
53
|
+
},
|
|
54
|
+
// layout and space related props
|
|
55
|
+
display: {
|
|
56
|
+
supportedValues: ['block', 'inline-block', 'inline', 'none']
|
|
57
|
+
},
|
|
58
|
+
flexGrow: {
|
|
59
|
+
allowCSS: true
|
|
60
|
+
},
|
|
61
|
+
width: {
|
|
62
|
+
allowCSS: true
|
|
63
|
+
},
|
|
64
|
+
height: {
|
|
65
|
+
allowCSS: true
|
|
66
|
+
},
|
|
67
|
+
minWidth: {
|
|
68
|
+
allowCSS: true
|
|
69
|
+
},
|
|
70
|
+
maxWidth: {
|
|
71
|
+
allowCSS: true
|
|
72
|
+
},
|
|
73
|
+
minHeight: {
|
|
74
|
+
allowCSS: true
|
|
75
|
+
},
|
|
76
|
+
maxHeight: {
|
|
77
|
+
allowCSS: true
|
|
78
|
+
},
|
|
79
|
+
margin: true,
|
|
80
|
+
marginBlock: true,
|
|
81
|
+
marginBlockEnd: true,
|
|
82
|
+
marginBlockStart: true,
|
|
83
|
+
marginBottom: true,
|
|
84
|
+
marginInline: true,
|
|
85
|
+
marginInlineEnd: true,
|
|
86
|
+
marginInlineStart: true,
|
|
87
|
+
marginLeft: true,
|
|
88
|
+
marginRight: true,
|
|
89
|
+
marginTop: true,
|
|
90
|
+
padding: true,
|
|
91
|
+
paddingBlock: true,
|
|
92
|
+
paddingBlockEnd: true,
|
|
93
|
+
paddingBlockStart: true,
|
|
94
|
+
paddingBottom: true,
|
|
95
|
+
paddingInline: true,
|
|
96
|
+
paddingInlineEnd: true,
|
|
97
|
+
paddingInlineStart: true,
|
|
98
|
+
paddingLeft: true,
|
|
99
|
+
paddingRight: true,
|
|
100
|
+
paddingTop: true,
|
|
101
|
+
// other box related props
|
|
102
|
+
borderRadius: {
|
|
103
|
+
supportedValues: ['border.radius']
|
|
104
|
+
},
|
|
105
|
+
borderBottomLeftRadius: {
|
|
106
|
+
supportedValues: ['border.radius']
|
|
107
|
+
},
|
|
108
|
+
borderBottomRightRadius: {
|
|
109
|
+
supportedValues: ['border.radius']
|
|
110
|
+
},
|
|
111
|
+
borderTopLeftRadius: {
|
|
112
|
+
supportedValues: ['border.radius']
|
|
113
|
+
},
|
|
114
|
+
borderTopRightRadius: {
|
|
115
|
+
supportedValues: ['border.radius']
|
|
116
|
+
},
|
|
117
|
+
borderEndEndRadius: {
|
|
118
|
+
supportedValues: ['border.radius']
|
|
119
|
+
},
|
|
120
|
+
borderEndStartRadius: {
|
|
121
|
+
supportedValues: ['border.radius']
|
|
122
|
+
},
|
|
123
|
+
borderStartEndRadius: {
|
|
124
|
+
supportedValues: ['border.radius']
|
|
125
|
+
},
|
|
126
|
+
borderStartStartRadius: {
|
|
127
|
+
supportedValues: ['border.radius']
|
|
128
|
+
},
|
|
129
|
+
borderWidth: {
|
|
130
|
+
supportedValues: ['border.width']
|
|
131
|
+
},
|
|
132
|
+
borderBlockWidth: {
|
|
133
|
+
supportedValues: ['border.width']
|
|
134
|
+
},
|
|
135
|
+
borderBlockEndWidth: {
|
|
136
|
+
supportedValues: ['border.width']
|
|
137
|
+
},
|
|
138
|
+
borderBlockStartWidth: {
|
|
139
|
+
supportedValues: ['border.width']
|
|
140
|
+
},
|
|
141
|
+
borderBottomWidth: {
|
|
142
|
+
supportedValues: ['border.width']
|
|
143
|
+
},
|
|
144
|
+
borderInlineWidth: {
|
|
145
|
+
supportedValues: ['border.width']
|
|
146
|
+
},
|
|
147
|
+
borderInlineEndWidth: {
|
|
148
|
+
supportedValues: ['border.width']
|
|
149
|
+
},
|
|
150
|
+
borderInlineStartWidth: {
|
|
151
|
+
supportedValues: ['border.width']
|
|
152
|
+
},
|
|
153
|
+
borderLeftWidth: {
|
|
154
|
+
supportedValues: ['border.width']
|
|
155
|
+
},
|
|
156
|
+
borderRightWidth: {
|
|
157
|
+
supportedValues: ['border.width']
|
|
158
|
+
},
|
|
159
|
+
borderTopWidth: {
|
|
160
|
+
supportedValues: ['border.width']
|
|
161
|
+
},
|
|
162
|
+
// other props not in tokens based props
|
|
163
|
+
borderTopStyle: {
|
|
164
|
+
supportedValues: ['dotted', 'dashed', 'solid', 'none', 'hidden']
|
|
165
|
+
},
|
|
166
|
+
borderBottomStyle: {
|
|
167
|
+
supportedValues: ['dotted', 'dashed', 'solid', 'none', 'hidden']
|
|
168
|
+
},
|
|
169
|
+
borderRightStyle: {
|
|
170
|
+
supportedValues: ['dotted', 'dashed', 'solid', 'none', 'hidden']
|
|
171
|
+
},
|
|
172
|
+
borderLeftStyle: {
|
|
173
|
+
supportedValues: ['dotted', 'dashed', 'solid', 'none', 'hidden']
|
|
174
|
+
},
|
|
175
|
+
borderStyle: {
|
|
176
|
+
supportedValues: ['dotted', 'dashed', 'solid', 'none', 'hidden']
|
|
177
|
+
},
|
|
178
|
+
position: {
|
|
179
|
+
supportedValues: ['relative', 'static']
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* A pressable is a primitive for building custom buttons.
|
|
185
|
+
*
|
|
186
|
+
* @see [Pressable](https://developer.atlassian.com/platform/forge/ui-kit/components/pressable/) in UI Kit documentation for more information
|
|
187
|
+
*/
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - BoxProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::c3ad3413cf478b4f6da470a99c029688>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/box/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/box/__generated__/index.partial.tsx <<SignedSource::cd2255d6156809f22f110b9eb0936c9d>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
11
11
|
|
|
@@ -1 +1,183 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* Extract component prop types from UIKit 2 components - PressableProps
|
|
5
|
+
*
|
|
6
|
+
* @codegen <<SignedSource::515984e69408f30f333241c0b51ceb31>>
|
|
7
|
+
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/pressable/__generated__/index.partial.tsx <<SignedSource::a7f457ec091071415e904b705d62f605>>
|
|
9
|
+
*/
|
|
10
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @param supportedXCSSProps - the list of css props to be supported for the intended component.
|
|
15
|
+
* If not provided, all the props will be supported. The props could be either standard css props
|
|
16
|
+
* or design token based props. If the prop is a design token based prop, the value of the prop
|
|
17
|
+
* will be validated against the design tokens map to ensure the value is a valid design token string.
|
|
18
|
+
* @returns a function that takes a style object and returns a style object with only the supported props
|
|
19
|
+
* as specified in the supportedXCSSProps list. The props that are not supported will be removed from the
|
|
20
|
+
* returned style object and a warning will be logged in the console.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
const xcssValidator = makeXCSSValidator({
|
|
24
|
+
// color related props
|
|
25
|
+
color: true,
|
|
26
|
+
boxShadow: true,
|
|
27
|
+
opacity: true,
|
|
28
|
+
backgroundColor: true,
|
|
29
|
+
borderColor: true,
|
|
30
|
+
borderBlockColor: true,
|
|
31
|
+
borderBlockEndColor: true,
|
|
32
|
+
borderBlockStartColor: true,
|
|
33
|
+
borderBottomColor: true,
|
|
34
|
+
borderInlineColor: true,
|
|
35
|
+
borderInlineEndColor: true,
|
|
36
|
+
borderInlineStartColor: true,
|
|
37
|
+
borderLeftColor: true,
|
|
38
|
+
borderRightColor: true,
|
|
39
|
+
borderTopColor: true,
|
|
40
|
+
overflow: {
|
|
41
|
+
supportedValues: ['hidden', 'visible', 'scroll', 'auto']
|
|
42
|
+
},
|
|
43
|
+
overflowX: {
|
|
44
|
+
supportedValues: ['hidden', 'visible', 'scroll', 'auto']
|
|
45
|
+
},
|
|
46
|
+
overflowY: {
|
|
47
|
+
supportedValues: ['hidden', 'visible', 'scroll', 'auto']
|
|
48
|
+
},
|
|
49
|
+
// layout and space related props
|
|
50
|
+
display: {
|
|
51
|
+
supportedValues: ['block', 'inline-block', 'inline', 'none']
|
|
52
|
+
},
|
|
53
|
+
flexGrow: {
|
|
54
|
+
allowCSS: true
|
|
55
|
+
},
|
|
56
|
+
width: {
|
|
57
|
+
allowCSS: true
|
|
58
|
+
},
|
|
59
|
+
height: {
|
|
60
|
+
allowCSS: true
|
|
61
|
+
},
|
|
62
|
+
minWidth: {
|
|
63
|
+
allowCSS: true
|
|
64
|
+
},
|
|
65
|
+
maxWidth: {
|
|
66
|
+
allowCSS: true
|
|
67
|
+
},
|
|
68
|
+
minHeight: {
|
|
69
|
+
allowCSS: true
|
|
70
|
+
},
|
|
71
|
+
maxHeight: {
|
|
72
|
+
allowCSS: true
|
|
73
|
+
},
|
|
74
|
+
margin: true,
|
|
75
|
+
marginBlock: true,
|
|
76
|
+
marginBlockEnd: true,
|
|
77
|
+
marginBlockStart: true,
|
|
78
|
+
marginBottom: true,
|
|
79
|
+
marginInline: true,
|
|
80
|
+
marginInlineEnd: true,
|
|
81
|
+
marginInlineStart: true,
|
|
82
|
+
marginLeft: true,
|
|
83
|
+
marginRight: true,
|
|
84
|
+
marginTop: true,
|
|
85
|
+
padding: true,
|
|
86
|
+
paddingBlock: true,
|
|
87
|
+
paddingBlockEnd: true,
|
|
88
|
+
paddingBlockStart: true,
|
|
89
|
+
paddingBottom: true,
|
|
90
|
+
paddingInline: true,
|
|
91
|
+
paddingInlineEnd: true,
|
|
92
|
+
paddingInlineStart: true,
|
|
93
|
+
paddingLeft: true,
|
|
94
|
+
paddingRight: true,
|
|
95
|
+
paddingTop: true,
|
|
96
|
+
// other box related props
|
|
97
|
+
borderRadius: {
|
|
98
|
+
supportedValues: ['border.radius']
|
|
99
|
+
},
|
|
100
|
+
borderBottomLeftRadius: {
|
|
101
|
+
supportedValues: ['border.radius']
|
|
102
|
+
},
|
|
103
|
+
borderBottomRightRadius: {
|
|
104
|
+
supportedValues: ['border.radius']
|
|
105
|
+
},
|
|
106
|
+
borderTopLeftRadius: {
|
|
107
|
+
supportedValues: ['border.radius']
|
|
108
|
+
},
|
|
109
|
+
borderTopRightRadius: {
|
|
110
|
+
supportedValues: ['border.radius']
|
|
111
|
+
},
|
|
112
|
+
borderEndEndRadius: {
|
|
113
|
+
supportedValues: ['border.radius']
|
|
114
|
+
},
|
|
115
|
+
borderEndStartRadius: {
|
|
116
|
+
supportedValues: ['border.radius']
|
|
117
|
+
},
|
|
118
|
+
borderStartEndRadius: {
|
|
119
|
+
supportedValues: ['border.radius']
|
|
120
|
+
},
|
|
121
|
+
borderStartStartRadius: {
|
|
122
|
+
supportedValues: ['border.radius']
|
|
123
|
+
},
|
|
124
|
+
borderWidth: {
|
|
125
|
+
supportedValues: ['border.width']
|
|
126
|
+
},
|
|
127
|
+
borderBlockWidth: {
|
|
128
|
+
supportedValues: ['border.width']
|
|
129
|
+
},
|
|
130
|
+
borderBlockEndWidth: {
|
|
131
|
+
supportedValues: ['border.width']
|
|
132
|
+
},
|
|
133
|
+
borderBlockStartWidth: {
|
|
134
|
+
supportedValues: ['border.width']
|
|
135
|
+
},
|
|
136
|
+
borderBottomWidth: {
|
|
137
|
+
supportedValues: ['border.width']
|
|
138
|
+
},
|
|
139
|
+
borderInlineWidth: {
|
|
140
|
+
supportedValues: ['border.width']
|
|
141
|
+
},
|
|
142
|
+
borderInlineEndWidth: {
|
|
143
|
+
supportedValues: ['border.width']
|
|
144
|
+
},
|
|
145
|
+
borderInlineStartWidth: {
|
|
146
|
+
supportedValues: ['border.width']
|
|
147
|
+
},
|
|
148
|
+
borderLeftWidth: {
|
|
149
|
+
supportedValues: ['border.width']
|
|
150
|
+
},
|
|
151
|
+
borderRightWidth: {
|
|
152
|
+
supportedValues: ['border.width']
|
|
153
|
+
},
|
|
154
|
+
borderTopWidth: {
|
|
155
|
+
supportedValues: ['border.width']
|
|
156
|
+
},
|
|
157
|
+
// other props not in tokens based props
|
|
158
|
+
borderTopStyle: {
|
|
159
|
+
supportedValues: ['dotted', 'dashed', 'solid', 'none', 'hidden']
|
|
160
|
+
},
|
|
161
|
+
borderBottomStyle: {
|
|
162
|
+
supportedValues: ['dotted', 'dashed', 'solid', 'none', 'hidden']
|
|
163
|
+
},
|
|
164
|
+
borderRightStyle: {
|
|
165
|
+
supportedValues: ['dotted', 'dashed', 'solid', 'none', 'hidden']
|
|
166
|
+
},
|
|
167
|
+
borderLeftStyle: {
|
|
168
|
+
supportedValues: ['dotted', 'dashed', 'solid', 'none', 'hidden']
|
|
169
|
+
},
|
|
170
|
+
borderStyle: {
|
|
171
|
+
supportedValues: ['dotted', 'dashed', 'solid', 'none', 'hidden']
|
|
172
|
+
},
|
|
173
|
+
position: {
|
|
174
|
+
supportedValues: ['relative', 'static']
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* A pressable is a primitive for building custom buttons.
|
|
180
|
+
*
|
|
181
|
+
* @see [Pressable](https://developer.atlassian.com/platform/forge/ui-kit/components/pressable/) in UI Kit documentation for more information
|
|
182
|
+
*/
|
|
1
183
|
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Extract component prop types from UIKit 2 components - BoxProps
|
|
5
5
|
*
|
|
6
|
-
* @codegen <<SignedSource::
|
|
6
|
+
* @codegen <<SignedSource::c3ad3413cf478b4f6da470a99c029688>>
|
|
7
7
|
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
-
* @codegenDependency ../../../../forge-ui/src/components/UIKit/box/__generated__/index.partial.tsx <<SignedSource::
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/box/__generated__/index.partial.tsx <<SignedSource::cd2255d6156809f22f110b9eb0936c9d>>
|
|
9
9
|
*/
|
|
10
10
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
11
11
|
|
|
@@ -1 +1,183 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
*
|
|
4
|
+
* Extract component prop types from UIKit 2 components - PressableProps
|
|
5
|
+
*
|
|
6
|
+
* @codegen <<SignedSource::515984e69408f30f333241c0b51ceb31>>
|
|
7
|
+
* @codegenCommand yarn workspace @atlaskit/forge-react-types codegen
|
|
8
|
+
* @codegenDependency ../../../../forge-ui/src/components/UIKit/pressable/__generated__/index.partial.tsx <<SignedSource::a7f457ec091071415e904b705d62f605>>
|
|
9
|
+
*/
|
|
10
|
+
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage/preview */
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @param supportedXCSSProps - the list of css props to be supported for the intended component.
|
|
15
|
+
* If not provided, all the props will be supported. The props could be either standard css props
|
|
16
|
+
* or design token based props. If the prop is a design token based prop, the value of the prop
|
|
17
|
+
* will be validated against the design tokens map to ensure the value is a valid design token string.
|
|
18
|
+
* @returns a function that takes a style object and returns a style object with only the supported props
|
|
19
|
+
* as specified in the supportedXCSSProps list. The props that are not supported will be removed from the
|
|
20
|
+
* returned style object and a warning will be logged in the console.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
var xcssValidator = makeXCSSValidator({
|
|
24
|
+
// color related props
|
|
25
|
+
color: true,
|
|
26
|
+
boxShadow: true,
|
|
27
|
+
opacity: true,
|
|
28
|
+
backgroundColor: true,
|
|
29
|
+
borderColor: true,
|
|
30
|
+
borderBlockColor: true,
|
|
31
|
+
borderBlockEndColor: true,
|
|
32
|
+
borderBlockStartColor: true,
|
|
33
|
+
borderBottomColor: true,
|
|
34
|
+
borderInlineColor: true,
|
|
35
|
+
borderInlineEndColor: true,
|
|
36
|
+
borderInlineStartColor: true,
|
|
37
|
+
borderLeftColor: true,
|
|
38
|
+
borderRightColor: true,
|
|
39
|
+
borderTopColor: true,
|
|
40
|
+
overflow: {
|
|
41
|
+
supportedValues: ['hidden', 'visible', 'scroll', 'auto']
|
|
42
|
+
},
|
|
43
|
+
overflowX: {
|
|
44
|
+
supportedValues: ['hidden', 'visible', 'scroll', 'auto']
|
|
45
|
+
},
|
|
46
|
+
overflowY: {
|
|
47
|
+
supportedValues: ['hidden', 'visible', 'scroll', 'auto']
|
|
48
|
+
},
|
|
49
|
+
// layout and space related props
|
|
50
|
+
display: {
|
|
51
|
+
supportedValues: ['block', 'inline-block', 'inline', 'none']
|
|
52
|
+
},
|
|
53
|
+
flexGrow: {
|
|
54
|
+
allowCSS: true
|
|
55
|
+
},
|
|
56
|
+
width: {
|
|
57
|
+
allowCSS: true
|
|
58
|
+
},
|
|
59
|
+
height: {
|
|
60
|
+
allowCSS: true
|
|
61
|
+
},
|
|
62
|
+
minWidth: {
|
|
63
|
+
allowCSS: true
|
|
64
|
+
},
|
|
65
|
+
maxWidth: {
|
|
66
|
+
allowCSS: true
|
|
67
|
+
},
|
|
68
|
+
minHeight: {
|
|
69
|
+
allowCSS: true
|
|
70
|
+
},
|
|
71
|
+
maxHeight: {
|
|
72
|
+
allowCSS: true
|
|
73
|
+
},
|
|
74
|
+
margin: true,
|
|
75
|
+
marginBlock: true,
|
|
76
|
+
marginBlockEnd: true,
|
|
77
|
+
marginBlockStart: true,
|
|
78
|
+
marginBottom: true,
|
|
79
|
+
marginInline: true,
|
|
80
|
+
marginInlineEnd: true,
|
|
81
|
+
marginInlineStart: true,
|
|
82
|
+
marginLeft: true,
|
|
83
|
+
marginRight: true,
|
|
84
|
+
marginTop: true,
|
|
85
|
+
padding: true,
|
|
86
|
+
paddingBlock: true,
|
|
87
|
+
paddingBlockEnd: true,
|
|
88
|
+
paddingBlockStart: true,
|
|
89
|
+
paddingBottom: true,
|
|
90
|
+
paddingInline: true,
|
|
91
|
+
paddingInlineEnd: true,
|
|
92
|
+
paddingInlineStart: true,
|
|
93
|
+
paddingLeft: true,
|
|
94
|
+
paddingRight: true,
|
|
95
|
+
paddingTop: true,
|
|
96
|
+
// other box related props
|
|
97
|
+
borderRadius: {
|
|
98
|
+
supportedValues: ['border.radius']
|
|
99
|
+
},
|
|
100
|
+
borderBottomLeftRadius: {
|
|
101
|
+
supportedValues: ['border.radius']
|
|
102
|
+
},
|
|
103
|
+
borderBottomRightRadius: {
|
|
104
|
+
supportedValues: ['border.radius']
|
|
105
|
+
},
|
|
106
|
+
borderTopLeftRadius: {
|
|
107
|
+
supportedValues: ['border.radius']
|
|
108
|
+
},
|
|
109
|
+
borderTopRightRadius: {
|
|
110
|
+
supportedValues: ['border.radius']
|
|
111
|
+
},
|
|
112
|
+
borderEndEndRadius: {
|
|
113
|
+
supportedValues: ['border.radius']
|
|
114
|
+
},
|
|
115
|
+
borderEndStartRadius: {
|
|
116
|
+
supportedValues: ['border.radius']
|
|
117
|
+
},
|
|
118
|
+
borderStartEndRadius: {
|
|
119
|
+
supportedValues: ['border.radius']
|
|
120
|
+
},
|
|
121
|
+
borderStartStartRadius: {
|
|
122
|
+
supportedValues: ['border.radius']
|
|
123
|
+
},
|
|
124
|
+
borderWidth: {
|
|
125
|
+
supportedValues: ['border.width']
|
|
126
|
+
},
|
|
127
|
+
borderBlockWidth: {
|
|
128
|
+
supportedValues: ['border.width']
|
|
129
|
+
},
|
|
130
|
+
borderBlockEndWidth: {
|
|
131
|
+
supportedValues: ['border.width']
|
|
132
|
+
},
|
|
133
|
+
borderBlockStartWidth: {
|
|
134
|
+
supportedValues: ['border.width']
|
|
135
|
+
},
|
|
136
|
+
borderBottomWidth: {
|
|
137
|
+
supportedValues: ['border.width']
|
|
138
|
+
},
|
|
139
|
+
borderInlineWidth: {
|
|
140
|
+
supportedValues: ['border.width']
|
|
141
|
+
},
|
|
142
|
+
borderInlineEndWidth: {
|
|
143
|
+
supportedValues: ['border.width']
|
|
144
|
+
},
|
|
145
|
+
borderInlineStartWidth: {
|
|
146
|
+
supportedValues: ['border.width']
|
|
147
|
+
},
|
|
148
|
+
borderLeftWidth: {
|
|
149
|
+
supportedValues: ['border.width']
|
|
150
|
+
},
|
|
151
|
+
borderRightWidth: {
|
|
152
|
+
supportedValues: ['border.width']
|
|
153
|
+
},
|
|
154
|
+
borderTopWidth: {
|
|
155
|
+
supportedValues: ['border.width']
|
|
156
|
+
},
|
|
157
|
+
// other props not in tokens based props
|
|
158
|
+
borderTopStyle: {
|
|
159
|
+
supportedValues: ['dotted', 'dashed', 'solid', 'none', 'hidden']
|
|
160
|
+
},
|
|
161
|
+
borderBottomStyle: {
|
|
162
|
+
supportedValues: ['dotted', 'dashed', 'solid', 'none', 'hidden']
|
|
163
|
+
},
|
|
164
|
+
borderRightStyle: {
|
|
165
|
+
supportedValues: ['dotted', 'dashed', 'solid', 'none', 'hidden']
|
|
166
|
+
},
|
|
167
|
+
borderLeftStyle: {
|
|
168
|
+
supportedValues: ['dotted', 'dashed', 'solid', 'none', 'hidden']
|
|
169
|
+
},
|
|
170
|
+
borderStyle: {
|
|
171
|
+
supportedValues: ['dotted', 'dashed', 'solid', 'none', 'hidden']
|
|
172
|
+
},
|
|
173
|
+
position: {
|
|
174
|
+
supportedValues: ['relative', 'static']
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* A pressable is a primitive for building custom buttons.
|
|
180
|
+
*
|
|
181
|
+
* @see [Pressable](https://developer.atlassian.com/platform/forge/ui-kit/components/pressable/) in UI Kit documentation for more information
|
|
182
|
+
*/
|
|
1
183
|
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|