@justeattakeaway/pie-spinner 0.6.5 → 0.6.7

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/README.md CHANGED
@@ -29,11 +29,9 @@ This component can be easily integrated into various frontend frameworks and cus
29
29
  To install `pie-spinner` in your application, run the following on your command line:
30
30
 
31
31
  ```bash
32
- # npm
33
- $ npm i @justeattakeaway/pie-spinner
32
+ npm i @justeattakeaway/pie-spinner
34
33
 
35
- # yarn
36
- $ yarn add @justeattakeaway/pie-spinner
34
+ yarn add @justeattakeaway/pie-spinner
37
35
  ```
38
36
 
39
37
  For full information on using PIE components as part of an application, check out the [Getting Started Guide](https://github.com/justeattakeaway/pie/wiki/Getting-started-with-PIE-Web-Components).
@@ -90,4 +88,4 @@ In your markup or JSX, you can then use these to set the properties for the `pie
90
88
 
91
89
  ## Contributing
92
90
 
93
- Check out our [contributing guide](https://github.com/justeattakeaway/pie/wiki/Contributing-Guide) for more information on [local development](https://github.com/justeattakeaway/pie/wiki/Contributing-Guide#local-development) and how to run specific [component tests](https://github.com/justeattakeaway/pie/wiki/Contributing-Guide#testing).
91
+ Check out our [contributing guide](https://github.com/justeattakeaway/pie/wiki/Contributing-Guide) for more information on [local development](https://github.com/justeattakeaway/pie/wiki/Contributing-Guide#local-development) and how to run specific [component tests](https://github.com/justeattakeaway/pie/wiki/Contributing-Guide#testing).
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ComponentDefaultPropsGeneric } from '@justeattakeaway/pie-webc-core';
1
+ import { ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
2
2
  import type { CSSResult } from 'lit';
3
3
  import type { LitElement } from 'lit';
4
4
  import type { TemplateResult } from 'lit-html';
@@ -7,7 +7,7 @@ export declare type AriaProps = {
7
7
  label?: string;
8
8
  };
9
9
 
10
- export declare type DefaultProps = ComponentDefaultPropsGeneric<SpinnerProps, 'size' | 'variant'>;
10
+ export declare type DefaultProps = ComponentDefaultProps<SpinnerProps, keyof Omit<SpinnerProps, 'aria'>>;
11
11
 
12
12
  export declare const defaultProps: DefaultProps;
13
13
 
package/dist/react.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ComponentDefaultPropsGeneric } from '@justeattakeaway/pie-webc-core';
1
+ import { ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
2
2
  import type { CSSResult } from 'lit';
3
3
  import type { LitElement } from 'lit';
4
4
  import * as React_2 from 'react';
@@ -8,7 +8,7 @@ export declare type AriaProps = {
8
8
  label?: string;
9
9
  };
10
10
 
11
- export declare type DefaultProps = ComponentDefaultPropsGeneric<SpinnerProps, 'size' | 'variant'>;
11
+ export declare type DefaultProps = ComponentDefaultProps<SpinnerProps, keyof Omit<SpinnerProps, 'aria'>>;
12
12
 
13
13
  export declare const defaultProps: DefaultProps;
14
14
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@justeattakeaway/pie-spinner",
3
3
  "description": "PIE Design System Spinner built using Web Components",
4
- "version": "0.6.5",
4
+ "version": "0.6.7",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -36,12 +36,13 @@
36
36
  "license": "Apache-2.0",
37
37
  "devDependencies": {
38
38
  "@custom-elements-manifest/analyzer": "0.9.0",
39
- "@justeattakeaway/pie-components-config": "0.16.0",
40
- "@justeattakeaway/pie-wrapper-react": "0.14.0",
39
+ "@justeattakeaway/pie-components-config": "0.17.0",
40
+ "@justeattakeaway/pie-css": "0.12.1",
41
+ "@justeattakeaway/pie-wrapper-react": "0.14.1",
41
42
  "cem-plugin-module-file-extensions": "0.0.5"
42
43
  },
43
44
  "dependencies": {
44
- "@justeattakeaway/pie-webc-core": "0.23.0"
45
+ "@justeattakeaway/pie-webc-core": "0.24.0"
45
46
  },
46
47
  "volta": {
47
48
  "extends": "../../../package.json"
package/src/defs.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type ComponentDefaultPropsGeneric } from '@justeattakeaway/pie-webc-core';
1
+ import { type ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
2
2
 
3
3
  export const sizes = ['xsmall', 'small', 'medium', 'large', 'xlarge'] as const;
4
4
  export const variants = ['brand', 'secondary', 'inverse'] as const;
@@ -22,7 +22,8 @@ export interface SpinnerProps {
22
22
  variant?: typeof variants[number];
23
23
  }
24
24
 
25
- export type DefaultProps = ComponentDefaultPropsGeneric<SpinnerProps, 'size' | 'variant'>;
25
+ export type DefaultProps = ComponentDefaultProps<SpinnerProps, keyof Omit<SpinnerProps, 'aria'>>;
26
+
26
27
  export const defaultProps: DefaultProps = {
27
28
  size: 'medium',
28
29
  variant: 'brand',