-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Updated spectrum imports to use dh components (#424)
Imports for Spectrum components that are available in `@deephaven/components` have been updated. Components that are not yet re-exported by @deephaven/components: - `ButtonGroup`, `Checkbox` - we have our own implementations of these #433 We also will want to rename some things such that DH components aren't mapped to `SPECTRUM_ELEMENT_TYPE_PREFIX` #425 #366
- Loading branch information
Showing
13 changed files
with
415 additions
and
394 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import React from 'react'; | ||
import { | ||
ActionButton as SpectrumActionButton, | ||
SpectrumActionButtonProps, | ||
} from '@adobe/react-spectrum'; | ||
ActionButton as DHCActionButton, | ||
ActionButtonProps as DHCActionButtonProps, | ||
} from '@deephaven/components'; | ||
import { SerializedButtonEventProps, useButtonProps } from './useButtonProps'; | ||
|
||
function ActionButton( | ||
props: SpectrumActionButtonProps & SerializedButtonEventProps | ||
props: DHCActionButtonProps & SerializedButtonEventProps | ||
): JSX.Element { | ||
const buttonProps = useButtonProps(props); | ||
|
||
// eslint-disable-next-line react/jsx-props-no-spreading | ||
return <SpectrumActionButton {...buttonProps} />; | ||
return <DHCActionButton {...buttonProps} />; | ||
} | ||
|
||
export default ActionButton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
plugins/ui/src/js/src/elements/spectrum/mapSpectrumChildren.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters