@bonniernews/dn-design-system-web 32.7.6 → 32.7.8
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/CHANGELOG.md +20 -0
- package/assets/types/shared-props.ts +6 -0
- package/components/article-body-image/README.md +2 -2
- package/components/blocked-content/README.md +2 -2
- package/components/buddy-menu/README.md +2 -2
- package/components/button/README.md +2 -2
- package/components/button-toggle/README.md +2 -2
- package/components/byline/README.md +2 -2
- package/components/byline-list/README.md +2 -2
- package/components/checkbox/README.md +2 -2
- package/components/direkt-circle/README.md +2 -2
- package/components/direkt-header/README.md +2 -2
- package/components/disclaimer/README.md +3 -3
- package/components/divider/README.md +2 -2
- package/components/footer/README.md +2 -2
- package/components/game-header/README.md +2 -2
- package/components/image-caption/README.md +2 -2
- package/components/pill/README.md +2 -2
- package/components/profile-header/README-njk.md +49 -0
- package/components/profile-header/README.md +37 -49
- package/components/quote/README.md +2 -2
- package/components/radio-button/README.md +2 -2
- package/components/spinner/README.md +3 -3
- package/components/switch/README.md +2 -2
- package/components/teaser-card/README.md +2 -2
- package/components/teaser-counter/README.md +2 -2
- package/components/teaser-onsite/README.md +2 -2
- package/components/text-button/README.md +1 -1
- package/components/text-input/README.md +2 -2
- package/components/thematic-break/README.md +2 -2
- package/components/video-caption/README.md +3 -3
- package/package.json +2 -1
- package/preact/assets/article-image/article-image.d.ts +2 -3
- package/preact/components/article-body-image/article-body-image.js.map +2 -2
- package/preact/components/blocked-content/blocked-content.d.ts +2 -3
- package/preact/components/blocked-content/blocked-content.js.map +2 -2
- package/preact/components/buddy-menu/buddy-menu.d.ts +2 -4
- package/preact/components/buddy-menu/buddy-menu.js.map +2 -2
- package/preact/components/button/button-base.js.map +2 -2
- package/preact/components/button/button.js.map +2 -2
- package/preact/components/button-toggle/button-toggle.js.map +2 -2
- package/preact/components/byline/byline.d.ts +2 -3
- package/preact/components/byline/byline.js.map +2 -2
- package/preact/components/byline-list/byline-list.d.ts +2 -5
- package/preact/components/byline-list/byline-list.js.map +2 -2
- package/preact/components/checkbox/checkbox.d.ts +2 -3
- package/preact/components/checkbox/checkbox.js.map +2 -2
- package/preact/components/direkt-circle/direkt-circle.d.ts +2 -3
- package/preact/components/direkt-circle/direkt-circle.js.map +2 -2
- package/preact/components/direkt-header/direkt-header.d.ts +2 -4
- package/preact/components/direkt-header/direkt-header.js.map +2 -2
- package/preact/components/disclaimer/disclaimer.d.ts +2 -3
- package/preact/components/disclaimer/disclaimer.js.map +2 -2
- package/preact/components/divider/divider.d.ts +2 -3
- package/preact/components/divider/divider.js.map +2 -2
- package/preact/components/footer/footer.d.ts +4 -9
- package/preact/components/footer/footer.js.map +2 -2
- package/preact/components/game-header/game-header.d.ts +2 -4
- package/preact/components/game-header/game-header.js.map +2 -2
- package/preact/components/icon-sprite/icon-sprite.d.ts +3 -4
- package/preact/components/icon-sprite/icon-sprite.js.map +2 -2
- package/preact/components/icon-with-wrapper/icon-with-wrapper.d.ts +4 -5
- package/preact/components/icon-with-wrapper/icon-with-wrapper.js.map +2 -2
- package/preact/components/image-caption/image-caption.d.ts +2 -5
- package/preact/components/image-caption/image-caption.js.map +2 -2
- package/preact/components/list-item/list-item.js.map +2 -2
- package/preact/components/modal/modal.js.map +2 -2
- package/preact/components/pictogram/pictogram.js.map +2 -2
- package/preact/components/pill/pill.d.ts +2 -4
- package/preact/components/pill/pill.js.map +2 -2
- package/preact/components/profile-header/profile-header.d.ts +26 -0
- package/preact/components/profile-header/profile-header.js +251 -0
- package/preact/components/profile-header/profile-header.js.map +7 -0
- package/preact/components/quote/quote.d.ts +2 -4
- package/preact/components/quote/quote.js.map +2 -2
- package/preact/components/radio-button/radio-button.d.ts +2 -3
- package/preact/components/radio-button/radio-button.js.map +2 -2
- package/preact/components/spinner/spinner.d.ts +2 -3
- package/preact/components/spinner/spinner.js.map +2 -2
- package/preact/components/switch/switch.d.ts +2 -3
- package/preact/components/switch/switch.js.map +2 -2
- package/preact/components/teaser-card/teaser-card.d.ts +3 -5
- package/preact/components/teaser-card/teaser-card.js +5 -5
- package/preact/components/teaser-card/teaser-card.js.map +2 -2
- package/preact/components/teaser-counter/teaser-counter.d.ts +2 -4
- package/preact/components/teaser-counter/teaser-counter.js +6 -6
- package/preact/components/teaser-counter/teaser-counter.js.map +2 -2
- package/preact/components/teaser-onsite/teaser-onsite.d.ts +2 -4
- package/preact/components/teaser-onsite/teaser-onsite.js +6 -6
- package/preact/components/teaser-onsite/teaser-onsite.js.map +2 -2
- package/preact/components/text-button/text-button.js.map +2 -2
- package/preact/components/text-input/text-input.d.ts +2 -5
- package/preact/components/text-input/text-input.js.map +2 -2
- package/preact/components/thematic-break/thematic-break.d.ts +2 -3
- package/preact/components/thematic-break/thematic-break.js.map +2 -2
- package/preact/components/video-caption/video-caption.d.ts +2 -6
- package/preact/components/video-caption/video-caption.js.map +2 -2
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SharedProps } from "@bonniernews/dn-design-system-web/assets/types/shared-props.ts";
|
|
2
|
+
export interface SpinnerProps extends SharedProps {
|
|
2
3
|
variant: 'brand' | 'secondary' | 'primary' | 'onBrand' | 'onBusiness' | 'staticBlack' | 'staticWhite';
|
|
3
4
|
size?: 'large' | 'small' | 'xsmall';
|
|
4
5
|
forcePx?: boolean;
|
|
5
|
-
classNames?: string;
|
|
6
|
-
attributes?: object;
|
|
7
6
|
}
|
|
8
7
|
/**
|
|
9
8
|
* - GitHub: [BonnierNews/dn-design-system/../web/src/components/spinner](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/spinner)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../helpers/formatClassString.ts", "../../../components/spinner/spinner.tsx"],
|
|
4
|
-
"sourcesContent": ["export const formatClassString = (classesArray: (string|undefined|false)[]): string => {\n return classesArray.filter(x => !!x).join(' ');\n}\n", "import { formatClassString } from '../../helpers/formatClassString'\n\nexport interface SpinnerProps {\n variant: 'brand' | 'secondary' | 'primary' | 'onBrand' | 'onBusiness' | 'staticBlack' | 'staticWhite'\n size?: 'large' | 'small' | 'xsmall'\n forcePx?: boolean\n
|
|
5
|
-
"mappings": ";AAAO,IAAM,oBAAoB,CAAC,iBAAqD;AACrF,SAAO,aAAa,OAAO,OAAK,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG;AAC/C;;;
|
|
4
|
+
"sourcesContent": ["export const formatClassString = (classesArray: (string|undefined|false)[]): string => {\n return classesArray.filter(x => !!x).join(' ');\n}\n", "import type { SharedProps } from \"@bonniernews/dn-design-system-web/assets/types/shared-props.ts\";\nimport { formatClassString } from '../../helpers/formatClassString'\n\nexport interface SpinnerProps extends SharedProps {\n variant: 'brand' | 'secondary' | 'primary' | 'onBrand' | 'onBusiness' | 'staticBlack' | 'staticWhite'\n size?: 'large' | 'small' | 'xsmall'\n forcePx?: boolean\n}\n\n/**\n * - GitHub: [BonnierNews/dn-design-system/../web/src/components/spinner](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/spinner)\n * - Storybook: [Spinner](https://designsystem.dn.se/?path=/docs/basic-spinner--docs)\n *\n * The component will not include styling by itself. Make sure to include the right styles for the component. See example below:\n * `@use '@bonniernews/dn-design-system-web/components/spinner/spinner.scss'`\n */\nexport const Spinner = ({ variant = 'primary', size = 'large', forcePx, classNames, attributes }: SpinnerProps) => {\n const componentClassName = 'ds-spinner';\n\n const classes = formatClassString([\n `${componentClassName}`,\n `${componentClassName}--${variant}`,\n `${componentClassName}--${size}`,\n forcePx && 'ds-force-px',\n classNames,\n ])\n\n return (\n <span className={classes} {...attributes}>\n <span className={`${componentClassName}__inner`}></span>\n </span>\n )\n}\n\nexport default Spinner\n"],
|
|
5
|
+
"mappings": ";AAAO,IAAM,oBAAoB,CAAC,iBAAqD;AACrF,SAAO,aAAa,OAAO,OAAK,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG;AAC/C;;;AC2BM;AAbC,IAAM,UAAU,CAAC,EAAE,UAAU,WAAW,OAAO,SAAS,SAAS,YAAY,WAAW,MAAoB;AACjH,QAAM,qBAAqB;AAE3B,QAAM,UAAU,kBAAkB;AAAA,IAChC,GAAG,kBAAkB;AAAA,IACrB,GAAG,kBAAkB,KAAK,OAAO;AAAA,IACjC,GAAG,kBAAkB,KAAK,IAAI;AAAA,IAC9B,WAAW;AAAA,IACX;AAAA,EACF,CAAC;AAED,SACE,oBAAC,UAAK,WAAW,SAAU,GAAG,YAC5B,8BAAC,UAAK,WAAW,GAAG,kBAAkB,WAAW,GACnD;AAEJ;AAEA,IAAO,kBAAQ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SharedProps } from "@bonniernews/dn-design-system-web/assets/types/shared-props.ts";
|
|
2
|
+
interface SwitchProps extends SharedProps {
|
|
2
3
|
name: string;
|
|
3
4
|
showMeta?: boolean;
|
|
4
5
|
metaOn?: string;
|
|
@@ -8,9 +9,7 @@ interface SwitchProps {
|
|
|
8
9
|
required?: boolean;
|
|
9
10
|
disabled?: boolean;
|
|
10
11
|
validation?: string;
|
|
11
|
-
classNames?: string;
|
|
12
12
|
forcePx?: boolean;
|
|
13
|
-
attributes?: {};
|
|
14
13
|
}
|
|
15
14
|
export type SwitchInnerProps = Pick<SwitchProps, 'showMeta' | 'metaOn' | 'metaOff'> & {
|
|
16
15
|
componentClassName?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../helpers/formatClassString.ts", "../../../components/switch/switch.tsx"],
|
|
4
|
-
"sourcesContent": ["export const formatClassString = (classesArray: (string|undefined|false)[]): string => {\n return classesArray.filter(x => !!x).join(' ');\n}\n", "import { formatClassString } from '@bonniernews/dn-design-system-web/helpers/formatClassString.ts'\n\ninterface SwitchProps {\n name: string\n showMeta?: boolean\n metaOn?: string\n metaOff?: string\n stripLabel?: boolean\n checked?: boolean\n required?: boolean\n disabled?: boolean\n validation?: string\n
|
|
5
|
-
"mappings": ";AAAO,IAAM,oBAAoB,CAAC,iBAAqD;AACrF,SAAO,aAAa,OAAO,OAAK,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG;AAC/C;;;
|
|
4
|
+
"sourcesContent": ["export const formatClassString = (classesArray: (string|undefined|false)[]): string => {\n return classesArray.filter(x => !!x).join(' ');\n}\n", "import type { SharedProps } from \"@bonniernews/dn-design-system-web/assets/types/shared-props.ts\";\nimport { formatClassString } from '@bonniernews/dn-design-system-web/helpers/formatClassString.ts'\n\ninterface SwitchProps extends SharedProps {\n name: string\n showMeta?: boolean\n metaOn?: string\n metaOff?: string\n stripLabel?: boolean\n checked?: boolean\n required?: boolean\n disabled?: boolean\n validation?: string\n forcePx?: boolean\n}\n\nexport type SwitchInnerProps = Pick<SwitchProps, 'showMeta' | 'metaOn' | 'metaOff'> & {\n componentClassName?: string\n}\n\n/**\n * - GitHub: [BonnierNews/dn-design-system/../web/src/components/switch](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/switch)\n * - Storybook: [Checkbox](https://designsystem.dn.se/?path=/docs/basic-form-switch--docs)\n *\n * The component will not include styling by itself. Make sure to include the right styles for the component. See example below:\n * `@use '@bonniernews/dn-design-system-web/components/switch/switch.scss`\n */\nexport const Switch = ({\n name = 'ds-switch',\n checked,\n showMeta = false,\n metaOn = 'P\u00E5',\n metaOff = 'Av',\n disabled,\n stripLabel,\n forcePx,\n classNames,\n attributes,\n}: SwitchProps) => {\n const componentClassName = 'ds-switch'\n const classes = formatClassString([componentClassName, forcePx && 'ds-force-px', classNames])\n\n return (\n <div className={classes}>\n <input\n type='checkbox'\n id={name}\n name={name}\n defaultChecked={checked}\n disabled={disabled}\n aria-label={name}\n {...attributes}\n />\n {stripLabel ? (\n <div className={`${componentClassName}__inner`}>\n <SwitchInner\n {...{\n showMeta,\n metaOn,\n metaOff,\n componentClassName,\n }}\n />\n </div>\n ) : (\n <label className={`${componentClassName}__inner`} tabIndex={0} htmlFor={name}>\n <SwitchInner\n {...{\n showMeta,\n metaOn,\n metaOff,\n componentClassName,\n }}\n />\n </label>\n )}\n </div>\n )\n}\n\nconst SwitchInner = ({ showMeta, metaOn, metaOff, componentClassName }: SwitchInnerProps) => {\n return (\n <>\n {showMeta && (\n <div className={`${componentClassName}__meta`}>\n <span className={`${componentClassName}__meta-on`}>{metaOn}</span>\n <span className={`${componentClassName}__meta-off`}>{metaOff}</span>\n </div>\n )}\n <span className={`${componentClassName}__box`}>\n <span className={`${componentClassName}__knob`}></span>\n </span>\n </>\n )\n}\n"],
|
|
5
|
+
"mappings": ";AAAO,IAAM,oBAAoB,CAAC,iBAAqD;AACrF,SAAO,aAAa,OAAO,OAAK,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG;AAC/C;;;ACyCI,SAuCA,UAtCE,KADF;AAhBG,IAAM,SAAS,CAAC;AAAA,EACrB,OAAO;AAAA,EACP;AAAA,EACA,WAAW;AAAA,EACX,SAAS;AAAA,EACT,UAAU;AAAA,EACV;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAmB;AACjB,QAAM,qBAAqB;AAC3B,QAAM,UAAU,kBAAkB,CAAC,oBAAoB,WAAW,eAAe,UAAU,CAAC;AAE5F,SACE,qBAAC,SAAI,WAAW,SACd;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,MAAK;AAAA,QACL,IAAI;AAAA,QACJ;AAAA,QACA,gBAAgB;AAAA,QAChB;AAAA,QACA,cAAY;AAAA,QACX,GAAG;AAAA;AAAA,IACN;AAAA,IACC,aACC,oBAAC,SAAI,WAAW,GAAG,kBAAkB,WACnC;AAAA,MAAC;AAAA;AAAA,QACE,GAAG;AAAA,UACF;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QACF;AAAA;AAAA,IACF,GACF,IAEA,oBAAC,WAAM,WAAW,GAAG,kBAAkB,WAAW,UAAU,GAAG,SAAS,MACtE;AAAA,MAAC;AAAA;AAAA,QACE,GAAG;AAAA,UACF;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QACF;AAAA;AAAA,IACF,GACF;AAAA,KAEJ;AAEJ;AAEA,IAAM,cAAc,CAAC,EAAE,UAAU,QAAQ,SAAS,mBAAmB,MAAwB;AAC3F,SACE,iCACG;AAAA,gBACC,qBAAC,SAAI,WAAW,GAAG,kBAAkB,UACnC;AAAA,0BAAC,UAAK,WAAW,GAAG,kBAAkB,aAAc,kBAAO;AAAA,MAC3D,oBAAC,UAAK,WAAW,GAAG,kBAAkB,cAAe,mBAAQ;AAAA,OAC/D;AAAA,IAEF,oBAAC,UAAK,WAAW,GAAG,kBAAkB,SACpC,8BAAC,UAAK,WAAW,GAAG,kBAAkB,UAAU,GAClD;AAAA,KACF;AAEJ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
+
import type { SharedProps } from "@bonniernews/dn-design-system-web/assets/types/shared-props.ts";
|
|
1
2
|
import { ComponentChildren } from "preact";
|
|
2
|
-
export interface TeaserCardsProps {
|
|
3
|
+
export interface TeaserCardsProps extends SharedProps {
|
|
3
4
|
areaType?: 'right' | 'bauta' | 'bautaxl';
|
|
4
5
|
targetLink?: string;
|
|
5
6
|
theme?: 'kultur' | 'nyheter';
|
|
6
|
-
classes?: string;
|
|
7
|
-
/** Ex. { target: "_blank", "data-test": "lorem ipsum" } */
|
|
8
|
-
attributes?: object;
|
|
9
7
|
children: ComponentChildren;
|
|
10
8
|
}
|
|
11
9
|
/**
|
|
@@ -15,4 +13,4 @@ export interface TeaserCardsProps {
|
|
|
15
13
|
* The component will not include styling by itself. Make sure to include the right styles for the component. See example below:
|
|
16
14
|
* `@use '@bonniernews/dn-design-system-web/assets/teaser/teaser.scss'`
|
|
17
15
|
*/
|
|
18
|
-
export declare const TeaserCard: ({ areaType, targetLink, theme,
|
|
16
|
+
export declare const TeaserCard: ({ areaType, targetLink, theme, classNames, attributes, children }: TeaserCardsProps) => import("preact").JSX.Element;
|
|
@@ -5,19 +5,19 @@ var formatClassString = (classesArray) => {
|
|
|
5
5
|
|
|
6
6
|
// ../src/components/teaser-card/teaser-card.tsx
|
|
7
7
|
import { jsx } from "preact/jsx-runtime";
|
|
8
|
-
var TeaserCard = ({ areaType, targetLink, theme = "nyheter",
|
|
8
|
+
var TeaserCard = ({ areaType, targetLink, theme = "nyheter", classNames, attributes, children }) => {
|
|
9
9
|
const componentClassName = "ds-teaser";
|
|
10
|
-
const
|
|
10
|
+
const classes = formatClassString([
|
|
11
11
|
componentClassName,
|
|
12
12
|
areaType && `${componentClassName}--${areaType}`,
|
|
13
13
|
areaType == "bauta" && "ds-dark",
|
|
14
14
|
`ds-theme--${theme}`,
|
|
15
|
-
|
|
15
|
+
classNames
|
|
16
16
|
]);
|
|
17
17
|
if (targetLink) {
|
|
18
|
-
return /* @__PURE__ */ jsx("a", { className:
|
|
18
|
+
return /* @__PURE__ */ jsx("a", { className: classes, href: targetLink, ...attributes, children });
|
|
19
19
|
}
|
|
20
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
20
|
+
return /* @__PURE__ */ jsx("div", { className: classes, ...attributes, children });
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
23
23
|
TeaserCard
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../helpers/formatClassString.ts", "../../../components/teaser-card/teaser-card.tsx"],
|
|
4
|
-
"sourcesContent": ["export const formatClassString = (classesArray: (string|undefined|false)[]): string => {\n return classesArray.filter(x => !!x).join(' ');\n}\n", "import { formatClassString } from \"@bonniernews/dn-design-system-web/helpers/formatClassString.ts\";\nimport { ComponentChildren } from \"preact\";\n\nexport interface TeaserCardsProps {\n areaType?: 'right' | 'bauta' | 'bautaxl';\n targetLink?: string;\n theme?: 'kultur' | 'nyheter';\n
|
|
5
|
-
"mappings": ";AAAO,IAAM,oBAAoB,CAAC,iBAAqD;AACrF,SAAO,aAAa,OAAO,OAAK,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG;AAC/C;;;
|
|
4
|
+
"sourcesContent": ["export const formatClassString = (classesArray: (string|undefined|false)[]): string => {\n return classesArray.filter(x => !!x).join(' ');\n}\n", "import type { SharedProps } from \"@bonniernews/dn-design-system-web/assets/types/shared-props.ts\";\nimport { formatClassString } from \"@bonniernews/dn-design-system-web/helpers/formatClassString.ts\";\nimport { ComponentChildren } from \"preact\";\n\nexport interface TeaserCardsProps extends SharedProps {\n areaType?: 'right' | 'bauta' | 'bautaxl';\n targetLink?: string;\n theme?: 'kultur' | 'nyheter';\n children: ComponentChildren;\n}\n\n/**\n * - GitHub: [BonnierNews/dn-design-system/../web/src/components/teaser-card](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/teaser-card)\n * - Storybook: [Subcomponents > TeaserCard](https://designsystem.dn.se/?path=/docs/section-subcomponents-teaserdot--docs)\n *\n * The component will not include styling by itself. Make sure to include the right styles for the component. See example below:\n * `@use '@bonniernews/dn-design-system-web/assets/teaser/teaser.scss'`\n */\nexport const TeaserCard = ({ areaType, targetLink, theme = 'nyheter', classNames, attributes, children }: TeaserCardsProps) => {\n const componentClassName = 'ds-teaser';\n\n const classes = formatClassString([\n componentClassName,\n areaType && `${componentClassName}--${areaType}`,\n areaType == 'bauta' && 'ds-dark',\n `ds-theme--${theme}`,\n classNames,\n ])\n\n if (targetLink) {\n return (\n <a className={classes} href={targetLink } {...attributes}>\n { children }\n </a>\n );\n }\n\n return (\n <div className={classes}{...attributes}>\n { children }\n </div>\n );\n};\n"],
|
|
5
|
+
"mappings": ";AAAO,IAAM,oBAAoB,CAAC,iBAAqD;AACrF,SAAO,aAAa,OAAO,OAAK,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG;AAC/C;;;AC6BM;AAbC,IAAM,aAAa,CAAC,EAAE,UAAU,YAAY,QAAQ,WAAW,YAAY,YAAY,SAAS,MAAwB;AAC7H,QAAM,qBAAqB;AAE3B,QAAM,UAAU,kBAAkB;AAAA,IAChC;AAAA,IACA,YAAY,GAAG,kBAAkB,KAAK,QAAQ;AAAA,IAC9C,YAAY,WAAW;AAAA,IACvB,aAAa,KAAK;AAAA,IAClB;AAAA,EACF,CAAC;AAED,MAAI,YAAY;AACd,WACE,oBAAC,OAAE,WAAW,SAAS,MAAM,YAAc,GAAG,YAC1C,UACJ;AAAA,EAEJ;AAEA,SACE,oBAAC,SAAI,WAAW,SAAS,GAAG,YACxB,UACJ;AAEJ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SharedProps } from "@bonniernews/dn-design-system-web/assets/types/shared-props.ts";
|
|
2
|
+
export interface TeaserCounterProps extends SharedProps {
|
|
2
3
|
title: string;
|
|
3
4
|
counterText: string;
|
|
4
5
|
counterNumber: number;
|
|
@@ -6,9 +7,6 @@ export interface TeaserCounterProps {
|
|
|
6
7
|
areaType?: 'right' | 'bauta';
|
|
7
8
|
targetLink?: string;
|
|
8
9
|
mediaHtml?: string;
|
|
9
|
-
classNames?: string;
|
|
10
|
-
/** Ex. { target: "_blank", "data-test": "lorem ipsum" } */
|
|
11
|
-
attributes?: object;
|
|
12
10
|
}
|
|
13
11
|
/**
|
|
14
12
|
* - GitHub: [BonnierNews/dn-design-system/../web/src/components/teaser-onsite](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/teaser-counter)
|
|
@@ -5,19 +5,19 @@ var formatClassString = (classesArray) => {
|
|
|
5
5
|
|
|
6
6
|
// ../src/components/teaser-card/teaser-card.tsx
|
|
7
7
|
import { jsx } from "preact/jsx-runtime";
|
|
8
|
-
var TeaserCard = ({ areaType, targetLink, theme = "nyheter",
|
|
8
|
+
var TeaserCard = ({ areaType, targetLink, theme = "nyheter", classNames, attributes, children }) => {
|
|
9
9
|
const componentClassName = "ds-teaser";
|
|
10
|
-
const
|
|
10
|
+
const classes = formatClassString([
|
|
11
11
|
componentClassName,
|
|
12
12
|
areaType && `${componentClassName}--${areaType}`,
|
|
13
13
|
areaType == "bauta" && "ds-dark",
|
|
14
14
|
`ds-theme--${theme}`,
|
|
15
|
-
|
|
15
|
+
classNames
|
|
16
16
|
]);
|
|
17
17
|
if (targetLink) {
|
|
18
|
-
return /* @__PURE__ */ jsx("a", { className:
|
|
18
|
+
return /* @__PURE__ */ jsx("a", { className: classes, href: targetLink, ...attributes, children });
|
|
19
19
|
}
|
|
20
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
20
|
+
return /* @__PURE__ */ jsx("div", { className: classes, ...attributes, children });
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
// ../src/helpers/teaser.tsx
|
|
@@ -46,7 +46,7 @@ var TeaserCounter = ({
|
|
|
46
46
|
const componentClassName = "ds-teaser--counter";
|
|
47
47
|
const classes = formatClassString([componentClassName, classNames]);
|
|
48
48
|
const counterNumberIsValid = counterNumber !== void 0 && counterNumber !== null;
|
|
49
|
-
return /* @__PURE__ */ jsxs(TeaserCard, { ...{ areaType, targetLink, classes, attributes }, children: [
|
|
49
|
+
return /* @__PURE__ */ jsxs(TeaserCard, { ...{ areaType, targetLink, classNames: classes, attributes }, children: [
|
|
50
50
|
/* @__PURE__ */ jsxs(Content, { children: [
|
|
51
51
|
title && /* @__PURE__ */ jsxs("h2", { className: `${componentClassName}__title`, children: [
|
|
52
52
|
/* @__PURE__ */ jsx3("span", { className: `${componentClassName}__title--highlighted`, children: title }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../helpers/formatClassString.ts", "../../../components/teaser-card/teaser-card.tsx", "../../../helpers/teaser.tsx", "../../../components/teaser-counter/teaser-counter.tsx"],
|
|
4
|
-
"sourcesContent": ["export const formatClassString = (classesArray: (string|undefined|false)[]): string => {\n return classesArray.filter(x => !!x).join(' ');\n}\n", "import { formatClassString } from \"@bonniernews/dn-design-system-web/helpers/formatClassString.ts\";\nimport { ComponentChildren } from \"preact\";\n\nexport interface TeaserCardsProps {\n areaType?: 'right' | 'bauta' | 'bautaxl';\n targetLink?: string;\n theme?: 'kultur' | 'nyheter';\n
|
|
5
|
-
"mappings": ";AAAO,IAAM,oBAAoB,CAAC,iBAAqD;AACrF,SAAO,aAAa,OAAO,OAAK,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG;AAC/C;;;
|
|
4
|
+
"sourcesContent": ["export const formatClassString = (classesArray: (string|undefined|false)[]): string => {\n return classesArray.filter(x => !!x).join(' ');\n}\n", "import type { SharedProps } from \"@bonniernews/dn-design-system-web/assets/types/shared-props.ts\";\nimport { formatClassString } from \"@bonniernews/dn-design-system-web/helpers/formatClassString.ts\";\nimport { ComponentChildren } from \"preact\";\n\nexport interface TeaserCardsProps extends SharedProps {\n areaType?: 'right' | 'bauta' | 'bautaxl';\n targetLink?: string;\n theme?: 'kultur' | 'nyheter';\n children: ComponentChildren;\n}\n\n/**\n * - GitHub: [BonnierNews/dn-design-system/../web/src/components/teaser-card](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/teaser-card)\n * - Storybook: [Subcomponents > TeaserCard](https://designsystem.dn.se/?path=/docs/section-subcomponents-teaserdot--docs)\n *\n * The component will not include styling by itself. Make sure to include the right styles for the component. See example below:\n * `@use '@bonniernews/dn-design-system-web/assets/teaser/teaser.scss'`\n */\nexport const TeaserCard = ({ areaType, targetLink, theme = 'nyheter', classNames, attributes, children }: TeaserCardsProps) => {\n const componentClassName = 'ds-teaser';\n\n const classes = formatClassString([\n componentClassName,\n areaType && `${componentClassName}--${areaType}`,\n areaType == 'bauta' && 'ds-dark',\n `ds-theme--${theme}`,\n classNames,\n ])\n\n if (targetLink) {\n return (\n <a className={classes} href={targetLink } {...attributes}>\n { children }\n </a>\n );\n }\n\n return (\n <div className={classes}{...attributes}>\n { children }\n </div>\n );\n};\n", "import { ComponentChildren } from \"preact\";\n\ninterface MediaProps {\n mediaHtml?: string;\n rounded?: boolean;\n}\n\nexport const Media = ({ mediaHtml, rounded }: MediaProps) => {\n const classNames = 'ds-teaser__media' + (rounded ? ' ds-teaser__media--rounded' : '');\n return mediaHtml ? (<div className={classNames} dangerouslySetInnerHTML={{ __html: mediaHtml }} />) : (null)\n}\n\ninterface ContentProps {\n children: ComponentChildren;\n}\nexport const Content = ({ children }: ContentProps) => {\n return (<div className=\"ds-teaser__content\">\n {children}\n </div>)\n}\n\ninterface TitleProps {\n title?: string;\n}\nexport const Title = ({ title }: TitleProps) => {\n return title ? (<h2 className=\"ds-teaser__title\">{title}</h2>) : (null)\n}\n\ninterface BodyProps {\n text?: string;\n}\nexport const Body = ({ text }: BodyProps) => {\n return text ? (<p className=\"ds-teaser__text\">{text}</p>) : (null)\n}\n", "import type { SharedProps } from \"@bonniernews/dn-design-system-web/assets/types/shared-props.ts\";\nimport { TeaserCard } from '@bonniernews/dn-design-system-web/components/teaser-card/teaser-card.tsx'\nimport { formatClassString } from '@bonniernews/dn-design-system-web/helpers/formatClassString.ts'\nimport { Content, Media } from '@bonniernews/dn-design-system-web/helpers/teaser.tsx'\nexport interface TeaserCounterProps extends SharedProps {\n title: string\n counterText: string\n counterNumber: number\n subtitle?: string\n areaType?: 'right' | 'bauta'\n targetLink?: string\n mediaHtml?: string\n}\n\n/**\n * - GitHub: [BonnierNews/dn-design-system/../web/src/components/teaser-onsite](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/teaser-counter)\n * - Storybook: [TeaserCounter](https://designsystem.dn.se/?path=/docs/section-teaser-counter--docs)\n *\n * The component will not include styling by itself. Make sure to include the right styles for the component. See example below:\n * `@use '@bonniernews/dn-design-system-web/components/teaser-counter/teaser-counter.scss'`\n */\nexport const TeaserCounter = ({\n areaType,\n targetLink,\n classNames,\n attributes,\n mediaHtml,\n counterText,\n counterNumber,\n title,\n subtitle,\n}: TeaserCounterProps) => {\n const componentClassName = 'ds-teaser--counter'\n const classes = formatClassString([componentClassName, classNames])\n\n const counterNumberIsValid = counterNumber !== undefined && counterNumber !== null\n\n return (\n <TeaserCard {...{ areaType, targetLink, classNames: classes, attributes }}>\n <Content>\n {title && (\n <h2 className={`${componentClassName}__title`}>\n <span className={`${componentClassName}__title--highlighted`}>{title}</span>\n {subtitle && ` \u2013 ${subtitle}`}\n </h2>\n )}\n\n {(counterNumberIsValid || counterText) && (\n <div className={`${componentClassName}__counter-wrapper`}>\n {counterNumberIsValid && (\n <ul className={`${componentClassName}__list`}>\n {counterNumber\n .toString()\n .split('')\n .map((digit, index) => (\n <li key={index} className={`${componentClassName}__item`}>\n {digit}\n </li>\n ))}\n </ul>\n )}\n\n {counterText && (\n <p\n className={`${componentClassName}__counter-text`}\n dangerouslySetInnerHTML={{ __html: counterText }}\n ></p>\n )}\n </div>\n )}\n </Content>\n <Media {...{ mediaHtml }} />\n </TeaserCard>\n )\n}\n"],
|
|
5
|
+
"mappings": ";AAAO,IAAM,oBAAoB,CAAC,iBAAqD;AACrF,SAAO,aAAa,OAAO,OAAK,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG;AAC/C;;;AC6BM;AAbC,IAAM,aAAa,CAAC,EAAE,UAAU,YAAY,QAAQ,WAAW,YAAY,YAAY,SAAS,MAAwB;AAC7H,QAAM,qBAAqB;AAE3B,QAAM,UAAU,kBAAkB;AAAA,IAChC;AAAA,IACA,YAAY,GAAG,kBAAkB,KAAK,QAAQ;AAAA,IAC9C,YAAY,WAAW;AAAA,IACvB,aAAa,KAAK;AAAA,IAClB;AAAA,EACF,CAAC;AAED,MAAI,YAAY;AACd,WACE,oBAAC,OAAE,WAAW,SAAS,MAAM,YAAc,GAAG,YAC1C,UACJ;AAAA,EAEJ;AAEA,SACE,oBAAC,SAAI,WAAW,SAAS,GAAG,YACxB,UACJ;AAEJ;;;ACjCsB,gBAAAA,YAAA;AAFf,IAAM,QAAQ,CAAC,EAAE,WAAW,QAAQ,MAAkB;AAC3D,QAAM,aAAa,sBAAsB,UAAU,+BAA+B;AAClF,SAAO,Y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]
|
|
7
7
|
}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import type { SharedProps } from "@bonniernews/dn-design-system-web/assets/types/shared-props.ts";
|
|
2
|
+
export interface TeaserOnSiteProps extends SharedProps {
|
|
2
3
|
areaType?: 'right' | 'bauta' | 'bautaxl';
|
|
3
4
|
targetLink?: string;
|
|
4
5
|
theme?: 'kultur' | 'nyheter';
|
|
5
|
-
classNames?: string;
|
|
6
|
-
/** Ex. { target: "_blank", "data-test": "lorem ipsum" } */
|
|
7
|
-
attributes?: object;
|
|
8
6
|
mediaHtml?: string;
|
|
9
7
|
title?: string;
|
|
10
8
|
text?: string;
|
|
@@ -5,19 +5,19 @@ var formatClassString = (classesArray) => {
|
|
|
5
5
|
|
|
6
6
|
// ../src/components/teaser-card/teaser-card.tsx
|
|
7
7
|
import { jsx } from "preact/jsx-runtime";
|
|
8
|
-
var TeaserCard = ({ areaType, targetLink, theme = "nyheter",
|
|
8
|
+
var TeaserCard = ({ areaType, targetLink, theme = "nyheter", classNames, attributes, children }) => {
|
|
9
9
|
const componentClassName = "ds-teaser";
|
|
10
|
-
const
|
|
10
|
+
const classes = formatClassString([
|
|
11
11
|
componentClassName,
|
|
12
12
|
areaType && `${componentClassName}--${areaType}`,
|
|
13
13
|
areaType == "bauta" && "ds-dark",
|
|
14
14
|
`ds-theme--${theme}`,
|
|
15
|
-
|
|
15
|
+
classNames
|
|
16
16
|
]);
|
|
17
17
|
if (targetLink) {
|
|
18
|
-
return /* @__PURE__ */ jsx("a", { className:
|
|
18
|
+
return /* @__PURE__ */ jsx("a", { className: classes, href: targetLink, ...attributes, children });
|
|
19
19
|
}
|
|
20
|
-
return /* @__PURE__ */ jsx("div", { className:
|
|
20
|
+
return /* @__PURE__ */ jsx("div", { className: classes, ...attributes, children });
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
// ../src/helpers/teaser.tsx
|
|
@@ -43,7 +43,7 @@ var TeaserOnSite = ({ areaType, targetLink, theme = "nyheter", classNames, attri
|
|
|
43
43
|
"ds-teaser--onsite",
|
|
44
44
|
classNames
|
|
45
45
|
]);
|
|
46
|
-
return /* @__PURE__ */ jsxs(TeaserCard, { ...{ areaType, targetLink, theme, classes, attributes }, children: [
|
|
46
|
+
return /* @__PURE__ */ jsxs(TeaserCard, { ...{ areaType, targetLink, theme, classNames: classes, attributes }, children: [
|
|
47
47
|
/* @__PURE__ */ jsx3(Media, { ...{ mediaHtml, rounded: true } }),
|
|
48
48
|
/* @__PURE__ */ jsxs(Content, { children: [
|
|
49
49
|
/* @__PURE__ */ jsx3(Title, { title: `P\xC5 PLATS | ${title}` }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../helpers/formatClassString.ts", "../../../components/teaser-card/teaser-card.tsx", "../../../helpers/teaser.tsx", "../../../components/teaser-onsite/teaser-onsite.tsx"],
|
|
4
|
-
"sourcesContent": ["export const formatClassString = (classesArray: (string|undefined|false)[]): string => {\n return classesArray.filter(x => !!x).join(' ');\n}\n", "import { formatClassString } from \"@bonniernews/dn-design-system-web/helpers/formatClassString.ts\";\nimport { ComponentChildren } from \"preact\";\n\nexport interface TeaserCardsProps {\n areaType?: 'right' | 'bauta' | 'bautaxl';\n targetLink?: string;\n theme?: 'kultur' | 'nyheter';\n
|
|
5
|
-
"mappings": ";AAAO,IAAM,oBAAoB,CAAC,iBAAqD;AACrF,SAAO,aAAa,OAAO,OAAK,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG;AAC/C;;;
|
|
4
|
+
"sourcesContent": ["export const formatClassString = (classesArray: (string|undefined|false)[]): string => {\n return classesArray.filter(x => !!x).join(' ');\n}\n", "import type { SharedProps } from \"@bonniernews/dn-design-system-web/assets/types/shared-props.ts\";\nimport { formatClassString } from \"@bonniernews/dn-design-system-web/helpers/formatClassString.ts\";\nimport { ComponentChildren } from \"preact\";\n\nexport interface TeaserCardsProps extends SharedProps {\n areaType?: 'right' | 'bauta' | 'bautaxl';\n targetLink?: string;\n theme?: 'kultur' | 'nyheter';\n children: ComponentChildren;\n}\n\n/**\n * - GitHub: [BonnierNews/dn-design-system/../web/src/components/teaser-card](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/teaser-card)\n * - Storybook: [Subcomponents > TeaserCard](https://designsystem.dn.se/?path=/docs/section-subcomponents-teaserdot--docs)\n *\n * The component will not include styling by itself. Make sure to include the right styles for the component. See example below:\n * `@use '@bonniernews/dn-design-system-web/assets/teaser/teaser.scss'`\n */\nexport const TeaserCard = ({ areaType, targetLink, theme = 'nyheter', classNames, attributes, children }: TeaserCardsProps) => {\n const componentClassName = 'ds-teaser';\n\n const classes = formatClassString([\n componentClassName,\n areaType && `${componentClassName}--${areaType}`,\n areaType == 'bauta' && 'ds-dark',\n `ds-theme--${theme}`,\n classNames,\n ])\n\n if (targetLink) {\n return (\n <a className={classes} href={targetLink } {...attributes}>\n { children }\n </a>\n );\n }\n\n return (\n <div className={classes}{...attributes}>\n { children }\n </div>\n );\n};\n", "import { ComponentChildren } from \"preact\";\n\ninterface MediaProps {\n mediaHtml?: string;\n rounded?: boolean;\n}\n\nexport const Media = ({ mediaHtml, rounded }: MediaProps) => {\n const classNames = 'ds-teaser__media' + (rounded ? ' ds-teaser__media--rounded' : '');\n return mediaHtml ? (<div className={classNames} dangerouslySetInnerHTML={{ __html: mediaHtml }} />) : (null)\n}\n\ninterface ContentProps {\n children: ComponentChildren;\n}\nexport const Content = ({ children }: ContentProps) => {\n return (<div className=\"ds-teaser__content\">\n {children}\n </div>)\n}\n\ninterface TitleProps {\n title?: string;\n}\nexport const Title = ({ title }: TitleProps) => {\n return title ? (<h2 className=\"ds-teaser__title\">{title}</h2>) : (null)\n}\n\ninterface BodyProps {\n text?: string;\n}\nexport const Body = ({ text }: BodyProps) => {\n return text ? (<p className=\"ds-teaser__text\">{text}</p>) : (null)\n}\n", "import type { SharedProps } from \"@bonniernews/dn-design-system-web/assets/types/shared-props.ts\";\nimport { TeaserCard } from \"@bonniernews/dn-design-system-web/components/teaser-card/teaser-card.tsx\";\nimport { formatClassString } from \"@bonniernews/dn-design-system-web/helpers/formatClassString.ts\";\nimport { Body, Content, Media, Title } from \"@bonniernews/dn-design-system-web/helpers/teaser.tsx\";\n\nexport interface TeaserOnSiteProps extends SharedProps {\n areaType?: 'right' | 'bauta' | 'bautaxl';\n targetLink?: string;\n theme?: 'kultur' | 'nyheter';\n mediaHtml?: string;\n title?: string;\n text?: string;\n}\n\n/**\n * Also known as \"P\u00E5 Plats-puffen\".\n *\n * In the CMS title will be set to a location like \"Kiev, Ukraina\" or \"USA\" and text is usually set to some author names like \"Jan Banan och Kalle Kula\"\n *\n * - GitHub: [BonnierNews/dn-design-system/../web/src/components/teaser-onsite](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/teaser-onsite)\n * - Storybook: [TeaserOnSite](https://designsystem.dn.se/?path=/docs/section-teaseronsite--docs)\n *\n * The component will not include styling by itself. Make sure to include the right styles for the component. See example below:\n * `@use '@bonniernews/dn-design-system-web/components/teaser-onsite/teaser-onsite.scss'`\n */\nexport const TeaserOnSite = ({ areaType, targetLink, theme = 'nyheter', classNames, attributes, mediaHtml, title, text }: TeaserOnSiteProps) => {\n\n const classes = formatClassString([\n \"ds-teaser--onsite\",\n classNames,\n ])\n\n return (\n <TeaserCard { ...{ areaType, targetLink, theme, classNames: classes, attributes }}>\n <Media { ...{ mediaHtml, rounded: true }} />\n <Content>\n <Title title={`P\u00C5 PLATS | ${title}`} />\n <Body { ...{ text }} />\n </Content>\n </TeaserCard>\n );\n};\n"],
|
|
5
|
+
"mappings": ";AAAO,IAAM,oBAAoB,CAAC,iBAAqD;AACrF,SAAO,aAAa,OAAO,OAAK,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG;AAC/C;;;AC6BM;AAbC,IAAM,aAAa,CAAC,EAAE,UAAU,YAAY,QAAQ,WAAW,YAAY,YAAY,SAAS,MAAwB;AAC7H,QAAM,qB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