@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.d.cts CHANGED
@@ -1551,6 +1551,7 @@ declare const CommentSection: react.ForwardRefExoticComponent<CommentSectionProp
1551
1551
  interface CommentSectionProps extends HTMLAttributes<HTMLElement> {
1552
1552
  title?: string;
1553
1553
  comments: CommentItem[];
1554
+ maxWidth?: ContainerMaxWidth;
1554
1555
  onLike?: (commentId: string) => void;
1555
1556
  onReply?: (commentId: string) => void;
1556
1557
  }
@@ -1562,6 +1563,7 @@ interface FaqSectionProps extends HTMLAttributes<HTMLElement> {
1562
1563
  description?: string;
1563
1564
  items: FaqItemData[];
1564
1565
  headingAlign?: SectionHeadingAlign;
1566
+ maxWidth?: ContainerMaxWidth;
1565
1567
  defaultOpenIndex?: number;
1566
1568
  }
1567
1569
 
@@ -1577,6 +1579,7 @@ interface FeatureGridProps extends HTMLAttributes<HTMLElement> {
1577
1579
  columns?: FeatureGridColumns;
1578
1580
  cardVariant?: CardVariant;
1579
1581
  itemLayout?: FeatureItemProps['layout'];
1582
+ maxWidth?: ContainerMaxWidth;
1580
1583
  }
1581
1584
 
1582
1585
  declare const LogoCloud: react.ForwardRefExoticComponent<LogoCloudProps & react.RefAttributes<HTMLElement>>;
@@ -1595,6 +1598,7 @@ interface LogoCloudProps extends HTMLAttributes<HTMLElement> {
1595
1598
  variant?: LogoCloudVariant;
1596
1599
  monochrome?: boolean;
1597
1600
  logoHeight?: number | string;
1601
+ maxWidth?: ContainerMaxWidth;
1598
1602
  }
1599
1603
 
1600
1604
  declare const NewsletterSection: react.ForwardRefExoticComponent<NewsletterSectionProps & react.RefAttributes<HTMLElement>>;
@@ -1610,6 +1614,7 @@ interface NewsletterSectionProps extends Omit<HTMLAttributes<HTMLElement>, 'onSu
1610
1614
  headingAlign?: SectionHeadingAlign;
1611
1615
  layout?: NewsletterLayout;
1612
1616
  cardVariant?: CardVariant;
1617
+ maxWidth?: ContainerMaxWidth;
1613
1618
  onSubmit?: (email: string, event: FormEvent<HTMLFormElement>) => void;
1614
1619
  }
1615
1620
  declare const newsletterLayouts: NewsletterLayout[];
@@ -1647,6 +1652,7 @@ interface StatsSectionProps extends HTMLAttributes<HTMLElement> {
1647
1652
  columns?: StatsSectionColumns;
1648
1653
  cardVariant?: CardVariant;
1649
1654
  statAlign?: 'left' | 'center';
1655
+ maxWidth?: ContainerMaxWidth;
1650
1656
  }
1651
1657
 
1652
1658
  declare const TeamSection: react.ForwardRefExoticComponent<TeamSectionProps & react.RefAttributes<HTMLElement>>;
@@ -1660,6 +1666,7 @@ interface TeamSectionProps extends HTMLAttributes<HTMLElement> {
1660
1666
  headingAlign?: SectionHeadingAlign;
1661
1667
  columns?: TeamSectionColumns;
1662
1668
  cardVariant?: CardVariant;
1669
+ maxWidth?: ContainerMaxWidth;
1663
1670
  }
1664
1671
 
1665
1672
  declare const TestimonialsSection: react.ForwardRefExoticComponent<TestimonialsSectionProps & react.RefAttributes<HTMLElement>>;
