@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,47 +1,47 @@
1
- .digit-card-based-options {
2
- box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.16);
3
- @apply bg-white mb-md px-sm py-md mx-sm rounded w-full;
4
- .digit-head-content {
5
- @apply flex justify-between mb-lg;
6
- h2 {
7
- @apply text-heading-s font-bold text-text-primary;
8
- }
9
- p {
10
- @apply text-link text-primary-main font-medium cursor-pointer;
11
- }
12
- }
13
-
14
- .digit-main-content {
15
- @apply flex justify-evenly;
16
- .digit-card-based-options-main-child-option {
17
- width: 25%;
18
- @apply text-center;
19
- .digit-child-option-image-wrapper {
20
- margin: auto !important;
21
- background: rgba(244, 119, 56, 0.12);
22
- mix-blend-mode: normal;
23
- padding-top: 14px;
24
- @apply h-12 w-12 rounded-full cursor-pointer;
25
- svg {
26
- height: 20px;
27
- width: 20px;
28
- fill: theme(colors.primary.main);
29
- margin: auto;
30
- }
31
- }
32
- .digit-child-option-name {
33
- font-size: 12px;
34
- line-height: 14px;
35
- padding-top: 1rem;
36
- }
37
- }
38
- }
39
- }
40
-
41
- @screen dt {
42
- .digit-card-based-options {
43
- width: calc(50% - 16px);
44
- @apply p-md;
45
- }
46
- }
1
+ .digit-card-based-options {
2
+ box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.16);
3
+ @apply bg-white mb-md px-sm py-md mx-sm rounded w-full;
4
+ .digit-head-content {
5
+ @apply flex justify-between mb-lg;
6
+ h2 {
7
+ @apply text-heading-s font-bold text-text-primary;
8
+ }
9
+ p {
10
+ @apply text-link text-primary-main font-medium cursor-pointer;
11
+ }
12
+ }
13
+
14
+ .digit-main-content {
15
+ @apply flex justify-evenly;
16
+ .digit-card-based-options-main-child-option {
17
+ width: 25%;
18
+ @apply text-center;
19
+ .digit-child-option-image-wrapper {
20
+ margin: auto !important;
21
+ background: rgba(244, 119, 56, 0.12);
22
+ mix-blend-mode: normal;
23
+ padding-top: 14px;
24
+ @apply h-12 w-12 rounded-full cursor-pointer;
25
+ svg {
26
+ height: 20px;
27
+ width: 20px;
28
+ fill: theme(colors.primary.main);
29
+ margin: auto;
30
+ }
31
+ }
32
+ .digit-child-option-name {
33
+ font-size: 12px;
34
+ line-height: 14px;
35
+ padding-top: 1rem;
36
+ }
37
+ }
38
+ }
39
+ }
40
+
41
+ @screen dt {
42
+ .digit-card-based-options {
43
+ width: calc(50% - 16px);
44
+ @apply p-md;
45
+ }
46
+ }
47
47
 
