renusify 1.4.8 → 2.0.0

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 (61) hide show
  1. package/components/app/style.scss +2 -10
  2. package/components/app/toast/toast.vue +4 -3
  3. package/components/bar/bottomNavigationCircle.vue +1 -1
  4. package/components/bar/scss/bottomNav.scss +2 -2
  5. package/components/breadcrumb/style.scss +1 -1
  6. package/components/button/index.vue +4 -4
  7. package/components/button/style.scss +17 -27
  8. package/components/calendar/index.vue +3 -4
  9. package/components/card/style.scss +1 -3
  10. package/components/chat/chatInput.vue +2 -2
  11. package/components/chat/chatMsg.vue +3 -3
  12. package/components/chat/index.vue +2 -1
  13. package/components/chip/index.vue +1 -1
  14. package/components/chip/style.scss +20 -10
  15. package/components/codeEditor/index.vue +5 -4
  16. package/components/confirm/index.vue +3 -3
  17. package/components/container/style.scss +1 -1
  18. package/components/form/checkbox.vue +1 -1
  19. package/components/form/colorPicker/picker.vue +6 -5
  20. package/components/form/datePicker/index.vue +2 -4
  21. package/components/form/form.vue +7 -4
  22. package/components/form/group-input.vue +1 -1
  23. package/components/form/input.vue +21 -20
  24. package/components/form/inputTel/index.vue +1 -31
  25. package/components/form/json/index.vue +1 -1
  26. package/components/form/radioInput.vue +1 -1
  27. package/components/form/rating.vue +4 -1
  28. package/components/form/select.vue +1 -1
  29. package/components/form/switch.vue +1 -7
  30. package/components/form/text-editor/index.vue +15 -15
  31. package/components/form/text-editor/style.scss +6 -6
  32. package/components/form/timepicker/timepicker.vue +3 -4
  33. package/components/form/unit-input.vue +2 -2
  34. package/components/formCreator/index.vue +1 -1
  35. package/components/icon/style.scss +1 -4
  36. package/components/img/index.vue +1 -1
  37. package/components/img/svgImg.vue +5 -3
  38. package/components/infinite/div.vue +2 -2
  39. package/components/infinite/index.vue +1 -1
  40. package/components/infinite/page.vue +2 -2
  41. package/components/list/index.vue +2 -2
  42. package/components/list/style.scss +10 -6
  43. package/components/map/index.vue +1 -1
  44. package/components/map/route.vue +2 -2
  45. package/components/menu/index.vue +1 -1
  46. package/components/notify/notification.vue +2 -2
  47. package/components/progress/style.scss +4 -4
  48. package/components/searchBox/index.vue +2 -2
  49. package/components/table/crud/header.vue +1 -1
  50. package/components/table/index.vue +4 -3
  51. package/components/table/style.scss +19 -16
  52. package/components/timeline/index.vue +1 -1
  53. package/components/tour/index.vue +5 -5
  54. package/components/tree/index.vue +0 -1
  55. package/package.json +1 -1
  56. package/style/app.scss +40 -34
  57. package/style/base.scss +45 -51
  58. package/style/colors.scss +48 -39
  59. package/style/mixins/index.scss +17 -6
  60. package/style/variables/base.scss +84 -69
  61. package/style/variables/color.scss +1 -2
package/style/app.scss CHANGED
@@ -41,8 +41,8 @@ body {
41
41
  background: rgba(100, 100, 100, 0.6);
42
42
  }
43
43
 
44
- $color: var(--color-two);
45
- $color-text: var(--color-two-text);
44
+ $color: var(--color-one);
45
+ $color-text: var(--color-on-one);
46
46
 
47
47
  ::-moz-selection {
48
48
  color: $color-text;
@@ -82,7 +82,7 @@ $color-text: var(--color-two-text);
82
82
  }
83
83
 
84
84
  .router-link-exact-active, a:hover {
85
- color: var(--color-link)
85
+ color: var(--color-one)
86
86
  }
87
87
 
88
88
  //curser
@@ -124,55 +124,67 @@ $color-text: var(--color-two-text);
124
124
 
125
125
  //typography
126
126
  .#{$prefix}app {
127
- @include typography($headings, 'body-1');
127
+ @include typography($headings, 'body-2');
128
128
 
129
129
  .display-1 {
130
- @include typography($headings, 'h1')
130
+ @include typography($headings, 'display-1')
131
131
  }
