@strapi/plugin-color-picker 4.11.1 → 4.11.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.
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
- import styled from 'styled-components';
3
- import { Icon, Flex } from '@strapi/design-system';
2
+
3
+ import { Flex, Icon } from '@strapi/design-system';
4
4
  import { Paint } from '@strapi/icons';
5
+ import styled from 'styled-components';
5
6
 
6
7
  const IconBox = styled(Flex)`
7
8
  /* Hard code color values */
@@ -1,22 +1,23 @@
1
- import React, { useState, useRef } from 'react';
2
- import PropTypes from 'prop-types';
3
- import styled from 'styled-components';
1
+ import React, { useRef, useState } from 'react';
2
+
4
3
  import {
5
- Typography,
6
- Flex,
7
- Box,
8
4
  BaseButton,
9
- FocusTrap,
5
+ Box,
10
6
  Field,
11
- FieldHint,
12
7
  FieldError,
13
- FieldLabel,
8
+ FieldHint,
14
9
  FieldInput,
10
+ FieldLabel,
11
+ Flex,
12
+ FocusTrap,
15
13
  Popover,
14
+ Typography,
16
15
  } from '@strapi/design-system';
17
16
  import { CarretDown } from '@strapi/icons';
18
- import { useIntl } from 'react-intl';
17
+ import PropTypes from 'prop-types';
19
18
  import { HexColorPicker } from 'react-colorful';
19
+ import { useIntl } from 'react-intl';
20
+ import styled from 'styled-components';
20
21
 
21
22
  import getTrad from '../../../utils/getTrad';
22
23
 
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
- import { render, screen, fireEvent } from '@testing-library/react';
2
+
3
3
  import { lightTheme, ThemeProvider } from '@strapi/design-system';
4
+ import { fireEvent, render, screen } from '@testing-library/react';
4
5
  import { IntlProvider } from 'react-intl';
6
+
5
7
  import ColorPickerInput from '../ColorPicker/ColorPickerInput';
6
8
 
7
9
  const mockAttribute = {
@@ -1,6 +1,7 @@
1
1
  import { prefixPluginTranslations } from '@strapi/helper-plugin';
2
- import pluginId from './pluginId';
2
+
3
3
  import ColorPickerIcon from './components/ColorPicker/ColorPickerIcon';
4
+ import pluginId from './pluginId';
4
5
  import getTrad from './utils/getTrad';
5
6
 
6
7
  export default {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/plugin-color-picker",
3
- "version": "4.11.1",
3
+ "version": "4.11.2",
4
4
  "description": "Strapi maintained Custom Fields",
5
5
  "strapi": {
6
6
  "name": "color-picker",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@strapi/design-system": "1.8.0",
13
- "@strapi/helper-plugin": "4.11.1",
13
+ "@strapi/helper-plugin": "4.11.2",
14
14
  "@strapi/icons": "1.8.0",
15
15
  "prop-types": "^15.8.1",
16
16
  "react-colorful": "5.6.1",
@@ -59,5 +59,5 @@
59
59
  "node": ">=14.19.1 <=18.x.x",
60
60
  "npm": ">=6.0.0"
61
61
  },
62
- "gitHead": "6cdb5a7737495ca0c7179076ade5361e182ea169"
62
+ "gitHead": "6f7c815c2bbe41dda7d77136eb8df736c028ff67"
63
63
  }