import { Checkbox, Classes, NumericInput } from '@blueprintjs/core'; import type { StyledComponent } from '@emotion/styled'; import styled from '@emotion/styled'; import type { RowData } from '@tanstack/react-table'; import type { ComponentProps } from 'react'; import type { ButtonProps, TableProps } from 'react-science/ui'; import { Button, ColorPickerDropdown, Table } from 'react-science/ui'; import { Input2 } from '../../../../elements/Input2.js'; export const CellInput = styled(Input2)` input { background-color: transparent; box-shadow: none; outline: none; } input.${Classes.INPUT}:focus { box-shadow: none; outline: none; } `; export const CellNumericInput = styled(NumericInput)` margin-top: 1px; margin-right: 1px; input { background-color: transparent; box-shadow: none; outline: none; } input.${Classes.INPUT}:focus { box-shadow: none; outline: none; } &.${Classes.CONTROL_GROUP} .${Classes.BUTTON_GROUP}.${Classes.VERTICAL} { border-left: 1px dotted lightgray; > .${Classes.BUTTON} { margin: 0 !important; border-radius: 0; background: transparent; box-shadow: none; :first-of-type { border-bottom: 1px dotted lightgray; } } } `; export const CellCheckbox = styled(Checkbox)` display: flex; align-items: center; justify-content: center; &.${Classes.CONTROL} { padding: 0; margin: 0; .${Classes.CONTROL_INDICATOR} { margin: 0; } } `; export function CellColorPicker( props: ComponentProps, ) { return ( ); } const CellColorPickerContainer = styled.div` .${Classes.POPOVER_TARGET} button { border: none; } `; export const CellActions = styled.div` display: flex; align-items: center; justify-content: center; gap: 0.25em; margin-left: 3px; margin-right: 2px; `; export function CellActionsButton(props: ButtonProps) { const { size = 'small', variant = 'minimal' } = props; return