@itwin/core-react 4.17.6 → 5.0.0-dev.3
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 +1 -33
- package/README.md +16 -2
- package/lib/cjs/core-react/_helpers.scss +6 -4
- package/lib/cjs/core-react/_scrollbar.scss +5 -3
- package/lib/cjs/core-react/_typography.scss +4 -4
- package/lib/cjs/core-react/_z-index.scss +9 -5
- package/lib/cjs/core-react/autosuggest/AutoSuggest.scss +4 -4
- package/lib/cjs/core-react/base/base.scss +5 -3
- package/lib/cjs/core-react/base/classes.scss +1 -1
- package/lib/cjs/core-react/base/index.scss +1 -1
- package/lib/cjs/core-react/button/UnderlinedButton.scss +3 -6
- package/lib/cjs/core-react/classes.scss +5 -6
- package/lib/cjs/core-react/contextmenu/ContextMenu.scss +6 -11
- package/lib/cjs/core-react/dialog/Dialog.scss +1 -1
- package/lib/cjs/core-react/elementseparator/ElementSeparator.scss +0 -3
- package/lib/cjs/core-react/icons/IconComponent.scss +1 -1
- package/lib/cjs/core-react/icons/WebFontIcon.scss +0 -2
- package/lib/cjs/core-react/icons/classes.scss +1 -1
- package/lib/cjs/core-react/icons/index.scss +2 -2
- package/lib/cjs/core-react/icons/mixins.scss +11 -9
- package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.scss +2 -5
- package/lib/cjs/core-react/index.scss +12 -14
- package/lib/cjs/core-react/inputs/classes.scss +1 -1
- package/lib/cjs/core-react/inputs/iconinput/IconInput.scss +1 -2
- package/lib/cjs/core-react/inputs/index.scss +4 -4
- package/lib/cjs/core-react/inputs/input-label.scss +16 -10
- package/lib/cjs/core-react/inputs/input.scss +13 -11
- package/lib/cjs/core-react/inputs/numberinput/NumberInput.scss +2 -2
- package/lib/cjs/core-react/inputs/variables.scss +9 -4
- package/lib/cjs/core-react/layout-variables.scss +1 -1
- package/lib/cjs/core-react/listbox/Listbox.scss +1 -1
- package/lib/cjs/core-react/loading/LoadingBar.scss +2 -4
- package/lib/cjs/core-react/loading/LoadingPrompt.scss +0 -4
- package/lib/cjs/core-react/loading/LoadingSpinner.scss +0 -2
- package/lib/cjs/core-react/loading/index.scss +1 -1
- package/lib/cjs/core-react/loading/mixins.scss +3 -3
- package/lib/cjs/core-react/messagebox/MessageBox.scss +2 -3
- package/lib/cjs/core-react/popup/Popup.scss +1 -2
- package/lib/cjs/core-react/radialmenu/RadialMenu.scss +6 -7
- package/lib/cjs/core-react/searchbox/SearchBox.scss +0 -2
- package/lib/cjs/core-react/settings/SettingsContainer.scss +0 -3
- package/lib/cjs/core-react/style/index.scss +6 -6
- package/lib/cjs/core-react/tabs/classes.scss +1 -1
- package/lib/cjs/core-react/tabs/index.scss +1 -1
- package/lib/cjs/core-react/tabs/tabs.scss +10 -7
- package/lib/cjs/core-react/tabs/vertical.scss +5 -3
- package/lib/cjs/core-react/text/FilteredText.scss +1 -3
- package/lib/cjs/core-react/text/classes.scss +1 -1
- package/lib/cjs/core-react/text/disabled.scss +1 -3
- package/lib/cjs/core-react/text/index.scss +5 -5
- package/lib/cjs/core-react/text/mixins.scss +5 -3
- package/lib/cjs/core-react/text/muted.scss +1 -3
- package/lib/core-react/UiCore.d.ts +38 -0
- package/lib/core-react/UiCore.d.ts.map +1 -0
- package/lib/core-react/UiCore.js +69 -0
- package/lib/core-react/UiCore.js.map +1 -0
- package/lib/core-react/_geometry.scss +70 -0
- package/lib/core-react/_helpers.scss +54 -0
- package/lib/core-react/_math.scss +13 -0
- package/lib/core-react/_scrollbar.scss +57 -0
- package/lib/core-react/_typography.scss +44 -0
- package/lib/core-react/_z-index.scss +51 -0
- package/lib/core-react/autosuggest/AutoSuggest.d.ts +99 -0
- package/lib/core-react/autosuggest/AutoSuggest.d.ts.map +1 -0
- package/lib/core-react/autosuggest/AutoSuggest.js +170 -0
- package/lib/core-react/autosuggest/AutoSuggest.js.map +1 -0
- package/lib/core-react/autosuggest/AutoSuggest.scss +79 -0
- package/lib/core-react/badge/Badge.d.ts +17 -0
- package/lib/core-react/badge/Badge.d.ts.map +1 -0
- package/lib/core-react/badge/Badge.js +25 -0
- package/lib/core-react/badge/Badge.js.map +1 -0
- package/lib/core-react/badge/BadgeType.d.ts +19 -0
- package/lib/core-react/badge/BadgeType.d.ts.map +1 -0
- package/lib/core-react/badge/BadgeType.js +14 -0
- package/lib/core-react/badge/BadgeType.js.map +1 -0
- package/lib/core-react/badge/DeprecatedBadge.d.ts.map +1 -0
- package/lib/core-react/badge/DeprecatedBadge.js.map +1 -0
- package/lib/core-react/badge/DeprecatedBadge.scss +11 -0
- package/lib/core-react/badge/NewBadge.d.ts.map +1 -0
- package/lib/core-react/badge/NewBadge.js.map +1 -0
- package/lib/core-react/badge/NewBadge.scss +12 -0
- package/lib/core-react/badge/TechnicalPreviewBadge.d.ts.map +1 -0
- package/lib/core-react/badge/TechnicalPreviewBadge.js.map +1 -0
- package/lib/core-react/badge/TechnicalPreviewBadge.scss +11 -0
- package/lib/core-react/base/Centered.d.ts +12 -0
- package/lib/core-react/base/Centered.d.ts.map +1 -0
- package/lib/core-react/base/Centered.js +20 -0
- package/lib/core-react/base/Centered.js.map +1 -0
- package/lib/core-react/base/Div.d.ts +19 -0
- package/lib/core-react/base/Div.d.ts.map +1 -0
- package/lib/core-react/base/Div.js.map +1 -0
- package/lib/core-react/base/DivWithOutsideClick.d.ts +77 -0
- package/lib/core-react/base/DivWithOutsideClick.d.ts.map +1 -0
- package/lib/core-react/base/DivWithOutsideClick.js +17 -0
- package/lib/core-react/base/DivWithOutsideClick.js.map +1 -0
- package/lib/core-react/base/FillCentered.d.ts +12 -0
- package/lib/core-react/base/FillCentered.d.ts.map +1 -0
- package/lib/core-react/base/FillCentered.js +20 -0
- package/lib/core-react/base/FillCentered.js.map +1 -0
- package/lib/core-react/base/FlexWrapContainer.d.ts +13 -0
- package/lib/core-react/base/FlexWrapContainer.d.ts.map +1 -0
- package/lib/core-react/base/FlexWrapContainer.js +21 -0
- package/lib/core-react/base/FlexWrapContainer.js.map +1 -0
- package/lib/core-react/base/Gap.d.ts +18 -0
- package/lib/core-react/base/Gap.d.ts.map +1 -0
- package/lib/core-react/base/Gap.js.map +1 -0
- package/lib/core-react/base/PointerEvents.d.ts.map +1 -0
- package/lib/core-react/base/PointerEvents.js.map +1 -0
- package/lib/core-react/base/ScrollView.d.ts +13 -0
- package/lib/core-react/base/ScrollView.d.ts.map +1 -0
- package/lib/core-react/base/ScrollView.js +21 -0
- package/lib/core-react/base/ScrollView.js.map +1 -0
- package/lib/core-react/base/base.scss +44 -0
- package/lib/core-react/base/classes.scss +27 -0
- package/lib/core-react/base/index.scss +5 -0
- package/lib/core-react/button/UnderlinedButton.d.ts.map +1 -0
- package/lib/core-react/button/UnderlinedButton.js.map +1 -0
- package/lib/core-react/button/UnderlinedButton.scss +29 -0
- package/lib/core-react/checklistbox/CheckListBox.d.ts +45 -0
- package/lib/core-react/checklistbox/CheckListBox.d.ts.map +1 -0
- package/lib/core-react/checklistbox/CheckListBox.js.map +1 -0
- package/lib/core-react/checklistbox/CheckListBox.scss +22 -0
- package/lib/core-react/classes.scss +9 -0
- package/lib/core-react/colorthemes.scss +12 -0
- package/lib/core-react/colorvariables.scss +139 -0
- package/lib/core-react/contextmenu/ContextMenu.d.ts +91 -0
- package/lib/core-react/contextmenu/ContextMenu.d.ts.map +1 -0
- package/lib/core-react/contextmenu/ContextMenu.js +362 -0
- package/lib/core-react/contextmenu/ContextMenu.js.map +1 -0
- package/lib/core-react/contextmenu/ContextMenu.scss +226 -0
- package/lib/core-react/contextmenu/ContextMenuDirection.d.ts.map +1 -0
- package/lib/core-react/contextmenu/ContextMenuDirection.js.map +1 -0
- package/lib/core-react/contextmenu/ContextMenuDivider.d.ts +13 -0
- package/lib/core-react/contextmenu/ContextMenuDivider.d.ts.map +1 -0
- package/lib/core-react/contextmenu/ContextMenuDivider.js.map +1 -0
- package/lib/core-react/contextmenu/ContextMenuItem.d.ts +65 -0
- package/lib/core-react/contextmenu/ContextMenuItem.d.ts.map +1 -0
- package/lib/core-react/contextmenu/ContextMenuItem.js +107 -0
- package/lib/core-react/contextmenu/ContextMenuItem.js.map +1 -0
- package/lib/core-react/contextmenu/ContextSubMenu.d.ts +51 -0
- package/lib/core-react/contextmenu/ContextSubMenu.d.ts.map +1 -0
- package/lib/core-react/contextmenu/ContextSubMenu.js +173 -0
- package/lib/core-react/contextmenu/ContextSubMenu.js.map +1 -0
- package/lib/core-react/contextmenu/GlobalContextMenu.d.ts +36 -0
- package/lib/core-react/contextmenu/GlobalContextMenu.d.ts.map +1 -0
- package/lib/core-react/contextmenu/GlobalContextMenu.js +59 -0
- package/lib/core-react/contextmenu/GlobalContextMenu.js.map +1 -0
- package/lib/core-react/contextmenu/PopupContextMenu.d.ts +57 -0
- package/lib/core-react/contextmenu/PopupContextMenu.d.ts.map +1 -0
- package/lib/core-react/contextmenu/PopupContextMenu.js +54 -0
- package/lib/core-react/contextmenu/PopupContextMenu.js.map +1 -0
- package/lib/core-react/contextmenu/PopupContextMenu.scss +8 -0
- package/lib/core-react/contextmenu/TildeFinder.d.ts.map +1 -0
- package/lib/core-react/contextmenu/TildeFinder.js.map +1 -0
- package/lib/core-react/dialog/Dialog.d.ts +112 -0
- package/lib/core-react/dialog/Dialog.d.ts.map +1 -0
- package/lib/core-react/dialog/Dialog.js +205 -0
- package/lib/core-react/dialog/Dialog.js.map +1 -0
- package/lib/core-react/dialog/Dialog.scss +57 -0
- package/lib/core-react/dialog/GlobalDialog.d.ts +32 -0
- package/lib/core-react/dialog/GlobalDialog.d.ts.map +1 -0
- package/lib/core-react/dialog/GlobalDialog.js +57 -0
- package/lib/core-react/dialog/GlobalDialog.js.map +1 -0
- package/lib/core-react/elementseparator/ElementSeparator.d.ts +44 -0
- package/lib/core-react/elementseparator/ElementSeparator.d.ts.map +1 -0
- package/lib/core-react/elementseparator/ElementSeparator.js +163 -0
- package/lib/core-react/elementseparator/ElementSeparator.js.map +1 -0
- package/lib/core-react/elementseparator/ElementSeparator.scss +93 -0
- package/lib/core-react/enums/Alignment.d.ts.map +1 -0
- package/lib/core-react/enums/Alignment.js.map +1 -0
- package/lib/core-react/enums/CheckBoxState.d.ts.map +1 -0
- package/lib/core-react/enums/CheckBoxState.js.map +1 -0
- package/lib/core-react/enums/Orientation.d.ts.map +1 -0
- package/lib/core-react/enums/Orientation.js.map +1 -0
- package/lib/core-react/enums/SortDirection.d.ts.map +1 -0
- package/lib/core-react/enums/SortDirection.js.map +1 -0
- package/lib/core-react/enums/TimeFormat.d.ts.map +1 -0
- package/lib/core-react/enums/TimeFormat.js.map +1 -0
- package/lib/core-react/expandable/ExpandableList.d.ts +37 -0
- package/lib/core-react/expandable/ExpandableList.d.ts.map +1 -0
- package/lib/core-react/expandable/ExpandableList.js.map +1 -0
- package/lib/core-react/focus/ItemKeyboardNavigator.d.ts +53 -0
- package/lib/core-react/focus/ItemKeyboardNavigator.d.ts.map +1 -0
- package/lib/core-react/focus/ItemKeyboardNavigator.js +173 -0
- package/lib/core-react/focus/ItemKeyboardNavigator.js.map +1 -0
- package/lib/core-react/focustrap/FocusTrap.d.ts.map +1 -0
- package/lib/core-react/focustrap/FocusTrap.js +196 -0
- package/lib/core-react/focustrap/FocusTrap.js.map +1 -0
- package/lib/core-react/hocs/withIsPressed.d.ts.map +1 -0
- package/lib/core-react/hocs/withIsPressed.js.map +1 -0
- package/lib/core-react/hocs/withOnOutsideClick.d.ts.map +1 -0
- package/lib/core-react/hocs/withOnOutsideClick.js.map +1 -0
- package/lib/core-react/hocs/withTimeout.d.ts +73 -0
- package/lib/core-react/hocs/withTimeout.d.ts.map +1 -0
- package/lib/core-react/hocs/withTimeout.js +44 -0
- package/lib/core-react/hocs/withTimeout.js.map +1 -0
- package/lib/core-react/icons/ConditionalIconItem.d.ts +28 -0
- package/lib/core-react/icons/ConditionalIconItem.d.ts.map +1 -0
- package/lib/core-react/icons/ConditionalIconItem.js.map +1 -0
- package/lib/core-react/icons/IconComponent.d.ts +34 -0
- package/lib/core-react/icons/IconComponent.d.ts.map +1 -0
- package/lib/core-react/icons/IconComponent.js +77 -0
- package/lib/core-react/icons/IconComponent.js.map +1 -0
- package/lib/core-react/icons/IconComponent.scss +19 -0
- package/lib/core-react/icons/SvgPath.d.ts +26 -0
- package/lib/core-react/icons/SvgPath.d.ts.map +1 -0
- package/lib/core-react/icons/SvgPath.js.map +1 -0
- package/lib/core-react/icons/SvgPath.scss +15 -0
- package/lib/core-react/icons/WebFontIcon.d.ts +28 -0
- package/lib/core-react/icons/WebFontIcon.d.ts.map +1 -0
- package/lib/core-react/icons/WebFontIcon.js.map +1 -0
- package/lib/core-react/icons/WebFontIcon.scss +15 -0
- package/lib/core-react/icons/classes.scss +18 -0
- package/lib/core-react/icons/index.scss +6 -0
- package/lib/core-react/icons/mixins.scss +27 -0
- package/lib/core-react/icons/variables.scss +12 -0
- package/lib/core-react/imagecheckbox/ImageCheckBox.d.ts +43 -0
- package/lib/core-react/imagecheckbox/ImageCheckBox.d.ts.map +1 -0
- package/lib/core-react/imagecheckbox/ImageCheckBox.js +49 -0
- package/lib/core-react/imagecheckbox/ImageCheckBox.js.map +1 -0
- package/lib/core-react/imagecheckbox/ImageCheckBox.scss +51 -0
- package/lib/core-react/index.scss +18 -0
- package/lib/core-react/inputs/Input.d.ts +21 -0
- package/lib/core-react/inputs/Input.d.ts.map +1 -0
- package/lib/core-react/inputs/Input.js +42 -0
- package/lib/core-react/inputs/Input.js.map +1 -0
- package/lib/core-react/inputs/InputLabel.d.ts +23 -0
- package/lib/core-react/inputs/InputLabel.d.ts.map +1 -0
- package/lib/core-react/inputs/InputLabel.js +33 -0
- package/lib/core-react/inputs/InputLabel.js.map +1 -0
- package/lib/core-react/inputs/InputStatus.d.ts.map +1 -0
- package/lib/core-react/inputs/InputStatus.js.map +1 -0
- package/lib/core-react/inputs/LabeledComponentProps.d.ts +36 -0
- package/lib/core-react/inputs/LabeledComponentProps.d.ts.map +1 -0
- package/lib/core-react/inputs/LabeledComponentProps.js.map +1 -0
- package/lib/core-react/inputs/classes.scss +12 -0
- package/lib/core-react/inputs/iconinput/IconInput.d.ts +26 -0
- package/lib/core-react/inputs/iconinput/IconInput.d.ts.map +1 -0
- package/lib/core-react/inputs/iconinput/IconInput.js +29 -0
- package/lib/core-react/inputs/iconinput/IconInput.js.map +1 -0
- package/lib/core-react/inputs/iconinput/IconInput.scss +33 -0
- package/lib/core-react/inputs/index.scss +9 -0
- package/lib/core-react/inputs/input-label.scss +95 -0
- package/lib/core-react/inputs/input.scss +56 -0
- package/lib/core-react/inputs/numberinput/NumberInput.d.ts.map +1 -0
- package/lib/core-react/inputs/numberinput/NumberInput.js +160 -0
- package/lib/core-react/inputs/numberinput/NumberInput.js.map +1 -0
- package/lib/core-react/inputs/numberinput/NumberInput.scss +88 -0
- package/lib/core-react/inputs/variables.scss +41 -0
- package/lib/core-react/l10n/LocalizationProvider.d.ts.map +1 -0
- package/lib/core-react/l10n/LocalizationProvider.js.map +1 -0
- package/lib/core-react/l10n/usePackageTranslation.d.ts.map +1 -0
- package/lib/core-react/l10n/usePackageTranslation.js +60 -0
- package/lib/core-react/l10n/usePackageTranslation.js.map +1 -0
- package/lib/core-react/l10n/useTranslation.d.ts.map +1 -0
- package/lib/core-react/l10n/useTranslation.js +26 -0
- package/lib/core-react/l10n/useTranslation.js.map +1 -0
- package/lib/core-react/layout-variables.scss +15 -0
- package/lib/core-react/listbox/Listbox.d.ts.map +1 -0
- package/lib/core-react/listbox/Listbox.js.map +1 -0
- package/lib/core-react/listbox/Listbox.scss +54 -0
- package/lib/core-react/loading/LoadingBar.d.ts +31 -0
- package/lib/core-react/loading/LoadingBar.d.ts.map +1 -0
- package/lib/core-react/loading/LoadingBar.js.map +1 -0
- package/lib/core-react/loading/LoadingBar.scss +27 -0
- package/lib/core-react/loading/LoadingPrompt.d.ts +41 -0
- package/lib/core-react/loading/LoadingPrompt.d.ts.map +1 -0
- package/lib/core-react/loading/LoadingPrompt.js +41 -0
- package/lib/core-react/loading/LoadingPrompt.js.map +1 -0
- package/lib/core-react/loading/LoadingPrompt.scss +29 -0
- package/lib/core-react/loading/LoadingSpinner.d.ts.map +1 -0
- package/lib/core-react/loading/LoadingSpinner.js.map +1 -0
- package/lib/core-react/loading/LoadingSpinner.scss +24 -0
- package/lib/core-react/loading/LoadingStatus.d.ts +26 -0
- package/lib/core-react/loading/LoadingStatus.d.ts.map +1 -0
- package/lib/core-react/loading/LoadingStatus.js.map +1 -0
- package/lib/core-react/loading/LoadingStatus.scss +20 -0
- package/lib/core-react/loading/index.scss +5 -0
- package/lib/core-react/loading/mixins.scss +57 -0
- package/lib/core-react/messagebox/MessageBox.d.ts +90 -0
- package/lib/core-react/messagebox/MessageBox.d.ts.map +1 -0
- package/lib/core-react/messagebox/MessageBox.js +117 -0
- package/lib/core-react/messagebox/MessageBox.js.map +1 -0
- package/lib/core-react/messagebox/MessageBox.scss +52 -0
- package/lib/core-react/notification/MessageRenderer.d.ts +22 -0
- package/lib/core-react/notification/MessageRenderer.d.ts.map +1 -0
- package/lib/core-react/notification/MessageRenderer.js +83 -0
- package/lib/core-react/notification/MessageRenderer.js.map +1 -0
- package/lib/core-react/notification/MessageType.d.ts.map +1 -0
- package/lib/core-react/notification/MessageType.js.map +1 -0
- package/lib/core-react/popup/Popup.d.ts +128 -0
- package/lib/core-react/popup/Popup.d.ts.map +1 -0
- package/lib/core-react/popup/Popup.js +466 -0
- package/lib/core-react/popup/Popup.js.map +1 -0
- package/lib/core-react/popup/Popup.scss +239 -0
- package/lib/core-react/radialmenu/Annulus.d.ts +54 -0
- package/lib/core-react/radialmenu/Annulus.d.ts.map +1 -0
- package/lib/core-react/radialmenu/Annulus.js +75 -0
- package/lib/core-react/radialmenu/Annulus.js.map +1 -0
- package/lib/core-react/radialmenu/RadialMenu.d.ts +96 -0
- package/lib/core-react/radialmenu/RadialMenu.d.ts.map +1 -0
- package/lib/core-react/radialmenu/RadialMenu.js +183 -0
- package/lib/core-react/radialmenu/RadialMenu.js.map +1 -0
- package/lib/core-react/radialmenu/RadialMenu.scss +55 -0
- package/lib/core-react/searchbox/SearchBox.d.ts +51 -0
- package/lib/core-react/searchbox/SearchBox.d.ts.map +1 -0
- package/lib/core-react/searchbox/SearchBox.js +115 -0
- package/lib/core-react/searchbox/SearchBox.js.map +1 -0
- package/lib/core-react/searchbox/SearchBox.scss +45 -0
- package/lib/core-react/settings/SettingsContainer.d.ts +35 -0
- package/lib/core-react/settings/SettingsContainer.d.ts.map +1 -0
- package/lib/core-react/settings/SettingsContainer.js +149 -0
- package/lib/core-react/settings/SettingsContainer.js.map +1 -0
- package/lib/core-react/settings/SettingsContainer.scss +65 -0
- package/lib/core-react/settings/SettingsManager.d.ts.map +1 -0
- package/lib/core-react/settings/SettingsManager.js +112 -0
- package/lib/core-react/settings/SettingsManager.js.map +1 -0
- package/lib/core-react/style/baseline.scss +11 -0
- package/lib/core-react/style/breakpoints.scss +59 -0
- package/lib/core-react/style/colors.scss +77 -0
- package/lib/core-react/style/index.scss +10 -0
- package/lib/core-react/style/mixins.scss +23 -0
- package/lib/core-react/style/opacity.scss +16 -0
- package/lib/core-react/style/themecolors.scss +133 -0
- package/lib/core-react/tabs/Tabs.d.ts +69 -0
- package/lib/core-react/tabs/Tabs.d.ts.map +1 -0
- package/lib/core-react/tabs/Tabs.js +117 -0
- package/lib/core-react/tabs/Tabs.js.map +1 -0
- package/lib/core-react/tabs/VerticalTabs.d.ts +11 -0
- package/lib/core-react/tabs/VerticalTabs.d.ts.map +1 -0
- package/lib/core-react/tabs/VerticalTabs.js +19 -0
- package/lib/core-react/tabs/VerticalTabs.js.map +1 -0
- package/lib/core-react/tabs/classes.scss +9 -0
- package/lib/core-react/tabs/index.scss +5 -0
- package/lib/core-react/tabs/tabs.scss +99 -0
- package/lib/core-react/tabs/vertical.scss +53 -0
- package/lib/core-react/text/BlockText.d.ts +11 -0
- package/lib/core-react/text/BlockText.d.ts.map +1 -0
- package/lib/core-react/text/BlockText.js +19 -0
- package/lib/core-react/text/BlockText.js.map +1 -0
- package/lib/core-react/text/BodyText.d.ts +11 -0
- package/lib/core-react/text/BodyText.d.ts.map +1 -0
- package/lib/core-react/text/BodyText.js +19 -0
- package/lib/core-react/text/BodyText.js.map +1 -0
- package/lib/core-react/text/DisabledText.d.ts +11 -0
- package/lib/core-react/text/DisabledText.d.ts.map +1 -0
- package/lib/core-react/text/DisabledText.js +18 -0
- package/lib/core-react/text/DisabledText.js.map +1 -0
- package/lib/core-react/text/FilteredText.d.ts +27 -0
- package/lib/core-react/text/FilteredText.d.ts.map +1 -0
- package/lib/core-react/text/FilteredText.js.map +1 -0
- package/lib/core-react/text/FilteredText.scss +8 -0
- package/lib/core-react/text/MutedText.d.ts +11 -0
- package/lib/core-react/text/MutedText.d.ts.map +1 -0
- package/lib/core-react/text/MutedText.js +19 -0
- package/lib/core-react/text/MutedText.js.map +1 -0
- package/lib/core-react/text/StyledText.d.ts +19 -0
- package/lib/core-react/text/StyledText.d.ts.map +1 -0
- package/lib/core-react/text/StyledText.js.map +1 -0
- package/lib/core-react/text/TextProps.d.ts +12 -0
- package/lib/core-react/text/TextProps.d.ts.map +1 -0
- package/lib/core-react/text/TextProps.js.map +1 -0
- package/lib/core-react/text/block.scss +15 -0
- package/lib/core-react/text/body.scss +13 -0
- package/lib/core-react/text/classes.scss +18 -0
- package/lib/core-react/text/disabled.scss +7 -0
- package/lib/core-react/text/index.scss +10 -0
- package/lib/core-react/text/mixins.scss +26 -0
- package/lib/core-react/text/muted.scss +7 -0
- package/lib/core-react/tree/Branch.d.ts +22 -0
- package/lib/core-react/tree/Branch.d.ts.map +1 -0
- package/lib/core-react/tree/Branch.js.map +1 -0
- package/lib/core-react/tree/Branch.scss +13 -0
- package/lib/core-react/tree/ExpansionToggle.d.ts +21 -0
- package/lib/core-react/tree/ExpansionToggle.d.ts.map +1 -0
- package/lib/core-react/tree/ExpansionToggle.js +27 -0
- package/lib/core-react/tree/ExpansionToggle.js.map +1 -0
- package/lib/core-react/tree/ExpansionToggle.scss +32 -0
- package/lib/core-react/tree/Node.d.ts +84 -0
- package/lib/core-react/tree/Node.d.ts.map +1 -0
- package/lib/core-react/tree/Node.js +88 -0
- package/lib/core-react/tree/Node.js.map +1 -0
- package/lib/core-react/tree/Node.scss +68 -0
- package/lib/core-react/tree/Placeholder.d.ts +25 -0
- package/lib/core-react/tree/Placeholder.d.ts.map +1 -0
- package/lib/core-react/tree/Placeholder.js +30 -0
- package/lib/core-react/tree/Placeholder.js.map +1 -0
- package/lib/core-react/tree/Placeholder.scss +17 -0
- package/lib/core-react/tree/Tree.d.ts +31 -0
- package/lib/core-react/tree/Tree.d.ts.map +1 -0
- package/lib/core-react/tree/Tree.js +105 -0
- package/lib/core-react/tree/Tree.js.map +1 -0
- package/lib/core-react/tree/Tree.scss +22 -0
- package/lib/core-react/uistate/LocalStateStorage.d.ts +17 -0
- package/lib/core-react/uistate/LocalStateStorage.d.ts.map +1 -0
- package/lib/core-react/uistate/LocalStateStorage.js +48 -0
- package/lib/core-react/uistate/LocalStateStorage.js.map +1 -0
- package/lib/core-react/uistate/UiStateEntry.d.ts +32 -0
- package/lib/core-react/uistate/UiStateEntry.d.ts.map +1 -0
- package/lib/core-react/uistate/UiStateEntry.js +58 -0
- package/lib/core-react/uistate/UiStateEntry.js.map +1 -0
- package/lib/core-react/uistate/UiStateStorage.d.ts.map +1 -0
- package/lib/core-react/uistate/UiStateStorage.js.map +1 -0
- package/lib/core-react/utils/IconHelper.d.ts +27 -0
- package/lib/core-react/utils/IconHelper.d.ts.map +1 -0
- package/lib/core-react/utils/IconHelper.js +82 -0
- package/lib/core-react/utils/IconHelper.js.map +1 -0
- package/lib/core-react/utils/IconWebComponent.d.ts +13 -0
- package/lib/core-react/utils/IconWebComponent.d.ts.map +1 -0
- package/lib/core-react/utils/IconWebComponent.js +112 -0
- package/lib/core-react/utils/IconWebComponent.js.map +1 -0
- package/lib/core-react/utils/ListenerType.d.ts.map +1 -0
- package/lib/core-react/utils/ListenerType.js.map +1 -0
- package/lib/core-react/utils/Point.d.ts +36 -0
- package/lib/core-react/utils/Point.d.ts.map +1 -0
- package/lib/core-react/utils/Point.js +66 -0
- package/lib/core-react/utils/Point.js.map +1 -0
- package/lib/core-react/utils/PointProps.d.ts.map +1 -0
- package/lib/core-react/utils/PointProps.js.map +1 -0
- package/lib/core-react/utils/Props.d.ts.map +1 -0
- package/lib/core-react/utils/Props.js.map +1 -0
- package/lib/core-react/utils/Rectangle.d.ts +146 -0
- package/lib/core-react/utils/Rectangle.d.ts.map +1 -0
- package/lib/core-react/utils/Rectangle.js +276 -0
- package/lib/core-react/utils/Rectangle.js.map +1 -0
- package/lib/core-react/utils/ScrollPositionMaintainer.d.ts.map +1 -0
- package/lib/core-react/utils/ScrollPositionMaintainer.js.map +1 -0
- package/lib/core-react/utils/Size.d.ts +12 -0
- package/lib/core-react/utils/Size.d.ts.map +1 -0
- package/lib/core-react/utils/Size.js +9 -0
- package/lib/core-react/utils/Size.js.map +1 -0
- package/lib/core-react/utils/Timer.d.ts.map +1 -0
- package/lib/core-react/utils/Timer.js.map +1 -0
- package/lib/core-react/utils/flattenChildren.d.ts.map +1 -0
- package/lib/core-react/utils/flattenChildren.js.map +1 -0
- package/lib/core-react/utils/getBestBWContrastColor.d.ts.map +1 -0
- package/lib/core-react/utils/getBestBWContrastColor.js.map +1 -0
- package/lib/core-react/utils/getCssVariable.d.ts.map +1 -0
- package/lib/core-react/utils/getCssVariable.js.map +1 -0
- package/lib/core-react/utils/getDisplayName.d.ts.map +1 -0
- package/lib/core-react/utils/getDisplayName.js.map +1 -0
- package/lib/core-react/utils/getUserColor.d.ts.map +1 -0
- package/lib/core-react/utils/getUserColor.js.map +1 -0
- package/lib/core-react/utils/hooks/useCrossOriginPopup.d.ts.map +1 -0
- package/lib/core-react/utils/hooks/useCrossOriginPopup.js +99 -0
- package/lib/core-react/utils/hooks/useCrossOriginPopup.js.map +1 -0
- package/lib/core-react/utils/hooks/useDisposable.d.ts.map +1 -0
- package/lib/core-react/utils/hooks/useDisposable.js.map +1 -0
- package/lib/core-react/utils/hooks/useEffectSkipFirst.d.ts.map +1 -0
- package/lib/core-react/utils/hooks/useEffectSkipFirst.js.map +1 -0
- package/lib/core-react/utils/hooks/useInterval.d.ts.map +1 -0
- package/lib/core-react/utils/hooks/useInterval.js.map +1 -0
- package/lib/core-react/utils/hooks/useLifecycleLogging.d.ts.map +1 -0
- package/lib/core-react/utils/hooks/useLifecycleLogging.js.map +1 -0
- package/lib/core-react/utils/hooks/useOnOutsideClick.d.ts.map +1 -0
- package/lib/core-react/utils/hooks/useOnOutsideClick.js +99 -0
- package/lib/core-react/utils/hooks/useOnOutsideClick.js.map +1 -0
- package/lib/core-react/utils/hooks/useProximityToMouse.d.ts.map +1 -0
- package/lib/core-react/utils/hooks/useProximityToMouse.js +102 -0
- package/lib/core-react/utils/hooks/useProximityToMouse.js.map +1 -0
- package/lib/core-react/utils/hooks/useRefEffect.d.ts.map +1 -0
- package/lib/core-react/utils/hooks/useRefEffect.js.map +1 -0
- package/lib/core-react/utils/hooks/useRefState.d.ts.map +1 -0
- package/lib/core-react/utils/hooks/useRefState.js.map +1 -0
- package/lib/core-react/utils/hooks/useRefs.d.ts.map +1 -0
- package/lib/core-react/utils/hooks/useRefs.js.map +1 -0
- package/lib/core-react/utils/hooks/useResizeObserver.d.ts.map +1 -0
- package/lib/core-react/utils/hooks/useResizeObserver.js +201 -0
- package/lib/core-react/utils/hooks/useResizeObserver.js.map +1 -0
- package/lib/core-react/utils/hooks/useTargeted.d.ts.map +1 -0
- package/lib/core-react/utils/hooks/useTargeted.js.map +1 -0
- package/lib/core-react/utils/hooks/useThrottledFn.d.ts.map +1 -0
- package/lib/core-react/utils/hooks/useThrottledFn.js.map +1 -0
- package/lib/core-react/utils/hooks/useWidgetOpacityContext.d.ts +25 -0
- package/lib/core-react/utils/hooks/useWidgetOpacityContext.d.ts.map +1 -0
- package/lib/core-react/utils/hooks/useWidgetOpacityContext.js +32 -0
- package/lib/core-react/utils/hooks/useWidgetOpacityContext.js.map +1 -0
- package/lib/core-react/utils/matches.d.ts.map +1 -0
- package/lib/core-react/utils/matches.js.map +1 -0
- package/lib/core-react/utils/reuseOrCreatePromise.d.ts.map +1 -0
- package/lib/core-react/utils/reuseOrCreatePromise.js.map +1 -0
- package/lib/core-react/utils/shallowDiffers.d.ts.map +1 -0
- package/lib/core-react/utils/shallowDiffers.js.map +1 -0
- package/lib/core-react/utils/typeUtils.d.ts.map +1 -0
- package/lib/core-react/utils/typeUtils.js.map +1 -0
- package/lib/core-react.d.ts +218 -0
- package/lib/core-react.d.ts.map +1 -0
- package/lib/core-react.js +218 -0
- package/lib/core-react.js.map +1 -0
- package/lib/esm/core-react/_helpers.scss +6 -4
- package/lib/esm/core-react/_scrollbar.scss +5 -3
- package/lib/esm/core-react/_typography.scss +4 -4
- package/lib/esm/core-react/_z-index.scss +9 -5
- package/lib/esm/core-react/autosuggest/AutoSuggest.scss +4 -4
- package/lib/esm/core-react/base/base.scss +5 -3
- package/lib/esm/core-react/base/classes.scss +1 -1
- package/lib/esm/core-react/base/index.scss +1 -1
- package/lib/esm/core-react/button/UnderlinedButton.scss +3 -6
- package/lib/esm/core-react/classes.scss +5 -6
- package/lib/esm/core-react/contextmenu/ContextMenu.scss +6 -11
- package/lib/esm/core-react/dialog/Dialog.scss +1 -1
- package/lib/esm/core-react/elementseparator/ElementSeparator.scss +0 -3
- package/lib/esm/core-react/icons/IconComponent.scss +1 -1
- package/lib/esm/core-react/icons/WebFontIcon.scss +0 -2
- package/lib/esm/core-react/icons/classes.scss +1 -1
- package/lib/esm/core-react/icons/index.scss +2 -2
- package/lib/esm/core-react/icons/mixins.scss +11 -9
- package/lib/esm/core-react/imagecheckbox/ImageCheckBox.scss +2 -5
- package/lib/esm/core-react/index.scss +12 -14
- package/lib/esm/core-react/inputs/classes.scss +1 -1
- package/lib/esm/core-react/inputs/iconinput/IconInput.scss +1 -2
- package/lib/esm/core-react/inputs/index.scss +4 -4
- package/lib/esm/core-react/inputs/input-label.scss +16 -10
- package/lib/esm/core-react/inputs/input.scss +13 -11
- package/lib/esm/core-react/inputs/numberinput/NumberInput.scss +2 -2
- package/lib/esm/core-react/inputs/variables.scss +9 -4
- package/lib/esm/core-react/layout-variables.scss +1 -1
- package/lib/esm/core-react/listbox/Listbox.scss +1 -1
- package/lib/esm/core-react/loading/LoadingBar.scss +2 -4
- package/lib/esm/core-react/loading/LoadingPrompt.scss +0 -4
- package/lib/esm/core-react/loading/LoadingSpinner.scss +0 -2
- package/lib/esm/core-react/loading/index.scss +1 -1
- package/lib/esm/core-react/loading/mixins.scss +3 -3
- package/lib/esm/core-react/messagebox/MessageBox.scss +2 -3
- package/lib/esm/core-react/popup/Popup.scss +1 -2
- package/lib/esm/core-react/radialmenu/RadialMenu.scss +6 -7
- package/lib/esm/core-react/searchbox/SearchBox.scss +0 -2
- package/lib/esm/core-react/settings/SettingsContainer.scss +0 -3
- package/lib/esm/core-react/style/index.scss +6 -6
- package/lib/esm/core-react/tabs/classes.scss +1 -1
- package/lib/esm/core-react/tabs/index.scss +1 -1
- package/lib/esm/core-react/tabs/tabs.scss +10 -7
- package/lib/esm/core-react/tabs/vertical.scss +5 -3
- package/lib/esm/core-react/text/FilteredText.scss +1 -3
- package/lib/esm/core-react/text/classes.scss +1 -1
- package/lib/esm/core-react/text/disabled.scss +1 -3
- package/lib/esm/core-react/text/index.scss +5 -5
- package/lib/esm/core-react/text/mixins.scss +5 -3
- package/lib/esm/core-react/text/muted.scss +1 -3
- package/lib/internal.d.ts +18 -0
- package/lib/internal.d.ts.map +1 -0
- package/lib/internal.js +20 -0
- package/lib/internal.js.map +1 -0
- package/package.json +39 -35
- package/lib/cjs/core-react/UiCore.d.ts +0 -38
- package/lib/cjs/core-react/UiCore.d.ts.map +0 -1
- package/lib/cjs/core-react/UiCore.js +0 -76
- package/lib/cjs/core-react/UiCore.js.map +0 -1
- package/lib/cjs/core-react/autosuggest/AutoSuggest.d.ts +0 -99
- package/lib/cjs/core-react/autosuggest/AutoSuggest.d.ts.map +0 -1
- package/lib/cjs/core-react/autosuggest/AutoSuggest.js +0 -174
- package/lib/cjs/core-react/autosuggest/AutoSuggest.js.map +0 -1
- package/lib/cjs/core-react/badge/Badge.d.ts +0 -17
- package/lib/cjs/core-react/badge/Badge.d.ts.map +0 -1
- package/lib/cjs/core-react/badge/Badge.js +0 -29
- package/lib/cjs/core-react/badge/Badge.js.map +0 -1
- package/lib/cjs/core-react/badge/BadgeType.d.ts +0 -19
- package/lib/cjs/core-react/badge/BadgeType.d.ts.map +0 -1
- package/lib/cjs/core-react/badge/BadgeType.js +0 -17
- package/lib/cjs/core-react/badge/BadgeType.js.map +0 -1
- package/lib/cjs/core-react/badge/DeprecatedBadge.d.ts.map +0 -1
- package/lib/cjs/core-react/badge/DeprecatedBadge.js +0 -29
- package/lib/cjs/core-react/badge/DeprecatedBadge.js.map +0 -1
- package/lib/cjs/core-react/badge/NewBadge.d.ts.map +0 -1
- package/lib/cjs/core-react/badge/NewBadge.js +0 -23
- package/lib/cjs/core-react/badge/NewBadge.js.map +0 -1
- package/lib/cjs/core-react/badge/TechnicalPreviewBadge.d.ts.map +0 -1
- package/lib/cjs/core-react/badge/TechnicalPreviewBadge.js +0 -29
- package/lib/cjs/core-react/badge/TechnicalPreviewBadge.js.map +0 -1
- package/lib/cjs/core-react/base/Centered.d.ts +0 -12
- package/lib/cjs/core-react/base/Centered.d.ts.map +0 -1
- package/lib/cjs/core-react/base/Centered.js +0 -24
- package/lib/cjs/core-react/base/Centered.js.map +0 -1
- package/lib/cjs/core-react/base/Div.d.ts +0 -19
- package/lib/cjs/core-react/base/Div.d.ts.map +0 -1
- package/lib/cjs/core-react/base/Div.js +0 -23
- package/lib/cjs/core-react/base/Div.js.map +0 -1
- package/lib/cjs/core-react/base/DivWithOutsideClick.d.ts +0 -77
- package/lib/cjs/core-react/base/DivWithOutsideClick.d.ts.map +0 -1
- package/lib/cjs/core-react/base/DivWithOutsideClick.js +0 -20
- package/lib/cjs/core-react/base/DivWithOutsideClick.js.map +0 -1
- package/lib/cjs/core-react/base/FillCentered.d.ts +0 -12
- package/lib/cjs/core-react/base/FillCentered.d.ts.map +0 -1
- package/lib/cjs/core-react/base/FillCentered.js +0 -24
- package/lib/cjs/core-react/base/FillCentered.js.map +0 -1
- package/lib/cjs/core-react/base/FlexWrapContainer.d.ts +0 -13
- package/lib/cjs/core-react/base/FlexWrapContainer.d.ts.map +0 -1
- package/lib/cjs/core-react/base/FlexWrapContainer.js +0 -25
- package/lib/cjs/core-react/base/FlexWrapContainer.js.map +0 -1
- package/lib/cjs/core-react/base/Gap.d.ts +0 -18
- package/lib/cjs/core-react/base/Gap.d.ts.map +0 -1
- package/lib/cjs/core-react/base/Gap.js +0 -23
- package/lib/cjs/core-react/base/Gap.js.map +0 -1
- package/lib/cjs/core-react/base/PointerEvents.d.ts.map +0 -1
- package/lib/cjs/core-react/base/PointerEvents.js +0 -18
- package/lib/cjs/core-react/base/PointerEvents.js.map +0 -1
- package/lib/cjs/core-react/base/ScrollView.d.ts +0 -13
- package/lib/cjs/core-react/base/ScrollView.d.ts.map +0 -1
- package/lib/cjs/core-react/base/ScrollView.js +0 -25
- package/lib/cjs/core-react/base/ScrollView.js.map +0 -1
- package/lib/cjs/core-react/button/UnderlinedButton.d.ts.map +0 -1
- package/lib/cjs/core-react/button/UnderlinedButton.js +0 -38
- package/lib/cjs/core-react/button/UnderlinedButton.js.map +0 -1
- package/lib/cjs/core-react/checklistbox/CheckListBox.d.ts +0 -45
- package/lib/cjs/core-react/checklistbox/CheckListBox.d.ts.map +0 -1
- package/lib/cjs/core-react/checklistbox/CheckListBox.js +0 -50
- package/lib/cjs/core-react/checklistbox/CheckListBox.js.map +0 -1
- package/lib/cjs/core-react/contextmenu/ContextMenu.d.ts +0 -91
- package/lib/cjs/core-react/contextmenu/ContextMenu.d.ts.map +0 -1
- package/lib/cjs/core-react/contextmenu/ContextMenu.js +0 -366
- package/lib/cjs/core-react/contextmenu/ContextMenu.js.map +0 -1
- package/lib/cjs/core-react/contextmenu/ContextMenuDirection.d.ts.map +0 -1
- package/lib/cjs/core-react/contextmenu/ContextMenuDirection.js +0 -21
- package/lib/cjs/core-react/contextmenu/ContextMenuDirection.js.map +0 -1
- package/lib/cjs/core-react/contextmenu/ContextMenuDivider.d.ts +0 -13
- package/lib/cjs/core-react/contextmenu/ContextMenuDivider.d.ts.map +0 -1
- package/lib/cjs/core-react/contextmenu/ContextMenuDivider.js +0 -25
- package/lib/cjs/core-react/contextmenu/ContextMenuDivider.js.map +0 -1
- package/lib/cjs/core-react/contextmenu/ContextMenuItem.d.ts +0 -65
- package/lib/cjs/core-react/contextmenu/ContextMenuItem.d.ts.map +0 -1
- package/lib/cjs/core-react/contextmenu/ContextMenuItem.js +0 -111
- package/lib/cjs/core-react/contextmenu/ContextMenuItem.js.map +0 -1
- package/lib/cjs/core-react/contextmenu/ContextSubMenu.d.ts +0 -51
- package/lib/cjs/core-react/contextmenu/ContextSubMenu.d.ts.map +0 -1
- package/lib/cjs/core-react/contextmenu/ContextSubMenu.js +0 -177
- package/lib/cjs/core-react/contextmenu/ContextSubMenu.js.map +0 -1
- package/lib/cjs/core-react/contextmenu/GlobalContextMenu.d.ts +0 -36
- package/lib/cjs/core-react/contextmenu/GlobalContextMenu.d.ts.map +0 -1
- package/lib/cjs/core-react/contextmenu/GlobalContextMenu.js +0 -63
- package/lib/cjs/core-react/contextmenu/GlobalContextMenu.js.map +0 -1
- package/lib/cjs/core-react/contextmenu/PopupContextMenu.d.ts +0 -57
- package/lib/cjs/core-react/contextmenu/PopupContextMenu.d.ts.map +0 -1
- package/lib/cjs/core-react/contextmenu/PopupContextMenu.js +0 -58
- package/lib/cjs/core-react/contextmenu/PopupContextMenu.js.map +0 -1
- package/lib/cjs/core-react/contextmenu/TildeFinder.d.ts.map +0 -1
- package/lib/cjs/core-react/contextmenu/TildeFinder.js +0 -79
- package/lib/cjs/core-react/contextmenu/TildeFinder.js.map +0 -1
- package/lib/cjs/core-react/dialog/Dialog.d.ts +0 -112
- package/lib/cjs/core-react/dialog/Dialog.d.ts.map +0 -1
- package/lib/cjs/core-react/dialog/Dialog.js +0 -209
- package/lib/cjs/core-react/dialog/Dialog.js.map +0 -1
- package/lib/cjs/core-react/dialog/GlobalDialog.d.ts +0 -32
- package/lib/cjs/core-react/dialog/GlobalDialog.d.ts.map +0 -1
- package/lib/cjs/core-react/dialog/GlobalDialog.js +0 -61
- package/lib/cjs/core-react/dialog/GlobalDialog.js.map +0 -1
- package/lib/cjs/core-react/elementseparator/ElementSeparator.d.ts +0 -44
- package/lib/cjs/core-react/elementseparator/ElementSeparator.d.ts.map +0 -1
- package/lib/cjs/core-react/elementseparator/ElementSeparator.js +0 -167
- package/lib/cjs/core-react/elementseparator/ElementSeparator.js.map +0 -1
- package/lib/cjs/core-react/enums/Alignment.d.ts.map +0 -1
- package/lib/cjs/core-react/enums/Alignment.js +0 -34
- package/lib/cjs/core-react/enums/Alignment.js.map +0 -1
- package/lib/cjs/core-react/enums/CheckBoxState.d.ts.map +0 -1
- package/lib/cjs/core-react/enums/CheckBoxState.js +0 -21
- package/lib/cjs/core-react/enums/CheckBoxState.js.map +0 -1
- package/lib/cjs/core-react/enums/Orientation.d.ts.map +0 -1
- package/lib/cjs/core-react/enums/Orientation.js +0 -21
- package/lib/cjs/core-react/enums/Orientation.js.map +0 -1
- package/lib/cjs/core-react/enums/SortDirection.d.ts.map +0 -1
- package/lib/cjs/core-react/enums/SortDirection.js +0 -22
- package/lib/cjs/core-react/enums/SortDirection.js.map +0 -1
- package/lib/cjs/core-react/enums/TimeFormat.d.ts.map +0 -1
- package/lib/cjs/core-react/enums/TimeFormat.js +0 -24
- package/lib/cjs/core-react/enums/TimeFormat.js.map +0 -1
- package/lib/cjs/core-react/expandable/ExpandableList.d.ts +0 -37
- package/lib/cjs/core-react/expandable/ExpandableList.d.ts.map +0 -1
- package/lib/cjs/core-react/expandable/ExpandableList.js +0 -62
- package/lib/cjs/core-react/expandable/ExpandableList.js.map +0 -1
- package/lib/cjs/core-react/focus/ItemKeyboardNavigator.d.ts +0 -53
- package/lib/cjs/core-react/focus/ItemKeyboardNavigator.d.ts.map +0 -1
- package/lib/cjs/core-react/focus/ItemKeyboardNavigator.js +0 -178
- package/lib/cjs/core-react/focus/ItemKeyboardNavigator.js.map +0 -1
- package/lib/cjs/core-react/focustrap/FocusTrap.d.ts.map +0 -1
- package/lib/cjs/core-react/focustrap/FocusTrap.js +0 -201
- package/lib/cjs/core-react/focustrap/FocusTrap.js.map +0 -1
- package/lib/cjs/core-react/hocs/withIsPressed.d.ts.map +0 -1
- package/lib/cjs/core-react/hocs/withIsPressed.js +0 -45
- package/lib/cjs/core-react/hocs/withIsPressed.js.map +0 -1
- package/lib/cjs/core-react/hocs/withOnOutsideClick.d.ts.map +0 -1
- package/lib/cjs/core-react/hocs/withOnOutsideClick.js +0 -114
- package/lib/cjs/core-react/hocs/withOnOutsideClick.js.map +0 -1
- package/lib/cjs/core-react/hocs/withTimeout.d.ts +0 -73
- package/lib/cjs/core-react/hocs/withTimeout.d.ts.map +0 -1
- package/lib/cjs/core-react/hocs/withTimeout.js +0 -48
- package/lib/cjs/core-react/hocs/withTimeout.js.map +0 -1
- package/lib/cjs/core-react/icons/ConditionalIconItem.d.ts +0 -28
- package/lib/cjs/core-react/icons/ConditionalIconItem.d.ts.map +0 -1
- package/lib/cjs/core-react/icons/ConditionalIconItem.js +0 -65
- package/lib/cjs/core-react/icons/ConditionalIconItem.js.map +0 -1
- package/lib/cjs/core-react/icons/IconComponent.d.ts +0 -34
- package/lib/cjs/core-react/icons/IconComponent.d.ts.map +0 -1
- package/lib/cjs/core-react/icons/IconComponent.js +0 -81
- package/lib/cjs/core-react/icons/IconComponent.js.map +0 -1
- package/lib/cjs/core-react/icons/SvgPath.d.ts +0 -26
- package/lib/cjs/core-react/icons/SvgPath.d.ts.map +0 -1
- package/lib/cjs/core-react/icons/SvgPath.js +0 -30
- package/lib/cjs/core-react/icons/SvgPath.js.map +0 -1
- package/lib/cjs/core-react/icons/WebFontIcon.d.ts +0 -28
- package/lib/cjs/core-react/icons/WebFontIcon.d.ts.map +0 -1
- package/lib/cjs/core-react/icons/WebFontIcon.js +0 -24
- package/lib/cjs/core-react/icons/WebFontIcon.js.map +0 -1
- package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.d.ts +0 -43
- package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.d.ts.map +0 -1
- package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.js +0 -53
- package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.js.map +0 -1
- package/lib/cjs/core-react/inputs/Input.d.ts +0 -21
- package/lib/cjs/core-react/inputs/Input.d.ts.map +0 -1
- package/lib/cjs/core-react/inputs/Input.js +0 -45
- package/lib/cjs/core-react/inputs/Input.js.map +0 -1
- package/lib/cjs/core-react/inputs/InputLabel.d.ts +0 -23
- package/lib/cjs/core-react/inputs/InputLabel.d.ts.map +0 -1
- package/lib/cjs/core-react/inputs/InputLabel.js +0 -37
- package/lib/cjs/core-react/inputs/InputLabel.js.map +0 -1
- package/lib/cjs/core-react/inputs/InputStatus.d.ts.map +0 -1
- package/lib/cjs/core-react/inputs/InputStatus.js +0 -21
- package/lib/cjs/core-react/inputs/InputStatus.js.map +0 -1
- package/lib/cjs/core-react/inputs/LabeledComponentProps.d.ts +0 -36
- package/lib/cjs/core-react/inputs/LabeledComponentProps.d.ts.map +0 -1
- package/lib/cjs/core-react/inputs/LabeledComponentProps.js +0 -10
- package/lib/cjs/core-react/inputs/LabeledComponentProps.js.map +0 -1
- package/lib/cjs/core-react/inputs/iconinput/IconInput.d.ts +0 -26
- package/lib/cjs/core-react/inputs/iconinput/IconInput.d.ts.map +0 -1
- package/lib/cjs/core-react/inputs/iconinput/IconInput.js +0 -32
- package/lib/cjs/core-react/inputs/iconinput/IconInput.js.map +0 -1
- package/lib/cjs/core-react/inputs/numberinput/NumberInput.d.ts.map +0 -1
- package/lib/cjs/core-react/inputs/numberinput/NumberInput.js +0 -163
- package/lib/cjs/core-react/inputs/numberinput/NumberInput.js.map +0 -1
- package/lib/cjs/core-react/l10n/LocalizationProvider.d.ts.map +0 -1
- package/lib/cjs/core-react/l10n/LocalizationProvider.js +0 -30
- package/lib/cjs/core-react/l10n/LocalizationProvider.js.map +0 -1
- package/lib/cjs/core-react/l10n/usePackageTranslation.d.ts.map +0 -1
- package/lib/cjs/core-react/l10n/usePackageTranslation.js +0 -64
- package/lib/cjs/core-react/l10n/usePackageTranslation.js.map +0 -1
- package/lib/cjs/core-react/l10n/useTranslation.d.ts.map +0 -1
- package/lib/cjs/core-react/l10n/useTranslation.js +0 -30
- package/lib/cjs/core-react/l10n/useTranslation.js.map +0 -1
- package/lib/cjs/core-react/listbox/Listbox.d.ts.map +0 -1
- package/lib/cjs/core-react/listbox/Listbox.js +0 -220
- package/lib/cjs/core-react/listbox/Listbox.js.map +0 -1
- package/lib/cjs/core-react/loading/LoadingBar.d.ts +0 -31
- package/lib/cjs/core-react/loading/LoadingBar.d.ts.map +0 -1
- package/lib/cjs/core-react/loading/LoadingBar.js +0 -41
- package/lib/cjs/core-react/loading/LoadingBar.js.map +0 -1
- package/lib/cjs/core-react/loading/LoadingPrompt.d.ts +0 -41
- package/lib/cjs/core-react/loading/LoadingPrompt.d.ts.map +0 -1
- package/lib/cjs/core-react/loading/LoadingPrompt.js +0 -45
- package/lib/cjs/core-react/loading/LoadingPrompt.js.map +0 -1
- package/lib/cjs/core-react/loading/LoadingSpinner.d.ts.map +0 -1
- package/lib/cjs/core-react/loading/LoadingSpinner.js +0 -31
- package/lib/cjs/core-react/loading/LoadingSpinner.js.map +0 -1
- package/lib/cjs/core-react/loading/LoadingStatus.d.ts +0 -26
- package/lib/cjs/core-react/loading/LoadingStatus.d.ts.map +0 -1
- package/lib/cjs/core-react/loading/LoadingStatus.js +0 -38
- package/lib/cjs/core-react/loading/LoadingStatus.js.map +0 -1
- package/lib/cjs/core-react/messagebox/MessageBox.d.ts +0 -90
- package/lib/cjs/core-react/messagebox/MessageBox.d.ts.map +0 -1
- package/lib/cjs/core-react/messagebox/MessageBox.js +0 -122
- package/lib/cjs/core-react/messagebox/MessageBox.js.map +0 -1
- package/lib/cjs/core-react/notification/MessageRenderer.d.ts +0 -22
- package/lib/cjs/core-react/notification/MessageRenderer.d.ts.map +0 -1
- package/lib/cjs/core-react/notification/MessageRenderer.js +0 -87
- package/lib/cjs/core-react/notification/MessageRenderer.js.map +0 -1
- package/lib/cjs/core-react/notification/MessageType.d.ts.map +0 -1
- package/lib/cjs/core-react/notification/MessageType.js +0 -25
- package/lib/cjs/core-react/notification/MessageType.js.map +0 -1
- package/lib/cjs/core-react/popup/Popup.d.ts +0 -128
- package/lib/cjs/core-react/popup/Popup.d.ts.map +0 -1
- package/lib/cjs/core-react/popup/Popup.js +0 -470
- package/lib/cjs/core-react/popup/Popup.js.map +0 -1
- package/lib/cjs/core-react/radialmenu/Annulus.d.ts +0 -54
- package/lib/cjs/core-react/radialmenu/Annulus.d.ts.map +0 -1
- package/lib/cjs/core-react/radialmenu/Annulus.js +0 -82
- package/lib/cjs/core-react/radialmenu/Annulus.js.map +0 -1
- package/lib/cjs/core-react/radialmenu/RadialMenu.d.ts +0 -96
- package/lib/cjs/core-react/radialmenu/RadialMenu.d.ts.map +0 -1
- package/lib/cjs/core-react/radialmenu/RadialMenu.js +0 -188
- package/lib/cjs/core-react/radialmenu/RadialMenu.js.map +0 -1
- package/lib/cjs/core-react/searchbox/SearchBox.d.ts +0 -51
- package/lib/cjs/core-react/searchbox/SearchBox.d.ts.map +0 -1
- package/lib/cjs/core-react/searchbox/SearchBox.js +0 -119
- package/lib/cjs/core-react/searchbox/SearchBox.js.map +0 -1
- package/lib/cjs/core-react/settings/SettingsContainer.d.ts +0 -35
- package/lib/cjs/core-react/settings/SettingsContainer.d.ts.map +0 -1
- package/lib/cjs/core-react/settings/SettingsContainer.js +0 -155
- package/lib/cjs/core-react/settings/SettingsContainer.js.map +0 -1
- package/lib/cjs/core-react/settings/SettingsManager.d.ts.map +0 -1
- package/lib/cjs/core-react/settings/SettingsManager.js +0 -120
- package/lib/cjs/core-react/settings/SettingsManager.js.map +0 -1
- package/lib/cjs/core-react/tabs/Tabs.d.ts +0 -69
- package/lib/cjs/core-react/tabs/Tabs.d.ts.map +0 -1
- package/lib/cjs/core-react/tabs/Tabs.js +0 -121
- package/lib/cjs/core-react/tabs/Tabs.js.map +0 -1
- package/lib/cjs/core-react/tabs/VerticalTabs.d.ts +0 -11
- package/lib/cjs/core-react/tabs/VerticalTabs.d.ts.map +0 -1
- package/lib/cjs/core-react/tabs/VerticalTabs.js +0 -23
- package/lib/cjs/core-react/tabs/VerticalTabs.js.map +0 -1
- package/lib/cjs/core-react/text/BlockText.d.ts +0 -11
- package/lib/cjs/core-react/text/BlockText.d.ts.map +0 -1
- package/lib/cjs/core-react/text/BlockText.js +0 -23
- package/lib/cjs/core-react/text/BlockText.js.map +0 -1
- package/lib/cjs/core-react/text/BodyText.d.ts +0 -11
- package/lib/cjs/core-react/text/BodyText.d.ts.map +0 -1
- package/lib/cjs/core-react/text/BodyText.js +0 -23
- package/lib/cjs/core-react/text/BodyText.js.map +0 -1
- package/lib/cjs/core-react/text/DisabledText.d.ts +0 -11
- package/lib/cjs/core-react/text/DisabledText.d.ts.map +0 -1
- package/lib/cjs/core-react/text/DisabledText.js +0 -22
- package/lib/cjs/core-react/text/DisabledText.js.map +0 -1
- package/lib/cjs/core-react/text/FilteredText.d.ts +0 -27
- package/lib/cjs/core-react/text/FilteredText.d.ts.map +0 -1
- package/lib/cjs/core-react/text/FilteredText.js +0 -40
- package/lib/cjs/core-react/text/FilteredText.js.map +0 -1
- package/lib/cjs/core-react/text/MutedText.d.ts +0 -11
- package/lib/cjs/core-react/text/MutedText.d.ts.map +0 -1
- package/lib/cjs/core-react/text/MutedText.js +0 -23
- package/lib/cjs/core-react/text/MutedText.js.map +0 -1
- package/lib/cjs/core-react/text/StyledText.d.ts +0 -19
- package/lib/cjs/core-react/text/StyledText.d.ts.map +0 -1
- package/lib/cjs/core-react/text/StyledText.js +0 -22
- package/lib/cjs/core-react/text/StyledText.js.map +0 -1
- package/lib/cjs/core-react/text/TextProps.d.ts +0 -12
- package/lib/cjs/core-react/text/TextProps.d.ts.map +0 -1
- package/lib/cjs/core-react/text/TextProps.js +0 -10
- package/lib/cjs/core-react/text/TextProps.js.map +0 -1
- package/lib/cjs/core-react/tree/Branch.d.ts +0 -22
- package/lib/cjs/core-react/tree/Branch.d.ts.map +0 -1
- package/lib/cjs/core-react/tree/Branch.js +0 -26
- package/lib/cjs/core-react/tree/Branch.js.map +0 -1
- package/lib/cjs/core-react/tree/ExpansionToggle.d.ts +0 -21
- package/lib/cjs/core-react/tree/ExpansionToggle.d.ts.map +0 -1
- package/lib/cjs/core-react/tree/ExpansionToggle.js +0 -31
- package/lib/cjs/core-react/tree/ExpansionToggle.js.map +0 -1
- package/lib/cjs/core-react/tree/Node.d.ts +0 -84
- package/lib/cjs/core-react/tree/Node.d.ts.map +0 -1
- package/lib/cjs/core-react/tree/Node.js +0 -92
- package/lib/cjs/core-react/tree/Node.js.map +0 -1
- package/lib/cjs/core-react/tree/Placeholder.d.ts +0 -25
- package/lib/cjs/core-react/tree/Placeholder.d.ts.map +0 -1
- package/lib/cjs/core-react/tree/Placeholder.js +0 -34
- package/lib/cjs/core-react/tree/Placeholder.js.map +0 -1
- package/lib/cjs/core-react/tree/Tree.d.ts +0 -31
- package/lib/cjs/core-react/tree/Tree.d.ts.map +0 -1
- package/lib/cjs/core-react/tree/Tree.js +0 -109
- package/lib/cjs/core-react/tree/Tree.js.map +0 -1
- package/lib/cjs/core-react/uistate/LocalStateStorage.d.ts +0 -17
- package/lib/cjs/core-react/uistate/LocalStateStorage.d.ts.map +0 -1
- package/lib/cjs/core-react/uistate/LocalStateStorage.js +0 -52
- package/lib/cjs/core-react/uistate/LocalStateStorage.js.map +0 -1
- package/lib/cjs/core-react/uistate/UiStateEntry.d.ts +0 -32
- package/lib/cjs/core-react/uistate/UiStateEntry.d.ts.map +0 -1
- package/lib/cjs/core-react/uistate/UiStateEntry.js +0 -62
- package/lib/cjs/core-react/uistate/UiStateEntry.js.map +0 -1
- package/lib/cjs/core-react/uistate/UiStateStorage.d.ts.map +0 -1
- package/lib/cjs/core-react/uistate/UiStateStorage.js +0 -23
- package/lib/cjs/core-react/uistate/UiStateStorage.js.map +0 -1
- package/lib/cjs/core-react/utils/IconHelper.d.ts +0 -27
- package/lib/cjs/core-react/utils/IconHelper.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/IconHelper.js +0 -86
- package/lib/cjs/core-react/utils/IconHelper.js.map +0 -1
- package/lib/cjs/core-react/utils/IconWebComponent.d.ts +0 -13
- package/lib/cjs/core-react/utils/IconWebComponent.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/IconWebComponent.js +0 -117
- package/lib/cjs/core-react/utils/IconWebComponent.js.map +0 -1
- package/lib/cjs/core-react/utils/ListenerType.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/ListenerType.js +0 -3
- package/lib/cjs/core-react/utils/ListenerType.js.map +0 -1
- package/lib/cjs/core-react/utils/Point.d.ts +0 -38
- package/lib/cjs/core-react/utils/Point.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/Point.js +0 -74
- package/lib/cjs/core-react/utils/Point.js.map +0 -1
- package/lib/cjs/core-react/utils/PointProps.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/PointProps.js +0 -3
- package/lib/cjs/core-react/utils/PointProps.js.map +0 -1
- package/lib/cjs/core-react/utils/Props.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/Props.js +0 -10
- package/lib/cjs/core-react/utils/Props.js.map +0 -1
- package/lib/cjs/core-react/utils/Rectangle.d.ts +0 -147
- package/lib/cjs/core-react/utils/Rectangle.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/Rectangle.js +0 -279
- package/lib/cjs/core-react/utils/Rectangle.js.map +0 -1
- package/lib/cjs/core-react/utils/ScrollPositionMaintainer.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/ScrollPositionMaintainer.js +0 -40
- package/lib/cjs/core-react/utils/ScrollPositionMaintainer.js.map +0 -1
- package/lib/cjs/core-react/utils/Size.d.ts +0 -25
- package/lib/cjs/core-react/utils/Size.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/Size.js +0 -32
- package/lib/cjs/core-react/utils/Size.js.map +0 -1
- package/lib/cjs/core-react/utils/Timer.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/Timer.js +0 -67
- package/lib/cjs/core-react/utils/Timer.js.map +0 -1
- package/lib/cjs/core-react/utils/UiGeometry.d.ts +0 -21
- package/lib/cjs/core-react/utils/UiGeometry.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/UiGeometry.js +0 -33
- package/lib/cjs/core-react/utils/UiGeometry.js.map +0 -1
- package/lib/cjs/core-react/utils/flattenChildren.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/flattenChildren.js +0 -27
- package/lib/cjs/core-react/utils/flattenChildren.js.map +0 -1
- package/lib/cjs/core-react/utils/getBestBWContrastColor.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/getBestBWContrastColor.js +0 -23
- package/lib/cjs/core-react/utils/getBestBWContrastColor.js.map +0 -1
- package/lib/cjs/core-react/utils/getCssVariable.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/getCssVariable.js +0 -35
- package/lib/cjs/core-react/utils/getCssVariable.js.map +0 -1
- package/lib/cjs/core-react/utils/getDisplayName.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/getDisplayName.js +0 -22
- package/lib/cjs/core-react/utils/getDisplayName.js.map +0 -1
- package/lib/cjs/core-react/utils/getObjectClassName.d.ts +0 -9
- package/lib/cjs/core-react/utils/getObjectClassName.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/getObjectClassName.js +0 -23
- package/lib/cjs/core-react/utils/getObjectClassName.js.map +0 -1
- package/lib/cjs/core-react/utils/getUserColor.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/getUserColor.js +0 -40
- package/lib/cjs/core-react/utils/getUserColor.js.map +0 -1
- package/lib/cjs/core-react/utils/hooks/ResizeObserverPolyfill.d.ts +0 -8
- package/lib/cjs/core-react/utils/hooks/ResizeObserverPolyfill.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/hooks/ResizeObserverPolyfill.js +0 -22
- package/lib/cjs/core-react/utils/hooks/ResizeObserverPolyfill.js.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useCrossOriginPopup.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useCrossOriginPopup.js +0 -103
- package/lib/cjs/core-react/utils/hooks/useCrossOriginPopup.js.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useDisposable.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useDisposable.js +0 -57
- package/lib/cjs/core-react/utils/hooks/useDisposable.js.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useEffectSkipFirst.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useEffectSkipFirst.js +0 -28
- package/lib/cjs/core-react/utils/hooks/useEffectSkipFirst.js.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useEventListener.d.ts +0 -12
- package/lib/cjs/core-react/utils/hooks/useEventListener.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useEventListener.js +0 -43
- package/lib/cjs/core-react/utils/hooks/useEventListener.js.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useInterval.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useInterval.js +0 -40
- package/lib/cjs/core-react/utils/hooks/useInterval.js.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useLifecycleLogging.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useLifecycleLogging.js +0 -68
- package/lib/cjs/core-react/utils/hooks/useLifecycleLogging.js.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useOnOutsideClick.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useOnOutsideClick.js +0 -103
- package/lib/cjs/core-react/utils/hooks/useOnOutsideClick.js.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useProximityToMouse.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useProximityToMouse.js +0 -114
- package/lib/cjs/core-react/utils/hooks/useProximityToMouse.js.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useRefEffect.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useRefEffect.js +0 -24
- package/lib/cjs/core-react/utils/hooks/useRefEffect.js.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useRefState.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useRefState.js +0 -36
- package/lib/cjs/core-react/utils/hooks/useRefState.js.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useRefs.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useRefs.js +0 -54
- package/lib/cjs/core-react/utils/hooks/useRefs.js.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useResizeObserver.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useResizeObserver.js +0 -211
- package/lib/cjs/core-react/utils/hooks/useResizeObserver.js.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useTargeted.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useTargeted.js +0 -32
- package/lib/cjs/core-react/utils/hooks/useTargeted.js.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useThrottledFn.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useThrottledFn.js +0 -26
- package/lib/cjs/core-react/utils/hooks/useThrottledFn.js.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useWidgetOpacityContext.d.ts +0 -21
- package/lib/cjs/core-react/utils/hooks/useWidgetOpacityContext.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/hooks/useWidgetOpacityContext.js +0 -27
- package/lib/cjs/core-react/utils/hooks/useWidgetOpacityContext.js.map +0 -1
- package/lib/cjs/core-react/utils/isPromiseLike.d.ts +0 -8
- package/lib/cjs/core-react/utils/isPromiseLike.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/isPromiseLike.js +0 -20
- package/lib/cjs/core-react/utils/isPromiseLike.js.map +0 -1
- package/lib/cjs/core-react/utils/matches.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/matches.js +0 -7
- package/lib/cjs/core-react/utils/matches.js.map +0 -1
- package/lib/cjs/core-react/utils/reuseOrCreatePromise.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/reuseOrCreatePromise.js +0 -33
- package/lib/cjs/core-react/utils/reuseOrCreatePromise.js.map +0 -1
- package/lib/cjs/core-react/utils/shallowDiffers.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/shallowDiffers.js +0 -30
- package/lib/cjs/core-react/utils/shallowDiffers.js.map +0 -1
- package/lib/cjs/core-react/utils/typeUtils.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/typeUtils.js +0 -10
- package/lib/cjs/core-react/utils/typeUtils.js.map +0 -1
- package/lib/cjs/core-react.d.ts +0 -242
- package/lib/cjs/core-react.d.ts.map +0 -1
- package/lib/cjs/core-react.js +0 -273
- package/lib/cjs/core-react.js.map +0 -1
- package/lib/esm/core-react/UiCore.d.ts +0 -38
- package/lib/esm/core-react/UiCore.d.ts.map +0 -1
- package/lib/esm/core-react/UiCore.js +0 -72
- package/lib/esm/core-react/UiCore.js.map +0 -1
- package/lib/esm/core-react/UiCore.json +0 -31
- package/lib/esm/core-react/autosuggest/AutoSuggest.d.ts +0 -99
- package/lib/esm/core-react/autosuggest/AutoSuggest.d.ts.map +0 -1
- package/lib/esm/core-react/autosuggest/AutoSuggest.js +0 -170
- package/lib/esm/core-react/autosuggest/AutoSuggest.js.map +0 -1
- package/lib/esm/core-react/badge/Badge.d.ts +0 -17
- package/lib/esm/core-react/badge/Badge.d.ts.map +0 -1
- package/lib/esm/core-react/badge/Badge.js +0 -25
- package/lib/esm/core-react/badge/Badge.js.map +0 -1
- package/lib/esm/core-react/badge/BadgeType.d.ts +0 -19
- package/lib/esm/core-react/badge/BadgeType.d.ts.map +0 -1
- package/lib/esm/core-react/badge/BadgeType.js +0 -14
- package/lib/esm/core-react/badge/BadgeType.js.map +0 -1
- package/lib/esm/core-react/badge/DeprecatedBadge.d.ts +0 -10
- package/lib/esm/core-react/badge/DeprecatedBadge.d.ts.map +0 -1
- package/lib/esm/core-react/badge/DeprecatedBadge.js.map +0 -1
- package/lib/esm/core-react/badge/NewBadge.d.ts +0 -10
- package/lib/esm/core-react/badge/NewBadge.d.ts.map +0 -1
- package/lib/esm/core-react/badge/NewBadge.js.map +0 -1
- package/lib/esm/core-react/badge/TechnicalPreviewBadge.d.ts +0 -10
- package/lib/esm/core-react/badge/TechnicalPreviewBadge.d.ts.map +0 -1
- package/lib/esm/core-react/badge/TechnicalPreviewBadge.js.map +0 -1
- package/lib/esm/core-react/base/Centered.d.ts +0 -12
- package/lib/esm/core-react/base/Centered.d.ts.map +0 -1
- package/lib/esm/core-react/base/Centered.js +0 -20
- package/lib/esm/core-react/base/Centered.js.map +0 -1
- package/lib/esm/core-react/base/Div.d.ts +0 -19
- package/lib/esm/core-react/base/Div.d.ts.map +0 -1
- package/lib/esm/core-react/base/Div.js.map +0 -1
- package/lib/esm/core-react/base/DivWithOutsideClick.d.ts +0 -77
- package/lib/esm/core-react/base/DivWithOutsideClick.d.ts.map +0 -1
- package/lib/esm/core-react/base/DivWithOutsideClick.js +0 -17
- package/lib/esm/core-react/base/DivWithOutsideClick.js.map +0 -1
- package/lib/esm/core-react/base/FillCentered.d.ts +0 -12
- package/lib/esm/core-react/base/FillCentered.d.ts.map +0 -1
- package/lib/esm/core-react/base/FillCentered.js +0 -20
- package/lib/esm/core-react/base/FillCentered.js.map +0 -1
- package/lib/esm/core-react/base/FlexWrapContainer.d.ts +0 -13
- package/lib/esm/core-react/base/FlexWrapContainer.d.ts.map +0 -1
- package/lib/esm/core-react/base/FlexWrapContainer.js +0 -21
- package/lib/esm/core-react/base/FlexWrapContainer.js.map +0 -1
- package/lib/esm/core-react/base/Gap.d.ts +0 -18
- package/lib/esm/core-react/base/Gap.d.ts.map +0 -1
- package/lib/esm/core-react/base/Gap.js.map +0 -1
- package/lib/esm/core-react/base/PointerEvents.d.ts +0 -8
- package/lib/esm/core-react/base/PointerEvents.d.ts.map +0 -1
- package/lib/esm/core-react/base/PointerEvents.js.map +0 -1
- package/lib/esm/core-react/base/ScrollView.d.ts +0 -13
- package/lib/esm/core-react/base/ScrollView.d.ts.map +0 -1
- package/lib/esm/core-react/base/ScrollView.js +0 -21
- package/lib/esm/core-react/base/ScrollView.js.map +0 -1
- package/lib/esm/core-react/button/UnderlinedButton.d.ts +0 -27
- package/lib/esm/core-react/button/UnderlinedButton.d.ts.map +0 -1
- package/lib/esm/core-react/button/UnderlinedButton.js.map +0 -1
- package/lib/esm/core-react/checklistbox/CheckListBox.d.ts +0 -45
- package/lib/esm/core-react/checklistbox/CheckListBox.d.ts.map +0 -1
- package/lib/esm/core-react/checklistbox/CheckListBox.js.map +0 -1
- package/lib/esm/core-react/contextmenu/ContextMenu.d.ts +0 -91
- package/lib/esm/core-react/contextmenu/ContextMenu.d.ts.map +0 -1
- package/lib/esm/core-react/contextmenu/ContextMenu.js +0 -362
- package/lib/esm/core-react/contextmenu/ContextMenu.js.map +0 -1
- package/lib/esm/core-react/contextmenu/ContextMenuDirection.d.ts +0 -17
- package/lib/esm/core-react/contextmenu/ContextMenuDirection.d.ts.map +0 -1
- package/lib/esm/core-react/contextmenu/ContextMenuDirection.js.map +0 -1
- package/lib/esm/core-react/contextmenu/ContextMenuDivider.d.ts +0 -13
- package/lib/esm/core-react/contextmenu/ContextMenuDivider.d.ts.map +0 -1
- package/lib/esm/core-react/contextmenu/ContextMenuDivider.js.map +0 -1
- package/lib/esm/core-react/contextmenu/ContextMenuItem.d.ts +0 -65
- package/lib/esm/core-react/contextmenu/ContextMenuItem.d.ts.map +0 -1
- package/lib/esm/core-react/contextmenu/ContextMenuItem.js +0 -107
- package/lib/esm/core-react/contextmenu/ContextMenuItem.js.map +0 -1
- package/lib/esm/core-react/contextmenu/ContextSubMenu.d.ts +0 -51
- package/lib/esm/core-react/contextmenu/ContextSubMenu.d.ts.map +0 -1
- package/lib/esm/core-react/contextmenu/ContextSubMenu.js +0 -173
- package/lib/esm/core-react/contextmenu/ContextSubMenu.js.map +0 -1
- package/lib/esm/core-react/contextmenu/GlobalContextMenu.d.ts +0 -36
- package/lib/esm/core-react/contextmenu/GlobalContextMenu.d.ts.map +0 -1
- package/lib/esm/core-react/contextmenu/GlobalContextMenu.js +0 -59
- package/lib/esm/core-react/contextmenu/GlobalContextMenu.js.map +0 -1
- package/lib/esm/core-react/contextmenu/PopupContextMenu.d.ts +0 -57
- package/lib/esm/core-react/contextmenu/PopupContextMenu.d.ts.map +0 -1
- package/lib/esm/core-react/contextmenu/PopupContextMenu.js +0 -54
- package/lib/esm/core-react/contextmenu/PopupContextMenu.js.map +0 -1
- package/lib/esm/core-react/contextmenu/TildeFinder.d.ts +0 -19
- package/lib/esm/core-react/contextmenu/TildeFinder.d.ts.map +0 -1
- package/lib/esm/core-react/contextmenu/TildeFinder.js.map +0 -1
- package/lib/esm/core-react/dialog/Dialog.d.ts +0 -112
- package/lib/esm/core-react/dialog/Dialog.d.ts.map +0 -1
- package/lib/esm/core-react/dialog/Dialog.js +0 -205
- package/lib/esm/core-react/dialog/Dialog.js.map +0 -1
- package/lib/esm/core-react/dialog/GlobalDialog.d.ts +0 -32
- package/lib/esm/core-react/dialog/GlobalDialog.d.ts.map +0 -1
- package/lib/esm/core-react/dialog/GlobalDialog.js +0 -57
- package/lib/esm/core-react/dialog/GlobalDialog.js.map +0 -1
- package/lib/esm/core-react/elementseparator/ElementSeparator.d.ts +0 -44
- package/lib/esm/core-react/elementseparator/ElementSeparator.d.ts.map +0 -1
- package/lib/esm/core-react/elementseparator/ElementSeparator.js +0 -163
- package/lib/esm/core-react/elementseparator/ElementSeparator.js.map +0 -1
- package/lib/esm/core-react/enums/Alignment.d.ts +0 -25
- package/lib/esm/core-react/enums/Alignment.d.ts.map +0 -1
- package/lib/esm/core-react/enums/Alignment.js.map +0 -1
- package/lib/esm/core-react/enums/CheckBoxState.d.ts +0 -23
- package/lib/esm/core-react/enums/CheckBoxState.d.ts.map +0 -1
- package/lib/esm/core-react/enums/CheckBoxState.js.map +0 -1
- package/lib/esm/core-react/enums/Orientation.d.ts +0 -13
- package/lib/esm/core-react/enums/Orientation.d.ts.map +0 -1
- package/lib/esm/core-react/enums/Orientation.js.map +0 -1
- package/lib/esm/core-react/enums/SortDirection.d.ts +0 -14
- package/lib/esm/core-react/enums/SortDirection.d.ts.map +0 -1
- package/lib/esm/core-react/enums/SortDirection.js.map +0 -1
- package/lib/esm/core-react/enums/TimeFormat.d.ts +0 -16
- package/lib/esm/core-react/enums/TimeFormat.d.ts.map +0 -1
- package/lib/esm/core-react/enums/TimeFormat.js.map +0 -1
- package/lib/esm/core-react/expandable/ExpandableList.d.ts +0 -37
- package/lib/esm/core-react/expandable/ExpandableList.d.ts.map +0 -1
- package/lib/esm/core-react/expandable/ExpandableList.js.map +0 -1
- package/lib/esm/core-react/focus/ItemKeyboardNavigator.d.ts +0 -53
- package/lib/esm/core-react/focus/ItemKeyboardNavigator.d.ts.map +0 -1
- package/lib/esm/core-react/focus/ItemKeyboardNavigator.js +0 -173
- package/lib/esm/core-react/focus/ItemKeyboardNavigator.js.map +0 -1
- package/lib/esm/core-react/focustrap/FocusTrap.d.ts +0 -29
- package/lib/esm/core-react/focustrap/FocusTrap.d.ts.map +0 -1
- package/lib/esm/core-react/focustrap/FocusTrap.js +0 -196
- package/lib/esm/core-react/focustrap/FocusTrap.js.map +0 -1
- package/lib/esm/core-react/hocs/withIsPressed.d.ts +0 -76
- package/lib/esm/core-react/hocs/withIsPressed.d.ts.map +0 -1
- package/lib/esm/core-react/hocs/withIsPressed.js.map +0 -1
- package/lib/esm/core-react/hocs/withOnOutsideClick.d.ts +0 -100
- package/lib/esm/core-react/hocs/withOnOutsideClick.d.ts.map +0 -1
- package/lib/esm/core-react/hocs/withOnOutsideClick.js.map +0 -1
- package/lib/esm/core-react/hocs/withTimeout.d.ts +0 -73
- package/lib/esm/core-react/hocs/withTimeout.d.ts.map +0 -1
- package/lib/esm/core-react/hocs/withTimeout.js +0 -44
- package/lib/esm/core-react/hocs/withTimeout.js.map +0 -1
- package/lib/esm/core-react/icons/ConditionalIconItem.d.ts +0 -28
- package/lib/esm/core-react/icons/ConditionalIconItem.d.ts.map +0 -1
- package/lib/esm/core-react/icons/ConditionalIconItem.js.map +0 -1
- package/lib/esm/core-react/icons/IconComponent.d.ts +0 -34
- package/lib/esm/core-react/icons/IconComponent.d.ts.map +0 -1
- package/lib/esm/core-react/icons/IconComponent.js +0 -77
- package/lib/esm/core-react/icons/IconComponent.js.map +0 -1
- package/lib/esm/core-react/icons/SvgPath.d.ts +0 -26
- package/lib/esm/core-react/icons/SvgPath.d.ts.map +0 -1
- package/lib/esm/core-react/icons/SvgPath.js.map +0 -1
- package/lib/esm/core-react/icons/WebFontIcon.d.ts +0 -28
- package/lib/esm/core-react/icons/WebFontIcon.d.ts.map +0 -1
- package/lib/esm/core-react/icons/WebFontIcon.js.map +0 -1
- package/lib/esm/core-react/imagecheckbox/ImageCheckBox.d.ts +0 -43
- package/lib/esm/core-react/imagecheckbox/ImageCheckBox.d.ts.map +0 -1
- package/lib/esm/core-react/imagecheckbox/ImageCheckBox.js +0 -49
- package/lib/esm/core-react/imagecheckbox/ImageCheckBox.js.map +0 -1
- package/lib/esm/core-react/inputs/Input.d.ts +0 -21
- package/lib/esm/core-react/inputs/Input.d.ts.map +0 -1
- package/lib/esm/core-react/inputs/Input.js +0 -42
- package/lib/esm/core-react/inputs/Input.js.map +0 -1
- package/lib/esm/core-react/inputs/InputLabel.d.ts +0 -23
- package/lib/esm/core-react/inputs/InputLabel.d.ts.map +0 -1
- package/lib/esm/core-react/inputs/InputLabel.js +0 -33
- package/lib/esm/core-react/inputs/InputLabel.js.map +0 -1
- package/lib/esm/core-react/inputs/InputStatus.d.ts +0 -13
- package/lib/esm/core-react/inputs/InputStatus.d.ts.map +0 -1
- package/lib/esm/core-react/inputs/InputStatus.js.map +0 -1
- package/lib/esm/core-react/inputs/LabeledComponentProps.d.ts +0 -36
- package/lib/esm/core-react/inputs/LabeledComponentProps.d.ts.map +0 -1
- package/lib/esm/core-react/inputs/LabeledComponentProps.js.map +0 -1
- package/lib/esm/core-react/inputs/iconinput/IconInput.d.ts +0 -26
- package/lib/esm/core-react/inputs/iconinput/IconInput.d.ts.map +0 -1
- package/lib/esm/core-react/inputs/iconinput/IconInput.js +0 -29
- package/lib/esm/core-react/inputs/iconinput/IconInput.js.map +0 -1
- package/lib/esm/core-react/inputs/numberinput/NumberInput.d.ts +0 -56
- package/lib/esm/core-react/inputs/numberinput/NumberInput.d.ts.map +0 -1
- package/lib/esm/core-react/inputs/numberinput/NumberInput.js +0 -160
- package/lib/esm/core-react/inputs/numberinput/NumberInput.js.map +0 -1
- package/lib/esm/core-react/l10n/LocalizationProvider.d.ts +0 -21
- package/lib/esm/core-react/l10n/LocalizationProvider.d.ts.map +0 -1
- package/lib/esm/core-react/l10n/LocalizationProvider.js.map +0 -1
- package/lib/esm/core-react/l10n/usePackageTranslation.d.ts +0 -15
- package/lib/esm/core-react/l10n/usePackageTranslation.d.ts.map +0 -1
- package/lib/esm/core-react/l10n/usePackageTranslation.js +0 -60
- package/lib/esm/core-react/l10n/usePackageTranslation.js.map +0 -1
- package/lib/esm/core-react/l10n/useTranslation.d.ts +0 -7
- package/lib/esm/core-react/l10n/useTranslation.d.ts.map +0 -1
- package/lib/esm/core-react/l10n/useTranslation.js +0 -26
- package/lib/esm/core-react/l10n/useTranslation.js.map +0 -1
- package/lib/esm/core-react/listbox/Listbox.d.ts +0 -59
- package/lib/esm/core-react/listbox/Listbox.d.ts.map +0 -1
- package/lib/esm/core-react/listbox/Listbox.js.map +0 -1
- package/lib/esm/core-react/loading/LoadingBar.d.ts +0 -31
- package/lib/esm/core-react/loading/LoadingBar.d.ts.map +0 -1
- package/lib/esm/core-react/loading/LoadingBar.js.map +0 -1
- package/lib/esm/core-react/loading/LoadingPrompt.d.ts +0 -41
- package/lib/esm/core-react/loading/LoadingPrompt.d.ts.map +0 -1
- package/lib/esm/core-react/loading/LoadingPrompt.js +0 -41
- package/lib/esm/core-react/loading/LoadingPrompt.js.map +0 -1
- package/lib/esm/core-react/loading/LoadingSpinner.d.ts +0 -37
- package/lib/esm/core-react/loading/LoadingSpinner.d.ts.map +0 -1
- package/lib/esm/core-react/loading/LoadingSpinner.js.map +0 -1
- package/lib/esm/core-react/loading/LoadingStatus.d.ts +0 -26
- package/lib/esm/core-react/loading/LoadingStatus.d.ts.map +0 -1
- package/lib/esm/core-react/loading/LoadingStatus.js.map +0 -1
- package/lib/esm/core-react/messagebox/MessageBox.d.ts +0 -90
- package/lib/esm/core-react/messagebox/MessageBox.d.ts.map +0 -1
- package/lib/esm/core-react/messagebox/MessageBox.js +0 -117
- package/lib/esm/core-react/messagebox/MessageBox.js.map +0 -1
- package/lib/esm/core-react/notification/MessageRenderer.d.ts +0 -22
- package/lib/esm/core-react/notification/MessageRenderer.d.ts.map +0 -1
- package/lib/esm/core-react/notification/MessageRenderer.js +0 -83
- package/lib/esm/core-react/notification/MessageRenderer.js.map +0 -1
- package/lib/esm/core-react/notification/MessageType.d.ts +0 -25
- package/lib/esm/core-react/notification/MessageType.d.ts.map +0 -1
- package/lib/esm/core-react/notification/MessageType.js.map +0 -1
- package/lib/esm/core-react/popup/Popup.d.ts +0 -128
- package/lib/esm/core-react/popup/Popup.d.ts.map +0 -1
- package/lib/esm/core-react/popup/Popup.js +0 -466
- package/lib/esm/core-react/popup/Popup.js.map +0 -1
- package/lib/esm/core-react/radialmenu/Annulus.d.ts +0 -54
- package/lib/esm/core-react/radialmenu/Annulus.d.ts.map +0 -1
- package/lib/esm/core-react/radialmenu/Annulus.js +0 -75
- package/lib/esm/core-react/radialmenu/Annulus.js.map +0 -1
- package/lib/esm/core-react/radialmenu/RadialMenu.d.ts +0 -96
- package/lib/esm/core-react/radialmenu/RadialMenu.d.ts.map +0 -1
- package/lib/esm/core-react/radialmenu/RadialMenu.js +0 -183
- package/lib/esm/core-react/radialmenu/RadialMenu.js.map +0 -1
- package/lib/esm/core-react/searchbox/SearchBox.d.ts +0 -51
- package/lib/esm/core-react/searchbox/SearchBox.d.ts.map +0 -1
- package/lib/esm/core-react/searchbox/SearchBox.js +0 -115
- package/lib/esm/core-react/searchbox/SearchBox.js.map +0 -1
- package/lib/esm/core-react/settings/SettingsContainer.d.ts +0 -35
- package/lib/esm/core-react/settings/SettingsContainer.d.ts.map +0 -1
- package/lib/esm/core-react/settings/SettingsContainer.js +0 -149
- package/lib/esm/core-react/settings/SettingsContainer.js.map +0 -1
- package/lib/esm/core-react/settings/SettingsManager.d.ts +0 -137
- package/lib/esm/core-react/settings/SettingsManager.d.ts.map +0 -1
- package/lib/esm/core-react/settings/SettingsManager.js +0 -112
- package/lib/esm/core-react/settings/SettingsManager.js.map +0 -1
- package/lib/esm/core-react/tabs/Tabs.d.ts +0 -69
- package/lib/esm/core-react/tabs/Tabs.d.ts.map +0 -1
- package/lib/esm/core-react/tabs/Tabs.js +0 -117
- package/lib/esm/core-react/tabs/Tabs.js.map +0 -1
- package/lib/esm/core-react/tabs/VerticalTabs.d.ts +0 -11
- package/lib/esm/core-react/tabs/VerticalTabs.d.ts.map +0 -1
- package/lib/esm/core-react/tabs/VerticalTabs.js +0 -19
- package/lib/esm/core-react/tabs/VerticalTabs.js.map +0 -1
- package/lib/esm/core-react/text/BlockText.d.ts +0 -11
- package/lib/esm/core-react/text/BlockText.d.ts.map +0 -1
- package/lib/esm/core-react/text/BlockText.js +0 -19
- package/lib/esm/core-react/text/BlockText.js.map +0 -1
- package/lib/esm/core-react/text/BodyText.d.ts +0 -11
- package/lib/esm/core-react/text/BodyText.d.ts.map +0 -1
- package/lib/esm/core-react/text/BodyText.js +0 -19
- package/lib/esm/core-react/text/BodyText.js.map +0 -1
- package/lib/esm/core-react/text/DisabledText.d.ts +0 -11
- package/lib/esm/core-react/text/DisabledText.d.ts.map +0 -1
- package/lib/esm/core-react/text/DisabledText.js +0 -18
- package/lib/esm/core-react/text/DisabledText.js.map +0 -1
- package/lib/esm/core-react/text/FilteredText.d.ts +0 -27
- package/lib/esm/core-react/text/FilteredText.d.ts.map +0 -1
- package/lib/esm/core-react/text/FilteredText.js.map +0 -1
- package/lib/esm/core-react/text/MutedText.d.ts +0 -11
- package/lib/esm/core-react/text/MutedText.d.ts.map +0 -1
- package/lib/esm/core-react/text/MutedText.js +0 -19
- package/lib/esm/core-react/text/MutedText.js.map +0 -1
- package/lib/esm/core-react/text/StyledText.d.ts +0 -19
- package/lib/esm/core-react/text/StyledText.d.ts.map +0 -1
- package/lib/esm/core-react/text/StyledText.js.map +0 -1
- package/lib/esm/core-react/text/TextProps.d.ts +0 -12
- package/lib/esm/core-react/text/TextProps.d.ts.map +0 -1
- package/lib/esm/core-react/text/TextProps.js.map +0 -1
- package/lib/esm/core-react/tree/Branch.d.ts +0 -22
- package/lib/esm/core-react/tree/Branch.d.ts.map +0 -1
- package/lib/esm/core-react/tree/Branch.js.map +0 -1
- package/lib/esm/core-react/tree/ExpansionToggle.d.ts +0 -21
- package/lib/esm/core-react/tree/ExpansionToggle.d.ts.map +0 -1
- package/lib/esm/core-react/tree/ExpansionToggle.js +0 -27
- package/lib/esm/core-react/tree/ExpansionToggle.js.map +0 -1
- package/lib/esm/core-react/tree/Node.d.ts +0 -84
- package/lib/esm/core-react/tree/Node.d.ts.map +0 -1
- package/lib/esm/core-react/tree/Node.js +0 -88
- package/lib/esm/core-react/tree/Node.js.map +0 -1
- package/lib/esm/core-react/tree/Placeholder.d.ts +0 -25
- package/lib/esm/core-react/tree/Placeholder.d.ts.map +0 -1
- package/lib/esm/core-react/tree/Placeholder.js +0 -30
- package/lib/esm/core-react/tree/Placeholder.js.map +0 -1
- package/lib/esm/core-react/tree/Tree.d.ts +0 -31
- package/lib/esm/core-react/tree/Tree.d.ts.map +0 -1
- package/lib/esm/core-react/tree/Tree.js +0 -105
- package/lib/esm/core-react/tree/Tree.js.map +0 -1
- package/lib/esm/core-react/uistate/LocalStateStorage.d.ts +0 -17
- package/lib/esm/core-react/uistate/LocalStateStorage.d.ts.map +0 -1
- package/lib/esm/core-react/uistate/LocalStateStorage.js +0 -48
- package/lib/esm/core-react/uistate/LocalStateStorage.js.map +0 -1
- package/lib/esm/core-react/uistate/UiStateEntry.d.ts +0 -32
- package/lib/esm/core-react/uistate/UiStateEntry.d.ts.map +0 -1
- package/lib/esm/core-react/uistate/UiStateEntry.js +0 -58
- package/lib/esm/core-react/uistate/UiStateEntry.js.map +0 -1
- package/lib/esm/core-react/uistate/UiStateStorage.d.ts +0 -32
- package/lib/esm/core-react/uistate/UiStateStorage.d.ts.map +0 -1
- package/lib/esm/core-react/uistate/UiStateStorage.js.map +0 -1
- package/lib/esm/core-react/utils/IconHelper.d.ts +0 -27
- package/lib/esm/core-react/utils/IconHelper.d.ts.map +0 -1
- package/lib/esm/core-react/utils/IconHelper.js +0 -82
- package/lib/esm/core-react/utils/IconHelper.js.map +0 -1
- package/lib/esm/core-react/utils/IconWebComponent.d.ts +0 -13
- package/lib/esm/core-react/utils/IconWebComponent.d.ts.map +0 -1
- package/lib/esm/core-react/utils/IconWebComponent.js +0 -112
- package/lib/esm/core-react/utils/IconWebComponent.js.map +0 -1
- package/lib/esm/core-react/utils/ListenerType.d.ts +0 -15
- package/lib/esm/core-react/utils/ListenerType.d.ts.map +0 -1
- package/lib/esm/core-react/utils/ListenerType.js.map +0 -1
- package/lib/esm/core-react/utils/Point.d.ts +0 -38
- package/lib/esm/core-react/utils/Point.d.ts.map +0 -1
- package/lib/esm/core-react/utils/Point.js +0 -70
- package/lib/esm/core-react/utils/Point.js.map +0 -1
- package/lib/esm/core-react/utils/PointProps.d.ts +0 -9
- package/lib/esm/core-react/utils/PointProps.d.ts.map +0 -1
- package/lib/esm/core-react/utils/PointProps.js.map +0 -1
- package/lib/esm/core-react/utils/Props.d.ts +0 -43
- package/lib/esm/core-react/utils/Props.d.ts.map +0 -1
- package/lib/esm/core-react/utils/Props.js.map +0 -1
- package/lib/esm/core-react/utils/Rectangle.d.ts +0 -147
- package/lib/esm/core-react/utils/Rectangle.d.ts.map +0 -1
- package/lib/esm/core-react/utils/Rectangle.js +0 -275
- package/lib/esm/core-react/utils/Rectangle.js.map +0 -1
- package/lib/esm/core-react/utils/ScrollPositionMaintainer.d.ts +0 -25
- package/lib/esm/core-react/utils/ScrollPositionMaintainer.d.ts.map +0 -1
- package/lib/esm/core-react/utils/ScrollPositionMaintainer.js.map +0 -1
- package/lib/esm/core-react/utils/Size.d.ts +0 -25
- package/lib/esm/core-react/utils/Size.d.ts.map +0 -1
- package/lib/esm/core-react/utils/Size.js +0 -28
- package/lib/esm/core-react/utils/Size.js.map +0 -1
- package/lib/esm/core-react/utils/Timer.d.ts +0 -38
- package/lib/esm/core-react/utils/Timer.d.ts.map +0 -1
- package/lib/esm/core-react/utils/Timer.js.map +0 -1
- package/lib/esm/core-react/utils/UiGeometry.d.ts +0 -21
- package/lib/esm/core-react/utils/UiGeometry.d.ts.map +0 -1
- package/lib/esm/core-react/utils/UiGeometry.js +0 -29
- package/lib/esm/core-react/utils/UiGeometry.js.map +0 -1
- package/lib/esm/core-react/utils/flattenChildren.d.ts +0 -9
- package/lib/esm/core-react/utils/flattenChildren.d.ts.map +0 -1
- package/lib/esm/core-react/utils/flattenChildren.js.map +0 -1
- package/lib/esm/core-react/utils/getBestBWContrastColor.d.ts +0 -8
- package/lib/esm/core-react/utils/getBestBWContrastColor.d.ts.map +0 -1
- package/lib/esm/core-react/utils/getBestBWContrastColor.js.map +0 -1
- package/lib/esm/core-react/utils/getCssVariable.d.ts +0 -14
- package/lib/esm/core-react/utils/getCssVariable.d.ts.map +0 -1
- package/lib/esm/core-react/utils/getCssVariable.js.map +0 -1
- package/lib/esm/core-react/utils/getDisplayName.d.ts +0 -9
- package/lib/esm/core-react/utils/getDisplayName.d.ts.map +0 -1
- package/lib/esm/core-react/utils/getDisplayName.js.map +0 -1
- package/lib/esm/core-react/utils/getObjectClassName.d.ts +0 -9
- package/lib/esm/core-react/utils/getObjectClassName.d.ts.map +0 -1
- package/lib/esm/core-react/utils/getObjectClassName.js +0 -19
- package/lib/esm/core-react/utils/getObjectClassName.js.map +0 -1
- package/lib/esm/core-react/utils/getUserColor.d.ts +0 -8
- package/lib/esm/core-react/utils/getUserColor.d.ts.map +0 -1
- package/lib/esm/core-react/utils/getUserColor.js.map +0 -1
- package/lib/esm/core-react/utils/hooks/ResizeObserverPolyfill.d.ts +0 -8
- package/lib/esm/core-react/utils/hooks/ResizeObserverPolyfill.d.ts.map +0 -1
- package/lib/esm/core-react/utils/hooks/ResizeObserverPolyfill.js +0 -18
- package/lib/esm/core-react/utils/hooks/ResizeObserverPolyfill.js.map +0 -1
- package/lib/esm/core-react/utils/hooks/useCrossOriginPopup.d.ts +0 -9
- package/lib/esm/core-react/utils/hooks/useCrossOriginPopup.d.ts.map +0 -1
- package/lib/esm/core-react/utils/hooks/useCrossOriginPopup.js +0 -99
- package/lib/esm/core-react/utils/hooks/useCrossOriginPopup.js.map +0 -1
- package/lib/esm/core-react/utils/hooks/useDisposable.d.ts +0 -21
- package/lib/esm/core-react/utils/hooks/useDisposable.d.ts.map +0 -1
- package/lib/esm/core-react/utils/hooks/useDisposable.js.map +0 -1
- package/lib/esm/core-react/utils/hooks/useEffectSkipFirst.d.ts +0 -10
- package/lib/esm/core-react/utils/hooks/useEffectSkipFirst.d.ts.map +0 -1
- package/lib/esm/core-react/utils/hooks/useEffectSkipFirst.js.map +0 -1
- package/lib/esm/core-react/utils/hooks/useEventListener.d.ts +0 -12
- package/lib/esm/core-react/utils/hooks/useEventListener.d.ts.map +0 -1
- package/lib/esm/core-react/utils/hooks/useEventListener.js +0 -39
- package/lib/esm/core-react/utils/hooks/useEventListener.js.map +0 -1
- package/lib/esm/core-react/utils/hooks/useInterval.d.ts +0 -7
- package/lib/esm/core-react/utils/hooks/useInterval.d.ts.map +0 -1
- package/lib/esm/core-react/utils/hooks/useInterval.js.map +0 -1
- package/lib/esm/core-react/utils/hooks/useLifecycleLogging.d.ts +0 -6
- package/lib/esm/core-react/utils/hooks/useLifecycleLogging.d.ts.map +0 -1
- package/lib/esm/core-react/utils/hooks/useLifecycleLogging.js.map +0 -1
- package/lib/esm/core-react/utils/hooks/useOnOutsideClick.d.ts +0 -17
- package/lib/esm/core-react/utils/hooks/useOnOutsideClick.d.ts.map +0 -1
- package/lib/esm/core-react/utils/hooks/useOnOutsideClick.js +0 -99
- package/lib/esm/core-react/utils/hooks/useOnOutsideClick.js.map +0 -1
- package/lib/esm/core-react/utils/hooks/useProximityToMouse.d.ts +0 -56
- package/lib/esm/core-react/utils/hooks/useProximityToMouse.d.ts.map +0 -1
- package/lib/esm/core-react/utils/hooks/useProximityToMouse.js +0 -102
- package/lib/esm/core-react/utils/hooks/useProximityToMouse.js.map +0 -1
- package/lib/esm/core-react/utils/hooks/useRefEffect.d.ts +0 -8
- package/lib/esm/core-react/utils/hooks/useRefEffect.d.ts.map +0 -1
- package/lib/esm/core-react/utils/hooks/useRefEffect.js.map +0 -1
- package/lib/esm/core-react/utils/hooks/useRefState.d.ts +0 -22
- package/lib/esm/core-react/utils/hooks/useRefState.d.ts.map +0 -1
- package/lib/esm/core-react/utils/hooks/useRefState.js.map +0 -1
- package/lib/esm/core-react/utils/hooks/useRefs.d.ts +0 -13
- package/lib/esm/core-react/utils/hooks/useRefs.d.ts.map +0 -1
- package/lib/esm/core-react/utils/hooks/useRefs.js.map +0 -1
- package/lib/esm/core-react/utils/hooks/useResizeObserver.d.ts +0 -43
- package/lib/esm/core-react/utils/hooks/useResizeObserver.d.ts.map +0 -1
- package/lib/esm/core-react/utils/hooks/useResizeObserver.js +0 -204
- package/lib/esm/core-react/utils/hooks/useResizeObserver.js.map +0 -1
- package/lib/esm/core-react/utils/hooks/useTargeted.d.ts +0 -9
- package/lib/esm/core-react/utils/hooks/useTargeted.d.ts.map +0 -1
- package/lib/esm/core-react/utils/hooks/useTargeted.js.map +0 -1
- package/lib/esm/core-react/utils/hooks/useThrottledFn.d.ts +0 -16
- package/lib/esm/core-react/utils/hooks/useThrottledFn.d.ts.map +0 -1
- package/lib/esm/core-react/utils/hooks/useThrottledFn.js.map +0 -1
- package/lib/esm/core-react/utils/hooks/useWidgetOpacityContext.d.ts +0 -21
- package/lib/esm/core-react/utils/hooks/useWidgetOpacityContext.d.ts.map +0 -1
- package/lib/esm/core-react/utils/hooks/useWidgetOpacityContext.js +0 -23
- package/lib/esm/core-react/utils/hooks/useWidgetOpacityContext.js.map +0 -1
- package/lib/esm/core-react/utils/isPromiseLike.d.ts +0 -8
- package/lib/esm/core-react/utils/isPromiseLike.d.ts.map +0 -1
- package/lib/esm/core-react/utils/isPromiseLike.js +0 -16
- package/lib/esm/core-react/utils/isPromiseLike.js.map +0 -1
- package/lib/esm/core-react/utils/matches.d.ts +0 -11
- package/lib/esm/core-react/utils/matches.d.ts.map +0 -1
- package/lib/esm/core-react/utils/matches.js.map +0 -1
- package/lib/esm/core-react/utils/reuseOrCreatePromise.d.ts +0 -14
- package/lib/esm/core-react/utils/reuseOrCreatePromise.d.ts.map +0 -1
- package/lib/esm/core-react/utils/reuseOrCreatePromise.js.map +0 -1
- package/lib/esm/core-react/utils/shallowDiffers.d.ts +0 -12
- package/lib/esm/core-react/utils/shallowDiffers.d.ts.map +0 -1
- package/lib/esm/core-react/utils/shallowDiffers.js.map +0 -1
- package/lib/esm/core-react/utils/typeUtils.d.ts +0 -9
- package/lib/esm/core-react/utils/typeUtils.d.ts.map +0 -1
- package/lib/esm/core-react/utils/typeUtils.js.map +0 -1
- package/lib/esm/core-react.d.ts +0 -242
- package/lib/esm/core-react.d.ts.map +0 -1
- package/lib/esm/core-react.js +0 -249
- package/lib/esm/core-react.js.map +0 -1
- /package/lib/{cjs/core-react → core-react}/UiCore.json +0 -0
- /package/lib/{cjs/core-react → core-react}/badge/DeprecatedBadge.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/badge/DeprecatedBadge.js +0 -0
- /package/lib/{cjs/core-react → core-react}/badge/NewBadge.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/badge/NewBadge.js +0 -0
- /package/lib/{cjs/core-react → core-react}/badge/TechnicalPreviewBadge.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/badge/TechnicalPreviewBadge.js +0 -0
- /package/lib/{esm/core-react → core-react}/base/Div.js +0 -0
- /package/lib/{esm/core-react → core-react}/base/Gap.js +0 -0
- /package/lib/{cjs/core-react → core-react}/base/PointerEvents.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/base/PointerEvents.js +0 -0
- /package/lib/{cjs/core-react → core-react}/button/UnderlinedButton.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/button/UnderlinedButton.js +0 -0
- /package/lib/{esm/core-react → core-react}/checklistbox/CheckListBox.js +0 -0
- /package/lib/{cjs/core-react → core-react}/contextmenu/ContextMenuDirection.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/contextmenu/ContextMenuDirection.js +0 -0
- /package/lib/{esm/core-react → core-react}/contextmenu/ContextMenuDivider.js +0 -0
- /package/lib/{cjs/core-react → core-react}/contextmenu/TildeFinder.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/contextmenu/TildeFinder.js +0 -0
- /package/lib/{cjs/core-react → core-react}/enums/Alignment.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/enums/Alignment.js +0 -0
- /package/lib/{cjs/core-react → core-react}/enums/CheckBoxState.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/enums/CheckBoxState.js +0 -0
- /package/lib/{cjs/core-react → core-react}/enums/Orientation.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/enums/Orientation.js +0 -0
- /package/lib/{cjs/core-react → core-react}/enums/SortDirection.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/enums/SortDirection.js +0 -0
- /package/lib/{cjs/core-react → core-react}/enums/TimeFormat.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/enums/TimeFormat.js +0 -0
- /package/lib/{esm/core-react → core-react}/expandable/ExpandableList.js +0 -0
- /package/lib/{cjs/core-react → core-react}/focustrap/FocusTrap.d.ts +0 -0
- /package/lib/{cjs/core-react → core-react}/hocs/withIsPressed.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/hocs/withIsPressed.js +0 -0
- /package/lib/{cjs/core-react → core-react}/hocs/withOnOutsideClick.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/hocs/withOnOutsideClick.js +0 -0
- /package/lib/{esm/core-react → core-react}/icons/ConditionalIconItem.js +0 -0
- /package/lib/{esm/core-react → core-react}/icons/SvgPath.js +0 -0
- /package/lib/{esm/core-react → core-react}/icons/WebFontIcon.js +0 -0
- /package/lib/{cjs/core-react → core-react}/inputs/InputStatus.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/inputs/InputStatus.js +0 -0
- /package/lib/{esm/core-react → core-react}/inputs/LabeledComponentProps.js +0 -0
- /package/lib/{cjs/core-react → core-react}/inputs/numberinput/NumberInput.d.ts +0 -0
- /package/lib/{cjs/core-react → core-react}/l10n/LocalizationProvider.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/l10n/LocalizationProvider.js +0 -0
- /package/lib/{cjs/core-react → core-react}/l10n/usePackageTranslation.d.ts +0 -0
- /package/lib/{cjs/core-react → core-react}/l10n/useTranslation.d.ts +0 -0
- /package/lib/{cjs/core-react → core-react}/listbox/Listbox.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/listbox/Listbox.js +0 -0
- /package/lib/{esm/core-react → core-react}/loading/LoadingBar.js +0 -0
- /package/lib/{cjs/core-react → core-react}/loading/LoadingSpinner.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/loading/LoadingSpinner.js +0 -0
- /package/lib/{esm/core-react → core-react}/loading/LoadingStatus.js +0 -0
- /package/lib/{cjs/core-react → core-react}/notification/MessageType.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/notification/MessageType.js +0 -0
- /package/lib/{cjs/core-react → core-react}/settings/SettingsManager.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/text/FilteredText.js +0 -0
- /package/lib/{esm/core-react → core-react}/text/StyledText.js +0 -0
- /package/lib/{esm/core-react → core-react}/text/TextProps.js +0 -0
- /package/lib/{esm/core-react → core-react}/tree/Branch.js +0 -0
- /package/lib/{cjs/core-react → core-react}/uistate/UiStateStorage.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/uistate/UiStateStorage.js +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/ListenerType.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/utils/ListenerType.js +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/PointProps.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/utils/PointProps.js +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/Props.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/utils/Props.js +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/ScrollPositionMaintainer.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/utils/ScrollPositionMaintainer.js +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/Timer.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/utils/Timer.js +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/flattenChildren.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/utils/flattenChildren.js +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/getBestBWContrastColor.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/utils/getBestBWContrastColor.js +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/getCssVariable.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/utils/getCssVariable.js +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/getDisplayName.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/utils/getDisplayName.js +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/getUserColor.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/utils/getUserColor.js +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/hooks/useCrossOriginPopup.d.ts +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/hooks/useDisposable.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/utils/hooks/useDisposable.js +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/hooks/useEffectSkipFirst.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/utils/hooks/useEffectSkipFirst.js +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/hooks/useInterval.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/utils/hooks/useInterval.js +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/hooks/useLifecycleLogging.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/utils/hooks/useLifecycleLogging.js +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/hooks/useOnOutsideClick.d.ts +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/hooks/useProximityToMouse.d.ts +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/hooks/useRefEffect.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/utils/hooks/useRefEffect.js +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/hooks/useRefState.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/utils/hooks/useRefState.js +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/hooks/useRefs.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/utils/hooks/useRefs.js +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/hooks/useResizeObserver.d.ts +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/hooks/useTargeted.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/utils/hooks/useTargeted.js +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/hooks/useThrottledFn.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/utils/hooks/useThrottledFn.js +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/matches.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/utils/matches.js +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/reuseOrCreatePromise.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/utils/reuseOrCreatePromise.js +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/shallowDiffers.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/utils/shallowDiffers.js +0 -0
- /package/lib/{cjs/core-react → core-react}/utils/typeUtils.d.ts +0 -0
- /package/lib/{esm/core-react → core-react}/utils/typeUtils.js +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module Inputs
|
|
3
|
+
*/
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import type { CommonProps } from "../utils/Props.js";
|
|
6
|
+
import type { LabeledComponentProps, MessagedComponentProps } from "./LabeledComponentProps.js";
|
|
7
|
+
/** Properties for [[InputLabel]] components
|
|
8
|
+
* @public
|
|
9
|
+
* @deprecated in 4.12.0. Props of deprecated component {@link InputLabel}.
|
|
10
|
+
*/
|
|
11
|
+
export interface InputLabelProps extends LabeledComponentProps, MessagedComponentProps, CommonProps {
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** Labeled content */
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
/** Text input wrapper that provides additional styling and labeling
|
|
17
|
+
* @public
|
|
18
|
+
* @deprecated in 4.12.0. Use {@link https://itwinui.bentley.com/docs/input iTwinUI input} instead.
|
|
19
|
+
*/
|
|
20
|
+
export declare class InputLabel extends React.PureComponent<InputLabelProps> {
|
|
21
|
+
render(): React.ReactElement;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=InputLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputLabel.d.ts","sourceRoot":"","sources":["../../../src/core-react/inputs/InputLabel.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAQH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,4BAA4B,CAAC;AAIpC;;;GAGG;AACH,MAAM,WAAW,eACf,SAAQ,qBAAqB,EAC3B,sBAAsB,EACtB,WAAW;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sBAAsB;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAQD;;;GAGG;AACH,qBAAa,UAAW,SAAQ,KAAK,CAAC,aAAa,CAAC,eAAe,CAAC;IAClD,MAAM,IAAI,KAAK,CAAC,YAAY;CAgD7C"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
/** @packageDocumentation
|
|
6
|
+
* @module Inputs
|
|
7
|
+
*/
|
|
8
|
+
import { SvgStatusError, SvgStatusSuccess, SvgStatusWarning, } from "@itwin/itwinui-icons-react";
|
|
9
|
+
import classnames from "classnames";
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import { Icon } from "../icons/IconComponent.js";
|
|
12
|
+
import { InputStatus } from "./InputStatus.js";
|
|
13
|
+
const inputLabelIconSpec = {
|
|
14
|
+
[InputStatus.Error]: React.createElement(SvgStatusError, null),
|
|
15
|
+
[InputStatus.Success]: React.createElement(SvgStatusSuccess, null),
|
|
16
|
+
[InputStatus.Warning]: React.createElement(SvgStatusWarning, null),
|
|
17
|
+
};
|
|
18
|
+
/** Text input wrapper that provides additional styling and labeling
|
|
19
|
+
* @public
|
|
20
|
+
* @deprecated in 4.12.0. Use {@link https://itwinui.bentley.com/docs/input iTwinUI input} instead.
|
|
21
|
+
*/
|
|
22
|
+
export class InputLabel extends React.PureComponent {
|
|
23
|
+
render() {
|
|
24
|
+
const { label, status, className, style, labelClassName, labelStyle, message, messageClassName, messageStyle, } = this.props;
|
|
25
|
+
return (React.createElement("label", { style: style, className: classnames("uicore-inputs-labeled-input", this.props.disabled && "uicore-disabled", status, className) },
|
|
26
|
+
label && (React.createElement("div", { className: classnames("uicore-label", labelClassName), style: labelStyle }, label)),
|
|
27
|
+
React.createElement("div", { className: classnames("input", { "with-icon": !!status }) },
|
|
28
|
+
this.props.children,
|
|
29
|
+
status && (React.createElement(Icon, { className: "icon", iconSpec: inputLabelIconSpec[`{status}`] }))),
|
|
30
|
+
message && (React.createElement("div", { className: classnames("uicore-message", messageClassName), style: messageStyle }, message))));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=InputLabel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputLabel.js","sourceRoot":"","sources":["../../../src/core-react/inputs/InputLabel.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAqB/C,MAAM,kBAAkB,GAAgC;IACtD,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,oBAAC,cAAc,OAAG;IACvC,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,oBAAC,gBAAgB,OAAG;IAC3C,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,oBAAC,gBAAgB,OAAG;CAC5C,CAAC;AAEF;;;GAGG;AACH,MAAM,OAAO,UAAW,SAAQ,KAAK,CAAC,aAA8B;IAClD,MAAM;QACpB,MAAM,EACJ,KAAK,EACL,MAAM,EACN,SAAS,EACT,KAAK,EACL,cAAc,EACd,UAAU,EACV,OAAO,EACP,gBAAgB,EAChB,YAAY,GACb,GAAG,IAAI,CAAC,KAAK,CAAC;QAEf,OAAO,CACL,+BACE,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,UAAU,CACnB,6BAA6B,EAC7B,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,iBAAiB,EACxC,MAAM,EACN,SAAS,CACV;YAEA,KAAK,IAAI,CACR,6BACE,SAAS,EAAE,UAAU,CAAC,cAAc,EAAE,cAAc,CAAC,EACrD,KAAK,EAAE,UAAU,IAEhB,KAAK,CACF,CACP;YACD,6BAAK,SAAS,EAAE,UAAU,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;gBAC3D,IAAI,CAAC,KAAK,CAAC,QAAQ;gBACnB,MAAM,IAAI,CACT,oBAAC,IAAI,IAAC,SAAS,EAAC,MAAM,EAAC,QAAQ,EAAE,kBAAkB,CAAC,UAAU,CAAC,GAAI,CACpE,CACG;YACL,OAAO,IAAI,CACV,6BACE,SAAS,EAAE,UAAU,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,EACzD,KAAK,EAAE,YAAY,IAElB,OAAO,CACJ,CACP,CACK,CACT,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Inputs\n */\n\nimport {\n SvgStatusError,\n SvgStatusSuccess,\n SvgStatusWarning,\n} from \"@itwin/itwinui-icons-react\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport type { IconSpec } from \"../icons/IconComponent.js\";\nimport { Icon } from \"../icons/IconComponent.js\";\nimport type { CommonProps } from \"../utils/Props.js\";\nimport { InputStatus } from \"./InputStatus.js\";\nimport type {\n LabeledComponentProps,\n MessagedComponentProps,\n} from \"./LabeledComponentProps.js\";\n\n/* eslint-disable deprecation/deprecation */\n\n/** Properties for [[InputLabel]] components\n * @public\n * @deprecated in 4.12.0. Props of deprecated component {@link InputLabel}.\n */\nexport interface InputLabelProps\n extends LabeledComponentProps,\n MessagedComponentProps,\n CommonProps {\n disabled?: boolean;\n /** Labeled content */\n children?: React.ReactNode;\n}\n\nconst inputLabelIconSpec: { [key: string]: IconSpec } = {\n [InputStatus.Error]: <SvgStatusError />,\n [InputStatus.Success]: <SvgStatusSuccess />,\n [InputStatus.Warning]: <SvgStatusWarning />,\n};\n\n/** Text input wrapper that provides additional styling and labeling\n * @public\n * @deprecated in 4.12.0. Use {@link https://itwinui.bentley.com/docs/input iTwinUI input} instead.\n */\nexport class InputLabel extends React.PureComponent<InputLabelProps> {\n public override render(): React.ReactElement {\n const {\n label,\n status,\n className,\n style,\n labelClassName,\n labelStyle,\n message,\n messageClassName,\n messageStyle,\n } = this.props;\n\n return (\n <label\n style={style}\n className={classnames(\n \"uicore-inputs-labeled-input\",\n this.props.disabled && \"uicore-disabled\",\n status,\n className\n )}\n >\n {label && (\n <div\n className={classnames(\"uicore-label\", labelClassName)}\n style={labelStyle}\n >\n {label}\n </div>\n )}\n <div className={classnames(\"input\", { \"with-icon\": !!status })}>\n {this.props.children}\n {status && (\n <Icon className=\"icon\" iconSpec={inputLabelIconSpec[`{status}`]} />\n )}\n </div>\n {message && (\n <div\n className={classnames(\"uicore-message\", messageClassName)}\n style={messageStyle}\n >\n {message}\n </div>\n )}\n </label>\n );\n }\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputStatus.d.ts","sourceRoot":"","sources":["../../../src/core-react/inputs/InputStatus.ts"],"names":[],"mappings":"AAIA;;GAEG;AAIH;;;GAGG;AACH,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,UAAU;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputStatus.js","sourceRoot":"","sources":["../../../src/core-react/inputs/InputStatus.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAIH;;;GAGG;AACH,MAAM,CAAN,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,kCAAmB,CAAA;IACnB,8BAAe,CAAA;AACjB,CAAC,EAJW,WAAW,KAAX,WAAW,QAItB","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Inputs\n */\n\nimport type { InputLabel } from \"./InputLabel.js\";\n\n/** Enum for Input status\n * @public\n * @deprecated in 4.12.0. Enum used in a deprecated component {@link InputLabel}.\n */\nexport enum InputStatus {\n Success = \"success\",\n Warning = \"warning\",\n Error = \"error\",\n}\n"]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module Inputs
|
|
3
|
+
*/
|
|
4
|
+
import type * as React from "react";
|
|
5
|
+
import type { InputStatus } from "./InputStatus.js";
|
|
6
|
+
/** Properties for labeled components
|
|
7
|
+
* @public
|
|
8
|
+
* @deprecated in 4.12.0. Props of deprecated component {@link InputLabel}.
|
|
9
|
+
*/
|
|
10
|
+
export interface LabeledComponentProps {
|
|
11
|
+
/** Text that will be shown next to or above the input. */
|
|
12
|
+
label?: string;
|
|
13
|
+
/** Input status like: "Success", "Warning" or "Error" */
|
|
14
|
+
status?: InputStatus;
|
|
15
|
+
/** Custom CSS class name for the checkbox input element */
|
|
16
|
+
inputClassName?: string;
|
|
17
|
+
/** Custom CSS Style for the checkbox input element */
|
|
18
|
+
inputStyle?: React.CSSProperties;
|
|
19
|
+
/** Custom CSS class name for the label */
|
|
20
|
+
labelClassName?: string;
|
|
21
|
+
/** Custom CSS Style for the label */
|
|
22
|
+
labelStyle?: React.CSSProperties;
|
|
23
|
+
}
|
|
24
|
+
/** Properties for components with messages
|
|
25
|
+
* @public
|
|
26
|
+
* @deprecated in 4.12.0. Props of deprecated component {@link InputLabel}.
|
|
27
|
+
*/
|
|
28
|
+
export interface MessagedComponentProps {
|
|
29
|
+
/** Optional text shown below the input. */
|
|
30
|
+
message?: string;
|
|
31
|
+
/** Custom CSS class name for the message */
|
|
32
|
+
messageClassName?: string;
|
|
33
|
+
/** Custom CSS Style for the message */
|
|
34
|
+
messageStyle?: React.CSSProperties;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=LabeledComponentProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LabeledComponentProps.d.ts","sourceRoot":"","sources":["../../../src/core-react/inputs/LabeledComponentProps.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,0DAA0D;IAC1D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yDAAyD;IAEzD,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,2DAA2D;IAC3D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sDAAsD;IACtD,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACjC,0CAA0C;IAC1C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qCAAqC;IACrC,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAClC;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,2CAA2C;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4CAA4C;IAC5C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,uCAAuC;IACvC,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CACpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LabeledComponentProps.js","sourceRoot":"","sources":["../../../src/core-react/inputs/LabeledComponentProps.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Inputs\n */\n\nimport type * as React from \"react\";\nimport type { InputLabel } from \"./InputLabel.js\";\nimport type { InputStatus } from \"./InputStatus.js\";\n\n/** Properties for labeled components\n * @public\n * @deprecated in 4.12.0. Props of deprecated component {@link InputLabel}.\n */\nexport interface LabeledComponentProps {\n /** Text that will be shown next to or above the input. */\n label?: string;\n /** Input status like: \"Success\", \"Warning\" or \"Error\" */\n // eslint-disable-next-line deprecation/deprecation\n status?: InputStatus;\n /** Custom CSS class name for the checkbox input element */\n inputClassName?: string;\n /** Custom CSS Style for the checkbox input element */\n inputStyle?: React.CSSProperties;\n /** Custom CSS class name for the label */\n labelClassName?: string;\n /** Custom CSS Style for the label */\n labelStyle?: React.CSSProperties;\n}\n\n/** Properties for components with messages\n * @public\n * @deprecated in 4.12.0. Props of deprecated component {@link InputLabel}.\n */\nexport interface MessagedComponentProps {\n /** Optional text shown below the input. */\n message?: string;\n /** Custom CSS class name for the message */\n messageClassName?: string;\n /** Custom CSS Style for the message */\n messageStyle?: React.CSSProperties;\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
@use "./index" as *;
|
|
6
|
+
|
|
7
|
+
.uicore-inputs-input {
|
|
8
|
+
@include uicore-inputs-input;
|
|
9
|
+
}
|
|
10
|
+
.uicore-inputs-labeled-input {
|
|
11
|
+
@include uicore-inputs-labeled-input;
|
|
12
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** @packageDocumentation
|
|
2
|
+
* @module Inputs
|
|
3
|
+
*/
|
|
4
|
+
import "./IconInput.scss";
|
|
5
|
+
import * as React from "react";
|
|
6
|
+
import type { InputProps } from "../Input.js";
|
|
7
|
+
/** Properties for the [[IconInput]] component
|
|
8
|
+
* @public
|
|
9
|
+
* @deprecated in 4.12.0. Props of deprecated component {@link IconInput}.
|
|
10
|
+
*/
|
|
11
|
+
export interface IconInputProps extends Omit<InputProps, "size"> {
|
|
12
|
+
/** Icon displayed to the left of the Input field within the IconInput component */
|
|
13
|
+
icon: React.ReactNode;
|
|
14
|
+
/** CSS class name for the IconInput component container div */
|
|
15
|
+
containerClassName?: string;
|
|
16
|
+
/** Provides ability to return reference to HTMLInputElement */
|
|
17
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
18
|
+
/** Modify size of the input. */
|
|
19
|
+
size?: "small" | "large";
|
|
20
|
+
}
|
|
21
|
+
/** Input component with icon to the left of the input field
|
|
22
|
+
* @public
|
|
23
|
+
* @deprecated in 4.12.0. Use {@link https://itwinui.bentley.com/docs/inputwithdecorations iTwinUI input decorations} instead.
|
|
24
|
+
*/
|
|
25
|
+
export declare const IconInput: (props: IconInputProps) => React.ReactNode;
|
|
26
|
+
//# sourceMappingURL=IconInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconInput.d.ts","sourceRoot":"","sources":["../../../../src/core-react/inputs/iconinput/IconInput.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,kBAAkB,CAAC;AAE1B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C;;;GAGG;AACH,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC;IAC9D,mFAAmF;IACnF,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,+DAA+D;IAC/D,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,+DAA+D;IAC/D,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAClC,gCAAgC;IAChC,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CAC1B;AA0BD;;;GAGG;AAEH,eAAO,MAAM,SAAS,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,KAAK,CAAC,SACpC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
/** @packageDocumentation
|
|
6
|
+
* @module Inputs
|
|
7
|
+
*/
|
|
8
|
+
import "./IconInput.scss";
|
|
9
|
+
import classnames from "classnames";
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import { Input } from "../Input.js"; // NEEDSWORK - for nativeKeyHandler
|
|
12
|
+
/** Input component with icon to the left of the input field
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
16
|
+
const ForwardRefIconInput = React.forwardRef(function ForwardRefIconInput(props, ref) {
|
|
17
|
+
const { className, icon, containerClassName, size, ...otherProps } = props;
|
|
18
|
+
// NEEDSWORK: still using core-react Input component because of `nativeKeyHandler` prop
|
|
19
|
+
return (React.createElement("div", { className: classnames("core-iconInput-container", containerClassName) },
|
|
20
|
+
React.createElement(Input, { ref: ref, className: classnames("core-input", className), ...otherProps }),
|
|
21
|
+
React.createElement("div", { className: "core-iconInput-icon" }, icon)));
|
|
22
|
+
});
|
|
23
|
+
/** Input component with icon to the left of the input field
|
|
24
|
+
* @public
|
|
25
|
+
* @deprecated in 4.12.0. Use {@link https://itwinui.bentley.com/docs/inputwithdecorations iTwinUI input decorations} instead.
|
|
26
|
+
*/
|
|
27
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
28
|
+
export const IconInput = ForwardRefIconInput;
|
|
29
|
+
//# sourceMappingURL=IconInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconInput.js","sourceRoot":"","sources":["../../../../src/core-react/inputs/iconinput/IconInput.tsx"],"names":[],"mappings":"AAAA;;;gGAGgG;AAChG;;GAEG;AAEH,OAAO,kBAAkB,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC,CAAC,mCAAmC;AAiBxE;;GAEG;AACH,mDAAmD;AACnD,MAAM,mBAAmB,GAAG,KAAK,CAAC,UAAU,CAC1C,SAAS,mBAAmB,CAAC,KAAK,EAAE,GAAG;IACrC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK,CAAC;IAE3E,uFAAuF;IACvF,OAAO,CACL,6BACE,SAAS,EAAE,UAAU,CAAC,0BAA0B,EAAE,kBAAkB,CAAC;QAErE,oBAAC,KAAK,IACJ,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,UAAU,CAAC,YAAY,EAAE,SAAS,CAAC,KAC1C,UAAU,GACd;QACF,6BAAK,SAAS,EAAC,qBAAqB,IAAE,IAAI,CAAO,CAC7C,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF;;;GAGG;AACH,mDAAmD;AACnD,MAAM,CAAC,MAAM,SAAS,GACpB,mBAAmB,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Inputs\n */\n\nimport \"./IconInput.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport type { InputProps } from \"../Input.js\";\nimport { Input } from \"../Input.js\"; // NEEDSWORK - for nativeKeyHandler\n\n/** Properties for the [[IconInput]] component\n * @public\n * @deprecated in 4.12.0. Props of deprecated component {@link IconInput}.\n */\nexport interface IconInputProps extends Omit<InputProps, \"size\"> {\n /** Icon displayed to the left of the Input field within the IconInput component */\n icon: React.ReactNode;\n /** CSS class name for the IconInput component container div */\n containerClassName?: string;\n /** Provides ability to return reference to HTMLInputElement */\n ref?: React.Ref<HTMLInputElement>;\n /** Modify size of the input. */\n size?: \"small\" | \"large\";\n}\n\n/** Input component with icon to the left of the input field\n * @public\n */\n// eslint-disable-next-line deprecation/deprecation\nconst ForwardRefIconInput = React.forwardRef<HTMLInputElement, IconInputProps>(\n function ForwardRefIconInput(props, ref) {\n const { className, icon, containerClassName, size, ...otherProps } = props;\n\n // NEEDSWORK: still using core-react Input component because of `nativeKeyHandler` prop\n return (\n <div\n className={classnames(\"core-iconInput-container\", containerClassName)}\n >\n <Input\n ref={ref}\n className={classnames(\"core-input\", className)}\n {...otherProps}\n />\n <div className=\"core-iconInput-icon\">{icon}</div>\n </div>\n );\n }\n);\n\n/** Input component with icon to the left of the input field\n * @public\n * @deprecated in 4.12.0. Use {@link https://itwinui.bentley.com/docs/inputwithdecorations iTwinUI input decorations} instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nexport const IconInput: (props: IconInputProps) => React.ReactNode =\n ForwardRefIconInput;\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
@use "../../base/base" as *;
|
|
6
|
+
|
|
7
|
+
.core-iconInput-container {
|
|
8
|
+
position: relative;
|
|
9
|
+
padding: 0;
|
|
10
|
+
margin: 0;
|
|
11
|
+
|
|
12
|
+
.core-input {
|
|
13
|
+
margin: 0;
|
|
14
|
+
padding-left: 30px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.core-iconInput-icon {
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: 0;
|
|
20
|
+
left: 0;
|
|
21
|
+
width: 30px;
|
|
22
|
+
height: 100%;
|
|
23
|
+
@include uicore-centered;
|
|
24
|
+
|
|
25
|
+
.icon {
|
|
26
|
+
width: 16px;
|
|
27
|
+
height: 16px;
|
|
28
|
+
|
|
29
|
+
margin-top: 2px;
|
|
30
|
+
@include uicore-centered;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
@forward "../style/index";
|
|
6
|
+
|
|
7
|
+
@forward "./variables";
|
|
8
|
+
@forward "./input";
|
|
9
|
+
@forward "./input-label";
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
@use "../style/baseline";
|
|
6
|
+
|
|
7
|
+
@forward "../style/index";
|
|
8
|
+
|
|
9
|
+
@mixin uicore-inputs-labeled-input {
|
|
10
|
+
display: block;
|
|
11
|
+
padding: 0;
|
|
12
|
+
margin: 0 0 baseline.$uicore-unbordered-padding;
|
|
13
|
+
text-align: left;
|
|
14
|
+
font-size: var(--iui-font-size-1);
|
|
15
|
+
font-weight: var(--iui-font-weight-normal);
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
|
|
18
|
+
> .uicore-label {
|
|
19
|
+
padding: 0;
|
|
20
|
+
margin: 0;
|
|
21
|
+
border: 0 none transparent;
|
|
22
|
+
display: block;
|
|
23
|
+
font-size: var(--iui-font-size-1);
|
|
24
|
+
font-weight: var(--iui-font-weight-semibold);
|
|
25
|
+
line-height: var(--iui-size-l);
|
|
26
|
+
text-align: left;
|
|
27
|
+
color: var(--iui-color-text);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
> .input {
|
|
31
|
+
position: relative;
|
|
32
|
+
/// Needed to vertically align the icon:
|
|
33
|
+
display: inline-block;
|
|
34
|
+
width: 100%;
|
|
35
|
+
|
|
36
|
+
&.with-icon {
|
|
37
|
+
> input {
|
|
38
|
+
padding-right: calc(
|
|
39
|
+
#{baseline.$uicore-bordered-padding} + var(--iui-size-l)
|
|
40
|
+
);
|
|
41
|
+
margin-right: calc(
|
|
42
|
+
#{baseline.$uicore-bordered-padding} + var(--iui-size-l)
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
> .icon {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
position: absolute;
|
|
51
|
+
right: 0;
|
|
52
|
+
top: 0;
|
|
53
|
+
bottom: 0;
|
|
54
|
+
padding: baseline.$uicore-bordered-padding;
|
|
55
|
+
|
|
56
|
+
font-size: var(--iui-font-size-1);
|
|
57
|
+
font-weight: normal;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
> .uicore-message {
|
|
62
|
+
display: block;
|
|
63
|
+
font-size: var(--iui-font-size-0);
|
|
64
|
+
line-height: var(--iui-size-l);
|
|
65
|
+
color: var(--iui-color-text-muted);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/// Status colors ----------------------------------------------------------
|
|
69
|
+
|
|
70
|
+
$status-colors: (
|
|
71
|
+
success: var(--iui-color-positive-hsl),
|
|
72
|
+
warning: var(--iui-color-warning-hsl),
|
|
73
|
+
error: var(--iui-color-negative-hsl),
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
@each $status, $color in $status-colors {
|
|
77
|
+
&.#{$status},
|
|
78
|
+
&.#{$status} > .uicore-message {
|
|
79
|
+
color: rgb($color);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&.#{$status} > .input {
|
|
83
|
+
> input,
|
|
84
|
+
> .uicore-inputs-input {
|
|
85
|
+
border-color: rgb($color);
|
|
86
|
+
box-shadow: var(--iui-focus-box-shadow) 0px 1px 1px inset;
|
|
87
|
+
|
|
88
|
+
&:focus {
|
|
89
|
+
border-color: rgb($color);
|
|
90
|
+
box-shadow: rgba($color, var(--iui-opacity-4)) 0px 0px 0px 2px;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
@use "./variables";
|
|
6
|
+
|
|
7
|
+
@forward "../style/index";
|
|
8
|
+
@forward "./variables";
|
|
9
|
+
|
|
10
|
+
@mixin uicore-inputs-input {
|
|
11
|
+
display: block;
|
|
12
|
+
width: 100%;
|
|
13
|
+
padding: variables.$uicore-iui-input-padding;
|
|
14
|
+
margin: variables.$uicore-inputs-margin 0;
|
|
15
|
+
font-family: var(--iui-font-sans);
|
|
16
|
+
font-size: var(--iui-font-size-1);
|
|
17
|
+
line-height: normal;
|
|
18
|
+
color: var(--iui-color-text);
|
|
19
|
+
background-color: var(--iui-color-background);
|
|
20
|
+
background-image: none;
|
|
21
|
+
border: 1px solid var(--iui-color-border-foreground);
|
|
22
|
+
border-radius: var(--iui-border-radius-1);
|
|
23
|
+
box-shadow: var(--iui-focus-box-shadow) 0px 1px 1px inset;
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
transition: border-color var(--iui-duration-1) ease-in-out,
|
|
26
|
+
box-shadow var(--iui-duration-1) ease-in-out;
|
|
27
|
+
|
|
28
|
+
&:-ms-input-placeholder {
|
|
29
|
+
color: var(--iui-color-text-disabled);
|
|
30
|
+
}
|
|
31
|
+
&::-webkit-input-placeholder {
|
|
32
|
+
color: var(--iui-color-text-disabled);
|
|
33
|
+
}
|
|
34
|
+
&::placeholder {
|
|
35
|
+
color: var(--iui-color-text-disabled);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&[disabled] {
|
|
39
|
+
background-color: var(--iui-color-background-backdrop);
|
|
40
|
+
border-color: var(--iui-color-text-disabled);
|
|
41
|
+
color: var(--iui-color-text-disabled);
|
|
42
|
+
cursor: not-allowed;
|
|
43
|
+
opacity: var(--iui-opacity-4);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&[readonly] {
|
|
47
|
+
color: var(--iui-color-text-muted);
|
|
48
|
+
cursor: default;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:focus {
|
|
52
|
+
outline: 0px;
|
|
53
|
+
border-color: hsl(var(--iui-color-foreground-hsl) / var(--iui-opacity-4));
|
|
54
|
+
box-shadow: variables.$uicore-inputs-focus-boxshadow;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../../src/core-react/inputs/numberinput/NumberInput.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAEH,OAAO,oBAAoB,CAAC;AAE5B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAW7C,KAAK,UAAU,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,KAAK,CAAC,CAAC;AAE/D;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GACxB,MAAM,GACN,CAAC,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC,CAAC;AAEhD;;;GAGG;AACH,MAAM,WAAW,gBACf,SAAQ,IAAI,CAAC,UAAU,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,UAAU,CAAC;IAC7D,iEAAiE;IACjE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iEAAiE;IACjE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,yCAAyC;IACzC,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,iDAAiD;IACjD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,6DAA6D;IAC7D,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,kHAAkH;IAClH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,8CAA8C;IAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0BAA0B;IAC1B,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrD,sJAAsJ;IACtJ,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5E,0HAA0H;IAC1H,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACpE,gEAAgE;IAChE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,+DAA+D;IAC/D,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAClC;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAwQD;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,CAAC,KAAK,EAAE,gBAAgB,KAAK,KAAK,CAAC,SACtC,CAAC"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/*---------------------------------------------------------------------------------------------
|
|
2
|
+
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
3
|
+
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
4
|
+
*--------------------------------------------------------------------------------------------*/
|
|
5
|
+
/** @packageDocumentation
|
|
6
|
+
* @module Inputs
|
|
7
|
+
*/
|
|
8
|
+
import "./NumberInput.scss";
|
|
9
|
+
import classnames from "classnames";
|
|
10
|
+
import * as React from "react";
|
|
11
|
+
import { Key } from "ts-key-enum";
|
|
12
|
+
import { Input } from "@itwin/itwinui-react";
|
|
13
|
+
import { Icon } from "../../icons/IconComponent.js";
|
|
14
|
+
import { SvgCaretDown, SvgCaretDownSmall, SvgCaretUp, SvgCaretUpSmall, } from "@itwin/itwinui-icons-react";
|
|
15
|
+
const ForwardRefNumberInput = React.forwardRef(function ForwardRefNumberInput(props, ref) {
|
|
16
|
+
const { containerClassName, className, value, min, max, precision, format, parse, onChange, onBlur, onKeyDown, step, snap, showTouchButtons, containerStyle, isControlled, ...otherProps } = props;
|
|
17
|
+
const currentValueRef = React.useRef(value);
|
|
18
|
+
/**
|
|
19
|
+
* Used internally to parse the argument x to it's numeric representation.
|
|
20
|
+
* If the argument cannot be converted to finite number returns 0; If a
|
|
21
|
+
* "precision" prop is specified uses it round the number with that
|
|
22
|
+
* precision (no fixed precision here because the return value is float, not
|
|
23
|
+
* string).
|
|
24
|
+
*/
|
|
25
|
+
const parseInternal = React.useCallback((x) => {
|
|
26
|
+
let n;
|
|
27
|
+
if (parse)
|
|
28
|
+
n = parse(x);
|
|
29
|
+
if (undefined === n || null === n) {
|
|
30
|
+
n = parseFloat(x);
|
|
31
|
+
if (isNaN(n) || !isFinite(n)) {
|
|
32
|
+
n = 0;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
const localPrecision = undefined === precision ? 10 : precision;
|
|
36
|
+
const q = Math.pow(10, localPrecision);
|
|
37
|
+
const localMin = undefined === min ? Number.MIN_SAFE_INTEGER : min;
|
|
38
|
+
const localMax = undefined === max ? Number.MAX_SAFE_INTEGER : max;
|
|
39
|
+
n = Math.min(Math.max(n, localMin), localMax);
|
|
40
|
+
n = Math.round(n * q) / q;
|
|
41
|
+
return n;
|
|
42
|
+
}, [parse, precision, min, max]);
|
|
43
|
+
/**
|
|
44
|
+
* This is used internally to format a number to its display representation.
|
|
45
|
+
* It will invoke the format function if one is provided.
|
|
46
|
+
*/
|
|
47
|
+
const formatInternal = React.useCallback((num) => {
|
|
48
|
+
const localPrecision = undefined === precision || null === precision ? 0 : precision;
|
|
49
|
+
const str = undefined === num || null === num ? "" : num.toFixed(localPrecision);
|
|
50
|
+
if (format)
|
|
51
|
+
return format(num, str);
|
|
52
|
+
return str;
|
|
53
|
+
}, [format, precision]);
|
|
54
|
+
const [formattedValue, setFormattedValue] = React.useState(() => formatInternal(value));
|
|
55
|
+
// See if new initialValue props have changed since component mounted
|
|
56
|
+
React.useEffect(() => {
|
|
57
|
+
currentValueRef.current = value;
|
|
58
|
+
const currentFormattedValue = formatInternal(currentValueRef.current);
|
|
59
|
+
setFormattedValue(currentFormattedValue);
|
|
60
|
+
}, [formatInternal, value]);
|
|
61
|
+
const handleChange = React.useCallback((event) => {
|
|
62
|
+
const newVal = event.currentTarget.value;
|
|
63
|
+
setFormattedValue(newVal);
|
|
64
|
+
isControlled && onChange && onChange(parseInternal(newVal), newVal);
|
|
65
|
+
}, [isControlled, onChange, parseInternal]);
|
|
66
|
+
const updateValue = React.useCallback((newVal) => {
|
|
67
|
+
const newFormattedVal = formatInternal(newVal);
|
|
68
|
+
onChange && onChange(newVal, newFormattedVal);
|
|
69
|
+
setFormattedValue(newFormattedVal);
|
|
70
|
+
}, [onChange, formatInternal]);
|
|
71
|
+
const updateValueFromString = React.useCallback((strValue) => {
|
|
72
|
+
const newVal = parseInternal(strValue);
|
|
73
|
+
updateValue(newVal);
|
|
74
|
+
}, [parseInternal, updateValue]);
|
|
75
|
+
const handleBlur = React.useCallback((event) => {
|
|
76
|
+
const newVal = parseInternal(event.target.value);
|
|
77
|
+
onBlur && onBlur(event);
|
|
78
|
+
updateValue(newVal);
|
|
79
|
+
}, [parseInternal, updateValue, onBlur]);
|
|
80
|
+
const getIncrementValue = React.useCallback((increment) => {
|
|
81
|
+
if (typeof step === "function") {
|
|
82
|
+
const stepVal = step(increment ? "up" : "down");
|
|
83
|
+
return stepVal ? stepVal : 1;
|
|
84
|
+
}
|
|
85
|
+
return !step ? 1 : step;
|
|
86
|
+
}, [step]);
|
|
87
|
+
/**
|
|
88
|
+
* The internal method that actually sets the new value on the input
|
|
89
|
+
*/
|
|
90
|
+
const applyStep = React.useCallback((increment) => {
|
|
91
|
+
const incrementValue = getIncrementValue(increment);
|
|
92
|
+
let num = parseInternal(formattedValue) +
|
|
93
|
+
(increment ? incrementValue : -incrementValue);
|
|
94
|
+
if (snap) {
|
|
95
|
+
num = Math.round(num / incrementValue) * incrementValue;
|
|
96
|
+
}
|
|
97
|
+
const localMin = undefined === min ? Number.MIN_SAFE_INTEGER : min;
|
|
98
|
+
const localMax = undefined === max ? Number.MAX_SAFE_INTEGER : max;
|
|
99
|
+
num = Math.min(Math.max(num, localMin), localMax);
|
|
100
|
+
updateValue(num);
|
|
101
|
+
}, [
|
|
102
|
+
formattedValue,
|
|
103
|
+
getIncrementValue,
|
|
104
|
+
max,
|
|
105
|
+
min,
|
|
106
|
+
parseInternal,
|
|
107
|
+
snap,
|
|
108
|
+
updateValue,
|
|
109
|
+
]);
|
|
110
|
+
const handleKeyDown = React.useCallback((event) => {
|
|
111
|
+
if (event.key === Key.Enter.valueOf()) {
|
|
112
|
+
updateValueFromString(event.currentTarget.value);
|
|
113
|
+
event.preventDefault();
|
|
114
|
+
event.stopPropagation();
|
|
115
|
+
}
|
|
116
|
+
else if (event.key === Key.Escape.valueOf()) {
|
|
117
|
+
setFormattedValue(formatInternal(currentValueRef.current));
|
|
118
|
+
event.preventDefault();
|
|
119
|
+
}
|
|
120
|
+
else if (event.key === Key.ArrowDown.valueOf()) {
|
|
121
|
+
applyStep(false);
|
|
122
|
+
event.preventDefault();
|
|
123
|
+
event.stopPropagation();
|
|
124
|
+
}
|
|
125
|
+
else if (event.key === Key.ArrowUp.valueOf()) {
|
|
126
|
+
applyStep(true);
|
|
127
|
+
event.preventDefault();
|
|
128
|
+
event.stopPropagation();
|
|
129
|
+
}
|
|
130
|
+
onKeyDown && onKeyDown(event);
|
|
131
|
+
}, [applyStep, formatInternal, updateValueFromString, onKeyDown]);
|
|
132
|
+
const handleDownClick = React.useCallback((event) => {
|
|
133
|
+
applyStep(false);
|
|
134
|
+
event.preventDefault();
|
|
135
|
+
}, [applyStep]);
|
|
136
|
+
const handleUpClick = React.useCallback((event) => {
|
|
137
|
+
applyStep(true);
|
|
138
|
+
event.preventDefault();
|
|
139
|
+
}, [applyStep]);
|
|
140
|
+
const handleFocus = React.useCallback((event) => {
|
|
141
|
+
event.currentTarget.select();
|
|
142
|
+
}, []);
|
|
143
|
+
const isDisabled = !!otherProps.disabled;
|
|
144
|
+
const containerClasses = classnames("core-number-input-container", containerClassName, showTouchButtons && "core-number-buttons-for-touch", isDisabled && "core-number-input-disabled");
|
|
145
|
+
const caretUp = showTouchButtons ? React.createElement(SvgCaretUp, null) : React.createElement(SvgCaretUpSmall, null);
|
|
146
|
+
const caretDown = showTouchButtons ? React.createElement(SvgCaretDown, null) : React.createElement(SvgCaretDownSmall, null);
|
|
147
|
+
return (React.createElement("div", { className: containerClasses, style: containerStyle },
|
|
148
|
+
React.createElement(Input, { ref: ref, value: formattedValue, onChange: handleChange, onKeyDown: handleKeyDown, onFocus: handleFocus, onBlur: handleBlur, size: "small", className: classnames("core-input", className), ...otherProps }),
|
|
149
|
+
React.createElement("div", { className: classnames("core-number-input-buttons-container", showTouchButtons && "core-number-buttons-for-touch") },
|
|
150
|
+
React.createElement("div", { className: "core-number-input-button core-number-input-button-up", tabIndex: -1, onClick: handleUpClick, role: "presentation" },
|
|
151
|
+
React.createElement(Icon, { iconSpec: caretUp })),
|
|
152
|
+
React.createElement("div", { className: "core-number-input-button core-number-input-button-down", tabIndex: -1, onClick: handleDownClick, role: "presentation" },
|
|
153
|
+
React.createElement(Icon, { iconSpec: caretDown })))));
|
|
154
|
+
});
|
|
155
|
+
/** Input component for numbers with up and down buttons to increment and decrement the value.
|
|
156
|
+
* @public
|
|
157
|
+
* @deprecated in 4.12.0. Use {@link https://itwinui.bentley.com/docs/input iTwinUI input} instead.
|
|
158
|
+
*/
|
|
159
|
+
export const NumberInput = ForwardRefNumberInput;
|
|
160
|
+
//# sourceMappingURL=NumberInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumberInput.js","sourceRoot":"","sources":["../../../../src/core-react/inputs/numberinput/NumberInput.tsx"],"names":[],"mappings":"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","sourcesContent":["/*---------------------------------------------------------------------------------------------\n * Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n * See LICENSE.md in the project root for license terms and full copyright notice.\n *--------------------------------------------------------------------------------------------*/\n/** @packageDocumentation\n * @module Inputs\n */\n\nimport \"./NumberInput.scss\";\nimport classnames from \"classnames\";\nimport * as React from \"react\";\nimport { Key } from \"ts-key-enum\";\nimport { Input } from \"@itwin/itwinui-react\";\nimport { Icon } from \"../../icons/IconComponent.js\";\nimport {\n SvgCaretDown,\n SvgCaretDownSmall,\n SvgCaretUp,\n SvgCaretUpSmall,\n} from \"@itwin/itwinui-icons-react\";\n\n/* eslint-disable deprecation/deprecation */\n\ntype InputProps = React.ComponentPropsWithoutRef<typeof Input>;\n\n/** Step function prototype for [[NumberInput]] component\n * @public\n * @deprecated in 4.12.0. Interface used in a deprecated component {@link NumberInput}.\n */\nexport type StepFunctionProp =\n | number\n | ((direction: string) => number | undefined);\n\n/** Properties for the [[NumberInput]] component\n * @public\n * @deprecated in 4.12.0. Props of deprecated component {@link NumberInput}.\n */\nexport interface NumberInputProps\n extends Omit<InputProps, \"min\" | \"max\" | \"step\" | \"onChange\"> {\n /** Numeric value, set to `undefined` to show placeholder text */\n value?: number;\n /** CSS class name for the NumberInput component container div */\n containerClassName?: string;\n /** Style for component container div. */\n containerStyle?: React.CSSProperties;\n /** number or function\tNumber.MIN_SAFE_INTEGER */\n min?: number;\n /** number or function\tdefaults to Number.MAX_SAFE_INTEGER */\n max?: number;\n /** increment step value used while incrementing or decrementing (up/down buttons or arrow keys) defaults to 1. */\n step?: StepFunctionProp;\n /** number of decimal places, defaults to 0 */\n precision?: number;\n /** function parseFloat */\n parse?: (value: string) => number | null | undefined;\n /** function optional formatting function that takes the number value and the internal formatted value in case function just adds prefix or suffix. */\n format?: (num: number | null | undefined, formattedValue: string) => string;\n /** Set to true to \"snap\" to the closest step value while incrementing or decrementing (up/down buttons or arrow keys). */\n snap?: boolean;\n /** Function to call when value is changed. */\n onChange?: (value: number | undefined, stringValue: string) => void;\n /** if true up/down buttons are shown larger and side by side */\n showTouchButtons?: boolean;\n /** Provides ability to return reference to HTMLInputElement */\n ref?: React.Ref<HTMLInputElement>;\n /**\n * Makes this component behave as controlled component.\n * @internal\n */\n isControlled?: boolean;\n}\n\nconst ForwardRefNumberInput = React.forwardRef<\n HTMLInputElement,\n NumberInputProps\n>(function ForwardRefNumberInput(props, ref) {\n const {\n containerClassName,\n className,\n value,\n min,\n max,\n precision,\n format,\n parse,\n onChange,\n onBlur,\n onKeyDown,\n step,\n snap,\n showTouchButtons,\n containerStyle,\n isControlled,\n ...otherProps\n } = props;\n const currentValueRef = React.useRef(value);\n\n /**\n * Used internally to parse the argument x to it's numeric representation.\n * If the argument cannot be converted to finite number returns 0; If a\n * \"precision\" prop is specified uses it round the number with that\n * precision (no fixed precision here because the return value is float, not\n * string).\n */\n const parseInternal = React.useCallback(\n (x: string) => {\n let n: number | undefined | null;\n\n if (parse) n = parse(x);\n if (undefined === n || null === n) {\n n = parseFloat(x);\n if (isNaN(n) || !isFinite(n)) {\n n = 0;\n }\n }\n\n const localPrecision = undefined === precision ? 10 : precision;\n const q = Math.pow(10, localPrecision);\n const localMin = undefined === min ? Number.MIN_SAFE_INTEGER : min;\n const localMax = undefined === max ? Number.MAX_SAFE_INTEGER : max;\n n = Math.min(Math.max(n, localMin), localMax);\n n = Math.round(n * q) / q;\n\n return n;\n },\n [parse, precision, min, max]\n );\n\n /**\n * This is used internally to format a number to its display representation.\n * It will invoke the format function if one is provided.\n */\n const formatInternal = React.useCallback(\n (num: number | undefined | null) => {\n const localPrecision =\n undefined === precision || null === precision ? 0 : precision;\n const str =\n undefined === num || null === num ? \"\" : num.toFixed(localPrecision);\n\n if (format) return format(num, str);\n\n return str;\n },\n [format, precision]\n );\n\n const [formattedValue, setFormattedValue] = React.useState(() =>\n formatInternal(value)\n );\n\n // See if new initialValue props have changed since component mounted\n React.useEffect(() => {\n currentValueRef.current = value;\n const currentFormattedValue = formatInternal(currentValueRef.current);\n setFormattedValue(currentFormattedValue);\n }, [formatInternal, value]);\n\n const handleChange = React.useCallback(\n (event: React.ChangeEvent<HTMLInputElement>) => {\n const newVal = event.currentTarget.value;\n setFormattedValue(newVal);\n isControlled && onChange && onChange(parseInternal(newVal), newVal);\n },\n [isControlled, onChange, parseInternal]\n );\n\n const updateValue = React.useCallback(\n (newVal: number) => {\n const newFormattedVal = formatInternal(newVal);\n onChange && onChange(newVal, newFormattedVal);\n setFormattedValue(newFormattedVal);\n },\n [onChange, formatInternal]\n );\n\n const updateValueFromString = React.useCallback(\n (strValue: string) => {\n const newVal = parseInternal(strValue);\n updateValue(newVal);\n },\n [parseInternal, updateValue]\n );\n\n const handleBlur = React.useCallback(\n (event: React.FocusEvent<HTMLInputElement>) => {\n const newVal = parseInternal(event.target.value);\n onBlur && onBlur(event);\n updateValue(newVal);\n },\n [parseInternal, updateValue, onBlur]\n );\n\n const getIncrementValue = React.useCallback(\n (increment: boolean) => {\n if (typeof step === \"function\") {\n const stepVal = step(increment ? \"up\" : \"down\");\n return stepVal ? stepVal : 1;\n }\n\n return !step ? 1 : step;\n },\n [step]\n );\n\n /**\n * The internal method that actually sets the new value on the input\n */\n const applyStep = React.useCallback(\n (increment: boolean) => {\n const incrementValue = getIncrementValue(increment);\n\n let num =\n parseInternal(formattedValue) +\n (increment ? incrementValue : -incrementValue);\n if (snap) {\n num = Math.round(num / incrementValue) * incrementValue;\n }\n\n const localMin = undefined === min ? Number.MIN_SAFE_INTEGER : min;\n const localMax = undefined === max ? Number.MAX_SAFE_INTEGER : max;\n num = Math.min(Math.max(num, localMin), localMax);\n\n updateValue(num);\n },\n [\n formattedValue,\n getIncrementValue,\n max,\n min,\n parseInternal,\n snap,\n updateValue,\n ]\n );\n\n const handleKeyDown = React.useCallback(\n (event: React.KeyboardEvent<HTMLInputElement>) => {\n if (event.key === Key.Enter.valueOf()) {\n updateValueFromString(event.currentTarget.value);\n event.preventDefault();\n event.stopPropagation();\n } else if (event.key === Key.Escape.valueOf()) {\n setFormattedValue(formatInternal(currentValueRef.current));\n event.preventDefault();\n } else if (event.key === Key.ArrowDown.valueOf()) {\n applyStep(false);\n event.preventDefault();\n event.stopPropagation();\n } else if (event.key === Key.ArrowUp.valueOf()) {\n applyStep(true);\n event.preventDefault();\n event.stopPropagation();\n }\n onKeyDown && onKeyDown(event);\n },\n [applyStep, formatInternal, updateValueFromString, onKeyDown]\n );\n\n const handleDownClick = React.useCallback(\n (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => {\n applyStep(false);\n event.preventDefault();\n },\n [applyStep]\n );\n\n const handleUpClick = React.useCallback(\n (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => {\n applyStep(true);\n event.preventDefault();\n },\n [applyStep]\n );\n\n const handleFocus = React.useCallback(\n (event: React.FocusEvent<HTMLInputElement>) => {\n event.currentTarget.select();\n },\n []\n );\n\n const isDisabled = !!otherProps.disabled;\n const containerClasses = classnames(\n \"core-number-input-container\",\n containerClassName,\n showTouchButtons && \"core-number-buttons-for-touch\",\n isDisabled && \"core-number-input-disabled\"\n );\n\n const caretUp = showTouchButtons ? <SvgCaretUp /> : <SvgCaretUpSmall />;\n const caretDown = showTouchButtons ? <SvgCaretDown /> : <SvgCaretDownSmall />;\n\n return (\n <div className={containerClasses} style={containerStyle}>\n <Input\n ref={ref}\n value={formattedValue}\n onChange={handleChange}\n onKeyDown={handleKeyDown}\n onFocus={handleFocus}\n onBlur={handleBlur}\n size=\"small\"\n className={classnames(\"core-input\", className)}\n {...otherProps}\n />\n <div\n className={classnames(\n \"core-number-input-buttons-container\",\n showTouchButtons && \"core-number-buttons-for-touch\"\n )}\n >\n {/* eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */}\n <div\n className=\"core-number-input-button core-number-input-button-up\"\n tabIndex={-1}\n onClick={handleUpClick}\n role=\"presentation\"\n >\n <Icon iconSpec={caretUp} />\n </div>\n {/* eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events */}\n <div\n className=\"core-number-input-button core-number-input-button-down\"\n tabIndex={-1}\n onClick={handleDownClick}\n role=\"presentation\"\n >\n <Icon iconSpec={caretDown} />\n </div>\n </div>\n </div>\n );\n});\n\n/** Input component for numbers with up and down buttons to increment and decrement the value.\n * @public\n * @deprecated in 4.12.0. Use {@link https://itwinui.bentley.com/docs/input iTwinUI input} instead.\n */\nexport const NumberInput: (props: NumberInputProps) => React.ReactNode =\n ForwardRefNumberInput;\n"]}
|