@skyscanner/backpack-web 42.1.0 → 42.3.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 (158) 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-chat-bubble/index.d.ts +4 -0
  28. package/bpk-component-chat-bubble/index.js +21 -0
  29. package/bpk-component-chat-bubble/src/BpkChatBubble.d.ts +3 -0
  30. package/bpk-component-chat-bubble/src/BpkChatBubble.js +107 -0
  31. package/bpk-component-chat-bubble/src/BpkChatBubble.module.css +18 -0
  32. package/bpk-component-chat-bubble/src/common-types.d.ts +55 -0
  33. package/bpk-component-chat-bubble/src/common-types.js +29 -0
  34. package/bpk-component-chatbot-input/index.d.ts +7 -0
  35. package/bpk-component-chatbot-input/index.js +23 -0
  36. package/bpk-component-chatbot-input/src/BpkChatbotInput.d.ts +4 -0
  37. package/bpk-component-chatbot-input/src/BpkChatbotInput.js +118 -0
  38. package/bpk-component-chatbot-input/src/BpkChatbotInput.module.css +18 -0
  39. package/bpk-component-chatbot-input/src/InputField/InputField.d.ts +3 -0
  40. package/bpk-component-chatbot-input/src/InputField/InputField.js +82 -0
  41. package/bpk-component-chatbot-input/src/InputField/InputField.module.css +18 -0
  42. package/bpk-component-chatbot-input/src/SendButton/SendButton.d.ts +9 -0
  43. package/bpk-component-chatbot-input/src/SendButton/SendButton.js +47 -0
  44. package/bpk-component-chatbot-input/src/TextAreaField/TextAreaField.d.ts +10 -0
  45. package/bpk-component-chatbot-input/src/TextAreaField/TextAreaField.js +93 -0
  46. package/bpk-component-chatbot-input/src/TextAreaField/TextAreaField.module.css +18 -0
  47. package/bpk-component-chatbot-input/src/common-types.d.ts +37 -0
  48. package/bpk-component-chatbot-input/src/common-types.js +23 -0
  49. package/bpk-component-chatbot-input/src/constants.d.ts +5 -0
  50. package/bpk-component-chatbot-input/src/constants.js +22 -0
  51. package/bpk-component-chatbot-input/src/hooks/index.d.ts +4 -0
  52. package/bpk-component-chatbot-input/src/hooks/index.js +22 -0
  53. package/bpk-component-chatbot-input/src/hooks/useChatbotInput.d.ts +32 -0
  54. package/bpk-component-chatbot-input/src/hooks/useChatbotInput.js +111 -0
  55. package/bpk-component-chatbot-input/src/hooks/useChatbotInputManager.d.ts +20 -0
  56. package/bpk-component-chatbot-input/src/hooks/useChatbotInputManager.js +83 -0
  57. package/bpk-component-chatbot-input/src/hooks/useInputHandlers.d.ts +8 -0
  58. package/bpk-component-chatbot-input/src/hooks/useInputHandlers.js +54 -0
  59. package/bpk-component-chatbot-input/src/hooks/useTextAreaAutoResize.d.ts +22 -0
  60. package/bpk-component-chatbot-input/src/hooks/useTextAreaAutoResize.js +137 -0
  61. package/bpk-component-chatbot-input/src/themeAttributes.d.ts +14 -0
  62. package/bpk-component-chatbot-input/src/themeAttributes.js +34 -0
  63. package/bpk-component-checkbox/index.d.ts +8 -8
  64. package/bpk-component-checkbox/index.js +3 -3
  65. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2.d.ts +9 -0
  66. package/bpk-component-checkbox/src/BpkCheckboxV2/{BpkCheckbox.js → BpkCheckboxV2.js} +14 -14
  67. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2Control.d.ts +6 -0
  68. package/bpk-component-checkbox/src/BpkCheckboxV2/{BpkCheckboxControl.js → BpkCheckboxV2Control.js} +3 -3
  69. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2Description.d.ts +6 -0
  70. package/bpk-component-checkbox/src/BpkCheckboxV2/{BpkCheckboxDescription.js → BpkCheckboxV2Description.js} +3 -3
  71. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2HiddenInput.d.ts +2 -0
  72. package/bpk-component-checkbox/src/BpkCheckboxV2/{BpkCheckboxHiddenInput.js → BpkCheckboxV2HiddenInput.js} +2 -2
  73. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2Indicator.d.ts +2 -0
  74. package/bpk-component-checkbox/src/BpkCheckboxV2/{BpkCheckboxIndicator.js → BpkCheckboxV2Indicator.js} +3 -3
  75. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2Label.d.ts +6 -0
  76. package/bpk-component-checkbox/src/BpkCheckboxV2/{BpkCheckboxLabel.js → BpkCheckboxV2Label.js} +3 -3
  77. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxV2Root.d.ts +16 -0
  78. package/bpk-component-checkbox/src/BpkCheckboxV2/{BpkCheckboxRoot.js → BpkCheckboxV2Root.js} +3 -3
  79. package/bpk-component-checkbox-card/src/BpkCheckboxCard.module.css +1 -1
  80. package/bpk-component-floating-notification/index.d.ts +2 -1
  81. package/bpk-component-floating-notification/index.js +2 -1
  82. package/bpk-component-floating-notification/src/BpkFloatingNotification.d.ts +5 -0
  83. package/bpk-component-floating-notification/src/BpkFloatingNotification.js +8 -2
  84. package/bpk-component-floating-notification/src/BpkFloatingNotification.module.css +1 -1
  85. package/bpk-component-icon/scripts/generate-figma-connect.js +267 -0
  86. package/bpk-component-info-banner/src/BpkInfoBanner.module.css +1 -1
  87. package/bpk-component-info-banner/src/BpkInfoBannerInner.js +8 -3
  88. package/bpk-component-info-banner/src/common-types.d.ts +1 -0
  89. package/bpk-component-info-banner/src/common-types.js +2 -1
  90. package/bpk-component-inset-banner/index.d.ts +4 -1
  91. package/bpk-component-inset-banner/index.js +2 -1
  92. package/bpk-component-inset-banner/src/BpkInsetBannerV3/BpkInsetBannerV3.d.ts +56 -0
  93. package/bpk-component-inset-banner/src/BpkInsetBannerV3/BpkInsetBannerV3.js +118 -0
  94. package/bpk-component-inset-banner/src/BpkInsetBannerV3/BpkInsetBannerV3.module.css +18 -0
  95. package/bpk-component-layout/src/BpkProvider.d.ts +9 -4
  96. package/bpk-component-layout/src/BpkProvider.js +87 -8
  97. package/bpk-component-layout/src/types.d.ts +2 -2
  98. package/bpk-component-link/src/common-types.d.ts +1 -1
  99. package/bpk-component-modal/index.d.ts +3 -1
  100. package/bpk-component-modal/index.js +3 -1
  101. package/bpk-component-modal/src/BpkModalV3/BpkModalV3.d.ts +14 -0
  102. package/bpk-component-modal/src/BpkModalV3/BpkModalV3.js +43 -0
  103. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Body/BpkModalV3Body.d.ts +7 -0
  104. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Body/BpkModalV3Body.js +30 -0
  105. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Body/BpkModalV3Body.module.css +18 -0
  106. package/bpk-component-modal/src/BpkModalV3/BpkModalV3CloseTrigger/BpkModalV3CloseTrigger.d.ts +7 -0
  107. package/bpk-component-modal/src/BpkModalV3/BpkModalV3CloseTrigger/BpkModalV3CloseTrigger.js +49 -0
  108. package/bpk-component-modal/src/BpkModalV3/BpkModalV3CloseTrigger/BpkModalV3CloseTrigger.module.css +18 -0
  109. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Content/BpkModalV3Content.d.ts +7 -0
  110. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Content/BpkModalV3Content.js +38 -0
  111. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Content/BpkModalV3Content.module.css +18 -0
  112. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Context.d.ts +3 -0
  113. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Context.js +22 -0
  114. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Description/BpkModalV3Description.d.ts +7 -0
  115. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Description/BpkModalV3Description.js +28 -0
  116. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Header/BpkModalV3Header.d.ts +7 -0
  117. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Header/BpkModalV3Header.js +34 -0
  118. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Header/BpkModalV3Header.module.css +18 -0
  119. package/bpk-component-modal/src/BpkModalV3/BpkModalV3HeroImage/BpkModalV3HeroImage.d.ts +10 -0
  120. package/bpk-component-modal/src/BpkModalV3/BpkModalV3HeroImage/BpkModalV3HeroImage.js +44 -0
  121. package/bpk-component-modal/src/BpkModalV3/BpkModalV3HeroImage/BpkModalV3HeroImage.module.css +18 -0
  122. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Portal/BpkModalV3Portal.d.ts +7 -0
  123. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Portal/BpkModalV3Portal.js +26 -0
  124. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Root/BpkModalV3Root.d.ts +13 -0
  125. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Root/BpkModalV3Root.js +67 -0
  126. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Root/useBodyLock.d.ts +9 -0
  127. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Root/useBodyLock.js +69 -0
  128. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Scrim/BpkModalV3Scrim.d.ts +2 -0
  129. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Scrim/BpkModalV3Scrim.js +32 -0
  130. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Scrim/BpkModalV3Scrim.module.css +18 -0
  131. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Title/BpkModalV3Title.d.ts +7 -0
  132. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Title/BpkModalV3Title.js +31 -0
  133. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Title/BpkModalV3Title.module.css +18 -0
  134. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Trigger/BpkModalV3Trigger.d.ts +8 -0
  135. package/bpk-component-modal/src/BpkModalV3/BpkModalV3Trigger/BpkModalV3Trigger.js +30 -0
  136. package/bpk-component-modal/src/BpkModalV3/common-types.d.ts +7 -0
  137. package/bpk-component-modal/src/BpkModalV3/common-types.js +24 -0
  138. package/bpk-component-page-indicator/src/NavButton.d.ts +2 -1
  139. package/bpk-component-segmented-control/src/BpkSegmentedControlV2/BpkSegmentedControlV2.js +37 -16
  140. package/bpk-component-skeleton/src/BpkBaseSkeleton.d.d.ts +1 -0
  141. package/bpk-component-skeleton/src/BpkSkeleton.d.d.ts +1 -0
  142. package/bpk-component-table/index.d.ts +2 -1
  143. package/bpk-component-table/index.js +2 -1
  144. package/bpk-component-table/src/BpkTable.module.css +1 -1
  145. package/bpk-component-table/src/BpkTableBody.d.ts +4 -1
  146. package/bpk-component-table/src/BpkTableBody.js +19 -4
  147. package/bpk-component-table/src/common-types.d.ts +5 -0
  148. package/bpk-component-table/src/common-types.js +22 -0
  149. package/bpk-react-utils/src/Portal.d.ts +1 -1
  150. package/package.json +2 -2
  151. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckbox.d.ts +0 -9
  152. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxControl.d.ts +0 -6
  153. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxDescription.d.ts +0 -6
  154. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxHiddenInput.d.ts +0 -2
  155. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxIndicator.d.ts +0 -2
  156. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxLabel.d.ts +0 -6
  157. package/bpk-component-checkbox/src/BpkCheckboxV2/BpkCheckboxRoot.d.ts +0 -16
  158. /package/bpk-component-checkbox/src/BpkCheckboxV2/{BpkCheckbox.module.css → BpkCheckboxV2.module.css} +0 -0
