@egovernments/digit-ui-components-css 0.0.2-beta.11 → 0.0.2-beta.13

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 (51) hide show
  1. package/CHANGELOG.md +92 -88
  2. package/README.md +80 -80
  3. package/dist/index.css +810 -16
  4. package/dist/index.min.css +2 -2
  5. package/package.json +69 -69
  6. package/src/digitv2/components/FormComposerV2.scss +118 -118
  7. package/src/digitv2/components/actionbarV2.scss +206 -206
  8. package/src/digitv2/components/backLinkV2.scss +36 -36
  9. package/src/digitv2/components/bodyContainerV2.scss +39 -39
  10. package/src/digitv2/components/breadcrumbV2.scss +56 -56
  11. package/src/digitv2/components/buttonsV2.scss +450 -451
  12. package/src/digitv2/components/cardV2.scss +497 -497
  13. package/src/digitv2/components/cardbasedoptionsV2.scss +46 -46
  14. package/src/digitv2/components/cardlabelV2.scss +7 -7
  15. package/src/digitv2/components/checkboxV2.scss +83 -83
  16. package/src/digitv2/components/chipV2.scss +129 -129
  17. package/src/digitv2/components/dividerV2.scss +10 -10
  18. package/src/digitv2/components/errorMessageV2.scss +20 -20
  19. package/src/digitv2/components/fieldV1.scss +96 -96
  20. package/src/digitv2/components/headerdropdownV2.scss +151 -151
  21. package/src/digitv2/components/infoCardV2.scss +139 -139
  22. package/src/digitv2/components/infobuttonV2.scss +75 -75
  23. package/src/digitv2/components/labelFieldPairV2.scss +66 -66
  24. package/src/digitv2/components/mobileNumberV2.scss +65 -65
  25. package/src/digitv2/components/mobilesidebarV2.scss +439 -0
  26. package/src/digitv2/components/multiSelectDropdownV2.scss +315 -315
  27. package/src/digitv2/components/panelCardV2.scss +160 -160
  28. package/src/digitv2/components/panelV2.scss +114 -114
  29. package/src/digitv2/components/popUpV2.scss +330 -330
  30. package/src/digitv2/components/radiobtnV2.scss +115 -115
  31. package/src/digitv2/components/selectDropdownV2.scss +364 -364
  32. package/src/digitv2/components/sidebarV2.scss +409 -0
  33. package/src/digitv2/components/stepperV2.scss +147 -147
  34. package/src/digitv2/components/textInputV2.scss +462 -462
  35. package/src/digitv2/components/textareaV2.scss +99 -99
  36. package/src/digitv2/components/textblockV2.scss +46 -46
  37. package/src/digitv2/components/timelineV2.scss +170 -170
  38. package/src/digitv2/components/toastV2.scss +80 -80
  39. package/src/digitv2/components/toggleV2.scss +72 -72
  40. package/src/digitv2/components/tooltipwrapperV2.scss +96 -0
  41. package/src/digitv2/components/topbarV2.scss +387 -387
  42. package/src/digitv2/components/treeSelectV2.scss +132 -132
  43. package/src/digitv2/components/uploaderV2.scss +556 -556
  44. package/src/digitv2/components/viewCardFieldPairV2.scss +44 -44
  45. package/src/digitv2/index.scss +172 -169
  46. package/src/digitv2/pages/employee/index.scss +1 -1
  47. package/src/digitv2/pages/employee/workbench.scss +615 -615
  48. package/src/digitv2/typography.scss +638 -638
  49. package/src/index.scss +677 -681
  50. package/src/pages/employee/index.scss +625 -625
  51. package/src/pages/employee/login.scss +220 -220
