@conscia-labs/design-system 1.0.2 → 1.0.3

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.
@@ -65,7 +65,7 @@ import {
65
65
  TooltipTrigger,
66
66
  index_parts_exports,
67
67
  useRender
68
- } from "./chunk-YAJUTCGD.js";
68
+ } from "./chunk-HAJMOT3P.js";
69
69
  import {
70
70
  cn
71
71
  } from "./chunk-JU5DQXFC.js";
@@ -2278,4 +2278,4 @@ export {
2278
2278
  WorkbenchInspectorSection,
2279
2279
  IdentityRow
2280
2280
  };
2281
- //# sourceMappingURL=chunk-WEI3PU4A.js.map
2281
+ //# sourceMappingURL=chunk-LPUWW7XF.js.map
@@ -64,6 +64,7 @@ import {
64
64
  isHTMLElement,
65
65
  matchesFocusVisible,
66
66
  mergeCleanups,
67
+ overlayLayers,
67
68
  ownerDocument,
68
69
  popupStateMapping,
69
70
  popupStoreSelectors,
@@ -117,7 +118,7 @@ import {
117
118
  useValueChanged,
118
119
  visuallyHidden,
119
120
  visuallyHiddenInput
120
- } from "./chunk-YAJUTCGD.js";
121
+ } from "./chunk-HAJMOT3P.js";
121
122
  import {
122
123
  cn
123
124
  } from "./chunk-JU5DQXFC.js";
