styled-hairomin 0.3.6 → 0.3.9
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.js +9 -5
- package/dist/index.esm.js +9 -5
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -308,7 +308,7 @@ function CardVariant({
|
|
|
308
308
|
icon: null,
|
|
309
309
|
label: f
|
|
310
310
|
} : f) : defaultFeatures;
|
|
311
|
-
const priceSuffix = data.priceSuffix
|
|
311
|
+
const priceSuffix = data.priceSuffix !== undefined ? data.priceSuffix : "/malam";
|
|
312
312
|
return /*#__PURE__*/jsxRuntime.jsxs(ElevatedCard, {
|
|
313
313
|
children: [/*#__PURE__*/jsxRuntime.jsxs(ElevatedImageWrapper, {
|
|
314
314
|
children: [/*#__PURE__*/jsxRuntime.jsx(ElevatedImage, {
|
|
@@ -1098,7 +1098,7 @@ const variantStyles$1 = {
|
|
|
1098
1098
|
|
|
1099
1099
|
/* ====== VARIANT STACKED: Vertical sections ====== */
|
|
1100
1100
|
const StackedFooter = styled.footer`
|
|
1101
|
-
background: ${variantStyles$1.stacked.background};
|
|
1101
|
+
background: ${props => props.$bg || variantStyles$1.stacked.background};
|
|
1102
1102
|
color: ${variantStyles$1.stacked.color};
|
|
1103
1103
|
padding: 3rem 2rem 1.5rem;
|
|
1104
1104
|
font-family: "Inter", sans-serif;
|
|
@@ -1256,7 +1256,7 @@ const SocialIcons = styled.div`
|
|
|
1256
1256
|
|
|
1257
1257
|
/* ====== VARIANT COLUMNS: Multi-column layout ====== */
|
|
1258
1258
|
const ColumnsFooter = styled.footer`
|
|
1259
|
-
background: ${variantStyles$1.columns.background};
|
|
1259
|
+
background: ${props => props.$bg || variantStyles$1.columns.background};
|
|
1260
1260
|
color: ${variantStyles$1.columns.color};
|
|
1261
1261
|
padding: 4rem 3rem 2rem;
|
|
1262
1262
|
font-family: "Poppins", sans-serif;
|
|
@@ -1385,7 +1385,7 @@ const ColumnsDivider = styled.div`
|
|
|
1385
1385
|
|
|
1386
1386
|
/* ====== VARIANT CENTERED: Center-aligned footer ====== */
|
|
1387
1387
|
const CenteredFooter = styled.footer`
|
|
1388
|
-
background: ${variantStyles$1.centered.background};
|
|
1388
|
+
background: ${props => props.$bg || variantStyles$1.centered.background};
|
|
1389
1389
|
color: ${variantStyles$1.centered.color};
|
|
1390
1390
|
padding: 3rem 2rem;
|
|
1391
1391
|
font-family: "Poppins", sans-serif;
|
|
@@ -1484,7 +1484,8 @@ const normalizeLink = link => {
|
|
|
1484
1484
|
};
|
|
1485
1485
|
function FooterVariant({
|
|
1486
1486
|
variant = "stacked",
|
|
1487
|
-
data
|
|
1487
|
+
data,
|
|
1488
|
+
backgroundColor
|
|
1488
1489
|
}) {
|
|
1489
1490
|
const defaultData = {
|
|
1490
1491
|
stacked: {
|
|
@@ -1530,6 +1531,7 @@ function FooterVariant({
|
|
|
1530
1531
|
switch (variant) {
|
|
1531
1532
|
case "stacked":
|
|
1532
1533
|
return /*#__PURE__*/jsxRuntime.jsxs(StackedFooter, {
|
|
1534
|
+
$bg: backgroundColor,
|
|
1533
1535
|
children: [/*#__PURE__*/jsxRuntime.jsxs(StackedSection, {
|
|
1534
1536
|
children: [/*#__PURE__*/jsxRuntime.jsxs(StackedBrand, {
|
|
1535
1537
|
children: [/*#__PURE__*/jsxRuntime.jsx("h2", {
|
|
@@ -1575,6 +1577,7 @@ function FooterVariant({
|
|
|
1575
1577
|
});
|
|
1576
1578
|
case "columns":
|
|
1577
1579
|
return /*#__PURE__*/jsxRuntime.jsxs(ColumnsFooter, {
|
|
1580
|
+
$bg: backgroundColor,
|
|
1578
1581
|
children: [/*#__PURE__*/jsxRuntime.jsxs(ColumnsGrid, {
|
|
1579
1582
|
children: [/*#__PURE__*/jsxRuntime.jsxs(ColumnBox, {
|
|
1580
1583
|
children: [/*#__PURE__*/jsxRuntime.jsx("h3", {
|
|
@@ -1635,6 +1638,7 @@ function FooterVariant({
|
|
|
1635
1638
|
});
|
|
1636
1639
|
case "centered":
|
|
1637
1640
|
return /*#__PURE__*/jsxRuntime.jsx(CenteredFooter, {
|
|
1641
|
+
$bg: backgroundColor,
|
|
1638
1642
|
children: /*#__PURE__*/jsxRuntime.jsxs(CenteredContent, {
|
|
1639
1643
|
children: [/*#__PURE__*/jsxRuntime.jsx(CenteredLogo, {
|
|
1640
1644
|
children: footerData.logo
|
package/dist/index.esm.js
CHANGED
|
@@ -306,7 +306,7 @@ function CardVariant({
|
|
|
306
306
|
icon: null,
|
|
307
307
|
label: f
|
|
308
308
|
} : f) : defaultFeatures;
|
|
309
|
-
const priceSuffix = data.priceSuffix
|
|
309
|
+
const priceSuffix = data.priceSuffix !== undefined ? data.priceSuffix : "/malam";
|
|
310
310
|
return /*#__PURE__*/jsxs(ElevatedCard, {
|
|
311
311
|
children: [/*#__PURE__*/jsxs(ElevatedImageWrapper, {
|
|
312
312
|
children: [/*#__PURE__*/jsx(ElevatedImage, {
|
|
@@ -1096,7 +1096,7 @@ const variantStyles$1 = {
|
|
|
1096
1096
|
|
|
1097
1097
|
/* ====== VARIANT STACKED: Vertical sections ====== */
|
|
1098
1098
|
const StackedFooter = styled.footer`
|
|
1099
|
-
background: ${variantStyles$1.stacked.background};
|
|
1099
|
+
background: ${props => props.$bg || variantStyles$1.stacked.background};
|
|
1100
1100
|
color: ${variantStyles$1.stacked.color};
|
|
1101
1101
|
padding: 3rem 2rem 1.5rem;
|
|
1102
1102
|
font-family: "Inter", sans-serif;
|
|
@@ -1254,7 +1254,7 @@ const SocialIcons = styled.div`
|
|
|
1254
1254
|
|
|
1255
1255
|
/* ====== VARIANT COLUMNS: Multi-column layout ====== */
|
|
1256
1256
|
const ColumnsFooter = styled.footer`
|
|
1257
|
-
background: ${variantStyles$1.columns.background};
|
|
1257
|
+
background: ${props => props.$bg || variantStyles$1.columns.background};
|
|
1258
1258
|
color: ${variantStyles$1.columns.color};
|
|
1259
1259
|
padding: 4rem 3rem 2rem;
|
|
1260
1260
|
font-family: "Poppins", sans-serif;
|
|
@@ -1383,7 +1383,7 @@ const ColumnsDivider = styled.div`
|
|
|
1383
1383
|
|
|
1384
1384
|
/* ====== VARIANT CENTERED: Center-aligned footer ====== */
|
|
1385
1385
|
const CenteredFooter = styled.footer`
|
|
1386
|
-
background: ${variantStyles$1.centered.background};
|
|
1386
|
+
background: ${props => props.$bg || variantStyles$1.centered.background};
|
|
1387
1387
|
color: ${variantStyles$1.centered.color};
|
|
1388
1388
|
padding: 3rem 2rem;
|
|
1389
1389
|
font-family: "Poppins", sans-serif;
|
|
@@ -1482,7 +1482,8 @@ const normalizeLink = link => {
|
|
|
1482
1482
|
};
|
|
1483
1483
|
function FooterVariant({
|
|
1484
1484
|
variant = "stacked",
|
|
1485
|
-
data
|
|
1485
|
+
data,
|
|
1486
|
+
backgroundColor
|
|
1486
1487
|
}) {
|
|
1487
1488
|
const defaultData = {
|
|
1488
1489
|
stacked: {
|
|
@@ -1528,6 +1529,7 @@ function FooterVariant({
|
|
|
1528
1529
|
switch (variant) {
|
|
1529
1530
|
case "stacked":
|
|
1530
1531
|
return /*#__PURE__*/jsxs(StackedFooter, {
|
|
1532
|
+
$bg: backgroundColor,
|
|
1531
1533
|
children: [/*#__PURE__*/jsxs(StackedSection, {
|
|
1532
1534
|
children: [/*#__PURE__*/jsxs(StackedBrand, {
|
|
1533
1535
|
children: [/*#__PURE__*/jsx("h2", {
|
|
@@ -1573,6 +1575,7 @@ function FooterVariant({
|
|
|
1573
1575
|
});
|
|
1574
1576
|
case "columns":
|
|
1575
1577
|
return /*#__PURE__*/jsxs(ColumnsFooter, {
|
|
1578
|
+
$bg: backgroundColor,
|
|
1576
1579
|
children: [/*#__PURE__*/jsxs(ColumnsGrid, {
|
|
1577
1580
|
children: [/*#__PURE__*/jsxs(ColumnBox, {
|
|
1578
1581
|
children: [/*#__PURE__*/jsx("h3", {
|
|
@@ -1633,6 +1636,7 @@ function FooterVariant({
|
|
|
1633
1636
|
});
|
|
1634
1637
|
case "centered":
|
|
1635
1638
|
return /*#__PURE__*/jsx(CenteredFooter, {
|
|
1639
|
+
$bg: backgroundColor,
|
|
1636
1640
|
children: /*#__PURE__*/jsxs(CenteredContent, {
|
|
1637
1641
|
children: [/*#__PURE__*/jsx(CenteredLogo, {
|
|
1638
1642
|
children: footerData.logo
|