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

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 (48) hide show
  1. package/CHANGELOG.md +88 -84
  2. package/README.md +80 -80
  3. package/dist/index.css +612 -26
  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 +207 -0
  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 +451 -426
  12. package/src/digitv2/components/cardV2.scss +497 -484
  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 +152 -0
  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/multiSelectDropdownV2.scss +315 -315
  26. package/src/digitv2/components/panelCardV2.scss +160 -160
  27. package/src/digitv2/components/panelV2.scss +114 -114
  28. package/src/digitv2/components/popUpV2.scss +330 -319
  29. package/src/digitv2/components/radiobtnV2.scss +115 -115
  30. package/src/digitv2/components/selectDropdownV2.scss +364 -364
  31. package/src/digitv2/components/stepperV2.scss +147 -147
  32. package/src/digitv2/components/textInputV2.scss +462 -462
  33. package/src/digitv2/components/textareaV2.scss +99 -99
  34. package/src/digitv2/components/textblockV2.scss +46 -46
  35. package/src/digitv2/components/timelineV2.scss +171 -159
  36. package/src/digitv2/components/toastV2.scss +80 -80
  37. package/src/digitv2/components/toggleV2.scss +72 -72
  38. package/src/digitv2/components/topbarV2.scss +388 -0
  39. package/src/digitv2/components/treeSelectV2.scss +132 -132
  40. package/src/digitv2/components/uploaderV2.scss +556 -556
  41. package/src/digitv2/components/viewCardFieldPairV2.scss +44 -44
  42. package/src/digitv2/index.scss +169 -168
  43. package/src/digitv2/pages/employee/index.scss +1 -1
  44. package/src/digitv2/pages/employee/workbench.scss +615 -615
  45. package/src/digitv2/typography.scss +638 -638
  46. package/src/index.scss +681 -681
  47. package/src/pages/employee/index.scss +625 -625
  48. package/src/pages/employee/login.scss +220 -220
