@tabler/core 1.0.0-beta → 1.0.0-beta5

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 (106) hide show
  1. package/README.md +11 -0
  2. package/dist/.DS_Store +0 -0
  3. package/dist/css/demo.css +55 -23
  4. package/dist/css/demo.min.css +3 -3
  5. package/dist/css/demo.rtl.css +55 -23
  6. package/dist/css/demo.rtl.min.css +3 -3
  7. package/dist/css/tabler-flags.css +7 -3
  8. package/dist/css/tabler-flags.min.css +3 -3
  9. package/dist/css/tabler-flags.rtl.css +7 -3
  10. package/dist/css/tabler-flags.rtl.min.css +3 -3
  11. package/dist/css/tabler-payments.css +6 -2
  12. package/dist/css/tabler-payments.min.css +3 -3
  13. package/dist/css/tabler-payments.rtl.css +6 -2
  14. package/dist/css/tabler-payments.rtl.min.css +3 -3
  15. package/dist/css/tabler-vendors.css +463 -370
  16. package/dist/css/tabler-vendors.min.css +3 -3
  17. package/dist/css/tabler-vendors.rtl.css +463 -370
  18. package/dist/css/tabler-vendors.rtl.min.css +3 -3
  19. package/dist/css/tabler.css +2165 -1401
  20. package/dist/css/tabler.min.css +8 -3
  21. package/dist/css/tabler.rtl.css +2166 -1402
  22. package/dist/css/tabler.rtl.min.css +8 -3
  23. package/dist/js/demo.js +151 -0
  24. package/dist/js/demo.min.js +9 -0
  25. package/dist/js/tabler.esm.js +7791 -0
  26. package/dist/js/tabler.esm.min.js +9 -0
  27. package/dist/js/tabler.js +2422 -2708
  28. package/dist/js/tabler.min.js +3 -3
  29. package/dist/libs/apexcharts/dist/apexcharts.min.js +5 -5
  30. package/dist/libs/bootstrap/dist/js/bootstrap.bundle.min.js +2 -2
  31. package/dist/libs/countup.js/dist/countUp.js +3 -3
  32. package/dist/libs/litepicker/dist/litepicker.js +3 -3
  33. package/dist/libs/nouislider/dist/nouislider.min.js +1 -0
  34. package/dist/libs/tom-select/dist/js/tom-select.base.min.js +300 -0
  35. package/package.json +85 -29
  36. package/src/js/demo.js +98 -0
  37. package/src/js/{autosize.js → src/autosize.js} +0 -0
  38. package/src/js/src/dropdown.js +9 -0
  39. package/src/js/{input-mask.js → src/input-mask.js} +0 -0
  40. package/src/js/{popover.js → src/popover.js} +0 -0
  41. package/src/js/{switch-icon.js → src/switch-icon.js} +0 -0
  42. package/src/js/src/tab.js +14 -0
  43. package/src/js/{toast.js → src/toast.js} +0 -0
  44. package/src/js/{tooltip.js → src/tooltip.js} +0 -0
  45. package/src/js/tabler.esm.js +10 -0
  46. package/src/js/tabler.js +12 -7
  47. package/src/scss/_bootstrap-components.scss +3 -0
  48. package/src/scss/_bootstrap-config.scss +1 -0
  49. package/src/scss/{_tabler-core.scss → _core.scss} +2 -1
  50. package/src/scss/_mixins-override.scss +3 -3
  51. package/src/scss/_utilities.scss +12 -2
  52. package/src/scss/_variables.scss +123 -72
  53. package/src/scss/demo/_examples.scss +11 -2
  54. package/src/scss/demo.scss +31 -2
  55. package/src/scss/layout/_core.scss +23 -5
  56. package/src/scss/layout/_dark.scss +168 -0
  57. package/src/scss/layout/_footer.scss +2 -5
  58. package/src/scss/layout/_navbar.scss +17 -9
  59. package/src/scss/layout/_page.scss +79 -14
  60. package/src/scss/mixins/_functions.scss +2 -6
  61. package/src/scss/mixins/_mixins.scss +18 -29
  62. package/src/scss/tabler-vendors.scss +2 -2
  63. package/src/scss/tabler.scss +1 -1
  64. package/src/scss/ui/_accordion.scss +1 -0
  65. package/src/scss/ui/_alerts.scss +8 -3
  66. package/src/scss/ui/_avatars.scss +15 -6
  67. package/src/scss/ui/_badges.scss +11 -0
  68. package/src/scss/ui/_breadcrumbs.scss +8 -14
  69. package/src/scss/ui/_buttons.scss +30 -39
  70. package/src/scss/ui/_calendars.scss +3 -3
  71. package/src/scss/ui/_cards.scss +36 -13
  72. package/src/scss/ui/_flags.scss +1 -1
  73. package/src/scss/ui/_forms.scss +9 -10
  74. package/src/scss/ui/_grid.scss +6 -6
  75. package/src/scss/ui/_icons.scss +4 -3
  76. package/src/scss/ui/_images.scss +1 -1
  77. package/src/scss/ui/_legend.scss +1 -1
  78. package/src/scss/ui/_lists.scss +2 -2
  79. package/src/scss/ui/_markdown.scss +13 -30
  80. package/src/scss/ui/_modals.scss +2 -2
  81. package/src/scss/ui/_nav.scss +26 -33
  82. package/src/scss/ui/_offcanvas.scss +21 -0
  83. package/src/scss/ui/_progress.scss +2 -1
  84. package/src/scss/ui/_ribbons.scss +7 -2
  85. package/src/scss/ui/_skeleton.scss +1 -1
  86. package/src/scss/ui/_steps.scss +2 -2
  87. package/src/scss/ui/_switch-icon.scss +5 -5
  88. package/src/scss/ui/_tables.scss +4 -2
  89. package/src/scss/ui/_type.scss +8 -8
  90. package/src/scss/ui/forms/_form-check.scss +11 -3
  91. package/src/scss/ui/forms/_form-colorinput.scss +1 -1
  92. package/src/scss/ui/forms/_form-imagecheck.scss +5 -5
  93. package/src/scss/ui/forms/_form-selectgroup.scss +9 -3
  94. package/src/scss/ui/forms/_validation.scss +1 -1
  95. package/src/scss/utils/_background.scss +2 -2
  96. package/src/scss/utils/_colors.scss +28 -16
  97. package/src/scss/utils/_opacity.scss +1 -1
  98. package/src/scss/vendor/_apexcharts.scss +1 -47
  99. package/src/scss/vendor/_litepicker.scss +5 -2
  100. package/src/scss/vendor/_nouislider.scss +3 -3
  101. package/src/scss/vendor/_tom-select.scss +12 -0
  102. package/dist/libs/choices.js/public/assets/scripts/choices.js +0 -5603
  103. package/dist/libs/nouislider/distribute/nouislider.min.js +0 -2
  104. package/src/js/dropdown.js +0 -40
  105. package/src/scss/_dark.scss +0 -105
  106. package/src/scss/vendor/_choices.scss +0 -61
