@skyscanner/backpack-web 42.1.0 → 42.2.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.
Files changed (140) hide show
  1. package/bpk-component-banner-alert/src/BpkBannerAlert.js +0 -7
  2. package/bpk-component-breakpoint/src/BpkBreakpoint.js +3 -1
  3. package/bpk-component-calendar/src/utils.js +1 -1
  4. package/bpk-component-card/index.d.ts +4 -1
  5. package/bpk-component-card/index.js +3 -1
  6. package/bpk-component-card/src/BpkCardV2/BpkCardV2.d.ts +27 -0
  7. package/bpk-component-card/src/BpkCardV2/BpkCardV2.js +57 -0
  8. package/bpk-component-card/src/BpkCardV2/BpkCardV2.module.css +18 -0
  9. package/bpk-component-card/src/BpkCardV2/common-types.d.ts +124 -0
  10. package/bpk-component-card/src/BpkCardV2/common-types.js +102 -0
  11. package/bpk-component-card/src/BpkCardV2/subcomponents/Body.d.ts +36 -0
  12. package/bpk-component-card/src/BpkCardV2/subcomponents/Body.js +65 -0
  13. package/bpk-component-card/src/BpkCardV2/subcomponents/Divider.d.ts +13 -0
  14. package/bpk-component-card/src/BpkCardV2/subcomponents/Divider.js +37 -0
  15. package/bpk-component-card/src/BpkCardV2/subcomponents/Footer.d.ts +24 -0
  16. package/bpk-component-card/src/BpkCardV2/subcomponents/Footer.js +60 -0
  17. package/bpk-component-card/src/BpkCardV2/subcomponents/Header.d.ts +24 -0
  18. package/bpk-component-card/src/BpkCardV2/subcomponents/Header.js +60 -0
  19. package/bpk-component-card/src/BpkCardV2/subcomponents/Root.d.ts +28 -0
  20. package/bpk-component-card/src/BpkCardV2/subcomponents/Root.js +68 -0
  21. package/bpk-component-card/src/BpkCardV2/subcomponents/Section.d.ts +22 -0
  22. package/bpk-component-card/src/BpkCardV2/subcomponents/Section.js +53 -0
  23. package/bpk-component-card/src/BpkCardV2/subcomponents/resolveDirectionalPadding.d.ts +16 -0
  24. package/bpk-component-card/src/BpkCardV2/subcomponents/resolveDirectionalPadding.js +32 -0
  25. package/bpk-component-card-list/src/BpkCardList.module.css +1 -1
  26. package/bpk-component-card-list/src/BpkCardListRowRail/BpkCardListCarousel.js +3 -3
  27. package/bpk-component-chatbot-input/index.d.ts +7 -0
  28. package/bpk-component-chatbot-input/index.js +23 -0
  29. package/bpk-component-chatbot-input/src/BpkChatbotInput.d.ts +4 -0
  30. package/bpk-component-chatbot-input/src/BpkChatbotInput.js +118 -0
  31. package/bpk-component-chatbot-input/src/BpkChatbotInput.module.css +18 -0
  32. package/bpk-component-chatbot-input/src/InputField/InputField.d.ts +3 -0
  33. package/bpk-component-chatbot-input/src/InputField/InputField.js +82 -0
  34. package/bpk-component-chatbot-input/src/InputField.module.css +18 -0
  35. package/bpk-component-chatbot-input/src/SendButton/SendButton.d.ts +9 -0
  36. package/bpk-component-chatbot-input/src/SendButton/SendButton.js +47 -0
  37. package/bpk-component-chatbot-input/src/TextAreaField/TextAreaField.d.ts +10 -0
  38. package/bpk-component-chatbot-input/src/TextAreaField/TextAreaField.js +93 -0
  39. package/bpk-component-chatbot-input/src/TextAreaField.module.css +18 -0
  40. package/bpk-component-chatbot-input/src/common-types.d.ts +37 -0
  41. package/bpk-component-chatbot-input/src/common-types.js +23 -0
  42. package/bpk-component-chatbot-input/src/constants.d.ts +5 -0
  43. package/bpk-component-chatbot-input/src/constants.js +22 -0
  44. package/bpk-component-chatbot-input/src/hooks/index.d.ts +4 -0
  45. package/bpk-component-chatbot-input/src/hooks/index.js +22 -0
  46. package/bpk-component-chatbot-input/src/hooks/useChatbotInput.d.ts +32 -0
  47. package/bpk-component-chatbot-input/src/hooks/useChatbotInput.js +111 -0
  48. package/bpk-component-chatbot-input/src/hooks/useChatbotInputManager.d.ts +20 -0
  49. package/bpk-component-chatbot-input/src/hooks/useChatbotInputManager.js +83 -0
  50. package/bpk-component-chatbot-input/src/hooks/useInputHandlers.d.ts +8 -0
  51. package/bpk-component-chatbot-input/src/hooks/useInputHandlers.js +54 -0
  52. package/bpk-component-chatbot-input/src/hooks/useTextAreaAutoResize.d.ts +22 -0
  53. package/bpk-component-chatbot-input/src/hooks/useTextAreaAutoResize.js +137 -0
  54. package/bpk-component-chatbot-input/src/themeAttributes.d.ts +14 -0
  55. package/bpk-component-chatbot-input/src/themeAttributes.js +34 -0
  56. package/bpk-component-checkbox/index.d.ts +8 -8
  57. package/bpk-component-checkbox/index.js +3 -3
  58. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2.d.ts +9 -0
  59. package/bpk-component-checkbox/src/BpkCheckboxV2/{BpkCheckbox.js → BpkCheckboxV2.js} +14 -14
  60. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2Control.d.ts +6 -0
  61. package/bpk-component-checkbox/src/BpkCheckboxV2/{BpkCheckboxControl.js → BpkCheckboxV2Control.js} +3 -3
  62. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2Description.d.ts +6 -0
  63. package/bpk-component-checkbox/src/BpkCheckboxV2/{BpkCheckboxDescription.js → BpkCheckboxV2Description.js} +3 -3
  64. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2HiddenInput.d.ts +2 -0
  65. package/bpk-component-checkbox/src/BpkCheckboxV2/{BpkCheckboxHiddenInput.js → BpkCheckboxV2HiddenInput.js} +2 -2
  66. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2Indicator.d.ts +2 -0
  67. package/bpk-component-checkbox/src/BpkCheckboxV2/{BpkCheckboxIndicator.js → BpkCheckboxV2Indicator.js} +3 -3
  68. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2Label.d.ts +6 -0
  69. package/bpk-component-checkbox/src/BpkCheckboxV2/{BpkCheckboxLabel.js → BpkCheckboxV2Label.js} +3 -3
  70. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2Root.d.ts +16 -0
  71. package/bpk-component-checkbox/src/BpkCheckboxV2/{BpkCheckboxRoot.js → BpkCheckboxV2Root.js} +3 -3
  72. package/bpk-component-checkbox-card/src/BpkCheckboxCard.module.css +1 -1
  73. package/bpk-component-icon/scripts/generate-figma-connect.js +267 -0
  74. package/bpk-component-inset-banner/index.d.ts +4 -1
  75. package/bpk-component-inset-banner/index.js +2 -1
  76. package/bpk-component-inset-banner/src/BpkInsetBannerV3/BpkInsetBannerV3.d.ts +56 -0
  77. package/bpk-component-inset-banner/src/BpkInsetBannerV3/BpkInsetBannerV3.js +118 -0
  78. package/bpk-component-inset-banner/src/BpkInsetBannerV3/BpkInsetBannerV3.module.css +18 -0
  79. package/bpk-component-layout/src/BpkProvider.d.ts +9 -4
  80. package/bpk-component-layout/src/BpkProvider.js +87 -8
  81. package/bpk-component-layout/src/types.d.ts +2 -2
  82. package/bpk-component-link/src/common-types.d.ts +1 -1
  83. package/bpk-component-modal/index.d.ts +2 -1
  84. package/bpk-component-modal/index.js +2 -1
  85. package/bpk-component-modal/src/BpkModalV3/BpkModalV3.d.ts +14 -0
  86. package/bpk-component-modal/src/BpkModalV3/BpkModalV3.js +43 -0
  87. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Body/BpkModalV3Body.d.ts +7 -0
  88. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Body/BpkModalV3Body.js +30 -0
  89. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Body.module.css +18 -0
  90. package/bpk-component-modal/src/BpkModalV3/BpkModalV3CloseTrigger/BpkModalV3CloseTrigger.d.ts +7 -0
  91. package/bpk-component-modal/src/BpkModalV3/BpkModalV3CloseTrigger/BpkModalV3CloseTrigger.js +49 -0
  92. package/bpk-component-modal/src/BpkModalV3/BpkModalV3CloseTrigger.module.css +18 -0
  93. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Content/BpkModalV3Content.d.ts +7 -0
  94. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Content/BpkModalV3Content.js +38 -0
  95. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Content.module.css +18 -0
  96. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Context.d.ts +3 -0
  97. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Context.js +22 -0
  98. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Description/BpkModalV3Description.d.ts +7 -0
  99. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Description/BpkModalV3Description.js +28 -0
  100. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Header/BpkModalV3Header.d.ts +7 -0
  101. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Header/BpkModalV3Header.js +34 -0
  102. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Header.module.css +18 -0
  103. package/bpk-component-modal/src/BpkModalV3/BpkModalV3HeroImage/BpkModalV3HeroImage.d.ts +10 -0
  104. package/bpk-component-modal/src/BpkModalV3/BpkModalV3HeroImage/BpkModalV3HeroImage.js +44 -0
  105. package/bpk-component-modal/src/BpkModalV3/BpkModalV3HeroImage.module.css +18 -0
  106. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Portal/BpkModalV3Portal.d.ts +7 -0
  107. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Portal/BpkModalV3Portal.js +26 -0
  108. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Root/BpkModalV3Root.d.ts +13 -0
  109. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Root/BpkModalV3Root.js +44 -0
  110. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Scrim/BpkModalV3Scrim.d.ts +2 -0
  111. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Scrim/BpkModalV3Scrim.js +32 -0
  112. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Scrim.module.css +18 -0
  113. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Title/BpkModalV3Title.d.ts +7 -0
  114. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Title/BpkModalV3Title.js +31 -0
  115. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Title.module.css +18 -0
  116. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Trigger/BpkModalV3Trigger.d.ts +8 -0
  117. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Trigger/BpkModalV3Trigger.js +30 -0
  118. package/bpk-component-modal/src/BpkModalV3/common-types.d.ts +1 -0
  119. package/bpk-component-modal/src/BpkModalV3/common-types.js +1 -0
  120. package/bpk-component-page-indicator/src/NavButton.d.ts +2 -1
  121. package/bpk-component-segmented-control/src/BpkSegmentedControlV2/BpkSegmentedControlV2.js +37 -16
  122. package/bpk-component-skeleton/src/BpkBaseSkeleton.d.d.ts +1 -0
  123. package/bpk-component-skeleton/src/BpkSkeleton.d.d.ts +1 -0
  124. package/bpk-component-table/index.d.ts +2 -1
  125. package/bpk-component-table/index.js +2 -1
  126. package/bpk-component-table/src/BpkTable.module.css +1 -1
  127. package/bpk-component-table/src/BpkTableBody.d.ts +4 -1
  128. package/bpk-component-table/src/BpkTableBody.js +19 -4
  129. package/bpk-component-table/src/common-types.d.ts +5 -0
  130. package/bpk-component-table/src/common-types.js +22 -0
  131. package/bpk-react-utils/src/Portal.d.ts +1 -1
  132. package/package.json +2 -2
  133. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckbox.d.ts +0 -9
  134. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxControl.d.ts +0 -6
  135. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxDescription.d.ts +0 -6
  136. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxHiddenInput.d.ts +0 -2
  137. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxIndicator.d.ts +0 -2
  138. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxLabel.d.ts +0 -6
  139. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxRoot.d.ts +0 -16
  140. /package/bpk-component-checkbox/src/BpkCheckboxV2/{BpkCheckbox.module.css → BpkCheckboxV2.module.css} +0 -0
