superdesk-ui-framework 3.0.12 → 3.0.14
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/app-typescript/components/Dropdown.tsx +11 -7
- package/app-typescript/components/Tooltip.tsx +11 -5
- package/app-typescript/components/TreeSelect.tsx +1 -1
- package/dist/examples.bundle.js +1116 -238
- package/dist/superdesk-ui.bundle.js +680 -150
- package/package.json +2 -2
- package/react/components/Alert.js +5 -1
- package/react/components/Autocomplete.js +7 -2
- package/react/components/Avatar.js +5 -1
- package/react/components/Badge.js +5 -1
- package/react/components/Button.js +5 -1
- package/react/components/ButtonGroup.js +5 -1
- package/react/components/Carousel.js +5 -1
- package/react/components/CheckButtonGroup.js +5 -1
- package/react/components/CheckGroup.js +5 -1
- package/react/components/Checkbox.js +5 -1
- package/react/components/CheckboxButton.js +5 -1
- package/react/components/ContentDivider.js +5 -1
- package/react/components/CreateButton.js +5 -1
- package/react/components/DatePicker.d.ts +1 -1
- package/react/components/DatePicker.js +7 -2
- package/react/components/Divider.js +5 -1
- package/react/components/DonutChart.js +5 -1
- package/react/components/DropZone.js +5 -1
- package/react/components/Dropdown.js +15 -8
- package/react/components/DropdownFirst.js +5 -1
- package/react/components/DurationInput.js +5 -1
- package/react/components/EmptyState.js +5 -1
- package/react/components/Form/FormGroup.js +5 -1
- package/react/components/Form/FormItem.js +5 -1
- package/react/components/Form/FormLabel.js +5 -1
- package/react/components/Form/FormRow.js +5 -1
- package/react/components/Form/FormRowNew.js +5 -1
- package/react/components/Form/FormText.js +5 -1
- package/react/components/Form/InputBase.d.ts +1 -1
- package/react/components/Form/InputBase.js +7 -2
- package/react/components/Form/InputNew.d.ts +1 -1
- package/react/components/Form/InputNew.js +7 -2
- package/react/components/Form/InputWrapper.js +7 -2
- package/react/components/FormLabel.js +5 -1
- package/react/components/GridItem.js +5 -1
- package/react/components/GridList.js +5 -1
- package/react/components/HeadingText.js +5 -1
- package/react/components/HelloWorld.js +5 -1
- package/react/components/Icon.js +5 -1
- package/react/components/IconButton.js +5 -1
- package/react/components/IconLabel.js +5 -1
- package/react/components/IconPicker.js +5 -1
- package/react/components/Input.d.ts +1 -1
- package/react/components/Input.js +7 -2
- package/react/components/Label.js +5 -1
- package/react/components/Layouts/AuthorinInnerSideBar.js +5 -1
- package/react/components/Layouts/AuthoringContainer.js +5 -1
- package/react/components/Layouts/AuthoringFrame.js +5 -1
- package/react/components/Layouts/AuthoringFrameContainer.js +5 -1
- package/react/components/Layouts/AuthoringFrameLeftBar.js +5 -1
- package/react/components/Layouts/AuthoringFrameMain.js +5 -1
- package/react/components/Layouts/AuthoringFrameNavBar.js +5 -1
- package/react/components/Layouts/AuthoringFrameOverlay.js +5 -1
- package/react/components/Layouts/AuthoringFrameRightBar.js +5 -1
- package/react/components/Layouts/AuthoringFrameSidePanel.js +5 -1
- package/react/components/Layouts/AuthoringFrameSidePanelOverlay.js +5 -1
- package/react/components/Layouts/AuthoringInnerBody.js +5 -1
- package/react/components/Layouts/AuthoringInnerHeader.js +5 -1
- package/react/components/Layouts/AuthoringMain.js +5 -1
- package/react/components/Layouts/AuthoringMainContainer.js +5 -1
- package/react/components/Layouts/AuthoringMainContent.js +5 -1
- package/react/components/Layouts/AuthoringMainToolBar.js +5 -1
- package/react/components/Layouts/BottomBarAction.js +5 -1
- package/react/components/Layouts/Container.js +5 -1
- package/react/components/Layouts/ContentSplitter.js +5 -1
- package/react/components/Layouts/CoreLayout.js +5 -1
- package/react/components/Layouts/CoreLayoutContainer.js +5 -1
- package/react/components/Layouts/CoreLayoutFooter.js +5 -1
- package/react/components/Layouts/CoreLayoutMain.js +5 -1
- package/react/components/Layouts/CoreLayoutOverlay.js +5 -1
- package/react/components/Layouts/CoreLayoutSlideInMenu.js +5 -1
- package/react/components/Layouts/CoreLayoutTopMenu.js +5 -1
- package/react/components/Layouts/HamburgerButton.js +5 -1
- package/react/components/Layouts/HeaderPanel.js +5 -1
- package/react/components/Layouts/Layout.js +5 -1
- package/react/components/Layouts/LayoutContainer.js +5 -1
- package/react/components/Layouts/LeftPanel.js +5 -1
- package/react/components/Layouts/MainMenu.js +5 -1
- package/react/components/Layouts/MainPanel.js +5 -1
- package/react/components/Layouts/NotificationPanel.js +5 -1
- package/react/components/Layouts/OverlayPanel.js +5 -1
- package/react/components/Layouts/PageLayout.js +5 -1
- package/react/components/Layouts/Panel.js +5 -1
- package/react/components/Layouts/RightPanel.js +5 -1
- package/react/components/LeftMenu.js +5 -1
- package/react/components/ListItemLoader.js +5 -1
- package/react/components/Lists/BoxedList.js +5 -1
- package/react/components/Lists/ContentList.js +5 -1
- package/react/components/Lists/SimpleList.js +5 -1
- package/react/components/Lists/TableList.js +5 -1
- package/react/components/Loader.js +5 -1
- package/react/components/Menu.d.ts +2 -2
- package/react/components/Menu.js +5 -1
- package/react/components/Modal.js +5 -1
- package/react/components/MultiSelect.js +5 -1
- package/react/components/NavButton.js +5 -1
- package/react/components/Navigation/BottomNav.js +5 -1
- package/react/components/Navigation/QuickNavBar.js +5 -1
- package/react/components/Navigation/SideBarMenu.js +5 -1
- package/react/components/Navigation/SideBarTabs.js +5 -1
- package/react/components/Popover.js +5 -1
- package/react/components/PropsList.js +5 -1
- package/react/components/RadioButtonGroup.js +5 -1
- package/react/components/RadioGroup.js +5 -1
- package/react/components/SearchBar.js +5 -1
- package/react/components/Select.js +7 -2
- package/react/components/SelectGrid.d.ts +1 -1
- package/react/components/SelectGrid.js +5 -1
- package/react/components/SelectWithTemplate.js +5 -1
- package/react/components/Skeleton.js +5 -1
- package/react/components/SlidingToolbar.js +5 -1
- package/react/components/Spinner.js +5 -1
- package/react/components/StrechBar.js +5 -1
- package/react/components/SubNav.js +5 -1
- package/react/components/Switch.js +5 -1
- package/react/components/SwitchGroup.js +5 -1
- package/react/components/TabCustom.js +5 -1
- package/react/components/TabList.js +5 -1
- package/react/components/Tag.js +5 -1
- package/react/components/TagInput.js +5 -1
- package/react/components/Text/Heading.js +5 -1
- package/react/components/Text/Text.js +5 -1
- package/react/components/Text/Time.js +5 -1
- package/react/components/ThemeSelector.js +5 -1
- package/react/components/TimePicker.js +5 -1
- package/react/components/Toast.js +5 -1
- package/react/components/ToastMessage.d.ts +3 -3
- package/react/components/ToastMessage.js +5 -1
- package/react/components/ToastText.js +5 -1
- package/react/components/ToastWrapper.d.ts +1 -1
- package/react/components/ToastWrapper.js +5 -1
- package/react/components/Togglebox.js +7 -2
- package/react/components/Tooltip.js +13 -6
- package/react/components/TreeSelect.d.ts +2 -2
- package/react/components/TreeSelect.js +6 -2
- package/react/components/WithSizeObserver.js +5 -1
- package/react/components/_Positioner.d.ts +1 -1
- package/react/components/_Positioner.js +5 -1
- package/react/index.js +5 -1
@@ -257,13 +257,17 @@ export const Dropdown = ({
|
|
257
257
|
{typeof children === 'object' ?
|
258
258
|
(React.isValidElement(children) ?
|
259
259
|
<div ref={buttonRef} style={{ display: 'content' }}>
|
260
|
-
{
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
260
|
+
{(() => {
|
261
|
+
const attrs = {
|
262
|
+
className: children.props.className ? (children.props.className + ' dropdown__toggle dropdown-toggle') : 'dropdown__toggle dropdown-toggle',
|
263
|
+
'aria-haspopup': "menu",
|
264
|
+
'aria-expanded': open,
|
265
|
+
onClick: toggleDisplay,
|
266
|
+
ref: buttonRef,
|
267
|
+
};
|
268
|
+
|
269
|
+
return React.cloneElement(children, attrs);
|
270
|
+
})()}
|
267
271
|
</div> : null)
|
268
272
|
:
|
269
273
|
<button ref={buttonRef}
|
@@ -26,8 +26,10 @@ class TooltipBasic extends React.PureComponent<IProps> {
|
|
26
26
|
}
|
27
27
|
render() {
|
28
28
|
if (React.isValidElement(this.props.children)) {
|
29
|
+
const attrs = {id: 't' + this.htmlId};
|
30
|
+
|
29
31
|
return (
|
30
|
-
React.cloneElement(this.props.children,
|
32
|
+
React.cloneElement(this.props.children, attrs)
|
31
33
|
);
|
32
34
|
} else {
|
33
35
|
return (
|
@@ -45,10 +47,14 @@ const TooltipAppended: React.FC<IProps> = ({children, flow, text}) => {
|
|
45
47
|
return (
|
46
48
|
<React.Fragment>
|
47
49
|
<PRTooltip target={"#" + triggerId} content={text} position={position ?? 'top'}/>
|
48
|
-
{React.isValidElement(children)
|
49
|
-
|
50
|
-
|
51
|
-
|
50
|
+
{ React.isValidElement(children)
|
51
|
+
? (() => {
|
52
|
+
const attrs = {id: triggerId};
|
53
|
+
|
54
|
+
return React.cloneElement(children, attrs);
|
55
|
+
})()
|
56
|
+
: <React.Fragment />
|
57
|
+
}
|
52
58
|
</React.Fragment>
|
53
59
|
);
|
54
60
|
};
|
@@ -780,7 +780,7 @@ export class TreeSelect<T> extends React.Component<IProps<T>, IState<T>> {
|
|
780
780
|
{this.state.options
|
781
781
|
.map((option, i: React.Key | undefined) => {
|
782
782
|
let selectedItem = this.state.value.some((obj) =>
|
783
|
-
this.props.getId(obj) === this.props.
|
783
|
+
this.props.getId(obj) === this.props.getId(option.value),
|
784
784
|
);
|
785
785
|
return (
|
786
786
|
<li
|