@skyscanner/backpack-web 41.19.0 → 42.0.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.
@@ -14,8 +14,9 @@
14
14
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
- */import BpkAutosuggest from "./src/BpkAutosuggest";
17
+ */import BpkAutosuggestLegacy from "./src/BpkAutosuggest";
18
18
  import BpkAutosuggestSuggestion from "./src/BpkAutosuggestSuggestion";
19
19
  import BpkAutosuggestV2, { defaultTheme } from "./src/BpkAutosuggestV2/BpkAutosuggest";
20
+ const BpkAutosuggest = BpkAutosuggestV2;
20
21
  export default BpkAutosuggest;
21
- export { BpkAutosuggestSuggestion, BpkAutosuggestV2, defaultTheme };
22
+ export { BpkAutosuggestLegacy, BpkAutosuggestSuggestion, defaultTheme };
@@ -1,6 +1,4 @@
1
- import { BpkButtonV2 } from './src/BpkButtonV2/BpkButton';
2
- export { BUTTON_TYPES, SIZE_TYPES, type ButtonType, type SizeType, type Props, } from './src/BpkButtonV2/common-types';
1
+ import BpkButton from './src/BpkButton';
2
+ export { BUTTON_TYPES, SIZE_TYPES, type ButtonType, type SizeType, type Props, } from './src/common-types';
3
3
  export { buttonThemeAttributes, primaryThemeAttributes, primaryOnDarkThemeAttributes, primaryOnLightThemeAttributes, secondaryThemeAttributes, secondaryOnDarkThemeAttributes, featuredThemeAttributes, destructiveThemeAttributes, linkThemeAttributes, } from './src/themeAttributes';
4
- declare const BpkButton: ({ blank, children, className, disabled, fullWidth, href, iconOnly, implicit, loading, onClick, rel: propRel, size, submit, type, ...rest }: import("./src/BpkButtonV2/common-types").Props) => import("react/jsx-runtime").JSX.Element;
5
4
  export default BpkButton;
6
- export { BpkButtonV2 };
@@ -16,9 +16,7 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import { BpkButtonV2 } from "./src/BpkButtonV2/BpkButton";
20
- export { BUTTON_TYPES, SIZE_TYPES } from "./src/BpkButtonV2/common-types";
19
+ import BpkButton from "./src/BpkButton";
20
+ export { BUTTON_TYPES, SIZE_TYPES } from "./src/common-types";
21
21
  export { buttonThemeAttributes, primaryThemeAttributes, primaryOnDarkThemeAttributes, primaryOnLightThemeAttributes, secondaryThemeAttributes, secondaryOnDarkThemeAttributes, featuredThemeAttributes, destructiveThemeAttributes, linkThemeAttributes } from "./src/themeAttributes";
22
- const BpkButton = BpkButtonV2;
23
- export default BpkButton;
24
- export { BpkButtonV2 };
22
+ export default BpkButton;
@@ -0,0 +1,3 @@
1
+ import type { Props } from './common-types';
2
+ declare const BpkButton: ({ blank, children, className, disabled, fullWidth, href, iconOnly, implicit, loading, onClick, rel: propRel, size, submit, type, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;
3
+ export default BpkButton;
@@ -15,8 +15,8 @@
15
15
  * See the License for the specific language governing permissions and
16
16
  * limitations under the License.
17
17
  */
18
- import { BpkSpinner, BpkLargeSpinner, SPINNER_TYPES } from "../../../bpk-component-spinner";
19
- import { cssModules, getDataComponentAttribute } from "../../../bpk-react-utils";
18
+ import { BpkSpinner, BpkLargeSpinner, SPINNER_TYPES } from "../../bpk-component-spinner";
19
+ import { cssModules, getDataComponentAttribute } from "../../bpk-react-utils";
20
20
  import { BUTTON_TYPES, SIZE_TYPES } from "./common-types";
21
21
  import COMMON_STYLES from "./BpkButton.module.css";
22
22
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -32,9 +32,7 @@ const getSpinnerType = buttonType => {
32
32
  return SPINNER_TYPES.light;
33
33
  }
34
34
  };
35
-
36
- // eslint-disable-next-line import/prefer-default-export
37
- export const BpkButtonV2 = ({
35
+ const BpkButton = ({
38
36
  blank = false,
39
37
  children,
40
38
  className = null,
@@ -102,4 +100,5 @@ export const BpkButtonV2 = ({
102
100
  ...rest,
103
101
  children: content
104
102
  });
105
- };
103
+ };
104
+ export default BpkButton;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyscanner/backpack-web",
3
- "version": "41.19.0",
3
+ "version": "42.0.0",
4
4
  "description": "Backpack Design System web library",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,2 +0,0 @@
1
- import type { Props } from './common-types';
2
- export declare const BpkButtonV2: ({ blank, children, className, disabled, fullWidth, href, iconOnly, implicit, loading, onClick, rel: propRel, size, submit, type, ...rest }: Props) => import("react/jsx-runtime").JSX.Element;