@bonniernews/dn-design-system-web 22.2.3 → 23.0.0
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 +19 -0
- package/components/button/README.md +3 -3
- package/components/button-toggle/README.md +1 -1
- package/components/checkbox/README-NJK.md +43 -0
- package/components/checkbox/README.md +26 -43
- package/components/divider/README.md +1 -1
- package/components/icon-button/README.md +1 -1
- package/components/icon-button-toggle/README.md +1 -1
- package/components/list-item/list-item-types.ts +113 -0
- package/components/list-item/list-item.js +1 -1
- package/components/radio-button/README-NJK.md +49 -0
- package/components/radio-button/README.md +35 -49
- package/components/switch/README-NJK.md +42 -0
- package/components/switch/README.md +28 -42
- package/package.json +1 -1
- package/preact/assets/form-field/form-field.d.ts +12 -0
- package/preact/components/button/button-types.d.ts +73 -0
- package/preact/components/checkbox/checkbox.d.ts +23 -0
- package/preact/components/checkbox/checkbox.js +94 -0
- package/preact/components/checkbox/checkbox.js.map +7 -0
- package/preact/components/list-item/list-item-types.d.ts +82 -0
- package/preact/components/list-item/list-item.d.ts +2 -0
- package/preact/components/list-item/list-item.js +573 -0
- package/preact/components/list-item/list-item.js.map +7 -0
- package/preact/components/radio-button/radio-button.d.ts +30 -0
- package/preact/components/radio-button/radio-button.js +94 -0
- package/preact/components/radio-button/radio-button.js.map +7 -0
- package/preact/components/switch/switch.d.ts +26 -0
- package/preact/components/switch/switch.js +68 -0
- package/preact/components/switch/switch.js.map +7 -0
- package/preact/components/teaser-card/teaser-card.d.ts +2 -1
- package/preact/components/teaser-card/teaser-card.js.map +2 -2
- package/preact/components/teaser-onsite/teaser-onsite.js.map +2 -2
- package/tsconfig.json +2 -1
- package/variables/colors-css-variables.json +1 -0
- /package/components/list-item/{README.md → README-NJK.md} +0 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// ../src/helpers/formatClassString.ts
|
|
2
|
+
var formatClassString = (classesArray) => {
|
|
3
|
+
return classesArray.filter((x) => !!x).join(" ");
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
// ../src/components/switch/switch.tsx
|
|
7
|
+
import { Fragment, jsx, jsxs } from "preact/jsx-runtime";
|
|
8
|
+
var Switch = ({
|
|
9
|
+
name = "ds-switch",
|
|
10
|
+
checked,
|
|
11
|
+
showMeta = false,
|
|
12
|
+
metaOn = "P\xE5",
|
|
13
|
+
metaOff = "Av",
|
|
14
|
+
disabled,
|
|
15
|
+
stripLabel,
|
|
16
|
+
forcePx,
|
|
17
|
+
classNames,
|
|
18
|
+
attributes
|
|
19
|
+
}) => {
|
|
20
|
+
const componentClassName = "ds-switch";
|
|
21
|
+
const classes = formatClassString([componentClassName, forcePx && "ds-force-px", classNames]);
|
|
22
|
+
return /* @__PURE__ */ jsxs("div", { className: classes, children: [
|
|
23
|
+
/* @__PURE__ */ jsx(
|
|
24
|
+
"input",
|
|
25
|
+
{
|
|
26
|
+
type: "checkbox",
|
|
27
|
+
id: name,
|
|
28
|
+
name,
|
|
29
|
+
defaultChecked: checked,
|
|
30
|
+
disabled,
|
|
31
|
+
...attributes
|
|
32
|
+
}
|
|
33
|
+
),
|
|
34
|
+
stripLabel ? /* @__PURE__ */ jsx("div", { className: `${componentClassName}__inner`, children: /* @__PURE__ */ jsx(
|
|
35
|
+
SwitchInner,
|
|
36
|
+
{
|
|
37
|
+
...{
|
|
38
|
+
checked,
|
|
39
|
+
showMeta,
|
|
40
|
+
metaOn,
|
|
41
|
+
metaOff,
|
|
42
|
+
componentClassName
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
) }) : /* @__PURE__ */ jsx("label", { className: `${componentClassName}__inner`, tabIndex: 0, htmlFor: name, children: /* @__PURE__ */ jsx(
|
|
46
|
+
SwitchInner,
|
|
47
|
+
{
|
|
48
|
+
...{
|
|
49
|
+
checked,
|
|
50
|
+
showMeta,
|
|
51
|
+
metaOn,
|
|
52
|
+
metaOff,
|
|
53
|
+
componentClassName
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
) })
|
|
57
|
+
] });
|
|
58
|
+
};
|
|
59
|
+
var SwitchInner = ({ showMeta, checked, metaOn, metaOff, componentClassName }) => {
|
|
60
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
61
|
+
showMeta && /* @__PURE__ */ jsx("div", { className: `${componentClassName}__meta`, children: /* @__PURE__ */ jsx("span", { children: checked ? metaOn : metaOff }) }),
|
|
62
|
+
/* @__PURE__ */ jsx("span", { className: `${componentClassName}__box`, children: /* @__PURE__ */ jsx("span", { className: `${componentClassName}__knob` }) })
|
|
63
|
+
] });
|
|
64
|
+
};
|
|
65
|
+
export {
|
|
66
|
+
Switch
|
|
67
|
+
};
|
|
68
|
+
//# sourceMappingURL=switch.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 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 classNames?: string\n forcePx?: boolean\n attributes?: {}\n}\n\nexport type SwitchInnerProps = Pick<SwitchProps, 'checked' | '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 {...attributes}\n />\n {stripLabel ? (\n <div className={`${componentClassName}__inner`}>\n <SwitchInner\n {...{\n checked,\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 checked,\n showMeta,\n metaOn,\n metaOff,\n componentClassName,\n }}\n />\n </label>\n )}\n </div>\n )\n}\n\nconst SwitchInner = ({ showMeta, checked, metaOn, metaOff, componentClassName }: SwitchInnerProps) => {\n return (\n <>\n {showMeta && (\n <div className={`${componentClassName}__meta`}>\n <span>{checked ? metaOn : 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;;;AC0CI,SAwCA,UAvCE,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,QACC,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,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,UACA;AAAA,QACF;AAAA;AAAA,IACF,GACF;AAAA,KAEJ;AAEJ;AAEA,IAAM,cAAc,CAAC,EAAE,UAAU,SAAS,QAAQ,SAAS,mBAAmB,MAAwB;AACpG,SACE,iCACG;AAAA,gBACC,oBAAC,SAAI,WAAW,GAAG,kBAAkB,UACnC,8BAAC,UAAM,oBAAU,SAAS,SAAQ,GACpC;AAAA,IAEF,oBAAC,UAAK,WAAW,GAAG,kBAAkB,SACpC,8BAAC,UAAK,WAAW,GAAG,kBAAkB,UAAU,GAClD;AAAA,KACF;AAEJ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ComponentChildren } from "preact";
|
|
1
2
|
export interface TeaserCardsProps {
|
|
2
3
|
areaType?: 'right' | 'bauta' | 'bautaxl';
|
|
3
4
|
targetLink?: string;
|
|
@@ -5,7 +6,7 @@ export interface TeaserCardsProps {
|
|
|
5
6
|
classes?: string;
|
|
6
7
|
/** Ex. { target: "_blank", "data-test": "lorem ipsum" } */
|
|
7
8
|
attributes?: object;
|
|
8
|
-
children:
|
|
9
|
+
children: ComponentChildren;
|
|
9
10
|
}
|
|
10
11
|
/**
|
|
11
12
|
* - GitHub: [BonnierNews/dn-design-system/../web/src/components/teaser-card](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/teaser-card)
|
|
@@ -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\";\n\nexport interface TeaserCardsProps {\n areaType?: 'right' | 'bauta' | 'bautaxl';\n targetLink?: string;\n theme?: 'kultur' | 'nyheter' | 'sport' | 'ekonomi' | 'sthlm';\n classes?: string;\n /** Ex. { target: \"_blank\", \"data-test\": \"lorem ipsum\" } */\n attributes?: object;\n children:
|
|
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 { 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' | 'sport' | 'ekonomi' | 'sthlm';\n classes?: string;\n /** Ex. { target: \"_blank\", \"data-test\": \"lorem ipsum\" } */\n attributes?: object;\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', classes, attributes, children }: TeaserCardsProps) => {\n const componentClassName = 'ds-teaser';\n\n const classNames = formatClassString([\n componentClassName,\n areaType && `${componentClassName}--${areaType}`,\n areaType == 'bauta' && 'ds-dark',\n `ds-theme--${theme}`,\n classes,\n ])\n\n if (targetLink) {\n return (\n <a className={classNames} href={targetLink } {...attributes}>\n { children }\n </a>\n );\n }\n\n return (\n <div className={classNames}{...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;;;AC+BM;AAbC,IAAM,aAAa,CAAC,EAAE,UAAU,YAAY,QAAQ,WAAW,SAAS,YAAY,SAAS,MAAwB;AAC1H,QAAM,qBAAqB;AAE3B,QAAM,aAAa,kBAAkB;AAAA,IACnC;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,YAAY,MAAM,YAAc,GAAG,YAC7C,UACJ;AAAA,EAEJ;AAEA,SACE,oBAAC,SAAI,WAAW,YAAY,GAAG,YAC3B,UACJ;AAEJ;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -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\";\n\nexport interface TeaserCardsProps {\n areaType?: 'right' | 'bauta' | 'bautaxl';\n targetLink?: string;\n theme?: 'kultur' | 'nyheter' | 'sport' | 'ekonomi' | 'sthlm';\n classes?: string;\n /** Ex. { target: \"_blank\", \"data-test\": \"lorem ipsum\" } */\n attributes?: object;\n children:
|
|
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 { 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' | 'sport' | 'ekonomi' | 'sthlm';\n classes?: string;\n /** Ex. { target: \"_blank\", \"data-test\": \"lorem ipsum\" } */\n attributes?: object;\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', classes, attributes, children }: TeaserCardsProps) => {\n const componentClassName = 'ds-teaser';\n\n const classNames = formatClassString([\n componentClassName,\n areaType && `${componentClassName}--${areaType}`,\n areaType == 'bauta' && 'ds-dark',\n `ds-theme--${theme}`,\n classes,\n ])\n\n if (targetLink) {\n return (\n <a className={classNames} href={targetLink } {...attributes}>\n { children }\n </a>\n );\n }\n\n return (\n <div className={classNames}{...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 { 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\";\nexport interface TeaserOnSiteProps {\n areaType?: 'right' | 'bauta' | 'bautaxl';\n targetLink?: string;\n theme?: 'kultur' | 'nyheter' | 'sport' | 'ekonomi' | 'sthlm';\n classNames?: string;\n /** Ex. { target: \"_blank\", \"data-test\": \"lorem ipsum\" } */\n attributes?: object;\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, 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;;;AC+BM;AAbC,IAAM,aAAa,CAAC,EAAE,UAAU,YAAY,QAAQ,WAAW,SAAS,YAAY,SAAS,MAAwB;AAC1H,QAAM,qBAAqB;AAE3B,QAAM,aAAa,kBAAkB;AAAA,IACnC;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,YAAY,MAAM,YAAc,GAAG,YAC7C,UACJ;AAAA,EAEJ;AAEA,SACE,oBAAC,SAAI,WAAW,YAAY,GAAG,YAC3B,UACJ;AAEJ;;;ACnCsB,gBAAAA,YAAA;AAFf,IAAM,QAAQ,CAAC,EAAE,WAAW,QAAQ,MAAkB;AAC3D,QAAM,aAAa,sBAAsB,UAAU,+BAA+B;AAClF,SAAO,YAAa,gBAAAA,KAAC,SAAI,WAAW,YAAY,yBAAyB,EAAE,QAAQ,UAAU,GAAG,IAAO;AACzG;AAKO,IAAM,UAAU,CAAC,EAAE,SAAS,MAAoB;AACrD,SAAQ,gBAAAA,KAAC,SAAI,WAAU,sBACpB,UACH;AACF;AAKO,IAAM,QAAQ,CAAC,EAAE,MAAM,MAAkB;AAC9C,SAAO,QAAS,gBAAAA,KAAC,QAAG,WAAU,oBAAoB,iBAAM,IAAU;AACpE;AAKO,IAAM,OAAO,CAAC,EAAE,KAAK,MAAiB;AAC3C,SAAO,OAAQ,gBAAAA,KAAC,OAAE,WAAU,mBAAmB,gBAAK,IAAS;AAC/D;;;ACEM,gBAAAC,MACA,YADA;AATC,IAAM,eAAe,CAAC,EAAE,UAAU,YAAY,QAAQ,WAAW,YAAY,YAAY,WAAW,OAAO,KAAK,MAAyB;AAE9I,QAAM,UAAU,kBAAkB;AAAA,IAChC;AAAA,IACA;AAAA,EACF,CAAC;AAED,SACE,qBAAC,cAAa,GAAG,EAAE,UAAU,YAAY,OAAO,SAAS,WAAW,GAClE;AAAA,oBAAAA,KAAC,SAAQ,GAAG,EAAE,WAAW,SAAS,KAAK,GAAI;AAAA,IAC3C,qBAAC,WACC;AAAA,sBAAAA,KAAC,SAAM,OAAO,iBAAc,KAAK,IAAI;AAAA,MACrC,gBAAAA,KAAC,QAAO,GAAG,EAAE,KAAK,GAAG;AAAA,OACvB;AAAA,KACF;AAEJ;",
|
|
6
6
|
"names": ["jsx", "jsx"]
|
|
7
7
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extends": "@bonniernews/tsconfig",
|
|
3
|
-
"include": ["components/**/*.tsx", "types-lib/**/*.ts", "index.d.ts"],
|
|
3
|
+
"include": ["components/**/*.tsx", "assets/**/*.tsx", "types-lib/**/*.ts", "index.d.ts"],
|
|
4
4
|
"compilerOptions": {
|
|
5
5
|
"moduleResolution": "Bundler",
|
|
6
6
|
"allowJs": true,
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"types-lib/*.ts"
|
|
17
17
|
],
|
|
18
18
|
"jsx": "react-jsx",
|
|
19
|
+
"jsxImportSource": "preact",
|
|
19
20
|
"jsxFactory": "",
|
|
20
21
|
"jsxFragmentFactory": "",
|
|
21
22
|
},
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"surface-culture": "var(--ds-color-surface-culture)",
|
|
11
11
|
"surface-breaking": "var(--ds-color-surface-breaking)",
|
|
12
12
|
"surface-overlay": "var(--ds-color-surface-overlay)",
|
|
13
|
+
"surface-native": "var(--ds-color-surface-native)",
|
|
13
14
|
"border-primary": "var(--ds-color-border-primary)",
|
|
14
15
|
"border-primary-strong": "var(--ds-color-border-primary-strong)",
|
|
15
16
|
"border-primary-strongest": "var(--ds-color-border-primary-strongest)",
|
|
File without changes
|