@allurereport/web-components 3.0.0-beta.10
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/README.md +62 -0
- package/dist/components/ArrowButton/index.d.ts +10 -0
- package/dist/components/ArrowButton/index.d.ts.map +1 -0
- package/dist/components/Attachment/Attachment.d.ts +8 -0
- package/dist/components/Attachment/Attachment.d.ts.map +1 -0
- package/dist/components/Attachment/AttachmentCode.d.ts +10 -0
- package/dist/components/Attachment/AttachmentCode.d.ts.map +1 -0
- package/dist/components/Attachment/AttachmentEmpty.d.ts +5 -0
- package/dist/components/Attachment/AttachmentEmpty.d.ts.map +1 -0
- package/dist/components/Attachment/AttachmentImage.d.ts +8 -0
- package/dist/components/Attachment/AttachmentImage.d.ts.map +1 -0
- package/dist/components/Attachment/AttachmentVideo.d.ts +8 -0
- package/dist/components/Attachment/AttachmentVideo.d.ts.map +1 -0
- package/dist/components/Attachment/CodeViewer.d.ts +8 -0
- package/dist/components/Attachment/CodeViewer.d.ts.map +1 -0
- package/dist/components/Attachment/HtmlPreview.d.ts +8 -0
- package/dist/components/Attachment/HtmlPreview.d.ts.map +1 -0
- package/dist/components/Attachment/index.d.ts +8 -0
- package/dist/components/Attachment/index.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +29 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Counter/index.d.ts +10 -0
- package/dist/components/Counter/index.d.ts.map +1 -0
- package/dist/components/Label/index.d.ts +3 -0
- package/dist/components/Label/index.d.ts.map +1 -0
- package/dist/components/Link/index.d.ts +9 -0
- package/dist/components/Link/index.d.ts.map +1 -0
- package/dist/components/Loadable/index.d.ts +16 -0
- package/dist/components/Loadable/index.d.ts.map +1 -0
- package/dist/components/Menu/index.d.ts +37 -0
- package/dist/components/Menu/index.d.ts.map +1 -0
- package/dist/components/Modal/Gallery.d.ts +5 -0
- package/dist/components/Modal/Gallery.d.ts.map +1 -0
- package/dist/components/Modal/Thumb.d.ts +10 -0
- package/dist/components/Modal/Thumb.d.ts.map +1 -0
- package/dist/components/Modal/index.d.ts +24 -0
- package/dist/components/Modal/index.d.ts.map +1 -0
- package/dist/components/PageLoader/index.d.ts +2 -0
- package/dist/components/PageLoader/index.d.ts.map +1 -0
- package/dist/components/SearchBox/index.d.ts +11 -0
- package/dist/components/SearchBox/index.d.ts.map +1 -0
- package/dist/components/Spinner/index.d.ts +5 -0
- package/dist/components/Spinner/index.d.ts.map +1 -0
- package/dist/components/SuccessRatePieChart/index.d.ts +13 -0
- package/dist/components/SuccessRatePieChart/index.d.ts.map +1 -0
- package/dist/components/SvgIcon/index.d.ts +67 -0
- package/dist/components/SvgIcon/index.d.ts.map +1 -0
- package/dist/components/Toggle/index.d.ts +9 -0
- package/dist/components/Toggle/index.d.ts.map +1 -0
- package/dist/components/Tooltip/index.d.ts +14 -0
- package/dist/components/Tooltip/index.d.ts.map +1 -0
- package/dist/components/Tree/Tree.d.ts +21 -0
- package/dist/components/Tree/Tree.d.ts.map +1 -0
- package/dist/components/Tree/TreeHeader.d.ts +16 -0
- package/dist/components/Tree/TreeHeader.d.ts.map +1 -0
- package/dist/components/Tree/TreeItem.d.ts +14 -0
- package/dist/components/Tree/TreeItem.d.ts.map +1 -0
- package/dist/components/Tree/TreeItemIcon.d.ts +9 -0
- package/dist/components/Tree/TreeItemIcon.d.ts.map +1 -0
- package/dist/components/Tree/index.d.ts +5 -0
- package/dist/components/Tree/index.d.ts.map +1 -0
- package/dist/components/TrendChart/index.d.ts +25 -0
- package/dist/components/TrendChart/index.d.ts.map +1 -0
- package/dist/components/Typography/index.d.ts +28 -0
- package/dist/components/Typography/index.d.ts.map +1 -0
- package/dist/fonts/JetBrainsMono_vf.woff +0 -0
- package/dist/fonts/JetBrainsMono_vf.woff2 +0 -0
- package/dist/fonts/pt-root-ui_vf.woff +0 -0
- package/dist/fonts/pt-root-ui_vf.woff2 +0 -0
- package/dist/hooks/useDebouncedCallback.d.ts +2 -0
- package/dist/hooks/useDebouncedCallback.d.ts.map +1 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +335 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/dist/mixins.scss +50 -0
- package/package.json +148 -0
package/README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Allure Web Components
|
|
2
|
+
|
|
3
|
+
[<img src="https://allurereport.org/public/img/allure-report.svg" height="85px" alt="Allure Report logo" align="right" />](https://allurereport.org "Allure Report")
|
|
4
|
+
|
|
5
|
+
- Learn more about Allure Report at https://allurereport.org
|
|
6
|
+
- 📚 [Documentation](https://allurereport.org/docs/) – discover official documentation for Allure Report
|
|
7
|
+
- ❓ [Questions and Support](https://github.com/orgs/allure-framework/discussions/categories/questions-support) – get help from the team and community
|
|
8
|
+
- 📢 [Official announcements](https://github.com/orgs/allure-framework/discussions/categories/announcements) – be in touch with the latest updates
|
|
9
|
+
- 💬 [General Discussion ](https://github.com/orgs/allure-framework/discussions/categories/general-discussion) – engage in casual conversations, share insights and ideas with the community
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Overview
|
|
14
|
+
|
|
15
|
+
The package includes Design System Components which are used in web-implementations of Allure reports and Storybook.
|
|
16
|
+
|
|
17
|
+
## Install
|
|
18
|
+
|
|
19
|
+
Use your favorite package manager to install the package:
|
|
20
|
+
|
|
21
|
+
```shell
|
|
22
|
+
npm add @allurereport/web-components
|
|
23
|
+
yarn add @allurereport/web-components
|
|
24
|
+
pnpm add @allurereport/web-components
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
|
|
29
|
+
### Styles
|
|
30
|
+
|
|
31
|
+
Import styles right in your JavaScript or TypeScript file:
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
import "@allurereport/web-components/index.css";
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Icon pack
|
|
38
|
+
|
|
39
|
+
Use `allureIcons` object to get available SVG icons (see entire list of the icons [here](src/assets/svg/)):
|
|
40
|
+
|
|
41
|
+
```tsx
|
|
42
|
+
import { SvgIcon, allureIcons } from "@allurereport/web-components";
|
|
43
|
+
|
|
44
|
+
// somewhere in .tsx file
|
|
45
|
+
<SvgIcon id={allureIcons.reportLogo} />
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Fonts
|
|
49
|
+
|
|
50
|
+
Allure Report use `PTRootUI` and `JetBrainsMono` fonts which can be imported from package:
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
import "@allurereport/web-components/fonts/pt-root-ui_vf.woff";
|
|
54
|
+
import "@allurereport/web-components/fonts/JetBrainsMono_vf.woff";
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Or if you use SASS:
|
|
58
|
+
|
|
59
|
+
```scss
|
|
60
|
+
@import "~@allurereport/web-components/mixins.scss";
|
|
61
|
+
@include allure-fonts;
|
|
62
|
+
```
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { FunctionalComponent } from "preact";
|
|
2
|
+
export interface ArrowButtonProps {
|
|
3
|
+
isOpened?: boolean;
|
|
4
|
+
iconSize?: "m" | "xs" | "s";
|
|
5
|
+
buttonSize?: "m" | "xs" | "s";
|
|
6
|
+
className?: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const ArrowButton: FunctionalComponent<ArrowButtonProps>;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ArrowButton/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAIlD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,GAAG,GAAG,IAAI,GAAG,GAAG,CAAC;IAC5B,UAAU,CAAC,EAAE,GAAG,GAAG,IAAI,GAAG,GAAG,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,WAAW,EAAE,mBAAmB,CAAC,gBAAgB,CAwB7D,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AttachmentTestStepResult } from "@allurereport/core-api";
|
|
2
|
+
import type { FunctionalComponent } from "preact";
|
|
3
|
+
export interface AttachmentTestStepResultProps {
|
|
4
|
+
item: AttachmentTestStepResult;
|
|
5
|
+
previewable?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const Attachment: FunctionalComponent<AttachmentTestStepResultProps>;
|
|
8
|
+
//# sourceMappingURL=Attachment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Attachment.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/Attachment.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAGvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AA0BlD,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,wBAAwB,CAAC;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,UAAU,EAAE,mBAAmB,CAAC,6BAA6B,CAiCzE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type AttachmentTestStepResult } from "@allurereport/core-api";
|
|
2
|
+
import { type FunctionalComponent } from "preact";
|
|
3
|
+
import "./code.scss";
|
|
4
|
+
export declare const AttachmentCode: FunctionalComponent<{
|
|
5
|
+
item: AttachmentTestStepResult;
|
|
6
|
+
attachment: {
|
|
7
|
+
text?: string;
|
|
8
|
+
};
|
|
9
|
+
}>;
|
|
10
|
+
//# sourceMappingURL=AttachmentCode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentCode.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/AttachmentCode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAGlD,OAAO,aAAa,CAAC;AAErB,eAAO,MAAM,cAAc,EAAE,mBAAmB,CAAC;IAC/C,IAAI,EAAE,wBAAwB,CAAC;IAC/B,UAAU,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC/B,CAUA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentEmpty.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/AttachmentEmpty.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAGhD,eAAO,MAAM,eAAe,iBAAkB;IAAE,QAAQ,EAAE,iBAAiB,CAAA;CAAE,iCAE5E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentImage.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/AttachmentImage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAIlD,eAAO,MAAM,eAAe,EAAE,mBAAmB,CAAC;IAChD,UAAU,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,gBAAgB,EAAE,MAAM,CAAA;KAAE,CAAC;CACvD,CAoBA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentVideo.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/AttachmentVideo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAGlD,eAAO,MAAM,eAAe,EAAE,mBAAmB,CAAC;IAChD,UAAU,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACnD,CASA,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ComponentChildren, FunctionalComponent } from "preact";
|
|
2
|
+
import "./code.scss";
|
|
3
|
+
export declare const CodeViewer: FunctionalComponent<{
|
|
4
|
+
code?: string;
|
|
5
|
+
children?: ComponentChildren;
|
|
6
|
+
className?: string;
|
|
7
|
+
}>;
|
|
8
|
+
//# sourceMappingURL=CodeViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeViewer.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/CodeViewer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAGrE,OAAO,aAAa,CAAC;AAErB,eAAO,MAAM,UAAU,EAAE,mBAAmB,CAAC;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAaA,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FunctionalComponent } from "preact";
|
|
2
|
+
export type HtmlAttachmentPreviewProps = {
|
|
3
|
+
attachment: {
|
|
4
|
+
text: string;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export declare const HtmlPreview: FunctionalComponent<HtmlAttachmentPreviewProps>;
|
|
8
|
+
//# sourceMappingURL=HtmlPreview.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HtmlPreview.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/HtmlPreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAIlD,MAAM,MAAM,0BAA0B,GAAG;IACvC,UAAU,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,mBAAmB,CAAC,0BAA0B,CAGvE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { Attachment } from "@/components/Attachment/Attachment";
|
|
2
|
+
export { AttachmentCode } from "@/components/Attachment/AttachmentCode";
|
|
3
|
+
export { HtmlPreview } from "@/components/Attachment/HtmlPreview";
|
|
4
|
+
export { AttachmentImage } from "@/components/Attachment/AttachmentImage";
|
|
5
|
+
export { AttachmentVideo } from "@/components/Attachment/AttachmentVideo";
|
|
6
|
+
export { AttachmentEmpty } from "@/components/Attachment/AttachmentEmpty";
|
|
7
|
+
export { CodeViewer } from "@/components/Attachment/CodeViewer";
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Attachment/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
type BaseBtnProps = {
|
|
2
|
+
text?: string;
|
|
3
|
+
isPending?: boolean;
|
|
4
|
+
size?: "s" | "m" | "l";
|
|
5
|
+
style?: "primary" | "outline" | "ghost" | "flat" | "raised";
|
|
6
|
+
action?: "default" | "danger" | "positive";
|
|
7
|
+
icon?: string;
|
|
8
|
+
iconSize?: "xs" | "s" | "m";
|
|
9
|
+
fullWidth?: boolean;
|
|
10
|
+
isIconButton?: boolean;
|
|
11
|
+
isDropdownButton?: boolean;
|
|
12
|
+
onClick?: (e: MouseEvent) => void;
|
|
13
|
+
type?: HTMLButtonElement["type"];
|
|
14
|
+
isDisabled?: boolean;
|
|
15
|
+
isActive?: boolean;
|
|
16
|
+
focusable?: boolean;
|
|
17
|
+
className?: string;
|
|
18
|
+
dataTestId?: string;
|
|
19
|
+
};
|
|
20
|
+
export type ButtonProps = Omit<BaseBtnProps, "text" | "isIconButton" | "isDropdownButton"> & Pick<Required<BaseBtnProps>, "text">;
|
|
21
|
+
export declare const Button: (props: ButtonProps) => import("preact").JSX.Element;
|
|
22
|
+
export type IconButtonProps = Omit<BaseBtnProps, "text" | "icon" | "autoFocus" | "fullWidth" | "isIconButton" | "isDropdownButton"> & Pick<Required<BaseBtnProps>, "icon">;
|
|
23
|
+
export declare const IconButton: (props: IconButtonProps) => import("preact").JSX.Element;
|
|
24
|
+
type DropdownButtonProps = Omit<BaseBtnProps, "type" | "autoFocus" | "isDropdownButton" | "isIconButton" | "text" | "icon" | "isActive"> & Pick<Required<BaseBtnProps>, "text"> & {
|
|
25
|
+
isExpanded?: boolean;
|
|
26
|
+
};
|
|
27
|
+
export declare const DropdownButton: (props: DropdownButtonProps) => import("preact").JSX.Element;
|
|
28
|
+
export {};
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAMA,KAAK,YAAY,GAAG;IAKlB,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,SAAS,CAAC,EAAE,OAAO,CAAC;IAUpB,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IAYvB,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;IAO5D,MAAM,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC;IAI3C,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,QAAQ,CAAC,EAAE,IAAI,GAAG,GAAG,GAAG,GAAG,CAAC;IAI5B,SAAS,CAAC,EAAE,OAAO,CAAC;IAIpB,YAAY,CAAC,EAAE,OAAO,CAAC;IAIvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAI3B,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IAKlC,IAAI,CAAC,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC;IAMjC,UAAU,CAAC,EAAE,OAAO,CAAC;IAMrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAMnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AA4DF,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,cAAc,GAAG,kBAAkB,CAAC,GACxF,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC,CAAC;AAEvC,eAAO,MAAM,MAAM,UAAW,WAAW,iCAA2B,CAAC;AAErE,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,YAAY,EACZ,MAAM,GAAG,MAAM,GAAG,WAAW,GAAG,WAAW,GAAG,cAAc,GAAG,kBAAkB,CAClF,GACC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC,CAAC;AAEvC,eAAO,MAAM,UAAU,UAAW,eAAe,iCAAwC,CAAC;AAE1F,KAAK,mBAAmB,GAAG,IAAI,CAC7B,YAAY,EACZ,MAAM,GAAG,WAAW,GAAG,kBAAkB,GAAG,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,CAC1F,GACC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC,GAAG;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEJ,eAAO,MAAM,cAAc,UAAW,mBAAmB,iCAExD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TestStatus } from "@allurereport/core-api";
|
|
2
|
+
type Props = {
|
|
3
|
+
size?: "s" | "m" | "l";
|
|
4
|
+
count: number;
|
|
5
|
+
truncateCount?: boolean;
|
|
6
|
+
status?: TestStatus;
|
|
7
|
+
};
|
|
8
|
+
export declare const Counter: (props: Props) => import("preact").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Counter/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAKzD,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,KAAK,iCAgBnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Label/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAIhD,eAAO,MAAM,KAAK,EAAE,iBAMnB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ComponentChildren } from "preact";
|
|
2
|
+
type Props = {
|
|
3
|
+
href?: string;
|
|
4
|
+
children: ComponentChildren;
|
|
5
|
+
onClick?: (e: MouseEvent) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const Link: (props: Props) => import("preact").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Link/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAGhD,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,eAAO,MAAM,IAAI,UAAW,KAAK,iCAUhC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Signal } from "@preact/signals";
|
|
2
|
+
import type { JSX } from "preact";
|
|
3
|
+
export interface StoreSignalState<T> {
|
|
4
|
+
error?: string;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
data?: T;
|
|
7
|
+
}
|
|
8
|
+
export type LoadableProps<T, K = T> = {
|
|
9
|
+
source: Signal<StoreSignalState<T>>;
|
|
10
|
+
transformData?: (data: T) => K;
|
|
11
|
+
renderData: (data: K) => JSX.Element;
|
|
12
|
+
renderLoader?: () => JSX.Element;
|
|
13
|
+
renderError?: (error: string) => JSX.Element;
|
|
14
|
+
};
|
|
15
|
+
export declare const Loadable: <T, K = T>(props: LoadableProps<T, K>) => JSX.Element | null;
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Loadable/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAElC,MAAM,WAAW,gBAAgB,CAAC,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,CAAC,CAAC;CACV;AAED,MAAM,MAAM,aAAa,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI;IACpC,MAAM,EAAE,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;IACpC,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC;IAC/B,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC;IACrC,YAAY,CAAC,EAAE,MAAM,GAAG,CAAC,OAAO,CAAC;IACjC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,GAAG,CAAC,OAAO,CAAC;CAC9C,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,CAAC,EAAE,CAAC,aAAa,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,uBAmB5D,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type ComponentChildren, type VNode } from "preact";
|
|
2
|
+
type MenuContextT = {
|
|
3
|
+
setIsOpened: (isOpened: boolean) => void;
|
|
4
|
+
};
|
|
5
|
+
export declare const useMenuContext: () => MenuContextT;
|
|
6
|
+
export declare const Menu: {
|
|
7
|
+
(props: {
|
|
8
|
+
children: ComponentChildren;
|
|
9
|
+
isInitialOpened?: boolean;
|
|
10
|
+
size?: "s" | "m" | "l" | "xl";
|
|
11
|
+
placement?: "bottom-start" | "bottom-end";
|
|
12
|
+
menuTrigger: (props: {
|
|
13
|
+
onClick: () => void;
|
|
14
|
+
isOpened: boolean;
|
|
15
|
+
setIsOpened: (isOpened: boolean) => void;
|
|
16
|
+
}) => VNode;
|
|
17
|
+
menuTriggerWrapper?: "div" | "span";
|
|
18
|
+
}): import("preact").JSX.Element;
|
|
19
|
+
Section(props: {
|
|
20
|
+
children: ComponentChildren;
|
|
21
|
+
}): import("preact").JSX.Element;
|
|
22
|
+
Item(props: ItemProps): import("preact").JSX.Element;
|
|
23
|
+
ItemWithCheckmark(props: ItemProps & {
|
|
24
|
+
isChecked: boolean;
|
|
25
|
+
}): import("preact").JSX.Element;
|
|
26
|
+
};
|
|
27
|
+
type ItemProps = {
|
|
28
|
+
children: ComponentChildren;
|
|
29
|
+
onClick?: () => void;
|
|
30
|
+
leadingIcon?: string;
|
|
31
|
+
rightSlot?: ComponentChildren;
|
|
32
|
+
closeMenuOnClick?: boolean;
|
|
33
|
+
ariaLabel?: string;
|
|
34
|
+
setIsOpened?: (isOpened: boolean) => void;
|
|
35
|
+
};
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Menu/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,KAAK,EAAiB,MAAM,QAAQ,CAAC;AAO3E,KAAK,YAAY,GAAG;IAClB,WAAW,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C,CAAC;AAIF,eAAO,MAAM,cAAc,oBAQ1B,CAAC;AAEF,eAAO,MAAM,IAAI;YAAW;QAC1B,QAAQ,EAAE,iBAAiB,CAAC;QAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;QAC9B,SAAS,CAAC,EAAE,cAAc,GAAG,YAAY,CAAC;QAC1C,WAAW,EAAE,CAAC,KAAK,EAAE;YAAE,OAAO,EAAE,MAAM,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,WAAW,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAA;SAAE,KAAK,KAAK,CAAC;QACpH,kBAAkB,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;KACrC;mBA2GsB;QAAE,QAAQ,EAAE,iBAAiB,CAAA;KAAE;gBAclC,SAAS;6BAsCpB,SAAS,GAAG;QACjB,SAAS,EAAE,OAAO,CAAC;KACpB;CAxDF,CAAC;AAMF,KAAK,SAAS,GAAG;IACf,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CAC3C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Gallery.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Gallery.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAGlD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,QAAA,MAAM,OAAO,EAAE,mBAAmB,CAAC,iBAAiB,CAgBnD,CAAC;AACF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AttachmentTestStepResult } from "@allurereport/core-api";
|
|
2
|
+
import type { FunctionalComponent } from "preact";
|
|
3
|
+
export interface ModalThumbProps {
|
|
4
|
+
item: AttachmentTestStepResult;
|
|
5
|
+
changeThumb?: () => void;
|
|
6
|
+
isActiveThumb?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const ModalThumb: FunctionalComponent<ModalThumbProps>;
|
|
9
|
+
export default ModalThumb;
|
|
10
|
+
//# sourceMappingURL=Thumb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Thumb.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/Thumb.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAEvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAGlD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,wBAAwB,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,eAAO,MAAM,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAS3D,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { AttachmentTestStepResult } from "@allurereport/core-api";
|
|
2
|
+
import type { VNode } from "preact";
|
|
3
|
+
export type ModalGalleryProps = {
|
|
4
|
+
attachments: AttachmentTestStepResult[] | undefined;
|
|
5
|
+
};
|
|
6
|
+
export interface ModalDataProps<T = any> {
|
|
7
|
+
data: T;
|
|
8
|
+
component: VNode;
|
|
9
|
+
preview?: boolean;
|
|
10
|
+
isModalOpen?: boolean;
|
|
11
|
+
closeModal?: () => void;
|
|
12
|
+
attachments?: AttachmentTestStepResult[];
|
|
13
|
+
title?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface ModalTranslations {
|
|
16
|
+
tooltipPreview: string;
|
|
17
|
+
tooltipDownload: string;
|
|
18
|
+
openInNewTabButton: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ModalTranslationsProps {
|
|
21
|
+
translations: ModalTranslations;
|
|
22
|
+
}
|
|
23
|
+
export declare const Modal: ({ data, isModalOpen, preview, component, attachments, closeModal, translations, title, }: ModalDataProps & ModalTranslationsProps) => import("preact").JSX.Element | null;
|
|
24
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA0B,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAE/F,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAUpC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,WAAW,EAAE,wBAAwB,EAAE,GAAG,SAAS,CAAC;CACrD,CAAC;AAEF,MAAM,WAAW,cAAc,CAAC,CAAC,GAAG,GAAG;IACrC,IAAI,EAAE,CAAC,CAAC;IACR,SAAS,EAAE,KAAK,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,WAAW,CAAC,EAAE,wBAAwB,EAAE,CAAC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,sBAAsB;IACrC,YAAY,EAAE,iBAAiB,CAAC;CACjC;AAED,eAAO,MAAM,KAAK,6FASf,cAAc,GAAG,sBAAsB,wCA0FzC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PageLoader/index.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,oCAMtB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
placeholder?: string;
|
|
3
|
+
invalid?: string;
|
|
4
|
+
error?: string;
|
|
5
|
+
value: string;
|
|
6
|
+
onChange: (value: string) => void;
|
|
7
|
+
changeDebounce?: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const SearchBox: (props: Props) => import("preact").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SearchBox/index.tsx"],"names":[],"mappings":"AAUA,KAAK,KAAK,GAAG;IACX,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,SAAS,UAAW,KAAK,iCAsCrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Spinner/index.tsx"],"names":[],"mappings":"AAGA,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,CAAC,EAAE,GAAG,GAAG,GAAG,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,OAAO,aAAc,YAAY,iCAE7C,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { TestStatus } from "@allurereport/core-api";
|
|
2
|
+
type Slice = {
|
|
3
|
+
status: TestStatus;
|
|
4
|
+
count: number;
|
|
5
|
+
d: string;
|
|
6
|
+
};
|
|
7
|
+
type Props = {
|
|
8
|
+
slices: Slice[];
|
|
9
|
+
percentage: number;
|
|
10
|
+
};
|
|
11
|
+
export declare const SuccessRatePieChart: (props: Props) => import("preact").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SuccessRatePieChart/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAIzD,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAmBF,eAAO,MAAM,mBAAmB,UAAW,KAAK,iCAmB/C,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { JSX } from "preact";
|
|
2
|
+
export declare const allureIcons: {
|
|
3
|
+
arrowsChevronDown: string;
|
|
4
|
+
github: string;
|
|
5
|
+
lineAlertsAlertCircle: string;
|
|
6
|
+
lineAlertsNotificationBox: string;
|
|
7
|
+
lineArrowsChevronDown: string;
|
|
8
|
+
lineArrowsChevronDownDouble: string;
|
|
9
|
+
lineArrowsChevronRight: string;
|
|
10
|
+
lineArrowsChevronUp: string;
|
|
11
|
+
lineArrowsChevronUpDouble: string;
|
|
12
|
+
lineArrowsCornerDownRight: string;
|
|
13
|
+
lineArrowsExpand3: string;
|
|
14
|
+
lineArrowsRefreshCcw1: string;
|
|
15
|
+
lineArrowsSortLineAsc: string;
|
|
16
|
+
lineArrowsSortLineDesc: string;
|
|
17
|
+
lineArrowsSwitchVertical1: string;
|
|
18
|
+
lineChartsBarChartSquare: string;
|
|
19
|
+
lineDevBug2: string;
|
|
20
|
+
lineDevCodeSquare: string;
|
|
21
|
+
lineDevDataflow3: string;
|
|
22
|
+
lineFilesClipboardCheck: string;
|
|
23
|
+
lineFilesFile2: string;
|
|
24
|
+
lineFilesFileAttachment2: string;
|
|
25
|
+
lineFilesFolder: string;
|
|
26
|
+
lineGeneralCheck: string;
|
|
27
|
+
lineGeneralChecklist3: string;
|
|
28
|
+
lineGeneralCopy3: string;
|
|
29
|
+
lineGeneralDownloadCloud: string;
|
|
30
|
+
lineGeneralEqual: string;
|
|
31
|
+
lineGeneralEye: string;
|
|
32
|
+
lineGeneralHomeLine: string;
|
|
33
|
+
lineGeneralLink1: string;
|
|
34
|
+
lineGeneralLinkExternal: string;
|
|
35
|
+
lineGeneralSearchMd: string;
|
|
36
|
+
lineGeneralSettings1: string;
|
|
37
|
+
lineGeneralXClose: string;
|
|
38
|
+
lineGeneralZap: string;
|
|
39
|
+
lineHelpersFlag: string;
|
|
40
|
+
lineHelpersPlayCircle: string;
|
|
41
|
+
lineIconBomb2: string;
|
|
42
|
+
lineImagesImage: string;
|
|
43
|
+
lineLayoutsColumn2: string;
|
|
44
|
+
lineLayoutsLayoutTop: string;
|
|
45
|
+
lineSecurityKey: string;
|
|
46
|
+
lineShapesDotCircle: string;
|
|
47
|
+
lineShapesMoon: string;
|
|
48
|
+
lineShapesSun: string;
|
|
49
|
+
lineTimeClockStopwatch: string;
|
|
50
|
+
reportLogo: string;
|
|
51
|
+
solidAlertCircle: string;
|
|
52
|
+
solidCheckCircle: string;
|
|
53
|
+
solidHelpCircle: string;
|
|
54
|
+
solidMinusCircle: string;
|
|
55
|
+
solidXCircle: string;
|
|
56
|
+
spinner: string;
|
|
57
|
+
view: string;
|
|
58
|
+
viewOff: string;
|
|
59
|
+
};
|
|
60
|
+
export type SvgIconProps = Omit<JSX.HTMLAttributes<SVGElement>, "className" | "id" | "size" | "inline"> & {
|
|
61
|
+
size?: "xs" | "s" | "m";
|
|
62
|
+
className?: string;
|
|
63
|
+
id: string;
|
|
64
|
+
inline?: boolean;
|
|
65
|
+
};
|
|
66
|
+
export declare const SvgIcon: ({ id, size, inline, className }: SvgIconProps) => JSX.Element;
|
|
67
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SvgIcon/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AA2DlC,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDvB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,MAAM,GAAG,QAAQ,CAAC,GAAG;IAQxG,IAAI,CAAC,EAAE,IAAI,GAAG,GAAG,GAAG,GAAG,CAAC;IAIxB,SAAS,CAAC,EAAE,MAAM,CAAC;IASnB,EAAE,EAAE,MAAM,CAAC;IAIX,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAOF,eAAO,MAAM,OAAO,oCAAwD,YAAY,gBAMvF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/index.tsx"],"names":[],"mappings":"AAEA,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,MAAM,UAAW,KAAK,iCAoBlC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { FunctionalComponent, VNode } from "preact";
|
|
2
|
+
interface TooltipWrapperProps {
|
|
3
|
+
tooltipText?: string;
|
|
4
|
+
tooltipTextAfterClick?: string;
|
|
5
|
+
tooltipComponent?: FunctionalComponent | VNode;
|
|
6
|
+
children: VNode;
|
|
7
|
+
placement?: "top" | "bottom" | "left" | "right";
|
|
8
|
+
triggerMode?: "hover" | "click";
|
|
9
|
+
autoHideDelay?: number;
|
|
10
|
+
isTriggerActive?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const TooltipWrapper: FunctionalComponent<TooltipWrapperProps>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAKzD,UAAU,mBAAmB;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,gBAAgB,CAAC,EAAE,mBAAmB,GAAG,KAAK,CAAC;IAC/C,QAAQ,EAAE,KAAK,CAAC;IAChB,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IAChD,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAUD,eAAO,MAAM,cAAc,EAAE,mBAAmB,CAAC,mBAAmB,CAmGnE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Statistic } from "@allurereport/core-api";
|
|
2
|
+
import type { Signal } from "@preact/signals";
|
|
3
|
+
import type { RecursiveTree, Status, TreeFiltersState } from "global";
|
|
4
|
+
import type { FunctionComponent } from "preact";
|
|
5
|
+
import type { StoreSignalState } from "@/components/Loadable";
|
|
6
|
+
interface TreeProps {
|
|
7
|
+
statistic?: Statistic;
|
|
8
|
+
tree: RecursiveTree;
|
|
9
|
+
name?: string;
|
|
10
|
+
root?: boolean;
|
|
11
|
+
statusFilter?: Status;
|
|
12
|
+
collapsedTrees: Set<string>;
|
|
13
|
+
toggleTree: (id: string) => void;
|
|
14
|
+
navigateTo: (id: string) => void;
|
|
15
|
+
routeId?: string;
|
|
16
|
+
statsStore: Signal<StoreSignalState<Statistic>>;
|
|
17
|
+
treeFiltersStore: Signal<TreeFiltersState>;
|
|
18
|
+
}
|
|
19
|
+
export declare const Tree: FunctionComponent<TreeProps>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=Tree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tree.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/Tree.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AACtE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAEhD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAK9D,UAAU,SAAS;IACjB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC;IAChD,gBAAgB,EAAE,MAAM,CAAC,gBAAgB,CAAC,CAAC;CAC5C;AAED,eAAO,MAAM,IAAI,EAAE,iBAAiB,CAAC,SAAS,CAiF7C,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type Statistic } from "@allurereport/core-api";
|
|
2
|
+
import type { Signal } from "@preact/signals";
|
|
3
|
+
import type { TreeFiltersState } from "global";
|
|
4
|
+
import { type FunctionComponent } from "preact";
|
|
5
|
+
import type { StoreSignalState } from "@/components/Loadable";
|
|
6
|
+
interface TreeHeaderProps {
|
|
7
|
+
statistic?: Statistic;
|
|
8
|
+
categoryTitle: string;
|
|
9
|
+
isOpened: boolean;
|
|
10
|
+
toggleTree: () => void;
|
|
11
|
+
statsStore: Signal<StoreSignalState<Statistic>>;
|
|
12
|
+
treeFiltersStore: TreeFiltersState;
|
|
13
|
+
}
|
|
14
|
+
export declare const TreeHeader: FunctionComponent<TreeHeaderProps>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=TreeHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeHeader.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/TreeHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAgB,MAAM,wBAAwB,CAAC;AACtE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAEhD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAK9D,UAAU,eAAe;IACvB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC;IAChD,gBAAgB,EAAE,gBAAgB,CAAC;CACpC;AAcD,eAAO,MAAM,UAAU,EAAE,iBAAiB,CAAC,eAAe,CAqDzD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type TestStatus } from "@allurereport/core-api";
|
|
2
|
+
import type { FunctionComponent } from "preact";
|
|
3
|
+
interface TreeItemProps {
|
|
4
|
+
name: string;
|
|
5
|
+
status: TestStatus;
|
|
6
|
+
duration?: number;
|
|
7
|
+
id: string;
|
|
8
|
+
groupOrder: number;
|
|
9
|
+
marked?: boolean;
|
|
10
|
+
navigateTo: (id: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const TreeItem: FunctionComponent<TreeItemProps>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=TreeItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeItem.d.ts","sourceRoot":"","sources":["../../../src/components/Tree/TreeItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAkB,MAAM,wBAAwB,CAAC;AAEzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAKhD,UAAU,aAAa;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,UAAU,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC;AAED,eAAO,MAAM,QAAQ,EAAE,iBAAiB,CAAC,aAAa,CA+BrD,CAAC"}
|