@steroidsjs/bootstrap 3.0.10 → 3.0.11

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 (60) hide show
  1. package/content/Calendar/CaptionElement.js +2 -2
  2. package/content/CalendarSystem/AsideCalendars/AsideCalendars.d.ts +2 -7
  3. package/content/CalendarSystem/AsideHeader/AsideHeader.d.ts +2 -2
  4. package/content/CalendarSystem/AsideHeader/AsideHeader.js +1 -1
  5. package/content/CalendarSystem/CalendarSystemModalView.js +13 -4
  6. package/content/CalendarSystem/CalendarSystemModalView.scss +6 -0
  7. package/content/CalendarSystem/CalendarSystemView.js +15 -8
  8. package/content/CalendarSystem/ContentHeader/ContentHeader.d.ts +2 -5
  9. package/content/CalendarSystem/ContentHeader/ContentHeader.js +2 -2
  10. package/content/CalendarSystem/ContentHeader/ContentHeader.scss +1 -0
  11. package/content/CalendarSystem/DayGrid/DayGrid.d.ts +7 -0
  12. package/content/CalendarSystem/DayGrid/DayGrid.js +33 -0
  13. package/content/CalendarSystem/DayGrid/DayGrid.scss +111 -0
  14. package/content/CalendarSystem/DayGrid/index.d.ts +2 -0
  15. package/content/CalendarSystem/DayGrid/index.js +7 -0
  16. package/content/CalendarSystem/DayGrid/views/DayHour/DayHour.d.ts +11 -0
  17. package/content/CalendarSystem/DayGrid/views/DayHour/DayHour.js +46 -0
  18. package/content/CalendarSystem/DayGrid/views/DayHour/DayHour.scss +7 -0
  19. package/content/CalendarSystem/DayGrid/views/DayHour/index.d.ts +2 -0
  20. package/content/CalendarSystem/DayGrid/views/DayHour/index.js +7 -0
  21. package/content/CalendarSystem/DayGrid/views/DayHour/views/DayEvent/DayEvent.d.ts +7 -0
  22. package/content/CalendarSystem/DayGrid/views/DayHour/views/DayEvent/DayEvent.js +30 -0
  23. package/content/CalendarSystem/DayGrid/views/DayHour/views/DayEvent/DayEvent.scss +25 -0
  24. package/content/CalendarSystem/DayGrid/views/DayHour/views/DayEvent/index.d.ts +2 -0
  25. package/content/CalendarSystem/DayGrid/views/DayHour/views/DayEvent/index.js +7 -0
  26. package/content/CalendarSystem/MonthGrid/MonthGrid.d.ts +2 -9
  27. package/content/CalendarSystem/MonthGrid/MonthGrid.js +8 -2
  28. package/content/CalendarSystem/MonthGrid/views/MonthDay/MonthDay.d.ts +4 -6
  29. package/content/CalendarSystem/MonthGrid/views/MonthDay/MonthDay.js +3 -6
  30. package/content/CalendarSystem/MonthGrid/views/MonthDay/MonthDay.scss +2 -31
  31. package/content/CalendarSystem/MonthGrid/views/MonthDay/views/MonthEvent/MonthEvent.d.ts +7 -0
  32. package/content/CalendarSystem/MonthGrid/views/MonthDay/views/MonthEvent/MonthEvent.js +18 -0
  33. package/content/CalendarSystem/MonthGrid/views/MonthDay/views/MonthEvent/MonthEvent.scss +39 -0
  34. package/content/CalendarSystem/MonthGrid/views/MonthDay/views/MonthEvent/index.d.ts +2 -0
  35. package/content/CalendarSystem/MonthGrid/views/MonthDay/views/MonthEvent/index.js +7 -0
  36. package/content/CalendarSystem/WeekGrid/WeekGrid.d.ts +2 -9
  37. package/content/CalendarSystem/WeekGrid/WeekGrid.js +9 -3
  38. package/content/CalendarSystem/WeekGrid/WeekGrid.scss +3 -2
  39. package/content/CalendarSystem/WeekGrid/views/WeekHour/WeekHour.d.ts +4 -6
  40. package/content/CalendarSystem/WeekGrid/views/WeekHour/WeekHour.js +7 -40
  41. package/content/CalendarSystem/WeekGrid/views/WeekHour/WeekHour.scss +2 -98
  42. package/content/CalendarSystem/WeekGrid/views/WeekHour/views/WeekEvent/WeekEvent.d.ts +7 -0
  43. package/content/CalendarSystem/WeekGrid/views/WeekHour/views/WeekEvent/WeekEvent.js +30 -0
  44. package/content/CalendarSystem/WeekGrid/views/WeekHour/views/WeekEvent/WeekEvent.scss +42 -0
  45. package/content/CalendarSystem/WeekGrid/views/WeekHour/views/WeekEvent/index.d.ts +2 -0
  46. package/content/CalendarSystem/WeekGrid/views/WeekHour/views/WeekEvent/index.js +7 -0
  47. package/content/Chat/views/ChatInput/ChatInputView.js +3 -3
  48. package/content/Icon/IconView.js +2 -2
  49. package/form/CheckboxField/CheckboxFieldView.js +1 -1
  50. package/form/CheckboxTreeField/CheckboxTreeFieldView.js +2 -1
  51. package/form/FieldSet/FieldSetView.scss +7 -9
  52. package/form/FileField/FileFieldView.js +1 -1
  53. package/form/FileField/FileFieldView.scss +11 -3
  54. package/form/InputField/InputFieldView.scss +20 -6
  55. package/form/PasswordField/PasswordFieldView.js +6 -3
  56. package/form/PasswordField/PasswordFieldView.scss +34 -15
  57. package/form/TextField/TextFieldView.scss +1 -2
  58. package/icons/index.js +1 -0
  59. package/icons/svgs/export.svg +4 -0
  60. package/package.json +2 -2
