@swc-react/picker 0.34.0 → 0.34.1-rc.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 +35 -35
  2. package/package.json +3 -3
package/next.d.ts CHANGED
@@ -7,18 +7,15 @@ export declare const Picker: import("react").ComponentType<Partial<{
7
7
  tabIndex?: number | undefined;
8
8
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
9
9
  hidden?: boolean | undefined;
10
- id?: string | undefined;
11
- className?: string | undefined;
10
+ accessKey?: string | undefined;
12
11
  color?: string | undefined;
13
12
  lang?: string | undefined;
14
- 'aria-modal'?: (boolean | "true" | "false") | undefined;
15
- accessKey?: string | undefined;
16
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
13
+ 'aria-describedby'?: string | undefined;
14
+ id?: string | undefined;
15
+ className?: string | undefined;
17
16
  role?: import("react").AriaRole | undefined;
18
- 'aria-label'?: string | undefined;
19
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "grid" | "tree" | undefined;
20
- 'aria-expanded'?: (boolean | "true" | "false") | undefined;
21
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
17
+ 'aria-selected'?: (boolean | "true" | "false") | undefined;
18
+ 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
22
19
  draggable?: (boolean | "true" | "false") | undefined;
23
20
  translate?: "yes" | "no" | undefined;
24
21
  prefix?: string | undefined;
@@ -26,9 +23,7 @@ export declare const Picker: import("react").ComponentType<Partial<{
26
23
  contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
27
24
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
28
25
  nonce?: string | undefined;
29
- 'aria-describedby'?: string | undefined;
30
- 'aria-selected'?: (boolean | "true" | "false") | undefined;
31
- 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
26
+ 'aria-label'?: string | undefined;
32
27
  'aria-activedescendant'?: string | undefined;
33
28
  'aria-labelledby'?: string | undefined;
34
29
  placeholder?: string | undefined;
@@ -69,18 +64,23 @@ export declare const Picker: import("react").ComponentType<Partial<{
69
64
  'aria-details'?: string | undefined;
70
65
  'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
71
66
  'aria-errormessage'?: string | undefined;
67
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
72
68
  'aria-flowto'?: string | undefined;
73
69
  'aria-grabbed'?: (boolean | "true" | "false") | undefined;
70
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "grid" | "tree" | undefined;
71
+ 'aria-hidden'?: (boolean | "true" | "false") | undefined;
74
72
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
75
73
  'aria-keyshortcuts'?: string | undefined;
76
74
  'aria-level'?: number | undefined;
77
75
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
76
+ 'aria-modal'?: (boolean | "true" | "false") | undefined;
78
77
  'aria-multiline'?: (boolean | "true" | "false") | undefined;
79
78
  'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
80
79
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
81
80
  'aria-owns'?: string | undefined;
82
81
  'aria-placeholder'?: string | undefined;
83
82
  'aria-posinset'?: number | undefined;
83
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
84
84
  'aria-readonly'?: (boolean | "true" | "false") | undefined;
85
85
  'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
86
86
  'aria-required'?: (boolean | "true" | "false") | undefined;
@@ -279,19 +279,29 @@ export declare const Picker: import("react").ComponentType<Partial<{
279
279
  disabled: boolean;
280
280
  autofocus: boolean;
281
281
  normalize: () => void;
282
+ addEventListener: {
283
+ <K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
284
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
285
+ };
286
+ dispatchEvent: (event: Event) => boolean;
287
+ removeEventListener: {
288
+ <K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
289
+ (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
290
+ };
282
291
  readonly target: HTMLButtonElement | import("picker/src").Picker;
283
- ariaHidden: string | null;
284
- shadowRoot: ShadowRoot;
285
292
  open: boolean;
293
+ readonly assignedSlot: HTMLSlotElement | null;
294
+ placement: import("@floating-ui/core").Placement;
295
+ shadowRoot: ShadowRoot;
296
+ readonly parentElement: HTMLElement | null;
286
297
  readonly renderOptions: import("lit-html").RenderOptions;
287
- placement: import("overlay/src").Placement;
288
- overlayOpenCallback: () => Promise<void>;
289
- remove: () => void;
298
+ ariaHidden: string | null;
290
299
  readonly childNodes: NodeListOf<ChildNode>;
291
- quiet: boolean;
300
+ focused: boolean;
292
301
  value: string;
293
- disconnectedCallback: () => void;
302
+ readonly focusElement: HTMLElement;
294
303
  connectedCallback: () => void;
304
+ disconnectedCallback: () => void;
295
305
  readonly renderRoot: HTMLElement | ShadowRoot;
296
306
  isUpdatePending: boolean;
297
307
  hasUpdated: boolean;
@@ -312,14 +322,6 @@ export declare const Picker: import("react").ComponentType<Partial<{
312
322
  outerText: string;
313
323
  spellcheck: boolean;
314
324
  attachInternals: () => ElementInternals;
315
- addEventListener: {
316
- <K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
317
- (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
318
- };
319
- removeEventListener: {
320
- <K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
321
- (type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
322
- };
323
325
  readonly classList: DOMTokenList;
324
326
  readonly clientHeight: number;
325
327
  readonly clientLeft: number;
@@ -398,7 +400,6 @@ export declare const Picker: import("react").ComponentType<Partial<{
398
400
  readonly nodeName: string;
399
401
  readonly nodeType: number;
400
402
  nodeValue: string | null;
401
- readonly parentElement: HTMLElement | null;
402
403
  readonly parentNode: ParentNode | null;
403
404
  readonly previousSibling: ChildNode | null;
404
405
  textContent: string | null;
@@ -434,7 +435,6 @@ export declare const Picker: import("react").ComponentType<Partial<{
434
435
  readonly NOTATION_NODE: number;
435
436
  readonly PROCESSING_INSTRUCTION_NODE: number;
436
437
  readonly TEXT_NODE: number;
437
- dispatchEvent: (event: Event) => boolean;
438
438
  ariaAtomic: string | null;
439
439
  ariaAutoComplete: string | null;
440
440
  ariaBusy: string | null;
@@ -473,6 +473,7 @@ export declare const Picker: import("react").ComponentType<Partial<{
473
473
  getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
474
474
  after: (...nodes: (string | Node)[]) => void;
475
475
  before: (...nodes: (string | Node)[]) => void;
476
+ remove: () => void;
476
477
  replaceWith: (...nodes: (string | Node)[]) => void;
477
478
  innerHTML: string;
478
479
  readonly nextElementSibling: Element | null;
@@ -493,7 +494,6 @@ export declare const Picker: import("react").ComponentType<Partial<{
493
494
  <E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
494
495
  };
495
496
  replaceChildren: (...nodes: (string | Node)[]) => void;
496
- readonly assignedSlot: HTMLSlotElement | null;
497
497
  oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
498
498
  oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
499
499
  onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;
@@ -591,22 +591,22 @@ export declare const Picker: import("react").ComponentType<Partial<{
591
591
  readonly dataset: DOMStringMap;
592
592
  isLTR: boolean;
593
593
  hasVisibleFocusInTree: () => boolean;
594
- focused: boolean;
595
- readonly focusElement: HTMLElement;
596
594
  selects: "single" | undefined;
597
595
  appliedLabel?: string | undefined;
598
596
  icons?: "none" | "only" | undefined;
599
597
  readonly: boolean;
600
- selectedItem?: import("menu/src").MenuItem | undefined;
601
- menuItems: import("menu/src").MenuItem[];
602
598
  optionsMenu: import("menu/src").Menu;
599
+ quiet: boolean;
600
+ selectedItem: import("menu/src").MenuItem | undefined;
601
+ readonly menuItems: import("menu/src").MenuItem[];
602
+ _selectedItem?: import("menu/src").MenuItem | undefined;
603
603
  forceFocusVisible: () => void;
604
604
  onButtonBlur: () => void;
605
605
  onHelperFocus: () => void;
606
606
  onButtonFocus: () => void;
607
607
  handleChange: (event: Event) => void;
608
608
  setValueFromItem: (item: import("menu/src").MenuItem, menuChangeEvent?: Event | undefined) => Promise<void>;
609
- overlayCloseCallback: () => Promise<void>;
609
+ _selectedItemContent?: import("menu/src").MenuItemChildren | undefined;
610
610
  applyFocusElementLabel: (value?: string | undefined) => void;
611
611
  } & {
612
612
  change: (e: Event) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/picker",
3
- "version": "0.34.0",
3
+ "version": "0.34.1-rc.0+1647bfed5",
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/picker": "^0.34.0"
33
+ "@spectrum-web-components/picker": "^0.34.1-rc.0+1647bfed5"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "next": "~13.4"
@@ -40,5 +40,5 @@
40
40
  "optional": true
41
41
  }
42
42
  },
43
- "gitHead": "f9b3294d67cdd52b2c36897cdc1c20ceaeb019cf"
43
+ "gitHead": "1647bfed54cb29f3513343cd0d2c2d9e73e1c508"
44
44
  }