@spectrum-web-components/color-slider 0.4.9-react.32 → 0.4.9-react.48

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/color-slider",
3
- "version": "0.4.9-react.32+342d768c5",
3
+ "version": "0.4.9-react.48+e4fada004",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -62,13 +62,13 @@
62
62
  ],
63
63
  "dependencies": {
64
64
  "@ctrl/tinycolor": "^3.3.3",
65
- "@spectrum-web-components/base": "^0.7.5-react.32+342d768c5",
66
- "@spectrum-web-components/color-handle": "^0.4.7-react.32+342d768c5",
67
- "@spectrum-web-components/reactive-controllers": "^0.3.6-react.62+342d768c5",
68
- "@spectrum-web-components/shared": "^0.15.6-react.32+342d768c5"
65
+ "@spectrum-web-components/base": "^0.7.5-react.48+e4fada004",
66
+ "@spectrum-web-components/color-handle": "^0.4.7-react.48+e4fada004",
67
+ "@spectrum-web-components/reactive-controllers": "^0.3.6-react.78+e4fada004",
68
+ "@spectrum-web-components/shared": "^0.15.6-react.48+e4fada004"
69
69
  },
70
70
  "devDependencies": {
71
- "@spectrum-css/colorslider": "^2.0.9"
71
+ "@spectrum-css/colorslider": "^2.0.11"
72
72
  },
73
73
  "types": "./src/index.d.ts",
74
74
  "customElements": "custom-elements.json",
@@ -76,5 +76,5 @@
76
76
  "./sp-*.js",
77
77
  "./**/*.dev.js"
78
78
  ],
79
- "gitHead": "342d768c58d0a2790117f7625db6085210bb7f17"
79
+ "gitHead": "e4fada0040dcaf1e1267f2159f366ec708cb2d09"
80
80
  }