@@ -1,100 +1,100 @@
1
- .digit-card-textarea-field,
2
- .digit-employee-card-textarea-field {
3
- @apply block outline-none w-full bg-white text-form-field overflow-x-hidden overflow-y-hidden whitespace-pre-wrap;
4
-
5
-
6
- font-family: theme(digitv2.fontFamily.sans);
7
- font-style: theme(digitv2.fontStyle.normal);
8
- font-weight: theme(digitv2.fontWeight.regular);
9
- color: theme(digitv2.lightTheme.text-primary);
10
- border: 0.063rem solid theme(digitv2.lightTheme.text-secondary);
11
- font-size: theme(digitv2.spacers.spacer4);
12
- line-height: theme(digitv2.spacers.spacer6);
13
- padding: theme(digitv2.spacers.spacer3) !important;
14
- padding-top: theme(digitv2.spacers.spacer2) !important;
15
- height: 6.25rem;
16
- min-height:theme(digitv2.spacers.spacer10);
17
- overflow-wrap: break-word;
18
-
19
-
20
- &.disabled {
21
- @apply text-grey-dark !important;
22
- border: 0.063rem solid theme(digitv2.lightTheme.generic-divider);
23
- pointer-events: none !important;
24
- cursor: not-allowed;
25
-
26
- }
27
-
28
- &.noneditable {
29
- pointer-events: none !important;
30
- border: 0.063rem solid theme(digitv2.lightTheme.generic-inputborder);
31
- background: theme(digitv2.lightTheme.generic-background);
32
- color: theme(digitv2.lightTheme.text-secondary);
33
- }
34
-
35
- &.error {
36
- border: 0.094rem solid theme(digitv2.lightTheme.alert-error);
37
- }
38
-
39
- &:hover {
40
- overflow-y: auto;
41
- }
42
-
43
- &.resize-smart {
44
- min-height: 6rem;
45
- overflow: hidden;
46
- resize: none;
47
- }
48
- }
49
-
50
- textarea::-webkit-scrollbar {
51
- width: theme(digitv2.spacers.spacer2);
52
- background-color: theme(digitv2.lightTheme.generic-background);
53
- }
54
-
55
- textarea::-webkit-scrollbar-track {
56
- background-color: theme(digitv2.lightTheme.generic-background);
57
- border-radius: 0.563rem;
58
- }
59
-
60
- textarea::-webkit-scrollbar-thumb {
61
- background-color: theme(digitv2.lightTheme.generic-divider);
62
- border-radius: 0.563rem;
63
- }
64
-
65
- .digit-employee-card-textarea-field {
66
- @apply w-full;
67
- height: 6.25rem;
68
-
69
- @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
70
- /* Media query for tablets */
71
- max-width: 27.5rem;
72
- min-width: 12.5rem;
73
- }
74
-
75
- @media (max-aspect-ratio: 9/16) {
76
- /* Media query for mobile */
77
- max-width:100%;
78
- min-width: 9.75rem;
79
- width: 100%;
80
- }
81
-
82
- @media (min-aspect-ratio: 3/4) {
83
- /* Media query for desktop */
84
- max-width: 37.5rem;
85
- min-width: 12.5rem;
86
- }
87
- }
88
-
89
- .digit-card-textarea-field:focus,
90
- .digit-employee-card-textarea-field:focus {
91
- border: 0.094rem solid theme(digitv2.lightTheme.primary-1);
92
- overflow-y: auto;
93
- }
94
-
95
- .digit-card-textarea-field.resize-smart:focus,
96
- .digit-employee-card-textarea-field.resize-smart:focus,
97
- .digit-card-textarea-field.resize-smart:hover,
98
- .digit-employee-card-textarea-field.resize-smart:hover {
99
- overflow: hidden;
1
+ .digit-card-textarea-field,
2
+ .digit-employee-card-textarea-field {
3
+ @apply block outline-none w-full bg-white text-form-field overflow-x-hidden overflow-y-hidden whitespace-pre-wrap;
4
+
5
+
6
+ font-family: theme(digitv2.fontFamily.sans);
7
+ font-style: theme(digitv2.fontStyle.normal);
8
+ font-weight: theme(digitv2.fontWeight.regular);
9
+ color: theme(digitv2.lightTheme.text-primary);
10
+ border: 0.063rem solid theme(digitv2.lightTheme.text-secondary);
11
+ font-size: theme(digitv2.spacers.spacer4);
12
+ line-height: theme(digitv2.spacers.spacer6);
13
+ padding: theme(digitv2.spacers.spacer3) !important;
14
+ padding-top: theme(digitv2.spacers.spacer2) !important;
15
+ height: 6.25rem;
16
+ min-height:theme(digitv2.spacers.spacer10);
17
+ overflow-wrap: break-word;
18
+
19
+
20
+ &.disabled {
21
+ @apply text-grey-dark !important;
22
+ border: 0.063rem solid theme(digitv2.lightTheme.generic-divider);
23
+ pointer-events: none !important;
24
+ cursor: not-allowed;
25
+
26
+ }
27
+
28
+ &.noneditable {
29
+ pointer-events: none !important;
30
+ border: 0.063rem solid theme(digitv2.lightTheme.generic-inputborder);
31
+ background: theme(digitv2.lightTheme.generic-background);
32
+ color: theme(digitv2.lightTheme.text-secondary);
33
+ }
34
+
35
+ &.error {
36
+ border: 0.094rem solid theme(digitv2.lightTheme.alert-error);
37
+ }
38
+
39
+ &:hover {
40
+ overflow-y: auto;
41
+ }
42
+
43
+ &.resize-smart {
44
+ min-height: 6rem;
45
+ overflow: hidden;
46
+ resize: none;
47
+ }
48
+ }
49
+
50
+ textarea::-webkit-scrollbar {
51
+ width: theme(digitv2.spacers.spacer2);
52
+ background-color: theme(digitv2.lightTheme.generic-background);
53
+ }
54
+
55
+ textarea::-webkit-scrollbar-track {
56
+ background-color: theme(digitv2.lightTheme.generic-background);
57
+ border-radius: 0.563rem;
58
+ }
59
+
60
+ textarea::-webkit-scrollbar-thumb {
61
+ background-color: theme(digitv2.lightTheme.generic-divider);
62
+ border-radius: 0.563rem;
63
+ }
64
+
65
+ .digit-employee-card-textarea-field {
66
+ @apply w-full;
67
+ height: 6.25rem;
68
+
69
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
70
+ /* Media query for tablets */
71
+ max-width: 27.5rem;
72
+ min-width: 12.5rem;
73
+ }
74
+
75
+ @media (max-aspect-ratio: 9/16) {
76
+ /* Media query for mobile */
77
+ max-width:100%;
78
+ min-width: 9.75rem;
79
+ width: 100%;
80
+ }
81
+
82
+ @media (min-aspect-ratio: 3/4) {
83
+ /* Media query for desktop */
84
+ max-width: 37.5rem;
85
+ min-width: 12.5rem;
86
+ }
87
+ }
88
+
89
+ .digit-card-textarea-field:focus,
90
+ .digit-employee-card-textarea-field:focus {
91
+ border: 0.094rem solid theme(digitv2.lightTheme.primary-1);
92
+ overflow-y: auto;
93
+ }
94
+
95
+ .digit-card-textarea-field.resize-smart:focus,
96
+ .digit-employee-card-textarea-field.resize-smart:focus,
97
+ .digit-card-textarea-field.resize-smart:hover,
98
+ .digit-employee-card-textarea-field.resize-smart:hover {
99
+ overflow: hidden;
100
100
  }
