@swc-react/icon 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.
Files changed (2) hide show
  1. package/next.d.ts +43 -33
  2. package/package.json +3 -3
package/next.d.ts CHANGED
@@ -1,34 +1,42 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const Icon: import("react").ComponentType<Partial<{
3
4
  dir?: string | undefined;
4
- defaultChecked?: boolean | undefined;
5
- defaultValue?: string | number | readonly string[] | undefined;
6
- suppressContentEditableWarning?: boolean | undefined;
7
- suppressHydrationWarning?: boolean | undefined;
5
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
8
6
  accessKey?: string | undefined;
9
- className?: string | undefined;
10
- contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
11
- contextMenu?: string | undefined;
12
7
  draggable?: (boolean | "true" | "false") | undefined;
13
8
  hidden?: boolean | undefined;
14
- id?: string | undefined;
15
9
  lang?: string | undefined;
16
- nonce?: string | undefined;
17
- placeholder?: string | undefined;
10
+ title?: string | undefined;
11
+ translate?: "yes" | "no" | undefined;
12
+ className?: string | undefined;
13
+ id?: string | undefined;
14
+ prefix?: string | undefined;
18
15
  slot?: string | undefined;
19
- spellCheck?: (boolean | "true" | "false") | undefined;
16
+ children?: import("react").ReactNode;
20
17
  style?: import("react").CSSProperties | undefined;
18
+ contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
19
+ inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
20
+ nonce?: string | undefined;
21
21
  tabIndex?: number | undefined;
22
- title?: string | undefined;
23
- translate?: "yes" | "no" | undefined;
22
+ defaultChecked?: boolean | undefined;
23
+ defaultValue?: string | number | readonly string[] | undefined;
24
+ suppressContentEditableWarning?: boolean | undefined;
25
+ suppressHydrationWarning?: boolean | undefined;
26
+ autoFocus?: boolean | undefined;
27
+ contextMenu?: string | undefined;
28
+ placeholder?: string | undefined;
29
+ spellCheck?: (boolean | "true" | "false") | undefined;
24
30
  radioGroup?: string | undefined;
25
31
  role?: import("react").AriaRole | undefined;
26
32
  about?: string | undefined;
33
+ content?: string | undefined;
27
34
  datatype?: string | undefined;
28
35
  inlist?: any;
29
- prefix?: string | undefined;
30
36
  property?: string | undefined;
37
+ rel?: string | undefined;
31
38
  resource?: string | undefined;
39
+ rev?: string | undefined;
32
40
  typeof?: string | undefined;
33
41
  vocab?: string | undefined;
34
42
  autoCapitalize?: string | undefined;
@@ -43,28 +51,30 @@ export declare const Icon: import("react").ComponentType<Partial<{
43
51
  results?: number | undefined;
44
52
  security?: string | undefined;
45
53
  unselectable?: "on" | "off" | undefined;
46
- inputMode?: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
47
54
  is?: string | undefined;
48
55
  'aria-activedescendant'?: string | undefined;
49
56
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
50
57
  'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
58
+ 'aria-braillelabel'?: string | undefined;
59
+ 'aria-brailleroledescription'?: string | undefined;
51
60
  'aria-busy'?: (boolean | "true" | "false") | undefined;
52
61
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
53
62
  'aria-colcount'?: number | undefined;
54
63
  'aria-colindex'?: number | undefined;
64
+ 'aria-colindextext'?: string | undefined;
55
65
  'aria-colspan'?: number | undefined;
56
66
  'aria-controls'?: string | undefined;
57
- 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
67
+ 'aria-current'?: boolean | "true" | "time" | "false" | "page" | "step" | "location" | "date" | undefined;
58
68
  'aria-describedby'?: string | undefined;
69
+ 'aria-description'?: string | undefined;
59
70
  'aria-details'?: string | undefined;
60
71
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
61
- 'aria-dropeffect'?: "none" | "link" | "copy" | "execute" | "move" | "popup" | undefined;
72
+ 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
62
73
  'aria-errormessage'?: string | undefined;
63
74
  'aria-expanded'?: (boolean | "true" | "false") | undefined;
64
75
  'aria-flowto'?: string | undefined;
65
76
  'aria-grabbed'?: (boolean | "true" | "false") | undefined;
66
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
67
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
77
+ 'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "grid" | "listbox" | "tree" | undefined;
68
78
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
69
79
  'aria-keyshortcuts'?: string | undefined;
70
80
  'aria-label'?: string | undefined;
@@ -85,6 +95,7 @@ export declare const Icon: import("react").ComponentType<Partial<{
85
95
  'aria-roledescription'?: string | undefined;
86
96
  'aria-rowcount'?: number | undefined;
87
97
  'aria-rowindex'?: number | undefined;
98
+ 'aria-rowindextext'?: string | undefined;
88
99
  'aria-rowspan'?: number | undefined;
89
100
  'aria-selected'?: (boolean | "true" | "false") | undefined;
90
101
  'aria-setsize'?: number | undefined;
@@ -93,9 +104,8 @@ export declare const Icon: import("react").ComponentType<Partial<{
93
104
  'aria-valuemin'?: number | undefined;
94
105
  'aria-valuenow'?: number | undefined;
95
106
  'aria-valuetext'?: string | undefined;
96
- children?: import("react").ReactNode;
97
107
  dangerouslySetInnerHTML?: {
98
- __html: string;
108
+ __html: string | TrustedHTML;
99
109
  } | undefined;
100
110
  onCopy?: import("react").ClipboardEventHandler<import("icon/src").Icon> | undefined;
101
111
  onCopyCapture?: import("react").ClipboardEventHandler<import("icon/src").Icon> | undefined;
@@ -263,7 +273,8 @@ export declare const Icon: import("react").ComponentType<Partial<{
263
273
  readonly attributes: NamedNodeMap;
264
274
  readonly localName: string;
265
275
  size?: "s" | "m" | "l" | "xl" | "xxl" | undefined;
266
- label?: string | undefined;
276
+ label: string;
277
+ normalize: () => void;
267
278
  name?: string | undefined;
268
279
  blur: () => void;
269
280
  click: () => void;
@@ -273,6 +284,16 @@ export declare const Icon: import("react").ComponentType<Partial<{
273
284
  (x: number, y: number): void;
274
285
  };
275
286
  src?: string | undefined;
287
+ readonly renderRoot: HTMLElement | ShadowRoot;
288
+ isUpdatePending: boolean;
289
+ hasUpdated: boolean;
290
+ addController: (controller: import("lit").ReactiveController) => void;
291
+ removeController: (controller: import("lit").ReactiveController) => void;
292
+ connectedCallback: () => void;
293
+ disconnectedCallback: () => void;
294
+ attributeChangedCallback: (name: string, old: string, value: string) => void;
295
+ requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
296
+ readonly updateComplete: Promise<boolean>;
276
297
  readonly accessKeyLabel: string;
277
298
  autocapitalize: string;
278
299
  inert: boolean;
@@ -389,7 +410,6 @@ export declare const Icon: import("react").ComponentType<Partial<{
389
410
  isSameNode: (otherNode: Node | null) => boolean;
390
411
  lookupNamespaceURI: (prefix: string | null) => string | null;
391
412
  lookupPrefix: (namespace: string | null) => string | null;
392
- normalize: () => void;
393
413
  removeChild: <T_2 extends Node>(child: T_2) => T_2;
394
414
  replaceChild: <T_3 extends Node>(node: Node, child: T_3) => T_3;
395
415
  readonly ATTRIBUTE_NODE: number;
@@ -569,18 +589,8 @@ export declare const Icon: import("react").ComponentType<Partial<{
569
589
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
570
590
  autofocus: boolean;
571
591
  readonly dataset: DOMStringMap;
572
- connectedCallback: () => void;
573
- disconnectedCallback: () => void;
574
592
  firstUpdated: () => void;
575
- attributeChangedCallback: (name: string, old: string, value: string) => void;
576
593
  readonly renderOptions: import("lit-html").RenderOptions;
577
- readonly renderRoot: HTMLElement | ShadowRoot;
578
- isUpdatePending: boolean;
579
- hasUpdated: boolean;
580
- addController: (controller: import("lit").ReactiveController) => void;
581
- removeController: (controller: import("lit").ReactiveController) => void;
582
- requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
583
- readonly updateComplete: Promise<boolean>;
584
594
  isLTR: boolean;
585
595
  hasVisibleFocusInTree: () => boolean;
586
596
  } & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/icon",
3
- "version": "0.34.1-rc.0+1647bfed5",
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/icon": "^0.34.1-rc.0+1647bfed5"
33
+ "@spectrum-web-components/icon": "^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": "1647bfed54cb29f3513343cd0d2c2d9e73e1c508"
43
+ "gitHead": "9b76319e4f1cc7cb0dd03e9d9debf544e5bed4e9"
44
44
  }