@@ -1011,6 +1012,7 @@ function FormSelect({
1011
1012
  defaultValue,
1012
1013
  required,
1013
1014
  disabled,
1015
+ modal,
1014
1016
  placeholder,
1015
1017
  options,
1016
1018
  className,
@@ -1036,6 +1038,7 @@ function FormSelect({
1036
1038
  value: toSelectValue(currentValue),
1037
1039
  required,
1038
1040
  disabled,
1041
+ modal,
1039
1042
  onValueChange: handleValueChange,
1040
1043
  children: [
1041
1044
  /* @__PURE__ */ jsx11(SelectTrigger, { id, "aria-label": ariaLabel, className: triggerClassName, children: /* @__PURE__ */ jsx11(SelectValue, { placeholder }) }),
@@ -2004,10 +2007,10 @@ function PopoverPortal3({ ...props }) {
2004
2007
  return /* @__PURE__ */ jsx15(index_parts_exports3.Portal, { "data-slot": "popover-portal", ...props });
2005
2008
  }
2006
2009
  function PopoverPositioner3({ className, ...props }) {
2007
- return /* @__PURE__ */ jsx15(index_parts_exports3.Positioner, { "data-slot": "popover-positioner", className, ...props });
2010
+ return /* @__PURE__ */ jsx15(index_parts_exports3.Positioner, { "data-slot": "popover-positioner", className: cn(overlayLayers.popup, className), ...props });
2008
2011
  }
2009
2012
  function PopoverContent({ className, children, ...props }) {
2010
- return /* @__PURE__ */ jsx15(PopoverPortal3, { children: /* @__PURE__ */ jsx15(PopoverPositioner3, { children: /* @__PURE__ */ jsx15(index_parts_exports3.Popup, { "data-slot": "popover-content", className: cn("z-50 w-72 rounded-md border bg-surface-floating p-4 text-text-primary shadow-[var(--ds-shadow-floating)] outline-none data-open:animate-in data-closed:animate-out", className), ...props, children }) }) });
2013
+ return /* @__PURE__ */ jsx15(PopoverPortal3, { children: /* @__PURE__ */ jsx15(PopoverPositioner3, { children: /* @__PURE__ */ jsx15(index_parts_exports3.Popup, { "data-slot": "popover-content", className: cn("w-72 rounded-md border bg-surface-floating p-4 text-text-primary shadow-[var(--ds-shadow-floating)] outline-none data-open:animate-in data-closed:animate-out", className), ...props, children }) }) });
2011
2014
  }
2012
2015
  function PopoverArrow3({ ...props }) {
2013
2016
  return /* @__PURE__ */ jsx15(index_parts_exports3.Arrow, { "data-slot": "popover-arrow", ...props });
@@ -2026,7 +2029,7 @@ function PopoverClose3({ ...props }) {
2026
2029
  import * as React24 from "react";
2027
2030
  import { Check, ChevronsUpDown, X } from "lucide-react";
2028
2031
  import { jsx as jsx16, jsxs as jsxs7 } from "react/jsx-runtime";
2029
- function SearchableSelect({ id, name, value = "", options, onValueChange, placeholder = "Select an option", searchPlaceholder = "Search...", emptyMessage = "No matching options.", disabled = false, clearable = false, clearLabel = "Clear selection", optionsLabel, className, "aria-label": ariaLabel }) {
2032
+ function SearchableSelect({ id, name, value = "", options, onValueChange, placeholder = "Select an option", searchPlaceholder = "Search...", emptyMessage = "No matching options.", disabled = false, clearable = false, clearLabel = "Clear selection", optionsLabel, className, modal = false, "aria-label": ariaLabel }) {
2030
2033
  const selected = options.find((option) => option.value === value) ?? null;
2031
2034
  const items = React24.useMemo(() => options.map((option) => option.value), [options]);
2032
2035
  const [open, setOpen] = React24.useState(false);
@@ -2035,7 +2038,7 @@ function SearchableSelect({ id, name, value = "", options, onValueChange, placeh
2035
2038
  React24.useLayoutEffect(() => {
2036
2039
  if (!open && inputRef.current) inputRef.current.value = selected?.label ?? "";
2037
2040
  }, [open, selected?.label]);
2038
- return /* @__PURE__ */ jsx16("div", { "data-slot": "searchable-select", className: cn("relative min-w-0", className), children: /* @__PURE__ */ jsxs7(index_parts_exports.Root, { items, autoHighlight: true, open, onOpenChange: (nextOpen) => {
2041
+ return /* @__PURE__ */ jsx16("div", { "data-slot": "searchable-select", className: cn("relative min-w-0", className), children: /* @__PURE__ */ jsxs7(index_parts_exports.Root, { items, autoHighlight: true, modal, open, onOpenChange: (nextOpen) => {
2039
2042
  setOpen(nextOpen);
2040
2043
  if (!nextOpen) setInputValue(selected?.label ?? "");
2041
2044
  }, value, inputValue: open ? inputValue : selected?.label ?? "", onInputValueChange: setInputValue, onValueChange: (next) => {
@@ -2058,7 +2061,7 @@ function SearchableSelect({ id, name, value = "", options, onValueChange, placeh
2058
2061
  clearable && selected ? /* @__PURE__ */ jsx16(IconButton, { type: "button", size: "sm", variant: "ghost", "aria-label": clearLabel, onClick: () => onValueChange(""), className: "absolute right-7", children: /* @__PURE__ */ jsx16(X, { className: "size-4" }) }) : null,
2059
2062
  /* @__PURE__ */ jsx16(index_parts_exports.Trigger, { "aria-label": ariaLabel ?? placeholder, className: "absolute right-1 inline-flex size-8 items-center justify-center rounded-sm text-text-supporting outline-none focus-visible:ring-2 focus-visible:ring-focus", children: /* @__PURE__ */ jsx16(ChevronsUpDown, { className: "size-4" }) })
2060
2063
  ] }),
2061
- /* @__PURE__ */ jsx16(index_parts_exports.Portal, { children: /* @__PURE__ */ jsx16(index_parts_exports.Positioner, { className: "z-50 w-[var(--anchor-width)]", children: /* @__PURE__ */ jsxs7(index_parts_exports.Popup, { className: "mt-1 max-h-72 overflow-auto rounded-md border bg-surface-floating p-1 text-text-primary shadow-[var(--ds-shadow-floating)] outline-none", children: [
2064
+ /* @__PURE__ */ jsx16(index_parts_exports.Portal, { children: /* @__PURE__ */ jsx16(index_parts_exports.Positioner, { "data-slot": "searchable-select-positioner", className: cn(overlayLayers.popup, "w-[var(--anchor-width)]"), children: /* @__PURE__ */ jsxs7(index_parts_exports.Popup, { className: "mt-1 max-h-72 overflow-auto rounded-md border bg-surface-floating p-1 text-text-primary shadow-[var(--ds-shadow-floating)] outline-none", children: [
2062
2065
  /* @__PURE__ */ jsx16(index_parts_exports.Empty, { className: "px-2 py-3 text-sm text-text-supporting", children: emptyMessage }),
2063
2066
  /* @__PURE__ */ jsx16(index_parts_exports.List, { "aria-label": optionsLabel ?? "Options", children: (optionValue) => {
2064
2067
  const option = options.find((candidate) => candidate.value === optionValue);
@@ -3692,7 +3695,8 @@ function ToastViewport3({ className, placement = "bottom-end", ...props }) {
3692
3695
  {
3693
3696
  "data-slot": "toast-viewport",
3694
3697
  className: cn(
3695
- "pointer-events-none fixed z-[100] flex w-[min(24rem,calc(100vw-2rem))] max-w-[calc(100vw-2rem)] flex-col gap-2 p-4 outline-none",
3698
+ "pointer-events-none fixed flex w-[min(24rem,calc(100vw-2rem))] max-w-[calc(100vw-2rem)] flex-col gap-2 p-4 outline-none",
3699
+ overlayLayers.transient,
3696
3700
  placement === "bottom-end" && "right-0 bottom-0 items-end",
3697
3701
  placement === "bottom-start" && "bottom-0 left-0 items-start",
3698
3702
  placement === "top-end" && "top-0 right-0 items-end",
@@ -3831,4 +3835,4 @@ export {
3831
3835
  ToastAction3 as ToastAction,
3832
3836
  ToastClose3 as ToastClose
3833
3837
  };
3834
- //# sourceMappingURL=chunk-H5ORBU5O.js.map
3838
+ //# sourceMappingURL=chunk-QP3SEL2Z.js.map