@@ -4,10 +4,11 @@ import BpkTableCell from './src/BpkTableCell';
4
4
  import BpkTableHead from './src/BpkTableHead';
5
5
  import BpkTableHeadCell from './src/BpkTableHeadCell';
6
6
  import BpkTableRow from './src/BpkTableRow';
7
+ import { TABLE_BODY_TYPES } from './src/common-types';
7
8
  export type { BpkTableProps } from './src/BpkTable';
8
9
  export type { BpkTableHeadProps } from './src/BpkTableHead';
9
10
  export type { BpkTableBodyProps } from './src/BpkTableBody';
10
11
  export type { BpkTableRowProps } from './src/BpkTableRow';
11
12
  export type { BpkTableCellProps } from './src/BpkTableCell';
12
13
  export type { BpkTableHeadCellProps } from './src/BpkTableHeadCell';
13
- export { BpkTable, BpkTableHead, BpkTableBody, BpkTableRow, BpkTableCell, BpkTableHeadCell, };
14
+ export { BpkTable, BpkTableHead, BpkTableBody, BpkTableRow, BpkTableCell, BpkTableHeadCell, TABLE_BODY_TYPES, };
@@ -22,4 +22,5 @@ import BpkTableCell from "./src/BpkTableCell";
22
22
  import BpkTableHead from "./src/BpkTableHead";
