@swc-react/slider 0.34.1-rc.0 → 0.35.1-rc.15
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/next.d.ts +68 -49
- package/package.json +3 -3
package/next.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const Slider: import("react").ComponentType<Partial<{
|
|
3
4
|
dir?: string | undefined;
|
|
4
5
|
slot?: string | undefined;
|
|
@@ -6,39 +7,44 @@ export declare const Slider: import("react").ComponentType<Partial<{
|
|
|
6
7
|
title?: string | undefined;
|
|
7
8
|
tabIndex?: number | undefined;
|
|
8
9
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
10
|
+
rel?: string | undefined;
|
|
9
11
|
id?: string | undefined;
|
|
10
12
|
className?: string | undefined;
|
|
13
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
11
14
|
accessKey?: string | undefined;
|
|
15
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
16
|
+
hidden?: boolean | undefined;
|
|
17
|
+
lang?: string | undefined;
|
|
18
|
+
translate?: "yes" | "no" | undefined;
|
|
19
|
+
prefix?: string | undefined;
|
|
20
|
+
children?: import("react").ReactNode;
|
|
21
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
22
|
+
inputMode?: "text" | "search" | "none" | "url" | "tel" | "email" | "decimal" | "numeric" | undefined;
|
|
23
|
+
nonce?: string | undefined;
|
|
12
24
|
'aria-labelledby'?: string | undefined;
|
|
13
25
|
'aria-label'?: string | undefined;
|
|
14
26
|
color?: string | undefined;
|
|
15
|
-
lang?: string | undefined;
|
|
16
27
|
role?: import("react").AriaRole | undefined;
|
|
17
28
|
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
18
29
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
19
30
|
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
20
|
-
hidden?: boolean | undefined;
|
|
21
31
|
'aria-describedby'?: string | undefined;
|
|
22
32
|
placeholder?: string | undefined;
|
|
23
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
24
|
-
translate?: "yes" | "no" | undefined;
|
|
25
|
-
prefix?: string | undefined;
|
|
26
|
-
children?: import("react").ReactNode;
|
|
27
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
28
|
-
inputMode?: "text" | "search" | "none" | "url" | "tel" | "email" | "decimal" | "numeric" | undefined;
|
|
29
|
-
nonce?: string | undefined;
|
|
30
33
|
defaultChecked?: boolean | undefined;
|
|
31
34
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
32
35
|
suppressContentEditableWarning?: boolean | undefined;
|
|
33
36
|
suppressHydrationWarning?: boolean | undefined;
|
|
37
|
+
autoFocus?: boolean | undefined;
|
|
34
38
|
contextMenu?: string | undefined;
|
|
35
39
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
36
40
|
radioGroup?: string | undefined;
|
|
37
41
|
about?: string | undefined;
|
|
42
|
+
content?: string | undefined;
|
|
38
43
|
datatype?: string | undefined;
|
|
39
44
|
inlist?: any;
|
|
40
45
|
property?: string | undefined;
|
|
41
46
|
resource?: string | undefined;
|
|
47
|
+
rev?: string | undefined;
|
|
42
48
|
typeof?: string | undefined;
|
|
43
49
|
vocab?: string | undefined;
|
|
44
50
|
autoCapitalize?: string | undefined;
|
|
@@ -56,19 +62,22 @@ export declare const Slider: import("react").ComponentType<Partial<{
|
|
|
56
62
|
'aria-activedescendant'?: string | undefined;
|
|
57
63
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
58
64
|
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
65
|
+
'aria-braillelabel'?: string | undefined;
|
|
66
|
+
'aria-brailleroledescription'?: string | undefined;
|
|
59
67
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
60
68
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
61
69
|
'aria-colcount'?: number | undefined;
|
|
62
70
|
'aria-colindex'?: number | undefined;
|
|
71
|
+
'aria-colindextext'?: string | undefined;
|
|
63
72
|
'aria-colspan'?: number | undefined;
|
|
64
73
|
'aria-controls'?: string | undefined;
|
|
65
74
|
'aria-current'?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date" | undefined;
|
|
75
|
+
'aria-description'?: string | undefined;
|
|
66
76
|
'aria-details'?: string | undefined;
|
|
67
77
|
'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
|
|
68
78
|
'aria-errormessage'?: string | undefined;
|
|
69
79
|
'aria-flowto'?: string | undefined;
|
|
70
80
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
71
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
72
81
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
73
82
|
'aria-keyshortcuts'?: string | undefined;
|
|
74
83
|
'aria-level'?: number | undefined;
|
|
@@ -86,6 +95,7 @@ export declare const Slider: import("react").ComponentType<Partial<{
|
|
|
86
95
|
'aria-roledescription'?: string | undefined;
|
|
87
96
|
'aria-rowcount'?: number | undefined;
|
|
88
97
|
'aria-rowindex'?: number | undefined;
|
|
98
|
+
'aria-rowindextext'?: string | undefined;
|
|
89
99
|
'aria-rowspan'?: number | undefined;
|
|
90
100
|
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
91
101
|
'aria-setsize'?: number | undefined;
|
|
@@ -95,7 +105,7 @@ export declare const Slider: import("react").ComponentType<Partial<{
|
|
|
95
105
|
'aria-valuenow'?: number | undefined;
|
|
96
106
|
'aria-valuetext'?: string | undefined;
|
|
97
107
|
dangerouslySetInnerHTML?: {
|
|
98
|
-
__html: string;
|
|
108
|
+
__html: string | TrustedHTML;
|
|
99
109
|
} | undefined;
|
|
100
110
|
onCopy?: import("react").ClipboardEventHandler<import("slider/src").Slider> | undefined;
|
|
101
111
|
onCopyCapture?: import("react").ClipboardEventHandler<import("slider/src").Slider> | undefined;
|
|
@@ -281,27 +291,13 @@ export declare const Slider: import("react").ComponentType<Partial<{
|
|
|
281
291
|
normalize: () => void;
|
|
282
292
|
ariaHidden: string | null;
|
|
283
293
|
name: string;
|
|
284
|
-
readonly focusElement: HTMLElement;
|
|
285
|
-
shadowRoot: ShadowRoot;
|
|
286
|
-
update: (changedProperties: Map<string, boolean>) => void;
|
|
287
|
-
readonly isConnected: boolean;
|
|
288
|
-
variant: string;
|
|
289
|
-
quiet: boolean;
|
|
290
|
-
value: number;
|
|
291
|
-
formatOptions?: import("@internationalized/number").NumberFormatOptions | undefined;
|
|
292
|
-
hideStepper: boolean;
|
|
293
|
-
indeterminate: boolean;
|
|
294
|
-
max: number;
|
|
295
|
-
min: number;
|
|
296
|
-
step: number;
|
|
297
|
-
_forcedUnit: string;
|
|
298
|
-
connectedCallback: () => void;
|
|
299
|
-
disconnectedCallback: () => void;
|
|
300
294
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
301
295
|
isUpdatePending: boolean;
|
|
302
296
|
hasUpdated: boolean;
|
|
303
297
|
addController: (controller: import("lit").ReactiveController) => void;
|
|
304
298
|
removeController: (controller: import("lit").ReactiveController) => void;
|
|
299
|
+
connectedCallback: () => void;
|
|
300
|
+
disconnectedCallback: () => void;
|
|
305
301
|
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
306
302
|
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
307
303
|
readonly updateComplete: Promise<boolean>;
|
|
@@ -340,6 +336,7 @@ export declare const Slider: import("react").ComponentType<Partial<{
|
|
|
340
336
|
scrollLeft: number;
|
|
341
337
|
scrollTop: number;
|
|
342
338
|
readonly scrollWidth: number;
|
|
339
|
+
shadowRoot: ShadowRoot;
|
|
343
340
|
readonly tagName: string;
|
|
344
341
|
attachShadow: (init: ShadowRootInit) => ShadowRoot;
|
|
345
342
|
closest: {
|
|
@@ -397,6 +394,7 @@ export declare const Slider: import("react").ComponentType<Partial<{
|
|
|
397
394
|
webkitMatchesSelector: (selectors: string) => boolean;
|
|
398
395
|
readonly baseURI: string;
|
|
399
396
|
readonly firstChild: ChildNode | null;
|
|
397
|
+
readonly isConnected: boolean;
|
|
400
398
|
readonly lastChild: ChildNode | null;
|
|
401
399
|
readonly nextSibling: ChildNode | null;
|
|
402
400
|
readonly nodeName: string;
|
|
@@ -594,6 +592,18 @@ export declare const Slider: import("react").ComponentType<Partial<{
|
|
|
594
592
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
595
593
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
596
594
|
readonly dataset: DOMStringMap;
|
|
595
|
+
readonly focusElement: HTMLElement;
|
|
596
|
+
update: (changedProperties: Map<string, boolean>) => void;
|
|
597
|
+
variant: string;
|
|
598
|
+
quiet: boolean;
|
|
599
|
+
value: number;
|
|
600
|
+
formatOptions?: import("@internationalized/number").NumberFormatOptions | undefined;
|
|
601
|
+
hideStepper: boolean;
|
|
602
|
+
indeterminate: boolean;
|
|
603
|
+
max: number;
|
|
604
|
+
min: number;
|
|
605
|
+
step: number;
|
|
606
|
+
_forcedUnit: string;
|
|
597
607
|
isLTR: boolean;
|
|
598
608
|
hasVisibleFocusInTree: () => boolean;
|
|
599
609
|
dragging: boolean;
|
|
@@ -625,39 +635,44 @@ export declare const SliderHandle: import("react").ComponentType<Partial<{
|
|
|
625
635
|
title?: string | undefined;
|
|
626
636
|
tabIndex?: number | undefined;
|
|
627
637
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
638
|
+
rel?: string | undefined;
|
|
628
639
|
id?: string | undefined;
|
|
629
640
|
className?: string | undefined;
|
|
641
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
630
642
|
accessKey?: string | undefined;
|
|
643
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
644
|
+
hidden?: boolean | undefined;
|
|
645
|
+
lang?: string | undefined;
|
|
646
|
+
translate?: "yes" | "no" | undefined;
|
|
647
|
+
prefix?: string | undefined;
|
|
648
|
+
children?: import("react").ReactNode;
|
|
649
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
650
|
+
inputMode?: "text" | "search" | "none" | "url" | "tel" | "email" | "decimal" | "numeric" | undefined;
|
|
651
|
+
nonce?: string | undefined;
|
|
631
652
|
'aria-labelledby'?: string | undefined;
|
|
632
653
|
'aria-label'?: string | undefined;
|
|
633
654
|
color?: string | undefined;
|
|
634
|
-
lang?: string | undefined;
|
|
635
655
|
role?: import("react").AriaRole | undefined;
|
|
636
656
|
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
637
657
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
638
658
|
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
639
|
-
hidden?: boolean | undefined;
|
|
640
659
|
'aria-describedby'?: string | undefined;
|
|
641
660
|
placeholder?: string | undefined;
|
|
642
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
643
|
-
translate?: "yes" | "no" | undefined;
|
|
644
|
-
prefix?: string | undefined;
|
|
645
|
-
children?: import("react").ReactNode;
|
|
646
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
647
|
-
inputMode?: "text" | "search" | "none" | "url" | "tel" | "email" | "decimal" | "numeric" | undefined;
|
|
648
|
-
nonce?: string | undefined;
|
|
649
661
|
defaultChecked?: boolean | undefined;
|
|
650
662
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
651
663
|
suppressContentEditableWarning?: boolean | undefined;
|
|
652
664
|
suppressHydrationWarning?: boolean | undefined;
|
|
665
|
+
autoFocus?: boolean | undefined;
|
|
653
666
|
contextMenu?: string | undefined;
|
|
654
667
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
655
668
|
radioGroup?: string | undefined;
|
|
656
669
|
about?: string | undefined;
|
|
670
|
+
content?: string | undefined;
|
|
657
671
|
datatype?: string | undefined;
|
|
658
672
|
inlist?: any;
|
|
659
673
|
property?: string | undefined;
|
|
660
674
|
resource?: string | undefined;
|
|
675
|
+
rev?: string | undefined;
|
|
661
676
|
typeof?: string | undefined;
|
|
662
677
|
vocab?: string | undefined;
|
|
663
678
|
autoCapitalize?: string | undefined;
|
|
@@ -675,19 +690,22 @@ export declare const SliderHandle: import("react").ComponentType<Partial<{
|
|
|
675
690
|
'aria-activedescendant'?: string | undefined;
|
|
676
691
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
677
692
|
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
693
|
+
'aria-braillelabel'?: string | undefined;
|
|
694
|
+
'aria-brailleroledescription'?: string | undefined;
|
|
678
695
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
679
696
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
680
697
|
'aria-colcount'?: number | undefined;
|
|
681
698
|
'aria-colindex'?: number | undefined;
|
|
699
|
+
'aria-colindextext'?: string | undefined;
|
|
682
700
|
'aria-colspan'?: number | undefined;
|
|
683
701
|
'aria-controls'?: string | undefined;
|
|
684
702
|
'aria-current'?: boolean | "time" | "true" | "false" | "step" | "page" | "location" | "date" | undefined;
|
|
703
|
+
'aria-description'?: string | undefined;
|
|
685
704
|
'aria-details'?: string | undefined;
|
|
686
705
|
'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
|
|
687
706
|
'aria-errormessage'?: string | undefined;
|
|
688
707
|
'aria-flowto'?: string | undefined;
|
|
689
708
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
690
|
-
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
691
709
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
692
710
|
'aria-keyshortcuts'?: string | undefined;
|
|
693
711
|
'aria-level'?: number | undefined;
|
|
@@ -705,6 +723,7 @@ export declare const SliderHandle: import("react").ComponentType<Partial<{
|
|
|
705
723
|
'aria-roledescription'?: string | undefined;
|
|
706
724
|
'aria-rowcount'?: number | undefined;
|
|
707
725
|
'aria-rowindex'?: number | undefined;
|
|
726
|
+
'aria-rowindextext'?: string | undefined;
|
|
708
727
|
'aria-rowspan'?: number | undefined;
|
|
709
728
|
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
710
729
|
'aria-setsize'?: number | undefined;
|
|
@@ -714,7 +733,7 @@ export declare const SliderHandle: import("react").ComponentType<Partial<{
|
|
|
714
733
|
'aria-valuenow'?: number | undefined;
|
|
715
734
|
'aria-valuetext'?: string | undefined;
|
|
716
735
|
dangerouslySetInnerHTML?: {
|
|
717
|
-
__html: string;
|
|
736
|
+
__html: string | TrustedHTML;
|
|
718
737
|
} | undefined;
|
|
719
738
|
onCopy?: import("react").ClipboardEventHandler<import("slider/src").SliderHandle> | undefined;
|
|
720
739
|
onCopyCapture?: import("react").ClipboardEventHandler<import("slider/src").SliderHandle> | undefined;
|
|
@@ -897,22 +916,13 @@ export declare const SliderHandle: import("react").ComponentType<Partial<{
|
|
|
897
916
|
normalize: () => void;
|
|
898
917
|
ariaHidden: string | null;
|
|
899
918
|
name: string;
|
|
900
|
-
readonly focusElement: HTMLElement;
|
|
901
|
-
shadowRoot: ShadowRoot;
|
|
902
|
-
readonly isConnected: boolean;
|
|
903
|
-
value: number;
|
|
904
|
-
formatOptions?: import("@internationalized/number").NumberFormatOptions | undefined;
|
|
905
|
-
max?: number | "next" | undefined;
|
|
906
|
-
min?: number | "previous" | undefined;
|
|
907
|
-
step?: number | undefined;
|
|
908
|
-
_forcedUnit: string;
|
|
909
|
-
connectedCallback: () => void;
|
|
910
|
-
disconnectedCallback: () => void;
|
|
911
919
|
readonly renderRoot: HTMLElement | ShadowRoot;
|
|
912
920
|
isUpdatePending: boolean;
|
|
913
921
|
hasUpdated: boolean;
|
|
914
922
|
addController: (controller: import("lit").ReactiveController) => void;
|
|
915
923
|
removeController: (controller: import("lit").ReactiveController) => void;
|
|
924
|
+
connectedCallback: () => void;
|
|
925
|
+
disconnectedCallback: () => void;
|
|
916
926
|
attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
|
|
917
927
|
requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
|
|
918
928
|
readonly updateComplete: Promise<boolean>;
|
|
@@ -951,6 +961,7 @@ export declare const SliderHandle: import("react").ComponentType<Partial<{
|
|
|
951
961
|
scrollLeft: number;
|
|
952
962
|
scrollTop: number;
|
|
953
963
|
readonly scrollWidth: number;
|
|
964
|
+
shadowRoot: ShadowRoot;
|
|
954
965
|
readonly tagName: string;
|
|
955
966
|
attachShadow: (init: ShadowRootInit) => ShadowRoot;
|
|
956
967
|
closest: {
|
|
@@ -1008,6 +1019,7 @@ export declare const SliderHandle: import("react").ComponentType<Partial<{
|
|
|
1008
1019
|
webkitMatchesSelector: (selectors: string) => boolean;
|
|
1009
1020
|
readonly baseURI: string;
|
|
1010
1021
|
readonly firstChild: ChildNode | null;
|
|
1022
|
+
readonly isConnected: boolean;
|
|
1011
1023
|
readonly lastChild: ChildNode | null;
|
|
1012
1024
|
readonly nextSibling: ChildNode | null;
|
|
1013
1025
|
readonly nodeName: string;
|
|
@@ -1205,6 +1217,13 @@ export declare const SliderHandle: import("react").ComponentType<Partial<{
|
|
|
1205
1217
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1206
1218
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
1207
1219
|
readonly dataset: DOMStringMap;
|
|
1220
|
+
readonly focusElement: HTMLElement;
|
|
1221
|
+
value: number;
|
|
1222
|
+
formatOptions?: import("@internationalized/number").NumberFormatOptions | undefined;
|
|
1223
|
+
max?: number | "next" | undefined;
|
|
1224
|
+
min?: number | "previous" | undefined;
|
|
1225
|
+
step?: number | undefined;
|
|
1226
|
+
_forcedUnit: string;
|
|
1208
1227
|
isLTR: boolean;
|
|
1209
1228
|
hasVisibleFocusInTree: () => boolean;
|
|
1210
1229
|
dragging: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc-react/slider",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.1-rc.15+9b76319e4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@lit-labs/react": "^1.1.1",
|
|
33
|
-
"@spectrum-web-components/slider": "^0.
|
|
33
|
+
"@spectrum-web-components/slider": "^0.35.1-rc.15+9b76319e4"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"next": "~13.4"
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"optional": true
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "9b76319e4f1cc7cb0dd03e9d9debf544e5bed4e9"
|
|
44
44
|
}
|