@fountain-ui/core 1.19.0 → 2.0.0-beta.2

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.
Files changed (153) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/build/commonjs/Accordion/Accordion.js +1 -7
  3. package/build/commonjs/Accordion/Accordion.js.map +1 -1
  4. package/build/commonjs/Button/Button.js +14 -8
  5. package/build/commonjs/Button/Button.js.map +1 -1
  6. package/build/commonjs/Checkbox/Checkbox.js +7 -2
  7. package/build/commonjs/Checkbox/Checkbox.js.map +1 -1
  8. package/build/commonjs/Chip/Chip.js +10 -9
  9. package/build/commonjs/Chip/Chip.js.map +1 -1
  10. package/build/commonjs/Fab/Fab.js +10 -3
  11. package/build/commonjs/Fab/Fab.js.map +1 -1
  12. package/build/commonjs/IconButton/IconButton.js +13 -3
  13. package/build/commonjs/IconButton/IconButton.js.map +1 -1
  14. package/build/commonjs/Image/Image.js +13 -1
  15. package/build/commonjs/Image/Image.js.map +1 -1
  16. package/build/commonjs/Radio/Radio.js +12 -11
  17. package/build/commonjs/Radio/Radio.js.map +1 -1
  18. package/build/commonjs/SvgIcon/SvgIcon.js +6 -2
  19. package/build/commonjs/SvgIcon/SvgIcon.js.map +1 -1
  20. package/build/commonjs/Switch/Switch.js +1 -1
  21. package/build/commonjs/Switch/Switch.js.map +1 -1
  22. package/build/commonjs/TextField/InputLabel.js +5 -2
  23. package/build/commonjs/TextField/InputLabel.js.map +1 -1
  24. package/build/commonjs/TextField/OutlinedTextField.js +2 -1
  25. package/build/commonjs/TextField/OutlinedTextField.js.map +1 -1
  26. package/build/commonjs/hooks/useFadeInAppBar.js +5 -2
  27. package/build/commonjs/hooks/useFadeInAppBar.js.map +1 -1
  28. package/build/commonjs/internal/icons/Checkbox.js +1 -2
  29. package/build/commonjs/internal/icons/Checkbox.js.map +1 -1
  30. package/build/commonjs/internal/icons/CheckboxChecked.js +3 -2
  31. package/build/commonjs/internal/icons/CheckboxChecked.js.map +1 -1
  32. package/build/commonjs/internal/icons/ChevronDown.js +0 -2
  33. package/build/commonjs/internal/icons/ChevronDown.js.map +1 -1
  34. package/build/commonjs/internal/icons/ChevronLeft.js +0 -2
  35. package/build/commonjs/internal/icons/ChevronLeft.js.map +1 -1
  36. package/build/commonjs/internal/icons/ChevronRight.js +0 -2
  37. package/build/commonjs/internal/icons/ChevronRight.js.map +1 -1
  38. package/build/commonjs/internal/icons/Close.js +0 -2
  39. package/build/commonjs/internal/icons/Close.js.map +1 -1
  40. package/build/commonjs/internal/icons/Radio.js.map +1 -1
  41. package/build/commonjs/internal/icons/RadioChecked.js.map +1 -1
  42. package/build/commonjs/styles/index.js +0 -8
  43. package/build/commonjs/styles/index.js.map +1 -1
  44. package/build/commonjs/utils/cloneElementSafely.js +15 -0
  45. package/build/commonjs/utils/cloneElementSafely.js.map +1 -0
  46. package/build/commonjs/utils/index.js +8 -0
  47. package/build/commonjs/utils/index.js.map +1 -1
  48. package/build/module/Accordion/Accordion.js +1 -7
  49. package/build/module/Accordion/Accordion.js.map +1 -1
  50. package/build/module/Button/Button.js +13 -9
  51. package/build/module/Button/Button.js.map +1 -1
  52. package/build/module/Checkbox/Checkbox.js +7 -2
  53. package/build/module/Checkbox/Checkbox.js.map +1 -1
  54. package/build/module/Chip/Chip.js +10 -10
  55. package/build/module/Chip/Chip.js.map +1 -1
  56. package/build/module/Fab/Fab.js +10 -4
  57. package/build/module/Fab/Fab.js.map +1 -1
  58. package/build/module/IconButton/IconButton.js +12 -4
  59. package/build/module/IconButton/IconButton.js.map +1 -1
  60. package/build/module/Image/Image.js +13 -1
  61. package/build/module/Image/Image.js.map +1 -1
  62. package/build/module/Radio/Radio.js +11 -11
  63. package/build/module/Radio/Radio.js.map +1 -1
  64. package/build/module/SvgIcon/SvgIcon.js +7 -3
  65. package/build/module/SvgIcon/SvgIcon.js.map +1 -1
  66. package/build/module/Switch/Switch.js +1 -1
  67. package/build/module/Switch/Switch.js.map +1 -1
  68. package/build/module/TextField/InputLabel.js +4 -2
  69. package/build/module/TextField/InputLabel.js.map +1 -1
  70. package/build/module/TextField/OutlinedTextField.js +2 -1
  71. package/build/module/TextField/OutlinedTextField.js.map +1 -1
  72. package/build/module/hooks/useFadeInAppBar.js +3 -2
  73. package/build/module/hooks/useFadeInAppBar.js.map +1 -1
  74. package/build/module/internal/icons/Checkbox.js +1 -2
  75. package/build/module/internal/icons/Checkbox.js.map +1 -1
  76. package/build/module/internal/icons/CheckboxChecked.js +3 -2
  77. package/build/module/internal/icons/CheckboxChecked.js.map +1 -1
  78. package/build/module/internal/icons/ChevronDown.js +0 -2
  79. package/build/module/internal/icons/ChevronDown.js.map +1 -1
  80. package/build/module/internal/icons/ChevronLeft.js +0 -2
  81. package/build/module/internal/icons/ChevronLeft.js.map +1 -1
  82. package/build/module/internal/icons/ChevronRight.js +0 -2
  83. package/build/module/internal/icons/ChevronRight.js.map +1 -1
  84. package/build/module/internal/icons/Close.js +0 -2
  85. package/build/module/internal/icons/Close.js.map +1 -1
  86. package/build/module/internal/icons/Radio.js.map +1 -1
  87. package/build/module/internal/icons/RadioChecked.js.map +1 -1
  88. package/build/module/styles/index.js +0 -1
  89. package/build/module/styles/index.js.map +1 -1
  90. package/build/module/utils/cloneElementSafely.js +6 -0
  91. package/build/module/utils/cloneElementSafely.js.map +1 -0
  92. package/build/module/utils/index.js +1 -0
  93. package/build/module/utils/index.js.map +1 -1
  94. package/build/typescript/Button/ButtonProps.d.ts +2 -2
  95. package/build/typescript/Checkbox/CheckboxProps.d.ts +7 -1
  96. package/build/typescript/Fab/FabProps.d.ts +2 -2
  97. package/build/typescript/IconButton/IconButtonProps.d.ts +2 -2
  98. package/build/typescript/Image/ImageProps.d.ts +8 -0
  99. package/build/typescript/Slider/Slider.d.ts +1 -1
  100. package/build/typescript/SvgIcon/SvgIconProps.d.ts +7 -6
  101. package/build/typescript/Switch/SwitchProps.d.ts +2 -2
  102. package/build/typescript/hooks/useFadeInAppBar.d.ts +0 -1
  103. package/build/typescript/internal/icons/Checkbox.d.ts +19 -18
  104. package/build/typescript/internal/icons/CheckboxChecked.d.ts +19 -18
  105. package/build/typescript/internal/icons/ChevronDown.d.ts +19 -18
  106. package/build/typescript/internal/icons/ChevronLeft.d.ts +19 -18
  107. package/build/typescript/internal/icons/ChevronRight.d.ts +19 -18
  108. package/build/typescript/internal/icons/Close.d.ts +19 -18
  109. package/build/typescript/internal/icons/Radio.d.ts +19 -18
  110. package/build/typescript/internal/icons/RadioChecked.d.ts +19 -18
  111. package/build/typescript/styles/index.d.ts +0 -1
  112. package/build/typescript/types/index.d.ts +1 -0
  113. package/build/typescript/utils/cloneElementSafely.d.ts +4 -0
  114. package/build/typescript/utils/index.d.ts +1 -0
  115. package/package.json +4 -4
  116. package/src/Accordion/Accordion.tsx +1 -4
  117. package/src/Button/Button.tsx +18 -3
  118. package/src/Button/ButtonProps.ts +2 -7
  119. package/src/Checkbox/Checkbox.tsx +3 -2
  120. package/src/Checkbox/CheckboxProps.ts +9 -1
  121. package/src/Chip/Chip.tsx +11 -4
  122. package/src/Fab/Fab.tsx +14 -4
  123. package/src/Fab/FabProps.ts +2 -8
  124. package/src/IconButton/IconButton.tsx +16 -4
  125. package/src/IconButton/IconButtonProps.ts +2 -7
  126. package/src/Image/Image.tsx +12 -1
  127. package/src/Image/ImageProps.ts +10 -0
  128. package/src/Radio/Radio.tsx +7 -15
  129. package/src/SvgIcon/SvgIcon.tsx +11 -5
  130. package/src/SvgIcon/SvgIconProps.ts +8 -6
  131. package/src/Switch/Switch.tsx +1 -1
  132. package/src/Switch/SwitchProps.ts +2 -8
  133. package/src/TextField/InputLabel.tsx +6 -3
  134. package/src/TextField/OutlinedTextField.tsx +2 -1
  135. package/src/hooks/useFadeInAppBar.ts +4 -3
  136. package/src/internal/icons/Checkbox.tsx +3 -3
  137. package/src/internal/icons/CheckboxChecked.tsx +5 -3
  138. package/src/internal/icons/ChevronDown.tsx +3 -4
  139. package/src/internal/icons/ChevronLeft.tsx +3 -4
  140. package/src/internal/icons/ChevronRight.tsx +3 -4
  141. package/src/internal/icons/Close.tsx +3 -4
  142. package/src/internal/icons/Radio.tsx +4 -2
  143. package/src/internal/icons/RadioChecked.tsx +4 -2
  144. package/src/styles/index.ts +0 -1
  145. package/src/types/index.ts +7 -0
  146. package/src/utils/cloneElementSafely.ts +9 -0
  147. package/src/utils/index.ts +1 -0
  148. package/build/commonjs/styles/cloneSvgIcon.js +0 -37
  149. package/build/commonjs/styles/cloneSvgIcon.js.map +0 -1
  150. package/build/module/styles/cloneSvgIcon.js +0 -25
  151. package/build/module/styles/cloneSvgIcon.js.map +0 -1
  152. package/build/typescript/styles/cloneSvgIcon.d.ts +0 -12
  153. package/src/styles/cloneSvgIcon.ts +0 -39
@@ -15,7 +15,7 @@ const useStyles = function () {
15
15
  left: 0,
16
16
  right: 0,
17
17
  bottom: 0,
18
- backgroundColor: '#fff',
18
+ backgroundColor: theme.palette.background.default,
19
19
  borderRadius: theme.shape.roundness
20
20
  },
