@spaced-out/ui-design-system 0.1.17 → 0.1.19

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/CHANGELOG.md CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.19](https://github.com/spaced-out/ui-design-system/compare/v0.1.18...v0.1.19) (2023-04-24)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * simple imports fix for table ([6f17475](https://github.com/spaced-out/ui-design-system/commit/6f17475308125e0858f5635af29663ac30b27a04))
11
+
12
+ ### [0.1.18](https://github.com/spaced-out/ui-design-system/compare/v0.1.17...v0.1.18) (2023-04-24)
13
+
14
+
15
+ ### Features
16
+
17
+ * simple imports from @spaced-out/ui-design-system/lib ([bafb40b](https://github.com/spaced-out/ui-design-system/commit/bafb40bdc447d07658b3a2fc1603cd81d913ef36))
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * fixed autoprefixer warning ([341a822](https://github.com/spaced-out/ui-design-system/commit/341a82271b4e251c7677e6f2d9eaf68fc49e2b8c))
23
+
5
24
  ### [0.1.17](https://github.com/spaced-out/ui-design-system/compare/v0.1.16...v0.1.17) (2023-04-24)
6
25
 
7
26
 
@@ -11,7 +11,7 @@
11
11
  .searchInputWrapper {
12
12
  display: flex;
13
13
  position: relative;
14
- align-items: end;
14
+ align-items: flex-end;
15
15
  height: fit-content;
16
16
  }
17
17
 
@@ -10,8 +10,8 @@ import {CircularLoader} from '../CircularLoader';
10
10
  import {BodyLarge, TEXT_COLORS} from '../Text';
11
11
 
12
12
  import {PaddedContentCell, SingleCell} from './Cell';
13
+ import type {GenericHeaderItems} from './DefaultTableHeader';
13
14
  import type {GenericObject} from './Table';
14
- import type {GenericHeaderItems} from './TableHeader';
15
15
 
16
16
  import css from './Table.module.css';
17
17
 
@@ -11,7 +11,7 @@ var _makeClassNameComponent = require("../../utils/makeClassNameComponent");
11
11
  var _Checkbox = require("../Checkbox");
12
12
  var _Icon = require("../Icon");
13
13
  var _Text = require("../Text");
14
- var _Row = require("./Row");
14
+ var _DefaultRow = require("./DefaultRow");
15
15
  var _TableModule = _interopRequireDefault(require("./Table.module.css"));
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -131,7 +131,7 @@ function DefaultTableHeader(props) {
131
131
  }));
132
132
  return /*#__PURE__*/React.createElement(BasicTableHead, {
133
133
  className: (0, _classify.default)(_TableModule.default.tableHeaderSortable, className)
134
- }, /*#__PURE__*/React.createElement(_Row.BasicRow, {
134
+ }, /*#__PURE__*/React.createElement(_DefaultRow.BasicRow, {
135
135
  className: _TableModule.default.defaultHeaderRow
136
136
  }, handleCheckboxClick && /*#__PURE__*/React.createElement(BasicHeadCell, {
137
137
  scope: "col"
@@ -10,8 +10,8 @@ import {Checkbox} from '../Checkbox';
10
10
  import {Icon} from '../Icon';
11
11
  import {SubTitleExtraSmall, TEXT_COLORS} from '../Text';
12
12
 
13
+ import {BasicRow} from './DefaultRow';
13
14
  import type {SortDirection} from './hooks';
14
- import {BasicRow} from './Row';
15
15
  import type {GenericObject} from './Table';
16
16
 
17
17
  import css from './Table.module.css';
@@ -10,8 +10,8 @@ var _get = _interopRequireDefault(require("lodash/get"));
10
10
  var _xor = _interopRequireDefault(require("lodash/xor"));
11
11
  var _classify = require("../../utils/classify");
12
12
  var _makeClassNameComponent = require("../../utils/makeClassNameComponent");
13
- var _Row = require("./Row");
14
- var _TableHeader = require("./TableHeader");
13
+ var _DefaultRow = require("./DefaultRow");
14
+ var _DefaultTableHeader = require("./DefaultTableHeader");
15
15
  var _TableModule = _interopRequireDefault(require("./Table.module.css"));
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
@@ -31,7 +31,7 @@ function StaticTable(props) {
31
31
  const {
32
32
  classNames,
33
33
  className,
34
- Row,
34
+ TableRow,
35
35
  entries,
36
36
  extras,
37
37
  rowKeys,
@@ -87,7 +87,7 @@ function StaticTable(props) {
87
87
  }, /*#__PURE__*/React.createElement(BasicTable, {
88
88
  "data-id": "basic-table",
89
89
  className: (0, _classify.classify)(className, classNames?.table)
90
- }, showHeader && /*#__PURE__*/React.createElement(_TableHeader.DefaultTableHeader, {
90
+ }, showHeader && /*#__PURE__*/React.createElement(_DefaultTableHeader.DefaultTableHeader, {
91
91
  className: (0, _classify.classify)(tableHeaderClassName, classNames?.tableHeader),
92
92
  sortable: sortable,
93
93
  columns: headers,
@@ -99,7 +99,7 @@ function StaticTable(props) {
99
99
  checked: selectedKeys == null || selectedKeys.length === 0 ? 'false' : selectedKeys.length < entries.length ? 'mixed' : 'true'
100
100
  }), /*#__PURE__*/React.createElement(BasicTableBody, {
101
101
  className: classNames?.tableBody
102
- }, isLoading || !entries.length ? /*#__PURE__*/React.createElement(_Row.EmptyRow, {
102
+ }, isLoading || !entries.length ? /*#__PURE__*/React.createElement(_DefaultRow.EmptyRow, {
103
103
  isLoading: isLoading,
104
104
  emptyText: emptyText,
105
105
  headersLength: handleHeaderCheckboxClick ? headers.length + 1 : headers.length,
@@ -111,7 +111,7 @@ function StaticTable(props) {
111
111
  }
112
112
  data;
113
113
  const selected = selectedKeys?.includes((0, _get.default)(data, idName)) ?? undefined;
114
- return Row ? /*#__PURE__*/React.createElement(Row, {
114
+ return TableRow ? /*#__PURE__*/React.createElement(TableRow, {
115
115
  key: key,
116
116
  data: data,
117
117
  headers: headers
@@ -121,7 +121,7 @@ function StaticTable(props) {
121
121
  sortedKeys: rowKeys ?? mappedKeys,
122
122
  selected: selected,
123
123
  disabled: disabled
124
- }) : /*#__PURE__*/React.createElement(_Row.DefaultRow, {
124
+ }) : /*#__PURE__*/React.createElement(_DefaultRow.DefaultRow, {
125
125
  key: key,
126
126
  data: data,
127
127
  extras: extras,
@@ -8,10 +8,10 @@ import {classify} from '../../utils/classify';
8
8
  import type {ClassNameComponent} from '../../utils/makeClassNameComponent';
9
9
  import {makeClassNameComponent} from '../../utils/makeClassNameComponent';
10
10
 
11
+ import {DefaultRow, EmptyRow} from './DefaultRow';
12
+ import {DefaultTableHeader} from './DefaultTableHeader';
11
13
  import type {SortDirection} from './hooks';
12
- import {DefaultRow, EmptyRow} from './Row';
13
14
  import type {GenericObject, TableProps} from './Table';
14
- import {DefaultTableHeader} from './TableHeader';
15
15
 
16
16
  import css from './Table.module.css';
17
17
 
@@ -40,7 +40,7 @@ export function StaticTable<Data: GenericObject, Extras: GenericObject>(props: {
40
40
  const {
41
41
  classNames,
42
42
  className,
43
- Row,
43
+ TableRow,
44
44
  entries,
45
45
  extras,
46
46
  rowKeys,
@@ -144,8 +144,8 @@ export function StaticTable<Data: GenericObject, Extras: GenericObject>(props: {
144
144
  const selected =
145
145
  selectedKeys?.includes(get(data, idName)) ?? undefined;
146
146
 
147
- return Row ? (
148
- <Row
147
+ return TableRow ? (
148
+ <TableRow
149
149
  key={key}
150
150
  data={data}
151
151
  headers={headers}
@@ -30,7 +30,7 @@ function Table(props) {
30
30
  // eslint-disable-next-line unused-imports/no-unused-vars
31
31
  classNames,
32
32
  // eslint-disable-next-line unused-imports/no-unused-vars
33
- Row,
33
+ TableRow,
34
34
  entries,
35
35
  // eslint-disable-next-line unused-imports/no-unused-vars
36
36
  extras,
@@ -2,11 +2,11 @@
2
2
 
3
3
  import * as React from 'react';
4
4
 
5
+ import type {TableRow} from './DefaultRow';
6
+ import type {GenericHeaderItems} from './DefaultTableHeader';
5
7
  import type {SortDirection} from './hooks';
6
8
  import {useSortableEntries} from './hooks';
7
- import type {TableRow} from './Row';
8
9
  import {StaticTable} from './StaticTable';
9
- import type {GenericHeaderItems} from './TableHeader';
10
10
 
11
11
  // type ClassNames = $ReadOnly<{wrapper?: string}>;
12
12
 
@@ -29,7 +29,7 @@ type ClassNames = $ReadOnly<{
29
29
  export type TableProps<T, U> = {
30
30
  classNames?: ClassNames,
31
31
  className?: string,
32
- Row?: TableRow<T, U>,
32
+ TableRow?: TableRow<T, U>,
33
33
  headers: GenericHeaderItems<T, U>,
34
34
  entries: Array<T>,
35
35
  extras?: U,
@@ -74,7 +74,7 @@ export function Table<Data: GenericObject, Extras: GenericObject>(
74
74
  // eslint-disable-next-line unused-imports/no-unused-vars
75
75
  classNames,
76
76
  // eslint-disable-next-line unused-imports/no-unused-vars
77
- Row,
77
+ TableRow,
78
78
  entries,
79
79
  // eslint-disable-next-line unused-imports/no-unused-vars
80
80
  extras,
@@ -14,14 +14,25 @@ Object.keys(_Cell).forEach(function (key) {
14
14
  }
15
15
  });
16
16
  });
17
- var _Row = require("./Row");
18
- Object.keys(_Row).forEach(function (key) {
17
+ var _DefaultRow = require("./DefaultRow");
18
+ Object.keys(_DefaultRow).forEach(function (key) {
19
19
  if (key === "default" || key === "__esModule") return;
20
- if (key in exports && exports[key] === _Row[key]) return;
20
+ if (key in exports && exports[key] === _DefaultRow[key]) return;
21
21
  Object.defineProperty(exports, key, {
22
22
  enumerable: true,
23
23
  get: function () {
24
- return _Row[key];
24
+ return _DefaultRow[key];
25
+ }
26
+ });
27
+ });
28
+ var _DefaultTableHeader = require("./DefaultTableHeader");
29
+ Object.keys(_DefaultTableHeader).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _DefaultTableHeader[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _DefaultTableHeader[key];
25
36
  }
26
37
  });
27
38
  });
@@ -46,15 +57,4 @@ Object.keys(_Table).forEach(function (key) {
46
57
  return _Table[key];
47
58
  }
48
59
  });
49
- });
50
- var _TableHeader = require("./TableHeader");
51
- Object.keys(_TableHeader).forEach(function (key) {
52
- if (key === "default" || key === "__esModule") return;
53
- if (key in exports && exports[key] === _TableHeader[key]) return;
54
- Object.defineProperty(exports, key, {
55
- enumerable: true,
56
- get: function () {
57
- return _TableHeader[key];
58
- }
59
- });
60
60
  });
@@ -14,7 +14,7 @@
14
14
  // export {Table} from './Table';
15
15
 
16
16
  export * from './Cell';
17
- export * from './Row';
17
+ export * from './DefaultRow';
18
+ export * from './DefaultTableHeader';
18
19
  export * from './StaticTable';
19
20
  export * from './Table';
20
- export * from './TableHeader';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/ui-design-system",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "main": "index.js",
5
5
  "description": "Sense UI components library",
6
6
  "author": {
File without changes