@@ -0,0 +1,137 @@
1
+ /*
2
+ * Backpack - Skyscanner's Design System
3
+ *
4
+ * Copyright 2016 Skyscanner Ltd
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ import { useCallback, useLayoutEffect, useRef, useState } from 'react';
20
+ export const LINE_HEIGHT = 24;
21
+ export const MIN_INPUT_HEIGHT = LINE_HEIGHT;
22
+ export const MAX_INPUT_HEIGHT_PHASE_1 = LINE_HEIGHT * 4;
23
+ export const MAX_INPUT_HEIGHT_PHASE_2 = LINE_HEIGHT * 5;
24
+ export const MIN_CONTAINER_HEIGHT = 24;
25
+ export const MAX_CONTAINER_HEIGHT = 96;
26
+ export const PARENT_PADDING_TOP = 16;
27
+ const useTextAreaAutoResize = ({
28
+ enabled = true,
29
+ ref,
30
+ value
31
+ }) => {
32
+ const [dimensions, setDimensions] = useState({
33
+ isExpanding: false,
34
+ textareaHeight: MIN_INPUT_HEIGHT,
35
+ containerHeight: MIN_CONTAINER_HEIGHT,
36
+ isCapped: false
37
+ });
38
+ const [containerWidth, setContainerWidth] = useState(0);
39
+ const measureElementRef = useRef(null);
40
+ const lineHeightRef = useRef(LINE_HEIGHT);
41
+ const previousValueRef = useRef('');
42
+ const shouldScrollRef = useRef(false);
43
+ const isInitialRenderRef = useRef(true);
44
+ const scrollToBottom = useCallback(() => {
45
+ if (ref?.current) {
46
+ const textarea = ref.current;
47
+ requestAnimationFrame(() => {
48
+ textarea.scrollTop = textarea.scrollHeight;
49
+ });
50
+ }
51
+ }, [ref]);
52
+ useLayoutEffect(() => {
53
+ if (!enabled || !ref?.current) {
54
+ return undefined;
55
+ }
56
+ const textarea = ref.current;
57
+ const computedStyle = getComputedStyle(textarea);
58
+ const parsedLineHeight = parseFloat(computedStyle.lineHeight);
59
+ if (!Number.isNaN(parsedLineHeight) && parsedLineHeight > 0) {
60
+ lineHeightRef.current = parsedLineHeight;
61
+ }
62
+ const tempTextarea = document.createElement('textarea');
63
+ tempTextarea.style.position = 'absolute';
64
+ tempTextarea.style.visibility = 'hidden';
65
+ tempTextarea.style.height = 'auto';
66
+ tempTextarea.style.fontSize = computedStyle.fontSize;
67
+ tempTextarea.style.fontFamily = computedStyle.fontFamily;
68
+ tempTextarea.style.lineHeight = computedStyle.lineHeight;
69
+ tempTextarea.style.padding = computedStyle.padding;
70
+ tempTextarea.style.border = computedStyle.border;
71
+ tempTextarea.style.boxSizing = computedStyle.boxSizing;
72
+ tempTextarea.style.whiteSpace = 'pre-wrap';
73
+ tempTextarea.style.overflowWrap = 'break-word';
74
+ tempTextarea.style.width = `${textarea.offsetWidth}px`;
75
+ tempTextarea.rows = 1;
76
+ document.body.appendChild(tempTextarea);
77
+ measureElementRef.current = tempTextarea;
78
+ const resizeObserver = new ResizeObserver(entries => {
79
+ setContainerWidth(Math.round(entries[0].contentRect.width));
80
+ });
81
+ resizeObserver.observe(textarea);
82
+ return () => {
83
+ if (measureElementRef.current) {
84
+ measureElementRef.current.remove();
85
+ measureElementRef.current = null;
86
+ }
87
+ resizeObserver.disconnect();
88
+ };
89
+ }, [enabled, ref]);
90
+ useLayoutEffect(() => {
91
+ if (!enabled || !ref?.current || !measureElementRef.current) {
92
+ return;
93
+ }
94
+ const textarea = ref.current;
95
+ const measureEl = measureElementRef.current;
96
+ measureEl.style.width = `${textarea.offsetWidth}px`;
97
+ measureEl.value = value || ' ';
98
+ const {
99
+ scrollHeight
100
+ } = measureEl;
101
+ const lines = Math.max(1, Math.ceil(scrollHeight / lineHeightRef.current));
102
+ const isCapped = lines >= 5;
103
+ const maxInputHeight = isCapped ? MAX_INPUT_HEIGHT_PHASE_2 : MAX_INPUT_HEIGHT_PHASE_1;
104
+ const targetInputHeight = Math.max(MIN_INPUT_HEIGHT, Math.min(scrollHeight, maxInputHeight));
105
+ const extraSpace = isCapped ? PARENT_PADDING_TOP : 0;
106
+ const targetContainerHeight = Math.max(MIN_CONTAINER_HEIGHT, Math.min(targetInputHeight - extraSpace, MAX_CONTAINER_HEIGHT));
107
+ setDimensions(prev => {
108
+ const isContentAdded = value.length > previousValueRef.current.length;
109
+ const isAppending = value.startsWith(previousValueRef.current);
110
+ const prevMaxHeight = prev.isCapped ? MAX_INPUT_HEIGHT_PHASE_2 : MAX_INPUT_HEIGHT_PHASE_1;
111
+ const isInitialRender = isInitialRenderRef.current;
112
+ const shouldScroll = isContentAdded && isAppending && textarea.scrollHeight > prevMaxHeight || isInitialRender && scrollHeight > maxInputHeight;
113
+ shouldScrollRef.current = shouldScroll;
114
+ if (isInitialRender) {
115
+ isInitialRenderRef.current = false;
116
+ }
117
+ return {
118
+ isExpanding: lines > 1,
119
+ textareaHeight: targetInputHeight,
120
+ containerHeight: targetContainerHeight,
121
+ isCapped
122
+ };
123
+ });
124
+ previousValueRef.current = value;
125
+ }, [value, ref, enabled, containerWidth]);
126
+ useLayoutEffect(() => {
127
+ if (shouldScrollRef.current) {
128
+ scrollToBottom();
129
+ shouldScrollRef.current = false;
130
+ }
131
+ }, [dimensions, scrollToBottom]);
132
+ return {
133
+ ...dimensions,
134
+ scrollToBottom
135
+ };
136
+ };
137
+ export default useTextAreaAutoResize;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Theme attributes for BpkChatbotInput.
3
+ *
4
+ * Usage with BpkThemeProvider:
5
+ *
6
+ * import BpkThemeProvider from '@skyscanner/backpack-web/bpk-theming';
7
+ * import BpkChatbotInput, { themeAttributes } from '@skyscanner/backpack-web/bpk-component-chatbot-input';
8
+ *
9
+ * <BpkThemeProvider theme={{ chatbotInputBorderRadius: '999px', chatbotInputFocusBorderColor: '#FF6600' }} themeAttributes={themeAttributes}>
10
+ * <BpkChatbotInput ... />
11
+ * </BpkThemeProvider>
12
+ */
13
+ declare const themeAttributes: string[];
14
+ export default themeAttributes;
@@ -0,0 +1,34 @@
1
+ /*
2
+ * Backpack - Skyscanner's Design System
3
+ *
4
+ * Copyright 2016 Skyscanner Ltd
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */
18
+
19
+ /**
20
+ * Theme attributes for BpkChatbotInput.
21
+ *
22
+ * Usage with BpkThemeProvider:
23
+ *
24
+ * import BpkThemeProvider from '@skyscanner/backpack-web/bpk-theming';
25
+ * import BpkChatbotInput, { themeAttributes } from '@skyscanner/backpack-web/bpk-component-chatbot-input';
26
+ *
27
+ * <BpkThemeProvider theme={{ chatbotInputBorderRadius: '999px', chatbotInputFocusBorderColor: '#FF6600' }} themeAttributes={themeAttributes}>
28
+ * <BpkChatbotInput ... />
29
+ * </BpkThemeProvider>
30
+ */
31
+ const themeAttributes = [/** Border radius for the input container. Applies to both cars and composer modes. */
32
+ 'chatbotInputBorderRadius', /** Border colour for hover and focus states. Only applies to the cars (single-line) mode. */
33
+ 'chatbotInputFocusBorderColor'];
34
+ export default themeAttributes;
@@ -1,11 +1,11 @@
1
1
  import BpkCheckbox, { type Props as BpkCheckboxProps } from './src/BpkCheckbox';
