repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Position/Position.tsx
packages/fuselage/src/components/Position/Position.tsx
import type { UsePositionOptions } from '@rocket.chat/fuselage-hooks'; import { usePosition } from '@rocket.chat/fuselage-hooks'; import type { RefObject, ReactElement } from 'react'; import { useRef, useMemo, cloneElement, useState, useEffect } from 'react'; import { createPortal } from 'react-dom'; import type { Box...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Position/Position.stories.tsx
packages/fuselage/src/components/Position/Position.stories.tsx
import type { StoryFn, Meta } from '@storybook/react-webpack5'; import { useRef } from 'react'; import { Tile } from '../Tile'; import Position from './Position'; export default { title: 'Layout/Position', component: Position, parameters: { layout: 'centered', }, } satisfies Meta<typeof Position>; const...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Position/index.ts
packages/fuselage/src/components/Position/index.ts
export { default as Position, type PositionProps } from './Position';
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/States/StatesTitle.tsx
packages/fuselage/src/components/States/StatesTitle.tsx
import type { AllHTMLAttributes, ReactNode } from 'react'; export type StatesTitleProps = { children?: ReactNode; } & AllHTMLAttributes<HTMLHeadingElement>; const StatesTitle = ({ children, ...props }: StatesTitleProps) => ( <h3 {...props} className='rcx-states__title'> {children} </h3> ); export default S...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/States/StatesSubtitle.tsx
packages/fuselage/src/components/States/StatesSubtitle.tsx
import type { AllHTMLAttributes, ReactNode } from 'react'; export type StatesSubtitleProps = { children?: ReactNode; } & AllHTMLAttributes<HTMLDivElement>; const StatesSubtitle = ({ children, ...props }: StatesSubtitleProps) => ( <div {...props} className='rcx-states__subtitle'> {children} </div> ); export...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/States/StatesSuggestionListItem.tsx
packages/fuselage/src/components/States/StatesSuggestionListItem.tsx
import type { AllHTMLAttributes, ReactNode } from 'react'; export type StatesSuggestionListItemProps = { children?: ReactNode; } & AllHTMLAttributes<HTMLLIElement>; const StatesSuggestionListItem = ({ children, ...props }: StatesSuggestionListItemProps) => ( <li {...props} className='rcx-states__list-item'> ...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/States/StatesSuggestion.tsx
packages/fuselage/src/components/States/StatesSuggestion.tsx
import type { ReactNode, AllHTMLAttributes } from 'react'; export type StatesSuggestionProps = { children?: ReactNode; } & AllHTMLAttributes<HTMLDivElement>; const StatesSuggestion = ({ children, ...props }: StatesSuggestionProps) => ( <div {...props} className='rcx-states__suggestion'> {children} </div> );...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/States/StatesActions.tsx
packages/fuselage/src/components/States/StatesActions.tsx
import type { ButtonGroupProps } from '../ButtonGroup'; import { ButtonGroup } from '../ButtonGroup'; export type StatesActionsProps = ButtonGroupProps; const StatesActions = (props: StatesActionsProps) => <ButtonGroup {...props} />; export default StatesActions;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/States/StatesAction.tsx
packages/fuselage/src/components/States/StatesAction.tsx
import { Button, type ButtonProps } from '../Button'; export type StatesActionProps = ButtonProps; const StatesAction = ({ primary = true, ...props }: StatesActionProps) => ( <Button {...props} primary={primary} /> ); export default StatesAction;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/States/StatesIcon.tsx
packages/fuselage/src/components/States/StatesIcon.tsx
import { Icon, type IconProps } from '../Icon'; export type StatesIconProps = { variation?: 'danger' | 'success' | 'warning' | 'primary'; } & IconProps; const StatesIcon = ({ variation, ...props }: StatesIconProps) => ( <Icon {...props} rcx-states__icon className={variation && `rcx-states__icon--${var...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/States/StatesLink.tsx
packages/fuselage/src/components/States/StatesLink.tsx
import type { AllHTMLAttributes } from 'react'; import { Box, type BoxProps } from '../Box'; export type StatesLinkProps = BoxProps & AllHTMLAttributes<HTMLAnchorElement>; const StatesLink = (props: StatesLinkProps) => ( <Box is='a' rcx-states__link {...props} /> ); export default StatesLink;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/States/States.tsx
packages/fuselage/src/components/States/States.tsx
import type { AllHTMLAttributes, ReactNode } from 'react'; export type StatesProps = { children?: ReactNode; } & AllHTMLAttributes<HTMLDivElement>; const States = ({ children, ...props }: StatesProps) => ( <div {...props} className='rcx-states'> {children} </div> ); export default States;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/States/StatesSuggestionText.tsx
packages/fuselage/src/components/States/StatesSuggestionText.tsx
import type { AllHTMLAttributes, ReactNode } from 'react'; export type StatesSuggestionTextProps = { children?: ReactNode; } & AllHTMLAttributes<HTMLDivElement>; const StatesSuggestionText = ({ children, ...props }: StatesSuggestionTextProps) => ( <div {...props} className='rcx-states__suggestion-text'> {...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/States/States.stories.tsx
packages/fuselage/src/components/States/States.stories.tsx
import type { Meta } from '@storybook/react-webpack5'; import { Box } from '../Box'; import { Icon } from '../Icon'; import { States, StatesSubtitle, StatesIcon, StatesTitle, StatesSuggestionList, StatesSuggestionListItem, StatesSuggestion, StatesSuggestionText, StatesActions, StatesAction, Stat...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/States/StatesSuggestionList.tsx
packages/fuselage/src/components/States/StatesSuggestionList.tsx
import type { AllHTMLAttributes, ReactNode } from 'react'; export type StatesSuggestionListProps = { children?: ReactNode; } & AllHTMLAttributes<HTMLUListElement>; const StatesSuggestionList = ({ children, ...props }: StatesSuggestionListProps) => ( <ul {...props} className='rcx-states__list'> {children} ...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/States/index.ts
packages/fuselage/src/components/States/index.ts
export { default as States, type StatesProps } from './States'; export { default as StatesIcon, type StatesIconProps } from './StatesIcon'; export { default as StatesAction, type StatesActionProps, } from './StatesAction'; export { default as StatesActions, type StatesActionsProps, } from './StatesActions'; exp...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/States/States.spec.tsx
packages/fuselage/src/components/States/States.spec.tsx
import { render } from '../../testing'; import States from './States'; describe('[States Component]', () => { it('renders without crashing', () => { render(<States />); }); });
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Menu/Menu.stories.tsx
packages/fuselage/src/components/Menu/Menu.stories.tsx
import type { StoryFn, Meta } from '@storybook/react-webpack5'; import { action } from 'storybook/actions'; import { Box } from '../Box'; import { Icon } from '../Icon'; import Menu from './Menu'; export default { title: 'Navigation/Menu', component: Menu, parameters: { layout: 'centered', }, decorator...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Menu/Menu.spec.tsx
packages/fuselage/src/components/Menu/Menu.spec.tsx
import { composeStories } from '@storybook/react-webpack5'; import { screen, waitFor, waitForElementToBeRemoved, } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { withResizeObserverMock } from 'testing-utils/mocks/withResizeObserverMock'; import { render } from '../.....
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Menu/Menu.tsx
packages/fuselage/src/components/Menu/Menu.tsx
import type { UsePositionOptions } from '@rocket.chat/fuselage-hooks'; import type { Keys as IconName } from '@rocket.chat/icons'; import type { ComponentType, ReactNode } from 'react'; import { useRef, useCallback, useEffect } from 'react'; import type { BoxProps } from '../Box'; import { IconButton } from '../Button...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Menu/index.ts
packages/fuselage/src/components/Menu/index.ts
export { default as Menu, type MenuProps } from './Menu'; export * from './V2';
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Menu/V2/MenuOption.tsx
packages/fuselage/src/components/Menu/V2/MenuOption.tsx
import type { Ref, ReactNode, MouseEvent, AllHTMLAttributes } from 'react'; import { forwardRef, memo } from 'react'; import { prevent } from '../../../helpers/prevent'; import type { BoxProps } from '../../Box'; export type MenuOptionProps = { is?: BoxProps['is']; id?: string; children?: ReactNode; focus?: b...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Menu/V2/Menu.stories.tsx
packages/fuselage/src/components/Menu/V2/Menu.stories.tsx
import type { StoryFn, Meta } from '@storybook/react-webpack5'; import type { ReactNode } from 'react'; import { forwardRef, useState } from 'react'; import { Box } from '../../Box'; import type { IconButtonProps } from '../../Button'; import { IconButton } from '../../Button'; import { ButtonGroup } from '../../Butto...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Menu/V2/MenuDropdown.tsx
packages/fuselage/src/components/Menu/V2/MenuDropdown.tsx
import { useRef } from 'react'; import type { AriaMenuProps } from 'react-aria'; import { useMenu } from 'react-aria'; import { useTreeState } from 'react-stately'; import MenuItem from './MenuItem'; import MenuSection from './MenuSection'; function MenuDropDown<T extends object>(props: AriaMenuProps<T>) { const st...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Menu/V2/MenuSection.tsx
packages/fuselage/src/components/Menu/V2/MenuSection.tsx
import type { Node } from '@react-types/shared'; import { useMenuSection, useSeparator } from 'react-aria'; import type { TreeState } from 'react-stately'; import { Box } from '../../Box'; import { Divider } from '../../Divider'; import { OptionTitle } from '../../Option'; import MenuItem from './MenuItem'; type Men...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Menu/V2/Menu.tsx
packages/fuselage/src/components/Menu/V2/Menu.tsx
import type { UsePositionOptions } from '@rocket.chat/fuselage-hooks'; import type { ElementType, ReactElement } from 'react'; import { cloneElement, useRef } from 'react'; import type { AriaMenuProps } from 'react-aria'; import { useButton, useMenuTrigger } from 'react-aria'; import { createPortal } from 'react-dom'; ...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Menu/V2/index.ts
packages/fuselage/src/components/Menu/V2/index.ts
export { default as MenuV2, type MenuProps as MenuV2Props } from './Menu'; export { default as MenuItem, type MenuItemProps } from './stately/MenuItem'; export { default as MenuSection, type MenuSectionProps, } from './stately/MenuSection'; export { OptionAvatar as MenuItemAvatar, type OptionAvatarProps as Menu...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Menu/V2/MenuItem.tsx
packages/fuselage/src/components/Menu/V2/MenuItem.tsx
import type { Node } from '@react-types/shared'; import type { ReactNode } from 'react'; import { useRef } from 'react'; import { mergeProps, useMenuItem } from 'react-aria'; import type { TreeState } from 'react-stately'; import { MenuItemDescription } from '.'; import type { MenuOptionProps } from './MenuOption'; im...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Menu/V2/MenuPopover.tsx
packages/fuselage/src/components/Menu/V2/MenuPopover.tsx
import { useBreakpoints } from '@rocket.chat/fuselage-hooks'; import type { ReactNode } from 'react'; import type { AriaPopoverProps } from 'react-aria'; import type { OverlayTriggerState } from 'react-stately'; import { DropdownDesktop } from '../../Dropdown/DropdownDesktop'; import { DropdownMobile } from '../../Dro...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Menu/V2/stately/PartialNode.tsx
packages/fuselage/src/components/Menu/V2/stately/PartialNode.tsx
import { type Key, type ReactElement, type ReactNode } from 'react'; export interface PartialNode<T> { 'type'?: string; 'key'?: Key; 'value'?: T; 'element'?: ReactElement; 'wrapper'?: (element: ReactElement) => ReactElement; 'rendered'?: ReactNode; 'textValue'?: string; 'aria-label'?: string; 'index'...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Menu/V2/stately/MenuSection.tsx
packages/fuselage/src/components/Menu/V2/stately/MenuSection.tsx
import type { SectionProps } from '@react-types/shared'; import { Children } from 'react'; import type { PartialNode } from './PartialNode'; export type MenuSectionProps<T> = SectionProps<T>; function MenuSection<T>(_props: MenuSectionProps<T>) { return null; } MenuSection.getCollectionNode = function* getCollect...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Menu/V2/stately/MenuItem.tsx
packages/fuselage/src/components/Menu/V2/stately/MenuItem.tsx
import type { ItemProps } from '@react-types/shared'; import { Children, type ReactElement } from 'react'; import type { PartialNode } from './PartialNode'; export type MenuItemProps<T> = ItemProps<T>; function MenuItem<T>(_props: MenuItemProps<T>) { return null; } MenuItem.getCollectionNode = function* getCollec...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Menu/V2/helpers/helpers.ts
packages/fuselage/src/components/Menu/V2/helpers/helpers.ts
import type { UsePositionOptions } from '@rocket.chat/fuselage-hooks'; type ReactAriaPlacement = | 'bottom' | 'bottom left' | 'bottom right' | 'bottom start' | 'bottom end' | 'top' | 'top left' | 'top right' | 'top start' | 'top end' | 'left' | 'left top' | 'left bottom' | 'start' | 'star...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/NumberInput/NumberInput.spec.tsx
packages/fuselage/src/components/NumberInput/NumberInput.spec.tsx
import { composeStories } from '@storybook/react-webpack5'; import { axe } from 'jest-axe'; import { render } from '../../testing'; import * as stories from './NumberInput.stories'; const { Default } = composeStories(stories); describe('[NumberInput Component]', () => { it('renders without crashing', () => { ...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/NumberInput/NumberInput.stories.tsx
packages/fuselage/src/components/NumberInput/NumberInput.stories.tsx
import type { StoryFn, Meta } from '@storybook/react-webpack5'; import { PropsVariationSection } from '../../../.storybook/helpers'; import { Icon } from '../Icon'; import NumberInput from './NumberInput'; export default { title: 'Inputs/NumberInput', component: NumberInput, } satisfies Meta<typeof NumberInput>;...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/NumberInput/NumberInput.tsx
packages/fuselage/src/components/NumberInput/NumberInput.tsx
import { forwardRef } from 'react'; import { InputBox, type InputBoxProps } from '../InputBox'; export type NumberInputProps = Omit<InputBoxProps, 'type'>; /** * An input for numbers. */ const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>( function NumberInput(props, ref) { return <InputBox ty...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/NumberInput/index.ts
packages/fuselage/src/components/NumberInput/index.ts
export { default as NumberInput, type NumberInputProps } from './NumberInput';
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PasswordInput/PasswordInput.tsx
packages/fuselage/src/components/PasswordInput/PasswordInput.tsx
import { useToggle } from '@rocket.chat/fuselage-hooks'; import { forwardRef } from 'react'; import { Icon } from '../Icon'; import { InputBox, type InputBoxProps } from '../InputBox'; // TODO: fix a11y issues export type PasswordInputProps = Omit<InputBoxProps, 'type'>; const PasswordInput = forwardRef<HTMLInputEl...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PasswordInput/PasswordInput.spec.tsx
packages/fuselage/src/components/PasswordInput/PasswordInput.spec.tsx
import { composeStories } from '@storybook/react-webpack5'; import { axe } from 'jest-axe'; import { render } from '../../testing'; import * as stories from './PasswordInput.stories'; const { Default } = composeStories(stories); describe('[PasswordInput Component]', () => { it('renders without crashing', () => { ...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PasswordInput/PasswordInput.stories.tsx
packages/fuselage/src/components/PasswordInput/PasswordInput.stories.tsx
import type { Meta, StoryFn } from '@storybook/react-webpack5'; import { PropsVariationSection } from '../../../.storybook/helpers'; import { Icon } from '../Icon'; import PasswordInput from './PasswordInput'; export default { title: 'Inputs/PasswordInput', component: PasswordInput, } satisfies Meta<typeof Passw...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PasswordInput/index.ts
packages/fuselage/src/components/PasswordInput/index.ts
export { default as PasswordInput, type PasswordInputProps, } from './PasswordInput';
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Pagination/Pagination.stories.tsx
packages/fuselage/src/components/Pagination/Pagination.stories.tsx
import type { StoryFn, Meta } from '@storybook/react-webpack5'; import { action } from 'storybook/actions'; import Pagination from './Pagination'; export default { title: 'Navigation/Pagination', component: Pagination, } satisfies Meta<typeof Pagination>; export const Default: StoryFn<typeof Pagination> = () => ...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Pagination/Pagination.spec.tsx
packages/fuselage/src/components/Pagination/Pagination.spec.tsx
import { render } from '../../testing'; import Pagination from './Pagination'; describe('[Pagination Component]', () => { it('renders without crashing', () => { render(<Pagination count={0} />); }); });
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Pagination/index.ts
packages/fuselage/src/components/Pagination/index.ts
export { default as Pagination, type PaginationProps } from './Pagination';
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Pagination/Pagination.tsx
packages/fuselage/src/components/Pagination/Pagination.tsx
import type { Dispatch, SetStateAction } from 'react'; import { useMemo } from 'react'; import { Box, type BoxProps } from '../Box'; import { Chevron } from '../Chevron'; type ItemsPerPage = 25 | 50 | 100; export type PaginationProps = BoxProps & { count: number; current?: number; divider?: boolean; itemsPer...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Slider/Slider.tsx
packages/fuselage/src/components/Slider/Slider.tsx
import { css } from '@rocket.chat/css-in-js'; import type { AriaAttributes } from 'react'; import { useMemo, useRef } from 'react'; import type { AriaSliderProps } from 'react-aria'; import { useNumberFormatter, useSlider } from 'react-aria'; import { useSliderState } from 'react-stately'; import { useStyle } from '.....
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Slider/SliderHead.tsx
packages/fuselage/src/components/Slider/SliderHead.tsx
import { css } from '@rocket.chat/css-in-js'; import type { LabelHTMLAttributes, OutputHTMLAttributes } from 'react'; import type { SliderState } from 'react-stately'; import { useStyle } from '../../hooks/useStyle'; import { Label } from '../Label'; type SliderHeadProps = { state: SliderState; labelProps: Omit<L...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Slider/Slider.spec.tsx
packages/fuselage/src/components/Slider/Slider.spec.tsx
import { composeStories } from '@storybook/react-webpack5'; import { screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import { render } from '../../testing'; import * as stories from './Slider.stories'; const { Default, WithLabel, MultiThumb, WithDefaultValue } = compose...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Slider/Slider.stories.tsx
packages/fuselage/src/components/Slider/Slider.stories.tsx
import type { Meta, StoryFn } from '@storybook/react-webpack5'; import { useState } from 'react'; import { screen, userEvent } from 'storybook/test'; import { Box } from '../Box'; import Slider from './Slider'; export default { title: 'Inputs/Slider', component: Slider, } satisfies Meta<typeof Slider>; const Te...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Slider/index.ts
packages/fuselage/src/components/Slider/index.ts
export { default as Slider, type SliderProps } from './Slider';
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Slider/SliderThumb.tsx
packages/fuselage/src/components/Slider/SliderThumb.tsx
import { css } from '@rocket.chat/css-in-js'; import { useRef } from 'react'; import { mergeProps, useFocusRing, useSliderThumb, VisuallyHidden, } from 'react-aria'; import { Palette } from '../../Theme'; import { useStyle } from '../../hooks/useStyle'; export const SliderThumb = (props: any) => { const { s...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Slider/SliderTrack.tsx
packages/fuselage/src/components/Slider/SliderTrack.tsx
import { css } from '@rocket.chat/css-in-js'; import type { DOMAttributes, MutableRefObject, ReactNode } from 'react'; import { useMemo } from 'react'; import type { SliderState } from 'react-stately'; import { Palette } from '../../Theme'; import { useStyle } from '../../hooks/useStyle'; type SliderTrackProps = { ...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Option/Option.spec.tsx
packages/fuselage/src/components/Option/Option.spec.tsx
import { prevent } from '../../helpers/prevent'; import { render } from '../../testing'; import Option from './Option'; import OptionContent from './OptionContent'; jest.mock('../../helpers/prevent'); describe('Option', () => { it('renders without crashing', () => { render( <Option> <OptionConten...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Option/OptionInput.tsx
packages/fuselage/src/components/Option/OptionInput.tsx
import type { ReactNode } from 'react'; export type OptionInputProps = { children?: ReactNode; }; const OptionInput = (props: OptionInputProps) => ( <div className='rcx-option__input' {...props} /> ); export default OptionInput;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Option/OptionColumn.tsx
packages/fuselage/src/components/Option/OptionColumn.tsx
import type { ReactNode } from 'react'; export type OptionColumnProps = { children?: ReactNode; }; const OptionColumn = (props: OptionColumnProps) => ( <div className='rcx-option__column' {...props} /> ); export default OptionColumn;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Option/OptionMenu.tsx
packages/fuselage/src/components/Option/OptionMenu.tsx
import type { HTMLAttributes } from 'react'; export type OptionMenuProps = HTMLAttributes<HTMLDivElement>; const OptionMenu = (props: OptionMenuProps) => ( <div className='rcx-box--animated rcx-option__menu-wrapper' {...props} /> ); export default OptionMenu;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Option/CheckOption.tsx
packages/fuselage/src/components/Option/CheckOption.tsx
import { memo } from 'react'; import { CheckBox } from '../CheckBox'; import Option, { type OptionProps } from './Option'; export type CheckOptionProps = OptionProps; const CheckOption = ({ selected, children: label, ...options }: CheckOptionProps) => { return ( <Option label={label as string} selected=...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Option/OptionDescription.tsx
packages/fuselage/src/components/Option/OptionDescription.tsx
import type { ReactNode } from 'react'; export type OptionDescriptionProps = { children?: ReactNode; }; const OptionDescription = (props: OptionDescriptionProps) => ( <div className='rcx-option__description' {...props} /> ); export default OptionDescription;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Option/Option.stories.tsx
packages/fuselage/src/components/Option/Option.stories.tsx
import type { StoryFn, Meta } from '@storybook/react-webpack5'; import { action } from 'storybook/actions'; import { exampleAvatar, menuOptions } from '../../../.storybook/helpers'; import { Avatar } from '../Avatar'; import { Box } from '../Box'; import { Menu } from '../Menu'; import { MenuItem, MenuV2 } from '../Me...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Option/OptionIcon.tsx
packages/fuselage/src/components/Option/OptionIcon.tsx
import { Icon, type IconProps } from '../Icon'; import OptionColumn from './OptionColumn'; export type OptionIconProps = IconProps; const OptionIcon = (props: OptionIconProps) => ( <OptionColumn> <Icon size='x20' rcx-option__icon {...props} /> </OptionColumn> ); export default OptionIcon;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Option/OptionTitle.tsx
packages/fuselage/src/components/Option/OptionTitle.tsx
import type { ReactNode } from 'react'; export type OptionTitleProps = { children?: ReactNode; }; const OptionTitle = (props: OptionTitleProps) => ( <div className='rcx-option__title' {...props} /> ); export default OptionTitle;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Option/OptionAvatar.tsx
packages/fuselage/src/components/Option/OptionAvatar.tsx
import type { ReactNode } from 'react'; export type OptionAvatarProps = { children?: ReactNode; }; const OptionAvatar = (props: OptionAvatarProps) => ( <div className='rcx-option__avatar' {...props} /> ); export default OptionAvatar;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Option/OptionContent.tsx
packages/fuselage/src/components/Option/OptionContent.tsx
import type { HTMLAttributes } from 'react'; export type OptionContentProps = HTMLAttributes<HTMLDivElement>; const OptionContent = (props: OptionContentProps) => ( <div className='rcx-option__content' {...props} /> ); export default OptionContent;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Option/OptionSkeleton.tsx
packages/fuselage/src/components/Option/OptionSkeleton.tsx
import { Skeleton } from '../Skeleton'; import Option from './Option'; const OptionSkeleton = () => ( <Option> <Skeleton width='100%' /> </Option> ); export default OptionSkeleton;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Option/OptionDivider.tsx
packages/fuselage/src/components/Option/OptionDivider.tsx
import { Divider, type DividerProps } from '../Divider'; export type OptionDividerProps = DividerProps; const OptionDivider = (props: OptionDividerProps) => <Divider {...props} />; export default OptionDivider;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Option/OptionDescriptionBlock.tsx
packages/fuselage/src/components/Option/OptionDescriptionBlock.tsx
import type { ReactNode } from 'react'; export type OptionDescriptionBlockProps = { children?: ReactNode; }; const OptionDescriptionBlock = (props: OptionDescriptionBlockProps) => ( <div className='rcx-option__description-block' {...props} /> ); export default OptionDescriptionBlock;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Option/OptionHeader.tsx
packages/fuselage/src/components/Option/OptionHeader.tsx
import type { ReactNode } from 'react'; export type OptionHeaderProps = { children: ReactNode; }; const OptionHeader = ({ children }: OptionHeaderProps) => ( <div className='rcx-option__header'>{children}</div> ); export default OptionHeader;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Option/index.ts
packages/fuselage/src/components/Option/index.ts
export { default as CheckOption, type CheckOptionProps } from './CheckOption'; export { default as Option, type OptionProps } from './Option'; export { default as OptionAvatar, type OptionAvatarProps, } from './OptionAvatar'; export { default as OptionColumn, type OptionColumnProps, } from './OptionColumn'; exp...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Option/Option.tsx
packages/fuselage/src/components/Option/Option.tsx
import type { Ref, ReactNode, MouseEvent, AllHTMLAttributes } from 'react'; import { forwardRef, memo } from 'react'; import { prevent } from '../../helpers/prevent'; import type { BoxProps } from '../Box'; import type { IconProps } from '../Icon'; import OptionAvatar from './OptionAvatar'; import OptionColumn from '...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Contextualbar/ContextualbarSection.tsx
packages/fuselage/src/components/Contextualbar/ContextualbarSection.tsx
import { forwardRef, memo } from 'react'; import { Box, type BoxProps } from '../Box'; export type ContextualbarSectionProps = BoxProps; const ContextualbarSection = forwardRef<HTMLElement, ContextualbarSectionProps>( function ContextualbarSection(props, ref) { return ( <Box ref={ref} rcx...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Contextualbar/Contextualbar.spec.tsx
packages/fuselage/src/components/Contextualbar/Contextualbar.spec.tsx
import { composeStories } from '@storybook/react-webpack5'; import { axe, toHaveNoViolations } from 'jest-axe'; import { render } from '../../testing'; import * as stories from './Contextualbar.stories'; expect.extend(toHaveNoViolations); const testCases = Object.values(composeStories(stories)).map((Story) => [ S...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Contextualbar/ContextualbarTitle.tsx
packages/fuselage/src/components/Contextualbar/ContextualbarTitle.tsx
import { memo } from 'react'; import { Box, type BoxProps } from '../Box'; export type ContextualbarTitleProps = BoxProps; const ContextualbarTitle = (props: ContextualbarTitleProps) => ( <Box flexShrink={1} flexGrow={1} fontScale='h4' withTruncatedText {...props} /> ); export default memo(C...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Contextualbar/ContextualbarHeader.tsx
packages/fuselage/src/components/Contextualbar/ContextualbarHeader.tsx
import { memo } from 'react'; import { Box, type BoxProps } from '../Box'; import { Margins } from '../Margins'; export type ContextualbarHeaderProps = BoxProps; const ContextualbarHeader = ({ children, ...props }: ContextualbarHeaderProps) => ( <Box display='flex' alignItems='center' height='x56' ...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Contextualbar/ContextualbarFooter.tsx
packages/fuselage/src/components/Contextualbar/ContextualbarFooter.tsx
import { forwardRef, memo } from 'react'; import { Box } from '..'; import type { BoxProps } from '../Box'; export type ContextualbarFooterProps = BoxProps; const ContextualbarFooter = forwardRef<HTMLElement, ContextualbarFooterProps>( function ContextualbarFooter({ children, ...props }, ref) { return ( ...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Contextualbar/ContextualbarButton.tsx
packages/fuselage/src/components/Contextualbar/ContextualbarButton.tsx
import { memo } from 'react'; import { Button, type ButtonProps } from '../Button'; export type ContextualbarButtonProps = ButtonProps; const ContextualbarButton = (props: ContextualbarButtonProps) => ( <Button {...props} /> ); export default memo(ContextualbarButton);
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Contextualbar/ContextualbarSkeleton.tsx
packages/fuselage/src/components/Contextualbar/ContextualbarSkeleton.tsx
import { memo } from 'react'; import { Box, type BoxProps } from '../Box'; import { Skeleton } from '../Skeleton'; import Contextualbar from './Contextualbar'; import ContextualbarHeader from './ContextualbarHeader'; export type ContextualbarSkeletonProps = BoxProps; const ContextualbarSkeleton = (props: Contextual...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Contextualbar/Contextualbar.tsx
packages/fuselage/src/components/Contextualbar/Contextualbar.tsx
import { forwardRef, memo } from 'react'; import { Box } from '..'; import type { BoxProps } from '../Box'; export type ContextualbarProps = BoxProps; /** * The `Contextualbar` has the purpose to persist and input information about the scope of the related page. */ const Contextualbar = forwardRef<HTMLElement, Con...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Contextualbar/Contextualbar.stories.tsx
packages/fuselage/src/components/Contextualbar/Contextualbar.stories.tsx
import type { StoryFn, Meta } from '@storybook/react-webpack5'; import { action } from 'storybook/actions'; import { Box } from '../Box'; import { Button, IconButton } from '../Button'; import { ButtonGroup } from '../ButtonGroup'; import { Icon } from '../Icon'; import { InputBox } from '../InputBox'; import Context...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Contextualbar/ContextualbarActions.tsx
packages/fuselage/src/components/Contextualbar/ContextualbarActions.tsx
import { memo } from 'react'; import { ButtonGroup, type ButtonGroupProps } from '../ButtonGroup'; export type ContextualbarActionsProps = ButtonGroupProps; const ContextualbarActions = (props: ContextualbarActionsProps) => ( <ButtonGroup {...props} /> ); export default memo(ContextualbarActions);
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Contextualbar/ContextualbarContent.tsx
packages/fuselage/src/components/Contextualbar/ContextualbarContent.tsx
import { forwardRef, memo } from 'react'; import { Box, type BoxProps } from '../Box'; export type ContextualbarContentProps = BoxProps; const ContextualbarContent = forwardRef<HTMLElement, ContextualbarContentProps>( function ContextualbarContent(props, ref) { return ( <Box ref={ref} rcx...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Contextualbar/ContextualbarAction.tsx
packages/fuselage/src/components/Contextualbar/ContextualbarAction.tsx
import { memo } from 'react'; import type { IconProps } from '..'; import { IconButton } from '..'; import type { IconButtonProps } from '../Button/IconButton'; export type ContextualbarActionProps = { name: IconProps['name']; } & Omit<IconButtonProps, 'icon'>; const ContextualbarAction = ({ name, ...props }: Cont...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Contextualbar/index.ts
packages/fuselage/src/components/Contextualbar/index.ts
export { default as Contextualbar, type ContextualbarProps, } from './Contextualbar'; export { default as ContextualbarAction, type ContextualbarActionProps, } from './ContextualbarAction'; export { default as ContextualbarActions, type ContextualbarActionsProps, } from './ContextualbarActions'; export { ...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Contextualbar/ContextualbarIcon.tsx
packages/fuselage/src/components/Contextualbar/ContextualbarIcon.tsx
import { memo } from 'react'; import { Icon, type IconProps } from '../Icon'; export type ContextualbarIconProps = IconProps; const ContextualbarIcon = (props: ContextualbarIconProps) => ( <Icon {...props} pi={2} size='x24' /> ); export default memo(ContextualbarIcon);
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Contextualbar/ContextualbarEmptyContent.tsx
packages/fuselage/src/components/Contextualbar/ContextualbarEmptyContent.tsx
import { forwardRef, memo } from 'react'; import type { StatesIconProps } from '..'; import { StatesIcon, States, StatesTitle, StatesSubtitle } from '..'; import type { BoxProps } from '../Box'; import ContextualbarContent from './ContextualbarContent'; export type ContextualbarEmptyContentProps = BoxProps & { ico...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PaginatedSelect/PaginatedMultiSelectFiltered.tsx
packages/fuselage/src/components/PaginatedSelect/PaginatedMultiSelectFiltered.tsx
import type { FormEvent } from 'react'; import { useCallback, forwardRef } from 'react'; import { FlexItem } from '../Flex'; import { Input, type InputProps } from '../InputBox'; import type { PaginatedMultiSelectProps } from './PaginatedMultiSelect'; import PaginatedMultiSelect from './PaginatedMultiSelect'; export...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PaginatedSelect/PaginatedSelectFiltered.spec.tsx
packages/fuselage/src/components/PaginatedSelect/PaginatedSelectFiltered.spec.tsx
import { composeStories } from '@storybook/react-webpack5'; import { screen, waitFor } from '@testing-library/dom'; import userEvent from '@testing-library/user-event'; import { axe } from 'jest-axe'; import { VirtuosoMockContext } from 'react-virtuoso'; import { render } from '../../testing'; import { Option } from '...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PaginatedSelect/PaginatedSelectFiltered.tsx
packages/fuselage/src/components/PaginatedSelect/PaginatedSelectFiltered.tsx
import { useEffectEvent } from '@rocket.chat/fuselage-hooks'; import type { FormEvent } from 'react'; import { useMemo, forwardRef } from 'react'; import { Input } from '../InputBox'; import type { PaginatedSelectProps } from './PaginatedSelect'; import { PaginatedSelect } from './PaginatedSelect'; export type Pagin...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PaginatedSelect/PaginatedSelectFiltered.stories.tsx
packages/fuselage/src/components/PaginatedSelect/PaginatedSelectFiltered.stories.tsx
import type { StoryFn, Meta } from '@storybook/react-webpack5'; import { Option, OptionDescription } from '../Option'; import PaginatedSelectFiltered from './PaginatedSelectFiltered'; export default { title: 'Inputs/PaginatedSelectFiltered', component: PaginatedSelectFiltered, args: { placeholder: 'Placeho...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PaginatedSelect/PaginatedMultiSelectFiltered.stories.tsx
packages/fuselage/src/components/PaginatedSelect/PaginatedMultiSelectFiltered.stories.tsx
import type { StoryFn, Meta } from '@storybook/react-webpack5'; import { useArgs } from 'storybook/preview-api'; import PaginatedMultiSelectFiltered from './PaginatedMultiSelectFiltered'; export default { title: 'Inputs/PaginatedMultiSelectFiltered', component: PaginatedMultiSelectFiltered, args: { placehol...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PaginatedSelect/PaginatedSelect.spec.tsx
packages/fuselage/src/components/PaginatedSelect/PaginatedSelect.spec.tsx
import { screen } from '@testing-library/dom'; import { render } from '@testing-library/react'; import { PaginatedSelect } from './PaginatedSelect'; describe('[PaginatedSelect Component]', () => { test('should render placeholder when provided', () => { const placeholder = 'Select an option...'; const defaul...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PaginatedSelect/PaginatedSelectWrapper.tsx
packages/fuselage/src/components/PaginatedSelect/PaginatedSelectWrapper.tsx
import { forwardRef } from 'react'; import { Box, type BoxProps } from '../Box'; type PaginatedSelectWrapperProps = BoxProps; const PaginatedSelectWrapper = forwardRef< HTMLDivElement, PaginatedSelectWrapperProps >(function PaginatedSelectWrapper(props, ref) { return <Box is='div' rcx-select__wrapper ref={ref}...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PaginatedSelect/index.ts
packages/fuselage/src/components/PaginatedSelect/index.ts
export { default as PaginatedSelectFiltered, type PaginatedSelectFilteredProps, } from './PaginatedSelectFiltered'; export type { PaginatedMultiSelectOption } from './PaginatedMultiSelect'; export { default as PaginatedMultiSelectFiltered, type PaginatedMultiSelectFilteredProps, } from './PaginatedMultiSelectFi...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PaginatedSelect/PaginatedSelect.tsx
packages/fuselage/src/components/PaginatedSelect/PaginatedSelect.tsx
import { useEffectEvent, useResizeObserver } from '@rocket.chat/fuselage-hooks'; import { type ElementType, useState, useRef, useMemo } from 'react'; import type { OptionType, SelectOption, SelectProps } from '..'; import { prevent } from '../../helpers/prevent'; import { AnimatedVisibility } from '../AnimatedVisibili...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PaginatedSelect/PaginatedMultiSelect.tsx
packages/fuselage/src/components/PaginatedSelect/PaginatedMultiSelect.tsx
import { useEffectEvent, useResizeObserver } from '@rocket.chat/fuselage-hooks'; import { useState, useRef, type ComponentType, type ReactNode, type MouseEvent, type CSSProperties, } from 'react'; import { prevent } from '../../helpers/prevent'; import { AnimatedVisibility } from '../AnimatedVisibility'; i...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Banner/Banner.tsx
packages/fuselage/src/components/Banner/Banner.tsx
import { useBorderBoxSize, useButtonPattern, } from '@rocket.chat/fuselage-hooks'; import type { ReactNode, AllHTMLAttributes, HTMLAttributeAnchorTarget, MouseEvent, } from 'react'; import { useRef, useCallback, useMemo } from 'react'; import { composeClassNames as cx } from '../../helpers/composeClassName...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Banner/Banner.spec.tsx
packages/fuselage/src/components/Banner/Banner.spec.tsx
import { screen } from '@testing-library/react'; import { withResizeObserverMock } from 'testing-utils/mocks/withResizeObserverMock'; import { render } from '../../testing'; import Banner from './Banner'; withResizeObserverMock(); describe('[Banner Component]', () => { it('renders without crashing', () => { r...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Banner/Banner.stories.tsx
packages/fuselage/src/components/Banner/Banner.stories.tsx
import { action } from 'storybook/actions'; import { Icon } from '../Icon'; import Banner from './Banner'; export default { title: 'Feedback/Banner', component: Banner, }; export const _Banner = () => ( <Banner closeable icon={<Icon name='info' size={24} />} title='Sed ut perspiciatis unde' on...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Banner/index.ts
packages/fuselage/src/components/Banner/index.ts
export { default as Banner, type BannerProps } from './Banner';
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Tile/Tile.spec.tsx
packages/fuselage/src/components/Tile/Tile.spec.tsx
import { render } from '../../testing'; import Tile from './Tile'; describe('[Tile Component]', () => { it('renders without crashing', () => { render(<Tile />); }); });
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Tile/Tile.tsx
packages/fuselage/src/components/Tile/Tile.tsx
import { forwardRef } from 'react'; import { Box, type BoxProps } from '../Box'; export type TileProps = BoxProps; const Tile = forwardRef<HTMLElement, TileProps>(function Tile( { elevation = '1', padding = 16, ...props }, ref, ) { return ( <Box ref={ref} rcx-tile rcx-tile--elevation={ele...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false