@visns-studio/visns-components 4.4.0 → 4.4.1

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,4 +1,5 @@
1
1
  // src/components/Profile.jsx
2
+ import '../../styles/global.css';
2
3
 
3
4
  import React, { useState, useEffect, useRef } from 'react';
4
5
  import PasswordStrengthBar from 'react-password-strength-bar';
@@ -129,7 +130,7 @@ const Profile = ({ userProfile, setUserProfile }) => {
129
130
  type="text"
130
131
  name="name"
131
132
  onChange={handleChangeProfile}
132
- className={inputClasses.name}
133
+ className={`${styles.input} ${inputClasses.name}`}
133
134
  value={profile.name}
134
135
  />
135
136
  <span className={styles.fi__span}>
@@ -143,7 +144,7 @@ const Profile = ({ userProfile, setUserProfile }) => {
143
144
  type="text"
144
145
  name="email"
145
146
  readOnly
146
- className={inputClasses.email}
147
+ className={`${styles.input} ${inputClasses.email}`}
147
148
  value={profile.email}
148
149
  />
149
150
  <span className={styles.fi__span}>
@@ -163,7 +164,7 @@ const Profile = ({ userProfile, setUserProfile }) => {
163
164
  name="password"
164
165
  onChange={handleChangeProfile}
165
166
  value={profile.password}
166
- className={inputClasses.password}
167
+ className={`${styles.input} ${inputClasses.password}`}
167
168
  />
168
169
  <PasswordStrengthBar
169
170
  password={profile.password}
@@ -182,9 +183,7 @@ const Profile = ({ userProfile, setUserProfile }) => {
182
183
  name="password_confirmation"
183
184
  onChange={handleChangeProfile}
184
185
  value={profile.password_confirmation}
185
- className={
186
- inputClasses.password_confirmation
187
- }
186
+ className={`${styles.input} ${inputClasses.password_confirmation}`}
188
187
  />
189
188
  </label>
190
189
  </div>
@@ -1,5 +1,16 @@
1
1
  /* Profile.module.css */
2
2
 
3
+ input:not(:placeholder-shown) + .fi__span,
4
+ textarea:not(:placeholder-shown) + .fi__span,
5
+ select:not(:placeholder-shown) + .fi__span {
6
+ transform: translateY(-40%) translateX(10px) scale(0.75);
7
+ opacity: 1;
8
+ padding: 0 4px;
9
+ background: var(--tertiary-color);
10
+ font-weight: 300;
11
+ border-radius: var(--br);
12
+ }
13
+
3
14
  .grid {
4
15
  width: 100%;
5
16
  display: flex;
@@ -136,8 +147,9 @@
136
147
  z-index: 500;
137
148
  }
138
149
 
139
- input[type='text'],
140
- input[type='password'] {
150
+ .input,
151
+ .textarea,
152
+ .select {
141
153
  background: var(--item-color);
142
154
  border-radius: var(--br);
143
155
  border: 1px solid transparent;
@@ -149,28 +161,19 @@ input[type='password'] {
149
161
  transition: box-shadow 0.15s linear;
150
162
  }
151
163
 
152
- input[type='text']:hover,
153
- input[type='password']:hover {
164
+ .input:hover,
165
+ .textarea:hover,
166
+ .select:hover {
154
167
  border: 1px solid rgba(var(--highlight-color-rgb), 0.85);
155
168
  transition: border 0.15s linear;
156
169
  }
157
170
 
158
- input[type='text']:focus,
159
- input[type='password']:focus {
171
+ .input:focus,
172
+ .textarea:focus,
173
+ .select:focus {
160
174
  border: 1px solid rgba(var(--highlight-color-rgb), 0.85);
161
175
  }
162
176
 
163
- input:not(:placeholder-shown) + .fi__span,
164
- textarea:not(:placeholder-shown) + .fi__span,
165
- select:not(:placeholder-shown) + .fi__span {
166
- transform: translateY(-40%) translateX(10px) scale(0.75);
167
- opacity: 1;
168
- padding: 0 4px;
169
- background: var(--tertiary-color);
170
- font-weight: 300;
171
- border-radius: var(--br);
172
- }
173
-
174
177
  .sigcanvas {
175
178
  border: 2px solid #ccc;
176
179
  border-radius: 10px;
@@ -0,0 +1,12 @@
1
+ .visns__ms {
2
+ input {
3
+ &:hover {
4
+ box-shadow: none !important;
5
+ transition: box-shadow 0.15s linear !important;
6
+ }
7
+
8
+ &:focus {
9
+ box-shadow: none !important;
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,44 @@
1
+ .AutocompletePlace-results {
2
+ z-index: 999;
3
+ }
4
+
5
+ .AutocompletePlace {
6
+ position: relative;
7
+
8
+ > svg {
9
+ position: absolute;
10
+ right: 0.5em;
11
+ top: 0.5em;
12
+ color: var(--primary-color);
13
+ cursor: pointer;
14
+ }
15
+ }
16
+
17
+ .AutocompletePlace.toggleActive {
18
+ color: var(--highlight-color);
19
+ }
20
+
21
+ .AutocompletePlace-input {
22
+ padding: 0.65rem 3rem 0.65rem 0.95rem !important;
23
+ }
24
+
25
+ .AutocompletePlace-results {
26
+ position: absolute;
27
+ background-color: white;
28
+ padding: 0;
29
+ margin: 0;
30
+ border: 1px solid rgba(var(--primary-color-rgb), 0.25);
31
+ border-radius: var(--br);
32
+ overflow: hidden;
33
+ }
34
+
35
+ .AutocompletePlace-items {
36
+ list-style: none;
37
+ border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.1);
38
+ cursor: pointer;
39
+ padding: 10px 10px;
40
+
41
+ &:hover {
42
+ background-color: rgba(var(--primary-color-rgb), 0.065);
43
+ }
44
+ }
@@ -0,0 +1,215 @@
1
+ .btn {
2
+ width: max-content;
3
+ display: inline-block;
4
+ position: relative;
5
+ padding: 0.65rem 1rem;
6
+ cursor: pointer;
7
+ font-size: 1rem;
8
+ color: var(--tertiary-color);
9
+ text-decoration: none;
10
+ overflow: hidden;
11
+ background: var(--primary-color);
12
+ border: 1px solid rgba(var(--primary-color--rgb), 1.1);
13
+ border-radius: var(--br);
14
+ outline: none;
15
+ transition: all 0.2s cubic-bezier(0.85, 0, 0.15, 1) 0s;
16
+ font-size: 1.25em;
17
+
18
+ &:hover {
19
+ color: var(--primary-color);
20
+ background: var(--highlight-color);
21
+ border: 1px solid rgba(var(--highlight-color-rgb), 1.05);
22
+ }
23
+ }
24
+ .vs-datagrid--row {
25
+ &:hover {
26
+ .InovuaReactDataGrid__row-cell-wrap {
27
+ background: rgb(240, 240, 240) !important;
28
+ cursor: pointer;
29
+ }
30
+ }
31
+ }
32
+
33
+ .InovuaReactDataGrid {
34
+ letter-spacing: 0.015rem !important;
35
+ color: black !important;
36
+ }
37
+
38
+ .InovuaReactDataGrid__header {
39
+ color: var(--primary-color) !important;
40
+ }
41
+
42
+ .InovuaReactDataGrid__row-hover-target {
43
+ &:hover {
44
+ color: black !important;
45
+ background: rgb(240, 240, 240) !important;
46
+ }
47
+ }
48
+
49
+ .InovuaReactDataGrid__row {
50
+ &:hover {
51
+ cursor: pointer;
52
+ }
53
+ }
54
+
55
+ #smartTableSearchInput {
56
+ background: #eeeeee;
57
+ border: 1px solid rgba(var(--table-color-rgb), 1.1);
58
+ border-radius: var(--br);
59
+ color: var(--paragraph-color);
60
+ padding: 10px 10px 10px 35px;
61
+
62
+ &:focus {
63
+ border: 1px solid lighten(#474747, 10%);
64
+ box-shadow: none;
65
+ transform: translateY(0);
66
+ }
67
+
68
+ &:hover {
69
+ box-shadow: none;
70
+ transform: translateY(0);
71
+ }
72
+ }
73
+
74
+ .filterInput--alt {
75
+ position: relative;
76
+ display: flex;
77
+ align-items: center;
78
+
79
+ input {
80
+ padding-left: 3rem !important;
81
+ }
82
+ }
83
+
84
+ .icon-search {
85
+ width: max-content;
86
+ height: auto;
87
+ position: absolute;
88
+ z-index: 500;
89
+ padding-top: 4px;
90
+ padding-left: 20px;
91
+ }
92
+
93
+ .filterAction--alt {
94
+ position: absolute;
95
+ right: 8px;
96
+ top: 8px;
97
+ gap: 5px;
98
+ display: flex;
99
+
100
+ > .btn {
101
+ padding: 10px 70px;
102
+ }
103
+ }
104
+
105
+ .icon-search {
106
+ width: max-content;
107
+ height: auto;
108
+ position: absolute;
109
+ z-index: 500;
110
+ padding-top: 4px;
111
+ padding-left: 20px;
112
+ }
113
+
114
+ .tdactions {
115
+ width: 100%;
116
+ display: flex;
117
+ flex-wrap: nowrap;
118
+ justify-content: flex-start;
119
+ align-items: center;
120
+ gap: 0.1rem;
121
+
122
+ span {
123
+ display: flex;
124
+ align-items: center;
125
+ position: relative;
126
+ width: 18px;
127
+ height: 18px;
128
+
129
+ svg {
130
+ width: 18px;
131
+ height: 18px;
132
+ }
133
+ }
134
+ }
135
+
136
+ .formcontainer {
137
+ width: 100%;
138
+ }
139
+
140
+ .modalwrap {
141
+ background: var(--tertiary-color);
142
+ border-radius: 3px;
143
+ overflow: visible;
144
+ border-top-left-radius: var(--br);
145
+ border-top-right-radius: var(--br);
146
+
147
+ .modal {
148
+ width: 100%;
149
+ position: relative;
150
+
151
+ &__header {
152
+ width: 100%;
153
+ background: var(--primary-color);
154
+ border: 2px solid rgba(var(--primary-color-rgb), 1.05);
155
+ border-top-left-radius: var(--br);
156
+ border-top-right-radius: var(--br);
157
+ box-sizing: border-box;
158
+
159
+ h1 {
160
+ color: var(--tertiary-color);
161
+ margin: 0;
162
+ padding: 0.75em 0.75em;
163
+ font-size: 1.15em;
164
+ }
165
+
166
+ .modal__close {
167
+ width: max-content;
168
+ position: absolute;
169
+ right: 5px;
170
+ top: 5px;
171
+ box-sizing: border-box;
172
+ background: rgba(var(--primary-color-rgb), 1.08);
173
+ cursor: pointer;
174
+ padding: 8px 8px;
175
+ margin: 0;
176
+ outline: none;
177
+ border: none;
178
+ border-radius: var(--br);
179
+ display: block;
180
+ line-height: 1;
181
+
182
+ svg {
183
+ color: white;
184
+ display: block;
185
+ }
186
+ }
187
+ }
188
+
189
+ &__content {
190
+ width: 100%;
191
+ position: relative;
192
+ padding: 0.25rem;
193
+ box-sizing: border-box;
194
+ border-top-left-radius: var(--br);
195
+ border-top-right-radius: var(--br);
196
+
197
+ .btn {
198
+ background: var(--primary-color);
199
+ border: 1px solid rgba(var(--primary-color-rgb), 1.05);
200
+
201
+ &:hover {
202
+ background: var(--highlight-color);
203
+ color: var(--primary-color);
204
+ }
205
+ }
206
+ }
207
+ }
208
+ }
209
+
210
+ .top--modal {
211
+ width: 100%;
212
+ max-width: 1000px !important;
213
+ height: auto;
214
+ padding: 0 !important;
215
+ }