@justeattakeaway/pie-spinner 0.4.0 → 0.5.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/custom-elements.json +6 -0
- package/dist/react.d.ts +4 -2
- package/dist/react.js +9 -9
- package/package.json +4 -4
- package/src/defs-react.ts +3 -0
- package/src/react.ts +9 -4
package/custom-elements.json
CHANGED
package/dist/react.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { CSSResult } from 'lit';
|
|
2
2
|
import type { LitElement } from 'lit';
|
|
3
|
-
import
|
|
3
|
+
import * as React_2 from 'react';
|
|
4
4
|
import type { TemplateResult } from 'lit-html';
|
|
5
5
|
|
|
6
6
|
export declare type AriaProps = {
|
|
7
7
|
label?: string;
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
-
export declare const PieSpinner:
|
|
10
|
+
export declare const PieSpinner: React_2.ForwardRefExoticComponent<SpinnerProps & React_2.RefAttributes<PieSpinner_2> & ReactBaseType>;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* @tagname pie-spinner
|
|
@@ -20,6 +20,8 @@ declare class PieSpinner_2 extends LitElement implements SpinnerProps {
|
|
|
20
20
|
static styles: CSSResult;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
declare type ReactBaseType = React_2.HTMLAttributes<HTMLDivElement>;
|
|
24
|
+
|
|
23
25
|
export declare const sizes: readonly ["xsmall", "small", "medium", "large", "xlarge"];
|
|
24
26
|
|
|
25
27
|
export declare interface SpinnerProps {
|
package/dist/react.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import { createComponent as
|
|
3
|
-
import { PieSpinner as
|
|
4
|
-
import { sizes as
|
|
2
|
+
import { createComponent as i } from "@lit/react";
|
|
3
|
+
import { PieSpinner as r } from "./index.js";
|
|
4
|
+
import { sizes as S, variants as f } from "./index.js";
|
|
5
5
|
import "lit";
|
|
6
6
|
import "lit/decorators.js";
|
|
7
7
|
import "@justeattakeaway/pie-webc-core";
|
|
8
|
-
const
|
|
8
|
+
const n = i({
|
|
9
9
|
displayName: "PieSpinner",
|
|
10
|
-
elementClass:
|
|
10
|
+
elementClass: r,
|
|
11
11
|
react: e,
|
|
12
12
|
tagName: "pie-spinner",
|
|
13
13
|
events: {}
|
|
14
|
-
});
|
|
14
|
+
}), s = n;
|
|
15
15
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
s as PieSpinner,
|
|
17
|
+
S as sizes,
|
|
18
|
+
f as variants
|
|
19
19
|
};
|
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.
|
|
4
|
+
"version": "0.5.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"license": "Apache-2.0",
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@custom-elements-manifest/analyzer": "0.9.0",
|
|
35
|
-
"@justeattakeaway/pie-components-config": "0.
|
|
36
|
-
"@justeattakeaway/pie-wrapper-react": "0.
|
|
35
|
+
"@justeattakeaway/pie-components-config": "0.9.0",
|
|
36
|
+
"@justeattakeaway/pie-wrapper-react": "0.14.0",
|
|
37
37
|
"cem-plugin-module-file-extensions": "0.0.5"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@justeattakeaway/pie-webc-core": "0.
|
|
40
|
+
"@justeattakeaway/pie-webc-core": "0.17.1"
|
|
41
41
|
},
|
|
42
42
|
"volta": {
|
|
43
43
|
"extends": "../../../package.json"
|
package/src/react.ts
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import { createComponent } from '@lit/react';
|
|
4
|
-
import { PieSpinner as
|
|
3
|
+
import { PieSpinner as PieSpinnerLit } from './index';
|
|
4
|
+
import { SpinnerProps } from './defs';
|
|
5
5
|
|
|
6
6
|
export * from './defs';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
const PieSpinnerReact = createComponent({
|
|
9
9
|
displayName: 'PieSpinner',
|
|
10
|
-
elementClass:
|
|
10
|
+
elementClass: PieSpinnerLit,
|
|
11
11
|
react: React,
|
|
12
12
|
tagName: 'pie-spinner',
|
|
13
13
|
events: {},
|
|
14
14
|
});
|
|
15
|
+
|
|
16
|
+
type ReactBaseType = React.HTMLAttributes<HTMLDivElement>
|
|
17
|
+
|
|
18
|
+
export const PieSpinner = PieSpinnerReact as React.ForwardRefExoticComponent<React.PropsWithoutRef<SpinnerProps>
|
|
19
|
+
& React.RefAttributes<PieSpinnerLit> & ReactBaseType>;
|