@egovernments/digit-ui-components-css 2.0.0-dev-11 → 2.0.0-dev-12

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 (59) hide show
  1. package/dist/index.css +2 -2
  2. package/package.json +1 -1
  3. package/src/digitv2/components/FormComposerV2.scss +1 -1
  4. package/src/digitv2/components/alertCardV2.scss +41 -41
  5. package/src/digitv2/components/backLinkV2.scss +7 -7
  6. package/src/digitv2/components/bottomSheetV2.scss +19 -19
  7. package/src/digitv2/components/breadcrumbV2.scss +21 -21
  8. package/src/digitv2/components/cardV2.scss +14 -14
  9. package/src/digitv2/components/cardlabelV2.scss +2 -2
  10. package/src/digitv2/components/checkboxV2.scss +41 -31
  11. package/src/digitv2/components/chipV2.scss +40 -40
  12. package/src/digitv2/components/dividerV2.scss +4 -4
  13. package/src/digitv2/components/errorMessageV2.scss +12 -12
  14. package/src/digitv2/components/fieldV1.scss +55 -55
  15. package/src/digitv2/components/fileUploadV2.scss +115 -115
  16. package/src/digitv2/components/filterCardV2.scss +50 -50
  17. package/src/digitv2/components/footerV2.scss +12 -12
  18. package/src/digitv2/components/formCardV2.scss +48 -48
  19. package/src/digitv2/components/hamburgerV2.scss +138 -138
  20. package/src/digitv2/components/headerV2.scss +48 -48
  21. package/src/digitv2/components/headerdropdownV2.scss +64 -64
  22. package/src/digitv2/components/infobuttonV2.scss +12 -12
  23. package/src/digitv2/components/labelFieldPairV2.scss +7 -7
  24. package/src/digitv2/components/landingpagecardV2.scss +66 -66
  25. package/src/digitv2/components/loaderV2.scss +3 -3
  26. package/src/digitv2/components/menuCardV2.scss +29 -29
  27. package/src/digitv2/components/metricCardV2.scss +49 -49
  28. package/src/digitv2/components/mobileNumberV2.scss +93 -3
  29. package/src/digitv2/components/multiSelectDropdownV2.scss +152 -152
  30. package/src/digitv2/components/otpInputV2.scss +23 -23
  31. package/src/digitv2/components/panelCardV2.scss +42 -42
  32. package/src/digitv2/components/panelV2.scss +28 -28
  33. package/src/digitv2/components/popUpV2.scss +85 -85
  34. package/src/digitv2/components/radiobtnV2.scss +21 -21
  35. package/src/digitv2/components/selectDropdownV2.scss +181 -181
  36. package/src/digitv2/components/selectionTagV2.scss +27 -27
  37. package/src/digitv2/components/sidePanelV2.scss +46 -46
  38. package/src/digitv2/components/sidenavV2.scss +114 -114
  39. package/src/digitv2/components/stepperV2.scss +54 -54
  40. package/src/digitv2/components/summaryCardFieldPairV2.scss +20 -20
  41. package/src/digitv2/components/summaryCardV2.scss +25 -25
  42. package/src/digitv2/components/switchV2.scss +30 -30
  43. package/src/digitv2/components/tabV2.scss +24 -24
  44. package/src/digitv2/components/tableV2.scss +138 -138
  45. package/src/digitv2/components/tagV2.scss +23 -23
  46. package/src/digitv2/components/textInputV2.scss +90 -89
  47. package/src/digitv2/components/textareaV2.scss +20 -20
  48. package/src/digitv2/components/textblockV2.scss +24 -24
  49. package/src/digitv2/components/timelineV2.scss +57 -57
  50. package/src/digitv2/components/toastV2.scss +21 -21
  51. package/src/digitv2/components/toggleV2.scss +45 -45
  52. package/src/digitv2/components/tooltipwrapperV2.scss +88 -88
  53. package/src/digitv2/components/treeSelectV2.scss +52 -52
  54. package/src/digitv2/index.scss +78 -78
  55. package/src/digitv2/pages/employee/boundaryFilter.scss +7 -7
  56. package/src/digitv2/pages/employee/inboxsearchcomposer.scss +41 -41
  57. package/src/digitv2/pages/employee/reactdatatable.scss +13 -13
  58. package/src/digitv2/pages/employee/workbench.scss +24 -24
  59. package/src/index.scss +3 -3
@@ -5,21 +5,21 @@
5
5
  position: relative;
