@fountain-ui/core 1.17.0 → 1.19.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.
Files changed (50) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/build/commonjs/Modal/Modal.js +10 -1
  3. package/build/commonjs/Modal/Modal.js.map +1 -1
  4. package/build/commonjs/Modal/index.js +10 -2
  5. package/build/commonjs/Modal/index.js.map +1 -1
  6. package/build/commonjs/Pagination/Pagination.js +2 -2
  7. package/build/commonjs/Pagination/Pagination.js.map +1 -1
  8. package/build/commonjs/TextField/OutlinedTextField.js +1 -0
  9. package/build/commonjs/TextField/OutlinedTextField.js.map +1 -1
  10. package/build/commonjs/index.js +7 -0
  11. package/build/commonjs/index.js.map +1 -1
  12. package/build/commonjs/internal/icons/ChevronLeft.js +23 -0
  13. package/build/commonjs/internal/icons/ChevronLeft.js.map +1 -0
  14. package/build/commonjs/internal/icons/ChevronRight.js +23 -0
  15. package/build/commonjs/internal/icons/ChevronRight.js.map +1 -0
  16. package/build/commonjs/internal/icons/index.js +16 -0
  17. package/build/commonjs/internal/icons/index.js.map +1 -1
  18. package/build/module/Modal/Modal.js +6 -1
  19. package/build/module/Modal/Modal.js.map +1 -1
  20. package/build/module/Modal/index.js +1 -1
  21. package/build/module/Modal/index.js.map +1 -1
  22. package/build/module/Pagination/Pagination.js +1 -1
  23. package/build/module/Pagination/Pagination.js.map +1 -1
  24. package/build/module/TextField/OutlinedTextField.js +1 -0
  25. package/build/module/TextField/OutlinedTextField.js.map +1 -1
  26. package/build/module/index.js +1 -1
  27. package/build/module/index.js.map +1 -1
  28. package/build/module/internal/icons/ChevronLeft.js +9 -0
  29. package/build/module/internal/icons/ChevronLeft.js.map +1 -0
  30. package/build/module/internal/icons/ChevronRight.js +9 -0
  31. package/build/module/internal/icons/ChevronRight.js.map +1 -0
  32. package/build/module/internal/icons/index.js +2 -0
  33. package/build/module/internal/icons/index.js.map +1 -1
  34. package/build/typescript/Modal/Modal.d.ts +11 -0
  35. package/build/typescript/Modal/ModalProps.d.ts +2 -1
  36. package/build/typescript/Modal/index.d.ts +2 -1
  37. package/build/typescript/index.d.ts +2 -1
  38. package/build/typescript/internal/icons/ChevronLeft.d.ts +113 -0
  39. package/build/typescript/internal/icons/ChevronRight.d.ts +113 -0
  40. package/build/typescript/internal/icons/index.d.ts +2 -0
  41. package/package.json +3 -3
  42. package/src/Modal/Modal.tsx +15 -1
  43. package/src/Modal/ModalProps.ts +2 -1
  44. package/src/Modal/index.ts +3 -2
  45. package/src/Pagination/Pagination.tsx +1 -1
  46. package/src/TextField/OutlinedTextField.tsx +1 -0
  47. package/src/index.ts +2 -1
  48. package/src/internal/icons/ChevronLeft.tsx +11 -0
  49. package/src/internal/icons/ChevronRight.tsx +11 -0
  50. package/src/internal/icons/index.ts +2 -0
@@ -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","outline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AQI,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","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;AA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IADd;AAEI,IAAA,OAAO,EAAEmE;AAFb,IADJ,CADC,GAOD,IA5CR,CADJ;AAgDH,CAxKyB,CAA1B;AA0KA,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 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"]}
@@ -68,7 +68,7 @@ export { default as Menu } from './Menu';
68
68
  export * from './Menu';
69
69
  export { default as MenuItem } from './MenuItem';
70
70
  export * from './MenuItem';
71
- export { default as Modal } from './Modal';
71
+ export { default as Modal, createModalCloseEvent } from './Modal';
72
72
  export * from './Modal';
73
73
  export { default as Pagination } from './Pagination';
