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/input/relation-picker | petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker/types/RelationPickerHotkeyScope.ts | export enum RelationPickerHotkeyScope {
RelationPicker = 'relation-picker',
}
| 2,100 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker | petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker/utils/getPreselectedIdIndex.ts | export const getPreselectedIdIndex = (
selectableOptionIds: string[],
preselectedOptionId: string,
) => {
const preselectedIdIndex = selectableOptionIds.findIndex(
(option) => option === preselectedOptionId,
);
return preselectedIdIndex === -1 ? 0 : preselectedIdIndex;
};
| 2,101 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/input | petrpan-code/twentyhq/twenty/front/src/modules/ui/input/states/iconPickerState.ts | import { atom } from 'recoil';
import { IconComponent } from '@/ui/display/icon/types/IconComponent';
import { IconApps } from '../constants/icons';
type IconPickerState = {
Icon: IconComponent;
iconKey: string;
};
export const iconPickerState = atom<IconPickerState>({
key: 'iconPickerState',
default: { Ico... | 2,102 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/input | petrpan-code/twentyhq/twenty/front/src/modules/ui/input/states/iconsState.ts | import { atom } from 'recoil';
import { IconComponent } from '@/ui/display/icon/types/IconComponent';
export const iconsState = atom<Record<string, IconComponent>>({
key: 'iconsState',
default: {},
});
| 2,103 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/input | petrpan-code/twentyhq/twenty/front/src/modules/ui/input/types/IconPickerHotkeyScope.ts | export enum IconPickerHotkeyScope {
IconPicker = 'icon-picker',
}
| 2,104 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/input | petrpan-code/twentyhq/twenty/front/src/modules/ui/input/types/InputHotkeyScope.ts | export enum InputHotkeyScope {
TextInput = 'text-input',
}
| 2,105 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/input | petrpan-code/twentyhq/twenty/front/src/modules/ui/input/types/SelectHotkeyScope.ts | export enum SelectHotkeyScope {
Select = 'select',
}
| 2,106 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/draggable-list | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/draggable-list/__stories__/DraggableItem.stories.tsx | import { DragDropContext, Droppable } from '@hello-pangea/dnd';
import { Meta, StoryObj } from '@storybook/react';
import { IconBell } from '@/ui/display/icon';
import { MenuItemDraggable } from '@/ui/navigation/menu-item/components/MenuItemDraggable';
import { ComponentDecorator } from '~/testing/decorators/Component... | 2,107 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/draggable-list | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/draggable-list/__stories__/DraggableList.stories.tsx | import { Meta, StoryObj } from '@storybook/react';
import { IconBell } from '@/ui/display/icon';
import { MenuItemDraggable } from '@/ui/navigation/menu-item/components/MenuItemDraggable';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { DraggableItem } from '../components/Dragga... | 2,108 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/draggable-list | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/draggable-list/components/DraggableItem.tsx | import React from 'react';
import { useTheme } from '@emotion/react';
import { Draggable } from '@hello-pangea/dnd';
type DraggableItemProps = {
draggableId: string;
isDragDisabled?: boolean;
index: number;
itemComponent: JSX.Element;
};
export const DraggableItem = ({
draggableId,
isDragDisabled = false,... | 2,109 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/draggable-list | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/draggable-list/components/DraggableList.tsx | import { useState } from 'react';
import styled from '@emotion/styled';
import {
DragDropContext,
Droppable,
OnDragEndResponder,
} from '@hello-pangea/dnd';
import { v4 } from 'uuid';
type DraggableListProps = {
draggableItems: React.ReactNode;
onDragEnd: OnDragEndResponder;
};
const StyledDragDropItemsWrapp... | 2,110 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown/components/Dropdown.tsx | import { useRef } from 'react';
import { Keys } from 'react-hotkeys-hook';
import {
autoUpdate,
flip,
offset,
Placement,
useFloating,
} from '@floating-ui/react';
import { Key } from 'ts-key-enum';
import { HotkeyEffect } from '@/ui/utilities/hotkey/components/HotkeyEffect';
import { useScopedHotkeys } from ... | 2,111 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown/components/DropdownMenu.tsx | import styled from '@emotion/styled';
const StyledDropdownMenu = styled.div<{
disableBlur?: boolean;
width?: `${string}px` | 'auto' | number;
}>`
backdrop-filter: ${({ disableBlur }) =>
disableBlur ? 'none' : 'blur(20px)'};
background: ${({ theme }) => theme.background.secondary};
border: 1px solid ${({ ... | 2,112 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown/components/DropdownMenuHeader.tsx | import { ComponentProps, MouseEvent } from 'react';
import styled from '@emotion/styled';
import { IconComponent } from '@/ui/display/icon/types/IconComponent';
import { LightIconButton } from '@/ui/input/button/components/LightIconButton';
const StyledHeader = styled.li`
align-items: center;
color: ${({ theme })... | 2,113 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown/components/DropdownMenuInput.tsx | import { forwardRef, InputHTMLAttributes } from 'react';
import styled from '@emotion/styled';
import { rgba } from '@/ui/theme/constants/colors';
import { textInputStyle } from '@/ui/theme/constants/effects';
const StyledInput = styled.input`
${textInputStyle}
border: 1px solid ${({ theme }) => theme.border.col... | 2,114 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown/components/DropdownMenuItemsContainer.tsx | import styled from '@emotion/styled';
import { ScrollWrapper } from '@/ui/utilities/scroll/components/ScrollWrapper';
const StyledDropdownMenuItemsExternalContainer = styled.div<{
hasMaxHeight?: boolean;
}>`
--padding: ${({ theme }) => theme.spacing(1)};
align-items: flex-start;
display: flex;
flex-direct... | 2,115 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown/components/DropdownMenuSearchInput.tsx | import { forwardRef, InputHTMLAttributes } from 'react';
import styled from '@emotion/styled';
import { textInputStyle } from '@/ui/theme/constants/effects';
const StyledDropdownMenuSearchInputContainer = styled.div`
--vertical-padding: ${({ theme }) => theme.spacing(1)};
align-items: center;
display: flex;
... | 2,116 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown/components/DropdownMenuSeparator.tsx | import styled from '@emotion/styled';
const StyledDropdownMenuSeparator = styled.div`
background-color: ${({ theme }) => theme.border.color.light};
height: 1px;
width: 100%;
`;
export const DropdownMenuSeparator = StyledDropdownMenuSeparator;
| 2,117 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown/components/DropdownOnToggleEffect.tsx | import { useEffect } from 'react';
import { useDropdown } from '@/ui/layout/dropdown/hooks/useDropdown';
export const DropdownOnToggleEffect = ({
onDropdownClose,
onDropdownOpen,
}: {
onDropdownClose?: () => void;
onDropdownOpen?: () => void;
}) => {
const { isDropdownOpen } = useDropdown();
useEffect(()... | 2,118 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown/components/StyledDropdownButtonContainer.tsx | import styled from '@emotion/styled';
type StyledDropdownButtonProps = {
isUnfolded: boolean;
isActive?: boolean;
};
export const StyledDropdownButtonContainer = styled.div<StyledDropdownButtonProps>`
align-items: center;
background: ${({ theme }) => theme.background.primary};
border-radius: ${({ theme }) =... | 2,119 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown/components/StyledDropdownMenuSubheader.tsx | import styled from '@emotion/styled';
export const StyledDropdownMenuSubheader = styled.div`
background-color: ${({ theme }) => theme.background.transparent.lighter};
color: ${({ theme }) => theme.font.color.light};
font-size: ${({ theme }) => theme.font.size.xxs};
font-weight: ${({ theme }) => theme.font.weig... | 2,120 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown/components/StyledHeaderDropdownButton.tsx | import styled from '@emotion/styled';
type StyledDropdownButtonProps = {
isUnfolded?: boolean;
isActive?: boolean;
};
export const StyledHeaderDropdownButton = styled.div<StyledDropdownButtonProps>`
align-items: center;
background: ${({ theme }) => theme.background.primary};
border-radius: ${({ theme }) => ... | 2,121 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown/components | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown/components/__stories__/DropdownMenu.stories.tsx | import { useState } from 'react';
import styled from '@emotion/styled';
import { expect } from '@storybook/jest';
import { Decorator, Meta, StoryObj } from '@storybook/react';
import { userEvent, waitFor, within } from '@storybook/testing-library';
import { PlayFunction } from '@storybook/types';
import { Button } fro... | 2,122 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown/components | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown/components/__stories__/DropdownMenuInput.stories.tsx | import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { DropdownMenuInput } from '../DropdownMenuInput';
const meta: Meta<typeof DropdownMenuInput> = {
title: 'UI/Layout/Dropdown/DropdownMenuInput',
component: DropdownMenuInput,
... | 2,123 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown/hooks/useDropdown.ts | import { usePreviousHotkeyScope } from '@/ui/utilities/hotkey/hooks/usePreviousHotkeyScope';
import { useAvailableScopeIdOrThrow } from '@/ui/utilities/recoil-scope/scopes-internal/hooks/useAvailableScopeId';
import { DropdownScopeInternalContext } from '../scopes/scope-internal-context/DropdownScopeInternalContext';
... | 2,124 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown/hooks/useDropdownStates.ts | import { useRecoilScopedStateV2 } from '@/ui/utilities/recoil-scope/hooks/useRecoilScopedStateV2';
import { dropdownHotkeyScopeScopedState } from '../states/dropdownHotkeyScopeScopedState';
import { dropdownWidthScopedState } from '../states/dropdownWidthScopedState';
import { isDropdownOpenScopedState } from '../stat... | 2,125 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown/hooks/useInternalHotkeyScopeManagement.ts | import { useEffect } from 'react';
import { HotkeyScope } from '@/ui/utilities/hotkey/types/HotkeyScope';
import { isDeeplyEqual } from '~/utils/isDeeplyEqual';
import { useDropdown } from './useDropdown';
export const useInternalHotkeyScopeManagement = ({
dropdownHotkeyScopeFromParent,
}: {
dropdownHotkeyScopeF... | 2,126 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown/scopes/DropdownScope.tsx | import { ReactNode } from 'react';
import { DropdownScopeInternalContext } from './scope-internal-context/DropdownScopeInternalContext';
type DropdownScopeProps = {
children: ReactNode;
dropdownScopeId: string;
};
export const DropdownScope = ({
children,
dropdownScopeId,
}: DropdownScopeProps) => {
return... | 2,127 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown/scopes | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown/scopes/scope-internal-context/DropdownScopeInternalContext.ts | import { ScopedStateKey } from '@/ui/utilities/recoil-scope/scopes-internal/types/ScopedStateKey';
import { createScopeInternalContext } from '@/ui/utilities/recoil-scope/scopes-internal/utils/createScopeInternalContext';
type DropdownScopeInternalContextProps = ScopedStateKey;
export const DropdownScopeInternalConte... | 2,128 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown/states/dropdownHotkeyScopeScopedState.ts | import { HotkeyScope } from '@/ui/utilities/hotkey/types/HotkeyScope';
import { createScopedState } from '@/ui/utilities/recoil-scope/utils/createScopedState';
export const dropdownHotkeyScopeScopedState = createScopedState<
HotkeyScope | null | undefined
>({
key: 'dropdownHotkeyScopeScopedState',
defaultValue: ... | 2,129 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown/states/dropdownWidthScopedState.ts | import { createScopedState } from '@/ui/utilities/recoil-scope/utils/createScopedState';
export const dropdownWidthScopedState = createScopedState<number | undefined>({
key: 'dropdownWidthScopedState',
defaultValue: 160,
});
| 2,130 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/dropdown/states/isDropdownOpenScopedState.ts | import { createScopedState } from '@/ui/utilities/recoil-scope/utils/createScopedState';
export const isDropdownOpenScopedState = createScopedState<boolean>({
key: 'isDropdownOpenScopedState',
defaultValue: false,
});
| 2,131 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/hooks/useIsSubMenuNavbarDisplayed.ts | import { useLocation } from 'react-router-dom';
export const useIsSubMenuNavbarDisplayed = () => {
const currentPath = useLocation().pathname;
return currentPath.match(/\/settings\//g) !== null;
};
| 2,132 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/modal | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/modal/components/ConfirmationModal.tsx | import { ReactNode, useState } from 'react';
import styled from '@emotion/styled';
import { AnimatePresence, LayoutGroup } from 'framer-motion';
import debounce from 'lodash.debounce';
import {
H1Title,
H1TitleFontColor,
} from '@/ui/display/typography/components/H1Title';
import { Button } from '@/ui/input/button... | 2,133 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/modal | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/modal/components/Modal.tsx | import React, { useEffect, useRef } from 'react';
import styled from '@emotion/styled';
import { motion } from 'framer-motion';
import { Key } from 'ts-key-enum';
import { usePreviousHotkeyScope } from '@/ui/utilities/hotkey/hooks/usePreviousHotkeyScope';
import { useScopedHotkeys } from '@/ui/utilities/hotkey/hooks/u... | 2,134 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/modal/components | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/modal/components/__stories__/ConfirmModal.stories.tsx | import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { ConfirmationModal } from '../ConfirmationModal';
const meta: Meta<typeof ConfirmationModal> = {
title: 'UI/Layout/Modal/ConfirmationModal',
component: ConfirmationModal,
dec... | 2,135 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/modal/components | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/modal/components/__stories__/Modal.stories.tsx | import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { Modal } from '../Modal';
import { ModalHotkeyScope } from '../types/ModalHotkeyScope';
const meta: Meta<typeof Modal> = {
title: 'UI/Layout/Modal/Modal',
component: Modal,
};
... | 2,136 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/modal/components | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/modal/components/types/ModalHotkeyScope.ts | export enum ModalHotkeyScope {
Default = 'default',
}
| 2,137 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/page/DefaultLayout.tsx | import styled from '@emotion/styled';
import { AnimatePresence, LayoutGroup } from 'framer-motion';
import { useRecoilValue } from 'recoil';
import { AuthModal } from '@/auth/components/Modal';
import { useOnboardingStatus } from '@/auth/hooks/useOnboardingStatus';
import { OnboardingStatus } from '@/auth/utils/getOnb... | 2,138 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/page/PageAddButton.tsx | import { IconPlus } from '@/ui/display/icon';
import { IconButton } from '@/ui/input/button/components/IconButton';
type PageAddButtonProps = {
onClick: () => void;
};
export const PageAddButton = ({ onClick }: PageAddButtonProps) => (
<IconButton
Icon={IconPlus}
dataTestId="add-button"
size="medium"
... | 2,139 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/page/PageBody.tsx | import { PAGE_BAR_MIN_HEIGHT } from './PageHeader';
import { RightDrawerContainer } from './RightDrawerContainer';
type PageBodyProps = {
children: JSX.Element | JSX.Element[];
};
export const PageBody = ({ children }: PageBodyProps) => (
<RightDrawerContainer topMargin={PAGE_BAR_MIN_HEIGHT + 16 + 16}>
{child... | 2,140 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/page/PageContainer.tsx | import styled from '@emotion/styled';
type PageContainerProps = {
children: JSX.Element | JSX.Element[];
};
const StyledContainer = styled.div`
display: flex;
flex-direction: column;
width: 100%;
`;
export const PageContainer = ({ children }: PageContainerProps) => (
<StyledContainer>{children}</StyledCont... | 2,141 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/page/PageFavoriteButton.tsx | import { IconHeart } from '@/ui/display/icon';
import { IconButton } from '@/ui/input/button/components/IconButton';
type PageFavoriteButtonProps = {
isFavorite: boolean;
onClick: () => void;
};
export const PageFavoriteButton = ({
isFavorite,
onClick,
}: PageFavoriteButtonProps) => (
<IconButton
Icon={... | 2,142 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/page/PageHeader.tsx | import { ComponentProps, useCallback } from 'react';
import { useNavigate } from 'react-router-dom';
import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { useRecoilValue } from 'recoil';
import { IconChevronLeft } from '@/ui/display/icon/index';
import { IconComponent } from '@/ui/d... | 2,143 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/page/PageHotkeysEffect.tsx | import { TableHotkeyScope } from '@/ui/object/record-table/types/TableHotkeyScope';
import { useScopedHotkeys } from '@/ui/utilities/hotkey/hooks/useScopedHotkeys';
type PageHotkeysEffectProps = {
onAddButtonClick?: () => void;
};
export const PageHotkeysEffect = ({
onAddButtonClick,
}: PageHotkeysEffectProps) =>... | 2,144 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/page/PagePanel.tsx | import React from 'react';
import styled from '@emotion/styled';
const StyledPanel = styled.div`
background: ${({ theme }) => theme.background.primary};
border: 1px solid ${({ theme }) => theme.border.color.medium};
border-radius: ${({ theme }) => theme.border.radius.md};
height: 100%;
overflow: auto;
widt... | 2,145 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/page/RightDrawerContainer.tsx | import styled from '@emotion/styled';
import { RightDrawer } from '@/ui/layout/right-drawer/components/RightDrawer';
import { PagePanel } from './PagePanel';
type RightDrawerContainerProps = {
children: JSX.Element | JSX.Element[];
topMargin?: number;
};
const StyledMainContainer = styled.div<{ topMargin: numbe... | 2,146 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/page/ShowPageContainer.tsx | import { ReactElement } from 'react';
import styled from '@emotion/styled';
import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile';
import { ScrollWrapper } from '@/ui/utilities/scroll/components/ScrollWrapper';
const StyledOuterContainer = styled.div`
display: flex;
gap: ${({ theme }) => (use... | 2,147 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/page/SubMenuTopBarContainer.tsx | import { JSX } from 'react';
import styled from '@emotion/styled';
import { IconComponent } from '@/ui/display/icon/types/IconComponent';
import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile';
import { PageHeader } from './PageHeader';
import { RightDrawerContainer } from './RightDrawerContainer';... | 2,148 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/right-drawer | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/right-drawer/components/RightDrawer.tsx | import { useRef } from 'react';
import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { motion } from 'framer-motion';
import { useRecoilState } from 'recoil';
import { Key } from 'ts-key-enum';
import { useScopedHotkeys } from '@/ui/utilities/hotkey/hooks/useScopedHotkeys';
import {
... | 2,149 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/right-drawer | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/right-drawer/components/RightDrawerRouter.tsx | import styled from '@emotion/styled';
import { useRecoilState } from 'recoil';
import { RightDrawerCreateActivity } from '@/activities/right-drawer/components/create/RightDrawerCreateActivity';
import { RightDrawerEditActivity } from '@/activities/right-drawer/components/edit/RightDrawerEditActivity';
import { rightD... | 2,150 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/right-drawer | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/right-drawer/components/RightDrawerTopBar.tsx | import styled from '@emotion/styled';
import { useRecoilValue } from 'recoil';
import { ActivityActionBar } from '@/activities/right-drawer/components/ActivityActionBar';
import { viewableActivityIdState } from '@/activities/states/viewableActivityIdState';
import { useIsMobile } from '@/ui/utilities/responsive/hooks/... | 2,151 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/right-drawer | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/right-drawer/components/RightDrawerTopBarCloseButton.tsx | import { IconChevronsRight } from '@/ui/display/icon/index';
import { LightIconButton } from '@/ui/input/button/components/LightIconButton';
import { useRightDrawer } from '../hooks/useRightDrawer';
export const RightDrawerTopBarCloseButton = () => {
const { closeRightDrawer } = useRightDrawer();
const handleBut... | 2,152 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/right-drawer | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/right-drawer/components/RightDrawerTopBarExpandButton.tsx | import { useRecoilState } from 'recoil';
import {
IconLayoutSidebarRightCollapse,
IconLayoutSidebarRightExpand,
} from '@/ui/display/icon';
import { LightIconButton } from '@/ui/input/button/components/LightIconButton';
import { isRightDrawerExpandedState } from '../states/isRightDrawerExpandedState';
export con... | 2,153 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/right-drawer/components | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/right-drawer/components/__stories__/RightDrawerTopBar.stories.tsx | import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { graphqlMocks } from '~/testing/graphqlMocks';
import { RightDrawerTopBar } from '../RightDrawerTopBar';
const meta: Meta<typeof RightDrawerTopBar> = {
title: 'UI/Layout/RightDra... | 2,154 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/right-drawer | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/right-drawer/hooks/useRightDrawer.ts | import { useRecoilState } from 'recoil';
import { isRightDrawerExpandedState } from '../states/isRightDrawerExpandedState';
import { isRightDrawerOpenState } from '../states/isRightDrawerOpenState';
import { rightDrawerPageState } from '../states/rightDrawerPageState';
import { RightDrawerPages } from '../types/RightD... | 2,155 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/right-drawer | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/right-drawer/states/isRightDrawerExpandedState.ts | import { atom } from 'recoil';
export const isRightDrawerExpandedState = atom<boolean>({
key: 'isRightDrawerExpandedState',
default: false,
});
| 2,156 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/right-drawer | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/right-drawer/states/isRightDrawerOpenState.ts | import { atom } from 'recoil';
export const isRightDrawerOpenState = atom<boolean>({
key: 'ui/layout/is-right-drawer-open',
default: false,
});
| 2,157 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/right-drawer | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/right-drawer/states/rightDrawerPageState.ts | import { atom } from 'recoil';
import { RightDrawerPages } from '../types/RightDrawerPages';
export const rightDrawerPageState = atom<RightDrawerPages | null>({
key: 'ui/layout/right-drawer-page',
default: null,
});
| 2,158 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/right-drawer | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/right-drawer/types/RightDrawerHotkeyScope.ts | export enum RightDrawerHotkeyScope {
RightDrawer = 'right-drawer',
}
| 2,159 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/right-drawer | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/right-drawer/types/RightDrawerPages.ts | export enum RightDrawerPages {
CreateActivity = 'create-activity',
EditActivity = 'edit-activity',
}
| 2,160 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/section | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/section/components/Section.tsx | import { ReactNode } from 'react';
import styled from '@emotion/styled';
type SectionProps = {
children: ReactNode;
className?: string;
alignment?: SectionAlignment;
fullWidth?: boolean;
fontColor?: SectionFontColor;
};
export enum SectionAlignment {
Left = 'left',
Center = 'center',
}
export enum Sect... | 2,161 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/show-page | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/show-page/components/ShowPageAddButton.tsx | import styled from '@emotion/styled';
import { useOpenCreateActivityDrawer } from '@/activities/hooks/useOpenCreateActivityDrawer';
import { ActivityType } from '@/activities/types/Activity';
import { ActivityTargetableEntity } from '@/activities/types/ActivityTargetableEntity';
import { PageHotkeyScope } from '@/type... | 2,162 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/show-page | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/show-page/components/ShowPageLeftContainer.tsx | import { ReactElement } from 'react';
import styled from '@emotion/styled';
import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile';
import { ScrollWrapper } from '@/ui/utilities/scroll/components/ScrollWrapper';
const StyledOuterContainer = styled.div`
background: ${({ theme }) => theme.backgroun... | 2,163 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/show-page | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/show-page/components/ShowPageRightContainer.tsx | import styled from '@emotion/styled';
import { Notes } from '@/activities/notes/components/Notes';
import { EntityTasks } from '@/activities/tasks/components/EntityTasks';
import { Timeline } from '@/activities/timeline/components/Timeline';
import { ActivityTargetableEntity } from '@/activities/types/ActivityTargetab... | 2,164 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/show-page | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/show-page/components/ShowPageSummaryCard.tsx | import { ChangeEvent, useRef } from 'react';
import { Tooltip } from 'react-tooltip';
import styled from '@emotion/styled';
import { v4 as uuidV4 } from 'uuid';
import { Avatar, AvatarType } from '@/users/components/Avatar';
import {
beautifyExactDateTime,
beautifyPastDateRelativeToNow,
} from '~/utils/date-utils'... | 2,165 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/states/ShowPageRecoilScopeContext.ts | import { createContext } from 'react';
export const ShowPageRecoilScopeContext = createContext<string | null>(null);
| 2,166 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/states/isNavbarOpenedState.ts | import { atom } from 'recoil';
import { MOBILE_VIEWPORT } from '@/ui/theme/constants/theme';
const isMobile = window.innerWidth <= MOBILE_VIEWPORT;
export const isNavbarOpenedState = atom({
key: 'ui/isNavbarOpenedState',
default: !isMobile,
});
| 2,167 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/states/isNavbarSwitchingSizeState.ts | import { atom } from 'recoil';
export const isNavbarSwitchingSizeState = atom({
key: 'ui/isNavbarSwitchingSizeState',
default: true,
});
| 2,168 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/tab | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/tab/components/Tab.tsx | import * as React from 'react';
import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { IconComponent } from '@/ui/display/icon/types/IconComponent';
type TabProps = {
id: string;
title: string;
Icon?: IconComponent;
active?: boolean;
className?: string;
onClick?: () => v... | 2,169 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/tab | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/tab/components/TabList.tsx | import * as React from 'react';
import styled from '@emotion/styled';
import { IconComponent } from '@/ui/display/icon/types/IconComponent';
import { useRecoilScopedState } from '@/ui/utilities/recoil-scope/hooks/useRecoilScopedState';
import { activeTabIdScopedState } from '../states/activeTabIdScopedState';
import... | 2,170 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/tab/components | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/tab/components/__stories__/Tab.stories.tsx | import { Meta, StoryObj } from '@storybook/react';
import { IconCheckbox } from '@/ui/display/icon';
import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { CatalogStory } from '~/testing/types';
import { Tab } fr... | 2,171 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/tab/components | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/tab/components/__stories__/Tablist.stories.tsx | import { expect } from '@storybook/jest';
import { Meta, StoryObj } from '@storybook/react';
import { within } from '@storybook/testing-library';
import { IconCheckbox } from '@/ui/display/icon';
import { RecoilScope } from '@/ui/utilities/recoil-scope/components/RecoilScope';
import { ComponentDecorator } from '~/tes... | 2,172 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/tab | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/tab/states/activeTabIdScopedState.ts | import { atomFamily } from 'recoil';
export const activeTabIdScopedState = atomFamily<string | null, string>({
key: 'activeTabIdScopedState',
default: null,
});
| 2,173 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/table | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/table/components/Table.tsx | import styled from '@emotion/styled';
const StyledTable = styled.div``;
export { StyledTable as Table };
| 2,174 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/table | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/table/components/TableBody.tsx | import styled from '@emotion/styled';
const StyledTableBody = styled.div`
display: flex;
flex-direction: column;
gap: 2px;
padding: ${({ theme }) => theme.spacing(2)} 0;
`;
export { StyledTableBody as TableBody };
| 2,175 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/table | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/table/components/TableCell.tsx | import styled from '@emotion/styled';
type TableCellProps = {
align?: 'left' | 'center' | 'right';
color?: string;
};
const StyledTableCell = styled.div<TableCellProps>`
align-items: center;
color: ${({ color, theme }) => color || theme.font.color.secondary};
display: flex;
height: ${({ theme }) => theme.... | 2,176 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/table | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/table/components/TableHeader.tsx | import styled from '@emotion/styled';
const StyledTableHeader = styled.div<{ align?: 'left' | 'center' | 'right' }>`
align-items: center;
border-bottom: 1px solid ${({ theme }) => theme.border.color.light};
color: ${({ theme }) => theme.font.color.tertiary};
display: flex;
font-weight: ${({ theme }) => theme... | 2,177 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/table | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/table/components/TableRow.tsx | import styled from '@emotion/styled';
const StyledTableRow = styled.div<{
isSelected?: boolean;
onClick?: () => void;
}>`
background-color: ${({ isSelected, theme }) =>
isSelected ? theme.accent.quaternary : 'transparent'};
border-radius: ${({ theme }) => theme.border.radius.sm};
display: grid;
grid-au... | 2,178 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/table | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/table/components/TableSection.tsx | import { ReactNode, useState } from 'react';
import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { IconChevronDown, IconChevronUp } from '@/ui/display/icon';
import { TableBody } from './TableBody';
type TableSectionProps = {
children: ReactNode;
isInitiallyExpanded?: boolean;... | 2,179 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/table/components | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/table/components/__stories__/Table.stories.tsx | import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { Table } from '../Table';
import { TableCell } from '../TableCell';
import { TableHeader } from '../TableHeader';
import { TableRow } from '../TableRow';
import { TableSection } fro... | 2,180 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout | petrpan-code/twentyhq/twenty/front/src/modules/ui/layout/top-bar/TopBar.tsx | import { ReactNode } from 'react';
import styled from '@emotion/styled';
type TopBarProps = {
className?: string;
leftComponent?: ReactNode;
rightComponent?: ReactNode;
bottomComponent?: ReactNode;
displayBottomBorder?: boolean;
};
const StyledContainer = styled.div`
display: flex;
flex-direction: colum... | 2,181 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/action-bar | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/action-bar/components/ActionBar.tsx | import React, { useRef } from 'react';
import styled from '@emotion/styled';
import { useRecoilValue } from 'recoil';
import { actionBarEntriesState } from '@/ui/navigation/action-bar/states/actionBarEntriesState';
import { contextMenuIsOpenState } from '@/ui/navigation/context-menu/states/contextMenuIsOpenState';
im... | 2,182 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/action-bar | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/action-bar/components/ActionBarItem.tsx | import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { IconComponent } from '@/ui/display/icon/types/IconComponent';
import { ActionBarItemAccent } from '../types/ActionBarItemAccent';
type ActionBarItemProps = {
Icon: IconComponent;
label: string;
accent?: ActionBarItemAccen... | 2,183 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/action-bar/components | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/action-bar/components/__stories__/ActionBar.stories.tsx | import { MemoryRouter } from 'react-router-dom';
import { Meta, StoryObj } from '@storybook/react';
import { useSetRecoilState } from 'recoil';
import { RecordTableScope } from '@/ui/object/record-table/scopes/RecordTableScope';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { ac... | 2,184 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/action-bar | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/action-bar/states/actionBarEntriesState.ts | import { atom } from 'recoil';
import { ActionBarEntry } from '../types/ActionBarEntry';
export const actionBarEntriesState = atom<ActionBarEntry[]>({
key: 'actionBarEntriesState',
default: [],
});
| 2,185 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/action-bar | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/action-bar/states/actionBarIsOpenState.ts | import { atom } from 'recoil';
export const actionBarOpenState = atom<boolean>({
key: 'actionBarOpenState',
default: false,
});
| 2,186 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/action-bar | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/action-bar/types/ActionBarEntry.ts | import { IconComponent } from '@/ui/display/icon/types/IconComponent';
import { ActionBarItemAccent } from './ActionBarItemAccent';
export type ActionBarEntry = {
label: string;
Icon: IconComponent;
accent?: ActionBarItemAccent;
onClick: () => void;
};
| 2,187 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/action-bar | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/action-bar/types/ActionBarItemAccent.ts | export type ActionBarItemAccent = 'standard' | 'danger';
| 2,188 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/bread-crumb | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/bread-crumb/components/Breadcrumb.tsx | import { Fragment } from 'react';
import { Link } from 'react-router-dom';
import styled from '@emotion/styled';
type BreadcrumbProps = {
className?: string;
links: { children: string; href?: string }[];
};
const StyledWrapper = styled.nav`
align-items: center;
color: ${({ theme }) => theme.font.color.extraLi... | 2,189 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/bread-crumb/components | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/bread-crumb/components/__stories__/Breadcrumb.stories.tsx | import { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { ComponentWithRouterDecorator } from '~/testing/decorators/ComponentWithRouterDecorator';
import { Breadcrumb } from '../Breadcrumb';
const meta: Meta<typeof Breadcrumb> = {
titl... | 2,190 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/context-menu | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/context-menu/components/ContextMenu.tsx | import React, { useRef } from 'react';
import styled from '@emotion/styled';
import { useRecoilValue, useSetRecoilState } from 'recoil';
import { DropdownMenu } from '@/ui/layout/dropdown/components/DropdownMenu';
import { DropdownMenuItemsContainer } from '@/ui/layout/dropdown/components/DropdownMenuItemsContainer';
... | 2,191 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/context-menu | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/context-menu/components/ContextMenuItem.tsx | import { IconComponent } from '@/ui/display/icon/types/IconComponent';
import { MenuItem } from '@/ui/navigation/menu-item/components/MenuItem';
import { ContextMenuItemAccent } from '../types/ContextMenuItemAccent';
type ContextMenuItemProps = {
Icon: IconComponent;
label: string;
accent?: ContextMenuItemAccen... | 2,192 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/context-menu/components | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/context-menu/components/__stories__/ContextMenu.stories.tsx | import { MemoryRouter } from 'react-router-dom';
import { Meta, StoryObj } from '@storybook/react';
import { useSetRecoilState } from 'recoil';
import { RecordTableScope } from '@/ui/object/record-table/scopes/RecordTableScope';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { co... | 2,193 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/context-menu | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/context-menu/states/contextMenuEntriesState.ts | import { atom } from 'recoil';
import { ContextMenuEntry } from '../types/ContextMenuEntry';
export const contextMenuEntriesState = atom<ContextMenuEntry[]>({
key: 'contextMenuEntriesState',
default: [],
});
| 2,194 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/context-menu | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/context-menu/states/contextMenuIsOpenState.ts | import { atom } from 'recoil';
export const contextMenuIsOpenState = atom<boolean>({
key: 'contextMenuIsOpenState',
default: false,
});
| 2,195 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/context-menu | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/context-menu/states/contextMenuPositionState.ts | import { atom } from 'recoil';
import { PositionType } from '@/ui/navigation/context-menu/types/PositionType';
export const contextMenuPositionState = atom<PositionType>({
key: 'contextMenuPositionState',
default: {
x: null,
y: null,
},
});
| 2,196 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/context-menu | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/context-menu/types/ContextMenuEntry.ts | import { IconComponent } from '@/ui/display/icon/types/IconComponent';
import { ContextMenuItemAccent } from './ContextMenuItemAccent';
export type ContextMenuEntry = {
label: string;
Icon: IconComponent;
accent?: ContextMenuItemAccent;
onClick: () => void;
};
| 2,197 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/context-menu | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/context-menu/types/ContextMenuItemAccent.ts | export type ContextMenuItemAccent = 'default' | 'danger';
| 2,198 |
0 | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/context-menu | petrpan-code/twentyhq/twenty/front/src/modules/ui/navigation/context-menu/types/PositionType.ts | export type PositionType = {
x: number | null;
y: number | null;
};
| 2,199 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.