@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
@@ -1,3 +1,6 @@
1
+ import {
2
+ Accordion
3
+ } from "./chunk-2C6OZWFA.mjs";
1
4
  import {
2
5
  AccordionContent
3
6
  } from "./chunk-VUD7AVYO.mjs";
@@ -7,9 +10,6 @@ import {
7
10
  import {
8
11
  AccordionItem
9
12
  } from "./chunk-5WUSLDKN.mjs";
10
- import {
11
- Accordion
12
- } from "./chunk-2C6OZWFA.mjs";
13
13
 
14
14
  // src/accordion/index.tsx
15
15
  var AccordionComponent = Accordion;
@@ -20,4 +20,4 @@ AccordionComponent.Content = AccordionContent;
20
20
  export {
21
21
  AccordionComponent
22
22
  };
23
- //# sourceMappingURL=chunk-FL4LCX4F.mjs.map
23
+ //# sourceMappingURL=chunk-IWV5GK63.mjs.map
@@ -27,9 +27,9 @@ var StyledHtml = forwardRef(
27
27
  );
28
28
  }
29
29
  );
30
- StyledHtml.displayName = "Prose";
30
+ StyledHtml.displayName = "StyledHtml";
31
31
 
32
32
  export {
33
33
  StyledHtml
34
34
  };
35
- //# sourceMappingURL=chunk-UVUIY2WB.mjs.map
35
+ //# sourceMappingURL=chunk-J6ES2LO5.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/styled-html/styled-html.tsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport type { OverridableComponent } from \"../utils\";\n\nexport interface StyledHtmlProps {\n children?: React.ReactNode;\n size?: \"default\" | \"small\";\n darkmode?: boolean;\n}\n\n/**\n * A component for displaying dynamic content that you want to apply hedwig styling to.\n * the styling depends on the semantic html elements you use inside the component.\n *\n * Useful when you have dynamic content that you want styled with hedwig, like content from a CMS.\n *\n * Previously known as `hw-wysiwyg` in hedwig legacy. In tailwind this kind of component it is known as `prose`.\n *\n * ```tsx\n * <StyledHtml>\n * <h1>Heading 1</h1>\n * <h2>Heading 2</h2>\n * <a href=\"https://www.postenbring.no\">Postenbring</a>\n * <ul>\n * <li>Hei</li>\n * <li>Hallo</li>\n * <li>Hello</li>\n * </ul>\n * </StyledHtml>\n * ```\n */\nexport const StyledHtml: OverridableComponent<StyledHtmlProps, HTMLDivElement> = forwardRef(\n ({ as: Component = \"div\", children, size, darkmode = false, className, ...rest }, ref) => {\n return (\n <Component\n className={clsx(\n `hds-styled-html`,\n size === \"small\" && \"hds-styled-html--small\",\n darkmode && \"hds-styled-html--darkmode\",\n className as undefined,\n )}\n ref={ref}\n {...rest}\n >\n {children}\n </Component>\n );\n },\n);\nStyledHtml.displayName = \"Prose\";\n"],"mappings":";;;;;;;AAAA,SAAgB,kBAAkB;AAClC,SAAS,YAAY;AAiCf;AAHC,IAAM,aAAoE;AAAA,EAC/E,CAAC,IAAiF,QAAQ;AAAzF,iBAAE,MAAI,YAAY,OAAO,UAAU,MAAM,WAAW,OAAO,UAhC9D,IAgCG,IAAyE,iBAAzE,IAAyE,CAAvE,MAAuB,YAAU,QAAM,YAAkB;AAC1D,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAW;AAAA,UACT;AAAA,UACA,SAAS,WAAW;AAAA,UACpB,YAAY;AAAA,UACZ;AAAA,QACF;AAAA,QACA;AAAA,SACI,OARL;AAAA,QAUE;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,WAAW,cAAc;","names":[]}
1
+ {"version":3,"sources":["../src/styled-html/styled-html.tsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport type { OverridableComponent } from \"../utils\";\n\nexport interface StyledHtmlProps {\n children?: React.ReactNode;\n size?: \"default\" | \"small\";\n darkmode?: boolean;\n}\n\n/**\n * A component for displaying dynamic content that you want to apply hedwig styling to.\n * the styling depends on the semantic html elements you use inside the component.\n *\n * Useful when you have dynamic content that you want styled with hedwig, like content from a CMS.\n *\n * Previously known as `hw-wysiwyg` in hedwig legacy. In tailwind this kind of component it is known as `prose`.\n *\n * ```tsx\n * <StyledHtml>\n * <h1>Heading 1</h1>\n * <h2>Heading 2</h2>\n * <a href=\"https://www.postenbring.no\">Postenbring</a>\n * <ul>\n * <li>Hei</li>\n * <li>Hallo</li>\n * <li>Hello</li>\n * </ul>\n * </StyledHtml>\n * ```\n */\nexport const StyledHtml: OverridableComponent<StyledHtmlProps, HTMLDivElement> = forwardRef(\n ({ as: Component = \"div\", children, size, darkmode = false, className, ...rest }, ref) => {\n return (\n <Component\n className={clsx(\n `hds-styled-html`,\n size === \"small\" && \"hds-styled-html--small\",\n darkmode && \"hds-styled-html--darkmode\",\n className as undefined,\n )}\n ref={ref}\n {...rest}\n >\n {children}\n </Component>\n );\n },\n);\nStyledHtml.displayName = \"StyledHtml\";\n"],"mappings":";;;;;;;AAAA,SAAgB,kBAAkB;AAClC,SAAS,YAAY;AAiCf;AAHC,IAAM,aAAoE;AAAA,EAC/E,CAAC,IAAiF,QAAQ;AAAzF,iBAAE,MAAI,YAAY,OAAO,UAAU,MAAM,WAAW,OAAO,UAhC9D,IAgCG,IAAyE,iBAAzE,IAAyE,CAAvE,MAAuB,YAAU,QAAM,YAAkB;AAC1D,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAW;AAAA,UACT;AAAA,UACA,SAAS,WAAW;AAAA,UACpB,YAAY;AAAA,UACZ;AAAA,QACF;AAAA,QACA;AAAA,SACI,OARL;AAAA,QAUE;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,WAAW,cAAc;","names":[]}
@@ -4,7 +4,7 @@ import {
4
4
  __spreadValues
5
5
  } from "./chunk-R4SQKVDQ.mjs";
