@bonniernews/dn-design-system-web 21.2.1-beta.0 → 22.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 +77 -29
- package/assets/teaser/teaser.scss +1 -32
- package/components/footer/README-NJK.md +75 -0
- package/components/footer/README.md +184 -71
- package/components/game-header/README.md +12 -36
- package/components/group-header/group-header.scss +1 -1
- package/components/spinner/README-NJK.md +37 -0
- package/components/spinner/README.md +10 -33
- package/components/teaser-image/teaser-image.scss +1 -1
- package/components/teaser-large/README.md +0 -1
- package/components/teaser-large/teaser-large.njk +4 -14
- package/components/teaser-large/teaser-large.scss +0 -16
- package/components/teaser-list-vertical/teaser-list-vertical.njk +1 -0
- package/components/teaser-native/teaser-native.njk +3 -5
- package/components/teaser-native/teaser-native.scss +6 -0
- package/components/teaser-onsite/README.md +8 -1
- package/components/teaser-onsite/teaser-onsite.njk +1 -5
- package/components/teaser-package/teaser-package.scss +6 -17
- package/components/teaser-slideshow/teaser-slideshow.scss +1 -1
- package/components/teaser-split/README.md +0 -1
- package/components/teaser-split/teaser-split.njk +3 -7
- package/components/teaser-split/teaser-split.scss +1 -3
- package/components/teaser-standard/README.md +0 -1
- package/components/teaser-standard/teaser-standard.njk +4 -8
- package/components/teaser-standard/teaser-standard.scss +6 -5
- package/foundations/helpers/colors.scss +6 -1
- package/foundations/variables/colorsCssVariables.scss +0 -4
- package/foundations/variables/colorsDnDarkTokens.scss +60 -64
- package/foundations/variables/colorsDnLightTokens.scss +51 -55
- package/foundations/variables/metrics.scss +1 -2
- package/foundations/variables/typographyFontWeight.scss +0 -1
- package/foundations/variables/typographyTokensList.scss +0 -1
- package/foundations/variables/typographyTokensScreenExtraLarge.scss +4 -11
- package/foundations/variables/typographyTokensScreenLarge.scss +3 -10
- package/foundations/variables/typographyTokensScreenSmall.scss +6 -13
- package/index.d.ts +4 -0
- package/package.json +4 -22
- package/preact/components/divider/divider.js +21 -0
- package/preact/components/divider/divider.js.map +7 -0
- package/preact/components/footer/footer.d.ts +33 -0
- package/preact/components/footer/footer.js +68 -0
- package/preact/components/footer/footer.js.map +7 -0
- package/preact/components/footer/logoWithPayoff.d.ts +1 -0
- package/preact/components/footer/logoWithPayoff.js +15 -0
- package/preact/components/footer/logoWithPayoff.js.map +7 -0
- package/preact/components/game-header/game-header.d.ts +18 -0
- package/preact/components/game-header/game-header.js +29 -0
- package/preact/components/game-header/game-header.js.map +7 -0
- package/preact/components/icon-sprite/icon-sprite.d.ts +18 -0
- package/preact/components/icon-sprite/icon-sprite.js +132 -0
- package/preact/components/icon-sprite/icon-sprite.js.map +7 -0
- package/preact/components/icon-with-wrapper/icon-with-wrapper.d.ts +23 -0
- package/{tokens-tmp/colors-css-variables.json → preact/components/icon-with-wrapper/icon-with-wrapper.js} +50 -6
- package/preact/components/icon-with-wrapper/icon-with-wrapper.js.map +7 -0
- package/preact/components/pictogram/pictogram.d.ts +17 -0
- package/preact/components/pictogram/pictogram.js +39 -0
- package/preact/components/pictogram/pictogram.js.map +7 -0
- package/preact/components/quote/quote.js +22 -0
- package/preact/components/quote/quote.js.map +7 -0
- package/preact/components/spinner/spinner.d.ts +16 -0
- package/preact/components/spinner/spinner.js +24 -0
- package/preact/components/spinner/spinner.js.map +7 -0
- package/preact/components/teaser-card/teaser-card.js +25 -0
- package/preact/components/teaser-card/teaser-card.js.map +7 -0
- package/preact/components/teaser-onsite/teaser-onsite.js +56 -0
- package/preact/components/teaser-onsite/teaser-onsite.js.map +7 -0
- package/preact/components/thematic-break/thematic-break.js +20 -0
- package/preact/components/thematic-break/thematic-break.js.map +7 -0
- package/preact/helpers/formatClassString.d.ts +1 -0
- package/tokens/colors-css-variables.json +1 -5
- package/tokens/colors-dark-mode.json +60 -64
- package/tokens/colors-light-mode.json +53 -57
- package/tokens/typography-list.json +0 -1
- package/tsconfig.json +3 -2
- package/types-lib/ds-color.d.ts +100 -0
- package/types-lib/ds-icon.d.ts +96 -0
- package/variables/colors-css-variables.json +18 -27
- package/.release-it-beta.cjs +0 -25
- package/.release-it.cjs +0 -39
- package/components/divider/divider.tsx +0 -28
- package/components/quote/quote.tsx +0 -34
- package/components/teaser-breaking/README-UXD.md +0 -0
- package/components/teaser-breaking/README.md +0 -46
- package/components/teaser-breaking/teaser-breaking.njk +0 -46
- package/components/teaser-breaking/teaser-breaking.scss +0 -52
- package/components/teaser-card/teaser-card.tsx +0 -44
- package/components/teaser-onsite/teaser-onsite.tsx +0 -43
- package/components/thematic-break/thematic-break.tsx +0 -27
- package/helpers/teaser.tsx +0 -32
- package/index.tsx +0 -8
- package/preact/components.cjs +0 -68
- package/preact/components.cjs.map +0 -7
- package/preact/components.esm.js +0 -45
- package/preact/components.esm.js.map +0 -7
- package/preact/index.d.ts +0 -6
- package/react/components/divider/divider.d.ts +0 -14
- package/react/components/quote/quote.d.ts +0 -16
- package/react/components/teaser-card/teaser-card.d.ts +0 -17
- package/react/components/teaser-onsite/teaser-onsite.d.ts +0 -23
- package/react/components/thematic-break/thematic-break.d.ts +0 -13
- package/react/components.cjs +0 -68
- package/react/components.cjs.map +0 -7
- package/react/components.esm.js +0 -45
- package/react/components.esm.js.map +0 -7
- package/react/index.d.ts +0 -6
- package/tokens-tmp/shadows-css-variables.json +0 -6
- package/tokens-tmp/spacing-base-list.json +0 -14
- package/tokens-tmp/spacing-detail-list.json +0 -18
- package/tsconfig-preact.json +0 -12
- package/tsconfig-react.json +0 -11
- /package/components/icon-sprite/{README.md → README-NJK.md} +0 -0
- /package/components/pictogram/{README.md → README-NJK.md} +0 -0
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../helpers/formatClassString.ts", "../components/divider/divider.tsx", "../components/thematic-break/thematic-break.tsx", "../components/quote/quote.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 DividerProps {\n variant?: 'soft' | 'medium' | 'hard';\n classNames?: string;\n attributes?: object;\n}\n\n/**\n * - GitHub: [BonnierNews/dn-design-system/../web/src/components/divider](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/divider)\n * - Storybook: [Divider](https://designsystem.dn.se/?path=/docs/basic-divider--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/divider/divider.scss'`\n */\nexport const Divider = ({ variant = 'soft', classNames, attributes }: DividerProps) => {\n const classes = formatClassString([\n 'ds-divider',\n `ds-divider--${variant}`,\n classNames\n ])\n\n return (\n <div className={classes} {...attributes}><hr /></div>\n );\n};\n\nexport default Divider;\n", "import { formatClassString } from \"@bonniernews/dn-design-system-web/helpers/formatClassString.ts\";\n\nexport interface ThematicBreakProps {\n classNames?: string;\n attributes?: object;\n}\n\n/**\n * - GitHub: [BonnierNews/dn-design-system/../web/src/components/thematic-break](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/thematic-break)\n * - Storybook: [ThematicBreak](https://designsystem.dn.se/?path=/docs/article-thematicbreak--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/thematic-break/thematic-break.scss'`\n */\n\nexport const ThematicBreak = ({ classNames, attributes }: ThematicBreakProps) => {\n const classes = formatClassString([\n 'ds-thematic-break',\n classNames\n ])\n\n return (\n <div className={classes} {...attributes}><hr /></div>\n );\n};\n\nexport default ThematicBreak;\n", "import { formatClassString } from \"@bonniernews/dn-design-system-web/helpers/formatClassString.ts\";\n\nexport interface QuoteProps {\n bodyHtml: string;\n theme?: 'kultur' | 'nyheter' | 'sport' | 'ekonomi' | 'sthlm';\n classNames?: string;\n /** Ex. { target: \"_blank\", \"data-test\": \"lorem ipsum\" } */\n attributes?: object;\n forcePx?: boolean;\n}\n\n/**\n * - GitHub: [BonnierNews/dn-design-system/../web/src/components/quote](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/quote)\n * - Storybook: [Quote](https://designsystem.dn.se/?path=/docs/article-quote--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/quote/quote.scss'`\n */\nexport const Quote = ({ bodyHtml, theme = 'nyheter', classNames, attributes, forcePx }: QuoteProps) => {\n const componentClassName = 'ds-quote';\n\n const classes = formatClassString([\n componentClassName,\n `ds-theme--${theme}`,\n forcePx && 'ds-force-px',\n classNames,\n ])\n\n const quoteHtml = `<span class=\"${componentClassName}__border\"></span> ${bodyHtml}`\n\n return (\n <blockquote dangerouslySetInnerHTML={{ __html: quoteHtml }} className={classes} {...attributes} />\n );\n};\n"],
|
|
5
|
-
"mappings": ";AAAO,IAAM,oBAAoB,CAAC,iBAAqD;AACrF,SAAO,aAAa,OAAO,OAAK,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG;AAC/C;;;ACqB6C;AARtC,IAAM,UAAU,CAAC,EAAE,UAAU,QAAQ,YAAY,WAAW,MAAoB;AACrF,QAAM,UAAU,kBAAkB;AAAA,IAChC;AAAA,IACA,eAAe,OAAO;AAAA,IACtB;AAAA,EACF,CAAC;AAED,SACE,oBAAC,SAAI,WAAW,SAAU,GAAG,YAAY,8BAAC,QAAG,GAAE;AAEnD;;;ACH6C,gBAAAA,YAAA;AAPtC,IAAM,gBAAgB,CAAC,EAAE,YAAY,WAAW,MAA0B;AAC/E,QAAM,UAAU,kBAAkB;AAAA,IAChC;AAAA,IACA;AAAA,EACF,CAAC;AAED,SACE,gBAAAA,KAAC,SAAI,WAAW,SAAU,GAAG,YAAY,0BAAAA,KAAC,QAAG,GAAE;AAEnD;;;ACOI,gBAAAC,YAAA;AAbG,IAAM,QAAQ,CAAC,EAAE,UAAU,QAAQ,WAAW,YAAY,YAAY,QAAQ,MAAkB;AACrG,QAAM,qBAAqB;AAE3B,QAAM,UAAU,kBAAkB;AAAA,IAChC;AAAA,IACA,aAAa,KAAK;AAAA,IAClB,WAAW;AAAA,IACX;AAAA,EACF,CAAC;AAED,QAAM,YAAY,gBAAgB,kBAAkB,qBAAqB,QAAQ;AAEjF,SACE,gBAAAA,KAAC,gBAAW,yBAAyB,EAAE,QAAQ,UAAU,GAAG,WAAW,SAAU,GAAG,YAAY;AAEpG;",
|
|
6
|
-
"names": ["jsx", "jsx"]
|
|
7
|
-
}
|
package/react/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"outer": "outer",
|
|
3
|
-
"outer-negative": "outer-negative",
|
|
4
|
-
"page-horizontal": "page-horizontal",
|
|
5
|
-
"page-top-small": "page-top-small",
|
|
6
|
-
"gap-vertical-static-medium": "gap-vertical-static-medium",
|
|
7
|
-
"gap-vertical-medium": "gap-vertical-medium",
|
|
8
|
-
"gap-vertical-static-large": "gap-vertical-static-large",
|
|
9
|
-
"gap-vertical-static-small": "gap-vertical-static-small",
|
|
10
|
-
"page-top-xsmall": "page-top-xsmall",
|
|
11
|
-
"teaser-vertical-small": "teaser-vertical-small",
|
|
12
|
-
"teaser-horizontal": "teaser-horizontal",
|
|
13
|
-
"teaser-vertical-medium": "teaser-vertical-medium",
|
|
14
|
-
"direkt-header-bottom": "direkt-header-bottom",
|
|
15
|
-
"spacing-sm": "spacing-sm",
|
|
16
|
-
"spacing-md": "spacing-md",
|
|
17
|
-
"spacing-lg": "spacing-lg"
|
|
18
|
-
}
|
package/tsconfig-preact.json
DELETED
package/tsconfig-react.json
DELETED
|
File without changes
|
|
File without changes
|