@@ -1,8 +1,8 @@
1
- @import url("../typography.scss");
2
-
3
- .digit-card-label {
4
- font-weight: theme(digitv2.fontWeight.regular);
5
- font-size: 16px;
6
- line-height: 19px;
7
- color: theme(digitv2.lightTheme.text-primary);
1
+ @import url("../typography.scss");
2
+
3
+ .digit-card-label {
4
+ font-weight: theme(digitv2.fontWeight.regular);
5
+ font-size: 16px;
6
+ line-height: 19px;
7
+ color: theme(digitv2.lightTheme.text-primary);
8
8
  }
@@ -1,84 +1,84 @@
1
- @import url("../index.scss");
2
-
3
- .digit-checkbox-container {
4
- @apply flex mb-md relative;
5
- gap: theme(digitv2.spacers.spacer4);
6
-
7
- input {
8
- @apply opacity-0 absolute cursor-pointer z-10;
9
- @extend .light-input-border;
10
- width: theme(digitv2.spacers.spacer8);
11
- height: theme(digitv2.spacers.spacer8);
12
- left: -15%;
13
- }
14
-
15
- .input-emp {
16
- @extend input ;
17
- }
18
-
19
- .digit-custom-checkbox {
20
- @apply flex items-center border border-solid border-text-secondary justify-center;
21
- width: theme(digitv2.spacers.spacer6);
22
- height: theme(digitv2.spacers.spacer6);
23
-
24
- img,
25
- svg {
26
- @apply opacity-0;
27
- }
28
-
29
- svg{
30
- flex-shrink: 0;
31
- }
32
-
33
- &:hover {
34
- @apply border-2 ;
35
- border-color: theme(digitv2.lightTheme.primary-1);
36
- }
37
- }
38
-
39
- .digit-custom-checkbox-emp {
40
- @extend .digit-custom-checkbox;
41
- }
42
-
43
- input:hover~.digit-custom-checkbox {
44
- @apply border-2;
45
- border-color: theme(digitv2.lightTheme.primary-1);
46
- }
47
-
48
- input:checked~.digit-custom-checkbox {
49
- border: 0.125rem solid theme(digitv2.lightTheme.primary-1);
50
- }
51
-
52
-
53
- input:checked~.digit-custom-checkbox img {
54
- @apply opacity-100;
55
- }
56
-
57
- input:checked~.digit-custom-checkbox svg {
58
- @apply opacity-100;
59
- width: theme(digitv2.spacers.spacer4);
60
- height: theme(digitv2.spacers.spacer4);
61
- }
62
-
63
- .label {
64
- @extend .typography.body-s;
65
- @apply text-left;
66
- word-break: break-word;
67
- letter-spacing: theme(digitv2.spacers.spacer0);
68
- color: theme(digitv2.lightTheme.text-primary);
69
- }
70
-
71
- &.disabled {
72
- .label {
73
- color: theme(digitv2.lightTheme.text-disabled);
74
- }
75
-
76
- .digit-custom-checkbox {
77
- border: 0.063rem solid theme(digitv2.lightTheme.text-disabled);
78
- }
79
-
80
- input:checked~.digit-custom-checkbox {
81
- border: 0.125rem solid theme(digitv2.lightTheme.text-disabled);
82
- }
83
- }
1
+ @import url("../index.scss");
2
+
3
+ .digit-checkbox-container {
4
+ @apply flex mb-md relative;
5
+ gap: theme(digitv2.spacers.spacer4);
6
+
7
+ input {
8
+ @apply opacity-0 absolute cursor-pointer z-10;
9
+ @extend .light-input-border;
10
+ width: theme(digitv2.spacers.spacer8);
11
+ height: theme(digitv2.spacers.spacer8);
12
+ left: -15%;
13
+ }
14
+
15
+ .input-emp {
16
+ @extend input ;
17
+ }
18
+
19
+ .digit-custom-checkbox {
20
+ @apply flex items-center border border-solid border-text-secondary justify-center;
21
+ width: theme(digitv2.spacers.spacer6);
22
+ height: theme(digitv2.spacers.spacer6);
23
+
24
+ img,
25
+ svg {
26
+ @apply opacity-0;
27
+ }
28
+
29
+ svg{
30
+ flex-shrink: 0;
31
+ }
32
+
33
+ &:hover {
34
+ @apply border-2 ;
35
+ border-color: theme(digitv2.lightTheme.primary-1);
36
+ }
37
+ }
38
+
39
+ .digit-custom-checkbox-emp {
40
+ @extend .digit-custom-checkbox;
41
+ }
42
+
43
+ input:hover~.digit-custom-checkbox {
44
+ @apply border-2;
45
+ border-color: theme(digitv2.lightTheme.primary-1);
46
+ }
47
+
48
+ input:checked~.digit-custom-checkbox {
49
+ border: 0.125rem solid theme(digitv2.lightTheme.primary-1);
50
+ }
51
+
52
+
53
+ input:checked~.digit-custom-checkbox img {
54
+ @apply opacity-100;
55
+ }
56
+
57
+ input:checked~.digit-custom-checkbox svg {
58
+ @apply opacity-100;
59
+ width: theme(digitv2.spacers.spacer4);
60
+ height: theme(digitv2.spacers.spacer4);
61
+ }
62
+
63
+ .label {
64
+ @extend .typography.body-s;
65
+ @apply text-left;
66
+ word-break: break-word;
67
+ letter-spacing: theme(digitv2.spacers.spacer0);
68
+ color: theme(digitv2.lightTheme.text-primary);
69
+ }
70
+
71
+ &.disabled {
72
+ .label {
73
+ color: theme(digitv2.lightTheme.text-disabled);
74
+ }
75
+
76
+ .digit-custom-checkbox {
77
+ border: 0.063rem solid theme(digitv2.lightTheme.text-disabled);
78
+ }
79
+
80
+ input:checked~.digit-custom-checkbox {
81
+ border: 0.125rem solid theme(digitv2.lightTheme.text-disabled);
82
+ }
83
+ }
84
84
  }
@@ -1,130 +1,130 @@
1
- .digit-tag-error-container {
2
- @apply flex flex-col max-w-full;
3
- gap: theme(digitv2.spacers.spacer1);
4
- }
5
-
6
- .digit-tag-container {
7
- @apply flex flex-wrap mb-md items-center;
8
- gap: theme(digitv2.spacers.spacer2);
9
- margin-top: theme(digitv2.spacers.spacer2);
10
-
11
- @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
12
- /* Media query for tablets */
13
- max-width: 27.5rem;
14
- min-width: 12.5rem;
15
- }
16
-
17
- @media (max-aspect-ratio: 9/16) {
18
- /* Media query for mobile */
19
- width: 100%;
20
- max-width: 100%;
21
- }
22
-
23
- @media (min-aspect-ratio: 3/4) {
24
- /* Media query for desktop */
25
- max-width: 37.5rem;
26
- min-width: 12.5rem;
27
- }
28
-
29
- .digit-tag {
30
- @apply inline-flex items-center h-10 w-full max-w-full;
31
- padding: theme(digitv2.spacers.spacer2);
32
- gap: theme(digitv2.spacers.spacer2);
33
- border-radius: theme(digitv2.spacers.spacer1);
34
- background: theme(digitv2.lightTheme.generic-background);
35
- margin: theme(digitv2.spacers.spacer0);
36
- border: 0.063rem solid theme(digitv2.lightTheme.generic-divider);
37
-
38
- @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
39
- /* Media query for tablets */
40
- height: theme(digitv2.spacers.spacer9);
41
- }
42
-
43
- @media (max-aspect-ratio: 9/16) {
44
- /* Media query for mobile */
45
- height: theme(digitv2.spacers.spacer9);
46
- }
47
-
48
-
49
- .digit-text {
50
- @extend .typography.body-xs;
51
- @apply overflow-hidden items-center whitespace-no-wrap;
52
- max-width: calc(100% - (theme(digitv2.spacers.spacer7)));
53
- width: calc(100% - (theme(digitv2.spacers.spacer7)));
54
- text-overflow: clip;
55
- color: theme(digitv2.lightTheme.text-primary);
56
- display: flex;
57
- text-overflow: ellipsis;
58
- }
59
-
60
- .close-icon {
61
- @apply items-center w-6 h-6 cursor-pointer flex-shrink-0;
62
- border: 0.063rem solid theme(digitv2.lightTheme.text-secondary);
63
- border-radius: theme(digitv2.spacers.spacer1);
64
- background-color: theme(digitv2.lightTheme.text-secondary);
65
- display: flex !important;
66
- justify-content: center;
67
-
68
- @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
69
- /* Media query for tablets */
70
- height: theme(digitv2.spacers.spacer5);
71
- width: theme(digitv2.spacers.spacer5);
72
- }
73
-
74
- @media (max-aspect-ratio: 9/16) {
75
- /* Media query for mobile */
76
- height: theme(digitv2.spacers.spacer5);
77
- width: theme(digitv2.spacers.spacer5);
78
- }
79
-
80
- &.disabled{
81
- pointer-events: none;
82
- }
83
-
84
- svg{
85
- @apply items-center flex-shrink-0;
86
- width: theme(digitv2.spacers.spacer6);
87
- height: theme(digitv2.spacers.spacer6);
88
- display: flex !important;
89
- justify-content: center;
90
-
91
- @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
92
- /* Media query for tablets */
93
- height: theme(digitv2.spacers.spacer5);
94
- width: theme(digitv2.spacers.spacer5);
95
- }
96
-
97
- @media (max-aspect-ratio: 9/16) {
98
- /* Media query for mobile */
99
- height: theme(digitv2.spacers.spacer5);
100
- width: theme(digitv2.spacers.spacer5);
101
- }
102
- }
103
- }
104
-
105
- &.errortag {
106
- border: 0.063rem solid theme(digitv2.lightTheme.alert-error);
107
- background-color: theme(digitv2.lightTheme.paper-primary);
108
- box-shadow: 0.125rem 0.125rem theme(digitv2.spacers.spacer1) theme(digitv2.spacers.spacer0) #D4351C4D;
109
-
110
- .digit-text {
111
- @extend .typography.heading-xs;
112
- color: theme(digitv2.lightTheme.alert-error);
113
- }
114
-
115
- .close-icon {
116
- border: 0.063rem solid theme(digitv2.lightTheme.alert-error);
117
- background-color: theme(digitv2.lightTheme.alert-error);
118
- }
119
- }
120
- }
121
- }
122
-
123
- .cp{
124
- cursor: pointer;
125
- }
126
-
127
- .nonclickable{
128
- pointer-events: none;
129
- cursor:none;
1
+ .digit-tag-error-container {
2
+ @apply flex flex-col max-w-full;
3
+ gap: theme(digitv2.spacers.spacer1);
4
+ }
5
+
6
+ .digit-tag-container {
7
+ @apply flex flex-wrap mb-md items-center;
8
+ gap: theme(digitv2.spacers.spacer2);
9
+ margin-top: theme(digitv2.spacers.spacer2);
10
+
11
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
12
+ /* Media query for tablets */
13
+ max-width: 27.5rem;
14
+ min-width: 12.5rem;
15
+ }
16
+
17
+ @media (max-aspect-ratio: 9/16) {
18
+ /* Media query for mobile */
19
+ width: 100%;
20
+ max-width: 100%;
21
+ }
22
+
23
+ @media (min-aspect-ratio: 3/4) {
24
+ /* Media query for desktop */
25
+ max-width: 37.5rem;
26
+ min-width: 12.5rem;
27
+ }
28
+
29
+ .digit-tag {
30
+ @apply inline-flex items-center h-10 w-full max-w-full;
31
+ padding: theme(digitv2.spacers.spacer2);
32
+ gap: theme(digitv2.spacers.spacer2);
33
+ border-radius: theme(digitv2.spacers.spacer1);
34
+ background: theme(digitv2.lightTheme.generic-background);
35
+ margin: theme(digitv2.spacers.spacer0);
36
+ border: 0.063rem solid theme(digitv2.lightTheme.generic-divider);
37
+
38
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
39
+ /* Media query for tablets */
40
+ height: theme(digitv2.spacers.spacer9);
41
+ }
42
+
43
+ @media (max-aspect-ratio: 9/16) {
44
+ /* Media query for mobile */
45
+ height: theme(digitv2.spacers.spacer9);
46
+ }
47
+
48
+
49
+ .digit-text {
50
+ @extend .typography.body-xs;
51
+ @apply overflow-hidden items-center whitespace-no-wrap;
52
+ max-width: calc(100% - (theme(digitv2.spacers.spacer7)));
53
+ width: calc(100% - (theme(digitv2.spacers.spacer7)));
54
+ text-overflow: clip;
55
+ color: theme(digitv2.lightTheme.text-primary);
56
+ display: flex;
57
+ text-overflow: ellipsis;
58
+ }
59
+
60
+ .close-icon {
61
+ @apply items-center w-6 h-6 cursor-pointer flex-shrink-0;
62
+ border: 0.063rem solid theme(digitv2.lightTheme.text-secondary);
63
+ border-radius: theme(digitv2.spacers.spacer1);
64
+ background-color: theme(digitv2.lightTheme.text-secondary);
65
+ display: flex !important;
66
+ justify-content: center;
67
+
68
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
69
+ /* Media query for tablets */
70
+ height: theme(digitv2.spacers.spacer5);
71
+ width: theme(digitv2.spacers.spacer5);
72
+ }
73
+
74
+ @media (max-aspect-ratio: 9/16) {
75
+ /* Media query for mobile */
76
+ height: theme(digitv2.spacers.spacer5);
77
+ width: theme(digitv2.spacers.spacer5);
78
+ }
79
+
80
+ &.disabled{
81
+ pointer-events: none;
82
+ }
83
+
84
+ svg{
85
+ @apply items-center flex-shrink-0;
86
+ width: theme(digitv2.spacers.spacer6);
87
+ height: theme(digitv2.spacers.spacer6);
88
+ display: flex !important;
89
+ justify-content: center;
90
+
91
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
92
+ /* Media query for tablets */
93
+ height: theme(digitv2.spacers.spacer5);
94
+ width: theme(digitv2.spacers.spacer5);
95
+ }
96
+
97
+ @media (max-aspect-ratio: 9/16) {
98
+ /* Media query for mobile */
99
+ height: theme(digitv2.spacers.spacer5);
100
+ width: theme(digitv2.spacers.spacer5);
101
+ }
102
+ }
103
+ }
104
+
105
+ &.errortag {
106
+ border: 0.063rem solid theme(digitv2.lightTheme.alert-error);
107
+ background-color: theme(digitv2.lightTheme.paper-primary);
108
+ box-shadow: 0.125rem 0.125rem theme(digitv2.spacers.spacer1) theme(digitv2.spacers.spacer0) #D4351C4D;
109
+
110
+ .digit-text {
111
+ @extend .typography.heading-xs;
112
+ color: theme(digitv2.lightTheme.alert-error);
113
+ }
114
+
115
+ .close-icon {
116
+ border: 0.063rem solid theme(digitv2.lightTheme.alert-error);
117
+ background-color: theme(digitv2.lightTheme.alert-error);
118
+ }
119
+ }
120
+ }
121
+ }
122
+
123
+ .cp{
124
+ cursor: pointer;
125
+ }
126
+
127
+ .nonclickable{
128
+ pointer-events: none;
129
+ cursor:none;
130
130
  }
