@justeattakeaway/pie-form-label 0.14.2 → 0.14.4

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.
@@ -27,7 +27,7 @@
27
27
  "kind": "field",
28
28
  "name": "for",
29
29
  "type": {
30
- "text": "string | undefined"
30
+ "text": "FormLabelProps['for']"
31
31
  },
32
32
  "privacy": "public",
33
33
  "attribute": "for",
@@ -37,7 +37,7 @@
37
37
  "kind": "field",
38
38
  "name": "optional",
39
39
  "type": {
40
- "text": "string | undefined"
40
+ "text": "FormLabelProps['optional']"
41
41
  },
42
42
  "privacy": "public",
43
43
  "attribute": "optional"
@@ -46,7 +46,7 @@
46
46
  "kind": "field",
47
47
  "name": "trailing",
48
48
  "type": {
49
- "text": "string | undefined"
49
+ "text": "FormLabelProps['trailing']"
50
50
  },
51
51
  "privacy": "public",
52
52
  "attribute": "trailing"
@@ -71,21 +71,21 @@
71
71
  {
72
72
  "name": "for",
73
73
  "type": {
74
- "text": "string | undefined"
74
+ "text": "FormLabelProps['for']"
75
75
  },
76
76
  "fieldName": "for"
77
77
  },
78
78
  {
79
79
  "name": "optional",
80
80
  "type": {
81
- "text": "string | undefined"
81
+ "text": "FormLabelProps['optional']"
82
82
  },
83
83
  "fieldName": "optional"
84
84
  },
85
85
  {
86
86
  "name": "trailing",
87
87
  "type": {
88
- "text": "string | undefined"
88
+ "text": "FormLabelProps['trailing']"
89
89
  },
90
90
  "fieldName": "trailing"
91
91
  }
package/dist/index.d.ts CHANGED
@@ -23,9 +23,9 @@ export declare interface FormLabelProps {
23
23
  * @tagname pie-form-label
24
24
  */
25
25
  export declare class PieFormLabel extends PieFormLabel_base implements FormLabelProps {
26
- for?: string;
27
- optional?: string;
28
- trailing?: string;
26
+ for: FormLabelProps['for'];
27
+ optional: FormLabelProps['optional'];
28
+ trailing: FormLabelProps['trailing'];
29
29
  private _renderOptionalLabel;
30
30
  private handleClick;
31
31
  render(): TemplateResult<1>;
package/dist/react.d.ts CHANGED
@@ -26,9 +26,9 @@ export declare const PieFormLabel: React_2.ForwardRefExoticComponent<FormLabelPr
26
26
  * @tagname pie-form-label
27
27
  */
28
28
  declare class PieFormLabel_2 extends PieFormLabel_base implements FormLabelProps {
29
- for?: string;
30
- optional?: string;
31
- trailing?: string;
29
+ for: FormLabelProps['for'];
30
+ optional: FormLabelProps['optional'];
31
+ trailing: FormLabelProps['trailing'];
32
32
  private _renderOptionalLabel;
33
33
  private handleClick;
34
34
  render(): TemplateResult<1>;
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.14.2",
4
+ "version": "0.14.4",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -37,14 +37,14 @@
37
37
  "devDependencies": {
38
38
  "@custom-elements-manifest/analyzer": "0.9.0",
39
39
  "@justeattakeaway/pie-components-config": "0.18.0",
40
- "@justeattakeaway/pie-css": "0.13.0",
41
- "@justeattakeaway/pie-switch": "0.30.2",
42
- "@justeattakeaway/pie-text-input": "0.24.1",
43
- "@justeattakeaway/pie-wrapper-react": "0.14.1",
40
+ "@justeattakeaway/pie-css": "0.13.1",
41
+ "@justeattakeaway/pie-switch": "0.30.6",
42
+ "@justeattakeaway/pie-text-input": "0.24.5",
43
+ "@justeattakeaway/pie-wrapper-react": "0.14.2",
44
44
  "cem-plugin-module-file-extensions": "0.0.5"
45
45
  },
46
46
  "dependencies": {
47
- "@justeattakeaway/pie-webc-core": "0.24.1"
47
+ "@justeattakeaway/pie-webc-core": "0.24.2"
48
48
  },
49
49
  "volta": {
50
50
  "extends": "../../../package.json"
package/src/defs-react.ts CHANGED
@@ -1,3 +1,3 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
 
3
3
  export type ReactBaseType = React.LabelHTMLAttributes<HTMLLabelElement>
package/src/index.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
- LitElement, TemplateResult, html, nothing, unsafeCSS,
2
+ LitElement, type TemplateResult, html, nothing, unsafeCSS,
3
3
  } from 'lit';
4
4
  import { ifDefined } from 'lit/directives/if-defined.js';
5
- import { RtlMixin, defineCustomElement, PIEInputElement } from '@justeattakeaway/pie-webc-core';
5
+ import { RtlMixin, defineCustomElement, type PIEInputElement } from '@justeattakeaway/pie-webc-core';
6
6
  import { property } from 'lit/decorators.js';
7
7
  import styles from './form-label.scss?inline';
8
- import { FormLabelProps } from './defs';
8
+ import { type FormLabelProps } from './defs';
9
9
 
10
10
  // Valid values available to consumers
11
11
  export * from './defs';
@@ -17,13 +17,13 @@ const componentSelector = 'pie-form-label';
17
17
  */
18
18
  export class PieFormLabel extends RtlMixin(LitElement) implements FormLabelProps {
19
19
  @property({ type: String, reflect: true })
20
- public for?: string;
20
+ public for: FormLabelProps['for'];
21
21
 
22
22
  @property({ type: String })
23
- public optional?: string;
23
+ public optional: FormLabelProps['optional'];
24
24
 
25
25
  @property({ type: String })
26
- public trailing?: string;
26
+ public trailing: FormLabelProps['trailing'];
27
27
 
28
28
  private _renderOptionalLabel (): TemplateResult | typeof nothing {
29
29
  const { optional } = this;
package/src/react.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { createComponent } from '@lit/react';
3
3
  import { PieFormLabel as PieFormLabelLit } from './index';
4
- import { FormLabelProps } from './defs';
4
+ import { type FormLabelProps } from './defs';
5
5
 
6
6
  export * from './defs';
7
7