@spaced-out/ui-design-system 0.1.31 → 0.1.33

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 (31) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/lib/components/Badge/Badge.js +3 -3
  3. package/lib/components/Badge/Badge.js.flow +3 -3
  4. package/lib/components/Badge/Badge.module.css +6 -0
  5. package/lib/components/Dialog/index.js +11 -31
  6. package/lib/components/Dialog/index.js.flow +1 -13
  7. package/lib/components/FileUpload/FileBlock/FileBlock.js +111 -0
  8. package/lib/components/FileUpload/FileBlock/FileBlock.js.flow +139 -0
  9. package/lib/components/FileUpload/FileBlock/index.js +16 -0
  10. package/lib/components/FileUpload/FileBlock/index.js.flow +3 -0
  11. package/lib/components/FileUpload/FileUpload.js +5 -98
  12. package/lib/components/FileUpload/FileUpload.js.flow +5 -107
  13. package/lib/components/FileUpload/FileUpload.module.css +4 -3
  14. package/lib/components/FileUpload/index.js +11 -0
  15. package/lib/components/FileUpload/index.js.flow +1 -0
  16. package/lib/components/Stepper/Step/Step.js +63 -0
  17. package/lib/components/Stepper/Step/Step.js.flow +101 -0
  18. package/lib/components/Stepper/Step/StepContent.js +30 -0
  19. package/lib/components/Stepper/Step/StepContent.js.flow +40 -0
  20. package/lib/components/Stepper/Step/StepLabel.js +30 -0
  21. package/lib/components/Stepper/Step/StepLabel.js.flow +40 -0
  22. package/lib/components/Stepper/Step/index.js +38 -0
  23. package/lib/components/Stepper/Step/index.js.flow +5 -0
  24. package/lib/components/Stepper/Stepper.js +48 -0
  25. package/lib/components/Stepper/Stepper.js.flow +64 -0
  26. package/lib/components/Stepper/Stepper.module.css +110 -0
  27. package/lib/components/Stepper/index.js +27 -0
  28. package/lib/components/Stepper/index.js.flow +4 -0
  29. package/lib/components/index.js +11 -0
  30. package/lib/components/index.js.flow +1 -0
  31. package/package.json +1 -1
@@ -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';
@@ -421,6 +421,17 @@ Object.keys(_StatusIndicator).forEach(function (key) {
421
421
  }
422
422
  });
423
423
  });
424
+ var _Stepper = require("./Stepper");
425
+ Object.keys(_Stepper).forEach(function (key) {
426
+ if (key === "default" || key === "__esModule") return;
427
+ if (key in exports && exports[key] === _Stepper[key]) return;
428
+ Object.defineProperty(exports, key, {
429
+ enumerable: true,
430
+ get: function () {
431
+ return _Stepper[key];
432
+ }
433
+ });
434
+ });
424
435
  var _SubMenu = require("./SubMenu");
425
436
  Object.keys(_SubMenu).forEach(function (key) {
426
437
  if (key === "default" || key === "__esModule") return;
@@ -38,6 +38,7 @@ export * from './RadioButton';
38
38
  export * from './SearchInput';
39
39
  export * from './SideMenuLink';
40
40
  export * from './StatusIndicator';
41
+ export * from './Stepper';
41
42
  export * from './SubMenu';
42
43
  export * from './Table';
43
44
  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.31",
3
+ "version": "0.1.33",
4
4
  "main": "index.js",
5
5
  "description": "Sense UI components library",
6
6
  "author": {