@rebasepro/ui 0.1.2 → 0.2.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/index.umd.js CHANGED
@@ -1,6 +1,6 @@
1
1
  (function(global, factory) {
2
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react/jsx-runtime"), require("react-compiler-runtime"), require("clsx"), require("tailwind-merge"), require("react"), require("@radix-ui/react-collapsible"), require("lucide-react"), require("@radix-ui/react-checkbox"), require("@radix-ui/react-tooltip"), require("@radix-ui/react-dialog"), require("@radix-ui/react-visually-hidden"), require("react-dropzone"), require("@radix-ui/react-label"), require("fast-equals"), require("markdown-it"), require("@radix-ui/react-dropdown-menu"), require("@radix-ui/react-menubar"), require("@radix-ui/react-popover"), require("cmdk"), require("@radix-ui/react-separator"), require("@radix-ui/react-radio-group"), require("@radix-ui/react-select"), require("@radix-ui/react-slider"), require("react-dom"), require("@radix-ui/react-tabs"), require("react-window"), require("react-use-measure"), require("@dnd-kit/sortable"), require("@dnd-kit/core")) : typeof define === "function" && define.amd ? define(["exports", "react/jsx-runtime", "react-compiler-runtime", "clsx", "tailwind-merge", "react", "@radix-ui/react-collapsible", "lucide-react", "@radix-ui/react-checkbox", "@radix-ui/react-tooltip", "@radix-ui/react-dialog", "@radix-ui/react-visually-hidden", "react-dropzone", "@radix-ui/react-label", "fast-equals", "markdown-it", "@radix-ui/react-dropdown-menu", "@radix-ui/react-menubar", "@radix-ui/react-popover", "cmdk", "@radix-ui/react-separator", "@radix-ui/react-radio-group", "@radix-ui/react-select", "@radix-ui/react-slider", "react-dom", "@radix-ui/react-tabs", "react-window", "react-use-measure", "@dnd-kit/sortable", "@dnd-kit/core"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global["Rebase UI"] = {}, global.jsxRuntime, global.reactCompilerRuntime, global.clsx, global.tailwindMerge, global.React, global.Collapsible, global.lucideReact, global.CheckboxPrimitive, global.TooltipPrimitive, global.DialogPrimitive, global.VisuallyHidden, global.reactDropzone, global.LabelPrimitive, global.fastEquals, global.MarkdownIt, global.DropdownMenu, global.MenubarPrimitive, global.PopoverPrimitive, global.cmdk, global.SeparatorPrimitive, global.RadioGroupPrimitive, global.SelectPrimitive, global.SliderPrimitive, global.ReactDOM, global.TabsPrimitive, global.reactWindow, global.useMeasure, global.sortable, global.core));
3
- })(this, (function(exports2, jsxRuntime, reactCompilerRuntime, clsx, tailwindMerge, React, Collapsible, lucideReact, CheckboxPrimitive, TooltipPrimitive, DialogPrimitive, VisuallyHidden, reactDropzone, LabelPrimitive, fastEquals, MarkdownIt, DropdownMenu, MenubarPrimitive, PopoverPrimitive, cmdk, SeparatorPrimitive, RadioGroupPrimitive, SelectPrimitive, SliderPrimitive, ReactDOM, TabsPrimitive, reactWindow, useMeasure, sortable, core) {
2
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react/jsx-runtime"), require("react-compiler-runtime"), require("clsx"), require("tailwind-merge"), require("react"), require("@radix-ui/react-collapsible"), require("lucide-react"), require("@radix-ui/react-checkbox"), require("@radix-ui/react-tooltip"), require("@radix-ui/react-dialog"), require("@radix-ui/react-visually-hidden"), require("react-dropzone"), require("@radix-ui/react-label"), require("fast-equals"), require("markdown-it"), require("@radix-ui/react-dropdown-menu"), require("@radix-ui/react-menubar"), require("@radix-ui/react-popover"), require("cmdk"), require("@radix-ui/react-separator"), require("@radix-ui/react-radio-group"), require("@radix-ui/react-select"), require("@radix-ui/react-slider"), require("react-dom"), require("@radix-ui/react-tabs"), require("react-window"), require("react-use-measure"), require("@dnd-kit/sortable"), require("@radix-ui/react-portal"), require("@radix-ui/react-slot"), require("@dnd-kit/core")) : typeof define === "function" && define.amd ? define(["exports", "react/jsx-runtime", "react-compiler-runtime", "clsx", "tailwind-merge", "react", "@radix-ui/react-collapsible", "lucide-react", "@radix-ui/react-checkbox", "@radix-ui/react-tooltip", "@radix-ui/react-dialog", "@radix-ui/react-visually-hidden", "react-dropzone", "@radix-ui/react-label", "fast-equals", "markdown-it", "@radix-ui/react-dropdown-menu", "@radix-ui/react-menubar", "@radix-ui/react-popover", "cmdk", "@radix-ui/react-separator", "@radix-ui/react-radio-group", "@radix-ui/react-select", "@radix-ui/react-slider", "react-dom", "@radix-ui/react-tabs", "react-window", "react-use-measure", "@dnd-kit/sortable", "@radix-ui/react-portal", "@radix-ui/react-slot", "@dnd-kit/core"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global["Rebase UI"] = {}, global.jsxRuntime, global.reactCompilerRuntime, global.clsx, global.tailwindMerge, global.React, global.Collapsible, global.lucideReact, global.CheckboxPrimitive, global.TooltipPrimitive, global.DialogPrimitive, global.VisuallyHidden, global.reactDropzone, global.LabelPrimitive, global.fastEquals, global.MarkdownIt, global.DropdownMenu, global.MenubarPrimitive, global.PopoverPrimitive, global.cmdk, global.SeparatorPrimitive, global.RadioGroupPrimitive, global.SelectPrimitive, global.SliderPrimitive, global.ReactDOM, global.TabsPrimitive, global.reactWindow, global.useMeasure, global.sortable, global.reactPortal, global.reactSlot, global.core));
3
+ })(this, (function(exports2, jsxRuntime, reactCompilerRuntime, clsx, tailwindMerge, React, Collapsible, lucideReact, CheckboxPrimitive, TooltipPrimitive, DialogPrimitive, VisuallyHidden, reactDropzone, LabelPrimitive, fastEquals, MarkdownIt, DropdownMenu, MenubarPrimitive, PopoverPrimitive, cmdk, SeparatorPrimitive, RadioGroupPrimitive, SelectPrimitive, SliderPrimitive, ReactDOM, TabsPrimitive, reactWindow, useMeasure, sortable, reactPortal, reactSlot, core) {
4
4
  "use strict";"use client";
5
5
 
6
6
  function _interopNamespaceDefault(e) {
@@ -35,6 +35,7 @@
35
35
  const SliderPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(SliderPrimitive);
36
36
  const ReactDOM__namespace = /* @__PURE__ */ _interopNamespaceDefault(ReactDOM);
37
37
  const TabsPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(TabsPrimitive);
38
+ const reactPortal__namespace = /* @__PURE__ */ _interopNamespaceDefault(reactPortal);
38
39
  function cls(...classes) {
39
40
  return tailwindMerge.twMerge(clsx.clsx(classes));
40
41
  }
@@ -1579,7 +1580,7 @@
1579
1580
  return this.props.children;
1580
1581
  }
1581
1582
  }
1582
- const sizeClasses$1 = {
1583
+ const sizeClasses$2 = {
1583
1584
  large: "w-6 h-6 rounded flex items-center justify-center",
1584
1585
  medium: "w-5 h-5 rounded flex items-center justify-center",
1585
1586
  small: "w-4 h-4 rounded flex items-center justify-center",
@@ -1638,7 +1639,7 @@
1638
1639
  } else {
1639
1640
  t12 = $[4];
1640
1641
  }
1641
- const t13 = sizeClasses$1[size];
1642
+ const t13 = sizeClasses$2[size];
1642
1643
  const t14 = disabled ? indeterminate || isChecked ? "bg-surface-accent-400 dark:bg-surface-accent-600" : "bg-surface-accent-400 dark:bg-surface-accent-600" : indeterminate || isChecked ? colorClasses$2[color] : "bg-white dark:bg-surface-900";
1643
1644
  const t15 = indeterminate || isChecked ? "text-surface-accent-100 dark:text-surface-accent-900" : "";
1644
1645
  const t16 = disabled ? "border-transparent" : indeterminate || isChecked ? "border-transparent" : "border-surface-accent-800 dark:border-surface-accent-500";
@@ -1707,11 +1708,12 @@
1707
1708
  return typeof document !== "undefined" && document.documentElement.classList.contains("dark");
1708
1709
  }
1709
1710
  function Chip(t0) {
1710
- const $ = reactCompilerRuntime.c(18);
1711
+ const $ = reactCompilerRuntime.c(19);
1711
1712
  const {
1712
1713
  children,
1713
1714
  colorScheme,
1714
1715
  error,
1716
+ outlined,
1715
1717
  onClick,
1716
1718
  icon,
1717
1719
  size: t1,
@@ -1729,57 +1731,102 @@
1729
1731
  }
1730
1732
  const usedColorScheme = t2;
1731
1733
  const dark = isDarkMode();
1732
- const bgColor = usedColorScheme ? dark && usedColorScheme.darkColor ? usedColorScheme.darkColor : usedColorScheme.color : void 0;
1733
- const textColor = usedColorScheme ? dark && usedColorScheme.darkText ? usedColorScheme.darkText : usedColorScheme.text : void 0;
1734
+ const getRgba = _temp$5;
1735
+ let textColor;
1736
+ let bgColor;
1737
+ let border = "";
1738
+ if (error) {
1739
+ textColor = dark ? "#f87171" : "#dc2626";
1740
+ } else {
1741
+ if (usedColorScheme) {
1742
+ textColor = dark && usedColorScheme.darkText ? usedColorScheme.darkText : usedColorScheme.text;
1743
+ } else {
1744
+ textColor = dark ? "#d4d4d4" : "#404040";
1745
+ }
1746
+ }
1747
+ if (outlined) {
1748
+ let t32;
1749
+ if ($[2] !== textColor) {
1750
+ t32 = getRgba(textColor, dark ? 0.12 : 0.06);
1751
+ $[2] = textColor;
1752
+ $[3] = t32;
1753
+ } else {
1754
+ t32 = $[3];
1755
+ }
1756
+ bgColor = t32;
1757
+ border = `1px solid ${getRgba(textColor, dark ? 0.25 : 0.18)}`;
1758
+ } else {
1759
+ if (error) {
1760
+ bgColor = dark ? "rgba(220, 38, 38, 0.2)" : "rgba(239, 68, 68, 0.15)";
1761
+ border = `1px solid ${dark ? "rgba(220, 38, 38, 0.4)" : "rgba(239, 68, 68, 0.3)"}`;
1762
+ } else {
1763
+ if (usedColorScheme) {
1764
+ bgColor = dark && usedColorScheme.darkColor ? usedColorScheme.darkColor : usedColorScheme.color;
1765
+ } else {
1766
+ bgColor = dark ? "#1f1f1f" : "#f4f4f5";
1767
+ border = `1px solid ${dark ? "#2e2e30" : "#e4e4e7"}`;
1768
+ }
1769
+ }
1770
+ }
1734
1771
  const t3 = onClick ? "cursor-pointer hover:bg-surface-accent-300 dark:hover:bg-surface-accent-700" : "";
1735
1772
  const t4 = sizeClassNames[size];
1736
- const t5 = error || !usedColorScheme ? "bg-surface-accent-200 dark:bg-surface-accent-800 text-surface-accent-800 dark:text-white" : "";
1737
- const t6 = error ? "text-red-500 dark:text-red-400" : "";
1738
- let t7;
1739
- if ($[2] !== className || $[3] !== t3 || $[4] !== t4 || $[5] !== t5 || $[6] !== t6) {
1740
- t7 = cls("rounded-lg max-w-full w-max h-fit font-regular inline-flex gap-1", "text-ellipsis", "items-center", t3, t4, t5, t6, className);
1741
- $[2] = className;
1742
- $[3] = t3;
1743
- $[4] = t4;
1744
- $[5] = t5;
1745
- $[6] = t6;
1746
- $[7] = t7;
1773
+ let t5;
1774
+ if ($[4] !== className || $[5] !== t3 || $[6] !== t4) {
1775
+ t5 = cls("rounded-lg max-w-full w-max h-fit font-regular inline-flex gap-1", "text-ellipsis", "items-center", t3, t4, className);
1776
+ $[4] = className;
1777
+ $[5] = t3;
1778
+ $[6] = t4;
1779
+ $[7] = t5;
1747
1780
  } else {
1748
- t7 = $[7];
1781
+ t5 = $[7];
1749
1782
  }
1750
- const t8 = error ? void 0 : bgColor;
1751
- const t9 = error ? void 0 : textColor;
1752
- let t10;
1753
- if ($[8] !== style || $[9] !== t8 || $[10] !== t9) {
1754
- t10 = {
1755
- backgroundColor: t8,
1756
- color: t9,
1783
+ const t6 = border || void 0;
1784
+ let t7;
1785
+ if ($[8] !== bgColor || $[9] !== style || $[10] !== t6 || $[11] !== textColor) {
1786
+ t7 = {
1787
+ backgroundColor: bgColor,
1788
+ color: textColor,
1789
+ border: t6,
1757
1790
  overflow: "hidden",
1758
1791
  ...style
1759
1792
  };
1760
- $[8] = style;
1761
- $[9] = t8;
1762
- $[10] = t9;
1763
- $[11] = t10;
1793
+ $[8] = bgColor;
1794
+ $[9] = style;
1795
+ $[10] = t6;
1796
+ $[11] = textColor;
1797
+ $[12] = t7;
1764
1798
  } else {
1765
- t10 = $[11];
1799
+ t7 = $[12];
1766
1800
  }
1767
- let t11;
1768
- if ($[12] !== children || $[13] !== icon || $[14] !== onClick || $[15] !== t10 || $[16] !== t7) {
1769
- t11 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: t7, onClick, style: t10, children: [
1801
+ let t8;
1802
+ if ($[13] !== children || $[14] !== icon || $[15] !== onClick || $[16] !== t5 || $[17] !== t7) {
1803
+ t8 = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: t5, onClick, style: t7, children: [
1770
1804
  children,
1771
1805
  icon
1772
1806
  ] });
1773
- $[12] = children;
1774
- $[13] = icon;
1775
- $[14] = onClick;
1776
- $[15] = t10;
1777
- $[16] = t7;
1778
- $[17] = t11;
1807
+ $[13] = children;
1808
+ $[14] = icon;
1809
+ $[15] = onClick;
1810
+ $[16] = t5;
1811
+ $[17] = t7;
1812
+ $[18] = t8;
1779
1813
  } else {
1780
- t11 = $[17];
1814
+ t8 = $[18];
1781
1815
  }
1782
- return t11;
1816
+ return t8;
1817
+ }
1818
+ function _temp$5(hex, alpha) {
1819
+ if (!hex || !hex.startsWith("#")) {
1820
+ return hex;
1821
+ }
1822
+ let color = hex.slice(1);
1823
+ if (color.length === 3) {
1824
+ color = color[0] + color[0] + color[1] + color[1] + color[2] + color[2];
1825
+ }
1826
+ const r = parseInt(color.slice(0, 2), 16);
1827
+ const g = parseInt(color.slice(2, 4), 16);
1828
+ const b = parseInt(color.slice(4, 6), 16);
1829
+ return `rgba(${r}, ${g}, ${b}, ${alpha})`;
1783
1830
  }
1784
1831
  const Tooltip = (t0) => {
1785
1832
  const $ = reactCompilerRuntime.c(30);
@@ -2043,7 +2090,7 @@
2043
2090
  const buttonClasses = "hover:bg-surface-accent-200 hover:bg-opacity-75 hover:bg-surface-accent-200/75 dark:hover:bg-surface-accent-800 hover:scale-[1.04] active:scale-95 transition-transform";
2044
2091
  const baseClasses = "inline-flex items-center justify-center p-2 text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150";
2045
2092
  const colorClasses$1 = "text-surface-accent-500 visited:text-surface-accent-500 dark:text-surface-accent-300 dark:visited:text-surface-300";
2046
- const sizeClasses = {
2093
+ const sizeClasses$1 = {
2047
2094
  medium: "w-10 !h-10 min-w-10 min-h-10",
2048
2095
  small: "w-8 !h-8 min-w-8 min-h-8",
2049
2096
  smallest: "w-6 !h-6 min-w-6 min-h-6",
@@ -2110,7 +2157,7 @@
2110
2157
  const t8 = disabled ? "opacity-50 pointer-events-none" : "cursor-pointer";
2111
2158
  const t9 = toggled ? "outline outline-2 outline-primary" : "";
2112
2159
  const t10 = shapeClasses[shape];
2113
- const t11 = sizeClasses[size];
2160
+ const t11 = sizeClasses$1[size];
2114
2161
  let t12;
2115
2162
  if ($[10] !== bgClasses || $[11] !== className || $[12] !== t10 || $[13] !== t11 || $[14] !== t8 || $[15] !== t9) {
2116
2163
  t12 = cls(t8, t9, "text-inherit dark:text-inherit", colorClasses$1, bgClasses, baseClasses, buttonClasses, t10, t11, className);
@@ -2430,7 +2477,7 @@
2430
2477
  return () => clearTimeout(timeout);
2431
2478
  } else {
2432
2479
  setDisplayed(true);
2433
- return _temp$3;
2480
+ return _temp$4;
2434
2481
  }
2435
2482
  };
2436
2483
  t7 = [open];
@@ -2577,7 +2624,7 @@
2577
2624
  }
2578
2625
  return t28;
2579
2626
  };
2580
- function _temp$3() {
2627
+ function _temp$4() {
2581
2628
  }
2582
2629
  function DialogActions(t0) {
2583
2630
  const $ = reactCompilerRuntime.c(7);
@@ -3071,6 +3118,53 @@
3071
3118
  }
3072
3119
  return t16;
3073
3120
  }
3121
+ const sizeClasses = {
3122
+ small: "px-2 py-0.5 text-xs",
3123
+ medium: "px-2.5 py-1 text-xs"
3124
+ };
3125
+ function FilterChip(t0) {
3126
+ const $ = reactCompilerRuntime.c(11);
3127
+ const {
3128
+ children,
3129
+ active: t1,
3130
+ onClick,
3131
+ icon,
3132
+ size: t2,
3133
+ className,
3134
+ disabled: t3
3135
+ } = t0;
3136
+ const active = t1 === void 0 ? false : t1;
3137
+ const size = t2 === void 0 ? "medium" : t2;
3138
+ const disabled = t3 === void 0 ? false : t3;
3139
+ const t4 = sizeClasses[size];
3140
+ let t5;
3141
+ if ($[0] !== active || $[1] !== className || $[2] !== disabled || $[3] !== t4) {
3142
+ t5 = cls("inline-flex items-center gap-1 rounded-full", "font-medium whitespace-nowrap select-none shrink-0", "transition-all duration-150", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50", t4, active ? "bg-primary/12 text-primary dark:bg-primary/20 dark:text-primary shadow-[inset_0_0_0_1.5px_var(--color-primary)]" : cls("bg-surface-accent-100 text-text-secondary dark:bg-surface-accent-800 dark:text-text-secondary-dark", !disabled && "cursor-pointer hover:bg-surface-accent-200 dark:hover:bg-surface-accent-700"), disabled && "opacity-50 cursor-not-allowed", className);
3143
+ $[0] = active;
3144
+ $[1] = className;
3145
+ $[2] = disabled;
3146
+ $[3] = t4;
3147
+ $[4] = t5;
3148
+ } else {
3149
+ t5 = $[4];
3150
+ }
3151
+ let t6;
3152
+ if ($[5] !== children || $[6] !== disabled || $[7] !== icon || $[8] !== onClick || $[9] !== t5) {
3153
+ t6 = /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", onClick, disabled, className: t5, children: [
3154
+ icon,
3155
+ children
3156
+ ] });
3157
+ $[5] = children;
3158
+ $[6] = disabled;
3159
+ $[7] = icon;
3160
+ $[8] = onClick;
3161
+ $[9] = t5;
3162
+ $[10] = t6;
3163
+ } else {
3164
+ t6 = $[10];
3165
+ }
3166
+ return t6;
3167
+ }
3074
3168
  const colorClasses = {
3075
3169
  info: "bg-sky-200 dark:bg-teal-900",
3076
3170
  warn: "bg-orange-200 dark:bg-yellow-950"
@@ -3224,7 +3318,7 @@
3224
3318
  };
3225
3319
  const proseWeightOverrides = ["prose-headings:font-normal", "prose-strong:font-semibold", "prose-code:font-normal", "prose-blockquote:font-normal", "prose-a:font-normal"].join(" ");
3226
3320
  const md = new MarkdownIt({
3227
- html: true
3321
+ html: false
3228
3322
  });
3229
3323
  const Markdown = React.memo(function Markdown2(t0) {
3230
3324
  const $ = reactCompilerRuntime.c(10);
@@ -4173,7 +4267,7 @@
4173
4267
  let t12;
4174
4268
  let t13;
4175
4269
  if ($[9] !== children) {
4176
- t13 = children ? React.Children.map(children, _temp$2)?.filter(Boolean) ?? [] : [];
4270
+ t13 = children ? React.Children.map(children, _temp$3)?.filter(Boolean) ?? [] : [];
4177
4271
  $[9] = children;
4178
4272
  $[10] = t13;
4179
4273
  } else {
@@ -4723,7 +4817,7 @@
4723
4817
  }
4724
4818
  return t7;
4725
4819
  });
4726
- function _temp$2(child) {
4820
+ function _temp$3(child) {
4727
4821
  if (React__namespace.isValidElement(child)) {
4728
4822
  return child.props.value;
4729
4823
  }
@@ -5153,87 +5247,88 @@
5153
5247
  t10 = $[17];
5154
5248
  }
5155
5249
  const t11 = searchText ?? "";
5156
- const t12 = !onTextSearch;
5157
- let t13;
5250
+ const t12 = inputRef;
5251
+ const t13 = !onTextSearch;
5252
+ let t14;
5158
5253
  if ($[18] !== onTextSearch) {
5159
- t13 = onTextSearch ? (event) => {
5254
+ t14 = onTextSearch ? (event) => {
5160
5255
  setSearchText(event.target.value);
5161
5256
  } : void 0;
5162
5257
  $[18] = onTextSearch;
5163
- $[19] = t13;
5258
+ $[19] = t14;
5164
5259
  } else {
5165
- t13 = $[19];
5260
+ t14 = $[19];
5166
5261
  }
5167
- let t14;
5168
5262
  let t15;
5263
+ let t16;
5169
5264
  if ($[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
5170
- t14 = () => setActive(true);
5171
- t15 = () => setActive(false);
5172
- $[20] = t14;
5173
- $[21] = t15;
5265
+ t15 = () => setActive(true);
5266
+ t16 = () => setActive(false);
5267
+ $[20] = t15;
5268
+ $[21] = t16;
5174
5269
  } else {
5175
- t14 = $[20];
5176
- t15 = $[21];
5270
+ t15 = $[20];
5271
+ t16 = $[21];
5177
5272
  }
5178
- const t16 = (disabled || loading) && "pointer-events-none";
5179
- const t17 = size === "small" ? "text-sm" : "";
5180
- const t18 = expandable ? active ? "w-[220px]" : "w-[180px]" : "";
5181
- let t19;
5182
- if ($[22] !== innerClassName || $[23] !== inputPaddingClass || $[24] !== t16 || $[25] !== t17 || $[26] !== t18) {
5183
- t19 = cls(t16, "placeholder-text-disabled dark:placeholder-text-disabled-dark", "relative flex items-center transition-all bg-transparent outline-none focus:outline-none focus:ring-0 appearance-none border-none focus:border-transparent", inputPaddingClass, "h-full w-full text-current", t17, t18, innerClassName);
5273
+ const t17 = (disabled || loading) && "pointer-events-none";
5274
+ const t18 = size === "small" ? "text-sm" : "";
5275
+ const t19 = expandable ? active ? "w-[220px]" : "w-[180px]" : "";
5276
+ let t20;
5277
+ if ($[22] !== innerClassName || $[23] !== inputPaddingClass || $[24] !== t17 || $[25] !== t18 || $[26] !== t19) {
5278
+ t20 = cls(t17, "placeholder-text-disabled dark:placeholder-text-disabled-dark", "relative flex items-center transition-all bg-transparent outline-none focus:outline-none focus:ring-0 appearance-none border-none focus:border-transparent", inputPaddingClass, "h-full w-full text-current", t18, t19, innerClassName);
5184
5279
  $[22] = innerClassName;
5185
5280
  $[23] = inputPaddingClass;
5186
- $[24] = t16;
5187
- $[25] = t17;
5188
- $[26] = t18;
5189
- $[27] = t19;
5281
+ $[24] = t17;
5282
+ $[25] = t18;
5283
+ $[26] = t19;
5284
+ $[27] = t20;
5190
5285
  } else {
5191
- t19 = $[27];
5286
+ t20 = $[27];
5192
5287
  }
5193
- let t20;
5194
- if ($[28] !== autoFocus || $[29] !== inputRef || $[30] !== onClick || $[31] !== placeholder || $[32] !== t11 || $[33] !== t12 || $[34] !== t13 || $[35] !== t19) {
5195
- t20 = /* @__PURE__ */ jsxRuntime.jsx("input", { value: t11, ref: inputRef, onClick, placeholder, "aria-label": placeholder, readOnly: t12, onChange: t13, autoFocus, onFocus: t14, onBlur: t15, className: t19 });
5288
+ let t21;
5289
+ if ($[28] !== autoFocus || $[29] !== onClick || $[30] !== placeholder || $[31] !== t11 || $[32] !== t12 || $[33] !== t13 || $[34] !== t14 || $[35] !== t20) {
5290
+ t21 = /* @__PURE__ */ jsxRuntime.jsx("input", { value: t11, ref: t12, onClick, placeholder, "aria-label": placeholder, readOnly: t13, onChange: t14, autoFocus, onFocus: t15, onBlur: t16, className: t20 });
5196
5291
  $[28] = autoFocus;
5197
- $[29] = inputRef;
5198
- $[30] = onClick;
5199
- $[31] = placeholder;
5200
- $[32] = t11;
5201
- $[33] = t12;
5202
- $[34] = t13;
5203
- $[35] = t19;
5204
- $[36] = t20;
5292
+ $[29] = onClick;
5293
+ $[30] = placeholder;
5294
+ $[31] = t11;
5295
+ $[32] = t12;
5296
+ $[33] = t13;
5297
+ $[34] = t14;
5298
+ $[35] = t20;
5299
+ $[36] = t21;
5205
5300
  } else {
5206
- t20 = $[36];
5301
+ t21 = $[36];
5207
5302
  }
5208
- let t21;
5303
+ let t22;
5209
5304
  if ($[37] !== clearText || $[38] !== searchText || $[39] !== size) {
5210
- t21 = searchText ? /* @__PURE__ */ jsxRuntime.jsx(IconButton, { className: `${size === "small" ? "mr-0 top-0" : "mr-1 top-0"} absolute right-0 z-10`, size: "small", "aria-label": "Clear search", onClick: clearText, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.XIcon, { size: iconSize.smallest }) }) : /* @__PURE__ */ jsxRuntime.jsx("div", { style: {
5305
+ t22 = searchText ? /* @__PURE__ */ jsxRuntime.jsx(IconButton, { className: `${size === "small" ? "mr-0 top-0" : "mr-1 top-0"} absolute right-0 z-10`, size: "small", "aria-label": "Clear search", onClick: clearText, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.XIcon, { size: iconSize.smallest }) }) : /* @__PURE__ */ jsxRuntime.jsx("div", { style: {
5211
5306
  width: 26
5212
5307
  } });
5213
5308
  $[37] = clearText;
5214
5309
  $[38] = searchText;
5215
5310
  $[39] = size;
5216
- $[40] = t21;
5311
+ $[40] = t22;
5217
5312
  } else {
5218
- t21 = $[40];
5313
+ t22 = $[40];
5219
5314
  }
5220
- let t22;
5221
- if ($[41] !== onClick || $[42] !== t10 || $[43] !== t20 || $[44] !== t21 || $[45] !== t7) {
5222
- t22 = /* @__PURE__ */ jsxRuntime.jsxs("div", { role: "search", "aria-label": "Search", onClick, className: t7, children: [
5315
+ let t23;
5316
+ if ($[41] !== onClick || $[42] !== t10 || $[43] !== t21 || $[44] !== t22 || $[45] !== t7) {
5317
+ t23 = /* @__PURE__ */ jsxRuntime.jsxs("div", { role: "search", "aria-label": "Search", onClick, className: t7, children: [
5223
5318
  t10,
5224
- t20,
5225
- t21
5319
+ t21,
5320
+ t22
5226
5321
  ] });
5227
5322
  $[41] = onClick;
5228
5323
  $[42] = t10;
5229
- $[43] = t20;
5230
- $[44] = t21;
5324
+ $[43] = t21;
5325
+ $[44] = t22;
5231
5326
  $[45] = t7;
5232
- $[46] = t22;
5327
+ $[46] = t23;
5233
5328
  } else {
5234
- t22 = $[46];
5329
+ t23 = $[46];
5235
5330
  }
5236
- return t22;
5331
+ return t23;
5237
5332
  }
5238
5333
  const Select = React.forwardRef((t0, ref) => {
5239
5334
  const $ = reactCompilerRuntime.c(123);
@@ -5544,7 +5639,7 @@
5544
5639
  }
5545
5640
  let t29;
5546
5641
  if ($[71] !== placeholder || $[72] !== t28) {
5547
- t29 = /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Value, { onClick: _temp$1, placeholder, className: "w-full", children: t28 });
5642
+ t29 = /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Value, { onClick: _temp$2, placeholder, className: "w-full", children: t28 });
5548
5643
  $[71] = placeholder;
5549
5644
  $[72] = t28;
5550
5645
  $[73] = t29;
@@ -5788,7 +5883,7 @@
5788
5883
  }
5789
5884
  return t3;
5790
5885
  });
5791
- function _temp$1(e) {
5886
+ function _temp$2(e) {
5792
5887
  e.preventDefault();
5793
5888
  e.stopPropagation();
5794
5889
  }
@@ -6127,7 +6222,7 @@
6127
6222
  }
6128
6223
  T0 = DialogPrimitive__namespace.Content;
6129
6224
  t7 = props;
6130
- t8 = _temp;
6225
+ t8 = _temp$1;
6131
6226
  t9 = onPointerDownOutside;
6132
6227
  t10 = onInteractOutside;
6133
6228
  t11 = cls("outline-none", borderClass[side], defaultBorderMixin, "transform-gpu", "will-change-transform", "text-surface-accent-900 dark:text-white", "fixed transform z-50 transition-[transform,opacity] ease-in-out", !displayed ? "duration-150" : "duration-100", "outline-none focus:outline-none focus-visible:outline-none focus-visible:ring-0 focus:ring-0", transparent ? "" : "shadow-md bg-white dark:bg-surface-900", side === "top" || side === "bottom" ? "w-full" : "h-full", side === "left" || side === "top" ? "left-0 top-0" : "right-0 bottom-0", displayed && open ? "opacity-100" : "opacity-50", !displayed || !open ? transformValue[side] : "", className);
@@ -6230,7 +6325,7 @@
6230
6325
  }
6231
6326
  return t21;
6232
6327
  };
6233
- function _temp(event) {
6328
+ function _temp$1(event) {
6234
6329
  return event.preventDefault();
6235
6330
  }
6236
6331
  function getStyleValue(value) {
@@ -6453,72 +6548,278 @@
6453
6548
  ref.current = value;
6454
6549
  }
6455
6550
  }
6456
- const TextField = React.forwardRef(({
6457
- value,
6458
- onChange,
6459
- label,
6460
- type = "text",
6461
- multiline = false,
6462
- invisible,
6463
- maxRows,
6464
- minRows,
6465
- disabled,
6466
- error,
6467
- endAdornment,
6468
- autoFocus,
6469
- placeholder,
6470
- size = "large",
6471
- className,
6472
- style,
6473
- inputClassName,
6474
- inputStyle,
6475
- inputRef: inputRefProp,
6476
- ...inputProps
6477
- }, ref) => {
6478
- const inputRef = inputRefProp ?? React.useRef(null);
6551
+ const TextField = React.forwardRef((t0, ref) => {
6552
+ const $ = reactCompilerRuntime.c(77);
6553
+ let autoFocus;
6554
+ let className;
6555
+ let disabled;
6556
+ let endAdornment;
6557
+ let error;
6558
+ let inputClassName;
6559
+ let inputProps;
6560
+ let inputRefProp;
6561
+ let inputStyle;
6562
+ let invisible;
6563
+ let label;
6564
+ let minRows;
6565
+ let onChange;
6566
+ let placeholder;
6567
+ let style;
6568
+ let t1;
6569
+ let t2;
6570
+ let t3;
6571
+ let value;
6572
+ if ($[0] !== t0) {
6573
+ const {
6574
+ value: t42,
6575
+ onChange: t52,
6576
+ label: t62,
6577
+ type: t72,
6578
+ multiline: t82,
6579
+ invisible: t92,
6580
+ maxRows,
6581
+ minRows: t102,
6582
+ disabled: t112,
6583
+ error: t122,
6584
+ endAdornment: t132,
6585
+ autoFocus: t142,
6586
+ placeholder: t152,
6587
+ size: t162,
6588
+ className: t172,
6589
+ style: t182,
6590
+ inputClassName: t192,
6591
+ inputStyle: t20,
6592
+ inputRef: t21,
6593
+ ...t22
6594
+ } = t0;
6595
+ value = t42;
6596
+ onChange = t52;
6597
+ label = t62;
6598
+ t1 = t72;
6599
+ t2 = t82;
6600
+ invisible = t92;
6601
+ minRows = t102;
6602
+ disabled = t112;
6603
+ error = t122;
6604
+ endAdornment = t132;
6605
+ autoFocus = t142;
6606
+ placeholder = t152;
6607
+ t3 = t162;
6608
+ className = t172;
6609
+ style = t182;
6610
+ inputClassName = t192;
6611
+ inputStyle = t20;
6612
+ inputRefProp = t21;
6613
+ inputProps = t22;
6614
+ $[0] = t0;
6615
+ $[1] = autoFocus;
6616
+ $[2] = className;
6617
+ $[3] = disabled;
6618
+ $[4] = endAdornment;
6619
+ $[5] = error;
6620
+ $[6] = inputClassName;
6621
+ $[7] = inputProps;
6622
+ $[8] = inputRefProp;
6623
+ $[9] = inputStyle;
6624
+ $[10] = invisible;
6625
+ $[11] = label;
6626
+ $[12] = minRows;
6627
+ $[13] = onChange;
6628
+ $[14] = placeholder;
6629
+ $[15] = style;
6630
+ $[16] = t1;
6631
+ $[17] = t2;
6632
+ $[18] = t3;
6633
+ $[19] = value;
6634
+ } else {
6635
+ autoFocus = $[1];
6636
+ className = $[2];
6637
+ disabled = $[3];
6638
+ endAdornment = $[4];
6639
+ error = $[5];
6640
+ inputClassName = $[6];
6641
+ inputProps = $[7];
6642
+ inputRefProp = $[8];
6643
+ inputStyle = $[9];
6644
+ invisible = $[10];
6645
+ label = $[11];
6646
+ minRows = $[12];
6647
+ onChange = $[13];
6648
+ placeholder = $[14];
6649
+ style = $[15];
6650
+ t1 = $[16];
6651
+ t2 = $[17];
6652
+ t3 = $[18];
6653
+ value = $[19];
6654
+ }
6655
+ const type = t1 === void 0 ? "text" : t1;
6656
+ const multiline = t2 === void 0 ? false : t2;
6657
+ const size = t3 === void 0 ? "large" : t3;
6658
+ const fallbackRef = React.useRef(null);
6659
+ const inputRef = inputRefProp ?? fallbackRef;
6479
6660
  const autoId = React.useId();
6480
6661
  const inputId = inputProps.id ?? autoId;
6481
6662
  const labelId = `${inputId}-label`;
6482
6663
  const [focused, setFocused] = React.useState(false);
6483
6664
  const hasValue = value !== void 0 && value !== null && value !== "";
6484
- React.useEffect(() => {
6485
- if (inputRef.current && document.activeElement === inputRef.current) {
6486
- setFocused(true);
6487
- }
6488
- }, []);
6489
- React.useEffect(() => {
6490
- if (type !== "number") return;
6491
- const handleWheel = (event) => {
6492
- if (event.target instanceof HTMLElement) event.target.blur();
6665
+ let t4;
6666
+ if ($[20] !== inputRef.current) {
6667
+ t4 = () => {
6668
+ if (inputRef.current && document.activeElement === inputRef.current) {
6669
+ setFocused(true);
6670
+ }
6493
6671
  };
6494
- const element = "current" in inputRef ? inputRef.current : inputRef;
6495
- element?.addEventListener("wheel", handleWheel);
6496
- return () => {
6497
- element?.removeEventListener("wheel", handleWheel);
6672
+ $[20] = inputRef.current;
6673
+ $[21] = t4;
6674
+ } else {
6675
+ t4 = $[21];
6676
+ }
6677
+ let t5;
6678
+ if ($[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
6679
+ t5 = [];
6680
+ $[22] = t5;
6681
+ } else {
6682
+ t5 = $[22];
6683
+ }
6684
+ React.useEffect(t4, t5);
6685
+ let t6;
6686
+ let t7;
6687
+ if ($[23] !== inputRef || $[24] !== type) {
6688
+ t6 = () => {
6689
+ if (type !== "number") {
6690
+ return;
6691
+ }
6692
+ const handleWheel = _temp;
6693
+ const element = "current" in inputRef ? inputRef.current : inputRef;
6694
+ element?.addEventListener("wheel", handleWheel);
6695
+ return () => {
6696
+ element?.removeEventListener("wheel", handleWheel);
6697
+ };
6498
6698
  };
6499
- }, [inputRef, type]);
6500
- const input = multiline ? /* @__PURE__ */ jsxRuntime.jsx("textarea", { ...inputProps, ref: inputRef, id: inputId, "aria-labelledby": label ? labelId : void 0, "aria-invalid": error || void 0, "aria-disabled": disabled || void 0, placeholder: focused || hasValue || !label ? placeholder : void 0, autoFocus, rows: typeof minRows === "string" ? parseInt(minRows) : minRows ?? 3, value: value ?? "", onChange, onFocus: () => setFocused(true), onBlur: () => setFocused(false), style: inputStyle, className: cls(invisible ? focusedInvisibleMixin : "", "rounded-md resize-none w-full outline-none text-base bg-transparent min-h-[64px] px-3", label ? "pt-8 pb-2" : "py-2", disabled && "outline-none opacity-50 text-surface-accent-600 dark:text-surface-accent-500", inputClassName) }) : /* @__PURE__ */ jsxRuntime.jsx("input", { ...inputProps, ref: inputRef, id: inputId, "aria-labelledby": label ? labelId : void 0, "aria-invalid": error || void 0, "aria-disabled": disabled || void 0, disabled, style: inputStyle, className: cls("w-full outline-none bg-transparent leading-normal px-3", "rounded-md", "focused:text-text-primary focused:dark:text-text-primary-dark", invisible ? focusedInvisibleMixin : "", disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin, {
6501
- "min-h-[28px]": size === "smallest",
6502
- "min-h-[32px]": size === "small",
6503
- "min-h-[44px]": size === "medium",
6504
- "min-h-[64px]": size === "large"
6505
- }, label ? size === "large" ? "pt-8 pb-2" : "pt-4 pb-2" : size === "smallest" ? "py-0.5" : size === "small" ? "py-1" : "py-2", endAdornment ? "pr-12" : "pr-3", disabled && "outline-none opacity-65 dark:opacity-60 text-surface-accent-800 dark:text-white", inputClassName), placeholder: focused || hasValue || !label ? placeholder : void 0, autoFocus, onFocus: () => setFocused(true), onBlur: () => setFocused(false), type, value: type === "number" && Number.isNaN(value) ? "" : value ?? "", onChange });
6506
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: cls("rounded-md relative max-w-full", invisible ? fieldBackgroundInvisibleMixin : fieldBackgroundMixin, disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin, error ? "border border-red-500 dark:border-red-600" : "", {
6507
- "min-h-[28px]": size === "smallest",
6508
- "min-h-[32px]": size === "small",
6509
- "min-h-[44px]": size === "medium",
6510
- "min-h-[64px]": size === "large"
6511
- }, className), style, children: [
6512
- label && /* @__PURE__ */ jsxRuntime.jsx(InputLabel, { id: labelId, htmlFor: inputId, className: cls("pointer-events-none absolute", size === "large" ? "top-1" : "top-[-1px]", !error ? focused ? "text-primary dark:text-primary" : "text-text-secondary dark:text-text-secondary-dark" : "text-red-500 dark:text-red-600", disabled ? "opacity-50" : ""), shrink: hasValue || focused, children: label }),
6513
- input,
6514
- endAdornment && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls("flex flex-row justify-center items-center absolute h-full right-0 top-0", {
6699
+ t7 = [inputRef, type];
6700
+ $[23] = inputRef;
6701
+ $[24] = type;
6702
+ $[25] = t6;
6703
+ $[26] = t7;
6704
+ } else {
6705
+ t6 = $[25];
6706
+ t7 = $[26];
6707
+ }
6708
+ React.useEffect(t6, t7);
6709
+ let t8;
6710
+ if ($[27] !== autoFocus || $[28] !== disabled || $[29] !== endAdornment || $[30] !== error || $[31] !== focused || $[32] !== hasValue || $[33] !== inputClassName || $[34] !== inputId || $[35] !== inputProps || $[36] !== inputRef || $[37] !== inputStyle || $[38] !== invisible || $[39] !== label || $[40] !== labelId || $[41] !== minRows || $[42] !== multiline || $[43] !== onChange || $[44] !== placeholder || $[45] !== size || $[46] !== type || $[47] !== value) {
6711
+ t8 = multiline ? /* @__PURE__ */ jsxRuntime.jsx("textarea", { ...inputProps, ref: inputRef, id: inputId, "aria-labelledby": label ? labelId : void 0, "aria-invalid": error || void 0, "aria-disabled": disabled || void 0, placeholder: focused || hasValue || !label ? placeholder : void 0, autoFocus, rows: typeof minRows === "string" ? parseInt(minRows) : minRows ?? 3, value: value ?? "", onChange, onFocus: () => setFocused(true), onBlur: () => setFocused(false), style: inputStyle, className: cls(invisible ? focusedInvisibleMixin : "", "rounded-md resize-none w-full outline-none text-base bg-transparent min-h-[64px] px-3", label ? "pt-8 pb-2" : "py-2", disabled && "outline-none opacity-50 text-surface-accent-600 dark:text-surface-accent-500", inputClassName) }) : /* @__PURE__ */ jsxRuntime.jsx("input", { ...inputProps, ref: inputRef, id: inputId, "aria-labelledby": label ? labelId : void 0, "aria-invalid": error || void 0, "aria-disabled": disabled || void 0, disabled, style: inputStyle, className: cls("w-full outline-none bg-transparent leading-normal px-3", "rounded-md", "focused:text-text-primary focused:dark:text-text-primary-dark", invisible ? focusedInvisibleMixin : "", disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin, {
6712
+ "min-h-[28px]": size === "smallest",
6713
+ "min-h-[32px]": size === "small",
6714
+ "min-h-[44px]": size === "medium",
6715
+ "min-h-[64px]": size === "large"
6716
+ }, label ? size === "large" ? "pt-8 pb-2" : "pt-4 pb-2" : size === "smallest" ? "py-0.5" : size === "small" ? "py-1" : "py-2", endAdornment ? "pr-12" : "pr-3", disabled && "outline-none opacity-65 dark:opacity-60 text-surface-accent-800 dark:text-white", inputClassName), placeholder: focused || hasValue || !label ? placeholder : void 0, autoFocus, onFocus: () => setFocused(true), onBlur: () => setFocused(false), type, value: type === "number" && Number.isNaN(value) ? "" : value ?? "", onChange });
6717
+ $[27] = autoFocus;
6718
+ $[28] = disabled;
6719
+ $[29] = endAdornment;
6720
+ $[30] = error;
6721
+ $[31] = focused;
6722
+ $[32] = hasValue;
6723
+ $[33] = inputClassName;
6724
+ $[34] = inputId;
6725
+ $[35] = inputProps;
6726
+ $[36] = inputRef;
6727
+ $[37] = inputStyle;
6728
+ $[38] = invisible;
6729
+ $[39] = label;
6730
+ $[40] = labelId;
6731
+ $[41] = minRows;
6732
+ $[42] = multiline;
6733
+ $[43] = onChange;
6734
+ $[44] = placeholder;
6735
+ $[45] = size;
6736
+ $[46] = type;
6737
+ $[47] = value;
6738
+ $[48] = t8;
6739
+ } else {
6740
+ t8 = $[48];
6741
+ }
6742
+ const input = t8;
6743
+ const t9 = invisible ? fieldBackgroundInvisibleMixin : fieldBackgroundMixin;
6744
+ const t10 = disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin;
6745
+ const t11 = error ? "border border-red-500 dark:border-red-600" : "";
6746
+ const t12 = size === "smallest";
6747
+ const t13 = size === "small";
6748
+ const t14 = size === "medium";
6749
+ const t15 = size === "large";
6750
+ let t16;
6751
+ if ($[49] !== className || $[50] !== t10 || $[51] !== t11 || $[52] !== t12 || $[53] !== t13 || $[54] !== t14 || $[55] !== t15 || $[56] !== t9) {
6752
+ t16 = cls("rounded-md relative max-w-full", t9, t10, t11, {
6753
+ "min-h-[28px]": t12,
6754
+ "min-h-[32px]": t13,
6755
+ "min-h-[44px]": t14,
6756
+ "min-h-[64px]": t15
6757
+ }, className);
6758
+ $[49] = className;
6759
+ $[50] = t10;
6760
+ $[51] = t11;
6761
+ $[52] = t12;
6762
+ $[53] = t13;
6763
+ $[54] = t14;
6764
+ $[55] = t15;
6765
+ $[56] = t9;
6766
+ $[57] = t16;
6767
+ } else {
6768
+ t16 = $[57];
6769
+ }
6770
+ let t17;
6771
+ if ($[58] !== disabled || $[59] !== error || $[60] !== focused || $[61] !== hasValue || $[62] !== inputId || $[63] !== label || $[64] !== labelId || $[65] !== size) {
6772
+ t17 = label && /* @__PURE__ */ jsxRuntime.jsx(InputLabel, { id: labelId, htmlFor: inputId, className: cls("pointer-events-none absolute", size === "large" ? "top-1" : "top-[-1px]", !error ? focused ? "text-primary dark:text-primary" : "text-text-secondary dark:text-text-secondary-dark" : "text-red-500 dark:text-red-600", disabled ? "opacity-50" : ""), shrink: hasValue || focused, children: label });
6773
+ $[58] = disabled;
6774
+ $[59] = error;
6775
+ $[60] = focused;
6776
+ $[61] = hasValue;
6777
+ $[62] = inputId;
6778
+ $[63] = label;
6779
+ $[64] = labelId;
6780
+ $[65] = size;
6781
+ $[66] = t17;
6782
+ } else {
6783
+ t17 = $[66];
6784
+ }
6785
+ let t18;
6786
+ if ($[67] !== endAdornment || $[68] !== size) {
6787
+ t18 = endAdornment && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cls("flex flex-row justify-center items-center absolute h-full right-0 top-0", {
6515
6788
  "mr-4": size === "large",
6516
6789
  "mr-3": size === "medium",
6517
6790
  "mr-2": size === "small" || size === "smallest"
6518
- }), children: endAdornment })
6519
- ] });
6791
+ }), children: endAdornment });
6792
+ $[67] = endAdornment;
6793
+ $[68] = size;
6794
+ $[69] = t18;
6795
+ } else {
6796
+ t18 = $[69];
6797
+ }
6798
+ let t19;
6799
+ if ($[70] !== input || $[71] !== ref || $[72] !== style || $[73] !== t16 || $[74] !== t17 || $[75] !== t18) {
6800
+ t19 = /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, className: t16, style, children: [
6801
+ t17,
6802
+ input,
6803
+ t18
6804
+ ] });
6805
+ $[70] = input;
6806
+ $[71] = ref;
6807
+ $[72] = style;
6808
+ $[73] = t16;
6809
+ $[74] = t17;
6810
+ $[75] = t18;
6811
+ $[76] = t19;
6812
+ } else {
6813
+ t19 = $[76];
6814
+ }
6815
+ return t19;
6520
6816
  });
6521
6817
  TextField.displayName = "TextField";
6818
+ function _temp(event) {
6819
+ if (event.target instanceof HTMLElement) {
6820
+ event.target.blur();
6821
+ }
6822
+ }
6522
6823
  const TabsContext = React.createContext({
6523
6824
  variant: "standard"
6524
6825
  });
@@ -8598,6 +8899,472 @@
8598
8899
  }
8599
8900
  return t0;
8600
8901
  }
8902
+ Object.defineProperty(exports2, "AlertCircleIcon", {
8903
+ enumerable: true,
8904
+ get: () => lucideReact.AlertCircleIcon
8905
+ });
8906
+ Object.defineProperty(exports2, "AlertTriangleIcon", {
8907
+ enumerable: true,
8908
+ get: () => lucideReact.AlertTriangleIcon
8909
+ });
8910
+ Object.defineProperty(exports2, "AlignLeftIcon", {
8911
+ enumerable: true,
8912
+ get: () => lucideReact.AlignLeftIcon
8913
+ });
8914
+ Object.defineProperty(exports2, "AppWindow", {
8915
+ enumerable: true,
8916
+ get: () => lucideReact.AppWindow
8917
+ });
8918
+ Object.defineProperty(exports2, "ArrowDownToLineIcon", {
8919
+ enumerable: true,
8920
+ get: () => lucideReact.ArrowDownToLineIcon
8921
+ });
8922
+ Object.defineProperty(exports2, "ArrowLeftIcon", {
8923
+ enumerable: true,
8924
+ get: () => lucideReact.ArrowLeftIcon
8925
+ });
8926
+ Object.defineProperty(exports2, "ArrowRightFromLineIcon", {
8927
+ enumerable: true,
8928
+ get: () => lucideReact.ArrowRightFromLineIcon
8929
+ });
8930
+ Object.defineProperty(exports2, "ArrowRightIcon", {
8931
+ enumerable: true,
8932
+ get: () => lucideReact.ArrowRightIcon
8933
+ });
8934
+ Object.defineProperty(exports2, "ArrowRightToLineIcon", {
8935
+ enumerable: true,
8936
+ get: () => lucideReact.ArrowRightToLineIcon
8937
+ });
8938
+ Object.defineProperty(exports2, "ArrowUpToLineIcon", {
8939
+ enumerable: true,
8940
+ get: () => lucideReact.ArrowUpToLineIcon
8941
+ });
8942
+ Object.defineProperty(exports2, "BoldIcon", {
8943
+ enumerable: true,
8944
+ get: () => lucideReact.BoldIcon
8945
+ });
8946
+ Object.defineProperty(exports2, "BookOpenIcon", {
8947
+ enumerable: true,
8948
+ get: () => lucideReact.BookOpenIcon
8949
+ });
8950
+ Object.defineProperty(exports2, "CalendarIcon", {
8951
+ enumerable: true,
8952
+ get: () => lucideReact.CalendarIcon
8953
+ });
8954
+ Object.defineProperty(exports2, "CheckCircleIcon", {
8955
+ enumerable: true,
8956
+ get: () => lucideReact.CheckCircleIcon
8957
+ });
8958
+ Object.defineProperty(exports2, "CheckIcon", {
8959
+ enumerable: true,
8960
+ get: () => lucideReact.CheckIcon
8961
+ });
8962
+ Object.defineProperty(exports2, "CheckSquareIcon", {
8963
+ enumerable: true,
8964
+ get: () => lucideReact.CheckSquareIcon
8965
+ });
8966
+ Object.defineProperty(exports2, "ChevronDownIcon", {
8967
+ enumerable: true,
8968
+ get: () => lucideReact.ChevronDownIcon
8969
+ });
8970
+ Object.defineProperty(exports2, "ChevronLeftIcon", {
8971
+ enumerable: true,
8972
+ get: () => lucideReact.ChevronLeftIcon
8973
+ });
8974
+ Object.defineProperty(exports2, "ChevronRightIcon", {
8975
+ enumerable: true,
8976
+ get: () => lucideReact.ChevronRightIcon
8977
+ });
8978
+ Object.defineProperty(exports2, "ChevronUpIcon", {
8979
+ enumerable: true,
8980
+ get: () => lucideReact.ChevronUpIcon
8981
+ });
8982
+ Object.defineProperty(exports2, "ChevronsLeftIcon", {
8983
+ enumerable: true,
8984
+ get: () => lucideReact.ChevronsLeftIcon
8985
+ });
8986
+ Object.defineProperty(exports2, "ChevronsRightIcon", {
8987
+ enumerable: true,
8988
+ get: () => lucideReact.ChevronsRightIcon
8989
+ });
8990
+ Object.defineProperty(exports2, "ChevronsUpDownIcon", {
8991
+ enumerable: true,
8992
+ get: () => lucideReact.ChevronsUpDownIcon
8993
+ });
8994
+ Object.defineProperty(exports2, "CircleIcon", {
8995
+ enumerable: true,
8996
+ get: () => lucideReact.CircleIcon
8997
+ });
8998
+ Object.defineProperty(exports2, "CircleUserIcon", {
8999
+ enumerable: true,
9000
+ get: () => lucideReact.CircleUserIcon
9001
+ });
9002
+ Object.defineProperty(exports2, "CodeIcon", {
9003
+ enumerable: true,
9004
+ get: () => lucideReact.CodeIcon
9005
+ });
9006
+ Object.defineProperty(exports2, "ColumnsIcon", {
9007
+ enumerable: true,
9008
+ get: () => lucideReact.ColumnsIcon
9009
+ });
9010
+ Object.defineProperty(exports2, "CopyIcon", {
9011
+ enumerable: true,
9012
+ get: () => lucideReact.CopyIcon
9013
+ });
9014
+ Object.defineProperty(exports2, "DatabaseIcon", {
9015
+ enumerable: true,
9016
+ get: () => lucideReact.DatabaseIcon
9017
+ });
9018
+ Object.defineProperty(exports2, "DownloadIcon", {
9019
+ enumerable: true,
9020
+ get: () => lucideReact.DownloadIcon
9021
+ });
9022
+ Object.defineProperty(exports2, "ExternalLinkIcon", {
9023
+ enumerable: true,
9024
+ get: () => lucideReact.ExternalLinkIcon
9025
+ });
9026
+ Object.defineProperty(exports2, "EyeIcon", {
9027
+ enumerable: true,
9028
+ get: () => lucideReact.EyeIcon
9029
+ });
9030
+ Object.defineProperty(exports2, "EyeOffIcon", {
9031
+ enumerable: true,
9032
+ get: () => lucideReact.EyeOffIcon
9033
+ });
9034
+ Object.defineProperty(exports2, "FileIcon", {
9035
+ enumerable: true,
9036
+ get: () => lucideReact.FileIcon
9037
+ });
9038
+ Object.defineProperty(exports2, "FileSearchIcon", {
9039
+ enumerable: true,
9040
+ get: () => lucideReact.FileSearchIcon
9041
+ });
9042
+ Object.defineProperty(exports2, "FileTextIcon", {
9043
+ enumerable: true,
9044
+ get: () => lucideReact.FileTextIcon
9045
+ });
9046
+ Object.defineProperty(exports2, "FilterIcon", {
9047
+ enumerable: true,
9048
+ get: () => lucideReact.FilterIcon
9049
+ });
9050
+ Object.defineProperty(exports2, "FilterXIcon", {
9051
+ enumerable: true,
9052
+ get: () => lucideReact.FilterXIcon
9053
+ });
9054
+ Object.defineProperty(exports2, "FlagIcon", {
9055
+ enumerable: true,
9056
+ get: () => lucideReact.FlagIcon
9057
+ });
9058
+ Object.defineProperty(exports2, "FolderIcon", {
9059
+ enumerable: true,
9060
+ get: () => lucideReact.FolderIcon
9061
+ });
9062
+ Object.defineProperty(exports2, "FolderPlusIcon", {
9063
+ enumerable: true,
9064
+ get: () => lucideReact.FolderPlusIcon
9065
+ });
9066
+ Object.defineProperty(exports2, "FolderUpIcon", {
9067
+ enumerable: true,
9068
+ get: () => lucideReact.FolderUpIcon
9069
+ });
9070
+ Object.defineProperty(exports2, "FunctionSquareIcon", {
9071
+ enumerable: true,
9072
+ get: () => lucideReact.FunctionSquareIcon
9073
+ });
9074
+ Object.defineProperty(exports2, "GitBranchIcon", {
9075
+ enumerable: true,
9076
+ get: () => lucideReact.GitBranchIcon
9077
+ });
9078
+ Object.defineProperty(exports2, "GlobeIcon", {
9079
+ enumerable: true,
9080
+ get: () => lucideReact.GlobeIcon
9081
+ });
9082
+ Object.defineProperty(exports2, "HashIcon", {
9083
+ enumerable: true,
9084
+ get: () => lucideReact.HashIcon
9085
+ });
9086
+ Object.defineProperty(exports2, "Heading1Icon", {
9087
+ enumerable: true,
9088
+ get: () => lucideReact.Heading1Icon
9089
+ });
9090
+ Object.defineProperty(exports2, "Heading2Icon", {
9091
+ enumerable: true,
9092
+ get: () => lucideReact.Heading2Icon
9093
+ });
9094
+ Object.defineProperty(exports2, "Heading3Icon", {
9095
+ enumerable: true,
9096
+ get: () => lucideReact.Heading3Icon
9097
+ });
9098
+ Object.defineProperty(exports2, "HelpCircleIcon", {
9099
+ enumerable: true,
9100
+ get: () => lucideReact.HelpCircleIcon
9101
+ });
9102
+ Object.defineProperty(exports2, "HistoryIcon", {
9103
+ enumerable: true,
9104
+ get: () => lucideReact.HistoryIcon
9105
+ });
9106
+ Object.defineProperty(exports2, "HomeIcon", {
9107
+ enumerable: true,
9108
+ get: () => lucideReact.HomeIcon
9109
+ });
9110
+ Object.defineProperty(exports2, "ImageIcon", {
9111
+ enumerable: true,
9112
+ get: () => lucideReact.ImageIcon
9113
+ });
9114
+ Object.defineProperty(exports2, "ImageOffIcon", {
9115
+ enumerable: true,
9116
+ get: () => lucideReact.ImageOffIcon
9117
+ });
9118
+ Object.defineProperty(exports2, "InfoIcon", {
9119
+ enumerable: true,
9120
+ get: () => lucideReact.InfoIcon
9121
+ });
9122
+ Object.defineProperty(exports2, "ItalicIcon", {
9123
+ enumerable: true,
9124
+ get: () => lucideReact.ItalicIcon
9125
+ });
9126
+ Object.defineProperty(exports2, "KanbanIcon", {
9127
+ enumerable: true,
9128
+ get: () => lucideReact.KanbanIcon
9129
+ });
9130
+ Object.defineProperty(exports2, "KeyIcon", {
9131
+ enumerable: true,
9132
+ get: () => lucideReact.KeyIcon
9133
+ });
9134
+ Object.defineProperty(exports2, "KeyRoundIcon", {
9135
+ enumerable: true,
9136
+ get: () => lucideReact.KeyRoundIcon
9137
+ });
9138
+ Object.defineProperty(exports2, "LanguagesIcon", {
9139
+ enumerable: true,
9140
+ get: () => lucideReact.LanguagesIcon
9141
+ });
9142
+ Object.defineProperty(exports2, "LayoutGridIcon", {
9143
+ enumerable: true,
9144
+ get: () => lucideReact.LayoutGridIcon
9145
+ });
9146
+ Object.defineProperty(exports2, "LinkIcon", {
9147
+ enumerable: true,
9148
+ get: () => lucideReact.LinkIcon
9149
+ });
9150
+ Object.defineProperty(exports2, "ListIcon", {
9151
+ enumerable: true,
9152
+ get: () => lucideReact.ListIcon
9153
+ });
9154
+ Object.defineProperty(exports2, "ListOrderedIcon", {
9155
+ enumerable: true,
9156
+ get: () => lucideReact.ListOrderedIcon
9157
+ });
9158
+ Object.defineProperty(exports2, "LoaderIcon", {
9159
+ enumerable: true,
9160
+ get: () => lucideReact.LoaderIcon
9161
+ });
9162
+ Object.defineProperty(exports2, "LogOutIcon", {
9163
+ enumerable: true,
9164
+ get: () => lucideReact.LogOutIcon
9165
+ });
9166
+ Object.defineProperty(exports2, "MailIcon", {
9167
+ enumerable: true,
9168
+ get: () => lucideReact.MailIcon
9169
+ });
9170
+ Object.defineProperty(exports2, "Maximize2Icon", {
9171
+ enumerable: true,
9172
+ get: () => lucideReact.Maximize2Icon
9173
+ });
9174
+ Object.defineProperty(exports2, "MenuIcon", {
9175
+ enumerable: true,
9176
+ get: () => lucideReact.MenuIcon
9177
+ });
9178
+ Object.defineProperty(exports2, "MinusCircleIcon", {
9179
+ enumerable: true,
9180
+ get: () => lucideReact.MinusCircleIcon
9181
+ });
9182
+ Object.defineProperty(exports2, "MinusIcon", {
9183
+ enumerable: true,
9184
+ get: () => lucideReact.MinusIcon
9185
+ });
9186
+ Object.defineProperty(exports2, "MoonIcon", {
9187
+ enumerable: true,
9188
+ get: () => lucideReact.MoonIcon
9189
+ });
9190
+ Object.defineProperty(exports2, "MoreVerticalIcon", {
9191
+ enumerable: true,
9192
+ get: () => lucideReact.MoreVerticalIcon
9193
+ });
9194
+ Object.defineProperty(exports2, "Music2Icon", {
9195
+ enumerable: true,
9196
+ get: () => lucideReact.Music2Icon
9197
+ });
9198
+ Object.defineProperty(exports2, "PanelLeftIcon", {
9199
+ enumerable: true,
9200
+ get: () => lucideReact.PanelLeftIcon
9201
+ });
9202
+ Object.defineProperty(exports2, "PauseIcon", {
9203
+ enumerable: true,
9204
+ get: () => lucideReact.PauseIcon
9205
+ });
9206
+ Object.defineProperty(exports2, "PencilIcon", {
9207
+ enumerable: true,
9208
+ get: () => lucideReact.PencilIcon
9209
+ });
9210
+ Object.defineProperty(exports2, "PhoneIcon", {
9211
+ enumerable: true,
9212
+ get: () => lucideReact.PhoneIcon
9213
+ });
9214
+ Object.defineProperty(exports2, "PlayIcon", {
9215
+ enumerable: true,
9216
+ get: () => lucideReact.PlayIcon
9217
+ });
9218
+ Object.defineProperty(exports2, "PlusIcon", {
9219
+ enumerable: true,
9220
+ get: () => lucideReact.PlusIcon
9221
+ });
9222
+ Object.defineProperty(exports2, "QuoteIcon", {
9223
+ enumerable: true,
9224
+ get: () => lucideReact.QuoteIcon
9225
+ });
9226
+ Object.defineProperty(exports2, "RefreshCcwIcon", {
9227
+ enumerable: true,
9228
+ get: () => lucideReact.RefreshCcwIcon
9229
+ });
9230
+ Object.defineProperty(exports2, "RefreshCwIcon", {
9231
+ enumerable: true,
9232
+ get: () => lucideReact.RefreshCwIcon
9233
+ });
9234
+ Object.defineProperty(exports2, "RepeatIcon", {
9235
+ enumerable: true,
9236
+ get: () => lucideReact.RepeatIcon
9237
+ });
9238
+ Object.defineProperty(exports2, "Rows3Icon", {
9239
+ enumerable: true,
9240
+ get: () => lucideReact.Rows3Icon
9241
+ });
9242
+ Object.defineProperty(exports2, "SaveIcon", {
9243
+ enumerable: true,
9244
+ get: () => lucideReact.SaveIcon
9245
+ });
9246
+ Object.defineProperty(exports2, "SearchIcon", {
9247
+ enumerable: true,
9248
+ get: () => lucideReact.SearchIcon
9249
+ });
9250
+ Object.defineProperty(exports2, "SendIcon", {
9251
+ enumerable: true,
9252
+ get: () => lucideReact.SendIcon
9253
+ });
9254
+ Object.defineProperty(exports2, "SettingsIcon", {
9255
+ enumerable: true,
9256
+ get: () => lucideReact.SettingsIcon
9257
+ });
9258
+ Object.defineProperty(exports2, "ShieldIcon", {
9259
+ enumerable: true,
9260
+ get: () => lucideReact.ShieldIcon
9261
+ });
9262
+ Object.defineProperty(exports2, "ShoppingCartIcon", {
9263
+ enumerable: true,
9264
+ get: () => lucideReact.ShoppingCartIcon
9265
+ });
9266
+ Object.defineProperty(exports2, "SlidersHorizontalIcon", {
9267
+ enumerable: true,
9268
+ get: () => lucideReact.SlidersHorizontalIcon
9269
+ });
9270
+ Object.defineProperty(exports2, "SquareIcon", {
9271
+ enumerable: true,
9272
+ get: () => lucideReact.SquareIcon
9273
+ });
9274
+ Object.defineProperty(exports2, "StarIcon", {
9275
+ enumerable: true,
9276
+ get: () => lucideReact.StarIcon
9277
+ });
9278
+ Object.defineProperty(exports2, "StrikethroughIcon", {
9279
+ enumerable: true,
9280
+ get: () => lucideReact.StrikethroughIcon
9281
+ });
9282
+ Object.defineProperty(exports2, "SunIcon", {
9283
+ enumerable: true,
9284
+ get: () => lucideReact.SunIcon
9285
+ });
9286
+ Object.defineProperty(exports2, "SunMoonIcon", {
9287
+ enumerable: true,
9288
+ get: () => lucideReact.SunMoonIcon
9289
+ });
9290
+ Object.defineProperty(exports2, "TableIcon", {
9291
+ enumerable: true,
9292
+ get: () => lucideReact.TableIcon
9293
+ });
9294
+ Object.defineProperty(exports2, "TagIcon", {
9295
+ enumerable: true,
9296
+ get: () => lucideReact.TagIcon
9297
+ });
9298
+ Object.defineProperty(exports2, "TerminalIcon", {
9299
+ enumerable: true,
9300
+ get: () => lucideReact.TerminalIcon
9301
+ });
9302
+ Object.defineProperty(exports2, "TextIcon", {
9303
+ enumerable: true,
9304
+ get: () => lucideReact.TextIcon
9305
+ });
9306
+ Object.defineProperty(exports2, "Trash2Icon", {
9307
+ enumerable: true,
9308
+ get: () => lucideReact.Trash2Icon
9309
+ });
9310
+ Object.defineProperty(exports2, "TypeIcon", {
9311
+ enumerable: true,
9312
+ get: () => lucideReact.TypeIcon
9313
+ });
9314
+ Object.defineProperty(exports2, "UnderlineIcon", {
9315
+ enumerable: true,
9316
+ get: () => lucideReact.UnderlineIcon
9317
+ });
9318
+ Object.defineProperty(exports2, "UndoIcon", {
9319
+ enumerable: true,
9320
+ get: () => lucideReact.UndoIcon
9321
+ });
9322
+ Object.defineProperty(exports2, "UploadCloudIcon", {
9323
+ enumerable: true,
9324
+ get: () => lucideReact.UploadCloudIcon
9325
+ });
9326
+ Object.defineProperty(exports2, "UploadIcon", {
9327
+ enumerable: true,
9328
+ get: () => lucideReact.UploadIcon
9329
+ });
9330
+ Object.defineProperty(exports2, "UserCheckIcon", {
9331
+ enumerable: true,
9332
+ get: () => lucideReact.UserCheckIcon
9333
+ });
9334
+ Object.defineProperty(exports2, "UserIcon", {
9335
+ enumerable: true,
9336
+ get: () => lucideReact.UserIcon
9337
+ });
9338
+ Object.defineProperty(exports2, "VideoIcon", {
9339
+ enumerable: true,
9340
+ get: () => lucideReact.VideoIcon
9341
+ });
9342
+ Object.defineProperty(exports2, "VoteIcon", {
9343
+ enumerable: true,
9344
+ get: () => lucideReact.VoteIcon
9345
+ });
9346
+ Object.defineProperty(exports2, "Wand2Icon", {
9347
+ enumerable: true,
9348
+ get: () => lucideReact.Wand2Icon
9349
+ });
9350
+ Object.defineProperty(exports2, "XCircleIcon", {
9351
+ enumerable: true,
9352
+ get: () => lucideReact.XCircleIcon
9353
+ });
9354
+ Object.defineProperty(exports2, "XIcon", {
9355
+ enumerable: true,
9356
+ get: () => lucideReact.XIcon
9357
+ });
9358
+ Object.defineProperty(exports2, "lucideIcons", {
9359
+ enumerable: true,
9360
+ get: () => lucideReact.icons
9361
+ });
9362
+ exports2.PopoverPrimitive = PopoverPrimitive__namespace;
9363
+ exports2.Portal = reactPortal__namespace;
9364
+ Object.defineProperty(exports2, "Slot", {
9365
+ enumerable: true,
9366
+ get: () => reactSlot.Slot
9367
+ });
8601
9368
  exports2.Alert = Alert;
8602
9369
  exports2.Autocomplete = Autocomplete;
8603
9370
  exports2.AutocompleteItem = AutocompleteItem;
@@ -8625,6 +9392,7 @@
8625
9392
  exports2.ErrorBoundary = ErrorBoundary;
8626
9393
  exports2.ExpandablePanel = ExpandablePanel;
8627
9394
  exports2.FileUpload = FileUpload;
9395
+ exports2.FilterChip = FilterChip;
8628
9396
  exports2.GitHubIcon = GitHubIcon;
8629
9397
  exports2.HandleIcon = HandleIcon;
8630
9398
  exports2.IconButton = IconButton;