@@ -14,6 +14,11 @@
14
14
  text-transform: uppercase;
15
15
  background: $primary;
16
16
  border-color: $primary;
17
+ display: inline-flex;
18
+ align-items: center;
19
+ justify-content: center;
20
+ min-height: 2rem;
21
+ min-width: 2rem;
17
22
 
18
23
  &:before {
19
24
  position: absolute;
@@ -23,14 +28,14 @@
23
28
  height: 0;
24
29
  content: "";
25
30
  filter: brightness(70%);
26
- border: ($ribbon-margin / 2) solid;
31
+ border: ($ribbon-margin * .5) solid;
27
32
  border-color: inherit;
28
33
  border-top-color: transparent;
29
34
  border-right-color: transparent;
30
35
  }
31
36
 
32
37
  @if $enable-extra-colors {
33
- @each $color, $value in $colors {
38
+ @each $color, $value in $extra-colors {
34
39
  &.bg-#{$color} {
35
40
  border-color: $value;
36
41
  }
@@ -83,7 +83,7 @@
83
83
 
84
84
  &:after {
85
85
  content: '';
86
- padding-top: percentage(9/16);
86
+ padding-top: percentage(divide(9, 16));
87
87
  display: block;
88
88
  }
89
89
  }
@@ -5,7 +5,7 @@
5
5
  padding-top: add($dot-size, 4px);
6
6
 
7
7
  &:after {
8
- top: add($dot-size / 2, 2px);
8
+ top: add($dot-size * .5, 2px);
9
9
  height: $border-width;
10
10
  }
11
11
 
@@ -42,7 +42,7 @@
42
42
  @include step-color($primary);
43
43
  }
