@itwin/core-react 3.7.15 → 3.7.17
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/CHANGELOG.md +11 -1
- package/lib/cjs/core-react/autosuggest/AutoSuggest.d.ts +1 -1
- package/lib/cjs/core-react/autosuggest/AutoSuggest.d.ts.map +1 -1
- package/lib/cjs/core-react/autosuggest/AutoSuggest.js.map +1 -1
- package/lib/cjs/core-react/badge/Badge.d.ts +1 -1
- package/lib/cjs/core-react/badge/Badge.d.ts.map +1 -1
- package/lib/cjs/core-react/badge/Badge.js.map +1 -1
- package/lib/cjs/core-react/badge/BetaBadge.d.ts +2 -2
- package/lib/cjs/core-react/badge/BetaBadge.d.ts.map +1 -1
- package/lib/cjs/core-react/badge/NewBadge.d.ts +2 -2
- package/lib/cjs/core-react/badge/NewBadge.d.ts.map +1 -1
- package/lib/cjs/core-react/base/Centered.d.ts +2 -2
- package/lib/cjs/core-react/base/Centered.d.ts.map +1 -1
- package/lib/cjs/core-react/base/Div.d.ts +2 -2
- package/lib/cjs/core-react/base/Div.d.ts.map +1 -1
- package/lib/cjs/core-react/base/DivWithOutsideClick.d.ts +2 -2
- package/lib/cjs/core-react/base/FillCentered.d.ts +2 -2
- package/lib/cjs/core-react/base/FillCentered.d.ts.map +1 -1
- package/lib/cjs/core-react/base/FlexWrapContainer.d.ts +2 -2
- package/lib/cjs/core-react/base/FlexWrapContainer.d.ts.map +1 -1
- package/lib/cjs/core-react/base/Gap.d.ts +2 -2
- package/lib/cjs/core-react/base/Gap.d.ts.map +1 -1
- package/lib/cjs/core-react/base/ScrollView.d.ts +2 -2
- package/lib/cjs/core-react/base/ScrollView.d.ts.map +1 -1
- package/lib/cjs/core-react/button/Button.d.ts +1 -1
- package/lib/cjs/core-react/button/UnderlinedButton.d.ts +1 -1
- package/lib/cjs/core-react/button/UnderlinedButton.d.ts.map +1 -1
- package/lib/cjs/core-react/checkbox/Checkbox.d.ts +1 -1
- package/lib/cjs/core-react/checklistbox/CheckListBox.d.ts +3 -3
- package/lib/cjs/core-react/checklistbox/CheckListBox.d.ts.map +1 -1
- package/lib/cjs/core-react/contextmenu/ContextMenu.d.ts +1 -1
- package/lib/cjs/core-react/contextmenu/ContextMenu.d.ts.map +1 -1
- package/lib/cjs/core-react/contextmenu/ContextMenu.js.map +1 -1
- package/lib/cjs/core-react/contextmenu/ContextMenuDivider.d.ts +1 -1
- package/lib/cjs/core-react/contextmenu/ContextMenuDivider.d.ts.map +1 -1
- package/lib/cjs/core-react/contextmenu/ContextMenuDivider.js.map +1 -1
- package/lib/cjs/core-react/contextmenu/ContextMenuItem.d.ts +1 -1
- package/lib/cjs/core-react/contextmenu/ContextMenuItem.d.ts.map +1 -1
- package/lib/cjs/core-react/contextmenu/ContextMenuItem.js.map +1 -1
- package/lib/cjs/core-react/contextmenu/ContextSubMenu.d.ts +2 -2
- package/lib/cjs/core-react/contextmenu/ContextSubMenu.d.ts.map +1 -1
- package/lib/cjs/core-react/contextmenu/ContextSubMenu.js +3 -1
- package/lib/cjs/core-react/contextmenu/ContextSubMenu.js.map +1 -1
- package/lib/cjs/core-react/contextmenu/PopupContextMenu.d.ts +1 -1
- package/lib/cjs/core-react/contextmenu/PopupContextMenu.d.ts.map +1 -1
- package/lib/cjs/core-react/dialog/Dialog.d.ts +3 -3
- package/lib/cjs/core-react/dialog/Dialog.d.ts.map +1 -1
- package/lib/cjs/core-react/dialog/Dialog.js.map +1 -1
- package/lib/cjs/core-react/elementseparator/ElementSeparator.d.ts +2 -2
- package/lib/cjs/core-react/elementseparator/ElementSeparator.d.ts.map +1 -1
- package/lib/cjs/core-react/expandable/ExpandableBlock.d.ts +2 -2
- package/lib/cjs/core-react/expandable/ExpandableBlock.d.ts.map +1 -1
- package/lib/cjs/core-react/expandable/ExpandableBlock.js.map +1 -1
- package/lib/cjs/core-react/expandable/ExpandableList.d.ts +1 -1
- package/lib/cjs/core-react/expandable/ExpandableList.d.ts.map +1 -1
- package/lib/cjs/core-react/expandable/ExpandableList.js.map +1 -1
- package/lib/cjs/core-react/focustrap/FocusTrap.d.ts +1 -1
- package/lib/cjs/core-react/focustrap/FocusTrap.d.ts.map +1 -1
- package/lib/cjs/core-react/form/Field.d.ts +1 -1
- package/lib/cjs/core-react/form/Form.d.ts +1 -1
- package/lib/cjs/core-react/hocs/withIsPressed.d.ts +2 -2
- package/lib/cjs/core-react/hocs/withOnOutsideClick.d.ts +2 -2
- package/lib/cjs/core-react/hocs/withTimeout.d.ts +2 -2
- package/lib/cjs/core-react/icons/IconComponent.d.ts +1 -1
- package/lib/cjs/core-react/icons/IconComponent.d.ts.map +1 -1
- package/lib/cjs/core-react/icons/SvgPath.d.ts +1 -1
- package/lib/cjs/core-react/icons/SvgSprite.d.ts +1 -1
- package/lib/cjs/core-react/icons/WebFontIcon.d.ts +1 -1
- package/lib/cjs/core-react/icons/WebFontIcon.d.ts.map +1 -1
- package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.d.ts +1 -1
- package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.js +1 -1
- package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.js.map +1 -1
- package/lib/cjs/core-react/inputs/Input.d.ts +1 -1
- package/lib/cjs/core-react/inputs/Input.d.ts.map +1 -1
- package/lib/cjs/core-react/inputs/Input.js.map +1 -1
- package/lib/cjs/core-react/inputs/InputLabel.d.ts +1 -1
- package/lib/cjs/core-react/inputs/InputLabel.d.ts.map +1 -1
- package/lib/cjs/core-react/inputs/InputLabel.js.map +1 -1
- package/lib/cjs/core-react/inputs/LabeledInput.d.ts +2 -2
- package/lib/cjs/core-react/inputs/LabeledInput.d.ts.map +1 -1
- package/lib/cjs/core-react/inputs/LabeledTextarea.d.ts +2 -2
- package/lib/cjs/core-react/inputs/LabeledTextarea.d.ts.map +1 -1
- package/lib/cjs/core-react/inputs/Textarea.d.ts +1 -1
- package/lib/cjs/core-react/inputs/Textarea.d.ts.map +1 -1
- package/lib/cjs/core-react/inputs/Textarea.js.map +1 -1
- package/lib/cjs/core-react/inputs/iconinput/IconInput.d.ts +1 -1
- package/lib/cjs/core-react/inputs/iconinput/IconInput.d.ts.map +1 -1
- package/lib/cjs/core-react/inputs/iconinput/IconInput.js.map +1 -1
- package/lib/cjs/core-react/inputs/numberinput/NumberInput.d.ts +1 -1
- package/lib/cjs/core-react/inputs/numberinput/NumberInput.d.ts.map +1 -1
- package/lib/cjs/core-react/inputs/numberinput/NumberInput.js.map +1 -1
- package/lib/cjs/core-react/listbox/Listbox.d.ts +2 -2
- package/lib/cjs/core-react/listbox/Listbox.d.ts.map +1 -1
- package/lib/cjs/core-react/loading/LoadingBar.d.ts +1 -1
- package/lib/cjs/core-react/loading/LoadingPrompt.d.ts +1 -1
- package/lib/cjs/core-react/loading/LoadingSpinner.d.ts +1 -1
- package/lib/cjs/core-react/loading/LoadingStatus.d.ts +1 -1
- package/lib/cjs/core-react/loading/Spinner.d.ts +1 -1
- package/lib/cjs/core-react/messagebox/MessageBox.d.ts +3 -3
- package/lib/cjs/core-react/messagebox/MessageBox.d.ts.map +1 -1
- package/lib/cjs/core-react/messagebox/MessageBox.js.map +1 -1
- package/lib/cjs/core-react/notification/MessageRenderer.d.ts +2 -2
- package/lib/cjs/core-react/notification/MessageRenderer.d.ts.map +1 -1
- package/lib/cjs/core-react/progress-indicators/ProgressBar.d.ts +2 -2
- package/lib/cjs/core-react/progress-indicators/ProgressBar.d.ts.map +1 -1
- package/lib/cjs/core-react/progress-indicators/ProgressSpinner.d.ts +1 -1
- package/lib/cjs/core-react/progress-indicators/ProgressSpinner.d.ts.map +1 -1
- package/lib/cjs/core-react/radialmenu/RadialMenu.d.ts +2 -2
- package/lib/cjs/core-react/radialmenu/RadialMenu.d.ts.map +1 -1
- package/lib/cjs/core-react/radialmenu/RadialMenu.js.map +1 -1
- package/lib/cjs/core-react/radio/Radio.d.ts +1 -1
- package/lib/cjs/core-react/radio/Radio.d.ts.map +1 -1
- package/lib/cjs/core-react/radio/Radio.js.map +1 -1
- package/lib/cjs/core-react/select/LabeledSelect.d.ts +1 -1
- package/lib/cjs/core-react/select/LabeledSelect.d.ts.map +1 -1
- package/lib/cjs/core-react/select/LabeledSelect.js.map +1 -1
- package/lib/cjs/core-react/select/LabeledThemedSelect.d.ts +2 -2
- package/lib/cjs/core-react/select/LabeledThemedSelect.d.ts.map +1 -1
- package/lib/cjs/core-react/select/Select.d.ts +1 -1
- package/lib/cjs/core-react/select/Select.d.ts.map +1 -1
- package/lib/cjs/core-react/select/Select.js.map +1 -1
- package/lib/cjs/core-react/select/ThemedSelect.d.ts +1 -1
- package/lib/cjs/core-react/select/ThemedSelect.d.ts.map +1 -1
- package/lib/cjs/core-react/settings/SettingsContainer.d.ts +2 -2
- package/lib/cjs/core-react/settings/SettingsContainer.d.ts.map +1 -1
- package/lib/cjs/core-react/settings/SettingsManager.d.ts +3 -3
- package/lib/cjs/core-react/settings/SettingsManager.d.ts.map +1 -1
- package/lib/cjs/core-react/settings/SettingsManager.js.map +1 -1
- package/lib/cjs/core-react/slider/Slider.d.ts +1 -1
- package/lib/cjs/core-react/slider/Slider.d.ts.map +1 -1
- package/lib/cjs/core-react/splitbutton/SplitButton.d.ts +1 -1
- package/lib/cjs/core-react/splitbutton/SplitButton.d.ts.map +1 -1
- package/lib/cjs/core-react/splitbutton/SplitButton.js.map +1 -1
- package/lib/cjs/core-react/tabs/HorizontalTabs.d.ts +2 -2
- package/lib/cjs/core-react/tabs/HorizontalTabs.d.ts.map +1 -1
- package/lib/cjs/core-react/tabs/Tabs.d.ts +4 -4
- package/lib/cjs/core-react/tabs/Tabs.d.ts.map +1 -1
- package/lib/cjs/core-react/tabs/Tabs.js.map +1 -1
- package/lib/cjs/core-react/tabs/VerticalTabs.d.ts +2 -2
- package/lib/cjs/core-react/tabs/VerticalTabs.d.ts.map +1 -1
- package/lib/cjs/core-react/text/BlockText.d.ts +2 -2
- package/lib/cjs/core-react/text/BlockText.d.ts.map +1 -1
- package/lib/cjs/core-react/text/BodyText.d.ts +2 -2
- package/lib/cjs/core-react/text/BodyText.d.ts.map +1 -1
- package/lib/cjs/core-react/text/DisabledText.d.ts +5 -2
- package/lib/cjs/core-react/text/DisabledText.d.ts.map +1 -1
- package/lib/cjs/core-react/text/FilteredText.d.ts +1 -1
- package/lib/cjs/core-react/text/FilteredText.d.ts.map +1 -1
- package/lib/cjs/core-react/text/Headline.d.ts +2 -2
- package/lib/cjs/core-react/text/Headline.d.ts.map +1 -1
- package/lib/cjs/core-react/text/LeadingText.d.ts +2 -2
- package/lib/cjs/core-react/text/LeadingText.d.ts.map +1 -1
- package/lib/cjs/core-react/text/LeadingText2.d.ts +2 -2
- package/lib/cjs/core-react/text/LeadingText2.d.ts.map +1 -1
- package/lib/cjs/core-react/text/MutedText.d.ts +2 -2
- package/lib/cjs/core-react/text/MutedText.d.ts.map +1 -1
- package/lib/cjs/core-react/text/SmallText.d.ts +2 -2
- package/lib/cjs/core-react/text/SmallText.d.ts.map +1 -1
- package/lib/cjs/core-react/text/StyledText.d.ts +2 -2
- package/lib/cjs/core-react/text/StyledText.d.ts.map +1 -1
- package/lib/cjs/core-react/text/Subheading.d.ts +2 -2
- package/lib/cjs/core-react/text/Subheading.d.ts.map +1 -1
- package/lib/cjs/core-react/text/Subheading2.d.ts +2 -2
- package/lib/cjs/core-react/text/Subheading2.d.ts.map +1 -1
- package/lib/cjs/core-react/text/Title.d.ts +2 -2
- package/lib/cjs/core-react/text/Title.d.ts.map +1 -1
- package/lib/cjs/core-react/text/Title2.d.ts +2 -2
- package/lib/cjs/core-react/text/Title2.d.ts.map +1 -1
- package/lib/cjs/core-react/tiles/FeaturedTile.d.ts +2 -2
- package/lib/cjs/core-react/tiles/FeaturedTile.d.ts.map +1 -1
- package/lib/cjs/core-react/tiles/MinimalFeaturedTile.d.ts +2 -2
- package/lib/cjs/core-react/tiles/MinimalFeaturedTile.d.ts.map +1 -1
- package/lib/cjs/core-react/tiles/MinimalTile.d.ts +2 -2
- package/lib/cjs/core-react/tiles/MinimalTile.d.ts.map +1 -1
- package/lib/cjs/core-react/tiles/Tile.d.ts +1 -1
- package/lib/cjs/core-react/tiles/Tile.d.ts.map +1 -1
- package/lib/cjs/core-react/tiles/Tile.js.map +1 -1
- package/lib/cjs/core-react/toggle/LabeledToggle.d.ts +1 -1
- package/lib/cjs/core-react/toggle/LabeledToggle.d.ts.map +1 -1
- package/lib/cjs/core-react/toggle/LabeledToggle.js.map +1 -1
- package/lib/cjs/core-react/toggle/Toggle.d.ts +1 -1
- package/lib/cjs/core-react/toggle/Toggle.d.ts.map +1 -1
- package/lib/cjs/core-react/toggle/Toggle.js +3 -1
- package/lib/cjs/core-react/toggle/Toggle.js.map +1 -1
- package/lib/cjs/core-react/tooltip/Tooltip.d.ts +1 -1
- package/lib/cjs/core-react/tooltip/Tooltip.d.ts.map +1 -1
- package/lib/cjs/core-react/tree/Branch.d.ts +1 -1
- package/lib/cjs/core-react/tree/ExpansionToggle.d.ts +1 -1
- package/lib/cjs/core-react/tree/Node.d.ts +1 -1
- package/lib/cjs/core-react/tree/Placeholder.d.ts +1 -1
- package/lib/cjs/core-react/tree/Tree.d.ts +1 -1
- package/lib/cjs/core-react/utils/hooks/useResizeObserver.d.ts +3 -3
- package/lib/cjs/core-react/utils/hooks/useResizeObserver.d.ts.map +1 -1
- package/lib/cjs/core-react/utils/hooks/useResizeObserver.js.map +1 -1
- package/lib/esm/core-react/autosuggest/AutoSuggest.d.ts +1 -1
- package/lib/esm/core-react/autosuggest/AutoSuggest.d.ts.map +1 -1
- package/lib/esm/core-react/autosuggest/AutoSuggest.js.map +1 -1
- package/lib/esm/core-react/badge/Badge.d.ts +1 -1
- package/lib/esm/core-react/badge/Badge.d.ts.map +1 -1
- package/lib/esm/core-react/badge/Badge.js.map +1 -1
- package/lib/esm/core-react/badge/BetaBadge.d.ts +2 -2
- package/lib/esm/core-react/badge/BetaBadge.d.ts.map +1 -1
- package/lib/esm/core-react/badge/NewBadge.d.ts +2 -2
- package/lib/esm/core-react/badge/NewBadge.d.ts.map +1 -1
- package/lib/esm/core-react/base/Centered.d.ts +2 -2
- package/lib/esm/core-react/base/Centered.d.ts.map +1 -1
- package/lib/esm/core-react/base/Div.d.ts +2 -2
- package/lib/esm/core-react/base/Div.d.ts.map +1 -1
- package/lib/esm/core-react/base/DivWithOutsideClick.d.ts +2 -2
- package/lib/esm/core-react/base/FillCentered.d.ts +2 -2
- package/lib/esm/core-react/base/FillCentered.d.ts.map +1 -1
- package/lib/esm/core-react/base/FlexWrapContainer.d.ts +2 -2
- package/lib/esm/core-react/base/FlexWrapContainer.d.ts.map +1 -1
- package/lib/esm/core-react/base/Gap.d.ts +2 -2
- package/lib/esm/core-react/base/Gap.d.ts.map +1 -1
- package/lib/esm/core-react/base/ScrollView.d.ts +2 -2
- package/lib/esm/core-react/base/ScrollView.d.ts.map +1 -1
- package/lib/esm/core-react/button/Button.d.ts +1 -1
- package/lib/esm/core-react/button/UnderlinedButton.d.ts +1 -1
- package/lib/esm/core-react/button/UnderlinedButton.d.ts.map +1 -1
- package/lib/esm/core-react/checkbox/Checkbox.d.ts +1 -1
- package/lib/esm/core-react/checklistbox/CheckListBox.d.ts +3 -3
- package/lib/esm/core-react/checklistbox/CheckListBox.d.ts.map +1 -1
- package/lib/esm/core-react/contextmenu/ContextMenu.d.ts +1 -1
- package/lib/esm/core-react/contextmenu/ContextMenu.d.ts.map +1 -1
- package/lib/esm/core-react/contextmenu/ContextMenu.js.map +1 -1
- package/lib/esm/core-react/contextmenu/ContextMenuDivider.d.ts +1 -1
- package/lib/esm/core-react/contextmenu/ContextMenuDivider.d.ts.map +1 -1
- package/lib/esm/core-react/contextmenu/ContextMenuDivider.js.map +1 -1
- package/lib/esm/core-react/contextmenu/ContextMenuItem.d.ts +1 -1
- package/lib/esm/core-react/contextmenu/ContextMenuItem.d.ts.map +1 -1
- package/lib/esm/core-react/contextmenu/ContextMenuItem.js.map +1 -1
- package/lib/esm/core-react/contextmenu/ContextSubMenu.d.ts +2 -2
- package/lib/esm/core-react/contextmenu/ContextSubMenu.d.ts.map +1 -1
- package/lib/esm/core-react/contextmenu/ContextSubMenu.js +3 -1
- package/lib/esm/core-react/contextmenu/ContextSubMenu.js.map +1 -1
- package/lib/esm/core-react/contextmenu/PopupContextMenu.d.ts +1 -1
- package/lib/esm/core-react/contextmenu/PopupContextMenu.d.ts.map +1 -1
- package/lib/esm/core-react/dialog/Dialog.d.ts +3 -3
- package/lib/esm/core-react/dialog/Dialog.d.ts.map +1 -1
- package/lib/esm/core-react/dialog/Dialog.js.map +1 -1
- package/lib/esm/core-react/elementseparator/ElementSeparator.d.ts +2 -2
- package/lib/esm/core-react/elementseparator/ElementSeparator.d.ts.map +1 -1
- package/lib/esm/core-react/expandable/ExpandableBlock.d.ts +2 -2
- package/lib/esm/core-react/expandable/ExpandableBlock.d.ts.map +1 -1
- package/lib/esm/core-react/expandable/ExpandableBlock.js.map +1 -1
- package/lib/esm/core-react/expandable/ExpandableList.d.ts +1 -1
- package/lib/esm/core-react/expandable/ExpandableList.d.ts.map +1 -1
- package/lib/esm/core-react/expandable/ExpandableList.js.map +1 -1
- package/lib/esm/core-react/focustrap/FocusTrap.d.ts +1 -1
- package/lib/esm/core-react/focustrap/FocusTrap.d.ts.map +1 -1
- package/lib/esm/core-react/form/Field.d.ts +1 -1
- package/lib/esm/core-react/form/Form.d.ts +1 -1
- package/lib/esm/core-react/hocs/withIsPressed.d.ts +2 -2
- package/lib/esm/core-react/hocs/withOnOutsideClick.d.ts +2 -2
- package/lib/esm/core-react/hocs/withTimeout.d.ts +2 -2
- package/lib/esm/core-react/icons/IconComponent.d.ts +1 -1
- package/lib/esm/core-react/icons/IconComponent.d.ts.map +1 -1
- package/lib/esm/core-react/icons/SvgPath.d.ts +1 -1
- package/lib/esm/core-react/icons/SvgSprite.d.ts +1 -1
- package/lib/esm/core-react/icons/WebFontIcon.d.ts +1 -1
- package/lib/esm/core-react/icons/WebFontIcon.d.ts.map +1 -1
- package/lib/esm/core-react/imagecheckbox/ImageCheckBox.d.ts +1 -1
- package/lib/esm/core-react/imagecheckbox/ImageCheckBox.js +1 -1
- package/lib/esm/core-react/imagecheckbox/ImageCheckBox.js.map +1 -1
- package/lib/esm/core-react/inputs/Input.d.ts +1 -1
- package/lib/esm/core-react/inputs/Input.d.ts.map +1 -1
- package/lib/esm/core-react/inputs/Input.js.map +1 -1
- package/lib/esm/core-react/inputs/InputLabel.d.ts +1 -1
- package/lib/esm/core-react/inputs/InputLabel.d.ts.map +1 -1
- package/lib/esm/core-react/inputs/InputLabel.js.map +1 -1
- package/lib/esm/core-react/inputs/LabeledInput.d.ts +2 -2
- package/lib/esm/core-react/inputs/LabeledInput.d.ts.map +1 -1
- package/lib/esm/core-react/inputs/LabeledTextarea.d.ts +2 -2
- package/lib/esm/core-react/inputs/LabeledTextarea.d.ts.map +1 -1
- package/lib/esm/core-react/inputs/Textarea.d.ts +1 -1
- package/lib/esm/core-react/inputs/Textarea.d.ts.map +1 -1
- package/lib/esm/core-react/inputs/Textarea.js.map +1 -1
- package/lib/esm/core-react/inputs/iconinput/IconInput.d.ts +1 -1
- package/lib/esm/core-react/inputs/iconinput/IconInput.d.ts.map +1 -1
- package/lib/esm/core-react/inputs/iconinput/IconInput.js.map +1 -1
- package/lib/esm/core-react/inputs/numberinput/NumberInput.d.ts +1 -1
- package/lib/esm/core-react/inputs/numberinput/NumberInput.d.ts.map +1 -1
- package/lib/esm/core-react/inputs/numberinput/NumberInput.js.map +1 -1
- package/lib/esm/core-react/listbox/Listbox.d.ts +2 -2
- package/lib/esm/core-react/listbox/Listbox.d.ts.map +1 -1
- package/lib/esm/core-react/loading/LoadingBar.d.ts +1 -1
- package/lib/esm/core-react/loading/LoadingPrompt.d.ts +1 -1
- package/lib/esm/core-react/loading/LoadingSpinner.d.ts +1 -1
- package/lib/esm/core-react/loading/LoadingStatus.d.ts +1 -1
- package/lib/esm/core-react/loading/Spinner.d.ts +1 -1
- package/lib/esm/core-react/messagebox/MessageBox.d.ts +3 -3
- package/lib/esm/core-react/messagebox/MessageBox.d.ts.map +1 -1
- package/lib/esm/core-react/messagebox/MessageBox.js.map +1 -1
- package/lib/esm/core-react/notification/MessageRenderer.d.ts +2 -2
- package/lib/esm/core-react/notification/MessageRenderer.d.ts.map +1 -1
- package/lib/esm/core-react/progress-indicators/ProgressBar.d.ts +2 -2
- package/lib/esm/core-react/progress-indicators/ProgressBar.d.ts.map +1 -1
- package/lib/esm/core-react/progress-indicators/ProgressSpinner.d.ts +1 -1
- package/lib/esm/core-react/progress-indicators/ProgressSpinner.d.ts.map +1 -1
- package/lib/esm/core-react/radialmenu/RadialMenu.d.ts +2 -2
- package/lib/esm/core-react/radialmenu/RadialMenu.d.ts.map +1 -1
- package/lib/esm/core-react/radialmenu/RadialMenu.js.map +1 -1
- package/lib/esm/core-react/radio/Radio.d.ts +1 -1
- package/lib/esm/core-react/radio/Radio.d.ts.map +1 -1
- package/lib/esm/core-react/radio/Radio.js.map +1 -1
- package/lib/esm/core-react/select/LabeledSelect.d.ts +1 -1
- package/lib/esm/core-react/select/LabeledSelect.d.ts.map +1 -1
- package/lib/esm/core-react/select/LabeledSelect.js.map +1 -1
- package/lib/esm/core-react/select/LabeledThemedSelect.d.ts +2 -2
- package/lib/esm/core-react/select/LabeledThemedSelect.d.ts.map +1 -1
- package/lib/esm/core-react/select/Select.d.ts +1 -1
- package/lib/esm/core-react/select/Select.d.ts.map +1 -1
- package/lib/esm/core-react/select/Select.js.map +1 -1
- package/lib/esm/core-react/select/ThemedSelect.d.ts +1 -1
- package/lib/esm/core-react/select/ThemedSelect.d.ts.map +1 -1
- package/lib/esm/core-react/settings/SettingsContainer.d.ts +2 -2
- package/lib/esm/core-react/settings/SettingsContainer.d.ts.map +1 -1
- package/lib/esm/core-react/settings/SettingsManager.d.ts +3 -3
- package/lib/esm/core-react/settings/SettingsManager.d.ts.map +1 -1
- package/lib/esm/core-react/settings/SettingsManager.js.map +1 -1
- package/lib/esm/core-react/slider/Slider.d.ts +1 -1
- package/lib/esm/core-react/slider/Slider.d.ts.map +1 -1
- package/lib/esm/core-react/splitbutton/SplitButton.d.ts +1 -1
- package/lib/esm/core-react/splitbutton/SplitButton.d.ts.map +1 -1
- package/lib/esm/core-react/splitbutton/SplitButton.js.map +1 -1
- package/lib/esm/core-react/tabs/HorizontalTabs.d.ts +2 -2
- package/lib/esm/core-react/tabs/HorizontalTabs.d.ts.map +1 -1
- package/lib/esm/core-react/tabs/Tabs.d.ts +4 -4
- package/lib/esm/core-react/tabs/Tabs.d.ts.map +1 -1
- package/lib/esm/core-react/tabs/Tabs.js.map +1 -1
- package/lib/esm/core-react/tabs/VerticalTabs.d.ts +2 -2
- package/lib/esm/core-react/tabs/VerticalTabs.d.ts.map +1 -1
- package/lib/esm/core-react/text/BlockText.d.ts +2 -2
- package/lib/esm/core-react/text/BlockText.d.ts.map +1 -1
- package/lib/esm/core-react/text/BodyText.d.ts +2 -2
- package/lib/esm/core-react/text/BodyText.d.ts.map +1 -1
- package/lib/esm/core-react/text/DisabledText.d.ts +5 -2
- package/lib/esm/core-react/text/DisabledText.d.ts.map +1 -1
- package/lib/esm/core-react/text/FilteredText.d.ts +1 -1
- package/lib/esm/core-react/text/FilteredText.d.ts.map +1 -1
- package/lib/esm/core-react/text/Headline.d.ts +2 -2
- package/lib/esm/core-react/text/Headline.d.ts.map +1 -1
- package/lib/esm/core-react/text/LeadingText.d.ts +2 -2
- package/lib/esm/core-react/text/LeadingText.d.ts.map +1 -1
- package/lib/esm/core-react/text/LeadingText2.d.ts +2 -2
- package/lib/esm/core-react/text/LeadingText2.d.ts.map +1 -1
- package/lib/esm/core-react/text/MutedText.d.ts +2 -2
- package/lib/esm/core-react/text/MutedText.d.ts.map +1 -1
- package/lib/esm/core-react/text/SmallText.d.ts +2 -2
- package/lib/esm/core-react/text/SmallText.d.ts.map +1 -1
- package/lib/esm/core-react/text/StyledText.d.ts +2 -2
- package/lib/esm/core-react/text/StyledText.d.ts.map +1 -1
- package/lib/esm/core-react/text/Subheading.d.ts +2 -2
- package/lib/esm/core-react/text/Subheading.d.ts.map +1 -1
- package/lib/esm/core-react/text/Subheading2.d.ts +2 -2
- package/lib/esm/core-react/text/Subheading2.d.ts.map +1 -1
- package/lib/esm/core-react/text/Title.d.ts +2 -2
- package/lib/esm/core-react/text/Title.d.ts.map +1 -1
- package/lib/esm/core-react/text/Title2.d.ts +2 -2
- package/lib/esm/core-react/text/Title2.d.ts.map +1 -1
- package/lib/esm/core-react/tiles/FeaturedTile.d.ts +2 -2
- package/lib/esm/core-react/tiles/FeaturedTile.d.ts.map +1 -1
- package/lib/esm/core-react/tiles/MinimalFeaturedTile.d.ts +2 -2
- package/lib/esm/core-react/tiles/MinimalFeaturedTile.d.ts.map +1 -1
- package/lib/esm/core-react/tiles/MinimalTile.d.ts +2 -2
- package/lib/esm/core-react/tiles/MinimalTile.d.ts.map +1 -1
- package/lib/esm/core-react/tiles/Tile.d.ts +1 -1
- package/lib/esm/core-react/tiles/Tile.d.ts.map +1 -1
- package/lib/esm/core-react/tiles/Tile.js.map +1 -1
- package/lib/esm/core-react/toggle/LabeledToggle.d.ts +1 -1
- package/lib/esm/core-react/toggle/LabeledToggle.d.ts.map +1 -1
- package/lib/esm/core-react/toggle/LabeledToggle.js.map +1 -1
- package/lib/esm/core-react/toggle/Toggle.d.ts +1 -1
- package/lib/esm/core-react/toggle/Toggle.d.ts.map +1 -1
- package/lib/esm/core-react/toggle/Toggle.js +3 -1
- package/lib/esm/core-react/toggle/Toggle.js.map +1 -1
- package/lib/esm/core-react/tooltip/Tooltip.d.ts +1 -1
- package/lib/esm/core-react/tooltip/Tooltip.d.ts.map +1 -1
- package/lib/esm/core-react/tree/Branch.d.ts +1 -1
- package/lib/esm/core-react/tree/ExpansionToggle.d.ts +1 -1
- package/lib/esm/core-react/tree/Node.d.ts +1 -1
- package/lib/esm/core-react/tree/Placeholder.d.ts +1 -1
- package/lib/esm/core-react/tree/Tree.d.ts +1 -1
- package/lib/esm/core-react/utils/hooks/useResizeObserver.d.ts +3 -3
- package/lib/esm/core-react/utils/hooks/useResizeObserver.d.ts.map +1 -1
- package/lib/esm/core-react/utils/hooks/useResizeObserver.js.map +1 -1
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SplitButton.js","sourceRoot":"","sources":["../../../../src/core-react/splitbutton/SplitButton.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,8BAA4B;AAC5B,2CAAoC;AACpC,+BAA+B;AAC/B,sEAAmE;AACnE,0DAAwD;AAExD,0DAAqE;AACrE,6CAAsE;AAEtE,kBAAkB;AAClB,gBAAgB;AAChB,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC/B,+EAAW,CAAA;IACX,iEAAI,CAAA;AACN,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC;AAiCD;;;;GAIG;AACH,MAAa,WAAY,SAAQ,KAAK,CAAC,SAA6C;IAQlF,YAAY,KAAuB;QACjC,KAAK,CAAC,KAAK,CAAC,CAAC;QARP,kBAAa,GAAG,KAAK,CAAC,SAAS,EAAkB,CAAC;QAClD,eAAU,GAAG,KAAK,CAAC,SAAS,EAAkB,CAAC;QAC/C,aAAQ,GAAY,KAAK,CAAC;QAElC,gBAAgB;QACS,UAAK,GAA+B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QAmEzE,iBAAY,GAAG,CAAC,KAA0B,EAAE,EAAE;YACpD,IAAI,KAAK,CAAC,GAAG,KAAK,2BAAU,CAAC,KAAK,EAAE;gBAClC,IAAI,CAAC,KAAK,CAAC,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;aAChD;iBAAM,IAAI,KAAK,CAAC,GAAG,KAAK,2BAAU,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE;gBACrE,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;gBACtB,IAAI,C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D,kCAiHC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module SplitButton\r\n */\r\n\r\nimport \"./SplitButton.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { PopupContextMenu } from \"../contextmenu/PopupContextMenu\";\r\nimport { Icon, IconSpec } from \"../icons/IconComponent\";\r\nimport { CommonProps } from \"../utils/Props\";\r\nimport { RelativePosition, SpecialKey } from \"@itwin/appui-abstract\";\r\nimport { ButtonType, getButtonTypeClassName } from \"../button/Button\";\r\n\r\n// TODO: implement\r\n/** @internal */\r\nexport enum SplitButtonActionType {\r\n ContextMenu, // eslint-disable-line @typescript-eslint/no-shadow\r\n List,\r\n}\r\n\r\n/** Properties for [[SplitButton]] component\r\n * @public\r\n * @deprecated in 3.0. Use SplitButtonProps in itwinui-react instead\r\n */\r\nexport interface SplitButtonProps extends CommonProps {\r\n /** Label to display in click area. */\r\n label: string | React.ReactNode;\r\n /** Listens for click events on button area */\r\n onClick?: (event: any) => any;\r\n /** Listens for execute on button area */\r\n onExecute?: () => any;\r\n /** Specifies icon for Splitbutton component */\r\n icon?: IconSpec;\r\n /** Indicates whether to draw a border around the button */\r\n drawBorder?: boolean;\r\n /** ToolTip text */\r\n toolTip?: string;\r\n /** Direction relative to the button to which the popup is expanded (defaults to Bottom) */\r\n popupPosition?: RelativePosition;\r\n /** 4 styles to tweak the content of the button */\r\n buttonType?: ButtonType; // eslint-disable-line deprecation/deprecation\r\n\r\n /** @internal */\r\n initialExpanded?: boolean;\r\n}\r\n\r\n/** @internal */\r\ninterface SplitButtonState {\r\n expanded: boolean;\r\n}\r\n\r\n/**\r\n * SplitButton with an action button on the left and an arrow button that displays a context menu on the right.\r\n * @public\r\n * @deprecated in 3.0. Use SplitButton in itwinui-react instead\r\n */\r\nexport class SplitButton extends React.Component<SplitButtonProps, SplitButtonState> { // eslint-disable-line deprecation/deprecation\r\n private _arrowElement = React.createRef<HTMLDivElement>();\r\n private _buttonRef = React.createRef<HTMLDivElement>();\r\n private _closing: boolean = false;\r\n\r\n /** @internal */\r\n public override readonly state: Readonly<SplitButtonState> = { expanded: false };\r\n\r\n constructor(props: SplitButtonProps) { // eslint-disable-line deprecation/deprecation\r\n super(props);\r\n\r\n this.state = {\r\n expanded: props.initialExpanded !== undefined ? props.initialExpanded : false,\r\n };\r\n }\r\n\r\n public override render(): JSX.Element {\r\n let icon = (<></>);\r\n if (this.props.icon !== undefined) {\r\n icon = (\r\n <Icon iconSpec={this.props.icon} />\r\n );\r\n }\r\n\r\n const borderClassName = (this.props.drawBorder && this.props.buttonType === undefined) ? \"core-split-button-border\" : undefined;\r\n const typeClassName = this.props.buttonType !== undefined ? getButtonTypeClassName(this.props.buttonType) : \"core-split-button-default-colors\";\r\n const classNames = classnames(\r\n \"core-split-button\",\r\n typeClassName,\r\n borderClassName,\r\n this.state.expanded && \"core-expanded\",\r\n this.props.className);\r\n const position = this.props.popupPosition !== undefined ? this.props.popupPosition : RelativePosition.BottomLeft;\r\n\r\n return (\r\n <div data-testid=\"core-split-button-root\" title={this.props.toolTip}\r\n className={classNames}\r\n style={this.props.style}\r\n tabIndex={0}\r\n onKeyUp={this._handleKeyUp}\r\n ref={this._buttonRef}\r\n role=\"button\"\r\n >\r\n {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */}\r\n <div data-testid=\"core-split-button-label\" onClick={this.props.onClick}\r\n className={classnames(\"core-split-button-label\", this.props.drawBorder && \"core-split-button-border\")}\r\n role=\"button\" tabIndex={-1}\r\n >\r\n {icon} {this.props.label}\r\n </div>\r\n <div className={classnames(\"core-split-button-divider\", this.props.drawBorder && \"core-split-button-border\")} />\r\n {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */}\r\n <div className={\"core-split-button-arrow\"} ref={this._arrowElement} onClick={this._handleArrowClick}\r\n role=\"button\" tabIndex={-1}\r\n >\r\n <div className={classnames(\"core-split-button-arrow-icon\", \"icon\", \"icon-chevron-down\")} />\r\n <PopupContextMenu\r\n position={position}\r\n target={this._buttonRef.current}\r\n animate={false}\r\n selectedIndex={0}\r\n onSelect={this._handleClose}\r\n onOutsideClick={this._handleClose}\r\n onEsc={this._handleClose}\r\n isOpen={this.state.expanded}\r\n autoflip={false}>\r\n {this.props.children}\r\n </PopupContextMenu>\r\n </div>\r\n </div>\r\n );\r\n }\r\n\r\n private _handleKeyUp = (event: React.KeyboardEvent) => {\r\n if (event.key === SpecialKey.Enter) {\r\n this.props.onExecute && this.props.onExecute();\r\n } else if (event.key === SpecialKey.ArrowDown && !this.state.expanded) {\r\n this._closing = false;\r\n this._open();\r\n } else {\r\n this._closing = false;\r\n }\r\n };\r\n\r\n private _open = () => {\r\n // istanbul ignore else\r\n if (!this.state.expanded && !this._closing) {\r\n this.setState({ expanded: true });\r\n } else {\r\n this._closing = false;\r\n }\r\n };\r\n\r\n private _handleArrowClick = (event: React.MouseEvent) => {\r\n if (this.state.expanded) {\r\n event.stopPropagation();\r\n this.setState({ expanded: false });\r\n this._closing = false;\r\n } else {\r\n this._open();\r\n }\r\n };\r\n\r\n private _handleClose = (event: any) => {\r\n // istanbul ignore else\r\n if (this._arrowElement.current && this._buttonRef.current) {\r\n // istanbul ignore next\r\n if (this.state.expanded && \"target\" in event && this._arrowElement.current.contains(event.target))\r\n this._closing = true;\r\n this.setState((_prevState) => ({ expanded: false }));\r\n this._buttonRef.current.focus();\r\n }\r\n };\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"SplitButton.js","sourceRoot":"","sources":["../../../../src/core-react/splitbutton/SplitButton.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,8BAA4B;AAC5B,2CAAoC;AACpC,+BAA+B;AAC/B,sEAAmE;AACnE,0DAAwD;AAExD,0DAAqE;AACrE,6CAAsE;AAEtE,kBAAkB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;;gBAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CACpB;YACN,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,2BAA2B,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,IAAI,0BAA0B,CAAC,GAAI;YAEhH,6BAAK,SAAS,EAAE,yBAAyB,EAAE,GAAG,EAAE,IAAI,CAAC,aAAa,EAAE,OAAO,EAAE,IAAI,CAAC,iBAAiB,EACjG,IAAI,EAAC,QAAQ,EAAC,QAAQ,EAAE,CAAC,CAAC;gBAE1B,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,8BAA8B,EAAE,MAAM,EAAE,mBAAmB,CAAC,GAAI;gBAC3F,oBAAC,mCAAgB,IACf,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,OAAO,EAC/B,OAAO,EAAE,KAAK,EACd,aAAa,EAAE,CAAC,EAChB,QAAQ,EAAE,IAAI,CAAC,YAAY,EAC3B,cAAc,EAAE,IAAI,CAAC,YAAY,EACjC,KAAK,EAAE,IAAI,CAAC,YAAY,EACxB,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAC3B,QAAQ,EAAE,KAAK,IACd,IAAI,CAAC,KAAK,CAAC,QAAQ,CACH,CACf,CACF,CACP,CAAC;IACJ,CAAC;CA0CF;AAjHD,kCAiHC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module SplitButton\r\n */\r\n\r\nimport \"./SplitButton.scss\";\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { PopupContextMenu } from \"../contextmenu/PopupContextMenu\";\r\nimport { Icon, IconSpec } from \"../icons/IconComponent\";\r\nimport { CommonProps } from \"../utils/Props\";\r\nimport { RelativePosition, SpecialKey } from \"@itwin/appui-abstract\";\r\nimport { ButtonType, getButtonTypeClassName } from \"../button/Button\";\r\n\r\n// TODO: implement\r\n/** @internal */\r\nexport enum SplitButtonActionType {\r\n ContextMenu, // eslint-disable-line @typescript-eslint/no-shadow\r\n List,\r\n}\r\n\r\n/** Properties for [[SplitButton]] component\r\n * @public\r\n * @deprecated in 3.0. Use SplitButtonProps in itwinui-react instead\r\n */\r\nexport interface SplitButtonProps extends CommonProps {\r\n /** Label to display in click area. */\r\n label: string | React.ReactNode;\r\n /** Listens for click events on button area */\r\n onClick?: (event: any) => any;\r\n /** Listens for execute on button area */\r\n onExecute?: () => any;\r\n /** Specifies icon for Splitbutton component */\r\n icon?: IconSpec;\r\n /** Indicates whether to draw a border around the button */\r\n drawBorder?: boolean;\r\n /** ToolTip text */\r\n toolTip?: string;\r\n /** Direction relative to the button to which the popup is expanded (defaults to Bottom) */\r\n popupPosition?: RelativePosition;\r\n /** 4 styles to tweak the content of the button */\r\n buttonType?: ButtonType; // eslint-disable-line deprecation/deprecation\r\n\r\n /** @internal */\r\n initialExpanded?: boolean;\r\n}\r\n\r\n/** @internal */\r\ninterface SplitButtonState {\r\n expanded: boolean;\r\n}\r\n\r\n/**\r\n * SplitButton with an action button on the left and an arrow button that displays a context menu on the right.\r\n * @public\r\n * @deprecated in 3.0. Use SplitButton in itwinui-react instead\r\n */\r\nexport class SplitButton extends React.Component<SplitButtonProps, SplitButtonState> { // eslint-disable-line deprecation/deprecation\r\n private _arrowElement = React.createRef<HTMLDivElement>();\r\n private _buttonRef = React.createRef<HTMLDivElement>();\r\n private _closing: boolean = false;\r\n\r\n /** @internal */\r\n public override readonly state: Readonly<SplitButtonState> = { expanded: false };\r\n\r\n constructor(props: SplitButtonProps) { // eslint-disable-line deprecation/deprecation\r\n super(props);\r\n\r\n this.state = {\r\n expanded: props.initialExpanded !== undefined ? props.initialExpanded : false,\r\n };\r\n }\r\n\r\n public override render(): React.JSX.Element {\r\n let icon = (<></>);\r\n if (this.props.icon !== undefined) {\r\n icon = (\r\n <Icon iconSpec={this.props.icon} />\r\n );\r\n }\r\n\r\n const borderClassName = (this.props.drawBorder && this.props.buttonType === undefined) ? \"core-split-button-border\" : undefined;\r\n const typeClassName = this.props.buttonType !== undefined ? getButtonTypeClassName(this.props.buttonType) : \"core-split-button-default-colors\";\r\n const classNames = classnames(\r\n \"core-split-button\",\r\n typeClassName,\r\n borderClassName,\r\n this.state.expanded && \"core-expanded\",\r\n this.props.className);\r\n const position = this.props.popupPosition !== undefined ? this.props.popupPosition : RelativePosition.BottomLeft;\r\n\r\n return (\r\n <div data-testid=\"core-split-button-root\" title={this.props.toolTip}\r\n className={classNames}\r\n style={this.props.style}\r\n tabIndex={0}\r\n onKeyUp={this._handleKeyUp}\r\n ref={this._buttonRef}\r\n role=\"button\"\r\n >\r\n {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */}\r\n <div data-testid=\"core-split-button-label\" onClick={this.props.onClick}\r\n className={classnames(\"core-split-button-label\", this.props.drawBorder && \"core-split-button-border\")}\r\n role=\"button\" tabIndex={-1}\r\n >\r\n {icon} {this.props.label}\r\n </div>\r\n <div className={classnames(\"core-split-button-divider\", this.props.drawBorder && \"core-split-button-border\")} />\r\n {/* eslint-disable-next-line jsx-a11y/click-events-have-key-events */}\r\n <div className={\"core-split-button-arrow\"} ref={this._arrowElement} onClick={this._handleArrowClick}\r\n role=\"button\" tabIndex={-1}\r\n >\r\n <div className={classnames(\"core-split-button-arrow-icon\", \"icon\", \"icon-chevron-down\")} />\r\n <PopupContextMenu\r\n position={position}\r\n target={this._buttonRef.current}\r\n animate={false}\r\n selectedIndex={0}\r\n onSelect={this._handleClose}\r\n onOutsideClick={this._handleClose}\r\n onEsc={this._handleClose}\r\n isOpen={this.state.expanded}\r\n autoflip={false}>\r\n {this.props.children}\r\n </PopupContextMenu>\r\n </div>\r\n </div>\r\n );\r\n }\r\n\r\n private _handleKeyUp = (event: React.KeyboardEvent) => {\r\n if (event.key === SpecialKey.Enter) {\r\n this.props.onExecute && this.props.onExecute();\r\n } else if (event.key === SpecialKey.ArrowDown && !this.state.expanded) {\r\n this._closing = false;\r\n this._open();\r\n } else {\r\n this._closing = false;\r\n }\r\n };\r\n\r\n private _open = () => {\r\n // istanbul ignore else\r\n if (!this.state.expanded && !this._closing) {\r\n this.setState({ expanded: true });\r\n } else {\r\n this._closing = false;\r\n }\r\n };\r\n\r\n private _handleArrowClick = (event: React.MouseEvent) => {\r\n if (this.state.expanded) {\r\n event.stopPropagation();\r\n this.setState({ expanded: false });\r\n this._closing = false;\r\n } else {\r\n this._open();\r\n }\r\n };\r\n\r\n private _handleClose = (event: any) => {\r\n // istanbul ignore else\r\n if (this._arrowElement.current && this._buttonRef.current) {\r\n // istanbul ignore next\r\n if (this.state.expanded && \"target\" in event && this._arrowElement.current.contains(event.target))\r\n this._closing = true;\r\n this.setState((_prevState) => ({ expanded: false }));\r\n this._buttonRef.current.focus();\r\n }\r\n };\r\n}\r\n"]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module Tabs
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
import { TabsProps } from "./Tabs";
|
|
6
6
|
/** Horizontal tabs meant to represent the current position in a page/section
|
|
7
7
|
* @public
|
|
8
8
|
* @deprecated in 3.0. Use HorizontalTabs in itwinui-react instead
|
|
9
9
|
*/
|
|
10
|
-
export declare function HorizontalTabs(props: TabsProps): JSX.Element;
|
|
10
|
+
export declare function HorizontalTabs(props: TabsProps): React.JSX.Element;
|
|
11
11
|
//# sourceMappingURL=HorizontalTabs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HorizontalTabs.d.ts","sourceRoot":"","sources":["../../../../src/core-react/tabs/HorizontalTabs.tsx"],"names":[],"mappings":"AAIA;;GAEG
|
|
1
|
+
{"version":3,"file":"HorizontalTabs.d.ts","sourceRoot":"","sources":["../../../../src/core-react/tabs/HorizontalTabs.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAQ,SAAS,EAAE,MAAM,QAAQ,CAAC;AAGzC;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,SAAS,qBAI9C"}
|
|
@@ -11,10 +11,10 @@ import { Orientation } from "../enums/Orientation";
|
|
|
11
11
|
export interface TabLabel {
|
|
12
12
|
label: string;
|
|
13
13
|
subLabel?: string;
|
|
14
|
-
icon?: string | JSX.Element;
|
|
14
|
+
icon?: string | React.JSX.Element;
|
|
15
15
|
tabId: string;
|
|
16
|
-
/** tooltip allows JSX.Element to support styled tooltips like react-tooltip. */
|
|
17
|
-
tooltip?: string | JSX.Element;
|
|
16
|
+
/** tooltip allows React.JSX.Element to support styled tooltips like react-tooltip. */
|
|
17
|
+
tooltip?: string | React.JSX.Element;
|
|
18
18
|
disabled?: boolean;
|
|
19
19
|
}
|
|
20
20
|
/** Properties for the [[HorizontalTabs]] and [[VerticalTabs]] components
|
|
@@ -66,7 +66,7 @@ export declare class Tabs extends React.PureComponent<MainTabsProps, TabsState>
|
|
|
66
66
|
private _handleKeyUpEvent;
|
|
67
67
|
private _activateTab;
|
|
68
68
|
/** @internal */
|
|
69
|
-
render(): JSX.Element;
|
|
69
|
+
render(): React.JSX.Element;
|
|
70
70
|
}
|
|
71
71
|
export {};
|
|
72
72
|
//# sourceMappingURL=Tabs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../../src/core-react/tabs/Tabs.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAInD;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB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C3C,GAAG,KAAK,EAAE,EACvB,IAAI,EAAC,QAAQ;;oBACb,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,0BAA0B,EAAE,QAAQ,IAAI,wBAAwB,CAAC;wBACzF,eAAe,IAAI,8BAAM,SAAS,EAAC,kBAAkB,IAAE,IAAI,CAAQ;wBACpE,6BAAK,SAAS,EAAC,sCAAsC;4BACnD,kCAAO,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAQ;4BAC/D,QAAQ,IAAI,8BAAM,SAAS,EAAC,sBAAsB,IAAE,QAAQ,CAAQ,CACjE,CACF,CACJ,CACD,CAAC;QACR,CAAC,CACA,CACE,CACN,CAAC;IACJ,CAAC;CACF;AAlJD,oBAkJC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Tabs\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"../utils/Props\";\r\nimport { Orientation } from \"../enums/Orientation\";\r\nimport { ItemKeyboardNavigator } from \"../focus/ItemKeyboardNavigator\";\r\nimport { IconHelper } from \"../utils/IconHelper\";\r\n\r\n/** TabLabel provides ability to define label, icon, and tooltip for a tab entry. The tooltip can be defined as JSX|Element\r\n * to support react-tooltip component or a string that will be use to set the title property.\r\n * @public\r\n */\r\nexport interface TabLabel {\r\n label: string;\r\n subLabel?: string;\r\n icon?: string | JSX.Element;\r\n tabId: string; /* optional id added to tab so it can be used by react-tooltip */\r\n /** tooltip allows JSX.Element to support styled tooltips like react-tooltip. */\r\n tooltip?: string | JSX.Element;\r\n disabled?: boolean;\r\n}\r\n\r\nfunction isTabLabelWithIcon(item: string | TabLabel): item is TabLabel {\r\n return (typeof item !== \"string\") && !!(item).icon;\r\n}\r\n\r\nfunction isTabLabel(item: string | TabLabel): item is TabLabel {\r\n return (typeof item !== \"string\");\r\n}\r\n\r\n/** Properties for the [[HorizontalTabs]] and [[VerticalTabs]] components\r\n * @public\r\n */\r\nexport interface TabsProps extends React.AllHTMLAttributes<HTMLUListElement>, CommonProps {\r\n /** Text shown for each tab\r\n * @public */\r\n labels: Array<string | TabLabel>;\r\n /** Handler for activating a tab */\r\n onActivateTab?: (index: number) => any;\r\n /** Index of the initial active tab */\r\n activeIndex?: number;\r\n /** Indicates whether the bar on the active tab is green instead of the default blue */\r\n green?: boolean;\r\n}\r\n\r\n/** State for [[Tabs]] component\r\n * @internal\r\n */\r\ninterface TabsState {\r\n activeIndex: number;\r\n}\r\n\r\n/** Properties for the base [[Tabs]] component\r\n * @public\r\n */\r\nexport interface MainTabsProps extends TabsProps {\r\n /** Main CSS class name */\r\n mainClassName: string;\r\n /** Orientation of the Tabs list */\r\n orientation: Orientation;\r\n}\r\n\r\n/** Tabs meant to represent the current position in a page/section\r\n * @public\r\n */\r\nexport class Tabs extends React.PureComponent<MainTabsProps, TabsState> {\r\n private _anchorRefs: Array<React.RefObject<HTMLAnchorElement>> = [];\r\n private _itemKeyboardNavigator: ItemKeyboardNavigator;\r\n\r\n constructor(props: MainTabsProps) {\r\n super(props);\r\n\r\n const activeIndex = this.validateActiveIndex(props.activeIndex);\r\n this.state = {\r\n activeIndex,\r\n };\r\n\r\n props.labels.forEach(() => this._anchorRefs.push(React.createRef<HTMLAnchorElement>()));\r\n this._itemKeyboardNavigator = new ItemKeyboardNavigator(this._handleFocusItem, this._activateTab);\r\n }\r\n\r\n private validateActiveIndex(idx?: number): number {\r\n let activeIndex = 0;\r\n if (idx && idx >= 0 && idx < this.props.labels.length)\r\n activeIndex = idx;\r\n return activeIndex;\r\n }\r\n\r\n /** @internal */\r\n public override componentDidMount() {\r\n this._itemKeyboardNavigator.itemCount = this.props.labels.length;\r\n this._itemKeyboardNavigator.orientation = this.props.orientation;\r\n }\r\n\r\n /** @internal */\r\n public override componentDidUpdate(prevProps: MainTabsProps) {\r\n if (prevProps.labels !== this.props.labels)\r\n this._itemKeyboardNavigator.itemCount = this.props.labels.length;\r\n\r\n if (prevProps.orientation !== this.props.orientation)\r\n this._itemKeyboardNavigator.orientation = this.props.orientation;\r\n\r\n if (prevProps.activeIndex !== this.props.activeIndex) {\r\n let hadFocus = false;\r\n const element = this._anchorRefs[this.state.activeIndex].current;\r\n // istanbul ignore else\r\n if (element && document.activeElement === element)\r\n hadFocus = true;\r\n const activeIndex = this.validateActiveIndex(this.props.activeIndex);\r\n\r\n this.setState(\r\n () => ({ activeIndex }),\r\n () => {\r\n // istanbul ignore else\r\n if (hadFocus) {\r\n const newElement = this._anchorRefs[activeIndex].current;\r\n // istanbul ignore else\r\n if (newElement)\r\n newElement.focus();\r\n }\r\n });\r\n }\r\n }\r\n\r\n private _handleFocusItem = (index: number) => {\r\n const itemRef = this._anchorRefs[index];\r\n // istanbul ignore else\r\n if (itemRef && itemRef.current)\r\n itemRef.current.focus();\r\n };\r\n\r\n private _handleTabClick = (index: number) => {\r\n this._activateTab(index);\r\n };\r\n\r\n /** Handle keydown on tabs */\r\n private _handleKeyDownEvent(event: React.KeyboardEvent, index: number) {\r\n this._itemKeyboardNavigator.handleKeyDownEvent(event, index);\r\n }\r\n\r\n /** Handle keyup on tabs */\r\n private _handleKeyUpEvent(event: React.KeyboardEvent, index: number) {\r\n this._itemKeyboardNavigator.handleKeyUpEvent(event, index);\r\n }\r\n\r\n private _activateTab = (index: number) => {\r\n this.props.onActivateTab && this.props.onActivateTab(index);\r\n this.setState({ activeIndex: index });\r\n };\r\n\r\n /** @internal */\r\n public override render(): JSX.Element {\r\n const ulClassNames = classnames(\r\n this.props.mainClassName,\r\n this.props.green && \"uicore-tabs-green\",\r\n this.props.className,\r\n );\r\n\r\n const anyIconsPresent = (this.props.labels.reduce((a, b) => a + (isTabLabelWithIcon(b) ? 1 : 0), 0)) > 0;\r\n\r\n return (\r\n <ul className={ulClassNames} style={this.props.style}\r\n role=\"tablist\"\r\n aria-orientation={this.props.orientation === Orientation.Vertical ? \"vertical\" : \"horizontal\"}\r\n >\r\n {this.props.labels.map((label, index) => {\r\n let disabled;\r\n let tooltipElement: JSX.Element | undefined;\r\n let title: string | undefined;\r\n let subLabel: string | undefined;\r\n let tabId = \"\";\r\n let icon;\r\n if (isTabLabel(label)) {\r\n icon = IconHelper.getIconReactNode(label.icon);\r\n subLabel = label.subLabel;\r\n disabled = label.disabled;\r\n tabId = label.tabId;\r\n if (React.isValidElement(label.tooltip))\r\n tooltipElement = label.tooltip;\r\n else if (typeof label.tooltip === \"string\")\r\n title = label.tooltip;\r\n }\r\n return <li key={index} title={title}\r\n className={classnames(index === this.state.activeIndex && \"core-active\", disabled && \"core-tab-item-disabled\")}\r\n role=\"tab\"\r\n aria-selected={index === this.state.activeIndex}\r\n data-for={`${tabId}`} /* to support react-tooltip */\r\n >\r\n {tooltipElement}\r\n {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}\r\n <a ref={this._anchorRefs[index]}\r\n tabIndex={index === this.state.activeIndex ? 0 : -1}\r\n onClick={() => this._handleTabClick(index)}\r\n onKeyDown={(event) => this._handleKeyDownEvent(event, index)}\r\n onKeyUp={(event) => this._handleKeyUpEvent(event, index)}\r\n data-testid={`${tabId}`}\r\n role=\"button\"\r\n > <div className={classnames(\"uicore-tabs-inline-label\", disabled && \"core-tab-item-disabled\")}>\r\n {anyIconsPresent && <span className=\"uicore-tabs-icon\">{icon}</span>}\r\n <div className=\"uicore-tabs-label-subLabel-container\">\r\n <span>{(typeof label === \"string\") ? label : label.label}</span>\r\n {subLabel && <span className=\"uicore-tabs-subLabel\">{subLabel}</span>}\r\n </div>\r\n </div>\r\n </a>\r\n </li>;\r\n }\r\n )}\r\n </ul>\r\n );\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"Tabs.js","sourceRoot":"","sources":["../../../../src/core-react/tabs/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,EAAC,KAAK,mBACK,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC,WAAW,cACrC,GAAG,KAAK,EAAE;gBAEnB,cAAc;gBAEf,2BAAG,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,EAC7B,QAAQ,EAAE,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EACnD,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAC1C,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,mBAAmB,CAAC,KAAK,EAAE,KAAK,CAAC,EAC5D,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,KAAK,CAAC,iBAC3C,GAAG,KAAK,EAAE,EACvB,IAAI,EAAC,QAAQ;;oBACb,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,0BAA0B,EAAE,QAAQ,IAAI,wBAAwB,CAAC;wBACzF,eAAe,IAAI,8BAAM,SAAS,EAAC,kBAAkB,IAAE,IAAI,CAAQ;wBACpE,6BAAK,SAAS,EAAC,sCAAsC;4BACnD,kCAAO,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAQ;4BAC/D,QAAQ,IAAI,8BAAM,SAAS,EAAC,sBAAsB,IAAE,QAAQ,CAAQ,CACjE,CACF,CACJ,CACD,CAAC;QACR,CAAC,CACA,CACE,CACN,CAAC;IACJ,CAAC;CACF;AAlJD,oBAkJC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Tabs\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"../utils/Props\";\r\nimport { Orientation } from \"../enums/Orientation\";\r\nimport { ItemKeyboardNavigator } from \"../focus/ItemKeyboardNavigator\";\r\nimport { IconHelper } from \"../utils/IconHelper\";\r\n\r\n/** TabLabel provides ability to define label, icon, and tooltip for a tab entry. The tooltip can be defined as JSX|Element\r\n * to support react-tooltip component or a string that will be use to set the title property.\r\n * @public\r\n */\r\nexport interface TabLabel {\r\n label: string;\r\n subLabel?: string;\r\n icon?: string | React.JSX.Element;\r\n tabId: string; /* optional id added to tab so it can be used by react-tooltip */\r\n /** tooltip allows React.JSX.Element to support styled tooltips like react-tooltip. */\r\n tooltip?: string | React.JSX.Element;\r\n disabled?: boolean;\r\n}\r\n\r\nfunction isTabLabelWithIcon(item: string | TabLabel): item is TabLabel {\r\n return (typeof item !== \"string\") && !!(item).icon;\r\n}\r\n\r\nfunction isTabLabel(item: string | TabLabel): item is TabLabel {\r\n return (typeof item !== \"string\");\r\n}\r\n\r\n/** Properties for the [[HorizontalTabs]] and [[VerticalTabs]] components\r\n * @public\r\n */\r\nexport interface TabsProps extends React.AllHTMLAttributes<HTMLUListElement>, CommonProps {\r\n /** Text shown for each tab\r\n * @public */\r\n labels: Array<string | TabLabel>;\r\n /** Handler for activating a tab */\r\n onActivateTab?: (index: number) => any;\r\n /** Index of the initial active tab */\r\n activeIndex?: number;\r\n /** Indicates whether the bar on the active tab is green instead of the default blue */\r\n green?: boolean;\r\n}\r\n\r\n/** State for [[Tabs]] component\r\n * @internal\r\n */\r\ninterface TabsState {\r\n activeIndex: number;\r\n}\r\n\r\n/** Properties for the base [[Tabs]] component\r\n * @public\r\n */\r\nexport interface MainTabsProps extends TabsProps {\r\n /** Main CSS class name */\r\n mainClassName: string;\r\n /** Orientation of the Tabs list */\r\n orientation: Orientation;\r\n}\r\n\r\n/** Tabs meant to represent the current position in a page/section\r\n * @public\r\n */\r\nexport class Tabs extends React.PureComponent<MainTabsProps, TabsState> {\r\n private _anchorRefs: Array<React.RefObject<HTMLAnchorElement>> = [];\r\n private _itemKeyboardNavigator: ItemKeyboardNavigator;\r\n\r\n constructor(props: MainTabsProps) {\r\n super(props);\r\n\r\n const activeIndex = this.validateActiveIndex(props.activeIndex);\r\n this.state = {\r\n activeIndex,\r\n };\r\n\r\n props.labels.forEach(() => this._anchorRefs.push(React.createRef<HTMLAnchorElement>()));\r\n this._itemKeyboardNavigator = new ItemKeyboardNavigator(this._handleFocusItem, this._activateTab);\r\n }\r\n\r\n private validateActiveIndex(idx?: number): number {\r\n let activeIndex = 0;\r\n if (idx && idx >= 0 && idx < this.props.labels.length)\r\n activeIndex = idx;\r\n return activeIndex;\r\n }\r\n\r\n /** @internal */\r\n public override componentDidMount() {\r\n this._itemKeyboardNavigator.itemCount = this.props.labels.length;\r\n this._itemKeyboardNavigator.orientation = this.props.orientation;\r\n }\r\n\r\n /** @internal */\r\n public override componentDidUpdate(prevProps: MainTabsProps) {\r\n if (prevProps.labels !== this.props.labels)\r\n this._itemKeyboardNavigator.itemCount = this.props.labels.length;\r\n\r\n if (prevProps.orientation !== this.props.orientation)\r\n this._itemKeyboardNavigator.orientation = this.props.orientation;\r\n\r\n if (prevProps.activeIndex !== this.props.activeIndex) {\r\n let hadFocus = false;\r\n const element = this._anchorRefs[this.state.activeIndex].current;\r\n // istanbul ignore else\r\n if (element && document.activeElement === element)\r\n hadFocus = true;\r\n const activeIndex = this.validateActiveIndex(this.props.activeIndex);\r\n\r\n this.setState(\r\n () => ({ activeIndex }),\r\n () => {\r\n // istanbul ignore else\r\n if (hadFocus) {\r\n const newElement = this._anchorRefs[activeIndex].current;\r\n // istanbul ignore else\r\n if (newElement)\r\n newElement.focus();\r\n }\r\n });\r\n }\r\n }\r\n\r\n private _handleFocusItem = (index: number) => {\r\n const itemRef = this._anchorRefs[index];\r\n // istanbul ignore else\r\n if (itemRef && itemRef.current)\r\n itemRef.current.focus();\r\n };\r\n\r\n private _handleTabClick = (index: number) => {\r\n this._activateTab(index);\r\n };\r\n\r\n /** Handle keydown on tabs */\r\n private _handleKeyDownEvent(event: React.KeyboardEvent, index: number) {\r\n this._itemKeyboardNavigator.handleKeyDownEvent(event, index);\r\n }\r\n\r\n /** Handle keyup on tabs */\r\n private _handleKeyUpEvent(event: React.KeyboardEvent, index: number) {\r\n this._itemKeyboardNavigator.handleKeyUpEvent(event, index);\r\n }\r\n\r\n private _activateTab = (index: number) => {\r\n this.props.onActivateTab && this.props.onActivateTab(index);\r\n this.setState({ activeIndex: index });\r\n };\r\n\r\n /** @internal */\r\n public override render(): React.JSX.Element {\r\n const ulClassNames = classnames(\r\n this.props.mainClassName,\r\n this.props.green && \"uicore-tabs-green\",\r\n this.props.className,\r\n );\r\n\r\n const anyIconsPresent = (this.props.labels.reduce((a, b) => a + (isTabLabelWithIcon(b) ? 1 : 0), 0)) > 0;\r\n\r\n return (\r\n <ul className={ulClassNames} style={this.props.style}\r\n role=\"tablist\"\r\n aria-orientation={this.props.orientation === Orientation.Vertical ? \"vertical\" : \"horizontal\"}\r\n >\r\n {this.props.labels.map((label, index) => {\r\n let disabled;\r\n let tooltipElement: React.JSX.Element | undefined;\r\n let title: string | undefined;\r\n let subLabel: string | undefined;\r\n let tabId = \"\";\r\n let icon;\r\n if (isTabLabel(label)) {\r\n icon = IconHelper.getIconReactNode(label.icon);\r\n subLabel = label.subLabel;\r\n disabled = label.disabled;\r\n tabId = label.tabId;\r\n if (React.isValidElement(label.tooltip))\r\n tooltipElement = label.tooltip;\r\n else if (typeof label.tooltip === \"string\")\r\n title = label.tooltip;\r\n }\r\n return <li key={index} title={title}\r\n className={classnames(index === this.state.activeIndex && \"core-active\", disabled && \"core-tab-item-disabled\")}\r\n role=\"tab\"\r\n aria-selected={index === this.state.activeIndex}\r\n data-for={`${tabId}`} /* to support react-tooltip */\r\n >\r\n {tooltipElement}\r\n {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}\r\n <a ref={this._anchorRefs[index]}\r\n tabIndex={index === this.state.activeIndex ? 0 : -1}\r\n onClick={() => this._handleTabClick(index)}\r\n onKeyDown={(event) => this._handleKeyDownEvent(event, index)}\r\n onKeyUp={(event) => this._handleKeyUpEvent(event, index)}\r\n data-testid={`${tabId}`}\r\n role=\"button\"\r\n > <div className={classnames(\"uicore-tabs-inline-label\", disabled && \"core-tab-item-disabled\")}>\r\n {anyIconsPresent && <span className=\"uicore-tabs-icon\">{icon}</span>}\r\n <div className=\"uicore-tabs-label-subLabel-container\">\r\n <span>{(typeof label === \"string\") ? label : label.label}</span>\r\n {subLabel && <span className=\"uicore-tabs-subLabel\">{subLabel}</span>}\r\n </div>\r\n </div>\r\n </a>\r\n </li>;\r\n }\r\n )}\r\n </ul>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module Tabs
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
import { TabsProps } from "./Tabs";
|
|
6
6
|
/** Vertical tabs meant to represent the current position in a page/section
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
|
-
export declare function VerticalTabs(props: TabsProps): JSX.Element;
|
|
9
|
+
export declare function VerticalTabs(props: TabsProps): React.JSX.Element;
|
|
10
10
|
//# sourceMappingURL=VerticalTabs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerticalTabs.d.ts","sourceRoot":"","sources":["../../../../src/core-react/tabs/VerticalTabs.tsx"],"names":[],"mappings":"AAIA;;GAEG
|
|
1
|
+
{"version":3,"file":"VerticalTabs.d.ts","sourceRoot":"","sources":["../../../../src/core-react/tabs/VerticalTabs.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAQ,SAAS,EAAE,MAAM,QAAQ,CAAC;AAGzC;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,qBAI5C"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module Text
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
import { TextProps } from "./TextProps";
|
|
6
6
|
/** Styled block text React functional component
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
|
-
export declare function BlockText(props: TextProps): JSX.Element;
|
|
9
|
+
export declare function BlockText(props: TextProps): React.JSX.Element;
|
|
10
10
|
//# sourceMappingURL=BlockText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockText.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/BlockText.tsx"],"names":[],"mappings":"AAIA;;GAEG
|
|
1
|
+
{"version":3,"file":"BlockText.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/BlockText.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,qBAEzC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module Text
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
import { TextProps } from "./TextProps";
|
|
6
6
|
/** Styled body text React functional component
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
|
-
export declare function BodyText(props: TextProps): JSX.Element;
|
|
9
|
+
export declare function BodyText(props: TextProps): React.JSX.Element;
|
|
10
10
|
//# sourceMappingURL=BodyText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BodyText.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/BodyText.tsx"],"names":[],"mappings":"AAIA;;GAEG
|
|
1
|
+
{"version":3,"file":"BodyText.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/BodyText.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;GAEG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,SAAS,qBAExC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module Text
|
|
3
|
+
*/
|
|
4
|
+
import * as React from "react";
|
|
2
5
|
import { TextProps } from "./TextProps";
|
|
3
6
|
/** Styled disabled text React functional component
|
|
4
7
|
* @public
|
|
5
8
|
*/
|
|
6
|
-
export declare function DisabledText(props: TextProps): JSX.Element;
|
|
9
|
+
export declare function DisabledText(props: TextProps): React.JSX.Element;
|
|
7
10
|
//# sourceMappingURL=DisabledText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DisabledText.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/DisabledText.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DisabledText.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/DisabledText.tsx"],"names":[],"mappings":"AAIA;;GAEG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,qBAE5C"}
|
|
@@ -21,5 +21,5 @@ export interface FilteredTextProps extends CommonProps {
|
|
|
21
21
|
/** Component used to highlight filter matches within a text string.
|
|
22
22
|
* @alpha
|
|
23
23
|
*/
|
|
24
|
-
export declare function FilteredText(props: FilteredTextProps): JSX.Element;
|
|
24
|
+
export declare function FilteredText(props: FilteredTextProps): React.JSX.Element;
|
|
25
25
|
//# sourceMappingURL=FilteredText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilteredText.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/FilteredText.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAIH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,qBAAqB,CAAC;AAE7B;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IACpD,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,+CAA+C;IAC/C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,0CAA0C;IAC1C,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAClC;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"FilteredText.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/FilteredText.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAIH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,qBAAqB,CAAC;AAE7B;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IACpD,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,+CAA+C;IAC/C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,0CAA0C;IAC1C,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAClC;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,qBAuBpD"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module Text
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
import { TextProps } from "./TextProps";
|
|
6
6
|
/** Styled headline text React functional component
|
|
7
7
|
* @public
|
|
8
8
|
* @deprecated in 3.0. Use Headline in itwinui-react instead
|
|
9
9
|
*/
|
|
10
|
-
export declare function Headline(props: TextProps): JSX.Element;
|
|
10
|
+
export declare function Headline(props: TextProps): React.JSX.Element;
|
|
11
11
|
//# sourceMappingURL=Headline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Headline.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/Headline.tsx"],"names":[],"mappings":"AAIA;;GAEG
|
|
1
|
+
{"version":3,"file":"Headline.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/Headline.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,SAAS,qBAExC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module Text
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
import { TextProps } from "./TextProps";
|
|
6
6
|
/** Styled leading text React functional component
|
|
7
7
|
* @public
|
|
8
8
|
* @deprecated in 3.0. Use Leading in itwinui-react instead
|
|
9
9
|
*/
|
|
10
|
-
export declare function LeadingText(props: TextProps): JSX.Element;
|
|
10
|
+
export declare function LeadingText(props: TextProps): React.JSX.Element;
|
|
11
11
|
//# sourceMappingURL=LeadingText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LeadingText.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/LeadingText.tsx"],"names":[],"mappings":"AAIA;;GAEG
|
|
1
|
+
{"version":3,"file":"LeadingText.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/LeadingText.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,qBAE3C"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module Text
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
import { TextProps } from "./TextProps";
|
|
6
6
|
/** Styled leading text React functional component
|
|
7
7
|
* @public
|
|
8
8
|
* @deprecated in 3.0. Use Leading in itwinui-react instead
|
|
9
9
|
*/
|
|
10
|
-
export declare function LeadingText2(props: TextProps): JSX.Element;
|
|
10
|
+
export declare function LeadingText2(props: TextProps): React.JSX.Element;
|
|
11
11
|
//# sourceMappingURL=LeadingText2.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LeadingText2.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/LeadingText2.tsx"],"names":[],"mappings":"AAIA;;GAEG
|
|
1
|
+
{"version":3,"file":"LeadingText2.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/LeadingText2.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,qBAE5C"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module Text
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
import { TextProps } from "./TextProps";
|
|
6
6
|
/** Styled muted/gray text React functional component
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
|
-
export declare function MutedText(props: TextProps): JSX.Element;
|
|
9
|
+
export declare function MutedText(props: TextProps): React.JSX.Element;
|
|
10
10
|
//# sourceMappingURL=MutedText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MutedText.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/MutedText.tsx"],"names":[],"mappings":"AAIA;;GAEG
|
|
1
|
+
{"version":3,"file":"MutedText.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/MutedText.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,qBAEzC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module Text
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
import { TextProps } from "./TextProps";
|
|
6
6
|
/** Styled small text React functional component
|
|
7
7
|
* @public
|
|
8
8
|
* @deprecated in 3.0. Use Small in itwinui-react instead
|
|
9
9
|
*/
|
|
10
|
-
export declare function SmallText(props: TextProps): JSX.Element;
|
|
10
|
+
export declare function SmallText(props: TextProps): React.JSX.Element;
|
|
11
11
|
//# sourceMappingURL=SmallText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SmallText.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/SmallText.tsx"],"names":[],"mappings":"AAIA;;GAEG
|
|
1
|
+
{"version":3,"file":"SmallText.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/SmallText.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;GAGG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,qBAEzC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module Text
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
import { TextProps } from "./TextProps";
|
|
6
6
|
/** Properties for [[StyledText]] component
|
|
7
7
|
* @public
|
|
@@ -13,5 +13,5 @@ export interface StyledTextProps extends TextProps {
|
|
|
13
13
|
/** The base component for other text components that pass a main CSS class name.
|
|
14
14
|
* @public
|
|
15
15
|
*/
|
|
16
|
-
export declare function StyledText(props: StyledTextProps): JSX.Element;
|
|
16
|
+
export declare function StyledText(props: StyledTextProps): React.JSX.Element;
|
|
17
17
|
//# sourceMappingURL=StyledText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyledText.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/StyledText.tsx"],"names":[],"mappings":"AAIA;;GAEG
|
|
1
|
+
{"version":3,"file":"StyledText.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/StyledText.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,0BAA0B;IAC1B,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,qBAQhD"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module Text
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
import { TextProps } from "./TextProps";
|
|
6
6
|
/** Styled subheading text React functional component
|
|
7
7
|
* @public
|
|
8
8
|
* @deprecated in 3.0. Use Subheading in itwinui-react instead
|
|
9
9
|
*/
|
|
10
|
-
export declare function Subheading(props: TextProps): JSX.Element;
|
|
10
|
+
export declare function Subheading(props: TextProps): React.JSX.Element;
|
|
11
11
|
//# sourceMappingURL=Subheading.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subheading.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/Subheading.tsx"],"names":[],"mappings":"AAIA;;GAEG
|
|
1
|
+
{"version":3,"file":"Subheading.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/Subheading.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,qBAE1C"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module Text
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
import { TextProps } from "./TextProps";
|
|
6
6
|
/** Styled subheading text React functional component
|
|
7
7
|
* @public
|
|
8
8
|
* @deprecated in 3.0. Use Subheading in itwinui-react instead
|
|
9
9
|
*/
|
|
10
|
-
export declare function Subheading2(props: TextProps): JSX.Element;
|
|
10
|
+
export declare function Subheading2(props: TextProps): React.JSX.Element;
|
|
11
11
|
//# sourceMappingURL=Subheading2.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Subheading2.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/Subheading2.tsx"],"names":[],"mappings":"AAIA;;GAEG
|
|
1
|
+
{"version":3,"file":"Subheading2.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/Subheading2.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;IAGI;AACJ,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,qBAE3C"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module Text
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
import { TextProps } from "./TextProps";
|
|
6
6
|
/** Styled title text React functional component
|
|
7
7
|
* @public
|
|
8
8
|
* @deprecated in 3.0. Use Title in itwinui-react instead
|
|
9
9
|
*/
|
|
10
|
-
export declare function Title(props: TextProps): JSX.Element;
|
|
10
|
+
export declare function Title(props: TextProps): React.JSX.Element;
|
|
11
11
|
//# sourceMappingURL=Title.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/Title.tsx"],"names":[],"mappings":"AAIA;;GAEG
|
|
1
|
+
{"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/Title.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;GAGG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,SAAS,qBAErC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module Text
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
import { TextProps } from "./TextProps";
|
|
6
6
|
/** Styled title text React functional component
|
|
7
7
|
* @public
|
|
8
8
|
* @deprecated in 3.0. Use Title in itwinui-react instead
|
|
9
9
|
*/
|
|
10
|
-
export declare function Title2(props: TextProps): JSX.Element;
|
|
10
|
+
export declare function Title2(props: TextProps): React.JSX.Element;
|
|
11
11
|
//# sourceMappingURL=Title2.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Title2.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/Title2.tsx"],"names":[],"mappings":"AAIA;;GAEG
|
|
1
|
+
{"version":3,"file":"Title2.d.ts","sourceRoot":"","sources":["../../../../src/core-react/text/Title2.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;GAGG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,SAAS,qBAEtC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module Tiles
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
import { TileProps } from "./Tile";
|
|
6
6
|
/** Featured [[Tile]] component
|
|
7
7
|
* @beta
|
|
8
8
|
* @deprecated in 3.0. Use Tile in itwinui-react instead
|
|
9
9
|
*/
|
|
10
|
-
export declare function FeaturedTile(props: TileProps): JSX.Element;
|
|
10
|
+
export declare function FeaturedTile(props: TileProps): React.JSX.Element;
|
|
11
11
|
//# sourceMappingURL=FeaturedTile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeaturedTile.d.ts","sourceRoot":"","sources":["../../../../src/core-react/tiles/FeaturedTile.tsx"],"names":[],"mappings":"AAIA;;GAEG
|
|
1
|
+
{"version":3,"file":"FeaturedTile.d.ts","sourceRoot":"","sources":["../../../../src/core-react/tiles/FeaturedTile.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAQ,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEzC;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,SAAS,qBAE5C"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module Tiles
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
import { TileProps } from "./Tile";
|
|
6
6
|
/** Minimal and Featured [[Tile]] component
|
|
7
7
|
* @beta
|
|
8
8
|
* @deprecated in 3.0. Use Tile in itwinui-react instead
|
|
9
9
|
*/
|
|
10
|
-
export declare function MinimalFeaturedTile(props: TileProps): JSX.Element;
|
|
10
|
+
export declare function MinimalFeaturedTile(props: TileProps): React.JSX.Element;
|
|
11
11
|
//# sourceMappingURL=MinimalFeaturedTile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MinimalFeaturedTile.d.ts","sourceRoot":"","sources":["../../../../src/core-react/tiles/MinimalFeaturedTile.tsx"],"names":[],"mappings":"AAIA;;GAEG
|
|
1
|
+
{"version":3,"file":"MinimalFeaturedTile.d.ts","sourceRoot":"","sources":["../../../../src/core-react/tiles/MinimalFeaturedTile.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAQ,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEzC;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,SAAS,qBAEnD"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/** @packageDocumentation
|
|
2
2
|
* @module Tiles
|
|
3
3
|
*/
|
|
4
|
-
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
import { TileProps } from "./Tile";
|
|
6
6
|
/** Minimal [[Tile]] component
|
|
7
7
|
* @beta
|
|
8
8
|
* @deprecated in 3.0. Use Tile in itwinui-react instead
|
|
9
9
|
*/
|
|
10
|
-
export declare function MinimalTile(props: TileProps): JSX.Element;
|
|
10
|
+
export declare function MinimalTile(props: TileProps): React.JSX.Element;
|
|
11
11
|
//# sourceMappingURL=MinimalTile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MinimalTile.d.ts","sourceRoot":"","sources":["../../../../src/core-react/tiles/MinimalTile.tsx"],"names":[],"mappings":"AAIA;;GAEG
|
|
1
|
+
{"version":3,"file":"MinimalTile.d.ts","sourceRoot":"","sources":["../../../../src/core-react/tiles/MinimalTile.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAQ,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEzC;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,qBAE3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../src/core-react/tiles/Tile.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD;;;GAGG;AACH,MAAM,WAAW,SAAU,SAAQ,cAAc;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,GAAG,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,gBAAgB;AAChB,oBAAY,gBAAgB,GAAG,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAE1D;;;GAGG;AACH,qBAAa,IAAK,SAAQ,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC;IAElD,gBAAgB;IAChB,gBAAuB,YAAY,EAAE,gBAAgB,CAEnD;IAEF,gBAAgB;IACA,MAAM,IAAI,GAAG,CAAC,OAAO;
|
|
1
|
+
{"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../src/core-react/tiles/Tile.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD;;;GAGG;AACH,MAAM,WAAW,SAAU,SAAQ,cAAc;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,GAAG,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,gBAAgB;AAChB,oBAAY,gBAAgB,GAAG,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAE1D;;;GAGG;AACH,qBAAa,IAAK,SAAQ,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC;IAElD,gBAAgB;IAChB,gBAAuB,YAAY,EAAE,gBAAgB,CAEnD;IAEF,gBAAgB;IACA,MAAM,IAAI,KAAK,CAAC,GAAG,CAAC,OAAO;CAgC5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../../src/core-react/tiles/Tile.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAC/B,0DAA8C;AAqB9C;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AAC,KAAK,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO;gBACzC,6BAAK,SAAS,EAAC,iBAAiB,IAC7B,IAAI,CAAC,KAAK,CAAC,QAAQ,CAChB,CAEJ,CACP,CAAC;IACJ,CAAC;;AAvCH,oBAwCC;AAtCC,gBAAgB;AACO,iBAAY,GAAqB;IACtD,OAAO,EAAE,CAAC;CACX,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Tiles\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { Icon } from \"../icons/IconComponent\";\r\nimport { CommonDivProps } from \"../utils/Props\";\r\n\r\n/** Properties for the [[Tile]] component\r\n * @beta\r\n * @deprecated in 3.0. Use TileProps in itwinui-react instead\r\n */\r\nexport interface TileProps extends CommonDivProps {\r\n title: string;\r\n icon?: string | React.ReactNode;\r\n featured?: boolean;\r\n minimal?: boolean;\r\n href?: string;\r\n onClick?: (e: any) => any;\r\n stepNum?: number;\r\n stepCount?: number;\r\n}\r\n\r\n/** @internal */\r\nexport type TileDefaultProps = Pick<TileProps, \"stepNum\">; // eslint-disable-line deprecation/deprecation\r\n\r\n/** The Tile React component is a container for rendering elements that can be grouped together.\r\n * @beta\r\n * @deprecated in 3.0. Use Tile in itwinui-react instead\r\n */\r\nexport class Tile extends React.Component<TileProps> { // eslint-disable-line deprecation/deprecation\r\n\r\n /** @internal */\r\n public static readonly defaultProps: TileDefaultProps = {\r\n stepNum: 0,\r\n };\r\n\r\n /** @internal */\r\n public override render(): JSX.Element {\r\n const stepType =\r\n (this.props.stepCount && this.props.stepCount < 13)\r\n ? Math.floor(this.props.stepNum! * 12 / (this.props.stepCount - 1))\r\n : this.props.stepNum! % 16;\r\n const stepClass = `uicore-step-${stepType}`;\r\n\r\n const classNames = classnames(\r\n \"uicore-tiles-tile\",\r\n stepClass,\r\n this.props.featured && \"uicore-featured\",\r\n this.props.minimal && \"uicore-minimal\",\r\n );\r\n\r\n const icon: React.ReactNode = (typeof this.props.icon === \"string\") ? <Icon iconSpec={this.props.icon} /> : this.props.icon;\r\n\r\n return (\r\n <div className={classNames} style={this.props.style}>\r\n <a className=\"uicore-link\" href={this.props.href} onClick={this.props.onClick}>\r\n <div className=\"uicore-icon\">\r\n {icon}\r\n </div>\r\n <p className=\"uicore-title\">{this.props.title}</p>\r\n </a>\r\n {this.props.children && !this.props.minimal &&\r\n <div className=\"uicore-children\">\r\n {this.props.children}\r\n </div>\r\n }\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../../src/core-react/tiles/Tile.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAC/B,0DAA8C;AAqB9C;;;GAGG;AACH,MAAa,IAAK,SAAQ,KAAK,CAAC,SAAoB;IAOlD,gBAAgB;IACA,MAAM;QACpB,MAAM,QAAQ,GACZ,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,EAAE,CAAC;YACjD,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,OAAQ,GAAG,EAAE,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;YACnE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAQ,GAAG,EAAE,CAAC;QAC/B,MAAM,SAAS,GAAG,eAAe,QAAQ,EAAE,CAAC;QAE5C,MAAM,UAAU,GAAG,IAAA,oBAAU,EAC3B,mBAAmB,EACnB,SAAS,EACT,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,iBAAiB,EACxC,IAAI,CAAC,KAAK,CAAC,OAAO,IAAI,gBAAgB,CACvC,CAAC;QAEF,MAAM,IAAI,GAAoB,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,oBAAC,oBAAI,IAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,GAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;QAE5H,OAAO,CACL,6BAAK,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK;YACjD,2BAAG,SAAS,EAAC,aAAa,EAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO;gBAC3E,6BAAK,SAAS,EAAC,aAAa,IACzB,IAAI,CACD;gBACN,2BAAG,SAAS,EAAC,cAAc,IAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAK,CAChD;YACH,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO;gBACzC,6BAAK,SAAS,EAAC,iBAAiB,IAC7B,IAAI,CAAC,KAAK,CAAC,QAAQ,CAChB,CAEJ,CACP,CAAC;IACJ,CAAC;;AAvCH,oBAwCC;AAtCC,gBAAgB;AACO,iBAAY,GAAqB;IACtD,OAAO,EAAE,CAAC;CACX,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Tiles\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { Icon } from \"../icons/IconComponent\";\r\nimport { CommonDivProps } from \"../utils/Props\";\r\n\r\n/** Properties for the [[Tile]] component\r\n * @beta\r\n * @deprecated in 3.0. Use TileProps in itwinui-react instead\r\n */\r\nexport interface TileProps extends CommonDivProps {\r\n title: string;\r\n icon?: string | React.ReactNode;\r\n featured?: boolean;\r\n minimal?: boolean;\r\n href?: string;\r\n onClick?: (e: any) => any;\r\n stepNum?: number;\r\n stepCount?: number;\r\n}\r\n\r\n/** @internal */\r\nexport type TileDefaultProps = Pick<TileProps, \"stepNum\">; // eslint-disable-line deprecation/deprecation\r\n\r\n/** The Tile React component is a container for rendering elements that can be grouped together.\r\n * @beta\r\n * @deprecated in 3.0. Use Tile in itwinui-react instead\r\n */\r\nexport class Tile extends React.Component<TileProps> { // eslint-disable-line deprecation/deprecation\r\n\r\n /** @internal */\r\n public static readonly defaultProps: TileDefaultProps = {\r\n stepNum: 0,\r\n };\r\n\r\n /** @internal */\r\n public override render(): React.JSX.Element {\r\n const stepType =\r\n (this.props.stepCount && this.props.stepCount < 13)\r\n ? Math.floor(this.props.stepNum! * 12 / (this.props.stepCount - 1))\r\n : this.props.stepNum! % 16;\r\n const stepClass = `uicore-step-${stepType}`;\r\n\r\n const classNames = classnames(\r\n \"uicore-tiles-tile\",\r\n stepClass,\r\n this.props.featured && \"uicore-featured\",\r\n this.props.minimal && \"uicore-minimal\",\r\n );\r\n\r\n const icon: React.ReactNode = (typeof this.props.icon === \"string\") ? <Icon iconSpec={this.props.icon} /> : this.props.icon;\r\n\r\n return (\r\n <div className={classNames} style={this.props.style}>\r\n <a className=\"uicore-link\" href={this.props.href} onClick={this.props.onClick}>\r\n <div className=\"uicore-icon\">\r\n {icon}\r\n </div>\r\n <p className=\"uicore-title\">{this.props.title}</p>\r\n </a>\r\n {this.props.children && !this.props.minimal &&\r\n <div className=\"uicore-children\">\r\n {this.props.children}\r\n </div>\r\n }\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -21,6 +21,6 @@ export interface LabeledToggleProps extends ToggleSwitchProps {
|
|
|
21
21
|
* @deprecated in 3.0. Use ToggleSwitch from itwinui-react with `labelPosition="right"` instead
|
|
22
22
|
*/
|
|
23
23
|
export declare class LabeledToggle extends React.PureComponent<LabeledToggleProps> {
|
|
24
|
-
render(): JSX.Element;
|
|
24
|
+
render(): React.JSX.Element;
|
|
25
25
|
}
|
|
26
26
|
//# sourceMappingURL=LabeledToggle.d.ts.map
|