@geneui/components 2.11.2 → 2.12.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/{ActionableList.js → ActionableList/index.js} +83 -152
- package/{AdvancedSearch.js → AdvancedSearch/index.js} +291 -304
- package/Alert/index.js +97 -0
- package/Avatar/index.js +30 -0
- package/Badge/index.js +75 -0
- package/{Breadcrumb.js → Breadcrumb/index.js} +32 -31
- package/BusyLoader/index.js +68 -0
- package/Button/index.js +129 -0
- package/CHANGELOG.md +40 -0
- package/{Card.js → Card/index.js} +82 -94
- package/{CardList.js → CardList/index.js} +118 -165
- package/{CellMeasurerCache-b786dd93.js → CellMeasurerCache-bc2163c1.js} +2 -2
- package/{index-9164a86d.js → Charts/index.js} +17103 -30447
- package/{Checkbox.js → Checkbox/index.js} +37 -38
- package/{CheckboxGroup.js → CheckboxGroup/index.js} +41 -42
- package/{CheckboxGroupWithSearch.js → CheckboxGroupWithSearch/index.js} +64 -65
- package/{Collapse.js → Collapse/index.js} +28 -29
- package/{ColorPicker.js → ColorPicker/index.js} +16 -16
- package/ComboBox/index.js +525 -0
- package/Counter/index.js +310 -0
- package/{DateFilter.js → DateFilter/index.js} +46 -43
- package/{DatePicker.js → DatePicker/index.js} +106 -108
- package/{index-0199942c.js → DatePickerInput/index.js} +103 -89
- package/{Divider.js → Divider/index.js} +9 -10
- package/{Drawer.js → Drawer/index.js} +40 -41
- package/Dropdown/index.js +41 -0
- package/{Editor.js → Editor/index.js} +165 -164
- package/{Empty.js → Empty/index.js} +12 -13
- package/{ExtendedInput.js → ExtendedInput/index.js} +81 -71
- package/Form/index.js +86 -0
- package/{FormContainer.js → FormContainer/index.js} +25 -26
- package/FormableCheckbox/index.js +26 -0
- package/FormableDatePicker/index.js +42 -0
- package/FormableDropdown/index.js +48 -0
- package/FormableEditor/index.js +24 -0
- package/{FormableHOC-21051057.js → FormableHOC-55263162.js} +3 -3
- package/FormableMultiSelectDropdown/index.js +48 -0
- package/FormableNumberInput/index.js +32 -0
- package/FormableRadio/index.js +22 -0
- package/FormableSwitcher/index.js +22 -0
- package/FormableTextInput/index.js +32 -0
- package/FormableUploader/index.js +42 -0
- package/GeneUIProvider/index.js +282 -0
- package/{Grid.js → Grid/index.js} +27 -27
- package/Holder/index.js +261 -0
- package/{Icon.js → Icon/index.js} +9 -10
- package/Image/index.js +129 -0
- package/ImagePreview/index.js +481 -0
- package/{KeyValue.js → KeyValue/index.js} +11 -12
- package/LICENSE +21 -0
- package/Label/index.js +57 -0
- package/LinkButton/index.js +67 -0
- package/{Menu.js → Menu/index.js} +27 -28
- package/MobileNavigation/index.js +94 -0
- package/{MobilePopup.js → MobilePopup/index.js} +42 -41
- package/{Modal.js → Modal/index.js} +39 -40
- package/ModuleTitle/index.js +143 -0
- package/{NavigationMenu.js → NavigationMenu/index.js} +30 -29
- package/Notification/index.js +119 -0
- package/Option/index.js +184 -0
- package/Overlay/index.js +189 -0
- package/Overspread/index.js +287 -0
- package/{Pagination.js → Pagination/index.js} +35 -34
- package/Paper/index.js +96 -0
- package/{index-084588e9.js → Popover/index.js} +48 -58
- package/{index-5e96cb4d.js → PopoverV2/index.js} +57 -1006
- package/{Portal.js → Portal/index.js} +7 -8
- package/{Products.js → Products/index.js} +20 -21
- package/Profile/index.js +585 -0
- package/Progress/index.js +199 -0
- package/{QRCode.js → QRCode/index.js} +4 -6
- package/{Radio.js → Radio/index.js} +25 -26
- package/{RadioGroup.js → RadioGroup/index.js} +17 -18
- package/{index-00fe8887.js → Range/index.js} +29 -32
- package/RichEditor/index.js +13 -0
- package/{RichEditor-98accead.js → RichEditor-8b9c3afa.js} +18 -18
- package/{Scrollbar.js → Scrollbar/index.js} +15 -17
- package/{Search.js → Search/index.js} +25 -24
- package/SearchWithDropdown/index.js +138 -0
- package/Section/index.js +61 -0
- package/{SkeletonLoader.js → SkeletonLoader/index.js} +13 -14
- package/{Slider.js → Slider/index.js} +46 -43
- package/Status/index.js +103 -0
- package/Steps/index.js +313 -0
- package/{index-897d8240.js → SuggestionList/index.js} +15 -38
- package/{Switcher.js → Switcher/index.js} +30 -31
- package/Table/index.js +53 -0
- package/{TableCompositions.js → TableCompositions/index.js} +132 -168
- package/Tabs/index.js +235 -0
- package/Tag/index.js +102 -0
- package/{TextLink.js → TextLink/index.js} +3 -3
- package/{Textarea.js → Textarea/index.js} +66 -65
- package/{Time.js → Time/index.js} +13 -14
- package/TimePicker/index.js +556 -0
- package/Timeline/index.js +113 -0
- package/Title/index.js +65 -0
- package/{Toaster.js → Toaster/index.js} +19 -20
- package/{Tooltip.js → Tooltip/index.js} +27 -28
- package/{TransferList.js → TransferList/index.js} +44 -55
- package/{index-135b9d17.js → Uploader/index.js} +119 -116
- package/{ValidatableCheckbox.js → ValidatableCheckbox/index.js} +23 -24
- package/{ValidatableDatePicker.js → ValidatableDatePicker/index.js} +45 -42
- package/ValidatableDropdown/index.js +139 -0
- package/ValidatableElements/index.js +68 -0
- package/ValidatableMultiSelectDropdown/index.js +150 -0
- package/{ValidatableNumberInput.js → ValidatableNumberInput/index.js} +34 -33
- package/{ValidatableRadio.js → ValidatableRadio/index.js} +19 -20
- package/{ValidatableSwitcher.js → ValidatableSwitcher/index.js} +19 -20
- package/{ValidatableTextInput.js → ValidatableTextInput/index.js} +32 -31
- package/{ValidatableTimeInput.js → ValidatableTimeInput/index.js} +31 -30
- package/{ValidatableUploader.js → ValidatableUploader/index.js} +36 -34
- package/Widget/index.js +227 -0
- package/config-0ca92874.js +31 -0
- package/{configs-91c86664.js → configs-fed6ac34.js} +28 -1
- package/hooks/useBodyScroll.js +16 -0
- package/hooks/useClick.js +18 -0
- package/{useClickOutside-5183e396.js → hooks/useClickOutside.js} +1 -1
- package/hooks/useDebounceHook.js +16 -0
- package/{useDeviceType-dd51db38.js → hooks/useDeviceType.js} +4 -3
- package/hooks/useDidMount.js +15 -0
- package/{useEllipsisDetection-ef536015.js → hooks/useEllipsisDetection.js} +1 -1
- package/hooks/useForceUpdate.js +8 -0
- package/hooks/useImgDownload.js +18 -0
- package/{useKeyDown-38102ae7.js → hooks/useKeyDown.js} +1 -1
- package/hooks/useMount.js +13 -0
- package/hooks/useMutationObserver.js +21 -0
- package/hooks/usePrevious.js +10 -0
- package/hooks/useThrottle.js +16 -0
- package/hooks/useToggle.js +11 -0
- package/hooks/useUpdatableRef.js +14 -0
- package/hooks/useUpdate.js +10 -0
- package/{useWidth-9f4647f8.js → hooks/useWidth.js} +2 -2
- package/{useWindowSize-80369d76.js → hooks/useWindowSize.js} +1 -1
- package/index-45eafea6.js +90 -0
- package/index-583e0b30.js +4 -0
- package/{index-8c98317a.js → index-78d2ea5b.js} +678 -752
- package/{index-ac59cb10.js → index-a0e4e333.js} +6 -6
- package/{index-e8776f3d.js → index-b1e429a7.js} +1 -1
- package/index-bd525a3a.js +10054 -0
- package/index.d.ts +115 -0
- package/index.js +138 -113
- package/index.mobile.d.ts +16 -0
- package/jsx-runtime-57b40d9e.js +957 -0
- package/lib/atoms/Avatar/Avatar.d.ts +34 -0
- package/lib/atoms/Avatar/index.d.ts +1 -0
- package/lib/atoms/LinkButton/LinkButton.d.ts +46 -0
- package/lib/atoms/LinkButton/index.d.ts +1 -0
- package/{objectWithoutPropertiesLoose-299691d8.js → objectWithoutPropertiesLoose-d8a4a68c.js} +12 -12
- package/package.json +42 -22
- package/{rangeAndSlider-20599da4.js → rangeAndSlider-0301a458.js} +220 -375
- package/{react-beautiful-dnd.esm-38c37304.js → react-beautiful-dnd.esm-04c14563.js} +9 -9
- package/react-lifecycles-compat.es-6e1f3768.js +158 -0
- package/Alert.js +0 -98
- package/Avatar.js +0 -77
- package/Badge.js +0 -76
- package/BusyLoader.js +0 -69
- package/Button.js +0 -130
- package/Charts.js +0 -99
- package/ComboBox.js +0 -99
- package/Counter.js +0 -99
- package/DatePickerInput.js +0 -30
- package/Dropdown.js +0 -99
- package/Form.js +0 -116
- package/FormableCheckbox.js +0 -27
- package/FormableDatePicker.js +0 -39
- package/FormableDropdown.js +0 -105
- package/FormableEditor.js +0 -24
- package/FormableMultiSelectDropdown.js +0 -105
- package/FormableNumberInput.js +0 -31
- package/FormableRadio.js +0 -23
- package/FormableSwitcher.js +0 -23
- package/FormableTextInput.js +0 -31
- package/FormableUploader.js +0 -40
- package/GeneUIProvider.js +0 -256
- package/Holder.js +0 -99
- package/Image.js +0 -130
- package/ImagePreview.js +0 -99
- package/Label.js +0 -58
- package/LinkButton.js +0 -104
- package/MobileNavigation.js +0 -95
- package/ModuleTitle.js +0 -99
- package/Notification.js +0 -120
- package/Option.js +0 -186
- package/Overlay.js +0 -99
- package/Overspread.js +0 -343
- package/Paper.js +0 -97
- package/Popover.js +0 -20
- package/PopoverV2.js +0 -19
- package/Profile.js +0 -99
- package/Progress.js +0 -200
- package/Range.js +0 -14
- package/RichEditor.js +0 -13
- package/SearchWithDropdown.js +0 -195
- package/Section.js +0 -62
- package/Status.js +0 -104
- package/Steps.js +0 -312
- package/SuggestionList.js +0 -15
- package/Table.js +0 -102
- package/Tabs.js +0 -236
- package/Tag.js +0 -103
- package/TimePicker.js +0 -99
- package/Timeline.js +0 -114
- package/Title.js +0 -66
- package/Uploader.js +0 -32
- package/ValidatableDropdown.js +0 -99
- package/ValidatableElements.js +0 -99
- package/ValidatableMultiSelectDropdown.js +0 -99
- package/Widget.js +0 -99
- package/globalStyling-9c60a159.js +0 -4
- package/index-2030e31c.js +0 -4
- package/index-b7a33c58.js +0 -11
- package/index-e0af0caf.js +0 -1182
- package/useMount-6fef51a5.js +0 -9
package/Steps.js
DELETED
|
@@ -1,312 +0,0 @@
|
|
|
1
|
-
import React__default, { useRef, useState } from 'react';
|
|
2
|
-
import { p as propTypesExports } from './index-e0af0caf.js';
|
|
3
|
-
import { c as classnames } from './index-6ff23041.js';
|
|
4
|
-
import { h as stepsConfig } from './configs-91c86664.js';
|
|
5
|
-
import Icon from './Icon.js';
|
|
6
|
-
import Tooltip from './Tooltip.js';
|
|
7
|
-
import './dateValidation-67caec66.js';
|
|
8
|
-
import { d as debounce } from './debounce-4419bc2f.js';
|
|
9
|
-
import 'react-dom';
|
|
10
|
-
import { P as Popover } from './index-084588e9.js';
|
|
11
|
-
import { s as styleInject } from './style-inject.es-746bb8ed.js';
|
|
12
|
-
import { _ as _extends } from './_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
13
|
-
import { c as childrenOf } from './index-ac59cb10.js';
|
|
14
|
-
import './globalStyling-9c60a159.js';
|
|
15
|
-
import './Popover-f4d1cac0.js';
|
|
16
|
-
import './_commonjsHelpers-24198af3.js';
|
|
17
|
-
import './useDeviceType-dd51db38.js';
|
|
18
|
-
import './useWindowSize-80369d76.js';
|
|
19
|
-
import './GeneUIProvider.js';
|
|
20
|
-
import './index-122432cd.js';
|
|
21
|
-
import './Portal.js';
|
|
22
|
-
import './Scrollbar.js';
|
|
23
|
-
import './guid-8ddf77b3.js';
|
|
24
|
-
|
|
25
|
-
var css_248z = "[data-gene-ui-version=\"1.0.0\"] .steps-holder{--circle-font-size:1.2rem;--font-size:1.2rem;--circle-size:2.6rem;--min-height:8.8rem;display:flex;-webkit-user-select:none;user-select:none}[data-gene-ui-version=\"1.0.0\"] .steps-holder.s-big{--circle-font-size:1.6rem;--font-size:1.4rem;--circle-size:3.6rem;--min-height:9.8rem}[data-gene-ui-version=\"1.0.0\"] .steps-holder.s-big .bc-icon-selected{font-size:var(--circle-size)}[data-gene-ui-version=\"1.0.0\"] .steps-holder.d-horizontal{align-items:center;min-height:var(--min-height);text-align:center;width:100%}[data-gene-ui-version=\"1.0.0\"] .steps-holder.d-horizontal>li:not(:first-child){margin:0 0 0 1rem}html[dir=rtl] .steps-holder.d-horizontal>li:not(:first-child){margin:0 1rem 0 0}[data-gene-ui-version=\"1.0.0\"] .steps-holder.d-horizontal .line{height:1px;width:100%}[data-gene-ui-version=\"1.0.0\"] .steps-holder.d-horizontal .line:before{height:inherit;width:0}[data-gene-ui-version=\"1.0.0\"] .steps-holder.d-horizontal .line.active:before{width:100%}[data-gene-ui-version=\"1.0.0\"] .steps-holder.d-vertical{align-items:flex-start;flex-direction:column;height:100%}[data-gene-ui-version=\"1.0.0\"] .steps-holder.d-vertical>li:not(:first-child){margin:.8rem 0 0}[data-gene-ui-version=\"1.0.0\"] .steps-holder.d-vertical .line-box{display:flex;justify-content:center;width:var(--circle-size)}[data-gene-ui-version=\"1.0.0\"] .a-dots.steps-holder.d-vertical .line-box{width:1.9rem}[data-gene-ui-version=\"1.0.0\"] .steps-holder.d-vertical .line{height:100%;min-height:3.4rem;width:1px}[data-gene-ui-version=\"1.0.0\"] .steps-holder.d-vertical .line:before{height:0;width:inherit}[data-gene-ui-version=\"1.0.0\"] .steps-holder.d-vertical .line.active:before{height:100%}[data-gene-ui-version=\"1.0.0\"] .steps-holder.d-vertical .step-texts{margin:0 0 0 1.5rem}html[dir=rtl] .steps-holder.d-vertical .step-texts{margin:0 1.5rem 0 0}[data-gene-ui-version=\"1.0.0\"] .steps-holder .line{background:rgba(var(--background-sc-rgb),.04)}[data-gene-ui-version=\"1.0.0\"] .steps-holder .line:before{background:var(--hero);content:\"\";display:block;transition:width .4s,height .4s}[data-gene-ui-version=\"1.0.0\"] .steps-holder.a-dots .line{background:var(--hero)}[data-gene-ui-version=\"1.0.0\"] .steps-holder .s-success{--hero:var(--confirm);--hero-hover:var(--confirm-hover);--hero-sc:var(--confirm-sc);--hero-rgb:var(--confirm-rgb);--hero-sc-rgb:var(--confirm-sc-rgb)}[data-gene-ui-version=\"1.0.0\"] .steps-holder .s-fail{--hero:var(--danger);--hero-hover:var(--danger-hover);--hero-sc:var(--danger-sc);--hero-rgb:var(--danger-rgb);--hero-sc-rgb:var(--danger-sc-rgb)}[data-gene-ui-version=\"1.0.0\"] .step{align-items:center;display:flex;flex-shrink:0;font:600 var(--font-size)/1.8rem var(--font-family);position:relative}[data-gene-ui-version=\"1.0.0\"] .step.clickable{cursor:pointer}[data-gene-ui-version=\"1.0.0\"] .step.clickable .step-circle:before{border:1px solid var(--hero);border-radius:100%;bottom:-.4rem;content:\"\";display:block;left:-.4rem;position:absolute;right:-.4rem;top:-.4rem;transform:scale(0);transition:transform .4s,border-color .4s}[data-gene-ui-version=\"1.0.0\"] .s-initial.step.clickable .step-circle:before,[data-gene-ui-version=\"1.0.0\"] .steps-holder:not(.highlight-current) .s-current.step.clickable .step-circle:before{border-color:rgba(var(--background-sc-rgb),.06)}@media (hover:hover){[data-gene-ui-version=\"1.0.0\"] .step.clickable:hover .step-circle:before{transform:scale(1)}}[data-gene-ui-version=\"1.0.0\"] .step.clickable.s-activated .step-circle:before{transform:scale(1)}[data-gene-ui-version=\"1.0.0\"] .line-box{flex:auto}[data-gene-ui-version=\"1.0.0\"] .d-horizontal .step-label,[data-gene-ui-version=\"1.0.0\"] .d-horizontal .step-title{bottom:100%;left:50%;position:absolute;transform:translateX(-50%);white-space:nowrap;width:auto}[data-gene-ui-version=\"1.0.0\"] .d-horizontal .step-title{margin:0 0 1rem}[data-gene-ui-version=\"1.0.0\"] .d-horizontal .step-title:nth-last-child(2){bottom:auto;margin:1rem 0 0;top:100%}[data-gene-ui-version=\"1.0.0\"] .step-label{opacity:.5}[data-gene-ui-version=\"1.0.0\"] .d-horizontal .step-label{margin:0 0 1.6rem}[data-gene-ui-version=\"1.0.0\"] .step-texts{align-items:flex-start;display:flex;flex-direction:column;pointer-events:none}[data-gene-ui-version=\"1.0.0\"] .step-texts.both{font-size:1.4rem}[data-gene-ui-version=\"1.0.0\"] .step-circle{align-items:center;background:rgba(var(--background-sc-rgb),.04);border-radius:100%;display:flex;font-size:var(--circle-font-size);height:var(--circle-size);justify-content:center;position:relative;transition:color .3s,background .3s;width:var(--circle-size)}[data-gene-ui-version=\"1.0.0\"] .highlight-current .s-current .step-circle,[data-gene-ui-version=\"1.0.0\"] .passed .step-circle,[data-gene-ui-version=\"1.0.0\"] .s-activated .step-circle{background:var(--hero);color:var(--hero-sc)}[data-gene-ui-version=\"1.0.0\"] .step-layer{align-items:center;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;transition:transform .4s;width:100%}[data-gene-ui-version=\"1.0.0\"] .passed .step-layer.layer-1,[data-gene-ui-version=\"1.0.0\"] .step-layer.layer-2{transform:scale(0)}[data-gene-ui-version=\"1.0.0\"] .passed .step-layer.layer-2{transform:scale(1)}[data-gene-ui-version=\"1.0.0\"] .step-dot{--size:1.9rem;--inner-size:0.9rem;align-items:center;display:flex;height:var(--size);justify-content:center;position:relative;width:var(--size)}[data-gene-ui-version=\"1.0.0\"] .view-normal .step-dot{--size:15px;--inner-size:7px}[data-gene-ui-version=\"1.0.0\"] .view-small .step-dot{--size:11px;--inner-size:5px}[data-gene-ui-version=\"1.0.0\"] .step-dot:after,[data-gene-ui-version=\"1.0.0\"] .step-dot:before{border-radius:100%;box-shadow:inset 0 0 0 .2rem var(--hero);content:\"\";display:block}[data-gene-ui-version=\"1.0.0\"] .step-dot:before{content:\"\";height:var(--inner-size);transition:box-shadow .3s;width:var(--inner-size)}[data-gene-ui-version=\"1.0.0\"] .passed .step-dot:before,[data-gene-ui-version=\"1.0.0\"] .s-activated .step-dot:before,[data-gene-ui-version=\"1.0.0\"] .s-current .step-dot:before{box-shadow:inset 0 0 0 .9rem var(--hero)}[data-gene-ui-version=\"1.0.0\"] .step-dot:after{height:100%;left:0;position:absolute;top:0;transform:scale(0);transition:transform .3s;width:100%}[data-gene-ui-version=\"1.0.0\"] .s-activated .step-dot:after,[data-gene-ui-version=\"1.0.0\"] .s-current .step-dot:after{transform:scale(1)}[data-gene-ui-version=\"1.0.0\"] .detailed-value-popover-container{padding:16px}";
|
|
26
|
-
styleInject(css_248z);
|
|
27
|
-
|
|
28
|
-
const positionMap = {
|
|
29
|
-
vertical: 'left',
|
|
30
|
-
horizontal: 'bottom'
|
|
31
|
-
};
|
|
32
|
-
function DetailedView(_ref) {
|
|
33
|
-
let {
|
|
34
|
-
content,
|
|
35
|
-
children,
|
|
36
|
-
direction
|
|
37
|
-
} = _ref;
|
|
38
|
-
const isHoveredOnContent = useRef(false);
|
|
39
|
-
const isHoveredOnStep = useRef(false);
|
|
40
|
-
const [isPopoverOpen, setIsPopoverOpen] = useState(false);
|
|
41
|
-
const closePopover = () => {
|
|
42
|
-
debounce(() => {
|
|
43
|
-
if (!isHoveredOnContent.current && !isHoveredOnStep.current) {
|
|
44
|
-
setIsPopoverOpen(false);
|
|
45
|
-
}
|
|
46
|
-
}, 250)();
|
|
47
|
-
};
|
|
48
|
-
const stepOnMouseEnterHandler = () => {
|
|
49
|
-
isHoveredOnStep.current = true;
|
|
50
|
-
setIsPopoverOpen(true);
|
|
51
|
-
};
|
|
52
|
-
const stepOnMouseLeaveHandler = () => {
|
|
53
|
-
isHoveredOnStep.current = false;
|
|
54
|
-
closePopover();
|
|
55
|
-
};
|
|
56
|
-
const contentOnMouseEnterHandler = () => isHoveredOnContent.current = true;
|
|
57
|
-
const contentOnMouseLeaveHandler = () => {
|
|
58
|
-
isHoveredOnContent.current = false;
|
|
59
|
-
closePopover();
|
|
60
|
-
};
|
|
61
|
-
return /*#__PURE__*/React__default.createElement(Popover, {
|
|
62
|
-
swipeable: true,
|
|
63
|
-
align: "center",
|
|
64
|
-
position: positionMap[direction],
|
|
65
|
-
isOpen: isPopoverOpen,
|
|
66
|
-
onClickOutside: () => setIsPopoverOpen(false),
|
|
67
|
-
extendTargetWidth: false,
|
|
68
|
-
onSwipedDown: () => setIsPopoverOpen(false),
|
|
69
|
-
Content: /*#__PURE__*/React__default.createElement("div", {
|
|
70
|
-
onMouseEnter: contentOnMouseEnterHandler,
|
|
71
|
-
onMouseLeave: contentOnMouseLeaveHandler,
|
|
72
|
-
className: "detailed-value-popover-container"
|
|
73
|
-
}, content)
|
|
74
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
75
|
-
onMouseEnter: stepOnMouseEnterHandler,
|
|
76
|
-
onMouseLeave: stepOnMouseLeaveHandler
|
|
77
|
-
}, children));
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
function WithTooltip(_ref) {
|
|
81
|
-
let {
|
|
82
|
-
tooltip,
|
|
83
|
-
children
|
|
84
|
-
} = _ref;
|
|
85
|
-
if (!tooltip) return children;
|
|
86
|
-
return /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
87
|
-
title: tooltip
|
|
88
|
-
}, children);
|
|
89
|
-
}
|
|
90
|
-
function Step(_ref2) {
|
|
91
|
-
let {
|
|
92
|
-
title,
|
|
93
|
-
label,
|
|
94
|
-
onClick,
|
|
95
|
-
icon,
|
|
96
|
-
status,
|
|
97
|
-
appearance,
|
|
98
|
-
failColor,
|
|
99
|
-
successColor,
|
|
100
|
-
heroColor,
|
|
101
|
-
style,
|
|
102
|
-
extraLines,
|
|
103
|
-
stepsCount,
|
|
104
|
-
current,
|
|
105
|
-
tooltip,
|
|
106
|
-
direction,
|
|
107
|
-
detailedView,
|
|
108
|
-
__index
|
|
109
|
-
} = _ref2;
|
|
110
|
-
const stepBody = /*#__PURE__*/React__default.createElement("li", {
|
|
111
|
-
className: classnames('step', "s-".concat(status), {
|
|
112
|
-
clickable: !!onClick,
|
|
113
|
-
passed: status === 'fail' || status === 'success'
|
|
114
|
-
}),
|
|
115
|
-
onClick: onClick,
|
|
116
|
-
style: {
|
|
117
|
-
'--danger': failColor,
|
|
118
|
-
'--confirm': successColor,
|
|
119
|
-
'--hero': heroColor,
|
|
120
|
-
...style
|
|
121
|
-
}
|
|
122
|
-
}, appearance === stepsConfig.appearance[1] ? /*#__PURE__*/React__default.createElement("div", {
|
|
123
|
-
className: "step-dot"
|
|
124
|
-
}) : /*#__PURE__*/React__default.createElement("div", {
|
|
125
|
-
className: "step-circle"
|
|
126
|
-
}, icon ? /*#__PURE__*/React__default.createElement(Icon, {
|
|
127
|
-
type: icon
|
|
128
|
-
}) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
129
|
-
className: "step-layer layer-1"
|
|
130
|
-
}, __index), /*#__PURE__*/React__default.createElement("div", {
|
|
131
|
-
className: "step-layer layer-2"
|
|
132
|
-
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
133
|
-
type: status === 'fail' ? 'bc-icon-clear' : 'bc-icon-selected'
|
|
134
|
-
})))), /*#__PURE__*/React__default.createElement("div", {
|
|
135
|
-
className: classnames('step-texts', {
|
|
136
|
-
both: !!title && !!label
|
|
137
|
-
})
|
|
138
|
-
}, title && /*#__PURE__*/React__default.createElement("div", {
|
|
139
|
-
className: "step-title"
|
|
140
|
-
}, title), label && /*#__PURE__*/React__default.createElement("div", {
|
|
141
|
-
className: "step-label"
|
|
142
|
-
}, label)));
|
|
143
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, (__index !== 1 || extraLines) && /*#__PURE__*/React__default.createElement("li", {
|
|
144
|
-
className: "line-box"
|
|
145
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
146
|
-
className: classnames('line', "s-".concat(status), {
|
|
147
|
-
active: current >= __index
|
|
148
|
-
}),
|
|
149
|
-
style: {
|
|
150
|
-
'--danger': failColor,
|
|
151
|
-
'--confirm': successColor,
|
|
152
|
-
'--hero': heroColor
|
|
153
|
-
}
|
|
154
|
-
})), detailedView ? /*#__PURE__*/React__default.createElement(DetailedView, {
|
|
155
|
-
direction: direction,
|
|
156
|
-
content: detailedView
|
|
157
|
-
}, stepBody) : /*#__PURE__*/React__default.createElement(WithTooltip, {
|
|
158
|
-
tooltip: tooltip
|
|
159
|
-
}, stepBody), __index === stepsCount && extraLines && /*#__PURE__*/React__default.createElement("li", {
|
|
160
|
-
className: "line-box"
|
|
161
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
162
|
-
className: classnames('line', "s-".concat(status), {
|
|
163
|
-
active: current === stepsCount
|
|
164
|
-
}),
|
|
165
|
-
style: {
|
|
166
|
-
'--danger': failColor,
|
|
167
|
-
'--confirm': successColor,
|
|
168
|
-
'--hero': heroColor
|
|
169
|
-
}
|
|
170
|
-
})));
|
|
171
|
-
}
|
|
172
|
-
Step.propTypes = {
|
|
173
|
-
/**
|
|
174
|
-
* Title of Step
|
|
175
|
-
*/
|
|
176
|
-
title: propTypesExports.string,
|
|
177
|
-
/**
|
|
178
|
-
* Label of Step
|
|
179
|
-
*/
|
|
180
|
-
label: propTypesExports.string,
|
|
181
|
-
/**
|
|
182
|
-
* Tooltip of Step
|
|
183
|
-
*/
|
|
184
|
-
tooltip: propTypesExports.string,
|
|
185
|
-
/**
|
|
186
|
-
* Fires an event on ExtendedInput change((event: Event) => void).
|
|
187
|
-
*/
|
|
188
|
-
onClick: propTypesExports.func,
|
|
189
|
-
/**
|
|
190
|
-
* Icon for current step
|
|
191
|
-
*/
|
|
192
|
-
icon: propTypesExports.string,
|
|
193
|
-
/**
|
|
194
|
-
* Current step status
|
|
195
|
-
*/
|
|
196
|
-
status: propTypesExports.oneOf(stepsConfig.status),
|
|
197
|
-
/**
|
|
198
|
-
* View/style for step
|
|
199
|
-
*/
|
|
200
|
-
appearance: propTypesExports.oneOf(stepsConfig.appearance),
|
|
201
|
-
/**
|
|
202
|
-
* style for step
|
|
203
|
-
*/
|
|
204
|
-
style: propTypesExports.object,
|
|
205
|
-
/**
|
|
206
|
-
* Color for failed step
|
|
207
|
-
*/
|
|
208
|
-
failColor: propTypesExports.string,
|
|
209
|
-
/**
|
|
210
|
-
* Color for success step
|
|
211
|
-
*/
|
|
212
|
-
successColor: propTypesExports.string,
|
|
213
|
-
/**
|
|
214
|
-
* Default color for step
|
|
215
|
-
*/
|
|
216
|
-
heroColor: propTypesExports.string
|
|
217
|
-
};
|
|
218
|
-
Step.defaultProps = {
|
|
219
|
-
appearance: stepsConfig.appearance[0]
|
|
220
|
-
};
|
|
221
|
-
|
|
222
|
-
function getStepStatus(current, index, statusProp) {
|
|
223
|
-
if (current > index) return 'success';
|
|
224
|
-
if (current < index) return 'initial';
|
|
225
|
-
return statusProp || 'current';
|
|
226
|
-
}
|
|
227
|
-
function Steps(_ref) {
|
|
228
|
-
let {
|
|
229
|
-
direction,
|
|
230
|
-
size,
|
|
231
|
-
appearance,
|
|
232
|
-
highlightCurrent,
|
|
233
|
-
extraLines,
|
|
234
|
-
children,
|
|
235
|
-
current,
|
|
236
|
-
status,
|
|
237
|
-
failColor,
|
|
238
|
-
successColor,
|
|
239
|
-
heroColor,
|
|
240
|
-
className,
|
|
241
|
-
...rest
|
|
242
|
-
} = _ref;
|
|
243
|
-
return /*#__PURE__*/React__default.createElement("ul", _extends({
|
|
244
|
-
className: classnames('steps-holder', "s-".concat(size), "d-".concat(direction), "a-".concat(appearance), {
|
|
245
|
-
'highlight-current': highlightCurrent
|
|
246
|
-
}, className),
|
|
247
|
-
style: {
|
|
248
|
-
'--danger': failColor,
|
|
249
|
-
'--confirm': successColor,
|
|
250
|
-
'--hero': heroColor
|
|
251
|
-
}
|
|
252
|
-
}, rest), React__default.Children.map(children, (child, i) => {
|
|
253
|
-
const stepStatus = child.props.status || getStepStatus(current, i, status);
|
|
254
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.cloneElement(child, {
|
|
255
|
-
__index: i + 1,
|
|
256
|
-
status: stepStatus,
|
|
257
|
-
appearance,
|
|
258
|
-
extraLines,
|
|
259
|
-
stepsCount: children.length,
|
|
260
|
-
current,
|
|
261
|
-
direction
|
|
262
|
-
}));
|
|
263
|
-
}));
|
|
264
|
-
}
|
|
265
|
-
Steps.propTypes = {
|
|
266
|
-
/**
|
|
267
|
-
* View of 'Steps'.
|
|
268
|
-
*/
|
|
269
|
-
direction: propTypesExports.oneOf(stepsConfig.direction),
|
|
270
|
-
/**
|
|
271
|
-
* Size of 'Steps'.
|
|
272
|
-
*/
|
|
273
|
-
size: propTypesExports.oneOf(stepsConfig.size),
|
|
274
|
-
/**
|
|
275
|
-
* View type of 'Steps'.
|
|
276
|
-
*/
|
|
277
|
-
appearance: propTypesExports.oneOf(stepsConfig.appearance),
|
|
278
|
-
/**
|
|
279
|
-
* Turn on/off highlighted view of current step.
|
|
280
|
-
*/
|
|
281
|
-
highlightCurrent: propTypesExports.bool,
|
|
282
|
-
/**
|
|
283
|
-
* Show/hide extra lines in 'Steps'.
|
|
284
|
-
*/
|
|
285
|
-
extraLines: propTypesExports.bool,
|
|
286
|
-
/**
|
|
287
|
-
* The child or children of 'Steps' molecule
|
|
288
|
-
*/
|
|
289
|
-
children: childrenOf([Step]),
|
|
290
|
-
/**
|
|
291
|
-
* Initial/current step
|
|
292
|
-
*/
|
|
293
|
-
current: propTypesExports.number,
|
|
294
|
-
/**
|
|
295
|
-
* Status of current step
|
|
296
|
-
*/
|
|
297
|
-
status: propTypesExports.oneOf(stepsConfig.status),
|
|
298
|
-
/**
|
|
299
|
-
* Additional classname
|
|
300
|
-
*/
|
|
301
|
-
className: propTypesExports.string
|
|
302
|
-
};
|
|
303
|
-
Steps.defaultProps = {
|
|
304
|
-
direction: stepsConfig.direction[0],
|
|
305
|
-
size: stepsConfig.size[0],
|
|
306
|
-
appearance: stepsConfig.appearance[0],
|
|
307
|
-
highlightCurrent: false,
|
|
308
|
-
extraLines: false,
|
|
309
|
-
current: 0
|
|
310
|
-
};
|
|
311
|
-
|
|
312
|
-
export { Step, Steps };
|
package/SuggestionList.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
import './index-ac59cb10.js';
|
|
3
|
-
import './useKeyDown-38102ae7.js';
|
|
4
|
-
import './configs-91c86664.js';
|
|
5
|
-
import './useClickOutside-5183e396.js';
|
|
6
|
-
import './index-6ff23041.js';
|
|
7
|
-
export { S as default } from './index-897d8240.js';
|
|
8
|
-
import './Scrollbar.js';
|
|
9
|
-
import './index-e0af0caf.js';
|
|
10
|
-
import './dateValidation-67caec66.js';
|
|
11
|
-
import './_commonjsHelpers-24198af3.js';
|
|
12
|
-
import 'react-dom';
|
|
13
|
-
import './style-inject.es-746bb8ed.js';
|
|
14
|
-
import './_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
15
|
-
import './globalStyling-9c60a159.js';
|
package/Table.js
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import './_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
export { T as default } from './index-8c98317a.js';
|
|
4
|
-
import './index-e0af0caf.js';
|
|
5
|
-
import './index-9164a86d.js';
|
|
6
|
-
import './CellMeasurerCache-b786dd93.js';
|
|
7
|
-
import './index-6ff23041.js';
|
|
8
|
-
import './index-ac59cb10.js';
|
|
9
|
-
import './useMount-6fef51a5.js';
|
|
10
|
-
import './configs-91c86664.js';
|
|
11
|
-
import './Empty.js';
|
|
12
|
-
import './Scrollbar.js';
|
|
13
|
-
import './BusyLoader.js';
|
|
14
|
-
import './globalStyling-9c60a159.js';
|
|
15
|
-
import './guid-8ddf77b3.js';
|
|
16
|
-
import './debounce-4419bc2f.js';
|
|
17
|
-
import './index-e8776f3d.js';
|
|
18
|
-
import './objectWithoutPropertiesLoose-299691d8.js';
|
|
19
|
-
import './Button.js';
|
|
20
|
-
import './Icon.js';
|
|
21
|
-
import './style-inject.es-746bb8ed.js';
|
|
22
|
-
import './SkeletonLoader.js';
|
|
23
|
-
import './_commonjsHelpers-24198af3.js';
|
|
24
|
-
import './Tooltip.js';
|
|
25
|
-
import './Popover-f4d1cac0.js';
|
|
26
|
-
import 'react-dom';
|
|
27
|
-
import './useDeviceType-dd51db38.js';
|
|
28
|
-
import './useWindowSize-80369d76.js';
|
|
29
|
-
import './GeneUIProvider.js';
|
|
30
|
-
import './dateValidation-67caec66.js';
|
|
31
|
-
import './Grid.js';
|
|
32
|
-
import './useWidth-9f4647f8.js';
|
|
33
|
-
import './Tabs.js';
|
|
34
|
-
import './Steps.js';
|
|
35
|
-
import './index-084588e9.js';
|
|
36
|
-
import './index-122432cd.js';
|
|
37
|
-
import './Portal.js';
|
|
38
|
-
import './Timeline.js';
|
|
39
|
-
import './RadioGroup.js';
|
|
40
|
-
import './Radio.js';
|
|
41
|
-
import './checkboxRadioSwitcher-5b69d7bd.js';
|
|
42
|
-
import './Checkbox.js';
|
|
43
|
-
import './Card.js';
|
|
44
|
-
import './MobilePopup.js';
|
|
45
|
-
import './useClickOutside-5183e396.js';
|
|
46
|
-
import './Menu.js';
|
|
47
|
-
import './Option.js';
|
|
48
|
-
import './useEllipsisDetection-ef536015.js';
|
|
49
|
-
import './KeyValue.js';
|
|
50
|
-
import './configs.js';
|
|
51
|
-
import './Tag.js';
|
|
52
|
-
import './Alert.js';
|
|
53
|
-
import './index-00fe8887.js';
|
|
54
|
-
import './rangeAndSlider-20599da4.js';
|
|
55
|
-
import './Slider.js';
|
|
56
|
-
import './ValidatableNumberInput.js';
|
|
57
|
-
import './ExtendedInput.js';
|
|
58
|
-
import './index-897d8240.js';
|
|
59
|
-
import './useKeyDown-38102ae7.js';
|
|
60
|
-
import './Pagination.js';
|
|
61
|
-
import './Divider.js';
|
|
62
|
-
import './ValidatableTextInput.js';
|
|
63
|
-
import './Editor.js';
|
|
64
|
-
import './ValidatableUploader.js';
|
|
65
|
-
import './index-135b9d17.js';
|
|
66
|
-
import './Image.js';
|
|
67
|
-
import './ValidatableRadio.js';
|
|
68
|
-
import './ValidatableCheckbox.js';
|
|
69
|
-
import './ValidatableSwitcher.js';
|
|
70
|
-
import './Switcher.js';
|
|
71
|
-
import './ValidatableDatePicker.js';
|
|
72
|
-
import './index-0199942c.js';
|
|
73
|
-
import './index-5e96cb4d.js';
|
|
74
|
-
import './DatePicker.js';
|
|
75
|
-
import './localization-4ba17032.js';
|
|
76
|
-
import './checkTimeValidation-e56771be.js';
|
|
77
|
-
import './Notification.js';
|
|
78
|
-
import './Modal.js';
|
|
79
|
-
import './Collapse.js';
|
|
80
|
-
import './Status.js';
|
|
81
|
-
import './Progress.js';
|
|
82
|
-
import './MobileNavigation.js';
|
|
83
|
-
import './Badge.js';
|
|
84
|
-
import './Products.js';
|
|
85
|
-
import './Search.js';
|
|
86
|
-
import './Breadcrumb.js';
|
|
87
|
-
import './Section.js';
|
|
88
|
-
import './Title.js';
|
|
89
|
-
import './ColorPicker.js';
|
|
90
|
-
import './NavigationMenu.js';
|
|
91
|
-
import './Textarea.js';
|
|
92
|
-
import './AdvancedSearch.js';
|
|
93
|
-
import './index-b7a33c58.js';
|
|
94
|
-
import './LinkButton.js';
|
|
95
|
-
import './TextLink.js';
|
|
96
|
-
import './Label.js';
|
|
97
|
-
import './Paper.js';
|
|
98
|
-
import './Avatar.js';
|
|
99
|
-
import './Time.js';
|
|
100
|
-
import './QRCode.js';
|
|
101
|
-
import './clsx.m-2bb6df4b.js';
|
|
102
|
-
import './index-2030e31c.js';
|