@pareto-engineering/design-system 2.0.0-alpha.14 → 2.0.0-alpha.15

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/dist/cjs/b/Button/styles.scss +27 -2
  2. package/dist/cjs/c/ContentSlides/common/Navigator/Navigator.js +4 -3
  3. package/dist/cjs/f/common/Debugger/Debugger.js +1 -1
  4. package/dist/cjs/f/common/Label/Label.js +1 -1
  5. package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +1 -1
  6. package/dist/cjs/f/fields/SelectInput/styles.scss +1 -1
  7. package/dist/cjs/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +1 -1
  8. package/dist/cjs/f/fields/TextInput/styles.scss +4 -4
  9. package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +1 -1
  10. package/dist/es/b/Button/styles.scss +27 -2
  11. package/dist/es/c/ContentSlides/common/Navigator/Navigator.js +4 -3
  12. package/dist/es/f/common/Debugger/Debugger.js +1 -1
  13. package/dist/es/f/common/Label/Label.js +1 -1
  14. package/dist/es/f/fields/ChoicesInput/ChoicesInput.js +1 -1
  15. package/dist/es/f/fields/SelectInput/styles.scss +1 -1
  16. package/dist/es/f/fields/TaskRecommendationInput/TaskRecommendationInput.js +1 -1
  17. package/dist/es/f/fields/TextInput/styles.scss +4 -4
  18. package/dist/es/f/fields/TextareaInput/TextareaInput.js +1 -1
  19. package/package.json +1 -1
  20. package/src/__snapshots__/Storyshots.test.js.snap +74 -74
  21. package/src/stories/b/Button.stories.jsx +5 -4
  22. package/src/ui/b/Button/Button.jsx +2 -1
  23. package/src/ui/b/Button/styles.scss +27 -2
  24. package/src/ui/c/ContentSlides/common/Navigator/Navigator.jsx +3 -2
  25. package/src/ui/f/common/Debugger/Debugger.jsx +1 -1
  26. package/src/ui/f/common/Label/Label.jsx +1 -1
  27. package/src/ui/f/fields/ChoicesInput/ChoicesInput.jsx +1 -1
  28. package/src/ui/f/fields/SelectInput/styles.scss +1 -1
  29. package/src/ui/f/fields/TaskRecommendationInput/TaskRecommendationInput.jsx +1 -1
  30. package/src/ui/f/fields/TextInput/styles.scss +4 -4
  31. package/src/ui/f/fields/TextareaInput/TextareaInput.jsx +1 -1
@@ -7,6 +7,7 @@ $compact-padding: .6em .6em .48em;
7
7
  $default-color:primary;
8
8
  $font-weight:bold;
9
9
  $default-margin:.5em;
10
+ $default-animation-time: .3s;
10
11
 
11
12
  .#{bem.$base}.button {
12
13
  background: var(--x, var(--#{$default-color}));
@@ -14,8 +15,8 @@ $default-margin:.5em;
14
15
  border-radius: var(--theme-border-radius);
15
16
  color: var(--on-x, var(--on-#{$default-color}));
16
17
  display: inline-flex;
17
- font-weight: 600;
18
18
  font-family: var(--theme-default-paragraph);
19
+ font-weight: 600;
19
20
  justify-content: space-between;
20
21
  padding: $default-padding;
21
22
  transition: all .25s;
@@ -24,6 +25,14 @@ $default-margin:.5em;
24
25
  &::after {
25
26
  content: "-->";
26
27
  margin-left: $default-margin;
28
+ vertical-align: middle;
29
+ }
30
+
31
+ &:hover {
32
+ &::after {
33
+ --final-position: 50%;
34
+ animation: animateArrow $default-animation-time forwards;
35
+ }
27
36
  }
28
37
  }
29
38
 
@@ -31,6 +40,14 @@ $default-margin:.5em;
31
40
  &::before {
32
41
  content: "<--";
33
42
  margin-right: $default-margin;
43
+ vertical-align: middle;
44
+ }
45
+
46
+ &:hover {
47
+ &::before {
48
+ --final-position: -50%;
49
+ animation: animateArrow $default-animation-time forwards;
50
+ }
34
51
  }
35
52
  }
36
53
 
@@ -46,7 +63,6 @@ $default-margin:.5em;
46
63
  }
47
64
  }
48
65
 
49
-
50
66
  &.#{bem.$modifier-compact} {
51
67
  padding: $compact-padding;
52
68
  }
@@ -114,3 +130,12 @@ $default-margin:.5em;
114
130
  }
115
131
 
116
132
 
133
+ @keyframes animateArrow {
134
+ from {
135
+ transform: translateX(0);
136
+ }
137
+
138
+ to {
139
+ transform: translateX(var(--final-position));
140
+ }
141
+ }
@@ -74,7 +74,8 @@ var Navigator = _ref => {
74
74
  } else {
75
75
  setNextStepIndex(stepsForward);
76
76
  }
77
- }
77
+ },
78
+ isCompact: true
78
79
  }, "Next") : /*#__PURE__*/React.createElement("span", null));
79
80
  };
80
81
 
@@ -136,8 +137,8 @@ Navigator.propTypes = {
136
137
  };
137
138
  Navigator.defaultProps = {
138
139
  canMoveForward: true,
139
- previousColor: 'main1',
140
- nextColor: 'main1',
140
+ previousColor: 'main2',
141
+ nextColor: 'main2',
141
142
  stepsForward: 1,
142
143
  stepsBackwards: 1
143
144
  };
@@ -47,7 +47,7 @@ var Debugger = _ref => {
47
47
  style: style
48
48
  }, /*#__PURE__*/React.createElement(_b.Button, {
49
49
  onClick: toggleDebugger,
50
- color: "main1"
50
+ color: "main2"
51
51
  }, isOpen ? 'Close FormDebugger' : 'Open FormDebugger'), isOpen && /*#__PURE__*/React.createElement("pre", {
52
52
  className: "debuger-content"
53
53
  }, JSON.stringify(formikContext, null, 2)));
