oziko-ui-kit 0.0.2 → 0.0.3
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 +3 -0
- package/package.json +3 -2
- package/dist/App.d.ts +0 -2
- package/dist/assets/Inter-VariableFont_opsz,wght.ttf +0 -0
- package/dist/assets/fonts/inter/Inter-VariableFont_opsz,wght.ttf +0 -0
- package/dist/assets/images/location.png +0 -0
- package/dist/assets/images/logo.png +0 -0
- package/dist/assets/inter/Inter-VariableFont_opsz,wght.ttf +0 -0
- package/dist/assets/location.png +0 -0
- package/dist/assets/logo.png +0 -0
- package/dist/components/atoms/autocomplete/Autocomplete.d.ts +0 -13
- package/dist/components/atoms/backdrop/Backdrop.d.ts +0 -8
- package/dist/components/atoms/base-input/BaseInput.d.ts +0 -28
- package/dist/components/atoms/base-input/InputGroup.d.ts +0 -13
- package/dist/components/atoms/base-input/InputLabel.d.ts +0 -9
- package/dist/components/atoms/bucket-field-popup/BucketFieldPopup.d.ts +0 -4
- package/dist/components/atoms/button/Button.d.ts +0 -16
- package/dist/components/atoms/chart/Chart.d.ts +0 -11
- package/dist/components/atoms/checkbox/Checkbox.d.ts +0 -19
- package/dist/components/atoms/chip/Chip.d.ts +0 -13
- package/dist/components/atoms/color/Color.d.ts +0 -16
- package/dist/components/atoms/dashboard-item/DashboardItem.d.ts +0 -12
- package/dist/components/atoms/date-picker/DatePicker.d.ts +0 -7
- package/dist/components/atoms/directory/Directory.d.ts +0 -6
- package/dist/components/atoms/draggable-bar/DraggableBar.d.ts +0 -19
- package/dist/components/atoms/drawer/Drawer.d.ts +0 -18
- package/dist/components/atoms/drop-list/DropList.d.ts +0 -9
- package/dist/components/atoms/flex-element/FlexElement.d.ts +0 -7
- package/dist/components/atoms/fluid-container/FluidContainer.d.ts +0 -9
- package/dist/components/atoms/icon/Icon.d.ts +0 -9
- package/dist/components/atoms/input/Input.d.ts +0 -8
- package/dist/components/atoms/input-header/InputHeader.d.ts +0 -7
- package/dist/components/atoms/input-with-icon/InputWithIcon.d.ts +0 -7
- package/dist/components/atoms/inputs/minimized/array/Array.d.ts +0 -12
- package/dist/components/atoms/inputs/minimized/boolean/Boolean.d.ts +0 -9
- package/dist/components/atoms/inputs/minimized/color/ColorMinimized.d.ts +0 -9
- package/dist/components/atoms/inputs/minimized/date/Date.d.ts +0 -10
- package/dist/components/atoms/inputs/minimized/location/Location.d.ts +0 -10
- package/dist/components/atoms/inputs/minimized/multi-selection/MultiSelection.d.ts +0 -11
- package/dist/components/atoms/inputs/minimized/number/NumberMinimized.d.ts +0 -11
- package/dist/components/atoms/inputs/minimized/object/Object.d.ts +0 -12
- package/dist/components/atoms/inputs/minimized/rich-text/RichText.d.ts +0 -8
- package/dist/components/atoms/inputs/minimized/storage/StorageMinimized.d.ts +0 -12
- package/dist/components/atoms/inputs/minimized/string/StringMinimized.d.ts +0 -14
- package/dist/components/atoms/inputs/minimized/text-area/TextArea.d.ts +0 -13
- package/dist/components/atoms/inputs/normal/array/ArrayInput.d.ts +0 -18
- package/dist/components/atoms/inputs/normal/boolean/Boolean.d.ts +0 -17
- package/dist/components/atoms/inputs/normal/chip/ChipInput.d.ts +0 -8
- package/dist/components/atoms/inputs/normal/color/Color.d.ts +0 -14
- package/dist/components/atoms/inputs/normal/date/Date.d.ts +0 -11
- package/dist/components/atoms/inputs/normal/enum/Enum.d.ts +0 -15
- package/dist/components/atoms/inputs/normal/location/Location.d.ts +0 -13
- package/dist/components/atoms/inputs/normal/multiple-selection/MultipleSelection.d.ts +0 -14
- package/dist/components/atoms/inputs/normal/number/Number.d.ts +0 -16
- package/dist/components/atoms/inputs/normal/object/ObjectInput.d.ts +0 -15
- package/dist/components/atoms/inputs/normal/rich-text/LexicalContent.d.ts +0 -8
- package/dist/components/atoms/inputs/normal/rich-text/RichText.d.ts +0 -19
- package/dist/components/atoms/inputs/normal/rich-text/plugins/ExtendedTextNode.d.ts +0 -12
- package/dist/components/atoms/inputs/normal/rich-text/plugins/OnChangePlugin.d.ts +0 -6
- package/dist/components/atoms/inputs/normal/rich-text/plugins/ToolbarPlugin.d.ts +0 -8
- package/dist/components/atoms/inputs/normal/rich-text/ui/ColorPicker.d.ts +0 -13
- package/dist/components/atoms/inputs/normal/rich-text/ui/Dialog.d.ts +0 -16
- package/dist/components/atoms/inputs/normal/rich-text/ui/Dropdown.d.ts +0 -24
- package/dist/components/atoms/inputs/normal/rich-text/ui/DropdownColorPicker.d.ts +0 -13
- package/dist/components/atoms/inputs/normal/rich-text/ui/FontSize.d.ts +0 -6
- package/dist/components/atoms/inputs/normal/rich-text/ui/TextInput.d.ts +0 -12
- package/dist/components/atoms/inputs/normal/rich-text/utils/getSelectedNode.d.ts +0 -2
- package/dist/components/atoms/inputs/normal/storage/Storage.d.ts +0 -39
- package/dist/components/atoms/inputs/normal/string/String.d.ts +0 -17
- package/dist/components/atoms/inputs/normal/text-area/TextArea.d.ts +0 -24
- package/dist/components/atoms/json/Json.d.ts +0 -6
- package/dist/components/atoms/list-item/ListItem.d.ts +0 -8
- package/dist/components/atoms/list-row/ListRow.d.ts +0 -10
- package/dist/components/atoms/map/Map.d.ts +0 -22
- package/dist/components/atoms/modal/Modal.d.ts +0 -25
- package/dist/components/atoms/modal/body/ModalBody.d.ts +0 -7
- package/dist/components/atoms/modal/footer/ModalFooter.d.ts +0 -7
- package/dist/components/atoms/modal/header/ModalHeader.d.ts +0 -7
- package/dist/components/atoms/popover/Popover.d.ts +0 -16
- package/dist/components/atoms/portal/Portal.d.ts +0 -6
- package/dist/components/atoms/select-option/SelectOption.d.ts +0 -19
- package/dist/components/atoms/spinner/Spinner.d.ts +0 -15
- package/dist/components/atoms/storage-file-card/StorageFileCard.d.ts +0 -12
- package/dist/components/atoms/switch/Switch.d.ts +0 -9
- package/dist/components/atoms/tab/Tab.d.ts +0 -9
- package/dist/components/atoms/text/Text.d.ts +0 -9
- package/dist/components/atoms/title/Title.d.ts +0 -9
- package/dist/components/molecules/accordion/Accordion.d.ts +0 -24
- package/dist/components/molecules/accordion/AccordionElement.d.ts +0 -17
- package/dist/components/molecules/navigator-item/NavigatorItem.d.ts +0 -14
- package/dist/components/molecules/select/Select.d.ts +0 -31
- package/dist/components/molecules/sso-button/SSOButton.d.ts +0 -10
- package/dist/components/molecules/storage-filter/StorageFilter.d.ts +0 -24
- package/dist/components/molecules/timeline/Timeline.d.ts +0 -24
- package/dist/components/organisms/dashboard/layout/DashboardLayout.d.ts +0 -15
- package/dist/components/organisms/menu-group/MenuGroup.d.ts +0 -12
- package/dist/components/organisms/section/Section.d.ts +0 -12
- package/dist/components/organisms/sidebar/SideBar.d.ts +0 -25
- package/dist/components/organisms/sidebar/navigator/Navigator.d.ts +0 -19
- package/dist/components/organisms/storage-file-select/StorageFileSelect.d.ts +0 -12
- package/dist/components/organisms/storage-file-select/sort-popover-content/SortPopoverContent.d.ts +0 -6
- package/dist/components/organisms/storage-file-select/storage-modal-heading/StorageModalHeading.d.ts +0 -11
- package/dist/components/organisms/table/Table.d.ts +0 -13
- package/dist/custom-hooks/useAdaptivePosition.d.ts +0 -18
- package/dist/custom-hooks/useDebounce.d.ts +0 -6
- package/dist/custom-hooks/useFileView.d.ts +0 -12
- package/dist/custom-hooks/useFlexStyles.d.ts +0 -9
- package/dist/custom-hooks/useInputRepresenter.d.ts +0 -83
- package/dist/custom-hooks/useKeyDown.d.ts +0 -12
- package/dist/custom-hooks/useOnClickOutside.d.ts +0 -7
- package/dist/images/layers-2x.png +0 -0
- package/dist/images/layers.png +0 -0
- package/dist/images/marker-icon-2x.png +0 -0
- package/dist/images/marker-icon.png +0 -0
- package/dist/images/marker-shadow.png +0 -0
- package/dist/index.css +0 -3140
- package/dist/index.export.d.ts +0 -68
- package/dist/index.mjs +0 -100
- package/dist/index.mjs.map +0 -1
- package/dist/theme/ThemeContext.d.ts +0 -7
- package/dist/theme/createTheme.d.ts +0 -3
- package/dist/theme/defaultPalette.d.ts +0 -5
- package/dist/theme/index.d.ts +0 -5
- package/dist/theme/loadTheme.d.ts +0 -1
- package/dist/theme/saveTheme.d.ts +0 -1
- package/dist/theme/types.d.ts +0 -51
- package/dist/utils/api.d.ts +0 -7
- package/dist/utils/color.d.ts +0 -8
- package/dist/utils/helperUtils.d.ts +0 -5
- package/dist/utils/iconList.d.ts +0 -9
- package/dist/utils/index.d.ts +0 -25
- package/dist/utils/interface.d.ts +0 -23
- package/dist/utils/time.d.ts +0 -8
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
type TypeFilterValue = {
|
|
2
|
-
type: string[];
|
|
3
|
-
fileSize: {
|
|
4
|
-
min: {
|
|
5
|
-
value: number | null;
|
|
6
|
-
unit: string;
|
|
7
|
-
};
|
|
8
|
-
max: {
|
|
9
|
-
value: number | null;
|
|
10
|
-
unit: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
quickdate: string | null;
|
|
14
|
-
dateRange: {
|
|
15
|
-
from: null | string;
|
|
16
|
-
to: null | string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
type TypeStorageFilter = {
|
|
20
|
-
onApply?: (filter: TypeFilterValue) => void;
|
|
21
|
-
onCancel?: () => void;
|
|
22
|
-
};
|
|
23
|
-
declare const _default: import("react").NamedExoticComponent<TypeStorageFilter>;
|
|
24
|
-
export default _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ChartData } from "chart.js";
|
|
2
|
-
import "chartjs-adapter-date-fns";
|
|
3
|
-
import { TypeFluidContainer } from "../../../components/atoms/fluid-container/FluidContainer";
|
|
4
|
-
export type TypeBarChartData = ChartData<"bar", (number | [number, number] | null)[], unknown>;
|
|
5
|
-
type TypeTimeline = {
|
|
6
|
-
dateRange: {
|
|
7
|
-
from: Date;
|
|
8
|
-
to: Date;
|
|
9
|
-
};
|
|
10
|
-
annotationRange?: {
|
|
11
|
-
from: Date;
|
|
12
|
-
to: Date;
|
|
13
|
-
};
|
|
14
|
-
data: TypeBarChartData;
|
|
15
|
-
showArrows?: boolean;
|
|
16
|
-
onPan?: (direction: "left" | "right", seconds: number) => void;
|
|
17
|
-
onClickBar?: (date: Date) => void;
|
|
18
|
-
onChangeDateRange?: (date: {
|
|
19
|
-
from: Date;
|
|
20
|
-
to: Date;
|
|
21
|
-
}) => void;
|
|
22
|
-
} & TypeFluidContainer;
|
|
23
|
-
declare const _default: import("react").NamedExoticComponent<TypeTimeline>;
|
|
24
|
-
export default _default;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
import { ChartData, ChartOptions, ChartType } from "chart.js";
|
|
3
|
-
import { TypeFluidContainer } from "../../../../components/atoms/fluid-container/FluidContainer";
|
|
4
|
-
type TypeDashboardItem = {
|
|
5
|
-
ratio: string;
|
|
6
|
-
id: string;
|
|
7
|
-
headerProps?: TypeFluidContainer;
|
|
8
|
-
data?: ChartData<ChartType>;
|
|
9
|
-
options?: ChartOptions<ChartType>;
|
|
10
|
-
};
|
|
11
|
-
type TypeDashboardLayout = {
|
|
12
|
-
dashboards?: TypeDashboardItem[] | undefined;
|
|
13
|
-
};
|
|
14
|
-
declare const DashboardLayout: FC<TypeDashboardLayout>;
|
|
15
|
-
export default DashboardLayout;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { TypeFlexElement } from "../../../components/atoms/flex-element/FlexElement";
|
|
3
|
-
type TypeMenuGroup = {
|
|
4
|
-
options?: Record<string, {
|
|
5
|
-
label: string;
|
|
6
|
-
value?: React.ReactNode;
|
|
7
|
-
}>;
|
|
8
|
-
showDivider?: boolean;
|
|
9
|
-
showTitle?: boolean;
|
|
10
|
-
} & TypeFlexElement;
|
|
11
|
-
declare const _default: React.NamedExoticComponent<TypeMenuGroup>;
|
|
12
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import FlexElement, { TypeFlexElement } from "../../../components/atoms/flex-element/FlexElement";
|
|
3
|
-
type TypeSection = {
|
|
4
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
5
|
-
} & TypeFlexElement;
|
|
6
|
-
type TypeSectionComponent = React.FC<TypeSection> & {
|
|
7
|
-
Header: typeof FlexElement;
|
|
8
|
-
Content: typeof FlexElement;
|
|
9
|
-
Footer: typeof FlexElement;
|
|
10
|
-
};
|
|
11
|
-
declare const Section: TypeSectionComponent;
|
|
12
|
-
export default Section;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from "react";
|
|
2
|
-
import { IconName } from "../../../utils/iconList";
|
|
3
|
-
import { TypeNavigatorHeader } from "./navigator/Navigator";
|
|
4
|
-
export type TypeMenuItems = {
|
|
5
|
-
name?: string;
|
|
6
|
-
icon?: IconName;
|
|
7
|
-
header?: TypeNavigatorHeader;
|
|
8
|
-
id: string;
|
|
9
|
-
};
|
|
10
|
-
export type TypeNavigatorItems = {
|
|
11
|
-
_id: string;
|
|
12
|
-
title?: string;
|
|
13
|
-
icon?: IconName;
|
|
14
|
-
category?: string;
|
|
15
|
-
};
|
|
16
|
-
type TypeSideBar = {
|
|
17
|
-
menuItems?: TypeMenuItems[];
|
|
18
|
-
navigatorItems?: {
|
|
19
|
-
[key: string]: TypeNavigatorItems[];
|
|
20
|
-
};
|
|
21
|
-
logo?: string;
|
|
22
|
-
footer?: ReactNode;
|
|
23
|
-
};
|
|
24
|
-
declare const SideBar: FC<TypeSideBar>;
|
|
25
|
-
export default SideBar;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { IconName } from "../../../../utils/iconList";
|
|
2
|
-
type TypeNavigatorProps = {
|
|
3
|
-
header?: TypeNavigatorHeader;
|
|
4
|
-
items?: any;
|
|
5
|
-
button?: {
|
|
6
|
-
title: string;
|
|
7
|
-
icon: IconName;
|
|
8
|
-
onClick: () => void;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export type TypeNavigatorHeader = {
|
|
12
|
-
name?: string;
|
|
13
|
-
buttons?: {
|
|
14
|
-
icon: IconName;
|
|
15
|
-
onClick: () => void;
|
|
16
|
-
}[];
|
|
17
|
-
};
|
|
18
|
-
declare const _default: import("react").MemoExoticComponent<({ header, items, button }: TypeNavigatorProps) => import("react/jsx-runtime").JSX.Element>;
|
|
19
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { TypeSortProp } from "./sort-popover-content/SortPopoverContent";
|
|
2
|
-
import { TypeFile } from "../../../utils/interface";
|
|
3
|
-
type TypeStorageFileSelect = {
|
|
4
|
-
data: TypeFile[];
|
|
5
|
-
className?: string;
|
|
6
|
-
onChangeSearch?: (search: string) => void;
|
|
7
|
-
onClickSort?: (prop: TypeSortProp) => void;
|
|
8
|
-
onChooseFile?: (file: TypeFile) => void;
|
|
9
|
-
isOpen?: boolean;
|
|
10
|
-
};
|
|
11
|
-
declare const _default: import("react").NamedExoticComponent<TypeStorageFileSelect>;
|
|
12
|
-
export default _default;
|
package/dist/components/organisms/storage-file-select/sort-popover-content/SortPopoverContent.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export type TypeSortProp = "name_desc" | "name_asc" | "date_desc" | "date_asc";
|
|
2
|
-
type TypeSortPopoverContent = {
|
|
3
|
-
onClick?: (prop: TypeSortProp) => void;
|
|
4
|
-
};
|
|
5
|
-
declare const _default: import("react").NamedExoticComponent<TypeSortPopoverContent>;
|
|
6
|
-
export default _default;
|
package/dist/components/organisms/storage-file-select/storage-modal-heading/StorageModalHeading.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TypeSortProp } from "../sort-popover-content/SortPopoverContent";
|
|
2
|
-
type TypeStorageModalHeading = {
|
|
3
|
-
directory: string[];
|
|
4
|
-
fileLength?: number;
|
|
5
|
-
folderLength?: number;
|
|
6
|
-
onChangeSearch?: (search: string) => void;
|
|
7
|
-
onClickSort?: (prop: TypeSortProp) => void;
|
|
8
|
-
onChangeDirectory?: (index: number) => void;
|
|
9
|
-
};
|
|
10
|
-
declare const _default: import("react").NamedExoticComponent<TypeStorageModalHeading>;
|
|
11
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
type TypeTable = {
|
|
3
|
-
columns: any[];
|
|
4
|
-
data: any[];
|
|
5
|
-
saveToLocalStorage?: {
|
|
6
|
-
id: string;
|
|
7
|
-
save?: boolean;
|
|
8
|
-
};
|
|
9
|
-
fixedColumns?: string[];
|
|
10
|
-
noResizeableColumns?: string[];
|
|
11
|
-
};
|
|
12
|
-
declare const _default: React.NamedExoticComponent<TypeTable>;
|
|
13
|
-
export default _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { RefObject } from "react";
|
|
2
|
-
export type Placement = "topStart" | "top" | "topEnd" | "rightStart" | "right" | "rightEnd" | "bottomStart" | "bottom" | "bottomEnd" | "leftStart" | "left" | "leftEnd";
|
|
3
|
-
type AdaptivePositionProps = {
|
|
4
|
-
containerRef: RefObject<HTMLElement | null>;
|
|
5
|
-
targetRef: RefObject<HTMLElement | null>;
|
|
6
|
-
initialPlacement?: Placement;
|
|
7
|
-
};
|
|
8
|
-
type PositionStyle = {
|
|
9
|
-
top?: number;
|
|
10
|
-
left?: number;
|
|
11
|
-
right?: number;
|
|
12
|
-
bottom?: number;
|
|
13
|
-
};
|
|
14
|
-
declare const useAdaptivePosition: ({ containerRef, targetRef, initialPlacement, }: AdaptivePositionProps) => {
|
|
15
|
-
targetPosition: PositionStyle | null;
|
|
16
|
-
calculatePosition: () => void;
|
|
17
|
-
};
|
|
18
|
-
export default useAdaptivePosition;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from "react";
|
|
2
|
-
import { TypeFile } from "../utils/interface";
|
|
3
|
-
type TypeStyle = {
|
|
4
|
-
img?: CSSProperties;
|
|
5
|
-
embed?: CSSProperties;
|
|
6
|
-
};
|
|
7
|
-
type TypeUseFileView = {
|
|
8
|
-
file?: TypeFile;
|
|
9
|
-
styles?: TypeStyle;
|
|
10
|
-
};
|
|
11
|
-
declare const useFileView: ({ file, styles }: TypeUseFileView) => import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
-
export default useFileView;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { TypeFlexContainer, TypeFlexDimension } from "../utils/interface";
|
|
2
|
-
export declare function useFlexStyles<T extends Partial<TypeFlexContainer & TypeFlexDimension>>(options?: T): {
|
|
3
|
-
classes: string;
|
|
4
|
-
inlineStyles: {
|
|
5
|
-
gap: string;
|
|
6
|
-
width: string | undefined;
|
|
7
|
-
height: string | undefined;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { TypeCoordinates } from "components/atoms/map/Map";
|
|
2
|
-
import { ReactNode } from "react";
|
|
3
|
-
import { utils } from "utils";
|
|
4
|
-
export type TypeProperties = {
|
|
5
|
-
[key: string]: {
|
|
6
|
-
type: keyof typeof types;
|
|
7
|
-
title: string;
|
|
8
|
-
description: string;
|
|
9
|
-
options?: TypeOptions;
|
|
10
|
-
enum?: (string | number)[];
|
|
11
|
-
default?: TypeValueType;
|
|
12
|
-
items?: TypeArrayItems;
|
|
13
|
-
minItems?: number;
|
|
14
|
-
maxItems?: number;
|
|
15
|
-
locationType?: string;
|
|
16
|
-
className?: string;
|
|
17
|
-
properties?: TypeProperties;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
export type TypeValueType = string | number | boolean | string[] | number[] | boolean[] | TypeRepresenterValue | TypeRepresenterValue[];
|
|
21
|
-
export type TypeRepresenterValue = {
|
|
22
|
-
[key: string]: TypeValueType | TypeRepresenterValue;
|
|
23
|
-
};
|
|
24
|
-
export type TypeInputType = "string" | "number" | "textarea" | "date" | "boolean" | "color" | "storage" | "multiselect" | "location" | "richtext" | "object" | "array";
|
|
25
|
-
type TypeOptions = {
|
|
26
|
-
position?: "top" | "bottom" | "left" | "right";
|
|
27
|
-
index?: boolean;
|
|
28
|
-
};
|
|
29
|
-
export type TypeArrayItems = {
|
|
30
|
-
title?: string;
|
|
31
|
-
type: TypeInputType;
|
|
32
|
-
properties: TypeProperties;
|
|
33
|
-
enum?: (number | string)[];
|
|
34
|
-
};
|
|
35
|
-
export type TypeChangeEvent<T> = {
|
|
36
|
-
key: string;
|
|
37
|
-
value: T;
|
|
38
|
-
};
|
|
39
|
-
export type TypeInputProps<T> = {
|
|
40
|
-
key: string;
|
|
41
|
-
title: string;
|
|
42
|
-
description: string;
|
|
43
|
-
value?: T;
|
|
44
|
-
className?: string;
|
|
45
|
-
onChange?: ({ key, value }: TypeChangeEvent<T>) => void;
|
|
46
|
-
};
|
|
47
|
-
type TypeObjectInputProps<T> = {
|
|
48
|
-
key?: string;
|
|
49
|
-
properties?: TypeProperties;
|
|
50
|
-
} & TypeInputProps<T>;
|
|
51
|
-
type TypeSelectInputProps<T extends string | number> = {
|
|
52
|
-
enum?: T[];
|
|
53
|
-
} & TypeInputProps<T>;
|
|
54
|
-
type TypeMultiSelectInputProps<T extends string | number> = {
|
|
55
|
-
enum?: T[];
|
|
56
|
-
} & TypeInputProps<T[]>;
|
|
57
|
-
type TypeArrayInputProps<T> = {
|
|
58
|
-
minItems?: number;
|
|
59
|
-
maxItems?: number;
|
|
60
|
-
items?: TypeArrayItems;
|
|
61
|
-
} & TypeInputProps<T[]>;
|
|
62
|
-
export type TypeInputTypeMap = {
|
|
63
|
-
string: (props: TypeSelectInputProps<string>) => ReactNode;
|
|
64
|
-
number: (props: TypeSelectInputProps<number>) => ReactNode;
|
|
65
|
-
textarea: (props: TypeInputProps<string>) => ReactNode;
|
|
66
|
-
date: (props: TypeInputProps<Date | string | null>) => ReactNode;
|
|
67
|
-
boolean: (props: TypeInputProps<boolean>) => ReactNode;
|
|
68
|
-
color: (props: TypeInputProps<string>) => ReactNode;
|
|
69
|
-
storage: (props: TypeInputProps<string>) => ReactNode;
|
|
70
|
-
multiselect: (props: TypeMultiSelectInputProps<string | number>) => ReactNode;
|
|
71
|
-
location: (props: TypeInputProps<TypeCoordinates | utils.api.TypeLocation>) => ReactNode;
|
|
72
|
-
richtext: (props: TypeInputProps<string>) => ReactNode;
|
|
73
|
-
object: (props: TypeObjectInputProps<TypeRepresenterValue>) => ReactNode;
|
|
74
|
-
array: (props: TypeArrayInputProps<TypeValueType>) => ReactNode;
|
|
75
|
-
};
|
|
76
|
-
declare const types: TypeInputTypeMap;
|
|
77
|
-
type TypeUseInputRepresenter = {
|
|
78
|
-
properties: TypeProperties;
|
|
79
|
-
value?: TypeValueType | TypeRepresenterValue;
|
|
80
|
-
onChange?: (value: any) => void;
|
|
81
|
-
};
|
|
82
|
-
declare const useInputRepresenter: ({ properties, value, onChange }: TypeUseInputRepresenter) => import("react/jsx-runtime").JSX.Element[];
|
|
83
|
-
export default useInputRepresenter;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
declare const KeyMap: {
|
|
2
|
-
readonly Escape: "Escape";
|
|
3
|
-
readonly Enter: "Enter";
|
|
4
|
-
readonly ArrowUp: "ArrowUp";
|
|
5
|
-
readonly ArrowDown: "ArrowDown";
|
|
6
|
-
readonly ArrowLeft: "ArrowLeft";
|
|
7
|
-
readonly ArrowRight: "ArrowRight";
|
|
8
|
-
readonly Space: " ";
|
|
9
|
-
};
|
|
10
|
-
type TypeKey = keyof typeof KeyMap;
|
|
11
|
-
declare function useKeyDown(key: TypeKey, callback: (event: KeyboardEvent) => void): void;
|
|
12
|
-
export default useKeyDown;
|
|
Binary file
|
package/dist/images/layers.png
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|