@postenbring/hedwig-react 0.0.55 → 0.0.57
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/_tsup-dts-rollup.d.mts +162 -190
- package/dist/_tsup-dts-rollup.d.ts +162 -190
- package/dist/button/button.js +1 -1
- package/dist/button/button.js.map +1 -1
- package/dist/button/button.mjs +1 -1
- package/dist/button/index.js +1 -1
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs +1 -1
- package/dist/{chunk-2XSEQBJ5.mjs → chunk-5IIBIO3Y.mjs} +1 -1
- package/dist/chunk-5IIBIO3Y.mjs.map +1 -0
- package/dist/{chunk-MJ4LA23N.mjs → chunk-BDA6STW2.mjs} +2 -2
- package/dist/{chunk-5T3VUFL4.mjs → chunk-GVSLN5KE.mjs} +1 -1
- package/dist/chunk-GVSLN5KE.mjs.map +1 -0
- package/dist/{chunk-UVUIY2WB.mjs → chunk-J6ES2LO5.mjs} +2 -2
- package/dist/{chunk-UVUIY2WB.mjs.map → chunk-J6ES2LO5.mjs.map} +1 -1
- package/dist/{chunk-5GRZROYQ.mjs → chunk-LYRXA4WS.mjs} +8 -8
- package/dist/chunk-LYRXA4WS.mjs.map +1 -0
- package/dist/{chunk-KOO4VQ2N.mjs → chunk-OJ42PRYY.mjs} +2 -2
- package/dist/chunk-OJ42PRYY.mjs.map +1 -0
- package/dist/{chunk-T3EC54VN.mjs → chunk-PUFFEK6I.mjs} +2 -2
- package/dist/chunk-V4NGQVBQ.mjs +61 -0
- package/dist/chunk-V4NGQVBQ.mjs.map +1 -0
- package/dist/{chunk-LK62DXGG.mjs → chunk-ZSLWZUBI.mjs} +10 -3
- package/dist/chunk-ZSLWZUBI.mjs.map +1 -0
- package/dist/index-no-css.d.mts +1 -28
- package/dist/index-no-css.d.ts +1 -28
- package/dist/index-no-css.js +51 -117
- package/dist/index-no-css.js.map +1 -1
- package/dist/index-no-css.mjs +12 -66
- package/dist/index.d.mts +1 -28
- package/dist/index.d.ts +1 -28
- package/dist/index.js +51 -117
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -66
- package/dist/index.mjs.map +1 -1
- package/dist/modal/index.js.map +1 -1
- package/dist/modal/index.mjs +2 -2
- package/dist/modal/modal.js.map +1 -1
- package/dist/modal/modal.mjs +1 -1
- package/dist/navbar/index.js +9 -2
- package/dist/navbar/index.js.map +1 -1
- package/dist/navbar/index.mjs +2 -2
- package/dist/navbar/navbar-expandable-menu.js +9 -2
- package/dist/navbar/navbar-expandable-menu.js.map +1 -1
- package/dist/navbar/navbar-expandable-menu.mjs +1 -1
- package/dist/show-more/index.js.map +1 -1
- package/dist/show-more/index.mjs +1 -1
- package/dist/show-more/show-more.js.map +1 -1
- package/dist/show-more/show-more.mjs +1 -1
- package/dist/styled-html/index.js +1 -1
- package/dist/styled-html/index.js.map +1 -1
- package/dist/styled-html/index.mjs +1 -1
- package/dist/styled-html/styled-html.js +1 -1
- package/dist/styled-html/styled-html.js.map +1 -1
- package/dist/styled-html/styled-html.mjs +1 -1
- package/dist/text/index.d.mts +15 -0
- package/dist/text/index.d.ts +15 -0
- package/dist/text/index.js +179 -0
- package/dist/text/index.js.map +1 -0
- package/dist/text/index.mjs +36 -0
- package/dist/text/text.d.mts +2 -0
- package/dist/text/text.d.ts +2 -0
- package/dist/{typography/typography.js → text/text.js} +12 -12
- package/dist/text/text.js.map +1 -0
- package/dist/text/text.mjs +8 -0
- package/package.json +7 -7
- package/dist/chunk-2XSEQBJ5.mjs.map +0 -1
- package/dist/chunk-5GRZROYQ.mjs.map +0 -1
- package/dist/chunk-5T3VUFL4.mjs.map +0 -1
- package/dist/chunk-KOO4VQ2N.mjs.map +0 -1
- package/dist/chunk-LK62DXGG.mjs.map +0 -1
- package/dist/chunk-NCYRNCGJ.mjs +0 -107
- package/dist/chunk-NCYRNCGJ.mjs.map +0 -1
- package/dist/typography/index.d.mts +0 -42
- package/dist/typography/index.d.ts +0 -42
- package/dist/typography/index.js +0 -252
- package/dist/typography/index.js.map +0 -1
- package/dist/typography/index.mjs +0 -90
- package/dist/typography/typography.d.mts +0 -2
- package/dist/typography/typography.d.ts +0 -2
- package/dist/typography/typography.js.map +0 -1
- package/dist/typography/typography.mjs +0 -8
- /package/dist/{chunk-MJ4LA23N.mjs.map → chunk-BDA6STW2.mjs.map} +0 -0
- /package/dist/{chunk-T3EC54VN.mjs.map → chunk-PUFFEK6I.mjs.map} +0 -0
- /package/dist/{typography → text}/index.mjs.map +0 -0
- /package/dist/{typography/typography.mjs.map → text/text.mjs.map} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/typography/index.tsx"],"sourcesContent":["import type { TypographyProps } from \"./typography\";\nimport { Typography } from \"./typography\";\n\nexport { Typography };\nexport type * from \"./typography\";\n\n/**\n * Alternative: Named `Text`\n *\n * ## Alias to @see Typography\n *\n * Only one component will remain\n */\nexport const Text = Typography;\nText.displayName = \"Text\";\n\n/**\n * Alternative: Named as the different typography levels\n *\n * ## Alias to @see Typography\n */\nexport const H1Display = typographyVariant(\"h1-display\", \"H1Display\");\nexport const H1 = typographyVariant(\"h1\", \"H1\");\nexport const H2 = typographyVariant(\"h2\", \"H2\");\nexport const H3 = typographyVariant(\"h3\", \"H3\");\nexport const H3Title = typographyVariant(\"h3-title\", \"H3Title\");\nexport const Body = typographyVariant(\"body\", \"Body\"); // This one is a bit weird, as it can be mistaken for `<body>`\nexport const BodyTitle = typographyVariant(\"body-title\", \"BodyTitle\");\nexport const BodySmall = typographyVariant(\"body-small\", \"BodySmall\");\nexport const BodySmallTitle = typographyVariant(\"body-small-title\", \"BodySmallTitle\");\nexport const Technical = typographyVariant(\"technical\", \"Technical\");\nexport const TechnicalTitle = typographyVariant(\"technical-title\", \"TechnicalTitle\");\nexport const Caption = typographyVariant(\"caption\", \"Caption\");\nexport const CaptionTitle = typographyVariant(\"caption-title\", \"CaptionTitle\");\n\n/**\n * Alternative: Named as the different typography levels with Text prefix\n *\n * ## Alias to @see Typography\n */\nexport const TextH1Display = typographyVariant(\"h1-display\", \"TextH1Display\");\nexport const TextH1 = typographyVariant(\"h1\", \"TextH1\");\nexport const TextH2 = typographyVariant(\"h2\", \"TextH2\");\nexport const TextH3 = typographyVariant(\"h3\", \"TextH3\");\nexport const TextH3Title = typographyVariant(\"h3-title\", \"TextH3Title\");\nexport const TextBody = typographyVariant(\"body\", \"TextBody\"); // This one is a bit weird, as it can be mistaken for `<body>`\nexport const TextBodyTitle = typographyVariant(\"body-title\", \"TextBodyTitle\");\nexport const TextBodySmall = typographyVariant(\"body-small\", \"TextBodySmall\");\nexport const TextBodySmallTitle = typographyVariant(\"body-small-title\", \"TextBodySmallTitle\");\nexport const TextTechnical = typographyVariant(\"technical\", \"TextTechnical\");\nexport const TextTechnicalTitle = typographyVariant(\"technical-title\", \"TextTechnicalTitle\");\nexport const TextCaption = typographyVariant(\"caption\", \"TextCaption\");\nexport const TextCaptionTitle = typographyVariant(\"caption-title\", \"TextCaptionTitle\");\n\n/**\n * Alternative: Named as the different typography levels with Typography prefix\n *\n * ## Alias to @see Typography\n */\nexport const TypographyH1Display = typographyVariant(\"h1-display\", \"TypographyH1Display\");\nexport const TypographyH1 = typographyVariant(\"h1\", \"TypographyH1\");\nexport const TypographyH2 = typographyVariant(\"h2\", \"TypographyH2\");\nexport const TypographyH3 = typographyVariant(\"h3\", \"TypographyH3\");\nexport const TypographyH3Title = typographyVariant(\"h3-title\", \"TypographyH3Title\");\nexport const TypographyBody = typographyVariant(\"body\", \"TypographyBody\"); // This one is a bit weird, as it can be mistaken for `<body>`\nexport const TypographyBodyTitle = typographyVariant(\"body-title\", \"TypographyBodyTitle\");\nexport const TypographyBodySmall = typographyVariant(\"body-small\", \"TypographyBodySmall\");\nexport const TypographyBodySmallTitle = typographyVariant(\n \"body-small-title\",\n \"TypographyBodySmallTitle\",\n);\nexport const TypographyTechnical = typographyVariant(\"technical\", \"TypographyTechnical\");\nexport const TypographyTechnicalTitle = typographyVariant(\n \"technical-title\",\n \"TypographyTechnicalTitle\",\n);\nexport const TypographyCaption = typographyVariant(\"caption\", \"TypographyCaption\");\nexport const TypographyCaptionTitle = typographyVariant(\"caption-title\", \"TypographyCaptionTitle\");\n\nfunction typographyVariant(\n variant: TypographyProps[\"variant\"],\n displayName: string,\n): React.FunctionComponent<Omit<TypographyProps, \"variant\">> {\n function WrappedTypography(props: Omit<TypographyProps, \"variant\">) {\n return <Typography variant={variant} {...props} />;\n }\n WrappedTypography.displayName = displayName;\n\n return WrappedTypography;\n}\n"],"mappings":";;;;;;;;AAoFW;AAvEJ,IAAM,OAAO;AACpB,KAAK,cAAc;AAOZ,IAAM,YAAY,kBAAkB,cAAc,WAAW;AAC7D,IAAM,KAAK,kBAAkB,MAAM,IAAI;AACvC,IAAM,KAAK,kBAAkB,MAAM,IAAI;AACvC,IAAM,KAAK,kBAAkB,MAAM,IAAI;AACvC,IAAM,UAAU,kBAAkB,YAAY,SAAS;AACvD,IAAM,OAAO,kBAAkB,QAAQ,MAAM;AAC7C,IAAM,YAAY,kBAAkB,cAAc,WAAW;AAC7D,IAAM,YAAY,kBAAkB,cAAc,WAAW;AAC7D,IAAM,iBAAiB,kBAAkB,oBAAoB,gBAAgB;AAC7E,IAAM,YAAY,kBAAkB,aAAa,WAAW;AAC5D,IAAM,iBAAiB,kBAAkB,mBAAmB,gBAAgB;AAC5E,IAAM,UAAU,kBAAkB,WAAW,SAAS;AACtD,IAAM,eAAe,kBAAkB,iBAAiB,cAAc;AAOtE,IAAM,gBAAgB,kBAAkB,cAAc,eAAe;AACrE,IAAM,SAAS,kBAAkB,MAAM,QAAQ;AAC/C,IAAM,SAAS,kBAAkB,MAAM,QAAQ;AAC/C,IAAM,SAAS,kBAAkB,MAAM,QAAQ;AAC/C,IAAM,cAAc,kBAAkB,YAAY,aAAa;AAC/D,IAAM,WAAW,kBAAkB,QAAQ,UAAU;AACrD,IAAM,gBAAgB,kBAAkB,cAAc,eAAe;AACrE,IAAM,gBAAgB,kBAAkB,cAAc,eAAe;AACrE,IAAM,qBAAqB,kBAAkB,oBAAoB,oBAAoB;AACrF,IAAM,gBAAgB,kBAAkB,aAAa,eAAe;AACpE,IAAM,qBAAqB,kBAAkB,mBAAmB,oBAAoB;AACpF,IAAM,cAAc,kBAAkB,WAAW,aAAa;AAC9D,IAAM,mBAAmB,kBAAkB,iBAAiB,kBAAkB;AAO9E,IAAM,sBAAsB,kBAAkB,cAAc,qBAAqB;AACjF,IAAM,eAAe,kBAAkB,MAAM,cAAc;AAC3D,IAAM,eAAe,kBAAkB,MAAM,cAAc;AAC3D,IAAM,eAAe,kBAAkB,MAAM,cAAc;AAC3D,IAAM,oBAAoB,kBAAkB,YAAY,mBAAmB;AAC3E,IAAM,iBAAiB,kBAAkB,QAAQ,gBAAgB;AACjE,IAAM,sBAAsB,kBAAkB,cAAc,qBAAqB;AACjF,IAAM,sBAAsB,kBAAkB,cAAc,qBAAqB;AACjF,IAAM,2BAA2B;AAAA,EACtC;AAAA,EACA;AACF;AACO,IAAM,sBAAsB,kBAAkB,aAAa,qBAAqB;AAChF,IAAM,2BAA2B;AAAA,EACtC;AAAA,EACA;AACF;AACO,IAAM,oBAAoB,kBAAkB,WAAW,mBAAmB;AAC1E,IAAM,yBAAyB,kBAAkB,iBAAiB,wBAAwB;AAEjG,SAAS,kBACP,SACA,aAC2D;AAC3D,WAAS,kBAAkB,OAAyC;AAClE,WAAO,oBAAC,6BAAW,WAAsB,MAAO;AAAA,EAClD;AACA,oBAAkB,cAAc;AAEhC,SAAO;AACT;","names":[]}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export { Typography_alias_2 as Typography } from '../_tsup-dts-rollup';
|
|
2
|
-
export { Text_alias_2 as Text } from '../_tsup-dts-rollup';
|
|
3
|
-
export { H1Display_alias_2 as H1Display } from '../_tsup-dts-rollup';
|
|
4
|
-
export { H1_alias_2 as H1 } from '../_tsup-dts-rollup';
|
|
5
|
-
export { H2_alias_2 as H2 } from '../_tsup-dts-rollup';
|
|
6
|
-
export { H3_alias_2 as H3 } from '../_tsup-dts-rollup';
|
|
7
|
-
export { H3Title_alias_2 as H3Title } from '../_tsup-dts-rollup';
|
|
8
|
-
export { Body_alias_2 as Body } from '../_tsup-dts-rollup';
|
|
9
|
-
export { BodyTitle_alias_2 as BodyTitle } from '../_tsup-dts-rollup';
|
|
10
|
-
export { BodySmall_alias_2 as BodySmall } from '../_tsup-dts-rollup';
|
|
11
|
-
export { BodySmallTitle_alias_2 as BodySmallTitle } from '../_tsup-dts-rollup';
|
|
12
|
-
export { Technical_alias_2 as Technical } from '../_tsup-dts-rollup';
|
|
13
|
-
export { TechnicalTitle_alias_2 as TechnicalTitle } from '../_tsup-dts-rollup';
|
|
14
|
-
export { Caption_alias_2 as Caption } from '../_tsup-dts-rollup';
|
|
15
|
-
export { CaptionTitle_alias_2 as CaptionTitle } from '../_tsup-dts-rollup';
|
|
16
|
-
export { TextH1Display_alias_2 as TextH1Display } from '../_tsup-dts-rollup';
|
|
17
|
-
export { TextH1_alias_2 as TextH1 } from '../_tsup-dts-rollup';
|
|
18
|
-
export { TextH2_alias_2 as TextH2 } from '../_tsup-dts-rollup';
|
|
19
|
-
export { TextH3_alias_2 as TextH3 } from '../_tsup-dts-rollup';
|
|
20
|
-
export { TextH3Title_alias_2 as TextH3Title } from '../_tsup-dts-rollup';
|
|
21
|
-
export { TextBody_alias_2 as TextBody } from '../_tsup-dts-rollup';
|
|
22
|
-
export { TextBodyTitle_alias_2 as TextBodyTitle } from '../_tsup-dts-rollup';
|
|
23
|
-
export { TextBodySmall_alias_2 as TextBodySmall } from '../_tsup-dts-rollup';
|
|
24
|
-
export { TextBodySmallTitle_alias_2 as TextBodySmallTitle } from '../_tsup-dts-rollup';
|
|
25
|
-
export { TextTechnical_alias_2 as TextTechnical } from '../_tsup-dts-rollup';
|
|
26
|
-
export { TextTechnicalTitle_alias_2 as TextTechnicalTitle } from '../_tsup-dts-rollup';
|
|
27
|
-
export { TextCaption_alias_2 as TextCaption } from '../_tsup-dts-rollup';
|
|
28
|
-
export { TextCaptionTitle_alias_2 as TextCaptionTitle } from '../_tsup-dts-rollup';
|
|
29
|
-
export { TypographyH1Display_alias_2 as TypographyH1Display } from '../_tsup-dts-rollup';
|
|
30
|
-
export { TypographyH1_alias_2 as TypographyH1 } from '../_tsup-dts-rollup';
|
|
31
|
-
export { TypographyH2_alias_2 as TypographyH2 } from '../_tsup-dts-rollup';
|
|
32
|
-
export { TypographyH3_alias_2 as TypographyH3 } from '../_tsup-dts-rollup';
|
|
33
|
-
export { TypographyH3Title_alias_2 as TypographyH3Title } from '../_tsup-dts-rollup';
|
|
34
|
-
export { TypographyBody_alias_2 as TypographyBody } from '../_tsup-dts-rollup';
|
|
35
|
-
export { TypographyBodyTitle_alias_2 as TypographyBodyTitle } from '../_tsup-dts-rollup';
|
|
36
|
-
export { TypographyBodySmall_alias_2 as TypographyBodySmall } from '../_tsup-dts-rollup';
|
|
37
|
-
export { TypographyBodySmallTitle_alias_2 as TypographyBodySmallTitle } from '../_tsup-dts-rollup';
|
|
38
|
-
export { TypographyTechnical_alias_2 as TypographyTechnical } from '../_tsup-dts-rollup';
|
|
39
|
-
export { TypographyTechnicalTitle_alias_2 as TypographyTechnicalTitle } from '../_tsup-dts-rollup';
|
|
40
|
-
export { TypographyCaption_alias_2 as TypographyCaption } from '../_tsup-dts-rollup';
|
|
41
|
-
export { TypographyCaptionTitle_alias_2 as TypographyCaptionTitle } from '../_tsup-dts-rollup';
|
|
42
|
-
export { TypographyProps_alias_2 as TypographyProps } from '../_tsup-dts-rollup';
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export { Typography_alias_2 as Typography } from '../_tsup-dts-rollup';
|
|
2
|
-
export { Text_alias_2 as Text } from '../_tsup-dts-rollup';
|
|
3
|
-
export { H1Display_alias_2 as H1Display } from '../_tsup-dts-rollup';
|
|
4
|
-
export { H1_alias_2 as H1 } from '../_tsup-dts-rollup';
|
|
5
|
-
export { H2_alias_2 as H2 } from '../_tsup-dts-rollup';
|
|
6
|
-
export { H3_alias_2 as H3 } from '../_tsup-dts-rollup';
|
|
7
|
-
export { H3Title_alias_2 as H3Title } from '../_tsup-dts-rollup';
|
|
8
|
-
export { Body_alias_2 as Body } from '../_tsup-dts-rollup';
|
|
9
|
-
export { BodyTitle_alias_2 as BodyTitle } from '../_tsup-dts-rollup';
|
|
10
|
-
export { BodySmall_alias_2 as BodySmall } from '../_tsup-dts-rollup';
|
|
11
|
-
export { BodySmallTitle_alias_2 as BodySmallTitle } from '../_tsup-dts-rollup';
|
|
12
|
-
export { Technical_alias_2 as Technical } from '../_tsup-dts-rollup';
|
|
13
|
-
export { TechnicalTitle_alias_2 as TechnicalTitle } from '../_tsup-dts-rollup';
|
|
14
|
-
export { Caption_alias_2 as Caption } from '../_tsup-dts-rollup';
|
|
15
|
-
export { CaptionTitle_alias_2 as CaptionTitle } from '../_tsup-dts-rollup';
|
|
16
|
-
export { TextH1Display_alias_2 as TextH1Display } from '../_tsup-dts-rollup';
|
|
17
|
-
export { TextH1_alias_2 as TextH1 } from '../_tsup-dts-rollup';
|
|
18
|
-
export { TextH2_alias_2 as TextH2 } from '../_tsup-dts-rollup';
|
|
19
|
-
export { TextH3_alias_2 as TextH3 } from '../_tsup-dts-rollup';
|
|
20
|
-
export { TextH3Title_alias_2 as TextH3Title } from '../_tsup-dts-rollup';
|
|
21
|
-
export { TextBody_alias_2 as TextBody } from '../_tsup-dts-rollup';
|
|
22
|
-
export { TextBodyTitle_alias_2 as TextBodyTitle } from '../_tsup-dts-rollup';
|
|
23
|
-
export { TextBodySmall_alias_2 as TextBodySmall } from '../_tsup-dts-rollup';
|
|
24
|
-
export { TextBodySmallTitle_alias_2 as TextBodySmallTitle } from '../_tsup-dts-rollup';
|
|
25
|
-
export { TextTechnical_alias_2 as TextTechnical } from '../_tsup-dts-rollup';
|
|
26
|
-
export { TextTechnicalTitle_alias_2 as TextTechnicalTitle } from '../_tsup-dts-rollup';
|
|
27
|
-
export { TextCaption_alias_2 as TextCaption } from '../_tsup-dts-rollup';
|
|
28
|
-
export { TextCaptionTitle_alias_2 as TextCaptionTitle } from '../_tsup-dts-rollup';
|
|
29
|
-
export { TypographyH1Display_alias_2 as TypographyH1Display } from '../_tsup-dts-rollup';
|
|
30
|
-
export { TypographyH1_alias_2 as TypographyH1 } from '../_tsup-dts-rollup';
|
|
31
|
-
export { TypographyH2_alias_2 as TypographyH2 } from '../_tsup-dts-rollup';
|
|
32
|
-
export { TypographyH3_alias_2 as TypographyH3 } from '../_tsup-dts-rollup';
|
|
33
|
-
export { TypographyH3Title_alias_2 as TypographyH3Title } from '../_tsup-dts-rollup';
|
|
34
|
-
export { TypographyBody_alias_2 as TypographyBody } from '../_tsup-dts-rollup';
|
|
35
|
-
export { TypographyBodyTitle_alias_2 as TypographyBodyTitle } from '../_tsup-dts-rollup';
|
|
36
|
-
export { TypographyBodySmall_alias_2 as TypographyBodySmall } from '../_tsup-dts-rollup';
|
|
37
|
-
export { TypographyBodySmallTitle_alias_2 as TypographyBodySmallTitle } from '../_tsup-dts-rollup';
|
|
38
|
-
export { TypographyTechnical_alias_2 as TypographyTechnical } from '../_tsup-dts-rollup';
|
|
39
|
-
export { TypographyTechnicalTitle_alias_2 as TypographyTechnicalTitle } from '../_tsup-dts-rollup';
|
|
40
|
-
export { TypographyCaption_alias_2 as TypographyCaption } from '../_tsup-dts-rollup';
|
|
41
|
-
export { TypographyCaptionTitle_alias_2 as TypographyCaptionTitle } from '../_tsup-dts-rollup';
|
|
42
|
-
export { TypographyProps_alias_2 as TypographyProps } from '../_tsup-dts-rollup';
|
package/dist/typography/index.js
DELETED
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __defProps = Object.defineProperties;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
-
var __spreadValues = (a, b) => {
|
|
12
|
-
for (var prop in b || (b = {}))
|
|
13
|
-
if (__hasOwnProp.call(b, prop))
|
|
14
|
-
__defNormalProp(a, prop, b[prop]);
|
|
15
|
-
if (__getOwnPropSymbols)
|
|
16
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
-
if (__propIsEnum.call(b, prop))
|
|
18
|
-
__defNormalProp(a, prop, b[prop]);
|
|
19
|
-
}
|
|
20
|
-
return a;
|
|
21
|
-
};
|
|
22
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
|
-
var __objRest = (source, exclude) => {
|
|
24
|
-
var target = {};
|
|
25
|
-
for (var prop in source)
|
|
26
|
-
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
27
|
-
target[prop] = source[prop];
|
|
28
|
-
if (source != null && __getOwnPropSymbols)
|
|
29
|
-
for (var prop of __getOwnPropSymbols(source)) {
|
|
30
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
31
|
-
target[prop] = source[prop];
|
|
32
|
-
}
|
|
33
|
-
return target;
|
|
34
|
-
};
|
|
35
|
-
var __export = (target, all) => {
|
|
36
|
-
for (var name in all)
|
|
37
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
38
|
-
};
|
|
39
|
-
var __copyProps = (to, from, except, desc) => {
|
|
40
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
41
|
-
for (let key of __getOwnPropNames(from))
|
|
42
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
43
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
44
|
-
}
|
|
45
|
-
return to;
|
|
46
|
-
};
|
|
47
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
48
|
-
|
|
49
|
-
// src/typography/index.tsx
|
|
50
|
-
var typography_exports = {};
|
|
51
|
-
__export(typography_exports, {
|
|
52
|
-
Body: () => Body,
|
|
53
|
-
BodySmall: () => BodySmall,
|
|
54
|
-
BodySmallTitle: () => BodySmallTitle,
|
|
55
|
-
BodyTitle: () => BodyTitle,
|
|
56
|
-
Caption: () => Caption,
|
|
57
|
-
CaptionTitle: () => CaptionTitle,
|
|
58
|
-
H1: () => H1,
|
|
59
|
-
H1Display: () => H1Display,
|
|
60
|
-
H2: () => H2,
|
|
61
|
-
H3: () => H3,
|
|
62
|
-
H3Title: () => H3Title,
|
|
63
|
-
Technical: () => Technical,
|
|
64
|
-
TechnicalTitle: () => TechnicalTitle,
|
|
65
|
-
Text: () => Text,
|
|
66
|
-
TextBody: () => TextBody,
|
|
67
|
-
TextBodySmall: () => TextBodySmall,
|
|
68
|
-
TextBodySmallTitle: () => TextBodySmallTitle,
|
|
69
|
-
TextBodyTitle: () => TextBodyTitle,
|
|
70
|
-
TextCaption: () => TextCaption,
|
|
71
|
-
TextCaptionTitle: () => TextCaptionTitle,
|
|
72
|
-
TextH1: () => TextH1,
|
|
73
|
-
TextH1Display: () => TextH1Display,
|
|
74
|
-
TextH2: () => TextH2,
|
|
75
|
-
TextH3: () => TextH3,
|
|
76
|
-
TextH3Title: () => TextH3Title,
|
|
77
|
-
TextTechnical: () => TextTechnical,
|
|
78
|
-
TextTechnicalTitle: () => TextTechnicalTitle,
|
|
79
|
-
Typography: () => Typography,
|
|
80
|
-
TypographyBody: () => TypographyBody,
|
|
81
|
-
TypographyBodySmall: () => TypographyBodySmall,
|
|
82
|
-
TypographyBodySmallTitle: () => TypographyBodySmallTitle,
|
|
83
|
-
TypographyBodyTitle: () => TypographyBodyTitle,
|
|
84
|
-
TypographyCaption: () => TypographyCaption,
|
|
85
|
-
TypographyCaptionTitle: () => TypographyCaptionTitle,
|
|
86
|
-
TypographyH1: () => TypographyH1,
|
|
87
|
-
TypographyH1Display: () => TypographyH1Display,
|
|
88
|
-
TypographyH2: () => TypographyH2,
|
|
89
|
-
TypographyH3: () => TypographyH3,
|
|
90
|
-
TypographyH3Title: () => TypographyH3Title,
|
|
91
|
-
TypographyTechnical: () => TypographyTechnical,
|
|
92
|
-
TypographyTechnicalTitle: () => TypographyTechnicalTitle
|
|
93
|
-
});
|
|
94
|
-
module.exports = __toCommonJS(typography_exports);
|
|
95
|
-
|
|
96
|
-
// src/typography/typography.tsx
|
|
97
|
-
var import_react = require("react");
|
|
98
|
-
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
99
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
100
|
-
var defaultHTMLTag = {
|
|
101
|
-
"h1-display": "h1",
|
|
102
|
-
h1: "h1",
|
|
103
|
-
h2: "h2",
|
|
104
|
-
h3: "h3",
|
|
105
|
-
"h3-title": "h3",
|
|
106
|
-
body: "p",
|
|
107
|
-
"body-title": "p",
|
|
108
|
-
"body-small": "p",
|
|
109
|
-
"body-small-title": "p",
|
|
110
|
-
technical: "p",
|
|
111
|
-
"technical-title": "p",
|
|
112
|
-
caption: "p",
|
|
113
|
-
"caption-title": "p"
|
|
114
|
-
};
|
|
115
|
-
var Typography = (0, import_react.forwardRef)(
|
|
116
|
-
(_a, ref) => {
|
|
117
|
-
var _b = _a, {
|
|
118
|
-
as,
|
|
119
|
-
variant = "body",
|
|
120
|
-
size = "fluid",
|
|
121
|
-
_unstableSpacing: spacing,
|
|
122
|
-
children,
|
|
123
|
-
className
|
|
124
|
-
} = _b, rest = __objRest(_b, [
|
|
125
|
-
"as",
|
|
126
|
-
"variant",
|
|
127
|
-
"size",
|
|
128
|
-
"_unstableSpacing",
|
|
129
|
-
"children",
|
|
130
|
-
"className"
|
|
131
|
-
]);
|
|
132
|
-
const Component = as != null ? as : defaultHTMLTag[variant];
|
|
133
|
-
const sizeModifier = size !== "fluid" && variant !== "caption" && variant !== "caption-title" && size;
|
|
134
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
135
|
-
Component,
|
|
136
|
-
__spreadProps(__spreadValues({
|
|
137
|
-
className: (0, import_typed_classname.clsx)(
|
|
138
|
-
`hds-typography-${variant}`,
|
|
139
|
-
sizeModifier && `hds-typography--${sizeModifier}`,
|
|
140
|
-
spacing && "hds-typography--spacing",
|
|
141
|
-
className
|
|
142
|
-
),
|
|
143
|
-
ref
|
|
144
|
-
}, rest), {
|
|
145
|
-
children
|
|
146
|
-
})
|
|
147
|
-
);
|
|
148
|
-
}
|
|
149
|
-
);
|
|
150
|
-
Typography.displayName = "Typography";
|
|
151
|
-
|
|
152
|
-
// src/typography/index.tsx
|
|
153
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
154
|
-
var Text = Typography;
|
|
155
|
-
Text.displayName = "Text";
|
|
156
|
-
var H1Display = typographyVariant("h1-display", "H1Display");
|
|
157
|
-
var H1 = typographyVariant("h1", "H1");
|
|
158
|
-
var H2 = typographyVariant("h2", "H2");
|
|
159
|
-
var H3 = typographyVariant("h3", "H3");
|
|
160
|
-
var H3Title = typographyVariant("h3-title", "H3Title");
|
|
161
|
-
var Body = typographyVariant("body", "Body");
|
|
162
|
-
var BodyTitle = typographyVariant("body-title", "BodyTitle");
|
|
163
|
-
var BodySmall = typographyVariant("body-small", "BodySmall");
|
|
164
|
-
var BodySmallTitle = typographyVariant("body-small-title", "BodySmallTitle");
|
|
165
|
-
var Technical = typographyVariant("technical", "Technical");
|
|
166
|
-
var TechnicalTitle = typographyVariant("technical-title", "TechnicalTitle");
|
|
167
|
-
var Caption = typographyVariant("caption", "Caption");
|
|
168
|
-
var CaptionTitle = typographyVariant("caption-title", "CaptionTitle");
|
|
169
|
-
var TextH1Display = typographyVariant("h1-display", "TextH1Display");
|
|
170
|
-
var TextH1 = typographyVariant("h1", "TextH1");
|
|
171
|
-
var TextH2 = typographyVariant("h2", "TextH2");
|
|
172
|
-
var TextH3 = typographyVariant("h3", "TextH3");
|
|
173
|
-
var TextH3Title = typographyVariant("h3-title", "TextH3Title");
|
|
174
|
-
var TextBody = typographyVariant("body", "TextBody");
|
|
175
|
-
var TextBodyTitle = typographyVariant("body-title", "TextBodyTitle");
|
|
176
|
-
var TextBodySmall = typographyVariant("body-small", "TextBodySmall");
|
|
177
|
-
var TextBodySmallTitle = typographyVariant("body-small-title", "TextBodySmallTitle");
|
|
178
|
-
var TextTechnical = typographyVariant("technical", "TextTechnical");
|
|
179
|
-
var TextTechnicalTitle = typographyVariant("technical-title", "TextTechnicalTitle");
|
|
180
|
-
var TextCaption = typographyVariant("caption", "TextCaption");
|
|
181
|
-
var TextCaptionTitle = typographyVariant("caption-title", "TextCaptionTitle");
|
|
182
|
-
var TypographyH1Display = typographyVariant("h1-display", "TypographyH1Display");
|
|
183
|
-
var TypographyH1 = typographyVariant("h1", "TypographyH1");
|
|
184
|
-
var TypographyH2 = typographyVariant("h2", "TypographyH2");
|
|
185
|
-
var TypographyH3 = typographyVariant("h3", "TypographyH3");
|
|
186
|
-
var TypographyH3Title = typographyVariant("h3-title", "TypographyH3Title");
|
|
187
|
-
var TypographyBody = typographyVariant("body", "TypographyBody");
|
|
188
|
-
var TypographyBodyTitle = typographyVariant("body-title", "TypographyBodyTitle");
|
|
189
|
-
var TypographyBodySmall = typographyVariant("body-small", "TypographyBodySmall");
|
|
190
|
-
var TypographyBodySmallTitle = typographyVariant(
|
|
191
|
-
"body-small-title",
|
|
192
|
-
"TypographyBodySmallTitle"
|
|
193
|
-
);
|
|
194
|
-
var TypographyTechnical = typographyVariant("technical", "TypographyTechnical");
|
|
195
|
-
var TypographyTechnicalTitle = typographyVariant(
|
|
196
|
-
"technical-title",
|
|
197
|
-
"TypographyTechnicalTitle"
|
|
198
|
-
);
|
|
199
|
-
var TypographyCaption = typographyVariant("caption", "TypographyCaption");
|
|
200
|
-
var TypographyCaptionTitle = typographyVariant("caption-title", "TypographyCaptionTitle");
|
|
201
|
-
function typographyVariant(variant, displayName) {
|
|
202
|
-
function WrappedTypography(props) {
|
|
203
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Typography, __spreadValues({ variant }, props));
|
|
204
|
-
}
|
|
205
|
-
WrappedTypography.displayName = displayName;
|
|
206
|
-
return WrappedTypography;
|
|
207
|
-
}
|
|
208
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
209
|
-
0 && (module.exports = {
|
|
210
|
-
Body,
|
|
211
|
-
BodySmall,
|
|
212
|
-
BodySmallTitle,
|
|
213
|
-
BodyTitle,
|
|
214
|
-
Caption,
|
|
215
|
-
CaptionTitle,
|
|
216
|
-
H1,
|
|
217
|
-
H1Display,
|
|
218
|
-
H2,
|
|
219
|
-
H3,
|
|
220
|
-
H3Title,
|
|
221
|
-
Technical,
|
|
222
|
-
TechnicalTitle,
|
|
223
|
-
Text,
|
|
224
|
-
TextBody,
|
|
225
|
-
TextBodySmall,
|
|
226
|
-
TextBodySmallTitle,
|
|
227
|
-
TextBodyTitle,
|
|
228
|
-
TextCaption,
|
|
229
|
-
TextCaptionTitle,
|
|
230
|
-
TextH1,
|
|
231
|
-
TextH1Display,
|
|
232
|
-
TextH2,
|
|
233
|
-
TextH3,
|
|
234
|
-
TextH3Title,
|
|
235
|
-
TextTechnical,
|
|
236
|
-
TextTechnicalTitle,
|
|
237
|
-
Typography,
|
|
238
|
-
TypographyBody,
|
|
239
|
-
TypographyBodySmall,
|
|
240
|
-
TypographyBodySmallTitle,
|
|
241
|
-
TypographyBodyTitle,
|
|
242
|
-
TypographyCaption,
|
|
243
|
-
TypographyCaptionTitle,
|
|
244
|
-
TypographyH1,
|
|
245
|
-
TypographyH1Display,
|
|
246
|
-
TypographyH2,
|
|
247
|
-
TypographyH3,
|
|
248
|
-
TypographyH3Title,
|
|
249
|
-
TypographyTechnical,
|
|
250
|
-
TypographyTechnicalTitle
|
|
251
|
-
});
|
|
252
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/typography/index.tsx","../../src/typography/typography.tsx"],"sourcesContent":["import type { TypographyProps } from \"./typography\";\nimport { Typography } from \"./typography\";\n\nexport { Typography };\nexport type * from \"./typography\";\n\n/**\n * Alternative: Named `Text`\n *\n * ## Alias to @see Typography\n *\n * Only one component will remain\n */\nexport const Text = Typography;\nText.displayName = \"Text\";\n\n/**\n * Alternative: Named as the different typography levels\n *\n * ## Alias to @see Typography\n */\nexport const H1Display = typographyVariant(\"h1-display\", \"H1Display\");\nexport const H1 = typographyVariant(\"h1\", \"H1\");\nexport const H2 = typographyVariant(\"h2\", \"H2\");\nexport const H3 = typographyVariant(\"h3\", \"H3\");\nexport const H3Title = typographyVariant(\"h3-title\", \"H3Title\");\nexport const Body = typographyVariant(\"body\", \"Body\"); // This one is a bit weird, as it can be mistaken for `<body>`\nexport const BodyTitle = typographyVariant(\"body-title\", \"BodyTitle\");\nexport const BodySmall = typographyVariant(\"body-small\", \"BodySmall\");\nexport const BodySmallTitle = typographyVariant(\"body-small-title\", \"BodySmallTitle\");\nexport const Technical = typographyVariant(\"technical\", \"Technical\");\nexport const TechnicalTitle = typographyVariant(\"technical-title\", \"TechnicalTitle\");\nexport const Caption = typographyVariant(\"caption\", \"Caption\");\nexport const CaptionTitle = typographyVariant(\"caption-title\", \"CaptionTitle\");\n\n/**\n * Alternative: Named as the different typography levels with Text prefix\n *\n * ## Alias to @see Typography\n */\nexport const TextH1Display = typographyVariant(\"h1-display\", \"TextH1Display\");\nexport const TextH1 = typographyVariant(\"h1\", \"TextH1\");\nexport const TextH2 = typographyVariant(\"h2\", \"TextH2\");\nexport const TextH3 = typographyVariant(\"h3\", \"TextH3\");\nexport const TextH3Title = typographyVariant(\"h3-title\", \"TextH3Title\");\nexport const TextBody = typographyVariant(\"body\", \"TextBody\"); // This one is a bit weird, as it can be mistaken for `<body>`\nexport const TextBodyTitle = typographyVariant(\"body-title\", \"TextBodyTitle\");\nexport const TextBodySmall = typographyVariant(\"body-small\", \"TextBodySmall\");\nexport const TextBodySmallTitle = typographyVariant(\"body-small-title\", \"TextBodySmallTitle\");\nexport const TextTechnical = typographyVariant(\"technical\", \"TextTechnical\");\nexport const TextTechnicalTitle = typographyVariant(\"technical-title\", \"TextTechnicalTitle\");\nexport const TextCaption = typographyVariant(\"caption\", \"TextCaption\");\nexport const TextCaptionTitle = typographyVariant(\"caption-title\", \"TextCaptionTitle\");\n\n/**\n * Alternative: Named as the different typography levels with Typography prefix\n *\n * ## Alias to @see Typography\n */\nexport const TypographyH1Display = typographyVariant(\"h1-display\", \"TypographyH1Display\");\nexport const TypographyH1 = typographyVariant(\"h1\", \"TypographyH1\");\nexport const TypographyH2 = typographyVariant(\"h2\", \"TypographyH2\");\nexport const TypographyH3 = typographyVariant(\"h3\", \"TypographyH3\");\nexport const TypographyH3Title = typographyVariant(\"h3-title\", \"TypographyH3Title\");\nexport const TypographyBody = typographyVariant(\"body\", \"TypographyBody\"); // This one is a bit weird, as it can be mistaken for `<body>`\nexport const TypographyBodyTitle = typographyVariant(\"body-title\", \"TypographyBodyTitle\");\nexport const TypographyBodySmall = typographyVariant(\"body-small\", \"TypographyBodySmall\");\nexport const TypographyBodySmallTitle = typographyVariant(\n \"body-small-title\",\n \"TypographyBodySmallTitle\",\n);\nexport const TypographyTechnical = typographyVariant(\"technical\", \"TypographyTechnical\");\nexport const TypographyTechnicalTitle = typographyVariant(\n \"technical-title\",\n \"TypographyTechnicalTitle\",\n);\nexport const TypographyCaption = typographyVariant(\"caption\", \"TypographyCaption\");\nexport const TypographyCaptionTitle = typographyVariant(\"caption-title\", \"TypographyCaptionTitle\");\n\nfunction typographyVariant(\n variant: TypographyProps[\"variant\"],\n displayName: string,\n): React.FunctionComponent<Omit<TypographyProps, \"variant\">> {\n function WrappedTypography(props: Omit<TypographyProps, \"variant\">) {\n return <Typography variant={variant} {...props} />;\n }\n WrappedTypography.displayName = displayName;\n\n return WrappedTypography;\n}\n","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":"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","names":["import_jsx_runtime"]}
|
|
@@ -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 +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":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|