@atlaskit/status 3.0.11 → 3.0.13
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 +14 -0
- package/afm-cc/tsconfig.json +2 -2
- package/afm-dev-agents/tsconfig.json +51 -0
- package/afm-passionfruit/tsconfig.json +51 -0
- package/afm-volt/tsconfig.json +7 -1
- package/dist/cjs/components/analytics.js +1 -1
- package/dist/es2019/components/analytics.js +1 -1
- package/dist/esm/components/analytics.js +1 -1
- package/dist/types/components/Status.d.ts +3 -4
- package/dist/types/components/StatusPicker.d.ts +4 -4
- package/dist/types/components/internal/color-palette.d.ts +3 -4
- package/dist/types/components/internal/color.d.ts +5 -5
- package/dist/types-ts4.5/components/Status.d.ts +3 -4
- package/dist/types-ts4.5/components/StatusPicker.d.ts +4 -4
- package/dist/types-ts4.5/components/internal/color-palette.d.ts +3 -4
- package/dist/types-ts4.5/components/internal/color.d.ts +5 -5
- package/element/package.json +1 -1
- package/package.json +4 -7
- package/picker/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/status
|
|
2
2
|
|
|
3
|
+
## 3.0.13
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0fdcb6f2f96fd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0fdcb6f2f96fd) -
|
|
8
|
+
Sorted type and interface props to improve Atlaskit docs
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 3.0.12
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 3.0.11
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.dev-agents.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../dev-agents/tsDist/@atlaskit__status/app",
|
|
7
|
+
"rootDir": "../",
|
|
8
|
+
"composite": true
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*",
|
|
18
|
+
"../src/**/examples.*",
|
|
19
|
+
"../src/**/examples/*",
|
|
20
|
+
"../src/**/examples/**/*",
|
|
21
|
+
"../src/**/*.stories.*",
|
|
22
|
+
"../src/**/stories/*",
|
|
23
|
+
"../src/**/stories/**/*"
|
|
24
|
+
],
|
|
25
|
+
"references": [
|
|
26
|
+
{
|
|
27
|
+
"path": "../../../analytics/analytics-next/afm-dev-agents/tsconfig.json"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"path": "../../../design-system/icon/afm-dev-agents/tsconfig.json"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"path": "../../../design-system/lozenge/afm-dev-agents/tsconfig.json"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"path": "../../../platform/feature-flags/afm-dev-agents/tsconfig.json"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"path": "../../../platform/feature-flags-react/afm-dev-agents/tsconfig.json"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"path": "../../../design-system/primitives/afm-dev-agents/tsconfig.json"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"path": "../../../design-system/textfield/afm-dev-agents/tsconfig.json"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"path": "../../../design-system/tokens/afm-dev-agents/tsconfig.json"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.passionfruit.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../passionfruit/tsDist/@atlaskit__status/app",
|
|
7
|
+
"rootDir": "../",
|
|
8
|
+
"composite": true
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*",
|
|
18
|
+
"../src/**/examples.*",
|
|
19
|
+
"../src/**/examples/*",
|
|
20
|
+
"../src/**/examples/**/*",
|
|
21
|
+
"../src/**/*.stories.*",
|
|
22
|
+
"../src/**/stories/*",
|
|
23
|
+
"../src/**/stories/**/*"
|
|
24
|
+
],
|
|
25
|
+
"references": [
|
|
26
|
+
{
|
|
27
|
+
"path": "../../../analytics/analytics-next/afm-passionfruit/tsconfig.json"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"path": "../../../design-system/icon/afm-passionfruit/tsconfig.json"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"path": "../../../design-system/lozenge/afm-passionfruit/tsconfig.json"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"path": "../../../platform/feature-flags/afm-passionfruit/tsconfig.json"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"path": "../../../platform/feature-flags-react/afm-passionfruit/tsconfig.json"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"path": "../../../design-system/primitives/afm-passionfruit/tsconfig.json"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"path": "../../../design-system/textfield/afm-passionfruit/tsconfig.json"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"path": "../../../design-system/tokens/afm-passionfruit/tsconfig.json"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
package/afm-volt/tsconfig.json
CHANGED
|
@@ -14,7 +14,13 @@
|
|
|
14
14
|
"exclude": [
|
|
15
15
|
"../src/**/__tests__/*",
|
|
16
16
|
"../src/**/*.test.*",
|
|
17
|
-
"../src/**/test.*"
|
|
17
|
+
"../src/**/test.*",
|
|
18
|
+
"../src/**/examples.*",
|
|
19
|
+
"../src/**/examples/*",
|
|
20
|
+
"../src/**/examples/**/*",
|
|
21
|
+
"../src/**/*.stories.*",
|
|
22
|
+
"../src/**/stories/*",
|
|
23
|
+
"../src/**/stories/**/*"
|
|
18
24
|
],
|
|
19
25
|
"references": [
|
|
20
26
|
{
|
|
@@ -10,7 +10,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
10
10
|
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; }
|
|
11
11
|
var ELEMENTS_CHANNEL = exports.ELEMENTS_CHANNEL = 'fabric-elements';
|
|
12
12
|
var packageName = "@atlaskit/status";
|
|
13
|
-
var packageVersion = "3.0.
|
|
13
|
+
var packageVersion = "3.0.12";
|
|
14
14
|
var createStatusAnalyticsAndFire = exports.createStatusAnalyticsAndFire = function createStatusAnalyticsAndFire(createAnalyticsEvent) {
|
|
15
15
|
return function (payload) {
|
|
16
16
|
var statusPayload = _objectSpread(_objectSpread({}, payload), {}, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const ELEMENTS_CHANNEL = 'fabric-elements';
|
|
2
2
|
const packageName = "@atlaskit/status";
|
|
3
|
-
const packageVersion = "3.0.
|
|
3
|
+
const packageVersion = "3.0.12";
|
|
4
4
|
export const createStatusAnalyticsAndFire = createAnalyticsEvent => payload => {
|
|
5
5
|
const statusPayload = {
|
|
6
6
|
...payload,
|
|
@@ -3,7 +3,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
3
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
|
export var ELEMENTS_CHANNEL = 'fabric-elements';
|
|
5
5
|
var packageName = "@atlaskit/status";
|
|
6
|
-
var packageVersion = "3.0.
|
|
6
|
+
var packageVersion = "3.0.12";
|
|
7
7
|
export var createStatusAnalyticsAndFire = function createStatusAnalyticsAndFire(createAnalyticsEvent) {
|
|
8
8
|
return function (payload) {
|
|
9
9
|
var statusPayload = _objectSpread(_objectSpread({}, payload), {}, {
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
2
|
export type Color = 'neutral' | 'purple' | 'blue' | 'red' | 'yellow' | 'green';
|
|
4
3
|
export type StatusStyle = 'bold' | 'subtle';
|
|
5
4
|
export interface OwnProps {
|
|
6
|
-
text: string;
|
|
7
5
|
color: Color;
|
|
8
|
-
|
|
6
|
+
isBold?: boolean;
|
|
9
7
|
localId?: string;
|
|
10
8
|
onClick?: (event: React.SyntheticEvent<any>) => void;
|
|
11
9
|
onHover?: () => void;
|
|
12
10
|
role?: string;
|
|
13
|
-
|
|
11
|
+
style?: StatusStyle;
|
|
12
|
+
text: string;
|
|
14
13
|
}
|
|
15
14
|
export type Props = OwnProps & WithAnalyticsEventsProps;
|
|
16
15
|
export declare const Status: import("react").ForwardRefExoticComponent<Omit<OwnProps, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
|
|
@@ -3,13 +3,13 @@ import { type WrappedComponentProps } from 'react-intl-next';
|
|
|
3
3
|
import { type Color } from './Status';
|
|
4
4
|
export type ColorType = Color;
|
|
5
5
|
export interface Props {
|
|
6
|
-
|
|
7
|
-
text: string;
|
|
8
|
-
onEnter: () => void;
|
|
6
|
+
autoFocus?: boolean;
|
|
9
7
|
onColorClick: (value: ColorType) => void;
|
|
10
8
|
onColorHover?: (value: ColorType) => void;
|
|
9
|
+
onEnter: () => void;
|
|
11
10
|
onTextChanged: (value: string) => void;
|
|
12
|
-
|
|
11
|
+
selectedColor: ColorType;
|
|
12
|
+
text: string;
|
|
13
13
|
}
|
|
14
14
|
export declare const StatusPicker: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
15
15
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type Color as ColorType } from '../Status';
|
|
3
2
|
interface ColorPaletteProps {
|
|
4
|
-
|
|
3
|
+
className?: string;
|
|
4
|
+
cols?: number;
|
|
5
5
|
onClick: (value: ColorType) => void;
|
|
6
6
|
onHover?: (value: ColorType) => void;
|
|
7
|
-
|
|
8
|
-
className?: string;
|
|
7
|
+
selectedColor?: ColorType;
|
|
9
8
|
}
|
|
10
9
|
declare const _default: ({ cols, onClick, selectedColor, className, onHover }: ColorPaletteProps) => JSX.Element;
|
|
11
10
|
export default _default;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
2
|
import { type Color as ColorType } from '../Status';
|
|
3
3
|
export interface ColorProps {
|
|
4
|
-
value: ColorType;
|
|
5
|
-
tabIndex?: number;
|
|
6
|
-
isSelected?: boolean;
|
|
7
|
-
onClick: (value: ColorType) => void;
|
|
8
|
-
onHover?: (value: ColorType) => void;
|
|
9
4
|
backgroundColor: string;
|
|
10
5
|
borderColor: string;
|
|
11
6
|
iconColor: string;
|
|
7
|
+
isSelected?: boolean;
|
|
8
|
+
onClick: (value: ColorType) => void;
|
|
9
|
+
onHover?: (value: ColorType) => void;
|
|
12
10
|
setRef?: (value: HTMLButtonElement) => HTMLButtonElement;
|
|
11
|
+
tabIndex?: number;
|
|
12
|
+
value: ColorType;
|
|
13
13
|
}
|
|
14
14
|
export default class Color extends PureComponent<ColorProps> {
|
|
15
15
|
private hoverStartTime;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
2
|
export type Color = 'neutral' | 'purple' | 'blue' | 'red' | 'yellow' | 'green';
|
|
4
3
|
export type StatusStyle = 'bold' | 'subtle';
|
|
5
4
|
export interface OwnProps {
|
|
6
|
-
text: string;
|
|
7
5
|
color: Color;
|
|
8
|
-
|
|
6
|
+
isBold?: boolean;
|
|
9
7
|
localId?: string;
|
|
10
8
|
onClick?: (event: React.SyntheticEvent<any>) => void;
|
|
11
9
|
onHover?: () => void;
|
|
12
10
|
role?: string;
|
|
13
|
-
|
|
11
|
+
style?: StatusStyle;
|
|
12
|
+
text: string;
|
|
14
13
|
}
|
|
15
14
|
export type Props = OwnProps & WithAnalyticsEventsProps;
|
|
16
15
|
export declare const Status: import("react").ForwardRefExoticComponent<Omit<OwnProps, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;
|
|
@@ -3,13 +3,13 @@ import { type WrappedComponentProps } from 'react-intl-next';
|
|
|
3
3
|
import { type Color } from './Status';
|
|
4
4
|
export type ColorType = Color;
|
|
5
5
|
export interface Props {
|
|
6
|
-
|
|
7
|
-
text: string;
|
|
8
|
-
onEnter: () => void;
|
|
6
|
+
autoFocus?: boolean;
|
|
9
7
|
onColorClick: (value: ColorType) => void;
|
|
10
8
|
onColorHover?: (value: ColorType) => void;
|
|
9
|
+
onEnter: () => void;
|
|
11
10
|
onTextChanged: (value: string) => void;
|
|
12
|
-
|
|
11
|
+
selectedColor: ColorType;
|
|
12
|
+
text: string;
|
|
13
13
|
}
|
|
14
14
|
export declare const StatusPicker: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
|
|
15
15
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type Color as ColorType } from '../Status';
|
|
3
2
|
interface ColorPaletteProps {
|
|
4
|
-
|
|
3
|
+
className?: string;
|
|
4
|
+
cols?: number;
|
|
5
5
|
onClick: (value: ColorType) => void;
|
|
6
6
|
onHover?: (value: ColorType) => void;
|
|
7
|
-
|
|
8
|
-
className?: string;
|
|
7
|
+
selectedColor?: ColorType;
|
|
9
8
|
}
|
|
10
9
|
declare const _default: ({ cols, onClick, selectedColor, className, onHover }: ColorPaletteProps) => JSX.Element;
|
|
11
10
|
export default _default;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
2
|
import { type Color as ColorType } from '../Status';
|
|
3
3
|
export interface ColorProps {
|
|
4
|
-
value: ColorType;
|
|
5
|
-
tabIndex?: number;
|
|
6
|
-
isSelected?: boolean;
|
|
7
|
-
onClick: (value: ColorType) => void;
|
|
8
|
-
onHover?: (value: ColorType) => void;
|
|
9
4
|
backgroundColor: string;
|
|
10
5
|
borderColor: string;
|
|
11
6
|
iconColor: string;
|
|
7
|
+
isSelected?: boolean;
|
|
8
|
+
onClick: (value: ColorType) => void;
|
|
9
|
+
onHover?: (value: ColorType) => void;
|
|
12
10
|
setRef?: (value: HTMLButtonElement) => HTMLButtonElement;
|
|
11
|
+
tabIndex?: number;
|
|
12
|
+
value: ColorType;
|
|
13
13
|
}
|
|
14
14
|
export default class Color extends PureComponent<ColorProps> {
|
|
15
15
|
private hoverStartTime;
|
package/element/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/status",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.13",
|
|
4
4
|
"description": "Fabric Status React Components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
30
|
-
"@atlaskit/icon": "^
|
|
30
|
+
"@atlaskit/icon": "^28.0.0",
|
|
31
31
|
"@atlaskit/lozenge": "^13.0.0",
|
|
32
32
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
33
33
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
@@ -35,8 +35,7 @@
|
|
|
35
35
|
"@atlaskit/textfield": "^8.0.0",
|
|
36
36
|
"@atlaskit/tokens": "^6.0.0",
|
|
37
37
|
"@babel/runtime": "^7.0.0",
|
|
38
|
-
"@compiled/react": "^0.18.3"
|
|
39
|
-
"@emotion/react": "^11.7.1"
|
|
38
|
+
"@compiled/react": "^0.18.3"
|
|
40
39
|
},
|
|
41
40
|
"peerDependencies": {
|
|
42
41
|
"react": "^18.2.0",
|
|
@@ -45,14 +44,12 @@
|
|
|
45
44
|
"devDependencies": {
|
|
46
45
|
"@af/visual-regression": "workspace:^",
|
|
47
46
|
"@atlaskit/elements-test-helpers": "workspace:^",
|
|
48
|
-
"@atlaskit/visual-regression": "workspace:^",
|
|
49
47
|
"@atlassian/feature-flags-test-utils": "^0.3.0",
|
|
50
48
|
"@testing-library/jest-dom": "^6.4.5",
|
|
51
49
|
"@testing-library/react": "^13.4.0",
|
|
52
50
|
"enzyme": "^3.10.0",
|
|
53
51
|
"react": "^18.2.0",
|
|
54
|
-
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
55
|
-
"typescript": "~5.4.2"
|
|
52
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
56
53
|
},
|
|
57
54
|
"keywords": [
|
|
58
55
|
"ui",
|