@skyscanner/backpack-web 42.5.1 → 42.5.2

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.
@@ -18,19 +18,17 @@
18
18
 
19
19
  import { useEffect, useState } from 'react';
20
20
  import { LocaleProvider } from '@ark-ui/react';
21
- import { ChakraProvider, createSystem, defaultConfig } from '@chakra-ui/react';
21
+ import { ChakraProvider, createSystem, defaultBaseConfig } from '@chakra-ui/react';
22
22
  import { createBpkConfig } from "./theme";
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
24
  /**
25
- * Creates a Chakra UI system with Backpack token mappings
26
- * Chakra UI 3.0 uses `createSystem` with `defaultConfig` and custom config
25
+ * Creates a Chakra UI system with Backpack token mappings.
26
+ *
27
+ * Uses `defaultBaseConfig` (conditions + utilities only) instead of
28
+ * `defaultConfig` to avoid bundling ~141KB of unused component recipes.
29
+ * See: https://chakra-ui.com/guides/component-bundle-optimization
27
30
  */
28
- // Remove Chakra's global CSS to prevent style conflicts with Backpack components
29
- const {
30
- globalCss: _chakraGlobalCss,
31
- ...defaultConfigWithoutGlobalCss
32
- } = defaultConfig;
33
- const bpkSystem = createSystem(defaultConfigWithoutGlobalCss, createBpkConfig());
31
+ const bpkSystem = createSystem(defaultBaseConfig, createBpkConfig());
34
32
  // Fallback locale mapping used when no explicit locale is available on the document.
35
33
  // Maps DOM direction to minimal BCP 47 locales understood by Ark's isRTL() utility.
36
34
  // 'ar-SA' is the minimal RTL locale — Ark only uses it to derive dir='rtl'.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyscanner/backpack-web",
3
- "version": "42.5.1",
3
+ "version": "42.5.2",
4
4
  "description": "Backpack Design System web library",
5
5
  "repository": {
6
6
  "type": "git",