@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.
- package/README.md +5 -22
- package/assets/styles/_bootstrap-components.scss +38 -0
- package/assets/styles/_bootstrap-config.scss +7 -0
- package/assets/styles/_bootstrap-override.scss +78 -0
- package/assets/styles/_config.scss +9 -0
- package/assets/styles/_core.scss +71 -0
- package/assets/styles/_mixins.scss +2 -0
- package/assets/styles/_updevs.scss +9 -0
- package/assets/styles/_utilities.scss +98 -0
- package/assets/styles/_variables-dark.scss +17 -0
- package/assets/styles/_variables.scss +934 -0
- package/assets/styles/fonts/_webfonts.scss +15 -0
- package/assets/styles/layout/_animations.scss +62 -0
- package/assets/styles/layout/_core.scss +61 -0
- package/assets/styles/layout/_dark.scss +72 -0
- package/assets/styles/layout/_footer.scss +12 -0
- package/assets/styles/layout/_navbar.scss +380 -0
- package/assets/styles/layout/_page.scss +169 -0
- package/assets/styles/layout/_root.scss +72 -0
- package/assets/styles/mixins/_functions.scss +43 -0
- package/assets/styles/mixins/_mixins.scss +68 -0
- package/assets/styles/ui/_accordion.scss +24 -0
- package/assets/styles/ui/_alerts.scss +59 -0
- package/assets/styles/ui/_avatars.scss +118 -0
- package/assets/styles/ui/_badges.scss +79 -0
- package/assets/styles/ui/_breadcrumbs.scss +50 -0
- package/assets/styles/ui/_button-group.scss +16 -0
- package/assets/styles/ui/_buttons.scss +265 -0
- package/assets/styles/ui/_calendars.scss +104 -0
- package/assets/styles/ui/_cards.scss +586 -0
- package/assets/styles/ui/_carousel.scss +68 -0
- package/assets/styles/ui/_charts.scss +61 -0
- package/assets/styles/ui/_chips.scss +0 -0
- package/assets/styles/ui/_close.scss +7 -0
- package/assets/styles/ui/_datagrid.scss +17 -0
- package/assets/styles/ui/_dropdowns.scss +117 -0
- package/assets/styles/ui/_empty.scss +65 -0
- package/assets/styles/ui/_flags.scss +31 -0
- package/assets/styles/ui/_forms.scss +224 -0
- package/assets/styles/ui/_grid.scss +115 -0
- package/assets/styles/ui/_icons.scss +72 -0
- package/assets/styles/ui/_images.scss +15 -0
- package/assets/styles/ui/_legend.scss +12 -0
- package/assets/styles/ui/_lists.scss +127 -0
- package/assets/styles/ui/_loaders.scss +72 -0
- package/assets/styles/ui/_login.scss +3 -0
- package/assets/styles/ui/_markdown.scss +42 -0
- package/assets/styles/ui/_modals.scss +67 -0
- package/assets/styles/ui/_nav.scss +92 -0
- package/assets/styles/ui/_offcanvas.scss +17 -0
- package/assets/styles/ui/_pagination.scss +56 -0
- package/assets/styles/ui/_payments.scss +28 -0
- package/assets/styles/ui/_placeholder.scss +9 -0
- package/assets/styles/ui/_popovers.scss +2 -0
- package/assets/styles/ui/_progress.scss +107 -0
- package/assets/styles/ui/_ribbons.scss +156 -0
- package/assets/styles/ui/_stars.scss +13 -0
- package/assets/styles/ui/_status.scss +163 -0
- package/assets/styles/ui/_steps.scss +152 -0
- package/assets/styles/ui/_switch-icon.scss +211 -0
- package/assets/styles/ui/_tables.scss +150 -0
- package/assets/styles/ui/_tags.scss +57 -0
- package/assets/styles/ui/_timeline.scss +61 -0
- package/assets/styles/ui/_toasts.scss +19 -0
- package/assets/styles/ui/_toolbar.scss +10 -0
- package/assets/styles/ui/_tracking.scss +29 -0
- package/assets/styles/ui/_type.scss +169 -0
- package/assets/styles/ui/forms/_form-check.scss +91 -0
- package/assets/styles/ui/forms/_form-colorinput.scss +54 -0
- package/assets/styles/ui/forms/_form-custom.scss +28 -0
- package/assets/styles/ui/forms/_form-icon.scss +35 -0
- package/assets/styles/ui/forms/_form-imagecheck.scss +104 -0
- package/assets/styles/ui/forms/_form-selectgroup.scss +153 -0
- package/assets/styles/ui/forms/_validation.scss +13 -0
- package/assets/styles/ui/typo/_hr.scss +74 -0
- package/assets/styles/utils/_background.scss +15 -0
- package/assets/styles/utils/_colors.scss +40 -0
- package/assets/styles/utils/_opacity.scss +7 -0
- package/assets/styles/utils/_scroll.scss +47 -0
- package/assets/styles/utils/_shadow.scss +17 -0
- package/assets/styles/utils/_sizing.scss +10 -0
- package/assets/styles/utils/_text.scss +15 -0
- package/button/ng-package.json +7 -0
- package/button/src/button.component.html +8 -0
- package/button/src/button.component.scss +5 -0
- package/button/src/button.component.spec.ts +23 -0
- package/button/src/button.component.ts +154 -0
- package/button/src/index.ts +1 -0
- package/button/src/public-api.ts +2 -0
- package/button/src/upd-button.module.ts +17 -0
- package/card/ng-package.json +7 -0
- package/card/src/card.component.html +105 -0
- package/card/src/card.component.scss +47 -0
- package/card/src/card.component.spec.ts +23 -0
- package/card/src/card.component.ts +112 -0
- package/card/src/directives/card-actions.directive.spec.ts +8 -0
- package/card/src/directives/card-actions.directive.ts +11 -0
- package/card/src/directives/card-footer.directive.spec.ts +8 -0
- package/card/src/directives/card-footer.directive.ts +11 -0
- package/card/src/directives/card-header.directive.spec.ts +8 -0
- package/card/src/directives/card-header.directive.ts +11 -0
- package/card/src/directives/card-image.directive.spec.ts +8 -0
- package/card/src/directives/card-image.directive.ts +11 -0
- package/card/src/directives/public-api.ts +4 -0
- package/card/src/index.ts +1 -0
- package/card/src/public-api.ts +3 -0
- package/card/src/types/card-state.type.ts +1 -0
- package/card/src/types/card-style.type.ts +1 -0
- package/card/src/types/hover-effect.type.ts +1 -0
- package/card/src/types/public-api.ts +5 -0
- package/card/src/types/ribbon-style.type.ts +1 -0
- package/card/src/types/status-position.type.ts +1 -0
- package/card/src/upd-card.module.ts +32 -0
- package/dropdown/ng-package.json +7 -0
- package/dropdown/src/dropdown.component.html +32 -0
- package/dropdown/src/dropdown.component.scss +19 -0
- package/dropdown/src/dropdown.component.spec.ts +23 -0
- package/dropdown/src/dropdown.component.ts +182 -0
- package/dropdown/src/index.ts +1 -0
- package/dropdown/src/models/dropdown-item.ts +22 -0
- package/dropdown/src/models/dropdown-item.type.ts +1 -0
- package/dropdown/src/models/public-api.ts +2 -0
- package/dropdown/src/public-api.ts +3 -0
- package/dropdown/src/upd-dropdown.module.ts +25 -0
- package/form/ng-package.json +7 -0
- package/form/src/form.module.ts +10 -0
- package/form/src/index.ts +1 -0
- package/form/src/public-api.ts +1 -0
- package/form-controls/checkbox/ng-package.json +7 -0
- package/form-controls/checkbox/src/checkbox.component.html +7 -0
- package/form-controls/checkbox/src/checkbox.component.scss +0 -0
- package/form-controls/checkbox/src/checkbox.component.spec.ts +23 -0
- package/form-controls/checkbox/src/checkbox.component.ts +48 -0
- package/form-controls/checkbox/src/index.ts +1 -0
- package/form-controls/checkbox/src/public-api.ts +3 -0
- package/form-controls/checkbox/src/upd-checkbox.module.ts +19 -0
- package/form-controls/input/ng-package.json +7 -0
- package/form-controls/input/src/directives/input-append.directive.spec.ts +8 -0
- package/form-controls/input/src/directives/input-append.directive.ts +11 -0
- package/form-controls/input/src/directives/input-prepend.directive.spec.ts +8 -0
- package/form-controls/input/src/directives/input-prepend.directive.ts +11 -0
- package/form-controls/input/src/directives/public-api.ts +2 -0
- package/form-controls/input/src/index.ts +1 -0
- package/form-controls/input/src/input.component.html +82 -0
- package/form-controls/input/src/input.component.scss +13 -0
- package/form-controls/input/src/input.component.spec.ts +23 -0
- package/form-controls/input/src/input.component.ts +124 -0
- package/form-controls/input/src/public-api.ts +4 -0
- package/form-controls/input/src/types/input.type.ts +1 -0
- package/form-controls/input/src/types/loader-position.type.ts +1 -0
- package/form-controls/input/src/types/public-api.ts +2 -0
- package/form-controls/input/src/upd-input.module.ts +29 -0
- package/form-controls/radio/ng-package.json +7 -0
- package/form-controls/radio/src/index.ts +1 -0
- package/form-controls/radio/src/public-api.ts +2 -0
- package/form-controls/radio/src/radio.component.html +7 -0
- package/form-controls/radio/src/radio.component.scss +0 -0
- package/form-controls/radio/src/radio.component.spec.ts +23 -0
- package/form-controls/radio/src/radio.component.ts +47 -0
- package/form-controls/radio/src/upd-radio.module.ts +17 -0
- package/form-controls/select/ng-package.json +7 -0
- package/form-controls/select/src/components/multiple/select-multiple.component.html +41 -0
- package/form-controls/select/src/components/multiple/select-multiple.component.scss +6 -0
- package/form-controls/select/src/components/multiple/select-multiple.component.spec.ts +21 -0
- package/form-controls/select/src/components/multiple/select-multiple.component.ts +69 -0
- package/form-controls/select/src/components/shared.scss +40 -0
- package/form-controls/select/src/components/single/select.component.html +53 -0
- package/form-controls/select/src/components/single/select.component.scss +3 -0
- package/form-controls/select/src/components/single/select.component.spec.ts +23 -0
- package/form-controls/select/src/components/single/select.component.ts +58 -0
- package/form-controls/select/src/index.ts +1 -0
- package/form-controls/select/src/models/abstractions/base-select.component.ts +259 -0
- package/form-controls/select/src/models/public-api.ts +1 -0
- package/form-controls/select/src/models/select-item.ts +26 -0
- package/form-controls/select/src/public-api.ts +4 -0
- package/form-controls/select/src/upd-select.module.ts +32 -0
- package/form-controls/textarea/ng-package.json +7 -0
- package/form-controls/textarea/src/index.ts +1 -0
- package/form-controls/textarea/src/public-api.ts +2 -0
- package/form-controls/textarea/src/textarea.component.html +8 -0
- package/form-controls/textarea/src/textarea.component.scss +0 -0
- package/form-controls/textarea/src/textarea.component.spec.ts +23 -0
- package/form-controls/textarea/src/textarea.component.ts +47 -0
- package/form-controls/textarea/src/upd-textarea.module.ts +17 -0
- package/form-controls/time-picker/ng-package.json +7 -0
- package/form-controls/time-picker/src/assets/i18n/en.json +5 -0
- package/form-controls/time-picker/src/assets/i18n/pt.json +5 -0
- package/form-controls/time-picker/src/index.ts +1 -0
- package/form-controls/time-picker/src/public-api.ts +3 -0
- package/form-controls/time-picker/src/time-picker.component.html +17 -0
- package/form-controls/time-picker/src/time-picker.component.scss +10 -0
- package/form-controls/time-picker/src/time-picker.component.spec.ts +21 -0
- package/form-controls/time-picker/src/time-picker.component.ts +110 -0
- package/form-controls/time-picker/src/time-selector/time-selector.component.html +44 -0
- package/form-controls/time-picker/src/time-selector/time-selector.component.scss +47 -0
- package/form-controls/time-picker/src/time-selector/time-selector.component.spec.ts +21 -0
- package/form-controls/time-picker/src/time-selector/time-selector.component.ts +107 -0
- package/form-controls/time-picker/src/upd-time-picker.module.ts +39 -0
- package/layout/ng-package.json +7 -0
- package/layout/src/abstractions/base-page.component.ts +21 -0
- package/layout/src/abstractions/public-api.ts +1 -0
- package/layout/src/assets/i18n/en.json +5 -0
- package/layout/src/assets/i18n/pt.json +5 -0
- package/layout/src/index.ts +1 -0
- package/layout/src/layouts/blank-layout/blank-layout.component.html +1 -0
- package/layout/src/layouts/blank-layout/blank-layout.component.scss +0 -0
- package/layout/src/layouts/blank-layout/blank-layout.component.spec.ts +23 -0
- package/layout/src/layouts/blank-layout/blank-layout.component.ts +10 -0
- package/layout/src/layouts/blank-layout/blank-layout.module.ts +17 -0
- package/layout/src/layouts/public-api.ts +4 -0
- package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.html +14 -0
- package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.scss +0 -0
- package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.spec.ts +23 -0
- package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.component.ts +31 -0
- package/layout/src/layouts/vertical-sidebar-layout/vertical-sidebar-layout.module.ts +52 -0
- package/layout/src/models/public-api.ts +1 -0
- package/layout/src/models/upd-layout-config.model.ts +71 -0
- package/layout/src/models/upd-layout.config.ts +37 -0
- package/layout/src/pages/auth-flow/auth-flow-routing.module.ts +21 -0
- package/layout/src/pages/auth-flow/auth-flow.module.ts +29 -0
- package/layout/src/pages/auth-flow/logged-out/logged-out.component.html +1 -0
- package/layout/src/pages/auth-flow/logged-out/logged-out.component.scss +0 -0
- package/layout/src/pages/auth-flow/logged-out/logged-out.component.spec.ts +23 -0
- package/layout/src/pages/auth-flow/logged-out/logged-out.component.ts +10 -0
- package/layout/src/pages/auth-flow/login/login.component.html +96 -0
- package/layout/src/pages/auth-flow/login/login.component.scss +0 -0
- package/layout/src/pages/auth-flow/login/login.component.spec.ts +23 -0
- package/layout/src/pages/auth-flow/login/login.component.ts +26 -0
- package/layout/src/pages/auth-flow/oauth-callback/oauth-callback.component.html +1 -0
- package/layout/src/pages/auth-flow/oauth-callback/oauth-callback.component.scss +0 -0
- package/layout/src/pages/auth-flow/oauth-callback/oauth-callback.component.spec.ts +23 -0
- package/layout/src/pages/auth-flow/oauth-callback/oauth-callback.component.ts +10 -0
- package/layout/src/pages/auth-flow/public-api.ts +5 -0
- package/layout/src/pages/public-api.ts +1 -0
- package/layout/src/partials/footer/footer-copyright.directive.spec.ts +8 -0
- package/layout/src/partials/footer/footer-copyright.directive.ts +9 -0
- package/layout/src/partials/footer/footer.component.html +30 -0
- package/layout/src/partials/footer/footer.component.scss +0 -0
- package/{src/lib/components.component.spec.ts → layout/src/partials/footer/footer.component.spec.ts} +6 -6
- package/layout/src/partials/footer/footer.component.ts +73 -0
- package/layout/src/partials/footer/public-api.ts +2 -0
- package/layout/src/partials/header/header-style.type.ts +1 -0
- package/layout/src/partials/header/header.component.html +163 -0
- package/layout/src/partials/header/header.component.scss +0 -0
- package/layout/src/partials/header/header.component.spec.ts +23 -0
- package/layout/src/partials/header/header.component.ts +86 -0
- package/layout/src/partials/header/public-api.ts +2 -0
- package/layout/src/partials/page-header/page-header.component.html +19 -0
- package/layout/src/partials/page-header/page-header.component.scss +0 -0
- package/layout/src/partials/page-header/page-header.component.spec.ts +23 -0
- package/layout/src/partials/page-header/page-header.component.ts +11 -0
- package/layout/src/partials/page-header/public-api.ts +1 -0
- package/layout/src/partials/public-api.ts +4 -0
- package/layout/src/partials/sidebar/public-api.ts +1 -0
- package/layout/src/partials/sidebar/sidebar.component.html +62 -0
- package/layout/src/partials/sidebar/sidebar.component.scss +0 -0
- package/layout/src/partials/sidebar/sidebar.component.spec.ts +23 -0
- package/layout/src/partials/sidebar/sidebar.component.ts +161 -0
- package/layout/src/public-api.ts +7 -0
- package/layout/src/services/public-api.ts +1 -0
- package/{src/lib/components.service.spec.ts → layout/src/services/upd-layout-config.service.spec.ts} +4 -4
- package/layout/src/services/upd-layout-config.service.ts +20 -0
- package/layout/src/tools/layout.constants.ts +18 -0
- package/layout/src/upd-layout.module.ts +34 -0
- package/link/ng-package.json +7 -0
- package/link/src/index.ts +1 -0
- package/link/src/link.component.html +3 -0
- package/link/src/link.component.scss +3 -0
- package/link/src/link.component.spec.ts +23 -0
- package/link/src/link.component.ts +48 -0
- package/link/src/public-api.ts +3 -0
- package/link/src/target.type.ts +1 -0
- package/link/src/upd-link.module.ts +17 -0
- package/list/ng-package.json +7 -0
- package/list/src/assets/i18n/en.json +5 -0
- package/list/src/assets/i18n/pt.json +5 -0
- package/list/src/index.ts +1 -0
- package/list/src/list.component.html +58 -0
- package/list/src/list.component.scss +21 -0
- package/list/src/list.component.spec.ts +23 -0
- package/list/src/list.component.ts +147 -0
- package/list/src/models/badge-position.type.ts +1 -0
- package/list/src/models/list-item.model.ts +35 -0
- package/list/src/models/list-item.ts +21 -0
- package/list/src/models/public-api.ts +2 -0
- package/list/src/public-api.ts +3 -0
- package/list/src/upd-list.module.ts +30 -0
- package/ng-package.json +9 -6
- package/package.json +8 -5
- package/popover/ng-package.json +7 -0
- package/popover/src/index.ts +1 -0
- package/popover/src/popover.component.html +20 -0
- package/popover/src/popover.component.scss +8 -0
- package/popover/src/popover.component.spec.ts +23 -0
- package/popover/src/popover.component.ts +53 -0
- package/popover/src/popover.directive.spec.ts +8 -0
- package/popover/src/popover.directive.ts +128 -0
- package/popover/src/public-api.ts +3 -0
- package/popover/src/upd-popover.module.ts +20 -0
- package/src/lib/index.ts +1 -0
- package/src/lib/public-api.ts +2 -0
- package/src/lib/types/component-size.type.ts +1 -0
- package/src/lib/types/public-api.ts +2 -0
- package/src/lib/types/validation-status.type.ts +1 -0
- package/src/lib/upd-components.module.ts +6 -0
- package/src/public-api.ts +1 -7
- package/tsconfig.lib.json +11 -11
- package/src/lib/components.component.ts +0 -14
- package/src/lib/components.module.ts +0 -17
- package/src/lib/components.service.ts +0 -9
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Image check
|
|
3
|
+
*/
|
|
4
|
+
.form-imagecheck {
|
|
5
|
+
position: relative;
|
|
6
|
+
margin: 0;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.form-imagecheck-input {
|
|
11
|
+
position: absolute;
|
|
12
|
+
z-index: -1;
|
|
13
|
+
opacity: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.form-imagecheck-figure {
|
|
17
|
+
position: relative;
|
|
18
|
+
display: block;
|
|
19
|
+
margin: 0;
|
|
20
|
+
user-select: none;
|
|
21
|
+
border: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color);
|
|
22
|
+
border-radius: 3px;
|
|
23
|
+
|
|
24
|
+
.form-imagecheck-input:focus ~ & {
|
|
25
|
+
border-color: var(--#{$prefix}primary);
|
|
26
|
+
box-shadow: $input-btn-focus-box-shadow;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.form-imagecheck-input:checked ~ & {
|
|
30
|
+
border-color: var(--#{$prefix}primary);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:before {
|
|
34
|
+
position: absolute;
|
|
35
|
+
top: .25rem;
|
|
36
|
+
left: .25rem;
|
|
37
|
+
z-index: 1;
|
|
38
|
+
display: block;
|
|
39
|
+
width: $form-check-input-width;
|
|
40
|
+
height: $form-check-input-width;
|
|
41
|
+
color: $white;
|
|
42
|
+
pointer-events: none;
|
|
43
|
+
content: "";
|
|
44
|
+
user-select: none;
|
|
45
|
+
background: $form-check-input-bg;
|
|
46
|
+
border: var(--#{$prefix}border-width) var(--#{$prefix}border-style) var(--#{$prefix}border-color);
|
|
47
|
+
border-radius: $form-check-input-border-radius;
|
|
48
|
+
@include transition(opacity $transition-time);
|
|
49
|
+
|
|
50
|
+
.form-imagecheck-input:checked ~ & {
|
|
51
|
+
background-color: $form-check-input-checked-bg-color;
|
|
52
|
+
background-image: escape-svg($form-check-input-checked-bg-image);
|
|
53
|
+
background-repeat: $form-check-input-checked-bg-repeat;
|
|
54
|
+
background-position: center;
|
|
55
|
+
background-size: $form-check-input-checked-bg-size;
|
|
56
|
+
border-color: $form-check-input-checked-border-color;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.form-imagecheck-input[type="radio"] ~ & {
|
|
60
|
+
border-radius: $form-check-radio-border-radius;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.form-imagecheck-input[type="radio"]:checked ~ & {
|
|
64
|
+
background-image: escape-svg($form-check-radio-checked-bg-image);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.form-imagecheck-image {
|
|
70
|
+
max-width: 100%;
|
|
71
|
+
display: block;
|
|
72
|
+
opacity: .64;
|
|
73
|
+
@include transition(opacity $transition-time);
|
|
74
|
+
|
|
75
|
+
&:first-child {
|
|
76
|
+
border-top-left-radius: 2px;
|
|
77
|
+
border-top-right-radius: 2px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:last-child {
|
|
81
|
+
border-bottom-right-radius: 2px;
|
|
82
|
+
border-bottom-left-radius: 2px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.form-imagecheck:hover &,
|
|
86
|
+
.form-imagecheck-input:focus ~ .form-imagecheck-figure &,
|
|
87
|
+
.form-imagecheck-input:checked ~ .form-imagecheck-figure & {
|
|
88
|
+
opacity: 1;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.form-imagecheck-caption {
|
|
93
|
+
padding: .25rem;
|
|
94
|
+
font-size: $font-size-sm;
|
|
95
|
+
color: var(--#{$prefix}secondary);
|
|
96
|
+
text-align: center;
|
|
97
|
+
@include transition(color $transition-time);
|
|
98
|
+
|
|
99
|
+
.form-imagecheck:hover &,
|
|
100
|
+
.form-imagecheck-input:focus ~ .form-imagecheck-figure &,
|
|
101
|
+
.form-imagecheck-input:checked ~ .form-imagecheck-figure & {
|
|
102
|
+
color: var(--#{$prefix}body-color);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Select group
|
|
3
|
+
*/
|
|
4
|
+
.form-selectgroup {
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
margin: 0 -.5rem -.5rem 0;
|
|
7
|
+
flex-wrap: wrap;
|
|
8
|
+
|
|
9
|
+
.form-selectgroup-item {
|
|
10
|
+
margin: 0 .5rem .5rem 0;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.form-selectgroup-vertical {
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.form-selectgroup-item {
|
|
19
|
+
display: block;
|
|
20
|
+
position: relative;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.form-selectgroup-input {
|
|
24
|
+
position: absolute;
|
|
25
|
+
top: 0;
|
|
26
|
+
left: 0;
|
|
27
|
+
z-index: -1;
|
|
28
|
+
opacity: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.form-selectgroup-label {
|
|
32
|
+
position: relative;
|
|
33
|
+
display: block;
|
|
34
|
+
min-width: $input-height;
|
|
35
|
+
margin: 0;
|
|
36
|
+
padding: $input-btn-padding-y $input-btn-padding-x;
|
|
37
|
+
font-size: $input-btn-font-size;
|
|
38
|
+
line-height: $input-line-height;
|
|
39
|
+
color: var(--#{$prefix}secondary);
|
|
40
|
+
background: $form-check-input-bg;
|
|
41
|
+
text-align: center;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
user-select: none;
|
|
44
|
+
border: var(--#{$prefix}border-width) var(--#{$prefix}border-style) $input-border-color;
|
|
45
|
+
border-radius: 3px;
|
|
46
|
+
box-shadow: $input-box-shadow;
|
|
47
|
+
@include transition(border-color $transition-time, background $transition-time, color $transition-time);
|
|
48
|
+
|
|
49
|
+
.icon:only-child {
|
|
50
|
+
margin: 0 -.25rem;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:hover {
|
|
54
|
+
color: var(--#{$prefix}body-color);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.form-selectgroup-check {
|
|
59
|
+
display: inline-block;
|
|
60
|
+
width: $form-check-input-width;
|
|
61
|
+
height: $form-check-input-width;
|
|
62
|
+
border: $form-check-input-border;
|
|
63
|
+
vertical-align: middle;
|
|
64
|
+
box-shadow: $form-check-input-box-shadow;
|
|
65
|
+
|
|
66
|
+
.form-selectgroup-input[type="checkbox"] + .form-selectgroup-label & {
|
|
67
|
+
border-radius: $form-check-input-border-radius;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.form-selectgroup-input[type="radio"] + .form-selectgroup-label & {
|
|
71
|
+
border-radius: $form-check-radio-border-radius;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.form-selectgroup-input:checked + .form-selectgroup-label & {
|
|
75
|
+
background-color: $form-check-input-checked-bg-color;
|
|
76
|
+
background-repeat: $form-check-input-checked-bg-repeat;
|
|
77
|
+
background-position: center;
|
|
78
|
+
background-size: $form-check-input-checked-bg-size;
|
|
79
|
+
border-color: $form-check-input-checked-border-color;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.form-selectgroup-input[type="checkbox"]:checked + .form-selectgroup-label & {
|
|
83
|
+
background-image: escape-svg($form-check-input-checked-bg-image);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.form-selectgroup-input[type="radio"]:checked + .form-selectgroup-label & {
|
|
87
|
+
background-image: escape-svg($form-check-radio-checked-bg-image);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.form-selectgroup-check-floated {
|
|
92
|
+
position: absolute;
|
|
93
|
+
top: $input-btn-padding-y;
|
|
94
|
+
right: $input-btn-padding-y;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.form-selectgroup-input:checked + .form-selectgroup-label {
|
|
98
|
+
z-index: 1;
|
|
99
|
+
color: #{$active-color};
|
|
100
|
+
background: #{$active-bg};
|
|
101
|
+
border-color: #{$active-border-color};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.form-selectgroup-input:focus + .form-selectgroup-label {
|
|
105
|
+
z-index: 2;
|
|
106
|
+
color: var(--#{$prefix}primary);
|
|
107
|
+
border-color: var(--#{$prefix}primary);
|
|
108
|
+
box-shadow: $input-btn-focus-box-shadow;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.form-selectgroup-label-content {
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
Alternate version of form single group
|
|
116
|
+
*/
|
|
117
|
+
.form-selectgroup-boxes {
|
|
118
|
+
.form-selectgroup-label {
|
|
119
|
+
text-align: left;
|
|
120
|
+
padding: $card-spacer-x $card-spacer-y;
|
|
121
|
+
color: inherit;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.form-selectgroup-input:checked {
|
|
125
|
+
+ .form-selectgroup-label {
|
|
126
|
+
color: inherit;
|
|
127
|
+
|
|
128
|
+
.form-selectgroup-title {
|
|
129
|
+
color: var(--#{$prefix}primary);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.form-selectgroup-label-content {
|
|
133
|
+
opacity: 1;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
Select group
|
|
141
|
+
*/
|
|
142
|
+
.form-selectgroup-pills {
|
|
143
|
+
flex-wrap: wrap;
|
|
144
|
+
align-items: flex-start;
|
|
145
|
+
|
|
146
|
+
.form-selectgroup-item {
|
|
147
|
+
flex-grow: 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.form-selectgroup-label {
|
|
151
|
+
border-radius: 50px;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
%validation-lite {
|
|
2
|
+
border-color: var(--#{$prefix}border-color) !important;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
@each $state, $data in $form-validation-states {
|
|
6
|
+
.form-control.is-#{$state}-lite {
|
|
7
|
+
@extend %validation-lite;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.form-select.is-#{$state}-lite {
|
|
11
|
+
@extend %validation-lite;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Horizontal rules
|
|
3
|
+
*/
|
|
4
|
+
.hr {
|
|
5
|
+
@extend hr;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
Hr text
|
|
10
|
+
*/
|
|
11
|
+
.hr-text {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
margin: $hr-margin-y 0;
|
|
15
|
+
@include subheader;
|
|
16
|
+
height: 1px;
|
|
17
|
+
|
|
18
|
+
&:after,
|
|
19
|
+
&:before {
|
|
20
|
+
flex: 1 1 auto;
|
|
21
|
+
height: 1px;
|
|
22
|
+
background-color: var(--#{$prefix}border-color);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:before {
|
|
26
|
+
content: "";
|
|
27
|
+
margin-right: .5rem;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:after {
|
|
31
|
+
content: "";
|
|
32
|
+
margin-left: .5rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
> *:first-child {
|
|
36
|
+
padding-right: .5rem;
|
|
37
|
+
padding-left: 0;
|
|
38
|
+
color: var(--#{$prefix}secondary);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.hr-text-left {
|
|
42
|
+
&:before {
|
|
43
|
+
content: none;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
& > *:first-child {
|
|
47
|
+
padding-right: .5rem;
|
|
48
|
+
padding-left: .5rem;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&.hr-text-right {
|
|
53
|
+
&:before {
|
|
54
|
+
content: "";
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:after {
|
|
58
|
+
content: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
& > *:first-child {
|
|
62
|
+
padding-right: 0;
|
|
63
|
+
padding-left: .5rem;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.card > & {
|
|
68
|
+
margin: 0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.hr-text-spaceless {
|
|
73
|
+
margin: -.5rem 0;
|
|
74
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.bg-white-overlay {
|
|
2
|
+
color: $white;
|
|
3
|
+
background-color: rgba($light, .24);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.bg-dark-overlay {
|
|
7
|
+
color: $white;
|
|
8
|
+
background-color: rgba($dark, .24);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.bg-cover {
|
|
12
|
+
background-repeat: no-repeat;
|
|
13
|
+
background-size: cover;
|
|
14
|
+
background-position: center;
|
|
15
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// All colors
|
|
2
|
+
@each $color, $value in map-merge($theme-colors, (white: $white)) {
|
|
3
|
+
.bg-#{"" + $color} {
|
|
4
|
+
--#{$prefix}bg-opacity: 1;
|
|
5
|
+
background-color: rgba(var(--#{$prefix}#{$color}-rgb), var(--#{$prefix}bg-opacity)) !important;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.bg-#{"" + $color}-lt {
|
|
9
|
+
--#{$prefix}bg-opacity: 1;
|
|
10
|
+
--#{$prefix}text-opacity: 1;
|
|
11
|
+
color: rgba(var(--#{$prefix}#{$color}-rgb), var(--#{$prefix}text-opacity)) !important;
|
|
12
|
+
background-color: rgba(var(--#{$prefix}#{$color}-lt-rgb), var(--#{$prefix}bg-opacity)) !important;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.border-#{"" + $color} {
|
|
16
|
+
border-color: $value !important;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@each $color, $value in $theme-colors {
|
|
21
|
+
.text-#{"" + $color} {
|
|
22
|
+
--#{$prefix}text-opacity: 1;
|
|
23
|
+
color: rgba(var(--#{$prefix}#{$color}-rgb), var(--#{$prefix}text-opacity)) !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.text-#{"" + $color}-fg {
|
|
27
|
+
color: var(--#{$prefix}#{$color}-fg) !important;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@each $color, $value in $gray-colors {
|
|
32
|
+
.bg-#{"" + $color} {
|
|
33
|
+
--#{$prefix}bg-opacity: .1;
|
|
34
|
+
background-color: rgba(var(--#{$prefix}#{$color}-rgb), var(--#{$prefix}bg-opacity)) !important;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.text-#{"" + $color}-fg {
|
|
38
|
+
color: color-contrast($value) !important;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// stylelint-disable declaration-no-important
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
Scrollable
|
|
5
|
+
*/
|
|
6
|
+
.scrollable {
|
|
7
|
+
overflow-x: hidden;
|
|
8
|
+
overflow-y: auto;
|
|
9
|
+
-webkit-overflow-scrolling: touch;
|
|
10
|
+
|
|
11
|
+
&.hover {
|
|
12
|
+
overflow-y: hidden;
|
|
13
|
+
|
|
14
|
+
> * {
|
|
15
|
+
margin-top: -1px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&:hover,
|
|
19
|
+
&:focus,
|
|
20
|
+
&:active {
|
|
21
|
+
overflow: visible;
|
|
22
|
+
overflow-y: auto;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.touch & {
|
|
27
|
+
overflow-y: auto !important;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.scroll-x,
|
|
32
|
+
.scroll-y {
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
-webkit-overflow-scrolling: touch;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.scroll-y {
|
|
38
|
+
overflow-y: auto;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.scroll-x {
|
|
42
|
+
overflow-x: auto;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.no-scroll {
|
|
46
|
+
overflow: hidden;
|
|
47
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// stylelint-disable declaration-no-important
|
|
2
|
+
|
|
3
|
+
.hover-shadow-sm:hover {
|
|
4
|
+
box-shadow: $box-shadow-sm !important;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.hover-shadow:hover {
|
|
8
|
+
box-shadow: $box-shadow !important;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.hover-shadow-lg:hover {
|
|
12
|
+
box-shadow: $box-shadow-lg !important;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.hover-shadow-none:hover {
|
|
16
|
+
box-shadow: none !important;
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// stylelint-disable declaration-no-important
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
Antialiasing
|
|
5
|
+
*/
|
|
6
|
+
.antialiased {
|
|
7
|
+
-webkit-font-smoothing: antialiased;
|
|
8
|
+
-moz-osx-font-smoothing: grayscale;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.subpixel-antialiased {
|
|
12
|
+
-webkit-font-smoothing: auto;
|
|
13
|
+
-moz-osx-font-smoothing: auto;
|
|
14
|
+
}
|
|
15
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { ButtonComponent } from './button.component';
|
|
4
|
+
|
|
5
|
+
describe('ButtonComponent', () => {
|
|
6
|
+
let component: ButtonComponent;
|
|
7
|
+
let fixture: ComponentFixture<ButtonComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ ButtonComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
|
|
15
|
+
fixture = TestBed.createComponent(ButtonComponent);
|
|
16
|
+
component = fixture.componentInstance;
|
|
17
|
+
fixture.detectChanges();
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it('should create', () => {
|
|
21
|
+
expect(component).toBeTruthy();
|
|
22
|
+
});
|
|
23
|
+
});
|