@treely/strapi-slices 1.0.2 → 1.0.3
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/strapi-slices.cjs.development.js +10 -8
- package/dist/strapi-slices.cjs.development.js.map +1 -1
- package/dist/strapi-slices.cjs.production.min.js +1 -1
- package/dist/strapi-slices.cjs.production.min.js.map +1 -1
- package/dist/strapi-slices.esm.js +10 -8
- package/dist/strapi-slices.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ContextProvider/ContextProvider.tsx +2 -1
- package/src/stories/Introduction.stories.mdx +13 -0
|
@@ -2297,6 +2297,13 @@ var rootMessagesEn = /*#__PURE__*/_extends({}, creditsAvailableBadgeMessagesEn,
|
|
|
2297
2297
|
var _templateObject$3;
|
|
2298
2298
|
var GLOBAL_STYLE = /*#__PURE__*/react$1.css(_templateObject$3 || (_templateObject$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n // GintoNord\n @font-face {\n font-family: 'GintoNord';\n src: url('", "/assets/v3/fonts/ABCGintoNord-Bold.woff2')\n format('woff2');\n font-style: normal;\n font-weight: 700;\n font-display: block;\n }\n // Inter\n @font-face {\n font-family: 'Inter';\n src: url('", "/assets/v3/fonts/Inter-Regular.woff2') format('woff2');\n font-style: normal;\n font-weight: 400;\n font-display: block;\n }\n @font-face {\n font-family: 'Inter';\n src: url('", "/assets/v3/fonts/Inter-Medium.woff2') format('woff2');\n font-style: normal;\n font-weight: 500;\n font-display: block;\n }\n @font-face {\n font-family: 'Inter';\n src: url('", "/assets/v3/fonts/Inter-SemiBold.woff2') format('woff2');\n font-style: normal;\n font-weight: 600;\n font-display: block;\n }\n @font-face {\n font-family: 'Inter';\n src: url('", "/assets/v3/fonts/Inter-Bold.woff2') format('woff2');\n font-style: normal;\n font-weight: 700;\n font-display: block;\n }\n // SpaceMono\n @font-face {\n font-family: 'SpaceMono';\n src: url('", "/assets/v3/fonts/SpaceMono-Bold.woff2') format('woff2');\n font-style: normal;\n font-weight: 700;\n font-display: block;\n }\n\n :root {\n --default-hero-height: calc(100vh - var(--boemly-space-24));\n }\n\n a {\n text-decoration: none;\n }\n"])), CDN_URI, CDN_URI, CDN_URI, CDN_URI, CDN_URI, CDN_URI);
|
|
2299
2299
|
|
|
2300
|
+
var FONT_CUSTOMIZATIONS = {
|
|
2301
|
+
body: 'Inter',
|
|
2302
|
+
heading: 'Inter',
|
|
2303
|
+
display: 'GintoNord',
|
|
2304
|
+
mono: 'SpaceMono'
|
|
2305
|
+
};
|
|
2306
|
+
|
|
2300
2307
|
var cache = /*#__PURE__*/reactIntl.createIntlCache();
|
|
2301
2308
|
var intlFactory = function intlFactory(locale) {
|
|
2302
2309
|
return reactIntl.createIntl({
|
|
@@ -2311,7 +2318,9 @@ var IntlContext = /*#__PURE__*/React.createContext( /*#__PURE__*/intlFactory('en
|
|
|
2311
2318
|
var ContextProvider = function ContextProvider(_ref) {
|
|
2312
2319
|
var children = _ref.children,
|
|
2313
2320
|
locale = _ref.locale;
|
|
2314
|
-
return React__default.default.createElement(boemly.BoemlyThemeProvider,
|
|
2321
|
+
return React__default.default.createElement(boemly.BoemlyThemeProvider, {
|
|
2322
|
+
fonts: FONT_CUSTOMIZATIONS
|
|
2323
|
+
}, React__default.default.createElement(react$1.Global, {
|
|
2315
2324
|
styles: {
|
|
2316
2325
|
GLOBAL_STYLE: GLOBAL_STYLE
|
|
2317
2326
|
}
|
|
@@ -2464,13 +2473,6 @@ var mergeBoundingBoxes = function mergeBoundingBoxes(boundingBoxes) {
|
|
|
2464
2473
|
return [minLeft, minBottom, maxRight, maxTop];
|
|
2465
2474
|
};
|
|
2466
2475
|
|
|
2467
|
-
var FONT_CUSTOMIZATIONS = {
|
|
2468
|
-
body: 'Inter',
|
|
2469
|
-
heading: 'Inter',
|
|
2470
|
-
display: 'GintoNord',
|
|
2471
|
-
mono: 'SpaceMono'
|
|
2472
|
-
};
|
|
2473
|
-
|
|
2474
2476
|
var messages = {
|
|
2475
2477
|
en: rootMessagesEn,
|
|
2476
2478
|
de: rootMessagesDe
|