@atlaskit/primitives 14.10.2 → 14.11.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 +11 -0
- package/dist/cjs/compiled/components/anchor.js +1 -1
- package/dist/cjs/compiled/components/flex.js +8 -3
- package/dist/cjs/compiled/components/inline.js +7 -3
- package/dist/cjs/compiled/components/pressable.js +1 -1
- package/dist/cjs/compiled/components/stack.js +7 -3
- package/dist/cjs/components/anchor.js +1 -1
- package/dist/cjs/components/flex.js +3 -1
- package/dist/cjs/components/inline.js +2 -0
- package/dist/cjs/components/pressable.js +1 -1
- package/dist/cjs/components/stack.js +3 -1
- package/dist/es2019/compiled/components/anchor.js +1 -1
- package/dist/es2019/compiled/components/flex.js +5 -3
- package/dist/es2019/compiled/components/inline.js +5 -3
- package/dist/es2019/compiled/components/pressable.js +1 -1
- package/dist/es2019/compiled/components/stack.js +5 -3
- package/dist/es2019/components/anchor.js +1 -1
- package/dist/es2019/components/flex.js +3 -1
- package/dist/es2019/components/inline.js +2 -0
- package/dist/es2019/components/pressable.js +1 -1
- package/dist/es2019/components/stack.js +3 -1
- package/dist/esm/compiled/components/anchor.js +1 -1
- package/dist/esm/compiled/components/flex.js +7 -3
- package/dist/esm/compiled/components/inline.js +7 -3
- package/dist/esm/compiled/components/pressable.js +1 -1
- package/dist/esm/compiled/components/stack.js +7 -3
- package/dist/esm/components/anchor.js +1 -1
- package/dist/esm/components/flex.js +3 -1
- package/dist/esm/components/inline.js +2 -0
- package/dist/esm/components/pressable.js +1 -1
- package/dist/esm/components/stack.js +3 -1
- package/dist/types/compiled/components/flex.d.ts +2 -2
- package/dist/types/compiled/components/inline.d.ts +2 -2
- package/dist/types/compiled/components/stack.d.ts +2 -2
- package/dist/types/components/flex.d.ts +4 -0
- package/dist/types/components/inline.d.ts +4 -0
- package/dist/types/components/stack.d.ts +4 -0
- package/dist/types-ts4.5/compiled/components/flex.d.ts +2 -2
- package/dist/types-ts4.5/compiled/components/inline.d.ts +2 -2
- package/dist/types-ts4.5/compiled/components/stack.d.ts +2 -2
- package/dist/types-ts4.5/components/flex.d.ts +4 -0
- package/dist/types-ts4.5/components/inline.d.ts +4 -0
- package/dist/types-ts4.5/components/stack.d.ts +4 -0
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/primitives
|
|
2
2
|
|
|
3
|
+
## 14.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#192701](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/192701)
|
|
8
|
+
[`4d5732a51de3b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4d5732a51de3b) -
|
|
9
|
+
Flex, Inline, and Stack now support passing through native ARIA attributes.
|
|
10
|
+
- [#193136](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/193136)
|
|
11
|
+
[`deefc1d6ebaa6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/deefc1d6ebaa6) -
|
|
12
|
+
[ux] Added HTML id attribute to Flex and Flex-based primitives
|
|
13
|
+
|
|
3
14
|
## 14.10.2
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -69,7 +69,7 @@ var AnchorNoRef = function AnchorNoRef(_ref, ref) {
|
|
|
69
69
|
action: 'clicked',
|
|
70
70
|
componentName: componentName || 'Anchor',
|
|
71
71
|
packageName: "@atlaskit/primitives",
|
|
72
|
-
packageVersion: "14.10.
|
|
72
|
+
packageVersion: "14.10.2",
|
|
73
73
|
analyticsData: analyticsContext,
|
|
74
74
|
actionSubject: 'link'
|
|
75
75
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* flex.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
5
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
6
|
Object.defineProperty(exports, "__esModule", {
|
|
6
7
|
value: true
|
|
@@ -10,6 +11,9 @@ require("./flex.compiled.css");
|
|
|
10
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
12
|
var React = _react;
|
|
12
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
16
|
+
var _excluded = ["as", "role", "alignItems", "justifyContent", "gap", "columnGap", "rowGap", "children", "testId", "direction", "wrap", "xcss"];
|
|
13
17
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
14
18
|
var rowGapMap = {
|
|
15
19
|
'space.0': "_1p57ze3t",
|
|
@@ -105,13 +109,14 @@ var Flex = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
105
109
|
testId = _ref.testId,
|
|
106
110
|
direction = _ref.direction,
|
|
107
111
|
wrap = _ref.wrap,
|
|
108
|
-
xcss = _ref.xcss
|
|
109
|
-
|
|
112
|
+
xcss = _ref.xcss,
|
|
113
|
+
ariaAttributes = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
114
|
+
return /*#__PURE__*/React.createElement(Component, (0, _extends2.default)({}, ariaAttributes, {
|
|
110
115
|
role: role,
|
|
111
116
|
className: (0, _runtime.ax)([styles.root, gap && columnGapMap[gap], columnGap && columnGapMap[columnGap], gap && rowGapMap[gap], rowGap && rowGapMap[rowGap], alignItems && alignItemsMap[alignItems], direction && flexDirectionMap[direction], justifyContent && justifyContentMap[justifyContent], wrap && flexWrapMap[wrap], xcss]),
|
|
112
117
|
"data-testid": testId,
|
|
113
118
|
ref: ref
|
|
114
|
-
}, children);
|
|
119
|
+
}), children);
|
|
115
120
|
}));
|
|
116
121
|
Flex.displayName = 'Flex';
|
|
117
122
|
var _default = exports.default = Flex;
|
|
@@ -11,8 +11,11 @@ require("./inline.compiled.css");
|
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var React = _react;
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
14
16
|
var _css = require("@atlaskit/css");
|
|
15
17
|
var _flex = _interopRequireDefault(require("./flex"));
|
|
18
|
+
var _excluded = ["as", "alignInline", "alignBlock", "shouldWrap", "spread", "grow", "space", "rowSpace", "separator", "xcss", "testId", "role", "children"];
|
|
16
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
17
20
|
var styles = {
|
|
18
21
|
separator: "_1mouze3t _195g1i6y _syazjjyb _lcxvglyw _uiztglyw",
|
|
@@ -55,14 +58,15 @@ var Inline = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(
|
|
|
55
58
|
xcss = _ref2.xcss,
|
|
56
59
|
testId = _ref2.testId,
|
|
57
60
|
role = _ref2.role,
|
|
58
|
-
rawChildren = _ref2.children
|
|
61
|
+
rawChildren = _ref2.children,
|
|
62
|
+
ariaAttributes = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
|
|
59
63
|
var separatorComponent = typeof separator === 'string' ? /*#__PURE__*/React.createElement(Separator, null, separator) : separator;
|
|
60
64
|
var children = separatorComponent ? _react.Children.toArray(rawChildren).filter(Boolean).map(function (child, index) {
|
|
61
65
|
return /*#__PURE__*/React.createElement(_react.Fragment, {
|
|
62
66
|
key: index
|
|
63
67
|
}, separator && index > 0 ? separatorComponent : null, child);
|
|
64
68
|
}) : rawChildren;
|
|
65
|
-
return /*#__PURE__*/React.createElement(_flex.default, {
|
|
69
|
+
return /*#__PURE__*/React.createElement(_flex.default, (0, _extends2.default)({}, ariaAttributes, {
|
|
66
70
|
as: as,
|
|
67
71
|
role: role,
|
|
68
72
|
alignItems: alignItems,
|
|
@@ -74,7 +78,7 @@ var Inline = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(
|
|
|
74
78
|
xcss: (0, _css.cx)(grow === 'hug' && styles.hug, grow === 'fill' && styles.fill, xcss),
|
|
75
79
|
testId: testId,
|
|
76
80
|
ref: ref
|
|
77
|
-
}, children);
|
|
81
|
+
}), children);
|
|
78
82
|
}));
|
|
79
83
|
Inline.displayName = 'Inline';
|
|
80
84
|
var _default = exports.default = Inline;
|
|
@@ -61,7 +61,7 @@ var Pressable = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
61
61
|
action: 'clicked',
|
|
62
62
|
componentName: componentName || 'Pressable',
|
|
63
63
|
packageName: "@atlaskit/primitives",
|
|
64
|
-
packageVersion: "14.10.
|
|
64
|
+
packageVersion: "14.10.2",
|
|
65
65
|
analyticsData: analyticsContext,
|
|
66
66
|
actionSubject: 'button'
|
|
67
67
|
});
|
|
@@ -11,8 +11,11 @@ require("./stack.compiled.css");
|
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var React = _react;
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
15
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
14
16
|
var _css = require("@atlaskit/css");
|
|
15
17
|
var _flex = _interopRequireDefault(require("./flex"));
|
|
18
|
+
var _excluded = ["as", "alignInline", "alignBlock", "spread", "grow", "space", "children", "testId", "xcss", "role"];
|
|
16
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
17
20
|
var styles = {
|
|
18
21
|
hug: "_16jlidpf",
|
|
@@ -44,8 +47,9 @@ var Stack = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(f
|
|
|
44
47
|
children = _ref.children,
|
|
45
48
|
testId = _ref.testId,
|
|
46
49
|
xcss = _ref.xcss,
|
|
47
|
-
role = _ref.role
|
|
48
|
-
|
|
50
|
+
role = _ref.role,
|
|
51
|
+
ariaAttributes = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
52
|
+
return /*#__PURE__*/React.createElement(_flex.default, (0, _extends2.default)({}, ariaAttributes, {
|
|
49
53
|
as: as,
|
|
50
54
|
role: role,
|
|
51
55
|
gap: space,
|
|
@@ -55,7 +59,7 @@ var Stack = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(f
|
|
|
55
59
|
xcss: (0, _css.cx)(grow === 'hug' && styles.hug, grow === 'fill' && styles.fill, xcss),
|
|
56
60
|
testId: testId,
|
|
57
61
|
ref: ref
|
|
58
|
-
}, children);
|
|
62
|
+
}), children);
|
|
59
63
|
}));
|
|
60
64
|
Stack.displayName = 'Stack';
|
|
61
65
|
var _default = exports.default = Stack;
|
|
@@ -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: "14.10.
|
|
103
|
+
packageVersion: "14.10.2",
|
|
104
104
|
analyticsData: analyticsContext,
|
|
105
105
|
actionSubject: 'link'
|
|
106
106
|
});
|
|
@@ -110,9 +110,11 @@ var Flex = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
110
110
|
testId = _ref.testId,
|
|
111
111
|
direction = _ref.direction,
|
|
112
112
|
wrap = _ref.wrap,
|
|
113
|
-
xcss = _ref.xcss
|
|
113
|
+
xcss = _ref.xcss,
|
|
114
|
+
id = _ref.id;
|
|
114
115
|
var resolvedStyles = (0, _xcss.parseXcss)(xcss);
|
|
115
116
|
return (0, _react2.jsx)(Component, {
|
|
117
|
+
id: id,
|
|
116
118
|
role: role
|
|
117
119
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
118
120
|
,
|
|
@@ -71,6 +71,7 @@ var Inline = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(
|
|
|
71
71
|
xcss = _ref2.xcss,
|
|
72
72
|
testId = _ref2.testId,
|
|
73
73
|
role = _ref2.role,
|
|
74
|
+
id = _ref2.id,
|
|
74
75
|
rawChildren = _ref2.children;
|
|
75
76
|
var separatorComponent = typeof separator === 'string' ? (0, _react2.jsx)(Separator, null, separator) : separator;
|
|
76
77
|
var children = separatorComponent ? _react.Children.toArray(rawChildren).filter(Boolean).map(function (child, index) {
|
|
@@ -85,6 +86,7 @@ var Inline = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(
|
|
|
85
86
|
// it with cx(defaultStyles, focusRingStyles, xcssStyles) when we've moved away from Emotion.
|
|
86
87
|
var styles = grow ? [flexGrowMap[grow]].concat((0, _toConsumableArray2.default)(Array.isArray(xcss) ? xcss : [xcss])) : xcss;
|
|
87
88
|
return (0, _react2.jsx)(_flex.default, {
|
|
89
|
+
id: id,
|
|
88
90
|
as: as,
|
|
89
91
|
role: role,
|
|
90
92
|
alignItems: alignItems,
|
|
@@ -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: "14.10.
|
|
98
|
+
packageVersion: "14.10.2",
|
|
99
99
|
analyticsData: analyticsContext,
|
|
100
100
|
actionSubject: 'button'
|
|
101
101
|
});
|
|
@@ -52,7 +52,8 @@ var Stack = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(f
|
|
|
52
52
|
children = _ref.children,
|
|
53
53
|
testId = _ref.testId,
|
|
54
54
|
xcss = _ref.xcss,
|
|
55
|
-
role = _ref.role
|
|
55
|
+
role = _ref.role,
|
|
56
|
+
id = _ref.id;
|
|
56
57
|
var justifyContent = spread || alignBlock;
|
|
57
58
|
|
|
58
59
|
// We're type coercing this as Compiled styles in an array isn't supported by the types
|
|
@@ -60,6 +61,7 @@ var Stack = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(f
|
|
|
60
61
|
// it with cx(defaultStyles, focusRingStyles, xcssStyles) when we've moved away from Emotion.
|
|
61
62
|
var styles = grow ? [flexGrowMap[grow]].concat((0, _toConsumableArray2.default)(Array.isArray(xcss) ? xcss : [xcss])) : xcss;
|
|
62
63
|
return (0, _react2.jsx)(_flex.default, {
|
|
64
|
+
id: id,
|
|
63
65
|
as: as,
|
|
64
66
|
role: role,
|
|
65
67
|
gap: space,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* flex.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import "./flex.compiled.css";
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -96,14 +97,15 @@ const Flex = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
96
97
|
testId,
|
|
97
98
|
direction,
|
|
98
99
|
wrap,
|
|
99
|
-
xcss
|
|
100
|
+
xcss,
|
|
101
|
+
...ariaAttributes
|
|
100
102
|
}, ref) => {
|
|
101
|
-
return /*#__PURE__*/React.createElement(Component, {
|
|
103
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, ariaAttributes, {
|
|
102
104
|
role: role,
|
|
103
105
|
className: ax([styles.root, gap && columnGapMap[gap], columnGap && columnGapMap[columnGap], gap && rowGapMap[gap], rowGap && rowGapMap[rowGap], alignItems && alignItemsMap[alignItems], direction && flexDirectionMap[direction], justifyContent && justifyContentMap[justifyContent], wrap && flexWrapMap[wrap], xcss]),
|
|
104
106
|
"data-testid": testId,
|
|
105
107
|
ref: ref
|
|
106
|
-
}, children);
|
|
108
|
+
}), children);
|
|
107
109
|
}));
|
|
108
110
|
Flex.displayName = 'Flex';
|
|
109
111
|
export default Flex;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* inline.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import "./inline.compiled.css";
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -43,7 +44,8 @@ const Inline = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
43
44
|
xcss,
|
|
44
45
|
testId,
|
|
45
46
|
role,
|
|
46
|
-
children: rawChildren
|
|
47
|
+
children: rawChildren,
|
|
48
|
+
...ariaAttributes
|
|
47
49
|
}, ref) => {
|
|
48
50
|
const separatorComponent = typeof separator === 'string' ? /*#__PURE__*/React.createElement(Separator, null, separator) : separator;
|
|
49
51
|
const children = separatorComponent ? Children.toArray(rawChildren).filter(Boolean).map((child, index) => {
|
|
@@ -51,7 +53,7 @@ const Inline = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
51
53
|
key: index
|
|
52
54
|
}, separator && index > 0 ? separatorComponent : null, child);
|
|
53
55
|
}) : rawChildren;
|
|
54
|
-
return /*#__PURE__*/React.createElement(Flex, {
|
|
56
|
+
return /*#__PURE__*/React.createElement(Flex, _extends({}, ariaAttributes, {
|
|
55
57
|
as: as,
|
|
56
58
|
role: role,
|
|
57
59
|
alignItems: alignItems,
|
|
@@ -63,7 +65,7 @@ const Inline = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
63
65
|
xcss: cx(grow === 'hug' && styles.hug, grow === 'fill' && styles.fill, xcss),
|
|
64
66
|
testId: testId,
|
|
65
67
|
ref: ref
|
|
66
|
-
}, children);
|
|
68
|
+
}), children);
|
|
67
69
|
}));
|
|
68
70
|
Inline.displayName = 'Inline';
|
|
69
71
|
export default Inline;
|
|
@@ -48,7 +48,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
|
|
|
48
48
|
action: 'clicked',
|
|
49
49
|
componentName: componentName || 'Pressable',
|
|
50
50
|
packageName: "@atlaskit/primitives",
|
|
51
|
-
packageVersion: "14.10.
|
|
51
|
+
packageVersion: "14.10.2",
|
|
52
52
|
analyticsData: analyticsContext,
|
|
53
53
|
actionSubject: 'button'
|
|
54
54
|
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/* stack.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
3
|
import "./stack.compiled.css";
|
|
3
4
|
import * as React from 'react';
|
|
4
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -34,9 +35,10 @@ const Stack = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
34
35
|
children,
|
|
35
36
|
testId,
|
|
36
37
|
xcss,
|
|
37
|
-
role
|
|
38
|
+
role,
|
|
39
|
+
...ariaAttributes
|
|
38
40
|
}, ref) => {
|
|
39
|
-
return /*#__PURE__*/React.createElement(Flex, {
|
|
41
|
+
return /*#__PURE__*/React.createElement(Flex, _extends({}, ariaAttributes, {
|
|
40
42
|
as: as,
|
|
41
43
|
role: role,
|
|
42
44
|
gap: space,
|
|
@@ -46,7 +48,7 @@ const Stack = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
46
48
|
xcss: cx(grow === 'hug' && styles.hug, grow === 'fill' && styles.fill, xcss),
|
|
47
49
|
testId: testId,
|
|
48
50
|
ref: ref
|
|
49
|
-
}, children);
|
|
51
|
+
}), children);
|
|
50
52
|
}));
|
|
51
53
|
Stack.displayName = 'Stack';
|
|
52
54
|
export default Stack;
|
|
@@ -102,10 +102,12 @@ const Flex = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
102
102
|
testId,
|
|
103
103
|
direction,
|
|
104
104
|
wrap,
|
|
105
|
-
xcss
|
|
105
|
+
xcss,
|
|
106
|
+
id
|
|
106
107
|
}, ref) => {
|
|
107
108
|
const resolvedStyles = parseXcss(xcss);
|
|
108
109
|
return jsx(Component, {
|
|
110
|
+
id: id,
|
|
109
111
|
role: role
|
|
110
112
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
111
113
|
,
|
|
@@ -57,6 +57,7 @@ const Inline = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
57
57
|
xcss,
|
|
58
58
|
testId,
|
|
59
59
|
role,
|
|
60
|
+
id,
|
|
60
61
|
children: rawChildren
|
|
61
62
|
}, ref) => {
|
|
62
63
|
const separatorComponent = typeof separator === 'string' ? jsx(Separator, null, separator) : separator;
|
|
@@ -72,6 +73,7 @@ const Inline = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
72
73
|
// it with cx(defaultStyles, focusRingStyles, xcssStyles) when we've moved away from Emotion.
|
|
73
74
|
const styles = grow ? [flexGrowMap[grow], ...(Array.isArray(xcss) ? xcss : [xcss])] : xcss;
|
|
74
75
|
return jsx(Flex, {
|
|
76
|
+
id: id,
|
|
75
77
|
as: as,
|
|
76
78
|
role: role,
|
|
77
79
|
alignItems: alignItems,
|
|
@@ -85,7 +85,7 @@ const Pressable = /*#__PURE__*/forwardRef(({
|
|
|
85
85
|
action: 'clicked',
|
|
86
86
|
componentName: componentName || 'Pressable',
|
|
87
87
|
packageName: "@atlaskit/primitives",
|
|
88
|
-
packageVersion: "14.10.
|
|
88
|
+
packageVersion: "14.10.2",
|
|
89
89
|
analyticsData: analyticsContext,
|
|
90
90
|
actionSubject: 'button'
|
|
91
91
|
});
|
|
@@ -42,7 +42,8 @@ const Stack = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
42
42
|
children,
|
|
43
43
|
testId,
|
|
44
44
|
xcss,
|
|
45
|
-
role
|
|
45
|
+
role,
|
|
46
|
+
id
|
|
46
47
|
}, ref) => {
|
|
47
48
|
const justifyContent = spread || alignBlock;
|
|
48
49
|
|
|
@@ -51,6 +52,7 @@ const Stack = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
51
52
|
// it with cx(defaultStyles, focusRingStyles, xcssStyles) when we've moved away from Emotion.
|
|
52
53
|
const styles = grow ? [flexGrowMap[grow], ...(Array.isArray(xcss) ? xcss : [xcss])] : xcss;
|
|
53
54
|
return jsx(Flex, {
|
|
55
|
+
id: id,
|
|
54
56
|
as: as,
|
|
55
57
|
role: role,
|
|
56
58
|
gap: space,
|
|
@@ -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: "14.10.
|
|
63
|
+
packageVersion: "14.10.2",
|
|
64
64
|
analyticsData: analyticsContext,
|
|
65
65
|
actionSubject: 'link'
|
|
66
66
|
});
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/* flex.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["as", "role", "alignItems", "justifyContent", "gap", "columnGap", "rowGap", "children", "testId", "direction", "wrap", "xcss"];
|
|
2
5
|
import "./flex.compiled.css";
|
|
3
6
|
import * as React from 'react';
|
|
4
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -97,13 +100,14 @@ var Flex = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
97
100
|
testId = _ref.testId,
|
|
98
101
|
direction = _ref.direction,
|
|
99
102
|
wrap = _ref.wrap,
|
|
100
|
-
xcss = _ref.xcss
|
|
101
|
-
|
|
103
|
+
xcss = _ref.xcss,
|
|
104
|
+
ariaAttributes = _objectWithoutProperties(_ref, _excluded);
|
|
105
|
+
return /*#__PURE__*/React.createElement(Component, _extends({}, ariaAttributes, {
|
|
102
106
|
role: role,
|
|
103
107
|
className: ax([styles.root, gap && columnGapMap[gap], columnGap && columnGapMap[columnGap], gap && rowGapMap[gap], rowGap && rowGapMap[rowGap], alignItems && alignItemsMap[alignItems], direction && flexDirectionMap[direction], justifyContent && justifyContentMap[justifyContent], wrap && flexWrapMap[wrap], xcss]),
|
|
104
108
|
"data-testid": testId,
|
|
105
109
|
ref: ref
|
|
106
|
-
}, children);
|
|
110
|
+
}), children);
|
|
107
111
|
}));
|
|
108
112
|
Flex.displayName = 'Flex';
|
|
109
113
|
export default Flex;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/* inline.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["as", "alignInline", "alignBlock", "shouldWrap", "spread", "grow", "space", "rowSpace", "separator", "xcss", "testId", "role", "children"];
|
|
2
5
|
import "./inline.compiled.css";
|
|
3
6
|
import * as React from 'react';
|
|
4
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -46,14 +49,15 @@ var Inline = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
46
49
|
xcss = _ref2.xcss,
|
|
47
50
|
testId = _ref2.testId,
|
|
48
51
|
role = _ref2.role,
|
|
49
|
-
rawChildren = _ref2.children
|
|
52
|
+
rawChildren = _ref2.children,
|
|
53
|
+
ariaAttributes = _objectWithoutProperties(_ref2, _excluded);
|
|
50
54
|
var separatorComponent = typeof separator === 'string' ? /*#__PURE__*/React.createElement(Separator, null, separator) : separator;
|
|
51
55
|
var children = separatorComponent ? Children.toArray(rawChildren).filter(Boolean).map(function (child, index) {
|
|
52
56
|
return /*#__PURE__*/React.createElement(Fragment, {
|
|
53
57
|
key: index
|
|
54
58
|
}, separator && index > 0 ? separatorComponent : null, child);
|
|
55
59
|
}) : rawChildren;
|
|
56
|
-
return /*#__PURE__*/React.createElement(Flex, {
|
|
60
|
+
return /*#__PURE__*/React.createElement(Flex, _extends({}, ariaAttributes, {
|
|
57
61
|
as: as,
|
|
58
62
|
role: role,
|
|
59
63
|
alignItems: alignItems,
|
|
@@ -65,7 +69,7 @@ var Inline = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
65
69
|
xcss: cx(grow === 'hug' && styles.hug, grow === 'fill' && styles.fill, xcss),
|
|
66
70
|
testId: testId,
|
|
67
71
|
ref: ref
|
|
68
|
-
}, children);
|
|
72
|
+
}), children);
|
|
69
73
|
}));
|
|
70
74
|
Inline.displayName = 'Inline';
|
|
71
75
|
export default Inline;
|
|
@@ -52,7 +52,7 @@ var Pressable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
52
52
|
action: 'clicked',
|
|
53
53
|
componentName: componentName || 'Pressable',
|
|
54
54
|
packageName: "@atlaskit/primitives",
|
|
55
|
-
packageVersion: "14.10.
|
|
55
|
+
packageVersion: "14.10.2",
|
|
56
56
|
analyticsData: analyticsContext,
|
|
57
57
|
actionSubject: 'button'
|
|
58
58
|
});
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/* stack.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
|
+
var _excluded = ["as", "alignInline", "alignBlock", "spread", "grow", "space", "children", "testId", "xcss", "role"];
|
|
2
5
|
import "./stack.compiled.css";
|
|
3
6
|
import * as React from 'react';
|
|
4
7
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -35,8 +38,9 @@ var Stack = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
35
38
|
children = _ref.children,
|
|
36
39
|
testId = _ref.testId,
|
|
37
40
|
xcss = _ref.xcss,
|
|
38
|
-
role = _ref.role
|
|
39
|
-
|
|
41
|
+
role = _ref.role,
|
|
42
|
+
ariaAttributes = _objectWithoutProperties(_ref, _excluded);
|
|
43
|
+
return /*#__PURE__*/React.createElement(Flex, _extends({}, ariaAttributes, {
|
|
40
44
|
as: as,
|
|
41
45
|
role: role,
|
|
42
46
|
gap: space,
|
|
@@ -46,7 +50,7 @@ var Stack = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
46
50
|
xcss: cx(grow === 'hug' && styles.hug, grow === 'fill' && styles.fill, xcss),
|
|
47
51
|
testId: testId,
|
|
48
52
|
ref: ref
|
|
49
|
-
}, children);
|
|
53
|
+
}), children);
|
|
50
54
|
}));
|
|
51
55
|
Stack.displayName = 'Stack';
|
|
52
56
|
export default Stack;
|
|
@@ -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: "14.10.
|
|
97
|
+
packageVersion: "14.10.2",
|
|
98
98
|
analyticsData: analyticsContext,
|
|
99
99
|
actionSubject: 'link'
|
|
100
100
|
});
|
|
@@ -103,9 +103,11 @@ var Flex = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
103
103
|
testId = _ref.testId,
|
|
104
104
|
direction = _ref.direction,
|
|
105
105
|
wrap = _ref.wrap,
|
|
106
|
-
xcss = _ref.xcss
|
|
106
|
+
xcss = _ref.xcss,
|
|
107
|
+
id = _ref.id;
|
|
107
108
|
var resolvedStyles = parseXcss(xcss);
|
|
108
109
|
return jsx(Component, {
|
|
110
|
+
id: id,
|
|
109
111
|
role: role
|
|
110
112
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
111
113
|
,
|
|
@@ -61,6 +61,7 @@ var Inline = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
61
61
|
xcss = _ref2.xcss,
|
|
62
62
|
testId = _ref2.testId,
|
|
63
63
|
role = _ref2.role,
|
|
64
|
+
id = _ref2.id,
|
|
64
65
|
rawChildren = _ref2.children;
|
|
65
66
|
var separatorComponent = typeof separator === 'string' ? jsx(Separator, null, separator) : separator;
|
|
66
67
|
var children = separatorComponent ? Children.toArray(rawChildren).filter(Boolean).map(function (child, index) {
|
|
@@ -75,6 +76,7 @@ var Inline = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
75
76
|
// it with cx(defaultStyles, focusRingStyles, xcssStyles) when we've moved away from Emotion.
|
|
76
77
|
var styles = grow ? [flexGrowMap[grow]].concat(_toConsumableArray(Array.isArray(xcss) ? xcss : [xcss])) : xcss;
|
|
77
78
|
return jsx(Flex, {
|
|
79
|
+
id: id,
|
|
78
80
|
as: as,
|
|
79
81
|
role: role,
|
|
80
82
|
alignItems: alignItems,
|
|
@@ -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: "14.10.
|
|
92
|
+
packageVersion: "14.10.2",
|
|
93
93
|
analyticsData: analyticsContext,
|
|
94
94
|
actionSubject: 'button'
|
|
95
95
|
});
|
|
@@ -44,7 +44,8 @@ var Stack = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
44
44
|
children = _ref.children,
|
|
45
45
|
testId = _ref.testId,
|
|
46
46
|
xcss = _ref.xcss,
|
|
47
|
-
role = _ref.role
|
|
47
|
+
role = _ref.role,
|
|
48
|
+
id = _ref.id;
|
|
48
49
|
var justifyContent = spread || alignBlock;
|
|
49
50
|
|
|
50
51
|
// We're type coercing this as Compiled styles in an array isn't supported by the types
|
|
@@ -52,6 +53,7 @@ var Stack = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
52
53
|
// it with cx(defaultStyles, focusRingStyles, xcssStyles) when we've moved away from Emotion.
|
|
53
54
|
var styles = grow ? [flexGrowMap[grow]].concat(_toConsumableArray(Array.isArray(xcss) ? xcss : [xcss])) : xcss;
|
|
54
55
|
return jsx(Flex, {
|
|
56
|
+
id: id,
|
|
55
57
|
as: as,
|
|
56
58
|
role: role,
|
|
57
59
|
gap: space,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import { type ElementType, type ReactNode } from 'react';
|
|
5
|
+
import { type AriaAttributes, type ElementType, type ReactNode } from 'react';
|
|
6
6
|
import type { AlignItems, BasePrimitiveProps, Direction, GapToken, JustifyContent, Wrap } from './types';
|
|
7
7
|
export type FlexProps<T extends ElementType = 'div'> = {
|
|
8
8
|
/**
|
|
@@ -45,7 +45,7 @@ export type FlexProps<T extends ElementType = 'div'> = {
|
|
|
45
45
|
* Forwarded ref element.
|
|
46
46
|
*/
|
|
47
47
|
ref?: React.ComponentPropsWithRef<T>['ref'];
|
|
48
|
-
} & BasePrimitiveProps;
|
|
48
|
+
} & BasePrimitiveProps & AriaAttributes;
|
|
49
49
|
/**
|
|
50
50
|
* __Flex__
|
|
51
51
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import { type ElementType, type ReactNode } from 'react';
|
|
5
|
+
import { type AriaAttributes, type ElementType, type ReactNode } from 'react';
|
|
6
6
|
import { type FlexProps } from './flex';
|
|
7
7
|
import type { AlignBlock, AlignInline, BasePrimitiveProps, Grow, Spread } from './types';
|
|
8
8
|
export type InlineProps<T extends ElementType = 'div'> = {
|
|
@@ -51,7 +51,7 @@ export type InlineProps<T extends ElementType = 'div'> = {
|
|
|
51
51
|
* Forwarded ref element.
|
|
52
52
|
*/
|
|
53
53
|
ref?: React.ComponentPropsWithRef<T>['ref'];
|
|
54
|
-
} & BasePrimitiveProps;
|
|
54
|
+
} & BasePrimitiveProps & AriaAttributes;
|
|
55
55
|
/**
|
|
56
56
|
* __Inline__
|
|
57
57
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import { type ElementType, type ReactNode } from 'react';
|
|
5
|
+
import { type AriaAttributes, type ElementType, type ReactNode } from 'react';
|
|
6
6
|
import { type FlexProps } from './flex';
|
|
7
7
|
import type { AlignBlock, AlignInline, BasePrimitiveProps, Grow, Spread } from './types';
|
|
8
8
|
export type StackProps<T extends ElementType = 'div'> = {
|
|
@@ -38,7 +38,7 @@ export type StackProps<T extends ElementType = 'div'> = {
|
|
|
38
38
|
* Forwarded ref element.
|
|
39
39
|
*/
|
|
40
40
|
ref?: React.ComponentPropsWithRef<T>['ref'];
|
|
41
|
-
} & BasePrimitiveProps;
|
|
41
|
+
} & BasePrimitiveProps & AriaAttributes;
|
|
42
42
|
/**
|
|
43
43
|
* __Stack__
|
|
44
44
|
*
|
|
@@ -42,6 +42,10 @@ export type FlexProps<T extends ElementType = 'div'> = {
|
|
|
42
42
|
* Elements to be rendered inside the Flex.
|
|
43
43
|
*/
|
|
44
44
|
children: ReactNode;
|
|
45
|
+
/**
|
|
46
|
+
* The [HTML `id` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id).
|
|
47
|
+
*/
|
|
48
|
+
id?: string;
|
|
45
49
|
/**
|
|
46
50
|
* Forwarded ref element.
|
|
47
51
|
*/
|
|
@@ -47,6 +47,10 @@ export type InlineProps<T extends ElementType = 'div'> = {
|
|
|
47
47
|
* Elements to be rendered inside the Inline.
|
|
48
48
|
*/
|
|
49
49
|
children: ReactNode;
|
|
50
|
+
/**
|
|
51
|
+
* The [HTML `id` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id).
|
|
52
|
+
*/
|
|
53
|
+
id?: string;
|
|
50
54
|
/**
|
|
51
55
|
* Forwarded ref element.
|
|
52
56
|
*/
|
|
@@ -34,6 +34,10 @@ export type StackProps<T extends ElementType = 'div'> = {
|
|
|
34
34
|
* Elements to be rendered inside the Stack.
|
|
35
35
|
*/
|
|
36
36
|
children: ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* The [HTML `id` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id).
|
|
39
|
+
*/
|
|
40
|
+
id?: string;
|
|
37
41
|
/**
|
|
38
42
|
* Forwarded ref element.
|
|
39
43
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import { type ElementType, type ReactNode } from 'react';
|
|
5
|
+
import { type AriaAttributes, type ElementType, type ReactNode } from 'react';
|
|
6
6
|
import type { AlignItems, BasePrimitiveProps, Direction, GapToken, JustifyContent, Wrap } from './types';
|
|
7
7
|
export type FlexProps<T extends ElementType = 'div'> = {
|
|
8
8
|
/**
|
|
@@ -45,7 +45,7 @@ export type FlexProps<T extends ElementType = 'div'> = {
|
|
|
45
45
|
* Forwarded ref element.
|
|
46
46
|
*/
|
|
47
47
|
ref?: React.ComponentPropsWithRef<T>['ref'];
|
|
48
|
-
} & BasePrimitiveProps;
|
|
48
|
+
} & BasePrimitiveProps & AriaAttributes;
|
|
49
49
|
/**
|
|
50
50
|
* __Flex__
|
|
51
51
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import { type ElementType, type ReactNode } from 'react';
|
|
5
|
+
import { type AriaAttributes, type ElementType, type ReactNode } from 'react';
|
|
6
6
|
import { type FlexProps } from './flex';
|
|
7
7
|
import type { AlignBlock, AlignInline, BasePrimitiveProps, Grow, Spread } from './types';
|
|
8
8
|
export type InlineProps<T extends ElementType = 'div'> = {
|
|
@@ -51,7 +51,7 @@ export type InlineProps<T extends ElementType = 'div'> = {
|
|
|
51
51
|
* Forwarded ref element.
|
|
52
52
|
*/
|
|
53
53
|
ref?: React.ComponentPropsWithRef<T>['ref'];
|
|
54
|
-
} & BasePrimitiveProps;
|
|
54
|
+
} & BasePrimitiveProps & AriaAttributes;
|
|
55
55
|
/**
|
|
56
56
|
* __Inline__
|
|
57
57
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @jsxRuntime classic
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
|
-
import { type ElementType, type ReactNode } from 'react';
|
|
5
|
+
import { type AriaAttributes, type ElementType, type ReactNode } from 'react';
|
|
6
6
|
import { type FlexProps } from './flex';
|
|
7
7
|
import type { AlignBlock, AlignInline, BasePrimitiveProps, Grow, Spread } from './types';
|
|
8
8
|
export type StackProps<T extends ElementType = 'div'> = {
|
|
@@ -38,7 +38,7 @@ export type StackProps<T extends ElementType = 'div'> = {
|
|
|
38
38
|
* Forwarded ref element.
|
|
39
39
|
*/
|
|
40
40
|
ref?: React.ComponentPropsWithRef<T>['ref'];
|
|
41
|
-
} & BasePrimitiveProps;
|
|
41
|
+
} & BasePrimitiveProps & AriaAttributes;
|
|
42
42
|
/**
|
|
43
43
|
* __Stack__
|
|
44
44
|
*
|
|
@@ -42,6 +42,10 @@ export type FlexProps<T extends ElementType = 'div'> = {
|
|
|
42
42
|
* Elements to be rendered inside the Flex.
|
|
43
43
|
*/
|
|
44
44
|
children: ReactNode;
|
|
45
|
+
/**
|
|
46
|
+
* The [HTML `id` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id).
|
|
47
|
+
*/
|
|
48
|
+
id?: string;
|
|
45
49
|
/**
|
|
46
50
|
* Forwarded ref element.
|
|
47
51
|
*/
|
|
@@ -47,6 +47,10 @@ export type InlineProps<T extends ElementType = 'div'> = {
|
|
|
47
47
|
* Elements to be rendered inside the Inline.
|
|
48
48
|
*/
|
|
49
49
|
children: ReactNode;
|
|
50
|
+
/**
|
|
51
|
+
* The [HTML `id` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id).
|
|
52
|
+
*/
|
|
53
|
+
id?: string;
|
|
50
54
|
/**
|
|
51
55
|
* Forwarded ref element.
|
|
52
56
|
*/
|
|
@@ -34,6 +34,10 @@ export type StackProps<T extends ElementType = 'div'> = {
|
|
|
34
34
|
* Elements to be rendered inside the Stack.
|
|
35
35
|
*/
|
|
36
36
|
children: ReactNode;
|
|
37
|
+
/**
|
|
38
|
+
* The [HTML `id` attribute](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id).
|
|
39
|
+
*/
|
|
40
|
+
id?: string;
|
|
37
41
|
/**
|
|
38
42
|
* Forwarded ref element.
|
|
39
43
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/primitives",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.11.0",
|
|
4
4
|
"description": "Primitives are token-backed low-level building blocks.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
},
|
|
134
134
|
"dependencies": {
|
|
135
135
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
136
|
-
"@atlaskit/app-provider": "^2.
|
|
136
|
+
"@atlaskit/app-provider": "^2.3.0",
|
|
137
137
|
"@atlaskit/css": "^0.12.0",
|
|
138
138
|
"@atlaskit/ds-lib": "^5.0.0",
|
|
139
139
|
"@atlaskit/interaction-context": "^3.0.0",
|
|
@@ -156,26 +156,26 @@
|
|
|
156
156
|
"@af/integration-testing": "workspace:^",
|
|
157
157
|
"@af/visual-regression": "workspace:^",
|
|
158
158
|
"@atlaskit/avatar": "^25.1.0",
|
|
159
|
-
"@atlaskit/button": "^23.
|
|
159
|
+
"@atlaskit/button": "^23.3.0",
|
|
160
160
|
"@atlaskit/checkbox": "^17.1.0",
|
|
161
161
|
"@atlaskit/code": "^17.2.0",
|
|
162
162
|
"@atlaskit/docs": "^11.0.0",
|
|
163
163
|
"@atlaskit/dropdown-menu": "^16.3.0",
|
|
164
|
-
"@atlaskit/flag": "^17.
|
|
164
|
+
"@atlaskit/flag": "^17.3.0",
|
|
165
165
|
"@atlaskit/form": "^12.0.0",
|
|
166
166
|
"@atlaskit/heading": "^5.2.0",
|
|
167
|
-
"@atlaskit/icon": "^27.
|
|
167
|
+
"@atlaskit/icon": "^27.7.0",
|
|
168
168
|
"@atlaskit/icon-object": "^7.1.0",
|
|
169
169
|
"@atlaskit/image": "^3.0.0",
|
|
170
170
|
"@atlaskit/link": "^3.2.0",
|
|
171
|
-
"@atlaskit/logo": "^19.
|
|
171
|
+
"@atlaskit/logo": "^19.6.0",
|
|
172
172
|
"@atlaskit/lozenge": "^13.0.0",
|
|
173
173
|
"@atlaskit/motion": "^5.1.0",
|
|
174
174
|
"@atlaskit/range": "^9.1.0",
|
|
175
|
-
"@atlaskit/section-message": "^8.
|
|
175
|
+
"@atlaskit/section-message": "^8.5.0",
|
|
176
176
|
"@atlaskit/textfield": "^8.0.0",
|
|
177
|
-
"@atlaskit/toggle": "^15.
|
|
178
|
-
"@atlaskit/tooltip": "^20.
|
|
177
|
+
"@atlaskit/toggle": "^15.1.0",
|
|
178
|
+
"@atlaskit/tooltip": "^20.4.0",
|
|
179
179
|
"@atlaskit/visual-regression": "workspace:^",
|
|
180
180
|
"@atlassian/analytics-bridge": "^0.7.0",
|
|
181
181
|
"@atlassian/codegen": "^0.1.0",
|