@skyscanner/backpack-web 34.1.0 → 34.1.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-spinner/src/BpkExtraLargeSpinner.d.ts +3 -3
- package/bpk-component-spinner/src/BpkLargeSpinner.d.ts +3 -3
- package/bpk-component-spinner/src/BpkSpinner.d.ts +3 -3
- package/bpk-component-spinner/src/spinnerTypes.d.ts +6 -5
- package/bpk-component-spinner/src/spinnerTypes.js +5 -2
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import
|
|
3
|
+
import type { SpinnerTypes } from './spinnerTypes';
|
|
4
4
|
type Props = {
|
|
5
|
-
type:
|
|
5
|
+
type: SpinnerTypes;
|
|
6
6
|
className?: string;
|
|
7
7
|
};
|
|
8
8
|
declare const BpkExtraLargeSpinner: {
|
|
@@ -12,7 +12,7 @@ declare const BpkExtraLargeSpinner: {
|
|
|
12
12
|
className: PropTypes.Requireable<string>;
|
|
13
13
|
};
|
|
14
14
|
defaultProps: {
|
|
15
|
-
type:
|
|
15
|
+
type: "dark";
|
|
16
16
|
className: null;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import
|
|
3
|
+
import type { SpinnerTypes } from './spinnerTypes';
|
|
4
4
|
type Props = {
|
|
5
|
-
type:
|
|
5
|
+
type: SpinnerTypes;
|
|
6
6
|
className?: string;
|
|
7
7
|
alignToButton: boolean;
|
|
8
8
|
};
|
|
@@ -14,7 +14,7 @@ declare const BpkLargeSpinner: {
|
|
|
14
14
|
alignToButton: PropTypes.Requireable<boolean>;
|
|
15
15
|
};
|
|
16
16
|
defaultProps: {
|
|
17
|
-
type:
|
|
17
|
+
type: "dark";
|
|
18
18
|
className: null;
|
|
19
19
|
alignToButton: boolean;
|
|
20
20
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import
|
|
3
|
+
import type { SpinnerTypes } from './spinnerTypes';
|
|
4
4
|
type Props = {
|
|
5
|
-
type:
|
|
5
|
+
type: SpinnerTypes;
|
|
6
6
|
className?: string;
|
|
7
7
|
alignToButton: boolean;
|
|
8
8
|
};
|
|
@@ -14,7 +14,7 @@ declare const BpkSpinner: {
|
|
|
14
14
|
alignToButton: PropTypes.Requireable<boolean>;
|
|
15
15
|
};
|
|
16
16
|
defaultProps: {
|
|
17
|
-
type:
|
|
17
|
+
type: "dark";
|
|
18
18
|
className: null;
|
|
19
19
|
alignToButton: boolean;
|
|
20
20
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
primary:
|
|
3
|
-
light:
|
|
4
|
-
dark:
|
|
1
|
+
declare const SPINNER_TYPES: {
|
|
2
|
+
readonly primary: "primary";
|
|
3
|
+
readonly light: "light";
|
|
4
|
+
readonly dark: "dark";
|
|
5
5
|
};
|
|
6
|
-
export default
|
|
6
|
+
export default SPINNER_TYPES;
|
|
7
|
+
export type SpinnerTypes = (typeof SPINNER_TYPES)[keyof typeof SPINNER_TYPES];
|
|
@@ -14,8 +14,11 @@
|
|
|
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
|
-
*/
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
const SPINNER_TYPES = {
|
|
18
20
|
primary: 'primary',
|
|
19
21
|
light: 'light',
|
|
20
22
|
dark: 'dark'
|
|
21
|
-
};
|
|
23
|
+
};
|
|
24
|
+
export default SPINNER_TYPES;
|