@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.
@@ -2,6 +2,12 @@
2
2
  "schemaVersion": "1.0.0",
3
3
  "readme": "",
4
4
  "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/defs-react.js",
8
+ "declarations": [],
9
+ "exports": []
10
+ },
5
11
  {
6
12
  "kind": "javascript-module",
7
13
  "path": "src/defs.js",
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 type { ReactWebComponent } from '@lit/react';
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: ReactWebComponent<PieFormLabel_2, {}>;
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 m } from "@lit/react";
3
- import { PieFormLabel as o } from "./index.js";
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 l = m({
7
+ const r = o({
8
8
  displayName: "PieFormLabel",
9
- elementClass: o,
9
+ elementClass: m,
10
10
  react: e,
11
11
  tagName: "pie-form-label",
12
12
  events: {}
13
- });
13
+ }), s = r;
14
14
  export {
15
- l as PieFormLabel
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.9.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.8.0",
36
- "@justeattakeaway/pie-wrapper-react": "0.12.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.16.0"
40
+ "@justeattakeaway/pie-webc-core": "0.17.0"
41
41
  },
42
42
  "volta": {
43
43
  "extends": "../../../package.json"
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+
3
+ export type ReactBaseType = React.LabelHTMLAttributes<HTMLLabelElement>
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 PieFormLabelReact } from './index';
3
+ import { PieFormLabel as PieFormLabelLit } from './index';
4
+ import { FormLabelProps } from './defs';
5
5
 
6
6
  export * from './defs';
7
7
 
8
- export const PieFormLabel = createComponent({
8
+ const PieFormLabelReact = createComponent({
9
9
  displayName: 'PieFormLabel',
10
- elementClass: PieFormLabelReact,
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>;