@@ -1,11 +1,11 @@
1
- .digit-divider {
2
- border: theme(digitv2.divider.dividerS);
3
-
4
- &.medium {
5
- border: theme(digitv2.divider.dividerM);
6
- }
7
-
8
- &.large {
9
- border: theme(digitv2.divider.dividerL);
10
- }
1
+ .digit-divider {
2
+ border: theme(digitv2.divider.dividerS);
3
+
4
+ &.medium {
5
+ border: theme(digitv2.divider.dividerM);
6
+ }
7
+
8
+ &.large {
9
+ border: theme(digitv2.divider.dividerL);
10
+ }
11
11
  }
@@ -1,21 +1,21 @@
1
- @import url("../index.scss");
2
- @import url("../typography.scss");
3
-
4
- .digit-error-icon-message-wrap {
5
- @apply flex w-full whitespace-pre-wrap break-words;
6
- gap: theme(digitv2.spacers.spacer1);
7
- word-break: break-word;
8
- cursor: default;
9
-
10
- .digit-error-icon{
11
- @apply flex items-center;
12
- width: theme(digitv2.spacers.spacer4);
13
- height: theme(digitv2.lineHeight.lineheight2);
14
- }
15
- .digit-error-message {
16
- @extend .typography.body-s;
17
- @apply w-full;
18
- margin: theme(digitv2.spacers.spacer0);
19
- color: theme(digitv2.lightTheme.alert-error)
20
- }
1
+ @import url("../index.scss");
2
+ @import url("../typography.scss");
3
+
4
+ .digit-error-icon-message-wrap {
5
+ @apply flex w-full whitespace-pre-wrap break-words;
6
+ gap: theme(digitv2.spacers.spacer1);
7
+ word-break: break-word;
8
+ cursor: default;
9
+
10
+ .digit-error-icon{
11
+ @apply flex items-center;
12
+ width: theme(digitv2.spacers.spacer4);
13
+ height: theme(digitv2.lineHeight.lineheight2);
14
+ }
15
+ .digit-error-message {
16
+ @extend .typography.body-s;
17
+ @apply w-full;
18
+ margin: theme(digitv2.spacers.spacer0);
19
+ color: theme(digitv2.lightTheme.alert-error)
20
+ }
21
21
  }