@hybr1d-tech/charizard 0.6.29 → 0.6.30
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/components/badge/Badge.d.ts +2 -2
- package/dist/components/switch/switch.stories.d.ts +9 -0
- package/dist/components/task-cards/TaskCards.d.ts +2 -2
- package/dist/components/task-cards/components/task-card/TaskCard.d.ts +5 -0
- package/dist/components/task-cards/components/{header/Header.d.ts → task-card-header/TaskCardHeader.d.ts} +1 -1
- package/dist/components/task-cards/types.d.ts +18 -14
- package/dist/hybr1d-ui.js +2348 -2329
- package/dist/hybr1d-ui.umd.cjs +14 -14
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/components/task-cards/components/card/Card.d.ts +0 -5
|
@@ -12,14 +12,14 @@ export declare enum BADGE_HIGHLIGHT {
|
|
|
12
12
|
DOT = "dot",
|
|
13
13
|
NONE = "none"
|
|
14
14
|
}
|
|
15
|
-
interface
|
|
15
|
+
interface BadgeProps {
|
|
16
16
|
highlight?: BADGE_HIGHLIGHT;
|
|
17
17
|
status?: BADGE_STATUS;
|
|
18
18
|
selected?: boolean;
|
|
19
19
|
children: React.ReactNode;
|
|
20
20
|
icon?: string;
|
|
21
21
|
}
|
|
22
|
-
export declare function
|
|
22
|
+
export declare function Badge({ highlight, status, selected, children, icon, }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
export declare const statusMap: {
|
|
24
24
|
neutral: {
|
|
25
25
|
bg: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Switch } from './Switch';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof Switch>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof Switch>;
|
|
7
|
+
export declare const Checked: Story;
|
|
8
|
+
export declare const Initial: Story;
|
|
9
|
+
export declare const CheckedDisabled: Story;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ITask } from './types';
|
|
2
2
|
|
|
3
3
|
interface TaskCardProps {
|
|
4
4
|
headers: string[];
|
|
5
|
-
data:
|
|
5
|
+
data: ITask[];
|
|
6
6
|
}
|
|
7
7
|
export declare function TaskCard({ headers, data }: TaskCardProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface ITask {
|
|
2
|
+
module_id: string;
|
|
3
|
+
module_reference: string;
|
|
4
|
+
module_name: string;
|
|
5
|
+
form_link: string | null;
|
|
6
|
+
external_link: string | null;
|
|
7
|
+
static_module: boolean;
|
|
8
|
+
icon_url: string;
|
|
9
|
+
name: string;
|
|
10
|
+
date: string;
|
|
11
|
+
details: ITaskDetails[];
|
|
12
|
+
status: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ITaskObjectValue {
|
|
2
15
|
first_name: string;
|
|
3
16
|
middle_name: string | null;
|
|
4
17
|
last_name: string | null;
|
|
5
18
|
profile_img_url: string;
|
|
6
19
|
work_email: string;
|
|
7
|
-
}
|
|
8
|
-
export
|
|
20
|
+
}
|
|
21
|
+
export interface ITaskDetails {
|
|
9
22
|
key: string;
|
|
10
|
-
value:
|
|
11
|
-
}
|
|
12
|
-
export type Task = {
|
|
13
|
-
id: string;
|
|
14
|
-
type: string;
|
|
15
|
-
name: string;
|
|
16
|
-
date: string;
|
|
17
|
-
details: Detail[];
|
|
18
|
-
status: string;
|
|
19
|
-
details_path: string;
|
|
20
|
-
};
|
|
23
|
+
value: string | ITaskObjectValue | null;
|
|
24
|
+
}
|