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

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 (310) hide show
  1. package/README.md +5 -22
  2. package/assets/styles/_bootstrap-components.scss +38 -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 +71 -0
  7. package/assets/styles/_mixins.scss +2 -0
  8. package/assets/styles/_updevs.scss +9 -0
  9. package/assets/styles/_utilities.scss +98 -0
  10. package/assets/styles/_variables-dark.scss +17 -0
  11. package/assets/styles/_variables.scss +934 -0
  12. package/assets/styles/fonts/_webfonts.scss +15 -0
  13. package/assets/styles/layout/_animations.scss +62 -0
  14. package/assets/styles/layout/_core.scss +61 -0
  15. package/assets/styles/layout/_dark.scss +72 -0
  16. package/assets/styles/layout/_footer.scss +12 -0
  17. package/assets/styles/layout/_navbar.scss +380 -0
  18. package/assets/styles/layout/_page.scss +169 -0
  19. package/assets/styles/layout/_root.scss +72 -0
  20. package/assets/styles/mixins/_functions.scss +43 -0
  21. package/assets/styles/mixins/_mixins.scss +68 -0
  22. package/assets/styles/ui/_accordion.scss +24 -0
  23. package/assets/styles/ui/_alerts.scss +59 -0
  24. package/assets/styles/ui/_avatars.scss +118 -0
  25. package/assets/styles/ui/_badges.scss +79 -0
  26. package/assets/styles/ui/_breadcrumbs.scss +50 -0
  27. package/assets/styles/ui/_button-group.scss +16 -0
  28. package/assets/styles/ui/_buttons.scss +265 -0
  29. package/assets/styles/ui/_calendars.scss +104 -0
  30. package/assets/styles/ui/_cards.scss +586 -0
  31. package/assets/styles/ui/_carousel.scss +68 -0
  32. package/assets/styles/ui/_charts.scss +61 -0
  33. package/assets/styles/ui/_chips.scss +0 -0
  34. package/assets/styles/ui/_close.scss +7 -0
  35. package/assets/styles/ui/_datagrid.scss +17 -0
  36. package/assets/styles/ui/_dropdowns.scss +117 -0
  37. package/assets/styles/ui/_empty.scss +65 -0
  38. package/assets/styles/ui/_flags.scss +31 -0
  39. package/assets/styles/ui/_forms.scss +224 -0
  40. package/assets/styles/ui/_grid.scss +115 -0
  41. package/assets/styles/ui/_icons.scss +72 -0
  42. package/assets/styles/ui/_images.scss +15 -0
  43. package/assets/styles/ui/_legend.scss +12 -0
  44. package/assets/styles/ui/_lists.scss +127 -0
  45. package/assets/styles/ui/_loaders.scss +72 -0
  46. package/assets/styles/ui/_login.scss +3 -0
  47. package/assets/styles/ui/_markdown.scss +42 -0
  48. package/assets/styles/ui/_modals.scss +67 -0
  49. package/assets/styles/ui/_nav.scss +92 -0
  50. package/assets/styles/ui/_offcanvas.scss +17 -0
  51. package/assets/styles/ui/_pagination.scss +56 -0
  52. package/assets/styles/ui/_payments.scss +28 -0
  53. package/assets/styles/ui/_placeholder.scss +9 -0
  54. package/assets/styles/ui/_popovers.scss +2 -0
  55. package/assets/styles/ui/_progress.scss +107 -0
  56. package/assets/styles/ui/_ribbons.scss +156 -0
  57. package/assets/styles/ui/_stars.scss +13 -0
  58. package/assets/styles/ui/_status.scss +163 -0
  59. package/assets/styles/ui/_steps.scss +152 -0
  60. package/assets/styles/ui/_switch-icon.scss +211 -0
  61. package/assets/styles/ui/_tables.scss +150 -0
  62. package/assets/styles/ui/_tags.scss +57 -0
  63. package/assets/styles/ui/_timeline.scss +61 -0
  64. package/assets/styles/ui/_toasts.scss +19 -0
  65. package/assets/styles/ui/_toolbar.scss +10 -0
  66. package/assets/styles/ui/_tracking.scss +29 -0
  67. package/assets/styles/ui/_type.scss +169 -0
  68. package/assets/styles/ui/forms/_form-check.scss +91 -0
  69. package/assets/styles/ui/forms/_form-colorinput.scss +54 -0
  70. package/assets/styles/ui/forms/_form-custom.scss +28 -0
  71. package/assets/styles/ui/forms/_form-icon.scss +35 -0
  72. package/assets/styles/ui/forms/_form-imagecheck.scss +104 -0
  73. package/assets/styles/ui/forms/_form-selectgroup.scss +153 -0
  74. package/assets/styles/ui/forms/_validation.scss +13 -0
  75. package/assets/styles/ui/typo/_hr.scss +74 -0
  76. package/assets/styles/utils/_background.scss +15 -0
  77. package/assets/styles/utils/_colors.scss +40 -0
  78. package/assets/styles/utils/_opacity.scss +7 -0
  79. package/assets/styles/utils/_scroll.scss +47 -0
  80. package/assets/styles/utils/_shadow.scss +17 -0
  81. package/assets/styles/utils/_sizing.scss +10 -0
  82. package/assets/styles/utils/_text.scss +15 -0
  83. package/button/ng-package.json +7 -0
  84. package/button/src/button.component.html +8 -0
  85. package/button/src/button.component.scss +5 -0
  86. package/button/src/button.component.spec.ts +23 -0
  87. package/button/src/button.component.ts +154 -0
  88. package/button/src/index.ts +1 -0
  89. package/button/src/public-api.ts +2 -0
  90. package/button/src/upd-button.module.ts +17 -0
  91. package/card/ng-package.json +7 -0
  92. package/card/src/card.component.html +105 -0
  93. package/card/src/card.component.scss +47 -0
  94. package/card/src/card.component.spec.ts +23 -0
  95. package/card/src/card.component.ts +112 -0
  96. package/card/src/directives/card-actions.directive.spec.ts +8 -0
  97. package/card/src/directives/card-actions.directive.ts +11 -0
  98. package/card/src/directives/card-footer.directive.spec.ts +8 -0
  99. package/card/src/directives/card-footer.directive.ts +11 -0
  100. package/card/src/directives/card-header.directive.spec.ts +8 -0
  101. package/card/src/directives/card-header.directive.ts +11 -0
  102. package/card/src/directives/card-image.directive.spec.ts +8 -0
  103. package/card/src/directives/card-image.directive.ts +11 -0
  104. package/card/src/directives/public-api.ts +4 -0
  105. package/card/src/index.ts +1 -0
  106. package/card/src/public-api.ts +3 -0
  107. package/card/src/types/card-state.type.ts +1 -0
  108. package/card/src/types/card-style.type.ts +1 -0
  109. package/card/src/types/hover-effect.type.ts +1 -0
  110. package/card/src/types/public-api.ts +5 -0
  111. package/card/src/types/ribbon-style.type.ts +1 -0
  112. package/card/src/types/status-position.type.ts +1 -0
  113. package/card/src/upd-card.module.ts +32 -0
  114. package/dropdown/ng-package.json +7 -0
  115. package/dropdown/src/dropdown.component.html +32 -0
  116. package/dropdown/src/dropdown.component.scss +19 -0
  117. package/dropdown/src/dropdown.component.spec.ts +23 -0
  118. package/dropdown/src/dropdown.component.ts +182 -0
  119. package/dropdown/src/index.ts +1 -0
  120. package/dropdown/src/models/dropdown-item.ts +22 -0
  121. package/dropdown/src/models/dropdown-item.type.ts +1 -0
  122. package/dropdown/src/models/public-api.ts +2 -0
  123. package/dropdown/src/public-api.ts +3 -0
  124. package/dropdown/src/upd-dropdown.module.ts +25 -0
  125. package/form/ng-package.json +7 -0
  126. package/form/src/form.module.ts +10 -0
  127. package/form/src/index.ts +1 -0
  128. package/form/src/public-api.ts +1 -0
  129. package/form-controls/checkbox/ng-package.json +7 -0
  130. package/form-controls/checkbox/src/checkbox.component.html +7 -0
  131. package/form-controls/checkbox/src/checkbox.component.scss +0 -0
  132. package/form-controls/checkbox/src/checkbox.component.spec.ts +23 -0
  133. package/form-controls/checkbox/src/checkbox.component.ts +48 -0
  134. package/form-controls/checkbox/src/index.ts +1 -0
  135. package/form-controls/checkbox/src/public-api.ts +3 -0
  136. package/form-controls/checkbox/src/upd-checkbox.module.ts +19 -0
  137. package/form-controls/input/ng-package.json +7 -0
  138. package/form-controls/input/src/directives/input-append.directive.spec.ts +8 -0
  139. package/form-controls/input/src/directives/input-append.directive.ts +11 -0
  140. package/form-controls/input/src/directives/input-prepend.directive.spec.ts +8 -0
  141. package/form-controls/input/src/directives/input-prepend.directive.ts +11 -0
  142. package/form-controls/input/src/directives/public-api.ts +2 -0
  143. package/form-controls/input/src/index.ts +1 -0
  144. package/form-controls/input/src/input.component.html +82 -0
  145. package/form-controls/input/src/input.component.scss +13 -0
  146. package/form-controls/input/src/input.component.spec.ts +23 -0
  147. package/form-controls/input/src/input.component.ts +124 -0
  148. package/form-controls/input/src/public-api.ts +4 -0
  149. package/form-controls/input/src/types/input.type.ts +1 -0
  150. package/form-controls/input/src/types/loader-position.type.ts +1 -0
  151. package/form-controls/input/src/types/public-api.ts +2 -0
  152. package/form-controls/input/src/upd-input.module.ts +29 -0
  153. package/form-controls/radio/ng-package.json +7 -0
  154. package/form-controls/radio/src/index.ts +1 -0
  155. package/form-controls/radio/src/public-api.ts +2 -0
  156. package/form-controls/radio/src/radio.component.html +7 -0
  157. package/form-controls/radio/src/radio.component.scss +0 -0
  158. package/form-controls/radio/src/radio.component.spec.ts +23 -0
  159. package/form-controls/radio/src/radio.component.ts +47 -0
  160. package/form-controls/radio/src/upd-radio.module.ts +17 -0
  161. package/form-controls/select/ng-package.json +7 -0
  162. package/form-controls/select/src/components/multiple/select-multiple.component.html +41 -0
  163. package/form-controls/select/src/components/multiple/select-multiple.component.scss +6 -0
  164. package/form-controls/select/src/components/multiple/select-multiple.component.spec.ts +21 -0
  165. package/form-controls/select/src/components/multiple/select-multiple.component.ts +69 -0
  166. package/form-controls/select/src/components/shared.scss +40 -0
  167. package/form-controls/select/src/components/single/select.component.html +53 -0
  168. package/form-controls/select/src/components/single/select.component.scss +3 -0
  169. package/form-controls/select/src/components/single/select.component.spec.ts +23 -0
  170. package/form-controls/select/src/components/single/select.component.ts +58 -0
  171. package/form-controls/select/src/index.ts +1 -0
  172. package/form-controls/select/src/models/abstractions/base-select.component.ts +259 -0
  173. package/form-controls/select/src/models/public-api.ts +1 -0
  174. package/form-controls/select/src/models/select-item.ts +26 -0
  175. package/form-controls/select/src/public-api.ts +4 -0
  176. package/form-controls/select/src/upd-select.module.ts +32 -0
  177. package/form-controls/textarea/ng-package.json +7 -0
  178. package/form-controls/textarea/src/index.ts +1 -0
  179. package/form-controls/textarea/src/public-api.ts +2 -0
  180. package/form-controls/textarea/src/textarea.component.html +8 -0
  181. package/form-controls/textarea/src/textarea.component.scss +0 -0
  182. package/form-controls/textarea/src/textarea.component.spec.ts +23 -0
  183. package/form-controls/textarea/src/textarea.component.ts +47 -0
  184. package/form-controls/textarea/src/upd-textarea.module.ts +17 -0
  185. package/form-controls/time-picker/ng-package.json +7 -0
  186. package/form-controls/time-picker/src/assets/i18n/en.json +5 -0
  187. package/form-controls/time-picker/src/assets/i18n/pt.json +5 -0
  188. package/form-controls/time-picker/src/index.ts +1 -0
  189. package/form-controls/time-picker/src/public-api.ts +3 -0
  190. package/form-controls/time-picker/src/time-picker.component.html +17 -0
  191. package/form-controls/time-picker/src/time-picker.component.scss +10 -0
  192. package/form-controls/time-picker/src/time-picker.component.spec.ts +21 -0
  193. package/form-controls/time-picker/src/time-picker.component.ts +110 -0
  194. package/form-controls/time-picker/src/time-selector/time-selector.component.html +44 -0
  195. package/form-controls/time-picker/src/time-selector/time-selector.component.scss +47 -0
  196. package/form-controls/time-picker/src/time-selector/time-selector.component.spec.ts +21 -0
  197. package/form-controls/time-picker/src/time-selector/time-selector.component.ts +107 -0
  198. package/form-controls/time-picker/src/upd-time-picker.module.ts +39 -0
  199. package/layout/ng-package.json +7 -0
  200. package/layout/src/abstractions/base-page.component.ts +21 -0
  201. package/layout/src/abstractions/public-api.ts +1 -0
  202. package/layout/src/assets/i18n/en.json +5 -0
  203. package/layout/src/assets/i18n/pt.json +5 -0
  204. package/layout/src/index.ts +1 -0
  205. package/layout/src/layouts/blank-layout/blank-layout.component.html +1 -0
  206. package/layout/src/layouts/blank-layout/blank-layout.component.scss +0 -0
  207. package/layout/src/layouts/blank-layout/blank-layout.component.spec.ts +23 -0
  208. package/layout/src/layouts/blank-layout/blank-layout.component.ts +10 -0
  209. package/layout/src/layouts/blank-layout/blank-layout.module.ts +17 -0
  210. package/layout/src/layouts/public-api.ts +4 -0
  211. package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.html +14 -0
  212. package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.scss +0 -0
  213. package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.spec.ts +23 -0
  214. package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.ts +31 -0
  215. package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.module.ts +52 -0
  216. package/layout/src/models/public-api.ts +1 -0
  217. package/layout/src/models/upd-layout-config.model.ts +71 -0
  218. package/layout/src/models/upd-layout.config.ts +37 -0
  219. package/layout/src/pages/auth-flow/auth-flow-routing.module.ts +21 -0
  220. package/layout/src/pages/auth-flow/auth-flow.module.ts +29 -0
  221. package/layout/src/pages/auth-flow/logged-out/logged-out.component.html +1 -0
  222. package/layout/src/pages/auth-flow/logged-out/logged-out.component.scss +0 -0
  223. package/layout/src/pages/auth-flow/logged-out/logged-out.component.spec.ts +23 -0
  224. package/layout/src/pages/auth-flow/logged-out/logged-out.component.ts +10 -0
  225. package/layout/src/pages/auth-flow/login/login.component.html +96 -0
  226. package/layout/src/pages/auth-flow/login/login.component.scss +0 -0
  227. package/layout/src/pages/auth-flow/login/login.component.spec.ts +23 -0
  228. package/layout/src/pages/auth-flow/login/login.component.ts +26 -0
  229. package/layout/src/pages/auth-flow/oauth-callback/oauth-callback.component.html +1 -0
  230. package/layout/src/pages/auth-flow/oauth-callback/oauth-callback.component.scss +0 -0
  231. package/layout/src/pages/auth-flow/oauth-callback/oauth-callback.component.spec.ts +23 -0
  232. package/layout/src/pages/auth-flow/oauth-callback/oauth-callback.component.ts +10 -0
  233. package/layout/src/pages/auth-flow/public-api.ts +5 -0
  234. package/layout/src/pages/public-api.ts +1 -0
  235. package/layout/src/partials/footer/footer-copyright.directive.spec.ts +8 -0
  236. package/layout/src/partials/footer/footer-copyright.directive.ts +9 -0
  237. package/layout/src/partials/footer/footer.component.html +30 -0
  238. package/layout/src/partials/footer/footer.component.scss +0 -0
  239. package/{src/lib/components.component.spec.ts → layout/src/partials/footer/footer.component.spec.ts} +6 -6
  240. package/layout/src/partials/footer/footer.component.ts +73 -0
  241. package/layout/src/partials/footer/public-api.ts +2 -0
  242. package/layout/src/partials/header/header-style.type.ts +1 -0
  243. package/layout/src/partials/header/header.component.html +163 -0
  244. package/layout/src/partials/header/header.component.scss +0 -0
  245. package/layout/src/partials/header/header.component.spec.ts +23 -0
  246. package/layout/src/partials/header/header.component.ts +86 -0
  247. package/layout/src/partials/header/public-api.ts +2 -0
  248. package/layout/src/partials/page-header/page-header.component.html +19 -0
  249. package/layout/src/partials/page-header/page-header.component.scss +0 -0
  250. package/layout/src/partials/page-header/page-header.component.spec.ts +23 -0
  251. package/layout/src/partials/page-header/page-header.component.ts +11 -0
  252. package/layout/src/partials/page-header/public-api.ts +1 -0
  253. package/layout/src/partials/public-api.ts +4 -0
  254. package/layout/src/partials/sidebar/public-api.ts +1 -0
  255. package/layout/src/partials/sidebar/sidebar.component.html +62 -0
  256. package/layout/src/partials/sidebar/sidebar.component.scss +0 -0
  257. package/layout/src/partials/sidebar/sidebar.component.spec.ts +23 -0
  258. package/layout/src/partials/sidebar/sidebar.component.ts +161 -0
  259. package/layout/src/public-api.ts +7 -0
  260. package/layout/src/services/public-api.ts +1 -0
  261. package/{src/lib/components.service.spec.ts → layout/src/services/upd-layout-config.service.spec.ts} +4 -4
  262. package/layout/src/services/upd-layout-config.service.ts +20 -0
  263. package/layout/src/tools/layout.constants.ts +18 -0
  264. package/layout/src/upd-layout.module.ts +34 -0
  265. package/link/ng-package.json +7 -0
  266. package/link/src/index.ts +1 -0
  267. package/link/src/link.component.html +3 -0
  268. package/link/src/link.component.scss +3 -0
  269. package/link/src/link.component.spec.ts +23 -0
  270. package/link/src/link.component.ts +48 -0
  271. package/link/src/public-api.ts +3 -0
  272. package/link/src/target.type.ts +1 -0
  273. package/link/src/upd-link.module.ts +17 -0
  274. package/list/ng-package.json +7 -0
  275. package/list/src/assets/i18n/en.json +5 -0
  276. package/list/src/assets/i18n/pt.json +5 -0
  277. package/list/src/index.ts +1 -0
  278. package/list/src/list.component.html +58 -0
  279. package/list/src/list.component.scss +21 -0
  280. package/list/src/list.component.spec.ts +23 -0
  281. package/list/src/list.component.ts +147 -0
  282. package/list/src/models/badge-position.type.ts +1 -0
  283. package/list/src/models/list-item.model.ts +35 -0
  284. package/list/src/models/list-item.ts +21 -0
  285. package/list/src/models/public-api.ts +2 -0
  286. package/list/src/public-api.ts +3 -0
  287. package/list/src/upd-list.module.ts +30 -0
  288. package/ng-package.json +9 -6
  289. package/package.json +8 -5
  290. package/popover/ng-package.json +7 -0
  291. package/popover/src/index.ts +1 -0
  292. package/popover/src/popover.component.html +20 -0
  293. package/popover/src/popover.component.scss +8 -0
  294. package/popover/src/popover.component.spec.ts +23 -0
  295. package/popover/src/popover.component.ts +53 -0
  296. package/popover/src/popover.directive.spec.ts +8 -0
  297. package/popover/src/popover.directive.ts +128 -0
  298. package/popover/src/public-api.ts +3 -0
  299. package/popover/src/upd-popover.module.ts +20 -0
  300. package/src/lib/index.ts +1 -0
  301. package/src/lib/public-api.ts +2 -0
  302. package/src/lib/types/component-size.type.ts +1 -0
  303. package/src/lib/types/public-api.ts +2 -0
  304. package/src/lib/types/validation-status.type.ts +1 -0
  305. package/src/lib/upd-components.module.ts +6 -0
  306. package/src/public-api.ts +1 -7
  307. package/tsconfig.lib.json +11 -11
  308. package/src/lib/components.component.ts +0 -14
  309. package/src/lib/components.module.ts +0 -17
  310. package/src/lib/components.service.ts +0 -9
