@douglasneuroinformatics/libui 6.2.1 → 6.3.1
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/components/ComboBox/ComboBox.d.ts +27 -0
- package/dist/components/ComboBox/ComboBox.d.ts.map +1 -0
- package/dist/components/ComboBox/ComboBox.js +37 -0
- package/dist/components/ComboBox/ComboBox.js.map +1 -0
- package/dist/components/ComboBox/ComboBoxChips.d.ts +9 -0
- package/dist/components/ComboBox/ComboBoxChips.d.ts.map +1 -0
- package/dist/components/ComboBox/ComboBoxChips.js +17 -0
- package/dist/components/ComboBox/ComboBoxChips.js.map +1 -0
- package/dist/components/ComboBox/ComboBoxClear.d.ts +4 -0
- package/dist/components/ComboBox/ComboBoxClear.d.ts.map +1 -0
- package/dist/components/ComboBox/ComboBoxClear.js +10 -0
- package/dist/components/ComboBox/ComboBoxClear.js.map +1 -0
- package/dist/components/ComboBox/ComboBoxCollection.d.ts +4 -0
- package/dist/components/ComboBox/ComboBoxCollection.d.ts.map +1 -0
- package/dist/components/ComboBox/ComboBoxCollection.js +7 -0
- package/dist/components/ComboBox/ComboBoxCollection.js.map +1 -0
- package/dist/components/ComboBox/ComboBoxContent.d.ts +4 -0
- package/dist/components/ComboBox/ComboBoxContent.d.ts.map +1 -0
- package/dist/components/ComboBox/ComboBoxContent.js +8 -0
- package/dist/components/ComboBox/ComboBoxContent.js.map +1 -0
- package/dist/components/ComboBox/ComboBoxEmpty.d.ts +4 -0
- package/dist/components/ComboBox/ComboBoxEmpty.d.ts.map +1 -0
- package/dist/components/ComboBox/ComboBoxEmpty.js +8 -0
- package/dist/components/ComboBox/ComboBoxEmpty.js.map +1 -0
- package/dist/components/ComboBox/ComboBoxGroup.d.ts +4 -0
- package/dist/components/ComboBox/ComboBoxGroup.d.ts.map +1 -0
- package/dist/components/ComboBox/ComboBoxGroup.js +8 -0
- package/dist/components/ComboBox/ComboBoxGroup.js.map +1 -0
- package/dist/components/ComboBox/ComboBoxInput.d.ts +7 -0
- package/dist/components/ComboBox/ComboBoxInput.d.ts.map +1 -0
- package/dist/components/ComboBox/ComboBoxInput.js +17 -0
- package/dist/components/ComboBox/ComboBoxInput.js.map +1 -0
- package/dist/components/ComboBox/ComboBoxItem.d.ts +4 -0
- package/dist/components/ComboBox/ComboBoxItem.d.ts.map +1 -0
- package/dist/components/ComboBox/ComboBoxItem.js +9 -0
- package/dist/components/ComboBox/ComboBoxItem.js.map +1 -0
- package/dist/components/ComboBox/ComboBoxLabel.d.ts +4 -0
- package/dist/components/ComboBox/ComboBoxLabel.d.ts.map +1 -0
- package/dist/components/ComboBox/ComboBoxLabel.js +8 -0
- package/dist/components/ComboBox/ComboBoxLabel.js.map +1 -0
- package/dist/components/ComboBox/ComboBoxList.d.ts +4 -0
- package/dist/components/ComboBox/ComboBoxList.d.ts.map +1 -0
- package/dist/components/ComboBox/ComboBoxList.js +8 -0
- package/dist/components/ComboBox/ComboBoxList.js.map +1 -0
- package/dist/components/ComboBox/ComboBoxSeparator.d.ts +4 -0
- package/dist/components/ComboBox/ComboBoxSeparator.d.ts.map +1 -0
- package/dist/components/ComboBox/ComboBoxSeparator.js +8 -0
- package/dist/components/ComboBox/ComboBoxSeparator.js.map +1 -0
- package/dist/components/ComboBox/ComboBoxTrigger.d.ts +4 -0
- package/dist/components/ComboBox/ComboBoxTrigger.d.ts.map +1 -0
- package/dist/components/ComboBox/ComboBoxTrigger.js +9 -0
- package/dist/components/ComboBox/ComboBoxTrigger.js.map +1 -0
- package/dist/components/ComboBox/ComboBoxValue.d.ts +4 -0
- package/dist/components/ComboBox/ComboBoxValue.d.ts.map +1 -0
- package/dist/components/ComboBox/ComboBoxValue.js +7 -0
- package/dist/components/ComboBox/ComboBoxValue.js.map +1 -0
- package/dist/components/DataTable/DataTableBody.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableBody.js +1 -1
- package/dist/components/DataTable/DataTableBody.js.map +1 -1
- package/dist/components/DataTable/DataTableHead.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableHead.js +3 -3
- package/dist/components/DataTable/DataTableHead.js.map +1 -1
- package/dist/components/InputGroup/InputGroup.d.ts +4 -0
- package/dist/components/InputGroup/InputGroup.d.ts.map +1 -0
- package/dist/components/InputGroup/InputGroup.js +8 -0
- package/dist/components/InputGroup/InputGroup.js.map +1 -0
- package/dist/components/InputGroup/InputGroupAddon.d.ts +8 -0
- package/dist/components/InputGroup/InputGroupAddon.d.ts.map +1 -0
- package/dist/components/InputGroup/InputGroupAddon.js +23 -0
- package/dist/components/InputGroup/InputGroupAddon.js.map +1 -0
- package/dist/components/InputGroup/InputGroupButton.d.ts +9 -0
- package/dist/components/InputGroup/InputGroupButton.d.ts.map +1 -0
- package/dist/components/InputGroup/InputGroupButton.js +29 -0
- package/dist/components/InputGroup/InputGroupButton.js.map +1 -0
- package/dist/components/InputGroup/InputGroupInput.d.ts +4 -0
- package/dist/components/InputGroup/InputGroupInput.d.ts.map +1 -0
- package/dist/components/InputGroup/InputGroupInput.js +9 -0
- package/dist/components/InputGroup/InputGroupInput.js.map +1 -0
- package/dist/components/InputGroup/InputGroupText.d.ts +4 -0
- package/dist/components/InputGroup/InputGroupText.d.ts.map +1 -0
- package/dist/components/InputGroup/InputGroupText.js +8 -0
- package/dist/components/InputGroup/InputGroupText.js.map +1 -0
- package/dist/components/InputGroup/InputGroupTextArea.d.ts +4 -0
- package/dist/components/InputGroup/InputGroupTextArea.d.ts.map +1 -0
- package/dist/components/InputGroup/InputGroupTextArea.js +9 -0
- package/dist/components/InputGroup/InputGroupTextArea.js.map +1 -0
- package/package.json +2 -1
- package/src/components/ComboBox/ComboBox.stories.tsx +31 -0
- package/src/components/ComboBox/ComboBox.tsx +41 -0
- package/src/components/ComboBox/ComboBoxChips.tsx +69 -0
- package/src/components/ComboBox/ComboBoxClear.tsx +23 -0
- package/src/components/ComboBox/ComboBoxCollection.tsx +7 -0
- package/src/components/ComboBox/ComboBoxContent.tsx +39 -0
- package/src/components/ComboBox/ComboBoxEmpty.tsx +18 -0
- package/src/components/ComboBox/ComboBoxGroup.tsx +9 -0
- package/src/components/ComboBox/ComboBoxInput.tsx +51 -0
- package/src/components/ComboBox/ComboBoxItem.tsx +28 -0
- package/src/components/ComboBox/ComboBoxLabel.tsx +15 -0
- package/src/components/ComboBox/ComboBoxList.tsx +18 -0
- package/src/components/ComboBox/ComboBoxSeparator.tsx +15 -0
- package/src/components/ComboBox/ComboBoxTrigger.tsx +23 -0
- package/src/components/ComboBox/ComboBoxValue.tsx +7 -0
- package/src/components/DataTable/DataTable.stories.tsx +19 -1
- package/src/components/DataTable/DataTableBody.tsx +5 -1
- package/src/components/DataTable/DataTableHead.tsx +5 -3
- package/src/components/InputGroup/InputGroup.stories.tsx +27 -0
- package/src/components/InputGroup/InputGroup.tsx +19 -0
- package/src/components/InputGroup/InputGroupAddon.tsx +42 -0
- package/src/components/InputGroup/InputGroupButton.tsx +50 -0
- package/src/components/InputGroup/InputGroupInput.tsx +20 -0
- package/src/components/InputGroup/InputGroupText.tsx +17 -0
- package/src/components/InputGroup/InputGroupTextArea.tsx +20 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
3
|
+
declare function useComboboxAnchor(): React.RefObject<HTMLDivElement | null>;
|
|
4
|
+
export { useComboboxAnchor };
|
|
5
|
+
export declare const ComboBox: typeof ComboboxPrimitive.Root & {
|
|
6
|
+
Chip: ({ children, className, showRemove, ...props }: ComboboxPrimitive.Chip.Props & {
|
|
7
|
+
showRemove?: boolean;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
Chips: ({ className, ...props }: ComboboxPrimitive.Chips.Props & React.ComponentPropsWithRef<typeof ComboboxPrimitive.Chips>) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
ChipsInput: ({ className, ...props }: ComboboxPrimitive.Input.Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
Clear: ({ className, ...props }: ComboboxPrimitive.Clear.Props) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
Collection: ({ ...props }: ComboboxPrimitive.Collection.Props) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
Content: ({ align, alignOffset, anchor, className, side, sideOffset, ...props }: ComboboxPrimitive.Popup.Props & Pick<ComboboxPrimitive.Positioner.Props, "align" | "alignOffset" | "anchor" | "side" | "sideOffset">) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
Empty: ({ className, ...props }: ComboboxPrimitive.Empty.Props) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
Group: ({ className, ...props }: ComboboxPrimitive.Group.Props) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
Input: ({ children, className, disabled, showClear, showTrigger, ...props }: ComboboxPrimitive.Input.Props & {
|
|
17
|
+
showClear?: boolean;
|
|
18
|
+
showTrigger?: boolean;
|
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
Item: ({ children, className, ...props }: ComboboxPrimitive.Item.Props) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
Label: ({ className, ...props }: ComboboxPrimitive.GroupLabel.Props) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
List: ({ className, ...props }: ComboboxPrimitive.List.Props) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
Separator: ({ className, ...props }: ComboboxPrimitive.Separator.Props) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
Trigger: ({ children, className, render, ...props }: ComboboxPrimitive.Trigger.Props) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
Value: ({ ...props }: ComboboxPrimitive.Value.Props) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=ComboBox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBox.d.ts","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAgB/D,iBAAS,iBAAiB,2CAEzB;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAE7B,eAAO,MAAM,QAAQ;;kBAGG,CAAC;;;;;;;;;;iBAbH,CAAC;mBAAwB,CAAC;;;;;;;;CA0B9C,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
3
|
+
import { ComboboxChip, ComboboxChips, ComboboxChipsInput } from "./ComboBoxChips.js";
|
|
4
|
+
import { ComboboxClear } from "./ComboBoxClear.js";
|
|
5
|
+
import { ComboboxCollection } from "./ComboBoxCollection.js";
|
|
6
|
+
import { ComboboxContent } from "./ComboBoxContent.js";
|
|
7
|
+
import { ComboboxEmpty } from "./ComboBoxEmpty.js";
|
|
8
|
+
import { ComboboxGroup } from "./ComboBoxGroup.js";
|
|
9
|
+
import { ComboboxInput } from "./ComboBoxInput.js";
|
|
10
|
+
import { ComboboxItem } from "./ComboBoxItem.js";
|
|
11
|
+
import { ComboboxLabel } from "./ComboBoxLabel.js";
|
|
12
|
+
import { ComboboxList } from "./ComboBoxList.js";
|
|
13
|
+
import { ComboboxSeparator } from "./ComboBoxSeparator.js";
|
|
14
|
+
import { ComboboxTrigger } from "./ComboBoxTrigger.js";
|
|
15
|
+
import { ComboboxValue } from "./ComboBoxValue.js";
|
|
16
|
+
function useComboboxAnchor() {
|
|
17
|
+
return React.useRef(null);
|
|
18
|
+
}
|
|
19
|
+
export { useComboboxAnchor };
|
|
20
|
+
export const ComboBox = Object.assign(ComboboxPrimitive.Root.bind(null), {
|
|
21
|
+
Chip: ComboboxChip,
|
|
22
|
+
Chips: ComboboxChips,
|
|
23
|
+
ChipsInput: ComboboxChipsInput,
|
|
24
|
+
Clear: ComboboxClear,
|
|
25
|
+
Collection: ComboboxCollection,
|
|
26
|
+
Content: ComboboxContent,
|
|
27
|
+
Empty: ComboboxEmpty,
|
|
28
|
+
Group: ComboboxGroup,
|
|
29
|
+
Input: ComboboxInput,
|
|
30
|
+
Item: ComboboxItem,
|
|
31
|
+
Label: ComboboxLabel,
|
|
32
|
+
List: ComboboxList,
|
|
33
|
+
Separator: ComboboxSeparator,
|
|
34
|
+
Trigger: ComboboxTrigger,
|
|
35
|
+
Value: ComboboxValue
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=ComboBox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBox.js","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,oBAAqB,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAqB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAA0B,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAuB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAqB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAqB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAqB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAoB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAqB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAoB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAyB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAuB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAqB,CAAC;AAEpD,SAAS,iBAAiB;IACxB,OAAO,KAAK,CAAC,MAAM,CAAwB,IAAI,CAAC,CAAC;AACnD,CAAC;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAC;AAE7B,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;IACvE,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,aAAa;IACpB,UAAU,EAAE,kBAAkB;IAC9B,KAAK,EAAE,aAAa;IACpB,UAAU,EAAE,kBAAkB;IAC9B,OAAO,EAAE,eAAe;IACxB,KAAK,EAAE,aAAa;IACpB,KAAK,EAAE,aAAa;IACpB,KAAK,EAAE,aAAa;IACpB,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,aAAa;IACpB,IAAI,EAAE,YAAY;IAClB,SAAS,EAAE,iBAAiB;IAC5B,OAAO,EAAE,eAAe;IACxB,KAAK,EAAE,aAAa;CACrB,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
3
|
+
declare const ComboboxChips: ({ className, ...props }: ComboboxPrimitive.Chips.Props & React.ComponentPropsWithRef<typeof ComboboxPrimitive.Chips>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const ComboboxChip: ({ children, className, showRemove, ...props }: ComboboxPrimitive.Chip.Props & {
|
|
5
|
+
showRemove?: boolean;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const ComboboxChipsInput: ({ className, ...props }: ComboboxPrimitive.Input.Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { ComboboxChip, ComboboxChips, ComboboxChipsInput };
|
|
9
|
+
//# sourceMappingURL=ComboBoxChips.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxChips.d.ts","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxChips.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAO/D,QAAA,MAAM,aAAa,GAAI,yBAGpB,iBAAiB,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,qBAAqB,CAAC,OAAO,iBAAiB,CAAC,KAAK,CAAC,4CAW7F,CAAC;AAEF,QAAA,MAAM,YAAY,GAAI,+CAKnB,iBAAiB,CAAC,IAAI,CAAC,KAAK,GAAG;IAChC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,4CAwBA,CAAC;AAEF,QAAA,MAAM,kBAAkB,GAAI,yBAAyB,iBAAiB,CAAC,KAAK,CAAC,KAAK,4CAQjF,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
4
|
+
import { XIcon } from 'lucide-react';
|
|
5
|
+
import { cn } from '#utils';
|
|
6
|
+
import { Button } from "../Button/Button.js";
|
|
7
|
+
const ComboboxChips = ({ className, ...props }) => {
|
|
8
|
+
return (_jsx(ComboboxPrimitive.Chips, { className: cn('dark:bg-input/30 border-input focus-within:border-ring focus-within:ring-ring/50 has-aria-invalid:ring-destructive/20 dark:has-aria-invalid:ring-destructive/40 has-aria-invalid:border-destructive dark:has-aria-invalid:border-destructive/50 flex min-h-8 flex-wrap items-center gap-1 rounded-lg border bg-transparent bg-clip-padding px-2.5 py-1 text-sm transition-colors focus-within:ring-3 has-aria-invalid:ring-3 has-data-[slot=combobox-chip]:px-1', className), "data-slot": "combobox-chips", ...props }));
|
|
9
|
+
};
|
|
10
|
+
const ComboboxChip = ({ children, className, showRemove = true, ...props }) => {
|
|
11
|
+
return (_jsxs(ComboboxPrimitive.Chip, { className: cn('bg-muted text-foreground flex h-[calc(--spacing(5.25))] w-fit items-center justify-center gap-1 rounded-sm px-1.5 text-xs font-medium whitespace-nowrap has-disabled:pointer-events-none has-disabled:cursor-not-allowed has-disabled:opacity-50 has-data-[slot=combobox-chip-remove]:pr-0', className), "data-slot": "combobox-chip", ...props, children: [children, showRemove && (_jsx(ComboboxPrimitive.ChipRemove, { className: "-ml-1 opacity-50 hover:opacity-100", "data-slot": "combobox-chip-remove", render: _jsx(Button, { size: "sm", variant: "ghost", children: _jsx(XIcon, { className: "pointer-events-none" }) }) }))] }));
|
|
12
|
+
};
|
|
13
|
+
const ComboboxChipsInput = ({ className, ...props }) => {
|
|
14
|
+
return (_jsx(ComboboxPrimitive.Input, { className: cn('min-w-16 flex-1 outline-none', className), "data-slot": "combobox-chip-input", ...props }));
|
|
15
|
+
};
|
|
16
|
+
export { ComboboxChip, ComboboxChips, ComboboxChipsInput };
|
|
17
|
+
//# sourceMappingURL=ComboBoxChips.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxChips.js","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxChips.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAErC,OAAO,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAsB,CAAC;AAE9C,MAAM,aAAa,GAAG,CAAC,EACrB,SAAS,EACT,GAAG,KAAK,EACoF,EAAE,EAAE;IAChG,OAAO,CACL,KAAC,iBAAiB,CAAC,KAAK,IACtB,SAAS,EAAE,EAAE,CACX,icAAic,EACjc,SAAS,CACV,eACS,gBAAgB,KACtB,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,EACpB,QAAQ,EACR,SAAS,EACT,UAAU,GAAG,IAAI,EACjB,GAAG,KAAK,EAGT,EAAE,EAAE;IACH,OAAO,CACL,MAAC,iBAAiB,CAAC,IAAI,IACrB,SAAS,EAAE,EAAE,CACX,4RAA4R,EAC5R,SAAS,CACV,eACS,eAAe,KACrB,KAAK,aAER,QAAQ,EACR,UAAU,IAAI,CACb,KAAC,iBAAiB,CAAC,UAAU,IAC3B,SAAS,EAAC,oCAAoC,eACpC,sBAAsB,EAChC,MAAM,EACJ,KAAC,MAAM,IAAC,IAAI,EAAC,IAAI,EAAC,OAAO,EAAC,OAAO,YAC/B,KAAC,KAAK,IAAC,SAAS,EAAC,qBAAqB,GAAG,GAClC,GAEX,CACH,IACsB,CAC1B,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAiC,EAAE,EAAE;IACpF,OAAO,CACL,KAAC,iBAAiB,CAAC,KAAK,IACtB,SAAS,EAAE,EAAE,CAAC,8BAA8B,EAAE,SAAS,CAAC,eAC9C,qBAAqB,KAC3B,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxClear.d.ts","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxClear.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAO/D,QAAA,MAAM,aAAa,GAAI,yBAAyB,iBAAiB,CAAC,KAAK,CAAC,KAAK,4CAa5E,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
3
|
+
import { XIcon } from 'lucide-react';
|
|
4
|
+
import { cn } from '#utils';
|
|
5
|
+
import { InputGroupButton } from "../InputGroup/InputGroupButton.js";
|
|
6
|
+
const ComboboxClear = ({ className, ...props }) => {
|
|
7
|
+
return (_jsx(ComboboxPrimitive.Clear, { className: cn(className), "data-slot": "combobox-clear", ...props, render: _jsx(InputGroupButton, { size: "icon-xs", variant: "ghost", children: _jsx(XIcon, { className: "pointer-events-none" }) }) }));
|
|
8
|
+
};
|
|
9
|
+
export { ComboboxClear };
|
|
10
|
+
//# sourceMappingURL=ComboBoxClear.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxClear.js","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxClear.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAErC,OAAO,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAoC,CAAC;AAEtE,MAAM,aAAa,GAAG,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAiC,EAAE,EAAE;IAC/E,OAAO,CACL,KAAC,iBAAiB,CAAC,KAAK,IACtB,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,eACd,gBAAgB,KACtB,KAAK,EACT,MAAM,EACJ,KAAC,gBAAgB,IAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAC,OAAO,YAC9C,KAAC,KAAK,IAAC,SAAS,EAAC,qBAAqB,GAAG,GACxB,GAErB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
2
|
+
declare const ComboboxCollection: ({ ...props }: ComboboxPrimitive.Collection.Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { ComboboxCollection };
|
|
4
|
+
//# sourceMappingURL=ComboBoxCollection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxCollection.d.ts","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxCollection.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,QAAA,MAAM,kBAAkB,GAAI,cAAc,iBAAiB,CAAC,UAAU,CAAC,KAAK,4CAE3E,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
3
|
+
const ComboboxCollection = ({ ...props }) => {
|
|
4
|
+
return _jsx(ComboboxPrimitive.Collection, { "data-slot": "combobox-collection", ...props });
|
|
5
|
+
};
|
|
6
|
+
export { ComboboxCollection };
|
|
7
|
+
//# sourceMappingURL=ComboBoxCollection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxCollection.js","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxCollection.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,MAAM,kBAAkB,GAAG,CAAC,EAAE,GAAG,KAAK,EAAsC,EAAE,EAAE;IAC9E,OAAO,KAAC,iBAAiB,CAAC,UAAU,iBAAW,qBAAqB,KAAK,KAAK,GAAI,CAAC;AACrF,CAAC,CAAC;AAEF,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
2
|
+
declare const ComboboxContent: ({ align, alignOffset, anchor, className, side, sideOffset, ...props }: ComboboxPrimitive.Popup.Props & Pick<ComboboxPrimitive.Positioner.Props, "align" | "alignOffset" | "anchor" | "side" | "sideOffset">) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { ComboboxContent };
|
|
4
|
+
//# sourceMappingURL=ComboBoxContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxContent.d.ts","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxContent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAI/D,QAAA,MAAM,eAAe,GAAI,uEAQtB,iBAAiB,CAAC,KAAK,CAAC,KAAK,GAC9B,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,aAAa,GAAG,QAAQ,GAAG,MAAM,GAAG,YAAY,CAAC,4CAuBrG,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
3
|
+
import { cn } from '#utils';
|
|
4
|
+
const ComboboxContent = ({ align = 'start', alignOffset = 0, anchor, className, side = 'bottom', sideOffset = 6, ...props }) => {
|
|
5
|
+
return (_jsx(ComboboxPrimitive.Portal, { children: _jsx(ComboboxPrimitive.Positioner, { align: align, alignOffset: alignOffset, anchor: anchor, className: "isolate z-50", side: side, sideOffset: sideOffset, children: _jsx(ComboboxPrimitive.Popup, { className: cn('bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 *:data-[slot=input-group]:bg-input/30 *:data-[slot=input-group]:border-input/30 data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 group/combobox-content relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) overflow-hidden rounded-lg shadow-md ring-1 duration-100 data-[chips=true]:min-w-(--anchor-width) *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-8 *:data-[slot=input-group]:shadow-none', className), "data-chips": !!anchor, "data-slot": "combobox-content", ...props }) }) }));
|
|
6
|
+
};
|
|
7
|
+
export { ComboboxContent };
|
|
8
|
+
//# sourceMappingURL=ComboBoxContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxContent.js","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxContent.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE5B,MAAM,eAAe,GAAG,CAAC,EACvB,KAAK,GAAG,OAAO,EACf,WAAW,GAAG,CAAC,EACf,MAAM,EACN,SAAS,EACT,IAAI,GAAG,QAAQ,EACf,UAAU,GAAG,CAAC,EACd,GAAG,KAAK,EAE4F,EAAE,EAAE;IACxG,OAAO,CACL,KAAC,iBAAiB,CAAC,MAAM,cACvB,KAAC,iBAAiB,CAAC,UAAU,IAC3B,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,MAAM,EACd,SAAS,EAAC,cAAc,EACxB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,YAEtB,KAAC,iBAAiB,CAAC,KAAK,IACtB,SAAS,EAAE,EAAE,CACX,y5BAAy5B,EACz5B,SAAS,CACV,gBACW,CAAC,CAAC,MAAM,eACV,kBAAkB,KACxB,KAAK,GACT,GAC2B,GACN,CAC5B,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxEmpty.d.ts","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxEmpty.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAI/D,QAAA,MAAM,aAAa,GAAI,yBAAyB,iBAAiB,CAAC,KAAK,CAAC,KAAK,4CAW5E,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
3
|
+
import { cn } from '#utils';
|
|
4
|
+
const ComboboxEmpty = ({ className, ...props }) => {
|
|
5
|
+
return (_jsx(ComboboxPrimitive.Empty, { className: cn('text-muted-foreground hidden w-full justify-center py-2 text-center text-sm group-data-empty/combobox-content:flex', className), "data-slot": "combobox-empty", ...props }));
|
|
6
|
+
};
|
|
7
|
+
export { ComboboxEmpty };
|
|
8
|
+
//# sourceMappingURL=ComboBoxEmpty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxEmpty.js","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxEmpty.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE5B,MAAM,aAAa,GAAG,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAiC,EAAE,EAAE;IAC/E,OAAO,CACL,KAAC,iBAAiB,CAAC,KAAK,IACtB,SAAS,EAAE,EAAE,CACX,oHAAoH,EACpH,SAAS,CACV,eACS,gBAAgB,KACtB,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxGroup.d.ts","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAI/D,QAAA,MAAM,aAAa,GAAI,yBAAyB,iBAAiB,CAAC,KAAK,CAAC,KAAK,4CAE5E,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
3
|
+
import { cn } from '#utils';
|
|
4
|
+
const ComboboxGroup = ({ className, ...props }) => {
|
|
5
|
+
return _jsx(ComboboxPrimitive.Group, { className: cn(className), "data-slot": "combobox-group", ...props });
|
|
6
|
+
};
|
|
7
|
+
export { ComboboxGroup };
|
|
8
|
+
//# sourceMappingURL=ComboBoxGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxGroup.js","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE5B,MAAM,aAAa,GAAG,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAiC,EAAE,EAAE;IAC/E,OAAO,KAAC,iBAAiB,CAAC,KAAK,IAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,eAAY,gBAAgB,KAAK,KAAK,GAAI,CAAC;AACrG,CAAC,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
2
|
+
declare const ComboboxInput: ({ children, className, disabled, showClear, showTrigger, ...props }: ComboboxPrimitive.Input.Props & {
|
|
3
|
+
showClear?: boolean;
|
|
4
|
+
showTrigger?: boolean;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { ComboboxInput };
|
|
7
|
+
//# sourceMappingURL=ComboBoxInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxInput.d.ts","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxInput.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAY/D,QAAA,MAAM,aAAa,GAAI,qEAOpB,iBAAiB,CAAC,KAAK,CAAC,KAAK,GAAG;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,4CA0BA,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
3
|
+
import { ChevronDownIcon } from 'lucide-react';
|
|
4
|
+
import { cn } from '#utils';
|
|
5
|
+
import { InputGroup } from "../InputGroup/InputGroup.js";
|
|
6
|
+
import { InputGroupAddon } from "../InputGroup/InputGroupAddon.js";
|
|
7
|
+
import { InputGroupButton } from "../InputGroup/InputGroupButton.js";
|
|
8
|
+
import { InputGroupInput } from "../InputGroup/InputGroupInput.js";
|
|
9
|
+
import { ComboboxClear } from "./ComboBoxClear.js";
|
|
10
|
+
import { ComboboxTrigger } from "./ComboBoxTrigger.js";
|
|
11
|
+
const ComboboxInput = ({ children, className, disabled = false, showClear = false, showTrigger = true, ...props }) => {
|
|
12
|
+
return (_jsxs(InputGroup, { className: cn('w-auto', className), children: [_jsx(ComboboxPrimitive.Input, { render: _jsx(InputGroupInput, { disabled: disabled }), ...props }), _jsxs(InputGroupAddon, { align: "inline-end", children: [showTrigger && (_jsx(ComboboxTrigger, { disabled: disabled,
|
|
13
|
+
/* Now this works because ComboboxTrigger is expecting 'render' */
|
|
14
|
+
render: _jsx(InputGroupButton, { className: "group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent", "data-slot": "input-group-button", size: "icon-xs", variant: "ghost", children: _jsx(ChevronDownIcon, { className: "text-muted-foreground pointer-events-none size-4" }) }) })), showClear && _jsx(ComboboxClear, { disabled: disabled })] }), children] }));
|
|
15
|
+
};
|
|
16
|
+
export { ComboboxInput };
|
|
17
|
+
//# sourceMappingURL=ComboBoxInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxInput.js","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxInput.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA8B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAmC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAoC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAmC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAqB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAuB,CAAC;AAExD,MAAM,aAAa,GAAG,CAAC,EACrB,QAAQ,EACR,SAAS,EACT,QAAQ,GAAG,KAAK,EAChB,SAAS,GAAG,KAAK,EACjB,WAAW,GAAG,IAAI,EAClB,GAAG,KAAK,EAIT,EAAE,EAAE;IACH,OAAO,CACL,MAAC,UAAU,IAAC,SAAS,EAAE,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,aAC5C,KAAC,iBAAiB,CAAC,KAAK,IAAC,MAAM,EAAE,KAAC,eAAe,IAAC,QAAQ,EAAE,QAAQ,GAAI,KAAM,KAAK,GAAI,EACvF,MAAC,eAAe,IAAC,KAAK,EAAC,YAAY,aAChC,WAAW,IAAI,CACd,KAAC,eAAe,IACd,QAAQ,EAAE,QAAQ;wBAClB,kEAAkE;wBAClE,MAAM,EACJ,KAAC,gBAAgB,IACf,SAAS,EAAC,qFAAqF,eACrF,oBAAoB,EAC9B,IAAI,EAAC,SAAS,EACd,OAAO,EAAC,OAAO,YAEf,KAAC,eAAe,IAAC,SAAS,EAAC,kDAAkD,GAAG,GAC/D,GAErB,CACH,EACA,SAAS,IAAI,KAAC,aAAa,IAAC,QAAQ,EAAE,QAAQ,GAAI,IACnC,EACjB,QAAQ,IACE,CACd,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
2
|
+
declare const ComboboxItem: ({ children, className, ...props }: ComboboxPrimitive.Item.Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { ComboboxItem };
|
|
4
|
+
//# sourceMappingURL=ComboBoxItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxItem.d.ts","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAK/D,QAAA,MAAM,YAAY,GAAI,mCAAmC,iBAAiB,CAAC,IAAI,CAAC,KAAK,4CAoBpF,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
3
|
+
import { CheckIcon } from 'lucide-react';
|
|
4
|
+
import { cn } from '#utils';
|
|
5
|
+
const ComboboxItem = ({ children, className, ...props }) => {
|
|
6
|
+
return (_jsxs(ComboboxPrimitive.Item, { className: cn("data-highlighted:bg-accent data-highlighted:text-accent-foreground not-data-[variant=destructive]:data-highlighted:**:text-accent-foreground relative flex w-full cursor-default items-center gap-2 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className), "data-slot": "combobox-item", ...props, children: [children, _jsx(ComboboxPrimitive.ItemIndicator, { render: _jsx("span", { className: "pointer-events-none absolute right-2 flex size-4 items-center justify-center", children: _jsx(CheckIcon, { className: "pointer-events-none" }) }) })] }));
|
|
7
|
+
};
|
|
8
|
+
export { ComboboxItem };
|
|
9
|
+
//# sourceMappingURL=ComboBoxItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxItem.js","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxItem.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE5B,MAAM,YAAY,GAAG,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAgC,EAAE,EAAE;IACvF,OAAO,CACL,MAAC,iBAAiB,CAAC,IAAI,IACrB,SAAS,EAAE,EAAE,CACX,iZAAiZ,EACjZ,SAAS,CACV,eACS,eAAe,KACrB,KAAK,aAER,QAAQ,EACT,KAAC,iBAAiB,CAAC,aAAa,IAC9B,MAAM,EACJ,eAAM,SAAS,EAAC,8EAA8E,YAC5F,KAAC,SAAS,IAAC,SAAS,EAAC,qBAAqB,GAAG,GACxC,GAET,IACqB,CAC1B,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
2
|
+
declare const ComboboxLabel: ({ className, ...props }: ComboboxPrimitive.GroupLabel.Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { ComboboxLabel };
|
|
4
|
+
//# sourceMappingURL=ComboBoxLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxLabel.d.ts","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAI/D,QAAA,MAAM,aAAa,GAAI,yBAAyB,iBAAiB,CAAC,UAAU,CAAC,KAAK,4CAQjF,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
3
|
+
import { cn } from '#utils';
|
|
4
|
+
const ComboboxLabel = ({ className, ...props }) => {
|
|
5
|
+
return (_jsx(ComboboxPrimitive.GroupLabel, { className: cn('text-muted-foreground px-2 py-1.5 text-xs', className), "data-slot": "combobox-label", ...props }));
|
|
6
|
+
};
|
|
7
|
+
export { ComboboxLabel };
|
|
8
|
+
//# sourceMappingURL=ComboBoxLabel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxLabel.js","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxLabel.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE5B,MAAM,aAAa,GAAG,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAsC,EAAE,EAAE;IACpF,OAAO,CACL,KAAC,iBAAiB,CAAC,UAAU,IAC3B,SAAS,EAAE,EAAE,CAAC,2CAA2C,EAAE,SAAS,CAAC,eAC3D,gBAAgB,KACtB,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxList.d.ts","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAI/D,QAAA,MAAM,YAAY,GAAI,yBAAyB,iBAAiB,CAAC,IAAI,CAAC,KAAK,4CAW1E,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
3
|
+
import { cn } from '#utils';
|
|
4
|
+
const ComboboxList = ({ className, ...props }) => {
|
|
5
|
+
return (_jsx(ComboboxPrimitive.List, { className: cn('no-scrollbar max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto overscroll-contain p-1 data-empty:p-0', className), "data-slot": "combobox-list", ...props }));
|
|
6
|
+
};
|
|
7
|
+
export { ComboboxList };
|
|
8
|
+
//# sourceMappingURL=ComboBoxList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxList.js","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE5B,MAAM,YAAY,GAAG,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAgC,EAAE,EAAE;IAC7E,OAAO,CACL,KAAC,iBAAiB,CAAC,IAAI,IACrB,SAAS,EAAE,EAAE,CACX,yKAAyK,EACzK,SAAS,CACV,eACS,eAAe,KACrB,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
2
|
+
declare const ComboboxSeparator: ({ className, ...props }: ComboboxPrimitive.Separator.Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { ComboboxSeparator };
|
|
4
|
+
//# sourceMappingURL=ComboBoxSeparator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxSeparator.d.ts","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxSeparator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAI/D,QAAA,MAAM,iBAAiB,GAAI,yBAAyB,iBAAiB,CAAC,SAAS,CAAC,KAAK,4CAQpF,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
3
|
+
import { cn } from '#utils';
|
|
4
|
+
const ComboboxSeparator = ({ className, ...props }) => {
|
|
5
|
+
return (_jsx(ComboboxPrimitive.Separator, { className: cn('bg-border -mx-1 my-1 h-px', className), "data-slot": "combobox-separator", ...props }));
|
|
6
|
+
};
|
|
7
|
+
export { ComboboxSeparator };
|
|
8
|
+
//# sourceMappingURL=ComboBoxSeparator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxSeparator.js","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxSeparator.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE5B,MAAM,iBAAiB,GAAG,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAqC,EAAE,EAAE;IACvF,OAAO,CACL,KAAC,iBAAiB,CAAC,SAAS,IAC1B,SAAS,EAAE,EAAE,CAAC,2BAA2B,EAAE,SAAS,CAAC,eAC3C,oBAAoB,KAC1B,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
2
|
+
declare const ComboboxTrigger: ({ children, className, render, ...props }: ComboboxPrimitive.Trigger.Props) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { ComboboxTrigger };
|
|
4
|
+
//# sourceMappingURL=ComboBoxTrigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxTrigger.d.ts","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAK/D,QAAA,MAAM,eAAe,GAAI,2CAA2C,iBAAiB,CAAC,OAAO,CAAC,KAAK,4CAelG,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
3
|
+
import { ChevronDownIcon } from 'lucide-react';
|
|
4
|
+
import { cn } from '#utils';
|
|
5
|
+
const ComboboxTrigger = ({ children, className, render, ...props }) => {
|
|
6
|
+
return (_jsxs(ComboboxPrimitive.Trigger, { className: cn("[&_svg:not([class*='size-'])]:size-4", className), "data-slot": "combobox-trigger", render: render, ...props, children: [children, !render && _jsx(ChevronDownIcon, { className: "text-muted-foreground pointer-events-none size-4" })] }));
|
|
7
|
+
};
|
|
8
|
+
export { ComboboxTrigger };
|
|
9
|
+
//# sourceMappingURL=ComboBoxTrigger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxTrigger.js","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxTrigger.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE5B,MAAM,eAAe,GAAG,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAmC,EAAE,EAAE;IACrG,OAAO,CACL,MAAC,iBAAiB,CAAC,OAAO,IACxB,SAAS,EAAE,EAAE,CAAC,sCAAsC,EAAE,SAAS,CAAC,eACtD,kBAAkB,EAC5B,MAAM,EAAE,MAAM,KACV,KAAK,aAER,QAAQ,EAIR,CAAC,MAAM,IAAI,KAAC,eAAe,IAAC,SAAS,EAAC,kDAAkD,GAAG,IAClE,CAC7B,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxValue.d.ts","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxValue.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,QAAA,MAAM,aAAa,GAAI,cAAc,iBAAiB,CAAC,KAAK,CAAC,KAAK,4CAEjE,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Combobox as ComboboxPrimitive } from '@base-ui/react';
|
|
3
|
+
const ComboboxValue = ({ ...props }) => {
|
|
4
|
+
return _jsx(ComboboxPrimitive.Value, { "data-slot": "combobox-value", ...props });
|
|
5
|
+
};
|
|
6
|
+
export { ComboboxValue };
|
|
7
|
+
//# sourceMappingURL=ComboBoxValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComboBoxValue.js","sourceRoot":"","sources":["../../../src/components/ComboBox/ComboBoxValue.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,MAAM,aAAa,GAAG,CAAC,EAAE,GAAG,KAAK,EAAiC,EAAE,EAAE;IACpE,OAAO,KAAC,iBAAiB,CAAC,KAAK,iBAAW,gBAAgB,KAAK,KAAK,GAAI,CAAC;AAC3E,CAAC,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableBody.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAClC,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,EAAE,iBAAiB,GAAG,YAAY,GAAG,kBAAkB,CAAC,
|
|
1
|
+
{"version":3,"file":"DataTableBody.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAExD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAClC,IAAI,CAAC,qBAAqB,CAAC,GAAG,CAAC,EAAE,iBAAiB,GAAG,YAAY,GAAG,kBAAkB,CAAC,CAmExF,CAAC"}
|
|
@@ -34,7 +34,7 @@ export const DataTableBody = ({ emptyStateProps, onRowClick, onRowDoubleClick })
|
|
|
34
34
|
style.borderRight = 'none';
|
|
35
35
|
}
|
|
36
36
|
const content = flexRender(cell.column.columnDef.cell, cell.getContext());
|
|
37
|
-
return (_jsx("div", { className: "flex items-center border-r px-4 py-2 last:border-r-0", style: style, children: content && typeof content === 'object' ? content : _jsx("span", { className: "block truncate", children: content }) }, cell.id));
|
|
37
|
+
return (_jsx("div", { className: "flex items-center border-r bg-inherit px-4 py-2 last:border-r-0", style: style, children: content && typeof content === 'object' ? content : _jsx("span", { className: "block truncate", children: content }) }, cell.id));
|
|
38
38
|
}) }, row.id)))) }));
|
|
39
39
|
};
|
|
40
40
|
//# sourceMappingURL=DataTableBody.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file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AAS,EAAC,gBAAgB,YAAE,OAAO,GAAQ,IAHhG,IAAI,CAAC,EAAE,CAIR,CACP,CAAC;YACJ,CAAC,CAAC,IAhCG,GAAG,CAAC,EAAE,CAiCP,CACP,CAAC,CACH,GACG,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableHead.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableHead.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataTableHead.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableHead.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,+CAuDzB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ACTIONS_COLUMN_ID } from "./constants.js";
|
|
2
3
|
import { useDataTableHandle } from "./hooks.js";
|
|
3
4
|
import { flexRender } from "./utils.js";
|
|
4
5
|
export const DataTableHead = () => {
|
|
@@ -20,9 +21,8 @@ export const DataTableHead = () => {
|
|
|
20
21
|
style.position = 'sticky';
|
|
21
22
|
style.zIndex = 20;
|
|
22
23
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
if (header.column.getIsLastColumn('center')) {
|
|
24
|
+
const nextHeader = headerGroup.headers[header.index + 1];
|
|
25
|
+
if (nextHeader?.column.id === ACTIONS_COLUMN_ID) {
|
|
26
26
|
style.borderRight = 'none';
|
|
27
27
|
}
|
|
28
28
|
return (_jsxs("div", { className: "group/cell bg-background relative flex items-center border-r border-b px-4 py-2 last:border-r-0", style: style, children: [!header.isPlaceholder && flexRender(header.column.columnDef.header, header.getContext()), header.column.getCanResize() && (_jsx("div", { className: "absolute top-0 right-0 z-10 h-full w-[1px]", children: _jsx("button", { className: "group-hover/cell:bg-border absolute -right-[1px] h-full w-full cursor-col-resize touch-none rounded-md bg-transparent select-none group-hover/cell:-right-[2px] group-hover/cell:w-[3px]", style: { transform: header.column.getIsLastColumn() ? 'translateX(-2px)' : undefined }, type: "button", onDoubleClick: header.column.resetSize, onMouseDown: header.getResizeHandler(), onTouchStart: header.getResizeHandler() }) }))] }, header.id));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableHead.js","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableHead.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAa,CAAC;AAEzC,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,EAAE;IAChC,MAAM,YAAY,GAAG,kBAAkB,CAAC,cAAc,CAAC,CAAC;IACxD,MAAM,QAAQ,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAEhD,OAAO,CACL,cAAK,SAAS,EAAC,eAAe,iBAAa,iBAAiB,EAAC,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,YACxG,YAAY,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,CACjC,cAAK,SAAS,EAAC,MAAM,YAClB,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;gBAClC,MAAM,KAAK,GAAwB;oBACjC,qGAAqG;oBACrG,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO;oBAC3E,KAAK,EAAE,qBAAqB,MAAM,EAAE,EAAE,eAAe;iBACtD,CAAC;gBACF,IAAI,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,MAAM,EAAE,CAAC;oBAC3C,KAAK,CAAC,IAAI,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAA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,CAAC,MAAM,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,EAAE,EACtF,IAAI,EAAC,QAAQ,EACb,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,SAAS,EACtC,WAAW,EAAE,MAAM,CAAC,gBAAgB,EAAE,EACtC,YAAY,EAAE,MAAM,CAAC,gBAAgB,EAAE,GACvC,GACE,CACP,KAfI,MAAM,CAAC,EAAE,CAgBV,CACP,CAAC;YACJ,CAAC,CAAC,IA3CuB,WAAW,CAAC,EAAE,CA4CnC,CACP,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputGroup.d.ts","sourceRoot":"","sources":["../../../src/components/InputGroup/InputGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,UAAU,GAAI,yBAAyB,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,4CAYvE,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { cn } from '#utils';
|
|
4
|
+
const InputGroup = ({ className, ...props }) => {
|
|
5
|
+
return (_jsx("div", { className: cn('border-input dark:bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-disabled:bg-input/50 dark:has-disabled:bg-input/80 group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-3 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5', className), "data-slot": "input-group", role: "group", ...props }));
|
|
6
|
+
};
|
|
7
|
+
export { InputGroup };
|
|
8
|
+
//# sourceMappingURL=InputGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputGroup.js","sourceRoot":"","sources":["../../../src/components/InputGroup/InputGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE5B,MAAM,UAAU,GAAG,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAA+B,EAAE,EAAE;IAC1E,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CACX,ulCAAulC,EACvlC,SAAS,CACV,eACS,aAAa,EACvB,IAAI,EAAC,OAAO,KACR,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const inputGroupAddonVariants: (props?: ({
|
|
4
|
+
align?: "block-end" | "block-start" | "inline-end" | "inline-start" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
declare const InputGroupAddon: ({ align, className, ...props }: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { InputGroupAddon };
|
|
8
|
+
//# sourceMappingURL=InputGroupAddon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputGroupAddon.d.ts","sourceRoot":"","sources":["../../../src/components/InputGroup/InputGroupAddon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAI7D,QAAA,MAAM,uBAAuB;;8EAgB5B,CAAC;AAGF,QAAA,MAAM,eAAe,GAAI,gCAItB,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,uBAAuB,CAAC,4CAS5E,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { cva } from 'class-variance-authority';
|
|
4
|
+
import { cn } from '#utils';
|
|
5
|
+
const inputGroupAddonVariants = cva("text-muted-foreground h-auto gap-2 py-1.5 text-sm font-medium group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4 flex cursor-text items-center justify-center select-none", {
|
|
6
|
+
defaultVariants: {
|
|
7
|
+
align: 'inline-start'
|
|
8
|
+
},
|
|
9
|
+
variants: {
|
|
10
|
+
align: {
|
|
11
|
+
'block-end': 'px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2 order-last w-full justify-start',
|
|
12
|
+
'block-start': 'px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2 order-first w-full justify-start',
|
|
13
|
+
'inline-end': 'pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem] order-last',
|
|
14
|
+
'inline-start': 'pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem] order-first'
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
//ensure that Group encapsulates the input and the addon
|
|
19
|
+
const InputGroupAddon = ({ align = 'inline-start', className, ...props }) => {
|
|
20
|
+
return (_jsx("div", { className: cn(inputGroupAddonVariants({ align }), className), "data-align": align, "data-slot": "input-group-addon", ...props }));
|
|
21
|
+
};
|
|
22
|
+
export { InputGroupAddon };
|
|
23
|
+
//# sourceMappingURL=InputGroupAddon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputGroupAddon.js","sourceRoot":"","sources":["../../../src/components/InputGroup/InputGroupAddon.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAG/C,OAAO,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE5B,MAAM,uBAAuB,GAAG,GAAG,CACjC,yPAAyP,EACzP;IACE,eAAe,EAAE;QACf,KAAK,EAAE,cAAc;KACtB;IACD,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,WAAW,EAAE,kGAAkG;YAC/G,aAAa,EACX,mGAAmG;YACrG,YAAY,EAAE,qEAAqE;YACnF,cAAc,EAAE,sEAAsE;SACvF;KACF;CACF,CACF,CAAC;AAEF,wDAAwD;AACxD,MAAM,eAAe,GAAG,CAAC,EACvB,KAAK,GAAG,cAAc,EACtB,SAAS,EACT,GAAG,KAAK,EACmE,EAAE,EAAE;IAC/E,OAAO,CACL,cACE,SAAS,EAAE,EAAE,CAAC,uBAAuB,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,CAAC,gBAChD,KAAK,eACP,mBAAmB,KACzB,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|