@underverse-ui/underverse 0.2.33 → 0.2.35
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 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +20 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5011,6 +5011,16 @@ var CompactPagination = ({
|
|
|
5011
5011
|
// ../../components/ui/Section.tsx
|
|
5012
5012
|
var import_react13 = __toESM(require("react"), 1);
|
|
5013
5013
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
5014
|
+
var gradientDirectionMap = {
|
|
5015
|
+
"to-r": "bg-linear-to-r",
|
|
5016
|
+
"to-l": "bg-linear-to-l",
|
|
5017
|
+
"to-b": "bg-linear-to-b",
|
|
5018
|
+
"to-t": "bg-linear-to-t",
|
|
5019
|
+
"to-br": "bg-linear-to-br",
|
|
5020
|
+
"to-bl": "bg-linear-to-bl",
|
|
5021
|
+
"to-tr": "bg-linear-to-tr",
|
|
5022
|
+
"to-tl": "bg-linear-to-tl"
|
|
5023
|
+
};
|
|
5014
5024
|
var Section = import_react13.default.forwardRef(
|
|
5015
5025
|
({
|
|
5016
5026
|
children,
|
|
@@ -5019,13 +5029,17 @@ var Section = import_react13.default.forwardRef(
|
|
|
5019
5029
|
spacing = "lg",
|
|
5020
5030
|
fullWidth = false,
|
|
5021
5031
|
outlined = false,
|
|
5032
|
+
gradientFrom = "from-primary/20",
|
|
5033
|
+
gradientTo = "to-accent/20",
|
|
5034
|
+
gradientDirection = "to-br",
|
|
5022
5035
|
...props
|
|
5023
5036
|
}, ref) => {
|
|
5024
5037
|
const variantClasses = {
|
|
5025
5038
|
default: "bg-background",
|
|
5026
5039
|
muted: "bg-muted/30",
|
|
5027
5040
|
primary: "bg-primary/5",
|
|
5028
|
-
accent: "bg-accent/10"
|
|
5041
|
+
accent: "bg-accent/10",
|
|
5042
|
+
gradient: ""
|
|
5029
5043
|
};
|
|
5030
5044
|
const spacingClasses = {
|
|
5031
5045
|
sm: "py-6",
|
|
@@ -5033,12 +5047,16 @@ var Section = import_react13.default.forwardRef(
|
|
|
5033
5047
|
lg: "py-12",
|
|
5034
5048
|
xl: "py-16"
|
|
5035
5049
|
};
|
|
5050
|
+
const getGradientClasses = () => {
|
|
5051
|
+
if (variant !== "gradient") return "";
|
|
5052
|
+
return cn(gradientDirectionMap[gradientDirection], gradientFrom, gradientTo);
|
|
5053
|
+
};
|
|
5036
5054
|
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
5037
5055
|
"section",
|
|
5038
5056
|
{
|
|
5039
5057
|
ref,
|
|
5040
5058
|
className: cn(
|
|
5041
|
-
variantClasses[variant],
|
|
5059
|
+
variant === "gradient" ? getGradientClasses() : variantClasses[variant],
|
|
5042
5060
|
spacingClasses[spacing],
|
|
5043
5061
|
outlined && "rounded-lg border border-border/60",
|
|
5044
5062
|
!fullWidth && "container mx-auto px-4 md:px-6",
|