6
6
  @media (max-aspect-ratio: 9/16) {
7
7
  /* Media query for mobile */
8
- gap: theme("digitv2.spacers.spacer4");
8
+ gap: var(--digitv2-spacers-spacer4);
9
9
  }
10
10
 
11
11
  @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
12
12
  /* Media query for tablets */
13
- gap: theme("digitv2.spacers.spacer5");
13
+ gap: var(--digitv2-spacers-spacer5);
14
14
  }
15
15
 
16
16
  @media (min-aspect-ratio: 3/4) {
17
17
  /* Media query for desktop */
18
- gap: theme("digitv2.spacers.spacer6");
18
+ gap: var(--digitv2-spacers-spacer6);
19
19
  }
20
20
 
21
21
  .metric-divider{
22
- margin: theme("digitv2.spacers.spacer0");
22
+ margin: var(--digitv2-spacers-spacer0);
23
23
  }
24
24
 
25
25
  .vertical-metric-divider{
@@ -27,22 +27,22 @@
27
27
 
28
28
  @media (max-aspect-ratio: 9/16) {
29
29
  /* Media query for mobile */
30
- top: theme("digitv2.spacers.spacer4");
30
+ top: var(--digitv2-spacers-spacer4);
31
31
  height: calc(100% - 2rem);
32
32
  }
33
33
 
34
34
  @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
35
35
  /* Media query for tablets */
36
- top: theme("digitv2.spacers.spacer5");
36
+ top: var(--digitv2-spacers-spacer5);
37
37
  height: calc(100% - 2.5rem);
38
38
  }
39
39
 
40
40
  @media (min-aspect-ratio: 3/4) {
41
41
  /* Media query for desktop */
42
- top: theme("digitv2.spacers.spacer6");
42
+ top: var(--digitv2-spacers-spacer6);
43
43
  height: calc(100% - 3rem);
44
44
  }
45
- border: 0.063rem solid theme("digitv2.lightTheme.generic-divider");
45
+ border: 0.063rem solid var(--digitv2-lightTheme-generic-divider);
46
46
  z-index: 1;
47
47
  }
48
48
  }
@@ -53,45 +53,45 @@
53
53
  align-items: center;
54
54
  justify-content: center;
55
55
  flex-direction: column;
56
- gap: theme("digitv2.spacers.spacer1");
57
- padding: theme("digitv2.spacers.spacer4");
56
+ gap: var(--digitv2-spacers-spacer1);
57
+ padding: var(--digitv2-spacers-spacer4);
58
58
 
59
59
  .metric-value {
60
60
  @include typography-heading-l;
61
- color: theme("digitv2.lightTheme.primary-2");
61
+ color: var(--digitv2-lightTheme-primary-2);
62
62
  line-height: normal;
63
63
  }
64
64
 
65
65
  .metric-description {
66
66
  @include typography-body-s;
67
67
  text-align: center;
68
- color: theme("digitv2.lightTheme.text-primary");
68
+ color: var(--digitv2-lightTheme-text-primary);
69
69
 
70
70
  @media (max-aspect-ratio: 9/16) {
71
71
  /* Media query for mobile */
72
- font-size: theme("digitv2.fontSize.body-s.mobile");
73
- font-family: theme("digitv2.fontFamily.sans");
74
- font-style: theme("digitv2.fontStyle.normal");
75
- font-weight: theme("digitv2.fontWeight.regular");
76
- line-height: theme("digitv2.lineHeight.lineheight2");
72
+ font-size: var( --digitv2-fontSize-body-s-mobile);
73
+ font-family: var(--digitv2-fontFamily-sans);
74
+ font-style: var(--digitv2-fontStyle-normal);
75
+ font-weight: var(--digitv2-fontWeight-regular);
76
+ line-height: var(--digitv2-lineHeight-lineheight2);
77
77
  }
78
78
 
79
79
  @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
80
80
  /* Media query for tablets */
81
- font-size: theme("digitv2.fontSize.body-s.tablet");
82
- font-family: theme("digitv2.fontFamily.sans");
83
- font-style: theme("digitv2.fontStyle.normal");
84
- font-weight: theme("digitv2.fontWeight.regular");
85
- line-height: theme("digitv2.lineHeight.lineheight2");
81
+ font-size: var( --digitv2-fontSize-body-s-tablet);
82
+ font-family: var(--digitv2-fontFamily-sans);
83
+ font-style: var(--digitv2-fontStyle-normal);
84
+ font-weight: var(--digitv2-fontWeight-regular);
85
+ line-height: var(--digitv2-lineHeight-lineheight2);
86
86
  }
