@impulse-ui-native/primitives 2.1.0 → 2.1.1
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/components/atoms/button.d.mts +10 -0
- package/dist/components/atoms/button.js +60 -0
- package/dist/components/atoms/button.js.map +1 -0
- package/dist/components/atoms/icon-button.d.mts +12 -0
- package/dist/components/atoms/icon-button.js +51 -0
- package/dist/components/atoms/icon-button.js.map +1 -0
- package/dist/components/atoms/index.d.mts +18 -0
- package/dist/components/atoms/index.js +17 -0
- package/dist/components/atoms/index.js.map +1 -0
- package/dist/components/atoms/pressable.d.mts +9 -0
- package/dist/components/atoms/pressable.js +52 -0
- package/dist/components/atoms/pressable.js.map +1 -0
- package/dist/components/atoms/safe-area-view.d.mts +8 -0
- package/dist/components/atoms/safe-area-view.js +103 -0
- package/dist/components/atoms/safe-area-view.js.map +1 -0
- package/dist/components/atoms/tag.d.mts +9 -0
- package/dist/components/atoms/tag.js +82 -0
- package/dist/components/atoms/tag.js.map +1 -0
- package/dist/components/atoms/typography.d.mts +99 -0
- package/dist/components/atoms/typography.js +184 -0
- package/dist/components/atoms/typography.js.map +1 -0
- package/dist/components/atoms/view.d.mts +8 -0
- package/dist/components/atoms/view.js +27 -0
- package/dist/components/atoms/view.js.map +1 -0
- package/dist/components/controls/addon.d.mts +11 -0
- package/dist/components/controls/addon.js +72 -0
- package/dist/components/controls/addon.js.map +1 -0
- package/dist/components/controls/container.d.mts +11 -0
- package/dist/components/controls/container.js +54 -0
- package/dist/components/controls/container.js.map +1 -0
- package/dist/components/controls/control.d.mts +23 -0
- package/dist/components/controls/control.js +26 -0
- package/dist/components/controls/control.js.map +1 -0
- package/dist/components/controls/error.d.mts +11 -0
- package/dist/components/controls/error.js +33 -0
- package/dist/components/controls/error.js.map +1 -0
- package/dist/components/controls/index.d.mts +10 -0
- package/dist/components/controls/index.js +7 -0
- package/dist/components/controls/index.js.map +1 -0
- package/dist/components/controls/input.d.mts +11 -0
- package/dist/components/controls/input.js +63 -0
- package/dist/components/controls/input.js.map +1 -0
- package/dist/components/controls/label.d.mts +11 -0
- package/dist/components/controls/label.js +42 -0
- package/dist/components/controls/label.js.map +1 -0
- package/dist/components/controls/loader.d.mts +6 -0
- package/dist/components/controls/loader.js +10 -0
- package/dist/components/controls/loader.js.map +1 -0
- package/dist/components/controls/placeholder.d.mts +11 -0
- package/dist/components/controls/placeholder.js +51 -0
- package/dist/components/controls/placeholder.js.map +1 -0
- package/dist/components/controls/provider.d.mts +13 -0
- package/dist/components/controls/provider.js +19 -0
- package/dist/components/controls/provider.js.map +1 -0
- package/dist/components/controls/root.d.mts +9 -0
- package/dist/components/controls/root.js +18 -0
- package/dist/components/controls/root.js.map +1 -0
- package/dist/components/controls/value.d.mts +11 -0
- package/dist/components/controls/value.js +36 -0
- package/dist/components/controls/value.js.map +1 -0
- package/dist/components/index.d.mts +22 -0
- package/dist/components/index.js +3 -0
- package/dist/components/index.js.map +1 -0
- package/dist/constants/control-container.constants.d.mts +6 -0
- package/dist/constants/control-container.constants.js +15 -0
- package/dist/constants/control-container.constants.js.map +1 -0
- package/dist/constants/index.d.mts +3 -0
- package/dist/constants/index.js +3 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/constants/safe-area-view.constants.d.mts +14 -0
- package/dist/constants/safe-area-view.constants.js +17 -0
- package/dist/constants/safe-area-view.constants.js.map +1 -0
- package/dist/hocs/create-preset.hoc.d.mts +12 -0
- package/dist/hocs/create-preset.hoc.js +38 -0
- package/dist/hocs/create-preset.hoc.js.map +1 -0
- package/dist/hocs/index.d.mts +6 -0
- package/dist/hocs/index.js +5 -0
- package/dist/hocs/index.js.map +1 -0
- package/dist/index.d.mts +25 -241
- package/dist/index.js +4 -998
- package/dist/index.js.map +1 -1
- package/dist/types/button.types.d.mts +21 -0
- package/dist/types/button.types.js +1 -0
- package/dist/types/button.types.js.map +1 -0
- package/dist/types/control-components.types.d.mts +45 -0
- package/dist/types/control-components.types.js +1 -0
- package/dist/types/control-components.types.js.map +1 -0
- package/dist/types/icon-button.types.d.mts +15 -0
- package/dist/types/icon-button.types.js +1 -0
- package/dist/types/icon-button.types.js.map +1 -0
- package/dist/types/index.d.mts +12 -0
- package/dist/types/index.js +9 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/safe-area-view.types.d.mts +5 -0
- package/dist/types/safe-area-view.types.js +1 -0
- package/dist/types/safe-area-view.types.js.map +1 -0
- package/dist/types/tag.types.d.mts +22 -0
- package/dist/types/tag.types.js +1 -0
- package/dist/types/tag.types.js.map +1 -0
- package/dist/types/typography.types.d.mts +8 -0
- package/dist/types/typography.types.js +1 -0
- package/dist/types/typography.types.js.map +1 -0
- package/dist/types/view.types.d.mts +6 -0
- package/dist/types/view.types.js +1 -0
- package/dist/types/view.types.js.map +1 -0
- package/dist/utils/controls.utils.d.mts +13 -0
- package/dist/utils/controls.utils.js +18 -0
- package/dist/utils/controls.utils.js.map +1 -0
- package/dist/utils/index.d.mts +2 -0
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +7 -6
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/atoms/view.tsx","../src/components/atoms/safe-area-view.tsx","../src/constants/safe-area-view.constants.ts","../src/constants/control-container.constants.ts","../src/hocs/create-preset.hoc.tsx","../src/components/atoms/typography.tsx","../src/components/atoms/button.tsx","../src/components/atoms/pressable.tsx","../src/components/atoms/icon-button.tsx","../src/components/atoms/tag.tsx","../src/components/controls/addon.tsx","../src/components/controls/provider.tsx","../src/components/controls/container.tsx","../src/components/controls/error.tsx","../src/components/controls/input.tsx","../src/components/controls/label.tsx","../src/components/controls/loader.tsx","../src/components/controls/placeholder.tsx","../src/components/controls/root.tsx","../src/components/controls/value.tsx","../src/components/controls/control.tsx"],"sourcesContent":["import { forwardRef, memo, useMemo } from \"react\";\nimport { View as NativeView, StyleSheet } from \"react-native\";\n\nimport {\n getShadowStyle,\n useColors,\n useStyleProps,\n} from \"@impulse-ui-native/theme\";\n\nimport { ViewProps } from \"../../types\";\n\nexport const View = memo(\n forwardRef<NativeView, ViewProps>(function View(props: ViewProps, ref) {\n const { style, shadow, shadowPosition, ...rest } = props;\n\n const colors = useColors();\n const extractedStyleProps = useStyleProps(props);\n\n const viewStyle = useMemo(() => {\n return StyleSheet.flatten([\n getShadowStyle(shadow, shadowPosition, colors),\n extractedStyleProps,\n style,\n ]);\n }, [extractedStyleProps, style, shadow, shadowPosition, colors]);\n\n return <NativeView {...rest} style={viewStyle} ref={ref} />;\n }),\n);\n","import { memo, useCallback, useMemo } from \"react\";\nimport { StyleSheet, ViewStyle } from \"react-native\";\nimport {\n Edge,\n EdgeMode,\n EdgeRecord,\n useSafeAreaInsets,\n} from \"react-native-safe-area-context\";\n\nimport { EdgeToShorthandKeyMap, EdgeToSpacingKeyMap } from \"../../constants\";\nimport { SafeAreaViewProps } from \"../../types\";\nimport { View } from \"./view\";\n\nexport const SafeAreaView = memo(function SafeAreaView(\n props: SafeAreaViewProps,\n) {\n const { edges, mode = \"padding\", style, ...rest } = props;\n const insets = useSafeAreaInsets();\n\n const flatenedStyle = useMemo(() => {\n return StyleSheet.flatten(style);\n }, [style]);\n\n const nativeEdges = useMemo<Record<Edge, EdgeMode>>(() => {\n if (!edges) {\n return {\n top: \"additive\",\n bottom: \"additive\",\n left: \"additive\",\n right: \"additive\",\n };\n }\n\n let computedEdges: EdgeRecord;\n\n if (Array.isArray(edges)) {\n computedEdges = edges.reduce<EdgeRecord>((acc, current: Edge) => {\n acc[current] = \"additive\";\n\n return acc;\n }, {});\n } else {\n computedEdges = edges as EdgeRecord;\n }\n\n return {\n top: computedEdges.top ?? \"off\",\n bottom: computedEdges.bottom ?? \"off\",\n left: computedEdges.left ?? \"off\",\n right: computedEdges.right ?? \"off\",\n };\n }, [edges]);\n\n const getSpacingKey = useCallback(\n (edge: Edge): keyof ViewStyle => `${mode}${EdgeToSpacingKeyMap[edge]}`,\n [mode],\n );\n\n const getSpacingForEdge = useCallback(\n (edge: Edge): number => {\n const shorthand: keyof ViewStyle = `${mode}${EdgeToShorthandKeyMap[edge]}`;\n const spacing: keyof ViewStyle = getSpacingKey(edge);\n\n return Number(\n flatenedStyle?.[spacing] ??\n flatenedStyle?.[shorthand] ??\n flatenedStyle?.[mode] ??\n 0,\n );\n },\n [flatenedStyle, getSpacingKey, mode],\n );\n\n const resolveEdge = useCallback(\n (inset: number, current: number, edgeMode: EdgeMode) => {\n if (edgeMode === \"off\") {\n return current;\n }\n\n if (edgeMode === \"maximum\") {\n return Math.max(inset, current);\n }\n\n return inset + current;\n },\n [],\n );\n\n const computedStyle = useMemo(() => {\n const insetsStyle: ViewStyle = {\n [getSpacingKey(\"top\")]: resolveEdge(\n insets.top,\n getSpacingForEdge(\"top\"),\n nativeEdges.top,\n ),\n [getSpacingKey(\"bottom\")]: resolveEdge(\n insets.bottom,\n getSpacingForEdge(\"bottom\"),\n nativeEdges.bottom,\n ),\n [getSpacingKey(\"left\")]: resolveEdge(\n insets.left,\n getSpacingForEdge(\"left\"),\n nativeEdges.left,\n ),\n [getSpacingKey(\"right\")]: resolveEdge(\n insets.right,\n getSpacingForEdge(\"right\"),\n nativeEdges.right,\n ),\n };\n\n return StyleSheet.flatten([style, insetsStyle]);\n }, [\n insets,\n nativeEdges,\n style,\n resolveEdge,\n getSpacingKey,\n getSpacingForEdge,\n ]);\n\n return <View style={computedStyle} {...rest} />;\n});\n","export const EdgeToSpacingKeyMap = {\n top: \"Top\",\n bottom: \"Bottom\",\n left: \"Left\",\n right: \"Right\",\n} as const;\n\nexport const EdgeToShorthandKeyMap = {\n top: \"Vertical\",\n bottom: \"Vertical\",\n left: \"Horizontal\",\n right: \"Horizontal\",\n} as const;\n","import { ComponentSize } from \"@impulse-ui-native/theme\";\n\nexport const ControlContainerHeight: Record<ComponentSize, number> = {\n small: 36,\n medium: 44,\n large: 52,\n};\n\nexport const ControlFontSize: Record<ComponentSize, number> = {\n small: 14,\n medium: 16,\n large: 18,\n};\n","import { memo, useMemo } from \"react\";\nimport { StyleSheet, Text, TextStyle } from \"react-native\";\n\nimport {\n AppTheme,\n TypographyPresetKey,\n TypographyProps,\n useStyleProps,\n useTheme,\n} from \"@impulse-ui-native/theme\";\n\nimport { TextProps } from \"../types\";\n\nconst numericFontVariant: TextStyle[\"fontVariant\"] = [\"tabular-nums\"];\nconst defaultFontVariant: TextStyle[\"fontVariant\"] = [];\n\nexport function createPreset(\n config: (theme: AppTheme) => TypographyProps,\n key: TypographyPresetKey,\n) {\n const Component = (props: TextProps) => {\n const { style, numeric, fontStyle, fontWeight, ...rest } = props;\n\n const theme = useTheme();\n const extractedStyleProps = useStyleProps(props);\n\n const typographyStyle = useMemo(() => {\n const themedConfig = config(theme);\n\n const resolvedFontStyle = fontStyle ?? themedConfig.fontStyle ?? \"normal\";\n const resolvedFontWeight = fontWeight ?? themedConfig.fontWeight ?? 400;\n\n const fontFamily =\n theme.fontFamily[resolvedFontStyle][resolvedFontWeight];\n\n return StyleSheet.flatten([\n themedConfig,\n extractedStyleProps,\n {\n fontFamily,\n fontVariant: numeric ? numericFontVariant : defaultFontVariant,\n },\n style,\n ]);\n }, [theme, extractedStyleProps, style, numeric, fontStyle, fontWeight]);\n\n return <Text {...rest} style={typographyStyle} />;\n };\n\n Component.displayName = `Typography.${key}`;\n\n return memo(Component);\n}\n","import { createPreset } from \"../../hocs\";\n\nexport const Typography = {\n Master: createPreset(\n (theme) => ({ fontWeight: theme.fontWeight.regular }),\n \"Master\",\n ),\n\n DisplayLarge: createPreset(\n (theme) => ({\n fontWeight: theme.fontWeight.bold,\n fontSize: theme.fontSize.colossal,\n lineHeight: theme.lineHeight.colossal,\n }),\n \"DisplayLarge\",\n ),\n\n DisplayMedium: createPreset(\n (theme) => ({\n fontWeight: theme.fontWeight.bold,\n fontSize: theme.fontSize.giant,\n lineHeight: theme.lineHeight.giant,\n }),\n \"DisplayMedium\",\n ),\n\n DisplaySmall: createPreset(\n (theme) => ({\n fontWeight: theme.fontWeight.semiBold,\n fontSize: theme.fontSize.huge,\n lineHeight: theme.lineHeight.huge,\n }),\n \"DisplaySmall\",\n ),\n\n Title1: createPreset(\n (theme) => ({\n fontWeight: theme.fontWeight.bold,\n fontSize: theme.fontSize.xxxl,\n lineHeight: theme.lineHeight.xxxl,\n }),\n \"Title1\",\n ),\n\n Title2: createPreset(\n (theme) => ({\n fontWeight: theme.fontWeight.bold,\n fontSize: theme.fontSize.xxl,\n lineHeight: theme.lineHeight.xxl,\n }),\n \"Title2\",\n ),\n\n Title3: createPreset(\n (theme) => ({\n fontWeight: theme.fontWeight.semiBold,\n fontSize: theme.fontSize.xl,\n lineHeight: theme.lineHeight.xl,\n }),\n \"Title3\",\n ),\n\n Title4: createPreset(\n (theme) => ({\n fontWeight: theme.fontWeight.semiBold,\n fontSize: theme.fontSize.lg,\n lineHeight: theme.lineHeight.lg,\n }),\n \"Title4\",\n ),\n\n Title5: createPreset(\n (theme) => ({\n fontWeight: theme.fontWeight.semiBold,\n fontSize: theme.fontSize.md,\n lineHeight: theme.lineHeight.md,\n }),\n \"Title5\",\n ),\n\n Title6: createPreset(\n (theme) => ({\n fontWeight: theme.fontWeight.semiBold,\n fontSize: theme.fontSize.sm,\n lineHeight: theme.lineHeight.sm,\n }),\n \"Title6\",\n ),\n\n Subtitle1: createPreset(\n (theme) => ({\n fontWeight: theme.fontWeight.medium,\n fontSize: theme.fontSize.md,\n lineHeight: theme.lineHeight.lg,\n }),\n \"Subtitle1\",\n ),\n\n Subtitle2: createPreset(\n (theme) => ({\n fontWeight: theme.fontWeight.regular,\n fontSize: theme.fontSize.sm,\n lineHeight: theme.lineHeight.sm,\n }),\n \"Subtitle2\",\n ),\n\n BodyLarge: createPreset(\n (theme) => ({\n fontWeight: theme.fontWeight.regular,\n fontSize: theme.fontSize.md,\n lineHeight: theme.lineHeight.lg,\n }),\n \"BodyLarge\",\n ),\n\n Body: createPreset(\n (theme) => ({\n fontWeight: theme.fontWeight.regular,\n fontSize: theme.fontSize.sm,\n lineHeight: theme.lineHeight.sm,\n }),\n \"Body\",\n ),\n\n BodySmall: createPreset(\n (theme) => ({\n fontWeight: theme.fontWeight.regular,\n fontSize: theme.fontSize.xsm,\n lineHeight: theme.lineHeight.xsm,\n }),\n \"BodySmall\",\n ),\n\n Caption: createPreset(\n (theme) => ({\n fontWeight: theme.fontWeight.regular,\n fontSize: theme.fontSize.xs,\n lineHeight: theme.lineHeight.xs,\n }),\n \"Caption\",\n ),\n\n Label: createPreset(\n (theme) => ({\n fontWeight: theme.fontWeight.medium,\n fontSize: theme.fontSize.xsm,\n lineHeight: theme.lineHeight.xsm,\n }),\n \"Label\",\n ),\n\n Overline: createPreset(\n (theme) => ({\n fontWeight: theme.fontWeight.semiBold,\n fontSize: theme.fontSize.xs,\n lineHeight: theme.lineHeight.xs,\n textTransform: \"uppercase\",\n letterSpacing: 1,\n }),\n \"Overline\",\n ),\n\n Helper: createPreset(\n (theme) => ({\n fontWeight: theme.fontWeight.regular,\n fontSize: theme.fontSize.xsm,\n lineHeight: theme.lineHeight.xsm,\n }),\n \"Helper\",\n ),\n\n Code: createPreset(\n (theme) => ({\n fontFamily: \"monospace\",\n fontSize: theme.fontSize.xsm,\n lineHeight: theme.lineHeight.xsm,\n }),\n \"Code\",\n ),\n\n Quote: createPreset(\n (theme) => ({\n fontWeight: theme.fontWeight.regular,\n fontSize: theme.fontSize.md,\n lineHeight: theme.lineHeight.lg,\n fontStyle: \"italic\",\n }),\n \"Quote\",\n ),\n\n Eyebrow: createPreset(\n (theme) => ({\n fontWeight: theme.fontWeight.medium,\n fontSize: theme.fontSize.xs,\n lineHeight: theme.lineHeight.xs,\n textTransform: \"uppercase\",\n letterSpacing: 1,\n }),\n \"Eyebrow\",\n ),\n};\n\nexport type TypographyComponent = (typeof Typography)[keyof typeof Typography];\n","import { memo, PropsWithChildren, useMemo } from \"react\";\nimport { ActivityIndicator, StyleSheet } from \"react-native\";\n\nimport { AppTheme, useThemedStyles } from \"@impulse-ui-native/theme\";\n\nimport { ButtonProps, ButtonThemeProps } from \"../../types\";\nimport { Pressable } from \"./pressable\";\nimport { Typography } from \"./typography\";\n\nexport const Button = memo(function Button({\n size = \"medium\",\n variant = \"filled\",\n disabled,\n children,\n style,\n ...props\n}: PropsWithChildren<ButtonProps>) {\n const styles = useThemedStyles(themedStyles, { size, variant, disabled }, [\n size,\n variant,\n disabled,\n ]);\n\n const buttonStyles = useMemo(\n () => [styles.button, style],\n [styles.button, style],\n );\n\n const content = useMemo(() => {\n if (props.loading) {\n return <ActivityIndicator color={styles.text.color} />;\n }\n\n return typeof children === \"string\" ? (\n <Typography.Master style={styles.text}>{children}</Typography.Master>\n ) : (\n children\n );\n }, [children, props.loading, styles.text]);\n\n return (\n <Pressable style={buttonStyles} disabled={disabled} {...props}>\n {content}\n </Pressable>\n );\n});\n\nfunction themedStyles(theme: AppTheme, props: ButtonThemeProps) {\n const { size, variant, disabled } = props;\n\n const buttonTokens = theme.components.button;\n const sizeTokens = buttonTokens.sizes[size];\n const variantTokens = buttonTokens.variants[variant];\n\n return StyleSheet.create({\n button: {\n alignItems: \"center\",\n justifyContent: \"center\",\n\n height: sizeTokens.height,\n paddingVertical: sizeTokens.paddingVertical,\n paddingHorizontal: sizeTokens.paddingHorizontal,\n\n borderWidth: buttonTokens.borderWidth,\n borderRadius: buttonTokens.borderRadius,\n\n borderColor: disabled\n ? variantTokens.disabledBorderColor\n : variantTokens.borderColor,\n\n backgroundColor: disabled\n ? variantTokens.disabledBackgroundColor\n : variantTokens.backgroundColor,\n },\n\n text: {\n width: \"100%\",\n textAlign: \"center\",\n\n fontSize: sizeTokens.fontSize,\n\n color: disabled ? variantTokens.disabledColor : variantTokens.color,\n },\n });\n}\n","import { PropsWithChildren, useCallback } from \"react\";\nimport {\n PressableStateCallbackType,\n Pressable as RNPressable,\n StyleProp,\n StyleSheet,\n ViewStyle,\n} from \"react-native\";\n\nimport {\n getShadowStyle,\n useColors,\n useStyleProps,\n} from \"@impulse-ui-native/theme\";\n\nimport { PressableCoreProps } from \"../../types\";\n\nexport const Pressable = function PressableCore({\n children,\n disabled,\n pressedStyle,\n style,\n ...props\n}: PropsWithChildren<PressableCoreProps>) {\n const colors = useColors();\n const extractedStyleProps = useStyleProps(props);\n\n const pressableStyles = useCallback(\n (state: PressableStateCallbackType): StyleProp<ViewStyle> => {\n let overrideStyle: StyleProp<ViewStyle>;\n\n if (typeof style === \"function\") {\n overrideStyle = style(state);\n } else {\n overrideStyle = style;\n }\n\n return StyleSheet.flatten([\n { opacity: disabled || state.pressed ? 0.6 : 1 },\n getShadowStyle(props.shadow, props.shadowPosition, colors),\n extractedStyleProps,\n overrideStyle,\n state.pressed ? pressedStyle : undefined,\n ]);\n },\n [\n style,\n pressedStyle,\n disabled,\n extractedStyleProps,\n props.shadow,\n props.shadowPosition,\n colors,\n ],\n );\n\n return (\n <RNPressable {...props} style={pressableStyles} disabled={disabled}>\n {children}\n </RNPressable>\n );\n};\n","import { memo, PropsWithChildren, useMemo } from \"react\";\nimport { StyleSheet } from \"react-native\";\n\nimport { Icon } from \"@impulse-ui-native/icon/components/icon\";\nimport { AppTheme, useThemedStyles } from \"@impulse-ui-native/theme\";\n\nimport { IconButtonProps, IconButtonThemeProps } from \"../../types\";\nimport { Pressable } from \"./pressable\";\n\nexport const IconButton = memo(function IconButton({\n size = \"medium\",\n variant = \"filled\",\n disabled,\n style,\n icon,\n ...props\n}: PropsWithChildren<IconButtonProps>) {\n const styles = useThemedStyles(themedStyles, { size, variant, disabled }, [\n size,\n variant,\n disabled,\n ]);\n\n const iconButtonStyles = useMemo(\n () => [styles.button, style],\n [styles.button, style],\n );\n\n return (\n <Pressable style={iconButtonStyles} disabled={disabled} {...props}>\n <Icon size={size} icon={icon} color={styles.icon.color} />\n </Pressable>\n );\n});\n\nfunction themedStyles(theme: AppTheme, props: IconButtonThemeProps) {\n const { size, variant, disabled } = props;\n\n const iconButtonTokens = theme.components.iconButton;\n const sizeTokens = iconButtonTokens.sizes[size];\n const variantTokens = iconButtonTokens.variants[variant];\n\n return StyleSheet.create({\n button: {\n alignItems: \"center\",\n justifyContent: \"center\",\n\n height: sizeTokens.size,\n width: sizeTokens.size,\n padding: sizeTokens.padding,\n\n borderWidth: iconButtonTokens.borderWidth,\n borderRadius: iconButtonTokens.borderRadius,\n\n borderColor: disabled\n ? variantTokens.disabledBorderColor\n : variantTokens.borderColor,\n\n backgroundColor: disabled\n ? variantTokens.disabledBackgroundColor\n : variantTokens.backgroundColor,\n },\n\n icon: {\n color: disabled ? variantTokens.disabledColor : variantTokens.color,\n },\n });\n}\n","import { memo, useMemo } from \"react\";\nimport { StyleSheet, View } from \"react-native\";\n\nimport { Icon } from \"@impulse-ui-native/icon/components/icon\";\nimport { XCircleIcon } from \"@impulse-ui-native/icon/icons/x-circle\";\nimport { AppTheme, useThemedStyles } from \"@impulse-ui-native/theme\";\n\nimport { TagProps, TagThemeProps } from \"../../types\";\nimport { Pressable } from \"./pressable\";\nimport { Typography } from \"./typography\";\n\nexport const Tag = memo(function Tag({\n label,\n size = \"medium\",\n variant = \"filled\",\n color = \"primary\",\n closable,\n disabled,\n onClose,\n onPress,\n}: TagProps) {\n const styles = useThemedStyles(\n themedStyles,\n {\n size,\n variant,\n disabled,\n color,\n },\n [size, variant, disabled, color],\n );\n\n const Container = useMemo(() => {\n if (onPress) {\n return Pressable;\n }\n\n return View;\n }, [onPress]);\n\n const showClose =\n (closable || size === \"medium\" || size === \"large\") && !disabled && onClose;\n\n return (\n <Container onPress={onPress} disabled={disabled} style={styles.container}>\n <Typography.Caption style={styles.label}>{label}</Typography.Caption>\n\n {showClose ? (\n <Pressable onPress={onClose} hitSlop={10}>\n <Icon\n icon={XCircleIcon}\n size=\"small\"\n color={styles.icon.color}\n style={styles.icon}\n />\n </Pressable>\n ) : null}\n </Container>\n );\n});\n\nfunction themedStyles(theme: AppTheme, props: TagThemeProps) {\n const { size, variant, color, disabled } = props;\n\n const tagTokens = theme.components.tag;\n const sizeTokens = tagTokens.sizes[size];\n const variantTokens = tagTokens.colors[color][variant];\n\n return StyleSheet.create({\n container: {\n flexDirection: \"row\",\n alignItems: \"center\",\n justifyContent: \"center\",\n alignSelf: \"flex-start\",\n\n height: sizeTokens.height,\n paddingHorizontal: sizeTokens.paddingHorizontal,\n minWidth: sizeTokens.minWidth,\n\n borderRadius: tagTokens.borderRadius,\n gap: tagTokens.gap,\n borderWidth: tagTokens.borderWidth,\n\n borderColor: disabled\n ? variantTokens.disabledBorderColor\n : variantTokens.borderColor,\n\n backgroundColor: disabled\n ? variantTokens.disabledBackgroundColor\n : variantTokens.backgroundColor,\n },\n\n label: {\n fontSize: sizeTokens.fontSize,\n color: disabled ? variantTokens.disabledColor : variantTokens.color,\n },\n\n icon: {\n marginLeft: tagTokens.iconMarginLeft,\n color: disabled ? variantTokens.disabledColor : variantTokens.color,\n },\n });\n}\n","import { memo, useMemo } from \"react\";\nimport { StyleSheet } from \"react-native\";\n\nimport { Icon } from \"@impulse-ui-native/icon/components/icon\";\nimport {\n AppTheme,\n useComponentsTokens,\n useThemedStyles,\n} from \"@impulse-ui-native/theme\";\n\nimport { ControlAddonProps } from \"../../types\";\nimport { Pressable, View } from \"../atoms\";\nimport { useControlContext } from \"./provider\";\n\nexport const ControlAddon = memo(function ControlAddon(\n props: ControlAddonProps,\n) {\n const { icon: AddonIcon, onPress, Content, style, ...rest } = props;\n\n const { disabled, error } = useControlContext();\n\n const tokens = useComponentsTokens();\n\n const styles = useThemedStyles(\n themedStyles,\n {\n disabled,\n error,\n },\n [disabled, error],\n );\n\n const Container = useMemo(() => {\n if (onPress) {\n return Pressable;\n }\n\n return View;\n }, [onPress]);\n\n const children = useMemo(() => {\n if (Content) {\n return <Content />;\n }\n\n if (AddonIcon) {\n return <Icon color={styles.icon.color} icon={AddonIcon} />;\n }\n\n return null;\n }, [AddonIcon, Content, styles.icon.color]);\n\n const containerStyle = useMemo(\n () => [styles.container, style],\n [styles.container, style],\n );\n\n if (!children) {\n return null;\n }\n\n return (\n <Container\n {...rest}\n style={containerStyle}\n hitSlop={tokens.controlAddon.hitSlop}\n onPress={onPress}\n disabled={disabled}\n >\n {children}\n </Container>\n );\n});\n\nfunction themedStyles(\n theme: AppTheme,\n props: {\n disabled?: boolean;\n error?: string;\n },\n) {\n const { disabled, error } = props;\n\n const controlAddonTokens = theme.components.controlAddon;\n\n return StyleSheet.create({\n container: {\n marginHorizontal: controlAddonTokens.marginHorizontal,\n },\n\n icon: {\n color: disabled\n ? controlAddonTokens.disabledIconColor\n : error\n ? controlAddonTokens.errorIconColor\n : controlAddonTokens.iconColor,\n },\n });\n}\n","import { createContext, memo, PropsWithChildren, useContext } from \"react\";\n\nimport { ControlContextData } from \"../../types\";\n\nconst ControlContext = createContext<ControlContextData | undefined>(undefined);\n\nexport const ControlProvider = memo(function ControlProvider(\n props: PropsWithChildren<ControlContextData>,\n) {\n const { children, ...context } = props;\n\n return (\n <ControlContext.Provider value={context}>\n {children}\n </ControlContext.Provider>\n );\n});\n\nexport function useControlContext() {\n const context = useContext(ControlContext);\n\n if (!context) {\n throw new Error(\"useControlContext must be used within ControlProvider\");\n }\n\n return context;\n}\n","import { memo, useMemo } from \"react\";\nimport { StyleSheet } from \"react-native\";\n\nimport {\n AppTheme,\n ComponentSize,\n ComponentVariant,\n useThemedStyles,\n} from \"@impulse-ui-native/theme\";\n\nimport { ControlContainerProps } from \"../../types\";\nimport { View } from \"../atoms/view\";\nimport { useControlContext } from \"./provider\";\n\nexport const ControlContainer = memo(function ControlContainer(\n props: ControlContainerProps,\n) {\n const { style, ...rest } = props;\n\n const { size, variant, disabled, error } = useControlContext();\n\n const styles = useThemedStyles(\n themedStyles,\n {\n size,\n variant,\n disabled,\n error,\n },\n [size, variant, disabled, error],\n );\n\n const containerStyle = useMemo(\n () => [styles.inputContainer, style],\n [styles.inputContainer, style],\n );\n\n return <View style={containerStyle} {...rest} />;\n});\n\nfunction themedStyles(\n theme: AppTheme,\n {\n size,\n variant,\n disabled,\n error,\n }: {\n size: ComponentSize;\n variant: ComponentVariant;\n disabled?: boolean;\n error?: string;\n },\n) {\n const controlContainerTokens = theme.components.controlContainer;\n const sizeTokens = controlContainerTokens.sizes[size];\n const variantTokens = controlContainerTokens.variants[variant];\n\n return StyleSheet.create({\n inputContainer: {\n flexDirection: \"row\",\n alignItems: \"center\",\n\n height: sizeTokens.height,\n paddingHorizontal: sizeTokens.paddingHorizontal,\n\n borderRadius: controlContainerTokens.borderRadius,\n borderWidth: controlContainerTokens.borderWidth,\n\n opacity: disabled ? controlContainerTokens.disabledOpacity : 1,\n\n backgroundColor: disabled\n ? variantTokens.disabledBackgroundColor\n : variantTokens.backgroundColor,\n\n borderColor: error\n ? variantTokens.errorBorderColor\n : disabled\n ? variantTokens.disabledBorderColor\n : variantTokens.borderColor,\n\n borderBottomColor: error\n ? variantTokens.errorBorderBottomColor\n : disabled\n ? variantTokens.disabledBorderBottomColor\n : variantTokens.borderBottomColor,\n },\n });\n}\n","import { memo, useMemo } from \"react\";\nimport { StyleSheet } from \"react-native\";\n\nimport { AppTheme, useThemedStyles } from \"@impulse-ui-native/theme\";\n\nimport { ControlErrorLabelProps } from \"../../types\";\nimport { Typography } from \"../atoms\";\nimport { useControlContext } from \"./provider\";\n\nexport const ControlError = memo(function ControlError(\n props: ControlErrorLabelProps,\n) {\n const { style, ...rest } = props;\n\n const { error } = useControlContext();\n\n const styles = useThemedStyles(themedStyles);\n\n const errorStyle = useMemo(\n () => [styles.error, style],\n [styles.error, style],\n );\n\n if (!Boolean(error)) {\n return null;\n }\n\n return (\n <Typography.Caption {...rest} style={errorStyle}>\n {error}\n </Typography.Caption>\n );\n});\n\nfunction themedStyles(theme: AppTheme) {\n const controlErrorTokens = theme.components.controlError;\n\n return StyleSheet.create({\n error: {\n marginTop: controlErrorTokens.marginTop,\n color: controlErrorTokens.color,\n fontSize: controlErrorTokens.fontSize,\n },\n });\n}\n","import { memo, useMemo } from \"react\";\nimport { StyleSheet, TextInput } from \"react-native\";\n\nimport {\n AppTheme,\n ComponentSize,\n ComponentVariant,\n useThemedStyles,\n} from \"@impulse-ui-native/theme\";\n\nimport { ControlInputProps } from \"../../types\";\nimport { useControlContext } from \"./provider\";\n\nexport const ControlInput = memo(function ControlInput(\n props: ControlInputProps,\n) {\n const { onPress, style, ...rest } = props;\n\n const { size, variant, disabled, error } = useControlContext();\n\n const styles = useThemedStyles(\n themedStyles,\n {\n size,\n variant,\n disabled,\n error,\n },\n [size, variant, disabled, error],\n );\n\n const inputStyles = useMemo(\n () => [styles.input, style],\n [styles.input, style],\n );\n\n return (\n <TextInput\n {...rest}\n style={inputStyles}\n placeholderTextColor={styles.placeholder.color}\n editable={!disabled}\n />\n );\n});\n\nfunction themedStyles(\n theme: AppTheme,\n {\n size,\n variant,\n disabled,\n error,\n }: {\n size: ComponentSize;\n variant: ComponentVariant;\n disabled?: boolean;\n error?: string;\n },\n) {\n const controlInputTokens = theme.components.controlInput;\n const sizeTokens = controlInputTokens.sizes[size];\n const variantTokens = controlInputTokens.variants[variant];\n\n const color = disabled\n ? variantTokens.disabledColor\n : error\n ? variantTokens.errorColor\n : variantTokens.color;\n\n const placeholderColor = disabled\n ? variantTokens.disabledPlaceholderColor\n : error\n ? variantTokens.errorPlaceholderColor\n : variantTokens.placeholderColor;\n\n return StyleSheet.create({\n input: {\n flex: controlInputTokens.flex,\n color,\n fontSize: sizeTokens.fontSize,\n fontFamily: controlInputTokens.fontFamily,\n paddingHorizontal: controlInputTokens.paddingHorizontal,\n height: \"100%\",\n },\n\n placeholder: {\n color: placeholderColor,\n },\n });\n}\n","import { memo, useMemo } from \"react\";\nimport { StyleSheet } from \"react-native\";\n\nimport { AppTheme, useThemedStyles } from \"@impulse-ui-native/theme\";\n\nimport { ControlLabelProps } from \"../../types\";\nimport { Typography } from \"../atoms\";\nimport { useControlContext } from \"./provider\";\n\nexport const ControlLabel = memo(function ControlLabel(\n props: ControlLabelProps,\n) {\n const { children, disabled, style, ...rest } = props;\n\n const { error } = useControlContext();\n\n const styles = useThemedStyles(\n themedStyles,\n {\n disabled,\n error,\n },\n [disabled, error],\n );\n\n const labelStyle = useMemo(\n () => [styles.label, style],\n [styles.label, style],\n );\n\n if (!children) {\n return null;\n }\n\n return (\n <Typography.Label {...rest} style={labelStyle}>\n {children}\n </Typography.Label>\n );\n});\n\nfunction themedStyles(\n theme: AppTheme,\n props: {\n disabled?: boolean;\n error?: string;\n },\n) {\n const { disabled, error } = props;\n\n const controlLabelTokens = theme.components.controlLabel;\n\n const color = disabled\n ? controlLabelTokens.disabledColor\n : error\n ? controlLabelTokens.errorColor\n : controlLabelTokens.color;\n\n return StyleSheet.create({\n label: {\n marginBottom: controlLabelTokens.marginBottom,\n fontSize: controlLabelTokens.fontSize,\n color,\n },\n });\n}\n","import { memo } from \"react\";\nimport { ActivityIndicator } from \"react-native\";\n\nexport const ControlLoader = memo(function ControlLoader() {\n return <ActivityIndicator />;\n});\n","import { memo, useMemo } from \"react\";\nimport { StyleSheet } from \"react-native\";\n\nimport {\n AppTheme,\n ComponentSize,\n ComponentVariant,\n useThemedStyles,\n} from \"@impulse-ui-native/theme\";\n\nimport { ControlPlaceholderProps } from \"../../types\";\nimport { Typography } from \"../atoms\";\nimport { useControlContext } from \"./provider\";\n\nexport const ControlPlaceholder = memo(function ControlPlaceholder(\n props: ControlPlaceholderProps,\n) {\n const { style, ...rest } = props;\n\n const { size, variant, disabled, error } = useControlContext();\n\n const styles = useThemedStyles(\n themedStyles,\n {\n size,\n variant,\n disabled,\n error,\n },\n [size, variant, disabled, error],\n );\n\n const placeholderStyle = useMemo(\n () => [styles.placeholder, style],\n [styles.placeholder, style],\n );\n\n return (\n <Typography.Master numberOfLines={1} {...rest} style={placeholderStyle} />\n );\n});\n\nfunction themedStyles(\n theme: AppTheme,\n {\n size,\n variant,\n disabled,\n error,\n }: {\n size: ComponentSize;\n variant: ComponentVariant;\n disabled?: boolean;\n error?: string;\n },\n) {\n const controlInputTokens = theme.components.controlInput;\n const sizeTokens = controlInputTokens.sizes[size];\n const variantTokens = controlInputTokens.variants[variant];\n\n const color = disabled\n ? variantTokens.disabledPlaceholderColor\n : error\n ? variantTokens.errorPlaceholderColor\n : variantTokens.placeholderColor;\n\n return StyleSheet.create({\n placeholder: {\n flex: controlInputTokens.flex,\n color,\n fontFamily: controlInputTokens.fontFamily,\n fontSize: sizeTokens.fontSize,\n paddingHorizontal: controlInputTokens.paddingHorizontal,\n },\n });\n}\n","import { memo, useMemo } from \"react\";\nimport { StyleSheet } from \"react-native\";\n\nimport { ViewProps } from \"../../types\";\nimport { View } from \"../atoms\";\n\nexport const ControlRoot = memo(function ControlRoot(props: ViewProps) {\n const { style, ...rest } = props;\n\n const containerStyle = useMemo(() => [styles.container, style], [style]);\n\n return <View {...rest} style={containerStyle} />;\n});\n\nconst styles = StyleSheet.create({\n container: {\n width: \"100%\",\n },\n});\n","import { memo, useMemo } from \"react\";\nimport { StyleSheet } from \"react-native\";\n\nimport {\n AppTheme,\n ComponentSize,\n useThemedStyles,\n} from \"@impulse-ui-native/theme\";\n\nimport { ControlValueProps } from \"../../types\";\nimport { Typography } from \"../atoms\";\nimport { useControlContext } from \"./provider\";\n\nexport const ControlValue = memo(function ControlValue(\n props: ControlValueProps,\n) {\n const { style, ...rest } = props;\n\n const { size } = useControlContext();\n\n const styles = useThemedStyles(themedStyles, { size }, [size]);\n\n const valueStyle = useMemo(\n () => [styles.value, style],\n [styles.value, style],\n );\n\n return <Typography.Master numberOfLines={1} {...rest} style={valueStyle} />;\n});\n\nfunction themedStyles(\n theme: AppTheme,\n {\n size,\n }: {\n size: ComponentSize;\n },\n) {\n const controlInputTokens = theme.components.controlInput;\n const sizeTokens = controlInputTokens.sizes[size];\n\n return StyleSheet.create({\n value: {\n flex: controlInputTokens.flex,\n fontFamily: controlInputTokens.fontFamily,\n fontSize: sizeTokens.fontSize,\n paddingHorizontal: controlInputTokens.paddingHorizontal,\n },\n });\n}\n","import { ControlAddon } from \"./addon\";\nimport { ControlContainer } from \"./container\";\nimport { ControlError } from \"./error\";\nimport { ControlInput } from \"./input\";\nimport { ControlLabel } from \"./label\";\nimport { ControlLoader } from \"./loader\";\nimport { ControlPlaceholder } from \"./placeholder\";\nimport { ControlProvider } from \"./provider\";\nimport { ControlRoot } from \"./root\";\nimport { ControlValue } from \"./value\";\n\nexport const Control = {\n Container: ControlContainer,\n Provider: ControlProvider,\n Root: ControlRoot,\n Label: ControlLabel,\n Error: ControlError,\n Addon: ControlAddon,\n Input: ControlInput,\n Placeholder: ControlPlaceholder,\n Value: ControlValue,\n Loader: ControlLoader,\n};\n"],"mappings":";AAAA,SAAS,YAAY,MAAM,eAAe;AAC1C,SAAS,QAAQ,YAAY,kBAAkB;AAE/C;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAmBI;AAfJ,IAAM,OAAO;AAAA,EAClB,WAAkC,SAASA,MAAK,OAAkB,KAAK;AACrE,UAAM,EAAE,OAAO,QAAQ,gBAAgB,GAAG,KAAK,IAAI;AAEnD,UAAM,SAAS,UAAU;AACzB,UAAM,sBAAsB,cAAc,KAAK;AAE/C,UAAM,YAAY,QAAQ,MAAM;AAC9B,aAAO,WAAW,QAAQ;AAAA,QACxB,eAAe,QAAQ,gBAAgB,MAAM;AAAA,QAC7C;AAAA,QACA;AAAA,MACF,CAAC;AAAA,IACH,GAAG,CAAC,qBAAqB,OAAO,QAAQ,gBAAgB,MAAM,CAAC;AAE/D,WAAO,oBAAC,cAAY,GAAG,MAAM,OAAO,WAAW,KAAU;AAAA,EAC3D,CAAC;AACH;;;AC5BA,SAAS,QAAAC,OAAM,aAAa,WAAAC,gBAAe;AAC3C,SAAS,cAAAC,mBAA6B;AACtC;AAAA,EAIE;AAAA,OACK;;;ACPA,IAAM,sBAAsB;AAAA,EACjC,KAAK;AAAA,EACL,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,OAAO;AACT;AAEO,IAAM,wBAAwB;AAAA,EACnC,KAAK;AAAA,EACL,QAAQ;AAAA,EACR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;AAAA,IACvB,OAAO;AAAA,MACL,MAAM,mBAAmB;AAAA,MACzB,YAAY,mBAAmB;AAAA,MAC/B,UAAU,WAAW;AAAA,MACrB,mBAAmB,mBAAmB;AAAA,IACxC;AAAA,EACF,CAAC;AACH;;;ACtCO,IAAM,UAAU;AAAA,EACrB,WAAW;AAAA,EACX,UAAU;AAAA,EACV,MAAM;AAAA,EACN,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,aAAa;AAAA,EACb,OAAO;AAAA,EACP,QAAQ;AACV;","names":["View","memo","useMemo","StyleSheet","jsx","memo","SafeAreaView","useMemo","StyleSheet","memo","useMemo","StyleSheet","useStyleProps","jsx","memo","useMemo","StyleSheet","useCallback","StyleSheet","getShadowStyle","useColors","useStyleProps","jsx","jsx","memo","Button","styles","useMemo","StyleSheet","memo","useMemo","StyleSheet","useThemedStyles","jsx","memo","IconButton","styles","useThemedStyles","themedStyles","useMemo","StyleSheet","memo","useMemo","StyleSheet","View","Icon","useThemedStyles","jsx","memo","Tag","styles","useThemedStyles","themedStyles","useMemo","View","Icon","StyleSheet","memo","useMemo","StyleSheet","Icon","useThemedStyles","memo","jsx","ControlProvider","jsx","memo","ControlAddon","styles","useThemedStyles","themedStyles","useMemo","Icon","StyleSheet","memo","useMemo","StyleSheet","useThemedStyles","jsx","memo","ControlContainer","styles","useThemedStyles","themedStyles","useMemo","StyleSheet","memo","useMemo","StyleSheet","useThemedStyles","jsx","memo","ControlError","styles","useThemedStyles","themedStyles","useMemo","StyleSheet","memo","useMemo","StyleSheet","useThemedStyles","jsx","memo","ControlInput","styles","useThemedStyles","themedStyles","useMemo","StyleSheet","memo","useMemo","StyleSheet","useThemedStyles","jsx","memo","ControlLabel","styles","useThemedStyles","themedStyles","useMemo","StyleSheet","memo","ActivityIndicator","jsx","ControlLoader","memo","useMemo","StyleSheet","useThemedStyles","jsx","memo","ControlPlaceholder","styles","useThemedStyles","themedStyles","useMemo","StyleSheet","memo","useMemo","StyleSheet","jsx","memo","ControlRoot","useMemo","StyleSheet","memo","useMemo","StyleSheet","useThemedStyles","jsx","memo","ControlValue","styles","useThemedStyles","themedStyles","useMemo","StyleSheet"]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from \"./components\";\nexport * from \"./hocs\";\nexport * from \"./constants\";\nexport * from \"./types\";\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { PressableProps, ViewStyle, StyleProp } from 'react-native';
|
|
2
|
+
import { DimensionProps, SpacingProps, ShadowProps, ComponentSize, ComponentVariant } from '@impulse-ui-native/theme';
|
|
3
|
+
|
|
4
|
+
interface ButtonProps extends PressableProps, DimensionProps, SpacingProps, ShadowProps {
|
|
5
|
+
size?: ComponentSize;
|
|
6
|
+
variant?: ComponentVariant;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
style?: ViewStyle;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface ButtonThemeProps {
|
|
12
|
+
size: ComponentSize;
|
|
13
|
+
variant: ComponentVariant;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
}
|
|
16
|
+
interface PressableCoreProps extends PressableProps, Omit<ButtonProps, "style"> {
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
pressedStyle?: StyleProp<ViewStyle>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type { ButtonProps, ButtonThemeProps, PressableCoreProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=button.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { ViewProps, TextProps, TextInputProps, ActivityIndicatorProps } from 'react-native';
|
|
3
|
+
import { IconProps } from '@impulse-ui-native/icon/types';
|
|
4
|
+
import { ComponentSize, ComponentVariant } from '@impulse-ui-native/theme';
|
|
5
|
+
import { PressableCoreProps } from './button.types.mjs';
|
|
6
|
+
|
|
7
|
+
interface ControlComponentCommonProps {
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
PrefixIcon?: IconProps["icon"];
|
|
11
|
+
Prefix?: ComponentType;
|
|
12
|
+
onPressPrefix?: PressableCoreProps["onPress"];
|
|
13
|
+
SuffixIcon?: IconProps["icon"];
|
|
14
|
+
Suffix?: ComponentType;
|
|
15
|
+
onPressSuffix?: PressableCoreProps["onPress"];
|
|
16
|
+
}
|
|
17
|
+
interface ControlComponentProps {
|
|
18
|
+
size: ComponentSize;
|
|
19
|
+
variant: ComponentVariant;
|
|
20
|
+
error: string | undefined;
|
|
21
|
+
disabled: boolean | undefined;
|
|
22
|
+
}
|
|
23
|
+
interface ControlContextData extends ControlComponentProps {
|
|
24
|
+
}
|
|
25
|
+
interface ControlContainerProps extends ViewProps {
|
|
26
|
+
}
|
|
27
|
+
interface ControlLabelProps extends TextProps {
|
|
28
|
+
}
|
|
29
|
+
interface ControlErrorLabelProps extends TextProps {
|
|
30
|
+
}
|
|
31
|
+
interface ControlAddonProps extends ViewProps {
|
|
32
|
+
icon: IconProps["icon"] | undefined;
|
|
33
|
+
onPress: PressableCoreProps["onPress"] | undefined;
|
|
34
|
+
Content: ComponentType<any> | undefined;
|
|
35
|
+
}
|
|
36
|
+
interface ControlInputProps extends TextInputProps {
|
|
37
|
+
}
|
|
38
|
+
interface ControlPlaceholderProps extends TextProps {
|
|
39
|
+
}
|
|
40
|
+
interface ControlValueProps extends TextProps {
|
|
41
|
+
}
|
|
42
|
+
interface ControlLoaderProps extends ActivityIndicatorProps {
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type { ControlAddonProps, ControlComponentCommonProps, ControlComponentProps, ControlContainerProps, ControlContextData, ControlErrorLabelProps, ControlInputProps, ControlLabelProps, ControlLoaderProps, ControlPlaceholderProps, ControlValueProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=control-components.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IconProps } from '@impulse-ui-native/icon/types';
|
|
2
|
+
import { ComponentSize, ComponentVariant } from '@impulse-ui-native/theme';
|
|
3
|
+
import { ButtonProps } from './button.types.mjs';
|
|
4
|
+
import 'react-native';
|
|
5
|
+
|
|
6
|
+
interface IconButtonProps extends ButtonProps {
|
|
7
|
+
icon: IconProps["icon"];
|
|
8
|
+
}
|
|
9
|
+
interface IconButtonThemeProps {
|
|
10
|
+
size: ComponentSize;
|
|
11
|
+
variant: ComponentVariant;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type { IconButtonProps, IconButtonThemeProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=icon-button.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { ViewProps } from './view.types.mjs';
|
|
2
|
+
export { SafeAreaViewProps } from './safe-area-view.types.mjs';
|
|
3
|
+
export { TextProps } from './typography.types.mjs';
|
|
4
|
+
export { ButtonProps, ButtonThemeProps, PressableCoreProps } from './button.types.mjs';
|
|
5
|
+
export { IconButtonProps, IconButtonThemeProps } from './icon-button.types.mjs';
|
|
6
|
+
export { TagProps, TagThemeProps } from './tag.types.mjs';
|
|
7
|
+
export { ControlAddonProps, ControlComponentCommonProps, ControlComponentProps, ControlContainerProps, ControlContextData, ControlErrorLabelProps, ControlInputProps, ControlLabelProps, ControlLoaderProps, ControlPlaceholderProps, ControlValueProps } from './control-components.types.mjs';
|
|
8
|
+
import 'react-native';
|
|
9
|
+
import '@impulse-ui-native/theme';
|
|
10
|
+
import 'react-native-safe-area-context';
|
|
11
|
+
import '@impulse-ui-native/icon/types';
|
|
12
|
+
import 'react';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./view.types";
|
|
2
|
+
export * from "./safe-area-view.types";
|
|
3
|
+
export * from "./typography.types";
|
|
4
|
+
export * from "./typography.types";
|
|
5
|
+
export * from "./button.types";
|
|
6
|
+
export * from "./icon-button.types";
|
|
7
|
+
export * from "./tag.types";
|
|
8
|
+
export * from "./control-components.types";
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["export * from \"./view.types\";\nexport * from \"./safe-area-view.types\";\nexport * from \"./typography.types\";\nexport * from \"./typography.types\";\nexport * from \"./button.types\";\nexport * from \"./icon-button.types\";\nexport * from \"./tag.types\";\nexport * from \"./control-components.types\";\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=safe-area-view.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ViewStyle, PressableProps } from 'react-native';
|
|
2
|
+
import { ComponentSize, ComponentVariant, TagColor } from '@impulse-ui-native/theme';
|
|
3
|
+
|
|
4
|
+
interface TagProps {
|
|
5
|
+
label: string;
|
|
6
|
+
size?: ComponentSize;
|
|
7
|
+
variant?: ComponentVariant;
|
|
8
|
+
color?: TagColor;
|
|
9
|
+
closable?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
style?: ViewStyle;
|
|
13
|
+
onPress?: PressableProps["onPress"];
|
|
14
|
+
}
|
|
15
|
+
interface TagThemeProps {
|
|
16
|
+
size: ComponentSize;
|
|
17
|
+
variant: ComponentVariant;
|
|
18
|
+
color: TagColor;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type { TagProps, TagThemeProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=tag.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TextProps as TextProps$1 } from 'react-native';
|
|
2
|
+
import { TypographyProps, FlexProps, ColorProps } from '@impulse-ui-native/theme';
|
|
3
|
+
|
|
4
|
+
interface TextProps extends TextProps$1, TypographyProps, FlexProps, ColorProps {
|
|
5
|
+
numeric?: boolean;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export type { TextProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=typography.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ViewProps as ViewProps$1 } from 'react-native';
|
|
2
|
+
import { SpacingProps, ColorProps, ShadowProps, BorderProps, FlexProps, DimensionProps } from '@impulse-ui-native/theme';
|
|
3
|
+
|
|
4
|
+
type ViewProps = ViewProps$1 & SpacingProps & ColorProps & ShadowProps & BorderProps & FlexProps & DimensionProps;
|
|
5
|
+
|
|
6
|
+
export type { ViewProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=view.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AppTheme, ComponentSize, ThemeColors } from '@impulse-ui-native/theme';
|
|
2
|
+
|
|
3
|
+
declare function getInputStyles(theme: AppTheme, { size, }: {
|
|
4
|
+
size: ComponentSize;
|
|
5
|
+
}): {
|
|
6
|
+
fontFamily: string;
|
|
7
|
+
fontSize: number;
|
|
8
|
+
paddingHorizontal: number;
|
|
9
|
+
flex: number;
|
|
10
|
+
};
|
|
11
|
+
declare function getPlaceholderTextColor(colors: ThemeColors): string;
|
|
12
|
+
|
|
13
|
+
export { getInputStyles, getPlaceholderTextColor };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ControlFontSize } from "../constants";
|
|
2
|
+
function getInputStyles(theme, {
|
|
3
|
+
size
|
|
4
|
+
}) {
|
|
5
|
+
const fontSize = ControlFontSize[size];
|
|
6
|
+
const fontFamily = theme.fontFamily.normal[400];
|
|
7
|
+
const paddingHorizontal = theme.space.xxs;
|
|
8
|
+
const flex = 1;
|
|
9
|
+
return { fontFamily, fontSize, paddingHorizontal, flex };
|
|
10
|
+
}
|
|
11
|
+
function getPlaceholderTextColor(colors) {
|
|
12
|
+
return colors.neutral[7];
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
getInputStyles,
|
|
16
|
+
getPlaceholderTextColor
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=controls.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/utils/controls.utils.ts"],"sourcesContent":["import { AppTheme, ComponentSize, ThemeColors } from \"@impulse-ui-native/theme\";\n\nimport { ControlFontSize } from \"../constants\";\n\nexport function getInputStyles(\n theme: AppTheme,\n {\n size,\n }: {\n size: ComponentSize;\n },\n) {\n const fontSize = ControlFontSize[size];\n const fontFamily = theme.fontFamily.normal[400];\n const paddingHorizontal = theme.space.xxs;\n const flex = 1;\n\n return { fontFamily, fontSize, paddingHorizontal, flex };\n}\n\nexport function getPlaceholderTextColor(colors: ThemeColors) {\n return colors.neutral[7];\n}\n"],"mappings":"AAEA,SAAS,uBAAuB;AAEzB,SAAS,eACd,OACA;AAAA,EACE;AACF,GAGA;AACA,QAAM,WAAW,gBAAgB,IAAI;AACrC,QAAM,aAAa,MAAM,WAAW,OAAO,GAAG;AAC9C,QAAM,oBAAoB,MAAM,MAAM;AACtC,QAAM,OAAO;AAEb,SAAO,EAAE,YAAY,UAAU,mBAAmB,KAAK;AACzD;AAEO,SAAS,wBAAwB,QAAqB;AAC3D,SAAO,OAAO,QAAQ,CAAC;AACzB;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/utils/index.ts"],"sourcesContent":["export * from \"./controls.utils\";\n"],"mappings":"AAAA,cAAc;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@impulse-ui-native/primitives",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.mts",
|
|
@@ -17,10 +17,11 @@
|
|
|
17
17
|
"README.md",
|
|
18
18
|
"LICENSE"
|
|
19
19
|
],
|
|
20
|
+
"sideEffects": false,
|
|
20
21
|
"dependencies": {
|
|
21
|
-
"@impulse-ui-native/theme": "2.1.
|
|
22
|
-
"@impulse-ui-native/core": "2.1.
|
|
23
|
-
"@impulse-ui-native/icon": "2.1.
|
|
22
|
+
"@impulse-ui-native/theme": "2.1.1",
|
|
23
|
+
"@impulse-ui-native/core": "2.1.1",
|
|
24
|
+
"@impulse-ui-native/icon": "2.1.1"
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|
|
26
27
|
"@types/react": "~19.2.14",
|
|
@@ -30,9 +31,9 @@
|
|
|
30
31
|
"react-native": "0.86.2",
|
|
31
32
|
"react-native-safe-area-context": "~5.7.0",
|
|
32
33
|
"typescript": "~6.0.3",
|
|
33
|
-
"@impulse-ui-native/tsconfig": "1.0.0",
|
|
34
34
|
"@impulse-ui-native/eslint-config": "1.0.0",
|
|
35
|
-
"@impulse-ui-native/prettier-config": "1.0.0"
|
|
35
|
+
"@impulse-ui-native/prettier-config": "1.0.0",
|
|
36
|
+
"@impulse-ui-native/tsconfig": "1.0.0"
|
|
36
37
|
},
|
|
37
38
|
"peerDependencies": {
|
|
38
39
|
"react": ">=18",
|