@schemavaults/ui 0.35.0 → 0.37.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.
@@ -23,7 +23,7 @@ export function ThemedPageContainer({ children, ...props }) {
23
23
  const contentContainerClassName = typeof props.contentContainerClassName === "string"
24
24
  ? cn(props.contentContainerClassName, props.additionalContentContainerClassName)
25
25
  : defaultContentContainerClassName;
26
- return (_jsx(ThemedPageBackground, { className: cn("grow", "overflow-y-scroll no-scrollbar", "flex flex-col items-stretch justify-start", backgroundContentClassName), backgroundClassName: undefined, children: _jsx(PageColumnContainer, { className: contentContainerClassName, children: children }) }));
26
+ return (_jsx(ThemedPageBackground, { className: cn("grow", "flex flex-col items-stretch justify-start", backgroundContentClassName), backgroundClassName: undefined, children: _jsx(PageColumnContainer, { className: contentContainerClassName, children: children }) }));
27
27
  }
28
28
  export default ThemedPageContainer;
29
29
  //# sourceMappingURL=themed-page-container.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"themed-page-container.js","sourceRoot":"","sources":["../../../../src/components/layout/themed-page-container/themed-page-container.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,oBAAoB,MAAM,wCAAwC,CAAC;AAE1E,OAAO,mBAAmB,MAAM,2CAA2C,CAAC;AAC5E,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AASjC;;;;;;;;;;GAUG;AACH,MAAM,UAAU,mBAAmB,CAAC,EAClC,QAAQ,EACR,GAAG,KAAK,EACiB;IACzB,MAAM,0BAA0B,GAAW,EAAE,CAC3C,YAAY,EACZ,mBAAmB,CACpB,CAAC;IAEF,MAAM,gCAAgC,GAAW,EAAE,CACjD,YAAY,EACZ,yBAAyB,EACzB,KAAK,CAAC,mCAAmC,CAC1C,CAAC;IAEF,MAAM,0BAA0B,GAC9B,OAAO,KAAK,CAAC,mBAAmB,KAAK,QAAQ;QAC3C,CAAC,CAAC,KAAK,CAAC,mBAAmB;QAC3B,CAAC,CAAC,0BAA0B,CAAC;IACjC,MAAM,yBAAyB,GAC7B,OAAO,KAAK,CAAC,yBAAyB,KAAK,QAAQ;QACjD,CAAC,CAAC,EAAE,CACA,KAAK,CAAC,yBAAyB,EAC/B,KAAK,CAAC,mCAAmC,CAC1C;QACH,CAAC,CAAC,gCAAgC,CAAC;IAEvC,OAAO,CACL,KAAC,oBAAoB,IACnB,SAAS,EAAE,EAAE,CACX,MAAM,EACN,gCAAgC,EAChC,2CAA2C,EAC3C,0BAA0B,CAC3B,EACD,mBAAmB,EAAE,SAAS,YAE9B,KAAC,mBAAmB,IAAC,SAAS,EAAE,yBAAyB,YACtD,QAAQ,GACW,GACD,CACxB,CAAC;AACJ,CAAC;AAED,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"themed-page-container.js","sourceRoot":"","sources":["../../../../src/components/layout/themed-page-container/themed-page-container.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,oBAAoB,MAAM,wCAAwC,CAAC;AAE1E,OAAO,mBAAmB,MAAM,2CAA2C,CAAC;AAC5E,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AASjC;;;;;;;;;;GAUG;AACH,MAAM,UAAU,mBAAmB,CAAC,EAClC,QAAQ,EACR,GAAG,KAAK,EACiB;IACzB,MAAM,0BAA0B,GAAW,EAAE,CAC3C,YAAY,EACZ,mBAAmB,CACpB,CAAC;IAEF,MAAM,gCAAgC,GAAW,EAAE,CACjD,YAAY,EACZ,yBAAyB,EACzB,KAAK,CAAC,mCAAmC,CAC1C,CAAC;IAEF,MAAM,0BAA0B,GAC9B,OAAO,KAAK,CAAC,mBAAmB,KAAK,QAAQ;QAC3C,CAAC,CAAC,KAAK,CAAC,mBAAmB;QAC3B,CAAC,CAAC,0BAA0B,CAAC;IACjC,MAAM,yBAAyB,GAC7B,OAAO,KAAK,CAAC,yBAAyB,KAAK,QAAQ;QACjD,CAAC,CAAC,EAAE,CACA,KAAK,CAAC,yBAAyB,EAC/B,KAAK,CAAC,mCAAmC,CAC1C;QACH,CAAC,CAAC,gCAAgC,CAAC;IAEvC,OAAO,CACL,KAAC,oBAAoB,IACnB,SAAS,EAAE,EAAE,CACX,MAAM,EACN,2CAA2C,EAC3C,0BAA0B,CAC3B,EACD,mBAAmB,EAAE,SAAS,YAE9B,KAAC,mBAAmB,IAAC,SAAS,EAAE,yBAAyB,YACtD,QAAQ,GACW,GACD,CACxB,CAAC;AACJ,CAAC;AAED,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { type ButtonHTMLAttributes, type Ref, type ReactElement, type ReactNode } from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ export declare const comboboxVariantIds: readonly ["default", "outline", "ghost"];
