renusify 2.2.5 → 2.3.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 (105) hide show
  1. package/components/app/style.scss +6 -4
  2. package/components/app/toast/style.scss +4 -3
  3. package/components/avatar/style.scss +2 -2
  4. package/components/bar/bottomNavigationCircle.vue +7 -5
  5. package/components/bar/scss/bottomNav.scss +15 -12
  6. package/components/bar/scss/toolbar.scss +32 -30
  7. package/components/bar/toolbar/index.vue +2 -2
  8. package/components/bar/toolbar/laptop.vue +1 -1
  9. package/components/bar/toolbar/mobile.vue +1 -1
  10. package/components/breadcrumb/bredcrumbItem.vue +1 -1
  11. package/components/breadcrumb/style.scss +6 -6
  12. package/components/button/index.vue +1 -1
  13. package/components/button/style.scss +41 -36
  14. package/components/calendar/index.vue +4 -3
  15. package/components/card/index.vue +1 -1
  16. package/components/card/style.scss +14 -11
  17. package/components/chart/chart.vue +3 -4
  18. package/components/chart/worldMap.vue +2 -2
  19. package/components/chat/MessageList.vue +122 -119
  20. package/components/chat/chatInput.vue +3 -3
  21. package/components/chat/chatMsg.vue +23 -21
  22. package/components/chat/index.vue +2 -2
  23. package/components/chip/style.scss +21 -16
  24. package/components/codeEditor/highlightCss.vue +1 -1
  25. package/components/codeEditor/highlightHtml.vue +1 -1
  26. package/components/codeEditor/highlightJs.vue +1 -1
  27. package/components/codeEditor/index.vue +6 -6
  28. package/components/container/style.scss +12 -10
  29. package/components/content/index.vue +17 -14
  30. package/components/cropper/index.vue +2 -2
  31. package/components/float/index.vue +456 -454
  32. package/components/form/camInput/index.vue +2 -2
  33. package/components/form/checkInput/index.vue +2 -2
  34. package/components/form/checkboxInput/index.vue +5 -4
  35. package/components/form/colorInput/Alpha.vue +1 -1
  36. package/components/form/colorInput/Preview.vue +1 -1
  37. package/components/form/colorInput/Saturation.vue +1 -1
  38. package/components/form/colorInput/index.vue +2 -2
  39. package/components/form/colorInput/picker.vue +10 -8
  40. package/components/form/dateInput/index.vue +2 -2
  41. package/components/form/fileInput/index.vue +0 -3
  42. package/components/form/fileInput/single.vue +3 -3
  43. package/components/form/groupInput/index.vue +5 -4
  44. package/components/form/input/index.vue +31 -29
  45. package/components/form/jsonInput/JsonView.vue +5 -4
  46. package/components/form/jsonInput/index.vue +35 -33
  47. package/components/form/numberInput/index.vue +11 -8
  48. package/components/form/radioInput/index.vue +6 -4
  49. package/components/form/rangeInput/index.vue +11 -10
  50. package/components/form/ratingInput/index.vue +5 -5
  51. package/components/form/selectInput/index.vue +8 -6
  52. package/components/form/switchInput/index.vue +9 -7
  53. package/components/form/telInput/index.vue +2 -2
  54. package/components/form/text-editor/style.scss +10 -7
  55. package/components/form/textArea/index.vue +2 -2
  56. package/components/form/timeInput/timepicker.vue +4 -3
  57. package/components/form/unitInput/index.vue +8 -6
  58. package/components/icon/style.scss +5 -4
  59. package/components/img/index.vue +2 -2
  60. package/components/index.js +0 -2
  61. package/components/list/index.vue +1 -1
  62. package/components/list/style.scss +6 -5
  63. package/components/map/index.vue +3 -3
  64. package/components/map/route.vue +2 -2
  65. package/components/menu/index.vue +4 -3
  66. package/components/modal/style.scss +19 -15
  67. package/components/nestable/index.vue +4 -4
  68. package/components/notify/index.vue +55 -53
  69. package/components/notify/notification.vue +5 -3
  70. package/components/progress/style.scss +8 -5
  71. package/components/searchBox/index.vue +15 -12
  72. package/components/skeleton/index.vue +5 -3
  73. package/components/slider/index.vue +18 -15
  74. package/components/swiper/index.vue +2 -2
  75. package/components/table/crud/index.vue +2 -2
  76. package/components/table/style.scss +87 -82
  77. package/components/tabs/index.vue +2 -2
  78. package/components/timeline/index.vue +64 -61
  79. package/components/tree/index.vue +4 -4
  80. package/components/tree/tree-element.vue +2 -2
  81. package/directive/animate/style.scss +72 -41
  82. package/directive/drag/index.js +1 -1
  83. package/directive/ripple/style.scss +6 -4
  84. package/directive/skeleton/style.scss +0 -2
  85. package/directive/sortable/index.js +1 -1
  86. package/directive/sortable/style.scss +7 -3
  87. package/directive/title/style.scss +4 -2
  88. package/index.js +10 -10
  89. package/package.json +1 -1
  90. package/style/app.scss +64 -56
  91. package/style/colors.scss +26 -22
  92. package/style/functions/index.scss +8 -8
  93. package/style/mixins/container.scss +24 -19
  94. package/style/mixins/index.scss +19 -15
  95. package/style/mixins/utilities.scss +26 -21
  96. package/style/style.scss +5 -6
  97. package/style/transitions.scss +14 -13
  98. package/style/variables/base.scss +26 -24
  99. package/style/variables/utilities.scss +35 -34
  100. package/components/html2pdf/index.js +0 -4
  101. package/components/html2pdf/index.vue +0 -280
  102. package/components/html2pdf/pageBreak.js +0 -1
  103. package/components/html2pdf/pageBreak.vue +0 -12
  104. package/style/_include.scss +0 -3
  105. package/style/variables/index.scss +0 -3