@@ -58,8 +58,11 @@ $lead-icon-disabled-color: var(--lead-icon-disabled-color);
58
58
  color: variables.$element-placeholder-color;
59
59
  font-size: inherit;
60
60
  }
61
- }
62
61
 
62
+ &:not(:disabled):focus {
63
+ border: none;
64
+ }
65
+ }
63
66
 
64
67
  //Statements
65
68
  &::before {
@@ -80,7 +83,6 @@ $lead-icon-disabled-color: var(--lead-icon-disabled-color);
80
83
  &:not(#{$root}_disabled):focus-within::before {
81
84
  border: 4px solid variables.$primary-light;
82
85
  transform: translateX(-4px) translateY(-4px);
83
- border-radius: 16px;
84
86
  opacity: 1;
85
87
  }
86
88
 
@@ -90,7 +92,7 @@ $lead-icon-disabled-color: var(--lead-icon-disabled-color);
90
92
  }
91
93
 
92
94
  &::before {
93
- transform: none;
95
+ transform: translate(-1px, -1px);
94
96
  border: 1px solid variables.$primary;
95
97
  opacity: 1;
96
98
  }
@@ -140,7 +142,11 @@ $lead-icon-disabled-color: var(--lead-icon-disabled-color);
140
142
  }
141
143
 
142
144
  &::before {
143
- border-radius: 14px;
145
+ border-radius: variables.$radius-large;
146
+ }
147
+
148
+ &:focus-within::before {
149
+ border-radius: 16px;
144
150
  }
145
151
  }
146
152
 
@@ -167,7 +173,11 @@ $lead-icon-disabled-color: var(--lead-icon-disabled-color);
167
173
  }
168
174
 
169
175
  &::before {
170
- border-radius: 14px;
176
+ border-radius: variables.$radius-medium;
177
+ }
178
+
179
+ &:focus-within::before {
180
+ border-radius: 16px;
171
181
  }
172
182
  }
173
183
 
@@ -192,7 +202,11 @@ $lead-icon-disabled-color: var(--lead-icon-disabled-color);
192
202
  }
193
203
 
194
204
  &::before {
195
- border-radius: 10px;
205
+ border-radius: variables.$radius-small;
206
+ }
207
+
208
+ &:focus-within::before {
209
+ border-radius: 12px;
196
210
  }
197
211
  }
198
212
  }