87
87
 
88
88
  @media (min-aspect-ratio: 3/4) {
89
89
  /* Media query for desktop */
90
- font-size: theme("digitv2.fontSize.body-s.desktop");
91
- font-family: theme("digitv2.fontFamily.sans");
92
- font-style: theme("digitv2.fontStyle.normal");
93
- font-weight: theme("digitv2.fontWeight.regular");
94
- line-height: theme("digitv2.lineHeight.lineheight2");
90
+ font-size: var( --digitv2-fontSize-body-s-desktop);
91
+ font-family: var(--digitv2-fontFamily-sans);
92
+ font-style: var(--digitv2-fontStyle-normal);
93
+ font-weight: var(--digitv2-fontWeight-regular);
94
+ line-height: var(--digitv2-lineHeight-lineheight2);
95
95
  }
96
96
  }
97
97
 
@@ -101,54 +101,54 @@
101
101
  text-align: center;
102
102
  align-items: center;
103
103
  justify-content: center;
104
- gap: theme("digitv2.spacers.spacer1");
104
+ gap: var(--digitv2-spacers-spacer1);
105
105
 
106
106
  @media (max-aspect-ratio: 9/16) {
107
107
  /* Media query for mobile */
108
- font-size: theme("digitv2.fontSize.body-xs.mobile");
109
- font-family: theme("digitv2.fontFamily.sans");
110
- font-style: theme("digitv2.fontStyle.normal");
111
- font-weight: theme("digitv2.fontWeight.regular");
112
- line-height: theme("digitv2.lineHeight.lineheight2");
108
+ font-size: var(--digitv2-fontSize-body-xs-mobile);
109
+ font-family: var(--digitv2-fontFamily-sans);
110
+ font-style: var(--digitv2-fontStyle-normal);
111
+ font-weight: var(--digitv2-fontWeight-regular);
112
+ line-height: var(--digitv2-lineHeight-lineheight2);
113
113
  }
114
114
 
115
115
  @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
116
116
  /* Media query for tablets */
117
- font-size: theme("digitv2.fontSize.body-xs.tablet");
118
- font-family: theme("digitv2.fontFamily.sans");
119
- font-style: theme("digitv2.fontStyle.normal");
120
- font-weight: theme("digitv2.fontWeight.regular");
121
- line-height: theme("digitv2.lineHeight.lineheight2");
117
+ font-size: var(--digitv2-fontSize-body-xs-tablet);
118
+ font-family: var(--digitv2-fontFamily-sans);
119
+ font-style: var(--digitv2-fontStyle-normal);
120
+ font-weight: var(--digitv2-fontWeight-regular);
121
+ line-height: var(--digitv2-lineHeight-lineheight2);
122
122
  }
123
123
 
124
124
  @media (min-aspect-ratio: 3/4) {
125
125
  /* Media query for desktop */
126
- font-size: theme("digitv2.fontSize.body-xs.desktop");
127
- font-family: theme("digitv2.fontFamily.sans");
128
- font-style: theme("digitv2.fontStyle.normal");
129
- font-weight: theme("digitv2.fontWeight.regular");
130
- line-height: theme("digitv2.lineHeight.lineheight2");
126
+ font-size: var(--digitv2-fontSize-body-xs-desktop);
127
+ font-family: var(--digitv2-fontFamily-sans);
128
+ font-style: var(--digitv2-fontStyle-normal);
129
+ font-weight: var(--digitv2-fontWeight-regular);
130
+ line-height: var(--digitv2-lineHeight-lineheight2);
131
131
  }
132
132
 
133
133
 
134
134
  svg {
135
135
  flex-shrink: 0;
136
- width: theme("digitv2.spacers.spacer4");
137
- height: theme("digitv2.spacers.spacer4");
136
+ width: var(--digitv2-spacers-spacer4);
137
+ height: var(--digitv2-spacers-spacer4);
138
138
  }
139
139
 
140
- color: theme("digitv2.lightTheme.primary-1");
140
+ color: var(--digitv2-lightTheme-primary-1);
141
141
 
142
142
  &.Increased {
143
- color: theme("digitv2.lightTheme.alert-success");
143
+ color: var(--digitv2-lightTheme-alert-success);
144
144
  }
145
145
 
146
146
  &.Decreased {
147
- color: theme("digitv2.lightTheme.alert-error");
147
+ color: var(--digitv2-lightTheme-alert-error);
148
148
  }