@@ -0,0 +1,156 @@
1
+ // stylelint-disable declaration-no-important
2
+
3
+ .ribbon {
4
+ --#{$prefix}ribbon-margin: #{$card-ribbon-margin};
5
+ --#{$prefix}ribbon-border-radius: #{$card-ribbon-border-radius};
6
+ position: absolute;
7
+ top: .75rem;
8
+ right: calc(-1 * var(--#{$prefix}ribbon-margin));
9
+ z-index: 1;
10
+ padding: .25rem .75rem;
11
+ font-size: $card-ribbon-font-size;
12
+ font-weight: var(--#{$prefix}font-weight-bold);
13
+ line-height: 1;
14
+ color: $white;
15
+ text-align: center;
16
+ text-transform: uppercase;
17
+ background: var(--#{$prefix}primary);
18
+ border-color: var(--#{$prefix}primary);
19
+ border-radius: var(--#{$prefix}ribbon-border-radius) 0 var(--#{$prefix}ribbon-border-radius) var(--#{$prefix}ribbon-border-radius);
20
+ display: inline-flex;
21
+ align-items: center;
22
+ justify-content: center;
23
+ min-height: 2rem;
24
+ min-width: 2rem;
25
+
26
+ &:before {
27
+ position: absolute;
28
+ right: 0;
29
+ bottom: 100%;
30
+ width: 0;
31
+ height: 0;
32
+ content: "";
33
+ filter: brightness(70%);
34
+ border: calc(var(--#{$prefix}ribbon-margin) * .5) var(--#{$prefix}border-style);
35
+ border-color: inherit;
36
+ border-top-color: transparent;
37
+ border-right-color: transparent;
38
+ }
39
+
40
+ @if $enable-extra-colors {
41
+ @each $color, $value in $extra-colors {
42
+ &.bg-#{$color} {
43
+ border-color: var(--#{$prefix}#{$color});
44
+ }
45
+
46
+ &.bg-#{$color}-lt {
47
+ border-color: rgba(var(--#{$prefix}#{$color}-rgb), .1) !important;
48
+ }
49
+ }
50
+ }
51
+
52
+ .icon {
53
+ width: 1.25rem;
54
+ height: 1.25rem;
55
+ font-size: 1.25rem;
56
+ }
57
+ }
58
+
59
+ .ribbon-top {
60
+ top: calc(-1 * var(--#{$prefix}ribbon-margin));
61
+ right: .75rem;
62
+ width: 2rem;
63
+ padding: .5rem 0;
64
+ border-radius: 0 var(--#{$prefix}ribbon-border-radius) var(--#{$prefix}ribbon-border-radius) var(--#{$prefix}ribbon-border-radius);
65
+
66
+ &:before {
67
+ top: 0;
68
+ right: 100%;
69
+ bottom: auto;
70
+ border-color: inherit;
71
+ border-top-color: transparent;
72
+ border-left-color: transparent;
73
+ }
74
+
75
+ &.ribbon-start {
76
+ right: auto;
77
+ left: .75rem;
78
+
79
+ &:before {
80
+ top: 0;
81
+ right: 100%;
82
+ left: auto;
83
+ }
84
+ }
85
+ }
86
+
87
+ .ribbon-start {
88
+ right: auto;
89
+ left: calc(-1 * var(--#{$prefix}ribbon-margin));
90
+
91
+ &:before {
92
+ top: auto;
93
+ bottom: 100%;
94
+ left: 0;
95
+ border-color: inherit;
96
+ border-top-color: transparent;
97
+ border-left-color: transparent;
98
+ }
99
+ }
100
+
101
+ .ribbon-bottom {
102
+ top: auto;
103
+ bottom: .75rem;
104
+ }
105
+
106
+ .ribbon-bookmark {
107
+ padding-left: .25rem;
108
+ border-radius: 0 0 var(--#{$prefix}ribbon-border-radius) 0;
109
+
110
+ &:after {
111
+ position: absolute;
112
+ top: 0;
113
+ right: 100%;
114
+ display: block;
115
+ width: 0;
116
+ height: 0;
117
+ content: "";
118
+ border: 1rem var(--#{$prefix}border-style);
119
+ border-color: inherit;
120
+ border-right-width: 0;
121
+ border-left-color: transparent;
122
+ border-left-width: .5rem;
123
+ }
124
+
125
+ &.ribbon-left {
126
+ padding-right: .5rem;
127
+
128
+ &:after {
129
+ right: auto;
130
+ left: 100%;
131
+ border-right-color: transparent;
132
+
133
+ border-right-width: .5rem;
134
+ border-left-width: 0;
135
+ }
136
+ }
137
+
138
+ &.ribbon-top {
139
+ padding-right: 0;
140
+ padding-bottom: .25rem;
141
+ padding-left: 0;
142
+ border-radius: 0 var(--#{$prefix}ribbon-border-radius) 0 0;
143
+
144
+ &:after {
145
+ top: 100%;
146
+ right: 0;
147
+ left: 0;
148
+ border-color: inherit;
149
+ border-width: 1rem;
150
+ border-top-width: 0;
151
+ border-bottom-color: transparent;
152
+ border-bottom-width: .5rem;
153
+ }
154
+ }
155
+ }
156
+
@@ -0,0 +1,13 @@
1
+ .stars {
2
+ display: inline-flex;
3
+ color: $gray-400;
4
+ font-size: $h5-font-size;
5
+
6
+ .star:not(:first-child) {
7
+ margin-left: .25rem;
8
+ }
9
+ }
10
+
11
+ .star {
12
+
13
+ }
@@ -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,152 @@
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
+ }
22
+
23
+ //
24
+ // Step item
25
+ //
26
+ .step-item {
27
+ position: relative;
28
+ flex: 1 1 0;
29
+ min-height: 1rem;
30
+ margin-top: 0;
31
+ color: inherit;
32
+ text-align: center;
33
+ cursor: default;
34
+ padding-top: calc(var(--#{$prefix}steps-dot-size));
35
+
36
+ @at-root a#{&} {
37
+ cursor: pointer;
38
+
39
+ &:hover {
40
+ color: inherit;
41
+ }
42
+ }
43
+
44
+ &:after,
45
+ &:before {
46
+ background: var(--#{$prefix}steps-color);
47
+ }
48
+
49
+ &:not(:last-child):after {
50
+ position: absolute;
51
+ left: 50%;
52
+ width: 100%;
53
+ content: "";
54
+ transform: translateY(-50%);
55
+ }
56
+
57
+ &:after {
58
+ top: calc(var(--#{$prefix}steps-dot-size) * .5);
59
+ height: var(--#{$prefix}steps-border-width);
60
+ }
61
+
62
+ &:before {
63
+ content: "";
64
+ position: absolute;
65
+ top: 0;
66
+ left: 50%;
67
+ z-index: 1;
68
+ box-sizing: content-box;
69
+ display: flex;
70
+ align-items: center;
71
+ justify-content: center;
72
+ border-radius: $border-radius-pill;
73
+ transform: translateX(-50%);
74
+ color: var(--#{$prefix}white);
75
+ width: var(--#{$prefix}steps-dot-size);
76
+ height: var(--#{$prefix}steps-dot-size);
77
+ }
78
+
79
+ &.active {
80
+ font-weight: var(--#{$prefix}font-weight-bold);
81
+
82
+ &:after {
83
+ background: var(--#{$prefix}steps-inactive-color);
84
+ }
85
+
86
+ & ~ .step-item {
87
+ color: var(--#{$prefix}disabled-color);
88
+
89
+ &:after,
90
+ &:before {
91
+ background: var(--#{$prefix}steps-inactive-color);
92
+ }
93
+ }
94
+ }
95
+ }
96
+
97
+ //
98
+ // Steps counter
99
+ //
100
+ .steps-counter {
101
+ --#{$prefix}steps-dot-size: 1.5rem;
102
+ counter-reset: steps;
103
+
104
+ .step-item {
105
+ counter-increment: steps;
106
+
107
+ &:before {
108
+ content: counter(steps);
109
+ }
110
+ }
111
+ }
112
+
113
+ //
114
+ // Steps vertical
115
+ //
116
+ .steps-vertical {
117
+ --#{$prefix}steps-dot-offset: 6px;
118
+ flex-direction: column;
119
+
120
+ &.steps-counter {
121
+ --#{$prefix}steps-dot-offset: -2px;
122
+ }
123
+
124
+ .step-item {
125
+ text-align: left;
126
+ padding-top: 0;
127
+ padding-left: calc(var(--#{$prefix}steps-dot-size) + 1rem);
128
+ min-height: auto;
129
+
130
+ &:not(:first-child) {
131
+ margin-top: 1rem;
132
+ }
133
+
134
+ &:before {
135
+ top: var(--#{$prefix}steps-dot-offset);
136
+ left: 0;
137
+ transform: translate(0, 0);
138
+ }
139
+
140
+ &:not(:last-child) {
141
+ &:after {
142
+ position: absolute;
143
+ content: '';
144
+ transform: translateX(-50%);
145
+ top: var(--#{$prefix}steps-dot-offset);
146
+ left: calc(var(--#{$prefix}steps-dot-size) * 0.5);
147
+ width: var(--#{$prefix}steps-border-width);
148
+ height: calc(100% + 1rem);
149
+ }
150
+ }
151
+ }
152
+ }
@@ -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
+ }