@strapi/plugin-color-picker 4.7.0-beta.0 → 4.7.0-exp.117579f4c13806c2cd518e7d7d2f9d0c8a20107d
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
|
|
4
|
-
import {
|
|
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 {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
.
|
|
5
|
-
|
|
6
|
-
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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-
|
|
3
|
+
"version": "4.7.0-exp.117579f4c13806c2cd518e7d7d2f9d0c8a20107d",
|
|
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": "
|
|
41
|
+
"gitHead": "117579f4c13806c2cd518e7d7d2f9d0c8a20107d"
|
|
42
42
|
}
|