@szymonpiatek/designsystem 0.0.11 → 0.0.12
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 +24 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +24 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -11394,12 +11394,13 @@ var CommentSection = react.forwardRef(
|
|
|
11394
11394
|
({
|
|
11395
11395
|
title = "Komentarze",
|
|
11396
11396
|
comments,
|
|
11397
|
+
maxWidth = "xl",
|
|
11397
11398
|
onLike,
|
|
11398
11399
|
onReply,
|
|
11399
11400
|
...rest
|
|
11400
11401
|
}, ref) => {
|
|
11401
11402
|
const total = countTotal(comments);
|
|
11402
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
11403
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { maxWidth, children: [
|
|
11403
11404
|
/* @__PURE__ */ jsxRuntime.jsxs(Heading, { children: [
|
|
11404
11405
|
title,
|
|
11405
11406
|
/* @__PURE__ */ jsxRuntime.jsxs(CommentCount, { children: [
|
|
@@ -11421,7 +11422,7 @@ var CommentSection = react.forwardRef(
|
|
|
11421
11422
|
reply.id
|
|
11422
11423
|
)) })
|
|
11423
11424
|
] }, comment.id)) })
|
|
11424
|
-
] });
|
|
11425
|
+
] }) });
|
|
11425
11426
|
}
|
|
11426
11427
|
);
|
|
11427
11428
|
CommentSection.displayName = "CommentSection";
|
|
@@ -11434,11 +11435,12 @@ var FaqSection = react.forwardRef(
|
|
|
11434
11435
|
description,
|
|
11435
11436
|
items,
|
|
11436
11437
|
headingAlign = "center",
|
|
11438
|
+
maxWidth = "xl",
|
|
11437
11439
|
defaultOpenIndex,
|
|
11438
11440
|
...rest
|
|
11439
11441
|
}, ref) => {
|
|
11440
11442
|
const hasHeading = Boolean(title || description);
|
|
11441
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
11443
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { maxWidth, children: [
|
|
11442
11444
|
hasHeading && /* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { title: title ?? "", description, align: headingAlign }),
|
|
11443
11445
|
/* @__PURE__ */ jsxRuntime.jsx(List6, { $hasHeading: hasHeading, children: items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
11444
11446
|
FaqItem,
|
|
@@ -11448,7 +11450,7 @@ var FaqSection = react.forwardRef(
|
|
|
11448
11450
|
},
|
|
11449
11451
|
`${item.question}-${index}`
|
|
11450
11452
|
)) })
|
|
11451
|
-
] });
|
|
11453
|
+
] }) });
|
|
11452
11454
|
}
|
|
11453
11455
|
);
|
|
11454
11456
|
FaqSection.displayName = "FaqSection";
|
|
@@ -11475,10 +11477,11 @@ var FeatureGrid = react.forwardRef(
|
|
|
11475
11477
|
columns = 3,
|
|
11476
11478
|
cardVariant = "default",
|
|
11477
11479
|
itemLayout = "card",
|
|
11480
|
+
maxWidth = "xl",
|
|
11478
11481
|
...rest
|
|
11479
11482
|
}, ref) => {
|
|
11480
11483
|
const hasHeading = Boolean(title || description);
|
|
11481
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
11484
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { maxWidth, children: [
|
|
11482
11485
|
hasHeading && /* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { title: title ?? "", description, align: headingAlign }),
|
|
11483
11486
|
/* @__PURE__ */ jsxRuntime.jsx(Grid3, { $columns: columns, $hasHeading: hasHeading, $iconLeft: itemLayout === "icon-left", children: features.map((feature, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
11484
11487
|
FeatureItem,
|
|
@@ -11489,7 +11492,7 @@ var FeatureGrid = react.forwardRef(
|
|
|
11489
11492
|
},
|
|
11490
11493
|
`${feature.title}-${index}`
|
|
11491
11494
|
)) })
|
|
11492
|
-
] });
|
|
11495
|
+
] }) });
|
|
11493
11496
|
}
|
|
11494
11497
|
);
|
|
11495
11498
|
FeatureGrid.displayName = "FeatureGrid";
|
|
@@ -11519,10 +11522,11 @@ var LogoCloud = react.forwardRef(
|
|
|
11519
11522
|
variant = "plain",
|
|
11520
11523
|
monochrome = true,
|
|
11521
11524
|
logoHeight = 40,
|
|
11525
|
+
maxWidth = "xl",
|
|
11522
11526
|
...rest
|
|
11523
11527
|
}, ref) => {
|
|
11524
11528
|
const hasHeading = Boolean(title || description);
|
|
11525
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
11529
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { maxWidth, children: [
|
|
11526
11530
|
hasHeading && title && /* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { title, description, align: headingAlign }),
|
|
11527
11531
|
hasHeading && !title && description && /* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { title: description, align: headingAlign, as: "h2" }),
|
|
11528
11532
|
/* @__PURE__ */ jsxRuntime.jsx(Grid4, { $columns: columns, $hasHeading: hasHeading, children: logos.map((logo) => {
|
|
@@ -11538,7 +11542,7 @@ var LogoCloud = react.forwardRef(
|
|
|
11538
11542
|
key
|
|
11539
11543
|
);
|
|
11540
11544
|
}) })
|
|
11541
|
-
] });
|
|
11545
|
+
] }) });
|
|
11542
11546
|
}
|
|
11543
11547
|
);
|
|
11544
11548
|
LogoCloud.displayName = "LogoCloud";
|
|
@@ -11620,6 +11624,7 @@ var NewsletterSection = react.forwardRef(
|
|
|
11620
11624
|
headingAlign = "center",
|
|
11621
11625
|
layout = "centered",
|
|
11622
11626
|
cardVariant = "default",
|
|
11627
|
+
maxWidth = "xl",
|
|
11623
11628
|
onSubmit,
|
|
11624
11629
|
...rest
|
|
11625
11630
|
}, ref) => {
|
|
@@ -11650,7 +11655,7 @@ var NewsletterSection = react.forwardRef(
|
|
|
11650
11655
|
] }),
|
|
11651
11656
|
privacyNote && /* @__PURE__ */ jsxRuntime.jsx(PrivacyNote, { children: privacyNote })
|
|
11652
11657
|
] });
|
|
11653
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(Card, { variant: cardVariant, padding: "xl", rounded: "lg", children: isCentered ? /* @__PURE__ */ jsxRuntime.jsxs(CenteredInner, { children: [
|
|
11658
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsx(Container, { maxWidth, children: /* @__PURE__ */ jsxRuntime.jsx(Card, { variant: cardVariant, padding: "xl", rounded: "lg", children: isCentered ? /* @__PURE__ */ jsxRuntime.jsxs(CenteredInner, { children: [
|
|
11654
11659
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11655
11660
|
SectionHeading,
|
|
11656
11661
|
{
|
|
@@ -11663,7 +11668,7 @@ var NewsletterSection = react.forwardRef(
|
|
|
11663
11668
|
] }) : /* @__PURE__ */ jsxRuntime.jsxs(SplitInner, { children: [
|
|
11664
11669
|
/* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { title: title ?? "", description, align: "left" }),
|
|
11665
11670
|
formNode
|
|
11666
|
-
] }) }) });
|
|
11671
|
+
] }) }) }) });
|
|
11667
11672
|
}
|
|
11668
11673
|
);
|
|
11669
11674
|
NewsletterSection.displayName = "NewsletterSection";
|
|
@@ -11778,10 +11783,11 @@ var StatsSection = react.forwardRef(
|
|
|
11778
11783
|
columns = 3,
|
|
11779
11784
|
cardVariant = "default",
|
|
11780
11785
|
statAlign = "center",
|
|
11786
|
+
maxWidth = "xl",
|
|
11781
11787
|
...rest
|
|
11782
11788
|
}, ref) => {
|
|
11783
11789
|
const hasHeading = Boolean(title || description);
|
|
11784
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
11790
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { maxWidth, children: [
|
|
11785
11791
|
hasHeading && /* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { title: title ?? "", description, align: headingAlign }),
|
|
11786
11792
|
/* @__PURE__ */ jsxRuntime.jsx(Grid6, { $columns: columns, $hasHeading: hasHeading, children: stats.map((stat, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
11787
11793
|
StatCard,
|
|
@@ -11792,7 +11798,7 @@ var StatsSection = react.forwardRef(
|
|
|
11792
11798
|
},
|
|
11793
11799
|
`${stat.label}-${index}`
|
|
11794
11800
|
)) })
|
|
11795
|
-
] });
|
|
11801
|
+
] }) });
|
|
11796
11802
|
}
|
|
11797
11803
|
);
|
|
11798
11804
|
StatsSection.displayName = "StatsSection";
|
|
@@ -11819,10 +11825,11 @@ var TeamSection = react.forwardRef(
|
|
|
11819
11825
|
headingAlign = "center",
|
|
11820
11826
|
columns = 3,
|
|
11821
11827
|
cardVariant = "default",
|
|
11828
|
+
maxWidth = "xl",
|
|
11822
11829
|
...rest
|
|
11823
11830
|
}, ref) => {
|
|
11824
11831
|
const hasHeading = Boolean(title || description);
|
|
11825
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
11832
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { maxWidth, children: [
|
|
11826
11833
|
hasHeading && title && /* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { title, description, align: headingAlign }),
|
|
11827
11834
|
hasHeading && !title && description && /* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { title: description, align: headingAlign, as: "h2" }),
|
|
11828
11835
|
/* @__PURE__ */ jsxRuntime.jsx(Grid7, { $columns: columns, $hasHeading: hasHeading, children: members.map((member) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -11833,7 +11840,7 @@ var TeamSection = react.forwardRef(
|
|
|
11833
11840
|
},
|
|
11834
11841
|
`${member.name}-${member.role}`
|
|
11835
11842
|
)) })
|
|
11836
|
-
] });
|
|
11843
|
+
] }) });
|
|
11837
11844
|
}
|
|
11838
11845
|
);
|
|
11839
11846
|
TeamSection.displayName = "TeamSection";
|
|
@@ -11860,10 +11867,11 @@ var TestimonialsSection = react.forwardRef(
|
|
|
11860
11867
|
headingAlign = "center",
|
|
11861
11868
|
columns = 3,
|
|
11862
11869
|
cardVariant = "default",
|
|
11870
|
+
maxWidth = "xl",
|
|
11863
11871
|
...rest
|
|
11864
11872
|
}, ref) => {
|
|
11865
11873
|
const hasHeading = Boolean(title || description);
|
|
11866
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
11874
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { maxWidth, children: [
|
|
11867
11875
|
hasHeading && /* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { title: title ?? "", description, align: headingAlign }),
|
|
11868
11876
|
/* @__PURE__ */ jsxRuntime.jsx(Grid8, { $columns: columns, $hasHeading: hasHeading, children: testimonials.map((testimonial, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
11869
11877
|
TestimonialCard,
|
|
@@ -11873,7 +11881,7 @@ var TestimonialsSection = react.forwardRef(
|
|
|
11873
11881
|
},
|
|
11874
11882
|
`${testimonial.authorName}-${index}`
|
|
11875
11883
|
)) })
|
|
11876
|
-
] });
|
|
11884
|
+
] }) });
|
|
11877
11885
|
}
|
|
11878
11886
|
);
|
|
11879
11887
|
TestimonialsSection.displayName = "TestimonialsSection";
|