chop-logic-components 3.7.3 → 4.0.0
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 +4 -4
- package/dist/components/atoms/button/Button.css +1 -0
- package/dist/components/atoms/button/Button.js +66 -0
- package/dist/components/atoms/button/icon-button/IconButton.css +1 -0
- package/dist/components/atoms/button/icon-button/IconButton.js +15 -0
- package/dist/components/atoms/button/icon-button/index.js +3 -0
- package/dist/components/atoms/button/index.js +3 -0
- package/dist/components/atoms/button/inner-button/InnerButton.css +1 -0
- package/dist/components/atoms/button/inner-button/InnerButton.js +28 -0
- package/dist/components/atoms/button/inner-button/index.js +3 -0
- package/dist/components/atoms/button/primary-button/PrimaryButton.css +1 -0
- package/dist/components/atoms/button/primary-button/PrimaryButton.js +18 -0
- package/dist/components/atoms/button/primary-button/index.js +3 -0
- package/dist/components/atoms/button/secondary-button/SecondaryButton.css +1 -0
- package/dist/components/atoms/button/secondary-button/SecondaryButton.js +18 -0
- package/dist/components/atoms/button/secondary-button/index.js +3 -0
- package/dist/components/atoms/editable-text/EditView.js +37 -0
- package/dist/components/atoms/editable-text/EditableText.css +1 -0
- package/dist/components/atoms/editable-text/EditableText.js +71 -0
- package/dist/components/atoms/editable-text/ReadView.js +25 -0
- package/dist/components/atoms/editable-text/index.js +3 -0
- package/dist/components/atoms/editable-text/useEditModeState.js +17 -0
- package/dist/components/atoms/editable-text/useInputFocus.js +9 -0
- package/dist/components/atoms/editable-text/useValueState.js +21 -0
- package/dist/components/atoms/error-message/ErrorMessage.css +1 -0
- package/dist/components/atoms/error-message/ErrorMessage.js +30 -0
- package/dist/components/atoms/error-message/index.js +3 -0
- package/dist/components/atoms/header/Header.css +1 -0
- package/dist/components/atoms/header/Header.js +22 -0
- package/dist/components/atoms/header/index.js +3 -0
- package/dist/components/atoms/icon/Icon.css +1 -0
- package/dist/components/atoms/icon/Icon.js +31 -0
- package/dist/components/atoms/icon/index.js +3 -0
- package/dist/components/atoms/image/BasicImage.js +27 -0
- package/dist/components/atoms/image/FallBackImage.js +10 -0
- package/dist/components/atoms/image/Image.css +1 -0
- package/dist/components/atoms/image/Image.js +24 -0
- package/dist/components/atoms/image/ResponsivePicture.js +17 -0
- package/dist/components/atoms/image/index.js +3 -0
- package/dist/components/atoms/input/Input.css +1 -0
- package/dist/components/atoms/input/Input.js +10 -0
- package/dist/components/atoms/input/index.js +3 -0
- package/dist/components/atoms/label/Label.css +1 -0
- package/dist/components/atoms/label/Label.js +30 -0
- package/dist/components/atoms/label/index.js +3 -0
- package/dist/components/atoms/link/Link.css +1 -0
- package/dist/components/atoms/link/Link.js +39 -0
- package/dist/components/atoms/link/index.js +3 -0
- package/dist/components/atoms/portal/Portal.js +11 -0
- package/dist/components/atoms/portal/index.js +2 -0
- package/dist/components/atoms/tooltip/Tooltip.controller.js +35 -0
- package/dist/components/atoms/tooltip/Tooltip.css +1 -0
- package/dist/components/atoms/tooltip/Tooltip.js +70 -0
- package/dist/components/atoms/tooltip/index.js +3 -0
- package/dist/components/contexts/form/FormContext.js +5 -0
- package/dist/components/contexts/theme/ThemeContext.js +11 -0
- package/dist/components/contexts/theme/ThemeProvider.js +21 -0
- package/dist/components/hocs/with-figure-caption/Figure.css +1 -0
- package/dist/components/hocs/with-figure-caption/index.js +2 -0
- package/dist/components/hocs/with-figure-caption/with-figure-caption.js +11 -0
- package/dist/components/hocs/with-tooltip/index.js +2 -0
- package/dist/components/hocs/with-tooltip/with-tooltip.js +8 -0
- package/dist/components/molecules/accordion/Accordion.css +1 -0
- package/dist/components/molecules/accordion/Accordion.js +11 -0
- package/dist/components/molecules/accordion/AccordionItem.css +1 -0
- package/dist/components/molecules/accordion/AccordionItem.js +24 -0
- package/dist/components/molecules/accordion/index.js +3 -0
- package/dist/components/molecules/alert/Alert.css +1 -0
- package/dist/components/molecules/alert/Alert.helpers.js +41 -0
- package/dist/components/molecules/alert/Alert.js +59 -0
- package/dist/components/molecules/alert/AlertProgressBar.js +13 -0
- package/dist/components/molecules/alert/index.js +3 -0
- package/dist/components/molecules/breadcrumbs/BreadcrumbItem.js +27 -0
- package/dist/components/molecules/breadcrumbs/BreadcrumbList.js +6 -0
- package/dist/components/molecules/breadcrumbs/Breadcrumbs.css +1 -0
- package/dist/components/molecules/breadcrumbs/Breadcrumbs.js +31 -0
- package/dist/components/molecules/breadcrumbs/index.js +3 -0
- package/dist/components/molecules/checkbox/Checkbox.controller.js +25 -0
- package/dist/components/molecules/checkbox/Checkbox.css +1 -0
- package/dist/components/molecules/checkbox/Checkbox.helpers.js +10 -0
- package/dist/components/molecules/checkbox/Checkbox.js +7 -0
- package/dist/components/molecules/checkbox/CheckboxStateful.js +61 -0
- package/dist/components/molecules/checkbox/CheckboxStateless.js +59 -0
- package/dist/components/molecules/checkbox/index.js +3 -0
- package/dist/components/molecules/multi-select/MultiSelect.Combobox.js +47 -0
- package/dist/components/molecules/multi-select/MultiSelect.Dropdown.js +31 -0
- package/dist/components/molecules/multi-select/MultiSelect.controller.js +37 -0
- package/dist/components/molecules/multi-select/MultiSelect.helpers.js +22 -0
- package/dist/components/molecules/multi-select/MultiSelect.js +61 -0
- package/dist/components/molecules/multi-select/MultiSelectComboboxSelectedValues.js +8 -0
- package/dist/components/molecules/multi-select/Option.js +40 -0
- package/dist/components/molecules/multi-select/index.js +2 -0
- package/dist/components/molecules/numeric-input/NumericInput.controller.js +45 -0
- package/dist/components/molecules/numeric-input/NumericInput.css +1 -0
- package/dist/components/molecules/numeric-input/NumericInput.helpers.js +20 -0
- package/dist/components/molecules/numeric-input/NumericInput.js +7 -0
- package/dist/components/molecules/numeric-input/NumericInputStateful.js +108 -0
- package/dist/components/molecules/numeric-input/NumericInputStateless.js +96 -0
- package/dist/components/molecules/numeric-input/index.js +3 -0
- package/dist/components/molecules/search/Search.controller.js +42 -0
- package/dist/components/molecules/search/Search.css +1 -0
- package/dist/components/molecules/search/Search.js +112 -0
- package/dist/components/molecules/search/index.js +3 -0
- package/dist/components/molecules/select/Select.controller.js +32 -0
- package/dist/components/molecules/select/Select.css +1 -0
- package/dist/components/molecules/select/Select.helpers.js +16 -0
- package/dist/components/molecules/select/Select.js +64 -0
- package/dist/components/molecules/select/combobox/Combobox.css +1 -0
- package/dist/components/molecules/select/combobox/Combobox.js +46 -0
- package/dist/components/molecules/select/combobox/index.js +3 -0
- package/dist/components/molecules/select/dropdown/Dropdown.css +1 -0
- package/dist/components/molecules/select/dropdown/Dropdown.js +46 -0
- package/dist/components/molecules/select/dropdown/index.js +3 -0
- package/dist/components/molecules/select/index.js +3 -0
- package/dist/components/molecules/select/option/Option.css +1 -0
- package/dist/components/molecules/select/option/Option.js +38 -0
- package/dist/components/molecules/select/option/index.js +3 -0
- package/dist/components/molecules/switch/Switch.controller.js +33 -0
- package/dist/components/molecules/switch/Switch.css +1 -0
- package/dist/components/molecules/switch/Switch.helpers.js +10 -0
- package/dist/components/molecules/switch/Switch.js +68 -0
- package/dist/components/molecules/switch/index.js +3 -0
- package/dist/components/molecules/text-input/TextInput.controller.js +36 -0
- package/dist/components/molecules/text-input/TextInput.css +1 -0
- package/dist/components/molecules/text-input/TextInput.helpers.js +18 -0
- package/dist/components/molecules/text-input/TextInput.js +7 -0
- package/dist/components/molecules/text-input/TextInputButtons.js +37 -0
- package/dist/components/molecules/text-input/TextInputStateful.js +92 -0
- package/dist/components/molecules/text-input/TextInputStateless.js +89 -0
- package/dist/components/molecules/text-input/index.js +3 -0
- package/dist/components/organisms/dialog/Dialog.css +1 -0
- package/dist/components/organisms/dialog/Dialog.js +32 -0
- package/dist/components/organisms/dialog/index.js +3 -0
- package/dist/components/organisms/form/Form.controller.js +29 -0
- package/dist/components/organisms/form/Form.css +1 -0
- package/dist/components/organisms/form/Form.helpers.js +14 -0
- package/dist/components/organisms/form/Form.js +48 -0
- package/dist/components/organisms/form/index.js +3 -0
- package/dist/components/organisms/grid/Grid.controller.js +34 -0
- package/dist/components/organisms/grid/Grid.css +1 -0
- package/dist/components/organisms/grid/Grid.helpers.js +15 -0
- package/dist/components/organisms/grid/Grid.js +60 -0
- package/dist/components/organisms/grid/body/GridBody.css +1 -0
- package/dist/components/organisms/grid/body/GridBody.js +31 -0
- package/dist/components/organisms/grid/checkbox/GridCheckbox.css +1 -0
- package/dist/components/organisms/grid/checkbox/GridCheckbox.js +52 -0
- package/dist/components/organisms/grid/column-group/GridColumnGroup.css +1 -0
- package/dist/components/organisms/grid/column-group/GridColumnGroup.js +26 -0
- package/dist/components/organisms/grid/data-cell/GridDataCell.js +5 -0
- package/dist/components/organisms/grid/grid-row/GridRow.css +1 -0
- package/dist/components/organisms/grid/grid-row/GridRow.js +35 -0
- package/dist/components/organisms/grid/grid-row/index.js +3 -0
- package/dist/components/organisms/grid/head/GridHead.css +1 -0
- package/dist/components/organisms/grid/head/GridHead.js +35 -0
- package/dist/components/organisms/grid/header-cell/HeaderCell.js +8 -0
- package/dist/components/organisms/grid/header-cell/index.js +2 -0
- package/dist/components/organisms/grid/index.js +3 -0
- package/dist/components/organisms/grid/select-all-grid-rows-cell/SelectAllGridRowsCell.js +24 -0
- package/dist/components/organisms/grid/select-all-grid-rows-cell/index.js +2 -0
- package/dist/components/organisms/grid/select-grid-row-cell/SelectGridRowCell.js +24 -0
- package/dist/components/organisms/grid/select-grid-row-cell/index.js +2 -0
- package/dist/components/organisms/menu/Menu.css +1 -0
- package/dist/components/organisms/menu/Menu.js +22 -0
- package/dist/components/organisms/menu/index.js +3 -0
- package/dist/components/organisms/menu/leaf/MenuLeaf.css +1 -0
- package/dist/components/organisms/menu/leaf/MenuLeaf.js +28 -0
- package/dist/components/organisms/menu/list-item/MenuListItem.css +1 -0
- package/dist/components/organisms/menu/list-item/MenuListItem.js +35 -0
- package/dist/components/organisms/menu/sub-menu/SubMenu.css +1 -0
- package/dist/components/organisms/menu/sub-menu/SubMenu.js +67 -0
- package/dist/components/organisms/menu/sub-menu/index.js +3 -0
- package/dist/components/organisms/tabs/Tabs.css +1 -0
- package/dist/components/organisms/tabs/Tabs.js +80 -0
- package/dist/components/organisms/tabs/button/TabButton.css +1 -0
- package/dist/components/organisms/tabs/button/TabButton.js +111 -0
- package/dist/components/organisms/tabs/content/TabContent.css +1 -0
- package/dist/components/organisms/tabs/content/TabContent.js +19 -0
- package/dist/components/organisms/tabs/edit-input/TabEditInput.css +1 -0
- package/dist/components/organisms/tabs/edit-input/TabEditInput.js +64 -0
- package/dist/components/organisms/tabs/index.js +3 -0
- package/dist/components/organisms/tabs/list/TabList.css +1 -0
- package/dist/components/organisms/tabs/list/TabList.js +67 -0
- package/dist/enums/alert-mode.js +4 -0
- package/dist/enums/button-view.js +4 -0
- package/dist/enums/element-size.js +4 -0
- package/dist/enums/icon-name.js +4 -0
- package/dist/enums/index.js +8 -0
- package/dist/enums/loader-view.js +4 -0
- package/dist/enums/orientation-mode.js +4 -0
- package/dist/enums/semantic-color.js +4 -0
- package/dist/enums/tooltip-container.js +4 -0
- package/dist/hooks/index.js +15 -0
- package/dist/hooks/use-auto-close/index.js +2 -0
- package/dist/hooks/use-auto-close/use-auto-close.js +18 -0
- package/dist/hooks/use-click-outside/index.js +2 -0
- package/dist/hooks/use-click-outside/use-click-outside.js +19 -0
- package/dist/hooks/use-container-dimensions/index.js +2 -0
- package/dist/hooks/use-container-dimensions/use-container-dimensions.js +16 -0
- package/dist/hooks/use-debounce/index.js +2 -0
- package/dist/hooks/use-debounce/use-debounce.js +15 -0
- package/dist/hooks/use-element-ids/index.js +2 -0
- package/dist/hooks/use-element-ids/use-element-ids.js +12 -0
- package/dist/hooks/use-is-hovered/index.js +2 -0
- package/dist/hooks/use-is-hovered/use-is-hovered.js +15 -0
- package/dist/hooks/use-is-mounted/index.js +2 -0
- package/dist/hooks/use-is-mounted/use-is-mounted.js +15 -0
- package/dist/hooks/use-is-overflow/index.js +2 -0
- package/dist/hooks/use-is-overflow/use-is-overflow.js +27 -0
- package/dist/hooks/use-key-press/index.js +2 -0
- package/dist/hooks/use-key-press/use-key-press.js +14 -0
- package/dist/hooks/use-modal-focus-trap/index.js +2 -0
- package/dist/hooks/use-modal-focus-trap/use-modal-focus-trap.js +20 -0
- package/dist/hooks/use-remaining-timer/index.js +2 -0
- package/dist/hooks/use-remaining-timer/use-remaining-timer.js +38 -0
- package/dist/hooks/use-reset-form-input/index.js +2 -0
- package/dist/hooks/use-reset-form-input/use-reset-form-input.js +11 -0
- package/dist/hooks/use-theme/index.js +2 -0
- package/dist/hooks/use-theme/use-theme.js +6 -0
- package/dist/hooks/use-tooltip-position/index.js +2 -0
- package/dist/hooks/use-tooltip-position/use-tooltip-position.js +31 -0
- package/dist/hooks/use-window-dimensions/index.js +2 -0
- package/dist/hooks/use-window-dimensions/use-window-dimensions.js +17 -0
- package/dist/index.d.ts +327 -70
- package/dist/index.es.js +109 -4591
- package/dist/styles/icons.css +1 -0
- package/dist/styles/main.css +1 -0
- package/dist/utils/get-class-name.js +16 -0
- package/dist/utils/handle-dropdown-list-key-press.js +32 -0
- package/dist/utils/index.js +3 -0
- package/dist/utils/move-focus-on-element-by-id.js +7 -0
- package/package.json +75 -22
- package/dist/favicon.ico +0 -0
- package/dist/index.cjs.js +0 -7
- package/dist/index.cjs.js.map +0 -1
- package/dist/index.css +0 -1
- package/dist/index.es.js.map +0 -1
- package/dist/logo.jpeg +0 -0
- package/dist/logo.png +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes } from 'react';
|
|
2
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
2
3
|
import { ChangeEventHandler } from 'react';
|
|
3
4
|
import { ComponentType } from 'react';
|
|
4
5
|
import { Context } from 'react';
|
|
@@ -11,15 +12,12 @@ import { HTMLAttributes } from 'react';
|
|
|
11
12
|
import { HTMLInputAutoCompleteAttribute } from 'react';
|
|
12
13
|
import { InputHTMLAttributes } from 'react';
|
|
13
14
|
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
14
|
-
import { MouseEventHandler } from 'react';
|
|
15
15
|
import { PropsWithChildren } from 'react';
|
|
16
16
|
import { ReactElement } from 'react';
|
|
17
17
|
import { ReactNode } from 'react';
|
|
18
18
|
import { ReactPortal } from 'react';
|
|
19
19
|
import { RefAttributes } from 'react';
|
|
20
20
|
import { RefObject } from 'react';
|
|
21
|
-
import { SVGProps } from 'react';
|
|
22
|
-
import { ThemeContextProps as ThemeContextProps_2 } from '../..';
|
|
23
21
|
|
|
24
22
|
export declare const Accordion: FC<AccordionProps>;
|
|
25
23
|
|
|
@@ -68,16 +66,14 @@ export declare const Button: FC<ButtonProps & {
|
|
|
68
66
|
visibleOn?: "hover" | "click" | "focus" | "contextmenu";
|
|
69
67
|
}>;
|
|
70
68
|
|
|
71
|
-
export declare interface ButtonProps extends
|
|
72
|
-
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
73
|
-
onFocus?: FocusEventHandler<HTMLButtonElement>;
|
|
74
|
-
onBlur?: FocusEventHandler<HTMLButtonElement>;
|
|
69
|
+
export declare interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
75
70
|
view?: ButtonView;
|
|
76
71
|
icon?: IconName;
|
|
77
72
|
text?: string;
|
|
78
73
|
extended?: boolean;
|
|
79
|
-
type?: 'button' | 'reset' | 'submit';
|
|
80
74
|
tooltip?: string;
|
|
75
|
+
label?: string;
|
|
76
|
+
iconSize?: ElementSize;
|
|
81
77
|
}
|
|
82
78
|
|
|
83
79
|
export declare enum ButtonView {
|
|
@@ -124,10 +120,6 @@ export declare type ChopLogicRegExpWithFlags = {
|
|
|
124
120
|
flags?: string;
|
|
125
121
|
};
|
|
126
122
|
|
|
127
|
-
export declare interface ChopLogicSVGElementProps extends SVGProps<SVGSVGElement> {
|
|
128
|
-
title?: string;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
123
|
export declare interface ChopLogicTabItem {
|
|
132
124
|
content: ReactElement;
|
|
133
125
|
title: string;
|
|
@@ -135,6 +127,10 @@ export declare interface ChopLogicTabItem {
|
|
|
135
127
|
disabled?: boolean;
|
|
136
128
|
}
|
|
137
129
|
|
|
130
|
+
export declare const CL_DARK_THEME_CLASS = "cl-components-dark-theme";
|
|
131
|
+
|
|
132
|
+
export declare const CL_LIGHT_THEME_CLASS = "cl-components-light-theme";
|
|
133
|
+
|
|
138
134
|
export declare const Dialog: FC<DialogProps>;
|
|
139
135
|
|
|
140
136
|
export declare interface DialogProps extends ChopLogicComponentProps, PropsWithChildren {
|
|
@@ -162,6 +158,15 @@ export declare interface EditableTextProps extends ChopLogicComponentProps {
|
|
|
162
158
|
readOnly?: boolean;
|
|
163
159
|
}
|
|
164
160
|
|
|
161
|
+
export declare enum ElementSize {
|
|
162
|
+
ExtraSmall = "xs",
|
|
163
|
+
Small = "s",
|
|
164
|
+
Medium = "m",
|
|
165
|
+
Large = "l",
|
|
166
|
+
ExtraLarge = "xl",
|
|
167
|
+
ExtraExtraLarge = "2xl"
|
|
168
|
+
}
|
|
169
|
+
|
|
165
170
|
export declare const ErrorMessage: FC<ErrorMessageProps>;
|
|
166
171
|
|
|
167
172
|
declare type ErrorMessageProps = {
|
|
@@ -245,54 +250,295 @@ export declare interface HeaderProps extends HTMLAttributes<HTMLHeadingElement>
|
|
|
245
250
|
export declare const Icon: FC<IconProps>;
|
|
246
251
|
|
|
247
252
|
export declare enum IconName {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
253
|
+
Activity = "chop-icon__activity",
|
|
254
|
+
Airplay = "chop-icon__airplay",
|
|
255
|
+
AlertCircle = "chop-icon__alert-circle",
|
|
256
|
+
AlertOctagon = "chop-icon__alert-octagon",
|
|
257
|
+
AlertTriangle = "chop-icon__alert-triangle",
|
|
258
|
+
AlignCenter = "chop-icon__align-center",
|
|
259
|
+
AlignJustify = "chop-icon__align-justify",
|
|
260
|
+
AlignLeft = "chop-icon__align-left",
|
|
261
|
+
AlignRight = "chop-icon__align-right",
|
|
262
|
+
Anchor = "chop-icon__anchor",
|
|
263
|
+
Aperture = "chop-icon__aperture",
|
|
264
|
+
Archive = "chop-icon__archive",
|
|
265
|
+
ArrowDown = "chop-icon__arrow-down",
|
|
266
|
+
ArrowDownCircle = "chop-icon__arrow-down-circle",
|
|
267
|
+
ArrowDownLeft = "chop-icon__arrow-down-left",
|
|
268
|
+
ArrowDownRight = "chop-icon__arrow-down-right",
|
|
269
|
+
ArrowLeft = "chop-icon__arrow-left",
|
|
270
|
+
ArrowLeftCircle = "chop-icon__arrow-left-circle",
|
|
271
|
+
ArrowRight = "chop-icon__arrow-right",
|
|
272
|
+
ArrowRightCircle = "chop-icon__arrow-right-circle",
|
|
273
|
+
ArrowUp = "chop-icon__arrow-up",
|
|
274
|
+
ArrowUpCircle = "chop-icon__arrow-up-circle",
|
|
275
|
+
ArrowUpLeft = "chop-icon__arrow-up-left",
|
|
276
|
+
ArrowUpRight = "chop-icon__arrow-up-right",
|
|
277
|
+
AtSign = "chop-icon__at-sign",
|
|
278
|
+
Award = "chop-icon__award",
|
|
279
|
+
BarChart = "chop-icon__bar-chart",
|
|
280
|
+
BarChart2 = "chop-icon__bar-chart-2",
|
|
281
|
+
Battery = "chop-icon__battery",
|
|
282
|
+
BatteryCharging = "chop-icon__battery-charging",
|
|
283
|
+
Bell = "chop-icon__bell",
|
|
284
|
+
BellOff = "chop-icon__bell-off",
|
|
285
|
+
Bluetooth = "chop-icon__bluetooth",
|
|
286
|
+
Bold = "chop-icon__bold",
|
|
287
|
+
Book = "chop-icon__book",
|
|
288
|
+
BookOpen = "chop-icon__book-open",
|
|
289
|
+
Bookmark = "chop-icon__bookmark",
|
|
290
|
+
Box = "chop-icon__box",
|
|
291
|
+
Briefcase = "chop-icon__briefcase",
|
|
292
|
+
Calendar = "chop-icon__calendar",
|
|
293
|
+
Camera = "chop-icon__camera",
|
|
294
|
+
CameraOff = "chop-icon__camera-off",
|
|
295
|
+
Cast = "chop-icon__cast",
|
|
296
|
+
Check = "chop-icon__check",
|
|
297
|
+
CheckCircle = "chop-icon__check-circle",
|
|
298
|
+
CheckSquare = "chop-icon__check-square",
|
|
299
|
+
ChevronDown = "chop-icon__chevron-down",
|
|
300
|
+
ChevronLeft = "chop-icon__chevron-left",
|
|
301
|
+
ChevronRight = "chop-icon__chevron-right",
|
|
302
|
+
ChevronUp = "chop-icon__chevron-up",
|
|
303
|
+
ChevronsDown = "chop-icon__chevrons-down",
|
|
304
|
+
ChevronsLeft = "chop-icon__chevrons-left",
|
|
305
|
+
ChevronsRight = "chop-icon__chevrons-right",
|
|
306
|
+
ChevronsUp = "chop-icon__chevrons-up",
|
|
307
|
+
Chrome = "chop-icon__chrome",
|
|
308
|
+
Circle = "chop-icon__circle",
|
|
309
|
+
Clipboard = "chop-icon__clipboard",
|
|
310
|
+
Clock = "chop-icon__clock",
|
|
311
|
+
Cloud = "chop-icon__cloud",
|
|
312
|
+
CloudDrizzle = "chop-icon__cloud-drizzle",
|
|
313
|
+
CloudLightning = "chop-icon__cloud-lightning",
|
|
314
|
+
CloudOff = "chop-icon__cloud-off",
|
|
315
|
+
CloudRain = "chop-icon__cloud-rain",
|
|
316
|
+
CloudSnow = "chop-icon__cloud-snow",
|
|
317
|
+
Code = "chop-icon__code",
|
|
318
|
+
Codepen = "chop-icon__codepen",
|
|
319
|
+
Codesandbox = "chop-icon__codesandbox",
|
|
320
|
+
Coffee = "chop-icon__coffee",
|
|
321
|
+
Columns = "chop-icon__columns",
|
|
322
|
+
Command = "chop-icon__command",
|
|
323
|
+
Compass = "chop-icon__compass",
|
|
324
|
+
Copy = "chop-icon__copy",
|
|
325
|
+
CornerDownLeft = "chop-icon__corner-down-left",
|
|
326
|
+
CornerDownRight = "chop-icon__corner-down-right",
|
|
327
|
+
CornerLeftDown = "chop-icon__corner-left-down",
|
|
328
|
+
CornerLeftUp = "chop-icon__corner-left-up",
|
|
329
|
+
CornerRightDown = "chop-icon__corner-right-down",
|
|
330
|
+
CornerRightUp = "chop-icon__corner-right-up",
|
|
331
|
+
CornerUpLeft = "chop-icon__corner-up-left",
|
|
332
|
+
CornerUpRight = "chop-icon__corner-up-right",
|
|
333
|
+
Cpu = "chop-icon__cpu",
|
|
334
|
+
CreditCard = "chop-icon__credit-card",
|
|
335
|
+
Crop = "chop-icon__crop",
|
|
336
|
+
Crosshair = "chop-icon__crosshair",
|
|
337
|
+
Database = "chop-icon__database",
|
|
338
|
+
Delete = "chop-icon__delete",
|
|
339
|
+
Disc = "chop-icon__disc",
|
|
340
|
+
DollarSign = "chop-icon__dollar-sign",
|
|
341
|
+
Download = "chop-icon__download",
|
|
342
|
+
DownloadCloud = "chop-icon__download-cloud",
|
|
343
|
+
Droplet = "chop-icon__droplet",
|
|
344
|
+
Edit = "chop-icon__edit",
|
|
345
|
+
Edit2 = "chop-icon__edit-2",
|
|
346
|
+
Edit3 = "chop-icon__edit-3",
|
|
347
|
+
ExternalLink = "chop-icon__external-link",
|
|
348
|
+
Eye = "chop-icon__eye",
|
|
349
|
+
EyeOff = "chop-icon__eye-off",
|
|
350
|
+
Facebook = "chop-icon__facebook",
|
|
351
|
+
FastForward = "chop-icon__fast-forward",
|
|
352
|
+
Feather = "chop-icon__feather",
|
|
353
|
+
Figma = "chop-icon__figma",
|
|
354
|
+
File = "chop-icon__file",
|
|
355
|
+
FileMinus = "chop-icon__file-minus",
|
|
356
|
+
FilePlus = "chop-icon__file-plus",
|
|
357
|
+
FileText = "chop-icon__file-text",
|
|
358
|
+
Film = "chop-icon__film",
|
|
359
|
+
Filter = "chop-icon__filter",
|
|
360
|
+
Flag = "chop-icon__flag",
|
|
361
|
+
Folder = "chop-icon__folder",
|
|
362
|
+
FolderMinus = "chop-icon__folder-minus",
|
|
363
|
+
FolderPlus = "chop-icon__folder-plus",
|
|
364
|
+
Framer = "chop-icon__framer",
|
|
365
|
+
Frown = "chop-icon__frown",
|
|
366
|
+
Gift = "chop-icon__gift",
|
|
367
|
+
GitBranch = "chop-icon__git-branch",
|
|
368
|
+
GitCommit = "chop-icon__git-commit",
|
|
369
|
+
GitMerge = "chop-icon__git-merge",
|
|
370
|
+
GitPullRequest = "chop-icon__git-pull-request",
|
|
371
|
+
Github = "chop-icon__github",
|
|
372
|
+
Gitlab = "chop-icon__gitlab",
|
|
373
|
+
Globe = "chop-icon__globe",
|
|
374
|
+
Grid = "chop-icon__grid",
|
|
375
|
+
HardDrive = "chop-icon__hard-drive",
|
|
376
|
+
Hash = "chop-icon__hash",
|
|
377
|
+
Headphones = "chop-icon__headphones",
|
|
378
|
+
Heart = "chop-icon__heart",
|
|
379
|
+
HelpCircle = "chop-icon__help-circle",
|
|
380
|
+
Hexagon = "chop-icon__hexagon",
|
|
381
|
+
Home = "chop-icon__home",
|
|
382
|
+
Image = "chop-icon__image",
|
|
383
|
+
Inbox = "chop-icon__inbox",
|
|
384
|
+
Info = "chop-icon__info",
|
|
385
|
+
Instagram = "chop-icon__instagram",
|
|
386
|
+
Italic = "chop-icon__italic",
|
|
387
|
+
Key = "chop-icon__key",
|
|
388
|
+
Layers = "chop-icon__layers",
|
|
389
|
+
Layout = "chop-icon__layout",
|
|
390
|
+
LifeBuoy = "chop-icon__life-buoy",
|
|
391
|
+
Link = "chop-icon__link",
|
|
392
|
+
Link2 = "chop-icon__link-2",
|
|
393
|
+
Linkedin = "chop-icon__linkedin",
|
|
394
|
+
List = "chop-icon__list",
|
|
395
|
+
Loader = "chop-icon__loader",
|
|
396
|
+
Lock = "chop-icon__lock",
|
|
397
|
+
LogIn = "chop-icon__log-in",
|
|
398
|
+
LogOut = "chop-icon__log-out",
|
|
399
|
+
Mail = "chop-icon__mail",
|
|
400
|
+
Map = "chop-icon__map",
|
|
401
|
+
MapPin = "chop-icon__map-pin",
|
|
402
|
+
Maximize = "chop-icon__maximize",
|
|
403
|
+
Maximize2 = "chop-icon__maximize-2",
|
|
404
|
+
Meh = "chop-icon__meh",
|
|
405
|
+
Menu = "chop-icon__menu",
|
|
406
|
+
MessageCircle = "chop-icon__message-circle",
|
|
407
|
+
MessageSquare = "chop-icon__message-square",
|
|
408
|
+
Mic = "chop-icon__mic",
|
|
409
|
+
MicOff = "chop-icon__mic-off",
|
|
410
|
+
Minimize = "chop-icon__minimize",
|
|
411
|
+
Minimize2 = "chop-icon__minimize-2",
|
|
412
|
+
Minus = "chop-icon__minus",
|
|
413
|
+
MinusCircle = "chop-icon__minus-circle",
|
|
414
|
+
MinusSquare = "chop-icon__minus-square",
|
|
415
|
+
Monitor = "chop-icon__monitor",
|
|
416
|
+
Moon = "chop-icon__moon",
|
|
417
|
+
MoreHorizontal = "chop-icon__more-horizontal",
|
|
418
|
+
MoreVertical = "chop-icon__more-vertical",
|
|
419
|
+
MousePointer = "chop-icon__mouse-pointer",
|
|
420
|
+
Move = "chop-icon__move",
|
|
421
|
+
Music = "chop-icon__music",
|
|
422
|
+
Navigation = "chop-icon__navigation",
|
|
423
|
+
Navigation2 = "chop-icon__navigation-2",
|
|
424
|
+
Octagon = "chop-icon__octagon",
|
|
425
|
+
Package = "chop-icon__package",
|
|
426
|
+
Paperclip = "chop-icon__paperclip",
|
|
427
|
+
Pause = "chop-icon__pause",
|
|
428
|
+
PauseCircle = "chop-icon__pause-circle",
|
|
429
|
+
PenTool = "chop-icon__pen-tool",
|
|
430
|
+
Percent = "chop-icon__percent",
|
|
431
|
+
Phone = "chop-icon__phone",
|
|
432
|
+
PhoneCall = "chop-icon__phone-call",
|
|
433
|
+
PhoneForwarded = "chop-icon__phone-forwarded",
|
|
434
|
+
PhoneIncoming = "chop-icon__phone-incoming",
|
|
435
|
+
PhoneMissed = "chop-icon__phone-missed",
|
|
436
|
+
PhoneOff = "chop-icon__phone-off",
|
|
437
|
+
PhoneOutgoing = "chop-icon__phone-outgoing",
|
|
438
|
+
PieChart = "chop-icon__pie-chart",
|
|
439
|
+
Play = "chop-icon__play",
|
|
440
|
+
PlayCircle = "chop-icon__play-circle",
|
|
441
|
+
Plus = "chop-icon__plus",
|
|
442
|
+
PlusCircle = "chop-icon__plus-circle",
|
|
443
|
+
PlusSquare = "chop-icon__plus-square",
|
|
444
|
+
Pocket = "chop-icon__pocket",
|
|
445
|
+
Power = "chop-icon__power",
|
|
446
|
+
Printer = "chop-icon__printer",
|
|
447
|
+
Radio = "chop-icon__radio",
|
|
448
|
+
RefreshCcw = "chop-icon__refresh-ccw",
|
|
449
|
+
RefreshCw = "chop-icon__refresh-cw",
|
|
450
|
+
Repeat = "chop-icon__repeat",
|
|
451
|
+
Rewind = "chop-icon__rewind",
|
|
452
|
+
RotateCcw = "chop-icon__rotate-ccw",
|
|
453
|
+
RotateCw = "chop-icon__rotate-cw",
|
|
454
|
+
Rss = "chop-icon__rss",
|
|
455
|
+
Save = "chop-icon__save",
|
|
456
|
+
Scissors = "chop-icon__scissors",
|
|
457
|
+
Search = "chop-icon__search",
|
|
458
|
+
Send = "chop-icon__send",
|
|
459
|
+
Server = "chop-icon__server",
|
|
460
|
+
Settings = "chop-icon__settings",
|
|
461
|
+
Share = "chop-icon__share",
|
|
462
|
+
Share2 = "chop-icon__share-2",
|
|
463
|
+
Shield = "chop-icon__shield",
|
|
464
|
+
ShieldOff = "chop-icon__shield-off",
|
|
465
|
+
ShoppingBag = "chop-icon__shopping-bag",
|
|
466
|
+
ShoppingCart = "chop-icon__shopping-cart",
|
|
467
|
+
Shuffle = "chop-icon__shuffle",
|
|
468
|
+
Sidebar = "chop-icon__sidebar",
|
|
469
|
+
SkipBack = "chop-icon__skip-back",
|
|
470
|
+
SkipForward = "chop-icon__skip-forward",
|
|
471
|
+
Slack = "chop-icon__slack",
|
|
472
|
+
Slash = "chop-icon__slash",
|
|
473
|
+
Sliders = "chop-icon__sliders",
|
|
474
|
+
Smartphone = "chop-icon__smartphone",
|
|
475
|
+
Smile = "chop-icon__smile",
|
|
476
|
+
Speaker = "chop-icon__speaker",
|
|
477
|
+
Square = "chop-icon__square",
|
|
478
|
+
Star = "chop-icon__star",
|
|
479
|
+
StopCircle = "chop-icon__stop-circle",
|
|
480
|
+
Sun = "chop-icon__sun",
|
|
481
|
+
Sunrise = "chop-icon__sunrise",
|
|
482
|
+
Sunset = "chop-icon__sunset",
|
|
483
|
+
Tablet = "chop-icon__tablet",
|
|
484
|
+
Tag = "chop-icon__tag",
|
|
485
|
+
Target = "chop-icon__target",
|
|
486
|
+
Terminal = "chop-icon__terminal",
|
|
487
|
+
Thermometer = "chop-icon__thermometer",
|
|
488
|
+
ThumbsDown = "chop-icon__thumbs-down",
|
|
489
|
+
ThumbsUp = "chop-icon__thumbs-up",
|
|
490
|
+
ToggleLeft = "chop-icon__toggle-left",
|
|
491
|
+
ToggleRight = "chop-icon__toggle-right",
|
|
492
|
+
Tool = "chop-icon__tool",
|
|
493
|
+
Trash = "chop-icon__trash",
|
|
494
|
+
Trash2 = "chop-icon__trash-2",
|
|
495
|
+
Trello = "chop-icon__trello",
|
|
496
|
+
TrendingDown = "chop-icon__trending-down",
|
|
497
|
+
TrendingUp = "chop-icon__trending-up",
|
|
498
|
+
Triangle = "chop-icon__triangle",
|
|
499
|
+
Truck = "chop-icon__truck",
|
|
500
|
+
Tv = "chop-icon__tv",
|
|
501
|
+
Twitch = "chop-icon__twitch",
|
|
502
|
+
Twitter = "chop-icon__twitter",
|
|
503
|
+
Type = "chop-icon__type",
|
|
504
|
+
Umbrella = "chop-icon__umbrella",
|
|
505
|
+
Underline = "chop-icon__underline",
|
|
506
|
+
Unlock = "chop-icon__unlock",
|
|
507
|
+
Upload = "chop-icon__upload",
|
|
508
|
+
UploadCloud = "chop-icon__upload-cloud",
|
|
509
|
+
User = "chop-icon__user",
|
|
510
|
+
UserCheck = "chop-icon__user-check",
|
|
511
|
+
UserMinus = "chop-icon__user-minus",
|
|
512
|
+
UserPlus = "chop-icon__user-plus",
|
|
513
|
+
UserX = "chop-icon__user-x",
|
|
514
|
+
Users = "chop-icon__users",
|
|
515
|
+
Video = "chop-icon__video",
|
|
516
|
+
VideoOff = "chop-icon__video-off",
|
|
517
|
+
Voicemail = "chop-icon__voicemail",
|
|
518
|
+
Volume = "chop-icon__volume",
|
|
519
|
+
Volume1 = "chop-icon__volume-1",
|
|
520
|
+
Volume2 = "chop-icon__volume-2",
|
|
521
|
+
VolumeX = "chop-icon__volume-x",
|
|
522
|
+
Watch = "chop-icon__watch",
|
|
523
|
+
Wifi = "chop-icon__wifi",
|
|
524
|
+
WifiOff = "chop-icon__wifi-off",
|
|
525
|
+
Wind = "chop-icon__wind",
|
|
526
|
+
X = "chop-icon__x",
|
|
527
|
+
XCircle = "chop-icon__x-circle",
|
|
528
|
+
XOctagon = "chop-icon__x-octagon",
|
|
529
|
+
XSquare = "chop-icon__x-square",
|
|
530
|
+
Youtube = "chop-icon__youtube",
|
|
531
|
+
Zap = "chop-icon__zap",
|
|
532
|
+
ZapOff = "chop-icon__zap-off",
|
|
533
|
+
ZoomIn = "chop-icon__zoom-in",
|
|
534
|
+
ZoomOut = "chop-icon__zoom-out"
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
declare interface IconProps extends ChopLogicComponentProps {
|
|
292
538
|
name?: IconName;
|
|
293
539
|
testId?: string;
|
|
294
|
-
title?: string;
|
|
295
540
|
hidden?: boolean;
|
|
541
|
+
size?: ElementSize;
|
|
296
542
|
}
|
|
297
543
|
|
|
298
544
|
declare const Image_2: FC<ImageProps & {
|
|
@@ -336,6 +582,10 @@ declare type LabelProps = {
|
|
|
336
582
|
isTextHidden?: boolean;
|
|
337
583
|
icon?: IconName;
|
|
338
584
|
iconPosition?: 'left' | 'right';
|
|
585
|
+
iconSize?: ElementSize;
|
|
586
|
+
disabled?: boolean;
|
|
587
|
+
className?: string;
|
|
588
|
+
testId?: string;
|
|
339
589
|
};
|
|
340
590
|
|
|
341
591
|
export declare const Link: FC<LinkProps>;
|
|
@@ -348,8 +598,6 @@ export declare interface LinkProps extends PropsWithChildren, AnchorHTMLAttribut
|
|
|
348
598
|
disabled?: boolean;
|
|
349
599
|
}
|
|
350
600
|
|
|
351
|
-
export declare const Loader: FC<LoaderProps>;
|
|
352
|
-
|
|
353
601
|
export declare interface LoaderProps extends ChopLogicComponentProps, HTMLAttributes<HTMLSpanElement> {
|
|
354
602
|
view?: LoaderView;
|
|
355
603
|
}
|
|
@@ -474,6 +722,14 @@ export declare type SelectValue = {
|
|
|
474
722
|
[key in string]: unknown;
|
|
475
723
|
};
|
|
476
724
|
|
|
725
|
+
export declare enum SemanticColor {
|
|
726
|
+
Default = "default",
|
|
727
|
+
Info = "info",
|
|
728
|
+
Success = "success",
|
|
729
|
+
Warning = "warning",
|
|
730
|
+
Danger = "danger"
|
|
731
|
+
}
|
|
732
|
+
|
|
477
733
|
export declare const Switch: FC<SwitchProps>;
|
|
478
734
|
|
|
479
735
|
export declare interface SwitchProps {
|
|
@@ -531,21 +787,18 @@ export declare interface TextInputProps extends ChopLogicInputProps {
|
|
|
531
787
|
|
|
532
788
|
export declare type TextInputValidator = (input: string) => boolean;
|
|
533
789
|
|
|
534
|
-
export declare const ThemeContext: Context<
|
|
790
|
+
export declare const ThemeContext: Context< {
|
|
791
|
+
mode?: ThemeMode;
|
|
792
|
+
setMode: (mode: ThemeMode) => void;
|
|
793
|
+
}>;
|
|
535
794
|
|
|
536
|
-
|
|
537
|
-
mode?: ThemeMode;
|
|
538
|
-
setMode: (mode: ThemeMode) => void;
|
|
539
|
-
}
|
|
795
|
+
declare type ThemeMode = typeof CL_LIGHT_THEME_CLASS | typeof CL_DARK_THEME_CLASS;
|
|
540
796
|
|
|
541
|
-
|
|
542
|
-
Light = "cl-components-light-theme",
|
|
543
|
-
Dark = "cl-components-dark-theme"
|
|
544
|
-
}
|
|
797
|
+
declare type ThemeMode_2 = typeof CL_LIGHT_THEME_CLASS | typeof CL_DARK_THEME_CLASS;
|
|
545
798
|
|
|
546
799
|
export declare const ThemeProvider: FC<{
|
|
547
800
|
children: ReactNode;
|
|
548
|
-
injectedMode?:
|
|
801
|
+
injectedMode?: ThemeMode_2;
|
|
549
802
|
}>;
|
|
550
803
|
|
|
551
804
|
export declare const Tooltip: FC<TooltipProps>;
|
|
@@ -564,6 +817,7 @@ export declare interface TooltipProps extends PropsWithChildren, ChopLogicCompon
|
|
|
564
817
|
visibleOn?: 'hover' | 'click' | 'focus' | 'contextmenu';
|
|
565
818
|
autoClose?: boolean;
|
|
566
819
|
autoCloseDelay?: number;
|
|
820
|
+
color?: SemanticColor;
|
|
567
821
|
}
|
|
568
822
|
|
|
569
823
|
export declare const useAutoClose: ({ isOpened, onClose, autoClose, autoCloseDelay, }: {
|
|
@@ -628,7 +882,10 @@ declare type UseRemainingTimerProps = {
|
|
|
628
882
|
|
|
629
883
|
export declare const useResetFormInput: (onReset: () => void) => void;
|
|
630
884
|
|
|
631
|
-
export declare const useTheme: () =>
|
|
885
|
+
export declare const useTheme: () => {
|
|
886
|
+
mode?: "cl-components-light-theme" | "cl-components-dark-theme";
|
|
887
|
+
setMode: (mode: "cl-components-light-theme" | "cl-components-dark-theme") => void;
|
|
888
|
+
};
|
|
632
889
|
|
|
633
890
|
export declare const useTooltipPosition: ({ wrapperRef, tooltipRef, isOpened, spacing, }: useTooltipPositionParams) => {
|
|
634
891
|
top: number;
|