@spaced-out/ui-design-system 0.1.32 → 0.1.34

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 (36) hide show
  1. package/.cspell/custom-words.txt +1 -0
  2. package/.github/workflows/publish_to_npm.yml +1 -1
  3. package/CHANGELOG.md +19 -0
  4. package/lib/components/Badge/Badge.js +3 -3
  5. package/lib/components/Badge/Badge.js.flow +3 -3
  6. package/lib/components/Badge/Badge.module.css +6 -0
  7. package/lib/components/Dialog/index.js +11 -31
  8. package/lib/components/Dialog/index.js.flow +1 -13
  9. package/lib/components/FileUpload/FileBlock/FileBlock.js +111 -0
  10. package/lib/components/FileUpload/FileBlock/FileBlock.js.flow +139 -0
  11. package/lib/components/FileUpload/FileBlock/index.js +16 -0
  12. package/lib/components/FileUpload/FileBlock/index.js.flow +3 -0
  13. package/lib/components/FileUpload/FileUpload.js +5 -98
  14. package/lib/components/FileUpload/FileUpload.js.flow +5 -107
  15. package/lib/components/FileUpload/FileUpload.module.css +1 -1
  16. package/lib/components/FileUpload/index.js +11 -0
  17. package/lib/components/FileUpload/index.js.flow +1 -0
  18. package/lib/components/Stepper/Step/Step.js +63 -0
  19. package/lib/components/Stepper/Step/Step.js.flow +101 -0
  20. package/lib/components/Stepper/Step/StepContent.js +30 -0
  21. package/lib/components/Stepper/Step/StepContent.js.flow +40 -0
  22. package/lib/components/{CodeBlock/CodeBlock.js → Stepper/Step/StepLabel.js} +18 -11
  23. package/lib/components/Stepper/Step/StepLabel.js.flow +40 -0
  24. package/lib/components/Stepper/Step/index.js +38 -0
  25. package/lib/components/Stepper/Step/index.js.flow +5 -0
  26. package/lib/components/Stepper/Stepper.js +48 -0
  27. package/lib/components/Stepper/Stepper.js.flow +64 -0
  28. package/lib/components/Stepper/Stepper.module.css +110 -0
  29. package/lib/components/Stepper/index.js +27 -0
  30. package/lib/components/Stepper/index.js.flow +4 -0
  31. package/lib/components/index.js +11 -11
  32. package/lib/components/index.js.flow +1 -1
  33. package/package.json +1 -2
  34. package/lib/components/CodeBlock/CodeBlock.js.flow +0 -20
  35. package/lib/components/CodeBlock/index.js +0 -12
  36. package/lib/components/CodeBlock/index.js.flow +0 -3
@@ -0,0 +1,110 @@
1
+ @value (
2
+ colorFillPrimary,
3
+ colorSuccessDark,
4
+ colorBackgroundTertiary,
5
+ colorFillDisabled,
6
+ colorTextSecondary,
7
+ colorTextPrimary,
8
+ colorTextDisabled,
9
+ colorTextInversePrimary,
10
+ colorBorderSecondary
11
+ ) from '../../styles/variables/_color.css';
12
+ @value (
13
+ size24,
14
+ sizeFluid
15
+ ) from '../../styles/variables/_size.css';
16
+ @value (
17
+ spaceMedium,
18
+ spaceSmall,
19
+ spaceXXSmall
20
+ ) from '../../styles/variables/_space.css';
21
+ @value (
22
+ borderWidthPrimary,
23
+ borderRadiusCircle
24
+ ) from '../../styles/variables/_border.css';
25
+
26
+ .stepperWrapper {
27
+ display: flex;
28
+ flex-direction: row;
29
+ justify-content: space-between;
30
+ gap: spaceXXSmall;
31
+ }
32
+
33
+ .stepperWrapper.vertical {
34
+ flex-direction: column;
35
+ gap: spaceMedium;
36
+ justify-content: initial;
37
+ }
38
+
39
+ .stepWrapper {
40
+ position: relative;
41
+ display: flex;
42
+ gap: spaceSmall;
43
+ width: sizeFluid;
44
+ }
45
+
46
+ .stepWrapperCounter {
47
+ display: flex;
48
+ composes: motionEaseInEaseOut from '../../styles/animation.module.css';
49
+ composes: subTitleExtraSmall from '../../styles/typography.module.css';
50
+ height: size24;
51
+ width: size24;
52
+ min-height: size24;
53
+ min-width: size24;
54
+ justify-content: center;
55
+ align-items: center;
56
+ border-radius: borderRadiusCircle;
57
+ background-color: transparent;
58
+ border: borderWidthPrimary solid colorBorderSecondary;
59
+ color: colorTextSecondary;
60
+ }
61
+
62
+ .stepWrapperCounter.selected {
63
+ background-color: colorFillPrimary;
64
+ border: borderWidthPrimary solid transparent;
65
+ color: colorTextInversePrimary;
66
+ }
67
+
68
+ .stepWrapperCounter.completed {
69
+ background-color: colorSuccessDark;
70
+ border: borderWidthPrimary solid transparent;
71
+ color: colorTextInversePrimary;
72
+ }
73
+
74
+ .stepWrapperCounter.disabled {
75
+ background-color: colorFillDisabled;
76
+ border: borderWidthPrimary solid transparent;
77
+ color: colorTextDisabled;
78
+ }
79
+
80
+ .stepContent {
81
+ display: flex;
82
+ flex-flow: column;
83
+ gap: spaceXXSmall;
84
+ }
85
+
86
+ .stepLabelWrapper {
87
+ composes: subTitleSmall from '../../styles/typography.module.css';
88
+ color: colorTextSecondary;
89
+ }
90
+
91
+ .stepLabelWrapper.active {
92
+ color: colorTextPrimary;
93
+ }
94
+
95
+ .stepLabelWrapper.disabled {
96
+ color: colorTextDisabled;
97
+ }
98
+
99
+ .stepContentWrapper {
100
+ composes: bodySmall from '../../styles/typography.module.css';
101
+ color: colorTextSecondary;
102
+ }
103
+
104
+ .stepContentWrapper.disabled {
105
+ color: colorTextDisabled;
106
+ }
107
+
108
+ .clickable {
109
+ cursor: pointer;
110
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _Step = require("./Step");
7
+ Object.keys(_Step).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _Step[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _Step[key];
14
+ }
15
+ });
16
+ });
17
+ var _Stepper = require("./Stepper");
18
+ Object.keys(_Stepper).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _Stepper[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _Stepper[key];
25
+ }
26
+ });
27
+ });
@@ -0,0 +1,4 @@
1
+ // @flow strict
2
+
3
+ export * from './Step';
4
+ export * from './Stepper';
@@ -124,17 +124,6 @@ Object.keys(_CircularLoader).forEach(function (key) {
124
124
  }
125
125
  });
