@justeattakeaway/pie-select 0.1.0 → 0.2.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.
@@ -214,6 +214,84 @@
214
214
  }
215
215
  }
216
216
  ]
217
+ },
218
+ {
219
+ "kind": "javascript-module",
220
+ "path": "src/pie-option/defs-react.js",
221
+ "declarations": [],
222
+ "exports": []
223
+ },
224
+ {
225
+ "kind": "javascript-module",
226
+ "path": "src/pie-option/defs.js",
227
+ "declarations": [],
228
+ "exports": []
229
+ },
230
+ {
231
+ "kind": "javascript-module",
232
+ "path": "src/pie-option/index.js",
233
+ "declarations": [
234
+ {
235
+ "kind": "class",
236
+ "description": "",
237
+ "name": "PieOption",
238
+ "superclass": {
239
+ "name": "LitElement",
240
+ "package": "lit"
241
+ },
242
+ "tagName": "pie-option",
243
+ "customElement": true
244
+ }
245
+ ],
246
+ "exports": [
247
+ {
248
+ "kind": "js",
249
+ "name": "PieOption",
250
+ "declaration": {
251
+ "name": "PieOption",
252
+ "module": "src/pie-option/index.js"
253
+ }
254
+ }
255
+ ]
256
+ },
257
+ {
258
+ "kind": "javascript-module",
259
+ "path": "src/pie-option-group/defs-react.js",
260
+ "declarations": [],
261
+ "exports": []
262
+ },
263
+ {
264
+ "kind": "javascript-module",
265
+ "path": "src/pie-option-group/defs.js",
266
+ "declarations": [],
267
+ "exports": []
268
+ },
269
+ {
270
+ "kind": "javascript-module",
271
+ "path": "src/pie-option-group/index.js",
272
+ "declarations": [
273
+ {
274
+ "kind": "class",
275
+ "description": "",
276
+ "name": "PieOptionGroup",
277
+ "superclass": {
278
+ "name": "LitElement",
279
+ "package": "lit"
280
+ },
281
+ "tagName": "pie-option-group",
282
+ "customElement": true
283
+ }
284
+ ],
285
+ "exports": [
286
+ {
287
+ "kind": "js",
288
+ "name": "PieOptionGroup",
289
+ "declaration": {
290
+ "name": "PieOptionGroup",
291
+ "module": "src/pie-option-group/index.js"
292
+ }
293
+ }
294
+ ]
217
295
  }
218
296
  ]
219
297
  }
