@geneui/components 3.0.0-next-9230252-17092024 → 3.0.0-next-8d97069-19092024
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/index.js +5 -6
- package/AdvancedSearch/index.js +4 -5
- package/Alert/index.js +2 -2
- package/ArrowLeft-b88e2ba8.js +33 -0
- package/Avatar/index.js +1 -1
- package/Badge/index.js +1 -1
- package/Breadcrumb/index.js +3 -4
- package/BusyLoader/index.js +1 -1
- package/Button/index.js +1 -1
- package/CHANGELOG.md +23 -0
- package/Card/index.js +3 -4
- package/CardList/index.js +9 -10
- package/{CellMeasurerCache-a1dbe54e.js → CellMeasurerCache-281a5a2a.js} +1 -1
- package/Charts/index.js +25 -21
- package/Checkbox/index.js +3 -3
- package/CheckboxGroup/index.js +3 -3
- package/CheckboxGroupWithSearch/index.js +4 -5
- package/Collapse/index.js +1 -1
- package/ColorPicker/index.js +1 -1
- package/ComboBox/index.js +5 -5
- package/Copy/index.js +4 -4
- package/Counter/index.js +10 -12
- package/DateFilter/index.js +4 -5
- package/DatePicker/index.js +1 -1
- package/DatePickerInput/index.js +5 -6
- package/Divider/index.js +1 -1
- package/Drawer/index.js +4 -4
- package/Dropdown/index.js +6 -7
- package/Editor/index.js +2 -2
- package/Empty/index.js +1 -1
- package/ExtendedInput/index.js +4 -4
- package/Form/index.js +6 -7
- package/FormContainer/index.js +1 -1
- package/FormableCheckbox/index.js +4 -4
- package/FormableDatePicker/index.js +5 -6
- package/FormableDropdown/index.js +6 -7
- package/FormableEditor/index.js +2 -2
- package/{FormableHOC-70f027f8.js → FormableHOC-f4120178.js} +1 -1
- package/FormableMultiSelectDropdown/index.js +6 -7
- package/FormableNumberInput/index.js +4 -4
- package/FormableRadio/index.js +2 -2
- package/FormableSwitcher/index.js +2 -2
- package/FormableTextInput/index.js +4 -4
- package/FormableUploader/index.js +3 -4
- package/GeneUIProvider/index.js +350 -458
- package/Grid/index.js +2 -2
- package/HelperText/index.js +5 -35
- package/Holder/index.js +3 -4
- package/Icon/index.js +1 -1
- package/Image/index.js +6 -7
- package/ImagePreview/index.js +3 -4
- package/InteractiveWidget/index.js +3 -4
- package/KeyValue/index.js +1 -1
- package/Label/index.js +63 -48
- package/LinkButton/index.js +1 -1
- package/Menu/index.js +4 -4
- package/MobileNavigation/index.js +1 -1
- package/MobilePopup/index.js +4 -4
- package/Modal/index.js +2 -2
- package/ModuleTitle/index.js +4 -4
- package/NavigationMenu/index.js +5 -5
- package/Notification/index.js +2 -2
- package/Option/index.js +4 -4
- package/Overlay/index.js +3 -4
- package/Overspread/index.js +7 -8
- package/Pagination/index.js +3 -4
- package/Paper/index.js +1 -1
- package/Popover/index.js +410 -5
- package/PopoverV2/index.js +2 -2
- package/Products/index.js +2 -2
- package/Profile/index.js +3 -4
- package/Progress/index.js +1 -1
- package/Radio/index.js +1 -1
- package/RadioGroup/index.js +1 -1
- package/Range/index.js +1 -1
- package/Rating/index.js +4 -4
- package/RichEditor/index.js +1 -1
- package/{RichEditor-a3f1150e.js → RichEditor-3ad651c7.js} +1 -1
- package/Scrollbar/index.js +2 -2
- package/Search/index.js +3 -3
- package/SearchWithDropdown/index.js +7 -8
- package/Section/index.js +2 -2
- package/SkeletonLoader/index.js +1 -1
- package/Slider/index.js +3 -3
- package/Status/index.js +5 -5
- package/Steps/index.js +5 -5
- package/SuggestionList/index.js +2 -2
- package/Switcher/index.js +2 -2
- package/Table/index.js +15 -16
- package/TableCompositions/index.js +12 -13
- package/Tabs/index.js +1 -1
- package/Tag/index.js +2 -2
- package/Textarea/index.js +3 -3
- package/Time/index.js +1 -1
- package/TimePicker/index.js +56 -38
- package/Timeline/index.js +2 -2
- package/Title/index.js +2 -2
- package/Toaster/index.js +2 -2
- package/Tooltip/index.js +10 -153
- package/TransferList/index.js +7 -8
- package/Uploader/index.js +6 -7
- package/ValidatableCheckbox/index.js +3 -3
- package/ValidatableDatePicker/index.js +4 -5
- package/ValidatableDropdown/index.js +5 -6
- package/ValidatableElements/index.js +5 -6
- package/ValidatableMultiSelectDropdown/index.js +5 -6
- package/ValidatableNumberInput/index.js +3 -3
- package/ValidatableRadio/index.js +1 -1
- package/ValidatableSwitcher/index.js +1 -1
- package/ValidatableTextInput/index.js +3 -3
- package/ValidatableTimeInput/index.js +3 -3
- package/ValidatableUploader/index.js +2 -3
- package/Widget/index.js +3 -4
- package/{configs-0ed1e326.js → configs-34847b77.js} +1 -1
- package/hooks/useDeviceType.js +1 -1
- package/{index-34914e4c.js → index-263b0f0b.js} +1 -1
- package/{index-79316a14.js → index-3a6b7fd9.js} +10 -9
- package/index-49fbb32c.js +3101 -0
- package/{index-b4ec7815.js → index-73b4d98a.js} +2 -2
- package/{index-b139bff9.js → index-d8c45742.js} +4 -4
- package/index.js +14 -14
- package/lib/atoms/Button/Button.d.ts +1 -1
- package/lib/atoms/Label/Label.d.ts +45 -0
- package/lib/atoms/Label/index.d.ts +1 -0
- package/lib/molecules/Tooltip/Tooltip.d.ts +58 -0
- package/lib/molecules/Tooltip/index.d.ts +1 -0
- package/lib/providers/GeneUIProvider/GeneUIProvider.d.ts +1 -1
- package/package.json +3 -2
- package/{react-beautiful-dnd.esm-ec039212.js → react-beautiful-dnd.esm-bb1d95fc.js} +2 -1
- package/{index-b7c1fe38.js → redux-e591c1b8.js} +1 -272
- package/tokens-3e00442a.js +6 -0
- package/Popover-f4d1cac0.js +0 -411
- package/tokens-d88947bf.js +0 -6
package/Tabs/index.js
CHANGED
|
@@ -96,7 +96,7 @@ Tab.defaultProps = {
|
|
|
96
96
|
disabled: false
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
-
var css_248z = "[data-gene-ui-version=\"2.15.0\"] .tabs-holder{align-items:flex-start;display:flex;width:100%}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.reversed{flex-direction:row-reverse}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.horizontal{flex-direction:column}[data-gene-ui-version=\"2.15.0\"] .tabs-head{display:flex;flex-shrink:0;-webkit-user-select:none;user-select:none}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.horizontal>.tabs-head{width:100%}[data-gene-ui-version=\"2.15.0\"] .tabs-head>.tabs-wrapper{flex:auto}[data-gene-ui-version=\"2.15.0\"] .tabs-head>.tabs-actions{align-items:center;box-shadow:inset 0 -1px 0 0 rgba(var(--background-sc-rgb),.06);color:var(--hero);display:flex;flex-shrink:0}[data-gene-ui-version=\"2.15.0\"] .tabs-head>.tabs-actions>*{margin-inline-end:2rem}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.horizontal>.tabs-head>.tabs-wrapper{overflow-x:auto;width:100%}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.horizontal>.tabs-head>.tabs-wrapper::-webkit-scrollbar{display:none;height:0;width:0}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.horizontal>.tabs-head>.tabs-wrapper>.tabs-content.equal-tabs,[data-gene-ui-version=\"2.15.0\"] .tabs-holder.horizontal>.tabs-head>.tabs-wrapper>.tabs-content.type-basic{min-width:100%}[data-gene-ui-version=\"2.15.0\"] .tabs-content{display:inline-flex;font-weight:600;line-height:4.2rem;text-align:center;vertical-align:top}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content{flex-direction:column;text-align:start}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content .tab-icon{display:none}[data-gene-ui-version=\"2.15.0\"] .tabs-content>li{align-items:center;cursor:pointer;display:flex;justify-content:center;padding:0 2rem;position:relative;transition:color .3s,box-shadow .3s,border-color .3s,background-color,.3s}[data-gene-ui-version=\"2.15.0\"] .tabs-content>li .tab-icon{flex-shrink:0;margin-inline-end:1.4rem;margin-inline-start:-.4rem}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content>li{justify-content:flex-start;padding:0 3rem 0 2rem}html[dir=rtl] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content>li{padding:0 2rem 0 3rem}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.vertical:not(.reversed)>.tabs-head>.tabs-wrapper>.type-basic.tabs-content>li{justify-content:flex-end}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.reversed>.tabs-head>.tabs-wrapper>.tabs-content>li{padding:0 2rem 0 3rem}html[dir=rtl] .tabs-holder.reversed>.tabs-head>.tabs-wrapper>.tabs-content>li{padding:0 3rem 0 2rem}[data-gene-ui-version=\"2.15.0\"] .tabs-content>li.disabled{opacity:.5}[data-gene-ui-version=\"2.15.0\"] .tabs-content>li.active,[data-gene-ui-version=\"2.15.0\"] .tabs-content>li.disabled{pointer-events:none}[data-gene-ui-version=\"2.15.0\"] .tabs-content>li .tab-close-button{align-items:center;background:rgba(var(--background-sc-rgb),.07);border-radius:100%;color:var(--background-sc);cursor:pointer;display:flex;height:1.6rem;justify-content:center;margin-inline-end:-1.6rem;margin-inline-start:.8rem;pointer-events:auto;transition:color .3s,background-color .3s;width:1.6rem}[data-gene-ui-version=\"2.15.0\"] .tabs-content>li .tab-close-button .icon{font-size:1.2rem}@media (hover:hover){[data-gene-ui-version=\"2.15.0\"] .tabs-content>li .tab-close-button:hover{background:var(--hero);color:var(--hero-sc)}}[data-gene-ui-version=\"2.15.0\"] .tabs-content.active .tab-close-button{background:rgba(var(--hero-rgb),.1);color:var(--hero)}@media (hover:hover){[data-gene-ui-version=\"2.15.0\"] .tabs-content.active .tab-close-button:hover{background:var(--hero);color:var(--hero-sc)}}[data-gene-ui-version=\"2.15.0\"] .tabs-content.equal-tabs>li{flex:1;min-width:12rem}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.equal-tabs>li{width:13rem}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.equal-tabs.type-text>li{width:12rem}[data-gene-ui-version=\"2.15.0\"] .tabs-content.type-basic{box-shadow:inset 0 -1px 0 0 rgba(var(--background-sc-rgb),.06);line-height:4.6rem;padding:0 2rem}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-basic{box-shadow:inset -1px 0 0 rgba(var(--background-sc-rgb),.06);padding:2rem 0;text-align:end}html[dir=rtl] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-basic{box-shadow:inset 1px 0 0 rgba(var(--background-sc-rgb),.06)}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.reversed>.tabs-head>.tabs-wrapper>.tabs-content.type-basic{box-shadow:inset 1px 0 0 rgba(var(--background-sc-rgb),.06);text-align:start}html[dir=rtl] .tabs-holder.reversed>.tabs-head>.tabs-wrapper>.tabs-content.type-basic{box-shadow:inset -1px 0 0 rgba(var(--background-sc-rgb),.06)}[data-gene-ui-version=\"2.15.0\"] .tabs-content.type-basic>li{box-shadow:inset 0 0 0 var(--hero);flex:inherit}[data-gene-ui-version=\"2.15.0\"] .tabs-content.type-basic>li.active{box-shadow:inset 0 -.4rem 0 0 var(--hero)}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-basic>li.active{box-shadow:inset -.3rem 0 0 var(--hero)}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.reversed>.tabs-head>.tabs-wrapper>.tabs-content.type-basic>li.active,html[dir=rtl] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-basic>li.active{box-shadow:inset .3rem 0 0 var(--hero)}html[dir=rtl] .tabs-holder.reversed>.tabs-head>.tabs-wrapper>.tabs-content.type-basic>li.active{box-shadow:inset -.3rem 0 0 var(--hero)}[data-gene-ui-version=\"2.15.0\"] .tabs-content.type-box>li{border:1px solid #0000;border-radius:1rem 1rem 0 0;line-height:4.1rem}[data-gene-ui-version=\"2.15.0\"] .tabs-holder:not(.vertical)>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li+*{margin:0 0 0 .2rem}html[dir=rtl] .tabs-holder:not(.vertical)>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li+*{margin:0 .2rem 0 0}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li{border-radius:1rem 0 0 1rem}html[dir=rtl] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li{border-radius:0 1rem 1rem 0}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li+*{margin:.2rem 0 0}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.vertical.reversed>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li{border-radius:0 1rem 1rem 0}html[dir=rtl] .tabs-holder.vertical.reversed>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li{border-radius:1rem 0 0 1rem}@media (hover:hover){[data-gene-ui-version=\"2.15.0\"] .tabs-content.type-box>li:hover{border-color:rgba(var(--background-sc-rgb),.1)}}[data-gene-ui-version=\"2.15.0\"] .tabs-content.type-box>li.active{border-color:rgba(var(--background-sc-rgb),.1)}@media (hover:hover){html:not([dir=rtl]) .tabs-holder.vertical:not(.reversed)>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li:hover{border-right-color:#0000}html:not([dir=rtl]) .tabs-holder.vertical.reversed>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li:hover,html[dir=rtl] .tabs-holder.vertical:not(.reversed)>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li:hover{border-left-color:#0000}html[dir=rtl] .tabs-holder.vertical.reversed>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li:hover{border-right-color:#0000}}[data-gene-ui-version=\"2.15.0\"] .tabs-holder:not(.vertical)>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li.active{border-bottom-color:var(--background)}html:not([dir=rtl]) .tabs-holder.vertical:not(.reversed)>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li.active{border-right-color:var(--background)}html:not([dir=rtl]) .tabs-holder.reversed.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li.active,html[dir=rtl] .tabs-holder.vertical:not(.reversed)>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li.active{border-left-color:var(--background)}html[dir=rtl] .tabs-holder.reversed.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li.active{border-right-color:var(--background)}[data-gene-ui-version=\"2.15.0\"] .tabs-content.type-button{box-shadow:inset 0 0 0 1px rgba(var(--background-sc-rgb),.1)}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-button:not(.equal-tabs)>li{padding:0 2rem}[data-gene-ui-version=\"2.15.0\"] .tabs-content.type-button>li{box-shadow:inset 0 0 0 0 var(--hero)}[data-gene-ui-version=\"2.15.0\"] .tabs-content.type-button>li.active{box-shadow:inset 0 0 0 1px var(--hero)}[data-gene-ui-version=\"2.15.0\"] .tabs-content.type-text.equal-tabs>li{min-width:10rem}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-text.equal-tabs>li{min-width:12rem}[data-gene-ui-version=\"2.15.0\"] .tabs-content.type-text>li{line-height:2.8rem;padding:0 1.5rem}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-text>li{padding:0 2rem}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-text>li+*{margin:1rem 0 0}[data-gene-ui-version=\"2.15.0\"] .tabs-content.type-text>li.active{background:var(--hero);color:var(--hero-sc)}[data-gene-ui-version=\"2.15.0\"] .tabs-content.type-box>li.active,[data-gene-ui-version=\"2.15.0\"] .tabs-content.type-button>li.active{color:var(--hero)}[data-gene-ui-version=\"2.15.0\"] .tabs-content.type-button,[data-gene-ui-version=\"2.15.0\"] .tabs-content.type-button>li,[data-gene-ui-version=\"2.15.0\"] .tabs-content.type-text,[data-gene-ui-version=\"2.15.0\"] .tabs-content.type-text>li{border-radius:2rem}@media (hover:hover){[data-gene-ui-version=\"2.15.0\"] .tabs-content.type-button>li:not(.active):hover,[data-gene-ui-version=\"2.15.0\"] .tabs-content.type-text>li:not(.active):hover{color:var(--hero)}}[data-gene-ui-version=\"2.15.0\"] .tabs-content-holder{width:100%}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.vertical>.tabs-content-holder{flex:auto}[data-gene-ui-version=\"2.15.0\"] .tabs-content-holder.c-type-box{align-self:stretch;border:1px solid rgba(var(--background-sc-rgb),.1);border-radius:0 0 1rem 1rem;margin:-1px 0 0}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.vertical>.tabs-content-holder.c-type-box{border-radius:1rem}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.vertical:not(.reversed)>.tabs-content-holder.c-type-box{border-radius:0 1rem 1rem 0;margin:0 0 0 -1px}[data-gene-ui-version=\"2.15.0\"] .tabs-holder.vertical.reversed>.tabs-content-holder.c-type-box,html[dir=rtl] .tabs-holder.vertical:not(.reversed)>.tabs-content-holder.c-type-box{border-radius:1rem 0 0 1rem;margin:0 -1px 0 0}html[dir=rtl] .tabs-holder.vertical.reversed>.tabs-content-holder.c-type-box{border-radius:0 1rem 1rem 0;margin:0 0 0 -1px}[data-gene-ui-version=\"2.15.0\"] .external-link{align-items:center;display:flex;font-weight:600}[data-gene-ui-version=\"2.15.0\"] .external-link>*+*{margin-inline-start:.2rem}";
|
|
99
|
+
var css_248z = "[data-gene-ui-version=\"2.16.0\"] .tabs-holder{align-items:flex-start;display:flex;width:100%}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.reversed{flex-direction:row-reverse}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.horizontal{flex-direction:column}[data-gene-ui-version=\"2.16.0\"] .tabs-head{display:flex;flex-shrink:0;-webkit-user-select:none;user-select:none}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.horizontal>.tabs-head{width:100%}[data-gene-ui-version=\"2.16.0\"] .tabs-head>.tabs-wrapper{flex:auto}[data-gene-ui-version=\"2.16.0\"] .tabs-head>.tabs-actions{align-items:center;box-shadow:inset 0 -1px 0 0 rgba(var(--background-sc-rgb),.06);color:var(--hero);display:flex;flex-shrink:0}[data-gene-ui-version=\"2.16.0\"] .tabs-head>.tabs-actions>*{margin-inline-end:2rem}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.horizontal>.tabs-head>.tabs-wrapper{overflow-x:auto;width:100%}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.horizontal>.tabs-head>.tabs-wrapper::-webkit-scrollbar{display:none;height:0;width:0}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.horizontal>.tabs-head>.tabs-wrapper>.tabs-content.equal-tabs,[data-gene-ui-version=\"2.16.0\"] .tabs-holder.horizontal>.tabs-head>.tabs-wrapper>.tabs-content.type-basic{min-width:100%}[data-gene-ui-version=\"2.16.0\"] .tabs-content{display:inline-flex;font-weight:600;line-height:4.2rem;text-align:center;vertical-align:top}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content{flex-direction:column;text-align:start}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content .tab-icon{display:none}[data-gene-ui-version=\"2.16.0\"] .tabs-content>li{align-items:center;cursor:pointer;display:flex;justify-content:center;padding:0 2rem;position:relative;transition:color .3s,box-shadow .3s,border-color .3s,background-color,.3s}[data-gene-ui-version=\"2.16.0\"] .tabs-content>li .tab-icon{flex-shrink:0;margin-inline-end:1.4rem;margin-inline-start:-.4rem}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content>li{justify-content:flex-start;padding:0 3rem 0 2rem}html[dir=rtl] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content>li{padding:0 2rem 0 3rem}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.vertical:not(.reversed)>.tabs-head>.tabs-wrapper>.type-basic.tabs-content>li{justify-content:flex-end}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.reversed>.tabs-head>.tabs-wrapper>.tabs-content>li{padding:0 2rem 0 3rem}html[dir=rtl] .tabs-holder.reversed>.tabs-head>.tabs-wrapper>.tabs-content>li{padding:0 3rem 0 2rem}[data-gene-ui-version=\"2.16.0\"] .tabs-content>li.disabled{opacity:.5}[data-gene-ui-version=\"2.16.0\"] .tabs-content>li.active,[data-gene-ui-version=\"2.16.0\"] .tabs-content>li.disabled{pointer-events:none}[data-gene-ui-version=\"2.16.0\"] .tabs-content>li .tab-close-button{align-items:center;background:rgba(var(--background-sc-rgb),.07);border-radius:100%;color:var(--background-sc);cursor:pointer;display:flex;height:1.6rem;justify-content:center;margin-inline-end:-1.6rem;margin-inline-start:.8rem;pointer-events:auto;transition:color .3s,background-color .3s;width:1.6rem}[data-gene-ui-version=\"2.16.0\"] .tabs-content>li .tab-close-button .icon{font-size:1.2rem}@media (hover:hover){[data-gene-ui-version=\"2.16.0\"] .tabs-content>li .tab-close-button:hover{background:var(--hero);color:var(--hero-sc)}}[data-gene-ui-version=\"2.16.0\"] .tabs-content.active .tab-close-button{background:rgba(var(--hero-rgb),.1);color:var(--hero)}@media (hover:hover){[data-gene-ui-version=\"2.16.0\"] .tabs-content.active .tab-close-button:hover{background:var(--hero);color:var(--hero-sc)}}[data-gene-ui-version=\"2.16.0\"] .tabs-content.equal-tabs>li{flex:1;min-width:12rem}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.equal-tabs>li{width:13rem}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.equal-tabs.type-text>li{width:12rem}[data-gene-ui-version=\"2.16.0\"] .tabs-content.type-basic{box-shadow:inset 0 -1px 0 0 rgba(var(--background-sc-rgb),.06);line-height:4.6rem;padding:0 2rem}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-basic{box-shadow:inset -1px 0 0 rgba(var(--background-sc-rgb),.06);padding:2rem 0;text-align:end}html[dir=rtl] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-basic{box-shadow:inset 1px 0 0 rgba(var(--background-sc-rgb),.06)}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.reversed>.tabs-head>.tabs-wrapper>.tabs-content.type-basic{box-shadow:inset 1px 0 0 rgba(var(--background-sc-rgb),.06);text-align:start}html[dir=rtl] .tabs-holder.reversed>.tabs-head>.tabs-wrapper>.tabs-content.type-basic{box-shadow:inset -1px 0 0 rgba(var(--background-sc-rgb),.06)}[data-gene-ui-version=\"2.16.0\"] .tabs-content.type-basic>li{box-shadow:inset 0 0 0 var(--hero);flex:inherit}[data-gene-ui-version=\"2.16.0\"] .tabs-content.type-basic>li.active{box-shadow:inset 0 -.4rem 0 0 var(--hero)}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-basic>li.active{box-shadow:inset -.3rem 0 0 var(--hero)}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.reversed>.tabs-head>.tabs-wrapper>.tabs-content.type-basic>li.active,html[dir=rtl] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-basic>li.active{box-shadow:inset .3rem 0 0 var(--hero)}html[dir=rtl] .tabs-holder.reversed>.tabs-head>.tabs-wrapper>.tabs-content.type-basic>li.active{box-shadow:inset -.3rem 0 0 var(--hero)}[data-gene-ui-version=\"2.16.0\"] .tabs-content.type-box>li{border:1px solid #0000;border-radius:1rem 1rem 0 0;line-height:4.1rem}[data-gene-ui-version=\"2.16.0\"] .tabs-holder:not(.vertical)>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li+*{margin:0 0 0 .2rem}html[dir=rtl] .tabs-holder:not(.vertical)>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li+*{margin:0 .2rem 0 0}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li{border-radius:1rem 0 0 1rem}html[dir=rtl] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li{border-radius:0 1rem 1rem 0}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li+*{margin:.2rem 0 0}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.vertical.reversed>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li{border-radius:0 1rem 1rem 0}html[dir=rtl] .tabs-holder.vertical.reversed>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li{border-radius:1rem 0 0 1rem}@media (hover:hover){[data-gene-ui-version=\"2.16.0\"] .tabs-content.type-box>li:hover{border-color:rgba(var(--background-sc-rgb),.1)}}[data-gene-ui-version=\"2.16.0\"] .tabs-content.type-box>li.active{border-color:rgba(var(--background-sc-rgb),.1)}@media (hover:hover){html:not([dir=rtl]) .tabs-holder.vertical:not(.reversed)>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li:hover{border-right-color:#0000}html:not([dir=rtl]) .tabs-holder.vertical.reversed>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li:hover,html[dir=rtl] .tabs-holder.vertical:not(.reversed)>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li:hover{border-left-color:#0000}html[dir=rtl] .tabs-holder.vertical.reversed>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li:hover{border-right-color:#0000}}[data-gene-ui-version=\"2.16.0\"] .tabs-holder:not(.vertical)>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li.active{border-bottom-color:var(--background)}html:not([dir=rtl]) .tabs-holder.vertical:not(.reversed)>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li.active{border-right-color:var(--background)}html:not([dir=rtl]) .tabs-holder.reversed.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li.active,html[dir=rtl] .tabs-holder.vertical:not(.reversed)>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li.active{border-left-color:var(--background)}html[dir=rtl] .tabs-holder.reversed.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-box>li.active{border-right-color:var(--background)}[data-gene-ui-version=\"2.16.0\"] .tabs-content.type-button{box-shadow:inset 0 0 0 1px rgba(var(--background-sc-rgb),.1)}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-button:not(.equal-tabs)>li{padding:0 2rem}[data-gene-ui-version=\"2.16.0\"] .tabs-content.type-button>li{box-shadow:inset 0 0 0 0 var(--hero)}[data-gene-ui-version=\"2.16.0\"] .tabs-content.type-button>li.active{box-shadow:inset 0 0 0 1px var(--hero)}[data-gene-ui-version=\"2.16.0\"] .tabs-content.type-text.equal-tabs>li{min-width:10rem}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-text.equal-tabs>li{min-width:12rem}[data-gene-ui-version=\"2.16.0\"] .tabs-content.type-text>li{line-height:2.8rem;padding:0 1.5rem}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-text>li{padding:0 2rem}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.vertical>.tabs-head>.tabs-wrapper>.tabs-content.type-text>li+*{margin:1rem 0 0}[data-gene-ui-version=\"2.16.0\"] .tabs-content.type-text>li.active{background:var(--hero);color:var(--hero-sc)}[data-gene-ui-version=\"2.16.0\"] .tabs-content.type-box>li.active,[data-gene-ui-version=\"2.16.0\"] .tabs-content.type-button>li.active{color:var(--hero)}[data-gene-ui-version=\"2.16.0\"] .tabs-content.type-button,[data-gene-ui-version=\"2.16.0\"] .tabs-content.type-button>li,[data-gene-ui-version=\"2.16.0\"] .tabs-content.type-text,[data-gene-ui-version=\"2.16.0\"] .tabs-content.type-text>li{border-radius:2rem}@media (hover:hover){[data-gene-ui-version=\"2.16.0\"] .tabs-content.type-button>li:not(.active):hover,[data-gene-ui-version=\"2.16.0\"] .tabs-content.type-text>li:not(.active):hover{color:var(--hero)}}[data-gene-ui-version=\"2.16.0\"] .tabs-content-holder{width:100%}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.vertical>.tabs-content-holder{flex:auto}[data-gene-ui-version=\"2.16.0\"] .tabs-content-holder.c-type-box{align-self:stretch;border:1px solid rgba(var(--background-sc-rgb),.1);border-radius:0 0 1rem 1rem;margin:-1px 0 0}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.vertical>.tabs-content-holder.c-type-box{border-radius:1rem}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.vertical:not(.reversed)>.tabs-content-holder.c-type-box{border-radius:0 1rem 1rem 0;margin:0 0 0 -1px}[data-gene-ui-version=\"2.16.0\"] .tabs-holder.vertical.reversed>.tabs-content-holder.c-type-box,html[dir=rtl] .tabs-holder.vertical:not(.reversed)>.tabs-content-holder.c-type-box{border-radius:1rem 0 0 1rem;margin:0 -1px 0 0}html[dir=rtl] .tabs-holder.vertical.reversed>.tabs-content-holder.c-type-box{border-radius:0 1rem 1rem 0;margin:0 0 0 -1px}[data-gene-ui-version=\"2.16.0\"] .external-link{align-items:center;display:flex;font-weight:600}[data-gene-ui-version=\"2.16.0\"] .external-link>*+*{margin-inline-start:.2rem}";
|
|
100
100
|
styleInject(css_248z);
|
|
101
101
|
|
|
102
102
|
function Tabs(props) {
|
package/Tag/index.js
CHANGED
|
@@ -2,10 +2,10 @@ import { _ as _extends } from '../_rollupPluginBabelHelpers-a83240e1.js';
|
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { c as classnames } from '../index-031ff73c.js';
|
|
5
|
-
import {
|
|
5
|
+
import { d as tagConfig } from '../configs-34847b77.js';
|
|
6
6
|
import { s as styleInject } from '../style-inject.es-746bb8ed.js';
|
|
7
7
|
|
|
8
|
-
var css_248z = "[data-gene-ui-version=\"2.
|
|
8
|
+
var css_248z = "[data-gene-ui-version=\"2.16.0\"] .static-title-holder{align-items:flex-start;display:inline-flex;flex-direction:column;max-width:100%;vertical-align:top}[data-gene-ui-version=\"2.16.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=\"2.16.0\"] .static-title-holder .st-c{max-width:100%}[data-gene-ui-version=\"2.16.0\"] .static-title-holder .st-c:nth-child(2){align-items:center;display:flex;min-height:3.2rem}[data-gene-ui-version=\"2.16.0\"] .static-title-holder.f-full-width,[data-gene-ui-version=\"2.16.0\"] .static-title-holder.f-full-width .st-c{width:100%}[data-gene-ui-version=\"2.16.0\"] .tag-c{--color:var(--hero);align-items:center;background:var(--background);color:var(--color);display:flex;flex-direction:row-reverse;flex-shrink:0;font:600 1.4rem/1.8rem var(--font-family);height:var(--size);justify-content:center;max-width:100%;padding:0 1rem;position:relative;text-align:center;transition:color .3s;-webkit-user-select:none;user-select:none;width:100%}[data-gene-ui-version=\"2.16.0\"] .tag-c.s-small{--size:2.4rem;font-size:1.2rem}html:not([dir=rtl]) .tag-c.s-small .icon{margin-left:1px}html[dir=rtl] .tag-c.s-small .icon{margin-right:1px}[data-gene-ui-version=\"2.16.0\"] .tag-c.s-medium{--size:2.6rem}html:not([dir=rtl]) .tag-c.s-medium .icon{margin-left:.5rem}html[dir=rtl] .tag-c.s-medium .icon{margin-right:.5rem}[data-gene-ui-version=\"2.16.0\"] .tag-c.s-big{--size:3rem}html:not([dir=rtl]) .tag-c.s-big .icon{margin-left:.5rem}html[dir=rtl] .tag-c.s-big .icon{margin-right:.5rem}[data-gene-ui-version=\"2.16.0\"] .tag-c.f-compact{min-width:var(--size)}[data-gene-ui-version=\"2.16.0\"] .tag-c.f-compact.s-small{padding:0 .4rem}[data-gene-ui-version=\"2.16.0\"] .tag-c.f-compact.s-medium{padding:0 .5rem}[data-gene-ui-version=\"2.16.0\"] .tag-c.f-compact.s-big{padding:0 .7rem}html:not([dir=rtl]) .tag-c:not(.f-compact).s-small .icon{margin-right:-.9rem}html[dir=rtl] .tag-c:not(.f-compact).s-small .icon{margin-left:-.9rem}html:not([dir=rtl]) .tag-c:not(.f-compact).s-medium .icon{margin-right:-.7rem}html[dir=rtl] .tag-c:not(.f-compact).s-medium .icon{margin-left:-.7rem}html:not([dir=rtl]) .tag-c:not(.f-compact).s-big .icon{margin-right:-.2rem}html[dir=rtl] .tag-c:not(.f-compact).s-big .icon{margin-left:-.2rem}[data-gene-ui-version=\"2.16.0\"] .tag-c.cr-full-radius{border-radius:1.4rem}[data-gene-ui-version=\"2.16.0\"] .tag-c.cr-smooth-radius{border-radius:.6rem}[data-gene-ui-version=\"2.16.0\"] .tag-c:not(.active).a-simple{--color:var(--background-sc)}[data-gene-ui-version=\"2.16.0\"] .tag-c:not(.active).a-simple .tag-backdrop:before{opacity:.1}[data-gene-ui-version=\"2.16.0\"] .tag-c:not(.active).a-simple .tag-backdrop:after{content:none}[data-gene-ui-version=\"2.16.0\"] .tag-c:not(.active).a-minimal .tag-backdrop{--color:var(--background-sc)}[data-gene-ui-version=\"2.16.0\"] .tag-c:not(.active).a-minimal .tag-backdrop:before{opacity:.03}[data-gene-ui-version=\"2.16.0\"] .tag-c:not(.active).a-minimal .tag-backdrop:after{opacity:.07}[data-gene-ui-version=\"2.16.0\"] .tag-c:not(.active).a-outline .tag-backdrop:before{content:none}[data-gene-ui-version=\"2.16.0\"] .tag-c:not(.active).a-colored .tag-backdrop:before{opacity:.1}[data-gene-ui-version=\"2.16.0\"] .tag-c:not(.active).a-clean{--color:var(--background-sc)}@media (hover:hover){[data-gene-ui-version=\"2.16.0\"] .tag-c:not(.active).a-clean:hover{--color:var(--hero)}}[data-gene-ui-version=\"2.16.0\"] .tag-c:not(.active).a-clean .tag-backdrop:after,[data-gene-ui-version=\"2.16.0\"] .tag-c:not(.active).a-clean .tag-backdrop:before{content:none}[data-gene-ui-version=\"2.16.0\"] .tag-c:not(.active).a-light .tag-backdrop:before{opacity:.1}[data-gene-ui-version=\"2.16.0\"] .tag-c:not(.active).a-light .tag-backdrop:after{border:0}[data-gene-ui-version=\"2.16.0\"] .tag-c.active{color:var(--hero-sc)}@media (hover:hover){[data-gene-ui-version=\"2.16.0\"] .tag-c:hover .tag-backdrop{opacity:.6}}[data-gene-ui-version=\"2.16.0\"] .tag-c .icon,[data-gene-ui-version=\"2.16.0\"] .tag-c .tag-cc{position:relative;transition:opacity .3s;z-index:1}[data-gene-ui-version=\"2.16.0\"] .tag-c .icon{cursor:pointer;opacity:.5}@media (hover:hover){[data-gene-ui-version=\"2.16.0\"] .tag-c .icon:hover{opacity:1}[data-gene-ui-version=\"2.16.0\"] .tag-c .icon:hover~.tag-cp{opacity:.6}}[data-gene-ui-version=\"2.16.0\"] .tag-backdrop{border-radius:inherit;height:100%;left:0;position:absolute;top:0;transition:opacity .3s;width:100%}[data-gene-ui-version=\"2.16.0\"] .tag-backdrop:after,[data-gene-ui-version=\"2.16.0\"] .tag-backdrop:before{border-radius:inherit;content:\"\";display:block;height:100%;left:0;position:absolute;top:0;width:100%}[data-gene-ui-version=\"2.16.0\"] .tag-backdrop:before{background:var(--color);transition:background .3s,opacity .3s}[data-gene-ui-version=\"2.16.0\"] .tag-backdrop:after{border:1px solid var(--color);transition:border-color .3s,opacity .3s}";
|
|
9
9
|
styleInject(css_248z);
|
|
10
10
|
|
|
11
11
|
function Tag(_ref) {
|
package/Textarea/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { _ as _extends } from '../_rollupPluginBabelHelpers-a83240e1.js';
|
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { n as noop } from '../index-a0e4e333.js';
|
|
5
|
-
import { i as inputConfig, s as screenTypes } from '../configs-
|
|
5
|
+
import { i as inputConfig, s as screenTypes } from '../configs-34847b77.js';
|
|
6
6
|
import ExtendedInput from '../ExtendedInput/index.js';
|
|
7
7
|
import { s as styleInject } from '../style-inject.es-746bb8ed.js';
|
|
8
8
|
import '../dateValidation-67caec66.js';
|
|
@@ -20,8 +20,8 @@ import '../hooks/useClickOutside.js';
|
|
|
20
20
|
import '../config-1053d64d.js';
|
|
21
21
|
import '../Scrollbar/index.js';
|
|
22
22
|
import '../callAfterDelay-7272faca.js';
|
|
23
|
-
import '../
|
|
24
|
-
import '../
|
|
23
|
+
import '../index-49fbb32c.js';
|
|
24
|
+
import '../tslib.es6-f211516f.js';
|
|
25
25
|
import '../GeneUIProvider/index.js';
|
|
26
26
|
|
|
27
27
|
var css_248z = "";
|
package/Time/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { s as styleInject } from '../style-inject.es-746bb8ed.js';
|
|
|
9
9
|
import '../_commonjsHelpers-24198af3.js';
|
|
10
10
|
import '../index-031ff73c.js';
|
|
11
11
|
|
|
12
|
-
var css_248z = "[data-gene-ui-version=\"2.
|
|
12
|
+
var css_248z = "[data-gene-ui-version=\"2.16.0\"] .time-holder{align-items:center;display:flex;font-weight:600;line-height:3.2rem;white-space:nowrap}[data-gene-ui-version=\"2.16.0\"] .time-holder>*+*{margin:0 0 0 .3rem}html[dir=rtl] .time-holder>*+*{margin:0 .3rem 0 0}";
|
|
13
13
|
styleInject(css_248z);
|
|
14
14
|
|
|
15
15
|
function Time(_ref) {
|
package/TimePicker/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as _extends } from '../_rollupPluginBabelHelpers-a83240e1.js';
|
|
2
|
-
import React__default, { useRef, useState, useEffect, useMemo, useCallback } from 'react';
|
|
2
|
+
import React__default, { forwardRef, useRef, useState, useImperativeHandle, useEffect, useMemo, useCallback } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { c as classnames } from '../index-031ff73c.js';
|
|
5
|
-
import {
|
|
5
|
+
import { f as timePickerConfig, s as screenTypes } from '../configs-34847b77.js';
|
|
6
6
|
import { n as noop } from '../index-a0e4e333.js';
|
|
7
7
|
import useDeviceType from '../hooks/useDeviceType.js';
|
|
8
8
|
import CustomScrollbar from '../Scrollbar/index.js';
|
|
@@ -13,7 +13,7 @@ import '../dateValidation-67caec66.js';
|
|
|
13
13
|
import 'react-dom';
|
|
14
14
|
import useKeyDown from '../hooks/useKeyDown.js';
|
|
15
15
|
import useClickOutside from '../hooks/useClickOutside.js';
|
|
16
|
-
import { P as PopoverV2 } from '../index-
|
|
16
|
+
import { P as PopoverV2 } from '../index-73b4d98a.js';
|
|
17
17
|
import { s as styleInject } from '../style-inject.es-746bb8ed.js';
|
|
18
18
|
import '../hooks/useWindowSize.js';
|
|
19
19
|
import '../hooks/useDebounce.js';
|
|
@@ -22,14 +22,14 @@ import '../useEllipsisDetection-4d997d5d.js';
|
|
|
22
22
|
import '../SuggestionList/index.js';
|
|
23
23
|
import '../config-1053d64d.js';
|
|
24
24
|
import '../callAfterDelay-7272faca.js';
|
|
25
|
-
import '../
|
|
26
|
-
import '../
|
|
25
|
+
import '../index-49fbb32c.js';
|
|
26
|
+
import '../tslib.es6-f211516f.js';
|
|
27
27
|
import '../GeneUIProvider/index.js';
|
|
28
28
|
import '../hooks/useMount.js';
|
|
29
29
|
import '../index-122432cd.js';
|
|
30
30
|
import '../debounce-4419bc2f.js';
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
const TimePickerPopover = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
33
33
|
let {
|
|
34
34
|
children,
|
|
35
35
|
readOnly,
|
|
@@ -39,16 +39,19 @@ function TimePickerPopover(_ref) {
|
|
|
39
39
|
} = _ref;
|
|
40
40
|
const rootRef = useRef(null);
|
|
41
41
|
const [isOpen, setIsOpen] = useState(false);
|
|
42
|
-
|
|
42
|
+
useImperativeHandle(ref, () => ({
|
|
43
|
+
toggleOpen() {
|
|
44
|
+
let isPopoverOpen = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : isOpen;
|
|
45
|
+
setIsOpen(!isPopoverOpen);
|
|
46
|
+
}
|
|
47
|
+
}));
|
|
48
|
+
const openPopover = () => !readOnly && !isOpen && setIsOpen(true);
|
|
43
49
|
const closePopover = () => setIsOpen(false);
|
|
44
50
|
useKeyDown(openPopover, [openPopover], rootRef, ['Enter']);
|
|
45
51
|
useKeyDown(closePopover, [closePopover], rootRef, ['Tab', 'Escape']);
|
|
46
52
|
const handleOutsideClick = useClickOutside(event => {
|
|
47
53
|
!rootRef.current.contains(event.target) && closePopover();
|
|
48
54
|
});
|
|
49
|
-
|
|
50
|
-
// We need to close popup every time when
|
|
51
|
-
// user select some value from current popup
|
|
52
55
|
useEffect(() => {
|
|
53
56
|
setIsOpen(false);
|
|
54
57
|
}, [value]);
|
|
@@ -63,9 +66,9 @@ function TimePickerPopover(_ref) {
|
|
|
63
66
|
ref: rootRef,
|
|
64
67
|
onClick: openPopover
|
|
65
68
|
}, children));
|
|
66
|
-
}
|
|
69
|
+
});
|
|
67
70
|
|
|
68
|
-
var css_248z = "[data-gene-ui-version=\"2.
|
|
71
|
+
var css_248z = "[data-gene-ui-version=\"2.16.0\"] .time-picker-holder{width:100%}[data-gene-ui-version=\"2.16.0\"] .time-picker-holder.read-only .cursor-pointer{cursor:default}[data-gene-ui-version=\"2.16.0\"] .time-picker-holder.mobile{caret-color:#0000;color:#0000;text-shadow:0 0 0 rgba(var(--background-sc-rgb),.75)}[data-gene-ui-version=\"2.16.0\"] .time-picker-holder.disabled{opacity:.6;pointer-events:none}[data-gene-ui-version=\"2.16.0\"] .time-picker-holder>ul{align-items:center;display:flex;width:100%}[data-gene-ui-version=\"2.16.0\"] .time-picker-holder>ul>li.no-shrink{align-items:center;display:flex;flex-shrink:0;justify-content:center}[data-gene-ui-version=\"2.16.0\"] .time-picker-holder>ul>li.no-shrink>span{display:block;font-weight:600;margin:0 .5rem}[data-gene-ui-version=\"2.16.0\"] .time-picker-holder>ul>li.shrink-auto{flex:auto}[data-gene-ui-version=\"2.16.0\"] .time-picker-holder>ul>li.icon-holder{margin-inline-end:.5rem;width:4rem}[data-gene-ui-version=\"2.16.0\"] .time-picker-drop-holder{display:flex;width:100%}[data-gene-ui-version=\"2.16.0\"] .time-picker-drop-holder>li{width:100%}[data-gene-ui-version=\"2.16.0\"] .time-picker-drop-holder>li+li{border-inline-start:1px solid rgba(var(--background-sc-rgb),.08)}[data-gene-ui-version=\"2.16.0\"] .time-picker-drop{font:600 1.4rem/1.8rem var(--font-family);padding:1rem 0;width:100%}[data-gene-ui-version=\"2.16.0\"] .time-picker-drop ul{width:100%}[data-gene-ui-version=\"2.16.0\"] .time-picker-drop ul li{align-items:center;cursor:pointer;display:flex;height:4rem;justify-content:center;text-align:center;transition:background .4s,color .4s;width:100%}@media (hover:hover){[data-gene-ui-version=\"2.16.0\"] .time-picker-drop ul li:hover{background:rgba(var(--background-sc-rgb),.05)}}[data-gene-ui-version=\"2.16.0\"] .time-picker-drop ul li.active{color:var(--hero)}";
|
|
69
72
|
styleInject(css_248z);
|
|
70
73
|
|
|
71
74
|
function generateTimeValues(format, max) {
|
|
@@ -133,6 +136,7 @@ function TimePicker(_ref) {
|
|
|
133
136
|
const [hourPopupValue, setHourPopupValue] = useState(null);
|
|
134
137
|
const [minutePopupValue, setMinutePopupValue] = useState(null);
|
|
135
138
|
const [secondPopupValue, setSecondPopupValue] = useState(null);
|
|
139
|
+
const childRef = useRef();
|
|
136
140
|
|
|
137
141
|
// for replacing special symbols
|
|
138
142
|
const numberRegExp = useMemo(() => {
|
|
@@ -259,7 +263,7 @@ function TimePicker(_ref) {
|
|
|
259
263
|
setInputValue(time);
|
|
260
264
|
handleChange(e, time);
|
|
261
265
|
}, [hour, minute, second, separator, showSeconds, handleChange, combinedValue]);
|
|
262
|
-
const handleInputChange =
|
|
266
|
+
const handleInputChange = e => {
|
|
263
267
|
const {
|
|
264
268
|
value
|
|
265
269
|
} = e.target;
|
|
@@ -269,8 +273,6 @@ function TimePicker(_ref) {
|
|
|
269
273
|
const timeParts = replacedValue.split(separator);
|
|
270
274
|
const lastChar = replacedValue[replacedValue.length - 1];
|
|
271
275
|
const secondLastChar = replacedValue[replacedValue.length - 2];
|
|
272
|
-
|
|
273
|
-
// Checking if last and second last chars are same and equal to separator then return
|
|
274
276
|
if (lastChar === separator && lastChar === secondLastChar) return;
|
|
275
277
|
if (value === '') {
|
|
276
278
|
setHour('');
|
|
@@ -310,9 +312,6 @@ function TimePicker(_ref) {
|
|
|
310
312
|
outOfRange = true;
|
|
311
313
|
}
|
|
312
314
|
}
|
|
313
|
-
|
|
314
|
-
// Make field valid when after typing field pass validation
|
|
315
|
-
// but we must set error only when user click outside or onBlur event fires
|
|
316
315
|
!checkTimeValidation(timeParts[0], false) && setHourFieldError(false);
|
|
317
316
|
!checkMinuteValidation(timeParts[1], false) && setMinuteFieldError(false);
|
|
318
317
|
(!showSeconds || !checkSecondValidation(timeParts[2], false)) && setSecondFieldError(false);
|
|
@@ -320,31 +319,46 @@ function TimePicker(_ref) {
|
|
|
320
319
|
setInputValue(replacedValue);
|
|
321
320
|
onChange(e);
|
|
322
321
|
}
|
|
323
|
-
}
|
|
322
|
+
};
|
|
324
323
|
useEffect(() => {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
}, [combinedValue, hour, hourFormat, minute, second]);
|
|
324
|
+
if ((disabled || readOnly) && childRef.current) {
|
|
325
|
+
childRef.current.toggleOpen(true);
|
|
326
|
+
}
|
|
327
|
+
}, [disabled, readOnly]);
|
|
330
328
|
useEffect(() => {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
329
|
+
if (hour) {
|
|
330
|
+
const formattedHour = convertToFormat(hour, hourFormat);
|
|
331
|
+
setHour(formattedHour);
|
|
332
|
+
setInputValue(combinedValue(formattedHour, minute, second, false));
|
|
333
|
+
}
|
|
334
|
+
}, [hourFormat]);
|
|
335
|
+
useEffect(() => {
|
|
336
|
+
if (minute) {
|
|
337
|
+
const formattedMinute = convertToFormat(minute, minuteFormat);
|
|
338
|
+
setMinute(formattedMinute);
|
|
339
|
+
setInputValue(combinedValue(hour, formattedMinute, second, false));
|
|
340
|
+
}
|
|
341
|
+
}, [minuteFormat]);
|
|
342
|
+
useEffect(() => {
|
|
343
|
+
if (second) {
|
|
344
|
+
const formattedSecond = convertToFormat(second, secondFormat);
|
|
345
|
+
setSecond(formattedSecond);
|
|
346
|
+
setInputValue(combinedValue(hour, minute, formattedSecond, false));
|
|
347
|
+
}
|
|
348
|
+
}, [secondFormat]);
|
|
336
349
|
useEffect(() => {
|
|
337
|
-
|
|
338
|
-
const
|
|
339
|
-
setSecond(
|
|
340
|
-
|
|
341
|
-
|
|
350
|
+
if (!inputValue) return;
|
|
351
|
+
const [splitHour, splitMinute, splitSecond] = inputValue.split(separator);
|
|
352
|
+
!showSeconds && setSecond('');
|
|
353
|
+
showSeconds && (inputValue || hour) && !second && setSecond(convertToFormat(second, secondFormat));
|
|
354
|
+
setInputValue(combinedValue(splitHour, splitMinute, splitSecond));
|
|
355
|
+
}, [showSeconds]);
|
|
342
356
|
useEffect(() => {
|
|
343
357
|
if (value) {
|
|
344
|
-
const
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
showSeconds &&
|
|
358
|
+
const [splitHour, splitMinute, splitSecond] = value.split(separator);
|
|
359
|
+
splitHour && setHour(splitHour);
|
|
360
|
+
splitMinute && setMinute(splitMinute);
|
|
361
|
+
showSeconds && splitSecond && setSecond(splitSecond);
|
|
348
362
|
setInputValue(value);
|
|
349
363
|
}
|
|
350
364
|
}, [value, separator, showSeconds]);
|
|
@@ -389,6 +403,7 @@ function TimePicker(_ref) {
|
|
|
389
403
|
onBlur("".concat(hour).concat(hour && minute && ':').concat(minute).concat(minute && second && ':').concat(second), event);
|
|
390
404
|
}, [hour, minute, second, onBlur, hourFormat, minuteFormat, showSeconds, secondFormat]);
|
|
391
405
|
const signleInputPopoverValue = useMemo(() => showSeconds ? convertToFormat(second, secondFormat, true) : convertToFormat(minute, minuteFormat, true), [second, secondFormat, minute, minuteFormat, showSeconds]);
|
|
406
|
+
const handleIconClick = () => childRef.current && !readOnly && !disabled && childRef.current.toggleOpen();
|
|
392
407
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
393
408
|
className: classnames('time-picker-holder', className, {
|
|
394
409
|
'read-only': readOnly,
|
|
@@ -464,6 +479,7 @@ function TimePicker(_ref) {
|
|
|
464
479
|
toggleHandler: handlePopoverToggle,
|
|
465
480
|
readOnly: readOnly,
|
|
466
481
|
value: signleInputPopoverValue,
|
|
482
|
+
ref: childRef,
|
|
467
483
|
Content: /*#__PURE__*/React__default.createElement("ul", {
|
|
468
484
|
className: "time-picker-drop-holder"
|
|
469
485
|
}, /*#__PURE__*/React__default.createElement("li", null, hours), /*#__PURE__*/React__default.createElement("li", null, minutes), showSeconds && /*#__PURE__*/React__default.createElement("li", null, seconds)),
|
|
@@ -477,6 +493,8 @@ function TimePicker(_ref) {
|
|
|
477
493
|
itemsDirection: "end",
|
|
478
494
|
readOnly: readOnly,
|
|
479
495
|
writeProtected: isMobile,
|
|
496
|
+
onIconClick: handleIconClick,
|
|
497
|
+
clickableIcon: true,
|
|
480
498
|
onBlur: handleInputBlur
|
|
481
499
|
}, restProps))));
|
|
482
500
|
}
|
package/Timeline/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import '../dateValidation-67caec66.js';
|
|
|
9
9
|
import '../_commonjsHelpers-24198af3.js';
|
|
10
10
|
import 'react-dom';
|
|
11
11
|
|
|
12
|
-
var css_248z$1 = "[data-gene-ui-version=\"2.
|
|
12
|
+
var css_248z$1 = "[data-gene-ui-version=\"2.16.0\"] .timeline-item{display:flex;font-weight:600;line-height:1.36}[data-gene-ui-version=\"2.16.0\"] .timeline-item.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=\"2.16.0\"] .timeline-item.c-danger{--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=\"2.16.0\"] .timeline-item:not(:last-child).with-line .t-line:before{background:rgba(var(--background-sc-rgb),.1)}[data-gene-ui-version=\"2.16.0\"] .timeline-item:not(:last-child) .t-texts{padding:0 0 2rem}[data-gene-ui-version=\"2.16.0\"] .timeline-item>li{display:flex}[data-gene-ui-version=\"2.16.0\"] .timeline-item.a-default .t-texts>*+*{margin:0 0 0 1rem}html[dir=rtl] .timeline-item.a-default .t-texts>*+*{margin:0 1rem 0 0}[data-gene-ui-version=\"2.16.0\"] .timeline-item.a-compact .t-texts{flex-direction:column}[data-gene-ui-version=\"2.16.0\"] .timeline-item.a-compact .t-texts>*+*{margin:.5rem 0 0}[data-gene-ui-version=\"2.16.0\"] .timeline-item .t-line{flex-shrink:0;position:relative}[data-gene-ui-version=\"2.16.0\"] .timeline-item .t-line:before{content:\"\";display:block;height:100%;margin:0 .5rem;width:1px}[data-gene-ui-version=\"2.16.0\"] .timeline-item .t-texts{flex:auto;margin:0 0 0 1.5rem}html[dir=rtl] .timeline-item .t-texts{margin:0 1.5rem 0 0}[data-gene-ui-version=\"2.16.0\"] .timeline-item .t-description{color:rgba(var(--background-sc-rgb),.6);font:600 1.2rem/1.8rem var(--font-family)}[data-gene-ui-version=\"2.16.0\"] .timeline-item .t-description,[data-gene-ui-version=\"2.16.0\"] .timeline-item .t-title{max-width:100%}[data-gene-ui-version=\"2.16.0\"] .timeline-item .icon{background:var(--background);border-radius:100%;color:var(--hero);left:50%;position:absolute;top:0;transform:translate3d(-50%,-.3rem,0)}[data-gene-ui-version=\"2.16.0\"] .timeline-item .t-icon{background:var(--background);border:.2rem solid var(--hero);border-radius:100%;box-shadow:0 0 0 .4rem var(--background);font-size:1.5rem;height:1.1rem;left:0;position:absolute;top:.4rem;width:1.1rem}[data-gene-ui-version=\"2.16.0\"] .timeline-item .t-icon.bc-icon-loader{top:.2rem}";
|
|
13
13
|
styleInject(css_248z$1);
|
|
14
14
|
|
|
15
15
|
const timelineColors = ['hero', 'success', 'danger'];
|
|
@@ -86,7 +86,7 @@ TimelineItem.defaultProps = {
|
|
|
86
86
|
appearance: timelineAppearances[0]
|
|
87
87
|
};
|
|
88
88
|
|
|
89
|
-
var css_248z = "[data-gene-ui-version=\"2.
|
|
89
|
+
var css_248z = "[data-gene-ui-version=\"2.16.0\"] .timeline-holder{display:flex;flex-direction:column}";
|
|
90
90
|
styleInject(css_248z);
|
|
91
91
|
|
|
92
92
|
function Timeline(props) {
|
package/Title/index.js
CHANGED
|
@@ -2,11 +2,11 @@ import { _ as _extends } from '../_rollupPluginBabelHelpers-a83240e1.js';
|
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { c as classnames } from '../index-031ff73c.js';
|
|
5
|
-
import { t as titleConfig } from '../configs-
|
|
5
|
+
import { t as titleConfig } from '../configs-34847b77.js';
|
|
6
6
|
import Icon from '../Icon/index.js';
|
|
7
7
|
import { s as styleInject } from '../style-inject.es-746bb8ed.js';
|
|
8
8
|
|
|
9
|
-
var css_248z = "[data-gene-ui-version=\"2.
|
|
9
|
+
var css_248z = "[data-gene-ui-version=\"2.16.0\"] .title-holder{align-items:center;display:flex;font:600 1.4rem/1.8rem var(--font-family);min-height:3.2rem;width:100%}[data-gene-ui-version=\"2.16.0\"] .title-holder.c-hero .title-text{color:var(--hero)}[data-gene-ui-version=\"2.16.0\"] .title-holder>li{align-items:center;display:flex;flex-shrink:0}[data-gene-ui-version=\"2.16.0\"] .title-holder>li.line{flex:auto}[data-gene-ui-version=\"2.16.0\"] .title-holder>li.line i{background:rgba(var(--background-sc-rgb),.1);display:block;height:1px;width:100%}[data-gene-ui-version=\"2.16.0\"] .title-holder>li~li{margin:0 0 0 1rem}html[dir=rtl] .title-holder>li~li{margin:0 1rem 0 0}[data-gene-ui-version=\"2.16.0\"] .title-holder .divider{margin:0 1rem}";
|
|
10
10
|
styleInject(css_248z);
|
|
11
11
|
|
|
12
12
|
function Title(_ref) {
|
package/Toaster/index.js
CHANGED
|
@@ -12,12 +12,12 @@ import { s as styleInject } from '../style-inject.es-746bb8ed.js';
|
|
|
12
12
|
import '../_commonjsHelpers-24198af3.js';
|
|
13
13
|
import '../GeneUIProvider/index.js';
|
|
14
14
|
import '../hooks/useDeviceType.js';
|
|
15
|
-
import '../configs-
|
|
15
|
+
import '../configs-34847b77.js';
|
|
16
16
|
import '../hooks/useWindowSize.js';
|
|
17
17
|
import '../hooks/useDebounce.js';
|
|
18
18
|
import '../Icon/index.js';
|
|
19
19
|
|
|
20
|
-
var css_248z = "[data-gene-ui-version=\"2.
|
|
20
|
+
var css_248z = "[data-gene-ui-version=\"2.16.0\"] .toaster-holder{max-width:38rem;padding:1.5rem;position:fixed;width:100%;z-index:500}[data-gene-ui-version=\"2.16.0\"] .toaster-holder>*+*{margin:2rem 0 0}[data-gene-ui-version=\"2.16.0\"] .toaster-holder.left-top{left:0;top:var(--header-height,0)}[data-gene-ui-version=\"2.16.0\"] .toaster-holder.left-bottom{bottom:0;left:0}[data-gene-ui-version=\"2.16.0\"] .toaster-holder.right-top{right:0;top:var(--header-height,0)}[data-gene-ui-version=\"2.16.0\"] .toaster-holder.right-bottom{bottom:0;right:0}[data-gene-ui-version=\"2.16.0\"] .toaster-holder.bottom,[data-gene-ui-version=\"2.16.0\"] .toaster-holder.top{left:50%;transform:translate3d(-50%,0,0)}[data-gene-ui-version=\"2.16.0\"] .toaster-holder.top{top:var(--header-height,0)}[data-gene-ui-version=\"2.16.0\"] .toaster-holder.center{left:50%;top:50%;transform:translate3d(-50%,-50%,0)}[data-gene-ui-version=\"2.16.0\"] .toaster-holder.bottom{bottom:0}[data-gene-ui-version=\"2.16.0\"] .toaster-holder.mobile-view{transform:none;width:100%}[data-gene-ui-version=\"2.16.0\"] .toaster-holder.mobile-view:not(.top,.bottom){padding:0}[data-gene-ui-version=\"2.16.0\"] .toaster-holder.mobile-view.center:not(.top,.bottom){padding:0 1.5rem}[data-gene-ui-version=\"2.16.0\"] .toaster-holder:empty{pointer-events:none}";
|
|
21
21
|
styleInject(css_248z);
|
|
22
22
|
|
|
23
23
|
const toasterPositions = ['top', 'bottom', 'center', 'left-top', 'left-bottom', 'right-top', 'right-bottom'];
|
package/Tooltip/index.js
CHANGED
|
@@ -1,157 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { c as classnames } from '../index-031ff73c.js';
|
|
5
|
-
import { _ as _default } from '../Popover-f4d1cac0.js';
|
|
6
|
-
import { p as positions } from '../configs-0ed1e326.js';
|
|
7
|
-
import { n as noop } from '../index-a0e4e333.js';
|
|
8
|
-
import useDeviceType from '../hooks/useDeviceType.js';
|
|
9
|
-
import { GeneUIDesignSystemContext } from '../GeneUIProvider/index.js';
|
|
10
|
-
import { s as styleInject } from '../style-inject.es-746bb8ed.js';
|
|
11
|
-
import '../_commonjsHelpers-24198af3.js';
|
|
1
|
+
export { T as default } from '../index-49fbb32c.js';
|
|
2
|
+
import '../tslib.es6-f211516f.js';
|
|
3
|
+
import 'react';
|
|
12
4
|
import 'react-dom';
|
|
5
|
+
import '../index-a0e4e333.js';
|
|
6
|
+
import 'prop-types';
|
|
13
7
|
import '../dateValidation-67caec66.js';
|
|
8
|
+
import '../_commonjsHelpers-24198af3.js';
|
|
9
|
+
import '../hooks/useDeviceType.js';
|
|
10
|
+
import '../configs-34847b77.js';
|
|
14
11
|
import '../hooks/useWindowSize.js';
|
|
15
12
|
import '../hooks/useDebounce.js';
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
styleInject(css_248z);
|
|
19
|
-
|
|
20
|
-
function Tooltip(_ref) {
|
|
21
|
-
let {
|
|
22
|
-
children,
|
|
23
|
-
position,
|
|
24
|
-
size,
|
|
25
|
-
style,
|
|
26
|
-
text,
|
|
27
|
-
title,
|
|
28
|
-
transitionDuration,
|
|
29
|
-
customPosition,
|
|
30
|
-
alwaysShow,
|
|
31
|
-
disableReposition,
|
|
32
|
-
onClick,
|
|
33
|
-
padding,
|
|
34
|
-
screenType,
|
|
35
|
-
isVisible,
|
|
36
|
-
...props
|
|
37
|
-
} = _ref;
|
|
38
|
-
const {
|
|
39
|
-
isMobile
|
|
40
|
-
} = useDeviceType(screenType);
|
|
41
|
-
const [isPopoverOpen, setPopoverState] = useState(false);
|
|
42
|
-
const {
|
|
43
|
-
geneUIProviderRef
|
|
44
|
-
} = useContext(GeneUIDesignSystemContext);
|
|
45
|
-
const mouseEnterHandler = useCallback(() => !alwaysShow && setPopoverState(true), [alwaysShow]);
|
|
46
|
-
const mouseLeaveHandler = useCallback(() => !alwaysShow && setPopoverState(false), [alwaysShow]);
|
|
47
|
-
useEffect(() => {
|
|
48
|
-
if (children.props.disabled) {
|
|
49
|
-
mouseLeaveHandler();
|
|
50
|
-
}
|
|
51
|
-
}, [children.props.disabled]);
|
|
52
|
-
const preferredPosition = position === 'auto' ? positions : position;
|
|
53
|
-
const checkNudged = useCallback(_ref2 => {
|
|
54
|
-
let {
|
|
55
|
-
nudgedLeft,
|
|
56
|
-
nudgedTop
|
|
57
|
-
} = _ref2;
|
|
58
|
-
return isMobile ? !(nudgedTop || nudgedLeft) : true;
|
|
59
|
-
}, [isMobile]);
|
|
60
|
-
return isVisible ? /*#__PURE__*/React__default.createElement(_default, {
|
|
61
|
-
contentDestination: geneUIProviderRef.current,
|
|
62
|
-
transitionDuration: transitionDuration,
|
|
63
|
-
disableReposition: disableReposition,
|
|
64
|
-
isOpen: alwaysShow || isPopoverOpen,
|
|
65
|
-
position: preferredPosition,
|
|
66
|
-
contentLocation: customPosition,
|
|
67
|
-
align: "center",
|
|
68
|
-
padding: padding,
|
|
69
|
-
content: rect => checkNudged(rect) && /*#__PURE__*/React__default.createElement("div", _extends({
|
|
70
|
-
className: classnames('tooltip-c-p', "s-".concat(size)),
|
|
71
|
-
style: {
|
|
72
|
-
...style
|
|
73
|
-
}
|
|
74
|
-
}, props), (title || text) && /*#__PURE__*/React__default.createElement("div", {
|
|
75
|
-
className: "tooltip-content"
|
|
76
|
-
}, title && /*#__PURE__*/React__default.createElement("div", {
|
|
77
|
-
className: "tooltip-title"
|
|
78
|
-
}, title), text && /*#__PURE__*/React__default.createElement("div", {
|
|
79
|
-
className: "tooltip-text"
|
|
80
|
-
}, text)))
|
|
81
|
-
}, children ? /*#__PURE__*/React__default.cloneElement(children, {
|
|
82
|
-
onMouseEnter: mouseEnterHandler,
|
|
83
|
-
onMouseLeave: mouseLeaveHandler,
|
|
84
|
-
onClick: e => {
|
|
85
|
-
const {
|
|
86
|
-
onClick: onClickHandler
|
|
87
|
-
} = children.props;
|
|
88
|
-
typeof onClickHandler === 'function' && onClickHandler(e);
|
|
89
|
-
onClick(e);
|
|
90
|
-
}
|
|
91
|
-
}) : null) : children;
|
|
92
|
-
}
|
|
93
|
-
Tooltip.propTypes = {
|
|
94
|
-
/**
|
|
95
|
-
* Different sizes for 'Tooltip'.
|
|
96
|
-
*/
|
|
97
|
-
size: PropTypes.oneOf(['default', 'small']),
|
|
98
|
-
/**
|
|
99
|
-
* Text for 'Tooltip'.
|
|
100
|
-
*/
|
|
101
|
-
text: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
102
|
-
/**
|
|
103
|
-
* Title for 'Tooltip'.
|
|
104
|
-
*/
|
|
105
|
-
title: PropTypes.string,
|
|
106
|
-
/**
|
|
107
|
-
* Style object, to have extra styles.
|
|
108
|
-
*/
|
|
109
|
-
style: PropTypes.object,
|
|
110
|
-
/**
|
|
111
|
-
* Have always visible 'Tooltip'.
|
|
112
|
-
*/
|
|
113
|
-
alwaysShow: PropTypes.bool,
|
|
114
|
-
/**
|
|
115
|
-
* Custom positions(left, top) for 'Tooltip'.
|
|
116
|
-
*/
|
|
117
|
-
customPosition: PropTypes.shape({
|
|
118
|
-
left: PropTypes.number,
|
|
119
|
-
top: PropTypes.number
|
|
120
|
-
}),
|
|
121
|
-
/**
|
|
122
|
-
* Duration for showing 'Tooltip'.
|
|
123
|
-
*/
|
|
124
|
-
transitionDuration: PropTypes.number,
|
|
125
|
-
/**
|
|
126
|
-
* Any valid React node.
|
|
127
|
-
*/
|
|
128
|
-
children: PropTypes.node,
|
|
129
|
-
/**
|
|
130
|
-
* Disable/Enable repositions.
|
|
131
|
-
*/
|
|
132
|
-
disableReposition: PropTypes.bool,
|
|
133
|
-
/**
|
|
134
|
-
* 'Tooltip' position to be displayed
|
|
135
|
-
*/
|
|
136
|
-
position: PropTypes.oneOf(['auto', ...positions]),
|
|
137
|
-
/**
|
|
138
|
-
* 'Tooltip' padding from the target element
|
|
139
|
-
*/
|
|
140
|
-
padding: PropTypes.number,
|
|
141
|
-
/**
|
|
142
|
-
* If isVisible is false, the component will render only children without a tooltip wrapped.
|
|
143
|
-
*/
|
|
144
|
-
isVisible: PropTypes.bool
|
|
145
|
-
};
|
|
146
|
-
Tooltip.defaultProps = {
|
|
147
|
-
position: 'auto',
|
|
148
|
-
size: 'default',
|
|
149
|
-
transitionDuration: 0,
|
|
150
|
-
disableReposition: false,
|
|
151
|
-
onClick: noop,
|
|
152
|
-
padding: 5,
|
|
153
|
-
screenType: 'desktop',
|
|
154
|
-
isVisible: true
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
export { Tooltip as default };
|
|
13
|
+
import '../GeneUIProvider/index.js';
|
|
14
|
+
import '../style-inject.es-746bb8ed.js';
|