@teammodlr/ui-kit 2.3.5 → 2.3.7
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.
- package/lib/components/colorpicker/ColorPicker.vue.d.ts +2 -0
- package/lib/index.cjs.js +5 -5
- package/lib/index.es.js +1314 -1299
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/src/components/colorpicker/ColorPicker.vue +39 -4
- package/src/components/colorpicker/style/ColorPicker.css.ts +133 -137
|
@@ -1,137 +1,133 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
right: 0,
|
|
135
|
-
bottom: 0,
|
|
136
|
-
background: 'linear-gradient(0deg, #000, transparent)'
|
|
137
|
-
});
|
|
1
|
+
import {
|
|
2
|
+
style,
|
|
3
|
+
} from '@vanilla-extract/css';
|
|
4
|
+
import { themeVars } from '../../../styles/theme.css';
|
|
5
|
+
|
|
6
|
+
export const container = style({
|
|
7
|
+
display: 'flex',
|
|
8
|
+
flexDirection: 'column',
|
|
9
|
+
width: '312px',
|
|
10
|
+
alignItems: 'center',
|
|
11
|
+
gap: '10px',
|
|
12
|
+
userSelect: 'none',
|
|
13
|
+
zIndex: 100,
|
|
14
|
+
backgroundColor: '#FFF',
|
|
15
|
+
borderRadius: '5px',
|
|
16
|
+
padding: themeVars.space[3],
|
|
17
|
+
border: `1px solid ${themeVars.color.gray[200]}`,
|
|
18
|
+
boxShadow: themeVars.shadow.md
|
|
19
|
+
});
|
|
20
|
+
export const sliderThumb = style({
|
|
21
|
+
transform: 'translate(-50%, -50%)',
|
|
22
|
+
position: 'absolute',
|
|
23
|
+
width: '14px',
|
|
24
|
+
height: '14px',
|
|
25
|
+
borderRadius: '50%',
|
|
26
|
+
backgroundColor: 'transparent',
|
|
27
|
+
border: '2px solid white',
|
|
28
|
+
boxShadow: themeVars.shadow.sm,
|
|
29
|
+
cursor: 'crosshair',
|
|
30
|
+
userSelect: 'none'
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export const eyeDrop = style({
|
|
34
|
+
backgroundColor: 'transparent',
|
|
35
|
+
outline: 'none',
|
|
36
|
+
border: 0,
|
|
37
|
+
color: themeVars.color.gray[600],
|
|
38
|
+
width: '32px',
|
|
39
|
+
height: '32px',
|
|
40
|
+
borderRadius: themeVars.rounded.default,
|
|
41
|
+
display: 'flex',
|
|
42
|
+
alignItems: 'center',
|
|
43
|
+
justifyContent: 'center',
|
|
44
|
+
flexShrink: 0,
|
|
45
|
+
cursor: 'pointer',
|
|
46
|
+
selectors: {
|
|
47
|
+
'&:hover': {
|
|
48
|
+
backgroundColor: themeVars.color.gray[100],
|
|
49
|
+
color: themeVars.color.gray[700]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export const preview = style({
|
|
55
|
+
backgroundImage:
|
|
56
|
+
'linear-gradient(45deg, #bebebe 25%, transparent 25%), linear-gradient(-45deg, #bebebe 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #bebebe 75%), linear-gradient(-45deg, transparent 75%, #bebebe 75%)',
|
|
57
|
+
backgroundSize: '12px 12px',
|
|
58
|
+
backgroundPosition: '0 0, 0 6px, 6px -6px, -6px 0px',
|
|
59
|
+
overflow: 'hidden',
|
|
60
|
+
minWidth: '32px',
|
|
61
|
+
minHeight: '32px',
|
|
62
|
+
width: '32px',
|
|
63
|
+
height: '32px',
|
|
64
|
+
borderRadius: '100%',
|
|
65
|
+
border: `1px solid ${themeVars.color.gray[200]}`
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
export const colours = style({
|
|
69
|
+
position: 'relative',
|
|
70
|
+
height: '160px',
|
|
71
|
+
width: '100%',
|
|
72
|
+
cursor: 'crosshair'
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
export const reference = style({
|
|
76
|
+
backgroundImage:
|
|
77
|
+
'linear-gradient(45deg, #bebebe 25%, transparent 25%), linear-gradient(-45deg, #bebebe 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #bebebe 75%), linear-gradient(-45deg, transparent 75%, #bebebe 75%)',
|
|
78
|
+
backgroundSize: '12px 12px',
|
|
79
|
+
backgroundPosition: '0 0, 0 6px, 6px -6px, -6px 0px',
|
|
80
|
+
overflow: 'hidden',
|
|
81
|
+
minWidth: '28px',
|
|
82
|
+
minHeight: '28px',
|
|
83
|
+
width: '28px',
|
|
84
|
+
height: '28px',
|
|
85
|
+
borderRadius: themeVars.rounded.default,
|
|
86
|
+
position: 'relative',
|
|
87
|
+
cursor: 'pointer',
|
|
88
|
+
userSelect: 'none'
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
export const transparent = style({
|
|
92
|
+
backgroundImage:
|
|
93
|
+
'linear-gradient(45deg, #bebebe 25%, transparent 25%), linear-gradient(-45deg, #bebebe 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #bebebe 75%), linear-gradient(-45deg, transparent 75%, #bebebe 75%)',
|
|
94
|
+
backgroundSize: '12px 12px',
|
|
95
|
+
backgroundPosition: '0 0, 0 6px, 6px -6px, -6px 0px',
|
|
96
|
+
overflow: 'hidden',
|
|
97
|
+
cursor: 'pointer',
|
|
98
|
+
userSelect: 'none',
|
|
99
|
+
})
|
|
100
|
+
|
|
101
|
+
export const referenceColor = style({
|
|
102
|
+
position: 'absolute',
|
|
103
|
+
top: 0,
|
|
104
|
+
left: 0,
|
|
105
|
+
right: 0,
|
|
106
|
+
bottom: 0
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
export const colorActions = style({
|
|
110
|
+
display: 'flex',
|
|
111
|
+
gap: themeVars.space[2],
|
|
112
|
+
width: '100%',
|
|
113
|
+
alignItems: 'center',
|
|
114
|
+
justifyContent: 'space-between'
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
export const whiteGradient = style({
|
|
118
|
+
position: 'absolute',
|
|
119
|
+
top: 0,
|
|
120
|
+
left: 0,
|
|
121
|
+
right: 0,
|
|
122
|
+
bottom: 0,
|
|
123
|
+
background: 'linear-gradient(90deg, #FFF, rgba(255, 255, 255, 0))'
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
export const blackGradient = style({
|
|
127
|
+
position: 'absolute',
|
|
128
|
+
top: 0,
|
|
129
|
+
left: 0,
|
|
130
|
+
right: 0,
|
|
131
|
+
bottom: 0,
|
|
132
|
+
background: 'linear-gradient(0deg, #000, transparent)'
|
|
133
|
+
});
|