@itcase/forms 1.0.31 → 1.0.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.
@@ -1,13 +1,21 @@
1
1
  .form-choice {
2
2
  &&_state {
3
3
  &_success {
4
- border: solid 1px var(--color-success-border-primary);
4
+ & .choice {
5
+ /* border: solid 1px var(--color-success-border-primary); */
6
+ }
5
7
  }
6
8
  &_error {
7
- border: solid 1px var(--color-error-border-primary);
9
+ & .choice {
10
+ border: solid 1px var(--color-error-border-primary);
11
+ }
8
12
  }
9
13
  &_focus {
10
14
  /* border: solid 1px var(--color-error-border-primary); */
11
15
  }
12
16
  }
13
17
  }
18
+ .form-field {
19
+ &_type_choice {
20
+ }
21
+ }
@@ -1,7 +1,7 @@
1
1
  .form {
2
2
  &__group {
3
3
  width: 100%;
4
- margin: 0;
4
+ margin: 0 0 12px 0;
5
5
  &-wrapper {
6
6
  display: flex;
7
7
  flex-flow: column nowrap;
@@ -156,45 +156,6 @@
156
156
  position: relative;
157
157
  }
158
158
  }
159
- .form-response {
160
- background: var(--color-surface-primary);
161
- padding: 30px;
162
- display: flex;
163
- flex-flow: column nowrap;
164
- align-items: center;
165
- @mixin elevation-2;
166
- &__icon {
167
- width: 100px;
168
- height: 100px;
169
- display: flex;
170
- justify-content: center;
171
- align-items: center;
172
- & svg {
173
- fill: var(--color-surface-item-accent);
174
- transform: scale(4.18);
175
- }
176
- }
177
- &__title {
178
- max-width: 240px;
179
- color: var(--color-surface-text-primary);
180
- text-align: center;
181
- padding: 0;
182
- margin: 0 0 8px 0;
183
- @mixin h5;
184
- }
185
- &__text {
186
- max-width: 240px;
187
- color: var(--color-surface-text-primary);
188
- text-align: center;
189
- padding: 0;
190
- margin: 0;
191
- @mixin text-l;
192
- }
193
- &__button {
194
- width: 100%;
195
- margin: 30px 0 0 0;
196
- }
197
- }
198
159
  .form-notification {
199
160
  &_type {
200
161
  &_sticky {
@@ -1746,7 +1746,10 @@ var Group = /*#__PURE__*/React__default.default.memo(function Group(props) {
1746
1746
  size: messageTextSize,
1747
1747
  textWeight: messageTextWeight,
1748
1748
  textColor: messageTextColor
1749
- }, message));
1749
+ }, message), Boolean(!showError) && Boolean(!message) && /*#__PURE__*/React__default.default.createElement(Text.Text, {
1750
+ className: "form__group-message",
1751
+ size: messageTextSize
1752
+ }, "\xA0"));
1750
1753
  });
1751
1754
  });
1752
1755
  Group.defaultProps = {
@@ -1736,7 +1736,10 @@ var Group = /*#__PURE__*/React.memo(function Group(props) {
1736
1736
  size: messageTextSize,
1737
1737
  textWeight: messageTextWeight,
1738
1738
  textColor: messageTextColor
1739
- }, message));
1739
+ }, message), Boolean(!showError) && Boolean(!message) && /*#__PURE__*/React.createElement(Text, {
1740
+ className: "form__group-message",
1741
+ size: messageTextSize
1742
+ }, "\xA0"));
1740
1743
  });
1741
1744
  });
1742
1745
  Group.defaultProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/forms",
3
- "version": "1.0.31",
3
+ "version": "1.0.33",
4
4
  "description": "Forms fields, inputs, etc.",
5
5
  "keywords": [
6
6
  "forms",
@@ -1,39 +0,0 @@
1
- .form-response {
2
- background: var(--color-surface-primary);
3
- padding: 30px;
4
- display: flex;
5
- flex-flow: column nowrap;
6
- align-items: center;
7
- @mixin elevation-2;
8
- &__icon {
9
- width: 100px;
10
- height: 100px;
11
- display: flex;
12
- justify-content: center;
13
- align-items: center;
14
- & svg {
15
- fill: var(--color-surface-item-accent);
16
- transform: scale(4.18);
17
- }
18
- }
19
- &__title {
20
- max-width: 240px;
21
- color: var(--color-surface-text-primary);
22
- text-align: center;
23
- padding: 0;
24
- margin: 0 0 8px 0;
25
- @mixin h5;
26
- }
27
- &__text {
28
- max-width: 240px;
29
- color: var(--color-surface-text-primary);
30
- text-align: center;
31
- padding: 0;
32
- margin: 0;
33
- @mixin text-l;
34
- }
35
- &__button {
36
- width: 100%;
37
- margin: 30px 0 0 0;
38
- }
39
- }