21
21
  input: {
@@ -145,6 +145,7 @@ const OutlinedTextField = /*#__PURE__*/React.forwardRef(function OutlinedTextFie
145
145
  }, labelProps)) : null, /*#__PURE__*/React.createElement(TextInput, {
146
146
  autoCapitalize: 'none',
147
147
  autoCorrect: false,
148
+ disableFullscreenUI: true,
148
149
  ref: ref,
149
150
  onChangeText: onChangeText,
150
151
  placeholder: placeholder,
@@ -1 +1 @@
1
- {"version":3,"sources":["OutlinedTextField.tsx"],"names":["React","Platform","TextInput","View","css","useTheme","IconButton","InputLabel","defaultHeight","iconSize","inputPaddingHorizontal","labelFontSize","labelPaddingTop","labelYOffset","useStyles","theme","outline","position","left","right","bottom","backgroundColor","borderRadius","shape","roundness","input","flexGrow","paddingHorizontal","textAlignVertical","textAlign","zIndex","textField","iconContainer","width","height","justifyContent","alignItems","OutlinedTextField","forwardRef","props","ref","animatedError","animatedLabel","disabled","error","focused","forceFocus","icon","keyboardType","label","labelLayout","onBlur","onChangeText","onFocus","onIconPress","onLayoutAnimatedText","onSubmitEditing","placeholder","secureTextEntry","style","value","styles","hasActiveOutline","inputTextColor","palette","tertiary","main","primary","activeColor","warning","accent","placeholderColor","text","hint","outlineColor","border","errorColor","typography","body2","fontSize","unitless","labelScale","labelWidth","labelHeight","labelHalfWidth","labelHalfHeight","labelTranslateX","minInputHeight","inputHeight","topPosition","Math","floor","iconTopPosition","labelTranslateY","placeholderOpacity","interpolate","inputRange","outputRange","measured","labelProps","outlineStyle","borderWidth","borderColor","top","textInputStyle","color","marginRight","paddingRight","OS","outlineWidth","containerStyle","paddingTop","minHeight","iconContainerStyle","onIconButtonPress"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAAsCC,QAAtC,EAAgDC,SAAhD,EAA2DC,IAA3D,QAAuE,cAAvE;AAEA,SAASC,GAAT,EAAcC,QAAd,QAA8B,WAA9B;AACA,OAAOC,UAAP,MAAuB,eAAvB;AAEA,OAAOC,UAAP,MAAuB,cAAvB;AACA,SACIC,aADJ,EAEIC,QAFJ,EAGIC,sBAHJ,EAIIC,aAJJ,EAKIC,eALJ,EAMIC,YANJ,QAOO,SAPP;;AAoBA,MAAMC,SAA6C,GAAG,YAAqC;AACvF,QAAMC,KAAK,GAAGV,QAAQ,EAAtB;AAEA,SAAO;AACHW,IAAAA,OAAO,EAAE;AACLC,MAAAA,QAAQ,EAAE,UADL;AAELC,MAAAA,IAAI,EAAE,CAFD;AAGLC,MAAAA,KAAK,EAAE,CAHF;AAILC,MAAAA,MAAM,EAAE,CAJH;AAKLC,MAAAA,eAAe,EAAE,MALZ;AAMLC,MAAAA,YAAY,EAAEP,KAAK,CAACQ,KAAN,CAAYC;AANrB,KADN;AASHC,IAAAA,KAAK,EAAE;AACHC,MAAAA,QAAQ,EAAE,CADP;AAEHC,MAAAA,iBAAiB,EAAEjB,sBAFhB;AAGHkB,MAAAA,iBAAiB,EAAE,QAHhB;AAIHC,MAAAA,SAAS,EAAE,MAJR;AAKHC,MAAAA,MAAM,E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IAAA,WAAW,EAAEO,WALjB;AAMI,IAAA,KAAK,EAAEG;AANX,KAOQuC,UAPR,EADE,GAUF,IAXR,eAYI,oBAAC,SAAD;AACI,IAAA,cAAc,EAAE,MADpB;AAEI,IAAA,WAAW,EAAE,KAFjB;AAGI,IAAA,GAAG,EAAE3D,GAHT;AAII,IAAA,YAAY,EAAEY,YAJlB;AAKI,IAAA,WAAW,EAAEK,WALjB;AAMI,IAAA,oBAAoB,EAAEc,gBAN1B;AAOI,IAAA,QAAQ,EAAE,CAAC5B,QAPf;AAQI,IAAA,cAAc,EAAEyB,WARpB;AASI,IAAA,OAAO,EAAEf,OATb;AAUI,IAAA,MAAM,EAAEF,MAVZ;AAWI,IAAA,eAAe,EAAEK,eAXrB;AAYI,IAAA,YAAY,EAAER,YAZlB;AAaI,IAAA,eAAe,EAAEU,eAbrB;AAcI,IAAA,qBAAqB,EAAE,aAd3B;AAeI,IAAA,KAAK,EAAE8C,cAfX;AAgBI,IAAA,KAAK,EAAE5C;AAhBX,IAZJ,CALJ,EAoCKb,IAAI,gBACD,oBAAC,IAAD;AAAM,IAAA,KAAK,EAAEkE;AAAb,kBACI,oBAAC,UAAD;AACI,IAAA,QAAQ,EAAElE,IADd;AAEI,IAAA,OAAO,EAAEmE;AAFb,IADJ,CADC,GAOD,IA3CR,CADJ;AA+CH,CAvKyB,CAA1B;AAyKA,eAAe7E,iBAAf","sourcesContent":["import React from 'react';\nimport { Animated, LayoutChangeEvent, Platform, TextInput, View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { css, useTheme } from '../styles';\nimport IconButton from '../IconButton';\nimport TextFieldProps from './TextFieldProps';\nimport InputLabel from './InputLabel';\nimport {\n defaultHeight,\n iconSize,\n inputPaddingHorizontal,\n labelFontSize,\n labelPaddingTop,\n labelYOffset,\n} from './utils';\n\ninterface OutlinedTextFieldProps extends TextFieldProps {\n animatedError: Animated.Value;\n animatedLabel: Animated.Value;\n focused: boolean;\n forceFocus: () => void;\n labelLayout: { measured: boolean; width: number; height: number };\n onLayoutAnimatedText: (event: LayoutChangeEvent) => void;\n}\n\ntype OutlinedTextFieldStyles = NamedStylesStringUnion<'outline' | 'input' | 'iconContainer'>;\n\nconst useStyles: UseStyles<OutlinedTextFieldStyles> = function (): OutlinedTextFieldStyles {\n const theme = useTheme();\n\n return {\n outline: {\n position: 'absolute',\n left: 0,\n right: 0,\n bottom: 0,\n backgroundColor: '#fff',\n borderRadius: theme.shape.roundness,\n },\n input: {\n flexGrow: 1,\n paddingHorizontal: inputPaddingHorizontal,\n textAlignVertical: 'center',\n textAlign: 'left',\n zIndex: theme.zIndex.textField,\n },\n iconContainer: {\n position: 'absolute',\n width: 24,\n height: 24,\n justifyContent: 'center',\n alignItems: 'center',\n right: 12,\n },\n };\n};\n\nconst OutlinedTextField = React.forwardRef<TextInput, OutlinedTextFieldProps>(function OutlinedTextField(props, ref) {\n const {\n animatedError,\n animatedLabel,\n disabled,\n error,\n focused,\n forceFocus,\n icon,\n keyboardType,\n label,\n labelLayout,\n onBlur,\n onChangeText,\n onFocus,\n onIconPress,\n onLayoutAnimatedText,\n onSubmitEditing,\n placeholder,\n secureTextEntry,\n style,\n value,\n } = props;\n\n const theme = useTheme();\n const styles = useStyles();\n\n const hasActiveOutline = focused || error;\n const inputTextColor = disabled ? theme.palette.tertiary.main : theme.palette.primary.main;\n const activeColor = error\n ? theme.palette.warning.main\n : disabled\n ? theme.palette.tertiary.main\n : theme.palette.accent.main;\n const placeholderColor = disabled ? theme.palette.tertiary.main : theme.palette.text.hint;\n const outlineColor = disabled ? theme.palette.border : theme.palette.border;\n const errorColor = disabled ? theme.palette.tertiary.main : theme.palette.warning.main;\n\n const typography = theme.typography.body2;\n const fontSize = typography.fontSize.unitless;\n\n const labelScale = labelFontSize / fontSize;\n const labelWidth = labelLayout.width;\n const labelHeight = labelLayout.height;\n const labelHalfWidth = labelWidth / 2;\n const labelHalfHeight = labelHeight / 2;\n\n const labelTranslateX = -1 * (labelHalfWidth - (labelScale * labelWidth) / 2 - (fontSize - labelFontSize) * labelScale);\n const minInputHeight = defaultHeight - labelPaddingTop;\n const inputHeight = labelHeight < minInputHeight ? minInputHeight : labelHeight;\n const topPosition = Math.floor(((inputHeight > 0 ? inputHeight : 0) - labelHeight) / 2 + labelPaddingTop);\n const iconTopPosition = (defaultHeight - (label ? 0 : labelPaddingTop) - iconSize - (label ? labelYOffset : 0)) / 2;\n const labelTranslateY = -labelHalfHeight - (topPosition + labelYOffset);\n\n const placeholderOpacity = hasActiveOutline\n ? animatedLabel.interpolate({\n inputRange: [0, 1],\n outputRange: [hasActiveOutline ? 0 : 1, 1],\n })\n : labelLayout.measured ? 1 : 0;\n\n const labelProps = {\n activeColor,\n error,\n errorColor,\n fontSize,\n hasActiveOutline,\n label,\n labelScale,\n labelTranslateX,\n labelTranslateY,\n onLayoutAnimatedText,\n placeholderColor,\n placeholderOpacity,\n topPosition,\n };\n\n const outlineStyle = css([\n styles.outline,\n {\n borderWidth: hasActiveOutline ? 2 : 1,\n borderColor: error ? errorColor : (hasActiveOutline ? activeColor : outlineColor),\n top: label ? 6 : 0,\n },\n ]);\n\n const textInputStyle = css([\n styles.input,\n {\n fontSize,\n color: inputTextColor,\n height: inputHeight,\n },\n icon && {\n marginRight: iconSize + 20,\n paddingRight: 0,\n },\n Platform.OS === 'web' && {\n //@ts-ignore\n outlineWidth: 0,\n },\n ]);\n\n const containerStyle = css([\n {\n paddingTop: label ? labelPaddingTop : 0,\n minHeight: label ? defaultHeight : defaultHeight + labelYOffset,\n },\n ]);\n\n const iconContainerStyle = css([\n styles.iconContainer,\n { top: iconTopPosition },\n ]);\n\n const onIconButtonPress = () => {\n forceFocus();\n onIconPress?.();\n };\n\n return (\n <View style={style}>\n <View\n pointerEvents={'none'}\n style={outlineStyle}\n />\n <View style={containerStyle}>\n {label ? (\n <InputLabel\n animatedLabel={animatedLabel}\n animatedError={animatedError}\n focused={focused}\n labelLayout={labelLayout}\n placeholder={placeholder}\n value={value}\n {...labelProps}\n />\n ) : null}\n <TextInput\n autoCapitalize={'none'}\n autoCorrect={false}\n ref={ref}\n onChangeText={onChangeText}\n placeholder={placeholder}\n placeholderTextColor={placeholderColor}\n editable={!disabled}\n selectionColor={activeColor}\n onFocus={onFocus}\n onBlur={onBlur}\n onSubmitEditing={onSubmitEditing}\n keyboardType={keyboardType}\n secureTextEntry={secureTextEntry}\n underlineColorAndroid={'transparent'}\n style={textInputStyle}\n value={value}\n />\n </View>\n {icon ? (\n <View style={iconContainerStyle}>\n <IconButton\n children={icon}\n onPress={onIconButtonPress}\n />\n </View>\n ) : null}\n </View>\n );\n});\n\nexport default OutlinedTextField;\n"]}
1
+ {"version":3,"sources":["OutlinedTextField.tsx"],"names":["React","Platform","TextInput","View","css","useTheme","IconButton","InputLabel","defaultHeight","iconSize","inputPaddingHorizontal","labelFontSize","labelPaddingTop","labelYOffset","useStyles","theme","outline","position","left","right","bottom","backgroundColor","palette","background","default","borderRadius","shape","roundness","input","flexGrow","paddingHorizontal","textAlignVertical","textAlign","zIndex","textField","iconContainer","width","height","justifyContent","alignItems","OutlinedTextField","forwardRef","props","ref","animatedError","animatedLabel","disabled","error","focused","forceFocus","icon","keyboardType","label","labelLayout","onBlur","onChangeText","onFocus","onIconPress","onLayoutAnimatedText","onSubmitEditing","placeholder","secureTextEntry","style","value","styles","hasActiveOutline","inputTextColor","tertiary","main","primary","activeColor","warning","accent","placeholderColor","text","hint","outlineColor","border","errorColor","typography","body2","fontSize","unitless","labelScale","labelWidth","labelHeight","labelHalfWidth","labelHalfHeight","labelTranslateX","minInputHeight","inputHeight","topPosition","Math","floor","iconTopPosition","labelTranslateY","placeholderOpacity","interpolate","inputRange","outputRange","measured","labelProps","outlineStyle","borderWidth","borderColor","top","textInputStyle","color","marginRight","paddingRight","OS","outlineWidth","containerStyle","paddingTop","minHeight","iconContainerStyle","onIconButtonPress"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAAsCC,Q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IAAA,OAAO,EAAEd,OAVb;AAWI,IAAA,MAAM,EAAEF,MAXZ;AAYI,IAAA,eAAe,EAAEK,eAZrB;AAaI,IAAA,YAAY,EAAER,YAblB;AAcI,IAAA,eAAe,EAAEU,eAdrB;AAeI,IAAA,qBAAqB,EAAE,aAf3B;AAgBI,IAAA,KAAK,EAAE6C,cAhBX;AAiBI,IAAA,KAAK,EAAE3C;AAjBX,IAZJ,CALJ,EAqCKb,IAAI,gBACD,oBAAC,IAAD;AAAM,IAAA,KAAK,EAAEiE;AAAb,kBACI,oBAAC,UAAD;AACI,IAAA,QAAQ,EAAEjE,IADd;AAEI,IAAA,OAAO,EAAEkE;AAFb,IADJ,CADC,GAOD,IA5CR,CADJ;AAgDH,CAxKyB,CAA1B;AA0KA,eAAe5E,iBAAf","sourcesContent":["import React from 'react';\nimport { Animated, LayoutChangeEvent, Platform, TextInput, View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { css, useTheme } from '../styles';\nimport IconButton from '../IconButton';\nimport TextFieldProps from './TextFieldProps';\nimport InputLabel from './InputLabel';\nimport {\n defaultHeight,\n iconSize,\n inputPaddingHorizontal,\n labelFontSize,\n labelPaddingTop,\n labelYOffset,\n} from './utils';\n\ninterface OutlinedTextFieldProps extends TextFieldProps {\n animatedError: Animated.Value;\n animatedLabel: Animated.Value;\n focused: boolean;\n forceFocus: () => void;\n labelLayout: { measured: boolean; width: number; height: number };\n onLayoutAnimatedText: (event: LayoutChangeEvent) => void;\n}\n\ntype OutlinedTextFieldStyles = NamedStylesStringUnion<'outline' | 'input' | 'iconContainer'>;\n\nconst useStyles: UseStyles<OutlinedTextFieldStyles> = function (): OutlinedTextFieldStyles {\n const theme = useTheme();\n\n return {\n outline: {\n position: 'absolute',\n left: 0,\n right: 0,\n bottom: 0,\n backgroundColor: theme.palette.background.default,\n borderRadius: theme.shape.roundness,\n },\n input: {\n flexGrow: 1,\n paddingHorizontal: inputPaddingHorizontal,\n textAlignVertical: 'center',\n textAlign: 'left',\n zIndex: theme.zIndex.textField,\n },\n iconContainer: {\n position: 'absolute',\n width: 24,\n height: 24,\n justifyContent: 'center',\n alignItems: 'center',\n right: 12,\n },\n };\n};\n\nconst OutlinedTextField = React.forwardRef<TextInput, OutlinedTextFieldProps>(function OutlinedTextField(props, ref) {\n const {\n animatedError,\n animatedLabel,\n disabled,\n error,\n focused,\n forceFocus,\n icon,\n keyboardType,\n label,\n labelLayout,\n onBlur,\n onChangeText,\n onFocus,\n onIconPress,\n onLayoutAnimatedText,\n onSubmitEditing,\n placeholder,\n secureTextEntry,\n style,\n value,\n } = props;\n\n const theme = useTheme();\n const styles = useStyles();\n\n const hasActiveOutline = focused || error;\n const inputTextColor = disabled ? theme.palette.tertiary.main : theme.palette.primary.main;\n const activeColor = error\n ? theme.palette.warning.main\n : disabled\n ? theme.palette.tertiary.main\n : theme.palette.accent.main;\n const placeholderColor = disabled ? theme.palette.tertiary.main : theme.palette.text.hint;\n const outlineColor = disabled ? theme.palette.border : theme.palette.border;\n const errorColor = disabled ? theme.palette.tertiary.main : theme.palette.warning.main;\n\n const typography = theme.typography.body2;\n const fontSize = typography.fontSize.unitless;\n\n const labelScale = labelFontSize / fontSize;\n const labelWidth = labelLayout.width;\n const labelHeight = labelLayout.height;\n const labelHalfWidth = labelWidth / 2;\n const labelHalfHeight = labelHeight / 2;\n\n const labelTranslateX = -1 * (labelHalfWidth - (labelScale * labelWidth) / 2 - (fontSize - labelFontSize) * labelScale);\n const minInputHeight = defaultHeight - labelPaddingTop;\n const inputHeight = labelHeight < minInputHeight ? minInputHeight : labelHeight;\n const topPosition = Math.floor(((inputHeight > 0 ? inputHeight : 0) - labelHeight) / 2 + labelPaddingTop);\n const iconTopPosition = (defaultHeight - (label ? 0 : labelPaddingTop) - iconSize - (label ? labelYOffset : 0)) / 2;\n const labelTranslateY = -labelHalfHeight - (topPosition + labelYOffset);\n\n const placeholderOpacity = hasActiveOutline\n ? animatedLabel.interpolate({\n inputRange: [0, 1],\n outputRange: [hasActiveOutline ? 0 : 1, 1],\n })\n : labelLayout.measured ? 1 : 0;\n\n const labelProps = {\n activeColor,\n error,\n errorColor,\n fontSize,\n hasActiveOutline,\n label,\n labelScale,\n labelTranslateX,\n labelTranslateY,\n onLayoutAnimatedText,\n placeholderColor,\n placeholderOpacity,\n topPosition,\n };\n\n const outlineStyle = css([\n styles.outline,\n {\n borderWidth: hasActiveOutline ? 2 : 1,\n borderColor: error ? errorColor : (hasActiveOutline ? activeColor : outlineColor),\n top: label ? 6 : 0,\n },\n ]);\n\n const textInputStyle = css([\n styles.input,\n {\n fontSize,\n color: inputTextColor,\n height: inputHeight,\n },\n icon && {\n marginRight: iconSize + 20,\n paddingRight: 0,\n },\n Platform.OS === 'web' && {\n //@ts-ignore\n outlineWidth: 0,\n },\n ]);\n\n const containerStyle = css([\n {\n paddingTop: label ? labelPaddingTop : 0,\n minHeight: label ? defaultHeight : defaultHeight + labelYOffset,\n },\n ]);\n\n const iconContainerStyle = css([\n styles.iconContainer,\n { top: iconTopPosition },\n ]);\n\n const onIconButtonPress = () => {\n forceFocus();\n onIconPress?.();\n };\n\n return (\n <View style={style}>\n <View\n pointerEvents={'none'}\n style={outlineStyle}\n />\n <View style={containerStyle}>\n {label ? (\n <InputLabel\n animatedLabel={animatedLabel}\n animatedError={animatedError}\n focused={focused}\n labelLayout={labelLayout}\n placeholder={placeholder}\n value={value}\n {...labelProps}\n />\n ) : null}\n <TextInput\n autoCapitalize={'none'}\n autoCorrect={false}\n disableFullscreenUI={true}\n ref={ref}\n onChangeText={onChangeText}\n placeholder={placeholder}\n placeholderTextColor={placeholderColor}\n editable={!disabled}\n selectionColor={activeColor}\n onFocus={onFocus}\n onBlur={onBlur}\n onSubmitEditing={onSubmitEditing}\n keyboardType={keyboardType}\n secureTextEntry={secureTextEntry}\n underlineColorAndroid={'transparent'}\n style={textInputStyle}\n value={value}\n />\n </View>\n {icon ? (\n <View style={iconContainerStyle}>\n <IconButton\n children={icon}\n onPress={onIconButtonPress}\n />\n </View>\n ) : null}\n </View>\n );\n});\n\nexport default OutlinedTextField;\n"]}
@@ -4,9 +4,9 @@ import Animated from 'react-native-reanimated';
4
4
  import { useSafeAreaInsets } from 'react-native-safe-area-context';
5
5
  import { rgb } from '@fountain-ui/utils';
6
6
  import { useHeight } from '../internal/hooks';
7
+ import { useTheme } from '../styles';
7
8
  import useAppbarStyles from './useAppbarStyles';
8
9
  const defaultOptions = {
9
- backgroundColor: '#ffffff',
10
10
  fadeInBeginY: (endY, appBarHeight) => endY - appBarHeight,
11
11
  fadeInEndY: appBarHeight => appBarHeight,
12
12
  floating: true,
@@ -19,7 +19,6 @@ const shadowOffset = Platform.OS === 'ios' ? {
19
19
  } : undefined;
20
20
  export default function useFadeInAppBar(userOptions = defaultOptions) {
21
21
  const {
22
- backgroundColor,
23
22
  fadeInBeginY,
24
23
  fadeInEndY,
25
24
  floating,
@@ -28,6 +27,7 @@ export default function useFadeInAppBar(userOptions = defaultOptions) {
28
27
  } = { ...defaultOptions,
29
28
  ...userOptions
30
29
  };
30
+ const theme = useTheme();
31
31
  const styles = useAppbarStyles();
32
32
  const safeAreaInsets = useSafeAreaInsets();
33
33
  const [appBarHeight, onAppBarLayout] = useHeight();
@@ -39,6 +39,7 @@ export default function useFadeInAppBar(userOptions = defaultOptions) {
39
39
  const dy = Animated.useSharedValue(0);
40
40
  const lastOffsetY = Animated.useSharedValue(0);
41
41
  const normalized = Animated.useSharedValue(0);
42
+ const backgroundColor = theme.palette.background.default;
42
43
  const [r, g, b] = React.useMemo(() => rgb(backgroundColor), [backgroundColor]);
43
44
  const animatedAppBarStyle = Animated.useAnimatedStyle(() => ({
44
45
  backgroundColor: `rgba(${r}, ${g}, ${b}, ${normalized.value})`,
@@ -1 +1 @@
1
- {"version":3,"sources":["useFadeInAppBar.ts"],"names":["React","Keyboard","Platform","Animated","useSafeAreaInsets","rgb","useHeight","useAppbarStyles","defaultOptions","backgroundColor","fadeInBeginY","endY","appBarHeight","fadeInEndY","floating","keyboardDismissMode","translucent","shadowOffset","OS","width","height","undefined","useFadeInAppBar","userOptions","styles","safeAreaInsets","onAppBarLayout","fromOffsetY","toOffsetY","useMemo","beginY","dy","useSharedValue","lastOffsetY","normalized","r","g","b","animatedAppBarStyle","useAnimatedStyle","value","elevation","shadowColor","shadowRadius","shadowOpacity","animatedTitleStyle","opacity","scrollHandler","useAnimatedScrollHandler","onBeginDrag","runOnJS","dismiss","onScroll","event","offsetY","contentOffset","y","distance","Math","max","localOffsetY","min","onEndDrag","onMomentumEnd","appBarStyle","paddingTop","top","titleStyle"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAAgBC,QAAhB,EAA0BC,QAA1B,QAAkG,cAAlG;AACA,OAAOC,QAAP,MAAqB,yBAArB;AACA,SAASC,iBAAT,QAAkC,gCAAlC;AACA,SAASC,GAAT,QAAoB,oBAApB;AACA,SAASC,SAAT,QAA0B,mBAA1B;AACA,OAAOC,eAAP,MAA4B,mBAA5B;AA0BA,MAAMC,cAAiC,GAAG;AACtCC,EAAAA,eAAe,EAAE,SADqB;AAEtCC,EAAAA,YAAY,EAAE,CAACC,IAAD,EAAOC,YAAP,KAAwBD,IAAI,GAAGC,YAFP;AAGtCC,EAAAA,UAAU,EAAGD,YAAD,IAAkBA,YAHQ;AAItCE,EAAAA,QAAQ,EAAE,IAJ4B;AAKtCC,EAAAA,mBAAmB,EAAE,MALiB;AAMtCC,EAAAA,WAAW,EAAE;AANyB,CAA1C;AASA,MAAMC,YAAY,GAAGf,QAAQ,CAACgB,EAAT,KAAgB,KAAhB,GAAwB;AAAEC,EAAAA,KAAK,EAAE,CAAT;AAAYC,EAAAA,MAAM,EAAE;AAApB,CAAxB,GAAkDC,SAAvE;AAEA,eAAe,SAASC,eAAT,CAAyBC,WAAoB,GAAGf,cAAhD,EAA8E;AACzF,QAAM;AACFC,IAAAA,eADE;AAEFC,IAAAA,YAFE;AAGFG,IAAAA,UAHE;AAIFC,IAA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GV,KAAD,IAAW;AACtBpB,MAAAA,WAAW,CAACO,KAAZ,GAAoBa,KAAK,CAACE,aAAN,CAAoBC,CAAxC;AACH;AArBmD,GAAlC,CAAtB;AAwBA,QAAMQ,WAAW,GAAG,CAChB1B,mBADgB,EAEhBtB,WAAW,GAAG;AAAEiD,IAAAA,UAAU,EAAExC,cAAc,CAACyC;AAA7B,GAAH,GAAwC7C,SAFnC,EAGhBP,QAAQ,GAAGU,MAAM,CAACV,QAAV,GAAqBO,SAHb,CAApB;AAMA,SAAO;AACH2C,IAAAA,WADG;AAEHG,IAAAA,UAAU,EAAE,CAACtB,kBAAD,CAFT;AAGHnB,IAAAA,cAHG;AAIH0B,IAAAA,QAAQ,EAAEL,aAJP;AAKHhB,IAAAA,EALG;AAMHG,IAAAA;AANG,GAAP;AAQH;AAAA","sourcesContent":["import React from 'react';\nimport { Falsy, Keyboard, Platform, RegisteredStyle, ScrollViewProps, ViewProps, ViewStyle } from 'react-native';\nimport Animated from 'react-native-reanimated';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { rgb } from '@fountain-ui/utils';\nimport { useHeight } from '../internal/hooks';\nimport useAppbarStyles from './useAppbarStyles';\n\ntype ViewStyleProp = Array<ViewStyle | RegisteredStyle<ViewStyle> | Falsy>;\n\ntype OnScroll = ScrollViewProps['onScroll'];\n\ntype OnLayoutCallback = ViewProps['onLayout'];\n\nexport interface Options {\n backgroundColor?: string;\n fadeInBeginY?: number | ((endY: number, appBarHeight: number) => number);\n fadeInEndY?: number | ((appBarHeight: number) => number);\n floating?: boolean;\n keyboardDismissMode?: 'none' | 'on-drag';\n translucent?: boolean;\n}\n\nexport interface FadeInAppBar {\n appBarStyle: ViewStyleProp;\n titleStyle: ViewStyleProp;\n onAppBarLayout: OnLayoutCallback;\n onScroll: OnScroll;\n dy: Animated.SharedValue<number>;\n normalized: Animated.SharedValue<number>;\n}\n\nconst defaultOptions: Required<Options> = {\n backgroundColor: '#ffffff',\n fadeInBeginY: (endY, appBarHeight) => endY - appBarHeight,\n fadeInEndY: (appBarHeight) => appBarHeight,\n floating: true,\n keyboardDismissMode: 'none',\n translucent: false,\n};\n\nconst shadowOffset = Platform.OS === 'ios' ? { width: 0, height: 3 } : undefined;\n\nexport default function useFadeInAppBar(userOptions: Options = defaultOptions): FadeInAppBar {\n const {\n backgroundColor,\n fadeInBeginY,\n fadeInEndY,\n floating,\n keyboardDismissMode,\n translucent,\n }: Required<Options> = {\n ...defaultOptions,\n ...userOptions,\n };\n\n const styles = useAppbarStyles();\n\n const safeAreaInsets = useSafeAreaInsets();\n\n const [appBarHeight, onAppBarLayout] = useHeight();\n\n const [fromOffsetY, toOffsetY] = React.useMemo(() => {\n const endY = typeof fadeInEndY === 'function'\n ? fadeInEndY(appBarHeight)\n : fadeInEndY;\n\n const beginY = typeof fadeInBeginY === 'function'\n ? fadeInBeginY(endY, appBarHeight)\n : fadeInBeginY;\n\n return [beginY, endY];\n }, [fadeInBeginY, fadeInBeginY, appBarHeight]);\n\n const dy = Animated.useSharedValue<number>(0);\n const lastOffsetY = Animated.useSharedValue<number>(0);\n const normalized = Animated.useSharedValue<number>(0);\n\n const [r, g, b] = React.useMemo(() => rgb(backgroundColor), [backgroundColor]);\n\n const animatedAppBarStyle = Animated.useAnimatedStyle(() => ({\n backgroundColor: `rgba(${r}, ${g}, ${b}, ${normalized.value})`,\n elevation: normalized.value >= 1 ? 6 : 0,\n shadowColor: '#000',\n shadowOffset,\n shadowRadius: 4.65,\n shadowOpacity: normalized.value >= 1 ? 0.25 : 0,\n }));\n\n const animatedTitleStyle = Animated.useAnimatedStyle(() => ({\n opacity: normalized.value,\n }));\n\n const scrollHandler = Animated.useAnimatedScrollHandler({\n onBeginDrag: () => {\n if (keyboardDismissMode === 'on-drag') {\n Animated.runOnJS(Keyboard.dismiss)();\n }\n },\n onScroll: (event) => {\n const offsetY = event.contentOffset.y;\n\n const distance = Math.max(toOffsetY - fromOffsetY, 1);\n const localOffsetY = offsetY - fromOffsetY;\n\n dy.value = offsetY - lastOffsetY.value;\n\n normalized.value = Math.min(Math.max(localOffsetY / distance, 0), 1);\n },\n onEndDrag: (event) => {\n lastOffsetY.value = event.contentOffset.y;\n },\n onMomentumEnd: (event) => {\n lastOffsetY.value = event.contentOffset.y;\n },\n });\n\n const appBarStyle = [\n animatedAppBarStyle,\n translucent ? { paddingTop: safeAreaInsets.top } : undefined,\n floating ? styles.floating : undefined,\n ];\n\n return {\n appBarStyle,\n titleStyle: [animatedTitleStyle],\n onAppBarLayout,\n onScroll: scrollHandler,\n dy,\n normalized,\n };\n};\n"]}
1
+ {"version":3,"sources":["useFadeInAppBar.ts"],"names":["React","Keyboard","Platform","Animated","useSafeAreaInsets","rgb","useHeight","useTheme","useAppbarStyles","defaultOptions","fadeInBeginY","endY","appBarHeight","fadeInEndY","floating","keyboardDismissMode","translucent","shadowOffset","OS","width","height","undefined","useFadeInAppBar","userOptions","theme","styles","safeAreaInsets","onAppBarLayout","fromOffsetY","toOffsetY","useMemo","beginY","dy","useSharedValue","lastOffsetY","normalized","backgroundColor","palette","background","default","r","g","b","animatedAppBarStyle","useAnimatedStyle","value","elevation","shadowColor","shadowRadius","shadowOpacity","animatedTitleStyle","opacity","scrollHandler","useAnimatedScrollHandler","onBeginDrag","runOnJS","dismiss","onScroll","event","offsetY","contentOffset","y","distance","Math","max","localOffsetY","min","onEndDrag","onMomentumEnd","appBarStyle","paddingTop","top","titleStyle"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAAgBC,QAAhB,EAA0BC,QAA1B,QAAkG,cAAlG;AACA,OAAOC,QAAP,MAAqB,yBAArB;AACA,SAASC,iBAAT,QAAkC,gCAAlC;AACA,SAASC,GAAT,QAAoB,oBAApB;AACA,SAASC,SAAT,QAA0B,mBAA1B;AACA,SAASC,QAAT,QAAyB,WAAzB;AACA,OAAOC,eAAP,MAA4B,mBAA5B;AAyBA,MAAMC,cAAiC,GAAG;AACtCC,EAAAA,YAAY,EAAE,CAACC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AW;AACjB,YAAMC,OAAO,GAAGD,KAAK,CAACE,aAAN,CAAoBC,CAApC;AAEA,YAAMC,QAAQ,GAAGC,IAAI,CAACC,GAAL,CAASnC,SAAS,GAAGD,WAArB,EAAkC,CAAlC,CAAjB;AACA,YAAMqC,YAAY,GAAGN,OAAO,GAAG/B,WAA/B;AAEAI,MAAAA,EAAE,CAACa,KAAH,GAAWc,OAAO,GAAGzB,WAAW,CAACW,KAAjC;AAEAV,MAAAA,UAAU,CAACU,KAAX,GAAmBkB,IAAI,CAACG,GAAL,CAASH,IAAI,CAACC,GAAL,CAASC,YAAY,GAAGH,QAAxB,EAAkC,CAAlC,CAAT,EAA+C,CAA/C,CAAnB;AACH,KAfmD;AAgBpDK,IAAAA,SAAS,EAAGT,KAAD,IAAW;AAClBxB,MAAAA,WAAW,CAACW,KAAZ,GAAoBa,KAAK,CAACE,aAAN,CAAoBC,CAAxC;AACH,KAlBmD;AAmBpDO,IAAAA,aAAa,EAAGV,KAAD,IAAW;AACtBxB,MAAAA,WAAW,CAACW,KAAZ,GAAoBa,KAAK,CAACE,aAAN,CAAoBC,CAAxC;AACH;AArBmD,GAAlC,CAAtB;AAwBA,QAAMQ,WAAW,GAAG,CAChB1B,mBADgB,EAEhB3B,WAAW,GAAG;AAAEsD,IAAAA,UAAU,EAAE5C,cAAc,CAAC6C;AAA7B,GAAH,GAAwClD,SAFnC,EAGhBP,QAAQ,GAAGW,MAAM,CAACX,QAAV,GAAqBO,SAHb,CAApB;AAMA,SAAO;AACHgD,IAAAA,WADG;AAEHG,IAAAA,UAAU,EAAE,CAACtB,kBAAD,CAFT;AAGHvB,IAAAA,cAHG;AAIH8B,IAAAA,QAAQ,EAAEL,aAJP;AAKHpB,IAAAA,EALG;AAMHG,IAAAA;AANG,GAAP;AAQH;AAAA","sourcesContent":["import React from 'react';\nimport { Falsy, Keyboard, Platform, RegisteredStyle, ScrollViewProps, ViewProps, ViewStyle } from 'react-native';\nimport Animated from 'react-native-reanimated';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { rgb } from '@fountain-ui/utils';\nimport { useHeight } from '../internal/hooks';\nimport { useTheme } from '../styles';\nimport useAppbarStyles from './useAppbarStyles';\n\ntype ViewStyleProp = Array<ViewStyle | RegisteredStyle<ViewStyle> | Falsy>;\n\ntype OnScroll = ScrollViewProps['onScroll'];\n\ntype OnLayoutCallback = ViewProps['onLayout'];\n\nexport interface Options {\n fadeInBeginY?: number | ((endY: number, appBarHeight: number) => number);\n fadeInEndY?: number | ((appBarHeight: number) => number);\n floating?: boolean;\n keyboardDismissMode?: 'none' | 'on-drag';\n translucent?: boolean;\n}\n\nexport interface FadeInAppBar {\n appBarStyle: ViewStyleProp;\n titleStyle: ViewStyleProp;\n onAppBarLayout: OnLayoutCallback;\n onScroll: OnScroll;\n dy: Animated.SharedValue<number>;\n normalized: Animated.SharedValue<number>;\n}\n\nconst defaultOptions: Required<Options> = {\n fadeInBeginY: (endY, appBarHeight) => endY - appBarHeight,\n fadeInEndY: (appBarHeight) => appBarHeight,\n floating: true,\n keyboardDismissMode: 'none',\n translucent: false,\n};\n\nconst shadowOffset = Platform.OS === 'ios' ? { width: 0, height: 3 } : undefined;\n\nexport default function useFadeInAppBar(userOptions: Options = defaultOptions): FadeInAppBar {\n const {\n fadeInBeginY,\n fadeInEndY,\n floating,\n keyboardDismissMode,\n translucent,\n }: Required<Options> = {\n ...defaultOptions,\n ...userOptions,\n };\n\n const theme = useTheme();\n\n const styles = useAppbarStyles();\n\n const safeAreaInsets = useSafeAreaInsets();\n\n const [appBarHeight, onAppBarLayout] = useHeight();\n\n const [fromOffsetY, toOffsetY] = React.useMemo(() => {\n const endY = typeof fadeInEndY === 'function'\n ? fadeInEndY(appBarHeight)\n : fadeInEndY;\n\n const beginY = typeof fadeInBeginY === 'function'\n ? fadeInBeginY(endY, appBarHeight)\n : fadeInBeginY;\n\n return [beginY, endY];\n }, [fadeInBeginY, fadeInBeginY, appBarHeight]);\n\n const dy = Animated.useSharedValue<number>(0);\n const lastOffsetY = Animated.useSharedValue<number>(0);\n const normalized = Animated.useSharedValue<number>(0);\n\n const backgroundColor = theme.palette.background.default;\n const [r, g, b] = React.useMemo(() => rgb(backgroundColor), [backgroundColor]);\n\n const animatedAppBarStyle = Animated.useAnimatedStyle(() => ({\n backgroundColor: `rgba(${r}, ${g}, ${b}, ${normalized.value})`,\n elevation: normalized.value >= 1 ? 6 : 0,\n shadowColor: '#000',\n shadowOffset,\n shadowRadius: 4.65,\n shadowOpacity: normalized.value >= 1 ? 0.25 : 0,\n }));\n\n const animatedTitleStyle = Animated.useAnimatedStyle(() => ({\n opacity: normalized.value,\n }));\n\n const scrollHandler = Animated.useAnimatedScrollHandler({\n onBeginDrag: () => {\n if (keyboardDismissMode === 'on-drag') {\n Animated.runOnJS(Keyboard.dismiss)();\n }\n },\n onScroll: (event) => {\n const offsetY = event.contentOffset.y;\n\n const distance = Math.max(toOffsetY - fromOffsetY, 1);\n const localOffsetY = offsetY - fromOffsetY;\n\n dy.value = offsetY - lastOffsetY.value;\n\n normalized.value = Math.min(Math.max(localOffsetY / distance, 0), 1);\n },\n onEndDrag: (event) => {\n lastOffsetY.value = event.contentOffset.y;\n },\n onMomentumEnd: (event) => {\n lastOffsetY.value = event.contentOffset.y;\n },\n });\n\n const appBarStyle = [\n animatedAppBarStyle,\n translucent ? { paddingTop: safeAreaInsets.top } : undefined,\n floating ? styles.floating : undefined,\n ];\n\n return {\n appBarStyle,\n titleStyle: [animatedTitleStyle],\n onAppBarLayout,\n onScroll: scrollHandler,\n dy,\n normalized,\n };\n};\n"]}
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import { Path } from 'react-native-svg';
3
3
  import { createSvgIcon } from '../../utils';
4
4
  export default createSvgIcon( /*#__PURE__*/React.createElement(Path, {
5
- d: "M13 4.5C14.3807 4.5 15.5 5.61929 15.5 7V13C15.5 14.3807 14.3807 15.5 13 15.5H7C5.61929 15.5 4.5 14.3807 4.5 13V7C4.5 5.61929 5.61929 4.5 7 4.5H13ZM7 3C4.79086 3 3 4.79086 3 7V13C3 15.2091 4.79086 17 7 17H13C15.2091 17 17 15.2091 17 13V7C17 4.79086 15.2091 3 13 3H7Z",
6
- fill: "#767676"
5
+ d: "M13 4.5C14.3807 4.5 15.5 5.61929 15.5 7V13C15.5 14.3807 14.3807 15.5 13 15.5H7C5.61929 15.5 4.5 14.3807 4.5 13V7C4.5 5.61929 5.61929 4.5 7 4.5H13ZM7 3C4.79086 3 3 4.79086 3 7V13C3 15.2091 4.79086 17 7 17H13C15.2091 17 17 15.2091 17 13V7C17 4.79086 15.2091 3 13 3H7Z"
7
6
  }), 'Checkbox');
8
7
  //# sourceMappingURL=Checkbox.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["Checkbox.tsx"],"names":["React","Path","createSvgIcon"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,kBAArB;AACA,SAASC,aAAT,QAA8B,aAA9B;AAEA,eAAeA,aAAa,eACxB,oBAAC,IAAD;AACI,EAAA,CAAC,EAAC,2QADN;AAEI,EAAA,IAAI,EAAC;AAFT,EADwB,EAKtB,UALsB,CAA5B","sourcesContent":["import React from 'react';\nimport { Path } from 'react-native-svg';\nimport { createSvgIcon } from '../../utils';\n\nexport default createSvgIcon(\n <Path\n d=\"M13 4.5C14.3807 4.5 15.5 5.61929 15.5 7V13C15.5 14.3807 14.3807 15.5 13 15.5H7C5.61929 15.5 4.5 14.3807 4.5 13V7C4.5 5.61929 5.61929 4.5 7 4.5H13ZM7 3C4.79086 3 3 4.79086 3 7V13C3 15.2091 4.79086 17 7 17H13C15.2091 17 17 15.2091 17 13V7C17 4.79086 15.2091 3 13 3H7Z\"\n fill=\"#767676\"\n />\n , 'Checkbox');"]}
1
+ {"version":3,"sources":["Checkbox.tsx"],"names":["React","Path","createSvgIcon"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,kBAArB;AACA,SAASC,aAAT,QAA8B,aAA9B;AAEA,eAAeA,aAAa,eACxB,oBAAC,IAAD;AACI,EAAA,CAAC,EAAC;AADN,EADwB,EAIxB,UAJwB,CAA5B","sourcesContent":["import React from 'react';\nimport { Path } from 'react-native-svg';\nimport { createSvgIcon } from '../../utils';\n\nexport default createSvgIcon(\n <Path\n d=\"M13 4.5C14.3807 4.5 15.5 5.61929 15.5 7V13C15.5 14.3807 14.3807 15.5 13 15.5H7C5.61929 15.5 4.5 14.3807 4.5 13V7C4.5 5.61929 5.61929 4.5 7 4.5H13ZM7 3C4.79086 3 3 4.79086 3 7V13C3 15.2091 4.79086 17 7 17H13C15.2091 17 17 15.2091 17 13V7C17 4.79086 15.2091 3 13 3H7Z\"\n />,\n 'Checkbox',\n);\n"]}
@@ -2,8 +2,9 @@ import React from 'react';
2
2
  import { Path } from 'react-native-svg';
3
3
  import { createSvgIcon } from '../../utils';
4
4
  export default createSvgIcon( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Path, {
5
- d: "M3 7C3 4.79086 4.79086 3 7 3H13C15.2091 3 17 4.79086 17 7V13C17 15.2091 15.2091 17 13 17H7C4.79086 17 3 15.2091 3 13V7Z",
6
- fill: "#242424"
5
+ fillRule: "evenodd",
6
+ clipRule: "evenodd",
7
+ d: "M3 7C3 4.79086 4.79086 3 7 3H13C15.2091 3 17 4.79086 17 7V13C17 15.2091 15.2091 17 13 17H7C4.79086 17 3 15.2091 3 13V7Z"
7
8
  }), /*#__PURE__*/React.createElement(Path, {
8
9
  d: "M14.8303 7.53033L8.32856 14.0321L4.96967 10.6732L6.03033 9.61252L8.32856 11.9108L13.7697 6.46967L14.8303 7.53033Z",
9
10
  fill: "#FFFFFF"
@@ -1 +1 @@
1
- {"version":3,"sources":["CheckboxChecked.tsx"],"names":["React","Path","createSvgIcon"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,kBAArB;AACA,SAASC,aAAT,QAA8B,aAA9B;AAEA,eAAeA,aAAa,eACxB,oBAAC,KAAD,CAAO,QAAP,qBACI,oBAAC,IAAD;AACI,EAAA,CAAC,EAAC,yHADN;AAEI,EAAA,IAAI,EAAC;AAFT,EADJ,eAKI,oBAAC,IAAD;AACI,EAAA,CAAC,EAAC,mHADN;AAEI,EAAA,IAAI,EAAC;AAFT,EALJ,CADwB,EAWtB,iBAXsB,CAA5B","sourcesContent":["import React from 'react';\nimport { Path } from 'react-native-svg';\nimport { createSvgIcon } from '../../utils';\n\nexport default createSvgIcon(\n <React.Fragment>\n <Path\n d=\"M3 7C3 4.79086 4.79086 3 7 3H13C15.2091 3 17 4.79086 17 7V13C17 15.2091 15.2091 17 13 17H7C4.79086 17 3 15.2091 3 13V7Z\"\n fill=\"#242424\"\n />\n <Path\n d=\"M14.8303 7.53033L8.32856 14.0321L4.96967 10.6732L6.03033 9.61252L8.32856 11.9108L13.7697 6.46967L14.8303 7.53033Z\"\n fill=\"#FFFFFF\"\n />\n </React.Fragment>\n , 'CheckboxChecked');"]}
1
+ {"version":3,"sources":["CheckboxChecked.tsx"],"names":["React","Path","createSvgIcon"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,kBAArB;AACA,SAASC,aAAT,QAA8B,aAA9B;AAEA,eAAeA,aAAa,eACxB,oBAAC,KAAD,CAAO,QAAP,qBACI,oBAAC,IAAD;AACI,EAAA,QAAQ,EAAC,SADb;AAEI,EAAA,QAAQ,EAAC,SAFb;AAGI,EAAA,CAAC,EAAC;AAHN,EADJ,eAMI,oBAAC,IAAD;AACI,EAAA,CAAC,EAAC,mHADN;AAEI,EAAA,IAAI,EAAC;AAFT,EANJ,CADwB,EAYxB,iBAZwB,CAA5B","sourcesContent":["import React from 'react';\nimport { Path } from 'react-native-svg';\nimport { createSvgIcon } from '../../utils';\n\nexport default createSvgIcon(\n <React.Fragment>\n <Path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M3 7C3 4.79086 4.79086 3 7 3H13C15.2091 3 17 4.79086 17 7V13C17 15.2091 15.2091 17 13 17H7C4.79086 17 3 15.2091 3 13V7Z\"\n />\n <Path\n d=\"M14.8303 7.53033L8.32856 14.0321L4.96967 10.6732L6.03033 9.61252L8.32856 11.9108L13.7697 6.46967L14.8303 7.53033Z\"\n fill=\"#FFFFFF\"\n />\n </React.Fragment>,\n 'CheckboxChecked',\n);\n"]}
@@ -2,8 +2,6 @@ import React from 'react';
2
2
  import { Path } from 'react-native-svg';
3
3
  import { createSvgIcon } from '../../utils';
4
4
  export default createSvgIcon( /*#__PURE__*/React.createElement(Path, {
5
- fillRule: "evenodd",
6
- clipRule: "evenodd",
7
5
  d: "M9.51967 13.2803L4.01967 7.78033L5.08033 6.71967L10.05 11.6893L15.0197 6.71967L16.0803 7.78033L10.5803 13.2803L9.51967 13.2803Z"
8
6
  }), 'ChevronDown');
9
7
  //# sourceMappingURL=ChevronDown.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["ChevronDown.tsx"],"names":["React","Path","createSvgIcon"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,kBAArB;AACA,SAASC,aAAT,QAA8B,aAA9B;AAEA,eAAeA,aAAa,eACxB,oBAAC,IAAD;AACI,EAAA,QAAQ,EAAC,SADb;AAEI,EAAA,QAAQ,EAAC,SAFb;AAGI,EAAA,CAAC,EAAC;AAHN,EADwB,EAMtB,aANsB,CAA5B","sourcesContent":["import React from 'react';\nimport { Path } from 'react-native-svg';\nimport { createSvgIcon } from '../../utils';\n\nexport default createSvgIcon(\n <Path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M9.51967 13.2803L4.01967 7.78033L5.08033 6.71967L10.05 11.6893L15.0197 6.71967L16.0803 7.78033L10.5803 13.2803L9.51967 13.2803Z\"\n />\n , 'ChevronDown');"]}
1
+ {"version":3,"sources":["ChevronDown.tsx"],"names":["React","Path","createSvgIcon"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,kBAArB;AACA,SAASC,aAAT,QAA8B,aAA9B;AAEA,eAAeA,aAAa,eACxB,oBAAC,IAAD;AACI,EAAA,CAAC,EAAC;AADN,EADwB,EAIxB,aAJwB,CAA5B","sourcesContent":["import React from 'react';\nimport { Path } from 'react-native-svg';\nimport { createSvgIcon } from '../../utils';\n\nexport default createSvgIcon(\n <Path\n d=\"M9.51967 13.2803L4.01967 7.78033L5.08033 6.71967L10.05 11.6893L15.0197 6.71967L16.0803 7.78033L10.5803 13.2803L9.51967 13.2803Z\"\n />,\n 'ChevronDown',\n);\n"]}
@@ -2,8 +2,6 @@ import React from 'react';
2
2
  import { Path } from 'react-native-svg';
3
3
  import { createSvgIcon } from '../../utils';
4
4
  export default createSvgIcon( /*#__PURE__*/React.createElement(Path, {
5
- fillRule: "evenodd",
6
- clipRule: "evenodd",
7
5
  d: "M6.76965 9.46973L12.2697 3.96973L13.3303 5.03039L8.36064 10.0001L13.3303 14.9697L12.2697 16.0304L6.76965 10.5304L6.76965 9.46973Z"
8
6
  }), 'ChevronLeft');
9
7
  //# sourceMappingURL=ChevronLeft.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["ChevronLeft.tsx"],"names":["React","Path","createSvgIcon"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,kBAArB;AACA,SAASC,aAAT,QAA8B,aAA9B;AAEA,eAAeA,aAAa,eACxB,oBAAC,IAAD;AACI,EAAA,QAAQ,EAAC,SADb;AAEI,EAAA,QAAQ,EAAC,SAFb;AAGI,EAAA,CAAC,EAAC;AAHN,EADwB,EAMtB,aANsB,CAA5B","sourcesContent":["import React from 'react';\nimport { Path } from 'react-native-svg';\nimport { createSvgIcon } from '../../utils';\n\nexport default createSvgIcon(\n <Path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M6.76965 9.46973L12.2697 3.96973L13.3303 5.03039L8.36064 10.0001L13.3303 14.9697L12.2697 16.0304L6.76965 10.5304L6.76965 9.46973Z\"\n />\n , 'ChevronLeft');\n"]}
1
+ {"version":3,"sources":["ChevronLeft.tsx"],"names":["React","Path","createSvgIcon"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,kBAArB;AACA,SAASC,aAAT,QAA8B,aAA9B;AAEA,eAAeA,aAAa,eACxB,oBAAC,IAAD;AACI,EAAA,CAAC,EAAC;AADN,EADwB,EAIxB,aAJwB,CAA5B","sourcesContent":["import React from 'react';\nimport { Path } from 'react-native-svg';\nimport { createSvgIcon } from '../../utils';\n\nexport default createSvgIcon(\n <Path\n d=\"M6.76965 9.46973L12.2697 3.96973L13.3303 5.03039L8.36064 10.0001L13.3303 14.9697L12.2697 16.0304L6.76965 10.5304L6.76965 9.46973Z\"\n />,\n 'ChevronLeft',\n);\n"]}
@@ -2,8 +2,6 @@ import React from 'react';
2
2
  import { Path } from 'react-native-svg';
3
3
  import { createSvgIcon } from '../../utils';
4
4
  export default createSvgIcon( /*#__PURE__*/React.createElement(Path, {
5
- fillRule: "evenodd",
6
- clipRule: "evenodd",
7
5
  d: "M13.3303 10.5303L7.83032 16.0303L6.76966 14.9697L11.7393 10L6.76966 5.03033L7.83032 3.96968L13.3303 9.46967V10.5303Z"
8
6
  }), 'ChevronRight');
9
7
  //# sourceMappingURL=ChevronRight.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["ChevronRight.tsx"],"names":["React","Path","createSvgIcon"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,kBAArB;AACA,SAASC,aAAT,QAA8B,aAA9B;AAEA,eAAeA,aAAa,eACxB,oBAAC,IAAD;AACI,EAAA,QAAQ,EAAC,SADb;AAEI,EAAA,QAAQ,EAAC,SAFb;AAGI,EAAA,CAAC,EAAC;AAHN,EADwB,EAMtB,cANsB,CAA5B","sourcesContent":["import React from 'react';\nimport { Path } from 'react-native-svg';\nimport { createSvgIcon } from '../../utils';\n\nexport default createSvgIcon(\n <Path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M13.3303 10.5303L7.83032 16.0303L6.76966 14.9697L11.7393 10L6.76966 5.03033L7.83032 3.96968L13.3303 9.46967V10.5303Z\"\n />\n , 'ChevronRight');\n"]}
1
+ {"version":3,"sources":["ChevronRight.tsx"],"names":["React","Path","createSvgIcon"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,kBAArB;AACA,SAASC,aAAT,QAA8B,aAA9B;AAEA,eAAeA,aAAa,eACxB,oBAAC,IAAD;AACI,EAAA,CAAC,EAAC;AADN,EADwB,EAIxB,cAJwB,CAA5B","sourcesContent":["import React from 'react';\nimport { Path } from 'react-native-svg';\nimport { createSvgIcon } from '../../utils';\n\nexport default createSvgIcon(\n <Path\n d=\"M13.3303 10.5303L7.83032 16.0303L6.76966 14.9697L11.7393 10L6.76966 5.03033L7.83032 3.96968L13.3303 9.46967V10.5303Z\"\n />,\n 'ChevronRight',\n);\n"]}
@@ -2,8 +2,6 @@ import React from 'react';
2
2
  import { Path } from 'react-native-svg';
3
3
  import { createSvgIcon } from '../../utils';
4
4
  export default createSvgIcon( /*#__PURE__*/React.createElement(Path, {
5
- fillRule: "evenodd",
6
- clipRule: "evenodd",
7
5
  d: "M3.96968 14.9697L5.03034 16.0303L10 11.0607L14.9697 16.0303L16.0303 14.9697L11.0607 10L16.0303 5.03033L14.9697 3.96967L10 8.93934L5.03034 3.96968L3.96968 5.03033L8.93935 10L3.96968 14.9697Z"
8
6
  }), 'Close');
9
7
  //# sourceMappingURL=Close.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["Close.tsx"],"names":["React","Path","createSvgIcon"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,kBAArB;AACA,SAASC,aAAT,QAA8B,aAA9B;AAEA,eAAeA,aAAa,eACxB,oBAAC,IAAD;AACI,EAAA,QAAQ,EAAC,SADb;AAEI,EAAA,QAAQ,EAAC,SAFb;AAGI,EAAA,CAAC,EAAC;AAHN,EADwB,EAMtB,OANsB,CAA5B","sourcesContent":["import React from 'react';\nimport { Path } from 'react-native-svg';\nimport { createSvgIcon } from '../../utils';\n\nexport default createSvgIcon(\n <Path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M3.96968 14.9697L5.03034 16.0303L10 11.0607L14.9697 16.0303L16.0303 14.9697L11.0607 10L16.0303 5.03033L14.9697 3.96967L10 8.93934L5.03034 3.96968L3.96968 5.03033L8.93935 10L3.96968 14.9697Z\"\n />\n , 'Close');\n"]}
1
+ {"version":3,"sources":["Close.tsx"],"names":["React","Path","createSvgIcon"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,kBAArB;AACA,SAASC,aAAT,QAA8B,aAA9B;AAEA,eAAeA,aAAa,eACxB,oBAAC,IAAD;AACI,EAAA,CAAC,EAAC;AADN,EADwB,EAIxB,OAJwB,CAA5B","sourcesContent":["import React from 'react';\nimport { Path } from 'react-native-svg';\nimport { createSvgIcon } from '../../utils';\n\nexport default createSvgIcon(\n <Path\n d=\"M3.96968 14.9697L5.03034 16.0303L10 11.0607L14.9697 16.0303L16.0303 14.9697L11.0607 10L16.0303 5.03033L14.9697 3.96967L10 8.93934L5.03034 3.96968L3.96968 5.03033L8.93935 10L3.96968 14.9697Z\"\n />,\n 'Close',\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["Radio.tsx"],"names":["React","Path","createSvgIcon"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,kBAArB;AACA,SAASC,aAAT,QAA8B,aAA9B;AAEA,eAAeA,aAAa,eACxB,oBAAC,IAAD;AACI,EAAA,CAAC,EAAC;AADN,EADwB,EAGtB,OAHsB,CAA5B","sourcesContent":["import React from 'react';\nimport { Path } from 'react-native-svg';\nimport { createSvgIcon } from '../../utils';\n\nexport default createSvgIcon(\n <Path\n d=\"M10 16.5C6.41015 16.5 3.5 13.5899 3.5 10C3.5 6.41015 6.41015 3.5 10 3.5C13.5899 3.5 16.5 6.41015 16.5 10C16.5 13.5899 13.5899 16.5 10 16.5ZM10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18Z\"/>\n , 'Radio');"]}
1
+ {"version":3,"sources":["Radio.tsx"],"names":["React","Path","createSvgIcon"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,kBAArB;AACA,SAASC,aAAT,QAA8B,aAA9B;AAEA,eAAeA,aAAa,eACxB,oBAAC,IAAD;AACI,EAAA,CAAC,EAAC;AADN,EADwB,EAIxB,OAJwB,CAA5B","sourcesContent":["import React from 'react';\nimport { Path } from 'react-native-svg';\nimport { createSvgIcon } from '../../utils';\n\nexport default createSvgIcon(\n <Path\n d=\"M10 16.5C6.41015 16.5 3.5 13.5899 3.5 10C3.5 6.41015 6.41015 3.5 10 3.5C13.5899 3.5 16.5 6.41015 16.5 10C16.5 13.5899 13.5899 16.5 10 16.5ZM10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18Z\"\n />,\n 'Radio',\n);\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["RadioChecked.tsx"],"names":["React","Path","createSvgIcon"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,kBAArB;AACA,SAASC,aAAT,QAA8B,aAA9B;AAEA,eAAeA,aAAa,eACxB,oBAAC,IAAD;AACI,EAAA,CAAC,EAAC;AADN,EADwB,EAGtB,cAHsB,CAA5B","sourcesContent":["import React from 'react';\nimport { Path } from 'react-native-svg';\nimport { createSvgIcon } from '../../utils';\n\nexport default createSvgIcon(\n <Path\n d=\"M16.5 10C16.5 6.41015 13.5899 3.5 10 3.5C6.41015 3.5 3.5 6.41015 3.5 10C3.5 13.5899 6.41015 16.5 10 16.5C13.5899 16.5 16.5 13.5899 16.5 10ZM18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM10 15C7.23858 15 5 12.7614 5 10C5 7.23858 7.23858 5 10 5C12.7614 5 15 7.23858 15 10C15 12.7614 12.7614 15 10 15Z\"/>\n , 'RadioChecked');"]}
1
+ {"version":3,"sources":["RadioChecked.tsx"],"names":["React","Path","createSvgIcon"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,kBAArB;AACA,SAASC,aAAT,QAA8B,aAA9B;AAEA,eAAeA,aAAa,eACxB,oBAAC,IAAD;AACI,EAAA,CAAC,EAAC;AADN,EADwB,EAIxB,cAJwB,CAA5B","sourcesContent":["import React from 'react';\nimport { Path } from 'react-native-svg';\nimport { createSvgIcon } from '../../utils';\n\nexport default createSvgIcon(\n <Path\n d=\"M16.5 10C16.5 6.41015 13.5899 3.5 10 3.5C6.41015 3.5 3.5 6.41015 3.5 10C3.5 13.5899 6.41015 16.5 10 16.5C13.5899 16.5 16.5 13.5899 16.5 10ZM18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM10 15C7.23858 15 5 12.7614 5 10C5 7.23858 7.23858 5 10 5C12.7614 5 15 7.23858 15 10C15 12.7614 12.7614 15 10 15Z\"\n />,\n 'RadioChecked',\n);\n"]}
@@ -1,4 +1,3 @@
1
- export { default as cloneSvgIcon } from './cloneSvgIcon';
2
1
  export { default as createFontStyle } from './createFontStyle';
3
2
  export { default as EdgeInsets } from './EdgeInsets';
4
3
  export { default as PredefinedStyles } from './PredefinedStyles';
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["default","cloneSvgIcon","createFontStyle","EdgeInsets","PredefinedStyles","styled","css","StyleSheet","ThemeProvider","useTheme"],"mappings":"AAAA,SAASA,OAAO,IAAIC,YAApB,QAAwC,gBAAxC;AACA,SAASD,OAAO,IAAIE,eAApB,QAA2C,mBAA3C;AACA,SAASF,OAAO,IAAIG,UAApB,QAAsC,cAAtC;AAEA,SAASH,OAAO,IAAII,gBAApB,QAA4C,oBAA5C;AACA,SAASJ,OAAO,IAAIK,MAApB,EAA4BC,GAA5B,QAAuC,UAAvC;AACA,SAASN,OAAO,IAAIO,UAApB,QAAsC,cAAtC;AACA,SAASP,OAAO,IAAIQ,aAApB,QAAyC,iBAAzC;AACA,SAASR,OAAO,IAAIS,QAApB,QAAoC,YAApC","sourcesContent":["export { default as cloneSvgIcon } from './cloneSvgIcon';\nexport { default as createFontStyle } from './createFontStyle';\nexport { default as EdgeInsets } from './EdgeInsets';\nexport type { EdgeInsetsType } from './EdgeInsets';\nexport { default as PredefinedStyles } from './PredefinedStyles';\nexport { default as styled, css } from './styled';\nexport { default as StyleSheet } from './StyleSheet';\nexport { default as ThemeProvider } from './ThemeProvider';\nexport { default as useTheme } from './useTheme';\n"]}
1
+ {"version":3,"sources":["index.ts"],"names":["default","createFontStyle","EdgeInsets","PredefinedStyles","styled","css","StyleSheet","ThemeProvider","useTheme"],"mappings":"AAAA,SAASA,OAAO,IAAIC,eAApB,QAA2C,mBAA3C;AACA,SAASD,OAAO,IAAIE,UAApB,QAAsC,cAAtC;AAEA,SAASF,OAAO,IAAIG,gBAApB,QAA4C,oBAA5C;AACA,SAASH,OAAO,IAAII,MAApB,EAA4BC,GAA5B,QAAuC,UAAvC;AACA,SAASL,OAAO,IAAIM,UAApB,QAAsC,cAAtC;AACA,SAASN,OAAO,IAAIO,aAApB,QAAyC,iBAAzC;AACA,SAASP,OAAO,IAAIQ,QAApB,QAAoC,YAApC","sourcesContent":["export { default as createFontStyle } from './createFontStyle';\nexport { default as EdgeInsets } from './EdgeInsets';\nexport type { EdgeInsetsType } from './EdgeInsets';\nexport { default as PredefinedStyles } from './PredefinedStyles';\nexport { default as styled, css } from './styled';\nexport { default as StyleSheet } from './StyleSheet';\nexport { default as ThemeProvider } from './ThemeProvider';\nexport { default as useTheme } from './useTheme';\n"]}
@@ -0,0 +1,6 @@
1
+ import { cloneElement } from 'react';
2
+ export default function cloneElementSafely(element, props) {
3
+ return element ? /*#__PURE__*/cloneElement(element, props) : null;
4
+ }
5
+ ;
6
+ //# sourceMappingURL=cloneElementSafely.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["cloneElementSafely.ts"],"names":["cloneElement","cloneElementSafely","element","props"],"mappings":"AAAA,SAASA,YAAT,QAA2C,OAA3C;AAIA,eAAe,SAASC,kBAAT,CAA4BC,OAA5B,EAAwDC,KAAxD,EAAwF;AACnG,SAAOD,OAAO,gBACRF,YAAY,CAACE,OAAD,EAAUC,KAAV,CADJ,GAER,IAFN;AAGH;AAAA","sourcesContent":["import { cloneElement, ReactElement } from 'react';\n\ntype FalsyReactElement = ReactElement | null | undefined;\n\nexport default function cloneElementSafely(element: FalsyReactElement, props?: any): FalsyReactElement {\n return element\n ? cloneElement(element, props)\n : null;\n};\n"]}
@@ -1,2 +1,3 @@
1
+ export { default as cloneElementSafely } from './cloneElementSafely';
1
2
  export { default as createSvgIcon } from './createSvgIcon';
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["default","createSvgIcon"],"mappings":"AAAA,SAASA,OAAO,IAAIC,aAApB,QAAyC,iBAAzC","sourcesContent":["export { default as createSvgIcon } from './createSvgIcon';\n"]}
1
+ {"version":3,"sources":["index.ts"],"names":["default","cloneElementSafely","createSvgIcon"],"mappings":"AAAA,SAASA,OAAO,IAAIC,kBAApB,QAA8C,sBAA9C;AACA,SAASD,OAAO,IAAIE,aAApB,QAAyC,iBAAzC","sourcesContent":["export { default as cloneElementSafely } from './cloneElementSafely';\nexport { default as createSvgIcon } from './createSvgIcon';\n"]}
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { ButtonBaseProps } from '../ButtonBase';
3
- import type { OverridableComponentProps } from '../types';
4
- export declare type ButtonColor = 'primary' | 'secondary' | 'tertiary' | 'warning' | 'accent';
3
+ import type { OverridableComponentProps, CommonComponentColor } from '../types';
4
+ export declare type ButtonColor = CommonComponentColor;
5
5
  export declare type ButtonSize = 'small' | 'medium';
6
6
  export declare type ButtonVariant = 'contained' | 'outlined' | 'text';
7
7
  export default interface ButtonProps extends OverridableComponentProps<ButtonBaseProps, {
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
- import type { OverridableComponentProps } from '../types';
2
+ import type { CommonComponentColor, OverridableComponentProps } from '../types';
3
3
  import type { ButtonBaseProps } from '../ButtonBase';
4
4
  declare type BaseProps = Omit<ButtonBaseProps, 'onPress'>;
5
+ export declare type CheckboxColor = CommonComponentColor;
5
6
  export default interface CheckboxProps extends OverridableComponentProps<BaseProps, {
6
7
  /**
7
8
  * If `true`, the component is checked.
@@ -12,6 +13,11 @@ export default interface CheckboxProps extends OverridableComponentProps<BasePro
12
13
  * The checked Icon which is replaced.
13
14
  */
14
15
  checkedIcon?: React.ReactElement;
16
+ /**
17
+ * The color of the component. It supports those theme colors that make sense for this component.
18
+ * @default 'primary'
19
+ */
20
+ color?: CheckboxColor;
15
21
  /**
16
22
  * If `true`, the checkbox is disabled.
17
23
  * @default false
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { ButtonBaseProps } from '../ButtonBase';
3
- import type { OverridableComponentProps } from '../types';
3
+ import type { OverridableComponentProps, CommonComponentColor } from '../types';
4
4
  import type { Elevation } from '@fountain-ui/styles';
5
- export declare type FabColor = 'primary' | 'secondary' | 'tertiary' | 'warning' | 'accent' | 'surface';
5
+ export declare type FabColor = CommonComponentColor | 'surface';
6
6
  export declare type FabSize = 'small' | 'medium';
7
7
  export declare type FabVariant = 'circular' | 'extended';
8
8
  export default interface FabProps extends OverridableComponentProps<ButtonBaseProps, {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { ButtonBaseProps } from '../ButtonBase';
3
- import type { OverridableComponentProps } from '../types';
4
- export declare type IconButtonColor = 'primary' | 'secondary' | 'tertiary' | 'warning' | 'accent';
3
+ import type { CommonComponentColor, OverridableComponentProps } from '../types';
4
+ export declare type IconButtonColor = CommonComponentColor;
5
5
  export declare type IconButtonSize = 'medium' | 'large' | 'small' | 'tiny';
6
6
  export default interface IconButtonProps extends OverridableComponentProps<ButtonBaseProps, {
7
7
  /**
@@ -25,6 +25,14 @@ export default interface ImageProps extends OverridableComponentProps<ViewProps,
25
25
  * @default 'lazy'
26
26
  */
27
27
  loading?: Loading;
28
+ /**
29
+ * error event handler
30
+ */
31
+ onError?: () => void;
32
+ /**
33
+ * image loaded event handler
34
+ */
35
+ onLoad?: () => void;
28
36
  /**
29
37
  * The children on top this image.
30
38
  */
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import RNSlider from '@react-native-community/slider';
3
3
  import type SliderProps from './SliderProps';
4
- declare const _default: React.ForwardRefExoticComponent<Pick<SliderProps, "style" | "pointerEvents" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "disabled" | "hitSlop" | "onLayout" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "value" | "inverted" | "vertical" | "maximumTrackTintColor" | "maximumValue" | "minimumTrackTintColor" | "minimumValue" | "onSlidingStart" | "onSlidingComplete" | "onValueChange" | "step" | "accessibilityUnits" | "accessibilityIncrements" | "maximumTrackImage" | "minimumTrackImage" | "tapToSeek" | "thumbImage" | "trackImage" | "thumbTintColor"> & React.RefAttributes<RNSlider>>;
4
+ declare const _default: React.ForwardRefExoticComponent<Pick<SliderProps, "testID" | "style" | "onLayout" | "value" | "pointerEvents" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "disabled" | "hitSlop" | "removeClippedSubviews" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "inverted" | "vertical" | "maximumTrackTintColor" | "maximumValue" | "minimumTrackTintColor" | "minimumValue" | "onSlidingStart" | "onSlidingComplete" | "onValueChange" | "step" | "accessibilityUnits" | "accessibilityIncrements" | "maximumTrackImage" | "minimumTrackImage" | "tapToSeek" | "thumbImage" | "trackImage" | "thumbTintColor"> & React.RefAttributes<RNSlider>>;
5
5
  export default _default;
@@ -1,20 +1,21 @@
1
1
  import React from 'react';
2
2
  import type { SvgProps } from 'react-native-svg';
3
- import type { OverridableComponentProps } from '../types';
3
+ import type { CommonComponentColor, OverridableComponentProps } from '../types';
4
+ export declare type SvgIconColor = CommonComponentColor;
4
5
  export default interface SvgIconProps extends OverridableComponentProps<SvgProps, {
5
6
  /**
6
7
  * Node passed into the SVG element.
7
8
  */
8
9
  children: React.ReactNode;
9
10
  /**
10
- * The color of the component.
11
+ * The color of the component. It supports those theme colors that make sense for this component.
12
+ * @default 'primary'
11
13
  */
12
- color?: SvgProps['color'];
14
+ color?: SvgIconColor;
13
15
  /**
14
- * The fill color of the component.
15
- * @default '#000'
16
+ * The color of the component. It is treated as higher priority than `color` prop if provided.
16
17
  */
17
- fill?: SvgProps['fill'];
18
+ colorValue?: string;
18
19
  /**
19
20
  * The height applied to the icon.
20
21
  * @default 24
@@ -1,6 +1,6 @@
1
1
  import { SwitchProps as RNSwitchProps } from 'react-native';
2
- import type { OverridableComponentProps } from '../types';
3
- export declare type SwitchColor = 'primary' | 'secondary' | 'tertiary' | 'warning' | 'error' | 'accent';
2
+ import type { CommonComponentColor, OverridableComponentProps } from '../types';
3
+ export declare type SwitchColor = CommonComponentColor;
4
4
  export default interface SwitchProps extends OverridableComponentProps<RNSwitchProps, {
5
5
  /**
6
6
  * If `true`, the component is checked.
@@ -4,7 +4,6 @@ declare type ViewStyleProp = Array<ViewStyle | RegisteredStyle<ViewStyle> | Fals
4
4
  declare type OnScroll = ScrollViewProps['onScroll'];
5
5
  declare type OnLayoutCallback = ViewProps['onLayout'];
6
6
  export interface Options {
7
- backgroundColor?: string;
8
7
  fadeInBeginY?: number | ((endY: number, appBarHeight: number) => number);
9
8
  fadeInEndY?: number | ((appBarHeight: number) => number);
10
9
  floating?: boolean;
@@ -1,15 +1,26 @@
1
1
  import React from 'react';
2
2
  declare const _default: React.MemoExoticComponent<{
3
3
  (props: {
4
- readonly style?: import("@emotion/native").ReactNativeStyle | import("@emotion/native").ReactNativeStyle[] | undefined;
5
- readonly width?: import("react-native-svg").NumberProp | undefined;
4
+ readonly color?: import("../..").CommonComponentColor | undefined;
5
+ fill?: import("react-native-svg").Color | undefined;
6
+ testID?: string | undefined;
7
+ opacity?: import("react-native-svg").NumberProp | undefined;
6
8
  readonly height?: import("react-native-svg").NumberProp | undefined;
9
+ readonly width?: import("react-native-svg").NumberProp | undefined;
10
+ transform?: string | import("react-native-svg").TransformObject | import("react-native-svg").ColumnMajorTransformMatrix | undefined;
11
+ rotation?: import("react-native-svg").NumberProp | undefined;
12
+ scaleX?: import("react-native-svg").NumberProp | undefined;
13
+ scaleY?: import("react-native-svg").NumberProp | undefined;
14
+ translateX?: import("react-native-svg").NumberProp | undefined;
15
+ translateY?: import("react-native-svg").NumberProp | undefined;
16
+ readonly style?: import("@emotion/native").ReactNativeStyle | import("@emotion/native").ReactNativeStyle[] | undefined;
17
+ onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | undefined;
18
+ scale?: import("react-native-svg").NumberArray | undefined;
19
+ skewX?: import("react-native-svg").NumberProp | undefined;
20
+ skewY?: import("react-native-svg").NumberProp | undefined;
21
+ title?: string | undefined;
7
22
  readonly viewBox?: string | undefined;
8
23
  preserveAspectRatio?: string | undefined;
9
- readonly color?: import("react-native-svg").Color | undefined;
10
- title?: string | undefined;
11
- opacity?: import("react-native-svg").NumberProp | undefined;
12
- readonly fill?: import("react-native-svg").Color | undefined;
13
24
  fillOpacity?: import("react-native-svg").NumberProp | undefined;
14
25
  fillRule?: import("react-native-svg").FillRule | undefined;
15
26
  stroke?: import("react-native-svg").Color | undefined;
@@ -22,23 +33,14 @@ declare const _default: React.MemoExoticComponent<{
22
33
  strokeMiterlimit?: import("react-native-svg").NumberProp | undefined;
23
34
  clipRule?: import("react-native-svg").FillRule | undefined;
24
35
  clipPath?: string | undefined;
25
- transform?: string | import("react-native-svg").TransformObject | import("react-native-svg").ColumnMajorTransformMatrix | undefined;
26
36
  translate?: import("react-native-svg").NumberArray | undefined;
27
- translateX?: import("react-native-svg").NumberProp | undefined;
28
- translateY?: import("react-native-svg").NumberProp | undefined;
29
37
  origin?: import("react-native-svg").NumberArray | undefined;
30
38
  originX?: import("react-native-svg").NumberProp | undefined;
31
39
  originY?: import("react-native-svg").NumberProp | undefined;
32
- scale?: import("react-native-svg").NumberArray | undefined;
33
- scaleX?: import("react-native-svg").NumberProp | undefined;
34
- scaleY?: import("react-native-svg").NumberProp | undefined;
35
40
  skew?: import("react-native-svg").NumberArray | undefined;
36
- skewX?: import("react-native-svg").NumberProp | undefined;
37
- skewY?: import("react-native-svg").NumberProp | undefined;
38
- rotation?: import("react-native-svg").NumberProp | undefined;
39
41
  x?: import("react-native-svg").NumberArray | undefined;
40
42
  y?: import("react-native-svg").NumberArray | undefined;
41
- vectorEffect?: "none" | "inherit" | "non-scaling-stroke" | "nonScalingStroke" | "default" | "uri" | undefined;
43
+ vectorEffect?: "none" | "inherit" | "default" | "non-scaling-stroke" | "nonScalingStroke" | "uri" | undefined;
42
44
  pointerEvents?: "auto" | "none" | "box-none" | "box-only" | undefined;
43
45
  onStartShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
44
46
  onMoveShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
@@ -67,9 +69,7 @@ declare const _default: React.MemoExoticComponent<{
67
69
  markerEnd?: string | undefined;
68
70
  mask?: string | undefined;
69
71
  hitSlop?: import("react-native").Insets | undefined;
70
- onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | undefined;
71
72
  removeClippedSubviews?: boolean | undefined;
72
- testID?: string | undefined;
73
73
  nativeID?: string | undefined;
74
74
  collapsable?: boolean | undefined;
75
75
  needsOffscreenAlphaCompositing?: boolean | undefined;
@@ -107,6 +107,7 @@ declare const _default: React.MemoExoticComponent<{
107
107
  onAccessibilityTap?: (() => void) | undefined;
108
108
  onMagicTap?: (() => void) | undefined;
109
109
  accessibilityIgnoresInvertColors?: boolean | undefined;
110
+ readonly colorValue?: string | undefined;
110
111
  }): JSX.Element;
111
112
  displayName: string;
112
113
  }>;