4
+ export type ComboboxVariantId = (typeof comboboxVariantIds)[number];
5
+ export declare const comboboxSizeIds: readonly ["sm", "default", "lg"];
6
+ export type ComboboxSizeId = (typeof comboboxSizeIds)[number];
7
+ export declare const comboboxTriggerVariants: (props?: ({
8
+ variant?: "default" | "ghost" | "outline" | null | undefined;
9
+ size?: "sm" | "default" | "lg" | null | undefined;
10
+ fullWidth?: boolean | null | undefined;
11
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
+ export interface ComboboxOption {
13
+ value: string;
14
+ label: string;
15
+ description?: string;
16
+ keywords?: readonly string[];
17
+ disabled?: boolean;
18
+ icon?: ReactNode;
19
+ }
20
+ export interface ComboboxProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "value" | "onChange">, VariantProps<typeof comboboxTriggerVariants> {
21
+ options: readonly ComboboxOption[];
22
+ value?: string;
23
+ defaultValue?: string;
24
+ onValueChange?: (value: string) => void;
25
+ placeholder?: ReactNode;
26
+ searchPlaceholder?: string;
27
+ emptyMessage?: ReactNode;
28
+ contentClassName?: string;
29
+ triggerClassName?: string;
30
+ clearable?: boolean;
31
+ disabled?: boolean;
32
+ align?: "start" | "center" | "end";
33
+ ref?: Ref<HTMLButtonElement>;
34
+ }
35
+ export declare function Combobox({ options, value: controlledValue, defaultValue, onValueChange, placeholder, searchPlaceholder, emptyMessage, variant, size, fullWidth, contentClassName, triggerClassName, className, clearable, disabled, align, ref, ...buttonProps }: ComboboxProps): ReactElement;
36
+ export declare namespace Combobox {
37
+ var displayName: string;
38
+ }
@@ -0,0 +1,80 @@
1
+ "use client";
2
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useCallback, useId, useMemo, useState, } from "react";
4
+ import { cva } from "class-variance-authority";
5
+ import { Check, ChevronsUpDown, X } from "lucide-react";
6
+ import { cn } from "../../../lib/utils";
7
+ import { Popover, PopoverContent, PopoverTrigger, } from "../../ui/popover";
8
+ import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, } from "../../ui/command";
9
+ export const comboboxVariantIds = [
10
+ "default",
11
+ "outline",
12
+ "ghost",
13
+ ];
14
+ export const comboboxSizeIds = [
15
+ "sm",
16
+ "default",
17
+ "lg",
18
+ ];
19
+ export const comboboxTriggerVariants = cva("inline-flex items-center justify-between gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[placeholder=true]:text-muted-foreground", {
20
+ variants: {
21
+ variant: {
22
+ default: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
23
+ outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground",
24
+ ghost: "border border-transparent bg-transparent hover:bg-accent hover:text-accent-foreground",
25
+ },
26
+ size: {
27
+ sm: "h-8 px-2.5 text-xs",
28
+ default: "h-10 px-3 text-sm",
29
+ lg: "h-11 px-4 text-base",
30
+ },
31
+ fullWidth: {
32
+ true: "w-full",
33
+ false: "",
34
+ },
35
+ },
36
+ defaultVariants: {
37
+ variant: "default",
38
+ size: "default",
39
+ fullWidth: false,
40
+ },
41
+ });
42
+ export function Combobox({ options, value: controlledValue, defaultValue, onValueChange, placeholder = "Select an option...", searchPlaceholder = "Search...", emptyMessage = "No results found.", variant, size, fullWidth, contentClassName, triggerClassName, className, clearable = false, disabled = false, align = "start", ref, ...buttonProps }) {
43
+ const reactId = useId();
44
+ const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue);
45
+ const [open, setOpen] = useState(false);
46
+ const isControlled = controlledValue !== undefined;
47
+ const selectedValue = isControlled ? controlledValue : uncontrolledValue;
48
+ const selectedOption = useMemo(() => selectedValue !== undefined && selectedValue !== ""
49
+ ? options.find((option) => option.value === selectedValue)
50
+ : undefined, [options, selectedValue]);
51
+ const commitValue = useCallback((next) => {
52
+ if (!isControlled) {
53
+ setUncontrolledValue(next);
54
+ }
55
+ onValueChange?.(next);
56
+ }, [isControlled, onValueChange]);
57
+ const handleSelect = useCallback((next) => {
58
+ commitValue(next);
59
+ setOpen(false);
60
+ }, [commitValue]);
61
+ const handleClear = useCallback(() => {
62
+ commitValue("");
63
+ setOpen(false);
64
+ }, [commitValue]);
65
+ const showClear = clearable && !disabled && selectedOption !== undefined;
66
+ return (_jsxs(Popover, { open: open, onOpenChange: setOpen, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs("button", { ref: ref, type: "button", role: "combobox", "aria-expanded": open, "aria-controls": `${reactId}-listbox`, "data-placeholder": selectedOption === undefined ? "true" : "false", disabled: disabled, className: cn(comboboxTriggerVariants({ variant, size, fullWidth }), triggerClassName, className), ...buttonProps, children: [_jsx("span", { className: "flex min-w-0 flex-1 items-center gap-2 truncate text-left", children: selectedOption ? (_jsxs(_Fragment, { children: [selectedOption.icon ? (_jsx("span", { className: "inline-flex shrink-0 items-center", "aria-hidden": "true", children: selectedOption.icon })) : null, _jsx("span", { className: "truncate", children: selectedOption.label })] })) : (_jsx("span", { className: "truncate", children: placeholder })) }), _jsx(ChevronsUpDown, { className: "ml-2 h-4 w-4 shrink-0 opacity-50", "aria-hidden": "true" })] }) }), _jsx(PopoverContent, { align: align, className: cn("w-[var(--radix-popover-trigger-width)] min-w-[12rem] p-0", contentClassName), children: _jsxs(Command, { id: `${reactId}-listbox`, children: [_jsx(CommandInput, { placeholder: searchPlaceholder }), _jsxs(CommandList, { children: [_jsx(CommandEmpty, { children: emptyMessage }), showClear ? (_jsxs(_Fragment, { children: [_jsx(CommandGroup, { children: _jsxs(CommandItem, { value: "__combobox_clear__", keywords: ["clear", "reset", "none"], onSelect: () => {
67
+ handleClear();
68
+ }, className: "cursor-pointer gap-2 text-muted-foreground", children: [_jsx(X, { className: "h-4 w-4 shrink-0", "aria-hidden": "true" }), _jsx("span", { children: "Clear selection" })] }) }), _jsx(CommandSeparator, {})] })) : null, _jsx(CommandGroup, { children: options.map((option) => {
69
+ const isSelected = option.value === selectedValue;
70
+ const keywords = [
71
+ option.label,
72
+ ...(option.keywords ?? []),
73
+ ];
74
+ return (_jsxs(CommandItem, { value: option.value, keywords: keywords, disabled: option.disabled, onSelect: (currentValue) => {
75
+ handleSelect(currentValue === selectedValue ? "" : currentValue);
76
+ }, className: "cursor-pointer gap-2", children: [_jsx(Check, { className: cn("h-4 w-4 shrink-0", isSelected ? "opacity-100" : "opacity-0"), "aria-hidden": "true" }), option.icon ? (_jsx("span", { className: "inline-flex shrink-0 items-center", "aria-hidden": "true", children: option.icon })) : null, _jsxs("div", { className: "flex min-w-0 flex-1 flex-col", children: [_jsx("span", { className: "truncate", children: option.label }), option.description ? (_jsx("span", { className: "truncate text-xs text-muted-foreground", children: option.description })) : null] })] }, option.value));
77
+ }) })] })] }) })] }));
78
+ }
79
+ Combobox.displayName = "Combobox";
80
+ //# sourceMappingURL=combobox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"combobox.js","sourceRoot":"","sources":["../../../../src/components/ui/combobox/combobox.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EACL,WAAW,EACX,KAAK,EACL,OAAO,EACP,QAAQ,GAKT,MAAM,OAAO,CAAC;AACf,OAAO,EAA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CAAC,CAAC,CACb,eACE,SAAS,EAAC,mCAAmC,iBACjC,MAAM,YAEjB,MAAM,CAAC,IAAI,GACP,CACR,CAAC,CAAC,CAAC,IAAI,EACR,eAAK,SAAS,EAAC,8BAA8B,aAC3C,eAAM,SAAS,EAAC,UAAU,YAAE,MAAM,CAAC,KAAK,GAAQ,EAC/C,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CACpB,eAAM,SAAS,EAAC,wCAAwC,YACrD,MAAM,CAAC,WAAW,GACd,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,KAjCD,MAAM,CAAC,KAAK,CAkCL,CACf,CAAC;oCACJ,CAAC,CAAC,GACW,IACH,IACN,GACK,IACT,CACX,CAAC;AACJ,CAAC;AACD,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Combobox, comboboxTriggerVariants, comboboxVariantIds, comboboxSizeIds, } from "./combobox";
2
+ export type { ComboboxProps, ComboboxOption, ComboboxVariantId, ComboboxSizeId, } from "./combobox";
3
+ export { Combobox as default } from "./combobox";
@@ -0,0 +1,3 @@
1
+ export { Combobox, comboboxTriggerVariants, comboboxVariantIds, comboboxSizeIds, } from "./combobox";
2
+ export { Combobox as default } from "./combobox";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ui/combobox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,uBAAuB,EACvB,kBAAkB,EAClB,eAAe,GAChB,MAAM,YAAY,CAAC;AAOpB,OAAO,EAAE,QAAQ,IAAI,OAAO,EAAE,MAAM,YAAY,CAAC"}
@@ -50,6 +50,8 @@ export * from "./popover";
50
50
  export type * from "./popover";
