@spaced-out/ui-design-system 0.1.2 → 0.1.4

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.
Files changed (30) hide show
  1. package/.cspell/custom-words.txt +5 -0
  2. package/CHANGELOG.md +25 -0
  3. package/lib/components/Avatar/Avatar.js +4 -3
  4. package/lib/components/Avatar/Avatar.js.flow +50 -43
  5. package/lib/components/AvatarGroup/AvatarGroup.js +4 -2
  6. package/lib/components/AvatarGroup/AvatarGroup.js.flow +3 -0
  7. package/lib/components/ErrorMessage/ErrorImages/ForbiddenImage.js +9 -9
  8. package/lib/components/ErrorMessage/ErrorImages/ForbiddenImage.js.flow +9 -9
  9. package/lib/components/ErrorMessage/ErrorImages/NotFoundImage.js +15 -15
  10. package/lib/components/ErrorMessage/ErrorImages/NotFoundImage.js.flow +14 -14
  11. package/lib/components/ErrorMessage/ErrorImages/ServerErrorImage.js +42 -42
  12. package/lib/components/ErrorMessage/ErrorImages/ServerErrorImage.js.flow +42 -42
  13. package/lib/components/ErrorMessage/ErrorImages/UnauthorizedImage.js +4 -4
  14. package/lib/components/ErrorMessage/ErrorImages/UnauthorizedImage.js.flow +4 -4
  15. package/lib/components/Link/Link.js +78 -0
  16. package/lib/components/Link/Link.js.flow +111 -0
  17. package/lib/components/Link/index.js +16 -0
  18. package/lib/components/Link/index.js.flow +3 -0
  19. package/lib/components/Panel/Panel.js +4 -2
  20. package/lib/components/Panel/Panel.js.flow +3 -0
  21. package/lib/components/SubMenu/SubMenu.module.css +1 -1
  22. package/lib/components/Table/StaticTable.js +14 -7
  23. package/lib/components/Table/StaticTable.js.flow +16 -10
  24. package/lib/components/Table/Table.js +1 -0
  25. package/lib/components/Table/Table.js.flow +10 -0
  26. package/lib/components/Table/Table.module.css +11 -10
  27. package/lib/components/Table/TableHeader.js +1 -2
  28. package/lib/components/Table/TableHeader.js.flow +1 -8
  29. package/lib/styles/typography.module.css +24 -1
  30. package/package.json +1 -1
@@ -21,10 +21,11 @@
21
21
  }
22
22
 
23
23
  .tableContainer {
24
+ --border-radius: borderRadiusMedium;
24
25
  composes: borderPrimary from '../../styles/border.module.css';
25
26
  width: sizeFluid;
26
27
  overflow-x: scroll;
27
- border-radius: borderRadiusMedium;
28
+ border-radius: var(--border-radius);
28
29
  }
29
30
 
30
31
  .defaultTable {
@@ -33,7 +34,7 @@
33
34
  overflow-x: scroll;
34
35
  border-collapse: collapse;
35
36
  box-sizing: border-box;
36
- border-radius: borderRadiusMedium;
37
+ border-radius: var(--border-radius);
37
38
  box-shadow: borderWidthNone borderWidthNone borderWidthNone borderWidthPrimary
38
39
  colorBorderPrimary;
39
40
  table-layout: fixed;
@@ -41,8 +42,8 @@
41
42
  }
42
43
  .defaultTableBody {
43
44
  flex-flow: column;
44
- border-radius: borderRadiusNone borderRadiusNone borderRadiusMedium
45
- borderRadiusMedium;
45
+ border-radius: borderRadiusNone borderRadiusNone var(--border-radius)
46
+ var(--border-radius);
46
47
  background: colorBackgroundTertiary;
47
48
  }
48
49
 
@@ -142,11 +143,11 @@
142
143
  }
143
144
 
144
145
  .defaultTable .defaultRow:last-child td:first-child {
145
- border-bottom-left-radius: borderRadiusMedium;
146
+ border-bottom-left-radius: var(--border-radius);
146
147
  }
147
148
 
148
149
  .defaultTable .defaultRow:last-child td:last-child {
149
- border-bottom-right-radius: borderRadiusMedium;
150
+ border-bottom-right-radius: var(--border-radius);
150
151
  }
151
152
 
