@tacdaed/fragments 1.0.0-beta.3 → 1.0.0-beta.4
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 +14 -0
- package/ng-package.json +20 -0
- package/package.json +22 -29
- package/src/lib/components/accordion/accordion.component.html +103 -0
- package/src/lib/components/accordion/accordion.component.scss +382 -0
- package/src/lib/components/accordion/accordion.component.spec.ts +147 -0
- package/src/lib/components/accordion/accordion.component.ts +211 -0
- package/src/lib/components/accordion/accordion.type.ts +82 -0
- package/src/lib/components/breadcrumb/breadcrumb.component.html +43 -0
- package/src/lib/components/breadcrumb/breadcrumb.component.scss +112 -0
- package/src/lib/components/breadcrumb/breadcrumb.component.spec.ts +33 -0
- package/src/lib/components/breadcrumb/breadcrumb.component.ts +103 -0
- package/src/lib/components/breadcrumb/breadcrumb.interface.ts +7 -0
- package/src/lib/components/button/button.component.html +57 -0
- package/src/lib/components/button/button.component.scss +445 -0
- package/src/lib/components/button/button.component.spec.ts +99 -0
- package/src/lib/components/button/button.component.ts +143 -0
- package/src/lib/components/button/button.type.ts +7 -0
- package/src/lib/components/card/card.component.html +44 -0
- package/src/lib/components/card/card.component.scss +114 -0
- package/src/lib/components/card/card.component.spec.ts +65 -0
- package/src/lib/components/card/card.component.ts +21 -0
- package/src/lib/components/card/card.type.ts +3 -0
- package/src/lib/components/code-block/code-block.component.html +55 -0
- package/src/lib/components/code-block/code-block.component.scss +122 -0
- package/src/lib/components/code-block/code-block.component.spec.ts +81 -0
- package/src/lib/components/code-block/code-block.component.ts +302 -0
- package/src/lib/components/code-block/code-block.interface.ts +28 -0
- package/src/lib/components/code-block/code-block.type.ts +73 -0
- package/src/lib/components/decorative/sparkle-field/sparkle-field.component.html +14 -0
- package/src/lib/components/decorative/sparkle-field/sparkle-field.component.scss +20 -0
- package/src/lib/components/decorative/sparkle-field/sparkle-field.component.spec.ts +38 -0
- package/src/lib/components/decorative/sparkle-field/sparkle-field.component.ts +181 -0
- package/src/lib/components/input/input-base.ts +187 -0
- package/src/lib/components/input/input-calendar/input-calendar.component.html +76 -0
- package/src/lib/components/input/input-calendar/input-calendar.component.scss +179 -0
- package/src/lib/components/input/input-calendar/input-calendar.component.spec.ts +44 -0
- package/src/lib/components/input/input-calendar/input-calendar.component.ts +299 -0
- package/src/lib/components/input/input-checkbox/input-checkbox.component.html +37 -0
- package/src/lib/components/input/input-checkbox/input-checkbox.component.scss +128 -0
- package/src/lib/components/input/input-checkbox/input-checkbox.component.spec.ts +43 -0
- package/src/lib/components/input/input-checkbox/input-checkbox.component.ts +112 -0
- package/src/lib/components/input/input-checkbox-group/input-checkbox-group.component.html +43 -0
- package/src/lib/components/input/input-checkbox-group/input-checkbox-group.component.scss +140 -0
- package/src/lib/components/input/input-checkbox-group/input-checkbox-group.component.spec.ts +62 -0
- package/src/lib/components/input/input-checkbox-group/input-checkbox-group.component.ts +136 -0
- package/src/lib/components/input/input-clock-picker/input-clock-picker.component.html +81 -0
- package/src/lib/components/input/input-clock-picker/input-clock-picker.component.scss +228 -0
- package/src/lib/components/input/input-clock-picker/input-clock-picker.component.spec.ts +62 -0
- package/src/lib/components/input/input-clock-picker/input-clock-picker.component.ts +178 -0
- package/src/lib/components/input/input-consts.ts +132 -0
- package/src/lib/components/input/input-date/input-date-validators.ts +41 -0
- package/src/lib/components/input/input-date/input-date.component.html +41 -0
- package/src/lib/components/input/input-date/input-date.component.scss +95 -0
- package/src/lib/components/input/input-date/input-date.component.spec.ts +43 -0
- package/src/lib/components/input/input-date/input-date.component.ts +359 -0
- package/src/lib/components/input/input-date-time/input-date-time.component.html +70 -0
- package/src/lib/components/input/input-date-time/input-date-time.component.scss +133 -0
- package/src/lib/components/input/input-date-time/input-date-time.component.spec.ts +36 -0
- package/src/lib/components/input/input-date-time/input-date-time.component.ts +387 -0
- package/src/lib/components/input/input-file-upload/input-file-upload.component.html +89 -0
- package/src/lib/components/input/input-file-upload/input-file-upload.component.scss +171 -0
- package/src/lib/components/input/input-file-upload/input-file-upload.component.spec.ts +43 -0
- package/src/lib/components/input/input-file-upload/input-file-upload.component.ts +351 -0
- package/src/lib/components/input/input-interface.ts +8 -0
- package/src/lib/components/input/input-number/input-number-validators.ts +0 -0
- package/src/lib/components/input/input-number/input-number.component.html +51 -0
- package/src/lib/components/input/input-number/input-number.component.scss +140 -0
- package/src/lib/components/input/input-number/input-number.component.spec.ts +44 -0
- package/src/lib/components/input/input-number/input-number.component.ts +343 -0
- package/src/lib/components/input/input-radio-group/input-radio-group.component.html +44 -0
- package/src/lib/components/input/input-radio-group/input-radio-group.component.scss +139 -0
- package/src/lib/components/input/input-radio-group/input-radio-group.component.spec.ts +58 -0
- package/src/lib/components/input/input-radio-group/input-radio-group.component.ts +132 -0
- package/src/lib/components/input/input-slider/input-slider.component.html +111 -0
- package/src/lib/components/input/input-slider/input-slider.component.scss +203 -0
- package/src/lib/components/input/input-slider/input-slider.component.spec.ts +46 -0
- package/src/lib/components/input/input-slider/input-slider.component.ts +410 -0
- package/src/lib/components/input/input-text/input-text-validators.ts +67 -0
- package/src/lib/components/input/input-text/input-text.component.html +71 -0
- package/src/lib/components/input/input-text/input-text.component.scss +118 -0
- package/src/lib/components/input/input-text/input-text.component.spec.ts +55 -0
- package/src/lib/components/input/input-text/input-text.component.ts +215 -0
- package/src/lib/components/input/input-time/input-time-validators.ts +42 -0
- package/src/lib/components/input/input-time/input-time.component.html +92 -0
- package/src/lib/components/input/input-time/input-time.component.scss +191 -0
- package/src/lib/components/input/input-time/input-time.component.spec.ts +39 -0
- package/src/lib/components/input/input-time/input-time.component.ts +691 -0
- package/src/lib/components/input/input-toggle-switch/input-toggle-switch.component.html +36 -0
- package/src/lib/components/input/input-toggle-switch/input-toggle-switch.component.scss +121 -0
- package/src/lib/components/input/input-toggle-switch/input-toggle-switch.component.spec.ts +54 -0
- package/src/lib/components/input/input-toggle-switch/input-toggle-switch.component.ts +117 -0
- package/src/lib/components/input/input-type.ts +18 -0
- package/src/lib/components/input/input-validation/input-validation.component.html +19 -0
- package/src/lib/components/input/input-validation/input-validation.component.scss +39 -0
- package/src/lib/components/input/input-validation/input-validation.component.spec.ts +45 -0
- package/src/lib/components/input/input-validation/input-validation.component.ts +13 -0
- package/src/lib/components/input/input.pipe.ts +14 -0
- package/src/lib/components/layout/container/container.component.html +1 -0
- package/src/lib/components/layout/container/container.component.scss +33 -0
- package/src/lib/components/layout/container/container.component.ts +32 -0
- package/src/lib/components/layout/container/container.type.ts +1 -0
- package/src/lib/components/layout/divider/divider.component.html +1 -0
- package/src/lib/components/layout/divider/divider.component.scss +60 -0
- package/src/lib/components/layout/divider/divider.component.ts +38 -0
- package/src/lib/components/layout/divider/divider.type.ts +2 -0
- package/src/lib/components/layout/section/section.component.html +21 -0
- package/src/lib/components/layout/section/section.component.scss +43 -0
- package/src/lib/components/layout/section/section.component.ts +33 -0
- package/src/lib/components/layout/section/section.type.ts +2 -0
- package/src/lib/components/layout/separator/separator.component.html +9 -0
- package/src/lib/components/layout/separator/separator.component.scss +52 -0
- package/src/lib/components/layout/separator/separator.component.ts +25 -0
- package/src/lib/components/layout/separator/separator.type.ts +1 -0
- package/src/lib/components/loader/content-blur/content-blur.component.html +13 -0
- package/src/lib/components/loader/content-blur/content-blur.component.scss +43 -0
- package/src/lib/components/loader/content-blur/content-blur.component.spec.ts +42 -0
- package/src/lib/components/loader/content-blur/content-blur.component.ts +34 -0
- package/src/lib/components/loader/loader.type.ts +2 -0
- package/src/lib/components/loader/progress-bar/progress-bar.component.html +26 -0
- package/src/lib/components/loader/progress-bar/progress-bar.component.scss +151 -0
- package/src/lib/components/loader/progress-bar/progress-bar.component.spec.ts +47 -0
- package/src/lib/components/loader/progress-bar/progress-bar.component.ts +28 -0
- package/src/lib/components/loader/progress-bar/progress-bar.type.ts +8 -0
- package/src/lib/components/loader/pulse-loader/pulse-loader.component.html +12 -0
- package/src/lib/components/loader/pulse-loader/pulse-loader.component.scss +202 -0
- package/src/lib/components/loader/pulse-loader/pulse-loader.component.spec.ts +55 -0
- package/src/lib/components/loader/pulse-loader/pulse-loader.component.ts +73 -0
- package/src/lib/components/loader/pulse-loader/pulse-loader.type.ts +6 -0
- package/src/lib/components/loader/skeleton-loader/skeleton-loader.component.html +13 -0
- package/src/lib/components/loader/skeleton-loader/skeleton-loader.component.scss +113 -0
- package/src/lib/components/loader/skeleton-loader/skeleton-loader.component.spec.ts +37 -0
- package/src/lib/components/loader/skeleton-loader/skeleton-loader.component.ts +51 -0
- package/src/lib/components/loader/skeleton-loader/skeleton-loader.type.ts +6 -0
- package/src/lib/components/loader/spinner/spinner.component.html +20 -0
- package/src/lib/components/loader/spinner/spinner.component.scss +137 -0
- package/src/lib/components/loader/spinner/spinner.component.spec.ts +43 -0
- package/src/lib/components/loader/spinner/spinner.component.ts +32 -0
- package/src/lib/components/loader/spinner/spinner.type.ts +6 -0
- package/src/lib/components/modal/modal.component.html +47 -0
- package/src/lib/components/modal/modal.component.scss +139 -0
- package/src/lib/components/modal/modal.component.spec.ts +60 -0
- package/src/lib/components/modal/modal.component.ts +83 -0
- package/src/lib/components/modal/modal.type.ts +9 -0
- package/src/lib/components/morph/blob-moph/blob-moprh.component.spec.ts +79 -0
- package/src/lib/components/morph/blob-moph/blob-moprh.component.ts +96 -0
- package/src/lib/components/morph/blob-moph/blob-morph.component.html +34 -0
- package/src/lib/components/morph/blob-moph/blob-morph.component.scss +7 -0
- package/src/lib/components/morph/morph.abstract.ts +13 -0
- package/src/lib/components/pagination/pagination.interface.ts +4 -0
- package/src/lib/components/pagination/small-pagination/small-pagination.component.html +61 -0
- package/src/lib/components/pagination/small-pagination/small-pagination.component.scss +187 -0
- package/src/lib/components/pagination/small-pagination/small-pagination.component.spec.ts +88 -0
- package/src/lib/components/pagination/small-pagination/small-pagination.component.ts +177 -0
- package/src/lib/components/selection-lists/multi-select/multi-select.component.html +170 -0
- package/src/lib/components/selection-lists/multi-select/multi-select.component.scss +312 -0
- package/src/lib/components/selection-lists/multi-select/multi-select.component.spec.ts +61 -0
- package/src/lib/components/selection-lists/multi-select/multi-select.component.ts +372 -0
- package/src/lib/components/selection-lists/selection-list/selection-list.component.html +125 -0
- package/src/lib/components/selection-lists/selection-list/selection-list.component.scss +267 -0
- package/src/lib/components/selection-lists/selection-list/selection-list.component.spec.ts +66 -0
- package/src/lib/components/selection-lists/selection-list/selection-list.component.ts +315 -0
- package/src/lib/components/selection-lists/selection-lists-base.ts +35 -0
- package/src/lib/components/selection-lists/selection-lists-const.ts +17 -0
- package/src/lib/components/selection-lists/selection-lists-interface.ts +7 -0
- package/src/lib/components/selection-lists/selection-lists.type.ts +1 -0
- package/src/lib/components/side-nav/side-nav.component.html +101 -0
- package/src/lib/components/side-nav/side-nav.component.scss +295 -0
- package/src/lib/components/side-nav/side-nav.component.spec.ts +0 -0
- package/src/lib/components/side-nav/side-nav.component.ts +18 -0
- package/src/lib/components/side-nav/side-nav.type.ts +28 -0
- package/src/lib/components/snackbar/snackbar.component.html +33 -0
- package/src/lib/components/snackbar/snackbar.component.scss +195 -0
- package/src/lib/components/snackbar/snackbar.component.ts +112 -0
- package/src/lib/components/snackbar/snackbar.type.ts +27 -0
- package/src/lib/components/status/chip/chip.component.html +51 -0
- package/src/lib/components/status/chip/chip.component.scss +149 -0
- package/src/lib/components/status/chip/chip.component.spec.ts +62 -0
- package/src/lib/components/status/chip/chip.component.ts +83 -0
- package/src/lib/components/status/chip/chip.type.ts +42 -0
- package/src/lib/components/status/directives/badge/badge.directive.spec.ts +60 -0
- package/src/lib/components/status/directives/badge/badge.directive.ts +190 -0
- package/src/lib/components/status/directives/badge/badge.interface.ts +19 -0
- package/src/lib/components/status/pill/pill.component.html +40 -0
- package/src/lib/components/status/pill/pill.component.scss +113 -0
- package/src/lib/components/status/pill/pill.component.spec.ts +47 -0
- package/src/lib/components/status/pill/pill.component.ts +83 -0
- package/src/lib/components/status/pill/pill.type.ts +42 -0
- package/src/lib/components/status/status.interface.ts +57 -0
- package/src/lib/components/status/status.type.ts +62 -0
- package/src/lib/components/status/tag/tag.component.html +39 -0
- package/src/lib/components/status/tag/tag.component.scss +140 -0
- package/src/lib/components/status/tag/tag.component.spec.ts +47 -0
- package/src/lib/components/status/tag/tag.component.ts +83 -0
- package/src/lib/components/status/tag/tag.type.ts +42 -0
- package/src/lib/components/stepper/stepper.component.html +83 -0
- package/src/lib/components/stepper/stepper.component.scss +196 -0
- package/src/lib/components/stepper/stepper.component.ts +482 -0
- package/src/lib/components/stepper/stepper.type.ts +60 -0
- package/src/lib/components/table/table.component.html +438 -0
- package/src/lib/components/table/table.component.scss +259 -0
- package/src/lib/components/table/table.component.spec.ts +117 -0
- package/src/lib/components/table/table.component.ts +215 -0
- package/src/lib/components/table/table.enum.ts +4 -0
- package/src/lib/components/table/table.function.ts +47 -0
- package/src/lib/components/table/table.interface.ts +143 -0
- package/src/lib/components/table/table.pipe.ts +62 -0
- package/src/lib/components/table/table.type.ts +15 -0
- package/src/lib/components/tabs/tabs.component.html +88 -0
- package/src/lib/components/tabs/tabs.component.scss +305 -0
- package/src/lib/components/tabs/tabs.component.spec.ts +94 -0
- package/src/lib/components/tabs/tabs.component.ts +282 -0
- package/src/lib/components/tabs/tabs.type.ts +81 -0
- package/src/lib/components/title-bar/title-bar.component.html +21 -0
- package/src/lib/components/title-bar/title-bar.component.scss +139 -0
- package/src/lib/components/title-bar/title-bar.component.spec.ts +44 -0
- package/src/lib/components/title-bar/title-bar.component.ts +13 -0
- package/src/lib/components/toast/toast.component.html +36 -0
- package/src/lib/components/toast/toast.component.scss +241 -0
- package/src/lib/components/toast/toast.component.ts +165 -0
- package/src/lib/components/toast/toast.type.ts +37 -0
- package/src/lib/components/toast-stack/toast-stack.component.html +30 -0
- package/src/lib/components/toast-stack/toast-stack.component.scss +35 -0
- package/src/lib/components/toast-stack/toast-stack.component.ts +51 -0
- package/src/lib/consts/country-prefix.ts +244 -0
- package/src/lib/directives/tooltip/popover.directive.ts +274 -0
- package/src/lib/directives/tooltip/tooltip.directive.spec.ts +86 -0
- package/src/lib/directives/tooltip/tooltip.directive.ts +234 -0
- package/src/lib/directives/tooltip/tooltip.interface.ts +29 -0
- package/src/lib/directives/tooltip/tooltip.type.ts +9 -0
- package/src/lib/interfaces/common.interfaces.ts +4 -0
- package/src/lib/pipes/chunk.pipe.ts +16 -0
- package/src/lib/pipes/safe-html.pipe.ts +14 -0
- package/src/lib/pipes/sanitize-html.pipe.ts +23 -0
- package/src/lib/types/base.types.ts +23 -0
- package/src/lib/types/common.types.ts +98 -0
- package/src/lib/types/form.types.ts +5 -0
- package/src/lib/utils/common.utils.ts +53 -0
- package/src/lib/utils/date.utils.ts +474 -0
- package/src/lib/utils/number.utils.ts +16 -0
- package/src/lib/utils/uuid.utils.ts +39 -0
- package/src/public-api.ts +114 -0
- package/tsconfig.lib.json +17 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +9 -0
- package/fesm2022/tacdaed-fragments.mjs +0 -8928
- package/fesm2022/tacdaed-fragments.mjs.map +0 -1
- package/index.d.ts +0 -3929
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
<div class="frg-side-nav">
|
|
2
|
+
<div class="frg-side-nav__container">
|
|
3
|
+
<nav>
|
|
4
|
+
@for (section of config.sections; track section.id ?? $index) {
|
|
5
|
+
<div
|
|
6
|
+
class="frg-side-nav__section"
|
|
7
|
+
[ngClass]="{
|
|
8
|
+
'frg-side-nav__section--primary': section.styleType === 'primary',
|
|
9
|
+
'frg-side-nav__section--secondary': section.styleType === 'secondary',
|
|
10
|
+
'frg-side-nav__section--tertiary': section.styleType === 'tertiary',
|
|
11
|
+
'frg-side-nav__section--success': section.styleType === 'success',
|
|
12
|
+
'frg-side-nav__section--warning': section.styleType === 'warning',
|
|
13
|
+
'frg-side-nav__section--danger': section.styleType === 'danger',
|
|
14
|
+
'frg-side-nav__section--dark': section.styleType === 'dark',
|
|
15
|
+
'frg-side-nav__section--light': section.styleType === 'light'
|
|
16
|
+
}"
|
|
17
|
+
>
|
|
18
|
+
@if (section.title) {
|
|
19
|
+
<span class="frg-side-nav__section-title">
|
|
20
|
+
@if (section.icon) {
|
|
21
|
+
<i class="frg-side-nav__icon" [ngClass]="section.icon" aria-hidden="true"></i>
|
|
22
|
+
}
|
|
23
|
+
<span class="frg-side-nav__text">{{ section.title }}</span>
|
|
24
|
+
</span>
|
|
25
|
+
}
|
|
26
|
+
<ng-container
|
|
27
|
+
[ngTemplateOutlet]="listTemplate"
|
|
28
|
+
[ngTemplateOutletContext]="{ $implicit: section.items, isSubnav: false, isOpen: true }">
|
|
29
|
+
</ng-container>
|
|
30
|
+
</div>
|
|
31
|
+
}
|
|
32
|
+
</nav>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<ng-template #listTemplate let-items let-isSubnav="isSubnav" let-isOpen="isOpen">
|
|
37
|
+
<ul
|
|
38
|
+
class="frg-side-nav__list"
|
|
39
|
+
[ngClass]="{
|
|
40
|
+
'frg-side-nav__sublist': isSubnav,
|
|
41
|
+
'frg-side-nav__sublist--open': isSubnav && isOpen
|
|
42
|
+
}"
|
|
43
|
+
>
|
|
44
|
+
@for (item of items; track item.id ?? $index) {
|
|
45
|
+
<li
|
|
46
|
+
class="frg-side-nav__item"
|
|
47
|
+
[ngClass]="{
|
|
48
|
+
'frg-side-nav__item--has-children': item.children?.length,
|
|
49
|
+
'frg-side-nav__item--expanded': item.expanded
|
|
50
|
+
}"
|
|
51
|
+
>
|
|
52
|
+
@if (item.children?.length) {
|
|
53
|
+
<button
|
|
54
|
+
type="button"
|
|
55
|
+
class="frg-side-nav__toggle"
|
|
56
|
+
(click)="toggleItem(item)"
|
|
57
|
+
[attr.aria-expanded]="item.expanded ? 'true' : 'false'"
|
|
58
|
+
>
|
|
59
|
+
<span class="frg-side-nav__label">
|
|
60
|
+
@if (item.icon) {
|
|
61
|
+
<i class="frg-side-nav__icon" [ngClass]="item.icon" aria-hidden="true"></i>
|
|
62
|
+
}
|
|
63
|
+
<span class="frg-side-nav__text">{{ item.label }}</span>
|
|
64
|
+
</span>
|
|
65
|
+
<span class="frg-side-nav__chevron" aria-hidden="true"></span>
|
|
66
|
+
</button>
|
|
67
|
+
<ng-container
|
|
68
|
+
[ngTemplateOutlet]="listTemplate"
|
|
69
|
+
[ngTemplateOutletContext]="{ $implicit: item.children, isSubnav: true, isOpen: item.expanded }">
|
|
70
|
+
</ng-container>
|
|
71
|
+
} @else {
|
|
72
|
+
@if (item.link?.kind === "route") {
|
|
73
|
+
<a
|
|
74
|
+
class="frg-side-nav__link"
|
|
75
|
+
[routerLink]="item.link.value"
|
|
76
|
+
routerLinkActive="active"
|
|
77
|
+
[routerLinkActiveOptions]="{ exact: item.link?.exact ?? false }"
|
|
78
|
+
>
|
|
79
|
+
@if (item.icon) {
|
|
80
|
+
<i class="frg-side-nav__icon" [ngClass]="item.icon" aria-hidden="true"></i>
|
|
81
|
+
}
|
|
82
|
+
<span class="frg-side-nav__text">{{ item.label }}</span>
|
|
83
|
+
</a>
|
|
84
|
+
} @else {
|
|
85
|
+
<a
|
|
86
|
+
class="frg-side-nav__link"
|
|
87
|
+
[href]="item.link?.value"
|
|
88
|
+
[attr.target]="item.link?.kind === 'href' ? item.link.target : null"
|
|
89
|
+
rel="noopener"
|
|
90
|
+
>
|
|
91
|
+
@if (item.icon) {
|
|
92
|
+
<i class="frg-side-nav__icon" [ngClass]="item.icon" aria-hidden="true"></i>
|
|
93
|
+
}
|
|
94
|
+
<span class="frg-side-nav__text">{{ item.label }}</span>
|
|
95
|
+
</a>
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
</li>
|
|
99
|
+
}
|
|
100
|
+
</ul>
|
|
101
|
+
</ng-template>
|
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
@use "./../../../../assets/styles/scss/variables" as *;
|
|
2
|
+
|
|
3
|
+
:host {
|
|
4
|
+
display: block;
|
|
5
|
+
height: 100%;
|
|
6
|
+
min-height: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.frg-side-nav {
|
|
10
|
+
height: 100%;
|
|
11
|
+
position: sticky;
|
|
12
|
+
top: 0;
|
|
13
|
+
max-height: var(--frg-side-nav-max-height, 100vh);
|
|
14
|
+
padding: 1rem;
|
|
15
|
+
overflow-y: auto;
|
|
16
|
+
background: $color-light;
|
|
17
|
+
border-right: 1px solid rgba($color-light-soft, 0.5);
|
|
18
|
+
transition: width 0.2s ease, min-width 0.2s ease, padding 0.2s ease;
|
|
19
|
+
|
|
20
|
+
:host(.frg-side-nav--right) & {
|
|
21
|
+
border-right: none;
|
|
22
|
+
border-left: 1px solid rgba($color-light-soft, 0.5);
|
|
23
|
+
text-align: right;
|
|
24
|
+
|
|
25
|
+
.frg-side-nav__section-title {
|
|
26
|
+
flex-direction: row-reverse;
|
|
27
|
+
justify-content: flex-end;
|
|
28
|
+
text-align: right;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.frg-side-nav__toggle,
|
|
32
|
+
.frg-side-nav__link {
|
|
33
|
+
width: 100%;
|
|
34
|
+
flex-direction: row-reverse;
|
|
35
|
+
justify-content: space-between;
|
|
36
|
+
text-align: right;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.frg-side-nav__label {
|
|
40
|
+
flex: 1;
|
|
41
|
+
justify-content: flex-end;
|
|
42
|
+
text-align: right;
|
|
43
|
+
flex-direction: row-reverse;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.frg-side-nav__link {
|
|
47
|
+
gap: 0.5rem;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.frg-side-nav__item {
|
|
51
|
+
text-align: right;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.frg-side-nav__section,
|
|
55
|
+
.frg-side-nav__list {
|
|
56
|
+
text-align: right;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.frg-side-nav__text {
|
|
60
|
+
text-align: right;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.frg-side-nav__sublist {
|
|
64
|
+
padding-left: 0;
|
|
65
|
+
padding-right: 0.75rem;
|
|
66
|
+
border-left: none;
|
|
67
|
+
border-right: 2px solid $color-light-soft;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&__container {
|
|
72
|
+
height: 100%;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&::-webkit-scrollbar {
|
|
76
|
+
width: 0.2rem;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&::-webkit-scrollbar-track {
|
|
80
|
+
background-color: transparent;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&::-webkit-scrollbar-thumb {
|
|
84
|
+
background-clip: padding-box;
|
|
85
|
+
background-color: $color-light-soft;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
&__section {
|
|
90
|
+
margin-bottom: 1.5rem;
|
|
91
|
+
--frg-side-nav-accent: #{$color-primary};
|
|
92
|
+
--frg-side-nav-accent-light: #{$color-primary-light};
|
|
93
|
+
--frg-side-nav-accent-dark: #{$color-primary-dark};
|
|
94
|
+
--frg-side-nav-active-bg: var(--frg-side-nav-accent);
|
|
95
|
+
--frg-side-nav-active-color: #{$color-light};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&__section--primary {
|
|
99
|
+
--frg-side-nav-accent: #{$color-primary};
|
|
100
|
+
--frg-side-nav-accent-light: #{$color-primary-light};
|
|
101
|
+
--frg-side-nav-accent-dark: #{$color-primary-dark};
|
|
102
|
+
--frg-side-nav-active-bg: #{$color-primary};
|
|
103
|
+
--frg-side-nav-active-color: #{$color-light};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&__section--secondary {
|
|
107
|
+
--frg-side-nav-accent: #{$color-secondary};
|
|
108
|
+
--frg-side-nav-accent-light: #{$color-secondary-light};
|
|
109
|
+
--frg-side-nav-accent-dark: #{$color-secondary-dark};
|
|
110
|
+
--frg-side-nav-active-bg: #{$color-secondary};
|
|
111
|
+
--frg-side-nav-active-color: #{$color-light};
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&__section--tertiary {
|
|
115
|
+
--frg-side-nav-accent: #{$color-tertiary};
|
|
116
|
+
--frg-side-nav-accent-light: #{$color-tertiary-light};
|
|
117
|
+
--frg-side-nav-accent-dark: #{$color-tertiary-dark};
|
|
118
|
+
--frg-side-nav-active-bg: #{$color-tertiary};
|
|
119
|
+
--frg-side-nav-active-color: #{$color-light};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&__section--success {
|
|
123
|
+
--frg-side-nav-accent: #{$color-success};
|
|
124
|
+
--frg-side-nav-accent-light: #{$color-success-light};
|
|
125
|
+
--frg-side-nav-accent-dark: #{$color-success-dark};
|
|
126
|
+
--frg-side-nav-active-bg: #{$color-success};
|
|
127
|
+
--frg-side-nav-active-color: #{$color-light};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&__section--warning {
|
|
131
|
+
--frg-side-nav-accent: #{$color-warning};
|
|
132
|
+
--frg-side-nav-accent-light: #{$color-warning-light};
|
|
133
|
+
--frg-side-nav-accent-dark: #{$color-warning-dark};
|
|
134
|
+
--frg-side-nav-active-bg: #{$color-warning};
|
|
135
|
+
--frg-side-nav-active-color: #{$color-light};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&__section--danger {
|
|
139
|
+
--frg-side-nav-accent: #{$color-danger};
|
|
140
|
+
--frg-side-nav-accent-light: #{$color-danger-light};
|
|
141
|
+
--frg-side-nav-accent-dark: #{$color-danger-dark};
|
|
142
|
+
--frg-side-nav-active-bg: #{$color-danger};
|
|
143
|
+
--frg-side-nav-active-color: #{$color-light};
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&__section--dark {
|
|
147
|
+
--frg-side-nav-accent: #{$color-dark};
|
|
148
|
+
--frg-side-nav-accent-light: #{$color-dark-soft};
|
|
149
|
+
--frg-side-nav-accent-dark: #{$color-dark};
|
|
150
|
+
--frg-side-nav-active-bg: #{$color-dark};
|
|
151
|
+
--frg-side-nav-active-color: #{$color-light};
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&__section--light {
|
|
155
|
+
--frg-side-nav-accent: #{$color-dark-neutral};
|
|
156
|
+
--frg-side-nav-accent-light: #{$color-light-soft};
|
|
157
|
+
--frg-side-nav-accent-dark: #{$color-dark};
|
|
158
|
+
--frg-side-nav-active-bg: #{$color-light};
|
|
159
|
+
--frg-side-nav-active-color: #{$color-dark};
|
|
160
|
+
|
|
161
|
+
.frg-side-nav__section-title {
|
|
162
|
+
color: $color-light;
|
|
163
|
+
border-bottom-color: $color-light;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
&__section-title {
|
|
169
|
+
font-size: $font-size-xs;
|
|
170
|
+
text-transform: uppercase;
|
|
171
|
+
color: var(--frg-side-nav-accent);
|
|
172
|
+
margin-bottom: 0.5rem;
|
|
173
|
+
border-bottom: 1px solid var(--frg-side-nav-accent);
|
|
174
|
+
display: flex;
|
|
175
|
+
align-items: center;
|
|
176
|
+
gap: 0.4rem;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
&__list {
|
|
180
|
+
list-style: none;
|
|
181
|
+
padding: 0;
|
|
182
|
+
margin: 0;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
&__item {
|
|
186
|
+
margin: 0.25rem 0;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
&__toggle {
|
|
190
|
+
display: flex;
|
|
191
|
+
align-items: center;
|
|
192
|
+
justify-content: space-between;
|
|
193
|
+
width: 100%;
|
|
194
|
+
border: none;
|
|
195
|
+
background: none;
|
|
196
|
+
padding: 0.35rem 0.5rem;
|
|
197
|
+
border-radius: 4px;
|
|
198
|
+
color: $color-dark-neutral;
|
|
199
|
+
cursor: pointer;
|
|
200
|
+
transition: background 0.15s, color 0.15s;
|
|
201
|
+
text-align: left;
|
|
202
|
+
|
|
203
|
+
&:hover {
|
|
204
|
+
background: $color-light-soft;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
&__label {
|
|
209
|
+
display: flex;
|
|
210
|
+
align-items: center;
|
|
211
|
+
gap: 0.5rem;
|
|
212
|
+
flex: 1;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&__text {
|
|
216
|
+
flex: 1;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
&__chevron {
|
|
220
|
+
width: 0.6rem;
|
|
221
|
+
height: 0.6rem;
|
|
222
|
+
border-right: 2px solid currentColor;
|
|
223
|
+
border-bottom: 2px solid currentColor;
|
|
224
|
+
transform: rotate(45deg);
|
|
225
|
+
transition: transform 0.2s ease;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
&__item--expanded {
|
|
229
|
+
> .frg-side-nav__toggle .frg-side-nav__chevron {
|
|
230
|
+
transform: rotate(225deg);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&__link {
|
|
235
|
+
display: flex;
|
|
236
|
+
align-items: center;
|
|
237
|
+
gap: 0.5rem;
|
|
238
|
+
padding: 0.35rem 0.5rem;
|
|
239
|
+
border-radius: 4px;
|
|
240
|
+
text-decoration: none;
|
|
241
|
+
color: $color-dark-neutral;
|
|
242
|
+
transition: background 0.15s, color 0.15s;
|
|
243
|
+
|
|
244
|
+
&:hover {
|
|
245
|
+
background: $color-light-soft;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
&__link.active {
|
|
250
|
+
background: var(--frg-side-nav-active-bg);
|
|
251
|
+
color: var(--frg-side-nav-active-color);
|
|
252
|
+
box-shadow: $box-shadow-light-sm;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
&__link.active:hover {
|
|
256
|
+
background: var(--frg-side-nav-accent);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
&__sublist {
|
|
260
|
+
list-style: none;
|
|
261
|
+
padding-left: 0.75rem;
|
|
262
|
+
margin: 0.35rem 0 0.25rem;
|
|
263
|
+
border-left: 2px solid $color-light-soft;
|
|
264
|
+
display: none;
|
|
265
|
+
.frg-side-nav__item {
|
|
266
|
+
margin: 0.15rem 0;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.frg-side-nav__link {
|
|
270
|
+
font-size: $font-size-sm;
|
|
271
|
+
padding: 0.3rem 0.5rem;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
&__icon {
|
|
276
|
+
font-size: 0.85rem;
|
|
277
|
+
color: inherit;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
&__sublist--open {
|
|
281
|
+
display: block;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
@media (max-width: $screen-md-min) {
|
|
287
|
+
.frg-side-nav {
|
|
288
|
+
width: 100%;
|
|
289
|
+
min-width: 100%;
|
|
290
|
+
height: auto;
|
|
291
|
+
position: relative;
|
|
292
|
+
border-right: none;
|
|
293
|
+
border-bottom: 1px solid $color-light-soft;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Component, Input } from "@angular/core";
|
|
2
|
+
import { ISideNavConfig, ISideNavItem } from "./side-nav.type";
|
|
3
|
+
import { NgClass, NgTemplateOutlet } from "@angular/common";
|
|
4
|
+
import { RouterLink, RouterLinkActive } from "@angular/router";
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: "frg-side-nav",
|
|
8
|
+
templateUrl: "./side-nav.component.html",
|
|
9
|
+
styleUrls: ["./side-nav.component.scss"],
|
|
10
|
+
imports: [NgTemplateOutlet, NgClass, RouterLink, RouterLinkActive]
|
|
11
|
+
})
|
|
12
|
+
export class SideNavComponent {
|
|
13
|
+
@Input() config: ISideNavConfig = {};
|
|
14
|
+
|
|
15
|
+
public toggleItem(item: ISideNavItem): void {
|
|
16
|
+
item.expanded = !item.expanded;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export type TBaseSideNavStyle = 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger' | 'dark' | 'light';
|
|
2
|
+
export type TBaseSideNavSize = 'small' | 'medium' | 'large';
|
|
3
|
+
export type TSideNavLink =
|
|
4
|
+
| { kind: "route"; value: string; exact?: boolean }
|
|
5
|
+
| { kind: "href"; value: string; target?: "_blank" | "_self" | "_parent" | "_top" };
|
|
6
|
+
|
|
7
|
+
export interface ISideNavConfig {
|
|
8
|
+
title?: string;
|
|
9
|
+
sections?: Array<ISideNavSection>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface ISideNavSection {
|
|
13
|
+
id?: string;
|
|
14
|
+
title?: string;
|
|
15
|
+
icon?: string;
|
|
16
|
+
items?: Array<ISideNavItem>;
|
|
17
|
+
styleType?: TBaseSideNavStyle;
|
|
18
|
+
size?: TBaseSideNavSize;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface ISideNavItem {
|
|
22
|
+
id?: string;
|
|
23
|
+
label: string;
|
|
24
|
+
link?: TSideNavLink;
|
|
25
|
+
icon?: string;
|
|
26
|
+
children?: Array<ISideNavItem>;
|
|
27
|
+
expanded?: boolean;
|
|
28
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
@if (open) {
|
|
2
|
+
<div
|
|
3
|
+
class="frg-snackbar"
|
|
4
|
+
[ngClass]="snackbarClassMap"
|
|
5
|
+
role="status"
|
|
6
|
+
aria-live="polite"
|
|
7
|
+
[attr.aria-label]="ariaLabel"
|
|
8
|
+
>
|
|
9
|
+
<div class="frg-snackbar__accent"></div>
|
|
10
|
+
@if (statusIconClass) {
|
|
11
|
+
<span class="frg-snackbar__status-icon" [ngClass]="statusIconClass" aria-hidden="true"></span>
|
|
12
|
+
}
|
|
13
|
+
<div class="frg-snackbar__message">
|
|
14
|
+
{{ message }}
|
|
15
|
+
<ng-content></ng-content>
|
|
16
|
+
</div>
|
|
17
|
+
@if (actionLabel) {
|
|
18
|
+
<button type="button" class="frg-snackbar__action" (click)="onActionClick()">
|
|
19
|
+
{{ actionLabel }}
|
|
20
|
+
</button>
|
|
21
|
+
}
|
|
22
|
+
@if (hasCloseButton) {
|
|
23
|
+
<button
|
|
24
|
+
type="button"
|
|
25
|
+
class="frg-snackbar__close"
|
|
26
|
+
aria-label="Close notification"
|
|
27
|
+
(click)="onCloseClick()"
|
|
28
|
+
>
|
|
29
|
+
×
|
|
30
|
+
</button>
|
|
31
|
+
}
|
|
32
|
+
</div>
|
|
33
|
+
}
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
@use '../../../../assets/styles/scss/variables' as *;
|
|
3
|
+
|
|
4
|
+
:host {
|
|
5
|
+
display: block;
|
|
6
|
+
|
|
7
|
+
.frg-snackbar {
|
|
8
|
+
position: fixed;
|
|
9
|
+
display: grid;
|
|
10
|
+
grid-template-columns: 0.35rem auto 1fr auto auto;
|
|
11
|
+
gap: 0.75rem;
|
|
12
|
+
align-items: center;
|
|
13
|
+
padding: 0.5rem 1rem;
|
|
14
|
+
background: var(--frg-snackbar-bg, $color-light);
|
|
15
|
+
color: var(--frg-snackbar-text, $color-dark);
|
|
16
|
+
border-radius: 0.25rem;
|
|
17
|
+
border: 1px solid var(--frg-snackbar-border, rgba($color-dark, 0.1));
|
|
18
|
+
box-shadow: $box-shadow-md;
|
|
19
|
+
min-width: 18rem;
|
|
20
|
+
max-width: 28rem;
|
|
21
|
+
z-index: 1100;
|
|
22
|
+
|
|
23
|
+
&--size-small {
|
|
24
|
+
padding: 0.25rem 0.8rem;
|
|
25
|
+
min-width: 16rem;
|
|
26
|
+
max-width: 24rem;
|
|
27
|
+
.frg-snackbar__message {
|
|
28
|
+
font-size: 0.8rem;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&--size-medium {
|
|
33
|
+
padding: 0.5rem 1rem;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&--size-large {
|
|
37
|
+
padding: 0.75rem 1.2rem;
|
|
38
|
+
min-width: 20rem;
|
|
39
|
+
max-width: 32rem;
|
|
40
|
+
.frg-snackbar__message {
|
|
41
|
+
font-size: 0.9rem;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&__accent {
|
|
46
|
+
width: 0.35rem;
|
|
47
|
+
border-radius: 0.35rem;
|
|
48
|
+
background: var(--frg-snackbar-accent, $color-primary);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&__message {
|
|
52
|
+
font-size: 0.85rem;
|
|
53
|
+
color: var(--frg-snackbar-message, $color-dark-neutral);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&__status-icon {
|
|
57
|
+
color: var(--frg-snackbar-accent, $color-primary);
|
|
58
|
+
font-size: 1rem;
|
|
59
|
+
line-height: 1;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&__action {
|
|
63
|
+
border: 0;
|
|
64
|
+
background: transparent;
|
|
65
|
+
color: var(--frg-snackbar-action, var(--frg-snackbar-accent, $color-primary));
|
|
66
|
+
font-weight: 600;
|
|
67
|
+
font-size: 0.75rem;
|
|
68
|
+
text-transform: uppercase;
|
|
69
|
+
letter-spacing: 0.04em;
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&__action:hover,
|
|
74
|
+
&__action:focus-visible {
|
|
75
|
+
color: $color-dark;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&__close {
|
|
79
|
+
border: 0;
|
|
80
|
+
background: transparent;
|
|
81
|
+
color: var(--frg-snackbar-text, $color-dark-soft);
|
|
82
|
+
font-size: 1.1rem;
|
|
83
|
+
line-height: 1;
|
|
84
|
+
cursor: pointer;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&__close:hover,
|
|
88
|
+
&__close:focus-visible {
|
|
89
|
+
color: var(--frg-snackbar-text, $color-dark);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.frg-snackbar--top-left {
|
|
94
|
+
top: 1.5rem;
|
|
95
|
+
left: 1.5rem;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.frg-snackbar--top-center {
|
|
99
|
+
top: 1.5rem;
|
|
100
|
+
left: 50%;
|
|
101
|
+
transform: translateX(-50%);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.frg-snackbar--top-right {
|
|
105
|
+
top: 1.5rem;
|
|
106
|
+
right: 1.5rem;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.frg-snackbar--bottom-left {
|
|
110
|
+
bottom: 1.5rem;
|
|
111
|
+
left: 1.5rem;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.frg-snackbar--bottom-center {
|
|
115
|
+
bottom: 1.5rem;
|
|
116
|
+
left: 50%;
|
|
117
|
+
transform: translateX(-50%);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.frg-snackbar--bottom-right {
|
|
121
|
+
bottom: 1.5rem;
|
|
122
|
+
right: 1.5rem;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.frg-snackbar--default {
|
|
126
|
+
--frg-snackbar-accent: #{$color-dark-neutral};
|
|
127
|
+
--frg-snackbar-bg: #{$color-neutral};
|
|
128
|
+
--frg-snackbar-text: #{$color-dark};
|
|
129
|
+
--frg-snackbar-message: #{$color-dark-neutral};
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.frg-snackbar--primary {
|
|
133
|
+
--frg-snackbar-accent: #{$color-primary};
|
|
134
|
+
--frg-snackbar-bg: #{color.scale($color-primary-light, $lightness: 50%)};
|
|
135
|
+
--frg-snackbar-text: #{color.scale($color-primary-dark, $lightness: -25%)};
|
|
136
|
+
--frg-snackbar-message: #{color.scale($color-primary-dark, $lightness: -25%)};
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.frg-snackbar--secondary {
|
|
140
|
+
--frg-snackbar-accent: #{$color-secondary};
|
|
141
|
+
--frg-snackbar-bg: #{color.scale($color-secondary-light, $lightness: 50%)};
|
|
142
|
+
--frg-snackbar-text: #{color.scale($color-secondary-dark, $lightness: -25%)};
|
|
143
|
+
--frg-snackbar-message: #{color.scale($color-secondary-dark, $lightness: -25%)};
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.frg-snackbar--tertiary {
|
|
147
|
+
--frg-snackbar-accent: #{$color-tertiary};
|
|
148
|
+
--frg-snackbar-bg: #{color.scale($color-tertiary-light, $lightness: 50%)};
|
|
149
|
+
--frg-snackbar-text: #{color.scale($color-tertiary-dark, $lightness: -25%)};
|
|
150
|
+
--frg-snackbar-message: #{color.scale($color-tertiary-dark, $lightness: -25%)};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.frg-snackbar--info {
|
|
154
|
+
--frg-snackbar-accent: #{$color-info};
|
|
155
|
+
--frg-snackbar-bg: #{color.scale($color-info-light, $lightness: 60%)};
|
|
156
|
+
--frg-snackbar-text: #{$color-dark};
|
|
157
|
+
--frg-snackbar-message: #{$color-dark-neutral};
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.frg-snackbar--success {
|
|
161
|
+
--frg-snackbar-accent: #{$color-success};
|
|
162
|
+
--frg-snackbar-bg: #{color.scale($color-success-light, $lightness: 60%)};
|
|
163
|
+
--frg-snackbar-text: #{$color-dark};
|
|
164
|
+
--frg-snackbar-message: #{$color-dark-neutral};
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.frg-snackbar--warning {
|
|
168
|
+
--frg-snackbar-accent: #{$color-warning};
|
|
169
|
+
--frg-snackbar-bg: #{color.scale($color-warning-light, $lightness: 60%)};
|
|
170
|
+
--frg-snackbar-text: #{$color-dark};
|
|
171
|
+
--frg-snackbar-message: #{$color-dark-neutral};
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.frg-snackbar--danger {
|
|
175
|
+
--frg-snackbar-accent: #{$color-danger};
|
|
176
|
+
--frg-snackbar-bg: #{color.scale($color-danger-light, $lightness: 60%)};
|
|
177
|
+
--frg-snackbar-text: #{$color-dark};
|
|
178
|
+
--frg-snackbar-message: #{$color-dark-neutral};
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.frg-snackbar--dark {
|
|
182
|
+
--frg-snackbar-accent: #{$color-dark};
|
|
183
|
+
--frg-snackbar-bg: #{$color-dark};
|
|
184
|
+
--frg-snackbar-text: #{$color-light};
|
|
185
|
+
--frg-snackbar-message: #{color.scale($color-light, $lightness: -15%)};
|
|
186
|
+
--frg-snackbar-action: #{$color-light};
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.frg-snackbar--light {
|
|
190
|
+
--frg-snackbar-accent: #{$color-light-neutral};
|
|
191
|
+
--frg-snackbar-bg: #{$color-light};
|
|
192
|
+
--frg-snackbar-text: #{$color-dark};
|
|
193
|
+
--frg-snackbar-message: #{$color-dark-neutral};
|
|
194
|
+
}
|
|
195
|
+
}
|