74
74
  export * from './Pagination';
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["default","Accordion","AppBar","AspectRatio","Avatar","Badge","Button","ButtonBase","Card","CardActions","CardContent","CardMedia","Checkbox","Chip","CircularProgress","Column","Dialog","DialogActions","DialogContent","DialogMedia","DialogTitle","Divider","Fab","IconButton","Image","Link","List","ListItem","ListItemIcon","ListItemSecondaryAction","ListItemText","ListSubheader","Menu","MenuItem","Modal","Pagination","PaginationItem","Paper","Portal","Radio","RadioGroup","Row","Slide","Slider","Snackbar","SnackbarContent","Spacer","SvgIcon","Switch","Tab","TabBase","Tabs","TextField","Toolbar","Tooltip","Typography"],"mappings":"AAAA,cAAc,UAAd;AAEA,cAAc,SAAd;AAEA,cAAc,SAAd;AAEA,cAAc,SAAd;AAEA,SAASA,OAAO,IAAIC,SAApB,QAAqC,aAArC;AACA,cAAc,aAAd;AAEA,SAASD,OAAO,IAAIE,MAApB,QAAkC,UAAlC;AACA,cAAc,UAAd;AAEA,SAASF,OAAO,IAAIG,WAApB,QAAuC,eAAvC;AACA,cAAc,eAAd;AAEA,SAASH,OAAO,IAAII,MAApB,QAAkC,UAAlC;AACA,cAAc,UAAd;AAEA,SAASJ,OAAO,IAAIK,KAApB,QAAiC,SAAjC;AACA,cAAc,SAAd;AAEA,SAASL,OAAO,IAAIM,MAApB,QAAkC,UAAlC;AACA,cAAc,UAAd;AAEA,SAASN,OAAO,IAAIO,UAApB,QAAsC,cAAtC;AACA,cAAc,cAAd;AAEA,SAASP,OAAO,IAAIQ,IAApB,QAAgC,QAAhC;AACA,cAAc,QAAd;AAEA,SAASR,OAAO,IAAIS,WAApB,QAAuC,eAAvC;AACA,cAAc,eAAd;AAEA,SAAST,OAAO,IAAIU,WAApB,QAAuC,eAAvC;AACA,cAAc,eAAd;AAEA,SAASV,OAAO,IAAIW,SAApB,QAAqC,aAArC;AACA,cAAc,aAAd;AAEA,SAASX,OAAO,IAAIY,QAApB,QAAoC,YAApC;AACA,cAAc,YAAd;AAEA,SAASZ,OAAO,IAAIa,IAApB,QAAgC,QAAhC;AACA,cAAc,QAAd;AAEA,SAASb,OAAO,IAAIc,gBAApB,QAA4C,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nD,OAAO,IAAIoD,SAApB,QAAqC,aAArC;AACA,cAAc,aAAd;AAEA,SAASpD,OAAO,IAAIqD,OAApB,QAAmC,WAAnC;AACA,cAAc,WAAd;AAEA,SAASrD,OAAO,IAAIsD,OAApB,QAAmC,WAAnC;AACA,cAAc,WAAd;AAEA,SAAStD,OAAO,IAAIuD,UAApB,QAAsC,cAAtC;AACA,cAAc,cAAd;AAEA,cAAc,YAAd","sourcesContent":["export * from './styles';\n\nexport * from './types';\n\nexport * from './hooks';\n\nexport * from './utils';\n\nexport { default as Accordion } from './Accordion';\nexport * from './Accordion';\n\nexport { default as AppBar } from './AppBar';\nexport * from './AppBar';\n\nexport { default as AspectRatio } from './AspectRatio';\nexport * from './AspectRatio';\n\nexport { default as Avatar } from './Avatar';\nexport * from './Avatar';\n\nexport { default as Badge } from './Badge';\nexport * from './Badge';\n\nexport { default as Button } from './Button';\nexport * from './Button';\n\nexport { default as ButtonBase } from './ButtonBase';\nexport * from './ButtonBase';\n\nexport { default as Card } from './Card';\nexport * from './Card';\n\nexport { default as CardActions } from './CardActions';\nexport * from './CardActions';\n\nexport { default as CardContent } from './CardContent';\nexport * from './CardContent';\n\nexport { default as CardMedia } from './CardMedia';\nexport * from './CardMedia';\n\nexport { default as Checkbox } from './Checkbox';\nexport * from './Checkbox';\n\nexport { default as Chip } from './Chip';\nexport * from './Chip';\n\nexport { default as CircularProgress } from './CircularProgress';\nexport * from './CircularProgress';\n\nexport { default as Column } from './Column';\nexport * from './Column';\n\nexport { default as Dialog } from './Dialog';\nexport * from './Dialog';\n\nexport { default as DialogActions } from './DialogActions';\nexport * from './DialogActions';\n\nexport { default as DialogContent } from './DialogContent';\nexport * from './DialogContent';\n\nexport { default as DialogMedia } from './DialogMedia';\nexport * from './DialogMedia';\n\nexport { default as DialogTitle } from './DialogTitle';\nexport * from './DialogTitle';\n\nexport { default as Divider } from './Divider';\nexport * from './Divider';\n\nexport { default as Fab } from './Fab';\nexport * from './Fab';\n\nexport { default as IconButton } from './IconButton';\nexport * from './IconButton';\n\nexport { default as Image } from './Image';\nexport * from './Image';\n\nexport { default as Link } from './Link';\nexport * from './Link';\n\nexport { default as List } from './List';\nexport * from './List';\n\nexport { default as ListItem } from './ListItem';\nexport * from './ListItem';\n\nexport { default as ListItemIcon } from './ListItemIcon';\nexport * from './ListItemIcon';\n\nexport { default as ListItemSecondaryAction } from './ListItemSecondaryAction';\nexport * from './ListItemSecondaryAction';\n\nexport { default as ListItemText } from './ListItemText';\nexport * from './ListItemText';\n\nexport { default as ListSubheader } from './ListSubheader';\nexport * from './ListSubheader';\n\nexport { default as Menu } from './Menu';\nexport * from './Menu';\n\nexport { default as MenuItem } from './MenuItem';\nexport * from './MenuItem';\n\nexport { default as Modal } from './Modal';\nexport * from './Modal';\n\nexport { default as Pagination } from './Pagination';\nexport * from './Pagination';\n\nexport { default as PaginationItem } from './PaginationItem';\nexport * from './PaginationItem';\n\nexport { default as Paper } from './Paper';\nexport * from './Paper';\n\nexport { default as Portal } from './Portal';\nexport * from './Portal';\n\nexport { default as Radio } from './Radio';\nexport * from './Radio';\n\nexport { default as RadioGroup } from './RadioGroup';\nexport * from './RadioGroup';\n\nexport { default as Row } from './Row';\nexport * from './Row';\n\nexport { default as Slide } from './Slide';\nexport * from './Slide';\n\nexport { default as Slider } from './Slider';\nexport * from './Slider';\n\nexport { default as Snackbar } from './Snackbar';\nexport * from './Snackbar';\n\nexport { default as SnackbarContent } from './SnackbarContent';\nexport * from './SnackbarContent';\n\nexport { default as Spacer } from './Spacer';\nexport * from './Spacer';\n\nexport { default as SvgIcon } from './SvgIcon';\nexport * from './SvgIcon';\n\nexport { default as Switch } from './Switch';\nexport * from './Switch';\n\nexport { default as Tab } from './Tab';\nexport * from './Tab';\n\nexport { default as TabBase } from './TabBase';\nexport * from './TabBase';\n\nexport { default as Tabs } from './Tabs';\nexport * from './Tabs';\n\nexport { default as TextField } from './TextField';\nexport * from './TextField';\n\nexport { default as Toolbar } from './Toolbar';\nexport * from './Toolbar';\n\nexport { default as Tooltip } from './Tooltip';\nexport * from './Tooltip';\n\nexport { default as Typography } from './Typography';\nexport * from './Typography';\n\nexport * from './animated';\n"]}
1
+ {"version":3,"sources":["index.ts"],"names":["default","Accordion","AppBar","AspectRatio","Avatar","Badge","Button","ButtonBase","Card","CardActions","CardContent","CardMedia","Checkbox","Chip","CircularProgress","Column","Dialog","DialogActions","DialogContent","DialogMedia","DialogTitle","Divider","Fab","IconButton","Image","Link","List","ListItem","ListItemIcon","ListItemSecondaryAction","ListItemText","ListSubheader","Menu","MenuItem","Modal","createModalCloseEvent","Pagination","PaginationItem","Paper","Portal","Radio","RadioGroup","Row","Slide","Slider","Snackbar","SnackbarContent","Spacer","SvgIcon","Switch","Tab","TabBase","Tabs","TextField","Toolbar","Tooltip","Typography"],"mappings":"AAAA,cAAc,UAAd;AAEA,cAAc,SAAd;AAEA,cAAc,SAAd;AAEA,cAAc,SAAd;AAEA,SAASA,OAAO,IAAIC,SAApB,QAAqC,aAArC;AACA,cAAc,aAAd;AAEA,SAASD,OAAO,IAAIE,MAApB,QAAkC,UAAlC;AACA,cAAc,UAAd;AAEA,SAASF,OAAO,IAAIG,WAApB,QAAuC,eAAvC;AACA,cAAc,eAAd;AAEA,SAASH,OAAO,IAAII,MAApB,QAAkC,UAAlC;AACA,cAAc,UAAd;AAEA,SAASJ,OAAO,IAAIK,KAApB,QAAiC,SAAjC;AACA,cAAc,SAAd;AAEA,SAASL,OAAO,IAAIM,MAApB,QAAkC,UAAlC;AACA,cAAc,UAAd;AAEA,SAASN,OAAO,IAAIO,UAApB,QAAsC,cAAtC;AACA,cAAc,cAAd;AAEA,SAASP,OAAO,IAAIQ,IAApB,QAAgC,QAAhC;AACA,cAAc,QAAd;AAEA,SAASR,OAAO,IAAIS,WAApB,QAAuC,eAAvC;AACA,cAAc,eAAd;AAEA,SAAST,OAAO,IAAIU,WAApB,QAAuC,eAAvC;AACA,cAAc,eAAd;AAEA,SAASV,OAAO,IAAIW,SAApB,Q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Ac,UAAd;AAEA,SAASjD,OAAO,IAAIkD,GAApB,QAA+B,OAA/B;AACA,cAAc,OAAd;AAEA,SAASlD,OAAO,IAAImD,OAApB,QAAmC,WAAnC;AACA,cAAc,WAAd;AAEA,SAASnD,OAAO,IAAIoD,IAApB,QAAgC,QAAhC;AACA,cAAc,QAAd;AAEA,SAASpD,OAAO,IAAIqD,SAApB,QAAqC,aAArC;AACA,cAAc,aAAd;AAEA,SAASrD,OAAO,IAAIsD,OAApB,QAAmC,WAAnC;AACA,cAAc,WAAd;AAEA,SAAStD,OAAO,IAAIuD,OAApB,QAAmC,WAAnC;AACA,cAAc,WAAd;AAEA,SAASvD,OAAO,IAAIwD,UAApB,QAAsC,cAAtC;AACA,cAAc,cAAd;AAEA,cAAc,YAAd","sourcesContent":["export * from './styles';\n\nexport * from './types';\n\nexport * from './hooks';\n\nexport * from './utils';\n\nexport { default as Accordion } from './Accordion';\nexport * from './Accordion';\n\nexport { default as AppBar } from './AppBar';\nexport * from './AppBar';\n\nexport { default as AspectRatio } from './AspectRatio';\nexport * from './AspectRatio';\n\nexport { default as Avatar } from './Avatar';\nexport * from './Avatar';\n\nexport { default as Badge } from './Badge';\nexport * from './Badge';\n\nexport { default as Button } from './Button';\nexport * from './Button';\n\nexport { default as ButtonBase } from './ButtonBase';\nexport * from './ButtonBase';\n\nexport { default as Card } from './Card';\nexport * from './Card';\n\nexport { default as CardActions } from './CardActions';\nexport * from './CardActions';\n\nexport { default as CardContent } from './CardContent';\nexport * from './CardContent';\n\nexport { default as CardMedia } from './CardMedia';\nexport * from './CardMedia';\n\nexport { default as Checkbox } from './Checkbox';\nexport * from './Checkbox';\n\nexport { default as Chip } from './Chip';\nexport * from './Chip';\n\nexport { default as CircularProgress } from './CircularProgress';\nexport * from './CircularProgress';\n\nexport { default as Column } from './Column';\nexport * from './Column';\n\nexport { default as Dialog } from './Dialog';\nexport * from './Dialog';\n\nexport { default as DialogActions } from './DialogActions';\nexport * from './DialogActions';\n\nexport { default as DialogContent } from './DialogContent';\nexport * from './DialogContent';\n\nexport { default as DialogMedia } from './DialogMedia';\nexport * from './DialogMedia';\n\nexport { default as DialogTitle } from './DialogTitle';\nexport * from './DialogTitle';\n\nexport { default as Divider } from './Divider';\nexport * from './Divider';\n\nexport { default as Fab } from './Fab';\nexport * from './Fab';\n\nexport { default as IconButton } from './IconButton';\nexport * from './IconButton';\n\nexport { default as Image } from './Image';\nexport * from './Image';\n\nexport { default as Link } from './Link';\nexport * from './Link';\n\nexport { default as List } from './List';\nexport * from './List';\n\nexport { default as ListItem } from './ListItem';\nexport * from './ListItem';\n\nexport { default as ListItemIcon } from './ListItemIcon';\nexport * from './ListItemIcon';\n\nexport { default as ListItemSecondaryAction } from './ListItemSecondaryAction';\nexport * from './ListItemSecondaryAction';\n\nexport { default as ListItemText } from './ListItemText';\nexport * from './ListItemText';\n\nexport { default as ListSubheader } from './ListSubheader';\nexport * from './ListSubheader';\n\nexport { default as Menu } from './Menu';\nexport * from './Menu';\n\nexport { default as MenuItem } from './MenuItem';\nexport * from './MenuItem';\n\nexport { default as Modal, createModalCloseEvent } from './Modal';\nexport type { ModalCloseEvent } from './Modal';\nexport * from './Modal';\n\nexport { default as Pagination } from './Pagination';\nexport * from './Pagination';\n\nexport { default as PaginationItem } from './PaginationItem';\nexport * from './PaginationItem';\n\nexport { default as Paper } from './Paper';\nexport * from './Paper';\n\nexport { default as Portal } from './Portal';\nexport * from './Portal';\n\nexport { default as Radio } from './Radio';\nexport * from './Radio';\n\nexport { default as RadioGroup } from './RadioGroup';\nexport * from './RadioGroup';\n\nexport { default as Row } from './Row';\nexport * from './Row';\n\nexport { default as Slide } from './Slide';\nexport * from './Slide';\n\nexport { default as Slider } from './Slider';\nexport * from './Slider';\n\nexport { default as Snackbar } from './Snackbar';\nexport * from './Snackbar';\n\nexport { default as SnackbarContent } from './SnackbarContent';\nexport * from './SnackbarContent';\n\nexport { default as Spacer } from './Spacer';\nexport * from './Spacer';\n\nexport { default as SvgIcon } from './SvgIcon';\nexport * from './SvgIcon';\n\nexport { default as Switch } from './Switch';\nexport * from './Switch';\n\nexport { default as Tab } from './Tab';\nexport * from './Tab';\n\nexport { default as TabBase } from './TabBase';\nexport * from './TabBase';\n\nexport { default as Tabs } from './Tabs';\nexport * from './Tabs';\n\nexport { default as TextField } from './TextField';\nexport * from './TextField';\n\nexport { default as Toolbar } from './Toolbar';\nexport * from './Toolbar';\n\nexport { default as Tooltip } from './Tooltip';\nexport * from './Tooltip';\n\nexport { default as Typography } from './Typography';\nexport * from './Typography';\n\nexport * from './animated';\n"]}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { Path } from 'react-native-svg';
3
+ import { createSvgIcon } from '../../utils';
4
+ export default createSvgIcon( /*#__PURE__*/React.createElement(Path, {
5
+ fillRule: "evenodd",
6
+ clipRule: "evenodd",
7
+ 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
+ }), 'ChevronLeft');
9
+ //# sourceMappingURL=ChevronLeft.js.map
@@ -0,0 +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"]}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { Path } from 'react-native-svg';
3
+ import { createSvgIcon } from '../../utils';
4
+ export default createSvgIcon( /*#__PURE__*/React.createElement(Path, {
5
+ fillRule: "evenodd",
6
+ clipRule: "evenodd",
7
+ d: "M13.3303 10.5303L7.83032 16.0303L6.76966 14.9697L11.7393 10L6.76966 5.03033L7.83032 3.96968L13.3303 9.46967V10.5303Z"
8
+ }), 'ChevronRight');
9
+ //# sourceMappingURL=ChevronRight.js.map
@@ -0,0 +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,6 +1,8 @@
1
1
  export { default as Checkbox } from './Checkbox';