@@ -86,7 +86,7 @@ Label.propTypes = {
86
86
  Label.defaultProps = {
87
87
  // someProp:false
88
88
  as: 'label',
89
- color: 'main1'
89
+ color: 'main2'
90
90
  };
91
91
  var _default = Label;
92
92
  exports.default = _default;
@@ -150,7 +150,7 @@ ChoicesInput.defaultProps = {
150
150
  gridColumnsMobile: 2,
151
151
  gridColumnsDesktop: 3,
152
152
  color: 'background2',
153
- colorChecked: 'main1',
153
+ colorChecked: 'main2',
154
154
  disabled: false
155
155
  };
156
156
 
@@ -14,7 +14,7 @@ $default-padding: 0.75em 0.75em 0.55em;
14
14
 
15
15
 
16
16
  .input-label {
17
- color: var(--main1);
17
+ color: var(--main2);
18
18
  }
19
19
 
20
20
  .input {
@@ -123,7 +123,7 @@ TaskRecommendationInput.propTypes = {
123
123
  image: _propTypes.default.string.isRequired
124
124
  };
125
125
  TaskRecommendationInput.defaultProps = {
126
- color: 'main1'
126
+ color: 'main2'
127
127
  };
128
128
 
129
129
  var _default = /*#__PURE__*/(0, React.memo)(TaskRecommendationInput);
@@ -10,16 +10,16 @@ $default-padding: 0.75em 0.75em 0.55em;
10
10
  flex-direction: column;
11
11
 
12
12
  .input-label {
13
- color: var(--main1);
13
+ color: var(--main2);
14
14
  }
15
15
 
16
16
  .input {
17
- background: var(--light-background1);
18
- color: var(--on-background1);
17
+ background: var(--light-background2);
18
+ color: var(--on-background2);
19
19
  padding: $default-padding;
20
20
 
21
21
  &:focus {
22
- background: var(--dark-background1);
22
+ background: var(--dark-background2);
23
23
  }
24
24
  }
25
25
  }
@@ -142,7 +142,7 @@ TextareaInput.propTypes = {
142
142
  TextareaInput.defaultProps = {
143
143
  rows: 3,
144
144
  textAreaColor: 'background1',
145
- labelColor: 'main1',
145
+ labelColor: 'main2',
146
146
  disabled: false
147
147
  };
148
148
 
@@ -7,6 +7,7 @@ $compact-padding: .6em .6em .48em;
7
7
  $default-color:primary;
8
8
  $font-weight:bold;
9
9
  $default-margin:.5em;
10
+ $default-animation-time: .3s;
10
11
 
11
12
  .#{bem.$base}.button {
12
13
  background: var(--x, var(--#{$default-color}));
@@ -14,8 +15,8 @@ $default-margin:.5em;
14
15
  border-radius: var(--theme-border-radius);
15
16
  color: var(--on-x, var(--on-#{$default-color}));
16
17
  display: inline-flex;
17
- font-weight: 600;
18
18
  font-family: var(--theme-default-paragraph);
19
+ font-weight: 600;
19
20
  justify-content: space-between;
20
21
  padding: $default-padding;
21
22
  transition: all .25s;
@@ -24,6 +25,14 @@ $default-margin:.5em;
24
25
  &::after {
25
26
  content: "-->";
26
27
  margin-left: $default-margin;
28
+ vertical-align: middle;
29
+ }
30
+
31
+ &:hover {
32
+ &::after {
33
+ --final-position: 50%;
34
+ animation: animateArrow $default-animation-time forwards;
35
+ }
27
36
  }
28
37
  }
29
38
 
@@ -31,6 +40,14 @@ $default-margin:.5em;
31
40
  &::before {
32
41
  content: "<--";
33
42
  margin-right: $default-margin;
43
+ vertical-align: middle;
44
+ }
45
+
46
+ &:hover {
47
+ &::before {
48
+ --final-position: -50%;
49
+ animation: animateArrow $default-animation-time forwards;
50
+ }
34
51
  }
35
52
  }
36
53
 
@@ -46,7 +63,6 @@ $default-margin:.5em;
46
63
  }
47
64
  }
48
65
 
49
-
50
66
  &.#{bem.$modifier-compact} {
51
67
  padding: $compact-padding;
52
68
  }
@@ -114,3 +130,12 @@ $default-margin:.5em;
114
130
  }
115
131
 
116
132
 
133
+ @keyframes animateArrow {
134
+ from {
135
+ transform: translateX(0);
136
+ }
137
+
138
+ to {
139
+ transform: translateX(var(--final-position));
140
+ }
141
+ }
@@ -56,7 +56,8 @@ const Navigator = ({
56
56
  } else {
57
57
  setNextStepIndex(stepsForward);
58
58
  }
59
- }
59
+ },
60
+ isCompact: true
60
61
  }, "Next") : /*#__PURE__*/React.createElement("span", null));
61
62
  };
62
63
 
@@ -118,8 +119,8 @@ Navigator.propTypes = {
118
119
  };
119
120
  Navigator.defaultProps = {
120
121
  canMoveForward: true,
121
- previousColor: 'main1',
122
- nextColor: 'main1',
122
+ previousColor: 'main2',
123
+ nextColor: 'main2',
123
124
  stepsForward: 1,
124
125
  stepsBackwards: 1
125
126
  };
@@ -31,7 +31,7 @@ const Debugger = ({
31
31
  style: style
32
32
  }, /*#__PURE__*/React.createElement(Button, {
33
33
  onClick: toggleDebugger,
34
- color: "main1"
34
+ color: "main2"
35
35
  }, isOpen ? 'Close FormDebugger' : 'Open FormDebugger'), isOpen && /*#__PURE__*/React.createElement("pre", {
36
36
  className: "debuger-content"
37
37
  }, JSON.stringify(formikContext, null, 2)));