23
23
  import BpkTableHeadCell from "./src/BpkTableHeadCell";
24
24
  import BpkTableRow from "./src/BpkTableRow";
25
- export { BpkTable, BpkTableHead, BpkTableBody, BpkTableRow, BpkTableCell, BpkTableHeadCell };
25
+ import { TABLE_BODY_TYPES } from "./src/common-types";
26
+ export { BpkTable, BpkTableHead, BpkTableBody, BpkTableRow, BpkTableCell, BpkTableHeadCell, TABLE_BODY_TYPES };
@@ -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-table{width:100%;margin-bottom:.5rem;border-collapse:collapse;table-layout:fixed;box-shadow:0 0 0 1px #c1c7cf}.bpk-table__cell{padding:1rem}.bpk-table__cell--head{background-color:#eff3f8;text-align:left;font-size:1rem;line-height:1.5rem;font-weight:700}html[dir=rtl] .bpk-table__cell--head{text-align:right}.bpk-table__cell--wordBreak{white-space:normal;overflow-wrap:break-word}
18
+ .bpk-table{width:100%;margin-bottom:.5rem;border-collapse:collapse;table-layout:fixed;box-shadow:0 0 0 1px #c1c7cf}.bpk-table__body--striped tr:nth-child(even){background-color:#eff3f8}.bpk-table__cell{padding:1rem}.bpk-table__cell--head{background-color:#eff3f8;text-align:left;font-size:1rem;line-height:1.5rem;font-weight:700}html[dir=rtl] .bpk-table__cell--head{text-align:right}.bpk-table__cell--wordBreak{white-space:normal;overflow-wrap:break-word}
@@ -1,7 +1,10 @@
1
1
  import type { ReactNode, HTMLAttributes } from 'react';
2
+ import type { TableBodyType } from './common-types';
2
3
  export interface BpkTableBodyProps extends HTMLAttributes<HTMLTableSectionElement> {
3
4
  /** The content of the table */
4
5
  children: ReactNode;
6
+ /** The type of table body styling */
7
+ type?: TableBodyType;
5
8
  }
6
- declare const BpkTableBody: (props: BpkTableBodyProps) => import("react/jsx-runtime").JSX.Element;
9
+ declare const BpkTableBody: ({ children, className, type, ...rest }: BpkTableBodyProps) => import("react/jsx-runtime").JSX.Element;
7
10
  export default BpkTableBody;
@@ -1,4 +1,3 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
1
  /*
3
2
  * Backpack - Skyscanner's Design System
4
3
  *
@@ -17,7 +16,23 @@ import { jsx as _jsx } from "react/jsx-runtime";
17
16
  * limitations under the License.
18
17
  */
19
18
 
20
- const BpkTableBody = props => /*#__PURE__*/_jsx("tbody", {
21
- ...props
22
- });
19
+ import { cssModules, getDataComponentAttribute } from "../../bpk-react-utils";
20
+ import { TABLE_BODY_TYPES } from "./common-types";
21
+ import STYLES from "./BpkTable.module.css";
22
+ import { jsx as _jsx } from "react/jsx-runtime";
23
+ const getClassName = cssModules(STYLES);
24
+ const BpkTableBody = ({
25
+ children,
26
+ className,
27
+ type = TABLE_BODY_TYPES.default,
28
+ ...rest
29
+ }) => {
30
+ const classNames = getClassName(type === TABLE_BODY_TYPES.striped && 'bpk-table__body--striped', className);
31
+ return /*#__PURE__*/_jsx("tbody", {
32
+ ...rest,
33
+ className: classNames || undefined,
34
+ ...getDataComponentAttribute('TableBody'),
35
+ children: children
36
+ });
37
+ };
23
38
  export default BpkTableBody;
@@ -0,0 +1,5 @@
1
+ export declare const TABLE_BODY_TYPES: {
2
+ readonly default: "default";
3
+ readonly striped: "striped";
4
+ };
5
+ export type TableBodyType = (typeof TABLE_BODY_TYPES)[keyof typeof TABLE_BODY_TYPES];
@@ -0,0 +1,22 @@
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
+ export const TABLE_BODY_TYPES = {
20
+ default: 'default',
21
+ striped: 'striped'
22
+ };
@@ -1,5 +1,5 @@
1
1
  import { Component } from 'react';
2
- import type { ReactNode } from 'react';
2
+ import type { JSX, ReactNode } from 'react';
3
3
  type InteractionEvents = TouchEvent | MouseEvent | KeyboardEvent;
4
4
  type Props = {
5
5
  children: string | ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyscanner/backpack-web",
3
- "version": "42.1.0",
3
+ "version": "42.3.0",
4
4
  "description": "Backpack Design System web library",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,7 +37,7 @@
37
37
  "d3-scale": "^4.0.2",
38
38
  "downshift": "^9.0.10",
39
39
  "intersection-observer": "^0.12.2",
40
- "lodash": "^4.17.20",
40
+ "lodash": "^4.17.23",
41
41
  "lodash.clamp": "^4.0.3",
42
42
  "lodash.debounce": "^4.0.8",
43
43
  "normalize.css": "4.2.0",
@@ -1,9 +0,0 @@
1
- declare const BpkCheckbox: {
2
- Root: ({ checked, children, defaultChecked, disabled, id, invalid, name, onCheckedChange, required, value, }: import("./BpkCheckboxRoot").BpkCheckboxRootProps) => import("react/jsx-runtime").JSX.Element;
3
- Control: ({ children }: import("./BpkCheckboxControl").BpkCheckboxControlProps) => import("react/jsx-runtime").JSX.Element;
4
- Indicator: () => null;
5
- Label: ({ children }: import("./BpkCheckboxLabel").BpkCheckboxLabelProps) => import("react/jsx-runtime").JSX.Element;
6
- Description: ({ children }: import("./BpkCheckboxDescription").BpkCheckboxDescriptionProps) => import("react/jsx-runtime").JSX.Element;
7
- HiddenInput: () => import("react/jsx-runtime").JSX.Element;
8
- };
9
- export default BpkCheckbox;
@@ -1,6 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- export type BpkCheckboxControlProps = {
3
- children: ReactNode;
4
- };
5
- declare const BpkCheckboxControl: ({ children }: BpkCheckboxControlProps) => import("react/jsx-runtime").JSX.Element;
6
- export default BpkCheckboxControl;
@@ -1,6 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- export type BpkCheckboxDescriptionProps = {
3
- children: ReactNode;
4
- };
5
- declare const BpkCheckboxDescription: ({ children }: BpkCheckboxDescriptionProps) => import("react/jsx-runtime").JSX.Element;
6
- export default BpkCheckboxDescription;
@@ -1,2 +0,0 @@
1
- declare const BpkCheckboxHiddenInput: () => import("react/jsx-runtime").JSX.Element;
2
- export default BpkCheckboxHiddenInput;
@@ -1,2 +0,0 @@
1
- declare const BpkCheckboxIndicator: () => null;
2
- export default BpkCheckboxIndicator;
@@ -1,6 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- export type BpkCheckboxLabelProps = {
3
- children: ReactNode;
4
- };
5
- declare const BpkCheckboxLabel: ({ children }: BpkCheckboxLabelProps) => import("react/jsx-runtime").JSX.Element;
6
- export default BpkCheckboxLabel;
@@ -1,16 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- export type BpkCheckedState = boolean | 'indeterminate';
3
- export type BpkCheckboxRootProps = {
4
- children: ReactNode;
5
- checked?: BpkCheckedState;
6
- defaultChecked?: BpkCheckedState;
7
- disabled?: boolean;
8
- id?: string;
9
- invalid?: boolean;
10
- name?: string;
11
- onCheckedChange?: (checked: BpkCheckedState) => void;
12
- required?: boolean;
13
- value?: string;
14
- };
15
- declare const BpkCheckboxRoot: ({ checked, children, defaultChecked, disabled, id, invalid, name, onCheckedChange, required, value, }: BpkCheckboxRootProps) => import("react/jsx-runtime").JSX.Element;
16
- export default BpkCheckboxRoot;