package/dist/defs.d.ts ADDED
@@ -0,0 +1,29 @@
1
+ import { type ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
2
+ export declare const sizes: readonly ["small", "medium", "large"];
3
+ export declare const statusTypes: readonly ["default", "error"];
4
+ export interface SelectProps {
5
+ /**
6
+ * The size of the select component. Can be `small`, `medium` or `large`. Defaults to `medium`.
7
+ */
8
+ size?: typeof sizes[number];
9
+ /**
10
+ * Same as the HTML disabled attribute - indicates whether the select is disabled.
11
+ */
12
+ disabled?: boolean;
13
+ /**
14
+ * An optional assistive text to display below the select element. Must be provided when the status is success or error.
15
+ */
16
+ assistiveText?: string;
17
+ /**
18
+ * The status of the select component / assistive text. Can be default or error.
19
+ */
20
+ status?: typeof statusTypes[number];
21
+ /**
22
+ * The name of the select (used as a key/value pair with `value`). This is required in order to work properly with forms.
23
+ */
24
+ name?: string;
25
+ }
26
+ type DefaultProps = ComponentDefaultProps<SelectProps, keyof Omit<SelectProps, 'name' | 'assistiveText'>>;
27
+ export declare const defaultProps: DefaultProps;
28
+ export {};
29
+ //# sourceMappingURL=defs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../src/defs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAE5E,eAAO,MAAM,KAAK,uCAAwC,CAAC;AAE3D,eAAO,MAAM,WAAW,+BAAgC,CAAC;AAEzD,MAAM,WAAW,WAAW;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC;IAE5B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,WAAW,CAAC,MAAM,CAAC,CAAC;IAEpC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,KAAK,YAAY,GAAG,qBAAqB,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,eAAe,CAAE,CAAC,CAAC;AAE3G,eAAO,MAAM,YAAY,EAAE,YAI1B,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,64 +1,33 @@
1
- import { ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
2
- import type { CSSResult } from 'lit';
3
- import type { GenericConstructor } from '@justeattakeaway/pie-webc-core';
4
- import type { LitElement } from 'lit';
5
- import type { RTLInterface } from '@justeattakeaway/pie-webc-core';
6
- import type { TemplateResult } from 'lit-html';
7
-
8
- declare type DefaultProps = ComponentDefaultProps<SelectProps, keyof Omit<SelectProps, 'name' | 'assistiveText'>>;
9
-
10
- export declare const defaultProps: DefaultProps;
11
-
12
- /**
13
- * @tagname pie-select
14
- */
15
- export declare class PieSelect extends PieSelect_base implements SelectProps {
16
- static shadowRootOptions: {
17
- delegatesFocus: boolean;
18
- mode: ShadowRootMode;
19
- slotAssignment?: SlotAssignmentMode | undefined;
20
- };
21
- size: "small" | "medium" | "large";
22
- disabled: boolean;
23
- status: "default" | "error";
24
- assistiveText: SelectProps['assistiveText'];
25
- name: SelectProps['name'];
26
- focusTarget: HTMLElement;
27
- private _leadingIconSlot;
28
- private _hasLeadingIcon;
29
- private _handleLeadingIconSlotchange;
30
- private renderAssistiveText;
31
- render(): TemplateResult<1>;
32
- static styles: CSSResult;
33
- }
34
-
35
- declare const PieSelect_base: GenericConstructor<RTLInterface> & typeof LitElement;
36
-
37
- export declare interface SelectProps {
38
- /**
39
- * The size of the select component. Can be `small`, `medium` or `large`. Defaults to `medium`.
40
- */
41
- size?: typeof sizes[number];
42
- /**
43
- * Same as the HTML disabled attribute - indicates whether the select is disabled.
44
- */
45
- disabled?: boolean;
46
- /**
47
- * An optional assistive text to display below the select element. Must be provided when the status is success or error.
48
- */
49
- assistiveText?: string;
50
- /**
51
- * The status of the select component / assistive text. Can be default or error.
52
- */
53
- status?: typeof statusTypes[number];
54
- /**
55
- * The name of the select (used as a key/value pair with `value`). This is required in order to work properly with forms.
56
- */
57
- name?: string;
58
- }
59
-
60
- export declare const sizes: readonly ["small", "medium", "large"];
61
-
62
- export declare const statusTypes: readonly ["default", "error"];
63
-
64
- export { }
1
+ import { LitElement } from 'lit';
2
+ import { type SelectProps } from './defs';
3
+ export * from './defs';
4
+ declare const componentSelector = "pie-select";
5
+ declare const PieSelect_base: import("@justeattakeaway/pie-webc-core").GenericConstructor<import("@justeattakeaway/pie-webc-core").RTLInterface> & typeof LitElement;
6
+ /**
7
+ * @tagname pie-select
8
+ */
9
+ export declare class PieSelect extends PieSelect_base implements SelectProps {
10
+ static shadowRootOptions: {
11
+ delegatesFocus: boolean;
12
+ mode: ShadowRootMode;
13
+ slotAssignment?: SlotAssignmentMode | undefined;
14
+ };
15
+ size: "small" | "medium" | "large";
16
+ disabled: boolean;
17
+ status: "default" | "error";
18
+ assistiveText: SelectProps['assistiveText'];
19
+ name: SelectProps['name'];
20
+ focusTarget: HTMLElement;
21
+ private _leadingIconSlot;
22
+ private _hasLeadingIcon;
23
+ private _handleLeadingIconSlotchange;
24
+ private renderAssistiveText;
25
+ render(): import("lit-html").TemplateResult<1>;
26
+ static styles: import("lit").CSSResult;
27
+ }
28
+ declare global {
29
+ interface HTMLElementTagNameMap {
30
+ [componentSelector]: PieSelect;
31
+ }
32
+ }
33
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,UAAU,EAIb,MAAM,KAAK,CAAC;AAcb,OAAO,yDAAyD,CAAC;AAGjE,OAAO,EAIH,KAAK,WAAW,EACnB,MAAM,QAAQ,CAAC;AAGhB,cAAc,QAAQ,CAAC;AAEvB,QAAA,MAAM,iBAAiB,eAAe,CAAC;;AAGvC;;GAEG;AACH,qBAAa,SAAU,SAAQ,cAAqB,YAAW,WAAW;IACtE,MAAM,CAAC,iBAAiB;;;;MAA6D;IAI9E,IAAI,+BAAqB;IAGzB,QAAQ,UAAyB;IAIjC,MAAM,sBAAuB;IAG7B,aAAa,EAAE,WAAW,CAAC,eAAe,CAAC,CAAC;IAG5C,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAG1B,WAAW,EAAG,WAAW,CAAC;IAGjC,OAAO,CAAC,gBAAgB,CAAsB;IAG9C,OAAO,CAAC,eAAe,CAAS;IAEhC,OAAO,CAAC,4BAA4B;IAIpC,OAAO,CAAC,mBAAmB;IAe3B,MAAM;IAwCN,MAAM,CAAC,MAAM,0BAAqB;CACrC;AAID,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,CAAC,iBAAiB,CAAC,EAAE,SAAS,CAAC;KAClC;CACJ"}
@@ -0,0 +1,3 @@
1
+ export interface OptionProps {
2
+ }
3
+ //# sourceMappingURL=defs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../src/pie-option/defs.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,WAAW;CAC3B"}
@@ -0,0 +1,15 @@
1
+ import { LitElement } from 'lit';
2
+ import { type OptionProps } from './defs';
3
+ declare const componentSelector = "pie-option";
4
+ /**
5
+ * @tagname pie-option
6
+ */
7
+ export declare class PieOption extends LitElement implements OptionProps {
8
+ }
9
+ declare global {
10
+ interface HTMLElementTagNameMap {
11
+ [componentSelector]: PieOption;
12
+ }
13
+ }
14
+ export {};
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pie-option/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjC,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,QAAQ,CAAC;AAE1C,QAAA,MAAM,iBAAiB,eAAe,CAAC;AAEvC;;GAEG;AACH,qBAAa,SAAU,SAAQ,UAAW,YAAW,WAAW;CAE/D;AAID,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,CAAC,iBAAiB,CAAC,EAAE,SAAS,CAAC;KAClC;CACJ"}
@@ -0,0 +1,9 @@
1
+ import { LitElement as e } from "lit";
2
+ import { defineCustomElement as o } from "@justeattakeaway/pie-webc-core";
3
+ const t = "pie-option";
4
+ class n extends e {
5
+ }
6
+ o(t, n);
7
+ export {
8
+ n as PieOption
9
+ };
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { PieOption as PieOptionLit } from './index';
3
+ import { type OptionProps } from './defs';
4
+ export * from './defs';
5
+ type ReactBaseType = React.HTMLAttributes<HTMLOptionElement>;
6
+ export declare const PieOption: React.ForwardRefExoticComponent<OptionProps & React.RefAttributes<PieOptionLit> & ReactBaseType>;
7
+ //# sourceMappingURL=react.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../src/pie-option/react.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,IAAI,YAAY,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,QAAQ,CAAC;AAE1C,cAAc,QAAQ,CAAC;AAUvB,KAAK,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAA;AAE5D,eAAO,MAAM,SAAS,kGACkC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import * as e from "react";
2
+ import { createComponent as t } from "@lit/react";
3
+ import { PieOption as o } from "./index.js";
4
+ const i = t({
5
+ displayName: "PieOption",
6
+ elementClass: o,
7
+ react: e,
8
+ tagName: "pie-option",
9
+ events: {}
10
+ }), a = i;
11
+ export {
12
+ a as PieOption
13
+ };
@@ -0,0 +1,3 @@
1
+ export interface OptionGroupProps {
2
+ }
3
+ //# sourceMappingURL=defs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../src/pie-option-group/defs.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,gBAAgB;CAChC"}
@@ -0,0 +1,15 @@
1
+ import { LitElement } from 'lit';
2
+ import { type OptionGroupProps } from './defs';
3
+ declare const componentSelector = "pie-option-group";
4
+ /**
5
+ * @tagname pie-option-group
6
+ */
7
+ export declare class PieOptionGroup extends LitElement implements OptionGroupProps {
8
+ }
9
+ declare global {
10
+ interface HTMLElementTagNameMap {
11
+ [componentSelector]: PieOptionGroup;
12
+ }
13
+ }
14
+ export {};
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pie-option-group/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjC,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE/C,QAAA,MAAM,iBAAiB,qBAAqB,CAAC;AAE7C;;GAEG;AACH,qBAAa,cAAe,SAAQ,UAAW,YAAW,gBAAgB;CAEzE;AAID,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,qBAAqB;QAC3B,CAAC,iBAAiB,CAAC,EAAE,cAAc,CAAC;KACvC;CACJ"}
@@ -0,0 +1,9 @@
1
+ import { LitElement as o } from "lit";
2
+ import { defineCustomElement as e } from "@justeattakeaway/pie-webc-core";
3
+ const t = "pie-option-group";
4
+ class n extends o {
5
+ }
6
+ e(t, n);
7
+ export {
8
+ n as PieOptionGroup
9
+ };
@@ -0,0 +1,7 @@
1
+ import * as React from 'react';
2
+ import { PieOptionGroup as PieOptionGroupLit } from './index';
3
+ import { type OptionGroupProps } from './defs';
4
+ export * from './defs';
5
+ type ReactBaseType = React.HTMLAttributes<HTMLOptGroupElement>;
6
+ export declare const PieOptionGroup: React.ForwardRefExoticComponent<OptionGroupProps & React.RefAttributes<PieOptionGroupLit> & ReactBaseType>;
7
+ //# sourceMappingURL=react.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../src/pie-option-group/react.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC9D,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAE/C,cAAc,QAAQ,CAAC;AAUvB,KAAK,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAA;AAE9D,eAAO,MAAM,cAAc,4GACkC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import * as o from "react";
2
+ import { createComponent as e } from "@lit/react";
3
+ import { PieOptionGroup as t } from "./index.js";
4
+ const p = e({
5
+ displayName: "PieOptionGroup",
6
+ elementClass: t,
7
+ react: o,
8
+ tagName: "pie-option-group",
9
+ events: {}
10
+ }), n = p;
11
+ export {
12
+ n as PieOptionGroup
13
+ };
package/dist/react.d.ts CHANGED
@@ -1,69 +1,7 @@
1
- import { ComponentDefaultProps } from '@justeattakeaway/pie-webc-core';
2
- import type { CSSResult } from 'lit';
3
- import type { GenericConstructor } from '@justeattakeaway/pie-webc-core';
4
- import type { LitElement } from 'lit';
5
- import * as React_2 from 'react';
6
- import type { RTLInterface } from '@justeattakeaway/pie-webc-core';
7
- import type { TemplateResult } from 'lit-html';
8
-
9
- declare type DefaultProps = ComponentDefaultProps<SelectProps, keyof Omit<SelectProps, 'name' | 'assistiveText'>>;
10
-
11
- export declare const defaultProps: DefaultProps;
12
-
13
- export declare const PieSelect: React_2.ForwardRefExoticComponent<SelectProps & React_2.RefAttributes<PieSelect_2> & ReactBaseType>;
14
-
15
- /**
16
- * @tagname pie-select
17
- */
18
- declare class PieSelect_2 extends PieSelect_base implements SelectProps {
19
- static shadowRootOptions: {
20
- delegatesFocus: boolean;
21
- mode: ShadowRootMode;
22
- slotAssignment?: SlotAssignmentMode | undefined;
23
- };
24
- size: "small" | "medium" | "large";
25
- disabled: boolean;
26
- status: "default" | "error";
27
- assistiveText: SelectProps['assistiveText'];
28
- name: SelectProps['name'];
29
- focusTarget: HTMLElement;
30
- private _leadingIconSlot;
31
- private _hasLeadingIcon;
32
- private _handleLeadingIconSlotchange;
33
- private renderAssistiveText;
34
- render(): TemplateResult<1>;
35
- static styles: CSSResult;
36
- }
37
-
38
- declare const PieSelect_base: GenericConstructor<RTLInterface> & typeof LitElement;
39
-
40
- declare type ReactBaseType = React_2.HTMLAttributes<HTMLSelectElement>;
41
-
42
- export declare interface SelectProps {
43
- /**
44
- * The size of the select component. Can be `small`, `medium` or `large`. Defaults to `medium`.
45
- */
46
- size?: typeof sizes[number];
47
- /**
48
- * Same as the HTML disabled attribute - indicates whether the select is disabled.
49
- */
50
- disabled?: boolean;
51
- /**
52
- * An optional assistive text to display below the select element. Must be provided when the status is success or error.
53
- */
54
- assistiveText?: string;
55
- /**
56
- * The status of the select component / assistive text. Can be default or error.
57
- */
58
- status?: typeof statusTypes[number];
59
- /**
60
- * The name of the select (used as a key/value pair with `value`). This is required in order to work properly with forms.
61
- */
62
- name?: string;
63
- }
64
-
65
- export declare const sizes: readonly ["small", "medium", "large"];
66
-
67
- export declare const statusTypes: readonly ["default", "error"];
68
-
69
- export { }
1
+ import * as React from 'react';
2
+ import { PieSelect as PieSelectLit } from './index';
3
+ import { type SelectProps } from './defs';
4
+ export * from './defs';
5
+ type ReactBaseType = React.HTMLAttributes<HTMLSelectElement>;
6
+ export declare const PieSelect: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<PieSelectLit> & ReactBaseType>;
7
+ //# sourceMappingURL=react.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/react.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,IAAI,YAAY,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,QAAQ,CAAC;AAE1C,cAAc,QAAQ,CAAC;AAUvB,KAAK,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAA;AAE5D,eAAO,MAAM,SAAS,kGACkC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@justeattakeaway/pie-select",
3
3
  "description": "PIE Design System Select built using Web Components",
4
- "version": "0.1.0",
4
+ "version": "0.2.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -33,7 +33,7 @@
33
33
  "license": "Apache-2.0",
34
34
  "devDependencies": {
35
35
  "@custom-elements-manifest/analyzer": "0.9.0",
36
- "@justeattakeaway/pie-components-config": "0.18.0",
36
+ "@justeattakeaway/pie-components-config": "0.18.1",
37
37
  "@justeattakeaway/pie-css": "0.16.0",
38
38
  "cem-plugin-module-file-extensions": "0.0.5"
39
39
  },
@@ -0,0 +1,3 @@
1
+ import type React from 'react';
2
+
3
+ export type ReactBaseType = React.HTMLAttributes<HTMLOptionElement>
@@ -0,0 +1,3 @@
1
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
2
+ export interface OptionProps {
3
+ }
@@ -0,0 +1,20 @@
1
+ import { LitElement } from 'lit';
2
+ import { defineCustomElement } from '@justeattakeaway/pie-webc-core';
3
+ import { type OptionProps } from './defs';
4
+
5
+ const componentSelector = 'pie-option';
6
+
7
+ /**
8
+ * @tagname pie-option
9
+ */
10
+ export class PieOption extends LitElement implements OptionProps {
11
+
12
+ }
13
+
14
+ defineCustomElement(componentSelector, PieOption);
15
+
16
+ declare global {
17
+ interface HTMLElementTagNameMap {
18
+ [componentSelector]: PieOption;
19
+ }
20
+ }
@@ -0,0 +1,3 @@
1
+ import type React from 'react';
2
+
3
+ export type ReactBaseType = React.HTMLAttributes<HTMLOptGroupElement>
@@ -0,0 +1,3 @@
1
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
2
+ export interface OptionGroupProps {
3
+ }
@@ -0,0 +1,20 @@
1
+ import { LitElement } from 'lit';
2
+ import { defineCustomElement } from '@justeattakeaway/pie-webc-core';
3
+ import { type OptionGroupProps } from './defs';
4
+
5
+ const componentSelector = 'pie-option-group';
6
+
7
+ /**
8
+ * @tagname pie-option-group
9
+ */
10
+ export class PieOptionGroup extends LitElement implements OptionGroupProps {
11
+
12
+ }
13
+
14
+ defineCustomElement(componentSelector, PieOptionGroup);
15
+
16
+ declare global {
17
+ interface HTMLElementTagNameMap {
18
+ [componentSelector]: PieOptionGroup;
19
+ }
20
+ }