@postenbring/hedwig-react 0.0.55 → 0.0.56

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.
Files changed (89) hide show
  1. package/dist/_tsup-dts-rollup.d.mts +162 -190
  2. package/dist/_tsup-dts-rollup.d.ts +162 -190
  3. package/dist/accordion/index.mjs +2 -2
  4. package/dist/button/button.js +1 -1
  5. package/dist/button/button.js.map +1 -1
  6. package/dist/button/button.mjs +1 -1
  7. package/dist/button/index.js +1 -1
  8. package/dist/button/index.js.map +1 -1
  9. package/dist/button/index.mjs +1 -1
  10. package/dist/{chunk-2XSEQBJ5.mjs → chunk-5IIBIO3Y.mjs} +1 -1
  11. package/dist/chunk-5IIBIO3Y.mjs.map +1 -0
  12. package/dist/{chunk-MJ4LA23N.mjs → chunk-BDA6STW2.mjs} +2 -2
  13. package/dist/{chunk-5T3VUFL4.mjs → chunk-GVSLN5KE.mjs} +1 -1
  14. package/dist/chunk-GVSLN5KE.mjs.map +1 -0
  15. package/dist/{chunk-FL4LCX4F.mjs → chunk-IWV5GK63.mjs} +4 -4
  16. package/dist/{chunk-UVUIY2WB.mjs → chunk-J6ES2LO5.mjs} +2 -2
  17. package/dist/{chunk-UVUIY2WB.mjs.map → chunk-J6ES2LO5.mjs.map} +1 -1
  18. package/dist/{chunk-5GRZROYQ.mjs → chunk-LYRXA4WS.mjs} +8 -8
  19. package/dist/chunk-LYRXA4WS.mjs.map +1 -0
  20. package/dist/{chunk-KOO4VQ2N.mjs → chunk-OJ42PRYY.mjs} +2 -2
  21. package/dist/chunk-OJ42PRYY.mjs.map +1 -0
  22. package/dist/{chunk-T3EC54VN.mjs → chunk-PUFFEK6I.mjs} +2 -2
  23. package/dist/chunk-V4NGQVBQ.mjs +61 -0
  24. package/dist/chunk-V4NGQVBQ.mjs.map +1 -0
  25. package/dist/{chunk-LK62DXGG.mjs → chunk-ZSLWZUBI.mjs} +10 -3
  26. package/dist/chunk-ZSLWZUBI.mjs.map +1 -0
  27. package/dist/index-no-css.d.mts +1 -28
  28. package/dist/index-no-css.d.ts +1 -28
  29. package/dist/index-no-css.js +51 -117
  30. package/dist/index-no-css.js.map +1 -1
  31. package/dist/index-no-css.mjs +22 -76
  32. package/dist/index.d.mts +1 -28
  33. package/dist/index.d.ts +1 -28
  34. package/dist/index.js +51 -117
  35. package/dist/index.js.map +1 -1
  36. package/dist/index.mjs +22 -76
  37. package/dist/index.mjs.map +1 -1
  38. package/dist/modal/index.js.map +1 -1
  39. package/dist/modal/index.mjs +2 -2
  40. package/dist/modal/modal.js.map +1 -1
  41. package/dist/modal/modal.mjs +1 -1
  42. package/dist/navbar/index.js +9 -2
  43. package/dist/navbar/index.js.map +1 -1
  44. package/dist/navbar/index.mjs +2 -2
  45. package/dist/navbar/navbar-expandable-menu.js +9 -2
  46. package/dist/navbar/navbar-expandable-menu.js.map +1 -1
  47. package/dist/navbar/navbar-expandable-menu.mjs +1 -1
  48. package/dist/show-more/index.js.map +1 -1
  49. package/dist/show-more/index.mjs +1 -1
  50. package/dist/show-more/show-more.js.map +1 -1
  51. package/dist/show-more/show-more.mjs +1 -1
  52. package/dist/styled-html/index.js +1 -1
  53. package/dist/styled-html/index.js.map +1 -1
  54. package/dist/styled-html/index.mjs +1 -1
  55. package/dist/styled-html/styled-html.js +1 -1
  56. package/dist/styled-html/styled-html.js.map +1 -1
  57. package/dist/styled-html/styled-html.mjs +1 -1
  58. package/dist/text/index.d.mts +15 -0
  59. package/dist/text/index.d.ts +15 -0
  60. package/dist/text/index.js +179 -0
  61. package/dist/text/index.js.map +1 -0
  62. package/dist/text/index.mjs +36 -0
  63. package/dist/text/text.d.mts +2 -0
  64. package/dist/text/text.d.ts +2 -0
  65. package/dist/{typography/typography.js → text/text.js} +12 -12
  66. package/dist/text/text.js.map +1 -0
  67. package/dist/text/text.mjs +8 -0
  68. package/package.json +7 -7
  69. package/dist/chunk-2XSEQBJ5.mjs.map +0 -1
  70. package/dist/chunk-5GRZROYQ.mjs.map +0 -1
  71. package/dist/chunk-5T3VUFL4.mjs.map +0 -1
  72. package/dist/chunk-KOO4VQ2N.mjs.map +0 -1
  73. package/dist/chunk-LK62DXGG.mjs.map +0 -1
  74. package/dist/chunk-NCYRNCGJ.mjs +0 -107
  75. package/dist/chunk-NCYRNCGJ.mjs.map +0 -1
  76. package/dist/typography/index.d.mts +0 -42
  77. package/dist/typography/index.d.ts +0 -42
  78. package/dist/typography/index.js +0 -252
  79. package/dist/typography/index.js.map +0 -1
  80. package/dist/typography/index.mjs +0 -90
  81. package/dist/typography/typography.d.mts +0 -2
  82. package/dist/typography/typography.d.ts +0 -2
  83. package/dist/typography/typography.js.map +0 -1
  84. package/dist/typography/typography.mjs +0 -8
  85. /package/dist/{chunk-MJ4LA23N.mjs.map → chunk-BDA6STW2.mjs.map} +0 -0
  86. /package/dist/{chunk-FL4LCX4F.mjs.map → chunk-IWV5GK63.mjs.map} +0 -0
  87. /package/dist/{chunk-T3EC54VN.mjs.map → chunk-PUFFEK6I.mjs.map} +0 -0
  88. /package/dist/{typography → text}/index.mjs.map +0 -0
  89. /package/dist/{typography/typography.mjs.map → text/text.mjs.map} +0 -0
