asksuite-citrus 3.14.0-beta.1 → 3.14.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/esm2022/lib/asksuite-citrus.module.mjs +25 -5
  2. package/esm2022/lib/components/accordion/extendable-panel/extendable-panel.component.mjs +2 -2
  3. package/esm2022/lib/components/arrow-tag/arrow-tag.component.mjs +28 -0
  4. package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +2 -2
  5. package/esm2022/lib/components/avatar/avatar.component.mjs +2 -2
  6. package/esm2022/lib/components/box/box.component.mjs +2 -2
  7. package/esm2022/lib/components/button/button.component.mjs +2 -2
  8. package/esm2022/lib/components/character-counter/character-counter.component.mjs +2 -2
  9. package/esm2022/lib/components/checkbox/checkbox.component.mjs +2 -2
  10. package/esm2022/lib/components/chips/chips.component.mjs +2 -2
  11. package/esm2022/lib/components/date-picker/date-picker-calendar/date-picker-calendar.component.mjs +2 -2
  12. package/esm2022/lib/components/date-picker/date-picker.component.mjs +2 -2
  13. package/esm2022/lib/components/dropdown-container/dropdown-container.component.mjs +2 -2
  14. package/esm2022/lib/components/input/input.component.mjs +13 -3
  15. package/esm2022/lib/components/modal/confirmation-modal/confirmation-modal.component.mjs +2 -2
  16. package/esm2022/lib/components/modal/modal.component.mjs +2 -2
  17. package/esm2022/lib/components/pagination/pagination.component.mjs +2 -2
  18. package/esm2022/lib/components/phone-ddi/phone-ddi.component.mjs +17 -3
  19. package/esm2022/lib/components/richtext-toolbox/richtext-toolbox.component.mjs +2 -2
  20. package/esm2022/lib/components/richtext-url-prompt/richtext-url-prompt.component.mjs +2 -2
  21. package/esm2022/lib/components/select/select.component.mjs +2 -2
  22. package/esm2022/lib/components/tab-group/tab/tab.component.mjs +19 -0
  23. package/esm2022/lib/components/tab-group/tab-group.component.mjs +37 -0
  24. package/esm2022/lib/components/table/table.component.mjs +2 -2
  25. package/esm2022/lib/components/tag/tag.component.mjs +25 -0
  26. package/esm2022/lib/components/toast/toast.component.mjs +2 -2
  27. package/esm2022/public-api.mjs +5 -2
  28. package/fesm2022/asksuite-citrus.mjs +187 -64
  29. package/fesm2022/asksuite-citrus.mjs.map +1 -1
  30. package/lib/asksuite-citrus.module.d.ts +26 -22
  31. package/lib/components/arrow-tag/arrow-tag.component.d.ts +8 -0
  32. package/lib/components/input/input.component.d.ts +2 -0
  33. package/lib/components/phone-ddi/phone-ddi.component.d.ts +1 -0
  34. package/lib/components/tab-group/tab/tab.component.d.ts +9 -0
  35. package/lib/components/tab-group/tab-group.component.d.ts +12 -0
  36. package/lib/components/tag/tag.component.d.ts +9 -0
  37. package/package.json +1 -1
  38. package/public-api.d.ts +4 -1
  39. package/styles/ask-mixins.scss +3 -3
  40. package/styles/badge.scss +1 -1
  41. package/styles/button.scss +24 -24
  42. package/styles/{colors-light.scss → colors.scss} +43 -47
  43. package/styles/list-item.scss +1 -1
  44. package/styles/material.scss +21 -21
  45. package/styles/styles.scss +1 -1
  46. package/styles/tokens.scss +1 -2
  47. package/styles/tooltip.scss +2 -2
  48. package/esm2022/lib/services/theme/theme.service.mjs +0 -19
  49. package/lib/services/theme/theme.service.d.ts +0 -7
  50. package/styles/colors-dark.scss +0 -351
  51. package/styles/old-theme.scss +0 -61
  52. package/styles/theme-colors.scss +0 -13
  53. package/styles/theme-primitives.scss +0 -208
@@ -30,32 +30,36 @@ import * as i27 from "./components/character-counter/character-counter.component
30
30
  import * as i28 from "./components/accordion/accordion.component";
31
31
  import * as i29 from "./components/accordion/extendable-panel/extendable-panel.component";
32
32
  import * as i30 from "./components/table/table.component";
