@progressio_resources/gravity-design-system 2.4.8 → 2.5.1

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,43 +1,45 @@
1
1
  import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class GravityTextFieldComponent implements OnInit, OnChanges {
4
- iconResponse: EventEmitter<boolean>;
4
+ leftIconResponse: EventEmitter<void>;
5
+ rightIconResponse: EventEmitter<void>;
5
6
  textFieldValueResponse: EventEmitter<string>;
6
- autocomplete: string;
7
- clickOnIconName: string | boolean;
7
+ private inputElement;
8
+ private textAreaElement;
8
9
  currentLang: string;
9
- customPlaceholder: string;
10
10
  customInputValue: string;
11
+ customState: 'default' | 'active' | 'hover' | 'typing' | 'typed' | 'typed-error' | 'typed-positive' | 'disabled' | 'readonly' | 'autofill';
11
12
  cypressTag: string;
12
- iconColor?: string | string[];
13
- iconNames: string[];
14
- iconsSizes: ('sm' | 'md' | 'lg')[];
15
- iconPlacement: 'left' | 'right';
16
- inputContentType: 'email' | 'number' | 'password' | 'tel' | 'text';
17
13
  label: string;
18
- placeholderType: 'default' | 'email' | 'url';
19
14
  prefix: string;
20
15
  required: boolean;
21
- state: 'readonly' | 'disabled' | 'enabled';
22
- supportTextContent: string;
23
- supportTextType: 'neutro' | 'negative' | 'positive';
16
+ supportText: string;
24
17
  textFieldType: 'input' | 'textarea';
18
+ clickOnLeftIcon: boolean;
19
+ clickOnRightIcon: boolean;
20
+ iconLeft: string;
21
+ iconRight: string;
22
+ autocomplete: string;
23
+ inputContentType: 'email' | 'number' | 'password' | 'tel' | 'text';
24
+ placeholder: string;
25
25
  validations: {
26
26
  maxLength?: number;
27
27
  minLength?: number;
28
28
  };
29
- private inputElement;
30
- private textAreaElement;
29
+ size: 'sm' | 'md';
30
+ width: 'short' | 'medium' | 'full';
31
31
  focusInput: boolean;
32
32
  inputValue: string;
33
- private readonly placeholders;
34
33
  ngOnInit(): void;
35
34
  ngOnChanges(changes: SimpleChanges): void;
36
35
  getPlaceholder(): string;
37
36
  clearInput(): void;
38
37
  changeInputValue(clearInput?: boolean): void;
39
- handleIconClick(iconName: string): void;
40
- getIconColor(iconIndex: number): string | null;
38
+ handleIconClick(iconPosition: 'left' | 'right'): void;
39
+ getTextFieldStatus(): string;
40
+ getTextFieldLabelFontSize(): string;
41
+ getTextFieldInputFontSize(): string;
42
+ getTextFieldSupportTextFontSize(): string;
41
43
  static ɵfac: i0.ɵɵFactoryDeclaration<GravityTextFieldComponent, never>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<GravityTextFieldComponent, "gravity-text-field", never, { "autocomplete": { "alias": "autocomplete"; "required": false; }; "clickOnIconName": { "alias": "clickOnIconName"; "required": false; }; "currentLang": { "alias": "currentLang"; "required": false; }; "customPlaceholder": { "alias": "customPlaceholder"; "required": false; }; "customInputValue": { "alias": "customInputValue"; "required": false; }; "cypressTag": { "alias": "cypressTag"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "iconNames": { "alias": "iconNames"; "required": false; }; "iconsSizes": { "alias": "iconsSizes"; "required": false; }; "iconPlacement": { "alias": "iconPlacement"; "required": false; }; "inputContentType": { "alias": "inputContentType"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholderType": { "alias": "placeholderType"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "required": { "alias": "required"; "required": false; }; "state": { "alias": "state"; "required": false; }; "supportTextContent": { "alias": "supportTextContent"; "required": false; }; "supportTextType": { "alias": "supportTextType"; "required": false; }; "textFieldType": { "alias": "textFieldType"; "required": false; }; "validations": { "alias": "validations"; "required": false; }; }, { "iconResponse": "clickIcon"; "textFieldValueResponse": "response"; }, never, never, false, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<GravityTextFieldComponent, "gravity-text-field", never, { "currentLang": { "alias": "currentLang"; "required": false; }; "customInputValue": { "alias": "customInputValue"; "required": false; }; "customState": { "alias": "customState"; "required": false; }; "cypressTag": { "alias": "cypressTag"; "required": false; }; "label": { "alias": "label"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "required": { "alias": "required"; "required": false; }; "supportText": { "alias": "supportText"; "required": false; }; "textFieldType": { "alias": "textFieldType"; "required": false; }; "clickOnLeftIcon": { "alias": "clickOnLeftIcon"; "required": false; }; "clickOnRightIcon": { "alias": "clickOnRightIcon"; "required": false; }; "iconLeft": { "alias": "iconLeft"; "required": false; }; "iconRight": { "alias": "iconRight"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "inputContentType": { "alias": "inputContentType"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "validations": { "alias": "validations"; "required": false; }; "size": { "alias": "size"; "required": false; }; "width": { "alias": "width"; "required": false; }; }, { "leftIconResponse": "clickIconLeft"; "rightIconResponse": "clickIconRight"; "textFieldValueResponse": "response"; }, never, never, false, never>;
43
45
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progressio_resources/gravity-design-system",
3
3
  "description": "Gravity Design System",
4
- "version": "2.4.8",
4
+ "version": "2.5.1",
5
5
  "license": "SEE LICENSE IN LIBRARY-LICENSE",
6
6
  "peerDependencies": {
7
7
  "@angular/common": "^16.2.12",
@@ -237,9 +237,9 @@ $placeholder-empty-enabled-primary-light: $n600;
237
237
  $label-text-empty-enabled-primary-light: $n400;
238
238
  $bg-field-empty-enabled-hover-primary-light: $n800;
239
239
  $bg-field-full-enabled-pressed-primary-light: $n900;
240
- $placeholder-full-enabled-pressed-primary-light: $n400;
241
- $label-text-full-enabled-pressed-primary-light: $n400;
242
240
  $outline-field-full-enabled-pressed-primary-light: $b400;
241
+ $label-text-full-enabled-pressed-primary-light: $n400;
242
+ $placeholder-full-enabled-pressed-primary-light: $n400;
243
243
  $bg-field-empty-disabled-primary-light: $n800;
244
244
  $placeholder-empty-disabled-primary-light: $n700;
245
245
  $label-text-empty-disabled-primary-light: $n700;
@@ -256,7 +256,7 @@ $input-text-full-read-only-primary-light: $n400;
256
256
  $label-text-full-read-only-primary-light: $n400;
257
257
  $bg-field-empty-enabled-primary-dark: $n100;
258
258
  $outline-field-empty-enabled-primary-dark: $n800;
259
- $placeholder-empty-enabled-primary-dark: $n400;
259
+ $placeholder-empty-enabled-primary-dark: $n600;
260
260
  $label-text-empty-enabled-primary-dark: $n800;
261
261
  $bg-field-empty-enabled-hover-primary-dark: $n200;
262
262
  $bg-field-empty-disabled-primary-dark: $n200;
@@ -277,6 +277,12 @@ $label-text-full-disabled-primary-dark: $n300;
277
277
  $bg-field-full-read-only-primary-dark: $n300;
278
278
  $input-text-full-read-only-primary-dark: $n800;
279
279
  $label-text-full-read-only-primary-dark: $n800;
280
+ $outline-field-full-enabled-typing-primary-light: $b400;
281
+ $outline-field-full-enabled-typing-primary-dark: $b700;
282
+ $outline-field-full-enabled-typed-primary-light: $n400;
283
+ $outline-field-full-enabled-typed-primary-dark: $n800;
284
+ $bg-field-autofill-light: $b800;
285
+ $bg-field-autofill-dark: $n400;
280
286
 
281
287
  // icon
282
288
  $icon-active-primary-light: $n400;
@@ -341,6 +347,10 @@ $notification-success-highlight-primary-dark: $g500;
341
347
  $on-bg-icon-notification-warning-primary-dark: $o200;
342
348
  $bg-icon-notification-warning-primary-dark: $o400;
343
349
  $notification-warning-highlight-primary-dark: $o400;
350
+ $bg-notification-list-primary-light: $n400;
351
+ $bg-notification-list-primary-dark: $n800;
352
+ $on-bg-notification-list-primary-light: $n900;
353
+ $on-bg-notification-list-primary-dark: $n100;
344
354
 
345
355
  // dialog
346
356
  $bg-dialog-primary-light: $n900;
@@ -161,6 +161,9 @@
161
161
  --bg-field-full-read-only-primary: #{$bg-field-full-read-only-primary-light};
162
162
  --input-text-full-read-only-primary: #{$input-text-full-read-only-primary-light};
163
163
  --label-text-full-read-only-primary: #{$label-text-full-read-only-primary-light};
164
+ --outline-field-full-enabled-typing-primary: #{$outline-field-full-enabled-typing-primary-light};
165
+ --outline-field-full-enabled-typed-primary: #{$outline-field-full-enabled-typed-primary-light};
166
+ --bg-field-autofill: #{$bg-field-autofill-light};
164
167
 
165
168
  // icons
166
169
  --icon-active-primary: #{$icon-active-primary-light};
@@ -198,6 +201,8 @@
198
201
  --on-bg-icon-notification-warning-primary: #{$on-bg-icon-notification-warning-primary-light};
199
202
  --bg-icon-notification-warning-primary: #{$bg-icon-notification-warning-primary-light};
200
203
  --notification-warning-highlight-primary: #{$notification-warning-highlight-primary-light};
204
+ --bg-notification-list-primary: #{$bg-notification-list-primary-light};
205
+ --on-bg-notification-list-primary: #{$on-bg-notification-list-primary-light};
201
206
 
202
207
  // dialog
203
208
  --bg-dialog-primary: #{$bg-dialog-primary-light};
@@ -229,6 +234,7 @@
229
234
 
230
235
  // shadow
231
236
  --shadow-primary: #{$shadow-primary-light};
237
+ // DONT REMOVE
232
238
  --shadow-primary-rgba: #{to-rgb($shadow-primary-light)};
233
239
  --shadow-opacity: 0.22;
234
240
  }
@@ -269,7 +275,7 @@
269
275
  --on-bg-button-pressed-positive: #{$on-bg-button-pressed-positive-dark};
270
276
  --bg-button-pressed-positive: #{$bg-button-pressed-positive-dark};
271
277
 
272
- // button-negative
278
+ // button-negative
273
279
  --on-bg-button-active-negative: #{$on-bg-button-active-negative-dark};
274
280
  --bg-button-active-negative: #{$bg-button-active-negative-dark};
275
281
  --on-bg-button-hover-negative: #{$on-bg-button-hover-negative-dark};
@@ -277,7 +283,7 @@
277
283
  --on-bg-button-pressed-negative: #{$on-bg-button-pressed-negative-dark};
278
284
  --bg-button-pressed-negative: #{$bg-button-pressed-negative-dark};
279
285
 
280
- // button-alternative
286
+ // button-alternative
281
287
  --on-bg-button-active-alternative: #{$on-bg-button-active-alternative-dark};
282
288
  --bg-button-active-alternative: #{$bg-button-active-alternative-dark};
283
289
  --on-bg-button-hover-alternative: #{$on-bg-button-hover-alternative-dark};
@@ -285,38 +291,38 @@
285
291
  --on-bg-button-pressed-alternative: #{$on-bg-button-pressed-alternative-dark};
286
292
  --bg-button-pressed-alternative: #{$bg-button-pressed-alternative-dark};
287
293
 
288
- // disabled-status
294
+ // disabled-status
289
295
  --on-bg-disabled: #{$on-bg-disabled-dark};
290
296
  --bg-disabled: #{$bg-disabled-dark};
291
297
  --outline-disabled: #{$outline-disabled-dark};
292
298
 
293
- // surface
299
+ // surface
294
300
  --surface-primary: #{$surface-primary-dark};
295
301
  --surface-secondary: #{$surface-secondary-dark};
296
302
 
297
- // text
303
+ // text
298
304
  --text-primary: #{$text-primary-dark};
299
305
  --text-highlight-primary: #{$text-highlight-primary-dark};
300
306
 
301
- // divider
307
+ // divider
302
308
  --divider-primary: #{$divider-primary-dark};
303
309
 
304
- // logo
310
+ // logo
305
311
  --logo-primary: #{$logo-primary-dark};
306
312
 
307
- // highlight
313
+ // highlight
308
314
  --on-bg-highlight-neutro-primary: #{$on-bg-highlight-neutro-primary-dark};
309
315
  --bg-highlight-neutro-primary: #{$bg-highlight-neutro-primary-dark};
310
316
  --on-bg-highlight-neutro-secondary: #{$on-bg-highlight-neutro-secondary-dark};
311
317
  --bg-highlight-neutro-secondary: #{$bg-highlight-neutro-secondary-dark};
312
318
 
313
- // system
319
+ // system
314
320
  --positive-primary: #{$positive-primary-dark};
315
321
  --negative-primary: #{$negative-primary-dark};
316
322
  --cta-primary: #{$bg-button-active-primary-dark};
317
323
  --alternative-primary: #{$alternative-primary-dark};
318
324
 
319
- // calendar
325
+ // calendar
320
326
  --on-bg-calendar-nav-primary: #{$on-bg-calendar-nav-primary-dark};
321
327
  --bg-calendar-nav-primary: #{$bg-calendar-nav-primary-dark};
322
328
  --on-bg-calender-primary: #{$on-bg-calender-primary-dark};
@@ -332,16 +338,16 @@
332
338
  --bg-number-calendar-pressed-primary: #{$bg-number-calendar-pressed-primary-dark};
333
339
  --number-calendar-disabled-primary: #{$number-calendar-disabled-primary-dark};
334
340
 
335
- // checkbox
341
+ // checkbox
336
342
  --outline-checkbox-off-primary: #{$outline-checkbox-off-primary-dark};
337
343
  --on-bg-checkbox-on-primary: #{$on-bg-checkbox-on-primary-dark};
338
344
  --bg-checkbox-on-primary: #{$bg-checkbox-on-primary-dark};
339
345
 
340
- // radio button
346
+ // radio button
341
347
  --radio-button-off-primary: #{$radio-button-off-primary-dark};
342
348
  --radio-button-on-primary: #{$radio-button-on-primary-dark};
343
349
 
344
- // stepper
350
+ // stepper
345
351
  --text-stepper-pending-primary: #{$text-stepper-pending-primary-dark};
346
352
  --line-stepper-pending-primary: #{$line-stepper-pending-primary-dark};
347
353
  --on-bg-stepper-pending-primary: #{$on-bg-stepper-pending-primary-dark};
@@ -355,7 +361,7 @@
355
361
  --on-bg-stepper-completed-primary: #{$on-bg-stepper-completed-primary-dark};
356
362
  --bg-stepper-completed-primary: #{$bg-stepper-completed-primary-dark};
357
363
 
358
- // table
364
+ // table
359
365
  --on-bg-table-header-primary: #{$on-bg-table-header-primary-dark};
360
366
  --bg-table-header-primary: #{$bg-table-header-primary-dark};
361
367
  --on-bg-table-active-primary: #{$on-bg-table-active-primary-dark};
@@ -365,11 +371,11 @@
365
371
  --on-bg-table-header-secondary: #{$on-bg-table-header-secondary-dark};
366
372
  --bg-table-header-secondary: #{$bg-table-header-secondary-dark};
367
373
 
368
- // tooltip
374
+ // tooltip
369
375
  --on-bg-tooltip-primary: #{$on-bg-tooltip-primary-dark};
370
376
  --bg-tooltip-primary: #{$bg-tooltip-primary-dark};
371
377
 
372
- // text-field
378
+ // text-field
373
379
  --bg-field-empty-enabled-primary: #{$bg-field-empty-enabled-primary-dark};
374
380
  --outline-field-empty-enabled-primary: #{$outline-field-empty-enabled-primary-dark};
375
381
  --placeholder-empty-enabled-primary: #{$placeholder-empty-enabled-primary-dark};
@@ -393,12 +399,15 @@
393
399
  --bg-field-full-read-only-primary: #{$bg-field-full-read-only-primary-dark};
394
400
  --input-text-full-read-only-primary: #{$input-text-full-read-only-primary-dark};
395
401
  --label-text-full-read-only-primary: #{$label-text-full-read-only-primary-dark};
402
+ --outline-field-full-enabled-typing-primary: #{$outline-field-full-enabled-typing-primary-dark};
403
+ --outline-field-full-enabled-typed-primary: #{$outline-field-full-enabled-typed-primary-dark};
404
+ --bg-field-autofill: #{$bg-field-autofill-dark};
396
405
 
397
- // icons
406
+ // icons
398
407
  --icon-active-primary: #{$icon-active-primary-dark};
399
408
  --icon-hover-primary: #{$icon-hover-primary-dark};
400
409
 
401
- // dropdown-list
410
+ // dropdown-list
402
411
  --bg-dropdown-list-primary: #{$bg-dropdown-list-primary-dark};
403
412
  --outline-dropdown-list-primary: #{$outline-dropdown-list-primary-dark};
404
413
  --on-bg-dropdown-item-active-primary: #{$on-bg-dropdown-item-active-primary-dark};
@@ -407,10 +416,10 @@
407
416
  --on-bg-dropdown-item-pressed-primary: #{$on-bg-dropdown-item-pressed-primary-dark};
408
417
  --on-bg-dropdown-item-disabled-primary: #{$on-bg-dropdown-item-disabled-primary-dark};
409
418
 
410
- // loading
419
+ // loading
411
420
  --loading-primary: #{$loading-primary-dark};
412
421
 
413
- // switch
422
+ // switch
414
423
  --on-bg-switch-on-primary: #{$on-bg-switch-on-primary-dark};
415
424
  --bg-switch-on-primary: #{$bg-switch-on-primary-dark};
416
425
  --on-bg-switch-off-primary: #{$on-bg-switch-off-primary-dark};
@@ -418,7 +427,7 @@
418
427
  --on-bg-switch-disabled-primary: #{$on-bg-switch-disabled-primary-dark};
419
428
  --bg-switch-disabled-primary: #{$bg-switch-disabled-primary-dark};
420
429
 
421
- // notification
430
+ // notification
422
431
  --on-bg-notification-primary: #{$on-bg-notification-primary-dark};
423
432
  --bg-notification-primary: #{$bg-notification-primary-dark};
424
433
  --on-bg-icon-notification-error-primary: #{$on-bg-icon-notification-error-primary-dark};
@@ -430,8 +439,10 @@
430
439
  --on-bg-icon-notification-warning-primary: #{$on-bg-icon-notification-warning-primary-dark};
431
440
  --bg-icon-notification-warning-primary: #{$bg-icon-notification-warning-primary-dark};
432
441
  --notification-warning-highlight-primary: #{$notification-warning-highlight-primary-dark};
442
+ --bg-notification-list-primary: #{$bg-notification-list-primary-dark};
443
+ --on-bg-notification-list-primary: #{$on-bg-notification-list-primary-dark};
433
444
 
434
- // dialog
445
+ // dialog
435
446
  --bg-dialog-primary: #{$bg-dialog-primary-dark};
436
447
  --on-bg-dialog-header-primary: #{$on-bg-dialog-header-primary-dark};
437
448
  --bg-dialog-header-primary: #{$bg-dialog-header-primary-dark};
@@ -441,14 +452,14 @@
441
452
  --on-bg-icon-dialog-primary: #{$on-bg-icon-dialog-primary-dark};
442
453
  --bg-icon-dialog-primary: #{$bg-icon-dialog-primary-dark};
443
454
 
444
- // link
455
+ // link
445
456
  --link-active-primary: #{$link-active-primary-dark};
446
457
  --link-hover-primary: #{$link-hover-primary-dark};
447
458
  --bg-link-hover-primary: #{$bg-link-hover-primary-dark};
448
459
  --link-disabled-primary: #{$link-disabled-primary-dark};
449
460
  --link-pressed-primary: #{$link-pressed-primary-dark};
450
461
 
451
- // menu
462
+ // menu
452
463
  --divider-menu-primary: #{$divider-menu-primary-dark};
453
464
  --bg-menu-primary: #{$bg-menu-primary-dark};
454
465
  --on-bg-menu-primary: #{$on-bg-menu-primary-dark};
@@ -459,8 +470,9 @@
459
470
  --bg-menu-button-pressed-primary: #{$bg-menu-button-pressed-primary-dark};
460
471
  --on-bg-menu-button-pressed-primary: #{$on-bg-menu-button-pressed-primary-dark};
461
472
 
462
- // shadow
473
+ // shadow
463
474
  --shadow-primary: #{$shadow-primary-dark};
475
+ // DONT REMOVE
464
476
  --shadow-primary-rgba: #{to-rgb($shadow-primary-dark)};
465
477
  --shadow-opacity: 1;
466
478
  }
@@ -20,6 +20,8 @@ body {
20
20
  }
21
21
 
22
22
  .hr-body-text {
23
+ font-family: 'Roboto Flex', sans-serif;
24
+
23
25
  &.sm-regular {
24
26
  font-size: $font-size-12px;
25
27
  font-weight: 400;
@@ -57,6 +59,8 @@ body {
57
59
  }
58
60
 
59
61
  .hr-title {
62
+ font-family: 'Roboto Flex', sans-serif;
63
+
60
64
  &.sm-regular {
61
65
  font-size: $font-size-16px;
62
66
  font-weight: 420;
@@ -88,6 +92,8 @@ body {
88
92
  }
89
93
 
90
94
  .hr-label {
95
+ font-family: 'Roboto Flex', sans-serif;
96
+
91
97
  &.sm-regular {
92
98
  font-size: $font-size-12px;
93
99
  font-weight: 343;
@@ -126,6 +132,8 @@ body {
126
132
  }
127
133
 
128
134
  .hr-headline {
135
+ font-family: 'Roboto Flex', sans-serif;
136
+
129
137
  &.sm-bold {
130
138
  font-size: $font-size-32px;
131
139
  font-weight: 700;
@@ -146,6 +154,8 @@ body {
146
154
  }
147
155
 
148
156
  .hr-display {
157
+ font-family: 'Roboto Flex', sans-serif;
158
+
149
159
  &.sm-bold {
150
160
  font-size: $font-size-50px;
151
161
  font-weight: 700;