@geneui/components 3.0.0-next-9ffcb93-16102024 → 3.0.0-next-48d0ef7-31102024
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/Avatar.js +63 -0
- package/CHANGELOG.md +7 -0
- package/Divider.js +23 -0
- package/{GeneUIProvider/index.js → GeneUIProvider.js} +52 -65
- package/HelperText.js +69 -0
- package/Info.js +64 -0
- package/Label.js +38 -0
- package/Loader.js +21 -0
- package/Pill.js +64 -0
- package/TextLink.js +20 -0
- package/{index-65217440.js → Tooltip.js} +104 -80
- package/{lib → components}/atoms/Avatar/Avatar.d.ts +7 -6
- package/components/atoms/Avatar/index.d.ts +1 -0
- package/{lib → components}/atoms/Divider/Divider.d.ts +5 -5
- package/components/atoms/Divider/index.d.ts +1 -0
- package/{lib → components}/atoms/HelperText/HelperText.d.ts +6 -5
- package/components/atoms/HelperText/index.d.ts +1 -0
- package/{lib → components}/atoms/Info/Info.d.ts +5 -5
- package/components/atoms/Info/index.d.ts +1 -0
- package/{lib → components}/atoms/Label/Label.d.ts +3 -3
- package/components/atoms/Label/index.d.ts +1 -0
- package/{lib → components}/atoms/Loader/Loader.d.ts +5 -5
- package/components/atoms/Loader/index.d.ts +1 -0
- package/{lib → components}/atoms/Pill/Pill.d.ts +7 -6
- package/components/atoms/Pill/index.d.ts +1 -0
- package/{lib → components}/atoms/TextLink/TextLink.d.ts +5 -5
- package/components/atoms/TextLink/index.d.ts +1 -0
- package/{lib → components}/molecules/Tooltip/Tooltip.d.ts +26 -21
- package/components/molecules/Tooltip/index.d.ts +1 -0
- package/components/providers/GeneUIProvider/GeneUIProvider.d.ts +30 -0
- package/components/providers/GeneUIProvider/index.d.ts +1 -0
- package/hooks/index.d.ts +2 -20
- package/hooks/useDebounceCallback/index.d.ts +1 -0
- package/hooks/useDebounceCallback/useDebounceCallback.d.ts +2 -0
- package/hooks/useEllipsisDetection/index.d.ts +1 -1
- package/hooks/useEllipsisDetection/useEllipsisDetection.d.ts +2 -2
- package/{index-031ff73c.js → index-ce02421b.js} +4 -4
- package/index.d.ts +11 -121
- package/index.js +12 -159
- package/package.json +24 -43
- package/tokens-0abb4e1b.js +6 -0
- package/types/index.d.ts +0 -3
- package/useEllipsisDetection-46d712b6.js +34 -0
- package/ActionableList/index.js +0 -1694
- package/AdvancedSearch/index.js +0 -892
- package/Alert/index.js +0 -98
- package/Avatar/index.js +0 -58
- package/Badge/index.js +0 -29
- package/Breadcrumb/index.js +0 -130
- package/BusyLoader/index.js +0 -31
- package/Button/index.js +0 -30
- package/Card/index.js +0 -502
- package/CardList/index.js +0 -662
- package/CellMeasurerCache-80be385d.js +0 -229
- package/Charts/index.js +0 -17662
- package/Checkbox/index.js +0 -229
- package/CheckboxGroup/index.js +0 -203
- package/CheckboxGroupWithSearch/index.js +0 -280
- package/Collapse/index.js +0 -195
- package/ColorPicker/index.js +0 -210
- package/ComboBox/index.js +0 -524
- package/Copy/index.js +0 -56
- package/Counter/index.js +0 -312
- package/DateFilter/index.js +0 -183
- package/DatePicker/index.js +0 -1229
- package/DatePickerInput/index.js +0 -883
- package/Divider/index.js +0 -23
- package/Drawer/index.js +0 -261
- package/Dropdown/index.js +0 -43
- package/Editor/index.js +0 -22975
- package/Empty/index.js +0 -76
- package/ExtendedInput/index.js +0 -590
- package/Form/index.js +0 -85
- package/FormContainer/index.js +0 -189
- package/FormableCheckbox/index.js +0 -24
- package/FormableDatePicker/index.js +0 -43
- package/FormableDropdown/index.js +0 -50
- package/FormableEditor/index.js +0 -26
- package/FormableHOC-85f89a81.js +0 -83
- package/FormableMultiSelectDropdown/index.js +0 -50
- package/FormableNumberInput/index.js +0 -34
- package/FormableRadio/index.js +0 -22
- package/FormableSwitcher/index.js +0 -22
- package/FormableTextInput/index.js +0 -34
- package/FormableUploader/index.js +0 -44
- package/Grid/index.js +0 -167
- package/HelperText/index.js +0 -86
- package/Holder/index.js +0 -261
- package/Icon/index.js +0 -62
- package/Image/index.js +0 -45
- package/ImagePreview/index.js +0 -217
- package/Info/index.js +0 -41
- package/InfoOutline-dd2e89d9.js +0 -29
- package/InteractiveWidget/index.js +0 -78
- package/KeyValue/index.js +0 -22
- package/Label/index.js +0 -48
- package/LinkButton/index.js +0 -34
- package/Loader/index.js +0 -23
- package/Menu/index.js +0 -281
- package/MobileNavigation/index.js +0 -94
- package/MobilePopup/index.js +0 -182
- package/Modal/index.js +0 -251
- package/ModuleTitle/index.js +0 -141
- package/NavigationMenu/index.js +0 -222
- package/Notification/index.js +0 -120
- package/Option/index.js +0 -184
- package/Overlay/index.js +0 -187
- package/Overspread/index.js +0 -291
- package/Pagination/index.js +0 -261
- package/Paper/index.js +0 -96
- package/Pill/index.js +0 -67
- package/Popover/index.js +0 -725
- package/PopoverV2/index.js +0 -19
- package/Portal/index.js +0 -58
- package/Products/index.js +0 -115
- package/Profile/index.js +0 -589
- package/Progress/index.js +0 -200
- package/QRCode/index.js +0 -814
- package/Radio/index.js +0 -151
- package/RadioGroup/index.js +0 -104
- package/Range/index.js +0 -191
- package/Rating/index.js +0 -174
- package/RichEditor/index.js +0 -13
- package/RichEditor-78c2617e.js +0 -228
- package/Scrollbar/index.js +0 -1585
- package/Search/index.js +0 -75
- package/SearchWithDropdown/index.js +0 -140
- package/Section/index.js +0 -61
- package/SkeletonLoader/index.js +0 -81
- package/Slider/index.js +0 -261
- package/Status/index.js +0 -97
- package/Steps/index.js +0 -314
- package/SuggestionList/index.js +0 -385
- package/Switcher/index.js +0 -193
- package/Table/index.js +0 -57
- package/TableCompositions/index.js +0 -16995
- package/Tabs/index.js +0 -235
- package/Tag/index.js +0 -102
- package/TextLink/index.js +0 -20
- package/Textarea/index.js +0 -242
- package/Time/index.js +0 -62
- package/TimePicker/index.js +0 -575
- package/Timeline/index.js +0 -113
- package/Title/index.js +0 -65
- package/Toaster/index.js +0 -116
- package/Tooltip/index.js +0 -6
- package/TransferList/index.js +0 -493
- package/Uploader/index.js +0 -992
- package/ValidatableCheckbox/index.js +0 -123
- package/ValidatableDatePicker/index.js +0 -316
- package/ValidatableDropdown/index.js +0 -141
- package/ValidatableElements/index.js +0 -67
- package/ValidatableMultiSelectDropdown/index.js +0 -152
- package/ValidatableNumberInput/index.js +0 -204
- package/ValidatableRadio/index.js +0 -116
- package/ValidatableSwitcher/index.js +0 -93
- package/ValidatableTextInput/index.js +0 -167
- package/ValidatableTimeInput/index.js +0 -174
- package/ValidatableUploader/index.js +0 -98
- package/Widget/index.js +0 -225
- package/_commonjsHelpers-24198af3.js +0 -35
- package/_rollupPluginBabelHelpers-a83240e1.js +0 -11
- package/callAfterDelay-7272faca.js +0 -12
- package/checkTimeValidation-e56771be.js +0 -16
- package/checkboxRadioSwitcher-5b69d7bd.js +0 -4
- package/clsx.m-2bb6df4b.js +0 -3
- package/config-1053d64d.js +0 -20
- package/configs-00612ce0.js +0 -103
- package/configs.js +0 -111
- package/dateValidation-67caec66.js +0 -225
- package/debounce-4419bc2f.js +0 -17
- package/guid-8ddf77b3.js +0 -16
- package/hooks/useBodyScroll.js +0 -16
- package/hooks/useClick.js +0 -18
- package/hooks/useClickOutside.js +0 -25
- package/hooks/useDebounce.js +0 -28
- package/hooks/useDeviceType.js +0 -17
- package/hooks/useDidMount.js +0 -15
- package/hooks/useForceUpdate.js +0 -8
- package/hooks/useHover.js +0 -20
- package/hooks/useImgDownload.js +0 -18
- package/hooks/useKeyDown.js +0 -21
- package/hooks/useMount.js +0 -13
- package/hooks/useMutationObserver.js +0 -21
- package/hooks/usePrevious.js +0 -10
- package/hooks/useThrottle.js +0 -16
- package/hooks/useToggle.js +0 -11
- package/hooks/useUpdatableRef.js +0 -14
- package/hooks/useUpdate.js +0 -10
- package/hooks/useWidth.js +0 -16
- package/hooks/useWindowSize.js +0 -40
- package/index-122432cd.js +0 -270
- package/index-262edd7a.js +0 -77
- package/index-2f5aa51e.js +0 -6483
- package/index-370f9acd.js +0 -4
- package/index-45eafea6.js +0 -90
- package/index-480fd7d9.js +0 -10032
- package/index-5f37f281.js +0 -168
- package/index-73aaa093.js +0 -1940
- package/index.mobile.d.ts +0 -14
- package/lib/atoms/Avatar/index.d.ts +0 -1
- package/lib/atoms/Badge/Badge.d.ts +0 -36
- package/lib/atoms/Badge/index.d.ts +0 -1
- package/lib/atoms/BusyLoader/BusyLoader.d.ts +0 -32
- package/lib/atoms/BusyLoader/BusyLoaderHolderHOC.d.ts +0 -8
- package/lib/atoms/BusyLoader/index.d.ts +0 -1
- package/lib/atoms/Button/Button.d.ts +0 -70
- package/lib/atoms/Button/index.d.ts +0 -1
- package/lib/atoms/Divider/index.d.ts +0 -1
- package/lib/atoms/Empty/Empty.d.ts +0 -39
- package/lib/atoms/Empty/index.d.ts +0 -1
- package/lib/atoms/Empty/utils.d.ts +0 -9
- package/lib/atoms/HelperText/index.d.ts +0 -1
- package/lib/atoms/Image/Image.d.ts +0 -51
- package/lib/atoms/Image/index.d.ts +0 -1
- package/lib/atoms/ImagePreview/ImagePreview.d.ts +0 -56
- package/lib/atoms/ImagePreview/ImagePreviewHOC.d.ts +0 -4
- package/lib/atoms/ImagePreview/Magnifier.d.ts +0 -40
- package/lib/atoms/ImagePreview/index.d.ts +0 -1
- package/lib/atoms/Info/index.d.ts +0 -1
- package/lib/atoms/KeyValue/KeyValue.d.ts +0 -29
- package/lib/atoms/KeyValue/index.d.ts +0 -1
- package/lib/atoms/Label/index.d.ts +0 -1
- package/lib/atoms/LinkButton/LinkButton.d.ts +0 -46
- package/lib/atoms/LinkButton/index.d.ts +0 -1
- package/lib/atoms/Loader/index.d.ts +0 -1
- package/lib/atoms/Pill/index.d.ts +0 -1
- package/lib/atoms/Rating/DefaultSvg.d.ts +0 -3
- package/lib/atoms/Rating/Rating.d.ts +0 -49
- package/lib/atoms/Rating/index.d.ts +0 -1
- package/lib/atoms/TextLink/index.d.ts +0 -1
- package/lib/molecules/Copy/Copy.d.ts +0 -38
- package/lib/molecules/Copy/index.d.ts +0 -1
- package/lib/molecules/InteractiveWidget/InteractiveWidget.d.ts +0 -70
- package/lib/molecules/InteractiveWidget/InteractiveWidgetIcon.d.ts +0 -8
- package/lib/molecules/InteractiveWidget/index.d.ts +0 -1
- package/lib/molecules/Tooltip/index.d.ts +0 -1
- package/lib/providers/GeneUIProvider/GeneUIProvider.d.ts +0 -30
- package/lib/providers/GeneUIProvider/index.d.ts +0 -1
- package/localization-4ba17032.js +0 -46
- package/objectWithoutPropertiesLoose-e1596bdb.js +0 -62
- package/rangeAndSlider-693a3d41.js +0 -8684
- package/react-beautiful-dnd.esm-b637016a.js +0 -10116
- package/react-lifecycles-compat.es-6e1f3768.js +0 -158
- package/redux-e591c1b8.js +0 -536
- package/tokens-8ab1179c.js +0 -6
- package/tslib.es6-f211516f.js +0 -35
- package/useEllipsisDetection-c1c9ad94.js +0 -38
package/index.mobile.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export * from './lib/atoms/Icon/index.mobile';
|
|
2
|
-
export * from './lib/atoms/Label/index.mobile';
|
|
3
|
-
export * from './lib/atoms/Radio/index.mobile';
|
|
4
|
-
export * from './lib/atoms/Switcher/index.mobile';
|
|
5
|
-
export * from './lib/molecules/Alert/index.mobile';
|
|
6
|
-
export * from './lib/molecules/Checkbox/index.mobile';
|
|
7
|
-
export * from './lib/molecules/ExtendedInput/index.mobile';
|
|
8
|
-
export * from './lib/molecules/Grid/index.mobile';
|
|
9
|
-
export * from './lib/molecules/Notification/index.mobile';
|
|
10
|
-
export * from './lib/molecules/Pagination/index.mobile';
|
|
11
|
-
export * from './lib/molecules/RadioGroup/index.mobile';
|
|
12
|
-
export * from './lib/molecules/ValidatableElements/Elements/index.mobile';
|
|
13
|
-
export * from './lib/molecules/Counter/index.mobile';
|
|
14
|
-
export * from './lib/organisms/CheckboxGroup/index.mobile';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { IAvatarProps, default as default } from './Avatar';
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ReactNode, FC, HTMLAttributes } from 'react';
|
|
2
|
-
import './Badge.scss';
|
|
3
|
-
interface IBadgeProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
/**
|
|
5
|
-
* Any custom class name
|
|
6
|
-
*/
|
|
7
|
-
className?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Badge size <br/>
|
|
10
|
-
* Possible values: `default | medium | big | huge`
|
|
11
|
-
*/
|
|
12
|
-
size?: 'default' | 'medium' | 'big' | 'huge';
|
|
13
|
-
/**
|
|
14
|
-
* Badge color <br/>
|
|
15
|
-
* Possible values: `danger | primary`
|
|
16
|
-
*/
|
|
17
|
-
color?: 'danger' | 'primary';
|
|
18
|
-
/**
|
|
19
|
-
* Shows the specified number on the badge
|
|
20
|
-
*/
|
|
21
|
-
count?: number;
|
|
22
|
-
/**
|
|
23
|
-
* Set this property to have only dot instead of number
|
|
24
|
-
*/
|
|
25
|
-
dot?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* When the "count" is greater than "maxCount" Badge will show "maxCount" value and "+"
|
|
28
|
-
*/
|
|
29
|
-
maxCount?: number;
|
|
30
|
-
/**
|
|
31
|
-
* Any valid React node
|
|
32
|
-
*/
|
|
33
|
-
children?: ReactNode;
|
|
34
|
-
}
|
|
35
|
-
declare const Badge: FC<IBadgeProps>;
|
|
36
|
-
export { IBadgeProps, Badge as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { IBadgeProps, default as default } from './Badge';
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
import './BusyLoader.scss';
|
|
3
|
-
interface IBusyLoaderProps {
|
|
4
|
-
/**
|
|
5
|
-
* Show loader
|
|
6
|
-
*/
|
|
7
|
-
isBusy?: boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Any valid React node. Renders when "isBusy" is set to false
|
|
10
|
-
*/
|
|
11
|
-
children?: ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* Show provided text when loading, it will be ignored in the `type` of `bar`
|
|
14
|
-
*/
|
|
15
|
-
loadingText?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Loader available type/style </br>
|
|
18
|
-
* Possible values: `spinner | bubbles | bar`
|
|
19
|
-
*/
|
|
20
|
-
type?: 'spinner' | 'bubbles' | 'bar';
|
|
21
|
-
/**
|
|
22
|
-
* Loader size </br>
|
|
23
|
-
* Possible values: `small | medium | big`
|
|
24
|
-
*/
|
|
25
|
-
spinnerSize?: 'small' | 'medium' | 'big';
|
|
26
|
-
/**
|
|
27
|
-
* Any custom class name
|
|
28
|
-
*/
|
|
29
|
-
className?: string;
|
|
30
|
-
}
|
|
31
|
-
declare const BusyLoader: FC<IBusyLoaderProps>;
|
|
32
|
-
export { IBusyLoaderProps, BusyLoader as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { IBusyLoaderProps, default as default } from './BusyLoader';
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import React, { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import './Button.scss';
|
|
3
|
-
export interface IButtonProps extends HTMLAttributes<HTMLButtonElement> {
|
|
4
|
-
/**
|
|
5
|
-
* Any valid React node <br>
|
|
6
|
-
* Possible values: `ReactNode | string`
|
|
7
|
-
*/
|
|
8
|
-
children: ReactNode | string;
|
|
9
|
-
/**
|
|
10
|
-
* The way how the Button should be displayed <br/>
|
|
11
|
-
* Possible values: `default | outline | minimal | grayscale | clean`
|
|
12
|
-
*/
|
|
13
|
-
appearance?: 'default' | 'outline' | 'minimal' | 'grayscale' | 'clean';
|
|
14
|
-
/**
|
|
15
|
-
* Button size <br/>
|
|
16
|
-
* Possible values: `default | medium | big`
|
|
17
|
-
*/
|
|
18
|
-
size?: 'default' | 'medium' | 'big';
|
|
19
|
-
/**
|
|
20
|
-
* How to display inscription in relation to it's parent in Button <br/>
|
|
21
|
-
* Possible values: `default | content-size | full-width`
|
|
22
|
-
*/
|
|
23
|
-
flexibility?: 'default' | 'content-size' | 'full-width';
|
|
24
|
-
/**
|
|
25
|
-
* Button color <br/>
|
|
26
|
-
* Possible values: `primary | confirm | danger | default`
|
|
27
|
-
*/
|
|
28
|
-
color?: 'primary' | 'confirm' | 'danger' | 'default';
|
|
29
|
-
/**
|
|
30
|
-
* Button children direction either from the start, or from the end <br/>
|
|
31
|
-
* Possible values: `start | end`
|
|
32
|
-
*/
|
|
33
|
-
itemsDirection?: 'start' | 'end';
|
|
34
|
-
/**
|
|
35
|
-
* Button corner radius <br/>
|
|
36
|
-
* Possible values: `round | smooth`
|
|
37
|
-
*/
|
|
38
|
-
cornerRadius?: 'round' | 'smooth';
|
|
39
|
-
/**
|
|
40
|
-
* The property will add an "Icon" as Button child. The valid values can be found in "Icon" atom <br>
|
|
41
|
-
* Possible values: `ReactNode | string`
|
|
42
|
-
*/
|
|
43
|
-
icon?: ReactNode | string;
|
|
44
|
-
/**
|
|
45
|
-
* Button disabled state
|
|
46
|
-
*/
|
|
47
|
-
disabled?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Button active state
|
|
50
|
-
*/
|
|
51
|
-
active?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Adding shadow to button
|
|
54
|
-
*/
|
|
55
|
-
withShadow?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Button additional className
|
|
58
|
-
*/
|
|
59
|
-
className?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Button text transforms to spinner
|
|
62
|
-
*/
|
|
63
|
-
loading?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* aria-label for button.
|
|
66
|
-
*/
|
|
67
|
-
ariaLabel?: string;
|
|
68
|
-
}
|
|
69
|
-
declare const Button: React.ForwardRefExoticComponent<IButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
70
|
-
export default Button;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { IButtonProps, default as default } from './Button';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { IDividerProps, default as default } from './Divider';
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { FC, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import './Empty.scss';
|
|
3
|
-
interface IEmptyProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
4
|
-
/**
|
|
5
|
-
* Available style varieties of Empty atom to display <br/>
|
|
6
|
-
* Possible values: `with-circles | without-circles | greyscale | transparent`
|
|
7
|
-
*/
|
|
8
|
-
appearance?: 'with-circles' | 'without-circles' | 'greyscale' | 'transparent';
|
|
9
|
-
/**
|
|
10
|
-
* Types of data Empty atom should represent <br/>
|
|
11
|
-
* Possible values: `data | image | search | message`
|
|
12
|
-
*/
|
|
13
|
-
type?: 'data' | 'image' | 'search' | 'message';
|
|
14
|
-
/**
|
|
15
|
-
* Empty atom size <br/>
|
|
16
|
-
* Possible values: `big | medium | small`
|
|
17
|
-
*/
|
|
18
|
-
size?: 'big' | 'medium' | 'small';
|
|
19
|
-
/**
|
|
20
|
-
* Will add a title to the Empty atom. Any valid React node <br/>
|
|
21
|
-
* Possible values: `ReactNode | string`
|
|
22
|
-
*/
|
|
23
|
-
title?: ReactNode | string;
|
|
24
|
-
/**
|
|
25
|
-
* Will add a subtitle to the Empty atom. Any valid React node <br/>
|
|
26
|
-
* Possible values: `ReactNode | string`
|
|
27
|
-
*/
|
|
28
|
-
subTitle?: ReactNode | string;
|
|
29
|
-
/**
|
|
30
|
-
* When set to "true" Empty atom will show a predefined image based on "appearance" and "type" props
|
|
31
|
-
*/
|
|
32
|
-
withImage?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Additional className
|
|
35
|
-
*/
|
|
36
|
-
className?: string;
|
|
37
|
-
}
|
|
38
|
-
declare const Empty: FC<IEmptyProps>;
|
|
39
|
-
export { IEmptyProps, Empty as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { IEmptyProps, default as default } from './Empty';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IEmptyProps } from './index';
|
|
2
|
-
type ImageTypes = {
|
|
3
|
-
[key in NonNullable<IEmptyProps['type']>]: string;
|
|
4
|
-
};
|
|
5
|
-
type ImagesTypes = {
|
|
6
|
-
[key in NonNullable<IEmptyProps['appearance']>]: ImageTypes;
|
|
7
|
-
};
|
|
8
|
-
export declare const images: ImagesTypes;
|
|
9
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { IHelperTextProps, default as default } from './HelperText';
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { FC, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import './Image.scss';
|
|
3
|
-
export interface IImageProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
/**
|
|
5
|
-
* Image path to display
|
|
6
|
-
*/
|
|
7
|
-
src: string;
|
|
8
|
-
/**
|
|
9
|
-
* Will add a border when set to "true"
|
|
10
|
-
*/
|
|
11
|
-
withBorder: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* The property will add a checkbox and an overlay over the image.
|
|
14
|
-
*/
|
|
15
|
-
selectMode: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Customize checkbox(will be rendered only when "selectMode" is set to "true").
|
|
18
|
-
*/
|
|
19
|
-
checkboxProps?: {};
|
|
20
|
-
/**
|
|
21
|
-
* Customize image tag with this property.
|
|
22
|
-
*/
|
|
23
|
-
imageProps?: HTMLAttributes<HTMLImageElement>;
|
|
24
|
-
/**
|
|
25
|
-
* The property will render "actions" when "selectMode" is not setted to "true". Any valid React node
|
|
26
|
-
*/
|
|
27
|
-
actions?: ReactNode;
|
|
28
|
-
/**
|
|
29
|
-
* Will add a title to the top of Image atom. Any valid React node
|
|
30
|
-
*/
|
|
31
|
-
title?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Title for 'Tooltip'. <br>
|
|
34
|
-
* Possible values: `string | ReactNode`
|
|
35
|
-
*/
|
|
36
|
-
tooltipTitle?: string | ReactNode;
|
|
37
|
-
/**
|
|
38
|
-
* Additional className
|
|
39
|
-
*/
|
|
40
|
-
className?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Image atom also can be included in "Form" organism. It can be validated as other "Form" elements
|
|
43
|
-
*/
|
|
44
|
-
isValid: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Empty state text for component
|
|
47
|
-
*/
|
|
48
|
-
emptyText?: string;
|
|
49
|
-
}
|
|
50
|
-
declare const Image: FC<IImageProps>;
|
|
51
|
-
export default Image;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { IImageProps, default as default } from './Image';
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { FC, MouseEvent } from 'react';
|
|
2
|
-
import './ImagePreview.scss';
|
|
3
|
-
interface IImagePreviewProps {
|
|
4
|
-
/**
|
|
5
|
-
* Image file display name
|
|
6
|
-
*/
|
|
7
|
-
name?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Image path to display
|
|
10
|
-
*/
|
|
11
|
-
path: string;
|
|
12
|
-
/**
|
|
13
|
-
* Event fires when click on close button
|
|
14
|
-
*/
|
|
15
|
-
onClose?: (event: MouseEvent) => void;
|
|
16
|
-
/**
|
|
17
|
-
* Show image size
|
|
18
|
-
*/
|
|
19
|
-
showSize?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Adding download functional for image
|
|
22
|
-
*/
|
|
23
|
-
showDownload?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Adding rotation functional for image
|
|
26
|
-
*/
|
|
27
|
-
showRotate?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Show dimensions of image
|
|
30
|
-
*/
|
|
31
|
-
showDimensions?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Turning on magnifier functional
|
|
34
|
-
*/
|
|
35
|
-
withMagnifier?: boolean;
|
|
36
|
-
/**
|
|
37
|
-
* Show image in the modal
|
|
38
|
-
*/
|
|
39
|
-
withModal?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Magnifier default value
|
|
42
|
-
*/
|
|
43
|
-
magnifierDefaultValue?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* This is for fetch image for example through this prop you can pass token.
|
|
46
|
-
* Provide an Object that will spread in Request Headers:{...customHeaders} in second parameter for fetch function.
|
|
47
|
-
* For example { 'Content-Type': 'application/json'} it will convert fetch(URL,{headers{'Content-Type': 'application/json'}})
|
|
48
|
-
*/
|
|
49
|
-
customHeaders?: HeadersInit;
|
|
50
|
-
/**
|
|
51
|
-
* The prop is responsible for header view and alignment for mobile device
|
|
52
|
-
*/
|
|
53
|
-
isMobile?: boolean;
|
|
54
|
-
}
|
|
55
|
-
declare const ImagePreview: FC<IImagePreviewProps>;
|
|
56
|
-
export { IImagePreviewProps, ImagePreview as default };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface IMagnifierProps {
|
|
3
|
-
/**
|
|
4
|
-
* Image path to display. <span style="color: red">( Required )</span>
|
|
5
|
-
*/
|
|
6
|
-
imgUrl: string;
|
|
7
|
-
/**
|
|
8
|
-
* On or off rotation functionality
|
|
9
|
-
*/
|
|
10
|
-
withRotation?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* On or off magnifier functionality
|
|
13
|
-
*/
|
|
14
|
-
withMagnifier?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Zoom Ratio
|
|
17
|
-
*/
|
|
18
|
-
zoom?: number;
|
|
19
|
-
/**
|
|
20
|
-
* Hide or show magnifier
|
|
21
|
-
*/
|
|
22
|
-
showMagnifier?: boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Name for image alt
|
|
25
|
-
*/
|
|
26
|
-
name?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Additional className for img
|
|
29
|
-
*/
|
|
30
|
-
className?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Shape for magnifier
|
|
33
|
-
*/
|
|
34
|
-
magnifierAppearance?: 'square' | 'circle';
|
|
35
|
-
}
|
|
36
|
-
interface IMagnifierForwardRef {
|
|
37
|
-
rotate?: (deg?: number) => void;
|
|
38
|
-
}
|
|
39
|
-
declare const Magnifier: React.ForwardRefExoticComponent<IMagnifierProps & React.RefAttributes<IMagnifierForwardRef>>;
|
|
40
|
-
export { IMagnifierProps, IMagnifierForwardRef, Magnifier as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { IImagePreviewProps, default as default } from './ImagePreviewHOC';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { IInfoProps, default as default } from './Info';
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { FC, HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import './KeyValue.scss';
|
|
3
|
-
export interface IKeyValueProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
/**
|
|
5
|
-
* Label for 'KeyValue'. <br/>
|
|
6
|
-
* Possible values: `ReactNode | string`
|
|
7
|
-
*/
|
|
8
|
-
label: ReactNode | string;
|
|
9
|
-
/**
|
|
10
|
-
* Value for 'KeyValue'.<br/>
|
|
11
|
-
* Possible values: `ReactNode | string`
|
|
12
|
-
*/
|
|
13
|
-
value?: ReactNode | string;
|
|
14
|
-
/**
|
|
15
|
-
* External/Additional className that can be added to 'KeyValue' component.
|
|
16
|
-
*/
|
|
17
|
-
className?: string;
|
|
18
|
-
/**
|
|
19
|
-
* The way how the KeyValue should be displayed.<br/>
|
|
20
|
-
* Possible values: `horizontal | vertical`
|
|
21
|
-
*/
|
|
22
|
-
appearance: 'horizontal' | 'vertical';
|
|
23
|
-
/**
|
|
24
|
-
* The property will show icon.
|
|
25
|
-
*/
|
|
26
|
-
icon?: string;
|
|
27
|
-
}
|
|
28
|
-
declare const KeyValue: FC<IKeyValueProps>;
|
|
29
|
-
export default KeyValue;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { IKeyValueProps, default as default } from './KeyValue';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ILabelProps, default as default } from './Label';
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './LinkButton.scss';
|
|
3
|
-
interface ILinkButtonProps {
|
|
4
|
-
/**
|
|
5
|
-
* Href for <code>\<a\></code> tag if you don't pass instead of <code>\<a\></code> tag will be <code>\<button\></code> tag .
|
|
6
|
-
*/
|
|
7
|
-
href?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Fires event when user click on LinkButton.
|
|
10
|
-
* <br>
|
|
11
|
-
* <code>(event: Event) => void </code>
|
|
12
|
-
*/
|
|
13
|
-
onClick?: (event: React.MouseEvent) => void;
|
|
14
|
-
/**
|
|
15
|
-
* Fires event when the element has been pressed.
|
|
16
|
-
* <br>
|
|
17
|
-
* <code>(event: Event) => void</code>
|
|
18
|
-
*/
|
|
19
|
-
onMouseDown?: (event: React.MouseEvent) => void;
|
|
20
|
-
/**
|
|
21
|
-
* The LinkButton additional className.
|
|
22
|
-
*/
|
|
23
|
-
className?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Any valid React node.
|
|
26
|
-
*/
|
|
27
|
-
children?: React.ReactNode;
|
|
28
|
-
/**
|
|
29
|
-
* Icon to render before the LinkButton. Should be an icon component's type.
|
|
30
|
-
*/
|
|
31
|
-
iconBefore?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Icon to render after the LinkButton. Should be an icon component's type.
|
|
34
|
-
*/
|
|
35
|
-
iconAfter?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Makes the LinkButton disabled.
|
|
38
|
-
*/
|
|
39
|
-
isDisabled?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* aria-label for button or LinkButton.
|
|
42
|
-
*/
|
|
43
|
-
ariaLabel?: string;
|
|
44
|
-
}
|
|
45
|
-
declare const LinkButton: React.FC<ILinkButtonProps>;
|
|
46
|
-
export { ILinkButtonProps, LinkButton as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ILinkButtonProps, default as default } from './LinkButton';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ILoaderProps, default as default } from './Loader';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { IPillProps, default as default } from './Pill';
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
import './Rating.scss';
|
|
3
|
-
export interface IRatingProps {
|
|
4
|
-
defaultValue?: number;
|
|
5
|
-
/**
|
|
6
|
-
* The currently selected rating value. Use this to control the component from the outside.<br>
|
|
7
|
-
* If this prop is used the component will lose default behavior related to rating state.
|
|
8
|
-
*/
|
|
9
|
-
value?: number;
|
|
10
|
-
/**
|
|
11
|
-
* The number of rating elements to render.
|
|
12
|
-
*/
|
|
13
|
-
count?: number;
|
|
14
|
-
/**
|
|
15
|
-
* The icon or character used to represent each rating element.<br>
|
|
16
|
-
* It can be a `React functional component`, `string`, `number`, or a `function` that returns a React node.<br>
|
|
17
|
-
* Possible values: `FC | string | number | ((i: number) => ReactNode)`
|
|
18
|
-
*/
|
|
19
|
-
character?: FC | string | number | ((i: number) => ReactNode);
|
|
20
|
-
/**
|
|
21
|
-
* The color is used for the rating elements when hovered over or selected.
|
|
22
|
-
*/
|
|
23
|
-
color?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The background color of the rating elements.
|
|
26
|
-
*/
|
|
27
|
-
bgColor?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Allows users to select half values in the rating component, enabling finer granularity.<br>
|
|
30
|
-
* For example, if `count` is 5, users can select 1, 1.5, 2, 2.5, and so on up to 5.
|
|
31
|
-
*/
|
|
32
|
-
halfAllow?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* When set to `true`, the rating component becomes read-only, preventing any interaction.
|
|
35
|
-
*/
|
|
36
|
-
readonly?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* The size of the rating elements.<br>
|
|
39
|
-
* Possible values: `small | medium | big`
|
|
40
|
-
*/
|
|
41
|
-
size?: 'small' | 'medium' | 'big';
|
|
42
|
-
/**
|
|
43
|
-
* Callback function that is called when the rating value changes.<br>
|
|
44
|
-
* Receives the new rating value as an argument.
|
|
45
|
-
*/
|
|
46
|
-
onChange?: (rating: number) => void;
|
|
47
|
-
}
|
|
48
|
-
declare const Rating: FC<IRatingProps>;
|
|
49
|
-
export default Rating;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { IRatingProps, default as default } from './Rating';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ITextLinkProps, default as default } from './TextLink';
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { RefObject, FC } from 'react';
|
|
2
|
-
import './Copy.scss';
|
|
3
|
-
interface ICopyProps {
|
|
4
|
-
/**
|
|
5
|
-
* Size of the icon: 'small', 'medium', 'big',
|
|
6
|
-
*/
|
|
7
|
-
size?: 'small' | 'medium' | 'big';
|
|
8
|
-
/**
|
|
9
|
-
* Additional CSS class name(s) to apply to the icon for styling
|
|
10
|
-
*/
|
|
11
|
-
className?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Reference to the content you want to copy
|
|
14
|
-
*/
|
|
15
|
-
contentRef?: RefObject<HTMLElement>;
|
|
16
|
-
/**
|
|
17
|
-
* Determines whether the copy icon is displayed only on hover.
|
|
18
|
-
*/
|
|
19
|
-
showOnHover?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Tooltip text to display when the copy action is available. It will be shown when the user hovers over the copy icon.
|
|
22
|
-
*/
|
|
23
|
-
copyTooltipText?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Tooltip text to display when the copy action has been performed. It will be shown when the user clicks on the copy icon.
|
|
26
|
-
*/
|
|
27
|
-
copiedTooltipText?: string;
|
|
28
|
-
/**
|
|
29
|
-
* The value to copy. If specified, this will be copied instead of the content referenced by contentRef.
|
|
30
|
-
*/
|
|
31
|
-
value?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Determines the visibility state of the copy icon. If true, the icon is visible regardless of hover or controlled visibility.
|
|
34
|
-
*/
|
|
35
|
-
isVisible?: boolean;
|
|
36
|
-
}
|
|
37
|
-
declare const Copy: FC<ICopyProps>;
|
|
38
|
-
export { ICopyProps, Copy as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ICopyProps, default as default } from './Copy';
|