telamonian преди 5 години
родител
ревизия
a882925580
променени са 3 файла, в които са добавени 12 реда и са изтрити 3 реда
  1. 2 1
      packages/htmlviewer-extension/package.json
  2. 3 0
      packages/htmlviewer-extension/tsconfig.json
  3. 7 2
      packages/ui-components/src/icon/jlicon.tsx

+ 2 - 1
packages/htmlviewer-extension/package.json

@@ -36,7 +36,8 @@
     "@jupyterlab/application": "^2.0.0-alpha.4",
     "@jupyterlab/apputils": "^2.0.0-alpha.4",
     "@jupyterlab/docregistry": "^2.0.0-alpha.4",
-    "@jupyterlab/htmlviewer": "^2.0.0-alpha.4"
+    "@jupyterlab/htmlviewer": "^2.0.0-alpha.4",
+    "@jupyterlab/ui-components": "^2.0.0-alpha.4"
   },
   "devDependencies": {
     "rimraf": "~3.0.0",

+ 3 - 0
packages/htmlviewer-extension/tsconfig.json

@@ -17,6 +17,9 @@
     },
     {
       "path": "../htmlviewer"
+    },
+    {
+      "path": "../ui-components"
     }
   ]
 }

+ 7 - 2
packages/ui-components/src/icon/jlicon.tsx

@@ -204,10 +204,15 @@ export namespace JLIcon {
      */
     className?: string;
 
+    /**
+     * The icon's outermost node, which acts as a container for the actual
+     * svg node. If container is not supplied, it will be created
+     */
     container?: HTMLElement;
+
     /**
-     * HTML element tag of the icon's outermost node, which acts as a
-     * container for the actual svg node
+     * HTML element tag used to create the icon's outermost container node,
+     * if no container is passed in
      */
     tag?: 'div' | 'span';