@updevs/components 1.0.0-alpha.1 → 1.0.0-alpha.100

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 (198) hide show
  1. package/README.md +1 -24
  2. package/assets/styles/_bootstrap-components.scss +55 -0
  3. package/assets/styles/_bootstrap-config.scss +7 -0
  4. package/assets/styles/_bootstrap-override.scss +78 -0
  5. package/assets/styles/_config.scss +9 -0
  6. package/assets/styles/_core.scss +80 -0
  7. package/assets/styles/_debug.scss +49 -0
  8. package/assets/styles/_mixins.scss +2 -0
  9. package/assets/styles/_props.scss +91 -0
  10. package/assets/styles/_seven-columns.scss +73 -0
  11. package/assets/styles/_updevs.scss +25 -0
  12. package/assets/styles/_utilities-marketing.scss +209 -0
  13. package/assets/styles/_utilities.scss +133 -0
  14. package/assets/styles/_variables-dark.scss +19 -0
  15. package/assets/styles/_variables.scss +1003 -0
  16. package/assets/styles/fonts/_webfonts.scss +15 -0
  17. package/assets/styles/helpers/_index.scss +143 -0
  18. package/assets/styles/layout/_animations.scss +62 -0
  19. package/assets/styles/layout/_core.scss +62 -0
  20. package/assets/styles/layout/_dark.scss +77 -0
  21. package/assets/styles/layout/_footer.scss +12 -0
  22. package/assets/styles/layout/_navbar.scss +392 -0
  23. package/assets/styles/layout/_page.scss +170 -0
  24. package/assets/styles/layout/_root.scss +64 -0
  25. package/assets/styles/marketing/_browser.scss +67 -0
  26. package/assets/styles/marketing/_core.scss +8 -0
  27. package/assets/styles/marketing/_filters.scss +0 -0
  28. package/assets/styles/marketing/_hero.scss +70 -0
  29. package/assets/styles/marketing/_pricing.scss +111 -0
  30. package/assets/styles/marketing/_sections.scss +124 -0
  31. package/assets/styles/marketing/_shape.scss +31 -0
  32. package/assets/styles/mixins/_functions.scss +96 -0
  33. package/assets/styles/mixins/_mixins.scss +68 -0
  34. package/assets/styles/ui/_accordion.scss +178 -0
  35. package/assets/styles/ui/_alerts.scss +101 -0
  36. package/assets/styles/ui/_avatars.scss +145 -0
  37. package/assets/styles/ui/_badges.scss +113 -0
  38. package/assets/styles/ui/_breadcrumbs.scss +50 -0
  39. package/assets/styles/ui/_button-group.scss +16 -0
  40. package/assets/styles/ui/_buttons.scss +261 -0
  41. package/assets/styles/ui/_calendars.scss +104 -0
  42. package/assets/styles/ui/_cards.scss +595 -0
  43. package/assets/styles/ui/_carousel.scss +68 -0
  44. package/assets/styles/ui/_charts.scss +61 -0
  45. package/assets/styles/ui/_chat.scss +38 -0
  46. package/assets/styles/ui/_chips.scss +0 -0
  47. package/assets/styles/ui/_close.scss +60 -0
  48. package/assets/styles/ui/_datagrid.scss +17 -0
  49. package/assets/styles/ui/_dropdowns.scss +120 -0
  50. package/assets/styles/ui/_empty.scss +60 -0
  51. package/assets/styles/ui/_flags.scss +31 -0
  52. package/assets/styles/ui/_forms.scss +250 -0
  53. package/assets/styles/ui/_grid.scss +115 -0
  54. package/assets/styles/ui/_icons.scss +72 -0
  55. package/assets/styles/ui/_images.scss +19 -0
  56. package/assets/styles/ui/_legend.scss +12 -0
  57. package/assets/styles/ui/_lists.scss +123 -0
  58. package/assets/styles/ui/_loaders.scss +72 -0
  59. package/assets/styles/ui/_login.scss +3 -0
  60. package/assets/styles/ui/_markdown.scss +53 -0
  61. package/assets/styles/ui/_modals.scss +67 -0
  62. package/assets/styles/ui/_nav.scss +106 -0
  63. package/assets/styles/ui/_offcanvas.scss +17 -0
  64. package/assets/styles/ui/_pagination.scss +58 -0
  65. package/assets/styles/ui/_payments.scss +28 -0
  66. package/assets/styles/ui/_placeholder.scss +9 -0
  67. package/assets/styles/ui/_popovers.scss +2 -0
  68. package/assets/styles/ui/_progress.scss +107 -0
  69. package/assets/styles/ui/_ribbons.scss +157 -0
  70. package/assets/styles/ui/_segmented.scss +101 -0
  71. package/assets/styles/ui/_signature.scss +15 -0
  72. package/assets/styles/ui/_social.scss +52 -0
  73. package/assets/styles/ui/_stars.scss +13 -0
  74. package/assets/styles/ui/_status.scss +163 -0
  75. package/assets/styles/ui/_steps.scss +156 -0
  76. package/assets/styles/ui/_switch-icon.scss +211 -0
  77. package/assets/styles/ui/_tables.scss +176 -0
  78. package/assets/styles/ui/_tags.scss +57 -0
  79. package/assets/styles/ui/_timeline.scss +61 -0
  80. package/assets/styles/ui/_toasts.scss +18 -0
  81. package/assets/styles/ui/_toolbar.scss +10 -0
  82. package/assets/styles/ui/_tracking.scss +29 -0
  83. package/assets/styles/ui/_type.scss +330 -0
  84. package/assets/styles/ui/forms/_form-check.scss +91 -0
  85. package/assets/styles/ui/forms/_form-colorinput.scss +54 -0
  86. package/assets/styles/ui/forms/_form-custom.scss +28 -0
  87. package/assets/styles/ui/forms/_form-icon.scss +35 -0
  88. package/assets/styles/ui/forms/_form-imagecheck.scss +105 -0
  89. package/assets/styles/ui/forms/_form-selectgroup.scss +153 -0
  90. package/assets/styles/ui/forms/_validation.scss +13 -0
  91. package/assets/styles/ui/typo/_hr.scss +76 -0
  92. package/assets/styles/utils/_background.scss +15 -0
  93. package/assets/styles/utils/_colors.scss +101 -0
  94. package/assets/styles/utils/_opacity.scss +7 -0
  95. package/assets/styles/utils/_scroll.scss +45 -0
  96. package/assets/styles/utils/_shadow.scss +17 -0
  97. package/assets/styles/utils/_sizing.scss +10 -0
  98. package/assets/styles/utils/_text.scss +14 -0
  99. package/assets/styles/vendor/_apexcharts.scss +52 -0
  100. package/assets/styles/vendor/_coloris.scss +72 -0
  101. package/assets/styles/vendor/_dropzone.scss +27 -0
  102. package/assets/styles/vendor/_fslightbox.scss +13 -0
  103. package/assets/styles/vendor/_jsvectormap.scss +47 -0
  104. package/assets/styles/vendor/_litepicker.scss +69 -0
  105. package/assets/styles/vendor/_nouislider.scss +49 -0
  106. package/assets/styles/vendor/_plyr.scss +3 -0
  107. package/assets/styles/vendor/_stars-rating.scss +22 -0
  108. package/assets/styles/vendor/_tom-select.scss +81 -0
  109. package/assets/styles/vendor/_turbo.scss +3 -0
  110. package/assets/styles/vendor/_typed.scss +4 -0
  111. package/assets/styles/vendor/_wysiwyg.scss +46 -0
  112. package/fesm2022/updevs-components-badge.mjs +89 -0
  113. package/fesm2022/updevs-components-badge.mjs.map +1 -0
  114. package/fesm2022/updevs-components-button.mjs +193 -0
  115. package/fesm2022/updevs-components-button.mjs.map +1 -0
  116. package/fesm2022/updevs-components-calendar.mjs +582 -0
  117. package/fesm2022/updevs-components-calendar.mjs.map +1 -0
  118. package/fesm2022/updevs-components-card.mjs +242 -0
  119. package/fesm2022/updevs-components-card.mjs.map +1 -0
  120. package/fesm2022/updevs-components-drag-and-drop.mjs +185 -0
  121. package/fesm2022/updevs-components-drag-and-drop.mjs.map +1 -0
  122. package/fesm2022/updevs-components-dropdown.mjs +247 -0
  123. package/fesm2022/updevs-components-dropdown.mjs.map +1 -0
  124. package/fesm2022/updevs-components-form-controls-abstractions.mjs +106 -0
  125. package/fesm2022/updevs-components-form-controls-abstractions.mjs.map +1 -0
  126. package/fesm2022/updevs-components-form-controls-checkbox.mjs +99 -0
  127. package/fesm2022/updevs-components-form-controls-checkbox.mjs.map +1 -0
  128. package/fesm2022/updevs-components-form-controls-date-picker.mjs +175 -0
  129. package/fesm2022/updevs-components-form-controls-date-picker.mjs.map +1 -0
  130. package/fesm2022/updevs-components-form-controls-file-upload.mjs +272 -0
  131. package/fesm2022/updevs-components-form-controls-file-upload.mjs.map +1 -0
  132. package/fesm2022/updevs-components-form-controls-input.mjs +281 -0
  133. package/fesm2022/updevs-components-form-controls-input.mjs.map +1 -0
  134. package/fesm2022/updevs-components-form-controls-radio.mjs +98 -0
  135. package/fesm2022/updevs-components-form-controls-radio.mjs.map +1 -0
  136. package/fesm2022/updevs-components-form-controls-select.mjs +600 -0
  137. package/fesm2022/updevs-components-form-controls-select.mjs.map +1 -0
  138. package/fesm2022/updevs-components-form-controls-textarea.mjs +79 -0
  139. package/fesm2022/updevs-components-form-controls-textarea.mjs.map +1 -0
  140. package/fesm2022/updevs-components-form-controls-time-picker.mjs +345 -0
  141. package/fesm2022/updevs-components-form-controls-time-picker.mjs.map +1 -0
  142. package/fesm2022/updevs-components-form.mjs +562 -0
  143. package/fesm2022/updevs-components-form.mjs.map +1 -0
  144. package/fesm2022/updevs-components-layout.mjs +1054 -0
  145. package/fesm2022/updevs-components-layout.mjs.map +1 -0
  146. package/fesm2022/updevs-components-link.mjs +79 -0
  147. package/fesm2022/updevs-components-link.mjs.map +1 -0
  148. package/fesm2022/updevs-components-list.mjs +215 -0
  149. package/fesm2022/updevs-components-list.mjs.map +1 -0
  150. package/fesm2022/updevs-components-modal.mjs +505 -0
  151. package/fesm2022/updevs-components-modal.mjs.map +1 -0
  152. package/fesm2022/updevs-components-paginator.mjs +160 -0
  153. package/fesm2022/updevs-components-paginator.mjs.map +1 -0
  154. package/fesm2022/updevs-components-popover.mjs +215 -0
  155. package/fesm2022/updevs-components-popover.mjs.map +1 -0
  156. package/fesm2022/updevs-components-pricing.mjs +130 -0
  157. package/fesm2022/updevs-components-pricing.mjs.map +1 -0
  158. package/fesm2022/updevs-components-table.mjs +2060 -0
  159. package/fesm2022/updevs-components-table.mjs.map +1 -0
  160. package/fesm2022/updevs-components.mjs +33 -0
  161. package/fesm2022/updevs-components.mjs.map +1 -0
  162. package/package.json +127 -14
  163. package/types/updevs-components-badge.d.ts +44 -0
  164. package/types/updevs-components-button.d.ts +75 -0
  165. package/types/updevs-components-calendar.d.ts +175 -0
  166. package/types/updevs-components-card.d.ts +92 -0
  167. package/types/updevs-components-drag-and-drop.d.ts +74 -0
  168. package/types/updevs-components-dropdown.d.ts +124 -0
  169. package/types/updevs-components-form-controls-abstractions.d.ts +49 -0
  170. package/types/updevs-components-form-controls-checkbox.d.ts +33 -0
  171. package/types/updevs-components-form-controls-date-picker.d.ts +80 -0
  172. package/types/updevs-components-form-controls-file-upload.d.ts +69 -0
  173. package/types/updevs-components-form-controls-input.d.ts +95 -0
  174. package/types/updevs-components-form-controls-radio.d.ts +32 -0
  175. package/types/updevs-components-form-controls-select.d.ts +200 -0
  176. package/types/updevs-components-form-controls-textarea.d.ts +31 -0
  177. package/types/updevs-components-form-controls-time-picker.d.ts +164 -0
  178. package/types/updevs-components-form.d.ts +356 -0
  179. package/types/updevs-components-layout.d.ts +490 -0
  180. package/types/updevs-components-link.d.ts +34 -0
  181. package/types/updevs-components-list.d.ts +107 -0
  182. package/types/updevs-components-modal.d.ts +155 -0
  183. package/types/updevs-components-paginator.d.ts +58 -0
  184. package/types/updevs-components-popover.d.ts +63 -0
  185. package/types/updevs-components-pricing.d.ts +91 -0
  186. package/types/updevs-components-table.d.ts +619 -0
  187. package/types/updevs-components.d.ts +44 -0
  188. package/CHANGELOG.md +0 -8
  189. package/ng-package.json +0 -7
  190. package/src/lib/components.component.spec.ts +0 -23
  191. package/src/lib/components.component.ts +0 -14
  192. package/src/lib/components.module.ts +0 -17
  193. package/src/lib/components.service.spec.ts +0 -16
  194. package/src/lib/components.service.ts +0 -9
  195. package/src/public-api.ts +0 -7
  196. package/tsconfig.lib.json +0 -14
  197. package/tsconfig.lib.prod.json +0 -10
  198. package/tsconfig.spec.json +0 -14
