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/layout/src/index.ts | packages/layout/src/index.ts | import * as DarkModeProvider from './DarkModeProvider';
export * from './components';
export * from './layouts';
export { DarkModeProvider };
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/Types/FormPageLayoutStyleProps.ts | packages/layout/src/Types/FormPageLayoutStyleProps.ts | export type FormPageLayoutStyleProps = {
subTitleProps?: {
fontWeight?: string;
color?: string;
};
justifyContent?: string;
paddingEnd?: string;
};
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/Types/index.ts | packages/layout/src/Types/index.ts | import type { FormPageLayoutStyleProps } from './FormPageLayoutStyleProps';
export { FormPageLayoutStyleProps };
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/helpers/tokenFontFamilies.ts | packages/layout/src/helpers/tokenFontFamilies.ts | import typography from '@rocket.chat/fuselage-tokens/dist/typography.json';
const getTokenFontFamily = (
name: keyof typeof typography.fontFamilies,
): string =>
typography.fontFamilies[name]
.map((fontFace) => (fontFace.includes(' ') ? `'${fontFace}'` : fontFace))
.join(', ');
export const sans = getToke... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/index.ts | packages/layout/src/components/index.ts | import Form from './FormPageLayout';
import List from './List';
export { default as TooltipWrapper } from './TooltipWrapper';
export { default as BackgroundLayer } from './BackgroundLayer';
export { default as ActionLink } from './ActionLink';
export { default as LayoutLogo } from './LayoutLogo';
export * from './For... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/TooltipWrapper/TooltipWrapper.tsx | packages/layout/src/components/TooltipWrapper/TooltipWrapper.tsx | import {
AnimatedVisibility,
PositionAnimated,
Tooltip,
} from '@rocket.chat/fuselage';
import { useDebouncedState } from '@rocket.chat/fuselage-hooks';
import type {
ComponentProps,
Dispatch,
MutableRefObject,
ReactElement,
ReactNode,
Ref,
SetStateAction,
} from 'react';
import {
cloneElement,
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/TooltipWrapper/TooltipWrapper.spec.tsx | packages/layout/src/components/TooltipWrapper/TooltipWrapper.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { render } from '@testing-library/react';
import { axe } from 'jest-axe';
import * as stories from './TooltipWrapper.stories';
const testCases = Object.values(composeStories(stories)).map((Story) => [
Story.storyName || 'Story',
Story,
]);
test.e... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/TooltipWrapper/index.ts | packages/layout/src/components/TooltipWrapper/index.ts | export { default } from './TooltipWrapper';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/TooltipWrapper/TooltipWrapper.stories.tsx | packages/layout/src/components/TooltipWrapper/TooltipWrapper.stories.tsx | import { Box } from '@rocket.chat/fuselage';
import type { Meta, StoryFn } from '@storybook/react-webpack5';
import TooltipWrapper from './TooltipWrapper';
export default {
title: 'components/TooltipWrapper',
component: TooltipWrapper,
} satisfies Meta<typeof TooltipWrapper>;
export const WithRenderProp: StoryFn... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/List/List.spec.tsx | packages/layout/src/components/List/List.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { render } from '@testing-library/react';
import { axe } from 'jest-axe';
import * as stories from './List.stories';
const testCases = Object.values(composeStories(stories)).map((Story) => [
Story.storyName || 'Story',
Story,
]);
test.each(testCa... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/List/List.stories.tsx | packages/layout/src/components/List/List.stories.tsx | import type { Meta, StoryFn } from '@storybook/react-webpack5';
import List from './List';
import ListItem from './ListItem';
export default {
title: 'components/List',
component: List,
} satisfies Meta<typeof List>;
export const Default: StoryFn<typeof List> = () => (
<List>
<ListItem fontScale='h4'>List ... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/List/List.tsx | packages/layout/src/components/List/List.tsx | import { Margins, Palette } from '@rocket.chat/fuselage';
import type { ReactNode, ComponentProps, CSSProperties } from 'react';
import { ListComponent } from './List.styles';
const List = ({
children,
listStyleType,
icon,
spacing = 'x6',
color = Palette.text['font-default'].toString(),
}: {
children: Rea... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/List/List.styles.tsx | packages/layout/src/components/List/List.styles.tsx | import styled from '@rocket.chat/styled';
import type { CSSProperties } from 'react';
type ListComponentProps = {
color: NonNullable<CSSProperties['color']>;
icon?: string;
listStyleType: CSSProperties['listStyleType'];
};
export const ListComponent = styled(
'ul',
({
color: _color,
icon: _icon,
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/List/ListItem.tsx | packages/layout/src/components/List/ListItem.tsx | import { Box, Icon } from '@rocket.chat/fuselage';
import type { ComponentProps, ReactElement, ReactNode } from 'react';
const ListItem = ({
children,
icon,
iconColor = 'success',
fontScale = 'c1',
}: {
children: ReactNode;
icon?: ComponentProps<typeof Icon>['name'];
iconColor?: ComponentProps<typeof Ico... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/List/index.ts | packages/layout/src/components/List/index.ts | import List from './List';
import ListItem from './ListItem';
export default Object.assign(List, {
/**
* @deprecated prefer using named imports
* */
Item: ListItem,
});
export { List, ListItem };
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/ActionLink/ActionLink.tsx | packages/layout/src/components/ActionLink/ActionLink.tsx | import { Box } from '@rocket.chat/fuselage';
import type {
MouseEvent,
ComponentProps,
ReactElement,
ReactNode,
AnchorHTMLAttributes,
} from 'react';
import { useCallback } from 'react';
type ActionLinkProps = {
children: ReactNode;
href?: string;
fontScale?: ComponentProps<typeof Box>['fontScale'];
} ... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/ActionLink/ActionLink.spec.tsx | packages/layout/src/components/ActionLink/ActionLink.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { render } from '@testing-library/react';
import { axe } from 'jest-axe';
import * as stories from './ActionLink.stories';
const testCases = Object.values(composeStories(stories)).map((Story) => [
Story.storyName || 'Story',
Story,
]);
test.each(... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/ActionLink/index.ts | packages/layout/src/components/ActionLink/index.ts | export { default } from './ActionLink';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/ActionLink/ActionLink.stories.tsx | packages/layout/src/components/ActionLink/ActionLink.stories.tsx | import type { Meta, StoryFn } from '@storybook/react-webpack5';
import ActionLink from './ActionLink';
export default {
title: 'components/ActionLink',
component: ActionLink,
} satisfies Meta<typeof ActionLink>;
export const Default: StoryFn<typeof ActionLink> = () => (
<ActionLink>Default</ActionLink>
);
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/LayoutLogo/LayoutLogo.stories.tsx | packages/layout/src/components/LayoutLogo/LayoutLogo.stories.tsx | import type { Meta, StoryFn } from '@storybook/react-webpack5';
import LayoutLogo from './LayoutLogo';
export default {
title: 'components/LayoutLogo',
component: LayoutLogo,
} satisfies Meta<typeof LayoutLogo>;
export const Default: StoryFn<typeof LayoutLogo> = () => <LayoutLogo />;
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/LayoutLogo/LayoutLogo.tsx | packages/layout/src/components/LayoutLogo/LayoutLogo.tsx | import { Box } from '@rocket.chat/fuselage';
import { RocketChatLogo } from '@rocket.chat/logo';
import type { ReactElement } from 'react';
import { useDarkMode } from '../../DarkModeProvider';
import { useLayoutContext } from '../../contexts/LayoutContext';
const LayoutLogo = (): ReactElement => {
const { logo, lo... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/LayoutLogo/LayoutLogo.spec.tsx | packages/layout/src/components/LayoutLogo/LayoutLogo.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { render } from '@testing-library/react';
import { axe } from 'jest-axe';
import * as stories from './LayoutLogo.stories';
const testCases = Object.values(composeStories(stories)).map((Story) => [
Story.storyName || 'Story',
Story,
]);
test.each(... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/LayoutLogo/index.ts | packages/layout/src/components/LayoutLogo/index.ts | export { default } from './LayoutLogo';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/FormPageLayout/FormPageLayout.styles.tsx | packages/layout/src/components/FormPageLayout/FormPageLayout.styles.tsx | import styled from '@rocket.chat/styled';
import { sans } from '../../helpers/tokenFontFamilies';
export const Wrapper = styled('div')`
width: 100%;
box-sizing: border-box;
padding: 28px 16px;
display: flex;
flex-flow: column nowrap;
align-items: center;
justify-content: center;
@media (min-width: 14... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/FormPageLayout/FormSteps.tsx | packages/layout/src/components/FormPageLayout/FormSteps.tsx | import { Box } from '@rocket.chat/fuselage';
import type { ReactElement } from 'react';
import { useTranslation } from 'react-i18next';
type FormStepsProps = {
currentStep: number;
stepCount: number;
};
const FormSteps = ({
currentStep,
stepCount,
}: FormStepsProps): ReactElement => {
const { t } = useTrans... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/FormPageLayout/FormPageLayout.stories.tsx | packages/layout/src/components/FormPageLayout/FormPageLayout.stories.tsx | import type { Meta, StoryFn } from '@storybook/react-webpack5';
import Form from './Form';
import FormContainer from './FormContainer';
import FormFooter from './FormFooter';
import FormHeader from './FormHeader';
import FormSteps from './FormSteps';
import FormSubtitle from './FormSubtitle';
import FormTitle from './... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/FormPageLayout/FormPageLayout.spec.tsx | packages/layout/src/components/FormPageLayout/FormPageLayout.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { render } from '@testing-library/react';
import { axe } from 'jest-axe';
import * as stories from './FormPageLayout.stories';
const testCases = Object.values(composeStories(stories)).map((Story) => [
Story.storyName || 'Story',
Story,
]);
test.e... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/FormPageLayout/FormFooter.tsx | packages/layout/src/components/FormPageLayout/FormFooter.tsx | import { Box } from '@rocket.chat/fuselage';
import type { FormHTMLAttributes, ReactNode } from 'react';
import { forwardRef } from 'react';
const FormFooter = forwardRef<
HTMLElement,
Omit<FormHTMLAttributes<HTMLElement>, 'is'> & {
children: ReactNode;
}
>((props, ref) => (
<Box
is='footer'
mbs={2... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/FormPageLayout/FormContainer.tsx | packages/layout/src/components/FormPageLayout/FormContainer.tsx | import { Box } from '@rocket.chat/fuselage';
import type { ComponentProps } from 'react';
const FormContainer = (props: ComponentProps<typeof Box>) => <Box {...props} />;
export default FormContainer;
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/FormPageLayout/FormTitle.tsx | packages/layout/src/components/FormPageLayout/FormTitle.tsx | import { Box } from '@rocket.chat/fuselage';
import type { FormHTMLAttributes, ReactNode } from 'react';
import { forwardRef } from 'react';
const FormTitle = forwardRef<
HTMLElement,
Omit<FormHTMLAttributes<HTMLElement>, 'is'> & {
children: ReactNode;
}
>((props, ref) => (
<Box mbe={8} fontScale='h3' font... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/FormPageLayout/index.ts | packages/layout/src/components/FormPageLayout/index.ts | import Form from './Form';
import FormContainer from './FormContainer';
import FormFooter from './FormFooter';
import FormHeader from './FormHeader';
import * as FormPageLayout from './FormPageLayout.styles';
import FormSteps from './FormSteps';
import FormSubtitle from './FormSubtitle';
import FormTitle from './FormTi... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/FormPageLayout/Form.tsx | packages/layout/src/components/FormPageLayout/Form.tsx | import { Tile } from '@rocket.chat/fuselage';
import type { ReactElement, FormHTMLAttributes, ReactNode } from 'react';
import { forwardRef } from 'react';
const Form = forwardRef<
HTMLElement,
Omit<FormHTMLAttributes<HTMLFormElement>, 'is'> & {
children: ReactNode;
}
>(
({ ...props }, ref): ReactElement =... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/FormPageLayout/FormHeader.tsx | packages/layout/src/components/FormPageLayout/FormHeader.tsx | import { Box } from '@rocket.chat/fuselage';
import type { FormHTMLAttributes, ReactNode } from 'react';
import { forwardRef } from 'react';
const FormHeader = forwardRef<
HTMLElement,
Omit<FormHTMLAttributes<HTMLElement>, 'is'> & {
children: ReactNode;
}
>((props, ref) => <Box is='header' mbe={24} {...props... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/FormPageLayout/FormSubtitle.tsx | packages/layout/src/components/FormPageLayout/FormSubtitle.tsx | import { Box } from '@rocket.chat/fuselage';
import type { FormHTMLAttributes, ReactNode } from 'react';
import { forwardRef } from 'react';
const FormSubtitle = forwardRef<
HTMLElement,
Omit<FormHTMLAttributes<HTMLElement>, 'is'> & {
children: ReactNode;
}
>((props, ref) => <Box fontScale='p2' color='hint' ... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/BackgroundLayer/BackgroundLayer.tsx | packages/layout/src/components/BackgroundLayer/BackgroundLayer.tsx | import colors from '@rocket.chat/fuselage-tokens/colors.json';
import type { ReactElement, ReactNode } from 'react';
import { useMemo } from 'react';
import { renderToStaticMarkup } from 'react-dom/server';
import { useDarkMode } from '../../DarkModeProvider';
import { useLayoutContext } from '../../contexts/LayoutCon... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/BackgroundLayer/BackgroundImage.tsx | packages/layout/src/components/BackgroundLayer/BackgroundImage.tsx | const BackgroundImage = ({ backgroundColor }: { backgroundColor: string }) => (
<svg
width='1440'
height='896'
viewBox='0 0 1440 896'
fill='none'
xmlns='http://www.w3.org/2000/svg'
>
<g clipPath='url(#clip0)'>
<rect width='1440' height='896' fill='white' />
<rect
width='1... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/BackgroundLayer/BackgroundLayer.spec.tsx | packages/layout/src/components/BackgroundLayer/BackgroundLayer.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { render } from '@testing-library/react';
import { axe } from 'jest-axe';
import * as stories from './BackgroundLayer.stories';
const testCases = Object.values(composeStories(stories)).map((Story) => [
Story.storyName || 'Story',
Story,
]);
test.... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/BackgroundLayer/BackgroundLayer.styles.tsx | packages/layout/src/components/BackgroundLayer/BackgroundLayer.styles.tsx | import styled from '@rocket.chat/styled';
const filterWrapperProps = ({
backgroundColor: _backgroundColor,
color: _color,
backgroundImage: _backgroundImage,
...props
}: {
backgroundColor: string;
color: string;
backgroundImage: string;
}) => props;
export const Wrapper = styled('div', filterWrapperProps... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/BackgroundLayer/index.ts | packages/layout/src/components/BackgroundLayer/index.ts | export { default } from './BackgroundLayer';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/components/BackgroundLayer/BackgroundLayer.stories.tsx | packages/layout/src/components/BackgroundLayer/BackgroundLayer.stories.tsx | import { Tile } from '@rocket.chat/fuselage';
import type { StoryFn, Meta } from '@storybook/react-webpack5';
import BackgroundLayer from './BackgroundLayer';
export default {
title: 'components/BackgroundLayer',
component: BackgroundLayer,
parameters: {
layout: 'fullscreen',
},
} satisfies Meta<typeof Ba... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/index.ts | packages/layout/src/layouts/index.ts | export * from './HeroLayout';
export * from './HorizontalWizardLayout';
export * from './VerticalWizardLayout';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/HeroLayout/HeroLayout.tsx | packages/layout/src/layouts/HeroLayout/HeroLayout.tsx | import { Box, Margins } from '@rocket.chat/fuselage';
import type { ReactElement, ReactNode } from 'react';
import DarkModeProvider from '../../DarkModeProvider';
import BackgroundLayer from '../../components/BackgroundLayer';
import LayoutLogo from '../../components/LayoutLogo';
import type { LayoutContextValue } fro... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/HeroLayout/HeroLayoutSubtitle.tsx | packages/layout/src/layouts/HeroLayout/HeroLayoutSubtitle.tsx | import { Box } from '@rocket.chat/fuselage';
import type { ReactElement, ReactNode } from 'react';
const HeroLayoutSubtitle = ({
children,
}: {
children: ReactNode;
}): ReactElement => <Box fontScale='p1'>{children}</Box>;
export default HeroLayoutSubtitle;
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/HeroLayout/HeroLayoutTitle.tsx | packages/layout/src/layouts/HeroLayout/HeroLayoutTitle.tsx | import { Box } from '@rocket.chat/fuselage';
import type { ReactElement, ReactNode } from 'react';
const HeroLayoutTitle = ({
children,
}: {
children: ReactNode;
}): ReactElement => <Box fontScale='hero'>{children}</Box>;
export default HeroLayoutTitle;
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/HeroLayout/HeroLayout.stories.tsx | packages/layout/src/layouts/HeroLayout/HeroLayout.stories.tsx | import type { Meta, StoryFn } from '@storybook/react-webpack5';
import HeroLayout from './HeroLayout';
import HeroLayoutSubtitle from './HeroLayoutSubtitle';
import HeroLayoutTitle from './HeroLayoutTitle';
export default {
title: 'layouts/HeroLayout',
component: HeroLayout,
} satisfies Meta<typeof HeroLayout>;
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/HeroLayout/HeroLayout.spec.tsx | packages/layout/src/layouts/HeroLayout/HeroLayout.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { render } from '@testing-library/react';
import { axe } from 'jest-axe';
import * as stories from './HeroLayout.stories';
const testCases = Object.values(composeStories(stories)).map((Story) => [
Story.storyName || 'Story',
Story,
]);
test.each(... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/HeroLayout/index.ts | packages/layout/src/layouts/HeroLayout/index.ts | export { default as HeroLayout } from './HeroLayout';
export { default as HeroLayoutSubtitle } from './HeroLayoutSubtitle';
export { default as HeroLayoutTitle } from './HeroLayoutTitle';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/HorizontalWizardLayout/HorizontalWizardLayoutAside.tsx | packages/layout/src/layouts/HorizontalWizardLayout/HorizontalWizardLayoutAside.tsx | import type { ReactElement, ReactNode } from 'react';
import * as FormPageLayout from '../../components/FormPageLayout/FormPageLayout.styles';
import LayoutLogo from '../../components/LayoutLogo';
const HorizontalWizardLayoutAside = ({
children,
}: {
children: ReactNode;
}): ReactElement => (
<FormPageLayout.As... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/HorizontalWizardLayout/HorizontalWizardLayoutCaption.tsx | packages/layout/src/layouts/HorizontalWizardLayout/HorizontalWizardLayoutCaption.tsx | import { Box } from '@rocket.chat/fuselage';
import type { ReactElement, ReactNode } from 'react';
import { useDarkMode } from '../../DarkModeProvider';
const HorizontalWizardLayoutCaption = ({
children,
}: {
children: ReactNode;
}): ReactElement => {
const isDark = useDarkMode();
return (
<Box
disp... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/HorizontalWizardLayout/HorizontalWizardLayout.spec.tsx | packages/layout/src/layouts/HorizontalWizardLayout/HorizontalWizardLayout.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { render } from '@testing-library/react';
import { axe } from 'jest-axe';
import * as stories from './HorizontalWizardLayout.stories';
const testCases = Object.values(composeStories(stories)).map((Story) => [
Story.storyName || 'Story',
Story,
]);... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/HorizontalWizardLayout/HorizontalWizardLayout.tsx | packages/layout/src/layouts/HorizontalWizardLayout/HorizontalWizardLayout.tsx | import type { ReactElement, ReactNode } from 'react';
import DarkModeProvider from '../../DarkModeProvider';
import BackgroundLayer from '../../components/BackgroundLayer';
import * as FormPageLayout from '../../components/FormPageLayout/FormPageLayout.styles';
import type { LayoutContextValue } from '../../contexts/L... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/HorizontalWizardLayout/HorizontalWizardLayoutSubtitle.tsx | packages/layout/src/layouts/HorizontalWizardLayout/HorizontalWizardLayoutSubtitle.tsx | import type { ComponentProps, ReactElement } from 'react';
import * as FormPageLayout from '../../components/FormPageLayout/FormPageLayout.styles';
const HorizontalWizardLayoutSubtitle = (
props: ComponentProps<typeof FormPageLayout.Subtitle>,
): ReactElement => <FormPageLayout.Subtitle {...props} />;
export defau... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/HorizontalWizardLayout/HorizontalWizardLayout.stories.tsx | packages/layout/src/layouts/HorizontalWizardLayout/HorizontalWizardLayout.stories.tsx | import {
Field,
FieldDescription,
FieldError,
FieldHint,
FieldLabel,
FieldRow,
InputBoxSkeleton,
} from '@rocket.chat/fuselage';
import type { Meta, StoryFn } from '@storybook/react-webpack5';
import ActionLink from '../../components/ActionLink/ActionLink';
import {
Form,
FormHeader,
FormFooter,
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/HorizontalWizardLayout/HorizontalWizardTextHighlight.tsx | packages/layout/src/layouts/HorizontalWizardLayout/HorizontalWizardTextHighlight.tsx | import type { ReactNode } from 'react';
import { useDarkMode } from '../../DarkModeProvider';
import * as FormPageLayout from '../../components/FormPageLayout/FormPageLayout.styles';
export const HorizontalWizardTextHighlight = (props: {
children: ReactNode;
}) => {
const isDark = useDarkMode();
return <FormPag... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/HorizontalWizardLayout/HorizontalWizardLayoutFooter.tsx | packages/layout/src/layouts/HorizontalWizardLayout/HorizontalWizardLayoutFooter.tsx | import { Box } from '@rocket.chat/fuselage';
import type { ReactNode } from 'react';
const HorizontalWizardLayoutFooter = ({
children,
}: {
children: ReactNode;
}) => (
<Box display='flex' fontScale='h4' flexDirection='column' alignItems='center'>
{children}
</Box>
);
export default HorizontalWizardLayout... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/HorizontalWizardLayout/HorizontalWizardLayoutContent.tsx | packages/layout/src/layouts/HorizontalWizardLayout/HorizontalWizardLayoutContent.tsx | import type { ReactElement, ReactNode } from 'react';
import * as FormPageLayout from '../../components/FormPageLayout/FormPageLayout.styles';
const HorizontalWizardLayoutContent = ({
children,
}: {
children: ReactNode;
}): ReactElement => <FormPageLayout.Content>{children}</FormPageLayout.Content>;
export defau... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/HorizontalWizardLayout/HorizontalWizardLayoutTitle.tsx | packages/layout/src/layouts/HorizontalWizardLayout/HorizontalWizardLayoutTitle.tsx | import type { ComponentProps, ReactElement } from 'react';
import * as FormPageLayout from '../../components/FormPageLayout/FormPageLayout.styles';
const HorizontalWizardLayoutTitle = (
props: ComponentProps<typeof FormPageLayout.Title>,
): ReactElement => <FormPageLayout.Title {...props} />;
export default Horizo... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/HorizontalWizardLayout/index.ts | packages/layout/src/layouts/HorizontalWizardLayout/index.ts | export { default as HorizontalWizardLayoutDescription } from './HorizontalWizardLayoutDescription';
export { default as HorizontalWizardLayoutSubtitle } from './HorizontalWizardLayoutSubtitle';
export { default as HorizontalWizardLayoutTitle } from './HorizontalWizardLayoutTitle';
export { default as HorizontalWizardLa... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/HorizontalWizardLayout/HorizontalWizardLayoutDescription.tsx | packages/layout/src/layouts/HorizontalWizardLayout/HorizontalWizardLayoutDescription.tsx | import type { ComponentProps, ReactElement } from 'react';
import * as FormPageLayout from '../../components/FormPageLayout/FormPageLayout.styles';
const HorizontalWizardLayoutDescription = (
props: ComponentProps<typeof FormPageLayout.Description>,
): ReactElement => <FormPageLayout.Description {...props} />;
exp... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/VerticalWizardLayout/VerticalWizardLayout.spec.tsx | packages/layout/src/layouts/VerticalWizardLayout/VerticalWizardLayout.spec.tsx | import { composeStories } from '@storybook/react-webpack5';
import { render } from '@testing-library/react';
import { axe } from 'jest-axe';
import * as stories from './VerticalWizardLayout.stories';
const testCases = Object.values(composeStories(stories)).map((Story) => [
Story.storyName || 'Story',
Story,
]);
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/VerticalWizardLayout/VerticalWizardLayout.tsx | packages/layout/src/layouts/VerticalWizardLayout/VerticalWizardLayout.tsx | import { Box } from '@rocket.chat/fuselage';
import type { ReactElement, ReactNode } from 'react';
import DarkModeProvider from '../../DarkModeProvider';
import BackgroundLayer from '../../components/BackgroundLayer';
import LayoutLogo from '../../components/LayoutLogo';
import type { LayoutContextValue } from '../../... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/VerticalWizardLayout/VerticalWizardLayoutTitle.tsx | packages/layout/src/layouts/VerticalWizardLayout/VerticalWizardLayoutTitle.tsx | import { Box } from '@rocket.chat/fuselage';
import type { ReactNode } from 'react';
const VerticalWizardLayoutTitle = ({ children }: { children: ReactNode }) => (
<Box
fontWeight={500}
width='100%'
mbe={18}
fontSize='x42'
lineHeight='x62'
fontFamily='sans'
>
{children}
</Box>
);
exp... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/VerticalWizardLayout/VerticalWizardLayoutForm.tsx | packages/layout/src/layouts/VerticalWizardLayout/VerticalWizardLayoutForm.tsx | import { Tile } from '@rocket.chat/fuselage';
import type { ReactNode } from 'react';
const VerticalWizardLayoutForm = ({ children }: { children: ReactNode }) => (
<Tile padding={0} width='100%'>
{children}
</Tile>
);
export default VerticalWizardLayoutForm;
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/VerticalWizardLayout/VerticalWizardLayoutFooter.tsx | packages/layout/src/layouts/VerticalWizardLayout/VerticalWizardLayoutFooter.tsx | import { Box } from '@rocket.chat/fuselage';
import type { ReactNode } from 'react';
const VerticalWizardLayoutFooter = ({ children }: { children: ReactNode }) => (
<Box
display='flex'
fontScale='p2'
flexDirection='column'
justifyContent='flex-end'
pb={32}
>
{children}
</Box>
);
export d... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/VerticalWizardLayout/index.ts | packages/layout/src/layouts/VerticalWizardLayout/index.ts | export { default as VerticalWizardLayout } from './VerticalWizardLayout';
export { default as VerticalWizardLayoutForm } from './VerticalWizardLayoutForm';
export { default as VerticalWizardLayoutFooter } from './VerticalWizardLayoutFooter';
export { default as VerticalWizardLayoutTitle } from './VerticalWizardLayoutTi... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/layouts/VerticalWizardLayout/VerticalWizardLayout.stories.tsx | packages/layout/src/layouts/VerticalWizardLayout/VerticalWizardLayout.stories.tsx | import {
Field,
FieldDescription,
FieldError,
FieldHint,
FieldLabel,
FieldRow,
InputBoxSkeleton,
} from '@rocket.chat/fuselage';
import type { Meta, StoryFn } from '@storybook/react-webpack5';
import {
Form,
FormContainer,
FormFooter,
FormHeader,
FormSubtitle,
FormTitle,
} from '../../compone... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/layout/src/contexts/LayoutContext.ts | packages/layout/src/contexts/LayoutContext.ts | import type { ReactElement } from 'react';
import { createContext, useContext } from 'react';
export type LayoutContextValue = {
logo?: ReactElement;
logoDark?: ReactElement;
background?: string;
backgroundDark?: string;
forceDarkMode?: boolean;
};
export const LayoutContext = createContext<LayoutContextVal... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/logo/src/index.ts | packages/logo/src/index.ts | export { default as RocketChatLogo } from './RocketChatLogo';
export { default as TaggedRocketChatLogo } from './TaggedRocketChatLogo';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/logo/src/TaggedRocketChatLogo/TaggedRocketChatLogo.spec.tsx | packages/logo/src/TaggedRocketChatLogo/TaggedRocketChatLogo.spec.tsx | import { render } from '@testing-library/react';
import TaggedRocketChatLogo from './TaggedRocketChatLogo';
it('renders without crashing', () => {
render(<TaggedRocketChatLogo />);
});
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/logo/src/TaggedRocketChatLogo/TaggedRocketChatLogo.tsx | packages/logo/src/TaggedRocketChatLogo/TaggedRocketChatLogo.tsx | import colors from '@rocket.chat/fuselage-tokens/colors.json';
import type { HTMLAttributes, ReactElement } from 'react';
import RocketChatLogo from '../RocketChatLogo';
import { LogoContainer, LogoTag } from './TaggedRocketChatLogo.styles';
type TaggedRocketChatLogoProps = {
tagTitle?: string;
tagBackground?: s... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/logo/src/TaggedRocketChatLogo/TaggedRocketChatLogo.styles.tsx | packages/logo/src/TaggedRocketChatLogo/TaggedRocketChatLogo.styles.tsx | import styled from '@rocket.chat/styled';
const tagStyleProps = ({
color: _color,
backgroundColor: _backgroundColor,
...props
}: {
color: string;
backgroundColor: string;
}) => props;
const containerProps = ({ width: _width, ...props }: { width?: string }) =>
props;
export const LogoContainer = styled('d... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/logo/src/TaggedRocketChatLogo/index.ts | packages/logo/src/TaggedRocketChatLogo/index.ts | export { default } from './TaggedRocketChatLogo';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/logo/src/RocketChatLogo/RocketChatLogo.tsx | packages/logo/src/RocketChatLogo/RocketChatLogo.tsx | import colors from '@rocket.chat/fuselage-tokens/colors.json';
import { useId, type ReactElement, type SVGAttributes } from 'react';
type RocketChatLogoProps = {
color?: SVGAttributes<SVGSVGElement>['fill'];
};
const RocketChatLogo = ({
color = colors.r400,
}: RocketChatLogoProps): ReactElement => {
const title... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/logo/src/RocketChatLogo/index.ts | packages/logo/src/RocketChatLogo/index.ts | export { default } from './RocketChatLogo';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/logo/src/RocketChatLogo/RocketChatLogo.spec.tsx | packages/logo/src/RocketChatLogo/RocketChatLogo.spec.tsx | import { render } from '@testing-library/react';
import RocketChatLogo from './RocketChatLogo';
it('renders without crashing', () => {
render(<RocketChatLogo />);
});
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/styled/src/styled.ts | packages/styled/src/styled.ts | import {
attachRules,
createClassName,
css,
escapeName,
transpile,
} from '@rocket.chat/css-in-js';
import type {
DetailedHTMLProps,
ForwardRefExoticComponent,
ForwardRefRenderFunction,
HTMLAttributes,
PropsWithoutRef,
RefAttributes,
SVGProps,
} from 'react';
import {
createElement,
forwardR... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/styled/src/styled.spec.ts | packages/styled/src/styled.spec.ts | import { render } from '@testing-library/react';
import { createElement } from 'react';
import styled from './styled';
it('should create a styled component', () => {
const component = styled('div')`
color: rebeccapurple;
`;
render(createElement(component));
const styleElement = document.getElementsByTag... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/styled/src/index.ts | packages/styled/src/index.ts | export { default } from './styled';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/css-supports/src/index.ts | packages/css-supports/src/index.ts | import { memoize } from '@rocket.chat/memo';
export const cssSupports: (value: string) => boolean =
typeof window !== 'undefined' &&
typeof window.CSS !== 'undefined' &&
window.CSS.supports
? memoize((value: string) => window.CSS.supports(value))
: () => false;
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/stylis-logical-props-middleware/src/middleware.ts | packages/stylis-logical-props-middleware/src/middleware.ts | import { cssSupports } from '@rocket.chat/css-supports';
import type { Element, Middleware } from 'stylis';
import { node, RULESET, serialize } from 'stylis';
import type { RuleSet } from './elements';
import { attachDeclaration, isDeclaration, isRuleSet } from './elements';
import { compileOperations } from './operat... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/stylis-logical-props-middleware/src/operations.ts | packages/stylis-logical-props-middleware/src/operations.ts | import type { RuleSet, Declaration } from './elements';
import { attachDeclaration } from './elements';
export type Operation = (
value: Declaration['children'],
ruleSet: Readonly<RuleSet>,
ltrRuleSet: Readonly<RuleSet>,
rtlRuleSet: Readonly<RuleSet>,
) => void;
export const compileOperations = ({
isPropert... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/stylis-logical-props-middleware/src/index.ts | packages/stylis-logical-props-middleware/src/index.ts | import { createLogicalPropertiesMiddleware } from './middleware';
export { createLogicalPropertiesMiddleware } from './middleware';
export default createLogicalPropertiesMiddleware();
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/stylis-logical-props-middleware/src/elements.ts | packages/stylis-logical-props-middleware/src/elements.ts | import type { Element } from 'stylis';
import { DECLARATION, node, RULESET } from 'stylis';
export type RuleSet = Element & {
type: typeof RULESET;
children: Element[];
props: string[];
};
export type Declaration = Element & {
type: typeof DECLARATION;
props: string;
children: string;
};
export const isR... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/memo/src/memoize.spec.ts | packages/memo/src/memoize.spec.ts | import { memoize, clear } from './memoize';
it('should memoize a function that takes no parameter', () => {
const fn = jest.fn(() => 'foo');
const memoized = jest.fn(memoize(fn));
memoized(undefined);
memoized(undefined);
expect(memoized).toHaveBeenCalledTimes(2);
expect(fn).toHaveBeenCalledTimes(1);
... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/memo/src/memoize.ts | packages/memo/src/memoize.ts | type MemoizableFunction<T, A, R> = (this: T, arg: A) => R;
type MemoizedFunction<T, A, R> = (this: T, arg: A) => R;
interface Options {
maxAge: number;
}
const store = new WeakMap<
MemoizableFunction<unknown, unknown, unknown>,
Map<unknown, unknown>
>();
const isCachedValue = <A, R>(
cachedValue: R | undefin... | typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
RocketChat/fuselage | https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/memo/src/index.ts | packages/memo/src/index.ts | export { memoize, clear } from './memoize';
| typescript | MIT | 28b7a4a51c6c5bf72182f3b708965b1abfc36b38 | 2026-01-05T04:58:51.149339Z | false |
retrozinndev/colorshell | https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/config.ts | src/config.ts | import { Config } from "./modules/config";
import { NightLight } from "./modules/nightlight";
import { WallpaperPositioning, WalMode } from "./modules/wallpaper";
import GLib from "gi://GLib?version=2.0";
const generalConfigDefaults = {
notifications: {
/** low-priority notification timeout
* ... | typescript | BSD-3-Clause | 0678c32649762315a4347b803609850278568b7f | 2026-01-05T04:52:41.246810Z | false |
retrozinndev/colorshell | https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/compositors.ts | src/compositors.ts | import GLib from "gi://GLib?version=2.0";
import { Compositor } from "./modules/compositors";
import { CompositorHyprland } from "./modules/compositors/hyprland";
const desktopName = GLib.getenv("XDG_CURRENT_DESKTOP")?.toLowerCase();
switch(desktopName) {
case "hyprland":
Compositor.instance = new Compos... | typescript | BSD-3-Clause | 0678c32649762315a4347b803609850278568b7f | 2026-01-05T04:52:41.246810Z | false |
retrozinndev/colorshell | https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/windows.ts | src/windows.ts | import { Astal } from "ags/gtk4";
import { Shell } from "./app";
import GObject, { getter, register, signal } from "ags/gobject";
import { variableToBoolean } from "./modules/utils";
import { createRoot, getScope, onCleanup } from "ags";
import { Bar } from "./window/bar";
import { OSD } from "./window/osd";
import { C... | typescript | BSD-3-Clause | 0678c32649762315a4347b803609850278568b7f | 2026-01-05T04:52:41.246810Z | false |
retrozinndev/colorshell | https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/app.ts | src/app.ts | import "ags/overrides"; // thanks Aylur!!
import "./config";
import "./compositors";
import {
PluginApps,
PluginClipboard,
PluginMedia,
PluginShell,
PluginWallpapers,
PluginWebSearch,
PluginKill
} from "./runner/plugins";
import { handleArguments } from "./modules/arg-handler";
import ... | typescript | BSD-3-Clause | 0678c32649762315a4347b803609850278568b7f | 2026-01-05T04:52:41.246810Z | false |
retrozinndev/colorshell | https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/env.d.ts | src/env.d.ts | declare const SRC: string
declare const DEVEL: boolean;
declare const GRESOURCES_FILE: string;
declare const COLORSHELL_VERSION: string;
declare module "inline:*" {
const content: string
export default content
}
declare module "*.scss" {
const content: string
export default content
}
declare module "... | typescript | BSD-3-Clause | 0678c32649762315a4347b803609850278568b7f | 2026-01-05T04:52:41.246810Z | false |
retrozinndev/colorshell | https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/floating-notifications/index.tsx | src/window/floating-notifications/index.tsx | import { Astal, Gdk, Gtk } from "ags/gtk4";
import { createBinding, createComputed, Scope } from "ags";
import { Notifications } from "../../modules/notifications";
import { Notification } from "../../widget/Notification";
import { generalConfig } from "../../config";
import { createScopedConnection } from "../../modul... | typescript | BSD-3-Clause | 0678c32649762315a4347b803609850278568b7f | 2026-01-05T04:52:41.246810Z | false |
retrozinndev/colorshell | https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/logout-menu/index.tsx | src/window/logout-menu/index.tsx | import { Astal, Gdk, Gtk } from "ags/gtk4";
import { execAsync } from "ags/process";
import { generalConfig } from "../../config";
import { AskPopup } from "../../widget/AskPopup";
import { Notifications } from "../../modules/notifications";
import { NightLight } from "../../modules/nightlight";
import { time } from ".... | typescript | BSD-3-Clause | 0678c32649762315a4347b803609850278568b7f | 2026-01-05T04:52:41.246810Z | false |
retrozinndev/colorshell | https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/control-center/index.tsx | src/window/control-center/index.tsx | import { Astal, Gtk } from "ags/gtk4";
import { PopupWindow } from "../../widget/PopupWindow";
import { QuickActions } from "./widgets/QuickActions";
import { NotifHistory } from "./widgets/NotifHistory";
import { Tiles } from "./widgets/tiles";
import { Sliders } from "./widgets/Sliders";
import { generalConfig } from... | typescript | BSD-3-Clause | 0678c32649762315a4347b803609850278568b7f | 2026-01-05T04:52:41.246810Z | false |
retrozinndev/colorshell | https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/control-center/widgets/QuickActions.tsx | src/window/control-center/widgets/QuickActions.tsx | import { Gtk } from "ags/gtk4";
import { Windows } from "../../../windows";
import { Wallpaper } from "../../../modules/wallpaper";
import { execApp } from "../../../modules/apps";
import { Accessor } from "ags";
import { createPoll } from "ags/time";
import GLib from "gi://GLib?version=2.0";
import Gio from "gi://Gio... | typescript | BSD-3-Clause | 0678c32649762315a4347b803609850278568b7f | 2026-01-05T04:52:41.246810Z | false |
retrozinndev/colorshell | https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/control-center/widgets/Sliders.tsx | src/window/control-center/widgets/Sliders.tsx | import { Astal, Gtk } from "ags/gtk4";
import { Wireplumber } from "../../../modules/volume";
import { Pages } from "./pages";
import { PageSound } from "./pages/Sound";
import { PageMicrophone } from "./pages/Microphone";
import { createBinding, With } from "ags";
import { Backlights } from "../../../modules/backlight... | typescript | BSD-3-Clause | 0678c32649762315a4347b803609850278568b7f | 2026-01-05T04:52:41.246810Z | false |
retrozinndev/colorshell | https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/control-center/widgets/NotifHistory.tsx | src/window/control-center/widgets/NotifHistory.tsx | import { Gdk, Gtk } from "ags/gtk4";
import { HistoryNotification, Notifications } from "../../../modules/notifications";
import { Notification } from "../../../widget/Notification";
import { tr } from "../../../i18n/intl";
import { createBinding, For } from "ags";
import AstalNotifd from "gi://AstalNotifd";
export ... | typescript | BSD-3-Clause | 0678c32649762315a4347b803609850278568b7f | 2026-01-05T04:52:41.246810Z | false |
retrozinndev/colorshell | https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/control-center/widgets/Page.tsx | src/window/control-center/widgets/Page.tsx | import { Gtk } from "ags/gtk4";
import { Separator } from "../../../widget/Separator";
import { Accessor, createBinding, createRoot, For, Node } from "ags";
import { gtype, property, register } from "ags/gobject";
import { variableToBoolean } from "../../../modules/utils";
import Pango from "gi://Pango?version=1.0";
i... | typescript | BSD-3-Clause | 0678c32649762315a4347b803609850278568b7f | 2026-01-05T04:52:41.246810Z | false |
retrozinndev/colorshell | https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/control-center/widgets/tiles/Recording.tsx | src/window/control-center/widgets/tiles/Recording.tsx | import { Tile } from "./Tile";
import { Recording } from "../../../../modules/recording";
import { tr } from "../../../../i18n/intl";
import { isInstalled } from "../../../../modules/utils";
import { createBinding, createComputed } from "ags";
export const TileRecording = () =>
<Tile title={tr("control_center.ti... | typescript | BSD-3-Clause | 0678c32649762315a4347b803609850278568b7f | 2026-01-05T04:52:41.246810Z | false |
retrozinndev/colorshell | https://github.com/retrozinndev/colorshell/blob/0678c32649762315a4347b803609850278568b7f/src/window/control-center/widgets/tiles/DoNotDisturb.tsx | src/window/control-center/widgets/tiles/DoNotDisturb.tsx | import { Notifications } from "../../../../modules/notifications";
import { Tile } from "./Tile";
import { tr } from "../../../../i18n/intl";
import { createBinding } from "ags";
export const TileDND = () =>
<Tile title={tr("control_center.tiles.dnd.title")}
description={createBinding(Notifications.getDefau... | typescript | BSD-3-Clause | 0678c32649762315a4347b803609850278568b7f | 2026-01-05T04:52:41.246810Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.