2
- import BpkCheckboxV2 from './src/BpkCheckboxV2/BpkCheckbox';
3
- import { checkboxSelectedColorThemeAttributes, checkboxBorderRadiusThemeAttributes } from './src/BpkCheckboxV2/themeAttributes';
4
2
  import themeAttributes from './src/themeAttributes';
5
- export type { BpkCheckboxProps };
6
- export type { BpkCheckboxRootProps, BpkCheckedState } from './src/BpkCheckboxV2/BpkCheckboxRoot';
7
- export type { BpkCheckboxControlProps } from './src/BpkCheckboxV2/BpkCheckboxControl';
8
- export type { BpkCheckboxLabelProps } from './src/BpkCheckboxV2/BpkCheckboxLabel';
9
- export type { BpkCheckboxDescriptionProps } from './src/BpkCheckboxV2/BpkCheckboxDescription';
10
3
  export default BpkCheckbox;
11
- export { themeAttributes, checkboxSelectedColorThemeAttributes, checkboxBorderRadiusThemeAttributes, BpkCheckboxV2, };
4
+ export type { BpkCheckboxProps };
5
+ export { themeAttributes };
6
+ export { default as BpkCheckboxV2 } from './src/BpkCheckboxV2/BpkCheckboxV2';
7
+ export { checkboxSelectedColorThemeAttributes, checkboxBorderRadiusThemeAttributes, } from './src/BpkCheckboxV2/themeAttributes';
8
+ export type { BpkCheckboxV2RootProps, BpkCheckboxV2CheckedState } from './src/BpkCheckboxV2/BpkCheckboxV2Root';
9
+ export type { BpkCheckboxV2ControlProps } from './src/BpkCheckboxV2/BpkCheckboxV2Control';
10
+ export type { BpkCheckboxV2LabelProps } from './src/BpkCheckboxV2/BpkCheckboxV2Label';
11
+ export type { BpkCheckboxV2DescriptionProps } from './src/BpkCheckboxV2/BpkCheckboxV2Description';
@@ -17,8 +17,8 @@
17
17
  */