@@ -46,12 +46,15 @@ function PasswordFieldView(props) {
46
46
  return (React.createElement("div", { className: bem(bem.block({
47
47
  size: props.size,
48
48
  filled: !!props.input.value,
49
- disabled: props.inputProps.disabled
50
- }), props.className) },
49
+ disabled: props.disabled,
50
+ hasError: !!props.errors
51
+ }), props.className), style: props.style },
51
52
  React.createElement("div", { className: bem.element('container', {
52
53
  disabled: props.inputProps.disabled
53
54
  }) },
54
- React.createElement("input", __assign({ className: bem.element('input') }, props.inputProps, { id: props.id, required: props.required })),
55
+ React.createElement("input", __assign({ className: bem(bem.element('input', {
56
+ size: props.size
57
+ })) }, props.inputProps, { disabled: props.disabled, required: props.required, id: props.id, ref: props.inputRef })),
55
58
  props.showSecurityIcon && (React.createElement("span", { className: bem(bem.element('icon-eye', {
56
59
  viewHide: props.inputProps.type === PasswordField_1.InputType.PASSWORD
57
60
  })), onClick: props.onShowButtonClick },
@@ -31,20 +31,33 @@ $eye-filled-color: var(--eye-filled-color);
31
31
  &::before {
32
32
  position: absolute;
33
33
  content: "";
34
+ z-index: 2;
34
35
  width: 100%;
35
36
  height: 100%;
36
-
37
- transform: translate(-4px, -4px);
38
-
37
+ top: 0;
38
+ left: 0;
39
+ transform: translate(-1px, -1px);
39
40
  border-radius: 16px;
40
-
41
- border: 4px solid variables.$primary-light;
42
41
  transition: opacity 150ms ease-in-out;
43
42
  opacity: 0;
44
43
  pointer-events: none;
45
44
  }
45
+ }
46
+
47
+ &:not(#{$root}_disabled) &__container:focus-within::before {
48
+ border: 4px solid variables.$primary-light;
49
+ transform: translateX(-4px) translateY(-4px);
50
+ opacity: 1;
51
+ }
52
+
53
+ &:not(#{$root}_disabled) &__container:active {
54
+ #{$root}__input {
55
+ border-color: transparent;
56
+ }
46
57
 
47
- &:focus-within:not(&_disabled):not(:active)::before {
58
+ &::before {
59
+ transform: translate(-1px, -1px);
60
+ border: 1px solid variables.$primary;
48
61
  opacity: 1;
49
62
  }
50
63
  }
@@ -52,7 +65,7 @@ $eye-filled-color: var(--eye-filled-color);
52
65
  &__input {
53
66
  width: 100%;
54
67
  height: 100%;
55
- border-radius: variables.$radius-small;
68
+ border-radius: inherit;
56
69
  border: 1px solid variables.$element-border-color;
57
70
  outline: none;
58
71
  padding-left: 8px;
@@ -65,16 +78,12 @@ $eye-filled-color: var(--eye-filled-color);
65
78
  color: variables.$element-placeholder-color;
66
79
  }
67
80
 
68
- &:hover {
69
- border: 1px solid variables.$element-border-color-hover;
70
- }
71
-
72
81
  &:not(:disabled):active {
73
82
  border: 1px solid variables.$primary;
74
83
  }
75
84
 
76
85
  &:not(:disabled):focus {
77
- border-color: transparent;
86
+ border: none;
78
87
  }
79
88
 
80
89
  &:disabled {
@@ -89,8 +98,11 @@ $eye-filled-color: var(--eye-filled-color);
89
98
  height: 56px;
90
99
 
91
100
  &::before {
101
+ border-radius: variables.$radius-large;
102
+ }
103
+
104
+ &:focus-within::before {
92
105
  border-radius: 16px;
93
- transform: translateX(-2%) translateY(-6.5%);
94
106
  }
95
107
  }
96
108
 
@@ -105,6 +117,10 @@ $eye-filled-color: var(--eye-filled-color);
105
117
  height: 46px;
106
118
 
107
119
  &::before {
120
+ border-radius: variables.$radius-medium;
121
+ }
122
+
123
+ &:focus-within::before {
108
124
  border-radius: 16px;
109
125
  }
110
126
  }
@@ -120,8 +136,11 @@ $eye-filled-color: var(--eye-filled-color);
120
136
  height: variables.$input-height-sm;
121
137
 
122
138
  &::before {
139
+ border-radius: variables.$radius-small;
140
+ }
141
+
142
+ &:focus-within::before {
123
143
  border-radius: 12px;
124
- transform: translateX(-2%) translateY(-9.5%);
125
144
  }
126
145
  }
127
146
 
@@ -221,7 +240,7 @@ $eye-filled-color: var(--eye-filled-color);
221
240
  }
222
241
  }
223
242
 
224
- circle {
243
+ circle {
225
244
  stroke: $eye-filled-color;
226
245
  }
227
246
  }
@@ -4,8 +4,6 @@
4
4
  --text-field-disabled-clear-color: #e5e9eb;
5
5
  --text-field-active-clear-color: #323232;
6
6
  --text-field-background-color: #ffffff;
7
- --text-field-border-color:
8
- ;
9
7
  }
10
8
 
11
9
  html[data-theme="dark"] {
@@ -57,6 +55,7 @@ $text-field-active-clear-color: var(--text-field-active-clear-color);
57
55
  &__textarea {
58
56
  width: 100%;
59
57
  min-width: 240px;
58
+ max-width: 100%;
60
59
  min-height: 80px;
61
60
  height: 80px;
62
61
 
package/icons/index.js CHANGED
@@ -65,6 +65,7 @@ exports["default"] = (function (customIcons) {
65
65
  'home',
66
66
  'img_box',
67
67
  'import',
68
+ 'export',
68
69
  'info_16x16',
69
70
  'info_24x24',
70
71
  'loading_purple',
@@ -0,0 +1,4 @@
1
+ <svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M7 10.4492L12 5.44922M12 5.44922L17 10.4492M12 5.44922L12 14.4492" stroke="#323232" stroke-linecap="round" stroke-linejoin="round"/>
3
+ <path d="M5 16.4492L5 17.4492C5 18.5538 5.89543 19.4492 7 19.4492L17 19.4492C18.1046 19.4492 19 18.5538 19 17.4492V16.4492" stroke="#323232" stroke-linecap="round" stroke-linejoin="round"/>
4
+ </svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/bootstrap",
3
- "version": "3.0.10",
3
+ "version": "3.0.11",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "Vladimir Kozhin <hello@kozhindev.com>",
@@ -35,7 +35,7 @@
35
35
  "react-use": "^17.4.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@steroidsjs/core": "^3.0.11",
38
+ "@steroidsjs/core": "^3.0.16",
39
39
  "@steroidsjs/eslint-config": "^2.1.6",
40
40
  "@types/enzyme": "^3.10.8",
41
41
  "@types/googlemaps": "^3.43.3",