renusify 1.0.6 → 1.0.8

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 (51) hide show
  1. package/components/app/index.vue +23 -32
  2. package/components/app/style.scss +7 -18
  3. package/components/bar/bottomNavigationCircle.vue +75 -81
  4. package/components/bar/scss/bottomNav.scss +4 -13
  5. package/components/bar/scss/toolbar.scss +4 -9
  6. package/components/breadcrumb/style.scss +3 -9
  7. package/components/button/buttonConfirm.vue +44 -0
  8. package/components/button/style.scss +13 -38
  9. package/components/calendar/index.vue +5 -35
  10. package/components/card/style.scss +8 -17
  11. package/components/chat/chatInput.vue +4 -10
  12. package/components/chat/chatMsg.vue +222 -225
  13. package/components/chat/index.vue +104 -109
  14. package/components/chip/style.scss +27 -33
  15. package/components/container/style.scss +9 -11
  16. package/components/form/camInput.vue +1 -1
  17. package/components/form/checkbox.vue +115 -121
  18. package/components/form/colorPicker/picker.vue +9 -24
  19. package/components/form/datePicker/index.vue +9 -42
  20. package/components/form/fileUploader/single.vue +196 -197
  21. package/components/form/inputTel/index.vue +3 -7
  22. package/components/form/radioInput.vue +3 -9
  23. package/components/form/scss/input.scss +4 -29
  24. package/components/form/scss/rating.scss +1 -6
  25. package/components/form/scss/switch.scss +1 -6
  26. package/components/form/text-editor/style.scss +4 -22
  27. package/components/form/timepicker/timepicker.vue +11 -16
  28. package/components/form/unit-input.vue +98 -101
  29. package/components/icon/style.scss +2 -6
  30. package/components/index.js +2 -0
  31. package/components/infinite/index.vue +1 -1
  32. package/components/list/style.scss +2 -16
  33. package/components/map/route.vue +1 -1
  34. package/components/menu/index.vue +4 -15
  35. package/components/modal/style.scss +3 -12
  36. package/components/progress/style.scss +5 -21
  37. package/components/skeleton/index.vue +77 -0
  38. package/components/swiper/index.vue +8 -4
  39. package/components/table/style.scss +19 -111
  40. package/components/tabs/index.vue +116 -130
  41. package/components/timeline/index.vue +13 -18
  42. package/components/tree/index.vue +11 -15
  43. package/index.js +0 -1
  44. package/package.json +1 -1
  45. package/plugins/trans/Translate.js +1 -0
  46. package/style/app.scss +7 -71
  47. package/style/colors.scss +49 -73
  48. package/style/mixins/index.scss +0 -12
  49. package/style/variables/color.scss +8 -9
  50. package/tools/helper.js +15 -1
  51. package/components/skeletonLoader/index.vue +0 -42
@@ -1,21 +1,19 @@
1
1
  <template>
2
- <div :class="{
2
+ <div :class="{
3
3
  [$r.prefix+'app']:true,
4
4
  'app-rtl': isRtl,
5
- 'app-ltr': !isRtl,
6
- 'app-dark': isDark,
7
- 'app-light': !isDark
5
+ 'app-ltr': !isRtl
8
6
  }" :id="id">
9
- <div class="app-wrap" :style="{'min-height':$r.breakpoint.height+'px'}">
10
- <slot></slot>
11
- </div>
12
- <r-toast></r-toast>
13
- <r-notify v-if="notify" :left="notifyLeft" :top="notifyTop">
14
- <template #content="props">
15
- <slot name="notify" :item="props"></slot>
16
- </template>
17
- </r-notify>
7
+ <div class="app-wrap" :style="{'min-height':$r.breakpoint.height+'px'}">
8
+ <slot></slot>
18
9
  </div>
10
+ <r-toast></r-toast>
11
+ <r-notify v-if="notify" :left="notifyLeft" :top="notifyTop">
12
+ <template #content="props">
13
+ <slot name="notify" :item="props"></slot>
14
+ </template>
15
+ </r-notify>
16
+ </div>
19
17
  </template>
20
18
 
21
19
  <script>
@@ -32,24 +30,17 @@ export default {
32
30
  default: 'renusify'
33
31
  },
34
32
  notify: Boolean,
