@almadar/ui 5.6.0 → 5.7.0

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.
@@ -13718,7 +13718,7 @@ var init_AboutPageTemplate = __esm({
13718
13718
  background: resolved.hero.background
13719
13719
  }
13720
13720
  ),
13721
- resolved.articles.map((article, index) => /* @__PURE__ */ jsxRuntime.jsx(
13721
+ (Array.isArray(resolved.articles) ? resolved.articles : []).map((article, index) => /* @__PURE__ */ jsxRuntime.jsx(
13722
13722
  Box,
13723
13723
  {
13724
13724
  className: cn("py-12", index % 2 !== 0 && "bg-muted/20"),
@@ -33832,7 +33832,7 @@ var init_FeatureGrid = __esm({
33832
33832
  cols: columns,
33833
33833
  gap,
33834
33834
  className: cn(className),
33835
- children: items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(FeatureCard, { ...item }, `${item.title}-${index}`))
33835
+ children: (Array.isArray(items) ? items : []).map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(FeatureCard, { ...item }, `${item.title}-${index}`))
33836
33836
  }
33837
33837
  );
33838
33838
  };
@@ -34158,7 +34158,7 @@ var init_SplitSection = __esm({
34158
34158
  const textContent = /* @__PURE__ */ jsxRuntime.jsxs(VStack, { gap: "md", className: "flex-1 min-w-0", children: [
34159
34159
  /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "h2", children: title }),
34160
34160
  typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "body", color: "muted", children: description }) : description,
34161
- bullets && bullets.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(VStack, { gap: "sm", children: bullets.map((bullet, index) => /* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "sm", align: "start", className: "mt-0.5", children: [
34161
+ Array.isArray(bullets) && bullets.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(VStack, { gap: "sm", children: bullets.map((bullet, index) => /* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "sm", align: "start", className: "mt-0.5", children: [
34162
34162
  /* @__PURE__ */ jsxRuntime.jsx(
34163
34163
  Icon,
34164
34164
  {
@@ -41951,7 +41951,7 @@ var init_LandingPageTemplate = __esm({
41951
41951
  background: resolved.hero.background
41952
41952
  }
41953
41953
  ),
41954
- resolved.features.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(Box, { className: "bg-muted/20 py-16", children: /* @__PURE__ */ jsxRuntime.jsx(Container, { size: "xl", padding: "lg", children: /* @__PURE__ */ jsxRuntime.jsxs(VStack, { gap: "lg", children: [
41954
+ Array.isArray(resolved.features) && resolved.features.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(Box, { className: "bg-muted/20 py-16", children: /* @__PURE__ */ jsxRuntime.jsx(Container, { size: "xl", padding: "lg", children: /* @__PURE__ */ jsxRuntime.jsxs(VStack, { gap: "lg", children: [
41955
41955
  /* @__PURE__ */ jsxRuntime.jsx(SectionHeader, { title: "Features" }),
41956
41956
  /* @__PURE__ */ jsxRuntime.jsx(
41957
41957
  FeatureGrid,
@@ -43768,7 +43768,7 @@ var init_PricingPageTemplate = __esm({
43768
43768
  /* @__PURE__ */ jsxRuntime.jsx(Box, { className: "py-16", children: /* @__PURE__ */ jsxRuntime.jsx(Container, { size: "xl", padding: "lg", children: /* @__PURE__ */ jsxRuntime.jsx(
43769
43769
  PricingGrid,
43770
43770
  {
43771
- plans: resolved.plans.map((plan) => ({
43771
+ plans: (Array.isArray(resolved.plans) ? resolved.plans : []).map((plan) => ({
43772
43772
  name: plan.name,
43773
43773
  price: plan.price,
43774
43774
  description: plan.description,
package/dist/avl/index.js CHANGED
@@ -13669,7 +13669,7 @@ var init_AboutPageTemplate = __esm({
13669
13669
  background: resolved.hero.background
13670
13670
  }
13671
13671
  ),
13672
- resolved.articles.map((article, index) => /* @__PURE__ */ jsx(
13672
+ (Array.isArray(resolved.articles) ? resolved.articles : []).map((article, index) => /* @__PURE__ */ jsx(
13673
13673
  Box,
13674
13674
  {
13675
13675
  className: cn("py-12", index % 2 !== 0 && "bg-muted/20"),
@@ -33783,7 +33783,7 @@ var init_FeatureGrid = __esm({
33783
33783
  cols: columns,
33784
33784
  gap,
33785
33785
  className: cn(className),
33786
- children: items.map((item, index) => /* @__PURE__ */ jsx(FeatureCard, { ...item }, `${item.title}-${index}`))
33786
+ children: (Array.isArray(items) ? items : []).map((item, index) => /* @__PURE__ */ jsx(FeatureCard, { ...item }, `${item.title}-${index}`))
33787
33787
  }
33788
33788
  );
33789
33789
  };
@@ -34109,7 +34109,7 @@ var init_SplitSection = __esm({
34109
34109
  const textContent = /* @__PURE__ */ jsxs(VStack, { gap: "md", className: "flex-1 min-w-0", children: [
34110
34110
  /* @__PURE__ */ jsx(Typography, { variant: "h2", children: title }),
34111
34111
  typeof description === "string" ? /* @__PURE__ */ jsx(Typography, { variant: "body", color: "muted", children: description }) : description,
34112
- bullets && bullets.length > 0 && /* @__PURE__ */ jsx(VStack, { gap: "sm", children: bullets.map((bullet, index) => /* @__PURE__ */ jsxs(HStack, { gap: "sm", align: "start", className: "mt-0.5", children: [
34112
+ Array.isArray(bullets) && bullets.length > 0 && /* @__PURE__ */ jsx(VStack, { gap: "sm", children: bullets.map((bullet, index) => /* @__PURE__ */ jsxs(HStack, { gap: "sm", align: "start", className: "mt-0.5", children: [
34113
34113
  /* @__PURE__ */ jsx(
34114
34114
  Icon,
34115
34115
  {
@@ -41902,7 +41902,7 @@ var init_LandingPageTemplate = __esm({
41902
41902
  background: resolved.hero.background
41903
41903
  }
41904
41904
  ),
41905
- resolved.features.length > 0 && /* @__PURE__ */ jsx(Box, { className: "bg-muted/20 py-16", children: /* @__PURE__ */ jsx(Container, { size: "xl", padding: "lg", children: /* @__PURE__ */ jsxs(VStack, { gap: "lg", children: [
41905
+ Array.isArray(resolved.features) && resolved.features.length > 0 && /* @__PURE__ */ jsx(Box, { className: "bg-muted/20 py-16", children: /* @__PURE__ */ jsx(Container, { size: "xl", padding: "lg", children: /* @__PURE__ */ jsxs(VStack, { gap: "lg", children: [
41906
41906
  /* @__PURE__ */ jsx(SectionHeader, { title: "Features" }),
41907
41907
  /* @__PURE__ */ jsx(
41908
41908
  FeatureGrid,
@@ -43719,7 +43719,7 @@ var init_PricingPageTemplate = __esm({
43719
43719
  /* @__PURE__ */ jsx(Box, { className: "py-16", children: /* @__PURE__ */ jsx(Container, { size: "xl", padding: "lg", children: /* @__PURE__ */ jsx(
43720
43720
  PricingGrid,
43721
43721
  {
43722
- plans: resolved.plans.map((plan) => ({
43722
+ plans: (Array.isArray(resolved.plans) ? resolved.plans : []).map((plan) => ({
43723
43723
  name: plan.name,
43724
43724
  price: plan.price,
43725
43725
  description: plan.description,
@@ -7775,7 +7775,7 @@ var init_AboutPageTemplate = __esm({
7775
7775
  background: resolved.hero.background
7776
7776
  }
7777
7777
  ),
7778
- resolved.articles.map((article, index) => /* @__PURE__ */ jsxRuntime.jsx(
7778
+ (Array.isArray(resolved.articles) ? resolved.articles : []).map((article, index) => /* @__PURE__ */ jsxRuntime.jsx(
7779
7779
  exports.Box,
7780
7780
  {
7781
7781
  className: cn("py-12", index % 2 !== 0 && "bg-muted/20"),
@@ -29291,7 +29291,7 @@ var init_FeatureGrid = __esm({
29291
29291
  cols: columns,
29292
29292
  gap,
29293
29293
  className: cn(className),
29294
- children: items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(exports.FeatureCard, { ...item }, `${item.title}-${index}`))
29294
+ children: (Array.isArray(items) ? items : []).map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(exports.FeatureCard, { ...item }, `${item.title}-${index}`))
29295
29295
  }
29296
29296
  );
29297
29297
  };
@@ -29617,7 +29617,7 @@ var init_SplitSection = __esm({
29617
29617
  const textContent = /* @__PURE__ */ jsxRuntime.jsxs(exports.VStack, { gap: "md", className: "flex-1 min-w-0", children: [
29618
29618
  /* @__PURE__ */ jsxRuntime.jsx(exports.Typography, { variant: "h2", children: title }),
29619
29619
  typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(exports.Typography, { variant: "body", color: "muted", children: description }) : description,
29620
- bullets && bullets.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(exports.VStack, { gap: "sm", children: bullets.map((bullet, index) => /* @__PURE__ */ jsxRuntime.jsxs(exports.HStack, { gap: "sm", align: "start", className: "mt-0.5", children: [
29620
+ Array.isArray(bullets) && bullets.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(exports.VStack, { gap: "sm", children: bullets.map((bullet, index) => /* @__PURE__ */ jsxRuntime.jsxs(exports.HStack, { gap: "sm", align: "start", className: "mt-0.5", children: [
29621
29621
  /* @__PURE__ */ jsxRuntime.jsx(
29622
29622
  exports.Icon,
29623
29623
  {
@@ -38009,7 +38009,7 @@ var init_LandingPageTemplate = __esm({
38009
38009
  background: resolved.hero.background
38010
38010
  }
38011
38011
  ),
38012
- resolved.features.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(exports.Box, { className: "bg-muted/20 py-16", children: /* @__PURE__ */ jsxRuntime.jsx(exports.Container, { size: "xl", padding: "lg", children: /* @__PURE__ */ jsxRuntime.jsxs(exports.VStack, { gap: "lg", children: [
38012
+ Array.isArray(resolved.features) && resolved.features.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(exports.Box, { className: "bg-muted/20 py-16", children: /* @__PURE__ */ jsxRuntime.jsx(exports.Container, { size: "xl", padding: "lg", children: /* @__PURE__ */ jsxRuntime.jsxs(exports.VStack, { gap: "lg", children: [
38013
38013
  /* @__PURE__ */ jsxRuntime.jsx(exports.SectionHeader, { title: "Features" }),
38014
38014
  /* @__PURE__ */ jsxRuntime.jsx(
38015
38015
  exports.FeatureGrid,
@@ -39919,7 +39919,7 @@ var init_PricingPageTemplate = __esm({
39919
39919
  /* @__PURE__ */ jsxRuntime.jsx(exports.Box, { className: "py-16", children: /* @__PURE__ */ jsxRuntime.jsx(exports.Container, { size: "xl", padding: "lg", children: /* @__PURE__ */ jsxRuntime.jsx(
39920
39920
  exports.PricingGrid,
39921
39921
  {
39922
- plans: resolved.plans.map((plan) => ({
39922
+ plans: (Array.isArray(resolved.plans) ? resolved.plans : []).map((plan) => ({
39923
39923
  name: plan.name,
39924
39924
  price: plan.price,
39925
39925
  description: plan.description,
@@ -7726,7 +7726,7 @@ var init_AboutPageTemplate = __esm({
7726
7726
  background: resolved.hero.background
7727
7727
  }
7728
7728
  ),
7729
- resolved.articles.map((article, index) => /* @__PURE__ */ jsx(
7729
+ (Array.isArray(resolved.articles) ? resolved.articles : []).map((article, index) => /* @__PURE__ */ jsx(
7730
7730
  Box,
7731
7731
  {
7732
7732
  className: cn("py-12", index % 2 !== 0 && "bg-muted/20"),
@@ -29242,7 +29242,7 @@ var init_FeatureGrid = __esm({
29242
29242
  cols: columns,
29243
29243
  gap,
29244
29244
  className: cn(className),
29245
- children: items.map((item, index) => /* @__PURE__ */ jsx(FeatureCard, { ...item }, `${item.title}-${index}`))
29245
+ children: (Array.isArray(items) ? items : []).map((item, index) => /* @__PURE__ */ jsx(FeatureCard, { ...item }, `${item.title}-${index}`))
29246
29246
  }
29247
29247
  );
29248
29248
  };
@@ -29568,7 +29568,7 @@ var init_SplitSection = __esm({
29568
29568
  const textContent = /* @__PURE__ */ jsxs(VStack, { gap: "md", className: "flex-1 min-w-0", children: [
29569
29569
  /* @__PURE__ */ jsx(Typography, { variant: "h2", children: title }),
29570
29570
  typeof description === "string" ? /* @__PURE__ */ jsx(Typography, { variant: "body", color: "muted", children: description }) : description,
29571
- bullets && bullets.length > 0 && /* @__PURE__ */ jsx(VStack, { gap: "sm", children: bullets.map((bullet, index) => /* @__PURE__ */ jsxs(HStack, { gap: "sm", align: "start", className: "mt-0.5", children: [
29571
+ Array.isArray(bullets) && bullets.length > 0 && /* @__PURE__ */ jsx(VStack, { gap: "sm", children: bullets.map((bullet, index) => /* @__PURE__ */ jsxs(HStack, { gap: "sm", align: "start", className: "mt-0.5", children: [
29572
29572
  /* @__PURE__ */ jsx(
29573
29573
  Icon,
29574
29574
  {
@@ -37960,7 +37960,7 @@ var init_LandingPageTemplate = __esm({
37960
37960
  background: resolved.hero.background
37961
37961
  }
37962
37962
  ),
37963
- resolved.features.length > 0 && /* @__PURE__ */ jsx(Box, { className: "bg-muted/20 py-16", children: /* @__PURE__ */ jsx(Container, { size: "xl", padding: "lg", children: /* @__PURE__ */ jsxs(VStack, { gap: "lg", children: [
37963
+ Array.isArray(resolved.features) && resolved.features.length > 0 && /* @__PURE__ */ jsx(Box, { className: "bg-muted/20 py-16", children: /* @__PURE__ */ jsx(Container, { size: "xl", padding: "lg", children: /* @__PURE__ */ jsxs(VStack, { gap: "lg", children: [
37964
37964
  /* @__PURE__ */ jsx(SectionHeader, { title: "Features" }),
37965
37965
  /* @__PURE__ */ jsx(
37966
37966
  FeatureGrid,
@@ -39870,7 +39870,7 @@ var init_PricingPageTemplate = __esm({
39870
39870
  /* @__PURE__ */ jsx(Box, { className: "py-16", children: /* @__PURE__ */ jsx(Container, { size: "xl", padding: "lg", children: /* @__PURE__ */ jsx(
39871
39871
  PricingGrid,
39872
39872
  {
39873
- plans: resolved.plans.map((plan) => ({
39873
+ plans: (Array.isArray(resolved.plans) ? resolved.plans : []).map((plan) => ({
39874
39874
  name: plan.name,
39875
39875
  price: plan.price,
39876
39876
  description: plan.description,
@@ -4649,7 +4649,7 @@ var FeatureGrid = ({
4649
4649
  cols: columns,
4650
4650
  gap,
4651
4651
  className: cn(className),
4652
- children: items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(FeatureCard, { ...item }, `${item.title}-${index}`))
4652
+ children: (Array.isArray(items) ? items : []).map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(FeatureCard, { ...item }, `${item.title}-${index}`))
4653
4653
  }
4654
4654
  );
4655
4655
  };
@@ -4748,7 +4748,7 @@ var SplitSection = ({
4748
4748
  const textContent = /* @__PURE__ */ jsxRuntime.jsxs(VStack, { gap: "md", className: "flex-1 min-w-0", children: [
4749
4749
  /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "h2", children: title }),
4750
4750
  typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "body", color: "muted", children: description }) : description,
4751
- bullets && bullets.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(VStack, { gap: "sm", children: bullets.map((bullet, index) => /* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "sm", align: "start", className: "mt-0.5", children: [
4751
+ Array.isArray(bullets) && bullets.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(VStack, { gap: "sm", children: bullets.map((bullet, index) => /* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "sm", align: "start", className: "mt-0.5", children: [
4752
4752
  /* @__PURE__ */ jsxRuntime.jsx(
4753
4753
  Icon,
4754
4754
  {
@@ -4622,7 +4622,7 @@ var FeatureGrid = ({
4622
4622
  cols: columns,
4623
4623
  gap,
4624
4624
  className: cn(className),
4625
- children: items.map((item, index) => /* @__PURE__ */ jsx(FeatureCard, { ...item }, `${item.title}-${index}`))
4625
+ children: (Array.isArray(items) ? items : []).map((item, index) => /* @__PURE__ */ jsx(FeatureCard, { ...item }, `${item.title}-${index}`))
4626
4626
  }
4627
4627
  );
4628
4628
  };
@@ -4721,7 +4721,7 @@ var SplitSection = ({
4721
4721
  const textContent = /* @__PURE__ */ jsxs(VStack, { gap: "md", className: "flex-1 min-w-0", children: [
4722
4722
  /* @__PURE__ */ jsx(Typography, { variant: "h2", children: title }),
4723
4723
  typeof description === "string" ? /* @__PURE__ */ jsx(Typography, { variant: "body", color: "muted", children: description }) : description,
4724
- bullets && bullets.length > 0 && /* @__PURE__ */ jsx(VStack, { gap: "sm", children: bullets.map((bullet, index) => /* @__PURE__ */ jsxs(HStack, { gap: "sm", align: "start", className: "mt-0.5", children: [
4724
+ Array.isArray(bullets) && bullets.length > 0 && /* @__PURE__ */ jsx(VStack, { gap: "sm", children: bullets.map((bullet, index) => /* @__PURE__ */ jsxs(HStack, { gap: "sm", align: "start", className: "mt-0.5", children: [
4725
4725
  /* @__PURE__ */ jsx(
4726
4726
  Icon,
4727
4727
  {
@@ -9343,7 +9343,7 @@ var init_AboutPageTemplate = __esm({
9343
9343
  background: resolved.hero.background
9344
9344
  }
9345
9345
  ),
9346
- resolved.articles.map((article, index) => /* @__PURE__ */ jsxRuntime.jsx(
9346
+ (Array.isArray(resolved.articles) ? resolved.articles : []).map((article, index) => /* @__PURE__ */ jsxRuntime.jsx(
9347
9347
  Box,
9348
9348
  {
9349
9349
  className: cn("py-12", index % 2 !== 0 && "bg-muted/20"),
@@ -30244,7 +30244,7 @@ var init_FeatureGrid = __esm({
30244
30244
  cols: columns,
30245
30245
  gap,
30246
30246
  className: cn(className),
30247
- children: items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(FeatureCard, { ...item }, `${item.title}-${index}`))
30247
+ children: (Array.isArray(items) ? items : []).map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(FeatureCard, { ...item }, `${item.title}-${index}`))
30248
30248
  }
30249
30249
  );
30250
30250
  };
@@ -30570,7 +30570,7 @@ var init_SplitSection = __esm({
30570
30570
  const textContent = /* @__PURE__ */ jsxRuntime.jsxs(VStack, { gap: "md", className: "flex-1 min-w-0", children: [
30571
30571
  /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "h2", children: title }),
30572
30572
  typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "body", color: "muted", children: description }) : description,
30573
- bullets && bullets.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(VStack, { gap: "sm", children: bullets.map((bullet, index) => /* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "sm", align: "start", className: "mt-0.5", children: [
30573
+ Array.isArray(bullets) && bullets.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(VStack, { gap: "sm", children: bullets.map((bullet, index) => /* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "sm", align: "start", className: "mt-0.5", children: [
30574
30574
  /* @__PURE__ */ jsxRuntime.jsx(
30575
30575
  Icon,
30576
30576
  {
@@ -38766,7 +38766,7 @@ var init_LandingPageTemplate = __esm({
38766
38766
  background: resolved.hero.background
38767
38767
  }
38768
38768
  ),
38769
- resolved.features.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(Box, { className: "bg-muted/20 py-16", children: /* @__PURE__ */ jsxRuntime.jsx(Container, { size: "xl", padding: "lg", children: /* @__PURE__ */ jsxRuntime.jsxs(VStack, { gap: "lg", children: [
38769
+ Array.isArray(resolved.features) && resolved.features.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(Box, { className: "bg-muted/20 py-16", children: /* @__PURE__ */ jsxRuntime.jsx(Container, { size: "xl", padding: "lg", children: /* @__PURE__ */ jsxRuntime.jsxs(VStack, { gap: "lg", children: [
38770
38770
  /* @__PURE__ */ jsxRuntime.jsx(SectionHeader, { title: "Features" }),
38771
38771
  /* @__PURE__ */ jsxRuntime.jsx(
38772
38772
  FeatureGrid,
@@ -40583,7 +40583,7 @@ var init_PricingPageTemplate = __esm({
40583
40583
  /* @__PURE__ */ jsxRuntime.jsx(Box, { className: "py-16", children: /* @__PURE__ */ jsxRuntime.jsx(Container, { size: "xl", padding: "lg", children: /* @__PURE__ */ jsxRuntime.jsx(
40584
40584
  PricingGrid,
40585
40585
  {
40586
- plans: resolved.plans.map((plan) => ({
40586
+ plans: (Array.isArray(resolved.plans) ? resolved.plans : []).map((plan) => ({
40587
40587
  name: plan.name,
40588
40588
  price: plan.price,
40589
40589
  description: plan.description,
@@ -9294,7 +9294,7 @@ var init_AboutPageTemplate = __esm({
9294
9294
  background: resolved.hero.background
9295
9295
  }
9296
9296
  ),
9297
- resolved.articles.map((article, index) => /* @__PURE__ */ jsx(
9297
+ (Array.isArray(resolved.articles) ? resolved.articles : []).map((article, index) => /* @__PURE__ */ jsx(
9298
9298
  Box,
9299
9299
  {
9300
9300
  className: cn("py-12", index % 2 !== 0 && "bg-muted/20"),
@@ -30195,7 +30195,7 @@ var init_FeatureGrid = __esm({
30195
30195
  cols: columns,
30196
30196
  gap,
30197
30197
  className: cn(className),
30198
- children: items.map((item, index) => /* @__PURE__ */ jsx(FeatureCard, { ...item }, `${item.title}-${index}`))
30198
+ children: (Array.isArray(items) ? items : []).map((item, index) => /* @__PURE__ */ jsx(FeatureCard, { ...item }, `${item.title}-${index}`))
30199
30199
  }
30200
30200
  );
30201
30201
  };
@@ -30521,7 +30521,7 @@ var init_SplitSection = __esm({
30521
30521
  const textContent = /* @__PURE__ */ jsxs(VStack, { gap: "md", className: "flex-1 min-w-0", children: [
30522
30522
  /* @__PURE__ */ jsx(Typography, { variant: "h2", children: title }),
30523
30523
  typeof description === "string" ? /* @__PURE__ */ jsx(Typography, { variant: "body", color: "muted", children: description }) : description,
30524
- bullets && bullets.length > 0 && /* @__PURE__ */ jsx(VStack, { gap: "sm", children: bullets.map((bullet, index) => /* @__PURE__ */ jsxs(HStack, { gap: "sm", align: "start", className: "mt-0.5", children: [
30524
+ Array.isArray(bullets) && bullets.length > 0 && /* @__PURE__ */ jsx(VStack, { gap: "sm", children: bullets.map((bullet, index) => /* @__PURE__ */ jsxs(HStack, { gap: "sm", align: "start", className: "mt-0.5", children: [
30525
30525
  /* @__PURE__ */ jsx(
30526
30526
  Icon,
30527
30527
  {
@@ -38717,7 +38717,7 @@ var init_LandingPageTemplate = __esm({
38717
38717
  background: resolved.hero.background
38718
38718
  }
38719
38719
  ),
38720
- resolved.features.length > 0 && /* @__PURE__ */ jsx(Box, { className: "bg-muted/20 py-16", children: /* @__PURE__ */ jsx(Container, { size: "xl", padding: "lg", children: /* @__PURE__ */ jsxs(VStack, { gap: "lg", children: [
38720
+ Array.isArray(resolved.features) && resolved.features.length > 0 && /* @__PURE__ */ jsx(Box, { className: "bg-muted/20 py-16", children: /* @__PURE__ */ jsx(Container, { size: "xl", padding: "lg", children: /* @__PURE__ */ jsxs(VStack, { gap: "lg", children: [
38721
38721
  /* @__PURE__ */ jsx(SectionHeader, { title: "Features" }),
38722
38722
  /* @__PURE__ */ jsx(
38723
38723
  FeatureGrid,
@@ -40534,7 +40534,7 @@ var init_PricingPageTemplate = __esm({
40534
40534
  /* @__PURE__ */ jsx(Box, { className: "py-16", children: /* @__PURE__ */ jsx(Container, { size: "xl", padding: "lg", children: /* @__PURE__ */ jsx(
40535
40535
  PricingGrid,
40536
40536
  {
40537
- plans: resolved.plans.map((plan) => ({
40537
+ plans: (Array.isArray(resolved.plans) ? resolved.plans : []).map((plan) => ({
40538
40538
  name: plan.name,
40539
40539
  price: plan.price,
40540
40540
  description: plan.description,
@@ -9231,7 +9231,7 @@ var init_AboutPageTemplate = __esm({
9231
9231
  background: resolved.hero.background
9232
9232
  }
9233
9233
  ),
9234
- resolved.articles.map((article, index) => /* @__PURE__ */ jsxRuntime.jsx(
9234
+ (Array.isArray(resolved.articles) ? resolved.articles : []).map((article, index) => /* @__PURE__ */ jsxRuntime.jsx(
9235
9235
  Box,
9236
9236
  {
9237
9237
  className: cn("py-12", index % 2 !== 0 && "bg-muted/20"),
@@ -29811,7 +29811,7 @@ var init_FeatureGrid = __esm({
29811
29811
  cols: columns,
29812
29812
  gap,
29813
29813
  className: cn(className),
29814
- children: items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(FeatureCard, { ...item }, `${item.title}-${index}`))
29814
+ children: (Array.isArray(items) ? items : []).map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(FeatureCard, { ...item }, `${item.title}-${index}`))
29815
29815
  }
29816
29816
  );
29817
29817
  };
@@ -30137,7 +30137,7 @@ var init_SplitSection = __esm({
30137
30137
  const textContent = /* @__PURE__ */ jsxRuntime.jsxs(VStack, { gap: "md", className: "flex-1 min-w-0", children: [
30138
30138
  /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "h2", children: title }),
30139
30139
  typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "body", color: "muted", children: description }) : description,
30140
- bullets && bullets.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(VStack, { gap: "sm", children: bullets.map((bullet, index) => /* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "sm", align: "start", className: "mt-0.5", children: [
30140
+ Array.isArray(bullets) && bullets.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(VStack, { gap: "sm", children: bullets.map((bullet, index) => /* @__PURE__ */ jsxRuntime.jsxs(HStack, { gap: "sm", align: "start", className: "mt-0.5", children: [
30141
30141
  /* @__PURE__ */ jsxRuntime.jsx(
30142
30142
  Icon,
30143
30143
  {
@@ -38333,7 +38333,7 @@ var init_LandingPageTemplate = __esm({
38333
38333
  background: resolved.hero.background
38334
38334
  }
38335
38335
  ),
38336
- resolved.features.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(Box, { className: "bg-muted/20 py-16", children: /* @__PURE__ */ jsxRuntime.jsx(Container, { size: "xl", padding: "lg", children: /* @__PURE__ */ jsxRuntime.jsxs(VStack, { gap: "lg", children: [
38336
+ Array.isArray(resolved.features) && resolved.features.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(Box, { className: "bg-muted/20 py-16", children: /* @__PURE__ */ jsxRuntime.jsx(Container, { size: "xl", padding: "lg", children: /* @__PURE__ */ jsxRuntime.jsxs(VStack, { gap: "lg", children: [
38337
38337
  /* @__PURE__ */ jsxRuntime.jsx(SectionHeader, { title: "Features" }),
38338
38338
  /* @__PURE__ */ jsxRuntime.jsx(
38339
38339
  FeatureGrid,
@@ -40150,7 +40150,7 @@ var init_PricingPageTemplate = __esm({
40150
40150
  /* @__PURE__ */ jsxRuntime.jsx(Box, { className: "py-16", children: /* @__PURE__ */ jsxRuntime.jsx(Container, { size: "xl", padding: "lg", children: /* @__PURE__ */ jsxRuntime.jsx(
40151
40151
  PricingGrid,
40152
40152
  {
40153
- plans: resolved.plans.map((plan) => ({
40153
+ plans: (Array.isArray(resolved.plans) ? resolved.plans : []).map((plan) => ({
40154
40154
  name: plan.name,
40155
40155
  price: plan.price,
40156
40156
  description: plan.description,
@@ -9182,7 +9182,7 @@ var init_AboutPageTemplate = __esm({
9182
9182
  background: resolved.hero.background
9183
9183
  }
9184
9184
  ),
9185
- resolved.articles.map((article, index) => /* @__PURE__ */ jsx(
9185
+ (Array.isArray(resolved.articles) ? resolved.articles : []).map((article, index) => /* @__PURE__ */ jsx(
9186
9186
  Box,
9187
9187
  {
9188
9188
  className: cn("py-12", index % 2 !== 0 && "bg-muted/20"),
@@ -29762,7 +29762,7 @@ var init_FeatureGrid = __esm({
29762
29762
  cols: columns,
29763
29763
  gap,
29764
29764
  className: cn(className),
29765
- children: items.map((item, index) => /* @__PURE__ */ jsx(FeatureCard, { ...item }, `${item.title}-${index}`))
29765
+ children: (Array.isArray(items) ? items : []).map((item, index) => /* @__PURE__ */ jsx(FeatureCard, { ...item }, `${item.title}-${index}`))
29766
29766
  }
29767
29767
  );
29768
29768
  };
@@ -30088,7 +30088,7 @@ var init_SplitSection = __esm({
30088
30088
  const textContent = /* @__PURE__ */ jsxs(VStack, { gap: "md", className: "flex-1 min-w-0", children: [
30089
30089
  /* @__PURE__ */ jsx(Typography, { variant: "h2", children: title }),
30090
30090
  typeof description === "string" ? /* @__PURE__ */ jsx(Typography, { variant: "body", color: "muted", children: description }) : description,
30091
- bullets && bullets.length > 0 && /* @__PURE__ */ jsx(VStack, { gap: "sm", children: bullets.map((bullet, index) => /* @__PURE__ */ jsxs(HStack, { gap: "sm", align: "start", className: "mt-0.5", children: [
30091
+ Array.isArray(bullets) && bullets.length > 0 && /* @__PURE__ */ jsx(VStack, { gap: "sm", children: bullets.map((bullet, index) => /* @__PURE__ */ jsxs(HStack, { gap: "sm", align: "start", className: "mt-0.5", children: [
30092
30092
  /* @__PURE__ */ jsx(
30093
30093
  Icon,
30094
30094
  {
@@ -38284,7 +38284,7 @@ var init_LandingPageTemplate = __esm({
38284
38284
  background: resolved.hero.background
38285
38285
  }
38286
38286
  ),
38287
- resolved.features.length > 0 && /* @__PURE__ */ jsx(Box, { className: "bg-muted/20 py-16", children: /* @__PURE__ */ jsx(Container, { size: "xl", padding: "lg", children: /* @__PURE__ */ jsxs(VStack, { gap: "lg", children: [
38287
+ Array.isArray(resolved.features) && resolved.features.length > 0 && /* @__PURE__ */ jsx(Box, { className: "bg-muted/20 py-16", children: /* @__PURE__ */ jsx(Container, { size: "xl", padding: "lg", children: /* @__PURE__ */ jsxs(VStack, { gap: "lg", children: [
38288
38288
  /* @__PURE__ */ jsx(SectionHeader, { title: "Features" }),
38289
38289
  /* @__PURE__ */ jsx(
38290
38290
  FeatureGrid,
@@ -40101,7 +40101,7 @@ var init_PricingPageTemplate = __esm({
40101
40101
  /* @__PURE__ */ jsx(Box, { className: "py-16", children: /* @__PURE__ */ jsx(Container, { size: "xl", padding: "lg", children: /* @__PURE__ */ jsx(
40102
40102
  PricingGrid,
40103
40103
  {
40104
- plans: resolved.plans.map((plan) => ({
40104
+ plans: (Array.isArray(resolved.plans) ? resolved.plans : []).map((plan) => ({
40105
40105
  name: plan.name,
40106
40106
  price: plan.price,
40107
40107
  description: plan.description,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "5.6.0",
3
+ "version": "5.7.0",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -133,7 +133,7 @@
133
133
  "@almadar/evaluator": ">=2.9.2",
134
134
  "@almadar/logger": "^1.3.0",
135
135
  "@almadar/patterns": "^2.26.0",
136
- "@almadar/runtime": "^6.4.1",
136
+ "@almadar/runtime": "^6.7.0",
137
137
  "@almadar/std": ">=6.4.1",
138
138
  "@almadar/syntax": ">=1.3.1",
139
139
  "@dnd-kit/core": "^6.3.1",