44
44
 
45
- @each $color, $value in $colors {
45
+ @each $color, $value in $extra-colors {
46
46
  .steps-#{$color} {
47
47
  @include step-color($value);
48
48
  }
@@ -57,7 +57,7 @@
57
57
  .switch-icon-fade {
58
58
  .switch-icon-a,
59
59
  .switch-icon-b {
60
- transition: opacity .5s;
60
+ @include transition(opacity .5s);
61
61
  }
62
62
  }
63
63
 
@@ -65,7 +65,7 @@
65
65
  .switch-icon-scale {
66
66
  .switch-icon-a,
67
67
  .switch-icon-b {
68
- transition: opacity .5s, transform .0s .5s;
68
+ @include transition(opacity .5s, transform .0s .5s);
69
69
  }
70
70
 
71
71
  .switch-icon-b {
@@ -75,7 +75,7 @@
75
75
  &.active {
76
76
  .switch-icon-a,
77
77
  .switch-icon-b {
78
- transition: opacity .0s, transform .5s;
78
+ @include transition(opacity .0s, transform .5s);
79
79
  }
80
80
 
81
81
  .switch-icon-b {
@@ -92,7 +92,7 @@
92
92
  .switch-icon-b {
93
93
  backface-visibility: hidden;
94
94
  transform-style: preserve-3d;
95
- transition: opacity 0s .2s, transform .4s ease-in-out;
95
+ @include transition(opacity 0s .2s, transform .4s ease-in-out);
96
96
  }
97
97
 
98
98
  .switch-icon-a {
@@ -127,7 +127,7 @@
127
127
 
128
128
  .switch-icon-a,
129
129
  .switch-icon-b {
130
- transition: opacity .3s, transform .3s;
130
+ @include transition(opacity $transition-time, transform $transition-time);
131
131
  }
132
132
 
133
133
  .switch-icon-a {
@@ -12,11 +12,13 @@
12
12
  }
13
13
  }
14
14
  }
15
+
16
+ >:not(:first-child) {
17
+ border-top-width: $table-border-width;
18
+ }
15
19
  }
16
20
 
17
21
  .table-responsive {
18
- margin-bottom: $spacer;
19
-
20
22
  .table {
21
23
  margin-bottom: 0;
22
24
  }
@@ -8,14 +8,6 @@ a {
8
8
  text-decoration-skip-ink: auto;
9
9
  }
10
10
 
11
- ul,
12
- ol {
13
- margin: 0 0 1rem 0;
14
- margin-inline-start: 1rem;
15
- padding: 0;
16
- padding-inline-start: 1rem;
17
- }
18
-
19
11
  h1,
20
12
  h2,
21
13
  h3,
@@ -30,6 +22,10 @@ h6,
30
22
  .h6 {
31
23
  a {
32
24
  color: inherit;
25
+
26
+ &:hover {
27
+ color: inherit;
28
+ }
33
29
  }
34
30
  }
35
31
 
@@ -81,6 +77,10 @@ blockquote {
81
77
  }
82
78
  }
83
79
 
80
+ ul, ol {
81
+ padding-left: 1.5rem;
82
+ }
83
+
84
84
  hr {
85
85
  margin: 2rem 0;
86
86
  }
@@ -11,10 +11,10 @@ Form check
11
11
 
12
12
  .form-check-input {
13
13
  background-size: $form-check-input-width;
14
- margin-top: ($form-check-min-height - $form-check-input-width) / 2;
14
+ margin-top: ($form-check-min-height - $form-check-input-width) * .5;
15
15
 
16
16
  .form-switch & {
17
- transition: .3s background-color, .3s background-position;
17
+ @include transition(background-color$transition-time, background-position $transition-time);
18
18
  }
19
19
  }
20
20
 
@@ -52,6 +52,14 @@ Form switch
52
52
  .form-switch {
53
53
  .form-check-input {
54
54
  height: $form-switch-height;
55
- margin-top: ($form-check-min-height - $form-switch-height) / 2;
55
+ margin-top: ($form-check-min-height - $form-switch-height) * .5;
56
+ }
57
+ }
58
+
59
+ .form-switch-lg {
60
+ .form-check-input {
61
+ height: 1.5rem;
62
+ width: 2.75rem;
63
+ background-size: 1.5rem;
56
64
  }
57
65
  }
@@ -34,7 +34,7 @@ Color Input
34
34
  background: no-repeat center center/$form-check-input-checked-bg-size;
35
35
  background-image: escape-svg($form-check-input-checked-bg-image);
36
36
  opacity: 0;
37
- transition: .3s opacity;
37
+ @include transition(opacity $transition-time);
38
38
 
39
39
  .form-colorinput-input:checked ~ & {
40
40
  opacity: 1;
@@ -18,7 +18,7 @@ Image check
18
18
  display: block;
19
19
  margin: 0;
20
20
  user-select: none;
21
- border: 1px solid $border-color;
21
+ border: 1px solid var(--#{$variable-prefix}border-color);
22
22
  border-radius: 3px;
23
23
 
24
24
  .form-imagecheck-input:focus ~ & {
@@ -27,7 +27,7 @@ Image check
27
27
  }
28
28
 
29
29
  .form-imagecheck-input:checked ~ & {
30
- border-color: $border-color;
30
+ border-color: $primary;
31
31
  }
32
32
 
33
33
  &:before {
@@ -45,7 +45,7 @@ Image check
45
45
  background: $white;
46
46
  border: 1px solid $border-color;
47
47
  border-radius: 3px;
48
- transition: .3s opacity;
48
+ @include transition(opacity $transition-time);
49
49
 
50
50
  .form-imagecheck-input:checked ~ & {
51
51
  background-color: $form-check-input-checked-bg-color;
@@ -62,7 +62,7 @@ Image check
62
62
  max-width: 100%;
63
63
  display: block;
64
64
  opacity: .64;
65
- transition: .3s opacity;
65
+ @include transition(opacity $transition-time);
66
66
 
67
67
  &:first-child {
68
68
  border-top-left-radius: 2px;
@@ -86,7 +86,7 @@ Image check
86
86
  font-size: $font-size-sm;
87
87
  color: $text-muted;
88
88
  text-align: center;
89
- transition: .3s color;
89
+ @include transition(color $transition-time);
90
90
 
91
91
  .form-imagecheck:hover &,
92
92
  .form-imagecheck-input:focus ~ .form-imagecheck-figure &,
@@ -43,7 +43,7 @@ Select group
43
43
  user-select: none;
44
44
  border: 1px solid $input-border-color;
45
45
  border-radius: 3px;
46
- transition: border-color .3s, background .3s, color .3s;
46
+ @include transition(border-color $transition-time, background $transition-time, color $transition-time);
47
47
 
48
48
  .icon:only-child {
49
49
  margin: 0 -.25rem;
@@ -86,17 +86,23 @@ Select group
86
86
  }
87
87
  }
88
88
 
89
+ .form-selectgroup-check-floated {
90
+ position: absolute;
91
+ top: $input-btn-padding-y;
92
+ right: $input-btn-padding-y;
93
+ }
94
+
89
95
  .form-selectgroup-input:checked + .form-selectgroup-label {
90
96
  z-index: 1;
91
97
  color: $primary;
92
98
  background: rgba($primary, .04);
93
- border-color: $input-focus-border-color;
99
+ border-color: $primary;
94
100
  }
95
101
 
96
102
  .form-selectgroup-input:focus + .form-selectgroup-label {
97
103
  z-index: 2;
98
104
  color: $primary;
99
- border-color: $input-focus-border-color;
105
+ border-color: $primary;
100
106
  box-shadow: $input-btn-focus-box-shadow;
101
107
  }
102
108
 
@@ -1,5 +1,5 @@
1
1
  %validation-lite {
2
- border-color: $input-border-color;
2
+ border-color: var(--#{$variable-prefix}border-color);
3
3
  }
4
4
 
5
5
  @each $state, $data in $form-validation-states {
@@ -1,11 +1,11 @@
1
1
  .bg-white-overlay {
2
2
  color: $white;
3
- background-color: $light-white;
3
+ background-color: rgba($light, .24);
4
4
  }
5
5
 
6
6
  .bg-dark-overlay {
7
7
  color: $white;
8
- background-color: $light-black;
8
+ background-color: rgba($dark, .24);
9
9
  }
10
10
 
11
11
  .bg-cover {
@@ -1,32 +1,44 @@
1
1
  // stylelint-disable declaration-no-important
2
2
 
3
- /**
4
- SOCIAL COLORS
5
- */
6
- @each $color, $value in $social-colors {
7
- .bg-#{$color} {
8
- color: #fff !important;
9
- background: $value !important;
10
- }
11
-
12
- .text-#{$color} {
3
+ @each $color, $value in $theme-colors {
4
+ .bg-#{"" + $color}-lt {
13
5
  color: $value !important;
6
+ background: theme-color-lighter($value, true) !important;
14
7
  }
15
8
  }
16
9
 
17
-
10
+ // Extra colors
18
11
  @if $enable-extra-colors {
19
- @each $color, $value in map-merge($colors, (dark: $dark, muted: $text-muted, white: $white)) {
20
- .bg-#{$color} {
12
+ @each $color, $value in $extra-colors {
13
+ .bg-#{"" + $color} {
21
14
  background: $value;
22
15
  }
23
16
 
24
- .text-#{$color} {
17
+ .text-#{"" + $color} {
25
18
  color: $value !important;
26
19
  }
27
20
 
28
- .bg-#{$color}-lt {
29
- color: theme-color-darker($value) !important;
21
+ .bg-#{"" + $color}-lt {
22
+ color: $value !important;
23
+ background: theme-color-lighter($value, true) !important;
24
+ }
25
+ }
26
+ }
27
+
28
+ // Social colors
29
+ @if $enable-social-colors {
30
+ @each $color, $value in $social-colors {
31
+ .bg-#{"" + $color} {
32
+ color: #ffffff !important;
33
+ background: $value !important;
34
+ }
35
+
36
+ .text-#{"" + $color} {
37
+ color: $value !important;
38
+ }
39
+
40
+ .bg-#{"" + $color}-lt {
41
+ color: $value !important;
30
42
  background: theme-color-lighter($value, true) !important;
31
43
  }
32
44
  }
@@ -2,6 +2,6 @@
2
2
 
3
3
  @for $i from 0 through 20 {
4
4
  .opacity-#{$i * 5} {
5
- opacity: $i * 5 / 100 !important;
5
+ opacity: divide($i * 5, 100) !important;
6
6
  }
7
7
  }
@@ -1,48 +1,2 @@
1
- .apexcharts-title-text {
2
- font-weight: $font-weight-bold !important;
3
- }
4
-
5
- .apexcharts-tooltip-title {
6
- font-weight: $font-weight-bold !important;
7
- padding-bottom: .25rem !important;
8
- }
9
-
10
- .apexcharts-gridline,
11
- .apexcharts-ycrosshairs,
12
- .apexcharts-xaxis-tick {
13
- stroke: $border-color !important;
14
- }
15
-
16
1
  .apexcharts-tooltip {
17
- line-height: 1;
18
- color: $white;
19
- background: $dark !important;
20
- border: 0 !important;
21
- border-radius: 3px !important;
22
- }
23
-
24
- .apexcharts-tooltip-title {
25
- margin: 0 !important;
26
- background: transparent !important;
27
- border: 0 !important;
28
- }
29
-
30
- .apexcharts-tooltip-series-group {
31
- padding: 0 8px !important;
32
- }
33
-
34
- .apexcharts-tooltip-marker {
35
- width: .5rem;
36
- height: .5rem;
37
- }
38
-
39
- .apexcharts-gridline,
40
- .apexcharts-ycrosshairs,
41
- .apexcharts-xaxis-tick {
42
- stroke: $gray-300;
43
- }
44
-
45
- .apexcharts-yaxis-label,
46
- .apexcharts-xaxis-label {
47
- fill: $text-muted;
48
- }
2
+ }
@@ -4,9 +4,12 @@
4
4
  --litepicker-button-next-month-color: #{$text-muted};
5
5
  --litepicker-button-prev-month-color-hover: #{$primary};
6
6
  --litepicker-button-next-month-color-hover: #{$primary};
7
+ --litepicker-day-color: var(--#{$variable-prefix}body-color);
7
8
  --litepicker-day-color-hover: #{$primary};
8
9
  --litepicker-is-end-color-bg: #{$primary};
9
10
  --litepicker-is-today-color: #{$primary};
11
+ --litepicker-month-header-color: var(--#{$variable-prefix}body-color);
12
+ --litepicker-container-months-color-bg: var(--#{$variable-prefix}card-bg);
10
13
  font: inherit;
11
14
  user-select: none;
12
15
 
@@ -15,7 +18,7 @@
15
18
  }
16
19
 
17
20
  .container__months {
18
- border: 1px solid $border-color-transparent;
21
+ border: 1px solid var(--#{$variable-prefix}border-color);
19
22
  border-radius: $border-radius;
20
23
  box-shadow: $dropdown-box-shadow;
21
24
 
@@ -41,7 +44,7 @@
41
44
  .day-item {
42
45
  cursor: pointer !important;
43
46
  padding: .5rem 0 !important;
44
- transition: .3s color, .3s background-color, .3s border-color;
47
+ @include transition(color $transition-time, background-color $transition-time, border-color $transition-time);
45
48
  }
46
49
  }
47
50
 
@@ -1,4 +1,4 @@
1
- @import "~nouislider/distribute/nouislider";
1
+ @import "~nouislider/dist/nouislider";
2
2
 
3
3
  .noUi-target {
4
4
  border: 0;
@@ -35,8 +35,8 @@
35
35
  .noUi-horizontal & {
36
36
  width: $form-range-thumb-width;
37
37
  height: $form-range-thumb-height;
38
- top: (-$form-range-thumb-height / 2);
39
- right: (-$form-range-thumb-height / 2);
38
+ top: (-$form-range-thumb-height * .5);
39
+ right: (-$form-range-thumb-height * .5);
40
40
  margin: 1px 1px 0 0;
41
41
  }
42
42
 
@@ -0,0 +1,12 @@
1
+ @import "~tom-select/src/scss/tom-select.bootstrap5.scss";
2
+
3
+ .ts-input {
4
+ color: inherit;
5
+ }
6
+
7
+ .ts-control{
8
+ .dropdown-menu {
9
+ width: 100%;
10
+ height: auto;
11
+ }
12
+ }