@@ -1673,6 +1680,7 @@ interface TestimonialsSectionProps extends HTMLAttributes<HTMLElement> {
1673
1680
  headingAlign?: SectionHeadingAlign;
1674
1681
  columns?: TestimonialsSectionColumns;
1675
1682
  cardVariant?: CardVariant;
1683
+ maxWidth?: ContainerMaxWidth;
1676
1684
  }
1677
1685
 
1678
1686
  declare function CommandPalette({ open, onClose, groups, placeholder, emptyLabel, onSelect, }: CommandPaletteProps): react.ReactPortal | null;
package/dist/index.d.ts CHANGED
@@ -1551,6 +1551,7 @@ declare const CommentSection: react.ForwardRefExoticComponent<CommentSectionProp
1551
1551
  interface CommentSectionProps extends HTMLAttributes<HTMLElement> {
1552
1552
  title?: string;
1553
1553
  comments: CommentItem[];
1554
+ maxWidth?: ContainerMaxWidth;
1554
1555
  onLike?: (commentId: string) => void;
1555
1556
  onReply?: (commentId: string) => void;
1556
1557
  }
@@ -1562,6 +1563,7 @@ interface FaqSectionProps extends HTMLAttributes<HTMLElement> {
1562
1563
  description?: string;
1563
1564
  items: FaqItemData[];
1564
1565
  headingAlign?: SectionHeadingAlign;
1566
+ maxWidth?: ContainerMaxWidth;
1565
1567
  defaultOpenIndex?: number;
1566
1568
  }
1567
1569
 
@@ -1577,6 +1579,7 @@ interface FeatureGridProps extends HTMLAttributes<HTMLElement> {
1577
1579
  columns?: FeatureGridColumns;
1578
1580
  cardVariant?: CardVariant;
1579
1581
  itemLayout?: FeatureItemProps['layout'];
1582
+ maxWidth?: ContainerMaxWidth;
1580
1583
  }
1581
1584
 
1582
1585
  declare const LogoCloud: react.ForwardRefExoticComponent<LogoCloudProps & react.RefAttributes<HTMLElement>>;
@@ -1595,6 +1598,7 @@ interface LogoCloudProps extends HTMLAttributes<HTMLElement> {
1595
1598
  variant?: LogoCloudVariant;
1596
1599
  monochrome?: boolean;
1597
1600
  logoHeight?: number | string;
1601
+ maxWidth?: ContainerMaxWidth;
1598
1602
  }
1599
1603
 
1600
1604
  declare const NewsletterSection: react.ForwardRefExoticComponent<NewsletterSectionProps & react.RefAttributes<HTMLElement>>;
@@ -1610,6 +1614,7 @@ interface NewsletterSectionProps extends Omit<HTMLAttributes<HTMLElement>, 'onSu
1610
1614
  headingAlign?: SectionHeadingAlign;
1611
1615
  layout?: NewsletterLayout;
1612
1616
  cardVariant?: CardVariant;
1617
+ maxWidth?: ContainerMaxWidth;
1613
1618
  onSubmit?: (email: string, event: FormEvent<HTMLFormElement>) => void;
1614
1619
  }
1615
1620
  declare const newsletterLayouts: NewsletterLayout[];
@@ -1647,6 +1652,7 @@ interface StatsSectionProps extends HTMLAttributes<HTMLElement> {
1647
1652
  columns?: StatsSectionColumns;
1648
1653
  cardVariant?: CardVariant;
1649
1654
  statAlign?: 'left' | 'center';
1655
+ maxWidth?: ContainerMaxWidth;
1650
1656
  }
1651
1657
 
1652
1658
  declare const TeamSection: react.ForwardRefExoticComponent<TeamSectionProps & react.RefAttributes<HTMLElement>>;
@@ -1660,6 +1666,7 @@ interface TeamSectionProps extends HTMLAttributes<HTMLElement> {
1660
1666
  headingAlign?: SectionHeadingAlign;
1661
1667
  columns?: TeamSectionColumns;
1662
1668
  cardVariant?: CardVariant;
1669
+ maxWidth?: ContainerMaxWidth;
1663
1670
  }
