@tecsinapse/react-web-kit 1.17.7 → 1.17.10

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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.17.10](https://github.com/tecsinapse/design-system/compare/@tecsinapse/react-web-kit@1.17.9...@tecsinapse/react-web-kit@1.17.10) (2022-07-14)
7
+
8
+
9
+ ### Features
10
+
11
+ * fixing props tootip to react 18 ([76f9ec7](https://github.com/tecsinapse/design-system/commit/76f9ec7d974311ef7480a4b9ef2c207caab5bd9d))
12
+
13
+
14
+
15
+
16
+
17
+ ## [1.17.9](https://github.com/tecsinapse/design-system/compare/@tecsinapse/react-web-kit@1.17.8...@tecsinapse/react-web-kit@1.17.9) (2022-07-11)
18
+
19
+ **Note:** Version bump only for package @tecsinapse/react-web-kit
20
+
21
+
22
+
23
+
24
+
25
+ ## [1.17.8](https://github.com/tecsinapse/design-system/compare/@tecsinapse/react-web-kit@1.17.7...@tecsinapse/react-web-kit@1.17.8) (2022-06-24)
26
+
27
+ **Note:** Version bump only for package @tecsinapse/react-web-kit
28
+
29
+
30
+
31
+
32
+
6
33
  ## [1.17.7](https://github.com/tecsinapse/design-system/compare/@tecsinapse/react-web-kit@1.17.6...@tecsinapse/react-web-kit@1.17.7) (2022-06-22)
7
34
 
8
35
 
@@ -7,6 +7,7 @@ export declare type Position = 'top' | 'bottom' | 'right' | 'left';
7
7
  export interface ITooltip {
8
8
  title: string;
9
9
  position?: Position;
10
+ children?: React.ReactNode;
10
11
  }
11
12
  declare const Tooltip: React.FC<ITooltip>;
12
13
  export default Tooltip;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/atoms/Tooltip/Tooltip.tsx"],"names":["Tooltip","children","title","position","spanRef","React","useRef","computed","setComputed","useState","undefined","useLayoutEffect","width","current","clientWidth","height","clientHeight","ref"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;AAUA,MAAMA,OAA2B,GAAG,CAAC;AACnCC,EAAAA,QADmC;AAEnCC,EAAAA,KAFmC;AAGnCC,EAAAA,QAAQ,GAAG;AAHwB,CAAD,KAI9B;AACJ,QAAMC,OAAO,GAAGC,eAAMC,MAAN,EAAhB;;AACA,QAAM,CAACC,QAAD,EAAWC,WAAX,IAA0BH,eAAMI,QAAN,CAC9BC,SAD8B,CAAhC;;AAIAL,iBAAMM,eAAN,CAAsB,MAAM;AAAA;;AAC1BH,IAAAA,WAAW,CAAC;AACVI,MAAAA,KAAK,sBAAER,OAAO,CAACS,OAAV,qDAAE,iBAAiBC,WADd;AAEVC,MAAAA,MAAM,uBAAEX,OAAO,CAACS,OAAV,sDAAE,kBAAiBG;AAFf,KAAD,CAAX;AAID,GALD,EAKG,EALH;;AAOA,SACE,6BAAC,iBAAD;AAAW,IAAA,QAAQ,EAAEb;AAArB,KACGF,QADH,EAEE,6BAAC,mBAAD;AACE,IAAA,QAAQ,EAAEM,QADZ;AAEE,IAAA,QAAQ,EAAEJ,QAFZ;AAGE,IAAA,GAAG,EAAEc,GAAG,IAAKb,OAAO,CAACS,OAAR,GAAkBI;AAHjC,KAKE,6BAAC,eAAD;AACE,IAAA,UAAU,EAAC,MADb;AAEE,IAAA,UAAU,EAAC,MAFb;AAGE,IAAA,YAAY,EAAC,WAHf;AAIE,IAAA,SAAS,EAAC;AAJZ,KAMGf,KANH,CALF,CAFF,CADF;AAmBD,CApCD;;eAsCeF,O","sourcesContent":["import React from 'react';\nimport { Text } from '@tecsinapse/react-core';\nimport { Container, TooltipSpan } from './styled';\n\nexport type ComputedType = { width?: number; height?: number };\nexport type Position = 'top' | 'bottom' | 'right' | 'left';\n\nexport interface ITooltip {\n title: string;\n position?: Position;\n}\n\nconst Tooltip: React.FC<ITooltip> = ({\n children,\n title,\n position = 'bottom',\n}) => {\n const spanRef = React.useRef<HTMLSpanElement | null>();\n const [computed, setComputed] = React.useState<ComputedType | undefined>(\n undefined\n );\n\n React.useLayoutEffect(() => {\n setComputed({\n width: spanRef.current?.clientWidth,\n height: spanRef.current?.clientHeight,\n });\n }, []);\n\n return (\n <Container position={position}>\n {children}\n <TooltipSpan\n computed={computed}\n position={position}\n ref={ref => (spanRef.current = ref)}\n >\n <Text\n fontWeight=\"bold\"\n typography=\"base\"\n colorVariant=\"secondary\"\n colorTone=\"xlight\"\n >\n {title}\n </Text>\n </TooltipSpan>\n </Container>\n );\n};\n\nexport default Tooltip;\n"],"file":"Tooltip.js"}
1
+ {"version":3,"sources":["../../../../src/components/atoms/Tooltip/Tooltip.tsx"],"names":["Tooltip","children","title","position","spanRef","React","useRef","computed","setComputed","useState","undefined","useLayoutEffect","width","current","clientWidth","height","clientHeight","ref"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;AAWA,MAAMA,OAA2B,GAAG,CAAC;AACnCC,EAAAA,QADmC;AAEnCC,EAAAA,KAFmC;AAGnCC,EAAAA,QAAQ,GAAG;AAHwB,CAAD,KAI9B;AACJ,QAAMC,OAAO,GAAGC,eAAMC,MAAN,EAAhB;;AACA,QAAM,CAACC,QAAD,EAAWC,WAAX,IAA0BH,eAAMI,QAAN,CAC9BC,SAD8B,CAAhC;;AAIAL,iBAAMM,eAAN,CAAsB,MAAM;AAAA;;AAC1BH,IAAAA,WAAW,CAAC;AACVI,MAAAA,KAAK,sBAAER,OAAO,CAACS,OAAV,qDAAE,iBAAiBC,WADd;AAEVC,MAAAA,MAAM,uBAAEX,OAAO,CAACS,OAAV,sDAAE,kBAAiBG;AAFf,KAAD,CAAX;AAID,GALD,EAKG,EALH;;AAOA,SACE,6BAAC,iBAAD;AAAW,IAAA,QAAQ,EAAEb;AAArB,KACGF,QADH,EAEE,6BAAC,mBAAD;AACE,IAAA,QAAQ,EAAEM,QADZ;AAEE,IAAA,QAAQ,EAAEJ,QAFZ;AAGE,IAAA,GAAG,EAAEc,GAAG,IAAKb,OAAO,CAACS,OAAR,GAAkBI;AAHjC,KAKE,6BAAC,eAAD;AACE,IAAA,UAAU,EAAC,MADb;AAEE,IAAA,UAAU,EAAC,MAFb;AAGE,IAAA,YAAY,EAAC,WAHf;AAIE,IAAA,SAAS,EAAC;AAJZ,KAMGf,KANH,CALF,CAFF,CADF;AAmBD,CApCD;;eAsCeF,O","sourcesContent":["import React from 'react';\nimport { Text } from '@tecsinapse/react-core';\nimport { Container, TooltipSpan } from './styled';\n\nexport type ComputedType = { width?: number; height?: number };\nexport type Position = 'top' | 'bottom' | 'right' | 'left';\n\nexport interface ITooltip {\n title: string;\n position?: Position;\n children?: React.ReactNode;\n}\n\nconst Tooltip: React.FC<ITooltip> = ({\n children,\n title,\n position = 'bottom',\n}) => {\n const spanRef = React.useRef<HTMLSpanElement | null>();\n const [computed, setComputed] = React.useState<ComputedType | undefined>(\n undefined\n );\n\n React.useLayoutEffect(() => {\n setComputed({\n width: spanRef.current?.clientWidth,\n height: spanRef.current?.clientHeight,\n });\n }, []);\n\n return (\n <Container position={position}>\n {children}\n <TooltipSpan\n computed={computed}\n position={position}\n ref={ref => (spanRef.current = ref)}\n >\n <Text\n fontWeight=\"bold\"\n typography=\"base\"\n colorVariant=\"secondary\"\n colorTone=\"xlight\"\n >\n {title}\n </Text>\n </TooltipSpan>\n </Container>\n );\n};\n\nexport default Tooltip;\n"],"file":"Tooltip.js"}
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.17.7",
4
+ "version": "1.17.10",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "MIT",
@@ -17,7 +17,7 @@
17
17
  "@emotion/native": "^11.0.0",
18
18
  "@emotion/react": "^11.4.1",
19
19
  "@emotion/styled": "^11.3.0",
20
- "@tecsinapse/react-core": "^1.16.3",
20
+ "@tecsinapse/react-core": "^1.16.6",
21
21
  "@types/react-native": "^0.64.4",
22
22
  "react-native-vector-icons": "^9.1.0",
23
23
  "react-transition-group": "^4.4.2"
@@ -36,5 +36,5 @@
36
36
  "react-dom": "^16.8.0 || ^17.0.0",
37
37
  "react-native-web": "^0.17.1"
38
38
  },
39
- "gitHead": "190dab1b92539a51f19411f1102bdd9ee67c9959"
39
+ "gitHead": "e1145c70e523ec9a232d369ea9b6fac69e7733ba"
40
40
  }
@@ -8,6 +8,7 @@ export type Position = 'top' | 'bottom' | 'right' | 'left';
8
8
  export interface ITooltip {
9
9
  title: string;
10
10
  position?: Position;
11
+ children?: React.ReactNode;
11
12
  }
12
13
 
13
14
  const Tooltip: React.FC<ITooltip> = ({