luaniverse 4.2.25 → 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 CHANGED
@@ -106,7 +106,7 @@ var buttonVariants = classVarianceAuthority.cva(
106
106
  "lua:font-onest lua:font-semibold lua:whitespace-nowrap",
107
107
  "lua:transition-all lua:cursor-pointer",
108
108
  "lua:focus-visible:outline-hidden lua:focus-visible:ring-2 lua:focus-visible:ring-offset-2 lua:focus-visible:ring-ring",
109
- "lua:disabled:pointer-events-none lua:disabled:bg-black/5 lua:disabled:text-black/15 lua:disabled:shadow-none lua:disabled:border-transparent"
109
+ "lua:disabled:pointer-events-none lua:disabled:bg-disabled lua:disabled:text-disabled-foreground lua:disabled:shadow-none lua:disabled:border-transparent"
110
110
  ].join(" "),
111
111
  {
112
112
  variants: {
@@ -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 = [
@@ -7147,6 +7231,10 @@ var luaniverseSafelist = [
7147
7231
  "lua:active:bg-warning-active",
7148
7232
  "lua:focus-visible:bg-warning-base",
7149
7233
  // Semantic Color Tokens - Disabled State
7234
+ "lua:bg-disabled",
7235
+ "lua:text-disabled-foreground",
7236
+ "lua:disabled:bg-disabled",
7237
+ "lua:disabled:text-disabled-foreground",
7150
7238
  "lua:bg-disabled-bg",
7151
7239
  "lua:text-disabled-text",
7152
7240
  "lua:border-disabled-border",
@@ -7995,6 +8083,12 @@ exports.Circle = Circle;
7995
8083
  exports.ClipboardTextIcon = ClipboardTextIcon;
7996
8084
  exports.Clock = Clock;
7997
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;
7998
8092
  exports.Combobox = Combobox;
7999
8093
  exports.Command = Command;
8000
8094
  exports.CommandEmpty = CommandEmpty;