@tacdaed/fragments 1.0.0-beta.1 → 1.0.0-beta.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 +4 -20
- package/fesm2022/tacdaed-fragments.mjs +8928 -0
- package/fesm2022/tacdaed-fragments.mjs.map +1 -0
- package/index.d.ts +3929 -0
- package/package.json +29 -22
- package/ng-package.json +0 -25
- package/src/lib/components/accordion/accordion.component.html +0 -103
- package/src/lib/components/accordion/accordion.component.scss +0 -382
- package/src/lib/components/accordion/accordion.component.spec.ts +0 -147
- package/src/lib/components/accordion/accordion.component.ts +0 -211
- package/src/lib/components/accordion/accordion.type.ts +0 -82
- package/src/lib/components/breadcrumb/breadcrumb.component.html +0 -43
- package/src/lib/components/breadcrumb/breadcrumb.component.scss +0 -112
- package/src/lib/components/breadcrumb/breadcrumb.component.spec.ts +0 -33
- package/src/lib/components/breadcrumb/breadcrumb.component.ts +0 -103
- package/src/lib/components/breadcrumb/breadcrumb.interface.ts +0 -7
- package/src/lib/components/button/button.component.html +0 -57
- package/src/lib/components/button/button.component.scss +0 -445
- package/src/lib/components/button/button.component.spec.ts +0 -99
- package/src/lib/components/button/button.component.ts +0 -143
- package/src/lib/components/button/button.type.ts +0 -7
- package/src/lib/components/card/card.component.html +0 -44
- package/src/lib/components/card/card.component.scss +0 -114
- package/src/lib/components/card/card.component.spec.ts +0 -65
- package/src/lib/components/card/card.component.ts +0 -21
- package/src/lib/components/card/card.type.ts +0 -3
- package/src/lib/components/code-block/code-block.component.html +0 -55
- package/src/lib/components/code-block/code-block.component.scss +0 -122
- package/src/lib/components/code-block/code-block.component.spec.ts +0 -81
- package/src/lib/components/code-block/code-block.component.ts +0 -302
- package/src/lib/components/code-block/code-block.interface.ts +0 -28
- package/src/lib/components/code-block/code-block.type.ts +0 -73
- package/src/lib/components/decorative/sparkle-field/sparkle-field.component.html +0 -14
- package/src/lib/components/decorative/sparkle-field/sparkle-field.component.scss +0 -20
- package/src/lib/components/decorative/sparkle-field/sparkle-field.component.spec.ts +0 -38
- package/src/lib/components/decorative/sparkle-field/sparkle-field.component.ts +0 -181
- package/src/lib/components/input/input-base.ts +0 -187
- package/src/lib/components/input/input-calendar/input-calendar.component.html +0 -76
- package/src/lib/components/input/input-calendar/input-calendar.component.scss +0 -179
- package/src/lib/components/input/input-calendar/input-calendar.component.spec.ts +0 -44
- package/src/lib/components/input/input-calendar/input-calendar.component.ts +0 -299
- package/src/lib/components/input/input-checkbox/input-checkbox.component.html +0 -37
- package/src/lib/components/input/input-checkbox/input-checkbox.component.scss +0 -128
- package/src/lib/components/input/input-checkbox/input-checkbox.component.spec.ts +0 -43
- package/src/lib/components/input/input-checkbox/input-checkbox.component.ts +0 -112
- package/src/lib/components/input/input-checkbox-group/input-checkbox-group.component.html +0 -43
- package/src/lib/components/input/input-checkbox-group/input-checkbox-group.component.scss +0 -140
- package/src/lib/components/input/input-checkbox-group/input-checkbox-group.component.spec.ts +0 -62
- package/src/lib/components/input/input-checkbox-group/input-checkbox-group.component.ts +0 -136
- package/src/lib/components/input/input-clock-picker/input-clock-picker.component.html +0 -81
- package/src/lib/components/input/input-clock-picker/input-clock-picker.component.scss +0 -228
- package/src/lib/components/input/input-clock-picker/input-clock-picker.component.spec.ts +0 -62
- package/src/lib/components/input/input-clock-picker/input-clock-picker.component.ts +0 -178
- package/src/lib/components/input/input-consts.ts +0 -132
- package/src/lib/components/input/input-date/input-date-validators.ts +0 -41
- package/src/lib/components/input/input-date/input-date.component.html +0 -41
- package/src/lib/components/input/input-date/input-date.component.scss +0 -95
- package/src/lib/components/input/input-date/input-date.component.spec.ts +0 -43
- package/src/lib/components/input/input-date/input-date.component.ts +0 -359
- package/src/lib/components/input/input-date-time/input-date-time.component.html +0 -70
- package/src/lib/components/input/input-date-time/input-date-time.component.scss +0 -133
- package/src/lib/components/input/input-date-time/input-date-time.component.spec.ts +0 -36
- package/src/lib/components/input/input-date-time/input-date-time.component.ts +0 -387
- package/src/lib/components/input/input-file-upload/input-file-upload.component.html +0 -89
- package/src/lib/components/input/input-file-upload/input-file-upload.component.scss +0 -171
- package/src/lib/components/input/input-file-upload/input-file-upload.component.spec.ts +0 -43
- package/src/lib/components/input/input-file-upload/input-file-upload.component.ts +0 -351
- package/src/lib/components/input/input-interface.ts +0 -8
- package/src/lib/components/input/input-number/input-number-validators.ts +0 -0
- package/src/lib/components/input/input-number/input-number.component.html +0 -51
- package/src/lib/components/input/input-number/input-number.component.scss +0 -140
- package/src/lib/components/input/input-number/input-number.component.spec.ts +0 -44
- package/src/lib/components/input/input-number/input-number.component.ts +0 -343
- package/src/lib/components/input/input-radio-group/input-radio-group.component.html +0 -44
- package/src/lib/components/input/input-radio-group/input-radio-group.component.scss +0 -139
- package/src/lib/components/input/input-radio-group/input-radio-group.component.spec.ts +0 -58
- package/src/lib/components/input/input-radio-group/input-radio-group.component.ts +0 -132
- package/src/lib/components/input/input-slider/input-slider.component.html +0 -111
- package/src/lib/components/input/input-slider/input-slider.component.scss +0 -203
- package/src/lib/components/input/input-slider/input-slider.component.spec.ts +0 -46
- package/src/lib/components/input/input-slider/input-slider.component.ts +0 -410
- package/src/lib/components/input/input-text/input-text-validators.ts +0 -67
- package/src/lib/components/input/input-text/input-text.component.html +0 -71
- package/src/lib/components/input/input-text/input-text.component.scss +0 -118
- package/src/lib/components/input/input-text/input-text.component.spec.ts +0 -55
- package/src/lib/components/input/input-text/input-text.component.ts +0 -215
- package/src/lib/components/input/input-time/input-time-validators.ts +0 -42
- package/src/lib/components/input/input-time/input-time.component.html +0 -92
- package/src/lib/components/input/input-time/input-time.component.scss +0 -191
- package/src/lib/components/input/input-time/input-time.component.spec.ts +0 -39
- package/src/lib/components/input/input-time/input-time.component.ts +0 -691
- package/src/lib/components/input/input-toggle-switch/input-toggle-switch.component.html +0 -36
- package/src/lib/components/input/input-toggle-switch/input-toggle-switch.component.scss +0 -121
- package/src/lib/components/input/input-toggle-switch/input-toggle-switch.component.spec.ts +0 -54
- package/src/lib/components/input/input-toggle-switch/input-toggle-switch.component.ts +0 -117
- package/src/lib/components/input/input-type.ts +0 -18
- package/src/lib/components/input/input-validation/input-validation.component.html +0 -19
- package/src/lib/components/input/input-validation/input-validation.component.scss +0 -39
- package/src/lib/components/input/input-validation/input-validation.component.spec.ts +0 -45
- package/src/lib/components/input/input-validation/input-validation.component.ts +0 -13
- package/src/lib/components/input/input.pipe.ts +0 -14
- package/src/lib/components/layout/container/container.component.html +0 -1
- package/src/lib/components/layout/container/container.component.scss +0 -33
- package/src/lib/components/layout/container/container.component.ts +0 -32
- package/src/lib/components/layout/container/container.type.ts +0 -1
- package/src/lib/components/layout/divider/divider.component.html +0 -1
- package/src/lib/components/layout/divider/divider.component.scss +0 -60
- package/src/lib/components/layout/divider/divider.component.ts +0 -38
- package/src/lib/components/layout/divider/divider.type.ts +0 -2
- package/src/lib/components/layout/section/section.component.html +0 -21
- package/src/lib/components/layout/section/section.component.scss +0 -43
- package/src/lib/components/layout/section/section.component.ts +0 -33
- package/src/lib/components/layout/section/section.type.ts +0 -2
- package/src/lib/components/layout/separator/separator.component.html +0 -9
- package/src/lib/components/layout/separator/separator.component.scss +0 -52
- package/src/lib/components/layout/separator/separator.component.ts +0 -25
- package/src/lib/components/layout/separator/separator.type.ts +0 -1
- package/src/lib/components/loader/content-blur/content-blur.component.html +0 -13
- package/src/lib/components/loader/content-blur/content-blur.component.scss +0 -43
- package/src/lib/components/loader/content-blur/content-blur.component.spec.ts +0 -42
- package/src/lib/components/loader/content-blur/content-blur.component.ts +0 -34
- package/src/lib/components/loader/loader.type.ts +0 -2
- package/src/lib/components/loader/progress-bar/progress-bar.component.html +0 -26
- package/src/lib/components/loader/progress-bar/progress-bar.component.scss +0 -151
- package/src/lib/components/loader/progress-bar/progress-bar.component.spec.ts +0 -47
- package/src/lib/components/loader/progress-bar/progress-bar.component.ts +0 -28
- package/src/lib/components/loader/progress-bar/progress-bar.type.ts +0 -8
- package/src/lib/components/loader/pulse-loader/pulse-loader.component.html +0 -12
- package/src/lib/components/loader/pulse-loader/pulse-loader.component.scss +0 -202
- package/src/lib/components/loader/pulse-loader/pulse-loader.component.spec.ts +0 -55
- package/src/lib/components/loader/pulse-loader/pulse-loader.component.ts +0 -73
- package/src/lib/components/loader/pulse-loader/pulse-loader.type.ts +0 -6
- package/src/lib/components/loader/skeleton-loader/skeleton-loader.component.html +0 -13
- package/src/lib/components/loader/skeleton-loader/skeleton-loader.component.scss +0 -113
- package/src/lib/components/loader/skeleton-loader/skeleton-loader.component.spec.ts +0 -37
- package/src/lib/components/loader/skeleton-loader/skeleton-loader.component.ts +0 -51
- package/src/lib/components/loader/skeleton-loader/skeleton-loader.type.ts +0 -6
- package/src/lib/components/loader/spinner/spinner.component.html +0 -20
- package/src/lib/components/loader/spinner/spinner.component.scss +0 -137
- package/src/lib/components/loader/spinner/spinner.component.spec.ts +0 -43
- package/src/lib/components/loader/spinner/spinner.component.ts +0 -32
- package/src/lib/components/loader/spinner/spinner.type.ts +0 -6
- package/src/lib/components/modal/modal.component.html +0 -47
- package/src/lib/components/modal/modal.component.scss +0 -139
- package/src/lib/components/modal/modal.component.spec.ts +0 -60
- package/src/lib/components/modal/modal.component.ts +0 -83
- package/src/lib/components/modal/modal.type.ts +0 -9
- package/src/lib/components/morph/blob-moph/blob-moprh.component.spec.ts +0 -79
- package/src/lib/components/morph/blob-moph/blob-moprh.component.ts +0 -96
- package/src/lib/components/morph/blob-moph/blob-morph.component.html +0 -34
- package/src/lib/components/morph/blob-moph/blob-morph.component.scss +0 -7
- package/src/lib/components/morph/morph.abstract.ts +0 -13
- package/src/lib/components/pagination/pagination.interface.ts +0 -4
- package/src/lib/components/pagination/small-pagination/small-pagination.component.html +0 -61
- package/src/lib/components/pagination/small-pagination/small-pagination.component.scss +0 -187
- package/src/lib/components/pagination/small-pagination/small-pagination.component.spec.ts +0 -88
- package/src/lib/components/pagination/small-pagination/small-pagination.component.ts +0 -177
- package/src/lib/components/selection-lists/multi-select/multi-select.component.html +0 -170
- package/src/lib/components/selection-lists/multi-select/multi-select.component.scss +0 -312
- package/src/lib/components/selection-lists/multi-select/multi-select.component.spec.ts +0 -61
- package/src/lib/components/selection-lists/multi-select/multi-select.component.ts +0 -372
- package/src/lib/components/selection-lists/selection-list/selection-list.component.html +0 -125
- package/src/lib/components/selection-lists/selection-list/selection-list.component.scss +0 -267
- package/src/lib/components/selection-lists/selection-list/selection-list.component.spec.ts +0 -66
- package/src/lib/components/selection-lists/selection-list/selection-list.component.ts +0 -315
- package/src/lib/components/selection-lists/selection-lists-base.ts +0 -35
- package/src/lib/components/selection-lists/selection-lists-const.ts +0 -17
- package/src/lib/components/selection-lists/selection-lists-interface.ts +0 -7
- package/src/lib/components/selection-lists/selection-lists.type.ts +0 -1
- package/src/lib/components/side-nav/side-nav.component.html +0 -101
- package/src/lib/components/side-nav/side-nav.component.scss +0 -295
- package/src/lib/components/side-nav/side-nav.component.spec.ts +0 -0
- package/src/lib/components/side-nav/side-nav.component.ts +0 -18
- package/src/lib/components/side-nav/side-nav.type.ts +0 -28
- package/src/lib/components/snackbar/snackbar.component.html +0 -33
- package/src/lib/components/snackbar/snackbar.component.scss +0 -195
- package/src/lib/components/snackbar/snackbar.component.ts +0 -112
- package/src/lib/components/snackbar/snackbar.type.ts +0 -27
- package/src/lib/components/status/chip/chip.component.html +0 -51
- package/src/lib/components/status/chip/chip.component.scss +0 -149
- package/src/lib/components/status/chip/chip.component.spec.ts +0 -62
- package/src/lib/components/status/chip/chip.component.ts +0 -83
- package/src/lib/components/status/chip/chip.type.ts +0 -42
- package/src/lib/components/status/directives/badge/badge.directive.spec.ts +0 -60
- package/src/lib/components/status/directives/badge/badge.directive.ts +0 -190
- package/src/lib/components/status/directives/badge/badge.interface.ts +0 -19
- package/src/lib/components/status/pill/pill.component.html +0 -40
- package/src/lib/components/status/pill/pill.component.scss +0 -113
- package/src/lib/components/status/pill/pill.component.spec.ts +0 -47
- package/src/lib/components/status/pill/pill.component.ts +0 -83
- package/src/lib/components/status/pill/pill.type.ts +0 -42
- package/src/lib/components/status/status.interface.ts +0 -57
- package/src/lib/components/status/status.type.ts +0 -62
- package/src/lib/components/status/tag/tag.component.html +0 -39
- package/src/lib/components/status/tag/tag.component.scss +0 -140
- package/src/lib/components/status/tag/tag.component.spec.ts +0 -47
- package/src/lib/components/status/tag/tag.component.ts +0 -83
- package/src/lib/components/status/tag/tag.type.ts +0 -42
- package/src/lib/components/stepper/stepper.component.html +0 -83
- package/src/lib/components/stepper/stepper.component.scss +0 -196
- package/src/lib/components/stepper/stepper.component.ts +0 -482
- package/src/lib/components/stepper/stepper.type.ts +0 -60
- package/src/lib/components/table/table.component.html +0 -438
- package/src/lib/components/table/table.component.scss +0 -259
- package/src/lib/components/table/table.component.spec.ts +0 -117
- package/src/lib/components/table/table.component.ts +0 -215
- package/src/lib/components/table/table.enum.ts +0 -4
- package/src/lib/components/table/table.function.ts +0 -47
- package/src/lib/components/table/table.interface.ts +0 -143
- package/src/lib/components/table/table.pipe.ts +0 -62
- package/src/lib/components/table/table.type.ts +0 -15
- package/src/lib/components/tabs/tabs.component.html +0 -88
- package/src/lib/components/tabs/tabs.component.scss +0 -305
- package/src/lib/components/tabs/tabs.component.spec.ts +0 -94
- package/src/lib/components/tabs/tabs.component.ts +0 -282
- package/src/lib/components/tabs/tabs.type.ts +0 -81
- package/src/lib/components/title-bar/title-bar.component.html +0 -21
- package/src/lib/components/title-bar/title-bar.component.scss +0 -139
- package/src/lib/components/title-bar/title-bar.component.spec.ts +0 -44
- package/src/lib/components/title-bar/title-bar.component.ts +0 -13
- package/src/lib/components/toast/toast.component.html +0 -36
- package/src/lib/components/toast/toast.component.scss +0 -241
- package/src/lib/components/toast/toast.component.ts +0 -165
- package/src/lib/components/toast/toast.type.ts +0 -37
- package/src/lib/components/toast-stack/toast-stack.component.html +0 -30
- package/src/lib/components/toast-stack/toast-stack.component.scss +0 -35
- package/src/lib/components/toast-stack/toast-stack.component.ts +0 -51
- package/src/lib/consts/country-prefix.ts +0 -244
- package/src/lib/directives/tooltip/popover.directive.ts +0 -274
- package/src/lib/directives/tooltip/tooltip.directive.spec.ts +0 -86
- package/src/lib/directives/tooltip/tooltip.directive.ts +0 -234
- package/src/lib/directives/tooltip/tooltip.interface.ts +0 -29
- package/src/lib/directives/tooltip/tooltip.type.ts +0 -9
- package/src/lib/interfaces/common.interfaces.ts +0 -4
- package/src/lib/pipes/chunk.pipe.ts +0 -16
- package/src/lib/pipes/safe-html.pipe.ts +0 -14
- package/src/lib/pipes/sanitize-html.pipe.ts +0 -23
- package/src/lib/types/base.types.ts +0 -23
- package/src/lib/types/common.types.ts +0 -98
- package/src/lib/types/form.types.ts +0 -5
- package/src/lib/utils/common.utils.ts +0 -53
- package/src/lib/utils/date.utils.ts +0 -474
- package/src/lib/utils/number.utils.ts +0 -16
- package/src/lib/utils/uuid.utils.ts +0 -39
- package/src/public-api.ts +0 -114
- package/tsconfig.lib.json +0 -17
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -9
|
@@ -1,101 +0,0 @@
|
|
|
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>
|
|
@@ -1,295 +0,0 @@
|
|
|
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
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,195 +0,0 @@
|
|
|
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
|
-
}
|