roamjs-components 0.88.0 → 0.88.1

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,5 +1,9 @@
1
+ import { Tooltip } from "@blueprintjs/core";
1
2
  import React from "react";
2
- declare const Description: ({ description, }: {
3
+ declare type TooltipInteractionKind = React.ComponentProps<typeof Tooltip>["interactionKind"];
4
+ declare type DescriptionProps = {
3
5
  description: React.ReactNode;
4
- }) => React.ReactElement;
6
+ interactionKind?: TooltipInteractionKind;
7
+ };
8
+ declare const Description: ({ description, interactionKind, }: DescriptionProps) => React.ReactElement;
5
9
  export default Description;
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const core_1 = require("@blueprintjs/core");
5
5
  const react_1 = tslib_1.__importDefault(require("react"));
6
- const Description = ({ description, }) => {
6
+ const Description = ({ description, interactionKind = core_1.PopoverInteractionKind.HOVER_TARGET_ONLY, }) => {
7
7
  return (react_1.default.createElement("span", { style: {
8
8
  marginLeft: 12,
9
9
  display: "inline-block",
10
10
  opacity: 0.8,
11
11
  verticalAlign: "text-bottom",
12
12
  } },
13
- react_1.default.createElement(core_1.Tooltip, { content: react_1.default.createElement("span", { style: { maxWidth: 400, display: "inline-block" } }, description) },
13
+ react_1.default.createElement(core_1.Tooltip, { interactionKind: interactionKind, content: react_1.default.createElement("span", { style: { maxWidth: 400, display: "inline-block" } }, description) },
14
14
  react_1.default.createElement(core_1.Icon, { icon: "info-sign", iconSize: 12 }))));
15
15
  };
16
16
  exports.default = Description;
@@ -1 +1 @@
1
- {"version":3,"file":"Description.js","sourceRoot":"","sources":["../../src/components/Description.tsx"],"names":[],"mappings":";;;AAAA,4CAAkD;AAClD,0DAA0B;AAE1B,MAAM,WAAW,GAAG,CAAC,EACnB,WAAW,GAGZ,EAAsB,EAAE;IACvB,OAAO,CACL,wCACE,KAAK,EAAE;YACL,UAAU,EAAE,EAAE;YACd,OAAO,EAAE,cAAc;YACvB,OAAO,EAAE,GAAG;YACZ,aAAa,EAAE,aAAa;SAC7B;QAED,8BAAC,cAAO,IACN,OAAO,EACL,wCAAM,KAAK,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,cAAc,EAAE,IACpD,WAAW,CACP;YAGT,8BAAC,WAAI,IAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,GAAI,CACjC,CACL,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,WAAW,CAAC","sourcesContent":["import { Tooltip, Icon } from \"@blueprintjs/core\";\nimport React from \"react\";\n\nconst Description = ({\n description,\n}: {\n description: React.ReactNode;\n}): React.ReactElement => {\n return (\n <span\n style={{\n marginLeft: 12,\n display: \"inline-block\",\n opacity: 0.8,\n verticalAlign: \"text-bottom\",\n }}\n >\n <Tooltip\n content={\n <span style={{ maxWidth: 400, display: \"inline-block\" }}>\n {description}\n </span>\n }\n >\n <Icon icon={\"info-sign\"} iconSize={12} />\n </Tooltip>\n </span>\n );\n};\n\nexport default Description;\n"]}
1
+ {"version":3,"file":"Description.js","sourceRoot":"","sources":["../../src/components/Description.tsx"],"names":[],"mappings":";;;AAAA,4CAA0E;AAC1E,0DAA0B;AAW1B,MAAM,WAAW,GAAG,CAAC,EACnB,WAAW,EACX,eAAe,GAAG,6BAAsB,CAAC,iBAAiB,GACzC,EAAsB,EAAE;IACzC,OAAO,CACL,wCACE,KAAK,EAAE;YACL,UAAU,EAAE,EAAE;YACd,OAAO,EAAE,cAAc;YACvB,OAAO,EAAE,GAAG;YACZ,aAAa,EAAE,aAAa;SAC7B;QAED,8BAAC,cAAO,IACN,eAAe,EAAE,eAAe,EAChC,OAAO,EACL,wCAAM,KAAK,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,cAAc,EAAE,IACpD,WAAW,CACP;YAGT,8BAAC,WAAI,IAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,GAAI,CACjC,CACL,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,WAAW,CAAC","sourcesContent":["import { Tooltip, Icon, PopoverInteractionKind } from \"@blueprintjs/core\";\nimport React from \"react\";\n\ntype TooltipInteractionKind = React.ComponentProps<\n typeof Tooltip\n>[\"interactionKind\"];\n\ntype DescriptionProps = {\n description: React.ReactNode;\n interactionKind?: TooltipInteractionKind;\n};\n\nconst Description = ({\n description,\n interactionKind = PopoverInteractionKind.HOVER_TARGET_ONLY,\n}: DescriptionProps): React.ReactElement => {\n return (\n <span\n style={{\n marginLeft: 12,\n display: \"inline-block\",\n opacity: 0.8,\n verticalAlign: \"text-bottom\",\n }}\n >\n <Tooltip\n interactionKind={interactionKind}\n content={\n <span style={{ maxWidth: 400, display: \"inline-block\" }}>\n {description}\n </span>\n }\n >\n <Icon icon={\"info-sign\"} iconSize={12} />\n </Tooltip>\n </span>\n );\n};\n\nexport default Description;\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "roamjs-components",
3
3
  "description": "Expansive toolset, utilities, & components for developing RoamJS extensions.",
4
- "version": "0.88.0",
4
+ "version": "0.88.1",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "scripts": {