Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aria-ui/listbox

Package Overview
Dependencies
Maintainers
0
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aria-ui/listbox - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

8

dist/index.d.ts
import * as _aria_ui_core from '@aria-ui/core';
import { ConnectableElement } from '@aria-ui/core';
import { ConnectableElement, SignalState } from '@aria-ui/core';
import { ItemFilter } from '@aria-ui/collection';

@@ -33,3 +33,3 @@

*/
declare function useListboxEmpty(element: ConnectableElement): {};
declare function useListboxEmpty(element: ConnectableElement): void;

@@ -78,3 +78,3 @@ /**

*/
declare function useListboxItem(element: ConnectableElement, props?: Partial<ListboxItemProps>): _aria_ui_core.SignalState<Readonly<ListboxItemProps>>;
declare function useListboxItem(element: ConnectableElement, state: SignalState<ListboxItemProps>): void;

@@ -169,4 +169,4 @@ /**

*/
declare function useListbox(element: ConnectableElement, props?: Partial<ListboxProps>): _aria_ui_core.SignalState<Readonly<ListboxProps>>;
declare function useListbox(element: ConnectableElement, state: SignalState<ListboxProps>): void;
export { ListboxElement, ListboxEmptyElement, type ListboxEmptyProps, ListboxItemElement, type ListboxItemProps, type ListboxProps, defaultListboxEmptyProps, defaultListboxItemProps, defaultListboxProps, useListbox, useListboxEmpty, useListboxItem };
// src/listbox-empty.element.gen.ts
import { ElementMixin } from "@aria-ui/core";
import { ElementBuilder } from "@aria-ui/core";

@@ -45,7 +45,6 @@ // src/listbox-empty.props.ts

usePresence(element, presence);
return {};
}
// src/listbox-empty.element.gen.ts
var ListboxEmptyElement = class extends ElementMixin(
var ListboxEmptyElement = class extends ElementBuilder(
useListboxEmpty,

@@ -57,3 +56,3 @@ defaultListboxEmptyProps

// src/listbox-item.element.gen.ts
import { ElementMixin as ElementMixin2 } from "@aria-ui/core";
import { ElementBuilder as ElementBuilder2 } from "@aria-ui/core";

@@ -68,14 +67,11 @@ // src/listbox-item.props.ts

import {
assignProps,
createComputed as createComputed2,
mapSignals,
useAriaAttribute as useAriaAttribute2,
useEventListener,
useAriaRole,
useAttribute,
useEffect,
useAriaRole
useEventListener
} from "@aria-ui/core";
import { usePresence as usePresence2 } from "@aria-ui/presence";
function useListboxItem(element, props) {
const state = mapSignals(assignProps(defaultListboxItemProps, props));
function useListboxItem(element, state) {
const selectedValue = selectedValueContext.consume(element);

@@ -136,7 +132,6 @@ const focusedValue = focusedValueContext.consume(element);

usePresence2(element, presence);
return state;
}
// src/listbox-item.element.gen.ts
var ListboxItemElement = class extends ElementMixin2(
var ListboxItemElement = class extends ElementBuilder2(
useListboxItem,

@@ -148,3 +143,3 @@ defaultListboxItemProps

// src/listbox.element.gen.ts
import { ElementMixin as ElementMixin3 } from "@aria-ui/core";
import { ElementBuilder as ElementBuilder3 } from "@aria-ui/core";

@@ -166,13 +161,10 @@ // src/listbox.props.ts

import {
assignProps as assignProps2,
createComputed as createComputed3,
createSignal,
mapSignals as mapSignals2,
useAriaRole as useAriaRole2,
useEffect as useEffect2,
useQuerySelectorAll,
useAriaRole as useAriaRole2,
useEventListener as useEventListener2
useEventListener as useEventListener2,
useQuerySelectorAll
} from "@aria-ui/core";
function useListbox(element, props) {
const state = mapSignals2(assignProps2(defaultListboxProps, props));
function useListbox(element, state) {
useAriaRole2(element, "listbox");

@@ -225,3 +217,2 @@ const focusedValue = createSignal("");

);
return state;
}

@@ -296,3 +287,3 @@ function useCollectionKeydownHandler(element, collection, focusedValue, selectedValue, onKeydownHandlerAdd, available) {

// src/listbox.element.gen.ts
var ListboxElement = class extends ElementMixin3(
var ListboxElement = class extends ElementBuilder3(
useListbox,

@@ -299,0 +290,0 @@ defaultListboxProps

{
"name": "@aria-ui/listbox",
"type": "module",
"version": "0.0.14",
"version": "0.0.15",
"private": false,

@@ -13,4 +13,4 @@ "sideEffects": false,

"@aria-ui/collection": "^0.0.3",
"@aria-ui/core": "^0.0.15",
"@aria-ui/presence": "^0.0.10",
"@aria-ui/core": "^0.0.16",
"@aria-ui/presence": "^0.0.11",
"immer": "^10.1.1"

@@ -20,3 +20,3 @@ },

"tsup": "^8.1.0",
"typescript": "^5.4.5"
"typescript": "^5.5.2"
},

@@ -23,0 +23,0 @@ "publishConfig": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc