@kne/react-form-antd 1.2.14 → 2.0.0-alpha.0.3

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.
package/dist/style.scss DELETED
@@ -1,217 +0,0 @@
1
- .react-form {
2
- $root: &;
3
- text-align: left;
4
- font-size: 12px;
5
-
6
- .ant-select {
7
- width: 100%;
8
- }
9
-
10
- &--large {
11
- @extend #{$root};
12
-
13
- #{$root + '__field-label'} {
14
- font-size: 14px;
15
- margin-right: 20px;
16
- line-height: 34px;
17
- }
18
- }
19
-
20
- &--small {
21
- @extend #{$root};
22
-
23
- #{$root + '__field-label'} {
24
- margin-right: 12px;
25
- line-height: 24px;
26
- }
27
- }
28
-
29
- &--inner {
30
- $inner: &;
31
- @extend #{$root};
32
-
33
- #{$root + '__field'} {
34
- margin-bottom: 22px;
35
- }
36
-
37
- #{$root + '__field-main'} {
38
- flex-direction: column;
39
- }
40
-
41
- #{$root + '__field-input'} {
42
- align-self: auto;
43
- }
44
-
45
- #{$root + '__field-label'} {
46
- font-size: 14px;
47
- text-align: left;
48
- font-weight: bold;
49
- margin-left: 0;
50
- margin-bottom: 2px;
51
- }
52
-
53
- &--large {
54
- @extend #{$inner};
55
- }
56
-
57
- &--small {
58
- @extend #{$inner};
59
-
60
- #{$root + '__field-label'} {
61
- font-size: 12px;
62
- margin-bottom: 1px;
63
- }
64
- }
65
- }
66
-
67
- &--inline {
68
- $inline: &;
69
- @extend #{$root};
70
- padding: 30px 30px 6px;
71
-
72
- #{$root + '__field'} {
73
- display: inline-block;
74
- margin-right: 40px;
75
-
76
- &:last-child {
77
- margin-right: 0;
78
- }
79
- }
80
-
81
- #{$root + '__field-label'} {
82
- min-width: auto !important;
83
- padding-left: 0;
84
-
85
- &.is-req:before {
86
- position: static;
87
- }
88
- }
89
-
90
- &--large {
91
- @extend #{$inline};
92
-
93
- #{$root + '__field-label'} {
94
- font-size: 14px;
95
- line-height: 34px;
96
- }
97
- }
98
-
99
- &--small {
100
- @extend #{$inline};
101
-
102
- #{$root + '__field-label'} {
103
- margin-right: 12px;
104
- }
105
- }
106
- }
107
-
108
- &__field-main {
109
- display: flex;
110
- }
111
-
112
- &__field-label {
113
- text-align: right;
114
- margin-right: 16px;
115
- line-height: 30px;
116
- margin-left: 10px;
117
- position: relative;
118
-
119
- &.is-req {
120
- &:before {
121
- position: absolute;
122
- color: #fc3333;
123
- font-weight: bold;
124
- content: '*';
125
- margin-right: 4px;
126
- transform: translateX(-10px);
127
- }
128
- }
129
- }
130
-
131
- &__field-input {
132
- align-self: center;
133
- flex: 1;
134
- position: relative;
135
- }
136
-
137
- &__field {
138
- margin-bottom: 24px;
139
-
140
- transition: border-color 300ms;
141
-
142
- &.is-req-error,
143
- &.is-error {
144
- #{$root + '__field-component'} {
145
- @mixin error-border {
146
- border-color: #fc3333;
147
- }
148
- @mixin error-focus {
149
- box-shadow: 0 0 0 2px rgba(252, 51, 51, 0.2);
150
- }
151
- @mixin error-state {
152
- @include error-border;
153
-
154
- &:focus {
155
- @include error-focus;
156
- }
157
- }
158
- @include error-state;
159
-
160
- .ant-select-selection, .ant-input, .ant-radio-inner {
161
- @include error-state;
162
- }
163
-
164
- .ant-upload.ant-upload-select-picture-card{
165
- @include error-border;
166
- }
167
-
168
- &.ant-input-affix-wrapper .ant-input{
169
- box-shadow: none;
170
- }
171
-
172
- &.ant-input-affix-wrapper-focused{
173
- @include error-focus;
174
- }
175
-
176
- &.ant-select {
177
- > .ant-select-selector {
178
- @include error-border;
179
- }
180
-
181
- &.ant-select-focused > .ant-select-selector {
182
- @include error-focus;
183
- }
184
- }
185
- }
186
- }
187
-
188
- &-error {
189
- color: #fc3333;
190
- font-size: 12px;
191
- position: absolute;
192
- top: calc(100% + 1px);
193
- left: 0;
194
- }
195
- }
196
- }
197
-
198
- .react-form-modal {
199
- .ant-modal-content > .ant-modal-body {
200
- padding: 0;
201
- }
202
- }
203
-
204
- .react-form-avatar{
205
- .preview{
206
- width: 85px;
207
- height: 85px;
208
- overflow: hidden;
209
- display: flex;
210
- justify-content: center;
211
- align-items: center;
212
- img{
213
- max-width: 100%;
214
- max-height: 100%;
215
- }
216
- }
217
- }