1664
1671
 
1665
1672
  declare const TestimonialsSection: react.ForwardRefExoticComponent<TestimonialsSectionProps & react.RefAttributes<HTMLElement>>;
@@ -1673,6 +1680,7 @@ interface TestimonialsSectionProps extends HTMLAttributes<HTMLElement> {
1673
1680
  headingAlign?: SectionHeadingAlign;
1674
1681
  columns?: TestimonialsSectionColumns;
1675
1682
  cardVariant?: CardVariant;
1683
+ maxWidth?: ContainerMaxWidth;
1676
1684
  }
1677
1685
 
1678
1686
  declare function CommandPalette({ open, onClose, groups, placeholder, emptyLabel, onSelect, }: CommandPaletteProps): react.ReactPortal | null;
package/dist/index.js CHANGED
@@ -11348,12 +11348,13 @@ var CommentSection = forwardRef(
11348
11348
  ({
11349
11349
  title = "Komentarze",
11350
11350
  comments,
11351
+ maxWidth = "xl",
11351
11352
  onLike,
11352
11353
  onReply,
11353
11354
  ...rest
11354
11355
  }, ref) => {
11355
11356
  const total = countTotal(comments);
11356
- return /* @__PURE__ */ jsxs(Section, { ref, ...rest, children: [
11357
+ return /* @__PURE__ */ jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxs(Container, { maxWidth, children: [
11357
11358
  /* @__PURE__ */ jsxs(Heading, { children: [
11358
11359
  title,
11359
11360
  /* @__PURE__ */ jsxs(CommentCount, { children: [
@@ -11375,7 +11376,7 @@ var CommentSection = forwardRef(
11375
11376
  reply.id
11376
11377
  )) })
11377
11378
  ] }, comment.id)) })
11378
- ] });
11379
+ ] }) });
11379
11380
  }
11380
11381
  );
11381
11382
  CommentSection.displayName = "CommentSection";
@@ -11388,11 +11389,12 @@ var FaqSection = forwardRef(
11388
11389
  description,
11389
11390
  items,
11390
11391
  headingAlign = "center",
11392
+ maxWidth = "xl",
11391
11393
  defaultOpenIndex,
11392
11394
  ...rest
11393
11395
  }, ref) => {
11394
11396
  const hasHeading = Boolean(title || description);
11395
- return /* @__PURE__ */ jsxs(Section, { ref, ...rest, children: [
11397
+ return /* @__PURE__ */ jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxs(Container, { maxWidth, children: [
11396
11398
  hasHeading && /* @__PURE__ */ jsx(SectionHeading, { title: title ?? "", description, align: headingAlign }),
11397
11399
  /* @__PURE__ */ jsx(List6, { $hasHeading: hasHeading, children: items.map((item, index) => /* @__PURE__ */ jsx(
11398
11400
  FaqItem,
@@ -11402,7 +11404,7 @@ var FaqSection = forwardRef(
11402
11404
  },
11403
11405
  `${item.question}-${index}`
11404
11406
  )) })
11405
- ] });
11407
+ ] }) });
11406
11408
  }
11407
11409
  );
11408
11410
  FaqSection.displayName = "FaqSection";
@@ -11429,10 +11431,11 @@ var FeatureGrid = forwardRef(
11429
11431
  columns = 3,
11430
11432
  cardVariant = "default",
11431
11433
  itemLayout = "card",
11434
+ maxWidth = "xl",
11432
11435
  ...rest
11433
11436
  }, ref) => {
11434
11437
  const hasHeading = Boolean(title || description);
11435
- return /* @__PURE__ */ jsxs(Section, { ref, ...rest, children: [
11438
+ return /* @__PURE__ */ jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxs(Container, { maxWidth, children: [
11436
11439
  hasHeading && /* @__PURE__ */ jsx(SectionHeading, { title: title ?? "", description, align: headingAlign }),
11437
11440
  /* @__PURE__ */ jsx(Grid3, { $columns: columns, $hasHeading: hasHeading, $iconLeft: itemLayout === "icon-left", children: features.map((feature, index) => /* @__PURE__ */ jsx(
11438
11441
  FeatureItem,
@@ -11443,7 +11446,7 @@ var FeatureGrid = forwardRef(
11443
11446
  },
11444
11447
  `${feature.title}-${index}`
11445
11448
  )) })
11446
- ] });
11449
+ ] }) });
11447
11450
  }
