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/Tile/Tile.stories.tsx | packages/fuselage/src/components/Tile/Tile.stories.tsx | import type { Meta } from '@storybook/react-webpack5';
import Tile from './Tile';
export default {
title: 'Containers/Tile',
component: Tile,
} satisfies Meta<typeof Tile>;
export const Default = () => <Tile>Content</Tile>;
export const Elevation0 = () => <Tile elevation='0' />;
export const Elevation1 = () =>... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Tile/index.ts | packages/fuselage/src/components/Tile/index.ts | export { default as Tile, type TileProps } from './Tile';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Label/Label.spec.tsx | packages/fuselage/src/components/Label/Label.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe } from 'jest-axe';
import { render } from '../../testing';
import * as stories from './Label.stories';
const testCases = Object.values(composeStories(stories)).map((Story) => [
Story.storyName || 'Story',
Story,
]);
describe('[Label Compon... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Label/Label.stories.tsx | packages/fuselage/src/components/Label/Label.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import Label from './Label';
import { LabelInfo } from './LabelInfo';
export default {
title: 'Inputs/Label',
component: Label,
} satisfies Meta<typeof Label>;
const Template: StoryFn<typeof Label> = (args) => (
<Label {...args}>Label</Label>
);
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Label/LabelInfo.tsx | packages/fuselage/src/components/Label/LabelInfo.tsx | import { Box } from '../Box';
import { Icon, type IconProps } from '../Icon';
export type LabelInfoProps = {
title: string;
id?: string;
} & Omit<IconProps, 'name'>;
export const LabelInfo = ({ title, id, ...props }: LabelInfoProps) => (
<Box is='span' mi={2} rcx-label__info>
<span hidden id={id}>
{ti... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Label/index.ts | packages/fuselage/src/components/Label/index.ts | export { default as Label, type LabelProps } from './Label';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Label/Label.tsx | packages/fuselage/src/components/Label/Label.tsx | import type { ElementType } from 'react';
import { createContext, forwardRef, useContext } from 'react';
import { Box, type BoxProps } from '../Box';
const LabelContext = createContext(false);
export type LabelProps = Omit<BoxProps, 'is'> & {
disabled?: boolean;
required?: boolean;
is?: (ElementType<any> & str... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Flex/FlexContainer.tsx | packages/fuselage/src/components/Flex/FlexContainer.tsx | import type { ReactNode } from 'react';
import { useCallback } from 'react';
import { BoxTransforms, useComposedBoxTransform } from '../Box/BoxTransforms';
export type FlexContainerProps = {
children?: ReactNode;
inline?: boolean;
direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse';
wrap?: 'no-wra... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Flex/FlexItem.tsx | packages/fuselage/src/components/Flex/FlexItem.tsx | import type { ReactNode } from 'react';
import { useCallback } from 'react';
import { BoxTransforms, useComposedBoxTransform } from '../Box/BoxTransforms';
export type FlexItemProps = {
children?: ReactNode;
order?: number;
grow?: number;
shrink?: number;
basis?: number | string | 'auto';
align?: 'auto' |... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Flex/Flex.spec.tsx | packages/fuselage/src/components/Flex/Flex.spec.tsx | import { render } from '../../testing';
import { FlexContainer, FlexItem } from '.';
describe('[Flex Component]', () => {
it('renders FlexContainer without crashing', () => {
render(<FlexContainer />);
});
it('renders FlexItem without crashing', () => {
render(<FlexItem />);
});
});
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Flex/Flex.stories.tsx | packages/fuselage/src/components/Flex/Flex.stories.tsx | import type { Meta } from '@storybook/react-webpack5';
import { Tile } from '../Tile';
import FlexContainer from './FlexContainer';
import FlexItem from './FlexItem';
export default {
title: 'Layout/Flex',
subcomponents: {
FlexContainer,
FlexItem,
},
} satisfies Meta;
export const Example = () => (
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Flex/index.ts | packages/fuselage/src/components/Flex/index.ts | import FlexContainer from './FlexContainer';
import FlexItem from './FlexItem';
export {
default as FlexContainer,
type FlexContainerProps,
} from './FlexContainer';
export { default as FlexItem, type FlexItemProps } from './FlexItem';
export const Flex = {
Container: FlexContainer,
Item: FlexItem,
};
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SearchInput/SearchInput.tsx | packages/fuselage/src/components/SearchInput/SearchInput.tsx | import type { ReactNode } from 'react';
import { forwardRef } from 'react';
import { InputBox, type InputBoxProps } from '../InputBox';
export type SearchInputProps = Omit<InputBoxProps, 'type'> & {
addon?: ReactNode;
error?: string;
};
/**
* An input for search queries.
*/
const SearchInput = forwardRef<HTMLI... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SearchInput/SearchInput.spec.tsx | packages/fuselage/src/components/SearchInput/SearchInput.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe } from 'jest-axe';
import { render } from '../../testing';
import * as stories from './SearchInput.stories';
const { Default } = composeStories(stories);
describe('[SearchInput 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/SearchInput/SearchInput.stories.tsx | packages/fuselage/src/components/SearchInput/SearchInput.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { PropsVariationSection } from '../../../.storybook/helpers';
import { Icon } from '../Icon';
import SearchInput from './SearchInput';
export default {
title: 'Inputs/SearchInput',
component: SearchInput,
} satisfies Meta<typeof SearchInput>;... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SearchInput/index.ts | packages/fuselage/src/components/SearchInput/index.ts | export { default as SearchInput, type SearchInputProps } from './SearchInput';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ButtonGroup/ButtonGroup.tsx | packages/fuselage/src/components/ButtonGroup/ButtonGroup.tsx | import type { HTMLAttributes } from 'react';
import { forwardRef } from 'react';
import { appendClassName } from '../../helpers/appendClassName';
import { patchChildren } from '../../helpers/patchChildren';
export type ButtonGroupProps = {
align?: 'start' | 'center' | 'end';
stretch?: boolean;
wrap?: boolean;
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ButtonGroup/ButtonGroup.stories.tsx | packages/fuselage/src/components/ButtonGroup/ButtonGroup.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { Button } from '../Button';
import ButtonGroup from './ButtonGroup';
export default {
title: 'Inputs/ButtonGroup',
component: ButtonGroup,
} satisfies Meta<typeof ButtonGroup>;
const Template: StoryFn<typeof ButtonGroup> = (args) => (
<Bu... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ButtonGroup/ButtonGroup.spec.tsx | packages/fuselage/src/components/ButtonGroup/ButtonGroup.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe } from 'jest-axe';
import { render } from '../../testing';
import * as stories from './ButtonGroup.stories';
const { Default } = composeStories(stories);
describe('[ButtonGroup 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/ButtonGroup/index.ts | packages/fuselage/src/components/ButtonGroup/index.ts | export { default as ButtonGroup, type ButtonGroupProps } from './ButtonGroup';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Dropdown/Dropdown.tsx | packages/fuselage/src/components/Dropdown/Dropdown.tsx | import type { UsePositionOptions } from '@rocket.chat/fuselage-hooks';
import { useMediaQuery } from '@rocket.chat/fuselage-hooks';
import type { ReactNode, RefObject } from 'react';
import { forwardRef } from 'react';
import { DropdownDesktopWrapper } from './DropdownDesktopWrapper';
import { DropdownMobile } from '.... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Dropdown/DropdownMobile.tsx | packages/fuselage/src/components/Dropdown/DropdownMobile.tsx | import type { ReactNode } from 'react';
import { forwardRef } from 'react';
import { Box, Tile } from '..';
export type DropdownMobileProps = {
children: ReactNode;
};
export const DropdownMobile = forwardRef<HTMLElement, DropdownMobileProps>(
function DropdownMobile({ 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/Dropdown/DropdownDesktopWrapper.tsx | packages/fuselage/src/components/Dropdown/DropdownDesktopWrapper.tsx | import type { UsePositionOptions } from '@rocket.chat/fuselage-hooks';
import { usePosition } from '@rocket.chat/fuselage-hooks';
import type { ReactNode, RefObject } from 'react';
import { forwardRef } from 'react';
import { DropdownDesktop } from './DropdownDesktop';
export type DropdownDesktopWrapperProps<T extend... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Dropdown/Dropdown.stories.tsx | packages/fuselage/src/components/Dropdown/Dropdown.stories.tsx | import type { Meta, StoryFn } from '@storybook/react-webpack5';
import { useRef } from 'react';
import { Box } from '../Box';
import { IconButton } from '../Button';
import { Option } from '../Option';
import Dropdown from './Dropdown';
export default {
title: 'Navigation/Dropdown',
component: Dropdown,
} satisf... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Dropdown/index.ts | packages/fuselage/src/components/Dropdown/index.ts | export { default as Dropdown, type DropdownProps } from './Dropdown';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Dropdown/DropdownDesktop.tsx | packages/fuselage/src/components/Dropdown/DropdownDesktop.tsx | import type { CSSProperties, ReactNode } from 'react';
import { forwardRef } from 'react';
import { Box, Tile } from '..';
export type DropdownDesktopProps = {
children: ReactNode;
maxWidth?: string;
maxHeight?: string;
overflowY?: CSSProperties['overflowY'];
style?: CSSProperties;
};
export const Dropdown... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Dropdown/Dropdown.spec.tsx | packages/fuselage/src/components/Dropdown/Dropdown.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 './Dropdown.stories';
const { Default } = composeStories(stories);
describe('[Dropdown Co... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/CardGrid/CardGrid.spec.tsx | packages/fuselage/src/components/CardGrid/CardGrid.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe } from 'jest-axe';
import { render } from '../../testing';
import * as stories from './CardGrid.stories';
const testCases = Object.values(composeStories(stories)).map((Story) => [
Story.storyName || 'Story',
Story,
]);
describe('[CardGrid ... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/CardGrid/CardGrid.tsx | packages/fuselage/src/components/CardGrid/CardGrid.tsx | import type { ReactNode } from 'react';
import { Children } from 'react';
import type { GridItemProps } from '../Grid';
import { Grid, GridItem } from '../Grid';
export type CardGridProps = {
children: ReactNode;
breakpoints?: GridItemProps;
};
const CardGrid = ({ children, breakpoints, ...props }: CardGridProps... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/CardGrid/CardGrid.stories.tsx | packages/fuselage/src/components/CardGrid/CardGrid.stories.tsx | import type { Meta, StoryFn } from '@storybook/react-webpack5';
import { Button } from '../Button';
import type { CardProps } from '../Card';
import { Card, CardBody, CardControls, CardHeader, CardTitle } from '../Card';
import { Icon } from '../Icon';
import CardGrid from './CardGrid';
export default {
title: 'Co... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/CardGrid/index.ts | packages/fuselage/src/components/CardGrid/index.ts | export { default as CardGrid, type CardGridProps } from './CardGrid';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Accordion/Accordion.stories.tsx | packages/fuselage/src/components/Accordion/Accordion.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { Box } from '../Box';
import Accordion from './Accordion';
import AccordionItem from './AccordionItem';
export default {
title: 'Containers/Accordion',
component: Accordion,
subcomponents: {
AccordionItem,
},
} satisfies Meta<typeof ... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Accordion/Accordion.tsx | packages/fuselage/src/components/Accordion/Accordion.tsx | import type { ReactNode } from 'react';
import { cx, cxx } from '../../helpers/composeClassNames';
import { StylingBox } from '../Box';
import type { StylingProps } from '../Box/stylingProps';
export type AccordionProps = {
children: ReactNode;
} & Partial<StylingProps>;
/**
* An `Accordion` allows users to toggl... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Accordion/AccordionItem.tsx | packages/fuselage/src/components/Accordion/AccordionItem.tsx | import { useToggle } from '@rocket.chat/fuselage-hooks';
import {
useId,
type KeyboardEvent,
type MouseEvent,
type ReactNode,
} from 'react';
import { cx, cxx } from '../../helpers/composeClassNames';
import { StylingBox } from '../Box';
import { Chevron } from '../Chevron';
export type AccordionItemProps = {... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Accordion/index.ts | packages/fuselage/src/components/Accordion/index.ts | export { default as Accordion, type AccordionProps } from './Accordion';
export {
default as AccordionItem,
type AccordionItemProps,
} from './AccordionItem';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Accordion/Accordion.spec.tsx | packages/fuselage/src/components/Accordion/Accordion.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe } from 'jest-axe';
import { render } from '../../testing';
import * as stories from './Accordion.stories';
const testCases = Object.values(composeStories(stories)).map((Story) => [
Story.storyName || 'Story',
Story,
]);
test.each(testCases... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/helpers.tsx | packages/fuselage/src/components/SidebarV2/helpers.tsx | import type { Decorator } from '@storybook/react-webpack5';
import { MenuV2 as Menu, MenuItem } from '../..';
import { Avatar } from '../Avatar';
import { Box } from '../Box';
import { IconButton } from '../Button';
import {
SidebarV2,
SidebarV2Accordion,
SidebarV2AccordionItem,
SidebarV2Actions,
SidebarV2B... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/Sidebar.spec.tsx | packages/fuselage/src/components/SidebarV2/Sidebar.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe } from 'jest-axe';
import { render } from '../../testing';
import * as stories from './Sidebar.stories';
const { Default } = composeStories(stories);
describe('[Sidebar Default story]', () => {
it('renders without crashing', () => {
rend... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarActions.tsx | packages/fuselage/src/components/SidebarV2/SidebarActions.tsx | import { forwardRef } from 'react';
import type { ButtonGroupProps } from '../ButtonGroup';
import { ButtonGroup } from '../ButtonGroup';
export type SidebarActionsProps = ButtonGroupProps;
const SidebarActions = forwardRef<HTMLDivElement, SidebarActionsProps>(
function SidebarActions(props, ref) {
return <But... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarLink.tsx | packages/fuselage/src/components/SidebarV2/SidebarLink.tsx | import type { Keys as Icons } from '@rocket.chat/icons';
import type { LinkHTMLAttributes, ReactNode } from 'react';
import { appendClassName } from '../../helpers/appendClassName';
import { patchChildren } from '../../helpers/patchChildren';
import { Icon } from '../Icon';
export type SidebarLinkProps = {
selected... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarCollapseGroup.tsx | packages/fuselage/src/components/SidebarV2/SidebarCollapseGroup.tsx | import type { HTMLAttributes, ReactNode } from 'react';
import { forwardRef } from 'react';
import { SidebarGroupTitle } from './SidebarGroupTitle';
import { useCollapse } from './hooks/useCollapse';
type SidebarCollapseGroupProps = {
expanded?: boolean;
defaultExpanded?: boolean;
tabIndex?: number;
title: st... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/Sidebar.stories.tsx | packages/fuselage/src/components/SidebarV2/Sidebar.stories.tsx | import type { Meta, StoryFn } from '@storybook/react-webpack5';
import { action } from 'storybook/actions';
import { IconButton, TextInput, Icon, Box } from '../..';
import {
SidebarV2 as Sidebar,
SidebarV2Accordion as SidebarAccordion,
SidebarV2AccordionItem as SidebarAccordionItem,
SidebarV2Banner as Sideba... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarAccordionItem.tsx | packages/fuselage/src/components/SidebarV2/SidebarAccordionItem.tsx | import type { HTMLAttributes, ReactNode } from 'react';
import { Chevron } from '../Chevron';
import { useCollapse } from './hooks/useCollapse';
export type SidebarAccordionItemProps = {
children?: ReactNode;
className?: string;
defaultExpanded?: boolean;
disabled?: boolean;
expanded?: boolean;
title: Re... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarButtonGroup.tsx | packages/fuselage/src/components/SidebarV2/SidebarButtonGroup.tsx | import type { ButtonGroupProps } from '../ButtonGroup';
import { ButtonGroup } from '../ButtonGroup';
export const SidebarButtonGroup = ({
align = 'end',
small = true,
...props
}: ButtonGroupProps) => <ButtonGroup align={align} small={small} {...props} />;
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarGroupTitle.tsx | packages/fuselage/src/components/SidebarV2/SidebarGroupTitle.tsx | import type { AriaAttributes, HTMLAttributes, ReactNode } from 'react';
import { Chevron } from '../Chevron';
type SidebarGroupTitleProps = {
expanded?: boolean;
title?: string;
titleId?: string;
badge?: ReactNode;
barProps?: AriaAttributes;
} & HTMLAttributes<HTMLDivElement>;
export const SidebarGroupTitle... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarDivider.tsx | packages/fuselage/src/components/SidebarV2/SidebarDivider.tsx | import { Divider } from '../Divider';
export const SidebarDivider = () => (
<Divider rcx-sidebar-v2--divider mbs={-2} mbe={0} />
);
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarSection.tsx | packages/fuselage/src/components/SidebarV2/SidebarSection.tsx | import type { HTMLAttributes } from 'react';
import { SidebarDivider } from './SidebarDivider';
export const SidebarSection = (props: HTMLAttributes<HTMLDivElement>) => (
<div>
<div className='rcx-box rcx-box--full rcx-sidebar-v2-section' {...props} />
<SidebarDivider />
</div>
);
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarBanner.tsx | packages/fuselage/src/components/SidebarV2/SidebarBanner.tsx | import type { AllHTMLAttributes, ReactNode } from 'react';
import { IconButton } from '../Button';
type VariantType = 'default' | 'info' | 'success' | 'warning' | 'danger';
type SidebarBannerProps = {
title?: ReactNode;
linkText?: string;
linkProps?: AllHTMLAttributes<HTMLAnchorElement>;
onClick?: () => void... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/index.ts | packages/fuselage/src/components/SidebarV2/index.ts | export {
Sidebar as SidebarV2,
type SidebarProps as SidebarV2Props,
} from './Sidebar';
export {
default as SidebarV2Accordion,
type SidebarAccordionProps as SidebarV2AccordionProps,
} from './SidebarAccordion';
export {
default as SidebarV2AccordionItem,
type SidebarAccordionItemProps as SidebarV2Accordion... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/Sidebar.tsx | packages/fuselage/src/components/SidebarV2/Sidebar.tsx | import { forwardRef, type HTMLAttributes } from 'react';
export type SidebarProps = {
collapsed?: boolean;
} & HTMLAttributes<HTMLElement>;
export const Sidebar = forwardRef<HTMLElement, SidebarProps>(
({ collapsed, className, ...props }, ref) => (
<nav
ref={ref}
className={[
'rcx-box rcx-... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarAccordion.tsx | packages/fuselage/src/components/SidebarV2/SidebarAccordion.tsx | import type { HTMLAttributes } from 'react';
export type SidebarAccordionProps = HTMLAttributes<HTMLDivElement>;
const SidebarAccordion = ({
className,
children,
...props
}: SidebarAccordionProps) => (
<div
className={[
'rcx-box rcx-box--full rcx-sidebar-v2-accordion rcx-box--animated',
classN... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarAction.tsx | packages/fuselage/src/components/SidebarV2/SidebarAction.tsx | import { forwardRef } from 'react';
import { IconButton } from '../Button';
import type { IconButtonProps } from '../Button/IconButton';
export type SidebarActionProps = IconButtonProps;
const SidebarAction = forwardRef<HTMLElement, SidebarActionProps>(
function SidebarAction(props, ref) {
return <IconButton s... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarFooter/SidebarFooter.tsx | packages/fuselage/src/components/SidebarV2/SidebarFooter/SidebarFooter.tsx | import type { HTMLAttributes } from 'react';
export const SidebarFooter = ({
children,
...props
}: HTMLAttributes<HTMLElement>) => (
<footer className='rcx-sidebar-v2-footer' {...props}>
{children}
</footer>
);
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarFooter/SidebarFooterContent.tsx | packages/fuselage/src/components/SidebarV2/SidebarFooter/SidebarFooterContent.tsx | import { Box, type BoxProps } from '../../Box';
export const SidebarFooterContent = ({ children, ...props }: BoxProps) => (
<Box className='rcx-sidebar-v2-footer__content' {...props}>
{children}
</Box>
);
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarFooter/index.ts | packages/fuselage/src/components/SidebarV2/SidebarFooter/index.ts | export { SidebarFooter as SidebarV2Footer } from './SidebarFooter';
export { SidebarFooterContent as SidebarV2FooterContent } from './SidebarFooterContent';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItemAvatarWrapper.tsx | packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItemAvatarWrapper.tsx | import type { HTMLAttributes } from 'react';
export const SidebarItemAvatarWrapper = ({
className,
...props
}: HTMLAttributes<HTMLDivElement>) => (
<div
className={['rcx-box rcx-box--full rcx-sidebar-v2-item__avatar', className]
.filter(Boolean)
.join(' ')}
{...props}
/>
);
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItemBadge.tsx | packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItemBadge.tsx | import { Badge, type BadgeProps } from '../../Badge';
export const SidebarItemBadge = ({ className, ...props }: BadgeProps) => (
<Badge
className={['rcx-box rcx-box--full rcx-sidebar-v2-item__badge', className]
.filter(Boolean)
.join(' ')}
{...props}
/>
);
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItem.stories.tsx | packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItem.stories.tsx | import type { Meta, StoryFn } from '@storybook/react-webpack5';
import { SidebarV2ListItem as SidebarListItem } from '../..';
import {
GenericCondensedItem,
GenericExtendedItem,
GenericMediumItem,
decorators,
} from '../helpers';
export default {
title: 'Navigation/SidebarV2/Item',
component: SidebarListI... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItemStatusBullet.tsx | packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItemStatusBullet.tsx | import type { StatusBulletProps } from '../../StatusBullet';
import { StatusBullet } from '../../StatusBullet';
export const SidebarItemStatusBullet = (props: StatusBulletProps) => (
<div className='rcx-box rcx-box--full rcx-sidebar-v2-item__status-bullet'>
<StatusBullet {...props} />
</div>
);
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItemCol.tsx | packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItemCol.tsx | import type { HTMLAttributes } from 'react';
export const SidebarItemCol = ({
className,
...props
}: HTMLAttributes<HTMLDivElement>) => (
<div
className={['rcx-box rcx-box--full rcx-sidebar-v2-item__col', className]
.filter(Boolean)
.join(' ')}
{...props}
/>
);
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItemContent.tsx | packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItemContent.tsx | import type { HTMLAttributes } from 'react';
export const SidebarItemContent = ({
className,
unread,
...props
}: { unread?: boolean } & HTMLAttributes<HTMLDivElement>) => (
<div
className={[
'rcx-box rcx-box--full rcx-sidebar-v2-item__subtitle',
unread && 'rcx-sidebar-v2-item__subtitle--highlig... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItemAction.tsx | packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItemAction.tsx | import type { Keys as Icons } from '@rocket.chat/icons';
import type { HTMLAttributes } from 'react';
import { Icon } from '../../Icon';
export const SidebarItemAction = ({
children,
className,
icon = 'plus-small',
...props
}: {
onClick: (e: Event) => void;
icon?: Icons;
} & HTMLAttributes<HTMLDivElement>... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItemTitle.tsx | packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItemTitle.tsx | import type { HTMLAttributes } from 'react';
export const SidebarItemTitle = ({
className,
unread,
...props
}: { unread?: boolean } & HTMLAttributes<HTMLDivElement>) => (
<div
className={[
'rcx-box rcx-box--full rcx-sidebar-v2-item__title',
unread && 'rcx-sidebar-v2-item__title--highlighted',
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItemRow.tsx | packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItemRow.tsx | import type { HTMLAttributes } from 'react';
export const SidebarItemRow = ({
className,
...props
}: HTMLAttributes<HTMLDivElement>) => (
<div
className={['rcx-box rcx-box--full rcx-sidebar-v2-item__row', className]
.filter(Boolean)
.join(' ')}
{...props}
/>
);
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItemTimestamp.tsx | packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItemTimestamp.tsx | import type { HTMLAttributes } from 'react';
export const SidebarItemTimestamp = ({
className,
unread,
...props
}: { unread?: boolean } & HTMLAttributes<HTMLDivElement>) => (
<div
className={[
'rcx-box rcx-box--full rcx-sidebar-v2-item__timestamp',
unread && 'rcx-sidebar-v2-item__timestamp--hig... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarListItem.tsx | packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarListItem.tsx | import type { HTMLAttributes } from 'react';
import { forwardRef } from 'react';
type SidebarListItemProps = {
selected?: boolean;
} & HTMLAttributes<HTMLDivElement>;
export const SidebarListItem = forwardRef<HTMLDivElement, SidebarListItemProps>(
({ className, children, ...props }, ref) => (
<div
ref={... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItemIcon.tsx | packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItemIcon.tsx | import type { Keys as IconKeys } from '@rocket.chat/icons';
import { isValidElement, type ReactElement } from 'react';
import { Icon, type IconProps } from '../../Icon';
type SidebarItemIconProps = Omit<IconProps, 'name'> & {
icon: IconKeys | ReactElement;
highlighted?: boolean;
};
export const SidebarItemIcon =... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarItem/index.ts | packages/fuselage/src/components/SidebarV2/SidebarItem/index.ts | export { SidebarItem as SidebarV2Item } from './SidebarItem';
export { SidebarItemAction as SidebarV2ItemAction } from './SidebarItemAction';
export { SidebarItemAvatarWrapper as SidebarV2ItemAvatarWrapper } from './SidebarItemAvatarWrapper';
export { SidebarItemBadge as SidebarV2ItemBadge } from './SidebarItemBadge';
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItem.tsx | packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItem.tsx | import type { AllHTMLAttributes, ElementType } from 'react';
export type SidebarV2ItemProps = {
selected?: boolean;
level?: number;
is?: ElementType;
} & AllHTMLAttributes<HTMLAnchorElement>;
export const SidebarItem = ({
selected,
level = 1,
className,
children,
is: Tag = 'a',
...props
}: SidebarV2... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItemMenu.tsx | packages/fuselage/src/components/SidebarV2/SidebarItem/SidebarItemMenu.tsx | import type { HTMLAttributes } from 'react';
import { appendClassName } from '../../../helpers/appendClassName';
import { patchChildren } from '../../../helpers/patchChildren';
export const SidebarItemMenu = ({
children,
...props
}: HTMLAttributes<HTMLDivElement>) => (
<div
className='rcx-box rcx-box--full ... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/hooks/useCollapse.tsx | packages/fuselage/src/components/SidebarV2/hooks/useCollapse.tsx | import { useToggle } from '@rocket.chat/fuselage-hooks';
import { useId, type KeyboardEventHandler, type MouseEvent } from 'react';
const hasPropExpanded = (expanded: boolean | undefined) =>
expanded !== undefined;
export const useCollapse = ({
expanded: propExpanded,
defaultExpanded,
disabled,
noncollapsib... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarMedia/SidebarMedia.stories.tsx | packages/fuselage/src/components/SidebarV2/SidebarMedia/SidebarMedia.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import {
SidebarV2 as Sidebar,
SidebarV2Media as SidebarMedia,
SidebarV2MediaTitle as SidebarMediaTitle,
SidebarV2MediaController as SidebarMediaController,
Box,
IconButton,
} from '../..';
import { GenericCallItem } from '../helpers';
export... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarMedia/SidebarMediaTitle.tsx | packages/fuselage/src/components/SidebarV2/SidebarMedia/SidebarMediaTitle.tsx | import type { HTMLAttributes } from 'react';
export const SidebarMediaTitle = ({
className,
...props
}: HTMLAttributes<HTMLDivElement>) => (
<div
className={['rcx-sidebar-v2-media__title', className]
.filter(Boolean)
.join(' ')}
{...props}
/>
);
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarMedia/SidebarMediaController.tsx | packages/fuselage/src/components/SidebarV2/SidebarMedia/SidebarMediaController.tsx | import type { HTMLAttributes } from 'react';
import { SidebarButtonGroup } from '../SidebarButtonGroup';
export const SidebarMediaController = ({
className,
label,
children,
...props
}: { label?: string } & HTMLAttributes<HTMLDivElement>) => (
<div
className={['rcx-sidebar-v2-media__controller', classNa... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarMedia/index.ts | packages/fuselage/src/components/SidebarV2/SidebarMedia/index.ts | export { SidebarMedia as SidebarV2Media } from './SidebarMedia';
export { SidebarMediaController as SidebarV2MediaController } from './SidebarMediaController';
export { SidebarMediaTitle as SidebarV2MediaTitle } from './SidebarMediaTitle';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SidebarV2/SidebarMedia/SidebarMedia.tsx | packages/fuselage/src/components/SidebarV2/SidebarMedia/SidebarMedia.tsx | import type { HTMLAttributes } from 'react';
export const SidebarMedia = ({
className,
...props
}: HTMLAttributes<HTMLDivElement>) => (
<div
className={['rcx-sidebar-v2-media', className].filter(Boolean).join(' ')}
{...props}
/>
);
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/TextAreaInput/TextAreaInput.stories.tsx | packages/fuselage/src/components/TextAreaInput/TextAreaInput.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { PropsVariationSection } from '../../../.storybook/helpers';
import { Icon } from '../Icon';
import TextAreaInput from './TextAreaInput';
export default {
title: 'Inputs/TextAreaInput',
component: TextAreaInput,
} satisfies Meta<typeof TextA... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/TextAreaInput/TextAreaInput.tsx | packages/fuselage/src/components/TextAreaInput/TextAreaInput.tsx | import type { ReactNode } from 'react';
import { forwardRef } from 'react';
import { InputBox, type InputBoxProps } from '../InputBox';
export type TextAreaInputProps = Omit<InputBoxProps, 'type'> & {
addon?: ReactNode;
error?: string;
};
/**
* An input for multi-line plain-text editing.
*/
const TextAreaInput... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/TextAreaInput/index.ts | packages/fuselage/src/components/TextAreaInput/index.ts | export {
default as TextAreaInput,
type TextAreaInputProps,
} from './TextAreaInput';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/TextAreaInput/TextAreaInput.spec.tsx | packages/fuselage/src/components/TextAreaInput/TextAreaInput.spec.tsx | import { render } from '../../testing';
import TextAreaInput from './TextAreaInput';
describe('[TextAreaInput]', () => {
it('renders without crashing', () => {
render(<TextAreaInput />);
});
});
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Tooltip/Tooltip.stories.tsx | packages/fuselage/src/components/Tooltip/Tooltip.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { Box } from '../Box';
import { Margins } from '../Margins';
import Tooltip from './Tooltip';
export default {
title: 'Data Display/Tooltip',
component: Tooltip,
} satisfies Meta<typeof Tooltip>;
export const Default: StoryFn<typeof Tooltip>... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Tooltip/Tooltip.spec.tsx | packages/fuselage/src/components/Tooltip/Tooltip.spec.tsx | import { render } from '../../testing';
import * as stories from './Tooltip.stories';
const { Default, LightTooltip } = stories;
describe('[Tooltip Component]', () => {
it('renders without crashing', () => {
render(<Default />);
});
it('renders text content correctly', () => {
const { container } = ren... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Tooltip/index.ts | packages/fuselage/src/components/Tooltip/index.ts | export { default as Tooltip, type TooltipProps } from './Tooltip';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Tooltip/Tooltip.tsx | packages/fuselage/src/components/Tooltip/Tooltip.tsx | import { forwardRef } from 'react';
import { Box, type BoxProps } from '../Box';
const parsePlacement = (placement: string | null | undefined) => {
const [direction, position] = placement
? placement.split('-')
: [false, false];
if (direction === 'right' || direction === 'left') {
return [direction, ... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Button/IconButton.tsx | packages/fuselage/src/components/Button/IconButton.tsx | import type { Keys as IconName } from '@rocket.chat/icons';
import type { ReactElement } from 'react';
import { isValidElement, useMemo, forwardRef } from 'react';
import { Box, type BoxProps } from '../Box';
import { Icon, type IconProps } from '../Icon';
type ButtonSize = {
large?: boolean;
medium?: boolean;
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Button/IconButton.stories.tsx | packages/fuselage/src/components/Button/IconButton.stories.tsx | import { css } from '@rocket.chat/css-in-js';
import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { PropsVariationSection } from '../../../.storybook/helpers';
import { Avatar } from '../Avatar';
import { Badge } from '../Badge';
import { Box } from '../Box';
import { ButtonGroup } from '../ButtonGr... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Button/Button.stories.tsx | packages/fuselage/src/components/Button/Button.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { useState } from 'react';
import { action } from 'storybook/actions';
import { PropsVariationSection } from '../../../.storybook/helpers';
import { Box } from '../Box';
import { ButtonGroup } from '../ButtonGroup';
import { Margins } from '../Marg... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Button/Button.spec.tsx | packages/fuselage/src/components/Button/Button.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe } from 'jest-axe';
import { render } from '../../testing';
import * as stories from './Button.stories';
import * as iconButtonStories from './IconButton.stories';
const { Default, AsIconButton } = composeStories(stories);
const { _IconButton, _... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Button/ActionButton.tsx | packages/fuselage/src/components/Button/ActionButton.tsx | import { forwardRef } from 'react';
import { Icon, type IconProps } from '../Icon';
import { Button } from '.';
import type { ButtonProps } from './Button';
type ButtonSize = {
mini?: boolean;
tiny?: boolean;
small?: boolean;
};
export type ActionButtonProps = ButtonProps &
ButtonSize & {
icon: IconProp... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Button/Button.tsx | packages/fuselage/src/components/Button/Button.tsx | import type { AllHTMLAttributes } from 'react';
import { forwardRef, useMemo } from 'react';
import { Box, type BoxProps } from '../Box';
import { Icon, type IconProps } from '../Icon';
export type ButtonProps = BoxProps & {
primary?: boolean;
secondary?: boolean;
danger?: boolean;
warning?: boolean;
succes... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Button/index.ts | packages/fuselage/src/components/Button/index.ts | export { default as Button, type ButtonProps } from './Button';
export {
default as ActionButton,
type ActionButtonProps,
} from './ActionButton';
export { default as IconButton, type IconButtonProps } from './IconButton';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/OptionsPaginated/OptionsPaginated.stories.tsx | packages/fuselage/src/components/OptionsPaginated/OptionsPaginated.stories.tsx | import type { Meta, StoryFn } from '@storybook/react-webpack5';
import { createRef } from 'react';
import { Box } from '../Box';
import { Option } from '../Option';
import type { OptionsPaginatedProps } from './OptionsPaginated';
import { CheckOption, OptionsPaginated } from './OptionsPaginated';
export default {
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/OptionsPaginated/OptionsPaginated.tsx | packages/fuselage/src/components/OptionsPaginated/OptionsPaginated.tsx | import { useEffectEvent, useDebouncedState } from '@rocket.chat/fuselage-hooks';
import type {
ComponentType,
ElementType,
MouseEvent,
ReactNode,
SyntheticEvent,
} from 'react';
import { forwardRef, memo } from 'react';
import { Virtuoso } from 'react-virtuoso';
import { prevent } from '../../helpers/prevent... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/OptionsPaginated/index.ts | packages/fuselage/src/components/OptionsPaginated/index.ts | export * from './OptionsPaginated';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/InputBox/InputBox.spec.tsx | packages/fuselage/src/components/InputBox/InputBox.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe } from 'jest-axe';
import { render } from '../../testing';
import * as stories from './InputBox.stories';
const { Default } = composeStories(stories);
describe('[InputBox Component]', () => {
it('renders without crashing', () => {
const ... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/InputBox/InputBox.stories.tsx | packages/fuselage/src/components/InputBox/InputBox.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { action } from 'storybook/actions';
import { Box } from '../Box';
import { Icon } from '../Icon';
import { Input, InputBox, InputBoxSkeleton } from '.';
export default {
title: 'Inputs/InputBox',
component: InputBox,
subcomponents: {
I... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/InputBox/index.ts | packages/fuselage/src/components/InputBox/index.ts | export { default as Input, type InputProps } from './Input';
export { default as InputBox, type InputBoxProps } from './InputBox';
export {
default as InputBoxSkeleton,
type InputBoxSkeletonProps,
} from './InputBoxSkeleton';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/InputBox/InputBox.tsx | packages/fuselage/src/components/InputBox/InputBox.tsx | import { useMergedRefs } from '@rocket.chat/fuselage-hooks';
import type { FormEvent, ReactNode } from 'react';
import { forwardRef, useCallback, useLayoutEffect, useRef } from 'react';
import type { BoxProps } from '../Box';
import { Icon } from '../Icon';
import Input from './Input';
import InputBoxAddon from './In... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/InputBox/Input.tsx | packages/fuselage/src/components/InputBox/Input.tsx | import { forwardRef } from 'react';
import { Box, type BoxProps } from '../Box';
export type InputProps = BoxProps;
const Input = forwardRef<HTMLInputElement, InputProps>(
function Input(props, ref) {
return <Box is='input' animated rcx-input-box ref={ref} {...props} />;
},
);
export default Input;
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/InputBox/InputBoxSkeleton.tsx | packages/fuselage/src/components/InputBox/InputBoxSkeleton.tsx | import { Box, type BoxProps } from '../Box';
import { Skeleton } from '../Skeleton';
export type InputBoxSkeletonProps = BoxProps;
const InputBoxSkeleton = (props: InputBoxSkeletonProps) => (
<Box rcx-skeleton__input {...props}>
<Skeleton width='100%' />
</Box>
);
export default InputBoxSkeleton;
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.