@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.
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import PropTypes from 'prop-types';
3
- import SPINNER_TYPES from './spinnerTypes';
3
+ import type { SpinnerTypes } from './spinnerTypes';
4
4
  type Props = {
5
- type: keyof typeof SPINNER_TYPES;
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: string;
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 SPINNER_TYPES from './spinnerTypes';
3
+ import type { SpinnerTypes } from './spinnerTypes';
4
4
  type Props = {
5
- type: keyof typeof SPINNER_TYPES;
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: string;
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 SPINNER_TYPES from './spinnerTypes';
3
+ import type { SpinnerTypes } from './spinnerTypes';
4
4
  type Props = {
5
- type: keyof typeof SPINNER_TYPES;
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: string;
17
+ type: "dark";
18
18
  className: null;
19
19
  alignToButton: boolean;
20
20
  };
@@ -1,6 +1,7 @@
1
- declare const _default: {
2
- primary: string;
3
- light: string;
4
- dark: string;
1
+ declare const SPINNER_TYPES: {
2
+ readonly primary: "primary";
3
+ readonly light: "light";
4
+ readonly dark: "dark";
5
5
  };
6
- export default _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
- */export default {
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyscanner/backpack-web",
3
- "version": "34.1.0",
3
+ "version": "34.1.1",
4
4
  "description": "Backpack Design System web library",
5
5
  "repository": {
6
6
  "type": "git",