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/ContextualbarV2/Contextualbar.spec.tsx
packages/fuselage/src/components/ContextualbarV2/Contextualbar.spec.tsx
import { composeStories } from '@storybook/react-webpack5'; import { axe, toHaveNoViolations } from 'jest-axe'; import { render } from '../../testing'; import * as stories from './Contextualbar.stories'; expect.extend(toHaveNoViolations); const testCases = Object.values(composeStories(stories)).map((Story) => [ S...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ContextualbarV2/ContextualbarTitle.tsx
packages/fuselage/src/components/ContextualbarV2/ContextualbarTitle.tsx
import { memo } from 'react'; import { Box, type BoxProps } from '../Box'; export type ContextualbarTitleProps = BoxProps; const ContextualbarTitle = (props: ContextualbarTitleProps) => ( <Box flexShrink={1} flexGrow={1} fontScale='h5' withTruncatedText {...props} /> ); export default memo(C...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ContextualbarV2/ContextualbarHeader.tsx
packages/fuselage/src/components/ContextualbarV2/ContextualbarHeader.tsx
import { css } from '@rocket.chat/css-in-js'; import { memo } from 'react'; import { Box, type BoxProps } from '../Box'; export type ContextualbarHeaderProps = BoxProps; const ContextualbarHeader = ({ children, ...props }: ContextualbarHeaderProps) => ( <Box display='flex' alignItems='center' heigh...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ContextualbarV2/ContextualbarFooter.tsx
packages/fuselage/src/components/ContextualbarV2/ContextualbarFooter.tsx
import { forwardRef, memo } from 'react'; import { Box, type BoxProps } from '../Box'; export type ContextualbarFooterProps = BoxProps; const ContextualbarFooter = forwardRef<HTMLElement, ContextualbarFooterProps>( function ContextualbarFooter({ children, ...props }, ref) { return ( <Box ref={ref} pi={16...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ContextualbarV2/ContextualbarButton.tsx
packages/fuselage/src/components/ContextualbarV2/ContextualbarButton.tsx
import { memo } from 'react'; import { Button, type ButtonProps } from '../Button'; export type ContextualbarButtonProps = ButtonProps; const ContextualbarButton = (props: ContextualbarButtonProps) => ( <Button {...props} /> ); export default memo(ContextualbarButton);
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ContextualbarV2/ContextualbarSkeleton.tsx
packages/fuselage/src/components/ContextualbarV2/ContextualbarSkeleton.tsx
import { memo } from 'react'; import { Box, type BoxProps } from '../Box'; import { Skeleton } from '../Skeleton'; import Contextualbar from './Contextualbar'; import ContextualbarHeader from './ContextualbarHeader'; export type ContextualbarSkeletonProps = BoxProps; const ContextualbarSkeleton = (props: Contextual...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ContextualbarV2/Contextualbar.tsx
packages/fuselage/src/components/ContextualbarV2/Contextualbar.tsx
import { forwardRef, memo } from 'react'; import { Box, type BoxProps } from '../Box'; export type ContextualbarProps = BoxProps; /** * The `Contextualbar` has the purpose to persist and input information about the scope of the related page. */ const Contextualbar = forwardRef<HTMLElement, ContextualbarProps>( f...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ContextualbarV2/Contextualbar.stories.tsx
packages/fuselage/src/components/ContextualbarV2/Contextualbar.stories.tsx
import type { StoryFn, Meta } from '@storybook/react-webpack5'; import { action } from 'storybook/actions'; import { Box } from '../Box'; import { Button, IconButton } from '../Button'; import { ButtonGroup } from '../ButtonGroup'; import { Icon } from '../Icon'; import { InputBox } from '../InputBox'; import { Con...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ContextualbarV2/ContextualbarActions.tsx
packages/fuselage/src/components/ContextualbarV2/ContextualbarActions.tsx
import { memo } from 'react'; import { ButtonGroup, type ButtonGroupProps } from '../ButtonGroup'; export type ContextualbarActionsProps = ButtonGroupProps; const ContextualbarActions = (props: ContextualbarActionsProps) => ( <ButtonGroup {...props} /> ); export default memo(ContextualbarActions);
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ContextualbarV2/ContextualbarContent.tsx
packages/fuselage/src/components/ContextualbarV2/ContextualbarContent.tsx
import { forwardRef, memo } from 'react'; import { Box, type BoxProps } from '../Box'; export type ContextualbarContentProps = BoxProps; const ContextualbarContent = forwardRef<HTMLElement, ContextualbarContentProps>( function ContextualbarContent(props, ref) { return ( <Box ref={ref} rcx...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ContextualbarV2/ContextualbarAction.tsx
packages/fuselage/src/components/ContextualbarV2/ContextualbarAction.tsx
import { memo } from 'react'; import { IconButton, type IconButtonProps } from '../Button'; export type ContextualbarActionProps = { name: IconButtonProps['icon']; } & Omit<IconButtonProps, 'name' | 'icon'>; const ContextualbarAction = ({ name, ...props }: ContextualbarActionProps) => ( <IconButton {...props} sm...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ContextualbarV2/index.ts
packages/fuselage/src/components/ContextualbarV2/index.ts
export { default as ContextualbarV2, type ContextualbarProps as ContextualbarV2Props, } from './Contextualbar'; export { default as ContextualbarV2Action, type ContextualbarActionProps as ContextualbarV2ActionProps, } from './ContextualbarAction'; export { default as ContextualbarV2Actions, type Contextualb...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ContextualbarV2/ContextualbarIcon.tsx
packages/fuselage/src/components/ContextualbarV2/ContextualbarIcon.tsx
import { memo } from 'react'; import { Icon, type IconProps } from '../Icon'; export type ContextualbarIconProps = IconProps; const ContextualbarIcon = (props: ContextualbarIconProps) => ( <Icon {...props} pi={2} size='x20' /> ); export default memo(ContextualbarIcon);
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ContextualbarV2/ContextualbarEmptyContent.tsx
packages/fuselage/src/components/ContextualbarV2/ContextualbarEmptyContent.tsx
import { forwardRef, memo } from 'react'; import { StatesIcon, States, StatesTitle, StatesSubtitle, type StatesIconProps, } from '../States'; import type { ContextualbarContentProps } from './ContextualbarContent'; import ContextualbarContent from './ContextualbarContent'; export type ContextualbarEmptyCon...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidepanel/Sidepanel.stories.tsx
packages/fuselage/src/components/Sidepanel/Sidepanel.stories.tsx
import type { Meta, StoryFn } from '@storybook/react-webpack5'; import { Avatar, Box, Icon, IconButton, InputBox, SidebarV2ItemTitle, SidebarV2ItemCol, SidebarV2ItemBadge, SidebarV2ItemIcon, SidebarV2ItemMenu, SidebarV2ItemContent, SidebarV2ItemRow, SidebarV2Item, SidebarV2ItemTimestamp, ...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidepanel/SidepanelSectionAction.tsx
packages/fuselage/src/components/Sidepanel/SidepanelSectionAction.tsx
import type { HTMLAttributes } from 'react'; export type SidepanelSectionActionProps = HTMLAttributes<HTMLDivElement>; const SidepanelSectionAction = ({ className, ...props }: SidepanelSectionActionProps) => ( <div className={['rcx-sidepanel-section__action', className] .filter(Boolean) .join(' ...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidepanel/SidepanelSection.tsx
packages/fuselage/src/components/Sidepanel/SidepanelSection.tsx
import type { HTMLAttributes } from 'react'; export type SidepanelSectionProps = HTMLAttributes<HTMLDivElement>; const SidepanelSection = ({ className, ...props }: SidepanelSectionProps) => ( <div className={['rcx-sidepanel-section', className].filter(Boolean).join(' ')} {...props} /> ); export default S...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidepanel/SidepanelListItem.tsx
packages/fuselage/src/components/Sidepanel/SidepanelListItem.tsx
import type { HTMLAttributes } from 'react'; import { forwardRef } from 'react'; export type SidepanelListItemProps = HTMLAttributes<HTMLDivElement>; const SidepanelListItem = forwardRef<HTMLDivElement, SidepanelListItemProps>( function SidepanelListItem({ className, ...props }, ref) { return ( <div ...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidepanel/SidepanelHeader.tsx
packages/fuselage/src/components/Sidepanel/SidepanelHeader.tsx
import type { HTMLAttributes } from 'react'; import SidepanelDivider from './SidepanelDivider'; export type SidepanelHeaderProps = HTMLAttributes<HTMLDivElement>; const SidepanelHeader = ({ className, ...props }: SidepanelHeaderProps) => ( <div className='rcx-sidepanel-header-wrapper'> <div className={['...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidepanel/SidepanelHeaderTitle.tsx
packages/fuselage/src/components/Sidepanel/SidepanelHeaderTitle.tsx
import type { HTMLAttributes } from 'react'; export type SidepanelHeaderTitleProps = HTMLAttributes<HTMLDivElement>; const SidepanelHeaderTitle = ({ className, ...props }: SidepanelHeaderTitleProps) => ( <div className={['rcx-sidepanel-header__title', className] .filter(Boolean) .join(' ')} ...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidepanel/Sidepanel.tsx
packages/fuselage/src/components/Sidepanel/Sidepanel.tsx
import type { HTMLAttributes } from 'react'; export type SidepanelProps = HTMLAttributes<HTMLDivElement>; const Sidepanel = ({ className, ...props }: SidepanelProps) => ( <div className={['rcx-sidepanel', className].filter(Boolean).join(' ')} {...props} /> ); export default Sidepanel;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidepanel/Sidepanel.spec.tsx
packages/fuselage/src/components/Sidepanel/Sidepanel.spec.tsx
import { composeStories } from '@storybook/react-webpack5'; import { axe } from 'jest-axe'; import { render } from '../../testing'; import * as stories from './Sidepanel.stories'; const testCases = Object.values(composeStories(stories)).map((Story) => [ Story.storyName || 'Story', Story, ]); test.each(testCases...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidepanel/index.ts
packages/fuselage/src/components/Sidepanel/index.ts
export { default as Sidepanel, type SidepanelProps } from './Sidepanel'; export { default as SidepanelSection, type SidepanelSectionProps, } from './SidepanelSection'; export { default as SidepanelSectionAction, type SidepanelSectionActionProps, } from './SidepanelSectionAction'; export { default as Sidepanel...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidepanel/SidepanelList.tsx
packages/fuselage/src/components/Sidepanel/SidepanelList.tsx
import type { HTMLAttributes } from 'react'; import { forwardRef } from 'react'; export type SidepanelListProps = HTMLAttributes<HTMLDivElement>; const SidepanelList = forwardRef<HTMLDivElement, SidepanelListProps>( function SidepanelList({ className, ...props }, ref) { return ( <div role='list' ...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Sidepanel/SidepanelDivider.tsx
packages/fuselage/src/components/Sidepanel/SidepanelDivider.tsx
import { Divider } from '../Divider'; const SidepanelDivider = () => ( <Divider rcx-sidepanel--divider mbs={-2} mbe={0} /> ); export default SidepanelDivider;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Box/stylingProps.ts
packages/fuselage/src/components/Box/stylingProps.ts
import type { cssFn } from '@rocket.chat/css-in-js'; import { css } from '@rocket.chat/css-in-js'; import type { CSSProperties } from 'react'; import type { Var } from '../../Theme'; import { Palette } from '../../Theme'; import { fromCamelToKebab } from '../../helpers/fromCamelToKebab'; import { borderRadius, bor...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Box/typography.stories.tsx
packages/fuselage/src/components/Box/typography.stories.tsx
import type { StoryFn, Meta } from '@storybook/react-webpack5'; import { Divider } from '../Divider'; import Box from './Box'; export default { title: 'Layout/Box/Typography', component: Box, } satisfies Meta<typeof Box>; export const FontFamilies: StoryFn<typeof Box> = () => ( <Box color='default'> <Box ...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Box/colors.stories.tsx
packages/fuselage/src/components/Box/colors.stories.tsx
import type { StoryFn, Meta, StoryContext } from '@storybook/react-webpack5'; import { cloneElement } from 'react'; import flattenChildren from 'react-keyed-flatten-children'; import Box from './Box'; export default { title: 'Layout/Box/Colors', component: Box, parameters: { docs: { description: { ...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Box/withBoxStyling.tsx
packages/fuselage/src/components/Box/withBoxStyling.tsx
import type { ComponentPropsWithoutRef, ComponentType } from 'react'; import type { StylingProps } from './stylingProps'; import { useStylingProps } from './useStylingProps'; export const withBoxStyling = < TComponent extends ComponentType<{ className?: string; }>, >( Component: TComponent, ) => { const W...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Box/Box.tsx
packages/fuselage/src/components/Box/Box.tsx
import type { cssFn } from '@rocket.chat/css-in-js'; import type { AllHTMLAttributes, ElementType, RefAttributes, SVGAttributes, } from 'react'; import { createElement, forwardRef, memo } from 'react'; import { useArrayLikeClassNameProp } from '../../hooks/useArrayLikeClassNameProp'; import { useBoxOnlyProps }...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Box/useStylingProps.ts
packages/fuselage/src/components/Box/useStylingProps.ts
import { appendClassName } from '../../helpers/appendClassName'; import { useStyle } from '../../hooks/useStyle'; import type { StylingProps } from './stylingProps'; import { extractStylingProps } from './stylingProps'; export const useStylingProps = <TProps extends { className?: string }>( originalProps: TProps, )...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Box/layout.stories.tsx
packages/fuselage/src/components/Box/layout.stories.tsx
import type { StoryFn, Meta, StoryContext } from '@storybook/react-webpack5'; import { cloneElement } from 'react'; import flattenChildren from 'react-keyed-flatten-children'; import { Divider } from '../Divider'; import Box from './Box'; export default { title: 'Layout/Box/Layout', component: Box, parameters:...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Box/props.stories.tsx
packages/fuselage/src/components/Box/props.stories.tsx
import type { StoryFn, Meta } from '@storybook/react-webpack5'; import { Button } from '../Button'; import Box from './Box'; export default { title: 'Layout/Box/is', component: Box, } satisfies Meta<typeof Box>; const Template: StoryFn<typeof Box> = (args) => <Box {...args} />; export const IsButton = Template...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Box/richContentBlock.stories.tsx
packages/fuselage/src/components/Box/richContentBlock.stories.tsx
import type { StoryFn, Meta } from '@storybook/react-webpack5'; import Box from './Box'; export default { title: 'Layout/Box/Rich content/Block', component: Box, parameters: { docs: { description: { component: 'Here is how rich content will be rendered, in details.', }, }, }, } sat...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Box/BoxTransforms.ts
packages/fuselage/src/components/Box/BoxTransforms.ts
import { createContext, useContext, useMemo } from 'react'; export const BoxTransforms = createContext<null | ((props: any) => any)>(null); export const useBoxTransform = () => useContext(BoxTransforms); export const useComposedBoxTransform = (fn: (props: any) => any) => { const parentFn = useContext(BoxTransforms...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Box/richContentInline.stories.tsx
packages/fuselage/src/components/Box/richContentInline.stories.tsx
import type { StoryFn, Meta } from '@storybook/react-webpack5'; import Box from './Box'; export default { title: 'Layout/Box/Rich content/Inline', component: Box, parameters: { docs: { description: { component: 'Here is how rich content will be rendered, in details.', }, }, }, } sa...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Box/index.ts
packages/fuselage/src/components/Box/index.ts
export { default as Box, type BoxProps } from './Box'; export { default as StylingBox, type StylingBoxProps } from './StylingBox';
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Box/StylingBox.tsx
packages/fuselage/src/components/Box/StylingBox.tsx
import type { cssFn } from '@rocket.chat/css-in-js'; import type { ReactElement } from 'react'; import { cloneElement } from 'react'; import { useArrayLikeClassNameProp } from '../../hooks/useArrayLikeClassNameProp'; import type { Falsy } from '../../types/Falsy'; import type { StylingProps } from './stylingProps'; i...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Box/Box.spec.tsx
packages/fuselage/src/components/Box/Box.spec.tsx
import { css } from '@rocket.chat/css-in-js'; import { render } from '../../testing'; import Box from './Box'; describe('[Box Component]', () => { it('renders without crashing', () => { render(<Box />); }); describe('className prop', () => { it('accepts a string in className prop', () => { const...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Modal/ModalContent.tsx
packages/fuselage/src/components/Modal/ModalContent.tsx
import { Box, type BoxProps } from '../Box'; import { Scrollable } from '../Scrollable'; export type ModalContentProps = BoxProps & { onScrollContent?: ((touching: { top: boolean }) => void) | undefined; }; const ModalContent = ({ children, onScrollContent, ...props }: ModalContentProps) => ( <Scrollable ve...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Modal/Modal.spec.tsx
packages/fuselage/src/components/Modal/Modal.spec.tsx
import { composeStories } from '@storybook/react-webpack5'; import { screen } from '@testing-library/react'; import { axe } from 'jest-axe'; import { render } from '../../testing'; import * as stories from './Modal.stories'; import { Default } from './Modal.stories'; const testCases = Object.values(composeStories(st...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Modal/ModalHeader.tsx
packages/fuselage/src/components/Modal/ModalHeader.tsx
import { Box, type BoxProps } from '../Box'; import { Margins } from '../Margins'; export type ModalHeaderProps = BoxProps; const ModalHeader = ({ children, ...props }: ModalHeaderProps) => ( <Box rcx-modal__header is='header' {...props}> <Box rcx-modal__header-inner> <Margins all='x4'>{children}</Margins...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Modal/ModalFooter.tsx
packages/fuselage/src/components/Modal/ModalFooter.tsx
import { Box, type BoxProps } from '../Box'; export type ModalFooterProps = BoxProps; const ModalFooter = ({ children, justifyContent = 'end', }: ModalFooterProps) => ( <Box justifyContent={justifyContent} rcx-modal__footer> {children} </Box> ); export default ModalFooter;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Modal/ModalFooterControllers.tsx
packages/fuselage/src/components/Modal/ModalFooterControllers.tsx
import type { ButtonGroupProps } from '..'; import { ButtonGroup } from '..'; export type ModalFooterControllersProps = ButtonGroupProps; const ModalFooterControllers = ({ children }: ModalFooterControllersProps) => ( <ButtonGroup align='end'>{children}</ButtonGroup> ); export default ModalFooterControllers;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Modal/ModalFooterAnnotation.tsx
packages/fuselage/src/components/Modal/ModalFooterAnnotation.tsx
import { Box, type BoxProps } from '../Box'; export type ModalFooterAnnotationProps = BoxProps; const ModalFooterAnnotation = ({ children }: ModalFooterAnnotationProps) => ( <Box rcx-modal__footer-annotation>{children}</Box> ); export default ModalFooterAnnotation;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Modal/ModalHeaderText.tsx
packages/fuselage/src/components/Modal/ModalHeaderText.tsx
import { Box, type BoxProps } from '../Box'; export type ModalHeaderTextProps = BoxProps; const ModalHeaderText = ({ children, ...props }: ModalHeaderTextProps) => ( <Box rcx-modal__header-text {...props}> {children} </Box> ); export default ModalHeaderText;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Modal/ModalClose.tsx
packages/fuselage/src/components/Modal/ModalClose.tsx
import type { BoxProps } from '../Box'; import { IconButton } from '../Button'; export type ModalCloseProps = BoxProps; const ModalClose = (props: ModalCloseProps) => ( <IconButton aria-label='Close' {...props} small icon='cross' /> ); export default ModalClose;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Modal/ModalIcon.tsx
packages/fuselage/src/components/Modal/ModalIcon.tsx
import { Box, type BoxProps } from '../Box'; import { Icon, type IconProps } from '../Icon'; export type ModalIconProps = BoxProps & { name: IconProps['name']; }; const ModalIcon = ({ size = 'x20', name, alignItems = 'center', ...props }: ModalIconProps) => ( <Box {...props} display='flex' alignItems={ali...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Modal/ModalTagline.tsx
packages/fuselage/src/components/Modal/ModalTagline.tsx
import { Box, type BoxProps } from '../Box'; export type ModalTaglineProps = BoxProps; const ModalTagline = ({ children, ...props }: ModalTaglineProps) => ( <Box rcx-modal__tagline {...props}> {children} </Box> ); export default ModalTagline;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Modal/ModalHeroImage.tsx
packages/fuselage/src/components/Modal/ModalHeroImage.tsx
import { Box, type BoxProps } from '../Box'; export type ModalHeroImageProps = BoxProps; const ModalHeroImage = ({ ...props }: ModalHeroImageProps) => ( <figure className='rcx-modal__hero-image-wrapper'> <Box rcx-modal__hero-image is='img' {...props} /> </figure> ); export default ModalHeroImage;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Modal/Modal.tsx
packages/fuselage/src/components/Modal/Modal.tsx
import type { ElementType, ReactNode } from 'react'; import { createElement, forwardRef } from 'react'; import { Box, type BoxProps } from '../Box'; export type ModalProps = { wrapperFunction?: ( props: Pick<BoxProps, 'elevation' | 'className' | 'children'>, ) => ReactNode; wrapper?: ElementType<Pick<BoxPro...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Modal/ModalThumb.tsx
packages/fuselage/src/components/Modal/ModalThumb.tsx
import { Avatar, type AvatarProps } from '../Avatar'; import { Box } from '../Box'; export type ModalThumbProps = AvatarProps; const ModalThumb = (props: ModalThumbProps) => ( <Box> <Avatar size='x28' {...props} /> </Box> ); export default ModalThumb;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Modal/Modal.stories.tsx
packages/fuselage/src/components/Modal/Modal.stories.tsx
import type { Meta, StoryFn } from '@storybook/react-webpack5'; import { action } from 'storybook/actions'; import { Box, type BoxProps } from '../Box'; import { Button } from '../Button'; import { Field, FieldLabel, FieldRow } from '../Field'; import { FieldGroup } from '../FieldGroup'; import { TextInput } from '../...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Modal/ModalBackdrop.tsx
packages/fuselage/src/components/Modal/ModalBackdrop.tsx
import { Box, type BoxProps } from '../Box'; export type ModalBackdropProps = BoxProps; const ModalBackdrop = (props: ModalBackdropProps) => ( <Box rcx-modal__backdrop {...props} /> ); export default ModalBackdrop;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Modal/ModalTitle.tsx
packages/fuselage/src/components/Modal/ModalTitle.tsx
import { Box, type BoxProps } from '../Box'; export type ModalTitleProps = BoxProps; const ModalTitle = ({ children, ...props }: ModalTitleProps) => ( <Box is='h2' rcx-modal__title {...props}> {children} </Box> ); export default ModalTitle;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Modal/index.ts
packages/fuselage/src/components/Modal/index.ts
export { default as Modal, type ModalProps } from './Modal'; export { default as ModalBackdrop, type ModalBackdropProps, } from './ModalBackdrop'; export { default as ModalClose, type ModalCloseProps } from './ModalClose'; export { default as ModalContent, type ModalContentProps, } from './ModalContent'; export...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Skeleton/Skeleton.spec.tsx
packages/fuselage/src/components/Skeleton/Skeleton.spec.tsx
import { composeStories } from '@storybook/react-webpack5'; import { axe } from 'jest-axe'; import { render } from '../../testing'; import * as stories from './Skeleton.stories'; const testCases = Object.values(composeStories(stories)).map((Story) => [ Story.storyName || 'Story', Story, ]); test.each(testCases)...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Skeleton/Skeleton.tsx
packages/fuselage/src/components/Skeleton/Skeleton.tsx
import type { AllHTMLAttributes } from 'react'; import { cx, cxx } from '../../helpers/composeClassNames'; import type { StylingBoxProps } from '../Box'; import { StylingBox } from '../Box'; export type SkeletonProps = Omit<StylingBoxProps, 'children'> & { variant?: 'text' | 'rect' | 'circle'; } & AllHTMLAttributes...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Skeleton/Skeleton.stories.tsx
packages/fuselage/src/components/Skeleton/Skeleton.stories.tsx
import type { StoryFn, Meta } from '@storybook/react-webpack5'; import Skeleton from './Skeleton'; export default { title: 'Layout/Skeleton', component: Skeleton, } satisfies Meta<typeof Skeleton>; const Template: StoryFn<typeof Skeleton> = (args) => <Skeleton {...args} />; export const Default: StoryFn<typeof ...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Skeleton/index.ts
packages/fuselage/src/components/Skeleton/index.ts
export { default as Skeleton, type SkeletonProps } from './Skeleton';
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PaletteStyleTag/PaletteStyleTag.tsx
packages/fuselage/src/components/PaletteStyleTag/PaletteStyleTag.tsx
import { memo } from 'react'; import { createPortal } from 'react-dom'; import { convertToCss } from './helpers/convertToCss'; import { useCreateStyleContainer } from './hooks/useCreateStyleContainer'; import { dark, highContrast, light } from './lib/themePalettes'; import type { Themes } from './types/themes'; const...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PaletteStyleTag/PaletteStyleTag.stories.tsx
packages/fuselage/src/components/PaletteStyleTag/PaletteStyleTag.stories.tsx
import type { StoryFn, Meta } from '@storybook/react-webpack5'; import { Box } from '../Box'; import { Button } from '../Button'; import { Card, CardBody, CardCol, CardControls, CardHeader, CardTitle, } from '../Card'; import { Divider } from '../Divider'; import { FramedIcon } from '../FramedIcon'; import...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PaletteStyleTag/index.ts
packages/fuselage/src/components/PaletteStyleTag/index.ts
export { default as PaletteStyleTag, type PaletteStyleTagProps, } from './PaletteStyleTag';
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PaletteStyleTag/PaletteStyleTag.spec.tsx
packages/fuselage/src/components/PaletteStyleTag/PaletteStyleTag.spec.tsx
import { render } from '../../testing'; import PaletteStyleTag from './PaletteStyleTag'; import { dark, light } from './lib/themePalettes'; describe('[PaletteStyleTag colors]', () => { it('creates the Light theme style tag', () => { render(<PaletteStyleTag theme='light' />); const style = document.querySele...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PaletteStyleTag/helpers/getPalette.ts
packages/fuselage/src/components/PaletteStyleTag/helpers/getPalette.ts
import badge from '@rocket.chat/fuselage-tokens/dist/badge.json'; import button from '@rocket.chat/fuselage-tokens/dist/button.json'; import font from '@rocket.chat/fuselage-tokens/dist/font.json'; import shadow from '@rocket.chat/fuselage-tokens/dist/shadow.json'; import status from '@rocket.chat/fuselage-tokens/dist/...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PaletteStyleTag/helpers/convertToCss.ts
packages/fuselage/src/components/PaletteStyleTag/helpers/convertToCss.ts
export const convertToCss = ( values: Record<string, string>, prefix: string, selector = ':root', ) => `${selector} {\n${Object.entries(values) .map(([name, color]) => `${prefix}-${name}: ${color};`) .join('\n')}\n}`;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PaletteStyleTag/helpers/isHexColor.ts
packages/fuselage/src/components/PaletteStyleTag/helpers/isHexColor.ts
export const isHexColor = (hex: string): boolean => typeof hex === 'string' && hex.length === 6 && !isNaN(Number(`0x${hex}`));
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PaletteStyleTag/helpers/isLightColor.ts
packages/fuselage/src/components/PaletteStyleTag/helpers/isLightColor.ts
export const isLightColor = (color: string): boolean => { const hex = color.replace('#', ''); const r = parseInt(hex.substring(0, 0 + 2), 16); const g = parseInt(hex.substring(2, 2 + 2), 16); const b = parseInt(hex.substring(4, 4 + 2), 16); const brightness = (r * 299 + g * 587 + b * 114) / 1000; return bri...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PaletteStyleTag/hooks/useCreateStyleContainer.ts
packages/fuselage/src/components/PaletteStyleTag/hooks/useCreateStyleContainer.ts
import { useMemo } from 'react'; export const useCreateStyleContainer = (id: string) => useMemo(() => { const refElement = document.getElementById('rcx-styles') || document.head.lastChild; const el = document.getElementById(id); if (el) { return el; } const styleElement = document....
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PaletteStyleTag/types/themes.ts
packages/fuselage/src/components/PaletteStyleTag/types/themes.ts
export type ThemePreference = 'light' | 'dark' | 'auto' | 'high-contrast'; export type Themes = 'light' | 'dark' | 'high-contrast';
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/PaletteStyleTag/lib/themePalettes.ts
packages/fuselage/src/components/PaletteStyleTag/lib/themePalettes.ts
import { getThemePalette } from '../helpers/getPalette'; export const light = getThemePalette('light'); export const highContrast = getThemePalette('high-contrast'); export const dark = getThemePalette('dark');
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/AudioPlayer/AudioPlayer.stories.tsx
packages/fuselage/src/components/AudioPlayer/AudioPlayer.stories.tsx
import type { Meta } from '@storybook/react-webpack5'; import AudioPlayer from './AudioPlayer'; export default { title: 'Media/AudioPlayer', component: AudioPlayer, } satisfies Meta<typeof AudioPlayer>; const AUDIO_URL = 'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-17.mp3'; export const AudioPlaye...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/AudioPlayer/index.ts
packages/fuselage/src/components/AudioPlayer/index.ts
export { default as AudioPlayer, type AudioPlayerProps } from './AudioPlayer';
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/AudioPlayer/AudioPlayer.tsx
packages/fuselage/src/components/AudioPlayer/AudioPlayer.tsx
import { useMergedRefs, useResizeObserver } from '@rocket.chat/fuselage-hooks'; import type { TrackHTMLAttributes } from 'react'; import { useState, useRef, forwardRef } from 'react'; import { Box, Button, IconButton, Margins } from '../..'; import { Slider } from '../Slider'; const getMaskTime = (durationTime: numbe...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Throbber/Throbber.tsx
packages/fuselage/src/components/Throbber/Throbber.tsx
import { css } from '@rocket.chat/css-in-js'; import { forwardRef } from 'react'; import { Box, type BoxProps } from '../Box'; type CircleProps = { circleCount: number; iteration: number; inheritColor?: boolean; disabled?: boolean; } & Pick<BoxProps, 'size'>; function Circle({ disabled, circleCount, it...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Throbber/index.ts
packages/fuselage/src/components/Throbber/index.ts
export { default as Throbber, type ThrobberProps } from './Throbber';
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Throbber/Throbber.spec.tsx
packages/fuselage/src/components/Throbber/Throbber.spec.tsx
import { composeStories } from '@storybook/react-webpack5'; import { render } from '../../testing'; import * as stories from './Throbber.stories'; const { Default } = composeStories(stories); describe('[Throbber 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/Throbber/Throbber.stories.tsx
packages/fuselage/src/components/Throbber/Throbber.stories.tsx
import type { StoryFn, Meta } from '@storybook/react-webpack5'; import { action } from 'storybook/actions'; import { PropsVariationSection } from '../../../.storybook/helpers'; import { Box } from '../Box'; import { Button } from '../Button'; import Throbber from './Throbber'; 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/ProgressBar/ProgressBar.stories.tsx
packages/fuselage/src/components/ProgressBar/ProgressBar.stories.tsx
import type { StoryFn, Meta } from '@storybook/react-webpack5'; import ProgressBar from './ProgressBar'; export default { title: 'Data Display/ProgressBar', component: ProgressBar, } satisfies Meta<typeof ProgressBar>; const Template: StoryFn<typeof ProgressBar> = (args) => ( <ProgressBar {...args} /> ); expo...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ProgressBar/ProgressBar.tsx
packages/fuselage/src/components/ProgressBar/ProgressBar.tsx
import type { AllHTMLAttributes } from 'react'; import { forwardRef } from 'react'; import { Box } from '../Box'; const getWidth = (percentage: number): string => `${Math.min(Math.max(0, percentage), 100).toFixed(1)}%`; const colors = { info: 'status-font-on-info', success: 'status-font-on-success', warning:...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ProgressBar/index.ts
packages/fuselage/src/components/ProgressBar/index.ts
export { default as ProgressBar, type ProgressBarProps } from './ProgressBar';
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/ProgressBar/ProgressBar.spec.tsx
packages/fuselage/src/components/ProgressBar/ProgressBar.spec.tsx
import { render } from '../../testing'; import ProgressBar from './ProgressBar'; describe('[ProgressBar Component]', () => { it('renders without crashing', () => { render(<ProgressBar percentage={0} />); }); });
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Table/TableCell.tsx
packages/fuselage/src/components/Table/TableCell.tsx
import { useContext } from 'react'; import { Box } from '../Box'; import type { TableProps } from './Table'; import { TableHeadContext } from './TableHead'; export type TableCellProps = TableProps & { align?: 'start' | 'center' | 'end' | 'justify' | object; clickable?: boolean; }; const TableCell = ({ align, ...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Table/TableBody.tsx
packages/fuselage/src/components/Table/TableBody.tsx
import { Box } from '../Box'; import type { TableProps } from './Table'; export type TableBodyProps = TableProps; const TableBody = (props: TableBodyProps) => ( <Box is='tbody' rcx-table__body {...props} /> ); export default TableBody;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Table/Table.spec.tsx
packages/fuselage/src/components/Table/Table.spec.tsx
import { composeStories } from '@storybook/react-webpack5'; import { axe } from 'jest-axe'; import { render } from '../../testing'; import * as stories from './Table.stories'; const testCases = Object.values(composeStories(stories)).map((Story) => [ Story.storyName || 'Story', Story, ]); describe('[Table Render...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Table/Table.stories.tsx
packages/fuselage/src/components/Table/Table.stories.tsx
import type { Meta, StoryFn } from '@storybook/react-webpack5'; import { CheckBox } from '../CheckBox'; import Table from './Table'; import TableBody from './TableBody'; import TableCell from './TableCell'; import TableHead from './TableHead'; import TableRow from './TableRow'; import { TableSelection, TableSelec...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Table/Table.tsx
packages/fuselage/src/components/Table/Table.tsx
import { Box, type BoxProps } from '../Box'; export type TableProps = BoxProps & { striped?: boolean; sticky?: boolean; fixed?: boolean; }; const Table = ({ striped, sticky, fixed = false, ...props }: TableProps) => ( <Box rcx-table__wrapper> <Box is='table' rcx-table rcx-table--fixed={f...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Table/TableFoot.tsx
packages/fuselage/src/components/Table/TableFoot.tsx
import { Box } from '../Box'; import type { TableProps } from './Table'; export type TableFootProps = TableProps; const TableFoot = (props: TableFootProps) => ( <Box is='tfoot' rcx-table__foot {...props} /> ); export default TableFoot;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Table/TableHead.tsx
packages/fuselage/src/components/Table/TableHead.tsx
import { createContext } from 'react'; import { Box } from '../Box'; import type { TableProps } from './Table'; export const TableHeadContext = createContext(false); export type TableHeadProps = TableProps; const TableHead = (props: TableHeadProps) => ( <TableHeadContext.Provider value={true}> <Box is='thead...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Table/index.ts
packages/fuselage/src/components/Table/index.ts
export { default as Table, type TableProps } from './Table'; export { default as TableBody, type TableBodyProps } from './TableBody'; export { default as TableCell, type TableCellProps } from './TableCell'; export { default as TableFoot, type TableFootProps } from './TableFoot'; export { default as TableHead, type Tabl...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Table/TableRow.tsx
packages/fuselage/src/components/Table/TableRow.tsx
import { Box, type BoxProps } from '../Box'; export type TableRowProps = Omit<BoxProps, 'action'> & { action?: boolean; hasAction?: boolean; }; const TableRow = ({ action, selected, ...props }: TableRowProps) => ( <Box is='tr' rcx-table__row rcx-table__row--selected={selected} rcx-table__row--ac...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Table/TableSelection/TableSelection.tsx
packages/fuselage/src/components/Table/TableSelection/TableSelection.tsx
import { Box, type BoxProps } from '../../Box'; import { Margins } from '../../Margins'; export type TableSelectionProps = BoxProps & { text?: string; }; const TableSelection = ({ children, text, ...props }: TableSelectionProps) => ( <Box rcx-table__selection display='flex' alignItems='center' jus...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Table/TableSelection/TableSelectionButtonGroup.tsx
packages/fuselage/src/components/Table/TableSelection/TableSelectionButtonGroup.tsx
import type { ButtonGroupProps } from '../../ButtonGroup'; import { ButtonGroup } from '../../ButtonGroup'; export type TableSelectionButtonGroupProps = ButtonGroupProps; const TableSelectionButtonGroup = (props: TableSelectionButtonGroupProps) => ( <ButtonGroup {...props} /> ); export default TableSelectionButton...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Table/TableSelection/TableSelectionButton.tsx
packages/fuselage/src/components/Table/TableSelection/TableSelectionButton.tsx
import { Button, type ButtonProps } from '../../Button'; export type TableSelectionButtonProps = ButtonProps; const TableSelectionButton = (props: TableSelectionButtonProps) => ( <Button small flexShrink={0} {...props} /> ); export default TableSelectionButton;
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Table/TableSelection/index.ts
packages/fuselage/src/components/Table/TableSelection/index.ts
export { default as TableSelection, type TableSelectionProps, } from './TableSelection'; export { default as TableSelectionButton, type TableSelectionButtonProps, } from './TableSelectionButton'; export { default as TableSelectionButtonGroup, type TableSelectionButtonGroupProps, } from './TableSelectionButt...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Bubble/Bubble.stories.tsx
packages/fuselage/src/components/Bubble/Bubble.stories.tsx
import type { Meta, StoryFn } from '@storybook/react-webpack5'; import { action } from 'storybook/actions'; import Bubble from './Bubble'; export default { title: 'Data Display/Bubble', component: Bubble, } satisfies Meta<typeof Bubble>; const Template: StoryFn<typeof Bubble> = (args) => <Bubble {...args} />; e...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Bubble/BubbleButton.tsx
packages/fuselage/src/components/Bubble/BubbleButton.tsx
import type { Keys as IconName } from '@rocket.chat/icons'; import type { ButtonHTMLAttributes, ReactNode } from 'react'; import { Icon } from '../Icon'; type BubbleButtonProps = { onClick: () => void; label?: ReactNode; secondary?: boolean; icon?: IconName; } & Omit<ButtonHTMLAttributes<HTMLButtonElement>, '...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Bubble/Bubble.spec.tsx
packages/fuselage/src/components/Bubble/Bubble.spec.tsx
import { composeStories } from '@storybook/react-webpack5'; import { axe } from 'jest-axe'; import { render } from '../../testing'; import * as stories from './Bubble.stories'; const testCases = Object.values(composeStories(stories)).map((Story) => [ Story.storyName || 'Story', Story, ]); describe('[Bubble Rend...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Bubble/BubbleItem.tsx
packages/fuselage/src/components/Bubble/BubbleItem.tsx
import type { Keys as IconName } from '@rocket.chat/icons'; import type { HTMLAttributes, ReactNode } from 'react'; import { Icon } from '../Icon'; type BubbleItemProps = { label?: ReactNode; secondary?: boolean; icon?: IconName; } & HTMLAttributes<HTMLSpanElement>; export const BubbleItem = ({ secondary, ...
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false
RocketChat/fuselage
https://github.com/RocketChat/fuselage/blob/28b7a4a51c6c5bf72182f3b708965b1abfc36b38/packages/fuselage/src/components/Bubble/index.ts
packages/fuselage/src/components/Bubble/index.ts
export { default as Bubble, type BubbleProps } from './Bubble';
typescript
MIT
28b7a4a51c6c5bf72182f3b708965b1abfc36b38
2026-01-05T04:58:51.149339Z
false