@atlaskit/color-picker 3.2.9 → 3.2.11

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.
@@ -1,8 +1,8 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { PopupSelectProps, ValueType } from '@atlaskit/select';
4
- import { Color, Palette, SwatchSize } from '../types';
5
- import { jsx } from '@emotion/react';
3
+ import { PopupSelectProps } from '@atlaskit/select';
4
+ import { Palette, SwatchSize } from '../types';
5
+ import type { WrappedComponentProps } from 'react-intl-next';
6
6
  export interface Props {
7
7
  /** color picker button label */
8
8
  label?: string;
@@ -27,16 +27,8 @@ export interface Props {
27
27
  /** diasble swatch button */
28
28
  isDisabledSelectedSwatch?: boolean;
29
29
  }
30
- export declare class ColorPickerWithoutAnalytics extends React.Component<Props> {
31
- createAndFireEventOnAtlaskit: (payload: import("@atlaskit/analytics-next").AnalyticsEventPayload) => (createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent) => import("@atlaskit/analytics-next").UIAnalyticsEvent;
32
- state: {
33
- isTabbing: boolean;
34
- };
35
- changeAnalyticsCaller: () => import("@atlaskit/analytics-next").UIAnalyticsEvent | undefined;
36
- onChangeSelect: (option: ValueType<Color>) => void;
37
- onOptionKeyDown: (value: string) => void;
38
- onKeyDown: (e: React.KeyboardEvent<HTMLElement>) => void;
39
- render(): jsx.JSX.Element;
40
- }
41
- declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "label" | "analyticsContext" | "key" | "onChange" | "checkMarkColor" | "cols" | "popperProps" | "palette" | "selectedColor" | "selectedColourSwatchSize" | "showDefaultSwatchColor" | "isDisabledSelectedSwatch"> & React.RefAttributes<any>>;
30
+ export declare const ColorPickerWithoutAnalytics: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>> & {
31
+ WrappedComponent: React.ComponentType<Props & WrappedComponentProps>; /** maximum column length */
32
+ };
33
+ declare const _default: React.ForwardRefExoticComponent<Pick<Omit<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps>, keyof import("@atlaskit/analytics-next").WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "label" | "analyticsContext" | "key" | "onChange" | "checkMarkColor" | "cols" | "popperProps" | "palette" | "selectedColor" | "selectedColourSwatchSize" | "showDefaultSwatchColor" | "isDisabledSelectedSwatch" | "forwardedRef"> & React.RefAttributes<any>>;
42
34
  export default _default;
@@ -1,5 +1,4 @@
1
- export declare const COLOR_CARD_SIZE = 30;
2
- export declare const COLOR_CARD_SIZE_NEW = 32;
1
+ export declare const COLOR_CARD_SIZE = 32;
3
2
  export declare const KEY_SPACE = " ";
4
3
  export declare const KEY_ENTER = "Enter";
5
4
  export declare const KEY_ARROW_UP = "ArrowDown";
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ colorPickerAriaLabel: {
3
+ id: string;
4
+ defaultMessage: string;
5
+ description: string;
6
+ };
7
+ colorPickerAriaLabelOldFormat: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ description: string;
11
+ };
12
+ };
13
+ export default _default;
package/docs/0-intro.tsx CHANGED
@@ -8,7 +8,6 @@ import {
8
8
  DevPreviewWarning,
9
9
  } from '@atlaskit/docs';
10
10
  import { Box, xcss } from '@atlaskit/primitives';
11
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
12
11
 
13
12
  const marginBottomStyles = xcss({
14
13
  marginBottom: 'space.100',
@@ -19,29 +18,16 @@ const marginTopStyles = xcss({
19
18
  });
20
19
 
21
20
  export default md`
22
- ${
23
- getBooleanFF(
24
- 'platform.design-tokens-color-picker-portfolio-plan-wizard_w8rcl',
25
- ) ? (
26
- <>
27
- <Box xcss={marginBottomStyles}>
28
- <AtlassianInternalWarning />
29
- </Box>
30
- <Box xcss={marginTopStyles}>
31
- <DevPreviewWarning />
32
- </Box>
33
- </>
34
- ) : (
35
- <>
36
- <div style={{ marginBottom: '0.5rem' }}>
37
- <AtlassianInternalWarning />
38
- </div>
39
- <div style={{ marginTop: '0.5rem' }}>
40
- <DevPreviewWarning />
41
- </div>
42
- </>
43
- )
44
- }
21
+ ${(
22
+ <>
23
+ <Box xcss={marginBottomStyles}>
24
+ <AtlassianInternalWarning />
25
+ </Box>
26
+ <Box xcss={marginTopStyles}>
27
+ <DevPreviewWarning />
28
+ </Box>
29
+ </>
30
+ )}
45
31
 
46
32
  This component allows to pick colors from color palette.
47
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/color-picker",
3
- "version": "3.2.9",
3
+ "version": "3.2.11",
4
4
  "description": "Jira Color Picker Component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -32,23 +32,24 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "@atlaskit/analytics-next": "^9.2.0",
35
+ "@atlaskit/analytics-next": "^9.3.0",
36
36
  "@atlaskit/icon": "^22.1.0",
37
37
  "@atlaskit/platform-feature-flags": "^0.2.5",
38
- "@atlaskit/select": "^17.6.0",
38
+ "@atlaskit/select": "^17.7.0",
39
39
  "@atlaskit/theme": "^12.7.0",
40
- "@atlaskit/tokens": "^1.43.0",
40
+ "@atlaskit/tokens": "^1.44.0",
41
41
  "@atlaskit/tooltip": "^18.2.0",
42
42
  "@babel/runtime": "^7.0.0",
43
43
  "@emotion/react": "^11.7.1",
44
- "memoize-one": "^6.0.0"
44
+ "memoize-one": "^6.0.0",
45
+ "react-intl-next": "npm:react-intl@^5.18.1"
45
46
  },
46
47
  "peerDependencies": {
47
48
  "react": "^16.8.0"
48
49
  },
49
50
  "devDependencies": {
50
51
  "@af/visual-regression": "*",
51
- "@atlaskit/primitives": "^5.5.0",
52
+ "@atlaskit/primitives": "^5.6.0",
52
53
  "@atlaskit/visual-regression": "*",
53
54
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
54
55
  "@testing-library/react": "^12.1.5",
@@ -81,7 +82,7 @@
81
82
  "platform.color-picker-radio-button-functionality_6hkcy": {
82
83
  "type": "boolean"
83
84
  },
84
- "platform.design-tokens-color-picker-portfolio-plan-wizard_w8rcl": {
85
+ "platform.jca11y-1480-inappropriate-label-for-color-picker_76tfe": {
85
86
  "type": "boolean"
86
87
  },
87
88
  "platform.jca11y-1559-dashboard-view-dashboard-remove-duplicate-aria-label_g5i3i": {