@draftbit/core 49.6.1-0921d4.2 → 49.6.1-d21713.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.
@@ -1 +1 @@
1
- var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/Toast/Toast.tsx";import React from"react";import{StyleSheet}from"react-native";import{View,Text}from"react-native";import{extractBorderAndMarginStyles}from"../../utilities";import{jsx as _jsx}from"react/jsx-runtime";var Toast=function Toast(_ref){var _ref$visible=_ref.visible,visible=_ref$visible===void 0?false:_ref$visible,style=_ref.style,labelStyle=_ref.labelStyle;if(!visible)return null;var containerStyle=StyleSheet.flatten([extractBorderAndMarginStyles(style).marginStyles]);return _jsx(View,{style:containerStyle,children:_jsx(Text,{style:[labelStyle],children:"Test"})});};export default Toast;
1
+ var _this=this,_jsxFileName="/home/runner/work/react-native-jigsaw/react-native-jigsaw/packages/core/src/components/Toast/Toast.tsx";import React from"react";import{StyleSheet}from"react-native";import{View,Text}from"react-native";import{extractBorderAndMarginStyles}from"../../utilities";import{jsx as _jsx}from"react/jsx-runtime";var Toast=function Toast(_ref){var _ref$visible=_ref.visible,visible=_ref$visible===void 0?false:_ref$visible,title=_ref.title,style=_ref.style,labelStyle=_ref.labelStyle;if(!visible)return null;var containerStyle=StyleSheet.flatten([extractBorderAndMarginStyles(style).marginStyles]);return _jsx(View,{style:containerStyle,children:_jsx(Text,{style:[labelStyle],children:title})});};export default Toast;
@@ -2,6 +2,7 @@ import React from "react";
2
2
  import { StyleProp, TextStyle, ViewStyle } from "react-native";
3
3
  declare type Props = {
4
4
  visible: boolean;
5
+ title: string;
5
6
  labelStyle?: StyleProp<TextStyle>;
6
7
  style?: StyleProp<ViewStyle>;
7
8
  };
@@ -2,14 +2,14 @@ import React from "react";
2
2
  import { StyleSheet } from "react-native";
3
3
  import { View, Text } from "react-native";
4
4
  import { extractBorderAndMarginStyles } from "../../utilities";
5
- const Toast = ({ visible = false, style, labelStyle, }) => {
5
+ const Toast = ({ visible = false, title, style, labelStyle, }) => {
6
6
  if (!visible)
7
7
  return null;
8
8
  const containerStyle = StyleSheet.flatten([
9
9
  extractBorderAndMarginStyles(style).marginStyles,
10
10
  ]);
11
11
  return (React.createElement(View, { style: containerStyle },
12
- React.createElement(Text, { style: [labelStyle] }, "Test")));
12
+ React.createElement(Text, { style: [labelStyle] }, title)));
13
13
  };
14
14
  export default Toast;
15
15
  //# sourceMappingURL=Toast.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.js","sourceRoot":"","sources":["../../../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAmC,UAAU,EAAE,MAAM,cAAc,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAC;AAQ/D,MAAM,KAAK,GAA6C,CAAC,EACvD,OAAO,GAAG,KAAK,EACf,KAAK,EACL,UAAU,GACX,EAAE,EAAE;IACH,IAAI,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAC1B,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;QACxC,4BAA4B,CAAC,KAAK,CAAC,CAAC,YAAY;KACjD,CAAC,CAAC;IACH,OAAO,CACL,oBAAC,IAAI,IAAC,KAAK,EAAE,cAAc;QACzB,oBAAC,IAAI,IAAC,KAAK,EAAE,CAAC,UAAU,CAAC,WAAa,CACjC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Toast.js","sourceRoot":"","sources":["../../../../../src/components/Toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAmC,UAAU,EAAE,MAAM,cAAc,CAAC;AAC3E,OAAO,EAAE,IAAI,EA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