152
153
  .defaultTable .defaultRow:last-child {
@@ -188,7 +189,7 @@ th:first-child {
188
189
 
189
190
  .defaultTableHead {
190
191
  flex-flow: column;
191
- border-radius: borderRadiusMedium borderRadiusMedium borderRadiusNone
192
+ border-radius: var(--border-radius) var(--border-radius) borderRadiusNone
192
193
  borderRadiusNone;
193
194
  composes: borderBottomPrimary from '../../styles/border.module.css';
194
195
  padding: spaceSmall;
@@ -197,7 +198,7 @@ th:first-child {
197
198
  .defaultHeaderRow {
198
199
  box-sizing: border-box;
199
200
  background: colorBackgroundPrimary;
200
- border-radius: borderRadiusMedium borderRadiusMedium borderRadiusNone
201
+ border-radius: var(--border-radius) var(--border-radius) borderRadiusNone
201
202
  borderRadiusNone;
202
203
  }
203
204
 
@@ -227,11 +228,11 @@ th:first-child {
227
228
  }
228
229
 
229
230
  .defaultHeaderCell:first-child {
230
- border-top-left-radius: borderRadiusMedium;
231
+ border-top-left-radius: var(--border-radius);
231
232
  }
232
233
 
233
234
  .defaultHeaderCell:last-child {
234
- border-top-right-radius: borderRadiusMedium;
235
+ border-top-right-radius: var(--border-radius);
235
236
  }
236
237
 
237
238
  .defaultHeaderCell:not(.selectedHeader):hover {
@@ -55,7 +55,6 @@ const SortIcon = _ref => {
55
55
  };
56
56
  function DefaultTableHeader(props) {
57
57
  const {
58
- tableHeaderClassName,
59
58
  className,
60
59
  sortable = false,
61
60
  columns,
@@ -129,7 +128,7 @@ function DefaultTableHeader(props) {
129
128
  }, filterIcon))));
130
129
  }));
131
130
  return /*#__PURE__*/React.createElement(BasicTableHead, {
132
- className: (0, _classify.default)(_TableModule.default.tableHeaderSortable, tableHeaderClassName, className)
131
+ className: (0, _classify.default)(_TableModule.default.tableHeaderSortable, className)
133
132
  }, /*#__PURE__*/React.createElement(_Row.BasicRow, {
134
133
  className: _TableModule.default.defaultHeaderRow
135
134
  }, handleCheckboxClick && /*#__PURE__*/React.createElement(BasicHeadCell, {
@@ -104,7 +104,6 @@ export function DefaultTableHeader<T: GenericObject, U: GenericObject>(
104
104
  props: TableHeaderProps<T, U>,
105
105
  ): React.Node {
106
106
  const {
107
- tableHeaderClassName,
108
107
  className,
109
108
  sortable = false,
110
109
  columns,
@@ -208,13 +207,7 @@ export function DefaultTableHeader<T: GenericObject, U: GenericObject>(
208
207
  );
209
208
 
210
209
  return (
211
- <BasicTableHead
212
- className={classify(
213
- css.tableHeaderSortable,
214
- tableHeaderClassName,
215
- className,
216
- )}
217
- >
210
+ <BasicTableHead className={classify(css.tableHeaderSortable, className)}>
218
211
  <BasicRow className={css.defaultHeaderRow}>
219
212
  {handleCheckboxClick && (
220
213
  <BasicHeadCell scope="col">
@@ -11,7 +11,8 @@
11
11
  colorTextDanger,
12
12
  colorTextInversePrimary,
13
13
  colorTextInverseSecondary,
14
- colorInformationLightest
14
+ colorInformationLightest,
15
+ colorFocusPrimary
15
16
  ) from 'variables/_color.css';
16
17
 
17
18
  @value (
@@ -44,6 +45,8 @@
44
45
 
45
46
  @value (spaceXXSmall, spaceNone) from 'variables/_space.css';
46
47
 
48
+ @value (borderWidthNone, borderWidthTertiary, borderRadiusXSmall) from 'variables/_border.css';
49
+
47
50
  .baseType {
48
51
  /* Design system uses this font */
49
52
  font-family: 'Centra No 2';
@@ -243,3 +246,23 @@
243
246
  background-color: colorInformationLightest;
244
247
  padding: spaceNone calc(spaceXXSmall / 4);
245
248
  }
249
+
250
+ .link {
251
+ border-radius: calc(borderRadiusXSmall / 2);
252
+ cursor: pointer;
253
+ }
254
+
255
+ .underline {
256
+ text-decoration: underline;
257
+ }
258
+
259
+ .link:focus {
260
+ outline: none;
261
+ box-shadow: borderWidthNone borderWidthNone borderWidthNone
262
+ borderWidthTertiary colorFocusPrimary;
263
+ }
264
+
265
+ .disabled {
266
+ pointer-events: none;
267
+ color: colorTextDisabled;
268
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/ui-design-system",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "main": "index.js",
5
5
  "description": "Sense UI components library",
6
6
  "author": {