@amboss/design-system 4.6.6 → 4.7.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.
@@ -0,0 +1,4 @@
1
+ /** Every @font-face rule for the AMBOSS web fonts, with absolute CDN URLs. Put it in a <style> tag. */
2
+ declare const FONT_STYLESHEET: string;
3
+
4
+ export { FONT_STYLESHEET };
@@ -0,0 +1,2 @@
1
+ /* Generated by amboss-design-system, do not edit by hand. */
2
+ exports.FONT_STYLESHEET = "/* Generated by amboss-design-system, do not edit by hand. */\n@font-face {\n font-family: Lato;\n font-weight: 300;\n font-style: normal;\n font-display: swap;\n src: url(\"https://global-assets-de-production.amboss.com/public/fonts/Lato-Light.2d33f0f3.woff2\") format(\"woff2\");\n}\n@font-face {\n font-family: Lato-Light;\n font-weight: 300;\n font-style: normal;\n font-display: swap;\n src: url(\"https://global-assets-de-production.amboss.com/public/fonts/Lato-Light.2d33f0f3.woff2\") format(\"woff2\");\n}\n@font-face {\n font-family: Lato;\n font-weight: 300;\n font-style: italic;\n font-display: swap;\n src: url(\"https://global-assets-de-production.amboss.com/public/fonts/Lato-LightItalic.bb4c52a2.woff2\") format(\"woff2\");\n}\n@font-face {\n font-family: Lato-Light;\n font-weight: 300;\n font-style: italic;\n font-display: swap;\n src: url(\"https://global-assets-de-production.amboss.com/public/fonts/Lato-LightItalic.bb4c52a2.woff2\") format(\"woff2\");\n}\n@font-face {\n font-family: Lato;\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n src: url(\"https://global-assets-de-production.amboss.com/public/fonts/Lato-Regular.3f449a25.woff2\") format(\"woff2\");\n}\n@font-face {\n font-family: Lato-Regular;\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n src: url(\"https://global-assets-de-production.amboss.com/public/fonts/Lato-Regular.3f449a25.woff2\") format(\"woff2\");\n}\n@font-face {\n font-family: Lato;\n font-weight: 400;\n font-style: italic;\n font-display: swap;\n src: url(\"https://global-assets-de-production.amboss.com/public/fonts/Lato-Italic.35613e91.woff2\") format(\"woff2\");\n}\n@font-face {\n font-family: Lato;\n font-weight: 600;\n font-style: normal;\n font-display: swap;\n src: url(\"https://global-assets-de-production.amboss.com/public/fonts/Lato-SemiBold.3394db08.woff2\") format(\"woff2\");\n}\n@font-face {\n font-family: Lato;\n font-weight: 700;\n font-style: normal;\n font-display: swap;\n src: url(\"https://global-assets-de-production.amboss.com/public/fonts/Lato-Bold.15974cf4.woff2\") format(\"woff2\");\n}\n@font-face {\n font-family: Lato;\n font-weight: 700;\n font-style: italic;\n font-display: swap;\n src: url(\"https://global-assets-de-production.amboss.com/public/fonts/Lato-BoldItalic.954b2c4d.woff2\") format(\"woff2\");\n}\n@font-face {\n font-family: Lato;\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n src: url(\"https://global-assets-de-production.amboss.com/public/fonts/Lato-Black.19945023.woff2\") format(\"woff2\");\n}\n@font-face {\n font-family: Lato;\n font-weight: 300;\n font-style: normal;\n font-display: swap;\n unicode-range: U+2190-2193, U+21A9, U+21C5, U+21E5, U+21E7, U+2303, U+2318, U+2325, U+232B;\n src: url(\"https://global-assets-de-production.amboss.com/public/fonts/AmbossSymbols-Light.dbcceb51.woff2\") format(\"woff2\");\n}\n@font-face {\n font-family: Lato;\n font-weight: 300;\n font-style: italic;\n font-display: swap;\n unicode-range: U+2190-2193, U+21A9, U+21C5, U+21E5, U+21E7, U+2303, U+2318, U+2325, U+232B;\n src: url(\"https://global-assets-de-production.amboss.com/public/fonts/AmbossSymbols-LightItalic.622079d9.woff2\") format(\"woff2\");\n}\n@font-face {\n font-family: Lato;\n font-weight: 400;\n font-style: normal;\n font-display: swap;\n unicode-range: U+2190-2193, U+21A9, U+21C5, U+21E5, U+21E7, U+2303, U+2318, U+2325, U+232B;\n src: url(\"https://global-assets-de-production.amboss.com/public/fonts/AmbossSymbols-Regular.4c95e0a5.woff2\") format(\"woff2\");\n}\n@font-face {\n font-family: Lato;\n font-weight: 400;\n font-style: italic;\n font-display: swap;\n unicode-range: U+2190-2193, U+21A9, U+21C5, U+21E5, U+21E7, U+2303, U+2318, U+2325, U+232B;\n src: url(\"https://global-assets-de-production.amboss.com/public/fonts/AmbossSymbols-Italic.2d687c9b.woff2\") format(\"woff2\");\n}\n@font-face {\n font-family: Lato;\n font-weight: 600;\n font-style: normal;\n font-display: swap;\n unicode-range: U+2190-2193, U+21A9, U+21C5, U+21E5, U+21E7, U+2303, U+2318, U+2325, U+232B;\n src: url(\"https://global-assets-de-production.amboss.com/public/fonts/AmbossSymbols-SemiBold.59e2c1ef.woff2\") format(\"woff2\");\n}\n@font-face {\n font-family: Lato;\n font-weight: 700;\n font-style: normal;\n font-display: swap;\n unicode-range: U+2190-2193, U+21A9, U+21C5, U+21E5, U+21E7, U+2303, U+2318, U+2325, U+232B;\n src: url(\"https://global-assets-de-production.amboss.com/public/fonts/AmbossSymbols-Bold.3c034c2e.woff2\") format(\"woff2\");\n}\n@font-face {\n font-family: Lato;\n font-weight: 700;\n font-style: italic;\n font-display: swap;\n unicode-range: U+2190-2193, U+21A9, U+21C5, U+21E5, U+21E7, U+2303, U+2318, U+2325, U+232B;\n src: url(\"https://global-assets-de-production.amboss.com/public/fonts/AmbossSymbols-BoldItalic.9c89ede8.woff2\") format(\"woff2\");\n}\n@font-face {\n font-family: Lato;\n font-weight: 900;\n font-style: normal;\n font-display: swap;\n unicode-range: U+2190-2193, U+21A9, U+21C5, U+21E5, U+21E7, U+2303, U+2318, U+2325, U+232B;\n src: url(\"https://global-assets-de-production.amboss.com/public/fonts/AmbossSymbols-Black.2284130e.woff2\") format(\"woff2\");\n}\n";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amboss/design-system",
3
- "version": "4.6.6",
3
+ "version": "4.7.0",
4
4
  "description": "the design system for AMBOSS products",
