@atlaskit/primitives 13.3.8 → 13.4.1
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 +18 -0
- package/dist/cjs/compiled/components/anchor.js +2 -2
- package/dist/cjs/compiled/components/bleed.js +1 -1
- package/dist/cjs/compiled/components/box.js +1 -1
- package/dist/cjs/compiled/components/flex.js +1 -1
- package/dist/cjs/compiled/components/focusable.js +1 -1
- package/dist/cjs/compiled/components/grid.js +1 -1
- package/dist/cjs/compiled/components/inline.js +1 -1
- package/dist/cjs/compiled/components/pressable.js +2 -2
- package/dist/cjs/compiled/components/stack.js +1 -1
- package/dist/cjs/compiled/components/text.js +1 -1
- package/dist/cjs/compiled/responsive/hide.js +1 -1
- package/dist/cjs/compiled/responsive/show.js +1 -1
- package/dist/cjs/components/anchor.js +1 -1
- package/dist/cjs/components/pressable.js +1 -1
- package/dist/cjs/xcss/xcss.js +6 -7
- package/dist/es2019/compiled/components/anchor.js +2 -2
- package/dist/es2019/compiled/components/bleed.js +1 -1
- package/dist/es2019/compiled/components/box.js +1 -1
- package/dist/es2019/compiled/components/flex.js +1 -1
- package/dist/es2019/compiled/components/focusable.js +1 -1
- package/dist/es2019/compiled/components/grid.js +1 -1
- package/dist/es2019/compiled/components/inline.js +1 -1
- package/dist/es2019/compiled/components/pressable.js +2 -2
- package/dist/es2019/compiled/components/stack.js +1 -1
- package/dist/es2019/compiled/components/text.js +1 -1
- package/dist/es2019/compiled/responsive/hide.js +1 -1
- package/dist/es2019/compiled/responsive/show.js +1 -1
- package/dist/es2019/components/anchor.js +1 -1
- package/dist/es2019/components/pressable.js +1 -1
- package/dist/esm/compiled/components/anchor.js +2 -2
- package/dist/esm/compiled/components/bleed.js +1 -1
- package/dist/esm/compiled/components/box.js +1 -1
- package/dist/esm/compiled/components/flex.js +1 -1
- package/dist/esm/compiled/components/focusable.js +1 -1
- package/dist/esm/compiled/components/grid.js +1 -1
- package/dist/esm/compiled/components/inline.js +1 -1
- package/dist/esm/compiled/components/pressable.js +2 -2
- package/dist/esm/compiled/components/stack.js +1 -1
- package/dist/esm/compiled/components/text.js +1 -1
- package/dist/esm/compiled/responsive/hide.js +1 -1
- package/dist/esm/compiled/responsive/show.js +1 -1
- package/dist/esm/components/anchor.js +1 -1
- package/dist/esm/components/pressable.js +1 -1
- package/dist/esm/xcss/xcss.js +7 -11
- package/dist/types/compiled/components/flex.d.ts +1 -42
- package/dist/types/compiled/components/grid.d.ts +1 -52
- package/dist/types/compiled/components/inline.d.ts +1 -47
- package/dist/types/compiled/components/pressable.d.ts +1 -1
- package/dist/types/compiled/components/stack.d.ts +1 -34
- package/dist/types/compiled/components/text.d.ts +1 -1
- package/dist/types/components/flex.d.ts +1 -42
- package/dist/types/components/grid.d.ts +1 -64
- package/dist/types/components/inline.d.ts +1 -47
- package/dist/types/components/pressable.d.ts +1 -1
- package/dist/types/components/stack.d.ts +1 -34
- package/dist/types/components/text.d.ts +1 -1
- package/dist/types-ts4.5/compiled/components/flex.d.ts +1 -42
- package/dist/types-ts4.5/compiled/components/grid.d.ts +1 -52
- package/dist/types-ts4.5/compiled/components/inline.d.ts +1 -47
- package/dist/types-ts4.5/compiled/components/pressable.d.ts +1 -1
- package/dist/types-ts4.5/compiled/components/stack.d.ts +1 -34
- package/dist/types-ts4.5/compiled/components/text.d.ts +1 -1
- package/dist/types-ts4.5/components/flex.d.ts +1 -42
- package/dist/types-ts4.5/components/grid.d.ts +1 -64
- package/dist/types-ts4.5/components/inline.d.ts +1 -47
- package/dist/types-ts4.5/components/pressable.d.ts +1 -1
- package/dist/types-ts4.5/components/stack.d.ts +1 -34
- package/dist/types-ts4.5/components/text.d.ts +1 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/primitives
|
|
2
2
|
|
|
3
|
+
## 13.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 13.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#109060](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109060)
|
|
14
|
+
[`4660ec858a305`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4660ec858a305) -
|
|
15
|
+
Update `React` from v16 to v18
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 13.3.8
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* anchor.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* anchor.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -70,7 +70,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
|
|
|
70
70
|
action: 'clicked',
|
|
71
71
|
componentName: componentName || 'Anchor',
|
|
72
72
|
packageName: "@atlaskit/primitives",
|
|
73
|
-
packageVersion: "13.
|
|
73
|
+
packageVersion: "13.4.1",
|
|
74
74
|
analyticsData: analyticsContext,
|
|
75
75
|
actionSubject: 'link'
|
|
76
76
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* pressable.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* pressable.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -60,7 +60,7 @@ var Pressable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
60
60
|
action: 'clicked',
|
|
61
61
|
componentName: componentName || 'Pressable',
|
|
62
62
|
packageName: "@atlaskit/primitives",
|
|
63
|
-
packageVersion: "13.
|
|
63
|
+
packageVersion: "13.4.1",
|
|
64
64
|
analyticsData: analyticsContext,
|
|
65
65
|
actionSubject: 'button'
|
|
66
66
|
});
|
|
@@ -100,7 +100,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
|
|
|
100
100
|
action: 'clicked',
|
|
101
101
|
componentName: componentName || 'Anchor',
|
|
102
102
|
packageName: "@atlaskit/primitives",
|
|
103
|
-
packageVersion: "13.
|
|
103
|
+
packageVersion: "13.4.1",
|
|
104
104
|
analyticsData: analyticsContext,
|
|
105
105
|
actionSubject: 'link'
|
|
106
106
|
});
|
|
@@ -95,7 +95,7 @@ var Pressable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
95
95
|
action: 'clicked',
|
|
96
96
|
componentName: componentName || 'Pressable',
|
|
97
97
|
packageName: "@atlaskit/primitives",
|
|
98
|
-
packageVersion: "13.
|
|
98
|
+
packageVersion: "13.4.1",
|
|
99
99
|
analyticsData: analyticsContext,
|
|
100
100
|
actionSubject: 'button'
|
|
101
101
|
});
|
package/dist/cjs/xcss/xcss.js
CHANGED
|
@@ -114,14 +114,14 @@ var isSafeEnvToThrow = function isSafeEnvToThrow() {
|
|
|
114
114
|
};
|
|
115
115
|
var reNestedSelectors = /(\.|\s|&+|\*\>|#|\[.*\])/;
|
|
116
116
|
var safeSelectors = /^@media .*$|^::?.*$|^@supports .*$/;
|
|
117
|
-
var
|
|
117
|
+
var _transformStyles = function transformStyles(styleObj) {
|
|
118
118
|
if (!styleObj || (0, _typeof2.default)(styleObj) !== 'object') {
|
|
119
119
|
return styleObj;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
// If styles are defined as a CSSObject[], recursively call on each element until we reach CSSObject
|
|
123
123
|
if (Array.isArray(styleObj)) {
|
|
124
|
-
return styleObj.map(
|
|
124
|
+
return styleObj.map(_transformStyles);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
// Modifies styleObj in place. Be careful.
|
|
@@ -132,7 +132,7 @@ var transformStyles = function transformStyles(styleObj) {
|
|
|
132
132
|
// If key is a pseudo class or a pseudo element, then value should be an object.
|
|
133
133
|
// So, call transformStyles on the value
|
|
134
134
|
if ((0, _typeof2.default)(value) === 'object' && safeSelectors.test(key)) {
|
|
135
|
-
styleObj[key] =
|
|
135
|
+
styleObj[key] = _transformStyles(value);
|
|
136
136
|
return;
|
|
137
137
|
}
|
|
138
138
|
if (isSafeEnvToThrow()) {
|
|
@@ -154,7 +154,7 @@ var transformStyles = function transformStyles(styleObj) {
|
|
|
154
154
|
return styleObj;
|
|
155
155
|
};
|
|
156
156
|
var baseXcss = function baseXcss(style) {
|
|
157
|
-
var transformedStyles =
|
|
157
|
+
var transformedStyles = _transformStyles(style);
|
|
158
158
|
return (0, _defineProperty2.default)({}, uniqueSymbol, (0, _react.css)(transformedStyles));
|
|
159
159
|
};
|
|
160
160
|
|
|
@@ -166,7 +166,7 @@ var baseXcss = function baseXcss(style) {
|
|
|
166
166
|
* @private
|
|
167
167
|
* @deprecated
|
|
168
168
|
*/
|
|
169
|
-
var
|
|
169
|
+
var _parseXcss = exports.parseXcss = function parseXcss(args) {
|
|
170
170
|
if (Array.isArray(args)) {
|
|
171
171
|
var emotion = [];
|
|
172
172
|
var staticArr = [];
|
|
@@ -175,7 +175,7 @@ var parseXcss = exports.parseXcss = function parseXcss(args) {
|
|
|
175
175
|
try {
|
|
176
176
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
177
177
|
var arg = _step.value;
|
|
178
|
-
var result =
|
|
178
|
+
var result = _parseXcss(arg);
|
|
179
179
|
if (result.emotion) {
|
|
180
180
|
emotion.push.apply(emotion, (0, _toConsumableArray2.default)(result.emotion));
|
|
181
181
|
}
|
|
@@ -213,7 +213,6 @@ var parseXcss = exports.parseXcss = function parseXcss(args) {
|
|
|
213
213
|
}
|
|
214
214
|
return {};
|
|
215
215
|
};
|
|
216
|
-
|
|
217
216
|
// Media queries should not contain nested media queries
|
|
218
217
|
|
|
219
218
|
// Allow only a specific subset of chained selectors to maintain workable TypeScript performance
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* anchor.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* anchor.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./anchor.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -55,7 +55,7 @@ const AnchorNoRef = ({
|
|
|
55
55
|
action: 'clicked',
|
|
56
56
|
componentName: componentName || 'Anchor',
|
|
57
57
|
packageName: "@atlaskit/primitives",
|
|
58
|
-
packageVersion: "13.
|
|
58
|
+
packageVersion: "13.4.1",
|
|
59
59
|
analyticsData: analyticsContext,
|
|
60
60
|
actionSubject: 'link'
|
|
61
61
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* pressable.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* pressable.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import "./pressable.compiled.css";
|
|
4
4
|
import * as React from 'react';
|
|
@@ -46,7 +46,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
|
|
|
46
46
|
action: 'clicked',
|
|
47
47
|
componentName: componentName || 'Pressable',
|
|
48
48
|
packageName: "@atlaskit/primitives",
|
|
49
|
-
packageVersion: "13.
|
|
49
|
+
packageVersion: "13.4.1",
|
|
50
50
|
analyticsData: analyticsContext,
|
|
51
51
|
actionSubject: 'button'
|
|
52
52
|
});
|
|
@@ -85,7 +85,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
|
|
|
85
85
|
action: 'clicked',
|
|
86
86
|
componentName: componentName || 'Pressable',
|
|
87
87
|
packageName: "@atlaskit/primitives",
|
|
88
|
-
packageVersion: "13.
|
|
88
|
+
packageVersion: "13.4.1",
|
|
89
89
|
analyticsData: analyticsContext,
|
|
90
90
|
actionSubject: 'button'
|
|
91
91
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* anchor.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* anchor.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _typeof from "@babel/runtime/helpers/typeof";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
@@ -60,7 +60,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
|
|
|
60
60
|
action: 'clicked',
|
|
61
61
|
componentName: componentName || 'Anchor',
|
|
62
62
|
packageName: "@atlaskit/primitives",
|
|
63
|
-
packageVersion: "13.
|
|
63
|
+
packageVersion: "13.4.1",
|
|
64
64
|
analyticsData: analyticsContext,
|
|
65
65
|
actionSubject: 'link'
|
|
66
66
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* box.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* box.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["as", "children", "backgroundColor", "padding", "paddingBlock", "paddingBlockStart", "paddingBlockEnd", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "style", "testId", "xcss"],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* focusable.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* focusable.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* pressable.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* pressable.tsx generated by @compiled/babel-plugin v0.36.0 */
|
|
2
2
|
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["children", "isDisabled", "type", "onClick", "interactionName", "componentName", "analyticsContext", "style", "testId", "xcss"],
|
|
@@ -50,7 +50,7 @@ var Pressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
50
50
|
action: 'clicked',
|
|
51
51
|
componentName: componentName || 'Pressable',
|
|
52
52
|
packageName: "@atlaskit/primitives",
|
|
53
|
-
packageVersion: "13.
|
|
53
|
+
packageVersion: "13.4.1",
|
|
54
54
|
analyticsData: analyticsContext,
|
|
55
55
|
actionSubject: 'button'
|
|
56
56
|
});
|
|
@@ -94,7 +94,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
|
|
|
94
94
|
action: 'clicked',
|
|
95
95
|
componentName: componentName || 'Anchor',
|
|
96
96
|
packageName: "@atlaskit/primitives",
|
|
97
|
-
packageVersion: "13.
|
|
97
|
+
packageVersion: "13.4.1",
|
|
98
98
|
analyticsData: analyticsContext,
|
|
99
99
|
actionSubject: 'link'
|
|
100
100
|
});
|
|
@@ -89,7 +89,7 @@ var Pressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
89
89
|
action: 'clicked',
|
|
90
90
|
componentName: componentName || 'Pressable',
|
|
91
91
|
packageName: "@atlaskit/primitives",
|
|
92
|
-
packageVersion: "13.
|
|
92
|
+
packageVersion: "13.4.1",
|
|
93
93
|
analyticsData: analyticsContext,
|
|
94
94
|
actionSubject: 'button'
|
|
95
95
|
});
|
package/dist/esm/xcss/xcss.js
CHANGED
|
@@ -110,14 +110,14 @@ var isSafeEnvToThrow = function isSafeEnvToThrow() {
|
|
|
110
110
|
};
|
|
111
111
|
var reNestedSelectors = /(\.|\s|&+|\*\>|#|\[.*\])/;
|
|
112
112
|
var safeSelectors = /^@media .*$|^::?.*$|^@supports .*$/;
|
|
113
|
-
var
|
|
113
|
+
var _transformStyles = function transformStyles(styleObj) {
|
|
114
114
|
if (!styleObj || _typeof(styleObj) !== 'object') {
|
|
115
115
|
return styleObj;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
// If styles are defined as a CSSObject[], recursively call on each element until we reach CSSObject
|
|
119
119
|
if (Array.isArray(styleObj)) {
|
|
120
|
-
return styleObj.map(
|
|
120
|
+
return styleObj.map(_transformStyles);
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
// Modifies styleObj in place. Be careful.
|
|
@@ -128,7 +128,7 @@ var transformStyles = function transformStyles(styleObj) {
|
|
|
128
128
|
// If key is a pseudo class or a pseudo element, then value should be an object.
|
|
129
129
|
// So, call transformStyles on the value
|
|
130
130
|
if (_typeof(value) === 'object' && safeSelectors.test(key)) {
|
|
131
|
-
styleObj[key] =
|
|
131
|
+
styleObj[key] = _transformStyles(value);
|
|
132
132
|
return;
|
|
133
133
|
}
|
|
134
134
|
if (isSafeEnvToThrow()) {
|
|
@@ -150,7 +150,7 @@ var transformStyles = function transformStyles(styleObj) {
|
|
|
150
150
|
return styleObj;
|
|
151
151
|
};
|
|
152
152
|
var baseXcss = function baseXcss(style) {
|
|
153
|
-
var transformedStyles =
|
|
153
|
+
var transformedStyles = _transformStyles(style);
|
|
154
154
|
return _defineProperty({}, uniqueSymbol, cssEmotion(transformedStyles));
|
|
155
155
|
};
|
|
156
156
|
|
|
@@ -162,7 +162,7 @@ var baseXcss = function baseXcss(style) {
|
|
|
162
162
|
* @private
|
|
163
163
|
* @deprecated
|
|
164
164
|
*/
|
|
165
|
-
|
|
165
|
+
var _parseXcss = function parseXcss(args) {
|
|
166
166
|
if (Array.isArray(args)) {
|
|
167
167
|
var emotion = [];
|
|
168
168
|
var staticArr = [];
|
|
@@ -171,7 +171,7 @@ export var parseXcss = function parseXcss(args) {
|
|
|
171
171
|
try {
|
|
172
172
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
173
173
|
var arg = _step.value;
|
|
174
|
-
var result =
|
|
174
|
+
var result = _parseXcss(arg);
|
|
175
175
|
if (result.emotion) {
|
|
176
176
|
emotion.push.apply(emotion, _toConsumableArray(result.emotion));
|
|
177
177
|
}
|
|
@@ -209,13 +209,9 @@ export var parseXcss = function parseXcss(args) {
|
|
|
209
209
|
}
|
|
210
210
|
return {};
|
|
211
211
|
};
|
|
212
|
-
|
|
213
|
-
// Media queries should not contain nested media queries
|
|
214
|
-
|
|
212
|
+
export { _parseXcss as parseXcss }; // Media queries should not contain nested media queries
|
|
215
213
|
// Allow only a specific subset of chained selectors to maintain workable TypeScript performance
|
|
216
|
-
|
|
217
214
|
// Pseudos should not contain nested pseudos, or media queries
|
|
218
|
-
|
|
219
215
|
/**
|
|
220
216
|
* ### xcss
|
|
221
217
|
*
|
|
@@ -66,46 +66,5 @@ export type FlexProps<T extends ElementType = 'div'> = {
|
|
|
66
66
|
* )
|
|
67
67
|
* ```
|
|
68
68
|
*/
|
|
69
|
-
declare const Flex: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
70
|
-
/**
|
|
71
|
-
* The DOM element to render as the Flex. Defaults to `div`.
|
|
72
|
-
*/
|
|
73
|
-
as?: "div" | "dl" | "li" | "ol" | "span" | "ul" | undefined;
|
|
74
|
-
/**
|
|
75
|
-
* Used to align children along the main axis.
|
|
76
|
-
*/
|
|
77
|
-
justifyContent?: JustifyContent | undefined;
|
|
78
|
-
/**
|
|
79
|
-
* Used to align children along the cross axis.
|
|
80
|
-
*/
|
|
81
|
-
alignItems?: AlignItems | undefined;
|
|
82
|
-
/**
|
|
83
|
-
* Represents the space between each child.
|
|
84
|
-
*/
|
|
85
|
-
columnGap?: import("./types").PositiveSpaceToken | undefined;
|
|
86
|
-
/**
|
|
87
|
-
* Represents the space between each child.
|
|
88
|
-
*/
|
|
89
|
-
gap?: import("./types").PositiveSpaceToken | undefined;
|
|
90
|
-
/**
|
|
91
|
-
* Represents the space between each child.
|
|
92
|
-
*/
|
|
93
|
-
rowGap?: import("./types").PositiveSpaceToken | undefined;
|
|
94
|
-
/**
|
|
95
|
-
* Represents the flex direction property of CSS flexbox.
|
|
96
|
-
*/
|
|
97
|
-
direction?: Direction | undefined;
|
|
98
|
-
/**
|
|
99
|
-
* Represents the flex wrap property of CSS flexbox.
|
|
100
|
-
*/
|
|
101
|
-
wrap?: Wrap | undefined;
|
|
102
|
-
/**
|
|
103
|
-
* Elements to be rendered inside the Flex.
|
|
104
|
-
*/
|
|
105
|
-
children: ReactNode;
|
|
106
|
-
/**
|
|
107
|
-
* Forwarded ref element.
|
|
108
|
-
*/
|
|
109
|
-
ref?: any;
|
|
110
|
-
} & BasePrimitiveProps, "gap" | "rowGap" | "columnGap" | "alignItems" | "direction" | "justifyContent" | "children" | "wrap" | "as" | keyof BasePrimitiveProps> & import("react").RefAttributes<any>>>;
|
|
69
|
+
declare const Flex: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<FlexProps<ElementType>, "ref"> & import("react").RefAttributes<any>>>;
|
|
111
70
|
export default Flex;
|
|
@@ -76,56 +76,5 @@ export type GridProps<T extends ElementType = 'div'> = {
|
|
|
76
76
|
* )
|
|
77
77
|
* ```
|
|
78
78
|
*/
|
|
79
|
-
declare const Grid: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<
|
|
80
|
-
/**
|
|
81
|
-
* The DOM element to render as the Flex. Defaults to `div`.
|
|
82
|
-
*/
|
|
83
|
-
as?: "div" | "ol" | "span" | "ul" | undefined;
|
|
84
|
-
/**
|
|
85
|
-
* Used to align children along the inline axis.
|
|
86
|
-
*/
|
|
87
|
-
justifyContent?: JustifyContent | undefined;
|
|
88
|
-
/**
|
|
89
|
-
* Used to align the grid along the inline axis.
|
|
90
|
-
*
|
|
91
|
-
* @deprecated This prop is not hooked up and doesn't nothing!
|
|
92
|
-
*/
|
|
93
|
-
justifyItems?: JustifyItems | undefined;
|
|
94
|
-
/**
|
|
95
|
-
* Used to align children along the block axis.
|
|
96
|
-
*/
|
|
97
|
-
alignItems?: AlignItems | undefined;
|
|
98
|
-
/**
|
|
99
|
-
* Used to align the grid along the block axis.
|
|
100
|
-
*/
|
|
101
|
-
alignContent?: AlignContent | undefined;
|
|
102
|
-
/**
|
|
103
|
-
* Represents the space between each column.
|
|
104
|
-
*/
|
|
105
|
-
columnGap?: import("./types").PositiveSpaceToken | undefined;
|
|
106
|
-
/**
|
|
107
|
-
* Represents the space between each child across both axes.
|
|
108
|
-
*/
|
|
109
|
-
gap?: import("./types").PositiveSpaceToken | undefined;
|
|
110
|
-
/**
|
|
111
|
-
* Represents the space between each row.
|
|
112
|
-
*/
|
|
113
|
-
rowGap?: import("./types").PositiveSpaceToken | undefined;
|
|
114
|
-
/**
|
|
115
|
-
* Specifies how auto-placed items get flowed into the grid. CSS `grid-auto-flow`.
|
|
116
|
-
*/
|
|
117
|
-
autoFlow?: AutoFlow | undefined;
|
|
118
|
-
/**
|
|
119
|
-
* Elements to be rendered inside the grid. Required as a grid without children should not be a grid.
|
|
120
|
-
*/
|
|
121
|
-
children: ReactNode;
|
|
122
|
-
/**
|
|
123
|
-
* HTML id attrubute.
|
|
124
|
-
*/
|
|
125
|
-
id?: string | undefined;
|
|
126
|
-
/**
|
|
127
|
-
* Forwarded ref element.
|
|
128
|
-
*/
|
|
129
|
-
ref?: any;
|
|
130
|
-
} & BasePrimitiveProps, "gap" | "rowGap" | "columnGap" | "alignContent" | "alignItems" | "justifyContent" | "justifyItems" | "children" | "as" | "id" | "autoFlow" | keyof BasePrimitiveProps> & import("react").RefAttributes<any>>>;
|
|
79
|
+
declare const Grid: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Omit<GridProps<ElementType>, "ref"> & import("react").RefAttributes<any>>>;
|
|
131
80
|
export default Grid;
|