chop-logic-components 4.0.3 → 4.1.1
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 +23 -8
- package/dist/components/atoms/button/Button.d.ts +7 -0
- package/dist/components/atoms/button/icon-button/IconButton.d.ts +3 -0
- package/dist/components/atoms/button/inner-button/InnerButton.d.ts +3 -0
- package/dist/components/atoms/button/primary-button/PrimaryButton.d.ts +3 -0
- package/dist/components/atoms/button/secondary-button/SecondaryButton.css +1 -1
- package/dist/components/atoms/button/secondary-button/SecondaryButton.d.ts +3 -0
- package/dist/components/atoms/editable-text/EditView.d.ts +14 -0
- package/dist/components/atoms/editable-text/EditableText.d.ts +4 -0
- package/dist/components/atoms/editable-text/ReadView.d.ts +10 -0
- package/dist/components/atoms/editable-text/useEditModeState.d.ts +6 -0
- package/dist/components/atoms/editable-text/useInputFocus.d.ts +2 -0
- package/dist/components/atoms/editable-text/useValueState.d.ts +6 -0
- package/dist/components/atoms/error-message/ErrorMessage.d.ts +10 -0
- package/dist/components/atoms/header/Header.d.ts +4 -0
- package/dist/components/atoms/icon/Icon.d.ts +11 -0
- package/dist/components/atoms/icon/Icon2.js +7 -11
- package/dist/components/atoms/image/BasicImage.d.ts +13 -0
- package/dist/components/atoms/image/FallBackImage.d.ts +2 -0
- package/dist/components/atoms/image/Image.d.ts +6 -0
- package/dist/components/atoms/image/ResponsivePicture.d.ts +15 -0
- package/dist/components/atoms/index.d.ts +11 -0
- package/dist/components/atoms/input/Input.d.ts +5 -0
- package/dist/components/atoms/label/Label.d.ts +16 -0
- package/dist/components/atoms/link/Link.d.ts +4 -0
- package/dist/components/atoms/portal/Portal.d.ts +5 -0
- package/dist/components/atoms/tooltip/Tooltip.controller.d.ts +19 -0
- package/dist/components/atoms/tooltip/Tooltip.d.ts +4 -0
- package/dist/components/contexts/form/FormContext.d.ts +7 -0
- package/dist/components/contexts/index.d.ts +4 -0
- package/dist/components/contexts/theme/ThemeContext.d.ts +8 -0
- package/dist/components/contexts/theme/ThemeProvider.d.ts +8 -0
- package/dist/components/hocs/index.d.ts +3 -0
- package/dist/components/hocs/with-error-boundary/index.js +2 -0
- package/dist/components/hocs/with-error-boundary/with-error-boundary.d.ts +6 -0
- package/dist/components/hocs/with-error-boundary/with-error-boundary.js +32 -0
- package/dist/components/hocs/with-figure-caption/with-figure-caption.d.ts +6 -0
- package/dist/components/hocs/with-tooltip/with-tooltip.d.ts +7 -0
- package/dist/components/molecules/accordion/Accordion.d.ts +4 -0
- package/dist/components/molecules/accordion/AccordionItem.d.ts +3 -0
- package/dist/components/molecules/alert/Alert.d.ts +4 -0
- package/dist/components/molecules/alert/Alert.helpers.d.ts +3 -0
- package/dist/components/molecules/alert/AlertProgressBar.d.ts +4 -0
- package/dist/components/molecules/breadcrumbs/BreadcrumbItem.d.ts +7 -0
- package/dist/components/molecules/breadcrumbs/BreadcrumbList.d.ts +6 -0
- package/dist/components/molecules/breadcrumbs/Breadcrumbs.d.ts +4 -0
- package/dist/components/molecules/checkbox/Checkbox.controller.d.ts +9 -0
- package/dist/components/molecules/checkbox/Checkbox.d.ts +9 -0
- package/dist/components/molecules/checkbox/Checkbox.helpers.d.ts +6 -0
- package/dist/components/molecules/checkbox/CheckboxStateful.d.ts +4 -0
- package/dist/components/molecules/checkbox/CheckboxStateless.d.ts +4 -0
- package/dist/components/molecules/index.d.ts +10 -0
- package/dist/components/molecules/multi-select/MultiSelect.Combobox.d.ts +15 -0
- package/dist/components/molecules/multi-select/MultiSelect.Dropdown.d.ts +11 -0
- package/dist/components/molecules/multi-select/MultiSelect.controller.d.ts +13 -0
- package/dist/components/molecules/multi-select/MultiSelect.d.ts +4 -0
- package/dist/components/molecules/multi-select/MultiSelect.helpers.d.ts +9 -0
- package/dist/components/molecules/multi-select/MultiSelectComboboxSelectedValues.d.ts +8 -0
- package/dist/components/molecules/multi-select/Option.d.ts +8 -0
- package/dist/components/molecules/multi-select/Option.js +11 -11
- package/dist/components/molecules/numeric-input/NumericInput.controller.d.ts +22 -0
- package/dist/components/molecules/numeric-input/NumericInput.d.ts +9 -0
- package/dist/components/molecules/numeric-input/NumericInput.helpers.d.ts +13 -0
- package/dist/components/molecules/numeric-input/NumericInputStateful.d.ts +4 -0
- package/dist/components/molecules/numeric-input/NumericInputStateless.d.ts +4 -0
- package/dist/components/molecules/search/Search.controller.d.ts +12 -0
- package/dist/components/molecules/search/Search.d.ts +4 -0
- package/dist/components/molecules/select/Select.controller.d.ts +14 -0
- package/dist/components/molecules/select/Select.d.ts +4 -0
- package/dist/components/molecules/select/Select.helpers.d.ts +7 -0
- package/dist/components/molecules/select/combobox/Combobox.d.ts +15 -0
- package/dist/components/molecules/select/dropdown/Dropdown.d.ts +14 -0
- package/dist/components/molecules/select/option/Option.d.ts +10 -0
- package/dist/components/molecules/select/option/Option2.js +10 -10
- package/dist/components/molecules/switch/Switch.controller.d.ts +10 -0
- package/dist/components/molecules/switch/Switch.d.ts +4 -0
- package/dist/components/molecules/switch/Switch.helpers.d.ts +6 -0
- package/dist/components/molecules/switch/Switch2.js +4 -4
- package/dist/components/molecules/text-input/TextInput.controller.d.ts +17 -0
- package/dist/components/molecules/text-input/TextInput.d.ts +9 -0
- package/dist/components/molecules/text-input/TextInput.helpers.d.ts +11 -0
- package/dist/components/molecules/text-input/TextInputButtons.d.ts +11 -0
- package/dist/components/molecules/text-input/TextInputStateful.d.ts +4 -0
- package/dist/components/molecules/text-input/TextInputStateless.d.ts +4 -0
- package/dist/components/molecules/text-input/TextInputStateless.js +8 -8
- package/dist/components/organisms/dialog/Dialog.css +1 -1
- package/dist/components/organisms/dialog/Dialog.d.ts +4 -0
- package/dist/components/organisms/form/Form.controller.d.ts +14 -0
- package/dist/components/organisms/form/Form.d.ts +4 -0
- package/dist/components/organisms/form/Form.helpers.d.ts +4 -0
- package/dist/components/organisms/grid/Grid.controller.d.ts +15 -0
- package/dist/components/organisms/grid/Grid.d.ts +4 -0
- package/dist/components/organisms/grid/Grid.helpers.d.ts +6 -0
- package/dist/components/organisms/grid/body/GridBody.d.ts +13 -0
- package/dist/components/organisms/grid/checkbox/GridCheckbox.d.ts +6 -0
- package/dist/components/organisms/grid/column-group/GridColumnGroup.d.ts +6 -0
- package/dist/components/organisms/grid/data-cell/GridDataCell.d.ts +4 -0
- package/dist/components/organisms/grid/grid-row/GridRow.d.ts +13 -0
- package/dist/components/organisms/grid/head/GridHead.d.ts +13 -0
- package/dist/components/organisms/grid/header-cell/HeaderCell.d.ts +5 -0
- package/dist/components/organisms/grid/select-all-grid-rows-cell/SelectAllGridRowsCell.d.ts +10 -0
- package/dist/components/organisms/grid/select-grid-row-cell/SelectGridRowCell.d.ts +10 -0
- package/dist/components/organisms/index.d.ts +5 -0
- package/dist/components/organisms/menu/Menu.d.ts +4 -0
- package/dist/components/organisms/menu/leaf/MenuLeaf.d.ts +5 -0
- package/dist/components/organisms/menu/list-item/MenuListItem.d.ts +10 -0
- package/dist/components/organisms/menu/sub-menu/SubMenu.d.ts +14 -0
- package/dist/components/organisms/tabs/Tabs.d.ts +4 -0
- package/dist/components/organisms/tabs/button/TabButton.d.ts +18 -0
- package/dist/components/organisms/tabs/content/TabContent.d.ts +8 -0
- package/dist/components/organisms/tabs/content/TabContent2.js +3 -3
- package/dist/components/organisms/tabs/edit-input/TabEditInput.d.ts +14 -0
- package/dist/components/organisms/tabs/list/TabList.d.ts +19 -0
- package/dist/enums/alert-mode.d.ts +7 -0
- package/dist/enums/button-view.d.ts +6 -0
- package/dist/enums/element-size.d.ts +8 -0
- package/dist/enums/icon-name.d.ts +284 -0
- package/dist/enums/index.d.ts +8 -0
- package/dist/enums/loader-view.d.ts +11 -0
- package/dist/enums/orientation-mode.d.ts +4 -0
- package/dist/enums/semantic-color.d.ts +7 -0
- package/dist/enums/tooltip-container.d.ts +7 -0
- package/dist/hooks/index.d.ts +15 -0
- package/dist/hooks/use-auto-close/use-auto-close.d.ts +6 -0
- package/dist/hooks/use-click-outside/use-click-outside.d.ts +8 -0
- package/dist/hooks/use-container-dimensions/use-container-dimensions.d.ts +8 -0
- package/dist/hooks/use-debounce/use-debounce.d.ts +1 -0
- package/dist/hooks/use-element-ids/use-element-ids.d.ts +5 -0
- package/dist/hooks/use-is-hovered/use-is-hovered.d.ts +2 -0
- package/dist/hooks/use-is-mounted/use-is-mounted.d.ts +1 -0
- package/dist/hooks/use-is-overflow/use-is-overflow.d.ts +6 -0
- package/dist/hooks/use-key-press/use-key-press.d.ts +8 -0
- package/dist/hooks/use-modal-focus-trap/use-modal-focus-trap.d.ts +7 -0
- package/dist/hooks/use-remaining-timer/use-remaining-timer.d.ts +9 -0
- package/dist/hooks/use-reset-form-input/use-reset-form-input.d.ts +1 -0
- package/dist/hooks/use-theme/use-theme.d.ts +4 -0
- package/dist/hooks/use-tooltip-position/use-tooltip-position.d.ts +12 -0
- package/dist/hooks/use-window-dimensions/use-window-dimensions.d.ts +2 -0
- package/dist/index.d.ts +2 -917
- package/dist/index.es.js +42 -41
- package/dist/main.d.ts +8 -0
- package/dist/styles/main.css +1 -1
- package/dist/types/_common.d.ts +35 -0
- package/dist/types/accordion.d.ts +8 -0
- package/dist/types/alert.d.ts +11 -0
- package/dist/types/breadcrumbs.d.ts +10 -0
- package/dist/types/button.d.ts +11 -0
- package/dist/types/checkbox.d.ts +9 -0
- package/dist/types/dialog.d.ts +9 -0
- package/dist/types/editable-text.d.ts +12 -0
- package/dist/types/form.d.ts +18 -0
- package/dist/types/grid.d.ts +27 -0
- package/dist/types/header.d.ts +9 -0
- package/dist/types/image.d.ts +21 -0
- package/dist/types/index.d.ts +23 -0
- package/dist/types/link.d.ts +9 -0
- package/dist/types/loader.d.ts +6 -0
- package/dist/types/menu.d.ts +17 -0
- package/dist/types/multi-select.d.ts +7 -0
- package/dist/types/numeric.d.ts +19 -0
- package/dist/types/search.d.ts +16 -0
- package/dist/types/select.d.ts +7 -0
- package/dist/types/switch.d.ts +13 -0
- package/dist/types/tabs.d.ts +23 -0
- package/dist/types/text.d.ts +17 -0
- package/dist/types/tooltip.d.ts +11 -0
- package/dist/utils/get-class-name.d.ts +5 -0
- package/dist/utils/handle-dropdown-list-key-press.d.ts +7 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/move-focus-on-element-by-id.d.ts +1 -0
- package/package.json +22 -18
|
@@ -2,14 +2,14 @@ import './TabContent.css';/* empty css */
|
|
|
2
2
|
import { jsx as e } from "react/jsx-runtime";
|
|
3
3
|
//#region src/components/organisms/tabs/content/TabContent.tsx
|
|
4
4
|
var t = ({ tabs: t, selectedTabId: n, extendable: r, extendedTabContent: i }) => {
|
|
5
|
-
let a = t.find((e) => e.id === n)?.content
|
|
5
|
+
let a = t.find((e) => e.id === n)?.content;
|
|
6
6
|
return /* @__PURE__ */ e("div", {
|
|
7
7
|
role: "tabpanel",
|
|
8
8
|
"data-testid": "tab-content",
|
|
9
9
|
"aria-labelledby": n,
|
|
10
|
-
id:
|
|
10
|
+
id: `tabpanel_${n}`,
|
|
11
11
|
className: "cl-tab-content",
|
|
12
|
-
children:
|
|
12
|
+
children: r && !a ? i : a
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
15
|
//#endregion
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
tabId: string;
|
|
4
|
+
isEditMode: boolean;
|
|
5
|
+
editValue: string;
|
|
6
|
+
onInputChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
+
onInputBlur: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
8
|
+
onInputKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
9
|
+
onSave: () => void;
|
|
10
|
+
onCancel: () => void;
|
|
11
|
+
cancelButtonId: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const TabEditInput: FC<Props>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OrientationMode } from '../../../../enums';
|
|
2
|
+
import { ChopLogicTabItem } from '../../../../types';
|
|
3
|
+
import { FC } from 'react';
|
|
4
|
+
type Props = {
|
|
5
|
+
tabs: ChopLogicTabItem[];
|
|
6
|
+
tabIds: string[];
|
|
7
|
+
onTabSelect: (id: string) => void;
|
|
8
|
+
selectedTabId: string;
|
|
9
|
+
tabPanelIds: string[];
|
|
10
|
+
mode: OrientationMode;
|
|
11
|
+
onTabTitleChange?: (tabId: string, newTitle: string) => void;
|
|
12
|
+
stretched?: boolean;
|
|
13
|
+
editable?: boolean;
|
|
14
|
+
extendable?: boolean;
|
|
15
|
+
onTabAdd?: () => void;
|
|
16
|
+
onTabDelete?: (id: string) => void;
|
|
17
|
+
};
|
|
18
|
+
export declare const TabList: FC<Props>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
export declare enum IconName {
|
|
2
|
+
Activity = "chop-icon__activity",
|
|
3
|
+
Airplay = "chop-icon__airplay",
|
|
4
|
+
AlertCircle = "chop-icon__alert-circle",
|
|
5
|
+
AlertOctagon = "chop-icon__alert-octagon",
|
|
6
|
+
AlertTriangle = "chop-icon__alert-triangle",
|
|
7
|
+
AlignCenter = "chop-icon__align-center",
|
|
8
|
+
AlignJustify = "chop-icon__align-justify",
|
|
9
|
+
AlignLeft = "chop-icon__align-left",
|
|
10
|
+
AlignRight = "chop-icon__align-right",
|
|
11
|
+
Anchor = "chop-icon__anchor",
|
|
12
|
+
Aperture = "chop-icon__aperture",
|
|
13
|
+
Archive = "chop-icon__archive",
|
|
14
|
+
ArrowDown = "chop-icon__arrow-down",
|
|
15
|
+
ArrowDownCircle = "chop-icon__arrow-down-circle",
|
|
16
|
+
ArrowDownLeft = "chop-icon__arrow-down-left",
|
|
17
|
+
ArrowDownRight = "chop-icon__arrow-down-right",
|
|
18
|
+
ArrowLeft = "chop-icon__arrow-left",
|
|
19
|
+
ArrowLeftCircle = "chop-icon__arrow-left-circle",
|
|
20
|
+
ArrowRight = "chop-icon__arrow-right",
|
|
21
|
+
ArrowRightCircle = "chop-icon__arrow-right-circle",
|
|
22
|
+
ArrowUp = "chop-icon__arrow-up",
|
|
23
|
+
ArrowUpCircle = "chop-icon__arrow-up-circle",
|
|
24
|
+
ArrowUpLeft = "chop-icon__arrow-up-left",
|
|
25
|
+
ArrowUpRight = "chop-icon__arrow-up-right",
|
|
26
|
+
AtSign = "chop-icon__at-sign",
|
|
27
|
+
Award = "chop-icon__award",
|
|
28
|
+
BarChart = "chop-icon__bar-chart",
|
|
29
|
+
BarChart2 = "chop-icon__bar-chart-2",
|
|
30
|
+
Battery = "chop-icon__battery",
|
|
31
|
+
BatteryCharging = "chop-icon__battery-charging",
|
|
32
|
+
Bell = "chop-icon__bell",
|
|
33
|
+
BellOff = "chop-icon__bell-off",
|
|
34
|
+
Bluetooth = "chop-icon__bluetooth",
|
|
35
|
+
Bold = "chop-icon__bold",
|
|
36
|
+
Book = "chop-icon__book",
|
|
37
|
+
BookOpen = "chop-icon__book-open",
|
|
38
|
+
Bookmark = "chop-icon__bookmark",
|
|
39
|
+
Box = "chop-icon__box",
|
|
40
|
+
Briefcase = "chop-icon__briefcase",
|
|
41
|
+
Calendar = "chop-icon__calendar",
|
|
42
|
+
Camera = "chop-icon__camera",
|
|
43
|
+
CameraOff = "chop-icon__camera-off",
|
|
44
|
+
Cast = "chop-icon__cast",
|
|
45
|
+
Check = "chop-icon__check",
|
|
46
|
+
CheckCircle = "chop-icon__check-circle",
|
|
47
|
+
CheckSquare = "chop-icon__check-square",
|
|
48
|
+
ChevronDown = "chop-icon__chevron-down",
|
|
49
|
+
ChevronLeft = "chop-icon__chevron-left",
|
|
50
|
+
ChevronRight = "chop-icon__chevron-right",
|
|
51
|
+
ChevronUp = "chop-icon__chevron-up",
|
|
52
|
+
ChevronsDown = "chop-icon__chevrons-down",
|
|
53
|
+
ChevronsLeft = "chop-icon__chevrons-left",
|
|
54
|
+
ChevronsRight = "chop-icon__chevrons-right",
|
|
55
|
+
ChevronsUp = "chop-icon__chevrons-up",
|
|
56
|
+
Chrome = "chop-icon__chrome",
|
|
57
|
+
Circle = "chop-icon__circle",
|
|
58
|
+
Clipboard = "chop-icon__clipboard",
|
|
59
|
+
Clock = "chop-icon__clock",
|
|
60
|
+
Cloud = "chop-icon__cloud",
|
|
61
|
+
CloudDrizzle = "chop-icon__cloud-drizzle",
|
|
62
|
+
CloudLightning = "chop-icon__cloud-lightning",
|
|
63
|
+
CloudOff = "chop-icon__cloud-off",
|
|
64
|
+
CloudRain = "chop-icon__cloud-rain",
|
|
65
|
+
CloudSnow = "chop-icon__cloud-snow",
|
|
66
|
+
Code = "chop-icon__code",
|
|
67
|
+
Codepen = "chop-icon__codepen",
|
|
68
|
+
Codesandbox = "chop-icon__codesandbox",
|
|
69
|
+
Coffee = "chop-icon__coffee",
|
|
70
|
+
Columns = "chop-icon__columns",
|
|
71
|
+
Command = "chop-icon__command",
|
|
72
|
+
Compass = "chop-icon__compass",
|
|
73
|
+
Copy = "chop-icon__copy",
|
|
74
|
+
CornerDownLeft = "chop-icon__corner-down-left",
|
|
75
|
+
CornerDownRight = "chop-icon__corner-down-right",
|
|
76
|
+
CornerLeftDown = "chop-icon__corner-left-down",
|
|
77
|
+
CornerLeftUp = "chop-icon__corner-left-up",
|
|
78
|
+
CornerRightDown = "chop-icon__corner-right-down",
|
|
79
|
+
CornerRightUp = "chop-icon__corner-right-up",
|
|
80
|
+
CornerUpLeft = "chop-icon__corner-up-left",
|
|
81
|
+
CornerUpRight = "chop-icon__corner-up-right",
|
|
82
|
+
Cpu = "chop-icon__cpu",
|
|
83
|
+
CreditCard = "chop-icon__credit-card",
|
|
84
|
+
Crop = "chop-icon__crop",
|
|
85
|
+
Crosshair = "chop-icon__crosshair",
|
|
86
|
+
Database = "chop-icon__database",
|
|
87
|
+
Delete = "chop-icon__delete",
|
|
88
|
+
Disc = "chop-icon__disc",
|
|
89
|
+
DollarSign = "chop-icon__dollar-sign",
|
|
90
|
+
Download = "chop-icon__download",
|
|
91
|
+
DownloadCloud = "chop-icon__download-cloud",
|
|
92
|
+
Droplet = "chop-icon__droplet",
|
|
93
|
+
Edit = "chop-icon__edit",
|
|
94
|
+
Edit2 = "chop-icon__edit-2",
|
|
95
|
+
Edit3 = "chop-icon__edit-3",
|
|
96
|
+
ExternalLink = "chop-icon__external-link",
|
|
97
|
+
Eye = "chop-icon__eye",
|
|
98
|
+
EyeOff = "chop-icon__eye-off",
|
|
99
|
+
Facebook = "chop-icon__facebook",
|
|
100
|
+
FastForward = "chop-icon__fast-forward",
|
|
101
|
+
Feather = "chop-icon__feather",
|
|
102
|
+
Figma = "chop-icon__figma",
|
|
103
|
+
File = "chop-icon__file",
|
|
104
|
+
FileMinus = "chop-icon__file-minus",
|
|
105
|
+
FilePlus = "chop-icon__file-plus",
|
|
106
|
+
FileText = "chop-icon__file-text",
|
|
107
|
+
Film = "chop-icon__film",
|
|
108
|
+
Filter = "chop-icon__filter",
|
|
109
|
+
Flag = "chop-icon__flag",
|
|
110
|
+
Folder = "chop-icon__folder",
|
|
111
|
+
FolderMinus = "chop-icon__folder-minus",
|
|
112
|
+
FolderPlus = "chop-icon__folder-plus",
|
|
113
|
+
Framer = "chop-icon__framer",
|
|
114
|
+
Frown = "chop-icon__frown",
|
|
115
|
+
Gift = "chop-icon__gift",
|
|
116
|
+
GitBranch = "chop-icon__git-branch",
|
|
117
|
+
GitCommit = "chop-icon__git-commit",
|
|
118
|
+
GitMerge = "chop-icon__git-merge",
|
|
119
|
+
GitPullRequest = "chop-icon__git-pull-request",
|
|
120
|
+
Github = "chop-icon__github",
|
|
121
|
+
Gitlab = "chop-icon__gitlab",
|
|
122
|
+
Globe = "chop-icon__globe",
|
|
123
|
+
Grid = "chop-icon__grid",
|
|
124
|
+
HardDrive = "chop-icon__hard-drive",
|
|
125
|
+
Hash = "chop-icon__hash",
|
|
126
|
+
Headphones = "chop-icon__headphones",
|
|
127
|
+
Heart = "chop-icon__heart",
|
|
128
|
+
HelpCircle = "chop-icon__help-circle",
|
|
129
|
+
Hexagon = "chop-icon__hexagon",
|
|
130
|
+
Home = "chop-icon__home",
|
|
131
|
+
Image = "chop-icon__image",
|
|
132
|
+
Inbox = "chop-icon__inbox",
|
|
133
|
+
Info = "chop-icon__info",
|
|
134
|
+
Instagram = "chop-icon__instagram",
|
|
135
|
+
Italic = "chop-icon__italic",
|
|
136
|
+
Key = "chop-icon__key",
|
|
137
|
+
Layers = "chop-icon__layers",
|
|
138
|
+
Layout = "chop-icon__layout",
|
|
139
|
+
LifeBuoy = "chop-icon__life-buoy",
|
|
140
|
+
Link = "chop-icon__link",
|
|
141
|
+
Link2 = "chop-icon__link-2",
|
|
142
|
+
Linkedin = "chop-icon__linkedin",
|
|
143
|
+
List = "chop-icon__list",
|
|
144
|
+
Loader = "chop-icon__loader",
|
|
145
|
+
Lock = "chop-icon__lock",
|
|
146
|
+
LogIn = "chop-icon__log-in",
|
|
147
|
+
LogOut = "chop-icon__log-out",
|
|
148
|
+
Mail = "chop-icon__mail",
|
|
149
|
+
Map = "chop-icon__map",
|
|
150
|
+
MapPin = "chop-icon__map-pin",
|
|
151
|
+
Maximize = "chop-icon__maximize",
|
|
152
|
+
Maximize2 = "chop-icon__maximize-2",
|
|
153
|
+
Meh = "chop-icon__meh",
|
|
154
|
+
Menu = "chop-icon__menu",
|
|
155
|
+
MessageCircle = "chop-icon__message-circle",
|
|
156
|
+
MessageSquare = "chop-icon__message-square",
|
|
157
|
+
Mic = "chop-icon__mic",
|
|
158
|
+
MicOff = "chop-icon__mic-off",
|
|
159
|
+
Minimize = "chop-icon__minimize",
|
|
160
|
+
Minimize2 = "chop-icon__minimize-2",
|
|
161
|
+
Minus = "chop-icon__minus",
|
|
162
|
+
MinusCircle = "chop-icon__minus-circle",
|
|
163
|
+
MinusSquare = "chop-icon__minus-square",
|
|
164
|
+
Monitor = "chop-icon__monitor",
|
|
165
|
+
Moon = "chop-icon__moon",
|
|
166
|
+
MoreHorizontal = "chop-icon__more-horizontal",
|
|
167
|
+
MoreVertical = "chop-icon__more-vertical",
|
|
168
|
+
MousePointer = "chop-icon__mouse-pointer",
|
|
169
|
+
Move = "chop-icon__move",
|
|
170
|
+
Music = "chop-icon__music",
|
|
171
|
+
Navigation = "chop-icon__navigation",
|
|
172
|
+
Navigation2 = "chop-icon__navigation-2",
|
|
173
|
+
Octagon = "chop-icon__octagon",
|
|
174
|
+
Package = "chop-icon__package",
|
|
175
|
+
Paperclip = "chop-icon__paperclip",
|
|
176
|
+
Pause = "chop-icon__pause",
|
|
177
|
+
PauseCircle = "chop-icon__pause-circle",
|
|
178
|
+
PenTool = "chop-icon__pen-tool",
|
|
179
|
+
Percent = "chop-icon__percent",
|
|
180
|
+
Phone = "chop-icon__phone",
|
|
181
|
+
PhoneCall = "chop-icon__phone-call",
|
|
182
|
+
PhoneForwarded = "chop-icon__phone-forwarded",
|
|
183
|
+
PhoneIncoming = "chop-icon__phone-incoming",
|
|
184
|
+
PhoneMissed = "chop-icon__phone-missed",
|
|
185
|
+
PhoneOff = "chop-icon__phone-off",
|
|
186
|
+
PhoneOutgoing = "chop-icon__phone-outgoing",
|
|
187
|
+
PieChart = "chop-icon__pie-chart",
|
|
188
|
+
Play = "chop-icon__play",
|
|
189
|
+
PlayCircle = "chop-icon__play-circle",
|
|
190
|
+
Plus = "chop-icon__plus",
|
|
191
|
+
PlusCircle = "chop-icon__plus-circle",
|
|
192
|
+
PlusSquare = "chop-icon__plus-square",
|
|
193
|
+
Pocket = "chop-icon__pocket",
|
|
194
|
+
Power = "chop-icon__power",
|
|
195
|
+
Printer = "chop-icon__printer",
|
|
196
|
+
Radio = "chop-icon__radio",
|
|
197
|
+
RefreshCcw = "chop-icon__refresh-ccw",
|
|
198
|
+
RefreshCw = "chop-icon__refresh-cw",
|
|
199
|
+
Repeat = "chop-icon__repeat",
|
|
200
|
+
Rewind = "chop-icon__rewind",
|
|
201
|
+
RotateCcw = "chop-icon__rotate-ccw",
|
|
202
|
+
RotateCw = "chop-icon__rotate-cw",
|
|
203
|
+
Rss = "chop-icon__rss",
|
|
204
|
+
Save = "chop-icon__save",
|
|
205
|
+
Scissors = "chop-icon__scissors",
|
|
206
|
+
Search = "chop-icon__search",
|
|
207
|
+
Send = "chop-icon__send",
|
|
208
|
+
Server = "chop-icon__server",
|
|
209
|
+
Settings = "chop-icon__settings",
|
|
210
|
+
Share = "chop-icon__share",
|
|
211
|
+
Share2 = "chop-icon__share-2",
|
|
212
|
+
Shield = "chop-icon__shield",
|
|
213
|
+
ShieldOff = "chop-icon__shield-off",
|
|
214
|
+
ShoppingBag = "chop-icon__shopping-bag",
|
|
215
|
+
ShoppingCart = "chop-icon__shopping-cart",
|
|
216
|
+
Shuffle = "chop-icon__shuffle",
|
|
217
|
+
Sidebar = "chop-icon__sidebar",
|
|
218
|
+
SkipBack = "chop-icon__skip-back",
|
|
219
|
+
SkipForward = "chop-icon__skip-forward",
|
|
220
|
+
Slack = "chop-icon__slack",
|
|
221
|
+
Slash = "chop-icon__slash",
|
|
222
|
+
Sliders = "chop-icon__sliders",
|
|
223
|
+
Smartphone = "chop-icon__smartphone",
|
|
224
|
+
Smile = "chop-icon__smile",
|
|
225
|
+
Speaker = "chop-icon__speaker",
|
|
226
|
+
Square = "chop-icon__square",
|
|
227
|
+
Star = "chop-icon__star",
|
|
228
|
+
StopCircle = "chop-icon__stop-circle",
|
|
229
|
+
Sun = "chop-icon__sun",
|
|
230
|
+
Sunrise = "chop-icon__sunrise",
|
|
231
|
+
Sunset = "chop-icon__sunset",
|
|
232
|
+
Tablet = "chop-icon__tablet",
|
|
233
|
+
Tag = "chop-icon__tag",
|
|
234
|
+
Target = "chop-icon__target",
|
|
235
|
+
Terminal = "chop-icon__terminal",
|
|
236
|
+
Thermometer = "chop-icon__thermometer",
|
|
237
|
+
ThumbsDown = "chop-icon__thumbs-down",
|
|
238
|
+
ThumbsUp = "chop-icon__thumbs-up",
|
|
239
|
+
ToggleLeft = "chop-icon__toggle-left",
|
|
240
|
+
ToggleRight = "chop-icon__toggle-right",
|
|
241
|
+
Tool = "chop-icon__tool",
|
|
242
|
+
Trash = "chop-icon__trash",
|
|
243
|
+
Trash2 = "chop-icon__trash-2",
|
|
244
|
+
Trello = "chop-icon__trello",
|
|
245
|
+
TrendingDown = "chop-icon__trending-down",
|
|
246
|
+
TrendingUp = "chop-icon__trending-up",
|
|
247
|
+
Triangle = "chop-icon__triangle",
|
|
248
|
+
Truck = "chop-icon__truck",
|
|
249
|
+
Tv = "chop-icon__tv",
|
|
250
|
+
Twitch = "chop-icon__twitch",
|
|
251
|
+
Twitter = "chop-icon__twitter",
|
|
252
|
+
Type = "chop-icon__type",
|
|
253
|
+
Umbrella = "chop-icon__umbrella",
|
|
254
|
+
Underline = "chop-icon__underline",
|
|
255
|
+
Unlock = "chop-icon__unlock",
|
|
256
|
+
Upload = "chop-icon__upload",
|
|
257
|
+
UploadCloud = "chop-icon__upload-cloud",
|
|
258
|
+
User = "chop-icon__user",
|
|
259
|
+
UserCheck = "chop-icon__user-check",
|
|
260
|
+
UserMinus = "chop-icon__user-minus",
|
|
261
|
+
UserPlus = "chop-icon__user-plus",
|
|
262
|
+
UserX = "chop-icon__user-x",
|
|
263
|
+
Users = "chop-icon__users",
|
|
264
|
+
Video = "chop-icon__video",
|
|
265
|
+
VideoOff = "chop-icon__video-off",
|
|
266
|
+
Voicemail = "chop-icon__voicemail",
|
|
267
|
+
Volume = "chop-icon__volume",
|
|
268
|
+
Volume1 = "chop-icon__volume-1",
|
|
269
|
+
Volume2 = "chop-icon__volume-2",
|
|
270
|
+
VolumeX = "chop-icon__volume-x",
|
|
271
|
+
Watch = "chop-icon__watch",
|
|
272
|
+
Wifi = "chop-icon__wifi",
|
|
273
|
+
WifiOff = "chop-icon__wifi-off",
|
|
274
|
+
Wind = "chop-icon__wind",
|
|
275
|
+
X = "chop-icon__x",
|
|
276
|
+
XCircle = "chop-icon__x-circle",
|
|
277
|
+
XOctagon = "chop-icon__x-octagon",
|
|
278
|
+
XSquare = "chop-icon__x-square",
|
|
279
|
+
Youtube = "chop-icon__youtube",
|
|
280
|
+
Zap = "chop-icon__zap",
|
|
281
|
+
ZapOff = "chop-icon__zap-off",
|
|
282
|
+
ZoomIn = "chop-icon__zoom-in",
|
|
283
|
+
ZoomOut = "chop-icon__zoom-out"
|
|
284
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { AlertMode } from './alert-mode';
|
|
2
|
+
export { ButtonView } from './button-view';
|
|
3
|
+
export { ElementSize } from './element-size';
|
|
4
|
+
export { IconName } from './icon-name';
|
|
5
|
+
export { LoaderView } from './loader-view';
|
|
6
|
+
export { OrientationMode } from './orientation-mode';
|
|
7
|
+
export { SemanticColor } from './semantic-color';
|
|
8
|
+
export { TooltipContainer } from './tooltip-container';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { useAutoClose } from './use-auto-close/use-auto-close';
|
|
2
|
+
export { useClickOutside } from './use-click-outside/use-click-outside';
|
|
3
|
+
export { useContainerDimensions } from './use-container-dimensions/use-container-dimensions';
|
|
4
|
+
export { useDebounce } from './use-debounce/use-debounce';
|
|
5
|
+
export { useElementIds } from './use-element-ids/use-element-ids';
|
|
6
|
+
export { useIsHovered } from './use-is-hovered/use-is-hovered';
|
|
7
|
+
export { useIsMounted } from './use-is-mounted/use-is-mounted';
|
|
8
|
+
export { useIsOverflow } from './use-is-overflow/use-is-overflow';
|
|
9
|
+
export { useKeyPress } from './use-key-press/use-key-press';
|
|
10
|
+
export { useModalFocusTrap } from './use-modal-focus-trap/use-modal-focus-trap';
|
|
11
|
+
export { useRemainingTimer } from './use-remaining-timer/use-remaining-timer';
|
|
12
|
+
export { useResetFormInput } from './use-reset-form-input/use-reset-form-input';
|
|
13
|
+
export { useTheme } from './use-theme/use-theme';
|
|
14
|
+
export { useTooltipPosition } from './use-tooltip-position/use-tooltip-position';
|
|
15
|
+
export { useWindowDimensions } from './use-window-dimensions/use-window-dimensions';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
type UseClickOutsideParams = {
|
|
3
|
+
ref: RefObject<HTMLElement | null>;
|
|
4
|
+
onClickOutsideHandler: () => void;
|
|
5
|
+
dependentRef?: RefObject<HTMLElement | null>;
|
|
6
|
+
};
|
|
7
|
+
export declare const useClickOutside: ({ ref, onClickOutsideHandler, dependentRef, }: UseClickOutsideParams) => void;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Dimensions } from '../../types';
|
|
2
|
+
import { RefObject } from 'react';
|
|
3
|
+
type useContainerDimensionsParams = {
|
|
4
|
+
ref: RefObject<HTMLElement | null>;
|
|
5
|
+
isVisible?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare const useContainerDimensions: ({ ref, isVisible, }: useContainerDimensionsParams) => Dimensions;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useDebounce: <T>(value: T, delay: number) => T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useIsMounted: (isOpened: boolean, delay?: number) => boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type UseRemainingTimerProps = {
|
|
2
|
+
isOpened: boolean;
|
|
3
|
+
isHovered: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
autoClose?: boolean;
|
|
6
|
+
autoCloseDelay?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare function useRemainingTimer({ isOpened, isHovered, onClose, autoClose, autoCloseDelay, }: UseRemainingTimerProps): number;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useResetFormInput: (onReset: () => void) => void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
type useTooltipPositionParams = {
|
|
3
|
+
wrapperRef: RefObject<HTMLElement | null>;
|
|
4
|
+
tooltipRef: RefObject<HTMLElement | null>;
|
|
5
|
+
isOpened: boolean;
|
|
6
|
+
spacing?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const useTooltipPosition: ({ wrapperRef, tooltipRef, isOpened, spacing, }: useTooltipPositionParams) => {
|
|
9
|
+
top: number;
|
|
10
|
+
left: number;
|
|
11
|
+
};
|
|
12
|
+
export {};
|