@inntechcorp/it-design 2.0.155 → 2.0.156

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.
@@ -14,7 +14,7 @@ export type FormContextType = {
14
14
  setName: (name: string) => void;
15
15
  setInitialValues: (initialFields: {}, update?: boolean, validation?: boolean) => {};
16
16
  setInvalidField: (name: string, message: string) => void;
17
- setInvalidFields: (names: [], message: string) => void;
17
+ setInvalidFields: (names: string[], message: string) => void;
18
18
  setFieldValue: (name: string, value: FormValueProps) => void;
19
19
  setFieldValueByName: (name: string, value: FormValueProps, update: boolean, validation: boolean) => void;
20
20
  setFieldError: (name: string, message: string, validation?: boolean) => void;
package/dist/index.d.ts CHANGED
@@ -431,7 +431,7 @@ type FormContextType = {
431
431
  setName: (name: string) => void;
432
432
  setInitialValues: (initialFields: {}, update?: boolean, validation?: boolean) => {};
433
433
  setInvalidField: (name: string, message: string) => void;
434
- setInvalidFields: (names: [], message: string) => void;
434
+ setInvalidFields: (names: string[], message: string) => void;
435
435
  setFieldValue: (name: string, value: FormValueProps) => void;
436
436
  setFieldValueByName: (name: string, value: FormValueProps, update: boolean, validation: boolean) => void;
437
437
  setFieldError: (name: string, message: string, validation?: boolean) => void;
@@ -61,33 +61,30 @@
61
61
  -webkit-box-shadow: 0 0 0 30px #151d3d inset !important;
62
62
  }
63
63
 
64
- .arrow {
65
- transition: all 0.25s ease-out;
66
- margin-left: auto;
67
- transform: rotate(0deg);
68
- width: 20px;
69
- height: 20px;
70
- fill: rgba(255, 255, 255, 0.6);
64
+ .option {
65
+ display: flex;
66
+ align-items: center;
67
+ cursor: pointer;
68
+ min-width: max-content;
69
+ padding: 10px 30px 10px 15px;
71
70
  }
72
-
73
- .arrowNormal {
74
- margin-left: auto;
75
- transform: rotate(-90deg);
71
+ .option:not(:last-child) {
72
+ margin-bottom: 1px;
73
+ }
74
+ .option:hover {
75
+ background-color: rgba(29, 38, 73, 0.5019607843);
76
76
  }
77
77
 
78
- .arrowOpen {
79
- transform: rotate(-180deg);
80
- fill: #ffffff;
78
+ .selected .single, .selected .option span {
79
+ color: #ffffff;
81
80
  }
82
81
 
83
- .icon {
84
- margin-right: 8px;
85
- height: 22px;
86
- width: 22px;
87
- color: rgba(255, 255, 255, 0.6);
88
- font-size: 22px;
89
- display: flex;
90
- align-items: center;
82
+ .single, .option span {
83
+ color: rgba(255, 255, 255, 0.6666666667);
84
+ font-weight: 400;
85
+ font-size: 12px;
86
+ line-height: 12px;
87
+ white-space: nowrap;
91
88
  }
92
89
 
93
90
  .menu {
@@ -156,30 +153,33 @@
156
153
  transition: height 150ms ease-out;
157
154
  }
158
155
 
159
- .option {
160
- display: flex;
161
- align-items: center;
162
- cursor: pointer;
163
- min-width: max-content;
164
- padding: 10px 30px 10px 15px;
165
- }
166
- .option:not(:last-child) {
167
- margin-bottom: 1px;
156
+ .arrow {
157
+ transition: all 0.25s ease-out;
158
+ margin-left: auto;
159
+ transform: rotate(0deg);
160
+ width: 20px;
161
+ height: 20px;
162
+ fill: rgba(255, 255, 255, 0.6);
168
163
  }
169
- .option:hover {
170
- background-color: rgba(29, 38, 73, 0.5019607843);
164
+
165
+ .arrowNormal {
166
+ margin-left: auto;
167
+ transform: rotate(-90deg);
171
168
  }
172
169
 
173
- .selected .single, .selected .option span {
174
- color: #ffffff;
170
+ .arrowOpen {
171
+ transform: rotate(-180deg);
172
+ fill: #ffffff;
175
173
  }
176
174
 
177
- .single, .option span {
178
- color: rgba(255, 255, 255, 0.6666666667);
179
- font-weight: 400;
180
- font-size: 12px;
181
- line-height: 12px;
182
- white-space: nowrap;
175
+ .icon {
176
+ margin-right: 8px;
177
+ height: 22px;
178
+ width: 22px;
179
+ color: rgba(255, 255, 255, 0.6);
180
+ font-size: 22px;
181
+ display: flex;
182
+ align-items: center;
183
183
  }
184
184
 
185
185
  .container {
@@ -0,0 +1,241 @@
1
+ .defaultInput {
2
+ height: 100%;
3
+ }
4
+
5
+ .floatingInput {
6
+ font-size: 13px;
7
+ color: rgba(0, 0, 0, 0.8509803922);
8
+ caret-color: rgba(0, 0, 0, 0.8509803922);
9
+ }
10
+
11
+ /* --------------------------------- */
12
+ .floatingInput::placeholder {
13
+ color: rgba(0, 0, 0, 0);
14
+ }
15
+
16
+ .floatingInput:disabled:not(.floatingInput[data-locked=true]) {
17
+ opacity: 0.5;
18
+ }
19
+
20
+ .floatingInput:disabled :not(.floatingInput[data-locked=true]) {
21
+ opacity: 0.5;
22
+ }
23
+
24
+ .floatingLabel {
25
+ display: block;
26
+ position: relative;
27
+ max-height: 0;
28
+ font-weight: 500;
29
+ pointer-events: none;
30
+ font-size: 16px;
31
+ }
32
+
33
+ .floatingLabel::before {
34
+ color: rgba(0, 0, 0, 0.6);
35
+ content: attr(data-content);
36
+ display: inline-block;
37
+ filter: blur(0);
38
+ backface-visibility: hidden;
39
+ transform-origin: left top;
40
+ transition: transform 0.2s ease-out;
41
+ position: relative;
42
+ }
43
+
44
+ .floatingInput:placeholder-shown + .floatingLabel::before {
45
+ transform: translate3d(0, -32px, 0) scale3d(0.8, 0.8, 1);
46
+ font-smooth: always;
47
+ -webkit-font-smoothing: antialiased;
48
+ }
49
+
50
+ .floatingLabel::before,
51
+ .floatingInput:focus + .floatingLabel::before {
52
+ transform: translate3d(0, -40px, 0) scale3d(0.8, 0.8, 1);
53
+ }
54
+
55
+ .floatingInput:focus + .floatingLabel::before {
56
+ color: rgba(0, 0, 0, 0.6);
57
+ }
58
+
59
+ .floatingInputinput:-webkit-autofill, .floatingInputinput:-webkit-autofill:focus, .floatingInputinput:-webkit-autofill:hover {
60
+ -webkit-text-fill-color: #3496fa !important;
61
+ -webkit-box-shadow: 0 0 0 30px #151d3d inset !important;
62
+ }
63
+
64
+ .menu {
65
+ background-color: #050A20;
66
+ border-radius: 0 5px 5px 5px;
67
+ overflow: hidden;
68
+ position: absolute;
69
+ z-index: 2;
70
+ box-shadow: 0px 20px 20px rgba(0, 0, 0, 0.25);
71
+ transform-origin: 50% 1%;
72
+ transform-box: fill-box;
73
+ transition-timing-function: cubic-bezier(0.75, -0.5, 0, 1.25);
74
+ }
75
+ .menu ul {
76
+ min-width: max-content;
77
+ }
78
+
79
+ .bodyWrapper {
80
+ height: 300px;
81
+ }
82
+
83
+ .bodyWrapperLong {
84
+ height: 300px;
85
+ }
86
+
87
+ .bottom {
88
+ top: 100%;
89
+ }
90
+
91
+ .left {
92
+ left: 0;
93
+ }
94
+
95
+ /* -------------------------------- */
96
+ .menuEnter {
97
+ opacity: 0;
98
+ height: 50px;
99
+ }
100
+
101
+ .menuEnterActive {
102
+ opacity: 1;
103
+ height: 300px;
104
+ transition: height 150ms ease-out;
105
+ }
106
+
107
+ .menuExit {
108
+ opacity: 1;
109
+ }
110
+
111
+ .menuExitActive {
112
+ opacity: 0;
113
+ height: 300px;
114
+ transition: height 150ms ease-out;
115
+ }
116
+
117
+ /* -------------------------------- */
118
+ .menuEnterActiveLong {
119
+ opacity: 1;
120
+ height: 300px;
121
+ transition: height 150ms ease-out;
122
+ }
123
+
124
+ .menuExitActiveLong {
125
+ opacity: 0;
126
+ height: 300px;
127
+ transition: height 150ms ease-out;
128
+ }
129
+
130
+ .arrow {
131
+ transition: all 0.25s ease-out;
132
+ margin-left: auto;
133
+ transform: rotate(0deg);
134
+ width: 20px;
135
+ height: 20px;
136
+ fill: rgba(255, 255, 255, 0.6);
137
+ }
138
+
139
+ .arrowNormal {
140
+ margin-left: auto;
141
+ transform: rotate(-90deg);
142
+ }
143
+
144
+ .arrowOpen {
145
+ transform: rotate(-180deg);
146
+ fill: #ffffff;
147
+ }
148
+
149
+ .icon {
150
+ margin-right: 8px;
151
+ height: 22px;
152
+ width: 22px;
153
+ color: rgba(255, 255, 255, 0.6);
154
+ font-size: 22px;
155
+ display: flex;
156
+ align-items: center;
157
+ }
158
+
159
+ .option {
160
+ display: flex;
161
+ align-items: center;
162
+ cursor: pointer;
163
+ min-width: max-content;
164
+ padding: 10px 30px 10px 15px;
165
+ }
166
+ .option:not(:last-child) {
167
+ margin-bottom: 1px;
168
+ }
169
+ .option:hover {
170
+ background-color: rgba(29, 38, 73, 0.5019607843);
171
+ }
172
+
173
+ .selected .single, .selected .option span {
174
+ color: #ffffff;
175
+ }
176
+
177
+ .single, .option span {
178
+ color: rgba(255, 255, 255, 0.6666666667);
179
+ font-weight: 400;
180
+ font-size: 12px;
181
+ line-height: 12px;
182
+ white-space: nowrap;
183
+ }
184
+
185
+ .container {
186
+ display: flex;
187
+ align-items: center;
188
+ cursor: pointer;
189
+ user-select: none;
190
+ }
191
+
192
+ .label {
193
+ display: flex;
194
+ align-items: center;
195
+ position: relative;
196
+ }
197
+ .label span {
198
+ font-size: 12px;
199
+ font-weight: 400;
200
+ color: rgba(255, 255, 255, 0.6);
201
+ line-height: 1.2;
202
+ margin-left: 10px;
203
+ }
204
+
205
+ .checkmark {
206
+ height: 20px;
207
+ width: 20px;
208
+ border-radius: 6px;
209
+ background-color: #1D2649;
210
+ transition: background-color 0.25sn ease-out;
211
+ display: flex;
212
+ justify-content: center;
213
+ align-items: center;
214
+ }
215
+ .checkmark svg {
216
+ fill: #ffffff;
217
+ visibility: hidden;
218
+ }
219
+
220
+ .check {
221
+ background-color: #3396FB;
222
+ }
223
+ .check svg {
224
+ visibility: visible;
225
+ animation: bounce 0.5s;
226
+ }
227
+
228
+ @keyframes bounce {
229
+ 0% {
230
+ transform: scale(0.2) rotate(4deg);
231
+ }
232
+ 50% {
233
+ transform: scale(1.2) rotate(-2deg);
234
+ }
235
+ 75% {
236
+ transform: scale(0.9) rotate(1deg);
237
+ }
238
+ 100% {
239
+ transform: scale(1) rotate(0deg);
240
+ }
241
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inntechcorp/it-design",
3
- "version": "2.0.155",
3
+ "version": "2.0.156",
4
4
  "description": "All in one Design library for web applications.",
5
5
  "author": "Inn.Tech",
6
6
  "license": "ISC",