@nuka-ui/core 1.1.2 → 1.1.4
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.
- package/README.md +15 -15
- package/dist/bundle.css +1 -1
- package/dist/components/Accordion/Accordion.cjs +1 -1
- package/dist/components/Accordion/Accordion.cjs.map +1 -1
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion/Accordion.js +2 -0
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/AccordionItem.cjs +1 -1
- package/dist/components/Accordion/AccordionItem.cjs.map +1 -1
- package/dist/components/Accordion/AccordionItem.d.ts.map +1 -1
- package/dist/components/Accordion/AccordionItem.js +1 -0
- package/dist/components/Accordion/AccordionItem.js.map +1 -1
- package/dist/components/Accordion/AccordionTrigger.cjs +1 -1
- package/dist/components/Accordion/AccordionTrigger.cjs.map +1 -1
- package/dist/components/Accordion/AccordionTrigger.js +1 -0
- package/dist/components/Accordion/AccordionTrigger.js.map +1 -1
- package/dist/components/Alert/Alert.cjs +1 -1
- package/dist/components/Alert/Alert.cjs.map +1 -1
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Alert/Alert.js +1 -0
- package/dist/components/Alert/Alert.js.map +1 -1
- package/dist/components/AppShell/AppShell.cjs +1 -1
- package/dist/components/AppShell/AppShell.cjs.map +1 -1
- package/dist/components/AppShell/AppShell.d.ts.map +1 -1
- package/dist/components/AppShell/AppShell.js +2 -0
- package/dist/components/AppShell/AppShell.js.map +1 -1
- package/dist/components/AppShell/AppShellBody.cjs +1 -1
- package/dist/components/AppShell/AppShellBody.cjs.map +1 -1
- package/dist/components/AppShell/AppShellBody.d.ts.map +1 -1
- package/dist/components/AppShell/AppShellBody.js +2 -0
- package/dist/components/AppShell/AppShellBody.js.map +1 -1
- package/dist/components/AppShell/AppShellHeader.cjs +1 -1
- package/dist/components/AppShell/AppShellHeader.cjs.map +1 -1
- package/dist/components/AppShell/AppShellHeader.d.ts.map +1 -1
- package/dist/components/AppShell/AppShellHeader.js +2 -0
- package/dist/components/AppShell/AppShellHeader.js.map +1 -1
- package/dist/components/AppShell/AppShellMain.cjs +1 -1
- package/dist/components/AppShell/AppShellMain.cjs.map +1 -1
- package/dist/components/AppShell/AppShellMain.d.ts.map +1 -1
- package/dist/components/AppShell/AppShellMain.js +2 -0
- package/dist/components/AppShell/AppShellMain.js.map +1 -1
- package/dist/components/AspectRatio/AspectRatio.cjs +1 -1
- package/dist/components/AspectRatio/AspectRatio.cjs.map +1 -1
- package/dist/components/AspectRatio/AspectRatio.d.ts.map +1 -1
- package/dist/components/AspectRatio/AspectRatio.js +1 -0
- package/dist/components/AspectRatio/AspectRatio.js.map +1 -1
- package/dist/components/Avatar/Avatar.variants.cjs +1 -1
- package/dist/components/Avatar/Avatar.variants.cjs.map +1 -1
- package/dist/components/Avatar/Avatar.variants.js +1 -1
- package/dist/components/Avatar/Avatar.variants.js.map +1 -1
- package/dist/components/Badge/Badge.cjs +1 -1
- package/dist/components/Badge/Badge.cjs.map +1 -1
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Badge/Badge.js +1 -0
- package/dist/components/Badge/Badge.js.map +1 -1
- package/dist/components/Badge/Badge.variants.cjs +1 -1
- package/dist/components/Badge/Badge.variants.cjs.map +1 -1
- package/dist/components/Badge/Badge.variants.js +1 -1
- package/dist/components/Badge/Badge.variants.js.map +1 -1
- package/dist/components/Banner/Banner.cjs +1 -1
- package/dist/components/Banner/Banner.cjs.map +1 -1
- package/dist/components/Banner/Banner.d.ts.map +1 -1
- package/dist/components/Banner/Banner.js +1 -0
- package/dist/components/Banner/Banner.js.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.cjs +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.cjs.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +2 -0
- package/dist/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbEllipsis.cjs +1 -1
- package/dist/components/Breadcrumb/BreadcrumbEllipsis.cjs.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbEllipsis.d.ts.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbEllipsis.js +2 -0
- package/dist/components/Breadcrumb/BreadcrumbEllipsis.js.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbItem.cjs +1 -1
- package/dist/components/Breadcrumb/BreadcrumbItem.cjs.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbItem.d.ts.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbItem.js +2 -0
- package/dist/components/Breadcrumb/BreadcrumbItem.js.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbLink.cjs +1 -1
- package/dist/components/Breadcrumb/BreadcrumbLink.cjs.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbLink.d.ts.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbLink.js +2 -0
- package/dist/components/Breadcrumb/BreadcrumbLink.js.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbList.cjs +1 -1
- package/dist/components/Breadcrumb/BreadcrumbList.cjs.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbList.d.ts.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbList.js +2 -0
- package/dist/components/Breadcrumb/BreadcrumbList.js.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbPage.cjs +1 -1
- package/dist/components/Breadcrumb/BreadcrumbPage.cjs.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbPage.d.ts.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbPage.js +3 -1
- package/dist/components/Breadcrumb/BreadcrumbPage.js.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbSeparator.cjs +1 -1
- package/dist/components/Breadcrumb/BreadcrumbSeparator.cjs.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbSeparator.d.ts.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbSeparator.js +3 -1
- package/dist/components/Breadcrumb/BreadcrumbSeparator.js.map +1 -1
- package/dist/components/Button/Button.cjs +1 -1
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.d.ts +2 -1
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +4 -3
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/Button.variants.cjs +1 -1
- package/dist/components/Button/Button.variants.cjs.map +1 -1
- package/dist/components/Button/Button.variants.js +1 -1
- package/dist/components/Button/Button.variants.js.map +1 -1
- package/dist/components/Callout/Callout.cjs +2 -0
- package/dist/components/Callout/Callout.cjs.map +1 -0
- package/dist/components/Callout/Callout.d.ts +13 -0
- package/dist/components/Callout/Callout.d.ts.map +1 -0
- package/dist/components/Callout/Callout.js +37 -0
- package/dist/components/Callout/Callout.js.map +1 -0
- package/dist/components/Callout/Callout.variants.cjs +2 -0
- package/dist/components/Callout/Callout.variants.cjs.map +1 -0
- package/dist/components/Callout/Callout.variants.d.ts +8 -0
- package/dist/components/Callout/Callout.variants.d.ts.map +1 -0
- package/dist/components/Callout/Callout.variants.js +42 -0
- package/dist/components/Callout/Callout.variants.js.map +1 -0
- package/dist/components/Callout/index.d.ts +4 -0
- package/dist/components/Callout/index.d.ts.map +1 -0
- package/dist/components/Card/Card.cjs +1 -1
- package/dist/components/Card/Card.cjs.map +1 -1
- package/dist/components/Card/Card.d.ts +9 -3
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/Card.js +28 -11
- package/dist/components/Card/Card.js.map +1 -1
- package/dist/components/Card/index.d.ts +1 -1
- package/dist/components/Card/index.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.cjs +1 -1
- package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.js +4 -0
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.variants.cjs.map +1 -1
- package/dist/components/Checkbox/Checkbox.variants.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.variants.js.map +1 -1
- package/dist/components/Chip/Chip.cjs +1 -1
- package/dist/components/Chip/Chip.cjs.map +1 -1
- package/dist/components/Chip/Chip.d.ts.map +1 -1
- package/dist/components/Chip/Chip.js +1 -0
- package/dist/components/Chip/Chip.js.map +1 -1
- package/dist/components/Chip/Chip.variants.cjs +1 -1
- package/dist/components/Chip/Chip.variants.cjs.map +1 -1
- package/dist/components/Chip/Chip.variants.js +1 -1
- package/dist/components/Chip/Chip.variants.js.map +1 -1
- package/dist/components/Code/Code.cjs +1 -1
- package/dist/components/Code/Code.cjs.map +1 -1
- package/dist/components/Code/Code.d.ts.map +1 -1
- package/dist/components/Code/Code.js +1 -0
- package/dist/components/Code/Code.js.map +1 -1
- package/dist/components/Collapsible/Collapsible.cjs +1 -1
- package/dist/components/Collapsible/Collapsible.cjs.map +1 -1
- package/dist/components/Collapsible/Collapsible.d.ts.map +1 -1
- package/dist/components/Collapsible/Collapsible.js +1 -0
- package/dist/components/Collapsible/Collapsible.js.map +1 -1
- package/dist/components/Collapsible/CollapsibleContent.cjs +1 -1
- package/dist/components/Collapsible/CollapsibleContent.cjs.map +1 -1
- package/dist/components/Collapsible/CollapsibleContent.d.ts.map +1 -1
- package/dist/components/Collapsible/CollapsibleContent.js +2 -0
- package/dist/components/Collapsible/CollapsibleContent.js.map +1 -1
- package/dist/components/Collapsible/CollapsibleTrigger.cjs +1 -1
- package/dist/components/Collapsible/CollapsibleTrigger.cjs.map +1 -1
- package/dist/components/Collapsible/CollapsibleTrigger.d.ts.map +1 -1
- package/dist/components/Collapsible/CollapsibleTrigger.js +1 -0
- package/dist/components/Collapsible/CollapsibleTrigger.js.map +1 -1
- package/dist/components/Combobox/ComboboxContent.cjs +1 -1
- package/dist/components/Combobox/ComboboxContent.cjs.map +1 -1
- package/dist/components/Combobox/ComboboxContent.d.ts.map +1 -1
- package/dist/components/Combobox/ComboboxContent.js +2 -0
- package/dist/components/Combobox/ComboboxContent.js.map +1 -1
- package/dist/components/Combobox/ComboboxEmpty.cjs +1 -1
- package/dist/components/Combobox/ComboboxEmpty.cjs.map +1 -1
- package/dist/components/Combobox/ComboboxEmpty.d.ts.map +1 -1
- package/dist/components/Combobox/ComboboxEmpty.js +1 -0
- package/dist/components/Combobox/ComboboxEmpty.js.map +1 -1
- package/dist/components/Combobox/ComboboxGroup.cjs +1 -1
- package/dist/components/Combobox/ComboboxGroup.cjs.map +1 -1
- package/dist/components/Combobox/ComboboxGroup.d.ts.map +1 -1
- package/dist/components/Combobox/ComboboxGroup.js +1 -0
- package/dist/components/Combobox/ComboboxGroup.js.map +1 -1
- package/dist/components/Combobox/ComboboxInput.cjs +1 -1
- package/dist/components/Combobox/ComboboxInput.cjs.map +1 -1
- package/dist/components/Combobox/ComboboxInput.d.ts.map +1 -1
- package/dist/components/Combobox/ComboboxInput.js +2 -0
- package/dist/components/Combobox/ComboboxInput.js.map +1 -1
- package/dist/components/Combobox/ComboboxListbox.cjs +1 -1
- package/dist/components/Combobox/ComboboxListbox.cjs.map +1 -1
- package/dist/components/Combobox/ComboboxListbox.d.ts.map +1 -1
- package/dist/components/Combobox/ComboboxListbox.js +1 -0
- package/dist/components/Combobox/ComboboxListbox.js.map +1 -1
- package/dist/components/Combobox/ComboboxOption.cjs +1 -1
- package/dist/components/Combobox/ComboboxOption.cjs.map +1 -1
- package/dist/components/Combobox/ComboboxOption.d.ts.map +1 -1
- package/dist/components/Combobox/ComboboxOption.js +1 -0
- package/dist/components/Combobox/ComboboxOption.js.map +1 -1
- package/dist/components/Combobox/ComboboxTrigger.cjs +1 -1
- package/dist/components/Combobox/ComboboxTrigger.cjs.map +1 -1
- package/dist/components/Combobox/ComboboxTrigger.d.ts.map +1 -1
- package/dist/components/Combobox/ComboboxTrigger.js +1 -0
- package/dist/components/Combobox/ComboboxTrigger.js.map +1 -1
- package/dist/components/CommandMenu/CommandMenu.cjs +1 -1
- package/dist/components/CommandMenu/CommandMenu.cjs.map +1 -1
- package/dist/components/CommandMenu/CommandMenu.d.ts.map +1 -1
- package/dist/components/CommandMenu/CommandMenu.js +2 -0
- package/dist/components/CommandMenu/CommandMenu.js.map +1 -1
- package/dist/components/CommandMenu/CommandMenuEmpty.cjs +1 -1
- package/dist/components/CommandMenu/CommandMenuEmpty.cjs.map +1 -1
- package/dist/components/CommandMenu/CommandMenuEmpty.d.ts.map +1 -1
- package/dist/components/CommandMenu/CommandMenuEmpty.js +1 -0
- package/dist/components/CommandMenu/CommandMenuEmpty.js.map +1 -1
- package/dist/components/CommandMenu/CommandMenuGroup.cjs +1 -1
- package/dist/components/CommandMenu/CommandMenuGroup.cjs.map +1 -1
- package/dist/components/CommandMenu/CommandMenuGroup.d.ts.map +1 -1
- package/dist/components/CommandMenu/CommandMenuGroup.js +3 -1
- package/dist/components/CommandMenu/CommandMenuGroup.js.map +1 -1
- package/dist/components/CommandMenu/CommandMenuInput.cjs +1 -1
- package/dist/components/CommandMenu/CommandMenuInput.cjs.map +1 -1
- package/dist/components/CommandMenu/CommandMenuInput.d.ts.map +1 -1
- package/dist/components/CommandMenu/CommandMenuInput.js +2 -0
- package/dist/components/CommandMenu/CommandMenuInput.js.map +1 -1
- package/dist/components/CommandMenu/CommandMenuItem.cjs +1 -1
- package/dist/components/CommandMenu/CommandMenuItem.cjs.map +1 -1
- package/dist/components/CommandMenu/CommandMenuItem.d.ts.map +1 -1
- package/dist/components/CommandMenu/CommandMenuItem.js +1 -0
- package/dist/components/CommandMenu/CommandMenuItem.js.map +1 -1
- package/dist/components/CommandMenu/CommandMenuList.cjs +1 -1
- package/dist/components/CommandMenu/CommandMenuList.cjs.map +1 -1
- package/dist/components/CommandMenu/CommandMenuList.d.ts.map +1 -1
- package/dist/components/CommandMenu/CommandMenuList.js +1 -0
- package/dist/components/CommandMenu/CommandMenuList.js.map +1 -1
- package/dist/components/CommandMenu/CommandMenuShortcut.cjs +1 -1
- package/dist/components/CommandMenu/CommandMenuShortcut.cjs.map +1 -1
- package/dist/components/CommandMenu/CommandMenuShortcut.d.ts.map +1 -1
- package/dist/components/CommandMenu/CommandMenuShortcut.js +2 -0
- package/dist/components/CommandMenu/CommandMenuShortcut.js.map +1 -1
- package/dist/components/Container/Container.cjs +1 -1
- package/dist/components/Container/Container.cjs.map +1 -1
- package/dist/components/Container/Container.d.ts +11 -3
- package/dist/components/Container/Container.d.ts.map +1 -1
- package/dist/components/Container/Container.js +5 -4
- package/dist/components/Container/Container.js.map +1 -1
- package/dist/components/ContextMenu/ContextMenuContent.cjs +1 -1
- package/dist/components/ContextMenu/ContextMenuContent.cjs.map +1 -1
- package/dist/components/ContextMenu/ContextMenuContent.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenuContent.js +1 -0
- package/dist/components/ContextMenu/ContextMenuContent.js.map +1 -1
- package/dist/components/ContextMenu/ContextMenuTrigger.cjs +1 -1
- package/dist/components/ContextMenu/ContextMenuTrigger.cjs.map +1 -1
- package/dist/components/ContextMenu/ContextMenuTrigger.d.ts.map +1 -1
- package/dist/components/ContextMenu/ContextMenuTrigger.js +1 -0
- package/dist/components/ContextMenu/ContextMenuTrigger.js.map +1 -1
- package/dist/components/DatePicker/DatePickerCalendar.cjs +1 -1
- package/dist/components/DatePicker/DatePickerCalendar.cjs.map +1 -1
- package/dist/components/DatePicker/DatePickerCalendar.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePickerCalendar.js +12 -0
- package/dist/components/DatePicker/DatePickerCalendar.js.map +1 -1
- package/dist/components/DatePicker/DatePickerInput.cjs +1 -1
- package/dist/components/DatePicker/DatePickerInput.cjs.map +1 -1
- package/dist/components/DatePicker/DatePickerInput.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePickerInput.js +4 -1
- package/dist/components/DatePicker/DatePickerInput.js.map +1 -1
- package/dist/components/Dialog/Dialog.cjs +1 -1
- package/dist/components/Dialog/Dialog.cjs.map +1 -1
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.js +2 -0
- package/dist/components/Dialog/Dialog.js.map +1 -1
- package/dist/components/Divider/Divider.cjs +1 -1
- package/dist/components/Divider/Divider.cjs.map +1 -1
- package/dist/components/Divider/Divider.d.ts.map +1 -1
- package/dist/components/Divider/Divider.js +1 -0
- package/dist/components/Divider/Divider.js.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenuContent.cjs +1 -1
- package/dist/components/DropdownMenu/DropdownMenuContent.cjs.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenuContent.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenuContent.js +1 -0
- package/dist/components/DropdownMenu/DropdownMenuContent.js.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenuTrigger.cjs +1 -1
- package/dist/components/DropdownMenu/DropdownMenuTrigger.cjs.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenuTrigger.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenuTrigger.js +1 -0
- package/dist/components/DropdownMenu/DropdownMenuTrigger.js.map +1 -1
- package/dist/components/EmptyState/EmptyState.cjs +1 -1
- package/dist/components/EmptyState/EmptyState.cjs.map +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +4 -1
- package/dist/components/EmptyState/EmptyState.d.ts.map +1 -1
- package/dist/components/EmptyState/EmptyState.js +17 -8
- package/dist/components/EmptyState/EmptyState.js.map +1 -1
- package/dist/components/Eyebrow/Eyebrow.cjs +1 -1
- package/dist/components/Eyebrow/Eyebrow.cjs.map +1 -1
- package/dist/components/Eyebrow/Eyebrow.d.ts +1 -1
- package/dist/components/Eyebrow/Eyebrow.d.ts.map +1 -1
- package/dist/components/Eyebrow/Eyebrow.js +7 -3
- package/dist/components/Eyebrow/Eyebrow.js.map +1 -1
- package/dist/components/Eyebrow/Eyebrow.variants.cjs +1 -1
- package/dist/components/Eyebrow/Eyebrow.variants.cjs.map +1 -1
- package/dist/components/Eyebrow/Eyebrow.variants.d.ts +2 -1
- package/dist/components/Eyebrow/Eyebrow.variants.d.ts.map +1 -1
- package/dist/components/Eyebrow/Eyebrow.variants.js +28 -7
- package/dist/components/Eyebrow/Eyebrow.variants.js.map +1 -1
- package/dist/components/FileInput/FileInput.cjs +1 -1
- package/dist/components/FileInput/FileInput.cjs.map +1 -1
- package/dist/components/FileInput/FileInput.d.ts.map +1 -1
- package/dist/components/FileInput/FileInput.js +10 -2
- package/dist/components/FileInput/FileInput.js.map +1 -1
- package/dist/components/FormField/FormField.cjs +1 -1
- package/dist/components/FormField/FormField.cjs.map +1 -1
- package/dist/components/FormField/FormField.d.ts.map +1 -1
- package/dist/components/FormField/FormField.js +3 -0
- package/dist/components/FormField/FormField.js.map +1 -1
- package/dist/components/Grid/Grid.cjs +1 -1
- package/dist/components/Grid/Grid.cjs.map +1 -1
- package/dist/components/Grid/Grid.d.ts +11 -3
- package/dist/components/Grid/Grid.d.ts.map +1 -1
- package/dist/components/Grid/Grid.js +5 -4
- package/dist/components/Grid/Grid.js.map +1 -1
- package/dist/components/Heading/Heading.cjs +1 -1
- package/dist/components/Heading/Heading.cjs.map +1 -1
- package/dist/components/Heading/Heading.d.ts.map +1 -1
- package/dist/components/Heading/Heading.js +1 -0
- package/dist/components/Heading/Heading.js.map +1 -1
- package/dist/components/Heading/Heading.variants.cjs +1 -1
- package/dist/components/Heading/Heading.variants.cjs.map +1 -1
- package/dist/components/Heading/Heading.variants.d.ts +1 -1
- package/dist/components/Heading/Heading.variants.d.ts.map +1 -1
- package/dist/components/Heading/Heading.variants.js +7 -2
- package/dist/components/Heading/Heading.variants.js.map +1 -1
- package/dist/components/Icon/Icon.cjs +1 -1
- package/dist/components/Icon/Icon.cjs.map +1 -1
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/Icon/Icon.js +1 -0
- package/dist/components/Icon/Icon.js.map +1 -1
- package/dist/components/Icon/Icon.variants.cjs.map +1 -1
- package/dist/components/Icon/Icon.variants.d.ts.map +1 -1
- package/dist/components/Icon/Icon.variants.js.map +1 -1
- package/dist/components/Kbd/Kbd.cjs +1 -1
- package/dist/components/Kbd/Kbd.cjs.map +1 -1
- package/dist/components/Kbd/Kbd.d.ts.map +1 -1
- package/dist/components/Kbd/Kbd.js +1 -0
- package/dist/components/Kbd/Kbd.js.map +1 -1
- package/dist/components/Kbd/Kbd.variants.cjs.map +1 -1
- package/dist/components/Kbd/Kbd.variants.d.ts.map +1 -1
- package/dist/components/Kbd/Kbd.variants.js.map +1 -1
- package/dist/components/Label/Label.cjs +1 -1
- package/dist/components/Label/Label.cjs.map +1 -1
- package/dist/components/Label/Label.d.ts +4 -1
- package/dist/components/Label/Label.d.ts.map +1 -1
- package/dist/components/Label/Label.js +21 -10
- package/dist/components/Label/Label.js.map +1 -1
- package/dist/components/Menu/MenuCheckboxItemBase.cjs +1 -1
- package/dist/components/Menu/MenuCheckboxItemBase.cjs.map +1 -1
- package/dist/components/Menu/MenuCheckboxItemBase.d.ts.map +1 -1
- package/dist/components/Menu/MenuCheckboxItemBase.js +3 -0
- package/dist/components/Menu/MenuCheckboxItemBase.js.map +1 -1
- package/dist/components/Menu/MenuContentBase.cjs +1 -1
- package/dist/components/Menu/MenuContentBase.cjs.map +1 -1
- package/dist/components/Menu/MenuContentBase.d.ts.map +1 -1
- package/dist/components/Menu/MenuContentBase.js +1 -0
- package/dist/components/Menu/MenuContentBase.js.map +1 -1
- package/dist/components/Menu/MenuItemBase.cjs +1 -1
- package/dist/components/Menu/MenuItemBase.cjs.map +1 -1
- package/dist/components/Menu/MenuItemBase.d.ts.map +1 -1
- package/dist/components/Menu/MenuItemBase.js +2 -0
- package/dist/components/Menu/MenuItemBase.js.map +1 -1
- package/dist/components/Menu/MenuLabelBase.cjs +1 -1
- package/dist/components/Menu/MenuLabelBase.cjs.map +1 -1
- package/dist/components/Menu/MenuLabelBase.d.ts.map +1 -1
- package/dist/components/Menu/MenuLabelBase.js +2 -0
- package/dist/components/Menu/MenuLabelBase.js.map +1 -1
- package/dist/components/Menu/MenuRadioGroupBase.cjs +1 -1
- package/dist/components/Menu/MenuRadioGroupBase.cjs.map +1 -1
- package/dist/components/Menu/MenuRadioGroupBase.d.ts.map +1 -1
- package/dist/components/Menu/MenuRadioGroupBase.js +2 -0
- package/dist/components/Menu/MenuRadioGroupBase.js.map +1 -1
- package/dist/components/Menu/MenuRadioItemBase.cjs +1 -1
- package/dist/components/Menu/MenuRadioItemBase.cjs.map +1 -1
- package/dist/components/Menu/MenuRadioItemBase.d.ts.map +1 -1
- package/dist/components/Menu/MenuRadioItemBase.js +3 -0
- package/dist/components/Menu/MenuRadioItemBase.js.map +1 -1
- package/dist/components/Menu/MenuSeparatorBase.cjs +1 -1
- package/dist/components/Menu/MenuSeparatorBase.cjs.map +1 -1
- package/dist/components/Menu/MenuSeparatorBase.d.ts.map +1 -1
- package/dist/components/Menu/MenuSeparatorBase.js +2 -0
- package/dist/components/Menu/MenuSeparatorBase.js.map +1 -1
- package/dist/components/Menu/menuItemVariants.cjs +1 -1
- package/dist/components/Menu/menuItemVariants.cjs.map +1 -1
- package/dist/components/Menu/menuItemVariants.js +1 -1
- package/dist/components/Menu/menuItemVariants.js.map +1 -1
- package/dist/components/Menubar/Menubar.cjs +1 -1
- package/dist/components/Menubar/Menubar.cjs.map +1 -1
- package/dist/components/Menubar/Menubar.d.ts.map +1 -1
- package/dist/components/Menubar/Menubar.js +1 -0
- package/dist/components/Menubar/Menubar.js.map +1 -1
- package/dist/components/Menubar/MenubarContent.cjs +1 -1
- package/dist/components/Menubar/MenubarContent.cjs.map +1 -1
- package/dist/components/Menubar/MenubarContent.d.ts.map +1 -1
- package/dist/components/Menubar/MenubarContent.js +1 -0
- package/dist/components/Menubar/MenubarContent.js.map +1 -1
- package/dist/components/Menubar/MenubarTrigger.cjs +1 -1
- package/dist/components/Menubar/MenubarTrigger.cjs.map +1 -1
- package/dist/components/Menubar/MenubarTrigger.d.ts.map +1 -1
- package/dist/components/Menubar/MenubarTrigger.js +2 -1
- package/dist/components/Menubar/MenubarTrigger.js.map +1 -1
- package/dist/components/Nav/Nav.cjs +1 -1
- package/dist/components/Nav/Nav.cjs.map +1 -1
- package/dist/components/Nav/Nav.d.ts.map +1 -1
- package/dist/components/Nav/Nav.js +2 -0
- package/dist/components/Nav/Nav.js.map +1 -1
- package/dist/components/Nav/NavItem.cjs +1 -1
- package/dist/components/Nav/NavItem.cjs.map +1 -1
- package/dist/components/Nav/NavItem.d.ts.map +1 -1
- package/dist/components/Nav/NavItem.js +2 -0
- package/dist/components/Nav/NavItem.js.map +1 -1
- package/dist/components/Nav/NavLink.cjs +1 -1
- package/dist/components/Nav/NavLink.cjs.map +1 -1
- package/dist/components/Nav/NavLink.d.ts.map +1 -1
- package/dist/components/Nav/NavLink.js +3 -1
- package/dist/components/Nav/NavLink.js.map +1 -1
- package/dist/components/Nav/NavList.cjs +1 -1
- package/dist/components/Nav/NavList.cjs.map +1 -1
- package/dist/components/Nav/NavList.d.ts.map +1 -1
- package/dist/components/Nav/NavList.js +2 -0
- package/dist/components/Nav/NavList.js.map +1 -1
- package/dist/components/Nav/NavSubmenu.cjs +1 -1
- package/dist/components/Nav/NavSubmenu.cjs.map +1 -1
- package/dist/components/Nav/NavSubmenu.d.ts.map +1 -1
- package/dist/components/Nav/NavSubmenu.js +2 -0
- package/dist/components/Nav/NavSubmenu.js.map +1 -1
- package/dist/components/Nav/NavTrigger.cjs +1 -1
- package/dist/components/Nav/NavTrigger.cjs.map +1 -1
- package/dist/components/Nav/NavTrigger.d.ts.map +1 -1
- package/dist/components/Nav/NavTrigger.js +4 -1
- package/dist/components/Nav/NavTrigger.js.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenu.cjs +1 -1
- package/dist/components/NavigationMenu/NavigationMenu.cjs.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenu.d.ts.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenu.js +1 -0
- package/dist/components/NavigationMenu/NavigationMenu.js.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenuContent.cjs +1 -1
- package/dist/components/NavigationMenu/NavigationMenuContent.cjs.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenuContent.d.ts.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenuContent.js +1 -0
- package/dist/components/NavigationMenu/NavigationMenuContent.js.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenuItem.cjs +1 -1
- package/dist/components/NavigationMenu/NavigationMenuItem.cjs.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenuItem.d.ts.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenuItem.js +1 -0
- package/dist/components/NavigationMenu/NavigationMenuItem.js.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenuLink.cjs +1 -1
- package/dist/components/NavigationMenu/NavigationMenuLink.cjs.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenuLink.d.ts.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenuLink.js +2 -1
- package/dist/components/NavigationMenu/NavigationMenuLink.js.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenuList.cjs +1 -1
- package/dist/components/NavigationMenu/NavigationMenuList.cjs.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenuList.d.ts.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenuList.js +2 -0
- package/dist/components/NavigationMenu/NavigationMenuList.js.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenuTrigger.cjs +1 -1
- package/dist/components/NavigationMenu/NavigationMenuTrigger.cjs.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenuTrigger.d.ts.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenuTrigger.js +2 -1
- package/dist/components/NavigationMenu/NavigationMenuTrigger.js.map +1 -1
- package/dist/components/NumberInput/NumberInput.cjs +1 -1
- package/dist/components/NumberInput/NumberInput.cjs.map +1 -1
- package/dist/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/components/NumberInput/NumberInput.js +3 -0
- package/dist/components/NumberInput/NumberInput.js.map +1 -1
- package/dist/components/Pagination/Pagination.cjs +1 -1
- package/dist/components/Pagination/Pagination.cjs.map +1 -1
- package/dist/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.js +2 -0
- package/dist/components/Pagination/Pagination.js.map +1 -1
- package/dist/components/Pagination/PaginationContent.cjs +1 -1
- package/dist/components/Pagination/PaginationContent.cjs.map +1 -1
- package/dist/components/Pagination/PaginationContent.d.ts.map +1 -1
- package/dist/components/Pagination/PaginationContent.js +2 -0
- package/dist/components/Pagination/PaginationContent.js.map +1 -1
- package/dist/components/Pagination/PaginationEllipsis.cjs +1 -1
- package/dist/components/Pagination/PaginationEllipsis.cjs.map +1 -1
- package/dist/components/Pagination/PaginationEllipsis.d.ts.map +1 -1
- package/dist/components/Pagination/PaginationEllipsis.js +2 -0
- package/dist/components/Pagination/PaginationEllipsis.js.map +1 -1
- package/dist/components/Pagination/PaginationItem.cjs +1 -1
- package/dist/components/Pagination/PaginationItem.cjs.map +1 -1
- package/dist/components/Pagination/PaginationItem.d.ts.map +1 -1
- package/dist/components/Pagination/PaginationItem.js +2 -0
- package/dist/components/Pagination/PaginationItem.js.map +1 -1
- package/dist/components/Pagination/PaginationLink.cjs +1 -1
- package/dist/components/Pagination/PaginationLink.cjs.map +1 -1
- package/dist/components/Pagination/PaginationLink.d.ts.map +1 -1
- package/dist/components/Pagination/PaginationLink.js +2 -0
- package/dist/components/Pagination/PaginationLink.js.map +1 -1
- package/dist/components/Pagination/PaginationNext.cjs +1 -1
- package/dist/components/Pagination/PaginationNext.cjs.map +1 -1
- package/dist/components/Pagination/PaginationNext.d.ts +8 -1
- package/dist/components/Pagination/PaginationNext.d.ts.map +1 -1
- package/dist/components/Pagination/PaginationNext.js +21 -18
- package/dist/components/Pagination/PaginationNext.js.map +1 -1
- package/dist/components/Pagination/PaginationPrevious.cjs +1 -1
- package/dist/components/Pagination/PaginationPrevious.cjs.map +1 -1
- package/dist/components/Pagination/PaginationPrevious.d.ts +8 -1
- package/dist/components/Pagination/PaginationPrevious.d.ts.map +1 -1
- package/dist/components/Pagination/PaginationPrevious.js +21 -18
- package/dist/components/Pagination/PaginationPrevious.js.map +1 -1
- package/dist/components/Popover/PopoverContent.cjs +1 -1
- package/dist/components/Popover/PopoverContent.cjs.map +1 -1
- package/dist/components/Popover/PopoverContent.d.ts.map +1 -1
- package/dist/components/Popover/PopoverContent.js +1 -0
- package/dist/components/Popover/PopoverContent.js.map +1 -1
- package/dist/components/Popover/PopoverTrigger.cjs +1 -1
- package/dist/components/Popover/PopoverTrigger.cjs.map +1 -1
- package/dist/components/Popover/PopoverTrigger.d.ts.map +1 -1
- package/dist/components/Popover/PopoverTrigger.js +1 -0
- package/dist/components/Popover/PopoverTrigger.js.map +1 -1
- package/dist/components/Progress/Progress.variants.cjs.map +1 -1
- package/dist/components/Progress/Progress.variants.d.ts.map +1 -1
- package/dist/components/Progress/Progress.variants.js.map +1 -1
- package/dist/components/RadioGroup/Radio.cjs +1 -1
- package/dist/components/RadioGroup/Radio.cjs.map +1 -1
- package/dist/components/RadioGroup/Radio.d.ts.map +1 -1
- package/dist/components/RadioGroup/Radio.js +4 -0
- package/dist/components/RadioGroup/Radio.js.map +1 -1
- package/dist/components/RadioGroup/Radio.variants.cjs.map +1 -1
- package/dist/components/RadioGroup/Radio.variants.d.ts.map +1 -1
- package/dist/components/RadioGroup/Radio.variants.js.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.cjs +1 -1
- package/dist/components/RadioGroup/RadioGroup.cjs.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.js +1 -0
- package/dist/components/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/components/ScrollArea/ScrollArea.cjs +1 -1
- package/dist/components/ScrollArea/ScrollArea.cjs.map +1 -1
- package/dist/components/ScrollArea/ScrollArea.d.ts.map +1 -1
- package/dist/components/ScrollArea/ScrollArea.js +2 -0
- package/dist/components/ScrollArea/ScrollArea.js.map +1 -1
- package/dist/components/Section/Section.cjs +1 -1
- package/dist/components/Section/Section.cjs.map +1 -1
- package/dist/components/Section/Section.d.ts.map +1 -1
- package/dist/components/Section/Section.js +2 -0
- package/dist/components/Section/Section.js.map +1 -1
- package/dist/components/Select/Select.cjs +1 -1
- package/dist/components/Select/Select.cjs.map +1 -1
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/Select.js +1 -0
- package/dist/components/Select/Select.js.map +1 -1
- package/dist/components/Select/SelectContent.cjs +1 -1
- package/dist/components/Select/SelectContent.cjs.map +1 -1
- package/dist/components/Select/SelectContent.d.ts.map +1 -1
- package/dist/components/Select/SelectContent.js +1 -0
- package/dist/components/Select/SelectContent.js.map +1 -1
- package/dist/components/Select/SelectItem.cjs +1 -1
- package/dist/components/Select/SelectItem.cjs.map +1 -1
- package/dist/components/Select/SelectItem.d.ts.map +1 -1
- package/dist/components/Select/SelectItem.js +1 -0
- package/dist/components/Select/SelectItem.js.map +1 -1
- package/dist/components/Select/SelectSeparator.cjs +1 -1
- package/dist/components/Select/SelectSeparator.cjs.map +1 -1
- package/dist/components/Select/SelectSeparator.d.ts.map +1 -1
- package/dist/components/Select/SelectSeparator.js +1 -0
- package/dist/components/Select/SelectSeparator.js.map +1 -1
- package/dist/components/Select/SelectTrigger.cjs +1 -1
- package/dist/components/Select/SelectTrigger.cjs.map +1 -1
- package/dist/components/Select/SelectTrigger.d.ts.map +1 -1
- package/dist/components/Select/SelectTrigger.js +1 -0
- package/dist/components/Select/SelectTrigger.js.map +1 -1
- package/dist/components/Sheet/Sheet.cjs +1 -1
- package/dist/components/Sheet/Sheet.cjs.map +1 -1
- package/dist/components/Sheet/Sheet.d.ts.map +1 -1
- package/dist/components/Sheet/Sheet.js +2 -0
- package/dist/components/Sheet/Sheet.js.map +1 -1
- package/dist/components/Sidebar/Sidebar.cjs +1 -1
- package/dist/components/Sidebar/Sidebar.cjs.map +1 -1
- package/dist/components/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.js +2 -0
- package/dist/components/Sidebar/Sidebar.js.map +1 -1
- package/dist/components/Sidebar/SidebarContent.cjs +1 -1
- package/dist/components/Sidebar/SidebarContent.cjs.map +1 -1
- package/dist/components/Sidebar/SidebarContent.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarContent.js +1 -0
- package/dist/components/Sidebar/SidebarContent.js.map +1 -1
- package/dist/components/Sidebar/SidebarFooter.cjs +1 -1
- package/dist/components/Sidebar/SidebarFooter.cjs.map +1 -1
- package/dist/components/Sidebar/SidebarFooter.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarFooter.js +1 -0
- package/dist/components/Sidebar/SidebarFooter.js.map +1 -1
- package/dist/components/Sidebar/SidebarGroup.cjs +1 -1
- package/dist/components/Sidebar/SidebarGroup.cjs.map +1 -1
- package/dist/components/Sidebar/SidebarGroup.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarGroup.js +1 -0
- package/dist/components/Sidebar/SidebarGroup.js.map +1 -1
- package/dist/components/Sidebar/SidebarGroupLabel.cjs +1 -1
- package/dist/components/Sidebar/SidebarGroupLabel.cjs.map +1 -1
- package/dist/components/Sidebar/SidebarGroupLabel.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarGroupLabel.js +1 -0
- package/dist/components/Sidebar/SidebarGroupLabel.js.map +1 -1
- package/dist/components/Sidebar/SidebarHeader.cjs +1 -1
- package/dist/components/Sidebar/SidebarHeader.cjs.map +1 -1
- package/dist/components/Sidebar/SidebarHeader.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarHeader.js +1 -0
- package/dist/components/Sidebar/SidebarHeader.js.map +1 -1
- package/dist/components/Sidebar/SidebarInset.cjs +1 -1
- package/dist/components/Sidebar/SidebarInset.cjs.map +1 -1
- package/dist/components/Sidebar/SidebarInset.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarInset.js +1 -0
- package/dist/components/Sidebar/SidebarInset.js.map +1 -1
- package/dist/components/Sidebar/SidebarMenu.cjs +1 -1
- package/dist/components/Sidebar/SidebarMenu.cjs.map +1 -1
- package/dist/components/Sidebar/SidebarMenu.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarMenu.js +1 -0
- package/dist/components/Sidebar/SidebarMenu.js.map +1 -1
- package/dist/components/Sidebar/SidebarMenuButton.cjs +1 -1
- package/dist/components/Sidebar/SidebarMenuButton.cjs.map +1 -1
- package/dist/components/Sidebar/SidebarMenuButton.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarMenuButton.js +1 -0
- package/dist/components/Sidebar/SidebarMenuButton.js.map +1 -1
- package/dist/components/Sidebar/SidebarMenuItem.cjs +1 -1
- package/dist/components/Sidebar/SidebarMenuItem.cjs.map +1 -1
- package/dist/components/Sidebar/SidebarMenuItem.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarMenuItem.js +1 -0
- package/dist/components/Sidebar/SidebarMenuItem.js.map +1 -1
- package/dist/components/Sidebar/SidebarProvider.cjs +1 -1
- package/dist/components/Sidebar/SidebarProvider.cjs.map +1 -1
- package/dist/components/Sidebar/SidebarProvider.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarProvider.js +1 -0
- package/dist/components/Sidebar/SidebarProvider.js.map +1 -1
- package/dist/components/Sidebar/SidebarTrigger.cjs +1 -1
- package/dist/components/Sidebar/SidebarTrigger.cjs.map +1 -1
- package/dist/components/Sidebar/SidebarTrigger.d.ts.map +1 -1
- package/dist/components/Sidebar/SidebarTrigger.js +1 -0
- package/dist/components/Sidebar/SidebarTrigger.js.map +1 -1
- package/dist/components/Skeleton/Skeleton.cjs +1 -1
- package/dist/components/Skeleton/Skeleton.cjs.map +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/components/Skeleton/Skeleton.js +1 -0
- package/dist/components/Skeleton/Skeleton.js.map +1 -1
- package/dist/components/SkipLink/SkipLink.cjs +1 -1
- package/dist/components/SkipLink/SkipLink.cjs.map +1 -1
- package/dist/components/SkipLink/SkipLink.d.ts.map +1 -1
- package/dist/components/SkipLink/SkipLink.js +2 -1
- package/dist/components/SkipLink/SkipLink.js.map +1 -1
- package/dist/components/Slider/Slider.cjs +1 -1
- package/dist/components/Slider/Slider.cjs.map +1 -1
- package/dist/components/Slider/Slider.d.ts.map +1 -1
- package/dist/components/Slider/Slider.js +6 -0
- package/dist/components/Slider/Slider.js.map +1 -1
- package/dist/components/Slider/Slider.variants.cjs.map +1 -1
- package/dist/components/Slider/Slider.variants.d.ts.map +1 -1
- package/dist/components/Slider/Slider.variants.js.map +1 -1
- package/dist/components/Spinner/Spinner.cjs +1 -1
- package/dist/components/Spinner/Spinner.cjs.map +1 -1
- package/dist/components/Spinner/Spinner.d.ts.map +1 -1
- package/dist/components/Spinner/Spinner.js +1 -0
- package/dist/components/Spinner/Spinner.js.map +1 -1
- package/dist/components/Spinner/Spinner.variants.cjs.map +1 -1
- package/dist/components/Spinner/Spinner.variants.d.ts.map +1 -1
- package/dist/components/Spinner/Spinner.variants.js.map +1 -1
- package/dist/components/SplitLayout/SplitLayout.cjs +1 -1
- package/dist/components/SplitLayout/SplitLayout.cjs.map +1 -1
- package/dist/components/SplitLayout/SplitLayout.d.ts.map +1 -1
- package/dist/components/SplitLayout/SplitLayout.js +2 -0
- package/dist/components/SplitLayout/SplitLayout.js.map +1 -1
- package/dist/components/Stack/Stack.cjs +1 -1
- package/dist/components/Stack/Stack.cjs.map +1 -1
- package/dist/components/Stack/Stack.d.ts +11 -3
- package/dist/components/Stack/Stack.d.ts.map +1 -1
- package/dist/components/Stack/Stack.js +5 -4
- package/dist/components/Stack/Stack.js.map +1 -1
- package/dist/components/Stepper/Stepper.cjs +1 -1
- package/dist/components/Stepper/Stepper.cjs.map +1 -1
- package/dist/components/Stepper/Stepper.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.js +3 -0
- package/dist/components/Stepper/Stepper.js.map +1 -1
- package/dist/components/Stepper/StepperContent.cjs +1 -1
- package/dist/components/Stepper/StepperContent.cjs.map +1 -1
- package/dist/components/Stepper/StepperContent.d.ts.map +1 -1
- package/dist/components/Stepper/StepperContent.js +1 -0
- package/dist/components/Stepper/StepperContent.js.map +1 -1
- package/dist/components/Stepper/StepperDescription.cjs +1 -1
- package/dist/components/Stepper/StepperDescription.cjs.map +1 -1
- package/dist/components/Stepper/StepperDescription.d.ts.map +1 -1
- package/dist/components/Stepper/StepperDescription.js +1 -0
- package/dist/components/Stepper/StepperDescription.js.map +1 -1
- package/dist/components/Stepper/StepperIndicator.cjs +1 -1
- package/dist/components/Stepper/StepperIndicator.cjs.map +1 -1
- package/dist/components/Stepper/StepperIndicator.d.ts.map +1 -1
- package/dist/components/Stepper/StepperIndicator.js +2 -1
- package/dist/components/Stepper/StepperIndicator.js.map +1 -1
- package/dist/components/Stepper/StepperItem.cjs +1 -1
- package/dist/components/Stepper/StepperItem.cjs.map +1 -1
- package/dist/components/Stepper/StepperItem.d.ts.map +1 -1
- package/dist/components/Stepper/StepperItem.js +1 -0
- package/dist/components/Stepper/StepperItem.js.map +1 -1
- package/dist/components/Stepper/StepperTitle.cjs +1 -1
- package/dist/components/Stepper/StepperTitle.cjs.map +1 -1
- package/dist/components/Stepper/StepperTitle.d.ts.map +1 -1
- package/dist/components/Stepper/StepperTitle.js +1 -0
- package/dist/components/Stepper/StepperTitle.js.map +1 -1
- package/dist/components/Switch/Switch.cjs +1 -1
- package/dist/components/Switch/Switch.cjs.map +1 -1
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Switch/Switch.js +6 -3
- package/dist/components/Switch/Switch.js.map +1 -1
- package/dist/components/Switch/Switch.variants.cjs +1 -1
- package/dist/components/Switch/Switch.variants.cjs.map +1 -1
- package/dist/components/Switch/Switch.variants.d.ts.map +1 -1
- package/dist/components/Switch/Switch.variants.js +4 -4
- package/dist/components/Switch/Switch.variants.js.map +1 -1
- package/dist/components/Table/Table.cjs +1 -1
- package/dist/components/Table/Table.cjs.map +1 -1
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/Table.js +3 -0
- package/dist/components/Table/Table.js.map +1 -1
- package/dist/components/Table/TableBody.cjs +1 -1
- package/dist/components/Table/TableBody.cjs.map +1 -1
- package/dist/components/Table/TableBody.d.ts.map +1 -1
- package/dist/components/Table/TableBody.js +2 -0
- package/dist/components/Table/TableBody.js.map +1 -1
- package/dist/components/Table/TableCell.cjs +1 -1
- package/dist/components/Table/TableCell.cjs.map +1 -1
- package/dist/components/Table/TableCell.d.ts.map +1 -1
- package/dist/components/Table/TableCell.js +1 -0
- package/dist/components/Table/TableCell.js.map +1 -1
- package/dist/components/Table/TableFooter.cjs +1 -1
- package/dist/components/Table/TableFooter.cjs.map +1 -1
- package/dist/components/Table/TableFooter.d.ts.map +1 -1
- package/dist/components/Table/TableFooter.js +3 -1
- package/dist/components/Table/TableFooter.js.map +1 -1
- package/dist/components/Table/TableHead.cjs +1 -1
- package/dist/components/Table/TableHead.cjs.map +1 -1
- package/dist/components/Table/TableHead.d.ts.map +1 -1
- package/dist/components/Table/TableHead.js +2 -1
- package/dist/components/Table/TableHead.js.map +1 -1
- package/dist/components/Table/TableHeader.cjs +1 -1
- package/dist/components/Table/TableHeader.cjs.map +1 -1
- package/dist/components/Table/TableHeader.d.ts.map +1 -1
- package/dist/components/Table/TableHeader.js +2 -0
- package/dist/components/Table/TableHeader.js.map +1 -1
- package/dist/components/Table/TableRow.cjs +1 -1
- package/dist/components/Table/TableRow.cjs.map +1 -1
- package/dist/components/Table/TableRow.d.ts.map +1 -1
- package/dist/components/Table/TableRow.js +2 -0
- package/dist/components/Table/TableRow.js.map +1 -1
- package/dist/components/Tabs/Tabs.cjs +1 -1
- package/dist/components/Tabs/Tabs.cjs.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.js +1 -0
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/Tabs/TabsContent.cjs +1 -1
- package/dist/components/Tabs/TabsContent.cjs.map +1 -1
- package/dist/components/Tabs/TabsContent.d.ts.map +1 -1
- package/dist/components/Tabs/TabsContent.js +1 -0
- package/dist/components/Tabs/TabsContent.js.map +1 -1
- package/dist/components/Tabs/TabsList.cjs +1 -1
- package/dist/components/Tabs/TabsList.cjs.map +1 -1
- package/dist/components/Tabs/TabsList.d.ts.map +1 -1
- package/dist/components/Tabs/TabsList.js +1 -0
- package/dist/components/Tabs/TabsList.js.map +1 -1
- package/dist/components/Tabs/TabsTrigger.cjs +1 -1
- package/dist/components/Tabs/TabsTrigger.cjs.map +1 -1
- package/dist/components/Tabs/TabsTrigger.d.ts.map +1 -1
- package/dist/components/Tabs/TabsTrigger.js +1 -0
- package/dist/components/Tabs/TabsTrigger.js.map +1 -1
- package/dist/components/Tag/Tag.cjs +1 -1
- package/dist/components/Tag/Tag.cjs.map +1 -1
- package/dist/components/Tag/Tag.d.ts.map +1 -1
- package/dist/components/Tag/Tag.js +1 -0
- package/dist/components/Tag/Tag.js.map +1 -1
- package/dist/components/Tag/Tag.variants.cjs +1 -1
- package/dist/components/Tag/Tag.variants.cjs.map +1 -1
- package/dist/components/Tag/Tag.variants.js +1 -1
- package/dist/components/Tag/Tag.variants.js.map +1 -1
- package/dist/components/Text/Text.cjs +1 -1
- package/dist/components/Text/Text.cjs.map +1 -1
- package/dist/components/Text/Text.d.ts +1 -1
- package/dist/components/Text/Text.d.ts.map +1 -1
- package/dist/components/Text/Text.js +1 -0
- package/dist/components/Text/Text.js.map +1 -1
- package/dist/components/Text/Text.variants.cjs +1 -1
- package/dist/components/Text/Text.variants.cjs.map +1 -1
- package/dist/components/Text/Text.variants.d.ts +1 -1
- package/dist/components/Text/Text.variants.d.ts.map +1 -1
- package/dist/components/Text/Text.variants.js +6 -1
- package/dist/components/Text/Text.variants.js.map +1 -1
- package/dist/components/Textarea/Textarea.cjs +1 -1
- package/dist/components/Textarea/Textarea.cjs.map +1 -1
- package/dist/components/Textarea/Textarea.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.js +1 -0
- package/dist/components/Textarea/Textarea.js.map +1 -1
- package/dist/components/Timeline/Timeline.cjs +1 -1
- package/dist/components/Timeline/Timeline.cjs.map +1 -1
- package/dist/components/Timeline/Timeline.d.ts.map +1 -1
- package/dist/components/Timeline/Timeline.js +2 -0
- package/dist/components/Timeline/Timeline.js.map +1 -1
- package/dist/components/Timeline/TimelineItem.cjs +1 -1
- package/dist/components/Timeline/TimelineItem.cjs.map +1 -1
- package/dist/components/Timeline/TimelineItem.d.ts +2 -1
- package/dist/components/Timeline/TimelineItem.d.ts.map +1 -1
- package/dist/components/Timeline/TimelineItem.js +49 -28
- package/dist/components/Timeline/TimelineItem.js.map +1 -1
- package/dist/components/Toast/Toast.cjs +1 -1
- package/dist/components/Toast/Toast.cjs.map +1 -1
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/Toast/Toast.js +4 -0
- package/dist/components/Toast/Toast.js.map +1 -1
- package/dist/components/Toast/Toaster.cjs +1 -1
- package/dist/components/Toast/Toaster.cjs.map +1 -1
- package/dist/components/Toast/Toaster.d.ts.map +1 -1
- package/dist/components/Toast/Toaster.js +1 -0
- package/dist/components/Toast/Toaster.js.map +1 -1
- package/dist/components/Tooltip/TooltipContent.cjs +1 -1
- package/dist/components/Tooltip/TooltipContent.cjs.map +1 -1
- package/dist/components/Tooltip/TooltipContent.d.ts.map +1 -1
- package/dist/components/Tooltip/TooltipContent.js +1 -0
- package/dist/components/Tooltip/TooltipContent.js.map +1 -1
- package/dist/components/Tooltip/TooltipTrigger.cjs +1 -1
- package/dist/components/Tooltip/TooltipTrigger.cjs.map +1 -1
- package/dist/components/Tooltip/TooltipTrigger.d.ts.map +1 -1
- package/dist/components/Tooltip/TooltipTrigger.js +1 -0
- package/dist/components/Tooltip/TooltipTrigger.js.map +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.cjs +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.cjs.map +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts.map +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.js +1 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +190 -188
- package/dist/styles-root.css +13 -1
- package/dist/styles.css +22 -1
- package/dist/utils/_tailwind-safelist.d.ts +2 -0
- package/dist/utils/_tailwind-safelist.d.ts.map +1 -0
- package/dist/utils/dismiss-button.cjs +1 -1
- package/dist/utils/dismiss-button.cjs.map +1 -1
- package/dist/utils/dismiss-button.d.ts.map +1 -1
- package/dist/utils/dismiss-button.js +1 -0
- package/dist/utils/dismiss-button.js.map +1 -1
- package/dist/utils/modal-primitive.cjs +1 -1
- package/dist/utils/modal-primitive.cjs.map +1 -1
- package/dist/utils/modal-primitive.d.ts.map +1 -1
- package/dist/utils/modal-primitive.js +5 -0
- package/dist/utils/modal-primitive.js.map +1 -1
- package/dist/utils/polymorphic.d.ts +11 -0
- package/dist/utils/polymorphic.d.ts.map +1 -0
- package/dist/utils/responsive-maps.cjs +2 -0
- package/dist/utils/responsive-maps.cjs.map +1 -0
- package/dist/utils/responsive-maps.d.ts +50 -0
- package/dist/utils/responsive-maps.d.ts.map +1 -0
- package/dist/utils/responsive-maps.js +103 -0
- package/dist/utils/responsive-maps.js.map +1 -0
- package/dist/utils/responsive.cjs +1 -1
- package/dist/utils/responsive.cjs.map +1 -1
- package/dist/utils/responsive.d.ts +2 -19
- package/dist/utils/responsive.d.ts.map +1 -1
- package/dist/utils/responsive.js +23 -113
- package/dist/utils/responsive.js.map +1 -1
- package/dist/utils/slot.cjs +1 -1
- package/dist/utils/slot.cjs.map +1 -1
- package/dist/utils/slot.d.ts.map +1 -1
- package/dist/utils/slot.js +1 -0
- package/dist/utils/slot.js.map +1 -1
- package/package.json +12 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Code.d.ts","sourceRoot":"","sources":["../../../src/components/Code/Code.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Code.d.ts","sourceRoot":"","sources":["../../../src/components/Code/Code.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EACL,YAAY,EACZ,KAAK,gBAAgB,EACtB,MAAM,qCAAqC,CAAC;AAE7C,MAAM,WAAW,SACf,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,gBAAgB;IAC3D,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC;CAC1C;AAED,iBAAS,IAAI,CAAC,EACZ,GAAG,EACH,SAAS,EACT,MAAM,EACN,OAAO,EACP,MAAM,EACN,IAAI,EACJ,GAAG,KAAK,EACT,EAAE,SAAS,2CAQX;kBAhBQ,IAAI;;;AAoBb,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Code.js","names":[],"sources":["../../../src/components/Code/Code.tsx"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"Code.js","names":[],"sources":["../../../src/components/Code/Code.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport {\n codeVariants,\n type CodeVariantProps,\n} from \"@nuka/components/Code/Code.variants\";\n\nexport interface CodeProps\n extends React.HTMLAttributes<HTMLElement>, CodeVariantProps {\n ref?: React.Ref<HTMLElement> | undefined;\n}\n\nfunction Code({\n ref,\n className,\n family,\n variant,\n intent,\n size,\n ...props\n}: CodeProps) {\n return (\n <code\n ref={ref}\n className={cn(codeVariants({ family, variant, intent, size }), className)}\n {...props}\n />\n );\n}\n\nCode.displayName = \"Code\";\n\nexport { Code, codeVariants };\n"],"mappings":";;;;;;AAcA,SAAS,EAAK,EACZ,QACA,cACA,WACA,YACA,WACA,SACA,GAAG,KACS;AACZ,QACE,kBAAC,QAAD;EACO;EACL,WAAW,EAAG,EAAa;GAAE;GAAQ;GAAS;GAAQ;GAAM,CAAC,EAAE,EAAU;EACzE,GAAI;EACJ,CAAA;;AAIN,EAAK,cAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../hooks/use-controllable-state.cjs`),n=require(`./Collapsible.context.cjs`);let r=require(`react`);r=e.__toESM(r,1);let i=require(`react/jsx-runtime`);function a({ref:e,open:a,defaultOpen:o,onOpenChange:s,disabled:c=!1,className:l,...u}){let[d,f]=t.useControllableState(a,o??!1,s),p=r.useId(),m=r.useId();return(0,i.jsx)(n.CollapsibleContext,{value:r.useMemo(()=>({open:d,onOpenChange:f,contentId:p,triggerId:m,disabled:c}),[d,f,p,m,c]),children:(0,i.jsx)(`div`,{ref:e,"data-state":d?`open`:`closed`,className:l,...u})})}a.displayName=`Collapsible`,exports.Collapsible=a;
|
|
1
|
+
"use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../hooks/use-controllable-state.cjs`),n=require(`./Collapsible.context.cjs`);let r=require(`react`);r=e.__toESM(r,1);let i=require(`react/jsx-runtime`);function a({ref:e,open:a,defaultOpen:o,onOpenChange:s,disabled:c=!1,className:l,...u}){let[d,f]=t.useControllableState(a,o??!1,s),p=r.useId(),m=r.useId();return(0,i.jsx)(n.CollapsibleContext,{value:r.useMemo(()=>({open:d,onOpenChange:f,contentId:p,triggerId:m,disabled:c}),[d,f,p,m,c]),children:(0,i.jsx)(`div`,{ref:e,"data-slot":`root`,"data-state":d?`open`:`closed`,className:l,...u})})}a.displayName=`Collapsible`,exports.Collapsible=a;
|
|
2
2
|
//# sourceMappingURL=Collapsible.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Collapsible.cjs","names":[],"sources":["../../../src/components/Collapsible/Collapsible.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { useControllableState } from \"@nuka/hooks/use-controllable-state\";\nimport { CollapsibleContext } from \"@nuka/components/Collapsible/Collapsible.context\";\n\nexport interface CollapsibleProps extends React.HTMLAttributes<HTMLDivElement> {\n ref?: React.Ref<HTMLDivElement> | undefined;\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n disabled?: boolean;\n}\n\nfunction Collapsible({\n ref,\n open: controlledOpen,\n defaultOpen,\n onOpenChange,\n disabled = false,\n className,\n ...props\n}: CollapsibleProps) {\n const [open, setOpen] = useControllableState(\n controlledOpen,\n defaultOpen ?? false,\n onOpenChange,\n );\n const contentId = React.useId();\n const triggerId = React.useId();\n\n const contextValue = React.useMemo(\n () => ({ open, onOpenChange: setOpen, contentId, triggerId, disabled }),\n [open, setOpen, contentId, triggerId, disabled],\n );\n\n return (\n <CollapsibleContext value={contextValue}>\n <div\n ref={ref}\n data-state={open ? \"open\" : \"closed\"}\n className={className}\n {...props}\n />\n </CollapsibleContext>\n );\n}\n\nCollapsible.displayName = \"Collapsible\";\n\nexport { Collapsible };\n"],"mappings":"2OAaA,SAAS,EAAY,CACnB,MACA,KAAM,EACN,cACA,eACA,WAAW,GACX,YACA,GAAG,GACgB,CACnB,GAAM,CAAC,EAAM,GAAW,EAAA,qBACtB,EACA,GAAe,GACf,EACD,CACK,EAAY,EAAM,OAAO,CACzB,EAAY,EAAM,OAAO,CAO/B,OACE,EAAA,EAAA,KAAC,EAAA,mBAAD,CAAoB,MAND,EAAM,aAClB,CAAE,OAAM,aAAc,EAAS,YAAW,YAAW,WAAU,EACtE,CAAC,EAAM,EAAS,EAAW,EAAW,EAAS,CAChD,WAIG,EAAA,EAAA,KAAC,MAAD,CACO,MACL,aAAY,EAAO,OAAS,SACjB,YACX,GAAI,EACJ,CAAA,CACiB,CAAA,CAIzB,EAAY,YAAc"}
|
|
1
|
+
{"version":3,"file":"Collapsible.cjs","names":[],"sources":["../../../src/components/Collapsible/Collapsible.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { useControllableState } from \"@nuka/hooks/use-controllable-state\";\nimport { CollapsibleContext } from \"@nuka/components/Collapsible/Collapsible.context\";\n\nexport interface CollapsibleProps extends React.HTMLAttributes<HTMLDivElement> {\n ref?: React.Ref<HTMLDivElement> | undefined;\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n disabled?: boolean;\n}\n\nfunction Collapsible({\n ref,\n open: controlledOpen,\n defaultOpen,\n onOpenChange,\n disabled = false,\n className,\n ...props\n}: CollapsibleProps) {\n const [open, setOpen] = useControllableState(\n controlledOpen,\n defaultOpen ?? false,\n onOpenChange,\n );\n const contentId = React.useId();\n const triggerId = React.useId();\n\n const contextValue = React.useMemo(\n () => ({ open, onOpenChange: setOpen, contentId, triggerId, disabled }),\n [open, setOpen, contentId, triggerId, disabled],\n );\n\n return (\n <CollapsibleContext value={contextValue}>\n <div\n ref={ref}\n data-slot=\"root\"\n data-state={open ? \"open\" : \"closed\"}\n className={className}\n {...props}\n />\n </CollapsibleContext>\n );\n}\n\nCollapsible.displayName = \"Collapsible\";\n\nexport { Collapsible };\n"],"mappings":"2OAaA,SAAS,EAAY,CACnB,MACA,KAAM,EACN,cACA,eACA,WAAW,GACX,YACA,GAAG,GACgB,CACnB,GAAM,CAAC,EAAM,GAAW,EAAA,qBACtB,EACA,GAAe,GACf,EACD,CACK,EAAY,EAAM,OAAO,CACzB,EAAY,EAAM,OAAO,CAO/B,OACE,EAAA,EAAA,KAAC,EAAA,mBAAD,CAAoB,MAND,EAAM,aAClB,CAAE,OAAM,aAAc,EAAS,YAAW,YAAW,WAAU,EACtE,CAAC,EAAM,EAAS,EAAW,EAAW,EAAS,CAChD,WAIG,EAAA,EAAA,KAAC,MAAD,CACO,MACL,YAAU,OACV,aAAY,EAAO,OAAS,SACjB,YACX,GAAI,EACJ,CAAA,CACiB,CAAA,CAIzB,EAAY,YAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Collapsible.d.ts","sourceRoot":"","sources":["../../../src/components/Collapsible/Collapsible.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC5E,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;IAC5C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,iBAAS,WAAW,CAAC,EACnB,GAAG,EACH,IAAI,EAAE,cAAc,EACpB,WAAW,EACX,YAAY,EACZ,QAAgB,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"Collapsible.d.ts","sourceRoot":"","sources":["../../../src/components/Collapsible/Collapsible.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC5E,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;IAC5C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,iBAAS,WAAW,CAAC,EACnB,GAAG,EACH,IAAI,EAAE,cAAc,EACpB,WAAW,EACX,YAAY,EACZ,QAAgB,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,gBAAgB,2CAyBlB;kBAjCQ,WAAW;;;AAqCpB,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Collapsible.js","names":[],"sources":["../../../src/components/Collapsible/Collapsible.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { useControllableState } from \"@nuka/hooks/use-controllable-state\";\nimport { CollapsibleContext } from \"@nuka/components/Collapsible/Collapsible.context\";\n\nexport interface CollapsibleProps extends React.HTMLAttributes<HTMLDivElement> {\n ref?: React.Ref<HTMLDivElement> | undefined;\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n disabled?: boolean;\n}\n\nfunction Collapsible({\n ref,\n open: controlledOpen,\n defaultOpen,\n onOpenChange,\n disabled = false,\n className,\n ...props\n}: CollapsibleProps) {\n const [open, setOpen] = useControllableState(\n controlledOpen,\n defaultOpen ?? false,\n onOpenChange,\n );\n const contentId = React.useId();\n const triggerId = React.useId();\n\n const contextValue = React.useMemo(\n () => ({ open, onOpenChange: setOpen, contentId, triggerId, disabled }),\n [open, setOpen, contentId, triggerId, disabled],\n );\n\n return (\n <CollapsibleContext value={contextValue}>\n <div\n ref={ref}\n data-state={open ? \"open\" : \"closed\"}\n className={className}\n {...props}\n />\n </CollapsibleContext>\n );\n}\n\nCollapsible.displayName = \"Collapsible\";\n\nexport { Collapsible };\n"],"mappings":";;;;;;AAaA,SAAS,EAAY,EACnB,QACA,MAAM,GACN,gBACA,iBACA,cAAW,IACX,cACA,GAAG,KACgB;CACnB,IAAM,CAAC,GAAM,KAAW,EACtB,GACA,KAAe,IACf,EACD,EACK,IAAY,EAAM,OAAO,EACzB,IAAY,EAAM,OAAO;AAO/B,QACE,kBAAC,GAAD;EAAoB,OAND,EAAM,eAClB;GAAE;GAAM,cAAc;GAAS;GAAW;GAAW;GAAU,GACtE;GAAC;GAAM;GAAS;GAAW;GAAW;GAAS,CAChD;YAIG,kBAAC,OAAD;GACO;GACL,cAAY,IAAO,SAAS;GACjB;GACX,GAAI;GACJ,CAAA;EACiB,CAAA;;AAIzB,EAAY,cAAc"}
|
|
1
|
+
{"version":3,"file":"Collapsible.js","names":[],"sources":["../../../src/components/Collapsible/Collapsible.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { useControllableState } from \"@nuka/hooks/use-controllable-state\";\nimport { CollapsibleContext } from \"@nuka/components/Collapsible/Collapsible.context\";\n\nexport interface CollapsibleProps extends React.HTMLAttributes<HTMLDivElement> {\n ref?: React.Ref<HTMLDivElement> | undefined;\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n disabled?: boolean;\n}\n\nfunction Collapsible({\n ref,\n open: controlledOpen,\n defaultOpen,\n onOpenChange,\n disabled = false,\n className,\n ...props\n}: CollapsibleProps) {\n const [open, setOpen] = useControllableState(\n controlledOpen,\n defaultOpen ?? false,\n onOpenChange,\n );\n const contentId = React.useId();\n const triggerId = React.useId();\n\n const contextValue = React.useMemo(\n () => ({ open, onOpenChange: setOpen, contentId, triggerId, disabled }),\n [open, setOpen, contentId, triggerId, disabled],\n );\n\n return (\n <CollapsibleContext value={contextValue}>\n <div\n ref={ref}\n data-slot=\"root\"\n data-state={open ? \"open\" : \"closed\"}\n className={className}\n {...props}\n />\n </CollapsibleContext>\n );\n}\n\nCollapsible.displayName = \"Collapsible\";\n\nexport { Collapsible };\n"],"mappings":";;;;;;AAaA,SAAS,EAAY,EACnB,QACA,MAAM,GACN,gBACA,iBACA,cAAW,IACX,cACA,GAAG,KACgB;CACnB,IAAM,CAAC,GAAM,KAAW,EACtB,GACA,KAAe,IACf,EACD,EACK,IAAY,EAAM,OAAO,EACzB,IAAY,EAAM,OAAO;AAO/B,QACE,kBAAC,GAAD;EAAoB,OAND,EAAM,eAClB;GAAE;GAAM,cAAc;GAAS;GAAW;GAAW;GAAU,GACtE;GAAC;GAAM;GAAS;GAAW;GAAW;GAAS,CAChD;YAIG,kBAAC,OAAD;GACO;GACL,aAAU;GACV,cAAY,IAAO,SAAS;GACjB;GACX,GAAI;GACJ,CAAA;EACiB,CAAA;;AAIzB,EAAY,cAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/cn.cjs`),n=require(`./Collapsible.context.cjs`);let r=require(`react`);r=e.__toESM(r,1);let i=require(`react/jsx-runtime`);function a({ref:e,className:r,children:a,...o}){let{open:s,contentId:c,triggerId:l}=n.useCollapsibleContext();return(0,i.jsx)(`div`,{ref:e,id:c,role:`region`,"aria-labelledby":l,"aria-hidden":!s,"data-state":s?`open`:`closed`,className:t.cn(`grid grid-rows-[0fr] transition-[grid-template-rows] duration-200 ease-in-out`,`data-[state=open]:grid-rows-[1fr]`,`motion-reduce:transition-none`,r),...o,children:(0,i.jsx)(`div`,{className:`overflow-hidden`,children:a})})}a.displayName=`CollapsibleContent`,exports.CollapsibleContent=a;
|
|
1
|
+
"use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/cn.cjs`),n=require(`./Collapsible.context.cjs`);let r=require(`react`);r=e.__toESM(r,1);let i=require(`react/jsx-runtime`);function a({ref:e,className:r,children:a,...o}){let{open:s,contentId:c,triggerId:l}=n.useCollapsibleContext();return(0,i.jsx)(`div`,{ref:e,id:c,role:`region`,"aria-labelledby":l,"aria-hidden":!s,"data-slot":`content`,"data-state":s?`open`:`closed`,className:t.cn(`grid grid-rows-[0fr] transition-[grid-template-rows] duration-200 ease-in-out`,`data-[state=open]:grid-rows-[1fr]`,`motion-reduce:transition-none`,r),...o,children:(0,i.jsx)(`div`,{className:`overflow-hidden`,"data-slot":`content-inner`,children:a})})}a.displayName=`CollapsibleContent`,exports.CollapsibleContent=a;
|
|
2
2
|
//# sourceMappingURL=CollapsibleContent.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapsibleContent.cjs","names":[],"sources":["../../../src/components/Collapsible/CollapsibleContent.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { useCollapsibleContext } from \"@nuka/components/Collapsible/Collapsible.context\";\n\nexport interface CollapsibleContentProps extends React.HTMLAttributes<HTMLDivElement> {\n ref?: React.Ref<HTMLDivElement> | undefined;\n}\n\nfunction CollapsibleContent({\n ref,\n className,\n children,\n ...props\n}: CollapsibleContentProps) {\n const { open, contentId, triggerId } = useCollapsibleContext();\n\n return (\n <div\n ref={ref}\n id={contentId}\n role=\"region\"\n aria-labelledby={triggerId}\n aria-hidden={!open}\n data-state={open ? \"open\" : \"closed\"}\n className={cn(\n \"grid grid-rows-[0fr] transition-[grid-template-rows] duration-200 ease-in-out\",\n \"data-[state=open]:grid-rows-[1fr]\",\n \"motion-reduce:transition-none\",\n className,\n )}\n {...props}\n >\n <div className=\"overflow-hidden\"
|
|
1
|
+
{"version":3,"file":"CollapsibleContent.cjs","names":[],"sources":["../../../src/components/Collapsible/CollapsibleContent.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { useCollapsibleContext } from \"@nuka/components/Collapsible/Collapsible.context\";\n\nexport interface CollapsibleContentProps extends React.HTMLAttributes<HTMLDivElement> {\n ref?: React.Ref<HTMLDivElement> | undefined;\n}\n\nfunction CollapsibleContent({\n ref,\n className,\n children,\n ...props\n}: CollapsibleContentProps) {\n const { open, contentId, triggerId } = useCollapsibleContext();\n\n return (\n <div\n ref={ref}\n id={contentId}\n role=\"region\"\n aria-labelledby={triggerId}\n aria-hidden={!open}\n data-slot=\"content\"\n data-state={open ? \"open\" : \"closed\"}\n className={cn(\n \"grid grid-rows-[0fr] transition-[grid-template-rows] duration-200 ease-in-out\",\n \"data-[state=open]:grid-rows-[1fr]\",\n \"motion-reduce:transition-none\",\n className,\n )}\n {...props}\n >\n <div className=\"overflow-hidden\" data-slot=\"content-inner\">\n {children}\n </div>\n </div>\n );\n}\n\nCollapsibleContent.displayName = \"CollapsibleContent\";\n\nexport { CollapsibleContent };\n"],"mappings":"uNASA,SAAS,EAAmB,CAC1B,MACA,YACA,WACA,GAAG,GACuB,CAC1B,GAAM,CAAE,OAAM,YAAW,aAAc,EAAA,uBAAuB,CAE9D,OACE,EAAA,EAAA,KAAC,MAAD,CACO,MACL,GAAI,EACJ,KAAK,SACL,kBAAiB,EACjB,cAAa,CAAC,EACd,YAAU,UACV,aAAY,EAAO,OAAS,SAC5B,UAAW,EAAA,GACT,gFACA,oCACA,gCACA,EACD,CACD,GAAI,YAEJ,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,kBAAkB,YAAU,gBACxC,WACG,CAAA,CACF,CAAA,CAIV,EAAmB,YAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapsibleContent.d.ts","sourceRoot":"","sources":["../../../src/components/Collapsible/CollapsibleContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,uBAAwB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACnF,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;CAC7C;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,EACH,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,uBAAuB,
|
|
1
|
+
{"version":3,"file":"CollapsibleContent.d.ts","sourceRoot":"","sources":["../../../src/components/Collapsible/CollapsibleContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,uBAAwB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACnF,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;CAC7C;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,EACH,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,uBAAuB,2CAyBzB;kBA9BQ,kBAAkB;;;AAkC3B,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -12,11 +12,13 @@ function r({ ref: r, className: i, children: a, ...o }) {
|
|
|
12
12
|
role: "region",
|
|
13
13
|
"aria-labelledby": l,
|
|
14
14
|
"aria-hidden": !s,
|
|
15
|
+
"data-slot": "content",
|
|
15
16
|
"data-state": s ? "open" : "closed",
|
|
16
17
|
className: e("grid grid-rows-[0fr] transition-[grid-template-rows] duration-200 ease-in-out", "data-[state=open]:grid-rows-[1fr]", "motion-reduce:transition-none", i),
|
|
17
18
|
...o,
|
|
18
19
|
children: /* @__PURE__ */ n("div", {
|
|
19
20
|
className: "overflow-hidden",
|
|
21
|
+
"data-slot": "content-inner",
|
|
20
22
|
children: a
|
|
21
23
|
})
|
|
22
24
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapsibleContent.js","names":[],"sources":["../../../src/components/Collapsible/CollapsibleContent.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { useCollapsibleContext } from \"@nuka/components/Collapsible/Collapsible.context\";\n\nexport interface CollapsibleContentProps extends React.HTMLAttributes<HTMLDivElement> {\n ref?: React.Ref<HTMLDivElement> | undefined;\n}\n\nfunction CollapsibleContent({\n ref,\n className,\n children,\n ...props\n}: CollapsibleContentProps) {\n const { open, contentId, triggerId } = useCollapsibleContext();\n\n return (\n <div\n ref={ref}\n id={contentId}\n role=\"region\"\n aria-labelledby={triggerId}\n aria-hidden={!open}\n data-state={open ? \"open\" : \"closed\"}\n className={cn(\n \"grid grid-rows-[0fr] transition-[grid-template-rows] duration-200 ease-in-out\",\n \"data-[state=open]:grid-rows-[1fr]\",\n \"motion-reduce:transition-none\",\n className,\n )}\n {...props}\n >\n <div className=\"overflow-hidden\"
|
|
1
|
+
{"version":3,"file":"CollapsibleContent.js","names":[],"sources":["../../../src/components/Collapsible/CollapsibleContent.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { useCollapsibleContext } from \"@nuka/components/Collapsible/Collapsible.context\";\n\nexport interface CollapsibleContentProps extends React.HTMLAttributes<HTMLDivElement> {\n ref?: React.Ref<HTMLDivElement> | undefined;\n}\n\nfunction CollapsibleContent({\n ref,\n className,\n children,\n ...props\n}: CollapsibleContentProps) {\n const { open, contentId, triggerId } = useCollapsibleContext();\n\n return (\n <div\n ref={ref}\n id={contentId}\n role=\"region\"\n aria-labelledby={triggerId}\n aria-hidden={!open}\n data-slot=\"content\"\n data-state={open ? \"open\" : \"closed\"}\n className={cn(\n \"grid grid-rows-[0fr] transition-[grid-template-rows] duration-200 ease-in-out\",\n \"data-[state=open]:grid-rows-[1fr]\",\n \"motion-reduce:transition-none\",\n className,\n )}\n {...props}\n >\n <div className=\"overflow-hidden\" data-slot=\"content-inner\">\n {children}\n </div>\n </div>\n );\n}\n\nCollapsibleContent.displayName = \"CollapsibleContent\";\n\nexport { CollapsibleContent };\n"],"mappings":";;;;;;AASA,SAAS,EAAmB,EAC1B,QACA,cACA,aACA,GAAG,KACuB;CAC1B,IAAM,EAAE,SAAM,cAAW,iBAAc,GAAuB;AAE9D,QACE,kBAAC,OAAD;EACO;EACL,IAAI;EACJ,MAAK;EACL,mBAAiB;EACjB,eAAa,CAAC;EACd,aAAU;EACV,cAAY,IAAO,SAAS;EAC5B,WAAW,EACT,iFACA,qCACA,iCACA,EACD;EACD,GAAI;YAEJ,kBAAC,OAAD;GAAK,WAAU;GAAkB,aAAU;GACxC;GACG,CAAA;EACF,CAAA;;AAIV,EAAmB,cAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/slot.cjs`),n=require(`./Collapsible.context.cjs`);let r=require(`react`);r=e.__toESM(r,1);let i=require(`react/jsx-runtime`);function a({ref:e,asChild:r=!1,className:a,onClick:o,...s}){let{open:c,onOpenChange:l,contentId:u,triggerId:d,disabled:f}=n.useCollapsibleContext();return(0,i.jsx)(r?t.Slot:`button`,{ref:e,type:r?void 0:`button`,id:d,"aria-expanded":c,"aria-controls":u,disabled:f,"aria-disabled":f||void 0,"data-state":c?`open`:`closed`,className:a,onClick:e=>{l(!c),o?.(e)},...s})}a.displayName=`CollapsibleTrigger`,exports.CollapsibleTrigger=a;
|
|
1
|
+
"use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/slot.cjs`),n=require(`./Collapsible.context.cjs`);let r=require(`react`);r=e.__toESM(r,1);let i=require(`react/jsx-runtime`);function a({ref:e,asChild:r=!1,className:a,onClick:o,...s}){let{open:c,onOpenChange:l,contentId:u,triggerId:d,disabled:f}=n.useCollapsibleContext();return(0,i.jsx)(r?t.Slot:`button`,{ref:e,type:r?void 0:`button`,id:d,"aria-expanded":c,"aria-controls":u,disabled:f,"aria-disabled":f||void 0,"data-slot":`trigger`,"data-state":c?`open`:`closed`,className:a,onClick:e=>{l(!c),o?.(e)},...s})}a.displayName=`CollapsibleTrigger`,exports.CollapsibleTrigger=a;
|
|
2
2
|
//# sourceMappingURL=CollapsibleTrigger.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapsibleTrigger.cjs","names":[],"sources":["../../../src/components/Collapsible/CollapsibleTrigger.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { Slot } from \"@nuka/utils/slot\";\nimport { useCollapsibleContext } from \"@nuka/components/Collapsible/Collapsible.context\";\n\nexport interface CollapsibleTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n ref?: React.Ref<HTMLButtonElement> | undefined;\n asChild?: boolean;\n}\n\nfunction CollapsibleTrigger({\n ref,\n asChild = false,\n className,\n onClick,\n ...props\n}: CollapsibleTriggerProps) {\n const { open, onOpenChange, contentId, triggerId, disabled } =\n useCollapsibleContext();\n\n const handleClick = (e: React.MouseEvent<HTMLButtonElement>) => {\n onOpenChange(!open);\n onClick?.(e);\n };\n\n const Comp = asChild ? Slot : \"button\";\n\n return (\n <Comp\n ref={ref}\n type={asChild ? undefined : \"button\"}\n id={triggerId}\n aria-expanded={open}\n aria-controls={contentId}\n disabled={disabled}\n aria-disabled={disabled || undefined}\n data-state={open ? \"open\" : \"closed\"}\n className={className}\n onClick={handleClick}\n {...props}\n />\n );\n}\n\nCollapsibleTrigger.displayName = \"CollapsibleTrigger\";\n\nexport { CollapsibleTrigger };\n"],"mappings":"yNAUA,SAAS,EAAmB,CAC1B,MACA,UAAU,GACV,YACA,UACA,GAAG,GACuB,CAC1B,GAAM,CAAE,OAAM,eAAc,YAAW,YAAW,YAChD,EAAA,uBAAuB,CASzB,OACE,EAAA,EAAA,KAHW,EAAU,EAAA,KAAO,SAG5B,CACO,MACL,KAAM,EAAU,IAAA,GAAY,SAC5B,GAAI,EACJ,gBAAe,EACf,gBAAe,EACL,WACV,gBAAe,GAAY,IAAA,GAC3B,aAAY,EAAO,OAAS,SACjB,YACX,
|
|
1
|
+
{"version":3,"file":"CollapsibleTrigger.cjs","names":[],"sources":["../../../src/components/Collapsible/CollapsibleTrigger.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { Slot } from \"@nuka/utils/slot\";\nimport { useCollapsibleContext } from \"@nuka/components/Collapsible/Collapsible.context\";\n\nexport interface CollapsibleTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n ref?: React.Ref<HTMLButtonElement> | undefined;\n asChild?: boolean;\n}\n\nfunction CollapsibleTrigger({\n ref,\n asChild = false,\n className,\n onClick,\n ...props\n}: CollapsibleTriggerProps) {\n const { open, onOpenChange, contentId, triggerId, disabled } =\n useCollapsibleContext();\n\n const handleClick = (e: React.MouseEvent<HTMLButtonElement>) => {\n onOpenChange(!open);\n onClick?.(e);\n };\n\n const Comp = asChild ? Slot : \"button\";\n\n return (\n <Comp\n ref={ref}\n type={asChild ? undefined : \"button\"}\n id={triggerId}\n aria-expanded={open}\n aria-controls={contentId}\n disabled={disabled}\n aria-disabled={disabled || undefined}\n data-slot=\"trigger\"\n data-state={open ? \"open\" : \"closed\"}\n className={className}\n onClick={handleClick}\n {...props}\n />\n );\n}\n\nCollapsibleTrigger.displayName = \"CollapsibleTrigger\";\n\nexport { CollapsibleTrigger };\n"],"mappings":"yNAUA,SAAS,EAAmB,CAC1B,MACA,UAAU,GACV,YACA,UACA,GAAG,GACuB,CAC1B,GAAM,CAAE,OAAM,eAAc,YAAW,YAAW,YAChD,EAAA,uBAAuB,CASzB,OACE,EAAA,EAAA,KAHW,EAAU,EAAA,KAAO,SAG5B,CACO,MACL,KAAM,EAAU,IAAA,GAAY,SAC5B,GAAI,EACJ,gBAAe,EACf,gBAAe,EACL,WACV,gBAAe,GAAY,IAAA,GAC3B,YAAU,UACV,aAAY,EAAO,OAAS,SACjB,YACX,QAnBiB,GAA2C,CAC9D,EAAa,CAAC,EAAK,CACnB,IAAU,EAAE,EAkBV,GAAI,EACJ,CAAA,CAIN,EAAmB,YAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapsibleTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/Collapsible/CollapsibleTrigger.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,uBAAwB,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IAC5F,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,EACH,OAAe,EACf,SAAS,EACT,OAAO,EACP,GAAG,KAAK,EACT,EAAE,uBAAuB,
|
|
1
|
+
{"version":3,"file":"CollapsibleTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/Collapsible/CollapsibleTrigger.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,uBAAwB,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IAC5F,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAAG,EACH,OAAe,EACf,SAAS,EACT,OAAO,EACP,GAAG,KAAK,EACT,EAAE,uBAAuB,2CA2BzB;kBAjCQ,kBAAkB;;;AAqC3B,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapsibleTrigger.js","names":[],"sources":["../../../src/components/Collapsible/CollapsibleTrigger.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { Slot } from \"@nuka/utils/slot\";\nimport { useCollapsibleContext } from \"@nuka/components/Collapsible/Collapsible.context\";\n\nexport interface CollapsibleTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n ref?: React.Ref<HTMLButtonElement> | undefined;\n asChild?: boolean;\n}\n\nfunction CollapsibleTrigger({\n ref,\n asChild = false,\n className,\n onClick,\n ...props\n}: CollapsibleTriggerProps) {\n const { open, onOpenChange, contentId, triggerId, disabled } =\n useCollapsibleContext();\n\n const handleClick = (e: React.MouseEvent<HTMLButtonElement>) => {\n onOpenChange(!open);\n onClick?.(e);\n };\n\n const Comp = asChild ? Slot : \"button\";\n\n return (\n <Comp\n ref={ref}\n type={asChild ? undefined : \"button\"}\n id={triggerId}\n aria-expanded={open}\n aria-controls={contentId}\n disabled={disabled}\n aria-disabled={disabled || undefined}\n data-state={open ? \"open\" : \"closed\"}\n className={className}\n onClick={handleClick}\n {...props}\n />\n );\n}\n\nCollapsibleTrigger.displayName = \"CollapsibleTrigger\";\n\nexport { CollapsibleTrigger };\n"],"mappings":";;;;;;AAUA,SAAS,EAAmB,EAC1B,QACA,aAAU,IACV,cACA,YACA,GAAG,KACuB;CAC1B,IAAM,EAAE,SAAM,iBAAc,cAAW,cAAW,gBAChD,GAAuB;AASzB,QACE,kBAHW,IAAU,IAAO,UAG5B;EACO;EACL,MAAM,IAAU,KAAA,IAAY;EAC5B,IAAI;EACJ,iBAAe;EACf,iBAAe;EACL;EACV,iBAAe,KAAY,KAAA;EAC3B,cAAY,IAAO,SAAS;EACjB;EACX,
|
|
1
|
+
{"version":3,"file":"CollapsibleTrigger.js","names":[],"sources":["../../../src/components/Collapsible/CollapsibleTrigger.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { Slot } from \"@nuka/utils/slot\";\nimport { useCollapsibleContext } from \"@nuka/components/Collapsible/Collapsible.context\";\n\nexport interface CollapsibleTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n ref?: React.Ref<HTMLButtonElement> | undefined;\n asChild?: boolean;\n}\n\nfunction CollapsibleTrigger({\n ref,\n asChild = false,\n className,\n onClick,\n ...props\n}: CollapsibleTriggerProps) {\n const { open, onOpenChange, contentId, triggerId, disabled } =\n useCollapsibleContext();\n\n const handleClick = (e: React.MouseEvent<HTMLButtonElement>) => {\n onOpenChange(!open);\n onClick?.(e);\n };\n\n const Comp = asChild ? Slot : \"button\";\n\n return (\n <Comp\n ref={ref}\n type={asChild ? undefined : \"button\"}\n id={triggerId}\n aria-expanded={open}\n aria-controls={contentId}\n disabled={disabled}\n aria-disabled={disabled || undefined}\n data-slot=\"trigger\"\n data-state={open ? \"open\" : \"closed\"}\n className={className}\n onClick={handleClick}\n {...props}\n />\n );\n}\n\nCollapsibleTrigger.displayName = \"CollapsibleTrigger\";\n\nexport { CollapsibleTrigger };\n"],"mappings":";;;;;;AAUA,SAAS,EAAmB,EAC1B,QACA,aAAU,IACV,cACA,YACA,GAAG,KACuB;CAC1B,IAAM,EAAE,SAAM,iBAAc,cAAW,cAAW,gBAChD,GAAuB;AASzB,QACE,kBAHW,IAAU,IAAO,UAG5B;EACO;EACL,MAAM,IAAU,KAAA,IAAY;EAC5B,IAAI;EACJ,iBAAe;EACf,iBAAe;EACL;EACV,iBAAe,KAAY,KAAA;EAC3B,aAAU;EACV,cAAY,IAAO,SAAS;EACjB;EACX,UAnBiB,MAA2C;AAE9D,GADA,EAAa,CAAC,EAAK,EACnB,IAAU,EAAE;;EAkBV,GAAI;EACJ,CAAA;;AAIN,EAAmB,cAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/cn.cjs`),n=require(`../../utils/portal.cjs`),r=require(`./Combobox.context.cjs`);let i=require(`react`);i=e.__toESM(i,1);let a=require(`react/jsx-runtime`);function o({ref:e,className:i,children:o}){let s=r.useComboboxContext();return s.open?(0,a.jsx)(n.Portal,{children:(0,a.jsx)(`div`,{ref:t=>{typeof e==`function`?e(t):e!=null&&(e.current=t),s.refs.setFloating(t)},style:s.floatingStyles
|
|
1
|
+
"use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/cn.cjs`),n=require(`../../utils/portal.cjs`),r=require(`./Combobox.context.cjs`);let i=require(`react`);i=e.__toESM(i,1);let a=require(`react/jsx-runtime`);function o({ref:e,className:i,children:o}){let s=r.useComboboxContext();return s.open?(0,a.jsx)(n.Portal,{children:(0,a.jsx)(`div`,{ref:t=>{typeof e==`function`?e(t):e!=null&&(e.current=t),s.refs.setFloating(t)},style:s.floatingStyles,"data-slot":`content`,...s.getFloatingProps(),className:t.cn(`z-(--nuka-z-dropdown)`,`bg-(--nuka-bg-base)`,`border border-(--nuka-border-base)`,`rounded-(--radius-md)`,`shadow-(--nuka-shadow-overlay)`,`overflow-hidden`,i),children:o})}):(0,a.jsx)(`div`,{ref:e,"data-slot":`content`,hidden:!0,children:o})}o.displayName=`ComboboxContent`,exports.ComboboxContent=o;
|
|
2
2
|
//# sourceMappingURL=ComboboxContent.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxContent.cjs","names":[],"sources":["../../../src/components/Combobox/ComboboxContent.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { Portal } from \"@nuka/utils/portal\";\nimport type { ComboboxContentProps } from \"@nuka/components/Combobox/Combobox.types\";\nimport { useComboboxContext } from \"@nuka/components/Combobox/Combobox.context\";\n\nfunction ComboboxContent({ ref, className, children }: ComboboxContentProps) {\n const ctx = useComboboxContext();\n\n // When closed, render children in a hidden container so ComboboxOption\n // can register labels for the trigger to display. When open, render\n // in a Portal with Floating UI positioning.\n if (!ctx.open) {\n return (\n <div ref={ref} hidden>\n {children}\n </div>\n );\n }\n\n return (\n <Portal>\n <div\n ref={(node) => {\n if (typeof ref === \"function\") ref(node);\n else if (ref != null) ref.current = node;\n ctx.refs.setFloating(node);\n }}\n style={ctx.floatingStyles}\n {...ctx.getFloatingProps()}\n className={cn(\n \"z-(--nuka-z-dropdown)\",\n \"bg-(--nuka-bg-base)\",\n \"border border-(--nuka-border-base)\",\n \"rounded-(--radius-md)\",\n \"shadow-(--nuka-shadow-overlay)\",\n \"overflow-hidden\",\n className,\n )}\n >\n {children}\n </div>\n </Portal>\n );\n}\n\nComboboxContent.displayName = \"ComboboxContent\";\n\nexport { ComboboxContent };\n"],"mappings":"wPAOA,SAAS,EAAgB,CAAE,MAAK,YAAW,YAAkC,CAC3E,IAAM,EAAM,EAAA,oBAAoB,CAahC,OARK,EAAI,MASP,EAAA,EAAA,KAAC,EAAA,OAAD,CAAA,UACE,EAAA,EAAA,KAAC,MAAD,CACE,IAAM,GAAS,CACT,OAAO,GAAQ,WAAY,EAAI,EAAK,CAC/B,GAAO,OAAM,EAAI,QAAU,GACpC,EAAI,KAAK,YAAY,EAAK,EAE5B,MAAO,EAAI,eACX,GAAI,EAAI,kBAAkB,CAC1B,UAAW,EAAA,GACT,wBACA,sBACA,qCACA,wBACA,iCACA,kBACA,EACD,CAEA,WACG,CAAA,CACC,CAAA,
|
|
1
|
+
{"version":3,"file":"ComboboxContent.cjs","names":[],"sources":["../../../src/components/Combobox/ComboboxContent.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { Portal } from \"@nuka/utils/portal\";\nimport type { ComboboxContentProps } from \"@nuka/components/Combobox/Combobox.types\";\nimport { useComboboxContext } from \"@nuka/components/Combobox/Combobox.context\";\n\nfunction ComboboxContent({ ref, className, children }: ComboboxContentProps) {\n const ctx = useComboboxContext();\n\n // When closed, render children in a hidden container so ComboboxOption\n // can register labels for the trigger to display. When open, render\n // in a Portal with Floating UI positioning.\n if (!ctx.open) {\n return (\n <div ref={ref} data-slot=\"content\" hidden>\n {children}\n </div>\n );\n }\n\n return (\n <Portal>\n <div\n ref={(node) => {\n if (typeof ref === \"function\") ref(node);\n else if (ref != null) ref.current = node;\n ctx.refs.setFloating(node);\n }}\n style={ctx.floatingStyles}\n data-slot=\"content\"\n {...ctx.getFloatingProps()}\n className={cn(\n \"z-(--nuka-z-dropdown)\",\n \"bg-(--nuka-bg-base)\",\n \"border border-(--nuka-border-base)\",\n \"rounded-(--radius-md)\",\n \"shadow-(--nuka-shadow-overlay)\",\n \"overflow-hidden\",\n className,\n )}\n >\n {children}\n </div>\n </Portal>\n );\n}\n\nComboboxContent.displayName = \"ComboboxContent\";\n\nexport { ComboboxContent };\n"],"mappings":"wPAOA,SAAS,EAAgB,CAAE,MAAK,YAAW,YAAkC,CAC3E,IAAM,EAAM,EAAA,oBAAoB,CAahC,OARK,EAAI,MASP,EAAA,EAAA,KAAC,EAAA,OAAD,CAAA,UACE,EAAA,EAAA,KAAC,MAAD,CACE,IAAM,GAAS,CACT,OAAO,GAAQ,WAAY,EAAI,EAAK,CAC/B,GAAO,OAAM,EAAI,QAAU,GACpC,EAAI,KAAK,YAAY,EAAK,EAE5B,MAAO,EAAI,eACX,YAAU,UACV,GAAI,EAAI,kBAAkB,CAC1B,UAAW,EAAA,GACT,wBACA,sBACA,qCACA,wBACA,iCACA,kBACA,EACD,CAEA,WACG,CAAA,CACC,CAAA,EA7BP,EAAA,EAAA,KAAC,MAAD,CAAU,MAAK,YAAU,UAAU,OAAA,GAChC,WACG,CAAA,CA+BZ,EAAgB,YAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxContent.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/ComboboxContent.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAGrF,iBAAS,eAAe,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"ComboboxContent.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/ComboboxContent.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAGrF,iBAAS,eAAe,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,oBAAoB,2CAuC1E;kBAvCQ,eAAe;;;AA2CxB,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -12,11 +12,13 @@ function i({ ref: i, className: a, children: o }) {
|
|
|
12
12
|
typeof i == "function" ? i(e) : i != null && (i.current = e), s.refs.setFloating(e);
|
|
13
13
|
},
|
|
14
14
|
style: s.floatingStyles,
|
|
15
|
+
"data-slot": "content",
|
|
15
16
|
...s.getFloatingProps(),
|
|
16
17
|
className: e("z-(--nuka-z-dropdown)", "bg-(--nuka-bg-base)", "border border-(--nuka-border-base)", "rounded-(--radius-md)", "shadow-(--nuka-shadow-overlay)", "overflow-hidden", a),
|
|
17
18
|
children: o
|
|
18
19
|
}) }) : /* @__PURE__ */ r("div", {
|
|
19
20
|
ref: i,
|
|
21
|
+
"data-slot": "content",
|
|
20
22
|
hidden: !0,
|
|
21
23
|
children: o
|
|
22
24
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxContent.js","names":[],"sources":["../../../src/components/Combobox/ComboboxContent.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { Portal } from \"@nuka/utils/portal\";\nimport type { ComboboxContentProps } from \"@nuka/components/Combobox/Combobox.types\";\nimport { useComboboxContext } from \"@nuka/components/Combobox/Combobox.context\";\n\nfunction ComboboxContent({ ref, className, children }: ComboboxContentProps) {\n const ctx = useComboboxContext();\n\n // When closed, render children in a hidden container so ComboboxOption\n // can register labels for the trigger to display. When open, render\n // in a Portal with Floating UI positioning.\n if (!ctx.open) {\n return (\n <div ref={ref} hidden>\n {children}\n </div>\n );\n }\n\n return (\n <Portal>\n <div\n ref={(node) => {\n if (typeof ref === \"function\") ref(node);\n else if (ref != null) ref.current = node;\n ctx.refs.setFloating(node);\n }}\n style={ctx.floatingStyles}\n {...ctx.getFloatingProps()}\n className={cn(\n \"z-(--nuka-z-dropdown)\",\n \"bg-(--nuka-bg-base)\",\n \"border border-(--nuka-border-base)\",\n \"rounded-(--radius-md)\",\n \"shadow-(--nuka-shadow-overlay)\",\n \"overflow-hidden\",\n className,\n )}\n >\n {children}\n </div>\n </Portal>\n );\n}\n\nComboboxContent.displayName = \"ComboboxContent\";\n\nexport { ComboboxContent };\n"],"mappings":";;;;;;;AAOA,SAAS,EAAgB,EAAE,QAAK,cAAW,eAAkC;CAC3E,IAAM,IAAM,GAAoB;AAahC,QARK,EAAI,OASP,kBAAC,GAAD,EAAA,UACE,kBAAC,OAAD;EACE,MAAM,MAAS;AAGb,GAFI,OAAO,KAAQ,aAAY,EAAI,EAAK,GAC/B,KAAO,SAAM,EAAI,UAAU,IACpC,EAAI,KAAK,YAAY,EAAK;;EAE5B,OAAO,EAAI;EACX,GAAI,EAAI,kBAAkB;EAC1B,WAAW,EACT,yBACA,uBACA,sCACA,yBACA,kCACA,mBACA,EACD;EAEA;EACG,CAAA,EACC,CAAA,
|
|
1
|
+
{"version":3,"file":"ComboboxContent.js","names":[],"sources":["../../../src/components/Combobox/ComboboxContent.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { Portal } from \"@nuka/utils/portal\";\nimport type { ComboboxContentProps } from \"@nuka/components/Combobox/Combobox.types\";\nimport { useComboboxContext } from \"@nuka/components/Combobox/Combobox.context\";\n\nfunction ComboboxContent({ ref, className, children }: ComboboxContentProps) {\n const ctx = useComboboxContext();\n\n // When closed, render children in a hidden container so ComboboxOption\n // can register labels for the trigger to display. When open, render\n // in a Portal with Floating UI positioning.\n if (!ctx.open) {\n return (\n <div ref={ref} data-slot=\"content\" hidden>\n {children}\n </div>\n );\n }\n\n return (\n <Portal>\n <div\n ref={(node) => {\n if (typeof ref === \"function\") ref(node);\n else if (ref != null) ref.current = node;\n ctx.refs.setFloating(node);\n }}\n style={ctx.floatingStyles}\n data-slot=\"content\"\n {...ctx.getFloatingProps()}\n className={cn(\n \"z-(--nuka-z-dropdown)\",\n \"bg-(--nuka-bg-base)\",\n \"border border-(--nuka-border-base)\",\n \"rounded-(--radius-md)\",\n \"shadow-(--nuka-shadow-overlay)\",\n \"overflow-hidden\",\n className,\n )}\n >\n {children}\n </div>\n </Portal>\n );\n}\n\nComboboxContent.displayName = \"ComboboxContent\";\n\nexport { ComboboxContent };\n"],"mappings":";;;;;;;AAOA,SAAS,EAAgB,EAAE,QAAK,cAAW,eAAkC;CAC3E,IAAM,IAAM,GAAoB;AAahC,QARK,EAAI,OASP,kBAAC,GAAD,EAAA,UACE,kBAAC,OAAD;EACE,MAAM,MAAS;AAGb,GAFI,OAAO,KAAQ,aAAY,EAAI,EAAK,GAC/B,KAAO,SAAM,EAAI,UAAU,IACpC,EAAI,KAAK,YAAY,EAAK;;EAE5B,OAAO,EAAI;EACX,aAAU;EACV,GAAI,EAAI,kBAAkB;EAC1B,WAAW,EACT,yBACA,uBACA,sCACA,yBACA,kCACA,mBACA,EACD;EAEA;EACG,CAAA,EACC,CAAA,GA7BP,kBAAC,OAAD;EAAU;EAAK,aAAU;EAAU,QAAA;EAChC;EACG,CAAA;;AA+BZ,EAAgB,cAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/cn.cjs`),n=require(`../Text/Text.cjs`),r=require(`./Combobox.context.cjs`);let i=require(`react`);i=e.__toESM(i,1);let a=require(`react/jsx-runtime`);function o({ref:e,className:i,children:o,...s}){return r.useComboboxContext().visibleCount>0?null:(0,a.jsx)(`div`,{ref:e,role:`presentation`,className:t.cn(`py-(--space-8) text-center`,i)
|
|
1
|
+
"use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/cn.cjs`),n=require(`../Text/Text.cjs`),r=require(`./Combobox.context.cjs`);let i=require(`react`);i=e.__toESM(i,1);let a=require(`react/jsx-runtime`);function o({ref:e,className:i,children:o,...s}){return r.useComboboxContext().visibleCount>0?null:(0,a.jsx)(`div`,{ref:e,role:`presentation`,className:t.cn(`py-(--space-8) text-center`,i),"data-slot":`empty`,...s,children:(0,a.jsx)(n.Text,{size:`sm`,color:`muted`,children:o})})}o.displayName=`ComboboxEmpty`,exports.ComboboxEmpty=o;
|
|
2
2
|
//# sourceMappingURL=ComboboxEmpty.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxEmpty.cjs","names":[],"sources":["../../../src/components/Combobox/ComboboxEmpty.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { Text } from \"@nuka/components/Text\";\nimport type { ComboboxEmptyProps } from \"@nuka/components/Combobox/Combobox.types\";\nimport { useComboboxContext } from \"@nuka/components/Combobox/Combobox.context\";\n\nfunction ComboboxEmpty({\n ref,\n className,\n children,\n ...props\n}: ComboboxEmptyProps) {\n const ctx = useComboboxContext();\n\n if (ctx.visibleCount > 0) return null;\n\n return (\n <div\n ref={ref}\n role=\"presentation\"\n className={cn(\"py-(--space-8) text-center\", className)}\n {...props}\n >\n <Text size=\"sm\" color=\"muted\">\n {children}\n </Text>\n </div>\n );\n}\n\nComboboxEmpty.displayName = \"ComboboxEmpty\";\n\nexport { ComboboxEmpty };\n"],"mappings":"kPAOA,SAAS,EAAc,CACrB,MACA,YACA,WACA,GAAG,GACkB,CAKrB,OAJY,EAAA,oBAAoB,CAExB,aAAe,EAAU,MAG/B,EAAA,EAAA,KAAC,MAAD,CACO,MACL,KAAK,eACL,UAAW,EAAA,GAAG,6BAA8B,EAAU,CACtD,GAAI,YAEJ,EAAA,EAAA,KAAC,EAAA,KAAD,CAAM,KAAK,KAAK,MAAM,QACnB,WACI,CAAA,CACH,CAAA,CAIV,EAAc,YAAc"}
|
|
1
|
+
{"version":3,"file":"ComboboxEmpty.cjs","names":[],"sources":["../../../src/components/Combobox/ComboboxEmpty.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { Text } from \"@nuka/components/Text\";\nimport type { ComboboxEmptyProps } from \"@nuka/components/Combobox/Combobox.types\";\nimport { useComboboxContext } from \"@nuka/components/Combobox/Combobox.context\";\n\nfunction ComboboxEmpty({\n ref,\n className,\n children,\n ...props\n}: ComboboxEmptyProps) {\n const ctx = useComboboxContext();\n\n if (ctx.visibleCount > 0) return null;\n\n return (\n <div\n ref={ref}\n role=\"presentation\"\n className={cn(\"py-(--space-8) text-center\", className)}\n data-slot=\"empty\"\n {...props}\n >\n <Text size=\"sm\" color=\"muted\">\n {children}\n </Text>\n </div>\n );\n}\n\nComboboxEmpty.displayName = \"ComboboxEmpty\";\n\nexport { ComboboxEmpty };\n"],"mappings":"kPAOA,SAAS,EAAc,CACrB,MACA,YACA,WACA,GAAG,GACkB,CAKrB,OAJY,EAAA,oBAAoB,CAExB,aAAe,EAAU,MAG/B,EAAA,EAAA,KAAC,MAAD,CACO,MACL,KAAK,eACL,UAAW,EAAA,GAAG,6BAA8B,EAAU,CACtD,YAAU,QACV,GAAI,YAEJ,EAAA,EAAA,KAAC,EAAA,KAAD,CAAM,KAAK,KAAK,MAAM,QACnB,WACI,CAAA,CACH,CAAA,CAIV,EAAc,YAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxEmpty.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/ComboboxEmpty.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAGnF,iBAAS,aAAa,CAAC,EACrB,GAAG,EACH,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"ComboboxEmpty.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/ComboboxEmpty.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAGnF,iBAAS,aAAa,CAAC,EACrB,GAAG,EACH,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,kDAkBpB;kBAvBQ,aAAa;;;AA2BtB,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxEmpty.js","names":[],"sources":["../../../src/components/Combobox/ComboboxEmpty.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { Text } from \"@nuka/components/Text\";\nimport type { ComboboxEmptyProps } from \"@nuka/components/Combobox/Combobox.types\";\nimport { useComboboxContext } from \"@nuka/components/Combobox/Combobox.context\";\n\nfunction ComboboxEmpty({\n ref,\n className,\n children,\n ...props\n}: ComboboxEmptyProps) {\n const ctx = useComboboxContext();\n\n if (ctx.visibleCount > 0) return null;\n\n return (\n <div\n ref={ref}\n role=\"presentation\"\n className={cn(\"py-(--space-8) text-center\", className)}\n {...props}\n >\n <Text size=\"sm\" color=\"muted\">\n {children}\n </Text>\n </div>\n );\n}\n\nComboboxEmpty.displayName = \"ComboboxEmpty\";\n\nexport { ComboboxEmpty };\n"],"mappings":";;;;;;;AAOA,SAAS,EAAc,EACrB,QACA,cACA,aACA,GAAG,KACkB;AAKrB,QAJY,GAAoB,CAExB,eAAe,IAAU,OAG/B,kBAAC,OAAD;EACO;EACL,MAAK;EACL,WAAW,EAAG,8BAA8B,EAAU;EACtD,GAAI;YAEJ,kBAAC,GAAD;GAAM,MAAK;GAAK,OAAM;GACnB;GACI,CAAA;EACH,CAAA;;AAIV,EAAc,cAAc"}
|
|
1
|
+
{"version":3,"file":"ComboboxEmpty.js","names":[],"sources":["../../../src/components/Combobox/ComboboxEmpty.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { Text } from \"@nuka/components/Text\";\nimport type { ComboboxEmptyProps } from \"@nuka/components/Combobox/Combobox.types\";\nimport { useComboboxContext } from \"@nuka/components/Combobox/Combobox.context\";\n\nfunction ComboboxEmpty({\n ref,\n className,\n children,\n ...props\n}: ComboboxEmptyProps) {\n const ctx = useComboboxContext();\n\n if (ctx.visibleCount > 0) return null;\n\n return (\n <div\n ref={ref}\n role=\"presentation\"\n className={cn(\"py-(--space-8) text-center\", className)}\n data-slot=\"empty\"\n {...props}\n >\n <Text size=\"sm\" color=\"muted\">\n {children}\n </Text>\n </div>\n );\n}\n\nComboboxEmpty.displayName = \"ComboboxEmpty\";\n\nexport { ComboboxEmpty };\n"],"mappings":";;;;;;;AAOA,SAAS,EAAc,EACrB,QACA,cACA,aACA,GAAG,KACkB;AAKrB,QAJY,GAAoB,CAExB,eAAe,IAAU,OAG/B,kBAAC,OAAD;EACO;EACL,MAAK;EACL,WAAW,EAAG,8BAA8B,EAAU;EACtD,aAAU;EACV,GAAI;YAEJ,kBAAC,GAAD;GAAM,MAAK;GAAK,OAAM;GACnB;GACI,CAAA;EACH,CAAA;;AAIV,EAAc,cAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/cn.cjs`),n=require(`../Text/Text.cjs`),r=require(`./Combobox.context.cjs`);let i=require(`react`);i=e.__toESM(i,1);let a=require(`react/jsx-runtime`);function o({ref:e,label:o,className:s,children:c,...l}){let u=i.useId(),d=i.useRef(null),[f,p]=i.useState(!0),m=r.useComboboxContext(),h=i.useCallback(t=>{d.current=t,typeof e==`function`?e(t):e!=null&&(e.current=t)},[e]);return i.useEffect(()=>{d.current!=null&&p(d.current.querySelector(`[role="option"]:not([hidden])`)!==null)},[m.filterText]),(0,a.jsxs)(`div`,{ref:h,role:`group`,"aria-labelledby":o==null?void 0:u,hidden:!f||void 0,className:t.cn(s)
|
|
1
|
+
"use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/cn.cjs`),n=require(`../Text/Text.cjs`),r=require(`./Combobox.context.cjs`);let i=require(`react`);i=e.__toESM(i,1);let a=require(`react/jsx-runtime`);function o({ref:e,label:o,className:s,children:c,...l}){let u=i.useId(),d=i.useRef(null),[f,p]=i.useState(!0),m=r.useComboboxContext(),h=i.useCallback(t=>{d.current=t,typeof e==`function`?e(t):e!=null&&(e.current=t)},[e]);return i.useEffect(()=>{d.current!=null&&p(d.current.querySelector(`[role="option"]:not([hidden])`)!==null)},[m.filterText]),(0,a.jsxs)(`div`,{ref:h,role:`group`,"aria-labelledby":o==null?void 0:u,hidden:!f||void 0,className:t.cn(s),"data-slot":`group`,...l,children:[o!=null&&(0,a.jsx)(n.Text,{as:`div`,size:`xs`,weight:`medium`,color:`muted`,id:u,role:`presentation`,className:`px-(--space-3) py-(--space-2)`,children:o}),c]})}o.displayName=`ComboboxGroup`,exports.ComboboxGroup=o;
|
|
2
2
|
//# sourceMappingURL=ComboboxGroup.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxGroup.cjs","names":[],"sources":["../../../src/components/Combobox/ComboboxGroup.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { Text } from \"@nuka/components/Text\";\nimport type { ComboboxGroupProps } from \"@nuka/components/Combobox/Combobox.types\";\nimport { useComboboxContext } from \"@nuka/components/Combobox/Combobox.context\";\n\nfunction ComboboxGroup({\n ref,\n label,\n className,\n children,\n ...props\n}: ComboboxGroupProps) {\n const headingId = React.useId();\n const groupRef = React.useRef<HTMLDivElement>(null);\n const [hasVisibleItems, setHasVisibleItems] = React.useState(true);\n const ctx = useComboboxContext();\n\n const composedRef = React.useCallback(\n (node: HTMLDivElement | null) => {\n groupRef.current = node;\n if (typeof ref === \"function\") ref(node);\n else if (ref != null) ref.current = node;\n },\n [ref],\n );\n\n React.useEffect(() => {\n if (groupRef.current == null) return;\n const visible =\n groupRef.current.querySelector('[role=\"option\"]:not([hidden])') !== null;\n setHasVisibleItems(visible);\n }, [ctx.filterText]);\n\n return (\n <div\n ref={composedRef}\n role=\"group\"\n aria-labelledby={label != null ? headingId : undefined}\n hidden={!hasVisibleItems || undefined}\n className={cn(className)}\n {...props}\n >\n {label != null && (\n <Text\n as=\"div\"\n size=\"xs\"\n weight=\"medium\"\n color=\"muted\"\n id={headingId}\n role=\"presentation\"\n className=\"px-(--space-3) py-(--space-2)\"\n >\n {label}\n </Text>\n )}\n {children}\n </div>\n );\n}\n\nComboboxGroup.displayName = \"ComboboxGroup\";\n\nexport { ComboboxGroup };\n"],"mappings":"kPAOA,SAAS,EAAc,CACrB,MACA,QACA,YACA,WACA,GAAG,GACkB,CACrB,IAAM,EAAY,EAAM,OAAO,CACzB,EAAW,EAAM,OAAuB,KAAK,CAC7C,CAAC,EAAiB,GAAsB,EAAM,SAAS,GAAK,CAC5D,EAAM,EAAA,oBAAoB,CAE1B,EAAc,EAAM,YACvB,GAAgC,CAC/B,EAAS,QAAU,EACf,OAAO,GAAQ,WAAY,EAAI,EAAK,CAC/B,GAAO,OAAM,EAAI,QAAU,IAEtC,CAAC,EAAI,CACN,CASD,OAPA,EAAM,cAAgB,CAChB,EAAS,SAAW,MAGxB,EADE,EAAS,QAAQ,cAAc,gCAAgC,GAAK,KAC3C,EAC1B,CAAC,EAAI,WAAW,CAAC,EAGlB,EAAA,EAAA,MAAC,MAAD,CACE,IAAK,EACL,KAAK,QACL,kBAAiB,GAAS,KAAmB,IAAA,GAAZ,EACjC,OAAQ,CAAC,GAAmB,IAAA,GAC5B,UAAW,EAAA,GAAG,EAAU,CACxB,GAAI,
|
|
1
|
+
{"version":3,"file":"ComboboxGroup.cjs","names":[],"sources":["../../../src/components/Combobox/ComboboxGroup.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { Text } from \"@nuka/components/Text\";\nimport type { ComboboxGroupProps } from \"@nuka/components/Combobox/Combobox.types\";\nimport { useComboboxContext } from \"@nuka/components/Combobox/Combobox.context\";\n\nfunction ComboboxGroup({\n ref,\n label,\n className,\n children,\n ...props\n}: ComboboxGroupProps) {\n const headingId = React.useId();\n const groupRef = React.useRef<HTMLDivElement>(null);\n const [hasVisibleItems, setHasVisibleItems] = React.useState(true);\n const ctx = useComboboxContext();\n\n const composedRef = React.useCallback(\n (node: HTMLDivElement | null) => {\n groupRef.current = node;\n if (typeof ref === \"function\") ref(node);\n else if (ref != null) ref.current = node;\n },\n [ref],\n );\n\n React.useEffect(() => {\n if (groupRef.current == null) return;\n const visible =\n groupRef.current.querySelector('[role=\"option\"]:not([hidden])') !== null;\n setHasVisibleItems(visible);\n }, [ctx.filterText]);\n\n return (\n <div\n ref={composedRef}\n role=\"group\"\n aria-labelledby={label != null ? headingId : undefined}\n hidden={!hasVisibleItems || undefined}\n className={cn(className)}\n data-slot=\"group\"\n {...props}\n >\n {label != null && (\n <Text\n as=\"div\"\n size=\"xs\"\n weight=\"medium\"\n color=\"muted\"\n id={headingId}\n role=\"presentation\"\n className=\"px-(--space-3) py-(--space-2)\"\n >\n {label}\n </Text>\n )}\n {children}\n </div>\n );\n}\n\nComboboxGroup.displayName = \"ComboboxGroup\";\n\nexport { ComboboxGroup };\n"],"mappings":"kPAOA,SAAS,EAAc,CACrB,MACA,QACA,YACA,WACA,GAAG,GACkB,CACrB,IAAM,EAAY,EAAM,OAAO,CACzB,EAAW,EAAM,OAAuB,KAAK,CAC7C,CAAC,EAAiB,GAAsB,EAAM,SAAS,GAAK,CAC5D,EAAM,EAAA,oBAAoB,CAE1B,EAAc,EAAM,YACvB,GAAgC,CAC/B,EAAS,QAAU,EACf,OAAO,GAAQ,WAAY,EAAI,EAAK,CAC/B,GAAO,OAAM,EAAI,QAAU,IAEtC,CAAC,EAAI,CACN,CASD,OAPA,EAAM,cAAgB,CAChB,EAAS,SAAW,MAGxB,EADE,EAAS,QAAQ,cAAc,gCAAgC,GAAK,KAC3C,EAC1B,CAAC,EAAI,WAAW,CAAC,EAGlB,EAAA,EAAA,MAAC,MAAD,CACE,IAAK,EACL,KAAK,QACL,kBAAiB,GAAS,KAAmB,IAAA,GAAZ,EACjC,OAAQ,CAAC,GAAmB,IAAA,GAC5B,UAAW,EAAA,GAAG,EAAU,CACxB,YAAU,QACV,GAAI,WAPN,CASG,GAAS,OACR,EAAA,EAAA,KAAC,EAAA,KAAD,CACE,GAAG,MACH,KAAK,KACL,OAAO,SACP,MAAM,QACN,GAAI,EACJ,KAAK,eACL,UAAU,yCAET,EACI,CAAA,CAER,EACG,GAIV,EAAc,YAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxGroup.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/ComboboxGroup.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAGnF,iBAAS,aAAa,CAAC,EACrB,GAAG,EACH,KAAK,EACL,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"ComboboxGroup.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/ComboboxGroup.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAGnF,iBAAS,aAAa,CAAC,EACrB,GAAG,EACH,KAAK,EACL,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,2CAgDpB;kBAtDQ,aAAa;;;AA0DtB,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxGroup.js","names":[],"sources":["../../../src/components/Combobox/ComboboxGroup.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { Text } from \"@nuka/components/Text\";\nimport type { ComboboxGroupProps } from \"@nuka/components/Combobox/Combobox.types\";\nimport { useComboboxContext } from \"@nuka/components/Combobox/Combobox.context\";\n\nfunction ComboboxGroup({\n ref,\n label,\n className,\n children,\n ...props\n}: ComboboxGroupProps) {\n const headingId = React.useId();\n const groupRef = React.useRef<HTMLDivElement>(null);\n const [hasVisibleItems, setHasVisibleItems] = React.useState(true);\n const ctx = useComboboxContext();\n\n const composedRef = React.useCallback(\n (node: HTMLDivElement | null) => {\n groupRef.current = node;\n if (typeof ref === \"function\") ref(node);\n else if (ref != null) ref.current = node;\n },\n [ref],\n );\n\n React.useEffect(() => {\n if (groupRef.current == null) return;\n const visible =\n groupRef.current.querySelector('[role=\"option\"]:not([hidden])') !== null;\n setHasVisibleItems(visible);\n }, [ctx.filterText]);\n\n return (\n <div\n ref={composedRef}\n role=\"group\"\n aria-labelledby={label != null ? headingId : undefined}\n hidden={!hasVisibleItems || undefined}\n className={cn(className)}\n {...props}\n >\n {label != null && (\n <Text\n as=\"div\"\n size=\"xs\"\n weight=\"medium\"\n color=\"muted\"\n id={headingId}\n role=\"presentation\"\n className=\"px-(--space-3) py-(--space-2)\"\n >\n {label}\n </Text>\n )}\n {children}\n </div>\n );\n}\n\nComboboxGroup.displayName = \"ComboboxGroup\";\n\nexport { ComboboxGroup };\n"],"mappings":";;;;;;;AAOA,SAAS,EAAc,EACrB,QACA,UACA,cACA,aACA,GAAG,KACkB;CACrB,IAAM,IAAY,EAAM,OAAO,EACzB,IAAW,EAAM,OAAuB,KAAK,EAC7C,CAAC,GAAiB,KAAsB,EAAM,SAAS,GAAK,EAC5D,IAAM,GAAoB,EAE1B,IAAc,EAAM,aACvB,MAAgC;AAE/B,EADA,EAAS,UAAU,GACf,OAAO,KAAQ,aAAY,EAAI,EAAK,GAC/B,KAAO,SAAM,EAAI,UAAU;IAEtC,CAAC,EAAI,CACN;AASD,QAPA,EAAM,gBAAgB;AAChB,IAAS,WAAW,QAGxB,EADE,EAAS,QAAQ,cAAc,kCAAgC,KAAK,KAC3C;IAC1B,CAAC,EAAI,WAAW,CAAC,EAGlB,kBAAC,OAAD;EACE,KAAK;EACL,MAAK;EACL,mBAAiB,KAAS,OAAmB,KAAA,IAAZ;EACjC,QAAQ,CAAC,KAAmB,KAAA;EAC5B,WAAW,EAAG,EAAU;EACxB,GAAI;
|
|
1
|
+
{"version":3,"file":"ComboboxGroup.js","names":[],"sources":["../../../src/components/Combobox/ComboboxGroup.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { Text } from \"@nuka/components/Text\";\nimport type { ComboboxGroupProps } from \"@nuka/components/Combobox/Combobox.types\";\nimport { useComboboxContext } from \"@nuka/components/Combobox/Combobox.context\";\n\nfunction ComboboxGroup({\n ref,\n label,\n className,\n children,\n ...props\n}: ComboboxGroupProps) {\n const headingId = React.useId();\n const groupRef = React.useRef<HTMLDivElement>(null);\n const [hasVisibleItems, setHasVisibleItems] = React.useState(true);\n const ctx = useComboboxContext();\n\n const composedRef = React.useCallback(\n (node: HTMLDivElement | null) => {\n groupRef.current = node;\n if (typeof ref === \"function\") ref(node);\n else if (ref != null) ref.current = node;\n },\n [ref],\n );\n\n React.useEffect(() => {\n if (groupRef.current == null) return;\n const visible =\n groupRef.current.querySelector('[role=\"option\"]:not([hidden])') !== null;\n setHasVisibleItems(visible);\n }, [ctx.filterText]);\n\n return (\n <div\n ref={composedRef}\n role=\"group\"\n aria-labelledby={label != null ? headingId : undefined}\n hidden={!hasVisibleItems || undefined}\n className={cn(className)}\n data-slot=\"group\"\n {...props}\n >\n {label != null && (\n <Text\n as=\"div\"\n size=\"xs\"\n weight=\"medium\"\n color=\"muted\"\n id={headingId}\n role=\"presentation\"\n className=\"px-(--space-3) py-(--space-2)\"\n >\n {label}\n </Text>\n )}\n {children}\n </div>\n );\n}\n\nComboboxGroup.displayName = \"ComboboxGroup\";\n\nexport { ComboboxGroup };\n"],"mappings":";;;;;;;AAOA,SAAS,EAAc,EACrB,QACA,UACA,cACA,aACA,GAAG,KACkB;CACrB,IAAM,IAAY,EAAM,OAAO,EACzB,IAAW,EAAM,OAAuB,KAAK,EAC7C,CAAC,GAAiB,KAAsB,EAAM,SAAS,GAAK,EAC5D,IAAM,GAAoB,EAE1B,IAAc,EAAM,aACvB,MAAgC;AAE/B,EADA,EAAS,UAAU,GACf,OAAO,KAAQ,aAAY,EAAI,EAAK,GAC/B,KAAO,SAAM,EAAI,UAAU;IAEtC,CAAC,EAAI,CACN;AASD,QAPA,EAAM,gBAAgB;AAChB,IAAS,WAAW,QAGxB,EADE,EAAS,QAAQ,cAAc,kCAAgC,KAAK,KAC3C;IAC1B,CAAC,EAAI,WAAW,CAAC,EAGlB,kBAAC,OAAD;EACE,KAAK;EACL,MAAK;EACL,mBAAiB,KAAS,OAAmB,KAAA,IAAZ;EACjC,QAAQ,CAAC,KAAmB,KAAA;EAC5B,WAAW,EAAG,EAAU;EACxB,aAAU;EACV,GAAI;YAPN,CASG,KAAS,QACR,kBAAC,GAAD;GACE,IAAG;GACH,MAAK;GACL,QAAO;GACP,OAAM;GACN,IAAI;GACJ,MAAK;GACL,WAAU;aAET;GACI,CAAA,EAER,EACG;;;AAIV,EAAc,cAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/cn.cjs`),n=require(`../../utils/roving-index.cjs`),r=require(`../Icon/Icon.cjs`),i=require(`./Combobox.context.cjs`),a=require(`../../utils/scroll-into-view-safe.cjs`),o=require(`./Combobox.utils.cjs`);let s=require(`react`);s=e.__toESM(s,1);let c=require(`react/jsx-runtime`);function l({ref:e,className:l,...u}){let d=i.useComboboxContext(),f=s.useRef(null),p=s.useCallback(t=>{f.current=t,typeof e==`function`?e(t):e!=null&&(e.current=t)},[e]);s.useEffect(()=>{f.current?.focus();let e=d.highlightOnOpenRef.current;if(e!=null){d.highlightOnOpenRef.current=null;let t=o.getNavigableOptions(d.listRef);if(t.length>0){let n=e===`first`?t[0]:t[t.length-1];n!=null&&(d.setActiveDescendantId(n.id),a.scrollIntoViewSafe(n))}}},[]);let m=e=>{let t=o.getNavigableOptions(d.listRef),r=t.findIndex(e=>e.id===d.activeDescendantId),i=n.getRovingIndex(e.key,r,t.length,`vertical`);if(i!==void 0){e.preventDefault();let n=t[i];n!=null&&(d.setActiveDescendantId(n.id),a.scrollIntoViewSafe(n));return}switch(e.key){case`Enter`:if(e.preventDefault(),d.activeDescendantId!=null){let e=document.getElementById(d.activeDescendantId);e!=null&&e.getAttribute(`aria-disabled`)!==`true`&&e.click()}else d.freeText&&d.filterText!==``&&(d.onValueChange(d.filterText),d.onOpenChange(!1),d.triggerRef.current?.focus());break;case`Escape`:d.onOpenChange(!1),d.triggerRef.current?.focus();break;case`Tab`:d.triggerRef.current?.focus(),d.onOpenChange(!1);break;default:break}},h=e=>{d.setFilterText(e.target.value),d.setActiveDescendantId(void 0)};return(0,c.jsxs)(`div`,{className:t.cn(`flex items-center gap-(--space-2) px-(--space-3)`,`border-b border-(--nuka-border-base)`),children:[(0,c.jsx)(r.Icon,{size:`sm`,color:`muted`,children:(0,c.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,c.jsx)(`circle`,{cx:`11`,cy:`11`,r:`8`}),(0,c.jsx)(`path`,{d:`m21 21-4.3-4.3`})]})}),(0,c.jsx)(`input`,{...u,ref:p,id:d.inputId,role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":d.open,"aria-controls":d.listboxId,"aria-activedescendant":d.activeDescendantId,value:d.filterText,onChange:h,onKeyDown:m,className:t.cn(`flex-1 bg-transparent py-(--space-3)`,`text-sm text-(--nuka-text-base)`,`placeholder:text-(--nuka-text-muted)`,`outline-none`,l)})]})}l.displayName=`ComboboxInput`,exports.ComboboxInput=l;
|
|
1
|
+
"use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/cn.cjs`),n=require(`../../utils/roving-index.cjs`),r=require(`../Icon/Icon.cjs`),i=require(`./Combobox.context.cjs`),a=require(`../../utils/scroll-into-view-safe.cjs`),o=require(`./Combobox.utils.cjs`);let s=require(`react`);s=e.__toESM(s,1);let c=require(`react/jsx-runtime`);function l({ref:e,className:l,...u}){let d=i.useComboboxContext(),f=s.useRef(null),p=s.useCallback(t=>{f.current=t,typeof e==`function`?e(t):e!=null&&(e.current=t)},[e]);s.useEffect(()=>{f.current?.focus();let e=d.highlightOnOpenRef.current;if(e!=null){d.highlightOnOpenRef.current=null;let t=o.getNavigableOptions(d.listRef);if(t.length>0){let n=e===`first`?t[0]:t[t.length-1];n!=null&&(d.setActiveDescendantId(n.id),a.scrollIntoViewSafe(n))}}},[]);let m=e=>{let t=o.getNavigableOptions(d.listRef),r=t.findIndex(e=>e.id===d.activeDescendantId),i=n.getRovingIndex(e.key,r,t.length,`vertical`);if(i!==void 0){e.preventDefault();let n=t[i];n!=null&&(d.setActiveDescendantId(n.id),a.scrollIntoViewSafe(n));return}switch(e.key){case`Enter`:if(e.preventDefault(),d.activeDescendantId!=null){let e=document.getElementById(d.activeDescendantId);e!=null&&e.getAttribute(`aria-disabled`)!==`true`&&e.click()}else d.freeText&&d.filterText!==``&&(d.onValueChange(d.filterText),d.onOpenChange(!1),d.triggerRef.current?.focus());break;case`Escape`:d.onOpenChange(!1),d.triggerRef.current?.focus();break;case`Tab`:d.triggerRef.current?.focus(),d.onOpenChange(!1);break;default:break}},h=e=>{d.setFilterText(e.target.value),d.setActiveDescendantId(void 0)};return(0,c.jsxs)(`div`,{"data-slot":`input-wrapper`,className:t.cn(`flex items-center gap-(--space-2) px-(--space-3)`,`border-b border-(--nuka-border-base)`),children:[(0,c.jsx)(r.Icon,{size:`sm`,color:`muted`,children:(0,c.jsxs)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,c.jsx)(`circle`,{cx:`11`,cy:`11`,r:`8`}),(0,c.jsx)(`path`,{d:`m21 21-4.3-4.3`})]})}),(0,c.jsx)(`input`,{...u,ref:p,id:d.inputId,"data-slot":`input`,role:`combobox`,"aria-autocomplete":`list`,"aria-expanded":d.open,"aria-controls":d.listboxId,"aria-activedescendant":d.activeDescendantId,value:d.filterText,onChange:h,onKeyDown:m,className:t.cn(`flex-1 bg-transparent py-(--space-3)`,`text-sm text-(--nuka-text-base)`,`placeholder:text-(--nuka-text-muted)`,`outline-none`,l)})]})}l.displayName=`ComboboxInput`,exports.ComboboxInput=l;
|
|
2
2
|
//# sourceMappingURL=ComboboxInput.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxInput.cjs","names":[],"sources":["../../../src/components/Combobox/ComboboxInput.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { Icon } from \"@nuka/components/Icon\";\nimport { getRovingIndex } from \"@nuka/utils/roving-index\";\nimport { scrollIntoViewSafe } from \"@nuka/utils/scroll-into-view-safe\";\nimport type { ComboboxInputProps } from \"@nuka/components/Combobox/Combobox.types\";\nimport { useComboboxContext } from \"@nuka/components/Combobox/Combobox.context\";\nimport { getNavigableOptions } from \"@nuka/components/Combobox/Combobox.utils\";\n\nfunction ComboboxInput({ ref, className, ...props }: ComboboxInputProps) {\n const ctx = useComboboxContext();\n const internalRef = React.useRef<HTMLInputElement>(null);\n\n const composedRef = React.useCallback(\n (node: HTMLInputElement | null) => {\n internalRef.current = node;\n if (typeof ref === \"function\") ref(node);\n else if (ref != null) ref.current = node;\n },\n [ref],\n );\n\n // Focus input and apply highlight directive when panel opens.\n // No rAF: by the time useEffect fires, Portal content and callback refs\n // are committed, so the input and option elements are in the DOM.\n // Empty deps: component unmounts on close and remounts on open.\n React.useEffect(() => {\n internalRef.current?.focus();\n\n const dir = ctx.highlightOnOpenRef.current;\n if (dir != null) {\n ctx.highlightOnOpenRef.current = null;\n const items = getNavigableOptions(ctx.listRef);\n if (items.length > 0) {\n const target = dir === \"first\" ? items[0] : items[items.length - 1];\n if (target != null) {\n ctx.setActiveDescendantId(target.id);\n scrollIntoViewSafe(target);\n }\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps -- runs once on mount when panel opens\n }, []);\n\n const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\n const items = getNavigableOptions(ctx.listRef);\n const currentIdx = items.findIndex(\n (el) => el.id === ctx.activeDescendantId,\n );\n const nextIdx = getRovingIndex(e.key, currentIdx, items.length, \"vertical\");\n\n if (nextIdx !== undefined) {\n e.preventDefault();\n const next = items[nextIdx];\n if (next != null) {\n ctx.setActiveDescendantId(next.id);\n scrollIntoViewSafe(next);\n }\n return;\n }\n\n switch (e.key) {\n case \"Enter\": {\n e.preventDefault();\n if (ctx.activeDescendantId != null) {\n const activeEl = document.getElementById(ctx.activeDescendantId);\n if (\n activeEl != null &&\n activeEl.getAttribute(\"aria-disabled\") !== \"true\"\n ) {\n activeEl.click();\n }\n } else if (ctx.freeText && ctx.filterText !== \"\") {\n ctx.onValueChange(ctx.filterText);\n ctx.onOpenChange(false);\n ctx.triggerRef.current?.focus();\n }\n break;\n }\n case \"Escape\": {\n ctx.onOpenChange(false);\n ctx.triggerRef.current?.focus();\n break;\n }\n case \"Tab\": {\n ctx.triggerRef.current?.focus();\n ctx.onOpenChange(false);\n break;\n }\n default:\n break;\n }\n };\n\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n ctx.setFilterText(e.target.value);\n ctx.setActiveDescendantId(undefined);\n };\n\n return (\n <div\n className={cn(\n \"flex items-center gap-(--space-2) px-(--space-3)\",\n \"border-b border-(--nuka-border-base)\",\n )}\n >\n <Icon size=\"sm\" color=\"muted\">\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <circle cx=\"11\" cy=\"11\" r=\"8\" />\n <path d=\"m21 21-4.3-4.3\" />\n </svg>\n </Icon>\n <input\n {...props}\n ref={composedRef}\n id={ctx.inputId}\n role=\"combobox\"\n aria-autocomplete=\"list\"\n aria-expanded={ctx.open}\n aria-controls={ctx.listboxId}\n aria-activedescendant={ctx.activeDescendantId}\n value={ctx.filterText}\n onChange={handleChange}\n onKeyDown={handleKeyDown}\n className={cn(\n \"flex-1 bg-transparent py-(--space-3)\",\n \"text-sm text-(--nuka-text-base)\",\n \"placeholder:text-(--nuka-text-muted)\",\n \"outline-none\",\n className,\n )}\n />\n </div>\n );\n}\n\nComboboxInput.displayName = \"ComboboxInput\";\n\nexport { ComboboxInput };\n"],"mappings":"iXAUA,SAAS,EAAc,CAAE,MAAK,YAAW,GAAG,GAA6B,CACvE,IAAM,EAAM,EAAA,oBAAoB,CAC1B,EAAc,EAAM,OAAyB,KAAK,CAElD,EAAc,EAAM,YACvB,GAAkC,CACjC,EAAY,QAAU,EAClB,OAAO,GAAQ,WAAY,EAAI,EAAK,CAC/B,GAAO,OAAM,EAAI,QAAU,IAEtC,CAAC,EAAI,CACN,CAMD,EAAM,cAAgB,CACpB,EAAY,SAAS,OAAO,CAE5B,IAAM,EAAM,EAAI,mBAAmB,QACnC,GAAI,GAAO,KAAM,CACf,EAAI,mBAAmB,QAAU,KACjC,IAAM,EAAQ,EAAA,oBAAoB,EAAI,QAAQ,CAC9C,GAAI,EAAM,OAAS,EAAG,CACpB,IAAM,EAAS,IAAQ,QAAU,EAAM,GAAK,EAAM,EAAM,OAAS,GAC7D,GAAU,OACZ,EAAI,sBAAsB,EAAO,GAAG,CACpC,EAAA,mBAAmB,EAAO,KAK/B,EAAE,CAAC,CAEN,IAAM,EAAiB,GAA6C,CAClE,IAAM,EAAQ,EAAA,oBAAoB,EAAI,QAAQ,CACxC,EAAa,EAAM,UACtB,GAAO,EAAG,KAAO,EAAI,mBACvB,CACK,EAAU,EAAA,eAAe,EAAE,IAAK,EAAY,EAAM,OAAQ,WAAW,CAE3E,GAAI,IAAY,IAAA,GAAW,CACzB,EAAE,gBAAgB,CAClB,IAAM,EAAO,EAAM,GACf,GAAQ,OACV,EAAI,sBAAsB,EAAK,GAAG,CAClC,EAAA,mBAAmB,EAAK,EAE1B,OAGF,OAAQ,EAAE,IAAV,CACE,IAAK,QAEH,GADA,EAAE,gBAAgB,CACd,EAAI,oBAAsB,KAAM,CAClC,IAAM,EAAW,SAAS,eAAe,EAAI,mBAAmB,CAE9D,GAAY,MACZ,EAAS,aAAa,gBAAgB,GAAK,QAE3C,EAAS,OAAO,MAET,EAAI,UAAY,EAAI,aAAe,KAC5C,EAAI,cAAc,EAAI,WAAW,CACjC,EAAI,aAAa,GAAM,CACvB,EAAI,WAAW,SAAS,OAAO,EAEjC,MAEF,IAAK,SACH,EAAI,aAAa,GAAM,CACvB,EAAI,WAAW,SAAS,OAAO,CAC/B,MAEF,IAAK,MACH,EAAI,WAAW,SAAS,OAAO,CAC/B,EAAI,aAAa,GAAM,CACvB,MAEF,QACE,QAIA,EAAgB,GAA2C,CAC/D,EAAI,cAAc,EAAE,OAAO,MAAM,CACjC,EAAI,sBAAsB,IAAA,GAAU,EAGtC,OACE,EAAA,EAAA,MAAC,MAAD,CACE,UAAW,EAAA,GACT,mDACA,uCACD,
|
|
1
|
+
{"version":3,"file":"ComboboxInput.cjs","names":[],"sources":["../../../src/components/Combobox/ComboboxInput.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { Icon } from \"@nuka/components/Icon\";\nimport { getRovingIndex } from \"@nuka/utils/roving-index\";\nimport { scrollIntoViewSafe } from \"@nuka/utils/scroll-into-view-safe\";\nimport type { ComboboxInputProps } from \"@nuka/components/Combobox/Combobox.types\";\nimport { useComboboxContext } from \"@nuka/components/Combobox/Combobox.context\";\nimport { getNavigableOptions } from \"@nuka/components/Combobox/Combobox.utils\";\n\nfunction ComboboxInput({ ref, className, ...props }: ComboboxInputProps) {\n const ctx = useComboboxContext();\n const internalRef = React.useRef<HTMLInputElement>(null);\n\n const composedRef = React.useCallback(\n (node: HTMLInputElement | null) => {\n internalRef.current = node;\n if (typeof ref === \"function\") ref(node);\n else if (ref != null) ref.current = node;\n },\n [ref],\n );\n\n // Focus input and apply highlight directive when panel opens.\n // No rAF: by the time useEffect fires, Portal content and callback refs\n // are committed, so the input and option elements are in the DOM.\n // Empty deps: component unmounts on close and remounts on open.\n React.useEffect(() => {\n internalRef.current?.focus();\n\n const dir = ctx.highlightOnOpenRef.current;\n if (dir != null) {\n ctx.highlightOnOpenRef.current = null;\n const items = getNavigableOptions(ctx.listRef);\n if (items.length > 0) {\n const target = dir === \"first\" ? items[0] : items[items.length - 1];\n if (target != null) {\n ctx.setActiveDescendantId(target.id);\n scrollIntoViewSafe(target);\n }\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps -- runs once on mount when panel opens\n }, []);\n\n const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\n const items = getNavigableOptions(ctx.listRef);\n const currentIdx = items.findIndex(\n (el) => el.id === ctx.activeDescendantId,\n );\n const nextIdx = getRovingIndex(e.key, currentIdx, items.length, \"vertical\");\n\n if (nextIdx !== undefined) {\n e.preventDefault();\n const next = items[nextIdx];\n if (next != null) {\n ctx.setActiveDescendantId(next.id);\n scrollIntoViewSafe(next);\n }\n return;\n }\n\n switch (e.key) {\n case \"Enter\": {\n e.preventDefault();\n if (ctx.activeDescendantId != null) {\n const activeEl = document.getElementById(ctx.activeDescendantId);\n if (\n activeEl != null &&\n activeEl.getAttribute(\"aria-disabled\") !== \"true\"\n ) {\n activeEl.click();\n }\n } else if (ctx.freeText && ctx.filterText !== \"\") {\n ctx.onValueChange(ctx.filterText);\n ctx.onOpenChange(false);\n ctx.triggerRef.current?.focus();\n }\n break;\n }\n case \"Escape\": {\n ctx.onOpenChange(false);\n ctx.triggerRef.current?.focus();\n break;\n }\n case \"Tab\": {\n ctx.triggerRef.current?.focus();\n ctx.onOpenChange(false);\n break;\n }\n default:\n break;\n }\n };\n\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n ctx.setFilterText(e.target.value);\n ctx.setActiveDescendantId(undefined);\n };\n\n return (\n <div\n data-slot=\"input-wrapper\"\n className={cn(\n \"flex items-center gap-(--space-2) px-(--space-3)\",\n \"border-b border-(--nuka-border-base)\",\n )}\n >\n <Icon size=\"sm\" color=\"muted\">\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <circle cx=\"11\" cy=\"11\" r=\"8\" />\n <path d=\"m21 21-4.3-4.3\" />\n </svg>\n </Icon>\n <input\n {...props}\n ref={composedRef}\n id={ctx.inputId}\n data-slot=\"input\"\n role=\"combobox\"\n aria-autocomplete=\"list\"\n aria-expanded={ctx.open}\n aria-controls={ctx.listboxId}\n aria-activedescendant={ctx.activeDescendantId}\n value={ctx.filterText}\n onChange={handleChange}\n onKeyDown={handleKeyDown}\n className={cn(\n \"flex-1 bg-transparent py-(--space-3)\",\n \"text-sm text-(--nuka-text-base)\",\n \"placeholder:text-(--nuka-text-muted)\",\n \"outline-none\",\n className,\n )}\n />\n </div>\n );\n}\n\nComboboxInput.displayName = \"ComboboxInput\";\n\nexport { ComboboxInput };\n"],"mappings":"iXAUA,SAAS,EAAc,CAAE,MAAK,YAAW,GAAG,GAA6B,CACvE,IAAM,EAAM,EAAA,oBAAoB,CAC1B,EAAc,EAAM,OAAyB,KAAK,CAElD,EAAc,EAAM,YACvB,GAAkC,CACjC,EAAY,QAAU,EAClB,OAAO,GAAQ,WAAY,EAAI,EAAK,CAC/B,GAAO,OAAM,EAAI,QAAU,IAEtC,CAAC,EAAI,CACN,CAMD,EAAM,cAAgB,CACpB,EAAY,SAAS,OAAO,CAE5B,IAAM,EAAM,EAAI,mBAAmB,QACnC,GAAI,GAAO,KAAM,CACf,EAAI,mBAAmB,QAAU,KACjC,IAAM,EAAQ,EAAA,oBAAoB,EAAI,QAAQ,CAC9C,GAAI,EAAM,OAAS,EAAG,CACpB,IAAM,EAAS,IAAQ,QAAU,EAAM,GAAK,EAAM,EAAM,OAAS,GAC7D,GAAU,OACZ,EAAI,sBAAsB,EAAO,GAAG,CACpC,EAAA,mBAAmB,EAAO,KAK/B,EAAE,CAAC,CAEN,IAAM,EAAiB,GAA6C,CAClE,IAAM,EAAQ,EAAA,oBAAoB,EAAI,QAAQ,CACxC,EAAa,EAAM,UACtB,GAAO,EAAG,KAAO,EAAI,mBACvB,CACK,EAAU,EAAA,eAAe,EAAE,IAAK,EAAY,EAAM,OAAQ,WAAW,CAE3E,GAAI,IAAY,IAAA,GAAW,CACzB,EAAE,gBAAgB,CAClB,IAAM,EAAO,EAAM,GACf,GAAQ,OACV,EAAI,sBAAsB,EAAK,GAAG,CAClC,EAAA,mBAAmB,EAAK,EAE1B,OAGF,OAAQ,EAAE,IAAV,CACE,IAAK,QAEH,GADA,EAAE,gBAAgB,CACd,EAAI,oBAAsB,KAAM,CAClC,IAAM,EAAW,SAAS,eAAe,EAAI,mBAAmB,CAE9D,GAAY,MACZ,EAAS,aAAa,gBAAgB,GAAK,QAE3C,EAAS,OAAO,MAET,EAAI,UAAY,EAAI,aAAe,KAC5C,EAAI,cAAc,EAAI,WAAW,CACjC,EAAI,aAAa,GAAM,CACvB,EAAI,WAAW,SAAS,OAAO,EAEjC,MAEF,IAAK,SACH,EAAI,aAAa,GAAM,CACvB,EAAI,WAAW,SAAS,OAAO,CAC/B,MAEF,IAAK,MACH,EAAI,WAAW,SAAS,OAAO,CAC/B,EAAI,aAAa,GAAM,CACvB,MAEF,QACE,QAIA,EAAgB,GAA2C,CAC/D,EAAI,cAAc,EAAE,OAAO,MAAM,CACjC,EAAI,sBAAsB,IAAA,GAAU,EAGtC,OACE,EAAA,EAAA,MAAC,MAAD,CACE,YAAU,gBACV,UAAW,EAAA,GACT,mDACA,uCACD,UALH,EAOE,EAAA,EAAA,KAAC,EAAA,KAAD,CAAM,KAAK,KAAK,MAAM,kBACpB,EAAA,EAAA,MAAC,MAAD,CACE,QAAQ,YACR,KAAK,OACL,OAAO,eACP,YAAa,EACb,cAAc,QACd,eAAe,iBANjB,EAQE,EAAA,EAAA,KAAC,SAAD,CAAQ,GAAG,KAAK,GAAG,KAAK,EAAE,IAAM,CAAA,EAChC,EAAA,EAAA,KAAC,OAAD,CAAM,EAAE,iBAAmB,CAAA,CACvB,GACD,CAAA,EACP,EAAA,EAAA,KAAC,QAAD,CACE,GAAI,EACJ,IAAK,EACL,GAAI,EAAI,QACR,YAAU,QACV,KAAK,WACL,oBAAkB,OAClB,gBAAe,EAAI,KACnB,gBAAe,EAAI,UACnB,wBAAuB,EAAI,mBAC3B,MAAO,EAAI,WACX,SAAU,EACV,UAAW,EACX,UAAW,EAAA,GACT,uCACA,kCACA,uCACA,eACA,EACD,CACD,CAAA,CACE,GAIV,EAAc,YAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxInput.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/ComboboxInput.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAInF,iBAAS,aAAa,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"ComboboxInput.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/ComboboxInput.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAInF,iBAAS,aAAa,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAsItE;kBAtIQ,aAAa;;;AA0ItB,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -51,6 +51,7 @@ function l({ ref: l, className: u, ...d }) {
|
|
|
51
51
|
f.setFilterText(e.target.value), f.setActiveDescendantId(void 0);
|
|
52
52
|
};
|
|
53
53
|
return /* @__PURE__ */ c("div", {
|
|
54
|
+
"data-slot": "input-wrapper",
|
|
54
55
|
className: e("flex items-center gap-(--space-2) px-(--space-3)", "border-b border-(--nuka-border-base)"),
|
|
55
56
|
children: [/* @__PURE__ */ s(n, {
|
|
56
57
|
size: "sm",
|
|
@@ -72,6 +73,7 @@ function l({ ref: l, className: u, ...d }) {
|
|
|
72
73
|
...d,
|
|
73
74
|
ref: m,
|
|
74
75
|
id: f.inputId,
|
|
76
|
+
"data-slot": "input",
|
|
75
77
|
role: "combobox",
|
|
76
78
|
"aria-autocomplete": "list",
|
|
77
79
|
"aria-expanded": f.open,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxInput.js","names":[],"sources":["../../../src/components/Combobox/ComboboxInput.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { Icon } from \"@nuka/components/Icon\";\nimport { getRovingIndex } from \"@nuka/utils/roving-index\";\nimport { scrollIntoViewSafe } from \"@nuka/utils/scroll-into-view-safe\";\nimport type { ComboboxInputProps } from \"@nuka/components/Combobox/Combobox.types\";\nimport { useComboboxContext } from \"@nuka/components/Combobox/Combobox.context\";\nimport { getNavigableOptions } from \"@nuka/components/Combobox/Combobox.utils\";\n\nfunction ComboboxInput({ ref, className, ...props }: ComboboxInputProps) {\n const ctx = useComboboxContext();\n const internalRef = React.useRef<HTMLInputElement>(null);\n\n const composedRef = React.useCallback(\n (node: HTMLInputElement | null) => {\n internalRef.current = node;\n if (typeof ref === \"function\") ref(node);\n else if (ref != null) ref.current = node;\n },\n [ref],\n );\n\n // Focus input and apply highlight directive when panel opens.\n // No rAF: by the time useEffect fires, Portal content and callback refs\n // are committed, so the input and option elements are in the DOM.\n // Empty deps: component unmounts on close and remounts on open.\n React.useEffect(() => {\n internalRef.current?.focus();\n\n const dir = ctx.highlightOnOpenRef.current;\n if (dir != null) {\n ctx.highlightOnOpenRef.current = null;\n const items = getNavigableOptions(ctx.listRef);\n if (items.length > 0) {\n const target = dir === \"first\" ? items[0] : items[items.length - 1];\n if (target != null) {\n ctx.setActiveDescendantId(target.id);\n scrollIntoViewSafe(target);\n }\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps -- runs once on mount when panel opens\n }, []);\n\n const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\n const items = getNavigableOptions(ctx.listRef);\n const currentIdx = items.findIndex(\n (el) => el.id === ctx.activeDescendantId,\n );\n const nextIdx = getRovingIndex(e.key, currentIdx, items.length, \"vertical\");\n\n if (nextIdx !== undefined) {\n e.preventDefault();\n const next = items[nextIdx];\n if (next != null) {\n ctx.setActiveDescendantId(next.id);\n scrollIntoViewSafe(next);\n }\n return;\n }\n\n switch (e.key) {\n case \"Enter\": {\n e.preventDefault();\n if (ctx.activeDescendantId != null) {\n const activeEl = document.getElementById(ctx.activeDescendantId);\n if (\n activeEl != null &&\n activeEl.getAttribute(\"aria-disabled\") !== \"true\"\n ) {\n activeEl.click();\n }\n } else if (ctx.freeText && ctx.filterText !== \"\") {\n ctx.onValueChange(ctx.filterText);\n ctx.onOpenChange(false);\n ctx.triggerRef.current?.focus();\n }\n break;\n }\n case \"Escape\": {\n ctx.onOpenChange(false);\n ctx.triggerRef.current?.focus();\n break;\n }\n case \"Tab\": {\n ctx.triggerRef.current?.focus();\n ctx.onOpenChange(false);\n break;\n }\n default:\n break;\n }\n };\n\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n ctx.setFilterText(e.target.value);\n ctx.setActiveDescendantId(undefined);\n };\n\n return (\n <div\n className={cn(\n \"flex items-center gap-(--space-2) px-(--space-3)\",\n \"border-b border-(--nuka-border-base)\",\n )}\n >\n <Icon size=\"sm\" color=\"muted\">\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <circle cx=\"11\" cy=\"11\" r=\"8\" />\n <path d=\"m21 21-4.3-4.3\" />\n </svg>\n </Icon>\n <input\n {...props}\n ref={composedRef}\n id={ctx.inputId}\n role=\"combobox\"\n aria-autocomplete=\"list\"\n aria-expanded={ctx.open}\n aria-controls={ctx.listboxId}\n aria-activedescendant={ctx.activeDescendantId}\n value={ctx.filterText}\n onChange={handleChange}\n onKeyDown={handleKeyDown}\n className={cn(\n \"flex-1 bg-transparent py-(--space-3)\",\n \"text-sm text-(--nuka-text-base)\",\n \"placeholder:text-(--nuka-text-muted)\",\n \"outline-none\",\n className,\n )}\n />\n </div>\n );\n}\n\nComboboxInput.displayName = \"ComboboxInput\";\n\nexport { ComboboxInput };\n"],"mappings":";;;;;;;;;;AAUA,SAAS,EAAc,EAAE,QAAK,cAAW,GAAG,KAA6B;CACvE,IAAM,IAAM,GAAoB,EAC1B,IAAc,EAAM,OAAyB,KAAK,EAElD,IAAc,EAAM,aACvB,MAAkC;AAEjC,EADA,EAAY,UAAU,GAClB,OAAO,KAAQ,aAAY,EAAI,EAAK,GAC/B,KAAO,SAAM,EAAI,UAAU;IAEtC,CAAC,EAAI,CACN;AAMD,GAAM,gBAAgB;AACpB,IAAY,SAAS,OAAO;EAE5B,IAAM,IAAM,EAAI,mBAAmB;AACnC,MAAI,KAAO,MAAM;AACf,KAAI,mBAAmB,UAAU;GACjC,IAAM,IAAQ,EAAoB,EAAI,QAAQ;AAC9C,OAAI,EAAM,SAAS,GAAG;IACpB,IAAM,IAAS,MAAQ,UAAU,EAAM,KAAK,EAAM,EAAM,SAAS;AACjE,IAAI,KAAU,SACZ,EAAI,sBAAsB,EAAO,GAAG,EACpC,EAAmB,EAAO;;;IAK/B,EAAE,CAAC;CAEN,IAAM,KAAiB,MAA6C;EAClE,IAAM,IAAQ,EAAoB,EAAI,QAAQ,EACxC,IAAa,EAAM,WACtB,MAAO,EAAG,OAAO,EAAI,mBACvB,EACK,IAAU,EAAe,EAAE,KAAK,GAAY,EAAM,QAAQ,WAAW;AAE3E,MAAI,MAAY,KAAA,GAAW;AACzB,KAAE,gBAAgB;GAClB,IAAM,IAAO,EAAM;AACnB,GAAI,KAAQ,SACV,EAAI,sBAAsB,EAAK,GAAG,EAClC,EAAmB,EAAK;AAE1B;;AAGF,UAAQ,EAAE,KAAV;GACE,KAAK;AAEH,QADA,EAAE,gBAAgB,EACd,EAAI,sBAAsB,MAAM;KAClC,IAAM,IAAW,SAAS,eAAe,EAAI,mBAAmB;AAChE,KACE,KAAY,QACZ,EAAS,aAAa,gBAAgB,KAAK,UAE3C,EAAS,OAAO;WAET,EAAI,YAAY,EAAI,eAAe,OAC5C,EAAI,cAAc,EAAI,WAAW,EACjC,EAAI,aAAa,GAAM,EACvB,EAAI,WAAW,SAAS,OAAO;AAEjC;GAEF,KAAK;AAEH,IADA,EAAI,aAAa,GAAM,EACvB,EAAI,WAAW,SAAS,OAAO;AAC/B;GAEF,KAAK;AAEH,IADA,EAAI,WAAW,SAAS,OAAO,EAC/B,EAAI,aAAa,GAAM;AACvB;GAEF,QACE;;IAIA,KAAgB,MAA2C;AAE/D,EADA,EAAI,cAAc,EAAE,OAAO,MAAM,EACjC,EAAI,sBAAsB,KAAA,EAAU;;AAGtC,QACE,kBAAC,OAAD;EACE,WAAW,EACT,oDACA,uCACD;
|
|
1
|
+
{"version":3,"file":"ComboboxInput.js","names":[],"sources":["../../../src/components/Combobox/ComboboxInput.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport { Icon } from \"@nuka/components/Icon\";\nimport { getRovingIndex } from \"@nuka/utils/roving-index\";\nimport { scrollIntoViewSafe } from \"@nuka/utils/scroll-into-view-safe\";\nimport type { ComboboxInputProps } from \"@nuka/components/Combobox/Combobox.types\";\nimport { useComboboxContext } from \"@nuka/components/Combobox/Combobox.context\";\nimport { getNavigableOptions } from \"@nuka/components/Combobox/Combobox.utils\";\n\nfunction ComboboxInput({ ref, className, ...props }: ComboboxInputProps) {\n const ctx = useComboboxContext();\n const internalRef = React.useRef<HTMLInputElement>(null);\n\n const composedRef = React.useCallback(\n (node: HTMLInputElement | null) => {\n internalRef.current = node;\n if (typeof ref === \"function\") ref(node);\n else if (ref != null) ref.current = node;\n },\n [ref],\n );\n\n // Focus input and apply highlight directive when panel opens.\n // No rAF: by the time useEffect fires, Portal content and callback refs\n // are committed, so the input and option elements are in the DOM.\n // Empty deps: component unmounts on close and remounts on open.\n React.useEffect(() => {\n internalRef.current?.focus();\n\n const dir = ctx.highlightOnOpenRef.current;\n if (dir != null) {\n ctx.highlightOnOpenRef.current = null;\n const items = getNavigableOptions(ctx.listRef);\n if (items.length > 0) {\n const target = dir === \"first\" ? items[0] : items[items.length - 1];\n if (target != null) {\n ctx.setActiveDescendantId(target.id);\n scrollIntoViewSafe(target);\n }\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps -- runs once on mount when panel opens\n }, []);\n\n const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\n const items = getNavigableOptions(ctx.listRef);\n const currentIdx = items.findIndex(\n (el) => el.id === ctx.activeDescendantId,\n );\n const nextIdx = getRovingIndex(e.key, currentIdx, items.length, \"vertical\");\n\n if (nextIdx !== undefined) {\n e.preventDefault();\n const next = items[nextIdx];\n if (next != null) {\n ctx.setActiveDescendantId(next.id);\n scrollIntoViewSafe(next);\n }\n return;\n }\n\n switch (e.key) {\n case \"Enter\": {\n e.preventDefault();\n if (ctx.activeDescendantId != null) {\n const activeEl = document.getElementById(ctx.activeDescendantId);\n if (\n activeEl != null &&\n activeEl.getAttribute(\"aria-disabled\") !== \"true\"\n ) {\n activeEl.click();\n }\n } else if (ctx.freeText && ctx.filterText !== \"\") {\n ctx.onValueChange(ctx.filterText);\n ctx.onOpenChange(false);\n ctx.triggerRef.current?.focus();\n }\n break;\n }\n case \"Escape\": {\n ctx.onOpenChange(false);\n ctx.triggerRef.current?.focus();\n break;\n }\n case \"Tab\": {\n ctx.triggerRef.current?.focus();\n ctx.onOpenChange(false);\n break;\n }\n default:\n break;\n }\n };\n\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n ctx.setFilterText(e.target.value);\n ctx.setActiveDescendantId(undefined);\n };\n\n return (\n <div\n data-slot=\"input-wrapper\"\n className={cn(\n \"flex items-center gap-(--space-2) px-(--space-3)\",\n \"border-b border-(--nuka-border-base)\",\n )}\n >\n <Icon size=\"sm\" color=\"muted\">\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n >\n <circle cx=\"11\" cy=\"11\" r=\"8\" />\n <path d=\"m21 21-4.3-4.3\" />\n </svg>\n </Icon>\n <input\n {...props}\n ref={composedRef}\n id={ctx.inputId}\n data-slot=\"input\"\n role=\"combobox\"\n aria-autocomplete=\"list\"\n aria-expanded={ctx.open}\n aria-controls={ctx.listboxId}\n aria-activedescendant={ctx.activeDescendantId}\n value={ctx.filterText}\n onChange={handleChange}\n onKeyDown={handleKeyDown}\n className={cn(\n \"flex-1 bg-transparent py-(--space-3)\",\n \"text-sm text-(--nuka-text-base)\",\n \"placeholder:text-(--nuka-text-muted)\",\n \"outline-none\",\n className,\n )}\n />\n </div>\n );\n}\n\nComboboxInput.displayName = \"ComboboxInput\";\n\nexport { ComboboxInput };\n"],"mappings":";;;;;;;;;;AAUA,SAAS,EAAc,EAAE,QAAK,cAAW,GAAG,KAA6B;CACvE,IAAM,IAAM,GAAoB,EAC1B,IAAc,EAAM,OAAyB,KAAK,EAElD,IAAc,EAAM,aACvB,MAAkC;AAEjC,EADA,EAAY,UAAU,GAClB,OAAO,KAAQ,aAAY,EAAI,EAAK,GAC/B,KAAO,SAAM,EAAI,UAAU;IAEtC,CAAC,EAAI,CACN;AAMD,GAAM,gBAAgB;AACpB,IAAY,SAAS,OAAO;EAE5B,IAAM,IAAM,EAAI,mBAAmB;AACnC,MAAI,KAAO,MAAM;AACf,KAAI,mBAAmB,UAAU;GACjC,IAAM,IAAQ,EAAoB,EAAI,QAAQ;AAC9C,OAAI,EAAM,SAAS,GAAG;IACpB,IAAM,IAAS,MAAQ,UAAU,EAAM,KAAK,EAAM,EAAM,SAAS;AACjE,IAAI,KAAU,SACZ,EAAI,sBAAsB,EAAO,GAAG,EACpC,EAAmB,EAAO;;;IAK/B,EAAE,CAAC;CAEN,IAAM,KAAiB,MAA6C;EAClE,IAAM,IAAQ,EAAoB,EAAI,QAAQ,EACxC,IAAa,EAAM,WACtB,MAAO,EAAG,OAAO,EAAI,mBACvB,EACK,IAAU,EAAe,EAAE,KAAK,GAAY,EAAM,QAAQ,WAAW;AAE3E,MAAI,MAAY,KAAA,GAAW;AACzB,KAAE,gBAAgB;GAClB,IAAM,IAAO,EAAM;AACnB,GAAI,KAAQ,SACV,EAAI,sBAAsB,EAAK,GAAG,EAClC,EAAmB,EAAK;AAE1B;;AAGF,UAAQ,EAAE,KAAV;GACE,KAAK;AAEH,QADA,EAAE,gBAAgB,EACd,EAAI,sBAAsB,MAAM;KAClC,IAAM,IAAW,SAAS,eAAe,EAAI,mBAAmB;AAChE,KACE,KAAY,QACZ,EAAS,aAAa,gBAAgB,KAAK,UAE3C,EAAS,OAAO;WAET,EAAI,YAAY,EAAI,eAAe,OAC5C,EAAI,cAAc,EAAI,WAAW,EACjC,EAAI,aAAa,GAAM,EACvB,EAAI,WAAW,SAAS,OAAO;AAEjC;GAEF,KAAK;AAEH,IADA,EAAI,aAAa,GAAM,EACvB,EAAI,WAAW,SAAS,OAAO;AAC/B;GAEF,KAAK;AAEH,IADA,EAAI,WAAW,SAAS,OAAO,EAC/B,EAAI,aAAa,GAAM;AACvB;GAEF,QACE;;IAIA,KAAgB,MAA2C;AAE/D,EADA,EAAI,cAAc,EAAE,OAAO,MAAM,EACjC,EAAI,sBAAsB,KAAA,EAAU;;AAGtC,QACE,kBAAC,OAAD;EACE,aAAU;EACV,WAAW,EACT,oDACA,uCACD;YALH,CAOE,kBAAC,GAAD;GAAM,MAAK;GAAK,OAAM;aACpB,kBAAC,OAAD;IACE,SAAQ;IACR,MAAK;IACL,QAAO;IACP,aAAa;IACb,eAAc;IACd,gBAAe;cANjB,CAQE,kBAAC,UAAD;KAAQ,IAAG;KAAK,IAAG;KAAK,GAAE;KAAM,CAAA,EAChC,kBAAC,QAAD,EAAM,GAAE,kBAAmB,CAAA,CACvB;;GACD,CAAA,EACP,kBAAC,SAAD;GACE,GAAI;GACJ,KAAK;GACL,IAAI,EAAI;GACR,aAAU;GACV,MAAK;GACL,qBAAkB;GAClB,iBAAe,EAAI;GACnB,iBAAe,EAAI;GACnB,yBAAuB,EAAI;GAC3B,OAAO,EAAI;GACX,UAAU;GACV,WAAW;GACX,WAAW,EACT,wCACA,mCACA,wCACA,gBACA,EACD;GACD,CAAA,CACE;;;AAIV,EAAc,cAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/cn.cjs`),n=require(`./Combobox.context.cjs`);let r=require(`react`);r=e.__toESM(r,1);let i=require(`react/jsx-runtime`);function a({ref:e,className:a,children:o,...s}){let c=n.useComboboxContext(),l=r.useCallback(t=>{c.listRef.current=t,typeof e==`function`?e(t):e!=null&&(e.current=t)},[e,c.listRef]),{filterText:u,setVisibleCount:d,listRef:f}=c;return r.useLayoutEffect(()=>{if(f.current==null)return;let e=f.current.querySelectorAll(`[role="option"]:not([hidden])`).length;d(e)},[u,d,f]),(0,i.jsx)(`div`,{ref:l,id:c.listboxId,role:`listbox`,"aria-label":`Options`,className:t.cn(`max-h-[280px] overflow-y-auto p-(--space-1)`,a),...s,children:o})}a.displayName=`ComboboxListbox`,exports.ComboboxListbox=a;
|
|
1
|
+
"use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/cn.cjs`),n=require(`./Combobox.context.cjs`);let r=require(`react`);r=e.__toESM(r,1);let i=require(`react/jsx-runtime`);function a({ref:e,className:a,children:o,...s}){let c=n.useComboboxContext(),l=r.useCallback(t=>{c.listRef.current=t,typeof e==`function`?e(t):e!=null&&(e.current=t)},[e,c.listRef]),{filterText:u,setVisibleCount:d,listRef:f}=c;return r.useLayoutEffect(()=>{if(f.current==null)return;let e=f.current.querySelectorAll(`[role="option"]:not([hidden])`).length;d(e)},[u,d,f]),(0,i.jsx)(`div`,{ref:l,id:c.listboxId,"data-slot":`listbox`,role:`listbox`,"aria-label":`Options`,className:t.cn(`max-h-[280px] overflow-y-auto p-(--space-1)`,a),...s,children:o})}a.displayName=`ComboboxListbox`,exports.ComboboxListbox=a;
|
|
2
2
|
//# sourceMappingURL=ComboboxListbox.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxListbox.cjs","names":[],"sources":["../../../src/components/Combobox/ComboboxListbox.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport type { ComboboxListboxProps } from \"@nuka/components/Combobox/Combobox.types\";\nimport { useComboboxContext } from \"@nuka/components/Combobox/Combobox.context\";\n\nfunction ComboboxListbox({\n ref,\n className,\n children,\n ...props\n}: ComboboxListboxProps) {\n const ctx = useComboboxContext();\n\n const composedRef = React.useCallback(\n (node: HTMLDivElement | null) => {\n ctx.listRef.current = node;\n if (typeof ref === \"function\") ref(node);\n else if (ref != null) ref.current = node;\n },\n [ref, ctx.listRef],\n );\n\n const { filterText, setVisibleCount, listRef } = ctx;\n\n // Count visible options for ComboboxEmpty. Layout effect avoids\n // flash-of-empty-state by updating before paint.\n React.useLayoutEffect(() => {\n if (listRef.current == null) return;\n const count = listRef.current.querySelectorAll(\n '[role=\"option\"]:not([hidden])',\n ).length;\n setVisibleCount(count);\n }, [filterText, setVisibleCount, listRef]);\n\n return (\n <div\n ref={composedRef}\n id={ctx.listboxId}\n role=\"listbox\"\n aria-label=\"Options\"\n className={cn(\"max-h-[280px] overflow-y-auto p-(--space-1)\", className)}\n {...props}\n >\n {children}\n </div>\n );\n}\n\nComboboxListbox.displayName = \"ComboboxListbox\";\n\nexport { ComboboxListbox };\n"],"mappings":"oNAMA,SAAS,EAAgB,CACvB,MACA,YACA,WACA,GAAG,GACoB,CACvB,IAAM,EAAM,EAAA,oBAAoB,CAE1B,EAAc,EAAM,YACvB,GAAgC,CAC/B,EAAI,QAAQ,QAAU,EAClB,OAAO,GAAQ,WAAY,EAAI,EAAK,CAC/B,GAAO,OAAM,EAAI,QAAU,IAEtC,CAAC,EAAK,EAAI,QAAQ,CACnB,CAEK,CAAE,aAAY,kBAAiB,WAAY,EAYjD,OARA,EAAM,oBAAsB,CAC1B,GAAI,EAAQ,SAAW,KAAM,OAC7B,IAAM,EAAQ,EAAQ,QAAQ,iBAC5B,gCACD,CAAC,OACF,EAAgB,EAAM,EACrB,CAAC,EAAY,EAAiB,EAAQ,CAAC,EAGxC,EAAA,EAAA,KAAC,MAAD,CACE,IAAK,EACL,GAAI,EAAI,UACR,KAAK,UACL,aAAW,UACX,UAAW,EAAA,GAAG,8CAA+C,EAAU,CACvE,GAAI,EAEH,WACG,CAAA,CAIV,EAAgB,YAAc"}
|
|
1
|
+
{"version":3,"file":"ComboboxListbox.cjs","names":[],"sources":["../../../src/components/Combobox/ComboboxListbox.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport type { ComboboxListboxProps } from \"@nuka/components/Combobox/Combobox.types\";\nimport { useComboboxContext } from \"@nuka/components/Combobox/Combobox.context\";\n\nfunction ComboboxListbox({\n ref,\n className,\n children,\n ...props\n}: ComboboxListboxProps) {\n const ctx = useComboboxContext();\n\n const composedRef = React.useCallback(\n (node: HTMLDivElement | null) => {\n ctx.listRef.current = node;\n if (typeof ref === \"function\") ref(node);\n else if (ref != null) ref.current = node;\n },\n [ref, ctx.listRef],\n );\n\n const { filterText, setVisibleCount, listRef } = ctx;\n\n // Count visible options for ComboboxEmpty. Layout effect avoids\n // flash-of-empty-state by updating before paint.\n React.useLayoutEffect(() => {\n if (listRef.current == null) return;\n const count = listRef.current.querySelectorAll(\n '[role=\"option\"]:not([hidden])',\n ).length;\n setVisibleCount(count);\n }, [filterText, setVisibleCount, listRef]);\n\n return (\n <div\n ref={composedRef}\n id={ctx.listboxId}\n data-slot=\"listbox\"\n role=\"listbox\"\n aria-label=\"Options\"\n className={cn(\"max-h-[280px] overflow-y-auto p-(--space-1)\", className)}\n {...props}\n >\n {children}\n </div>\n );\n}\n\nComboboxListbox.displayName = \"ComboboxListbox\";\n\nexport { ComboboxListbox };\n"],"mappings":"oNAMA,SAAS,EAAgB,CACvB,MACA,YACA,WACA,GAAG,GACoB,CACvB,IAAM,EAAM,EAAA,oBAAoB,CAE1B,EAAc,EAAM,YACvB,GAAgC,CAC/B,EAAI,QAAQ,QAAU,EAClB,OAAO,GAAQ,WAAY,EAAI,EAAK,CAC/B,GAAO,OAAM,EAAI,QAAU,IAEtC,CAAC,EAAK,EAAI,QAAQ,CACnB,CAEK,CAAE,aAAY,kBAAiB,WAAY,EAYjD,OARA,EAAM,oBAAsB,CAC1B,GAAI,EAAQ,SAAW,KAAM,OAC7B,IAAM,EAAQ,EAAQ,QAAQ,iBAC5B,gCACD,CAAC,OACF,EAAgB,EAAM,EACrB,CAAC,EAAY,EAAiB,EAAQ,CAAC,EAGxC,EAAA,EAAA,KAAC,MAAD,CACE,IAAK,EACL,GAAI,EAAI,UACR,YAAU,UACV,KAAK,UACL,aAAW,UACX,UAAW,EAAA,GAAG,8CAA+C,EAAU,CACvE,GAAI,EAEH,WACG,CAAA,CAIV,EAAgB,YAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxListbox.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/ComboboxListbox.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAGrF,iBAAS,eAAe,CAAC,EACvB,GAAG,EACH,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"ComboboxListbox.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/ComboboxListbox.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAGrF,iBAAS,eAAe,CAAC,EACvB,GAAG,EACH,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,oBAAoB,2CAqCtB;kBA1CQ,eAAe;;;AA8CxB,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -19,6 +19,7 @@ function i({ ref: i, className: a, children: o, ...s }) {
|
|
|
19
19
|
]), /* @__PURE__ */ r("div", {
|
|
20
20
|
ref: l,
|
|
21
21
|
id: c.listboxId,
|
|
22
|
+
"data-slot": "listbox",
|
|
22
23
|
role: "listbox",
|
|
23
24
|
"aria-label": "Options",
|
|
24
25
|
className: e("max-h-[280px] overflow-y-auto p-(--space-1)", a),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxListbox.js","names":[],"sources":["../../../src/components/Combobox/ComboboxListbox.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport type { ComboboxListboxProps } from \"@nuka/components/Combobox/Combobox.types\";\nimport { useComboboxContext } from \"@nuka/components/Combobox/Combobox.context\";\n\nfunction ComboboxListbox({\n ref,\n className,\n children,\n ...props\n}: ComboboxListboxProps) {\n const ctx = useComboboxContext();\n\n const composedRef = React.useCallback(\n (node: HTMLDivElement | null) => {\n ctx.listRef.current = node;\n if (typeof ref === \"function\") ref(node);\n else if (ref != null) ref.current = node;\n },\n [ref, ctx.listRef],\n );\n\n const { filterText, setVisibleCount, listRef } = ctx;\n\n // Count visible options for ComboboxEmpty. Layout effect avoids\n // flash-of-empty-state by updating before paint.\n React.useLayoutEffect(() => {\n if (listRef.current == null) return;\n const count = listRef.current.querySelectorAll(\n '[role=\"option\"]:not([hidden])',\n ).length;\n setVisibleCount(count);\n }, [filterText, setVisibleCount, listRef]);\n\n return (\n <div\n ref={composedRef}\n id={ctx.listboxId}\n role=\"listbox\"\n aria-label=\"Options\"\n className={cn(\"max-h-[280px] overflow-y-auto p-(--space-1)\", className)}\n {...props}\n >\n {children}\n </div>\n );\n}\n\nComboboxListbox.displayName = \"ComboboxListbox\";\n\nexport { ComboboxListbox };\n"],"mappings":";;;;;;AAMA,SAAS,EAAgB,EACvB,QACA,cACA,aACA,GAAG,KACoB;CACvB,IAAM,IAAM,GAAoB,EAE1B,IAAc,EAAM,aACvB,MAAgC;AAE/B,EADA,EAAI,QAAQ,UAAU,GAClB,OAAO,KAAQ,aAAY,EAAI,EAAK,GAC/B,KAAO,SAAM,EAAI,UAAU;IAEtC,CAAC,GAAK,EAAI,QAAQ,CACnB,EAEK,EAAE,eAAY,oBAAiB,eAAY;AAYjD,QARA,EAAM,sBAAsB;AAC1B,MAAI,EAAQ,WAAW,KAAM;EAC7B,IAAM,IAAQ,EAAQ,QAAQ,iBAC5B,kCACD,CAAC;AACF,IAAgB,EAAM;IACrB;EAAC;EAAY;EAAiB;EAAQ,CAAC,EAGxC,kBAAC,OAAD;EACE,KAAK;EACL,IAAI,EAAI;EACR,MAAK;EACL,cAAW;EACX,WAAW,EAAG,+CAA+C,EAAU;EACvE,GAAI;EAEH;EACG,CAAA;;AAIV,EAAgB,cAAc"}
|
|
1
|
+
{"version":3,"file":"ComboboxListbox.js","names":[],"sources":["../../../src/components/Combobox/ComboboxListbox.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport type { ComboboxListboxProps } from \"@nuka/components/Combobox/Combobox.types\";\nimport { useComboboxContext } from \"@nuka/components/Combobox/Combobox.context\";\n\nfunction ComboboxListbox({\n ref,\n className,\n children,\n ...props\n}: ComboboxListboxProps) {\n const ctx = useComboboxContext();\n\n const composedRef = React.useCallback(\n (node: HTMLDivElement | null) => {\n ctx.listRef.current = node;\n if (typeof ref === \"function\") ref(node);\n else if (ref != null) ref.current = node;\n },\n [ref, ctx.listRef],\n );\n\n const { filterText, setVisibleCount, listRef } = ctx;\n\n // Count visible options for ComboboxEmpty. Layout effect avoids\n // flash-of-empty-state by updating before paint.\n React.useLayoutEffect(() => {\n if (listRef.current == null) return;\n const count = listRef.current.querySelectorAll(\n '[role=\"option\"]:not([hidden])',\n ).length;\n setVisibleCount(count);\n }, [filterText, setVisibleCount, listRef]);\n\n return (\n <div\n ref={composedRef}\n id={ctx.listboxId}\n data-slot=\"listbox\"\n role=\"listbox\"\n aria-label=\"Options\"\n className={cn(\"max-h-[280px] overflow-y-auto p-(--space-1)\", className)}\n {...props}\n >\n {children}\n </div>\n );\n}\n\nComboboxListbox.displayName = \"ComboboxListbox\";\n\nexport { ComboboxListbox };\n"],"mappings":";;;;;;AAMA,SAAS,EAAgB,EACvB,QACA,cACA,aACA,GAAG,KACoB;CACvB,IAAM,IAAM,GAAoB,EAE1B,IAAc,EAAM,aACvB,MAAgC;AAE/B,EADA,EAAI,QAAQ,UAAU,GAClB,OAAO,KAAQ,aAAY,EAAI,EAAK,GAC/B,KAAO,SAAM,EAAI,UAAU;IAEtC,CAAC,GAAK,EAAI,QAAQ,CACnB,EAEK,EAAE,eAAY,oBAAiB,eAAY;AAYjD,QARA,EAAM,sBAAsB;AAC1B,MAAI,EAAQ,WAAW,KAAM;EAC7B,IAAM,IAAQ,EAAQ,QAAQ,iBAC5B,kCACD,CAAC;AACF,IAAgB,EAAM;IACrB;EAAC;EAAY;EAAiB;EAAQ,CAAC,EAGxC,kBAAC,OAAD;EACE,KAAK;EACL,IAAI,EAAI;EACR,aAAU;EACV,MAAK;EACL,cAAW;EACX,WAAW,EAAG,+CAA+C,EAAU;EACvE,GAAI;EAEH;EACG,CAAA;;AAIV,EAAgB,cAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/cn.cjs`),n=require(`./Combobox.context.cjs`),r=require(`./Combobox.utils.cjs`);let i=require(`react`);i=e.__toESM(i,1);let a=require(`react/jsx-runtime`);function o({ref:e,value:o,disabled:s=!1,className:c,children:l,onSelect:u}){let d=n.useComboboxContext(),f=i.useRef(null),p=i.useCallback(t=>{f.current=t,typeof e==`function`?e(t):e!=null&&(e.current=t)},[e]),m=d.value===o,h=`${d.listboxId}-option-${o}`,g=r.getLabel(l),_=d.filterText!==``&&!g.toLowerCase().includes(d.filterText.toLowerCase()),v=d.activeDescendantId===h;return i.useLayoutEffect(()=>(d.registerOption(o,g,f.current),()=>{d.unregisterOption(o)}),[]),i.useEffect(()=>{d.registerDisabledOption(o,s)},[d,o,s]),i.useEffect(()=>{v&&f.current!=null&&typeof f.current.scrollIntoView==`function`&&f.current.scrollIntoView({block:`nearest`})},[v]),(0,a.jsx)(`div`,{ref:p,id:h,role:`option`,"aria-selected":m,"aria-disabled":s||void 0,hidden:_||void 0,className:t.cn(`px-(--space-3) py-(--space-2)`,`text-sm`,`cursor-pointer`,`select-none`,`text-(--nuka-text-base)`,s&&`opacity-50 cursor-not-allowed pointer-events-none`,m&&!v&&`bg-(--nuka-accent-bg-subtle) text-(--nuka-accent-text)`,v&&`bg-(--nuka-bg-muted) outline-none`,!m&&!v&&!s&&`hover:bg-(--nuka-bg-muted)`,c),onClick:()=>{s||(d.onValueChange(o),u?.(),d.onOpenChange(!1))},children:l})}o.displayName=`ComboboxOption`,exports.ComboboxOption=o;
|
|
1
|
+
"use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils/cn.cjs`),n=require(`./Combobox.context.cjs`),r=require(`./Combobox.utils.cjs`);let i=require(`react`);i=e.__toESM(i,1);let a=require(`react/jsx-runtime`);function o({ref:e,value:o,disabled:s=!1,className:c,children:l,onSelect:u}){let d=n.useComboboxContext(),f=i.useRef(null),p=i.useCallback(t=>{f.current=t,typeof e==`function`?e(t):e!=null&&(e.current=t)},[e]),m=d.value===o,h=`${d.listboxId}-option-${o}`,g=r.getLabel(l),_=d.filterText!==``&&!g.toLowerCase().includes(d.filterText.toLowerCase()),v=d.activeDescendantId===h;return i.useLayoutEffect(()=>(d.registerOption(o,g,f.current),()=>{d.unregisterOption(o)}),[]),i.useEffect(()=>{d.registerDisabledOption(o,s)},[d,o,s]),i.useEffect(()=>{v&&f.current!=null&&typeof f.current.scrollIntoView==`function`&&f.current.scrollIntoView({block:`nearest`})},[v]),(0,a.jsx)(`div`,{ref:p,id:h,"data-slot":`item`,role:`option`,"aria-selected":m,"aria-disabled":s||void 0,hidden:_||void 0,className:t.cn(`px-(--space-3) py-(--space-2)`,`text-sm`,`cursor-pointer`,`select-none`,`text-(--nuka-text-base)`,s&&`opacity-50 cursor-not-allowed pointer-events-none`,m&&!v&&`bg-(--nuka-accent-bg-subtle) text-(--nuka-accent-text)`,v&&`bg-(--nuka-bg-muted) outline-none`,!m&&!v&&!s&&`hover:bg-(--nuka-bg-muted)`,c),onClick:()=>{s||(d.onValueChange(o),u?.(),d.onOpenChange(!1))},children:l})}o.displayName=`ComboboxOption`,exports.ComboboxOption=o;
|
|
2
2
|
//# sourceMappingURL=ComboboxOption.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxOption.cjs","names":[],"sources":["../../../src/components/Combobox/ComboboxOption.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport type { ComboboxOptionProps } from \"@nuka/components/Combobox/Combobox.types\";\nimport { useComboboxContext } from \"@nuka/components/Combobox/Combobox.context\";\nimport { getLabel } from \"@nuka/components/Combobox/Combobox.utils\";\n\nfunction ComboboxOption({\n ref,\n value,\n disabled = false,\n className,\n children,\n onSelect,\n}: ComboboxOptionProps) {\n const ctx = useComboboxContext();\n const internalRef = React.useRef<HTMLDivElement>(null);\n\n const composedRef = React.useCallback(\n (node: HTMLDivElement | null) => {\n internalRef.current = node;\n if (typeof ref === \"function\") ref(node);\n else if (ref != null) ref.current = node;\n },\n [ref],\n );\n\n const isSelected = ctx.value === value;\n const optionId = `${ctx.listboxId}-option-${value}`;\n const label = getLabel(children);\n\n const isFiltered =\n ctx.filterText !== \"\" &&\n !label.toLowerCase().includes(ctx.filterText.toLowerCase());\n\n const isActive = ctx.activeDescendantId === optionId;\n\n React.useLayoutEffect(() => {\n ctx.registerOption(value, label, internalRef.current);\n return () => {\n ctx.unregisterOption(value);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps -- register once on mount, unregister on unmount\n }, []);\n\n React.useEffect(() => {\n ctx.registerDisabledOption(value, disabled);\n }, [ctx, value, disabled]);\n\n React.useEffect(() => {\n if (isActive && internalRef.current != null) {\n if (typeof internalRef.current.scrollIntoView === \"function\") {\n internalRef.current.scrollIntoView({ block: \"nearest\" });\n }\n }\n }, [isActive]);\n\n const handleClick = () => {\n if (disabled) return;\n ctx.onValueChange(value);\n onSelect?.();\n ctx.onOpenChange(false);\n };\n\n return (\n <div\n ref={composedRef}\n id={optionId}\n role=\"option\"\n aria-selected={isSelected}\n aria-disabled={disabled || undefined}\n hidden={isFiltered || undefined}\n className={cn(\n \"px-(--space-3) py-(--space-2)\",\n \"text-sm\",\n \"cursor-pointer\",\n \"select-none\",\n \"text-(--nuka-text-base)\",\n disabled && \"opacity-50 cursor-not-allowed pointer-events-none\",\n isSelected &&\n !isActive &&\n \"bg-(--nuka-accent-bg-subtle) text-(--nuka-accent-text)\",\n isActive && \"bg-(--nuka-bg-muted) outline-none\",\n !isSelected && !isActive && !disabled && \"hover:bg-(--nuka-bg-muted)\",\n className,\n )}\n onClick={handleClick}\n >\n {children}\n </div>\n );\n}\n\nComboboxOption.displayName = \"ComboboxOption\";\n\nexport { ComboboxOption };\n"],"mappings":"sPAOA,SAAS,EAAe,CACtB,MACA,QACA,WAAW,GACX,YACA,WACA,YACsB,CACtB,IAAM,EAAM,EAAA,oBAAoB,CAC1B,EAAc,EAAM,OAAuB,KAAK,CAEhD,EAAc,EAAM,YACvB,GAAgC,CAC/B,EAAY,QAAU,EAClB,OAAO,GAAQ,WAAY,EAAI,EAAK,CAC/B,GAAO,OAAM,EAAI,QAAU,IAEtC,CAAC,EAAI,CACN,CAEK,EAAa,EAAI,QAAU,EAC3B,EAAW,GAAG,EAAI,UAAU,UAAU,IACtC,EAAQ,EAAA,SAAS,EAAS,CAE1B,EACJ,EAAI,aAAe,IACnB,CAAC,EAAM,aAAa,CAAC,SAAS,EAAI,WAAW,aAAa,CAAC,CAEvD,EAAW,EAAI,qBAAuB,EA6B5C,OA3BA,EAAM,qBACJ,EAAI,eAAe,EAAO,EAAO,EAAY,QAAQ,KACxC,CACX,EAAI,iBAAiB,EAAM,GAG5B,EAAE,CAAC,CAEN,EAAM,cAAgB,CACpB,EAAI,uBAAuB,EAAO,EAAS,EAC1C,CAAC,EAAK,EAAO,EAAS,CAAC,CAE1B,EAAM,cAAgB,CAChB,GAAY,EAAY,SAAW,MACjC,OAAO,EAAY,QAAQ,gBAAmB,YAChD,EAAY,QAAQ,eAAe,CAAE,MAAO,UAAW,CAAC,EAG3D,CAAC,EAAS,CAAC,EAUZ,EAAA,EAAA,KAAC,MAAD,CACE,IAAK,EACL,GAAI,EACJ,KAAK,SACL,gBAAe,EACf,gBAAe,GAAY,IAAA,GAC3B,OAAQ,GAAc,IAAA,GACtB,UAAW,EAAA,GACT,gCACA,UACA,iBACA,cACA,0BACA,GAAY,oDACZ,GACE,CAAC,GACD,yDACF,GAAY,oCACZ,CAAC,GAAc,CAAC,GAAY,CAAC,GAAY,6BACzC,EACD,CACD,
|
|
1
|
+
{"version":3,"file":"ComboboxOption.cjs","names":[],"sources":["../../../src/components/Combobox/ComboboxOption.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport { cn } from \"@nuka/utils/cn\";\nimport type { ComboboxOptionProps } from \"@nuka/components/Combobox/Combobox.types\";\nimport { useComboboxContext } from \"@nuka/components/Combobox/Combobox.context\";\nimport { getLabel } from \"@nuka/components/Combobox/Combobox.utils\";\n\nfunction ComboboxOption({\n ref,\n value,\n disabled = false,\n className,\n children,\n onSelect,\n}: ComboboxOptionProps) {\n const ctx = useComboboxContext();\n const internalRef = React.useRef<HTMLDivElement>(null);\n\n const composedRef = React.useCallback(\n (node: HTMLDivElement | null) => {\n internalRef.current = node;\n if (typeof ref === \"function\") ref(node);\n else if (ref != null) ref.current = node;\n },\n [ref],\n );\n\n const isSelected = ctx.value === value;\n const optionId = `${ctx.listboxId}-option-${value}`;\n const label = getLabel(children);\n\n const isFiltered =\n ctx.filterText !== \"\" &&\n !label.toLowerCase().includes(ctx.filterText.toLowerCase());\n\n const isActive = ctx.activeDescendantId === optionId;\n\n React.useLayoutEffect(() => {\n ctx.registerOption(value, label, internalRef.current);\n return () => {\n ctx.unregisterOption(value);\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps -- register once on mount, unregister on unmount\n }, []);\n\n React.useEffect(() => {\n ctx.registerDisabledOption(value, disabled);\n }, [ctx, value, disabled]);\n\n React.useEffect(() => {\n if (isActive && internalRef.current != null) {\n if (typeof internalRef.current.scrollIntoView === \"function\") {\n internalRef.current.scrollIntoView({ block: \"nearest\" });\n }\n }\n }, [isActive]);\n\n const handleClick = () => {\n if (disabled) return;\n ctx.onValueChange(value);\n onSelect?.();\n ctx.onOpenChange(false);\n };\n\n return (\n <div\n ref={composedRef}\n id={optionId}\n data-slot=\"item\"\n role=\"option\"\n aria-selected={isSelected}\n aria-disabled={disabled || undefined}\n hidden={isFiltered || undefined}\n className={cn(\n \"px-(--space-3) py-(--space-2)\",\n \"text-sm\",\n \"cursor-pointer\",\n \"select-none\",\n \"text-(--nuka-text-base)\",\n disabled && \"opacity-50 cursor-not-allowed pointer-events-none\",\n isSelected &&\n !isActive &&\n \"bg-(--nuka-accent-bg-subtle) text-(--nuka-accent-text)\",\n isActive && \"bg-(--nuka-bg-muted) outline-none\",\n !isSelected && !isActive && !disabled && \"hover:bg-(--nuka-bg-muted)\",\n className,\n )}\n onClick={handleClick}\n >\n {children}\n </div>\n );\n}\n\nComboboxOption.displayName = \"ComboboxOption\";\n\nexport { ComboboxOption };\n"],"mappings":"sPAOA,SAAS,EAAe,CACtB,MACA,QACA,WAAW,GACX,YACA,WACA,YACsB,CACtB,IAAM,EAAM,EAAA,oBAAoB,CAC1B,EAAc,EAAM,OAAuB,KAAK,CAEhD,EAAc,EAAM,YACvB,GAAgC,CAC/B,EAAY,QAAU,EAClB,OAAO,GAAQ,WAAY,EAAI,EAAK,CAC/B,GAAO,OAAM,EAAI,QAAU,IAEtC,CAAC,EAAI,CACN,CAEK,EAAa,EAAI,QAAU,EAC3B,EAAW,GAAG,EAAI,UAAU,UAAU,IACtC,EAAQ,EAAA,SAAS,EAAS,CAE1B,EACJ,EAAI,aAAe,IACnB,CAAC,EAAM,aAAa,CAAC,SAAS,EAAI,WAAW,aAAa,CAAC,CAEvD,EAAW,EAAI,qBAAuB,EA6B5C,OA3BA,EAAM,qBACJ,EAAI,eAAe,EAAO,EAAO,EAAY,QAAQ,KACxC,CACX,EAAI,iBAAiB,EAAM,GAG5B,EAAE,CAAC,CAEN,EAAM,cAAgB,CACpB,EAAI,uBAAuB,EAAO,EAAS,EAC1C,CAAC,EAAK,EAAO,EAAS,CAAC,CAE1B,EAAM,cAAgB,CAChB,GAAY,EAAY,SAAW,MACjC,OAAO,EAAY,QAAQ,gBAAmB,YAChD,EAAY,QAAQ,eAAe,CAAE,MAAO,UAAW,CAAC,EAG3D,CAAC,EAAS,CAAC,EAUZ,EAAA,EAAA,KAAC,MAAD,CACE,IAAK,EACL,GAAI,EACJ,YAAU,OACV,KAAK,SACL,gBAAe,EACf,gBAAe,GAAY,IAAA,GAC3B,OAAQ,GAAc,IAAA,GACtB,UAAW,EAAA,GACT,gCACA,UACA,iBACA,cACA,0BACA,GAAY,oDACZ,GACE,CAAC,GACD,yDACF,GAAY,oCACZ,CAAC,GAAc,CAAC,GAAY,CAAC,GAAY,6BACzC,EACD,CACD,YA9BsB,CACpB,IACJ,EAAI,cAAc,EAAM,CACxB,KAAY,CACZ,EAAI,aAAa,GAAM,GA4BpB,WACG,CAAA,CAIV,EAAe,YAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ComboboxOption.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/ComboboxOption.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAIpF,iBAAS,cAAc,CAAC,EACtB,GAAG,EACH,KAAK,EACL,QAAgB,EAChB,SAAS,EACT,QAAQ,EACR,QAAQ,GACT,EAAE,mBAAmB,
|
|
1
|
+
{"version":3,"file":"ComboboxOption.d.ts","sourceRoot":"","sources":["../../../src/components/Combobox/ComboboxOption.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAIpF,iBAAS,cAAc,CAAC,EACtB,GAAG,EACH,KAAK,EACL,QAAgB,EAChB,SAAS,EACT,QAAQ,EACR,QAAQ,GACT,EAAE,mBAAmB,2CA8ErB;kBArFQ,cAAc;;;AAyFvB,OAAO,EAAE,cAAc,EAAE,CAAC"}
|