@itwin/core-react 4.0.0-dev.8 → 4.0.0-dev.9
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 -93
- package/lib/cjs/core-react/UiCore.d.ts +1 -1
- package/lib/cjs/core-react/UiCore.js +1 -1
- package/lib/cjs/core-react/UiCore.js.map +1 -1
- package/lib/cjs/core-react/_typography.scss +7 -8
- package/lib/cjs/core-react/autosuggest/AutoSuggest.scss +2 -3
- package/lib/cjs/core-react/badge/BetaBadge.d.ts +0 -1
- package/lib/cjs/core-react/badge/BetaBadge.d.ts.map +1 -1
- package/lib/cjs/core-react/badge/BetaBadge.js +0 -1
- package/lib/cjs/core-react/badge/BetaBadge.js.map +1 -1
- package/lib/cjs/core-react/button/button.scss +31 -42
- package/lib/cjs/core-react/button/variables.scss +10 -7
- package/lib/cjs/core-react/checkbox/checkbox.scss +11 -16
- package/lib/cjs/core-react/checklistbox/CheckListBox.d.ts +4 -1
- package/lib/cjs/core-react/checklistbox/CheckListBox.d.ts.map +1 -1
- package/lib/cjs/core-react/checklistbox/CheckListBox.js.map +1 -1
- package/lib/cjs/core-react/classes.scss +0 -4
- package/lib/cjs/core-react/colorthemes.scss +42 -10
- package/lib/cjs/core-react/colorvariables.scss +53 -15
- package/lib/cjs/core-react/contextmenu/ContextMenu.d.ts +2 -0
- package/lib/cjs/core-react/contextmenu/ContextMenu.d.ts.map +1 -1
- package/lib/cjs/core-react/contextmenu/ContextMenu.js.map +1 -1
- package/lib/cjs/core-react/contextmenu/ContextMenu.scss +7 -8
- package/lib/cjs/core-react/contextmenu/ContextSubMenu.js +1 -1
- package/lib/cjs/core-react/contextmenu/ContextSubMenu.js.map +1 -1
- package/lib/cjs/core-react/dialog/Dialog.scss +4 -5
- package/lib/cjs/core-react/expandable/ExpandableList.d.ts +2 -0
- package/lib/cjs/core-react/expandable/ExpandableList.d.ts.map +1 -1
- package/lib/cjs/core-react/expandable/ExpandableList.js.map +1 -1
- package/lib/cjs/core-react/expandable/list.scss +7 -17
- package/lib/cjs/core-react/hocs/withTimeout.js.map +1 -1
- package/lib/cjs/core-react/icons/IconComponent.d.ts +1 -1
- package/lib/cjs/core-react/icons/IconComponent.d.ts.map +1 -1
- package/lib/cjs/core-react/icons/IconComponent.js +1 -7
- package/lib/cjs/core-react/icons/IconComponent.js.map +1 -1
- package/lib/cjs/core-react/icons/SvgPath.d.ts +1 -1
- package/lib/cjs/core-react/icons/SvgPath.d.ts.map +1 -1
- package/lib/cjs/core-react/icons/SvgPath.js +2 -2
- package/lib/cjs/core-react/icons/SvgPath.js.map +1 -1
- package/lib/{esm/core-react/icons/SvgSprite.scss → cjs/core-react/icons/SvgPath.scss} +1 -1
- package/lib/cjs/core-react/imagecheckbox/ImageCheckBox.scss +4 -5
- package/lib/cjs/core-react/index.scss +0 -4
- package/lib/cjs/core-react/inputs/Input.d.ts +2 -4
- package/lib/cjs/core-react/inputs/Input.d.ts.map +1 -1
- package/lib/cjs/core-react/inputs/Input.js +1 -2
- package/lib/cjs/core-react/inputs/Input.js.map +1 -1
- package/lib/cjs/core-react/inputs/InputLabel.d.ts +2 -0
- package/lib/cjs/core-react/inputs/InputLabel.d.ts.map +1 -1
- package/lib/cjs/core-react/inputs/InputLabel.js.map +1 -1
- package/lib/cjs/core-react/inputs/classes.scss +0 -2
- package/lib/cjs/core-react/inputs/index.scss +1 -3
- package/lib/cjs/core-react/inputs/input-label.scss +90 -0
- package/lib/cjs/core-react/inputs/input.scss +36 -38
- package/lib/cjs/core-react/inputs/variables.scss +20 -15
- package/lib/cjs/core-react/listbox/Listbox.scss +3 -3
- package/lib/cjs/core-react/loading/LoadingSpinner.d.ts +1 -2
- package/lib/cjs/core-react/loading/LoadingSpinner.d.ts.map +1 -1
- package/lib/cjs/core-react/loading/LoadingSpinner.js +1 -16
- package/lib/cjs/core-react/loading/LoadingSpinner.js.map +1 -1
- package/lib/cjs/core-react/loading/LoadingSpinner.scss +4 -5
- package/lib/cjs/core-react/messagebox/MessageBox.d.ts +4 -0
- package/lib/cjs/core-react/messagebox/MessageBox.d.ts.map +1 -1
- package/lib/cjs/core-react/messagebox/MessageBox.js.map +1 -1
- package/lib/cjs/core-react/popup/Popup.d.ts +2 -0
- package/lib/cjs/core-react/popup/Popup.d.ts.map +1 -1
- package/lib/cjs/core-react/popup/Popup.js.map +1 -1
- package/lib/cjs/core-react/popup/Popup.scss +123 -123
- package/lib/cjs/core-react/radialmenu/RadialMenu.d.ts +4 -0
- package/lib/cjs/core-react/radialmenu/RadialMenu.d.ts.map +1 -1
- package/lib/cjs/core-react/radialmenu/RadialMenu.js.map +1 -1
- package/lib/cjs/core-react/radialmenu/RadialMenu.scss +1 -2
- package/lib/cjs/core-react/searchbox/SearchBox.scss +2 -4
- package/lib/cjs/core-react/settings/SettingsContainer.js +1 -1
- package/lib/cjs/core-react/settings/SettingsContainer.js.map +1 -1
- package/lib/cjs/core-react/settings/SettingsContainer.scss +8 -7
- package/lib/cjs/core-react/style/baseline.scss +6 -8
- package/lib/cjs/core-react/style/data-viz.scss +11 -14
- package/lib/cjs/core-react/style/itwinui-overrides.scss +0 -1
- package/lib/cjs/core-react/style/mixins.scss +0 -1
- package/lib/cjs/core-react/style/opacity.scss +9 -10
- package/lib/cjs/core-react/style/space.scss +9 -13
- package/lib/cjs/core-react/style/speed.scss +3 -4
- package/lib/cjs/core-react/style/typography.scss +26 -25
- package/lib/cjs/core-react/style/variables.scss +4 -5
- package/lib/cjs/core-react/tabs/Tabs.d.ts +1 -1
- package/lib/cjs/core-react/tabs/Tabs.js.map +1 -1
- package/lib/cjs/core-react/tabs/classes.scss +0 -1
- package/lib/cjs/core-react/tabs/index.scss +0 -1
- package/lib/cjs/core-react/tabs/tabs.scss +38 -49
- package/lib/cjs/core-react/tabs/vertical.scss +17 -23
- package/lib/cjs/core-react/text/classes.scss +0 -8
- package/lib/cjs/core-react/text/index.scss +0 -8
- package/lib/cjs/core-react/text/mixins.scss +8 -46
- package/lib/cjs/core-react/tree/Node.scss +5 -5
- package/lib/cjs/core-react.d.ts +1 -41
- package/lib/cjs/core-react.d.ts.map +1 -1
- package/lib/cjs/core-react.js +1 -41
- package/lib/cjs/core-react.js.map +1 -1
- package/lib/esm/core-react/UiCore.d.ts +1 -1
- package/lib/esm/core-react/UiCore.js +1 -1
- package/lib/esm/core-react/UiCore.js.map +1 -1
- package/lib/esm/core-react/_typography.scss +7 -8
- package/lib/esm/core-react/autosuggest/AutoSuggest.scss +2 -3
- package/lib/esm/core-react/badge/BetaBadge.d.ts +0 -1
- package/lib/esm/core-react/badge/BetaBadge.d.ts.map +1 -1
- package/lib/esm/core-react/badge/BetaBadge.js +0 -1
- package/lib/esm/core-react/badge/BetaBadge.js.map +1 -1
- package/lib/esm/core-react/button/button.scss +31 -42
- package/lib/esm/core-react/button/variables.scss +10 -7
- package/lib/esm/core-react/checkbox/checkbox.scss +11 -16
- package/lib/esm/core-react/checklistbox/CheckListBox.d.ts +4 -1
- package/lib/esm/core-react/checklistbox/CheckListBox.d.ts.map +1 -1
- package/lib/esm/core-react/checklistbox/CheckListBox.js.map +1 -1
- package/lib/esm/core-react/classes.scss +0 -4
- package/lib/esm/core-react/colorthemes.scss +42 -10
- package/lib/esm/core-react/colorvariables.scss +53 -15
- package/lib/esm/core-react/contextmenu/ContextMenu.d.ts +2 -0
- package/lib/esm/core-react/contextmenu/ContextMenu.d.ts.map +1 -1
- package/lib/esm/core-react/contextmenu/ContextMenu.js.map +1 -1
- package/lib/esm/core-react/contextmenu/ContextMenu.scss +7 -8
- package/lib/esm/core-react/contextmenu/ContextSubMenu.js +2 -2
- package/lib/esm/core-react/contextmenu/ContextSubMenu.js.map +1 -1
- package/lib/esm/core-react/dialog/Dialog.scss +4 -5
- package/lib/esm/core-react/expandable/ExpandableList.d.ts +2 -0
- package/lib/esm/core-react/expandable/ExpandableList.d.ts.map +1 -1
- package/lib/esm/core-react/expandable/ExpandableList.js.map +1 -1
- package/lib/esm/core-react/expandable/list.scss +7 -17
- package/lib/esm/core-react/hocs/withTimeout.js.map +1 -1
- package/lib/esm/core-react/icons/IconComponent.d.ts +1 -1
- package/lib/esm/core-react/icons/IconComponent.d.ts.map +1 -1
- package/lib/esm/core-react/icons/IconComponent.js +1 -7
- package/lib/esm/core-react/icons/IconComponent.js.map +1 -1
- package/lib/esm/core-react/icons/SvgPath.d.ts +1 -1
- package/lib/esm/core-react/icons/SvgPath.d.ts.map +1 -1
- package/lib/esm/core-react/icons/SvgPath.js +2 -2
- package/lib/esm/core-react/icons/SvgPath.js.map +1 -1
- package/lib/{cjs/core-react/icons/SvgSprite.scss → esm/core-react/icons/SvgPath.scss} +1 -1
- package/lib/esm/core-react/imagecheckbox/ImageCheckBox.scss +4 -5
- package/lib/esm/core-react/index.scss +0 -4
- package/lib/esm/core-react/inputs/Input.d.ts +2 -4
- package/lib/esm/core-react/inputs/Input.d.ts.map +1 -1
- package/lib/esm/core-react/inputs/Input.js +1 -2
- package/lib/esm/core-react/inputs/Input.js.map +1 -1
- package/lib/esm/core-react/inputs/InputLabel.d.ts +2 -0
- package/lib/esm/core-react/inputs/InputLabel.d.ts.map +1 -1
- package/lib/esm/core-react/inputs/InputLabel.js.map +1 -1
- package/lib/esm/core-react/inputs/classes.scss +0 -2
- package/lib/esm/core-react/inputs/index.scss +1 -3
- package/lib/esm/core-react/inputs/input-label.scss +90 -0
- package/lib/esm/core-react/inputs/input.scss +36 -38
- package/lib/esm/core-react/inputs/variables.scss +20 -15
- package/lib/esm/core-react/listbox/Listbox.scss +3 -3
- package/lib/esm/core-react/loading/LoadingSpinner.d.ts +1 -2
- package/lib/esm/core-react/loading/LoadingSpinner.d.ts.map +1 -1
- package/lib/esm/core-react/loading/LoadingSpinner.js +1 -16
- package/lib/esm/core-react/loading/LoadingSpinner.js.map +1 -1
- package/lib/esm/core-react/loading/LoadingSpinner.scss +4 -5
- package/lib/esm/core-react/messagebox/MessageBox.d.ts +4 -0
- package/lib/esm/core-react/messagebox/MessageBox.d.ts.map +1 -1
- package/lib/esm/core-react/messagebox/MessageBox.js.map +1 -1
- package/lib/esm/core-react/popup/Popup.d.ts +2 -0
- package/lib/esm/core-react/popup/Popup.d.ts.map +1 -1
- package/lib/esm/core-react/popup/Popup.js.map +1 -1
- package/lib/esm/core-react/popup/Popup.scss +123 -123
- package/lib/esm/core-react/radialmenu/RadialMenu.d.ts +4 -0
- package/lib/esm/core-react/radialmenu/RadialMenu.d.ts.map +1 -1
- package/lib/esm/core-react/radialmenu/RadialMenu.js.map +1 -1
- package/lib/esm/core-react/radialmenu/RadialMenu.scss +1 -2
- package/lib/esm/core-react/searchbox/SearchBox.scss +2 -4
- package/lib/esm/core-react/settings/SettingsContainer.js +1 -1
- package/lib/esm/core-react/settings/SettingsContainer.js.map +1 -1
- package/lib/esm/core-react/settings/SettingsContainer.scss +8 -7
- package/lib/esm/core-react/style/baseline.scss +6 -8
- package/lib/esm/core-react/style/data-viz.scss +11 -14
- package/lib/esm/core-react/style/itwinui-overrides.scss +0 -1
- package/lib/esm/core-react/style/mixins.scss +0 -1
- package/lib/esm/core-react/style/opacity.scss +9 -10
- package/lib/esm/core-react/style/space.scss +9 -13
- package/lib/esm/core-react/style/speed.scss +3 -4
- package/lib/esm/core-react/style/typography.scss +26 -25
- package/lib/esm/core-react/style/variables.scss +4 -5
- package/lib/esm/core-react/tabs/Tabs.d.ts +1 -1
- package/lib/esm/core-react/tabs/Tabs.js.map +1 -1
- package/lib/esm/core-react/tabs/classes.scss +0 -1
- package/lib/esm/core-react/tabs/index.scss +0 -1
- package/lib/esm/core-react/tabs/tabs.scss +38 -49
- package/lib/esm/core-react/tabs/vertical.scss +17 -23
- package/lib/esm/core-react/text/classes.scss +0 -8
- package/lib/esm/core-react/text/index.scss +0 -8
- package/lib/esm/core-react/text/mixins.scss +8 -46
- package/lib/esm/core-react/tree/Node.scss +5 -5
- package/lib/esm/core-react.d.ts +1 -41
- package/lib/esm/core-react.d.ts.map +1 -1
- package/lib/esm/core-react.js +1 -41
- package/lib/esm/core-react.js.map +1 -1
- package/package.json +23 -21
- package/lib/cjs/core-react/badge/BetaBadge.scss +0 -9
- package/lib/cjs/core-react/button/Button.d.ts +0 -48
- package/lib/cjs/core-react/button/Button.d.ts.map +0 -1
- package/lib/cjs/core-react/button/Button.js +0 -86
- package/lib/cjs/core-react/button/Button.js.map +0 -1
- package/lib/cjs/core-react/checkbox/Checkbox.d.ts +0 -57
- package/lib/cjs/core-react/checkbox/Checkbox.d.ts.map +0 -1
- package/lib/cjs/core-react/checkbox/Checkbox.js +0 -65
- package/lib/cjs/core-react/checkbox/Checkbox.js.map +0 -1
- package/lib/cjs/core-react/dialog/DialogButtonDef.d.ts +0 -47
- package/lib/cjs/core-react/dialog/DialogButtonDef.d.ts.map +0 -1
- package/lib/cjs/core-react/dialog/DialogButtonDef.js +0 -38
- package/lib/cjs/core-react/dialog/DialogButtonDef.js.map +0 -1
- package/lib/cjs/core-react/expandable/ExpandableBlock.d.ts +0 -34
- package/lib/cjs/core-react/expandable/ExpandableBlock.d.ts.map +0 -1
- package/lib/cjs/core-react/expandable/ExpandableBlock.js +0 -36
- package/lib/cjs/core-react/expandable/ExpandableBlock.js.map +0 -1
- package/lib/cjs/core-react/expandable/ExpandableBlock.scss +0 -145
- package/lib/cjs/core-react/form/Field.d.ts +0 -20
- package/lib/cjs/core-react/form/Field.d.ts.map +0 -1
- package/lib/cjs/core-react/form/Field.js +0 -45
- package/lib/cjs/core-react/form/Field.js.map +0 -1
- package/lib/cjs/core-react/form/Form.d.ts +0 -132
- package/lib/cjs/core-react/form/Form.d.ts.map +0 -1
- package/lib/cjs/core-react/form/Form.js +0 -132
- package/lib/cjs/core-react/form/Form.js.map +0 -1
- package/lib/cjs/core-react/form/Form.scss +0 -78
- package/lib/cjs/core-react/icons/SvgSprite.d.ts +0 -21
- package/lib/cjs/core-react/icons/SvgSprite.d.ts.map +0 -1
- package/lib/cjs/core-react/icons/SvgSprite.js +0 -27
- package/lib/cjs/core-react/icons/SvgSprite.js.map +0 -1
- package/lib/cjs/core-react/inputs/LabeledInput.d.ts +0 -18
- package/lib/cjs/core-react/inputs/LabeledInput.d.ts.map +0 -1
- package/lib/cjs/core-react/inputs/LabeledInput.js +0 -34
- package/lib/cjs/core-react/inputs/LabeledInput.js.map +0 -1
- package/lib/cjs/core-react/inputs/LabeledTextarea.d.ts +0 -18
- package/lib/cjs/core-react/inputs/LabeledTextarea.d.ts.map +0 -1
- package/lib/cjs/core-react/inputs/LabeledTextarea.js +0 -32
- package/lib/cjs/core-react/inputs/LabeledTextarea.js.map +0 -1
- package/lib/cjs/core-react/inputs/Textarea.d.ts +0 -23
- package/lib/cjs/core-react/inputs/Textarea.d.ts.map +0 -1
- package/lib/cjs/core-react/inputs/Textarea.js +0 -36
- package/lib/cjs/core-react/inputs/Textarea.js.map +0 -1
- package/lib/cjs/core-react/inputs/labeled-input.scss +0 -103
- package/lib/cjs/core-react/inputs/labeled-textarea.scss +0 -77
- package/lib/cjs/core-react/inputs/textarea.scss +0 -55
- package/lib/cjs/core-react/loading/Spinner.d.ts +0 -38
- package/lib/cjs/core-react/loading/Spinner.d.ts.map +0 -1
- package/lib/cjs/core-react/loading/Spinner.js +0 -61
- package/lib/cjs/core-react/loading/Spinner.js.map +0 -1
- package/lib/cjs/core-react/loading/Spinner.scss +0 -26
- package/lib/cjs/core-react/messagebox/MessageSeverity.d.ts +0 -16
- package/lib/cjs/core-react/messagebox/MessageSeverity.d.ts.map +0 -1
- package/lib/cjs/core-react/messagebox/MessageSeverity.js +0 -24
- package/lib/cjs/core-react/messagebox/MessageSeverity.js.map +0 -1
- package/lib/cjs/core-react/progress-indicators/ProgressBar.d.ts +0 -29
- package/lib/cjs/core-react/progress-indicators/ProgressBar.d.ts.map +0 -1
- package/lib/cjs/core-react/progress-indicators/ProgressBar.js +0 -48
- package/lib/cjs/core-react/progress-indicators/ProgressBar.js.map +0 -1
- package/lib/cjs/core-react/progress-indicators/ProgressSpinner.d.ts +0 -49
- package/lib/cjs/core-react/progress-indicators/ProgressSpinner.d.ts.map +0 -1
- package/lib/cjs/core-react/progress-indicators/ProgressSpinner.js +0 -74
- package/lib/cjs/core-react/progress-indicators/ProgressSpinner.js.map +0 -1
- package/lib/cjs/core-react/progress-indicators/classes.scss +0 -33
- package/lib/cjs/core-react/progress-indicators/index.scss +0 -6
- package/lib/cjs/core-react/progress-indicators/progress-bar.scss +0 -91
- package/lib/cjs/core-react/progress-indicators/progress-spinner.scss +0 -132
- package/lib/cjs/core-react/radio/Radio.d.ts +0 -20
- package/lib/cjs/core-react/radio/Radio.d.ts.map +0 -1
- package/lib/cjs/core-react/radio/Radio.js +0 -28
- package/lib/cjs/core-react/radio/Radio.js.map +0 -1
- package/lib/cjs/core-react/radio/classes.scss +0 -7
- package/lib/cjs/core-react/radio/index.scss +0 -8
- package/lib/cjs/core-react/radio/radio.scss +0 -89
- package/lib/cjs/core-react/select/LabeledSelect.d.ts +0 -20
- package/lib/cjs/core-react/select/LabeledSelect.d.ts.map +0 -1
- package/lib/cjs/core-react/select/LabeledSelect.js +0 -34
- package/lib/cjs/core-react/select/LabeledSelect.js.map +0 -1
- package/lib/cjs/core-react/select/LabeledThemedSelect.d.ts +0 -16
- package/lib/cjs/core-react/select/LabeledThemedSelect.d.ts.map +0 -1
- package/lib/cjs/core-react/select/LabeledThemedSelect.js +0 -31
- package/lib/cjs/core-react/select/LabeledThemedSelect.js.map +0 -1
- package/lib/cjs/core-react/select/Select.d.ts +0 -53
- package/lib/cjs/core-react/select/Select.d.ts.map +0 -1
- package/lib/cjs/core-react/select/Select.js +0 -60
- package/lib/cjs/core-react/select/Select.js.map +0 -1
- package/lib/cjs/core-react/select/ThemedSelect.d.ts +0 -104
- package/lib/cjs/core-react/select/ThemedSelect.d.ts.map +0 -1
- package/lib/cjs/core-react/select/ThemedSelect.js +0 -57
- package/lib/cjs/core-react/select/ThemedSelect.js.map +0 -1
- package/lib/cjs/core-react/select/classes.scss +0 -9
- package/lib/cjs/core-react/select/index.scss +0 -10
- package/lib/cjs/core-react/select/labeled-select.scss +0 -72
- package/lib/cjs/core-react/select/labeled-themed-select.scss +0 -77
- package/lib/cjs/core-react/select/modalHelper.d.ts +0 -5
- package/lib/cjs/core-react/select/modalHelper.d.ts.map +0 -1
- package/lib/cjs/core-react/select/modalHelper.js +0 -21
- package/lib/cjs/core-react/select/modalHelper.js.map +0 -1
- package/lib/cjs/core-react/select/select.scss +0 -74
- package/lib/cjs/core-react/select/themed-select.scss +0 -159
- package/lib/cjs/core-react/slider/Slider.d.ts +0 -80
- package/lib/cjs/core-react/slider/Slider.d.ts.map +0 -1
- package/lib/cjs/core-react/slider/Slider.js +0 -91
- package/lib/cjs/core-react/slider/Slider.js.map +0 -1
- package/lib/cjs/core-react/slider/Slider.scss +0 -96
- package/lib/cjs/core-react/splitbutton/SplitButton.d.ts +0 -62
- package/lib/cjs/core-react/splitbutton/SplitButton.d.ts.map +0 -1
- package/lib/cjs/core-react/splitbutton/SplitButton.js +0 -104
- package/lib/cjs/core-react/splitbutton/SplitButton.js.map +0 -1
- package/lib/cjs/core-react/splitbutton/SplitButton.scss +0 -137
- package/lib/cjs/core-react/tabs/HorizontalTabs.d.ts +0 -11
- package/lib/cjs/core-react/tabs/HorizontalTabs.d.ts.map +0 -1
- package/lib/cjs/core-react/tabs/HorizontalTabs.js +0 -22
- package/lib/cjs/core-react/tabs/HorizontalTabs.js.map +0 -1
- package/lib/cjs/core-react/tabs/horizontal.scss +0 -77
- package/lib/cjs/core-react/text/Headline.d.ts +0 -11
- package/lib/cjs/core-react/text/Headline.d.ts.map +0 -1
- package/lib/cjs/core-react/text/Headline.js +0 -21
- package/lib/cjs/core-react/text/Headline.js.map +0 -1
- package/lib/cjs/core-react/text/LeadingText.d.ts +0 -11
- package/lib/cjs/core-react/text/LeadingText.d.ts.map +0 -1
- package/lib/cjs/core-react/text/LeadingText.js +0 -21
- package/lib/cjs/core-react/text/LeadingText.js.map +0 -1
- package/lib/cjs/core-react/text/LeadingText2.d.ts +0 -11
- package/lib/cjs/core-react/text/LeadingText2.d.ts.map +0 -1
- package/lib/cjs/core-react/text/LeadingText2.js +0 -21
- package/lib/cjs/core-react/text/LeadingText2.js.map +0 -1
- package/lib/cjs/core-react/text/SmallText.d.ts +0 -11
- package/lib/cjs/core-react/text/SmallText.d.ts.map +0 -1
- package/lib/cjs/core-react/text/SmallText.js +0 -21
- package/lib/cjs/core-react/text/SmallText.js.map +0 -1
- package/lib/cjs/core-react/text/Subheading.d.ts +0 -11
- package/lib/cjs/core-react/text/Subheading.d.ts.map +0 -1
- package/lib/cjs/core-react/text/Subheading.js +0 -21
- package/lib/cjs/core-react/text/Subheading.js.map +0 -1
- package/lib/cjs/core-react/text/Subheading2.d.ts +0 -11
- package/lib/cjs/core-react/text/Subheading2.d.ts.map +0 -1
- package/lib/cjs/core-react/text/Subheading2.js +0 -21
- package/lib/cjs/core-react/text/Subheading2.js.map +0 -1
- package/lib/cjs/core-react/text/Title.d.ts +0 -11
- package/lib/cjs/core-react/text/Title.d.ts.map +0 -1
- package/lib/cjs/core-react/text/Title.js +0 -21
- package/lib/cjs/core-react/text/Title.js.map +0 -1
- package/lib/cjs/core-react/text/Title2.d.ts +0 -11
- package/lib/cjs/core-react/text/Title2.d.ts.map +0 -1
- package/lib/cjs/core-react/text/Title2.js +0 -21
- package/lib/cjs/core-react/text/Title2.js.map +0 -1
- package/lib/cjs/core-react/text/headline.scss +0 -10
- package/lib/cjs/core-react/text/leading-2.scss +0 -11
- package/lib/cjs/core-react/text/leading.scss +0 -10
- package/lib/cjs/core-react/text/small.scss +0 -10
- package/lib/cjs/core-react/text/subheading-2.scss +0 -11
- package/lib/cjs/core-react/text/subheading.scss +0 -11
- package/lib/cjs/core-react/text/title-2.scss +0 -11
- package/lib/cjs/core-react/text/title.scss +0 -10
- package/lib/cjs/core-react/tiles/FeaturedTile.d.ts +0 -11
- package/lib/cjs/core-react/tiles/FeaturedTile.d.ts.map +0 -1
- package/lib/cjs/core-react/tiles/FeaturedTile.js +0 -21
- package/lib/cjs/core-react/tiles/FeaturedTile.js.map +0 -1
- package/lib/cjs/core-react/tiles/MinimalFeaturedTile.d.ts +0 -11
- package/lib/cjs/core-react/tiles/MinimalFeaturedTile.d.ts.map +0 -1
- package/lib/cjs/core-react/tiles/MinimalFeaturedTile.js +0 -21
- package/lib/cjs/core-react/tiles/MinimalFeaturedTile.js.map +0 -1
- package/lib/cjs/core-react/tiles/MinimalTile.d.ts +0 -11
- package/lib/cjs/core-react/tiles/MinimalTile.d.ts.map +0 -1
- package/lib/cjs/core-react/tiles/MinimalTile.js +0 -21
- package/lib/cjs/core-react/tiles/MinimalTile.js.map +0 -1
- package/lib/cjs/core-react/tiles/Tile.d.ts +0 -32
- package/lib/cjs/core-react/tiles/Tile.d.ts.map +0 -1
- package/lib/cjs/core-react/tiles/Tile.js +0 -40
- package/lib/cjs/core-react/tiles/Tile.js.map +0 -1
- package/lib/cjs/core-react/tiles/classes.scss +0 -7
- package/lib/cjs/core-react/tiles/index.scss +0 -5
- package/lib/cjs/core-react/tiles/tile.scss +0 -134
- package/lib/cjs/core-react/toggle/LabeledToggle.d.ts +0 -26
- package/lib/cjs/core-react/toggle/LabeledToggle.d.ts.map +0 -1
- package/lib/cjs/core-react/toggle/LabeledToggle.js +0 -29
- package/lib/cjs/core-react/toggle/LabeledToggle.js.map +0 -1
- package/lib/cjs/core-react/toggle/LabeledToggle.scss +0 -21
- package/lib/cjs/core-react/toggle/Toggle.d.ts +0 -52
- package/lib/cjs/core-react/toggle/Toggle.d.ts.map +0 -1
- package/lib/cjs/core-react/toggle/Toggle.js +0 -105
- package/lib/cjs/core-react/toggle/Toggle.js.map +0 -1
- package/lib/cjs/core-react/toggle/Toggle.scss +0 -135
- package/lib/cjs/core-react/tooltip/Tooltip.d.ts +0 -34
- package/lib/cjs/core-react/tooltip/Tooltip.d.ts.map +0 -1
- package/lib/cjs/core-react/tooltip/Tooltip.js +0 -57
- package/lib/cjs/core-react/tooltip/Tooltip.js.map +0 -1
- package/lib/cjs/core-react/tooltip/Tooltip.scss +0 -18
- package/lib/cjs/core-react/utils/PointProps.d.ts +0 -12
- package/lib/cjs/core-react/utils/PointProps.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/PointProps.js +0 -10
- package/lib/cjs/core-react/utils/PointProps.js.map +0 -1
- package/lib/cjs/core-react/utils/UiEvent.d.ts +0 -10
- package/lib/cjs/core-react/utils/UiEvent.d.ts.map +0 -1
- package/lib/cjs/core-react/utils/UiEvent.js +0 -18
- package/lib/cjs/core-react/utils/UiEvent.js.map +0 -1
- package/lib/esm/core-react/badge/BetaBadge.scss +0 -9
- package/lib/esm/core-react/button/Button.d.ts +0 -48
- package/lib/esm/core-react/button/Button.d.ts.map +0 -1
- package/lib/esm/core-react/button/Button.js +0 -81
- package/lib/esm/core-react/button/Button.js.map +0 -1
- package/lib/esm/core-react/checkbox/Checkbox.d.ts +0 -57
- package/lib/esm/core-react/checkbox/Checkbox.d.ts.map +0 -1
- package/lib/esm/core-react/checkbox/Checkbox.js +0 -61
- package/lib/esm/core-react/checkbox/Checkbox.js.map +0 -1
- package/lib/esm/core-react/dialog/DialogButtonDef.d.ts +0 -47
- package/lib/esm/core-react/dialog/DialogButtonDef.d.ts.map +0 -1
- package/lib/esm/core-react/dialog/DialogButtonDef.js +0 -35
- package/lib/esm/core-react/dialog/DialogButtonDef.js.map +0 -1
- package/lib/esm/core-react/expandable/ExpandableBlock.d.ts +0 -34
- package/lib/esm/core-react/expandable/ExpandableBlock.d.ts.map +0 -1
- package/lib/esm/core-react/expandable/ExpandableBlock.js +0 -32
- package/lib/esm/core-react/expandable/ExpandableBlock.js.map +0 -1
- package/lib/esm/core-react/expandable/ExpandableBlock.scss +0 -145
- package/lib/esm/core-react/form/Field.d.ts +0 -20
- package/lib/esm/core-react/form/Field.d.ts.map +0 -1
- package/lib/esm/core-react/form/Field.js +0 -41
- package/lib/esm/core-react/form/Field.js.map +0 -1
- package/lib/esm/core-react/form/Form.d.ts +0 -132
- package/lib/esm/core-react/form/Form.d.ts.map +0 -1
- package/lib/esm/core-react/form/Form.js +0 -128
- package/lib/esm/core-react/form/Form.js.map +0 -1
- package/lib/esm/core-react/form/Form.scss +0 -78
- package/lib/esm/core-react/icons/SvgSprite.d.ts +0 -21
- package/lib/esm/core-react/icons/SvgSprite.d.ts.map +0 -1
- package/lib/esm/core-react/icons/SvgSprite.js +0 -23
- package/lib/esm/core-react/icons/SvgSprite.js.map +0 -1
- package/lib/esm/core-react/inputs/LabeledInput.d.ts +0 -18
- package/lib/esm/core-react/inputs/LabeledInput.d.ts.map +0 -1
- package/lib/esm/core-react/inputs/LabeledInput.js +0 -30
- package/lib/esm/core-react/inputs/LabeledInput.js.map +0 -1
- package/lib/esm/core-react/inputs/LabeledTextarea.d.ts +0 -18
- package/lib/esm/core-react/inputs/LabeledTextarea.d.ts.map +0 -1
- package/lib/esm/core-react/inputs/LabeledTextarea.js +0 -28
- package/lib/esm/core-react/inputs/LabeledTextarea.js.map +0 -1
- package/lib/esm/core-react/inputs/Textarea.d.ts +0 -23
- package/lib/esm/core-react/inputs/Textarea.d.ts.map +0 -1
- package/lib/esm/core-react/inputs/Textarea.js +0 -33
- package/lib/esm/core-react/inputs/Textarea.js.map +0 -1
- package/lib/esm/core-react/inputs/labeled-input.scss +0 -103
- package/lib/esm/core-react/inputs/labeled-textarea.scss +0 -77
- package/lib/esm/core-react/inputs/textarea.scss +0 -55
- package/lib/esm/core-react/loading/Spinner.d.ts +0 -38
- package/lib/esm/core-react/loading/Spinner.d.ts.map +0 -1
- package/lib/esm/core-react/loading/Spinner.js +0 -57
- package/lib/esm/core-react/loading/Spinner.js.map +0 -1
- package/lib/esm/core-react/loading/Spinner.scss +0 -26
- package/lib/esm/core-react/messagebox/MessageSeverity.d.ts +0 -16
- package/lib/esm/core-react/messagebox/MessageSeverity.d.ts.map +0 -1
- package/lib/esm/core-react/messagebox/MessageSeverity.js +0 -21
- package/lib/esm/core-react/messagebox/MessageSeverity.js.map +0 -1
- package/lib/esm/core-react/progress-indicators/ProgressBar.d.ts +0 -29
- package/lib/esm/core-react/progress-indicators/ProgressBar.d.ts.map +0 -1
- package/lib/esm/core-react/progress-indicators/ProgressBar.js +0 -44
- package/lib/esm/core-react/progress-indicators/ProgressBar.js.map +0 -1
- package/lib/esm/core-react/progress-indicators/ProgressSpinner.d.ts +0 -49
- package/lib/esm/core-react/progress-indicators/ProgressSpinner.d.ts.map +0 -1
- package/lib/esm/core-react/progress-indicators/ProgressSpinner.js +0 -70
- package/lib/esm/core-react/progress-indicators/ProgressSpinner.js.map +0 -1
- package/lib/esm/core-react/progress-indicators/classes.scss +0 -33
- package/lib/esm/core-react/progress-indicators/index.scss +0 -6
- package/lib/esm/core-react/progress-indicators/progress-bar.scss +0 -91
- package/lib/esm/core-react/progress-indicators/progress-spinner.scss +0 -132
- package/lib/esm/core-react/radio/Radio.d.ts +0 -20
- package/lib/esm/core-react/radio/Radio.d.ts.map +0 -1
- package/lib/esm/core-react/radio/Radio.js +0 -24
- package/lib/esm/core-react/radio/Radio.js.map +0 -1
- package/lib/esm/core-react/radio/classes.scss +0 -7
- package/lib/esm/core-react/radio/index.scss +0 -8
- package/lib/esm/core-react/radio/radio.scss +0 -89
- package/lib/esm/core-react/select/LabeledSelect.d.ts +0 -20
- package/lib/esm/core-react/select/LabeledSelect.d.ts.map +0 -1
- package/lib/esm/core-react/select/LabeledSelect.js +0 -30
- package/lib/esm/core-react/select/LabeledSelect.js.map +0 -1
- package/lib/esm/core-react/select/LabeledThemedSelect.d.ts +0 -16
- package/lib/esm/core-react/select/LabeledThemedSelect.d.ts.map +0 -1
- package/lib/esm/core-react/select/LabeledThemedSelect.js +0 -27
- package/lib/esm/core-react/select/LabeledThemedSelect.js.map +0 -1
- package/lib/esm/core-react/select/Select.d.ts +0 -53
- package/lib/esm/core-react/select/Select.d.ts.map +0 -1
- package/lib/esm/core-react/select/Select.js +0 -57
- package/lib/esm/core-react/select/Select.js.map +0 -1
- package/lib/esm/core-react/select/ThemedSelect.d.ts +0 -104
- package/lib/esm/core-react/select/ThemedSelect.d.ts.map +0 -1
- package/lib/esm/core-react/select/ThemedSelect.js +0 -53
- package/lib/esm/core-react/select/ThemedSelect.js.map +0 -1
- package/lib/esm/core-react/select/classes.scss +0 -9
- package/lib/esm/core-react/select/index.scss +0 -10
- package/lib/esm/core-react/select/labeled-select.scss +0 -72
- package/lib/esm/core-react/select/labeled-themed-select.scss +0 -77
- package/lib/esm/core-react/select/modalHelper.d.ts +0 -5
- package/lib/esm/core-react/select/modalHelper.d.ts.map +0 -1
- package/lib/esm/core-react/select/modalHelper.js +0 -17
- package/lib/esm/core-react/select/modalHelper.js.map +0 -1
- package/lib/esm/core-react/select/select.scss +0 -74
- package/lib/esm/core-react/select/themed-select.scss +0 -159
- package/lib/esm/core-react/slider/Slider.d.ts +0 -80
- package/lib/esm/core-react/slider/Slider.d.ts.map +0 -1
- package/lib/esm/core-react/slider/Slider.js +0 -87
- package/lib/esm/core-react/slider/Slider.js.map +0 -1
- package/lib/esm/core-react/slider/Slider.scss +0 -96
- package/lib/esm/core-react/splitbutton/SplitButton.d.ts +0 -62
- package/lib/esm/core-react/splitbutton/SplitButton.d.ts.map +0 -1
- package/lib/esm/core-react/splitbutton/SplitButton.js +0 -100
- package/lib/esm/core-react/splitbutton/SplitButton.js.map +0 -1
- package/lib/esm/core-react/splitbutton/SplitButton.scss +0 -137
- package/lib/esm/core-react/tabs/HorizontalTabs.d.ts +0 -11
- package/lib/esm/core-react/tabs/HorizontalTabs.d.ts.map +0 -1
- package/lib/esm/core-react/tabs/HorizontalTabs.js +0 -18
- package/lib/esm/core-react/tabs/HorizontalTabs.js.map +0 -1
- package/lib/esm/core-react/tabs/horizontal.scss +0 -77
- package/lib/esm/core-react/text/Headline.d.ts +0 -11
- package/lib/esm/core-react/text/Headline.d.ts.map +0 -1
- package/lib/esm/core-react/text/Headline.js +0 -17
- package/lib/esm/core-react/text/Headline.js.map +0 -1
- package/lib/esm/core-react/text/LeadingText.d.ts +0 -11
- package/lib/esm/core-react/text/LeadingText.d.ts.map +0 -1
- package/lib/esm/core-react/text/LeadingText.js +0 -17
- package/lib/esm/core-react/text/LeadingText.js.map +0 -1
- package/lib/esm/core-react/text/LeadingText2.d.ts +0 -11
- package/lib/esm/core-react/text/LeadingText2.d.ts.map +0 -1
- package/lib/esm/core-react/text/LeadingText2.js +0 -17
- package/lib/esm/core-react/text/LeadingText2.js.map +0 -1
- package/lib/esm/core-react/text/SmallText.d.ts +0 -11
- package/lib/esm/core-react/text/SmallText.d.ts.map +0 -1
- package/lib/esm/core-react/text/SmallText.js +0 -17
- package/lib/esm/core-react/text/SmallText.js.map +0 -1
- package/lib/esm/core-react/text/Subheading.d.ts +0 -11
- package/lib/esm/core-react/text/Subheading.d.ts.map +0 -1
- package/lib/esm/core-react/text/Subheading.js +0 -17
- package/lib/esm/core-react/text/Subheading.js.map +0 -1
- package/lib/esm/core-react/text/Subheading2.d.ts +0 -11
- package/lib/esm/core-react/text/Subheading2.d.ts.map +0 -1
- package/lib/esm/core-react/text/Subheading2.js +0 -17
- package/lib/esm/core-react/text/Subheading2.js.map +0 -1
- package/lib/esm/core-react/text/Title.d.ts +0 -11
- package/lib/esm/core-react/text/Title.d.ts.map +0 -1
- package/lib/esm/core-react/text/Title.js +0 -17
- package/lib/esm/core-react/text/Title.js.map +0 -1
- package/lib/esm/core-react/text/Title2.d.ts +0 -11
- package/lib/esm/core-react/text/Title2.d.ts.map +0 -1
- package/lib/esm/core-react/text/Title2.js +0 -17
- package/lib/esm/core-react/text/Title2.js.map +0 -1
- package/lib/esm/core-react/text/headline.scss +0 -10
- package/lib/esm/core-react/text/leading-2.scss +0 -11
- package/lib/esm/core-react/text/leading.scss +0 -10
- package/lib/esm/core-react/text/small.scss +0 -10
- package/lib/esm/core-react/text/subheading-2.scss +0 -11
- package/lib/esm/core-react/text/subheading.scss +0 -11
- package/lib/esm/core-react/text/title-2.scss +0 -11
- package/lib/esm/core-react/text/title.scss +0 -10
- package/lib/esm/core-react/tiles/FeaturedTile.d.ts +0 -11
- package/lib/esm/core-react/tiles/FeaturedTile.d.ts.map +0 -1
- package/lib/esm/core-react/tiles/FeaturedTile.js +0 -17
- package/lib/esm/core-react/tiles/FeaturedTile.js.map +0 -1
- package/lib/esm/core-react/tiles/MinimalFeaturedTile.d.ts +0 -11
- package/lib/esm/core-react/tiles/MinimalFeaturedTile.d.ts.map +0 -1
- package/lib/esm/core-react/tiles/MinimalFeaturedTile.js +0 -17
- package/lib/esm/core-react/tiles/MinimalFeaturedTile.js.map +0 -1
- package/lib/esm/core-react/tiles/MinimalTile.d.ts +0 -11
- package/lib/esm/core-react/tiles/MinimalTile.d.ts.map +0 -1
- package/lib/esm/core-react/tiles/MinimalTile.js +0 -17
- package/lib/esm/core-react/tiles/MinimalTile.js.map +0 -1
- package/lib/esm/core-react/tiles/Tile.d.ts +0 -32
- package/lib/esm/core-react/tiles/Tile.d.ts.map +0 -1
- package/lib/esm/core-react/tiles/Tile.js +0 -36
- package/lib/esm/core-react/tiles/Tile.js.map +0 -1
- package/lib/esm/core-react/tiles/classes.scss +0 -7
- package/lib/esm/core-react/tiles/index.scss +0 -5
- package/lib/esm/core-react/tiles/tile.scss +0 -134
- package/lib/esm/core-react/toggle/LabeledToggle.d.ts +0 -26
- package/lib/esm/core-react/toggle/LabeledToggle.d.ts.map +0 -1
- package/lib/esm/core-react/toggle/LabeledToggle.js +0 -25
- package/lib/esm/core-react/toggle/LabeledToggle.js.map +0 -1
- package/lib/esm/core-react/toggle/LabeledToggle.scss +0 -21
- package/lib/esm/core-react/toggle/Toggle.d.ts +0 -52
- package/lib/esm/core-react/toggle/Toggle.d.ts.map +0 -1
- package/lib/esm/core-react/toggle/Toggle.js +0 -102
- package/lib/esm/core-react/toggle/Toggle.js.map +0 -1
- package/lib/esm/core-react/toggle/Toggle.scss +0 -135
- package/lib/esm/core-react/tooltip/Tooltip.d.ts +0 -34
- package/lib/esm/core-react/tooltip/Tooltip.d.ts.map +0 -1
- package/lib/esm/core-react/tooltip/Tooltip.js +0 -52
- package/lib/esm/core-react/tooltip/Tooltip.js.map +0 -1
- package/lib/esm/core-react/tooltip/Tooltip.scss +0 -18
- package/lib/esm/core-react/utils/PointProps.d.ts +0 -12
- package/lib/esm/core-react/utils/PointProps.d.ts.map +0 -1
- package/lib/esm/core-react/utils/PointProps.js +0 -9
- package/lib/esm/core-react/utils/PointProps.js.map +0 -1
- package/lib/esm/core-react/utils/UiEvent.d.ts +0 -10
- package/lib/esm/core-react/utils/UiEvent.d.ts.map +0 -1
- package/lib/esm/core-react/utils/UiEvent.js +0 -14
- package/lib/esm/core-react/utils/UiEvent.js.map +0 -1
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module Radio
|
|
3
|
-
*/
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
import { LabeledComponentProps } from "../inputs/LabeledComponentProps";
|
|
6
|
-
import { CommonProps } from "../utils/Props";
|
|
7
|
-
/** Properties for [[Radio]] component
|
|
8
|
-
* @public
|
|
9
|
-
* @deprecated in 3.0. Use RadioProps in itwinui-react instead
|
|
10
|
-
*/
|
|
11
|
-
export interface RadioProps extends React.InputHTMLAttributes<HTMLInputElement>, CommonProps, LabeledComponentProps {
|
|
12
|
-
}
|
|
13
|
-
/** Basic radio input component is a wrapper for the `<input type="radio">` HTML element.
|
|
14
|
-
* @public
|
|
15
|
-
* @deprecated in 3.0. Use Radio in itwinui-react instead
|
|
16
|
-
*/
|
|
17
|
-
export declare class Radio extends React.PureComponent<RadioProps> {
|
|
18
|
-
render(): JSX.Element;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=Radio.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../../src/core-react/radio/Radio.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAGH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C;;;GAGG;AACH,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,WAAW,EAAE,qBAAqB;CAAI;AAEvH;;;GAGG;AACH,qBAAa,KAAM,SAAQ,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC;IACxC,MAAM,IAAI,GAAG,CAAC,OAAO;CAkBtC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
/** @packageDocumentation
|
|
7
|
-
* @module Radio
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.Radio = void 0;
|
|
11
|
-
const classnames_1 = require("classnames");
|
|
12
|
-
const React = require("react");
|
|
13
|
-
/** Basic radio input component is a wrapper for the `<input type="radio">` HTML element.
|
|
14
|
-
* @public
|
|
15
|
-
* @deprecated in 3.0. Use Radio in itwinui-react instead
|
|
16
|
-
*/
|
|
17
|
-
class Radio extends React.PureComponent {
|
|
18
|
-
render() {
|
|
19
|
-
const { label, disabled, status, className, style, inputStyle, inputClassName, type, ...props } = this.props; // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
20
|
-
return (React.createElement("label", { style: style, className: (0, classnames_1.default)("uicore-inputs-radio", disabled && "core-disabled", status, className) },
|
|
21
|
-
label &&
|
|
22
|
-
React.createElement("span", null, label),
|
|
23
|
-
React.createElement("input", { type: "radio", className: inputClassName, style: inputStyle, disabled: disabled, ...props }),
|
|
24
|
-
React.createElement("span", { className: "core-radio-checkmark" })));
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.Radio = Radio;
|
|
28
|
-
//# sourceMappingURL=Radio.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.js","sourceRoot":"","sources":["../../../../src/core-react/radio/Radio.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAU/B;;;GAGG;AACH,MAAa,KAAM,SAAQ,KAAK,CAAC,aAAyB;IACxC,MAAM;QACpB,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,wDAAwD;QAEtK,OAAO,CACL,+BAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,IAAA,oBAAU,EACxC,qBAAqB,EACrB,QAAQ,IAAI,eAAe,EAC3B,MAAM,EACN,SAAS,CACV;YACE,KAAK;gBACJ,kCAAO,KAAK,CAAQ;YAEtB,+BAAO,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,KAAM,KAAK,GAAI;YACrG,8BAAM,SAAS,EAAC,sBAAsB,GAAQ,CACxC,CACT,CAAC;IACJ,CAAC;CACF;AAnBD,sBAmBC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Radio\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { LabeledComponentProps } from \"../inputs/LabeledComponentProps\";\r\nimport { CommonProps } from \"../utils/Props\";\r\n\r\n/** Properties for [[Radio]] component\r\n * @public\r\n * @deprecated in 3.0. Use RadioProps in itwinui-react instead\r\n */\r\nexport interface RadioProps extends React.InputHTMLAttributes<HTMLInputElement>, CommonProps, LabeledComponentProps { }\r\n\r\n/** Basic radio input component is a wrapper for the `<input type=\"radio\">` HTML element.\r\n * @public\r\n * @deprecated in 3.0. Use Radio in itwinui-react instead\r\n */\r\nexport class Radio extends React.PureComponent<RadioProps> { // eslint-disable-line deprecation/deprecation\r\n public override render(): JSX.Element {\r\n const { label, disabled, status, className, style, inputStyle, inputClassName, type, ...props } = this.props; // eslint-disable-line @typescript-eslint/no-unused-vars\r\n\r\n return (\r\n <label style={style} className={classnames(\r\n \"uicore-inputs-radio\",\r\n disabled && \"core-disabled\",\r\n status,\r\n className,\r\n )}>\r\n {label &&\r\n <span>{label}</span>\r\n }\r\n <input type={\"radio\"} className={inputClassName} style={inputStyle} disabled={disabled} {...props} />\r\n <span className=\"core-radio-checkmark\"></span>\r\n </label>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
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
|
-
@import "./index";
|
|
6
|
-
|
|
7
|
-
.uicore-inputs-radio { @include uicore-inputs-radio; }
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
@import "../style/index";
|
|
6
|
-
|
|
7
|
-
@import "../inputs/variables";
|
|
8
|
-
@import "./radio";
|
|
@@ -1,89 +0,0 @@
|
|
|
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
|
-
@import "../style/index";
|
|
6
|
-
@import "~@itwin/itwinui-css/scss/style/space";
|
|
7
|
-
@import "~@itwin/itwinui-css/scss/style/speed";
|
|
8
|
-
@import "~@itwin/itwinui-css/scss/style/typography";
|
|
9
|
-
|
|
10
|
-
@mixin uicore-inputs-radio {
|
|
11
|
-
|
|
12
|
-
display: block;
|
|
13
|
-
position: relative;
|
|
14
|
-
padding-left: $iui-l;
|
|
15
|
-
font-size: $iui-font-size;
|
|
16
|
-
cursor: pointer;
|
|
17
|
-
user-select: none;
|
|
18
|
-
color: $buic-foreground-body;
|
|
19
|
-
min-height: 1.57em;
|
|
20
|
-
|
|
21
|
-
> input {
|
|
22
|
-
position: absolute;
|
|
23
|
-
opacity: 0;
|
|
24
|
-
width: 0;
|
|
25
|
-
cursor: pointer;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.core-radio-checkmark {
|
|
29
|
-
position: absolute;
|
|
30
|
-
top: 2px;
|
|
31
|
-
left: 0;
|
|
32
|
-
height: 1em;
|
|
33
|
-
width: 1em;
|
|
34
|
-
border: 1px solid $buic-foreground-disabled;
|
|
35
|
-
background-color: $buic-background-control;
|
|
36
|
-
border-radius: 50%;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&:hover:not(.core-disabled) input ~ .core-radio-checkmark {
|
|
40
|
-
border-color: $buic-foreground-activehover;
|
|
41
|
-
transition: all $iui-speed-fast ease-out;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
& input:checked ~ .core-radio-checkmark {
|
|
45
|
-
border-color: $buic-foreground-muted;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
& input:active ~ .core-radio-checkmark,
|
|
49
|
-
& input:focus ~ .core-radio-checkmark {
|
|
50
|
-
border-color: $buic-foreground-focus-border;
|
|
51
|
-
box-shadow: $uicore-inputs-focus-boxshadow;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.core-radio-checkmark::after {
|
|
55
|
-
content: '';
|
|
56
|
-
position: absolute;
|
|
57
|
-
display: none;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
& input:checked ~ .core-radio-checkmark::after {
|
|
61
|
-
display: block;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
& .core-radio-checkmark::after {
|
|
65
|
-
top: 3px;
|
|
66
|
-
left: 3px;
|
|
67
|
-
width: 8px;
|
|
68
|
-
height: 8px;
|
|
69
|
-
border-radius: 50%;
|
|
70
|
-
background: $buic-foreground-primary;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&.core-disabled {
|
|
74
|
-
opacity: $uicore-opacity-disabled;
|
|
75
|
-
cursor: not-allowed;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&.success {
|
|
79
|
-
color: $buic-foreground-success;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&.warning {
|
|
83
|
-
color: $buic-foreground-warning;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&.error {
|
|
87
|
-
color: $buic-foreground-alert;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module Select
|
|
3
|
-
*/
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
import { LabeledComponentProps, MessagedComponentProps } from "../inputs/LabeledComponentProps";
|
|
6
|
-
import { SelectProps } from "./Select";
|
|
7
|
-
/** Properties for [[LabeledSelect]] components
|
|
8
|
-
* @public
|
|
9
|
-
* @deprecated in 3.0. Use LabeledSelectProps in itwinui-react instead
|
|
10
|
-
*/
|
|
11
|
-
export interface LabeledSelectProps extends SelectProps, LabeledComponentProps, MessagedComponentProps {
|
|
12
|
-
}
|
|
13
|
-
/** Dropdown wrapper that allows for additional styling and labelling
|
|
14
|
-
* @public
|
|
15
|
-
* @deprecated in 3.0. Use LabeledSelect in itwinui-react instead
|
|
16
|
-
*/
|
|
17
|
-
export declare class LabeledSelect extends React.PureComponent<LabeledSelectProps> {
|
|
18
|
-
render(): JSX.Element;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=LabeledSelect.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LabeledSelect.d.ts","sourceRoot":"","sources":["../../../../src/core-react/select/LabeledSelect.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAKH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAChG,OAAO,EAAU,WAAW,EAAE,MAAM,UAAU,CAAC;AAE/C;;;GAGG;AACH,MAAM,WAAW,kBAAmB,SAAQ,WAAW,EAAE,qBAAqB,EAAE,sBAAsB;CAAI;AAE1G;;;GAGG;AACH,qBAAa,aAAc,SAAQ,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC;IACxD,MAAM,IAAI,GAAG,CAAC,OAAO;CAwBtC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
/** @packageDocumentation
|
|
7
|
-
* @module Select
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.LabeledSelect = void 0;
|
|
11
|
-
/* eslint-disable deprecation/deprecation */
|
|
12
|
-
const classnames_1 = require("classnames");
|
|
13
|
-
const React = require("react");
|
|
14
|
-
const Select_1 = require("./Select");
|
|
15
|
-
/** Dropdown wrapper that allows for additional styling and labelling
|
|
16
|
-
* @public
|
|
17
|
-
* @deprecated in 3.0. Use LabeledSelect in itwinui-react instead
|
|
18
|
-
*/
|
|
19
|
-
class LabeledSelect extends React.PureComponent {
|
|
20
|
-
render() {
|
|
21
|
-
const { label, status, className, style, inputClassName, inputStyle, labelClassName, labelStyle, message, messageClassName, messageStyle, ...props } = this.props;
|
|
22
|
-
return (React.createElement("label", { style: style, className: (0, classnames_1.default)("uicore-inputs-labeled-select", this.props.disabled && "uicore-disabled", status, className) },
|
|
23
|
-
label &&
|
|
24
|
-
React.createElement("div", { className: (0, classnames_1.default)("uicore-label", labelClassName), style: labelStyle },
|
|
25
|
-
" ",
|
|
26
|
-
label,
|
|
27
|
-
" "),
|
|
28
|
-
React.createElement(Select_1.Select, { disabled: this.props.disabled, className: inputClassName, style: inputStyle, ...props }),
|
|
29
|
-
message &&
|
|
30
|
-
React.createElement("div", { className: (0, classnames_1.default)("uicore-message", messageClassName), style: messageStyle }, message)));
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
exports.LabeledSelect = LabeledSelect;
|
|
34
|
-
//# sourceMappingURL=LabeledSelect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LabeledSelect.js","sourceRoot":"","sources":["../../../../src/core-react/select/LabeledSelect.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F;;GAEG;;;AAEH,4CAA4C;AAE5C,2CAAoC;AACpC,+BAA+B;AAE/B,qCAA+C;AAQ/C;;;GAGG;AACH,MAAa,aAAc,SAAQ,KAAK,CAAC,aAAiC;IACxD,MAAM;QACpB,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EACrC,cAAc,EAAE,UAAU,EAC1B,cAAc,EAAE,UAAU,EAC1B,OAAO,EAAE,gBAAgB,EAAE,YAAY,EACvC,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC;QAE1B,OAAO,CACL,+BAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,IAAA,oBAAU,EACxC,8BAA8B,EAC9B,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,iBAAiB,EACxC,MAAM,EACN,SAAS,CACV;YACE,KAAK;gBACJ,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,cAAc,EAAE,cAAc,CAAC,EAAE,KAAK,EAAE,UAAU;;oBAAI,KAAK;wBAAQ;YAEhG,oBAAC,eAAM,IAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,SAAS,EAAE,cAAc,EAAE,KAAK,EAAE,UAAU,KAAM,KAAK,GAAI;YACjG,OAAO;gBACN,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,KAAK,EAAE,YAAY,IAAG,OAAO,CAAO,CAEhG,CACT,CAAC;IACJ,CAAC;CACF;AAzBD,sCAyBC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Select\r\n */\r\n\r\n/* eslint-disable deprecation/deprecation */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { LabeledComponentProps, MessagedComponentProps } from \"../inputs/LabeledComponentProps\";\r\nimport { Select, SelectProps } from \"./Select\";\r\n\r\n/** Properties for [[LabeledSelect]] components\r\n * @public\r\n * @deprecated in 3.0. Use LabeledSelectProps in itwinui-react instead\r\n */\r\nexport interface LabeledSelectProps extends SelectProps, LabeledComponentProps, MessagedComponentProps { }\r\n\r\n/** Dropdown wrapper that allows for additional styling and labelling\r\n * @public\r\n * @deprecated in 3.0. Use LabeledSelect in itwinui-react instead\r\n */\r\nexport class LabeledSelect extends React.PureComponent<LabeledSelectProps> {\r\n public override render(): JSX.Element {\r\n const { label, status, className, style,\r\n inputClassName, inputStyle,\r\n labelClassName, labelStyle,\r\n message, messageClassName, messageStyle,\r\n ...props } = this.props;\r\n\r\n return (\r\n <label style={style} className={classnames(\r\n \"uicore-inputs-labeled-select\",\r\n this.props.disabled && \"uicore-disabled\",\r\n status,\r\n className,\r\n )}>\r\n {label &&\r\n <div className={classnames(\"uicore-label\", labelClassName)} style={labelStyle}> {label} </div>\r\n }\r\n <Select disabled={this.props.disabled} className={inputClassName} style={inputStyle} {...props} />\r\n {message &&\r\n <div className={classnames(\"uicore-message\", messageClassName)} style={messageStyle}>{message}</div>\r\n }\r\n </label>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module Select
|
|
3
|
-
*/
|
|
4
|
-
/// <reference types="react" />
|
|
5
|
-
import { LabeledComponentProps, MessagedComponentProps } from "../inputs/LabeledComponentProps";
|
|
6
|
-
import { ThemedSelectProps } from "./ThemedSelect";
|
|
7
|
-
/** Properties for [[LabeledThemedSelect]] components
|
|
8
|
-
* @beta @deprecated in 3.0.
|
|
9
|
-
*/
|
|
10
|
-
export interface LabeledThemedSelectProps extends ThemedSelectProps, LabeledComponentProps, MessagedComponentProps {
|
|
11
|
-
}
|
|
12
|
-
/** Dropdown wrapper that allows for additional styling and labelling
|
|
13
|
-
* @beta @deprecated in 3.0.
|
|
14
|
-
*/
|
|
15
|
-
export declare function LabeledThemedSelect(props: LabeledThemedSelectProps): JSX.Element;
|
|
16
|
-
//# sourceMappingURL=LabeledThemedSelect.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LabeledThemedSelect.d.ts","sourceRoot":"","sources":["../../../../src/core-react/select/LabeledThemedSelect.tsx"],"names":[],"mappings":"AAKA;;GAEG;;AAIH,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAChG,OAAO,EAAgB,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEjE;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,iBAAiB,EAAE,qBAAqB,EAAE,sBAAsB;CAAI;AAEtH;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,eAuBlE"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
/* eslint-disable deprecation/deprecation */
|
|
7
|
-
/** @packageDocumentation
|
|
8
|
-
* @module Select
|
|
9
|
-
*/
|
|
10
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.LabeledThemedSelect = void 0;
|
|
12
|
-
const classnames_1 = require("classnames");
|
|
13
|
-
const React = require("react");
|
|
14
|
-
const ThemedSelect_1 = require("./ThemedSelect");
|
|
15
|
-
/** Dropdown wrapper that allows for additional styling and labelling
|
|
16
|
-
* @beta @deprecated in 3.0.
|
|
17
|
-
*/
|
|
18
|
-
function LabeledThemedSelect(props) {
|
|
19
|
-
const { label, status, className, style, inputClassName, inputStyle, labelClassName, labelStyle, message, messageClassName, messageStyle, ...otherProps } = props;
|
|
20
|
-
return (React.createElement("label", { style: style, className: (0, classnames_1.default)("uicore-inputs-labeled-themed-select", props.isDisabled && "uicore-disabled", status, className) },
|
|
21
|
-
label &&
|
|
22
|
-
React.createElement("div", { className: (0, classnames_1.default)("uicore-label", labelClassName), style: labelStyle },
|
|
23
|
-
" ",
|
|
24
|
-
label,
|
|
25
|
-
" "),
|
|
26
|
-
React.createElement(ThemedSelect_1.ThemedSelect, { isDisabled: props.isDisabled, className: inputClassName, styles: inputStyle, ...otherProps }),
|
|
27
|
-
message &&
|
|
28
|
-
React.createElement("div", { className: (0, classnames_1.default)("uicore-message", messageClassName), style: messageStyle }, message)));
|
|
29
|
-
}
|
|
30
|
-
exports.LabeledThemedSelect = LabeledThemedSelect;
|
|
31
|
-
//# sourceMappingURL=LabeledThemedSelect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LabeledThemedSelect.js","sourceRoot":"","sources":["../../../../src/core-react/select/LabeledThemedSelect.tsx"],"names":[],"mappings":";AAAA;;;+FAG+F;AAC/F,4CAA4C;AAC5C;;GAEG;;;AAEH,2CAAoC;AACpC,+BAA+B;AAE/B,iDAAiE;AAOjE;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAA+B;IACjE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EACrC,cAAc,EAAE,UAAU,EAC1B,cAAc,EAAE,UAAU,EAC1B,OAAO,EAAE,gBAAgB,EAAE,YAAY,EACvC,GAAG,UAAU,EAAE,GAAG,KAAY,CAAC;IAEjC,OAAO,CACL,+BAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,IAAA,oBAAU,EACxC,qCAAqC,EACrC,KAAK,CAAC,UAAU,IAAI,iBAAiB,EACrC,MAAM,EACN,SAAS,CACV;QACE,KAAK;YACJ,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,cAAc,EAAE,cAAc,CAAC,EAAE,KAAK,EAAE,UAAU;;gBAAI,KAAK;oBAAQ;QAEhG,oBAAC,2BAAY,IAAC,UAAU,EAAE,KAAK,CAAC,UAAU,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,EAAE,UAAU,KAAM,UAAU,GAAI;QAC5G,OAAO;YACN,6BAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,KAAK,EAAE,YAAY,IAAG,OAAO,CAAO,CAEhG,CACT,CAAC;AACJ,CAAC;AAvBD,kDAuBC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/* eslint-disable deprecation/deprecation */\r\n/** @packageDocumentation\r\n * @module Select\r\n */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { LabeledComponentProps, MessagedComponentProps } from \"../inputs/LabeledComponentProps\";\r\nimport { ThemedSelect, ThemedSelectProps } from \"./ThemedSelect\";\r\n\r\n/** Properties for [[LabeledThemedSelect]] components\r\n * @beta @deprecated in 3.0.\r\n */\r\nexport interface LabeledThemedSelectProps extends ThemedSelectProps, LabeledComponentProps, MessagedComponentProps { }\r\n\r\n/** Dropdown wrapper that allows for additional styling and labelling\r\n * @beta @deprecated in 3.0.\r\n */\r\nexport function LabeledThemedSelect(props: LabeledThemedSelectProps) {\r\n const { label, status, className, style,\r\n inputClassName, inputStyle,\r\n labelClassName, labelStyle,\r\n message, messageClassName, messageStyle,\r\n ...otherProps } = props as any;\r\n\r\n return (\r\n <label style={style} className={classnames(\r\n \"uicore-inputs-labeled-themed-select\",\r\n props.isDisabled && \"uicore-disabled\",\r\n status,\r\n className,\r\n )}>\r\n {label &&\r\n <div className={classnames(\"uicore-label\", labelClassName)} style={labelStyle}> {label} </div>\r\n }\r\n <ThemedSelect isDisabled={props.isDisabled} className={inputClassName} styles={inputStyle} {...otherProps} />\r\n {message &&\r\n <div className={classnames(\"uicore-message\", messageClassName)} style={messageStyle}>{message}</div>\r\n }\r\n </label>\r\n );\r\n}\r\n"]}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module Select
|
|
3
|
-
*/
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
import { CommonProps } from "../utils/Props";
|
|
6
|
-
/** Properties for a Select option
|
|
7
|
-
* @public
|
|
8
|
-
* @deprecated in 3.0. Use SelectOption in itwinui-react instead
|
|
9
|
-
*/
|
|
10
|
-
export interface SelectOption {
|
|
11
|
-
/** Label of the option. If `value` is not set when using SelectOption[], also serves as the value. */
|
|
12
|
-
label: string;
|
|
13
|
-
/** Value of the option when using SelectOption[]. */
|
|
14
|
-
value?: string | number | readonly string[];
|
|
15
|
-
/** Indicates whether the option is disabled. */
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
}
|
|
18
|
-
/** Properties for [[Select]] component
|
|
19
|
-
* @public
|
|
20
|
-
* @deprecated in 3.0. Use SelectProps in itwinui-react instead
|
|
21
|
-
*/
|
|
22
|
-
export interface SelectProps extends React.SelectHTMLAttributes<HTMLSelectElement>, CommonProps {
|
|
23
|
-
/** Options for Select dropdown.
|
|
24
|
-
* @example
|
|
25
|
-
* // Example of {[key: string]: (string | SelectOption)} usage:
|
|
26
|
-
* <Select options={{
|
|
27
|
-
* option1: "Option 1",
|
|
28
|
-
* option2: "Option 2",
|
|
29
|
-
* option3: {label: "Option 3", disabled: true},
|
|
30
|
-
* }} />
|
|
31
|
-
*
|
|
32
|
-
* // Example of (string | SelectOption)[] usage:
|
|
33
|
-
* <Select options={[
|
|
34
|
-
* "Option 1",
|
|
35
|
-
* "Option 2",
|
|
36
|
-
* {label: "Option 3", value: "option3", disabled: true},
|
|
37
|
-
* ]} />
|
|
38
|
-
* }
|
|
39
|
-
*/
|
|
40
|
-
options: (string | SelectOption)[] | {
|
|
41
|
-
[key: string]: (string | SelectOption);
|
|
42
|
-
};
|
|
43
|
-
/** Indicates whether to set focus to the select element */
|
|
44
|
-
setFocus?: boolean;
|
|
45
|
-
/** Provides ability to return reference to HTMLSelectElement */
|
|
46
|
-
ref?: React.Ref<HTMLSelectElement>;
|
|
47
|
-
}
|
|
48
|
-
/** Basic select component is a wrapper for the `<select>` HTML element.
|
|
49
|
-
* @public
|
|
50
|
-
* @deprecated in 3.0. Use Select in itwinui-react instead
|
|
51
|
-
*/
|
|
52
|
-
export declare const Select: (props: SelectProps) => JSX.Element | null;
|
|
53
|
-
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../src/core-react/select/Select.tsx"],"names":[],"mappings":"AAIA;;GAEG;AAKH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,sGAAsG;IACtG,KAAK,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,MAAM,EAAE,CAAC;IAC5C,gDAAgD;IAChD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,WAAW;IAC7F;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,EAAE,CAAC,MAAM,GAAG,YAAY,CAAC,EAAE,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,YAAY,CAAC,CAAA;KAAE,CAAC;IAChF,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gEAAgE;IAChE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;CACpC;AAsED;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,GAAG,CAAC,OAAO,GAAG,IAAuB,CAAC"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
/** @packageDocumentation
|
|
7
|
-
* @module Select
|
|
8
|
-
*/
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.Select = void 0;
|
|
11
|
-
/* eslint-disable deprecation/deprecation */
|
|
12
|
-
const classnames_1 = require("classnames");
|
|
13
|
-
const React = require("react");
|
|
14
|
-
const useRefs_1 = require("../utils/hooks/useRefs");
|
|
15
|
-
function getCurrentDefaultValue(defaultValue, placeholderValue) {
|
|
16
|
-
if (defaultValue)
|
|
17
|
-
return defaultValue;
|
|
18
|
-
return placeholderValue;
|
|
19
|
-
}
|
|
20
|
-
function getOptionLabel(option) {
|
|
21
|
-
return (typeof option === "string") ? option : option.label;
|
|
22
|
-
}
|
|
23
|
-
function getOptionValue(option) {
|
|
24
|
-
return (typeof option === "string") ? option : (undefined !== option.value ? option.value : option.label);
|
|
25
|
-
}
|
|
26
|
-
function getOptionDisabled(option) {
|
|
27
|
-
return (typeof option === "string") ? undefined : option.disabled;
|
|
28
|
-
}
|
|
29
|
-
const ForwardRefSelect = React.forwardRef(function ForwardRefSelect(props, ref) {
|
|
30
|
-
const selectElement = React.useRef(null);
|
|
31
|
-
const placeholderValue = React.useRef("placeholder");
|
|
32
|
-
const isInitialMount = React.useRef(true);
|
|
33
|
-
const refs = (0, useRefs_1.useRefs)(selectElement, ref); // combine ref needed for target with the forwardRef needed by the Parent when parent is a Type Editor.
|
|
34
|
-
React.useEffect(() => {
|
|
35
|
-
if (props.setFocus && selectElement.current)
|
|
36
|
-
selectElement.current.focus();
|
|
37
|
-
}, [props]);
|
|
38
|
-
React.useEffect(() => {
|
|
39
|
-
isInitialMount.current = false;
|
|
40
|
-
}, []);
|
|
41
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
42
|
-
const { value: selectValue, required, options, setFocus, className, defaultValue, ...otherProps } = props; // pluck off values that will be explicitly set below
|
|
43
|
-
const showPlaceholder = React.useMemo(() => props.placeholder && (undefined === selectValue || selectValue === placeholderValue.current) && !defaultValue, [defaultValue, selectValue, props.placeholder]);
|
|
44
|
-
const isRequired = React.useMemo(() => showPlaceholder || required, [required, showPlaceholder]);
|
|
45
|
-
const currentDefaultValue = React.useMemo(() => getCurrentDefaultValue(defaultValue, showPlaceholder ? placeholderValue.current : undefined), [defaultValue, showPlaceholder]);
|
|
46
|
-
const value = (!isInitialMount.current && undefined === selectValue) ? currentDefaultValue : selectValue;
|
|
47
|
-
return (React.createElement("select", { ref: refs, ...otherProps, required: isRequired, className: (0, classnames_1.default)("uicore-inputs-select", className), value: value, defaultValue: value === undefined ? currentDefaultValue : undefined },
|
|
48
|
-
showPlaceholder &&
|
|
49
|
-
React.createElement("option", { className: "placeholder", disabled: true, key: "", value: placeholderValue.current }, props.placeholder),
|
|
50
|
-
options instanceof Array ?
|
|
51
|
-
options.map((option, index) => (React.createElement("option", { key: index, value: getOptionValue(option), disabled: getOptionDisabled(option) }, getOptionLabel(option))))
|
|
52
|
-
:
|
|
53
|
-
Object.keys(options).map((key) => (React.createElement("option", { key: key, value: key, disabled: getOptionDisabled(options[key]) }, getOptionLabel(options[key]))))));
|
|
54
|
-
});
|
|
55
|
-
/** Basic select component is a wrapper for the `<select>` HTML element.
|
|
56
|
-
* @public
|
|
57
|
-
* @deprecated in 3.0. Use Select in itwinui-react instead
|
|
58
|
-
*/
|
|
59
|
-
exports.Select = ForwardRefSelect;
|
|
60
|
-
//# sourceMappingURL=Select.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../../src/core-react/select/Select.tsx"],"names":[],"mappings":"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","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\n/** @packageDocumentation\r\n * @module Select\r\n */\r\n\r\n/* eslint-disable deprecation/deprecation */\r\n\r\nimport classnames from \"classnames\";\r\nimport * as React from \"react\";\r\nimport { CommonProps } from \"../utils/Props\";\r\nimport { useRefs } from \"../utils/hooks/useRefs\";\r\n\r\n/** Properties for a Select option\r\n * @public\r\n * @deprecated in 3.0. Use SelectOption in itwinui-react instead\r\n */\r\nexport interface SelectOption {\r\n /** Label of the option. If `value` is not set when using SelectOption[], also serves as the value. */\r\n label: string;\r\n /** Value of the option when using SelectOption[]. */\r\n value?: string | number | readonly string[];\r\n /** Indicates whether the option is disabled. */\r\n disabled?: boolean;\r\n}\r\n\r\n/** Properties for [[Select]] component\r\n * @public\r\n * @deprecated in 3.0. Use SelectProps in itwinui-react instead\r\n */\r\nexport interface SelectProps extends React.SelectHTMLAttributes<HTMLSelectElement>, CommonProps {\r\n /** Options for Select dropdown.\r\n * @example\r\n * // Example of {[key: string]: (string | SelectOption)} usage:\r\n * <Select options={{\r\n * option1: \"Option 1\",\r\n * option2: \"Option 2\",\r\n * option3: {label: \"Option 3\", disabled: true},\r\n * }} />\r\n *\r\n * // Example of (string | SelectOption)[] usage:\r\n * <Select options={[\r\n * \"Option 1\",\r\n * \"Option 2\",\r\n * {label: \"Option 3\", value: \"option3\", disabled: true},\r\n * ]} />\r\n * }\r\n */\r\n options: (string | SelectOption)[] | { [key: string]: (string | SelectOption) };\r\n /** Indicates whether to set focus to the select element */\r\n setFocus?: boolean;\r\n /** Provides ability to return reference to HTMLSelectElement */\r\n ref?: React.Ref<HTMLSelectElement>;\r\n}\r\n\r\nfunction getCurrentDefaultValue(defaultValue: string | number | readonly string[] | undefined, placeholderValue: string | undefined) {\r\n if (defaultValue)\r\n return defaultValue;\r\n\r\n return placeholderValue;\r\n}\r\n\r\nfunction getOptionLabel(option: string | SelectOption): string {\r\n return (typeof option === \"string\") ? option : option.label;\r\n}\r\n\r\nfunction getOptionValue(option: string | SelectOption): string | number | readonly string[] {\r\n return (typeof option === \"string\") ? option : (undefined !== option.value ? option.value : option.label);\r\n}\r\n\r\nfunction getOptionDisabled(option: string | SelectOption): boolean | undefined {\r\n return (typeof option === \"string\") ? undefined : option.disabled;\r\n}\r\n\r\nconst ForwardRefSelect = React.forwardRef<HTMLSelectElement, SelectProps>(\r\n function ForwardRefSelect(props, ref) {\r\n const selectElement = React.useRef<HTMLSelectElement>(null);\r\n const placeholderValue = React.useRef(\"placeholder\");\r\n const isInitialMount = React.useRef(true);\r\n const refs = useRefs(selectElement, ref); // combine ref needed for target with the forwardRef needed by the Parent when parent is a Type Editor.\r\n\r\n React.useEffect(() => {\r\n if (props.setFocus && selectElement.current)\r\n selectElement.current.focus();\r\n }, [props]);\r\n\r\n React.useEffect(() => {\r\n isInitialMount.current = false;\r\n }, []);\r\n\r\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\r\n const { value: selectValue, required, options, setFocus, className, defaultValue, ...otherProps } = props; // pluck off values that will be explicitly set below\r\n const showPlaceholder = React.useMemo(() => props.placeholder && (undefined === selectValue || selectValue === placeholderValue.current) && !defaultValue, [defaultValue, selectValue, props.placeholder]);\r\n const isRequired = React.useMemo(() => showPlaceholder || required, [required, showPlaceholder]);\r\n const currentDefaultValue = React.useMemo(() => getCurrentDefaultValue(defaultValue, showPlaceholder ? placeholderValue.current : undefined), [defaultValue, showPlaceholder]);\r\n const value = (!isInitialMount.current && undefined === selectValue) ? currentDefaultValue : selectValue;\r\n return (\r\n <select ref={refs} {...otherProps}\r\n required={isRequired}\r\n className={classnames(\"uicore-inputs-select\", className)}\r\n value={value}\r\n defaultValue={value === undefined ? currentDefaultValue : undefined}>\r\n {showPlaceholder &&\r\n <option className=\"placeholder\" disabled key=\"\" value={placeholderValue.current}>{props.placeholder}</option>\r\n }\r\n {options instanceof Array ?\r\n options.map((option, index) => (\r\n <option key={index} value={getOptionValue(option)} disabled={getOptionDisabled(option)} >\r\n {getOptionLabel(option)}\r\n </option>\r\n ))\r\n :\r\n Object.keys(options).map((key) => (\r\n <option key={key} value={key} disabled={getOptionDisabled(options[key])} >\r\n {getOptionLabel(options[key])}\r\n </option>\r\n ))\r\n }\r\n </select>\r\n );\r\n }\r\n);\r\n\r\n/** Basic select component is a wrapper for the `<select>` HTML element.\r\n * @public\r\n * @deprecated in 3.0. Use Select in itwinui-react instead\r\n */\r\nexport const Select: (props: SelectProps) => JSX.Element | null = ForwardRefSelect;\r\n"]}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
/** @packageDocumentation
|
|
2
|
-
* @module Select
|
|
3
|
-
*/
|
|
4
|
-
import "./themed-select.scss";
|
|
5
|
-
import * as React from "react";
|
|
6
|
-
import Component from "react-select";
|
|
7
|
-
import { formatGroupLabel, getOptionLabel, getOptionValue } from "react-select/src/builtins";
|
|
8
|
-
import { SelectComponentsConfig } from "react-select/src/components/index";
|
|
9
|
-
import { ActionMeta, FocusEventHandler, InputActionMeta, KeyboardEventHandler, ValueType } from "react-select/src/types";
|
|
10
|
-
declare type FormatOptionLabelContext = "menu" | "value";
|
|
11
|
-
declare type FormatOptionLabelMeta = {
|
|
12
|
-
context: FormatOptionLabelContext;
|
|
13
|
-
inputValue: string;
|
|
14
|
-
selectValue: ValueType<OptionType>;
|
|
15
|
-
};
|
|
16
|
-
/** OptionType for react-select 2.0 and above. which only accepts pairs of value & label strings
|
|
17
|
-
* @beta
|
|
18
|
-
* @deprecated in 3.0. Use Select from @itwin/itwinui-react
|
|
19
|
-
*/
|
|
20
|
-
export interface OptionType {
|
|
21
|
-
value: any;
|
|
22
|
-
label: string;
|
|
23
|
-
}
|
|
24
|
-
/** OptionsType to match label/value pair OptionType
|
|
25
|
-
* @beta
|
|
26
|
-
* @deprecated in 3.0. Use Select from @itwin/itwinui-react
|
|
27
|
-
*/
|
|
28
|
-
export declare type OptionsType = Array<OptionType>;
|
|
29
|
-
/** ThemedSelectProps to control specific features of ThemedSelect
|
|
30
|
-
* @beta
|
|
31
|
-
* @deprecated in 3.0. Use Select from @itwin/itwinui-react
|
|
32
|
-
*/
|
|
33
|
-
export declare type ThemedSelectProps = {
|
|
34
|
-
"aria-label"?: string;
|
|
35
|
-
"aria-labelledby"?: string;
|
|
36
|
-
autoFocus?: boolean;
|
|
37
|
-
backspaceRemovesValue?: boolean;
|
|
38
|
-
blurInputOnSelect?: boolean;
|
|
39
|
-
captureMenuScroll?: boolean;
|
|
40
|
-
className?: string;
|
|
41
|
-
closeMenuOnSelect?: boolean;
|
|
42
|
-
closeMenuOnScroll?: boolean | EventListener;
|
|
43
|
-
components?: SelectComponentsConfig<OptionType>;
|
|
44
|
-
controlShouldRenderValue?: boolean;
|
|
45
|
-
defaultMenuIsOpen?: boolean;
|
|
46
|
-
defaultValue?: ValueType<OptionType>;
|
|
47
|
-
/** Provides ability to return reference to the outer HTMLDivElement */
|
|
48
|
-
divRef?: React.Ref<HTMLDivElement>;
|
|
49
|
-
escapeClearsValue?: boolean;
|
|
50
|
-
filterOption?: ((option: OptionType, rawInput: string) => boolean) | null;
|
|
51
|
-
formatGroupLabel?: typeof formatGroupLabel;
|
|
52
|
-
formatOptionLabel?: (optionType: OptionType, formatLabelMeta: FormatOptionLabelMeta) => React.ReactNode;
|
|
53
|
-
getOptionLabel?: typeof getOptionLabel;
|
|
54
|
-
getOptionValue?: typeof getOptionValue;
|
|
55
|
-
hideSelectedOptions?: boolean;
|
|
56
|
-
id?: string;
|
|
57
|
-
inputValue?: string;
|
|
58
|
-
inputId?: string;
|
|
59
|
-
instanceId?: number | string;
|
|
60
|
-
isClearable?: boolean;
|
|
61
|
-
isDisabled?: boolean;
|
|
62
|
-
isLoading?: boolean;
|
|
63
|
-
isOptionDisabled?: (option: OptionType, options: OptionsType) => boolean | false;
|
|
64
|
-
isMulti?: boolean;
|
|
65
|
-
isMenuFixed?: boolean;
|
|
66
|
-
isRtl?: boolean;
|
|
67
|
-
isSearchable?: boolean;
|
|
68
|
-
minMenuHeight?: number;
|
|
69
|
-
maxMenuHeight?: number;
|
|
70
|
-
menuIsOpen?: boolean;
|
|
71
|
-
menuShouldBlockScroll?: boolean;
|
|
72
|
-
menuShouldScrollIntoView?: boolean;
|
|
73
|
-
name?: string;
|
|
74
|
-
noOptionsMessage?: (obj: {
|
|
75
|
-
inputValue: string;
|
|
76
|
-
}) => string | null;
|
|
77
|
-
onBlur?: FocusEventHandler;
|
|
78
|
-
onChange?: (value: ValueType<OptionType>, action: ActionMeta<OptionType>) => void;
|
|
79
|
-
onFocus?: FocusEventHandler;
|
|
80
|
-
onInputChange?: (newValue: string, actionMeta?: InputActionMeta) => void;
|
|
81
|
-
onKeyDown?: KeyboardEventHandler;
|
|
82
|
-
onMenuOpen?: () => void;
|
|
83
|
-
onMenuClose?: () => void;
|
|
84
|
-
onMenuScrollToTop?: (e: React.SyntheticEvent<HTMLElement>) => void;
|
|
85
|
-
onMenuScrollToBottom?: (e: React.SyntheticEvent<HTMLElement>) => void;
|
|
86
|
-
openMenuOnFocus?: boolean;
|
|
87
|
-
openMenuOnClick?: boolean;
|
|
88
|
-
options: OptionsType;
|
|
89
|
-
pageSize?: number;
|
|
90
|
-
placeholder?: string;
|
|
91
|
-
/** Provides ability to return reference to the ThemedSelect */
|
|
92
|
-
ref?: React.Ref<Component>;
|
|
93
|
-
styles?: React.CSSProperties;
|
|
94
|
-
tabIndex?: string;
|
|
95
|
-
tabSelectsValue?: boolean;
|
|
96
|
-
value?: ValueType<OptionType>;
|
|
97
|
-
};
|
|
98
|
-
/** ThemedSelect is a wrapper for react-select with iTwin.js UI theming applied
|
|
99
|
-
* @beta
|
|
100
|
-
* @deprecated in 3.0. Use Select from @itwin/itwinui-react
|
|
101
|
-
*/
|
|
102
|
-
export declare function ThemedSelect(props: ThemedSelectProps): JSX.Element;
|
|
103
|
-
export {};
|
|
104
|
-
//# sourceMappingURL=ThemedSelect.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ThemedSelect.d.ts","sourceRoot":"","sources":["../../../../src/core-react/select/ThemedSelect.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*---------------------------------------------------------------------------------------------
|
|
3
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
4
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
5
|
-
*--------------------------------------------------------------------------------------------*/
|
|
6
|
-
/* eslint-disable deprecation/deprecation */
|
|
7
|
-
/** @packageDocumentation
|
|
8
|
-
* @module Select
|
|
9
|
-
*/
|
|
10
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.ThemedSelect = void 0;
|
|
12
|
-
require("./themed-select.scss");
|
|
13
|
-
const classnames_1 = require("classnames");
|
|
14
|
-
const React = require("react");
|
|
15
|
-
const react_select_1 = require("react-select");
|
|
16
|
-
const UiCore_1 = require("../UiCore");
|
|
17
|
-
const getCssVariable_1 = require("../utils/getCssVariable");
|
|
18
|
-
const modalHelper_1 = require("./modalHelper");
|
|
19
|
-
const ThemedMenu = (props) => {
|
|
20
|
-
return (React.createElement("div", { className: "uicore-reactSelectTop" },
|
|
21
|
-
React.createElement(react_select_1.components.Menu, { ...props })));
|
|
22
|
-
};
|
|
23
|
-
/** ThemedSelect is a wrapper for react-select with iTwin.js UI theming applied
|
|
24
|
-
* @beta
|
|
25
|
-
* @deprecated in 3.0. Use Select from @itwin/itwinui-react
|
|
26
|
-
*/
|
|
27
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
28
|
-
function ThemedSelect(props) {
|
|
29
|
-
var _a;
|
|
30
|
-
const noOptionLabel = React.useRef();
|
|
31
|
-
const defaultOptionMessage = React.useCallback(() => {
|
|
32
|
-
if (!noOptionLabel.current) {
|
|
33
|
-
noOptionLabel.current = UiCore_1.UiCore.translate("reactselect.noSelectOption");
|
|
34
|
-
}
|
|
35
|
-
return noOptionLabel.current;
|
|
36
|
-
}, [noOptionLabel]);
|
|
37
|
-
const noOptionFunction = (_a = props.noOptionsMessage) !== null && _a !== void 0 ? _a : defaultOptionMessage;
|
|
38
|
-
const selectClassName = (0, classnames_1.default)("uicore-reactSelectTop", props.className);
|
|
39
|
-
const portalTarget = !!props.isMenuFixed ? undefined : (0, modalHelper_1.getParentSelector)();
|
|
40
|
-
const {
|
|
41
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
42
|
-
classNamePrefix, className, noOptionsMessage, menuPortalTarget, isMenuFixed, styles, components, divRef, ref,
|
|
43
|
-
// eslint-disable-next-line comma-dangle
|
|
44
|
-
...otherProps // pass-through props
|
|
45
|
-
} = props;
|
|
46
|
-
const selectStyles = {
|
|
47
|
-
...props.styles,
|
|
48
|
-
menuPortal: (base) => ({ ...base, zIndex }),
|
|
49
|
-
};
|
|
50
|
-
const zIndex = (0, getCssVariable_1.getCssVariableAsNumber)("--uicore-z-index-dialog-popup");
|
|
51
|
-
return (React.createElement("div", { className: selectClassName, ref: divRef },
|
|
52
|
-
React.createElement(react_select_1.default, { ref: ref, classNamePrefix: "react-select", noOptionsMessage: noOptionFunction, menuPortalTarget: portalTarget, styles: selectStyles,
|
|
53
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
54
|
-
components: { Menu: ThemedMenu, ...props.components }, ...otherProps })));
|
|
55
|
-
}
|
|
56
|
-
exports.ThemedSelect = ThemedSelect;
|
|
57
|
-
//# sourceMappingURL=ThemedSelect.js.map
|