132
132
 
133
133
  .display-2 {
134
- @include typography($headings, 'h2')
134
+ @include typography($headings, 'display-2')
135
135
  }
136
136
 
137
137
  .display-3 {
138
- @include typography($headings, 'h3')
138
+ @include typography($headings, 'display-3')
139
139
  }
140
140
 
141
- .display-4 {
142
- @include typography($headings, 'h4')
141
+ .headline-1 {
142
+ @include typography($headings, 'headline-1')
143
143
  }
144
144
 
145
- .display-5 {
146
- @include typography($headings, 'h5')
145
+ .headline-2 {
146
+ @include typography($headings, 'headline-2')
147
147
  }
148
148
 
149
- .title {
150
- @include typography($headings, 'h6')
149
+ .headline-3 {
150
+ @include typography($headings, 'headline-3')
151
151
  }
152
152
 
153
- .subtitle-1 {
154
- @include typography($headings, 'subtitle-1');
153
+ .title-1 {
154
+ @include typography($headings, 'title-1')
155
155
  }
156
156
 
157
- .subtitle-2 {
158
- @include typography($headings, 'subtitle-2');
157
+ .title-2 {
158
+ @include typography($headings, 'title-2');
159
159
  }
160
160
 
161
- .body-2 {
162
- @include typography($headings, 'body-2');
161
+ .title-3 {
162
+ @include typography($headings, 'title-3');
163
163
  }
164
164
 
165
165
  .body-1 {
166
166
  @include typography($headings, 'body-1');
167
167
  }
168
168
 
169
- .caption {
170
- @include typography($headings, 'caption')
169
+ .body-2 {
170
+ @include typography($headings, 'body-2');
171
+ }
172
+
173
+ .body-3 {
174
+ @include typography($headings, 'body-3');
175
+ }
176
+
177
+
178
+ .label-1 {
179
+ @include typography($headings, 'label-1')
180
+ }
181
+
182
+ .label-2 {
183
+ @include typography($headings, 'label-2')
171
184
  }
172
185
 
173
- .overline {
174
- @include typography($headings, 'overline');
175
- text-transform: uppercase
186
+ .label-3 {
187
+ @include typography($headings, 'label-3')
176
188
  }
177
189
 
178
190
  p {
@@ -181,10 +193,6 @@ $color-text: var(--color-two-text);
181
193
 
182
194
  }
183
195
 
184
- .subtitle-1, .subtitle-2, .body-2, .caption, .overline {
185
- @include text-color(var(--color-text-secondary));
186
- }
187
-
188
196
  //width
189
197
  .#{$prefix}app {
190
198
  @each $name, $value in $widths {
@@ -290,18 +298,16 @@ $color-text: var(--color-two-text);
290
298
  color: white;
291
299
  }
292
300
 
293
- $background: #e2ece2;
294
-
295
301
  blockquote {
296
- background-color: $background;
297
- border: 5px solid var(--color-one);
302
+ background-color: var(--color-one-container);
303
+ border: 5px solid var(--color-border);
298
304
 
299
305
  &::before {
300
- background-color: $background;
306
+ background-color: var(--color-one-container);
301
307
  }
302
308
 
303
309
  &::after {
304
- color: var(--color-one);
310
+ color: var(--color-on-one-container);
305
311
  }
306
312
  }
307
313
 
package/style/base.scss CHANGED
@@ -1,9 +1,10 @@
1
1
  /*!
2
- * ress.css • v2.0.4
2
+ * ress.css • v5.0.2
3
3
  * MIT License
4
4
  * github.com/filipelinhares/ress
5
5
  */
6
6
 
7
+
7
8
  /* # =================================================================
8
9
  # Global selectors
9
10
  # ================================================================= */
@@ -41,6 +42,7 @@ html {
41
42
  hr {
42
43
  overflow: visible; /* Show the overflow in Edge and IE */
43
44
  height: 0; /* Add the correct box sizing in Firefox */
45
+ color: inherit; /* Correct border color in Firefox. */
44
46
  }
45
47
 
46
48
  details,
@@ -108,6 +110,15 @@ sup {
108
110
  top: -0.5em;
109
111
  }
110
112
 
113
+ table {
114
+ border-color: inherit; /* Correct border color in all Chrome, Edge, and Safari. */
115
+ text-indent: 0; /* Remove text indentation in Chrome, Edge, and Safari */
116
+ }
117
+
118
+ iframe {
119
+ border-style: none;
120
+ }
121
+
111
122
  /* # =================================================================
112
123
  # Forms
113
124
  # ================================================================= */
@@ -116,23 +127,17 @@ input {
116
127
  border-radius: 0;
117
128
  }
118
129
 
119
- /* Replace pointer cursor in disabled elements */
120
- [disabled] {
121
- cursor: default;
122
- }
123
-
124
- [type="number"]::-webkit-inner-spin-button,
125
- [type="number"]::-webkit-outer-spin-button {
130
+ [type='number']::-webkit-inner-spin-button,
131
+ [type='number']::-webkit-outer-spin-button {
126
132
  height: auto; /* Correct the cursor style of increment and decrement buttons in Chrome */
127
133
  }
128
134
 
129
- [type="search"] {
135
+ [type='search'] {
130
136
  -webkit-appearance: textfield; /* Correct the odd appearance in Chrome and Safari */
131
137
  outline-offset: -2px; /* Correct the outline style in Safari */
132
138
  }
133
139
 
134
- [type="search"]::-webkit-search-cancel-button,
135
- [type="search"]::-webkit-search-decoration {
140
+ [type='search']::-webkit-search-decoration {
136
141
  -webkit-appearance: none; /* Remove the inner padding in Chrome and Safari on macOS */
137
142
  }
138
143
 
@@ -164,35 +169,34 @@ select {
164
169
 
165
170
  /* Apply cursor pointer to button elements */
166
171
  button,
167
- [type="button"],
168
- [type="reset"],
169
- [type="submit"],
170
- [role="button"] {
172
+ [type='button'],
173
+ [type='reset'],
174
+ [type='submit'],
175
+ [role='button'] {
171
176
  cursor: pointer;
172
- color: inherit;
173
177
  }
174
178
 
175
179
  /* Remove inner padding and border in Firefox 4+ */
176
180
  button::-moz-focus-inner,
177
- [type="button"]::-moz-focus-inner,
178
- [type="reset"]::-moz-focus-inner,
179
- [type="submit"]::-moz-focus-inner {
181
+ [type='button']::-moz-focus-inner,
182
+ [type='reset']::-moz-focus-inner,
183
+ [type='submit']::-moz-focus-inner {
180
184
  border-style: none;
181
185
  padding: 0;
182
186
  }
183
187
 
184
188
  /* Replace focus style removed in the border reset above */
185
189
  button:-moz-focusring,
186
- [type="button"]::-moz-focus-inner,
187
- [type="reset"]::-moz-focus-inner,
188
- [type="submit"]::-moz-focus-inner {
190
+ [type='button']::-moz-focus-inner,
191
+ [type='reset']::-moz-focus-inner,
192
+ [type='submit']::-moz-focus-inner {
189
193
  outline: 1px dotted ButtonText;
190
194
  }
191
195
 
192
196
  button,
193
- html [type="button"], /* Prevent a WebKit bug where (2) destroys native `audio` and `video`controls in Android 4 */
194
- [type="reset"],
195
- [type="submit"] {
197
+ html [type='button'], /* Prevent a WebKit bug where (2) destroys native `audio` and `video`controls in Android 4 */
198
+ [type='reset'],
199
+ [type='submit'] {
196
200
  -webkit-appearance: button; /* Correct the inability to style clickable types in iOS */
197
201
  }
198
202
 
@@ -205,6 +209,14 @@ textarea {
205
209
  border-style: none;
206
210
  }
207
211
 
212
+ a:focus,
213
+ button:focus,
214
+ input:focus,
215
+ select:focus,
216
+ textarea:focus {
217
+ outline-width: 0;
218
+ }
219
+
208
220
  /* Style select like a standard input */
209
221
  select {
210
222
  -moz-appearance: none; /* Firefox 36+ */
@@ -234,6 +246,11 @@ legend {
234
246
  font: inherit; /* Change font properties to `inherit` in Chrome and Safari */
235
247
  }
236
248
 
249
+ /* Replace pointer cursor in disabled elements */
250
+ [disabled] {
251
+ cursor: default;
252
+ }
253
+
237
254
  /* # =================================================================
238
255
  # Specify media element style
239
256
  # ================================================================= */
@@ -251,19 +268,8 @@ progress {
251
268
  # Accessibility
252
269
  # ================================================================= */
253
270
 
254
- /* Hide content from screens but not screenreaders */
255
- @media screen {
256
- [hidden~="screen"] {
257
- display: inherit;
258
- }
259
- [hidden~="screen"]:not(:active):not(:focus):not(:target) {
260
- position: absolute !important;
261
- clip: rect(0 0 0 0) !important;
262
- }
263
- }
264
-
265
271
  /* Specify the progress cursor of updating elements */
266
- [aria-busy="true"] {
272
+ [aria-busy='true'] {
267
273
  cursor: progress;
268
274
  }
269
275
 
@@ -273,18 +279,6 @@ progress {
273
279
  }
274
280
 
275
281
  /* Specify the unstyled cursor of disabled, not-editable, or otherwise inoperable elements */
276
- [aria-disabled="true"] {
282
+ [aria-disabled='true'] {
277
283
  cursor: default;
278
- }
279
-
280
- /* Chrome, Safari, Edge, Opera */
281
- input::-webkit-outer-spin-button,
282
- input::-webkit-inner-spin-button {
283
- -webkit-appearance: none;
284
- margin: 0;
285
- }
286
-
287
- /* Firefox */
288
- input[type=number] {
289
- -moz-appearance: textfield;
290
- }
284
+ }
package/style/colors.scss CHANGED
@@ -1,37 +1,58 @@
1
1
  @import "./_include";
2
-
2
+ //Surface – A role used for backgrounds and large, low-emphasis areas of the screen.
3
+ //Primary, Secondary, Tertiary – Accent color roles used to emphasize or de-emphasize foreground elements.
4
+ //Container – Roles used as a fill color for foreground elements like buttons. They should not be used for text or icons.
5
+ //On – Roles starting with this term indicate a color for text or icons on top of its paired parent color. For example, on primary is used for text and icons against the primary fill color.
6
+ //Variant – Roles ending with this term offer a lower emphasis alternative to its non-variant pair. For example, outline variant is a less emphasized version of the outline color.
3
7
  $colorsList: (
4
- 'one': #00acc1,
5
- 'one_l': #5ddef4,
6
- 'one_d': #007c91,
7
- 'two': #e8098f,
8
- 'error':#D50000,
9
- 'info':#0878f6,
10
- 'warning':#fbc02d,
11
- 'success':#04c40d,
12
- 'link':#4f98ec,
13
- 'background-one':#fafafa,
14
- 'background-two':#e0e0e0,
15
- 'divider':rgba(#444, 0.2),
16
- 'text-primary':#515151,
17
- 'text-secondary':#888,
18
- 'disabled':rgba(#000, 0.26),
19
- 'focused':rgba(#000, 0.12),
20
- 'pressed':rgba(#999, 0.4),
21
- 'border': rgba(#000, 0.24),
22
- 'sheet': #fff,
23
- 'sheet-active': #f5f5f5,
24
- 'sheet-hover': #eeeeee,
25
- 'overlay': rgba(225, 225, 225, 0.5)
8
+ "one": #415F91,
9
+ "on-one": #FFFFFF,
10
+ "one-container": #D6E3FF,
11
+ "on-one-container": #001B3E,
12
+ "two": #565F71,
13
+ "on-two": #FFFFFF,
14
+ "two-container": #DAE2F9,
15
+ "on-two-container": #131C2B,
16
+ "three": #705575,
17
+ "on-three": #FFFFFF,
18
+ "three-container": #FAD8FD,
19
+ "on-three-container": #28132E,
20
+ "error": #BA1A1A,
21
+ "on-error": #FFFFFF,
22
+ "error-container": #FFDAD6,
23
+ "on-error-container": #410002,
24
+ "success": #246b0f,
25
+ "on-success": #FFFFFF,
26
+ "success-container": #e3ffd6,
27
+ "on-success-container": #1d4100,
28
+ "warning": #a45104,
29
+ "on-warning": #FFFFFF,
30
+ "warning-container": #ffe8d6,
31
+ "on-warning-container": #411f00,
32
+ "info": #1a5aba,
33
+ "on-info": #FFFFFF,
34
+ "info-container": #d6e9ff,
35
+ "on-info-container": #002341,
36
+ "sheet": #F9F9FF,
37
+ "sheet-dark": #D9D9E0,
38
+ "sheet-light": #F9F9FF,
39
+ "on-sheet": #191C20,
40
+ "sheet-low": #E0E2EC,
41
+ "on-sheet-low": #44474E,
42
+ "sheet-container-lowest": #FFFFFF,
43
+ "sheet-container-low": #F3F3FA,
44
+ "sheet-container": #EDEDF4,
45
+ "sheet-container-high": #E7E8EE,
46
+ "sheet-container-highest": #E2E2E9,
47
+ "border": #74777F,
48
+ "border-low": #C4C6D0,
49
+ "overlay": #F6FAFE7f,
26
50
  ) !default;
27
51
 
28
52
  :root {
29
53
  @each $color_name, $color_value in $colorsList {
30
54
  --color-#{$color_name}: #{$color_value};
31
55
  }
32
- @each $color_name, $color_value in $colorMain {
33
- --color-#{$color_name}-text: #{$color_value};
34
- }
35
56
  }
36
57
 
37
58
  @each $color_name, $color_value in $gradient {
@@ -72,7 +93,7 @@ $colorsList: (
72
93
  @each $color_name, $color_value in $colorMain {
73
94
  .color-#{$color_name} {
74
95
  @include background-color(var(--color-#{$color_name}), true);
75
- @include text-color(var(--color-#{$color_name}-text));
96
+ @include text-color(var(--color-on-#{$color_name}), true);
76
97
  }
77
98
  .color-#{$color_name}-text {
78
99
  @include text-color(var(--color-#{$color_name}), true);
@@ -95,16 +116,4 @@ $colorsList: (
95
116
  --box-shadow: rgba(250, 150, 10, 0.2)
96
117
  }
97
118
 
98
- .color-primary-text {
99
- @include text-color(var(--color-text-primary), true);
100
- }
101
-
102
- .color-secondary-text {
103
- @include text-color(var(--color-text-secondary), true);
104
- }
105
-
106
- .color-disabled-text {
107
- @include text-color(var(--color-disabled), true);
108
- }
109
-
110
119
 
@@ -24,10 +24,10 @@
24
24
  }
25
25
 
26
26
  @mixin typography($headings,$key) {
27
- font-size: map-metro-get($headings, $key, 'size') !important;
27
+ font-size: map-metro-get($headings, $key, 'size');
28
28
  font-weight: map-metro-get($headings, $key, 'weight');
29
29
  line-height: map-metro-get($headings, $key, 'line-height');
30
- letter-spacing: map-metro-get($headings, $key, 'letter-spacing') !important;
30
+ letter-spacing: map-metro-get($headings, $key, 'letter-spacing');
31
31
  }
32
32
 
33
33
  @mixin elevation($name, $important: false) {
@@ -37,10 +37,10 @@
37
37
 
38
38
  @mixin states() {
39
39
  &:hover::before {
40
- opacity: map-get($states, 'hover')
40
+ opacity: map-metro-get($states, 'hover', 'state', 'opacity')
41
41
  }
42
42
  &:focus::before {
43
- opacity: map-get($states, 'focus')
43
+ opacity: map-metro-get($states, 'focus', 'state', 'opacity')
44
44
  }
45
45
  &-active {
46
46
  @include active-states()
@@ -49,13 +49,24 @@
49
49
 
50
50
  @mixin active-states() {
51
51
  &:hover::before, &::before {
52
- opacity: map-get($states, 'activated')
52
+ opacity: map-metro-get($states, 'activated', 'state', 'opacity')
53
53
  }
54
54
  &:focus::before {
55
- opacity: map-get($states, 'pressed')
55
+ opacity: map-metro-get($states, 'pressed', 'state', 'opacity')
56
56
  }
57
57
  }
58
58
 
59
+ @mixin disable-states() {
60
+ &::before {
61
+ opacity: map-metro-get($states, 'disabled', 'state', 'opacity') !important;
62
+ }
63
+ opacity: map-metro-get($states, 'disabled', 'text', 'opacity') !important;
64
+ color: var(--color-#{map-metro-get($states, 'disabled','text','color')}) !important;
65
+ pointer-events: none;
66
+ user-select: none;
67
+ box-shadow: none;
68
+ }
69
+
59
70
  @mixin firefox() {
60
71
  @-moz-document url-prefix() {
61
72
  @content