@imposium-hub/components 1.62.3 → 1.62.4
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/Tooltip.d.ts +2 -1
- package/dist/cjs/components/Tooltip.js.map +1 -1
- package/dist/cjs/components/button/Button.stories.d.ts +1 -0
- package/dist/cjs/components/button-group-field/ButtonGroupField.stories.d.ts +1 -0
- package/dist/cjs/components/button-menu/ButtonMenu.stories.d.ts +1 -0
- package/dist/cjs/components/card/Card.stories.d.ts +1 -0
- package/dist/cjs/components/checkbox-field/CheckboxField.stories.d.ts +1 -0
- package/dist/cjs/components/color-field/ColorFiled.stories.d.ts +1 -0
- package/dist/cjs/components/controlled-list/ControlledList.stories.d.ts +1 -0
- package/dist/cjs/components/field-wrapper/FieldWrapper.stories.d.ts +1 -0
- package/dist/cjs/components/h-rule/HRule.d.ts +1 -0
- package/dist/cjs/components/h-rule/HRule.stories.d.ts +1 -0
- package/dist/cjs/components/list-field/ListField.stories.d.ts +1 -0
- package/dist/cjs/components/modal/Modal.stories.d.ts +1 -0
- package/dist/cjs/components/number-field/NumberField.stories.d.ts +1 -0
- package/dist/cjs/components/section/Section.d.ts +1 -0
- package/dist/cjs/components/section/Section.stories.d.ts +1 -0
- package/dist/cjs/components/select-field/SelectField.stories.d.ts +1 -0
- package/dist/cjs/components/slider-field/SliderField.stories.d.ts +1 -0
- package/dist/cjs/components/text-area-field/TextAreaField.stories.d.ts +1 -0
- package/dist/cjs/components/text-field/TextField.stories.d.ts +1 -0
- package/dist/esm/components/Tooltip.d.ts +2 -1
- package/dist/esm/components/Tooltip.js.map +1 -1
- package/dist/esm/components/button/Button.stories.d.ts +1 -0
- package/dist/esm/components/button-group-field/ButtonGroupField.stories.d.ts +1 -0
- package/dist/esm/components/button-menu/ButtonMenu.stories.d.ts +1 -0
- package/dist/esm/components/card/Card.stories.d.ts +1 -0
- package/dist/esm/components/checkbox-field/CheckboxField.stories.d.ts +1 -0
- package/dist/esm/components/color-field/ColorFiled.stories.d.ts +1 -0
- package/dist/esm/components/controlled-list/ControlledList.stories.d.ts +1 -0
- package/dist/esm/components/field-wrapper/FieldWrapper.stories.d.ts +1 -0
- package/dist/esm/components/h-rule/HRule.d.ts +1 -0
- package/dist/esm/components/h-rule/HRule.stories.d.ts +1 -0
- package/dist/esm/components/list-field/ListField.stories.d.ts +1 -0
- package/dist/esm/components/modal/Modal.stories.d.ts +1 -0
- package/dist/esm/components/number-field/NumberField.stories.d.ts +1 -0
- package/dist/esm/components/section/Section.d.ts +1 -0
- package/dist/esm/components/section/Section.stories.d.ts +1 -0
- package/dist/esm/components/select-field/SelectField.stories.d.ts +1 -0
- package/dist/esm/components/slider-field/SliderField.stories.d.ts +1 -0
- package/dist/esm/components/text-area-field/TextAreaField.stories.d.ts +1 -0
- package/dist/esm/components/text-field/TextField.stories.d.ts +1 -0
- package/package.json +3 -3
- package/src/components/Tooltip.tsx +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../../src/components/Tooltip.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAC/B,kDAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"Tooltip.js","sourceRoot":"","sources":["../../../src/components/Tooltip.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA+B;AAC/B,kDAAsC;AACtC,gEAAoD;AAQ7C,IAAM,kBAAkB,GAAG,UAAC,EAAU,EAAE,MAA+B;IAC1E,IAAI,MAAM,EAAE;QACR,IAAM,OAAO,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC;QACrE,OAAO;YACH,UAAU,EAAE,OAAO;YACnB,UAAU,EAAE,EAAE;SACjB,CAAC;KACL;SAAM;QACH,OAAO,EAAE,CAAC;KAC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EAChD,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,2BAA2B,KAAK,EAAE,EAC7C,SAAS,EAAE,IAAI,EACf,MAAM,EAAC,OAAO,GAChB,CACL,CAAC;QAEF,OAAO,QAAQ,CAAC,YAAY,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;KAChE;SAAM;QACH,OAAO,IAAI,CAAC;KACf;AACL,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imposium-hub/components",
|
|
3
|
-
"version": "1.62.
|
|
3
|
+
"version": "1.62.4",
|
|
4
4
|
"description": "React & Typescript component / asset library for Imposium front-ends",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"react-resize-detector": "^6.7.1",
|
|
68
68
|
"react-spinners": "^0.6.1",
|
|
69
69
|
"react-table": "^7.7.0",
|
|
70
|
-
"react-tooltip": "
|
|
70
|
+
"react-tooltip": "^4.2.21",
|
|
71
71
|
"smpte-timecode": "^1.2.3"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"react-resize-detector": "^6.7.1",
|
|
120
120
|
"react-spinners": "^0.6.1",
|
|
121
121
|
"react-table": "^7.7.0",
|
|
122
|
-
"react-tooltip": "
|
|
122
|
+
"react-tooltip": "^4.2.21",
|
|
123
123
|
"run-sequence": "^2.2.1",
|
|
124
124
|
"sb": "^6.4.22",
|
|
125
125
|
"smpte-timecode": "^1.2.3",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as ReactDOM from 'react-dom';
|
|
3
|
-
import ReactTooltip from 'react-tooltip';
|
|
3
|
+
import ReactTooltip, { Place } from 'react-tooltip';
|
|
4
4
|
|
|
5
5
|
export interface IToolTipConfig {
|
|
6
6
|
content: string;
|
|
7
|
-
position?:
|
|
7
|
+
position?: Place;
|
|
8
8
|
theme?: string;
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -25,7 +25,7 @@ export const renderTooltip = (id: string, config: IToolTipConfig | string): any
|
|
|
25
25
|
|
|
26
26
|
if (config && tooltipLayer) {
|
|
27
27
|
let theme = 'light';
|
|
28
|
-
let place = 'top';
|
|
28
|
+
let place: Place = 'top';
|
|
29
29
|
|
|
30
30
|
if (typeof config === 'object') {
|
|
31
31
|
theme = config.theme ? config.theme : 'light';
|