35
- notifyLeft: Boolean,
36
- notifyTop: Boolean,
37
- rtl: {type:Boolean,default: undefined},
38
- dark: {type:Boolean,default: undefined}
39
- },
40
- computed:{
41
- isRtl(){
42
- if(this.rtl!==undefined){
43
- return this.rtl
44
- }
45
- return this.$r.rtl
46
- },
47
- isDark(){
48
- if(this.dark!==undefined){
49
- return this.dark
50
- }
51
- return this.$r.dark
52
- }
53
- }
33
+ notifyLeft: Boolean,
34
+ notifyTop: Boolean,
35
+ rtl: {type: Boolean, default: undefined}
36
+ },
37
+ computed: {
38
+ isRtl() {
39
+ if (this.rtl !== undefined) {
40
+ return this.rtl
41
+ }
42
+ return this.$r.rtl
54
43
  }
44
+ }
45
+ }
55
46
  </script>
@@ -3,26 +3,15 @@
3
3
  .#{$prefix}app {
4
4
  display: flex;
5
5
 
6
- &.app-light {
7
- background: var(--color-background-one-light);
8
- color: var(--color-text-primary-light);
9
- .background-one{
10
- background: var(--color-background-one-light);
11
- }
12
- .background-two{
13
- background: var(--color-background-two-light);
14
- }
6
+ background: var(--color-background-one);
7
+ color: var(--color-text-primary);
8
+
9
+ .background-one {
10
+ background: var(--color-background-one);
15
11
  }
16
12
 
17
- &.app-dark {
18
- background: var(--color-background-one-dark);
19
- color: var(--color-text-primary-dark);
20
- .background-one{
21
- background: var(--color-background-one-dark);
22
- }
23
- .background-two{
24
- background: var(--color-background-two-dark);
25
- }
13
+ .background-two {
14
+ background: var(--color-background-two);
26
15
  }
27
16
 
28
17
 
@@ -1,97 +1,91 @@
1
1
  <template>
2
- <nav :class="`${$r.prefix}bottom-navigation-circle`">
3
- <router-link
4
- :to="item.to"
5
- class="navigation-item"
6
- v-for="(item, i) in items"
7
- :key="i"
8
- >
9
- <div class="navigation-item-icon">
10
- <r-icon v-html="item.icon"></r-icon>
11
- </div>
12
- <div class="navigation-item-text">{{ item.name }}</div>
13
- </router-link>
14
- </nav>
2
+ <nav :class="`${$r.prefix}bottom-navigation-circle`">
3
+ <router-link
4
+ :to="item.to"
5
+ class="navigation-item"
6
+ v-for="(item, i) in items"
7
+ :key="i"
8
+ >
9
+ <div class="navigation-item-icon">
10
+ <r-icon v-html="item.icon"></r-icon>
11
+ </div>
12
+ <div class="navigation-item-text">{{ item.name }}</div>
13
+ </router-link>
14
+ </nav>
15
15
  </template>
16
16
 
17
17
  <script>
18
- export default {
19
- name: "rBottomNavigationCircle",
20
- props: {
21
- items: Object
22
- },
23
- data() {
24
- return {};
25
- }
26
- };
18
+ export default {
19
+ name: "rBottomNavigationCircle",
20
+ props: {
21
+ items: Object
22
+ },
23
+ data() {
24
+ return {};
25
+ }
26
+ };
27
27
  </script>
28
28
 
29
29
  <style lang="scss">
30
- @import "~renusify/style/include";
30
+ @import "~renusify/style/include";
31
31
 
32
- .#{$prefix}bottom-navigation-circle {
33
- position: fixed;
34
- bottom: 0;
35
- display: flex;
36
- left: 0;
37
- justify-content: center;
38
- width: 100%;
39
- height: 56px;
40
- z-index: map_get($z-index, "default");
32
+ .#{$prefix}bottom-navigation-circle {
33
+ position: fixed;
34
+ bottom: 0;
35
+ display: flex;
36
+ left: 0;
37
+ justify-content: center;
38
+ width: 100%;
39
+ height: 56px;
40
+ z-index: map_get($z-index, "default");
41
+ background-color: var(--color-sheet);
42
+ color: var(--color-text-primary);
41
43
 
42
- @include light() {
43
- background-color: var(--color-cards-light);
44
- color: var(--color-text-primary-light);
45
- }
46
- @include dark() {
47
- background-color: var(--color-cards-dark);
48
- color: var(--color-text-primary-dark);
49
- }
50
44
 
51
- .navigation-item {
52
- width: 100%;
53
- max-width: 100%;
54
- text-align: center;
55
- position: relative;
45
+ .navigation-item {
46
+ width: 100%;
47
+ max-width: 100%;
48
+ text-align: center;
49
+ position: relative;
56
50
 
57
- &-text {
58
- position: absolute;
59
- bottom: 10px;
60
- left: 0;
61
- right: 0;
62
- }
51
+ &-text {
52
+ position: absolute;
53
+ bottom: 10px;
54
+ left: 0;
55
+ right: 0;
56
+ }
63
57
 
64
- &-icon {
65
- transition: 0.3s all ease-in-out;
66
- position: absolute;
67
- bottom: 12px;
68
- left: 0;
69
- right: 0;
70
- width: 50px;
71
- height: 50px;
72
- margin-left: auto;
73
- margin-right: auto;
74
- display: flex;
75
- align-items: center;
76
- justify-content: center;
77
- }
78
- }
58
+ &-icon {
59
+ transition: 0.3s all ease-in-out;
60
+ position: absolute;
61
+ bottom: 12px;
62
+ left: 0;
63
+ right: 0;
64
+ width: 50px;
65
+ height: 50px;
66
+ margin-left: auto;
67
+ margin-right: auto;
68
+ display: flex;
69
+ align-items: center;
70
+ justify-content: center;
71
+ }
72
+ }
79
73
 
80
- .router-link-exact-active {
81
- .navigation-item-icon {
82
- transition: 0.3s all ease-in-out;
83
- bottom: 31px;
84
- background-color: currentColor;
85
- border-radius: 50%;
86
- padding: 15px;
87
- width: 50px;
88
- height: 50px;
89
- border: 3px solid white;
74
+ .router-link-exact-active {
75
+ .navigation-item-icon {
76
+ transition: 0.3s all ease-in-out;
77
+ bottom: 31px;
78
+ background-color: currentColor;
79
+ border-radius: 50%;
80
+ padding: 15px;
81
+ width: 50px;
82
+ height: 50px;
83
+ border: 3px solid white;
90
84
 
91
- .#{$prefix}icon {
92
- color: white;
93
- }
94
- }
95
- }
85
+ .#{$prefix}icon {
86
+ color: white;
87
+ }
96
88
  }
89
+ }
90
+ }
97
91
  </style>
