@geneui/components 2.11.2 → 2.12.2
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} +290 -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 +53 -0
- package/{Card.js → Card/index.js} +82 -94
- package/{CardList.js → CardList/index.js} +120 -165
- package/{CellMeasurerCache-b786dd93.js → CellMeasurerCache-3741d716.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} +45 -43
- package/{DatePicker.js → DatePicker/index.js} +106 -108
- package/{index-0199942c.js → DatePickerInput/index.js} +114 -100
- 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 +83 -0
- package/{FormContainer.js → FormContainer/index.js} +25 -26
- package/FormableCheckbox/index.js +26 -0
- package/FormableDatePicker/index.js +41 -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 +289 -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/PopoverV2/index.js +18 -0
- 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-8b0f7ccd.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} +131 -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 +555 -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} +44 -42
- package/ValidatableDropdown/index.js +139 -0
- package/ValidatableElements/index.js +65 -0
- package/ValidatableMultiSelectDropdown/index.js +150 -0
- package/{ValidatableNumberInput.js → ValidatableNumberInput/index.js} +41 -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-8c98317a.js → index-11eea761.js} +678 -752
- package/index-2ad83e03.js +4 -0
- package/index-34e47647.js +10054 -0
- package/index-45eafea6.js +90 -0
- package/{index-5e96cb4d.js → index-462461c0.js} +50 -48
- package/{index-ac59cb10.js → index-a0e4e333.js} +6 -6
- package/{index-e8776f3d.js → index-b1e429a7.js} +1 -1
- package/index.d.ts +115 -0
- package/index.js +137 -113
- package/index.mobile.d.ts +16 -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/Progress.js
DELETED
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
import { _ as _extends } from './_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
2
|
-
import React__default, { useState, useEffect, useCallback } from 'react';
|
|
3
|
-
import { c as classnames } from './index-6ff23041.js';
|
|
4
|
-
import { p as propTypesExports } from './index-e0af0caf.js';
|
|
5
|
-
import { f as fileSizeDisplay, n as noop } from './index-ac59cb10.js';
|
|
6
|
-
import Icon from './Icon.js';
|
|
7
|
-
import Button from './Button.js';
|
|
8
|
-
import './globalStyling-9c60a159.js';
|
|
9
|
-
import { s as styleInject } from './style-inject.es-746bb8ed.js';
|
|
10
|
-
import './dateValidation-67caec66.js';
|
|
11
|
-
import './_commonjsHelpers-24198af3.js';
|
|
12
|
-
import 'react-dom';
|
|
13
|
-
|
|
14
|
-
var css_248z = "[data-gene-ui-version=\"1.0.0\"] .progress-holder{color:rgba(var(--background-sc-rgb),.64);display:flex;flex-direction:column;font:600 1.6rem/2rem var(--font-family)}[data-gene-ui-version=\"1.0.0\"] .progress-holder:not(.a-circular){width:100%}[data-gene-ui-version=\"1.0.0\"] .progress-holder.a-default.s-medium{font-size:1.4rem}[data-gene-ui-version=\"1.0.0\"] .progress-holder.a-default.s-small{font-size:1.2rem}[data-gene-ui-version=\"1.0.0\"] .progress-holder.a-default .progress-line{margin:.5rem 0 0}[data-gene-ui-version=\"1.0.0\"] .progress-holder:not(.a-default){font:700 1.2rem/1.6rem var(--font-family)}[data-gene-ui-version=\"1.0.0\"] .progress-holder:not(.a-default) .progress-sub-title{font:600 1rem/1.4rem var(--font-family);margin:.5rem 0 0;text-transform:capitalize}[data-gene-ui-version=\"1.0.0\"] .progress-holder.c-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\"] .progress-holder.c-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\"] .progress-holder .to-be-colored{color:var(--hero)}[data-gene-ui-version=\"1.0.0\"] .progress-holder.a-box-bar,[data-gene-ui-version=\"1.0.0\"] .progress-holder.a-box-circular{background:var(--background);border:1px solid rgba(var(--background-sc-rgb),.1);box-shadow:0 .6rem .9rem 0 #0000000d}[data-gene-ui-version=\"1.0.0\"] .progress-holder.a-box-circular{border-radius:2rem}[data-gene-ui-version=\"1.0.0\"] .progress-line{background:rgba(var(--background-sc-rgb),.06);border-radius:1rem;display:flex;height:.8rem;width:100%}[data-gene-ui-version=\"1.0.0\"] .a-box-bar>.progress-line{background:none;border-radius:0;height:.5rem}[data-gene-ui-version=\"1.0.0\"] .s-medium .progress-line{height:.6rem}[data-gene-ui-version=\"1.0.0\"] .s-small .progress-line{height:.3rem}[data-gene-ui-version=\"1.0.0\"] .progress-line .progress-line-fill{background:var(--hero);border-radius:inherit;max-width:100%;transition:width .3s}[data-gene-ui-version=\"1.0.0\"] .a-linear .progress-line{background:rgba(var(--background-sc-rgb),.19);height:1.6rem}[data-gene-ui-version=\"1.0.0\"] .a-linear .progress-line .progress-line-fill{animation:linear-animation .8s linear infinite;background:repeating-linear-gradient(-45deg,rgba(var(--background-sc-rgb),.34),rgba(var(--background-sc-rgb),.34) 1rem,#0000 1rem,#0000 2rem) 0 0/11.3rem 10rem}@keyframes linear-animation{to{background-position:11.3rem 0}}[data-gene-ui-version=\"1.0.0\"] .a-linear.s-small .progress-line{height:.8rem}[data-gene-ui-version=\"1.0.0\"] .progress-structure{align-items:center;display:flex}[data-gene-ui-version=\"1.0.0\"] .a-detailed>.progress-structure{min-height:5.2rem}[data-gene-ui-version=\"1.0.0\"] .a-box-bar>.progress-structure,[data-gene-ui-version=\"1.0.0\"] .a-box-circular>.progress-structure{min-height:7.3rem;padding:0 2rem}[data-gene-ui-version=\"1.0.0\"] .a-box-circular>.progress-structure{min-height:7.8rem}[data-gene-ui-version=\"1.0.0\"] .progress-structure .left-info{flex:auto;overflow:hidden}[data-gene-ui-version=\"1.0.0\"] .progress-structure .right-info{flex-shrink:0}[data-gene-ui-version=\"1.0.0\"] .progress-structure .blended{color:rgba(var(--background-sc-rgb),.06)}[data-gene-ui-version=\"1.0.0\"] .progress-structure .bc-icon-success{color:var(--confirm);margin:0 .8rem}[data-gene-ui-version=\"1.0.0\"] .progress-structure .left-additional-info{font:600 1.6rem/2rem var(--font-family);margin:0 4rem 0 0;width:5rem}html[dir=rtl] .progress-structure .left-additional-info{margin:0 0 0 4rem}[data-gene-ui-version=\"1.0.0\"] .progress-actions{align-items:center;display:flex}[data-gene-ui-version=\"1.0.0\"] .circular-progress-inner{--size:12rem;--borderSize:0.8rem;font:600 2.2rem/2.6rem var(--font-family);height:var(--size);position:relative;width:var(--size)}[data-gene-ui-version=\"1.0.0\"] .circular-progress-inner:hover .layer-text,[data-gene-ui-version=\"1.0.0\"] .circular-progress-inner:not(:hover) .layer-action{opacity:0}[data-gene-ui-version=\"1.0.0\"] .circular-progress-inner .icon{cursor:pointer}[data-gene-ui-version=\"1.0.0\"] .circular-progress-inner:not(.s-very-small) .icon{font-size:3.6rem}[data-gene-ui-version=\"1.0.0\"] .circular-progress-inner.s-medium{--size:10rem;--borderSize:0.6rem;font-size:2rem}[data-gene-ui-version=\"1.0.0\"] .circular-progress-inner.s-small{--size:8rem;--borderSize:0.5rem;font-size:1.8rem}[data-gene-ui-version=\"1.0.0\"] .circular-progress-inner.s-small .icon{font-size:3rem}[data-gene-ui-version=\"1.0.0\"] .circular-progress-inner.s-very-small{--size:5rem;--borderSize:0.4rem;font-size:1.2rem;font-weight:700}[data-gene-ui-version=\"1.0.0\"] .circular-progress-inner svg{display:block;height:100%;left:0;position:absolute;top:0;width:100%}[data-gene-ui-version=\"1.0.0\"] .circular-progress-inner svg path{stroke:var(--hero);stroke-dasharray:0,30rem;stroke-dashoffset:0;stroke-linecap:round;stroke-width:6;fill-opacity:0}[data-gene-ui-version=\"1.0.0\"] .circular-progress-back{border:var(--borderSize) solid rgba(var(--background-sc-rgb),.06);border-radius:100%;height:100%;width:100%}[data-gene-ui-version=\"1.0.0\"] .circular-progress-layer{display:flex;justify-content:center;left:0;position:absolute;top:50%;transform:translateY(-50%);width:100%}[data-gene-ui-version=\"1.0.0\"] .circular-progress-layer>div{transition:opacity .3s}[data-gene-ui-version=\"1.0.0\"] .circular-progress-layer .layer-action{left:50%;position:absolute;top:50%;transform:translate3d(-50%,-50%,0)}[data-gene-ui-version=\"1.0.0\"] .linear-progress-text{font:600 1.8rem/2.2rem var(--font-family);margin:.5rem 0 0;text-align:center;width:100%}[data-gene-ui-version=\"1.0.0\"] .on-hover-layers{align-items:center;display:flex;justify-content:center;min-height:4rem;min-width:4rem;position:relative}[data-gene-ui-version=\"1.0.0\"] .on-hover-layers>li{transition:opacity .3s}[data-gene-ui-version=\"1.0.0\"] .on-hover-layers>li:nth-child(2){height:100%;left:0;opacity:0;position:absolute;top:0;width:100%}[data-gene-ui-version=\"1.0.0\"] .progress-holder:hover .on-hover-layers>li:nth-child(2){opacity:1}[data-gene-ui-version=\"1.0.0\"] .progress-holder:hover .on-hover-layers>li:nth-last-child(2){opacity:0}";
|
|
15
|
-
styleInject(css_248z);
|
|
16
|
-
|
|
17
|
-
function Progress(_ref) {
|
|
18
|
-
let {
|
|
19
|
-
title,
|
|
20
|
-
selectedAppearance,
|
|
21
|
-
selectedSize,
|
|
22
|
-
fileName,
|
|
23
|
-
fullFileSize,
|
|
24
|
-
selectedCircularAppearance,
|
|
25
|
-
percentage,
|
|
26
|
-
loaderStatuses,
|
|
27
|
-
color,
|
|
28
|
-
showCancel,
|
|
29
|
-
showRestart,
|
|
30
|
-
onCancel,
|
|
31
|
-
onRestart,
|
|
32
|
-
pathStyle,
|
|
33
|
-
...restProps
|
|
34
|
-
} = _ref;
|
|
35
|
-
const [percentageUpdated, setPercentageUpdated] = useState(percentage);
|
|
36
|
-
useEffect(() => {
|
|
37
|
-
const flooredPercentage = percentage >= 100 ? 100 : percentage || 0;
|
|
38
|
-
setPercentageUpdated(flooredPercentage);
|
|
39
|
-
}, [percentage]);
|
|
40
|
-
const currentFileSize = fullFileSize * percentageUpdated / 100;
|
|
41
|
-
const percentageStyle = "".concat(percentageUpdated, "%");
|
|
42
|
-
const restartHandler = useCallback(e => {
|
|
43
|
-
onRestart(e);
|
|
44
|
-
}, [onRestart]);
|
|
45
|
-
const cancelHandler = useCallback(e => {
|
|
46
|
-
onCancel && onCancel(e);
|
|
47
|
-
}, [onCancel]);
|
|
48
|
-
const statusExternal = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, "(", percentageStyle, " ", color === 'default' || color === 'success' ? loaderStatuses[0] : loaderStatuses[1], ")");
|
|
49
|
-
const circularProgress = size => /*#__PURE__*/React__default.createElement("div", {
|
|
50
|
-
className: classnames('circular-progress-inner', "s-".concat(size || selectedSize))
|
|
51
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
52
|
-
className: "circular-progress-back"
|
|
53
|
-
}), /*#__PURE__*/React__default.createElement("svg", {
|
|
54
|
-
viewBox: "0 0 100 100"
|
|
55
|
-
}, percentageUpdated && /*#__PURE__*/React__default.createElement("path", {
|
|
56
|
-
d: "M 50,50 m 0,-47a 47,47 0 1 1 0,94a 47,47 0 1 1 0,-94",
|
|
57
|
-
style: {
|
|
58
|
-
strokeDasharray: "".concat(300 * percentageUpdated / 100, "px, 300px"),
|
|
59
|
-
...pathStyle
|
|
60
|
-
}
|
|
61
|
-
})), /*#__PURE__*/React__default.createElement("div", {
|
|
62
|
-
className: "circular-progress-layer"
|
|
63
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
64
|
-
className: classnames({
|
|
65
|
-
'layer-text': selectedAppearance === 'circular',
|
|
66
|
-
'to-be-colored': selectedAppearance === 'circular' && color !== 'default'
|
|
67
|
-
})
|
|
68
|
-
}, selectedCircularAppearance === 'show-percentage' ? percentageStyle : fileName), selectedAppearance === 'circular' && showCancel && /*#__PURE__*/React__default.createElement("div", {
|
|
69
|
-
className: "layer-action"
|
|
70
|
-
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
71
|
-
type: "bc-icon-clear"
|
|
72
|
-
}))));
|
|
73
|
-
const progressActions = /*#__PURE__*/React__default.createElement("div", {
|
|
74
|
-
className: "progress-actions"
|
|
75
|
-
}, color === 'fail' && showRestart && /*#__PURE__*/React__default.createElement(Button, {
|
|
76
|
-
size: "big",
|
|
77
|
-
color: "danger",
|
|
78
|
-
onClick: restartHandler,
|
|
79
|
-
appearance: "minimal",
|
|
80
|
-
icon: "bc-icon-reset"
|
|
81
|
-
}), showCancel && /*#__PURE__*/React__default.createElement("ul", {
|
|
82
|
-
className: "on-hover-layers"
|
|
83
|
-
}, color === 'success' && percentage === 100 && /*#__PURE__*/React__default.createElement("li", null, /*#__PURE__*/React__default.createElement(Icon, {
|
|
84
|
-
type: "bc-icon-success"
|
|
85
|
-
})), /*#__PURE__*/React__default.createElement("li", null, /*#__PURE__*/React__default.createElement(Button, {
|
|
86
|
-
size: "big",
|
|
87
|
-
color: "default",
|
|
88
|
-
onClick: cancelHandler,
|
|
89
|
-
appearance: "minimal",
|
|
90
|
-
icon: "bc-icon-clear"
|
|
91
|
-
}))));
|
|
92
|
-
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
93
|
-
className: classnames('progress-holder', "a-".concat(selectedAppearance), "s-".concat(selectedSize), "c-".concat(color))
|
|
94
|
-
}, restProps), selectedAppearance === 'circular' ? circularProgress() : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, selectedAppearance !== 'linear' && /*#__PURE__*/React__default.createElement("ul", {
|
|
95
|
-
className: "progress-structure"
|
|
96
|
-
}, selectedAppearance === 'box-circular' && /*#__PURE__*/React__default.createElement("li", {
|
|
97
|
-
className: "left-additional-info"
|
|
98
|
-
}, circularProgress('very-small')), selectedAppearance === 'box-bar' && /*#__PURE__*/React__default.createElement("li", {
|
|
99
|
-
className: "left-additional-info"
|
|
100
|
-
}, percentageStyle), /*#__PURE__*/React__default.createElement("li", {
|
|
101
|
-
className: "left-info"
|
|
102
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
103
|
-
className: "progress-title ellipsis-text"
|
|
104
|
-
}, title), selectedAppearance !== 'default' && /*#__PURE__*/React__default.createElement("div", {
|
|
105
|
-
className: classnames('progress-sub-title', {
|
|
106
|
-
'to-be-colored': color !== 'default' && selectedAppearance !== 'box-circular' && selectedAppearance !== 'box-bar'
|
|
107
|
-
})
|
|
108
|
-
}, fileSizeDisplay(currentFileSize), " / ", fileSizeDisplay(fullFileSize), " ", selectedAppearance === 'detailed' && statusExternal)), /*#__PURE__*/React__default.createElement("li", {
|
|
109
|
-
className: "right-info"
|
|
110
|
-
}, selectedAppearance === 'default' ? /*#__PURE__*/React__default.createElement("div", {
|
|
111
|
-
className: classnames({
|
|
112
|
-
'to-be-colored': color !== 'default',
|
|
113
|
-
blended: percentageUpdated === 0
|
|
114
|
-
})
|
|
115
|
-
}, percentageStyle) : progressActions)), selectedAppearance !== 'box-circular' && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
116
|
-
className: "progress-line"
|
|
117
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
118
|
-
className: "progress-line-fill",
|
|
119
|
-
style: {
|
|
120
|
-
width: percentageStyle
|
|
121
|
-
}
|
|
122
|
-
})), selectedAppearance === 'linear' && /*#__PURE__*/React__default.createElement("div", {
|
|
123
|
-
className: "linear-progress-text"
|
|
124
|
-
}, title))));
|
|
125
|
-
}
|
|
126
|
-
Progress.propTypes = {
|
|
127
|
-
/**
|
|
128
|
-
* Text title for component
|
|
129
|
-
*/
|
|
130
|
-
title: propTypesExports.string,
|
|
131
|
-
/**
|
|
132
|
-
* displays filename when selectedCircularAppearance's value is [show-percentage]
|
|
133
|
-
*/
|
|
134
|
-
fileName: propTypesExports.string,
|
|
135
|
-
/**
|
|
136
|
-
* Displays cancel button
|
|
137
|
-
*/
|
|
138
|
-
showCancel: propTypesExports.bool,
|
|
139
|
-
/**
|
|
140
|
-
* Displays reset button
|
|
141
|
-
*/
|
|
142
|
-
showRestart: propTypesExports.bool,
|
|
143
|
-
/**
|
|
144
|
-
* The value of the progress indicator
|
|
145
|
-
*/
|
|
146
|
-
percentage: propTypesExports.number,
|
|
147
|
-
/**
|
|
148
|
-
* Size of current file
|
|
149
|
-
*/
|
|
150
|
-
fullFileSize: propTypesExports.number,
|
|
151
|
-
/**
|
|
152
|
-
* Style for path
|
|
153
|
-
*/
|
|
154
|
-
pathStyle: propTypesExports.object,
|
|
155
|
-
/**
|
|
156
|
-
* Array of text with length of two.
|
|
157
|
-
* If selectedAppearance value is not default
|
|
158
|
-
* It will display either first of second item from array based on color value
|
|
159
|
-
*/
|
|
160
|
-
loaderStatuses: propTypesExports.array.isRequired,
|
|
161
|
-
/**
|
|
162
|
-
* Controls color of progress bar
|
|
163
|
-
*/
|
|
164
|
-
color: propTypesExports.oneOf(['default', 'fail', 'success']),
|
|
165
|
-
/**
|
|
166
|
-
* Controls size of progress bar
|
|
167
|
-
*/
|
|
168
|
-
selectedSize: propTypesExports.oneOf(['big', 'medium', 'small', 'very-small']),
|
|
169
|
-
/**
|
|
170
|
-
* Displays either percent value or file value inside circular progress bar
|
|
171
|
-
*/
|
|
172
|
-
selectedCircularAppearance: propTypesExports.oneOf(['show-percentage', 'show-file-name']),
|
|
173
|
-
/**
|
|
174
|
-
* Controls appearance of progress bar
|
|
175
|
-
*/
|
|
176
|
-
selectedAppearance: propTypesExports.oneOf(['default', 'detailed', 'circular', 'box-bar', 'box-circular', 'linear']),
|
|
177
|
-
/**
|
|
178
|
-
* Fires event when user clicks on cancel button
|
|
179
|
-
* (event: Event) => void
|
|
180
|
-
*/
|
|
181
|
-
onCancel: propTypesExports.func,
|
|
182
|
-
/**
|
|
183
|
-
* Fires event when user clicks on restart button
|
|
184
|
-
* (event: Event) => void
|
|
185
|
-
*/
|
|
186
|
-
onRestart: propTypesExports.func
|
|
187
|
-
};
|
|
188
|
-
Progress.defaultProps = {
|
|
189
|
-
onRestart: noop,
|
|
190
|
-
onCancel: noop,
|
|
191
|
-
percentage: 0,
|
|
192
|
-
color: 'default',
|
|
193
|
-
showCancel: true,
|
|
194
|
-
showRestart: true,
|
|
195
|
-
selectedSize: 'small',
|
|
196
|
-
selectedAppearance: 'default',
|
|
197
|
-
selectedCircularAppearance: 'show-percentage'
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
export { Progress as default };
|
package/Range.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import './_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import './index-e0af0caf.js';
|
|
4
|
-
import './index-6ff23041.js';
|
|
5
|
-
import './rangeAndSlider-20599da4.js';
|
|
6
|
-
import './useWidth-9f4647f8.js';
|
|
7
|
-
import './dateValidation-67caec66.js';
|
|
8
|
-
import 'react-dom';
|
|
9
|
-
export { R as default } from './index-00fe8887.js';
|
|
10
|
-
import './configs-91c86664.js';
|
|
11
|
-
import './globalStyling-9c60a159.js';
|
|
12
|
-
import './_commonjsHelpers-24198af3.js';
|
|
13
|
-
import './style-inject.es-746bb8ed.js';
|
|
14
|
-
import './useWindowSize-80369d76.js';
|
package/RichEditor.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { R as RichEditor } from './RichEditor-98accead.js';
|
|
2
|
-
import 'react';
|
|
3
|
-
import './index-e0af0caf.js';
|
|
4
|
-
import './index-6ff23041.js';
|
|
5
|
-
import './_commonjsHelpers-24198af3.js';
|
|
6
|
-
import './index-ac59cb10.js';
|
|
7
|
-
import './dateValidation-67caec66.js';
|
|
8
|
-
import 'react-dom';
|
|
9
|
-
import './style-inject.es-746bb8ed.js';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export { RichEditor as default };
|
package/SearchWithDropdown.js
DELETED
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
import { _ as _extends } from './_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
2
|
-
import React__default, { useState, useCallback } from 'react';
|
|
3
|
-
import { p as propTypesExports } from './index-e0af0caf.js';
|
|
4
|
-
import { c as classnames } from './index-6ff23041.js';
|
|
5
|
-
import { n as noop } from './index-ac59cb10.js';
|
|
6
|
-
import Search from './Search.js';
|
|
7
|
-
import { m as Dropdown } from './index-9164a86d.js';
|
|
8
|
-
import { s as styleInject } from './style-inject.es-746bb8ed.js';
|
|
9
|
-
import './dateValidation-67caec66.js';
|
|
10
|
-
import './_commonjsHelpers-24198af3.js';
|
|
11
|
-
import 'react-dom';
|
|
12
|
-
import './ExtendedInput.js';
|
|
13
|
-
import './configs-91c86664.js';
|
|
14
|
-
import './useDeviceType-dd51db38.js';
|
|
15
|
-
import './useWindowSize-80369d76.js';
|
|
16
|
-
import './index-897d8240.js';
|
|
17
|
-
import './useKeyDown-38102ae7.js';
|
|
18
|
-
import './useClickOutside-5183e396.js';
|
|
19
|
-
import './Scrollbar.js';
|
|
20
|
-
import './globalStyling-9c60a159.js';
|
|
21
|
-
import './Icon.js';
|
|
22
|
-
import './Tooltip.js';
|
|
23
|
-
import './Popover-f4d1cac0.js';
|
|
24
|
-
import './GeneUIProvider.js';
|
|
25
|
-
import './Editor.js';
|
|
26
|
-
import './useMount-6fef51a5.js';
|
|
27
|
-
import './Button.js';
|
|
28
|
-
import './ValidatableUploader.js';
|
|
29
|
-
import './index-135b9d17.js';
|
|
30
|
-
import './Grid.js';
|
|
31
|
-
import './useWidth-9f4647f8.js';
|
|
32
|
-
import './BusyLoader.js';
|
|
33
|
-
import './Image.js';
|
|
34
|
-
import './Empty.js';
|
|
35
|
-
import './Checkbox.js';
|
|
36
|
-
import './checkboxRadioSwitcher-5b69d7bd.js';
|
|
37
|
-
import './guid-8ddf77b3.js';
|
|
38
|
-
import './ValidatableRadio.js';
|
|
39
|
-
import './RadioGroup.js';
|
|
40
|
-
import './Radio.js';
|
|
41
|
-
import './ValidatableCheckbox.js';
|
|
42
|
-
import './ValidatableSwitcher.js';
|
|
43
|
-
import './Switcher.js';
|
|
44
|
-
import './ValidatableNumberInput.js';
|
|
45
|
-
import './ValidatableTextInput.js';
|
|
46
|
-
import './ValidatableDatePicker.js';
|
|
47
|
-
import './index-0199942c.js';
|
|
48
|
-
import './index-5e96cb4d.js';
|
|
49
|
-
import './index-122432cd.js';
|
|
50
|
-
import './debounce-4419bc2f.js';
|
|
51
|
-
import './DatePicker.js';
|
|
52
|
-
import './localization-4ba17032.js';
|
|
53
|
-
import './checkTimeValidation-e56771be.js';
|
|
54
|
-
import './useEllipsisDetection-ef536015.js';
|
|
55
|
-
import './Tabs.js';
|
|
56
|
-
import './Steps.js';
|
|
57
|
-
import './index-084588e9.js';
|
|
58
|
-
import './Portal.js';
|
|
59
|
-
import './Timeline.js';
|
|
60
|
-
import './Card.js';
|
|
61
|
-
import './MobilePopup.js';
|
|
62
|
-
import './Menu.js';
|
|
63
|
-
import './Option.js';
|
|
64
|
-
import './SkeletonLoader.js';
|
|
65
|
-
import './KeyValue.js';
|
|
66
|
-
import './configs.js';
|
|
67
|
-
import './Tag.js';
|
|
68
|
-
import './Alert.js';
|
|
69
|
-
import './index-00fe8887.js';
|
|
70
|
-
import './rangeAndSlider-20599da4.js';
|
|
71
|
-
import './Slider.js';
|
|
72
|
-
import './Pagination.js';
|
|
73
|
-
import './Divider.js';
|
|
74
|
-
import './objectWithoutPropertiesLoose-299691d8.js';
|
|
75
|
-
import './clsx.m-2bb6df4b.js';
|
|
76
|
-
import './index-2030e31c.js';
|
|
77
|
-
import './Notification.js';
|
|
78
|
-
import './Modal.js';
|
|
79
|
-
import './Collapse.js';
|
|
80
|
-
import './Status.js';
|
|
81
|
-
import './Avatar.js';
|
|
82
|
-
import './TextLink.js';
|
|
83
|
-
import './Label.js';
|
|
84
|
-
import './Paper.js';
|
|
85
|
-
import './Badge.js';
|
|
86
|
-
import './Time.js';
|
|
87
|
-
import './Title.js';
|
|
88
|
-
import './index-b7a33c58.js';
|
|
89
|
-
import './QRCode.js';
|
|
90
|
-
import './Progress.js';
|
|
91
|
-
import './MobileNavigation.js';
|
|
92
|
-
import './Products.js';
|
|
93
|
-
import './Breadcrumb.js';
|
|
94
|
-
import './Section.js';
|
|
95
|
-
import './ColorPicker.js';
|
|
96
|
-
import './NavigationMenu.js';
|
|
97
|
-
import './Textarea.js';
|
|
98
|
-
import './AdvancedSearch.js';
|
|
99
|
-
import './LinkButton.js';
|
|
100
|
-
|
|
101
|
-
var css_248z = "[data-gene-ui-version=\"1.0.0\"] .search-dropdown-mix{display:flex;max-width:100%;position:relative}[data-gene-ui-version=\"1.0.0\"] .search-dropdown-mix.f-full-width{width:100%}[data-gene-ui-version=\"1.0.0\"] .search-dropdown-mix.f-full-width .search-holder{flex:auto}[data-gene-ui-version=\"1.0.0\"] .search-dropdown-mix.f-full-width .dropdown-holder{min-width:36.8811881188%}[data-gene-ui-version=\"1.0.0\"] .search-dropdown-mix.f-default-width .search-holder{max-width:25.5rem;width:100%}[data-gene-ui-version=\"1.0.0\"] .search-dropdown-mix.f-default-width .dropdown-holder{min-width:14.9rem}[data-gene-ui-version=\"1.0.0\"] .search-dropdown-mix .search-holder:before{background:rgba(var(--background-sc-rgb),.05);bottom:.6rem;content:\"\";display:block;position:absolute;top:.6rem;width:1px}html:not([dir=rtl]) .search-dropdown-mix .search-holder:before{left:100%}html[dir=rtl] .search-dropdown-mix .search-holder:before{right:100%}html:not([dir=rtl]) .search-dropdown-mix .search-holder .input-element-back{border-top-right-radius:0}html[dir=rtl] .search-dropdown-mix .search-holder .input-element-back{border-top-left-radius:0}html:not([dir=rtl]) .search-dropdown-mix .search-holder .input-element-back{border-bottom-right-radius:0}html[dir=rtl] .search-dropdown-mix .search-holder .input-element-back{border-bottom-left-radius:0}[data-gene-ui-version=\"1.0.0\"] .search-dropdown-mix .dropdown-holder{flex-shrink:0}html:not([dir=rtl]) .search-dropdown-mix .dropdown-holder .input-element-back{border-top-left-radius:0}html[dir=rtl] .search-dropdown-mix .dropdown-holder .input-element-back{border-top-right-radius:0}html:not([dir=rtl]) .search-dropdown-mix .dropdown-holder .input-element-back{border-bottom-left-radius:0}html[dir=rtl] .search-dropdown-mix .dropdown-holder .input-element-back{border-bottom-right-radius:0}[data-gene-ui-version=\"1.0.0\"] .search-dropdown-mix .dropDown{max-width:150px;min-width:150px}";
|
|
102
|
-
styleInject(css_248z);
|
|
103
|
-
|
|
104
|
-
const SearchWithDropdownConfig = {
|
|
105
|
-
flexibility: ['default-width', 'full-width']
|
|
106
|
-
};
|
|
107
|
-
function SearchWithDropdown(_ref) {
|
|
108
|
-
let {
|
|
109
|
-
onChange,
|
|
110
|
-
searchProps,
|
|
111
|
-
dropdownProps,
|
|
112
|
-
flexibility,
|
|
113
|
-
hideDropdown,
|
|
114
|
-
dataKey
|
|
115
|
-
} = _ref;
|
|
116
|
-
const {
|
|
117
|
-
defaultValue
|
|
118
|
-
} = searchProps;
|
|
119
|
-
const [query, setQuery] = useState(defaultValue);
|
|
120
|
-
const [dataKeys, setDataKeys] = useState(() => dropdownProps.defaultValue || []);
|
|
121
|
-
const handleSearch = useCallback(e => {
|
|
122
|
-
const query = e.target.value;
|
|
123
|
-
setQuery(query);
|
|
124
|
-
onChange({
|
|
125
|
-
query,
|
|
126
|
-
dataKeys
|
|
127
|
-
});
|
|
128
|
-
}, [onChange, dataKeys]);
|
|
129
|
-
const handleDropdown = useCallback(items => {
|
|
130
|
-
const dataKeys = Array.isArray(items) ? items.map(item => item[dataKey]) : items[dataKey];
|
|
131
|
-
setDataKeys(dataKeys);
|
|
132
|
-
onChange({
|
|
133
|
-
query,
|
|
134
|
-
dataKeys
|
|
135
|
-
});
|
|
136
|
-
}, [query, onChange, dataKey]);
|
|
137
|
-
return hideDropdown ? /*#__PURE__*/React__default.createElement(Search, _extends({}, searchProps, {
|
|
138
|
-
inputSize: "big",
|
|
139
|
-
appearance: "minimal",
|
|
140
|
-
onChange: handleSearch
|
|
141
|
-
})) : /*#__PURE__*/React__default.createElement("div", {
|
|
142
|
-
className: classnames('search-dropdown-mix', "f-".concat(flexibility))
|
|
143
|
-
}, /*#__PURE__*/React__default.createElement(Search, _extends({}, searchProps, {
|
|
144
|
-
inputSize: "big",
|
|
145
|
-
appearance: "minimal",
|
|
146
|
-
onChange: handleSearch
|
|
147
|
-
})), !hideDropdown && /*#__PURE__*/React__default.createElement("div", {
|
|
148
|
-
className: "dropDown"
|
|
149
|
-
}, /*#__PURE__*/React__default.createElement(Dropdown, _extends({}, dropdownProps, {
|
|
150
|
-
inputSize: "big",
|
|
151
|
-
appearance: "minimal",
|
|
152
|
-
flexibility: "content-size",
|
|
153
|
-
onChange: handleDropdown
|
|
154
|
-
}))));
|
|
155
|
-
}
|
|
156
|
-
SearchWithDropdown.propTypes = {
|
|
157
|
-
/**
|
|
158
|
-
* Called when the user attempts to change the value,
|
|
159
|
-
* OnChange({ query: string, dataKey: array })
|
|
160
|
-
*/
|
|
161
|
-
onChange: propTypesExports.func,
|
|
162
|
-
/**
|
|
163
|
-
* Accepts same props as search component(molecules)
|
|
164
|
-
*/
|
|
165
|
-
searchProps: propTypesExports.shape({
|
|
166
|
-
...Search.propTypes
|
|
167
|
-
}),
|
|
168
|
-
/**
|
|
169
|
-
* Accpets same props as dropdown component(organisms)
|
|
170
|
-
*/
|
|
171
|
-
dropdownProps: propTypesExports.shape({
|
|
172
|
-
...Dropdown.propTypes
|
|
173
|
-
}),
|
|
174
|
-
/**
|
|
175
|
-
* Control component passing `default-width` or `full-width`,
|
|
176
|
-
*/
|
|
177
|
-
flexibility: propTypesExports.oneOf(SearchWithDropdownConfig.flexibility),
|
|
178
|
-
/**
|
|
179
|
-
* Hides dropdown
|
|
180
|
-
*/
|
|
181
|
-
hideDropdown: propTypesExports.bool,
|
|
182
|
-
/**
|
|
183
|
-
* unique value in dropdown items
|
|
184
|
-
*/
|
|
185
|
-
dataKey: propTypesExports.string
|
|
186
|
-
};
|
|
187
|
-
SearchWithDropdown.defaultProps = {
|
|
188
|
-
searchProps: {},
|
|
189
|
-
flexibility: SearchWithDropdownConfig.flexibility[0],
|
|
190
|
-
onChange: noop,
|
|
191
|
-
hideDropdown: false,
|
|
192
|
-
dataKey: 'dataKey'
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
export { SearchWithDropdown as default };
|
package/Section.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import { p as propTypesExports } from './index-e0af0caf.js';
|
|
3
|
-
import { b as titleConfig } from './configs-91c86664.js';
|
|
4
|
-
import Title from './Title.js';
|
|
5
|
-
import './globalStyling-9c60a159.js';
|
|
6
|
-
import { s as styleInject } from './style-inject.es-746bb8ed.js';
|
|
7
|
-
import './_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
8
|
-
import './index-6ff23041.js';
|
|
9
|
-
import './Icon.js';
|
|
10
|
-
|
|
11
|
-
var css_248z = "[data-gene-ui-version=\"1.0.0\"] .section-holder{background:var(--background);border:1px solid rgba(var(--background-sc-rgb),.1);border-radius:2rem;padding:0 2rem 2rem;width:100%}[data-gene-ui-version=\"1.0.0\"] .section-holder+.section-holder{margin:1.3rem 0 0}[data-gene-ui-version=\"1.0.0\"] .section-head{align-items:center;display:flex;height:5.4rem;width:100%}[data-gene-ui-version=\"1.0.0\"] .section-body{align-items:stretch;display:flex;flex-direction:column}[data-gene-ui-version=\"1.0.0\"] .section-sub-group{width:100%}[data-gene-ui-version=\"1.0.0\"] .section-sub-group:not(:last-child){margin-bottom:1.4rem}[data-gene-ui-version=\"1.0.0\"] .section-sub-group:not(:first-child){margin-top:.7rem}";
|
|
12
|
-
styleInject(css_248z);
|
|
13
|
-
|
|
14
|
-
function Section(_ref) {
|
|
15
|
-
let {
|
|
16
|
-
children,
|
|
17
|
-
...restProps
|
|
18
|
-
} = _ref;
|
|
19
|
-
return /*#__PURE__*/React__default.createElement("ul", {
|
|
20
|
-
className: "section-holder"
|
|
21
|
-
}, /*#__PURE__*/React__default.createElement("li", {
|
|
22
|
-
className: "section-head"
|
|
23
|
-
}, /*#__PURE__*/React__default.createElement(Title, restProps)), /*#__PURE__*/React__default.createElement("li", {
|
|
24
|
-
className: "section-body"
|
|
25
|
-
}, children));
|
|
26
|
-
}
|
|
27
|
-
Section.propTypes = {
|
|
28
|
-
/**
|
|
29
|
-
* Wrapping with 'Section' anything passed as child. Any valid React node
|
|
30
|
-
*/
|
|
31
|
-
children: propTypesExports.node.isRequired,
|
|
32
|
-
/**
|
|
33
|
-
* Display an icon. Values are the same as "Icon" atoms type prop
|
|
34
|
-
*/
|
|
35
|
-
icon: propTypesExports.string,
|
|
36
|
-
/**
|
|
37
|
-
* Text/Component to be displayed. Any valid React node
|
|
38
|
-
*/
|
|
39
|
-
text: propTypesExports.node.isRequired,
|
|
40
|
-
/**
|
|
41
|
-
* Actions to be displayed. Any valid React node
|
|
42
|
-
*/
|
|
43
|
-
actions: propTypesExports.node,
|
|
44
|
-
/**
|
|
45
|
-
* Title color
|
|
46
|
-
*/
|
|
47
|
-
color: propTypesExports.oneOf(titleConfig.color),
|
|
48
|
-
/**
|
|
49
|
-
* Displays a divider line
|
|
50
|
-
*/
|
|
51
|
-
withLine: propTypesExports.bool,
|
|
52
|
-
/**
|
|
53
|
-
* Additional className
|
|
54
|
-
*/
|
|
55
|
-
className: propTypesExports.string
|
|
56
|
-
};
|
|
57
|
-
Section.defaultProps = {
|
|
58
|
-
color: titleConfig.color[1],
|
|
59
|
-
withLine: false
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export { Section as default };
|
package/Status.js
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { _ as _extends } from './_rollupPluginBabelHelpers-e8fb2e5c.js';
|
|
2
|
-
import React__default from 'react';
|
|
3
|
-
import { p as propTypesExports } from './index-e0af0caf.js';
|
|
4
|
-
import { c as classnames } from './index-6ff23041.js';
|
|
5
|
-
import Icon from './Icon.js';
|
|
6
|
-
import Tooltip from './Tooltip.js';
|
|
7
|
-
import './globalStyling-9c60a159.js';
|
|
8
|
-
import { s as styleInject } from './style-inject.es-746bb8ed.js';
|
|
9
|
-
import './Popover-f4d1cac0.js';
|
|
10
|
-
import './_commonjsHelpers-24198af3.js';
|
|
11
|
-
import 'react-dom';
|
|
12
|
-
import './configs-91c86664.js';
|
|
13
|
-
import './index-ac59cb10.js';
|
|
14
|
-
import './dateValidation-67caec66.js';
|
|
15
|
-
import './useDeviceType-dd51db38.js';
|
|
16
|
-
import './useWindowSize-80369d76.js';
|
|
17
|
-
import './GeneUIProvider.js';
|
|
18
|
-
|
|
19
|
-
var css_248z = "[data-gene-ui-version=\"1.0.0\"] .static-title-holder{align-items:flex-start;display:inline-flex;flex-direction:column;max-width:100%;vertical-align:top}[data-gene-ui-version=\"1.0.0\"] .static-title-holder .st-t{font:600 1.4rem/1.8rem var(--font-family);margin:0 0 .4rem;opacity:.5;padding:0 var(--static-title-padding,0)}[data-gene-ui-version=\"1.0.0\"] .static-title-holder .st-c{max-width:100%}[data-gene-ui-version=\"1.0.0\"] .static-title-holder .st-c:nth-child(2){align-items:center;display:flex;min-height:3.2rem}[data-gene-ui-version=\"1.0.0\"] .static-title-holder.f-full-width,[data-gene-ui-version=\"1.0.0\"] .static-title-holder.f-full-width .st-c{width:100%}[data-gene-ui-version=\"1.0.0\"] .status-holder{align-items:center;display:flex;font:600 1.4rem/2.4rem var(--font-family)}[data-gene-ui-version=\"1.0.0\"] .status-holder p{height:2.4rem;overflow:hidden}[data-gene-ui-version=\"1.0.0\"] .status-holder span{display:block;overflow:hidden}[data-gene-ui-version=\"1.0.0\"] .status-holder>*+*{margin:0 0 0 .7rem}html[dir=rtl] .status-holder>*+*{margin:0 .7rem 0 0}[data-gene-ui-version=\"1.0.0\"] .status-holder .status-icon{align-items:center;color:var(--hero);display:flex;height:3rem;justify-content:center;position:relative;transition:color .3s,opacity .3s;width:3rem}[data-gene-ui-version=\"1.0.0\"] .status-holder .status-icon:after,[data-gene-ui-version=\"1.0.0\"] .status-holder .status-icon:before{border-radius:100%;content:\"\";display:block;height:100%;left:0;opacity:0;position:absolute;top:0;transition:opacity .3s,background .3s,border-color .3s;width:100%}[data-gene-ui-version=\"1.0.0\"] .status-holder .status-icon:before{background:var(--hero)}[data-gene-ui-version=\"1.0.0\"] .status-holder .status-icon:after{border:1px solid var(--hero)}[data-gene-ui-version=\"1.0.0\"] .status-holder .status-icon .icon{position:relative;z-index:2}[data-gene-ui-version=\"1.0.0\"] .status-holder:hover .hover-text+span,[data-gene-ui-version=\"1.0.0\"] .status-holder:not(:hover) .hover-text{height:0}@media (hover:hover){[data-gene-ui-version=\"1.0.0\"] .status-holder.clickable:hover .status-icon:before{opacity:.05}[data-gene-ui-version=\"1.0.0\"] .status-holder.clickable:hover .status-icon:after{opacity:.66}}";
|
|
20
|
-
styleInject(css_248z);
|
|
21
|
-
|
|
22
|
-
const statusIconTypes = ['dot', 'play', 'stop', 'circle', 'circle-outline'];
|
|
23
|
-
const statusEnums = {
|
|
24
|
-
dot: 'bc-icon-dot',
|
|
25
|
-
play: 'bc-icon-status-play',
|
|
26
|
-
stop: 'bc-icon-status-stop',
|
|
27
|
-
circle: 'bc-icon-status-circle',
|
|
28
|
-
'circle-outline': 'bc-icon-status-circle-outline'
|
|
29
|
-
};
|
|
30
|
-
function Status(_ref) {
|
|
31
|
-
let {
|
|
32
|
-
label,
|
|
33
|
-
color,
|
|
34
|
-
title,
|
|
35
|
-
onClick,
|
|
36
|
-
iconType,
|
|
37
|
-
hoverTitle,
|
|
38
|
-
className,
|
|
39
|
-
tooltipText,
|
|
40
|
-
...restProps
|
|
41
|
-
} = _ref;
|
|
42
|
-
const Content = /*#__PURE__*/React__default.createElement("ul", _extends({
|
|
43
|
-
className: "static-title-holder"
|
|
44
|
-
}, restProps), label && /*#__PURE__*/React__default.createElement("li", {
|
|
45
|
-
className: "st-t"
|
|
46
|
-
}, label), /*#__PURE__*/React__default.createElement("li", {
|
|
47
|
-
className: "st-c"
|
|
48
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
49
|
-
className: classnames('status-holder', "c-".concat(color), className, {
|
|
50
|
-
clickable: !!hoverTitle,
|
|
51
|
-
'cursor-pointer': !!onClick
|
|
52
|
-
}),
|
|
53
|
-
onClick: onClick,
|
|
54
|
-
style: {
|
|
55
|
-
'--hero': color
|
|
56
|
-
}
|
|
57
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
58
|
-
className: "status-icon"
|
|
59
|
-
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
60
|
-
type: statusEnums[iconType]
|
|
61
|
-
})), title && /*#__PURE__*/React__default.createElement("p", null, hoverTitle && /*#__PURE__*/React__default.createElement("span", {
|
|
62
|
-
className: "hover-text"
|
|
63
|
-
}, hoverTitle), /*#__PURE__*/React__default.createElement("span", null, title)))));
|
|
64
|
-
return tooltipText ? /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
65
|
-
position: "auto",
|
|
66
|
-
title: tooltipText
|
|
67
|
-
}, Content) : Content;
|
|
68
|
-
}
|
|
69
|
-
Status.propTypes = {
|
|
70
|
-
/**
|
|
71
|
-
* Label for 'Status'.
|
|
72
|
-
*/
|
|
73
|
-
label: propTypesExports.string,
|
|
74
|
-
/**
|
|
75
|
-
* Title for 'Status'.
|
|
76
|
-
*/
|
|
77
|
-
title: propTypesExports.string,
|
|
78
|
-
/**
|
|
79
|
-
* Fires an event on 'Status' change((event: Event) => void).
|
|
80
|
-
*/
|
|
81
|
-
onClick: propTypesExports.func,
|
|
82
|
-
/**
|
|
83
|
-
* External/Additional className that can be added to 'Status' component.
|
|
84
|
-
*/
|
|
85
|
-
className: propTypesExports.string,
|
|
86
|
-
/**
|
|
87
|
-
* Title for hovered state 'Status'.
|
|
88
|
-
*/
|
|
89
|
-
hoverTitle: propTypesExports.string,
|
|
90
|
-
/**
|
|
91
|
-
* Text for tooltip.
|
|
92
|
-
*/
|
|
93
|
-
tooltipText: propTypesExports.string,
|
|
94
|
-
/**
|
|
95
|
-
* External color className
|
|
96
|
-
*/
|
|
97
|
-
color: propTypesExports.string,
|
|
98
|
-
/**
|
|
99
|
-
* Various types for icon
|
|
100
|
-
*/
|
|
101
|
-
iconType: propTypesExports.oneOf(statusIconTypes)
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
export { Status as default, statusIconTypes };
|