@@ -0,0 +1,163 @@
1
+ @keyframes status-pulsate-main {
2
+ 40% {
3
+ transform: scale(1.25, 1.25);
4
+ }
5
+ 60% {
6
+ transform: scale(1.25, 1.25);
7
+ }
8
+ }
9
+
10
+ @keyframes status-pulsate-secondary {
11
+ 10% {
12
+ transform: scale(1, 1)
13
+ }
14
+ 30% {
15
+ transform: scale(3, 3)
16
+ }
17
+ 80% {
18
+ transform: scale(3, 3)
19
+ }
20
+ 100% {
21
+ transform: scale(1, 1)
22
+ }
23
+ }
24
+
25
+ @keyframes status-pulsate-tertiary {
26
+ 25% {
27
+ transform: scale(1, 1);
28
+ }
29
+ 80% {
30
+ transform: scale(3, 3);
31
+ opacity: 0;
32
+ }
33
+ 100% {
34
+ transform: scale(3, 3);
35
+ opacity: 0;
36
+ }
37
+ }
38
+
39
+ //
40
+ // Status
41
+ //
42
+ .status {
43
+ --#{$prefix}status-height: #{$status-height};
44
+ --#{$prefix}status-color: #{$text-secondary};
45
+ --#{$prefix}status-color-rgb: #{to-rgb($text-secondary)};
46
+
47
+ display: inline-flex;
48
+ align-items: center;
49
+ height: var(--#{$prefix}status-height);
50
+ padding: .25rem .75rem;
51
+ gap: .5rem;
52
+ color: var(--#{$prefix}status-color);
53
+ background: rgba(var(--#{$prefix}status-color-rgb), .1);
54
+ font-size: $font-size-base;
55
+ text-transform: none;
56
+ letter-spacing: normal;
57
+ border-radius: $border-radius-pill;
58
+ font-weight: var(--#{$prefix}font-weight-medium);
59
+ line-height: 1;
60
+ margin: 0;
61
+
62
+ .status-dot {
63
+ background: var(--#{$prefix}status-color);
64
+ }
65
+
66
+ .icon {
67
+ font-size: 1.25rem;
68
+ }
69
+ }
70
+
71
+ .status-lite {
72
+ border: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color) !important;
73
+ background: transparent !important;
74
+ color: var(--#{$prefix}body-color) !important;
75
+ }
76
+
77
+ @each $name, $color in $theme-colors {
78
+ .status-#{$name} {
79
+ --#{$prefix}status-color: #{$color};
80
+ --#{$prefix}status-color-rgb: #{to-rgb($color)};
81
+ }
82
+ }
83
+
84
+ //
85
+ // Status dot
86
+ //
87
+ .status-dot {
88
+ --#{$prefix}status-dot-color: var(--#{$prefix}status-color, #{$text-secondary});
89
+ --#{$prefix}status-size: #{$status-dot-size};
90
+ position: relative;
91
+ display: inline-block;
92
+ width: var(--#{$prefix}status-size);
93
+ height: var(--#{$prefix}status-size);
94
+ background: var(--#{$prefix}status-dot-color);
95
+ border-radius: $border-radius-pill;
96
+ }
97
+
98
+ .status-dot-animated {
99
+ &:before {
100
+ content: "";
101
+ position: absolute;
102
+ inset: 0;
103
+ z-index: 0;
104
+ background: inherit;
105
+ border-radius: inherit;
106
+ opacity: .6;
107
+ animation: 1s linear 2s backwards infinite status-pulsate-tertiary;
108
+ }
109
+ }
110
+
111
+ //
112
+ // Status indicator
113
+ //
114
+ .status-indicator {
115
+ --#{$prefix}status-indicator-size: 2.5rem;
116
+ --#{$prefix}status-indicator-color: var(--#{$prefix}status-color, #{$text-secondary});
117
+ display: block;
118
+ position: relative;
119
+ width: var(--#{$prefix}status-indicator-size);
120
+ height: var(--#{$prefix}status-indicator-size);
121
+ }
122
+
123
+ .status-indicator-circle {
124
+ --#{$prefix}status-circle-size: .75rem;
125
+ position: absolute;
126
+ left: 50%;
127
+ top: 50%;
128
+ margin: calc(var(--#{$prefix}status-circle-size) / -2) 0 0 calc(var(--#{$prefix}status-circle-size) / -2);
129
+ width: var(--#{$prefix}status-circle-size);
130
+ height: var(--#{$prefix}status-circle-size);
131
+ border-radius: $border-radius-pill;
132
+ background: var(--#{$prefix}status-color);
133
+
134
+ &:nth-child(1) {
135
+ z-index: 3;
136
+ }
137
+
138
+ &:nth-child(2) {
139
+ z-index: 2;
140
+ opacity: .1;
141
+ }
142
+
143
+ &:nth-child(3) {
144
+ z-index: 1;
145
+ opacity: .3;
146
+ }
147
+ }
148
+
149
+ .status-indicator-animated {
150
+ .status-indicator-circle {
151
+ &:nth-child(1) {
152
+ animation: 2s linear 1s infinite backwards status-pulsate-main;
153
+ }
154
+
155
+ &:nth-child(2) {
156
+ animation: 2s linear 1s infinite backwards status-pulsate-secondary;
157
+ }
158
+
159
+ &:nth-child(3) {
160
+ animation: 2s linear 1s infinite backwards status-pulsate-tertiary;
161
+ }
162
+ }
163
+ }
@@ -0,0 +1,156 @@
1
+ //
2
+ // Steps
3
+ //
4
+ .steps {
5
+ --#{$prefix}steps-color: #{$steps-color};
6
+ --#{$prefix}steps-inactive-color: #{$steps-inactive-color};
7
+ --#{$prefix}steps-dot-size: .5rem;
8
+ --#{$prefix}steps-border-width: #{$steps-border-width};
9
+ display: flex;
10
+ flex-wrap: nowrap;
11
+ width: 100%;
12
+ padding: 0;
13
+ margin: 0;
14
+ list-style: none;
15
+ }
16
+
17
+ @each $name, $color in $extra-colors {
18
+ .steps-#{$name} {
19
+ --#{$prefix}steps-color: var(--#{$prefix}#{$name});
20
+
21
+ &-lt {
22
+ --#{$prefix}steps-color: var(--#{$prefix}#{$name}-lt);
23
+ }
24
+ }
25
+ }
26
+
27
+ //
28
+ // Step item
29
+ //
30
+ .step-item {
31
+ position: relative;
32
+ flex: 1 1 0;
33
+ min-height: 1rem;
34
+ margin-top: 0;
35
+ color: inherit;
36
+ text-align: center;
37
+ cursor: default;
38
+ padding-top: calc(var(--#{$prefix}steps-dot-size));
39
+
40
+ @at-root a#{&} {
41
+ cursor: pointer;
42
+
43
+ &:hover {
44
+ color: inherit;
45
+ }
46
+ }
47
+
48
+ &:after,
49
+ &:before {
50
+ background: var(--#{$prefix}steps-color);
51
+ }
52
+
53
+ &:not(:last-child):after {
54
+ position: absolute;
55
+ left: 50%;
56
+ width: 100%;
57
+ content: "";
58
+ transform: translateY(-50%);
59
+ }
60
+
61
+ &:after {
62
+ top: calc(var(--#{$prefix}steps-dot-size) * .5);
63
+ height: var(--#{$prefix}steps-border-width);
64
+ }
65
+
66
+ &:before {
67
+ content: "";
68
+ position: absolute;
69
+ top: 0;
70
+ left: 50%;
71
+ z-index: 1;
72
+ box-sizing: content-box;
73
+ display: flex;
74
+ align-items: center;
75
+ justify-content: center;
76
+ border-radius: $border-radius-pill;
77
+ transform: translateX(-50%);
78
+ color: var(--#{$prefix}white);
79
+ width: var(--#{$prefix}steps-dot-size);
80
+ height: var(--#{$prefix}steps-dot-size);
81
+ }
82
+
83
+ &.active {
84
+ font-weight: var(--#{$prefix}font-weight-bold);
85
+
86
+ &:after {
87
+ background: var(--#{$prefix}steps-inactive-color);
88
+ }
89
+
90
+ & ~ .step-item {
91
+ color: var(--#{$prefix}disabled-color);
92
+
93
+ &:after,
94
+ &:before {
95
+ background: var(--#{$prefix}steps-inactive-color);
96
+ }
97
+ }
98
+ }
99
+ }
100
+
101
+ //
102
+ // Steps counter
103
+ //
104
+ .steps-counter {
105
+ --#{$prefix}steps-dot-size: 1.5rem;
106
+ counter-reset: steps;
107
+
108
+ .step-item {
109
+ counter-increment: steps;
110
+
111
+ &:before {
112
+ content: counter(steps);
113
+ }
114
+ }
115
+ }
116
+
117
+ //
118
+ // Steps vertical
119
+ //
120
+ .steps-vertical {
121
+ --#{$prefix}steps-dot-offset: 6px;
122
+ flex-direction: column;
123
+
124
+ &.steps-counter {
125
+ --#{$prefix}steps-dot-offset: -2px;
126
+ }
127
+
128
+ .step-item {
129
+ text-align: left;
130
+ padding-top: 0;
131
+ padding-left: calc(var(--#{$prefix}steps-dot-size) + 1rem);
132
+ min-height: auto;
133
+
134
+ &:not(:first-child) {
135
+ margin-top: 1rem;
136
+ }
137
+
138
+ &:before {
139
+ top: var(--#{$prefix}steps-dot-offset);
140
+ left: 0;
141
+ transform: translate(0, 0);
142
+ }
143
+
144
+ &:not(:last-child) {
145
+ &:after {
146
+ position: absolute;
147
+ content: '';
148
+ transform: translateX(-50%);
149
+ top: var(--#{$prefix}steps-dot-offset);
150
+ left: calc(var(--#{$prefix}steps-dot-size) * 0.5);
151
+ width: var(--#{$prefix}steps-border-width);
152
+ height: calc(100% + 1rem);
153
+ }
154
+ }
155
+ }
156
+ }
@@ -0,0 +1,211 @@
1
+ .switch-icon {
2
+ display: inline-block;
3
+ line-height: 1;
4
+ border: 0;
5
+ padding: 0;
6
+ background: transparent;
7
+ width: $icon-size;
8
+ height: $icon-size;
9
+ vertical-align: bottom;
10
+ position: relative;
11
+ cursor: pointer;
12
+
13
+ &.disabled {
14
+ pointer-events: none;
15
+ opacity: $btn-disabled-opacity;
16
+ }
17
+
18
+ &:focus {
19
+ outline: none;
20
+ }
21
+
22
+ svg {
23
+ display: block;
24
+ width: 100%;
25
+ height: 100%;
26
+ }
27
+
28
+ .switch-icon-a,
29
+ .switch-icon-b {
30
+ display: block;
31
+ width: 100%;
32
+ height: 100%;
33
+ }
34
+
35
+ .switch-icon-a {
36
+ opacity: 1;
37
+ }
38
+
39
+ .switch-icon-b {
40
+ position: absolute;
41
+ top: 0;
42
+ left: 0;
43
+ opacity: 0;
44
+ }
45
+
46
+ &.active {
47
+ .switch-icon-a {
48
+ opacity: 0;
49
+ }
50
+
51
+ .switch-icon-b {
52
+ opacity: 1;
53
+ }
54
+ }
55
+ }
56
+
57
+ // Fade variant
58
+ .switch-icon-fade {
59
+ .switch-icon-a,
60
+ .switch-icon-b {
61
+ @include transition(opacity .5s);
62
+ }
63
+ }
64
+
65
+ // Scale variant
66
+ .switch-icon-scale {
67
+ .switch-icon-a,
68
+ .switch-icon-b {
69
+ @include transition(opacity .5s, transform .0s .5s);
70
+ }
71
+
72
+ .switch-icon-b {
73
+ transform: scale(1.5);
74
+ }
75
+
76
+ &.active {
77
+ .switch-icon-a,
78
+ .switch-icon-b {
79
+ @include transition(opacity .0s, transform .5s);
80
+ }
81
+
82
+ .switch-icon-b {
83
+ transform: scale(1);
84
+ }
85
+ }
86
+ }
87
+
88
+ // Flip variant
89
+ .switch-icon-flip {
90
+ perspective: 10em;
91
+
92
+ .switch-icon-a,
93
+ .switch-icon-b {
94
+ backface-visibility: hidden;
95
+ transform-style: preserve-3d;
96
+ @include transition(opacity 0s .2s, transform .4s ease-in-out);
97
+ }
98
+
99
+ .switch-icon-a {
100
+ opacity: 1;
101
+ transform: rotateY(0deg);
102
+ }
103
+
104
+ .switch-icon-b {
105
+ opacity: 1;
106
+ transform: rotateY(-180deg);
107
+ }
108
+
109
+ &.active {
110
+ .switch-icon-a {
111
+ opacity: 1;
112
+ transform: rotateY(180deg);
113
+ }
114
+
115
+ .switch-icon-b {
116
+ opacity: 1;
117
+ transform: rotateY(0deg);
118
+ }
119
+ }
120
+ }
121
+
122
+ // Slide variant
123
+ .switch-icon-slide-up,
124
+ .switch-icon-slide-left,
125
+ .switch-icon-slide-right,
126
+ .switch-icon-slide-down {
127
+ overflow: hidden;
128
+
129
+ .switch-icon-a,
130
+ .switch-icon-b {
131
+ @include transition(opacity $transition-time, transform $transition-time);
132
+ }
133
+
134
+ .switch-icon-a {
135
+ transform: translateY(0);
136
+ }
137
+
138
+ .switch-icon-b {
139
+ transform: translateY(100%);
140
+ }
141
+
142
+ &.active {
143
+ .switch-icon-a {
144
+ transform: translateY(-100%);
145
+ }
146
+
147
+ .switch-icon-b {
148
+ transform: translateY(0);
149
+ }
150
+ }
151
+ }
152
+
153
+ .switch-icon-slide-left {
154
+ .switch-icon-a {
155
+ transform: translateX(0);
156
+ }
157
+
158
+ .switch-icon-b {
159
+ transform: translateX(100%);
160
+ }
161
+
162
+ &.active {
163
+ .switch-icon-a {
164
+ transform: translateX(-100%);
165
+ }
166
+
167
+ .switch-icon-b {
168
+ transform: translateX(0);
169
+ }
170
+ }
171
+ }
172
+
173
+ .switch-icon-slide-right {
174
+ .switch-icon-a {
175
+ transform: translateX(0);
176
+ }
177
+
178
+ .switch-icon-b {
179
+ transform: translateX(-100%);
180
+ }
181
+
182
+ &.active {
183
+ .switch-icon-a {
184
+ transform: translateX(100%);
185
+ }
186
+
187
+ .switch-icon-b {
188
+ transform: translateX(0);
189
+ }
190
+ }
191
+ }
192
+
193
+ .switch-icon-slide-down {
194
+ .switch-icon-a {
195
+ transform: translateY(0);
196
+ }
197
+
198
+ .switch-icon-b {
199
+ transform: translateY(-100%);
200
+ }
201
+
202
+ &.active {
203
+ .switch-icon-a {
204
+ transform: translateY(100%);
205
+ }
206
+
207
+ .switch-icon-b {
208
+ transform: translateY(0);
209
+ }
210
+ }
211
+ }
@@ -0,0 +1,176 @@
1
+ .table {
2
+ thead {
3
+ th {
4
+ background: $table-th-bg;
5
+ @include subheader;
6
+ padding-top: $table-th-padding-y;
7
+ padding-bottom: $table-th-padding-y;
8
+ white-space: nowrap;
9
+
10
+ @media print {
11
+ background: transparent;
12
+ }
13
+ }
14
+ }
15
+ }
16
+
17
+ .table-responsive {
18
+ .table {
19
+ margin-bottom: 0;
20
+ }
21
+
22
+ + .card-footer {
23
+ border-top: 0;
24
+ }
25
+ }
26
+
27
+ .table-transparent {
28
+ thead {
29
+ th {
30
+ background: transparent;
31
+ }
32
+ }
33
+ }
34
+
35
+ .table-nowrap {
36
+ > :not(caption) > * > * {
37
+ white-space: nowrap;
38
+ }
39
+ }
40
+
41
+ .table-vcenter {
42
+ > :not(caption) > * > * {
43
+ vertical-align: middle;
44
+ }
45
+ }
46
+
47
+ .table-center {
48
+ > :not(caption) > * > * {
49
+ text-align: center;
50
+ }
51
+ }
52
+
53
+ .td-truncate {
54
+ max-width: 1px;
55
+ width: 100%;
56
+ }
57
+
58
+ .table-mobile {
59
+ @each $breakpoint, $breakpoint-max-widthin in $grid-breakpoints {
60
+ &#{breakpoint-infix($breakpoint)} {
61
+ @include media-breakpoint-down($breakpoint) {
62
+ display: block;
63
+
64
+ thead {
65
+ display: none;
66
+ }
67
+
68
+ tbody,
69
+ tr {
70
+ display: flex;
71
+ flex-direction: column;
72
+ }
73
+
74
+ td {
75
+ display: block;
76
+ padding: $table-cell-padding-x $table-cell-padding-y !important;
77
+ border: none;
78
+ color: var(--#{$prefix}body-color) !important;
79
+
80
+ &[data-label] {
81
+ &:before {
82
+ @include subheader;
83
+ content: attr(data-label);
84
+ display: block;
85
+ }
86
+ }
87
+ }
88
+
89
+ tr {
90
+ border-bottom: var(--#{$prefix}border-width) var(--#{$prefix}border-style) $table-border-color;
91
+ }
92
+
93
+ .btn {
94
+ display: block;
95
+ }
96
+ }
97
+ }
98
+ }
99
+ }
100
+
101
+ /**
102
+ Table sort
103
+ */
104
+ .table-sort {
105
+ font: inherit;
106
+ color: inherit;
107
+ text-transform: inherit;
108
+ letter-spacing: inherit;
109
+ border: 0;
110
+ background: inherit;
111
+ display: block;
112
+ width: 100%;
113
+ text-align: inherit;
114
+ @include transition(color $transition-time);
115
+
116
+ margin: (-$table-th-padding-y) (-$table-th-padding-x);
117
+ padding: $table-th-padding-y $table-th-padding-x;
118
+
119
+ &:hover,
120
+ &.asc,
121
+ &.desc {
122
+ color: var(--#{$prefix}body-color);
123
+ }
124
+
125
+ &:after {
126
+ content: "";
127
+ display: inline-flex;
128
+ width: 1rem;
129
+ height: 1rem;
130
+ vertical-align: bottom;
131
+ mask-image: $table-sort-bg-image;
132
+ background: currentColor;
133
+ margin-left: .25rem;
134
+ }
135
+
136
+ &.asc:after {
137
+ mask-image: $table-sort-desc-bg-image;
138
+ }
139
+
140
+ &.desc:after {
141
+ mask-image: $table-sort-asc-bg-image;
142
+ }
143
+ }
144
+
145
+ .table-borderless {
146
+ thead th {
147
+ background: transparent;
148
+ }
149
+ }
150
+
151
+ //
152
+ // Table selectable
153
+ //
154
+ .table-selectable {
155
+ tbody tr {
156
+ .on-checked {
157
+ display: none;
158
+ }
159
+
160
+ .on-unchecked {
161
+ display: initial;
162
+ }
163
+
164
+ &:has(.table-selectable-check:checked) {
165
+ background-color: $table-active-bg;
166
+
167
+ .on-checked {
168
+ display: initial;
169
+ }
170
+
171
+ .on-unchecked {
172
+ display: none;
173
+ }
174
+ }
175
+ }
176
+ }