@@ -71,6 +71,6 @@ Label.propTypes = {
71
71
  Label.defaultProps = {
72
72
  // someProp:false
73
73
  as: 'label',
74
- color: 'main1'
74
+ color: 'main2'
75
75
  };
76
76
  export default Label;
@@ -129,7 +129,7 @@ ChoicesInput.defaultProps = {
129
129
  gridColumnsMobile: 2,
130
130
  gridColumnsDesktop: 3,
131
131
  color: 'background2',
132
- colorChecked: 'main1',
132
+ colorChecked: 'main2',
133
133
  disabled: false
134
134
  };
135
135
  export default /*#__PURE__*/memo(ChoicesInput);
@@ -14,7 +14,7 @@ $default-padding: 0.75em 0.75em 0.55em;
14
14
 
15
15
 
16
16
  .input-label {
17
- color: var(--main1);
17
+ color: var(--main2);
18
18
  }
19
19
 
20
20
  .input {
@@ -106,6 +106,6 @@ TaskRecommendationInput.propTypes = {
106
106
  image: PropTypes.string.isRequired
107
107
  };
108
108
  TaskRecommendationInput.defaultProps = {
109
- color: 'main1'
109
+ color: 'main2'
110
110
  };
111
111
  export default /*#__PURE__*/memo(TaskRecommendationInput);
@@ -10,16 +10,16 @@ $default-padding: 0.75em 0.75em 0.55em;
10
10
  flex-direction: column;
11
11
 
12
12
  .input-label {
13
- color: var(--main1);
13
+ color: var(--main2);
14
14
  }
15
15
 
16
16
  .input {
17
- background: var(--light-background1);
18
- color: var(--on-background1);
17
+ background: var(--light-background2);
18
+ color: var(--on-background2);
19
19
  padding: $default-padding;
20
20
 
21
21
  &:focus {
22
- background: var(--dark-background1);
22
+ background: var(--dark-background2);
23
23
  }
24
24
  }
25
25
  }
@@ -126,7 +126,7 @@ TextareaInput.propTypes = {
126
126
  TextareaInput.defaultProps = {
127
127
  rows: 3,
128
128
  textAreaColor: 'background1',
129
- labelColor: 'main1',
129
+ labelColor: 'main2',
130
130
  disabled: false
131
131
  };
132
132
  export default /*#__PURE__*/memo(TextareaInput);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pareto-engineering/design-system",
3
- "version": "2.0.0-alpha.14",
3
+ "version": "2.0.0-alpha.15",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/es/index.js",
@@ -8632,7 +8632,7 @@ exports[`Storyshots c/ContentSlides Base 1`] = `
8632
8632
  >
8633
8633
  <span />
8634
8634
  <button
8635
- className="base button x-main1 next x-main1"
8635
+ className="base button x-main2 next x-main1 modifierCompact"
8636
8636
  disabled={false}
8637
8637
  onClick={[Function]}
8638
8638
  type="button"
@@ -8689,7 +8689,7 @@ exports[`Storyshots c/ContentSlides Base 1`] = `
8689
8689
  >
8690
8690
  <span />
8691
8691
  <button
8692
- className="base button x-main1 next x-main1"
8692
+ className="base button x-main2 next x-main1 modifierCompact"
8693
8693
  disabled={false}
8694
8694
  onClick={[Function]}
8695
8695
  type="button"
@@ -8728,7 +8728,7 @@ exports[`Storyshots c/ContentSlides Base 1`] = `
8728
8728
  >
8729
8729
  <span />
8730
8730
  <button
8731
- className="base button x-main1 next x-main1"
8731
+ className="base button x-main2 next x-main1 modifierCompact"
8732
8732
  disabled={false}
8733
8733
  onClick={[Function]}
8734
8734
  type="button"
@@ -8767,7 +8767,7 @@ exports[`Storyshots c/ContentSlides Base 1`] = `
8767
8767
  >
8768
8768
  <span />
8769
8769
  <button
8770
- className="base button x-main1 next x-main1"
8770
+ className="base button x-main2 next x-main1 modifierCompact"
8771
8771
  disabled={false}
8772
8772
  onClick={[Function]}
8773
8773
  type="button"
@@ -8886,7 +8886,7 @@ exports[`Storyshots c/ContentSlides Simple 1`] = `
8886
8886
  >
8887
8887
  <span />
8888
8888
  <button
8889
- className="base button x-main1 next x-main1"
8889
+ className="base button x-main2 next x-main1 modifierCompact"
8890
8890
  disabled={false}
8891
8891
  onClick={[Function]}
8892
8892
  type="button"
@@ -8941,7 +8941,7 @@ exports[`Storyshots c/ContentSlides Simple 1`] = `
8941
8941
  >
8942
8942
  <span />
8943
8943
  <button
8944
- className="base button x-main1 next x-main1"
8944
+ className="base button x-main2 next x-main1 modifierCompact"
8945
8945
  disabled={false}
8946
8946
  onClick={[Function]}
8947
8947
  type="button"
@@ -8980,7 +8980,7 @@ exports[`Storyshots c/ContentSlides Simple 1`] = `
8980
8980
  >
8981
8981
  <span />
8982
8982
  <button
8983
- className="base button x-main1 next x-main1"
8983
+ className="base button x-main2 next x-main1 modifierCompact"
8984
8984
  disabled={false}
8985
8985
  onClick={[Function]}
8986
8986
  type="button"
@@ -9019,7 +9019,7 @@ exports[`Storyshots c/ContentSlides Simple 1`] = `
9019
9019
  >
9020
9020
  <span />
9021
9021
  <button
9022
- className="base button x-main1 next x-main1"
9022
+ className="base button x-main2 next x-main1 modifierCompact"
9023
9023
  disabled={false}
9024
9024
  onClick={[Function]}
9025
9025
  type="button"
@@ -9130,7 +9130,7 @@ exports[`Storyshots f/FormInput Base 1`] = `
9130
9130
  className="base text-input form-input"
9131
9131
  >
9132
9132
  <label
9133
- className="base label input-label v50 mb-v x-main1"
9133
+ className="base label input-label v50 mb-v x-main2"
9134
9134
  htmlFor="firstName"
9135
9135
  >
9136
9136
  What's your first name ?
@@ -9150,7 +9150,7 @@ exports[`Storyshots f/FormInput Base 1`] = `
9150
9150
  className="base text-input form-input"
9151
9151
  >
9152
9152
  <label
9153
- className="base label input-label v50 mb-v x-main1"
9153
+ className="base label input-label v50 mb-v x-main2"
9154
9154
  htmlFor="lastName"
9155
9155
  >
9156
9156
  What's your last name ?
@@ -9166,10 +9166,10 @@ exports[`Storyshots f/FormInput Base 1`] = `
9166
9166
  />
9167
9167
  </div>
9168
9168
  <div
9169
- className="base text-area-input form-input x-background1 y-main1"
9169
+ className="base text-area-input form-input x-background1 y-main2"
9170
9170
  >
9171
9171
  <label
9172
- className="base label c-y v50 mb-v x-main1"
9172
+ className="base label c-y v50 mb-v x-main2"
9173
9173
  htmlFor="description"
9174
9174
  >
9175
9175
  Describe yourself in a few sentences
@@ -9185,7 +9185,7 @@ exports[`Storyshots f/FormInput Base 1`] = `
9185
9185
 
9186
9186
  </div>
9187
9187
  <div
9188
- className="base choices-input form-input x-background2 y-main1"
9188
+ className="base choices-input form-input x-background2 y-main2"
9189
9189
  style={
9190
9190
  Object {
9191
9191
  "--grid-columns-desktop": 3,
@@ -9194,7 +9194,7 @@ exports[`Storyshots f/FormInput Base 1`] = `
9194
9194
  }
9195
9195
  >
9196
9196
  <p
9197
- className="base label x-main1"
9197
+ className="base label x-main2"
9198
9198
  >
9199
9199
  What are your favourite colors ?
9200
9200
  </p>
@@ -9261,7 +9261,7 @@ exports[`Storyshots f/FormInput Base 1`] = `
9261
9261
  className="base select-input form-input"
9262
9262
  >
9263
9263
  <label
9264
- className="base label input-label x-main1"
9264
+ className="base label input-label x-main2"
9265
9265
  htmlFor="food"
9266
9266
  >
9267
9267
  What do you want for dinner ?
@@ -9295,7 +9295,7 @@ exports[`Storyshots f/FormInput Base 1`] = `
9295
9295
  className="debugger"
9296
9296
  >
9297
9297
  <button
9298
- className="base button x-main1"
9298
+ className="base button x-main2"
9299
9299
  onClick={[Function]}
9300
9300
  type="button"
9301
9301
  >
@@ -9315,7 +9315,7 @@ exports[`Storyshots f/FormInput Disabled Form Input 1`] = `
9315
9315
  className="base text-input form-input"
9316
9316
  >
9317
9317
  <label
9318
- className="base label input-label v50 mb-v x-main1"
9318
+ className="base label input-label v50 mb-v x-main2"
9319
9319
  htmlFor="firstName"
9320
9320
  >
9321
9321
  What's your first name ?
@@ -9335,7 +9335,7 @@ exports[`Storyshots f/FormInput Disabled Form Input 1`] = `
9335
9335
  className="base text-input form-input"
9336
9336
  >
9337
9337
  <label
9338
- className="base label input-label v50 mb-v x-main1"
9338
+ className="base label input-label v50 mb-v x-main2"
9339
9339
  htmlFor="lastName"
9340
9340
  >
9341
9341
  What's your last name ?
@@ -9351,10 +9351,10 @@ exports[`Storyshots f/FormInput Disabled Form Input 1`] = `
9351
9351
  />
9352
9352
  </div>
9353
9353
  <div
9354
- className="base text-area-input form-input x-background1 y-main1"
9354
+ className="base text-area-input form-input x-background1 y-main2"
9355
9355
  >
9356
9356
  <label
9357
- className="base label c-y v50 mb-v x-main1"
9357
+ className="base label c-y v50 mb-v x-main2"
9358
9358
  htmlFor="description"
9359
9359
  >
9360
9360
  Describe yourself in a few sentences
@@ -9370,7 +9370,7 @@ exports[`Storyshots f/FormInput Disabled Form Input 1`] = `
9370
9370
 
9371
9371
  </div>
9372
9372
  <div
9373
- className="base choices-input form-input x-background2 y-main1"
9373
+ className="base choices-input form-input x-background2 y-main2"
9374
9374
  style={
9375
9375
  Object {
9376
9376
  "--grid-columns-desktop": 3,
@@ -9379,7 +9379,7 @@ exports[`Storyshots f/FormInput Disabled Form Input 1`] = `
9379
9379
  }
9380
9380
  >
9381
9381
  <p
9382
- className="base label x-main1"
9382
+ className="base label x-main2"
9383
9383
  >
9384
9384
  What are your favourite colors ?
9385
9385
  </p>
@@ -9446,7 +9446,7 @@ exports[`Storyshots f/FormInput Disabled Form Input 1`] = `
9446
9446
  className="base select-input form-input"
9447
9447
  >
9448
9448
  <label
9449
- className="base label input-label x-main1"
9449
+ className="base label input-label x-main2"
9450
9450
  htmlFor="food"
9451
9451
  >
9452
9452
  What do you want for dinner ?
@@ -9480,7 +9480,7 @@ exports[`Storyshots f/FormInput Disabled Form Input 1`] = `
9480
9480
  className="debugger"
9481
9481
  >
9482
9482
  <button
9483
- className="base button x-main1"
9483
+ className="base button x-main2"
9484
9484
  onClick={[Function]}
9485
9485
  type="button"
9486
9486
  >
@@ -9500,7 +9500,7 @@ exports[`Storyshots f/FormInput Extensible Form Input 1`] = `
9500
9500
  className="base text-input form-input"
9501
9501
  >
9502
9502
  <label
9503
- className="base label input-label v50 mb-v x-main1"
9503
+ className="base label input-label v50 mb-v x-main2"
9504
9504
  htmlFor="extended"
9505
9505
  >
9506
9506
  Extended type input
@@ -9519,7 +9519,7 @@ exports[`Storyshots f/FormInput Extensible Form Input 1`] = `
9519
9519
  className="debugger"
9520
9520
  >
9521
9521
  <button
9522
- className="base button x-main1"
9522
+ className="base button x-main2"
9523
9523
  onClick={[Function]}
9524
9524
  type="button"
9525
9525
  >
@@ -9539,7 +9539,7 @@ exports[`Storyshots f/common/Description Base 1`] = `
9539
9539
 
9540
9540
  exports[`Storyshots f/common/Label Base 1`] = `
9541
9541
  <label
9542
- className="base label x-main1"
9542
+ className="base label x-main2"
9543
9543
  >
9544
9544
  Sample Label
9545
9545
  </label>
@@ -9561,7 +9561,7 @@ exports[`Storyshots f/fields/CheckboxInput Base 1`] = `
9561
9561
  className="not-selected input-content uc v1 pv-v"
9562
9562
  >
9563
9563
  <label
9564
- className="base label x-main1"
9564
+ className="base label x-main2"
9565
9565
  htmlFor="businessTypes"
9566
9566
  >
9567
9567
  <input
@@ -9586,7 +9586,7 @@ exports[`Storyshots f/fields/CheckboxInput Base 1`] = `
9586
9586
  className="not-selected input-content uc v1 pv-v"
9587
9587
  >
9588
9588
  <label
9589
- className="base label x-main1"
9589
+ className="base label x-main2"
9590
9590
  htmlFor="businessTypes"
9591
9591
  >
9592
9592
  <input
@@ -9611,7 +9611,7 @@ exports[`Storyshots f/fields/CheckboxInput Base 1`] = `
9611
9611
  className="not-selected input-content uc v1 pv-v"
9612
9612
  >
9613
9613
  <label
9614
- className="base label x-main1"
9614
+ className="base label x-main2"
9615
9615
  htmlFor="businessTypes"
9616
9616
  >
9617
9617
  <input
@@ -9636,7 +9636,7 @@ exports[`Storyshots f/fields/CheckboxInput Base 1`] = `
9636
9636
  className="not-selected input-content uc v1 pv-v"
9637
9637
  >
9638
9638
  <label
9639
- className="base label x-main1"
9639
+ className="base label x-main2"
9640
9640
  htmlFor="businessTypes"
9641
9641
  >
9642
9642
  <input
@@ -9658,7 +9658,7 @@ exports[`Storyshots f/fields/CheckboxInput Base 1`] = `
9658
9658
  className="debugger"
9659
9659
  >
9660
9660
  <button
9661
- className="base button x-main1"
9661
+ className="base button x-main2"
9662
9662
  onClick={[Function]}
9663
9663
  type="button"
9664
9664
  >
@@ -9676,7 +9676,7 @@ exports[`Storyshots f/fields/ChoicesInput Base 1`] = `
9676
9676
  onSubmit={[Function]}
9677
9677
  >
9678
9678
  <div
9679
- className="base choices-input x-background2 y-main1"
9679
+ className="base choices-input x-background2 y-main2"
9680
9680
  id="colors"
9681
9681
  style={
9682
9682
  Object {
@@ -9748,7 +9748,7 @@ exports[`Storyshots f/fields/ChoicesInput Base 1`] = `
9748
9748
  className="debugger"
9749
9749
  >
9750
9750
  <button
9751
- className="base button x-main1"
9751
+ className="base button x-main2"
9752
9752
  onClick={[Function]}
9753
9753
  type="button"
9754
9754
  >
@@ -9765,7 +9765,7 @@ exports[`Storyshots f/fields/ChoicesInput Choices With Label 1`] = `
9765
9765
  onSubmit={[Function]}
9766
9766
  >
9767
9767
  <div
9768
- className="base choices-input x-background2 y-main1"
9768
+ className="base choices-input x-background2 y-main2"
9769
9769
  id="shapes"
9770
9770
  style={
9771
9771
  Object {
@@ -9775,7 +9775,7 @@ exports[`Storyshots f/fields/ChoicesInput Choices With Label 1`] = `
9775
9775
  }
9776
9776
  >
9777
9777
  <p
9778
- className="base label x-main1"
9778
+ className="base label x-main2"
9779
9779
  >
9780
9780
  Geometric Shapes
9781
9781
  </p>
@@ -9842,7 +9842,7 @@ exports[`Storyshots f/fields/ChoicesInput Choices With Label 1`] = `
9842
9842
  className="debugger"
9843
9843
  >
9844
9844
  <button
9845
- className="base button x-main1"
9845
+ className="base button x-main2"
9846
9846
  onClick={[Function]}
9847
9847
  type="button"
9848
9848
  >
@@ -9859,7 +9859,7 @@ exports[`Storyshots f/fields/ChoicesInput Disabled Choices Input 1`] = `
9859
9859
  onSubmit={[Function]}
9860
9860
  >
9861
9861
  <div
9862
- className="base choices-input x-background2 y-main1"
9862
+ className="base choices-input x-background2 y-main2"
9863
9863
  id="shapes"
9864
9864
  style={
9865
9865
  Object {
@@ -9869,7 +9869,7 @@ exports[`Storyshots f/fields/ChoicesInput Disabled Choices Input 1`] = `
9869
9869
  }
9870
9870
  >
9871
9871
  <p
9872
- className="base label x-main1"
9872
+ className="base label x-main2"
9873
9873
  >
9874
9874
  Geometric Shapes
9875
9875
  </p>
@@ -9936,7 +9936,7 @@ exports[`Storyshots f/fields/ChoicesInput Disabled Choices Input 1`] = `
9936
9936
  className="debugger"
9937
9937
  >
9938
9938
  <button
9939
- className="base button x-main1"
9939
+ className="base button x-main2"
9940
9940
  onClick={[Function]}
9941
9941
  type="button"
9942
9942
  >
@@ -9953,7 +9953,7 @@ exports[`Storyshots f/fields/ChoicesInput Multiple 1`] = `
9953
9953
  onSubmit={[Function]}
9954
9954
  >
9955
9955
  <div
9956
- className="base choices-input multiple x-background2 y-main1"
9956
+ className="base choices-input multiple x-background2 y-main2"
9957
9957
  id="colors"
9958
9958
  style={
9959
9959
  Object {
@@ -10025,7 +10025,7 @@ exports[`Storyshots f/fields/ChoicesInput Multiple 1`] = `
10025
10025
  className="debugger"
10026
10026
  >
10027
10027
  <button
10028
- className="base button x-main1"
10028
+ className="base button x-main2"
10029
10029
  onClick={[Function]}
10030
10030
  type="button"
10031
10031
  >
@@ -10042,7 +10042,7 @@ exports[`Storyshots f/fields/ChoicesInput Multiple With Grid 1`] = `
10042
10042
  onSubmit={[Function]}
10043
10043
  >
10044
10044
  <div
10045
- className="base choices-input multiple x-background2 y-main1"
10045
+ className="base choices-input multiple x-background2 y-main2"
10046
10046
  id="colors"
10047
10047
  style={
10048
10048
  Object {
@@ -10204,7 +10204,7 @@ exports[`Storyshots f/fields/ChoicesInput Multiple With Grid 1`] = `
10204
10204
  className="debugger"
10205
10205
  >
10206
10206
  <button
10207
- className="base button x-main1"
10207
+ className="base button x-main2"
10208
10208
  onClick={[Function]}
10209
10209
  type="button"
10210
10210
  >
@@ -10227,7 +10227,7 @@ exports[`Storyshots f/fields/RadioInput Base 1`] = `
10227
10227
  className="not-selected uc v1 pv-v"
10228
10228
  >
10229
10229
  <label
10230
- className="base label x-main1"
10230
+ className="base label x-main2"
10231
10231
  htmlFor="companySize"
10232
10232
  >
10233
10233
  <input
@@ -10254,7 +10254,7 @@ exports[`Storyshots f/fields/RadioInput Base 1`] = `
10254
10254
  className="not-selected uc v1 pv-v"
10255
10255
  >
10256
10256
  <label
10257
- className="base label x-main1"
10257
+ className="base label x-main2"
10258
10258
  htmlFor="companySize"
10259
10259
  >
10260
10260
  <input
@@ -10281,7 +10281,7 @@ exports[`Storyshots f/fields/RadioInput Base 1`] = `
10281
10281
  className="not-selected uc v1 pv-v"
10282
10282
  >
10283
10283
  <label
10284
- className="base label x-main1"
10284
+ className="base label x-main2"
10285
10285
  htmlFor="companySize"
10286
10286
  >
10287
10287
  <input
@@ -10308,7 +10308,7 @@ exports[`Storyshots f/fields/RadioInput Base 1`] = `
10308
10308
  className="not-selected uc v1 pv-v"
10309
10309
  >
10310
10310
  <label
10311
- className="base label x-main1"
10311
+ className="base label x-main2"
10312
10312
  htmlFor="companySize"
10313
10313
  >
10314
10314
  <input
@@ -10332,7 +10332,7 @@ exports[`Storyshots f/fields/RadioInput Base 1`] = `
10332
10332
  className="debugger"
10333
10333
  >
10334
10334
  <button
10335
- className="base button x-main1"
10335
+ className="base button x-main2"
10336
10336
  onClick={[Function]}
10337
10337
  type="button"
10338
10338
  >
@@ -10471,7 +10471,7 @@ exports[`Storyshots f/fields/RatingsInput Base 1`] = `
10471
10471
  className="debugger"
10472
10472
  >
10473
10473
  <button
10474
- className="base button x-main1"
10474
+ className="base button x-main2"
10475
10475
  onClick={[Function]}
10476
10476
  type="button"
10477
10477
  >
@@ -10785,7 +10785,7 @@ exports[`Storyshots f/fields/RatingsInput Labels 1`] = `
10785
10785
  className="debugger"
10786
10786
  >
10787
10787
  <button
10788
- className="base button x-main1"
10788
+ className="base button x-main2"
10789
10789
  onClick={[Function]}
10790
10790
  type="button"
10791
10791
  >
@@ -11089,7 +11089,7 @@ exports[`Storyshots f/fields/RatingsInput Numbers 1`] = `
11089
11089
  className="debugger"
11090
11090
  >
11091
11091
  <button
11092
- className="base button x-main1"
11092
+ className="base button x-main2"
11093
11093
  onClick={[Function]}
11094
11094
  type="button"
11095
11095
  >
@@ -11109,7 +11109,7 @@ exports[`Storyshots f/fields/SelectInput Base 1`] = `
11109
11109
  className="base select-input"
11110
11110
  >
11111
11111
  <label
11112
- className="base label input-label x-main1"
11112
+ className="base label input-label x-main2"
11113
11113
  htmlFor="workType"
11114
11114
  >
11115
11115
  Work Type
@@ -11144,7 +11144,7 @@ exports[`Storyshots f/fields/SelectInput Base 1`] = `
11144
11144
  className="debugger"
11145
11145
  >
11146
11146
  <button
11147
- className="base button x-main1"
11147
+ className="base button x-main2"
11148
11148
  onClick={[Function]}
11149
11149
  type="button"
11150
11150
  >
@@ -11164,7 +11164,7 @@ exports[`Storyshots f/fields/SelectInput Disabled Select Input 1`] = `
11164
11164
  className="base select-input"
11165
11165
  >
11166
11166
  <label
11167
- className="base label input-label x-main1"
11167
+ className="base label input-label x-main2"
11168
11168
  htmlFor="workType"
11169
11169
  >
11170
11170
  Work Type
@@ -11209,7 +11209,7 @@ exports[`Storyshots f/fields/SelectInput Disabled Select Input 1`] = `
11209
11209
  className="debugger"
11210
11210
  >
11211
11211
  <button
11212
- className="base button x-main1"
11212
+ className="base button x-main2"
11213
11213
  onClick={[Function]}
11214
11214
  type="button"
11215
11215
  >
@@ -11229,7 +11229,7 @@ exports[`Storyshots f/fields/SelectInput Objects 1`] = `
11229
11229
  className="base select-input"
11230
11230
  >
11231
11231
  <label
11232
- className="base label input-label x-main1"
11232
+ className="base label input-label x-main2"
11233
11233
  htmlFor="workType"
11234
11234
  >
11235
11235
  Work Type
@@ -11259,7 +11259,7 @@ exports[`Storyshots f/fields/SelectInput Objects 1`] = `
11259
11259
  className="debugger"
11260
11260
  >
11261
11261
  <button
11262
- className="base button x-main1"
11262
+ className="base button x-main2"
11263
11263
  onClick={[Function]}
11264
11264
  type="button"
11265
11265
  >
@@ -11279,7 +11279,7 @@ exports[`Storyshots f/fields/SelectInput String And Objects 1`] = `
11279
11279
  className="base select-input"
11280
11280
  >
11281
11281
  <label
11282
- className="base label input-label x-main1"
11282
+ className="base label input-label x-main2"
11283
11283
  htmlFor="workType"
11284
11284
  >
11285
11285
  Work Type
@@ -11324,7 +11324,7 @@ exports[`Storyshots f/fields/SelectInput String And Objects 1`] = `
11324
11324
  className="debugger"
11325
11325
  >
11326
11326
  <button
11327
- className="base button x-main1"
11327
+ className="base button x-main2"
11328
11328
  onClick={[Function]}
11329
11329
  type="button"
11330
11330
  >
@@ -11349,7 +11349,7 @@ exports[`Storyshots f/fields/TaskRecommendationInput Base 1`] = `
11349
11349
  }
11350
11350
  >
11351
11351
  <div
11352
- className="base task-recommendation-input x-main1"
11352
+ className="base task-recommendation-input x-main2"
11353
11353
  >
11354
11354
  <div
11355
11355
  className="task-content b-on-x"
@@ -11358,7 +11358,7 @@ exports[`Storyshots f/fields/TaskRecommendationInput Base 1`] = `
11358
11358
  className="v1 p-v task"
11359
11359
  >
11360
11360
  <label
11361
- className="base label uc mb-v x-main1"
11361
+ className="base label uc mb-v x-main2"
11362
11362
  htmlFor="taskRecommendations"
11363
11363
  >
11364
11364
  Find potential business customers
@@ -11402,7 +11402,7 @@ exports[`Storyshots f/fields/TextInput Base 1`] = `
11402
11402
  className="base text-input"
11403
11403
  >
11404
11404
  <label
11405
- className="base label input-label v50 mb-v x-main1"
11405
+ className="base label input-label v50 mb-v x-main2"
11406
11406
  htmlFor="firstName"
11407
11407
  >
11408
11408
  What's your first name ?
@@ -11422,7 +11422,7 @@ exports[`Storyshots f/fields/TextInput Base 1`] = `
11422
11422
  className="debugger"
11423
11423
  >
11424
11424
  <button
11425
- className="base button x-main1"
11425
+ className="base button x-main2"
11426
11426
  onClick={[Function]}
11427
11427
  type="button"
11428
11428
  >
@@ -11446,7 +11446,7 @@ exports[`Storyshots f/fields/TextInput Date Time 1`] = `
11446
11446
  className="base text-input"
11447
11447
  >
11448
11448
  <label
11449
- className="base label input-label v50 mb-v x-main1"
11449
+ className="base label input-label v50 mb-v x-main2"
11450
11450
  htmlFor="date"
11451
11451
  >
11452
11452
  Select date
@@ -11466,7 +11466,7 @@ exports[`Storyshots f/fields/TextInput Date Time 1`] = `
11466
11466
  className="base text-input"
11467
11467
  >
11468
11468
  <label
11469
- className="base label input-label v50 mb-v x-main1"
11469
+ className="base label input-label v50 mb-v x-main2"
11470
11470
  htmlFor="time"
11471
11471
  >
11472
11472
  Select time
@@ -11486,7 +11486,7 @@ exports[`Storyshots f/fields/TextInput Date Time 1`] = `
11486
11486
  className="debugger"
11487
11487
  >
11488
11488
  <button
11489
- className="base button x-main1"
11489
+ className="base button x-main2"
11490
11490
  onClick={[Function]}
11491
11491
  type="button"
11492
11492
  >
@@ -11510,7 +11510,7 @@ exports[`Storyshots f/fields/TextInput Disabled Text Input 1`] = `
11510
11510
  className="base text-input"
11511
11511
  >
11512
11512
  <label
11513
- className="base label input-label v50 mb-v x-main1"
11513
+ className="base label input-label v50 mb-v x-main2"
11514
11514
  htmlFor="firstName"
11515
11515
  >
11516
11516
  What's your first name ?
@@ -11540,10 +11540,10 @@ exports[`Storyshots f/fields/TextareaInput Base 1`] = `
11540
11540
  className="y-background1 b-dark-y"
11541
11541
  >
11542
11542
  <div
11543
- className="base text-area-input x-background1 y-main1"
11543
+ className="base text-area-input x-background1 y-main2"
11544
11544
  >
11545
11545
  <label
11546
- className="base label c-y v50 mb-v x-main1"
11546
+ className="base label c-y v50 mb-v x-main2"
11547
11547
  htmlFor="feedBack"
11548
11548
  >
11549
11549
  What can we improve on?
@@ -11563,7 +11563,7 @@ exports[`Storyshots f/fields/TextareaInput Base 1`] = `
11563
11563
  className="debugger"
11564
11564
  >
11565
11565
  <button
11566
- className="base button x-main1"
11566
+ className="base button x-main2"
11567
11567
  onClick={[Function]}
11568
11568
  type="button"
11569
11569
  >
@@ -11584,10 +11584,10 @@ exports[`Storyshots f/fields/TextareaInput Disabled Textarea Input 1`] = `
11584
11584
  className="y-background1 b-dark-y"
11585
11585
  >
11586
11586
  <div
11587
- className="base text-area-input x-background1 y-main1"
11587
+ className="base text-area-input x-background1 y-main2"
11588
11588
  >
11589
11589
  <label
11590
- className="base label c-y v50 mb-v x-main1"
11590
+ className="base label c-y v50 mb-v x-main2"
11591
11591
  htmlFor="feedBack"
11592
11592
  >
11593
11593
  What can we improve on?
@@ -11607,7 +11607,7 @@ exports[`Storyshots f/fields/TextareaInput Disabled Textarea Input 1`] = `
11607
11607
  className="debugger"
11608
11608
  >
11609
11609
  <button
11610
- className="base button x-main1"
11610
+ className="base button x-main2"
11611
11611
  onClick={[Function]}
11612
11612
  type="button"
11613
11613
  >
@@ -14,10 +14,11 @@ export default {
14
14
  // storyfn => <div className="">{ storyfn() }</div>,
15
15
  ],
16
16
  argTypes:{
17
- color :{ control: { type: 'select', options: ALL_COLORS } },
18
- disabled:{ control: { type: 'boolean' } },
19
- isGhost :{ control: { type: 'boolean' } },
20
- isSimple:{ control: { type: 'boolean' } },
17
+ color :{ control: { type: 'select', options: ALL_COLORS } },
18
+ disabled :{ control: { type: 'boolean' } },
19
+ isGhost :{ control: { type: 'boolean' } },
20
+ isSimple :{ control: { type: 'boolean' } },
21
+ isAnimated:{ control: { type: 'boolean' } },
21
22
  },
22
23
  }
23
24
 
@@ -100,7 +100,8 @@ Button.propTypes = {
100
100
  /**
101
101
  * The button color
102
102
  */
103
- color :PropTypes.string,
103
+ color:PropTypes.string,
104
+
104
105
  /**
105
106
  * Button loading state
106
107
  */
@@ -7,6 +7,7 @@ $compact-padding: .6em .6em .48em;
7
7
  $default-color:primary;
8
8
  $font-weight:bold;
9
9
  $default-margin:.5em;
10
+ $default-animation-time: .3s;
10
11
 
11
12
  .#{bem.$base}.button {
12
13
  background: var(--x, var(--#{$default-color}));
@@ -14,8 +15,8 @@ $default-margin:.5em;
14
15
  border-radius: var(--theme-border-radius);
15
16
  color: var(--on-x, var(--on-#{$default-color}));
16
17
  display: inline-flex;
17
- font-weight: 600;
18
18
  font-family: var(--theme-default-paragraph);
19
+ font-weight: 600;
19
20
  justify-content: space-between;
20
21
  padding: $default-padding;
21
22
  transition: all .25s;
@@ -24,6 +25,14 @@ $default-margin:.5em;
24
25
  &::after {
25
26
  content: "-->";
26
27
  margin-left: $default-margin;
28
+ vertical-align: middle;
29
+ }
30
+
31
+ &:hover {
32
+ &::after {
33
+ --final-position: 50%;
34
+ animation: animateArrow $default-animation-time forwards;
35
+ }
27
36
  }
28
37
  }
29
38
 
@@ -31,6 +40,14 @@ $default-margin:.5em;
31
40
  &::before {
32
41
  content: "<--";
33
42
  margin-right: $default-margin;
43
+ vertical-align: middle;
44
+ }
45
+
46
+ &:hover {
47
+ &::before {
48
+ --final-position: -50%;
49
+ animation: animateArrow $default-animation-time forwards;
50
+ }
34
51
  }
35
52
  }
36
53
 
@@ -46,7 +63,6 @@ $default-margin:.5em;
46
63
  }
47
64
  }
48
65
 
49
-
50
66
  &.#{bem.$modifier-compact} {
51
67
  padding: $compact-padding;
52
68
  }
@@ -114,3 +130,12 @@ $default-margin:.5em;
114
130
  }
115
131
 
116
132
 
133
+ @keyframes animateArrow {
134
+ from {
135
+ transform: translateX(0);
136
+ }
137
+
138
+ to {
139
+ transform: translateX(var(--final-position));
140
+ }
141
+ }
@@ -77,6 +77,7 @@ const Navigator = ({
77
77
  setNextStepIndex(stepsForward)
78
78
  }
79
79
  }}
80
+ isCompact
80
81
  >
81
82
  Next
82
83
  </Button>
@@ -140,8 +141,8 @@ Navigator.propTypes = {
140
141
 
141
142
  Navigator.defaultProps = {
142
143
  canMoveForward:true,
143
- previousColor :'main1',
144
- nextColor :'main1',
144
+ previousColor :'main2',
145
+ nextColor :'main2',
145
146
  stepsForward :1,
146
147
  stepsBackwards:1,
147
148
  }
@@ -41,7 +41,7 @@ const Debugger = ({
41
41
  .join(' ')}
42
42
  style={style}
43
43
  >
44
- <Button onClick={toggleDebugger} color="main1">
44
+ <Button onClick={toggleDebugger} color="main2">
45
45
  { isOpen
46
46
  ? 'Close FormDebugger'
47
47
  : 'Open FormDebugger'}
@@ -90,7 +90,7 @@ Label.propTypes = {
90
90
  Label.defaultProps = {
91
91
  // someProp:false
92
92
  as :'label',
93
- color:'main1',
93
+ color:'main2',
94
94
  }
95
95
 
96
96
  export default Label
@@ -148,7 +148,7 @@ ChoicesInput.defaultProps = {
148
148
  gridColumnsMobile :2,
149
149
  gridColumnsDesktop:3,
150
150
  color :'background2',
151
- colorChecked :'main1',
151
+ colorChecked :'main2',
152
152
  disabled :false,
153
153
  }
154
154
 
@@ -14,7 +14,7 @@ $default-padding: 0.75em 0.75em 0.55em;
14
14
 
15
15
 
16
16
  .input-label {
17
- color: var(--main1);
17
+ color: var(--main2);
18
18
  }
19
19
 
20
20
  .input {
@@ -124,7 +124,7 @@ TaskRecommendationInput.propTypes = {
124
124
  }
125
125
 
126
126
  TaskRecommendationInput.defaultProps = {
127
- color:'main1',
127
+ color:'main2',
128
128
  }
129
129
 
130
130
  export default memo(TaskRecommendationInput)
@@ -10,16 +10,16 @@ $default-padding: 0.75em 0.75em 0.55em;
10
10
  flex-direction: column;
11
11
 
12
12
  .input-label {
13
- color: var(--main1);
13
+ color: var(--main2);
14
14
  }
15
15
 
16
16
  .input {
17
- background: var(--light-background1);
18
- color: var(--on-background1);
17
+ background: var(--light-background2);
18
+ color: var(--on-background2);
19
19
  padding: $default-padding;
20
20
 
21
21
  &:focus {
22
- background: var(--dark-background1);
22
+ background: var(--dark-background2);
23
23
  }
24
24
  }
25
25
  }
@@ -152,7 +152,7 @@ TextareaInput.propTypes = {
152
152
  TextareaInput.defaultProps = {
153
153
  rows :3,
154
154
  textAreaColor:'background1',
155
- labelColor :'main1',
155
+ labelColor :'main2',
156
156
  disabled :false,
157
157
  }
158
158