@skyscanner/backpack-web 42.8.0-dev-v24339511202.1 → 42.8.0-dev-v24388551538.1
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/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2Control.js +1 -1
- package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2HiddenInput.js +1 -1
- package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2Label.js +1 -1
- package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2Root.js +1 -1
- package/bpk-component-checkbox-card/src/BpkCheckboxCard.js +1 -1
- package/bpk-component-checkbox-card/src/BpkCheckboxCardRoot.js +1 -1
- package/bpk-component-layout/src/BpkBox.js +1 -1
- package/bpk-component-layout/src/BpkFlex.js +1 -1
- package/bpk-component-layout/src/BpkGrid.js +1 -1
- package/bpk-component-layout/src/BpkGridItem.js +1 -1
- package/bpk-component-layout/src/BpkProvider.js +3 -2
- package/bpk-component-layout/src/BpkStack.js +1 -1
- package/bpk-component-layout/src/theme.js +1 -1
- package/bpk-component-layout/src/types.d.ts +4 -1
- package/bpk-component-modal/src/BpkModalV3/BpkModalV3CloseTrigger/BpkModalV3CloseTrigger.js +1 -1
- package/bpk-component-modal/src/BpkModalV3/BpkModalV3Content/BpkModalV3Content.js +1 -1
- package/bpk-component-modal/src/BpkModalV3/BpkModalV3Description/BpkModalV3Description.js +1 -1
- package/bpk-component-modal/src/BpkModalV3/BpkModalV3Portal/BpkModalV3Portal.js +1 -1
- package/bpk-component-modal/src/BpkModalV3/BpkModalV3Root/BpkModalV3Root.js +1 -1
- package/bpk-component-modal/src/BpkModalV3/BpkModalV3Scrim/BpkModalV3Scrim.js +1 -1
- package/bpk-component-modal/src/BpkModalV3/BpkModalV3Title/BpkModalV3Title.js +1 -1
- package/bpk-component-modal/src/BpkModalV3/BpkModalV3Trigger/BpkModalV3Trigger.js +1 -1
- package/bpk-component-segmented-control/src/BpkSegmentedControlV2/BpkSegmentedControlV2.js +2 -1
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import { Checkbox } from '@ark-ui/react';
|
|
19
|
+
import { Checkbox } from '@ark-ui/react/checkbox';
|
|
20
20
|
import { cssModules } from "../../../bpk-react-utils";
|
|
21
21
|
import STYLES from "./BpkCheckboxV2.module.css";
|
|
22
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import { Checkbox } from '@ark-ui/react';
|
|
19
|
+
import { Checkbox } from '@ark-ui/react/checkbox';
|
|
20
20
|
|
|
21
21
|
// Renders Ark's visually hidden native <input type="checkbox">.
|
|
22
22
|
// Include when the checkbox is inside a <form> for native form submission.
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import { Checkbox } from '@ark-ui/react';
|
|
19
|
+
import { Checkbox } from '@ark-ui/react/checkbox';
|
|
20
20
|
import { cssModules } from "../../../bpk-react-utils";
|
|
21
21
|
import STYLES from "./BpkCheckboxV2.module.css";
|
|
22
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import { Checkbox } from '@ark-ui/react';
|
|
19
|
+
import { Checkbox } from '@ark-ui/react/checkbox';
|
|
20
20
|
import { cssModules, getDataComponentAttribute } from "../../../bpk-react-utils";
|
|
21
21
|
import STYLES from "./BpkCheckboxV2.module.css";
|
|
22
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import { CheckboxHiddenInput } from '@ark-ui/react';
|
|
19
|
+
import { CheckboxHiddenInput } from '@ark-ui/react/checkbox';
|
|
20
20
|
import { withButtonAlignment } from "../../bpk-component-icon";
|
|
21
21
|
import TickCircleIcon from "../../bpk-component-icon/sm/tick-circle";
|
|
22
22
|
import { BpkSpinner, SPINNER_TYPES } from "../../bpk-component-spinner";
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import { useMemo } from 'react';
|
|
20
|
-
import { CheckboxRoot } from '@ark-ui/react';
|
|
20
|
+
import { CheckboxRoot } from '@ark-ui/react/checkbox';
|
|
21
21
|
import { withButtonAlignment } from "../../bpk-component-icon";
|
|
22
22
|
import TickCircleIcon from "../../bpk-component-icon/sm/tick-circle";
|
|
23
23
|
import { cssModules } from "../../bpk-react-utils";
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import { forwardRef } from 'react';
|
|
20
|
-
import { Box } from '@chakra-ui/react';
|
|
20
|
+
import { Box } from '@chakra-ui/react/box';
|
|
21
21
|
import { cssModules, getDataComponentAttribute } from "../../bpk-react-utils";
|
|
22
22
|
import { processBpkComponentProps } from "./tokenUtils";
|
|
23
23
|
import STYLES from "./BpkLayout.module.css";
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import { forwardRef } from 'react';
|
|
20
|
-
import { Flex } from '@chakra-ui/react';
|
|
20
|
+
import { Flex } from '@chakra-ui/react/flex';
|
|
21
21
|
import { cssModules, getDataComponentAttribute } from "../../bpk-react-utils";
|
|
22
22
|
import { processBpkComponentProps } from "./tokenUtils";
|
|
23
23
|
import STYLES from "./BpkLayout.module.css";
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import { forwardRef } from 'react';
|
|
20
|
-
import { Grid } from '@chakra-ui/react';
|
|
20
|
+
import { Grid } from '@chakra-ui/react/grid';
|
|
21
21
|
import { cssModules, getDataComponentAttribute } from "../../bpk-react-utils";
|
|
22
22
|
import { processBpkComponentProps } from "./tokenUtils";
|
|
23
23
|
import STYLES from "./BpkLayout.module.css";
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import { forwardRef } from 'react';
|
|
20
|
-
import { GridItem } from '@chakra-ui/react';
|
|
20
|
+
import { GridItem } from '@chakra-ui/react/grid';
|
|
21
21
|
import { cssModules, getDataComponentAttribute } from "../../bpk-react-utils";
|
|
22
22
|
import { processBpkComponentProps } from "./tokenUtils";
|
|
23
23
|
import STYLES from "./BpkLayout.module.css";
|
|
@@ -17,8 +17,9 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import { useEffect, useState } from 'react';
|
|
20
|
-
import { LocaleProvider } from '@ark-ui/react';
|
|
21
|
-
import {
|
|
20
|
+
import { LocaleProvider } from '@ark-ui/react/locale';
|
|
21
|
+
import { defaultBaseConfig } from '@chakra-ui/react/preset-base';
|
|
22
|
+
import { ChakraProvider, createSystem } from '@chakra-ui/react/styled-system';
|
|
22
23
|
import { createBpkConfig } from "./theme";
|
|
23
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
25
|
/**
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import { forwardRef } from 'react';
|
|
20
|
-
import { Stack, VStack, HStack } from '@chakra-ui/react';
|
|
20
|
+
import { Stack, VStack, HStack } from '@chakra-ui/react/stack';
|
|
21
21
|
import { cssModules, getDataComponentAttribute } from "../../bpk-react-utils";
|
|
22
22
|
import { processBpkComponentProps } from "./tokenUtils";
|
|
23
23
|
import STYLES from "./BpkLayout.module.css";
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import { defineConfig } from '@chakra-ui/react';
|
|
19
|
+
import { defineConfig } from '@chakra-ui/react/styled-system';
|
|
20
20
|
|
|
21
21
|
// Import tokens from Backpack foundations
|
|
22
22
|
// Note: Some tokens may not be in TypeScript definitions but exist at runtime
|
|
@@ -2,7 +2,10 @@ import type { HTMLAttributes, ReactNode } from 'react';
|
|
|
2
2
|
import type StackOptionKeys from './BpkStack.constant';
|
|
3
3
|
import type { BpkCommonLayoutProps } from './commonProps';
|
|
4
4
|
import type { BpkSpacingValue, BpkResponsiveValue, BpkBasisValue } from './tokens';
|
|
5
|
-
import type { BoxProps
|
|
5
|
+
import type { BoxProps } from '@chakra-ui/react/box';
|
|
6
|
+
import type { FlexProps } from '@chakra-ui/react/flex';
|
|
7
|
+
import type { GridProps, GridItemProps } from '@chakra-ui/react/grid';
|
|
8
|
+
import type { StackProps } from '@chakra-ui/react/stack';
|
|
6
9
|
/**
|
|
7
10
|
* Layout-level event props that should not be exposed on layout components.
|
|
8
11
|
* onClick is handled via BpkCommonLayoutProps; onFocus/onBlur are reintroduced
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import { Dialog } from '@ark-ui/react';
|
|
19
|
+
import { Dialog } from '@ark-ui/react/dialog';
|
|
20
20
|
|
|
21
21
|
// @ts-expect-error Untyped import. See `decisions/imports-ts-suppressions.md`.
|
|
22
22
|
import BpkCloseButton from "../../../../bpk-component-close-button";
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import { Dialog } from '@ark-ui/react';
|
|
19
|
+
import { Dialog } from '@ark-ui/react/dialog';
|
|
20
20
|
import { cssModules, getDataComponentAttribute } from "../../../../bpk-react-utils";
|
|
21
21
|
import { useModalType } from "../BpkModalV3Context";
|
|
22
22
|
import STYLES from "./BpkModalV3Content.module.css";
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import { Dialog } from '@ark-ui/react';
|
|
19
|
+
import { Dialog } from '@ark-ui/react/dialog';
|
|
20
20
|
import { getDataComponentAttribute } from "../../../../bpk-react-utils";
|
|
21
21
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
22
|
const BpkModalV3Description = ({
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import { useEffect, useState } from 'react';
|
|
20
|
-
import { Dialog } from '@ark-ui/react';
|
|
20
|
+
import { Dialog } from '@ark-ui/react/dialog';
|
|
21
21
|
import { durationBase } from '@skyscanner/bpk-foundations-web/tokens/base.es6';
|
|
22
22
|
import { getDataComponentAttribute, useBodyLock } from "../../../../bpk-react-utils";
|
|
23
23
|
import { ModalTypeProvider } from "../BpkModalV3Context";
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import { Dialog } from '@ark-ui/react';
|
|
19
|
+
import { Dialog } from '@ark-ui/react/dialog';
|
|
20
20
|
import { cssModules, getDataComponentAttribute } from "../../../../bpk-react-utils";
|
|
21
21
|
import { useModalType } from "../BpkModalV3Context";
|
|
22
22
|
import STYLES from "./BpkModalV3Scrim.module.css";
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import { Dialog } from '@ark-ui/react';
|
|
19
|
+
import { Dialog } from '@ark-ui/react/dialog';
|
|
20
20
|
import { cssModules, getDataComponentAttribute } from "../../../../bpk-react-utils";
|
|
21
21
|
import STYLES from "./BpkModalV3Title.module.css";
|
|
22
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
import { Dialog } from '@ark-ui/react';
|
|
19
|
+
import { Dialog } from '@ark-ui/react/dialog';
|
|
20
20
|
import { getDataComponentAttribute } from "../../../../bpk-react-utils";
|
|
21
21
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
22
|
const BpkModalV3Trigger = ({
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
import { useRef } from 'react';
|
|
20
|
-
import {
|
|
20
|
+
import { useLocaleContext } from '@ark-ui/react/locale';
|
|
21
|
+
import { SegmentGroup } from '@ark-ui/react/segment-group';
|
|
21
22
|
import { cssModules, getDataComponentAttribute } from "../../../bpk-react-utils";
|
|
22
23
|
import { SEGMENT_TYPES_V2 } from "./common-types";
|
|
23
24
|
import STYLES from "./BpkSegmentedControlV2.module.css";
|