antd-solid 0.0.17 → 0.0.18
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/css/index.css +1 -1
- package/dist/index.esm.js +64 -18
- package/dist/index.umd.js +1 -1
- package/es/Button/index.js +7 -25
- package/es/Checkbox/Group.js +2 -2
- package/es/Checkbox/index.js +13 -26
- package/es/CodeInput/index.js +0 -3
- package/es/Collapse/Item.js +8 -50
- package/es/Collapse/index.js +3 -5
- package/es/ColorPicker/ColorPickerInput.js +210 -224
- package/es/ColorPicker/ColorPickerSelect.js +4 -61
- package/es/ColorPicker/ColorPickerSlider.js +67 -100
- package/es/ColorPicker/index.js +16 -62
- package/es/ContextMenu/index.js +1 -5
- package/es/Cursor/index.js +3 -15
- package/es/Divider/index.js +3 -12
- package/es/Drawer/index.js +42 -83
- package/es/Element/index.js +6 -2
- package/es/Empty/PRESENTED_IMAGE_SIMPLE.js +4 -12
- package/es/Empty/assets/EmptySvg.js +3 -3
- package/es/Empty/assets/SimpleEmptySvg.js +3 -3
- package/es/Empty/index.js +4 -12
- package/es/Form/FormItem.js +47 -76
- package/es/Fragment/index.js +1 -3
- package/es/Image/index.js +11 -31
- package/es/Input/TextArea.js +5 -31
- package/es/Input/index.js +46 -103
- package/es/InputNumber/index.js +4 -11
- package/es/Menu/InternalMenu.js +37 -93
- package/es/Message/Message.js +7 -11
- package/es/Modal/index.js +55 -107
- package/es/Modal/useModal.js +5 -14
- package/es/Modal/warning.js +5 -14
- package/es/Popconfirm/index.js +24 -36
- package/es/Popover/index.js +11 -20
- package/es/Progress/Circle.js +14 -63
- package/es/Progress/index.js +14 -38
- package/es/Radio/Button.js +4 -20
- package/es/Radio/index.js +5 -35
- package/es/RangeInput/index.js +22 -76
- package/es/Result/index.js +6 -27
- package/es/Segmented/index.js +13 -33
- package/es/Select/index.js +6 -35
- package/es/SelectInput/index.js +48 -112
- package/es/Slider/index.js +11 -84
- package/es/Space/index.js +2 -2
- package/es/Spin/index.js +14 -26
- package/es/Switch/index.js +4 -6
- package/es/Table/index.js +18 -40
- package/es/Tabs/index.js +91 -195
- package/es/Timeline/index.js +4 -14
- package/es/Tooltip/index.js +20 -48
- package/es/Transformer/index.js +59 -123
- package/es/Tree/SingleLevelTree.js +30 -191
- package/es/TreeFor/index.js +3 -3
- package/es/TreeSelect/index.js +4 -6
- package/es/Upload/index.js +4 -38
- package/es/assets/svg/ColorPickUp.js +6 -19
- package/es/assets/svg/Crosshair.js +6 -45
- package/es/assets/svg/Resize.js +6 -19
- package/es/assets/svg/Rotate.js +13 -14
- package/es/assets/svg/RotateArrow.js +20 -15
- package/es/hooks/useClickAway.js +6 -4
- package/es/utils/DOMRect.d.ts +22 -0
- package/es/utils/DOMRect.js +41 -0
- package/package.json +14 -15
- package/src/index.ts +102 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ssr, ssrHydrationKey, escape, createComponent } from 'solid-js/web';
|
|
2
2
|
import { useContext, createMemo, createSignal, createRenderEffect, Switch, Match, Show } from 'solid-js';
|
|
3
3
|
import ColorPickerContext from './context.js';
|
|
4
4
|
import Select from '../Select/index.js';
|
|
@@ -6,9 +6,9 @@ import Input from '../Input/index.js';
|
|
|
6
6
|
import InputNumber from '../InputNumber/index.js';
|
|
7
7
|
import Color from './color.js';
|
|
8
8
|
|
|
9
|
-
var _tmpl$ =
|
|
10
|
-
_tmpl$2 =
|
|
11
|
-
_tmpl$3 =
|
|
9
|
+
var _tmpl$ = ["<div", " class=\"flex grow-1 gap-[var(--ant-margin-xxs)]\"><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"],
|
|
10
|
+
_tmpl$2 = ["<div", " class=\"flex\"><!--$-->", "<!--/--><!--$-->", "<!--/--><!--$-->", "<!--/--></div>"],
|
|
11
|
+
_tmpl$3 = ["<span", " class=\"text-[--ant-color-text-placeholder]\">#</span>"];
|
|
12
12
|
const ColorPickerInput = () => {
|
|
13
13
|
const context = useContext(ColorPickerContext);
|
|
14
14
|
const color = createMemo(() => context?.color() ?? new Color());
|
|
@@ -17,226 +17,212 @@ const ColorPickerInput = () => {
|
|
|
17
17
|
createRenderEffect(() => {
|
|
18
18
|
setHexInputValue(color().toHex());
|
|
19
19
|
});
|
|
20
|
-
return (()
|
|
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
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
max: 100,
|
|
227
|
-
precision: 0,
|
|
228
|
-
formatter: value => `${value || 0}%`,
|
|
229
|
-
get style() {
|
|
230
|
-
return {
|
|
231
|
-
...InputNumberStyle,
|
|
232
|
-
'margin-left': 'var(--ant-margin-xxs)'
|
|
233
|
-
};
|
|
234
|
-
}
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
}), null);
|
|
238
|
-
return _el$;
|
|
239
|
-
})();
|
|
20
|
+
return ssr(_tmpl$2, ssrHydrationKey(), escape(createComponent(Select, {
|
|
21
|
+
get value() {
|
|
22
|
+
return type();
|
|
23
|
+
},
|
|
24
|
+
onChange: setType,
|
|
25
|
+
options: [{
|
|
26
|
+
label: 'HEX',
|
|
27
|
+
value: 'HEX'
|
|
28
|
+
}, {
|
|
29
|
+
label: 'HSV',
|
|
30
|
+
value: 'HSV'
|
|
31
|
+
}, {
|
|
32
|
+
label: 'RGB',
|
|
33
|
+
value: 'RGB'
|
|
34
|
+
}],
|
|
35
|
+
size: "small",
|
|
36
|
+
variant: "borderless",
|
|
37
|
+
style: {
|
|
38
|
+
'margin-right': 'var(--ant-margin-xs)',
|
|
39
|
+
'--ant-select-font-size': '12px',
|
|
40
|
+
'--ant-select-input-padding': '0',
|
|
41
|
+
'--ant-select-input-addon-after-padding': '0 0 0 var(--ant-padding-xxs)',
|
|
42
|
+
'--ant-select-popup-match-width': '60px'
|
|
43
|
+
}
|
|
44
|
+
})), escape(createComponent(Switch, {
|
|
45
|
+
get children() {
|
|
46
|
+
return [createComponent(Match, {
|
|
47
|
+
get when() {
|
|
48
|
+
return type() === 'HEX';
|
|
49
|
+
},
|
|
50
|
+
get children() {
|
|
51
|
+
return createComponent(Input, {
|
|
52
|
+
size: "small",
|
|
53
|
+
get value() {
|
|
54
|
+
return hexInputValue();
|
|
55
|
+
},
|
|
56
|
+
onChange: e => {
|
|
57
|
+
const value = e.target.value.replace(/[^a-zA-Z0-9]/g, '');
|
|
58
|
+
if (value.length > 6) return;
|
|
59
|
+
setHexInputValue(value);
|
|
60
|
+
if (value.length !== 6) return;
|
|
61
|
+
const c = new Color(value);
|
|
62
|
+
if (!c.isValid) return;
|
|
63
|
+
context?.setColor(new Color(value).setAlpha(color().a));
|
|
64
|
+
},
|
|
65
|
+
onBlur: () => {
|
|
66
|
+
setHexInputValue(color().toHex());
|
|
67
|
+
context?.setColor(color(), true);
|
|
68
|
+
},
|
|
69
|
+
get prefix() {
|
|
70
|
+
return ssr(_tmpl$3, ssrHydrationKey());
|
|
71
|
+
},
|
|
72
|
+
style: {
|
|
73
|
+
'--ant-input-font-size': '12px'
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}), createComponent(Match, {
|
|
78
|
+
get when() {
|
|
79
|
+
return type() === 'HSV';
|
|
80
|
+
},
|
|
81
|
+
get children() {
|
|
82
|
+
return ssr(_tmpl$, ssrHydrationKey(), escape(createComponent(InputNumber, {
|
|
83
|
+
size: "small",
|
|
84
|
+
get value() {
|
|
85
|
+
return Math.round(color().toHsv().h);
|
|
86
|
+
},
|
|
87
|
+
onChange: value => {
|
|
88
|
+
const hsv = color().toHsv();
|
|
89
|
+
hsv.h = value ?? 0;
|
|
90
|
+
context?.setColor(new Color(hsv));
|
|
91
|
+
},
|
|
92
|
+
onBlur: () => {
|
|
93
|
+
context?.setColor(color(), true);
|
|
94
|
+
},
|
|
95
|
+
min: 0,
|
|
96
|
+
max: 359,
|
|
97
|
+
precision: 0,
|
|
98
|
+
style: InputNumberStyle
|
|
99
|
+
})), escape(createComponent(InputNumber, {
|
|
100
|
+
size: "small",
|
|
101
|
+
get value() {
|
|
102
|
+
return Math.round(color().toHsv().s * 100);
|
|
103
|
+
},
|
|
104
|
+
onChange: value => {
|
|
105
|
+
const hsv = color().toHsv();
|
|
106
|
+
hsv.s = (value ?? 0) / 100;
|
|
107
|
+
context?.setColor(new Color(hsv));
|
|
108
|
+
},
|
|
109
|
+
onBlur: () => {
|
|
110
|
+
context?.setColor(color(), true);
|
|
111
|
+
},
|
|
112
|
+
min: 0,
|
|
113
|
+
max: 100,
|
|
114
|
+
precision: 0,
|
|
115
|
+
formatter: value => `${value || 0}%`,
|
|
116
|
+
style: InputNumberStyle
|
|
117
|
+
})), escape(createComponent(InputNumber, {
|
|
118
|
+
size: "small",
|
|
119
|
+
get value() {
|
|
120
|
+
return Math.round(color().toHsv().v * 100);
|
|
121
|
+
},
|
|
122
|
+
onChange: value => {
|
|
123
|
+
const hsv = color().toHsv();
|
|
124
|
+
hsv.v = (value ?? 0) / 100;
|
|
125
|
+
context?.setColor(new Color(hsv));
|
|
126
|
+
},
|
|
127
|
+
onBlur: () => {
|
|
128
|
+
context?.setColor(color(), true);
|
|
129
|
+
},
|
|
130
|
+
min: 0,
|
|
131
|
+
max: 100,
|
|
132
|
+
precision: 0,
|
|
133
|
+
formatter: value => `${value || 0}%`,
|
|
134
|
+
style: InputNumberStyle
|
|
135
|
+
})));
|
|
136
|
+
}
|
|
137
|
+
}), createComponent(Match, {
|
|
138
|
+
get when() {
|
|
139
|
+
return type() === 'RGB';
|
|
140
|
+
},
|
|
141
|
+
get children() {
|
|
142
|
+
return ssr(_tmpl$, ssrHydrationKey(), escape(createComponent(InputNumber, {
|
|
143
|
+
size: "small",
|
|
144
|
+
get value() {
|
|
145
|
+
return Math.round(color().r);
|
|
146
|
+
},
|
|
147
|
+
onChange: value => {
|
|
148
|
+
const rgb = color().toRgb();
|
|
149
|
+
rgb.r = value ?? 0;
|
|
150
|
+
context?.setColor(new Color(rgb));
|
|
151
|
+
},
|
|
152
|
+
onBlur: () => {
|
|
153
|
+
context?.setColor(color(), true);
|
|
154
|
+
},
|
|
155
|
+
min: 0,
|
|
156
|
+
max: 255,
|
|
157
|
+
precision: 0,
|
|
158
|
+
style: InputNumberStyle
|
|
159
|
+
})), escape(createComponent(InputNumber, {
|
|
160
|
+
size: "small",
|
|
161
|
+
get value() {
|
|
162
|
+
return Math.round(color().g);
|
|
163
|
+
},
|
|
164
|
+
onChange: value => {
|
|
165
|
+
const rgb = color().toRgb();
|
|
166
|
+
rgb.g = value ?? 0;
|
|
167
|
+
context?.setColor(new Color(rgb));
|
|
168
|
+
},
|
|
169
|
+
onBlur: () => {
|
|
170
|
+
context?.setColor(color(), true);
|
|
171
|
+
},
|
|
172
|
+
min: 0,
|
|
173
|
+
max: 255,
|
|
174
|
+
precision: 0,
|
|
175
|
+
style: InputNumberStyle
|
|
176
|
+
})), escape(createComponent(InputNumber, {
|
|
177
|
+
size: "small",
|
|
178
|
+
get value() {
|
|
179
|
+
return Math.round(color().b);
|
|
180
|
+
},
|
|
181
|
+
onChange: value => {
|
|
182
|
+
const rgb = color().toRgb();
|
|
183
|
+
rgb.b = value ?? 0;
|
|
184
|
+
context?.setColor(new Color(rgb));
|
|
185
|
+
},
|
|
186
|
+
onBlur: () => {
|
|
187
|
+
context?.setColor(color(), true);
|
|
188
|
+
},
|
|
189
|
+
min: 0,
|
|
190
|
+
max: 255,
|
|
191
|
+
precision: 0,
|
|
192
|
+
style: InputNumberStyle
|
|
193
|
+
})));
|
|
194
|
+
}
|
|
195
|
+
})];
|
|
196
|
+
}
|
|
197
|
+
})), escape(createComponent(Show, {
|
|
198
|
+
get when() {
|
|
199
|
+
return !context?.disabledAlpha();
|
|
200
|
+
},
|
|
201
|
+
get children() {
|
|
202
|
+
return createComponent(InputNumber, {
|
|
203
|
+
get value() {
|
|
204
|
+
return Math.round(color().a * 100);
|
|
205
|
+
},
|
|
206
|
+
onChange: value => {
|
|
207
|
+
context?.setColor(color().clone().setAlpha((value ?? 0) / 100));
|
|
208
|
+
},
|
|
209
|
+
onBlur: () => {
|
|
210
|
+
context?.setColor(color(), true);
|
|
211
|
+
},
|
|
212
|
+
size: "small",
|
|
213
|
+
min: 0,
|
|
214
|
+
max: 100,
|
|
215
|
+
precision: 0,
|
|
216
|
+
formatter: value => `${value || 0}%`,
|
|
217
|
+
get style() {
|
|
218
|
+
return {
|
|
219
|
+
...InputNumberStyle,
|
|
220
|
+
'margin-left': 'var(--ant-margin-xxs)'
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
})));
|
|
240
226
|
};
|
|
241
227
|
const InputNumberStyle = {
|
|
242
228
|
width: '43px',
|
|
@@ -1,71 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ssr, ssrHydrationKey, escape } from 'solid-js/web';
|
|
2
2
|
import { useContext, createMemo } from 'solid-js';
|
|
3
|
-
import
|
|
3
|
+
import 'lodash-es';
|
|
4
4
|
import ColorPickerContext from './context.js';
|
|
5
5
|
import Color from './color.js';
|
|
6
|
-
import { setupGlobalDrag } from '../utils/setupGlobalDrag.js';
|
|
7
6
|
|
|
8
|
-
var _tmpl$ =
|
|
7
|
+
var _tmpl$ = ["<div", " class=\"h-160px rounded-[--ant-border-radius-sm] cursor-pointer relative overflow-hidden\" style=\"", "\"><div class=\"absolute border-2px border-solid border-[--ant-color-bg-container] rounded-1/2 w-16px h-16px -translate-1/2\" style=\"", "\"></div></div>"];
|
|
9
8
|
const ColorPickerSelect = () => {
|
|
10
|
-
let ref;
|
|
11
9
|
const context = useContext(ColorPickerContext);
|
|
12
10
|
const color = createMemo(() => context?.color() ?? new Color());
|
|
13
|
-
|
|
14
|
-
if (!ref) return;
|
|
15
|
-
const rect = ref.getBoundingClientRect();
|
|
16
|
-
const offsetX = e.clientX - rect.x;
|
|
17
|
-
const offsetY = e.clientY - rect.y;
|
|
18
|
-
const {
|
|
19
|
-
clientWidth,
|
|
20
|
-
clientHeight
|
|
21
|
-
} = ref;
|
|
22
|
-
const hsv = color().toHsv();
|
|
23
|
-
hsv.s = clamp(offsetX / clientWidth, 0, 1);
|
|
24
|
-
hsv.v = clamp(1 - offsetY / clientHeight, 0, 1);
|
|
25
|
-
context?.setColor(new Color(hsv), completed);
|
|
26
|
-
};
|
|
27
|
-
return (() => {
|
|
28
|
-
var _el$ = _tmpl$(),
|
|
29
|
-
_el$2 = _el$.firstChild;
|
|
30
|
-
_el$.$$click = e => {
|
|
31
|
-
setColor(e, true);
|
|
32
|
-
};
|
|
33
|
-
var _ref$ = ref;
|
|
34
|
-
typeof _ref$ === "function" ? use(_ref$, _el$) : ref = _el$;
|
|
35
|
-
_el$.style.setProperty("background-image", "linear-gradient(0deg, rgb(0, 0, 0), transparent), linear-gradient(90deg, rgb(255, 255, 255), rgba(255, 255, 255, 0))");
|
|
36
|
-
_el$2.$$mousedown = () => {
|
|
37
|
-
let isDrag = false;
|
|
38
|
-
setupGlobalDrag(
|
|
39
|
-
// eslint-disable-next-line solid/reactivity
|
|
40
|
-
e => {
|
|
41
|
-
setColor(e);
|
|
42
|
-
isDrag = true;
|
|
43
|
-
},
|
|
44
|
-
// eslint-disable-next-line solid/reactivity
|
|
45
|
-
() => {
|
|
46
|
-
if (isDrag) context?.setColor(color(), true);
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
_el$2.style.setProperty("box-shadow", "inset 0 0 1px 0 var(--ant-color-text-quaternary), 0 0 0 1px var(--ant-color-fill-secondary)");
|
|
50
|
-
effect(_p$ => {
|
|
51
|
-
var _v$ = color().toHueRgbString(),
|
|
52
|
-
_v$2 = `${color().toHsv().s * 100}%`,
|
|
53
|
-
_v$3 = `${(1 - color().toHsv().v) * 100}%`,
|
|
54
|
-
_v$4 = color().toRgbString();
|
|
55
|
-
_v$ !== _p$.e && ((_p$.e = _v$) != null ? _el$.style.setProperty("background-color", _v$) : _el$.style.removeProperty("background-color"));
|
|
56
|
-
_v$2 !== _p$.t && ((_p$.t = _v$2) != null ? _el$2.style.setProperty("left", _v$2) : _el$2.style.removeProperty("left"));
|
|
57
|
-
_v$3 !== _p$.a && ((_p$.a = _v$3) != null ? _el$2.style.setProperty("top", _v$3) : _el$2.style.removeProperty("top"));
|
|
58
|
-
_v$4 !== _p$.o && ((_p$.o = _v$4) != null ? _el$2.style.setProperty("background", _v$4) : _el$2.style.removeProperty("background"));
|
|
59
|
-
return _p$;
|
|
60
|
-
}, {
|
|
61
|
-
e: undefined,
|
|
62
|
-
t: undefined,
|
|
63
|
-
a: undefined,
|
|
64
|
-
o: undefined
|
|
65
|
-
});
|
|
66
|
-
return _el$;
|
|
67
|
-
})();
|
|
11
|
+
return ssr(_tmpl$, ssrHydrationKey(), "background-color:" + escape(color().toHueRgbString(), true) + (";background-image:" + "linear-gradient(0deg, rgb(0, 0, 0), transparent), linear-gradient(90deg, rgb(255, 255, 255), rgba(255, 255, 255, 0))"), "left:" + `${escape(color().toHsv().s, true) * 100}%` + (";top:" + `${(1 - escape(color().toHsv().v, true)) * 100}%`) + (";background:" + escape(color().toRgbString(), true)) + (";box-shadow:" + "inset 0 0 1px 0 var(--ant-color-text-quaternary), 0 0 0 1px var(--ant-color-fill-secondary)"));
|
|
68
12
|
};
|
|
69
|
-
delegateEvents(["click", "mousedown"]);
|
|
70
13
|
|
|
71
14
|
export { ColorPickerSelect as default };
|