@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.
@@ -12,14 +12,14 @@ export declare enum BADGE_HIGHLIGHT {
12
12
  DOT = "dot",
13
13
  NONE = "none"
14
14
  }
15
- interface BadgesProps {
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 Badges({ highlight, status, selected, children, icon, }: BadgesProps): import("react/jsx-runtime").JSX.Element;
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 { Task } from './types';
1
+ import { ITask } from './types';
2
2
 
3
3
  interface TaskCardProps {
4
4
  headers: string[];
5
- data: Task[];
5
+ data: ITask[];
6
6
  }
7
7
  export declare function TaskCard({ headers, data }: TaskCardProps): import("react/jsx-runtime").JSX.Element;
8
8
  export {};
@@ -0,0 +1,5 @@
1
+ import { ITask } from '../../types';
2
+
3
+ export default function TaskCard({ data }: {
4
+ data: ITask;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
- export default function Header({ headers }: {
1
+ export default function TaskCardHeader({ headers }: {
2
2
  headers: string[];
3
3
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,20 +1,24 @@
1
- export type Value = {
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 type Detail = {
20
+ }
21
+ export interface ITaskDetails {
9
22
  key: string;
10
- value: Value | string | null;
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
+ }