@optiaxiom/react 0.3.4 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/src/alert-dialog-content/{AlertDialogContent.css.ts.vanilla-BofFY4c6.css → AlertDialogContent.css.ts.vanilla-Q3NIqlJM.css} +7 -7
- package/dist/assets/src/alert-dialog-footer/AlertDialogFooter.css.ts.vanilla-CwXE2VkG.css +6 -0
- package/dist/assets/src/autocomplete-content/{AutocompleteContent.css.ts.vanilla-DbhN4jbL.css → AutocompleteContent.css.ts.vanilla-BSS4gDqH.css} +4 -4
- package/dist/assets/src/avatar/Avatar.css.ts.vanilla-DBcDsevU.css +27 -0
- package/dist/assets/src/badge/Badge.css.ts.vanilla-v_WxKtkk.css +46 -0
- package/dist/assets/src/box/{Box.css.ts.vanilla-CBeLPJz0.css → Box.css.ts.vanilla-DlV97In6.css} +23 -23
- package/dist/assets/src/button-base/ButtonBase.css.ts.vanilla-Cdep1j3a.css +140 -0
- package/dist/assets/src/button-loadable/ButtonLoadable.css.ts.vanilla-B3UxIRoe.css +9 -0
- package/dist/assets/src/checkbox/Checkbox.css.ts.vanilla-B4c8nGzf.css +18 -0
- package/dist/assets/src/code/Code.css.ts.vanilla-BE7HUNcL.css +7 -0
- package/dist/assets/src/data-table/DataTable.css.ts.vanilla-BJs_Nl-b.css +24 -0
- package/dist/assets/src/data-table-header/DataTableHeader.css.ts.vanilla-xxkcym9y.css +12 -0
- package/dist/assets/src/dialog-content/DialogContent.css.ts.vanilla-DysCGMhf.css +37 -0
- package/dist/assets/src/disclosure-content/DisclosureContent.css.ts.vanilla-DGvnwBsb.css +25 -0
- package/dist/assets/src/disclosure-trigger/{DisclosureTrigger.css.ts.vanilla-CGgZqHoR.css → DisclosureTrigger.css.ts.vanilla-DztATFY8.css} +7 -7
- package/dist/assets/src/drawer/{Drawer.css.ts.vanilla-D1KjbYY2.css → Drawer.css.ts.vanilla-CnCA4xNN.css} +8 -8
- package/dist/assets/src/hover-card-content/{HoverCardContent.css.ts.vanilla-BNBQF_0T.css → HoverCardContent.css.ts.vanilla-B7Unn1_B.css} +3 -3
- package/dist/assets/src/indicator/Indicator.css.ts.vanilla-DT8h6YNZ.css +35 -0
- package/dist/assets/src/input/Input.css.ts.vanilla-BNBpG_wR.css +15 -0
- package/dist/assets/src/input-base/InputBase.css.ts.vanilla-BRh6TDMo.css +87 -0
- package/dist/assets/src/kbd/Kbd.css.ts.vanilla-DI26I3lo.css +9 -0
- package/dist/assets/src/layers/layers.css.ts.vanilla-B76KCQ9u.css +1 -0
- package/dist/assets/src/link/{Link.css.ts.vanilla-CEocHXy8.css → Link.css.ts.vanilla-B1rm-mfe.css} +12 -12
- package/dist/assets/src/listbox-base/ListboxBase.css.ts.vanilla-OxyS0fbd.css +21 -0
- package/dist/assets/src/listbox-item-base/ListboxItemBase.css.ts.vanilla-2nkexoSY.css +30 -0
- package/dist/assets/src/pagination/Pagination.css.ts.vanilla-BO2HXPXk.css +6 -0
- package/dist/assets/src/pill/{Pill.css.ts.vanilla-DeCZ2_8Z.css → Pill.css.ts.vanilla-DzzbV1Nh.css} +4 -4
- package/dist/assets/src/radio/Radio.css.ts.vanilla-mURefw5x.css +13 -0
- package/dist/assets/src/search-input/SearchInput.css.ts.vanilla-D53cHAo4.css +6 -0
- package/dist/assets/src/select-content/SelectContent.css.ts.vanilla-MHnZ2e2d.css +7 -0
- package/dist/assets/src/separator/{Separator.css.ts.vanilla-GmmMa_6S.css → Separator.css.ts.vanilla-N8U1QlYl.css} +10 -10
- package/dist/assets/src/sidenav-item/SidenavItem.css.ts.vanilla-BQWU_ImM.css +6 -0
- package/dist/assets/src/skeleton/Skeleton.css.ts.vanilla-Chu8YOX_.css +6 -0
- package/dist/assets/src/sprinkles/{properties.css.ts.vanilla-_GcKnhsL.css → properties.css.ts.vanilla-BhPIJGmv.css} +2069 -2069
- package/dist/assets/src/switch/Switch.css.ts.vanilla-CaTyt1Cf.css +26 -0
- package/dist/assets/src/table/{Table.css.ts.vanilla-DCz5_D85.css → Table.css.ts.vanilla-D_TJfh-t.css} +4 -4
- package/dist/assets/src/table-body/TableBody.css.ts.vanilla-BQo50gJY.css +6 -0
- package/dist/assets/src/table-cell/{TableCell.css.ts.vanilla-C5w86Y1I.css → TableCell.css.ts.vanilla-C1lyvuYS.css} +4 -4
- package/dist/assets/src/table-header-cell/TableHeaderCell.css.ts.vanilla-DhY1s_ZI.css +6 -0
- package/dist/assets/src/table-row/TableRow.css.ts.vanilla-g1JsQVd4.css +4 -0
- package/dist/assets/src/tabs/Tabs.css.ts.vanilla-DvNrc0zR.css +9 -0
- package/dist/assets/src/tabs-list/TabsList.css.ts.vanilla-C4pwOkZI.css +23 -0
- package/dist/assets/src/tabs-trigger/{TabsTrigger.css.ts.vanilla-CG_99hZP.css → TabsTrigger.css.ts.vanilla-_hN0PYnr.css} +10 -10
- package/dist/assets/src/text/{Text.css.ts.vanilla-AqeTOozB.css → Text.css.ts.vanilla-BCJDfIr0.css} +8 -8
- package/dist/assets/src/textarea-autosize/TextareaAutosize.css.ts.vanilla-BCRMLxRG.css +34 -0
- package/dist/assets/src/toast/Toast.css.ts.vanilla-BmaWJko-.css +92 -0
- package/dist/assets/src/toast-provider/{ToastProvider.css.ts.vanilla-D0WvOUI1.css → ToastProvider.css.ts.vanilla-CqJHVl4p.css} +9 -9
- package/dist/assets/src/toggle-input/ToggleInput.css.ts.vanilla-B-y4RHi9.css +22 -0
- package/dist/assets/src/toggle-input-control/ToggleInputControl.css.ts.vanilla-DM66CPyH.css +10 -0
- package/dist/assets/src/transition/{Transition.css.ts.vanilla-8tg-gwE2.css → Transition.css.ts.vanilla-Cnbq_Zqn.css} +16 -16
- package/dist/index.d.ts +139 -114
- package/dist/index.js +5 -4
- package/dist/package.json.js +1 -1
- package/dist/src/alert/Alert-css.js +1 -1
- package/dist/src/alert-dialog-content/AlertDialogContent-css.js +4 -4
- package/dist/src/alert-dialog-description/AlertDialogDescription-css.js +1 -1
- package/dist/src/alert-dialog-footer/AlertDialogFooter-css.js +3 -3
- package/dist/src/alert-dialog-title/AlertDialogTitle.js +3 -3
- package/dist/src/autocomplete/Autocomplete.js +1 -0
- package/dist/src/autocomplete-content/AutocompleteContent-css.js +3 -3
- package/dist/src/autocomplete-content/AutocompleteContent.js +3 -3
- package/dist/src/autocomplete-empty/AutocompleteEmpty.js +31 -0
- package/dist/src/autocomplete-item/AutocompletItem.js +38 -29
- package/dist/src/autocomplete-item-context/AutocompleteItemContext.js +5 -0
- package/dist/src/autocomplete-item-indicator/AutocompleteItemIndicator.js +2 -2
- package/dist/src/autocomplete-list/AutocompleteList.js +25 -13
- package/dist/src/avatar/Avatar-css.js +4 -4
- package/dist/src/avatar-group/AvatarGroup-css.js +3 -3
- package/dist/src/badge/Badge-css.js +3 -3
- package/dist/src/banner/Banner-css.js +1 -1
- package/dist/src/box/Box-css.js +3 -3
- package/dist/src/box/Box.js +1 -1
- package/dist/src/button/Button.js +20 -64
- package/dist/src/button-base/ButtonBase-css.js +9 -0
- package/dist/src/button-base/ButtonBase.js +72 -0
- package/dist/src/button-group/ButtonGroup-css.js +3 -3
- package/dist/src/button-label/ButtonLabel.js +13 -0
- package/dist/src/button-loadable/ButtonLoadable-css.js +9 -0
- package/dist/src/button-loadable/ButtonLoadable.js +13 -0
- package/dist/src/checkbox/Checkbox-css.js +8 -8
- package/dist/src/code/Code-css.js +3 -3
- package/dist/src/combobox/Combobox.js +36 -0
- package/dist/src/combobox-checkbox-item/ComboboxCheckboxItem.js +6 -0
- package/dist/src/combobox-content/ComboboxContent.js +46 -0
- package/dist/src/combobox-context/ComboboxContext.js +5 -0
- package/dist/src/combobox-empty/ComboboxEmpty.js +6 -0
- package/dist/src/combobox-footer/ComboboxFooter.js +6 -0
- package/dist/src/combobox-input/ComboboxInput.js +6 -0
- package/dist/src/combobox-item/ComboboxItem.js +6 -0
- package/dist/src/combobox-item-indicator/ComboboxItemIndicator.js +6 -0
- package/dist/src/combobox-list/ComboboxList.js +6 -0
- package/dist/src/combobox-multiple-value/ComboboxMultipleValue.js +31 -0
- package/dist/src/combobox-separator/ComboboxSeparator.js +6 -0
- package/dist/src/combobox-single-value/ComboboxSingleValue.js +12 -0
- package/dist/src/combobox-trigger/ComboboxTrigger.js +49 -0
- package/dist/src/combobox-value/ComboboxValue.js +13 -0
- package/dist/src/command/Command.js +74 -0
- package/dist/src/command-checkbox-item/CommandCheckboxItem.js +31 -0
- package/dist/src/command-context/CommandContext.js +5 -0
- package/dist/src/command-empty/CommandEmpty.js +30 -0
- package/dist/src/command-footer/CommandFooter-css.js +6 -0
- package/dist/src/command-footer/CommandFooter.js +13 -0
- package/dist/src/command-input/CommandInput.js +37 -0
- package/dist/src/command-item/CommandItem.js +50 -0
- package/dist/src/command-item-context/CommandItemContext.js +5 -0
- package/dist/src/command-item-indicator/CommandItemIndicator.js +20 -0
- package/dist/src/command-list/CommandList.js +33 -0
- package/dist/src/command-separator/CommandSeparator.js +9 -0
- package/dist/src/data-table/DataTable-css.js +7 -7
- package/dist/src/data-table-header/DataTableHeader-css.js +4 -4
- package/dist/src/dialog-body/DialogBody-css.js +1 -1
- package/dist/src/dialog-content/DialogContent-css.js +5 -5
- package/dist/src/dialog-footer/DialogFooter-css.js +1 -1
- package/dist/src/disclosure-content/DisclosureContent-css.js +3 -3
- package/dist/src/disclosure-trigger/DisclosureTrigger-css.js +4 -4
- package/dist/src/drawer/Drawer-css.js +5 -5
- package/dist/src/dropdown-menu-content/DropdownMenuContent.js +3 -3
- package/dist/src/dropdown-menu-group/DropdownMenuGroup.js +13 -0
- package/dist/src/dropdown-menu-item/DropdownMenuItem.js +2 -2
- package/dist/src/dropdown-menu-label/DropdownMenuLabel.js +2 -3
- package/dist/src/dropdown-menu-separator/DropdownMenuSeparator.js +1 -1
- package/dist/src/dropdown-menu-sub-content/DropdownMenuSubContent.js +3 -3
- package/dist/src/dropdown-menu-sub-trigger/DropdownMenuSubTrigger.js +2 -2
- package/dist/src/dropdown-menu-trigger/DropdownMenuTrigger.js +1 -5
- package/dist/src/hover-card-content/HoverCardContent-css.js +3 -3
- package/dist/src/indicator/Indicator-css.js +5 -5
- package/dist/src/input/Input-css.js +3 -2
- package/dist/src/input-base/InputBase-css.js +5 -5
- package/dist/src/kbd/Kbd-css.js +3 -3
- package/dist/src/layers/layers-css.js +3 -3
- package/dist/src/link/Link-css.js +4 -4
- package/dist/src/listbox-base/ListboxBase-css.js +7 -0
- package/dist/src/{menu-content-base/MenuContentBase.js → listbox-base/ListboxBase.js} +4 -4
- package/dist/src/listbox-item-base/ListboxItemBase-css.js +7 -0
- package/dist/src/{menu-item-base/MenuItemBase.js → listbox-item-base/ListboxItemBase.js} +7 -5
- package/dist/src/pagination/Pagination-css.js +3 -3
- package/dist/src/pagination/Pagination.js +5 -4
- package/dist/src/pill/Pill-css.js +3 -3
- package/dist/src/popover-content/PopoverContent.js +2 -2
- package/dist/src/popover-trigger/PopoverTrigger.js +1 -5
- package/dist/src/radio/Radio-css.js +8 -8
- package/dist/src/search-input/SearchInput-css.js +4 -4
- package/dist/src/select-content/SelectContent-css.js +3 -3
- package/dist/src/select-content/SelectContent.js +2 -2
- package/dist/src/select-item/SelectItem.js +4 -3
- package/dist/src/separator/Separator-css.js +3 -3
- package/dist/src/{side-nav/SideNav.js → sidenav/Sidenav.js} +5 -5
- package/dist/src/{side-nav-account-item/SideNavAccountItem.js → sidenav-account-item/SidenavAccountItem.js} +7 -7
- package/dist/src/sidenav-context/SidenavContext.js +5 -0
- package/dist/src/sidenav-item/SidenavItem-css.js +9 -0
- package/dist/src/{side-nav-item/SideNavItem.js → sidenav-item/SidenavItem.js} +11 -9
- package/dist/src/{side-nav-toggle/SideNavToggle.js → sidenav-toggle/SidenavToggle.js} +7 -7
- package/dist/src/skeleton/Skeleton-css.js +3 -3
- package/dist/src/sprinkles/properties-css.js +4 -4
- package/dist/src/switch/Switch-css.js +8 -8
- package/dist/src/table/Table-css.js +4 -4
- package/dist/src/table-body/TableBody-css.js +3 -3
- package/dist/src/table-cell/TableCell-css.js +4 -4
- package/dist/src/table-header-cell/TableHeaderCell-css.js +3 -3
- package/dist/src/table-row/TableRow-css.js +3 -3
- package/dist/src/tabs/Tabs-css.js +3 -3
- package/dist/src/tabs-list/TabsList-css.js +3 -3
- package/dist/src/tabs-trigger/TabsTrigger-css.js +4 -4
- package/dist/src/text/Text-css.js +3 -3
- package/dist/src/textarea-autosize/TextareaAutosize-css.js +5 -5
- package/dist/src/toast/Toast-css.js +5 -5
- package/dist/src/toast/Toast.js +8 -2
- package/dist/src/toast-context/ToastContext.js +5 -0
- package/dist/src/toast-provider/ToastProvider-css.js +3 -3
- package/dist/src/toast-provider/ToastProvider.js +12 -18
- package/dist/src/toggle-input/ToggleInput-css.js +4 -4
- package/dist/src/toggle-input-control/ToggleInputControl-css.js +5 -5
- package/dist/src/toggle-input-hidden-input/ToggleInputHiddenInput-css.js +3 -3
- package/dist/src/tooltip-content/TooltipContent-css.js +1 -1
- package/dist/src/transition/Transition-css.js +3 -3
- package/dist/unstable.d.ts +278 -32
- package/dist/unstable.js +22 -1
- package/package.json +1 -2
- package/dist/assets/src/alert-dialog-footer/AlertDialogFooter.css.ts.vanilla-D5AnKyTd.css +0 -6
- package/dist/assets/src/avatar/Avatar.css.ts.vanilla-DH4ziCzi.css +0 -27
- package/dist/assets/src/badge/Badge.css.ts.vanilla-DEIxzeC8.css +0 -46
- package/dist/assets/src/button/Button.css.ts.vanilla-BWevFsch.css +0 -146
- package/dist/assets/src/checkbox/Checkbox.css.ts.vanilla-Bpzs-TMW.css +0 -18
- package/dist/assets/src/code/Code.css.ts.vanilla-CIvs9Yp6.css +0 -7
- package/dist/assets/src/data-table/DataTable.css.ts.vanilla-t2Q-5Lpd.css +0 -24
- package/dist/assets/src/data-table-header/DataTableHeader.css.ts.vanilla-BgUfkfhX.css +0 -12
- package/dist/assets/src/dialog-content/DialogContent.css.ts.vanilla-DaJvHWQC.css +0 -29
- package/dist/assets/src/disclosure-content/DisclosureContent.css.ts.vanilla-BVqex_Uk.css +0 -25
- package/dist/assets/src/indicator/Indicator.css.ts.vanilla-B8unyh6v.css +0 -35
- package/dist/assets/src/input-base/InputBase.css.ts.vanilla-D--9gOO1.css +0 -87
- package/dist/assets/src/kbd/Kbd.css.ts.vanilla-DJDNR37v.css +0 -9
- package/dist/assets/src/layers/layers.css.ts.vanilla-DQSmpGQ1.css +0 -1
- package/dist/assets/src/menu-content-base/MenuContentBase.css.ts.vanilla-bzbYBL-O.css +0 -21
- package/dist/assets/src/menu-item-base/MenuItemBase.css.ts.vanilla-BYQPvQbE.css +0 -30
- package/dist/assets/src/pagination/Pagination.css.ts.vanilla-D-p7Hfvt.css +0 -6
- package/dist/assets/src/radio/Radio.css.ts.vanilla-DSIvoy-w.css +0 -13
- package/dist/assets/src/search-input/SearchInput.css.ts.vanilla-lEdOzY9x.css +0 -6
- package/dist/assets/src/select-content/SelectContent.css.ts.vanilla-BNmH0vGS.css +0 -7
- package/dist/assets/src/side-nav-item/SideNavItem.css.ts.vanilla-Bri2ps30.css +0 -6
- package/dist/assets/src/skeleton/Skeleton.css.ts.vanilla-CPctgLR_.css +0 -6
- package/dist/assets/src/switch/Switch.css.ts.vanilla-DGNLC011.css +0 -26
- package/dist/assets/src/table-body/TableBody.css.ts.vanilla-CIoFRLvG.css +0 -6
- package/dist/assets/src/table-header-cell/TableHeaderCell.css.ts.vanilla-CjSqZpba.css +0 -6
- package/dist/assets/src/table-row/TableRow.css.ts.vanilla-BMIhB2fq.css +0 -4
- package/dist/assets/src/tabs/Tabs.css.ts.vanilla-DuSfh6tb.css +0 -9
- package/dist/assets/src/tabs-list/TabsList.css.ts.vanilla-Csaq48St.css +0 -23
- package/dist/assets/src/textarea-autosize/TextareaAutosize.css.ts.vanilla-BdcQ9g7K.css +0 -34
- package/dist/assets/src/toast/Toast.css.ts.vanilla-CULVVH5B.css +0 -92
- package/dist/assets/src/toggle-input/ToggleInput.css.ts.vanilla-DiU1hVaB.css +0 -22
- package/dist/assets/src/toggle-input-control/ToggleInputControl.css.ts.vanilla-B2VkrVTh.css +0 -10
- package/dist/src/autocomplete-empty-item/AutocompleteEmptyItem.js +0 -30
- package/dist/src/autocomplete-list-context/AutocompleteListContext.js +0 -5
- package/dist/src/button/Button-css.js +0 -12
- package/dist/src/menu-content-base/MenuContentBase-css.js +0 -7
- package/dist/src/menu-item-base/MenuItemBase-css.js +0 -7
- package/dist/src/side-nav-context/SideNavContext.js +0 -5
- package/dist/src/side-nav-item/SideNavItem-css.js +0 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import './../../assets/src/layers/layers.css.ts.vanilla-
|
|
2
|
-
import './../../assets/src/code/Code.css.ts.vanilla-
|
|
1
|
+
import './../../assets/src/layers/layers.css.ts.vanilla-B76KCQ9u.css';
|
|
2
|
+
import './../../assets/src/code/Code.css.ts.vanilla-BE7HUNcL.css';
|
|
3
3
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
4
4
|
|
|
5
|
-
var code = recipeRuntime({base:[{bg:'bg.secondary',display:'inline-block',px:'4',rounded:'sm'},'
|
|
5
|
+
var code = recipeRuntime({base:[{bg:'bg.secondary',display:'inline-block',px:'4',rounded:'sm'},'co0rt5']});
|
|
6
6
|
|
|
7
7
|
export { code };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useControllableState } from '@radix-ui/react-use-controllable-state';
|
|
3
|
+
import { ComboboxContextProvider } from '../combobox-context/ComboboxContext.js';
|
|
4
|
+
import { Popover } from '../popover/Popover.js';
|
|
5
|
+
|
|
6
|
+
function Combobox({
|
|
7
|
+
children,
|
|
8
|
+
defaultOpen = false,
|
|
9
|
+
isItemDisabled = () => false,
|
|
10
|
+
itemToKey = (value) => value,
|
|
11
|
+
itemToString = (value) => value ? String(value) : "",
|
|
12
|
+
onOpenChange,
|
|
13
|
+
open: openProp,
|
|
14
|
+
...props
|
|
15
|
+
}) {
|
|
16
|
+
const [open, setOpen] = useControllableState({
|
|
17
|
+
defaultProp: defaultOpen,
|
|
18
|
+
onChange: onOpenChange,
|
|
19
|
+
prop: openProp
|
|
20
|
+
});
|
|
21
|
+
return /* @__PURE__ */ jsx(Popover, { onOpenChange: setOpen, open, children: /* @__PURE__ */ jsx(
|
|
22
|
+
ComboboxContextProvider,
|
|
23
|
+
{
|
|
24
|
+
isItemDisabled,
|
|
25
|
+
itemToKey,
|
|
26
|
+
itemToString,
|
|
27
|
+
open,
|
|
28
|
+
setOpen,
|
|
29
|
+
...props,
|
|
30
|
+
children
|
|
31
|
+
}
|
|
32
|
+
) });
|
|
33
|
+
}
|
|
34
|
+
Combobox.displayName = "@optiaxiom/react/Combobox";
|
|
35
|
+
|
|
36
|
+
export { Combobox };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { useComboboxContext } from '../combobox-context/ComboboxContext.js';
|
|
4
|
+
import { Command } from '../command/Command.js';
|
|
5
|
+
import '../field-context/FieldContext.js';
|
|
6
|
+
import { useFieldContext } from '../field-context/useFieldContext.js';
|
|
7
|
+
import { PopoverContent } from '../popover-content/PopoverContent.js';
|
|
8
|
+
|
|
9
|
+
const ComboboxContent = forwardRef(
|
|
10
|
+
({ children, ...props }, ref) => {
|
|
11
|
+
const { labelId } = useFieldContext();
|
|
12
|
+
const {
|
|
13
|
+
isItemDisabled,
|
|
14
|
+
items,
|
|
15
|
+
itemToKey,
|
|
16
|
+
itemToString,
|
|
17
|
+
onInputValueChange,
|
|
18
|
+
onSelect
|
|
19
|
+
} = useComboboxContext("ComboboxContent");
|
|
20
|
+
return /* @__PURE__ */ jsx(
|
|
21
|
+
PopoverContent,
|
|
22
|
+
{
|
|
23
|
+
"aria-labelledby": labelId,
|
|
24
|
+
overflow: "hidden",
|
|
25
|
+
p: "4",
|
|
26
|
+
ref,
|
|
27
|
+
...props,
|
|
28
|
+
children: /* @__PURE__ */ jsx(
|
|
29
|
+
Command,
|
|
30
|
+
{
|
|
31
|
+
isItemDisabled,
|
|
32
|
+
items,
|
|
33
|
+
itemToKey,
|
|
34
|
+
itemToString,
|
|
35
|
+
onInputValueChange,
|
|
36
|
+
onSelect,
|
|
37
|
+
children
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
ComboboxContent.displayName = "@optiaxiom/react/ComboboxContent";
|
|
45
|
+
|
|
46
|
+
export { ComboboxContent };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { Badge } from '../badge/Badge.js';
|
|
4
|
+
import { useComboboxContext } from '../combobox-context/ComboboxContext.js';
|
|
5
|
+
import { Flex } from '../flex/Flex.js';
|
|
6
|
+
|
|
7
|
+
const maxDisplayedItems = 2;
|
|
8
|
+
const ComboboxMultipleValue = forwardRef(({ children, placeholder, value, ...props }, ref) => {
|
|
9
|
+
const { itemToKey, itemToString } = useComboboxContext(
|
|
10
|
+
"ComboboxMultipleValue"
|
|
11
|
+
);
|
|
12
|
+
if (value instanceof Set) {
|
|
13
|
+
value = [...value];
|
|
14
|
+
}
|
|
15
|
+
return /* @__PURE__ */ jsx(Flex, { flexDirection: "row", flexWrap: "wrap", gap: "2", ref, ...props, children: Array.isArray(value) && value.length > 0 ? children ?? /* @__PURE__ */ jsx(Fragment, { children: value.length > maxDisplayedItems ? /* @__PURE__ */ jsxs(Badge, { children: [
|
|
16
|
+
value.length,
|
|
17
|
+
" selected"
|
|
18
|
+
] }) : value.slice(0, maxDisplayedItems).map((item) => /* @__PURE__ */ jsx(
|
|
19
|
+
Badge,
|
|
20
|
+
{
|
|
21
|
+
display: "inline-block",
|
|
22
|
+
flex: "1",
|
|
23
|
+
truncate: true,
|
|
24
|
+
children: itemToString(item)
|
|
25
|
+
},
|
|
26
|
+
itemToKey(item)
|
|
27
|
+
)) }) : placeholder });
|
|
28
|
+
});
|
|
29
|
+
ComboboxMultipleValue.displayName = "@optiaxiom/react/ComboboxMultipleValue";
|
|
30
|
+
|
|
31
|
+
export { ComboboxMultipleValue };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { Box } from '../box/Box.js';
|
|
4
|
+
import { useComboboxContext } from '../combobox-context/ComboboxContext.js';
|
|
5
|
+
|
|
6
|
+
const ComboboxSingleValue = forwardRef(({ children, placeholder, value, ...props }, ref) => {
|
|
7
|
+
const { itemToString } = useComboboxContext("ComboboxSingleValue");
|
|
8
|
+
return /* @__PURE__ */ jsx(Box, { ref, ...props, children: value ? children ?? itemToString(value) : placeholder });
|
|
9
|
+
});
|
|
10
|
+
ComboboxSingleValue.displayName = "@optiaxiom/react/ComboboxSingleValue";
|
|
11
|
+
|
|
12
|
+
export { ComboboxSingleValue };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useComposedRefs } from '@radix-ui/react-compose-refs';
|
|
3
|
+
import { forwardRef, useRef, useEffect } from 'react';
|
|
4
|
+
import { useComboboxContext } from '../combobox-context/ComboboxContext.js';
|
|
5
|
+
import '../field-context/FieldContext.js';
|
|
6
|
+
import { useFieldContext } from '../field-context/useFieldContext.js';
|
|
7
|
+
import { MenuButton } from '../menu-button/MenuButton.js';
|
|
8
|
+
import { PopoverTrigger } from '../popover-trigger/PopoverTrigger.js';
|
|
9
|
+
|
|
10
|
+
const ComboboxTrigger = forwardRef(({ asChild, children, ...props }, outerRef) => {
|
|
11
|
+
const { setOpen } = useComboboxContext("ComboboxTrigger");
|
|
12
|
+
const buttonRef = useRef(null);
|
|
13
|
+
const ref = useComposedRefs(outerRef, buttonRef);
|
|
14
|
+
const { labelId } = useFieldContext();
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
if (!labelId || !buttonRef.current) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
const button = buttonRef.current;
|
|
20
|
+
const label = document.getElementById(labelId);
|
|
21
|
+
if (!label) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const onLabelClick = () => button.focus();
|
|
25
|
+
label.addEventListener("click", onLabelClick);
|
|
26
|
+
return () => label.removeEventListener("click", onLabelClick);
|
|
27
|
+
}, [labelId]);
|
|
28
|
+
return /* @__PURE__ */ jsx(
|
|
29
|
+
PopoverTrigger,
|
|
30
|
+
{
|
|
31
|
+
"aria-labelledby": labelId,
|
|
32
|
+
asChild: true,
|
|
33
|
+
onKeyDown: (event) => {
|
|
34
|
+
switch (event.key) {
|
|
35
|
+
case "ArrowDown":
|
|
36
|
+
case "ArrowUp":
|
|
37
|
+
setOpen(true);
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
ref,
|
|
41
|
+
role: "combobox",
|
|
42
|
+
...props,
|
|
43
|
+
children: asChild ? children : /* @__PURE__ */ jsx(MenuButton, { children })
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
});
|
|
47
|
+
ComboboxTrigger.displayName = "@optiaxiom/react/ComboboxTrigger";
|
|
48
|
+
|
|
49
|
+
export { ComboboxTrigger };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { ComboboxMultipleValue } from '../combobox-multiple-value/ComboboxMultipleValue.js';
|
|
4
|
+
import { ComboboxSingleValue } from '../combobox-single-value/ComboboxSingleValue.js';
|
|
5
|
+
|
|
6
|
+
const ComboboxValue = forwardRef(
|
|
7
|
+
(props, ref) => {
|
|
8
|
+
return props.type === "multiple" ? /* @__PURE__ */ jsx(ComboboxMultipleValue, { ref, ...props }) : /* @__PURE__ */ jsx(ComboboxSingleValue, { ref, ...props });
|
|
9
|
+
}
|
|
10
|
+
);
|
|
11
|
+
ComboboxValue.displayName = "@optiaxiom/react/ComboboxValue";
|
|
12
|
+
|
|
13
|
+
export { ComboboxValue };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useControllableState } from '@radix-ui/react-use-controllable-state';
|
|
3
|
+
import { useCombobox } from 'downshift';
|
|
4
|
+
import { useEffect } from 'react';
|
|
5
|
+
import { CommandContextProvider } from '../command-context/CommandContext.js';
|
|
6
|
+
|
|
7
|
+
function Command({
|
|
8
|
+
children,
|
|
9
|
+
isItemDisabled = () => false,
|
|
10
|
+
items,
|
|
11
|
+
itemToKey = (value) => value,
|
|
12
|
+
itemToString = (value) => value ? String(value) : "",
|
|
13
|
+
onInputValueChange,
|
|
14
|
+
onOpenChange,
|
|
15
|
+
onSelect
|
|
16
|
+
}) {
|
|
17
|
+
const [inputValue, setInputValue] = useControllableState({
|
|
18
|
+
defaultProp: "",
|
|
19
|
+
onChange: onInputValueChange
|
|
20
|
+
});
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
return () => {
|
|
23
|
+
setInputValue("");
|
|
24
|
+
};
|
|
25
|
+
}, [setInputValue]);
|
|
26
|
+
const downshift = useCombobox({
|
|
27
|
+
inputValue,
|
|
28
|
+
isItemDisabled,
|
|
29
|
+
isOpen: true,
|
|
30
|
+
items,
|
|
31
|
+
itemToKey,
|
|
32
|
+
itemToString,
|
|
33
|
+
onSelectedItemChange({ selectedItem, type }) {
|
|
34
|
+
if (type !== useCombobox.stateChangeTypes.InputBlur) {
|
|
35
|
+
onSelect?.(selectedItem);
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
selectedItem: null,
|
|
39
|
+
stateReducer(state, actionAndChanges) {
|
|
40
|
+
const { changes, type } = actionAndChanges;
|
|
41
|
+
switch (type) {
|
|
42
|
+
case useCombobox.stateChangeTypes.InputKeyDownEnter:
|
|
43
|
+
case useCombobox.stateChangeTypes.ItemClick:
|
|
44
|
+
return {
|
|
45
|
+
...changes,
|
|
46
|
+
/**
|
|
47
|
+
* Keep the selected option highlighted rather than resetting to -1
|
|
48
|
+
*/
|
|
49
|
+
highlightedIndex: state.highlightedIndex
|
|
50
|
+
};
|
|
51
|
+
default:
|
|
52
|
+
return changes;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
return /* @__PURE__ */ jsx(
|
|
57
|
+
CommandContextProvider,
|
|
58
|
+
{
|
|
59
|
+
downshift,
|
|
60
|
+
highlightedItem: items[downshift.highlightedIndex],
|
|
61
|
+
isItemDisabled,
|
|
62
|
+
items,
|
|
63
|
+
itemToKey,
|
|
64
|
+
itemToString,
|
|
65
|
+
setInputValue,
|
|
66
|
+
setOpen: onOpenChange,
|
|
67
|
+
setValue: onSelect,
|
|
68
|
+
children
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
Command.displayName = "@optiaxiom/react/Command";
|
|
73
|
+
|
|
74
|
+
export { Command };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { Checkbox } from '../checkbox/Checkbox.js';
|
|
4
|
+
import { useCommandContext } from '../command-context/CommandContext.js';
|
|
5
|
+
import { CommandItem } from '../command-item/CommandItem.js';
|
|
6
|
+
import { Flex } from '../flex/Flex.js';
|
|
7
|
+
|
|
8
|
+
const CommandCheckboxItem = forwardRef(({ addonBefore, ...props }, ref) => {
|
|
9
|
+
const { isItemDisabled, items } = useCommandContext("CommandCheckboxItem");
|
|
10
|
+
return /* @__PURE__ */ jsx(
|
|
11
|
+
CommandItem,
|
|
12
|
+
{
|
|
13
|
+
addonBefore: /* @__PURE__ */ jsxs(Flex, { flexDirection: "row", gap: "xs", children: [
|
|
14
|
+
/* @__PURE__ */ jsx(
|
|
15
|
+
Checkbox,
|
|
16
|
+
{
|
|
17
|
+
checked: props.active,
|
|
18
|
+
disabled: isItemDisabled(props.item, items.indexOf(props.item)),
|
|
19
|
+
tabIndex: -1
|
|
20
|
+
}
|
|
21
|
+
),
|
|
22
|
+
addonBefore
|
|
23
|
+
] }),
|
|
24
|
+
ref,
|
|
25
|
+
...props
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
});
|
|
29
|
+
CommandCheckboxItem.displayName = "@optiaxiom/react/CommandCheckboxItem";
|
|
30
|
+
|
|
31
|
+
export { CommandCheckboxItem };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { Box } from '../box/Box.js';
|
|
4
|
+
import { useCommandContext } from '../command-context/CommandContext.js';
|
|
5
|
+
|
|
6
|
+
const CommandEmpty = forwardRef(
|
|
7
|
+
({ children, ...props }, ref) => {
|
|
8
|
+
const { items } = useCommandContext("CommandEmpty");
|
|
9
|
+
if (items.length > 0) {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
return /* @__PURE__ */ jsx(
|
|
13
|
+
Box,
|
|
14
|
+
{
|
|
15
|
+
alignItems: "center",
|
|
16
|
+
color: "fg.disabled",
|
|
17
|
+
display: "flex",
|
|
18
|
+
fontSize: "md",
|
|
19
|
+
justifyContent: "center",
|
|
20
|
+
p: "md",
|
|
21
|
+
ref,
|
|
22
|
+
...props,
|
|
23
|
+
children: children || "No options"
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
CommandEmpty.displayName = "@optiaxiom/react/CommandEmpty";
|
|
29
|
+
|
|
30
|
+
export { CommandEmpty };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import './../../assets/src/layers/layers.css.ts.vanilla-B76KCQ9u.css';
|
|
2
|
+
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
3
|
+
|
|
4
|
+
var footer = recipeRuntime({base:[{borderColor:'border.secondary',borderT:'1',flexDirection:'row',gap:'md',justifyContent:'space-between',p:'sm'}]});
|
|
5
|
+
|
|
6
|
+
export { footer };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { Flex } from '../flex/Flex.js';
|
|
4
|
+
import { footer } from './CommandFooter-css.js';
|
|
5
|
+
|
|
6
|
+
const CommandFooter = forwardRef(
|
|
7
|
+
({ children, className, ...props }, ref) => {
|
|
8
|
+
return /* @__PURE__ */ jsx(Flex, { asChild: true, ref, ...footer({}, className), ...props, children: /* @__PURE__ */ jsx("li", { children }) });
|
|
9
|
+
}
|
|
10
|
+
);
|
|
11
|
+
CommandFooter.displayName = "@optiaxiom/react/CommandFooter";
|
|
12
|
+
|
|
13
|
+
export { CommandFooter };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { useCommandContext } from '../command-context/CommandContext.js';
|
|
4
|
+
import { Input } from '../input/Input.js';
|
|
5
|
+
import { extractSprinkles } from '../sprinkles/extractSprinkles.js';
|
|
6
|
+
import '../sprinkles/sprinkles.js';
|
|
7
|
+
import '../sprinkles/sprinklesMerge.js';
|
|
8
|
+
|
|
9
|
+
const CommandInput = forwardRef(
|
|
10
|
+
(props, ref) => {
|
|
11
|
+
const { restProps, sprinkleProps } = extractSprinkles(props);
|
|
12
|
+
const { downshift, highlightedItem, setInputValue } = useCommandContext("CommandInput");
|
|
13
|
+
return /* @__PURE__ */ jsx(
|
|
14
|
+
Input,
|
|
15
|
+
{
|
|
16
|
+
m: "4",
|
|
17
|
+
...sprinkleProps,
|
|
18
|
+
...downshift.getInputProps({
|
|
19
|
+
...restProps,
|
|
20
|
+
onChange: (event) => {
|
|
21
|
+
setInputValue("value" in event.target ? event.target.value : "");
|
|
22
|
+
},
|
|
23
|
+
onKeyDown: (event) => {
|
|
24
|
+
if (event.key === " " && highlightedItem) {
|
|
25
|
+
event.preventDefault();
|
|
26
|
+
downshift.selectItem(highlightedItem);
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
ref
|
|
30
|
+
})
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
CommandInput.displayName = "@optiaxiom/react/CommandInput";
|
|
36
|
+
|
|
37
|
+
export { CommandInput };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { useCommandContext } from '../command-context/CommandContext.js';
|
|
4
|
+
import { CommandItemContextProvider } from '../command-item-context/CommandItemContext.js';
|
|
5
|
+
import { ListboxItemBase } from '../listbox-item-base/ListboxItemBase.js';
|
|
6
|
+
import { extractSprinkles } from '../sprinkles/extractSprinkles.js';
|
|
7
|
+
import '../sprinkles/sprinkles.js';
|
|
8
|
+
import '../sprinkles/sprinklesMerge.js';
|
|
9
|
+
|
|
10
|
+
const CommandItem = forwardRef(
|
|
11
|
+
({
|
|
12
|
+
active,
|
|
13
|
+
addonAfter,
|
|
14
|
+
addonBefore,
|
|
15
|
+
children,
|
|
16
|
+
description,
|
|
17
|
+
icon,
|
|
18
|
+
item,
|
|
19
|
+
...props
|
|
20
|
+
}, ref) => {
|
|
21
|
+
const { restProps, sprinkleProps } = extractSprinkles(props);
|
|
22
|
+
const { downshift, highlightedItem } = useCommandContext("CommandItem");
|
|
23
|
+
const itemProps = downshift.getItemProps({ item });
|
|
24
|
+
return /* @__PURE__ */ jsx(CommandItemContextProvider, { active, item, children: /* @__PURE__ */ jsx(
|
|
25
|
+
ListboxItemBase,
|
|
26
|
+
{
|
|
27
|
+
addonAfter,
|
|
28
|
+
addonBefore,
|
|
29
|
+
description,
|
|
30
|
+
icon,
|
|
31
|
+
...sprinkleProps,
|
|
32
|
+
children: /* @__PURE__ */ jsx(
|
|
33
|
+
"li",
|
|
34
|
+
{
|
|
35
|
+
"data-disabled": itemProps["aria-disabled"] ? "" : void 0,
|
|
36
|
+
"data-highlighted": highlightedItem === item ? "" : void 0,
|
|
37
|
+
"data-selected": downshift.selectedItem === item ? "" : void 0,
|
|
38
|
+
ref,
|
|
39
|
+
...restProps,
|
|
40
|
+
...itemProps,
|
|
41
|
+
children
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
) });
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
CommandItem.displayName = "@optiaxiom/react/CommandItem";
|
|
49
|
+
|
|
50
|
+
export { CommandItem };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { Box } from '../box/Box.js';
|
|
4
|
+
import { useCommandItemContext } from '../command-item-context/CommandItemContext.js';
|
|
5
|
+
import { IconCheck } from '../icons/IconCheck.js';
|
|
6
|
+
import { extractSprinkles } from '../sprinkles/extractSprinkles.js';
|
|
7
|
+
import '../sprinkles/sprinkles.js';
|
|
8
|
+
import '../sprinkles/sprinklesMerge.js';
|
|
9
|
+
|
|
10
|
+
const CommandItemIndicator = forwardRef(({ children, ...props }, ref) => {
|
|
11
|
+
const { restProps, sprinkleProps } = extractSprinkles(props);
|
|
12
|
+
const { active } = useCommandItemContext("CommandItemIndicator");
|
|
13
|
+
if (!active) {
|
|
14
|
+
return /* @__PURE__ */ jsx(Box, { w: "12" });
|
|
15
|
+
}
|
|
16
|
+
return /* @__PURE__ */ jsx(Box, { asChild: true, ...sprinkleProps, children: children ?? /* @__PURE__ */ jsx(IconCheck, { ref, ...restProps }) });
|
|
17
|
+
});
|
|
18
|
+
CommandItemIndicator.displayName = "@optiaxiom/react/CommandItemIndicator";
|
|
19
|
+
|
|
20
|
+
export { CommandItemIndicator };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { Box } from '../box/Box.js';
|
|
4
|
+
import { useCommandContext } from '../command-context/CommandContext.js';
|
|
5
|
+
import { extractSprinkles } from '../sprinkles/extractSprinkles.js';
|
|
6
|
+
import '../sprinkles/sprinkles.js';
|
|
7
|
+
import '../sprinkles/sprinklesMerge.js';
|
|
8
|
+
|
|
9
|
+
const CommandList = forwardRef(
|
|
10
|
+
({ children, ...props }, ref) => {
|
|
11
|
+
const { restProps, sprinkleProps } = extractSprinkles(props);
|
|
12
|
+
const { downshift, items } = useCommandContext("CommandList");
|
|
13
|
+
if (!items.length) {
|
|
14
|
+
return null;
|
|
15
|
+
}
|
|
16
|
+
return /* @__PURE__ */ jsx(
|
|
17
|
+
Box,
|
|
18
|
+
{
|
|
19
|
+
asChild: true,
|
|
20
|
+
display: "flex",
|
|
21
|
+
flex: "1",
|
|
22
|
+
flexDirection: "column",
|
|
23
|
+
gap: "2",
|
|
24
|
+
overflow: "auto",
|
|
25
|
+
...sprinkleProps,
|
|
26
|
+
children: /* @__PURE__ */ jsx("ul", { ...downshift.getMenuProps({ ref, ...restProps }), children })
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
CommandList.displayName = "@optiaxiom/react/CommandList";
|
|
32
|
+
|
|
33
|
+
export { CommandList };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { Box } from '../box/Box.js';
|
|
4
|
+
import { Separator } from '../separator/Separator.js';
|
|
5
|
+
|
|
6
|
+
const CommandSeparator = forwardRef((props, ref) => /* @__PURE__ */ jsx(Box, { asChild: true, children: /* @__PURE__ */ jsx("li", { ref, children: /* @__PURE__ */ jsx(Separator, { asChild: true, bg: "border.secondary", mx: "-4", my: "2", ...props }) }) }));
|
|
7
|
+
CommandSeparator.displayName = "@optiaxiom/react/CommandSeparator";
|
|
8
|
+
|
|
9
|
+
export { CommandSeparator };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import './../../assets/src/layers/layers.css.ts.vanilla-
|
|
2
|
-
import './../../assets/src/data-table/DataTable.css.ts.vanilla-
|
|
1
|
+
import './../../assets/src/layers/layers.css.ts.vanilla-B76KCQ9u.css';
|
|
2
|
+
import './../../assets/src/data-table/DataTable.css.ts.vanilla-BJs_Nl-b.css';
|
|
3
3
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
4
4
|
|
|
5
|
-
var cellOffsetVar = 'var(--
|
|
6
|
-
var columnWidthVar = 'var(--
|
|
7
|
-
var tableCell = recipeRuntime({base:[{bg:'bg.default'},'
|
|
8
|
-
var tableHead = recipeRuntime({base:[{bg:'bg.default'},'
|
|
9
|
-
var tableHeader = recipeRuntime({base:[{bg:'bg.default'},'
|
|
5
|
+
var cellOffsetVar = 'var(--rfixh2)';
|
|
6
|
+
var columnWidthVar = 'var(--_1so5qbr)';
|
|
7
|
+
var tableCell = recipeRuntime({base:[{bg:'bg.default'},'_9fxd1r'],variants:{pinned:{false:{},left:'_4f317o',right:{}}}});
|
|
8
|
+
var tableHead = recipeRuntime({base:[{bg:'bg.default'},'_1oaj2ea'],variants:{pinned:{false:{},left:'mdovb5',right:{}}}});
|
|
9
|
+
var tableHeader = recipeRuntime({base:[{bg:'bg.default'},'_177uole']});
|
|
10
10
|
|
|
11
11
|
export { cellOffsetVar, columnWidthVar, tableCell, tableHead, tableHeader };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import './../../assets/src/layers/layers.css.ts.vanilla-
|
|
2
|
-
import './../../assets/src/data-table-header/DataTableHeader.css.ts.vanilla-
|
|
1
|
+
import './../../assets/src/layers/layers.css.ts.vanilla-B76KCQ9u.css';
|
|
2
|
+
import './../../assets/src/data-table-header/DataTableHeader.css.ts.vanilla-xxkcym9y.css';
|
|
3
3
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
4
4
|
|
|
5
|
-
var header = recipeRuntime({base:[{gap:'4'},'
|
|
6
|
-
var icon = recipeRuntime({base:[{border:'0',color:'fg.tertiary'}],variants:{sorted:{false:'
|
|
5
|
+
var header = recipeRuntime({base:[{gap:'4'},'_1kb3mlj'],variants:{sortable:{false:'_1o1idrn',true:'se8b47'},variant:{number:{flexDirection:'row-reverse',justifyContent:'end'},text:{flexDirection:'row'}}}});
|
|
6
|
+
var icon = recipeRuntime({base:[{border:'0',color:'fg.tertiary'}],variants:{sorted:{false:'_5qpha9',true:{}}}});
|
|
7
7
|
|
|
8
8
|
export { header, icon };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './../../assets/src/layers/layers.css.ts.vanilla-
|
|
1
|
+
import './../../assets/src/layers/layers.css.ts.vanilla-B76KCQ9u.css';
|
|
2
2
|
import { recipeRuntime } from '../vanilla-extract/recipeRuntime.js';
|
|
3
3
|
|
|
4
4
|
var body = recipeRuntime({base:[{flex:'1',fontSize:'md',overflow:'auto',pb:'md',pt:'lg',px:'lg'}]});
|