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/Bubble/Bubble.tsx | packages/fuselage/src/components/Bubble/Bubble.tsx | import type { Keys as IconName } from '@rocket.chat/icons';
import type { AllHTMLAttributes, ButtonHTMLAttributes, ReactNode } from 'react';
import { BubbleButton } from './BubbleButton';
import { BubbleItem } from './BubbleItem';
export type BubbleProps = {
secondary?: boolean;
children: ReactNode;
small?: boo... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Chip/Chip.stories.tsx | packages/fuselage/src/components/Chip/Chip.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { action } from 'storybook/actions';
import { exampleAvatar, blankAvatar } from '../../../.storybook/helpers';
import { Box } from '../Box';
import { Margins } from '../Margins';
import Chip from './Chip';
export default {
title: 'Data Display/... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Chip/Chip.spec.tsx | packages/fuselage/src/components/Chip/Chip.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { render } from '../../testing';
import * as stories from './Chip.stories';
const { Default } = composeStories(stories);
describe('[Chevron 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/Chip/index.ts | packages/fuselage/src/components/Chip/index.ts | export { default as Chip, type ChipProps } from './Chip';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Chip/Chip.tsx | packages/fuselage/src/components/Chip/Chip.tsx | import type { ButtonHTMLAttributes, ReactNode } from 'react';
import { prependClassName } from '../../helpers/prependClassName';
import { Avatar } from '../Avatar';
import { Box } from '../Box';
import { withBoxStyling } from '../Box/withBoxStyling';
import { Icon } from '../Icon';
import { Margins } from '../Margins'... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Chevron/Chevron.spec.tsx | packages/fuselage/src/components/Chevron/Chevron.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { render } from '../../testing';
import * as stories from './Chevron.stories';
const { Default } = composeStories(stories);
describe('[Chevron 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/Chevron/index.ts | packages/fuselage/src/components/Chevron/index.ts | export { default as Chevron, type ChevronProps } from './Chevron';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Chevron/Chevron.stories.tsx | packages/fuselage/src/components/Chevron/Chevron.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { Box } from '../Box';
import Chevron from './Chevron';
export default {
title: 'Data Display/Chevron',
component: Chevron,
} satisfies Meta<typeof Chevron>;
const Template: StoryFn<typeof Chevron> = (args) => (
<Chevron {...args} size={40... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Chevron/Chevron.tsx | packages/fuselage/src/components/Chevron/Chevron.tsx | import type { ReactElement } from 'react';
import { useMemo } from 'react';
import { Box, type BoxProps } from '../Box';
import { Icon } from '../Icon';
export type ChevronProps = Omit<BoxProps, 'size'> & {
size?: BoxProps['width'];
up?: boolean;
right?: boolean;
left?: boolean;
down?: boolean;
top?: bool... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Tag/Tag.spec.tsx | packages/fuselage/src/components/Tag/Tag.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe } from 'jest-axe';
import { render } from '../../testing';
import * as stories from './Tag.stories';
const testCases = Object.values(composeStories(stories)).map((Story) => [
Story.storyName || 'Story',
Story,
]);
describe('[Tag Rendering]... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Tag/Tag.tsx | packages/fuselage/src/components/Tag/Tag.tsx | import type { ReactNode } from 'react';
import { prependClassName } from '../../helpers/prependClassName';
import { Box, type BoxProps } from '../Box';
export type TagProps = {
medium?: boolean;
large?: boolean;
variant?:
| 'primary'
| 'secondary'
| 'danger'
| 'warning'
| 'secondary-danger'
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Tag/Tag.stories.tsx | packages/fuselage/src/components/Tag/Tag.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { action } from 'storybook/actions';
import { Box } from '../Box';
import { ButtonGroup } from '../ButtonGroup';
import { Icon } from '../Icon';
import Tag from './Tag';
export default {
title: 'Data Display/Tag',
component: Tag,
} satisfies ... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Tag/index.ts | packages/fuselage/src/components/Tag/index.ts | export { default as Tag, type TagProps } from './Tag';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/CheckBox/CheckBox.tsx | packages/fuselage/src/components/CheckBox/CheckBox.tsx | import { useMergedRefs } from '@rocket.chat/fuselage-hooks';
import type { FormEvent, AllHTMLAttributes, ReactNode } from 'react';
import { forwardRef, useLayoutEffect, useRef, useCallback } from 'react';
import { Box, type BoxProps } from '../Box';
export type CheckBoxProps = BoxProps & {
indeterminate?: boolean;
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/CheckBox/CheckBox.stories.tsx | packages/fuselage/src/components/CheckBox/CheckBox.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { action } from 'storybook/actions';
import {
DECORATOR_LABEL,
PropsVariationSection,
} from '../../../.storybook/helpers';
import CheckBox from './CheckBox';
export default {
title: 'Inputs/CheckBox',
component: CheckBox,
} satisfies Met... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/CheckBox/CheckBox.spec.tsx | packages/fuselage/src/components/CheckBox/CheckBox.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { fireEvent, getByRole } from '@testing-library/react';
import { axe } from 'jest-axe';
import { render } from '../../testing';
import * as stories from './CheckBox.stories';
const { Default, Indeterminate, Disabled, DefaultChecked } =
composeStori... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/CheckBox/index.ts | packages/fuselage/src/components/CheckBox/index.ts | export { default as CheckBox, type CheckBoxProps } from './CheckBox';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Select/SelectFiltered.tsx | packages/fuselage/src/components/Select/SelectFiltered.tsx | import type { Dispatch, SetStateAction } from 'react';
import { forwardRef, useState } from 'react';
import type { IconProps } from '..';
import type { SelectProps } from '.';
import { SelectLegacy } from '.';
import type { SelectAnchorParams } from './SelectAnchorParams';
import SelectFilteredAnchor from './SelectFi... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Select/Select.tsx | packages/fuselage/src/components/Select/Select.tsx | import type { AriaSelectProps } from '@react-types/select';
import type { AllHTMLAttributes, Key } from 'react';
import { forwardRef } from 'react';
import { Item } from 'react-stately';
import type { SelectAriaProps } from './SelectAria';
import { SelectAria } from './SelectAria';
type SelectOption = readonly [value... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Select/SelectFilteredAnchor.tsx | packages/fuselage/src/components/Select/SelectFilteredAnchor.tsx | import type {
FocusEventHandler,
FormEvent,
KeyboardEventHandler,
MouseEventHandler,
ReactNode,
} from 'react';
import { forwardRef } from 'react';
import { Input } from '../InputBox';
type SelectFilteredAnchorProps = {
children: ReactNode;
disabled: boolean;
filter: string;
onChangeFilter: (filter:... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Select/SelectAria.tsx | packages/fuselage/src/components/Select/SelectAria.tsx | import type { AriaSelectProps } from '@react-types/select';
import { useMergedRefs, useResizeObserver } from '@rocket.chat/fuselage-hooks';
import type { AllHTMLAttributes, Key } from 'react';
import { forwardRef } from 'react';
import { useSelect, HiddenSelect, mergeProps, useFocusRing } from 'react-aria';
import { us... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Select/SelectAddon.tsx | packages/fuselage/src/components/Select/SelectAddon.tsx | import { forwardRef } from 'react';
import { Box, type BoxProps } from '../Box';
type AddonProps = BoxProps;
const SelectAddon = forwardRef<HTMLDivElement, AddonProps>(
function SelectAddon(props, ref) {
return <Box is='div' rcx-select__addon ref={ref} {...props} />;
},
);
export default SelectAddon;
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Select/Select.spec.tsx | packages/fuselage/src/components/Select/Select.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { withResizeObserverMock } from 'testing-utils/mocks/withResizeObserverMock';
import { render } from '../../testing';
import * as stories from './Select.stories';
const { Default } = composeStories(stories);
withResizeObserverMock();
describe('[Sel... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Select/SelectTrigger.tsx | packages/fuselage/src/components/Select/SelectTrigger.tsx | import type { AllHTMLAttributes, RefObject } from 'react';
import { forwardRef } from 'react';
import { useButton, type AriaButtonProps } from 'react-aria';
import { Box } from '../Box';
type SelectTriggerProps = {
small?: boolean;
error?: string;
focus?: boolean;
} & AriaButtonProps &
AllHTMLAttributes<HTMLB... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Select/Select.stories.tsx | packages/fuselage/src/components/Select/Select.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import type { Key } from 'react';
import { useState } from 'react';
import PropsVariationSection from '../../../.storybook/PropsVariation';
import Select from './Select';
import type { SelectOption } from './SelectLegacy';
export default {
title: 'Inp... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Select/SelectFocus.tsx | packages/fuselage/src/components/Select/SelectFocus.tsx | import { forwardRef } from 'react';
import { Box, type BoxProps } from '../Box';
type SelectFocusProps = BoxProps;
const SelectFocus = forwardRef<Element, SelectFocusProps>(
function SelectFocus(props, ref) {
return (
<Box
ref={ref}
fontScale='p2m'
color='hint'
rcx-select_... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Select/Listbox.tsx | packages/fuselage/src/components/Select/Listbox.tsx | import type { Node } from '@react-types/shared';
import type { RefObject } from 'react';
import { useRef } from 'react';
import type { AriaListBoxOptions } from 'react-aria';
import { useListBox, useListBoxSection, useOption } from 'react-aria';
import type { ListState } from 'react-stately';
import { Option } from '.... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Select/SelectLegacy.tsx | packages/fuselage/src/components/Select/SelectLegacy.tsx | import {
useMergedRefs,
useEffectEvent,
useResizeObserver,
useOutsideClick,
} from '@rocket.chat/fuselage-hooks';
import type { DependencyList, ElementType, ReactNode } from 'react';
import { useState, useRef, useEffect, forwardRef, useMemo } from 'react';
import { isForwardRefType } from '../../helpers/isForw... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Select/index.ts | packages/fuselage/src/components/Select/index.ts | export {
default as SelectLegacy,
type SelectProps,
type SelectOption,
} from './SelectLegacy';
export { default as Select } from './Select';
export {
default as SelectFiltered,
type SelectFilteredProps,
} from './SelectFiltered';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Select/SelectAnchorParams.ts | packages/fuselage/src/components/Select/SelectAnchorParams.ts | import type {
FocusEventHandler,
KeyboardEventHandler,
MouseEventHandler,
ReactNode,
Ref,
} from 'react';
export type SelectAnchorParams = {
ref: Ref<HTMLInputElement>;
children: ReactNode;
disabled: boolean;
onClick: MouseEventHandler;
onBlur: FocusEventHandler;
onKeyUp: KeyboardEventHandler;
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ToastBar/ToastBar.tsx | packages/fuselage/src/components/ToastBar/ToastBar.tsx | import { css, keyframes } from '@rocket.chat/css-in-js';
import { type ReactNode, type AllHTMLAttributes, useId } from 'react';
import { Box } from '../Box';
import { IconButton } from '../Button';
import { Icon } from '../Icon';
export type ToastBarProps = {
variant?: 'info' | 'success' | 'error';
className?: st... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ToastBar/ToastBar.stories.tsx | packages/fuselage/src/components/ToastBar/ToastBar.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { action } from 'storybook/actions';
import ToastBar from './ToastBar';
export default {
title: 'Feedback/ToastBar',
component: ToastBar,
} satisfies Meta<typeof ToastBar>;
const Template: StoryFn<typeof ToastBar> = (args) => (
<ToastBar
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ToastBar/ToastBar.spec.tsx | packages/fuselage/src/components/ToastBar/ToastBar.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe } from 'jest-axe';
import { render } from '../../testing';
import * as stories from './ToastBar.stories';
const testCases = Object.values(composeStories(stories)).map((Story) => [
Story.storyName || 'Story',
Story,
]);
describe('[ToastBar ... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ToastBar/index.ts | packages/fuselage/src/components/ToastBar/index.ts | export { default as ToastBar, type ToastBarProps } from './ToastBar';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Card/Card.tsx | packages/fuselage/src/components/Card/Card.tsx | import { useBreakpoints } from '@rocket.chat/fuselage-hooks';
import type { AllHTMLAttributes } from 'react';
import { Box } from '../Box';
export type CardProps = {
horizontal?: boolean;
hero?: boolean;
clickable?: boolean;
} & Omit<AllHTMLAttributes<HTMLElement>, 'is'>;
const Card = ({ horizontal, hero, clic... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Card/CardHeader.tsx | packages/fuselage/src/components/Card/CardHeader.tsx | import type { AllHTMLAttributes, ReactNode } from 'react';
export type CardHeaderProps = {
children: ReactNode;
} & AllHTMLAttributes<HTMLElement>;
const CardHeader = ({ children, ...props }: CardHeaderProps) => (
<div className='rcx-card__header' {...props}>
{children}
</div>
);
export default CardHeader;... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Card/CardBody.tsx | packages/fuselage/src/components/Card/CardBody.tsx | import type { AllHTMLAttributes, CSSProperties, ReactNode } from 'react';
import { Box, type BoxProps } from '../Box';
export type CardBodyProps = {
flexDirection?: CSSProperties['flexDirection'];
height?: BoxProps['height'];
children: ReactNode;
} & Omit<AllHTMLAttributes<HTMLElement>, 'is'>;
const CardBody =... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Card/CardCol.tsx | packages/fuselage/src/components/Card/CardCol.tsx | import type { AllHTMLAttributes, ReactNode } from 'react';
export type CardColProps = {
children: ReactNode;
} & AllHTMLAttributes<HTMLElement>;
const CardCol = ({ children, ...props }: CardColProps) => (
<div className='rcx-card__col' {...props}>
{children}
</div>
);
export default CardCol;
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Card/CardTitle.tsx | packages/fuselage/src/components/Card/CardTitle.tsx | import type { AllHTMLAttributes, ReactNode } from 'react';
import { Box } from '../Box';
import { LabelInfo } from '../Label/LabelInfo';
export type CardTitleProps = {
children: ReactNode;
info?: string;
variant?: 'h3' | 'h4' | 'h5';
} & Omit<AllHTMLAttributes<HTMLElement>, 'is'>;
const CardTitle = ({
childr... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Card/Card.stories.tsx | packages/fuselage/src/components/Card/Card.stories.tsx | import type { Meta, StoryFn } from '@storybook/react-webpack5';
import { Avatar } from '../Avatar';
import { Badge } from '../Badge';
import { Box } from '../Box';
import { Button, IconButton } from '../Button';
import { FramedIcon } from '../FramedIcon';
import { Tag } from '../Tag';
import Card from './Card';
impor... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Card/index.ts | packages/fuselage/src/components/Card/index.ts | export { default as Card, type CardProps } from './Card';
export { default as CardBody, type CardBodyProps } from './CardBody';
export { default as CardCol, type CardColProps } from './CardCol';
export { default as CardRow, type CardRowProps } from './CardRow';
export { default as CardTitle, type CardTitleProps } from ... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Card/Card.spec.tsx | packages/fuselage/src/components/Card/Card.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe } from 'jest-axe';
import { render } from '../../testing';
import * as stories from './Card.stories';
const testCases = Object.values(composeStories(stories)).map((Story) => [
Story.storyName || 'Story',
Story,
]);
describe('[Card Renderin... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Card/CardDivider.tsx | packages/fuselage/src/components/Card/CardDivider.tsx | import { Divider } from '../Divider';
const CardDivider = () => (
<Divider width='x1' mi={24} mb='none' alignSelf='stretch' />
);
export default CardDivider;
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Card/CardControls.tsx | packages/fuselage/src/components/Card/CardControls.tsx | import type { HTMLAttributes } from 'react';
export type CardControlsProps = HTMLAttributes<HTMLDivElement>;
const CardControls = ({ ...props }: CardControlsProps) => (
<div className='rcx-card__controls' {...props} />
);
export default CardControls;
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Card/CardRow.tsx | packages/fuselage/src/components/Card/CardRow.tsx | import type { AllHTMLAttributes, ReactNode } from 'react';
export type CardRowProps = {
children: ReactNode;
} & AllHTMLAttributes<HTMLElement>;
const CardRow = ({ children, ...props }: CardRowProps) => (
<div className='rcx-card__row' {...props}>
{children}
</div>
);
export default CardRow;
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ToggleSwitch/ToggleSwitch.tsx | packages/fuselage/src/components/ToggleSwitch/ToggleSwitch.tsx | import type { AllHTMLAttributes, ReactNode } from 'react';
import { forwardRef } from 'react';
import { Box, type BoxProps } from '../Box';
export type ToggleSwitchProps = BoxProps &
AllHTMLAttributes<HTMLInputElement> & {
labelChildren?: ReactNode;
};
const ToggleSwitch = forwardRef<HTMLInputElement, Toggle... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ToggleSwitch/ToggleSwitch.stories.tsx | packages/fuselage/src/components/ToggleSwitch/ToggleSwitch.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { action } from 'storybook/actions';
import {
DECORATOR_LABEL,
PropsVariationSection,
} from '../../../.storybook/helpers';
import ToggleSwitch from './ToggleSwitch';
export default {
title: 'Inputs/ToggleSwitch',
component: ToggleSwitch,... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ToggleSwitch/index.ts | packages/fuselage/src/components/ToggleSwitch/index.ts | export {
default as ToggleSwitch,
type ToggleSwitchProps,
} from './ToggleSwitch';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ToggleSwitch/ToggleSwitch.spec.tsx | packages/fuselage/src/components/ToggleSwitch/ToggleSwitch.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe, toHaveNoViolations } from 'jest-axe';
import { render } from '../../testing';
import * as stories from './ToggleSwitch.stories';
expect.extend(toHaveNoViolations);
const testCases = Object.values(composeStories(stories)).map((Story) => [
St... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Grid/Grid.stories.tsx | packages/fuselage/src/components/Grid/Grid.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { Fragment } from 'react';
import { Table, TableBody, TableCell, TableHead, TableRow } from '../Table';
import { Tile } from '../Tile';
import Grid from './Grid';
import GridItem from './GridItem';
export default {
title: 'Layout/Grid',
compo... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Grid/Grid.tsx | packages/fuselage/src/components/Grid/Grid.tsx | import { Box, type BoxProps } from '../Box';
import GridItem from './GridItem';
export type GridProps = BoxProps & {
xs?: boolean;
sm?: boolean;
md?: boolean;
lg?: boolean;
xl?: boolean;
};
const Grid = ({ xs, sm, md, lg, xl, ...props }: GridProps) => (
<Box rcx-grid__wrapper>
<Box
rcx-grid
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Grid/Grid.spec.tsx | packages/fuselage/src/components/Grid/Grid.spec.tsx | import { render } from '../../testing';
import { Grid } from '.';
describe('[Grid Component]', () => {
it('renders Grid without crashing', () => {
render(<Grid />);
});
it('renders Grid.Item without crashing', () => {
render(<Grid.Item />);
});
});
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Grid/GridItem.tsx | packages/fuselage/src/components/Grid/GridItem.tsx | import { Box, type BoxProps } from '../Box';
export type GridItemProps = BoxProps & {
xs?: 1 | 2 | 3 | 4;
sm?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
md?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
lg?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
xl?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
};
const GridItem = ... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Grid/index.ts | packages/fuselage/src/components/Grid/index.ts | export { default as Grid, type GridProps } from './Grid';
export { default as GridItem, type GridItemProps } from './GridItem';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/NavBar/NavBar.spec.tsx | packages/fuselage/src/components/NavBar/NavBar.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe } from 'jest-axe';
import { SSRProvider } from 'react-aria';
import { render } from '../../testing';
import * as stories from './NavBar.stories';
const testCases = Object.values(composeStories(stories)).map((Story) => [
Story.storyName || 'St... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/NavBar/NavBarItem.tsx | packages/fuselage/src/components/NavBar/NavBarItem.tsx | import type { HTMLAttributes } from 'react';
import { forwardRef } from 'react';
import { appendClassName } from '../../helpers/appendClassName';
import { patchChildren } from '../../helpers/patchChildren';
import { IconButton } from '../Button';
import type { IconButtonProps } from '../Button/IconButton';
export typ... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/NavBar/NavBarGroup.tsx | packages/fuselage/src/components/NavBar/NavBarGroup.tsx | import { forwardRef } from 'react';
import type { ButtonGroupProps } from '../ButtonGroup';
import { ButtonGroup } from '../ButtonGroup';
export type NavBarGroupProps = ButtonGroupProps;
const NavBarGroup = forwardRef<HTMLDivElement, NavBarGroupProps>(
(props, ref) => (
<ButtonGroup className='rcx-navbar-group... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/NavBar/NavBar.stories.tsx | packages/fuselage/src/components/NavBar/NavBar.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { Avatar } from '../Avatar';
import { Box } from '../Box';
import { MenuV2 as Menu, MenuItem, MenuSection } from '../Menu';
import { MenuDisplayExample } from '../Menu/V2/Menu.stories';
import { avatarUrl } from '../Message/helpers';
import NavBar... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/NavBar/NavBarDivider.tsx | packages/fuselage/src/components/NavBar/NavBarDivider.tsx | import type { DividerProps } from '../Divider';
import { Divider } from '../Divider';
export type NavBarDividerProps = DividerProps;
const NavBarDivider = (props: NavBarDividerProps) => (
<Divider rcx-navbar-divider vertical {...props} />
);
export default NavBarDivider;
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/NavBar/NavBar.tsx | packages/fuselage/src/components/NavBar/NavBar.tsx | import type { HTMLAttributes } from 'react';
export type NavBarProps = HTMLAttributes<HTMLElement>;
const NavBar = (props: NavBarProps) => (
<nav className='rcx-navbar' {...props} />
);
export default NavBar;
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/NavBar/index.ts | packages/fuselage/src/components/NavBar/index.ts | export { default as NavBar, type NavBarProps } from './NavBar';
export { default as NavBarGroup, type NavBarGroupProps } from './NavBarGroup';
export { default as NavBarItem, type NavbarItemProps } from './NavBarItem';
export {
default as NavBarDivider,
type NavBarDividerProps,
} from './NavBarDivider';
export {
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/NavBar/NavBarSection.tsx | packages/fuselage/src/components/NavBar/NavBarSection.tsx | import type { ComponentType, HTMLAttributes, ReactElement } from 'react';
import { Fragment, Children, isValidElement } from 'react';
import NavBarDivider from './NavBarDivider';
import NavBarGroup from './NavBarGroup';
type ComponentWithDisplayName = {
displayName?: string;
props?: Record<string, unknown>;
} & C... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/UrlInput/UrlInput.stories.tsx | packages/fuselage/src/components/UrlInput/UrlInput.stories.tsx | import type { Meta, StoryFn } from '@storybook/react-webpack5';
import { PropsVariationSection } from '../../../.storybook/helpers';
import { Icon } from '../Icon';
import UrlInput from './UrlInput';
export default {
title: 'Inputs/UrlInput',
component: UrlInput,
} satisfies Meta<typeof UrlInput>;
export const ... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/UrlInput/UrlInput.spec.tsx | packages/fuselage/src/components/UrlInput/UrlInput.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe } from 'jest-axe';
import { render } from '../../testing';
import * as stories from './UrlInput.stories';
const { Default } = composeStories(stories);
describe('[UrlInput 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/UrlInput/UrlInput.tsx | packages/fuselage/src/components/UrlInput/UrlInput.tsx | import { forwardRef } from 'react';
import { InputBox, type InputBoxProps } from '../InputBox';
export type UrlInputProps = Omit<InputBoxProps, 'type'>;
const UrlInput = forwardRef<HTMLElement, UrlInputProps>(
function UrlInput(props, ref) {
return <InputBox type='url' ref={ref} {...props} />;
},
);
export ... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/UrlInput/index.ts | packages/fuselage/src/components/UrlInput/index.ts | export { default as UrlInput, type UrlInputProps } from './UrlInput';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Icon/Icon.spec.tsx | packages/fuselage/src/components/Icon/Icon.spec.tsx | import { render } from '../../testing';
import { Icon } from '.';
describe('[Icon Component]', () => {
it('renders without crashing', () => {
render(<Icon name='chat' />);
});
});
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Icon/Icon.stories.tsx | packages/fuselage/src/components/Icon/Icon.stories.tsx | import type { Keys } from '@rocket.chat/icons';
import nameToCharacterMapping from '@rocket.chat/icons';
import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { useState } from 'react';
import { Box } from '../Box';
import { Divider } from '../Divider';
import { InputBox } from '../InputBox';
import ... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Icon/Icon.tsx | packages/fuselage/src/components/Icon/Icon.tsx | import type { Keys as IconName } from '@rocket.chat/icons';
import nameToCharacterMapping from '@rocket.chat/icons';
import { forwardRef } from 'react';
import { Box, type BoxProps } from '../Box';
export type IconProps = Omit<BoxProps, 'name' | 'size'> & {
name: IconName;
size?: BoxProps['width'];
};
const Icon... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Icon/index.ts | packages/fuselage/src/components/Icon/index.ts | export { default as Icon, type IconProps } from './Icon';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Avatar/AvatarStack.tsx | packages/fuselage/src/components/Avatar/AvatarStack.tsx | import type { DetailedHTMLProps, HTMLAttributes } from 'react';
import flattenChildren from 'react-keyed-flatten-children';
import { prependClassName } from '../../helpers/prependClassName';
export type AvatarStackProps = DetailedHTMLProps<
HTMLAttributes<HTMLDivElement>,
HTMLDivElement
>;
const AvatarStack = ({... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Avatar/Avatar.spec.tsx | packages/fuselage/src/components/Avatar/Avatar.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe } from 'jest-axe';
import { render } from '../../testing';
import * as stories from './Avatar.stories';
const testCases = Object.values(composeStories(stories)).map((Story) => [
Story.storyName || 'Story',
Story,
]);
describe('[Avatar Comp... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Avatar/Avatar.stories.tsx | packages/fuselage/src/components/Avatar/Avatar.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { Box } from '../Box';
import { Margins } from '../Margins';
import Avatar from './Avatar';
import AvatarContainer from './AvatarContainer';
import AvatarStack from './AvatarStack';
export default {
title: 'Data Display/Avatar',
component: Av... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Avatar/index.ts | packages/fuselage/src/components/Avatar/index.ts | export { default as Avatar, type AvatarProps } from './Avatar';
export {
default as AvatarContainer,
type AvatarContainerProps,
} from './AvatarContainer';
export { default as AvatarStack, type AvatarStackProps } from './AvatarStack';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Avatar/AvatarContainer.tsx | packages/fuselage/src/components/Avatar/AvatarContainer.tsx | import type { HTMLAttributes } from 'react';
import { prependClassName } from '../../helpers/prependClassName';
export type AvatarContainerProps = {
size?:
| 'x16'
| 'x18'
| 'x20'
| 'x24'
| 'x28'
| 'x32'
| 'x36'
| 'x40'
| 'x48'
| 'x124'
| 'x200'
| 'x332';
} & HTMLAttr... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Avatar/Avatar.tsx | packages/fuselage/src/components/Avatar/Avatar.tsx | import type { AllHTMLAttributes } from 'react';
import AvatarContainer, { type AvatarContainerProps } from './AvatarContainer';
export type AvatarProps = AvatarContainerProps & {
rounded?: boolean;
objectFit?: boolean;
url: string;
} & Omit<AllHTMLAttributes<HTMLImageElement>, 'size'>;
const Avatar = ({
size... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/CodeSnippet/CodeSnippet.tsx | packages/fuselage/src/components/CodeSnippet/CodeSnippet.tsx | import type { ReactElement } from 'react';
import { Box, type BoxProps } from '../Box';
import { Button } from '../Button';
import { Skeleton } from '../Skeleton';
export type CodeSnippetProps = BoxProps & {
children: string;
buttonText?: string;
buttonDisabled?: boolean;
onClick?: () => void;
};
/**
* The ... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/CodeSnippet/CodeSnippet.spec.tsx | packages/fuselage/src/components/CodeSnippet/CodeSnippet.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe, toHaveNoViolations } from 'jest-axe';
import { render } from '../../testing';
import * as stories from './CodeSnippet.stories';
expect.extend(toHaveNoViolations);
const testCases = Object.values(composeStories(stories)).map((Story) => [
Sto... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/CodeSnippet/CodeSnippet.stories.tsx | packages/fuselage/src/components/CodeSnippet/CodeSnippet.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { action } from 'storybook/actions';
import CodeSnippet from './CodeSnippet';
export default {
title: 'Data Display/CodeSnippet',
component: CodeSnippet,
} satisfies Meta<typeof CodeSnippet>;
const Template: StoryFn<typeof CodeSnippet> = (arg... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/CodeSnippet/index.ts | packages/fuselage/src/components/CodeSnippet/index.ts | export { default as CodeSnippet, type CodeSnippetProps } from './CodeSnippet';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Margins/Margins.tsx | packages/fuselage/src/components/Margins/Margins.tsx | import { css } from '@rocket.chat/css-in-js';
import type { PropsWithChildren } from 'react';
import { useCallback } from 'react';
import { appendClassName } from '../../helpers/appendClassName';
import { patchChildren } from '../../helpers/patchChildren';
import { useStyle } from '../../hooks/useStyle';
import { marg... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Margins/Margins.spec.tsx | packages/fuselage/src/components/Margins/Margins.spec.tsx | import { render } from '../../testing';
import Margins from './Margins';
describe('[Margins Component]', () => {
it('renders without crashing', () => {
render(<Margins />);
});
it('patches non-`Box` children', () => {
const { container } = render(
<Margins all='10px'>
<div />
</Marg... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Margins/index.ts | packages/fuselage/src/components/Margins/index.ts | export { default as Margins, type MarginsProps } from './Margins';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Margins/Margins.stories.tsx | packages/fuselage/src/components/Margins/Margins.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { Box } from '../Box';
import { Button } from '../Button';
import { ButtonGroup } from '../ButtonGroup';
import { Tile } from '../Tile';
import Margins from './Margins';
export default {
title: 'Layout/Margins',
component: Margins,
paramete... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/EmailInput/EmailInput.spec.tsx | packages/fuselage/src/components/EmailInput/EmailInput.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe } from 'jest-axe';
import { render } from '../../testing';
import * as stories from './EmailInput.stories';
const { Default } = composeStories(stories);
describe('[EmailInput Component]', () => {
it('renders without crashing', () => {
co... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/EmailInput/index.ts | packages/fuselage/src/components/EmailInput/index.ts | export { default as EmailInput, type EmailInputProps } from './EmailInput';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/EmailInput/EmailInput.stories.tsx | packages/fuselage/src/components/EmailInput/EmailInput.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { PropsVariationSection } from '../../../.storybook/helpers';
import { Icon } from '../Icon';
import EmailInput from './EmailInput';
export default {
title: 'Inputs/EmailInput',
component: EmailInput,
} satisfies Meta<typeof EmailInput>;
con... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/EmailInput/EmailInput.tsx | packages/fuselage/src/components/EmailInput/EmailInput.tsx | import type { ReactNode } from 'react';
import { forwardRef } from 'react';
import { InputBox, type InputBoxProps } from '../InputBox';
export type EmailInputProps = Omit<InputBoxProps, 'type'> & {
addon?: ReactNode;
error?: string;
};
// Import from InputBox once it's converted to tsx
type InputType =
| 'butt... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/TelephoneInput/TelephoneInput.stories.tsx | packages/fuselage/src/components/TelephoneInput/TelephoneInput.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { PropsVariationSection } from '../../../.storybook/helpers';
import { Icon } from '../Icon';
import TelephoneInput from './TelephoneInput';
export default {
title: 'Inputs/TelephoneInput',
component: TelephoneInput,
} satisfies Meta<typeof T... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/TelephoneInput/TelephoneInput.tsx | packages/fuselage/src/components/TelephoneInput/TelephoneInput.tsx | import type { ReactNode } from 'react';
import { forwardRef } from 'react';
import { InputBox, type InputBoxProps } from '../InputBox';
export type TelephoneInputProps = Omit<InputBoxProps, 'type'> & {
addon?: ReactNode;
input?: ReactNode;
error?: string;
};
/**
* An input for telephone numbers.
*/
const Tel... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/TelephoneInput/index.ts | packages/fuselage/src/components/TelephoneInput/index.ts | export {
default as TelephoneInput,
type TelephoneInputProps,
} from './TelephoneInput';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/TelephoneInput/TelephoneInput.spec.tsx | packages/fuselage/src/components/TelephoneInput/TelephoneInput.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe } from 'jest-axe';
import { render } from '../../testing';
import * as stories from './TelephoneInput.stories';
const { Default } = composeStories(stories);
describe('[TelephoneInput 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/SelectInput/SelectInput.spec.tsx | packages/fuselage/src/components/SelectInput/SelectInput.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { axe } from 'jest-axe';
import { render } from '../../testing';
import * as stories from './SelectInput.stories';
const { Default } = composeStories(stories);
describe('[SelectInput 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/SelectInput/SelectInput.tsx | packages/fuselage/src/components/SelectInput/SelectInput.tsx | import type { FormEvent, ReactNode } from 'react';
import { forwardRef, useState, useCallback } from 'react';
import { Icon } from '../Icon';
import { InputBox, type InputBoxProps } from '../InputBox';
import SelectInputPlaceholder from './SelectInputPlaceholder';
type SelectInputOptions = readonly (readonly [string... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SelectInput/SelectInputOption.tsx | packages/fuselage/src/components/SelectInput/SelectInputOption.tsx | import { forwardRef } from 'react';
import { Box, type BoxProps } from '../Box';
export type SelectInputOptionProps = BoxProps;
const SelectInputOption = forwardRef<HTMLOptionElement, SelectInputOptionProps>(
function SelectInputOption(props, ref) {
return <Box is='option' rcx-input-box__option ref={ref} {...p... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SelectInput/SelectInputPlaceholder.tsx | packages/fuselage/src/components/SelectInput/SelectInputPlaceholder.tsx | import { forwardRef } from 'react';
import { Box, type BoxProps } from '../Box';
export type SelectInputPlaceholderProps = BoxProps;
const SelectInputPlaceholder = forwardRef<
HTMLOptionElement,
SelectInputPlaceholderProps
>(function Placeholder(props, ref) {
return <Box is='option' rcx-input-box__placeholder ... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SelectInput/index.ts | packages/fuselage/src/components/SelectInput/index.ts | export { default as SelectInput, type SelectInputProps } from './SelectInput';
export {
default as SelectInputOption,
type SelectInputOptionProps,
} from './SelectInputOption';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/SelectInput/SelectInput.stories.tsx | packages/fuselage/src/components/SelectInput/SelectInput.stories.tsx | import type { StoryFn, Meta } from '@storybook/react-webpack5';
import { PropsVariationSection } from '../../../.storybook/helpers';
import { Icon } from '../Icon';
import { SelectInputOption, SelectInput } from '.';
export default {
title: 'Inputs/SelectInput',
component: SelectInput,
subcomponents: {
Sel... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Message/MessageEmoji.tsx | packages/fuselage/src/components/Message/MessageEmoji.tsx | import type { MessageEmojiBaseProps } from './MessageEmojiBase';
import { MessageEmojiBase } from './MessageEmojiBase';
export type MessageEmojiProps = MessageEmojiBaseProps & {
big?: boolean;
};
const MessageEmoji = ({
name,
className,
image,
big,
...props
}: MessageEmojiProps) => (
<MessageEmojiBase
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Message/helpers.tsx | packages/fuselage/src/components/Message/helpers.tsx | import type { StoryFn } from '@storybook/react-webpack5';
import type { ReactNode } from 'react';
import { Avatar } from '../Avatar';
import { Box } from '../Box';
import Message from './Message';
import { MessageDivider } from './MessageDivider';
export const avatarUrl =
'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQ... | 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.