@still-void/ui 3.4.1 → 3.5.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/CHANGELOG.md +8 -0
- package/README.md +1 -0
- package/dist/react/client/index.cjs +170 -55
- package/dist/react/client/index.cjs.map +1 -1
- package/dist/react/client/index.d.cts +43 -1
- package/dist/react/client/index.d.ts +43 -1
- package/dist/react/client/index.js +160 -55
- package/dist/react/client/index.js.map +1 -1
- package/dist/react/index.cjs +4 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +2 -0
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.js +4 -0
- package/dist/react/index.js.map +1 -1
- package/dist/style.css +94 -1
- package/dist/tailwind.css +1 -0
- package/dist/theme.css +21 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @still-void/ui
|
|
2
2
|
|
|
3
|
+
## 3.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#30](https://github.com/KalleoPinheiro/still-void/pull/30) [`16ba4f1`](https://github.com/KalleoPinheiro/still-void/commit/16ba4f192801361ebe95d36c1ab5a418bb3fafc1) Thanks [@KalleoPinheiro](https://github.com/KalleoPinheiro)! - New `--sv-control-border` token (`controlBorder` in `colors`, `sv-control-border` in the Tailwind theme): the edge of form controls at ≥3:1 on every surface, in both themes (WCAG 1.4.11). `.sv-field` (Input, Textarea, NativeSelect, FileInput) now uses it, so field borders are visibly stronger than before; the decorative `--sv-border` and `--sv-border-strong` are unchanged.
|
|
8
|
+
|
|
9
|
+
- [#32](https://github.com/KalleoPinheiro/still-void/pull/32) [`44ef0ba`](https://github.com/KalleoPinheiro/still-void/commit/44ef0ba767bcbddc16ecea61dea3ecb8fae687cc) Thanks [@KalleoPinheiro](https://github.com/KalleoPinheiro)! - New `BottomSheet` family in `@still-void/ui/react/client` (`BottomSheet`, `BottomSheetTrigger`, `BottomSheetContent`, `BottomSheetHeader`, `BottomSheetBody`, `BottomSheetFooter`, `BottomSheetTitle`, `BottomSheetDescription`, `BottomSheetClose`, `BottomSheetOverlay`): a modal panel that rises from the bottom edge for mobile edit forms. Built on the Dialog primitive, so focus is trapped, Escape and the overlay dismiss, focus returns to the trigger, and `aria-modal` is always set. It has a drag handle (drag down past 96px to dismiss, `draggable={false}` to disable), a visible Cancel button (`closeLabel`, `showCloseButton`), respects the device safe area and `prefers-reduced-motion`, and uses only existing tokens. New classes: `sv-sheet`, `sv-sheet__handle`, `sv-sheet__close`, `sv-sheet__header`, `sv-sheet__body`, `sv-sheet__footer`, `sv-sheet__title`, `sv-sheet__description`; new keyframes `sv-sheet-in` / `sv-sheet-out`.
|
|
10
|
+
|
|
3
11
|
## 3.4.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -175,6 +175,7 @@ for any component this package ships, in any version.
|
|
|
175
175
|
- `SidebarProvider` / `SidebarPanel` / `SidebarTrigger` / `SidebarInset` / `useSidebar` — responsive app shell with toggleable sidebar (drawer below breakpoint, static panel above); read/control state via context
|
|
176
176
|
- `ToastProvider` / `useToast` — notification queue (up to 3 by default, configurable), auto-dismiss (5s default), pause on hover/focus; four severities with semantic `aria-live` announcements
|
|
177
177
|
- `Dialog` — modal with trigger, content, header, footer, title, description; renders a close button by default (`showCloseButton={false}` to opt out)
|
|
178
|
+
- `BottomSheet` — mobile modal that rises from the bottom edge (drag handle, Cancel button, safe-area aware); same focus trap, Escape and overlay dismissal as `Dialog`
|
|
178
179
|
- `AlertDialog` — the same modal mechanics as `Dialog`, without a close button, for destructive confirmations that must be resolved through explicit `Action`/`Cancel`
|
|
179
180
|
- `Select` — dropdown with groups, labels, and scroll
|
|
180
181
|
- `Dropdown` — menu with items, checkboxes, radio groups, labels, separators
|
|
@@ -42,6 +42,16 @@ __export(client_exports, {
|
|
|
42
42
|
AlertDialogPortal: () => AlertDialogPortal,
|
|
43
43
|
AlertDialogTitle: () => AlertDialogTitle,
|
|
44
44
|
AlertDialogTrigger: () => AlertDialogTrigger,
|
|
45
|
+
BottomSheet: () => BottomSheet,
|
|
46
|
+
BottomSheetBody: () => BottomSheetBody,
|
|
47
|
+
BottomSheetClose: () => BottomSheetClose,
|
|
48
|
+
BottomSheetContent: () => BottomSheetContent,
|
|
49
|
+
BottomSheetDescription: () => BottomSheetDescription,
|
|
50
|
+
BottomSheetFooter: () => BottomSheetFooter,
|
|
51
|
+
BottomSheetHeader: () => BottomSheetHeader,
|
|
52
|
+
BottomSheetOverlay: () => BottomSheetOverlay,
|
|
53
|
+
BottomSheetTitle: () => BottomSheetTitle,
|
|
54
|
+
BottomSheetTrigger: () => BottomSheetTrigger,
|
|
45
55
|
CopyButton: () => CopyButton,
|
|
46
56
|
DEFAULT_STORAGE_KEY: () => DEFAULT_STORAGE_KEY,
|
|
47
57
|
Dialog: () => Dialog2,
|
|
@@ -122,6 +132,9 @@ var colors = {
|
|
|
122
132
|
surface2: "#1C1C22",
|
|
123
133
|
border: "rgba(255,255,255,0.08)",
|
|
124
134
|
borderStrong: "rgba(255,255,255,0.14)",
|
|
135
|
+
// WCAG 1.4.11: edge of an input/select/checkbox must read ≥3:1 on every surface; the
|
|
136
|
+
// decorative borders above sit near 1.5:1 and stay decorative.
|
|
137
|
+
controlBorder: "#6B6B76",
|
|
125
138
|
text: "#EDEDF0",
|
|
126
139
|
text2: "#8B8B96",
|
|
127
140
|
// Corrected from #5A5A66 (~2.6:1 on surface) to meet WCAG AA 4.5:1 — text3 is used for
|
|
@@ -135,6 +148,7 @@ var colors = {
|
|
|
135
148
|
surface2: "#F2F2EF",
|
|
136
149
|
border: "rgba(0,0,0,0.08)",
|
|
137
150
|
borderStrong: "rgba(0,0,0,0.14)",
|
|
151
|
+
controlBorder: "#85858E",
|
|
138
152
|
text: "#16161B",
|
|
139
153
|
text2: "#5A5A66",
|
|
140
154
|
// Corrected from #8B8B96 (~3.1:1 on white) to meet WCAG AA 4.5:1, same reasoning as dark.
|
|
@@ -1066,14 +1080,105 @@ var DialogDescription = React3.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1066
1080
|
));
|
|
1067
1081
|
DialogDescription.displayName = "DialogDescription";
|
|
1068
1082
|
|
|
1069
|
-
// src/components/ui/
|
|
1083
|
+
// src/components/ui/bottom-sheet.tsx
|
|
1070
1084
|
var React4 = __toESM(require("react"), 1);
|
|
1071
|
-
var
|
|
1085
|
+
var DialogPrimitive2 = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
1072
1086
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
1087
|
+
var DISMISS_DISTANCE = 96;
|
|
1088
|
+
var BottomSheetContext = React4.createContext(null);
|
|
1089
|
+
var BottomSheet = ({ open: openProp, defaultOpen = false, onOpenChange, ...props }) => {
|
|
1090
|
+
const [openState, setOpenState] = React4.useState(defaultOpen);
|
|
1091
|
+
const controlled = openProp !== void 0;
|
|
1092
|
+
const open = controlled ? openProp : openState;
|
|
1093
|
+
const setOpen = React4.useCallback(
|
|
1094
|
+
(next) => {
|
|
1095
|
+
if (!controlled) setOpenState(next);
|
|
1096
|
+
onOpenChange?.(next);
|
|
1097
|
+
},
|
|
1098
|
+
[controlled, onOpenChange]
|
|
1099
|
+
);
|
|
1100
|
+
const value = React4.useMemo(() => ({ close: () => setOpen(false) }), [setOpen]);
|
|
1101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(BottomSheetContext.Provider, { value, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(DialogPrimitive2.Root, { open, onOpenChange: setOpen, ...props }) });
|
|
1102
|
+
};
|
|
1103
|
+
var BottomSheetTrigger = DialogPrimitive2.Trigger;
|
|
1104
|
+
var BottomSheetClose = DialogPrimitive2.Close;
|
|
1105
|
+
var BottomSheetOverlay = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(DialogPrimitive2.Overlay, { ref, className: cn("sv-overlay", className), ...props }));
|
|
1106
|
+
BottomSheetOverlay.displayName = "BottomSheetOverlay";
|
|
1107
|
+
var BottomSheetContent = React4.forwardRef(
|
|
1108
|
+
({ className, children, style, showCloseButton = true, closeLabel: closeLabelProp, draggable = true, ...props }, ref) => {
|
|
1109
|
+
const { close } = React4.useContext(BottomSheetContext);
|
|
1110
|
+
const closeLabel = closeLabelProp && closeLabelProp.trim().length > 0 ? closeLabelProp : "Cancel";
|
|
1111
|
+
const [offset, setOffset] = React4.useState(0);
|
|
1112
|
+
const [dragging, setDragging] = React4.useState(false);
|
|
1113
|
+
const startY = React4.useRef(0);
|
|
1114
|
+
const onPointerDown = (event) => {
|
|
1115
|
+
if (!draggable) return;
|
|
1116
|
+
startY.current = event.clientY;
|
|
1117
|
+
setDragging(true);
|
|
1118
|
+
event.currentTarget.setPointerCapture?.(event.pointerId);
|
|
1119
|
+
};
|
|
1120
|
+
const onPointerMove = (event) => {
|
|
1121
|
+
if (!dragging) return;
|
|
1122
|
+
setOffset(Math.max(0, event.clientY - startY.current));
|
|
1123
|
+
};
|
|
1124
|
+
const endDrag = () => {
|
|
1125
|
+
if (!dragging) return;
|
|
1126
|
+
setDragging(false);
|
|
1127
|
+
if (offset >= DISMISS_DISTANCE) close();
|
|
1128
|
+
else setOffset(0);
|
|
1129
|
+
};
|
|
1130
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(DialogPrimitive2.Portal, { children: [
|
|
1131
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(BottomSheetOverlay, {}),
|
|
1132
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
1133
|
+
DialogPrimitive2.Content,
|
|
1134
|
+
{
|
|
1135
|
+
ref,
|
|
1136
|
+
className: cn("sv-sheet", className),
|
|
1137
|
+
"data-dragging": dragging ? "true" : void 0,
|
|
1138
|
+
style: { ...style, ["--sv-sheet-drag"]: `${offset}px` },
|
|
1139
|
+
...props,
|
|
1140
|
+
"aria-modal": "true",
|
|
1141
|
+
children: [
|
|
1142
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1143
|
+
"div",
|
|
1144
|
+
{
|
|
1145
|
+
className: "sv-sheet__handle",
|
|
1146
|
+
"data-draggable": draggable ? "true" : void 0,
|
|
1147
|
+
"aria-hidden": "true",
|
|
1148
|
+
onPointerDown,
|
|
1149
|
+
onPointerMove,
|
|
1150
|
+
onPointerUp: endDrag,
|
|
1151
|
+
onPointerCancel: endDrag
|
|
1152
|
+
}
|
|
1153
|
+
),
|
|
1154
|
+
showCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(DialogPrimitive2.Close, { className: "sv-btn sv-btn--ghost sv-btn--sm sv-sheet__close", children: closeLabel }) : null,
|
|
1155
|
+
children
|
|
1156
|
+
]
|
|
1157
|
+
}
|
|
1158
|
+
)
|
|
1159
|
+
] });
|
|
1160
|
+
}
|
|
1161
|
+
);
|
|
1162
|
+
BottomSheetContent.displayName = "BottomSheetContent";
|
|
1163
|
+
var BottomSheetHeader = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: cn("sv-sheet__header", className), ...props });
|
|
1164
|
+
BottomSheetHeader.displayName = "BottomSheetHeader";
|
|
1165
|
+
var BottomSheetBody = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: cn("sv-sheet__body", className), ...props });
|
|
1166
|
+
BottomSheetBody.displayName = "BottomSheetBody";
|
|
1167
|
+
var BottomSheetFooter = ({ className, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: cn("sv-sheet__footer", className), ...props });
|
|
1168
|
+
BottomSheetFooter.displayName = "BottomSheetFooter";
|
|
1169
|
+
var BottomSheetTitle = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(DialogPrimitive2.Title, { ref, className: cn("sv-sheet__title", className), ...props }));
|
|
1170
|
+
BottomSheetTitle.displayName = "BottomSheetTitle";
|
|
1171
|
+
var BottomSheetDescription = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(DialogPrimitive2.Description, { ref, className: cn("sv-sheet__description", className), ...props }));
|
|
1172
|
+
BottomSheetDescription.displayName = "BottomSheetDescription";
|
|
1173
|
+
|
|
1174
|
+
// src/components/ui/alert-dialog.tsx
|
|
1175
|
+
var React5 = __toESM(require("react"), 1);
|
|
1176
|
+
var AlertDialogPrimitive = __toESM(require("@radix-ui/react-alert-dialog"), 1);
|
|
1177
|
+
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
1073
1178
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
1074
1179
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
1075
1180
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
1076
|
-
var AlertDialogOverlay =
|
|
1181
|
+
var AlertDialogOverlay = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1077
1182
|
AlertDialogPrimitive.Overlay,
|
|
1078
1183
|
{
|
|
1079
1184
|
ref,
|
|
@@ -1082,9 +1187,9 @@ var AlertDialogOverlay = React4.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1082
1187
|
}
|
|
1083
1188
|
));
|
|
1084
1189
|
AlertDialogOverlay.displayName = "AlertDialogOverlay";
|
|
1085
|
-
var AlertDialogContent =
|
|
1086
|
-
/* @__PURE__ */ (0,
|
|
1087
|
-
/* @__PURE__ */ (0,
|
|
1190
|
+
var AlertDialogContent = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(AlertDialogPortal, { children: [
|
|
1191
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(AlertDialogOverlay, {}),
|
|
1192
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1088
1193
|
AlertDialogPrimitive.Content,
|
|
1089
1194
|
{
|
|
1090
1195
|
ref,
|
|
@@ -1098,14 +1203,14 @@ AlertDialogContent.displayName = "AlertDialogContent";
|
|
|
1098
1203
|
var AlertDialogHeader = ({
|
|
1099
1204
|
className,
|
|
1100
1205
|
...props
|
|
1101
|
-
}) => /* @__PURE__ */ (0,
|
|
1206
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: cn("sv-dialog__header", className), ...props });
|
|
1102
1207
|
AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
1103
1208
|
var AlertDialogFooter = ({
|
|
1104
1209
|
className,
|
|
1105
1210
|
...props
|
|
1106
|
-
}) => /* @__PURE__ */ (0,
|
|
1211
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: cn("sv-dialog__footer", className), ...props });
|
|
1107
1212
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
1108
|
-
var AlertDialogTitle =
|
|
1213
|
+
var AlertDialogTitle = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1109
1214
|
AlertDialogPrimitive.Title,
|
|
1110
1215
|
{
|
|
1111
1216
|
ref,
|
|
@@ -1114,7 +1219,7 @@ var AlertDialogTitle = React4.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1114
1219
|
}
|
|
1115
1220
|
));
|
|
1116
1221
|
AlertDialogTitle.displayName = "AlertDialogTitle";
|
|
1117
|
-
var AlertDialogDescription =
|
|
1222
|
+
var AlertDialogDescription = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1118
1223
|
AlertDialogPrimitive.Description,
|
|
1119
1224
|
{
|
|
1120
1225
|
ref,
|
|
@@ -1123,7 +1228,7 @@ var AlertDialogDescription = React4.forwardRef(({ className, ...props }, ref) =>
|
|
|
1123
1228
|
}
|
|
1124
1229
|
));
|
|
1125
1230
|
AlertDialogDescription.displayName = "AlertDialogDescription";
|
|
1126
|
-
var AlertDialogAction =
|
|
1231
|
+
var AlertDialogAction = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1127
1232
|
AlertDialogPrimitive.Action,
|
|
1128
1233
|
{
|
|
1129
1234
|
ref,
|
|
@@ -1132,7 +1237,7 @@ var AlertDialogAction = React4.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1132
1237
|
}
|
|
1133
1238
|
));
|
|
1134
1239
|
AlertDialogAction.displayName = "AlertDialogAction";
|
|
1135
|
-
var AlertDialogCancel =
|
|
1240
|
+
var AlertDialogCancel = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
1136
1241
|
AlertDialogPrimitive.Cancel,
|
|
1137
1242
|
{
|
|
1138
1243
|
ref,
|
|
@@ -1143,19 +1248,19 @@ var AlertDialogCancel = React4.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
1143
1248
|
AlertDialogCancel.displayName = "AlertDialogCancel";
|
|
1144
1249
|
|
|
1145
1250
|
// src/components/ui/select.tsx
|
|
1146
|
-
var
|
|
1251
|
+
var React6 = __toESM(require("react"), 1);
|
|
1147
1252
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
|
|
1148
|
-
var
|
|
1253
|
+
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
1149
1254
|
var Select = SelectPrimitive.Root;
|
|
1150
1255
|
var SelectGroup = SelectPrimitive.Group;
|
|
1151
1256
|
var SelectValue = SelectPrimitive.Value;
|
|
1152
|
-
var SelectTrigger =
|
|
1153
|
-
({ className, children, icon = /* @__PURE__ */ (0,
|
|
1257
|
+
var SelectTrigger = React6.forwardRef(
|
|
1258
|
+
({ className, children, icon = /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Icon, { name: "chevron-down" }), ...props }, ref) => (
|
|
1154
1259
|
// The trigger IS a form field, so it shares .sv-field with Input, Textarea
|
|
1155
1260
|
// and NativeSelect rather than restating the frame. The utility string this
|
|
1156
1261
|
// replaces named `ring-offset-background` and `focus:ring-accent`, neither
|
|
1157
1262
|
// of which this package ever declared: the field had no visible focus.
|
|
1158
|
-
/* @__PURE__ */ (0,
|
|
1263
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
1159
1264
|
SelectPrimitive.Trigger,
|
|
1160
1265
|
{
|
|
1161
1266
|
ref,
|
|
@@ -1163,34 +1268,34 @@ var SelectTrigger = React5.forwardRef(
|
|
|
1163
1268
|
...props,
|
|
1164
1269
|
children: [
|
|
1165
1270
|
children,
|
|
1166
|
-
icon === null ? null : /* @__PURE__ */ (0,
|
|
1271
|
+
icon === null ? null : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SelectPrimitive.Icon, { children: icon })
|
|
1167
1272
|
]
|
|
1168
1273
|
}
|
|
1169
1274
|
)
|
|
1170
1275
|
)
|
|
1171
1276
|
);
|
|
1172
1277
|
SelectTrigger.displayName = "SelectTrigger";
|
|
1173
|
-
var SelectScrollUpButton =
|
|
1278
|
+
var SelectScrollUpButton = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1174
1279
|
SelectPrimitive.ScrollUpButton,
|
|
1175
1280
|
{
|
|
1176
1281
|
ref,
|
|
1177
1282
|
className: cn("sv-pop__scroll", className),
|
|
1178
1283
|
...props,
|
|
1179
|
-
children: /* @__PURE__ */ (0,
|
|
1284
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Icon, { name: "chevron-up" })
|
|
1180
1285
|
}
|
|
1181
1286
|
));
|
|
1182
1287
|
SelectScrollUpButton.displayName = "SelectScrollUpButton";
|
|
1183
|
-
var SelectScrollDownButton =
|
|
1288
|
+
var SelectScrollDownButton = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1184
1289
|
SelectPrimitive.ScrollDownButton,
|
|
1185
1290
|
{
|
|
1186
1291
|
ref,
|
|
1187
1292
|
className: cn("sv-pop__scroll", className),
|
|
1188
1293
|
...props,
|
|
1189
|
-
children: /* @__PURE__ */ (0,
|
|
1294
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Icon, { name: "chevron-down" })
|
|
1190
1295
|
}
|
|
1191
1296
|
));
|
|
1192
1297
|
SelectScrollDownButton.displayName = "SelectScrollDownButton";
|
|
1193
|
-
var SelectContent =
|
|
1298
|
+
var SelectContent = React6.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
1194
1299
|
SelectPrimitive.Content,
|
|
1195
1300
|
{
|
|
1196
1301
|
ref,
|
|
@@ -1198,8 +1303,8 @@ var SelectContent = React5.forwardRef(({ className, children, position = "popper
|
|
|
1198
1303
|
position,
|
|
1199
1304
|
...props,
|
|
1200
1305
|
children: [
|
|
1201
|
-
/* @__PURE__ */ (0,
|
|
1202
|
-
/* @__PURE__ */ (0,
|
|
1306
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SelectScrollUpButton, {}),
|
|
1307
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1203
1308
|
SelectPrimitive.Viewport,
|
|
1204
1309
|
{
|
|
1205
1310
|
className: cn(
|
|
@@ -1209,25 +1314,25 @@ var SelectContent = React5.forwardRef(({ className, children, position = "popper
|
|
|
1209
1314
|
children
|
|
1210
1315
|
}
|
|
1211
1316
|
),
|
|
1212
|
-
/* @__PURE__ */ (0,
|
|
1317
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SelectScrollDownButton, {})
|
|
1213
1318
|
]
|
|
1214
1319
|
}
|
|
1215
1320
|
) }));
|
|
1216
1321
|
SelectContent.displayName = "SelectContent";
|
|
1217
|
-
var SelectItem =
|
|
1322
|
+
var SelectItem = React6.forwardRef(({ className, children, icon = /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Icon, { name: "check" }), ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
|
|
1218
1323
|
SelectPrimitive.Item,
|
|
1219
1324
|
{
|
|
1220
1325
|
ref,
|
|
1221
1326
|
className: cn("sv-menu-item", className),
|
|
1222
1327
|
...props,
|
|
1223
1328
|
children: [
|
|
1224
|
-
icon === null ? null : /* @__PURE__ */ (0,
|
|
1225
|
-
/* @__PURE__ */ (0,
|
|
1329
|
+
icon === null ? null : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SelectPrimitive.ItemIndicator, { className: "sv-menu-item__indicator", children: icon }),
|
|
1330
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(SelectPrimitive.ItemText, { children })
|
|
1226
1331
|
]
|
|
1227
1332
|
}
|
|
1228
1333
|
));
|
|
1229
1334
|
SelectItem.displayName = "SelectItem";
|
|
1230
|
-
var SelectLabel =
|
|
1335
|
+
var SelectLabel = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1231
1336
|
SelectPrimitive.Label,
|
|
1232
1337
|
{
|
|
1233
1338
|
ref,
|
|
@@ -1236,7 +1341,7 @@ var SelectLabel = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1236
1341
|
}
|
|
1237
1342
|
));
|
|
1238
1343
|
SelectLabel.displayName = "SelectLabel";
|
|
1239
|
-
var SelectSeparator =
|
|
1344
|
+
var SelectSeparator = React6.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
1240
1345
|
SelectPrimitive.Separator,
|
|
1241
1346
|
{
|
|
1242
1347
|
ref,
|
|
@@ -1247,17 +1352,17 @@ var SelectSeparator = React5.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1247
1352
|
SelectSeparator.displayName = "SelectSeparator";
|
|
1248
1353
|
|
|
1249
1354
|
// src/components/ui/dropdown-menu.tsx
|
|
1250
|
-
var
|
|
1355
|
+
var React7 = __toESM(require("react"), 1);
|
|
1251
1356
|
var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"), 1);
|
|
1252
|
-
var
|
|
1357
|
+
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1253
1358
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
1254
1359
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
1255
1360
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
1256
1361
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
1257
1362
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
1258
1363
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
1259
|
-
var DropdownMenuSubTrigger =
|
|
1260
|
-
({ className, inset, children, icon = /* @__PURE__ */ (0,
|
|
1364
|
+
var DropdownMenuSubTrigger = React7.forwardRef(
|
|
1365
|
+
({ className, inset, children, icon = /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Icon, { name: "chevron-right" }), ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
1261
1366
|
DropdownMenuPrimitive.SubTrigger,
|
|
1262
1367
|
{
|
|
1263
1368
|
ref,
|
|
@@ -1271,7 +1376,7 @@ var DropdownMenuSubTrigger = React6.forwardRef(
|
|
|
1271
1376
|
)
|
|
1272
1377
|
);
|
|
1273
1378
|
DropdownMenuSubTrigger.displayName = "DropdownMenuSubTrigger";
|
|
1274
|
-
var DropdownMenuSubContent =
|
|
1379
|
+
var DropdownMenuSubContent = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1275
1380
|
DropdownMenuPrimitive.SubContent,
|
|
1276
1381
|
{
|
|
1277
1382
|
ref,
|
|
@@ -1280,7 +1385,7 @@ var DropdownMenuSubContent = React6.forwardRef(({ className, ...props }, ref) =>
|
|
|
1280
1385
|
}
|
|
1281
1386
|
));
|
|
1282
1387
|
DropdownMenuSubContent.displayName = "DropdownMenuSubContent";
|
|
1283
|
-
var DropdownMenuContent =
|
|
1388
|
+
var DropdownMenuContent = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1284
1389
|
DropdownMenuPrimitive.Content,
|
|
1285
1390
|
{
|
|
1286
1391
|
ref,
|
|
@@ -1289,7 +1394,7 @@ var DropdownMenuContent = React6.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1289
1394
|
}
|
|
1290
1395
|
) }));
|
|
1291
1396
|
DropdownMenuContent.displayName = "DropdownMenuContent";
|
|
1292
|
-
var DropdownMenuItem =
|
|
1397
|
+
var DropdownMenuItem = React7.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1293
1398
|
DropdownMenuPrimitive.Item,
|
|
1294
1399
|
{
|
|
1295
1400
|
ref,
|
|
@@ -1298,35 +1403,35 @@ var DropdownMenuItem = React6.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
1298
1403
|
}
|
|
1299
1404
|
));
|
|
1300
1405
|
DropdownMenuItem.displayName = "DropdownMenuItem";
|
|
1301
|
-
var DropdownMenuCheckboxItem =
|
|
1406
|
+
var DropdownMenuCheckboxItem = React7.forwardRef(({ className, children, icon = /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Icon, { name: "check" }), ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
1302
1407
|
DropdownMenuPrimitive.CheckboxItem,
|
|
1303
1408
|
{
|
|
1304
1409
|
ref,
|
|
1305
1410
|
className: cn("sv-menu-item", className),
|
|
1306
1411
|
...props,
|
|
1307
1412
|
children: [
|
|
1308
|
-
icon === null ? null : /* @__PURE__ */ (0,
|
|
1413
|
+
icon === null ? null : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DropdownMenuPrimitive.ItemIndicator, { className: "sv-menu-item__indicator", children: icon }),
|
|
1309
1414
|
children
|
|
1310
1415
|
]
|
|
1311
1416
|
}
|
|
1312
1417
|
));
|
|
1313
1418
|
DropdownMenuCheckboxItem.displayName = "DropdownMenuCheckboxItem";
|
|
1314
|
-
var DropdownMenuRadioItem =
|
|
1315
|
-
({ className, children, icon = /* @__PURE__ */ (0,
|
|
1419
|
+
var DropdownMenuRadioItem = React7.forwardRef(
|
|
1420
|
+
({ className, children, icon = /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "sv-menu-item__dot" }), ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
1316
1421
|
DropdownMenuPrimitive.RadioItem,
|
|
1317
1422
|
{
|
|
1318
1423
|
ref,
|
|
1319
1424
|
className: cn("sv-menu-item", className),
|
|
1320
1425
|
...props,
|
|
1321
1426
|
children: [
|
|
1322
|
-
icon === null ? null : /* @__PURE__ */ (0,
|
|
1427
|
+
icon === null ? null : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(DropdownMenuPrimitive.ItemIndicator, { className: "sv-menu-item__indicator", children: icon }),
|
|
1323
1428
|
children
|
|
1324
1429
|
]
|
|
1325
1430
|
}
|
|
1326
1431
|
)
|
|
1327
1432
|
);
|
|
1328
1433
|
DropdownMenuRadioItem.displayName = "DropdownMenuRadioItem";
|
|
1329
|
-
var DropdownMenuLabel =
|
|
1434
|
+
var DropdownMenuLabel = React7.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1330
1435
|
DropdownMenuPrimitive.Label,
|
|
1331
1436
|
{
|
|
1332
1437
|
ref,
|
|
@@ -1335,7 +1440,7 @@ var DropdownMenuLabel = React6.forwardRef(({ className, inset, ...props }, ref)
|
|
|
1335
1440
|
}
|
|
1336
1441
|
));
|
|
1337
1442
|
DropdownMenuLabel.displayName = "DropdownMenuLabel";
|
|
1338
|
-
var DropdownMenuSeparator =
|
|
1443
|
+
var DropdownMenuSeparator = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
1339
1444
|
DropdownMenuPrimitive.Separator,
|
|
1340
1445
|
{
|
|
1341
1446
|
ref,
|
|
@@ -1347,14 +1452,14 @@ DropdownMenuSeparator.displayName = "DropdownMenuSeparator";
|
|
|
1347
1452
|
var DropdownMenuShortcut = ({
|
|
1348
1453
|
className,
|
|
1349
1454
|
...props
|
|
1350
|
-
}) => /* @__PURE__ */ (0,
|
|
1455
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: cn("sv-menu-shortcut", className), ...props });
|
|
1351
1456
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
1352
1457
|
|
|
1353
1458
|
// src/components/ui/tabs.tsx
|
|
1354
|
-
var
|
|
1459
|
+
var React8 = __toESM(require("react"), 1);
|
|
1355
1460
|
var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
|
|
1356
|
-
var
|
|
1357
|
-
var Tabs =
|
|
1461
|
+
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1462
|
+
var Tabs = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1358
1463
|
TabsPrimitive.Root,
|
|
1359
1464
|
{
|
|
1360
1465
|
ref,
|
|
@@ -1363,7 +1468,7 @@ var Tabs = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (
|
|
|
1363
1468
|
}
|
|
1364
1469
|
));
|
|
1365
1470
|
Tabs.displayName = "Tabs";
|
|
1366
|
-
var TabsList =
|
|
1471
|
+
var TabsList = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1367
1472
|
TabsPrimitive.List,
|
|
1368
1473
|
{
|
|
1369
1474
|
ref,
|
|
@@ -1372,7 +1477,7 @@ var TabsList = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1372
1477
|
}
|
|
1373
1478
|
));
|
|
1374
1479
|
TabsList.displayName = "TabsList";
|
|
1375
|
-
var TabsTrigger =
|
|
1480
|
+
var TabsTrigger = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1376
1481
|
TabsPrimitive.Trigger,
|
|
1377
1482
|
{
|
|
1378
1483
|
ref,
|
|
@@ -1381,7 +1486,7 @@ var TabsTrigger = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1381
1486
|
}
|
|
1382
1487
|
));
|
|
1383
1488
|
TabsTrigger.displayName = "TabsTrigger";
|
|
1384
|
-
var TabsContent =
|
|
1489
|
+
var TabsContent = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1385
1490
|
TabsPrimitive.Content,
|
|
1386
1491
|
{
|
|
1387
1492
|
ref,
|
|
@@ -1392,13 +1497,13 @@ var TabsContent = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1392
1497
|
TabsContent.displayName = "TabsContent";
|
|
1393
1498
|
|
|
1394
1499
|
// src/components/ui/tooltip.tsx
|
|
1395
|
-
var
|
|
1500
|
+
var React9 = __toESM(require("react"), 1);
|
|
1396
1501
|
var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
|
|
1397
|
-
var
|
|
1502
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
1398
1503
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
1399
1504
|
var Tooltip = TooltipPrimitive.Root;
|
|
1400
1505
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
1401
|
-
var TooltipContent =
|
|
1506
|
+
var TooltipContent = React9.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
1402
1507
|
TooltipPrimitive.Content,
|
|
1403
1508
|
{
|
|
1404
1509
|
ref,
|
|
@@ -1421,6 +1526,16 @@ TooltipContent.displayName = "TooltipContent";
|
|
|
1421
1526
|
AlertDialogPortal,
|
|
1422
1527
|
AlertDialogTitle,
|
|
1423
1528
|
AlertDialogTrigger,
|
|
1529
|
+
BottomSheet,
|
|
1530
|
+
BottomSheetBody,
|
|
1531
|
+
BottomSheetClose,
|
|
1532
|
+
BottomSheetContent,
|
|
1533
|
+
BottomSheetDescription,
|
|
1534
|
+
BottomSheetFooter,
|
|
1535
|
+
BottomSheetHeader,
|
|
1536
|
+
BottomSheetOverlay,
|
|
1537
|
+
BottomSheetTitle,
|
|
1538
|
+
BottomSheetTrigger,
|
|
1424
1539
|
CopyButton,
|
|
1425
1540
|
DEFAULT_STORAGE_KEY,
|
|
1426
1541
|
Dialog,
|