18
18
 
19
19
  import BpkCheckbox from "./src/BpkCheckbox";
20
- import BpkCheckboxV2 from "./src/BpkCheckboxV2/BpkCheckbox";
21
- import { checkboxSelectedColorThemeAttributes, checkboxBorderRadiusThemeAttributes } from "./src/BpkCheckboxV2/themeAttributes";
22
20
  import themeAttributes from "./src/themeAttributes";
23
21
  export default BpkCheckbox;
24
- export { themeAttributes, checkboxSelectedColorThemeAttributes, checkboxBorderRadiusThemeAttributes, BpkCheckboxV2 };
22
+ export { themeAttributes };
23
+ export { default as BpkCheckboxV2 } from "./src/BpkCheckboxV2/BpkCheckboxV2";
24
+ export { checkboxSelectedColorThemeAttributes, checkboxBorderRadiusThemeAttributes } from "./src/BpkCheckboxV2/themeAttributes";
@@ -0,0 +1,9 @@
1
+ declare const BpkCheckboxV2: {
2
+ Root: ({ checked, children, defaultChecked, disabled, id, invalid, name, onCheckedChange, required, value, }: import("./BpkCheckboxV2Root").BpkCheckboxV2RootProps) => import("react/jsx-runtime").JSX.Element;
3
+ Control: ({ children }: import("./BpkCheckboxV2Control").BpkCheckboxV2ControlProps) => import("react/jsx-runtime").JSX.Element;
4
+ Indicator: () => null;
5
+ Label: ({ children }: import("./BpkCheckboxV2Label").BpkCheckboxV2LabelProps) => import("react/jsx-runtime").JSX.Element;
6
+ Description: ({ children }: import("./BpkCheckboxV2Description").BpkCheckboxV2DescriptionProps) => import("react/jsx-runtime").JSX.Element;
7
+ HiddenInput: () => import("react/jsx-runtime").JSX.Element;
8
+ };
9
+ export default BpkCheckboxV2;
@@ -16,18 +16,18 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import BpkCheckboxControl from "./BpkCheckboxControl";
20
- import BpkCheckboxDescription from "./BpkCheckboxDescription";
21
- import BpkCheckboxHiddenInput from "./BpkCheckboxHiddenInput";
22
- import BpkCheckboxIndicator from "./BpkCheckboxIndicator";
23
- import BpkCheckboxLabel from "./BpkCheckboxLabel";
24
- import BpkCheckboxRoot from "./BpkCheckboxRoot";
25
- const BpkCheckbox = {
26
- Root: BpkCheckboxRoot,
27
- Control: BpkCheckboxControl,
28
- Indicator: BpkCheckboxIndicator,
29
- Label: BpkCheckboxLabel,
30
- Description: BpkCheckboxDescription,
31
- HiddenInput: BpkCheckboxHiddenInput
19
+ import BpkCheckboxV2Control from "./BpkCheckboxV2Control";
20
+ import BpkCheckboxV2Description from "./BpkCheckboxV2Description";
21
+ import BpkCheckboxV2HiddenInput from "./BpkCheckboxV2HiddenInput";
22
+ import BpkCheckboxV2Indicator from "./BpkCheckboxV2Indicator";
23
+ import BpkCheckboxV2Label from "./BpkCheckboxV2Label";
24
+ import BpkCheckboxV2Root from "./BpkCheckboxV2Root";
25
+ const BpkCheckboxV2 = {
26
+ Root: BpkCheckboxV2Root,
27
+ Control: BpkCheckboxV2Control,
28
+ Indicator: BpkCheckboxV2Indicator,
29
+ Label: BpkCheckboxV2Label,
30
+ Description: BpkCheckboxV2Description,
31
+ HiddenInput: BpkCheckboxV2HiddenInput
32
32
  };
33
- export default BpkCheckbox;
33
+ export default BpkCheckboxV2;
@@ -0,0 +1,6 @@
1
+ import type { ReactNode } from 'react';
2
+ export type BpkCheckboxV2ControlProps = {
3
+ children: ReactNode;
4
+ };
5
+ declare const BpkCheckboxV2Control: ({ children }: BpkCheckboxV2ControlProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default BpkCheckboxV2Control;
@@ -18,13 +18,13 @@
18
18
 
19
19
  import { Checkbox } from '@ark-ui/react';
20
20
  import { cssModules } from "../../../bpk-react-utils";
21
- import STYLES from "./BpkCheckbox.module.css";
21
+ import STYLES from "./BpkCheckboxV2.module.css";
22
22
  import { jsx as _jsx } from "react/jsx-runtime";
23
23
  const getClassName = cssModules(STYLES);
24
- const BpkCheckboxControl = ({
24
+ const BpkCheckboxV2Control = ({
25
25
  children
26
26
  }) => /*#__PURE__*/_jsx(Checkbox.Control, {
27
27
  className: getClassName('bpk-checkbox-v2__control'),
28
28
  children: children
29
29
  });
30
- export default BpkCheckboxControl;
30
+ export default BpkCheckboxV2Control;
@@ -0,0 +1,6 @@
1
+ import type { ReactNode } from 'react';
2
+ export type BpkCheckboxV2DescriptionProps = {
3
+ children: ReactNode;
4
+ };
5
+ declare const BpkCheckboxV2Description: ({ children }: BpkCheckboxV2DescriptionProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default BpkCheckboxV2Description;
@@ -17,16 +17,16 @@
17
17
  */
18
18
 
19
19
  import { cssModules } from "../../../bpk-react-utils";
20
- import STYLES from "./BpkCheckbox.module.css";
20
+ import STYLES from "./BpkCheckboxV2.module.css";
21
21
  import { jsx as _jsx } from "react/jsx-runtime";
22
22
  const getClassName = cssModules(STYLES);
23
23
  // Description renders as a <span> inside the Checkbox.Root <label>.
24
24
  // Being inside the <label> element means screen readers announce its text
25
25
  // as part of the checkbox's accessible name.
26
- const BpkCheckboxDescription = ({
26
+ const BpkCheckboxV2Description = ({
27
27
  children
28
28
  }) => /*#__PURE__*/_jsx("span", {
29
29
  className: getClassName('bpk-checkbox-v2__description'),
30
30
  children: children
31
31
  });
32
- export default BpkCheckboxDescription;
32
+ export default BpkCheckboxV2Description;
@@ -0,0 +1,2 @@
1
+ declare const BpkCheckboxV2HiddenInput: () => import("react/jsx-runtime").JSX.Element;
2
+ export default BpkCheckboxV2HiddenInput;
@@ -21,5 +21,5 @@ import { Checkbox } from '@ark-ui/react';
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.
23
23
  import { jsx as _jsx } from "react/jsx-runtime";
24
- const BpkCheckboxHiddenInput = () => /*#__PURE__*/_jsx(Checkbox.HiddenInput, {});
25
- export default BpkCheckboxHiddenInput;
24
+ const BpkCheckboxV2HiddenInput = () => /*#__PURE__*/_jsx(Checkbox.HiddenInput, {});
25
+ export default BpkCheckboxV2HiddenInput;
@@ -0,0 +1,2 @@
1
+ declare const BpkCheckboxV2Indicator: () => null;
2
+ export default BpkCheckboxV2Indicator;
@@ -16,8 +16,8 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- // The checkmark and indeterminate bar are rendered via CSS on BpkCheckboxControl
19
+ // The checkmark and indeterminate bar are rendered via CSS on BpkCheckboxV2Control
20
20
  // (bpk-checkbox__checkmark mixin + ::before pseudo-element), so this slot
21
21
  // component intentionally renders nothing.
22
- const BpkCheckboxIndicator = () => null;
23
- export default BpkCheckboxIndicator;
22
+ const BpkCheckboxV2Indicator = () => null;
23
+ export default BpkCheckboxV2Indicator;
@@ -0,0 +1,6 @@
1
+ import type { ReactNode } from 'react';
2
+ export type BpkCheckboxV2LabelProps = {
3
+ children: ReactNode;
4
+ };
5
+ declare const BpkCheckboxV2Label: ({ children }: BpkCheckboxV2LabelProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default BpkCheckboxV2Label;
@@ -18,13 +18,13 @@
18
18
 
19
19
  import { Checkbox } from '@ark-ui/react';
20
20
  import { cssModules } from "../../../bpk-react-utils";
21
- import STYLES from "./BpkCheckbox.module.css";
21
+ import STYLES from "./BpkCheckboxV2.module.css";
22
22
  import { jsx as _jsx } from "react/jsx-runtime";
23
23
  const getClassName = cssModules(STYLES);
24
- const BpkCheckboxLabel = ({
24
+ const BpkCheckboxV2Label = ({
25
25
  children
26
26
  }) => /*#__PURE__*/_jsx(Checkbox.Label, {
27
27
  className: getClassName('bpk-checkbox-v2__label'),
28
28
  children: children
29
29
  });
30
- export default BpkCheckboxLabel;
30
+ export default BpkCheckboxV2Label;
@@ -0,0 +1,16 @@
1
+ import type { ReactNode } from 'react';
2
+ export type BpkCheckboxV2CheckedState = boolean | 'indeterminate';
3
+ export type BpkCheckboxV2RootProps = {
4
+ children: ReactNode;
5
+ checked?: BpkCheckboxV2CheckedState;
6
+ defaultChecked?: BpkCheckboxV2CheckedState;
7
+ disabled?: boolean;
8
+ id?: string;
9
+ invalid?: boolean;
10
+ name?: string;
11
+ onCheckedChange?: (checked: BpkCheckboxV2CheckedState) => void;
12
+ required?: boolean;
13
+ value?: string;
14
+ };
15
+ declare const BpkCheckboxV2Root: ({ checked, children, defaultChecked, disabled, id, invalid, name, onCheckedChange, required, value, }: BpkCheckboxV2RootProps) => import("react/jsx-runtime").JSX.Element;
16
+ export default BpkCheckboxV2Root;
@@ -18,10 +18,10 @@
18
18
 
19
19
  import { Checkbox } from '@ark-ui/react';
20
20
  import { cssModules, getDataComponentAttribute } from "../../../bpk-react-utils";
21
- import STYLES from "./BpkCheckbox.module.css";
21
+ import STYLES from "./BpkCheckboxV2.module.css";
22
22
  import { jsx as _jsx } from "react/jsx-runtime";
23
23
  const getClassName = cssModules(STYLES);
24
- const BpkCheckboxRoot = ({
24
+ const BpkCheckboxV2Root = ({
25
25
  checked,
26
26
  children,
27
27
  defaultChecked,
@@ -46,4 +46,4 @@ const BpkCheckboxRoot = ({
46
46
  ...getDataComponentAttribute('CheckboxV2'),
47
47
  children: children
48
48
  });
49
- export default BpkCheckboxRoot;
49
+ export default BpkCheckboxV2Root;
@@ -15,4 +15,4 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */
18
- .bpk-checkbox-card-root{position:relative;display:block;min-width:2.75rem;height:100%;min-height:2.75rem;transition:background-color 200ms ease-in-out,border-color 200ms ease-in-out,color 200ms ease-in-out;border:1px solid var(--bpk-checkbox-card-default-border-color, rgb(193, 199, 207));background-color:var(--bpk-checkbox-card-default-background-color, rgb(255, 255, 255));color:var(--bpk-checkbox-card-default-text-color, rgb(22, 22, 22));cursor:pointer;box-sizing:border-box}.bpk-checkbox-card-root:has(:focus-visible){outline:.125rem solid #0062e3;outline-offset:.125rem}.bpk-no-touch-support .bpk-checkbox-card-root:not([data-state=checked]):not([data-disabled]):hover:not(:active):not(:disabled),.bpk-no-touch-support .bpk-checkbox-card-root:not([data-state=checked])[data-loading]:hover:not(:active):not(:disabled){border-color:var(--bpk-checkbox-card-hover-border-color, rgb(193, 199, 207));background-color:var(--bpk-checkbox-card-hover-background-color, rgb(245, 247, 250))}:global(.bpk-no-touch-support) .bpk-checkbox-card-root:not([data-state=checked]):not([data-disabled]):hover:not(:active):not(:disabled),:global(.bpk-no-touch-support) .bpk-checkbox-card-root:not([data-state=checked])[data-loading]:hover:not(:active):not(:disabled){border-color:var(--bpk-checkbox-card-hover-border-color, rgb(193, 199, 207));background-color:var(--bpk-checkbox-card-hover-background-color, rgb(245, 247, 250))}.bpk-checkbox-card-root[data-state=checked]{border-color:var(--bpk-checkbox-card-checked-border-color, transparent);background-color:var(--bpk-checkbox-card-checked-background-color, rgb(5, 32, 60));color:var(--bpk-checkbox-card-checked-text-color, rgb(255, 255, 255))}.bpk-checkbox-card-root[data-disabled]:not([data-loading]){border-color:var(--bpk-checkbox-card-disabled-border-color, rgb(193, 199, 207));background-color:var(--bpk-checkbox-card-disabled-background-color, rgb(239, 243, 248));color:var(--bpk-checkbox-card-disabled-text-color, rgba(0, 0, 0, 0.2));cursor:not-allowed}.bpk-checkbox-card-root[data-loading]{cursor:not-allowed}.bpk-checkbox-card-root--radius-square{border-radius:0}.bpk-checkbox-card-root--radius-rounded{border-radius:.75rem}.bpk-checkbox-card-root--on-canvas-default{--bpk-checkbox-card-default-background-color: rgb(255, 255, 255);--bpk-checkbox-card-default-border-color: rgb(193, 199, 207)}.bpk-checkbox-card-root--cars{--bpk-checkbox-card-default-background-color: rgb(255, 255, 255);--bpk-checkbox-card-default-border-color: rgb(193, 199, 207);--bpk-checkbox-card-disabled-border-color: transparent;--bpk-checkbox-card-hover-background-color: rgb(255, 255, 255);--bpk-checkbox-card-hover-border-color: rgb(5, 32, 60);--bpk-checkbox-card-checked-background-color: rgb(255, 255, 255);--bpk-checkbox-card-checked-text-color: rgb(22, 22, 22);--bpk-checkbox-card-checked-border-color: rgb(5, 32, 60);--bpk-checkbox-card-indicator-background-color: rgb(5, 32, 60)}.bpk-checkbox-card-root--cars.bpk-checkbox-card-root--cars--radius-rounded{border-radius:1.5rem}.bpk-checkbox-card-root--cars[data-state=checked]{box-shadow:0 0 0 1px #05203c}.bpk-checkbox-card-root--on-canvas-contrast{--bpk-checkbox-card-default-background-color: rgb(255, 255, 255);--bpk-checkbox-card-hover-background-color: rgb(255, 255, 255);--bpk-checkbox-card-default-border-color: transparent;--bpk-checkbox-card-hover-border-color: rgb(193, 199, 207);--bpk-checkbox-card-disabled-background-color: rgb(239, 243, 248)}.bpk-checkbox-card-root--on-surface-contrast{--bpk-checkbox-card-default-background-color: rgba(255, 255, 255, 0.1);--bpk-checkbox-card-default-text-color: rgb(255, 255, 255);--bpk-checkbox-card-secondary-text-color: rgb(255, 255, 255);--bpk-checkbox-card-hover-background-color: rgb(5, 32, 60);--bpk-checkbox-card-checked-background-color: rgb(0, 98, 227);--bpk-checkbox-card-default-border-color: transparent;--bpk-checkbox-card-hover-border-color: transparent;--bpk-checkbox-card-disabled-border-color: transparent}.bpk-checkbox-card-content{width:100%;padding:.5rem}.bpk-checkbox-card-label{display:-webkit-box;width:100%;color:inherit;text-align:center;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:var(--bpk-label-line-clamp, 2);line-clamp:var(--bpk-label-line-clamp, 2)}.bpk-checkbox-card-label>*{text-align:inherit}.bpk-checkbox-card-description{display:-webkit-box;width:100%;color:var(--bpk-checkbox-card-secondary-text-color, rgb(98, 105, 113));text-align:center;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:var(--bpk-description-line-clamp, 3);line-clamp:var(--bpk-description-line-clamp, 3);margin:0}.bpk-checkbox-card-root[data-state=checked] .bpk-checkbox-card-description{color:inherit}.bpk-checkbox-card-root--cars[data-state=checked] .bpk-checkbox-card-description{color:var(--bpk-checkbox-card-secondary-text-color, rgb(98, 105, 113))}.bpk-checkbox-card-description>*{text-align:inherit}.bpk-checkbox-card-price{display:flex;align-items:center;gap:.25rem}.bpk-checkbox-card-indicator{position:absolute;top:.5rem;right:.5rem;display:none;z-index:1;width:1.25rem;height:1.25rem;pointer-events:none}.bpk-checkbox-card-indicator svg{width:100%;height:100%;fill:var(--bpk-checkbox-card-indicator-background-color, rgb(0, 98, 227))}.bpk-checkbox-card-root[data-state=checked] .bpk-checkbox-card-indicator{display:block}.bpk-checkbox-card-root--cars .bpk-checkbox-card-indicator{width:1rem;height:1rem}
18
+ .bpk-checkbox-card-root{position:relative;display:block;min-width:2.75rem;height:100%;min-height:2.75rem;transition:background-color 200ms ease-in-out,border-color 200ms ease-in-out,color 200ms ease-in-out;border:1px solid var(--bpk-checkbox-card-default-border-color, rgb(193, 199, 207));background-color:var(--bpk-checkbox-card-default-background-color, rgb(255, 255, 255));color:var(--bpk-checkbox-card-default-text-color, rgb(22, 22, 22));cursor:pointer;box-sizing:border-box}.bpk-checkbox-card-root:has(:focus-visible){outline:.125rem solid #0062e3;outline-offset:.125rem}.bpk-no-touch-support .bpk-checkbox-card-root:not([data-state=checked]):not([data-disabled]):hover:not(:active):not(:disabled),.bpk-no-touch-support .bpk-checkbox-card-root:not([data-state=checked])[data-loading]:hover:not(:active):not(:disabled){border-color:var(--bpk-checkbox-card-hover-border-color, rgb(193, 199, 207));background-color:var(--bpk-checkbox-card-hover-background-color, rgb(245, 247, 250))}:global(.bpk-no-touch-support) .bpk-checkbox-card-root:not([data-state=checked]):not([data-disabled]):hover:not(:active):not(:disabled),:global(.bpk-no-touch-support) .bpk-checkbox-card-root:not([data-state=checked])[data-loading]:hover:not(:active):not(:disabled){border-color:var(--bpk-checkbox-card-hover-border-color, rgb(193, 199, 207));background-color:var(--bpk-checkbox-card-hover-background-color, rgb(245, 247, 250))}.bpk-checkbox-card-root[data-state=checked]{border-color:var(--bpk-checkbox-card-checked-border-color, transparent);background-color:var(--bpk-checkbox-card-checked-background-color, rgb(5, 32, 60));color:var(--bpk-checkbox-card-checked-text-color, rgb(255, 255, 255))}.bpk-checkbox-card-root[data-disabled]:not([data-loading]){border-color:var(--bpk-checkbox-card-disabled-border-color, rgb(193, 199, 207));background-color:var(--bpk-checkbox-card-disabled-background-color, rgb(239, 243, 248));color:var(--bpk-checkbox-card-disabled-text-color, rgba(0, 0, 0, 0.2));cursor:not-allowed}.bpk-checkbox-card-root[data-loading]{cursor:not-allowed}.bpk-checkbox-card-root--radius-square{border-radius:0}.bpk-checkbox-card-root--radius-rounded{border-radius:.75rem}.bpk-checkbox-card-root--on-canvas-default{--bpk-checkbox-card-default-background-color: rgb(255, 255, 255);--bpk-checkbox-card-default-border-color: rgb(193, 199, 207)}.bpk-checkbox-card-root--cars{--bpk-checkbox-card-default-background-color: rgb(255, 255, 255);--bpk-checkbox-card-default-border-color: rgb(193, 199, 207);--bpk-checkbox-card-disabled-border-color: transparent;--bpk-checkbox-card-hover-background-color: rgb(255, 255, 255);--bpk-checkbox-card-hover-border-color: rgb(5, 32, 60);--bpk-checkbox-card-checked-background-color: rgb(255, 255, 255);--bpk-checkbox-card-checked-text-color: rgb(22, 22, 22);--bpk-checkbox-card-checked-border-color: rgb(5, 32, 60);--bpk-checkbox-card-indicator-background-color: rgb(5, 32, 60)}.bpk-checkbox-card-root--cars.bpk-checkbox-card-root--cars--radius-rounded{border-radius:1.5rem}.bpk-checkbox-card-root--cars[data-state=checked]{box-shadow:0 0 0 1px #05203c}.bpk-checkbox-card-root--on-canvas-contrast{--bpk-checkbox-card-default-background-color: rgb(255, 255, 255);--bpk-checkbox-card-hover-background-color: rgb(255, 255, 255);--bpk-checkbox-card-default-border-color: transparent;--bpk-checkbox-card-hover-border-color: rgb(193, 199, 207);--bpk-checkbox-card-disabled-background-color: rgb(239, 243, 248)}.bpk-checkbox-card-root--on-surface-contrast{--bpk-checkbox-card-default-background-color: rgba(255, 255, 255, 0.1);--bpk-checkbox-card-default-text-color: rgb(255, 255, 255);--bpk-checkbox-card-secondary-text-color: rgb(255, 255, 255);--bpk-checkbox-card-hover-background-color: rgb(5, 32, 60);--bpk-checkbox-card-checked-background-color: rgb(0, 98, 227);--bpk-checkbox-card-default-border-color: transparent;--bpk-checkbox-card-hover-border-color: transparent;--bpk-checkbox-card-disabled-border-color: transparent}.bpk-checkbox-card-content{width:100%;padding:.5rem}.bpk-checkbox-card-label{display:-webkit-box;width:100%;color:inherit;text-align:center;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:var(--bpk-label-line-clamp, 2);line-clamp:var(--bpk-label-line-clamp, 2)}.bpk-checkbox-card-label>*{text-align:inherit}.bpk-checkbox-card-description{display:-webkit-box;width:100%;color:var(--bpk-checkbox-card-secondary-text-color, rgb(98, 105, 113));text-align:center;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:var(--bpk-description-line-clamp, 3);line-clamp:var(--bpk-description-line-clamp, 3);margin:0}.bpk-checkbox-card-root[data-state=checked] .bpk-checkbox-card-description{color:inherit}.bpk-checkbox-card-root--cars[data-state=checked] .bpk-checkbox-card-description{color:var(--bpk-checkbox-card-secondary-text-color, rgb(98, 105, 113))}.bpk-checkbox-card-description>*{text-align:inherit}.bpk-checkbox-card-price{display:flex;align-items:center;gap:.25rem}.bpk-checkbox-card-indicator{position:absolute;top:.5rem;display:none;z-index:1;width:1.25rem;height:1.25rem;inset-inline-end:.5rem;pointer-events:none}.bpk-checkbox-card-indicator svg{width:100%;height:100%;fill:var(--bpk-checkbox-card-indicator-background-color, rgb(0, 98, 227))}.bpk-checkbox-card-root[data-state=checked] .bpk-checkbox-card-indicator{display:block}.bpk-checkbox-card-root--cars .bpk-checkbox-card-indicator{width:1rem;height:1rem}