luaniverse 4.2.26 → 4.2.27
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/index.cjs +90 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -2
- package/dist/index.d.ts +28 -2
- package/dist/index.js +86 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7044,6 +7044,90 @@ function Calendar({
|
|
|
7044
7044
|
);
|
|
7045
7045
|
}
|
|
7046
7046
|
Calendar.displayName = "Calendar";
|
|
7047
|
+
var Collapsible = radixUi.Collapsible.Root;
|
|
7048
|
+
var CollapsibleTrigger = radixUi.Collapsible.Trigger;
|
|
7049
|
+
var CollapsibleContent = React138__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
7050
|
+
radixUi.Collapsible.Content,
|
|
7051
|
+
{
|
|
7052
|
+
ref,
|
|
7053
|
+
className: cn(
|
|
7054
|
+
"lua:overflow-hidden lua:data-[state=open]:animate-in lua:data-[state=closed]:animate-out lua:data-[state=closed]:fade-out-0 lua:data-[state=open]:fade-in-0",
|
|
7055
|
+
className
|
|
7056
|
+
),
|
|
7057
|
+
...props
|
|
7058
|
+
}
|
|
7059
|
+
));
|
|
7060
|
+
CollapsibleContent.displayName = radixUi.Collapsible.Content.displayName;
|
|
7061
|
+
var CollapsibleRow = React138__namespace.forwardRef(
|
|
7062
|
+
({ label, open, onOpenChange, defaultOpen, children, className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(Collapsible, { open, onOpenChange, defaultOpen, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7063
|
+
"div",
|
|
7064
|
+
{
|
|
7065
|
+
ref,
|
|
7066
|
+
className: cn(
|
|
7067
|
+
"lua:rounded-xl lua:border lua:border-border lua:bg-surface lua:text-surface-foreground lua:shadow-sm lua:overflow-hidden",
|
|
7068
|
+
className
|
|
7069
|
+
),
|
|
7070
|
+
...props,
|
|
7071
|
+
children: [
|
|
7072
|
+
/* @__PURE__ */ jsxRuntime.jsxs(CollapsibleTrigger, { className: "lua:flex lua:w-full lua:items-center lua:justify-between lua:px-4 lua:py-3.5 lua:text-left lua:font-semibold lua:text-surface-foreground lua:transition-colors lua:hover:bg-secondary/40 lua:focus-visible:outline-none lua:focus-visible:ring-2 lua:focus-visible:ring-ring lua:focus-visible:ring-offset-2 lua:[&[data-state=open]>svg]:rotate-90", children: [
|
|
7073
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: label }),
|
|
7074
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7075
|
+
CaretRight,
|
|
7076
|
+
{
|
|
7077
|
+
size: 16,
|
|
7078
|
+
className: "lua:shrink-0 lua:text-muted-foreground lua:transition-transform lua:duration-200"
|
|
7079
|
+
}
|
|
7080
|
+
)
|
|
7081
|
+
] }),
|
|
7082
|
+
/* @__PURE__ */ jsxRuntime.jsx(CollapsibleContent, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "lua:px-4 lua:pb-4", children }) })
|
|
7083
|
+
]
|
|
7084
|
+
}
|
|
7085
|
+
) })
|
|
7086
|
+
);
|
|
7087
|
+
CollapsibleRow.displayName = "CollapsibleRow";
|
|
7088
|
+
var CollapsibleGroup = React138__namespace.forwardRef(
|
|
7089
|
+
({ title, action, open, onOpenChange, defaultOpen = true, children, className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(Collapsible, { open, onOpenChange, defaultOpen, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7090
|
+
"div",
|
|
7091
|
+
{
|
|
7092
|
+
ref,
|
|
7093
|
+
className: cn(
|
|
7094
|
+
"lua:rounded-xl lua:border lua:border-border lua:bg-surface lua:text-surface-foreground lua:shadow-sm",
|
|
7095
|
+
className
|
|
7096
|
+
),
|
|
7097
|
+
...props,
|
|
7098
|
+
children: [
|
|
7099
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "lua:flex lua:items-center lua:justify-between lua:px-4 lua:py-4", children: [
|
|
7100
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "lua:font-semibold lua:text-surface-foreground", children: title }),
|
|
7101
|
+
action && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "lua:text-muted-foreground", children: action })
|
|
7102
|
+
] }),
|
|
7103
|
+
/* @__PURE__ */ jsxRuntime.jsx(CollapsibleContent, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "lua:border-t lua:border-border", children }) })
|
|
7104
|
+
]
|
|
7105
|
+
}
|
|
7106
|
+
) })
|
|
7107
|
+
);
|
|
7108
|
+
CollapsibleGroup.displayName = "CollapsibleGroup";
|
|
7109
|
+
var CollapsibleGroupItem = React138__namespace.forwardRef(
|
|
7110
|
+
({ icon, label, description, action, className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7111
|
+
"div",
|
|
7112
|
+
{
|
|
7113
|
+
ref,
|
|
7114
|
+
className: cn(
|
|
7115
|
+
"lua:flex lua:items-center lua:gap-3 lua:px-4 lua:py-3 lua:border-b lua:border-border lua:last:border-b-0",
|
|
7116
|
+
className
|
|
7117
|
+
),
|
|
7118
|
+
...props,
|
|
7119
|
+
children: [
|
|
7120
|
+
icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "lua:flex lua:h-10 lua:w-10 lua:shrink-0 lua:items-center lua:justify-center lua:rounded-full lua:border lua:border-border lua:bg-background", children: icon }),
|
|
7121
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "lua:flex lua:min-w-0 lua:flex-1 lua:flex-col", children: [
|
|
7122
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "lua:text-sm lua:font-semibold lua:text-surface-foreground", children: label }),
|
|
7123
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "lua:text-xs lua:text-muted-foreground", children: description })
|
|
7124
|
+
] }),
|
|
7125
|
+
action && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "lua:ml-auto lua:shrink-0 lua:text-sm lua:text-surface-foreground", children: action })
|
|
7126
|
+
]
|
|
7127
|
+
}
|
|
7128
|
+
)
|
|
7129
|
+
);
|
|
7130
|
+
CollapsibleGroupItem.displayName = "CollapsibleGroupItem";
|
|
7047
7131
|
|
|
7048
7132
|
// src/safelist.js
|
|
7049
7133
|
var luaniverseSafelist = [
|
|
@@ -7999,6 +8083,12 @@ exports.Circle = Circle;
|
|
|
7999
8083
|
exports.ClipboardTextIcon = ClipboardTextIcon;
|
|
8000
8084
|
exports.Clock = Clock;
|
|
8001
8085
|
exports.CodeSimpleIcon = CodeSimpleIcon;
|
|
8086
|
+
exports.Collapsible = Collapsible;
|
|
8087
|
+
exports.CollapsibleContent = CollapsibleContent;
|
|
8088
|
+
exports.CollapsibleGroup = CollapsibleGroup;
|
|
8089
|
+
exports.CollapsibleGroupItem = CollapsibleGroupItem;
|
|
8090
|
+
exports.CollapsibleRow = CollapsibleRow;
|
|
8091
|
+
exports.CollapsibleTrigger = CollapsibleTrigger;
|
|
8002
8092
|
exports.Combobox = Combobox;
|
|
8003
8093
|
exports.Command = Command;
|
|
8004
8094
|
exports.CommandEmpty = CommandEmpty;
|