51
51
  export * from "./command";
52
52
  export type * from "./command";
53
+ export * from "./combobox";
54
+ export type * from "./combobox";
53
55
  export * from "./table";
54
56
  export type * from "./table";
55
57
  export * from "./datatable";
@@ -24,6 +24,7 @@ export * from "./navigation-menu";
24
24
  export * from "./dialog";
25
25
  export * from "./popover";
26
26
  export * from "./command";
27
+ export * from "./combobox";
27
28
  export * from "./table";
28
29
  export * from "./datatable";
29
30
  export * from "./checkbox";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AAGzB,cAAc,aAAa,CAAC;AAG5B,cAAc,SAAS,CAAC;AAGxB,cAAc,WAAW,CAAC;AAG1B,cAAc,SAAS,CAAC;AAGxB,cAAc,mBAAmB,CAAC;AAGlC,cAAc,0BAA0B,CAAC;AAGzC,cAAc,UAAU,CAAC;AAGzB,cAAc,SAAS,CAAC;AAGxB,cAAc,kBAAkB,CAAC;AAGjC,cAAc,aAAa,CAAC;AAG5B,cAAc,kCAAkC,CAAC;AAGjD,cAAc,cAAc,CAAC;AAG7B,cAAc,SAAS,CAAC;AAGxB,cAAc,SAAS,CAAC;AAExB,cAAc,WAAW,CAAC;AAG1B,cAAc,YAAY,CAAC;AAG3B,cAAc,QAAQ,CAAC;AAGvB,cAAc,QAAQ,CAAC;AAGvB,cAAc,aAAa,CAAC;AAG5B,cAAc,iBAAiB,CAAC;AAGhC,cAAc,WAAW,CAAC;AAG1B,cAAc,mBAAmB,CAAC;AAGlC,cAAc,UAAU,CAAC;AAGzB,cAAc,WAAW,CAAC;AAG1B,cAAc,WAAW,CAAC;AAG1B,cAAc,SAAS,CAAC;AAGxB,cAAc,aAAa,CAAC;AAG5B,cAAc,YAAY,CAAC;AAG3B,cAAc,YAAY,CAAC;AAG3B,cAAc,cAAc,CAAC;AAG7B,cAAc,eAAe,CAAC;AAG9B,cAAc,YAAY,CAAC;AAG3B,cAAc,2BAA2B,CAAC;AAG1C,cAAc,kBAAkB,CAAC;AAGjC,cAAc,gBAAgB,CAAC;AAG/B,cAAc,eAAe,CAAC;AAG9B,cAAc,WAAW,CAAC;AAG1B,cAAc,gBAAgB,CAAC;A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cAAc,YAAY,CAAC;AAG3B,cAAc,UAAU,CAAC;AAGzB,cAAc,gBAAgB,CAAC;AAG/B,cAAc,cAAc,CAAC;AAG7B,cAAc,qBAAqB,CAAC;AAGpC,cAAc,WAAW,CAAC;AAG1B,cAAc,UAAU,CAAC;AAGzB,cAAc,QAAQ,CAAC;AAGvB,cAAc,cAAc,CAAC;AAG7B,cAAc,iBAAiB,CAAC"}
