index int64 0 0 | repo_id stringlengths 16 181 | file_path stringlengths 28 270 | content stringlengths 1 11.6M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/context-menu | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/context-menu/components/RecordTableContextMenu.tsx | import React from 'react';
import { useRecoilValue } from 'recoil';
import { ContextMenu } from '@/ui/navigation/context-menu/components/ContextMenu';
import { selectedRowIdsSelector } from '../../states/selectors/selectedRowIdsSelector';
export const RecordTableContextMenu = () => {
const selectedRowIds = useReco... | 2,500 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/contexts/CellHotkeyScopeContext.ts | import { createContext } from 'react';
import { HotkeyScope } from '@/ui/utilities/hotkey/types/HotkeyScope';
export const CellHotkeyScopeContext = createContext<HotkeyScope | null>(null);
| 2,501 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/contexts/ColumnContext.ts | import { createContext } from 'react';
import { FieldMetadata } from '@/ui/object/field/types/FieldMetadata';
import { ColumnDefinition } from '../types/ColumnDefinition';
export const ColumnContext =
createContext<ColumnDefinition<FieldMetadata> | null>(null);
| 2,502 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/contexts/ColumnIndexContext.ts | import { createContext } from 'react';
export const ColumnIndexContext = createContext<number>(0);
| 2,503 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/contexts/EntityUpdateMutationHookContext.ts | import { createContext } from 'react';
export const EntityUpdateMutationContext = createContext<(params: any) => void>(
{} as any,
);
| 2,504 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/contexts/RowIdContext.ts | import { createContext } from 'react';
export const RowIdContext = createContext<string | null>(null);
| 2,505 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/contexts/RowIndexContext.ts | import { createContext } from 'react';
export const RowIndexContext = createContext<number>(0);
| 2,506 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks/useRecordTable.ts | import { useRecoilCallback, useSetRecoilState } from 'recoil';
import { Key } from 'ts-key-enum';
import { RecordTableScopeInternalContext } from '@/ui/object/record-table/scopes/scope-internal-context/RecordTableScopeInternalContext';
import { onColumnsChangeScopedState } from '@/ui/object/record-table/states/onColum... | 2,507 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks/useTableColumns.ts | import { useCallback } from 'react';
import { useRecoilValue, useSetRecoilState } from 'recoil';
import { FieldMetadata } from '@/ui/object/field/types/FieldMetadata';
import { useRecordTable } from '@/ui/object/record-table/hooks/useRecordTable';
import { useMoveViewColumns } from '@/views/hooks/useMoveViewColumns';
... | 2,508 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks/useUpsertTableRowId.ts | import { useRecoilCallback } from 'recoil';
import { tableRowIdsState } from '../states/tableRowIdsState';
// Used only in company table and people table
// Remove after refactoring
export const useUpsertTableRowId = () =>
useRecoilCallback(
({ set, snapshot }) =>
(rowId: string) => {
const curre... | 2,509 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks/internal/useCloseCurrentTableCellInEditMode.ts | import { useRecoilCallback } from 'recoil';
import { currentTableCellInEditModePositionState } from '../../states/currentTableCellInEditModePositionState';
import { isTableCellInEditModeFamilyState } from '../../states/isTableCellInEditModeFamilyState';
export const useCloseCurrentTableCellInEditMode = () =>
useRec... | 2,510 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks/internal/useDisableSoftFocus.ts | import { useRecoilCallback } from 'recoil';
import { isSoftFocusActiveState } from '../../states/isSoftFocusActiveState';
import { isSoftFocusOnTableCellFamilyState } from '../../states/isSoftFocusOnTableCellFamilyState';
import { softFocusPositionState } from '../../states/softFocusPositionState';
export const useDi... | 2,511 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks/internal/useGetIsSomeCellInEditMode.ts | import { useRecoilCallback } from 'recoil';
import { currentTableCellInEditModePositionState } from '../../states/currentTableCellInEditModePositionState';
import { isTableCellInEditModeFamilyState } from '../../states/isTableCellInEditModeFamilyState';
export const useGetIsSomeCellInEditMode = () => {
return useRe... | 2,512 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks/internal/useLeaveTableFocus.ts | import { useRecoilCallback } from 'recoil';
import { currentHotkeyScopeState } from '@/ui/utilities/hotkey/states/internal/currentHotkeyScopeState';
import { isSoftFocusActiveState } from '../../states/isSoftFocusActiveState';
import { TableHotkeyScope } from '../../types/TableHotkeyScope';
import { useCloseCurrentT... | 2,513 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks/internal/useMoveEditModeToCellPosition.ts | import { useRecoilCallback } from 'recoil';
import { currentTableCellInEditModePositionState } from '../../states/currentTableCellInEditModePositionState';
import { isTableCellInEditModeFamilyState } from '../../states/isTableCellInEditModeFamilyState';
import { TableCellPosition } from '../../types/TableCellPosition'... | 2,514 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks/internal/useRecordTableScopedStates.ts | import { RecordTableScopeInternalContext } from '@/ui/object/record-table/scopes/scope-internal-context/RecordTableScopeInternalContext';
import { useAvailableScopeIdOrThrow } from '@/ui/utilities/recoil-scope/scopes-internal/hooks/useAvailableScopeId';
import { getRecordTableScopedStates } from '../../utils/getRecord... | 2,515 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks/internal/useResetTableRowSelection.ts | import { useRecoilCallback } from 'recoil';
import { isRowSelectedFamilyState } from '../../record-table-row/states/isRowSelectedFamilyState';
import { tableRowIdsState } from '../../states/tableRowIdsState';
export const useResetTableRowSelection = () =>
useRecoilCallback(
({ snapshot, set }) =>
() => {
... | 2,516 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks/internal/useSelectAllRows.ts | import { useRecoilCallback } from 'recoil';
import { isRowSelectedFamilyState } from '../../record-table-row/states/isRowSelectedFamilyState';
import { allRowsSelectedStatusSelector } from '../../states/selectors/allRowsSelectedStatusSelector';
import { tableRowIdsState } from '../../states/tableRowIdsState';
export ... | 2,517 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks/internal/useSetRecordTableData.ts | import { useRecoilCallback } from 'recoil';
import { entityFieldsFamilyState } from '@/ui/object/field/states/entityFieldsFamilyState';
import { isFetchingRecordTableDataState } from '../../states/isFetchingRecordTableDataState';
import { numberOfTableRowsState } from '../../states/numberOfTableRowsState';
import { t... | 2,518 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks/internal/useSetRowSelectedState.ts | import { useRecoilCallback } from 'recoil';
import { isRowSelectedFamilyState } from '../../record-table-row/states/isRowSelectedFamilyState';
export const useSetRowSelectedState = () =>
useRecoilCallback(({ set }) => (rowId: string, selected: boolean) => {
set(isRowSelectedFamilyState(rowId), selected);
});
| 2,519 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks/internal/useSetSoftFocusPosition.ts | import { useRecoilCallback } from 'recoil';
import { isSoftFocusActiveState } from '../../states/isSoftFocusActiveState';
import { isSoftFocusOnTableCellFamilyState } from '../../states/isSoftFocusOnTableCellFamilyState';
import { softFocusPositionState } from '../../states/softFocusPositionState';
import { TableCellP... | 2,520 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/hooks/internal/useUpsertRecordTableItem.ts | import { useRecoilCallback } from 'recoil';
import { entityFieldsFamilyState } from '@/ui/object/field/states/entityFieldsFamilyState';
import { isDeeplyEqual } from '~/utils/isDeeplyEqual';
export const useUpsertRecordTableItem = () =>
useRecoilCallback(
({ set, snapshot }) =>
<T extends { id: string }>(... | 2,521 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/options | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/options/components/TableOptionsDropdown.tsx | import { Dropdown } from '@/ui/layout/dropdown/components/Dropdown';
import { DropdownScope } from '@/ui/layout/dropdown/scopes/DropdownScope';
import { useView } from '@/views/hooks/useView';
import { TableOptionsDropdownId } from '../../constants/TableOptionsDropdownId';
import { TableOptionsHotkeyScope } from '../.... | 2,522 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/options | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/options/components/TableOptionsDropdownButton.tsx | import { StyledHeaderDropdownButton } from '@/ui/layout/dropdown/components/StyledHeaderDropdownButton';
import { useDropdown } from '@/ui/layout/dropdown/hooks/useDropdown';
import { TableOptionsDropdownId } from '@/ui/object/record-table/constants/TableOptionsDropdownId';
export const TableOptionsDropdownButton = ()... | 2,523 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/options | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/options/components/TableOptionsDropdownContent.tsx | import { useCallback, useRef, useState } from 'react';
import { OnDragEndResponder } from '@hello-pangea/dnd';
import { useRecoilValue } from 'recoil';
import { Key } from 'ts-key-enum';
import { IconChevronLeft, IconFileImport, IconTag } from '@/ui/display/icon';
import { DropdownMenuHeader } from '@/ui/layout/dropdo... | 2,524 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell/components/RecordTableCell.tsx | import { FieldDisplay } from '@/ui/object/field/components/FieldDisplay';
import { FieldInput } from '@/ui/object/field/components/FieldInput';
import { FieldInputEvent } from '@/ui/object/field/types/FieldInputEvent';
import { HotkeyScope } from '@/ui/utilities/hotkey/types/HotkeyScope';
import { useRecordTable } fro... | 2,525 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell/components/RecordTableCellButton.tsx | import styled from '@emotion/styled';
import { motion } from 'framer-motion';
import { IconComponent } from '@/ui/display/icon/types/IconComponent';
import { FloatingIconButton } from '@/ui/input/button/components/FloatingIconButton';
const StyledEditButtonContainer = styled(motion.div)`
position: absolute;
right... | 2,526 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell/components/RecordTableCellContainer.tsx | import { ReactElement, useContext, useState } from 'react';
import styled from '@emotion/styled';
import { IconArrowUpRight } from '@/ui/display/icon';
import { useGetButtonIcon } from '@/ui/object/field/hooks/useGetButtonIcon';
import { useIsFieldEmpty } from '@/ui/object/field/hooks/useIsFieldEmpty';
import { useIsF... | 2,527 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell/components/RecordTableCellDisplayContainer.tsx | import { Ref } from 'react';
import styled from '@emotion/styled';
export type EditableCellDisplayContainerProps = {
softFocus?: boolean;
onClick?: () => void;
scrollRef?: Ref<HTMLDivElement>;
isHovered?: boolean;
};
const StyledEditableCellDisplayModeOuterContainer = styled.div<
Pick<EditableCellDisplayCon... | 2,528 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell/components/RecordTableCellDisplayMode.tsx | import { useIsFieldInputOnly } from '@/ui/object/field/hooks/useIsFieldInputOnly';
import { useSetSoftFocusOnCurrentTableCell } from '../hooks/useSetSoftFocusOnCurrentTableCell';
import { useTableCell } from '../hooks/useTableCell';
import { TableCellDisplayContainer } from './RecordTableCellDisplayContainer';
expor... | 2,529 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell/components/RecordTableCellEditButton.tsx | import styled from '@emotion/styled';
import { motion } from 'framer-motion';
import { IconComponent } from '@/ui/display/icon/types/IconComponent';
import { FloatingIconButton } from '@/ui/input/button/components/FloatingIconButton';
const StyledEditButtonContainer = styled(motion.div)`
position: absolute;
right... | 2,530 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell/components/RecordTableCellEditMode.tsx | import { ReactElement } from 'react';
import styled from '@emotion/styled';
const StyledEditableCellEditModeContainer = styled.div<TableCellEditModeProps>`
align-items: center;
display: flex;
min-width: 200px;
width: calc(100% + 2px);
z-index: 1;
`;
export type TableCellEditModeProps = {
children: ReactEl... | 2,531 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell/components/RecordTableCellSoftFocusMode.tsx | import { PropsWithChildren, useEffect, useRef } from 'react';
import { Key } from 'ts-key-enum';
import { useIsFieldInputOnly } from '@/ui/object/field/hooks/useIsFieldInputOnly';
import { useToggleEditOnlyInput } from '@/ui/object/field/hooks/useToggleEditOnlyInput';
import { useScopedHotkeys } from '@/ui/utilities/h... | 2,532 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell/hooks/useCurrentCellPosition.ts | import { useContext, useMemo } from 'react';
import { ColumnIndexContext } from '../../contexts/ColumnIndexContext';
import { RowIndexContext } from '../../contexts/RowIndexContext';
import { TableCellPosition } from '../../types/TableCellPosition';
export const useCurrentTableCellPosition = () => {
const currentRo... | 2,533 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell/hooks/useCurrentTableCellEditMode.ts | import { useCallback } from 'react';
import { useRecoilState } from 'recoil';
import { useMoveEditModeToTableCellPosition } from '../../hooks/internal/useMoveEditModeToCellPosition';
import { isTableCellInEditModeFamilyState } from '../../states/isTableCellInEditModeFamilyState';
import { useCurrentTableCellPosition ... | 2,534 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell/hooks/useIsSoftFocusOnCurrentTableCell.ts | import { useRecoilValue } from 'recoil';
import { isSoftFocusOnTableCellFamilyState } from '../../states/isSoftFocusOnTableCellFamilyState';
import { useCurrentTableCellPosition } from './useCurrentCellPosition';
export const useIsSoftFocusOnCurrentTableCell = () => {
const currentTableCellPosition = useCurrentTab... | 2,535 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell/hooks/useMoveSoftFocusToCurrentCellOnHover.ts | import { useRecoilCallback } from 'recoil';
import { currentHotkeyScopeState } from '@/ui/utilities/hotkey/states/internal/currentHotkeyScopeState';
import { currentTableCellInEditModePositionState } from '../../states/currentTableCellInEditModePositionState';
import { isTableCellInEditModeFamilyState } from '../../s... | 2,536 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell/hooks/useSetSoftFocusOnCurrentTableCell.ts | import { useRecoilCallback } from 'recoil';
import { useSetHotkeyScope } from '@/ui/utilities/hotkey/hooks/useSetHotkeyScope';
import { useSetSoftFocusPosition } from '../../hooks/internal/useSetSoftFocusPosition';
import { isSoftFocusActiveState } from '../../states/isSoftFocusActiveState';
import { TableHotkeyScope... | 2,537 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell/hooks/useTableCell.ts | import { useContext } from 'react';
import { useNavigate } from 'react-router-dom';
import { useRecoilState, useRecoilValue } from 'recoil';
import { FieldContext } from '@/ui/object/field/contexts/FieldContext';
import { useIsFieldEmpty } from '@/ui/object/field/hooks/useIsFieldEmpty';
import { entityFieldInitialValu... | 2,538 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-cell/states/isCreateModeScopedState.ts | import { atomFamily } from 'recoil';
export const isCreateModeScopedState = atomFamily<boolean, string>({
key: 'isCreateModeScopedState',
default: false,
});
| 2,539 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-row | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-row/hooks/useCurrentRowSelected.ts | import { useContext } from 'react';
import { useRecoilCallback, useRecoilState } from 'recoil';
import { RowIdContext } from '../../contexts/RowIdContext';
import { isRowSelectedFamilyState } from '../states/isRowSelectedFamilyState';
export const useCurrentRowSelected = () => {
const currentRowId = useContext(RowI... | 2,540 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-row | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/record-table-row/states/isRowSelectedFamilyState.ts | import { atomFamily } from 'recoil';
export const isRowSelectedFamilyState = atomFamily<boolean, string>({
key: 'isRowSelectedFamilyState',
default: false,
});
| 2,541 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/scopes/RecordTableScope.tsx | import { ReactNode } from 'react';
import { FieldMetadata } from '../../field/types/FieldMetadata';
import { ColumnDefinition } from '../types/ColumnDefinition';
import { RecordTableScopeInternalContext } from './scope-internal-context/RecordTableScopeInternalContext';
import { RecordTableScopeInitEffect } from './Re... | 2,542 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/scopes/RecordTableScopeInitEffect.tsx | import { useEffect } from 'react';
import { useSetRecoilState } from 'recoil';
import { FieldMetadata } from '../../field/types/FieldMetadata';
import { useRecordTableScopedStates } from '../hooks/internal/useRecordTableScopedStates';
import { ColumnDefinition } from '../types/ColumnDefinition';
type RecordTableScope... | 2,543 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/scopes | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/scopes/scope-internal-context/RecordTableScopeInternalContext.ts | import { FieldMetadata } from '@/ui/object/field/types/FieldMetadata';
import { ScopedStateKey } from '@/ui/utilities/recoil-scope/scopes-internal/types/ScopedStateKey';
import { createScopeInternalContext } from '@/ui/utilities/recoil-scope/scopes-internal/utils/createScopeInternalContext';
import { ColumnDefinition ... | 2,544 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states/availableTableColumnsScopedState.ts | import { FieldMetadata } from '@/ui/object/field/types/FieldMetadata';
import { createScopedState } from '@/ui/utilities/recoil-scope/utils/createScopedState';
import { ColumnDefinition } from '../types/ColumnDefinition';
export const availableTableColumnsScopedState = createScopedState<
ColumnDefinition<FieldMetad... | 2,545 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states/currentTableCellInEditModePositionState.ts | import { atom } from 'recoil';
import { TableCellPosition } from '../types/TableCellPosition';
export const currentTableCellInEditModePositionState = atom<TableCellPosition>({
key: 'currentTableCellInEditModePositionState',
default: {
row: 0,
column: 1,
},
});
| 2,546 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states/isFetchingRecordTableDataState.ts | import { atom } from 'recoil';
export const isFetchingRecordTableDataState = atom<boolean>({
key: 'isFetchingRecordTableDataState',
default: true,
});
| 2,547 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states/isSoftFocusActiveState.ts | import { atom } from 'recoil';
export const isSoftFocusActiveState = atom<boolean>({
key: 'isSoftFocusActiveState',
default: false,
});
| 2,548 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states/isSoftFocusOnTableCellFamilyState.ts | import { atomFamily } from 'recoil';
import { TableCellPosition } from '../types/TableCellPosition';
export const isSoftFocusOnTableCellFamilyState = atomFamily<
boolean,
TableCellPosition
>({
key: 'isSoftFocusOnTableCellFamilyState',
default: false,
});
| 2,549 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states/isTableCellInEditModeFamilyState.ts | import { atomFamily } from 'recoil';
import { TableCellPosition } from '../types/TableCellPosition';
export const isTableCellInEditModeFamilyState = atomFamily<
boolean,
TableCellPosition
>({
key: 'isTableCellInEditModeFamilyState',
default: false,
});
| 2,550 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states/numberOfTableRowsState.ts | import { atom } from 'recoil';
export const numberOfTableRowsState = atom<number>({
key: 'numberOfTableRowsState',
default: 0,
});
| 2,551 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states/objectMetadataConfigScopedState.ts | import { ObjectMetadataConfig } from '@/ui/object/record-table/types/ObjectMetadataConfig';
import { createScopedState } from '@/ui/utilities/recoil-scope/utils/createScopedState';
export const objectMetadataConfigScopedState =
createScopedState<ObjectMetadataConfig | null>({
key: 'objectMetadataConfigScopedStat... | 2,552 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states/onColumnsChangeScopedState.ts | import { createScopedState } from '@/ui/utilities/recoil-scope/utils/createScopedState';
import { FieldMetadata } from '../../field/types/FieldMetadata';
import { ColumnDefinition } from '../types/ColumnDefinition';
export const onColumnsChangeScopedState = createScopedState<
((columns: ColumnDefinition<FieldMetada... | 2,553 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states/onEntityCountChange.ts | import { createScopedState } from '@/ui/utilities/recoil-scope/utils/createScopedState';
export const onEntityCountChangeScopedState = createScopedState<
((entityCount: number) => void) | undefined
>({
key: 'onEntityCountChangeScopedState',
defaultValue: undefined,
});
| 2,554 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states/resizeFieldOffsetState.ts | import { atom } from 'recoil';
export const resizeFieldOffsetState = atom<number>({
key: 'resizeFieldOffsetState',
default: 0,
});
| 2,555 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states/savedTableColumnsFamilyState.ts | import { atomFamily } from 'recoil';
import { FieldMetadata } from '@/ui/object/field/types/FieldMetadata';
import { ColumnDefinition } from '../types/ColumnDefinition';
export const savedTableColumnsFamilyState = atomFamily<
ColumnDefinition<FieldMetadata>[],
string | undefined
>({
key: 'savedTableColumnsFami... | 2,556 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states/softFocusPositionState.ts | import { atom } from 'recoil';
import { TableCellPosition } from '../types/TableCellPosition';
export const softFocusPositionState = atom<TableCellPosition>({
key: 'softFocusPositionState',
default: {
row: 0,
column: 1,
},
});
| 2,557 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states/tableColumnsScopedState.ts | import { FieldMetadata } from '@/ui/object/field/types/FieldMetadata';
import { createScopedState } from '@/ui/utilities/recoil-scope/utils/createScopedState';
import { ColumnDefinition } from '../types/ColumnDefinition';
export const tableColumnsScopedState = createScopedState<
ColumnDefinition<FieldMetadata>[]
>(... | 2,558 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states/tableFiltersScopedState.ts | import { createScopedState } from '@/ui/utilities/recoil-scope/utils/createScopedState';
import { Filter } from '../../object-filter-dropdown/types/Filter';
export const tableFiltersScopedState = createScopedState<Filter[]>({
key: 'tableFiltersScopedState',
defaultValue: [],
});
| 2,559 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states/tableRowIdsState.ts | import { atom } from 'recoil';
export const tableRowIdsState = atom<string[]>({
key: 'tableRowIdsState',
default: [],
});
| 2,560 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states/tableSortsScopedState.ts | import { createScopedState } from '@/ui/utilities/recoil-scope/utils/createScopedState';
import { Sort } from '../../object-sort-dropdown/types/Sort';
export const tableSortsScopedState = createScopedState<Sort[]>({
key: 'tableSortsScopedState',
defaultValue: [],
});
| 2,561 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states/selectors/allRowsSelectedStatusSelector.ts | import { selector } from 'recoil';
import { AllRowsSelectedStatus } from '../../types/AllRowSelectedStatus';
import { numberOfTableRowsState } from '../numberOfTableRowsState';
import { selectedRowIdsSelector } from './selectedRowIdsSelector';
export const allRowsSelectedStatusSelector = selector<AllRowsSelectedStat... | 2,562 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states/selectors/hiddenTableColumnsScopedSelector.ts | import { selectorFamily } from 'recoil';
import { availableTableColumnsScopedState } from '../availableTableColumnsScopedState';
import { tableColumnsScopedState } from '../tableColumnsScopedState';
export const hiddenTableColumnsScopedSelector = selectorFamily({
key: 'hiddenTableColumnsScopedSelector',
get:
... | 2,563 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states/selectors/numberOfTableColumnsScopedSelector.ts | import { selectorFamily } from 'recoil';
import { tableColumnsScopedState } from '../tableColumnsScopedState';
export const numberOfTableColumnsScopedSelector = selectorFamily({
key: 'numberOfTableColumnsScopedSelector',
get:
(scopeId: string) =>
({ get }) =>
get(tableColumnsScopedState({ scopeId })... | 2,564 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states/selectors/savedTableColumnsByKeyFamilySelector.ts | import { selectorFamily } from 'recoil';
import { FieldMetadata } from '@/ui/object/field/types/FieldMetadata';
import { ColumnDefinition } from '../../types/ColumnDefinition';
import { savedTableColumnsFamilyState } from '../savedTableColumnsFamilyState';
export const savedTableColumnsByKeyFamilySelector = selector... | 2,565 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states/selectors/selectedRowIdsSelector.ts | import { selector } from 'recoil';
import { isRowSelectedFamilyState } from '../../record-table-row/states/isRowSelectedFamilyState';
import { tableRowIdsState } from '../tableRowIdsState';
export const selectedRowIdsSelector = selector<string[]>({
key: 'selectedRowIdsSelector',
get: ({ get }) => {
const rowI... | 2,566 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states/selectors/tableColumnsByKeyScopedSelector.ts | import { selectorFamily } from 'recoil';
import { FieldMetadata } from '@/ui/object/field/types/FieldMetadata';
import { ColumnDefinition } from '../../types/ColumnDefinition';
import { tableColumnsScopedState } from '../tableColumnsScopedState';
export const tableColumnsByKeyScopedSelector = selectorFamily({
key:... | 2,567 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/states/selectors/visibleTableColumnsScopedSelector.ts | import { selectorFamily } from 'recoil';
import { availableTableColumnsScopedState } from '../availableTableColumnsScopedState';
import { tableColumnsScopedState } from '../tableColumnsScopedState';
export const visibleTableColumnsScopedSelector = selectorFamily({
key: 'visibleTableColumnsScopedSelector',
get:
... | 2,568 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/types/AllRowSelectedStatus.ts | export type AllRowsSelectedStatus = 'none' | 'some' | 'all';
| 2,569 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/types/ColumnDefinition.ts | import { FieldDefinition } from '@/ui/object/field/types/FieldDefinition';
import { FieldMetadata } from '@/ui/object/field/types/FieldMetadata';
export type ColumnDefinition<T extends FieldMetadata> = FieldDefinition<T> & {
size: number;
position: number;
isVisible?: boolean;
viewFieldId?: string;
};
| 2,570 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/types/ObjectMetadataConfig.ts | export type ObjectMetadataConfig = {
labelIdentifierFieldMetadataId: string;
basePathToShowPage: string;
};
| 2,571 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/types/TableCellPosition.ts | export type TableCellPosition = {
row: number;
column: number;
};
| 2,572 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/types/TableDimensions.ts | export type TablePosition = {
numberOfRows: number;
numberOfColumns: number;
};
| 2,573 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/types/TableHotkeyScope.ts | export enum TableHotkeyScope {
CellDoubleTextInput = 'cell-double-text-input',
CellEditMode = 'cell-edit-mode',
CellDateEditMode = 'cell-date-edit-mode',
TableSoftFocus = 'table-soft-focus',
Table = 'table',
}
| 2,574 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/types/TableOptionsHotkeyScope.ts | export enum TableOptionsHotkeyScope {
Dropdown = 'table-options-dropdown',
}
| 2,575 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table | petrpan-code/twentyhq/twenty/front/src/modules/ui/object/record-table/utils/getRecordTableScopedStates.ts | import { objectMetadataConfigScopedState } from '@/ui/object/record-table/states/objectMetadataConfigScopedState';
import { getScopedState } from '@/ui/utilities/recoil-scope/utils/getScopedState';
import { availableTableColumnsScopedState } from '../states/availableTableColumnsScopedState';
import { onColumnsChangeSc... | 2,576 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme/components/AppThemeProvider.tsx | import { ThemeProvider } from '@emotion/react';
import { darkTheme, lightTheme } from '@/ui/theme/constants/theme';
import { useColorScheme } from '../hooks/useColorScheme';
import { useSystemColorScheme } from '../hooks/useSystemColorScheme';
type AppThemeProviderProps = {
children: JSX.Element;
};
export const ... | 2,577 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme/constants/accent.ts | import { color } from './colors';
export const accentLight = {
primary: color.blueAccent25,
secondary: color.blueAccent20,
tertiary: color.blueAccent15,
quaternary: color.blueAccent10,
accent3570: color.blueAccent35,
accent4060: color.blueAccent40,
};
export const accentDark = {
primary: color.blueAccen... | 2,578 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme/constants/animation.ts | export const animation = {
duration: {
instant: 0.075,
fast: 0.15,
normal: 0.3,
},
};
export type AnimationDuration = 'instant' | 'fast' | 'normal';
| 2,579 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme/constants/background.ts | /* eslint-disable twenty/no-hardcoded-colors */
import DarkNoise from '../assets/dark-noise.jpg';
import LightNoise from '../assets/light-noise.png';
import { color, grayScale, rgba } from './colors';
export const backgroundLight = {
noisy: `url(${LightNoise.toString()});`,
primary: grayScale.gray0,
secondary: ... | 2,580 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme/constants/blur.ts | export const blur = {
light: 'blur(6px)',
strong: 'blur(20px)',
};
| 2,581 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme/constants/border.ts | import { color, grayScale } from './colors';
const common = {
radius: {
xs: '2px',
sm: '4px',
md: '8px',
rounded: '100%',
},
};
export const borderLight = {
color: {
strong: grayScale.gray25,
medium: grayScale.gray20,
light: grayScale.gray15,
secondaryInverted: grayScale.gray50,
... | 2,582 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme/constants/boxShadow.ts | import { grayScale, rgba } from './colors';
export const boxShadowLight = {
extraLight: `0px 1px 0px 0px ${rgba(grayScale.gray100, 0.04)}`,
light: `0px 2px 4px 0px ${rgba(
grayScale.gray100,
0.04,
)}, 0px 0px 4px 0px ${rgba(grayScale.gray100, 0.08)}`,
strong: `2px 4px 16px 0px ${rgba(
grayScale.gra... | 2,583 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme/constants/colors.ts | /* eslint-disable twenty/no-hardcoded-colors */
import hexRgb from 'hex-rgb';
export const grayScale = {
gray100: '#000000',
gray90: '#141414',
gray85: '#171717',
gray80: '#1b1b1b',
gray75: '#1d1d1d',
gray70: '#222222',
gray65: '#292929',
gray60: '#333333',
gray55: '#4c4c4c',
gray50: '#666666',
g... | 2,584 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme/constants/effects.ts | import { css } from '@emotion/react';
import { ThemeType } from './theme';
export const overlayBackground = (props: { theme: ThemeType }) =>
css`
backdrop-filter: blur(8px);
background: ${props.theme.background.transparent.secondary};
box-shadow: ${props.theme.boxShadow.strong};
`;
export const textI... | 2,585 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme/constants/font.ts | import { color, grayScale } from './colors';
const common = {
size: {
xxs: '0.625rem',
xs: '0.85rem',
sm: '0.92rem',
md: '1rem',
lg: '1.23rem',
xl: '1.54rem',
xxl: '1.85rem',
},
weight: {
regular: 400,
medium: 500,
semiBold: 600,
},
family: 'Inter, sans-serif',
};
exp... | 2,586 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme/constants/icon.ts | export const icon = {
size: {
sm: 14,
md: 16,
lg: 20,
xl: 40,
},
stroke: {
sm: 1.6,
md: 2,
lg: 2.5,
},
};
| 2,587 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme/constants/modal.ts | export const modal = {
size: {
sm: '300px',
md: '400px',
lg: '53%',
},
};
| 2,588 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme/constants/tag.ts | import { color } from './colors';
export const tagLight: { [key: string]: { [key: string]: string } } = {
text: {
green: color.green60,
turquoise: color.turquoise60,
sky: color.sky60,
blue: color.blue60,
purple: color.purple60,
pink: color.pink60,
red: color.red60,
orange: color.orang... | 2,589 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme/constants/text.ts | export const text = {
lineHeight: {
lg: 1.5,
md: 1.2,
},
iconSizeMedium: 16,
iconSizeSmall: 14,
iconStrikeLight: 1.6,
iconStrikeMedium: 2,
iconStrikeBold: 2.5,
};
| 2,590 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme/constants/theme.ts | /* eslint-disable twenty/no-hardcoded-colors */
import { accentDark, accentLight } from './accent';
import { animation } from './animation';
import { backgroundDark, backgroundLight } from './background';
import { blur } from './blur';
import { borderDark, borderLight } from './border';
import { boxShadowDark, boxShado... | 2,591 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme/hooks/useColorScheme.ts | import { useCallback } from 'react';
import { useRecoilState } from 'recoil';
import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMemberState';
import { useUpdateOneObjectRecord } from '@/object-record/hooks/useUpdateOneObjectRecord';
import { ColorScheme } from '@/workspace-member/types/Workspa... | 2,592 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme/hooks/useSystemColorScheme.ts | import { useEffect, useMemo, useState } from 'react';
import { ColorScheme } from '@/workspace-member/types/WorkspaceMember';
export const useSystemColorScheme = (): ColorScheme => {
const mediaQuery = useMemo(
() => window.matchMedia('(prefers-color-scheme: dark)'),
[],
);
const [preferredColorScheme,... | 2,593 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme | petrpan-code/twentyhq/twenty/front/src/modules/ui/theme/utils/castStringAsThemeColor.ts | import { mainColors, ThemeColor } from '../constants/colors';
export const COLORS = Object.keys(mainColors);
export const isThemeColor = (color: string): color is ThemeColor =>
COLORS.includes(color);
| 2,594 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/utilities/animation | petrpan-code/twentyhq/twenty/front/src/modules/ui/utilities/animation/components/AnimatedEaseIn.tsx | import { useTheme } from '@emotion/react';
import { motion } from 'framer-motion';
import { AnimationDuration } from '@/ui/theme/constants/animation';
type AnimatedEaseInProps = Omit<
React.ComponentProps<typeof motion.div>,
'initial' | 'animated' | 'transition'
> & {
duration?: AnimationDuration;
};
export co... | 2,595 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/utilities/animation | petrpan-code/twentyhq/twenty/front/src/modules/ui/utilities/animation/components/AnimatedEaseInOut.tsx | import { useTheme } from '@emotion/react';
import { AnimatePresence, motion } from 'framer-motion';
import { AnimationDuration } from '@/ui/theme/constants/animation';
type AnimatedEaseInOutProps = {
isOpen: boolean;
children: React.ReactNode;
duration?: AnimationDuration;
marginBottom?: string;
marginTop?:... | 2,596 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/utilities/animation | petrpan-code/twentyhq/twenty/front/src/modules/ui/utilities/animation/components/AnimatedFadeOut.tsx | import { useTheme } from '@emotion/react';
import { AnimatePresence, motion } from 'framer-motion';
import { AnimationDuration } from '@/ui/theme/constants/animation';
type AnimatedFadeOutProps = {
isOpen: boolean;
children: React.ReactNode;
duration?: AnimationDuration;
marginBottom?: string;
marginTop?: s... | 2,597 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/utilities/animation | petrpan-code/twentyhq/twenty/front/src/modules/ui/utilities/animation/components/AnimatedTextWord.tsx | import React, { useMemo } from 'react';
import styled from '@emotion/styled';
import { motion } from 'framer-motion';
const StyledContainer = styled(motion.div)`
display: flex;
overflow: hidden;
`;
const StyledWord = styled(motion.span)`
white-space: pre;
`;
type AnimatedTextWordProps = Omit<
React.Component... | 2,598 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/utilities/debug | petrpan-code/twentyhq/twenty/front/src/modules/ui/utilities/debug/components/TimingProfiler.tsx | import { Profiler } from 'react';
import { Interaction } from 'scheduler/tracing';
import { logDebug } from '~/utils/logDebug';
type TimingProfilerProps = {
id: string;
children: React.ReactNode;
};
export const TimingProfiler = ({ id, children }: TimingProfilerProps) => {
const handleRender = (
id: string... | 2,599 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.