@swc-react/switch 0.36.0 → 0.37.0

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.
Files changed (2) hide show
  1. package/next.d.ts +24 -24
  2. package/package.json +3 -3
package/next.d.ts CHANGED
@@ -7,31 +7,33 @@ export declare const Switch: import("react").ComponentType<Partial<{
7
7
  title?: string | undefined;
8
8
  tabIndex?: number | undefined;
9
9
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
10
+ accessKey?: string | undefined;
11
+ draggable?: (boolean | "true" | "false") | undefined;
12
+ hidden?: boolean | undefined;
13
+ lang?: string | undefined;
14
+ translate?: "yes" | "no" | undefined;
15
+ className?: string | undefined;
16
+ id?: string | undefined;
17
+ prefix?: string | undefined;
18
+ children?: import("react").ReactNode;
19
+ contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
20
+ inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
21
+ nonce?: string | undefined;
10
22
  role?: import("react").AriaRole | undefined;
11
23
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
12
24
  defaultChecked?: boolean | undefined;
13
25
  defaultValue?: string | number | readonly string[] | undefined;
14
26
  suppressContentEditableWarning?: boolean | undefined;
15
27
  suppressHydrationWarning?: boolean | undefined;
16
- accessKey?: string | undefined;
17
28
  autoFocus?: boolean | undefined;
18
- className?: string | undefined;
19
- contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
20
29
  contextMenu?: string | undefined;
21
- draggable?: (boolean | "true" | "false") | undefined;
22
- hidden?: boolean | undefined;
23
- id?: string | undefined;
24
- lang?: string | undefined;
25
- nonce?: string | undefined;
26
30
  placeholder?: string | undefined;
27
31
  spellCheck?: (boolean | "true" | "false") | undefined;
28
- translate?: "yes" | "no" | undefined;
29
32
  radioGroup?: string | undefined;
30
33
  about?: string | undefined;
31
34
  content?: string | undefined;
32
35
  datatype?: string | undefined;
33
36
  inlist?: any;
34
- prefix?: string | undefined;
35
37
  property?: string | undefined;
36
38
  rel?: string | undefined;
37
39
  resource?: string | undefined;
@@ -50,11 +52,10 @@ export declare const Switch: import("react").ComponentType<Partial<{
50
52
  results?: number | undefined;
51
53
  security?: string | undefined;
52
54
  unselectable?: "on" | "off" | undefined;
53
- inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
54
55
  is?: string | undefined;
55
56
  'aria-activedescendant'?: string | undefined;
56
57
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
57
- 'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
58
+ 'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
58
59
  'aria-braillelabel'?: string | undefined;
59
60
  'aria-brailleroledescription'?: string | undefined;
60
61
  'aria-busy'?: (boolean | "true" | "false") | undefined;
@@ -103,7 +104,6 @@ export declare const Switch: import("react").ComponentType<Partial<{
103
104
  'aria-valuemin'?: number | undefined;
104
105
  'aria-valuenow'?: number | undefined;
105
106
  'aria-valuetext'?: string | undefined;
106
- children?: import("react").ReactNode;
107
107
  dangerouslySetInnerHTML?: {
108
108
  __html: string | TrustedHTML;
109
109
  } | undefined;
@@ -286,7 +286,16 @@ export declare const Switch: import("react").ComponentType<Partial<{
286
286
  normalize: () => void;
287
287
  checked: boolean;
288
288
  readonly: boolean;
289
- emphasized: boolean;
289
+ readonly renderRoot: HTMLElement | ShadowRoot;
290
+ isUpdatePending: boolean;
291
+ hasUpdated: boolean;
292
+ addController: (controller: import("lit").ReactiveController) => void;
293
+ removeController: (controller: import("lit").ReactiveController) => void;
294
+ connectedCallback: () => void;
295
+ disconnectedCallback: () => void;
296
+ attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
297
+ requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
298
+ readonly updateComplete: Promise<boolean>;
290
299
  readonly accessKeyLabel: string;
291
300
  autocapitalize: string;
292
301
  inert: boolean;
@@ -580,19 +589,10 @@ export declare const Switch: import("react").ComponentType<Partial<{
580
589
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
581
590
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
582
591
  readonly dataset: DOMStringMap;
592
+ emphasized: boolean;
583
593
  readonly focusElement: HTMLElement;
584
594
  handleChange: () => void;
585
- connectedCallback: () => void;
586
595
  readonly renderOptions: import("lit-html").RenderOptions;
587
- disconnectedCallback: () => void;
588
- readonly renderRoot: HTMLElement | ShadowRoot;
589
- isUpdatePending: boolean;
590
- hasUpdated: boolean;
591
- addController: (controller: import("lit").ReactiveController) => void;
592
- removeController: (controller: import("lit").ReactiveController) => void;
593
- attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
594
- requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
595
- readonly updateComplete: Promise<boolean>;
596
596
  isLTR: boolean;
597
597
  hasVisibleFocusInTree: () => boolean;
598
598
  } & {}> & import("react").RefAttributes<import("switch/src").Switch>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/switch",
3
- "version": "0.36.0",
3
+ "version": "0.37.0",
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/switch": "^0.36.0"
33
+ "@spectrum-web-components/switch": "^0.37.0"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "next": "~13.4"
@@ -40,5 +40,5 @@
40
40
  "optional": true
41
41
  }
42
42
  },
43
- "gitHead": "a532ff8a410abeefb54d9638a2316ae82570566e"
43
+ "gitHead": "d771f62f0d8063070af43283bb0fd5e3400bad06"
44
44
  }