@@ -11,7 +11,7 @@ import { cn } from "../../../lib/utils";
11
11
  export function ThemedPageBackground({ children, ...props }) {
12
12
  const backgroundClassNames = [
13
13
  "schemavaults-themed-page-background",
14
- "relative min-h-full w-full",
14
+ "relative min-h-full w-full shrink-0",
15
15
  "bg-schemavaults-brand-blue bg-gradient-to-b from-schemavaults-brand-red to-transparent",
16
16
  ];
17
17
  if (typeof props.backgroundClassName === "string") {
@@ -1 +1 @@
1
- {"version":3,"file":"themed-page-background.js","sourceRoot":"","sources":["../../../../src/components/ui/themed-page-background/themed-page-background.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AASjC;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,EACnC,QAAQ,EACR,GAAG,KAAK,EACkB;IAC1B,MAAM,oBAAoB,GAAa;QACrC,qCAAqC;QACrC,4BAA4B;QAC5B,wFAAwF;KACzF,CAAC;IACF,IAAI,OAAO,KAAK,CAAC,mBAAmB,KAAK,QAAQ,EAAE,CAAC;QAClD,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACvD,CAAC;IAED,OAAO,CACL,cAAK,SAAS,EAAE,oBAAoB,CAAC,IAAI,CAAC,GAAG,CAAC,YAC5C,cACE,SAAS,EAAE,EAAE,CACX,sDAAsD,EACtD,eAAe,EACf,mBAAmB,EACnB,KAAK,CAAC,SAAS,CAChB,YAEA,QAAQ,GACL,GACF,CACP,CAAC;AACJ,CAAC;AAED,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"themed-page-background.js","sourceRoot":"","sources":["../../../../src/components/ui/themed-page-background/themed-page-background.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AASjC;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,EACnC,QAAQ,EACR,GAAG,KAAK,EACkB;IAC1B,MAAM,oBAAoB,GAAa;QACrC,qCAAqC;QACrC,qCAAqC;QACrC,wFAAwF;KACzF,CAAC;IACF,IAAI,OAAO,KAAK,CAAC,mBAAmB,KAAK,QAAQ,EAAE,CAAC;QAClD,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACvD,CAAC;IAED,OAAO,CACL,cAAK,SAAS,EAAE,oBAAoB,CAAC,IAAI,CAAC,GAAG,CAAC,YAC5C,cACE,SAAS,EAAE,EAAE,CACX,sDAAsD,EACtD,eAAe,EACf,mBAAmB,EACnB,KAAK,CAAC,SAAS,CAChB,YAEA,QAAQ,GACL,GACF,CACP,CAAC;AACJ,CAAC;AAED,eAAe,oBAAoB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schemavaults/ui",
3
- "version": "0.35.0",
3
+ "version": "0.37.1",
4
4
  "private": false,
5
5
  "license": "UNLICENSED",
6
6
  "description": "React.js UI components for SchemaVaults frontend applications",