@swc-react/toast 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 +35 -25
  2. package/package.json +3 -3
package/next.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const Toast: import("react").ComponentType<Partial<{
3
4
  dir?: string | undefined;
5
+ rel?: string | undefined;
4
6
  id?: string | undefined;
5
7
  className?: string | undefined;
6
8
  slot?: string | undefined;
@@ -8,29 +10,35 @@ export declare const Toast: import("react").ComponentType<Partial<{
8
10
  title?: string | undefined;
9
11
  tabIndex?: number | undefined;
10
12
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
13
+ accessKey?: string | undefined;
14
+ draggable?: (boolean | "true" | "false") | undefined;
15
+ hidden?: boolean | undefined;
16
+ lang?: string | undefined;
17
+ translate?: "yes" | "no" | undefined;
18
+ prefix?: string | undefined;
19
+ children?: import("react").ReactNode;
20
+ contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
21
+ inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
22
+ nonce?: string | undefined;
11
23
  role?: import("react").AriaRole | undefined;
12
24
  'aria-label'?: string | undefined;
13
- hidden?: boolean | undefined;
25
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
14
26
  defaultChecked?: boolean | undefined;
15
27
  defaultValue?: string | number | readonly string[] | undefined;
16
28
  suppressContentEditableWarning?: boolean | undefined;
17
29
  suppressHydrationWarning?: boolean | undefined;
18
- accessKey?: string | undefined;
19
- contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
30
+ autoFocus?: boolean | undefined;
20
31
  contextMenu?: string | undefined;
21
- draggable?: (boolean | "true" | "false") | undefined;
22
- lang?: string | undefined;
23
- nonce?: string | undefined;
24
32
  placeholder?: string | undefined;
25
33
  spellCheck?: (boolean | "true" | "false") | undefined;
26
- translate?: "yes" | "no" | undefined;
27
34
  radioGroup?: string | undefined;
28
35
  about?: string | undefined;
36
+ content?: string | undefined;
29
37
  datatype?: string | undefined;
30
38
  inlist?: any;
31
- prefix?: string | undefined;
32
39
  property?: string | undefined;
33
40
  resource?: string | undefined;
41
+ rev?: string | undefined;
34
42
  typeof?: string | undefined;
35
43
  vocab?: string | undefined;
36
44
  autoCapitalize?: string | undefined;
@@ -45,19 +53,22 @@ export declare const Toast: import("react").ComponentType<Partial<{
45
53
  results?: number | undefined;
46
54
  security?: string | undefined;
47
55
  unselectable?: "on" | "off" | undefined;
48
- inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
49
56
  is?: string | undefined;
50
57
  'aria-activedescendant'?: string | undefined;
51
58
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
52
59
  'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
60
+ 'aria-braillelabel'?: string | undefined;
61
+ 'aria-brailleroledescription'?: string | undefined;
53
62
  'aria-busy'?: (boolean | "true" | "false") | undefined;
54
63
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
55
64
  'aria-colcount'?: number | undefined;
56
65
  'aria-colindex'?: number | undefined;
66
+ 'aria-colindextext'?: string | undefined;
57
67
  'aria-colspan'?: number | undefined;
58
68
  'aria-controls'?: string | undefined;
59
69
  'aria-current'?: boolean | "true" | "time" | "false" | "page" | "step" | "location" | "date" | undefined;
60
70
  'aria-describedby'?: string | undefined;
71
+ 'aria-description'?: string | undefined;
61
72
  'aria-details'?: string | undefined;
62
73
  'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
63
74
  'aria-errormessage'?: string | undefined;
@@ -65,7 +76,6 @@ export declare const Toast: import("react").ComponentType<Partial<{
65
76
  'aria-flowto'?: string | undefined;
66
77
  'aria-grabbed'?: (boolean | "true" | "false") | undefined;
67
78
  'aria-haspopup'?: boolean | "true" | "dialog" | "menu" | "false" | "grid" | "listbox" | "tree" | undefined;
68
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
69
79
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
70
80
  'aria-keyshortcuts'?: string | undefined;
71
81
  'aria-labelledby'?: string | undefined;
@@ -85,6 +95,7 @@ export declare const Toast: 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 Toast: 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("toast/src").Toast> | undefined;
101
111
  onCopyCapture?: import("react").ClipboardEventHandler<import("toast/src").Toast> | undefined;
@@ -274,9 +284,16 @@ export declare const Toast: import("react").ComponentType<Partial<{
274
284
  autofocus: boolean;
275
285
  normalize: () => void;
276
286
  readonly childNodes: NodeListOf<ChildNode>;
277
- variant: import("toast/src").ToastVariants;
278
- open: boolean;
279
- timeout: number | null;
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 | null, value: string | null) => void;
295
+ requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
296
+ readonly updateComplete: Promise<boolean>;
280
297
  readonly accessKeyLabel: string;
281
298
  autocapitalize: string;
282
299
  inert: boolean;
@@ -568,18 +585,11 @@ export declare const Toast: import("react").ComponentType<Partial<{
568
585
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
569
586
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
570
587
  readonly dataset: DOMStringMap;
588
+ variant: import("toast/src").ToastVariants;
589
+ open: boolean;
590
+ timeout: number | null;
571
591
  _timeout: number | null;
572
592
  readonly renderOptions: import("lit-html").RenderOptions;
573
- connectedCallback: () => void;
574
- disconnectedCallback: () => void;
575
- readonly renderRoot: HTMLElement | ShadowRoot;
576
- isUpdatePending: boolean;
577
- hasUpdated: boolean;
578
- addController: (controller: import("lit").ReactiveController) => void;
579
- removeController: (controller: import("lit").ReactiveController) => void;
580
- attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
581
- requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
582
- readonly updateComplete: Promise<boolean>;
583
593
  isLTR: boolean;
584
594
  hasVisibleFocusInTree: () => boolean;
585
595
  } & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/toast",
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/toast": "^0.34.1-rc.0+1647bfed5"
33
+ "@spectrum-web-components/toast": "^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
  }