2
2
  export { default as CheckboxChecked } from './CheckboxChecked';
3
3
  export { default as ChevronDown } from './ChevronDown';
4
+ export { default as ChevronLeft } from './ChevronLeft';
5
+ export { default as ChevronRight } from './ChevronRight';
4
6
  export { default as CircularProgress } from './CircularProgress';
5
7
  export { default as Close } from './Close';
6
8
  export { default as Radio } from './Radio';
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["default","Checkbox","CheckboxChecked","ChevronDown","CircularProgress","Close","Radio","RadioChecked"],"mappings":"AAAA,SAASA,OAAO,IAAIC,QAApB,QAAoC,YAApC;AACA,SAASD,OAAO,IAAIE,eAApB,QAA2C,mBAA3C;AACA,SAASF,OAAO,IAAIG,WAApB,QAAuC,eAAvC;AACA,SAASH,OAAO,IAAII,gBAApB,QAA4C,oBAA5C;AACA,SAASJ,OAAO,IAAIK,KAApB,QAAiC,SAAjC;AACA,SAASL,OAAO,IAAIM,KAApB,QAAiC,SAAjC;AACA,SAASN,OAAO,IAAIO,YAApB,QAAwC,gBAAxC","sourcesContent":["export { default as Checkbox } from './Checkbox';\nexport { default as CheckboxChecked } from './CheckboxChecked';\nexport { default as ChevronDown } from './ChevronDown';\nexport { default as CircularProgress } from './CircularProgress';\nexport { default as Close } from './Close';\nexport { default as Radio } from './Radio';\nexport { default as RadioChecked } from './RadioChecked';\n"]}
1
+ {"version":3,"sources":["index.ts"],"names":["default","Checkbox","CheckboxChecked","ChevronDown","ChevronLeft","ChevronRight","CircularProgress","Close","Radio","RadioChecked"],"mappings":"AAAA,SAASA,OAAO,IAAIC,QAApB,QAAoC,YAApC;AACA,SAASD,OAAO,IAAIE,eAApB,QAA2C,mBAA3C;AACA,SAASF,OAAO,IAAIG,WAApB,QAAuC,eAAvC;AACA,SAASH,OAAO,IAAII,WAApB,QAAuC,eAAvC;AACA,SAASJ,OAAO,IAAIK,YAApB,QAAwC,gBAAxC;AACA,SAASL,OAAO,IAAIM,gBAApB,QAA4C,oBAA5C;AACA,SAASN,OAAO,IAAIO,KAApB,QAAiC,SAAjC;AACA,SAASP,OAAO,IAAIQ,KAApB,QAAiC,SAAjC;AACA,SAASR,OAAO,IAAIS,YAApB,QAAwC,gBAAxC","sourcesContent":["export { default as Checkbox } from './Checkbox';\nexport { default as CheckboxChecked } from './CheckboxChecked';\nexport { default as ChevronDown } from './ChevronDown';\nexport { default as ChevronLeft } from './ChevronLeft';\nexport { default as ChevronRight } from './ChevronRight';\nexport { default as CircularProgress } from './CircularProgress';\nexport { default as Close } from './Close';\nexport { default as Radio } from './Radio';\nexport { default as RadioChecked } from './RadioChecked';\n"]}
@@ -1,3 +1,14 @@
1
1
  /// <reference types="react" />