6
6
 
7
- // src/typography/typography.tsx
7
+ // src/text/text.tsx
8
8
  import { forwardRef } from "react";
9
9
  import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
10
10
  import { jsx } from "react/jsx-runtime";
@@ -23,7 +23,7 @@ var defaultHTMLTag = {
23
23
  caption: "p",
24
24
  "caption-title": "p"
25
25
  };
26
- var Typography = forwardRef(
26
+ var Text = forwardRef(
27
27
  (_a, ref) => {
28
28
  var _b = _a, {
29
29
  as,
@@ -46,9 +46,9 @@ var Typography = forwardRef(
46
46
  Component,
47
47
  __spreadProps(__spreadValues({
48
48
  className: clsx(
49
- `hds-typography-${variant}`,
50
- sizeModifier && `hds-typography--${sizeModifier}`,
51
- spacing && "hds-typography--spacing",
49
+ `hds-text-${variant}`,
50
+ sizeModifier && `hds-text--${sizeModifier}`,
51
+ spacing && "hds-text--spacing",
52
52
  className
53
53
  ),
54
54
  ref
@@ -58,9 +58,9 @@ var Typography = forwardRef(
58
58
  );
59
59
  }
60
60
  );
61
- Typography.displayName = "Typography";
61
+ Text.displayName = "Text";
62
62
 
63
63
  export {
64
- Typography
64
+ Text
65
65
  };
66
- //# sourceMappingURL=chunk-5GRZROYQ.mjs.map
66
+ //# sourceMappingURL=chunk-LYRXA4WS.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/text/text.tsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport type { OverridableComponent } from \"../utils\";\n\ninterface HeadingProps {\n variant: \"h1-display\" | \"h1\" | \"h2\" | \"h3\" | \"h3-title\";\n as: React.ElementType;\n}\ninterface ParagraphProps {\n variant?:\n | \"body\"\n | \"body-title\"\n | \"body-small\"\n | \"body-small-title\"\n | \"technical\"\n | \"technical-title\"\n | \"caption\"\n | \"caption-title\";\n}\n\nexport type TextProps = (HeadingProps | ParagraphProps) & {\n children: React.ReactNode;\n\n /**\n * The font-size of the component. By default it's `fluid` which means it's smaller on mobile and larger on desktop.\n *\n * But you can lock it to either the min or the max size.\n */\n size?: \"min\" | \"max\" | \"fluid\";\n\n /**\n * 🚧 Experimental spacing\n */\n _unstableSpacing?: boolean;\n};\n\nconst defaultHTMLTag: Record<NonNullable<TextProps[\"variant\"]>, `h${1 | 2 | 3}` | \"p\"> = {\n \"h1-display\": \"h1\",\n h1: \"h1\",\n h2: \"h2\",\n h3: \"h3\",\n \"h3-title\": \"h3\",\n body: \"p\",\n \"body-title\": \"p\",\n \"body-small\": \"p\",\n \"body-small-title\": \"p\",\n technical: \"p\",\n \"technical-title\": \"p\",\n caption: \"p\",\n \"caption-title\": \"p\",\n};\n\n/**\n * Text component\n *\n * If the variant is `h1-display`, `h1`, `h2`, `h3`, or `h3-title` the `as` prop is required.\n *\n * This to force the consumer to consider which semantic html element to use. E.g. `<h1>` or `<h2>`\n *\n * @example\n * ```tsx\n * <Text variant=\"h1-display\" as=\"h1\">Hello world</Text>\n * <Text variant=\"body\">\n * This is a body text\n * </Text>\n * ```\n */\nexport const Text: OverridableComponent<TextProps, HTMLDivElement> = forwardRef(\n (\n {\n as,\n variant = \"body\",\n size = \"fluid\",\n _unstableSpacing: spacing,\n children,\n className,\n ...rest\n },\n ref,\n ) => {\n const Component = as ?? defaultHTMLTag[variant];\n const sizeModifier =\n size !== \"fluid\" && variant !== \"caption\" && variant !== \"caption-title\" && size;\n return (\n <Component\n className={clsx(\n `hds-text-${variant}`,\n sizeModifier && `hds-text--${sizeModifier}`,\n spacing && \"hds-text--spacing\",\n className as undefined,\n )}\n ref={ref}\n {...rest}\n >\n {children}\n </Component>\n );\n },\n);\nText.displayName = \"Text\";\n"],"mappings":";;;;;;;AAAA,SAAgB,kBAAkB;AAClC,SAAS,YAAY;AAmFf;AAhDN,IAAM,iBAAmF;AAAA,EACvF,cAAc;AAAA,EACd,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,cAAc;AAAA,EACd,cAAc;AAAA,EACd,oBAAoB;AAAA,EACpB,WAAW;AAAA,EACX,mBAAmB;AAAA,EACnB,SAAS;AAAA,EACT,iBAAiB;AACnB;AAiBO,IAAM,OAAwD;AAAA,EACnE,CACE,IASA,QACG;AAVH,iBACE;AAAA;AAAA,MACA,UAAU;AAAA,MACV,OAAO;AAAA,MACP,kBAAkB;AAAA,MAClB;AAAA,MACA;AAAA,IA3EN,IAqEI,IAOK,iBAPL,IAOK;AAAA,MANH;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAKF,UAAM,YAAY,kBAAM,eAAe,OAAO;AAC9C,UAAM,eACJ,SAAS,WAAW,YAAY,aAAa,YAAY,mBAAmB;AAC9E,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAW;AAAA,UACT,YAAY,OAAO;AAAA,UACnB,gBAAgB,aAAa,YAAY;AAAA,UACzC,WAAW;AAAA,UACX;AAAA,QACF;AAAA,QACA;AAAA,SACI,OARL;AAAA,QAUE;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,KAAK,cAAc;","names":[]}
@@ -41,7 +41,7 @@ var BaseButton = forwardRef(
41
41
  {
42
42
  [`hds-button--${variant}`]: fill === "contained",
43
43
  [`hds-button--outline-${variant}`]: fill === "outline" || fill === "outlined",
44
- "hds-button--full": fullWidth,
44
+ "hds-button--full": fullWidth === true,
45
45
  "hds-button--mobile-full": fullWidth === "mobile",
46
46
  "hds-button--icon-only": icon && !children
47
47
  },
@@ -76,4 +76,4 @@ export {
76
76
  PrimaryButton,
77
77
  SecondaryButton
78
78
  };
79
- //# sourceMappingURL=chunk-KOO4VQ2N.mjs.map
79
+ //# sourceMappingURL=chunk-OJ42PRYY.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/button/button.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport type { OverridableComponent } from \"../utils\";\n\ninterface ButtonPropsInternal extends React.ButtonHTMLAttributes<HTMLButtonElement> {\n /**\n * The height, font size and padding of the button\n */\n size?: \"small\" | \"medium\" | \"large\";\n\n /**\n * Make the button use 100% width available.\n * Using the \"mobile\" it only stretch to full width on smaller screens\n */\n fullWidth?: boolean | \"mobile\";\n\n /**\n * Use an icon inside the button\n */\n icon?: React.ReactNode;\n\n children?: React.ReactNode;\n}\n\nexport type ButtonProps = ButtonPropsInternal &\n (\n | {\n /**\n * The background fill of the button\n */\n fill?: \"contained\" | \"outline\";\n }\n | {\n /**\n * @deprecated use `fill='outline'` instead\n */\n fill?: \"outlined\";\n }\n );\n\nexport const BaseButton: OverridableComponent<\n ButtonProps & { variant: \"primary\" | \"secondary\" },\n HTMLButtonElement\n> = forwardRef(\n (\n {\n as: Component = \"button\",\n children,\n variant,\n size = \"medium\",\n fullWidth = false,\n fill = \"contained\",\n icon,\n className,\n ...rest\n },\n ref,\n ) => {\n // TODO: Remove deprecated fill value name at some point\n // Deprecated at 10. march 2024\n if (fill === \"outlined\") {\n // eslint-disable-next-line no-console -- Deprecation warning\n console.warn(\"The `fill` value `outlined` is deprecated, use `fill='outline'` instead\");\n }\n return (\n <Component\n className={clsx(\n \"hds-button\",\n `hds-button--${size}`,\n {\n [`hds-button--${variant}`]: fill === \"contained\",\n [`hds-button--outline-${variant}`]: fill === \"outline\" || fill === \"outlined\",\n \"hds-button--full\": fullWidth === true,\n \"hds-button--mobile-full\": fullWidth === \"mobile\",\n \"hds-button--icon-only\": icon && !children,\n },\n className as undefined,\n )}\n ref={ref}\n {...rest}\n >\n {icon && !children ? icon : null}\n {children}\n </Component>\n );\n },\n);\nBaseButton.displayName = \"BaseButton\";\n\n/**\n * ## TODO\n *\n * - [x] Handle links that looks like buttons\n * - [ ] Revisit how to handle outline\n * - [ ] Figure out outline-white\n */\n\nexport const PrimaryButton: OverridableComponent<ButtonProps, HTMLButtonElement> = forwardRef(\n (props, ref) => {\n return <BaseButton {...props} ref={ref} variant=\"primary\" />;\n },\n);\n\nPrimaryButton.displayName = \"PrimaryButton\";\n\nexport const SecondaryButton: OverridableComponent<ButtonProps, HTMLButtonElement> = forwardRef(\n (props, ref) => {\n return <BaseButton {...props} ref={ref} variant=\"secondary\" />;\n },\n);\n\nSecondaryButton.displayName = \"SecondaryButton\";\n"],"mappings":";;;;;;;AAAA,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AAgEf,SAkCK,KAlCL;AAzBC,IAAM,aAGT;AAAA,EACF,CACE,IAWA,QACG;AAZH,iBACE;AAAA,UAAI,YAAY;AAAA,MAChB;AAAA,MACA;AAAA,MACA,OAAO;AAAA,MACP,YAAY;AAAA,MACZ,OAAO;AAAA,MACP;AAAA,MACA;AAAA,IArDN,IA6CI,IASK,iBATL,IASK;AAAA,MARH;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA;AAOF,QAAI,SAAS,YAAY;AAEvB,cAAQ,KAAK,yEAAyE;AAAA,IACxF;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAW;AAAA,UACT;AAAA,UACA,eAAe,IAAI;AAAA,UACnB;AAAA,YACE,CAAC,eAAe,OAAO,EAAE,GAAG,SAAS;AAAA,YACrC,CAAC,uBAAuB,OAAO,EAAE,GAAG,SAAS,aAAa,SAAS;AAAA,YACnE,oBAAoB,cAAc;AAAA,YAClC,2BAA2B,cAAc;AAAA,YACzC,yBAAyB,QAAQ,CAAC;AAAA,UACpC;AAAA,UACA;AAAA,QACF;AAAA,QACA;AAAA,SACI,OAdL;AAAA,QAgBE;AAAA,kBAAQ,CAAC,WAAW,OAAO;AAAA,UAC3B;AAAA;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,WAAW,cAAc;AAUlB,IAAM,gBAAsE;AAAA,EACjF,CAAC,OAAO,QAAQ;AACd,WAAO,oBAAC,6CAAe,QAAf,EAAsB,KAAU,SAAQ,YAAU;AAAA,EAC5D;AACF;AAEA,cAAc,cAAc;AAErB,IAAM,kBAAwE;AAAA,EACnF,CAAC,OAAO,QAAQ;AACd,WAAO,oBAAC,6CAAe,QAAf,EAAsB,KAAU,SAAQ,cAAY;AAAA,EAC9D;AACF;AAEA,gBAAgB,cAAc;","names":[]}
@@ -2,7 +2,7 @@ import {
2
2
  NavbarExpandableMenu,
3
3
  NavbarExpandableMenuContent,
4
4
  NavbarExpandableMenuTrigger
5
- } from "./chunk-LK62DXGG.mjs";
5
+ } from "./chunk-ZSLWZUBI.mjs";
6
6
  import {
7
7
  Navbar,
8
8
  NavbarButton,
@@ -23,4 +23,4 @@ NavbarComponent.Navigation = NavbarNavigation;
23
23
  export {
24
24
  NavbarComponent
25
25
  };
26
- //# sourceMappingURL=chunk-T3EC54VN.mjs.map
26
+ //# sourceMappingURL=chunk-PUFFEK6I.mjs.map
@@ -0,0 +1,61 @@
1
+ import {
2
+ Text
3
+ } from "./chunk-LYRXA4WS.mjs";
4
+ import {
5
+ __spreadValues
6
+ } from "./chunk-R4SQKVDQ.mjs";
7
+
8
+ // src/text/index.tsx
9
+ import { jsx } from "react/jsx-runtime";
10
+ var TextH1Display = textVariant("h1-display", "TextH1Display");
11
+ var TextH1 = textVariant("h1", "TextH1");
12
+ var TextH2 = textVariant("h2", "TextH2");
13
+ var TextH3 = textVariant("h3", "TextH3");
14
+ var TextH3Title = textVariant("h3-title", "TextH3Title");
15
+ var TextBody = textVariant("body", "TextBody");
16
+ var TextBodyTitle = textVariant("body-title", "TextBodyTitle");
17
+ var TextBodySmall = textVariant("body-small", "TextBodySmall");
18
+ var TextBodySmallTitle = textVariant("body-small-title", "TextBodySmallTitle");
19
+ var TextTechnical = textVariant("technical", "TextTechnical");
20
+ var TextTechnicalTitle = textVariant("technical-title", "TextTechnicalTitle");
21
+ var TextCaption = textVariant("caption", "TextCaption");
22
+ var TextCaptionTitle = textVariant("caption-title", "TextCaptionTitle");
23
+ var variantToHtmlTag = {
24
+ "h1-display": "h1",
25
+ h1: "h1",
26
+ h2: "h2",
27
+ h3: "h3",
28
+ "h3-title": "h3",
29
+ body: "p",
30
+ "body-title": "p",
31
+ "body-small": "p",
32
+ "body-small-title": "p",
33
+ technical: "p",
34
+ "technical-title": "p",
35
+ caption: "p",
36
+ "caption-title": "p"
37
+ };
38
+ function textVariant(variant, displayName) {
39
+ function WrappedText(props) {
40
+ return /* @__PURE__ */ jsx(Text, __spreadValues({ variant, as: variantToHtmlTag[variant != null ? variant : "body"] }, props));
41
+ }
42
+ WrappedText.displayName = displayName;
43
+ return WrappedText;
44
+ }
45
+
46
+ export {
47
+ TextH1Display,
48
+ TextH1,
49
+ TextH2,
50
+ TextH3,
51
+ TextH3Title,
52
+ TextBody,
53
+ TextBodyTitle,
54
+ TextBodySmall,
55
+ TextBodySmallTitle,
56
+ TextTechnical,
57
+ TextTechnicalTitle,
58
+ TextCaption,
59
+ TextCaptionTitle
60
+ };
61
+ //# sourceMappingURL=chunk-V4NGQVBQ.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/text/index.tsx"],"sourcesContent":["import type { TextProps } from \"./text\";\nimport { Text } from \"./text\";\n\nexport { Text };\nexport type * from \"./text\";\n\n/**\n * # 🚨 Unstable alternative\n *\n * named as the different typography levels with Text prefix\n *\n * ## Alias to @see Text\n */\nexport const TextH1Display = textVariant(\"h1-display\", \"TextH1Display\");\n/**\n * # 🚨 Unstable alternative\n *\n * named as the different typography levels with Text prefix\n *\n * ## Alias to @see Text\n */\nexport const TextH1 = textVariant(\"h1\", \"TextH1\");\n/**\n * # 🚨 Unstable alternative\n *\n * named as the different typography levels with Text prefix\n *\n * ## Alias to @see Text\n */\nexport const TextH2 = textVariant(\"h2\", \"TextH2\");\n/**\n * # 🚨 Unstable alternative\n *\n * named as the different typography levels with Text prefix\n *\n * ## Alias to @see Text\n */\nexport const TextH3 = textVariant(\"h3\", \"TextH3\");\n/**\n * # 🚨 Unstable alternative\n *\n * named as the different typography levels with Text prefix\n *\n * ## Alias to @see Text\n */\nexport const TextH3Title = textVariant(\"h3-title\", \"TextH3Title\");\n/**\n * # 🚨 Unstable alternative\n *\n * named as the different typography levels with Text prefix\n *\n * ## Alias to @see Text\n */\nexport const TextBody = textVariant(\"body\", \"TextBody\"); // Less weird\n/**\n * # 🚨 Unstable alternative\n *\n * named as the different typography levels with Text prefix\n *\n * ## Alias to @see Text\n */\nexport const TextBodyTitle = textVariant(\"body-title\", \"TextBodyTitle\");\n/**\n * # 🚨 Unstable alternative\n *\n * named as the different typography levels with Text prefix\n *\n * ## Alias to @see Text\n */\nexport const TextBodySmall = textVariant(\"body-small\", \"TextBodySmall\");\n/**\n * # 🚨 Unstable alternative\n *\n * named as the different typography levels with Text prefix\n *\n * ## Alias to @see Text\n */\nexport const TextBodySmallTitle = textVariant(\"body-small-title\", \"TextBodySmallTitle\");\n/**\n * 🚨 Unstable alterentative: Named as the different typography levels with Text prefix\n *\n * ## Alias to @see Text\n */\nexport const TextTechnical = textVariant(\"technical\", \"TextTechnical\");\n/**\n * 🚨 Unstable alterentative: Named as the different typography levels with Text prefix\n *\n * ## Alias to @see Text\n */\nexport const TextTechnicalTitle = textVariant(\"technical-title\", \"TextTechnicalTitle\");\n/**\n * 🚨 Unstable alterentative: Named as the different typography levels with Text prefix\n *\n * ## Alias to @see Text\n */\nexport const TextCaption = textVariant(\"caption\", \"TextCaption\");\n/**\n * 🚨 Unstable alterentative: Named as the different typography levels with Text prefix\n *\n * ## Alias to @see Text\n */\nexport const TextCaptionTitle = textVariant(\"caption-title\", \"TextCaptionTitle\");\n\nconst variantToHtmlTag = {\n \"h1-display\": \"h1\",\n h1: \"h1\",\n h2: \"h2\",\n h3: \"h3\",\n \"h3-title\": \"h3\",\n body: \"p\",\n \"body-title\": \"p\",\n \"body-small\": \"p\",\n \"body-small-title\": \"p\",\n technical: \"p\",\n \"technical-title\": \"p\",\n caption: \"p\",\n \"caption-title\": \"p\",\n} as const;\n\nfunction textVariant(\n variant: TextProps[\"variant\"],\n displayName: string,\n): React.FunctionComponent<Omit<TextProps, \"variant\">> {\n function WrappedText(props: Omit<TextProps, \"variant\">) {\n return <Text variant={variant} as={variantToHtmlTag[variant ?? \"body\"]} {...props} />;\n }\n WrappedText.displayName = displayName;\n\n return WrappedText;\n}\n"],"mappings":";;;;;;;;AA4HW;AA/GJ,IAAM,gBAAgB,YAAY,cAAc,eAAe;AAQ/D,IAAM,SAAS,YAAY,MAAM,QAAQ;AAQzC,IAAM,SAAS,YAAY,MAAM,QAAQ;AAQzC,IAAM,SAAS,YAAY,MAAM,QAAQ;AAQzC,IAAM,cAAc,YAAY,YAAY,aAAa;AAQzD,IAAM,WAAW,YAAY,QAAQ,UAAU;AAQ/C,IAAM,gBAAgB,YAAY,cAAc,eAAe;AAQ/D,IAAM,gBAAgB,YAAY,cAAc,eAAe;AAQ/D,IAAM,qBAAqB,YAAY,oBAAoB,oBAAoB;AAM/E,IAAM,gBAAgB,YAAY,aAAa,eAAe;AAM9D,IAAM,qBAAqB,YAAY,mBAAmB,oBAAoB;AAM9E,IAAM,cAAc,YAAY,WAAW,aAAa;AAMxD,IAAM,mBAAmB,YAAY,iBAAiB,kBAAkB;AAE/E,IAAM,mBAAmB;AAAA,EACvB,cAAc;AAAA,EACd,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,cAAc;AAAA,EACd,cAAc;AAAA,EACd,oBAAoB;AAAA,EACpB,WAAW;AAAA,EACX,mBAAmB;AAAA,EACnB,SAAS;AAAA,EACT,iBAAiB;AACnB;AAEA,SAAS,YACP,SACA,aACqD;AACrD,WAAS,YAAY,OAAmC;AACtD,WAAO,oBAAC,uBAAK,SAAkB,IAAI,iBAAiB,4BAAW,MAAM,KAAO,MAAO;AAAA,EACrF;AACA,cAAY,cAAc;AAE1B,SAAO;AACT;","names":[]}
@@ -21,7 +21,14 @@ var navbarContext = createContext([
21
21
  function NavbarExpandableMenu({ children }) {
22
22
  const [open, setOpen] = useState(false);
23
23
  const toggleOpen = () => {
24
- setOpen((currentOpen) => !currentOpen);
24
+ const nextOpenState = !open;
25
+ setOpen(nextOpenState);
26
+ if (nextOpenState) {
27
+ window.scrollTo(0, 0);
28
+ document.body.classList.add(clsx("hds-navbar-scroll-lock"));
29
+ } else {
30
+ document.body.classList.remove(clsx("hds-navbar-scroll-lock"));
31
+ }
25
32
  };
26
33
  return /* @__PURE__ */ jsx(navbarContext.Provider, { value: [open, toggleOpen], children });
27
34
  }
@@ -155,7 +162,7 @@ var NavbarExpandableMenuContent = forwardRef((_a, ref) => {
155
162
  className: clsx("hds-navbar__expandable-menu-content", className),
156
163
  "data-state": open ? "open" : "closed",
157
164
  ref,
158
- children
165
+ children: /* @__PURE__ */ jsx("div", { className: clsx("hds-navbar__expandable-menu-content-inner"), children })
159
166
  })
160
167
  );
161
168
  });
@@ -166,4 +173,4 @@ export {
166
173
  NavbarExpandableMenuTrigger,
167
174
  NavbarExpandableMenuContent
168
175
  };
169
- //# sourceMappingURL=chunk-LK62DXGG.mjs.map
176
+ //# sourceMappingURL=chunk-ZSLWZUBI.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/navbar/navbar-expandable-menu.tsx"],"sourcesContent":["import React, { createContext, useContext, forwardRef, useState, useRef, useEffect } from \"react\";\nimport { createRoot } from \"react-dom/client\";\nimport type { ClassValue } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport type { OverridableComponent } from \"../utils\";\nimport { CloseIcon, MenuIcon } from \"./icons\";\n\nconst navbarContext = createContext([\n false as boolean,\n () => {\n // Empty\n },\n] as const);\n\n/**\n * Root\n */\nexport interface NavbarExpandableMenuProps {\n children: React.ReactNode;\n}\nexport function NavbarExpandableMenu({ children }: NavbarExpandableMenuProps) {\n const [open, setOpen] = useState(false);\n const toggleOpen = () => {\n const nextOpenState = !open;\n setOpen(nextOpenState);\n if (nextOpenState) {\n window.scrollTo(0, 0);\n //hideAllOtherElements();\n document.body.classList.add(clsx(\"hds-navbar-scroll-lock\"));\n } else {\n document.body.classList.remove(clsx(\"hds-navbar-scroll-lock\"));\n }\n };\n return <navbarContext.Provider value={[open, toggleOpen]}>{children}</navbarContext.Provider>;\n}\nNavbarExpandableMenu.displayName = \"NavbarExpandableMenu\";\n/*\nfunction hideAllOtherElements() {\n //const elements = document.querySelectorAll(\"body > *\");\n const navbarElement = document.getElementsByClassName(clsx(\"hds-navbar\"))[0];\n const siblings = getAllSiblings(navbarElement);\n console.log(siblings);\n}\n\nfunction getAllSiblings(elem: Element) {\n const sibs = [];\n let element = elem.parentNode?.firstChild;\n do {\n console.log(element);\n if (element === elem) continue;\n sibs.push(element);\n } while ((element = element?.nextSibling));\n return sibs;\n}\n*/\ninterface ButtonInterface {\n className?: ClassValue;\n open?: boolean;\n innerRef?: React.RefObject<HTMLButtonElement>;\n ref?: React.ForwardedRef<HTMLButtonElement>;\n text: React.ReactNode;\n title?: string;\n toggleOpen?: () => void;\n width?: number;\n}\n\nfunction RenderButton({\n className,\n innerRef,\n open = false,\n ref,\n text,\n title,\n toggleOpen,\n width,\n ...rest\n}: ButtonInterface) {\n const icon = open ? <CloseIcon /> : <MenuIcon />;\n const style = width ? { width } : {};\n return (\n <button\n className={clsx(\"hds-navbar__button\", className)}\n onClick={toggleOpen}\n ref={ref ?? innerRef}\n style={style}\n title={title}\n type=\"button\"\n {...rest}\n >\n {text} {icon}\n </button>\n );\n}\n\n/**\n * Trigger\n *\n * ## TODO\n * - [ ] Hide text when on mobile\n * - [X] Open / Close icon\n * - [X] Make button have consistant width\n */\n\nexport interface NavbarExpandableMenuTriggerProps\n extends Omit<React.HTMLAttributes<HTMLButtonElement>, \"children\"> {\n whenClosedText: React.ReactNode;\n whenClosedHelperTitle?: string;\n\n whenOpenText: React.ReactNode;\n whenOpenHelperTitle?: string;\n}\nexport const NavbarExpandableMenuTrigger = forwardRef<\n HTMLButtonElement,\n NavbarExpandableMenuTriggerProps\n>(\n (\n {\n whenClosedText,\n whenClosedHelperTitle,\n\n whenOpenText,\n whenOpenHelperTitle,\n\n className,\n ...rest\n },\n ref,\n ) => {\n const [open, toggleOpen] = useContext(navbarContext);\n const [width, setWidth] = useState(0);\n const measureButtonRef = useRef<HTMLButtonElement>(null);\n\n const text: React.ReactNode = open ? whenOpenText : whenClosedText;\n const title = open ? whenOpenHelperTitle : whenClosedHelperTitle;\n\n /**\n *\n * @param element - Button to measure\n * @param callback - report the width back\n */\n const measureButton = (element: React.ReactNode, callback: (width: number) => void) => {\n // Create an empty div to render the Button in\n const container = document.createElement(\"div\");\n container.style.cssText = \"display: inline-block; position: absolute; visibility: hidden\";\n\n // Attach the empty div inside the navigation section\n const c = document.getElementsByClassName(\"hds-navbar__navigation\")[0];\n c.appendChild(container);\n\n // Render the Button here\n const root = createRoot(container as HTMLElement);\n root.render(element);\n\n /**\n * Get the offsetWidth now that it is rendered\n * Also clean up after us\n */\n const getWidth = () => {\n callback(measureButtonRef.current?.offsetWidth ?? 0);\n root.unmount();\n c.removeChild(container);\n };\n // This is instead of the callback that used to be on ReactDOM.render()\n setTimeout(getWidth, 0);\n };\n\n useEffect(() => {\n measureButton(\n <RenderButton\n className={(className ? className : \"\") as ClassValue}\n innerRef={measureButtonRef}\n text={whenClosedText}\n title={title}\n {...rest}\n />,\n (closedWidth: number) => {\n measureButton(\n <RenderButton\n className={(className ? className : \"\") as ClassValue}\n innerRef={measureButtonRef}\n open\n text={whenOpenText}\n title={title}\n {...rest}\n />,\n (openWidth: number) => {\n setWidth(Math.max(openWidth, closedWidth));\n },\n );\n },\n );\n }, [className, rest, title, whenClosedText, whenOpenText]);\n\n return (\n <RenderButton\n className={(className ? className : \"\") as ClassValue}\n open={open}\n ref={ref}\n text={text as string}\n title={title}\n toggleOpen={toggleOpen}\n width={width}\n {...rest}\n />\n );\n },\n);\nNavbarExpandableMenuTrigger.displayName = \"Navbar.ExpandableMenu.Trigger\";\n\n/**\n * Content\n */\nexport interface NavbarExpandableMenuContentProps {\n children: React.ReactNode;\n className?: string;\n}\nexport const NavbarExpandableMenuContent: OverridableComponent<\n NavbarExpandableMenuContentProps,\n HTMLDivElement\n> = forwardRef(({ as: Component = \"section\", children, className, ...rest }, ref) => {\n const [open] = useContext(navbarContext);\n return (\n <Component\n {...rest}\n className={clsx(\"hds-navbar__expandable-menu-content\", className as undefined)}\n data-state={open ? \"open\" : \"closed\"}\n ref={ref}\n >\n <div className={clsx(\"hds-navbar__expandable-menu-content-inner\")}>{children}</div>\n </Component>\n );\n});\nNavbarExpandableMenuContent.displayName = \"Navbar.ExpandableMenu.Content\";\n"],"mappings":"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","names":["_a","_b"]}
@@ -90,21 +90,7 @@ export { TabsContents } from './_tsup-dts-rollup';
90
90
  export { TabContentsProps } from './_tsup-dts-rollup';
91
91
  export { TabsContentProps } from './_tsup-dts-rollup';
92
92
  export { TabsContent } from './_tsup-dts-rollup';
93
- export { Typography } from './_tsup-dts-rollup';
94
93
  export { Text } from './_tsup-dts-rollup';
95
- export { H1Display } from './_tsup-dts-rollup';
96
- export { H1 } from './_tsup-dts-rollup';
97
- export { H2 } from './_tsup-dts-rollup';
98
- export { H3 } from './_tsup-dts-rollup';
99
- export { H3Title } from './_tsup-dts-rollup';
100
- export { Body } from './_tsup-dts-rollup';
101
- export { BodyTitle } from './_tsup-dts-rollup';
102
- export { BodySmall } from './_tsup-dts-rollup';
103
- export { BodySmallTitle } from './_tsup-dts-rollup';
104
- export { Technical } from './_tsup-dts-rollup';
105
- export { TechnicalTitle } from './_tsup-dts-rollup';
106
- export { Caption } from './_tsup-dts-rollup';
107
- export { CaptionTitle } from './_tsup-dts-rollup';
108
94
  export { TextH1Display } from './_tsup-dts-rollup';
109
95
  export { TextH1 } from './_tsup-dts-rollup';
110
96
  export { TextH2 } from './_tsup-dts-rollup';
@@ -118,19 +104,6 @@ export { TextTechnical } from './_tsup-dts-rollup';
118
104
  export { TextTechnicalTitle } from './_tsup-dts-rollup';
119
105
  export { TextCaption } from './_tsup-dts-rollup';
120
106
  export { TextCaptionTitle } from './_tsup-dts-rollup';
121
- export { TypographyH1Display } from './_tsup-dts-rollup';
122
- export { TypographyH1 } from './_tsup-dts-rollup';
123
- export { TypographyH2 } from './_tsup-dts-rollup';
124
- export { TypographyH3 } from './_tsup-dts-rollup';
125
- export { TypographyH3Title } from './_tsup-dts-rollup';
126
- export { TypographyBody } from './_tsup-dts-rollup';
127
- export { TypographyBodyTitle } from './_tsup-dts-rollup';
128
- export { TypographyBodySmall } from './_tsup-dts-rollup';
129
- export { TypographyBodySmallTitle } from './_tsup-dts-rollup';
130
- export { TypographyTechnical } from './_tsup-dts-rollup';
131
- export { TypographyTechnicalTitle } from './_tsup-dts-rollup';
132
- export { TypographyCaption } from './_tsup-dts-rollup';
133
- export { TypographyCaptionTitle } from './_tsup-dts-rollup';
134
- export { TypographyProps } from './_tsup-dts-rollup';
107
+ export { TextProps } from './_tsup-dts-rollup';
135
108
  export { WarningBanner } from './_tsup-dts-rollup';
136
109
  export { WarningBannerProps } from './_tsup-dts-rollup';
@@ -90,21 +90,7 @@ export { TabsContents } from './_tsup-dts-rollup';
90
90
  export { TabContentsProps } from './_tsup-dts-rollup';
91
91
  export { TabsContentProps } from './_tsup-dts-rollup';
92
92
  export { TabsContent } from './_tsup-dts-rollup';
93
- export { Typography } from './_tsup-dts-rollup';
94
93
  export { Text } from './_tsup-dts-rollup';
95
- export { H1Display } from './_tsup-dts-rollup';
96
- export { H1 } from './_tsup-dts-rollup';
97
- export { H2 } from './_tsup-dts-rollup';
98
- export { H3 } from './_tsup-dts-rollup';
99
- export { H3Title } from './_tsup-dts-rollup';
100
- export { Body } from './_tsup-dts-rollup';
101
- export { BodyTitle } from './_tsup-dts-rollup';
102
- export { BodySmall } from './_tsup-dts-rollup';
103
- export { BodySmallTitle } from './_tsup-dts-rollup';
104
- export { Technical } from './_tsup-dts-rollup';
105
- export { TechnicalTitle } from './_tsup-dts-rollup';
106
- export { Caption } from './_tsup-dts-rollup';
107
- export { CaptionTitle } from './_tsup-dts-rollup';
108
94
  export { TextH1Display } from './_tsup-dts-rollup';
109
95
  export { TextH1 } from './_tsup-dts-rollup';
110
96
  export { TextH2 } from './_tsup-dts-rollup';
@@ -118,19 +104,6 @@ export { TextTechnical } from './_tsup-dts-rollup';
118
104
  export { TextTechnicalTitle } from './_tsup-dts-rollup';
119
105
  export { TextCaption } from './_tsup-dts-rollup';
120
106
  export { TextCaptionTitle } from './_tsup-dts-rollup';
121
- export { TypographyH1Display } from './_tsup-dts-rollup';
122
- export { TypographyH1 } from './_tsup-dts-rollup';
123
- export { TypographyH2 } from './_tsup-dts-rollup';
124
- export { TypographyH3 } from './_tsup-dts-rollup';
125
- export { TypographyH3Title } from './_tsup-dts-rollup';
126
- export { TypographyBody } from './_tsup-dts-rollup';
127
- export { TypographyBodyTitle } from './_tsup-dts-rollup';
128
- export { TypographyBodySmall } from './_tsup-dts-rollup';
129
- export { TypographyBodySmallTitle } from './_tsup-dts-rollup';
130
- export { TypographyTechnical } from './_tsup-dts-rollup';
131
- export { TypographyTechnicalTitle } from './_tsup-dts-rollup';
132
- export { TypographyCaption } from './_tsup-dts-rollup';
133
- export { TypographyCaptionTitle } from './_tsup-dts-rollup';
134
- export { TypographyProps } from './_tsup-dts-rollup';
107
+ export { TextProps } from './_tsup-dts-rollup';
135
108
  export { WarningBanner } from './_tsup-dts-rollup';
136
109
  export { WarningBannerProps } from './_tsup-dts-rollup';