@strapi/plugin-color-picker 0.0.0-next.c443fb2cf1a0b330fbf8f4bf6b967c3002ccbd92 → 0.0.0-next.de5394e73076ccf7aca1e28dc68894e3c43f8b91

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,13 +1,16 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`<ColorPickerInput /> renders and matches the snapshot 1`] = `
4
- .c3 {
5
- background: #ffffff;
6
- padding: 8px;
7
- border-radius: 4px;
8
- border-color: #dcdce4;
9
- border: 1px solid #dcdce4;
10
- cursor: pointer;
4
+ .c9 {
5
+ border: 0;
6
+ -webkit-clip: rect(0 0 0 0);
7
+ clip: rect(0 0 0 0);
8
+ height: 1px;
9
+ margin: -1px;
10
+ overflow: hidden;
11
+ padding: 0;
12
+ position: absolute;
13
+ width: 1px;
11
14
  }
12
15
 
13
16
  .c1 {
@@ -23,6 +26,15 @@ exports[`<ColorPickerInput /> renders and matches the snapshot 1`] = `
23
26
  color: #666687;
24
27
  }
25
28
 
29
+ .c3 {
30
+ background: #ffffff;
31
+ padding: 8px;
32
+ border-radius: 4px;
33
+ border-color: #dcdce4;
34
+ border: 1px solid #dcdce4;
35
+ cursor: pointer;
36
+ }
37
+
26
38
  .c0 {
27
39
  -webkit-align-items: stretch;
28
40
  -webkit-box-align: stretch;
@@ -101,18 +113,6 @@ exports[`<ColorPickerInput /> renders and matches the snapshot 1`] = `
101
113
  border: 2px solid #4945ff;
102
114
  }
103
115
 
104
- .c9 {
105
- border: 0;
106
- -webkit-clip: rect(0 0 0 0);
107
- clip: rect(0 0 0 0);
108
- height: 1px;
109
- margin: -1px;
110
- overflow: hidden;
111
- padding: 0;
112
- position: absolute;
113
- width: 1px;
114
- }
115
-
116
116
  .c2 {
117
117
  display: -webkit-box;
118
118
  display: -webkit-flex;
@@ -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": "0.0.0-next.c443fb2cf1a0b330fbf8f4bf6b967c3002ccbd92",
3
+ "version": "0.0.0-next.de5394e73076ccf7aca1e28dc68894e3c43f8b91",
4
4
  "description": "Strapi maintained Custom Fields",
5
5
  "strapi": {
6
6
  "name": "color-picker",
@@ -9,26 +9,26 @@
9
9
  "displayName": "Color Picker"
10
10
  },
11
11
  "dependencies": {
12
- "@strapi/design-system": "1.7.9",
13
- "@strapi/helper-plugin": "0.0.0-next.c443fb2cf1a0b330fbf8f4bf6b967c3002ccbd92",
14
- "@strapi/icons": "1.7.9",
12
+ "@strapi/design-system": "1.8.0",
13
+ "@strapi/helper-plugin": "0.0.0-next.de5394e73076ccf7aca1e28dc68894e3c43f8b91",
14
+ "@strapi/icons": "1.8.0",
15
15
  "prop-types": "^15.8.1",
16
16
  "react-colorful": "5.6.1",
17
17
  "react-intl": "6.4.1"
18
18
  },
19
19
  "devDependencies": {
20
- "@testing-library/react": "12.1.4",
21
- "react": "^17.0.2",
22
- "react-dom": "^17.0.2",
20
+ "@testing-library/react": "14.0.0",
21
+ "react": "^18.2.0",
22
+ "react-dom": "^18.2.0",
23
23
  "react-router-dom": "5.3.4",
24
24
  "styled-components": "5.3.3"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "@strapi/strapi": "^4.4.0",
28
- "react": "^17.0.2",
29
- "react-dom": "^17.0.2",
30
- "react-router-dom": "^5.3.4",
31
- "styled-components": "^5.3.3"
28
+ "react": "^17.0.0 || ^18.0.0",
29
+ "react-dom": "^17.0.0 || ^18.0.0",
30
+ "react-router-dom": "5.3.4",
31
+ "styled-components": "5.3.3"
32
32
  },
33
33
  "scripts": {
34
34
  "test:front": "run -T cross-env IS_EE=true jest --config ./jest.config.front.js",
@@ -59,5 +59,5 @@
59
59
  "node": ">=14.19.1 <=18.x.x",
60
60
  "npm": ">=6.0.0"
61
61
  },
62
- "gitHead": "c443fb2cf1a0b330fbf8f4bf6b967c3002ccbd92"
62
+ "gitHead": "de5394e73076ccf7aca1e28dc68894e3c43f8b91"
63
63
  }