2
2
  import type ModalProps from './ModalProps';
3
+ export declare type ModalCloseReasonType = 'OUTSIDE_PRESS' | 'HARDWARE_BACK_PRESS' | 'CLOSE_BUTTON_PRESS' | 'UNKNOWN';
4
+ export interface ModalCloseEvent {
5
+ metadata: {
6
+ reason: ModalCloseReasonType;
7
+ };
8
+ }
9
+ export declare const createModalCloseEvent: (reason: ModalCloseReasonType) => {
10
+ metadata: {
11
+ reason: ModalCloseReasonType;
12
+ };
13
+ };
3
14
  export default function Modal(props: ModalProps): JSX.Element | null;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { ViewProps } from 'react-native';
3
3
  import type { ComponentProps, OverridableComponentProps } from '../types';
4
+ import { ModalCloseEvent } from './Modal';
4
5
  export default interface ModalProps extends OverridableComponentProps<ViewProps, {
5
6
  /**
6
7
  * Style object provided to animation component.
@@ -28,7 +29,7 @@ export default interface ModalProps extends OverridableComponentProps<ViewProps,
28
29
  /**
29
30
  * Callback fired when the component requests to be closed.
30
31
  */
31
- onClose?: () => void;
32
+ onClose?: (event?: ModalCloseEvent) => void;
32
33
  /**
33
34
  * If `true`, the modal is visible.
34
35
  */
@@ -1,2 +1,3 @@
1
- export { default } from './Modal';
1
+ export { default, createModalCloseEvent } from './Modal';
2
+ export type { ModalCloseEvent } from './Modal';
2
3
  export type { default as ModalProps } from './ModalProps';
@@ -68,7 +68,8 @@ export { default as Menu } from './Menu';
68
68
  export * from './Menu';
69
69
  export { default as MenuItem } from './MenuItem';
70
70
  export * from './MenuItem';
71
- export { default as Modal } from './Modal';
71
+ export { default as Modal, createModalCloseEvent } from './Modal';
72
+ export type { ModalCloseEvent } from './Modal';
72
73
  export * from './Modal';
73
74
  export { default as Pagination } from './Pagination';
74
75
  export * from './Pagination';
@@ -0,0 +1,113 @@
1
+ import React from 'react';
2
+ declare const _default: React.MemoExoticComponent<{
3
+ (props: {
4
+ readonly style?: import("@emotion/native").ReactNativeStyle | import("@emotion/native").ReactNativeStyle[] | undefined;
5
+ readonly width?: import("react-native-svg").NumberProp | undefined;
6
+ readonly height?: import("react-native-svg").NumberProp | undefined;
7
+ readonly viewBox?: string | undefined;
8
+ 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
+ fillOpacity?: import("react-native-svg").NumberProp | undefined;
14
+ fillRule?: import("react-native-svg").FillRule | undefined;
15
+ stroke?: import("react-native-svg").Color | undefined;
16
+ strokeWidth?: import("react-native-svg").NumberProp | undefined;
17
+ strokeOpacity?: import("react-native-svg").NumberProp | undefined;
18
+ strokeDasharray?: import("react-native-svg").NumberProp | readonly import("react-native-svg").NumberProp[] | undefined;
19
+ strokeDashoffset?: import("react-native-svg").NumberProp | undefined;
20
+ strokeLinecap?: import("react-native-svg").Linecap | undefined;
21
+ strokeLinejoin?: import("react-native-svg").Linejoin | undefined;
22
+ strokeMiterlimit?: import("react-native-svg").NumberProp | undefined;
23
+ clipRule?: import("react-native-svg").FillRule | undefined;
24
+ clipPath?: string | undefined;
25
+ transform?: string | import("react-native-svg").TransformObject | import("react-native-svg").ColumnMajorTransformMatrix | undefined;
26
+ translate?: import("react-native-svg").NumberArray | undefined;
27
+ translateX?: import("react-native-svg").NumberProp | undefined;
28
+ translateY?: import("react-native-svg").NumberProp | undefined;
29
+ origin?: import("react-native-svg").NumberArray | undefined;
30
+ originX?: import("react-native-svg").NumberProp | undefined;
31
+ 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
+ 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
+ x?: import("react-native-svg").NumberArray | undefined;
40
+ y?: import("react-native-svg").NumberArray | undefined;
41
+ vectorEffect?: "none" | "inherit" | "non-scaling-stroke" | "nonScalingStroke" | "default" | "uri" | undefined;
42
+ pointerEvents?: "auto" | "none" | "box-none" | "box-only" | undefined;
43
+ onStartShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
44
+ onMoveShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
45
+ onResponderEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
46
+ onResponderGrant?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
47
+ onResponderReject?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
48
+ onResponderMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
49
+ onResponderRelease?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
50
+ onResponderStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
51
+ onResponderTerminationRequest?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
52
+ onResponderTerminate?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
53
+ onStartShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
54
+ onMoveShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
55
+ disabled?: boolean | undefined;
56
+ onPress?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
57
+ onPressIn?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
58
+ onPressOut?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
59
+ onLongPress?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
60
+ delayPressIn?: number | undefined;
61
+ delayPressOut?: number | undefined;
62
+ delayLongPress?: number | undefined;
63
+ id?: string | undefined;
64
+ marker?: string | undefined;
65
+ markerStart?: string | undefined;
66
+ markerMid?: string | undefined;
67
+ markerEnd?: string | undefined;
68
+ mask?: string | undefined;
69
+ hitSlop?: import("react-native").Insets | undefined;
70
+ onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | undefined;
71
+ removeClippedSubviews?: boolean | undefined;
72
+ testID?: string | undefined;
73
+ nativeID?: string | undefined;
74
+ collapsable?: boolean | undefined;
75
+ needsOffscreenAlphaCompositing?: boolean | undefined;
76
+ renderToHardwareTextureAndroid?: boolean | undefined;
77
+ focusable?: boolean | undefined;
78
+ shouldRasterizeIOS?: boolean | undefined;
79
+ isTVSelectable?: boolean | undefined;
80
+ hasTVPreferredFocus?: boolean | undefined;
81
+ tvParallaxProperties?: import("react-native").TVParallaxProperties | undefined;
82
+ tvParallaxShiftDistanceX?: number | undefined;
83
+ tvParallaxShiftDistanceY?: number | undefined;
84
+ tvParallaxTiltAngle?: number | undefined;
85
+ tvParallaxMagnification?: number | undefined;
86
+ onTouchStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
87
+ onTouchMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
88
+ onTouchEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
89
+ onTouchCancel?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
90
+ onTouchEndCapture?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
91
+ accessible?: boolean | undefined;
92
+ accessibilityActions?: readonly Readonly<{
93
+ name: string;
94
+ label?: string | undefined;
95
+ }>[] | undefined;
96
+ accessibilityLabel?: string | undefined;
97
+ accessibilityRole?: import("react-native").AccessibilityRole | undefined;
98
+ accessibilityState?: import("react-native").AccessibilityState | undefined;
99
+ accessibilityHint?: string | undefined;
100
+ accessibilityValue?: import("react-native").AccessibilityValue | undefined;
101
+ onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => void) | undefined;
102
+ accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
103
+ importantForAccessibility?: "auto" | "yes" | "no" | "no-hide-descendants" | undefined;
104
+ accessibilityElementsHidden?: boolean | undefined;
105
+ accessibilityViewIsModal?: boolean | undefined;
106
+ onAccessibilityEscape?: (() => void) | undefined;
107
+ onAccessibilityTap?: (() => void) | undefined;
108
+ onMagicTap?: (() => void) | undefined;
109
+ accessibilityIgnoresInvertColors?: boolean | undefined;
110
+ }): JSX.Element;
111
+ displayName: string;
112
+ }>;
113
+ export default _default;
@@ -0,0 +1,113 @@
1
+ import React from 'react';
2
+ declare const _default: React.MemoExoticComponent<{
3
+ (props: {
4
+ readonly style?: import("@emotion/native").ReactNativeStyle | import("@emotion/native").ReactNativeStyle[] | undefined;
5
+ readonly width?: import("react-native-svg").NumberProp | undefined;
6
+ readonly height?: import("react-native-svg").NumberProp | undefined;
7
+ readonly viewBox?: string | undefined;
8
+ 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
+ fillOpacity?: import("react-native-svg").NumberProp | undefined;
14
+ fillRule?: import("react-native-svg").FillRule | undefined;
15
+ stroke?: import("react-native-svg").Color | undefined;
16
+ strokeWidth?: import("react-native-svg").NumberProp | undefined;
17
+ strokeOpacity?: import("react-native-svg").NumberProp | undefined;
18
+ strokeDasharray?: import("react-native-svg").NumberProp | readonly import("react-native-svg").NumberProp[] | undefined;
19
+ strokeDashoffset?: import("react-native-svg").NumberProp | undefined;
20
+ strokeLinecap?: import("react-native-svg").Linecap | undefined;
21
+ strokeLinejoin?: import("react-native-svg").Linejoin | undefined;
22
+ strokeMiterlimit?: import("react-native-svg").NumberProp | undefined;
23
+ clipRule?: import("react-native-svg").FillRule | undefined;
24
+ clipPath?: string | undefined;
25
+ transform?: string | import("react-native-svg").TransformObject | import("react-native-svg").ColumnMajorTransformMatrix | undefined;
26
+ translate?: import("react-native-svg").NumberArray | undefined;
27
+ translateX?: import("react-native-svg").NumberProp | undefined;
28
+ translateY?: import("react-native-svg").NumberProp | undefined;
29
+ origin?: import("react-native-svg").NumberArray | undefined;
30
+ originX?: import("react-native-svg").NumberProp | undefined;
31
+ 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
+ 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
+ x?: import("react-native-svg").NumberArray | undefined;
40
+ y?: import("react-native-svg").NumberArray | undefined;
41
+ vectorEffect?: "none" | "inherit" | "non-scaling-stroke" | "nonScalingStroke" | "default" | "uri" | undefined;
42
+ pointerEvents?: "auto" | "none" | "box-none" | "box-only" | undefined;
43
+ onStartShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
44
+ onMoveShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
45
+ onResponderEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
46
+ onResponderGrant?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
47
+ onResponderReject?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
48
+ onResponderMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
49
+ onResponderRelease?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
50
+ onResponderStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
51
+ onResponderTerminationRequest?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
52
+ onResponderTerminate?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
53
+ onStartShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
54
+ onMoveShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | undefined;
55
+ disabled?: boolean | undefined;
56
+ onPress?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
57
+ onPressIn?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
58
+ onPressOut?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
59
+ onLongPress?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
60
+ delayPressIn?: number | undefined;
61
+ delayPressOut?: number | undefined;
62
+ delayLongPress?: number | undefined;
63
+ id?: string | undefined;
64
+ marker?: string | undefined;
65
+ markerStart?: string | undefined;
66
+ markerMid?: string | undefined;
67
+ markerEnd?: string | undefined;
68
+ mask?: string | undefined;
69
+ hitSlop?: import("react-native").Insets | undefined;
70
+ onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | undefined;
71
+ removeClippedSubviews?: boolean | undefined;
72
+ testID?: string | undefined;
73
+ nativeID?: string | undefined;
74
+ collapsable?: boolean | undefined;
75
+ needsOffscreenAlphaCompositing?: boolean | undefined;
76
+ renderToHardwareTextureAndroid?: boolean | undefined;
77
+ focusable?: boolean | undefined;
78
+ shouldRasterizeIOS?: boolean | undefined;
79
+ isTVSelectable?: boolean | undefined;
80
+ hasTVPreferredFocus?: boolean | undefined;
81
+ tvParallaxProperties?: import("react-native").TVParallaxProperties | undefined;
82
+ tvParallaxShiftDistanceX?: number | undefined;
83
+ tvParallaxShiftDistanceY?: number | undefined;
84
+ tvParallaxTiltAngle?: number | undefined;
85
+ tvParallaxMagnification?: number | undefined;
86
+ onTouchStart?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
87
+ onTouchMove?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
88
+ onTouchEnd?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
89
+ onTouchCancel?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
90
+ onTouchEndCapture?: ((event: import("react-native").GestureResponderEvent) => void) | undefined;
91
+ accessible?: boolean | undefined;
92
+ accessibilityActions?: readonly Readonly<{
93
+ name: string;
94
+ label?: string | undefined;
95
+ }>[] | undefined;
96
+ accessibilityLabel?: string | undefined;
97
+ accessibilityRole?: import("react-native").AccessibilityRole | undefined;
98
+ accessibilityState?: import("react-native").AccessibilityState | undefined;
99
+ accessibilityHint?: string | undefined;
100
+ accessibilityValue?: import("react-native").AccessibilityValue | undefined;
101
+ onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => void) | undefined;
102
+ accessibilityLiveRegion?: "none" | "polite" | "assertive" | undefined;
103
+ importantForAccessibility?: "auto" | "yes" | "no" | "no-hide-descendants" | undefined;
104
+ accessibilityElementsHidden?: boolean | undefined;
105
+ accessibilityViewIsModal?: boolean | undefined;
106
+ onAccessibilityEscape?: (() => void) | undefined;
107
+ onAccessibilityTap?: (() => void) | undefined;
108
+ onMagicTap?: (() => void) | undefined;
109
+ accessibilityIgnoresInvertColors?: boolean | undefined;
110
+ }): JSX.Element;
111
+ displayName: string;
112
+ }>;
113
+ export default _default;
@@ -1,6 +1,8 @@
1
1
  export { default as Checkbox } from './Checkbox';
