@epicbagel/saas-kit 1.32.0 → 1.34.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/README.md +67 -0
- package/THIRD_PARTY_NOTICES.md +6 -5
- package/dist/chunk-2BNEE3U6.cjs +36 -0
- package/dist/chunk-2DCJ2SFU.js +20 -0
- package/dist/chunk-5GFMSK27.js +489 -0
- package/dist/chunk-5PHOKJCT.cjs +42 -0
- package/dist/chunk-B54ZEKBG.cjs +63 -0
- package/dist/chunk-BB7PO2BW.js +67 -0
- package/dist/chunk-BOMVE7QO.cjs +47 -0
- package/dist/{chunk-FPOJ2NGG.js → chunk-C3VZMTVB.js} +1 -1
- package/dist/chunk-CXAFTEEP.cjs +20 -0
- package/dist/chunk-EXHF3QUY.js +36 -0
- package/dist/chunk-FYNHRHVY.cjs +47 -0
- package/dist/chunk-HTTRUJQU.cjs +60 -0
- package/dist/chunk-I3GBXIFL.cjs +67 -0
- package/dist/chunk-O3G3TVPU.js +27 -0
- package/dist/{chunk-JS6BLIWL.js → chunk-ROUWBWEQ.js} +7 -7
- package/dist/chunk-TDCVZKMX.cjs +27 -0
- package/dist/{chunk-E2UVQXBO.cjs → chunk-TP74SBRH.cjs} +6 -6
- package/dist/chunk-TUQVHPSI.js +60 -0
- package/dist/chunk-UKYUWSF2.cjs +489 -0
- package/dist/{chunk-MOJHETNO.cjs → chunk-VUMLLKWY.cjs} +5 -5
- package/dist/chunk-VWOWPNKT.js +73 -0
- package/dist/chunk-W5L6LQI3.js +42 -0
- package/dist/chunk-WMTCL463.js +47 -0
- package/dist/chunk-WTVL2FK7.js +47 -0
- package/dist/chunk-XH2I3YJ6.js +63 -0
- package/dist/chunk-Y6X6XDHE.cjs +73 -0
- package/dist/primitives/accent-theme.cjs +7 -0
- package/dist/primitives/accent-theme.d.cts +32 -0
- package/dist/primitives/accent-theme.d.ts +32 -0
- package/dist/primitives/accent-theme.js +7 -0
- package/dist/primitives/activity-feed.cjs +3 -3
- package/dist/primitives/activity-feed.js +4 -4
- package/dist/primitives/anchor.cjs +3 -30
- package/dist/primitives/anchor.js +3 -30
- package/dist/primitives/app-layout.cjs +114 -0
- package/dist/primitives/app-layout.d.cts +47 -0
- package/dist/primitives/app-layout.d.ts +47 -0
- package/dist/primitives/app-layout.js +114 -0
- package/dist/primitives/app-sidebar.cjs +52 -0
- package/dist/primitives/app-sidebar.d.cts +105 -0
- package/dist/primitives/app-sidebar.d.ts +105 -0
- package/dist/primitives/app-sidebar.js +52 -0
- package/dist/primitives/back-bar.cjs +37 -0
- package/dist/primitives/back-bar.d.cts +31 -0
- package/dist/primitives/back-bar.d.ts +31 -0
- package/dist/primitives/back-bar.js +37 -0
- package/dist/primitives/batch-action-bar.cjs +134 -0
- package/dist/primitives/batch-action-bar.d.cts +27 -0
- package/dist/primitives/batch-action-bar.d.ts +27 -0
- package/dist/primitives/batch-action-bar.js +134 -0
- package/dist/primitives/board-view.cjs +7 -7
- package/dist/primitives/board-view.js +6 -6
- package/dist/primitives/brand-mark.cjs +8 -0
- package/dist/primitives/brand-mark.d.cts +10 -0
- package/dist/primitives/brand-mark.d.ts +10 -0
- package/dist/primitives/brand-mark.js +8 -0
- package/dist/primitives/branded-page.cjs +201 -0
- package/dist/primitives/branded-page.d.cts +118 -0
- package/dist/primitives/branded-page.d.ts +118 -0
- package/dist/primitives/branded-page.js +201 -0
- package/dist/primitives/call-card.cjs +2 -2
- package/dist/primitives/call-card.js +3 -3
- package/dist/primitives/chat.cjs +21 -21
- package/dist/primitives/chat.js +17 -17
- package/dist/primitives/command.cjs +129 -0
- package/dist/primitives/command.d.cts +60 -0
- package/dist/primitives/command.d.ts +60 -0
- package/dist/primitives/command.js +129 -0
- package/dist/primitives/compact-list.cjs +24 -0
- package/dist/primitives/compact-list.d.cts +18 -0
- package/dist/primitives/compact-list.d.ts +18 -0
- package/dist/primitives/compact-list.js +24 -0
- package/dist/primitives/connection.cjs +2 -2
- package/dist/primitives/connection.js +2 -2
- package/dist/primitives/context-bar.cjs +57 -0
- package/dist/primitives/context-bar.d.cts +50 -0
- package/dist/primitives/context-bar.d.ts +50 -0
- package/dist/primitives/context-bar.js +57 -0
- package/dist/primitives/cycling-prompt.cjs +102 -0
- package/dist/primitives/cycling-prompt.d.cts +24 -0
- package/dist/primitives/cycling-prompt.d.ts +24 -0
- package/dist/primitives/cycling-prompt.js +102 -0
- package/dist/primitives/dialog.d.cts +9 -9
- package/dist/primitives/dialog.d.ts +9 -9
- package/dist/primitives/document-preview.cjs +5 -5
- package/dist/primitives/document-preview.js +3 -3
- package/dist/primitives/dotted-list.cjs +41 -0
- package/dist/primitives/dotted-list.d.cts +28 -0
- package/dist/primitives/dotted-list.d.ts +28 -0
- package/dist/primitives/dotted-list.js +41 -0
- package/dist/primitives/drawer.d.cts +6 -6
- package/dist/primitives/drawer.d.ts +6 -6
- package/dist/primitives/field.cjs +3 -3
- package/dist/primitives/field.js +2 -2
- package/dist/primitives/file-dropzone.cjs +3 -3
- package/dist/primitives/file-dropzone.js +2 -2
- package/dist/primitives/file-preview-internals.cjs +4 -4
- package/dist/primitives/file-preview-internals.js +3 -3
- package/dist/primitives/file-preview.cjs +12 -12
- package/dist/primitives/file-preview.js +3 -3
- package/dist/primitives/filter-bar.cjs +4 -4
- package/dist/primitives/filter-bar.js +3 -3
- package/dist/primitives/fixed-action-bar.cjs +9 -0
- package/dist/primitives/fixed-action-bar.d.cts +15 -0
- package/dist/primitives/fixed-action-bar.d.ts +15 -0
- package/dist/primitives/fixed-action-bar.js +9 -0
- package/dist/primitives/floating-action-button.cjs +65 -0
- package/dist/primitives/floating-action-button.d.cts +52 -0
- package/dist/primitives/floating-action-button.d.ts +52 -0
- package/dist/primitives/floating-action-button.js +65 -0
- package/dist/primitives/form-section.cjs +38 -0
- package/dist/primitives/form-section.d.cts +43 -0
- package/dist/primitives/form-section.d.ts +43 -0
- package/dist/primitives/form-section.js +38 -0
- package/dist/primitives/key-value-grid.cjs +52 -0
- package/dist/primitives/key-value-grid.d.cts +20 -0
- package/dist/primitives/key-value-grid.d.ts +20 -0
- package/dist/primitives/key-value-grid.js +52 -0
- package/dist/primitives/marketing-footer.cjs +34 -0
- package/dist/primitives/marketing-footer.d.cts +29 -0
- package/dist/primitives/marketing-footer.d.ts +29 -0
- package/dist/primitives/marketing-footer.js +34 -0
- package/dist/primitives/marketing-header.cjs +8 -0
- package/dist/primitives/marketing-header.d.cts +31 -0
- package/dist/primitives/marketing-header.d.ts +31 -0
- package/dist/primitives/marketing-header.js +8 -0
- package/dist/primitives/marketing-section.cjs +8 -0
- package/dist/primitives/marketing-section.d.cts +35 -0
- package/dist/primitives/marketing-section.d.ts +35 -0
- package/dist/primitives/marketing-section.js +8 -0
- package/dist/primitives/marketing-shell.cjs +28 -0
- package/dist/primitives/marketing-shell.d.cts +14 -0
- package/dist/primitives/marketing-shell.d.ts +14 -0
- package/dist/primitives/marketing-shell.js +28 -0
- package/dist/primitives/notes.cjs +3 -3
- package/dist/primitives/notes.js +3 -3
- package/dist/primitives/page-header.cjs +3 -67
- package/dist/primitives/page-header.js +3 -67
- package/dist/primitives/page-shell.cjs +3 -41
- package/dist/primitives/page-shell.js +3 -41
- package/dist/primitives/page-tabs.cjs +4 -57
- package/dist/primitives/page-tabs.js +4 -57
- package/dist/primitives/pager.cjs +85 -0
- package/dist/primitives/pager.d.cts +39 -0
- package/dist/primitives/pager.d.ts +39 -0
- package/dist/primitives/pager.js +85 -0
- package/dist/primitives/pagination.cjs +119 -0
- package/dist/primitives/pagination.d.cts +41 -0
- package/dist/primitives/pagination.d.ts +41 -0
- package/dist/primitives/pagination.js +119 -0
- package/dist/primitives/poster.cjs +11 -1
- package/dist/primitives/poster.d.cts +12 -1
- package/dist/primitives/poster.d.ts +12 -1
- package/dist/primitives/poster.js +10 -0
- package/dist/primitives/resource-list.cjs +7 -7
- package/dist/primitives/resource-list.js +6 -6
- package/dist/primitives/responsive-dialog.cjs +3 -3
- package/dist/primitives/responsive-dialog.js +2 -2
- package/dist/primitives/responsive-embed.cjs +29 -0
- package/dist/primitives/responsive-embed.d.cts +14 -0
- package/dist/primitives/responsive-embed.d.ts +14 -0
- package/dist/primitives/responsive-embed.js +29 -0
- package/dist/primitives/save-bar.cjs +91 -0
- package/dist/primitives/save-bar.d.cts +55 -0
- package/dist/primitives/save-bar.d.ts +55 -0
- package/dist/primitives/save-bar.js +91 -0
- package/dist/primitives/section.cjs +2 -2
- package/dist/primitives/section.js +3 -3
- package/dist/primitives/settings-list.cjs +10 -0
- package/dist/primitives/settings-list.d.cts +31 -0
- package/dist/primitives/settings-list.d.ts +31 -0
- package/dist/primitives/settings-list.js +10 -0
- package/dist/primitives/settings-section.cjs +34 -0
- package/dist/primitives/settings-section.d.cts +44 -0
- package/dist/primitives/settings-section.d.ts +44 -0
- package/dist/primitives/settings-section.js +34 -0
- package/dist/primitives/sheet.d.cts +9 -9
- package/dist/primitives/sheet.d.ts +9 -9
- package/dist/primitives/short-video.cjs +110 -0
- package/dist/primitives/short-video.d.cts +30 -0
- package/dist/primitives/short-video.d.ts +30 -0
- package/dist/primitives/short-video.js +110 -0
- package/dist/primitives/stats-card.cjs +46 -0
- package/dist/primitives/stats-card.d.cts +19 -0
- package/dist/primitives/stats-card.d.ts +19 -0
- package/dist/primitives/stats-card.js +46 -0
- package/dist/primitives/stats-strip.cjs +38 -0
- package/dist/primitives/stats-strip.d.cts +24 -0
- package/dist/primitives/stats-strip.d.ts +24 -0
- package/dist/primitives/stats-strip.js +38 -0
- package/dist/primitives/step-list.cjs +32 -0
- package/dist/primitives/step-list.d.cts +19 -0
- package/dist/primitives/step-list.d.ts +19 -0
- package/dist/primitives/step-list.js +32 -0
- package/dist/primitives/steps.cjs +77 -0
- package/dist/primitives/steps.d.cts +35 -0
- package/dist/primitives/steps.d.ts +35 -0
- package/dist/primitives/steps.js +77 -0
- package/dist/primitives/switch-field.cjs +3 -3
- package/dist/primitives/switch-field.js +3 -3
- package/dist/primitives/tabbed-page-header.cjs +53 -0
- package/dist/primitives/tabbed-page-header.d.cts +26 -0
- package/dist/primitives/tabbed-page-header.d.ts +26 -0
- package/dist/primitives/tabbed-page-header.js +53 -0
- package/dist/primitives/theme-selector.cjs +15 -15
- package/dist/primitives/theme-selector.js +2 -2
- package/dist/primitives/voice-dictation-button.cjs +3 -3
- package/dist/primitives/voice-dictation-button.js +2 -2
- package/dist/primitives/voice-session-controls.cjs +3 -3
- package/dist/primitives/voice-session-controls.js +2 -2
- package/dist/primitives/workflow-assistant.cjs +4 -4
- package/dist/primitives/workflow-assistant.js +2 -2
- package/package.json +322 -1
- package/src/styles/components/poster.css +42 -1
- package/dist/{chunk-PH2TV7XI.cjs → chunk-2YW5VA2V.cjs} +2 -2
- package/dist/{chunk-UFFHGKI7.js → chunk-6LB37JWO.js} +8 -8
- package/dist/{chunk-AO56ET4F.cjs → chunk-BTHYGHOH.cjs} +2 -2
- package/dist/{chunk-WHDHUYS6.js → chunk-HBRVOGLA.js} +3 -3
- package/dist/{chunk-6O3DUMF7.js → chunk-HTUYUMAH.js} +3 -3
- package/dist/{chunk-PNI354BY.cjs → chunk-JMNDFISN.cjs} +2 -2
- package/dist/{chunk-CRZ4INEJ.js → chunk-JTI4244T.js} +10 -10
- package/dist/{chunk-ZGTPNSR7.js → chunk-NNEV5RHQ.js} +3 -3
- package/dist/{chunk-TWCJMFST.js → chunk-O42YC6ZQ.js} +3 -3
- package/dist/{chunk-MW67PHAQ.cjs → chunk-S2IMM37Q.cjs} +6 -6
- package/dist/{chunk-ZJFYOXSM.cjs → chunk-SRVRNHCX.cjs} +2 -2
- package/dist/{chunk-ZLEM2SAU.cjs → chunk-Z3JJSNR5.cjs} +2 -2
package/dist/primitives/chat.js
CHANGED
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
} from "../chunk-Z45YKVAM.js";
|
|
8
8
|
import {
|
|
9
9
|
VoiceDictationButton
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-NNEV5RHQ.js";
|
|
11
11
|
import {
|
|
12
12
|
VoiceSessionControls
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-HTUYUMAH.js";
|
|
14
14
|
import {
|
|
15
15
|
Suggestion,
|
|
16
16
|
Suggestions
|
|
@@ -21,10 +21,6 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
PersonAvatar
|
|
23
23
|
} from "../chunk-T5AFBLP2.js";
|
|
24
|
-
import {
|
|
25
|
-
Marker,
|
|
26
|
-
MarkerContent
|
|
27
|
-
} from "../chunk-IW4ZIXXG.js";
|
|
28
24
|
import {
|
|
29
25
|
Message,
|
|
30
26
|
MessageAction,
|
|
@@ -32,11 +28,9 @@ import {
|
|
|
32
28
|
MessageContent
|
|
33
29
|
} from "../chunk-H4XH2PPU.js";
|
|
34
30
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} from "../chunk-QTPPNK6F.js";
|
|
39
|
-
import "../chunk-6FC65AZQ.js";
|
|
31
|
+
Marker,
|
|
32
|
+
MarkerContent
|
|
33
|
+
} from "../chunk-IW4ZIXXG.js";
|
|
40
34
|
import {
|
|
41
35
|
Item,
|
|
42
36
|
ItemContent,
|
|
@@ -44,11 +38,16 @@ import {
|
|
|
44
38
|
ItemMedia,
|
|
45
39
|
ItemTitle
|
|
46
40
|
} from "../chunk-SG4ZE2EN.js";
|
|
47
|
-
import
|
|
41
|
+
import {
|
|
42
|
+
InputGroup,
|
|
43
|
+
InputGroupAddon,
|
|
44
|
+
InputGroupTextarea
|
|
45
|
+
} from "../chunk-QTPPNK6F.js";
|
|
46
|
+
import "../chunk-6FC65AZQ.js";
|
|
48
47
|
import {
|
|
49
48
|
FileDropArea,
|
|
50
49
|
FileDropzone
|
|
51
|
-
} from "../chunk-
|
|
50
|
+
} from "../chunk-HBRVOGLA.js";
|
|
52
51
|
import {
|
|
53
52
|
LazyMarkdown
|
|
54
53
|
} from "../chunk-VY5U4VGV.js";
|
|
@@ -80,13 +79,12 @@ import {
|
|
|
80
79
|
} from "../chunk-OUZSIA5G.js";
|
|
81
80
|
import "../chunk-36LNA4WM.js";
|
|
82
81
|
import "../chunk-GA5SX7FE.js";
|
|
83
|
-
import "../chunk-ZRLUUZHK.js";
|
|
84
82
|
import {
|
|
85
83
|
Bubble,
|
|
86
84
|
BubbleContent
|
|
87
85
|
} from "../chunk-F366BHWH.js";
|
|
88
|
-
import "../chunk-EIY5LLSP.js";
|
|
89
86
|
import "../chunk-NBUWGRQO.js";
|
|
87
|
+
import "../chunk-EIY5LLSP.js";
|
|
90
88
|
import {
|
|
91
89
|
Attachment,
|
|
92
90
|
AttachmentAction,
|
|
@@ -98,15 +96,17 @@ import {
|
|
|
98
96
|
AttachmentTitle,
|
|
99
97
|
AttachmentTrigger
|
|
100
98
|
} from "../chunk-CYDICVH2.js";
|
|
99
|
+
import "../chunk-HYTILYE5.js";
|
|
100
|
+
import "../chunk-ZRLUUZHK.js";
|
|
101
101
|
import {
|
|
102
102
|
ActionDock
|
|
103
103
|
} from "../chunk-42RTTHND.js";
|
|
104
|
-
import "../chunk-QMA3WVB7.js";
|
|
105
104
|
import "../chunk-3OWGL4Q2.js";
|
|
106
|
-
import "../chunk-
|
|
105
|
+
import "../chunk-QMA3WVB7.js";
|
|
107
106
|
import {
|
|
108
107
|
Button
|
|
109
108
|
} from "../chunk-W326GKML.js";
|
|
109
|
+
import "../chunk-5OF6D3GH.js";
|
|
110
110
|
import {
|
|
111
111
|
cn
|
|
112
112
|
} from "../chunk-G6SRSWXB.js";
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
var _chunkWDXEJDMOcjs = require('../chunk-WDXEJDMO.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkKWLSBTB2cjs = require('../chunk-KWLSBTB2.cjs');
|
|
9
|
+
|
|
10
|
+
// src/primitives/command.tsx
|
|
11
|
+
var _cmdk = require('cmdk');
|
|
12
|
+
var _react = require('react'); var React = _interopRequireWildcard(_react);
|
|
13
|
+
var _lucidereact = require('lucide-react');
|
|
14
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
15
|
+
var Command = React.forwardRef(({ className, height = "full", surface = "plain", ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16
|
+
_cmdk.Command,
|
|
17
|
+
{
|
|
18
|
+
ref,
|
|
19
|
+
className: _chunkKWLSBTB2cjs.cn.call(void 0,
|
|
20
|
+
"flex w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
|
|
21
|
+
height === "full" && "h-full",
|
|
22
|
+
surface === "bordered" && "border",
|
|
23
|
+
className
|
|
24
|
+
),
|
|
25
|
+
...props
|
|
26
|
+
}
|
|
27
|
+
));
|
|
28
|
+
Command.displayName = _cmdk.Command.displayName;
|
|
29
|
+
var CommandDialog = ({ children, ...props }) => {
|
|
30
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWDXEJDMOcjs.Dialog, { ...props, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWDXEJDMOcjs.DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) }) });
|
|
31
|
+
};
|
|
32
|
+
var CommandInput = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
33
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
34
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
35
|
+
_cmdk.Command.Input,
|
|
36
|
+
{
|
|
37
|
+
ref,
|
|
38
|
+
className: _chunkKWLSBTB2cjs.cn.call(void 0,
|
|
39
|
+
"flex h-11 w-full rounded-md bg-transparent py-3 text-[16px] md:text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
40
|
+
className
|
|
41
|
+
),
|
|
42
|
+
...props
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
] }));
|
|
46
|
+
CommandInput.displayName = _cmdk.Command.Input.displayName;
|
|
47
|
+
var CommandList = React.forwardRef(({ className, maxHeight = "default", ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
48
|
+
_cmdk.Command.List,
|
|
49
|
+
{
|
|
50
|
+
ref,
|
|
51
|
+
className: _chunkKWLSBTB2cjs.cn.call(void 0,
|
|
52
|
+
maxHeight === "default" ? "max-h-[300px]" : "max-h-44",
|
|
53
|
+
"overflow-y-auto overflow-x-hidden",
|
|
54
|
+
className
|
|
55
|
+
),
|
|
56
|
+
...props
|
|
57
|
+
}
|
|
58
|
+
));
|
|
59
|
+
CommandList.displayName = _cmdk.Command.List.displayName;
|
|
60
|
+
var CommandEmpty = React.forwardRef((props, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
61
|
+
_cmdk.Command.Empty,
|
|
62
|
+
{
|
|
63
|
+
ref,
|
|
64
|
+
className: "py-6 text-center text-sm",
|
|
65
|
+
...props
|
|
66
|
+
}
|
|
67
|
+
));
|
|
68
|
+
CommandEmpty.displayName = _cmdk.Command.Empty.displayName;
|
|
69
|
+
var CommandGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
70
|
+
_cmdk.Command.Group,
|
|
71
|
+
{
|
|
72
|
+
ref,
|
|
73
|
+
className: _chunkKWLSBTB2cjs.cn.call(void 0,
|
|
74
|
+
"overflow-hidden p-1 text-foreground [&_[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-muted-foreground",
|
|
75
|
+
className
|
|
76
|
+
),
|
|
77
|
+
...props
|
|
78
|
+
}
|
|
79
|
+
));
|
|
80
|
+
CommandGroup.displayName = _cmdk.Command.Group.displayName;
|
|
81
|
+
var CommandSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
82
|
+
_cmdk.Command.Separator,
|
|
83
|
+
{
|
|
84
|
+
ref,
|
|
85
|
+
className: _chunkKWLSBTB2cjs.cn.call(void 0, "-mx-1 h-px bg-border", className),
|
|
86
|
+
...props
|
|
87
|
+
}
|
|
88
|
+
));
|
|
89
|
+
CommandSeparator.displayName = _cmdk.Command.Separator.displayName;
|
|
90
|
+
var CommandItem = React.forwardRef(({ className, gap = "none", ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
91
|
+
_cmdk.Command.Item,
|
|
92
|
+
{
|
|
93
|
+
ref,
|
|
94
|
+
className: _chunkKWLSBTB2cjs.cn.call(void 0,
|
|
95
|
+
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[disabled=false]:pointer-events-auto data-[disabled=false]:opacity-100 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
96
|
+
gap === "sm" && "gap-2",
|
|
97
|
+
className
|
|
98
|
+
),
|
|
99
|
+
...props
|
|
100
|
+
}
|
|
101
|
+
));
|
|
102
|
+
CommandItem.displayName = _cmdk.Command.Item.displayName;
|
|
103
|
+
var CommandShortcut = ({
|
|
104
|
+
className,
|
|
105
|
+
...props
|
|
106
|
+
}) => {
|
|
107
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
108
|
+
"span",
|
|
109
|
+
{
|
|
110
|
+
className: _chunkKWLSBTB2cjs.cn.call(void 0,
|
|
111
|
+
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
112
|
+
className
|
|
113
|
+
),
|
|
114
|
+
...props
|
|
115
|
+
}
|
|
116
|
+
);
|
|
117
|
+
};
|
|
118
|
+
CommandShortcut.displayName = "CommandShortcut";
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
exports.Command = Command; exports.CommandDialog = CommandDialog; exports.CommandEmpty = CommandEmpty; exports.CommandGroup = CommandGroup; exports.CommandInput = CommandInput; exports.CommandItem = CommandItem; exports.CommandList = CommandList; exports.CommandSeparator = CommandSeparator; exports.CommandShortcut = CommandShortcut;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { DialogProps } from '@radix-ui/react-dialog';
|
|
3
|
+
import { Command as Command$1 } from 'cmdk';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
|
|
6
|
+
interface CommandProps extends React.ComponentPropsWithoutRef<typeof Command$1> {
|
|
7
|
+
height?: "full" | "auto";
|
|
8
|
+
surface?: "plain" | "bordered";
|
|
9
|
+
}
|
|
10
|
+
declare const Command: React.ForwardRefExoticComponent<CommandProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
interface CommandDialogProps extends DialogProps {
|
|
12
|
+
}
|
|
13
|
+
declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
|
15
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
16
|
+
} & {
|
|
17
|
+
asChild?: boolean;
|
|
18
|
+
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "value" | "type"> & {
|
|
19
|
+
value?: string;
|
|
20
|
+
onValueChange?: (search: string) => void;
|
|
21
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
22
|
+
interface CommandListProps extends React.ComponentPropsWithoutRef<typeof Command$1.List> {
|
|
23
|
+
maxHeight?: "default" | "sm";
|
|
24
|
+
}
|
|
25
|
+
declare const CommandList: React.ForwardRefExoticComponent<CommandListProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
27
|
+
children?: React.ReactNode;
|
|
28
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
29
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
30
|
+
} & {
|
|
31
|
+
asChild?: boolean;
|
|
32
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
34
|
+
children?: React.ReactNode;
|
|
35
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
36
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
37
|
+
} & {
|
|
38
|
+
asChild?: boolean;
|
|
39
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
|
|
40
|
+
heading?: React.ReactNode;
|
|
41
|
+
value?: string;
|
|
42
|
+
forceMount?: boolean;
|
|
43
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
44
|
+
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
45
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
46
|
+
} & {
|
|
47
|
+
asChild?: boolean;
|
|
48
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
49
|
+
alwaysRender?: boolean;
|
|
50
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
interface CommandItemProps extends React.ComponentPropsWithoutRef<typeof Command$1.Item> {
|
|
52
|
+
gap?: "none" | "sm";
|
|
53
|
+
}
|
|
54
|
+
declare const CommandItem: React.ForwardRefExoticComponent<CommandItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
declare const CommandShortcut: {
|
|
56
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
57
|
+
displayName: string;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, type CommandItemProps, CommandList, type CommandListProps, type CommandProps, CommandSeparator, CommandShortcut };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { DialogProps } from '@radix-ui/react-dialog';
|
|
3
|
+
import { Command as Command$1 } from 'cmdk';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
|
|
6
|
+
interface CommandProps extends React.ComponentPropsWithoutRef<typeof Command$1> {
|
|
7
|
+
height?: "full" | "auto";
|
|
8
|
+
surface?: "plain" | "bordered";
|
|
9
|
+
}
|
|
10
|
+
declare const Command: React.ForwardRefExoticComponent<CommandProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
interface CommandDialogProps extends DialogProps {
|
|
12
|
+
}
|
|
13
|
+
declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
|
15
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
16
|
+
} & {
|
|
17
|
+
asChild?: boolean;
|
|
18
|
+
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "value" | "type"> & {
|
|
19
|
+
value?: string;
|
|
20
|
+
onValueChange?: (search: string) => void;
|
|
21
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
22
|
+
interface CommandListProps extends React.ComponentPropsWithoutRef<typeof Command$1.List> {
|
|
23
|
+
maxHeight?: "default" | "sm";
|
|
24
|
+
}
|
|
25
|
+
declare const CommandList: React.ForwardRefExoticComponent<CommandListProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
27
|
+
children?: React.ReactNode;
|
|
28
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
29
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
30
|
+
} & {
|
|
31
|
+
asChild?: boolean;
|
|
32
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
33
|
+
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
34
|
+
children?: React.ReactNode;
|
|
35
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
36
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
37
|
+
} & {
|
|
38
|
+
asChild?: boolean;
|
|
39
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
|
|
40
|
+
heading?: React.ReactNode;
|
|
41
|
+
value?: string;
|
|
42
|
+
forceMount?: boolean;
|
|
43
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
44
|
+
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
45
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
46
|
+
} & {
|
|
47
|
+
asChild?: boolean;
|
|
48
|
+
}, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
49
|
+
alwaysRender?: boolean;
|
|
50
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
interface CommandItemProps extends React.ComponentPropsWithoutRef<typeof Command$1.Item> {
|
|
52
|
+
gap?: "none" | "sm";
|
|
53
|
+
}
|
|
54
|
+
declare const CommandItem: React.ForwardRefExoticComponent<CommandItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
declare const CommandShortcut: {
|
|
56
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
57
|
+
displayName: string;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, type CommandItemProps, CommandList, type CommandListProps, type CommandProps, CommandSeparator, CommandShortcut };
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Dialog,
|
|
4
|
+
DialogContent
|
|
5
|
+
} from "../chunk-3QT5VYZ3.js";
|
|
6
|
+
import {
|
|
7
|
+
cn
|
|
8
|
+
} from "../chunk-G6SRSWXB.js";
|
|
9
|
+
|
|
10
|
+
// src/primitives/command.tsx
|
|
11
|
+
import { Command as CommandPrimitive } from "cmdk";
|
|
12
|
+
import * as React from "react";
|
|
13
|
+
import { Search } from "lucide-react";
|
|
14
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
var Command = React.forwardRef(({ className, height = "full", surface = "plain", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
16
|
+
CommandPrimitive,
|
|
17
|
+
{
|
|
18
|
+
ref,
|
|
19
|
+
className: cn(
|
|
20
|
+
"flex w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
|
|
21
|
+
height === "full" && "h-full",
|
|
22
|
+
surface === "bordered" && "border",
|
|
23
|
+
className
|
|
24
|
+
),
|
|
25
|
+
...props
|
|
26
|
+
}
|
|
27
|
+
));
|
|
28
|
+
Command.displayName = CommandPrimitive.displayName;
|
|
29
|
+
var CommandDialog = ({ children, ...props }) => {
|
|
30
|
+
return /* @__PURE__ */ jsx(Dialog, { ...props, children: /* @__PURE__ */ jsx(DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ jsx(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) }) });
|
|
31
|
+
};
|
|
32
|
+
var CommandInput = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
33
|
+
/* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
34
|
+
/* @__PURE__ */ jsx(
|
|
35
|
+
CommandPrimitive.Input,
|
|
36
|
+
{
|
|
37
|
+
ref,
|
|
38
|
+
className: cn(
|
|
39
|
+
"flex h-11 w-full rounded-md bg-transparent py-3 text-[16px] md:text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
40
|
+
className
|
|
41
|
+
),
|
|
42
|
+
...props
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
] }));
|
|
46
|
+
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
47
|
+
var CommandList = React.forwardRef(({ className, maxHeight = "default", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
48
|
+
CommandPrimitive.List,
|
|
49
|
+
{
|
|
50
|
+
ref,
|
|
51
|
+
className: cn(
|
|
52
|
+
maxHeight === "default" ? "max-h-[300px]" : "max-h-44",
|
|
53
|
+
"overflow-y-auto overflow-x-hidden",
|
|
54
|
+
className
|
|
55
|
+
),
|
|
56
|
+
...props
|
|
57
|
+
}
|
|
58
|
+
));
|
|
59
|
+
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
60
|
+
var CommandEmpty = React.forwardRef((props, ref) => /* @__PURE__ */ jsx(
|
|
61
|
+
CommandPrimitive.Empty,
|
|
62
|
+
{
|
|
63
|
+
ref,
|
|
64
|
+
className: "py-6 text-center text-sm",
|
|
65
|
+
...props
|
|
66
|
+
}
|
|
67
|
+
));
|
|
68
|
+
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
69
|
+
var CommandGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
70
|
+
CommandPrimitive.Group,
|
|
71
|
+
{
|
|
72
|
+
ref,
|
|
73
|
+
className: cn(
|
|
74
|
+
"overflow-hidden p-1 text-foreground [&_[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-muted-foreground",
|
|
75
|
+
className
|
|
76
|
+
),
|
|
77
|
+
...props
|
|
78
|
+
}
|
|
79
|
+
));
|
|
80
|
+
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
81
|
+
var CommandSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
82
|
+
CommandPrimitive.Separator,
|
|
83
|
+
{
|
|
84
|
+
ref,
|
|
85
|
+
className: cn("-mx-1 h-px bg-border", className),
|
|
86
|
+
...props
|
|
87
|
+
}
|
|
88
|
+
));
|
|
89
|
+
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
90
|
+
var CommandItem = React.forwardRef(({ className, gap = "none", ...props }, ref) => /* @__PURE__ */ jsx(
|
|
91
|
+
CommandPrimitive.Item,
|
|
92
|
+
{
|
|
93
|
+
ref,
|
|
94
|
+
className: cn(
|
|
95
|
+
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-[disabled=false]:pointer-events-auto data-[disabled=false]:opacity-100 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
96
|
+
gap === "sm" && "gap-2",
|
|
97
|
+
className
|
|
98
|
+
),
|
|
99
|
+
...props
|
|
100
|
+
}
|
|
101
|
+
));
|
|
102
|
+
CommandItem.displayName = CommandPrimitive.Item.displayName;
|
|
103
|
+
var CommandShortcut = ({
|
|
104
|
+
className,
|
|
105
|
+
...props
|
|
106
|
+
}) => {
|
|
107
|
+
return /* @__PURE__ */ jsx(
|
|
108
|
+
"span",
|
|
109
|
+
{
|
|
110
|
+
className: cn(
|
|
111
|
+
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
112
|
+
className
|
|
113
|
+
),
|
|
114
|
+
...props
|
|
115
|
+
}
|
|
116
|
+
);
|
|
117
|
+
};
|
|
118
|
+
CommandShortcut.displayName = "CommandShortcut";
|
|
119
|
+
export {
|
|
120
|
+
Command,
|
|
121
|
+
CommandDialog,
|
|
122
|
+
CommandEmpty,
|
|
123
|
+
CommandGroup,
|
|
124
|
+
CommandInput,
|
|
125
|
+
CommandItem,
|
|
126
|
+
CommandList,
|
|
127
|
+
CommandSeparator,
|
|
128
|
+
CommandShortcut
|
|
129
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkR3DQS6U4cjs = require('../chunk-R3DQS6U4.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkKWLSBTB2cjs = require('../chunk-KWLSBTB2.cjs');
|
|
8
|
+
|
|
9
|
+
// src/primitives/compact-list.tsx
|
|
10
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
11
|
+
function CompactList({ items, className }) {
|
|
12
|
+
if (items.length === 0) return null;
|
|
13
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkR3DQS6U4cjs.Card, { className: _chunkKWLSBTB2cjs.cn.call(void 0, "divide-y divide-border", className), children: items.map((item) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3 px-3 py-2.5", children: [
|
|
14
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
15
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-sm font-medium", children: item.title }),
|
|
16
|
+
item.description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "truncate text-xs text-muted-foreground", children: item.description })
|
|
17
|
+
] }),
|
|
18
|
+
item.meta && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 text-sm text-muted-foreground", children: item.meta }),
|
|
19
|
+
item.actions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex shrink-0 items-center gap-1", children: item.actions })
|
|
20
|
+
] }, item.id)) });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
exports.CompactList = CompactList;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
interface CompactListItem {
|
|
5
|
+
id: string;
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
meta?: ReactNode;
|
|
9
|
+
actions?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
interface CompactListProps {
|
|
12
|
+
items: CompactListItem[];
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
/** Dense rows with optional metadata and trailing actions. */
|
|
16
|
+
declare function CompactList({ items, className }: CompactListProps): react_jsx_runtime.JSX.Element | null;
|
|
17
|
+
|
|
18
|
+
export { CompactList, type CompactListItem, type CompactListProps };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
interface CompactListItem {
|
|
5
|
+
id: string;
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
meta?: ReactNode;
|
|
9
|
+
actions?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
interface CompactListProps {
|
|
12
|
+
items: CompactListItem[];
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
/** Dense rows with optional metadata and trailing actions. */
|
|
16
|
+
declare function CompactList({ items, className }: CompactListProps): react_jsx_runtime.JSX.Element | null;
|
|
17
|
+
|
|
18
|
+
export { CompactList, type CompactListItem, type CompactListProps };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Card
|
|
4
|
+
} from "../chunk-35YMAIEL.js";
|
|
5
|
+
import {
|
|
6
|
+
cn
|
|
7
|
+
} from "../chunk-G6SRSWXB.js";
|
|
8
|
+
|
|
9
|
+
// src/primitives/compact-list.tsx
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
function CompactList({ items, className }) {
|
|
12
|
+
if (items.length === 0) return null;
|
|
13
|
+
return /* @__PURE__ */ jsx(Card, { className: cn("divide-y divide-border", className), children: items.map((item) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 px-3 py-2.5", children: [
|
|
14
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
15
|
+
/* @__PURE__ */ jsx("div", { className: "truncate text-sm font-medium", children: item.title }),
|
|
16
|
+
item.description && /* @__PURE__ */ jsx("div", { className: "truncate text-xs text-muted-foreground", children: item.description })
|
|
17
|
+
] }),
|
|
18
|
+
item.meta && /* @__PURE__ */ jsx("div", { className: "shrink-0 text-sm text-muted-foreground", children: item.meta }),
|
|
19
|
+
item.actions && /* @__PURE__ */ jsx("div", { className: "flex shrink-0 items-center gap-1", children: item.actions })
|
|
20
|
+
] }, item.id)) });
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
CompactList
|
|
24
|
+
};
|
|
@@ -5,6 +5,7 @@ var _chunk2HTYXBDUcjs = require('../chunk-2HTYXBDU.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkAU5GUDOWcjs = require('../chunk-AU5GUDOW.cjs');
|
|
8
|
+
require('../chunk-ZAITUDYD.cjs');
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
@@ -12,7 +13,6 @@ var _chunkAU5GUDOWcjs = require('../chunk-AU5GUDOW.cjs');
|
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
var _chunkWDXEJDMOcjs = require('../chunk-WDXEJDMO.cjs');
|
|
15
|
-
require('../chunk-ZAITUDYD.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunk373W6VADcjs = require('../chunk-373W6VAD.cjs');
|
|
@@ -23,7 +23,6 @@ var _chunkCTYOW3V2cjs = require('../chunk-CTYOW3V2.cjs');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
var _chunk667ZCM4Xcjs = require('../chunk-667ZCM4X.cjs');
|
|
26
|
-
require('../chunk-I6GUOEBO.cjs');
|
|
27
26
|
|
|
28
27
|
|
|
29
28
|
|
|
@@ -34,6 +33,7 @@ require('../chunk-I6GUOEBO.cjs');
|
|
|
34
33
|
|
|
35
34
|
|
|
36
35
|
var _chunkLIUYHYFNcjs = require('../chunk-LIUYHYFN.cjs');
|
|
36
|
+
require('../chunk-I6GUOEBO.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
var _chunkJDEXZGIYcjs = require('../chunk-JDEXZGIY.cjs');
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
PageHeaderActions
|
|
7
7
|
} from "../chunk-2UYEMPOJ.js";
|
|
8
|
+
import "../chunk-V4LE2HWP.js";
|
|
8
9
|
import {
|
|
9
10
|
Dialog,
|
|
10
11
|
DialogContent,
|
|
@@ -12,7 +13,6 @@ import {
|
|
|
12
13
|
DialogHeader,
|
|
13
14
|
DialogTitle
|
|
14
15
|
} from "../chunk-3QT5VYZ3.js";
|
|
15
|
-
import "../chunk-V4LE2HWP.js";
|
|
16
16
|
import {
|
|
17
17
|
Text
|
|
18
18
|
} from "../chunk-EIY5LLSP.js";
|
|
@@ -23,7 +23,6 @@ import {
|
|
|
23
23
|
Alert,
|
|
24
24
|
AlertDescription
|
|
25
25
|
} from "../chunk-R4AIM3BQ.js";
|
|
26
|
-
import "../chunk-D4ZL2OEQ.js";
|
|
27
26
|
import {
|
|
28
27
|
AlertDialog,
|
|
29
28
|
AlertDialogAction,
|
|
@@ -34,6 +33,7 @@ import {
|
|
|
34
33
|
AlertDialogHeader,
|
|
35
34
|
AlertDialogTitle
|
|
36
35
|
} from "../chunk-ZLU32SRP.js";
|
|
36
|
+
import "../chunk-D4ZL2OEQ.js";
|
|
37
37
|
import {
|
|
38
38
|
buttonVariants
|
|
39
39
|
} from "../chunk-W326GKML.js";
|