@underverse-ui/underverse 0.2.46 → 0.2.48
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 +20 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +20 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4751,7 +4751,7 @@ var DropdownMenu = ({
|
|
|
4751
4751
|
// keep original classes on trigger
|
|
4752
4752
|
trigger.props?.className,
|
|
4753
4753
|
// ensure focus-visible ring for trigger too
|
|
4754
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background
|
|
4754
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background"
|
|
4755
4755
|
)
|
|
4756
4756
|
}),
|
|
4757
4757
|
dropdownContent && typeof window !== "undefined" && (0, import_react_dom5.createPortal)(dropdownContent, document.body)
|
|
@@ -5439,13 +5439,28 @@ var gradientDirectionMap = {
|
|
|
5439
5439
|
"to-tr": "bg-linear-to-tr",
|
|
5440
5440
|
"to-tl": "bg-linear-to-tl"
|
|
5441
5441
|
};
|
|
5442
|
+
var spacingClasses = {
|
|
5443
|
+
none: "",
|
|
5444
|
+
sm: "py-6",
|
|
5445
|
+
md: "py-8",
|
|
5446
|
+
lg: "py-12",
|
|
5447
|
+
xl: "py-16"
|
|
5448
|
+
};
|
|
5449
|
+
var paddingXClasses = {
|
|
5450
|
+
none: "",
|
|
5451
|
+
sm: "px-2 md:px-4",
|
|
5452
|
+
md: "px-4 md:px-6",
|
|
5453
|
+
lg: "px-6 md:px-8",
|
|
5454
|
+
xl: "px-8 md:px-12"
|
|
5455
|
+
};
|
|
5442
5456
|
var Section = import_react13.default.forwardRef(
|
|
5443
5457
|
({
|
|
5444
5458
|
children,
|
|
5445
5459
|
className,
|
|
5446
5460
|
variant = "default",
|
|
5447
|
-
spacing = "
|
|
5448
|
-
|
|
5461
|
+
spacing = "none",
|
|
5462
|
+
paddingX = "none",
|
|
5463
|
+
contained = false,
|
|
5449
5464
|
outlined = false,
|
|
5450
5465
|
gradientFrom = "from-primary/20",
|
|
5451
5466
|
gradientTo = "to-accent/20",
|
|
@@ -5459,12 +5474,6 @@ var Section = import_react13.default.forwardRef(
|
|
|
5459
5474
|
accent: "bg-accent/10",
|
|
5460
5475
|
gradient: ""
|
|
5461
5476
|
};
|
|
5462
|
-
const spacingClasses = {
|
|
5463
|
-
sm: "py-6",
|
|
5464
|
-
md: "py-8",
|
|
5465
|
-
lg: "py-12",
|
|
5466
|
-
xl: "py-16"
|
|
5467
|
-
};
|
|
5468
5477
|
const getGradientClasses = () => {
|
|
5469
5478
|
if (variant !== "gradient") return "";
|
|
5470
5479
|
return cn(gradientDirectionMap[gradientDirection], gradientFrom, gradientTo);
|
|
@@ -5476,8 +5485,9 @@ var Section = import_react13.default.forwardRef(
|
|
|
5476
5485
|
className: cn(
|
|
5477
5486
|
variant === "gradient" ? getGradientClasses() : variantClasses[variant],
|
|
5478
5487
|
spacingClasses[spacing],
|
|
5488
|
+
paddingXClasses[paddingX],
|
|
5479
5489
|
outlined && "rounded-lg border border-border/60",
|
|
5480
|
-
|
|
5490
|
+
contained && "container mx-auto",
|
|
5481
5491
|
className
|
|
5482
5492
|
),
|
|
5483
5493
|
...props,
|