11448
11451
  );
11449
11452
  FeatureGrid.displayName = "FeatureGrid";
@@ -11473,10 +11476,11 @@ var LogoCloud = forwardRef(
11473
11476
  variant = "plain",
11474
11477
  monochrome = true,
11475
11478
  logoHeight = 40,
11479
+ maxWidth = "xl",
11476
11480
  ...rest
11477
11481
  }, ref) => {
11478
11482
  const hasHeading = Boolean(title || description);
11479
- return /* @__PURE__ */ jsxs(Section, { ref, ...rest, children: [
11483
+ return /* @__PURE__ */ jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxs(Container, { maxWidth, children: [
11480
11484
  hasHeading && title && /* @__PURE__ */ jsx(SectionHeading, { title, description, align: headingAlign }),
11481
11485
  hasHeading && !title && description && /* @__PURE__ */ jsx(SectionHeading, { title: description, align: headingAlign, as: "h2" }),
11482
11486
  /* @__PURE__ */ jsx(Grid4, { $columns: columns, $hasHeading: hasHeading, children: logos.map((logo) => {
@@ -11492,7 +11496,7 @@ var LogoCloud = forwardRef(
11492
11496
  key
11493
11497
  );
11494
11498
  }) })
11495
- ] });
11499
+ ] }) });
11496
11500
  }
11497
11501
  );
11498
11502
  LogoCloud.displayName = "LogoCloud";
@@ -11574,6 +11578,7 @@ var NewsletterSection = forwardRef(
11574
11578
  headingAlign = "center",
11575
11579
  layout = "centered",
11576
11580
  cardVariant = "default",
11581
+ maxWidth = "xl",
11577
11582
  onSubmit,
11578
11583
  ...rest
11579
11584
  }, ref) => {
@@ -11604,7 +11609,7 @@ var NewsletterSection = forwardRef(
11604
11609
  ] }),
11605
11610
  privacyNote && /* @__PURE__ */ jsx(PrivacyNote, { children: privacyNote })
11606
11611
  ] });
11607
- return /* @__PURE__ */ jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsx(Card, { variant: cardVariant, padding: "xl", rounded: "lg", children: isCentered ? /* @__PURE__ */ jsxs(CenteredInner, { children: [
11612
+ return /* @__PURE__ */ jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsx(Container, { maxWidth, children: /* @__PURE__ */ jsx(Card, { variant: cardVariant, padding: "xl", rounded: "lg", children: isCentered ? /* @__PURE__ */ jsxs(CenteredInner, { children: [
11608
11613
  /* @__PURE__ */ jsx(
11609
11614
  SectionHeading,
11610
11615
  {
@@ -11617,7 +11622,7 @@ var NewsletterSection = forwardRef(
11617
11622
  ] }) : /* @__PURE__ */ jsxs(SplitInner, { children: [
11618
11623
  /* @__PURE__ */ jsx(SectionHeading, { title: title ?? "", description, align: "left" }),
11619
11624
  formNode
11620
- ] }) }) });
11625
+ ] }) }) }) });
11621
11626
  }
11622
11627
  );
11623
11628
  NewsletterSection.displayName = "NewsletterSection";
