@gooddata/sdk-ui-kit 10.38.0 → 10.39.0-alpha.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/esm/@ui/@types/icon.d.ts +1 -1
- package/esm/@ui/@types/icon.d.ts.map +1 -1
- package/esm/@ui/@types/themeColors.d.ts +1 -1
- package/esm/@ui/@types/themeColors.d.ts.map +1 -1
- package/esm/@ui/@types/themeColors.js +1 -1
- package/esm/@ui/@types/themeColors.js.map +1 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTable.d.ts.map +1 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTable.js +6 -18
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTable.js.map +1 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableDropdownItem.d.ts +1 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableDropdownItem.d.ts.map +1 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableDropdownItem.js +3 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableDropdownItem.js.map +1 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableFilter.d.ts +2 -2
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableFilter.d.ts.map +1 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableFilter.js +3 -4
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableFilter.js.map +1 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableRow.js +4 -2
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableRow.js.map +1 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableToolbar.js +3 -3
- package/esm/@ui/UiAsyncTable/UiAsyncTable/UiAsyncTableToolbar.js.map +1 -1
- package/esm/@ui/UiAsyncTable/types.d.ts +3 -4
- package/esm/@ui/UiAsyncTable/types.d.ts.map +1 -1
- package/esm/@ui/UiFocusManager/UiAutofocus.d.ts.map +1 -1
- package/esm/@ui/UiFocusManager/UiAutofocus.js +4 -4
- package/esm/@ui/UiFocusManager/UiAutofocus.js.map +1 -1
- package/esm/@ui/UiFocusManager/UiFocusManager.d.ts +2 -1
- package/esm/@ui/UiFocusManager/UiFocusManager.d.ts.map +1 -1
- package/esm/@ui/UiFocusManager/UiFocusManager.js +2 -2
- package/esm/@ui/UiFocusManager/UiFocusManager.js.map +1 -1
- package/esm/@ui/UiFocusManager/UiFocusTrap.d.ts +2 -1
- package/esm/@ui/UiFocusManager/UiFocusTrap.d.ts.map +1 -1
- package/esm/@ui/UiFocusManager/UiFocusTrap.js +5 -5
- package/esm/@ui/UiFocusManager/UiFocusTrap.js.map +1 -1
- package/esm/@ui/UiFocusManager/utils.d.ts +9 -1
- package/esm/@ui/UiFocusManager/utils.d.ts.map +1 -1
- package/esm/@ui/UiFocusManager/utils.js +14 -2
- package/esm/@ui/UiFocusManager/utils.js.map +1 -1
- package/esm/@ui/UiIcon/icons.d.ts.map +1 -1
- package/esm/@ui/UiIcon/icons.js +12 -0
- package/esm/@ui/UiIcon/icons.js.map +1 -1
- package/esm/@ui/UiIconButton/UiIconButtonRenderer.d.ts +1 -0
- package/esm/@ui/UiIconButton/UiIconButtonRenderer.d.ts.map +1 -1
- package/esm/@ui/UiIconButton/UiIconButtonRenderer.js +2 -2
- package/esm/@ui/UiIconButton/UiIconButtonRenderer.js.map +1 -1
- package/esm/@ui/UiTooltip/UiTooltip.d.ts.map +1 -1
- package/esm/@ui/UiTooltip/UiTooltip.js +6 -1
- package/esm/@ui/UiTooltip/UiTooltip.js.map +1 -1
- package/esm/@ui/UiTooltip/types.d.ts +2 -0
- package/esm/@ui/UiTooltip/types.d.ts.map +1 -1
- package/esm/@ui/UiTreeview/UITreeviewItem.d.ts +3 -1
- package/esm/@ui/UiTreeview/UITreeviewItem.d.ts.map +1 -1
- package/esm/@ui/UiTreeview/UITreeviewItem.js +17 -7
- package/esm/@ui/UiTreeview/UITreeviewItem.js.map +1 -1
- package/esm/@ui/UiTreeview/UiTreeview.d.ts.map +1 -1
- package/esm/@ui/UiTreeview/UiTreeview.js +8 -3
- package/esm/@ui/UiTreeview/UiTreeview.js.map +1 -1
- package/esm/@ui/UiTreeview/UiTreeviewRoot.d.ts +3 -3
- package/esm/@ui/UiTreeview/UiTreeviewRoot.d.ts.map +1 -1
- package/esm/@ui/UiTreeview/UiTreeviewRoot.js +2 -2
- package/esm/@ui/UiTreeview/UiTreeviewRoot.js.map +1 -1
- package/esm/@ui/UiTreeview/defaults/DefaultUiTreeViewItemComponent.d.ts +1 -1
- package/esm/@ui/UiTreeview/defaults/DefaultUiTreeViewItemComponent.d.ts.map +1 -1
- package/esm/@ui/UiTreeview/defaults/DefaultUiTreeViewItemComponent.js +2 -2
- package/esm/@ui/UiTreeview/defaults/DefaultUiTreeViewItemComponent.js.map +1 -1
- package/esm/@ui/UiTreeview/types.d.ts +16 -5
- package/esm/@ui/UiTreeview/types.d.ts.map +1 -1
- package/esm/@ui/UiTreeview/utils.d.ts +1 -1
- package/esm/@ui/UiTreeview/utils.d.ts.map +1 -1
- package/esm/@ui/UiTreeview/utils.js +2 -2
- package/esm/@ui/UiTreeview/utils.js.map +1 -1
- package/esm/AutoSize/AutoSize.d.ts +2 -13
- package/esm/AutoSize/AutoSize.d.ts.map +1 -1
- package/esm/AutoSize/AutoSize.js +21 -24
- package/esm/AutoSize/AutoSize.js.map +1 -1
- package/esm/Bubble/Bubble.d.ts +1 -30
- package/esm/Bubble/Bubble.d.ts.map +1 -1
- package/esm/Bubble/Bubble.js +79 -82
- package/esm/Bubble/Bubble.js.map +1 -1
- package/esm/Button/Button.d.ts.map +1 -1
- package/esm/Button/Button.js +10 -2
- package/esm/Button/Button.js.map +1 -1
- package/esm/Button/typings.d.ts +1 -0
- package/esm/Button/typings.d.ts.map +1 -1
- package/esm/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/esm/ColorPicker/ColorPicker.js +29 -39
- package/esm/ColorPicker/ColorPicker.js.map +1 -1
- package/esm/ColorPicker/components/ColorPickerMatrix.d.ts +2 -4
- package/esm/ColorPicker/components/ColorPickerMatrix.d.ts.map +1 -1
- package/esm/ColorPicker/components/ColorPickerMatrix.js +23 -21
- package/esm/ColorPicker/components/ColorPickerMatrix.js.map +1 -1
- package/esm/ColorPicker/components/ColorsPreview.d.ts +2 -5
- package/esm/ColorPicker/components/ColorsPreview.d.ts.map +1 -1
- package/esm/ColorPicker/components/ColorsPreview.js +12 -20
- package/esm/ColorPicker/components/ColorsPreview.js.map +1 -1
- package/esm/ColorPicker/components/HexColorInput.d.ts +2 -6
- package/esm/ColorPicker/components/HexColorInput.d.ts.map +1 -1
- package/esm/ColorPicker/components/HexColorInput.js +12 -17
- package/esm/ColorPicker/components/HexColorInput.js.map +1 -1
- package/esm/ColorPicker/components/HueColorPicker.d.ts +2 -14
- package/esm/ColorPicker/components/HueColorPicker.d.ts.map +1 -1
- package/esm/ColorPicker/components/HueColorPicker.js +38 -46
- package/esm/ColorPicker/components/HueColorPicker.js.map +1 -1
- package/esm/Dialog/ConfirmDialog.d.ts +2 -4
- package/esm/Dialog/ConfirmDialog.d.ts.map +1 -1
- package/esm/Dialog/ConfirmDialog.js +9 -12
- package/esm/Dialog/ConfirmDialog.js.map +1 -1
- package/esm/Dialog/ConfirmDialogBase.d.ts.map +1 -1
- package/esm/Dialog/ConfirmDialogBase.js +1 -1
- package/esm/Dialog/ConfirmDialogBase.js.map +1 -1
- package/esm/Dialog/DialogBase.d.ts.map +1 -1
- package/esm/Dialog/DialogBase.js +3 -2
- package/esm/Dialog/DialogBase.js.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/AddGranteeButton.d.ts.map +1 -1
- package/esm/Dialog/ShareDialog/ShareDialogBase/AddGranteeButton.js +5 -6
- package/esm/Dialog/ShareDialog/ShareDialogBase/AddGranteeButton.js.map +1 -1
- package/esm/Dialog/typings.d.ts +5 -0
- package/esm/Dialog/typings.d.ts.map +1 -1
- package/esm/Dropdown/Dropdown.d.ts +1 -1
- package/esm/Dropdown/Dropdown.d.ts.map +1 -1
- package/esm/Dropdown/Dropdown.js.map +1 -1
- package/esm/FilterLabel/FilterLabel.d.ts.map +1 -1
- package/esm/FilterLabel/FilterLabel.js +41 -60
- package/esm/FilterLabel/FilterLabel.js.map +1 -1
- package/esm/FlexDimensions/FlexDimensions.js +1 -1
- package/esm/Form/Checkbox.d.ts +8 -20
- package/esm/Form/Checkbox.d.ts.map +1 -1
- package/esm/Form/Checkbox.js +15 -27
- package/esm/Form/Checkbox.js.map +1 -1
- package/esm/Form/InputPure.d.ts +20 -20
- package/esm/Form/InputPure.d.ts.map +1 -1
- package/esm/Form/InputPure.js +1 -1
- package/esm/Form/InputPure.js.map +1 -1
- package/esm/Header/Header.d.ts.map +1 -1
- package/esm/Header/Header.js +262 -219
- package/esm/Header/Header.js.map +1 -1
- package/esm/Header/HeaderMenu.d.ts +1 -3
- package/esm/Header/HeaderMenu.d.ts.map +1 -1
- package/esm/Header/HeaderMenu.js +19 -25
- package/esm/Header/HeaderMenu.js.map +1 -1
- package/esm/List/InsightListItem.d.ts +1 -14
- package/esm/List/InsightListItem.d.ts.map +1 -1
- package/esm/List/InsightListItem.js +34 -41
- package/esm/List/InsightListItem.js.map +1 -1
- package/esm/List/InvertableSelect/InvertableSelectSelectionStatus.d.ts.map +1 -1
- package/esm/List/InvertableSelect/InvertableSelectSelectionStatus.js +5 -4
- package/esm/List/InvertableSelect/InvertableSelectSelectionStatus.js.map +1 -1
- package/esm/List/InvertableSelect/InvertableSelectVirtualised.d.ts.map +1 -1
- package/esm/List/InvertableSelect/InvertableSelectVirtualised.js +11 -6
- package/esm/List/InvertableSelect/InvertableSelectVirtualised.js.map +1 -1
- package/esm/List/LegacyInvertableList.d.ts +3 -74
- package/esm/List/LegacyInvertableList.d.ts.map +1 -1
- package/esm/List/LegacyInvertableList.js +189 -169
- package/esm/List/LegacyInvertableList.js.map +1 -1
- package/esm/List/LegacyList.d.ts +2 -16
- package/esm/List/LegacyList.d.ts.map +1 -1
- package/esm/List/LegacyList.js +40 -65
- package/esm/List/LegacyList.js.map +1 -1
- package/esm/List/LegacyListItem.d.ts +2 -7
- package/esm/List/LegacyListItem.d.ts.map +1 -1
- package/esm/List/LegacyListItem.js +11 -17
- package/esm/List/LegacyListItem.js.map +1 -1
- package/esm/List/LegacyMultiSelectList.d.ts +1 -47
- package/esm/List/LegacyMultiSelectList.d.ts.map +1 -1
- package/esm/List/LegacyMultiSelectList.js +78 -108
- package/esm/List/LegacyMultiSelectList.js.map +1 -1
- package/esm/List/LegacyMultiSelectListItem.d.ts +2 -20
- package/esm/List/LegacyMultiSelectListItem.d.ts.map +1 -1
- package/esm/List/LegacyMultiSelectListItem.js +29 -49
- package/esm/List/LegacyMultiSelectListItem.js.map +1 -1
- package/esm/List/LegacySingleSelectList.d.ts +2 -27
- package/esm/List/LegacySingleSelectList.d.ts.map +1 -1
- package/esm/List/LegacySingleSelectList.js +32 -45
- package/esm/List/LegacySingleSelectList.js.map +1 -1
- package/esm/List/LegacySingleSelectListItem.d.ts +2 -21
- package/esm/List/LegacySingleSelectListItem.d.ts.map +1 -1
- package/esm/List/LegacySingleSelectListItem.js +37 -52
- package/esm/List/LegacySingleSelectListItem.js.map +1 -1
- package/esm/List/MultiSelectList.d.ts.map +1 -1
- package/esm/List/MultiSelectList.js +51 -53
- package/esm/List/MultiSelectList.js.map +1 -1
- package/esm/List/MultiSelectListItem.d.ts +2 -6
- package/esm/List/MultiSelectListItem.d.ts.map +1 -1
- package/esm/List/MultiSelectListItem.js +19 -23
- package/esm/List/MultiSelectListItem.js.map +1 -1
- package/esm/Menu/ControlledMenu.d.ts +1 -9
- package/esm/Menu/ControlledMenu.d.ts.map +1 -1
- package/esm/Menu/ControlledMenu.js +21 -33
- package/esm/Menu/ControlledMenu.js.map +1 -1
- package/esm/Menu/MenuState.d.ts +1 -9
- package/esm/Menu/MenuState.d.ts.map +1 -1
- package/esm/Menu/MenuState.js +19 -28
- package/esm/Menu/MenuState.js.map +1 -1
- package/esm/Menu/menuOpener/MenuOpenedByClick.d.ts.map +1 -1
- package/esm/Menu/menuOpener/MenuOpenedByClick.js +6 -5
- package/esm/Menu/menuOpener/MenuOpenedByClick.js.map +1 -1
- package/esm/Menu/menuOpener/MenuOpenedByHover.d.ts +1 -9
- package/esm/Menu/menuOpener/MenuOpenedByHover.d.ts.map +1 -1
- package/esm/Menu/menuOpener/MenuOpenedByHover.js +28 -28
- package/esm/Menu/menuOpener/MenuOpenedByHover.js.map +1 -1
- package/esm/Menu/menuOpener/MenuOpener.d.ts +1 -5
- package/esm/Menu/menuOpener/MenuOpener.d.ts.map +1 -1
- package/esm/Menu/menuOpener/MenuOpener.js +26 -17
- package/esm/Menu/menuOpener/MenuOpener.js.map +1 -1
- package/esm/Menu/positioning/MenuPosition.d.ts +1 -13
- package/esm/Menu/positioning/MenuPosition.d.ts.map +1 -1
- package/esm/Menu/positioning/MenuPosition.js +17 -26
- package/esm/Menu/positioning/MenuPosition.js.map +1 -1
- package/esm/Menu/positioning/PositionedMenuContent.d.ts +1 -11
- package/esm/Menu/positioning/PositionedMenuContent.d.ts.map +1 -1
- package/esm/Menu/positioning/PositionedMenuContent.js +47 -48
- package/esm/Menu/positioning/PositionedMenuContent.js.map +1 -1
- package/esm/Menu/utils/OutsideClickHandler.d.ts +1 -13
- package/esm/Menu/utils/OutsideClickHandler.d.ts.map +1 -1
- package/esm/Menu/utils/OutsideClickHandler.js +23 -37
- package/esm/Menu/utils/OutsideClickHandler.js.map +1 -1
- package/esm/Menu/utils/RenderChildrenInPortal.d.ts +1 -7
- package/esm/Menu/utils/RenderChildrenInPortal.d.ts.map +1 -1
- package/esm/Menu/utils/RenderChildrenInPortal.js +20 -19
- package/esm/Menu/utils/RenderChildrenInPortal.js.map +1 -1
- package/esm/Messages/Messages.d.ts +7 -1
- package/esm/Messages/Messages.d.ts.map +1 -1
- package/esm/Messages/Messages.js +31 -3
- package/esm/Messages/Messages.js.map +1 -1
- package/esm/Messages/ToastMessages.d.ts.map +1 -1
- package/esm/Messages/ToastMessages.js +7 -6
- package/esm/Messages/ToastMessages.js.map +1 -1
- package/esm/Messages/typings.d.ts +5 -0
- package/esm/Messages/typings.d.ts.map +1 -1
- package/esm/Messages/typings.js +1 -1
- package/esm/Overlay/ErrorOverlay.d.ts +1 -3
- package/esm/Overlay/ErrorOverlay.d.ts.map +1 -1
- package/esm/Overlay/ErrorOverlay.js +9 -11
- package/esm/Overlay/ErrorOverlay.js.map +1 -1
- package/esm/RecurrenceForm/DateTime.d.ts.map +1 -1
- package/esm/RecurrenceForm/DateTime.js +37 -23
- package/esm/RecurrenceForm/DateTime.js.map +1 -1
- package/esm/ResponsiveText/ResponsiveText.d.ts +1 -0
- package/esm/ResponsiveText/ResponsiveText.d.ts.map +1 -1
- package/esm/ResponsiveText/ResponsiveText.js +3 -3
- package/esm/ResponsiveText/ResponsiveText.js.map +1 -1
- package/esm/ShortenedText/ShortenedText.js +1 -1
- package/esm/Spinner/Spinner.d.ts +2 -8
- package/esm/Spinner/Spinner.d.ts.map +1 -1
- package/esm/Spinner/Spinner.js +13 -19
- package/esm/Spinner/Spinner.js.map +1 -1
- package/esm/Tabs/Tabs.d.ts +2 -14
- package/esm/Tabs/Tabs.d.ts.map +1 -1
- package/esm/Tabs/Tabs.js +31 -43
- package/esm/Tabs/Tabs.js.map +1 -1
- package/esm/TextAreaWithSubmit/TextAreaWithSubmit.d.ts +3 -46
- package/esm/TextAreaWithSubmit/TextAreaWithSubmit.d.ts.map +1 -1
- package/esm/TextAreaWithSubmit/TextAreaWithSubmit.js +100 -133
- package/esm/TextAreaWithSubmit/TextAreaWithSubmit.js.map +1 -1
- package/esm/Timepicker/Timepicker.d.ts +3 -29
- package/esm/Timepicker/Timepicker.d.ts.map +1 -1
- package/esm/Timepicker/Timepicker.js +79 -102
- package/esm/Timepicker/Timepicker.js.map +1 -1
- package/esm/index.d.ts +2 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +1 -1
- package/esm/index.js.map +1 -1
- package/esm/measureNumberFormat/customFormatDialog/CustomFormatDialog.d.ts +1 -11
- package/esm/measureNumberFormat/customFormatDialog/CustomFormatDialog.d.ts.map +1 -1
- package/esm/measureNumberFormat/customFormatDialog/CustomFormatDialog.js +28 -37
- package/esm/measureNumberFormat/customFormatDialog/CustomFormatDialog.js.map +1 -1
- package/esm/measureNumberFormat/customFormatDialog/FormatInput.d.ts.map +1 -1
- package/esm/measureNumberFormat/customFormatDialog/FormatInput.js +12 -14
- package/esm/measureNumberFormat/customFormatDialog/FormatInput.js.map +1 -1
- package/esm/measureNumberFormat/customFormatDialog/formatTemplatesDropdown/DropdownItem.d.ts +2 -12
- package/esm/measureNumberFormat/customFormatDialog/formatTemplatesDropdown/DropdownItem.d.ts.map +1 -1
- package/esm/measureNumberFormat/customFormatDialog/formatTemplatesDropdown/DropdownItem.js +21 -28
- package/esm/measureNumberFormat/customFormatDialog/formatTemplatesDropdown/DropdownItem.js.map +1 -1
- package/esm/measureNumberFormat/customFormatDialog/formatTemplatesDropdown/FormatTemplatesDropdown.d.ts +1 -13
- package/esm/measureNumberFormat/customFormatDialog/formatTemplatesDropdown/FormatTemplatesDropdown.d.ts.map +1 -1
- package/esm/measureNumberFormat/customFormatDialog/formatTemplatesDropdown/FormatTemplatesDropdown.js +20 -26
- package/esm/measureNumberFormat/customFormatDialog/formatTemplatesDropdown/FormatTemplatesDropdown.js.map +1 -1
- package/esm/measureNumberFormat/customFormatDialog/previewSection/ExtendedPreview.d.ts +1 -8
- package/esm/measureNumberFormat/customFormatDialog/previewSection/ExtendedPreview.d.ts.map +1 -1
- package/esm/measureNumberFormat/customFormatDialog/previewSection/ExtendedPreview.js +16 -22
- package/esm/measureNumberFormat/customFormatDialog/previewSection/ExtendedPreview.js.map +1 -1
- package/esm/measureNumberFormat/customFormatDialog/previewSection/Preview.d.ts +1 -8
- package/esm/measureNumberFormat/customFormatDialog/previewSection/Preview.d.ts.map +1 -1
- package/esm/measureNumberFormat/customFormatDialog/previewSection/Preview.js +15 -19
- package/esm/measureNumberFormat/customFormatDialog/previewSection/Preview.js.map +1 -1
- package/esm/measureNumberFormat/presetsDropdown/PresetsDropdown.d.ts +1 -6
- package/esm/measureNumberFormat/presetsDropdown/PresetsDropdown.d.ts.map +1 -1
- package/esm/measureNumberFormat/presetsDropdown/PresetsDropdown.js +19 -25
- package/esm/measureNumberFormat/presetsDropdown/PresetsDropdown.js.map +1 -1
- package/esm/measureNumberFormat/presetsDropdown/PresetsDropdownItem.d.ts +1 -5
- package/esm/measureNumberFormat/presetsDropdown/PresetsDropdownItem.d.ts.map +1 -1
- package/esm/measureNumberFormat/presetsDropdown/PresetsDropdownItem.js +13 -20
- package/esm/measureNumberFormat/presetsDropdown/PresetsDropdownItem.js.map +1 -1
- package/esm/sdk-ui-kit.d.ts +99 -257
- package/esm/typings/accessibility.d.ts +2 -1
- package/esm/typings/accessibility.d.ts.map +1 -1
- package/esm/utils/domUtilities.d.ts +2 -2
- package/esm/utils/domUtilities.d.ts.map +1 -1
- package/esm/utils/domUtilities.js +28 -4
- package/esm/utils/domUtilities.js.map +1 -1
- package/package.json +8 -8
- package/src/@ui/UiAsyncTable/asyncTable.scss +19 -2
- package/src/@ui/themeColorsMap.scss +1 -0
- package/styles/css/invertableSelect.css +13 -0
- package/styles/css/invertableSelect.css.map +1 -1
- package/styles/css/main.css +33 -1
- package/styles/css/main.css.map +1 -1
- package/styles/scss/invertableSelect.scss +15 -0
- package/esm/@ui/UiAsyncTable/UiAsyncTable/AsyncTableFilter.d.ts +0 -7
- package/esm/@ui/UiAsyncTable/UiAsyncTable/AsyncTableFilter.d.ts.map +0 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/AsyncTableFilter.js +0 -32
- package/esm/@ui/UiAsyncTable/UiAsyncTable/AsyncTableFilter.js.map +0 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/AsyncTableRow.d.ts +0 -6
- package/esm/@ui/UiAsyncTable/UiAsyncTable/AsyncTableRow.d.ts.map +0 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/AsyncTableRow.js +0 -86
- package/esm/@ui/UiAsyncTable/UiAsyncTable/AsyncTableRow.js.map +0 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/AsyncTableToolbar.d.ts +0 -6
- package/esm/@ui/UiAsyncTable/UiAsyncTable/AsyncTableToolbar.d.ts.map +0 -1
- package/esm/@ui/UiAsyncTable/UiAsyncTable/AsyncTableToolbar.js +0 -72
- package/esm/@ui/UiAsyncTable/UiAsyncTable/AsyncTableToolbar.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ColorPicker.js","sourceRoot":"","sources":["../../src/ColorPicker/ColorPicker.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,
|
1
|
+
{"version":3,"file":"ColorPicker.js","sourceRoot":"","sources":["../../src/ColorPicker/ColorPicker.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAyB,MAAM,YAAY,CAAC;AAG/D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAG5F,SAAS,kB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erMatrixProps {
|
4
4
|
initColor: ColorFormats.HSL;
|
5
5
|
onColorSelected: (color: ColorFormats.HSL) => void;
|
6
6
|
}
|
7
|
-
export declare
|
8
|
-
render(): ReactNode;
|
9
|
-
}
|
7
|
+
export declare const ColorPickerMatrix: React.NamedExoticComponent<IColorPickerMatrixProps>;
|
10
8
|
//# sourceMappingURL=ColorPickerMatrix.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ColorPickerMatrix.d.ts","sourceRoot":"","sources":["../../../src/ColorPicker/components/ColorPickerMatrix.tsx"],"names":[],"mappings":"AACA,
|
1
|
+
{"version":3,"file":"ColorPickerMatrix.d.ts","sourceRoot":"","sources":["../../../src/ColorPicker/components/ColorPickerMatrix.tsx"],"names":[],"mappings":"AACA,OAAO,KAAgD,MAAM,OAAO,CAAC;AAErE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI1C,MAAM,WAAW,uBAAuB;IACpC,SAAS,EAAE,YAAY,CAAC,GAAG,CAAC;IAC5B,eAAe,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,GAAG,KAAK,IAAI,CAAC;CACtD;AAED,eAAO,MAAM,iBAAiB,qDAoB5B,CAAC"}
|
@@ -1,28 +1,30 @@
|
|
1
|
-
// (C) 2007-
|
2
|
-
import React, {
|
1
|
+
// (C) 2007-2025 GoodData Corporation
|
2
|
+
import React, { memo, useCallback, useMemo } from "react";
|
3
3
|
import cx from "classnames";
|
4
4
|
import { getColorStyle, SATURATION_ARRAY } from "../utils.js";
|
5
|
-
export
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
class ColorPickerRow extends PureComponent {
|
14
|
-
getCellClassNames(hslColor) {
|
5
|
+
export const ColorPickerMatrix = memo(function ColorPickerMatrix(props) {
|
6
|
+
return (React.createElement("div", { className: "color-picker-component" },
|
7
|
+
React.createElement(ColorPickerRow, { lightness: 0.7, initColor: props.initColor, onColorSelected: props.onColorSelected }),
|
8
|
+
React.createElement(ColorPickerRow, { lightness: 0.5, initColor: props.initColor, onColorSelected: props.onColorSelected }),
|
9
|
+
React.createElement(ColorPickerRow, { lightness: 0.3, initColor: props.initColor, onColorSelected: props.onColorSelected })));
|
10
|
+
});
|
11
|
+
const ColorPickerRow = memo(function ColorPickerRow({ onColorSelected, initColor, lightness, }) {
|
12
|
+
const getCellClassNames = useCallback((hslColor) => {
|
15
13
|
return cx("color-picker-cell", `s-color-${Math.floor(hslColor.h + (hslColor.s + hslColor.l) * 100)}`);
|
16
|
-
}
|
17
|
-
|
18
|
-
|
14
|
+
}, []);
|
15
|
+
const handleColorClick = useCallback((color) => () => {
|
16
|
+
onColorSelected(color);
|
17
|
+
}, [onColorSelected]);
|
18
|
+
const colorCells = useMemo(() => {
|
19
|
+
return SATURATION_ARRAY.map((saturation) => {
|
19
20
|
const newColor = {
|
20
|
-
h:
|
21
|
+
h: initColor.h,
|
21
22
|
s: saturation,
|
22
|
-
l:
|
23
|
+
l: lightness,
|
23
24
|
};
|
24
|
-
return (React.createElement("div", { role: "color", tabIndex: -1, key:
|
25
|
-
})
|
26
|
-
}
|
27
|
-
}
|
25
|
+
return (React.createElement("div", { role: "color", tabIndex: -1, key: lightness + saturation, className: getCellClassNames(newColor), style: getColorStyle(newColor), onClick: handleColorClick(newColor) }));
|
26
|
+
});
|
27
|
+
}, [initColor.h, lightness, getCellClassNames, handleColorClick]);
|
28
|
+
return React.createElement("div", { className: "color-picker-row" }, colorCells);
|
29
|
+
});
|
28
30
|
//# sourceMappingURL=ColorPickerMatrix.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ColorPickerMatrix.js","sourceRoot":"","sources":["../../../src/ColorPicker/components/ColorPickerMatrix.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,
|
1
|
+
{"version":3,"file":"ColorPickerMatrix.js","sourceRoot":"","sources":["../../../src/ColorPicker/components/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,KAAK,CAAC,CAAC;IAC3B,CAAC,EACD,CAAC,eAAe,CAAC,CACpB,CAAC;IAEF,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,EAAE;QAC5B,OAAO,gBAAgB,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE;YACvC,MAAM,QAAQ,GAAG;gBACb,CAAC,EAAE,SAAS,CAAC,CAAC;gBACd,CAAC,EAAE,UAAU;gBACb,CAAC,EAAE,SAAS;aACf,CAAC;YAEF,OAAO,CACH,6BACI,IAAI,EAAC,OAAO,EACZ,QAAQ,EAAE,CAAC,CAAC,EACZ,GAAG,EAAE,SAAS,GAAG,UAAU,EAC3B,SAAS,EAAE,iBAAiB,CAAC,QAAQ,CAAC,EACtC,KAAK,EAAE,aAAa,CAAC,QAAQ,CAAC,EAC9B,OAAO,EAAE,gBAAgB,CAAC,QAAQ,CAAC,GACrC,CACL,CAAC;QACN,CAAC,CAAC,CAAC;IACP,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,iBAAiB,EAAE,gBAAgB,CAAC,CAAC,CAAC;IAElE,OAAO,6BAAK,SAAS,EAAC,kBAAkB,IAAE,UAAU,CAAO,CAAC;AAChE,CAAC,CAAC,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import React from "react";
|
2
2
|
import { ColorFormats } from "tinycolor2";
|
3
3
|
export interface IColorsPreviewProps {
|
4
4
|
currentHslColor: ColorFormats.HSL;
|
@@ -6,8 +6,5 @@ export interface IColorsPreviewProps {
|
|
6
6
|
currentTextLabel?: string;
|
7
7
|
draftTextLabel?: string;
|
8
8
|
}
|
9
|
-
export declare
|
10
|
-
static defaultProps: Pick<IColorsPreviewProps, "currentTextLabel" | "draftTextLabel">;
|
11
|
-
render(): ReactNode;
|
12
|
-
}
|
9
|
+
export declare const ColorsPreview: React.NamedExoticComponent<IColorsPreviewProps>;
|
13
10
|
//# sourceMappingURL=ColorsPreview.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ColorsPreview.d.ts","sourceRoot":"","sources":["../../../src/ColorPicker/components/ColorsPreview.tsx"],"names":[],"mappings":"AACA,
|
1
|
+
{"version":3,"file":"ColorsPreview.d.ts","sourceRoot":"","sources":["../../../src/ColorPicker/components/ColorsPreview.tsx"],"names":[],"mappings":"AACA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI1C,MAAM,WAAW,mBAAmB;IAChC,eAAe,EAAE,YAAY,CAAC,GAAG,CAAC;IAClC,aAAa,EAAE,YAAY,CAAC,GAAG,CAAC;IAChC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,aAAa,iDAYxB,CAAC"}
|
@@ -1,22 +1,14 @@
|
|
1
|
-
// (C) 2007-
|
2
|
-
import React, {
|
1
|
+
// (C) 2007-2025 GoodData Corporation
|
2
|
+
import React, { memo } from "react";
|
3
3
|
import { getColorStyle } from "../utils.js";
|
4
|
-
export
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
}
|
15
|
-
class ColorItem extends PureComponent {
|
16
|
-
render() {
|
17
|
-
return (React.createElement("div", { className: "color-picker-value-wrapper" },
|
18
|
-
React.createElement("div", { "aria-label": this.props.id, className: `color-value s-${this.props.id}`, style: getColorStyle(this.props.hslColor) }),
|
19
|
-
React.createElement("span", null, this.props.textLabel)));
|
20
|
-
}
|
21
|
-
}
|
4
|
+
export const ColorsPreview = memo(function ColorsPreview({ currentHslColor, draftHslColor, currentTextLabel = "current", draftTextLabel = "new", }) {
|
5
|
+
return (React.createElement("div", { className: "color-picker-preview" },
|
6
|
+
React.createElement(ColorItem, { id: "current-color", hslColor: currentHslColor, textLabel: currentTextLabel }),
|
7
|
+
React.createElement(ColorItem, { id: "new-color", hslColor: draftHslColor, textLabel: draftTextLabel })));
|
8
|
+
});
|
9
|
+
const ColorItem = memo(function ColorItem({ id, hslColor, textLabel }) {
|
10
|
+
return (React.createElement("div", { className: "color-picker-value-wrapper" },
|
11
|
+
React.createElement("div", { "aria-label": id, className: `color-value s-${id}`, style: getColorStyle(hslColor) }),
|
12
|
+
React.createElement("span", null, textLabel)));
|
13
|
+
});
|
22
14
|
//# sourceMappingURL=ColorsPreview.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ColorsPreview.js","sourceRoot":"","sources":["../../../src/ColorPicker/components/ColorsPreview.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,
|
1
|
+
{"version":3,"file":"ColorsPreview.js","sourceRoot":"","sources":["../../../src/ColorPicker/components/ColorsPreview.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,IAAI,EAAa,MAAM,OAAO,CAAC;AAG/C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAS5C,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,SAAS,aAAa,CAAC,EACrD,eAAe,EACf,aAAa,EACb,gBAAgB,GAAG,SAAS,EAC5B,cAAc,GAAG,KAAK,GACJ;IAClB,OAAO,CACH,6BAAK,SAAS,EAAC,sBAAsB;QACjC,oBAAC,SAAS,IAAC,EAAE,EAAC,eAAe,EAAC,QAAQ,EAAE,eAAe,EAAE,SAAS,EAAE,gBAAgB,GAAI;QACxF,oBAAC,SAAS,IAAC,EAAE,EAAC,WAAW,EAAC,QAAQ,EAAE,aAAa,EAAE,SAAS,EAAE,cAAc,GAAI,CAC9E,CACT,CAAC;AACN,CAAC,CAAC,CAAC;AAQH,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,SAAS,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAmB;IAClF,OAAO,CACH,6BAAK,SAAS,EAAC,4BAA4B;QACvC,2CAAiB,EAAE,EAAE,SAAS,EAAE,iBAAiB,EAAE,EAAE,EAAE,KAAK,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAI;QACzF,kCAAO,SAAS,CAAQ,CACtB,CACT,CAAC;AACN,CAAC,CAAC,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import React from "react";
|
2
2
|
import { ColorFormats } from "tinycolor2";
|
3
3
|
export interface IHexColorInputProps {
|
4
4
|
initColor: ColorFormats.HSL;
|
@@ -6,9 +6,5 @@ export interface IHexColorInputProps {
|
|
6
6
|
placeholder?: string;
|
7
7
|
label?: string;
|
8
8
|
}
|
9
|
-
export declare
|
10
|
-
static defaultProps: Pick<IHexColorInputProps, "label" | "placeholder">;
|
11
|
-
onInputChange: (value: string) => void;
|
12
|
-
render(): ReactNode;
|
13
|
-
}
|
9
|
+
export declare const HexColorInput: React.NamedExoticComponent<IHexColorInputProps>;
|
14
10
|
//# sourceMappingURL=HexColorInput.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"HexColorInput.d.ts","sourceRoot":"","sources":["../../../src/ColorPicker/components/HexColorInput.tsx"],"names":[],"mappings":"AACA,
|
1
|
+
{"version":3,"file":"HexColorInput.d.ts","sourceRoot":"","sources":["../../../src/ColorPicker/components/HexColorInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAiD,MAAM,OAAO,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAK1C,MAAM,WAAW,mBAAmB;IAChC,SAAS,EAAE,YAAY,CAAC,GAAG,CAAC;IAC5B,cAAc,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,GAAG,KAAK,IAAI,CAAC;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,aAAa,iDA0BxB,CAAC"}
|
@@ -1,23 +1,18 @@
|
|
1
|
-
// (C) 2007-
|
2
|
-
import React, {
|
1
|
+
// (C) 2007-2025 GoodData Corporation
|
2
|
+
import React, { memo, Fragment, useCallback } from "react";
|
3
3
|
import { getHslFromHexColor, getHexFromHslColor, isHexColorValid } from "../utils.js";
|
4
4
|
import { Input } from "../../Form/index.js";
|
5
|
-
export
|
6
|
-
|
7
|
-
|
8
|
-
label: "",
|
9
|
-
};
|
10
|
-
onInputChange = (value) => {
|
5
|
+
export const HexColorInput = memo(function HexColorInput(props) {
|
6
|
+
const { initColor, onInputChanged, placeholder = "", label = "" } = props;
|
7
|
+
const onInputChange = useCallback((value) => {
|
11
8
|
if (isHexColorValid(value)) {
|
12
9
|
const newHsl = getHslFromHexColor(value);
|
13
|
-
|
10
|
+
onInputChanged(newHsl);
|
14
11
|
}
|
15
|
-
};
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
}
|
22
|
-
}
|
12
|
+
}, [onInputChanged]);
|
13
|
+
const hexValue = getHexFromHslColor(initColor);
|
14
|
+
return (React.createElement(Fragment, null,
|
15
|
+
React.createElement(Input, { className: "s-color-picker-hex", value: hexValue, onChange: onInputChange, placeholder: placeholder }),
|
16
|
+
React.createElement("p", null, label)));
|
17
|
+
});
|
23
18
|
//# sourceMappingURL=HexColorInput.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"HexColorInput.js","sourceRoot":"","sources":["../../../src/ColorPicker/components/HexColorInput.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,
|
1
|
+
{"version":3,"file":"HexColorInput.js","sourceRoot":"","sources":["../../../src/ColorPicker/components/HexColorInput.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAa,WAAW,EAAE,MAAM,OAAO,CAAC;AAGtE,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACtF,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAS5C,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,SAAS,aAAa,CAAC,KAA0B;IAC/E,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,WAAW,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC;IAE1E,MAAM,aAAa,GAAG,WAAW,CAC7B,CAAC,KAAa,EAAQ,EAAE;QACpB,IAAI,eAAe,CAAC,KAAK,CAAC,EAAE,CAAC;YACzB,MAAM,MAAM,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;YACzC,cAAc,CAAC,MAAM,CAAC,CAAC;QAC3B,CAAC;IACL,CAAC,EACD,CAAC,cAAc,CAAC,CACnB,CAAC;IAEF,MAAM,QAAQ,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC;IAE/C,OAAO,CACH,oBAAC,QAAQ;QACL,oBAAC,KAAK,IACF,SAAS,EAAC,oBAAoB,EAC9B,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,aAAa,EACvB,WAAW,EAAE,WAAW,GAC1B;QACF,+BAAI,KAAK,CAAK,CACP,CACd,CAAC;AACN,CAAC,CAAC,CAAC"}
|
@@ -2,23 +2,11 @@
|
|
2
2
|
* Copyright (c) 2015 Case Sandberg
|
3
3
|
* Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms.
|
4
4
|
*/
|
5
|
-
import React
|
5
|
+
import React from "react";
|
6
6
|
import { ColorFormats } from "tinycolor2";
|
7
7
|
export interface IHueColorPickerProps {
|
8
8
|
initColor: ColorFormats.HSL;
|
9
9
|
onChange: (color: ColorFormats.HSL) => void;
|
10
10
|
}
|
11
|
-
export declare
|
12
|
-
private readonly hueContainer;
|
13
|
-
constructor(props: IHueColorPickerProps);
|
14
|
-
componentWillUnmount(): void;
|
15
|
-
getPointerStyle(): CSSProperties;
|
16
|
-
handleChange: (e: TouchEvent | MouseEvent) => void;
|
17
|
-
handleTouchChange: (e: React.TouchEvent) => void;
|
18
|
-
handleMouseDown: (e: React.MouseEvent) => void;
|
19
|
-
handleMouseUp: () => void;
|
20
|
-
bindEventListeners(): void;
|
21
|
-
unbindEventListeners(): void;
|
22
|
-
render(): ReactNode;
|
23
|
-
}
|
11
|
+
export declare const HueColorPicker: React.NamedExoticComponent<IHueColorPickerProps>;
|
24
12
|
//# sourceMappingURL=HueColorPicker.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"HueColorPicker.d.ts","sourceRoot":"","sources":["../../../src/ColorPicker/components/HueColorPicker.tsx"],"names":[],"mappings":"AACA;;;GAGG;AACH,OAAO,
|
1
|
+
{"version":3,"file":"HueColorPicker.d.ts","sourceRoot":"","sources":["../../../src/ColorPicker/components/HueColorPicker.tsx"],"names":[],"mappings":"AACA;;;GAGG;AACH,OAAO,KAAuE,MAAM,OAAO,CAAC;AAC5F,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAI1C,MAAM,WAAW,oBAAoB;IACjC,SAAS,EAAE,YAAY,CAAC,GAAG,CAAC;IAC5B,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,GAAG,KAAK,IAAI,CAAC;CAC/C;AAED,eAAO,MAAM,cAAc,kDAoEzB,CAAC"}
|
@@ -1,53 +1,45 @@
|
|
1
|
-
// (C) 2007-
|
1
|
+
// (C) 2007-2025 GoodData Corporation
|
2
2
|
/**
|
3
3
|
* Copyright (c) 2015 Case Sandberg
|
4
4
|
* Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms.
|
5
5
|
*/
|
6
|
-
import React, {
|
6
|
+
import React, { memo, useRef, useEffect, useCallback, useMemo } from "react";
|
7
7
|
import { calculateHueChange } from "../utils.js";
|
8
|
-
export
|
9
|
-
hueContainer;
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
}
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
return {
|
19
|
-
position: "absolute",
|
20
|
-
left: `${(this.props.initColor.h * 100) / 360}%`,
|
21
|
-
};
|
22
|
-
}
|
23
|
-
handleChange = (e) => {
|
24
|
-
const change = calculateHueChange(e, this.props.initColor.h, this.hueContainer.current);
|
25
|
-
if (change && this.props.onChange) {
|
26
|
-
this.props.onChange(change);
|
8
|
+
export const HueColorPicker = memo(function HueColorPicker({ initColor, onChange }) {
|
9
|
+
const hueContainer = useRef(null);
|
10
|
+
const pointerStyle = useMemo(() => ({
|
11
|
+
position: "absolute",
|
12
|
+
left: `${(initColor.h * 100) / 360}%`,
|
13
|
+
}), [initColor.h]);
|
14
|
+
const handleChange = useCallback((e) => {
|
15
|
+
const change = calculateHueChange(e, initColor.h, hueContainer.current);
|
16
|
+
if (change && onChange) {
|
17
|
+
onChange(change);
|
27
18
|
}
|
28
|
-
};
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
}
|
19
|
+
}, [initColor.h, onChange]);
|
20
|
+
const handleMouseUp = useCallback(() => {
|
21
|
+
window.removeEventListener("mousemove", handleChange);
|
22
|
+
window.removeEventListener("mouseup", handleMouseUp);
|
23
|
+
}, [handleChange]);
|
24
|
+
const bindEventListeners = useCallback(() => {
|
25
|
+
window.addEventListener("mousemove", handleChange);
|
26
|
+
window.addEventListener("mouseup", handleMouseUp);
|
27
|
+
}, [handleChange, handleMouseUp]);
|
28
|
+
const handleTouchChange = useCallback((e) => {
|
29
|
+
handleChange(e.nativeEvent);
|
30
|
+
}, [handleChange]);
|
31
|
+
const handleMouseDown = useCallback((e) => {
|
32
|
+
bindEventListeners();
|
33
|
+
handleChange(e.nativeEvent);
|
34
|
+
}, [bindEventListeners, handleChange]);
|
35
|
+
useEffect(() => {
|
36
|
+
return () => {
|
37
|
+
window.removeEventListener("mousemove", handleChange);
|
38
|
+
window.removeEventListener("mouseup", handleMouseUp);
|
39
|
+
};
|
40
|
+
}, [handleChange, handleMouseUp]);
|
41
|
+
return (React.createElement("div", { role: "hue-picker", className: "hue-picker hue-horizontal s-hue-picker", ref: hueContainer, onMouseDown: handleMouseDown, onMouseUp: handleMouseUp, onTouchMove: handleTouchChange, onTouchStart: handleTouchChange },
|
42
|
+
React.createElement("div", { style: pointerStyle },
|
43
|
+
React.createElement("div", { className: "color-picker-pointer s-color-picker-pointer" }))));
|
44
|
+
});
|
53
45
|
//# sourceMappingURL=HueColorPicker.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"HueColorPicker.js","sourceRoot":"","sources":["../../../src/ColorPicker/components/HueColorPicker.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC;;;GAGG;AACH,OAAO,KAAK,EAAE,EAAE,
|
1
|
+
{"version":3,"file":"HueColorPicker.js","sourceRoot":"","sources":["../../../src/ColorPicker/components/HueColorPicker.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC;;;GAGG;AACH,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAiB,OAAO,EAAE,MAAM,OAAO,CAAC;AAG5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAOjD,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,CAAC,SAAS,cAAc,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAwB;IACpG,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAElD,MAAM,YAAY,GAAG,OAAO,CACxB,GAAG,EAAE,CAAC,CAAC;QACH,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG;KACxC,CAAC,EAC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X,OAAO,GAAG,EAAE;YACR,MAAM,CAAC,mBAAmB,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;YACtD,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QACzD,CAAC,CAAC;IACN,CAAC,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC;IAElC,OAAO,CACH,6BACI,IAAI,EAAC,YAAY,EACjB,SAAS,EAAC,wCAAwC,EAClD,GAAG,EAAE,YAAY,EACjB,WAAW,EAAE,eAAe,EAC5B,SAAS,EAAE,aAAa,EACxB,WAAW,EAAE,iBAAiB,EAC9B,YAAY,EAAE,iBAAiB;QAE/B,6BAAK,KAAK,EAAE,YAAY;YACpB,6BAAK,SAAS,EAAC,6CAA6C,GAAG,CAC7D,CACJ,CACT,CAAC;AACN,CAAC,CAAC,CAAC"}
|
@@ -1,9 +1,7 @@
|
|
1
|
-
import
|
1
|
+
import React from "react";
|
2
2
|
import { IConfirmDialogBaseProps } from "./typings.js";
|
3
3
|
/**
|
4
4
|
* @internal
|
5
5
|
*/
|
6
|
-
export declare
|
7
|
-
render(): ReactElement;
|
8
|
-
}
|
6
|
+
export declare const ConfirmDialog: React.NamedExoticComponent<IConfirmDialogBaseProps>;
|
9
7
|
//# sourceMappingURL=ConfirmDialog.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ConfirmDialog.d.ts","sourceRoot":"","sources":["../../src/Dialog/ConfirmDialog.tsx"],"names":[],"mappings":"AACA,
|
1
|
+
{"version":3,"file":"ConfirmDialog.d.ts","sourceRoot":"","sources":["../../src/Dialog/ConfirmDialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAe,MAAM,OAAO,CAAC;AAGpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAEvD;;GAEG;AACH,eAAO,MAAM,aAAa,qDAkBxB,CAAC"}
|
@@ -1,19 +1,16 @@
|
|
1
1
|
// (C) 2020-2025 GoodData Corporation
|
2
|
-
import React, {
|
2
|
+
import React, { memo } from "react";
|
3
3
|
import { Overlay } from "../Overlay/index.js";
|
4
4
|
import { ConfirmDialogBase } from "./ConfirmDialogBase.js";
|
5
5
|
/**
|
6
6
|
* @internal
|
7
7
|
*/
|
8
|
-
export
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
React.createElement(ConfirmDialogBase, { ...dialogProps })));
|
17
|
-
}
|
18
|
-
}
|
8
|
+
export const ConfirmDialog = memo(function ConfirmDialog({ containerClassName, ...dialogProps }) {
|
9
|
+
return (React.createElement(Overlay, { alignPoints: [
|
10
|
+
{
|
11
|
+
align: "cc cc",
|
12
|
+
},
|
13
|
+
], isModal: true, positionType: "fixed", containerClassName: containerClassName },
|
14
|
+
React.createElement(ConfirmDialogBase, { ...dialogProps })));
|
15
|
+
});
|
19
16
|
//# sourceMappingURL=ConfirmDialog.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ConfirmDialog.js","sourceRoot":"","sources":["../../src/Dialog/ConfirmDialog.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,
|
1
|
+
{"version":3,"file":"ConfirmDialog.js","sourceRoot":"","sources":["../../src/Dialog/ConfirmDialog.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG3D;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAAC,SAAS,aAAa,CAAC,EACrD,kBAAkB,EAClB,GAAG,WAAW,EACQ;IACtB,OAAO,CACH,oBAAC,OAAO,IACJ,WAAW,EAAE;YACT;gBACI,KAAK,EAAE,OAAO;aACjB;SACJ,EACD,OAAO,QACP,YAAY,EAAC,OAAO,EACpB,kBAAkB,EAAE,kBAAkB;QAEtC,oBAAC,iBAAiB,OAAK,WAAW,GAAI,CAChC,CACb,CAAC;AACN,CAAC,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ConfirmDialogBase.d.ts","sourceRoot":"","sources":["../../src/Dialog/ConfirmDialogBase.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAMvD;;GAEG;AACH,eAAO,MAAM,iBAAiB,
|
1
|
+
{"version":3,"file":"ConfirmDialogBase.d.ts","sourceRoot":"","sources":["../../src/Dialog/ConfirmDialogBase.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAMvD;;GAEG;AACH,eAAO,MAAM,iBAAiB,qDA+G5B,CAAC"}
|
@@ -44,7 +44,7 @@ export const ConfirmDialogBase = React.memo(function ConfirmDialogBase({ display
|
|
44
44
|
showProgressIndicator ? React.createElement(LoadingSpinner, { className: "gd-dialog-spinner small" }) : null,
|
45
45
|
React.createElement(Button, { onClick: dialogBaseProps.onCancel, className: "gd-button-secondary s-dialog-cancel-button", value: cancelButtonText, disabled: isCancelDisabled }),
|
46
46
|
submitButtonText && !hideSubmitButton ? (React.createElement(BubbleHoverTrigger, { className: "gd-button", showDelay: 0, hideDelay: 0 },
|
47
|
-
React.createElement(Button, { id: CONFIRM_DIALOG_BASE_ID, onClick: dialogBaseProps.onSubmit, className: submitButtonClasses, value: submitButtonText, disabled: isSubmitDisabled }),
|
47
|
+
React.createElement(Button, { id: CONFIRM_DIALOG_BASE_ID, onClick: dialogBaseProps.onSubmit, className: submitButtonClasses, value: submitButtonText, disabled: isSubmitDisabled, describedByFromValidation: true }),
|
48
48
|
submitButtonTooltipText ? (React.createElement(Bubble, { className: "bubble-primary", alignPoints: submitButtonTooltipAlignPoints || [{ align: "bc tc" }], arrowOffsets: submitButtonTooltipArrowOffsets || { "bc tc": [0, 15] } }, submitButtonTooltipText)) : null)) : null)));
|
49
49
|
});
|
50
50
|
//# sourceMappingURL=ConfirmDialogBase.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ConfirmDialogBase.js","sourceRoot":"","sources":["../../src/Dialog/ConfirmDialogBase.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAExD;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,IAAI,CAA0B,SAAS,iBAAiB,CAAC,EAC5F,kBAAkB,GAAG,IAAI,EACzB,gBAAgB,GAAG,KAAK,EACxB,gBAAgB,EAChB,UAAU,EACV,QAAQ,EACR,gBAAgB,EAChB,gBAAgB,EAChB,uBAAuB,EACvB,8BAA8B,EAC9B,+BAA+B,EAC/B,gBAAgB,EAChB,OAAO,EACP,qBAAqB,EACrB,wBAAwB,EACxB,kBAAkB,EAClB,qBAAqB,EACrB,YAAY,EACZ,aAAa,EACb,sBAAsB,EAEtB,GAAG,eAAe,EACrB;IACG,MAAM,aAAa,GAAG,EAAE,CAAC,YAAY,EAAE,eAAe,CAAC,SAA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,EACjC,SAAS,EAAE,mBAAmB,EAC9B,KAAK,EAAE,gBAAgB,EACvB,QAAQ,EAAE,gBAAgB,EAC1B,yBAAyB,SAC3B;gBACD,uBAAuB,CAAC,CAAC,CAAC,CACvB,oBAAC,MAAM,IACH,SAAS,EAAC,gBAAgB,EAC1B,WAAW,EAAE,8BAA8B,IAAI,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,EACnE,YAAY,EAAE,+BAA+B,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,IAEpE,uBAAuB,CACnB,CACZ,CAAC,CAAC,CAAC,IAAI,CACS,CACxB,CAAC,CAAC,CAAC,IAAI,CACN,CACG,CAChB,CAAC;AACN,CAAC,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DialogBase.d.ts","sourceRoot":"","sources":["../../src/Dialog/DialogBase.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"DialogBase.d.ts","sourceRoot":"","sources":["../../src/Dialog/DialogBase.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAiBhD;;GAEG;AACH,eAAO,MAAM,UAAU,8CAkErB,CAAC"}
|
package/esm/Dialog/DialogBase.js
CHANGED
@@ -4,6 +4,7 @@ import cx from "classnames";
|
|
4
4
|
import { DialogCloseButton } from "./DialogCloseButton.js";
|
5
5
|
import { isElementSubmitButton, isElementTextInput } from "../utils/domUtilities.js";
|
6
6
|
import { UiFocusManager } from "../@ui/UiFocusManager/UiFocusManager.js";
|
7
|
+
import { defaultFocusCheckFn } from "../@ui/UiFocusManager/utils.js";
|
7
8
|
const checkKeyHandler = (event, key, handler) => {
|
8
9
|
if (event.key !== key || !handler) {
|
9
10
|
return;
|
@@ -15,7 +16,7 @@ const checkKeyHandler = (event, key, handler) => {
|
|
15
16
|
/**
|
16
17
|
* @internal
|
17
18
|
*/
|
18
|
-
export const DialogBase = React.memo(function DialogBase({ submitOnEnterKey, onCancel, onSubmit, displayCloseButton, onClose, accessibilityConfig, className, autofocusOnOpen = true, children, CloseButton = DialogCloseButton, initialFocus, returnFocusTo, shouldCloseOnEscape = false, returnFocusAfterClose = false, isModal = true, }) {
|
19
|
+
export const DialogBase = React.memo(function DialogBase({ submitOnEnterKey, onCancel, onSubmit, displayCloseButton, onClose, accessibilityConfig, className, autofocusOnOpen = true, children, CloseButton = DialogCloseButton, initialFocus, returnFocusTo, shouldCloseOnEscape = false, returnFocusAfterClose = false, isModal = true, focusCheckFn = defaultFocusCheckFn, }) {
|
19
20
|
const handleKeyDown = React.useCallback((event) => {
|
20
21
|
// don't call onSubmit when pressing enter key on input fields
|
21
22
|
const isEnterKeyDownOnInputField = event.key === "Enter" && isElementTextInput(event.target);
|
@@ -29,7 +30,7 @@ export const DialogBase = React.memo(function DialogBase({ submitOnEnterKey, onC
|
|
29
30
|
checkKeyHandler(event, "Escape", shouldCloseOnEscape ? onClose : onCancel);
|
30
31
|
}, [onCancel, onSubmit, onClose, submitOnEnterKey, shouldCloseOnEscape]);
|
31
32
|
const dialogClasses = cx("overlay", "gd-dialog", className);
|
32
|
-
return (React.createElement(UiFocusManager, { enableFocusTrap: isModal, enableAutofocus: !!isModal && autofocusOnOpen ? { initialFocus } : false, enableReturnFocusOnUnmount: !!isModal && returnFocusAfterClose ? { returnFocusTo } : false },
|
33
|
+
return (React.createElement(UiFocusManager, { enableFocusTrap: isModal, enableAutofocus: !!isModal && autofocusOnOpen ? { initialFocus } : false, enableReturnFocusOnUnmount: !!isModal && returnFocusAfterClose ? { returnFocusTo } : false, focusCheckFn: focusCheckFn },
|
33
34
|
React.createElement("div", { onKeyDown: handleKeyDown, role: "dialog", "aria-modal": accessibilityConfig?.isModal, "aria-label": accessibilityConfig?.title, "aria-labelledby": accessibilityConfig?.titleElementId, "aria-describedby": accessibilityConfig?.descriptionElementId },
|
34
35
|
React.createElement("div", { className: dialogClasses },
|
35
36
|
displayCloseButton ? (React.createElement(CloseButton, { onClose: onClose ?? onCancel, accessibilityConfig: accessibilityConfig })) : null,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DialogBase.js","sourceRoot":"","sources":["../../src/Dialog/DialogBase.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;
|
1
|
+
{"version":3,"file":"DialogBase.js","sourceRoot":"","sources":["../../src/Dialog/DialogBase.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAErE,MAAM,eAAe,GAAG,CAAC,KAA0B,EAAE,GAAW,EAAE,OAAoB,EAAQ,EAAE;IAC5F,IAAI,KAAK,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;QAChC,OAAO;IACX,CAAC;IAED,KAAK,CAAC,cAAc,EAAE,CAAC;IACvB,KAAK,CAAC,eAAe,EAAE,CAAC;IAExB,OAAO,EAAE,CAAC;AACd,CAAC,C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AO,EACxB,eAAe,EAAE,CAAC,CAAC,OAAO,IAAI,eAAe,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,KAAK,EACxE,0BAA0B,EAAE,CAAC,CAAC,OAAO,IAAI,qBAAqB,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC,KAAK,EAC1F,YAAY,EAAE,YAAY;QAE1B,6BACI,SAAS,EAAE,aAAa,EACxB,IAAI,EAAE,QAAQ,gBACF,mBAAmB,EAAE,OAAO,gBAC5B,mBAAmB,EAAE,KAAK,qBACrB,mBAAmB,EAAE,cAAc,sBAClC,mBAAmB,EAAE,oBAAoB;YAE3D,6BAAK,SAAS,EAAE,aAAa;gBACxB,kBAAkB,CAAC,CAAC,CAAC,CAClB,oBAAC,WAAW,IACR,OAAO,EAAE,OAAO,IAAI,QAAQ,EAC5B,mBAAmB,EAAE,mBAAmB,GAC1C,CACL,CAAC,CAAC,CAAC,IAAI;gBAEP,QAAQ,CACP,CACJ,CACO,CACpB,CAAC;AACN,CAAC,CAAC,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AddGranteeButton.d.ts","sourceRoot":"","sources":["../../../../src/Dialog/ShareDialog/ShareDialogBase/AddGranteeButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsB,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"AddGranteeButton.d.ts","sourceRoot":"","sources":["../../../../src/Dialog/ShareDialog/ShareDialogBase/AddGranteeButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAG3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAKnD;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAiDhE,CAAC"}
|
@@ -2,8 +2,9 @@
|
|
2
2
|
import React, { useCallback } from "react";
|
3
3
|
import { FormattedMessage, useIntl } from "react-intl";
|
4
4
|
import cx from "classnames";
|
5
|
-
import { BubbleHoverTrigger, Bubble } from "../../../Bubble/index.js";
|
6
5
|
import { ADD_GRANTEE_ID } from "./utils.js";
|
6
|
+
import { UiTooltip } from "../../../@ui/UiTooltip/UiTooltip.js";
|
7
|
+
import { useIdPrefixed } from "../../../utils/useId.js";
|
7
8
|
/**
|
8
9
|
* @internal
|
9
10
|
*/
|
@@ -20,11 +21,9 @@ export const AddUserOrGroupButton = (props) => {
|
|
20
21
|
}
|
21
22
|
onClick();
|
22
23
|
}, [isDisabled, onClick]);
|
24
|
+
const addGranteeTooltipId = useIdPrefixed("add-grantee-tooltip");
|
23
25
|
return (React.createElement("div", null,
|
24
|
-
React.createElement(
|
25
|
-
|
26
|
-
React.createElement(FormattedMessage, { id: "shareDialog.share.grantee.add" })),
|
27
|
-
React.createElement(Bubble, { className: "bubble-primary", alignPoints: [{ align: "cr cl" }] },
|
28
|
-
React.createElement(FormattedMessage, { id: "shareDialog.share.grantee.add.info" })))));
|
26
|
+
React.createElement(UiTooltip, { id: addGranteeTooltipId, arrowPlacement: "left", triggerBy: ["hover", "focus"], content: React.createElement(FormattedMessage, { id: "shareDialog.share.grantee.add.info" }), anchor: React.createElement("button", { id: ADD_GRANTEE_ID, className: buttonClassNames, onClick: handleClick, "aria-label": intl.formatMessage({ id: "shareDialog.share.grantee.addLabel" }), "aria-describedby": addGranteeTooltipId },
|
27
|
+
React.createElement(FormattedMessage, { id: "shareDialog.share.grantee.add" })) })));
|
29
28
|
};
|
30
29
|
//# sourceMappingURL=AddGranteeButton.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AddGranteeButton.js","sourceRoot":"","sources":["../../../../src/Dialog/ShareDialog/ShareDialogBase/AddGranteeButton.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,MAAM,YAAY,CAAC;
|
1
|
+
{"version":3,"file":"AddGranteeButton.js","sourceRoot":"","sources":["../../../../src/Dialog/ShareDialog/ShareDialogBase/AddGranteeButton.tsx"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5B,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAoC,CAAC,KAAK,EAAE,EAAE;IAC3E,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAEtC,MAAM,IAAI,GAAG,OAAO,EAAE,CAAC;IAEvB,MAAM,gBAAgB,GAAG,EAAE,CACvB;QACI,QAAQ,EAAE,UAAU;KACvB,EACD,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,uBAAuB,CAC1B,CAAC;IAEF,MAAM,WAAW,GAAG,WAAW,CAC3B,CAAC,CAAmB,EAAE,EAAE;QACpB,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,IAAI,UAAU,EAAE,CAAC;YACb,OAAO;QACX,CAAC;QACD,OAAO,EAAE,CAAC;IACd,CAAC,EACD,CAAC,UAAU,EAAE,OAAO,CAAC,CACxB,CAAC;IAEF,MAAM,mBAAmB,GAAG,aAAa,CAAC,qBAAqB,CAAC,CAAC;IAEjE,OAAO,CACH;QACI,oBAAC,SAAS,IACN,EAAE,EAAE,mBAAmB,EACvB,cAAc,EAAC,MAAM,EACrB,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,EAC7B,OAAO,EAAE,oBAAC,gBAAgB,IAAC,EAAE,EAAE,oCAAoC,GAAI,EACvE,MAAM,EACF,gCACI,EAAE,EAAE,cAAc,EAClB,SAAS,EAAE,gBAAgB,EAC3B,OAAO,EAAE,WAAW,gBACR,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,oCAAoC,EAAE,CAAC,sBAC1D,mBAAmB;gBAErC,oBAAC,gBAAgB,IAAC,EAAE,EAAC,+BAA+B,GAAG,CAClD,GAEf,CACA,CACT,CAAC;AACN,CAAC,CAAC"}
|
package/esm/Dialog/typings.d.ts
CHANGED
@@ -39,6 +39,11 @@ export interface IDialogBaseProps {
|
|
39
39
|
initialFocus?: React.RefObject<HTMLElement> | string;
|
40
40
|
returnFocusTo?: React.RefObject<HTMLElement> | string;
|
41
41
|
returnFocusAfterClose?: boolean;
|
42
|
+
/**
|
43
|
+
* customize if you know that dialog content has some custom focusIn logic which modifies focused element, eg. table which shifts its focus from table wrapper to first table cell
|
44
|
+
* default is check if active element is exactly focused element.
|
45
|
+
*/
|
46
|
+
focusCheckFn?: (element: HTMLElement) => boolean;
|
42
47
|
}
|
43
48
|
/**
|
44
49
|
* @internal
|