@@ -1,97 +1,97 @@
1
- @import url("../index.scss");
2
-
3
- .digit-header-content {
4
-
5
- &.label {
6
- @extend .typography.body-l;
7
- @apply flex ;
8
- color: theme(digitv2.lightTheme.text-primary);
9
- gap: theme(digitv2.spacers.spacer1);
10
-
11
- &.wraplabel {
12
- @media (min-aspect-ratio: 9/16){
13
- height: fit-content;
14
- word-break: break-word;
15
- }
16
- }
17
-
18
- .label-container {
19
- @apply flex items-center w-full;
20
- gap: theme(digitv2.spacers.spacer1);
21
-
22
- &.wraplabel{
23
- @media (min-aspect-ratio: 9/16) {
24
- @apply items-end;
25
- }
26
- }
27
- }
28
-
29
- .info-icon {
30
- @apply relative cursor-pointer;
31
- width: 1.188rem;
32
- height: 1.188rem;
33
- }
34
-
35
- .info-icon .infotext {
36
- @extend .typography.body-s;
37
- @apply absolute text-center;
38
- visibility: hidden;
39
- width: 7.5rem;
40
- background-color: #555555;
41
- color: theme(digitv2.lightTheme.paper-primary);
42
- padding: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer0);
43
- z-index: 1;
44
- bottom: 100%;
45
- left: 50%;
46
- margin-left: -3.75rem;
47
- border-radius: 0.375rem;
48
- }
49
-
50
- .info-icon:hover .infotext {
51
- @apply visible;
52
- }
53
-
54
- .label-styles {
55
- @apply overflow-hidden whitespace-no-wrap;
56
- text-overflow: ellipsis;
57
-
58
- &.wraplabel {
59
- @media (min-aspect-ratio: 9/16){
60
- @apply whitespace-normal;
61
- }
62
- }
63
- }
64
- }
65
- }
66
-
67
- .digit-field {
68
-
69
- @apply flex flex-col w-full;
70
- gap: theme(digitv2.spacers.spacer1);
71
-
72
- .digit-description,
73
- .digit-charcount {
74
- @extend .typography.body-s;
75
- @apply flex justify-between items-baseline;
76
- color: theme(digitv2.lightTheme.text-secondary);
77
- gap: theme(digitv2.spacers.spacer2);
78
-
79
-
80
- @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
81
- max-width: 27.5rem;
82
- }
83
-
84
- @media (max-aspect-ratio: 9/16) {
85
- max-width: 100%;
86
- width: 100%;
87
- }
88
-
89
- @media (min-aspect-ratio: 3/4){
90
- max-width: 37.5rem;
91
- }
92
- }
93
-
94
- .digit-charcount {
95
- @apply justify-end;
96
- }
1
+ @import url("../index.scss");
2
+
3
+ .digit-header-content {
4
+
5
+ &.label {
6
+ @extend .typography.body-l;
7
+ @apply flex ;
8
+ color: theme(digitv2.lightTheme.text-primary);
9
+ gap: theme(digitv2.spacers.spacer1);
10
+
11
+ &.wraplabel {
12
+ @media (min-aspect-ratio: 9/16){
13
+ height: fit-content;
14
+ word-break: break-word;
15
+ }
16
+ }
17
+
18
+ .label-container {
19
+ @apply flex items-center w-full;
20
+ gap: theme(digitv2.spacers.spacer1);
21
+
22
+ &.wraplabel{
23
+ @media (min-aspect-ratio: 9/16) {
24
+ @apply items-end;
25
+ }
26
+ }
27
+ }
28
+
29
+ .info-icon {
30
+ @apply relative cursor-pointer;
31
+ width: 1.188rem;
32
+ height: 1.188rem;
33
+ }
34
+
35
+ .info-icon .infotext {
36
+ @extend .typography.body-s;
37
+ @apply absolute text-center;
38
+ visibility: hidden;
39
+ width: 7.5rem;
40
+ background-color: #555555;
41
+ color: theme(digitv2.lightTheme.paper-primary);
42
+ padding: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer0);
43
+ z-index: 1;
44
+ bottom: 100%;
45
+ left: 50%;
46
+ margin-left: -3.75rem;
47
+ border-radius: 0.375rem;
48
+ }
49
+
50
+ .info-icon:hover .infotext {
51
+ @apply visible;
52
+ }
53
+
54
+ .label-styles {
55
+ @apply overflow-hidden whitespace-no-wrap;
56
+ text-overflow: ellipsis;
57
+
58
+ &.wraplabel {
59
+ @media (min-aspect-ratio: 9/16){
60
+ @apply whitespace-normal;
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+
67
+ .digit-field {
68
+
69
+ @apply flex flex-col w-full;
70
+ gap: theme(digitv2.spacers.spacer1);
71
+
72
+ .digit-description,
73
+ .digit-charcount {
74
+ @extend .typography.body-s;
75
+ @apply flex justify-between items-baseline;
76
+ color: theme(digitv2.lightTheme.text-secondary);
77
+ gap: theme(digitv2.spacers.spacer2);
78
+
79
+
80
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
81
+ max-width: 27.5rem;
82
+ }
83
+
84
+ @media (max-aspect-ratio: 9/16) {
85
+ max-width: 100%;
86
+ width: 100%;
87
+ }
88
+
89
+ @media (min-aspect-ratio: 3/4){
90
+ max-width: 37.5rem;
91
+ }
92
+ }
93
+
94
+ .digit-charcount {
95
+ @apply justify-end;
96
+ }
97
97
  }
@@ -1,152 +1,152 @@
1
- .header-dropdown-profile {
2
- display: flex;
3
- align-items: center;
4
- justify-content: center;
5
- width: theme(digitv2.spacers.spacer8);
6
- height: theme(digitv2.spacers.spacer8);
7
- overflow: hidden;
8
- border-radius: 50%;
9
-
10
- &.text {
11
- color: theme(digitv2.lightTheme.paper-primary);
12
- font-weight: 700;
13
- background: theme(digitv2.lightTheme.primary-2);
14
- }
15
-
16
- &.dark {
17
- &.text {
18
- background: theme(digitv2.lightTheme.paper-primary);
19
- font-weight: 700;
20
- color: theme(digitv2.lightTheme.primary-2);
21
- }
22
- }
23
-
24
- img {
25
- width: 100%;
26
- height: auto;
27
- display: block;
28
- }
29
- }
30
-
31
- .header-dropdown-label {
32
- @extend .typography.body-s;
33
- cursor: pointer;
34
- display: flex;
35
- align-items: center;
36
- color: theme(digitv2.lightTheme.text-primary);
37
- position: relative;
38
-
39
- &.dark {
40
- color: theme(digitv2.lightTheme.paper-primary);
41
- }
42
- }
43
-
44
- .header-dropdown-arrow {
45
- margin-left: theme(digitv2.spacers.spacer2);
46
- width: theme(digitv2.spacers.spacer6);
47
- height: theme(digitv2.spacers.spacer6);
48
- }
49
-
50
- .header-dropdown-menu {
51
- width: fit-content !important;
52
- box-shadow: theme(digitv2.spacers.spacer0) 0.063rem 0.275rem theme(digitv2.spacers.spacer0) #00000026;
53
- max-height: 80%;
54
- background-color: theme(digitv2.lightTheme.paper-primary);
55
- margin-top: theme(digitv2.spacers.spacer5);
56
- position: fixed;
57
- min-width: 14rem;
58
- max-width: 25rem;
59
- @apply z-30 overflow-y-auto overflow-x-hidden;
60
- }
61
-
62
- .header-dropdown-search-container {
63
- height: 3.5rem;
64
- min-width: 14rem;
65
- max-width: 25rem;
66
- width: auto;
67
- padding: theme(digitv2.spacers.spacer3) !important;
68
- }
69
-
70
- .header-dropdown-search {
71
- height: theme(digitv2.spacers.spacer8) !important;
72
- min-width: 12.5rem;
73
- max-width: 23.5rem;
74
-
75
- .digit-text-input-customIcon {
76
- height: theme(digitv2.spacers.spacer5);
77
- width: theme(digitv2.spacers.spacer5);
78
- top: 0.4rem;
79
- right: theme(digitv2.spacers.spacer4);
80
- }
81
-
82
- .input-container {
83
- max-height: 100%;
84
- }
85
-
86
- input {
87
- max-height: 100%;
88
- }
89
- }
90
-
91
- .header-dropdown-options {
92
- max-height: 12.5rem;
93
- overflow-y: auto;
94
- }
95
-
96
- .header-dropdown-option {
97
- @extend .typography.body-s;
98
- @apply whitespace-no-wrap w-full max-w-full overflow-hidden;
99
- padding: theme(digitv2.spacers.spacer4) 0.625rem;
100
- color: theme(digitv2.lightTheme.text-primary);
101
- gap: theme(digitv2.spacers.spacer2);
102
- height: theme(digitv2.spacers.spacer10);
103
- display: flex;
104
- align-items: center;
105
- word-break: break-word;
106
- text-overflow: ellipsis;
107
- cursor: pointer;
108
-
109
- svg {
110
- flex-shrink: 0;
111
- }
112
- }
113
-
114
- .header-dropdown-option:not(:hover):not(:active):nth-of-type(2n +1) {
115
- background-color: theme(digitv2.lightTheme.paper-secondary);
116
- }
117
-
118
- .header-dropdown-nooption {
119
- @extend .typography.body-s;
120
- padding: theme(digitv2.spacers.spacer2);
121
- pointer-events: none;
122
- color: theme(digitv2.lightTheme.text-disabled);
123
- background-color: theme(digitv2.lightTheme.paper-secondary);
124
- }
125
-
126
- .header-dropdown-option:hover,
127
- .header-dropdown-option.keyChange {
128
- background: theme(digitv2.lightTheme.primary-bg) !important;
129
- border: 0.031rem solid theme(digitv2.lightTheme.primary-1);
130
- }
131
-
132
- .header-dropdown-option:active,
133
- .header-dropdown-option.activeIndex {
134
- @extend .typography.heading-s;
135
- background: theme(digitv2.lightTheme.primary-1) !important;
136
- color: theme(digitv2.lightTheme.paper-primary);
137
- }
138
-
139
- .header-dropdown-options::-webkit-scrollbar {
140
- width: theme(digitv2.spacers.spacer2);
141
- background-color: theme(digitv2.lightTheme.generic-background);
142
- }
143
-
144
- .header-dropdown-options::-webkit-scrollbar-track {
145
- background-color: theme(digitv2.lightTheme.generic-background);
146
- border-radius: 0.563rem;
147
- }
148
-
149
- .header-dropdown-options::-webkit-scrollbar-thumb {
150
- background-color: theme(digitv2.lightTheme.generic-divider);
151
- border-radius: 0.563rem;
1
+ .header-dropdown-profile {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ width: theme(digitv2.spacers.spacer8);
6
+ height: theme(digitv2.spacers.spacer8);
7
+ overflow: hidden;
8
+ border-radius: 50%;
9
+
10
+ &.text {
11
+ color: theme(digitv2.lightTheme.paper-primary);
12
+ font-weight: 700;
13
+ background: theme(digitv2.lightTheme.primary-2);
14
+ }
15
+
16
+ &.dark {
17
+ &.text {
18
+ background: theme(digitv2.lightTheme.paper-primary);
19
+ font-weight: 700;
20
+ color: theme(digitv2.lightTheme.primary-2);
21
+ }
22
+ }
23
+
24
+ img {
25
+ width: 100%;
26
+ height: auto;
27
+ display: block;
28
+ }
29
+ }
30
+
31
+ .header-dropdown-label {
32
+ @extend .typography.body-s;
33
+ cursor: pointer;
34
+ display: flex;
35
+ align-items: center;
36
+ color: theme(digitv2.lightTheme.text-primary);
37
+ position: relative;
38
+
39
+ &.dark {
40
+ color: theme(digitv2.lightTheme.paper-primary);
41
+ }
42
+ }
43
+
44
+ .header-dropdown-arrow {
45
+ margin-left: theme(digitv2.spacers.spacer2);
46
+ width: theme(digitv2.spacers.spacer6);
47
+ height: theme(digitv2.spacers.spacer6);
48
+ }
49
+
50
+ .header-dropdown-menu {
51
+ width: fit-content !important;
52
+ box-shadow: theme(digitv2.spacers.spacer0) 0.063rem 0.275rem theme(digitv2.spacers.spacer0) #00000026;
53
+ max-height: 80%;
54
+ background-color: theme(digitv2.lightTheme.paper-primary);
55
+ margin-top: theme(digitv2.spacers.spacer5);
56
+ position: fixed;
57
+ min-width: 14rem;
58
+ max-width: 25rem;
59
+ @apply z-30 overflow-y-auto overflow-x-hidden;
60
+ }
61
+
62
+ .header-dropdown-search-container {
63
+ height: 3.5rem;
64
+ min-width: 14rem;
65
+ max-width: 25rem;
66
+ width: auto;
67
+ padding: theme(digitv2.spacers.spacer3) !important;
68
+ }
69
+
70
+ .header-dropdown-search {
71
+ height: theme(digitv2.spacers.spacer8) !important;
72
+ min-width: 12.5rem;
73
+ max-width: 23.5rem;
74
+
75
+ .digit-text-input-customIcon {
76
+ height: theme(digitv2.spacers.spacer5);
77
+ width: theme(digitv2.spacers.spacer5);
78
+ top: 0.4rem;
79
+ right: theme(digitv2.spacers.spacer4);
80
+ }
81
+
82
+ .input-container {
83
+ max-height: 100%;
84
+ }
85
+
86
+ input {
87
+ max-height: 100%;
88
+ }
89
+ }
90
+
91
+ .header-dropdown-options {
92
+ max-height: 12.5rem;
93
+ overflow-y: auto;
94
+ }
95
+
96
+ .header-dropdown-option {
97
+ @extend .typography.body-s;
98
+ @apply whitespace-no-wrap w-full max-w-full overflow-hidden;
99
+ padding: theme(digitv2.spacers.spacer4) 0.625rem;
100
+ color: theme(digitv2.lightTheme.text-primary);
101
+ gap: theme(digitv2.spacers.spacer2);
102
+ height: theme(digitv2.spacers.spacer10);
103
+ display: flex;
104
+ align-items: center;
105
+ word-break: break-word;
106
+ text-overflow: ellipsis;
107
+ cursor: pointer;
108
+
109
+ svg {
110
+ flex-shrink: 0;
111
+ }
112
+ }
113
+
114
+ .header-dropdown-option:not(:hover):not(:active):nth-of-type(2n +1) {
115
+ background-color: theme(digitv2.lightTheme.paper-secondary);
116
+ }
117
+
118
+ .header-dropdown-nooption {
119
+ @extend .typography.body-s;
120
+ padding: theme(digitv2.spacers.spacer2);
121
+ pointer-events: none;
122
+ color: theme(digitv2.lightTheme.text-disabled);
123
+ background-color: theme(digitv2.lightTheme.paper-secondary);
124
+ }
125
+
126
+ .header-dropdown-option:hover,
127
+ .header-dropdown-option.keyChange {
128
+ background: theme(digitv2.lightTheme.primary-bg) !important;
129
+ border: 0.031rem solid theme(digitv2.lightTheme.primary-1);
130
+ }
131
+
132
+ .header-dropdown-option:active,
133
+ .header-dropdown-option.activeIndex {
134
+ @extend .typography.heading-s;
135
+ background: theme(digitv2.lightTheme.primary-1) !important;
136
+ color: theme(digitv2.lightTheme.paper-primary);
137
+ }
138
+
139
+ .header-dropdown-options::-webkit-scrollbar {
140
+ width: theme(digitv2.spacers.spacer2);
141
+ background-color: theme(digitv2.lightTheme.generic-background);
142
+ }
143
+
144
+ .header-dropdown-options::-webkit-scrollbar-track {
145
+ background-color: theme(digitv2.lightTheme.generic-background);
146
+ border-radius: 0.563rem;
147
+ }
148
+
149
+ .header-dropdown-options::-webkit-scrollbar-thumb {
150
+ background-color: theme(digitv2.lightTheme.generic-divider);
151
+ border-radius: 0.563rem;
152
152
  }