@justeattakeaway/pie-icon-button 0.13.2 → 0.14.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.
@@ -1,20 +1,35 @@
1
- export declare const sizes: readonly ["xsmall", "small", "medium", "large"];
2
- export declare const variants: readonly ["primary", "secondary", "outline", "ghost", "ghost-secondary"];
3
- export interface IconButtonProps {
4
- /**
5
- * (Optional) What size the button should be.
6
- * @default "medium"
7
- */
8
- size: typeof sizes[number];
9
- /**
10
- * (Optional) What style variant the button should be such as primary, outline or ghost.
11
- * @default "primary"
12
- */
13
- variant: typeof variants[number];
14
- /**
15
- * (Optional) When true, the button element is disabled.
16
- * @default false
17
- */
18
- disabled: boolean;
19
- }
20
- //# sourceMappingURL=defs.d.ts.map
1
+ import type { CSSResult } from 'lit';
2
+ import type { LitElement } from 'lit';
3
+ import type { TemplateResult } from 'lit-html';
4
+
5
+ export declare interface IconButtonProps {
6
+ /**
7
+ * (Optional) What size the button should be.
8
+ * @default "medium"
9
+ */
10
+ size: typeof sizes[number];
11
+ /**
12
+ * (Optional) What style variant the button should be such as primary, outline or ghost.
13
+ * @default "primary"
14
+ */
15
+ variant: typeof variants[number];
16
+ /**
17
+ * (Optional) When true, the button element is disabled.
18
+ * @default false
19
+ */
20
+ disabled: boolean;
21
+ }
22
+
23
+ export declare class PieIconButton extends LitElement implements IconButtonProps {
24
+ size: IconButtonProps['size'];
25
+ variant: IconButtonProps['variant'];
26
+ disabled: boolean;
27
+ render(): TemplateResult<1>;
28
+ static styles: CSSResult;
29
+ }
30
+
31
+ export declare const sizes: readonly ["xsmall", "small", "medium", "large"];
32
+
33
+ export declare const variants: readonly ["primary", "secondary", "outline", "ghost", "ghost-secondary"];
34
+
35
+ export { }
@@ -0,0 +1,38 @@
1
+ import type { CSSResult } from 'lit';
2
+ import type { LitElement } from 'lit';
3
+ import type { ReactWebComponent } from '@lit-labs/react';
4
+ import type { TemplateResult } from 'lit-html';
5
+
6
+ export declare interface IconButtonProps {
7
+ /**
8
+ * (Optional) What size the button should be.
9
+ * @default "medium"
10
+ */
11
+ size: typeof sizes[number];
12
+ /**
13
+ * (Optional) What style variant the button should be such as primary, outline or ghost.
14
+ * @default "primary"
15
+ */
16
+ variant: typeof variants[number];
17
+ /**
18
+ * (Optional) When true, the button element is disabled.
19
+ * @default false
20
+ */
21
+ disabled: boolean;
22
+ }
23
+
24
+ export declare const PieIconButton: ReactWebComponent<PieIconButton_2, {}>;
25
+
26
+ declare class PieIconButton_2 extends LitElement implements IconButtonProps {
27
+ size: IconButtonProps['size'];
28
+ variant: IconButtonProps['variant'];
29
+ disabled: boolean;
30
+ render(): TemplateResult<1>;
31
+ static styles: CSSResult;
32
+ }
33
+
34
+ export declare const sizes: readonly ["xsmall", "small", "medium", "large"];
35
+
36
+ export declare const variants: readonly ["primary", "secondary", "outline", "ghost", "ghost-secondary"];
37
+
38
+ export { }