@atlaskit/primitives 6.3.0 → 6.4.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 +585 -578
- package/constellation/anchor/usage.mdx +2 -2
- package/constellation/pressable/usage.mdx +2 -2
- package/dist/cjs/components/anchor.js +1 -1
- package/dist/cjs/components/bleed.js +1 -0
- package/dist/cjs/components/box.js +10 -3
- package/dist/cjs/components/flex.js +3 -1
- package/dist/cjs/components/grid.js +6 -2
- package/dist/cjs/components/pressable.js +1 -1
- package/dist/cjs/responsive/hide.js +3 -1
- package/dist/cjs/responsive/show.js +3 -1
- package/dist/es2019/components/anchor.js +1 -1
- package/dist/es2019/components/bleed.js +1 -0
- package/dist/es2019/components/box.js +10 -3
- package/dist/es2019/components/flex.js +3 -1
- package/dist/es2019/components/grid.js +6 -2
- package/dist/es2019/components/pressable.js +1 -1
- package/dist/es2019/responsive/hide.js +3 -1
- package/dist/es2019/responsive/show.js +3 -1
- package/dist/esm/components/anchor.js +1 -1
- package/dist/esm/components/bleed.js +1 -0
- package/dist/esm/components/box.js +10 -3
- package/dist/esm/components/flex.js +3 -1
- package/dist/esm/components/grid.js +6 -2
- package/dist/esm/components/pressable.js +1 -1
- package/dist/esm/responsive/hide.js +3 -1
- package/dist/esm/responsive/show.js +3 -1
- package/dist/types/components/bleed.d.ts +1 -1
- package/dist/types/components/box.d.ts +3 -3
- package/dist/types/components/flex.d.ts +1 -1
- package/dist/types/components/inline.d.ts +1 -1
- package/dist/types/components/stack.d.ts +1 -1
- package/dist/types/responsive/build-media-query-css.d.ts +1 -1
- package/dist/types/responsive/types.d.ts +3 -3
- package/dist/types/xcss/style-maps.partial.d.ts +21 -21
- package/dist/types/xcss/xcss.d.ts +1 -1
- package/dist/types-ts4.5/components/bleed.d.ts +1 -1
- package/dist/types-ts4.5/components/box.d.ts +3 -3
- package/dist/types-ts4.5/components/flex.d.ts +1 -1
- package/dist/types-ts4.5/components/inline.d.ts +1 -1
- package/dist/types-ts4.5/components/stack.d.ts +1 -1
- package/dist/types-ts4.5/responsive/build-media-query-css.d.ts +1 -1
- package/dist/types-ts4.5/responsive/types.d.ts +3 -3
- package/dist/types-ts4.5/xcss/style-maps.partial.d.ts +21 -21
- package/dist/types-ts4.5/xcss/xcss.d.ts +1 -1
- package/extract-react-types/bleed-props.tsx +2 -2
- package/extract-react-types/box-props.tsx +6 -3
- package/extract-react-types/flex-props.tsx +2 -2
- package/extract-react-types/grid-props.tsx +2 -2
- package/extract-react-types/hide-props.tsx +2 -2
- package/extract-react-types/inline-props.tsx +1 -1
- package/extract-react-types/show-props.tsx +2 -2
- package/extract-react-types/stack-props.tsx +1 -1
- package/package.json +2 -4
- package/scripts/color-codegen-template.tsx +1 -1
- package/scripts/elevation-codegen-template.tsx +1 -1
|
@@ -555,35 +555,35 @@ export type TokenisedProps = {
|
|
|
555
555
|
blockSize?: AutoComplete<Dimension>;
|
|
556
556
|
borderBlockColor?: AutoComplete<BorderColor>;
|
|
557
557
|
borderBlockEndColor?: AutoComplete<BorderColor>;
|
|
558
|
-
borderBlockEndWidth?:
|
|
558
|
+
borderBlockEndWidth?: BorderWidth | string;
|
|
559
559
|
borderBlockStartColor?: AutoComplete<BorderColor>;
|
|
560
|
-
borderBlockStartWidth?:
|
|
561
|
-
borderBlockWidth?:
|
|
560
|
+
borderBlockStartWidth?: BorderWidth | string;
|
|
561
|
+
borderBlockWidth?: BorderWidth | string;
|
|
562
562
|
borderBottomColor?: AutoComplete<BorderColor>;
|
|
563
|
-
borderBottomLeftRadius?:
|
|
564
|
-
borderBottomRightRadius?:
|
|
565
|
-
borderBottomWidth?:
|
|
563
|
+
borderBottomLeftRadius?: BorderRadius | string;
|
|
564
|
+
borderBottomRightRadius?: BorderRadius | string;
|
|
565
|
+
borderBottomWidth?: BorderWidth | string;
|
|
566
566
|
borderColor?: BorderColor;
|
|
567
|
-
borderEndEndRadius?:
|
|
568
|
-
borderEndStartRadius?:
|
|
567
|
+
borderEndEndRadius?: BorderRadius | string;
|
|
568
|
+
borderEndStartRadius?: BorderRadius | string;
|
|
569
569
|
borderInlineColor?: AutoComplete<BorderColor>;
|
|
570
570
|
borderInlineEndColor?: AutoComplete<BorderColor>;
|
|
571
|
-
borderInlineEndWidth?:
|
|
571
|
+
borderInlineEndWidth?: BorderWidth | string;
|
|
572
572
|
borderInlineStartColor?: AutoComplete<BorderColor>;
|
|
573
|
-
borderInlineStartWidth?:
|
|
574
|
-
borderInlineWidth?:
|
|
573
|
+
borderInlineStartWidth?: BorderWidth | string;
|
|
574
|
+
borderInlineWidth?: BorderWidth | string;
|
|
575
575
|
borderLeftColor?: AutoComplete<BorderColor>;
|
|
576
|
-
borderLeftWidth?:
|
|
577
|
-
borderRadius?: BorderRadius;
|
|
576
|
+
borderLeftWidth?: BorderWidth | string;
|
|
577
|
+
borderRadius?: BorderRadius | string;
|
|
578
578
|
borderRightColor?: AutoComplete<BorderColor>;
|
|
579
|
-
borderRightWidth?:
|
|
580
|
-
borderStartEndRadius?:
|
|
581
|
-
borderStartStartRadius?:
|
|
579
|
+
borderRightWidth?: BorderWidth | string;
|
|
580
|
+
borderStartEndRadius?: BorderRadius | string;
|
|
581
|
+
borderStartStartRadius?: BorderRadius | string;
|
|
582
582
|
borderTopColor?: AutoComplete<BorderColor>;
|
|
583
|
-
borderTopLeftRadius?:
|
|
584
|
-
borderTopRightRadius?:
|
|
585
|
-
borderTopWidth?:
|
|
586
|
-
borderWidth?: BorderWidth;
|
|
583
|
+
borderTopLeftRadius?: BorderRadius | string;
|
|
584
|
+
borderTopRightRadius?: BorderRadius | string;
|
|
585
|
+
borderTopWidth?: BorderWidth | string;
|
|
586
|
+
borderWidth?: BorderWidth | string;
|
|
587
587
|
bottom?: AutoComplete<AllSpace>;
|
|
588
588
|
boxShadow?: Shadow;
|
|
589
589
|
color?: TextColor;
|
|
@@ -621,7 +621,7 @@ export type TokenisedProps = {
|
|
|
621
621
|
opacity?: AutoComplete<Opacity> | number;
|
|
622
622
|
outlineColor?: BorderColor;
|
|
623
623
|
outlineOffset?: Space;
|
|
624
|
-
outlineWidth?: BorderWidth;
|
|
624
|
+
outlineWidth?: BorderWidth | string;
|
|
625
625
|
padding?: Space;
|
|
626
626
|
paddingBlock?: Space;
|
|
627
627
|
paddingBlockEnd?: Space;
|
|
@@ -2,7 +2,7 @@ import type { CSSPropertiesWithMultiValues, SerializedStyles } from '@emotion/se
|
|
|
2
2
|
import type * as CSS from 'csstype';
|
|
3
3
|
import type { StrictXCSSProp, XCSSAllProperties, XCSSAllPseudos } from '@atlaskit/css';
|
|
4
4
|
import type { MediaQuery } from '../responsive/types';
|
|
5
|
-
import { TokenisedProps } from './style-maps.partial';
|
|
5
|
+
import { type TokenisedProps } from './style-maps.partial';
|
|
6
6
|
export declare const tokensMap: {
|
|
7
7
|
readonly backgroundColor: {
|
|
8
8
|
readonly 'color.background.accent.lime.subtlest': "var(--ds-background-accent-lime-subtlest)";
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
// TODO: Switch from ERT to ts-morph when this is completed and has reasonable adoption: https://product-fabric.atlassian.net/browse/DSP-10364
|
|
2
|
-
import
|
|
2
|
+
import type { ComponentPropsWithRef, ElementType, ReactNode } from 'react';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
type BasePrimitiveProps,
|
|
6
|
+
type StyleProp,
|
|
7
|
+
} from '../src/components/types';
|
|
5
8
|
|
|
6
9
|
// eslint-disable-next-line @typescript-eslint/no-namespace
|
|
7
10
|
namespace Token {
|
|
@@ -83,7 +86,7 @@ export default function Box(
|
|
|
83
86
|
/**
|
|
84
87
|
* Forwarded ref element.
|
|
85
88
|
*/
|
|
86
|
-
ref?:
|
|
89
|
+
ref?: ComponentPropsWithRef<ElementType>['ref'];
|
|
87
90
|
} & BasePrimitiveProps &
|
|
88
91
|
StyleProp,
|
|
89
92
|
) {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ElementType, ReactNode } from 'react';
|
|
1
|
+
import { type ElementType, type ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
import { BasePrimitiveProps } from '../src/components/types';
|
|
3
|
+
import { type BasePrimitiveProps } from '../src/components/types';
|
|
4
4
|
|
|
5
5
|
type Space =
|
|
6
6
|
| 'space.0'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ElementType, ReactNode } from 'react';
|
|
1
|
+
import { type ElementType, type ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
import { BasePrimitiveProps } from '../src/components/types';
|
|
3
|
+
import { type BasePrimitiveProps } from '../src/components/types';
|
|
4
4
|
|
|
5
5
|
type Space =
|
|
6
6
|
| 'space.0'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/primitives",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0",
|
|
4
4
|
"description": "Primitives are token-backed low-level building blocks.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -146,7 +146,6 @@
|
|
|
146
146
|
"@atlaskit/toggle": "^13.1.0",
|
|
147
147
|
"@atlaskit/tooltip": "^18.4.0",
|
|
148
148
|
"@atlaskit/visual-regression": "*",
|
|
149
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
150
149
|
"@atlassian/codegen": "^0.1.0",
|
|
151
150
|
"@testing-library/react": "^12.1.5",
|
|
152
151
|
"@testing-library/react-hooks": "^8.0.1",
|
|
@@ -199,6 +198,5 @@
|
|
|
199
198
|
"./pressable": "./src/components/pressable.tsx",
|
|
200
199
|
"./anchor": "./src/components/anchor.tsx",
|
|
201
200
|
"./responsive": "./src/responsive/index.tsx"
|
|
202
|
-
}
|
|
203
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
201
|
+
}
|
|
204
202
|
}
|