@tamagui/tooltip 1.0.0-beta.7 → 1.0.1-beta.18
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/Tooltip.native.js +45 -0
- package/dist/cjs/Tooltip.native.js.map +7 -0
- package/dist/esm/Tooltip.native.js +22 -0
- package/dist/esm/Tooltip.native.js.map +7 -0
- package/dist/jsx/Tooltip.native.js +21 -0
- package/package.json +11 -11
- package/types/Tooltip.native.d.ts +8 -0
- package/types/Tooltip.native.d.ts.map +1 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var Tooltip_native_exports = {};
|
|
20
|
+
__export(Tooltip_native_exports, {
|
|
21
|
+
Tooltip: () => Tooltip,
|
|
22
|
+
TooltipSimple: () => TooltipSimple
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(Tooltip_native_exports);
|
|
25
|
+
var import_core = require("@tamagui/core");
|
|
26
|
+
const RenderChildren = /* @__PURE__ */ __name((props) => {
|
|
27
|
+
return props.children;
|
|
28
|
+
}, "RenderChildren");
|
|
29
|
+
const RenderNull = /* @__PURE__ */ __name((props) => {
|
|
30
|
+
return null;
|
|
31
|
+
}, "RenderNull");
|
|
32
|
+
const Tooltip = (0, import_core.withStaticProperties)(RenderChildren, {
|
|
33
|
+
Anchor: RenderChildren,
|
|
34
|
+
Arrow: RenderNull,
|
|
35
|
+
Close: RenderNull,
|
|
36
|
+
Content: RenderNull,
|
|
37
|
+
Trigger: RenderChildren
|
|
38
|
+
});
|
|
39
|
+
const TooltipSimple = RenderChildren;
|
|
40
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
+
0 && (module.exports = {
|
|
42
|
+
Tooltip,
|
|
43
|
+
TooltipSimple
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=Tooltip.native.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Tooltip.native.tsx"],
|
|
4
|
+
"sourcesContent": ["import { withStaticProperties } from '@tamagui/core'\n\n// no output on native for now\n// could have an option to long-press or similar to show in a context menu/drawer\n\nconst RenderChildren = (props: any) => {\n return props.children\n}\n\nconst RenderNull = (props: any) => {\n return null\n}\n\nexport const Tooltip = withStaticProperties(RenderChildren, {\n Anchor: RenderChildren,\n Arrow: RenderNull,\n Close: RenderNull,\n Content: RenderNull,\n Trigger: RenderChildren,\n})\n\nexport const TooltipSimple = RenderChildren\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAqC;AAKrC,MAAM,iBAAiB,wBAAC,UAAe;AACrC,SAAO,MAAM;AACf,GAFuB;AAIvB,MAAM,aAAa,wBAAC,UAAe;AACjC,SAAO;AACT,GAFmB;AAIZ,MAAM,UAAU,sCAAqB,gBAAgB;AAAA,EAC1D,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,OAAO;AAAA,EACP,SAAS;AAAA,EACT,SAAS;AACX,CAAC;AAEM,MAAM,gBAAgB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
import { withStaticProperties } from "@tamagui/core";
|
|
4
|
+
const RenderChildren = /* @__PURE__ */ __name((props) => {
|
|
5
|
+
return props.children;
|
|
6
|
+
}, "RenderChildren");
|
|
7
|
+
const RenderNull = /* @__PURE__ */ __name((props) => {
|
|
8
|
+
return null;
|
|
9
|
+
}, "RenderNull");
|
|
10
|
+
const Tooltip = withStaticProperties(RenderChildren, {
|
|
11
|
+
Anchor: RenderChildren,
|
|
12
|
+
Arrow: RenderNull,
|
|
13
|
+
Close: RenderNull,
|
|
14
|
+
Content: RenderNull,
|
|
15
|
+
Trigger: RenderChildren
|
|
16
|
+
});
|
|
17
|
+
const TooltipSimple = RenderChildren;
|
|
18
|
+
export {
|
|
19
|
+
Tooltip,
|
|
20
|
+
TooltipSimple
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=Tooltip.native.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Tooltip.native.tsx"],
|
|
4
|
+
"sourcesContent": ["import { withStaticProperties } from '@tamagui/core'\n\n// no output on native for now\n// could have an option to long-press or similar to show in a context menu/drawer\n\nconst RenderChildren = (props: any) => {\n return props.children\n}\n\nconst RenderNull = (props: any) => {\n return null\n}\n\nexport const Tooltip = withStaticProperties(RenderChildren, {\n Anchor: RenderChildren,\n Arrow: RenderNull,\n Close: RenderNull,\n Content: RenderNull,\n Trigger: RenderChildren,\n})\n\nexport const TooltipSimple = RenderChildren\n"],
|
|
5
|
+
"mappings": ";;AAAA;AAKA,MAAM,iBAAiB,wBAAC,UAAe;AACrC,SAAO,MAAM;AACf,GAFuB;AAIvB,MAAM,aAAa,wBAAC,UAAe;AACjC,SAAO;AACT,GAFmB;AAIZ,MAAM,UAAU,qBAAqB,gBAAgB;AAAA,EAC1D,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,OAAO;AAAA,EACP,SAAS;AAAA,EACT,SAAS;AACX,CAAC;AAEM,MAAM,gBAAgB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
import { withStaticProperties } from "@tamagui/core";
|
|
4
|
+
const RenderChildren = /* @__PURE__ */ __name((props) => {
|
|
5
|
+
return props.children;
|
|
6
|
+
}, "RenderChildren");
|
|
7
|
+
const RenderNull = /* @__PURE__ */ __name((props) => {
|
|
8
|
+
return null;
|
|
9
|
+
}, "RenderNull");
|
|
10
|
+
const Tooltip = withStaticProperties(RenderChildren, {
|
|
11
|
+
Anchor: RenderChildren,
|
|
12
|
+
Arrow: RenderNull,
|
|
13
|
+
Close: RenderNull,
|
|
14
|
+
Content: RenderNull,
|
|
15
|
+
Trigger: RenderChildren
|
|
16
|
+
});
|
|
17
|
+
const TooltipSimple = RenderChildren;
|
|
18
|
+
export {
|
|
19
|
+
Tooltip,
|
|
20
|
+
TooltipSimple
|
|
21
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/tooltip",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1-beta.18",
|
|
4
4
|
"sideEffects": true,
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"typings": "types",
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@floating-ui/react-dom-interactions": "^0.4.0",
|
|
22
|
-
"@tamagui/compose-refs": "^1.0.
|
|
23
|
-
"@tamagui/core": "^1.0.
|
|
24
|
-
"@tamagui/create-context": "^1.0.
|
|
25
|
-
"@tamagui/polyfill-dev": "^1.0.
|
|
26
|
-
"@tamagui/popover": "^1.0.
|
|
27
|
-
"@tamagui/popper": "^1.0.
|
|
28
|
-
"@tamagui/stacks": "^1.0.
|
|
29
|
-
"@tamagui/text": "^1.0.
|
|
30
|
-
"@tamagui/use-controllable-state": "^1.0.
|
|
22
|
+
"@tamagui/compose-refs": "^1.0.1-beta.18",
|
|
23
|
+
"@tamagui/core": "^1.0.1-beta.18",
|
|
24
|
+
"@tamagui/create-context": "^1.0.1-beta.18",
|
|
25
|
+
"@tamagui/polyfill-dev": "^1.0.1-beta.18",
|
|
26
|
+
"@tamagui/popover": "^1.0.1-beta.18",
|
|
27
|
+
"@tamagui/popper": "^1.0.1-beta.18",
|
|
28
|
+
"@tamagui/stacks": "^1.0.1-beta.18",
|
|
29
|
+
"@tamagui/text": "^1.0.1-beta.18",
|
|
30
|
+
"@tamagui/use-controllable-state": "^1.0.1-beta.18"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"react": "*",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"react-native": "*"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@tamagui/build": "^1.0.
|
|
38
|
+
"@tamagui/build": "^1.0.1-beta.18",
|
|
39
39
|
"@types/react-dom": "^18.0.3",
|
|
40
40
|
"@types/react-native": "^0.67.3",
|
|
41
41
|
"react": "*",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.native.d.ts","sourceRoot":"","sources":["../src/Tooltip.native.tsx"],"names":[],"mappings":"AAaA,eAAO,MAAM,OAAO,WARW,GAAG;oBAAH,GAAG;mBAIP,GAAG;mBAAH,GAAG;qBAAH,GAAG;qBAJC,GAAG;CAchC,CAAA;AAEF,eAAO,MAAM,aAAa,UAhBK,GAAG,QAgBS,CAAA"}
|