@nexub/react 0.0.2 → 1.1.0
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/chunk-24CZFBTG.js +83 -0
- package/dist/chunk-2MKB5FQI.js +122 -0
- package/dist/chunk-2RLSIOGB.js +173 -0
- package/dist/chunk-2VDP2ML4.js +105 -0
- package/dist/chunk-3CSKW56L.js +44 -0
- package/dist/chunk-3U54QLYB.js +87 -0
- package/dist/chunk-46CFSBEO.js +48 -0
- package/dist/chunk-4BTP4464.js +92 -0
- package/dist/chunk-4NGB7XIM.js +88 -0
- package/dist/chunk-4OCXGNP3.js +85 -0
- package/dist/chunk-52KTX5A7.js +119 -0
- package/dist/chunk-6AZP6VBM.js +62 -0
- package/dist/chunk-6Y734SXN.js +51 -0
- package/dist/chunk-7B4FS7VQ.js +150 -0
- package/dist/chunk-7W2YDJ5W.js +128 -0
- package/dist/chunk-A7L75YXY.js +61 -0
- package/dist/chunk-ADO2DB6Q.js +1 -0
- package/dist/chunk-AHZQQ7OT.js +83 -0
- package/dist/chunk-AT6RPKU3.js +12 -0
- package/dist/chunk-BBVOB4EC.js +36 -0
- package/dist/chunk-BGY23Y5O.js +104 -0
- package/dist/chunk-BJKW3G2L.js +99 -0
- package/dist/chunk-BMVAZIAJ.js +187 -0
- package/dist/chunk-BTZW34TX.js +76 -0
- package/dist/chunk-BUBYXAJK.js +20 -0
- package/dist/chunk-BV3U3ATL.js +1 -0
- package/dist/chunk-BYCTJHXY.js +75 -0
- package/dist/chunk-BYF223HT.js +92 -0
- package/dist/chunk-CPV367VS.js +106 -0
- package/dist/chunk-CVBAWKNG.js +124 -0
- package/dist/chunk-CZUNTABW.js +25 -0
- package/dist/chunk-DAXDAFNG.js +92 -0
- package/dist/chunk-DD6XCW6R.js +53 -0
- package/dist/chunk-DEH2Z27F.js +50 -0
- package/dist/chunk-DOHXBNOP.js +119 -0
- package/dist/chunk-DR2Y3PIT.js +91 -0
- package/dist/chunk-ELC2NBGH.js +89 -0
- package/dist/chunk-EV43I5J6.js +1 -0
- package/dist/chunk-FS4XKWFA.js +308 -0
- package/dist/chunk-FUJOSPNQ.js +38 -0
- package/dist/chunk-GTQIA62H.js +60 -0
- package/dist/chunk-H4MXRAXP.js +37 -0
- package/dist/chunk-HW3I7I3R.js +29 -0
- package/dist/chunk-HY3JWSG4.js +1 -0
- package/dist/chunk-I5Z3A7N3.js +40 -0
- package/dist/chunk-IBCYG6HR.js +55 -0
- package/dist/chunk-IHW2L532.js +175 -0
- package/dist/chunk-IU76LV3W.js +101 -0
- package/dist/chunk-IZ6ZPEZ2.js +1 -0
- package/dist/chunk-JCUVWDUC.js +57 -0
- package/dist/chunk-JKTZMWWC.js +63 -0
- package/dist/chunk-JQDLCN5D.js +66 -0
- package/dist/chunk-K7CUCLLI.js +43 -0
- package/dist/chunk-KBB7M6WO.js +65 -0
- package/dist/chunk-KLTQJZOX.js +1 -0
- package/dist/chunk-KWWV3CM3.js +62 -0
- package/dist/chunk-KZW37FQZ.js +40 -0
- package/dist/chunk-L6GBZ2HB.js +145 -0
- package/dist/chunk-LAWZQ6R6.js +76 -0
- package/dist/chunk-LOP63AVE.js +49 -0
- package/dist/chunk-MY6XUJ5P.js +216 -0
- package/dist/chunk-N2GIMMTF.js +98 -0
- package/dist/chunk-NAIZ7R2L.js +59 -0
- package/dist/chunk-NHUQLIHL.js +9 -0
- package/dist/chunk-NZ7UK3G6.js +1 -0
- package/dist/chunk-OUBBOOZE.js +34 -0
- package/dist/chunk-OZPPL76D.js +82 -0
- package/dist/chunk-P6BZNFVU.js +38 -0
- package/dist/chunk-PANDAMD2.js +54 -0
- package/dist/chunk-PBLEGOLM.js +71 -0
- package/dist/chunk-PER3O4FD.js +33 -0
- package/dist/chunk-PICMOOAZ.js +1 -0
- package/dist/chunk-POBSY7EZ.js +155 -0
- package/dist/chunk-POFKKYHY.js +37 -0
- package/dist/chunk-QF7GUDOE.js +67 -0
- package/dist/chunk-QHJ43Q2T.js +70 -0
- package/dist/chunk-QURKXXNS.js +46 -0
- package/dist/chunk-ROZVVWPV.js +8 -0
- package/dist/chunk-S344IRK4.js +63 -0
- package/dist/chunk-SZKUSLHI.js +176 -0
- package/dist/chunk-T4IVMVMQ.js +32 -0
- package/dist/chunk-TCTFQYLH.js +115 -0
- package/dist/chunk-U3AEA4BZ.js +56 -0
- package/dist/chunk-U3EGB3JL.js +43 -0
- package/dist/chunk-UALYS4XI.js +67 -0
- package/dist/chunk-UTBUIBEP.js +153 -0
- package/dist/chunk-UWWL5FPC.js +80 -0
- package/dist/chunk-V3FZHIEB.js +52 -0
- package/dist/chunk-V6GZZFTV.js +106 -0
- package/dist/chunk-VPZCQFVY.js +33 -0
- package/dist/chunk-VT7RKY46.js +49 -0
- package/dist/chunk-W4IEXUD4.js +127 -0
- package/dist/chunk-WPPNDU2E.js +36 -0
- package/dist/chunk-XNDCVVNE.js +45 -0
- package/dist/chunk-Y45JAJKW.js +44 -0
- package/dist/chunk-YAGVMERC.js +81 -0
- package/dist/chunk-YGOR3KT7.js +46 -0
- package/dist/chunk-YJD66LTV.js +54 -0
- package/dist/chunk-YJU4ZRQZ.js +1 -0
- package/dist/chunk-YUFCNHZF.js +27 -0
- package/dist/chunk-YUNWZAAD.js +57 -0
- package/dist/chunk-ZFVBFCYV.js +84 -0
- package/dist/chunk-ZXLACKEB.js +8 -0
- package/dist/components/Accordion/index.js +8 -0
- package/dist/components/Alert/index.js +10 -0
- package/dist/components/AlertDialog/index.js +8 -0
- package/dist/components/AppShell/index.js +8 -0
- package/dist/components/AspectRatio/index.js +8 -0
- package/dist/components/Autocomplete/index.js +9 -0
- package/dist/components/Avatar/index.js +11 -0
- package/dist/components/AvatarGroup/index.js +11 -0
- package/dist/components/Badge/index.js +10 -0
- package/dist/components/Banner/index.js +10 -0
- package/dist/components/Box/index.js +8 -0
- package/dist/components/Breadcrumb/index.js +8 -0
- package/dist/components/Button/index.js +10 -0
- package/dist/components/ButtonGroup/index.js +8 -0
- package/dist/components/Callout/index.js +10 -0
- package/dist/components/Card/index.js +11 -0
- package/dist/components/CheckList/index.js +10 -0
- package/dist/components/Checkbox/index.js +8 -0
- package/dist/components/Chip/index.js +10 -0
- package/dist/components/Code/index.js +8 -0
- package/dist/components/Collapsible/index.js +8 -0
- package/dist/components/Combobox/index.js +9 -0
- package/dist/components/CommandPalette/index.js +8 -0
- package/dist/components/Container/index.js +10 -0
- package/dist/components/ContextMenu/index.js +8 -0
- package/dist/components/CountryBadge/index.js +9 -0
- package/dist/components/DataTable/index.js +8 -0
- package/dist/components/DatePicker/index.js +8 -0
- package/dist/components/DateRangePicker/index.js +8 -0
- package/dist/components/Dialog/index.js +9 -0
- package/dist/components/Drawer/index.js +11 -0
- package/dist/components/DropdownMenu/index.js +8 -0
- package/dist/components/EmptyState/index.js +8 -0
- package/dist/components/ErrorState/index.js +8 -0
- package/dist/components/EyebrowChip/index.js +8 -0
- package/dist/components/FileUpload/index.js +8 -0
- package/dist/components/FilterChip/index.js +8 -0
- package/dist/components/Flag/index.js +9 -0
- package/dist/components/Flex/index.js +8 -0
- package/dist/components/FormError/index.js +9 -0
- package/dist/components/FormField/index.js +11 -0
- package/dist/components/GradientDivider/index.js +8 -0
- package/dist/components/Grid/index.js +8 -0
- package/dist/components/Heading/index.js +10 -0
- package/dist/components/HelperText/index.js +9 -0
- package/dist/components/HoverCard/index.js +8 -0
- package/dist/components/IconButton/index.js +10 -0
- package/dist/components/Input/index.js +15 -0
- package/dist/components/Kbd/index.js +9 -0
- package/dist/components/KeyboardShortcut/index.js +9 -0
- package/dist/components/Label/index.js +11 -0
- package/dist/components/Link/index.js +10 -0
- package/dist/components/Logo/index.js +10 -0
- package/dist/components/Menubar/index.js +8 -0
- package/dist/components/Motion/index.js +13 -0
- package/dist/components/NavigationMenu/index.js +8 -0
- package/dist/components/NumberInput/index.js +9 -0
- package/dist/components/PageHeader/index.js +8 -0
- package/dist/components/Pagination/index.js +8 -0
- package/dist/components/PasswordInput/index.js +9 -0
- package/dist/components/Popover/index.js +9 -0
- package/dist/components/Progress/index.js +12 -0
- package/dist/components/RadioGroup/index.js +8 -0
- package/dist/components/Rating/index.js +11 -0
- package/dist/components/ScrollArea/index.js +8 -0
- package/dist/components/SearchInput/index.js +9 -0
- package/dist/components/Section/index.js +10 -0
- package/dist/components/SegmentedControl/index.js +8 -0
- package/dist/components/Select/index.js +8 -0
- package/dist/components/Separator/index.js +10 -0
- package/dist/components/Sidebar/index.js +8 -0
- package/dist/components/Skeleton/index.js +10 -0
- package/dist/components/Slider/index.js +8 -0
- package/dist/components/Spinner/index.js +10 -0
- package/dist/components/Stack/index.js +8 -0
- package/dist/components/StatusPill/index.js +10 -0
- package/dist/components/Switch/index.js +8 -0
- package/dist/components/Table/index.js +8 -0
- package/dist/components/Tabs/index.js +8 -0
- package/dist/components/Tag/index.js +10 -0
- package/dist/components/Text/index.js +10 -0
- package/dist/components/TextGradient/index.js +8 -0
- package/dist/components/Textarea/index.js +10 -0
- package/dist/components/ThemeProvider/index.js +10 -0
- package/dist/components/Toast/index.js +14 -0
- package/dist/components/Toggle/index.js +11 -0
- package/dist/components/ToggleGroup/index.js +9 -0
- package/dist/components/Toolbar/index.js +8 -0
- package/dist/components/Tooltip/index.js +16 -0
- package/dist/components/TopNav/index.js +9 -0
- package/dist/components/VisuallyHidden/index.js +7 -0
- package/dist/index.d.ts +41 -13
- package/dist/index.js +479 -5856
- package/package.json +24 -12
- package/dist/index.cjs +0 -6072
- package/dist/index.d.cts +0 -1234
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
useIsomorphicLayoutEffect
|
|
4
|
+
} from "./chunk-NHUQLIHL.js";
|
|
5
|
+
import {
|
|
6
|
+
cn
|
|
7
|
+
} from "./chunk-AT6RPKU3.js";
|
|
8
|
+
|
|
9
|
+
// src/components/Rating/Rating.tsx
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import { cva } from "class-variance-authority";
|
|
12
|
+
|
|
13
|
+
// src/hooks/useControllableState.ts
|
|
14
|
+
import { useState, useCallback, useRef } from "react";
|
|
15
|
+
function useControllableState({
|
|
16
|
+
value: controlledValue,
|
|
17
|
+
defaultValue,
|
|
18
|
+
onChange
|
|
19
|
+
}) {
|
|
20
|
+
const [uncontrolled, setUncontrolled] = useState(defaultValue);
|
|
21
|
+
const isControlled = controlledValue !== void 0;
|
|
22
|
+
const value = isControlled ? controlledValue : uncontrolled;
|
|
23
|
+
const onChangeRef = useRef(onChange);
|
|
24
|
+
useIsomorphicLayoutEffect(() => {
|
|
25
|
+
onChangeRef.current = onChange;
|
|
26
|
+
});
|
|
27
|
+
const setValue = useCallback(
|
|
28
|
+
(next) => {
|
|
29
|
+
if (!isControlled) setUncontrolled(next);
|
|
30
|
+
onChangeRef.current?.(next);
|
|
31
|
+
},
|
|
32
|
+
[isControlled]
|
|
33
|
+
);
|
|
34
|
+
return [value, setValue];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// src/components/Rating/Rating.tsx
|
|
38
|
+
import { jsx } from "react/jsx-runtime";
|
|
39
|
+
var ratingVariants = cva("inline-flex items-center gap-0.5", {
|
|
40
|
+
variants: {
|
|
41
|
+
size: {
|
|
42
|
+
sm: "[&_svg]:h-4 [&_svg]:w-4",
|
|
43
|
+
md: "[&_svg]:h-5 [&_svg]:w-5",
|
|
44
|
+
lg: "[&_svg]:h-7 [&_svg]:w-7"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
defaultVariants: {
|
|
48
|
+
size: "md"
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
var Rating = React.forwardRef(
|
|
52
|
+
({
|
|
53
|
+
className,
|
|
54
|
+
size,
|
|
55
|
+
value: controlledValue,
|
|
56
|
+
max = 5,
|
|
57
|
+
readOnly = false,
|
|
58
|
+
onValueChange,
|
|
59
|
+
...props
|
|
60
|
+
}, ref) => {
|
|
61
|
+
const [value, setValue] = useControllableState({
|
|
62
|
+
value: controlledValue,
|
|
63
|
+
defaultValue: 0,
|
|
64
|
+
onChange: onValueChange
|
|
65
|
+
});
|
|
66
|
+
const [hovered, setHovered] = React.useState(null);
|
|
67
|
+
const displayValue = hovered ?? value ?? 0;
|
|
68
|
+
const starRefs = React.useRef([]);
|
|
69
|
+
const tabStop = value && value > 0 ? value : 1;
|
|
70
|
+
const handleKeyDown = (e, starValue) => {
|
|
71
|
+
const next = e.key === "ArrowRight" || e.key === "ArrowUp" ? Math.min(max, starValue + 1) : e.key === "ArrowLeft" || e.key === "ArrowDown" ? Math.max(1, starValue - 1) : e.key === "Home" ? 1 : e.key === "End" ? max : null;
|
|
72
|
+
if (next === null) return;
|
|
73
|
+
e.preventDefault();
|
|
74
|
+
setValue(next);
|
|
75
|
+
starRefs.current[next - 1]?.focus();
|
|
76
|
+
};
|
|
77
|
+
return /* @__PURE__ */ jsx(
|
|
78
|
+
"div",
|
|
79
|
+
{
|
|
80
|
+
ref,
|
|
81
|
+
className: cn(ratingVariants({ size }), className),
|
|
82
|
+
role: "radiogroup",
|
|
83
|
+
"aria-label": "Rating",
|
|
84
|
+
"aria-readonly": readOnly || void 0,
|
|
85
|
+
...props,
|
|
86
|
+
children: Array.from({ length: max }, (_, i) => {
|
|
87
|
+
const starValue = i + 1;
|
|
88
|
+
const filled = starValue <= displayValue;
|
|
89
|
+
return /* @__PURE__ */ jsx(
|
|
90
|
+
"button",
|
|
91
|
+
{
|
|
92
|
+
ref: (el) => {
|
|
93
|
+
starRefs.current[i] = el;
|
|
94
|
+
},
|
|
95
|
+
type: "button",
|
|
96
|
+
role: "radio",
|
|
97
|
+
tabIndex: starValue === tabStop ? 0 : -1,
|
|
98
|
+
"aria-checked": starValue === (value ?? 0),
|
|
99
|
+
"aria-label": `${starValue} star${starValue !== 1 ? "s" : ""}`,
|
|
100
|
+
disabled: readOnly,
|
|
101
|
+
onClick: () => !readOnly && setValue(starValue),
|
|
102
|
+
onKeyDown: (e) => !readOnly && handleKeyDown(e, starValue),
|
|
103
|
+
onMouseEnter: () => !readOnly && setHovered(starValue),
|
|
104
|
+
onMouseLeave: () => !readOnly && setHovered(null),
|
|
105
|
+
className: cn(
|
|
106
|
+
"bg-transparent border-0 p-0 m-0 inline-flex items-center justify-center transition-transform",
|
|
107
|
+
!readOnly && "cursor-pointer hover:scale-110",
|
|
108
|
+
readOnly && "cursor-default",
|
|
109
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-ring-default)] focus-visible:ring-offset-1 rounded-sm",
|
|
110
|
+
"disabled:pointer-events-none"
|
|
111
|
+
),
|
|
112
|
+
children: /* @__PURE__ */ jsx(
|
|
113
|
+
StarIcon,
|
|
114
|
+
{
|
|
115
|
+
filled,
|
|
116
|
+
"aria-hidden": "true"
|
|
117
|
+
}
|
|
118
|
+
)
|
|
119
|
+
},
|
|
120
|
+
starValue
|
|
121
|
+
);
|
|
122
|
+
})
|
|
123
|
+
}
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
);
|
|
127
|
+
Rating.displayName = "Rating";
|
|
128
|
+
function StarIcon({ filled, ...props }) {
|
|
129
|
+
return /* @__PURE__ */ jsx(
|
|
130
|
+
"svg",
|
|
131
|
+
{
|
|
132
|
+
viewBox: "0 0 20 20",
|
|
133
|
+
fill: filled ? "var(--color-founderub-500, #f59e0b)" : "none",
|
|
134
|
+
stroke: filled ? "var(--color-founderub-500, #f59e0b)" : "var(--color-border-default)",
|
|
135
|
+
strokeWidth: "1.5",
|
|
136
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
137
|
+
...props,
|
|
138
|
+
children: /* @__PURE__ */ jsx(
|
|
139
|
+
"path",
|
|
140
|
+
{
|
|
141
|
+
strokeLinejoin: "round",
|
|
142
|
+
d: "M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"
|
|
143
|
+
}
|
|
144
|
+
)
|
|
145
|
+
}
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export {
|
|
150
|
+
useControllableState,
|
|
151
|
+
ratingVariants,
|
|
152
|
+
Rating
|
|
153
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-AT6RPKU3.js";
|
|
5
|
+
|
|
6
|
+
// src/components/Text/Text.tsx
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
9
|
+
import { cva } from "class-variance-authority";
|
|
10
|
+
import { jsx } from "react/jsx-runtime";
|
|
11
|
+
var textVariants = cva("", {
|
|
12
|
+
variants: {
|
|
13
|
+
size: {
|
|
14
|
+
"body-lg": "text-lg leading-relaxed",
|
|
15
|
+
body: "text-base leading-relaxed",
|
|
16
|
+
"body-sm": "text-sm leading-relaxed",
|
|
17
|
+
caption: "text-xs leading-normal",
|
|
18
|
+
label: "text-sm leading-none font-medium"
|
|
19
|
+
},
|
|
20
|
+
tone: {
|
|
21
|
+
default: "text-[var(--color-text-primary)]",
|
|
22
|
+
secondary: "text-[var(--color-text-secondary)]",
|
|
23
|
+
muted: "text-[var(--color-text-muted)]",
|
|
24
|
+
subtle: "text-[var(--color-text-subtle)]",
|
|
25
|
+
inverse: "text-[var(--color-text-inverse)]"
|
|
26
|
+
},
|
|
27
|
+
weight: {
|
|
28
|
+
regular: "font-normal",
|
|
29
|
+
medium: "font-medium",
|
|
30
|
+
semibold: "font-semibold",
|
|
31
|
+
bold: "font-bold"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
defaultVariants: {
|
|
35
|
+
size: "body",
|
|
36
|
+
tone: "default"
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
var Text = React.forwardRef(
|
|
40
|
+
({
|
|
41
|
+
size,
|
|
42
|
+
tone,
|
|
43
|
+
weight,
|
|
44
|
+
asChild = false,
|
|
45
|
+
truncate = false,
|
|
46
|
+
lineClamp,
|
|
47
|
+
className,
|
|
48
|
+
style,
|
|
49
|
+
children,
|
|
50
|
+
...rest
|
|
51
|
+
}, ref) => {
|
|
52
|
+
const Comp = asChild ? Slot : "p";
|
|
53
|
+
const clampStyle = lineClamp !== void 0 ? {
|
|
54
|
+
display: "-webkit-box",
|
|
55
|
+
WebkitLineClamp: lineClamp,
|
|
56
|
+
WebkitBoxOrient: "vertical",
|
|
57
|
+
overflow: "hidden"
|
|
58
|
+
} : {};
|
|
59
|
+
return /* @__PURE__ */ jsx(
|
|
60
|
+
Comp,
|
|
61
|
+
{
|
|
62
|
+
ref,
|
|
63
|
+
className: cn(
|
|
64
|
+
textVariants({ size, tone, weight }),
|
|
65
|
+
truncate && "truncate",
|
|
66
|
+
className
|
|
67
|
+
),
|
|
68
|
+
style: { ...clampStyle, ...style },
|
|
69
|
+
...rest,
|
|
70
|
+
children
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
Text.displayName = "Text";
|
|
76
|
+
|
|
77
|
+
export {
|
|
78
|
+
textVariants,
|
|
79
|
+
Text
|
|
80
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-AT6RPKU3.js";
|
|
5
|
+
|
|
6
|
+
// src/components/Flex/Flex.tsx
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
var directionClass = {
|
|
11
|
+
row: "flex-row",
|
|
12
|
+
column: "flex-col",
|
|
13
|
+
"row-reverse": "flex-row-reverse",
|
|
14
|
+
"column-reverse": "flex-col-reverse"
|
|
15
|
+
};
|
|
16
|
+
var Flex = React.forwardRef(
|
|
17
|
+
({
|
|
18
|
+
gap,
|
|
19
|
+
align,
|
|
20
|
+
justify,
|
|
21
|
+
wrap = false,
|
|
22
|
+
direction = "row",
|
|
23
|
+
asChild = false,
|
|
24
|
+
className,
|
|
25
|
+
style,
|
|
26
|
+
children,
|
|
27
|
+
...rest
|
|
28
|
+
}, ref) => {
|
|
29
|
+
const Comp = asChild ? Slot : "div";
|
|
30
|
+
const inlineStyle = {
|
|
31
|
+
...gap !== void 0 ? { gap: typeof gap === "number" ? `${gap * 0.25}rem` : gap } : {},
|
|
32
|
+
...align ? { alignItems: align } : {},
|
|
33
|
+
...justify ? { justifyContent: justify } : {},
|
|
34
|
+
...style
|
|
35
|
+
};
|
|
36
|
+
return /* @__PURE__ */ jsx(
|
|
37
|
+
Comp,
|
|
38
|
+
{
|
|
39
|
+
ref,
|
|
40
|
+
className: cn("flex", directionClass[direction], wrap && "flex-wrap", className),
|
|
41
|
+
style: inlineStyle,
|
|
42
|
+
...rest,
|
|
43
|
+
children
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
Flex.displayName = "Flex";
|
|
49
|
+
|
|
50
|
+
export {
|
|
51
|
+
Flex
|
|
52
|
+
};
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-AT6RPKU3.js";
|
|
5
|
+
|
|
6
|
+
// src/components/CommandPalette/CommandPalette.tsx
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import * as RadixDialog from "@radix-ui/react-dialog";
|
|
9
|
+
import { Command } from "cmdk";
|
|
10
|
+
import { Search } from "@nexub/icons";
|
|
11
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
var Root2 = React.forwardRef(({ children, ...props }, ref) => /* @__PURE__ */ jsx(RadixDialog.Root, { ...props, children: /* @__PURE__ */ jsxs(RadixDialog.Portal, { children: [
|
|
13
|
+
/* @__PURE__ */ jsx(RadixDialog.Overlay, { className: "fixed inset-0 z-[var(--z-modal)] bg-black/50 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0" }),
|
|
14
|
+
/* @__PURE__ */ jsx(
|
|
15
|
+
RadixDialog.Content,
|
|
16
|
+
{
|
|
17
|
+
ref,
|
|
18
|
+
className: cn(
|
|
19
|
+
"fixed left-1/2 top-[20%] z-[var(--z-modal)] w-full max-w-xl -translate-x-1/2",
|
|
20
|
+
"overflow-hidden rounded-xl border border-[var(--color-border-default)] bg-[var(--color-bg-default)] shadow-2xl",
|
|
21
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
22
|
+
"data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95",
|
|
23
|
+
"data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95"
|
|
24
|
+
),
|
|
25
|
+
children: /* @__PURE__ */ jsx(Command, { className: "flex h-full w-full flex-col overflow-hidden text-[var(--color-text-primary)]", children })
|
|
26
|
+
}
|
|
27
|
+
)
|
|
28
|
+
] }) }));
|
|
29
|
+
Root2.displayName = "CommandPalette.Root";
|
|
30
|
+
var Input = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b border-[var(--color-border-default)] px-3", children: [
|
|
31
|
+
/* @__PURE__ */ jsx(Search, { size: "sm", className: "mr-2 shrink-0 opacity-50", "aria-hidden": "true" }),
|
|
32
|
+
/* @__PURE__ */ jsx(
|
|
33
|
+
Command.Input,
|
|
34
|
+
{
|
|
35
|
+
ref,
|
|
36
|
+
className: cn(
|
|
37
|
+
"flex h-12 w-full bg-transparent py-3 text-sm outline-none placeholder:text-[var(--color-text-muted)] disabled:cursor-not-allowed disabled:opacity-50",
|
|
38
|
+
className
|
|
39
|
+
),
|
|
40
|
+
...props
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
] }));
|
|
44
|
+
Input.displayName = "CommandPalette.Input";
|
|
45
|
+
var List = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
46
|
+
Command.List,
|
|
47
|
+
{
|
|
48
|
+
ref,
|
|
49
|
+
className: cn("max-h-[400px] overflow-y-auto overflow-x-hidden p-2", className),
|
|
50
|
+
...props
|
|
51
|
+
}
|
|
52
|
+
));
|
|
53
|
+
List.displayName = "CommandPalette.List";
|
|
54
|
+
var Empty = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
55
|
+
Command.Empty,
|
|
56
|
+
{
|
|
57
|
+
ref,
|
|
58
|
+
className: cn(
|
|
59
|
+
"py-8 text-center text-sm text-[var(--color-text-muted)]",
|
|
60
|
+
className
|
|
61
|
+
),
|
|
62
|
+
...props
|
|
63
|
+
}
|
|
64
|
+
));
|
|
65
|
+
Empty.displayName = "CommandPalette.Empty";
|
|
66
|
+
var Group = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
67
|
+
Command.Group,
|
|
68
|
+
{
|
|
69
|
+
ref,
|
|
70
|
+
className: cn(
|
|
71
|
+
"overflow-hidden p-1 text-[var(--color-text-primary)]",
|
|
72
|
+
"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-[var(--color-text-muted)]",
|
|
73
|
+
className
|
|
74
|
+
),
|
|
75
|
+
...props
|
|
76
|
+
}
|
|
77
|
+
));
|
|
78
|
+
Group.displayName = "CommandPalette.Group";
|
|
79
|
+
var Item = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
80
|
+
Command.Item,
|
|
81
|
+
{
|
|
82
|
+
ref,
|
|
83
|
+
className: cn(
|
|
84
|
+
"relative flex cursor-default select-none items-center rounded-md px-3 py-2 text-sm outline-none",
|
|
85
|
+
"aria-selected:bg-[var(--color-bg-subtle)] aria-selected:text-[var(--color-text-primary)]",
|
|
86
|
+
"data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",
|
|
87
|
+
className
|
|
88
|
+
),
|
|
89
|
+
...props
|
|
90
|
+
}
|
|
91
|
+
));
|
|
92
|
+
Item.displayName = "CommandPalette.Item";
|
|
93
|
+
var Separator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
94
|
+
Command.Separator,
|
|
95
|
+
{
|
|
96
|
+
ref,
|
|
97
|
+
className: cn("-mx-1 my-1 h-px bg-[var(--color-border-default)]", className),
|
|
98
|
+
...props
|
|
99
|
+
}
|
|
100
|
+
));
|
|
101
|
+
Separator.displayName = "CommandPalette.Separator";
|
|
102
|
+
var CommandPalette = { Root: Root2, Input, List, Empty, Group, Item, Separator };
|
|
103
|
+
|
|
104
|
+
export {
|
|
105
|
+
CommandPalette
|
|
106
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-AT6RPKU3.js";
|
|
5
|
+
|
|
6
|
+
// src/components/Checkbox/Checkbox.tsx
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import * as RadixCheckbox from "@radix-ui/react-checkbox";
|
|
9
|
+
import { Check, Minus } from "@nexub/icons";
|
|
10
|
+
import { jsx } from "react/jsx-runtime";
|
|
11
|
+
var Checkbox = React.forwardRef(
|
|
12
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
13
|
+
RadixCheckbox.Root,
|
|
14
|
+
{
|
|
15
|
+
ref,
|
|
16
|
+
className: cn(
|
|
17
|
+
"peer h-4 w-4 shrink-0 rounded-sm border border-[var(--color-border-input)]",
|
|
18
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-ring-default)] focus-visible:ring-offset-2 ring-offset-[var(--color-ring-offset)]",
|
|
19
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
20
|
+
"data-[state=checked]:bg-[var(--color-fill-primary)] data-[state=checked]:border-[var(--color-fill-primary)] data-[state=checked]:text-white",
|
|
21
|
+
"data-[state=indeterminate]:bg-[var(--color-fill-primary)] data-[state=indeterminate]:border-[var(--color-fill-primary)] data-[state=indeterminate]:text-white",
|
|
22
|
+
className
|
|
23
|
+
),
|
|
24
|
+
...props,
|
|
25
|
+
children: /* @__PURE__ */ jsx(RadixCheckbox.Indicator, { className: "flex items-center justify-center", children: props.checked === "indeterminate" ? /* @__PURE__ */ jsx(Minus, { size: "xs" }) : /* @__PURE__ */ jsx(Check, { size: "xs" }) })
|
|
26
|
+
}
|
|
27
|
+
)
|
|
28
|
+
);
|
|
29
|
+
Checkbox.displayName = "Checkbox";
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
Checkbox
|
|
33
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
Combobox
|
|
4
|
+
} from "./chunk-2VDP2ML4.js";
|
|
5
|
+
|
|
6
|
+
// src/components/Autocomplete/Autocomplete.tsx
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
function Autocomplete({
|
|
10
|
+
options,
|
|
11
|
+
value,
|
|
12
|
+
onValueChange,
|
|
13
|
+
placeholder = "Search\u2026",
|
|
14
|
+
emptyText = "No results found.",
|
|
15
|
+
loading = false,
|
|
16
|
+
className
|
|
17
|
+
}) {
|
|
18
|
+
const selectedLabel = options.find((o) => o.value === value)?.label ?? "";
|
|
19
|
+
const [search, setSearch] = React.useState(selectedLabel);
|
|
20
|
+
const [prevValue, setPrevValue] = React.useState(value);
|
|
21
|
+
if (value !== prevValue) {
|
|
22
|
+
setPrevValue(value);
|
|
23
|
+
setSearch(selectedLabel);
|
|
24
|
+
}
|
|
25
|
+
return /* @__PURE__ */ jsxs(Combobox.Root, { className, children: [
|
|
26
|
+
/* @__PURE__ */ jsx(Combobox.Input, { placeholder, value: search, onValueChange: setSearch }),
|
|
27
|
+
/* @__PURE__ */ jsx(Combobox.List, { children: loading ? /* @__PURE__ */ jsx("div", { className: "py-6 text-center text-sm text-[var(--color-text-muted)]", children: "Loading\u2026" }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
28
|
+
/* @__PURE__ */ jsx(Combobox.Empty, { children: emptyText }),
|
|
29
|
+
options.map((opt) => /* @__PURE__ */ jsx(
|
|
30
|
+
Combobox.Item,
|
|
31
|
+
{
|
|
32
|
+
value: opt.label,
|
|
33
|
+
keywords: [opt.value],
|
|
34
|
+
onSelect: () => {
|
|
35
|
+
onValueChange?.(opt.value);
|
|
36
|
+
setSearch(opt.label);
|
|
37
|
+
},
|
|
38
|
+
children: opt.label
|
|
39
|
+
},
|
|
40
|
+
opt.value
|
|
41
|
+
))
|
|
42
|
+
] }) })
|
|
43
|
+
] });
|
|
44
|
+
}
|
|
45
|
+
Autocomplete.displayName = "Autocomplete";
|
|
46
|
+
|
|
47
|
+
export {
|
|
48
|
+
Autocomplete
|
|
49
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-AT6RPKU3.js";
|
|
5
|
+
|
|
6
|
+
// src/components/Textarea/Textarea.tsx
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { cva } from "class-variance-authority";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
var textareaVariants = cva(
|
|
11
|
+
[
|
|
12
|
+
"w-full rounded-md border bg-[var(--color-bg-default)] text-[var(--color-text-primary)]",
|
|
13
|
+
"placeholder:text-[var(--color-text-placeholder)]",
|
|
14
|
+
"border-[var(--color-border-input)] transition-colors",
|
|
15
|
+
// Border shifts to ring color on focus; ring is a semi-transparent halo.
|
|
16
|
+
// One hard 1 px border + one soft 2 px glow = single clean focus indicator.
|
|
17
|
+
"focus-visible:outline-none focus-visible:border-[var(--color-ring-default)] focus-visible:ring-2 focus-visible:ring-[color-mix(in_srgb,var(--color-ring-default)_25%,transparent)]",
|
|
18
|
+
"disabled:opacity-50 disabled:pointer-events-none disabled:cursor-not-allowed"
|
|
19
|
+
],
|
|
20
|
+
{
|
|
21
|
+
variants: {
|
|
22
|
+
size: {
|
|
23
|
+
sm: "px-3 py-1.5 text-sm min-h-[64px]",
|
|
24
|
+
md: "px-3 py-2 text-sm min-h-[80px]",
|
|
25
|
+
lg: "px-4 py-2.5 text-base min-h-[96px]"
|
|
26
|
+
},
|
|
27
|
+
invalid: {
|
|
28
|
+
true: "border-[var(--color-danger-500)] focus-visible:border-[var(--color-danger-500)] focus-visible:ring-[color-mix(in_srgb,var(--color-danger-500)_25%,transparent)]"
|
|
29
|
+
},
|
|
30
|
+
resize: {
|
|
31
|
+
none: "resize-none",
|
|
32
|
+
vertical: "resize-y",
|
|
33
|
+
horizontal: "resize-x",
|
|
34
|
+
both: "resize"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
defaultVariants: {
|
|
38
|
+
size: "md",
|
|
39
|
+
resize: "vertical"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
var Textarea = React.forwardRef(
|
|
44
|
+
({
|
|
45
|
+
className,
|
|
46
|
+
size,
|
|
47
|
+
invalid,
|
|
48
|
+
resize = "vertical",
|
|
49
|
+
autoGrow = false,
|
|
50
|
+
value,
|
|
51
|
+
defaultValue,
|
|
52
|
+
onChange,
|
|
53
|
+
...props
|
|
54
|
+
}, ref) => {
|
|
55
|
+
const [internalValue, setInternalValue] = React.useState(
|
|
56
|
+
defaultValue ?? ""
|
|
57
|
+
);
|
|
58
|
+
const controlled = value !== void 0;
|
|
59
|
+
const resolvedValue = controlled ? String(value) : internalValue;
|
|
60
|
+
const handleChange = (e) => {
|
|
61
|
+
if (!controlled) setInternalValue(e.target.value);
|
|
62
|
+
onChange?.(e);
|
|
63
|
+
};
|
|
64
|
+
const sharedClass = cn(
|
|
65
|
+
textareaVariants({ size, invalid, resize: autoGrow ? "none" : resize }),
|
|
66
|
+
className
|
|
67
|
+
);
|
|
68
|
+
if (autoGrow) {
|
|
69
|
+
return (
|
|
70
|
+
/*
|
|
71
|
+
* CSS grid trick: the grid area is shared between the mirror span
|
|
72
|
+
* and the textarea, so the container grows to fit the larger of the two.
|
|
73
|
+
* The textarea is stretched to fill the container height automatically.
|
|
74
|
+
*/
|
|
75
|
+
/* @__PURE__ */ jsxs(
|
|
76
|
+
"div",
|
|
77
|
+
{
|
|
78
|
+
className: "grid w-full",
|
|
79
|
+
style: { gridTemplateAreas: '"grow"' },
|
|
80
|
+
children: [
|
|
81
|
+
/* @__PURE__ */ jsx(
|
|
82
|
+
"span",
|
|
83
|
+
{
|
|
84
|
+
"aria-hidden": "true",
|
|
85
|
+
className: cn(sharedClass, "invisible whitespace-pre-wrap break-words pointer-events-none"),
|
|
86
|
+
style: { gridArea: "grow" },
|
|
87
|
+
children: resolvedValue + "\u200B"
|
|
88
|
+
}
|
|
89
|
+
),
|
|
90
|
+
/* @__PURE__ */ jsx(
|
|
91
|
+
"textarea",
|
|
92
|
+
{
|
|
93
|
+
ref,
|
|
94
|
+
value,
|
|
95
|
+
defaultValue: !controlled ? defaultValue : void 0,
|
|
96
|
+
onChange: handleChange,
|
|
97
|
+
className: cn(sharedClass, "overflow-hidden"),
|
|
98
|
+
"aria-invalid": invalid ?? void 0,
|
|
99
|
+
style: { gridArea: "grow" },
|
|
100
|
+
...props
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
)
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
return /* @__PURE__ */ jsx(
|
|
109
|
+
"textarea",
|
|
110
|
+
{
|
|
111
|
+
ref,
|
|
112
|
+
value,
|
|
113
|
+
defaultValue: !controlled ? defaultValue : void 0,
|
|
114
|
+
onChange: handleChange,
|
|
115
|
+
className: sharedClass,
|
|
116
|
+
"aria-invalid": invalid ?? void 0,
|
|
117
|
+
...props
|
|
118
|
+
}
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
);
|
|
122
|
+
Textarea.displayName = "Textarea";
|
|
123
|
+
|
|
124
|
+
export {
|
|
125
|
+
textareaVariants,
|
|
126
|
+
Textarea
|
|
127
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-AT6RPKU3.js";
|
|
5
|
+
|
|
6
|
+
// src/components/RadioGroup/RadioGroup.tsx
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import * as RadixRadioGroup from "@radix-ui/react-radio-group";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
var Root2 = React.forwardRef(
|
|
11
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(RadixRadioGroup.Root, { ref, className: cn("flex flex-col gap-2", className), ...props })
|
|
12
|
+
);
|
|
13
|
+
Root2.displayName = "RadioGroup.Root";
|
|
14
|
+
var Item2 = React.forwardRef(
|
|
15
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
16
|
+
RadixRadioGroup.Item,
|
|
17
|
+
{
|
|
18
|
+
ref,
|
|
19
|
+
className: cn(
|
|
20
|
+
"aspect-square h-4 w-4 rounded-full border border-[var(--color-border-input)]",
|
|
21
|
+
"text-[var(--color-brand-primary-500)]",
|
|
22
|
+
"focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-ring-default)] focus-visible:ring-offset-2 ring-offset-[var(--color-ring-offset)]",
|
|
23
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
24
|
+
className
|
|
25
|
+
),
|
|
26
|
+
...props,
|
|
27
|
+
children: /* @__PURE__ */ jsx(RadixRadioGroup.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx("span", { className: "block h-2 w-2 rounded-full bg-[var(--color-brand-primary-500)]" }) })
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
);
|
|
31
|
+
Item2.displayName = "RadioGroup.Item";
|
|
32
|
+
var RadioGroup = { Root: Root2, Item: Item2 };
|
|
33
|
+
|
|
34
|
+
export {
|
|
35
|
+
RadioGroup
|
|
36
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
Input
|
|
4
|
+
} from "./chunk-CVBAWKNG.js";
|
|
5
|
+
import {
|
|
6
|
+
cn
|
|
7
|
+
} from "./chunk-AT6RPKU3.js";
|
|
8
|
+
|
|
9
|
+
// src/components/PasswordInput/PasswordInput.tsx
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import { Eye, EyeOff } from "@nexub/icons";
|
|
12
|
+
import { jsx } from "react/jsx-runtime";
|
|
13
|
+
var PasswordInput = React.forwardRef(
|
|
14
|
+
({ className, ...props }, ref) => {
|
|
15
|
+
const [showPassword, setShowPassword] = React.useState(false);
|
|
16
|
+
const toggleButton = /* @__PURE__ */ jsx(
|
|
17
|
+
"button",
|
|
18
|
+
{
|
|
19
|
+
type: "button",
|
|
20
|
+
onClick: () => setShowPassword((prev) => !prev),
|
|
21
|
+
"aria-label": showPassword ? "Hide password" : "Show password",
|
|
22
|
+
className: cn(
|
|
23
|
+
"shrink-0 text-[var(--color-text-muted)] hover:text-[var(--color-text-primary)] transition-colors",
|
|
24
|
+
"focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--color-ring-default)] rounded"
|
|
25
|
+
),
|
|
26
|
+
children: showPassword ? /* @__PURE__ */ jsx(EyeOff, { className: "h-4 w-4", "aria-hidden": "true" }) : /* @__PURE__ */ jsx(Eye, { className: "h-4 w-4", "aria-hidden": "true" })
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
return /* @__PURE__ */ jsx(
|
|
30
|
+
Input,
|
|
31
|
+
{
|
|
32
|
+
ref,
|
|
33
|
+
type: showPassword ? "text" : "password",
|
|
34
|
+
className,
|
|
35
|
+
trailingIcon: toggleButton,
|
|
36
|
+
...props
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
PasswordInput.displayName = "PasswordInput";
|
|
42
|
+
|
|
43
|
+
export {
|
|
44
|
+
PasswordInput
|
|
45
|
+
};
|