@@ -1,488 +0,0 @@
1
- {
2
- "schemaVersion": "1.0.0",
3
- "readme": "",
4
- "modules": [
5
- {
6
- "kind": "javascript-module",
7
- "path": "sp-color-slider.ts",
8
- "declarations": [],
9
- "exports": [
10
- {
11
- "kind": "custom-element-definition",
12
- "name": "sp-color-slider",
13
- "declaration": {
14
- "name": "ColorSlider",
15
- "module": "/src/ColorSlider.js"
16
- }
17
- }
18
- ]
19
- },
20
- {
21
- "kind": "javascript-module",
22
- "path": "src/ColorSlider.ts",
23
- "declarations": [
24
- {
25
- "kind": "class",
26
- "description": "",
27
- "name": "ColorSlider",
28
- "slots": [
29
- {
30
- "description": "a custom gradient visually outlining the available color values",
31
- "name": "gradient"
32
- }
33
- ],
34
- "members": [
35
- {
36
- "kind": "field",
37
- "name": "disabled",
38
- "type": {
39
- "text": "boolean"
40
- },
41
- "privacy": "public",
42
- "default": "false",
43
- "attribute": "disabled",
44
- "reflects": true
45
- },
46
- {
47
- "kind": "field",
48
- "name": "focused",
49
- "type": {
50
- "text": "boolean"
51
- },
52
- "privacy": "public",
53
- "default": "false",
54
- "attribute": "focused",
55
- "reflects": true
56
- },
57
- {
58
- "kind": "field",
59
- "name": "handle",
60
- "type": {
61
- "text": "ColorHandle"
62
- },
63
- "privacy": "private"
64
- },
65
- {
66
- "kind": "field",
67
- "name": "label",
68
- "type": {
69
- "text": "string"
70
- },
71
- "privacy": "public",
72
- "default": "'hue'",
73
- "attribute": "label"
74
- },
75
- {
76
- "kind": "field",
77
- "name": "vertical",
78
- "type": {
79
- "text": "boolean"
80
- },
81
- "privacy": "public",
82
- "default": "false",
83
- "attribute": "vertical",
84
- "reflects": true
85
- },
86
- {
87
- "kind": "field",
88
- "name": "colorController",
89
- "privacy": "private",
90
- "default": "new ColorController(this, {\n /* c8 ignore next 3 */\n applyColorToState: () => {\n this.sliderHandlePosition = 100 * (this.colorController.hue / 360);\n },\n extractColorFromState: (controller) => ({\n ...(controller.getColor('hsl') as HSL),\n h: this.value,\n }),\n maintains: 'saturation',\n })"
91
- },
92
- {
93
- "kind": "field",
94
- "name": "value",
95
- "type": {
96
- "text": "number"
97
- },
98
- "privacy": "public",
99
- "attribute": "value"
100
- },
101
- {
102
- "kind": "field",
103
- "name": "sliderHandlePosition",
104
- "type": {
105
- "text": "number"
106
- },
107
- "privacy": "public",
108
- "default": "0",
109
- "attribute": "sliderHandlePosition",
110
- "reflects": true
111
- },
112
- {
113
- "kind": "field",
114
- "name": "color",
115
- "type": {
116
- "text": "ColorValue"
117
- },
118
- "privacy": "public",
119
- "attribute": "color"
120
- },
121
- {
122
- "kind": "field",
123
- "name": "step",
124
- "type": {
125
- "text": "number"
126
- },
127
- "privacy": "public",
128
- "default": "1",
129
- "attribute": "step"
130
- },
131
- {
132
- "kind": "field",
133
- "name": "altered",
134
- "type": {
135
- "text": "number"
136
- },
137
- "privacy": "private"
138
- },
139
- {
140
- "kind": "field",
141
- "name": "_altered",
142
- "type": {
143
- "text": "number"
144
- },
145
- "privacy": "private",
146
- "default": "0"
147
- },
148
- {
149
- "kind": "field",
150
- "name": "input",
151
- "type": {
152
- "text": "HTMLInputElement"
153
- },
154
- "privacy": "public"
155
- },
156
- {
157
- "kind": "field",
158
- "name": "focusElement",
159
- "type": {
160
- "text": "HTMLInputElement"
161
- },
162
- "privacy": "public"
163
- },
164
- {
165
- "kind": "method",
166
- "name": "handleKeydown",
167
- "privacy": "private",
168
- "return": {
169
- "type": {
170
- "text": "void"
171
- }
172
- },
173
- "parameters": [
174
- {
175
- "name": "event",
176
- "type": {
177
- "text": "KeyboardEvent"
178
- }
179
- }
180
- ]
181
- },
182
- {
183
- "kind": "method",
184
- "name": "handleInput",
185
- "privacy": "private",
186
- "return": {
187
- "type": {
188
- "text": "void"
189
- }
190
- },
191
- "parameters": [
192
- {
193
- "name": "event",
194
- "type": {
195
- "text": "Event & { target: HTMLInputElement }"
196
- }
197
- }
198
- ]
199
- },
200
- {
201
- "kind": "method",
202
- "name": "handleChange",
203
- "privacy": "private",
204
- "return": {
205
- "type": {
206
- "text": "void"
207
- }
208
- },
209
- "parameters": [
210
- {
211
- "name": "event",
212
- "type": {
213
- "text": "Event & { target: HTMLInputElement }"
214
- }
215
- }
216
- ]
217
- },
218
- {
219
- "kind": "method",
220
- "name": "focus",
221
- "privacy": "public",
222
- "return": {
223
- "type": {
224
- "text": "void"
225
- }
226
- },
227
- "parameters": [
228
- {
229
- "name": "focusOptions",
230
- "default": "{}",
231
- "type": {
232
- "text": "FocusOptions"
233
- }
234
- }
235
- ]
236
- },
237
- {
238
- "kind": "method",
239
- "name": "forwardFocus",
240
- "privacy": "private",
241
- "return": {
242
- "type": {
243
- "text": "void"
244
- }
245
- }
246
- },
247
- {
248
- "kind": "method",
249
- "name": "handleFocusin",
250
- "privacy": "private",
251
- "return": {
252
- "type": {
253
- "text": "void"
254
- }
255
- }
256
- },
257
- {
258
- "kind": "method",
259
- "name": "handleFocusout",
260
- "privacy": "private",
261
- "return": {
262
- "type": {
263
- "text": "void"
264
- }
265
- }
266
- },
267
- {
268
- "kind": "field",
269
- "name": "boundingClientRect",
270
- "type": {
271
- "text": "DOMRect"
272
- },
273
- "privacy": "private"
274
- },
275
- {
276
- "kind": "field",
277
- "name": "_pointerDown",
278
- "type": {
279
- "text": "boolean"
280
- },
281
- "privacy": "private",
282
- "default": "false"
283
- },
284
- {
285
- "kind": "method",
286
- "name": "handlePointerdown",
287
- "privacy": "private",
288
- "return": {
289
- "type": {
290
- "text": "void"
291
- }
292
- },
293
- "parameters": [
294
- {
295
- "name": "event",
296
- "type": {
297
- "text": "PointerEvent"
298
- }
299
- }
300
- ]
301
- },
302
- {
303
- "kind": "method",
304
- "name": "handlePointermove",
305
- "privacy": "private",
306
- "return": {
307
- "type": {
308
- "text": "void"
309
- }
310
- },
311
- "parameters": [
312
- {
313
- "name": "event",
314
- "type": {
315
- "text": "PointerEvent"
316
- }
317
- }
318
- ]
319
- },
320
- {
321
- "kind": "method",
322
- "name": "handlePointerup",
323
- "privacy": "private",
324
- "return": {
325
- "type": {
326
- "text": "void"
327
- }
328
- },
329
- "parameters": [
330
- {
331
- "name": "event",
332
- "type": {
333
- "text": "PointerEvent"
334
- }
335
- }
336
- ]
337
- },
338
- {
339
- "kind": "method",
340
- "name": "calculateHandlePosition",
341
- "privacy": "private",
342
- "return": {
343
- "type": {
344
- "text": ""
345
- }
346
- },
347
- "parameters": [
348
- {
349
- "name": "event",
350
- "type": {
351
- "text": "PointerEvent"
352
- }
353
- },
354
- {
355
- "description": ": PointerEvent on slider",
356
- "name": ""
357
- }
358
- ],
359
- "description": "Returns the value under the cursor"
360
- },
361
- {
362
- "kind": "method",
363
- "name": "handleGradientPointerdown",
364
- "privacy": "private",
365
- "return": {
366
- "type": {
367
- "text": "void"
368
- }
369
- },
370
- "parameters": [
371
- {
372
- "name": "event",
373
- "type": {
374
- "text": "PointerEvent"
375
- }
376
- }
377
- ]
378
- },
379
- {
380
- "kind": "field",
381
- "name": "handlePositionStyles",
382
- "type": {
383
- "text": "string"
384
- },
385
- "privacy": "private"
386
- }
387
- ],
388
- "events": [
389
- {
390
- "name": "input",
391
- "type": {
392
- "text": "Event"
393
- },
394
- "description": "The value of the Color Slider has changed."
395
- },
396
- {
397
- "name": "change",
398
- "type": {
399
- "text": "Event"
400
- },
401
- "description": "An alteration to the value of the Color Slider has been committed by the user."
402
- }
403
- ],
404
- "attributes": [
405
- {
406
- "name": "disabled",
407
- "type": {
408
- "text": "boolean"
409
- },
410
- "default": "false",
411
- "fieldName": "disabled"
412
- },
413
- {
414
- "name": "focused",
415
- "type": {
416
- "text": "boolean"
417
- },
418
- "default": "false",
419
- "fieldName": "focused"
420
- },
421
- {
422
- "name": "label",
423
- "type": {
424
- "text": "string"
425
- },
426
- "default": "'hue'",
427
- "fieldName": "label"
428
- },
429
- {
430
- "name": "vertical",
431
- "type": {
432
- "text": "boolean"
433
- },
434
- "default": "false",
435
- "fieldName": "vertical"
436
- },
437
- {
438
- "name": "value",
439
- "type": {
440
- "text": "number"
441
- },
442
- "fieldName": "value"
443
- },
444
- {
445
- "name": "sliderHandlePosition",
446
- "type": {
447
- "text": "number"
448
- },
449
- "default": "0",
450
- "fieldName": "sliderHandlePosition"
451
- },
452
- {
453
- "name": "color",
454
- "type": {
455
- "text": "ColorValue"
456
- },
457
- "fieldName": "color"
458
- },
459
- {
460
- "name": "step",
461
- "type": {
462
- "text": "number"
463
- },
464
- "default": "1",
465
- "fieldName": "step"
466
- }
467
- ],
468
- "superclass": {
469
- "name": "Focusable",
470
- "package": "@spectrum-web-components/shared/src/focusable.js"
471
- },
472
- "tagName": "sp-color-slider",
473
- "customElement": true
474
- }
475
- ],
476
- "exports": [
477
- {
478
- "kind": "js",
479
- "name": "ColorSlider",
480
- "declaration": {
481
- "name": "ColorSlider",
482
- "module": "src/ColorSlider.ts"
483
- }
484
- }
485
- ]
486
- }
487
- ]
488
- }