33
- import * as i31 from "./components/pagination/pagination.component";
34
- import * as i32 from "./pipes/paginate/paginate.pipe";
35
- import * as i33 from "./directives/richtext-toolbox/richtext-toolbox.directive";
36
- import * as i34 from "./components/richtext-url-prompt/richtext-url-prompt.component";
37
- import * as i35 from "./components/richtext-toolbox/richtext-toolbox.component";
38
- import * as i36 from "./directives/button/ask-text-button.directive";
39
- import * as i37 from "./pipes/force-break-line/force-break-line.pipe";
40
- import * as i38 from "./components/modal/confirmation-modal/confirmation-modal.component";
41
- import * as i39 from "./components/loading-bar/loading-bar.component";
42
- import * as i40 from "./directives/button/ask-stroked-button.directive";
43
- import * as i41 from "./directives/input/input.directive";
44
- import * as i42 from "./directives/list-item/list-item.directive";
45
- import * as i43 from "@angular/common";
46
- import * as i44 from "@angular/forms";
47
- import * as i45 from "@angular/cdk/overlay";
48
- import * as i46 from "@ngx-translate/core";
49
- import * as i47 from "ngx-skeleton-loader";
50
- import * as i48 from "@angular/material/tooltip";
51
- import * as i49 from "ngx-mask";
52
- import * as i50 from "@angular/material/progress-bar";
53
- import * as i51 from "./components/icon/icon.component";
33
+ import * as i31 from "./components/tag/tag.component";
34
+ import * as i32 from "./components/pagination/pagination.component";
35
+ import * as i33 from "./pipes/paginate/paginate.pipe";
36
+ import * as i34 from "./directives/richtext-toolbox/richtext-toolbox.directive";
37
+ import * as i35 from "./components/richtext-url-prompt/richtext-url-prompt.component";
38
+ import * as i36 from "./components/richtext-toolbox/richtext-toolbox.component";
39
+ import * as i37 from "./directives/button/ask-text-button.directive";
40
+ import * as i38 from "./pipes/force-break-line/force-break-line.pipe";
41
+ import * as i39 from "./components/modal/confirmation-modal/confirmation-modal.component";
42
+ import * as i40 from "./components/loading-bar/loading-bar.component";
43
+ import * as i41 from "./directives/button/ask-stroked-button.directive";
44
+ import * as i42 from "./directives/input/input.directive";
45
+ import * as i43 from "./directives/list-item/list-item.directive";
46
+ import * as i44 from "./components/arrow-tag/arrow-tag.component";
47
+ import * as i45 from "./components/tab-group/tab-group.component";
48
+ import * as i46 from "./components/tab-group/tab/tab.component";
49
+ import * as i47 from "@angular/common";
50
+ import * as i48 from "@angular/forms";
51
+ import * as i49 from "@angular/cdk/overlay";
52
+ import * as i50 from "@ngx-translate/core";
53
+ import * as i51 from "ngx-skeleton-loader";
54
+ import * as i52 from "@angular/material/tooltip";
55
+ import * as i53 from "ngx-mask";
56
+ import * as i54 from "@angular/material/progress-bar";
57
+ import * as i55 from "./components/icon/icon.component";
54
58
  export declare class AsksuiteCitrusModule {
55
59
  static forRoot(params?: {
56
60
  flagUrl?: string;
57
61
  }): ModuleWithProviders<AsksuiteCitrusModule>;
58
62
  static ɵfac: i0.ɵɵFactoryDeclaration<AsksuiteCitrusModule, never>;
59
- static ɵmod: i0.ɵɵNgModuleDeclaration<AsksuiteCitrusModule, [typeof i1.ButtonComponent, typeof i2.InputComponent, typeof i3.SelectComponent, typeof i4.BoxComponent, typeof i5.AvatarComponent, typeof i6.DropdownContainerComponent, typeof i7.AskDropdownDirective, typeof i8.AutocompleteComponent, typeof i9.PhoneDdiComponent, typeof i10.ChipsComponent, typeof i11.CheckboxComponent, typeof i12.DatePickerComponent, typeof i13.DatePickerCalendarComponent, typeof i14.SkeletonComponent, typeof i15.SpinnerComponent, typeof i16.SpinnerDirective, typeof i17.BadgeDirective, typeof i18.AutofocusDirective, typeof i19.ScrollDirective, typeof i20.AskTooltipDirective, typeof i21.ToastComponent, typeof i22.AskButtonDirective, typeof i23.ModalComponent, typeof i24.ModalBodyDirective, typeof i25.ModalHeaderDirective, typeof i26.ModalFooterDirective, typeof i27.CharacterCounterComponent, typeof i28.AccordionComponent, typeof i29.ExtendablePanelComponent, typeof i30.TableComponent, typeof i31.PaginationComponent, typeof i32.PaginatePipe, typeof i33.RichtextToolboxDirective, typeof i34.RichtextUrlPromptComponent, typeof i35.RichtextToolboxComponent, typeof i36.AskTextButtonDirective, typeof i37.ForceBreakLinePipe, typeof i38.ConfirmationModalComponent, typeof i39.LoadingBarComponent, typeof i40.AskStrokedButtonDirective, typeof i41.InputDirective, typeof i42.ListItemDirective], [typeof i43.CommonModule, typeof i44.FormsModule, typeof i44.ReactiveFormsModule, typeof i45.CdkOverlayOrigin, typeof i45.CdkConnectedOverlay, typeof i45.OverlayModule, typeof i46.TranslateModule, typeof i47.NgxSkeletonLoaderModule, typeof i48.MatTooltipModule, typeof i49.NgxMaskDirective, typeof i49.NgxMaskPipe, typeof i50.MatProgressBarModule, typeof i51.IconComponent], [typeof i1.ButtonComponent, typeof i2.InputComponent, typeof i3.SelectComponent, typeof i4.BoxComponent, typeof i5.AvatarComponent, typeof i6.DropdownContainerComponent, typeof i7.AskDropdownDirective, typeof i8.AutocompleteComponent, typeof i9.PhoneDdiComponent, typeof i10.ChipsComponent, typeof i11.CheckboxComponent, typeof i12.DatePickerComponent, typeof i13.DatePickerCalendarComponent, typeof i14.SkeletonComponent, typeof i16.SpinnerDirective, typeof i17.BadgeDirective, typeof i18.AutofocusDirective, typeof i19.ScrollDirective, typeof i20.AskTooltipDirective, typeof i22.AskButtonDirective, typeof i36.AskTextButtonDirective, typeof i24.ModalBodyDirective, typeof i25.ModalHeaderDirective, typeof i26.ModalFooterDirective, typeof i27.CharacterCounterComponent, typeof i28.AccordionComponent, typeof i29.ExtendablePanelComponent, typeof i30.TableComponent, typeof i31.PaginationComponent, typeof i32.PaginatePipe, typeof i33.RichtextToolboxDirective, typeof i37.ForceBreakLinePipe, typeof i39.LoadingBarComponent, typeof i40.AskStrokedButtonDirective, typeof i41.InputDirective, typeof i42.ListItemDirective, typeof i51.IconComponent]>;
63
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AsksuiteCitrusModule, [typeof i1.ButtonComponent, typeof i2.InputComponent, typeof i3.SelectComponent, typeof i4.BoxComponent, typeof i5.AvatarComponent, typeof i6.DropdownContainerComponent, typeof i7.AskDropdownDirective, typeof i8.AutocompleteComponent, typeof i9.PhoneDdiComponent, typeof i10.ChipsComponent, typeof i11.CheckboxComponent, typeof i12.DatePickerComponent, typeof i13.DatePickerCalendarComponent, typeof i14.SkeletonComponent, typeof i15.SpinnerComponent, typeof i16.SpinnerDirective, typeof i17.BadgeDirective, typeof i18.AutofocusDirective, typeof i19.ScrollDirective, typeof i20.AskTooltipDirective, typeof i21.ToastComponent, typeof i22.AskButtonDirective, typeof i23.ModalComponent, typeof i24.ModalBodyDirective, typeof i25.ModalHeaderDirective, typeof i26.ModalFooterDirective, typeof i27.CharacterCounterComponent, typeof i28.AccordionComponent, typeof i29.ExtendablePanelComponent, typeof i30.TableComponent, typeof i31.TagComponent, typeof i32.PaginationComponent, typeof i33.PaginatePipe, typeof i34.RichtextToolboxDirective, typeof i35.RichtextUrlPromptComponent, typeof i36.RichtextToolboxComponent, typeof i37.AskTextButtonDirective, typeof i38.ForceBreakLinePipe, typeof i39.ConfirmationModalComponent, typeof i40.LoadingBarComponent, typeof i41.AskStrokedButtonDirective, typeof i42.InputDirective, typeof i43.ListItemDirective, typeof i44.ArrowTagComponent, typeof i45.TabGroupComponent, typeof i46.TabComponent], [typeof i47.CommonModule, typeof i48.FormsModule, typeof i48.ReactiveFormsModule, typeof i49.CdkOverlayOrigin, typeof i49.CdkConnectedOverlay, typeof i49.OverlayModule, typeof i50.TranslateModule, typeof i51.NgxSkeletonLoaderModule, typeof i52.MatTooltipModule, typeof i53.NgxMaskDirective, typeof i53.NgxMaskPipe, typeof i54.MatProgressBarModule, typeof i55.IconComponent], [typeof i1.ButtonComponent, typeof i2.InputComponent, typeof i3.SelectComponent, typeof i4.BoxComponent, typeof i5.AvatarComponent, typeof i6.DropdownContainerComponent, typeof i7.AskDropdownDirective, typeof i8.AutocompleteComponent, typeof i9.PhoneDdiComponent, typeof i10.ChipsComponent, typeof i11.CheckboxComponent, typeof i12.DatePickerComponent, typeof i13.DatePickerCalendarComponent, typeof i14.SkeletonComponent, typeof i16.SpinnerDirective, typeof i17.BadgeDirective, typeof i18.AutofocusDirective, typeof i19.ScrollDirective, typeof i20.AskTooltipDirective, typeof i22.AskButtonDirective, typeof i37.AskTextButtonDirective, typeof i24.ModalBodyDirective, typeof i25.ModalHeaderDirective, typeof i26.ModalFooterDirective, typeof i27.CharacterCounterComponent, typeof i28.AccordionComponent, typeof i29.ExtendablePanelComponent, typeof i30.TableComponent, typeof i32.PaginationComponent, typeof i33.PaginatePipe, typeof i34.RichtextToolboxDirective, typeof i38.ForceBreakLinePipe, typeof i40.LoadingBarComponent, typeof i41.AskStrokedButtonDirective, typeof i42.InputDirective, typeof i43.ListItemDirective, typeof i55.IconComponent, typeof i31.TagComponent, typeof i44.ArrowTagComponent, typeof i45.TabGroupComponent, typeof i46.TabComponent]>;
60
64
  static ɵinj: i0.ɵɵInjectorDeclaration<AsksuiteCitrusModule>;
61
65
  }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ArrowTagComponent {
3
+ value: string;
4
+ backgroundColor: string;
5
+ fontColor: string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<ArrowTagComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<ArrowTagComponent, "ask-arrow-tag", never, { "value": { "alias": "value"; "required": true; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "fontColor": { "alias": "fontColor"; "required": false; }; }, {}, never, never, false, never>;
8
+ }
@@ -34,6 +34,8 @@ export declare class InputComponent implements ControlValueAccessor {
34
34
  handleInput(event: Event): void;
35
35
  handleFocus(event: FocusEvent): void;
36
36
  handleBlur(event: FocusEvent): void;
37
+ focusInput(): void;
38
+ blurInput(): void;
37
39
  registerOnChange(fn: any): void;
38
40
  registerOnTouched(fn: any): void;
39
41
  setDisabledState(isDisabled: boolean): void;
@@ -30,6 +30,7 @@ export declare class PhoneDdiComponent extends OverlayComponent implements OnIni
30
30
  private scrollSub?;
31
31
  constructor(overlay: Overlay, viewContainerRef: ViewContainerRef, countryFlagService: CountryFlagService);
32
32
  ngOnInit(): void;
33
+ onPaste(event: any): void;
33
34
  handleOptionSelected(item: any): void;
34
35
  display(option: any): string;
35
36
  shouldClose(event: MouseEvent): boolean;
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class TabComponent {
3
+ value: any;
4
+ callbackFn: Function;
5
+ active: boolean;
6
+ protected onClick(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<TabComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "ask-tab", never, { "value": { "alias": "value"; "required": false; }; }, {}, never, ["*"], false, never>;
9
+ }
@@ -0,0 +1,12 @@
1
+ import { AfterContentInit, EventEmitter, QueryList } from '@angular/core';
2
+ import { TabComponent } from "./tab/tab.component";
3
+ import * as i0 from "@angular/core";
4
+ export declare class TabGroupComponent implements AfterContentInit {
5
+ active: any;
6
+ activeChange: EventEmitter<any>;
7
+ tabs: QueryList<TabComponent>;
8
+ ngAfterContentInit(): void;
9
+ onTabChange(tab: TabComponent): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<TabGroupComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<TabGroupComponent, "ask-tab-group", never, { "active": { "alias": "active"; "required": false; }; }, { "activeChange": "activeChange"; }, ["tabs"], ["*"], false, never>;
12
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class TagComponent {
3
+ prefix: string;
4
+ content: string | number | null;
5
+ suffix: string;
6
+ bold: boolean;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<TagComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<TagComponent, "ask-tag", never, { "prefix": { "alias": "prefix"; "required": false; }; "content": { "alias": "content"; "required": false; }; "suffix": { "alias": "suffix"; "required": false; }; "bold": { "alias": "bold"; "required": false; }; }, {}, never, never, false, never>;
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asksuite-citrus",
3
- "version": "3.14.0-beta.1",
3
+ "version": "3.14.0-beta.10",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.7",
6
6
  "@angular/core": "^17.3.7",
package/public-api.d.ts CHANGED
@@ -19,12 +19,15 @@ export * from './lib/components/table/table.component';
19
19
  export * from './lib/components/pagination/pagination.component';
20
20
  export * from './lib/components/loading-bar/loading-bar.component';
21
21
  export * from './lib/components/icon/icon.component';
22
+ export * from './lib/components/tag/tag.component';
23
+ export * from './lib/components/arrow-tag/arrow-tag.component';
24
+ export * from './lib/components/tab-group/tab-group.component';
25
+ export * from './lib/components/tab-group/tab/tab.component';
22
26
  export * from './lib/directives';
23
27
  export * from './lib/components/modal/directives';
24
28
  export * from './lib/services/toast/toast.service';
25
29
  export * from './lib/services/modal';
26
30
  export * from './lib/services/dynamic-dropdown/dynamic-dropdown.service';
27
- export * from './lib/services/theme/theme.service';
28
31
  export * from './lib/pipes/paginate/paginate.pipe';
29
32
  export * from './lib/pipes/force-break-line/force-break-line.pipe';
30
33
  export * from './lib/services/toast/toast.config';
@@ -21,19 +21,19 @@
21
21
  display: flex;
22
22
  align-items: center;
23
23
  border-radius: $radii-xs;
24
- border: 1px solid var(--grey-200);
24
+ border: 1px solid $grey-200;
25
25
  padding: 16px;
26
26
  outline: none;
27
27
  gap: 8px;
28
28
  line-height: 14px;
29
- color: var(--grey-700);
29
+ color: $grey-700;
30
30
  height: 58px;
31
31
  font-size: $font-sm;
32
32
  font-weight: $font-weight-regular;
33
33
  transition: border 0.2s;
34
34
 
35
35
  &:focus {
36
- border-color: var(--asksuite-orange);
36
+ border-color: $asksuite-orange;
37
37
  }
38
38
 
39
39
  .material-icons {
package/styles/badge.scss CHANGED
@@ -12,7 +12,7 @@
12
12
  justify-content: center;
13
13
  align-items: center;
14
14
  background-color: var(--bg-color);
15
- color: var(--white);
15
+ color: #fff;
16
16
  font-size: 12px;
17
17
  text-overflow: ellipsis;
18
18
  white-space: nowrap;
@@ -46,14 +46,14 @@
46
46
 
47
47
  .ask-button {
48
48
  @include baseButton;
49
- background: var(--white);
49
+ background: white;
50
50
 
51
51
  &:not(.-primary, .-secondary, .-danger) {
52
52
  box-shadow: 0 1px 2px 0 rgba(42, 48, 66, 0.16);
53
53
  }
54
54
 
55
55
  &:not(.-primary):hover:not(:disabled) {
56
- box-shadow: 0 0 6px var(--shadow);
56
+ box-shadow: 0 0 6px $shadow;
57
57
  }
58
58
  &:hover:not(:disabled) {
59
59
  box-shadow: 0 0 6px rgba(255, 87, 36, 0.4);
@@ -64,32 +64,32 @@
64
64
  }
65
65
 
66
66
  &.-secondary:active:not(:disabled) {
67
- background-color: rgba(var(--white),.8);
67
+ background-color: rgba(#fff,.8);
68
68
  }
69
69
 
70
70
  &.-danger:active:not(:disabled) {
71
- background-color: rgba(var(--error-red),.8);
71
+ background-color: rgba($error-red,.8);
72
72
  }
73
73
 
74
74
  &.-secondary {
75
75
  &:not(:disabled):hover{
76
- background-color: var(--color-background-accent-grey-subtlest-hovered);
76
+ background-color: $color-background-accent-grey-subtlest-hovered;
77
77
  }
78
78
  }
79
79
 
80
80
  &.-danger {
81
- background: var(--error-red);
82
- color: var(--white);
81
+ background: $error-red;
82
+ color: white;
83
83
  }
84
84
 
85
85
  &.-primary {
86
- background: var(--asksuite-orange);
87
- color: var(--white);
86
+ background: $asksuite-orange;
87
+ color: white;
88
88
  }
89
89
 
90
90
  &:disabled {
91
91
  cursor: not-allowed;
92
- background-color: var(--grey-300);
92
+ background-color: $grey-300;
93
93
  }
94
94
  }
95
95
 
@@ -100,7 +100,7 @@
100
100
 
101
101
  &:hover {
102
102
  text-decoration: none;
103
- background: var(--grey-50);
103
+ background: $grey-50;
104
104
  }
105
105
 
106
106
  &.-primary {
@@ -108,20 +108,20 @@
108
108
  }
109
109
 
110
110
  &.-secondary {
111
- color: var(--grey-500);
111
+ color: $grey-500;
112
112
  }
113
113
 
114
114
  &.-danger {
115
- color: var(--error-red);
115
+ color: $error-red;
116
116
  }
117
117
 
118
118
  &.-danger:active:not(:disabled) {
119
- background-color: rgba(var(--error-red), .1);
119
+ background-color: rgba($error-red, .1);
120
120
  }
121
121
 
122
122
  &:disabled {
123
123
  cursor: not-allowed;
124
- color: var(--grey-300);
124
+ color: $grey-300;
125
125
  }
126
126
  }
127
127
 
@@ -136,30 +136,30 @@
136
136
  }
137
137
 
138
138
  &.-secondary {
139
- border-color: var(--grey-500);
140
- color: var(--grey-500);
139
+ border-color: $grey-500;
140
+ color: $grey-500;
141
141
  }
142
142
 
143
143
  &.-danger {
144
- color: var(--error-red);
145
- border-color: var(--error-red);
144
+ color: $error-red;
145
+ border-color: $error-red;
146
146
  }
147
147
 
148
148
  &.-primary:active:not(:disabled) {
149
- background-color: rgba(var(--asksuite-orange), .1);
149
+ background-color: rgba($asksuite-orange, .1);
150
150
  }
151
151
 
152
152
  &.-danger:active:not(:disabled) {
153
- background-color: rgba(var(--error-red), .1);
153
+ background-color: rgba($error-red, .1);
154
154
  }
155
155
 
156
156
  &.-secondary:active:not(:disabled) {
157
- background-color: rgba(var(--grey-300), .8);
157
+ background-color: rgba($grey-300, .8);
158
158
  }
159
159
 
160
160
  &:disabled {
161
161
  cursor: not-allowed;
162
- border-color: var(--grey-300);
163
- color: var(--grey-300);
162
+ border-color: $grey-300;
163
+ color: $grey-300;
164
164
  }
165
165
  }
@@ -3,58 +3,58 @@
3
3
  */
4
4
 
5
5
  // brand
6
- $asksuite-orange: #ff5724;
6
+ $asksuite-orange: #FF5724;
7
7
 
8
8
  // neutral
9
- $white: #fff;
9
+ $white: #FFF;
10
10
 
11
11
  // grey
12
- $grey-50: #f5f7fa;
13
- $grey-100: #e4e7eb;
14
- $grey-150: #dbdbdb;
15
- $grey-200: #cbd2d9;
16
- $grey-300: #9aa5b1;
17
- $grey-400: #7b8794;
18
- $grey-500: #616e7c;
19
- $grey-600: #52606d;
20
- $grey-700: #3e4c59;
21
- $grey-800: #2a3042;
22
- $grey-900: #1f2933;
12
+ $grey-50: #F5F7FA;
13
+ $grey-100: #E4E7EB;
14
+ $grey-150: #DBDBDB;
15
+ $grey-200: #CBD2D9;
16
+ $grey-300: #9AA5B1;
17
+ $grey-400: #7B8794;
18
+ $grey-500: #616E7C;
19
+ $grey-600: #52606D;
20
+ $grey-700: #3E4C59;
21
+ $grey-800: #2A3042;
22
+ $grey-900: #1F2933;
23
23
 
24
24
  // yellow
25
- $yellow-50: #fff8e2;
26
- $yellow-200: #ffecb3;
25
+ $yellow-50: #FFF8E2;
26
+ $yellow-200: #FFECB3;
27
27
 
28
28
  // color
29
- $success-green: #4baf50;
30
- $warning-yellow: #ffc107;
31
- $error-red: #e8453e;
29
+ $success-green: #4BAF50;
30
+ $warning-yellow: #FFC107;
31
+ $error-red: #E8453E;
32
32
 
33
33
  // shadow
34
- $shadow: #2a304229;
34
+ $shadow: #2A304229;
35
35
 
36
36
  // livechat tags
37
- $lightblue-tag: #cdf9f3;
38
- $lavender-tag: #d4daf3;
39
- $green-tag: #ceeeaa;
40
- $pink-tag: #fbc5ff;
41
- $orange-tag: #fed5c9;
42
- $purple-tag: #ddbfe5;
43
- $yellow-tag: #ffe0b2;
44
- $blue-tag: #b2e5fd;
45
- $brown-tag: #efc89c;
37
+ $lightblue-tag: #CDF9F3;
38
+ $lavender-tag: #D4DAF3;
39
+ $green-tag: #CEEEAA;
40
+ $pink-tag: #FBC5FF;
41
+ $orange-tag: #FED5C9;
42
+ $purple-tag: #DDBFE5;
43
+ $yellow-tag: #FFE0B2;
44
+ $blue-tag: #B2E5FD;
45
+ $brown-tag: #EFC89C;
46
46
 
47
47
  // communication channels
48
- $whatsapp-green: #68b35d;
49
- $facebook-blue: #0084ff;
50
- $instagram-pink: #d53e91;
51
- $google-blue: #345dc8;
52
- $telegram-blue: #34aadf;
53
- $telephone-yellow: #fecb00;
48
+ $whatsapp-green: #68B35D;
49
+ $facebook-blue: #0084FF;
50
+ $instagram-pink: #D53E91;
51
+ $google-blue: #345DC8;
52
+ $telegram-blue: #34AADF;
53
+ $telephone-yellow: #FECB00;
54
54
 
55
55
  // backgrounds
56
56
  $primary-background: $white;
57
- $secondary-background: #eff3f8;
57
+ $secondary-background: #EFF3F8;
58
58
  $hover-background: $grey-50;
59
59
  $divider-background: $grey-100;
60
60
 
@@ -63,6 +63,7 @@ $font-color-100: $grey-800;
63
63
  $font-color-200: $grey-500;
64
64
  $font-color-300: $grey-300;
65
65
 
66
+
66
67
  // new tokens livechat
67
68
 
68
69
  //reference
@@ -238,13 +239,13 @@ $color-y-600: #d79428;
238
239
  $color-y-700: #be800e;
239
240
  $color-y-800: #a66e0c;
240
241
  $color-y-900: #775409;
241
- $color-a-100: #f9e7e2;
242
+ $color-a-100: #F9E7E2;
242
243
  $color-a-1000: $color-o-1000;
243
244
  $color-a-200: $color-o-200;
244
- $color-a-300: #fbaf99;
245
+ $color-a-300: #FBAF99;
245
246
  $color-a-400: $color-o-400;
246
247
  $color-a-500: $color-o-500;
247
- $color-a-600: #ff5724;
248
+ $color-a-600: #FF5724;
248
249
  $color-a-700: $color-o-700;
249
250
  $color-a-800: $color-o-800;
250
251
  $color-a-900: $color-o-900;
@@ -259,6 +260,7 @@ $color-f-700: $color-v-700;
259
260
  $color-f-800: $color-v-800;
260
261
  $color-f-900: $color-v-900;
261
262
 
263
+
262
264
  $color-light-neutral-NLA200: $color-nla-200;
263
265
  $color-light-neutral-NLA300: #13293921;
264
266
  // livechat - tokens
@@ -586,9 +588,9 @@ $color-texticon-warning: $color-texticon-accent-yellow-contrast;
586
588
  $color-skeleton: $color-nla-200;
587
589
  $color-text-link-default: $color-b-500;
588
590
  $color-texticon-inverse-default: $color-nl-0;
589
- $color-texticon-danger: $color-r-600;
591
+ $color-texticon-danger: $color-r-600;
590
592
 
591
- @mixin theme {
593
+ :root {
592
594
  // brand
593
595
  --asksuite-orange: #{$asksuite-orange};
594
596
 
@@ -705,10 +707,4 @@ $color-texticon-danger: $color-r-600;
705
707
  --color-background-alpha-subtlest-hovered: #{$color-background-alpha-subtlest-hovered};
706
708
  --color-icon-brand-asksuite-contrast: #{$color-icon-brand-asksuite-contrast};
707
709
  --color-border-brand-asksuite-contrast: #{$color-border-brand-asksuite-contrast};
708
- --color-background-bounding-box: #{color-background-bounding-box};
709
-
710
- --color-background-accent-grey-bold-default: #{$color-background-accent-grey-bold-default};
711
- --color-border-inverse-subtle: #{$color-border-inverse-subtle};
712
- --color-background-accent-grey-subtler-hovered: #{$color-background-accent-grey-subtler-hovered};
713
- }
714
-
710
+ }
@@ -3,6 +3,6 @@
3
3
 
4
4
  &:hover {
5
5
  cursor: pointer;
6
- background-color: var(--grey-50);
6
+ background-color: $grey-50;
7
7
  }
8
8
  }
@@ -1,29 +1,29 @@
1
1
  @use '@angular/material' as mat;
2
2
  @include mat.core();
3
- @import './colors-light.scss';
3
+ @import './colors';
4
4
 
5
5
  $ask-gray-palette: (
6
- 50: var(--grey-50),
7
- 100: var(--grey-100),
8
- 200: var(--grey-200),
9
- 300: var(--grey-300),
10
- 400: var(--grey-400),
11
- 500: var(--grey-500),
12
- 600: var(--grey-600),
13
- 700: var(--grey-700),
14
- 800: var(--grey-800),
15
- 900: var(--grey-900),
6
+ 50: $grey-50,
7
+ 100: $grey-100,
8
+ 200: $grey-200,
9
+ 300: $grey-300,
10
+ 400: $grey-400,
11
+ 500: $grey-500,
12
+ 600: $grey-600,
13
+ 700: $grey-700,
14
+ 800: $grey-800,
15
+ 900: $grey-900,
16
16
  contrast: (
17
- 50: rgba(var(--color-background-bounding-box), .87),
18
- 100: rgba(var(--color-background-bounding-box), .87),
19
- 200: rgba(var(--color-background-bounding-box), .87),
20
- 300: rgba(var(--color-background-bounding-box), .87),
21
- 400: rgba(var(--color-background-bounding-box), .87),
22
- 500: var(--white),
23
- 600: var(--white),
24
- 700: var(--white),
25
- 800: var(--white),
26
- 900: var(--white),
17
+ 50: rgba(black, .87),
18
+ 100: rgba(black, .87),
19
+ 200: rgba(black, .87),
20
+ 300: rgba(black, .87),
21
+ 400: rgba(black, .87),
22
+ 500: white,
23
+ 600: white,
24
+ 700: white,
25
+ 800: white,
26
+ 900: white,
27
27
  )
28
28
  );
29
29
 
@@ -7,7 +7,7 @@
7
7
  * Tokens
8
8
  */
9
9
  @import './tokens';
10
- @import './colors-light.scss';
10
+
11
11
  @import './button';
12
12
  @import './modal';
13
13
  @import './ask-mixins';
@@ -1,8 +1,7 @@
1
1
  /*
2
2
  * Tokens
3
3
  */
4
- @use 'theme-colors';
5
- // @forward './colors-light';
4
+ @import './colors';
6
5
  @import './font-families';
7
6
  @import './font-sizes';
8
7
  @import './font-weights';
@@ -1,6 +1,6 @@
1
1
  .ask-tooltip {
2
- background-color: var(--grey-400);
3
- color: var(--white);
2
+ background-color: $grey-400;
3
+ color: $white;
4
4
  padding: 4px;
5
5
  border-radius: 8px;
6
6
  position: relative;
@@ -1,19 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class ThemeService {
4
- constructor() {
5
- document.body.className = 'light';
6
- }
7
- setTheme(theme) {
8
- document.body.className = theme;
9
- }
10
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
11
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ThemeService, providedIn: 'root' }); }
12
- }
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: ThemeService, decorators: [{
14
- type: Injectable,
15
- args: [{
16
- providedIn: 'root'
17
- }]
18
- }], ctorParameters: () => [] });
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGhlbWUuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fza3N1aXRlLWNpdHJ1cy9zcmMvbGliL3NlcnZpY2VzL3RoZW1lL3RoZW1lLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFLM0MsTUFBTSxPQUFPLFlBQVk7SUFFdkI7UUFDRSxRQUFRLENBQUMsSUFBSSxDQUFDLFNBQVMsR0FBRyxPQUFPLENBQUM7SUFDbkMsQ0FBQztJQUVGLFFBQVEsQ0FBQyxLQUF1QjtRQUM5QixRQUFRLENBQUMsSUFBSSxDQUFDLFNBQVMsR0FBRyxLQUFLLENBQUM7SUFDbEMsQ0FBQzs4R0FSVSxZQUFZO2tIQUFaLFlBQVksY0FGWCxNQUFNOzsyRkFFUCxZQUFZO2tCQUh4QixVQUFVO21CQUFDO29CQUNWLFVBQVUsRUFBRSxNQUFNO2lCQUNuQiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEluamVjdGFibGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQEluamVjdGFibGUoe1xuICBwcm92aWRlZEluOiAncm9vdCdcbn0pXG5leHBvcnQgY2xhc3MgVGhlbWVTZXJ2aWNlIHtcblxuICBjb25zdHJ1Y3RvcigpIHtcbiAgICBkb2N1bWVudC5ib2R5LmNsYXNzTmFtZSA9ICdsaWdodCc7XG4gICB9XG5cbiAgc2V0VGhlbWUodGhlbWU6ICdkYXJrJyB8ICdsaWdodCcpIHtcbiAgICBkb2N1bWVudC5ib2R5LmNsYXNzTmFtZSA9IHRoZW1lO1xuICB9XG59XG4iXX0=
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class ThemeService {
3
- constructor();
4
- setTheme(theme: 'dark' | 'light'): void;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
6
- static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
7
- }