@@ -10,21 +10,12 @@ $bottom-nav-btn-font-size: map-metro-get($headings, 'caption', 'size') !default;
10
10
  width: 100%;
11
11
  height: $bottom-nav-height;
12
12
 
13
- @include light() {
14
- background-color: var(--color-cards-light);
15
- color: var(--color-text-primary-light);
16
13
 
17
- .#{$prefix}btn.router-link-exact-active {
18
- color: var(--color-one-light) !important
19
- }
20
- }
21
- @include dark() {
22
- background-color: var(--color-cards-dark);
23
- color: var(--color-text-primary-dark);
14
+ background-color: var(--color-sheet);
15
+ color: var(--color-text-primary);
24
16
 
25
- .#{$prefix}btn.router-link-exact-active {
26
- color: var(--color-one-dark) !important
27
- }
17
+ .#{$prefix}btn.router-link-exact-active {
18
+ color: var(--color-one) !important
28
19
  }
29
20
 
30
21
  .#{$prefix}btn {
@@ -35,13 +35,13 @@
35
35
  width: 0;
36
36
  height: 100vh;
37
37
  z-index: map_get($z-index, 'important');
38
- background-color: var(--color-overlay-light);
38
+ background-color: var(--color-overlay);
39
39
  transition: 1s width map-get($transition, 'swing');
40
40
  overflow: hidden;
41
- @include rtl(){
41
+ @include rtl() {
42
42
  right: 0;
43
43
  }
44
- @include ltr(){
44
+ @include ltr() {
45
45
  left: 0;
46
46
  }
47
47
  }
@@ -139,12 +139,7 @@
139
139
  width: 0;
140
140
  position: absolute;
141
141
  bottom: 0;
142
- @include light() {
143
- color: var(--color-one-light);
144
- }
145
- @include dark() {
146
- color: var(--color-one-dark);
147
- }
142
+ color: var(--color-one);
148
143
  border-bottom: 4px solid;
149
144
  }
