@sarasanalytics-com/design-system 0.0.33 → 0.0.34

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 (56) hide show
  1. package/README.md +24 -24
  2. package/esm2022/interfaces/avatar-interface.mjs +1 -1
  3. package/esm2022/interfaces/button-interface.mjs +1 -1
  4. package/esm2022/interfaces/card-carousel-interface.mjs +1 -1
  5. package/esm2022/interfaces/chip-interface.mjs +1 -1
  6. package/esm2022/interfaces/grid-interface.mjs +1 -1
  7. package/esm2022/interfaces/guide-card-interface.mjs +1 -1
  8. package/esm2022/interfaces/icon-interface.mjs +1 -1
  9. package/esm2022/interfaces/message-banner.mjs +1 -1
  10. package/esm2022/interfaces/option-interface.mjs +1 -1
  11. package/esm2022/interfaces/select-interface.mjs +1 -1
  12. package/esm2022/interfaces/tab-interface.mjs +1 -1
  13. package/esm2022/interfaces/toast-interface.mjs +1 -1
  14. package/esm2022/lib/avatar/avatar.component.mjs +3 -3
  15. package/esm2022/lib/button/button.component.mjs +3 -3
  16. package/esm2022/lib/calendar-header/calendar-header.component.mjs +3 -3
  17. package/esm2022/lib/card/card-body/card-body.component.mjs +1 -1
  18. package/esm2022/lib/card/card-custom-header/card-custom-header.component.mjs +1 -1
  19. package/esm2022/lib/card/card-footer-actions/card-footer-actions.component.mjs +3 -3
  20. package/esm2022/lib/card/card-icon/card-icon.component.mjs +1 -1
  21. package/esm2022/lib/card/card-title-actions/card-title-actions.component.mjs +1 -1
  22. package/esm2022/lib/card/card.component.mjs +8 -4
  23. package/esm2022/lib/card/checkbox-card/checkbox-card.component.mjs +3 -3
  24. package/esm2022/lib/card/guide-card/guide-card.component.mjs +3 -3
  25. package/esm2022/lib/card-carousel/card-carousel.component.mjs +3 -3
  26. package/esm2022/lib/checkbox/checkbox.component.mjs +3 -3
  27. package/esm2022/lib/chips/chips.component.mjs +3 -3
  28. package/esm2022/lib/component-library.component.mjs +9 -9
  29. package/esm2022/lib/component-library.service.mjs +1 -1
  30. package/esm2022/lib/datepicker/datepicker.component.mjs +3 -3
  31. package/esm2022/lib/form-input/form-input.component.mjs +3 -3
  32. package/esm2022/lib/form-select/form-select.component.mjs +3 -3
  33. package/esm2022/lib/grid-cell/grid-cell.component.mjs +3 -3
  34. package/esm2022/lib/header/header.component.mjs +3 -3
  35. package/esm2022/lib/icon/icon.component.mjs +3 -3
  36. package/esm2022/lib/icon/icon.service.mjs +1 -1
  37. package/esm2022/lib/left-nav/left-nav.component.mjs +38 -9
  38. package/esm2022/lib/list/list.component.mjs +3 -3
  39. package/esm2022/lib/message-banner/message-banner.component.mjs +3 -3
  40. package/esm2022/lib/page-layout/page-layout.component.mjs +3 -3
  41. package/esm2022/lib/progress-bar/progress-bar.component.mjs +3 -3
  42. package/esm2022/lib/radio-button/radio-button.component.mjs +3 -3
  43. package/esm2022/lib/scrolling-cards/scrolling-cards.component.mjs +3 -3
  44. package/esm2022/lib/spinner/spinner.component.mjs +1 -1
  45. package/esm2022/lib/stepper/stepper.component.mjs +3 -3
  46. package/esm2022/lib/tabs/tabs.component.mjs +3 -3
  47. package/esm2022/lib/toast/toast.component.mjs +3 -3
  48. package/esm2022/lib/tool-tip/tool-tip.component.mjs +3 -3
  49. package/esm2022/public-api.mjs +1 -1
  50. package/esm2022/utils/validators.mjs +1 -1
  51. package/fesm2022/sarasanalytics-com-design-system.mjs +101 -69
  52. package/fesm2022/sarasanalytics-com-design-system.mjs.map +1 -1
  53. package/lib/card/card.component.d.ts +2 -1
  54. package/lib/left-nav/left-nav.component.d.ts +10 -1
  55. package/package.json +2 -2
  56. package/styles/styles.css +0 -331
