@postenbring/hedwig-react 0.0.54 → 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 (98) 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-52ULSP6E.mjs → chunk-GAKMKOPK.mjs} +3 -16
  14. package/dist/chunk-GAKMKOPK.mjs.map +1 -0
  15. package/dist/{chunk-5T3VUFL4.mjs → chunk-GVSLN5KE.mjs} +1 -1
  16. package/dist/chunk-GVSLN5KE.mjs.map +1 -0
  17. package/dist/{chunk-FL4LCX4F.mjs → chunk-IWV5GK63.mjs} +4 -4
  18. package/dist/{chunk-UVUIY2WB.mjs → chunk-J6ES2LO5.mjs} +2 -2
  19. package/dist/{chunk-UVUIY2WB.mjs.map → chunk-J6ES2LO5.mjs.map} +1 -1
  20. package/dist/{chunk-5GRZROYQ.mjs → chunk-LYRXA4WS.mjs} +8 -8
  21. package/dist/chunk-LYRXA4WS.mjs.map +1 -0
  22. package/dist/{chunk-KOO4VQ2N.mjs → chunk-OJ42PRYY.mjs} +2 -2
  23. package/dist/chunk-OJ42PRYY.mjs.map +1 -0
  24. package/dist/{chunk-T3EC54VN.mjs → chunk-PUFFEK6I.mjs} +2 -2
  25. package/dist/chunk-V4NGQVBQ.mjs +61 -0
  26. package/dist/chunk-V4NGQVBQ.mjs.map +1 -0
  27. package/dist/{chunk-LK62DXGG.mjs → chunk-ZSLWZUBI.mjs} +10 -3
  28. package/dist/chunk-ZSLWZUBI.mjs.map +1 -0
  29. package/dist/index-no-css.d.mts +1 -28
  30. package/dist/index-no-css.d.ts +1 -28
  31. package/dist/index-no-css.js +53 -132
  32. package/dist/index-no-css.js.map +1 -1
  33. package/dist/index-no-css.mjs +23 -77
  34. package/dist/index.d.mts +1 -28
  35. package/dist/index.d.ts +1 -28
  36. package/dist/index.js +54 -133
  37. package/dist/index.js.map +1 -1
  38. package/dist/index.mjs +24 -78
  39. package/dist/index.mjs.map +1 -1
  40. package/dist/modal/index.js.map +1 -1
  41. package/dist/modal/index.mjs +2 -2
  42. package/dist/modal/modal.js.map +1 -1
  43. package/dist/modal/modal.mjs +1 -1
  44. package/dist/navbar/index.js +9 -2
  45. package/dist/navbar/index.js.map +1 -1
  46. package/dist/navbar/index.mjs +2 -2
  47. package/dist/navbar/navbar-expandable-menu.js +9 -2
  48. package/dist/navbar/navbar-expandable-menu.js.map +1 -1
  49. package/dist/navbar/navbar-expandable-menu.mjs +1 -1
  50. package/dist/show-more/index.js.map +1 -1
  51. package/dist/show-more/index.mjs +1 -1
  52. package/dist/show-more/show-more.js.map +1 -1
  53. package/dist/show-more/show-more.mjs +1 -1
  54. package/dist/styled-html/index.js +1 -1
  55. package/dist/styled-html/index.js.map +1 -1
  56. package/dist/styled-html/index.mjs +1 -1
  57. package/dist/styled-html/styled-html.js +1 -1
  58. package/dist/styled-html/styled-html.js.map +1 -1
  59. package/dist/styled-html/styled-html.mjs +1 -1
  60. package/dist/text/index.d.mts +15 -0
  61. package/dist/text/index.d.ts +15 -0
  62. package/dist/text/index.js +179 -0
  63. package/dist/text/index.js.map +1 -0
  64. package/dist/text/index.mjs +36 -0
  65. package/dist/text/text.d.mts +2 -0
  66. package/dist/text/text.d.ts +2 -0
  67. package/dist/{typography/typography.js → text/text.js} +12 -12
  68. package/dist/text/text.js.map +1 -0
  69. package/dist/text/text.mjs +8 -0
  70. package/dist/warning-banner/index.js +2 -15
  71. package/dist/warning-banner/index.js.map +1 -1
  72. package/dist/warning-banner/index.mjs +1 -1
  73. package/dist/warning-banner/warning-banner.js +2 -15
  74. package/dist/warning-banner/warning-banner.js.map +1 -1
  75. package/dist/warning-banner/warning-banner.mjs +1 -1
  76. package/package.json +5 -5
  77. package/dist/chunk-2XSEQBJ5.mjs.map +0 -1
  78. package/dist/chunk-52ULSP6E.mjs.map +0 -1
  79. package/dist/chunk-5GRZROYQ.mjs.map +0 -1
  80. package/dist/chunk-5T3VUFL4.mjs.map +0 -1
  81. package/dist/chunk-KOO4VQ2N.mjs.map +0 -1
  82. package/dist/chunk-LK62DXGG.mjs.map +0 -1
  83. package/dist/chunk-NCYRNCGJ.mjs +0 -107
  84. package/dist/chunk-NCYRNCGJ.mjs.map +0 -1
  85. package/dist/typography/index.d.mts +0 -42
  86. package/dist/typography/index.d.ts +0 -42
  87. package/dist/typography/index.js +0 -252
  88. package/dist/typography/index.js.map +0 -1
  89. package/dist/typography/index.mjs +0 -90
  90. package/dist/typography/typography.d.mts +0 -2
  91. package/dist/typography/typography.d.ts +0 -2
  92. package/dist/typography/typography.js.map +0 -1
  93. package/dist/typography/typography.mjs +0 -8
  94. /package/dist/{chunk-MJ4LA23N.mjs.map → chunk-BDA6STW2.mjs.map} +0 -0
  95. /package/dist/{chunk-FL4LCX4F.mjs.map → chunk-IWV5GK63.mjs.map} +0 -0
  96. /package/dist/{chunk-T3EC54VN.mjs.map → chunk-PUFFEK6I.mjs.map} +0 -0
  97. /package/dist/{typography → text}/index.mjs.map +0 -0
  98. /package/dist/{typography/typography.mjs.map → text/text.mjs.map} +0 -0
