@rdsaude/pulso-react-components
Version:
Biblioteca de componentes React do Pulso Design System da RD Saúde oferece componentes consistentes e de alto desempenho, alinhados com os padrões da RDSaúde. Ideal para desenvolver aplicações modernas e acessíveis.
1 lines • 48 kB
Source Map (JSON)
{"version":3,"sources":["../../../src/components/modal/index.ts","../../../src/components/modal/modal.tsx","../../../src/components/modal/components/modal-body/index.tsx","../../../src/components/button/namespace.ts","../../../src/components/button/button-root.tsx","../../../src/hooks/use-enhanced-children.ts","../../../src/utils/inject-props-to-children.ts","../../../src/utils/cn.ts","../../../src/components/refresh/index.tsx","../../../src/hooks/use-theme.ts","../../../src/components/theme-provider/index.tsx","../../../src/utils/tv.ts","../../../src/components/button/button.styles.ts","../../../src/components/button/button-icon.tsx","../../../src/components/icon/index.tsx","../../../src/components/icon-dual-color/namespace.ts","../../../src/components/icon-dual-color/icon-dual-color-root.tsx","../../../src/components/icon-dual-color/icon-dual-color-top.tsx","../../../src/components/icon-dual-color/icon-dual-color-bottom.tsx","../../../src/components/button/button-icon-dual-color.tsx","../../../src/components/modal/components/modal-closable-button/index.tsx","../../../src/components/modal/components/modal-description/modal-description.styles.ts","../../../src/components/modal/components/modal-description/index.tsx","../../../src/components/modal/components/modal-footer/index.tsx","../../../src/components/modal/components/modal-header/modal-header.styles.ts","../../../src/components/modal/components/modal-header/index.tsx","../../../src/components/modal/components/modal-icon/index.tsx","../../../src/components/modal/components/modal-title/index.tsx","../../../src/components/modal/modal.styles.ts"],"sourcesContent":["export { Modal } from './modal'\nexport type { ModalProps } from './modal.types'\n","import { type Scope, createContextScope } from '@radix-ui/react-context'\nimport React, { forwardRef } from 'react'\nimport { ModalBody } from './components/modal-body'\nimport { ModalClosableButton } from './components/modal-closable-button'\nimport { ModalDescription } from './components/modal-description'\nimport {\n ModalFirstButtonFooter,\n ModalFooter,\n ModalSecondButtonFooter,\n} from './components/modal-footer'\nimport { ModalHeader } from './components/modal-header'\nimport { ModalIcon } from './components/modal-icon'\nimport { ModalTitle } from './components/modal-title'\nimport { modalVariants } from './modal.styles'\nimport type { ModalProps } from './modal.types'\n\ntype ModalContext = Pick<ModalProps, 'variant' | 'visible'>\n\nconst DISPLAY_NAME = 'Modal'\n\nconst ModalRoot = forwardRef<HTMLDivElement, ModalProps>(\n (props: ModalScopedProps<ModalProps>, ref) => {\n const { children, variant, visible, id, _scopeModal, ...rest } = props\n\n const modalClassName = modalVariants({\n variant,\n })\n\n const renderInternalHeaderIcon = React.Children.map(children, child => {\n if (!React.isValidElement(child)) return\n\n if (React.isValidElement(child) && child.type === ModalIcon) {\n return React.cloneElement(child)\n }\n })\n\n const renderInternalHeaderTitle = React.Children.map(children, child => {\n if (!React.isValidElement(child)) return\n\n if (React.isValidElement(child) && child.type === ModalTitle) {\n return React.cloneElement(child)\n }\n })\n\n const renderInternalHeaderClosableButton = React.Children.map(\n children,\n child => {\n if (!React.isValidElement(child)) return\n\n if (React.isValidElement(child) && child.type === ModalClosableButton) {\n return React.cloneElement(child)\n }\n }\n )\n\n const renderInternalDescription = React.Children.map(children, child => {\n if (!React.isValidElement(child)) return\n\n if (React.isValidElement(child) && child.type === ModalDescription) {\n return React.cloneElement(child)\n }\n })\n\n const renderInternalBody = React.Children.map(children, child => {\n if (!React.isValidElement(child)) return\n\n if (React.isValidElement(child) && child.type === ModalBody) {\n return React.cloneElement(child)\n }\n })\n\n const renderInternalFooter = React.Children.map(children, child => {\n if (!React.isValidElement(child)) return\n\n if (React.isValidElement(child) && child.type === ModalFooter) {\n return React.cloneElement(child)\n }\n })\n\n if (!visible) {\n return null\n }\n\n return (\n <ModalProvider scope={_scopeModal} variant={variant} visible={visible}>\n <div className=\"flex h-[100%] w-[100%] items-center justify-center overflow-hidden\">\n <div\n style={{ backgroundColor: 'rgba(66, 66, 66, 0.32)' }}\n className=\"absolute top-0 right-0 bottom-0 left-0 h-[100vh] w-[100vw] overflow-hidden\"\n />\n <div {...rest} ref={ref} className={modalClassName} data-testid={id}>\n <ModalHeader>\n {renderInternalHeaderIcon}\n {renderInternalHeaderTitle}\n <div className=\"ml-auto flex w-[80px] items-center justify-end bg-transparent\">\n {renderInternalHeaderClosableButton}\n </div>\n </ModalHeader>\n <div\n data-testid=\"first-description-container\"\n className=\"w-[100%] rounded-none border-[#e6e6e6] border-r-quarterpulse border-l-quarterpulse bg-[#FFF] pt-twopulse pr-sixpulse pb-twopulse pl-sixpulse\"\n >\n {renderInternalDescription?.slice(0, 1)}\n </div>\n {renderInternalBody}\n <div\n data-testid=\"second-description-container\"\n className=\"w-[100%] rounded-none border-[#e6e6e6] border-r-quarterpulse border-l-quarterpulse bg-[#FFF] pt-twopulse pr-sixpulse pb-twopulse pl-sixpulse\"\n >\n {renderInternalDescription?.slice(1, 2)}\n </div>\n {renderInternalFooter}\n </div>\n </div>\n </ModalProvider>\n )\n }\n)\n\nModalRoot.displayName = DISPLAY_NAME\n\n/*\nScope Definition\n*/\n\nexport type ModalScopedProps<P> = P & {\n _scopeModal?: Scope\n}\n\nconst [createModalContext] = createContextScope(DISPLAY_NAME)\n\nexport const [ModalProvider, useModalContext]: readonly [\n ProviderType<ModalContext>,\n (consumerName: string, scope: Scope) => ModalContext,\n] = createModalContext<ModalContext>(DISPLAY_NAME)\n\n/*\nComposition Export\n*/\n\nexport const Modal = {\n Root: ModalRoot,\n HeaderIcon: ModalIcon,\n HeaderTitle: ModalTitle,\n HeaderClosableButton: ModalClosableButton,\n Description: ModalDescription,\n Body: ModalBody,\n Footer: ModalFooter,\n PrimaryButton: ModalFirstButtonFooter,\n SecondaryButton: ModalSecondButtonFooter,\n}\n","type TModalBodyProps = {\n children: React.ReactNode\n id?: string\n} & Partial<React.HTMLAttributes<HTMLDivElement>>\n\nexport function ModalBody({ children, id, ...rest }: TModalBodyProps) {\n return (\n <div\n {...rest}\n data-testid={id}\n className=\"border-[#e6e6e6] border-t-none border-r-quarterpulse border-b-none border-l-quarterpulse bg-[#FFF] pt-fourpulse pr-fourpulse pb-fourpulse pl-fourpulse\"\n >\n {children}\n </div>\n )\n}\n","export { ButtonRoot as Root } from './button-root'\nexport { ButtonIcon as Icon } from './button-icon'\nexport { ButtonIconDualColor as IconDualColor } from './button-icon-dual-color'\n","import * as React from 'react'\n\nimport type { Assign } from '@ark-ui/react'\nimport { ark } from '@ark-ui/react/factory'\n\nimport { useEnhancedChildren } from '~/hooks/use-enhanced-children'\n\nimport { cn } from '~/utils/cn'\nimport type { VariantProps } from '~/utils/tv'\n\nimport { Refresh, type RefreshColor } from '~/components/refresh'\n\nimport { root as rootStyle } from './button.styles'\n\nexport type ButtonSharedProps = Omit<\n VariantProps<typeof rootStyle>,\n 'asIconOnly'\n> & {\n disabled?: boolean\n}\n\nexport type ButtonRootProps = Assign<\n React.ComponentProps<typeof ark.button>,\n ButtonSharedProps\n> & {\n loading?: boolean\n full?: boolean\n}\n\nexport function ButtonRoot({\n children,\n className,\n variant = 'brand-primary',\n size,\n disabled,\n loading,\n asChild,\n full,\n ...props\n}: ButtonRootProps) {\n const enhancedChildrenWithInjectProps = useEnhancedChildren(children, {\n targets: ['ButtonIcon', 'ButtonIconDualColor'],\n props: {\n variant,\n size,\n disabled,\n },\n asChild,\n })\n\n const shouldShowSpinner = !disabled && loading\n\n const refreshColorByVariant = {\n 'brand-primary': 'white',\n 'neutral-secondary': 'black',\n 'neutral-tertiary': 'black',\n } as Record<typeof variant, RefreshColor>\n\n const loadingAccessibilityProps = {\n 'aria-live': 'polite',\n 'aria-busy': true,\n } as const\n\n const isOnlyIcon = React.useCallback(() => {\n if (\n React.Children.count(children) === 1 &&\n React.isValidElement(children)\n ) {\n const displayName =\n (children.type as React.ComponentType)?.displayName ?? ''\n return ['ButtonIcon', 'ButtonIconDualColor'].includes(displayName)\n }\n\n return false\n }, [children])\n\n return (\n <ark.button\n {...props}\n {...(shouldShowSpinner && loadingAccessibilityProps)}\n className={cn(\n rootStyle({\n variant,\n size,\n asIconOnly: isOnlyIcon(),\n className: shouldShowSpinner && 'pointer-events-none',\n }),\n full && 'w-full',\n className\n )}\n disabled={disabled}\n data-scope=\"button\"\n >\n {shouldShowSpinner ? (\n <Refresh color={refreshColorByVariant[variant]} />\n ) : (\n enhancedChildrenWithInjectProps\n )}\n </ark.button>\n )\n}\n\nButtonRoot.displayName = 'ButtonRoot'\n","import * as React from 'react'\n\nimport { injectPropsToChildren } from '~/utils/inject-props-to-children'\n\nexport function useEnhancedChildren<T extends object>(\n children: React.ReactNode,\n {\n targets,\n props,\n asChild,\n }: {\n targets: string[]\n props: T\n asChild?: boolean\n }\n) {\n const keyPrefix = React.useId()\n\n return injectPropsToChildren(children, {\n targets,\n props,\n asChild,\n keyPrefix,\n })\n}\n","import * as React from 'react'\n\ntype InjectPropsToChildrenOptions<T = unknown> = {\n /**\n * List of component displayNames to match.\n * Props will only be injected into components matching these names.\n */\n targets: string[]\n\n /**\n * Props to inject into the matched components.\n */\n props: Partial<T>\n\n /**\n * Optional key prefix for cloned elements.\n */\n keyPrefix?: string\n\n /**\n * Whether to return only the first child (e.g. for Slot-like behavior).\n */\n asChild?: boolean\n}\n\n/**\n * Recursively injects props into React children whose displayName matches a list of target names.\n *\n * This is useful for compound component patterns where parent-level props need to reach\n * specific nested children without direct prop drilling.\n *\n * @param children - The children tree to traverse.\n * @param options - Match configuration and props to inject.\n * @returns The cloned React nodes with props injected into matching components.\n */\nexport function injectPropsToChildren<T = unknown>(\n children: React.ReactNode,\n options: InjectPropsToChildrenOptions<T>\n): React.ReactNode {\n const { targets, props, keyPrefix = 'inject', asChild } = options\n\n const cloned = React.Children.map(children, (child, index) => {\n if (!React.isValidElement(child)) return child\n\n const displayName = (child.type as React.ComponentType)?.displayName ?? ''\n const shouldInject = targets.includes(displayName)\n\n const childProps = child.props as {\n children?: React.ReactNode\n asChild?: boolean\n }\n\n return React.cloneElement(\n child,\n {\n ...(shouldInject ? props : {}),\n key: `${keyPrefix}-${index.toString()}`,\n },\n injectPropsToChildren(childProps?.children, {\n targets,\n props,\n keyPrefix,\n asChild: childProps?.asChild,\n })\n )\n })\n\n return asChild ? cloned?.[0] : cloned\n}\n","import { type ClassValue, clsx } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nexport const cn = (...input: ClassValue[]) => twMerge(clsx(...input))\n","import * as React from 'react'\n\nimport { useTheme } from '~/hooks/use-theme'\nimport { cn } from '~/utils/cn'\n\n/**\n * Conjunto de opções de cor disponíveis para o componente Refresh.\n */\nexport type RefreshColor = 'brand' | 'neutral' | 'black' | 'white'\n\n/**\n * Propriedades do componente Refresh.\n */\nexport type RefreshProps = {\n /**\n * Define a cor do ícone de carregamento com base nos tokens do tema.\n * - `brand`: usa a cor primária da marca.\n * - `neutral`: usa um tom neutro de leitura.\n * - `black`: usa a cor padrão para texto.\n * - `white`: usa a cor inversa (geralmente branco).\n *\n * @default \"brand\"\n */\n color?: RefreshColor\n\n /**\n * Texto alternativo para acessibilidade (leitores de tela).\n * É renderizado como `aria-label` e como conteúdo do elemento `<title>` do SVG.\n */\n srText?: string\n}\n\n/**\n * Componente de ícone animado de carregamento, com suporte a temas e acessibilidade.\n */\nexport function Refresh({ color = 'brand', srText }: RefreshProps) {\n const theme = useTheme()\n\n const colorMap = React.useMemo(() => {\n return {\n brand: theme.colorActionFillBrandPrimaryEnabled,\n neutral: theme.colorTextNeutralReadonly,\n black: theme.colorTextNeutralDefault,\n white: theme.colorTextNeutralInverse,\n }\n }, [theme])\n\n const fillColor = colorMap[color]\n\n return (\n <div\n role=\"status\"\n className={cn('grid size-8 place-items-center')}\n aria-label={srText}\n >\n <svg className={cn('size-6 animate-spin fill-none')} viewBox=\"0 0 24 24\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M0 12c0 6.627 5.373 12 12 12s12-5.373 12-12S18.627 0 12 0v2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12H0z\"\n fill={fillColor}\n />\n <title>{srText}</title>\n </svg>\n </div>\n )\n}\n\nexport * from './deprecated'\n","import * as React from 'react'\n\nimport {\n DROGASIL_TOKENS,\n GLOBALS_TOKENS,\n PRIME_TOKENS,\n RAIA_TOKENS,\n RDSAUDESISTEMAS_TOKENS,\n SUBSCRIPTION_TOKENS,\n} from '@raiadrogasil/pulso-design-tokens'\n\nimport { ThemeContext } from '~/components/theme-provider'\n\ntype ThemeTokens = typeof RDSAUDESISTEMAS_TOKENS & typeof GLOBALS_TOKENS\n\nexport function useTheme(): ThemeTokens {\n const mappedTheme = React.useMemo(() => {\n return {\n rdsaudesistemas: RDSAUDESISTEMAS_TOKENS,\n drogasil: DROGASIL_TOKENS,\n raia: RAIA_TOKENS,\n subscription: SUBSCRIPTION_TOKENS,\n prime: PRIME_TOKENS,\n }\n }, [])\n\n const context = React.useContext(ThemeContext)\n\n if (!context) {\n throw new Error(\n '[Pulso] useTheme precisa estar dentro de um <ThemeProvider>. Verifique se o provedor está corretamente configurado na raiz da aplicação.'\n )\n }\n\n const { currentTheme } = context\n\n const result = {\n ...GLOBALS_TOKENS,\n ...mappedTheme[currentTheme],\n } as ThemeTokens\n\n return result\n}\n","import * as React from 'react'\n\nimport type { Themes } from '@raiadrogasil/pulso-design-tokens'\n\nexport const ThemeContext = React.createContext({\n currentTheme: 'rdsaudesistemas',\n} as {\n currentTheme: Themes\n})\n\ntype ThemeProviderProps = {\n children: React.ReactNode\n theme?: Themes\n}\n\nexport function ThemeProvider({\n children,\n theme = 'rdsaudesistemas',\n}: ThemeProviderProps) {\n if (typeof window !== 'undefined') {\n document.documentElement.setAttribute('class', theme)\n }\n\n return (\n <ThemeContext.Provider\n value={{\n currentTheme: theme,\n }}\n >\n {children}\n </ThemeContext.Provider>\n )\n}\n","import { type VariantProps, createTV } from 'tailwind-variants'\n\nexport const tv = createTV({\n twMerge: true,\n twMergeConfig: {\n extend: {\n classGroups: {\n 'font-size': [\n {\n text: ['threepulse', 'threeandhalfpulse'],\n },\n ],\n 'border-width': [\n {\n border: ['quarterpulse', 'halfpulse'],\n },\n ],\n '--tw-ring-inset': [\n {\n ring: ['none', 'quarterpulse', 'halfpulse'],\n },\n ],\n },\n },\n },\n})\n\nexport type { VariantProps }\n","import { tv } from '~/utils/tv'\n\nconst buttonStyles = tv({\n slots: {\n root: [\n 'inline-flex shrink-0 cursor-pointer items-center justify-center whitespace-nowrap',\n 'gap-x-[var(--spacing-inline-twopulse)] rounded-full',\n 'outline-[var(--color-action-border-focused)] outline-offset-2',\n 'font-inherit font-bold tracking-[var(--letter-spacing-default)]',\n 'focus-visible:outline-2',\n 'disabled:cursor-not-allowed disabled:text-[var(--color-text-neutral-disabled)]',\n ],\n },\n variants: {\n variant: {\n 'brand-primary': {\n root: [\n 'bg-[var(--color-action-fill-brand-primary-enabled)]',\n 'text-[var(--color-text-neutral-inverse)]',\n 'enabled:hover:bg-[var(--color-action-fill-brand-primary-hovered)]',\n 'active:bg-[var(--color-action-fill-brand-primary-pressed)]',\n 'disabled:bg-[var(--color-action-fill-brand-primary-disabled)]',\n ],\n },\n 'neutral-secondary': {\n root: [\n 'ring-[var(--color-action-border-neutral-secondary-enabled)]',\n 'ring-[length:var(--border-width-quarterpulse)]',\n 'bg-[var(--color-action-fill-neutral-secondary-enabled)]',\n 'text-[var(--color-text-neutral-default)]',\n 'enabled:hover:ring-[var(--color-action-border-neutral-secondary-hovered)]',\n 'enabled:hover:bg-[var(--color-action-fill-neutral-secondary-hovered)]',\n 'active:ring-[var(--color-action-border-neutral-secondary-pressed)]',\n 'active:bg-[var(--color-action-fill-neutral-secondary-pressed)]',\n 'disabled:ring-[var(--color-action-border-neutral-secondary-disabled)]',\n 'disabled:bg-[var(--color-action-fill-neutral-secondary-disabled)]',\n ],\n },\n 'neutral-tertiary': {\n root: [\n 'ring-[var(--color-action-border-neutral-tertiary-enabled)]',\n 'ring-[length:var(--border-width-quarterpulse)]',\n 'bg-[var(--color-action-fill-neutral-tertiary-enabled)]',\n 'text-[var(--color-text-neutral-default)]',\n 'enabled:hover:ring-[var(--color-action-border-neutral-tertiary-hovered)]',\n 'enabled:hover:bg-[var(--color-action-fill-neutral-tertiary-hovered)]',\n 'active:ring-[var(--color-action-border-neutral-tertiary-pressed)]',\n 'active:bg-[var(--color-action-fill-neutral-tertiary-pressed)]',\n 'disabled:ring-[var(--color-action-border-neutral-tertiary-disabled)]',\n 'disabled:bg-[var(--color-action-fill-neutral-tertiary-disabled)]',\n ],\n },\n },\n size: {\n md: {\n root: [\n 'h-[var(--sizing-medium)] min-w-8 px-[var(--padding-inset-fourpulse)]',\n 'text-[length:var(--font-size-threepulse)]',\n 'leading-[var(--line-height-medium)]',\n ],\n },\n ml: {\n root: [\n 'h-[var(--sizing-mediumlarge)] min-w-10 px-[var(--padding-inset-fourpulse)]',\n ],\n },\n lg: {\n root: [\n 'h-[var(--sizing-large)] min-w-12 px-[var(--padding-inset-fivepulse)]',\n ],\n },\n xl: {\n root: [\n 'h-[var(--sizing-extralarge)] min-w-14 px-[var(--padding-inset-sixpulse)]',\n ],\n },\n },\n asIconOnly: {\n true: {\n root: 'aspect-square px-0',\n },\n },\n },\n compoundVariants: [\n {\n size: ['ml', 'lg'],\n class: {\n root: [\n 'text-[length:var(--font-size-threeandhalfpulse)]',\n 'leading-[var(--line-height-small)]',\n ],\n },\n },\n ],\n defaultVariants: {\n variant: 'brand-primary',\n size: 'ml',\n asIconOnly: false,\n },\n})\n\nexport const { root } = buttonStyles()\n","import { useMemo } from 'react'\nimport { Icon, type IconProps } from '~/components/icon'\nimport type { ButtonSharedProps } from './button-root'\n\ntype ButtonIconProps = Omit<ButtonSharedProps, 'asIconOnly'> & {\n iconColor?: IconProps['color']\n symbol?: IconProps['symbol']\n}\n\nexport function ButtonIcon({\n variant,\n size,\n disabled,\n iconColor,\n symbol,\n}: ButtonIconProps) {\n const sizeToIconSize: Record<\n NonNullable<ButtonSharedProps['size']>,\n IconProps['size']\n > = {\n md: 'extra-small',\n ml: 'small',\n lg: 'small',\n xl: 'small',\n }\n\n const variantToIconColor: Record<\n NonNullable<ButtonSharedProps['variant']>,\n IconProps['color']\n > = {\n 'brand-primary': 'colorTextNeutralInverse',\n 'neutral-secondary': 'colorTextNeutralDefault',\n 'neutral-tertiary': 'colorTextNeutralDefault',\n }\n\n const color = useMemo(() => {\n if (disabled) return 'colorTextNeutralDisabled'\n if (iconColor) return iconColor\n\n return variantToIconColor[variant!]\n }, [disabled, variant])\n\n const iconSize = sizeToIconSize[size!]\n\n return <Icon color={color} size={iconSize} symbol={symbol} />\n}\n\nButtonIcon.displayName = 'ButtonIcon'\n","import * as React from 'react'\n\nimport type { RDSAUDESISTEMAS_TOKENS } from '@raiadrogasil/pulso-design-tokens'\nimport type { IconName } from '@raiadrogasil/pulso-icons'\n\nimport { useTheme } from '~/hooks/use-theme'\n\ntype IconVisualSize = 'tiny' | 'extra-small' | 'small' | 'medium'\ntype DesignTokens = typeof RDSAUDESISTEMAS_TOKENS\n\ntype TokenColorKeys = {\n [K in keyof DesignTokens as K extends `color${string}`\n ? K\n : never]: DesignTokens[K]\n}\n\n/**\n * Propriedades do componente Icon.\n */\nexport type IconProps = React.ComponentProps<'i'> & {\n /**\n * Define o ícone a ser exibido, com base na lista de nomes disponíveis em `@raiadrogasil/pulso-icons`.\n *\n * @default 'rdicon-default'\n */\n symbol?: IconName\n\n /**\n * Define o tamanho visual do ícone, controlando o `font-size` com base nos tokens de espaçamento.\n *\n * Valores possíveis: 'tiny', 'extra-small', 'small', 'medium'.\n *\n * @default 'small'\n */\n size?: IconVisualSize\n\n /**\n * Define a cor do ícone usando uma chave de token de cor do design system.\n * A cor é aplicada via `style.color`.\n *\n * @default 'colorActionFillBrandPrimaryEnabled'\n */\n color?: keyof TokenColorKeys\n}\n\nexport function Icon({\n symbol = 'rdicon-default',\n size = 'small',\n color = 'colorActionFillBrandPrimaryEnabled',\n ...props\n}: IconProps) {\n const theme = useTheme()\n\n const resolvedFontSizes = React.useMemo(() => {\n return {\n tiny: theme.sizingTiny,\n 'extra-small': theme.sizingExtrasmall,\n small: theme.sizingSmall,\n medium: theme.sizingMedium,\n }\n }, [])\n\n return (\n <i\n {...props}\n className={symbol}\n style={{\n fontSize: resolvedFontSizes[size],\n color: theme[color],\n display: 'inline-flex',\n }}\n />\n )\n}\n\nIcon.displayName = 'Icon'\n\nexport * from './deprecated'\n","export { IconDualColorRoot as Root } from './icon-dual-color-root'\nexport { IconDualColorTop as Top } from './icon-dual-color-top'\nexport { IconDualColorBottom as Bottom } from './icon-dual-color-bottom'\n","import { ark } from '@ark-ui/react/factory'\nimport { useEnhancedChildren } from '~/hooks/use-enhanced-children'\nimport type { IconProps } from '../icon'\n\nexport type IconDualColorRootProps = Omit<\n React.ComponentPropsWithRef<'div'>,\n 'className'\n> &\n Pick<IconProps, 'size'> & {\n /**\n * Quando `true`, renderiza o componente como um slot via `@radix-ui/react-slot`,\n * permitindo controle externo sobre o elemento raiz.\n */\n asChild?: boolean\n /**\n * Define se o componente está desabilitado.\n * Quando `true`, o componente não pode ser interagido.\n */\n disabled?: boolean\n }\n\nexport function IconDualColorRoot({\n children,\n size = 'small',\n disabled = false,\n asChild,\n ...props\n}: IconDualColorRootProps) {\n const enhancedChildrenWithInjectProps = useEnhancedChildren(children, {\n targets: ['IconDualColorTop', 'IconDualColorBottom'],\n props: {\n size,\n disabled,\n },\n asChild,\n })\n\n return (\n <ark.div\n data-testid=\"icon-dual-color-root\"\n aria-label=\"Ícones\"\n aria-disabled={disabled}\n asChild={asChild}\n {...props}\n className=\"relative flex [&>[data-icon=top]]:absolute\"\n >\n {enhancedChildrenWithInjectProps}\n </ark.div>\n )\n}\n\nIconDualColorRoot.displayName = 'IconDualColorRoot'\n","import { Icon, type IconProps } from '../icon'\n\ntype IconDualColorTopProps = Omit<IconProps, 'size'>\n\nexport function IconDualColorTop({\n children,\n color = 'colorActionTextOnbrandDefault',\n // @ts-expect-error size prop is taken from IconDualColorRoot\n size,\n // @ts-expect-error disabled prop is taken from IconDualColorRoot\n disabled,\n ...props\n}: IconDualColorTopProps) {\n const iconColor = disabled ? 'colorTextNeutralDisabled' : color\n\n return (\n <Icon\n data-testid=\"icon-dual-color-top\"\n data-icon=\"top\"\n data-size={size}\n color={iconColor}\n size={size}\n {...props}\n >\n {children}\n </Icon>\n )\n}\n\nIconDualColorTop.displayName = 'IconDualColorTop'\n","import { Icon, type IconProps } from '../icon'\n\ntype IconDualColorBottomProps = Omit<IconProps, 'size'>\n\nexport function IconDualColorBottom({\n children,\n color = 'colorTextNeutralDefault',\n // @ts-expect-error size prop is taken from IconDualColorRoot\n size,\n // @ts-expect-error disabled prop is taken from IconDualColorRoot\n disabled,\n ...props\n}: IconDualColorBottomProps) {\n const iconColor = disabled ? 'colorTextNeutralDisabled' : color\n\n return (\n <Icon\n data-testid=\"icon-dual-color-bottom\"\n data-icon=\"bottom\"\n data-size={size}\n color={iconColor}\n size={size}\n {...props}\n >\n {children}\n </Icon>\n )\n}\n\nIconDualColorBottom.displayName = 'IconDualColorBottom'\n","import type { Assign } from '@ark-ui/react'\nimport type { IconProps } from '../icon'\nimport { IconDualColor, type IconDualColorProps } from '../icon-dual-color'\nimport type { ButtonSharedProps } from './button-root'\n\ntype ButtonIconDualColorProps = Assign<\n IconDualColorProps,\n Omit<ButtonSharedProps, 'asIconOnly'>\n>\n\nexport function ButtonIconDualColor({\n size = 'ml',\n ...props\n}: ButtonIconDualColorProps) {\n const sizeToIconSize: Record<\n NonNullable<ButtonSharedProps['size']>,\n IconProps['size']\n > = {\n md: 'extra-small',\n ml: 'small',\n lg: 'small',\n xl: 'small',\n }\n\n return <IconDualColor.Root {...props} size={sizeToIconSize[size]} />\n}\n\nButtonIconDualColor.displayName = 'ButtonIconDualColor'\n","import { Button, type ButtonProps } from '~/components/button'\n\ninterface ModalClosableButtonProps\n extends Omit<ButtonProps, 'size' | 'variant' | 'onClick'> {\n onClick?: () => void\n}\n\nexport function ModalClosableButton({\n onClick,\n ...rest\n}: ModalClosableButtonProps) {\n return (\n <Button.Root\n {...rest}\n variant=\"neutral-tertiary\"\n size=\"lg\"\n onClick={onClick}\n data-testid={rest.id}\n >\n <Button.Icon symbol=\"rdicon-dismiss\" />\n </Button.Root>\n )\n}\n","import { tv } from '~/utils/tv'\n\nexport const modalDescriptionStyles = tv({\n base: 'line-clamp-5 pt-none pr-none pb-none pl-none text-left font-rdmodern font-regular text-text-neutral text-threeandhalfpulse leading-small tracking-tiny',\n})\n","import { modalDescriptionStyles } from './modal-description.styles'\n\ntype THeaderLabelProps = {\n children: string\n} & Partial<React.HTMLAttributes<HTMLSpanElement>>\n\nexport function ModalDescription({ children, ...rest }: THeaderLabelProps) {\n return (\n <span {...rest} data-testid={rest.id} className={modalDescriptionStyles()}>\n {children}\n </span>\n )\n}\n","import React from 'react'\nimport { Button, type ButtonProps } from '~/components/button'\n\ntype TModalFooterProps = {\n children: React.ReactNode\n orientation?: 'vertical' | 'horizontal'\n} & Partial<React.HTMLAttributes<HTMLDivElement>>\n\ninterface TButtonFooterProps\n extends Omit<\n ButtonProps,\n 'variant' | 'full' | 'size' | 'onClick' | 'children'\n > {\n onClick?: () => void\n children: string\n}\n\nexport function ModalFirstButtonFooter({\n onClick,\n children,\n ...rest\n}: TButtonFooterProps) {\n return (\n <Button.Root\n {...rest}\n full\n variant=\"brand-primary\"\n className=\"flex-1\"\n size=\"lg\"\n onClick={onClick}\n data-testid={rest.id}\n >\n {children}\n </Button.Root>\n )\n}\n\nexport function ModalSecondButtonFooter({\n onClick,\n children,\n ...rest\n}: TButtonFooterProps) {\n return (\n <Button.Root\n {...rest}\n full\n variant=\"neutral-secondary\"\n className=\"flex-1\"\n size=\"lg\"\n onClick={onClick}\n data-testid={rest.id}\n >\n {children}\n </Button.Root>\n )\n}\n\nexport function ModalFooter({\n children,\n orientation = 'horizontal',\n ...rest\n}: TModalFooterProps) {\n const renderInternalFooterChildrens = React.Children.toArray(children).filter(\n child =>\n React.isValidElement(child) &&\n (child.type === ModalFirstButtonFooter ||\n child.type === ModalSecondButtonFooter)\n ) as React.ReactElement[]\n\n if (orientation === 'horizontal') {\n renderInternalFooterChildrens.sort((a, b) =>\n a.type === ModalSecondButtonFooter ? -1 : 1\n )\n } else {\n renderInternalFooterChildrens.sort((a, b) =>\n a.type === ModalFirstButtonFooter ? -1 : 1\n )\n }\n\n const classNameByOrientationFooter = () => {\n if (orientation === 'horizontal') {\n return 'flex w-[100%] max-w-[720px] flex-row items-center justify-center ml-auto mr-auto gap-fourpulse bg-[transparent] pt-fourpulse pr-fourpulse pb-fourpulse pl-fourpulse'\n }\n return 'flex w-[100%] max-w-[360px] flex-col items-center justify-center ml-auto mr-auto gap-fourpulse bg-[transparent] pt-fourpulse pr-fourpulse pb-fourpulse pl-fourpulse'\n }\n\n return (\n <div\n {...rest}\n data-testid={rest.id}\n className=\"rounded-tl-none rounded-tr-none rounded-br-mediumcontainer rounded-bl-mediumcontainer border-[#e6e6e6] border-t-none border-r-quarterpulse border-b-quarterpulse border-l-quarterpulse bg-[#FFF]\"\n >\n <div className={classNameByOrientationFooter()}>\n {renderInternalFooterChildrens?.slice(0, 2)}\n </div>\n </div>\n )\n}\n","import { tv } from '~/utils/tv'\n\nexport const modalHeaderStyles = tv({\n base: 'min-w[100%] row flex h-[72px] max-h-[72px] min-h-[72px] items-center gap-twopulse rounded-tl-mediumcontainer rounded-tr-mediumcontainer rounded-br-none rounded-bl-none border-[#e6e6e6] border-t-quarterpulse border-r-quarterpulse border-b-none border-b-none border-l-quarterpulse bg-[#FFF] pt-fourpulse pb-twopulse pl-sixpulse',\n})\n","import { modalHeaderStyles } from './modal-header.styles'\n\nexport const ModalHeader = ({ children }: { children?: React.ReactNode }) => {\n return <div className={modalHeaderStyles()}>{children}</div>\n}\n","import { Icon, type TIconProps } from '~/components/icon'\n\ninterface TModalIconProps\n extends Omit<TIconProps, 'symbol' | 'size' | 'color'> {\n symbol?: TIconProps['symbol']\n color?: TIconProps['color']\n}\n\nexport function ModalIcon({ symbol, color, ...rest }: TModalIconProps) {\n return <Icon {...rest} size=\"small\" symbol={symbol} color={color} />\n}\n","type THeaderLabelProps = {\n children: string\n id?: string\n} & Partial<React.HTMLAttributes<HTMLSpanElement>>\n\nexport function ModalTitle({ children, id, ...rest }: THeaderLabelProps) {\n return (\n <span\n {...rest}\n data-testid={id}\n className=\"line-clamp-1 font-bold font-rdmodern text-sixpulse text-text-neutral leading-tiny tracking-tiny\"\n >\n {children}\n </span>\n )\n}\n","import { tv } from '~/utils/tv'\n\nexport const modalVariants = tv({\n base: 'relative bg-transparent [z-index:999]',\n variants: {\n variant: {\n sm: 'h-auto min-w-[240px] max-w-[319px]',\n md: 'h-auto min-w-[320px] max-w-[719px]',\n lg: 'h-auto min-w-[720px] max-w-[1151px]',\n xl: 'h-auto min-w-[1152px] max-w-[1920px]',\n },\n },\n defaultVariants: {\n variant: 'sm',\n },\n})\n"],"mappings":"ykCAAA,IAAAA,GAAA,GAAAC,EAAAD,GAAA,WAAAE,KAAA,eAAAC,GAAAH,ICAA,IAAAI,GAA+C,mCAC/CC,EAAkC,sBCM9B,IAAAC,GAAA,6BAFG,SAASC,EAAUC,EAA4C,CAA5C,IAAAC,EAAAD,EAAE,UAAAE,EAAU,GAAAC,CALtC,EAK0BF,EAAmBG,EAAAC,EAAnBJ,EAAmB,CAAjB,WAAU,OACpC,SACE,QAAC,MAAAK,EAAAC,EAAA,GACKH,GADL,CAEC,cAAaD,EACb,UAAU,yJAET,SAAAD,GACH,CAEJ,CCfA,IAAAM,EAAA,GAAAC,EAAAD,EAAA,UAAAE,EAAA,kBAAAC,EAAA,SAAAC,ICAA,IAAAC,EAAuB,sBAGvBC,GAAoB,iCCHpB,IAAAC,GAAuB,sBCAvB,IAAAC,EAAuB,sBAmChB,SAASC,EACdC,EACAC,EACiB,CACjB,GAAM,CAAE,QAAAC,EAAS,MAAAC,EAAO,UAAAC,EAAY,SAAU,QAAAC,CAAQ,EAAIJ,EAEpDK,EAAe,WAAS,IAAIN,EAAU,CAACO,EAAOC,IAAU,CAzChE,IAAAC,EAAAC,EA0CI,GAAI,CAAO,iBAAeH,CAAK,EAAG,OAAOA,EAEzC,IAAMI,GAAeD,GAAAD,EAAAF,EAAM,OAAN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,EAAK,UAAWS,EAAgB,cAAaJ,EAC/D,qBAACuB,GAAA,CACE,UAAAjB,EACAI,KACD,OAAC,OAAI,UAAU,gEACZ,SAAAE,EACH,GACF,KACA,OAAC,OACC,cAAY,8BACZ,UAAU,+IAET,SAAAE,GAAA,YAAAA,EAA2B,MAAM,EAAG,GACvC,EACCE,KACD,OAAC,OACC,cAAY,+BACZ,UAAU,+IAET,SAAAF,GAAA,YAAAA,EAA2B,MAAM,EAAG,GACvC,EACCI,IACH,GACF,EACF,EAlCO,IAoCX,CACF,EAEAzB,GAAU,YAAcD,GAUxB,GAAM,CAACgC,EAAkB,KAAI,uBAAmBhC,EAAY,EAE/C,CAAC4B,GAAeK,EAAe,EAGxCD,GAAiChC,EAAY,EAMpCkC,GAAQ,CACnB,KAAMjC,GACN,WAAYgB,GACZ,YAAaE,GACb,qBAAsBE,EACtB,YAAaE,EACb,KAAME,EACN,OAAQE,GACR,cAAeQ,EACf,gBAAiBC,CACnB","names":["modal_exports","__export","Modal","__toCommonJS","import_react_context","import_react","import_jsx_runtime","ModalBody","_a","_b","children","id","rest","__objRest","__spreadProps","__spreadValues","namespace_exports","__export","ButtonIcon","ButtonIconDualColor","ButtonRoot","React","import_factory","React","React","injectPropsToChildren","children","options","targets","props","keyPrefix","asChild","cloned","child","index","_a","_b","displayName","shouldInject","childProps","__spreadProps","__spreadValues","useEnhancedChildren","children","targets","props","asChild","keyPrefix","injectPropsToChildren","import_clsx","import_tailwind_merge","cn","input","React","React","import_pulso_design_tokens","React","import_jsx_runtime","ThemeContext","useTheme","mappedTheme","context","ThemeContext","currentTheme","__spreadValues","import_jsx_runtime","Refresh","color","srText","theme","useTheme","fillColor","cn","import_tailwind_variants","tv","buttonStyles","tv","root","import_jsx_runtime","ButtonRoot","_a","_b","children","className","variant","size","disabled","loading","asChild","full","props","__objRest","enhancedChildrenWithInjectProps","useEnhancedChildren","shouldShowSpinner","refreshColorByVariant","loadingAccessibilityProps","isOnlyIcon","displayName","__spreadProps","__spreadValues","cn","root","Refresh","import_react","React","import_jsx_runtime","Icon","_a","_b","symbol","size","color","props","__objRest","theme","useTheme","resolvedFontSizes","__spreadProps","__spreadValues","import_jsx_runtime","ButtonIcon","variant","size","disabled","iconColor","symbol","sizeToIconSize","variantToIconColor","color","iconSize","Icon","namespace_exports","__export","IconDualColorBottom","IconDualColorRoot","IconDualColorTop","import_factory","import_jsx_runtime","IconDualColorRoot","_a","_b","children","size","disabled","asChild","props","__objRest","enhancedChildrenWithInjectProps","useEnhancedChildren","__spreadProps","__spreadValues","import_jsx_runtime","IconDualColorTop","_a","_b","children","color","size","disabled","props","__objRest","Icon","__spreadProps","__spreadValues","import_jsx_runtime","IconDualColorBottom","_a","_b","children","color","size","disabled","props","__objRest","Icon","__spreadProps","__spreadValues","import_jsx_runtime","ButtonIconDualColor","_a","_b","size","props","__objRest","sizeToIconSize","namespace_exports","__spreadProps","__spreadValues","import_jsx_runtime","ModalClosableButton","_a","_b","onClick","rest","__objRest","namespace_exports","__spreadProps","__spreadValues","modalDescriptionStyles","tv","import_jsx_runtime","ModalDescription","_a","_b","children","rest","__objRest","__spreadProps","__spreadValues","modalDescriptionStyles","import_react","import_jsx_runtime","ModalFirstButtonFooter","_a","_b","onClick","children","rest","__objRest","namespace_exports","__spreadProps","__spreadValues","ModalSecondButtonFooter","ModalFooter","orientation","renderInternalFooterChildrens","React","child","a","b","classNameByOrientationFooter","modalHeaderStyles","tv","import_jsx_runtime","ModalHeader","children","modalHeaderStyles","import_jsx_runtime","ModalIcon","_a","_b","symbol","color","rest","__objRest","Icon","__spreadProps","__spreadValues","import_jsx_runtime","ModalTitle","_a","_b","children","id","rest","__objRest","__spreadProps","__spreadValues","modalVariants","tv","import_jsx_runtime","DISPLAY_NAME","ModalRoot","props","ref","_a","children","variant","visible","id","_scopeModal","rest","__objRest","modalClassName","modalVariants","renderInternalHeaderIcon","React","child","ModalIcon","renderInternalHeaderTitle","ModalTitle","renderInternalHeaderClosableButton","ModalClosableButton","renderInternalDescription","ModalDescription","renderInternalBody","ModalBody","renderInternalFooter","ModalFooter","ModalProvider","__spreadProps","__spreadValues","ModalHeader","createModalContext","useModalContext","Modal","ModalFirstButtonFooter","ModalSecondButtonFooter"]}