@@ -1,47 +1,47 @@
1
- .digit-text-block-wrap {
2
-
3
- @apply flex flex-col;
4
-
5
- @media (min-width: 48rem) {
6
- gap: theme(digitv2.spacers.spacer6);
7
- }
8
-
9
- @media (min-width: 30.063rem) and (max-width: 47.938rem) {
10
- gap: theme(digitv2.spacers.spacer5);
11
- }
12
-
13
- @media (max-width: 30rem) {
14
- gap: theme(digitv2.spacers.spacer4);
15
- }
16
-
17
-
18
- .digit-text-block-header-content {
19
- .digit-text-block-caption {
20
- @extend .typography.caption-s;
21
- padding-bottom: theme(digitv2.spacers.spacer1);
22
- color: theme(digitv2.lightTheme.text-secondary);
23
- }
24
-
25
- .digit-text-block-header {
26
- @extend .typography.heading-xl;
27
- padding-bottom: theme(digitv2.spacers.spacer2);
28
- color: theme(digitv2.lightTheme.text-primary);
29
- line-height: normal;
30
-
31
- @media (max-width: 30rem) {
32
- padding-bottom: theme(digitv2.spacers.spacer1);
33
- }
34
- }
35
-
36
- .digit-text-block-subheader {
37
- @extend .typography.heading-m;
38
- color: theme(digitv2.lightTheme.text-secondary);
39
- line-height: normal;
40
- }
41
- }
42
-
43
- .digit-text-block-body {
44
- @extend .typography.body-s;
45
- color: theme(digitv2.lightTheme.generic-inputborder);
46
- }
1
+ .digit-text-block-wrap {
2
+
3
+ @apply flex flex-col;
4
+
5
+ @media (min-width: 48rem) {
6
+ gap: theme(digitv2.spacers.spacer6);
7
+ }
8
+
9
+ @media (min-width: 30.063rem) and (max-width: 47.938rem) {
10
+ gap: theme(digitv2.spacers.spacer5);
11
+ }
12
+
13
+ @media (max-width: 30rem) {
14
+ gap: theme(digitv2.spacers.spacer4);
15
+ }
16
+
17
+
18
+ .digit-text-block-header-content {
19
+ .digit-text-block-caption {
20
+ @extend .typography.caption-s;
21
+ padding-bottom: theme(digitv2.spacers.spacer1);
22
+ color: theme(digitv2.lightTheme.text-secondary);
23
+ }
24
+
25
+ .digit-text-block-header {
26
+ @extend .typography.heading-xl;
27
+ padding-bottom: theme(digitv2.spacers.spacer2);
28
+ color: theme(digitv2.lightTheme.text-primary);
29
+ line-height: normal;
30
+
31
+ @media (max-width: 30rem) {
32
+ padding-bottom: theme(digitv2.spacers.spacer1);
33
+ }
34
+ }
35
+
36
+ .digit-text-block-subheader {
37
+ @extend .typography.heading-m;
38
+ color: theme(digitv2.lightTheme.text-secondary);
39
+ line-height: normal;
40
+ }
41
+ }
42
+
43
+ .digit-text-block-body {
44
+ @extend .typography.body-s;
45
+ color: theme(digitv2.lightTheme.generic-inputborder);
46
+ }
47
47
  }
@@ -1,159 +1,171 @@
1
- .digit-timeline-item {
2
- @apply flex items-start relative ;
3
- gap: theme(digitv2.spacers.spacer4);
4
- }
5
-
6
- .timeline-circle {
7
- @apply relative flex-shrink-0 w-8 h-8;
8
- border-radius: 50%;
9
-
10
- @media (max-aspect-ratio: 9/16) {
11
- /* Media query for mobile */
12
- @apply w-6 h-6;
13
- }
14
- }
15
-
16
- .connector-line {
17
- @apply absolute bottom-0 border-solid border-border;
18
- border-left-width: 0.125rem;
19
- margin-left: 0.938rem;
20
- top: theme(digitv2.spacers.spacer8);
21
-
22
- &.completed,
23
- &.inprogress,
24
- &.nextActiveStep{
25
- border-color: theme(digitv2.lightTheme.primary-1);
26
- }
27
-
28
- &.nextActiveStep{
29
- border-style: dotted;
30
- }
31
-
32
- @media (max-aspect-ratio: 9/16) {
33
- /* Media query for mobile */
34
- margin-left: 0.688rem;
35
- top: theme(digitv2.spacers.spacer6);
36
- border-left-width: 0.063rem;
37
- }
38
- }
39
-
40
- .timeline-content,
41
- .timeline-info {
42
- @apply flex flex-col w-full;
43
- gap: theme(digitv2.spacers.spacer2);
44
- }
45
-
46
- .timeline-info{
47
- @media (max-aspect-ratio: 9/16) {
48
- /* Media query for mobile */
49
- gap: theme(digitv2.spacers.spacer1);
50
- }
51
- }
52
-
53
- .timeline-divider {
54
- border: 0.063rem solid theme(digitv2.lightTheme.divider);
55
- }
56
-
57
- .timeline-label {
58
- @extend .typography.heading-s;
59
- @apply whitespace-normal h-auto text-left;
60
- color: theme(digitv2.lightTheme.text-primary);
61
- word-break: break-word;
62
- padding-top: 0.414rem;
63
-
64
- @media (max-aspect-ratio: 9/16) {
65
- /* Media query for mobile */
66
- padding-top: 0.164rem;
67
- }
68
- }
69
-
70
- .timeline-date {
71
- @extend .typography.body-s;
72
- @apply text-left;
73
- color: theme(digitv2.lightTheme.text-secondary);
74
- }
75
-
76
- .timeline-toggle-details {
77
- @apply flex items-center cursor-pointer;
78
- gap: theme(digitv2.spacers.spacer1);
79
- width: fit-content;
80
- }
81
-
82
- .timeline-additional-elements-inline {
83
- @apply flex flex-wrap items-start;
84
- gap: theme(digitv2.spacers.spacer4);
85
- }
86
-
87
- .timeline-additional-elements-column {
88
- @apply flex flex-col items-start;
89
- gap: theme(digitv2.spacers.spacer4);
90
-
91
- .timeline-individual-element {
92
- @apply w-full max-w-full;
93
-
94
- }
95
- }
96
-
97
- img {
98
- @apply max-w-full;
99
- }
100
-
101
- .details-btn {
102
- @extend .typography.link;
103
- @apply text-left;
104
- background-color: transparent;
105
- border: none;
106
- color: theme(digitv2.lightTheme.primary-1);
107
- padding: theme(digitv2.spacers.spacer0);
108
- }
109
-
110
- /* Circle Variants */
111
- .timeline-circle,
112
- .timeline-circle.upcoming {
113
- background-color: theme(digitv2.lightTheme.text-disabled);
114
- }
115
-
116
- .timeline-circle.inprogress {
117
- background-color: transparent;
118
- border: 0.125rem solid theme(digitv2.lightTheme.primary-1);
119
- }
120
-
121
- .timeline-circle.inprogress::after {
122
- @apply absolute w-4 h-4;
123
- content: '';
124
- top: 50%;
125
- left: 50%;
126
- transform: translate(-50%, -50%);
127
- border-radius: 50%;
128
- background-color: theme(digitv2.lightTheme.primary-1);
129
-
130
- @media (max-aspect-ratio: 9/16) {
131
- /* Media query for mobile */
132
- @apply w-3 h-3;
133
- }
134
- }
135
-
136
- .timeline-circle.completed {
137
- background-color: theme(digitv2.lightTheme.primary-1);
138
-
139
- .check-icon {
140
- @apply w-6 h-6 absolute;
141
- top: 50%;
142
- left: 50%;
143
- transform: translate(-50%, -50%);
144
-
145
- @media (max-aspect-ratio: 9/16) {
146
- /* Media query for mobile */
147
- width: 1.125rem;
148
- height: 1.125rem;
149
- }
150
- }
151
- }
152
-
153
- .digit-timeline-molecule{
154
- @apply max-h-full;
155
- }
156
-
157
- .view-more-container {
158
- margin-top: theme(digitv2.spacers.spacer4);
159
- }
1
+ .digit-timeline-item {
2
+ @apply flex items-start relative ;
3
+ gap: theme(digitv2.spacers.spacer4);
4
+ }
5
+
6
+ .timeline-circle {
7
+ @apply relative flex-shrink-0 w-8 h-8;
8
+ border-radius: 50%;
9
+
10
+ @media (max-aspect-ratio: 9/16) {
11
+ /* Media query for mobile */
12
+ @apply w-6 h-6;
13
+ }
14
+ }
15
+
16
+ .connector-line {
17
+ @apply absolute bottom-0 border-solid border-border;
18
+ border-left-width: 0.125rem;
19
+ margin-left: 0.938rem;
20
+ top: theme(digitv2.spacers.spacer8);
21
+
22
+ &.completed,
23
+ &.inprogress,
24
+ &.nextActiveStep{
25
+ border-color: theme(digitv2.lightTheme.primary-1);
26
+ }
27
+
28
+ &.nextActiveStep{
29
+ border-style: dotted;
30
+ }
31
+
32
+ @media (max-aspect-ratio: 9/16) {
33
+ /* Media query for mobile */
34
+ margin-left: 0.688rem;
35
+ top: theme(digitv2.spacers.spacer6);
36
+ border-left-width: 0.063rem;
37
+ }
38
+ }
39
+
40
+ .timeline-content,
41
+ .timeline-info {
42
+ @apply flex flex-col w-full;
43
+ gap: theme(digitv2.spacers.spacer2);
44
+ }
45
+
46
+ .timeline-info{
47
+ @media (max-aspect-ratio: 9/16) {
48
+ /* Media query for mobile */
49
+ gap: theme(digitv2.spacers.spacer1);
50
+ }
51
+ }
52
+
53
+ .timeline-divider {
54
+ border: 0.063rem solid theme(digitv2.lightTheme.divider);
55
+ }
56
+
57
+ .timeline-label {
58
+ @extend .typography.heading-s;
59
+ @apply whitespace-normal h-auto text-left;
60
+ color: theme(digitv2.lightTheme.text-primary);
61
+ word-break: break-word;
62
+ padding-top: 0.414rem;
63
+
64
+ @media (max-aspect-ratio: 9/16) {
65
+ /* Media query for mobile */
66
+ padding-top: 0.164rem;
67
+ }
68
+ }
69
+
70
+ .timeline-date {
71
+ @extend .typography.body-s;
72
+ @apply text-left;
73
+ color: theme(digitv2.lightTheme.text-secondary);
74
+ }
75
+
76
+ .timeline-toggle-details {
77
+ @apply flex items-center cursor-pointer;
78
+ gap: theme(digitv2.spacers.spacer1);
79
+ width: fit-content;
80
+ }
81
+
82
+ .timeline-additional-elements-inline {
83
+ @apply flex flex-wrap items-start;
84
+ gap: theme(digitv2.spacers.spacer4);
85
+ }
86
+
87
+ .timeline-additional-elements-column {
88
+ @apply flex flex-col items-start;
89
+ gap: theme(digitv2.spacers.spacer4);
90
+
91
+ .timeline-individual-element {
92
+ @apply w-full max-w-full;
93
+
94
+ }
95
+ }
96
+
97
+ img {
98
+ @apply max-w-full;
99
+ }
100
+
101
+ /* Circle Variants */
102
+ .timeline-circle,
103
+ .timeline-circle.upcoming {
104
+ background-color: theme(digitv2.lightTheme.text-disabled);
105
+ }
106
+
107
+ .timeline-circle.inprogress {
108
+ background-color: transparent;
109
+ border: 0.125rem solid theme(digitv2.lightTheme.primary-1);
110
+ }
111
+
112
+ .timeline-circle.inprogress::after {
113
+ @apply absolute w-4 h-4;
114
+ content: '';
115
+ top: 50%;
116
+ left: 50%;
117
+ transform: translate(-50%, -50%);
118
+ border-radius: 50%;
119
+ background-color: theme(digitv2.lightTheme.primary-1);
120
+
121
+ @media (max-aspect-ratio: 9/16) {
122
+ /* Media query for mobile */
123
+ @apply w-3 h-3;
124
+ }
125
+ }
126
+
127
+ .timeline-circle.completed {
128
+ background-color: theme(digitv2.lightTheme.primary-1);
129
+
130
+ .check-icon {
131
+ @apply w-6 h-6 absolute;
132
+ top: 50%;
133
+ left: 50%;
134
+ transform: translate(-50%, -50%);
135
+
136
+ @media (max-aspect-ratio: 9/16) {
137
+ /* Media query for mobile */
138
+ width: 1.125rem;
139
+ height: 1.125rem;
140
+ }
141
+ }
142
+ }
143
+
144
+ .digit-timeline-molecule{
145
+ @apply max-h-full;
146
+
147
+ .timeline-content:not(.lastTimeline){
148
+
149
+ @media (min-aspect-ratio: 3/4) {
150
+ /* Media query for desktop */
151
+ margin-bottom: theme(digitv2.spacers.spacer6);
152
+ }
153
+
154
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
155
+ /* Media query for tablets */
156
+ margin-bottom: theme(digitv2.spacers.spacer5);
157
+ }
158
+ @media (max-aspect-ratio: 9/16) {
159
+ /* Media query for mobile */
160
+ margin-bottom: theme(digitv2.spacers.spacer4);
161
+ }
162
+ }
163
+ }
164
+
165
+ .view-more-past-container {
166
+ margin-top: theme(digitv2.spacers.spacer4);
167
+ }
168
+
169
+ .view-more-future-container {
170
+ margin-bottom: theme(digitv2.spacers.spacer4);
171
+ }