126
126
  });
127
- var _CodeBlock = require("./CodeBlock");
128
- Object.keys(_CodeBlock).forEach(function (key) {
129
- if (key === "default" || key === "__esModule") return;
130
- if (key in exports && exports[key] === _CodeBlock[key]) return;
131
- Object.defineProperty(exports, key, {
132
- enumerable: true,
133
- get: function () {
134
- return _CodeBlock[key];
135
- }
136
- });
137
- });
138
127
  var _CollapsibleCard = require("./CollapsibleCard");
139
128
  Object.keys(_CollapsibleCard).forEach(function (key) {
140
129
  if (key === "default" || key === "__esModule") return;
@@ -421,6 +410,17 @@ Object.keys(_StatusIndicator).forEach(function (key) {
421
410
  }
422
411
  });
423
412
  });
413
+ var _Stepper = require("./Stepper");
414
+ Object.keys(_Stepper).forEach(function (key) {
415
+ if (key === "default" || key === "__esModule") return;
416
+ if (key in exports && exports[key] === _Stepper[key]) return;
417
+ Object.defineProperty(exports, key, {
418
+ enumerable: true,
419
+ get: function () {
420
+ return _Stepper[key];
421
+ }
422
+ });
423
+ });
424
424
  var _SubMenu = require("./SubMenu");
425
425
  Object.keys(_SubMenu).forEach(function (key) {
426
426
  if (key === "default" || key === "__esModule") return;
@@ -11,7 +11,6 @@ export * from './Card';
11
11
  export * from './Checkbox';
12
12
  export * from './Chip';
13
13
  export * from './CircularLoader';
14
- export * from './CodeBlock';
15
14
  export * from './CollapsibleCard';
16
15
  export * from './ConditionalWrapper';
17
16
  export * from './Dialog';
@@ -38,6 +37,7 @@ export * from './RadioButton';
38
37
  export * from './SearchInput';
39
38
  export * from './SideMenuLink';
40
39
  export * from './StatusIndicator';
40
+ export * from './Stepper';
41
41
  export * from './SubMenu';
42
42
  export * from './Table';
43
43
  export * from './Tabs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaced-out/ui-design-system",
3
- "version": "0.1.32",
3
+ "version": "0.1.34",
4
4
  "main": "index.js",
5
5
  "description": "Sense UI components library",
6
6
  "author": {
@@ -101,7 +101,6 @@
101
101
  "paths.macro": "^3.0.1",
102
102
  "prettier": "^2.5.1",
103
103
  "react": "^16.14.0",
104
- "react-code-blocks": "^0.0.9-0",
105
104
  "react-dom": "^16.14.0",
106
105
  "rimraf": "^3.0.2",
107
106
  "simple-git": "^3.12.0",
@@ -1,20 +0,0 @@
1
- // @flow strict
2
-
3
- import * as React from 'react';
4
- // $FlowFixMe[untyped-import]
5
- import {CodeBlock as ReactCodeBlock, dracula} from 'react-code-blocks';
6
-
7
-
8
- type CodeBlockProps = {
9
- children?: React.Node,
10
- language?: string,
11
- };
12
-
13
- export const CodeBlock = ({children, ...props}: CodeBlockProps): React.Node => (
14
- <ReactCodeBlock
15
- text={children}
16
- showLineNumbers={false}
17
- theme={dracula}
18
- {...props}
19
- ></ReactCodeBlock>
20
- );
@@ -1,12 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "CodeBlock", {
7
- enumerable: true,
8
- get: function () {
9
- return _CodeBlock.CodeBlock;
10
- }
11
- });
12
- var _CodeBlock = require("./CodeBlock");
@@ -1,3 +0,0 @@
1
- // @flow strict
2
-
3
- export {CodeBlock} from './CodeBlock';