@tecsinapse/react-web-kit 1.23.0-beta.5 → 1.23.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/molecules/Snackbar/Snackbar.d.ts +1 -1
- package/dist/cjs/components/molecules/Snackbar/Snackbar.js +5 -3
- package/dist/cjs/components/molecules/Snackbar/Snackbar.js.map +1 -1
- package/dist/esm/components/molecules/Snackbar/Snackbar.d.ts +1 -1
- package/dist/esm/components/molecules/Snackbar/Snackbar.js +5 -3
- package/dist/esm/components/molecules/Snackbar/Snackbar.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SnackbarProps as SnackPropsCore, TextProps } from '@tecsinapse/react-core';
|
|
3
3
|
export interface SnackbarWebProps extends Omit<SnackPropsCore, 'children'> {
|
|
4
|
-
value
|
|
4
|
+
value?: string;
|
|
5
5
|
textProps?: TextProps;
|
|
6
6
|
}
|
|
7
7
|
declare const Snackbar: React.FC<SnackbarWebProps>;
|
|
@@ -10,16 +10,18 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
|
10
10
|
|
|
11
11
|
const Snackbar = ({
|
|
12
12
|
value,
|
|
13
|
+
open,
|
|
13
14
|
textProps = { colorVariant: "primary", colorTone: "medium" },
|
|
14
15
|
...rest
|
|
15
16
|
}) => {
|
|
16
17
|
return /* @__PURE__ */ React__default["default"].createElement(styled.SnackbarStyled, {
|
|
17
|
-
...rest
|
|
18
|
-
|
|
18
|
+
...rest,
|
|
19
|
+
open
|
|
20
|
+
}, value && open ? /* @__PURE__ */ React__default["default"].createElement(reactCore.Text, {
|
|
19
21
|
...textProps,
|
|
20
22
|
fontWeight: "bold",
|
|
21
23
|
typography: "base"
|
|
22
|
-
}, value));
|
|
24
|
+
}, value) : null);
|
|
23
25
|
};
|
|
24
26
|
|
|
25
27
|
module.exports = Snackbar;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Snackbar.js","sources":["../../../../../src/components/molecules/Snackbar/Snackbar.tsx"],"sourcesContent":["import React from 'react';\nimport {\n SnackbarProps as SnackPropsCore,\n Text,\n TextProps,\n} from '@tecsinapse/react-core';\nimport { SnackbarStyled } from './styled';\n\nexport interface SnackbarWebProps extends Omit<SnackPropsCore, 'children'> {\n value
|
|
1
|
+
{"version":3,"file":"Snackbar.js","sources":["../../../../../src/components/molecules/Snackbar/Snackbar.tsx"],"sourcesContent":["import React from 'react';\nimport {\n SnackbarProps as SnackPropsCore,\n Text,\n TextProps,\n} from '@tecsinapse/react-core';\nimport { SnackbarStyled } from './styled';\n\nexport interface SnackbarWebProps extends Omit<SnackPropsCore, 'children'> {\n value?: string;\n textProps?: TextProps;\n}\n\nconst Snackbar: React.FC<SnackbarWebProps> = ({\n value,\n open,\n textProps = { colorVariant: 'primary', colorTone: 'medium' },\n ...rest\n}) => {\n return (\n <SnackbarStyled {...rest} open={open}>\n {value && open ? (\n <Text {...textProps} fontWeight=\"bold\" typography=\"base\">\n {value}\n </Text>\n ) : null}\n </SnackbarStyled>\n );\n};\n\nexport default Snackbar;\n"],"names":["React","SnackbarStyled","Text"],"mappings":";;;;;;;;;;AAaA,MAAM,WAAuC,CAAC;AAAA,EAC5C,KAAA;AAAA,EACA,IAAA;AAAA,EACA,SAAY,GAAA,EAAE,YAAc,EAAA,SAAA,EAAW,WAAW,QAAS,EAAA;AAAA,EACxD,GAAA,IAAA;AACL,CAAM,KAAA;AACJ,EAAA,uBACGA,yBAAA,CAAA,aAAA,CAAAC,qBAAA,EAAA;AAAA,IAAgB,GAAG,IAAA;AAAA,IAAM,IAAA;AAAA,GACvB,EAAA,KAAA,IAAS,uBACPD,yBAAA,CAAA,aAAA,CAAAE,cAAA,EAAA;AAAA,IAAM,GAAG,SAAA;AAAA,IAAW,UAAW,EAAA,MAAA;AAAA,IAAO,UAAW,EAAA,MAAA;AAAA,GAC/C,EAAA,KACH,IACE,IACN,CAAA,CAAA;AAEJ;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SnackbarProps as SnackPropsCore, TextProps } from '@tecsinapse/react-core';
|
|
3
3
|
export interface SnackbarWebProps extends Omit<SnackPropsCore, 'children'> {
|
|
4
|
-
value
|
|
4
|
+
value?: string;
|
|
5
5
|
textProps?: TextProps;
|
|
6
6
|
}
|
|
7
7
|
declare const Snackbar: React.FC<SnackbarWebProps>;
|
|
@@ -4,16 +4,18 @@ import { SnackbarStyled } from './styled.js';
|
|
|
4
4
|
|
|
5
5
|
const Snackbar = ({
|
|
6
6
|
value,
|
|
7
|
+
open,
|
|
7
8
|
textProps = { colorVariant: "primary", colorTone: "medium" },
|
|
8
9
|
...rest
|
|
9
10
|
}) => {
|
|
10
11
|
return /* @__PURE__ */ React.createElement(SnackbarStyled, {
|
|
11
|
-
...rest
|
|
12
|
-
|
|
12
|
+
...rest,
|
|
13
|
+
open
|
|
14
|
+
}, value && open ? /* @__PURE__ */ React.createElement(Text, {
|
|
13
15
|
...textProps,
|
|
14
16
|
fontWeight: "bold",
|
|
15
17
|
typography: "base"
|
|
16
|
-
}, value));
|
|
18
|
+
}, value) : null);
|
|
17
19
|
};
|
|
18
20
|
|
|
19
21
|
export { Snackbar as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Snackbar.js","sources":["../../../../../src/components/molecules/Snackbar/Snackbar.tsx"],"sourcesContent":["import React from 'react';\nimport {\n SnackbarProps as SnackPropsCore,\n Text,\n TextProps,\n} from '@tecsinapse/react-core';\nimport { SnackbarStyled } from './styled';\n\nexport interface SnackbarWebProps extends Omit<SnackPropsCore, 'children'> {\n value
|
|
1
|
+
{"version":3,"file":"Snackbar.js","sources":["../../../../../src/components/molecules/Snackbar/Snackbar.tsx"],"sourcesContent":["import React from 'react';\nimport {\n SnackbarProps as SnackPropsCore,\n Text,\n TextProps,\n} from '@tecsinapse/react-core';\nimport { SnackbarStyled } from './styled';\n\nexport interface SnackbarWebProps extends Omit<SnackPropsCore, 'children'> {\n value?: string;\n textProps?: TextProps;\n}\n\nconst Snackbar: React.FC<SnackbarWebProps> = ({\n value,\n open,\n textProps = { colorVariant: 'primary', colorTone: 'medium' },\n ...rest\n}) => {\n return (\n <SnackbarStyled {...rest} open={open}>\n {value && open ? (\n <Text {...textProps} fontWeight=\"bold\" typography=\"base\">\n {value}\n </Text>\n ) : null}\n </SnackbarStyled>\n );\n};\n\nexport default Snackbar;\n"],"names":[],"mappings":";;;;AAaA,MAAM,WAAuC,CAAC;AAAA,EAC5C,KAAA;AAAA,EACA,IAAA;AAAA,EACA,SAAY,GAAA,EAAE,YAAc,EAAA,SAAA,EAAW,WAAW,QAAS,EAAA;AAAA,EACxD,GAAA,IAAA;AACL,CAAM,KAAA;AACJ,EAAA,uBACG,KAAA,CAAA,aAAA,CAAA,cAAA,EAAA;AAAA,IAAgB,GAAG,IAAA;AAAA,IAAM,IAAA;AAAA,GACvB,EAAA,KAAA,IAAS,uBACP,KAAA,CAAA,aAAA,CAAA,IAAA,EAAA;AAAA,IAAM,GAAG,SAAA;AAAA,IAAW,UAAW,EAAA,MAAA;AAAA,IAAO,UAAW,EAAA,MAAA;AAAA,GAC/C,EAAA,KACH,IACE,IACN,CAAA,CAAA;AAEJ;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tecsinapse/react-web-kit",
|
|
3
3
|
"description": "TecSinapse React components",
|
|
4
|
-
"version": "1.23.0-beta.
|
|
4
|
+
"version": "1.23.0-beta.7+7205fc6",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/esm/index.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@emotion/native": "~11.10.0",
|
|
24
24
|
"@emotion/react": "~11.10.0",
|
|
25
25
|
"@emotion/styled": "~11.10.0",
|
|
26
|
-
"@tecsinapse/react-core": "^1.22.0-beta.
|
|
26
|
+
"@tecsinapse/react-core": "^1.22.0-beta.11+7205fc6",
|
|
27
27
|
"@types/react-native": "^0.64.4",
|
|
28
28
|
"date-fns": "~2.29.1",
|
|
29
29
|
"react-native-vector-icons": "~9.2.0",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
44
44
|
"react-native-web": "^0.17.1 || ^0.18.0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "7205fc6fa6ea57ec907e52c09bbabec00937be51"
|
|
47
47
|
}
|