@vixcom/ui 1.4.0 → 1.6.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 (46) hide show
  1. package/dist/css/colors.css +782 -3730
  2. package/dist/css/colors.css.map +1 -1
  3. package/dist/css/fonts.css +96 -18
  4. package/dist/css/fonts.css.map +1 -1
  5. package/dist/css/helper/index.css +6 -0
  6. package/dist/css/helper/index.css.map +1 -0
  7. package/dist/css/helper/primefaces.css +65 -30
  8. package/dist/css/helper/primefaces.css.map +1 -1
  9. package/dist/css/index.css.map +1 -1
  10. package/dist/css/main.css +100 -120
  11. package/dist/css/main.css.map +1 -1
  12. package/dist/css/menu.css +40 -20
  13. package/dist/css/menu.css.map +1 -1
  14. package/dist/css/sizes.css +0 -47
  15. package/dist/css/sizes.css.map +1 -1
  16. package/dist/css/variables.css +4 -4
  17. package/package.json +11 -2
  18. package/src/css/colors.css +782 -3730
  19. package/src/css/colors.css.map +1 -1
  20. package/src/css/fonts.css +96 -18
  21. package/src/css/fonts.css.map +1 -1
  22. package/src/css/helper/googlemaps.css.map +1 -0
  23. package/src/css/helper/index.css +6 -0
  24. package/src/css/helper/index.css.map +1 -0
  25. package/src/css/helper/primefaces.css +65 -30
  26. package/src/css/helper/primefaces.css.map +1 -1
  27. package/src/css/index.css.map +1 -1
  28. package/src/css/main.css +100 -120
  29. package/src/css/main.css.map +1 -1
  30. package/src/css/menu.css +40 -20
  31. package/src/css/menu.css.map +1 -1
  32. package/src/css/sizes.css +0 -47
  33. package/src/css/sizes.css.map +1 -1
  34. package/src/css/variables.css +4 -4
  35. package/src/index.html +33 -57
  36. package/src/pages/menu/index.html +21 -12
  37. package/src/styles/_mixins.scss +37 -48
  38. package/src/styles/colors.scss +9 -16
  39. package/src/styles/fonts.scss +42 -5
  40. package/src/styles/helper/index.scss +6 -0
  41. package/src/styles/helper/primefaces.scss +70 -20
  42. package/src/styles/index.scss +0 -3
  43. package/src/styles/main.scss +86 -125
  44. package/src/styles/menu.scss +45 -15
  45. package/src/styles/sizes.scss +0 -35
  46. package/src/styles/variables.scss +3 -3
@@ -2,15 +2,52 @@
2
2
  * @Author Vixson
3
3
  * @Description Font variables and Logics
4
4
  */
5
+ @import 'mixins';
5
6
 