150
145
 
@@ -11,17 +11,11 @@
11
11
  padding: 0 14px;
12
12
 
13
13
 
14
- @include light() {
15
- .breadcrumb-divider, .breadcrumb-item-disabled, .#{$prefix}icon {
16
- color: var(--color-text-disabled-light)
17
- }
18
- }
19
- @include dark() {
20
- .breadcrumb-divider, .breadcrumb-item-disabled, .#{$prefix}icon {
21
- color: var(--color-text-disabled-dark)
22
- }
14
+ .breadcrumb-divider, .breadcrumb-item-disabled, .#{$prefix}icon {
15
+ color: var(--color-text-disabled)
23
16
  }
24
17
 
18
+
25
19
  li {
26
20
  align-items: center;
27
21
  display: inline-flex;
@@ -0,0 +1,44 @@
1
+ <template>
2
+ <r-btn v-bind="$attrs" @click.prevent.stop="show=true">
3
+ <slot></slot>
4
+ </r-btn>
5
+ <r-confirm
6
+ :hard="hard"
7
+ :title="title"
8
+ :text="body"
9
+ :cancelText="cancelText"
10
+ :confirmText="confirmText"
11
+ v-model="show"
12
+ v-on:accept="accept"
13
+ v-on:cancel="show = false"
14
+ />
15
+ </template>
16
+
17
+ <script>
18
+ export default {
19
+ name: "buttonConfirm",
20
+ props: {
21
+ hard: String,
22
+ title: String,
23
+ body: String,
24
+ cancelText: String,
25
+ confirmText: String,
26
+ },
27
+ emits: ['click'],
28
+ data() {
29
+ return {
30
+ show: false
31
+ }
32
+ },
33
+ methods: {
34
+ accept() {
35
+ this.$emit('click', true)
36
+ this.show = false
37
+ }
38
+ }
39
+ }
40
+ </script>
41
+
42
+ <style lang="scss">
43
+ @import "~renusify/style/include";
44
+ </style>
@@ -38,7 +38,6 @@ $btn-transition: opacity 0.2s map-get($transition, 'ease-in-out') !default;
38
38
 
39
39
  .#{$prefix}btn {
40
40
  cursor: pointer;
41
- color: inherit;
42
41
  align-items: center;
43
42
  border-radius: $btn-border-radius;
44
43
  display: inline-flex;
@@ -59,48 +58,28 @@ $btn-transition: opacity 0.2s map-get($transition, 'ease-in-out') !default;
59
58
  vertical-align: middle;
60
59
  white-space: nowrap;
61
60
 
62
- @include light() {
63
- &.btn-disabled {
64
- color: var(--color-disabled-light) !important;
65
61
 
66
- .btn-loading {
67
- color: var(--color-disabled-light) !important
68
- }
62
+ &.btn-disabled {
63
+ color: var(--color-disabled) !important;
69
64
 
70
- &:not(.btn-text):not(.btn-outlined) {
71
- background-color: var(--color-focused-light) !important
72
- }
65
+ .btn-loading {
66
+ color: var(--color-disabled) !important
73
67
  }
74
68
 
75
69
  &:not(.btn-text):not(.btn-outlined) {
76
- background-color: var(--color-cards-light)
77
- }
78
-
79
- &.btn-outlined.btn-text {
80
- border-color: var(--color-divider-light)
70
+ background-color: var(--color-focused) !important
81
71
  }
82
72
  }
83
- @include dark() {
84
- &.btn-disabled {
85
- color: var(--color-disabled-dark) !important;
86
73
 
87
- .btn-loading {
88
- color: var(--color-disabled-dark) !important
89
- }
74
+ &:not(.btn-text):not(.btn-outlined) {
75
+ background-color: var(--color-sheet)
76
+ }
90
77
 
91
- &:not(.btn-text):not(.btn-outlined) {
92
- background-color: var(--color-focused-dark) !important
93
- }
94
- }
78
+ &.btn-outlined.btn-text {
79
+ border-color: var(--color-divider)
80
+ }
95
81
 
96
- &:not(.btn-text):not(.btn-outlined) {
97
- background-color: var(--color-cards-dark)
98
- }
99
82
 
100
- &.btn-outlined.btn-text {
101
- border-color: var(--color-divider-dark)
102
- }
103
- }
104
83
  @include states();
105
84
 
106
85
  @include ltr() {
@@ -373,12 +352,8 @@ $btn-transition: opacity 0.2s map-get($transition, 'ease-in-out') !default;
373
352
  .#{$prefix}button-group {
374
353
  position: relative;
375
354
  color: inherit;
376
- @include light() {
377
- background-color: var(--color-cards-light);
378
- }
379
- @include dark() {
380
- background-color: var(--color-cards-dark);
381
- }
355
+ background-color: var(--color-sheet);
356
+
382
357
  @include states();
383
358
 
384
359
  .btn-container {
@@ -322,60 +322,30 @@ export default {
322
322
  color: #303030;
323
323
  overflow-x: auto;
324
324
  max-width: 100%;
325
- @include dark {
326
- $Color: var(--color-one-dark);
327
325
  .cell, .headCell {
328
- border: 1px solid var(--color-border-dark);
326
+ border: 1px solid var(--color-border);
329
327
  }
330
328
  .cell {
331
329
  &.today {
332
- color: $Color;
330
+ color: var(--color-one);
333
331
 
334
332
  .cellContent {
335
- border: solid 1px $Color;
333
+ border: solid 1px var(--color-one);
336
334
  }
337
335
  }
338
336
 
339
337
  &.selectable:hover {
340
338
  .cellContent {
341
- border: solid 1px $Color;
342
-
339
+ border: solid 1px var(--color-one);
343
340
  }
344
341
  }
345
342
 
346
343
  }
347
344
  .cell.disabled {
348
- background-color: var(--color-disabled-dark);
345
+ background-color: var(--color-disabled);
349
346
  opacity: 0.5;
350
347
  }
351
- }
352
-
353
- @include light {
354
- $Color: var(--color-one-light);
355
- .cell, .headCell {
356
- border: 1px solid var(--color-border-light);
357
- }
358
- .cell {
359
- &.today {
360
- color: $Color;
361
-
362
- .cellContent {
363
- border: solid 1px $Color;
364
- }
365
- }
366
348
 
367
- &.selectable:hover {
368
- .cellContent {
369
- border: solid 1px $Color;
370
- }
371
- }
372
-
373
- }
374
- .cell.disabled {
375
- background-color: var(--color-disabled-light);
376
- opacity: 0.5;
377
- }
378
- }
379
349
 
380
350
  .table {
381
351
  width: 100%;
@@ -12,14 +12,10 @@
12
12
  overflow-wrap: break-word;
13
13
  white-space: normal;
14
14
 
15
- &.card-outlined {
16
- @include light() {
17
- border: 1px solid var(--color-border-light)
18
- }
19
- @include dark() {
20
- border: 1px solid var(--color-border-dark)
21
- }
15
+ &.card-outlined {
16
+ border: 1px solid var(--color-border)
22
17
  }
18
+
23
19
  @include states();
24
20
 
25
21
  &.card-hover {
@@ -76,16 +72,11 @@
76
72
  @include elevation('md');
77
73
  border-radius: map_get($borders, 'md');
78
74
 
79
- @include light() {
80
- background-color: var(--color-cards-light);
81
- border-color: var(--color-cards-light);
82
- color: var(--color-text-primary-light);
83
- }
84
- @include dark() {
85
- background-color: var(--color-cards-dark);
86
- border-color: var(--color-cards-dark);
87
- color: var(--color-text-primary-dark);
88
- }
75
+
76
+ background-color: var(--color-sheet);
77
+ border-color: var(--color-sheet);
78
+ color: var(--color-text-primary);
79
+
89
80
 
90
81
  &-tile {
91
82
  border-radius: 0;
@@ -115,16 +115,10 @@ export default {
115
115
 
116
116
  .#{$prefix}chat-input {
117
117
  display: flex;
118
- @include light() {
119
- box-shadow: black 0px 8px 15px;
120
- background: var(--color-background-two-light);
121
- border-top: 1px solid var(--color-border-light);
122
- }
123
- @include dark() {
124
- box-shadow: white 0px 8px 15px;
125
- background: var(--color-background-two-dark);
126
- border-top: 1px solid var(--color-border-dark);
127
- }
118
+
119
+ box-shadow: black 0px 8px 15px;
120
+ background: var(--color-background-two);
121
+ border-top: 1px solid var(--color-border);
128
122
 
129
123
  .chat-input {
130
124
  margin: 5px 0;