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/feedback/dialog-manager
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/dialog-manager/components/DialogManagerEffect.tsx
import { useEffect } from 'react'; import { usePreviousHotkeyScope } from '@/ui/utilities/hotkey/hooks/usePreviousHotkeyScope'; import { useDialogManagerScopedStates } from '../hooks/internal/useDialogManagerScopedStates'; import { DialogHotkeyScope } from '../types/DialogHotkeyScope'; export const DialogManagerEffe...
2,000
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/dialog-manager
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/dialog-manager/hooks/useDialogManager.ts
import { useRecoilCallback } from 'recoil'; import { v4 } from 'uuid'; import { usePreviousHotkeyScope } from '@/ui/utilities/hotkey/hooks/usePreviousHotkeyScope'; import { useAvailableScopeIdOrThrow } from '@/ui/utilities/recoil-scope/scopes-internal/hooks/useAvailableScopeId'; import { DialogManagerScopeInternalCon...
2,001
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/dialog-manager/hooks
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/dialog-manager/hooks/internal/useDialogManagerScopedStates.ts
import { useRecoilScopedStateV2 } from '@/ui/utilities/recoil-scope/hooks/useRecoilScopedStateV2'; import { useAvailableScopeIdOrThrow } from '@/ui/utilities/recoil-scope/scopes-internal/hooks/useAvailableScopeId'; import { DialogManagerScopeInternalContext } from '../../scopes/scope-internal-context/DialogManagerScop...
2,002
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/dialog-manager
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/dialog-manager/scopes/DialogManagerScope.tsx
import { ReactNode } from 'react'; import { DialogManagerScopeInternalContext } from './scope-internal-context/DialogManagerScopeInternalContext'; type DialogManagerScopeProps = { children: ReactNode; dialogManagerScopeId: string; }; export const DialogManagerScope = ({ children, dialogManagerScopeId, }: Dia...
2,003
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/dialog-manager/scopes
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/dialog-manager/scopes/scope-internal-context/DialogManagerScopeInternalContext.ts
import { ScopedStateKey } from '@/ui/utilities/recoil-scope/scopes-internal/types/ScopedStateKey'; import { createScopeInternalContext } from '@/ui/utilities/recoil-scope/scopes-internal/utils/createScopeInternalContext'; type DialogManagerScopeInternalContextProps = ScopedStateKey; export const DialogManagerScopeInt...
2,004
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/dialog-manager
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/dialog-manager/states/dialogInternalScopedState.ts
import { createScopedState } from '@/ui/utilities/recoil-scope/utils/createScopedState'; import { DialogOptions } from '../types/DialogOptions'; type DialogState = { maxQueue: number; queue: DialogOptions[]; }; export const dialogInternalScopedState = createScopedState<DialogState>({ key: 'dialog/internal-stat...
2,005
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/dialog-manager
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/dialog-manager/types/DialogHotkeyScope.ts
export enum DialogHotkeyScope { Dialog = 'dialog', }
2,006
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/dialog-manager
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/dialog-manager/types/DialogOptions.ts
import { DialogProps } from '../components/Dialog'; export type DialogOptions = DialogProps & { id: string; };
2,007
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/progress-bar
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/progress-bar/components/CircularProgressBar.tsx
import React, { useEffect, useMemo } from 'react'; import { motion, useAnimation } from 'framer-motion'; interface CircularProgressBarProps { size?: number; barWidth?: number; barColor?: string; } export const CircularProgressBar = ({ size = 50, barWidth = 5, barColor = 'currentColor', }: CircularProgress...
2,008
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/progress-bar
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/progress-bar/components/ProgressBar.tsx
import { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, } from 'react'; import { useTheme } from '@emotion/react'; import styled from '@emotion/styled'; import { AnimationControls, motion, useAnimation } from 'framer-motion'; export type ProgressBarProps = { duration?: number; delay?: n...
2,009
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/progress-bar/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/progress-bar/components/__stories__/CircularProgressBar.stories.tsx
import { Meta, StoryObj } from '@storybook/react'; import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; import { CatalogStory } from '~/testing/types'; import { CircularProgressBar } from '../CircularProgressBar'; cons...
2,010
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/progress-bar/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/progress-bar/components/__stories__/ProgressBar.stories.tsx
import { Meta, StoryObj } from '@storybook/react'; import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; import { CatalogStory } from '~/testing/types'; import { ProgressBar } from '../ProgressBar'; const meta: Meta<typ...
2,011
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/snack-bar-manager
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/snack-bar-manager/components/SnackBar.tsx
import { useCallback, useMemo, useRef } from 'react'; import { useTheme } from '@emotion/react'; import styled from '@emotion/styled'; import { IconAlertTriangle, IconX } from '@/ui/display/icon'; import { ProgressBar, ProgressBarControls, } from '@/ui/feedback/progress-bar/components/ProgressBar'; import { rgba }...
2,012
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/snack-bar-manager
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/snack-bar-manager/components/SnackBarProvider.tsx
import styled from '@emotion/styled'; import { motion, useReducedMotion } from 'framer-motion'; import { useSnackBarManagerScopedStates } from '@/ui/feedback/snack-bar-manager/hooks/internal/useSnackBarManagerScopedStates'; import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar'; import { Snac...
2,013
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/snack-bar-manager
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/snack-bar-manager/hooks/usePausableTimeout.ts
import { useCallback, useEffect, useRef } from 'react'; export const usePausableTimeout = (callback: () => void, delay: number) => { // eslint-disable-next-line twenty/no-state-useref const savedCallback = useRef<() => void>(callback); // eslint-disable-next-line twenty/no-state-useref const remainingTime = us...
2,014
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/snack-bar-manager
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/snack-bar-manager/hooks/useSnackBar.tsx
import { useRecoilCallback } from 'recoil'; import { v4 as uuidv4 } from 'uuid'; import { SnackBarManagerScopeInternalContext } from '@/ui/feedback/snack-bar-manager/scopes/scope-internal-context/SnackBarManagerScopeInternalContext'; import { snackBarInternalScopedState, SnackBarOptions, } from '@/ui/feedback/snac...
2,015
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/snack-bar-manager/hooks
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/snack-bar-manager/hooks/internal/useSnackBarManagerScopedStates.ts
import { SnackBarManagerScopeInternalContext } from '@/ui/feedback/snack-bar-manager/scopes/scope-internal-context/SnackBarManagerScopeInternalContext'; import { snackBarInternalScopedState } from '@/ui/feedback/snack-bar-manager/states/snackBarInternalScopedState'; import { useRecoilScopedStateV2 } from '@/ui/utilitie...
2,016
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/snack-bar-manager
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/snack-bar-manager/scopes/SnackBarProviderScope.tsx
import { ReactNode } from 'react'; import { SnackBarManagerScopeInternalContext } from './scope-internal-context/SnackBarManagerScopeInternalContext'; type SnackBarProviderScopeProps = { children: ReactNode; snackBarManagerScopeId: string; }; export const SnackBarProviderScope = ({ children, snackBarManagerS...
2,017
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/snack-bar-manager/scopes
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/snack-bar-manager/scopes/scope-internal-context/SnackBarManagerScopeInternalContext.ts
import { ScopedStateKey } from '@/ui/utilities/recoil-scope/scopes-internal/types/ScopedStateKey'; import { createScopeInternalContext } from '@/ui/utilities/recoil-scope/scopes-internal/utils/createScopeInternalContext'; type SnackBarManagerScopeInternalContextProps = ScopedStateKey; export const SnackBarManagerScop...
2,018
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/snack-bar-manager
petrpan-code/twentyhq/twenty/front/src/modules/ui/feedback/snack-bar-manager/states/snackBarInternalScopedState.ts
import { createScopedState } from '@/ui/utilities/recoil-scope/utils/createScopedState'; import { SnackBarProps } from '../components/SnackBar'; export type SnackBarOptions = SnackBarProps & { id: string; }; type SnackBarState = { maxQueue: number; queue: SnackBarOptions[]; }; export const snackBarInternalSco...
2,019
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/Button.tsx
import React from 'react'; import { useTheme } from '@emotion/react'; import styled from '@emotion/styled'; import { IconComponent } from '@/ui/display/icon/types/IconComponent'; import { SoonPill } from '@/ui/display/pill/components/SoonPill'; export type ButtonSize = 'medium' | 'small'; export type ButtonPosition =...
2,020
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/ButtonGroup.tsx
import React, { ReactNode } from 'react'; import styled from '@emotion/styled'; import { ButtonPosition, ButtonProps } from './Button'; const StyledButtonGroupContainer = styled.div` border-radius: ${({ theme }) => theme.border.radius.md}; display: flex; `; export type ButtonGroupProps = Pick< ButtonProps, '...
2,021
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/FloatingButton.tsx
import React from 'react'; import { useTheme } from '@emotion/react'; import styled from '@emotion/styled'; import { IconComponent } from '@/ui/display/icon/types/IconComponent'; export type FloatingButtonSize = 'small' | 'medium'; export type FloatingButtonPosition = 'standalone' | 'left' | 'middle' | 'right'; expo...
2,022
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/FloatingButtonGroup.tsx
import React from 'react'; import styled from '@emotion/styled'; import { FloatingButtonPosition, FloatingButtonProps } from './FloatingButton'; const StyledFloatingButtonGroupContainer = styled.div` backdrop-filter: blur(20px); border-radius: ${({ theme }) => theme.border.radius.md}; box-shadow: ${({ theme }) ...
2,023
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/FloatingIconButton.tsx
import React from 'react'; import { useTheme } from '@emotion/react'; import styled from '@emotion/styled'; import { IconComponent } from '@/ui/display/icon/types/IconComponent'; export type FloatingIconButtonSize = 'small' | 'medium'; export type FloatingIconButtonPosition = | 'standalone' | 'left' | 'middle' ...
2,024
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/FloatingIconButtonGroup.tsx
import { MouseEvent } from 'react'; import styled from '@emotion/styled'; import { IconComponent } from '@/ui/display/icon/types/IconComponent'; import { FloatingIconButton, FloatingIconButtonPosition, FloatingIconButtonProps, } from './FloatingIconButton'; const StyledFloatingIconButtonGroupContainer = styled...
2,025
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/IconButton.tsx
import React from 'react'; import { useTheme } from '@emotion/react'; import styled from '@emotion/styled'; import { IconComponent } from '@/ui/display/icon/types/IconComponent'; export type IconButtonSize = 'medium' | 'small'; export type IconButtonPosition = 'standalone' | 'left' | 'middle' | 'right'; export type I...
2,026
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/IconButtonGroup.tsx
import { MouseEvent } from 'react'; import styled from '@emotion/styled'; import { IconComponent } from '@/ui/display/icon/types/IconComponent'; import { IconButton, IconButtonPosition, IconButtonProps } from './IconButton'; const StyledIconButtonGroupContainer = styled.div` border-radius: ${({ theme }) => theme.b...
2,027
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/LightButton.tsx
import React, { MouseEvent, useMemo } from 'react'; import styled from '@emotion/styled'; import { TablerIconsProps } from '@/ui/display/icon'; export type LightButtonAccent = 'secondary' | 'tertiary'; export type LightButtonProps = { className?: string; icon?: React.ReactNode; title?: string; accent?: Light...
2,028
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/LightIconButton.tsx
import { ComponentProps, MouseEvent } from 'react'; import { useTheme } from '@emotion/react'; import styled from '@emotion/styled'; import { IconComponent } from '@/ui/display/icon/types/IconComponent'; export type LightIconButtonAccent = 'secondary' | 'tertiary'; export type LightIconButtonSize = 'small' | 'medium'...
2,029
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/MainButton.tsx
import React from 'react'; import { useTheme } from '@emotion/react'; import styled from '@emotion/styled'; import { IconComponent } from '@/ui/display/icon/types/IconComponent'; type Variant = 'primary' | 'secondary'; type Props = { title: string; fullWidth?: boolean; variant?: Variant; soon?: boolean; } & ...
2,030
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/RoundedIconButton.tsx
import { useTheme } from '@emotion/react'; import styled from '@emotion/styled'; import { IconComponent } from '@/ui/display/icon/types/IconComponent'; const StyledIconButton = styled.button` align-items: center; background: ${({ theme }) => theme.color.blue}; border: none; border-radius: 50%; color: ${({ ...
2,031
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/__stories__/Button.docs.mdx
{/* Button.mdx */} import { Meta, Controls, Story } from '@storybook/blocks'; import * as ButtonStories from './Button.stories'; <Meta of={ButtonStories} /> Button is a clickable interactive element that triggers a response. You can place text and icons inside of a button. Buttons are often used for form submissio...
2,032
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/__stories__/Button.stories.tsx
import { Meta, StoryObj } from '@storybook/react'; import { IconSearch } from '@/ui/display/icon'; import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; import { CatalogStory } from '~/testing/types'; import { Button, ...
2,033
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/__stories__/ButtonGroup.stories.tsx
import { Meta, StoryObj } from '@storybook/react'; import { IconCheckbox, IconNotes, IconTimelineEvent } from '@/ui/display/icon'; import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; import { CatalogStory } from '~/test...
2,034
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/__stories__/FloatingButton.stories.tsx
import { Meta, StoryObj } from '@storybook/react'; import { IconSearch } from '@/ui/display/icon'; import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; import { CatalogStory } from '~/testing/types'; import { FloatingBu...
2,035
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/__stories__/FloatingButtonGroup.stories.tsx
import { Meta, StoryObj } from '@storybook/react'; import { IconCheckbox, IconNotes, IconTimelineEvent } from '@/ui/display/icon'; import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; import { CatalogStory } from '~/test...
2,036
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/__stories__/FloatingIconButton.stories.tsx
import { Meta, StoryObj } from '@storybook/react'; import { IconSearch } from '@/ui/display/icon'; import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; import { CatalogStory } from '~/testing/types'; import { Floating...
2,037
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/__stories__/FloatingIconButtonGroup.stories.tsx
import { Meta, StoryObj } from '@storybook/react'; import { IconCheckbox, IconNotes, IconTimelineEvent } from '@/ui/display/icon'; import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; import { CatalogStory } from '~/test...
2,038
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/__stories__/IconButton.stories.tsx
import { Meta, StoryObj } from '@storybook/react'; import { IconSearch } from '@/ui/display/icon'; import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; import { CatalogStory } from '~/testing/types'; import { IconButt...
2,039
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/__stories__/IconButtonGroup.stories.tsx
import { Meta, StoryObj } from '@storybook/react'; import { IconCheckbox, IconNotes, IconTimelineEvent } from '@/ui/display/icon'; import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; import { CatalogStory } from '~/test...
2,040
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/__stories__/LightButton.stories.tsx
import { Meta, StoryObj } from '@storybook/react'; import { IconSearch } from '@/ui/display/icon'; import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; import { CatalogStory } from '~/testing/types'; import { LightButto...
2,041
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/__stories__/LightIconButton.stories.tsx
import { Meta, StoryObj } from '@storybook/react'; import { IconSearch } from '@/ui/display/icon'; import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; import { CatalogStory } from '~/testing/types'; import { LightIco...
2,042
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/__stories__/MainButton.stories.tsx
import { expect, jest } from '@storybook/jest'; import { Meta, StoryObj } from '@storybook/react'; import { userEvent, within } from '@storybook/testing-library'; import { IconBrandGoogle } from '@/ui/display/icon'; import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; import { MainButton } fr...
2,043
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/button/components/__stories__/RoundedIconButton.stories.tsx
import { expect, jest } from '@storybook/jest'; import { Meta, StoryObj } from '@storybook/react'; import { userEvent, within } from '@storybook/testing-library'; import { IconArrowRight } from '@/ui/display/icon'; import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; import { RoundedIconButto...
2,044
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/color-scheme
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/color-scheme/components/ColorSchemeCard.tsx
import React from 'react'; import styled from '@emotion/styled'; import { AnimatePresence, AnimationControls, motion, useAnimation, } from 'framer-motion'; import { Checkmark } from '@/ui/display/checkmark/components/Checkmark'; import DarkNoise from '@/ui/theme/assets/dark-noise.jpg'; import LightNoise from '...
2,045
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/color-scheme
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/color-scheme/components/ColorSchemePicker.tsx
import React from 'react'; import styled from '@emotion/styled'; import { ColorScheme } from '@/workspace-member/types/WorkspaceMember'; import { ColorSchemeCard } from './ColorSchemeCard'; const StyledContainer = styled.div` display: flex; flex-direction: row; > * + * { margin-left: ${({ theme }) => theme...
2,046
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/color-scheme/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/color-scheme/components/__stories__/ColorSchemeCard.stories.tsx
import styled from '@emotion/styled'; import { Meta, StoryObj } from '@storybook/react'; import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; import { ColorSchemeCard } from '../ColorSchemeCard'; const StyledContainer = styled.div` display: flex; flex-direction: row; > * + * { marg...
2,047
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/AutosizeTextInput.tsx
import { useState } from 'react'; import { HotkeysEvent } from 'react-hotkeys-hook/dist/types'; import TextareaAutosize from 'react-textarea-autosize'; import styled from '@emotion/styled'; import { IconArrowRight } from '@/ui/display/icon/index'; import { Button } from '@/ui/input/button/components/Button'; import { ...
2,048
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/Checkbox.tsx
import * as React from 'react'; import styled from '@emotion/styled'; import { v4 } from 'uuid'; import { IconCheck, IconMinus } from '@/ui/display/icon'; export enum CheckboxVariant { Primary = 'primary', Secondary = 'secondary', Tertiary = 'tertiary', } export enum CheckboxShape { Squared = 'squared', Ro...
2,049
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/EntityTitleDoubleTextInput.tsx
import { ChangeEvent } from 'react'; import styled from '@emotion/styled'; import { StyledInput } from '@/ui/object/field/meta-types/input/components/internal/TextInput'; import { ComputeNodeDimensions } from '@/ui/utilities/dimensions/components/ComputeNodeDimensions'; import { usePreviousHotkeyScope } from '@/ui/uti...
2,050
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/IconPicker.tsx
import { useMemo, useState } from 'react'; import styled from '@emotion/styled'; import { IconComponent } from '@/ui/display/icon/types/IconComponent'; import { Dropdown } from '@/ui/layout/dropdown/components/Dropdown'; import { DropdownMenu } from '@/ui/layout/dropdown/components/DropdownMenu'; import { DropdownMenu...
2,051
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/ImageInput.tsx
import React from 'react'; import { useTheme } from '@emotion/react'; import styled from '@emotion/styled'; import { IconFileUpload, IconTrash, IconUpload, IconX, } from '@/ui/display/icon'; import { Button } from '@/ui/input/button/components/Button'; const StyledContainer = styled.div` display: flex; fl...
2,052
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/Radio.tsx
import * as React from 'react'; import styled from '@emotion/styled'; import { motion } from 'framer-motion'; import { rgba } from '@/ui/theme/constants/colors'; import { RadioGroup } from './RadioGroup'; export enum RadioSize { Large = 'large', Small = 'small', } export enum LabelPosition { Left = 'left', ...
2,053
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/RadioGroup.tsx
import React from 'react'; import { useTheme } from '@emotion/react'; import { RadioProps } from './Radio'; type RadioGroupProps = React.PropsWithChildren & { value?: string; onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void; onValueChange?: (value: string) => void; }; export const RadioGroup = (...
2,054
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/Select.tsx
import { useTheme } from '@emotion/react'; import styled from '@emotion/styled'; import { IconChevronDown } from '@/ui/display/icon'; import { IconComponent } from '@/ui/display/icon/types/IconComponent'; import { Dropdown } from '@/ui/layout/dropdown/components/Dropdown'; import { DropdownMenuItemsContainer } from '@...
2,055
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/TextArea.tsx
import { FocusEventHandler } from 'react'; import TextareaAutosize from 'react-textarea-autosize'; import styled from '@emotion/styled'; import { usePreviousHotkeyScope } from '@/ui/utilities/hotkey/hooks/usePreviousHotkeyScope'; import { InputHotkeyScope } from '../types/InputHotkeyScope'; const MAX_ROWS = 5; expo...
2,056
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/TextInput.tsx
import { ChangeEvent, FocusEventHandler, ForwardedRef, forwardRef, InputHTMLAttributes, useRef, useState, } from 'react'; import { useTheme } from '@emotion/react'; import styled from '@emotion/styled'; import { Key } from 'ts-key-enum'; import { IconAlertCircle } from '@/ui/display/icon'; import { IconE...
2,057
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/Toggle.tsx
import { useEffect, useState } from 'react'; import styled from '@emotion/styled'; import { motion } from 'framer-motion'; export type ToggleSize = 'small' | 'medium'; type ContainerProps = { isOn: boolean; color?: string; toggleSize: ToggleSize; }; const StyledContainer = styled.div<ContainerProps>` align-i...
2,058
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/__stories__/AutosizeTextInput.stories.tsx
import { Meta, StoryObj } from '@storybook/react'; import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; import { CatalogStory } from '~/testing/types'; import { AutosizeTextInput, AutosizeTextInputVariant, } from '....
2,059
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/__stories__/Checkbox.stories.tsx
import { Meta, StoryObj } from '@storybook/react'; import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; import { CatalogStory } from '~/testing/types'; import { Checkbox, CheckboxShape, CheckboxSize, CheckboxVar...
2,060
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/__stories__/IconPicker.stories.tsx
import { expect } from '@storybook/jest'; import { Meta, StoryObj } from '@storybook/react'; import { userEvent, within } from '@storybook/testing-library'; import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; import { sleep } from '~/testing/sleep'; import { IconPicker } from '../IconPicker'...
2,061
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/__stories__/ImageInput.stories.tsx
import { Meta, StoryObj } from '@storybook/react'; import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; import { workspaceLogoUrl } from '~/testing/mock-data/users'; import { ImageInput } from '../ImageInput'; const meta: Meta<typeof ImageInput> = { title: 'UI/Input/ImageInput/ImageInput',...
2,062
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/__stories__/Radio.stories.tsx
import { Meta, StoryObj } from '@storybook/react'; import { CatalogDecorator } from '~/testing/decorators/CatalogDecorator'; import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; import { CatalogStory } from '~/testing/types'; import { LabelPosition, Radio, RadioSize } from '../Radio'; const ...
2,063
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/__stories__/Select.stories.tsx
import { useState } from 'react'; import { Meta, StoryObj } from '@storybook/react'; import { userEvent, within } from '@storybook/testing-library'; import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; import { Select, SelectProps } from '../Select'; type RenderProps = SelectProps<string | n...
2,064
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/__stories__/TextArea.stories.tsx
import { useState } from 'react'; import { Meta, StoryObj } from '@storybook/react'; import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; import { TextArea, TextAreaProps } from '../TextArea'; type RenderProps = TextAreaProps; const Render = (args: RenderProps) => { const [value, setValue...
2,065
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/__stories__/TextInput.stories.tsx
import { useState } from 'react'; import { Meta, StoryObj } from '@storybook/react'; import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; import { TextInput, TextInputComponentProps } from '../TextInput'; type RenderProps = TextInputComponentProps; const Render = (args: RenderProps) => { ...
2,066
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/date
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/date/components/InternalDatePicker.tsx
import React from 'react'; import ReactDatePicker from 'react-datepicker'; import styled from '@emotion/styled'; import { overlayBackground } from '@/ui/theme/constants/effects'; import 'react-datepicker/dist/react-datepicker.css'; const StyledContainer = styled.div` & .react-datepicker { border-color: ${({ th...
2,067
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/date/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/date/components/__stories__/DatePicker.stories.tsx
import { expect } from '@storybook/jest'; import { Meta, StoryObj } from '@storybook/react'; import { userEvent, within } from '@storybook/testing-library'; import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator'; import { InternalDatePicker } from '../InternalDatePicker'; const meta: Meta<typeo...
2,068
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/phone
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/phone/components/CountryPickerDropdownButton.tsx
import { useEffect, useMemo, useState } from 'react'; import { getCountries, getCountryCallingCode } from 'react-phone-number-input'; import { useTheme } from '@emotion/react'; import styled from '@emotion/styled'; import { hasFlag } from 'country-flag-icons'; import * as Flags from 'country-flag-icons/react/3x2'; impo...
2,069
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/phone
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/phone/components/CountryPickerDropdownSelect.tsx
import { useMemo, useState } from 'react'; import styled from '@emotion/styled'; import { DropdownMenu } from '@/ui/layout/dropdown/components/DropdownMenu'; import { DropdownMenuItemsContainer } from '@/ui/layout/dropdown/components/DropdownMenuItemsContainer'; import { DropdownMenuSearchInput } from '@/ui/layout/dro...
2,070
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/phone
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/phone/types/CountryPickerHotkeyScope.ts
export enum CountryPickerHotkeyScope { CountryPicker = 'country-picker', }
2,071
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/relation-picker
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/relation-picker/components/RelationPicker.tsx
import { useEffect } from 'react'; import { useQuery } from '@apollo/client'; import { useObjectMetadataItem } from '@/object-metadata/hooks/useObjectMetadataItem'; import { useFilteredSearchEntityQuery } from '@/search/hooks/useFilteredSearchEntityQuery'; import { IconForbid } from '@/ui/display/icon'; import { useRe...
2,072
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/relation-picker
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/relation-picker/hooks/useRelationPicker.ts
import { useRecoilState } from 'recoil'; import { useRelationPickerScopedStates } from '@/ui/input/components/internal/relation-picker/hooks/internal/useRelationPickerScopedStates'; import { RelationPickerScopeInternalContext } from '@/ui/input/components/internal/relation-picker/scopes/scope-internal-context/Relation...
2,073
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/relation-picker/hooks
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/relation-picker/hooks/internal/useRelationPickerScopedStates.ts
import { getRelationPickerScopedStates } from '@/ui/input/components/internal/relation-picker/utils/getRelationPickerScopedStates'; import { RecordTableScopeInternalContext } from '@/ui/object/record-table/scopes/scope-internal-context/RecordTableScopeInternalContext'; import { useAvailableScopeIdOrThrow } from '@/ui/u...
2,074
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/relation-picker
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/relation-picker/scopes/RelationPickerScope.tsx
import { ReactNode } from 'react'; import { RelationPickerScopeInternalContext } from '@/ui/input/components/internal/relation-picker/scopes/scope-internal-context/RelationPickerScopeInternalContext'; type RelationPickerScopeProps = { children: ReactNode; relationPickerScopeId: string; }; export const RelationPi...
2,075
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/relation-picker/scopes
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/relation-picker/scopes/scope-internal-context/RelationPickerScopeInternalContext.ts
import { ScopedStateKey } from '@/ui/utilities/recoil-scope/scopes-internal/types/ScopedStateKey'; import { createScopeInternalContext } from '@/ui/utilities/recoil-scope/scopes-internal/utils/createScopeInternalContext'; type RelationPickerScopeInternalContextProps = ScopedStateKey; export const RelationPickerScopeI...
2,076
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/relation-picker
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/relation-picker/states/identifiersMapperScopedState.ts
import { IdentifiersMapper } from '@/ui/input/components/internal/relation-picker/types/IdentifiersMapper'; import { createScopedState } from '@/ui/utilities/recoil-scope/utils/createScopedState'; export const identifiersMapperScopedState = createScopedState<IdentifiersMapper | null>({ key: 'identifiersMapperSco...
2,077
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/relation-picker
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/relation-picker/states/searchQueryScopedState.ts
import { SearchQuery } from '@/ui/input/components/internal/relation-picker/types/SearchQuery'; import { createScopedState } from '@/ui/utilities/recoil-scope/utils/createScopedState'; export const searchQueryScopedState = createScopedState<SearchQuery | null>({ key: 'searchQueryScopedState', defaultValue: null, }...
2,078
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/relation-picker
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/relation-picker/types/IdentifiersMapper.tsx
import { AvatarType } from '@/users/components/Avatar'; type RecordMappedToIdentifiers = { id: string; name: string; avatarUrl?: string; avatarType: AvatarType; record: any; }; export type IdentifiersMapper = ( record: any, relationPickerType: string, ) => RecordMappedToIdentifiers | undefined;
2,079
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/relation-picker
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/relation-picker/types/SearchQuery.tsx
export type SearchQuery = { computeFilterFields: (relationPickerType: string) => string[]; };
2,080
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/relation-picker
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/components/internal/relation-picker/utils/getRelationPickerScopedStates.ts
import { identifiersMapperScopedState } from '@/ui/input/components/internal/relation-picker/states/identifiersMapperScopedState'; import { searchQueryScopedState } from '@/ui/input/components/internal/relation-picker/states/searchQueryScopedState'; import { getScopedState } from '@/ui/utilities/recoil-scope/utils/getS...
2,081
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/constants/icons.ts
/* eslint-disable no-restricted-imports */ export { Icon2fa, Icon3dCubeSphere, Icon3dCubeSphereOff, Icon3dRotate, Icon24Hours, Icon123, Icon360, Icon360View, IconAB, IconAB2, IconAbacus, IconAbacusOff, IconAbc, IconABOff, IconAccessible, IconAccessibleOff, IconAccessPoint, IconAccess...
2,082
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/editor
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/editor/components/BlockEditor.tsx
import { BlockNoteEditor } from '@blocknote/core'; import { BlockNoteView } from '@blocknote/react'; import styled from '@emotion/styled'; interface BlockEditorProps { editor: BlockNoteEditor; } const StyledEditor = styled.div` min-height: 200px; width: 100%; & .editor { background: ${({ theme }) => theme...
2,083
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/hooks/useIconPicker.ts
import { useRecoilState } from 'recoil'; import { iconPickerState } from '../states/iconPickerState'; export const useIconPicker = () => { const [iconPicker, setIconPicker] = useRecoilState(iconPickerState); return { Icon: iconPicker.Icon, iconKey: iconPicker.iconKey, setIconPicker, }; };
2,084
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/hooks/useLazyLoadIcon.ts
import { useEffect, useState } from 'react'; import { IconComponent } from '@/ui/display/icon/types/IconComponent'; import { useLazyLoadIcons } from './useLazyLoadIcons'; export const useLazyLoadIcon = (iconKey: string) => { const { isLoadingIcons, icons } = useLazyLoadIcons(); const [Icon, setIcon] = useState<I...
2,085
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/hooks/useLazyLoadIcons.ts
import { useEffect, useState } from 'react'; import { useRecoilState } from 'recoil'; import { iconsState } from '@/ui/input/states/iconsState'; export const useLazyLoadIcons = () => { const [icons, setIcons] = useRecoilState(iconsState); const [isLoadingIcons, setIsLoadingIcons] = useState(true); useEffect(()...
2,086
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker/components/CreateNewButton.tsx
import { css } from '@emotion/react'; import styled from '@emotion/styled'; import { MenuItem } from '@/ui/navigation/menu-item/components/MenuItem'; const StyledCreateNewButton = styled(MenuItem)<{ hovered: boolean }>` ${({ hovered, theme }) => hovered && css` background: ${theme.background.transpare...
2,087
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker/components/MultipleEntitySelect.tsx
import { useRef } from 'react'; import { isNonEmptyString } from '@sniptt/guards'; import debounce from 'lodash.debounce'; import { DropdownMenu } from '@/ui/layout/dropdown/components/DropdownMenu'; import { DropdownMenuItemsContainer } from '@/ui/layout/dropdown/components/DropdownMenuItemsContainer'; import { Dropd...
2,088
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker/components/SingleEntitySelect.tsx
import { useRef } from 'react'; import { DropdownMenu } from '@/ui/layout/dropdown/components/DropdownMenu'; import { DropdownMenuSearchInput } from '@/ui/layout/dropdown/components/DropdownMenuSearchInput'; import { DropdownMenuSeparator } from '@/ui/layout/dropdown/components/DropdownMenuSeparator'; import { useList...
2,089
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker/components/SingleEntitySelectBase.tsx
import { useRef } from 'react'; import { isNonEmptyString } from '@sniptt/guards'; import { Key } from 'ts-key-enum'; import { IconPlus } from '@/ui/display/icon'; import { IconComponent } from '@/ui/display/icon/types/IconComponent'; import { DropdownMenuItemsContainer } from '@/ui/layout/dropdown/components/Dropdown...
2,090
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker/components/__stories__/SingleEntitySelect.stories.tsx
import { expect } from '@storybook/jest'; import { Meta, StoryObj } from '@storybook/react'; import { userEvent, within } from '@storybook/testing-library'; import { IconUserCircle } from '@/ui/display/icon'; import { useRecoilScopedValue } from '@/ui/utilities/recoil-scope/hooks/useRecoilScopedValue'; import { Compon...
2,091
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker/components
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker/components/skeletons/DropdownMenuSkeletonItem.tsx
import Skeleton, { SkeletonTheme } from 'react-loading-skeleton'; import { useTheme } from '@emotion/react'; import styled from '@emotion/styled'; const StyledDropdownMenuSkeletonContainer = styled.div` --horizontal-padding: ${({ theme }) => theme.spacing(1)}; --vertical-padding: ${({ theme }) => theme.spacing(2)}...
2,092
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker/constants/index.ts
export const CreateButtonId = 'create-button'; export const EmptyButtonId = 'empty-button';
2,093
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker/hooks/useEntitySelectScroll.ts
import scrollIntoView from 'scroll-into-view'; import { Key } from 'ts-key-enum'; import { useScopedHotkeys } from '@/ui/utilities/hotkey/hooks/useScopedHotkeys'; import { useRecoilScopedState } from '@/ui/utilities/recoil-scope/hooks/useRecoilScopedState'; import { CreateButtonId } from '../constants'; import { Rela...
2,094
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker/hooks/useEntitySelectSearch.ts
import debounce from 'lodash.debounce'; import { useRecoilScopedState } from '@/ui/utilities/recoil-scope/hooks/useRecoilScopedState'; import { RelationPickerRecoilScopeContext } from '../states/recoil-scope-contexts/RelationPickerRecoilScopeContext'; import { relationPickerPreselectedIdScopedState } from '../states/...
2,095
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker/states/relationPickerPreselectedIdScopedState.ts
import { atomFamily } from 'recoil'; export const relationPickerPreselectedIdScopedState = atomFamily< string, string >({ key: 'relationPickerPreselectedIdScopedState', default: (param) => param, });
2,096
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker/states/relationPickerSearchFilterScopedState.ts
import { atomFamily } from 'recoil'; export const relationPickerSearchFilterScopedState = atomFamily<string, string>( { key: 'relationPickerSearchFilterScopedState', default: '', }, );
2,097
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker/states
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker/states/recoil-scope-contexts/RelationPickerRecoilScopeContext.ts
import { createContext } from 'react'; export const RelationPickerRecoilScopeContext = createContext<string | null>( 'relation-picker-context', );
2,098
0
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker
petrpan-code/twentyhq/twenty/front/src/modules/ui/input/relation-picker/types/EntityForSelect.ts
import { AvatarType } from '@/users/components/Avatar'; export type EntityForSelect = { id: string; name: string; avatarUrl?: string; avatarType?: AvatarType; record: any; };
2,099