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/InputBox/InputBoxAddon.tsx | packages/fuselage/src/components/InputBox/InputBoxAddon.tsx | import { forwardRef } from 'react';
import { Box, type BoxProps } from '../Box';
export type InputBoxAddonProps = BoxProps;
const InputBoxAddon = forwardRef<HTMLSpanElement, InputBoxAddonProps>(
function InputBoxAddon(props, ref) {
return <Box is='span' rcx-input-box__addon ref={ref} {...props} />;
},
);
ex... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/InputBox/InputBoxWrapper.tsx | packages/fuselage/src/components/InputBox/InputBoxWrapper.tsx | import { Box, type BoxProps } from '../Box';
import { Label } from '../Label';
export type InputBoxWrapperProps = BoxProps;
const InputBoxWrapper = (props: InputBoxWrapperProps) => (
<Box animated is={Label} rcx-input-box__wrapper {...props} />
);
export default InputBoxWrapper;
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Badge/Badge.tsx | packages/fuselage/src/components/Badge/Badge.tsx | import type { ElementType, HTMLAttributes } from 'react';
import { prependClassName } from '../../helpers/prependClassName';
export type BadgeProps = {
is?: ElementType<HTMLAttributes<HTMLSpanElement>>;
variant?: 'secondary' | 'primary' | 'danger' | 'warning' | 'ghost';
small?: boolean;
disabled?: boolean;
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Badge/Badge.spec.tsx | packages/fuselage/src/components/Badge/Badge.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { screen } from '@testing-library/react';
import { render } from '../../testing';
import Badge from './Badge';
import * as stories from './Badge.stories';
const { Default, Primary, Secondary, Danger, Warning, Disabled } =
composeStories(stories);
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Badge/Badge.stories.tsx | packages/fuselage/src/components/Badge/Badge.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { Box } from '../Box';
import Badge from './Badge';
export default {
title: 'Data Display/Badge',
component: Badge,
} satisfies Meta<typeof Badge>;
const Template: StoryFn<typeof Badge> = (args) => (
<Box display='inline-flex'>
<Badge ... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Badge/index.ts | packages/fuselage/src/components/Badge/index.ts | export { default as Badge, type BadgeProps } from './Badge';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/TextInput/TextInput.spec.tsx | packages/fuselage/src/components/TextInput/TextInput.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe } from 'jest-axe';
import { render } from '../../testing';
import * as stories from './TextInput.stories';
const { Default } = composeStories(stories);
describe('[TextInput Component]', () => {
it('renders without crashing', () => {
cons... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/TextInput/index.ts | packages/fuselage/src/components/TextInput/index.ts | export { default as TextInput, type TextInputProps } from './TextInput';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/TextInput/TextInput.stories.tsx | packages/fuselage/src/components/TextInput/TextInput.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { PropsVariationSection } from '../../../.storybook/helpers';
import { Icon } from '../Icon';
import TextInput from './TextInput';
export default {
title: 'Inputs/TextInput',
component: TextInput,
} satisfies Meta<typeof TextInput>;
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/TextInput/TextInput.tsx | packages/fuselage/src/components/TextInput/TextInput.tsx | import type { ReactNode } from 'react';
import { forwardRef } from 'react';
import { InputBox, type InputBoxProps } from '../InputBox';
export type TextInputProps = Omit<InputBoxProps, 'type'> & {
addon?: ReactNode;
error?: string;
};
/**
* An input for any kind of single-line text.
*/
const TextInput = forwar... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Tabs/TabsItem.tsx | packages/fuselage/src/components/Tabs/TabsItem.tsx | import { forwardRef } from 'react';
import { Box, type BoxProps } from '../Box';
export type TabsItemProps = BoxProps & {
selected?: boolean;
disabled?: boolean;
};
const TabsItem = forwardRef<HTMLButtonElement, TabsItemProps>(function TabsItem(
{ selected, disabled, ...props },
ref,
) {
return (
<Box
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Tabs/Tabs.spec.tsx | packages/fuselage/src/components/Tabs/Tabs.spec.tsx | import { render } from '../../testing';
import Tabs from './Tabs';
describe('[Tabs Component]', () => {
it('renders without crashing', () => {
render(<Tabs />);
});
});
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Tabs/Tabs.stories.tsx | packages/fuselage/src/components/Tabs/Tabs.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import Tabs from './Tabs';
import TabsItem from './TabsItem';
export default {
title: 'Navigation/Tabs',
component: Tabs,
subcomponents: {
TabsItem,
},
} satisfies Meta<typeof Tabs>;
const Template: StoryFn<typeof Tabs> = (args) => (
<Tabs... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Tabs/Tabs.tsx | packages/fuselage/src/components/Tabs/Tabs.tsx | import { Box, type BoxProps } from '../Box';
import TabsItem from './TabsItem';
export type TabsProps = BoxProps & { divider?: boolean };
/**
* Tabs is a component to navigate around the UI using buttons arranged together with the selected tab highlighted.
*/
function Tabs({ children, divider = true, ...props }: T... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Tabs/index.ts | packages/fuselage/src/components/Tabs/index.ts | export { default as Tabs, type TabsProps } from './Tabs';
export { default as TabsItem, type TabsItemProps } from './TabsItem';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/AnimatedVisibility/AnimatedVisibility.stories.tsx | packages/fuselage/src/components/AnimatedVisibility/AnimatedVisibility.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { Tile } from '../Tile';
import AnimatedVisibility from './AnimatedVisibility';
export default {
title: 'Layout/AnimatedVisibility',
component: AnimatedVisibility,
argTypes: {
visibility: {
control: {
type: 'inline-radio',... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/AnimatedVisibility/index.ts | packages/fuselage/src/components/AnimatedVisibility/index.ts | export {
default as AnimatedVisibility,
type AnimatedVisibilityProps,
} from './AnimatedVisibility';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/AnimatedVisibility/AnimatedVisibility.tsx | packages/fuselage/src/components/AnimatedVisibility/AnimatedVisibility.tsx | import { css, keyframes } from '@rocket.chat/css-in-js';
import type { ReactNode } from 'react';
import { useCallback, useEffect, useState } from 'react';
import { appendClassName } from '../../helpers/appendClassName';
import { useStyle } from '../../hooks/useStyle';
import { BoxTransforms, useComposedBoxTransform } ... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/MultiSelect/MultiSelectAnchor.tsx | packages/fuselage/src/components/MultiSelect/MultiSelectAnchor.tsx | import type {
FocusEventHandler,
KeyboardEventHandler,
MouseEventHandler,
ReactNode,
} from 'react';
import { forwardRef } from 'react';
import SelectFocus from '../Select/SelectFocus';
type MultiSelectAnchorProps = {
children: ReactNode;
disabled: boolean;
onClick: MouseEventHandler;
onBlur: FocusEve... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/MultiSelect/MultiSelectFiltered.tsx | packages/fuselage/src/components/MultiSelect/MultiSelectFiltered.tsx | import type { Dispatch, SetStateAction } from 'react';
import { useState } from 'react';
import type { IconProps } from '../Icon';
import type { MultiSelectProps } from './MultiSelect';
import MultiSelect from './MultiSelect';
import type { MultiSelectAnchorParams } from './MultiSelectAnchorParams';
import MultiSelec... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/MultiSelect/MultiSelect.tsx | packages/fuselage/src/components/MultiSelect/MultiSelect.tsx | import {
useMergedRefs,
useEffectEvent,
useResizeObserver,
useOutsideClick,
} from '@rocket.chat/fuselage-hooks';
import type { SyntheticEvent, ElementType, ReactNode } from 'react';
import { useState, useRef, useEffect, forwardRef } from 'react';
import type { IconProps, SelectOption } from '..';
import { isF... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/MultiSelect/MultiSelect.spec.tsx | packages/fuselage/src/components/MultiSelect/MultiSelect.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { withResizeObserverMock } from 'testing-utils/mocks/withResizeObserverMock';
import { render } from '../../testing';
import * as stories from './MultiSelect.stories';
const { Default } = composeStories(stories);
withResizeObserverMock();
describe(... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/MultiSelect/SelectedOptions.tsx | packages/fuselage/src/components/MultiSelect/SelectedOptions.tsx | import type { ReactNode, SyntheticEvent } from 'react';
import { memo } from 'react';
import { Chip } from '../Chip';
type SelectedOptionsProps = {
children: ReactNode;
tabIndex: number;
role: string;
key: string;
onMouseDown: (e: SyntheticEvent) => void;
};
export const SelectedOptions = memo(function Sel... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/MultiSelect/MultiSelectFilteredAnchor.tsx | packages/fuselage/src/components/MultiSelect/MultiSelectFilteredAnchor.tsx | import type {
FocusEventHandler,
FormEvent,
KeyboardEventHandler,
MouseEventHandler,
ReactNode,
} from 'react';
import { forwardRef } from 'react';
import { FlexItem } from '../Flex';
import { Input } from '../InputBox';
type MultiSelectFilteredAnchorProps = {
children: ReactNode;
disabled: boolean;
f... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/MultiSelect/MultiSelectAnchorParams.ts | packages/fuselage/src/components/MultiSelect/MultiSelectAnchorParams.ts | import type {
FocusEventHandler,
KeyboardEventHandler,
MouseEventHandler,
ReactNode,
Ref,
} from 'react';
export type MultiSelectAnchorParams = {
ref: Ref<HTMLInputElement>;
children: ReactNode;
disabled: boolean;
onClick: MouseEventHandler;
onBlur: FocusEventHandler;
onKeyUp: KeyboardEventHandle... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/MultiSelect/index.ts | packages/fuselage/src/components/MultiSelect/index.ts | export { default as MultiSelect, type MultiSelectProps } from './MultiSelect';
export {
default as MultiSelectFiltered,
type MultiSelectFilteredProps,
} from './MultiSelectFiltered';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/MultiSelect/MultiSelect.stories.tsx | packages/fuselage/src/components/MultiSelect/MultiSelect.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { action } from 'storybook/actions';
import type { SelectOption } from '../Select';
import MultiSelect from './MultiSelect';
import MultiSelectFiltered from './MultiSelectFiltered';
export default {
title: 'Inputs/MultiSelect',
component: Mul... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Callout/Callout.spec.tsx | packages/fuselage/src/components/Callout/Callout.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe } from 'jest-axe';
import { render } from '../../testing';
import * as stories from './Callout.stories';
const testCases = Object.values(composeStories(stories)).map((Story) => [
Story.storyName || 'Story',
Story,
]);
describe('[CheckBox R... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Callout/Callout.stories.tsx | packages/fuselage/src/components/Callout/Callout.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { Button, ButtonGroup, Callout } from '../..';
import { setStoryDescription } from '../../helpers/setStoryDescription';
export default {
title: 'Feedback/Callout',
component: Callout,
} satisfies Meta<typeof Callout>;
const Template: StoryFn<... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Callout/Callout.tsx | packages/fuselage/src/components/Callout/Callout.tsx | import { useResizeObserver } from '@rocket.chat/fuselage-hooks';
import type { ReactElement, ReactNode } from 'react';
import { Box, type BoxProps } from '../Box';
import { Icon, type IconProps } from '../Icon';
export type CalloutProps = Omit<BoxProps, 'type' | 'name'> & {
type?: 'info' | 'success' | 'warning' | '... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Callout/index.ts | packages/fuselage/src/components/Callout/index.ts | export { default as Callout, type CalloutProps } from './Callout';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Divider/Divider.spec.tsx | packages/fuselage/src/components/Divider/Divider.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { render } from '../../testing';
import * as stories from './Divider.stories';
const { Default } = composeStories(stories);
describe('[Divider Component]', () => {
it('renders without crashing', () => {
render(<Default />);
});
});
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Divider/Divider.stories.tsx | packages/fuselage/src/components/Divider/Divider.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { IconButton } from '../Button';
import { ButtonGroup } from '../ButtonGroup';
import Divider from './Divider';
export default {
title: 'Data Display/Divider',
component: Divider,
} satisfies Meta<typeof Divider>;
const Template: StoryFn<typ... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Divider/Divider.tsx | packages/fuselage/src/components/Divider/Divider.tsx | import type { ReactNode } from 'react';
import { Box, type BoxProps } from '../Box';
export type DividerProps = BoxProps & {
variation?: 'danger';
children?: ReactNode;
vertical?: boolean;
};
const Divider = ({ variation, children, vertical, ...props }: DividerProps) => {
if (!children) {
return (
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Divider/index.ts | packages/fuselage/src/components/Divider/index.ts | export { default as Divider, type DividerProps } from './Divider';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Field/FieldLink.tsx | packages/fuselage/src/components/Field/FieldLink.tsx | import WithErrorWrapper from '../../helpers/WithErrorWrapper';
import { Box, type BoxProps } from '../Box';
import { FieldContext } from './Field';
export type FieldLinkProps = BoxProps;
const FieldLink = (props: FieldLinkProps) => {
const component = <Box is='a' target='_blank' rcx-field__link {...props} />;
i... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Field/FieldLabelInfo.tsx | packages/fuselage/src/components/Field/FieldLabelInfo.tsx | import WithErrorWrapper from '../../helpers/WithErrorWrapper';
import type { LabelInfoProps } from '../Label/LabelInfo';
import { LabelInfo } from '../Label/LabelInfo';
import { FieldContext } from './Field';
export type FieldLabelInfoProps = LabelInfoProps;
const FieldLabelInfo = (props: FieldLabelInfoProps) => {
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Field/Field.stories.tsx | packages/fuselage/src/components/Field/Field.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { CheckBox } from '../CheckBox';
import { RadioButton } from '../RadioButton';
import { TextAreaInput } from '../TextAreaInput';
import { TextInput } from '../TextInput';
import { ToggleSwitch } from '../ToggleSwitch';
import Field from './Field';... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Field/Field.spec.tsx | packages/fuselage/src/components/Field/Field.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe } from 'jest-axe';
import { render } from '../../testing';
import * as stories from './Field.stories';
const testCases = Object.values(composeStories(stories)).map((Story) => [
Story.storyName || 'Story',
Story,
]);
describe('[Field Compon... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Field/FieldError.tsx | packages/fuselage/src/components/Field/FieldError.tsx | import WithErrorWrapper from '../../helpers/WithErrorWrapper';
import { Box, type BoxProps } from '../Box';
import { FieldContext } from './Field';
export type FieldErrorProps = BoxProps;
const FieldError = (props: FieldErrorProps) => {
const component = <Box is='span' rcx-field__error {...props} />;
if (proces... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Field/FieldLabel.tsx | packages/fuselage/src/components/Field/FieldLabel.tsx | import { forwardRef } from 'react';
import WithErrorWrapper from '../../helpers/WithErrorWrapper';
import type { LabelProps } from '../Label';
import { Label } from '../Label';
import { FieldContext } from './Field';
export type FieldLabelProps = LabelProps;
const FieldLabel = forwardRef<HTMLElement, FieldLabelProp... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Field/FieldHint.tsx | packages/fuselage/src/components/Field/FieldHint.tsx | import WithErrorWrapper from '../../helpers/WithErrorWrapper';
import { Box, type BoxProps } from '../Box';
import { FieldContext } from './Field';
export type FieldHintProps = BoxProps;
const FieldHint = (props: FieldHintProps) => {
const component = <Box is='span' rcx-field__hint {...props} />;
if (process.en... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Field/FieldDescription.tsx | packages/fuselage/src/components/Field/FieldDescription.tsx | import WithErrorWrapper from '../../helpers/WithErrorWrapper';
import { Box, type BoxProps } from '../Box';
import { FieldContext } from './Field';
export type FieldDescriptionProps = BoxProps;
const FieldDescription = (props: FieldDescriptionProps) => {
const component = <Box is='span' rcx-field__description {...... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Field/FieldRow.tsx | packages/fuselage/src/components/Field/FieldRow.tsx | import WithErrorWrapper from '../../helpers/WithErrorWrapper';
import { Box, type BoxProps } from '../Box';
import { FieldContext } from './Field';
export type FieldRowProps = BoxProps;
const FieldRow = (props: FieldRowProps) => {
const component = <Box is='span' rcx-field__row {...props} />;
if (process.env['N... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Field/index.ts | packages/fuselage/src/components/Field/index.ts | export { default as Field, type FieldProps } from './Field';
export {
default as FieldDescription,
type FieldDescriptionProps,
} from './FieldDescription';
export { default as FieldError, type FieldErrorProps } from './FieldError';
export { default as FieldHint, type FieldHintProps } from './FieldHint';
export { de... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Field/Field.tsx | packages/fuselage/src/components/Field/Field.tsx | import { createContext } from 'react';
import { Box, type BoxProps } from '../Box';
export const FieldContext = createContext(false);
export type FieldProps = BoxProps;
/**
* A `Field` is a wrapper representing an entry in a form.
*/
function Field(props: FieldProps) {
return (
<FieldContext.Provider value=... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Field/FieldLabel.spec.tsx | packages/fuselage/src/components/Field/FieldLabel.spec.tsx | import { render, screen } from '@testing-library/react';
import FieldLabel from './FieldLabel';
describe('[FieldLabel Component]', () => {
it('should render required asterisk when required prop is true', () => {
render(
<FieldLabel required htmlFor='test-field'>
Test Label
</FieldLabel>,
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/StatusBullet/StatusBullet.stories.tsx | packages/fuselage/src/components/StatusBullet/StatusBullet.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { Box } from '../Box';
import StatusBullet from './StatusBullet';
export default {
title: 'Data Display/StatusBullet',
component: StatusBullet,
} satisfies Meta<typeof StatusBullet>;
export const Default: StoryFn<typeof StatusBullet> = () =>... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/StatusBullet/StatusBullet.spec.tsx | packages/fuselage/src/components/StatusBullet/StatusBullet.spec.tsx | import { render } from '../../testing';
import StatusBullet from './StatusBullet';
describe('[StatusBullet Component]', () => {
it('renders without crashing', () => {
render(<StatusBullet />);
});
});
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/StatusBullet/index.ts | packages/fuselage/src/components/StatusBullet/index.ts | export {
default as StatusBullet,
type StatusBulletProps,
} from './StatusBullet';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/StatusBullet/StatusBullet.tsx | packages/fuselage/src/components/StatusBullet/StatusBullet.tsx | import type { AllHTMLAttributes } from 'react';
import Away from './icons/Away';
import Busy from './icons/Busy';
import Disabled from './icons/Disabled';
import Loading from './icons/Loading';
import Offline from './icons/Offline';
import Online from './icons/Online';
export type StatusBulletProps = {
status?: 'lo... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/StatusBullet/icons/Disabled.tsx | packages/fuselage/src/components/StatusBullet/icons/Disabled.tsx | import type { StatusBulletProps } from '../StatusBullet';
const Disabled = ({ size, className, ...props }: StatusBulletProps) => (
<svg
{...props}
width='24'
height='24'
viewBox='0 0 24 24'
className={`rcx-status-bullet rcx-status-bullet--disabled ${className} ${
size === 'small' ? 'rcx-sta... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/StatusBullet/icons/Offline.tsx | packages/fuselage/src/components/StatusBullet/icons/Offline.tsx | import type { StatusBulletProps } from '../StatusBullet';
const Offline = ({ size, className, ...props }: StatusBulletProps) => (
<svg
{...props}
width='12'
height='12'
viewBox='0 0 12 12'
fill='none'
xmlns='http://www.w3.org/2000/svg'
className={`rcx-status-bullet rcx-status-bullet--offl... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/StatusBullet/icons/Away.tsx | packages/fuselage/src/components/StatusBullet/icons/Away.tsx | import type { StatusBulletProps } from '../StatusBullet';
const Away = ({ size, className, ...props }: StatusBulletProps) => (
<svg
{...props}
width='10'
height='10'
viewBox='0 0 10 10'
className={`rcx-status-bullet rcx-status-bullet--away ${className} ${
size === 'small' ? 'rcx-status-bull... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/StatusBullet/icons/Busy.tsx | packages/fuselage/src/components/StatusBullet/icons/Busy.tsx | import type { StatusBulletProps } from '../StatusBullet';
const Busy = ({ size, className, ...props }: StatusBulletProps) => (
<svg
{...props}
width='10'
height='10'
viewBox='0 0 10 10'
className={`rcx-status-bullet rcx-status-bullet--busy ${className} ${
size === 'small' ? 'rcx-status-bull... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/StatusBullet/icons/Loading.tsx | packages/fuselage/src/components/StatusBullet/icons/Loading.tsx | import type { StatusBulletProps } from '../StatusBullet';
const Loading = ({ size, className, ...props }: StatusBulletProps) => (
<svg
{...props}
width='12'
height='12'
viewBox='0 0 12 12'
fill='none'
xmlns='http://www.w3.org/2000/svg'
className={`rcx-status-bullet rcx-status-bullet--load... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/StatusBullet/icons/Online.tsx | packages/fuselage/src/components/StatusBullet/icons/Online.tsx | import type { StatusBulletProps } from '../StatusBullet';
const Online = ({ size, className, ...props }: StatusBulletProps) => (
<svg
{...props}
width='24'
height='24'
viewBox='0 0 24 24'
className={`rcx-status-bullet rcx-status-bullet--online ${className} ${
size === 'small' ? 'rcx-status-... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/CardGroup/CardGroup.spec.tsx | packages/fuselage/src/components/CardGroup/CardGroup.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe } from 'jest-axe';
import { render } from '../../testing';
import * as stories from './CardGroup.stories';
const testCases = Object.values(composeStories(stories)).map((Story) => [
Story.storyName || 'Story',
Story,
]);
describe('[CardGrou... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/CardGroup/CardGroup.stories.tsx | packages/fuselage/src/components/CardGroup/CardGroup.stories.tsx | import type { Meta, StoryFn } from '@storybook/react-webpack5';
import { Badge } from '../Badge';
import { Button, IconButton } from '../Button';
import type { CardProps } from '../Card';
import {
Card,
CardBody,
CardCol,
CardControls,
CardHeader,
CardRow,
CardTitle,
} from '../Card';
import { Icon } fro... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/CardGroup/index.ts | packages/fuselage/src/components/CardGroup/index.ts | export { default as CardGroup, type CardGroupProps } from './CardGroup';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/CardGroup/CardGroup.tsx | packages/fuselage/src/components/CardGroup/CardGroup.tsx | import type { AllHTMLAttributes, ReactNode } from 'react';
import { appendClassName } from '../../helpers/appendClassName';
import { patchChildren } from '../../helpers/patchChildren';
import { Box } from '../Box';
export type CardGroupProps = {
align?: 'start' | 'center' | 'end';
stretch?: boolean;
wrap?: bool... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidebar/Sidebar.spec.tsx | packages/fuselage/src/components/Sidebar/Sidebar.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { render } from '../../testing';
import * as stories from './Sidebar.stories';
const { Default } = composeStories(stories);
describe('[Sidebar Component]', () => {
it('renders without crashing', () => {
render(<Default />);
});
});
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidebar/SidebarItem.stories.tsx | packages/fuselage/src/components/Sidebar/SidebarItem.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { Avatar } from '../Avatar';
import {
SidebarItem,
SidebarItemAvatar,
SidebarItemContent,
SidebarItemAction,
SidebarItemActions,
SidebarItemContainer,
SidebarItemIcon,
SidebarItemSubtitle,
SidebarItemTitle,
SidebarItemWrapper,
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidebar/SidebarActions.tsx | packages/fuselage/src/components/Sidebar/SidebarActions.tsx | import { forwardRef } from 'react';
import { IconButton } from '../Button';
import type { IconButtonProps } from '../Button/IconButton';
import type { ButtonGroupProps } from '../ButtonGroup';
import { ButtonGroup } from '../ButtonGroup';
export type SidebarActionsProps = ButtonGroupProps;
export const SidebarAction... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidebar/Section.tsx | packages/fuselage/src/components/Sidebar/Section.tsx | import type { ReactNode } from 'react';
export type SidebarSectionTitleProps = {
children?: ReactNode;
};
export const SidebarSectionTitle = (props: SidebarSectionTitleProps) => (
<div className='rcx-box rcx-box--full rcx-sidebar-title' {...props} />
);
export type SidebarSectionProps = {
children?: ReactNode;... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidebar/Sidebar.stories.tsx | packages/fuselage/src/components/Sidebar/Sidebar.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { action } from 'storybook/actions';
import { Avatar } from '../Avatar';
import { Box } from '../Box';
import { Divider } from '../Divider';
import { Icon } from '../Icon';
import { Tag } from '../Tag';
import {
SidebarItem,
SidebarItemAction,... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidebar/Item.tsx | packages/fuselage/src/components/Sidebar/Item.tsx | import type { AllHTMLAttributes, ReactNode } from 'react';
import type { BoxProps } from '../Box';
import type { IconProps } from '../Icon';
import { Icon as FuselageIcon } from '../Icon';
import type { SidebarActionProps } from './SidebarActions';
import { SidebarAction, SidebarActions } from './SidebarActions';
ex... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidebar/SidebarFooter.tsx | packages/fuselage/src/components/Sidebar/SidebarFooter.tsx | import type { ReactNode } from 'react';
export type SidebarFooterProps = {
children?: ReactNode;
elevated?: boolean;
};
export const SidebarFooter = ({ elevated, ...props }: SidebarFooterProps) => (
<div
className={[
'rcx-box rcx-box--full rcx-sidebar-footer',
elevated && 'rcx-sidebar-footer--el... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidebar/SidebarDivider.tsx | packages/fuselage/src/components/Sidebar/SidebarDivider.tsx | import { Divider } from '../Divider';
const SidebarDivider = () => <Divider rcx-sidebar--divider mbs={-2} mbe={0} />;
export default SidebarDivider;
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidebar/SidebarBanner.tsx | packages/fuselage/src/components/Sidebar/SidebarBanner.tsx | import type { ReactNode } from 'react';
import { IconButton } from '../Button';
type VariantType = 'default' | 'info' | 'success' | 'warning' | 'danger';
export type SidebarBannerProps = {
text?: ReactNode;
description?: ReactNode;
onClick?: () => void;
variant?: VariantType;
onClose?: () => void;
childr... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidebar/index.ts | packages/fuselage/src/components/Sidebar/index.ts | export { default as Sidebar, type SidebarProps } from './Sidebar';
export * from './Item';
export * from './Section';
export * from './TopBar';
export { default as SidebarTopBar } from './TopBar';
export {
default as SidebarBanner,
type SidebarBannerProps,
} from './SidebarBanner';
export * from './SidebarFooter';
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidebar/Sidebar.tsx | packages/fuselage/src/components/Sidebar/Sidebar.tsx | import { Box, type BoxProps } from '../Box';
import { SidebarItem } from './Item';
import { SidebarSection } from './Section';
import SidebarBanner from './SidebarBanner';
import SidebarDivider from './SidebarDivider';
import SidebarTopBar from './TopBar';
export type SidebarProps = BoxProps;
const Sidebar = Object.... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidebar/SidebarItem.spec.tsx | packages/fuselage/src/components/Sidebar/SidebarItem.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe } from 'jest-axe';
import { render } from '../../testing';
import * as stories from './SidebarItem.stories';
const testCases = Object.values(composeStories(stories)).map((Story) => [
Story.storyName || 'Story',
Story,
]);
test.each(testCas... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidebar/TopBar/TopBar.spec.tsx | packages/fuselage/src/components/Sidebar/TopBar/TopBar.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe } from 'jest-axe';
import { render } from '../../../testing';
import * as stories from './TopBar.stories';
const testCases = Object.values(composeStories(stories)).map((Story) => [
Story.storyName || 'Story',
Story,
]);
describe('[TopBar R... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidebar/TopBar/TopBarToolBox.tsx | packages/fuselage/src/components/Sidebar/TopBar/TopBarToolBox.tsx | import type { ReactNode } from 'react';
import SidebarDivider from '../SidebarDivider';
import { TopBar } from './TopBar';
import { TopBarWrapper } from './TopBarWrapper';
type TopBarToolBoxProps = {
children?: ReactNode;
className?: string;
};
export const TopBarToolBox = ({
children,
className,
...props... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidebar/TopBar/TopBarWrapper.tsx | packages/fuselage/src/components/Sidebar/TopBar/TopBarWrapper.tsx | import type { ReactNode } from 'react';
type TopBarWrapperProps = {
children?: ReactNode;
};
export const TopBarWrapper = ({ children }: TopBarWrapperProps) => (
<div
className='rc-box rc-box--full rcx-sidebar-topbar__wrapper'
children={children}
/>
);
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidebar/TopBar/TopBarAction.tsx | packages/fuselage/src/components/Sidebar/TopBar/TopBarAction.tsx | import { forwardRef } from 'react';
import type { SidebarActionProps } from '../SidebarActions';
import { SidebarAction } from '../SidebarActions';
type TopBarActionProps = SidebarActionProps;
export const TopBarAction = forwardRef<HTMLElement, TopBarActionProps>(
function TopBarAction(props, ref) {
return <Si... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidebar/TopBar/TopBar.tsx | packages/fuselage/src/components/Sidebar/TopBar/TopBar.tsx | import type { ReactNode } from 'react';
type TopBarProps = {
children?: ReactNode;
className?: string;
};
/**
* Sidebar TopBar and ToolBox.
*/
export const TopBar = ({ className, ...props }: TopBarProps) => (
<div
className={['rc-box rc-box--full rcx-sidebar-topbar', className]
.filter(Boolean)
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidebar/TopBar/TopBar.stories.tsx | packages/fuselage/src/components/Sidebar/TopBar/TopBar.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { Avatar } from '../../Avatar';
import { SidebarSection } from '../Section';
import {
TopBar,
TopBarAction,
TopBarActions,
TopBarAvatar,
TopBarTitle,
TopBarToolBox,
} from '.';
export default {
title: 'Sidebar/TopBar',
component: ... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidebar/TopBar/TopBarActions.tsx | packages/fuselage/src/components/Sidebar/TopBar/TopBarActions.tsx | import { forwardRef } from 'react';
import type { SidebarActionsProps } from '../SidebarActions';
import { SidebarActions } from '../SidebarActions';
type TopBarActionsProps = SidebarActionsProps;
export const TopBarActions = forwardRef<HTMLDivElement, TopBarActionsProps>(
function TopBarActions(props, ref) {
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidebar/TopBar/TopBarSection.tsx | packages/fuselage/src/components/Sidebar/TopBar/TopBarSection.tsx | import type { ReactNode } from 'react';
import SidebarDivider from '../SidebarDivider';
import { TopBar } from './TopBar';
import { TopBarWrapper } from './TopBarWrapper';
type TopBarSectionProps = {
children?: ReactNode;
className?: string;
};
export const TopBarSection = ({
className,
children,
...props... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidebar/TopBar/TopBarV2.tsx | packages/fuselage/src/components/Sidebar/TopBar/TopBarV2.tsx | import type { ReactNode } from 'react';
type TopBarProps = {
children?: ReactNode;
className?: string;
};
export const TopBarV2 = ({ className, ...props }: TopBarProps) => (
<div
className={[
'rc-box rc-box--full rcx-sidebar-topbar-v2 rcx-sidebar-topbar-v2',
className,
]
.filter(Boolea... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidebar/TopBar/TopBarTitle.tsx | packages/fuselage/src/components/Sidebar/TopBar/TopBarTitle.tsx | import type { ReactNode } from 'react';
import { Box } from '../../Box';
type TopBarTitleProps = {
children?: ReactNode;
};
export const TopBarTitle = (props: TopBarTitleProps) => (
<Box className='rcx-sidebar-topbar__title' withTruncatedText {...props} />
);
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidebar/TopBar/index.ts | packages/fuselage/src/components/Sidebar/TopBar/index.ts | import TopBarDivider from '../SidebarDivider';
import { TopBar } from './TopBar';
import { TopBarAction } from './TopBarAction';
import { TopBarActions } from './TopBarActions';
import { TopBarSection } from './TopBarSection';
import { TopBarTitle } from './TopBarTitle';
import { TopBarToolBox } from './TopBarToolBox'... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/types/Falsy.ts | packages/fuselage/src/types/Falsy.ts | export type Falsy = false | 0 | '' | null | undefined;
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/css-in-js/src/names.spec.ts | packages/css-in-js/src/names.spec.ts | import { createAnimationName, createClassName, escapeName } from './names';
describe('names', () => {
describe('createAnimationName', () => {
it('is injective', () => {
const content = 'from { opacity: 0; }';
const alternateContent = 'from { opacity: 0.5 }';
const nameA = createAnimationName(c... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/css-in-js/src/transpile.spec.ts | packages/css-in-js/src/transpile.spec.ts | import { transpile, createTranspileMiddleware } from './transpile';
it('transpiles simple properties', () => {
expect(transpile('div', 'color: inherit;')).toMatch('div{color:inherit;}');
});
it('transpiles with vendor prefixing', () => {
expect(transpile('div', 'display: flex;')).toMatch(
'div{display:-webkit... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/css-in-js/src/sheet.ts | packages/css-in-js/src/sheet.ts | import hash from '@emotion/hash';
const elementId = 'rcx-styles';
let element: HTMLStyleElement;
const getStyleTag = (): HTMLStyleElement => {
if (!element) {
const el = document.getElementById(elementId) as HTMLStyleElement;
if (el) {
element = el;
return element;
}
}
if (!element) {
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/css-in-js/src/names.ts | packages/css-in-js/src/names.ts | import hash from '@emotion/hash';
export const createAnimationName = (content: string): string =>
content ? `rcx-css-${hash(content)}` : 'none';
export const createClassName = (content: string): string =>
`rcx-css-${hash(content)}`;
export const escapeName = (animationOrClassName: string): string =>
animationO... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/css-in-js/src/tags.ts | packages/css-in-js/src/tags.ts | import { memoize } from '@rocket.chat/memo';
import { createAnimationName, escapeName } from './names';
/**
* A shared state created by the upmost Evaluable in the call stack
*/
type EvaluationContext = string[];
/**
* It can be stored at this module scope because all Evaluable calls are
* synchronous, therefore... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/css-in-js/src/tags.spec.ts | packages/css-in-js/src/tags.spec.ts | import { css, keyframes } from '.';
import { holdContext } from './tags';
describe('tags', () => {
describe('css', () => {
it('evaluates as an empty string if the template string is empty', () => {
expect(css``()).toBe('');
});
it('evaluates as an empty string if the template string is filled only... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/css-in-js/src/index.ts | packages/css-in-js/src/index.ts | export { createAnimationName, createClassName, escapeName } from './names';
export { css, keyframes, type cssFn, type keyframesFn } from './tags';
export { cssSupports } from '@rocket.chat/css-supports';
export { attachRules } from './sheet';
export { transpile } from './transpile';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/css-in-js/src/transpile.ts | packages/css-in-js/src/transpile.ts | import { createLogicalPropertiesMiddleware } from '@rocket.chat/stylis-logical-props-middleware';
import type { Middleware } from 'stylis';
import { compile, middleware, prefixer, serialize, stringify } from 'stylis';
type MiddlewareOptions = {
isPropertySupported?: (property: string) => boolean;
isPropertyValueSu... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/.storybook/globals.d.ts | packages/layout/.storybook/globals.d.ts | declare module '*.css' {}
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/.storybook/logo.svg.d.ts | packages/layout/.storybook/logo.svg.d.ts | declare const path: string;
export = path;
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/.storybook/preview.tsx | packages/layout/.storybook/preview.tsx | import { PaletteStyleTag } from '@rocket.chat/fuselage';
import surface from '@rocket.chat/fuselage-tokens/dist/surface.json';
import type { Preview } from '@storybook/react-webpack5';
import { Suspense } from 'react';
import { themes } from 'storybook/theming';
import { useDarkMode } from 'storybook-dark-mode';
impor... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/.storybook/main.ts | packages/layout/.storybook/main.ts | import { dirname, join } from 'path';
import type { StorybookConfig } from '@storybook/react-webpack5';
export default {
addons: [
getAbsolutePath('storybook-dark-mode'),
getAbsolutePath('@storybook/addon-webpack5-compiler-swc'),
getAbsolutePath('@storybook/addon-a11y'),
getAbsolutePath('@storybook/... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/.storybook/DocsContainer.tsx | packages/layout/.storybook/DocsContainer.tsx | import { DocsContainer as BaseContainer } from '@storybook/addon-docs/blocks';
import type { ComponentPropsWithoutRef } from 'react';
import { useEffect, useState } from 'react';
import { addons } from 'storybook/preview-api';
import { themes } from 'storybook/theming';
import { DARK_MODE_EVENT_NAME } from 'storybook-d... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/DarkModeProvider.tsx | packages/layout/src/DarkModeProvider.tsx | import { useDarkMode as useDarkModeFuselage } from '@rocket.chat/fuselage-hooks';
import type { ReactElement, ReactNode } from 'react';
import { createContext, useContext } from 'react';
const DarkModeContext = createContext(true);
type DarkModeProviderProps = {
children?: ReactNode;
forcedDarkMode?: boolean;
};
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/jest-setup.ts | packages/layout/src/jest-setup.ts | import { TextEncoder } from 'node:util';
import { toHaveNoViolations } from 'jest-axe';
Object.assign(globalThis, { TextEncoder });
expect.extend(toHaveNoViolations);
| 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.