@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.
- package/bpk-component-autosuggest/index.js +3 -2
- package/bpk-component-button/index.d.ts +2 -4
- package/bpk-component-button/index.js +3 -5
- package/bpk-component-button/src/BpkButton.d.ts +3 -0
- package/bpk-component-button/src/{BpkButtonV2/BpkButton.js → BpkButton.js} +5 -6
- package/package.json +1 -1
- package/bpk-component-button/src/BpkButtonV2/BpkButton.d.ts +0 -2
- /package/bpk-component-button/src/{BpkButtonV2/BpkButton.module.css → BpkButton.module.css} +0 -0
- /package/bpk-component-button/src/{BpkButtonV2/common-types.d.ts → common-types.d.ts} +0 -0
- /package/bpk-component-button/src/{BpkButtonV2/common-types.js → common-types.js} +0 -0
|
@@ -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
|
|
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 {
|
|
22
|
+
export { BpkAutosuggestLegacy, BpkAutosuggestSuggestion, defaultTheme };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
export { BUTTON_TYPES, SIZE_TYPES, type ButtonType, type SizeType, type Props, } from './src/
|
|
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
|
|
20
|
-
export { BUTTON_TYPES, SIZE_TYPES } from "./src/
|
|
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
|
-
|
|
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 "
|
|
19
|
-
import { cssModules, getDataComponentAttribute } from "
|
|
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
|
File without changes
|
|
File without changes
|
|
File without changes
|