@strapi/plugin-color-picker 4.7.0-beta.0 → 4.7.0-exp.3d6a31eb083e9d44afcf98f68c107fb7567e5720

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,7 @@
1
1
  import React from 'react';
2
2
  import styled from 'styled-components';
3
- import { Icon } from '@strapi/design-system/Icon';
4
- import { Flex } from '@strapi/design-system/Flex';
5
- import Paint from '@strapi/icons/Paint';
3
+ import { Icon, Flex } from '@strapi/design-system';
4
+ import { Paint } from '@strapi/icons';
6
5
 
7
6
  const IconBox = styled(Flex)`
8
7
  /* Hard code color values */
@@ -1,15 +1,21 @@
1
1
  import React, { useState, useRef } from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import styled from 'styled-components';
4
- import { Stack } from '@strapi/design-system/Stack';
5
- import { Typography } from '@strapi/design-system/Typography';
6
- import { Flex } from '@strapi/design-system/Flex';
7
- import { Box } from '@strapi/design-system/Box';
8
- import { BaseButton } from '@strapi/design-system/BaseButton';
9
- import { FocusTrap } from '@strapi/design-system/FocusTrap';
10
- import { Field, FieldHint, FieldError, FieldLabel, FieldInput } from '@strapi/design-system/Field';
11
- import { Popover } from '@strapi/design-system/Popover';
12
- import CarretDown from '@strapi/icons/CarretDown';
4
+ import {
5
+ Stack,
6
+ Typography,
7
+ Flex,
8
+ Box,
9
+ BaseButton,
10
+ FocusTrap,
11
+ Field,
12
+ FieldHint,
13
+ FieldError,
14
+ FieldLabel,
15
+ FieldInput,
16
+ Popover,
17
+ } from '@strapi/design-system';
18
+ import { CarretDown } from '@strapi/icons';
13
19
  import { useIntl } from 'react-intl';
14
20
  import { HexColorPicker } from 'react-colorful';
15
21
 
@@ -1,16 +1,17 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`<ColorPickerInput /> renders and matches the snapshot 1`] = `
4
- .c8 {
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;
4
+ .c2 {
5
+ font-size: 0.75rem;
6
+ line-height: 1.33;
7
+ font-weight: 600;
8
+ color: #32324d;
9
+ }
10
+
11
+ .c7 {
12
+ font-size: 0.875rem;
13
+ line-height: 1.43;
14
+ color: #666687;
14
15
  }
15
16
 
16
17
  .c0 {
@@ -50,19 +51,6 @@ exports[`<ColorPickerInput /> renders and matches the snapshot 1`] = `
50
51
  margin-top: 4px;
51
52
  }
52
53
 
53
- .c2 {
54
- font-size: 0.75rem;
55
- line-height: 1.33;
56
- font-weight: 600;
57
- color: #32324d;
58
- }
59
-
60
- .c7 {
61
- font-size: 0.875rem;
62
- line-height: 1.43;
63
- color: #666687;
64
- }
65
-
66
54
  .c4 {
67
55
  display: -webkit-box;
68
56
  display: -webkit-flex;
@@ -121,6 +109,18 @@ exports[`<ColorPickerInput /> renders and matches the snapshot 1`] = `
121
109
  border: 2px solid #4945ff;
122
110
  }
123
111
 
112
+ .c8 {
113
+ border: 0;
114
+ -webkit-clip: rect(0 0 0 0);
115
+ clip: rect(0 0 0 0);
116
+ height: 1px;
117
+ margin: -1px;
118
+ overflow: hidden;
119
+ padding: 0;
120
+ position: absolute;
121
+ width: 1px;
122
+ }
123
+
124
124
  .c6 {
125
125
  border-radius: 50%;
126
126
  width: 20px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/plugin-color-picker",
3
- "version": "4.7.0-beta.0",
3
+ "version": "4.7.0-exp.3d6a31eb083e9d44afcf98f68c107fb7567e5720",
4
4
  "description": "Strapi maintained Custom Fields",
5
5
  "strapi": {
6
6
  "name": "color-picker",
@@ -38,5 +38,5 @@
38
38
  "node": ">=14.19.1 <=18.x.x",
39
39
  "npm": ">=6.0.0"
40
40
  },
41
- "gitHead": "880ba7af867ad43c4cc45b47467b76a9b5606b6e"
41
+ "gitHead": "3d6a31eb083e9d44afcf98f68c107fb7567e5720"
42
42
  }