@@ -1,4 +1,7 @@
1
- @import "../../style/include";
1
+ @use "sass:map";
2
+ @use "../../style/variables/base";
3
+ @use "../../style/mixins";
4
+
2
5
 
3
6
  .r-directive-sortable {
4
7
  position: relative;
@@ -16,11 +19,12 @@
16
19
  .sortable-holder {
17
20
  background-color: rgba(20, 200, 255, 0.5);
18
21
  }
22
+
19
23
  .on-drag {
20
24
  position: fixed;
21
25
  z-index: 100;
22
- @include elevation('xl');
23
- border-radius: map_get($borders, 'md');
26
+ @include mixins.elevation('xl');
27
+ border-radius: map.get(base.$borders, 'md');
24
28
  user-select: none;
25
29
  cursor: grabbing;
26
30
  }
@@ -1,4 +1,6 @@
1
- @import "../../style/include";
1
+ @use "sass:map";
2
+ @use "../../style/variables/base";
3
+
2
4
 
3
5
  #r-directive-title {
4
6
  transition: all .2s ease-in-out;
@@ -7,7 +9,7 @@
7
9
  background: #181818;
8
10
  color: #FFF;
9
11
  position: fixed;
10
- border-radius: map-get($borders, 'sm');
12
+ border-radius: map.get(base.$borders, 'sm');
11
13
  font-size: 14px;
12
14
  font-family: inherit;
13
15
  transform: translateX(-50%);
package/index.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import {reactive} from 'vue'
2
- import * as helper from './tools/helper';
3
- import Translate from './plugins/trans/Translate';
4
- import Storage from './plugins/storage/index';
5
- import DateTime from './plugins/trans/DateTime';
6
- import Currency from './plugins/trans/Currency';
2
+ import * as helper from './tools/helper.js';
3
+ import Translate from './plugins/trans/Translate.js';
4
+ import Storage from './plugins/storage/index.js';
5
+ import DateTime from './plugins/trans/DateTime.js';
6
+ import Currency from './plugins/trans/Currency.js';
7
7
  import Notify from './components/notify/notify.js';
8
- import valid from './plugins/validation/Validate';
8
+ import valid from './plugins/validation/Validate.js';
9
9
  import Toast from './components/app/toast/toast.js';
10
- import event from './plugins/event';
11
- import {_register} from './components';
12
- import {_registers} from './directive';
13
- import {Icons} from "./tools/icons";
10
+ import event from './plugins/event.js';
11
+ import {_register} from './components/index.js';
12
+ import {_registers} from './directive/index.js';
13
+ import {Icons} from "./tools/icons.js";
14
14
 
15
15
  window.renusifyBus = event;
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "renusify",
3
- "version": "2.2.5",
3
+ "version": "2.3.0",
4
4
  "description": "Vue3 Framework",
5
5
  "keywords": [
6
6
  "vuejs",
package/style/app.scss CHANGED
@@ -1,9 +1,17 @@
1
- @import "./_include";
1
+ @use "sass:map";
2
+ @use "sass:meta";
3
+ @use "functions";
4
+ @use "mixins";
5
+ @use "mixins/container";
6
+ @use "mixins/utilities" as utilities2;
7
+ @use "variables/base";
8
+ @use "variables/utilities";
9
+
2
10
 
3
11
  html {
4
- font-size: $font-size-root;
5
- @include media-breakpoint-down('md') {
6
- font-size: $font-size-root-mobile;
12
+ font-size: base.$font-size-root;
13
+ @include container.media-breakpoint-down('md') {
14
+ font-size: base.$font-size-root-mobile;
7
15
  }
8
16
  text-rendering: optimizeLegibility;
9
17
  -webkit-font-smoothing: antialiased;
@@ -29,12 +37,12 @@ body {
29
37
 
30
38
  ::-webkit-scrollbar-track:hover {
31
39
  border: 1px solid rgba(100, 100, 100, 0.4);
32
- border-radius: map-get($borders, 'sm');
40
+ border-radius: map.get(base.$borders, 'sm');
33
41
  }
34
42
 
35
43
  ::-webkit-scrollbar-thumb {
36
44
  background: rgba(100, 100, 100, 0.4);
37
- border-radius: map-get($borders, 'sm');
45
+ border-radius: map.get(base.$borders, 'sm');
38
46
  }
39
47
 
40
48
  ::-webkit-scrollbar-thumb:hover {
@@ -54,9 +62,9 @@ $color-text: var(--color-on-one);
54
62
  background: $color;
55
63
  }
56
64
 
57
- .#{$prefix}app {
58
- font-family: $body-font-family;
59
- line-height: $line-height-root;
65
+ .#{base.$prefix}app {
66
+ font-family: base.$body-font-family;
67
+ line-height: base.$line-height-root;
60
68
 
61
69
 
62
70
  ::-ms-clear,
@@ -86,8 +94,8 @@ $color-text: var(--color-on-one);
86
94
  }
87
95
 
88
96
  //curser
89
- .#{$prefix}app {
90
- @each $name in $cursor {
97
+ .#{base.$prefix}app {
98
+ @each $name in base.$cursor {
91
99
  .cursor-#{$name} {
92
100
  cursor: #{$name};
93
101
  }
@@ -95,8 +103,8 @@ $color-text: var(--color-on-one);
95
103
  }
96
104
 
97
105
  //display
98
- .#{$prefix}app {
99
- @each $size, $media_query in $display-breakpoints {
106
+ .#{base.$prefix}app {
107
+ @each $size, $media_query in base.$display-breakpoints {
100
108
  .hidden {
101
109
  &-#{$size} {
102
110
  @media #{$media_query}{
@@ -108,8 +116,8 @@ $color-text: var(--color-on-one);
108
116
  }
109
117
 
110
118
  //text
111
- .#{$prefix}app {
112
- @each $name, $weight in $font-weights {
119
+ .#{base.$prefix}app {
120
+ @each $name, $weight in base.$font-weights {
113
121
  .font-weight {
114
122
  &-#{$name} {
115
123
  font-weight: $weight !important
@@ -123,84 +131,84 @@ $color-text: var(--color-on-one);
123
131
  }
124
132
 
125
133
  //typography
126
- .#{$prefix}app {
127
- @include typography($headings, 'body-2');
134
+ .#{base.$prefix}app {
135
+ @include mixins.typography(base.$headings, 'body-2');
128
136
 
129
137
  .display-1 {
130
- @include typography($headings, 'display-1')
138
+ @include mixins.typography(base.$headings, 'display-1')
131
139
  }
132
140
 
133
141
  .display-2 {
134
- @include typography($headings, 'display-2')
142
+ @include mixins.typography(base.$headings, 'display-2')
135
143
  }
136
144
 
137
145
  .display-3 {
138
- @include typography($headings, 'display-3')
146
+ @include mixins.typography(base.$headings, 'display-3')
139
147
  }
140
148
 
141
149
  .headline-1 {
142
- @include typography($headings, 'headline-1')
150
+ @include mixins.typography(base.$headings, 'headline-1')
143
151
  }
144
152
 
145
153
  .headline-2 {
146
- @include typography($headings, 'headline-2')
154
+ @include mixins.typography(base.$headings, 'headline-2')
147
155
  }
148
156
 
149
157
  .headline-3 {
150
- @include typography($headings, 'headline-3')
158
+ @include mixins.typography(base.$headings, 'headline-3')
151
159
  }
152
160
 
153
161
  .title-1 {
154
- @include typography($headings, 'title-1')
162
+ @include mixins.typography(base.$headings, 'title-1')
155
163
  }
156
164
 
157
165
  .title-2 {
158
- @include typography($headings, 'title-2');
166
+ @include mixins.typography(base.$headings, 'title-2');
159
167
  }
160
168
 
161
169
  .title-3 {
162
- @include typography($headings, 'title-3');
170
+ @include mixins.typography(base.$headings, 'title-3');
163
171
  }
164
172
 
165
173
  .body-1 {
166
- @include typography($headings, 'body-1');
174
+ @include mixins.typography(base.$headings, 'body-1');
167
175
  }
168
176
 
169
177
  .body-2 {
170
- @include typography($headings, 'body-2');
178
+ @include mixins.typography(base.$headings, 'body-2');
171
179
  }
172
180
 
173
181
  .body-3 {
174
- @include typography($headings, 'body-3');
182
+ @include mixins.typography(base.$headings, 'body-3');
175
183
  }
176
184
 
177
185
 
178
186
  .label-1 {
179
- @include typography($headings, 'label-1')
187
+ @include mixins.typography(base.$headings, 'label-1')
180
188
  }
181
189
 
182
190
  .label-2 {
183
- @include typography($headings, 'label-2')
191
+ @include mixins.typography(base.$headings, 'label-2')
184
192
  }
185
193
 
186
194
  .label-3 {
187
- @include typography($headings, 'label-3')
195
+ @include mixins.typography(base.$headings, 'label-3')
188
196
  }
189
197
 
190
198
  p {
191
- margin-bottom: $spacer * 4
199
+ margin-bottom: base.$spacer * 4
192
200
  }
193
201
 
194
202
  }
195
203
 
196
204
  //width
197
- .#{$prefix}app {
198
- @each $name, $value in $widths {
205
+ .#{base.$prefix}app {
206
+ @each $name, $value in base.$widths {
199
207
  .w-#{$name} {
200
208
  width: $value !important
201
209
  }
202
210
  }
203
- @each $name, $value in $heights {
211
+ @each $name, $value in base.$heights {
204
212
  .h-#{$name} {
205
213
  height: $value !important
206
214
  }
@@ -208,8 +216,8 @@ $color-text: var(--color-on-one);
208
216
  }
209
217
 
210
218
  //transition
211
- .#{$prefix}app {
212
- @each $name, $bezier in $transition {
219
+ .#{base.$prefix}app {
220
+ @each $name, $bezier in base.$transition {
213
221
  .timing-#{$name} {
214
222
  transition-timing-function: $bezier !important
215
223
  }
@@ -217,8 +225,8 @@ $color-text: var(--color-on-one);
217
225
  }
218
226
 
219
227
  //z-index
220
- .#{$prefix}app {
221
- @each $name, $value in $z-index {
228
+ .#{base.$prefix}app {
229
+ @each $name, $value in base.$z-index {
222
230
  .z-#{$name} {
223
231
  z-index: $value !important;
224
232
  }
@@ -226,12 +234,12 @@ $color-text: var(--color-on-one);
226
234
  }
227
235
 
228
236
  // Utilities
229
- @each $breakpoint in map-keys($grid-breakpoints) {
230
- @include media-breakpoint-up($breakpoint) {
231
- $infix: breakpoint-min-name($breakpoint, $grid-breakpoints);
232
- @each $key, $utility in $utilities {
233
- @if type-of($utility) == "map" and (map-get($utility, responsive) or $infix == "") {
234
- @include build-utility($utility, $infix)
237
+ @each $breakpoint in map.keys(base.$grid-breakpoints) {
238
+ @include container.media-breakpoint-up($breakpoint) {
239
+ $infix: functions.breakpoint-min-name($breakpoint, base.$grid-breakpoints);
240
+ @each $key, $utility in utilities.$utilities {
241
+ @if meta.type-of($utility) == "map" and (map.get($utility, responsive) or $infix == "") {
242
+ @include utilities2.build-utility($utility, $infix)
235
243
  }
236
244
  }
237
245
  }
@@ -241,23 +249,23 @@ $color-text: var(--color-on-one);
241
249
 
242
250
  // Print utilities
243
251
  @media print {
244
- @each $key, $utility in $utilities {
245
- @if type-of($utility) == "map" and map-get($utility, print) == true {
246
- @include build-utility($utility, "-print")
252
+ @each $key, $utility in utilities.$utilities {
253
+ @if meta.type-of($utility) == "map" and map.get($utility, print) == true {
254
+ @include utilities2.build-utility($utility, "-print")
247
255
  }
248
256
 
249
257
  }
250
258
  }
251
259
 
252
- .#{$prefix}app {
253
- @each $name, $value in $box-shadows {
260
+ .#{base.$prefix}app {
261
+ @each $name, $value in base.$box-shadows {
254
262
  .elevation-#{$name} {
255
- @include elevation($name, $important: true);
263
+ @include mixins.elevation($name, $important: true);
256
264
  }
257
265
  }
258
266
  }
259
267
 
260
- .#{$prefix}app {
268
+ .#{base.$prefix}app {
261
269
  * {
262
270
  scroll-margin: 100px;
263
271
  }
@@ -277,7 +285,7 @@ $color-text: var(--color-on-one);
277
285
  font-size: 17px;
278
286
  line-height: 22px;
279
287
  border: 2px solid grey;
280
- border-radius: map-get($borders, 'sm');
288
+ border-radius: map.get(base.$borders, 'sm');
281
289
  background-color: #283739;
282
290
  color: white;
283
291
  padding: 0em 1em;
@@ -349,7 +357,7 @@ $color-text: var(--color-on-one);
349
357
  transition: .2s all ease-in-out, .4s transform ease-in-out;
350
358
  }
351
359
 
352
- @include ltr() {
360
+ @include mixins.ltr() {
353
361
  border-right-width: 0;
354
362
  border-bottom-width: 0;
355
363
  border-top-width: 0;
@@ -360,7 +368,7 @@ $color-text: var(--color-on-one);
360
368
  left: -0.5em;
361
369
  }
362
370
  }
363
- @include rtl() {
371
+ @include mixins.rtl() {
364
372
  border-bottom-width: 0;
365
373
  border-left-width: 0;
366
374
  border-top-width: 0;
package/style/colors.scss CHANGED
@@ -1,4 +1,8 @@
1
- @import "./_include";
1
+ @use "sass:map";
2
+ @use "mixins";
3
+ @use "variables/base";
4
+ @use "variables/color";
5
+
2
6
  //Surface – A role used for backgrounds and large, low-emphasis areas of the screen.
3
7
  //Primary, Secondary, Tertiary – Accent color roles used to emphasize or de-emphasize foreground elements.
4
8
  //Container – Roles used as a fill color for foreground elements like buttons. They should not be used for text or icons.
@@ -55,48 +59,48 @@ $colorsList: (
55
59
  }
56
60
  }
57
61
 
58
- @each $color_name, $color_value in $gradient {
59
- .#{$prefix}app .color-gradient-#{$color_name} {
60
- background: linear-gradient(map_get($color_value, '0'), map_get($color_value, '1')) !important;
62
+ @each $color_name, $color_value in color.$gradient {
63
+ .#{base.$prefix}app .color-gradient-#{$color_name} {
64
+ background: linear-gradient(map.get($color_value, '0'), map.get($color_value, '1')) !important;
61
65
  color: white !important;
62
66
  }
63
- .#{$prefix}app .color-gradient-#{$color_name}-45 {
64
- background: linear-gradient(45deg, map_get($color_value, '0'), map_get($color_value, '1')) !important;
67
+ .#{base.$prefix}app .color-gradient-#{$color_name}-45 {
68
+ background: linear-gradient(45deg, map.get($color_value, '0'), map.get($color_value, '1')) !important;
65
69
  color: white !important;
66
70
  }
67
- .#{$prefix}app .color-gradient-#{$color_name}-90 {
68
- background: linear-gradient(90deg, map_get($color_value, '0'), map_get($color_value, '1')) !important;
71
+ .#{base.$prefix}app .color-gradient-#{$color_name}-90 {
72
+ background: linear-gradient(90deg, map.get($color_value, '0'), map.get($color_value, '1')) !important;
69
73
  color: white !important;
70
74
  }
71
75
  }
72
76
 
73
- @each $color_name, $color_value in $shades {
74
- .#{$prefix}app .color-#{$color_name} {
75
- @include background-color($color_value, true);
77
+ @each $color_name, $color_value in color.$shades {
78
+ .#{base.$prefix}app .color-#{$color_name} {
79
+ @include mixins.background-color($color_value, true);
76
80
  }
77
81
 
78
- .#{$prefix}app .color-#{$color_name}-text {
79
- @include text-color($color_value, true);
82
+ .#{base.$prefix}app .color-#{$color_name}-text {
83
+ @include mixins.text-color($color_value, true);
80
84
  }
81
85
  }
82
86
 
83
- @each $color_name, $color_value in $grey {
84
- .#{$prefix}app .color-grey-#{$color_name} {
85
- @include background-color($color_value, true);
87
+ @each $color_name, $color_value in color.$grey {
88
+ .#{base.$prefix}app .color-grey-#{$color_name} {
89
+ @include mixins.background-color($color_value, true);
86
90
  }
87
91
 
88
- .#{$prefix}app .color-grey-#{$color_name}-text {
89
- @include text-color($color_value, true);
92
+ .#{base.$prefix}app .color-grey-#{$color_name}-text {
93
+ @include mixins.text-color($color_value, true);
90
94
  }
91
95
  }
92
96
 
93
- @each $color_name, $color_value in $colorMain {
97
+ @each $color_name, $color_value in color.$colorMain {
94
98
  .color-#{$color_name} {
95
- @include background-color(var(--color-#{$color_name}), true);
96
- @include text-color(var(--color-on-#{$color_name}), true);
99
+ @include mixins.background-color(var(--color-#{$color_name}), true);
100
+ @include mixins.text-color(var(--color-on-#{$color_name}), true);
97
101
  }
98
102
  .color-#{$color_name}-text {
99
- @include text-color(var(--color-#{$color_name}), true);
103
+ @include mixins.text-color(var(--color-#{$color_name}), true);
100
104
  }
101
105
  }
102
106
 
@@ -1,20 +1,20 @@
1
- @use 'sass:math';
2
- @function div($value,$value2){
3
- @return math.div($value , $value2)
4
- }
1
+ @use "../variables/base";
2
+
3
+ @use "sass:map";
4
+
5
5
 
6
- @function breakpoint-min-width($name, $breakpoints: $grid-breakpoints) {
7
- $min: map-get($breakpoints, $name);
6
+ @function breakpoint-min-width($name, $breakpoints: base.$grid-breakpoints) {
7
+ $min: map.get($breakpoints, $name);
8
8
  @return if($min != 0, $min, null)
9
9
  }
10
10
 
11
- @function breakpoint-min-name($name, $breakpoints: $grid-breakpoints,$prefix:'-') {
11
+ @function breakpoint-min-name($name, $breakpoints: base.$grid-breakpoints,$prefix:'-') {
12
12
  @return if(breakpoint-min-width($name, $breakpoints) == null, "", "#{$prefix}#{$name}")
13
13
  }
14
14
 
15
15
  @function map-metro-get($map, $keys...) {
16
16
  @each $key in $keys {
17
- $map: map-get($map, $key);
17
+ $map: map.get($map, $key);
18
18
  }
19
19
  @return $map
20
20
  }
@@ -1,5 +1,10 @@
1
- @mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
2
- $min: breakpoint-min-width($name, $breakpoints) ;
1
+ @use "../functions";
2
+ @use "../variables/base";
3
+
4
+ @use "sass:math";
5
+ @use "sass:map";
6
+ @mixin media-breakpoint-up($name, $breakpoints: base.$grid-breakpoints) {
7
+ $min: functions.breakpoint-min-width($name, $breakpoints) ;
3
8
  @if $min {
4
9
  @media (min-width: $min) {
5
10
  @content
@@ -9,8 +14,8 @@
9
14
  }
10
15
  }
11
16
 
12
- @mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {
13
- $min: breakpoint-min-width($name, $breakpoints) ;
17
+ @mixin media-breakpoint-down($name, $breakpoints: base.$grid-breakpoints) {
18
+ $min: functions.breakpoint-min-width($name, $breakpoints) ;
14
19
  @if $min {
15
20
  @media (max-width: $min) {
16
21
  @content
@@ -20,7 +25,7 @@
20
25
  }
21
26
  }
22
27
 
23
- @mixin make-container-max-widths($max-widths: $container-max-widths, $breakpoints: $grid-breakpoints) {
28
+ @mixin make-container-max-widths($max-widths: base.$container-max-widths, $breakpoints: base.$grid-breakpoints) {
24
29
  @each $breakpoint, $container-max-width in $max-widths {
25
30
  @include media-breakpoint-up($breakpoint, $breakpoints) {
26
31
  max-width: $container-max-width
@@ -28,35 +33,35 @@
28
33
  }
29
34
  }
30
35
 
31
- @mixin make-row($gutter: $grid-gutter) {
36
+ @mixin make-row($gutter: base.$grid-gutter) {
32
37
  display: flex;
33
- margin-right: div($gutter, -2);
34
- margin-left: div($gutter , -2);
38
+ margin-right: math.div($gutter, -2);
39
+ margin-left: math.div($gutter , -2);
35
40
  flex-wrap: wrap;
36
41
  flex: 1 1 auto;
37
42
  }
38
43
 
39
- @mixin make-col($size, $columns: $grid-columns) {
40
- max-width: percentage(div($size , $columns));
41
- flex: 0 0 percentage(div($size , $columns));
44
+ @mixin make-col($size, $columns: base.$grid-columns) {
45
+ max-width: math.percentage(math.div($size , $columns));
46
+ flex: 0 0 math.percentage(math.div($size , $columns));
42
47
  }
43
48
 
44
49
 
45
- @mixin make-grid-columns($columns: $grid-columns, $gutter: $grid-gutter, $breakpoints: $grid-breakpoints) {
46
- @each $breakpoint in map-keys($breakpoints) {
47
- $bName: breakpoint-min-name($breakpoint, $breakpoints);
48
- $bNameClear: breakpoint-min-name($breakpoint, $breakpoints, '');
50
+ @mixin make-grid-columns($columns: base.$grid-columns, $gutter: base.$grid-gutter, $breakpoints: base.$grid-breakpoints) {
51
+ @each $breakpoint in map.keys($breakpoints) {
52
+ $bName: functions.breakpoint-min-name($breakpoint, $breakpoints);
53
+ $bNameClear: functions.breakpoint-min-name($breakpoint, $breakpoints, '');
49
54
 
50
55
  @for $i from 1 through $columns {
51
56
  @if ($bName=='') {
52
57
  .col.col-#{$i} {
53
58
  width: 100%;
54
- padding: div($gutter , 2);
59
+ padding: math.div($gutter , 2);
55
60
  }
56
61
  } @else {
57
62
  .col.#{$bNameClear}-#{$i} {
58
63
  width: 100%;
59
- padding: div($gutter , 2);
64
+ padding: math.div($gutter , 2);
60
65
  }
61
66
  }
62
67
 
@@ -66,13 +71,13 @@
66
71
  .col,
67
72
  .col-auto {
68
73
  width: 100%;
69
- padding: div($gutter, 2);
74
+ padding: math.div($gutter, 2);
70
75
  }
71
76
  } @else {
72
77
  .col.#{$bNameClear},
73
78
  .col.#{$bNameClear}-auto {
74
79
  width: 100%;
75
- padding: div($gutter, 2);
80
+ padding: math.div($gutter, 2);
76
81
  }
77
82
  }
78
83
  @include media-breakpoint-up($breakpoint, $breakpoints) {
@@ -1,5 +1,9 @@
1
- @import "utilities";
2
- @import 'container';
1
+ @use "sass:map";
2
+ @use "utilities";
3
+ @use 'container';
4
+ @use "../functions";
5
+ @use "../variables/base";
6
+
3
7
 
4
8
  @mixin rtl() {
5
9
  .app-rtl & {
@@ -24,23 +28,23 @@
24
28
  }
25
29
 
26
30
  @mixin typography($headings,$key) {
27
- font-size: map-metro-get($headings, $key, 'size');
28
- font-weight: map-metro-get($headings, $key, 'weight');
29
- line-height: map-metro-get($headings, $key, 'line-height');
30
- letter-spacing: map-metro-get($headings, $key, 'letter-spacing');
31
+ font-size: functions.map-metro-get($headings, $key, 'size');
32
+ font-weight: functions.map-metro-get($headings, $key, 'weight');
33
+ line-height: functions.map-metro-get($headings, $key, 'line-height');
34
+ letter-spacing: functions.map-metro-get($headings, $key, 'letter-spacing');
31
35
  }
32
36
 
33
37
  @mixin elevation($name, $important: false) {
34
- box-shadow: map-get($box-shadows, $name) if($important, !important, null);
35
- -webkit-box-shadow: map-get($box-shadows, $name) if($important, !important, null)
38
+ box-shadow: map.get(base.$box-shadows, $name) if($important, !important, null);
39
+ -webkit-box-shadow: map.get(base.$box-shadows, $name) if($important, !important, null)
36
40
  }
37
41
 
38
42
  @mixin states() {
39
43
  &:hover::before {
40
- opacity: map-metro-get($states, 'hover', 'state', 'opacity')
44
+ opacity: functions.map-metro-get(base.$states, 'hover', 'state', 'opacity')
41
45
  }
42
46
  &:focus::before {
43
- opacity: map-metro-get($states, 'focus', 'state', 'opacity')
47
+ opacity: functions.map-metro-get(base.$states, 'focus', 'state', 'opacity')
44
48
  }
45
49
  &-active {
46
50
  @include active-states()
@@ -49,19 +53,19 @@
49
53
 
50
54
  @mixin active-states() {
51
55
  &:hover::before, &::before {
52
- opacity: map-metro-get($states, 'activated', 'state', 'opacity')
56
+ opacity: functions.map-metro-get(base.$states, 'activated', 'state', 'opacity')
53
57
  }
54
58
  &:focus::before {
55
- opacity: map-metro-get($states, 'pressed', 'state', 'opacity')
59
+ opacity: functions.map-metro-get(base.$states, 'pressed', 'state', 'opacity')
56
60
  }
57
61
  }
58
62
 
59
63
  @mixin disable-states() {
60
64
  &::before {
61
- opacity: map-metro-get($states, 'disabled', 'state', 'opacity') !important;
65
+ opacity: functions.map-metro-get(base.$states, 'disabled', 'state', 'opacity') !important;
62
66
  }
63
- opacity: map-metro-get($states, 'disabled', 'text', 'opacity') !important;
64
- color: var(--color-#{map-metro-get($states, 'disabled','text','color')}) !important;
67
+ opacity: functions.map-metro-get(base.$states, 'disabled', 'text', 'opacity') !important;
68
+ color: var(--color-#{functions.map-metro-get(base.$states, 'disabled','text','color')}) !important;
65
69
  pointer-events: none;
66
70
  user-select: none;
67
71
  box-shadow: none;