5
5
  "author": "AMBOSS",
6
6
  "license": "ISC",
@@ -35,7 +35,12 @@
35
35
  "import": "./build/cjs/*.js",
36
36
  "require": "./build/cjs/*.js"
37
37
  },
38
- "./scss/*": "./build/scss/*.scss"
38
+ "./scss/*": "./build/scss/*.scss",
39
+ "./fonts": {
40
+ "types": "./build/fonts/fontStylesheet.d.ts",
41
+ "import": "./build/fonts/fontStylesheet.js",
42
+ "require": "./build/fonts/fontStylesheet.js"
43
+ }
39
44
  },
40
45
  "sideEffects": false,
41
46
  "bugs": {
@@ -118,6 +123,7 @@
118
123
  "build:icons:ci": "node ./scripts/build-mobile-icon-assets.mts",
119
124
  "fonts:check-coverage": "node ./scripts/fonts/check-glyph-coverage.mts",
120
125
  "fonts:css": "node ./scripts/fonts/generate-fonts-css.mts",
126
+ "fonts:package": "node ./scripts/fonts/package-fonts-css.mts",
121
127
  "fonts:prepare-upload": "node ./scripts/fonts/prepare-font-cdn-upload.mts",
122
128
  "fonts:release": "bun run fonts:prepare-upload && bun run fonts:upload && bun run fonts:verify",
123
129
  "fonts:build": "node ./scripts/fonts/build-fonts.mts",