@@ -62,14 +62,8 @@ __export(index_no_css_exports, {
62
62
  Accordion: () => AccordionComponent,
63
63
  AutoAnimateHeight: () => AutoAnimateHeight,
64
64
  Badge: () => Badge,
65
- Body: () => Body,
66
- BodySmall: () => BodySmall,
67
- BodySmallTitle: () => BodySmallTitle,
68
- BodyTitle: () => BodyTitle,
69
65
  Box: () => BoxComponent,
70
66
  Breadcrumbs: () => Breadcrumbs,
71
- Caption: () => Caption,
72
- CaptionTitle: () => CaptionTitle,
73
67
  Card: () => CardComponent,
74
68
  Checkbox: () => Checkbox,
75
69
  Container: () => Container,
@@ -77,11 +71,6 @@ __export(index_no_css_exports, {
77
71
  DescriptionList: () => DescriptionList,
78
72
  ErrorMessage: () => ErrorMessage,
79
73
  Fieldset: () => Fieldset,
80
- H1: () => H1,
81
- H1Display: () => H1Display,
82
- H2: () => H2,
83
- H3: () => H3,
84
- H3Title: () => H3Title,
85
74
  Input: () => Input,
86
75
  Link: () => Link,
87
76
  LinkList: () => LinkList,
@@ -98,8 +87,6 @@ __export(index_no_css_exports, {
98
87
  StepIndicator: () => StepIndicator,
99
88
  StyledHtml: () => StyledHtml,
100
89
  Tabs: () => TabsComponent,
101
- Technical: () => Technical,
102
- TechnicalTitle: () => TechnicalTitle,
103
90
  Text: () => Text,
104
91
  TextBody: () => TextBody,
105
92
  TextBodySmall: () => TextBodySmall,
@@ -115,20 +102,6 @@ __export(index_no_css_exports, {
115
102
  TextTechnical: () => TextTechnical,
116
103
  TextTechnicalTitle: () => TextTechnicalTitle,
117
104
  Textarea: () => Textarea,
118
- Typography: () => Typography,
119
- TypographyBody: () => TypographyBody,
120
- TypographyBodySmall: () => TypographyBodySmall,
121
- TypographyBodySmallTitle: () => TypographyBodySmallTitle,
122
- TypographyBodyTitle: () => TypographyBodyTitle,
123
- TypographyCaption: () => TypographyCaption,
124
- TypographyCaptionTitle: () => TypographyCaptionTitle,
125
- TypographyH1: () => TypographyH1,
126
- TypographyH1Display: () => TypographyH1Display,
127
- TypographyH2: () => TypographyH2,
128
- TypographyH3: () => TypographyH3,
129
- TypographyH3Title: () => TypographyH3Title,
130
- TypographyTechnical: () => TypographyTechnical,
131
- TypographyTechnicalTitle: () => TypographyTechnicalTitle,
132
105
  UnorderedList: () => UnorderedList,
133
106
  WarningBadge: () => WarningBadge,
134
107
  WarningBanner: () => WarningBanner,
@@ -449,7 +422,7 @@ var BaseButton = (0, import_react7.forwardRef)(
449
422
  {
450
423
  [`hds-button--${variant}`]: fill === "contained",
451
424
  [`hds-button--outline-${variant}`]: fill === "outline" || fill === "outlined",
452
- "hds-button--full": fullWidth,
425
+ "hds-button--full": fullWidth === true,
453
426
  "hds-button--mobile-full": fullWidth === "mobile",
454
427
  "hds-button--icon-only": icon && !children
455
428
  },
@@ -1297,7 +1270,14 @@ var navbarContext = (0, import_react22.createContext)([
1297
1270
  function NavbarExpandableMenu({ children }) {
1298
1271
  const [open, setOpen] = (0, import_react22.useState)(false);
1299
1272
  const toggleOpen = () => {
1300
- setOpen((currentOpen) => !currentOpen);
1273
+ const nextOpenState = !open;
1274
+ setOpen(nextOpenState);
1275
+ if (nextOpenState) {
1276
+ window.scrollTo(0, 0);
1277
+ document.body.classList.add((0, import_typed_classname26.clsx)("hds-navbar-scroll-lock"));
1278
+ } else {
1279
+ document.body.classList.remove((0, import_typed_classname26.clsx)("hds-navbar-scroll-lock"));
1280
+ }
1301
1281
  };
1302
1282
  return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(navbarContext.Provider, { value: [open, toggleOpen], children });
1303
1283
  }
@@ -1431,7 +1411,7 @@ var NavbarExpandableMenuContent = (0, import_react22.forwardRef)((_a, ref) => {
1431
1411
  className: (0, import_typed_classname26.clsx)("hds-navbar__expandable-menu-content", className),
1432
1412
  "data-state": open ? "open" : "closed",
1433
1413
  ref,
1434
- children
1414
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: (0, import_typed_classname26.clsx)("hds-navbar__expandable-menu-content-inner"), children })
1435
1415
  })
1436
1416
  );
1437
1417
  });
@@ -1647,7 +1627,7 @@ var StyledHtml = (0, import_react25.forwardRef)(
1647
1627
  );
1648
1628
  }
1649
1629
  );
1650
- StyledHtml.displayName = "Prose";
1630
+ StyledHtml.displayName = "StyledHtml";
1651
1631
 
1652
1632
  // src/tabs/tabs.tsx
1653
1633
  var import_react27 = require("react");
@@ -1774,7 +1754,7 @@ TabsComponent.Tab = Tab;
1774
1754
  TabsComponent.Contents = TabsContents;
1775
1755
  TabsComponent.Content = TabsContent;
1776
1756
 
1777
- // src/typography/typography.tsx
1757
+ // src/text/text.tsx
1778
1758
  var import_react30 = require("react");
1779
1759
  var import_typed_classname34 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
1780
1760
  var import_jsx_runtime36 = require("react/jsx-runtime");
@@ -1793,7 +1773,7 @@ var defaultHTMLTag = {
1793
1773
  caption: "p",
1794
1774
  "caption-title": "p"
1795
1775
  };
1796
- var Typography = (0, import_react30.forwardRef)(
1776
+ var Text = (0, import_react30.forwardRef)(
1797
1777
  (_a, ref) => {
1798
1778
  var _b = _a, {
1799
1779
  as,
@@ -1816,9 +1796,9 @@ var Typography = (0, import_react30.forwardRef)(
1816
1796
  Component,
1817
1797
  __spreadProps(__spreadValues({
1818
1798
  className: (0, import_typed_classname34.clsx)(
1819
- `hds-typography-${variant}`,
1820
- sizeModifier && `hds-typography--${sizeModifier}`,
1821
- spacing && "hds-typography--spacing",
1799
+ `hds-text-${variant}`,
1800
+ sizeModifier && `hds-text--${sizeModifier}`,
1801
+ spacing && "hds-text--spacing",
1822
1802
  className
1823
1803
  ),
1824
1804
  ref
@@ -1828,63 +1808,44 @@ var Typography = (0, import_react30.forwardRef)(
1828
1808
  );
1829
1809
  }
1830
1810
  );
1831
- Typography.displayName = "Typography";
1811
+ Text.displayName = "Text";
1832
1812
 
1833
- // src/typography/index.tsx
1813
+ // src/text/index.tsx
1834
1814
  var import_jsx_runtime37 = require("react/jsx-runtime");
1835
- var Text = Typography;
1836
- Text.displayName = "Text";
1837
- var H1Display = typographyVariant("h1-display", "H1Display");
1838
- var H1 = typographyVariant("h1", "H1");
1839
- var H2 = typographyVariant("h2", "H2");
1840
- var H3 = typographyVariant("h3", "H3");
1841
- var H3Title = typographyVariant("h3-title", "H3Title");
1842
- var Body = typographyVariant("body", "Body");
1843
- var BodyTitle = typographyVariant("body-title", "BodyTitle");
1844
- var BodySmall = typographyVariant("body-small", "BodySmall");
1845
- var BodySmallTitle = typographyVariant("body-small-title", "BodySmallTitle");
1846
- var Technical = typographyVariant("technical", "Technical");
1847
- var TechnicalTitle = typographyVariant("technical-title", "TechnicalTitle");
1848
- var Caption = typographyVariant("caption", "Caption");
1849
- var CaptionTitle = typographyVariant("caption-title", "CaptionTitle");
1850
- var TextH1Display = typographyVariant("h1-display", "TextH1Display");
1851
- var TextH1 = typographyVariant("h1", "TextH1");
1852
- var TextH2 = typographyVariant("h2", "TextH2");
1853
- var TextH3 = typographyVariant("h3", "TextH3");
1854
- var TextH3Title = typographyVariant("h3-title", "TextH3Title");
1855
- var TextBody = typographyVariant("body", "TextBody");
1856
- var TextBodyTitle = typographyVariant("body-title", "TextBodyTitle");
1857
- var TextBodySmall = typographyVariant("body-small", "TextBodySmall");
1858
- var TextBodySmallTitle = typographyVariant("body-small-title", "TextBodySmallTitle");
1859
- var TextTechnical = typographyVariant("technical", "TextTechnical");
1860
- var TextTechnicalTitle = typographyVariant("technical-title", "TextTechnicalTitle");
1861
- var TextCaption = typographyVariant("caption", "TextCaption");
1862
- var TextCaptionTitle = typographyVariant("caption-title", "TextCaptionTitle");
1863
- var TypographyH1Display = typographyVariant("h1-display", "TypographyH1Display");
1864
- var TypographyH1 = typographyVariant("h1", "TypographyH1");
1865
- var TypographyH2 = typographyVariant("h2", "TypographyH2");
1866
- var TypographyH3 = typographyVariant("h3", "TypographyH3");
1867
- var TypographyH3Title = typographyVariant("h3-title", "TypographyH3Title");
1868
- var TypographyBody = typographyVariant("body", "TypographyBody");
1869
- var TypographyBodyTitle = typographyVariant("body-title", "TypographyBodyTitle");
1870
- var TypographyBodySmall = typographyVariant("body-small", "TypographyBodySmall");
1871
- var TypographyBodySmallTitle = typographyVariant(
1872
- "body-small-title",
1873
- "TypographyBodySmallTitle"
1874
- );
1875
- var TypographyTechnical = typographyVariant("technical", "TypographyTechnical");
1876
- var TypographyTechnicalTitle = typographyVariant(
1877
- "technical-title",
1878
- "TypographyTechnicalTitle"
1879
- );
1880
- var TypographyCaption = typographyVariant("caption", "TypographyCaption");
1881
- var TypographyCaptionTitle = typographyVariant("caption-title", "TypographyCaptionTitle");
1882
- function typographyVariant(variant, displayName) {
1883
- function WrappedTypography(props) {
1884
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Typography, __spreadValues({ variant }, props));
1815
+ var TextH1Display = textVariant("h1-display", "TextH1Display");
1816
+ var TextH1 = textVariant("h1", "TextH1");
1817
+ var TextH2 = textVariant("h2", "TextH2");
1818
+ var TextH3 = textVariant("h3", "TextH3");
1819
+ var TextH3Title = textVariant("h3-title", "TextH3Title");
1820
+ var TextBody = textVariant("body", "TextBody");
1821
+ var TextBodyTitle = textVariant("body-title", "TextBodyTitle");
1822
+ var TextBodySmall = textVariant("body-small", "TextBodySmall");
1823
+ var TextBodySmallTitle = textVariant("body-small-title", "TextBodySmallTitle");
1824
+ var TextTechnical = textVariant("technical", "TextTechnical");
1825
+ var TextTechnicalTitle = textVariant("technical-title", "TextTechnicalTitle");
1826
+ var TextCaption = textVariant("caption", "TextCaption");
1827
+ var TextCaptionTitle = textVariant("caption-title", "TextCaptionTitle");
1828
+ var variantToHtmlTag = {
1829
+ "h1-display": "h1",
1830
+ h1: "h1",
1831
+ h2: "h2",
1832
+ h3: "h3",
1833
+ "h3-title": "h3",
1834
+ body: "p",
1835
+ "body-title": "p",
1836
+ "body-small": "p",
1837
+ "body-small-title": "p",
1838
+ technical: "p",
1839
+ "technical-title": "p",
1840
+ caption: "p",
1841
+ "caption-title": "p"
1842
+ };
1843
+ function textVariant(variant, displayName) {
1844
+ function WrappedText(props) {
1845
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Text, __spreadValues({ variant, as: variantToHtmlTag[variant != null ? variant : "body"] }, props));
1885
1846
  }
1886
- WrappedTypography.displayName = displayName;
1887
- return WrappedTypography;
1847
+ WrappedText.displayName = displayName;
1848
+ return WrappedText;
1888
1849
  }
1889
1850
 
1890
1851
  // src/warning-banner/warning-banner.tsx
@@ -1966,14 +1927,8 @@ WarningBannerDescription.displayName = "WarningBannerDescription";
1966
1927
  Accordion,
1967
1928
  AutoAnimateHeight,
1968
1929
  Badge,
1969
- Body,
1970
- BodySmall,
1971
- BodySmallTitle,
1972
- BodyTitle,
1973
1930
  Box,
1974
1931
  Breadcrumbs,
1975
- Caption,
1976
- CaptionTitle,
1977
1932
  Card,
1978
1933
  Checkbox,
1979
1934
  Container,
@@ -1981,11 +1936,6 @@ WarningBannerDescription.displayName = "WarningBannerDescription";
1981
1936
  DescriptionList,
1982
1937
  ErrorMessage,
1983
1938
  Fieldset,
1984
- H1,
1985
- H1Display,
1986
- H2,
1987
- H3,
1988
- H3Title,
1989
1939
  Input,
1990
1940
  Link,
1991
1941
  LinkList,
@@ -2002,8 +1952,6 @@ WarningBannerDescription.displayName = "WarningBannerDescription";
2002
1952
  StepIndicator,
2003
1953
  StyledHtml,
2004
1954
  Tabs,
2005
- Technical,
2006
- TechnicalTitle,
2007
1955
  Text,
2008
1956
  TextBody,
2009
1957
  TextBodySmall,
@@ -2019,20 +1967,6 @@ WarningBannerDescription.displayName = "WarningBannerDescription";
2019
1967
  TextTechnical,
2020
1968
  TextTechnicalTitle,
2021
1969
  Textarea,
2022
- Typography,
2023
- TypographyBody,
2024
- TypographyBodySmall,
2025
- TypographyBodySmallTitle,
2026
- TypographyBodyTitle,
2027
- TypographyCaption,
2028
- TypographyCaptionTitle,
2029
- TypographyH1,
2030
- TypographyH1Display,
2031
- TypographyH2,
2032
- TypographyH3,
2033
- TypographyH3Title,
2034
- TypographyTechnical,
2035
- TypographyTechnicalTitle,
2036
1970
  UnorderedList,
2037
1971
  WarningBadge,
2038
1972
  WarningBanner,