@justeattakeaway/pie-form-label 0.9.0 → 0.10.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/custom-elements.json +6 -0
- package/dist/react.d.ts +4 -2
- package/dist/react.js +6 -6
- package/package.json +4 -4
- package/src/defs-react.ts +3 -0
- package/src/react.ts +10 -4
package/custom-elements.json
CHANGED
package/dist/react.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CSSResult } from 'lit';
|
|
2
2
|
import type { GenericConstructor } from '@justeattakeaway/pie-webc-core';
|
|
3
3
|
import type { LitElement } from 'lit';
|
|
4
|
-
import
|
|
4
|
+
import * as React_2 from 'react';
|
|
5
5
|
import type { RTLInterface } from '@justeattakeaway/pie-webc-core';
|
|
6
6
|
import type { TemplateResult } from 'lit';
|
|
7
7
|
|
|
@@ -20,7 +20,7 @@ export declare interface FormLabelProps {
|
|
|
20
20
|
trailing?: string;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export declare const PieFormLabel:
|
|
23
|
+
export declare const PieFormLabel: React_2.ForwardRefExoticComponent<FormLabelProps & React_2.RefAttributes<PieFormLabel_2> & ReactBaseType>;
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* @tagname pie-form-label
|
|
@@ -36,4 +36,6 @@ declare class PieFormLabel_2 extends PieFormLabel_base implements FormLabelProps
|
|
|
36
36
|
|
|
37
37
|
declare const PieFormLabel_base: GenericConstructor<RTLInterface> & typeof LitElement;
|
|
38
38
|
|
|
39
|
+
declare type ReactBaseType = React_2.LabelHTMLAttributes<HTMLLabelElement>;
|
|
40
|
+
|
|
39
41
|
export { }
|
package/dist/react.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import { createComponent as
|
|
3
|
-
import { PieFormLabel as
|
|
2
|
+
import { createComponent as o } from "@lit/react";
|
|
3
|
+
import { PieFormLabel as m } from "./index.js";
|
|
4
4
|
import "lit";
|
|
5
5
|
import "@justeattakeaway/pie-webc-core";
|
|
6
6
|
import "lit/decorators.js";
|
|
7
|
-
const
|
|
7
|
+
const r = o({
|
|
8
8
|
displayName: "PieFormLabel",
|
|
9
|
-
elementClass:
|
|
9
|
+
elementClass: m,
|
|
10
10
|
react: e,
|
|
11
11
|
tagName: "pie-form-label",
|
|
12
12
|
events: {}
|
|
13
|
-
});
|
|
13
|
+
}), s = r;
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
s as PieFormLabel
|
|
16
16
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@justeattakeaway/pie-form-label",
|
|
3
3
|
"description": "PIE Design System Form Label built using Web Components",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.10.0",
|
|
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.13.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.0"
|
|
41
41
|
},
|
|
42
42
|
"volta": {
|
|
43
43
|
"extends": "../../../package.json"
|
package/src/react.ts
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
|
|
2
1
|
import * as React from 'react';
|
|
3
2
|
import { createComponent } from '@lit/react';
|
|
4
|
-
import { PieFormLabel as
|
|
3
|
+
import { PieFormLabel as PieFormLabelLit } from './index';
|
|
4
|
+
import { FormLabelProps } from './defs';
|
|
5
5
|
|
|
6
6
|
export * from './defs';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
const PieFormLabelReact = createComponent({
|
|
9
9
|
displayName: 'PieFormLabel',
|
|
10
|
-
elementClass:
|
|
10
|
+
elementClass: PieFormLabelLit,
|
|
11
11
|
react: React,
|
|
12
12
|
tagName: 'pie-form-label',
|
|
13
13
|
events: {},
|
|
14
14
|
});
|
|
15
|
+
|
|
16
|
+
type ReactBaseType = React.LabelHTMLAttributes<HTMLLabelElement>
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
export const PieFormLabel = PieFormLabelReact as React.ForwardRefExoticComponent<React.PropsWithoutRef<FormLabelProps> & React.RefAttributes<PieFormLabelLit> & ReactBaseType>;
|