@collabchron/notiq 1.1.11 → 1.2.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/AICommandBarPlugin-ZEC755KY.mjs +27 -0
- package/dist/{AIDialog-2WZUFWSC.mjs → AIDialog-HJW6PQPR.mjs} +12 -13
- package/dist/{AudioComponent-CKLMLB5T.mjs → AudioComponent-W5XMZPQB.mjs} +10 -6
- package/dist/{DynamicBlockComponent-2LOADZUX.mjs → DynamicBlockComponent-CHRL2GAQ.mjs} +7 -6
- package/dist/{EquationComponent-4NFG55NQ.mjs → EquationComponent-GNQHG53L.mjs} +26 -7
- package/dist/{ExcalidrawComponent-SIMURTCA.mjs → ExcalidrawComponent-POMYXDSG.mjs} +34 -7
- package/dist/{FileComponent-Y56MX5QD.mjs → FileComponent-EOVCH4V5.mjs} +9 -5
- package/dist/{HintComponet-ET7M2Q7S.mjs → HintComponet-QXL5ESND.mjs} +32 -8
- package/dist/{InlineImageComponent-FVTA4LXZ.mjs → InlineImageComponent-KDN3VGZC.mjs} +8 -3
- package/dist/{StoryBuilderComponent-WQSNFPMM.mjs → StoryBuilderComponent-CBRFPFTR.mjs} +9 -10
- package/dist/{chunk-6UVNHT3T.mjs → chunk-4SYRK2NH.mjs} +23 -1
- package/dist/chunk-5CJZC5IB.mjs +9086 -0
- package/dist/{chunk-MW6MAUY3.mjs → chunk-6NK5DONB.mjs} +1 -1
- package/dist/{chunk-N6ILV6NF.mjs → chunk-ACW4DLVO.mjs} +21 -7
- package/dist/chunk-BCGD2YXP.mjs +574 -0
- package/dist/{chunk-TC3IISJZ.mjs → chunk-BTR3TPIN.mjs} +18 -5
- package/dist/{chunk-XAVQAXOJ.mjs → chunk-CQCS5YPS.mjs} +3 -5
- package/dist/{chunk-YTLUQJE2.mjs → chunk-D4UBNSUW.mjs} +1 -1
- package/dist/{chunk-KNW2CGIP.mjs → chunk-DBRZIA43.mjs} +4 -1
- package/dist/{chunk-CDAMHK63.mjs → chunk-GJK2L7ZM.mjs} +23 -2
- package/dist/{chunk-GYYLZ3MQ.mjs → chunk-IKYVBTCJ.mjs} +43 -20
- package/dist/chunk-IXRA5D53.mjs +10447 -0
- package/dist/{chunk-W6VQSFE5.mjs → chunk-J2CEQXG4.mjs} +1 -1
- package/dist/{chunk-43Z4Z2KD.mjs → chunk-JTNLN4JI.mjs} +1 -1
- package/dist/{chunk-OE5JRLCN.mjs → chunk-ONOHG5NB.mjs} +6 -4
- package/dist/{chunk-XZXGYNTY.mjs → chunk-OO42URWA.mjs} +27 -6
- package/dist/chunk-PBVRSNGU.mjs +129 -0
- package/dist/chunk-QCS57TIF.mjs +1794 -0
- package/dist/chunk-RNEIJRUS.mjs +60 -0
- package/dist/chunk-TJPTGECP.mjs +1556 -0
- package/dist/{chunk-XYMXGU4T.mjs → chunk-TMYRA2W4.mjs} +1 -1
- package/dist/{chunk-ZFV2HGD3.mjs → chunk-UNEFOZTS.mjs} +1 -1
- package/dist/chunk-X4NI7EQS.mjs +282 -0
- package/dist/chunk-XAJ4GACN.mjs +746 -0
- package/dist/{chunk-7QRJVZQY.mjs → chunk-YVUQRJVV.mjs} +63 -18
- package/dist/components/editor/Core.d.ts +15 -2
- package/dist/components/editor/index.d.ts +16 -5
- package/dist/components/editor/nodes/EquationNode/EquationNode.d.ts +1 -0
- package/dist/components/editor/nodes/Hint/index.d.ts +2 -1
- package/dist/components/editor/plugins/AICommandBarPlugin/index.d.ts +73 -1
- package/dist/components/editor/plugins/DraggableBlockPlugin/index.d.ts +25 -3
- package/dist/components/editor/plugins/InlineCopilotPlugin/index.d.ts +16 -3
- package/dist/components/editor/plugins/LinkWithMetaData/index.d.ts +20 -25
- package/dist/components/editor/plugins/MarkdownPastePlugin/index.d.ts +5 -0
- package/dist/components/editor/plugins/MarkdownTransformers/index.d.ts +2 -0
- package/dist/components/editor/plugins/SlashCommand/index.d.ts +18 -1
- package/dist/components/editor/plugins/SmartTypographyPlugin/index.d.ts +26 -0
- package/dist/components/editor/utils/aiStream.d.ts +27 -0
- package/dist/components/editor/utils/excalidrawDiagramBuilder.d.ts +29 -0
- package/dist/components/editor/utils/markdownTransformers.d.ts +4 -1
- package/dist/components/editor/utils/url.d.ts +16 -4
- package/dist/components/providers/AIContext.d.ts +8 -0
- package/dist/components/ui/equation/equationTypography.d.ts +23 -0
- package/dist/core/extension.d.ts +3 -1
- package/dist/core/extensions/blocks-kit.d.ts +22 -1
- package/dist/core/extensions/copilot-and-collab.d.ts +15 -1
- package/dist/core/index.d.ts +2 -1
- package/dist/core/react/NotiqContent.d.ts +4 -1
- package/dist/core/react/NotiqEditor.d.ts +8 -8
- package/dist/core/react/index.d.ts +1 -0
- package/dist/core/react/node-renderers.d.ts +73 -0
- package/dist/core/types.d.ts +1 -0
- package/dist/core.js +18136 -9084
- package/dist/core.mjs +58 -44
- package/dist/hooks/instructions-messages.d.ts +13 -4
- package/dist/{image-TPW7PZZK.mjs → image-AL6PHM2A.mjs} +18 -13
- package/dist/index.js +15180 -12858
- package/dist/index.mjs +121 -1641
- package/dist/{insert-audio-C66RZRKY.mjs → insert-audio-CRWR7EO5.mjs} +6 -8
- package/dist/{insert-file-3DTGRO7W.mjs → insert-file-I73AZW3L.mjs} +6 -8
- package/dist/{insert-gif-FIMCCBAI.mjs → insert-gif-KWRC3ACT.mjs} +4 -4
- package/dist/{insert-image-CZV6HWQZ.mjs → insert-image-XIY6BGW5.mjs} +6 -5
- package/dist/{insert-poll-6BCIFY5G.mjs → insert-poll-J5YVZNZ4.mjs} +4 -3
- package/dist/{insert-table-ZRJP6X52.mjs → insert-table-OIMJRFFK.mjs} +1 -1
- package/dist/{poll-component-VHMM5KKZ.mjs → poll-component-TVHXIKGQ.mjs} +3 -2
- package/dist/react.js +17933 -9531
- package/dist/react.mjs +41 -34
- package/dist/{stepper-4AO5XMO7.mjs → stepper-ILF7YXTO.mjs} +64 -74
- package/dist/styles/notiq.css +1 -1
- package/package.json +2 -2
- package/src/styles/notiq.css +20 -0
- package/dist/AICommandBarPlugin-TADJ3X2Y.mjs +0 -12
- package/dist/CodeActionMenuPlugin-MRKY67ED.mjs +0 -14
- package/dist/CollaborationPlugin-TIZOQBUT.mjs +0 -405
- package/dist/CollaboratorsBar-TMKBOBJI.mjs +0 -20
- package/dist/CommentsPlugin-5M4RD6YO.mjs +0 -19
- package/dist/ExcalidrawPlugin-2SGPIQ6U.mjs +0 -14
- package/dist/ExportPlugin-OKZOLBGS.mjs +0 -42
- package/dist/FloatingLinkEditorPlugin-MABB34L7.mjs +0 -12
- package/dist/FloatingTextFormatToolbarPlugin-SO5VON7Q.mjs +0 -45
- package/dist/InlineCopilotPlugin-PNS5Y6OO.mjs +0 -360
- package/dist/MobileToolbar-JKP2MLQJ.mjs +0 -984
- package/dist/SlashCommand-2TNOOUBM.mjs +0 -39
- package/dist/TableCellActionMenuPlugin-YWBA64J7.mjs +0 -838
- package/dist/TableHoverActionsPlugin-2EIXHEXN.mjs +0 -265
- package/dist/TemplatePlugin-HNTPEXBB.mjs +0 -9
- package/dist/ToolbarPlugin-IIAOU4P5.mjs +0 -35
- package/dist/VersionHistoryPlugin-23MAZB4G.mjs +0 -371
- package/dist/background-color-OZJCBYCT.mjs +0 -425
- package/dist/block-format-MTSIXWID.mjs +0 -14
- package/dist/chunk-2KESP7OU.mjs +0 -809
- package/dist/chunk-3AHNLIME.mjs +0 -1701
- package/dist/chunk-3IILA3IP.mjs +0 -28
- package/dist/chunk-4DVIYZVB.mjs +0 -193
- package/dist/chunk-4FFTOZGJ.mjs +0 -103
- package/dist/chunk-4UMUPCDK.mjs +0 -68
- package/dist/chunk-6D6QLRYR.mjs +0 -238
- package/dist/chunk-6SRMKQSD.mjs +0 -682
- package/dist/chunk-ACV47ZKE.mjs +0 -201
- package/dist/chunk-AYNKORDO.mjs +0 -6
- package/dist/chunk-BGV62GC2.mjs +0 -26
- package/dist/chunk-D3IOUQFR.mjs +0 -441
- package/dist/chunk-EEBA6OAH.mjs +0 -59
- package/dist/chunk-EIZMKFHF.mjs +0 -32
- package/dist/chunk-EVPWKNE4.mjs +0 -27
- package/dist/chunk-FMJ7DGWP.mjs +0 -144
- package/dist/chunk-FYLRS4BG.mjs +0 -88
- package/dist/chunk-HOZ4QRFV.mjs +0 -536
- package/dist/chunk-IAFCQV3Z.mjs +0 -349
- package/dist/chunk-IU2N42JJ.mjs +0 -1763
- package/dist/chunk-J6ZUY5BY.mjs +0 -202
- package/dist/chunk-K5OAFEVY.mjs +0 -191
- package/dist/chunk-KDA7ZYMJ.mjs +0 -431
- package/dist/chunk-KXRLARGI.mjs +0 -26
- package/dist/chunk-LAUAYRPC.mjs +0 -944
- package/dist/chunk-LLCP7NVE.mjs +0 -449
- package/dist/chunk-LU2XWLOE.mjs +0 -219
- package/dist/chunk-MPTE332I.mjs +0 -787
- package/dist/chunk-MTQZWJHR.mjs +0 -111
- package/dist/chunk-OXWTZV3U.mjs +0 -174
- package/dist/chunk-PD5K4AGP.mjs +0 -64
- package/dist/chunk-PFH63ZU4.mjs +0 -33
- package/dist/chunk-PHRVYPVM.mjs +0 -808
- package/dist/chunk-R7WFRENU.mjs +0 -262
- package/dist/chunk-RAVYEEIC.mjs +0 -36
- package/dist/chunk-RJQTA6HG.mjs +0 -358
- package/dist/chunk-SAOJHVPE.mjs +0 -153
- package/dist/chunk-VGAX6YEY.mjs +0 -399
- package/dist/chunk-W6GAJXUS.mjs +0 -334
- package/dist/chunk-XYDBUQ6Z.mjs +0 -1978
- package/dist/chunk-XYT6XM5S.mjs +0 -496
- package/dist/chunk-YDDBQZ77.mjs +0 -409
- package/dist/chunk-YE7M2VKR.mjs +0 -132
- package/dist/chunk-Z6JAFF55.mjs +0 -555
- package/dist/chunk-ZKZ7MLSS.mjs +0 -165
- package/dist/color-23323E3B.mjs +0 -13
- package/dist/font-IJKFR4BM.mjs +0 -12
- package/dist/font-size-GTL6UVQL.mjs +0 -15
- package/dist/insert-node-MA3FXEYN.mjs +0 -245
- package/dist/table-dropdown-4VCRSQB6.mjs +0 -391
- package/dist/text-align-CSDLJUDA.mjs +0 -121
- package/dist/text-format-6L5N3CHZ.mjs +0 -15
package/dist/chunk-MTQZWJHR.mjs
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
clearFormatting
|
|
3
|
-
} from "./chunk-6D6QLRYR.mjs";
|
|
4
|
-
import {
|
|
5
|
-
SHORTCUTS
|
|
6
|
-
} from "./chunk-K5OAFEVY.mjs";
|
|
7
|
-
import {
|
|
8
|
-
DropDown
|
|
9
|
-
} from "./chunk-LU2XWLOE.mjs";
|
|
10
|
-
import {
|
|
11
|
-
__spreadProps,
|
|
12
|
-
__spreadValues,
|
|
13
|
-
init_react_shim
|
|
14
|
-
} from "./chunk-WYCFGRFJ.mjs";
|
|
15
|
-
|
|
16
|
-
// src/components/ui/drop-downs/text-format.tsx
|
|
17
|
-
init_react_shim();
|
|
18
|
-
import { FORMAT_TEXT_COMMAND } from "lexical";
|
|
19
|
-
import {
|
|
20
|
-
CaseSensitive,
|
|
21
|
-
CaseUpper,
|
|
22
|
-
HighlighterIcon,
|
|
23
|
-
LucideRemoveFormatting,
|
|
24
|
-
Strikethrough,
|
|
25
|
-
Subscript,
|
|
26
|
-
Superscript,
|
|
27
|
-
Trash
|
|
28
|
-
} from "lucide-react";
|
|
29
|
-
import { useMemo } from "react";
|
|
30
|
-
import { jsx } from "react/jsx-runtime";
|
|
31
|
-
function TextFormat({
|
|
32
|
-
disabled = false,
|
|
33
|
-
editor,
|
|
34
|
-
toolbarState,
|
|
35
|
-
style,
|
|
36
|
-
ShowChevronsUpDown,
|
|
37
|
-
side,
|
|
38
|
-
sideOffset
|
|
39
|
-
}) {
|
|
40
|
-
const items = useMemo(
|
|
41
|
-
() => [
|
|
42
|
-
{
|
|
43
|
-
label: "Lowercase",
|
|
44
|
-
icon: /* @__PURE__ */ jsx(CaseSensitive, { className: "w-4 h-4" }),
|
|
45
|
-
func: () => editor.dispatchCommand(FORMAT_TEXT_COMMAND, "lowercase"),
|
|
46
|
-
shortcuts: SHORTCUTS.LOWERCASE,
|
|
47
|
-
selected: toolbarState.isLowercase
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
label: "Uppercase",
|
|
51
|
-
icon: /* @__PURE__ */ jsx(CaseUpper, { className: "w-4 h-4" }),
|
|
52
|
-
func: () => editor.dispatchCommand(FORMAT_TEXT_COMMAND, "uppercase"),
|
|
53
|
-
shortcuts: SHORTCUTS.UPPERCASE,
|
|
54
|
-
selected: toolbarState.isUppercase
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
label: "Strikethrough",
|
|
58
|
-
icon: /* @__PURE__ */ jsx(Strikethrough, { className: "w-4 h-4" }),
|
|
59
|
-
func: () => editor.dispatchCommand(FORMAT_TEXT_COMMAND, "strikethrough"),
|
|
60
|
-
shortcuts: SHORTCUTS.STRIKETHROUGH,
|
|
61
|
-
selected: toolbarState.isStrikethrough
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
label: "Subscript",
|
|
65
|
-
icon: /* @__PURE__ */ jsx(Subscript, { className: "w-4 h-4" }),
|
|
66
|
-
func: () => editor.dispatchCommand(FORMAT_TEXT_COMMAND, "subscript"),
|
|
67
|
-
shortcuts: SHORTCUTS.SUBSCRIPT,
|
|
68
|
-
selected: toolbarState.isSubscript
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
label: "Superscript",
|
|
72
|
-
icon: /* @__PURE__ */ jsx(Superscript, { className: "w-4 h-4" }),
|
|
73
|
-
func: () => editor.dispatchCommand(FORMAT_TEXT_COMMAND, "superscript"),
|
|
74
|
-
shortcuts: SHORTCUTS.SUPERSCRIPT,
|
|
75
|
-
selected: toolbarState.isSuperscript
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
label: "Highlight",
|
|
79
|
-
icon: /* @__PURE__ */ jsx(HighlighterIcon, { className: "w-4 h-4" }),
|
|
80
|
-
func: () => editor.dispatchCommand(FORMAT_TEXT_COMMAND, "highlight"),
|
|
81
|
-
selected: toolbarState.isHighlight
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
label: "Clear Formatting",
|
|
85
|
-
icon: /* @__PURE__ */ jsx(Trash, { className: "w-4 h-4" }),
|
|
86
|
-
func: () => clearFormatting(editor),
|
|
87
|
-
shortcuts: SHORTCUTS.CLEAR_FORMATTING,
|
|
88
|
-
selected: false
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
[editor, toolbarState]
|
|
92
|
-
);
|
|
93
|
-
return /* @__PURE__ */ jsx(
|
|
94
|
-
DropDown,
|
|
95
|
-
{
|
|
96
|
-
PopoverContentClassName: { width: "100%" },
|
|
97
|
-
TriggerClassName: __spreadProps(__spreadValues({}, style), { width: "100%", border: "none" }),
|
|
98
|
-
disabled,
|
|
99
|
-
sideOffset,
|
|
100
|
-
side,
|
|
101
|
-
className: "cursor-pointer",
|
|
102
|
-
ShowChevronsUpDown,
|
|
103
|
-
TriggerLabel: /* @__PURE__ */ jsx(LucideRemoveFormatting, {}),
|
|
104
|
-
values: items
|
|
105
|
-
}
|
|
106
|
-
);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export {
|
|
110
|
-
TextFormat
|
|
111
|
-
};
|
package/dist/chunk-OXWTZV3U.mjs
DELETED
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cn
|
|
3
|
-
} from "./chunk-JHXDLYEV.mjs";
|
|
4
|
-
import {
|
|
5
|
-
__objRest,
|
|
6
|
-
__spreadProps,
|
|
7
|
-
__spreadValues,
|
|
8
|
-
init_react_shim
|
|
9
|
-
} from "./chunk-WYCFGRFJ.mjs";
|
|
10
|
-
|
|
11
|
-
// src/components/ui/dropdown-menu.tsx
|
|
12
|
-
init_react_shim();
|
|
13
|
-
import * as React from "react";
|
|
14
|
-
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
15
|
-
import { Check, ChevronRight, Circle } from "lucide-react";
|
|
16
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
-
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
18
|
-
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
19
|
-
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
20
|
-
var DropdownMenuSubTrigger = React.forwardRef((_a, ref) => {
|
|
21
|
-
var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
|
|
22
|
-
return /* @__PURE__ */ jsxs(
|
|
23
|
-
DropdownMenuPrimitive.SubTrigger,
|
|
24
|
-
__spreadProps(__spreadValues({
|
|
25
|
-
ref,
|
|
26
|
-
className: cn(
|
|
27
|
-
"flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
28
|
-
inset && "pl-8",
|
|
29
|
-
className
|
|
30
|
-
)
|
|
31
|
-
}, props), {
|
|
32
|
-
children: [
|
|
33
|
-
children,
|
|
34
|
-
/* @__PURE__ */ jsx(ChevronRight, { className: "ml-auto" })
|
|
35
|
-
]
|
|
36
|
-
})
|
|
37
|
-
);
|
|
38
|
-
});
|
|
39
|
-
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
40
|
-
var DropdownMenuSubContent = React.forwardRef((_a, ref) => {
|
|
41
|
-
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
42
|
-
return /* @__PURE__ */ jsx(
|
|
43
|
-
DropdownMenuPrimitive.SubContent,
|
|
44
|
-
__spreadValues({
|
|
45
|
-
ref,
|
|
46
|
-
className: cn(
|
|
47
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
|
|
48
|
-
className
|
|
49
|
-
)
|
|
50
|
-
}, props)
|
|
51
|
-
);
|
|
52
|
-
});
|
|
53
|
-
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
54
|
-
var DropdownMenuContent = React.forwardRef((_a, ref) => {
|
|
55
|
-
var _b = _a, { className, sideOffset = 4 } = _b, props = __objRest(_b, ["className", "sideOffset"]);
|
|
56
|
-
return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
57
|
-
DropdownMenuPrimitive.Content,
|
|
58
|
-
__spreadValues({
|
|
59
|
-
ref,
|
|
60
|
-
sideOffset,
|
|
61
|
-
className: cn(
|
|
62
|
-
"z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
|
63
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
|
|
64
|
-
className
|
|
65
|
-
)
|
|
66
|
-
}, props)
|
|
67
|
-
) });
|
|
68
|
-
});
|
|
69
|
-
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
70
|
-
var DropdownMenuItem = React.forwardRef((_a, ref) => {
|
|
71
|
-
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
|
72
|
-
return /* @__PURE__ */ jsx(
|
|
73
|
-
DropdownMenuPrimitive.Item,
|
|
74
|
-
__spreadValues({
|
|
75
|
-
ref,
|
|
76
|
-
className: cn(
|
|
77
|
-
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
78
|
-
inset && "pl-8",
|
|
79
|
-
className
|
|
80
|
-
)
|
|
81
|
-
}, props)
|
|
82
|
-
);
|
|
83
|
-
});
|
|
84
|
-
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
85
|
-
var DropdownMenuCheckboxItem = React.forwardRef((_a, ref) => {
|
|
86
|
-
var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
|
|
87
|
-
return /* @__PURE__ */ jsxs(
|
|
88
|
-
DropdownMenuPrimitive.CheckboxItem,
|
|
89
|
-
__spreadProps(__spreadValues({
|
|
90
|
-
ref,
|
|
91
|
-
className: cn(
|
|
92
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
93
|
-
className
|
|
94
|
-
),
|
|
95
|
-
checked
|
|
96
|
-
}, props), {
|
|
97
|
-
children: [
|
|
98
|
-
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) }) }),
|
|
99
|
-
children
|
|
100
|
-
]
|
|
101
|
-
})
|
|
102
|
-
);
|
|
103
|
-
});
|
|
104
|
-
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
105
|
-
var DropdownMenuRadioItem = React.forwardRef((_a, ref) => {
|
|
106
|
-
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
|
107
|
-
return /* @__PURE__ */ jsxs(
|
|
108
|
-
DropdownMenuPrimitive.RadioItem,
|
|
109
|
-
__spreadProps(__spreadValues({
|
|
110
|
-
ref,
|
|
111
|
-
className: cn(
|
|
112
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
113
|
-
className
|
|
114
|
-
)
|
|
115
|
-
}, props), {
|
|
116
|
-
children: [
|
|
117
|
-
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
118
|
-
children
|
|
119
|
-
]
|
|
120
|
-
})
|
|
121
|
-
);
|
|
122
|
-
});
|
|
123
|
-
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
124
|
-
var DropdownMenuLabel = React.forwardRef((_a, ref) => {
|
|
125
|
-
var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
|
|
126
|
-
return /* @__PURE__ */ jsx(
|
|
127
|
-
DropdownMenuPrimitive.Label,
|
|
128
|
-
__spreadValues({
|
|
129
|
-
ref,
|
|
130
|
-
className: cn(
|
|
131
|
-
"px-2 py-1.5 text-sm font-semibold",
|
|
132
|
-
inset && "pl-8",
|
|
133
|
-
className
|
|
134
|
-
)
|
|
135
|
-
}, props)
|
|
136
|
-
);
|
|
137
|
-
});
|
|
138
|
-
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
139
|
-
var DropdownMenuSeparator = React.forwardRef((_a, ref) => {
|
|
140
|
-
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
141
|
-
return /* @__PURE__ */ jsx(
|
|
142
|
-
DropdownMenuPrimitive.Separator,
|
|
143
|
-
__spreadValues({
|
|
144
|
-
ref,
|
|
145
|
-
className: cn("-mx-1 my-1 h-px bg-muted", className)
|
|
146
|
-
}, props)
|
|
147
|
-
);
|
|
148
|
-
});
|
|
149
|
-
DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
|
|
150
|
-
var DropdownMenuShortcut = (_a) => {
|
|
151
|
-
var _b = _a, {
|
|
152
|
-
className
|
|
153
|
-
} = _b, props = __objRest(_b, [
|
|
154
|
-
"className"
|
|
155
|
-
]);
|
|
156
|
-
return /* @__PURE__ */ jsx(
|
|
157
|
-
"span",
|
|
158
|
-
__spreadValues({
|
|
159
|
-
className: cn("ml-auto text-xs tracking-widest opacity-60", className)
|
|
160
|
-
}, props)
|
|
161
|
-
);
|
|
162
|
-
};
|
|
163
|
-
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
164
|
-
|
|
165
|
-
export {
|
|
166
|
-
DropdownMenu,
|
|
167
|
-
DropdownMenuTrigger,
|
|
168
|
-
DropdownMenuSub,
|
|
169
|
-
DropdownMenuSubTrigger,
|
|
170
|
-
DropdownMenuSubContent,
|
|
171
|
-
DropdownMenuContent,
|
|
172
|
-
DropdownMenuItem,
|
|
173
|
-
DropdownMenuSeparator
|
|
174
|
-
};
|
package/dist/chunk-PD5K4AGP.mjs
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Tooltip,
|
|
3
|
-
TooltipContent,
|
|
4
|
-
TooltipProvider,
|
|
5
|
-
TooltipTrigger
|
|
6
|
-
} from "./chunk-OE5JRLCN.mjs";
|
|
7
|
-
import {
|
|
8
|
-
cn
|
|
9
|
-
} from "./chunk-JHXDLYEV.mjs";
|
|
10
|
-
import {
|
|
11
|
-
__objRest,
|
|
12
|
-
__spreadValues,
|
|
13
|
-
init_react_shim
|
|
14
|
-
} from "./chunk-WYCFGRFJ.mjs";
|
|
15
|
-
|
|
16
|
-
// src/components/ui/toggle.tsx
|
|
17
|
-
init_react_shim();
|
|
18
|
-
import * as React from "react";
|
|
19
|
-
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
20
|
-
import { cva } from "class-variance-authority";
|
|
21
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
22
|
-
var toggleVariants = cva(
|
|
23
|
-
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-colors hover:bg-zinc-100 hover:text-zinc-500 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-zinc-950 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-zinc-100 data-[state=on]:text-zinc-900 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 dark:hover:bg-zinc-800 dark:hover:text-zinc-400 dark:focus-visible:ring-zinc-300 dark:data-[state=on]:bg-zinc-800 dark:data-[state=on]:text-zinc-50",
|
|
24
|
-
{
|
|
25
|
-
variants: {
|
|
26
|
-
variant: {
|
|
27
|
-
default: "bg-transparent",
|
|
28
|
-
outline: "border-none cursor-pointer bg-transparent shadow-sm"
|
|
29
|
-
},
|
|
30
|
-
size: {
|
|
31
|
-
default: "h-9 px-2 min-w-9",
|
|
32
|
-
sm: "h-7 rounded-md px-[6px] ",
|
|
33
|
-
lg: "h-10 px-2.5 min-w-10",
|
|
34
|
-
Toolbar: "h-7 w-7 p-1.5",
|
|
35
|
-
floting: "h-7 w-7 p-1.5",
|
|
36
|
-
floating: "h-7 w-7 p-1.5"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
defaultVariants: {
|
|
40
|
-
variant: "default",
|
|
41
|
-
size: "default"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
var Toggle = React.forwardRef((_a, ref) => {
|
|
46
|
-
var _b = _a, { className, variant, tip, size } = _b, props = __objRest(_b, ["className", "variant", "tip", "size"]);
|
|
47
|
-
const toggleButton = /* @__PURE__ */ jsx(
|
|
48
|
-
TogglePrimitive.Root,
|
|
49
|
-
__spreadValues({
|
|
50
|
-
ref,
|
|
51
|
-
className: cn(toggleVariants({ variant, size, className }))
|
|
52
|
-
}, props)
|
|
53
|
-
);
|
|
54
|
-
if (!tip) return toggleButton;
|
|
55
|
-
return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip, { delayDuration: 200, children: [
|
|
56
|
-
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: toggleButton }),
|
|
57
|
-
/* @__PURE__ */ jsx(TooltipContent, { side: "top", children: /* @__PURE__ */ jsx("span", { children: tip }) })
|
|
58
|
-
] }) });
|
|
59
|
-
});
|
|
60
|
-
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
61
|
-
|
|
62
|
-
export {
|
|
63
|
-
Toggle
|
|
64
|
-
};
|
package/dist/chunk-PFH63ZU4.mjs
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cn
|
|
3
|
-
} from "./chunk-JHXDLYEV.mjs";
|
|
4
|
-
import {
|
|
5
|
-
__objRest,
|
|
6
|
-
__spreadValues,
|
|
7
|
-
init_react_shim
|
|
8
|
-
} from "./chunk-WYCFGRFJ.mjs";
|
|
9
|
-
|
|
10
|
-
// src/components/ui/label.tsx
|
|
11
|
-
init_react_shim();
|
|
12
|
-
import * as React from "react";
|
|
13
|
-
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
14
|
-
import { cva } from "class-variance-authority";
|
|
15
|
-
import { jsx } from "react/jsx-runtime";
|
|
16
|
-
var labelVariants = cva(
|
|
17
|
-
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
18
|
-
);
|
|
19
|
-
var Label = React.forwardRef((_a, ref) => {
|
|
20
|
-
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
|
21
|
-
return /* @__PURE__ */ jsx(
|
|
22
|
-
LabelPrimitive.Root,
|
|
23
|
-
__spreadValues({
|
|
24
|
-
ref,
|
|
25
|
-
className: cn(labelVariants(), className)
|
|
26
|
-
}, props)
|
|
27
|
-
);
|
|
28
|
-
});
|
|
29
|
-
Label.displayName = LabelPrimitive.Root.displayName;
|
|
30
|
-
|
|
31
|
-
export {
|
|
32
|
-
Label
|
|
33
|
-
};
|