@hybr1d-tech/charizard 0.6.35 → 0.6.37
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/date-picker/DatePicker.d.ts +28 -0
- package/dist/components/date-picker/index.d.ts +1 -0
- package/dist/components/tabs/Tab.d.ts +2 -0
- package/dist/components/task-card/components/card/Card.d.ts +5 -0
- package/dist/components/task-card/components/header/Header.d.ts +3 -0
- package/dist/components/task-card/types.d.ts +20 -0
- package/dist/hybr1d-ui.js +1872 -1855
- package/dist/hybr1d-ui.umd.cjs +11 -11
- package/dist/index.d.ts +0 -1
- package/dist/style.css +1 -1
- package/package.json +27 -25
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { DayPickerSingleProps } from 'react-day-picker';
|
|
2
|
+
import { Placement } from '@popperjs/core';
|
|
3
|
+
import { BUTTON_VARIANT } from '../index';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
interface DatePickerProps extends DayPickerSingleProps {
|
|
6
|
+
value?: Date | string;
|
|
7
|
+
onChange: (value?: Date | string) => void;
|
|
8
|
+
mode: 'single';
|
|
9
|
+
variant?: 'default' | 'form';
|
|
10
|
+
/**
|
|
11
|
+
* @default 'do LLL y'
|
|
12
|
+
* 'do LLL y' => 1st Jan 2021
|
|
13
|
+
* 'dd LLL y' => 01 Jan 2021
|
|
14
|
+
* 'yyyy-MM-dd' => 2021-01-01
|
|
15
|
+
* 'dd/MM/yyyy' => 01/01/2021
|
|
16
|
+
*/
|
|
17
|
+
displayDateFormat?: 'do LLL y' | 'dd LLL y' | 'yyyy-MM-dd' | 'dd/MM/yyyy';
|
|
18
|
+
disableDatepicker?: boolean;
|
|
19
|
+
errorMsg?: string;
|
|
20
|
+
isError?: boolean;
|
|
21
|
+
buttonVariant?: BUTTON_VARIANT;
|
|
22
|
+
customContainerStyles?: React.CSSProperties;
|
|
23
|
+
popoverConfig?: {
|
|
24
|
+
placement?: Placement;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export declare function DatePicker({ value, onChange, mode, variant, displayDateFormat, errorMsg, disableDatepicker, disabled, buttonVariant, customContainerStyles, popoverConfig, isError, ...props }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DatePicker';
|
|
@@ -2,9 +2,11 @@ import { default as React } from 'react';
|
|
|
2
2
|
|
|
3
3
|
export interface TabProps {
|
|
4
4
|
title: string;
|
|
5
|
+
eventKey: string;
|
|
5
6
|
isActive: boolean;
|
|
6
7
|
customClassName?: string;
|
|
7
8
|
customStyles?: React.CSSProperties;
|
|
8
9
|
children: React.ReactNode;
|
|
10
|
+
onClick: () => void;
|
|
9
11
|
}
|
|
10
12
|
export declare const Tab: React.FC<TabProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface Value {
|
|
2
|
+
first_name: string;
|
|
3
|
+
middle_name: string | null;
|
|
4
|
+
last_name: string | null;
|
|
5
|
+
profile_img_url: string;
|
|
6
|
+
work_email: string;
|
|
7
|
+
}
|
|
8
|
+
export interface Detail {
|
|
9
|
+
key: string;
|
|
10
|
+
value: Value | string | null;
|
|
11
|
+
}
|
|
12
|
+
export interface Task {
|
|
13
|
+
id: string;
|
|
14
|
+
type: string;
|
|
15
|
+
name: string;
|
|
16
|
+
date: string;
|
|
17
|
+
details: Detail[];
|
|
18
|
+
status: string;
|
|
19
|
+
details_path: string;
|
|
20
|
+
}
|