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