@rehagro/ui 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/colors.types-7nLOoy6r.d.mts +4 -0
- package/dist/colors.types-7nLOoy6r.d.ts +4 -0
- package/dist/index.d.mts +15 -11
- package/dist/index.d.ts +15 -11
- package/dist/index.js +102 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +102 -23
- package/dist/index.mjs.map +1 -1
- package/dist/native.d.mts +50 -4
- package/dist/native.d.ts +50 -4
- package/dist/native.js +166 -10
- package/dist/native.js.map +1 -1
- package/dist/native.mjs +166 -11
- package/dist/native.mjs.map +1 -1
- package/dist/styles.css +2 -2
- package/package.json +1 -1
package/dist/native.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/provider/theme.native.ts","../src/provider/RehagroNativeContext.ts","../src/provider/RehagroNativeProvider.tsx","../src/components/Button/Button.native.tsx","../src/components/IconButton/IconButton.native.tsx","../src/components/TextInput/TextInput.native.tsx","../src/components/Checkbox/Checkbox.native.tsx","../src/components/Avatar/Avatar.native.tsx","../src/components/ActivityIndicator/ActivityIndicator.native.tsx","../src/components/Text/Text.native.tsx"],"names":["createContext","useContext","useMemo","forwardRef","Button","jsx","Pressable","jsxs","Fragment","ActivityIndicator","View","Text","IconButton","TextInput","useState","RNTextInput","Checkbox","useCallback","Avatar","Image","RNActivityIndicator","RNText"],"mappings":";;;;;;;;;AAiDO,IAAM,oBAAA,GAAqD;AAAA,EAChE,OAAA,EAAS,SAAA;AAAA,EACT,YAAA,EAAc,SAAA;AAAA,EACd,SAAA,EAAW,SAAA;AAAA,EACX,cAAA,EAAgB,SAAA;AAAA,EAChB,MAAA,EAAQ,SAAA;AAAA,EACR,WAAA,EAAa,SAAA;AAAA,EACb,OAAA,EAAS,SAAA;AAAA,EACT,OAAA,EAAS,SAAA;AAAA,EAET,IAAA,EAAM,SAAA;AAAA,EACN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AA,uBACEN,cAAAA,CAACgB,gBAAA,EAAA,EAAO,GAAA,EAAU,KAAA,EAAO,CAAC,aAAA,EAAe,KAAK,CAAA,EAAI,GAAG,IAAA,EAClD,QAAA,EACH,CAAA;AAEJ,CAAC","file":"native.js","sourcesContent":["import type { RehagroTheme } from \"./theme\";\n\n/** React Native theme — reuses the same token names as the web theme.\n * Color values are plain CSS hex strings (e.g. \"#16a34a\").\n * Spacing/radius/border values are numbers (device-independent pixels).\n */\nexport type RehagroNativeTheme = {\n // Brand colors\n primary?: string;\n primaryHover?: string;\n secondary?: string;\n secondaryHover?: string;\n danger?: string;\n dangerHover?: string;\n warning?: string;\n success?: string;\n\n // Semantic colors\n text?: string;\n textMuted?: string;\n surface?: string;\n background?: string;\n border?: string;\n\n // Border radius (numbers = dp)\n radiusXxs?: number;\n radiusXs?: number;\n radiusSm?: number;\n radiusMd?: number;\n radiusLg?: number;\n radiusXl?: number;\n\n // Border width\n borderWidthSm?: number;\n borderWidthMd?: number;\n borderWidthLg?: number;\n\n // Input sizes\n inputHeightSm?: number;\n inputHeightMd?: number;\n inputHeightLg?: number;\n};\n\nexport type RehagroNativeProviderProps = {\n /** Theme overrides — any token not provided keeps the default value */\n theme?: RehagroNativeTheme;\n children: React.ReactNode;\n};\n\nexport const DEFAULT_NATIVE_THEME: Required<RehagroNativeTheme> = {\n primary: \"#16a34a\",\n primaryHover: \"#15803d\",\n secondary: \"#6b7280\",\n secondaryHover: \"#4b5563\",\n danger: \"#dc2626\",\n dangerHover: \"#b91c1c\",\n warning: \"#d97706\",\n success: \"#16a34a\",\n\n text: \"#111827\",\n textMuted: \"#6b7280\",\n surface: \"#ffffff\",\n background: \"#f9fafb\",\n border: \"#d1d5db\",\n\n radiusXxs: 4,\n radiusXs: 8,\n radiusSm: 12,\n radiusMd: 16,\n radiusLg: 24,\n radiusXl: 32,\n\n borderWidthSm: 1,\n borderWidthMd: 2,\n borderWidthLg: 3,\n\n inputHeightSm: 36,\n inputHeightMd: 44,\n inputHeightLg: 52,\n};\n\n// Ensures RehagroNativeTheme color keys stay in sync with RehagroTheme\ntype _ColorKeysMatch = Pick<\n RehagroTheme,\n \"primary\" | \"primaryHover\" | \"secondary\" | \"secondaryHover\" | \"danger\" | \"dangerHover\" | \"warning\" | \"success\" | \"text\" | \"textMuted\" | \"surface\" | \"background\" | \"border\"\n>;\ntype _NativeColorKeys = Pick<\n RehagroNativeTheme,\n \"primary\" | \"primaryHover\" | \"secondary\" | \"secondaryHover\" | \"danger\" | \"dangerHover\" | \"warning\" | \"success\" | \"text\" | \"textMuted\" | \"surface\" | \"background\" | \"border\"\n>;\n// This line will error at compile time if the color keys diverge:\ntype _ColorKeysCheck = _ColorKeysMatch extends _NativeColorKeys ? true : never;\n","import { createContext, useContext } from \"react\";\nimport type { RehagroNativeTheme } from \"./theme.native\";\nimport { DEFAULT_NATIVE_THEME } from \"./theme.native\";\n\nexport const RehagroNativeContext = createContext<Required<RehagroNativeTheme>>(DEFAULT_NATIVE_THEME);\n\nexport function useRehagroTheme(): Required<RehagroNativeTheme> {\n return useContext(RehagroNativeContext);\n}\n","import React, { useMemo } from \"react\";\nimport { RehagroNativeContext } from \"./RehagroNativeContext\";\nimport { DEFAULT_NATIVE_THEME } from \"./theme.native\";\nimport type { RehagroNativeProviderProps, RehagroNativeTheme } from \"./theme.native\";\n\nexport function RehagroNativeProvider({ theme, children }: RehagroNativeProviderProps) {\n const resolvedTheme = useMemo<Required<RehagroNativeTheme>>(\n () => ({ ...DEFAULT_NATIVE_THEME, ...theme }),\n [theme],\n );\n\n return (\n <RehagroNativeContext.Provider value={resolvedTheme}>\n {children}\n </RehagroNativeContext.Provider>\n );\n}\n","import React, { forwardRef } from \"react\";\nimport {\n ActivityIndicator,\n Pressable,\n Text,\n View,\n type PressableProps,\n type StyleProp,\n type ViewStyle,\n} from \"react-native\";\nimport { useRehagroTheme } from \"../../provider/RehagroNativeContext\";\n\nexport type ButtonVariant = \"solid\" | \"outline\" | \"ghost\";\nexport type ButtonSize = \"sm\" | \"md\" | \"lg\";\nexport type ButtonRadius = \"none\" | \"xxs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"full\";\n\nexport type ButtonProps = Omit<PressableProps, \"style\"> & {\n /** Visual style variant */\n variant?: ButtonVariant;\n /** Button size */\n size?: ButtonSize;\n /** Border radius */\n radius?: ButtonRadius;\n /** Shows loading state and disables interaction */\n loading?: boolean;\n /** Icon rendered to the left of children (hidden when loading) */\n leftIcon?: React.ReactNode;\n /** Icon rendered to the right of children (hidden when loading) */\n rightIcon?: React.ReactNode;\n /** Label text */\n children?: React.ReactNode;\n /** Custom style for the outer Pressable */\n style?: StyleProp<ViewStyle>;\n};\n\nexport const Button = forwardRef<View, ButtonProps>(function Button(\n {\n variant = \"solid\",\n size = \"md\",\n radius = \"sm\",\n loading = false,\n disabled,\n leftIcon,\n rightIcon,\n children,\n style,\n accessibilityLabel,\n ...rest\n },\n ref,\n) {\n const theme = useRehagroTheme();\n const isDisabled = disabled || loading;\n\n const sizeStyleMap: Record<ButtonSize, ViewStyle> = {\n sm: { paddingHorizontal: 12, paddingVertical: 6 },\n md: { paddingHorizontal: 16, paddingVertical: 8 },\n lg: { paddingHorizontal: 20, paddingVertical: 10 },\n };\n\n const fontSizeMap: Record<ButtonSize, number> = {\n sm: 14,\n md: 14,\n lg: 16,\n };\n\n const radiusStyleMap: Record<ButtonRadius, number> = {\n none: 0,\n xxs: 2,\n xs: 4,\n sm: 8,\n md: 12,\n lg: 16,\n xl: 24,\n full: 9999,\n };\n\n const baseStyle: ViewStyle = {\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: 8,\n borderWidth: 1,\n opacity: isDisabled ? 0.5 : 1,\n borderRadius: radiusStyleMap[radius],\n ...sizeStyleMap[size],\n };\n\n const variantStyle = (pressed: boolean): ViewStyle => {\n if (variant === \"solid\") {\n return {\n backgroundColor: pressed ? theme.primaryHover : theme.primary,\n borderColor: pressed ? theme.primaryHover : theme.primary,\n };\n }\n if (variant === \"outline\") {\n return {\n borderColor: theme.primary,\n backgroundColor: pressed ? theme.primary : \"transparent\",\n };\n }\n return { borderColor: \"transparent\", backgroundColor: \"transparent\" };\n };\n\n const textColor = (pressed: boolean): string => {\n if (variant === \"solid\") return theme.surface;\n if (variant === \"outline\") return pressed ? theme.surface : theme.primary;\n return theme.primary;\n };\n\n return (\n <Pressable\n ref={ref}\n disabled={isDisabled}\n accessibilityRole=\"button\"\n accessibilityState={{ disabled: !!isDisabled, busy: loading }}\n accessibilityLabel={\n accessibilityLabel ?? (typeof children === \"string\" ? children : undefined)\n }\n style={({ pressed }) => [baseStyle, variantStyle(pressed), style]}\n {...rest}\n >\n {({ pressed }) => (\n <>\n {loading && (\n <ActivityIndicator\n size=\"small\"\n color={variant === \"solid\" ? theme.surface : theme.primary}\n />\n )}\n {!loading && leftIcon && <View accessibilityElementsHidden>{leftIcon}</View>}\n {typeof children === \"string\" ? (\n <Text\n style={{ color: textColor(pressed), fontSize: fontSizeMap[size], fontWeight: \"500\" }}\n >\n {children}\n </Text>\n ) : (\n children\n )}\n {!loading && rightIcon && <View accessibilityElementsHidden>{rightIcon}</View>}\n </>\n )}\n </Pressable>\n );\n});\n","import React, { forwardRef } from \"react\";\nimport {\n ActivityIndicator,\n Pressable,\n View,\n type PressableProps,\n type StyleProp,\n type ViewStyle,\n} from \"react-native\";\nimport { useRehagroTheme } from \"../../provider/RehagroNativeContext\";\n\nexport type IconButtonVariant = \"solid\" | \"outline\" | \"ghost\";\nexport type IconButtonSize = \"sm\" | \"md\" | \"lg\";\nexport type IconButtonRadius = \"none\" | \"xxs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"full\";\nexport type IconButtonColor = \"primary\" | \"danger\" | \"warning\" | \"success\" | \"secondary\";\n\nexport type IconButtonProps = Omit<PressableProps, \"style\"> & {\n /** Visual style variant */\n variant?: IconButtonVariant;\n /** Button size */\n size?: IconButtonSize;\n /** Border radius */\n radius?: IconButtonRadius;\n /** Color scheme */\n color?: IconButtonColor;\n /** Shows loading state and disables interaction */\n loading?: boolean;\n /** Icon content */\n children?: React.ReactNode;\n /** Custom style for the outer Pressable */\n style?: StyleProp<ViewStyle>;\n};\n\nexport const IconButton = forwardRef<View, IconButtonProps>(function IconButton(\n {\n variant = \"ghost\",\n size = \"md\",\n radius = \"full\",\n color = \"primary\",\n loading = false,\n disabled,\n children,\n style,\n accessibilityLabel,\n ...rest\n },\n ref,\n) {\n const theme = useRehagroTheme();\n const isDisabled = disabled || loading;\n\n const sizePxMap: Record<IconButtonSize, number> = {\n sm: 32,\n md: 40,\n lg: 48,\n };\n\n const radiusPxMap: Record<IconButtonRadius, number> = {\n none: 0,\n xxs: 2,\n xs: 4,\n sm: 8,\n md: 12,\n lg: 16,\n xl: 24,\n full: 9999,\n };\n\n const colorTokens: Record<IconButtonColor, { main: string; hover: string }> = {\n primary: { main: theme.primary, hover: theme.primaryHover },\n secondary: { main: theme.secondary, hover: theme.secondaryHover },\n danger: { main: theme.danger, hover: theme.dangerHover },\n warning: { main: theme.warning, hover: theme.warning },\n success: { main: theme.success, hover: theme.success },\n };\n\n const { main, hover } = colorTokens[color];\n const boxSize = sizePxMap[size];\n\n const baseStyle: ViewStyle = {\n width: boxSize,\n height: boxSize,\n borderRadius: radiusPxMap[radius],\n alignItems: \"center\",\n justifyContent: \"center\",\n borderWidth: 1,\n opacity: isDisabled ? 0.5 : 1,\n };\n\n const variantStyle = (pressed: boolean): ViewStyle => {\n if (variant === \"solid\") {\n return { backgroundColor: pressed ? hover : main, borderColor: pressed ? hover : main };\n }\n if (variant === \"outline\") {\n return { borderColor: main, backgroundColor: pressed ? main : \"transparent\" };\n }\n return { borderColor: \"transparent\", backgroundColor: pressed ? `${main}1a` : \"transparent\" };\n };\n\n const iconColor = (pressed: boolean): string => {\n if (variant === \"solid\") return theme.surface;\n if (variant === \"outline\") return pressed ? theme.surface : main;\n return main;\n };\n\n return (\n <Pressable\n ref={ref}\n disabled={isDisabled}\n accessibilityRole=\"button\"\n accessibilityState={{ disabled: !!isDisabled, busy: loading }}\n accessibilityLabel={accessibilityLabel}\n style={({ pressed }) => [baseStyle, variantStyle(pressed), style]}\n {...rest}\n >\n {({ pressed }) =>\n loading ? (\n <ActivityIndicator size=\"small\" color={variant === \"solid\" ? theme.surface : main} />\n ) : (\n <View style={{ tintColor: iconColor(pressed) } as ViewStyle}>\n {children}\n </View>\n )\n }\n </Pressable>\n );\n});\n","import React, { forwardRef, useState } from \"react\";\nimport {\n TextInput as RNTextInput,\n Text,\n View,\n type TextInputProps as RNTextInputProps,\n type StyleProp,\n type ViewStyle,\n} from \"react-native\";\nimport { useRehagroTheme } from \"../../provider/RehagroNativeContext\";\n\nexport type TextInputStatus = \"default\" | \"error\";\nexport type TextInputSize = \"sm\" | \"md\" | \"lg\";\nexport type TextInputRadius = \"none\" | \"xxs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"full\";\n\nexport type TextInputProps = Omit<RNTextInputProps, \"style\"> & {\n /** Label text displayed above the input */\n label?: string;\n /** Subtitle displayed next to the label */\n subtitle?: string;\n /** Validation status */\n status?: TextInputStatus;\n /** Input size */\n size?: TextInputSize;\n /** Border radius */\n radius?: TextInputRadius;\n /** Icon rendered to the left of the input */\n leftIcon?: React.ReactNode;\n /** Icon rendered to the right of the input */\n rightIcon?: React.ReactNode;\n /** Helper/error message displayed below the input */\n helperText?: React.ReactNode;\n /** Custom style for the outermost wrapper */\n wrapperStyle?: StyleProp<ViewStyle>;\n /** Custom style for the input container */\n style?: StyleProp<ViewStyle>;\n};\n\nexport const TextInput = forwardRef<RNTextInput, TextInputProps>(function TextInput(\n {\n label,\n subtitle,\n status = \"default\",\n size = \"md\",\n radius = \"xs\",\n leftIcon,\n rightIcon,\n helperText,\n editable = true,\n wrapperStyle,\n style,\n accessibilityLabel,\n ...rest\n },\n ref,\n) {\n const theme = useRehagroTheme();\n const [focused, setFocused] = useState(false);\n\n const isDisabled = editable === false;\n\n const heightMap: Record<TextInputSize, number> = {\n sm: theme.inputHeightSm,\n md: theme.inputHeightMd,\n lg: theme.inputHeightLg,\n };\n\n const paddingMap: Record<TextInputSize, number> = {\n sm: 12,\n md: 14,\n lg: 16,\n };\n\n const fontSizeMap: Record<TextInputSize, number> = {\n sm: 14,\n md: 14,\n lg: 16,\n };\n\n const radiusMap: Record<TextInputRadius, number> = {\n none: 0,\n xxs: theme.radiusXxs,\n xs: theme.radiusXs,\n sm: theme.radiusSm,\n md: theme.radiusMd,\n lg: theme.radiusLg,\n xl: theme.radiusXl,\n full: 9999,\n };\n\n const borderColor =\n status === \"error\"\n ? theme.danger\n : focused\n ? theme.primary\n : theme.border;\n\n const containerStyle: ViewStyle = {\n height: heightMap[size],\n paddingHorizontal: paddingMap[size],\n borderRadius: radiusMap[radius],\n borderWidth: theme.borderWidthSm,\n borderColor,\n backgroundColor: isDisabled ? theme.background : theme.surface,\n flexDirection: \"row\",\n alignItems: \"center\",\n gap: 8,\n opacity: isDisabled ? 0.5 : 1,\n };\n\n const inputId = accessibilityLabel ?? label;\n\n return (\n <View style={[{ gap: 4 }, wrapperStyle]}>\n {/* Label + Subtitle */}\n {label && (\n <View style={{ flexDirection: \"row\", alignItems: \"baseline\", gap: 4 }}>\n <Text style={{ fontSize: 14, fontWeight: \"500\", color: theme.text }}>\n {label}\n </Text>\n {subtitle && (\n <Text style={{ fontSize: 14, color: theme.textMuted }}>{subtitle}</Text>\n )}\n </View>\n )}\n\n {/* Input container */}\n <View style={[containerStyle, style]}>\n {leftIcon && (\n <View accessibilityElementsHidden style={{ width: fontSizeMap[size], height: fontSizeMap[size] }}>\n {leftIcon}\n </View>\n )}\n\n <RNTextInput\n ref={ref}\n editable={editable}\n accessibilityLabel={inputId}\n accessibilityState={{ disabled: isDisabled }}\n aria-invalid={status === \"error\"}\n onFocus={(e) => {\n setFocused(true);\n rest.onFocus?.(e);\n }}\n onBlur={(e) => {\n setFocused(false);\n rest.onBlur?.(e);\n }}\n style={{\n flex: 1,\n fontSize: fontSizeMap[size],\n color: theme.text,\n }}\n placeholderTextColor={theme.textMuted}\n {...rest}\n />\n\n {rightIcon && (\n <View accessibilityElementsHidden style={{ width: fontSizeMap[size], height: fontSizeMap[size] }}>\n {rightIcon}\n </View>\n )}\n </View>\n\n {/* Helper text */}\n {helperText && (\n <Text\n style={{\n fontSize: 12,\n color: status === \"error\" ? theme.danger : theme.textMuted,\n }}\n >\n {helperText}\n </Text>\n )}\n </View>\n );\n});\n","import React, { forwardRef, useCallback, useState } from \"react\";\nimport {\n Pressable,\n Text,\n View,\n type PressableProps,\n type StyleProp,\n type ViewStyle,\n} from \"react-native\";\nimport { useRehagroTheme } from \"../../provider/RehagroNativeContext\";\n\nexport type CheckboxSize = \"sm\" | \"md\" | \"lg\";\n\nexport type CheckboxProps = Omit<PressableProps, \"style\" | \"onPress\"> & {\n /** Checkbox size */\n size?: CheckboxSize;\n /** Label text displayed next to the checkbox */\n label?: string;\n /** Controlled checked state */\n checked?: boolean;\n /** Default checked state (uncontrolled) */\n defaultChecked?: boolean;\n /** Indeterminate state (partially checked) */\n indeterminate?: boolean;\n /** Callback fired when the value changes */\n onChange?: (checked: boolean) => void;\n /** Custom style for the outer wrapper */\n style?: StyleProp<ViewStyle>;\n};\n\nconst CheckIcon = ({ size, color }: { size: number; color: string }) => (\n <View\n style={{\n width: size,\n height: size,\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n {/* Simple checkmark drawn with two Views rotated — no SVG dep needed */}\n <View\n style={{\n position: \"absolute\",\n width: size * 0.55,\n height: size * 0.3,\n borderLeftWidth: 2,\n borderBottomWidth: 2,\n borderColor: color,\n transform: [{ rotate: \"-45deg\" }, { translateY: -size * 0.05 }],\n }}\n />\n </View>\n);\n\nconst MinusIcon = ({ size, color }: { size: number; color: string }) => (\n <View\n style={{\n width: size * 0.7,\n height: 2,\n backgroundColor: color,\n }}\n />\n);\n\nexport const Checkbox = forwardRef<View, CheckboxProps>(function Checkbox(\n {\n size = \"md\",\n label,\n checked: controlledChecked,\n defaultChecked = false,\n indeterminate = false,\n disabled,\n onChange,\n style,\n accessibilityLabel,\n ...rest\n },\n ref,\n) {\n const theme = useRehagroTheme();\n const isControlled = controlledChecked !== undefined;\n const [internalChecked, setInternalChecked] = useState(defaultChecked);\n\n const isChecked = isControlled ? controlledChecked : internalChecked;\n const isActive = isChecked || indeterminate;\n\n const handlePress = useCallback(() => {\n if (disabled) return;\n const next = !isChecked;\n if (!isControlled) setInternalChecked(next);\n onChange?.(next);\n }, [disabled, isChecked, isControlled, onChange]);\n\n const boxSizeMap: Record<CheckboxSize, number> = {\n sm: 16,\n md: 20,\n lg: 24,\n };\n\n const iconSizeMap: Record<CheckboxSize, number> = {\n sm: 10,\n md: 12,\n lg: 14,\n };\n\n const fontSizeMap: Record<CheckboxSize, number> = {\n sm: 14,\n md: 14,\n lg: 16,\n };\n\n const boxSize = boxSizeMap[size];\n const iconSize = iconSizeMap[size];\n\n const boxStyle: ViewStyle = {\n width: boxSize,\n height: boxSize,\n borderRadius: theme.radiusXxs,\n borderWidth: theme.borderWidthSm,\n borderColor: isActive ? theme.primary : theme.border,\n backgroundColor: isActive ? theme.primary : theme.surface,\n alignItems: \"center\",\n justifyContent: \"center\",\n };\n\n return (\n <Pressable\n ref={ref}\n onPress={handlePress}\n disabled={disabled}\n accessibilityRole=\"checkbox\"\n accessibilityState={{ checked: indeterminate ? \"mixed\" : isChecked, disabled: !!disabled }}\n accessibilityLabel={accessibilityLabel ?? label}\n style={[{ flexDirection: \"row\", alignItems: \"center\", gap: 8, opacity: disabled ? 0.5 : 1 }, style]}\n {...rest}\n >\n <View style={boxStyle}>\n {indeterminate ? (\n <MinusIcon size={iconSize} color={theme.surface} />\n ) : isChecked ? (\n <CheckIcon size={iconSize} color={theme.surface} />\n ) : null}\n </View>\n\n {label && (\n <Text style={{ fontSize: fontSizeMap[size], color: theme.text }}>\n {label}\n </Text>\n )}\n </Pressable>\n );\n});\n","import React, { forwardRef, useState } from \"react\";\nimport { Image, Text, View, type StyleProp, type ViewStyle, type ViewProps } from \"react-native\";\nimport { useRehagroTheme } from \"../../provider/RehagroNativeContext\";\n\nexport type AvatarSize = \"sm\" | \"md\" | \"lg\" | \"xl\";\nexport type AvatarVariant = \"circle\" | \"square\";\n\nexport type AvatarProps = Omit<ViewProps, \"style\"> & {\n /** Image source URL */\n src?: string;\n /** Alt text (used as accessibility label and initials fallback) */\n alt?: string;\n /** Fallback initials shown when image is unavailable */\n initials?: string;\n /** Avatar size */\n size?: AvatarSize;\n /** Shape variant */\n variant?: AvatarVariant;\n /** Custom style for the outer wrapper */\n style?: StyleProp<ViewStyle>;\n};\n\nexport const Avatar = forwardRef<View, AvatarProps>(function Avatar(\n { src, alt = \"\", initials, size = \"md\", variant = \"circle\", style, ...rest },\n ref,\n) {\n const theme = useRehagroTheme();\n const [imgError, setImgError] = useState(false);\n const showImage = !!src && !imgError;\n\n const fallbackLabel = initials\n ? initials.slice(0, 2).toUpperCase()\n : alt\n ? alt\n .split(\" \")\n .slice(0, 2)\n .map((w) => w[0])\n .join(\"\")\n .toUpperCase()\n : \"?\";\n\n const sizePxMap: Record<AvatarSize, number> = {\n sm: 32,\n md: 40,\n lg: 48,\n xl: 64,\n };\n\n const fontSizeMap: Record<AvatarSize, number> = {\n sm: 12,\n md: 14,\n lg: 18,\n xl: 20,\n };\n\n const boxSize = sizePxMap[size];\n const borderRadius = variant === \"circle\" ? boxSize / 2 : theme.radiusSm;\n\n const containerStyle: ViewStyle = {\n width: boxSize,\n height: boxSize,\n borderRadius,\n backgroundColor: theme.primary,\n alignItems: \"center\",\n justifyContent: \"center\",\n overflow: \"hidden\",\n };\n\n return (\n <View\n ref={ref}\n accessible\n accessibilityRole=\"image\"\n accessibilityLabel={alt || initials || fallbackLabel}\n style={[containerStyle, style]}\n {...rest}\n >\n {showImage ? (\n <Image\n source={{ uri: src }}\n style={{ width: boxSize, height: boxSize, borderRadius }}\n onError={() => setImgError(true)}\n accessibilityLabel={alt}\n />\n ) : (\n <Text\n style={{\n fontSize: fontSizeMap[size],\n fontWeight: \"500\",\n color: theme.surface,\n }}\n accessibilityElementsHidden\n >\n {fallbackLabel}\n </Text>\n )}\n </View>\n );\n});\n","import React, { forwardRef } from \"react\";\nimport {\n ActivityIndicator as RNActivityIndicator,\n View,\n type StyleProp,\n type ViewStyle,\n type ViewProps,\n} from \"react-native\";\nimport { useRehagroTheme } from \"../../provider/RehagroNativeContext\";\n\nexport type ActivityIndicatorSize = \"sm\" | \"md\" | \"lg\";\nexport type ActivityIndicatorColor = \"primary\" | \"surface\" | \"custom\";\n\nexport type ActivityIndicatorProps = Omit<ViewProps, \"style\"> & {\n /** Spinner size */\n size?: ActivityIndicatorSize;\n /** Color preset — use \"custom\" to provide a raw color via `color` prop */\n colorVariant?: ActivityIndicatorColor;\n /** Raw color value (used when colorVariant is \"custom\") */\n color?: string;\n /** Whether the indicator is visible */\n animating?: boolean;\n /** Custom style for the outer wrapper */\n style?: StyleProp<ViewStyle>;\n};\n\nconst sizeMap: Record<ActivityIndicatorSize, number | \"small\" | \"large\"> = {\n sm: \"small\",\n md: \"large\",\n lg: 48,\n};\n\nexport const ActivityIndicator = forwardRef<View, ActivityIndicatorProps>(\n function ActivityIndicator(\n {\n size = \"md\",\n colorVariant = \"primary\",\n color,\n animating = true,\n style,\n accessibilityLabel = \"Carregando\",\n ...rest\n },\n ref,\n ) {\n const theme = useRehagroTheme();\n\n const resolvedColor =\n colorVariant === \"custom\" && color\n ? color\n : colorVariant === \"surface\"\n ? theme.surface\n : theme.primary;\n\n const spinnerSize = sizeMap[size];\n\n return (\n <View\n ref={ref}\n accessible\n accessibilityRole=\"progressbar\"\n accessibilityLabel={accessibilityLabel}\n accessibilityState={{ busy: animating }}\n style={style}\n {...rest}\n >\n <RNActivityIndicator\n animating={animating}\n size={spinnerSize as \"small\" | \"large\"}\n color={resolvedColor}\n />\n </View>\n );\n },\n);\n","import React, { forwardRef } from \"react\";\nimport {\n Text as RNText,\n type TextProps as RNTextProps,\n type StyleProp,\n type TextStyle,\n} from \"react-native\";\nimport { useRehagroTheme } from \"../../provider/RehagroNativeContext\";\n\nexport type TextVariant =\n | \"h1\"\n | \"h2\"\n | \"h3\"\n | \"h4\"\n | \"body\"\n | \"bodyLg\"\n | \"caption\"\n | \"label\";\n\nexport type TextColor = \"default\" | \"muted\" | \"primary\" | \"danger\" | \"success\" | \"warning\";\n\nexport type TextProps = Omit<RNTextProps, \"style\"> & {\n /** Typographic variant */\n variant?: TextVariant;\n /** Color preset */\n color?: TextColor;\n /** Bold weight */\n bold?: boolean;\n /** Custom style */\n style?: StyleProp<TextStyle>;\n};\n\nconst variantStyles: Record<TextVariant, TextStyle> = {\n h1: { fontSize: 32, lineHeight: 40, fontWeight: \"700\" },\n h2: { fontSize: 24, lineHeight: 32, fontWeight: \"700\" },\n h3: { fontSize: 20, lineHeight: 28, fontWeight: \"600\" },\n h4: { fontSize: 18, lineHeight: 26, fontWeight: \"600\" },\n bodyLg: { fontSize: 16, lineHeight: 24, fontWeight: \"400\" },\n body: { fontSize: 14, lineHeight: 20, fontWeight: \"400\" },\n label: { fontSize: 14, lineHeight: 20, fontWeight: \"500\" },\n caption: { fontSize: 12, lineHeight: 16, fontWeight: \"400\" },\n};\n\nexport const Text = forwardRef<RNText, TextProps>(function Text(\n { variant = \"body\", color = \"default\", bold = false, style, children, ...rest },\n ref,\n) {\n const theme = useRehagroTheme();\n\n const colorMap: Record<TextColor, string> = {\n default: theme.text,\n muted: theme.textMuted,\n primary: theme.primary,\n danger: theme.danger,\n success: theme.success,\n warning: theme.warning,\n };\n\n const resolvedStyle: TextStyle = {\n ...variantStyles[variant],\n color: colorMap[color],\n ...(bold ? { fontWeight: \"700\" } : {}),\n };\n\n return (\n <RNText ref={ref} style={[resolvedStyle, style]} {...rest}>\n {children}\n </RNText>\n );\n});\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/provider/theme.native.ts","../src/provider/RehagroNativeContext.ts","../src/provider/RehagroNativeProvider.tsx","../src/components/Button/Button.native.tsx","../src/components/IconButton/IconButton.native.tsx","../src/components/TextInput/TextInput.native.tsx","../src/components/Checkbox/Checkbox.native.tsx","../src/components/Avatar/Avatar.native.tsx","../src/components/ActivityIndicator/ActivityIndicator.native.tsx","../src/components/Text/Text.native.tsx","../src/components/Tag/Tag.native.tsx"],"names":["createContext","useContext","useMemo","forwardRef","Button","jsx","Pressable","jsxs","Fragment","ActivityIndicator","View","Text","PRESET_COLORS","isPresetColor","IconButton","TextInput","useState","RNTextInput","Checkbox","useCallback","Avatar","Image","RNActivityIndicator","RNText","Tag"],"mappings":";;;;;;;;;AAmDO,IAAM,oBAAA,GAAqD;AAAA,EAChE,OAAA,EAAS,SAAA;AAAA,EACT,YAAA,EAAc,SAAA;AAAA,EACd,SAAA,EAAW,SAAA;AAAA,EACX,cAAA,EAAgB,SAAA;AAAA,EAChB,MAAA,EAAQ,SAAA;AAAA,EACR,WAAA,EAAa,SAAA;AAAA,EACb,OAAA,EAAS,SAAA;AAAA,EACT,OAAA,EAAS,SAAA;AAAA,EACT,IAAA,EAAM,SAAA;AAAA,EACN,SAAA,EAAW,SAAA;AAAA,EAEX,IAAA,EAAM,SAAA;AAAA,EACN,SAAA,EAAW,SAAA;AAAA,EACX,OAAA,EAAS,SAAA;AAAA,EACT,UAAA,EAAY,SAAA;AAAA,EACZ,MAAA,EAAQ,SAAA;AAAA,EAER,SAAA,EAAW,CAAA;AAAA,EACX,QAAA,EAAU,CAAA;AAAA,EACV,QAAA,EAAU,EAAA;AAAA,EACV,QAAA,EAAU,EAAA;AAAA,EACV,QAAA,EAAU,EAAA;AAAA,EACV,QAAA,EAAU,EAAA;AAAA,EAEV,aAAA,EAAe,CAAA;AAAA,EACf,aAAA,EAAe,CAAA;AAAA,EACf,aAAA,EAAe,CAAA;AAAA,EAEf,aAAA,EAAe,EAAA;AAAA,EACf,aAAA,EAAe,EAAA;AAAA,EACf,aAAA,EAAe;AACjB,CAAA;;;AC/EO,IA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AA,EAAU,QAAA,EAAU,MAAA,EAAO;AAAA,MACjD,oBAAoB,kBAAA,IAAsB,KAAA;AAAA,MAC1C,KAAA,EAAO,CAAC,EAAE,OAAA,EAAQ,KAAM,CAAC,SAAA,EAAW,cAAA,CAAe,OAAO,CAAA,EAAG,KAAK,CAAA;AAAA,MACjE,GAAG,IAAA;AAAA,MAEH,WAAC,EAAE,OAAA,uBACFC,eAAAA,CAAAC,qBAAA,EACG,QAAA,EAAA;AAAA,QAAA,QAAA,oBAAYH,cAAAA,CAACK,gBAAAA,EAAA,EAAK,2BAAA,EAA2B,MAAE,QAAA,EAAA,QAAA,EAAS,CAAA;AAAA,wBACzDL,eAACM,gBAAAA,EAAA,EAAK,OAAO,SAAA,CAAU,OAAO,GAAI,QAAA,EAAA,KAAA,EAAM,CAAA;AAAA,QACvC,6BAAaN,cAAAA,CAACK,kBAAA,EAAK,2BAAA,EAA2B,MAAE,QAAA,EAAA,SAAA,EAAU;AAAA,OAAA,EAC7D;AAAA;AAAA,GAEJ;AAEJ,CAAC","file":"native.js","sourcesContent":["import type { RehagroTheme } from \"./theme\";\n\n/** React Native theme — reuses the same token names as the web theme.\n * Color values are plain CSS hex strings (e.g. \"#16a34a\").\n * Spacing/radius/border values are numbers (device-independent pixels).\n */\nexport type RehagroNativeTheme = {\n // Brand colors\n primary?: string;\n primaryHover?: string;\n secondary?: string;\n secondaryHover?: string;\n danger?: string;\n dangerHover?: string;\n warning?: string;\n success?: string;\n info?: string;\n infoHover?: string;\n\n // Semantic colors\n text?: string;\n textMuted?: string;\n surface?: string;\n background?: string;\n border?: string;\n\n // Border radius (numbers = dp)\n radiusXxs?: number;\n radiusXs?: number;\n radiusSm?: number;\n radiusMd?: number;\n radiusLg?: number;\n radiusXl?: number;\n\n // Border width\n borderWidthSm?: number;\n borderWidthMd?: number;\n borderWidthLg?: number;\n\n // Input sizes\n inputHeightSm?: number;\n inputHeightMd?: number;\n inputHeightLg?: number;\n};\n\nexport type RehagroNativeProviderProps = {\n /** Theme overrides — any token not provided keeps the default value */\n theme?: RehagroNativeTheme;\n children: React.ReactNode;\n};\n\nexport const DEFAULT_NATIVE_THEME: Required<RehagroNativeTheme> = {\n primary: \"#16a34a\",\n primaryHover: \"#15803d\",\n secondary: \"#6b7280\",\n secondaryHover: \"#4b5563\",\n danger: \"#dc2626\",\n dangerHover: \"#b91c1c\",\n warning: \"#d97706\",\n success: \"#16a34a\",\n info: \"#0284c7\",\n infoHover: \"#0369a1\",\n\n text: \"#111827\",\n textMuted: \"#6b7280\",\n surface: \"#ffffff\",\n background: \"#f9fafb\",\n border: \"#d1d5db\",\n\n radiusXxs: 4,\n radiusXs: 8,\n radiusSm: 12,\n radiusMd: 16,\n radiusLg: 24,\n radiusXl: 32,\n\n borderWidthSm: 1,\n borderWidthMd: 2,\n borderWidthLg: 3,\n\n inputHeightSm: 36,\n inputHeightMd: 44,\n inputHeightLg: 52,\n};\n\n// Ensures RehagroNativeTheme color keys stay in sync with RehagroTheme\ntype _ColorKeysMatch = Pick<\n RehagroTheme,\n \"primary\" | \"primaryHover\" | \"secondary\" | \"secondaryHover\" | \"danger\" | \"dangerHover\" | \"warning\" | \"success\" | \"info\" | \"infoHover\" | \"text\" | \"textMuted\" | \"surface\" | \"background\" | \"border\"\n>;\ntype _NativeColorKeys = Pick<\n RehagroNativeTheme,\n \"primary\" | \"primaryHover\" | \"secondary\" | \"secondaryHover\" | \"danger\" | \"dangerHover\" | \"warning\" | \"success\" | \"info\" | \"infoHover\" | \"text\" | \"textMuted\" | \"surface\" | \"background\" | \"border\"\n>;\n// This line will error at compile time if the color keys diverge:\ntype _ColorKeysCheck = _ColorKeysMatch extends _NativeColorKeys ? true : never;\n","import { createContext, useContext } from \"react\";\nimport type { RehagroNativeTheme } from \"./theme.native\";\nimport { DEFAULT_NATIVE_THEME } from \"./theme.native\";\n\nexport const RehagroNativeContext = createContext<Required<RehagroNativeTheme>>(DEFAULT_NATIVE_THEME);\n\nexport function useRehagroTheme(): Required<RehagroNativeTheme> {\n return useContext(RehagroNativeContext);\n}\n","import React, { useMemo } from \"react\";\nimport { RehagroNativeContext } from \"./RehagroNativeContext\";\nimport { DEFAULT_NATIVE_THEME } from \"./theme.native\";\nimport type { RehagroNativeProviderProps, RehagroNativeTheme } from \"./theme.native\";\n\nexport function RehagroNativeProvider({ theme, children }: RehagroNativeProviderProps) {\n const resolvedTheme = useMemo<Required<RehagroNativeTheme>>(\n () => ({ ...DEFAULT_NATIVE_THEME, ...theme }),\n [theme],\n );\n\n return (\n <RehagroNativeContext.Provider value={resolvedTheme}>\n {children}\n </RehagroNativeContext.Provider>\n );\n}\n","import React, { forwardRef } from \"react\";\nimport {\n ActivityIndicator,\n Pressable,\n Text,\n View,\n type PressableProps,\n type StyleProp,\n type ViewStyle,\n} from \"react-native\";\nimport { useRehagroTheme } from \"../../provider/RehagroNativeContext\";\nimport type { ButtonColor, PresetColor } from \"../../types/colors.types\";\n\nexport type { ButtonColor };\nexport type ButtonVariant = \"solid\" | \"outline\" | \"ghost\";\nexport type ButtonSize = \"sm\" | \"md\" | \"lg\";\nexport type ButtonRadius = \"none\" | \"xxs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"full\";\n\nexport type ButtonProps = Omit<PressableProps, \"style\"> & {\n /** Visual style variant */\n variant?: ButtonVariant;\n /** Button size */\n size?: ButtonSize;\n /** Border radius */\n radius?: ButtonRadius;\n /** Color scheme — preset name or any CSS color (e.g., \"#c3c3c3\", \"red\", \"rgb(...)\") */\n color?: ButtonColor;\n /** Shows loading state and disables interaction */\n loading?: boolean;\n /** Icon rendered to the left of children (hidden when loading) */\n leftIcon?: React.ReactNode;\n /** Icon rendered to the right of children (hidden when loading) */\n rightIcon?: React.ReactNode;\n /** Label text */\n children?: React.ReactNode;\n /** Custom style for the outer Pressable */\n style?: StyleProp<ViewStyle>;\n};\n\nconst PRESET_COLORS = new Set<string>([\n \"primary\",\n \"secondary\",\n \"danger\",\n \"warning\",\n \"success\",\n \"info\",\n]);\n\nconst isPresetColor = (c: string): c is PresetColor => PRESET_COLORS.has(c);\n\nexport const Button = forwardRef<View, ButtonProps>(function Button(\n {\n variant = \"solid\",\n size = \"md\",\n radius = \"sm\",\n color = \"primary\",\n loading = false,\n disabled,\n leftIcon,\n rightIcon,\n children,\n style,\n accessibilityLabel,\n ...rest\n },\n ref,\n) {\n const theme = useRehagroTheme();\n const isDisabled = disabled || loading;\n const preset = isPresetColor(color);\n\n const presetBase: Record<PresetColor, string> = {\n primary: theme.primary,\n secondary: theme.secondary,\n danger: theme.danger,\n warning: theme.warning,\n success: theme.success,\n info: theme.info,\n };\n\n const presetHover: Record<PresetColor, string> = {\n primary: theme.primaryHover,\n secondary: theme.secondaryHover,\n danger: theme.dangerHover,\n warning: theme.warning,\n success: theme.success,\n info: theme.infoHover,\n };\n\n const colorBase = preset ? presetBase[color as PresetColor] : color;\n const colorHover = preset ? presetHover[color as PresetColor] : color;\n\n const sizeStyleMap: Record<ButtonSize, ViewStyle> = {\n sm: { paddingHorizontal: 12, paddingVertical: 6 },\n md: { paddingHorizontal: 16, paddingVertical: 8 },\n lg: { paddingHorizontal: 20, paddingVertical: 10 },\n };\n\n const fontSizeMap: Record<ButtonSize, number> = {\n sm: 14,\n md: 14,\n lg: 16,\n };\n\n const radiusStyleMap: Record<ButtonRadius, number> = {\n none: 0,\n xxs: 2,\n xs: 4,\n sm: 8,\n md: 12,\n lg: 16,\n xl: 24,\n full: 9999,\n };\n\n const baseStyle: ViewStyle = {\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"center\",\n gap: 8,\n borderWidth: 1,\n opacity: isDisabled ? 0.5 : 1,\n borderRadius: radiusStyleMap[radius],\n ...sizeStyleMap[size],\n };\n\n const variantStyle = (pressed: boolean): ViewStyle => {\n if (variant === \"solid\") {\n return {\n backgroundColor: pressed ? colorHover : colorBase,\n borderColor: pressed ? colorHover : colorBase,\n };\n }\n if (variant === \"outline\") {\n return {\n borderColor: colorBase,\n backgroundColor: pressed ? colorBase : \"transparent\",\n };\n }\n return { borderColor: \"transparent\", backgroundColor: \"transparent\" };\n };\n\n const textColor = (pressed: boolean): string => {\n if (variant === \"solid\") return theme.surface;\n if (variant === \"outline\") return pressed ? theme.surface : colorBase;\n return colorBase;\n };\n\n return (\n <Pressable\n ref={ref}\n disabled={isDisabled}\n accessibilityRole=\"button\"\n accessibilityState={{ disabled: !!isDisabled, busy: loading }}\n accessibilityLabel={\n accessibilityLabel ?? (typeof children === \"string\" ? children : undefined)\n }\n style={({ pressed }) => [baseStyle, variantStyle(pressed), style]}\n {...rest}\n >\n {({ pressed }) => (\n <>\n {loading && (\n <ActivityIndicator\n size=\"small\"\n color={variant === \"solid\" ? theme.surface : colorBase}\n />\n )}\n {!loading && leftIcon && <View accessibilityElementsHidden>{leftIcon}</View>}\n {typeof children === \"string\" ? (\n <Text\n style={{ color: textColor(pressed), fontSize: fontSizeMap[size], fontWeight: \"500\" }}\n >\n {children}\n </Text>\n ) : (\n children\n )}\n {!loading && rightIcon && <View accessibilityElementsHidden>{rightIcon}</View>}\n </>\n )}\n </Pressable>\n );\n});\n","import React, { forwardRef } from \"react\";\nimport {\n ActivityIndicator,\n Pressable,\n View,\n type PressableProps,\n type StyleProp,\n type ViewStyle,\n} from \"react-native\";\nimport { useRehagroTheme } from \"../../provider/RehagroNativeContext\";\nimport type { ButtonColor, PresetColor } from \"../../types/colors.types\";\n\nexport type IconButtonVariant = \"solid\" | \"outline\" | \"ghost\";\nexport type IconButtonSize = \"sm\" | \"md\" | \"lg\";\nexport type IconButtonRadius = \"none\" | \"xxs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"full\";\nexport type IconButtonColor = ButtonColor;\n\nconst PRESET_COLORS = new Set<string>([\n \"primary\",\n \"secondary\",\n \"danger\",\n \"warning\",\n \"success\",\n \"info\",\n]);\n\nconst isPresetColor = (c: string): c is PresetColor => PRESET_COLORS.has(c);\n\nexport type IconButtonProps = Omit<PressableProps, \"style\"> & {\n /** Visual style variant */\n variant?: IconButtonVariant;\n /** Button size */\n size?: IconButtonSize;\n /** Border radius */\n radius?: IconButtonRadius;\n /** Color scheme — preset name or any CSS color (e.g., \"#c3c3c3\", \"red\", \"rgb(...)\") */\n color?: IconButtonColor;\n /** Shows loading state and disables interaction */\n loading?: boolean;\n /** Icon content */\n children?: React.ReactNode;\n /** Custom style for the outer Pressable */\n style?: StyleProp<ViewStyle>;\n};\n\nexport const IconButton = forwardRef<View, IconButtonProps>(function IconButton(\n {\n variant = \"ghost\",\n size = \"md\",\n radius = \"full\",\n color = \"primary\",\n loading = false,\n disabled,\n children,\n style,\n accessibilityLabel,\n ...rest\n },\n ref,\n) {\n const theme = useRehagroTheme();\n const isDisabled = disabled || loading;\n\n const sizePxMap: Record<IconButtonSize, number> = {\n sm: 32,\n md: 40,\n lg: 48,\n };\n\n const radiusPxMap: Record<IconButtonRadius, number> = {\n none: 0,\n xxs: 2,\n xs: 4,\n sm: 8,\n md: 12,\n lg: 16,\n xl: 24,\n full: 9999,\n };\n\n const presetTokens: Record<PresetColor, { main: string; hover: string }> = {\n primary: { main: theme.primary, hover: theme.primaryHover },\n secondary: { main: theme.secondary, hover: theme.secondaryHover },\n danger: { main: theme.danger, hover: theme.dangerHover },\n warning: { main: theme.warning, hover: theme.warning },\n success: { main: theme.success, hover: theme.success },\n info: { main: theme.info, hover: theme.infoHover },\n };\n\n const preset = isPresetColor(color);\n const main = preset ? presetTokens[color as PresetColor].main : color;\n const hover = preset ? presetTokens[color as PresetColor].hover : color;\n const boxSize = sizePxMap[size];\n\n const baseStyle: ViewStyle = {\n width: boxSize,\n height: boxSize,\n borderRadius: radiusPxMap[radius],\n alignItems: \"center\",\n justifyContent: \"center\",\n borderWidth: 1,\n opacity: isDisabled ? 0.5 : 1,\n };\n\n const variantStyle = (pressed: boolean): ViewStyle => {\n if (variant === \"solid\") {\n return { backgroundColor: pressed ? hover : main, borderColor: pressed ? hover : main };\n }\n if (variant === \"outline\") {\n return { borderColor: main, backgroundColor: pressed ? main : \"transparent\" };\n }\n return { borderColor: \"transparent\", backgroundColor: pressed ? `${main}1a` : \"transparent\" };\n };\n\n const iconColor = (pressed: boolean): string => {\n if (variant === \"solid\") return theme.surface;\n if (variant === \"outline\") return pressed ? theme.surface : main;\n return main;\n };\n\n return (\n <Pressable\n ref={ref}\n disabled={isDisabled}\n accessibilityRole=\"button\"\n accessibilityState={{ disabled: !!isDisabled, busy: loading }}\n accessibilityLabel={accessibilityLabel}\n style={({ pressed }) => [baseStyle, variantStyle(pressed), style]}\n {...rest}\n >\n {({ pressed }) =>\n loading ? (\n <ActivityIndicator size=\"small\" color={variant === \"solid\" ? theme.surface : main} />\n ) : (\n <View style={{ tintColor: iconColor(pressed) } as ViewStyle}>\n {children}\n </View>\n )\n }\n </Pressable>\n );\n});\n","import React, { forwardRef, useState } from \"react\";\nimport {\n TextInput as RNTextInput,\n Text,\n View,\n type TextInputProps as RNTextInputProps,\n type StyleProp,\n type ViewStyle,\n} from \"react-native\";\nimport { useRehagroTheme } from \"../../provider/RehagroNativeContext\";\n\nexport type TextInputStatus = \"default\" | \"error\";\nexport type TextInputSize = \"sm\" | \"md\" | \"lg\";\nexport type TextInputRadius = \"none\" | \"xxs\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"full\";\n\nexport type TextInputProps = Omit<RNTextInputProps, \"style\"> & {\n /** Label text displayed above the input */\n label?: string;\n /** Subtitle displayed next to the label */\n subtitle?: string;\n /** Validation status */\n status?: TextInputStatus;\n /** Input size */\n size?: TextInputSize;\n /** Border radius */\n radius?: TextInputRadius;\n /** Icon rendered to the left of the input */\n leftIcon?: React.ReactNode;\n /** Icon rendered to the right of the input */\n rightIcon?: React.ReactNode;\n /** Helper/error message displayed below the input */\n helperText?: React.ReactNode;\n /** Custom style for the outermost wrapper */\n wrapperStyle?: StyleProp<ViewStyle>;\n /** Custom style for the input container */\n style?: StyleProp<ViewStyle>;\n};\n\nexport const TextInput = forwardRef<RNTextInput, TextInputProps>(function TextInput(\n {\n label,\n subtitle,\n status = \"default\",\n size = \"md\",\n radius = \"xs\",\n leftIcon,\n rightIcon,\n helperText,\n editable = true,\n wrapperStyle,\n style,\n accessibilityLabel,\n ...rest\n },\n ref,\n) {\n const theme = useRehagroTheme();\n const [focused, setFocused] = useState(false);\n\n const isDisabled = editable === false;\n\n const heightMap: Record<TextInputSize, number> = {\n sm: theme.inputHeightSm,\n md: theme.inputHeightMd,\n lg: theme.inputHeightLg,\n };\n\n const paddingMap: Record<TextInputSize, number> = {\n sm: 12,\n md: 14,\n lg: 16,\n };\n\n const fontSizeMap: Record<TextInputSize, number> = {\n sm: 14,\n md: 14,\n lg: 16,\n };\n\n const radiusMap: Record<TextInputRadius, number> = {\n none: 0,\n xxs: theme.radiusXxs,\n xs: theme.radiusXs,\n sm: theme.radiusSm,\n md: theme.radiusMd,\n lg: theme.radiusLg,\n xl: theme.radiusXl,\n full: 9999,\n };\n\n const borderColor =\n status === \"error\"\n ? theme.danger\n : focused\n ? theme.primary\n : theme.border;\n\n const containerStyle: ViewStyle = {\n height: heightMap[size],\n paddingHorizontal: paddingMap[size],\n borderRadius: radiusMap[radius],\n borderWidth: theme.borderWidthSm,\n borderColor,\n backgroundColor: isDisabled ? theme.background : theme.surface,\n flexDirection: \"row\",\n alignItems: \"center\",\n gap: 8,\n opacity: isDisabled ? 0.5 : 1,\n };\n\n const inputId = accessibilityLabel ?? label;\n\n return (\n <View style={[{ gap: 4 }, wrapperStyle]}>\n {/* Label + Subtitle */}\n {label && (\n <View style={{ flexDirection: \"row\", alignItems: \"baseline\", gap: 4 }}>\n <Text style={{ fontSize: 14, fontWeight: \"500\", color: theme.text }}>\n {label}\n </Text>\n {subtitle && (\n <Text style={{ fontSize: 14, color: theme.textMuted }}>{subtitle}</Text>\n )}\n </View>\n )}\n\n {/* Input container */}\n <View style={[containerStyle, style]}>\n {leftIcon && (\n <View accessibilityElementsHidden style={{ width: fontSizeMap[size], height: fontSizeMap[size] }}>\n {leftIcon}\n </View>\n )}\n\n <RNTextInput\n ref={ref}\n editable={editable}\n accessibilityLabel={inputId}\n accessibilityState={{ disabled: isDisabled }}\n aria-invalid={status === \"error\"}\n onFocus={(e) => {\n setFocused(true);\n rest.onFocus?.(e);\n }}\n onBlur={(e) => {\n setFocused(false);\n rest.onBlur?.(e);\n }}\n style={{\n flex: 1,\n fontSize: fontSizeMap[size],\n color: theme.text,\n }}\n placeholderTextColor={theme.textMuted}\n {...rest}\n />\n\n {rightIcon && (\n <View accessibilityElementsHidden style={{ width: fontSizeMap[size], height: fontSizeMap[size] }}>\n {rightIcon}\n </View>\n )}\n </View>\n\n {/* Helper text */}\n {helperText && (\n <Text\n style={{\n fontSize: 12,\n color: status === \"error\" ? theme.danger : theme.textMuted,\n }}\n >\n {helperText}\n </Text>\n )}\n </View>\n );\n});\n","import React, { forwardRef, useCallback, useState } from \"react\";\nimport {\n Pressable,\n Text,\n View,\n type PressableProps,\n type StyleProp,\n type ViewStyle,\n} from \"react-native\";\nimport { useRehagroTheme } from \"../../provider/RehagroNativeContext\";\n\nexport type CheckboxSize = \"sm\" | \"md\" | \"lg\";\n\nexport type CheckboxProps = Omit<PressableProps, \"style\" | \"onPress\"> & {\n /** Checkbox size */\n size?: CheckboxSize;\n /** Label text displayed next to the checkbox */\n label?: string;\n /** Controlled checked state */\n checked?: boolean;\n /** Default checked state (uncontrolled) */\n defaultChecked?: boolean;\n /** Indeterminate state (partially checked) */\n indeterminate?: boolean;\n /** Callback fired when the value changes */\n onChange?: (checked: boolean) => void;\n /** Custom style for the outer wrapper */\n style?: StyleProp<ViewStyle>;\n};\n\nconst CheckIcon = ({ size, color }: { size: number; color: string }) => (\n <View\n style={{\n width: size,\n height: size,\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n {/* Simple checkmark drawn with two Views rotated — no SVG dep needed */}\n <View\n style={{\n position: \"absolute\",\n width: size * 0.55,\n height: size * 0.3,\n borderLeftWidth: 2,\n borderBottomWidth: 2,\n borderColor: color,\n transform: [{ rotate: \"-45deg\" }, { translateY: -size * 0.05 }],\n }}\n />\n </View>\n);\n\nconst MinusIcon = ({ size, color }: { size: number; color: string }) => (\n <View\n style={{\n width: size * 0.7,\n height: 2,\n backgroundColor: color,\n }}\n />\n);\n\nexport const Checkbox = forwardRef<View, CheckboxProps>(function Checkbox(\n {\n size = \"md\",\n label,\n checked: controlledChecked,\n defaultChecked = false,\n indeterminate = false,\n disabled,\n onChange,\n style,\n accessibilityLabel,\n ...rest\n },\n ref,\n) {\n const theme = useRehagroTheme();\n const isControlled = controlledChecked !== undefined;\n const [internalChecked, setInternalChecked] = useState(defaultChecked);\n\n const isChecked = isControlled ? controlledChecked : internalChecked;\n const isActive = isChecked || indeterminate;\n\n const handlePress = useCallback(() => {\n if (disabled) return;\n const next = !isChecked;\n if (!isControlled) setInternalChecked(next);\n onChange?.(next);\n }, [disabled, isChecked, isControlled, onChange]);\n\n const boxSizeMap: Record<CheckboxSize, number> = {\n sm: 16,\n md: 20,\n lg: 24,\n };\n\n const iconSizeMap: Record<CheckboxSize, number> = {\n sm: 10,\n md: 12,\n lg: 14,\n };\n\n const fontSizeMap: Record<CheckboxSize, number> = {\n sm: 14,\n md: 14,\n lg: 16,\n };\n\n const boxSize = boxSizeMap[size];\n const iconSize = iconSizeMap[size];\n\n const boxStyle: ViewStyle = {\n width: boxSize,\n height: boxSize,\n borderRadius: theme.radiusXxs,\n borderWidth: theme.borderWidthSm,\n borderColor: isActive ? theme.primary : theme.border,\n backgroundColor: isActive ? theme.primary : theme.surface,\n alignItems: \"center\",\n justifyContent: \"center\",\n };\n\n return (\n <Pressable\n ref={ref}\n onPress={handlePress}\n disabled={disabled}\n accessibilityRole=\"checkbox\"\n accessibilityState={{ checked: indeterminate ? \"mixed\" : isChecked, disabled: !!disabled }}\n accessibilityLabel={accessibilityLabel ?? label}\n style={[{ flexDirection: \"row\", alignItems: \"center\", gap: 8, opacity: disabled ? 0.5 : 1 }, style]}\n {...rest}\n >\n <View style={boxStyle}>\n {indeterminate ? (\n <MinusIcon size={iconSize} color={theme.surface} />\n ) : isChecked ? (\n <CheckIcon size={iconSize} color={theme.surface} />\n ) : null}\n </View>\n\n {label && (\n <Text style={{ fontSize: fontSizeMap[size], color: theme.text }}>\n {label}\n </Text>\n )}\n </Pressable>\n );\n});\n","import React, { forwardRef, useState } from \"react\";\nimport { Image, Text, View, type StyleProp, type ViewStyle, type ViewProps } from \"react-native\";\nimport { useRehagroTheme } from \"../../provider/RehagroNativeContext\";\n\nexport type AvatarSize = \"sm\" | \"md\" | \"lg\" | \"xl\";\nexport type AvatarVariant = \"circle\" | \"square\";\n\nexport type AvatarProps = Omit<ViewProps, \"style\"> & {\n /** Image source URL */\n src?: string;\n /** Alt text (used as accessibility label and initials fallback) */\n alt?: string;\n /** Fallback initials shown when image is unavailable */\n initials?: string;\n /** Avatar size */\n size?: AvatarSize;\n /** Shape variant */\n variant?: AvatarVariant;\n /** Custom style for the outer wrapper */\n style?: StyleProp<ViewStyle>;\n};\n\nexport const Avatar = forwardRef<View, AvatarProps>(function Avatar(\n { src, alt = \"\", initials, size = \"md\", variant = \"circle\", style, ...rest },\n ref,\n) {\n const theme = useRehagroTheme();\n const [imgError, setImgError] = useState(false);\n const showImage = !!src && !imgError;\n\n const fallbackLabel = initials\n ? initials.slice(0, 2).toUpperCase()\n : alt\n ? alt\n .split(\" \")\n .slice(0, 2)\n .map((w) => w[0])\n .join(\"\")\n .toUpperCase()\n : \"?\";\n\n const sizePxMap: Record<AvatarSize, number> = {\n sm: 32,\n md: 40,\n lg: 48,\n xl: 64,\n };\n\n const fontSizeMap: Record<AvatarSize, number> = {\n sm: 12,\n md: 14,\n lg: 18,\n xl: 20,\n };\n\n const boxSize = sizePxMap[size];\n const borderRadius = variant === \"circle\" ? boxSize / 2 : theme.radiusSm;\n\n const containerStyle: ViewStyle = {\n width: boxSize,\n height: boxSize,\n borderRadius,\n backgroundColor: theme.primary,\n alignItems: \"center\",\n justifyContent: \"center\",\n overflow: \"hidden\",\n };\n\n return (\n <View\n ref={ref}\n accessible\n accessibilityRole=\"image\"\n accessibilityLabel={alt || initials || fallbackLabel}\n style={[containerStyle, style]}\n {...rest}\n >\n {showImage ? (\n <Image\n source={{ uri: src }}\n style={{ width: boxSize, height: boxSize, borderRadius }}\n onError={() => setImgError(true)}\n accessibilityLabel={alt}\n />\n ) : (\n <Text\n style={{\n fontSize: fontSizeMap[size],\n fontWeight: \"500\",\n color: theme.surface,\n }}\n accessibilityElementsHidden\n >\n {fallbackLabel}\n </Text>\n )}\n </View>\n );\n});\n","import React, { forwardRef } from \"react\";\nimport {\n ActivityIndicator as RNActivityIndicator,\n View,\n type StyleProp,\n type ViewStyle,\n type ViewProps,\n} from \"react-native\";\nimport { useRehagroTheme } from \"../../provider/RehagroNativeContext\";\n\nexport type ActivityIndicatorSize = \"sm\" | \"md\" | \"lg\";\nexport type ActivityIndicatorColor = \"primary\" | \"surface\" | \"custom\";\n\nexport type ActivityIndicatorProps = Omit<ViewProps, \"style\"> & {\n /** Spinner size */\n size?: ActivityIndicatorSize;\n /** Color preset — use \"custom\" to provide a raw color via `color` prop */\n colorVariant?: ActivityIndicatorColor;\n /** Raw color value (used when colorVariant is \"custom\") */\n color?: string;\n /** Whether the indicator is visible */\n animating?: boolean;\n /** Custom style for the outer wrapper */\n style?: StyleProp<ViewStyle>;\n};\n\nconst sizeMap: Record<ActivityIndicatorSize, number | \"small\" | \"large\"> = {\n sm: \"small\",\n md: \"large\",\n lg: 48,\n};\n\nexport const ActivityIndicator = forwardRef<View, ActivityIndicatorProps>(\n function ActivityIndicator(\n {\n size = \"md\",\n colorVariant = \"primary\",\n color,\n animating = true,\n style,\n accessibilityLabel = \"Carregando\",\n ...rest\n },\n ref,\n ) {\n const theme = useRehagroTheme();\n\n const resolvedColor =\n colorVariant === \"custom\" && color\n ? color\n : colorVariant === \"surface\"\n ? theme.surface\n : theme.primary;\n\n const spinnerSize = sizeMap[size];\n\n return (\n <View\n ref={ref}\n accessible\n accessibilityRole=\"progressbar\"\n accessibilityLabel={accessibilityLabel}\n accessibilityState={{ busy: animating }}\n style={style}\n {...rest}\n >\n <RNActivityIndicator\n animating={animating}\n size={spinnerSize as \"small\" | \"large\"}\n color={resolvedColor}\n />\n </View>\n );\n },\n);\n","import React, { forwardRef } from \"react\";\nimport {\n Text as RNText,\n type TextProps as RNTextProps,\n type StyleProp,\n type TextStyle,\n} from \"react-native\";\nimport { useRehagroTheme } from \"../../provider/RehagroNativeContext\";\n\nexport type TextVariant =\n | \"h1\"\n | \"h2\"\n | \"h3\"\n | \"h4\"\n | \"body\"\n | \"bodyLg\"\n | \"caption\"\n | \"label\";\n\nexport type TextColor = \"default\" | \"muted\" | \"primary\" | \"danger\" | \"success\" | \"warning\";\n\nexport type TextProps = Omit<RNTextProps, \"style\"> & {\n /** Typographic variant */\n variant?: TextVariant;\n /** Color preset */\n color?: TextColor;\n /** Bold weight */\n bold?: boolean;\n /** Custom style */\n style?: StyleProp<TextStyle>;\n};\n\nconst variantStyles: Record<TextVariant, TextStyle> = {\n h1: { fontSize: 32, lineHeight: 40, fontWeight: \"700\" },\n h2: { fontSize: 24, lineHeight: 32, fontWeight: \"700\" },\n h3: { fontSize: 20, lineHeight: 28, fontWeight: \"600\" },\n h4: { fontSize: 18, lineHeight: 26, fontWeight: \"600\" },\n bodyLg: { fontSize: 16, lineHeight: 24, fontWeight: \"400\" },\n body: { fontSize: 14, lineHeight: 20, fontWeight: \"400\" },\n label: { fontSize: 14, lineHeight: 20, fontWeight: \"500\" },\n caption: { fontSize: 12, lineHeight: 16, fontWeight: \"400\" },\n};\n\nexport const Text = forwardRef<RNText, TextProps>(function Text(\n { variant = \"body\", color = \"default\", bold = false, style, children, ...rest },\n ref,\n) {\n const theme = useRehagroTheme();\n\n const colorMap: Record<TextColor, string> = {\n default: theme.text,\n muted: theme.textMuted,\n primary: theme.primary,\n danger: theme.danger,\n success: theme.success,\n warning: theme.warning,\n };\n\n const resolvedStyle: TextStyle = {\n ...variantStyles[variant],\n color: colorMap[color],\n ...(bold ? { fontWeight: \"700\" } : {}),\n };\n\n return (\n <RNText ref={ref} style={[resolvedStyle, style]} {...rest}>\n {children}\n </RNText>\n );\n});\n","import React, { forwardRef } from \"react\";\nimport {\n Pressable,\n Text,\n View,\n type PressableProps,\n type StyleProp,\n type TextStyle,\n type ViewStyle,\n} from \"react-native\";\nimport { useRehagroTheme } from \"../../provider/RehagroNativeContext\";\nimport type { PresetColor } from \"../../types/colors.types\";\n\nexport type TagColor = PresetColor | (string & {});\nexport type TagSize = \"sm\" | \"md\" | \"lg\";\n\nexport type TagProps = Omit<PressableProps, \"style\"> & {\n /** Tag color — preset name or any CSS color (e.g., \"#c3c3c3\", \"red\") */\n color?: TagColor;\n /** Tag size */\n size?: TagSize;\n /** Active (selected) state */\n active?: boolean;\n /** Disabled state */\n disabled?: boolean;\n /** Tag label text */\n title: string;\n /** Optional icon rendered on the left side */\n leftIcon?: React.ReactNode;\n /** Optional icon rendered on the right side */\n rightIcon?: React.ReactNode;\n /** Custom style for the outer container */\n style?: StyleProp<ViewStyle>;\n};\n\nconst PRESET_COLORS = new Set<string>([\n \"primary\",\n \"secondary\",\n \"danger\",\n \"warning\",\n \"success\",\n \"info\",\n]);\n\nconst isPresetColor = (c: string): c is PresetColor => PRESET_COLORS.has(c);\n\n/** Appends a two-digit hex alpha to a 6-digit hex color string. */\nfunction hexAlpha(hex: string, alpha: string): string {\n return `${hex}${alpha}`;\n}\n\nexport const Tag = forwardRef<View, TagProps>(function Tag(\n {\n color = \"primary\",\n size = \"md\",\n active = false,\n disabled = false,\n title,\n leftIcon,\n rightIcon,\n style,\n accessibilityLabel,\n ...rest\n },\n ref,\n) {\n const theme = useRehagroTheme();\n const clickable = !!rest.onPress && !disabled;\n\n const presetTokens: Record<PresetColor, { main: string; hover: string }> = {\n primary: { main: theme.primary, hover: theme.primaryHover },\n secondary: { main: theme.secondary, hover: theme.secondaryHover },\n danger: { main: theme.danger, hover: theme.dangerHover },\n warning: { main: theme.warning, hover: theme.warning },\n success: { main: theme.success, hover: theme.success },\n info: { main: theme.info, hover: theme.infoHover },\n };\n\n const preset = isPresetColor(color);\n const mainColor = preset ? presetTokens[color as PresetColor].main : color;\n const hoverColor = preset ? presetTokens[color as PresetColor].hover : color;\n\n const sizeStyleMap: Record<TagSize, ViewStyle> = {\n sm: { paddingHorizontal: 8, paddingVertical: 2, gap: 4 },\n md: { paddingHorizontal: 10, paddingVertical: 4, gap: 6 },\n lg: { paddingHorizontal: 12, paddingVertical: 6, gap: 6 },\n };\n\n const fontSizeMap: Record<TagSize, number> = {\n sm: 11,\n md: 12,\n lg: 13,\n };\n\n const baseStyle: ViewStyle = {\n flexDirection: \"row\",\n alignItems: \"center\",\n alignSelf: \"flex-start\",\n borderRadius: 9999,\n borderWidth: 1,\n opacity: disabled ? 0.5 : 1,\n ...sizeStyleMap[size],\n };\n\n function containerStyle(pressed: boolean): ViewStyle {\n const resolvedColor = pressed && clickable ? hoverColor : mainColor;\n\n if (active) {\n return {\n backgroundColor: resolvedColor,\n borderColor: resolvedColor,\n };\n }\n\n // inactive\n const bg = pressed && clickable\n ? hexAlpha(mainColor, \"33\") // ~20% on press\n : hexAlpha(mainColor, \"1a\"); // ~10% resting\n const border = hexAlpha(mainColor, \"4d\"); // ~30%\n\n return { backgroundColor: bg, borderColor: border };\n }\n\n function resolvedTextColor(pressed: boolean): string {\n if (active) return theme.surface;\n return pressed && clickable ? hoverColor : mainColor;\n }\n\n const textStyle = (pressed: boolean): TextStyle => ({\n color: resolvedTextColor(pressed),\n fontSize: fontSizeMap[size],\n fontWeight: \"500\",\n });\n\n if (!clickable) {\n return (\n <View\n ref={ref}\n accessibilityRole=\"text\"\n accessibilityLabel={accessibilityLabel ?? title}\n accessibilityState={{ disabled }}\n style={[baseStyle, containerStyle(false), style]}\n >\n {leftIcon && <View accessibilityElementsHidden>{leftIcon}</View>}\n <Text style={textStyle(false)}>{title}</Text>\n {rightIcon && <View accessibilityElementsHidden>{rightIcon}</View>}\n </View>\n );\n }\n\n return (\n <Pressable\n ref={ref}\n disabled={disabled}\n accessibilityRole=\"button\"\n accessibilityState={{ disabled, selected: active }}\n accessibilityLabel={accessibilityLabel ?? title}\n style={({ pressed }) => [baseStyle, containerStyle(pressed), style]}\n {...rest}\n >\n {({ pressed }) => (\n <>\n {leftIcon && <View accessibilityElementsHidden>{leftIcon}</View>}\n <Text style={textStyle(pressed)}>{title}</Text>\n {rightIcon && <View accessibilityElementsHidden>{rightIcon}</View>}\n </>\n )}\n </Pressable>\n );\n});\n"]}
|
package/dist/native.mjs
CHANGED
|
@@ -14,6 +14,8 @@ var DEFAULT_NATIVE_THEME = {
|
|
|
14
14
|
dangerHover: "#b91c1c",
|
|
15
15
|
warning: "#d97706",
|
|
16
16
|
success: "#16a34a",
|
|
17
|
+
info: "#0284c7",
|
|
18
|
+
infoHover: "#0369a1",
|
|
17
19
|
text: "#111827",
|
|
18
20
|
textMuted: "#6b7280",
|
|
19
21
|
surface: "#ffffff",
|
|
@@ -45,10 +47,20 @@ function RehagroNativeProvider({ theme, children }) {
|
|
|
45
47
|
);
|
|
46
48
|
return /* @__PURE__ */ jsx(RehagroNativeContext.Provider, { value: resolvedTheme, children });
|
|
47
49
|
}
|
|
50
|
+
var PRESET_COLORS = /* @__PURE__ */ new Set([
|
|
51
|
+
"primary",
|
|
52
|
+
"secondary",
|
|
53
|
+
"danger",
|
|
54
|
+
"warning",
|
|
55
|
+
"success",
|
|
56
|
+
"info"
|
|
57
|
+
]);
|
|
58
|
+
var isPresetColor = (c) => PRESET_COLORS.has(c);
|
|
48
59
|
var Button = forwardRef(function Button2({
|
|
49
60
|
variant = "solid",
|
|
50
61
|
size = "md",
|
|
51
62
|
radius = "sm",
|
|
63
|
+
color = "primary",
|
|
52
64
|
loading = false,
|
|
53
65
|
disabled,
|
|
54
66
|
leftIcon,
|
|
@@ -60,6 +72,25 @@ var Button = forwardRef(function Button2({
|
|
|
60
72
|
}, ref) {
|
|
61
73
|
const theme = useRehagroTheme();
|
|
62
74
|
const isDisabled = disabled || loading;
|
|
75
|
+
const preset = isPresetColor(color);
|
|
76
|
+
const presetBase = {
|
|
77
|
+
primary: theme.primary,
|
|
78
|
+
secondary: theme.secondary,
|
|
79
|
+
danger: theme.danger,
|
|
80
|
+
warning: theme.warning,
|
|
81
|
+
success: theme.success,
|
|
82
|
+
info: theme.info
|
|
83
|
+
};
|
|
84
|
+
const presetHover = {
|
|
85
|
+
primary: theme.primaryHover,
|
|
86
|
+
secondary: theme.secondaryHover,
|
|
87
|
+
danger: theme.dangerHover,
|
|
88
|
+
warning: theme.warning,
|
|
89
|
+
success: theme.success,
|
|
90
|
+
info: theme.infoHover
|
|
91
|
+
};
|
|
92
|
+
const colorBase = preset ? presetBase[color] : color;
|
|
93
|
+
const colorHover = preset ? presetHover[color] : color;
|
|
63
94
|
const sizeStyleMap = {
|
|
64
95
|
sm: { paddingHorizontal: 12, paddingVertical: 6 },
|
|
65
96
|
md: { paddingHorizontal: 16, paddingVertical: 8 },
|
|
@@ -93,22 +124,22 @@ var Button = forwardRef(function Button2({
|
|
|
93
124
|
const variantStyle = (pressed) => {
|
|
94
125
|
if (variant === "solid") {
|
|
95
126
|
return {
|
|
96
|
-
backgroundColor: pressed ?
|
|
97
|
-
borderColor: pressed ?
|
|
127
|
+
backgroundColor: pressed ? colorHover : colorBase,
|
|
128
|
+
borderColor: pressed ? colorHover : colorBase
|
|
98
129
|
};
|
|
99
130
|
}
|
|
100
131
|
if (variant === "outline") {
|
|
101
132
|
return {
|
|
102
|
-
borderColor:
|
|
103
|
-
backgroundColor: pressed ?
|
|
133
|
+
borderColor: colorBase,
|
|
134
|
+
backgroundColor: pressed ? colorBase : "transparent"
|
|
104
135
|
};
|
|
105
136
|
}
|
|
106
137
|
return { borderColor: "transparent", backgroundColor: "transparent" };
|
|
107
138
|
};
|
|
108
139
|
const textColor = (pressed) => {
|
|
109
140
|
if (variant === "solid") return theme.surface;
|
|
110
|
-
if (variant === "outline") return pressed ? theme.surface :
|
|
111
|
-
return
|
|
141
|
+
if (variant === "outline") return pressed ? theme.surface : colorBase;
|
|
142
|
+
return colorBase;
|
|
112
143
|
};
|
|
113
144
|
return /* @__PURE__ */ jsx(
|
|
114
145
|
Pressable,
|
|
@@ -125,7 +156,7 @@ var Button = forwardRef(function Button2({
|
|
|
125
156
|
ActivityIndicator,
|
|
126
157
|
{
|
|
127
158
|
size: "small",
|
|
128
|
-
color: variant === "solid" ? theme.surface :
|
|
159
|
+
color: variant === "solid" ? theme.surface : colorBase
|
|
129
160
|
}
|
|
130
161
|
),
|
|
131
162
|
!loading && leftIcon && /* @__PURE__ */ jsx(View, { accessibilityElementsHidden: true, children: leftIcon }),
|
|
@@ -141,6 +172,15 @@ var Button = forwardRef(function Button2({
|
|
|
141
172
|
}
|
|
142
173
|
);
|
|
143
174
|
});
|
|
175
|
+
var PRESET_COLORS2 = /* @__PURE__ */ new Set([
|
|
176
|
+
"primary",
|
|
177
|
+
"secondary",
|
|
178
|
+
"danger",
|
|
179
|
+
"warning",
|
|
180
|
+
"success",
|
|
181
|
+
"info"
|
|
182
|
+
]);
|
|
183
|
+
var isPresetColor2 = (c) => PRESET_COLORS2.has(c);
|
|
144
184
|
var IconButton = forwardRef(function IconButton2({
|
|
145
185
|
variant = "ghost",
|
|
146
186
|
size = "md",
|
|
@@ -170,14 +210,17 @@ var IconButton = forwardRef(function IconButton2({
|
|
|
170
210
|
xl: 24,
|
|
171
211
|
full: 9999
|
|
172
212
|
};
|
|
173
|
-
const
|
|
213
|
+
const presetTokens = {
|
|
174
214
|
primary: { main: theme.primary, hover: theme.primaryHover },
|
|
175
215
|
secondary: { main: theme.secondary, hover: theme.secondaryHover },
|
|
176
216
|
danger: { main: theme.danger, hover: theme.dangerHover },
|
|
177
217
|
warning: { main: theme.warning, hover: theme.warning },
|
|
178
|
-
success: { main: theme.success, hover: theme.success }
|
|
218
|
+
success: { main: theme.success, hover: theme.success },
|
|
219
|
+
info: { main: theme.info, hover: theme.infoHover }
|
|
179
220
|
};
|
|
180
|
-
const
|
|
221
|
+
const preset = isPresetColor2(color);
|
|
222
|
+
const main = preset ? presetTokens[color].main : color;
|
|
223
|
+
const hover = preset ? presetTokens[color].hover : color;
|
|
181
224
|
const boxSize = sizePxMap[size];
|
|
182
225
|
const baseStyle = {
|
|
183
226
|
width: boxSize,
|
|
@@ -549,7 +592,119 @@ var Text5 = forwardRef(function Text6({ variant = "body", color = "default", bol
|
|
|
549
592
|
};
|
|
550
593
|
return /* @__PURE__ */ jsx(Text, { ref, style: [resolvedStyle, style], ...rest, children });
|
|
551
594
|
});
|
|
595
|
+
var PRESET_COLORS3 = /* @__PURE__ */ new Set([
|
|
596
|
+
"primary",
|
|
597
|
+
"secondary",
|
|
598
|
+
"danger",
|
|
599
|
+
"warning",
|
|
600
|
+
"success",
|
|
601
|
+
"info"
|
|
602
|
+
]);
|
|
603
|
+
var isPresetColor3 = (c) => PRESET_COLORS3.has(c);
|
|
604
|
+
function hexAlpha(hex, alpha) {
|
|
605
|
+
return `${hex}${alpha}`;
|
|
606
|
+
}
|
|
607
|
+
var Tag = forwardRef(function Tag2({
|
|
608
|
+
color = "primary",
|
|
609
|
+
size = "md",
|
|
610
|
+
active = false,
|
|
611
|
+
disabled = false,
|
|
612
|
+
title,
|
|
613
|
+
leftIcon,
|
|
614
|
+
rightIcon,
|
|
615
|
+
style,
|
|
616
|
+
accessibilityLabel,
|
|
617
|
+
...rest
|
|
618
|
+
}, ref) {
|
|
619
|
+
const theme = useRehagroTheme();
|
|
620
|
+
const clickable = !!rest.onPress && !disabled;
|
|
621
|
+
const presetTokens = {
|
|
622
|
+
primary: { main: theme.primary, hover: theme.primaryHover },
|
|
623
|
+
secondary: { main: theme.secondary, hover: theme.secondaryHover },
|
|
624
|
+
danger: { main: theme.danger, hover: theme.dangerHover },
|
|
625
|
+
warning: { main: theme.warning, hover: theme.warning },
|
|
626
|
+
success: { main: theme.success, hover: theme.success },
|
|
627
|
+
info: { main: theme.info, hover: theme.infoHover }
|
|
628
|
+
};
|
|
629
|
+
const preset = isPresetColor3(color);
|
|
630
|
+
const mainColor = preset ? presetTokens[color].main : color;
|
|
631
|
+
const hoverColor = preset ? presetTokens[color].hover : color;
|
|
632
|
+
const sizeStyleMap = {
|
|
633
|
+
sm: { paddingHorizontal: 8, paddingVertical: 2, gap: 4 },
|
|
634
|
+
md: { paddingHorizontal: 10, paddingVertical: 4, gap: 6 },
|
|
635
|
+
lg: { paddingHorizontal: 12, paddingVertical: 6, gap: 6 }
|
|
636
|
+
};
|
|
637
|
+
const fontSizeMap = {
|
|
638
|
+
sm: 11,
|
|
639
|
+
md: 12,
|
|
640
|
+
lg: 13
|
|
641
|
+
};
|
|
642
|
+
const baseStyle = {
|
|
643
|
+
flexDirection: "row",
|
|
644
|
+
alignItems: "center",
|
|
645
|
+
alignSelf: "flex-start",
|
|
646
|
+
borderRadius: 9999,
|
|
647
|
+
borderWidth: 1,
|
|
648
|
+
opacity: disabled ? 0.5 : 1,
|
|
649
|
+
...sizeStyleMap[size]
|
|
650
|
+
};
|
|
651
|
+
function containerStyle(pressed) {
|
|
652
|
+
const resolvedColor = pressed && clickable ? hoverColor : mainColor;
|
|
653
|
+
if (active) {
|
|
654
|
+
return {
|
|
655
|
+
backgroundColor: resolvedColor,
|
|
656
|
+
borderColor: resolvedColor
|
|
657
|
+
};
|
|
658
|
+
}
|
|
659
|
+
const bg = pressed && clickable ? hexAlpha(mainColor, "33") : hexAlpha(mainColor, "1a");
|
|
660
|
+
const border = hexAlpha(mainColor, "4d");
|
|
661
|
+
return { backgroundColor: bg, borderColor: border };
|
|
662
|
+
}
|
|
663
|
+
function resolvedTextColor(pressed) {
|
|
664
|
+
if (active) return theme.surface;
|
|
665
|
+
return pressed && clickable ? hoverColor : mainColor;
|
|
666
|
+
}
|
|
667
|
+
const textStyle = (pressed) => ({
|
|
668
|
+
color: resolvedTextColor(pressed),
|
|
669
|
+
fontSize: fontSizeMap[size],
|
|
670
|
+
fontWeight: "500"
|
|
671
|
+
});
|
|
672
|
+
if (!clickable) {
|
|
673
|
+
return /* @__PURE__ */ jsxs(
|
|
674
|
+
View,
|
|
675
|
+
{
|
|
676
|
+
ref,
|
|
677
|
+
accessibilityRole: "text",
|
|
678
|
+
accessibilityLabel: accessibilityLabel ?? title,
|
|
679
|
+
accessibilityState: { disabled },
|
|
680
|
+
style: [baseStyle, containerStyle(false), style],
|
|
681
|
+
children: [
|
|
682
|
+
leftIcon && /* @__PURE__ */ jsx(View, { accessibilityElementsHidden: true, children: leftIcon }),
|
|
683
|
+
/* @__PURE__ */ jsx(Text, { style: textStyle(false), children: title }),
|
|
684
|
+
rightIcon && /* @__PURE__ */ jsx(View, { accessibilityElementsHidden: true, children: rightIcon })
|
|
685
|
+
]
|
|
686
|
+
}
|
|
687
|
+
);
|
|
688
|
+
}
|
|
689
|
+
return /* @__PURE__ */ jsx(
|
|
690
|
+
Pressable,
|
|
691
|
+
{
|
|
692
|
+
ref,
|
|
693
|
+
disabled,
|
|
694
|
+
accessibilityRole: "button",
|
|
695
|
+
accessibilityState: { disabled, selected: active },
|
|
696
|
+
accessibilityLabel: accessibilityLabel ?? title,
|
|
697
|
+
style: ({ pressed }) => [baseStyle, containerStyle(pressed), style],
|
|
698
|
+
...rest,
|
|
699
|
+
children: ({ pressed }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
700
|
+
leftIcon && /* @__PURE__ */ jsx(View, { accessibilityElementsHidden: true, children: leftIcon }),
|
|
701
|
+
/* @__PURE__ */ jsx(Text, { style: textStyle(pressed), children: title }),
|
|
702
|
+
rightIcon && /* @__PURE__ */ jsx(View, { accessibilityElementsHidden: true, children: rightIcon })
|
|
703
|
+
] })
|
|
704
|
+
}
|
|
705
|
+
);
|
|
706
|
+
});
|
|
552
707
|
|
|
553
|
-
export { ActivityIndicator3 as ActivityIndicator, Avatar, Button, Checkbox, IconButton, RehagroNativeProvider, Text5 as Text, TextInput, useRehagroTheme };
|
|
708
|
+
export { ActivityIndicator3 as ActivityIndicator, Avatar, Button, Checkbox, IconButton, RehagroNativeProvider, Tag, Text5 as Text, TextInput, useRehagroTheme };
|
|
554
709
|
//# sourceMappingURL=native.mjs.map
|
|
555
710
|
//# sourceMappingURL=native.mjs.map
|