@swc-react/picker 0.35.1-rc.26 → 0.36.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 +36 -31
  2. package/package.json +3 -3
package/next.d.ts CHANGED
@@ -8,26 +8,30 @@ export declare const Picker: import("react").ComponentType<Partial<{
8
8
  tabIndex?: number | undefined;
9
9
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
10
10
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
11
- accessKey?: string | undefined;
12
- draggable?: (boolean | "true" | "false") | undefined;
13
11
  hidden?: boolean | undefined;
12
+ rel?: string | undefined;
13
+ id?: string | undefined;
14
+ className?: string | undefined;
15
+ color?: string | undefined;
14
16
  lang?: string | undefined;
17
+ 'aria-modal'?: (boolean | "true" | "false") | undefined;
18
+ accessKey?: string | undefined;
19
+ role?: import("react").AriaRole | undefined;
20
+ 'aria-label'?: string | undefined;
21
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "grid" | "tree" | undefined;
22
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
23
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
24
+ draggable?: (boolean | "true" | "false") | undefined;
15
25
  translate?: "yes" | "no" | undefined;
16
- className?: string | undefined;
17
- id?: string | undefined;
18
26
  prefix?: string | undefined;
19
27
  children?: import("react").ReactNode;
20
28
  contentEditable?: "inherit" | (boolean | "true" | "false") | undefined;
21
29
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
22
30
  nonce?: string | undefined;
23
31
  'aria-describedby'?: string | undefined;
24
- rel?: string | undefined;
25
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "listbox" | "tree" | "grid" | undefined;
26
- 'aria-expanded'?: (boolean | "true" | "false") | undefined;
27
- role?: import("react").AriaRole | undefined;
32
+ 'aria-controls'?: string | undefined;
28
33
  'aria-selected'?: (boolean | "true" | "false") | undefined;
29
34
  'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
30
- 'aria-label'?: string | undefined;
31
35
  'aria-activedescendant'?: string | undefined;
32
36
  'aria-labelledby'?: string | undefined;
33
37
  placeholder?: string | undefined;
@@ -51,7 +55,6 @@ export declare const Picker: import("react").ComponentType<Partial<{
51
55
  autoCapitalize?: string | undefined;
52
56
  autoCorrect?: string | undefined;
53
57
  autoSave?: string | undefined;
54
- color?: string | undefined;
55
58
  itemProp?: string | undefined;
56
59
  itemScope?: boolean | undefined;
57
60
  itemType?: string | undefined;
@@ -70,7 +73,6 @@ export declare const Picker: import("react").ComponentType<Partial<{
70
73
  'aria-colindex'?: number | undefined;
71
74
  'aria-colindextext'?: string | undefined;
72
75
  'aria-colspan'?: number | undefined;
73
- 'aria-controls'?: string | undefined;
74
76
  'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
75
77
  'aria-description'?: string | undefined;
76
78
  'aria-details'?: string | undefined;
@@ -82,14 +84,12 @@ export declare const Picker: import("react").ComponentType<Partial<{
82
84
  'aria-keyshortcuts'?: string | undefined;
83
85
  'aria-level'?: number | undefined;
84
86
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
85
- 'aria-modal'?: (boolean | "true" | "false") | undefined;
86
87
  'aria-multiline'?: (boolean | "true" | "false") | undefined;
87
88
  'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
88
89
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
89
90
  'aria-owns'?: string | undefined;
90
91
  'aria-placeholder'?: string | undefined;
91
92
  'aria-posinset'?: number | undefined;
92
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
93
93
  'aria-readonly'?: (boolean | "true" | "false") | undefined;
94
94
  'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
95
95
  'aria-required'?: (boolean | "true" | "false") | undefined;
@@ -289,13 +289,24 @@ export declare const Picker: import("react").ComponentType<Partial<{
289
289
  disabled: boolean;
290
290
  autofocus: boolean;
291
291
  normalize: () => void;
292
+ readonly renderOptions: import("lit-html").RenderOptions;
293
+ readonly target: HTMLButtonElement | import("picker/src").Picker;
294
+ ariaHidden: string | null;
295
+ readonly childNodes: NodeListOf<ChildNode>;
296
+ shadowRoot: ShadowRoot;
297
+ open: boolean;
298
+ placement: import("overlay/src").Placement;
299
+ overlayOpenCallback: () => Promise<void>;
300
+ remove: () => void;
301
+ quiet: boolean;
302
+ value: string;
303
+ disconnectedCallback: () => void;
304
+ connectedCallback: () => void;
292
305
  readonly renderRoot: HTMLElement | ShadowRoot;
293
306
  isUpdatePending: boolean;
294
307
  hasUpdated: boolean;
295
308
  addController: (controller: import("lit").ReactiveController) => void;
296
309
  removeController: (controller: import("lit").ReactiveController) => void;
297
- connectedCallback: () => void;
298
- disconnectedCallback: () => void;
299
310
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
300
311
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
301
312
  readonly updateComplete: Promise<boolean>;
@@ -334,7 +345,6 @@ export declare const Picker: import("react").ComponentType<Partial<{
334
345
  scrollLeft: number;
335
346
  scrollTop: number;
336
347
  readonly scrollWidth: number;
337
- shadowRoot: ShadowRoot;
338
348
  readonly tagName: string;
339
349
  attachShadow: (init: ShadowRootInit) => ShadowRoot;
340
350
  closest: {
@@ -391,7 +401,6 @@ export declare const Picker: import("react").ComponentType<Partial<{
391
401
  toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
392
402
  webkitMatchesSelector: (selectors: string) => boolean;
393
403
  readonly baseURI: string;
394
- readonly childNodes: NodeListOf<ChildNode>;
395
404
  readonly firstChild: ChildNode | null;
396
405
  readonly isConnected: boolean;
397
406
  readonly lastChild: ChildNode | null;
@@ -447,7 +456,6 @@ export declare const Picker: import("react").ComponentType<Partial<{
447
456
  ariaDisabled: string | null;
448
457
  ariaExpanded: string | null;
449
458
  ariaHasPopup: string | null;
450
- ariaHidden: string | null;
451
459
  ariaKeyShortcuts: string | null;
452
460
  ariaLabel: string | null;
453
461
  ariaLevel: string | null;
@@ -475,7 +483,6 @@ export declare const Picker: import("react").ComponentType<Partial<{
475
483
  getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
476
484
  after: (...nodes: (string | Node)[]) => void;
477
485
  before: (...nodes: (string | Node)[]) => void;
478
- remove: () => void;
479
486
  replaceWith: (...nodes: (string | Node)[]) => void;
480
487
  innerHTML: string;
481
488
  readonly nextElementSibling: Element | null;
@@ -592,26 +599,24 @@ export declare const Picker: import("react").ComponentType<Partial<{
592
599
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
593
600
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
594
601
  readonly dataset: DOMStringMap;
595
- placement: import("@floating-ui/utils").Placement;
596
- open: boolean;
597
- readonly renderOptions: import("lit-html").RenderOptions;
598
- focused: boolean;
599
- value: string;
600
- readonly focusElement: HTMLElement;
601
602
  isLTR: boolean;
602
603
  hasVisibleFocusInTree: () => boolean;
604
+ focused: boolean;
605
+ readonly focusElement: HTMLElement;
603
606
  selects: "single" | undefined;
604
607
  appliedLabel?: string | undefined;
605
608
  icons?: "none" | "only" | undefined;
606
609
  readonly: boolean;
607
- quiet: boolean;
608
- selectedItem: import("menu/src").MenuItem | undefined;
609
- _selectedItem?: import("menu/src").MenuItem | undefined;
610
+ selectedItem?: import("menu/src").MenuItem | undefined;
611
+ menuItems: import("menu/src").MenuItem[];
612
+ optionsMenu: import("menu/src").Menu;
610
613
  forceFocusVisible: () => void;
611
- handleButtonBlur: () => void;
612
- handleHelperFocus: () => void;
614
+ onButtonBlur: () => void;
615
+ onHelperFocus: () => void;
616
+ onButtonFocus: () => void;
613
617
  handleChange: (event: Event) => void;
614
- _selectedItemContent?: import("menu/src").MenuItemChildren | undefined;
618
+ setValueFromItem: (item: import("menu/src").MenuItem, menuChangeEvent?: Event | undefined) => Promise<void>;
619
+ overlayCloseCallback: () => Promise<void>;
615
620
  applyFocusElementLabel: (value?: string | undefined) => void;
616
621
  } & {
617
622
  change: (e: Event) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/picker",
3
- "version": "0.35.1-rc.26+05bd08374",
3
+ "version": "0.36.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/picker": "^0.35.1-rc.26+05bd08374"
33
+ "@spectrum-web-components/picker": "^0.36.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": "05bd0837417e287acdf2685d1ca05ab4d138fc95"
43
+ "gitHead": "a532ff8a410abeefb54d9638a2316ae82570566e"
44
44
  }