@atlaskit/primitives 1.2.1 → 1.2.2
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 +6 -0
- package/dist/cjs/components/bleed.js +0 -1
- package/dist/cjs/components/stack.js +2 -1
- package/dist/cjs/responsive/build-media-query-css.js +2 -2
- package/dist/cjs/xcss/style-maps.partial.js +2 -2
- package/dist/es2019/components/bleed.js +0 -1
- package/dist/es2019/components/stack.js +1 -1
- package/dist/es2019/xcss/style-maps.partial.js +2 -2
- package/dist/esm/components/bleed.js +0 -1
- package/dist/esm/components/stack.js +2 -1
- package/dist/esm/responsive/build-media-query-css.js +2 -2
- package/dist/esm/xcss/style-maps.partial.js +2 -2
- package/dist/types/components/inline.d.ts +1 -5
- package/dist/types/components/stack.d.ts +3 -7
- package/dist/types/components/types.d.ts +4 -0
- package/dist/types/xcss/style-maps.partial.d.ts +2 -2
- package/dist/types-ts4.5/components/inline.d.ts +1 -5
- package/dist/types-ts4.5/components/stack.d.ts +3 -7
- package/dist/types-ts4.5/components/types.d.ts +4 -0
- package/dist/types-ts4.5/xcss/style-maps.partial.d.ts +2 -2
- package/extract-react-types/inline-props.tsx +1 -1
- package/extract-react-types/stack-props.tsx +2 -2
- package/package.json +2 -3
- package/report.api.md +8 -20
- package/tmp/api-report-tmp.d.ts +8 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/primitives
|
|
2
2
|
|
|
3
|
+
## 1.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9a3fd8455fb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9a3fd8455fb) - Stack `alignBlock` prop now accepts `'stretch'` which is also the default value for the `alignBlock` prop.
|
|
8
|
+
|
|
3
9
|
## 1.2.1
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -40,7 +40,8 @@ var flexGrowMap = {
|
|
|
40
40
|
var Stack = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
41
41
|
var as = _ref.as,
|
|
42
42
|
alignItems = _ref.alignInline,
|
|
43
|
-
alignBlock = _ref.alignBlock,
|
|
43
|
+
_ref$alignBlock = _ref.alignBlock,
|
|
44
|
+
alignBlock = _ref$alignBlock === void 0 ? 'stretch' : _ref$alignBlock,
|
|
44
45
|
spread = _ref.spread,
|
|
45
46
|
grow = _ref.grow,
|
|
46
47
|
space = _ref.space,
|
|
@@ -9,8 +9,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _constants = require("./constants");
|
|
11
11
|
var _mediaHelper = require("./media-helper");
|
|
12
|
-
function ownKeys(
|
|
13
|
-
function _objectSpread(
|
|
12
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
14
|
/**
|
|
15
15
|
* Build a map of breakpoints to css with media queries and nested styles.
|
|
16
16
|
*
|
|
@@ -60,11 +60,11 @@ exports.spaceMap = spaceMap;
|
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
62
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
63
|
-
* @codegen <<SignedSource::
|
|
63
|
+
* @codegen <<SignedSource::4a24a8ef38d5bf0a2803ceff3c393915>>
|
|
64
64
|
* @codegenId colors
|
|
65
65
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
66
66
|
* @codegenParams ["border", "background", "shadow", "text", "fill"]
|
|
67
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
67
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::65311fc2a6a35bb34b99c859362ac840>>
|
|
68
68
|
*/
|
|
69
69
|
var borderColorMap = {
|
|
70
70
|
'color.border': "var(--ds-border, #091e4221)",
|
|
@@ -48,11 +48,11 @@ export const spaceMap = {
|
|
|
48
48
|
*/
|
|
49
49
|
/**
|
|
50
50
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
51
|
-
* @codegen <<SignedSource::
|
|
51
|
+
* @codegen <<SignedSource::4a24a8ef38d5bf0a2803ceff3c393915>>
|
|
52
52
|
* @codegenId colors
|
|
53
53
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
54
54
|
* @codegenParams ["border", "background", "shadow", "text", "fill"]
|
|
55
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
55
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::65311fc2a6a35bb34b99c859362ac840>>
|
|
56
56
|
*/
|
|
57
57
|
export const borderColorMap = {
|
|
58
58
|
'color.border': "var(--ds-border, #091e4221)",
|
|
@@ -32,7 +32,8 @@ var flexGrowMap = {
|
|
|
32
32
|
var Stack = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
33
33
|
var as = _ref.as,
|
|
34
34
|
alignItems = _ref.alignInline,
|
|
35
|
-
alignBlock = _ref.alignBlock,
|
|
35
|
+
_ref$alignBlock = _ref.alignBlock,
|
|
36
|
+
alignBlock = _ref$alignBlock === void 0 ? 'stretch' : _ref$alignBlock,
|
|
36
37
|
spread = _ref.spread,
|
|
37
38
|
grow = _ref.grow,
|
|
38
39
|
space = _ref.space,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
5
|
import { UNSAFE_BREAKPOINTS_ORDERED_LIST } from './constants';
|
|
6
6
|
import { media, UNSAFE_media } from './media-helper';
|
|
@@ -49,11 +49,11 @@ export var spaceMap = {
|
|
|
49
49
|
*/
|
|
50
50
|
/**
|
|
51
51
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
52
|
-
* @codegen <<SignedSource::
|
|
52
|
+
* @codegen <<SignedSource::4a24a8ef38d5bf0a2803ceff3c393915>>
|
|
53
53
|
* @codegenId colors
|
|
54
54
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
55
55
|
* @codegenParams ["border", "background", "shadow", "text", "fill"]
|
|
56
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
56
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::65311fc2a6a35bb34b99c859362ac840>>
|
|
57
57
|
*/
|
|
58
58
|
export var borderColorMap = {
|
|
59
59
|
'color.border': "var(--ds-border, #091e4221)",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { ElementType, ReactNode } from 'react';
|
|
3
3
|
import { type Space } from '../xcss/style-maps.partial';
|
|
4
|
-
import { BasePrimitiveProps } from './types';
|
|
4
|
+
import type { AlignBlock, AlignInline, BasePrimitiveProps, Grow, Spread } from './types';
|
|
5
5
|
export type InlineProps<T extends ElementType = 'div'> = {
|
|
6
6
|
/**
|
|
7
7
|
* The DOM element to render as the Inline. Defaults to `div`.
|
|
@@ -49,10 +49,6 @@ export type InlineProps<T extends ElementType = 'div'> = {
|
|
|
49
49
|
*/
|
|
50
50
|
ref?: React.ComponentPropsWithRef<T>['ref'];
|
|
51
51
|
} & BasePrimitiveProps;
|
|
52
|
-
export type AlignInline = 'start' | 'center' | 'end';
|
|
53
|
-
export type AlignBlock = 'start' | 'center' | 'end' | 'baseline' | 'stretch';
|
|
54
|
-
export type Spread = 'space-between';
|
|
55
|
-
export type Grow = 'hug' | 'fill';
|
|
56
52
|
/**
|
|
57
53
|
* __Inline__
|
|
58
54
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { ElementType, ReactNode } from 'react';
|
|
3
3
|
import { type Space } from '../xcss/style-maps.partial';
|
|
4
|
-
import type { BasePrimitiveProps } from './types';
|
|
4
|
+
import type { AlignBlock, AlignInline, BasePrimitiveProps, Grow, Spread } from './types';
|
|
5
5
|
export type StackProps<T extends ElementType = 'div'> = {
|
|
6
6
|
/**
|
|
7
7
|
* The DOM element to render as the Stack. Defaults to `div`.
|
|
@@ -10,7 +10,7 @@ export type StackProps<T extends ElementType = 'div'> = {
|
|
|
10
10
|
/**
|
|
11
11
|
* Used to align children along the main axis.
|
|
12
12
|
*/
|
|
13
|
-
alignBlock?: AlignBlock
|
|
13
|
+
alignBlock?: Exclude<AlignBlock, 'baseline'>;
|
|
14
14
|
/**
|
|
15
15
|
* Used to align children along the cross axis.
|
|
16
16
|
*/
|
|
@@ -36,10 +36,6 @@ export type StackProps<T extends ElementType = 'div'> = {
|
|
|
36
36
|
*/
|
|
37
37
|
ref?: React.ComponentPropsWithRef<T>['ref'];
|
|
38
38
|
} & BasePrimitiveProps;
|
|
39
|
-
export type AlignInline = 'start' | 'center' | 'end';
|
|
40
|
-
export type AlignBlock = 'start' | 'center' | 'end';
|
|
41
|
-
export type Spread = 'space-between';
|
|
42
|
-
export type Grow = 'hug' | 'fill';
|
|
43
39
|
/**
|
|
44
40
|
* __Stack__
|
|
45
41
|
*
|
|
@@ -62,7 +58,7 @@ declare const Stack: import("react").MemoExoticComponent<import("react").Forward
|
|
|
62
58
|
/**
|
|
63
59
|
* Used to align children along the main axis.
|
|
64
60
|
*/
|
|
65
|
-
alignBlock?:
|
|
61
|
+
alignBlock?: "stretch" | "center" | "end" | "start" | undefined;
|
|
66
62
|
/**
|
|
67
63
|
* Used to align children along the cross axis.
|
|
68
64
|
*/
|
|
@@ -19,3 +19,7 @@ export type BasePrimitiveProps = {
|
|
|
19
19
|
*/
|
|
20
20
|
role?: string;
|
|
21
21
|
};
|
|
22
|
+
export type AlignInline = 'start' | 'center' | 'end' | 'stretch';
|
|
23
|
+
export type AlignBlock = 'start' | 'center' | 'end' | 'baseline' | 'stretch';
|
|
24
|
+
export type Spread = 'space-between';
|
|
25
|
+
export type Grow = 'hug' | 'fill';
|
|
@@ -50,11 +50,11 @@ export type Space = keyof typeof spaceMap;
|
|
|
50
50
|
*/
|
|
51
51
|
/**
|
|
52
52
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
53
|
-
* @codegen <<SignedSource::
|
|
53
|
+
* @codegen <<SignedSource::4a24a8ef38d5bf0a2803ceff3c393915>>
|
|
54
54
|
* @codegenId colors
|
|
55
55
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
56
56
|
* @codegenParams ["border", "background", "shadow", "text", "fill"]
|
|
57
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
57
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::65311fc2a6a35bb34b99c859362ac840>>
|
|
58
58
|
*/
|
|
59
59
|
export declare const borderColorMap: {
|
|
60
60
|
readonly 'color.border': "var(--ds-border)";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { ElementType, ReactNode } from 'react';
|
|
3
3
|
import { type Space } from '../xcss/style-maps.partial';
|
|
4
|
-
import { BasePrimitiveProps } from './types';
|
|
4
|
+
import type { AlignBlock, AlignInline, BasePrimitiveProps, Grow, Spread } from './types';
|
|
5
5
|
export type InlineProps<T extends ElementType = 'div'> = {
|
|
6
6
|
/**
|
|
7
7
|
* The DOM element to render as the Inline. Defaults to `div`.
|
|
@@ -49,10 +49,6 @@ export type InlineProps<T extends ElementType = 'div'> = {
|
|
|
49
49
|
*/
|
|
50
50
|
ref?: React.ComponentPropsWithRef<T>['ref'];
|
|
51
51
|
} & BasePrimitiveProps;
|
|
52
|
-
export type AlignInline = 'start' | 'center' | 'end';
|
|
53
|
-
export type AlignBlock = 'start' | 'center' | 'end' | 'baseline' | 'stretch';
|
|
54
|
-
export type Spread = 'space-between';
|
|
55
|
-
export type Grow = 'hug' | 'fill';
|
|
56
52
|
/**
|
|
57
53
|
* __Inline__
|
|
58
54
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { ElementType, ReactNode } from 'react';
|
|
3
3
|
import { type Space } from '../xcss/style-maps.partial';
|
|
4
|
-
import type { BasePrimitiveProps } from './types';
|
|
4
|
+
import type { AlignBlock, AlignInline, BasePrimitiveProps, Grow, Spread } from './types';
|
|
5
5
|
export type StackProps<T extends ElementType = 'div'> = {
|
|
6
6
|
/**
|
|
7
7
|
* The DOM element to render as the Stack. Defaults to `div`.
|
|
@@ -10,7 +10,7 @@ export type StackProps<T extends ElementType = 'div'> = {
|
|
|
10
10
|
/**
|
|
11
11
|
* Used to align children along the main axis.
|
|
12
12
|
*/
|
|
13
|
-
alignBlock?: AlignBlock
|
|
13
|
+
alignBlock?: Exclude<AlignBlock, 'baseline'>;
|
|
14
14
|
/**
|
|
15
15
|
* Used to align children along the cross axis.
|
|
16
16
|
*/
|
|
@@ -36,10 +36,6 @@ export type StackProps<T extends ElementType = 'div'> = {
|
|
|
36
36
|
*/
|
|
37
37
|
ref?: React.ComponentPropsWithRef<T>['ref'];
|
|
38
38
|
} & BasePrimitiveProps;
|
|
39
|
-
export type AlignInline = 'start' | 'center' | 'end';
|
|
40
|
-
export type AlignBlock = 'start' | 'center' | 'end';
|
|
41
|
-
export type Spread = 'space-between';
|
|
42
|
-
export type Grow = 'hug' | 'fill';
|
|
43
39
|
/**
|
|
44
40
|
* __Stack__
|
|
45
41
|
*
|
|
@@ -62,7 +58,7 @@ declare const Stack: import("react").MemoExoticComponent<import("react").Forward
|
|
|
62
58
|
/**
|
|
63
59
|
* Used to align children along the main axis.
|
|
64
60
|
*/
|
|
65
|
-
alignBlock?:
|
|
61
|
+
alignBlock?: "stretch" | "center" | "end" | "start" | undefined;
|
|
66
62
|
/**
|
|
67
63
|
* Used to align children along the cross axis.
|
|
68
64
|
*/
|
|
@@ -19,3 +19,7 @@ export type BasePrimitiveProps = {
|
|
|
19
19
|
*/
|
|
20
20
|
role?: string;
|
|
21
21
|
};
|
|
22
|
+
export type AlignInline = 'start' | 'center' | 'end' | 'stretch';
|
|
23
|
+
export type AlignBlock = 'start' | 'center' | 'end' | 'baseline' | 'stretch';
|
|
24
|
+
export type Spread = 'space-between';
|
|
25
|
+
export type Grow = 'hug' | 'fill';
|
|
@@ -50,11 +50,11 @@ export type Space = keyof typeof spaceMap;
|
|
|
50
50
|
*/
|
|
51
51
|
/**
|
|
52
52
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
53
|
-
* @codegen <<SignedSource::
|
|
53
|
+
* @codegen <<SignedSource::4a24a8ef38d5bf0a2803ceff3c393915>>
|
|
54
54
|
* @codegenId colors
|
|
55
55
|
* @codegenCommand yarn workspace @atlaskit/primitives codegen-styles
|
|
56
56
|
* @codegenParams ["border", "background", "shadow", "text", "fill"]
|
|
57
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::
|
|
57
|
+
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-light.tsx <<SignedSource::65311fc2a6a35bb34b99c859362ac840>>
|
|
58
58
|
*/
|
|
59
59
|
export declare const borderColorMap: {
|
|
60
60
|
readonly 'color.border': "var(--ds-border)";
|
|
@@ -5,7 +5,7 @@ import type {
|
|
|
5
5
|
AlignInline,
|
|
6
6
|
Grow,
|
|
7
7
|
Spread,
|
|
8
|
-
} from '../src/components/
|
|
8
|
+
} from '../src/components/types';
|
|
9
9
|
|
|
10
10
|
type Space =
|
|
11
11
|
| 'space.0'
|
|
@@ -31,7 +31,7 @@ interface StackProps<T extends ElementType = 'div'> {
|
|
|
31
31
|
/**
|
|
32
32
|
* Used to align children along the main axis.
|
|
33
33
|
*/
|
|
34
|
-
alignBlock?: AlignBlock
|
|
34
|
+
alignBlock?: Exclude<AlignBlock, 'baseline'>;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Used to align children along the cross axis.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/primitives",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Primitives are token-backed low-level building blocks.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"codegen-styles": "ts-node -r tsconfig-paths/register ./scripts/codegen-styles.tsx"
|
|
117
117
|
},
|
|
118
118
|
"dependencies": {
|
|
119
|
-
"@atlaskit/tokens": "^1.
|
|
119
|
+
"@atlaskit/tokens": "^1.18.0",
|
|
120
120
|
"@babel/runtime": "^7.0.0",
|
|
121
121
|
"@emotion/react": "^11.7.1",
|
|
122
122
|
"@emotion/serialize": "^1.1.0",
|
|
@@ -126,7 +126,6 @@
|
|
|
126
126
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
127
127
|
},
|
|
128
128
|
"devDependencies": {
|
|
129
|
-
"@af/visual-regression": "*",
|
|
130
129
|
"@atlaskit/ds-lib": "*",
|
|
131
130
|
"@atlaskit/ssr": "*",
|
|
132
131
|
"@atlaskit/visual-regression": "*",
|
package/report.api.md
CHANGED
|
@@ -34,9 +34,6 @@ import { SerializedStyles as SerializedStyles_2 } from '@emotion/react';
|
|
|
34
34
|
// @public (undocumented)
|
|
35
35
|
type AlignBlock = 'baseline' | 'center' | 'end' | 'start' | 'stretch';
|
|
36
36
|
|
|
37
|
-
// @public (undocumented)
|
|
38
|
-
type AlignBlock_2 = 'center' | 'end' | 'start';
|
|
39
|
-
|
|
40
37
|
// @public (undocumented)
|
|
41
38
|
type AlignContent = keyof typeof alignContentMap;
|
|
42
39
|
|
|
@@ -52,10 +49,7 @@ const alignContentMap: {
|
|
|
52
49
|
};
|
|
53
50
|
|
|
54
51
|
// @public (undocumented)
|
|
55
|
-
type AlignInline = 'center' | 'end' | 'start';
|
|
56
|
-
|
|
57
|
-
// @public (undocumented)
|
|
58
|
-
type AlignInline_2 = 'center' | 'end' | 'start';
|
|
52
|
+
type AlignInline = 'center' | 'end' | 'start' | 'stretch';
|
|
59
53
|
|
|
60
54
|
// @public (undocumented)
|
|
61
55
|
type AlignItems = keyof typeof alignItemsMap;
|
|
@@ -627,9 +621,6 @@ export type GridProps<T extends ElementType = 'div'> = {
|
|
|
627
621
|
// @public (undocumented)
|
|
628
622
|
type Grow = 'fill' | 'hug';
|
|
629
623
|
|
|
630
|
-
// @public (undocumented)
|
|
631
|
-
type Grow_2 = 'fill' | 'hug';
|
|
632
|
-
|
|
633
624
|
// @public
|
|
634
625
|
export const Inline: MemoExoticComponent<
|
|
635
626
|
ForwardRefExoticComponent<
|
|
@@ -829,19 +820,16 @@ const spaceMap: {
|
|
|
829
820
|
// @public (undocumented)
|
|
830
821
|
type Spread = 'space-between';
|
|
831
822
|
|
|
832
|
-
// @public (undocumented)
|
|
833
|
-
type Spread_2 = 'space-between';
|
|
834
|
-
|
|
835
823
|
// @public
|
|
836
824
|
export const Stack: MemoExoticComponent<
|
|
837
825
|
ForwardRefExoticComponent<
|
|
838
826
|
Pick<
|
|
839
827
|
{
|
|
840
828
|
as?: 'div' | 'ol' | 'span' | 'ul' | undefined;
|
|
841
|
-
alignBlock?:
|
|
842
|
-
alignInline?:
|
|
829
|
+
alignBlock?: 'center' | 'end' | 'start' | 'stretch' | undefined;
|
|
830
|
+
alignInline?: AlignInline | undefined;
|
|
843
831
|
spread?: 'space-between' | undefined;
|
|
844
|
-
grow?:
|
|
832
|
+
grow?: Grow | undefined;
|
|
845
833
|
space?:
|
|
846
834
|
| 'space.0'
|
|
847
835
|
| 'space.025'
|
|
@@ -877,10 +865,10 @@ export const Stack: MemoExoticComponent<
|
|
|
877
865
|
// @public (undocumented)
|
|
878
866
|
export type StackProps<T extends ElementType = 'div'> = {
|
|
879
867
|
as?: 'div' | 'ol' | 'span' | 'ul';
|
|
880
|
-
alignBlock?:
|
|
881
|
-
alignInline?:
|
|
882
|
-
spread?:
|
|
883
|
-
grow?:
|
|
868
|
+
alignBlock?: Exclude<AlignBlock, 'baseline'>;
|
|
869
|
+
alignInline?: AlignInline;
|
|
870
|
+
spread?: Spread;
|
|
871
|
+
grow?: Grow;
|
|
884
872
|
space?: Space;
|
|
885
873
|
children: ReactNode;
|
|
886
874
|
ref?: React.ComponentPropsWithRef<T>['ref'];
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -23,9 +23,6 @@ import { SerializedStyles as SerializedStyles_2 } from '@emotion/react';
|
|
|
23
23
|
// @public (undocumented)
|
|
24
24
|
type AlignBlock = 'baseline' | 'center' | 'end' | 'start' | 'stretch';
|
|
25
25
|
|
|
26
|
-
// @public (undocumented)
|
|
27
|
-
type AlignBlock_2 = 'center' | 'end' | 'start';
|
|
28
|
-
|
|
29
26
|
// @public (undocumented)
|
|
30
27
|
type AlignContent = keyof typeof alignContentMap;
|
|
31
28
|
|
|
@@ -41,10 +38,7 @@ const alignContentMap: {
|
|
|
41
38
|
};
|
|
42
39
|
|
|
43
40
|
// @public (undocumented)
|
|
44
|
-
type AlignInline = 'center' | 'end' | 'start';
|
|
45
|
-
|
|
46
|
-
// @public (undocumented)
|
|
47
|
-
type AlignInline_2 = 'center' | 'end' | 'start';
|
|
41
|
+
type AlignInline = 'center' | 'end' | 'start' | 'stretch';
|
|
48
42
|
|
|
49
43
|
// @public (undocumented)
|
|
50
44
|
type AlignItems = keyof typeof alignItemsMap;
|
|
@@ -426,9 +420,6 @@ export type GridProps<T extends ElementType = 'div'> = {
|
|
|
426
420
|
// @public (undocumented)
|
|
427
421
|
type Grow = 'fill' | 'hug';
|
|
428
422
|
|
|
429
|
-
// @public (undocumented)
|
|
430
|
-
type Grow_2 = 'fill' | 'hug';
|
|
431
|
-
|
|
432
423
|
// @public
|
|
433
424
|
export const Inline: MemoExoticComponent<ForwardRefExoticComponent<Pick<{
|
|
434
425
|
as?: "div" | "li" | "ol" | "span" | "ul" | undefined;
|
|
@@ -571,16 +562,13 @@ const spaceMap: {
|
|
|
571
562
|
// @public (undocumented)
|
|
572
563
|
type Spread = 'space-between';
|
|
573
564
|
|
|
574
|
-
// @public (undocumented)
|
|
575
|
-
type Spread_2 = 'space-between';
|
|
576
|
-
|
|
577
565
|
// @public
|
|
578
566
|
export const Stack: MemoExoticComponent<ForwardRefExoticComponent<Pick<{
|
|
579
567
|
as?: "div" | "ol" | "span" | "ul" | undefined;
|
|
580
|
-
alignBlock?:
|
|
581
|
-
alignInline?:
|
|
568
|
+
alignBlock?: "center" | "end" | "start" | "stretch" | undefined;
|
|
569
|
+
alignInline?: AlignInline | undefined;
|
|
582
570
|
spread?: "space-between" | undefined;
|
|
583
|
-
grow?:
|
|
571
|
+
grow?: Grow | undefined;
|
|
584
572
|
space?: "space.0" | "space.025" | "space.050" | "space.075" | "space.100" | "space.1000" | "space.150" | "space.200" | "space.250" | "space.300" | "space.400" | "space.500" | "space.600" | "space.800" | undefined;
|
|
585
573
|
children: ReactNode;
|
|
586
574
|
ref?: any;
|
|
@@ -589,10 +577,10 @@ ref?: any;
|
|
|
589
577
|
// @public (undocumented)
|
|
590
578
|
export type StackProps<T extends ElementType = 'div'> = {
|
|
591
579
|
as?: 'div' | 'ol' | 'span' | 'ul';
|
|
592
|
-
alignBlock?:
|
|
593
|
-
alignInline?:
|
|
594
|
-
spread?:
|
|
595
|
-
grow?:
|
|
580
|
+
alignBlock?: Exclude<AlignBlock, 'baseline'>;
|
|
581
|
+
alignInline?: AlignInline;
|
|
582
|
+
spread?: Spread;
|
|
583
|
+
grow?: Grow;
|
|
596
584
|
space?: Space;
|
|
597
585
|
children: ReactNode;
|
|
598
586
|
ref?: React.ComponentPropsWithRef<T>['ref'];
|