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

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 (84) hide show
  1. package/.cspell/custom-words.txt +3 -0
  2. package/.flowconfig +1 -1
  3. package/CHANGELOG.md +7 -0
  4. package/CONTRIBUTING.md +52 -6
  5. package/README.md +144 -8
  6. package/gulpfile.js +1 -0
  7. package/lib/components/AvatarGroup/AvatarGroup.js +4 -3
  8. package/lib/components/AvatarGroup/AvatarGroup.js.flow +119 -110
  9. package/lib/components/Badge/Badge.js +4 -3
  10. package/lib/components/Badge/Badge.js.flow +21 -21
  11. package/lib/components/Badge/index.js +11 -7
  12. package/lib/components/Badge/index.js.flow +1 -2
  13. package/lib/components/Banner/Banner.js +3 -2
  14. package/lib/components/Banner/Banner.js.flow +42 -35
  15. package/lib/components/Button/Button.js +50 -10
  16. package/lib/components/Button/Button.js.flow +87 -23
  17. package/lib/components/Button/Button.module.css +14 -0
  18. package/lib/components/ButtonTabs/ButtonTab/ButtonTab.js +3 -2
  19. package/lib/components/ButtonTabs/ButtonTab/ButtonTab.js.flow +48 -38
  20. package/lib/components/ButtonTabs/ButtonTabs.js +3 -2
  21. package/lib/components/ButtonTabs/ButtonTabs.js.flow +50 -41
  22. package/lib/components/Card/Card.js +16 -7
  23. package/lib/components/Card/Card.js.flow +73 -55
  24. package/lib/components/Chip/Chip.js +3 -2
  25. package/lib/components/Chip/Chip.js.flow +66 -59
  26. package/lib/components/CircularLoader/CircularLoader.js +9 -4
  27. package/lib/components/CircularLoader/CircularLoader.js.flow +38 -24
  28. package/lib/components/CollapsibleCard/CollapsibleCard.js +4 -3
  29. package/lib/components/CollapsibleCard/CollapsibleCard.js.flow +68 -59
  30. package/lib/components/Dropdown/Dropdown.js +4 -3
  31. package/lib/components/Dropdown/Dropdown.js.flow +83 -74
  32. package/lib/components/EmptyState/EmptyState.js +4 -3
  33. package/lib/components/EmptyState/EmptyState.js.flow +53 -44
  34. package/lib/components/ErrorMessage/ErrorMessage.js +4 -3
  35. package/lib/components/ErrorMessage/ErrorMessage.js.flow +58 -49
  36. package/lib/components/InContextAlert/InContextAlert.js +4 -3
  37. package/lib/components/InContextAlert/InContextAlert.js.flow +79 -73
  38. package/lib/components/InlineDropdown/InlineDropdown.js +4 -3
  39. package/lib/components/InlineDropdown/InlineDropdown.js.flow +94 -85
  40. package/lib/components/LinearLoader/LinearLoader.js +4 -3
  41. package/lib/components/LinearLoader/LinearLoader.js.flow +20 -18
  42. package/lib/components/Link/Link.js +8 -1
  43. package/lib/components/Link/Link.js.flow +44 -36
  44. package/lib/components/Notification/Notification.js +8 -6
  45. package/lib/components/Notification/Notification.js.flow +96 -84
  46. package/lib/components/OptionButton/OptionButton.js +7 -4
  47. package/lib/components/OptionButton/OptionButton.js.flow +69 -59
  48. package/lib/components/PageTitle/PageTitle.js +4 -3
  49. package/lib/components/PageTitle/PageTitle.js.flow +46 -44
  50. package/lib/components/Pagination/PaginationItem.js +2 -2
  51. package/lib/components/Pagination/PaginationItem.js.flow +2 -2
  52. package/lib/components/SearchInput/SearchInput.js +3 -2
  53. package/lib/components/SearchInput/SearchInput.js.flow +59 -50
  54. package/lib/components/SideMenuLink/SideMenuLink.js +4 -3
  55. package/lib/components/SideMenuLink/SideMenuLink.js.flow +54 -45
  56. package/lib/components/StatusIndicator/StatusIndicator.js +3 -2
  57. package/lib/components/StatusIndicator/StatusIndicator.js.flow +32 -23
  58. package/lib/components/SubMenu/SubMenu.js +4 -3
  59. package/lib/components/SubMenu/SubMenu.js.flow +41 -38
  60. package/lib/components/Table/StaticTable.js +3 -0
  61. package/lib/components/Table/StaticTable.js.flow +3 -0
  62. package/lib/components/Table/Table.js +10 -0
  63. package/lib/components/Table/Table.js.flow +10 -0
  64. package/lib/components/Table/hooks.js +1 -0
  65. package/lib/components/Table/hooks.js.flow +1 -0
  66. package/lib/components/Tabs/TabList/TabList.js +3 -2
  67. package/lib/components/Tabs/TabList/TabList.js.flow +127 -117
  68. package/lib/components/Toggle/index.js +11 -7
  69. package/lib/components/Toggle/index.js.flow +1 -1
  70. package/lib/components/Tooltip/Tooltip.js.flow +2 -2
  71. package/lib/components/index.js +511 -0
  72. package/lib/components/index.js.flow +48 -0
  73. package/lib/index.js +60 -0
  74. package/lib/index.js.flow +7 -0
  75. package/lib/styles/index.css +15 -0
  76. package/lib/styles/index.js +104 -0
  77. package/lib/styles/index.js.flow +12 -0
  78. package/lib/styles/typography.module.css +0 -1
  79. package/lib/styles/utils.module.css +26 -0
  80. package/lib/types/index.js +38 -0
  81. package/lib/types/index.js.flow +5 -0
  82. package/lib/utils/index.js +93 -0
  83. package/lib/utils/index.js.flow +10 -0
  84. package/package.json +2 -1
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _border = require("./variables/_border.js");
7
+ Object.keys(_border).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _border[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _border[key];
14
+ }
15
+ });
16
+ });
17
+ var _color = require("./variables/_color.js");
18
+ Object.keys(_color).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _color[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _color[key];
25
+ }
26
+ });
27
+ });
28
+ var _elevation = require("./variables/_elevation.js");
29
+ Object.keys(_elevation).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _elevation[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _elevation[key];
36
+ }
37
+ });
38
+ });
39
+ var _font = require("./variables/_font.js");
40
+ Object.keys(_font).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _font[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function () {
46
+ return _font[key];
47
+ }
48
+ });
49
+ });
50
+ var _motion = require("./variables/_motion.js");
51
+ Object.keys(_motion).forEach(function (key) {
52
+ if (key === "default" || key === "__esModule") return;
53
+ if (key in exports && exports[key] === _motion[key]) return;
54
+ Object.defineProperty(exports, key, {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _motion[key];
58
+ }
59
+ });
60
+ });
61
+ var _opacity = require("./variables/_opacity.js");
62
+ Object.keys(_opacity).forEach(function (key) {
63
+ if (key === "default" || key === "__esModule") return;
64
+ if (key in exports && exports[key] === _opacity[key]) return;
65
+ Object.defineProperty(exports, key, {
66
+ enumerable: true,
67
+ get: function () {
68
+ return _opacity[key];
69
+ }
70
+ });
71
+ });
72
+ var _shadow = require("./variables/_shadow.js");
73
+ Object.keys(_shadow).forEach(function (key) {
74
+ if (key === "default" || key === "__esModule") return;
75
+ if (key in exports && exports[key] === _shadow[key]) return;
76
+ Object.defineProperty(exports, key, {
77
+ enumerable: true,
78
+ get: function () {
79
+ return _shadow[key];
80
+ }
81
+ });
82
+ });
83
+ var _size = require("./variables/_size.js");
84
+ Object.keys(_size).forEach(function (key) {
85
+ if (key === "default" || key === "__esModule") return;
86
+ if (key in exports && exports[key] === _size[key]) return;
87
+ Object.defineProperty(exports, key, {
88
+ enumerable: true,
89
+ get: function () {
90
+ return _size[key];
91
+ }
92
+ });
93
+ });
94
+ var _space = require("./variables/_space.js");
95
+ Object.keys(_space).forEach(function (key) {
96
+ if (key === "default" || key === "__esModule") return;
97
+ if (key in exports && exports[key] === _space[key]) return;
98
+ Object.defineProperty(exports, key, {
99
+ enumerable: true,
100
+ get: function () {
101
+ return _space[key];
102
+ }
103
+ });
104
+ });
@@ -0,0 +1,12 @@
1
+ // @flow strict
2
+
3
+ export * from './variables/_border.js';
4
+ export * from './variables/_color.js';
5
+ export * from './variables/_elevation.js';
6
+ export * from './variables/_font.js';
7
+ export * from './variables/_motion.js';
8
+ export * from './variables/_opacity.js';
9
+ export * from './variables/_opacity.js';
10
+ export * from './variables/_shadow.js';
11
+ export * from './variables/_size.js';
12
+ export * from './variables/_space.js';
@@ -32,7 +32,6 @@
32
32
  fontLineHeight150,
