allaw-ui 1.0.112 → 1.0.113

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.
@@ -1,6 +1,6 @@
1
1
  @import "../../../styles/colors.css";
2
2
 
3
- .progressBarContainer {
3
+ .progress-bar-container {
4
4
  display: flex;
5
5
  width: 100%;
6
6
  justify-content: space-between;
@@ -10,11 +10,11 @@
10
10
  padding-left: 0.7rem;
11
11
  }
12
12
 
13
- .hiddenContent {
13
+ .progress-bar-background.hidden-content {
14
14
  visibility: hidden;
15
15
  }
16
16
 
17
- .progressBarIconContainer {
17
+ .progress-bar-icon-container {
18
18
  width: 32px;
19
19
  height: 32px;
20
20
  flex-shrink: 0;
@@ -23,7 +23,7 @@
23
23
  align-items: center;
24
24
  }
25
25
 
26
- .progressBarChevron {
26
+ .progress-bar-chevron {
27
27
  width: 32px;
28
28
  height: 32px;
29
29
  cursor: pointer;
@@ -39,14 +39,14 @@
39
39
  transition: background-color 0.2s ease;
40
40
  }
41
41
 
42
- .progressBarChevron:hover {
42
+ .progress-bar-chevron:hover {
43
43
  background-color: var(--venom-grey, #e6edf5);
44
44
  }
45
- .progressBarChevron:active {
45
+ .progress-bar-chevron:active {
46
46
  background-color: var(--venom-grey-dark, #d1dce8);
47
47
  }
48
48
 
49
- .progressBarBackground {
49
+ .progress-bar-background {
50
50
  display: flex;
51
51
  width: 100%;
52
52
  height: 6px;
@@ -56,29 +56,29 @@
56
56
  margin: 0 10px;
57
57
  }
58
58
 
59
- .progressBarFill {
59
+ .progress-bar-fill {
60
60
  height: 6px;
61
61
  border-radius: 8px;
62
62
  transition: width 0.35s ease;
63
63
  }
64
64
 
65
- .progressBarFillBlue {
65
+ .progress-bar-fill-blue {
66
66
  background: var(--primary-blue, #25beeb);
67
67
  }
68
68
 
69
- .progressBarFillRed {
69
+ .progress-bar-fill-red {
70
70
  background: var(--actions-error, #e15151);
71
71
  }
72
72
 
73
- .progressBarFillGreen {
73
+ .progress-bar-fill-green {
74
74
  background: var(--actions-valid, #29a36a);
75
75
  }
76
76
 
77
- .progressBarFillGrey {
77
+ .progress-bar-fill-grey {
78
78
  background: var(--mid-grey, #728ea7);
79
79
  }
80
80
 
81
- .progressBarClose {
81
+ .progress-bar-close {
82
82
  display: flex;
83
83
  flex-direction: row;
84
84
  justify-content: center;
@@ -95,14 +95,14 @@
95
95
  transition: background-color 0.2s ease;
96
96
  }
97
97
 
98
- .progressBarClose:hover {
98
+ .progress-bar-close:hover {
99
99
  background-color: var(--venom-grey, #e6edf5);
100
100
  }
101
- .progressBarClose:active {
101
+ .progress-bar-close:active {
102
102
  background-color: var(--venom-grey-dark, #d1dce8);
103
103
  }
104
104
 
105
- .progressBarClose i {
105
+ .progress-bar-close i {
106
106
  width: 14px;
107
107
  height: 14px;
108
108
  flex-shrink: 0;
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import "./ProgressBar.css";
2
3
  import "../../../styles/global.css";
3
4
  import "../../../styles/icons.css";
4
5
  export type BarColor = "blue" | "red" | "green" | "grey";
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import styles from "./ProgressBar.module.css";
2
+ import "./ProgressBar.css";
3
3
  import "../../../styles/global.css";
4
4
  import "../../../styles/icons.css";
5
5
  var ProgressBar = function (_a) {
@@ -7,20 +7,20 @@ var ProgressBar = function (_a) {
7
7
  var constrainedCurrentStep = Math.max(0, Math.min(currentStep, steps));
8
8
  var progressWidth = constrainedCurrentStep === 0 ? 0 : (constrainedCurrentStep / steps) * 100;
9
9
  var noIconsMargin = !startIcon && !endIcon ? "0px" : "0 10px";
10
- return (React.createElement("div", { className: styles.progressBarContainer },
11
- startIcon && (React.createElement("div", { className: styles.progressBarIconContainer },
12
- React.createElement("button", { className: styles.progressBarChevron, onClick: onStartIconClick },
10
+ return (React.createElement("div", { className: "progress-bar-container" },
11
+ startIcon && (React.createElement("div", { className: "progress-bar-icon-container" },
12
+ React.createElement("button", { className: "progress-bar-chevron", onClick: onStartIconClick },
13
13
  React.createElement("i", { className: "allaw-icon-chevron-left" })))),
14
- React.createElement("div", { className: "".concat(styles.progressBarBackground, " ").concat(showProgressBar ? "" : styles.hiddenContent), style: {
14
+ React.createElement("div", { className: "progress-bar-background ".concat(showProgressBar ? "" : "hidden-content"), style: {
15
15
  height: isWrapperProgressBar ? "6px" : "8px",
16
16
  width: startIcon ? "calc(100% - 32px)" : "100%",
17
17
  margin: noIconsMargin,
18
18
  } },
19
- React.createElement("div", { className: "".concat(styles.progressBarFill, " ").concat(styles["progressBarFill".concat(barColor.charAt(0).toUpperCase() + barColor.slice(1))]), style: {
19
+ React.createElement("div", { className: "progress-bar-fill progress-bar-fill-".concat(barColor), style: {
20
20
  width: "".concat(progressWidth, "%"),
21
21
  height: isWrapperProgressBar ? "6px" : "8px",
22
22
  } })),
23
- endIcon && (React.createElement("button", { className: styles.progressBarClose, onClick: onEndIconClick },
23
+ endIcon && (React.createElement("button", { className: "progress-bar-close", onClick: onEndIconClick },
24
24
  React.createElement("i", { className: "allaw-icon-close" })))));
25
25
  };
26
26
  export default ProgressBar;
@@ -0,0 +1,36 @@
1
+ .colors {
2
+ /* Primary colors */
3
+ --bleu-allaw: #25beeb;
4
+ --mid-grey: #728ea7;
5
+ --dark-grey: #456073;
6
+ --noir: #171e25;
7
+ --pure-white: #ffffff;
8
+
9
+ /* Greyscale */
10
+ --grey-venom: #e6edf5;
11
+ --venom-grey-dark: #d1dce8;
12
+ --grey-light: #f6fcfe;
13
+ --grey-light-2: #f2f8fc;
14
+ --active-grey: #e9eef5;
15
+ --blue-lightning: #f6fcfe;
16
+ --fond-de-selection: #f6fcfe;
17
+ --lightSteelBlue: #a2b5c8;
18
+
19
+ /* Tag colors */
20
+ --tag-white: #eef5fc;
21
+ --green-tag-dark: #29a36a;
22
+ --green-tag-light: #daf6e9;
23
+ --red-tag-dark: #e15151;
24
+ --red-tag-light: #fdf2f2;
25
+ --blue-tag-dark: #1985e8;
26
+ --blue-tag-light: #daebfb;
27
+ --gris-clair: #dee8f2;
28
+
29
+ /* Actions */
30
+ --actions-valid: #29a36a;
31
+ --actions-error: #e15151;
32
+
33
+ /* Background */
34
+ --background-pro: #fcfdfd;
35
+ --background-usager: #ffffff;
36
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "allaw-ui",
3
- "version": "1.0.112",
3
+ "version": "1.0.113",
4
4
  "description": "Composants UI pour l'application Allaw",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",