@justeattakeaway/pie-divider 0.2.0 → 0.4.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/dist/index.d.ts +27 -0
- package/dist/react.d.ts +30 -0
- package/dist/react.js +42 -1561
- package/package.json +7 -2
- package/src/index.ts +1 -5
- package/.eslintignore +0 -6
- package/.turbo/turbo-build.log +0 -14
- package/CHANGELOG.md +0 -19
- package/dist/types/index.d.ts +0 -1
- package/dist/types/packages/components/pie-divider/src/defs.d.ts +0 -13
- package/dist/types/packages/components/pie-divider/src/defs.d.ts.map +0 -1
- package/dist/types/packages/components/pie-divider/src/index.d.ts +0 -16
- package/dist/types/packages/components/pie-divider/src/index.d.ts.map +0 -1
- package/dist/types/packages/components/pie-divider/src/react.d.ts +0 -3
- package/dist/types/packages/components/pie-divider/src/react.d.ts.map +0 -1
- package/dist/types/react.d.ts +0 -1
- package/playwright/index.html +0 -57
- package/playwright/index.ts +0 -1
- package/playwright-lit-visual.config.ts +0 -4
- package/playwright-lit.config.ts +0 -4
- package/test/accessibility/pie-divider.spec.ts +0 -18
- package/test/component/pie-divider.spec.ts +0 -20
- package/test/visual/pie-divider.spec.ts +0 -50
- package/tsconfig.json +0 -8
- package/vite.config.js +0 -3
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { CSSResult } from 'lit';
|
|
2
|
+
import type { LitElement } from 'lit';
|
|
3
|
+
import type { TemplateResult } from 'lit-html';
|
|
4
|
+
|
|
5
|
+
export declare interface DividerProps {
|
|
6
|
+
/**
|
|
7
|
+
* What style variant the divider should be such as default or vertical.
|
|
8
|
+
*/
|
|
9
|
+
variant: typeof variants[number];
|
|
10
|
+
/**
|
|
11
|
+
* What orientation the divider should be such as horizontal or inverse.
|
|
12
|
+
*/
|
|
13
|
+
orientation: typeof orientations[number];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export declare const orientations: readonly ["horizontal", "vertical"];
|
|
17
|
+
|
|
18
|
+
export declare class PieDivider extends LitElement implements DividerProps {
|
|
19
|
+
variant: DividerProps['variant'];
|
|
20
|
+
orientation: DividerProps['orientation'];
|
|
21
|
+
render(): TemplateResult<1>;
|
|
22
|
+
static styles: CSSResult;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export declare const variants: readonly ["default", "inverse"];
|
|
26
|
+
|
|
27
|
+
export { }
|
package/dist/react.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
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 DividerProps {
|
|
7
|
+
/**
|
|
8
|
+
* What style variant the divider should be such as default or vertical.
|
|
9
|
+
*/
|
|
10
|
+
variant: typeof variants[number];
|
|
11
|
+
/**
|
|
12
|
+
* What orientation the divider should be such as horizontal or inverse.
|
|
13
|
+
*/
|
|
14
|
+
orientation: typeof orientations[number];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export declare const orientations: readonly ["horizontal", "vertical"];
|
|
18
|
+
|
|
19
|
+
export declare const PieDivider: ReactWebComponent<PieDivider_2, {}>;
|
|
20
|
+
|
|
21
|
+
declare class PieDivider_2 extends LitElement implements DividerProps {
|
|
22
|
+
variant: DividerProps['variant'];
|
|
23
|
+
orientation: DividerProps['orientation'];
|
|
24
|
+
render(): TemplateResult<1>;
|
|
25
|
+
static styles: CSSResult;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export declare const variants: readonly ["default", "inverse"];
|
|
29
|
+
|
|
30
|
+
export { }
|