@rebasepro/ui 0.1.2 → 0.2.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.
- package/LICENSE +1 -1
- package/dist/components/FilterChip.d.ts +42 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/icons/index.d.ts +2 -0
- package/dist/index.es.js +576 -154
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +924 -156
- package/dist/index.umd.js.map +1 -1
- package/package.json +20 -18
- package/src/components/BooleanSwitch.tsx +1 -1
- package/src/components/BooleanSwitchWithLabel.tsx +1 -1
- package/src/components/Button.tsx +2 -2
- package/src/components/Chip.tsx +43 -10
- package/src/components/FilterChip.tsx +84 -0
- package/src/components/Markdown.tsx +1 -2
- package/src/components/SearchBar.tsx +1 -1
- package/src/components/Select.tsx +1 -1
- package/src/components/TextField.tsx +2 -1
- package/src/components/TextareaAutosize.tsx +2 -2
- package/src/components/VirtualTable/VirtualTable.tsx +2 -1
- package/src/components/VirtualTable/VirtualTableHeader.tsx +1 -1
- package/src/components/index.tsx +8 -0
- package/src/icons/index.ts +123 -0
package/dist/index.es.js
CHANGED
|
@@ -7,6 +7,7 @@ import * as React from "react";
|
|
|
7
7
|
import React__default, { createContext, useContext, useEffect, useRef, useState, Children, forwardRef, useLayoutEffect, useId, useDeferredValue, useMemo, createRef, useCallback } from "react";
|
|
8
8
|
import * as Collapsible from "@radix-ui/react-collapsible";
|
|
9
9
|
import { AlertCircleIcon, MinusIcon, CheckIcon, CalendarIcon, XIcon, ChevronDownIcon, ChevronRightIcon, SearchIcon, ChevronLeftIcon, ArrowUpIcon, FilterIcon } from "lucide-react";
|
|
10
|
+
import { AlertCircleIcon as AlertCircleIcon2, AlertTriangleIcon, AlignLeftIcon, AppWindow, ArrowDownToLineIcon, ArrowLeftIcon, ArrowRightFromLineIcon, ArrowRightIcon, ArrowRightToLineIcon, ArrowUpToLineIcon, BoldIcon, BookOpenIcon, CalendarIcon as CalendarIcon2, CheckCircleIcon, CheckIcon as CheckIcon2, CheckSquareIcon, ChevronDownIcon as ChevronDownIcon2, ChevronLeftIcon as ChevronLeftIcon2, ChevronRightIcon as ChevronRightIcon2, ChevronUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleIcon, CircleUserIcon, CodeIcon, ColumnsIcon, CopyIcon, DatabaseIcon, DownloadIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FileIcon, FileSearchIcon, FileTextIcon, FilterIcon as FilterIcon2, FilterXIcon, FlagIcon, FolderIcon, FolderPlusIcon, FolderUpIcon, FunctionSquareIcon, GitBranchIcon, GlobeIcon, HashIcon, Heading1Icon, Heading2Icon, Heading3Icon, HelpCircleIcon, HistoryIcon, HomeIcon, ImageIcon, ImageOffIcon, InfoIcon, ItalicIcon, KanbanIcon, KeyIcon, KeyRoundIcon, LanguagesIcon, LayoutGridIcon, LinkIcon, ListIcon, ListOrderedIcon, LoaderIcon, LogOutIcon, MailIcon, Maximize2Icon, MenuIcon, MinusCircleIcon, MinusIcon as MinusIcon2, MoonIcon, MoreVerticalIcon, Music2Icon, PanelLeftIcon, PauseIcon, PencilIcon, PhoneIcon, PlayIcon, PlusIcon, QuoteIcon, RefreshCcwIcon, RefreshCwIcon, RepeatIcon, Rows3Icon, SaveIcon, SearchIcon as SearchIcon2, SendIcon, SettingsIcon, ShieldIcon, ShoppingCartIcon, SlidersHorizontalIcon, SquareIcon, StarIcon, StrikethroughIcon, SunIcon, SunMoonIcon, TableIcon, TagIcon, TerminalIcon, TextIcon, Trash2Icon, TypeIcon, UnderlineIcon, UndoIcon, UploadCloudIcon, UploadIcon, UserCheckIcon, UserIcon, VideoIcon, VoteIcon, Wand2Icon, XCircleIcon, XIcon as XIcon2, icons } from "lucide-react";
|
|
10
11
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
11
12
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
12
13
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
@@ -28,6 +29,8 @@ import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
|
28
29
|
import { FixedSizeList } from "react-window";
|
|
29
30
|
import useMeasure from "react-use-measure";
|
|
30
31
|
import { useSortable, arrayMove, SortableContext, horizontalListSortingStrategy } from "@dnd-kit/sortable";
|
|
32
|
+
import * as reactPortal from "@radix-ui/react-portal";
|
|
33
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
31
34
|
import { useSensors, useSensor, PointerSensor, DndContext, closestCenter } from "@dnd-kit/core";
|
|
32
35
|
function cls(...classes) {
|
|
33
36
|
return twMerge(clsx(classes));
|
|
@@ -1573,7 +1576,7 @@ class ErrorBoundary extends React__default.Component {
|
|
|
1573
1576
|
return this.props.children;
|
|
1574
1577
|
}
|
|
1575
1578
|
}
|
|
1576
|
-
const sizeClasses$
|
|
1579
|
+
const sizeClasses$2 = {
|
|
1577
1580
|
large: "w-6 h-6 rounded flex items-center justify-center",
|
|
1578
1581
|
medium: "w-5 h-5 rounded flex items-center justify-center",
|
|
1579
1582
|
small: "w-4 h-4 rounded flex items-center justify-center",
|
|
@@ -1632,7 +1635,7 @@ const Checkbox = React__default.memo((t0) => {
|
|
|
1632
1635
|
} else {
|
|
1633
1636
|
t12 = $[4];
|
|
1634
1637
|
}
|
|
1635
|
-
const t13 = sizeClasses$
|
|
1638
|
+
const t13 = sizeClasses$2[size];
|
|
1636
1639
|
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";
|
|
1637
1640
|
const t15 = indeterminate || isChecked ? "text-surface-accent-100 dark:text-surface-accent-900" : "";
|
|
1638
1641
|
const t16 = disabled ? "border-transparent" : indeterminate || isChecked ? "border-transparent" : "border-surface-accent-800 dark:border-surface-accent-500";
|
|
@@ -1701,11 +1704,12 @@ function isDarkMode() {
|
|
|
1701
1704
|
return typeof document !== "undefined" && document.documentElement.classList.contains("dark");
|
|
1702
1705
|
}
|
|
1703
1706
|
function Chip(t0) {
|
|
1704
|
-
const $ = c(
|
|
1707
|
+
const $ = c(19);
|
|
1705
1708
|
const {
|
|
1706
1709
|
children,
|
|
1707
1710
|
colorScheme,
|
|
1708
1711
|
error,
|
|
1712
|
+
outlined,
|
|
1709
1713
|
onClick,
|
|
1710
1714
|
icon,
|
|
1711
1715
|
size: t1,
|
|
@@ -1723,57 +1727,102 @@ function Chip(t0) {
|
|
|
1723
1727
|
}
|
|
1724
1728
|
const usedColorScheme = t2;
|
|
1725
1729
|
const dark = isDarkMode();
|
|
1726
|
-
const
|
|
1727
|
-
|
|
1730
|
+
const getRgba = _temp$5;
|
|
1731
|
+
let textColor;
|
|
1732
|
+
let bgColor;
|
|
1733
|
+
let border = "";
|
|
1734
|
+
if (error) {
|
|
1735
|
+
textColor = dark ? "#f87171" : "#dc2626";
|
|
1736
|
+
} else {
|
|
1737
|
+
if (usedColorScheme) {
|
|
1738
|
+
textColor = dark && usedColorScheme.darkText ? usedColorScheme.darkText : usedColorScheme.text;
|
|
1739
|
+
} else {
|
|
1740
|
+
textColor = dark ? "#d4d4d4" : "#404040";
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1743
|
+
if (outlined) {
|
|
1744
|
+
let t32;
|
|
1745
|
+
if ($[2] !== textColor) {
|
|
1746
|
+
t32 = getRgba(textColor, dark ? 0.12 : 0.06);
|
|
1747
|
+
$[2] = textColor;
|
|
1748
|
+
$[3] = t32;
|
|
1749
|
+
} else {
|
|
1750
|
+
t32 = $[3];
|
|
1751
|
+
}
|
|
1752
|
+
bgColor = t32;
|
|
1753
|
+
border = `1px solid ${getRgba(textColor, dark ? 0.25 : 0.18)}`;
|
|
1754
|
+
} else {
|
|
1755
|
+
if (error) {
|
|
1756
|
+
bgColor = dark ? "rgba(220, 38, 38, 0.2)" : "rgba(239, 68, 68, 0.15)";
|
|
1757
|
+
border = `1px solid ${dark ? "rgba(220, 38, 38, 0.4)" : "rgba(239, 68, 68, 0.3)"}`;
|
|
1758
|
+
} else {
|
|
1759
|
+
if (usedColorScheme) {
|
|
1760
|
+
bgColor = dark && usedColorScheme.darkColor ? usedColorScheme.darkColor : usedColorScheme.color;
|
|
1761
|
+
} else {
|
|
1762
|
+
bgColor = dark ? "#1f1f1f" : "#f4f4f5";
|
|
1763
|
+
border = `1px solid ${dark ? "#2e2e30" : "#e4e4e7"}`;
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1728
1767
|
const t3 = onClick ? "cursor-pointer hover:bg-surface-accent-300 dark:hover:bg-surface-accent-700" : "";
|
|
1729
1768
|
const t4 = sizeClassNames[size];
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
$[
|
|
1736
|
-
$[
|
|
1737
|
-
$[4] = t4;
|
|
1738
|
-
$[5] = t5;
|
|
1739
|
-
$[6] = t6;
|
|
1740
|
-
$[7] = t7;
|
|
1769
|
+
let t5;
|
|
1770
|
+
if ($[4] !== className || $[5] !== t3 || $[6] !== t4) {
|
|
1771
|
+
t5 = cls("rounded-lg max-w-full w-max h-fit font-regular inline-flex gap-1", "text-ellipsis", "items-center", t3, t4, className);
|
|
1772
|
+
$[4] = className;
|
|
1773
|
+
$[5] = t3;
|
|
1774
|
+
$[6] = t4;
|
|
1775
|
+
$[7] = t5;
|
|
1741
1776
|
} else {
|
|
1742
|
-
|
|
1777
|
+
t5 = $[7];
|
|
1743
1778
|
}
|
|
1744
|
-
const
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1779
|
+
const t6 = border || void 0;
|
|
1780
|
+
let t7;
|
|
1781
|
+
if ($[8] !== bgColor || $[9] !== style || $[10] !== t6 || $[11] !== textColor) {
|
|
1782
|
+
t7 = {
|
|
1783
|
+
backgroundColor: bgColor,
|
|
1784
|
+
color: textColor,
|
|
1785
|
+
border: t6,
|
|
1751
1786
|
overflow: "hidden",
|
|
1752
1787
|
...style
|
|
1753
1788
|
};
|
|
1754
|
-
$[8] =
|
|
1755
|
-
$[9] =
|
|
1756
|
-
$[10] =
|
|
1757
|
-
$[11] =
|
|
1789
|
+
$[8] = bgColor;
|
|
1790
|
+
$[9] = style;
|
|
1791
|
+
$[10] = t6;
|
|
1792
|
+
$[11] = textColor;
|
|
1793
|
+
$[12] = t7;
|
|
1758
1794
|
} else {
|
|
1759
|
-
|
|
1795
|
+
t7 = $[12];
|
|
1760
1796
|
}
|
|
1761
|
-
let
|
|
1762
|
-
if ($[
|
|
1763
|
-
|
|
1797
|
+
let t8;
|
|
1798
|
+
if ($[13] !== children || $[14] !== icon || $[15] !== onClick || $[16] !== t5 || $[17] !== t7) {
|
|
1799
|
+
t8 = /* @__PURE__ */ jsxs("div", { className: t5, onClick, style: t7, children: [
|
|
1764
1800
|
children,
|
|
1765
1801
|
icon
|
|
1766
1802
|
] });
|
|
1767
|
-
$[
|
|
1768
|
-
$[
|
|
1769
|
-
$[
|
|
1770
|
-
$[
|
|
1771
|
-
$[
|
|
1772
|
-
$[
|
|
1803
|
+
$[13] = children;
|
|
1804
|
+
$[14] = icon;
|
|
1805
|
+
$[15] = onClick;
|
|
1806
|
+
$[16] = t5;
|
|
1807
|
+
$[17] = t7;
|
|
1808
|
+
$[18] = t8;
|
|
1773
1809
|
} else {
|
|
1774
|
-
|
|
1810
|
+
t8 = $[18];
|
|
1775
1811
|
}
|
|
1776
|
-
return
|
|
1812
|
+
return t8;
|
|
1813
|
+
}
|
|
1814
|
+
function _temp$5(hex, alpha) {
|
|
1815
|
+
if (!hex || !hex.startsWith("#")) {
|
|
1816
|
+
return hex;
|
|
1817
|
+
}
|
|
1818
|
+
let color = hex.slice(1);
|
|
1819
|
+
if (color.length === 3) {
|
|
1820
|
+
color = color[0] + color[0] + color[1] + color[1] + color[2] + color[2];
|
|
1821
|
+
}
|
|
1822
|
+
const r = parseInt(color.slice(0, 2), 16);
|
|
1823
|
+
const g = parseInt(color.slice(2, 4), 16);
|
|
1824
|
+
const b = parseInt(color.slice(4, 6), 16);
|
|
1825
|
+
return `rgba(${r}, ${g}, ${b}, ${alpha})`;
|
|
1777
1826
|
}
|
|
1778
1827
|
const Tooltip = (t0) => {
|
|
1779
1828
|
const $ = c(30);
|
|
@@ -2037,7 +2086,7 @@ function ColorPicker(t0) {
|
|
|
2037
2086
|
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";
|
|
2038
2087
|
const baseClasses = "inline-flex items-center justify-center p-2 text-sm font-medium focus:outline-none transition-colors ease-in-out duration-150";
|
|
2039
2088
|
const colorClasses$1 = "text-surface-accent-500 visited:text-surface-accent-500 dark:text-surface-accent-300 dark:visited:text-surface-300";
|
|
2040
|
-
const sizeClasses = {
|
|
2089
|
+
const sizeClasses$1 = {
|
|
2041
2090
|
medium: "w-10 !h-10 min-w-10 min-h-10",
|
|
2042
2091
|
small: "w-8 !h-8 min-w-8 min-h-8",
|
|
2043
2092
|
smallest: "w-6 !h-6 min-w-6 min-h-6",
|
|
@@ -2104,7 +2153,7 @@ const IconButtonInner = (t0, ref) => {
|
|
|
2104
2153
|
const t8 = disabled ? "opacity-50 pointer-events-none" : "cursor-pointer";
|
|
2105
2154
|
const t9 = toggled ? "outline outline-2 outline-primary" : "";
|
|
2106
2155
|
const t10 = shapeClasses[shape];
|
|
2107
|
-
const t11 = sizeClasses[size];
|
|
2156
|
+
const t11 = sizeClasses$1[size];
|
|
2108
2157
|
let t12;
|
|
2109
2158
|
if ($[10] !== bgClasses || $[11] !== className || $[12] !== t10 || $[13] !== t11 || $[14] !== t8 || $[15] !== t9) {
|
|
2110
2159
|
t12 = cls(t8, t9, "text-inherit dark:text-inherit", colorClasses$1, bgClasses, baseClasses, buttonClasses, t10, t11, className);
|
|
@@ -2424,7 +2473,7 @@ const Dialog = (t0) => {
|
|
|
2424
2473
|
return () => clearTimeout(timeout);
|
|
2425
2474
|
} else {
|
|
2426
2475
|
setDisplayed(true);
|
|
2427
|
-
return _temp$
|
|
2476
|
+
return _temp$4;
|
|
2428
2477
|
}
|
|
2429
2478
|
};
|
|
2430
2479
|
t7 = [open];
|
|
@@ -2571,7 +2620,7 @@ const Dialog = (t0) => {
|
|
|
2571
2620
|
}
|
|
2572
2621
|
return t28;
|
|
2573
2622
|
};
|
|
2574
|
-
function _temp$
|
|
2623
|
+
function _temp$4() {
|
|
2575
2624
|
}
|
|
2576
2625
|
function DialogActions(t0) {
|
|
2577
2626
|
const $ = c(7);
|
|
@@ -3065,6 +3114,53 @@ function FileUpload(t0) {
|
|
|
3065
3114
|
}
|
|
3066
3115
|
return t16;
|
|
3067
3116
|
}
|
|
3117
|
+
const sizeClasses = {
|
|
3118
|
+
small: "px-2 py-0.5 text-xs",
|
|
3119
|
+
medium: "px-2.5 py-1 text-xs"
|
|
3120
|
+
};
|
|
3121
|
+
function FilterChip(t0) {
|
|
3122
|
+
const $ = c(11);
|
|
3123
|
+
const {
|
|
3124
|
+
children,
|
|
3125
|
+
active: t1,
|
|
3126
|
+
onClick,
|
|
3127
|
+
icon,
|
|
3128
|
+
size: t2,
|
|
3129
|
+
className,
|
|
3130
|
+
disabled: t3
|
|
3131
|
+
} = t0;
|
|
3132
|
+
const active = t1 === void 0 ? false : t1;
|
|
3133
|
+
const size = t2 === void 0 ? "medium" : t2;
|
|
3134
|
+
const disabled = t3 === void 0 ? false : t3;
|
|
3135
|
+
const t4 = sizeClasses[size];
|
|
3136
|
+
let t5;
|
|
3137
|
+
if ($[0] !== active || $[1] !== className || $[2] !== disabled || $[3] !== t4) {
|
|
3138
|
+
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);
|
|
3139
|
+
$[0] = active;
|
|
3140
|
+
$[1] = className;
|
|
3141
|
+
$[2] = disabled;
|
|
3142
|
+
$[3] = t4;
|
|
3143
|
+
$[4] = t5;
|
|
3144
|
+
} else {
|
|
3145
|
+
t5 = $[4];
|
|
3146
|
+
}
|
|
3147
|
+
let t6;
|
|
3148
|
+
if ($[5] !== children || $[6] !== disabled || $[7] !== icon || $[8] !== onClick || $[9] !== t5) {
|
|
3149
|
+
t6 = /* @__PURE__ */ jsxs("button", { type: "button", onClick, disabled, className: t5, children: [
|
|
3150
|
+
icon,
|
|
3151
|
+
children
|
|
3152
|
+
] });
|
|
3153
|
+
$[5] = children;
|
|
3154
|
+
$[6] = disabled;
|
|
3155
|
+
$[7] = icon;
|
|
3156
|
+
$[8] = onClick;
|
|
3157
|
+
$[9] = t5;
|
|
3158
|
+
$[10] = t6;
|
|
3159
|
+
} else {
|
|
3160
|
+
t6 = $[10];
|
|
3161
|
+
}
|
|
3162
|
+
return t6;
|
|
3163
|
+
}
|
|
3068
3164
|
const colorClasses = {
|
|
3069
3165
|
info: "bg-sky-200 dark:bg-teal-900",
|
|
3070
3166
|
warn: "bg-orange-200 dark:bg-yellow-950"
|
|
@@ -3218,7 +3314,7 @@ const proseClasses = {
|
|
|
3218
3314
|
};
|
|
3219
3315
|
const proseWeightOverrides = ["prose-headings:font-normal", "prose-strong:font-semibold", "prose-code:font-normal", "prose-blockquote:font-normal", "prose-a:font-normal"].join(" ");
|
|
3220
3316
|
const md = new MarkdownIt({
|
|
3221
|
-
html:
|
|
3317
|
+
html: false
|
|
3222
3318
|
});
|
|
3223
3319
|
const Markdown = React__default.memo(function Markdown2(t0) {
|
|
3224
3320
|
const $ = c(10);
|
|
@@ -4167,7 +4263,7 @@ const MultiSelect = React.forwardRef((t0, ref) => {
|
|
|
4167
4263
|
let t12;
|
|
4168
4264
|
let t13;
|
|
4169
4265
|
if ($[9] !== children) {
|
|
4170
|
-
t13 = children ? Children.map(children, _temp$
|
|
4266
|
+
t13 = children ? Children.map(children, _temp$3)?.filter(Boolean) ?? [] : [];
|
|
4171
4267
|
$[9] = children;
|
|
4172
4268
|
$[10] = t13;
|
|
4173
4269
|
} else {
|
|
@@ -4717,7 +4813,7 @@ const InnerCheckBox = React.memo(function InnerCheckBox2(t0) {
|
|
|
4717
4813
|
}
|
|
4718
4814
|
return t7;
|
|
4719
4815
|
});
|
|
4720
|
-
function _temp$
|
|
4816
|
+
function _temp$3(child) {
|
|
4721
4817
|
if (React.isValidElement(child)) {
|
|
4722
4818
|
return child.props.value;
|
|
4723
4819
|
}
|
|
@@ -5147,87 +5243,88 @@ function SearchBar(t0) {
|
|
|
5147
5243
|
t10 = $[17];
|
|
5148
5244
|
}
|
|
5149
5245
|
const t11 = searchText ?? "";
|
|
5150
|
-
const t12 =
|
|
5151
|
-
|
|
5246
|
+
const t12 = inputRef;
|
|
5247
|
+
const t13 = !onTextSearch;
|
|
5248
|
+
let t14;
|
|
5152
5249
|
if ($[18] !== onTextSearch) {
|
|
5153
|
-
|
|
5250
|
+
t14 = onTextSearch ? (event) => {
|
|
5154
5251
|
setSearchText(event.target.value);
|
|
5155
5252
|
} : void 0;
|
|
5156
5253
|
$[18] = onTextSearch;
|
|
5157
|
-
$[19] =
|
|
5254
|
+
$[19] = t14;
|
|
5158
5255
|
} else {
|
|
5159
|
-
|
|
5256
|
+
t14 = $[19];
|
|
5160
5257
|
}
|
|
5161
|
-
let t14;
|
|
5162
5258
|
let t15;
|
|
5259
|
+
let t16;
|
|
5163
5260
|
if ($[20] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
$[20] =
|
|
5167
|
-
$[21] =
|
|
5261
|
+
t15 = () => setActive(true);
|
|
5262
|
+
t16 = () => setActive(false);
|
|
5263
|
+
$[20] = t15;
|
|
5264
|
+
$[21] = t16;
|
|
5168
5265
|
} else {
|
|
5169
|
-
|
|
5170
|
-
|
|
5266
|
+
t15 = $[20];
|
|
5267
|
+
t16 = $[21];
|
|
5171
5268
|
}
|
|
5172
|
-
const
|
|
5173
|
-
const
|
|
5174
|
-
const
|
|
5175
|
-
let
|
|
5176
|
-
if ($[22] !== innerClassName || $[23] !== inputPaddingClass || $[24] !==
|
|
5177
|
-
|
|
5269
|
+
const t17 = (disabled || loading) && "pointer-events-none";
|
|
5270
|
+
const t18 = size === "small" ? "text-sm" : "";
|
|
5271
|
+
const t19 = expandable ? active ? "w-[220px]" : "w-[180px]" : "";
|
|
5272
|
+
let t20;
|
|
5273
|
+
if ($[22] !== innerClassName || $[23] !== inputPaddingClass || $[24] !== t17 || $[25] !== t18 || $[26] !== t19) {
|
|
5274
|
+
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);
|
|
5178
5275
|
$[22] = innerClassName;
|
|
5179
5276
|
$[23] = inputPaddingClass;
|
|
5180
|
-
$[24] =
|
|
5181
|
-
$[25] =
|
|
5182
|
-
$[26] =
|
|
5183
|
-
$[27] =
|
|
5277
|
+
$[24] = t17;
|
|
5278
|
+
$[25] = t18;
|
|
5279
|
+
$[26] = t19;
|
|
5280
|
+
$[27] = t20;
|
|
5184
5281
|
} else {
|
|
5185
|
-
|
|
5282
|
+
t20 = $[27];
|
|
5186
5283
|
}
|
|
5187
|
-
let
|
|
5188
|
-
if ($[28] !== autoFocus || $[29] !==
|
|
5189
|
-
|
|
5284
|
+
let t21;
|
|
5285
|
+
if ($[28] !== autoFocus || $[29] !== onClick || $[30] !== placeholder || $[31] !== t11 || $[32] !== t12 || $[33] !== t13 || $[34] !== t14 || $[35] !== t20) {
|
|
5286
|
+
t21 = /* @__PURE__ */ jsx("input", { value: t11, ref: t12, onClick, placeholder, "aria-label": placeholder, readOnly: t13, onChange: t14, autoFocus, onFocus: t15, onBlur: t16, className: t20 });
|
|
5190
5287
|
$[28] = autoFocus;
|
|
5191
|
-
$[29] =
|
|
5192
|
-
$[30] =
|
|
5193
|
-
$[31] =
|
|
5194
|
-
$[32] =
|
|
5195
|
-
$[33] =
|
|
5196
|
-
$[34] =
|
|
5197
|
-
$[35] =
|
|
5198
|
-
$[36] =
|
|
5288
|
+
$[29] = onClick;
|
|
5289
|
+
$[30] = placeholder;
|
|
5290
|
+
$[31] = t11;
|
|
5291
|
+
$[32] = t12;
|
|
5292
|
+
$[33] = t13;
|
|
5293
|
+
$[34] = t14;
|
|
5294
|
+
$[35] = t20;
|
|
5295
|
+
$[36] = t21;
|
|
5199
5296
|
} else {
|
|
5200
|
-
|
|
5297
|
+
t21 = $[36];
|
|
5201
5298
|
}
|
|
5202
|
-
let
|
|
5299
|
+
let t22;
|
|
5203
5300
|
if ($[37] !== clearText || $[38] !== searchText || $[39] !== size) {
|
|
5204
|
-
|
|
5301
|
+
t22 = searchText ? /* @__PURE__ */ 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__ */ jsx(XIcon, { size: iconSize.smallest }) }) : /* @__PURE__ */ jsx("div", { style: {
|
|
5205
5302
|
width: 26
|
|
5206
5303
|
} });
|
|
5207
5304
|
$[37] = clearText;
|
|
5208
5305
|
$[38] = searchText;
|
|
5209
5306
|
$[39] = size;
|
|
5210
|
-
$[40] =
|
|
5307
|
+
$[40] = t22;
|
|
5211
5308
|
} else {
|
|
5212
|
-
|
|
5309
|
+
t22 = $[40];
|
|
5213
5310
|
}
|
|
5214
|
-
let
|
|
5215
|
-
if ($[41] !== onClick || $[42] !== t10 || $[43] !==
|
|
5216
|
-
|
|
5311
|
+
let t23;
|
|
5312
|
+
if ($[41] !== onClick || $[42] !== t10 || $[43] !== t21 || $[44] !== t22 || $[45] !== t7) {
|
|
5313
|
+
t23 = /* @__PURE__ */ jsxs("div", { role: "search", "aria-label": "Search", onClick, className: t7, children: [
|
|
5217
5314
|
t10,
|
|
5218
|
-
|
|
5219
|
-
|
|
5315
|
+
t21,
|
|
5316
|
+
t22
|
|
5220
5317
|
] });
|
|
5221
5318
|
$[41] = onClick;
|
|
5222
5319
|
$[42] = t10;
|
|
5223
|
-
$[43] =
|
|
5224
|
-
$[44] =
|
|
5320
|
+
$[43] = t21;
|
|
5321
|
+
$[44] = t22;
|
|
5225
5322
|
$[45] = t7;
|
|
5226
|
-
$[46] =
|
|
5323
|
+
$[46] = t23;
|
|
5227
5324
|
} else {
|
|
5228
|
-
|
|
5325
|
+
t23 = $[46];
|
|
5229
5326
|
}
|
|
5230
|
-
return
|
|
5327
|
+
return t23;
|
|
5231
5328
|
}
|
|
5232
5329
|
const Select = forwardRef((t0, ref) => {
|
|
5233
5330
|
const $ = c(123);
|
|
@@ -5538,7 +5635,7 @@ const Select = forwardRef((t0, ref) => {
|
|
|
5538
5635
|
}
|
|
5539
5636
|
let t29;
|
|
5540
5637
|
if ($[71] !== placeholder || $[72] !== t28) {
|
|
5541
|
-
t29 = /* @__PURE__ */ jsx(SelectPrimitive.Value, { onClick: _temp$
|
|
5638
|
+
t29 = /* @__PURE__ */ jsx(SelectPrimitive.Value, { onClick: _temp$2, placeholder, className: "w-full", children: t28 });
|
|
5542
5639
|
$[71] = placeholder;
|
|
5543
5640
|
$[72] = t28;
|
|
5544
5641
|
$[73] = t29;
|
|
@@ -5782,7 +5879,7 @@ const SelectGroup = React__default.memo(function SelectGroup2(t0) {
|
|
|
5782
5879
|
}
|
|
5783
5880
|
return t3;
|
|
5784
5881
|
});
|
|
5785
|
-
function _temp$
|
|
5882
|
+
function _temp$2(e) {
|
|
5786
5883
|
e.preventDefault();
|
|
5787
5884
|
e.stopPropagation();
|
|
5788
5885
|
}
|
|
@@ -6121,7 +6218,7 @@ const Sheet = (t0) => {
|
|
|
6121
6218
|
}
|
|
6122
6219
|
T0 = DialogPrimitive.Content;
|
|
6123
6220
|
t7 = props;
|
|
6124
|
-
t8 = _temp;
|
|
6221
|
+
t8 = _temp$1;
|
|
6125
6222
|
t9 = onPointerDownOutside;
|
|
6126
6223
|
t10 = onInteractOutside;
|
|
6127
6224
|
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);
|
|
@@ -6224,7 +6321,7 @@ const Sheet = (t0) => {
|
|
|
6224
6321
|
}
|
|
6225
6322
|
return t21;
|
|
6226
6323
|
};
|
|
6227
|
-
function _temp(event) {
|
|
6324
|
+
function _temp$1(event) {
|
|
6228
6325
|
return event.preventDefault();
|
|
6229
6326
|
}
|
|
6230
6327
|
function getStyleValue(value) {
|
|
@@ -6447,72 +6544,278 @@ function setRef(ref, value) {
|
|
|
6447
6544
|
ref.current = value;
|
|
6448
6545
|
}
|
|
6449
6546
|
}
|
|
6450
|
-
const TextField = forwardRef(({
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
|
|
6458
|
-
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
|
|
6466
|
-
style
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
|
|
6470
|
-
|
|
6471
|
-
|
|
6472
|
-
|
|
6547
|
+
const TextField = forwardRef((t0, ref) => {
|
|
6548
|
+
const $ = c(77);
|
|
6549
|
+
let autoFocus;
|
|
6550
|
+
let className;
|
|
6551
|
+
let disabled;
|
|
6552
|
+
let endAdornment;
|
|
6553
|
+
let error;
|
|
6554
|
+
let inputClassName;
|
|
6555
|
+
let inputProps;
|
|
6556
|
+
let inputRefProp;
|
|
6557
|
+
let inputStyle;
|
|
6558
|
+
let invisible;
|
|
6559
|
+
let label;
|
|
6560
|
+
let minRows;
|
|
6561
|
+
let onChange;
|
|
6562
|
+
let placeholder;
|
|
6563
|
+
let style;
|
|
6564
|
+
let t1;
|
|
6565
|
+
let t2;
|
|
6566
|
+
let t3;
|
|
6567
|
+
let value;
|
|
6568
|
+
if ($[0] !== t0) {
|
|
6569
|
+
const {
|
|
6570
|
+
value: t42,
|
|
6571
|
+
onChange: t52,
|
|
6572
|
+
label: t62,
|
|
6573
|
+
type: t72,
|
|
6574
|
+
multiline: t82,
|
|
6575
|
+
invisible: t92,
|
|
6576
|
+
maxRows,
|
|
6577
|
+
minRows: t102,
|
|
6578
|
+
disabled: t112,
|
|
6579
|
+
error: t122,
|
|
6580
|
+
endAdornment: t132,
|
|
6581
|
+
autoFocus: t142,
|
|
6582
|
+
placeholder: t152,
|
|
6583
|
+
size: t162,
|
|
6584
|
+
className: t172,
|
|
6585
|
+
style: t182,
|
|
6586
|
+
inputClassName: t192,
|
|
6587
|
+
inputStyle: t20,
|
|
6588
|
+
inputRef: t21,
|
|
6589
|
+
...t22
|
|
6590
|
+
} = t0;
|
|
6591
|
+
value = t42;
|
|
6592
|
+
onChange = t52;
|
|
6593
|
+
label = t62;
|
|
6594
|
+
t1 = t72;
|
|
6595
|
+
t2 = t82;
|
|
6596
|
+
invisible = t92;
|
|
6597
|
+
minRows = t102;
|
|
6598
|
+
disabled = t112;
|
|
6599
|
+
error = t122;
|
|
6600
|
+
endAdornment = t132;
|
|
6601
|
+
autoFocus = t142;
|
|
6602
|
+
placeholder = t152;
|
|
6603
|
+
t3 = t162;
|
|
6604
|
+
className = t172;
|
|
6605
|
+
style = t182;
|
|
6606
|
+
inputClassName = t192;
|
|
6607
|
+
inputStyle = t20;
|
|
6608
|
+
inputRefProp = t21;
|
|
6609
|
+
inputProps = t22;
|
|
6610
|
+
$[0] = t0;
|
|
6611
|
+
$[1] = autoFocus;
|
|
6612
|
+
$[2] = className;
|
|
6613
|
+
$[3] = disabled;
|
|
6614
|
+
$[4] = endAdornment;
|
|
6615
|
+
$[5] = error;
|
|
6616
|
+
$[6] = inputClassName;
|
|
6617
|
+
$[7] = inputProps;
|
|
6618
|
+
$[8] = inputRefProp;
|
|
6619
|
+
$[9] = inputStyle;
|
|
6620
|
+
$[10] = invisible;
|
|
6621
|
+
$[11] = label;
|
|
6622
|
+
$[12] = minRows;
|
|
6623
|
+
$[13] = onChange;
|
|
6624
|
+
$[14] = placeholder;
|
|
6625
|
+
$[15] = style;
|
|
6626
|
+
$[16] = t1;
|
|
6627
|
+
$[17] = t2;
|
|
6628
|
+
$[18] = t3;
|
|
6629
|
+
$[19] = value;
|
|
6630
|
+
} else {
|
|
6631
|
+
autoFocus = $[1];
|
|
6632
|
+
className = $[2];
|
|
6633
|
+
disabled = $[3];
|
|
6634
|
+
endAdornment = $[4];
|
|
6635
|
+
error = $[5];
|
|
6636
|
+
inputClassName = $[6];
|
|
6637
|
+
inputProps = $[7];
|
|
6638
|
+
inputRefProp = $[8];
|
|
6639
|
+
inputStyle = $[9];
|
|
6640
|
+
invisible = $[10];
|
|
6641
|
+
label = $[11];
|
|
6642
|
+
minRows = $[12];
|
|
6643
|
+
onChange = $[13];
|
|
6644
|
+
placeholder = $[14];
|
|
6645
|
+
style = $[15];
|
|
6646
|
+
t1 = $[16];
|
|
6647
|
+
t2 = $[17];
|
|
6648
|
+
t3 = $[18];
|
|
6649
|
+
value = $[19];
|
|
6650
|
+
}
|
|
6651
|
+
const type = t1 === void 0 ? "text" : t1;
|
|
6652
|
+
const multiline = t2 === void 0 ? false : t2;
|
|
6653
|
+
const size = t3 === void 0 ? "large" : t3;
|
|
6654
|
+
const fallbackRef = useRef(null);
|
|
6655
|
+
const inputRef = inputRefProp ?? fallbackRef;
|
|
6473
6656
|
const autoId = useId();
|
|
6474
6657
|
const inputId = inputProps.id ?? autoId;
|
|
6475
6658
|
const labelId = `${inputId}-label`;
|
|
6476
6659
|
const [focused, setFocused] = React__default.useState(false);
|
|
6477
6660
|
const hasValue = value !== void 0 && value !== null && value !== "";
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6483
|
-
|
|
6484
|
-
if (type !== "number") return;
|
|
6485
|
-
const handleWheel = (event) => {
|
|
6486
|
-
if (event.target instanceof HTMLElement) event.target.blur();
|
|
6661
|
+
let t4;
|
|
6662
|
+
if ($[20] !== inputRef.current) {
|
|
6663
|
+
t4 = () => {
|
|
6664
|
+
if (inputRef.current && document.activeElement === inputRef.current) {
|
|
6665
|
+
setFocused(true);
|
|
6666
|
+
}
|
|
6487
6667
|
};
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6668
|
+
$[20] = inputRef.current;
|
|
6669
|
+
$[21] = t4;
|
|
6670
|
+
} else {
|
|
6671
|
+
t4 = $[21];
|
|
6672
|
+
}
|
|
6673
|
+
let t5;
|
|
6674
|
+
if ($[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
6675
|
+
t5 = [];
|
|
6676
|
+
$[22] = t5;
|
|
6677
|
+
} else {
|
|
6678
|
+
t5 = $[22];
|
|
6679
|
+
}
|
|
6680
|
+
useEffect(t4, t5);
|
|
6681
|
+
let t6;
|
|
6682
|
+
let t7;
|
|
6683
|
+
if ($[23] !== inputRef || $[24] !== type) {
|
|
6684
|
+
t6 = () => {
|
|
6685
|
+
if (type !== "number") {
|
|
6686
|
+
return;
|
|
6687
|
+
}
|
|
6688
|
+
const handleWheel = _temp;
|
|
6689
|
+
const element = "current" in inputRef ? inputRef.current : inputRef;
|
|
6690
|
+
element?.addEventListener("wheel", handleWheel);
|
|
6691
|
+
return () => {
|
|
6692
|
+
element?.removeEventListener("wheel", handleWheel);
|
|
6693
|
+
};
|
|
6492
6694
|
};
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6499
|
-
|
|
6500
|
-
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6695
|
+
t7 = [inputRef, type];
|
|
6696
|
+
$[23] = inputRef;
|
|
6697
|
+
$[24] = type;
|
|
6698
|
+
$[25] = t6;
|
|
6699
|
+
$[26] = t7;
|
|
6700
|
+
} else {
|
|
6701
|
+
t6 = $[25];
|
|
6702
|
+
t7 = $[26];
|
|
6703
|
+
}
|
|
6704
|
+
useEffect(t6, t7);
|
|
6705
|
+
let t8;
|
|
6706
|
+
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) {
|
|
6707
|
+
t8 = multiline ? /* @__PURE__ */ 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__ */ 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, {
|
|
6708
|
+
"min-h-[28px]": size === "smallest",
|
|
6709
|
+
"min-h-[32px]": size === "small",
|
|
6710
|
+
"min-h-[44px]": size === "medium",
|
|
6711
|
+
"min-h-[64px]": size === "large"
|
|
6712
|
+
}, 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 });
|
|
6713
|
+
$[27] = autoFocus;
|
|
6714
|
+
$[28] = disabled;
|
|
6715
|
+
$[29] = endAdornment;
|
|
6716
|
+
$[30] = error;
|
|
6717
|
+
$[31] = focused;
|
|
6718
|
+
$[32] = hasValue;
|
|
6719
|
+
$[33] = inputClassName;
|
|
6720
|
+
$[34] = inputId;
|
|
6721
|
+
$[35] = inputProps;
|
|
6722
|
+
$[36] = inputRef;
|
|
6723
|
+
$[37] = inputStyle;
|
|
6724
|
+
$[38] = invisible;
|
|
6725
|
+
$[39] = label;
|
|
6726
|
+
$[40] = labelId;
|
|
6727
|
+
$[41] = minRows;
|
|
6728
|
+
$[42] = multiline;
|
|
6729
|
+
$[43] = onChange;
|
|
6730
|
+
$[44] = placeholder;
|
|
6731
|
+
$[45] = size;
|
|
6732
|
+
$[46] = type;
|
|
6733
|
+
$[47] = value;
|
|
6734
|
+
$[48] = t8;
|
|
6735
|
+
} else {
|
|
6736
|
+
t8 = $[48];
|
|
6737
|
+
}
|
|
6738
|
+
const input = t8;
|
|
6739
|
+
const t9 = invisible ? fieldBackgroundInvisibleMixin : fieldBackgroundMixin;
|
|
6740
|
+
const t10 = disabled ? fieldBackgroundDisabledMixin : fieldBackgroundHoverMixin;
|
|
6741
|
+
const t11 = error ? "border border-red-500 dark:border-red-600" : "";
|
|
6742
|
+
const t12 = size === "smallest";
|
|
6743
|
+
const t13 = size === "small";
|
|
6744
|
+
const t14 = size === "medium";
|
|
6745
|
+
const t15 = size === "large";
|
|
6746
|
+
let t16;
|
|
6747
|
+
if ($[49] !== className || $[50] !== t10 || $[51] !== t11 || $[52] !== t12 || $[53] !== t13 || $[54] !== t14 || $[55] !== t15 || $[56] !== t9) {
|
|
6748
|
+
t16 = cls("rounded-md relative max-w-full", t9, t10, t11, {
|
|
6749
|
+
"min-h-[28px]": t12,
|
|
6750
|
+
"min-h-[32px]": t13,
|
|
6751
|
+
"min-h-[44px]": t14,
|
|
6752
|
+
"min-h-[64px]": t15
|
|
6753
|
+
}, className);
|
|
6754
|
+
$[49] = className;
|
|
6755
|
+
$[50] = t10;
|
|
6756
|
+
$[51] = t11;
|
|
6757
|
+
$[52] = t12;
|
|
6758
|
+
$[53] = t13;
|
|
6759
|
+
$[54] = t14;
|
|
6760
|
+
$[55] = t15;
|
|
6761
|
+
$[56] = t9;
|
|
6762
|
+
$[57] = t16;
|
|
6763
|
+
} else {
|
|
6764
|
+
t16 = $[57];
|
|
6765
|
+
}
|
|
6766
|
+
let t17;
|
|
6767
|
+
if ($[58] !== disabled || $[59] !== error || $[60] !== focused || $[61] !== hasValue || $[62] !== inputId || $[63] !== label || $[64] !== labelId || $[65] !== size) {
|
|
6768
|
+
t17 = label && /* @__PURE__ */ 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 });
|
|
6769
|
+
$[58] = disabled;
|
|
6770
|
+
$[59] = error;
|
|
6771
|
+
$[60] = focused;
|
|
6772
|
+
$[61] = hasValue;
|
|
6773
|
+
$[62] = inputId;
|
|
6774
|
+
$[63] = label;
|
|
6775
|
+
$[64] = labelId;
|
|
6776
|
+
$[65] = size;
|
|
6777
|
+
$[66] = t17;
|
|
6778
|
+
} else {
|
|
6779
|
+
t17 = $[66];
|
|
6780
|
+
}
|
|
6781
|
+
let t18;
|
|
6782
|
+
if ($[67] !== endAdornment || $[68] !== size) {
|
|
6783
|
+
t18 = endAdornment && /* @__PURE__ */ jsx("div", { className: cls("flex flex-row justify-center items-center absolute h-full right-0 top-0", {
|
|
6509
6784
|
"mr-4": size === "large",
|
|
6510
6785
|
"mr-3": size === "medium",
|
|
6511
6786
|
"mr-2": size === "small" || size === "smallest"
|
|
6512
|
-
}), children: endAdornment })
|
|
6513
|
-
|
|
6787
|
+
}), children: endAdornment });
|
|
6788
|
+
$[67] = endAdornment;
|
|
6789
|
+
$[68] = size;
|
|
6790
|
+
$[69] = t18;
|
|
6791
|
+
} else {
|
|
6792
|
+
t18 = $[69];
|
|
6793
|
+
}
|
|
6794
|
+
let t19;
|
|
6795
|
+
if ($[70] !== input || $[71] !== ref || $[72] !== style || $[73] !== t16 || $[74] !== t17 || $[75] !== t18) {
|
|
6796
|
+
t19 = /* @__PURE__ */ jsxs("div", { ref, className: t16, style, children: [
|
|
6797
|
+
t17,
|
|
6798
|
+
input,
|
|
6799
|
+
t18
|
|
6800
|
+
] });
|
|
6801
|
+
$[70] = input;
|
|
6802
|
+
$[71] = ref;
|
|
6803
|
+
$[72] = style;
|
|
6804
|
+
$[73] = t16;
|
|
6805
|
+
$[74] = t17;
|
|
6806
|
+
$[75] = t18;
|
|
6807
|
+
$[76] = t19;
|
|
6808
|
+
} else {
|
|
6809
|
+
t19 = $[76];
|
|
6810
|
+
}
|
|
6811
|
+
return t19;
|
|
6514
6812
|
});
|
|
6515
6813
|
TextField.displayName = "TextField";
|
|
6814
|
+
function _temp(event) {
|
|
6815
|
+
if (event.target instanceof HTMLElement) {
|
|
6816
|
+
event.target.blur();
|
|
6817
|
+
}
|
|
6818
|
+
}
|
|
6516
6819
|
const TabsContext = createContext({
|
|
6517
6820
|
variant: "standard"
|
|
6518
6821
|
});
|
|
@@ -8594,41 +8897,111 @@ function HandleIcon() {
|
|
|
8594
8897
|
}
|
|
8595
8898
|
export {
|
|
8596
8899
|
Alert,
|
|
8900
|
+
AlertCircleIcon2 as AlertCircleIcon,
|
|
8901
|
+
AlertTriangleIcon,
|
|
8902
|
+
AlignLeftIcon,
|
|
8903
|
+
AppWindow,
|
|
8904
|
+
ArrowDownToLineIcon,
|
|
8905
|
+
ArrowLeftIcon,
|
|
8906
|
+
ArrowRightFromLineIcon,
|
|
8907
|
+
ArrowRightIcon,
|
|
8908
|
+
ArrowRightToLineIcon,
|
|
8909
|
+
ArrowUpToLineIcon,
|
|
8597
8910
|
Autocomplete,
|
|
8598
8911
|
AutocompleteItem,
|
|
8599
8912
|
Avatar,
|
|
8600
8913
|
Badge,
|
|
8914
|
+
BoldIcon,
|
|
8915
|
+
BookOpenIcon,
|
|
8601
8916
|
BooleanSwitch,
|
|
8602
8917
|
BooleanSwitchWithLabel,
|
|
8603
8918
|
Button,
|
|
8604
8919
|
CHIP_COLORS,
|
|
8920
|
+
CalendarIcon2 as CalendarIcon,
|
|
8605
8921
|
Card,
|
|
8606
8922
|
CenteredView,
|
|
8923
|
+
CheckCircleIcon,
|
|
8924
|
+
CheckIcon2 as CheckIcon,
|
|
8925
|
+
CheckSquareIcon,
|
|
8607
8926
|
Checkbox,
|
|
8927
|
+
ChevronDownIcon2 as ChevronDownIcon,
|
|
8928
|
+
ChevronLeftIcon2 as ChevronLeftIcon,
|
|
8929
|
+
ChevronRightIcon2 as ChevronRightIcon,
|
|
8930
|
+
ChevronUpIcon,
|
|
8931
|
+
ChevronsLeftIcon,
|
|
8932
|
+
ChevronsRightIcon,
|
|
8933
|
+
ChevronsUpDownIcon,
|
|
8608
8934
|
Chip,
|
|
8935
|
+
CircleIcon,
|
|
8936
|
+
CircleUserIcon,
|
|
8609
8937
|
CircularProgress,
|
|
8610
8938
|
CircularProgressCenter,
|
|
8939
|
+
CodeIcon,
|
|
8611
8940
|
Collapse,
|
|
8612
8941
|
ColorPicker,
|
|
8942
|
+
ColumnsIcon,
|
|
8613
8943
|
Container,
|
|
8944
|
+
CopyIcon,
|
|
8945
|
+
DatabaseIcon,
|
|
8614
8946
|
DateTimeField,
|
|
8615
8947
|
DebouncedTextField,
|
|
8616
8948
|
Dialog,
|
|
8617
8949
|
DialogActions,
|
|
8618
8950
|
DialogContent,
|
|
8619
8951
|
DialogTitle,
|
|
8952
|
+
DownloadIcon,
|
|
8620
8953
|
ErrorBoundary,
|
|
8621
8954
|
ExpandablePanel,
|
|
8955
|
+
ExternalLinkIcon,
|
|
8956
|
+
EyeIcon,
|
|
8957
|
+
EyeOffIcon,
|
|
8958
|
+
FileIcon,
|
|
8959
|
+
FileSearchIcon,
|
|
8960
|
+
FileTextIcon,
|
|
8622
8961
|
FileUpload,
|
|
8962
|
+
FilterChip,
|
|
8963
|
+
FilterIcon2 as FilterIcon,
|
|
8964
|
+
FilterXIcon,
|
|
8965
|
+
FlagIcon,
|
|
8966
|
+
FolderIcon,
|
|
8967
|
+
FolderPlusIcon,
|
|
8968
|
+
FolderUpIcon,
|
|
8969
|
+
FunctionSquareIcon,
|
|
8970
|
+
GitBranchIcon,
|
|
8623
8971
|
GitHubIcon,
|
|
8972
|
+
GlobeIcon,
|
|
8624
8973
|
HandleIcon,
|
|
8974
|
+
HashIcon,
|
|
8975
|
+
Heading1Icon,
|
|
8976
|
+
Heading2Icon,
|
|
8977
|
+
Heading3Icon,
|
|
8978
|
+
HelpCircleIcon,
|
|
8979
|
+
HistoryIcon,
|
|
8980
|
+
HomeIcon,
|
|
8625
8981
|
IconButton,
|
|
8982
|
+
ImageIcon,
|
|
8983
|
+
ImageOffIcon,
|
|
8984
|
+
InfoIcon,
|
|
8626
8985
|
InfoLabel,
|
|
8627
8986
|
InputLabel,
|
|
8987
|
+
ItalicIcon,
|
|
8988
|
+
KanbanIcon,
|
|
8989
|
+
KeyIcon,
|
|
8990
|
+
KeyRoundIcon,
|
|
8628
8991
|
Label,
|
|
8992
|
+
LanguagesIcon,
|
|
8993
|
+
LayoutGridIcon,
|
|
8994
|
+
LinkIcon,
|
|
8995
|
+
ListIcon,
|
|
8996
|
+
ListOrderedIcon,
|
|
8997
|
+
LoaderIcon,
|
|
8629
8998
|
LoadingButton,
|
|
8999
|
+
LogOutIcon,
|
|
9000
|
+
MailIcon,
|
|
8630
9001
|
Markdown,
|
|
9002
|
+
Maximize2Icon,
|
|
8631
9003
|
Menu,
|
|
9004
|
+
MenuIcon,
|
|
8632
9005
|
MenuItem,
|
|
8633
9006
|
Menubar,
|
|
8634
9007
|
MenubarCheckboxItem,
|
|
@@ -8646,37 +9019,85 @@ export {
|
|
|
8646
9019
|
MenubarSubTrigger,
|
|
8647
9020
|
MenubarSubTriggerIndicator,
|
|
8648
9021
|
MenubarTrigger,
|
|
9022
|
+
MinusCircleIcon,
|
|
9023
|
+
MinusIcon2 as MinusIcon,
|
|
9024
|
+
MoonIcon,
|
|
9025
|
+
MoreVerticalIcon,
|
|
8649
9026
|
MultiSelect,
|
|
8650
9027
|
MultiSelectContext,
|
|
8651
9028
|
MultiSelectItem,
|
|
9029
|
+
Music2Icon,
|
|
9030
|
+
PanelLeftIcon,
|
|
8652
9031
|
Paper,
|
|
9032
|
+
PauseIcon,
|
|
9033
|
+
PencilIcon,
|
|
9034
|
+
PhoneIcon,
|
|
9035
|
+
PlayIcon,
|
|
9036
|
+
PlusIcon,
|
|
8653
9037
|
Popover,
|
|
9038
|
+
PopoverPrimitive,
|
|
9039
|
+
reactPortal as Portal,
|
|
8654
9040
|
PortalContainerProvider,
|
|
9041
|
+
QuoteIcon,
|
|
8655
9042
|
RadioGroup,
|
|
8656
9043
|
RadioGroupItem,
|
|
9044
|
+
RefreshCcwIcon,
|
|
9045
|
+
RefreshCwIcon,
|
|
9046
|
+
RepeatIcon,
|
|
8657
9047
|
ResizablePanels,
|
|
9048
|
+
Rows3Icon,
|
|
9049
|
+
SaveIcon,
|
|
8658
9050
|
SearchBar,
|
|
9051
|
+
SearchIcon2 as SearchIcon,
|
|
8659
9052
|
Select,
|
|
8660
9053
|
SelectGroup,
|
|
8661
9054
|
SelectInputLabel,
|
|
8662
9055
|
SelectItem,
|
|
9056
|
+
SendIcon,
|
|
8663
9057
|
Separator,
|
|
9058
|
+
SettingsIcon,
|
|
8664
9059
|
Sheet,
|
|
9060
|
+
ShieldIcon,
|
|
9061
|
+
ShoppingCartIcon,
|
|
8665
9062
|
Skeleton,
|
|
8666
9063
|
Slider,
|
|
9064
|
+
SlidersHorizontalIcon,
|
|
9065
|
+
Slot,
|
|
9066
|
+
SquareIcon,
|
|
9067
|
+
StarIcon,
|
|
9068
|
+
StrikethroughIcon,
|
|
9069
|
+
SunIcon,
|
|
9070
|
+
SunMoonIcon,
|
|
8667
9071
|
Tab,
|
|
8668
9072
|
Table,
|
|
8669
9073
|
TableBody,
|
|
8670
9074
|
TableCell,
|
|
8671
9075
|
TableHeader,
|
|
9076
|
+
TableIcon,
|
|
8672
9077
|
TableRow,
|
|
8673
9078
|
Tabs,
|
|
9079
|
+
TagIcon,
|
|
9080
|
+
TerminalIcon,
|
|
8674
9081
|
TextField,
|
|
9082
|
+
TextIcon,
|
|
8675
9083
|
TextareaAutosize,
|
|
8676
9084
|
ToggleButtonGroup,
|
|
8677
9085
|
Tooltip,
|
|
9086
|
+
Trash2Icon,
|
|
9087
|
+
TypeIcon,
|
|
8678
9088
|
Typography,
|
|
9089
|
+
UnderlineIcon,
|
|
9090
|
+
UndoIcon,
|
|
9091
|
+
UploadCloudIcon,
|
|
9092
|
+
UploadIcon,
|
|
9093
|
+
UserCheckIcon,
|
|
9094
|
+
UserIcon,
|
|
9095
|
+
VideoIcon,
|
|
8679
9096
|
VirtualTable,
|
|
9097
|
+
VoteIcon,
|
|
9098
|
+
Wand2Icon,
|
|
9099
|
+
XCircleIcon,
|
|
9100
|
+
XIcon2 as XIcon,
|
|
8680
9101
|
cardClickableMixin,
|
|
8681
9102
|
cardMixin,
|
|
8682
9103
|
cardSelectedMixin,
|
|
@@ -8697,6 +9118,7 @@ export {
|
|
|
8697
9118
|
iconKeys,
|
|
8698
9119
|
iconSize,
|
|
8699
9120
|
keyToIconComponent,
|
|
9121
|
+
icons as lucideIcons,
|
|
8700
9122
|
paperMixin,
|
|
8701
9123
|
useAutoComplete,
|
|
8702
9124
|
useDebounceCallback,
|