asksuite-citrus 3.15.0 → 3.15.2
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/esm2022/lib/components/accordion/extendable-panel/extendable-panel.component.mjs +2 -2
- package/esm2022/lib/components/arrow-tag/arrow-tag.component.mjs +2 -2
- package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +2 -2
- package/esm2022/lib/components/avatar/avatar.component.mjs +2 -2
- package/esm2022/lib/components/box/box.component.mjs +2 -2
- package/esm2022/lib/components/button/button.component.mjs +2 -2
- package/esm2022/lib/components/character-counter/character-counter.component.mjs +2 -2
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +2 -2
- package/esm2022/lib/components/chips/chips.component.mjs +2 -2
- package/esm2022/lib/components/date-picker/date-picker-calendar/date-picker-calendar.component.mjs +2 -2
- package/esm2022/lib/components/date-picker/date-picker.component.mjs +2 -2
- package/esm2022/lib/components/dropdown-container/dropdown-container.component.mjs +2 -2
- package/esm2022/lib/components/input/input.component.mjs +2 -2
- package/esm2022/lib/components/modal/confirmation-modal/confirmation-modal.component.mjs +2 -2
- package/esm2022/lib/components/modal/modal.component.mjs +2 -2
- package/esm2022/lib/components/pagination/pagination.component.mjs +2 -2
- package/esm2022/lib/components/phone-ddi/phone-ddi.component.mjs +2 -2
- package/esm2022/lib/components/richtext-toolbox/richtext-toolbox.component.mjs +2 -2
- package/esm2022/lib/components/richtext-url-prompt/richtext-url-prompt.component.mjs +2 -2
- package/esm2022/lib/components/select/select.component.mjs +2 -2
- package/esm2022/lib/components/tab-group/tab/tab.component.mjs +2 -2
- package/esm2022/lib/components/tab-group/tab-group.component.mjs +2 -2
- package/esm2022/lib/components/table/table.component.mjs +2 -2
- package/esm2022/lib/components/toast/toast.component.mjs +2 -2
- package/esm2022/lib/services/theme/theme.service.mjs +12 -7
- package/fesm2022/asksuite-citrus.mjs +58 -54
- package/fesm2022/asksuite-citrus.mjs.map +1 -1
- package/lib/services/theme/theme.service.d.ts +8 -4
- package/package.json +1 -1
- package/styles/colors-light.scss +15 -1
@@ -1,13 +1,17 @@
|
|
1
1
|
import { StorageUtilService } from "../storage/storage-util.service";
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
2
3
|
import * as i0 from "@angular/core";
|
4
|
+
type Theme = 'dark' | 'light';
|
3
5
|
export declare class ThemeService {
|
4
6
|
private readonly storageUtilService;
|
5
|
-
theme: 'dark' | 'light';
|
6
7
|
themeKey: string;
|
7
|
-
|
8
|
-
|
9
|
-
|
8
|
+
theme$: BehaviorSubject<Theme>;
|
9
|
+
constructor(storageUtilService: StorageUtilService<Theme>);
|
10
|
+
getTheme(): Theme;
|
11
|
+
setTheme(theme: Theme): void;
|
12
|
+
listenThemeChange(): import("rxjs").Observable<Theme>;
|
10
13
|
private saveTheme;
|
11
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
|
12
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
|
13
16
|
}
|
17
|
+
export {};
|
package/package.json
CHANGED
package/styles/colors-light.scss
CHANGED
@@ -591,6 +591,9 @@ $color-skeleton: $color-nla-200;
|
|
591
591
|
$color-text-link-default: $color-b-500;
|
592
592
|
$color-texticon-inverse-default: $color-nl-0;
|
593
593
|
$color-texticon-danger: $color-r-600;
|
594
|
+
$color-border-white-default: $color-nl-0;
|
595
|
+
$color-background-accent-disabled: $color-nl-400;
|
596
|
+
$color-border-white-disabled: $color-nda-1000;
|
594
597
|
|
595
598
|
@mixin theme {
|
596
599
|
// brand
|
@@ -687,6 +690,9 @@ $color-texticon-danger: $color-r-600;
|
|
687
690
|
--color-text-contrast: #{$color-text-contrast};
|
688
691
|
--color-text-subtlest: #{$color-text-subtlest};
|
689
692
|
--color-text-disabled: #{$color-text-disabled};
|
693
|
+
--color-background-brand-asksuite-contrast-hovered: #{$color-background-brand-asksuite-contrast-hovered};
|
694
|
+
--color-texticon-brand-asksuite-subtle: #{$color-texticon-brand-asksuite-subtle};
|
695
|
+
--color-border-white-default: #{$color-border-white-default};
|
690
696
|
--color-text-inverse-contrast: #{$color-text-inverse-contrast};
|
691
697
|
--color-texticon-link-default: #{$color-texticon-link-default};
|
692
698
|
--color-divider-default: #{$color-divider-default};
|
@@ -734,5 +740,13 @@ $color-texticon-danger: $color-r-600;
|
|
734
740
|
--color-background-accent-grey-subtler-hovered: #{$color-background-accent-grey-subtler-hovered};
|
735
741
|
--color-Y200: #{$color-Y200};
|
736
742
|
--color-background-selected-ask-default: #{$color-background-selected-ask-default};
|
743
|
+
--color-background-brand-asksuite-contrast-pressed: #{$color-background-brand-asksuite-contrast-pressed};
|
744
|
+
--color-background-brand-asksuite-subtlest-default: #{$color-background-brand-asksuite-subtlest-default};
|
745
|
+
--color-background-brand-asksuite-subtlest-hovered: #{$color-background-brand-asksuite-subtlest-hovered};
|
746
|
+
--color-background-brand-asksuite-subtlest-pressed: #{$color-background-brand-asksuite-subtlest-pressed};
|
747
|
+
--color-border-brand-asksuite-bold: #{$color-border-brand-asksuite-bold};
|
748
|
+
--color-texticon-inverse-disabled: #{$color-texticon-inverse-disabled};
|
749
|
+
--color-background-accent-disabled: #{$color-background-accent-disabled};
|
750
|
+
--color-border-white-disabled: #{$color-border-white-disabled};
|
737
751
|
}
|
738
|
-
|
752
|
+
|