33
33
  fontLineHeight170,
34
34
  fontLetterSpacing0,
35
- fontLetterSpacing0,
36
35
  fontLetterSpacingMinus1,
37
36
  fontLetterSpacingMinus2,
38
37
  fontLetterSpacingMinus4,
@@ -0,0 +1,26 @@
1
+ @value (
2
+ spaceHalfFluid,
3
+ spaceNegHalfFluid
4
+ ) from 'variables/_space.css';
5
+
6
+ /* This requires a relative parent */
7
+ .absoluteCenter {
8
+ position: absolute;
9
+ top: spaceHalfFluid;
10
+ left: spaceHalfFluid;
11
+ transform: translate(spaceNegHalfFluid, spaceNegHalfFluid);
12
+ }
13
+
14
+ /* This requires a relative parent */
15
+ .absoluteVerticalCenter {
16
+ position: absolute;
17
+ top: spaceHalfFluid;
18
+ transform: translateY(spaceNegHalfFluid);
19
+ }
20
+
21
+ /* This requires a relative parent */
22
+ .absoluteHorizontalCenter {
23
+ position: absolute;
24
+ left: spaceHalfFluid;
25
+ transform: translateX(spaceNegHalfFluid);
26
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _common = require("./common");
7
+ Object.keys(_common).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _common[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _common[key];
14
+ }
15
+ });
16
+ });
17
+ var _toast = require("./toast");
18
+ Object.keys(_toast).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _toast[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _toast[key];
25
+ }
26
+ });
27
+ });
28
+ var _typography = require("./typography");
29
+ Object.keys(_typography).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _typography[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _typography[key];
36
+ }
37
+ });
38
+ });
@@ -0,0 +1,5 @@
1
+ // @flow strict
2
+
3
+ export * from './common';
4
+ export * from './toast';
5
+ export * from './typography';
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _classify = require("./classify");
7
+ Object.keys(_classify).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _classify[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _classify[key];
14
+ }
15
+ });
16
+ });
17
+ var _clickAway = require("./click-away");
18
+ Object.keys(_clickAway).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _clickAway[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _clickAway[key];
25
+ }
26
+ });
27
+ });
28
+ var _dom = require("./dom");
29
+ Object.keys(_dom).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _dom[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _dom[key];
36
+ }
37
+ });
38
+ });
39
+ var _helpers = require("./helpers");
40
+ Object.keys(_helpers).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _helpers[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function () {
46
+ return _helpers[key];
47
+ }
48
+ });
49
+ });
50
+ var _makeClassNameComponent = require("./makeClassNameComponent");
51
+ Object.keys(_makeClassNameComponent).forEach(function (key) {
52
+ if (key === "default" || key === "__esModule") return;
53
+ if (key in exports && exports[key] === _makeClassNameComponent[key]) return;
54
+ Object.defineProperty(exports, key, {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _makeClassNameComponent[key];
58
+ }
59
+ });
60
+ });
61
+ var _menu = require("./menu");
62
+ Object.keys(_menu).forEach(function (key) {
63
+ if (key === "default" || key === "__esModule") return;
64
+ if (key in exports && exports[key] === _menu[key]) return;
65
+ Object.defineProperty(exports, key, {
66
+ enumerable: true,
67
+ get: function () {
68
+ return _menu[key];
69
+ }
70
+ });
71
+ });
72
+ var _mergeRefs = require("./merge-refs");
73
+ Object.keys(_mergeRefs).forEach(function (key) {
74
+ if (key === "default" || key === "__esModule") return;
75
+ if (key in exports && exports[key] === _mergeRefs[key]) return;
76
+ Object.defineProperty(exports, key, {
77
+ enumerable: true,
78
+ get: function () {
79
+ return _mergeRefs[key];
80
+ }
81
+ });
82
+ });
83
+ var _string = require("./string");
84
+ Object.keys(_string).forEach(function (key) {
85
+ if (key === "default" || key === "__esModule") return;
86
+ if (key in exports && exports[key] === _string[key]) return;
87
+ Object.defineProperty(exports, key, {
88
+ enumerable: true,
89
+ get: function () {
90
+ return _string[key];
91
+ }
92
+ });
93
+ });
@@ -0,0 +1,10 @@
1
+ // @flow strict
2
+
3
+ export * from './classify';
4
+ export * from './click-away';
5
+ export * from './dom';
6
+ export * from './helpers';
7
+ export * from './makeClassNameComponent';
8
+ export * from './menu';
9
+ export * from './merge-refs';
10
+ export * from './string';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/ui-design-system",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "main": "index.js",
5
5
  "description": "Sense UI components library",
6
6
  "author": {
@@ -14,6 +14,7 @@
14
14
  "storybook:export": "yarn build:style-variables && rimraf storybook-static && build-storybook",
15
15
  "build-storybook": "yarn build:style-variables && rimraf storybook-static && build-storybook",
16
16
  "generate": "node ./scripts/create-component",
17
+ "generateHook": "node ./scripts/create-hook",
17
18
  "prepublishOnly": "yarn build",
18
19
  "release": "yarn build:changelog && yarn publish",
19
20
  "build:changelog": "standard-version",