@@ -11732,10 +11737,11 @@ var StatsSection = forwardRef(
11732
11737
  columns = 3,
11733
11738
  cardVariant = "default",
11734
11739
  statAlign = "center",
11740
+ maxWidth = "xl",
11735
11741
  ...rest
11736
11742
  }, ref) => {
11737
11743
  const hasHeading = Boolean(title || description);
11738
- return /* @__PURE__ */ jsxs(Section, { ref, ...rest, children: [
11744
+ return /* @__PURE__ */ jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxs(Container, { maxWidth, children: [
11739
11745
  hasHeading && /* @__PURE__ */ jsx(SectionHeading, { title: title ?? "", description, align: headingAlign }),
11740
11746
  /* @__PURE__ */ jsx(Grid6, { $columns: columns, $hasHeading: hasHeading, children: stats.map((stat, index) => /* @__PURE__ */ jsx(
11741
11747
  StatCard,
@@ -11746,7 +11752,7 @@ var StatsSection = forwardRef(
11746
11752
  },
11747
11753
  `${stat.label}-${index}`
11748
11754
  )) })
11749
- ] });
11755
+ ] }) });
11750
11756
  }
11751
11757
  );
11752
11758
  StatsSection.displayName = "StatsSection";
@@ -11773,10 +11779,11 @@ var TeamSection = forwardRef(
11773
11779
  headingAlign = "center",
11774
11780
  columns = 3,
11775
11781
  cardVariant = "default",
11782
+ maxWidth = "xl",
11776
11783
  ...rest
11777
11784
  }, ref) => {
11778
11785
  const hasHeading = Boolean(title || description);
11779
- return /* @__PURE__ */ jsxs(Section, { ref, ...rest, children: [
11786
+ return /* @__PURE__ */ jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxs(Container, { maxWidth, children: [
11780
11787
  hasHeading && title && /* @__PURE__ */ jsx(SectionHeading, { title, description, align: headingAlign }),
11781
11788
  hasHeading && !title && description && /* @__PURE__ */ jsx(SectionHeading, { title: description, align: headingAlign, as: "h2" }),
11782
11789
  /* @__PURE__ */ jsx(Grid7, { $columns: columns, $hasHeading: hasHeading, children: members.map((member) => /* @__PURE__ */ jsx(
@@ -11787,7 +11794,7 @@ var TeamSection = forwardRef(
11787
11794
  },
11788
11795
  `${member.name}-${member.role}`
11789
11796
  )) })
11790
- ] });
11797
+ ] }) });
11791
11798
  }
11792
11799
  );
11793
11800
  TeamSection.displayName = "TeamSection";
@@ -11814,10 +11821,11 @@ var TestimonialsSection = forwardRef(
11814
11821
  headingAlign = "center",
11815
11822
  columns = 3,
11816
11823
  cardVariant = "default",
11824
+ maxWidth = "xl",
11817
11825
  ...rest
11818
11826
  }, ref) => {
11819
11827
  const hasHeading = Boolean(title || description);
11820
- return /* @__PURE__ */ jsxs(Section, { ref, ...rest, children: [
11828
+ return /* @__PURE__ */ jsx(Section, { ref, ...rest, children: /* @__PURE__ */ jsxs(Container, { maxWidth, children: [
11821
11829
  hasHeading && /* @__PURE__ */ jsx(SectionHeading, { title: title ?? "", description, align: headingAlign }),
11822
11830
  /* @__PURE__ */ jsx(Grid8, { $columns: columns, $hasHeading: hasHeading, children: testimonials.map((testimonial, index) => /* @__PURE__ */ jsx(
11823
11831
  TestimonialCard,
@@ -11827,7 +11835,7 @@ var TestimonialsSection = forwardRef(
11827
11835
  },
11828
11836
  `${testimonial.authorName}-${index}`
11829
11837
  )) })
11830
- ] });
11838
+ ] }) });
11831
11839
  }
11832
11840
  );
11833
11841
  TestimonialsSection.displayName = "TestimonialsSection";