@@ -19,9 +19,10 @@ export declare class CardComponent {
19
19
  subtitle: string;
20
20
  logoIcon: string;
21
21
  width: string | number;
22
+ height: string | number;
22
23
  column: boolean;
23
24
  cardStyles: any;
24
25
  ngOnChanges(changes: SimpleChanges): void;
25
26
  static ɵfac: i0.ɵɵFactoryDeclaration<CardComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "sa-card", never, { "title": { "alias": "title"; "required": false; }; "showCardHeader": { "alias": "showCardHeader"; "required": false; }; "showCardBody": { "alias": "showCardBody"; "required": false; }; "showHeaderBodyDivider": { "alias": "showHeaderBodyDivider"; "required": false; }; "showCustomCardBody": { "alias": "showCustomCardBody"; "required": false; }; "customWrapperClass": { "alias": "customWrapperClass"; "required": false; }; "chip": { "alias": "chip"; "required": false; }; "body": { "alias": "body"; "required": false; }; "avatar": { "alias": "avatar"; "required": false; }; "image": { "alias": "image"; "required": false; }; "imageWidth": { "alias": "imageWidth"; "required": false; }; "avatarSize": { "alias": "avatarSize"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "logoIcon": { "alias": "logoIcon"; "required": false; }; "width": { "alias": "width"; "required": false; }; "column": { "alias": "column"; "required": false; }; }, {}, never, ["sa-card-icon", "sa-card-title-actions", "sa-card-title-header", "sa-card-title-actions", "sa-card-custom-body", "sa-card-footer-actions"], true, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "sa-card", never, { "title": { "alias": "title"; "required": false; }; "showCardHeader": { "alias": "showCardHeader"; "required": false; }; "showCardBody": { "alias": "showCardBody"; "required": false; }; "showHeaderBodyDivider": { "alias": "showHeaderBodyDivider"; "required": false; }; "showCustomCardBody": { "alias": "showCustomCardBody"; "required": false; }; "customWrapperClass": { "alias": "customWrapperClass"; "required": false; }; "chip": { "alias": "chip"; "required": false; }; "body": { "alias": "body"; "required": false; }; "avatar": { "alias": "avatar"; "required": false; }; "image": { "alias": "image"; "required": false; }; "imageWidth": { "alias": "imageWidth"; "required": false; }; "avatarSize": { "alias": "avatarSize"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "logoIcon": { "alias": "logoIcon"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "column": { "alias": "column"; "required": false; }; }, {}, never, ["sa-card-icon", "sa-card-title-actions", "sa-card-title-header", "sa-card-title-actions", "sa-card-custom-body", "sa-card-footer-actions"], true, never>;
27
28
  }
@@ -1,19 +1,23 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { ActivatedRoute, Router } from '@angular/router';
3
+ import { MatTooltip } from '@angular/material/tooltip';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class LeftNavComponent {
5
6
  private route;
6
7
  private router;
7
8
  data: ILeftNav;
8
9
  clickEvent: EventEmitter<ILeftNavClickEvent>;
10
+ hoverEvent: EventEmitter<ILeftNavBlurEvent>;
9
11
  private activeItem;
10
12
  constructor(route: ActivatedRoute, router: Router);
11
13
  ngOnInit(): void;
12
14
  setItemActive(index: number): void;
13
15
  onNavItemClick(item: ILeftNavItem, index: number, event?: any): void;
14
16
  onFooterItemClick(item: ILeftNavItem, index: number, event?: any): void;
17
+ onFooterItemBlur(item: ILeftNavItem, index: number, event: any, tooltip: MatTooltip): void;
18
+ onNavItemBlur(item: ILeftNavItem, index: number, event: any, tooltip: MatTooltip): void;
15
19
  static ɵfac: i0.ɵɵFactoryDeclaration<LeftNavComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<LeftNavComponent, "sa-left-nav", never, { "data": { "alias": "data"; "required": false; }; }, { "clickEvent": "clickEvent"; }, never, ["*"], true, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<LeftNavComponent, "sa-left-nav", never, { "data": { "alias": "data"; "required": false; }; }, { "clickEvent": "clickEvent"; "hoverEvent": "hoverEvent"; }, never, ["*"], true, never>;
17
21
  }
18
22
  export interface ILeftNav {
19
23
  items?: ILeftNavItem[];
@@ -34,5 +38,10 @@ export interface ILeftNavClickEvent {
34
38
  event: any;
35
39
  item: ILeftNavItem;
36
40
  }
41
+ export interface ILeftNavBlurEvent {
42
+ type: 'NAV_ITEM_HOVER' | 'FOOTER_ITEM_HOVER' | 'LOGO_HOVER';
43
+ event: any;
44
+ item: ILeftNavItem;
45
+ }
37
46
  export declare enum ILeftNavTypes {
38
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sarasanalytics-com/design-system",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0"
@@ -22,4 +22,4 @@
22
22
  "default": "./fesm2022/sarasanalytics-com-design-system.mjs"
23
23
  }
24
24
  }
25
- }
25
+ }
package/styles/styles.css DELETED
@@ -1,331 +0,0 @@
1
-
2
- /*
3
- 1. Use a more-intuitive box-sizing model.
4
- */
5
- *, *::before, *::after {
6
- box-sizing: border-box;
7
- -webkit-font-smoothing: antialiased;
8
- -moz-osx-font-smoothing: grayscale;
9
- }
10
-
11
- html,
12
- body {
13
- height: 100%;
14
- }
15
-
16
- body {
17
- margin: 0;
18
- font-family: Roboto, "Helvetica Neue", sans-serif;
19
- }
20
-
21
- :root {
22
- --font: 'Roboto';
23
- --font-roboto: 'Roboto';
24
- --font-inter: 'Inter';
25
- --font-poppins: "Poppins";
26
- --font-helvetica: "Helvetica";
27
- --small-2px: 2px;
28
- --small-4px: 4px;
29
- --small-6px: 6px;
30
- --small-8px: 8px;
31
- --small-12px: 12px;
32
- --small-14px: 14px;
33
- --small-16px: 16px;
34
- --small-18px: 18px;
35
- --medium-20px: 20px;
36
- --medium-24px: 24px;
37
- --medium-28px: 28px;
38
- --medium-32px: 32px;
39
- --medium-36px: 36px;
40
- --large-40px: 40px;
41
- --large-42px: 42px;
42
- --large-44px: 44px;
43
- --large-48px: 48px;
44
- --large-56px: 56px;
45
- --large-64px: 64px;
46
- --form-email-icon-color: #33961F;
47
- }
48
-
49
- .insights-theme {
50
- --primary-50: #EAFFFD;
51
- --primary-100: #CAFFFB;
52
- --primary-200: #9CFFFA;
53
- --primary-300: #00DDEA;
54
- --primary-400: #00AFC4;
55
- --primary-500: #008597;
56
- --primary-600: #0B6E7F;
57
- --primary-700: #0E5B6B;
58
- --primary-800: #023D4A;
59
- --primary-900: #01303A;
60
- --secondary-50: #FFF3EB;
61
- --secondary-100: #FFD8C0;
62
- --secondary-200: #FFC6A2;
63
- --secondary-300: #FEAB78;
64
- --secondary-400: #FE9B5D;
65
- --secondary-500: #FE8235;
66
- --secondary-600: #E77630;
67
- --secondary-700: #B45C26;
68
- --secondary-800: #8C481D;
69
- --secondary-900: #6B3716;
70
- --grey-50: #E9EAEB;
71
- --grey-100: #BAC0C1;
72
- --grey-200: #98A1A3;
73
- --grey-300: #697779;
74
- --grey-400: #4C5C5F;
75
- --grey-500: #1F3437;
76
- --grey-600: #1C2F32;
77
- --grey-700: #162527;
78
- --grey-800: #111C1E;
79
- --grey-900: #0D1517;
80
- --semantic-success-50: #EBF5E9;
81
- --semantic-success-100: #C0DEBA;
82
- --semantic-success-200: #A1CF98;
83
- --semantic-success-300: #76B969;
84
- --semantic-success-400: #5CAB4C;
85
- --semantic-success-500: #33961F;
86
- --semantic-success-600: #2E891C;
87
- --semantic-success-700: #246B16;
88
- --semantic-success-800: #1C5311;
89
- --semantic-success-900: #153F0D;
90
- --semantic-error-50: #F8E9E9;
91
- --semantic-error-100: #EBBCB9;
92
- --semantic-error-200: #E19C98;
93
- --semantic-error-300: #D36E68;
94
- --semantic-error-400: #CA524B;
95
- --semantic-error-500: #BD271E;
96
- --semantic-error-600: #AC231B;
97
- --semantic-error-700: #861C15;
98
- --semantic-error-800: #681511;
99
- --semantic-error-900: #4F100D;
100
- --semantic-purple-50: #F3EFFD;
101
- --semantic-purple-100: #D8CCFA;
102
- --semantic-purple-200: #C6B4F7;
103
- --semantic-purple-300: #AB92F4;
104
- --semantic-purple-400: #9B7DF1;
105
- --semantic-purple-500: #815BED;
106
- --semantic-purple-600: #7654D9;
107
- --semantic-purple-700: #5C41A9;
108
- --semantic-purple-800: #483383;
109
- --semantic-purple-900: #372764;
110
- --semantic-yellow-50: #FEF6E6;
111
- --semantic-yellow-100: #FBE2B3;
112
- --semantic-yellow-200: #F9D58E;
113
- --semantic-yellow-300: #F6C15A;
114
- --semantic-yellow-400: #F5B53A;
115
- --text-highemphasis: #1B1F20;
116
- --text-mediumemphasis: #697779;
117
- --text-lowemphasis: #98A2A3;
118
- --text-white: #FFFFFF;
119
- --text-primary: #008597;
120
- --text-success: #33961F;
121
- --text-error: #BD271E;
122
- --icon-white: #FFFFFF;
123
- --semantic-yellow-500: #F2A209;
124
- --semantic-yellow-600: #DC9408;
125
- --semantic-yellow-700: #AC7406;
126
- --semantic-yellow-800: #855A05;
127
- --semantic-yellow-900: #664404;
128
- --structural-white: #FFFFFF;
129
- --icon-grey1: #757575;
130
- --structural-primarytint: #F5F9FA;
131
- --structural-neutral1: #F9F9F9;
132
- --structural-neutral2: #FFFAFA;
133
- --logo-color-primary: #008597;
134
- --logo-color-secondary: #9CFFFA;
135
- }
136
-
137
- .saras-theme {
138
- --primary-50: #E8F1FC;
139
- --primary-100: #B8D4F7;
140
- --primary-200: #96C0F3;
141
- --primary-300: #66A2ED;
142
- --primary-400: #4992E9;
143
- --primary-500: #1B77E4;
144
- --primary-600: #196CCF;
145
- --primary-700: #1354A2;
146
- --primary-800: #0F417D;
147
- --primary-900: #0B3160;
148
- --secondary-50: #FFF3EB;
149
- --secondary-100: #FFD8C0;
150
- --secondary-200: #FFC6A2;
151
- --secondary-300: #FEAB78;
152
- --secondary-400: #FE9B5D;
153
- --secondary-500: #FE8235;
154
- --secondary-600: #E77630;
155
- --secondary-700: #B45C26;
156
- --secondary-800: #8C481D;
157
- --secondary-900: #6B3716;
158
- --grey-50: #E9E9EB;
159
- --grey-100: #BABDC1;
160
- --grey-200: #989CA3;
161
- --grey-300: #697079;
162
- --grey-400: #4C545F;
163
- --grey-500: #1F2937;
164
- --grey-600: #1C2532;
165
- --grey-700: #161D27;
166
- --grey-800: #11161E;
167
- --grey-900: #0D1117;
168
- --semantic-success-50: #EBF5E9;
169
- --semantic-success-100: #C0DEBA;
170
- --semantic-success-200: #A1CF98;
171
- --semantic-success-300: #76B969;
172
- --semantic-success-400: #5CAB4C;
173
- --semantic-success-500: #33961F;
174
- --semantic-success-600: #2E891C;
175
- --semantic-success-700: #246B16;
176
- --semantic-success-800: #1C5311;
177
- --semantic-success-900: #153F0D;
178
- --semantic-error-50: #F8E9E9;
179
- --semantic-error-100: #EBBCB9;
180
- --semantic-error-200: #E19C98;
181
- --semantic-error-300: #D36E68;
182
- --semantic-error-400: #CA524B;
183
- --semantic-error-500: #BD271E;
184
- --semantic-error-600: #AC231B;
185
- --semantic-error-700: #861C15;
186
- --semantic-error-800: #681511;
187
- --semantic-error-900: #4F100D;
188
- --semantic-purple-50: #F3EFFD;
189
- --semantic-purple-100: #D8CCFA;
190
- --semantic-purple-200: #C6B4F7;
191
- --semantic-purple-300: #AB92F4;
192
- --semantic-purple-400: #9B7DF1;
193
- --semantic-purple-500: #815BED;
194
- --semantic-purple-600: #7654D9;
195
- --semantic-purple-700: #5C41A9;
196
- --semantic-purple-800: #483383;
197
- --semantic-purple-900: #372764;
198
- --semantic-yellow-50: #FEF6E6;
199
- --semantic-yellow-100: #FBE2B3;
200
- --semantic-yellow-200: #F9D58E;
201
- --semantic-yellow-300: #F6C15A;
202
- --semantic-yellow-400: #F5B53A;
203
- --text-highemphasis: #1B1D20;
204
- --text-mediumemphasis: #697079;
205
- --text-lowemphasis: #989CA3;
206
- --text-white: #FFFFFF;
207
- --text-primary: #1B77E4;
208
- --text-success: #33961F;
209
- --text-error: #BD271E;
210
- --icon-white: #FFFFFF;
211
- --semantic-yellow-500: #F2A209;
212
- --semantic-yellow-600: #DC9408;
213
- --semantic-yellow-700: #AC7406;
214
- --semantic-yellow-800: #855A05;
215
- --semantic-yellow-900: #664404;
216
- --structural-white: #FFFFFF;
217
- --icon-grey1: #757575;
218
- --structural-primarytint: #FAFCFF;
219
- --structural-neutral1: #F9F9F9;
220
- --structural-neutral2: #FFFAFA;
221
- --logo-color-primary: #1B77E4;
222
- --logo-color-secondary: #96C0F3;
223
- }
224
-
225
- .purple-theme {
226
- --primary-50: #F4EBFF;
227
- --primary-100: #E9D7FE;
228
- --primary-200: #D6BBFB;
229
- --primary-300: #B692F6;
230
- --primary-400: #9E77ED;
231
- --primary-500: #7F56D9;
232
- --primary-600: #53389E;
233
- --primary-700: #53389E;
234
- --primary-800: #42307D;
235
- --primary-900: #2C1C5F;
236
- --secondary-50: #FFF3EB;
237
- --secondary-100: #FFD8C0;
238
- --secondary-200: #FFC6A2;
239
- --secondary-300: #FEAB78;
240
- --secondary-400: #FE9B5D;
241
- --secondary-500: #FE8235;
242
- --secondary-600: #E77630;
243
- --secondary-700: #B45C26;
244
- --secondary-800: #8C481D;
245
- --secondary-900: #6B3716;
246
- --grey-50: #F2F4F7;
247
- --grey-100: #EAECF0;
248
- --grey-200: #D0D5DD;
249
- --grey-300: #98A2B3;
250
- --grey-400: #475467;
251
- --grey-500: #344054;
252
- --grey-600: #1D2939;
253
- --grey-700: #1D2939;
254
- --grey-800: #101828;
255
- --grey-900: #0C111D;
256
- --semantic-success-50: #EBF5E9;
257
- --semantic-success-100: #C0DEBA;
258
- --semantic-success-200: #A1CF98;
259
- --semantic-success-300: #76B969;
260
- --semantic-success-400: #5CAB4C;
261
- --semantic-success-500: #33961F;
262
- --semantic-success-600: #2E891C;
263
- --semantic-success-700: #246B16;
264
- --semantic-success-800: #1C5311;
265
- --semantic-success-900: #153F0D;
266
- --semantic-error-50: #F8E9E9;
267
- --semantic-error-100: #EBBCB9;
268
- --semantic-error-200: #E19C98;
269
- --semantic-error-300: #D36E68;
270
- --semantic-error-400: #CA524B;
271
- --semantic-error-500: #BD271E;
272
- --semantic-error-600: #AC231B;
273
- --semantic-error-700: #861C15;
274
- --semantic-error-800: #681511;
275
- --semantic-error-900: #4F100D;
276
- --semantic-purple-50: #F3EFFD;
277
- --semantic-purple-100: #D8CCFA;
278
- --semantic-purple-200: #C6B4F7;
279
- --semantic-purple-300: #AB92F4;
280
- --semantic-purple-400: #9B7DF1;
281
- --semantic-purple-500: #815BED;
282
- --semantic-purple-600: #7654D9;
283
- --semantic-purple-700: #5C41A9;
284
- --semantic-purple-800: #483383;
285
- --semantic-purple-900: #372764;
286
- --semantic-yellow-50: #FEF6E6;
287
- --semantic-yellow-100: #FBE2B3;
288
- --semantic-yellow-200: #F9D58E;
289
- --semantic-yellow-300: #F6C15A;
290
- --semantic-yellow-400: #F5B53A;
291
- --text-highemphasis: #1C1B20;
292
- --text-mediumemphasis: #6D6979;
293
- --text-lowemphasis: #9A98A3;
294
- --text-white: #FFFFFF;
295
- --text-primary: #815BED;
296
- --text-success: #33961F;
297
- --text-error: #BD271E;
298
- --icon-white: #FFFFFF;
299
- --semantic-yellow-500: #F2A209;
300
- --semantic-yellow-600: #DC9408;
301
- --semantic-yellow-700: #AC7406;
302
- --semantic-yellow-800: #855A05;
303
- --semantic-yellow-900: #664404;
304
- --structural-white: #FFFFFF;
305
- --icon-grey1: #757575;
306
- --structural-primarytint: #FBFAFF;
307
- --structural-neutral1: #F9F9F9;
308
- --structural-neutral2: #FFFAFA;
309
- --logo-color-primary: #7F56D9;
310
- --logo-color-secondary: #D6BBFB;
311
- }
312
-
313
- .ag-header {
314
- font-family: var(--font);
315
- font-size: 14px;
316
- font-weight: 400;
317
- height: 20px;
318
- line-height: 20px;
319
- }
320
-
321
- .ag-header-cell lib-grid-cell {
322
- width: 100%;
323
- }
324
-
325
- .ag-header-cell-label {
326
- font-family: var(--font);
327
- font-size: 14px;
328
- font-weight: 400;
329
- line-height: 20px;
330
- margin-left: 10px;
331
- }