@@ -1,90 +0,0 @@
1
- import {
2
- Body,
3
- BodySmall,
4
- BodySmallTitle,
5
- BodyTitle,
6
- Caption,
7
- CaptionTitle,
8
- H1,
9
- H1Display,
10
- H2,
11
- H3,
12
- H3Title,
13
- Technical,
14
- TechnicalTitle,
15
- Text,
16
- TextBody,
17
- TextBodySmall,
18
- TextBodySmallTitle,
19
- TextBodyTitle,
20
- TextCaption,
21
- TextCaptionTitle,
22
- TextH1,
23
- TextH1Display,
24
- TextH2,
25
- TextH3,
26
- TextH3Title,
27
- TextTechnical,
28
- TextTechnicalTitle,
29
- TypographyBody,
30
- TypographyBodySmall,
31
- TypographyBodySmallTitle,
32
- TypographyBodyTitle,
33
- TypographyCaption,
34
- TypographyCaptionTitle,
35
- TypographyH1,
36
- TypographyH1Display,
37
- TypographyH2,
38
- TypographyH3,
39
- TypographyH3Title,
40
- TypographyTechnical,
41
- TypographyTechnicalTitle
42
- } from "../chunk-NCYRNCGJ.mjs";
43
- import {
44
- Typography
45
- } from "../chunk-5GRZROYQ.mjs";
46
- import "../chunk-R4SQKVDQ.mjs";
47
- export {
48
- Body,
49
- BodySmall,
50
- BodySmallTitle,
51
- BodyTitle,
52
- Caption,
53
- CaptionTitle,
54
- H1,
55
- H1Display,
56
- H2,
57
- H3,
58
- H3Title,
59
- Technical,
60
- TechnicalTitle,
61
- Text,
62
- TextBody,
63
- TextBodySmall,
64
- TextBodySmallTitle,
65
- TextBodyTitle,
66
- TextCaption,
67
- TextCaptionTitle,
68
- TextH1,
69
- TextH1Display,
70
- TextH2,
71
- TextH3,
72
- TextH3Title,
73
- TextTechnical,
74
- TextTechnicalTitle,
75
- Typography,
76
- TypographyBody,
77
- TypographyBodySmall,
78
- TypographyBodySmallTitle,
79
- TypographyBodyTitle,
80
- TypographyCaption,
81
- TypographyCaptionTitle,
82
- TypographyH1,
83
- TypographyH1Display,
84
- TypographyH2,
85
- TypographyH3,
86
- TypographyH3Title,
87
- TypographyTechnical,
88
- TypographyTechnicalTitle
89
- };
90
- //# sourceMappingURL=index.mjs.map
@@ -1,2 +0,0 @@
1
- export { TypographyProps_alias_3 as TypographyProps } from '../_tsup-dts-rollup';
2
- export { Typography_alias_3 as Typography } from '../_tsup-dts-rollup';
@@ -1,2 +0,0 @@
1
- export { TypographyProps_alias_3 as TypographyProps } from '../_tsup-dts-rollup';
2
- export { Typography_alias_3 as Typography } from '../_tsup-dts-rollup';
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/typography/typography.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 TypographyProps {\n children: React.ReactNode;\n variant?:\n | \"h1-display\"\n | \"h1\"\n | \"h2\"\n | \"h3\"\n | \"h3-title\"\n | \"body\"\n | \"body-title\"\n | \"body-small\"\n | \"body-small-title\"\n | \"technical\"\n | \"technical-title\"\n | \"caption\"\n | \"caption-title\";\n size?: \"min\" | \"max\" | \"fluid\";\n\n /**\n * 🚧 Experimental spacing\n */\n _unstableSpacing?: boolean;\n}\n\nconst defaultHTMLTag: Record<NonNullable<TypographyProps[\"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 * ## 🚨 WORK IN PROGRESS 🚨\n */\nexport const Typography: OverridableComponent<TypographyProps, 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-typography-${variant}`,\n sizeModifier && `hds-typography--${sizeModifier}`,\n spacing && \"hds-typography--spacing\",\n className as undefined,\n )}\n ref={ref}\n {...rest}\n >\n {children}\n </Component>\n );\n },\n);\nTypography.displayName = \"Typography\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkC;AAClC,6BAAqB;AA+Df;AApCN,IAAM,iBAAyF;AAAA,EAC7F,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;AAKO,IAAM,iBAAoE;AAAA,EAC/E,CACE,IASA,QACG;AAVH,iBACE;AAAA;AAAA,MACA,UAAU;AAAA,MACV,OAAO;AAAA,MACP,kBAAkB;AAAA,MAClB;AAAA,MACA;AAAA,IAvDN,IAiDI,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,eAAW;AAAA,UACT,kBAAkB,OAAO;AAAA,UACzB,gBAAgB,mBAAmB,YAAY;AAAA,UAC/C,WAAW;AAAA,UACX;AAAA,QACF;AAAA,QACA;AAAA,SACI,OARL;AAAA,QAUE;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,WAAW,cAAc;","names":[]}
@@ -1,8 +0,0 @@
1
- import {
2
- Typography
3
- } from "../chunk-5GRZROYQ.mjs";
4
- import "../chunk-R4SQKVDQ.mjs";
5
- export {
6
- Typography
7
- };
8
- //# sourceMappingURL=typography.mjs.map
File without changes