digitinary-ui 1.0.4 → 1.0.6
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/Accordion/Accordion.js +28 -0
- package/dist/components/Accordion/index.js +1 -0
- package/dist/components/Alert/Alert.js +58 -0
- package/dist/components/Alert/index.js +1 -0
- package/dist/components/Button/Button.js +17 -0
- package/dist/components/Button/index.js +1 -0
- package/dist/components/Card/Card.js +6 -0
- package/dist/components/Card/index.js +1 -0
- package/dist/components/Checkbox/Checkbox.js +8 -0
- package/dist/components/Checkbox/index.js +1 -0
- package/dist/components/Chip/Chip.js +18 -0
- package/dist/components/Chip/index.js +1 -0
- package/dist/components/Date/Date.js +460 -0
- package/dist/components/Date/index.js +1 -0
- package/dist/components/DateRange/DateRange.js +206 -0
- package/dist/components/DateRange/index.js +1 -0
- package/dist/components/Dialog/Dialog.js +36 -0
- package/dist/components/Dialog/index.js +1 -0
- package/dist/components/HelperText/HelperText.js +6 -0
- package/dist/components/HelperText/index.js +1 -0
- package/dist/components/Input/Input.js +38 -0
- package/dist/components/Input/index.js +1 -0
- package/dist/components/Label/Label.js +6 -0
- package/dist/components/Label/index.js +1 -0
- package/dist/components/Overlay/Overlay.js +8 -0
- package/dist/components/Overlay/index.js +1 -0
- package/dist/components/Pagination/Pagination.js +26 -0
- package/dist/components/Pagination/index.js +1 -0
- package/dist/components/Radio/Radio.js +8 -0
- package/dist/components/Radio/index.js +1 -0
- package/dist/components/RadioGroup/RadioGroup.js +14 -0
- package/dist/components/RadioGroup/index.js +1 -0
- package/dist/components/SelectGroup/SelectGroup.js +251 -0
- package/dist/components/SelectGroup/index.js +1 -0
- package/dist/components/SideDrawer/SideDrawer.js +54 -0
- package/dist/components/SideDrawer/index.js +1 -0
- package/dist/components/Switch/Switch.js +6 -0
- package/dist/components/Switch/index.js +1 -0
- package/dist/components/Table/Table.d.ts +1 -1
- package/dist/components/Table/Table.js +60 -0
- package/dist/components/Table/index.js +1 -0
- package/dist/components/TextArea/TextArea.d.ts +1 -1
- package/dist/components/TextArea/TextArea.js +30 -0
- package/dist/components/TextArea/index.js +1 -0
- package/dist/components/Tooltip/Tooltip.js +8 -0
- package/dist/components/index.js +19 -0
- package/dist/constants/index.js +5 -0
- package/dist/icons/AlertErrorIcon.js +3 -0
- package/dist/icons/AlertInfoIcon.js +3 -0
- package/dist/icons/AlertSuccessIcon.js +3 -0
- package/dist/icons/AlertWarningIcon.js +3 -0
- package/dist/icons/ArrowBottom.js +3 -0
- package/dist/icons/ArrowLeft.js +3 -0
- package/dist/icons/ArrowRight.js +3 -0
- package/dist/icons/ArrowUpIcon.js +3 -0
- package/dist/icons/Calendar.js +3 -0
- package/dist/icons/CheckMark.js +3 -0
- package/dist/icons/ClearField.js +3 -0
- package/dist/icons/CloseIcon.js +3 -0
- package/dist/icons/DoubleLeftArrow.js +3 -0
- package/dist/icons/DoubleRightArrow.js +3 -0
- package/dist/icons/ExcelIcon.js +3 -0
- package/dist/icons/HidePasswordIcon.js +3 -0
- package/dist/icons/InfoIcon.js +3 -0
- package/dist/icons/LeftArrowIcon.js +3 -0
- package/dist/icons/LoaderIcon.js +3 -0
- package/dist/icons/PdfIcon.js +3 -0
- package/dist/icons/RightArrowIcon.js +3 -0
- package/dist/icons/SearchIcon.js +3 -0
- package/dist/icons/SelectFieldDownArrow.js +3 -0
- package/dist/icons/SelectFieldUpArrow.js +3 -0
- package/dist/icons/ShowPasswordIcon.js +3 -0
- package/dist/icons/SortIcon.js +3 -0
- package/dist/index.js +3 -2
- package/dist/types/enums.js +25 -0
- package/dist/types/index.js +3 -0
- package/dist/types/interfaces.d.ts +4 -10
- package/dist/types/interfaces.js +1 -0
- package/dist/types/types.js +1 -0
- package/dist/utils/index.js +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export var Size;
|
|
2
|
+
(function (Size) {
|
|
3
|
+
Size["Small"] = "small";
|
|
4
|
+
Size["Medium"] = "medium";
|
|
5
|
+
Size["Large"] = "large";
|
|
6
|
+
})(Size || (Size = {}));
|
|
7
|
+
export var Position;
|
|
8
|
+
(function (Position) {
|
|
9
|
+
Position["End"] = "end";
|
|
10
|
+
Position["Start"] = "start";
|
|
11
|
+
Position["Top"] = "top";
|
|
12
|
+
Position["Bottom"] = "bottom";
|
|
13
|
+
})(Position || (Position = {}));
|
|
14
|
+
export var Duration;
|
|
15
|
+
(function (Duration) {
|
|
16
|
+
Duration["Hours"] = "hours";
|
|
17
|
+
Duration["Days"] = "days";
|
|
18
|
+
Duration["Weeks"] = "weeks";
|
|
19
|
+
Duration["Months"] = "months";
|
|
20
|
+
})(Duration || (Duration = {}));
|
|
21
|
+
export var TableLayout;
|
|
22
|
+
(function (TableLayout) {
|
|
23
|
+
TableLayout["AUTO"] = "auto";
|
|
24
|
+
TableLayout["FIXED"] = "fixed";
|
|
25
|
+
})(TableLayout || (TableLayout = {}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Size
|
|
2
|
+
import { Size } from './enums';
|
|
3
3
|
import { AlertColorType, AlertVariantType, ButtonColorType, ButtonType, ButtonVariantType, InputType, PlacementType, SizeType, SwitchColorType, PositionType, ChipColorType, ChipVariantType, RadioColorType, RadioOption, HelperTextColorType } from './types';
|
|
4
4
|
interface BaseProps {
|
|
5
5
|
id?: string;
|
|
@@ -77,6 +77,7 @@ export interface TextAreaProps extends FormProps<string | null> {
|
|
|
77
77
|
maxLength?: number;
|
|
78
78
|
startDecorator?: JSX.Element;
|
|
79
79
|
endDecorator?: JSX.Element;
|
|
80
|
+
direction?: 'rtl' | 'ltr';
|
|
80
81
|
}
|
|
81
82
|
export interface PaginationProps extends BaseProps {
|
|
82
83
|
page: number;
|
|
@@ -97,22 +98,17 @@ export interface PaginationProps extends BaseProps {
|
|
|
97
98
|
};
|
|
98
99
|
}
|
|
99
100
|
export interface TableProps extends BaseProps {
|
|
100
|
-
tableLayout?: TableLayout;
|
|
101
|
-
minWidthThreshold?: number;
|
|
102
101
|
headCells: HeadCellProps[];
|
|
103
|
-
setHeadCells: (headCells: HeadCellProps[]) => void;
|
|
104
102
|
data: Record<string, any>[];
|
|
105
103
|
sort: string;
|
|
106
|
-
setSort: (prev:
|
|
104
|
+
setSort: (prev: string) => void;
|
|
107
105
|
currentHeadCell: string;
|
|
108
|
-
setCurrentHeadCell: (
|
|
106
|
+
setCurrentHeadCell: (prev: string) => void;
|
|
109
107
|
fallback?: JSX.Element;
|
|
110
108
|
footer?: JSX.Element;
|
|
111
109
|
onRowClick?: (rowId: string | number) => void;
|
|
112
110
|
selectableRow?: boolean;
|
|
113
111
|
selectedRowId?: string;
|
|
114
|
-
resizeAndRearrange?: boolean;
|
|
115
|
-
tableHeader?: string;
|
|
116
112
|
rowDataId?: string;
|
|
117
113
|
}
|
|
118
114
|
export interface SwitchProps {
|
|
@@ -252,9 +248,7 @@ export interface HeadCellProps {
|
|
|
252
248
|
id: string;
|
|
253
249
|
label: string;
|
|
254
250
|
classes?: string;
|
|
255
|
-
draggable?: boolean;
|
|
256
251
|
sortable?: boolean;
|
|
257
|
-
resizable?: boolean;
|
|
258
252
|
tooltip?: boolean;
|
|
259
253
|
width?: string;
|
|
260
254
|
minWidth?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|