149
149
 
150
150
  &.Nochange {
151
- color: theme("digitv2.lightTheme.alert-info");
151
+ color: var(--digitv2-lightTheme-alert-info);
152
152
  }
153
153
  }
154
154
  }
@@ -23,7 +23,7 @@
23
23
  max-width: 37.5rem;
24
24
  min-width: 12.5rem;
25
25
  }
26
-
26
+
27
27
  .digit-text-mobile-input-width {
28
28
  .digit-text-input-width {
29
29
  width: calc(540px - 41px);
@@ -43,8 +43,8 @@
43
43
  .digit-citizen-card-input {
44
44
  @include typography-text-body-s;
45
45
  @apply pl-sm outline-none block w-full h-10 bg-white leading-10 text-form-field;
46
- border: 1px solid theme("digitv2.lightTheme.text-secondary");
47
- color: theme("digitv2.lightTheme.text-primary");
46
+ border: 1px solid var(--digitv2-lightTheme-text-secondary);
47
+ color: var(--digitv2-lightTheme-text-primary);
48
48
  }
49
49
 
50
50
  .digit-citizen-card-input--front {
@@ -62,4 +62,94 @@
62
62
  @extend .alert-error;
63
63
  @apply mb-lg pl-sm block w-full h-10 outline-none border-2 border-solid bg-white leading-10 text-form-field text-text-primary;
64
64
  }
65
+
66
+ // Country code dropdown styles
67
+ .digit-country-code-dropdown {
68
+ flex-shrink: 0;
69
+ width: 7.5rem;
70
+ position: relative;
71
+ overflow: visible;
72
+ height: 40px;
73
+
74
+ .digit-dropdown-employee-select-wrap,
75
+ .digit-dropdown-select-wrap {
76
+ width: 100%;
77
+ min-width: unset;
78
+ max-width: unset;
79
+ overflow: visible;
80
+ }
81
+
82
+ .digit-dropdown-select,
83
+ .digit-dropdown-select-active {
84
+ height: var(--digitv2-spacers-spacer10);
85
+ border-top-right-radius: 0 !important;
86
+ border-bottom-right-radius: 0 !important;
87
+ border-right: none !important;
88
+ border-top-left-radius: var(--digitv2-borderRadius-radius2);
89
+ border-bottom-left-radius: var(--digitv2-borderRadius-radius2);
90
+ }
91
+
92
+ .digit-dropdown-employee-select-wrap--elipses {
93
+ @apply font-bold;
94
+ font-size: var(--digitv2-spacers-spacer4);
95
+ color: var(--digitv2-lightTheme-text-secondary);
96
+ }
97
+ }
98
+
99
+ &.has-country-dropdown {
100
+ // The text input field should take remaining width
101
+ > .digit-text-input-field {
102
+ flex: 1;
103
+ min-width: 0;
104
+ }
105
+
106
+ // Remove left border-radius from inputs so they merge with dropdown
107
+ .digit-text-input-field {
108
+ .digit-employeeCard-input,
109
+ .digit-citizenCard-input,
110
+ .digit-employeeCard-inputError,
111
+ .digit-card-inputError {
112
+ border-top-left-radius: 0 !important;
113
+ border-bottom-left-radius: 0 !important;
114
+ }
115
+ }
116
+
117
+ .digit-dropdown-select {
118
+ border-color: #787878;
119
+ }
120
+
121
+ .digit-country-code-dropdown {
122
+ .digit-dropdown-select,
123
+ .digit-dropdown-select-active {
124
+ border-right: none !important;
125
+
126
+ &.disabled{
127
+ input{
128
+ color: #787878;
129
+ }
130
+ }
131
+ }
132
+ }
133
+
134
+ // Unified focus state — highlight both dropdown and input as one unit
135
+ &:focus-within {
136
+ .digit-country-code-dropdown {
137
+ .digit-dropdown-select,
138
+ .digit-dropdown-select-active {
139
+ border-color: var(--digitv2-lightTheme-primary-1) !important;
140
+ border-right: none !important;
141
+ }
142
+ }
143
+
144
+ .digit-text-input-field {
145
+ .digit-employeeCard-input,
146
+ .digit-citizenCard-input,
147
+ .digit-employeeCard-inputError,
148
+ .digit-card-inputError {
149
+ border-color: var(--digitv2-lightTheme-primary-1) !important;
150
+ }
151
+ }
152
+ }
153
+ }
65
154
  }
155
+