2
2
  export { default as CheckboxChecked } from './CheckboxChecked';
3
3
  export { default as ChevronDown } from './ChevronDown';
4
+ export { default as ChevronLeft } from './ChevronLeft';
5
+ export { default as ChevronRight } from './ChevronRight';
4
6
  export { default as CircularProgress } from './CircularProgress';
5
7
  export { default as Close } from './Close';
6
8
  export { default as Radio } from './Radio';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fountain-ui/core",
3
- "version": "1.17.0",
3
+ "version": "1.19.1",
4
4
  "author": "Fountain-UI Team",
5
5
  "description": "React components that implement Tappytoon's Fountain Design.",
6
6
  "license": "MIT",
@@ -14,7 +14,7 @@
14
14
  "prepare": "bob build"
15
15
  },
16
16
  "dependencies": {
17
- "@fountain-ui/styles": "^1.4.1",
17
+ "@fountain-ui/styles": "^1.5.0",
18
18
  "@fountain-ui/utils": "^1.1.0"
19
19
  },
20
20
  "peerDependencies": {
@@ -67,5 +67,5 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
- "gitHead": "f1c8ecff8e5819a3cf723236e0f626cc921cb9d3"
70
+ "gitHead": "1624478e1427948c29a61931e3af6658db41505f"
71
71
  }