6
- @for $n from 1 through 6 {
7
+ %heading-size {
8
+ font-size: var(--heading-size);
9
+ @include unify-selector(svg, &) {
10
+ transform: scale(calc(var(--heading-size) / 10));
11
+ }
12
+ }
13
+
14
+ $heading-start: (
15
+ k: 1,
16
+ v: 200,
17
+ );
18
+ $heading-end: (
19
+ k: 6,
20
+ v: 100,
21
+ );
22
+
23
+ @for $n from map-get($heading-start, 'k') through map-get($heading-end, 'k') {
7
24
  h#{$n},
8
25
  .h#{$n},
9
- .font-#{7 - $n} {
26
+ .font-#{(map-get($heading-end, 'k') - $n+1)} {
10
27
  --heading-size: calc(
11
- var(--heading-start) -
12
- (#{$n - 1} * (var(--heading-start) - var(--heading-end)) / 5)
28
+ var(--heading-start, #{map-get($heading-start, 'v')}#{'%'}) -
29
+ (
30
+ #{$n -
31
+ 1} *
32
+ (
33
+ var(--heading-start, #{map-get($heading-start, 'v')}#{'%'}) -
34
+ var(--heading-end, #{map-get($heading-end, 'v')}#{'%'})
35
+ ) /
36
+ #{(map-get($heading-end, 'k') - map-get($heading-start, 'k'))}
37
+ )
13
38
  );
14
- font-size: var(--heading-size);
39
+ @extend %heading-size;
15
40
  }
16
41
  }
42
+
43
+ .font-sm {
44
+ font-size: 75%;
45
+ }
46
+
47
+ .font-md {
48
+ font-size: 90%;
49
+ }
50
+
51
+ .font-lg {
52
+ font-size: 250%;
53
+ }
@@ -0,0 +1,6 @@
1
+ .gm-style,
2
+ .jse-main {
3
+ button {
4
+ min-width: unset;
5
+ }
6
+ }
@@ -1,8 +1,17 @@
1
1
  @import '../mixins';
2
2
 
3
3
  .p-component {
4
- font-size: 100%;
5
- font-family: unset;
4
+ &,
5
+ [class*='p-']:not(.pi) {
6
+ font: {
7
+ size: inherit;
8
+ weight: inherit;
9
+ }
10
+ }
11
+
12
+ // * {
13
+ // font-family: inherit;
14
+ // }
6
15
  }
7
16
 
8
17
  .p-steps {
@@ -59,16 +68,21 @@
59
68
  font-size: 300%;
60
69
  }
61
70
 
62
- .p-dialog-header {
71
+ &-header {
72
+ display: flex;
73
+ align-items: center;
63
74
  border-top-left-radius: inherit;
64
75
  border-top-right-radius: inherit;
65
76
 
66
- .p-dialog-header-close:hover {
77
+ &-close:hover {
67
78
  color: var(--danger);
68
79
  }
80
+ &-icons button {
81
+ min-width: unset;
82
+ }
69
83
  }
70
84
 
71
- .p-dialog-content {
85
+ &-content {
72
86
  padding: 0.25rem 1.5rem;
73
87
 
74
88
  .p-confirm-dialog-message {
@@ -76,21 +90,17 @@
76
90
  }
77
91
  }
78
92
 
79
- .p-dialog-footer {
93
+ &-footer {
80
94
  display: flex;
81
95
  flex-wrap: wrap;
82
96
  justify-content: flex-end;
97
+ border-bottom-left-radius: inherit;
98
+ border-bottom-right-radius: inherit;
83
99
  padding: 1.5rem;
84
100
  gap: 0.5rem;
85
101
 
86
102
  button {
87
- border: none;
88
- padding: 0.5rem 1.25rem;
89
- text-transform: capitalize;
90
- }
91
-
92
- > * {
93
- margin-top: 1rem;
103
+ margin: 0;
94
104
  }
95
105
  }
96
106
  }
@@ -106,6 +116,15 @@
106
116
  display: flex;
107
117
  flex-direction: column;
108
118
  min-height: 100%;
119
+
120
+ & > {
121
+ header,
122
+ footer {
123
+ display: flex;
124
+ align-items: center;
125
+ gap: 1rem;
126
+ }
127
+ }
109
128
  }
110
129
  }
111
130
 
@@ -117,13 +136,22 @@
117
136
  font-size: 0.75rem;
118
137
  }
119
138
 
139
+ .p-float-label {
140
+ display: flex;
141
+
142
+ .p-dropdown .p-placeholder {
143
+ opacity: 1;
144
+ }
145
+ }
146
+
120
147
  .input > .p-inputtext {
121
148
  padding: 0;
122
149
  color: unset;
123
150
  font-size: unset;
124
151
  }
125
152
 
126
- .p-inputtext {
153
+ .p-inputtext,
154
+ .p-inputnumber {
127
155
  width: 100%;
128
156
 
129
157
  &:enabled {
@@ -148,8 +176,16 @@
148
176
  }
149
177
  }
150
178
 
179
+ .p-dropdown-panel {
180
+ width: 1px;
181
+ }
182
+
151
183
  .p-dropdown {
152
- border-color: currentColor;
184
+ border-radius: var(--border-radius);
185
+
186
+ & &-label {
187
+ display: flex;
188
+ }
153
189
  }
154
190
 
155
191
  *:not(.p-paginator) > .p-dropdown {
@@ -246,7 +282,7 @@ p-chart {
246
282
  .p-carousel {
247
283
  width: 100%;
248
284
 
249
- .p-carousel-container {
285
+ &-container {
250
286
  position: relative;
251
287
 
252
288
  .p-carousel-prev,
@@ -261,7 +297,7 @@ p-chart {
261
297
  }
262
298
  }
263
299
 
264
- .p-carousel-items-content {
300
+ &-items-content {
265
301
  /* padding: 1rem; */
266
302
  position: relative;
267
303
  z-index: 0;
@@ -306,7 +342,22 @@ p-chart {
306
342
  }
307
343
  }
308
344
 
309
- @media (max-width: 575.98px) {
345
+ .p-datatable {
346
+ &-thead {
347
+ text-transform: capitalize;
348
+ }
349
+
350
+ &-thead > tr > th,
351
+ &-tbody > tr > td {
352
+ padding: 0.25rem 0.5rem;
353
+
354
+ .p-row-toggler {
355
+ min-width: unset;
356
+ }
357
+ }
358
+ }
359
+
360
+ @media (max-width: 576px) {
310
361
  .p-dialog {
311
362
  min-width: 95%;
312
363
 
@@ -348,7 +399,6 @@ p-chart {
348
399
 
349
400
  .p-button {
350
401
  text-transform: capitalize;
351
- font-size: 120%;
352
402
 
353
403
  &:hover {
354
404
  background-color: hsl(var(--primary-hs), calc(var(--primary-l) - 20%));
@@ -360,7 +410,7 @@ p-chart {
360
410
  }
361
411
 
362
412
  // @each $color,
363
- // $colorValue in $app-colors-mapped {
413
+ // $colorValue in $colors-mapped {
364
414
  // .p-toast-message-#{$color} {
365
415
  // background-color: var(--#{$color});
366
416
  // color: var(--#{$color}-c);
@@ -2,9 +2,6 @@
2
2
  * @Author: Vixson
3
3
  * @Description: Unique and Very Responsive Admin Dashboard UI
4
4
  */
5
- @import 'mixins';
6
- // @import 'https://unpkg.com/bootstrap@latest/dist/css/bootstrap.min.css';
7
- // @import 'external/bootstrap.css';
8
5
  @import 'variables.css';
9
6
  @import 'main.css';
10
7
  @import 'sizes.css';
@@ -9,7 +9,6 @@ script {
9
9
  * {
10
10
  scrollbar-color: hsl(var(--muted-hs), calc(var(--muted-l) + 40%)) transparent;
11
11
  scrollbar-width: thin;
12
- cursor: default;
13
12
  word-break: break-word;
14
13
  }
15
14
 
@@ -36,11 +35,7 @@ script {
36
35
  padding: 0.5rem;
37
36
  }
38
37
 
39
- ::-moz-selection {
40
- color: var(--white);
41
- background: hsl(var(--muted-hs), calc(var(--muted-l) + 20%));
42
- }
43
-
38
+ ::-moz-selection,
44
39
  ::selection {
45
40
  color: var(--white);
46
41
  background: hsl(var(--muted-hs), calc(var(--muted-l) + 20%));
@@ -88,9 +83,6 @@ b {
88
83
  .bg-text,
89
84
  .bg-text-color {
90
85
  position: relative;
91
- display: inline-flex;
92
- // align-items: center;
93
- // justify-content: center;
94
86
 
95
87
  &:hover::after {
96
88
  opacity: 0.125;
@@ -152,11 +144,9 @@ a:not(.link) {
152
144
  }
153
145
 
154
146
  .page-header {
155
- padding: 1rem 1.5rem;
147
+ padding: 0 1rem;
156
148
  display: flex;
157
149
  align-items: center;
158
- position: relative;
159
- z-index: 1;
160
150
 
161
151
  &.position-sticky,
162
152
  &.sticky {
@@ -165,49 +155,20 @@ a:not(.link) {
165
155
  left: 0;
166
156
  }
167
157
 
168
- .main-title {
169
- margin-bottom: 0;
170
- font-size: 125%;
171
-
172
- @include unify-selector(img, &) {
173
- width: 10rem;
174
- }
175
- }
176
- }
177
-
178
- .flex-container {
179
- display: flex;
180
- flex-wrap: wrap;
181
- /* align-items: flex-end; */
182
- margin: 0.5rem 0;
183
- gap: 0.5rem;
184
-
185
- > * {
186
- /* align-self: flex-start; */
187
- margin-bottom: 0;
188
- }
189
- }
190
-
191
- .page-header {
192
- margin: 1rem 0;
193
- padding: 0 1rem;
194
- display: flex;
195
- align-items: center;
196
-
197
158
  .page-title {
198
159
  text-transform: capitalize;
199
160
  margin-right: auto;
200
- margin-bottom: 1rem;
201
- color: var(--primary);
202
-
203
161
  font: {
204
162
  size: 200%;
205
163
  weight: normal;
206
164
  }
207
- }
208
165
 
209
- .button {
210
- min-width: auto;
166
+ .button {
167
+ min-width: auto;
168
+ }
169
+ @include unify-selector(img, &) {
170
+ width: 10rem;
171
+ }
211
172
  }
212
173
  }
213
174
 
@@ -251,6 +212,19 @@ a:not(.link) {
251
212
  }
252
213
  }
253
214
 
215
+ .flex-container {
216
+ display: flex;
217
+ flex-wrap: wrap;
218
+ /* align-items: flex-end; */
219
+ margin: 0.5rem 0;
220
+ gap: 0.5rem;
221
+
222
+ > * {
223
+ /* align-self: flex-start; */
224
+ margin-bottom: 0;
225
+ }
226
+ }
227
+
254
228
  .row > [class*='col'] {
255
229
  margin-bottom: 1em;
256
230
 
@@ -288,7 +262,9 @@ a:not(.link) {
288
262
  }
289
263
 
290
264
  [class*='sq-'] {
291
- @include flex-center;
265
+ display: inline-flex;
266
+ align-items: center;
267
+ justify-content: center;
292
268
  flex: unset;
293
269
  padding: 0;
294
270
  /* margin: auto; */
@@ -314,30 +290,6 @@ hr[class*='s-']:not(.default) {
314
290
  border: 0;
315
291
  }
316
292
 
317
- .s-sm {
318
- padding: 0.25rem;
319
- }
320
-
321
- .s-1 {
322
- padding: 0.5rem;
323
- }
324
-
325
- .s-2 {
326
- padding: 0.75rem;
327
- }
328
-
329
- .s-3 {
330
- padding: 1.5rem;
331
- }
332
-
333
- .s-4 {
334
- padding: 2.5rem;
335
- }
336
-
337
- .s-5 {
338
- padding: 5rem;
339
- }
340
-
341
293
  .dropdown-menu-right .dropdown-menu {
342
294
  transform: translate(-100%, 0);
343
295
  }
@@ -744,18 +696,18 @@ option[disabled]:first-of-type {
744
696
  margin-top: 0.5rem;
745
697
  }
746
698
 
747
- &:has(input:invalid) {
748
- color: var(--danger);
749
- }
699
+ // &:has(input:invalid) {
700
+ // color: var(--danger);
701
+ // }
750
702
 
751
- &:has(input:focus:empty),
752
- &:has(input:focus:placeholder-shown) {
753
- &::before,
754
- .label {
755
- // @include append-selector() {
756
- background-color: var(--primary);
757
- }
758
- }
703
+ // &:has(input:focus:empty),
704
+ // &:has(input:focus:placeholder-shown) {
705
+ // &::before,
706
+ // .label {
707
+ // // @include append-selector() {
708
+ // background-color: var(--primary);
709
+ // }
710
+ // }
759
711
 
760
712
  // &>label,
761
713
  &::before,
@@ -1022,9 +974,9 @@ button,
1022
974
  position: relative;
1023
975
  display: inline-flex;
1024
976
  border-radius: var(--border-radius, 0.25rem);
1025
- padding: 0.25rem;
977
+ padding: 0.25rem 0.75rem;
1026
978
  font-size: 120%;
1027
- min-width: 7.5rem;
979
+ min-width: 5rem;
1028
980
  gap: 0.25rem;
1029
981
  justify-content: center;
1030
982
  align-items: center;
@@ -1046,10 +998,9 @@ button,
1046
998
  }
1047
999
 
1048
1000
  &.button-circle {
1049
- width: 3rem;
1050
- height: 3rem;
1001
+ min-width: 5rem;
1002
+ min-height: 5rem;
1051
1003
  display: inline-flex;
1052
- min-width: unset;
1053
1004
  padding: 0.5rem;
1054
1005
  align-items: center;
1055
1006
  justify-content: center;
@@ -1081,9 +1032,9 @@ button,
1081
1032
  margin-top: 0.5rem;
1082
1033
  }
1083
1034
 
1084
- // .icon {
1085
- // font-size: 80%;
1086
- // }
1035
+ .icon {
1036
+ font-size: 125%;
1037
+ }
1087
1038
  }
1088
1039
 
1089
1040
  .button-group {
@@ -1393,11 +1344,6 @@ table {
1393
1344
  background-color: inherit;
1394
1345
  z-index: 0;
1395
1346
  }
1396
-
1397
- .bg-svg {
1398
- -webkit-mask-image: url('/assets/bg/flex-card-bg-icons.svg');
1399
- mask-image: url('/assets/bg/flex-card-bg-icons.svg');
1400
- }
1401
1347
  }
1402
1348
 
1403
1349
  .img,
@@ -1452,6 +1398,19 @@ table {
1452
1398
  }
1453
1399
  }
1454
1400
 
1401
+ .grid-item {
1402
+ display: grid;
1403
+ grid-template-columns: 1fr 4fr;
1404
+ grid-template-rows: 1fr;
1405
+ align-items: center;
1406
+
1407
+ :nth-child(1) {
1408
+ grid-row: 1/-1;
1409
+ }
1410
+ :nth-child(2) {
1411
+ }
1412
+ }
1413
+
1455
1414
  .text-spaced {
1456
1415
  letter-spacing: 0.25rem;
1457
1416
 
@@ -1460,47 +1419,31 @@ table {
1460
1419
  }
1461
1420
  }
1462
1421
 
1463
- .text-strick-line {
1464
- display: flex;
1422
+ .strike-line {
1423
+ display: grid;
1424
+ grid-template-columns: repeat(3, 1fr);
1465
1425
  align-items: center;
1466
1426
  justify-content: center;
1467
-
1468
- & .label,
1469
- &::content {
1470
- width: 100%;
1471
- }
1427
+ gap: 0.5rem;
1472
1428
 
1473
1429
  &::before,
1474
1430
  &::after {
1475
1431
  content: '';
1476
1432
  display: inline-block;
1477
- margin: 0 0.5rem;
1478
- width: 100%;
1479
1433
  height: 1px;
1480
- max-width: 10rem;
1481
1434
  background-color: currentColor;
1482
1435
  }
1483
1436
  }
1484
1437
 
1485
1438
  .card {
1486
- @include before-content;
1487
-
1488
- &:not(.flat) {
1489
- /* overflow: unset; */
1490
- border: none;
1491
- z-index: 0;
1492
-
1493
- & > * {
1494
- /* position: relative; */
1495
- }
1439
+ display: flex;
1440
+ flex-direction: column;
1441
+ border-radius: var(--border-radius);
1496
1442
 
1497
- &::before {
1498
- box-shadow: var(--card-shadow);
1499
- }
1500
- }
1443
+ @include before-content;
1501
1444
 
1502
- & + .card {
1503
- margin-top: 1rem;
1445
+ &:not(.flat)::before {
1446
+ box-shadow: var(--card-shadow);
1504
1447
  }
1505
1448
 
1506
1449
  &:not(.card-body) > {
@@ -1556,8 +1499,15 @@ table {
1556
1499
  }
1557
1500
  }
1558
1501
 
1502
+ .card-group {
1503
+ .card + .card {
1504
+ margin-top: 1rem;
1505
+ }
1506
+ }
1507
+
1559
1508
  .flex-list,
1560
- .item-list {
1509
+ .item-list,
1510
+ .menu {
1561
1511
  margin: 1.5rem 0;
1562
1512
  list-style: none;
1563
1513
  display: flex;
@@ -1796,6 +1746,7 @@ table {
1796
1746
 
1797
1747
  img {
1798
1748
  max-width: 100%;
1749
+ object-fit: contain;
1799
1750
  }
1800
1751
 
1801
1752
  .img-fullwidth {
@@ -1840,6 +1791,14 @@ img {
1840
1791
  }
1841
1792
  }
1842
1793
 
1794
+ .bg-svg {
1795
+ height: 100%;
1796
+ background-color: currentColor;
1797
+ -webkit-mask-size: contain;
1798
+ -webkit-mask-repeat: no-repeat;
1799
+ -webkit-mask-position: center;
1800
+ }
1801
+
1843
1802
  .rounded-inherit {
1844
1803
  border-radius: inherit;
1845
1804
  }
@@ -1895,7 +1854,8 @@ section {
1895
1854
 
1896
1855
  /* Above Tablets/Mini PC */
1897
1856
  @media (min-width: 769px) {
1898
- .item-list {
1857
+ .item-list,
1858
+ .menu {
1899
1859
  .item > .value {
1900
1860
  margin-left: 1rem;
1901
1861
  text-align: right;
@@ -1974,7 +1934,8 @@ section {
1974
1934
  width: 100%;
1975
1935
  }
1976
1936
 
1977
- .item-list {
1937
+ .item-list,
1938
+ .menu {
1978
1939
  &:not(.has-connector) {
1979
1940
  gap: 1rem;
1980
1941
  }