@hypericon/mico 0.3.1 → 0.3.2

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,5 @@
1
1
  import m from "mithril";
2
- export type TableCellDisplayFn<T> = (item: T, index: number) => string | number | boolean | m.Vnode<any, any> | null | undefined;
2
+ export type TableCellDisplayFn<T> = (item: T, index: number) => m.Children;
3
3
  export type TableColumnDefinition<T> = {
4
4
  header: string | m.Vnode<any, any>;
5
5
  cell: TableCellDisplayFn<T>;
@@ -31,7 +31,7 @@ exports.typedTable = typedTable;
31
31
  exports.Table = {
32
32
  view({ attrs }) {
33
33
  var _a, _b, _c, _d;
34
- return (0, mithril_1.default)("table", {
34
+ return (0, mithril_1.default)("table.mico-table", {
35
35
  class: attrs.class,
36
36
  style: `${(_a = attrs.style) !== null && _a !== void 0 ? _a : ""} table-layout: ${((_b = attrs.layout) !== null && _b !== void 0 ? _b : "auto")};`,
37
37
  }, [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hypericon/mico",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "UI components and utilities with Mithril",
5
5
  "author": "Ed Johnson, Hypericon Ltd",
6
6
  "license": "MIT",
@@ -13,6 +13,7 @@
13
13
  "prepublishOnly": "npm run build",
14
14
  "predeploy": "npm run build-docs",
15
15
  "deploy": "git push origin master:deploy",
16
+ "publish-deploy": "npm publish && npm run deploy",
16
17
  "test": "echo \"Error: no test specified\" && exit 1"
17
18
  },
18
19
  "dependencies": {