@lotte-innovate/ui-component-test 0.1.56 → 0.1.57
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/lib/Typography/Header/index.mjs +1 -1
- package/dist/lib/Typography/Header/index.mjs.map +1 -1
- package/dist/lib/Typography/Text/index.mjs +1 -1
- package/dist/lib/Typography/Text/index.mjs.map +1 -1
- package/dist/lib/components/Accordion/index.d.ts +1 -1
- package/dist/lib/components/Accordion/index.mjs +1 -1
- package/dist/lib/components/Accordion/index.mjs.map +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogAction.mjs +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogAction.mjs.map +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogCancel.mjs +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogCancel.mjs.map +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogContent.mjs +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogContent.mjs.map +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogDescription.mjs +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogDescription.mjs.map +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogTitle.mjs +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogTitle.mjs.map +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs +1 -1
- package/dist/lib/components/AlertDialog/AlertDialogTrigger.mjs.map +1 -1
- package/dist/lib/components/AspectRatio/index.mjs +1 -1
- package/dist/lib/components/AspectRatio/index.mjs.map +1 -1
- package/dist/lib/components/Avatar/index.mjs +1 -1
- package/dist/lib/components/Avatar/index.mjs.map +1 -1
- package/dist/lib/components/Badge/index.mjs +1 -1
- package/dist/lib/components/Badge/index.mjs.map +1 -1
- package/dist/lib/components/BarChart/index.d.ts +1 -5
- package/dist/lib/components/BarChart/index.mjs +1 -1
- package/dist/lib/components/BarChart/index.mjs.map +1 -1
- package/dist/lib/components/BubbleChart/index.mjs +1 -1
- package/dist/lib/components/BubbleChart/index.mjs.map +1 -1
- package/dist/lib/components/Button/index.mjs +1 -1
- package/dist/lib/components/Button/index.mjs.map +1 -1
- package/dist/lib/components/Callout/CalloutIcon.mjs +1 -1
- package/dist/lib/components/Callout/CalloutIcon.mjs.map +1 -1
- package/dist/lib/components/Callout/CalloutRoot.mjs +1 -1
- package/dist/lib/components/Callout/CalloutRoot.mjs.map +1 -1
- package/dist/lib/components/Callout/CalloutText.mjs +1 -1
- package/dist/lib/components/Callout/CalloutText.mjs.map +1 -1
- package/dist/lib/components/Card/index.mjs +1 -1
- package/dist/lib/components/Card/index.mjs.map +1 -1
- package/dist/lib/components/Checkbox/index.mjs +1 -1
- package/dist/lib/components/Checkbox/index.mjs.map +1 -1
- package/dist/lib/components/CheckboxCard/index.mjs +1 -1
- package/dist/lib/components/CheckboxCard/index.mjs.map +1 -1
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs +1 -1
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuContent.mjs +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuContent.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuItem.mjs +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuItem.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuItemIndicator.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuLabel.mjs +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuLabel.mjs.map +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs +1 -1
- package/dist/lib/components/ContextMenu/ContextMenuSubContent.mjs.map +1 -1
- package/dist/lib/components/DataList/DataListItem.mjs +1 -1
- package/dist/lib/components/DataList/DataListItem.mjs.map +1 -1
- package/dist/lib/components/DataList/DataListLabel.mjs +1 -1
- package/dist/lib/components/DataList/DataListLabel.mjs.map +1 -1
- package/dist/lib/components/DataList/DataListRoot.mjs +1 -1
- package/dist/lib/components/DataList/DataListRoot.mjs.map +1 -1
- package/dist/lib/components/DataList/DataListValue.mjs +1 -1
- package/dist/lib/components/DataList/DataListValue.mjs.map +1 -1
- package/dist/lib/components/Dialog/DialogAction.mjs +1 -1
- package/dist/lib/components/Dialog/DialogAction.mjs.map +1 -1
- package/dist/lib/components/Dialog/DialogCancel.mjs +1 -1
- package/dist/lib/components/Dialog/DialogCancel.mjs.map +1 -1
- package/dist/lib/components/Dialog/DialogContent.mjs +1 -1
- package/dist/lib/components/Dialog/DialogContent.mjs.map +1 -1
- package/dist/lib/components/Dialog/DialogDescription.mjs +1 -1
- package/dist/lib/components/Dialog/DialogDescription.mjs.map +1 -1
- package/dist/lib/components/Dialog/DialogRoot.d.ts +1 -4
- package/dist/lib/components/Dialog/DialogSlot.mjs +1 -1
- package/dist/lib/components/Dialog/DialogSlot.mjs.map +1 -1
- package/dist/lib/components/Dialog/DialogTitle.mjs +1 -1
- package/dist/lib/components/Dialog/DialogTitle.mjs.map +1 -1
- package/dist/lib/components/DoughnutChart/index.mjs +1 -1
- package/dist/lib/components/DoughnutChart/index.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdonMenuSubContent.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuContent.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuItem.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuItemIndicator.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuLable.mjs.map +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +1 -2
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs +1 -1
- package/dist/lib/components/DropdownMenu/DropdownMenuTrigger.mjs.map +1 -1
- package/dist/lib/components/HoverCard/HoverCardContent.mjs +1 -1
- package/dist/lib/components/HoverCard/HoverCardContent.mjs.map +1 -1
- package/dist/lib/components/IconButton/index.d.ts +2 -2
- package/dist/lib/components/IconButton/index.mjs +1 -1
- package/dist/lib/components/IconButton/index.mjs.map +1 -1
- package/dist/lib/components/Inset/index.mjs +1 -1
- package/dist/lib/components/Inset/index.mjs.map +1 -1
- package/dist/lib/components/Label/index.mjs +1 -1
- package/dist/lib/components/Label/index.mjs.map +1 -1
- package/dist/lib/components/LineChart/index.mjs +1 -1
- package/dist/lib/components/LineChart/index.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarContent.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarContent.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarItem.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarItem.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarItemIndicator.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarItemIndicator.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarRoot.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarRoot.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarSubContent.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarSubContent.mjs.map +1 -1
- package/dist/lib/components/Menubar/MenubarTrigger.mjs +1 -1
- package/dist/lib/components/Menubar/MenubarTrigger.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuContent.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuLink.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuList.mjs +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuList.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuTrigger.mjs.map +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs +1 -1
- package/dist/lib/components/NavigationMenu/NavigationMenuViewport.mjs.map +1 -1
- package/dist/lib/components/PieChart/index.mjs +1 -1
- package/dist/lib/components/PieChart/index.mjs.map +1 -1
- package/dist/lib/components/Popover/PopoverClose.mjs +1 -1
- package/dist/lib/components/Popover/PopoverClose.mjs.map +1 -1
- package/dist/lib/components/Popover/PopoverContent.mjs +1 -1
- package/dist/lib/components/Popover/PopoverContent.mjs.map +1 -1
- package/dist/lib/components/Popover/PopoverRoot.d.ts +1 -2
- package/dist/lib/components/Progress/index.mjs +1 -1
- package/dist/lib/components/Progress/index.mjs.map +1 -1
- package/dist/lib/components/RadarChart/index.mjs +1 -1
- package/dist/lib/components/RadarChart/index.mjs.map +1 -1
- package/dist/lib/components/Radio/index.mjs +1 -1
- package/dist/lib/components/Radio/index.mjs.map +1 -1
- package/dist/lib/components/RadioCards/RadioCardsItem.mjs +1 -1
- package/dist/lib/components/RadioCards/RadioCardsItem.mjs.map +1 -1
- package/dist/lib/components/RadioCards/RadioCardsRoot.mjs +1 -1
- package/dist/lib/components/RadioCards/RadioCardsRoot.mjs.map +1 -1
- package/dist/lib/components/RadioGroup/RadioGroupItem.mjs +1 -1
- package/dist/lib/components/RadioGroup/RadioGroupItem.mjs.map +1 -1
- package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs +1 -1
- package/dist/lib/components/RadioGroup/RadioGroupRoot.mjs.map +1 -1
- package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs +1 -1
- package/dist/lib/components/SegmentedControl/SegmentedControlRoot.mjs.map +1 -1
- package/dist/lib/components/Select/index.mjs +1 -1
- package/dist/lib/components/Select/index.mjs.map +1 -1
- package/dist/lib/components/Separator/index.mjs +1 -1
- package/dist/lib/components/Separator/index.mjs.map +1 -1
- package/dist/lib/components/Skeleton/index.mjs +1 -1
- package/dist/lib/components/Skeleton/index.mjs.map +1 -1
- package/dist/lib/components/Slider/index.mjs +1 -1
- package/dist/lib/components/Slider/index.mjs.map +1 -1
- package/dist/lib/components/Spinner/index.mjs +1 -1
- package/dist/lib/components/Spinner/index.mjs.map +1 -1
- package/dist/lib/components/TabNav/index.mjs +1 -1
- package/dist/lib/components/TabNav/index.mjs.map +1 -1
- package/dist/lib/components/Table/index.mjs +1 -1
- package/dist/lib/components/Table/index.mjs.map +1 -1
- package/dist/lib/components/Tabs/index.mjs +1 -1
- package/dist/lib/components/Tabs/index.mjs.map +1 -1
- package/dist/lib/components/TextArea/index.mjs +1 -1
- package/dist/lib/components/TextArea/index.mjs.map +1 -1
- package/dist/lib/components/TextField/index.mjs +1 -1
- package/dist/lib/components/TextField/index.mjs.map +1 -1
- package/dist/lib/components/Toast/ToastActionButton.mjs +1 -1
- package/dist/lib/components/Toast/ToastActionButton.mjs.map +1 -1
- package/dist/lib/components/Toast/ToastDescription.mjs +1 -1
- package/dist/lib/components/Toast/ToastDescription.mjs.map +1 -1
- package/dist/lib/components/Toast/ToastRoot.mjs +1 -1
- package/dist/lib/components/Toast/ToastRoot.mjs.map +1 -1
- package/dist/lib/components/Toast/ToastTitle.mjs +1 -1
- package/dist/lib/components/Toast/ToastTitle.mjs.map +1 -1
- package/dist/lib/components/Toggle/ToggleWithText.mjs +1 -1
- package/dist/lib/components/Toggle/ToggleWithText.mjs.map +1 -1
- package/dist/lib/components/Toggle/index.mjs +1 -1
- package/dist/lib/components/Toggle/index.mjs.map +1 -1
- package/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs +1 -1
- package/dist/lib/components/ToggleGroup/ToggleGroupItem.mjs.map +1 -1
- package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs +1 -1
- package/dist/lib/components/ToggleGroup/ToggleGroupRoot.mjs.map +1 -1
- package/dist/lib/components/ToggleSwitch/index.mjs +1 -1
- package/dist/lib/components/ToggleSwitch/index.mjs.map +1 -1
- package/dist/lib/components/Tooltip/index.mjs +1 -1
- package/dist/lib/components/Tooltip/index.mjs.map +1 -1
- package/dist/lib/utils/utils.mjs +1 -1
- package/dist/lib/utils/utils.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-menu/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/react-select/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/react-select/dist/index.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/callout.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/data-list.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/dialog.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/flex.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/grid.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/heading.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/hover-card.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/inset.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/popover.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/progress.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-cards.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio-group.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/radio.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/scroll-area.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/segmented-control.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/select.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/separator.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/skeleton.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/slider.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/spinner.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/switch.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tab-nav.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/table.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/tabs.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-area.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text-field.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/text.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/components/theme.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/extract-props.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/dist/esm/helpers/get-margin-styles.mjs.map +1 -1
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs +1 -1
- package/dist/node_modules/@radix-ui/themes/node_modules/@radix-ui/react-popover/dist/index.mjs.map +1 -1
- package/dist/node_modules/chart.js/dist/chart.mjs +2 -2
- package/dist/node_modules/chart.js/dist/chart.mjs.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/_virtual/_commonjsHelpers.mjs +0 -2
- package/dist/_virtual/_commonjsHelpers.mjs.map +0 -1
- package/dist/_virtual/index.mjs +0 -2
- package/dist/_virtual/index.mjs.map +0 -1
- package/dist/_virtual/index2.mjs +0 -2
- package/dist/_virtual/index2.mjs.map +0 -1
- package/dist/node_modules/aria-hidden/dist/es2015/index.mjs +0 -2
- package/dist/node_modules/aria-hidden/dist/es2015/index.mjs.map +0 -1
- package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.mjs +0 -8
- package/dist/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.mjs.map +0 -1
- package/dist/node_modules/class-variance-authority/dist/index.mjs +0 -2
- package/dist/node_modules/class-variance-authority/dist/index.mjs.map +0 -1
- package/dist/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs +0 -2
- package/dist/node_modules/class-variance-authority/node_modules/clsx/dist/clsx.mjs.map +0 -1
- package/dist/node_modules/classnames/index.mjs +0 -7
- package/dist/node_modules/classnames/index.mjs.map +0 -1
- package/dist/node_modules/clsx/dist/clsx.mjs +0 -2
- package/dist/node_modules/clsx/dist/clsx.mjs.map +0 -1
- package/dist/node_modules/get-nonce/dist/es2015/index.mjs +0 -2
- package/dist/node_modules/get-nonce/dist/es2015/index.mjs.map +0 -1
- package/dist/node_modules/react-chartjs-2/dist/index.mjs +0 -2
- package/dist/node_modules/react-chartjs-2/dist/index.mjs.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.mjs +0 -2
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.mjs.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.mjs +0 -2
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.mjs.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.mjs +0 -2
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.mjs.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.mjs +0 -2
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.mjs.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.mjs +0 -2
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.mjs.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.mjs +0 -2
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.mjs.map +0 -1
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.mjs +0 -2
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.mjs.map +0 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.mjs +0 -2
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.mjs.map +0 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.mjs +0 -2
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.mjs.map +0 -1
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.mjs +0 -2
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.mjs.map +0 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/component.mjs +0 -2
- package/dist/node_modules/react-style-singleton/dist/es2015/component.mjs.map +0 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.mjs +0 -2
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.mjs.map +0 -1
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.mjs +0 -2
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.mjs.map +0 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.mjs +0 -2
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.mjs.map +0 -1
- package/dist/node_modules/tslib/tslib.es6.mjs +0 -2
- package/dist/node_modules/tslib/tslib.es6.mjs.map +0 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.mjs +0 -2
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.mjs.map +0 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.mjs +0 -2
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.mjs.map +0 -1
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.mjs +0 -2
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.mjs.map +0 -1
- package/dist/node_modules/use-sidecar/dist/es2015/exports.mjs +0 -2
- package/dist/node_modules/use-sidecar/dist/es2015/exports.mjs.map +0 -1
- package/dist/node_modules/use-sidecar/dist/es2015/medium.mjs +0 -2
- package/dist/node_modules/use-sidecar/dist/es2015/medium.mjs.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-select/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/select/src/Select.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { clamp } from \"@radix-ui/number\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { useId } from \"@radix-ui/react-id\";\nimport * as PopperPrimitive from \"@radix-ui/react-popper\";\nimport { createPopperScope } from \"@radix-ui/react-popper\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { usePrevious } from \"@radix-ui/react-use-previous\";\nimport { VisuallyHidden } from \"@radix-ui/react-visually-hidden\";\nimport { hideOthers } from \"aria-hidden\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar OPEN_KEYS = [\" \", \"Enter\", \"ArrowUp\", \"ArrowDown\"];\nvar SELECTION_KEYS = [\" \", \"Enter\"];\nvar SELECT_NAME = \"Select\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(SELECT_NAME);\nvar [createSelectContext, createSelectScope] = createContextScope(SELECT_NAME, [\n createCollectionScope,\n createPopperScope\n]);\nvar usePopperScope = createPopperScope();\nvar [SelectProvider, useSelectContext] = createSelectContext(SELECT_NAME);\nvar [SelectNativeOptionsProvider, useSelectNativeOptionsContext] = createSelectContext(SELECT_NAME);\nvar Select = (props) => {\n const {\n __scopeSelect,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n value: valueProp,\n defaultValue,\n onValueChange,\n dir,\n name,\n autoComplete,\n disabled,\n required\n } = props;\n const popperScope = usePopperScope(__scopeSelect);\n const [trigger, setTrigger] = React.useState(null);\n const [valueNode, setValueNode] = React.useState(null);\n const [valueNodeHasChildren, setValueNodeHasChildren] = React.useState(false);\n const direction = useDirection(dir);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n const [value, setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue,\n onChange: onValueChange\n });\n const triggerPointerDownPosRef = React.useRef(null);\n const isFormControl = trigger ? Boolean(trigger.closest(\"form\")) : true;\n const [nativeOptionsSet, setNativeOptionsSet] = React.useState(/* @__PURE__ */ new Set());\n const nativeSelectKey = Array.from(nativeOptionsSet).map((option) => option.props.value).join(\";\");\n return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsxs(\n SelectProvider,\n {\n required,\n scope: __scopeSelect,\n trigger,\n onTriggerChange: setTrigger,\n valueNode,\n onValueNodeChange: setValueNode,\n valueNodeHasChildren,\n onValueNodeHasChildrenChange: setValueNodeHasChildren,\n contentId: useId(),\n value,\n onValueChange: setValue,\n open,\n onOpenChange: setOpen,\n dir: direction,\n triggerPointerDownPosRef,\n disabled,\n children: [\n /* @__PURE__ */ jsx(Collection.Provider, { scope: __scopeSelect, children: /* @__PURE__ */ jsx(\n SelectNativeOptionsProvider,\n {\n scope: props.__scopeSelect,\n onNativeOptionAdd: React.useCallback((option) => {\n setNativeOptionsSet((prev) => new Set(prev).add(option));\n }, []),\n onNativeOptionRemove: React.useCallback((option) => {\n setNativeOptionsSet((prev) => {\n const optionsSet = new Set(prev);\n optionsSet.delete(option);\n return optionsSet;\n });\n }, []),\n children\n }\n ) }),\n isFormControl ? /* @__PURE__ */ jsxs(\n BubbleSelect,\n {\n \"aria-hidden\": true,\n required,\n tabIndex: -1,\n name,\n autoComplete,\n value,\n onChange: (event) => setValue(event.target.value),\n disabled,\n children: [\n value === void 0 ? /* @__PURE__ */ jsx(\"option\", { value: \"\" }) : null,\n Array.from(nativeOptionsSet)\n ]\n },\n nativeSelectKey\n ) : null\n ]\n }\n ) });\n};\nSelect.displayName = SELECT_NAME;\nvar TRIGGER_NAME = \"SelectTrigger\";\nvar SelectTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, disabled = false, ...triggerProps } = props;\n const popperScope = usePopperScope(__scopeSelect);\n const context = useSelectContext(TRIGGER_NAME, __scopeSelect);\n const isDisabled = context.disabled || disabled;\n const composedRefs = useComposedRefs(forwardedRef, context.onTriggerChange);\n const getItems = useCollection(__scopeSelect);\n const [searchRef, handleTypeaheadSearch, resetTypeahead] = useTypeaheadSearch((search) => {\n const enabledItems = getItems().filter((item) => !item.disabled);\n const currentItem = enabledItems.find((item) => item.value === context.value);\n const nextItem = findNextItem(enabledItems, search, currentItem);\n if (nextItem !== void 0) {\n context.onValueChange(nextItem.value);\n }\n });\n const handleOpen = () => {\n if (!isDisabled) {\n context.onOpenChange(true);\n resetTypeahead();\n }\n };\n return /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n role: \"combobox\",\n \"aria-controls\": context.contentId,\n \"aria-expanded\": context.open,\n \"aria-required\": context.required,\n \"aria-autocomplete\": \"none\",\n dir: context.dir,\n \"data-state\": context.open ? \"open\" : \"closed\",\n disabled: isDisabled,\n \"data-disabled\": isDisabled ? \"\" : void 0,\n \"data-placeholder\": shouldShowPlaceholder(context.value) ? \"\" : void 0,\n ...triggerProps,\n ref: composedRefs,\n onClick: composeEventHandlers(triggerProps.onClick, (event) => {\n event.currentTarget.focus();\n }),\n onPointerDown: composeEventHandlers(triggerProps.onPointerDown, (event) => {\n const target = event.target;\n if (target.hasPointerCapture(event.pointerId)) {\n target.releasePointerCapture(event.pointerId);\n }\n if (event.button === 0 && event.ctrlKey === false) {\n handleOpen();\n context.triggerPointerDownPosRef.current = {\n x: Math.round(event.pageX),\n y: Math.round(event.pageY)\n };\n event.preventDefault();\n }\n }),\n onKeyDown: composeEventHandlers(triggerProps.onKeyDown, (event) => {\n const isTypingAhead = searchRef.current !== \"\";\n const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;\n if (!isModifierKey && event.key.length === 1) handleTypeaheadSearch(event.key);\n if (isTypingAhead && event.key === \" \") return;\n if (OPEN_KEYS.includes(event.key)) {\n handleOpen();\n event.preventDefault();\n }\n })\n }\n ) });\n }\n);\nSelectTrigger.displayName = TRIGGER_NAME;\nvar VALUE_NAME = \"SelectValue\";\nvar SelectValue = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, className, style, children, placeholder = \"\", ...valueProps } = props;\n const context = useSelectContext(VALUE_NAME, __scopeSelect);\n const { onValueNodeHasChildrenChange } = context;\n const hasChildren = children !== void 0;\n const composedRefs = useComposedRefs(forwardedRef, context.onValueNodeChange);\n useLayoutEffect(() => {\n onValueNodeHasChildrenChange(hasChildren);\n }, [onValueNodeHasChildrenChange, hasChildren]);\n return /* @__PURE__ */ jsx(\n Primitive.span,\n {\n ...valueProps,\n ref: composedRefs,\n style: { pointerEvents: \"none\" },\n children: shouldShowPlaceholder(context.value) ? /* @__PURE__ */ jsx(Fragment, { children: placeholder }) : children\n }\n );\n }\n);\nSelectValue.displayName = VALUE_NAME;\nvar ICON_NAME = \"SelectIcon\";\nvar SelectIcon = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, children, ...iconProps } = props;\n return /* @__PURE__ */ jsx(Primitive.span, { \"aria-hidden\": true, ...iconProps, ref: forwardedRef, children: children || \"\\u25BC\" });\n }\n);\nSelectIcon.displayName = ICON_NAME;\nvar PORTAL_NAME = \"SelectPortal\";\nvar SelectPortal = (props) => {\n return /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, ...props });\n};\nSelectPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"SelectContent\";\nvar SelectContent = React.forwardRef(\n (props, forwardedRef) => {\n const context = useSelectContext(CONTENT_NAME, props.__scopeSelect);\n const [fragment, setFragment] = React.useState();\n useLayoutEffect(() => {\n setFragment(new DocumentFragment());\n }, []);\n if (!context.open) {\n const frag = fragment;\n return frag ? ReactDOM.createPortal(\n /* @__PURE__ */ jsx(SelectContentProvider, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsx(\"div\", { children: props.children }) }) }),\n frag\n ) : null;\n }\n return /* @__PURE__ */ jsx(SelectContentImpl, { ...props, ref: forwardedRef });\n }\n);\nSelectContent.displayName = CONTENT_NAME;\nvar CONTENT_MARGIN = 10;\nvar [SelectContentProvider, useSelectContentContext] = createSelectContext(CONTENT_NAME);\nvar CONTENT_IMPL_NAME = \"SelectContentImpl\";\nvar SelectContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeSelect,\n position = \"item-aligned\",\n onCloseAutoFocus,\n onEscapeKeyDown,\n onPointerDownOutside,\n //\n // PopperContent props\n side,\n sideOffset,\n align,\n alignOffset,\n arrowPadding,\n collisionBoundary,\n collisionPadding,\n sticky,\n hideWhenDetached,\n avoidCollisions,\n //\n ...contentProps\n } = props;\n const context = useSelectContext(CONTENT_NAME, __scopeSelect);\n const [content, setContent] = React.useState(null);\n const [viewport, setViewport] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));\n const [selectedItem, setSelectedItem] = React.useState(null);\n const [selectedItemText, setSelectedItemText] = React.useState(\n null\n );\n const getItems = useCollection(__scopeSelect);\n const [isPositioned, setIsPositioned] = React.useState(false);\n const firstValidItemFoundRef = React.useRef(false);\n React.useEffect(() => {\n if (content) return hideOthers(content);\n }, [content]);\n useFocusGuards();\n const focusFirst = React.useCallback(\n (candidates) => {\n const [firstItem, ...restItems] = getItems().map((item) => item.ref.current);\n const [lastItem] = restItems.slice(-1);\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate?.scrollIntoView({ block: \"nearest\" });\n if (candidate === firstItem && viewport) viewport.scrollTop = 0;\n if (candidate === lastItem && viewport) viewport.scrollTop = viewport.scrollHeight;\n candidate?.focus();\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n },\n [getItems, viewport]\n );\n const focusSelectedItem = React.useCallback(\n () => focusFirst([selectedItem, content]),\n [focusFirst, selectedItem, content]\n );\n React.useEffect(() => {\n if (isPositioned) {\n focusSelectedItem();\n }\n }, [isPositioned, focusSelectedItem]);\n const { onOpenChange, triggerPointerDownPosRef } = context;\n React.useEffect(() => {\n if (content) {\n let pointerMoveDelta = { x: 0, y: 0 };\n const handlePointerMove = (event) => {\n pointerMoveDelta = {\n x: Math.abs(Math.round(event.pageX) - (triggerPointerDownPosRef.current?.x ?? 0)),\n y: Math.abs(Math.round(event.pageY) - (triggerPointerDownPosRef.current?.y ?? 0))\n };\n };\n const handlePointerUp = (event) => {\n if (pointerMoveDelta.x <= 10 && pointerMoveDelta.y <= 10) {\n event.preventDefault();\n } else {\n if (!content.contains(event.target)) {\n onOpenChange(false);\n }\n }\n document.removeEventListener(\"pointermove\", handlePointerMove);\n triggerPointerDownPosRef.current = null;\n };\n if (triggerPointerDownPosRef.current !== null) {\n document.addEventListener(\"pointermove\", handlePointerMove);\n document.addEventListener(\"pointerup\", handlePointerUp, { capture: true, once: true });\n }\n return () => {\n document.removeEventListener(\"pointermove\", handlePointerMove);\n document.removeEventListener(\"pointerup\", handlePointerUp, { capture: true });\n };\n }\n }, [content, onOpenChange, triggerPointerDownPosRef]);\n React.useEffect(() => {\n const close = () => onOpenChange(false);\n window.addEventListener(\"blur\", close);\n window.addEventListener(\"resize\", close);\n return () => {\n window.removeEventListener(\"blur\", close);\n window.removeEventListener(\"resize\", close);\n };\n }, [onOpenChange]);\n const [searchRef, handleTypeaheadSearch] = useTypeaheadSearch((search) => {\n const enabledItems = getItems().filter((item) => !item.disabled);\n const currentItem = enabledItems.find((item) => item.ref.current === document.activeElement);\n const nextItem = findNextItem(enabledItems, search, currentItem);\n if (nextItem) {\n setTimeout(() => nextItem.ref.current.focus());\n }\n });\n const itemRefCallback = React.useCallback(\n (node, value, disabled) => {\n const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;\n const isSelectedItem = context.value !== void 0 && context.value === value;\n if (isSelectedItem || isFirstValidItem) {\n setSelectedItem(node);\n if (isFirstValidItem) firstValidItemFoundRef.current = true;\n }\n },\n [context.value]\n );\n const handleItemLeave = React.useCallback(() => content?.focus(), [content]);\n const itemTextRefCallback = React.useCallback(\n (node, value, disabled) => {\n const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;\n const isSelectedItem = context.value !== void 0 && context.value === value;\n if (isSelectedItem || isFirstValidItem) {\n setSelectedItemText(node);\n }\n },\n [context.value]\n );\n const SelectPosition = position === \"popper\" ? SelectPopperPosition : SelectItemAlignedPosition;\n const popperContentProps = SelectPosition === SelectPopperPosition ? {\n side,\n sideOffset,\n align,\n alignOffset,\n arrowPadding,\n collisionBoundary,\n collisionPadding,\n sticky,\n hideWhenDetached,\n avoidCollisions\n } : {};\n return /* @__PURE__ */ jsx(\n SelectContentProvider,\n {\n scope: __scopeSelect,\n content,\n viewport,\n onViewportChange: setViewport,\n itemRefCallback,\n selectedItem,\n onItemLeave: handleItemLeave,\n itemTextRefCallback,\n focusSelectedItem,\n selectedItemText,\n position,\n isPositioned,\n searchRef,\n children: /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n trapped: context.open,\n onMountAutoFocus: (event) => {\n event.preventDefault();\n },\n onUnmountAutoFocus: composeEventHandlers(onCloseAutoFocus, (event) => {\n context.trigger?.focus({ preventScroll: true });\n event.preventDefault();\n }),\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n asChild: true,\n disableOutsidePointerEvents: true,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside: (event) => event.preventDefault(),\n onDismiss: () => context.onOpenChange(false),\n children: /* @__PURE__ */ jsx(\n SelectPosition,\n {\n role: \"listbox\",\n id: context.contentId,\n \"data-state\": context.open ? \"open\" : \"closed\",\n dir: context.dir,\n onContextMenu: (event) => event.preventDefault(),\n ...contentProps,\n ...popperContentProps,\n onPlaced: () => setIsPositioned(true),\n ref: composedRefs,\n style: {\n // flex layout so we can place the scroll buttons properly\n display: \"flex\",\n flexDirection: \"column\",\n // reset the outline by default as the content MAY get focused\n outline: \"none\",\n ...contentProps.style\n },\n onKeyDown: composeEventHandlers(contentProps.onKeyDown, (event) => {\n const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;\n if (event.key === \"Tab\") event.preventDefault();\n if (!isModifierKey && event.key.length === 1) handleTypeaheadSearch(event.key);\n if ([\"ArrowUp\", \"ArrowDown\", \"Home\", \"End\"].includes(event.key)) {\n const items = getItems().filter((item) => !item.disabled);\n let candidateNodes = items.map((item) => item.ref.current);\n if ([\"ArrowUp\", \"End\"].includes(event.key)) {\n candidateNodes = candidateNodes.slice().reverse();\n }\n if ([\"ArrowUp\", \"ArrowDown\"].includes(event.key)) {\n const currentElement = event.target;\n const currentIndex = candidateNodes.indexOf(currentElement);\n candidateNodes = candidateNodes.slice(currentIndex + 1);\n }\n setTimeout(() => focusFirst(candidateNodes));\n event.preventDefault();\n }\n })\n }\n )\n }\n )\n }\n ) })\n }\n );\n }\n);\nSelectContentImpl.displayName = CONTENT_IMPL_NAME;\nvar ITEM_ALIGNED_POSITION_NAME = \"SelectItemAlignedPosition\";\nvar SelectItemAlignedPosition = React.forwardRef((props, forwardedRef) => {\n const { __scopeSelect, onPlaced, ...popperProps } = props;\n const context = useSelectContext(CONTENT_NAME, __scopeSelect);\n const contentContext = useSelectContentContext(CONTENT_NAME, __scopeSelect);\n const [contentWrapper, setContentWrapper] = React.useState(null);\n const [content, setContent] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));\n const getItems = useCollection(__scopeSelect);\n const shouldExpandOnScrollRef = React.useRef(false);\n const shouldRepositionRef = React.useRef(true);\n const { viewport, selectedItem, selectedItemText, focusSelectedItem } = contentContext;\n const position = React.useCallback(() => {\n if (context.trigger && context.valueNode && contentWrapper && content && viewport && selectedItem && selectedItemText) {\n const triggerRect = context.trigger.getBoundingClientRect();\n const contentRect = content.getBoundingClientRect();\n const valueNodeRect = context.valueNode.getBoundingClientRect();\n const itemTextRect = selectedItemText.getBoundingClientRect();\n if (context.dir !== \"rtl\") {\n const itemTextOffset = itemTextRect.left - contentRect.left;\n const left = valueNodeRect.left - itemTextOffset;\n const leftDelta = triggerRect.left - left;\n const minContentWidth = triggerRect.width + leftDelta;\n const contentWidth = Math.max(minContentWidth, contentRect.width);\n const rightEdge = window.innerWidth - CONTENT_MARGIN;\n const clampedLeft = clamp(left, [CONTENT_MARGIN, rightEdge - contentWidth]);\n contentWrapper.style.minWidth = minContentWidth + \"px\";\n contentWrapper.style.left = clampedLeft + \"px\";\n } else {\n const itemTextOffset = contentRect.right - itemTextRect.right;\n const right = window.innerWidth - valueNodeRect.right - itemTextOffset;\n const rightDelta = window.innerWidth - triggerRect.right - right;\n const minContentWidth = triggerRect.width + rightDelta;\n const contentWidth = Math.max(minContentWidth, contentRect.width);\n const leftEdge = window.innerWidth - CONTENT_MARGIN;\n const clampedRight = clamp(right, [CONTENT_MARGIN, leftEdge - contentWidth]);\n contentWrapper.style.minWidth = minContentWidth + \"px\";\n contentWrapper.style.right = clampedRight + \"px\";\n }\n const items = getItems();\n const availableHeight = window.innerHeight - CONTENT_MARGIN * 2;\n const itemsHeight = viewport.scrollHeight;\n const contentStyles = window.getComputedStyle(content);\n const contentBorderTopWidth = parseInt(contentStyles.borderTopWidth, 10);\n const contentPaddingTop = parseInt(contentStyles.paddingTop, 10);\n const contentBorderBottomWidth = parseInt(contentStyles.borderBottomWidth, 10);\n const contentPaddingBottom = parseInt(contentStyles.paddingBottom, 10);\n const fullContentHeight = contentBorderTopWidth + contentPaddingTop + itemsHeight + contentPaddingBottom + contentBorderBottomWidth;\n const minContentHeight = Math.min(selectedItem.offsetHeight * 5, fullContentHeight);\n const viewportStyles = window.getComputedStyle(viewport);\n const viewportPaddingTop = parseInt(viewportStyles.paddingTop, 10);\n const viewportPaddingBottom = parseInt(viewportStyles.paddingBottom, 10);\n const topEdgeToTriggerMiddle = triggerRect.top + triggerRect.height / 2 - CONTENT_MARGIN;\n const triggerMiddleToBottomEdge = availableHeight - topEdgeToTriggerMiddle;\n const selectedItemHalfHeight = selectedItem.offsetHeight / 2;\n const itemOffsetMiddle = selectedItem.offsetTop + selectedItemHalfHeight;\n const contentTopToItemMiddle = contentBorderTopWidth + contentPaddingTop + itemOffsetMiddle;\n const itemMiddleToContentBottom = fullContentHeight - contentTopToItemMiddle;\n const willAlignWithoutTopOverflow = contentTopToItemMiddle <= topEdgeToTriggerMiddle;\n if (willAlignWithoutTopOverflow) {\n const isLastItem = selectedItem === items[items.length - 1].ref.current;\n contentWrapper.style.bottom = \"0px\";\n const viewportOffsetBottom = content.clientHeight - viewport.offsetTop - viewport.offsetHeight;\n const clampedTriggerMiddleToBottomEdge = Math.max(\n triggerMiddleToBottomEdge,\n selectedItemHalfHeight + // viewport might have padding bottom, include it to avoid a scrollable viewport\n (isLastItem ? viewportPaddingBottom : 0) + viewportOffsetBottom + contentBorderBottomWidth\n );\n const height = contentTopToItemMiddle + clampedTriggerMiddleToBottomEdge;\n contentWrapper.style.height = height + \"px\";\n } else {\n const isFirstItem = selectedItem === items[0].ref.current;\n contentWrapper.style.top = \"0px\";\n const clampedTopEdgeToTriggerMiddle = Math.max(\n topEdgeToTriggerMiddle,\n contentBorderTopWidth + viewport.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport\n (isFirstItem ? viewportPaddingTop : 0) + selectedItemHalfHeight\n );\n const height = clampedTopEdgeToTriggerMiddle + itemMiddleToContentBottom;\n contentWrapper.style.height = height + \"px\";\n viewport.scrollTop = contentTopToItemMiddle - topEdgeToTriggerMiddle + viewport.offsetTop;\n }\n contentWrapper.style.margin = `${CONTENT_MARGIN}px 0`;\n contentWrapper.style.minHeight = minContentHeight + \"px\";\n contentWrapper.style.maxHeight = availableHeight + \"px\";\n onPlaced?.();\n requestAnimationFrame(() => shouldExpandOnScrollRef.current = true);\n }\n }, [\n getItems,\n context.trigger,\n context.valueNode,\n contentWrapper,\n content,\n viewport,\n selectedItem,\n selectedItemText,\n context.dir,\n onPlaced\n ]);\n useLayoutEffect(() => position(), [position]);\n const [contentZIndex, setContentZIndex] = React.useState();\n useLayoutEffect(() => {\n if (content) setContentZIndex(window.getComputedStyle(content).zIndex);\n }, [content]);\n const handleScrollButtonChange = React.useCallback(\n (node) => {\n if (node && shouldRepositionRef.current === true) {\n position();\n focusSelectedItem?.();\n shouldRepositionRef.current = false;\n }\n },\n [position, focusSelectedItem]\n );\n return /* @__PURE__ */ jsx(\n SelectViewportProvider,\n {\n scope: __scopeSelect,\n contentWrapper,\n shouldExpandOnScrollRef,\n onScrollButtonChange: handleScrollButtonChange,\n children: /* @__PURE__ */ jsx(\n \"div\",\n {\n ref: setContentWrapper,\n style: {\n display: \"flex\",\n flexDirection: \"column\",\n position: \"fixed\",\n zIndex: contentZIndex\n },\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...popperProps,\n ref: composedRefs,\n style: {\n // When we get the height of the content, it includes borders. If we were to set\n // the height without having `boxSizing: 'border-box'` it would be too big.\n boxSizing: \"border-box\",\n // We need to ensure the content doesn't get taller than the wrapper\n maxHeight: \"100%\",\n ...popperProps.style\n }\n }\n )\n }\n )\n }\n );\n});\nSelectItemAlignedPosition.displayName = ITEM_ALIGNED_POSITION_NAME;\nvar POPPER_POSITION_NAME = \"SelectPopperPosition\";\nvar SelectPopperPosition = React.forwardRef((props, forwardedRef) => {\n const {\n __scopeSelect,\n align = \"start\",\n collisionPadding = CONTENT_MARGIN,\n ...popperProps\n } = props;\n const popperScope = usePopperScope(__scopeSelect);\n return /* @__PURE__ */ jsx(\n PopperPrimitive.Content,\n {\n ...popperScope,\n ...popperProps,\n ref: forwardedRef,\n align,\n collisionPadding,\n style: {\n // Ensure border-box for floating-ui calculations\n boxSizing: \"border-box\",\n ...popperProps.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-select-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-select-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-select-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-select-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-select-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n );\n});\nSelectPopperPosition.displayName = POPPER_POSITION_NAME;\nvar [SelectViewportProvider, useSelectViewportContext] = createSelectContext(CONTENT_NAME, {});\nvar VIEWPORT_NAME = \"SelectViewport\";\nvar SelectViewport = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, nonce, ...viewportProps } = props;\n const contentContext = useSelectContentContext(VIEWPORT_NAME, __scopeSelect);\n const viewportContext = useSelectViewportContext(VIEWPORT_NAME, __scopeSelect);\n const composedRefs = useComposedRefs(forwardedRef, contentContext.onViewportChange);\n const prevScrollTopRef = React.useRef(0);\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n \"style\",\n {\n dangerouslySetInnerHTML: {\n __html: `[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`\n },\n nonce\n }\n ),\n /* @__PURE__ */ jsx(Collection.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-radix-select-viewport\": \"\",\n role: \"presentation\",\n ...viewportProps,\n ref: composedRefs,\n style: {\n // we use position: 'relative' here on the `viewport` so that when we call\n // `selectedItem.offsetTop` in calculations, the offset is relative to the viewport\n // (independent of the scrollUpButton).\n position: \"relative\",\n flex: 1,\n overflow: \"auto\",\n ...viewportProps.style\n },\n onScroll: composeEventHandlers(viewportProps.onScroll, (event) => {\n const viewport = event.currentTarget;\n const { contentWrapper, shouldExpandOnScrollRef } = viewportContext;\n if (shouldExpandOnScrollRef?.current && contentWrapper) {\n const scrolledBy = Math.abs(prevScrollTopRef.current - viewport.scrollTop);\n if (scrolledBy > 0) {\n const availableHeight = window.innerHeight - CONTENT_MARGIN * 2;\n const cssMinHeight = parseFloat(contentWrapper.style.minHeight);\n const cssHeight = parseFloat(contentWrapper.style.height);\n const prevHeight = Math.max(cssMinHeight, cssHeight);\n if (prevHeight < availableHeight) {\n const nextHeight = prevHeight + scrolledBy;\n const clampedNextHeight = Math.min(availableHeight, nextHeight);\n const heightDiff = nextHeight - clampedNextHeight;\n contentWrapper.style.height = clampedNextHeight + \"px\";\n if (contentWrapper.style.bottom === \"0px\") {\n viewport.scrollTop = heightDiff > 0 ? heightDiff : 0;\n contentWrapper.style.justifyContent = \"flex-end\";\n }\n }\n }\n }\n prevScrollTopRef.current = viewport.scrollTop;\n })\n }\n ) })\n ] });\n }\n);\nSelectViewport.displayName = VIEWPORT_NAME;\nvar GROUP_NAME = \"SelectGroup\";\nvar [SelectGroupContextProvider, useSelectGroupContext] = createSelectContext(GROUP_NAME);\nvar SelectGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, ...groupProps } = props;\n const groupId = useId();\n return /* @__PURE__ */ jsx(SelectGroupContextProvider, { scope: __scopeSelect, id: groupId, children: /* @__PURE__ */ jsx(Primitive.div, { role: \"group\", \"aria-labelledby\": groupId, ...groupProps, ref: forwardedRef }) });\n }\n);\nSelectGroup.displayName = GROUP_NAME;\nvar LABEL_NAME = \"SelectLabel\";\nvar SelectLabel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, ...labelProps } = props;\n const groupContext = useSelectGroupContext(LABEL_NAME, __scopeSelect);\n return /* @__PURE__ */ jsx(Primitive.div, { id: groupContext.id, ...labelProps, ref: forwardedRef });\n }\n);\nSelectLabel.displayName = LABEL_NAME;\nvar ITEM_NAME = \"SelectItem\";\nvar [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME);\nvar SelectItem = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeSelect,\n value,\n disabled = false,\n textValue: textValueProp,\n ...itemProps\n } = props;\n const context = useSelectContext(ITEM_NAME, __scopeSelect);\n const contentContext = useSelectContentContext(ITEM_NAME, __scopeSelect);\n const isSelected = context.value === value;\n const [textValue, setTextValue] = React.useState(textValueProp ?? \"\");\n const [isFocused, setIsFocused] = React.useState(false);\n const composedRefs = useComposedRefs(\n forwardedRef,\n (node) => contentContext.itemRefCallback?.(node, value, disabled)\n );\n const textId = useId();\n const handleSelect = () => {\n if (!disabled) {\n context.onValueChange(value);\n context.onOpenChange(false);\n }\n };\n if (value === \"\") {\n throw new Error(\n \"A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.\"\n );\n }\n return /* @__PURE__ */ jsx(\n SelectItemContextProvider,\n {\n scope: __scopeSelect,\n value,\n disabled,\n textId,\n isSelected,\n onItemTextChange: React.useCallback((node) => {\n setTextValue((prevTextValue) => prevTextValue || (node?.textContent ?? \"\").trim());\n }, []),\n children: /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeSelect,\n value,\n disabled,\n textValue,\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n role: \"option\",\n \"aria-labelledby\": textId,\n \"data-highlighted\": isFocused ? \"\" : void 0,\n \"aria-selected\": isSelected && isFocused,\n \"data-state\": isSelected ? \"checked\" : \"unchecked\",\n \"aria-disabled\": disabled || void 0,\n \"data-disabled\": disabled ? \"\" : void 0,\n tabIndex: disabled ? void 0 : -1,\n ...itemProps,\n ref: composedRefs,\n onFocus: composeEventHandlers(itemProps.onFocus, () => setIsFocused(true)),\n onBlur: composeEventHandlers(itemProps.onBlur, () => setIsFocused(false)),\n onPointerUp: composeEventHandlers(itemProps.onPointerUp, handleSelect),\n onPointerMove: composeEventHandlers(itemProps.onPointerMove, (event) => {\n if (disabled) {\n contentContext.onItemLeave?.();\n } else {\n event.currentTarget.focus({ preventScroll: true });\n }\n }),\n onPointerLeave: composeEventHandlers(itemProps.onPointerLeave, (event) => {\n if (event.currentTarget === document.activeElement) {\n contentContext.onItemLeave?.();\n }\n }),\n onKeyDown: composeEventHandlers(itemProps.onKeyDown, (event) => {\n const isTypingAhead = contentContext.searchRef?.current !== \"\";\n if (isTypingAhead && event.key === \" \") return;\n if (SELECTION_KEYS.includes(event.key)) handleSelect();\n if (event.key === \" \") event.preventDefault();\n })\n }\n )\n }\n )\n }\n );\n }\n);\nSelectItem.displayName = ITEM_NAME;\nvar ITEM_TEXT_NAME = \"SelectItemText\";\nvar SelectItemText = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, className, style, ...itemTextProps } = props;\n const context = useSelectContext(ITEM_TEXT_NAME, __scopeSelect);\n const contentContext = useSelectContentContext(ITEM_TEXT_NAME, __scopeSelect);\n const itemContext = useSelectItemContext(ITEM_TEXT_NAME, __scopeSelect);\n const nativeOptionsContext = useSelectNativeOptionsContext(ITEM_TEXT_NAME, __scopeSelect);\n const [itemTextNode, setItemTextNode] = React.useState(null);\n const composedRefs = useComposedRefs(\n forwardedRef,\n (node) => setItemTextNode(node),\n itemContext.onItemTextChange,\n (node) => contentContext.itemTextRefCallback?.(node, itemContext.value, itemContext.disabled)\n );\n const textContent = itemTextNode?.textContent;\n const nativeOption = React.useMemo(\n () => /* @__PURE__ */ jsx(\"option\", { value: itemContext.value, disabled: itemContext.disabled, children: textContent }, itemContext.value),\n [itemContext.disabled, itemContext.value, textContent]\n );\n const { onNativeOptionAdd, onNativeOptionRemove } = nativeOptionsContext;\n useLayoutEffect(() => {\n onNativeOptionAdd(nativeOption);\n return () => onNativeOptionRemove(nativeOption);\n }, [onNativeOptionAdd, onNativeOptionRemove, nativeOption]);\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(Primitive.span, { id: itemContext.textId, ...itemTextProps, ref: composedRefs }),\n itemContext.isSelected && context.valueNode && !context.valueNodeHasChildren ? ReactDOM.createPortal(itemTextProps.children, context.valueNode) : null\n ] });\n }\n);\nSelectItemText.displayName = ITEM_TEXT_NAME;\nvar ITEM_INDICATOR_NAME = \"SelectItemIndicator\";\nvar SelectItemIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, ...itemIndicatorProps } = props;\n const itemContext = useSelectItemContext(ITEM_INDICATOR_NAME, __scopeSelect);\n return itemContext.isSelected ? /* @__PURE__ */ jsx(Primitive.span, { \"aria-hidden\": true, ...itemIndicatorProps, ref: forwardedRef }) : null;\n }\n);\nSelectItemIndicator.displayName = ITEM_INDICATOR_NAME;\nvar SCROLL_UP_BUTTON_NAME = \"SelectScrollUpButton\";\nvar SelectScrollUpButton = React.forwardRef((props, forwardedRef) => {\n const contentContext = useSelectContentContext(SCROLL_UP_BUTTON_NAME, props.__scopeSelect);\n const viewportContext = useSelectViewportContext(SCROLL_UP_BUTTON_NAME, props.__scopeSelect);\n const [canScrollUp, setCanScrollUp] = React.useState(false);\n const composedRefs = useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);\n useLayoutEffect(() => {\n if (contentContext.viewport && contentContext.isPositioned) {\n let handleScroll2 = function() {\n const canScrollUp2 = viewport.scrollTop > 0;\n setCanScrollUp(canScrollUp2);\n };\n var handleScroll = handleScroll2;\n const viewport = contentContext.viewport;\n handleScroll2();\n viewport.addEventListener(\"scroll\", handleScroll2);\n return () => viewport.removeEventListener(\"scroll\", handleScroll2);\n }\n }, [contentContext.viewport, contentContext.isPositioned]);\n return canScrollUp ? /* @__PURE__ */ jsx(\n SelectScrollButtonImpl,\n {\n ...props,\n ref: composedRefs,\n onAutoScroll: () => {\n const { viewport, selectedItem } = contentContext;\n if (viewport && selectedItem) {\n viewport.scrollTop = viewport.scrollTop - selectedItem.offsetHeight;\n }\n }\n }\n ) : null;\n});\nSelectScrollUpButton.displayName = SCROLL_UP_BUTTON_NAME;\nvar SCROLL_DOWN_BUTTON_NAME = \"SelectScrollDownButton\";\nvar SelectScrollDownButton = React.forwardRef((props, forwardedRef) => {\n const contentContext = useSelectContentContext(SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);\n const viewportContext = useSelectViewportContext(SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);\n const [canScrollDown, setCanScrollDown] = React.useState(false);\n const composedRefs = useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);\n useLayoutEffect(() => {\n if (contentContext.viewport && contentContext.isPositioned) {\n let handleScroll2 = function() {\n const maxScroll = viewport.scrollHeight - viewport.clientHeight;\n const canScrollDown2 = Math.ceil(viewport.scrollTop) < maxScroll;\n setCanScrollDown(canScrollDown2);\n };\n var handleScroll = handleScroll2;\n const viewport = contentContext.viewport;\n handleScroll2();\n viewport.addEventListener(\"scroll\", handleScroll2);\n return () => viewport.removeEventListener(\"scroll\", handleScroll2);\n }\n }, [contentContext.viewport, contentContext.isPositioned]);\n return canScrollDown ? /* @__PURE__ */ jsx(\n SelectScrollButtonImpl,\n {\n ...props,\n ref: composedRefs,\n onAutoScroll: () => {\n const { viewport, selectedItem } = contentContext;\n if (viewport && selectedItem) {\n viewport.scrollTop = viewport.scrollTop + selectedItem.offsetHeight;\n }\n }\n }\n ) : null;\n});\nSelectScrollDownButton.displayName = SCROLL_DOWN_BUTTON_NAME;\nvar SelectScrollButtonImpl = React.forwardRef((props, forwardedRef) => {\n const { __scopeSelect, onAutoScroll, ...scrollIndicatorProps } = props;\n const contentContext = useSelectContentContext(\"SelectScrollButton\", __scopeSelect);\n const autoScrollTimerRef = React.useRef(null);\n const getItems = useCollection(__scopeSelect);\n const clearAutoScrollTimer = React.useCallback(() => {\n if (autoScrollTimerRef.current !== null) {\n window.clearInterval(autoScrollTimerRef.current);\n autoScrollTimerRef.current = null;\n }\n }, []);\n React.useEffect(() => {\n return () => clearAutoScrollTimer();\n }, [clearAutoScrollTimer]);\n useLayoutEffect(() => {\n const activeItem = getItems().find((item) => item.ref.current === document.activeElement);\n activeItem?.ref.current?.scrollIntoView({ block: \"nearest\" });\n }, [getItems]);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"aria-hidden\": true,\n ...scrollIndicatorProps,\n ref: forwardedRef,\n style: { flexShrink: 0, ...scrollIndicatorProps.style },\n onPointerDown: composeEventHandlers(scrollIndicatorProps.onPointerDown, () => {\n if (autoScrollTimerRef.current === null) {\n autoScrollTimerRef.current = window.setInterval(onAutoScroll, 50);\n }\n }),\n onPointerMove: composeEventHandlers(scrollIndicatorProps.onPointerMove, () => {\n contentContext.onItemLeave?.();\n if (autoScrollTimerRef.current === null) {\n autoScrollTimerRef.current = window.setInterval(onAutoScroll, 50);\n }\n }),\n onPointerLeave: composeEventHandlers(scrollIndicatorProps.onPointerLeave, () => {\n clearAutoScrollTimer();\n })\n }\n );\n});\nvar SEPARATOR_NAME = \"SelectSeparator\";\nvar SelectSeparator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, ...separatorProps } = props;\n return /* @__PURE__ */ jsx(Primitive.div, { \"aria-hidden\": true, ...separatorProps, ref: forwardedRef });\n }\n);\nSelectSeparator.displayName = SEPARATOR_NAME;\nvar ARROW_NAME = \"SelectArrow\";\nvar SelectArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, ...arrowProps } = props;\n const popperScope = usePopperScope(__scopeSelect);\n const context = useSelectContext(ARROW_NAME, __scopeSelect);\n const contentContext = useSelectContentContext(ARROW_NAME, __scopeSelect);\n return context.open && contentContext.position === \"popper\" ? /* @__PURE__ */ jsx(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef }) : null;\n }\n);\nSelectArrow.displayName = ARROW_NAME;\nfunction shouldShowPlaceholder(value) {\n return value === \"\" || value === void 0;\n}\nvar BubbleSelect = React.forwardRef(\n (props, forwardedRef) => {\n const { value, ...selectProps } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const prevValue = usePrevious(value);\n React.useEffect(() => {\n const select = ref.current;\n const selectProto = window.HTMLSelectElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(\n selectProto,\n \"value\"\n );\n const setValue = descriptor.set;\n if (prevValue !== value && setValue) {\n const event = new Event(\"change\", { bubbles: true });\n setValue.call(select, value);\n select.dispatchEvent(event);\n }\n }, [prevValue, value]);\n return /* @__PURE__ */ jsx(VisuallyHidden, { asChild: true, children: /* @__PURE__ */ jsx(\"select\", { ...selectProps, ref: composedRefs, defaultValue: value }) });\n }\n);\nBubbleSelect.displayName = \"BubbleSelect\";\nfunction useTypeaheadSearch(onSearchChange) {\n const handleSearchChange = useCallbackRef(onSearchChange);\n const searchRef = React.useRef(\"\");\n const timerRef = React.useRef(0);\n const handleTypeaheadSearch = React.useCallback(\n (key) => {\n const search = searchRef.current + key;\n handleSearchChange(search);\n (function updateSearch(value) {\n searchRef.current = value;\n window.clearTimeout(timerRef.current);\n if (value !== \"\") timerRef.current = window.setTimeout(() => updateSearch(\"\"), 1e3);\n })(search);\n },\n [handleSearchChange]\n );\n const resetTypeahead = React.useCallback(() => {\n searchRef.current = \"\";\n window.clearTimeout(timerRef.current);\n }, []);\n React.useEffect(() => {\n return () => window.clearTimeout(timerRef.current);\n }, []);\n return [searchRef, handleTypeaheadSearch, resetTypeahead];\n}\nfunction findNextItem(items, search, currentItem) {\n const isRepeated = search.length > 1 && Array.from(search).every((char) => char === search[0]);\n const normalizedSearch = isRepeated ? search[0] : search;\n const currentItemIndex = currentItem ? items.indexOf(currentItem) : -1;\n let wrappedItems = wrapArray(items, Math.max(currentItemIndex, 0));\n const excludeCurrentItem = normalizedSearch.length === 1;\n if (excludeCurrentItem) wrappedItems = wrappedItems.filter((v) => v !== currentItem);\n const nextItem = wrappedItems.find(\n (item) => item.textValue.toLowerCase().startsWith(normalizedSearch.toLowerCase())\n );\n return nextItem !== currentItem ? nextItem : void 0;\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nvar Root2 = Select;\nvar Trigger = SelectTrigger;\nvar Value = SelectValue;\nvar Icon = SelectIcon;\nvar Portal = SelectPortal;\nvar Content2 = SelectContent;\nvar Viewport = SelectViewport;\nvar Group = SelectGroup;\nvar Label = SelectLabel;\nvar Item = SelectItem;\nvar ItemText = SelectItemText;\nvar ItemIndicator = SelectItemIndicator;\nvar ScrollUpButton = SelectScrollUpButton;\nvar ScrollDownButton = SelectScrollDownButton;\nvar Separator = SelectSeparator;\nvar Arrow2 = SelectArrow;\nexport {\n Arrow2 as Arrow,\n Content2 as Content,\n Group,\n Icon,\n Item,\n ItemIndicator,\n ItemText,\n Label,\n Portal,\n Root2 as Root,\n ScrollDownButton,\n ScrollUpButton,\n Select,\n SelectArrow,\n SelectContent,\n SelectGroup,\n SelectIcon,\n SelectItem,\n SelectItemIndicator,\n SelectItemText,\n SelectLabel,\n SelectPortal,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n SelectViewport,\n Separator,\n Trigger,\n Value,\n Viewport,\n createSelectScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["OPEN_KEYS","SELECTION_KEYS","SELECT_NAME","Collection","useCollection","createCollectionScope","createCollection","createSelectContext","createSelectScope","createContextScope","createPopperScope","usePopperScope","SelectProvider","useSelectContext","SelectNativeOptionsProvider","useSelectNativeOptionsContext","Select","props","__scopeSelect","children","open","openProp","defaultOpen","onOpenChange","value","valueProp","defaultValue","onValueChange","dir","name","autoComplete","disabled","required","popperScope","trigger","setTrigger","React","useState","valueNode","setValueNode","valueNodeHasChildren","setValueNodeHasChildren","direction","useDirection","setOpen","useControllableState","prop","defaultProp","onChange","setValue","triggerPointerDownPosRef","useRef","isFormControl","Boolean","closest","nativeOptionsSet","setNativeOptionsSet","Set","nativeSelectKey","Array","from","map","option","join","jsx","PopperPrimitive.Root","jsxs","scope","onTriggerChange","onValueNodeChange","onValueNodeHasChildrenChange","contentId","useId","Provider","onNativeOptionAdd","useCallback","prev","add","onNativeOptionRemove","optionsSet","delete","BubbleSelect","tabIndex","event","target","displayName","TRIGGER_NAME","SelectTrigger","forwardRef","forwardedRef","triggerProps","context","isDisabled","composedRefs","useComposedRefs","getItems","searchRef","handleTypeaheadSearch","resetTypeahead","useTypeaheadSearch","search","enabledItems","filter","item","currentItem","find","nextItem","findNextItem","handleOpen","PopperPrimitive.Anchor","asChild","Primitive","button","type","role","shouldShowPlaceholder","ref","onClick","composeEventHandlers","currentTarget","focus","onPointerDown","hasPointerCapture","pointerId","releasePointerCapture","ctrlKey","current","x","Math","round","pageX","y","pageY","preventDefault","onKeyDown","isTypingAhead","altKey","metaKey","key","length","includes","VALUE_NAME","SelectValue","className","style","placeholder","valueProps","hasChildren","useLayoutEffect","span","pointerEvents","Fragment","SelectIcon","iconProps","SelectPortal","PortalPrimitive","CONTENT_NAME","SelectContent","fragment","setFragment","DocumentFragment","frag","ReactDOM","createPortal","SelectContentProvider","Slot","SelectContentImpl","CONTENT_MARGIN","useSelectContentContext","position","onCloseAutoFocus","onEscapeKeyDown","onPointerDownOutside","side","sideOffset","align","alignOffset","arrowPadding","collisionBoundary","collisionPadding","sticky","hideWhenDetached","avoidCollisions","contentProps","content","setContent","viewport","setViewport","node","selectedItem","setSelectedItem","selectedItemText","setSelectedItemText","isPositioned","setIsPositioned","firstValidItemFoundRef","useEffect","hideOthers","useFocusGuards","focusFirst","candidates","firstItem","restItems","lastItem","slice","PREVIOUSLY_FOCUSED_ELEMENT","document","activeElement","candidate","scrollIntoView","block","scrollTop","scrollHeight","focusSelectedItem","pointerMoveDelta","handlePointerMove","abs","handlePointerUp","contains","removeEventListener","addEventListener","capture","once","close","window","setTimeout","itemRefCallback","isFirstValidItem","handleItemLeave","itemTextRefCallback","SelectPosition","SelectPopperPosition","SelectItemAlignedPosition","popperContentProps","onViewportChange","onItemLeave","RemoveScroll","as","allowPinchZoom","FocusScope","trapped","onMountAutoFocus","onUnmountAutoFocus","preventScroll","DismissableLayer","disableOutsidePointerEvents","onFocusOutside","onDismiss","id","onContextMenu","onPlaced","display","flexDirection","outline","isModifierKey","candidateNodes","reverse","currentElement","currentIndex","indexOf","popperProps","contentContext","contentWrapper","setContentWrapper","shouldExpandOnScrollRef","shouldRepositionRef","triggerRect","getBoundingClientRect","contentRect","valueNodeRect","itemTextRect","itemTextOffset","left","leftDelta","minContentWidth","width","contentWidth","max","rightEdge","innerWidth","clampedLeft","clamp","minWidth","right","rightDelta","leftEdge","clampedRight","items","availableHeight","innerHeight","itemsHeight","contentStyles","getComputedStyle","contentBorderTopWidth","parseInt","borderTopWidth","contentPaddingTop","paddingTop","contentBorderBottomWidth","borderBottomWidth","fullContentHeight","paddingBottom","minContentHeight","min","offsetHeight","viewportStyles","viewportPaddingTop","viewportPaddingBottom","topEdgeToTriggerMiddle","top","height","triggerMiddleToBottomEdge","selectedItemHalfHeight","contentTopToItemMiddle","offsetTop","itemMiddleToContentBottom","isLastItem","bottom","viewportOffsetBottom","clientHeight","isFirstItem","margin","minHeight","maxHeight","requestAnimationFrame","contentZIndex","setContentZIndex","zIndex","handleScrollButtonChange","SelectViewportProvider","onScrollButtonChange","div","boxSizing","PopperPrimitive.Content","useSelectViewportContext","VIEWPORT_NAME","SelectViewport","nonce","viewportProps","viewportContext","prevScrollTopRef","dangerouslySetInnerHTML","__html","flex","overflow","onScroll","scrolledBy","cssMinHeight","parseFloat","cssHeight","prevHeight","nextHeight","clampedNextHeight","heightDiff","justifyContent","GROUP_NAME","SelectGroupContextProvider","useSelectGroupContext","SelectGroup","groupProps","groupId","LABEL_NAME","SelectLabel","labelProps","groupContext","ITEM_NAME","SelectItemContextProvider","useSelectItemContext","SelectItem","textValue","textValueProp","itemProps","isSelected","setTextValue","isFocused","setIsFocused","textId","handleSelect","Error","onItemTextChange","prevTextValue","textContent","trim","ItemSlot","onFocus","onBlur","onPointerUp","onPointerMove","onPointerLeave","ITEM_TEXT_NAME","SelectItemText","itemTextProps","itemContext","nativeOptionsContext","itemTextNode","setItemTextNode","nativeOption","useMemo","ITEM_INDICATOR_NAME","SelectItemIndicator","itemIndicatorProps","SCROLL_UP_BUTTON_NAME","SelectScrollUpButton","canScrollUp","setCanScrollUp","handleScroll2","canScrollUp2","SelectScrollButtonImpl","onAutoScroll","SCROLL_DOWN_BUTTON_NAME","SelectScrollDownButton","canScrollDown","setCanScrollDown","maxScroll","canScrollDown2","ceil","scrollIndicatorProps","autoScrollTimerRef","clearAutoScrollTimer","clearInterval","activeItem","flexShrink","setInterval","SelectSeparator","separatorProps","ARROW_NAME","SelectArrow","arrowProps","PopperPrimitive.Arrow","selectProps","prevValue","usePrevious","select","selectProto","HTMLSelectElement","prototype","Object","getOwnPropertyDescriptor","set","Event","bubbles","call","dispatchEvent","VisuallyHidden","onSearchChange","handleSearchChange","useCallbackRef","timerRef","updateSearch","clearTimeout","normalizedSearch","every","char","currentItemIndex","wrappedItems","array","startIndex","_","index","v","toLowerCase","startsWith","Root2","Trigger","Value","Icon","Portal","Content2","Viewport","Group","Label","Item","ItemText","ItemIndicator","Separator"],"mappings":"ulDA4BA,IAAIA,EAAY,CAAC,IAAK,QAAS,UAAW,aACtCC,EAAiB,CAAC,IAAK,SACvBC,EAAc,UACbC,EAAYC,EAAeC,GAAyBC,EAAiBJ,IACrEK,EAAqBC,GAAqBC,EAAmBP,EAAa,CAC7EG,EACAK,IAEEC,EAAiBD,KAChBE,EAAgBC,GAAoBN,EAAoBL,IACxDY,EAA6BC,GAAiCR,EAAoBL,GACnFc,EAAUC,IACZ,MAAMC,cACJA,EAAaC,SACbA,EACAC,KAAMC,EAAQC,YACdA,EAAWC,aACXA,EACAC,MAAOC,EAASC,aAChBA,EAAYC,cACZA,EAAaC,IACbA,EAAGC,KACHA,EAAIC,aACJA,EAAYC,SACZA,EAAQC,SACRA,GACEf,EACEgB,EAActB,EAAeO,IAC5BgB,EAASC,GAAcC,EAAMC,SAAS,OACtCC,EAAWC,GAAgBH,EAAMC,SAAS,OAC1CG,EAAsBC,GAA2BL,EAAMC,UAAS,GACjEK,EAAYC,EAAaf,IACxBR,GAAO,EAAOwB,GAAWC,EAAqB,CACnDC,KAAMzB,EACN0B,YAAazB,EACb0B,SAAUzB,KAELC,EAAOyB,GAAYJ,EAAqB,CAC7CC,KAAMrB,EACNsB,YAAarB,EACbsB,SAAUrB,IAENuB,EAA2Bd,EAAMe,OAAO,MACxCC,GAAgBlB,GAAUmB,QAAQnB,EAAQoB,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,GAAOzT,EACP0T,GAASxT,EACTyT,GAAWtT,EACXuT,GAAWpI,GACXqI,GAAQ/G,GACRgH,GAAQ5G,GACR6G,GAAOvG,GACPwG,GAAWlF,GACXmF,GAAgB1E,GAGhB2E,GAAYnD"}
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../node_modules/@radix-ui/react-select/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/select/src/Select.tsx\nimport * as React from \"react\";\nimport * as ReactDOM from \"react-dom\";\nimport { clamp } from \"@radix-ui/number\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { DismissableLayer } from \"@radix-ui/react-dismissable-layer\";\nimport { useFocusGuards } from \"@radix-ui/react-focus-guards\";\nimport { FocusScope } from \"@radix-ui/react-focus-scope\";\nimport { useId } from \"@radix-ui/react-id\";\nimport * as PopperPrimitive from \"@radix-ui/react-popper\";\nimport { createPopperScope } from \"@radix-ui/react-popper\";\nimport { Portal as PortalPrimitive } from \"@radix-ui/react-portal\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { usePrevious } from \"@radix-ui/react-use-previous\";\nimport { VisuallyHidden } from \"@radix-ui/react-visually-hidden\";\nimport { hideOthers } from \"aria-hidden\";\nimport { RemoveScroll } from \"react-remove-scroll\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\nvar OPEN_KEYS = [\" \", \"Enter\", \"ArrowUp\", \"ArrowDown\"];\nvar SELECTION_KEYS = [\" \", \"Enter\"];\nvar SELECT_NAME = \"Select\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(SELECT_NAME);\nvar [createSelectContext, createSelectScope] = createContextScope(SELECT_NAME, [\n createCollectionScope,\n createPopperScope\n]);\nvar usePopperScope = createPopperScope();\nvar [SelectProvider, useSelectContext] = createSelectContext(SELECT_NAME);\nvar [SelectNativeOptionsProvider, useSelectNativeOptionsContext] = createSelectContext(SELECT_NAME);\nvar Select = (props) => {\n const {\n __scopeSelect,\n children,\n open: openProp,\n defaultOpen,\n onOpenChange,\n value: valueProp,\n defaultValue,\n onValueChange,\n dir,\n name,\n autoComplete,\n disabled,\n required\n } = props;\n const popperScope = usePopperScope(__scopeSelect);\n const [trigger, setTrigger] = React.useState(null);\n const [valueNode, setValueNode] = React.useState(null);\n const [valueNodeHasChildren, setValueNodeHasChildren] = React.useState(false);\n const direction = useDirection(dir);\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n const [value, setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue,\n onChange: onValueChange\n });\n const triggerPointerDownPosRef = React.useRef(null);\n const isFormControl = trigger ? Boolean(trigger.closest(\"form\")) : true;\n const [nativeOptionsSet, setNativeOptionsSet] = React.useState(/* @__PURE__ */ new Set());\n const nativeSelectKey = Array.from(nativeOptionsSet).map((option) => option.props.value).join(\";\");\n return /* @__PURE__ */ jsx(PopperPrimitive.Root, { ...popperScope, children: /* @__PURE__ */ jsxs(\n SelectProvider,\n {\n required,\n scope: __scopeSelect,\n trigger,\n onTriggerChange: setTrigger,\n valueNode,\n onValueNodeChange: setValueNode,\n valueNodeHasChildren,\n onValueNodeHasChildrenChange: setValueNodeHasChildren,\n contentId: useId(),\n value,\n onValueChange: setValue,\n open,\n onOpenChange: setOpen,\n dir: direction,\n triggerPointerDownPosRef,\n disabled,\n children: [\n /* @__PURE__ */ jsx(Collection.Provider, { scope: __scopeSelect, children: /* @__PURE__ */ jsx(\n SelectNativeOptionsProvider,\n {\n scope: props.__scopeSelect,\n onNativeOptionAdd: React.useCallback((option) => {\n setNativeOptionsSet((prev) => new Set(prev).add(option));\n }, []),\n onNativeOptionRemove: React.useCallback((option) => {\n setNativeOptionsSet((prev) => {\n const optionsSet = new Set(prev);\n optionsSet.delete(option);\n return optionsSet;\n });\n }, []),\n children\n }\n ) }),\n isFormControl ? /* @__PURE__ */ jsxs(\n BubbleSelect,\n {\n \"aria-hidden\": true,\n required,\n tabIndex: -1,\n name,\n autoComplete,\n value,\n onChange: (event) => setValue(event.target.value),\n disabled,\n children: [\n value === void 0 ? /* @__PURE__ */ jsx(\"option\", { value: \"\" }) : null,\n Array.from(nativeOptionsSet)\n ]\n },\n nativeSelectKey\n ) : null\n ]\n }\n ) });\n};\nSelect.displayName = SELECT_NAME;\nvar TRIGGER_NAME = \"SelectTrigger\";\nvar SelectTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, disabled = false, ...triggerProps } = props;\n const popperScope = usePopperScope(__scopeSelect);\n const context = useSelectContext(TRIGGER_NAME, __scopeSelect);\n const isDisabled = context.disabled || disabled;\n const composedRefs = useComposedRefs(forwardedRef, context.onTriggerChange);\n const getItems = useCollection(__scopeSelect);\n const [searchRef, handleTypeaheadSearch, resetTypeahead] = useTypeaheadSearch((search) => {\n const enabledItems = getItems().filter((item) => !item.disabled);\n const currentItem = enabledItems.find((item) => item.value === context.value);\n const nextItem = findNextItem(enabledItems, search, currentItem);\n if (nextItem !== void 0) {\n context.onValueChange(nextItem.value);\n }\n });\n const handleOpen = () => {\n if (!isDisabled) {\n context.onOpenChange(true);\n resetTypeahead();\n }\n };\n return /* @__PURE__ */ jsx(PopperPrimitive.Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n role: \"combobox\",\n \"aria-controls\": context.contentId,\n \"aria-expanded\": context.open,\n \"aria-required\": context.required,\n \"aria-autocomplete\": \"none\",\n dir: context.dir,\n \"data-state\": context.open ? \"open\" : \"closed\",\n disabled: isDisabled,\n \"data-disabled\": isDisabled ? \"\" : void 0,\n \"data-placeholder\": shouldShowPlaceholder(context.value) ? \"\" : void 0,\n ...triggerProps,\n ref: composedRefs,\n onClick: composeEventHandlers(triggerProps.onClick, (event) => {\n event.currentTarget.focus();\n }),\n onPointerDown: composeEventHandlers(triggerProps.onPointerDown, (event) => {\n const target = event.target;\n if (target.hasPointerCapture(event.pointerId)) {\n target.releasePointerCapture(event.pointerId);\n }\n if (event.button === 0 && event.ctrlKey === false) {\n handleOpen();\n context.triggerPointerDownPosRef.current = {\n x: Math.round(event.pageX),\n y: Math.round(event.pageY)\n };\n event.preventDefault();\n }\n }),\n onKeyDown: composeEventHandlers(triggerProps.onKeyDown, (event) => {\n const isTypingAhead = searchRef.current !== \"\";\n const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;\n if (!isModifierKey && event.key.length === 1) handleTypeaheadSearch(event.key);\n if (isTypingAhead && event.key === \" \") return;\n if (OPEN_KEYS.includes(event.key)) {\n handleOpen();\n event.preventDefault();\n }\n })\n }\n ) });\n }\n);\nSelectTrigger.displayName = TRIGGER_NAME;\nvar VALUE_NAME = \"SelectValue\";\nvar SelectValue = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, className, style, children, placeholder = \"\", ...valueProps } = props;\n const context = useSelectContext(VALUE_NAME, __scopeSelect);\n const { onValueNodeHasChildrenChange } = context;\n const hasChildren = children !== void 0;\n const composedRefs = useComposedRefs(forwardedRef, context.onValueNodeChange);\n useLayoutEffect(() => {\n onValueNodeHasChildrenChange(hasChildren);\n }, [onValueNodeHasChildrenChange, hasChildren]);\n return /* @__PURE__ */ jsx(\n Primitive.span,\n {\n ...valueProps,\n ref: composedRefs,\n style: { pointerEvents: \"none\" },\n children: shouldShowPlaceholder(context.value) ? /* @__PURE__ */ jsx(Fragment, { children: placeholder }) : children\n }\n );\n }\n);\nSelectValue.displayName = VALUE_NAME;\nvar ICON_NAME = \"SelectIcon\";\nvar SelectIcon = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, children, ...iconProps } = props;\n return /* @__PURE__ */ jsx(Primitive.span, { \"aria-hidden\": true, ...iconProps, ref: forwardedRef, children: children || \"\\u25BC\" });\n }\n);\nSelectIcon.displayName = ICON_NAME;\nvar PORTAL_NAME = \"SelectPortal\";\nvar SelectPortal = (props) => {\n return /* @__PURE__ */ jsx(PortalPrimitive, { asChild: true, ...props });\n};\nSelectPortal.displayName = PORTAL_NAME;\nvar CONTENT_NAME = \"SelectContent\";\nvar SelectContent = React.forwardRef(\n (props, forwardedRef) => {\n const context = useSelectContext(CONTENT_NAME, props.__scopeSelect);\n const [fragment, setFragment] = React.useState();\n useLayoutEffect(() => {\n setFragment(new DocumentFragment());\n }, []);\n if (!context.open) {\n const frag = fragment;\n return frag ? ReactDOM.createPortal(\n /* @__PURE__ */ jsx(SelectContentProvider, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeSelect, children: /* @__PURE__ */ jsx(\"div\", { children: props.children }) }) }),\n frag\n ) : null;\n }\n return /* @__PURE__ */ jsx(SelectContentImpl, { ...props, ref: forwardedRef });\n }\n);\nSelectContent.displayName = CONTENT_NAME;\nvar CONTENT_MARGIN = 10;\nvar [SelectContentProvider, useSelectContentContext] = createSelectContext(CONTENT_NAME);\nvar CONTENT_IMPL_NAME = \"SelectContentImpl\";\nvar SelectContentImpl = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeSelect,\n position = \"item-aligned\",\n onCloseAutoFocus,\n onEscapeKeyDown,\n onPointerDownOutside,\n //\n // PopperContent props\n side,\n sideOffset,\n align,\n alignOffset,\n arrowPadding,\n collisionBoundary,\n collisionPadding,\n sticky,\n hideWhenDetached,\n avoidCollisions,\n //\n ...contentProps\n } = props;\n const context = useSelectContext(CONTENT_NAME, __scopeSelect);\n const [content, setContent] = React.useState(null);\n const [viewport, setViewport] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));\n const [selectedItem, setSelectedItem] = React.useState(null);\n const [selectedItemText, setSelectedItemText] = React.useState(\n null\n );\n const getItems = useCollection(__scopeSelect);\n const [isPositioned, setIsPositioned] = React.useState(false);\n const firstValidItemFoundRef = React.useRef(false);\n React.useEffect(() => {\n if (content) return hideOthers(content);\n }, [content]);\n useFocusGuards();\n const focusFirst = React.useCallback(\n (candidates) => {\n const [firstItem, ...restItems] = getItems().map((item) => item.ref.current);\n const [lastItem] = restItems.slice(-1);\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate?.scrollIntoView({ block: \"nearest\" });\n if (candidate === firstItem && viewport) viewport.scrollTop = 0;\n if (candidate === lastItem && viewport) viewport.scrollTop = viewport.scrollHeight;\n candidate?.focus();\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n },\n [getItems, viewport]\n );\n const focusSelectedItem = React.useCallback(\n () => focusFirst([selectedItem, content]),\n [focusFirst, selectedItem, content]\n );\n React.useEffect(() => {\n if (isPositioned) {\n focusSelectedItem();\n }\n }, [isPositioned, focusSelectedItem]);\n const { onOpenChange, triggerPointerDownPosRef } = context;\n React.useEffect(() => {\n if (content) {\n let pointerMoveDelta = { x: 0, y: 0 };\n const handlePointerMove = (event) => {\n pointerMoveDelta = {\n x: Math.abs(Math.round(event.pageX) - (triggerPointerDownPosRef.current?.x ?? 0)),\n y: Math.abs(Math.round(event.pageY) - (triggerPointerDownPosRef.current?.y ?? 0))\n };\n };\n const handlePointerUp = (event) => {\n if (pointerMoveDelta.x <= 10 && pointerMoveDelta.y <= 10) {\n event.preventDefault();\n } else {\n if (!content.contains(event.target)) {\n onOpenChange(false);\n }\n }\n document.removeEventListener(\"pointermove\", handlePointerMove);\n triggerPointerDownPosRef.current = null;\n };\n if (triggerPointerDownPosRef.current !== null) {\n document.addEventListener(\"pointermove\", handlePointerMove);\n document.addEventListener(\"pointerup\", handlePointerUp, { capture: true, once: true });\n }\n return () => {\n document.removeEventListener(\"pointermove\", handlePointerMove);\n document.removeEventListener(\"pointerup\", handlePointerUp, { capture: true });\n };\n }\n }, [content, onOpenChange, triggerPointerDownPosRef]);\n React.useEffect(() => {\n const close = () => onOpenChange(false);\n window.addEventListener(\"blur\", close);\n window.addEventListener(\"resize\", close);\n return () => {\n window.removeEventListener(\"blur\", close);\n window.removeEventListener(\"resize\", close);\n };\n }, [onOpenChange]);\n const [searchRef, handleTypeaheadSearch] = useTypeaheadSearch((search) => {\n const enabledItems = getItems().filter((item) => !item.disabled);\n const currentItem = enabledItems.find((item) => item.ref.current === document.activeElement);\n const nextItem = findNextItem(enabledItems, search, currentItem);\n if (nextItem) {\n setTimeout(() => nextItem.ref.current.focus());\n }\n });\n const itemRefCallback = React.useCallback(\n (node, value, disabled) => {\n const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;\n const isSelectedItem = context.value !== void 0 && context.value === value;\n if (isSelectedItem || isFirstValidItem) {\n setSelectedItem(node);\n if (isFirstValidItem) firstValidItemFoundRef.current = true;\n }\n },\n [context.value]\n );\n const handleItemLeave = React.useCallback(() => content?.focus(), [content]);\n const itemTextRefCallback = React.useCallback(\n (node, value, disabled) => {\n const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;\n const isSelectedItem = context.value !== void 0 && context.value === value;\n if (isSelectedItem || isFirstValidItem) {\n setSelectedItemText(node);\n }\n },\n [context.value]\n );\n const SelectPosition = position === \"popper\" ? SelectPopperPosition : SelectItemAlignedPosition;\n const popperContentProps = SelectPosition === SelectPopperPosition ? {\n side,\n sideOffset,\n align,\n alignOffset,\n arrowPadding,\n collisionBoundary,\n collisionPadding,\n sticky,\n hideWhenDetached,\n avoidCollisions\n } : {};\n return /* @__PURE__ */ jsx(\n SelectContentProvider,\n {\n scope: __scopeSelect,\n content,\n viewport,\n onViewportChange: setViewport,\n itemRefCallback,\n selectedItem,\n onItemLeave: handleItemLeave,\n itemTextRefCallback,\n focusSelectedItem,\n selectedItemText,\n position,\n isPositioned,\n searchRef,\n children: /* @__PURE__ */ jsx(RemoveScroll, { as: Slot, allowPinchZoom: true, children: /* @__PURE__ */ jsx(\n FocusScope,\n {\n asChild: true,\n trapped: context.open,\n onMountAutoFocus: (event) => {\n event.preventDefault();\n },\n onUnmountAutoFocus: composeEventHandlers(onCloseAutoFocus, (event) => {\n context.trigger?.focus({ preventScroll: true });\n event.preventDefault();\n }),\n children: /* @__PURE__ */ jsx(\n DismissableLayer,\n {\n asChild: true,\n disableOutsidePointerEvents: true,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside: (event) => event.preventDefault(),\n onDismiss: () => context.onOpenChange(false),\n children: /* @__PURE__ */ jsx(\n SelectPosition,\n {\n role: \"listbox\",\n id: context.contentId,\n \"data-state\": context.open ? \"open\" : \"closed\",\n dir: context.dir,\n onContextMenu: (event) => event.preventDefault(),\n ...contentProps,\n ...popperContentProps,\n onPlaced: () => setIsPositioned(true),\n ref: composedRefs,\n style: {\n // flex layout so we can place the scroll buttons properly\n display: \"flex\",\n flexDirection: \"column\",\n // reset the outline by default as the content MAY get focused\n outline: \"none\",\n ...contentProps.style\n },\n onKeyDown: composeEventHandlers(contentProps.onKeyDown, (event) => {\n const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;\n if (event.key === \"Tab\") event.preventDefault();\n if (!isModifierKey && event.key.length === 1) handleTypeaheadSearch(event.key);\n if ([\"ArrowUp\", \"ArrowDown\", \"Home\", \"End\"].includes(event.key)) {\n const items = getItems().filter((item) => !item.disabled);\n let candidateNodes = items.map((item) => item.ref.current);\n if ([\"ArrowUp\", \"End\"].includes(event.key)) {\n candidateNodes = candidateNodes.slice().reverse();\n }\n if ([\"ArrowUp\", \"ArrowDown\"].includes(event.key)) {\n const currentElement = event.target;\n const currentIndex = candidateNodes.indexOf(currentElement);\n candidateNodes = candidateNodes.slice(currentIndex + 1);\n }\n setTimeout(() => focusFirst(candidateNodes));\n event.preventDefault();\n }\n })\n }\n )\n }\n )\n }\n ) })\n }\n );\n }\n);\nSelectContentImpl.displayName = CONTENT_IMPL_NAME;\nvar ITEM_ALIGNED_POSITION_NAME = \"SelectItemAlignedPosition\";\nvar SelectItemAlignedPosition = React.forwardRef((props, forwardedRef) => {\n const { __scopeSelect, onPlaced, ...popperProps } = props;\n const context = useSelectContext(CONTENT_NAME, __scopeSelect);\n const contentContext = useSelectContentContext(CONTENT_NAME, __scopeSelect);\n const [contentWrapper, setContentWrapper] = React.useState(null);\n const [content, setContent] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));\n const getItems = useCollection(__scopeSelect);\n const shouldExpandOnScrollRef = React.useRef(false);\n const shouldRepositionRef = React.useRef(true);\n const { viewport, selectedItem, selectedItemText, focusSelectedItem } = contentContext;\n const position = React.useCallback(() => {\n if (context.trigger && context.valueNode && contentWrapper && content && viewport && selectedItem && selectedItemText) {\n const triggerRect = context.trigger.getBoundingClientRect();\n const contentRect = content.getBoundingClientRect();\n const valueNodeRect = context.valueNode.getBoundingClientRect();\n const itemTextRect = selectedItemText.getBoundingClientRect();\n if (context.dir !== \"rtl\") {\n const itemTextOffset = itemTextRect.left - contentRect.left;\n const left = valueNodeRect.left - itemTextOffset;\n const leftDelta = triggerRect.left - left;\n const minContentWidth = triggerRect.width + leftDelta;\n const contentWidth = Math.max(minContentWidth, contentRect.width);\n const rightEdge = window.innerWidth - CONTENT_MARGIN;\n const clampedLeft = clamp(left, [CONTENT_MARGIN, rightEdge - contentWidth]);\n contentWrapper.style.minWidth = minContentWidth + \"px\";\n contentWrapper.style.left = clampedLeft + \"px\";\n } else {\n const itemTextOffset = contentRect.right - itemTextRect.right;\n const right = window.innerWidth - valueNodeRect.right - itemTextOffset;\n const rightDelta = window.innerWidth - triggerRect.right - right;\n const minContentWidth = triggerRect.width + rightDelta;\n const contentWidth = Math.max(minContentWidth, contentRect.width);\n const leftEdge = window.innerWidth - CONTENT_MARGIN;\n const clampedRight = clamp(right, [CONTENT_MARGIN, leftEdge - contentWidth]);\n contentWrapper.style.minWidth = minContentWidth + \"px\";\n contentWrapper.style.right = clampedRight + \"px\";\n }\n const items = getItems();\n const availableHeight = window.innerHeight - CONTENT_MARGIN * 2;\n const itemsHeight = viewport.scrollHeight;\n const contentStyles = window.getComputedStyle(content);\n const contentBorderTopWidth = parseInt(contentStyles.borderTopWidth, 10);\n const contentPaddingTop = parseInt(contentStyles.paddingTop, 10);\n const contentBorderBottomWidth = parseInt(contentStyles.borderBottomWidth, 10);\n const contentPaddingBottom = parseInt(contentStyles.paddingBottom, 10);\n const fullContentHeight = contentBorderTopWidth + contentPaddingTop + itemsHeight + contentPaddingBottom + contentBorderBottomWidth;\n const minContentHeight = Math.min(selectedItem.offsetHeight * 5, fullContentHeight);\n const viewportStyles = window.getComputedStyle(viewport);\n const viewportPaddingTop = parseInt(viewportStyles.paddingTop, 10);\n const viewportPaddingBottom = parseInt(viewportStyles.paddingBottom, 10);\n const topEdgeToTriggerMiddle = triggerRect.top + triggerRect.height / 2 - CONTENT_MARGIN;\n const triggerMiddleToBottomEdge = availableHeight - topEdgeToTriggerMiddle;\n const selectedItemHalfHeight = selectedItem.offsetHeight / 2;\n const itemOffsetMiddle = selectedItem.offsetTop + selectedItemHalfHeight;\n const contentTopToItemMiddle = contentBorderTopWidth + contentPaddingTop + itemOffsetMiddle;\n const itemMiddleToContentBottom = fullContentHeight - contentTopToItemMiddle;\n const willAlignWithoutTopOverflow = contentTopToItemMiddle <= topEdgeToTriggerMiddle;\n if (willAlignWithoutTopOverflow) {\n const isLastItem = selectedItem === items[items.length - 1].ref.current;\n contentWrapper.style.bottom = \"0px\";\n const viewportOffsetBottom = content.clientHeight - viewport.offsetTop - viewport.offsetHeight;\n const clampedTriggerMiddleToBottomEdge = Math.max(\n triggerMiddleToBottomEdge,\n selectedItemHalfHeight + // viewport might have padding bottom, include it to avoid a scrollable viewport\n (isLastItem ? viewportPaddingBottom : 0) + viewportOffsetBottom + contentBorderBottomWidth\n );\n const height = contentTopToItemMiddle + clampedTriggerMiddleToBottomEdge;\n contentWrapper.style.height = height + \"px\";\n } else {\n const isFirstItem = selectedItem === items[0].ref.current;\n contentWrapper.style.top = \"0px\";\n const clampedTopEdgeToTriggerMiddle = Math.max(\n topEdgeToTriggerMiddle,\n contentBorderTopWidth + viewport.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport\n (isFirstItem ? viewportPaddingTop : 0) + selectedItemHalfHeight\n );\n const height = clampedTopEdgeToTriggerMiddle + itemMiddleToContentBottom;\n contentWrapper.style.height = height + \"px\";\n viewport.scrollTop = contentTopToItemMiddle - topEdgeToTriggerMiddle + viewport.offsetTop;\n }\n contentWrapper.style.margin = `${CONTENT_MARGIN}px 0`;\n contentWrapper.style.minHeight = minContentHeight + \"px\";\n contentWrapper.style.maxHeight = availableHeight + \"px\";\n onPlaced?.();\n requestAnimationFrame(() => shouldExpandOnScrollRef.current = true);\n }\n }, [\n getItems,\n context.trigger,\n context.valueNode,\n contentWrapper,\n content,\n viewport,\n selectedItem,\n selectedItemText,\n context.dir,\n onPlaced\n ]);\n useLayoutEffect(() => position(), [position]);\n const [contentZIndex, setContentZIndex] = React.useState();\n useLayoutEffect(() => {\n if (content) setContentZIndex(window.getComputedStyle(content).zIndex);\n }, [content]);\n const handleScrollButtonChange = React.useCallback(\n (node) => {\n if (node && shouldRepositionRef.current === true) {\n position();\n focusSelectedItem?.();\n shouldRepositionRef.current = false;\n }\n },\n [position, focusSelectedItem]\n );\n return /* @__PURE__ */ jsx(\n SelectViewportProvider,\n {\n scope: __scopeSelect,\n contentWrapper,\n shouldExpandOnScrollRef,\n onScrollButtonChange: handleScrollButtonChange,\n children: /* @__PURE__ */ jsx(\n \"div\",\n {\n ref: setContentWrapper,\n style: {\n display: \"flex\",\n flexDirection: \"column\",\n position: \"fixed\",\n zIndex: contentZIndex\n },\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...popperProps,\n ref: composedRefs,\n style: {\n // When we get the height of the content, it includes borders. If we were to set\n // the height without having `boxSizing: 'border-box'` it would be too big.\n boxSizing: \"border-box\",\n // We need to ensure the content doesn't get taller than the wrapper\n maxHeight: \"100%\",\n ...popperProps.style\n }\n }\n )\n }\n )\n }\n );\n});\nSelectItemAlignedPosition.displayName = ITEM_ALIGNED_POSITION_NAME;\nvar POPPER_POSITION_NAME = \"SelectPopperPosition\";\nvar SelectPopperPosition = React.forwardRef((props, forwardedRef) => {\n const {\n __scopeSelect,\n align = \"start\",\n collisionPadding = CONTENT_MARGIN,\n ...popperProps\n } = props;\n const popperScope = usePopperScope(__scopeSelect);\n return /* @__PURE__ */ jsx(\n PopperPrimitive.Content,\n {\n ...popperScope,\n ...popperProps,\n ref: forwardedRef,\n align,\n collisionPadding,\n style: {\n // Ensure border-box for floating-ui calculations\n boxSizing: \"border-box\",\n ...popperProps.style,\n // re-namespace exposed content custom properties\n ...{\n \"--radix-select-content-transform-origin\": \"var(--radix-popper-transform-origin)\",\n \"--radix-select-content-available-width\": \"var(--radix-popper-available-width)\",\n \"--radix-select-content-available-height\": \"var(--radix-popper-available-height)\",\n \"--radix-select-trigger-width\": \"var(--radix-popper-anchor-width)\",\n \"--radix-select-trigger-height\": \"var(--radix-popper-anchor-height)\"\n }\n }\n }\n );\n});\nSelectPopperPosition.displayName = POPPER_POSITION_NAME;\nvar [SelectViewportProvider, useSelectViewportContext] = createSelectContext(CONTENT_NAME, {});\nvar VIEWPORT_NAME = \"SelectViewport\";\nvar SelectViewport = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, nonce, ...viewportProps } = props;\n const contentContext = useSelectContentContext(VIEWPORT_NAME, __scopeSelect);\n const viewportContext = useSelectViewportContext(VIEWPORT_NAME, __scopeSelect);\n const composedRefs = useComposedRefs(forwardedRef, contentContext.onViewportChange);\n const prevScrollTopRef = React.useRef(0);\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(\n \"style\",\n {\n dangerouslySetInnerHTML: {\n __html: `[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`\n },\n nonce\n }\n ),\n /* @__PURE__ */ jsx(Collection.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-radix-select-viewport\": \"\",\n role: \"presentation\",\n ...viewportProps,\n ref: composedRefs,\n style: {\n // we use position: 'relative' here on the `viewport` so that when we call\n // `selectedItem.offsetTop` in calculations, the offset is relative to the viewport\n // (independent of the scrollUpButton).\n position: \"relative\",\n flex: 1,\n overflow: \"auto\",\n ...viewportProps.style\n },\n onScroll: composeEventHandlers(viewportProps.onScroll, (event) => {\n const viewport = event.currentTarget;\n const { contentWrapper, shouldExpandOnScrollRef } = viewportContext;\n if (shouldExpandOnScrollRef?.current && contentWrapper) {\n const scrolledBy = Math.abs(prevScrollTopRef.current - viewport.scrollTop);\n if (scrolledBy > 0) {\n const availableHeight = window.innerHeight - CONTENT_MARGIN * 2;\n const cssMinHeight = parseFloat(contentWrapper.style.minHeight);\n const cssHeight = parseFloat(contentWrapper.style.height);\n const prevHeight = Math.max(cssMinHeight, cssHeight);\n if (prevHeight < availableHeight) {\n const nextHeight = prevHeight + scrolledBy;\n const clampedNextHeight = Math.min(availableHeight, nextHeight);\n const heightDiff = nextHeight - clampedNextHeight;\n contentWrapper.style.height = clampedNextHeight + \"px\";\n if (contentWrapper.style.bottom === \"0px\") {\n viewport.scrollTop = heightDiff > 0 ? heightDiff : 0;\n contentWrapper.style.justifyContent = \"flex-end\";\n }\n }\n }\n }\n prevScrollTopRef.current = viewport.scrollTop;\n })\n }\n ) })\n ] });\n }\n);\nSelectViewport.displayName = VIEWPORT_NAME;\nvar GROUP_NAME = \"SelectGroup\";\nvar [SelectGroupContextProvider, useSelectGroupContext] = createSelectContext(GROUP_NAME);\nvar SelectGroup = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, ...groupProps } = props;\n const groupId = useId();\n return /* @__PURE__ */ jsx(SelectGroupContextProvider, { scope: __scopeSelect, id: groupId, children: /* @__PURE__ */ jsx(Primitive.div, { role: \"group\", \"aria-labelledby\": groupId, ...groupProps, ref: forwardedRef }) });\n }\n);\nSelectGroup.displayName = GROUP_NAME;\nvar LABEL_NAME = \"SelectLabel\";\nvar SelectLabel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, ...labelProps } = props;\n const groupContext = useSelectGroupContext(LABEL_NAME, __scopeSelect);\n return /* @__PURE__ */ jsx(Primitive.div, { id: groupContext.id, ...labelProps, ref: forwardedRef });\n }\n);\nSelectLabel.displayName = LABEL_NAME;\nvar ITEM_NAME = \"SelectItem\";\nvar [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME);\nvar SelectItem = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeSelect,\n value,\n disabled = false,\n textValue: textValueProp,\n ...itemProps\n } = props;\n const context = useSelectContext(ITEM_NAME, __scopeSelect);\n const contentContext = useSelectContentContext(ITEM_NAME, __scopeSelect);\n const isSelected = context.value === value;\n const [textValue, setTextValue] = React.useState(textValueProp ?? \"\");\n const [isFocused, setIsFocused] = React.useState(false);\n const composedRefs = useComposedRefs(\n forwardedRef,\n (node) => contentContext.itemRefCallback?.(node, value, disabled)\n );\n const textId = useId();\n const handleSelect = () => {\n if (!disabled) {\n context.onValueChange(value);\n context.onOpenChange(false);\n }\n };\n if (value === \"\") {\n throw new Error(\n \"A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.\"\n );\n }\n return /* @__PURE__ */ jsx(\n SelectItemContextProvider,\n {\n scope: __scopeSelect,\n value,\n disabled,\n textId,\n isSelected,\n onItemTextChange: React.useCallback((node) => {\n setTextValue((prevTextValue) => prevTextValue || (node?.textContent ?? \"\").trim());\n }, []),\n children: /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeSelect,\n value,\n disabled,\n textValue,\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n role: \"option\",\n \"aria-labelledby\": textId,\n \"data-highlighted\": isFocused ? \"\" : void 0,\n \"aria-selected\": isSelected && isFocused,\n \"data-state\": isSelected ? \"checked\" : \"unchecked\",\n \"aria-disabled\": disabled || void 0,\n \"data-disabled\": disabled ? \"\" : void 0,\n tabIndex: disabled ? void 0 : -1,\n ...itemProps,\n ref: composedRefs,\n onFocus: composeEventHandlers(itemProps.onFocus, () => setIsFocused(true)),\n onBlur: composeEventHandlers(itemProps.onBlur, () => setIsFocused(false)),\n onPointerUp: composeEventHandlers(itemProps.onPointerUp, handleSelect),\n onPointerMove: composeEventHandlers(itemProps.onPointerMove, (event) => {\n if (disabled) {\n contentContext.onItemLeave?.();\n } else {\n event.currentTarget.focus({ preventScroll: true });\n }\n }),\n onPointerLeave: composeEventHandlers(itemProps.onPointerLeave, (event) => {\n if (event.currentTarget === document.activeElement) {\n contentContext.onItemLeave?.();\n }\n }),\n onKeyDown: composeEventHandlers(itemProps.onKeyDown, (event) => {\n const isTypingAhead = contentContext.searchRef?.current !== \"\";\n if (isTypingAhead && event.key === \" \") return;\n if (SELECTION_KEYS.includes(event.key)) handleSelect();\n if (event.key === \" \") event.preventDefault();\n })\n }\n )\n }\n )\n }\n );\n }\n);\nSelectItem.displayName = ITEM_NAME;\nvar ITEM_TEXT_NAME = \"SelectItemText\";\nvar SelectItemText = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, className, style, ...itemTextProps } = props;\n const context = useSelectContext(ITEM_TEXT_NAME, __scopeSelect);\n const contentContext = useSelectContentContext(ITEM_TEXT_NAME, __scopeSelect);\n const itemContext = useSelectItemContext(ITEM_TEXT_NAME, __scopeSelect);\n const nativeOptionsContext = useSelectNativeOptionsContext(ITEM_TEXT_NAME, __scopeSelect);\n const [itemTextNode, setItemTextNode] = React.useState(null);\n const composedRefs = useComposedRefs(\n forwardedRef,\n (node) => setItemTextNode(node),\n itemContext.onItemTextChange,\n (node) => contentContext.itemTextRefCallback?.(node, itemContext.value, itemContext.disabled)\n );\n const textContent = itemTextNode?.textContent;\n const nativeOption = React.useMemo(\n () => /* @__PURE__ */ jsx(\"option\", { value: itemContext.value, disabled: itemContext.disabled, children: textContent }, itemContext.value),\n [itemContext.disabled, itemContext.value, textContent]\n );\n const { onNativeOptionAdd, onNativeOptionRemove } = nativeOptionsContext;\n useLayoutEffect(() => {\n onNativeOptionAdd(nativeOption);\n return () => onNativeOptionRemove(nativeOption);\n }, [onNativeOptionAdd, onNativeOptionRemove, nativeOption]);\n return /* @__PURE__ */ jsxs(Fragment, { children: [\n /* @__PURE__ */ jsx(Primitive.span, { id: itemContext.textId, ...itemTextProps, ref: composedRefs }),\n itemContext.isSelected && context.valueNode && !context.valueNodeHasChildren ? ReactDOM.createPortal(itemTextProps.children, context.valueNode) : null\n ] });\n }\n);\nSelectItemText.displayName = ITEM_TEXT_NAME;\nvar ITEM_INDICATOR_NAME = \"SelectItemIndicator\";\nvar SelectItemIndicator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, ...itemIndicatorProps } = props;\n const itemContext = useSelectItemContext(ITEM_INDICATOR_NAME, __scopeSelect);\n return itemContext.isSelected ? /* @__PURE__ */ jsx(Primitive.span, { \"aria-hidden\": true, ...itemIndicatorProps, ref: forwardedRef }) : null;\n }\n);\nSelectItemIndicator.displayName = ITEM_INDICATOR_NAME;\nvar SCROLL_UP_BUTTON_NAME = \"SelectScrollUpButton\";\nvar SelectScrollUpButton = React.forwardRef((props, forwardedRef) => {\n const contentContext = useSelectContentContext(SCROLL_UP_BUTTON_NAME, props.__scopeSelect);\n const viewportContext = useSelectViewportContext(SCROLL_UP_BUTTON_NAME, props.__scopeSelect);\n const [canScrollUp, setCanScrollUp] = React.useState(false);\n const composedRefs = useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);\n useLayoutEffect(() => {\n if (contentContext.viewport && contentContext.isPositioned) {\n let handleScroll2 = function() {\n const canScrollUp2 = viewport.scrollTop > 0;\n setCanScrollUp(canScrollUp2);\n };\n var handleScroll = handleScroll2;\n const viewport = contentContext.viewport;\n handleScroll2();\n viewport.addEventListener(\"scroll\", handleScroll2);\n return () => viewport.removeEventListener(\"scroll\", handleScroll2);\n }\n }, [contentContext.viewport, contentContext.isPositioned]);\n return canScrollUp ? /* @__PURE__ */ jsx(\n SelectScrollButtonImpl,\n {\n ...props,\n ref: composedRefs,\n onAutoScroll: () => {\n const { viewport, selectedItem } = contentContext;\n if (viewport && selectedItem) {\n viewport.scrollTop = viewport.scrollTop - selectedItem.offsetHeight;\n }\n }\n }\n ) : null;\n});\nSelectScrollUpButton.displayName = SCROLL_UP_BUTTON_NAME;\nvar SCROLL_DOWN_BUTTON_NAME = \"SelectScrollDownButton\";\nvar SelectScrollDownButton = React.forwardRef((props, forwardedRef) => {\n const contentContext = useSelectContentContext(SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);\n const viewportContext = useSelectViewportContext(SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);\n const [canScrollDown, setCanScrollDown] = React.useState(false);\n const composedRefs = useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);\n useLayoutEffect(() => {\n if (contentContext.viewport && contentContext.isPositioned) {\n let handleScroll2 = function() {\n const maxScroll = viewport.scrollHeight - viewport.clientHeight;\n const canScrollDown2 = Math.ceil(viewport.scrollTop) < maxScroll;\n setCanScrollDown(canScrollDown2);\n };\n var handleScroll = handleScroll2;\n const viewport = contentContext.viewport;\n handleScroll2();\n viewport.addEventListener(\"scroll\", handleScroll2);\n return () => viewport.removeEventListener(\"scroll\", handleScroll2);\n }\n }, [contentContext.viewport, contentContext.isPositioned]);\n return canScrollDown ? /* @__PURE__ */ jsx(\n SelectScrollButtonImpl,\n {\n ...props,\n ref: composedRefs,\n onAutoScroll: () => {\n const { viewport, selectedItem } = contentContext;\n if (viewport && selectedItem) {\n viewport.scrollTop = viewport.scrollTop + selectedItem.offsetHeight;\n }\n }\n }\n ) : null;\n});\nSelectScrollDownButton.displayName = SCROLL_DOWN_BUTTON_NAME;\nvar SelectScrollButtonImpl = React.forwardRef((props, forwardedRef) => {\n const { __scopeSelect, onAutoScroll, ...scrollIndicatorProps } = props;\n const contentContext = useSelectContentContext(\"SelectScrollButton\", __scopeSelect);\n const autoScrollTimerRef = React.useRef(null);\n const getItems = useCollection(__scopeSelect);\n const clearAutoScrollTimer = React.useCallback(() => {\n if (autoScrollTimerRef.current !== null) {\n window.clearInterval(autoScrollTimerRef.current);\n autoScrollTimerRef.current = null;\n }\n }, []);\n React.useEffect(() => {\n return () => clearAutoScrollTimer();\n }, [clearAutoScrollTimer]);\n useLayoutEffect(() => {\n const activeItem = getItems().find((item) => item.ref.current === document.activeElement);\n activeItem?.ref.current?.scrollIntoView({ block: \"nearest\" });\n }, [getItems]);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"aria-hidden\": true,\n ...scrollIndicatorProps,\n ref: forwardedRef,\n style: { flexShrink: 0, ...scrollIndicatorProps.style },\n onPointerDown: composeEventHandlers(scrollIndicatorProps.onPointerDown, () => {\n if (autoScrollTimerRef.current === null) {\n autoScrollTimerRef.current = window.setInterval(onAutoScroll, 50);\n }\n }),\n onPointerMove: composeEventHandlers(scrollIndicatorProps.onPointerMove, () => {\n contentContext.onItemLeave?.();\n if (autoScrollTimerRef.current === null) {\n autoScrollTimerRef.current = window.setInterval(onAutoScroll, 50);\n }\n }),\n onPointerLeave: composeEventHandlers(scrollIndicatorProps.onPointerLeave, () => {\n clearAutoScrollTimer();\n })\n }\n );\n});\nvar SEPARATOR_NAME = \"SelectSeparator\";\nvar SelectSeparator = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, ...separatorProps } = props;\n return /* @__PURE__ */ jsx(Primitive.div, { \"aria-hidden\": true, ...separatorProps, ref: forwardedRef });\n }\n);\nSelectSeparator.displayName = SEPARATOR_NAME;\nvar ARROW_NAME = \"SelectArrow\";\nvar SelectArrow = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeSelect, ...arrowProps } = props;\n const popperScope = usePopperScope(__scopeSelect);\n const context = useSelectContext(ARROW_NAME, __scopeSelect);\n const contentContext = useSelectContentContext(ARROW_NAME, __scopeSelect);\n return context.open && contentContext.position === \"popper\" ? /* @__PURE__ */ jsx(PopperPrimitive.Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef }) : null;\n }\n);\nSelectArrow.displayName = ARROW_NAME;\nfunction shouldShowPlaceholder(value) {\n return value === \"\" || value === void 0;\n}\nvar BubbleSelect = React.forwardRef(\n (props, forwardedRef) => {\n const { value, ...selectProps } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const prevValue = usePrevious(value);\n React.useEffect(() => {\n const select = ref.current;\n const selectProto = window.HTMLSelectElement.prototype;\n const descriptor = Object.getOwnPropertyDescriptor(\n selectProto,\n \"value\"\n );\n const setValue = descriptor.set;\n if (prevValue !== value && setValue) {\n const event = new Event(\"change\", { bubbles: true });\n setValue.call(select, value);\n select.dispatchEvent(event);\n }\n }, [prevValue, value]);\n return /* @__PURE__ */ jsx(VisuallyHidden, { asChild: true, children: /* @__PURE__ */ jsx(\"select\", { ...selectProps, ref: composedRefs, defaultValue: value }) });\n }\n);\nBubbleSelect.displayName = \"BubbleSelect\";\nfunction useTypeaheadSearch(onSearchChange) {\n const handleSearchChange = useCallbackRef(onSearchChange);\n const searchRef = React.useRef(\"\");\n const timerRef = React.useRef(0);\n const handleTypeaheadSearch = React.useCallback(\n (key) => {\n const search = searchRef.current + key;\n handleSearchChange(search);\n (function updateSearch(value) {\n searchRef.current = value;\n window.clearTimeout(timerRef.current);\n if (value !== \"\") timerRef.current = window.setTimeout(() => updateSearch(\"\"), 1e3);\n })(search);\n },\n [handleSearchChange]\n );\n const resetTypeahead = React.useCallback(() => {\n searchRef.current = \"\";\n window.clearTimeout(timerRef.current);\n }, []);\n React.useEffect(() => {\n return () => window.clearTimeout(timerRef.current);\n }, []);\n return [searchRef, handleTypeaheadSearch, resetTypeahead];\n}\nfunction findNextItem(items, search, currentItem) {\n const isRepeated = search.length > 1 && Array.from(search).every((char) => char === search[0]);\n const normalizedSearch = isRepeated ? search[0] : search;\n const currentItemIndex = currentItem ? items.indexOf(currentItem) : -1;\n let wrappedItems = wrapArray(items, Math.max(currentItemIndex, 0));\n const excludeCurrentItem = normalizedSearch.length === 1;\n if (excludeCurrentItem) wrappedItems = wrappedItems.filter((v) => v !== currentItem);\n const nextItem = wrappedItems.find(\n (item) => item.textValue.toLowerCase().startsWith(normalizedSearch.toLowerCase())\n );\n return nextItem !== currentItem ? nextItem : void 0;\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nvar Root2 = Select;\nvar Trigger = SelectTrigger;\nvar Value = SelectValue;\nvar Icon = SelectIcon;\nvar Portal = SelectPortal;\nvar Content2 = SelectContent;\nvar Viewport = SelectViewport;\nvar Group = SelectGroup;\nvar Label = SelectLabel;\nvar Item = SelectItem;\nvar ItemText = SelectItemText;\nvar ItemIndicator = SelectItemIndicator;\nvar ScrollUpButton = SelectScrollUpButton;\nvar ScrollDownButton = SelectScrollDownButton;\nvar Separator = SelectSeparator;\nvar Arrow2 = SelectArrow;\nexport {\n Arrow2 as Arrow,\n Content2 as Content,\n Group,\n Icon,\n Item,\n ItemIndicator,\n ItemText,\n Label,\n Portal,\n Root2 as Root,\n ScrollDownButton,\n ScrollUpButton,\n Select,\n SelectArrow,\n SelectContent,\n SelectGroup,\n SelectIcon,\n SelectItem,\n SelectItemIndicator,\n SelectItemText,\n SelectLabel,\n SelectPortal,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n SelectViewport,\n Separator,\n Trigger,\n Value,\n Viewport,\n createSelectScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["OPEN_KEYS","SELECTION_KEYS","SELECT_NAME","Collection","useCollection","createCollectionScope","createCollection","createSelectContext","createSelectScope","createContextScope","createPopperScope","usePopperScope","SelectProvider","useSelectContext","SelectNativeOptionsProvider","useSelectNativeOptionsContext","Select","props","__scopeSelect","children","open","openProp","defaultOpen","onOpenChange","value","valueProp","defaultValue","onValueChange","dir","name","autoComplete","disabled","required","popperScope","trigger","setTrigger","React","useState","valueNode","setValueNode","valueNodeHasChildren","setValueNodeHasChildren","direction","useDirection","setOpen","useControllableState","prop","defaultProp","onChange","setValue","triggerPointerDownPosRef","useRef","isFormControl","Boolean","closest","nativeOptionsSet","setNativeOptionsSet","Set","nativeSelectKey","Array","from","map","option","join","jsx","PopperPrimitive.Root","jsxs","scope","onTriggerChange","onValueNodeChange","onValueNodeHasChildrenChange","contentId","useId","Provider","onNativeOptionAdd","useCallback","prev","add","onNativeOptionRemove","optionsSet","delete","BubbleSelect","tabIndex","event","target","displayName","TRIGGER_NAME","SelectTrigger","forwardRef","forwardedRef","triggerProps","context","isDisabled","composedRefs","useComposedRefs","getItems","searchRef","handleTypeaheadSearch","resetTypeahead","useTypeaheadSearch","search","enabledItems","filter","item","currentItem","find","nextItem","findNextItem","handleOpen","PopperPrimitive.Anchor","asChild","Primitive","button","type","role","shouldShowPlaceholder","ref","onClick","composeEventHandlers","currentTarget","focus","onPointerDown","hasPointerCapture","pointerId","releasePointerCapture","ctrlKey","current","x","Math","round","pageX","y","pageY","preventDefault","onKeyDown","isTypingAhead","altKey","metaKey","key","length","includes","VALUE_NAME","SelectValue","className","style","placeholder","valueProps","hasChildren","useLayoutEffect","span","pointerEvents","Fragment","SelectIcon","iconProps","SelectPortal","PortalPrimitive","CONTENT_NAME","SelectContent","fragment","setFragment","DocumentFragment","frag","ReactDOM","createPortal","SelectContentProvider","Slot","SelectContentImpl","CONTENT_MARGIN","useSelectContentContext","position","onCloseAutoFocus","onEscapeKeyDown","onPointerDownOutside","side","sideOffset","align","alignOffset","arrowPadding","collisionBoundary","collisionPadding","sticky","hideWhenDetached","avoidCollisions","contentProps","content","setContent","viewport","setViewport","node","selectedItem","setSelectedItem","selectedItemText","setSelectedItemText","isPositioned","setIsPositioned","firstValidItemFoundRef","useEffect","hideOthers","useFocusGuards","focusFirst","candidates","firstItem","restItems","lastItem","slice","PREVIOUSLY_FOCUSED_ELEMENT","document","activeElement","candidate","scrollIntoView","block","scrollTop","scrollHeight","focusSelectedItem","pointerMoveDelta","handlePointerMove","abs","handlePointerUp","contains","removeEventListener","addEventListener","capture","once","close","window","setTimeout","itemRefCallback","isFirstValidItem","handleItemLeave","itemTextRefCallback","SelectPosition","SelectPopperPosition","SelectItemAlignedPosition","popperContentProps","onViewportChange","onItemLeave","RemoveScroll","as","allowPinchZoom","FocusScope","trapped","onMountAutoFocus","onUnmountAutoFocus","preventScroll","DismissableLayer","disableOutsidePointerEvents","onFocusOutside","onDismiss","id","onContextMenu","onPlaced","display","flexDirection","outline","isModifierKey","candidateNodes","reverse","currentElement","currentIndex","indexOf","popperProps","contentContext","contentWrapper","setContentWrapper","shouldExpandOnScrollRef","shouldRepositionRef","triggerRect","getBoundingClientRect","contentRect","valueNodeRect","itemTextRect","itemTextOffset","left","leftDelta","minContentWidth","width","contentWidth","max","rightEdge","innerWidth","clampedLeft","clamp","minWidth","right","rightDelta","leftEdge","clampedRight","items","availableHeight","innerHeight","itemsHeight","contentStyles","getComputedStyle","contentBorderTopWidth","parseInt","borderTopWidth","contentPaddingTop","paddingTop","contentBorderBottomWidth","borderBottomWidth","fullContentHeight","paddingBottom","minContentHeight","min","offsetHeight","viewportStyles","viewportPaddingTop","viewportPaddingBottom","topEdgeToTriggerMiddle","top","height","triggerMiddleToBottomEdge","selectedItemHalfHeight","contentTopToItemMiddle","offsetTop","itemMiddleToContentBottom","isLastItem","bottom","viewportOffsetBottom","clientHeight","isFirstItem","margin","minHeight","maxHeight","requestAnimationFrame","contentZIndex","setContentZIndex","zIndex","handleScrollButtonChange","SelectViewportProvider","onScrollButtonChange","div","boxSizing","PopperPrimitive.Content","useSelectViewportContext","VIEWPORT_NAME","SelectViewport","nonce","viewportProps","viewportContext","prevScrollTopRef","dangerouslySetInnerHTML","__html","flex","overflow","onScroll","scrolledBy","cssMinHeight","parseFloat","cssHeight","prevHeight","nextHeight","clampedNextHeight","heightDiff","justifyContent","GROUP_NAME","SelectGroupContextProvider","useSelectGroupContext","SelectGroup","groupProps","groupId","LABEL_NAME","SelectLabel","labelProps","groupContext","ITEM_NAME","SelectItemContextProvider","useSelectItemContext","SelectItem","textValue","textValueProp","itemProps","isSelected","setTextValue","isFocused","setIsFocused","textId","handleSelect","Error","onItemTextChange","prevTextValue","textContent","trim","ItemSlot","onFocus","onBlur","onPointerUp","onPointerMove","onPointerLeave","ITEM_TEXT_NAME","SelectItemText","itemTextProps","itemContext","nativeOptionsContext","itemTextNode","setItemTextNode","nativeOption","useMemo","ITEM_INDICATOR_NAME","SelectItemIndicator","itemIndicatorProps","SCROLL_UP_BUTTON_NAME","SelectScrollUpButton","canScrollUp","setCanScrollUp","handleScroll2","canScrollUp2","SelectScrollButtonImpl","onAutoScroll","SCROLL_DOWN_BUTTON_NAME","SelectScrollDownButton","canScrollDown","setCanScrollDown","maxScroll","canScrollDown2","ceil","scrollIndicatorProps","autoScrollTimerRef","clearAutoScrollTimer","clearInterval","activeItem","flexShrink","setInterval","SelectSeparator","separatorProps","ARROW_NAME","SelectArrow","arrowProps","PopperPrimitive.Arrow","selectProps","prevValue","usePrevious","select","selectProto","HTMLSelectElement","prototype","Object","getOwnPropertyDescriptor","set","Event","bubbles","call","dispatchEvent","VisuallyHidden","onSearchChange","handleSearchChange","useCallbackRef","timerRef","updateSearch","clearTimeout","normalizedSearch","every","char","currentItemIndex","wrappedItems","array","startIndex","_","index","v","toLowerCase","startsWith","Root2","Trigger","Value","Icon","Portal","Content2","Viewport","Group","Label","Item","ItemText","ItemIndicator","Separator"],"mappings":"miDA4BA,IAAIA,EAAY,CAAC,IAAK,QAAS,UAAW,aACtCC,EAAiB,CAAC,IAAK,SACvBC,EAAc,UACbC,EAAYC,EAAeC,GAAyBC,EA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B,OAAOiO,aAAaF,EAASjU,UACzC,IACI,CAAC9B,EAAWC,EAAuBC,EAC5C,CACA,SAASS,GAAaoL,EAAO3L,EAAQI,GACnC,MACM0V,EADa9V,EAAOuC,OAAS,GAAKhF,MAAMC,KAAKwC,GAAQ+V,OAAOC,GAASA,IAAShW,EAAO,KACrDA,EAAO,GAAKA,EAC5CiW,EAAmB7V,EAAcuL,EAAM5B,QAAQ3J,IAAgB,EACrE,IAAI8V,GAQaC,EARYxK,EAQLyK,EARYxU,KAAKqJ,IAAIgL,EAAkB,GASxDE,EAAM1Y,KAAI,CAAC4Y,EAAGC,IAAUH,GAAOC,EAAaE,GAASH,EAAM5T,WADpE,IAAmB4T,EAAOC,EAP+B,IAA5BN,EAAiBvT,SACpB2T,EAAeA,EAAahW,QAAQqW,GAAMA,IAAMnW,KACxE,MAAME,EAAW4V,EAAa7V,MAC3BF,GAASA,EAAK0Q,UAAU2F,cAAcC,WAAWX,EAAiBU,iBAErE,OAAOlW,IAAaF,EAAcE,OAAW,CAC/C,CArCAzB,GAAaI,YAAc,eAyCxB,IAACyX,GAAQ9b,EACR+b,GAAUxX,EACVyX,GAAQlU,EACRmU,GAAOzT,EACP0T,GAASxT,EACTyT,GAAWtT,EACXuT,GAAWpI,GACXqI,GAAQ/G,GACRgH,GAAQ5G,GACR6G,GAAOvG,GACPwG,GAAWlF,GACXmF,GAAgB1E,GAGhB2E,GAAYnD"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import*as e from"react";import
|
1
|
+
import*as e from"react";import a from"classnames";import{Slot as o}from"../../../../react-slot/dist/index.mjs";import{Text as s}from"./text.mjs";import{calloutRootPropDefs as t}from"./callout.props.mjs";import{extractProps as r}from"../helpers/extract-props.mjs";import{mapResponsiveProp as l,mapCalloutSizeToTextSize as m}from"../helpers/map-prop-values.mjs";import{marginPropDefs as p}from"../props/margin.props.mjs";const c=e.createContext({}),i=e.forwardRef(((s,l)=>{const{size:m=t.size.default}=s,{asChild:i,children:n,className:f,color:d,...u}=r(s,t,p);return e.createElement(i?o:"div",{"data-accent-color":d,...u,className:a("rt-CalloutRoot",f),ref:l},e.createElement(c.Provider,{value:e.useMemo((()=>({size:m})),[m])},n))}));i.displayName="Callout.Root";const n=e.forwardRef((({className:o,...s},t)=>e.createElement("div",{...s,className:a("rt-CalloutIcon",o),ref:t})));n.displayName="Callout.Icon";const f=e.forwardRef((({className:o,...t},r)=>{const{size:p}=e.useContext(c);return e.createElement(s,{as:"p",size:l(p,m),...t,asChild:!1,ref:r,className:a("rt-CalloutText",o)})}));f.displayName="Callout.Text";export{n as Icon,i as Root,f as Text};
|
2
2
|
//# sourceMappingURL=callout.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"callout.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/components/callout.js"],"sourcesContent":["\"use client\";import*as o from\"react\";import p from\"classnames\";import{Slot as P}from\"@radix-ui/react-slot\";import{Text as d}from\"./text.js\";import{calloutRootPropDefs as s}from\"./callout.props.js\";import{extractProps as R}from\"../helpers/extract-props.js\";import{mapResponsiveProp as x,mapCalloutSizeToTextSize as y}from\"../helpers/map-prop-values.js\";import{marginPropDefs as T}from\"../props/margin.props.js\";const a=o.createContext({}),n=o.forwardRef((t,l)=>{const{size:e=s.size.default}=t,{asChild:r,children:u,className:i,color:c,...f}=R(t,s,T);return o.createElement(r?P:\"div\",{\"data-accent-color\":c,...f,className:p(\"rt-CalloutRoot\",i),ref:l},o.createElement(a.Provider,{value:o.useMemo(()=>({size:e}),[e])},u))});n.displayName=\"Callout.Root\";const m=o.forwardRef(({className:t,...l},e)=>o.createElement(\"div\",{...l,className:p(\"rt-CalloutIcon\",t),ref:e}));m.displayName=\"Callout.Icon\";const C=o.forwardRef(({className:t,...l},e)=>{const{size:r}=o.useContext(a);return o.createElement(d,{as:\"p\",size:x(r,y),...l,asChild:!1,ref:e,className:p(\"rt-CalloutText\",t)})});C.displayName=\"Callout.Text\";export{m as Icon,n as Root,C as Text};\n//# sourceMappingURL=callout.js.map\n"],"names":["a","o","createContext","n","forwardRef","t","l","size","e","s","default","asChild","r","children","u","className","i","color","c","f","R","T","createElement","P","p","ref","Provider","value","useMemo","displayName","m","C","useContext","d","as","x","y"],"mappings":"
|
1
|
+
{"version":3,"file":"callout.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/components/callout.js"],"sourcesContent":["\"use client\";import*as o from\"react\";import p from\"classnames\";import{Slot as P}from\"@radix-ui/react-slot\";import{Text as d}from\"./text.js\";import{calloutRootPropDefs as s}from\"./callout.props.js\";import{extractProps as R}from\"../helpers/extract-props.js\";import{mapResponsiveProp as x,mapCalloutSizeToTextSize as y}from\"../helpers/map-prop-values.js\";import{marginPropDefs as T}from\"../props/margin.props.js\";const a=o.createContext({}),n=o.forwardRef((t,l)=>{const{size:e=s.size.default}=t,{asChild:r,children:u,className:i,color:c,...f}=R(t,s,T);return o.createElement(r?P:\"div\",{\"data-accent-color\":c,...f,className:p(\"rt-CalloutRoot\",i),ref:l},o.createElement(a.Provider,{value:o.useMemo(()=>({size:e}),[e])},u))});n.displayName=\"Callout.Root\";const m=o.forwardRef(({className:t,...l},e)=>o.createElement(\"div\",{...l,className:p(\"rt-CalloutIcon\",t),ref:e}));m.displayName=\"Callout.Icon\";const C=o.forwardRef(({className:t,...l},e)=>{const{size:r}=o.useContext(a);return o.createElement(d,{as:\"p\",size:x(r,y),...l,asChild:!1,ref:e,className:p(\"rt-CalloutText\",t)})});C.displayName=\"Callout.Text\";export{m as Icon,n as Root,C as Text};\n//# sourceMappingURL=callout.js.map\n"],"names":["a","o","createContext","n","forwardRef","t","l","size","e","s","default","asChild","r","children","u","className","i","color","c","f","R","T","createElement","P","p","ref","Provider","value","useMemo","displayName","m","C","useContext","d","as","x","y"],"mappings":"maAA+Z,MAACA,EAAEC,EAAEC,cAAc,CAAE,GAAEC,EAAEF,EAAEG,YAAW,CAACC,EAAEC,KAAK,MAAMC,KAAKC,EAAEC,EAAEF,KAAKG,SAASL,GAAGM,QAAQC,EAAEC,SAASC,EAAEC,UAAUC,EAAEC,MAAMC,KAAKC,GAAGC,EAAEf,EAAEI,EAAEY,GAAG,OAAOpB,EAAEqB,cAAcV,EAAEW,EAAE,MAAM,CAAC,oBAAoBL,KAAKC,EAAEJ,UAAUS,EAAE,iBAAiBR,GAAGS,IAAInB,GAAGL,EAAEqB,cAActB,EAAE0B,SAAS,CAACC,MAAM1B,EAAE2B,SAAQ,KAAA,CAAMrB,KAAKC,KAAI,CAACA,KAAKM,GAAE,IAAIX,EAAE0B,YAAY,eAAoB,MAACC,EAAE7B,EAAEG,YAAW,EAAEW,UAAUV,KAAKC,GAAGE,IAAIP,EAAEqB,cAAc,MAAM,IAAIhB,EAAES,UAAUS,EAAE,iBAAiBnB,GAAGoB,IAAIjB,MAAKsB,EAAED,YAAY,eAAoB,MAACE,EAAE9B,EAAEG,YAAW,EAAEW,UAAUV,KAAKC,GAAGE,KAAK,MAAMD,KAAKK,GAAGX,EAAE+B,WAAWhC,GAAG,OAAOC,EAAEqB,cAAcW,EAAE,CAACC,GAAG,IAAI3B,KAAK4B,EAAEvB,EAAEwB,MAAM9B,EAAEK,SAAQ,EAAGc,IAAIjB,EAAEO,UAAUS,EAAE,iBAAiBnB,IAAG,IAAI0B,EAAEF,YAAY"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import*as e from"react";import o from"
|
1
|
+
import*as e from"react";import o from"classnames";import{createContextScope as r}from"../../../../react-context/dist/index.mjs";import{createCheckboxGroupScope as t,Root as s,Item as a,Indicator as c}from"./checkbox-group.primitive.mjs";import{checkboxGroupRootPropDefs as m}from"./checkbox-group.props.mjs";import{ThickCheckIcon as p}from"./icons.mjs";import{Text as l}from"./text.mjs";import{extractProps as n}from"../helpers/extract-props.mjs";import{marginPropDefs as i}from"../props/margin.props.mjs";const h="CheckboxGroup",[x]=r(h,[t]),u=t(),[k,C]=x(h),b=e.forwardRef((({color:r=m.color.default,highContrast:t=m.highContrast.default,size:a=m.size.default,variant:c=m.variant.default,...p},l)=>{const{__scopeCheckboxGroup:h,className:x,...C}=n(p,i),b=u(h);return e.createElement(k,{scope:h,color:r,size:a,highContrast:t,variant:c},e.createElement(s,{...b,...C,ref:l,className:o("rt-CheckboxGroupRoot",x)}))}));b.displayName="CheckboxGroup.Root";const f=e.forwardRef(((r,t)=>{const{__scopeCheckboxGroup:s,children:a,className:c,style:m,...p}=r,{size:n}=C("CheckboxGroupItem",s);return a?e.createElement(l,{as:"label",size:n,className:o("rt-CheckboxGroupItem",c),style:m},e.createElement(d,{__scopeCheckboxGroup:s,...p,ref:t}),a&&e.createElement("span",{className:"rt-CheckboxGroupItemInner"},a)):e.createElement(d,{__scopeCheckboxGroup:s,...p,ref:t,className:c,style:m})}));f.displayName="CheckboxGroup.Item";const d=e.forwardRef((({__scopeCheckboxGroup:r,...t},s)=>{const l=C("CheckboxGroupItemCheckbox",r),h=u(r),{color:x,className:k}=n({...t,...l},m,i);return e.createElement(a,{...h,"data-accent-color":x,...t,ref:s,className:o("rt-reset","rt-BaseCheckboxRoot","rt-CheckboxGroupItemCheckbox",k)},e.createElement(c,{...h,asChild:!0,className:"rt-BaseCheckboxIndicator"},e.createElement(p,null)))}));d.displayName="CheckboxGroup.ItemCheckbox";export{f as Item,b as Root};
|
2
2
|
//# sourceMappingURL=checkbox-group.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"checkbox-group.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.js"],"sourcesContent":["\"use client\";import*as o from\"react\";import C from\"classnames\";import{createContextScope as y}from\"@radix-ui/react-context\";import*as i from\"./checkbox-group.primitive.js\";import{createCheckboxGroupScope as n}from\"./checkbox-group.primitive.js\";import{checkboxGroupRootPropDefs as x}from\"./checkbox-group.props.js\";import{ThickCheckIcon as R}from\"./icons.js\";import{Text as v}from\"./text.js\";import{extractProps as a}from\"../helpers/extract-props.js\";import{marginPropDefs as k}from\"../props/margin.props.js\";const b=\"CheckboxGroup\",[N]=y(b,[n]),G=n(),[E,P]=N(b),f=o.forwardRef(({color:s=x.color.default,highContrast:e=x.highContrast.default,size:r=x.size.default,variant:t=x.variant.default,...p},m)=>{const{__scopeCheckboxGroup:c,className:h,...I}=a(p,k),d=G(c);return o.createElement(E,{scope:c,color:s,size:r,highContrast:e,variant:t},o.createElement(i.Root,{...d,...I,ref:m,className:C(\"rt-CheckboxGroupRoot\",h)}))});f.displayName=\"CheckboxGroup.Root\";const l=o.forwardRef((s,e)=>{const{__scopeCheckboxGroup:r,children:t,className:p,style:m,...c}=s,{size:h}=P(\"CheckboxGroupItem\",r);return t?o.createElement(v,{as:\"label\",size:h,className:C(\"rt-CheckboxGroupItem\",p),style:m},o.createElement(u,{__scopeCheckboxGroup:r,...c,ref:e}),t&&o.createElement(\"span\",{className:\"rt-CheckboxGroupItemInner\"},t)):o.createElement(u,{__scopeCheckboxGroup:r,...c,ref:e,className:p,style:m})});l.displayName=\"CheckboxGroup.Item\";const u=o.forwardRef(({__scopeCheckboxGroup:s,...e},r)=>{const t=P(\"CheckboxGroupItemCheckbox\",s),p=G(s),{color:m,className:c}=a({...e,...t},x,k);return o.createElement(i.Item,{...p,\"data-accent-color\":m,...e,ref:r,className:C(\"rt-reset\",\"rt-BaseCheckboxRoot\",\"rt-CheckboxGroupItemCheckbox\",c)},o.createElement(i.Indicator,{...p,asChild:!0,className:\"rt-BaseCheckboxIndicator\"},o.createElement(R,null)))});u.displayName=\"CheckboxGroup.ItemCheckbox\";export{l as Item,f as Root};\n//# sourceMappingURL=checkbox-group.js.map\n"],"names":["b","N","y","n","G","E","P","f","o","forwardRef","color","s","x","default","highContrast","e","size","r","variant","t","p","m","__scopeCheckboxGroup","c","className","h","I","a","k","d","createElement","scope","i.Root","ref","C","displayName","l","children","style","v","as","u","i.Item","i.Indicator","asChild","R"],"mappings":"
|
1
|
+
{"version":3,"file":"checkbox-group.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/components/checkbox-group.js"],"sourcesContent":["\"use client\";import*as o from\"react\";import C from\"classnames\";import{createContextScope as y}from\"@radix-ui/react-context\";import*as i from\"./checkbox-group.primitive.js\";import{createCheckboxGroupScope as n}from\"./checkbox-group.primitive.js\";import{checkboxGroupRootPropDefs as x}from\"./checkbox-group.props.js\";import{ThickCheckIcon as R}from\"./icons.js\";import{Text as v}from\"./text.js\";import{extractProps as a}from\"../helpers/extract-props.js\";import{marginPropDefs as k}from\"../props/margin.props.js\";const b=\"CheckboxGroup\",[N]=y(b,[n]),G=n(),[E,P]=N(b),f=o.forwardRef(({color:s=x.color.default,highContrast:e=x.highContrast.default,size:r=x.size.default,variant:t=x.variant.default,...p},m)=>{const{__scopeCheckboxGroup:c,className:h,...I}=a(p,k),d=G(c);return o.createElement(E,{scope:c,color:s,size:r,highContrast:e,variant:t},o.createElement(i.Root,{...d,...I,ref:m,className:C(\"rt-CheckboxGroupRoot\",h)}))});f.displayName=\"CheckboxGroup.Root\";const l=o.forwardRef((s,e)=>{const{__scopeCheckboxGroup:r,children:t,className:p,style:m,...c}=s,{size:h}=P(\"CheckboxGroupItem\",r);return t?o.createElement(v,{as:\"label\",size:h,className:C(\"rt-CheckboxGroupItem\",p),style:m},o.createElement(u,{__scopeCheckboxGroup:r,...c,ref:e}),t&&o.createElement(\"span\",{className:\"rt-CheckboxGroupItemInner\"},t)):o.createElement(u,{__scopeCheckboxGroup:r,...c,ref:e,className:p,style:m})});l.displayName=\"CheckboxGroup.Item\";const u=o.forwardRef(({__scopeCheckboxGroup:s,...e},r)=>{const t=P(\"CheckboxGroupItemCheckbox\",s),p=G(s),{color:m,className:c}=a({...e,...t},x,k);return o.createElement(i.Item,{...p,\"data-accent-color\":m,...e,ref:r,className:C(\"rt-reset\",\"rt-BaseCheckboxRoot\",\"rt-CheckboxGroupItemCheckbox\",c)},o.createElement(i.Indicator,{...p,asChild:!0,className:\"rt-BaseCheckboxIndicator\"},o.createElement(R,null)))});u.displayName=\"CheckboxGroup.ItemCheckbox\";export{l as Item,f as Root};\n//# sourceMappingURL=checkbox-group.js.map\n"],"names":["b","N","y","n","G","E","P","f","o","forwardRef","color","s","x","default","highContrast","e","size","r","variant","t","p","m","__scopeCheckboxGroup","c","className","h","I","a","k","d","createElement","scope","i.Root","ref","C","displayName","l","children","style","v","as","u","i.Item","i.Indicator","asChild","R"],"mappings":"0fAAkgB,MAACA,EAAE,iBAAiBC,GAAGC,EAAEF,EAAE,CAACG,IAAIC,EAAED,KAAKE,EAAEC,GAAGL,EAAED,GAAGO,EAAEC,EAAEC,YAAW,EAAEC,MAAMC,EAAEC,EAAEF,MAAMG,QAAQC,aAAaC,EAAEH,EAAEE,aAAaD,QAAQG,KAAKC,EAAEL,EAAEI,KAAKH,QAAQK,QAAQC,EAAEP,EAAEM,QAAQL,WAAWO,GAAGC,KAAK,MAAMC,qBAAqBC,EAAEC,UAAUC,KAAKC,GAAGC,EAAEP,EAAEQ,GAAGC,EAAEzB,EAAEmB,GAAG,OAAOf,EAAEsB,cAAczB,EAAE,CAAC0B,MAAMR,EAAEb,MAAMC,EAAEK,KAAKC,EAAEH,aAAaC,EAAEG,QAAQC,GAAGX,EAAEsB,cAAcE,EAAO,IAAIH,KAAKH,EAAEO,IAAIZ,EAAEG,UAAUU,EAAE,uBAAuBT,KAAI,IAAIlB,EAAE4B,YAAY,qBAA0B,MAACC,EAAE5B,EAAEC,YAAW,CAACE,EAAEI,KAAK,MAAMO,qBAAqBL,EAAEoB,SAASlB,EAAEK,UAAUJ,EAAEkB,MAAMjB,KAAKE,GAAGZ,GAAGK,KAAKS,GAAGnB,EAAE,oBAAoBW,GAAG,OAAOE,EAAEX,EAAEsB,cAAcS,EAAE,CAACC,GAAG,QAAQxB,KAAKS,EAAED,UAAUU,EAAE,uBAAuBd,GAAGkB,MAAMjB,GAAGb,EAAEsB,cAAcW,EAAE,CAACnB,qBAAqBL,KAAKM,EAAEU,IAAIlB,IAAII,GAAGX,EAAEsB,cAAc,OAAO,CAACN,UAAU,6BAA6BL,IAAIX,EAAEsB,cAAcW,EAAE,CAACnB,qBAAqBL,KAAKM,EAAEU,IAAIlB,EAAES,UAAUJ,EAAEkB,MAAMjB,GAAE,IAAIe,EAAED,YAAY,qBAAqB,MAAMM,EAAEjC,EAAEC,YAAW,EAAEa,qBAAqBX,KAAKI,GAAGE,KAAK,MAAME,EAAEb,EAAE,4BAA4BK,GAAGS,EAAEhB,EAAEO,IAAID,MAAMW,EAAEG,UAAUD,GAAGI,EAAE,IAAIZ,KAAKI,GAAGP,EAAEgB,GAAG,OAAOpB,EAAEsB,cAAcY,EAAO,IAAItB,EAAE,oBAAoBC,KAAKN,EAAEkB,IAAIhB,EAAEO,UAAUU,EAAE,WAAW,sBAAsB,+BAA+BX,IAAIf,EAAEsB,cAAca,EAAY,IAAIvB,EAAEwB,SAAQ,EAAGpB,UAAU,4BAA4BhB,EAAEsB,cAAce,EAAE,OAAM,IAAIJ,EAAEN,YAAY"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import a from"
|
1
|
+
import a from"classnames";import*as t from"react";import{Text as e}from"./text.mjs";import{dataListRootPropDefs as s,dataListItemPropDefs as r,dataListLabelPropDefs as o}from"./data-list.props.mjs";import{extractProps as m}from"../helpers/extract-props.mjs";import{marginPropDefs as l}from"../props/margin.props.mjs";const c=t.forwardRef(((r,o)=>{const{className:c,...i}=m(r,s,l);return t.createElement(e,{asChild:!0},t.createElement("dl",{...i,ref:o,className:a("rt-DataListRoot",c)}))}));c.displayName="DataList.Root";const i=t.forwardRef(((e,s)=>{const{className:o,...l}=m(e,r);return t.createElement("div",{...l,ref:s,className:a("rt-DataListItem",o)})}));i.displayName="DataList.Item";const p=t.forwardRef(((e,s)=>{const{className:r,color:l,...c}=m(e,o);return t.createElement("dt",{...c,"data-accent-color":l,ref:s,className:a("rt-DataListLabel",r)})}));p.displayName="DataList.Label";const f=t.forwardRef((({children:e,className:s,...r},o)=>t.createElement("dd",{...r,ref:o,className:a(s,"rt-DataListValue")},e)));f.displayName="DataList.Value";export{i as Item,p as Label,c as Root,f as Value};
|
2
2
|
//# sourceMappingURL=data-list.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"data-list.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/components/data-list.js"],"sourcesContent":["import r from\"classnames\";import*as t from\"react\";import{Text as D}from\"./text.js\";import{dataListRootPropDefs as P,dataListItemPropDefs as d,dataListLabelPropDefs as f}from\"./data-list.props.js\";import{extractProps as p}from\"../helpers/extract-props.js\";import{marginPropDefs as c}from\"../props/margin.props.js\";const i=t.forwardRef((a,e)=>{const{className:s,...o}=p(a,P,c);return t.createElement(D,{asChild:!0},t.createElement(\"dl\",{...o,ref:e,className:r(\"rt-DataListRoot\",s)}))});i.displayName=\"DataList.Root\";const m=t.forwardRef((a,e)=>{const{className:s,...o}=p(a,d);return t.createElement(\"div\",{...o,ref:e,className:r(\"rt-DataListItem\",s)})});m.displayName=\"DataList.Item\";const L=t.forwardRef((a,e)=>{const{className:s,color:o,...n}=p(a,f);return t.createElement(\"dt\",{...n,\"data-accent-color\":o,ref:e,className:r(\"rt-DataListLabel\",s)})});L.displayName=\"DataList.Label\";const l=t.forwardRef(({children:a,className:e,...s},o)=>t.createElement(\"dd\",{...s,ref:o,className:r(e,\"rt-DataListValue\")},a));l.displayName=\"DataList.Value\";export{m as Item,L as Label,i as Root,l as Value};\n//# sourceMappingURL=data-list.js.map\n"],"names":["i","t","forwardRef","a","e","className","s","o","p","P","c","createElement","D","asChild","ref","r","displayName","m","d","L","color","n","f","l","children"],"mappings":"
|
1
|
+
{"version":3,"file":"data-list.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/components/data-list.js"],"sourcesContent":["import r from\"classnames\";import*as t from\"react\";import{Text as D}from\"./text.js\";import{dataListRootPropDefs as P,dataListItemPropDefs as d,dataListLabelPropDefs as f}from\"./data-list.props.js\";import{extractProps as p}from\"../helpers/extract-props.js\";import{marginPropDefs as c}from\"../props/margin.props.js\";const i=t.forwardRef((a,e)=>{const{className:s,...o}=p(a,P,c);return t.createElement(D,{asChild:!0},t.createElement(\"dl\",{...o,ref:e,className:r(\"rt-DataListRoot\",s)}))});i.displayName=\"DataList.Root\";const m=t.forwardRef((a,e)=>{const{className:s,...o}=p(a,d);return t.createElement(\"div\",{...o,ref:e,className:r(\"rt-DataListItem\",s)})});m.displayName=\"DataList.Item\";const L=t.forwardRef((a,e)=>{const{className:s,color:o,...n}=p(a,f);return t.createElement(\"dt\",{...n,\"data-accent-color\":o,ref:e,className:r(\"rt-DataListLabel\",s)})});L.displayName=\"DataList.Label\";const l=t.forwardRef(({children:a,className:e,...s},o)=>t.createElement(\"dd\",{...s,ref:o,className:r(e,\"rt-DataListValue\")},a));l.displayName=\"DataList.Value\";export{m as Item,L as Label,i as Root,l as Value};\n//# sourceMappingURL=data-list.js.map\n"],"names":["i","t","forwardRef","a","e","className","s","o","p","P","c","createElement","D","asChild","ref","r","displayName","m","d","L","color","n","f","l","children"],"mappings":"6TAA8T,MAACA,EAAEC,EAAEC,YAAW,CAACC,EAAEC,KAAK,MAAMC,UAAUC,KAAKC,GAAGC,EAAEL,EAAEM,EAAEC,GAAG,OAAOT,EAAEU,cAAcC,EAAE,CAACC,SAAQ,GAAIZ,EAAEU,cAAc,KAAK,IAAIJ,EAAEO,IAAIV,EAAEC,UAAUU,EAAE,kBAAkBT,KAAI,IAAIN,EAAEgB,YAAY,gBAAqB,MAACC,EAAEhB,EAAEC,YAAW,CAACC,EAAEC,KAAK,MAAMC,UAAUC,KAAKC,GAAGC,EAAEL,EAAEe,GAAG,OAAOjB,EAAEU,cAAc,MAAM,IAAIJ,EAAEO,IAAIV,EAAEC,UAAUU,EAAE,kBAAkBT,IAAG,IAAIW,EAAED,YAAY,gBAAqB,MAACG,EAAElB,EAAEC,YAAW,CAACC,EAAEC,KAAK,MAAMC,UAAUC,EAAEc,MAAMb,KAAKc,GAAGb,EAAEL,EAAEmB,GAAG,OAAOrB,EAAEU,cAAc,KAAK,IAAIU,EAAE,oBAAoBd,EAAEO,IAAIV,EAAEC,UAAUU,EAAE,mBAAmBT,IAAG,IAAIa,EAAEH,YAAY,iBAAsB,MAACO,EAAEtB,EAAEC,YAAW,EAAEsB,SAASrB,EAAEE,UAAUD,KAAKE,GAAGC,IAAIN,EAAEU,cAAc,KAAK,IAAIL,EAAEQ,IAAIP,EAAEF,UAAUU,EAAEX,EAAE,qBAAqBD,KAAIoB,EAAEP,YAAY"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import*as e from"react";import a from"
|
1
|
+
import*as e from"react";import a from"classnames";import{Trigger as r,Portal as t,Overlay as o,Content as l,Title as s,Description as i,Close as m,Root as n}from"../../../../react-dialog/dist/index.mjs";import{dialogContentPropDefs as c}from"./dialog.props.mjs";import{Heading as d}from"./heading.mjs";import{Text as g}from"./text.mjs";import{Theme as f}from"./theme.mjs";import{extractProps as p}from"../helpers/extract-props.mjs";import{requireReactElement as D}from"../helpers/require-react-element.mjs";const h=a=>e.createElement(n,{...a,modal:!0});h.displayName="Dialog.Root";const C=e.forwardRef((({children:a,...t},o)=>e.createElement(r,{...t,ref:o,asChild:!0},D(a))));C.displayName="Dialog.Trigger";const E=e.forwardRef((({align:r,...s},i)=>{const{align:m,...n}=c,{className:d}=p({align:r},{align:m}),{className:g,forceMount:D,container:h,...C}=p(s,n);return e.createElement(t,{container:h,forceMount:D},e.createElement(f,{asChild:!0},e.createElement(o,{className:"rt-BaseDialogOverlay rt-DialogOverlay"},e.createElement("div",{className:"rt-BaseDialogScroll rt-DialogScroll"},e.createElement("div",{className:`rt-BaseDialogScrollPadding rt-DialogScrollPadding ${d}`},e.createElement(l,{...C,ref:i,className:a("rt-BaseDialogContent","rt-DialogContent",g)}))))))}));E.displayName="Dialog.Content";const N=e.forwardRef(((a,r)=>e.createElement(s,{asChild:!0},e.createElement(d,{size:"5",mb:"3",trim:"start",...a,asChild:!1,ref:r}))));N.displayName="Dialog.Title";const y=e.forwardRef(((a,r)=>e.createElement(i,{asChild:!0},e.createElement(g,{as:"p",size:"3",...a,asChild:!1,ref:r}))));y.displayName="Dialog.Description";const R=e.forwardRef((({children:a,...r},t)=>e.createElement(m,{...r,ref:t,asChild:!0},D(a))));R.displayName="Dialog.Close";export{R as Close,E as Content,y as Description,h as Root,N as Title,C as Trigger};
|
2
2
|
//# sourceMappingURL=dialog.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dialog.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/components/dialog.js"],"sourcesContent":["import*as o from\"react\";import v from\"classnames\";import*as t from\"@radix-ui/react-dialog\";import{dialogContentPropDefs as h}from\"./dialog.props.js\";import{Heading as R}from\"./heading.js\";import{Text as E}from\"./text.js\";import{Theme as N}from\"./theme.js\";import{extractProps as a}from\"../helpers/extract-props.js\";import{requireReactElement as l}from\"../helpers/require-react-element.js\";const s=e=>o.createElement(t.Root,{...e,modal:!0});s.displayName=\"Dialog.Root\";const n=o.forwardRef(({children:e,...i},r)=>o.createElement(t.Trigger,{...i,ref:r,asChild:!0},l(e)));n.displayName=\"Dialog.Trigger\";const p=o.forwardRef(({align:e,...i},r)=>{const{align:P,...f}=h,{className:C}=a({align:e},{align:P}),{className:d,forceMount:c,container:y,...T}=a(i,f);return o.createElement(t.Portal,{container:y,forceMount:c},o.createElement(N,{asChild:!0},o.createElement(t.Overlay,{className:\"rt-BaseDialogOverlay rt-DialogOverlay\"},o.createElement(\"div\",{className:\"rt-BaseDialogScroll rt-DialogScroll\"},o.createElement(\"div\",{className:`rt-BaseDialogScrollPadding rt-DialogScrollPadding ${C}`},o.createElement(t.Content,{...T,ref:r,className:v(\"rt-BaseDialogContent\",\"rt-DialogContent\",d)}))))))});p.displayName=\"Dialog.Content\";const g=o.forwardRef((e,i)=>o.createElement(t.Title,{asChild:!0},o.createElement(R,{size:\"5\",mb:\"3\",trim:\"start\",...e,asChild:!1,ref:i})));g.displayName=\"Dialog.Title\";const m=o.forwardRef((e,i)=>o.createElement(t.Description,{asChild:!0},o.createElement(E,{as:\"p\",size:\"3\",...e,asChild:!1,ref:i})));m.displayName=\"Dialog.Description\";const D=o.forwardRef(({children:e,...i},r)=>o.createElement(t.Close,{...i,ref:r,asChild:!0},l(e)));D.displayName=\"Dialog.Close\";export{D as Close,p as Content,m as Description,s as Root,g as Title,n as Trigger};\n//# sourceMappingURL=dialog.js.map\n"],"names":["s","e","o","createElement","t.Root","modal","displayName","n","forwardRef","children","i","r","t.Trigger","ref","asChild","l","p","align","P","f","h","className","C","a","d","forceMount","c","container","y","T","t.Portal","N","t.Overlay","t.Content","v","g","t.Title","R","size","mb","trim","m","t.Description","E","as","D","t.Close"],"mappings":"
|
1
|
+
{"version":3,"file":"dialog.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/components/dialog.js"],"sourcesContent":["import*as o from\"react\";import v from\"classnames\";import*as t from\"@radix-ui/react-dialog\";import{dialogContentPropDefs as h}from\"./dialog.props.js\";import{Heading as R}from\"./heading.js\";import{Text as E}from\"./text.js\";import{Theme as N}from\"./theme.js\";import{extractProps as a}from\"../helpers/extract-props.js\";import{requireReactElement as l}from\"../helpers/require-react-element.js\";const s=e=>o.createElement(t.Root,{...e,modal:!0});s.displayName=\"Dialog.Root\";const n=o.forwardRef(({children:e,...i},r)=>o.createElement(t.Trigger,{...i,ref:r,asChild:!0},l(e)));n.displayName=\"Dialog.Trigger\";const p=o.forwardRef(({align:e,...i},r)=>{const{align:P,...f}=h,{className:C}=a({align:e},{align:P}),{className:d,forceMount:c,container:y,...T}=a(i,f);return o.createElement(t.Portal,{container:y,forceMount:c},o.createElement(N,{asChild:!0},o.createElement(t.Overlay,{className:\"rt-BaseDialogOverlay rt-DialogOverlay\"},o.createElement(\"div\",{className:\"rt-BaseDialogScroll rt-DialogScroll\"},o.createElement(\"div\",{className:`rt-BaseDialogScrollPadding rt-DialogScrollPadding ${C}`},o.createElement(t.Content,{...T,ref:r,className:v(\"rt-BaseDialogContent\",\"rt-DialogContent\",d)}))))))});p.displayName=\"Dialog.Content\";const g=o.forwardRef((e,i)=>o.createElement(t.Title,{asChild:!0},o.createElement(R,{size:\"5\",mb:\"3\",trim:\"start\",...e,asChild:!1,ref:i})));g.displayName=\"Dialog.Title\";const m=o.forwardRef((e,i)=>o.createElement(t.Description,{asChild:!0},o.createElement(E,{as:\"p\",size:\"3\",...e,asChild:!1,ref:i})));m.displayName=\"Dialog.Description\";const D=o.forwardRef(({children:e,...i},r)=>o.createElement(t.Close,{...i,ref:r,asChild:!0},l(e)));D.displayName=\"Dialog.Close\";export{D as Close,p as Content,m as Description,s as Root,g as Title,n as Trigger};\n//# sourceMappingURL=dialog.js.map\n"],"names":["s","e","o","createElement","t.Root","modal","displayName","n","forwardRef","children","i","r","t.Trigger","ref","asChild","l","p","align","P","f","h","className","C","a","d","forceMount","c","container","y","T","t.Portal","N","t.Overlay","t.Content","v","g","t.Title","R","size","mb","trim","m","t.Description","E","as","D","t.Close"],"mappings":"2fAA0Y,MAACA,EAAEC,GAAGC,EAAEC,cAAcC,EAAO,IAAIH,EAAEI,OAAM,IAAKL,EAAEM,YAAY,cAAmB,MAACC,EAAEL,EAAEM,YAAW,EAAEC,SAASR,KAAKS,GAAGC,IAAIT,EAAEC,cAAcS,EAAU,IAAIF,EAAEG,IAAIF,EAAEG,SAAQ,GAAIC,EAAEd,MAAKM,EAAED,YAAY,iBAAsB,MAACU,EAAEd,EAAEM,YAAW,EAAES,MAAMhB,KAAKS,GAAGC,KAAK,MAAMM,MAAMC,KAAKC,GAAGC,GAAGC,UAAUC,GAAGC,EAAE,CAACN,MAAMhB,GAAG,CAACgB,MAAMC,KAAKG,UAAUG,EAAEC,WAAWC,EAAEC,UAAUC,KAAKC,GAAGN,EAAEb,EAAES,GAAG,OAAOjB,EAAEC,cAAc2B,EAAS,CAACH,UAAUC,EAAEH,WAAWC,GAAGxB,EAAEC,cAAc4B,EAAE,CAACjB,SAAQ,GAAIZ,EAAEC,cAAc6B,EAAU,CAACX,UAAU,yCAAyCnB,EAAEC,cAAc,MAAM,CAACkB,UAAU,uCAAuCnB,EAAEC,cAAc,MAAM,CAACkB,UAAU,qDAAqDC,KAAKpB,EAAEC,cAAc8B,EAAU,IAAIJ,EAAEhB,IAAIF,EAAEU,UAAUa,EAAE,uBAAuB,mBAAmBV,SAAQ,IAAIR,EAAEV,YAAY,iBAAsB,MAAC6B,EAAEjC,EAAEM,YAAW,CAACP,EAAES,IAAIR,EAAEC,cAAciC,EAAQ,CAACtB,SAAQ,GAAIZ,EAAEC,cAAckC,EAAE,CAACC,KAAK,IAAIC,GAAG,IAAIC,KAAK,WAAWvC,EAAEa,SAAQ,EAAGD,IAAIH,OAAMyB,EAAE7B,YAAY,eAAoB,MAACmC,EAAEvC,EAAEM,YAAW,CAACP,EAAES,IAAIR,EAAEC,cAAcuC,EAAc,CAAC5B,SAAQ,GAAIZ,EAAEC,cAAcwC,EAAE,CAACC,GAAG,IAAIN,KAAK,OAAOrC,EAAEa,SAAQ,EAAGD,IAAIH,OAAM+B,EAAEnC,YAAY,qBAA0B,MAACuC,EAAE3C,EAAEM,YAAW,EAAEC,SAASR,KAAKS,GAAGC,IAAIT,EAAEC,cAAc2C,EAAQ,IAAIpC,EAAEG,IAAIF,EAAEG,SAAQ,GAAIC,EAAEd,MAAK4C,EAAEvC,YAAY"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import*as r from"react";import s from"
|
1
|
+
import*as r from"react";import s from"classnames";import{extractProps as o}from"../helpers/extract-props.mjs";import{layoutPropDefs as e}from"../props/layout.props.mjs";import{marginPropDefs as a}from"../props/margin.props.mjs";import{Slot as m}from"../../../../react-slot/dist/index.mjs";import{flexPropDefs as p}from"./flex.props.mjs";const t=r.forwardRef(((t,f)=>{const{className:l,asChild:i,as:c="div",...x}=o(t,p,e,a);return r.createElement(i?m:c,{...x,ref:f,className:s("rt-Flex",l)})}));t.displayName="Flex";export{t as Flex};
|
2
2
|
//# sourceMappingURL=flex.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"flex.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/components/flex.js"],"sourcesContent":["import*as o from\"react\";import a from\"classnames\";import{extractProps as n}from\"../helpers/extract-props.js\";import{layoutPropDefs as i}from\"../props/layout.props.js\";import{marginPropDefs as P}from\"../props/margin.props.js\";import{Slot as x}from\"./slot.js\";import{flexPropDefs as f}from\"./flex.props.js\";const p=o.forwardRef((r,e)=>{const{className:s,asChild:t,as:m=\"div\",...l}=n(r,f,i,P);return o.createElement(t?x:m,{...l,ref:e,className:a(\"rt-Flex\",s)})});p.displayName=\"Flex\";export{p as Flex};\n//# sourceMappingURL=flex.js.map\n"],"names":["p","o","forwardRef","r","e","className","s","asChild","t","as","m","l","n","f","i","P","createElement","x","ref","a","displayName"],"mappings":"
|
1
|
+
{"version":3,"file":"flex.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/components/flex.js"],"sourcesContent":["import*as o from\"react\";import a from\"classnames\";import{extractProps as n}from\"../helpers/extract-props.js\";import{layoutPropDefs as i}from\"../props/layout.props.js\";import{marginPropDefs as P}from\"../props/margin.props.js\";import{Slot as x}from\"./slot.js\";import{flexPropDefs as f}from\"./flex.props.js\";const p=o.forwardRef((r,e)=>{const{className:s,asChild:t,as:m=\"div\",...l}=n(r,f,i,P);return o.createElement(t?x:m,{...l,ref:e,className:a(\"rt-Flex\",s)})});p.displayName=\"Flex\";export{p as Flex};\n//# sourceMappingURL=flex.js.map\n"],"names":["p","o","forwardRef","r","e","className","s","asChild","t","as","m","l","n","f","i","P","createElement","x","ref","a","displayName"],"mappings":"iVAAsT,MAACA,EAAEC,EAAEC,YAAW,CAACC,EAAEC,KAAK,MAAMC,UAAUC,EAAEC,QAAQC,EAAEC,GAAGC,EAAE,SAASC,GAAGC,EAAET,EAAEU,EAAEC,EAAEC,GAAG,OAAOd,EAAEe,cAAcR,EAAES,EAAEP,EAAE,IAAIC,EAAEO,IAAId,EAAEC,UAAUc,EAAE,UAAUb,IAAG,IAAIN,EAAEoB,YAAY"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import*as r from"react";import s from"
|
1
|
+
import*as r from"react";import s from"classnames";import{Slot as o}from"../../../../react-slot/dist/index.mjs";import{gridPropDefs as a}from"./grid.props.mjs";import{extractProps as m}from"../helpers/extract-props.mjs";import{layoutPropDefs as p}from"../props/layout.props.mjs";import{marginPropDefs as t}from"../props/margin.props.mjs";const e=r.forwardRef(((e,i)=>{const{className:f,asChild:d,as:c="div",...l}=m(e,a,p,t);return r.createElement(d?o:c,{...l,ref:i,className:s("rt-Grid",f)})}));e.displayName="Grid";export{e as Grid};
|
2
2
|
//# sourceMappingURL=grid.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"grid.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/components/grid.js"],"sourcesContent":["import*as r from\"react\";import a from\"classnames\";import{Slot as d}from\"./slot.js\";import{gridPropDefs as n}from\"./grid.props.js\";import{extractProps as P}from\"../helpers/extract-props.js\";import{layoutPropDefs as f}from\"../props/layout.props.js\";import{marginPropDefs as G}from\"../props/margin.props.js\";const o=r.forwardRef((p,s)=>{const{className:t,asChild:e,as:i=\"div\",...m}=P(p,n,f,G);return r.createElement(e?d:i,{...m,ref:s,className:a(\"rt-Grid\",t)})});o.displayName=\"Grid\";export{o as Grid};\n//# sourceMappingURL=grid.js.map\n"],"names":["o","r","forwardRef","p","s","className","t","asChild","e","as","i","m","P","n","f","G","createElement","d","ref","a","displayName"],"mappings":"
|
1
|
+
{"version":3,"file":"grid.mjs","sources":["../../../../../../../node_modules/@radix-ui/themes/dist/esm/components/grid.js"],"sourcesContent":["import*as r from\"react\";import a from\"classnames\";import{Slot as d}from\"./slot.js\";import{gridPropDefs as n}from\"./grid.props.js\";import{extractProps as P}from\"../helpers/extract-props.js\";import{layoutPropDefs as f}from\"../props/layout.props.js\";import{marginPropDefs as G}from\"../props/margin.props.js\";const o=r.forwardRef((p,s)=>{const{className:t,asChild:e,as:i=\"div\",...m}=P(p,n,f,G);return r.createElement(e?d:i,{...m,ref:s,className:a(\"rt-Grid\",t)})});o.displayName=\"Grid\";export{o as Grid};\n//# sourceMappingURL=grid.js.map\n"],"names":["o","r","forwardRef","p","s","className","t","asChild","e","as","i","m","P","n","f","G","createElement","d","ref","a","displayName"],"mappings":"iVAAsT,MAACA,EAAEC,EAAEC,YAAW,CAACC,EAAEC,KAAK,MAAMC,UAAUC,EAAEC,QAAQC,EAAEC,GAAGC,EAAE,SAASC,GAAGC,EAAET,EAAEU,EAAEC,EAAEC,GAAG,OAAOd,EAAEe,cAAcR,EAAES,EAAEP,EAAE,IAAIC,EAAEO,IAAId,EAAEC,UAAUc,EAAE,UAAUb,IAAG,IAAIN,EAAEoB,YAAY"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import*as r from"react";import
|
1
|
+
import*as r from"react";import a from"classnames";import{Slot as e}from"../../../../react-slot/dist/index.mjs";import{headingPropDefs as s}from"./heading.props.mjs";import{extractProps as o}from"../helpers/extract-props.mjs";import{marginPropDefs as t}from"../props/margin.props.mjs";const m=r.forwardRef(((m,p)=>{const{children:i,className:n,asChild:c,as:l="h1",color:d,...f}=o(m,s,t);return r.createElement(e,{"data-accent-color":d,...f,ref:p,className:a("rt-Heading",n)},c?i:r.createElement(l,null,i))}));m.displayName="Heading";export{m as Heading};
|
2
2
|
//# sourceMappingURL=heading.mjs.map
|