@@ -6,6 +6,20 @@ import Slide from '../Slide';
6
6
  import SimpleBackdrop from './SimpleBackdrop';
7
7
  import type ModalProps from './ModalProps';
8
8
 
9
+ export type ModalCloseReasonType = 'OUTSIDE_PRESS' | 'HARDWARE_BACK_PRESS' | 'CLOSE_BUTTON_PRESS' | 'UNKNOWN';
10
+
11
+ export interface ModalCloseEvent {
12
+ metadata: {
13
+ reason: ModalCloseReasonType
14
+ };
15
+ }
16
+
17
+ export const createModalCloseEvent = (reason: ModalCloseReasonType) => ({
18
+ metadata: {
19
+ reason,
20
+ },
21
+ });
22
+
9
23
  export default function Modal(props: ModalProps) {
10
24
  const {
11
25
  animationStyle,
@@ -21,7 +35,7 @@ export default function Modal(props: ModalProps) {
21
35
 
22
36
  const handleBackdropPress = () => {
23
37
  if (onClose) {
24
- onClose();
38
+ onClose(createModalCloseEvent('OUTSIDE_PRESS'));
25
39
  }
26
40
  };
27
41
 
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { ViewProps } from 'react-native';
3
3
  import type { ComponentProps, OverridableComponentProps } from '../types';
4
+ import { ModalCloseEvent } from './Modal';
4
5
 
5
6
  export default interface ModalProps extends OverridableComponentProps<ViewProps, {
6
7
  /**
@@ -34,7 +35,7 @@ export default interface ModalProps extends OverridableComponentProps<ViewProps,
34
35
  /**
35
36
  * Callback fired when the component requests to be closed.
36
37
  */
37
- onClose?: () => void,
38
+ onClose?: (event?: ModalCloseEvent) => void,
38
39
 
39
40
  /**
40
41
  * If `true`, the modal is visible.
@@ -1,2 +1,3 @@
1
- export { default } from './Modal';
2
- export type { default as ModalProps } from './ModalProps';
1
+ export { default, createModalCloseEvent } from './Modal';
2
+ export type { ModalCloseEvent } from './Modal';
3
+ export type { default as ModalProps } from './ModalProps';
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import { View } from 'react-native';
3
- import { ChevronLeft, ChevronRight } from '@fountain-ui/icons';
4
3
  import { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';
5
4
  import { times } from '@fountain-ui/utils';
5
+ import { ChevronLeft, ChevronRight } from '../internal/icons';
6
6
  import { css, useTheme } from '../styles';
7
7
  import IconButton from '../IconButton';
8
8
  import PaginationItem from '../PaginationItem';
@@ -196,6 +196,7 @@ const OutlinedTextField = React.forwardRef<TextInput, OutlinedTextFieldProps>(fu
196
196
  <TextInput
197
197
  autoCapitalize={'none'}
198
198
  autoCorrect={false}
199
+ disableFullscreenUI={true}
199
200
  ref={ref}
200
201
  onChangeText={onChangeText}
201
202
  placeholder={placeholder}
package/src/index.ts CHANGED
@@ -105,7 +105,8 @@ export * from './Menu';
105
105
  export { default as MenuItem } from './MenuItem';
106
106
  export * from './MenuItem';
107
107
 
108
- export { default as Modal } from './Modal';
108
+ export { default as Modal, createModalCloseEvent } from './Modal';
109
+ export type { ModalCloseEvent } from './Modal';
109
110
  export * from './Modal';
110
111
 
111
112
  export { default as Pagination } from './Pagination';
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { Path } from 'react-native-svg';
3
+ import { createSvgIcon } from '../../utils';
4
+
5
+ export default createSvgIcon(
6
+ <Path
7
+ fillRule="evenodd"
8
+ clipRule="evenodd"
9
+ 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"
10
+ />
11
+ , 'ChevronLeft');
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { Path } from 'react-native-svg';
3
+ import { createSvgIcon } from '../../utils';
4
+
5
+ export default createSvgIcon(
6
+ <Path
7
+ fillRule="evenodd"
8
+ clipRule="evenodd"
9
+ d="M13.3303 10.5303L7.83032 16.0303L6.76966 14.9697L11.7393 10L6.76966 5.03033L7.83032 3.96968L13.3303 9.46967V10.5303Z"
10
+ />
11
+ , 'ChevronRight');