@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.
- package/dist/_tsup-dts-rollup.d.mts +162 -190
- package/dist/_tsup-dts-rollup.d.ts +162 -190
- package/dist/accordion/index.mjs +2 -2
- 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-52ULSP6E.mjs → chunk-GAKMKOPK.mjs} +3 -16
- package/dist/chunk-GAKMKOPK.mjs.map +1 -0
- package/dist/{chunk-5T3VUFL4.mjs → chunk-GVSLN5KE.mjs} +1 -1
- package/dist/chunk-GVSLN5KE.mjs.map +1 -0
- package/dist/{chunk-FL4LCX4F.mjs → chunk-IWV5GK63.mjs} +4 -4
- 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 +53 -132
- package/dist/index-no-css.js.map +1 -1
- package/dist/index-no-css.mjs +23 -77
- package/dist/index.d.mts +1 -28
- package/dist/index.d.ts +1 -28
- package/dist/index.js +54 -133
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -78
- 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/dist/warning-banner/index.js +2 -15
- package/dist/warning-banner/index.js.map +1 -1
- package/dist/warning-banner/index.mjs +1 -1
- package/dist/warning-banner/warning-banner.js +2 -15
- package/dist/warning-banner/warning-banner.js.map +1 -1
- package/dist/warning-banner/warning-banner.mjs +1 -1
- package/package.json +5 -5
- package/dist/chunk-2XSEQBJ5.mjs.map +0 -1
- package/dist/chunk-52ULSP6E.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-FL4LCX4F.mjs.map → chunk-IWV5GK63.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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@postenbring/hedwig-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.56",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
"dist/**"
|
|
13
13
|
],
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@microsoft/api-extractor": "7.
|
|
16
|
-
"@types/react": "^18.2.
|
|
15
|
+
"@microsoft/api-extractor": "7.43.0",
|
|
16
|
+
"@types/react": "^18.2.67",
|
|
17
17
|
"@types/react-dom": "^18.2.22",
|
|
18
18
|
"react": "^18.2.0",
|
|
19
19
|
"react-dom": "18.2.0",
|
|
20
20
|
"tsup": "^8.0.1",
|
|
21
|
-
"typescript": "^5.4.
|
|
21
|
+
"typescript": "^5.4.3",
|
|
22
22
|
"eslint-config-custom": "0.0.1",
|
|
23
23
|
"hedwig-tsconfig": "0.0.0"
|
|
24
24
|
},
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@postenbring/hedwig-css": "0.0.
|
|
32
|
+
"@postenbring/hedwig-css": "0.0.50"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/show-more/show-more.tsx"],"sourcesContent":["import { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\n\ntype Variant =\n | {\n variant?: \"show-more\";\n expanded?: never;\n }\n | {\n variant: \"show-more-show-less\";\n expanded: boolean;\n };\n\nexport type ShowMoreProps = React.HTMLAttributes<HTMLButtonElement> & {\n text: React.ReactNode;\n} & Variant;\n\n/**\n * Simple button for triggering more content.\n *\n * You have to add the logic for what happens when the button is clicked yourself.\n *\n * **Example**\n *\n * ```tsx\n * function Content() {\n * const [items, fetchMoreItems, moreItemsAvailable] = useYourData();\n * function onShowMoreItems() {\n * fetchMoreItems();\n * }\n * return (\n * <>\n * <ul>\n * {items.map((item) => (\n * <li key={item.id}>{item.text}</li>\n * ))}\n * </ul>\n * {moreItemsAvailable ?\n * <ShowMoreButton className=\"mt-small-2\" onClick={onShowMoreItems} lang=\"en\" /> :\n * null\n * }\n * </>\n * )\n * }\n * ```\n */\nexport function ShowMoreButton({ text, variant, expanded, className, ...rest }: ShowMoreProps) {\n return (\n <button\n className={clsx(\n \"hds-show-more\",\n variant === \"show-more-show-less\" && \"hds-show-more--show-less\",\n className as undefined,\n )}\n data-state={expanded ? \"expanded\" : undefined}\n type=\"button\"\n {...rest}\n >\n {text}\n <span className={clsx(\"hds-show-more__icon\")} />\n </button>\n );\n}\n"],"mappings":";;;;;;;AAAA,SAAS,YAAY;AA+CjB,SAWE,KAXF;AAFG,SAAS,eAAe,IAAgE;AAAhE,eAAE,QAAM,SAAS,UAAU,UA7C1D,IA6C+B,IAAyC,iBAAzC,IAAyC,CAAvC,QAAM,WAAS,YAAU;AACxD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACA,YAAY,yBAAyB;AAAA,QACrC;AAAA,MACF;AAAA,MACA,cAAY,WAAW,aAAa;AAAA,MACpC,MAAK;AAAA,OACD,OARL;AAAA,MAUE;AAAA;AAAA,QACD,oBAAC,UAAK,WAAW,KAAK,qBAAqB,GAAG;AAAA;AAAA;AAAA,EAChD;AAEJ;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/warning-banner/warning-banner.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { forwardRef, useState } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport type { OverridableComponent } from \"../utils\";\nimport { Box } from \"../box\";\n\nexport interface WarningBannerProps {\n title: ReactNode;\n description?: ReactNode;\n}\n\nexport const WarningBanner: OverridableComponent<WarningBannerProps, HTMLDivElement> = forwardRef(\n ({ title, description, className, ...rest }, ref) => {\n const expandable = !!description;\n return (\n <Box {...rest} className={clsx(\"hds-warning-banner\", className as undefined)} ref={ref}>\n <WarningBannerTitle variant={expandable ? \"expandable\" : \"default\"}>\n {title}\n </WarningBannerTitle>\n {expandable ? <WarningBannerDescription>{description}</WarningBannerDescription> : null}\n </Box>\n );\n },\n);\nWarningBanner.displayName = \"WarningBanner\";\n\ninterface WarningBannerTitleProps {\n variant: \"expandable\" | \"default\";\n children: ReactNode;\n}\n\nconst WarningBannerTitle: OverridableComponent<WarningBannerTitleProps, HTMLDivElement> =\n forwardRef(\n (\n {\n variant,\n as: Component = variant === \"expandable\" ? \"button\" : \"p\",\n children,\n className,\n ...rest\n },\n ref,\n ) => {\n const [open, setOpen] = useState<boolean>(false);\n if (variant === \"expandable\") {\n return (\n <Component\n className={clsx(\n \"hds-warning-banner__title\",\n \"hds-warning-banner__title-trigger\",\n { \"hds-warning-banner--closed\": !open },\n className as undefined,\n )}\n onClick={() => {\n setOpen(!open);\n }}\n ref={ref}\n type=\"button\"\n {...rest}\n >\n <span>{children}</span>\n <span className={clsx(\"hds-warning-banner__title-trigger--icon\")}>\n <svg\n fill=\"none\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n width=\"24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g className=\"hds-warning-banner__title-trigger--icon-chevron\">\n <path d=\"M19.6289 9.15625L18.9609 8.45312C18.7852 8.27734 18.5039 8.27734 18.3633 8.45312L12 14.8164L5.60156 8.45312C5.46094 8.27734 5.17969 8.27734 5.00391 8.45312L4.33594 9.15625C4.16016 9.29688 4.16016 9.57812 4.33594 9.75391L11.6836 17.1016C11.8594 17.2773 12.1055 17.2773 12.2812 17.1016L19.6289 9.75391C19.8047 9.57812 19.8047 9.29688 19.6289 9.15625Z\" />\n </g>\n </svg>\n </span>\n </Component>\n );\n }\n return (\n <Component\n className={clsx(\"hds-warning-banner__title\", className as undefined)}\n ref={ref}\n {...rest}\n >\n {children}\n </Component>\n );\n },\n );\nWarningBannerTitle.displayName = \"WarningBannerTitle\";\n\nconst WarningBannerDescription: OverridableComponent<object, HTMLParagraphElement> = forwardRef(\n ({ as: Component = \"p\", className, ...rest }, ref) => {\n return (\n <Component\n className={clsx(\"hds-warning-banner__description\", className as undefined)}\n ref={ref}\n {...rest}\n />\n );\n },\n);\nWarningBannerDescription.displayName = \"WarningBannerDescription\";\n"],"mappings":";;;;;;;;;;AACA,SAAS,YAAY,gBAAgB;AACrC,SAAS,YAAY;AAaf,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MACF;AAAA,IAEJ;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAW,KAAK,6BAA6B,SAAsB;AAAA,QACnE;AAAA,SACI,OAHL;AAAA,QAKE;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACF,mBAAmB,cAAc;AAEjC,IAAM,2BAA+E;AAAA,EACnF,CAAC,IAA6C,QAAQ;AAArD,iBAAE,MAAI,YAAY,KAAK,UA3F1B,IA2FG,IAAqC,iBAArC,IAAqC,CAAnC,MAAqB;AACtB,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAW,KAAK,mCAAmC,SAAsB;AAAA,QACzE;AAAA,SACI;AAAA,IACN;AAAA,EAEJ;AACF;AACA,yBAAyB,cAAc;","names":[]}
|
|
@@ -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,SAAgB,kBAAkB;AAClC,SAAS,YAAY;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,aAAoE;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,WAAW;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 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/modal/modal.tsx"],"sourcesContent":["import { forwardRef, useEffect, useRef } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname/index.mjs\";\nimport { Box } from \"../box/box\";\nimport type { OverridableComponent } from \"../utils\";\nimport { useMergeRefs } from \"../utils\";\n\nexport interface ModalProps extends React.HTMLAttributes<HTMLDialogElement> {\n children: React.ReactNode;\n\n /**\n * Controls the open state of the modal\n */\n open?: boolean;\n\n /**\n * Whether to close when clicking on the backdrop.\n */\n closeOnBackdropClick?: boolean;\n}\n\n/**\n * # 🚨 WORK IN PROGRESS 🚨\n *\n * ## TODO\n *\n * - [ ] polyfill the dialog element for the %0.2 users that don't have it yet.\n * - [x] Open the modal where there user is, not top of the page\n * - [x] Support the `open` prop\n * - [x] Support click outside to close\n */\nexport const Modal = forwardRef<HTMLDialogElement, ModalProps>(\n ({ children, className, open, closeOnBackdropClick, onClick, ...rest }, ref) => {\n const modalRef = useRef<HTMLDialogElement>(null);\n const mergedRef = useMergeRefs([modalRef, ref]);\n\n // The X close button that comes from the `Box` component\n function onCloseButtonClick() {\n modalRef.current?.close();\n return false;\n }\n\n // No scroll when modal is open\n useScrollLock(modalRef, \"hds-modal-scroll-lock\");\n\n // `open` prop\n useEffect(() => {\n if (modalRef.current && open !== undefined) {\n if (open && !modalRef.current.open) {\n modalRef.current.showModal();\n } else if (!open && modalRef.current.open) {\n modalRef.current.close();\n }\n }\n }, [modalRef, open]);\n\n function onDialogClick(e: React.MouseEvent<HTMLElement>) {\n if (closeOnBackdropClick && e.target === modalRef.current) {\n modalRef.current.close();\n }\n onClick?.(e as React.MouseEvent<HTMLDialogElement>);\n }\n\n return (\n <Box\n as=\"dialog\"\n className={clsx(\"hds-modal\", className as undefined)}\n closeable\n onClick={onDialogClick}\n onClose={onCloseButtonClick}\n ref={mergedRef}\n variant=\"white\"\n {\n ...(rest as object) /* TODO remove type casting */\n }\n >\n {children}\n </Box>\n );\n },\n);\nModal.displayName = \"Modal\";\n\nexport const ModalHeader: OverridableComponent<object, HTMLHeadingElement> = forwardRef(\n ({ as: Component = \"h1\", className, ...rest }, ref) => {\n return (\n <Component\n className={clsx(\"hds-modal__header\", className as undefined)}\n ref={ref}\n {...rest}\n />\n );\n },\n);\nModalHeader.displayName = \"Modal.Header\";\n\nexport const ModalContent: OverridableComponent<object, HTMLDivElement> = forwardRef(\n ({ as: Component = \"div\", className, ...rest }, ref) => {\n return (\n <Component\n className={clsx(\"hds-modal__content\", className as undefined)}\n ref={ref}\n {...rest}\n />\n );\n },\n);\nModalContent.displayName = \"Modal.Content\";\n\nexport const ModalFooter: OverridableComponent<object, HTMLDivElement> = forwardRef(\n ({ as: Component = \"footer\", className, ...rest }, ref) => {\n return (\n <Component\n className={clsx(\"hds-modal__footer\", className as undefined)}\n ref={ref}\n {...rest}\n />\n );\n },\n);\nModalFooter.displayName = \"Modal.Footer\";\n\nexport function useScrollLock(modalRef: React.RefObject<HTMLDialogElement>, bodyClass: string) {\n useEffect(() => {\n if (!modalRef.current) return;\n if (modalRef.current.open) document.body.classList.add(bodyClass);\n\n const observer = new MutationObserver(() => {\n if (modalRef.current?.open) document.body.classList.add(bodyClass);\n else document.body.classList.remove(bodyClass);\n });\n observer.observe(modalRef.current, {\n attributes: true,\n attributeFilter: [\"open\"],\n });\n return () => {\n observer.disconnect();\n document.body.classList.remove(bodyClass);\n };\n }, [bodyClass, modalRef]);\n}\n"],"mappings":";;;;;;;;;;;;;AAAA,SAAS,YAAY,WAAW,cAAc;AAC9C,SAAS,YAAY;AA8Df;AAjCC,IAAM,QAAQ;AAAA,EACnB,CAAC,IAAuE,QAAQ;AAA/E,iBAAE,YAAU,WAAW,MAAM,sBAAsB,QA/BtD,IA+BG,IAA+D,iBAA/D,IAA+D,CAA7D,YAAU,aAAW,Q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OAAO,UAhG5B,IAgGG,IAAuC,iBAAvC,IAAuC,CAArC,MAAuB;AACxB,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAW,KAAK,sBAAsB,SAAsB;AAAA,QAC5D;AAAA,SACI;AAAA,IACN;AAAA,EAEJ;AACF;AACA,aAAa,cAAc;AAEpB,IAAM,cAA4D;AAAA,EACvE,CAAC,IAAkD,QAAQ;AAA1D,iBAAE,MAAI,YAAY,UAAU,UA7G/B,IA6GG,IAA0C,iBAA1C,IAA0C,CAAxC,MAA0B;AAC3B,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAW,KAAK,qBAAqB,SAAsB;AAAA,QAC3D;AAAA,SACI;AAAA,IACN;AAAA,EAEJ;AACF;AACA,YAAY,cAAc;AAEnB,SAAS,cAAc,UAA8C,WAAmB;AAC7F,YAAU,MAAM;AACd,QAAI,CAAC,SAAS;AAAS;AACvB,QAAI,SAAS,QAAQ;AAAM,eAAS,KAAK,UAAU,IAAI,SAAS;AAEhE,UAAM,WAAW,IAAI,iBAAiB,MAAM;AA9HhD;AA+HM,WAAI,cAAS,YAAT,mBAAkB;AAAM,iBAAS,KAAK,UAAU,IAAI,SAAS;AAAA;AAC5D,iBAAS,KAAK,UAAU,OAAO,SAAS;AAAA,IAC/C,CAAC;AACD,aAAS,QAAQ,SAAS,SAAS;AAAA,MACjC,YAAY;AAAA,MACZ,iBAAiB,CAAC,MAAM;AAAA,IAC1B,CAAC;AACD,WAAO,MAAM;AACX,eAAS,WAAW;AACpB,eAAS,KAAK,UAAU,OAAO,SAAS;AAAA,IAC1C;AAAA,EACF,GAAG,CAAC,WAAW,QAAQ,CAAC;AAC1B;","names":["_a"]}
|
|
@@ -1 +0,0 @@
|
|
|
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,\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;AAAA,YACpB,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":[]}
|
|
@@ -1 +0,0 @@
|
|
|
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 setOpen((currentOpen) => !currentOpen);\n };\n return <navbarContext.Provider value={[open, toggleOpen]}>{children}</navbarContext.Provider>;\n}\nNavbarExpandableMenu.displayName = \"NavbarExpandableMenu\";\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 {children}\n </Component>\n );\n});\nNavbarExpandableMenuContent.displayName = \"Navbar.ExpandableMenu.Content\";\n"],"mappings":";;;;;;;;;;;AAAA,SAAgB,eAAe,YAAY,YAAY,UAAU,QAAQ,iBAAiB;AAC1F,SAAS,kBAAkB;AAE3B,SAAS,YAAY;AAsBZ,cA6BL,YA7BK;AAlBT,IAAM,gBAAgB,cAAc;AAAA,EAClC;AAAA,EACA,MAAM;AAAA,EAEN;AACF,CAAU;AAQH,SAAS,qBAAqB,EAAE,SAAS,GAA8B;AAC5E,QAAM,CAAC,MAAM,OAAO,IAAI,SAAS,KAAK;AACtC,QAAM,aAAa,MAAM;AACvB,YAAQ,CAAC,gBAAgB,CAAC,WAAW;AAAA,EACvC;AACA,SAAO,oBAAC,cAAc,UAAd,EAAuB,OAAO,CAAC,MAAM,UAAU,GAAI,UAAS;AACtE;AACA,qBAAqB,cAAc;AAanC,SAAS,aAAa,IAUF;AAVE,eACpB;AAAA;AAAA,IACA;AAAA,IACA,OAAO;AAAA,IACP;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,I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s
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Typography
|
|
3
|
-
} from "./chunk-5GRZROYQ.mjs";
|
|
4
|
-
import {
|
|
5
|
-
__spreadValues
|
|
6
|
-
} from "./chunk-R4SQKVDQ.mjs";
|
|
7
|
-
|
|
8
|
-
// src/typography/index.tsx
|
|
9
|
-
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
var Text = Typography;
|
|
11
|
-
Text.displayName = "Text";
|
|
12
|
-
var H1Display = typographyVariant("h1-display", "H1Display");
|
|
13
|
-
var H1 = typographyVariant("h1", "H1");
|
|
14
|
-
var H2 = typographyVariant("h2", "H2");
|
|
15
|
-
var H3 = typographyVariant("h3", "H3");
|
|
16
|
-
var H3Title = typographyVariant("h3-title", "H3Title");
|
|
17
|
-
var Body = typographyVariant("body", "Body");
|
|
18
|
-
var BodyTitle = typographyVariant("body-title", "BodyTitle");
|
|
19
|
-
var BodySmall = typographyVariant("body-small", "BodySmall");
|
|
20
|
-
var BodySmallTitle = typographyVariant("body-small-title", "BodySmallTitle");
|
|
21
|
-
var Technical = typographyVariant("technical", "Technical");
|
|
22
|
-
var TechnicalTitle = typographyVariant("technical-title", "TechnicalTitle");
|
|
23
|
-
var Caption = typographyVariant("caption", "Caption");
|
|
24
|
-
var CaptionTitle = typographyVariant("caption-title", "CaptionTitle");
|
|
25
|
-
var TextH1Display = typographyVariant("h1-display", "TextH1Display");
|
|
26
|
-
var TextH1 = typographyVariant("h1", "TextH1");
|
|
27
|
-
var TextH2 = typographyVariant("h2", "TextH2");
|
|
28
|
-
var TextH3 = typographyVariant("h3", "TextH3");
|
|
29
|
-
var TextH3Title = typographyVariant("h3-title", "TextH3Title");
|
|
30
|
-
var TextBody = typographyVariant("body", "TextBody");
|
|
31
|
-
var TextBodyTitle = typographyVariant("body-title", "TextBodyTitle");
|
|
32
|
-
var TextBodySmall = typographyVariant("body-small", "TextBodySmall");
|
|
33
|
-
var TextBodySmallTitle = typographyVariant("body-small-title", "TextBodySmallTitle");
|
|
34
|
-
var TextTechnical = typographyVariant("technical", "TextTechnical");
|
|
35
|
-
var TextTechnicalTitle = typographyVariant("technical-title", "TextTechnicalTitle");
|
|
36
|
-
var TextCaption = typographyVariant("caption", "TextCaption");
|
|
37
|
-
var TextCaptionTitle = typographyVariant("caption-title", "TextCaptionTitle");
|
|
38
|
-
var TypographyH1Display = typographyVariant("h1-display", "TypographyH1Display");
|
|
39
|
-
var TypographyH1 = typographyVariant("h1", "TypographyH1");
|
|
40
|
-
var TypographyH2 = typographyVariant("h2", "TypographyH2");
|
|
41
|
-
var TypographyH3 = typographyVariant("h3", "TypographyH3");
|
|
42
|
-
var TypographyH3Title = typographyVariant("h3-title", "TypographyH3Title");
|
|
43
|
-
var TypographyBody = typographyVariant("body", "TypographyBody");
|
|
44
|
-
var TypographyBodyTitle = typographyVariant("body-title", "TypographyBodyTitle");
|
|
45
|
-
var TypographyBodySmall = typographyVariant("body-small", "TypographyBodySmall");
|
|
46
|
-
var TypographyBodySmallTitle = typographyVariant(
|
|
47
|
-
"body-small-title",
|
|
48
|
-
"TypographyBodySmallTitle"
|
|
49
|
-
);
|
|
50
|
-
var TypographyTechnical = typographyVariant("technical", "TypographyTechnical");
|
|
51
|
-
var TypographyTechnicalTitle = typographyVariant(
|
|
52
|
-
"technical-title",
|
|
53
|
-
"TypographyTechnicalTitle"
|
|
54
|
-
);
|
|
55
|
-
var TypographyCaption = typographyVariant("caption", "TypographyCaption");
|
|
56
|
-
var TypographyCaptionTitle = typographyVariant("caption-title", "TypographyCaptionTitle");
|
|
57
|
-
function typographyVariant(variant, displayName) {
|
|
58
|
-
function WrappedTypography(props) {
|
|
59
|
-
return /* @__PURE__ */ jsx(Typography, __spreadValues({ variant }, props));
|
|
60
|
-
}
|
|
61
|
-
WrappedTypography.displayName = displayName;
|
|
62
|
-
return WrappedTypography;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export {
|
|
66
|
-
Text,
|
|
67
|
-
H1Display,
|
|
68
|
-
H1,
|
|
69
|
-
H2,
|
|
70
|
-
H3,
|
|
71
|
-
H3Title,
|
|
72
|
-
Body,
|
|
73
|
-
BodyTitle,
|
|
74
|
-
BodySmall,
|
|
75
|
-
BodySmallTitle,
|
|
76
|
-
Technical,
|
|
77
|
-
TechnicalTitle,
|
|
78
|
-
Caption,
|
|
79
|
-
CaptionTitle,
|
|
80
|
-
TextH1Display,
|
|
81
|
-
TextH1,
|
|
82
|
-
TextH2,
|
|
83
|
-
TextH3,
|
|
84
|
-
TextH3Title,
|
|
85
|
-
TextBody,
|
|
86
|
-
TextBodyTitle,
|
|
87
|
-
TextBodySmall,
|
|
88
|
-
TextBodySmallTitle,
|
|
89
|
-
TextTechnical,
|
|
90
|
-
TextTechnicalTitle,
|
|
91
|
-
TextCaption,
|
|
92
|
-
TextCaptionTitle,
|
|
93
|
-
TypographyH1Display,
|
|
94
|
-
TypographyH1,
|
|
95
|
-
TypographyH2,
|
|
96
|
-
TypographyH3,
|
|
97
|
-
TypographyH3Title,
|
|
98
|
-
TypographyBody,
|
|
99
|
-
TypographyBodyTitle,
|
|
100
|
-
TypographyBodySmall,
|
|
101
|
-
TypographyBodySmallTitle,
|
|
102
|
-
TypographyTechnical,
|
|
103
|
-
TypographyTechnicalTitle,
|
|
104
|
-
TypographyCaption,
|
|
105
|
-
TypographyCaptionTitle
|
|
106
|
-
};
|
|
107
|
-
//# sourceMappingURL=chunk-NCYRNCGJ.mjs.map
|
|
@@ -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,WA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AChF,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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,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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