@sarasanalytics-com/design-system 0.0.115 → 0.0.116

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.
@@ -1,19 +1,29 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, SimpleChanges, OnChanges } from '@angular/core';
2
2
  import { ButtonInterface, ButtonClickEvent } from '../../interfaces/button-interface';
3
3
  import * as i0 from "@angular/core";
4
- export declare class MessageBannerV2Component {
4
+ export declare class MessageBannerV2Component implements OnChanges {
5
5
  private state;
6
6
  protected bannerContent: import("@angular/core").Signal<{
7
7
  description: string;
8
- type: "default" | "connection" | "access";
8
+ type: "default" | "connection" | "access" | "accessRestricted";
9
9
  title: string;
10
10
  messageIcon: string;
11
11
  messageIconSize?: {
12
12
  width?: string;
13
13
  height?: string;
14
14
  };
15
+ spacingBetweenImageAndDescription?: string;
16
+ contentGap?: string;
17
+ contactUrl?: string;
18
+ titleClass?: string;
19
+ descriptionClass?: string;
15
20
  }>;
16
- set messageType(value: 'default' | 'connection' | 'access');
21
+ messageType: 'default' | 'connection' | 'access' | 'accessRestricted';
22
+ contactUrl?: string;
23
+ spacingBetweenImageAndDescription?: string;
24
+ contentGap?: string;
25
+ titleClass?: string;
26
+ descriptionClass?: string;
17
27
  set messageIcon(value: string);
18
28
  set messageIconSize(value: {
19
29
  width?: string;
@@ -23,9 +33,10 @@ export declare class MessageBannerV2Component {
23
33
  set description(value: string);
24
34
  buttons: ButtonInterface[];
25
35
  buttonClick: EventEmitter<ButtonClickEvent>;
36
+ ngOnChanges(changes: SimpleChanges): void;
26
37
  private updateContentBasedOnType;
27
38
  private sanitizeDescription;
28
39
  onButtonClick(button: ButtonInterface, event: Event): void;
29
40
  static ɵfac: i0.ɵɵFactoryDeclaration<MessageBannerV2Component, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<MessageBannerV2Component, "sa-message-banner-v2", never, { "messageType": { "alias": "messageType"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; "messageIconSize": { "alias": "messageIconSize"; "required": false; }; "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; }, { "buttonClick": "buttonClick"; }, never, never, true, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<MessageBannerV2Component, "sa-message-banner-v2", never, { "messageType": { "alias": "messageType"; "required": false; }; "contactUrl": { "alias": "contactUrl"; "required": false; }; "spacingBetweenImageAndDescription": { "alias": "spacingBetweenImageAndDescription"; "required": false; }; "contentGap": { "alias": "contentGap"; "required": false; }; "titleClass": { "alias": "titleClass"; "required": false; }; "descriptionClass": { "alias": "descriptionClass"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; "messageIconSize": { "alias": "messageIconSize"; "required": false; }; "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; }, { "buttonClick": "buttonClick"; }, never, never, true, never>;
31
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sarasanalytics-com/design-system",
3
- "version": "0.0.115",
3
+ "version": "0.0.116",
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/public-api.d.ts CHANGED
@@ -27,6 +27,8 @@ export * from './lib/icon/icon.component';
27
27
  export * from './lib/layout-section/layout-section.component';
28
28
  export * from './lib/left-nav/left-nav.component';
29
29
  export * from './lib/list/list.component';
30
+ export * from './lib/menu/menu-list/menu-item.component';
31
+ export * from './lib/menu/menu.component';
30
32
  export * from './lib/message-banner/message-banner.component';
31
33
  export * from './lib/message-banner-v2/message-banner-v2.component';
32
34
  export * from './lib/mini-card/mini-card.component';
@@ -0,0 +1,428 @@
1
+ /*
2
+ 1. Use a more-intuitive box-sizing model.
3
+ */
4
+ *,
5
+ *::before,
6
+ *::after {
7
+ box-sizing: border-box;
8
+ -webkit-font-smoothing: antialiased;
9
+ -moz-osx-font-smoothing: grayscale;
10
+ }
11
+
12
+ html,
13
+ body {
14
+ height: 100%;
15
+ }
16
+
17
+ body {
18
+ margin: 0;
19
+ font-family: Roboto, "Helvetica Neue", sans-serif;
20
+ }
21
+
22
+ :root {
23
+ --font: 'Roboto';
24
+ --font-family: 'Roboto';
25
+ --font-roboto: 'Roboto';
26
+ --font-inter: 'Inter';
27
+ --font-poppins: "Poppins";
28
+ --font-helvetica: "Helvetica";
29
+ --small-2px: 2px;
30
+ --small-3px: 3px;
31
+ --small-4px: 4px;
32
+ --small-6px: 6px;
33
+ --small-8px: 8px;
34
+ --small-10px: 10px;
35
+ --small-12px: 12px;
36
+ --small-14px: 14px;
37
+ --small-16px: 16px;
38
+ --small-18px: 18px;
39
+ --medium-20px: 20px;
40
+ --medium-22px: 22px;
41
+ --medium-24px: 24px;
42
+ --medium-28px: 28px;
43
+ --medium-32px: 32px;
44
+ --medium-36px: 36px;
45
+ --large-40px: 40px;
46
+ --large-42px: 42px;
47
+ --large-44px: 44px;
48
+ --large-48px: 48px;
49
+ --large-56px: 56px;
50
+ --large-64px: 64px;
51
+ --form-email-icon-color: #33961F;
52
+
53
+ --sa-skeleton-background: #e9ecef;
54
+ --sa-skeleton-shine: rgba(255, 255, 255, 0.3);
55
+ --sa-skeleton-radius: 4px;
56
+ --sa-skeleton-animation-duration: 1.5s;
57
+ --sa-skeleton-gap: 1rem;
58
+ --sa-skeleton-padding: 1rem;
59
+ }
60
+
61
+ .insights-theme {
62
+ --primary-50: #EAFFFD;
63
+ --primary-100: #CAFFFB;
64
+ --primary-200: #9CFFFA;
65
+ --primary-300: #00DDEA;
66
+ --primary-400: #00AFC4;
67
+ --primary-500: #008597;
68
+ --primary-600: #0B6E7F;
69
+ --primary-700: #0E5B6B;
70
+ --primary-800: #023D4A;
71
+ --primary-900: #01303A;
72
+ --secondary-50: #FFF3EB;
73
+ --secondary-100: #FFD8C0;
74
+ --secondary-200: #FFC6A2;
75
+ --secondary-300: #FEAB78;
76
+ --secondary-400: #FE9B5D;
77
+ --secondary-500: #FE8235;
78
+ --secondary-600: #E77630;
79
+ --secondary-700: #B45C26;
80
+ --secondary-800: #8C481D;
81
+ --secondary-900: #6B3716;
82
+ --grey-50: #E9EAEB;
83
+ --grey-100: #BAC0C1;
84
+ --grey-200: #98A1A3;
85
+ --grey-300: #697779;
86
+ --grey-400: #4C5C5F;
87
+ --grey-500: #1F3437;
88
+ --grey-600: #1C2F32;
89
+ --grey-700: #162527;
90
+ --grey-800: #111C1E;
91
+ --grey-900: #0D1517;
92
+ --semantic-success-50: #EBF5E9;
93
+ --semantic-success-100: #C0DEBA;
94
+ --semantic-success-200: #A1CF98;
95
+ --semantic-success-300: #76B969;
96
+ --semantic-success-400: #5CAB4C;
97
+ --semantic-success-500: #33961F;
98
+ --semantic-success-600: #2E891C;
99
+ --semantic-success-700: #246B16;
100
+ --semantic-success-800: #1C5311;
101
+ --semantic-success-900: #153F0D;
102
+ --semantic-error-50: #F8E9E9;
103
+ --semantic-error-100: #EBBCB9;
104
+ --semantic-error-200: #E19C98;
105
+ --semantic-error-300: #D36E68;
106
+ --semantic-error-400: #CA524B;
107
+ --semantic-error-500: #BD271E;
108
+ --semantic-error-600: #AC231B;
109
+ --semantic-error-700: #861C15;
110
+ --semantic-error-800: #681511;
111
+ --semantic-error-900: #4F100D;
112
+ --semantic-purple-50: #F3EFFD;
113
+ --semantic-purple-100: #D8CCFA;
114
+ --semantic-purple-200: #C6B4F7;
115
+ --semantic-purple-300: #AB92F4;
116
+ --semantic-purple-400: #9B7DF1;
117
+ --semantic-purple-500: #815BED;
118
+ --semantic-purple-600: #7654D9;
119
+ --semantic-purple-700: #5C41A9;
120
+ --semantic-purple-800: #483383;
121
+ --semantic-purple-900: #372764;
122
+ --semantic-yellow-50: #FEF6E6;
123
+ --semantic-yellow-100: #FBE2B3;
124
+ --semantic-yellow-200: #F9D58E;
125
+ --semantic-yellow-300: #F6C15A;
126
+ --semantic-yellow-400: #F5B53A;
127
+ --text-highemphasis: #1B1F20;
128
+ --text-mediumemphasis: #697779;
129
+ --text-lowemphasis: #98A2A3;
130
+ --text-white: #FFFFFF;
131
+ --text-primary: #008597;
132
+ --text-success: #33961F;
133
+ --text-error: #BD271E;
134
+ --icon-white: #FFFFFF;
135
+ --semantic-yellow-500: #F2A209;
136
+ --semantic-yellow-600: #DC9408;
137
+ --semantic-yellow-700: #AC7406;
138
+ --semantic-yellow-800: #855A05;
139
+ --semantic-yellow-900: #664404;
140
+ --structural-white: #FFFFFF;
141
+ --icon-grey1: #757575;
142
+ --structural-primarytint: #F5F9FA;
143
+ --structural-neutral1: #F9F9F9;
144
+ --structural-neutral2: #FFFAFA;
145
+ --structural-neutral3: #FAFAFA;
146
+ --logo-color-primary: #008597;
147
+ --logo-color-secondary: #9CFFFA;
148
+ }
149
+
150
+ .saras-theme {
151
+ --primary-50: #E8F1FC;
152
+ --primary-100: #B8D4F7;
153
+ --primary-200: #96C0F3;
154
+ --primary-300: #66A2ED;
155
+ --primary-400: #4992E9;
156
+ --primary-500: #1B77E4;
157
+ --primary-600: #196CCF;
158
+ --primary-700: #1354A2;
159
+ --primary-800: #0F417D;
160
+ --primary-900: #0B3160;
161
+ --secondary-50: #FFF3EB;
162
+ --secondary-100: #FFD8C0;
163
+ --secondary-200: #FFC6A2;
164
+ --secondary-300: #FEAB78;
165
+ --secondary-400: #FE9B5D;
166
+ --secondary-500: #FE8235;
167
+ --secondary-600: #E77630;
168
+ --secondary-700: #B45C26;
169
+ --secondary-800: #8C481D;
170
+ --secondary-900: #6B3716;
171
+ --grey-50: #E9E9EB;
172
+ --grey-100: #BABDC1;
173
+ --grey-200: #989CA3;
174
+ --grey-300: #697079;
175
+ --grey-400: #4C545F;
176
+ --grey-500: #1F2937;
177
+ --grey-600: #1C2532;
178
+ --grey-700: #161D27;
179
+ --grey-800: #11161E;
180
+ --grey-900: #0D1117;
181
+ --semantic-success-50: #EBF5E9;
182
+ --semantic-success-100: #C0DEBA;
183
+ --semantic-success-200: #A1CF98;
184
+ --semantic-success-300: #76B969;
185
+ --semantic-success-400: #5CAB4C;
186
+ --semantic-success-500: #33961F;
187
+ --semantic-success-600: #2E891C;
188
+ --semantic-success-700: #246B16;
189
+ --semantic-success-800: #1C5311;
190
+ --semantic-success-900: #153F0D;
191
+ --semantic-error-50: #F8E9E9;
192
+ --semantic-error-100: #EBBCB9;
193
+ --semantic-error-200: #E19C98;
194
+ --semantic-error-300: #D36E68;
195
+ --semantic-error-400: #CA524B;
196
+ --semantic-error-500: #BD271E;
197
+ --semantic-error-600: #AC231B;
198
+ --semantic-error-700: #861C15;
199
+ --semantic-error-800: #681511;
200
+ --semantic-error-900: #4F100D;
201
+ --semantic-purple-50: #F3EFFD;
202
+ --semantic-purple-100: #D8CCFA;
203
+ --semantic-purple-200: #C6B4F7;
204
+ --semantic-purple-300: #AB92F4;
205
+ --semantic-purple-400: #9B7DF1;
206
+ --semantic-purple-500: #815BED;
207
+ --semantic-purple-600: #7654D9;
208
+ --semantic-purple-700: #5C41A9;
209
+ --semantic-purple-800: #483383;
210
+ --semantic-purple-900: #372764;
211
+ --semantic-yellow-50: #FEF6E6;
212
+ --semantic-yellow-100: #FBE2B3;
213
+ --semantic-yellow-200: #F9D58E;
214
+ --semantic-yellow-300: #F6C15A;
215
+ --semantic-yellow-400: #F5B53A;
216
+ --text-highemphasis: #1B1D20;
217
+ --text-mediumemphasis: #697079;
218
+ --text-lowemphasis: #989CA3;
219
+ --text-white: #FFFFFF;
220
+ --text-primary: #1B77E4;
221
+ --text-success: #33961F;
222
+ --text-error: #BD271E;
223
+ --icon-white: #FFFFFF;
224
+ --semantic-yellow-500: #F2A209;
225
+ --semantic-yellow-600: #DC9408;
226
+ --semantic-yellow-700: #AC7406;
227
+ --semantic-yellow-800: #855A05;
228
+ --semantic-yellow-900: #664404;
229
+ --structural-white: #FFFFFF;
230
+ --icon-grey1: #757575;
231
+ --structural-primarytint: #FAFCFF;
232
+ --structural-neutral1: #F9F9F9;
233
+ --structural-neutral2: #FFFAFA;
234
+ --structural-neutral3: #FAFAFA;
235
+ --logo-color-primary: #1B77E4;
236
+ --logo-color-secondary: #96C0F3;
237
+ }
238
+
239
+ .purple-theme {
240
+ --primary-50: #F4EBFF;
241
+ --primary-100: #E9D7FE;
242
+ --primary-200: #D6BBFB;
243
+ --primary-300: #B692F6;
244
+ --primary-400: #9E77ED;
245
+ --primary-500: #7F56D9;
246
+ --primary-600: #53389E;
247
+ --primary-700: #53389E;
248
+ --primary-800: #42307D;
249
+ --primary-900: #2C1C5F;
250
+ --secondary-50: #FFF3EB;
251
+ --secondary-100: #FFD8C0;
252
+ --secondary-200: #FFC6A2;
253
+ --secondary-300: #FEAB78;
254
+ --secondary-400: #FE9B5D;
255
+ --secondary-500: #FE8235;
256
+ --secondary-600: #E77630;
257
+ --secondary-700: #B45C26;
258
+ --secondary-800: #8C481D;
259
+ --secondary-900: #6B3716;
260
+ --grey-50: #F2F4F7;
261
+ --grey-100: #EAECF0;
262
+ --grey-200: #D0D5DD;
263
+ --grey-300: #98A2B3;
264
+ --grey-400: #475467;
265
+ --grey-500: #344054;
266
+ --grey-600: #1D2939;
267
+ --grey-700: #1D2939;
268
+ --grey-800: #101828;
269
+ --grey-900: #0C111D;
270
+ --semantic-success-50: #EBF5E9;
271
+ --semantic-success-100: #C0DEBA;
272
+ --semantic-success-200: #A1CF98;
273
+ --semantic-success-300: #76B969;
274
+ --semantic-success-400: #5CAB4C;
275
+ --semantic-success-500: #33961F;
276
+ --semantic-success-600: #2E891C;
277
+ --semantic-success-700: #246B16;
278
+ --semantic-success-800: #1C5311;
279
+ --semantic-success-900: #153F0D;
280
+ --semantic-error-50: #F8E9E9;
281
+ --semantic-error-100: #EBBCB9;
282
+ --semantic-error-200: #E19C98;
283
+ --semantic-error-300: #D36E68;
284
+ --semantic-error-400: #CA524B;
285
+ --semantic-error-500: #BD271E;
286
+ --semantic-error-600: #AC231B;
287
+ --semantic-error-700: #861C15;
288
+ --semantic-error-800: #681511;
289
+ --semantic-error-900: #4F100D;
290
+ --semantic-purple-50: #F3EFFD;
291
+ --semantic-purple-100: #D8CCFA;
292
+ --semantic-purple-200: #C6B4F7;
293
+ --semantic-purple-300: #AB92F4;
294
+ --semantic-purple-400: #9B7DF1;
295
+ --semantic-purple-500: #815BED;
296
+ --semantic-purple-600: #7654D9;
297
+ --semantic-purple-700: #5C41A9;
298
+ --semantic-purple-800: #483383;
299
+ --semantic-purple-900: #372764;
300
+ --semantic-yellow-50: #FEF6E6;
301
+ --semantic-yellow-100: #FBE2B3;
302
+ --semantic-yellow-200: #F9D58E;
303
+ --semantic-yellow-300: #F6C15A;
304
+ --semantic-yellow-400: #F5B53A;
305
+ --text-highemphasis: #1C1B20;
306
+ --text-mediumemphasis: #6D6979;
307
+ --text-lowemphasis: #9A98A3;
308
+ --text-white: #FFFFFF;
309
+ --text-primary: #815BED;
310
+ --text-success: #33961F;
311
+ --text-error: #BD271E;
312
+ --icon-white: #FFFFFF;
313
+ --semantic-yellow-500: #F2A209;
314
+ --semantic-yellow-600: #DC9408;
315
+ --semantic-yellow-700: #AC7406;
316
+ --semantic-yellow-800: #855A05;
317
+ --semantic-yellow-900: #664404;
318
+ --structural-white: #FFFFFF;
319
+ --icon-grey1: #757575;
320
+ --structural-primarytint: #FBFAFF;
321
+ --structural-neutral1: #F9F9F9;
322
+ --structural-neutral2: #FFFAFA;
323
+ --structural-neutral3: #FAFAFA;
324
+ --logo-color-primary: #7F56D9;
325
+ --logo-color-secondary: #D6BBFB;
326
+ }
327
+
328
+ .ag-header {
329
+ font-family: var(--font);
330
+ font-size: 14px;
331
+ font-weight: 400;
332
+ height: 20px;
333
+ line-height: 20px;
334
+ }
335
+
336
+ .ag-header-cell lib-grid-cell {
337
+ width: 100%;
338
+ }
339
+
340
+ .ag-header-cell-label {
341
+ font-family: var(--font);
342
+ font-size: 14px;
343
+ font-weight: 400;
344
+ line-height: 20px;
345
+ margin-left: 10px;
346
+ }
347
+
348
+ .checkbox-card-group {
349
+ display: grid;
350
+ grid-template-columns: repeat(auto-fill, 38.875rem);
351
+ gap: 1.75rem 2rem;
352
+ max-width: -webkit-fill-available;
353
+ margin-bottom: 1.5rem;
354
+ }
355
+
356
+ .form-field-helpText,
357
+ .form-field-description {
358
+ color: var(--text-mediumemphasis, #6D6979);
359
+ font-family: var(--font-roboto, Roboto);
360
+ font-size: var(--small-14px);
361
+ font-style: normal;
362
+ font-weight: 400;
363
+ line-height: var(--medium-24px);
364
+ letter-spacing: 0.5px;
365
+ margin: 0px;
366
+ }
367
+
368
+ .form-field-title {
369
+ color: var(--text-highemphasis, #1C1B20);
370
+ font-family: var(--font-roboto, Roboto);
371
+ font-size: var(--medium-22px);
372
+ font-style: normal;
373
+ font-weight: 500;
374
+ line-height: var(--medium-36px);
375
+ margin: 0px;
376
+ }
377
+
378
+ .title-container {
379
+ display: flex;
380
+ flex-direction: column;
381
+ gap: var(--small-8px);
382
+ }
383
+
384
+ .formly-field-container {
385
+ display: flex;
386
+ flex-direction: column;
387
+ gap: var(--medium-24px);
388
+ }
389
+
390
+ .accordion-group-container {
391
+ display: flex;
392
+ flex-direction: column;
393
+ gap: var(--small-16px);
394
+ }
395
+
396
+ .accordions-group-container {
397
+ display: flex;
398
+ flex-direction: column;
399
+ gap: var(--small-16px);
400
+ }
401
+
402
+ /* for invalid input field color */
403
+ .sa-input-container .support-label.customValidationWrapper {
404
+ color: var(--semantic-error-500, #BD271E);
405
+ font-family: var(--font);
406
+ font-size: 11px;
407
+ font-style: normal;
408
+ font-weight: 400;
409
+ line-height: var(--small-16px);
410
+ letter-spacing: 0.5px;
411
+ padding: var(--small-4px) var(--small-16px) 0px 0px;
412
+ }
413
+
414
+ .sa-input-container .support-label.invalid.customValidationWrapper {
415
+ color: var(--semantic-error-500, #BD271E);
416
+ }
417
+
418
+ .customField .customInputContainer .sa-input .sa-input-field.invalid>input,
419
+ .customField .customInputContainer .sa-input .sa-input-field.invalid sa-icon,
420
+ .customField .customInputContainer .sa-input .sa-input-field.invalid .sa-input-pretext {
421
+ color: var(--semantic-error-500, #BD271E);
422
+ }
423
+
424
+ .customInputContainer .sa-input .sa-input-field.invalid {
425
+ --border: 1px solid var(--semantic-error-500, #BD271E);
426
+ }
427
+
428
+ /* end */