@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,140 +1,140 @@
1
- @import url("../index.scss");
2
- @import url("../typography.scss");
3
-
4
- .digit-infobanner-wrap {
5
- @apply p-md flex flex-col;
6
- top: theme(digitv2.spacers.spacer5);
7
- left: theme(digitv2.spacers.spacer5);
8
- gap: theme(digitv2.spacers.spacer2);
9
- background-color: theme(digitv2.lightTheme.alert-infobg);
10
-
11
- border: 0.063rem solid theme(digitv2.lightTheme.alert-info);
12
- border-left-width: theme(digitv2.spacers.spacer1);
13
-
14
- div {
15
- @apply flex;
16
- gap: theme(digitv2.spacers.spacer2);
17
- min-height: theme(digitv2.spacers.spacer6);
18
-
19
- svg {
20
- flex-shrink: 0;
21
- }
22
- }
23
-
24
- .digit-infobanner-header {
25
- @apply w-full max-w-full overflow-hidden text-left;
26
- font-family: theme(digitv2.fontFamily.sans);
27
- font-weight: theme(digitv2.fontWeight.bold);
28
- color: theme(digitv2.lightTheme.alert-info);
29
- font-size: theme(digitv2.spacers.spacer4);
30
- line-height: 1.172rem;
31
- letter-spacing: theme(digitv2.spacers.spacer0);
32
- margin: 0.164rem theme(digitv2.spacers.spacer0);
33
- white-space: normal;
34
- word-break: break-word;
35
- }
36
-
37
- p {
38
- @apply whitespace-pre-line text-left;
39
- font-weight: theme(digitv2.fontWeight.regular);
40
- color: theme(digitv2.lightTheme.text-secondary);
41
- font-style: theme(digitv2.fontStyle.normal);
42
- font-family: theme(digitv2.fontFamily.sans);
43
- font-size: 0.875rem;
44
- line-height: theme(digitv2.spacers.spacer5);
45
- letter-spacing: theme(digitv2.spacers.spacer0);
46
- margin: theme(digitv2.spacers.spacer0);
47
- }
48
-
49
- &.digit-core-variant {
50
- margin: theme(digitv2.spacers.spacer8) theme(digitv2.spacers.spacer0);
51
- padding: 0.625rem;
52
- background-color: #ffe2b5;
53
- border-radius: theme(digitv2.spacers.spacer1);
54
- }
55
-
56
- &.success {
57
- background-color: theme(digitv2.lightTheme.alert-successbg);
58
- border: 0.063rem solid theme(digitv2.lightTheme.alert-success);
59
- border-left-width: theme(digitv2.spacers.spacer1);
60
-
61
- .digit-infobanner-header{
62
- color: theme(digitv2.lightTheme.alert-success);
63
- }
64
- }
65
-
66
- &.warning {
67
- background-color: theme(digitv2.lightTheme.alert-warning-bg);
68
- border: 0.063rem solid theme(digitv2.lightTheme.alert-warning);
69
- border-left-width: theme(digitv2.spacers.spacer1);
70
-
71
- .digit-infobanner-header{
72
- color: theme(digitv2.lightTheme.alert-warning);
73
- }
74
- }
75
-
76
- &.error {
77
- background-color: theme(digitv2.lightTheme.alert-errorbg);
78
- border: 0.063rem solid theme(digitv2.lightTheme.alert-error);
79
- border-left-width: theme(digitv2.spacers.spacer1);
80
-
81
- .digit-infobanner-header{
82
- color: theme(digitv2.lightTheme.alert-error);
83
- }
84
- }
85
-
86
- @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
87
- /* Media query for tablets */
88
- max-width: 44.5rem;
89
- }
90
-
91
- @media (max-aspect-ratio: 9/16) {
92
- /* Media query for mobile */
93
- max-width: 21.5rem;
94
- }
95
-
96
- @media (min-aspect-ratio: 3/4) {
97
- /* Media query for desktop */
98
- max-width: 87rem;
99
- }
100
-
101
- &.inline {
102
- @apply flex-row items-start;
103
- }
104
-
105
- &.column {
106
- @apply flex-col;
107
- }
108
-
109
- .additional-elements-inline {
110
- @apply flex flex-wrap items-start;
111
- gap: theme(digitv2.spacers.spacer2);
112
-
113
- .individualElement{
114
- h2{
115
- margin: theme(digitv2.spacers.spacer0);
116
- color: theme(digitv2.lightTheme.text-primary);
117
- }
118
- }
119
- }
120
-
121
- .additional-elements-column {
122
- @apply flex flex-col items-start;
123
- gap: theme(digitv2.spacers.spacer2);
124
-
125
- .individualElement {
126
- @apply w-full max-w-full;
127
-
128
- h2{
129
- margin: theme(digitv2.spacers.spacer0);
130
- color: theme(digitv2.lightTheme.text-primary);
131
- }
132
-
133
- }
134
- }
135
-
136
- img {
137
- @apply max-w-full;
138
- }
139
-
1
+ @import url("../index.scss");
2
+ @import url("../typography.scss");
3
+
4
+ .digit-infobanner-wrap {
5
+ @apply p-md flex flex-col;
6
+ top: theme(digitv2.spacers.spacer5);
7
+ left: theme(digitv2.spacers.spacer5);
8
+ gap: theme(digitv2.spacers.spacer2);
9
+ background-color: theme(digitv2.lightTheme.alert-infobg);
10
+
11
+ border: 0.063rem solid theme(digitv2.lightTheme.alert-info);
12
+ border-left-width: theme(digitv2.spacers.spacer1);
13
+
14
+ div {
15
+ @apply flex;
16
+ gap: theme(digitv2.spacers.spacer2);
17
+ min-height: theme(digitv2.spacers.spacer6);
18
+
19
+ svg {
20
+ flex-shrink: 0;
21
+ }
22
+ }
23
+
24
+ .digit-infobanner-header {
25
+ @apply w-full max-w-full overflow-hidden text-left;
26
+ font-family: theme(digitv2.fontFamily.sans);
27
+ font-weight: theme(digitv2.fontWeight.bold);
28
+ color: theme(digitv2.lightTheme.alert-info);
29
+ font-size: theme(digitv2.spacers.spacer4);
30
+ line-height: 1.172rem;
31
+ letter-spacing: theme(digitv2.spacers.spacer0);
32
+ margin: 0.164rem theme(digitv2.spacers.spacer0);
33
+ white-space: normal;
34
+ word-break: break-word;
35
+ }
36
+
37
+ p {
38
+ @apply whitespace-pre-line text-left;
39
+ font-weight: theme(digitv2.fontWeight.regular);
40
+ color: theme(digitv2.lightTheme.text-secondary);
41
+ font-style: theme(digitv2.fontStyle.normal);
42
+ font-family: theme(digitv2.fontFamily.sans);
43
+ font-size: 0.875rem;
44
+ line-height: theme(digitv2.spacers.spacer5);
45
+ letter-spacing: theme(digitv2.spacers.spacer0);
46
+ margin: theme(digitv2.spacers.spacer0);
47
+ }
48
+
49
+ &.digit-core-variant {
50
+ margin: theme(digitv2.spacers.spacer8) theme(digitv2.spacers.spacer0);
51
+ padding: 0.625rem;
52
+ background-color: #ffe2b5;
53
+ border-radius: theme(digitv2.spacers.spacer1);
54
+ }
55
+
56
+ &.success {
57
+ background-color: theme(digitv2.lightTheme.alert-successbg);
58
+ border: 0.063rem solid theme(digitv2.lightTheme.alert-success);
59
+ border-left-width: theme(digitv2.spacers.spacer1);
60
+
61
+ .digit-infobanner-header{
62
+ color: theme(digitv2.lightTheme.alert-success);
63
+ }
64
+ }
65
+
66
+ &.warning {
67
+ background-color: theme(digitv2.lightTheme.alert-warning-bg);
68
+ border: 0.063rem solid theme(digitv2.lightTheme.alert-warning);
69
+ border-left-width: theme(digitv2.spacers.spacer1);
70
+
71
+ .digit-infobanner-header{
72
+ color: theme(digitv2.lightTheme.alert-warning);
73
+ }
74
+ }
75
+
76
+ &.error {
77
+ background-color: theme(digitv2.lightTheme.alert-errorbg);
78
+ border: 0.063rem solid theme(digitv2.lightTheme.alert-error);
79
+ border-left-width: theme(digitv2.spacers.spacer1);
80
+
81
+ .digit-infobanner-header{
82
+ color: theme(digitv2.lightTheme.alert-error);
83
+ }
84
+ }
85
+
86
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
87
+ /* Media query for tablets */
88
+ max-width: 44.5rem;
89
+ }
90
+
91
+ @media (max-aspect-ratio: 9/16) {
92
+ /* Media query for mobile */
93
+ max-width: 21.5rem;
94
+ }
95
+
96
+ @media (min-aspect-ratio: 3/4) {
97
+ /* Media query for desktop */
98
+ max-width: 87rem;
99
+ }
100
+
101
+ &.inline {
102
+ @apply flex-row items-start;
103
+ }
104
+
105
+ &.column {
106
+ @apply flex-col;
107
+ }
108
+
109
+ .additional-elements-inline {
110
+ @apply flex flex-wrap items-start;
111
+ gap: theme(digitv2.spacers.spacer2);
112
+
113
+ .individualElement{
114
+ h2{
115
+ margin: theme(digitv2.spacers.spacer0);
116
+ color: theme(digitv2.lightTheme.text-primary);
117
+ }
118
+ }
119
+ }
120
+
121
+ .additional-elements-column {
122
+ @apply flex flex-col items-start;
123
+ gap: theme(digitv2.spacers.spacer2);
124
+
125
+ .individualElement {
126
+ @apply w-full max-w-full;
127
+
128
+ h2{
129
+ margin: theme(digitv2.spacers.spacer0);
130
+ color: theme(digitv2.lightTheme.text-primary);
131
+ }
132
+
133
+ }
134
+ }
135
+
136
+ img {
137
+ @apply max-w-full;
138
+ }
139
+
140
140
  }
@@ -1,76 +1,76 @@
1
- .digit-info-button {
2
- @apply text-center cursor-pointer outline-none flex max-w-full items-center justify-center h-10;
3
- width: fit-content;
4
- padding-left: theme(digitv2.spacers.spacer6);
5
- padding-right: theme(digitv2.spacers.spacer6);
6
- gap: theme(digitv2.spacers.spacer2);
7
- min-width: 6.5625rem;
8
-
9
- &.info{
10
- background-color: theme(digitv2.lightTheme.alert-info);
11
- }
12
-
13
- &.error{
14
- background-color: theme(digitv2.lightTheme.alert-error);
15
- }
16
-
17
- &.success{
18
- background-color: theme(digitv2.lightTheme.alert-success);
19
- }
20
-
21
- &.warning{
22
- background-color: theme(digitv2.lightTheme.alert-warning);
23
- }
24
-
25
- h1 {
26
- @extend .typography.button.large;
27
- margin: 0;
28
- color: theme(digitv2.lightTheme.paper-primary) !important;
29
- }
30
-
31
- &.disabled {
32
- @apply opacity-50;
33
- background: theme(digitv2.lightTheme.text-disabled);
34
- }
35
-
36
- &:focus {
37
- @apply outline-none;
38
- }
39
-
40
- &:hover {
41
- box-shadow: theme(digitv2.spacers.spacer0) -0.125rem theme(digitv2.spacers.spacer0) theme(digitv2.spacers.spacer0) theme(digitv2.lightTheme.text-primary) inset;
42
- }
43
-
44
- &:active {
45
- box-shadow: theme(digitv2.spacers.spacer0) -0.125rem theme(digitv2.spacers.spacer0) theme(digitv2.spacers.spacer0) #0B0C0C inset, theme(digitv2.spacers.spacer0) 0.063rem 0.175rem theme(digitv2.spacers.spacer0) #00000040;
46
-
47
- h1{
48
- font-weight: theme(digitv2.fontWeight.bold);
49
- }
50
- }
51
-
52
- &.large{
53
- h1{
54
- @apply h-5;
55
- margin-top: 0.125rem;
56
- }
57
- }
58
-
59
- &.medium {
60
- @apply h-8;
61
-
62
- h1{
63
- @extend .typography.button.medium;
64
- }
65
- }
66
-
67
- &.small {
68
- @apply h-6;
69
-
70
- h1 {
71
- @extend .typography.button.small;
72
- }
73
- }
74
-
75
-
1
+ .digit-info-button {
2
+ @apply text-center cursor-pointer outline-none flex max-w-full items-center justify-center h-10;
3
+ width: fit-content;
4
+ padding-left: theme(digitv2.spacers.spacer6);
5
+ padding-right: theme(digitv2.spacers.spacer6);
6
+ gap: theme(digitv2.spacers.spacer2);
7
+ min-width: 6.5625rem;
8
+
9
+ &.info{
10
+ background-color: theme(digitv2.lightTheme.alert-info);
11
+ }
12
+
13
+ &.error{
14
+ background-color: theme(digitv2.lightTheme.alert-error);
15
+ }
16
+
17
+ &.success{
18
+ background-color: theme(digitv2.lightTheme.alert-success);
19
+ }
20
+
21
+ &.warning{
22
+ background-color: theme(digitv2.lightTheme.alert-warning);
23
+ }
24
+
25
+ h1 {
26
+ @extend .typography.button.large;
27
+ margin: 0;
28
+ color: theme(digitv2.lightTheme.paper-primary) !important;
29
+ }
30
+
31
+ &.disabled {
32
+ @apply opacity-50;
33
+ background: theme(digitv2.lightTheme.text-disabled);
34
+ }
35
+
36
+ &:focus {
37
+ @apply outline-none;
38
+ }
39
+
40
+ &:hover {
41
+ box-shadow: theme(digitv2.spacers.spacer0) -0.125rem theme(digitv2.spacers.spacer0) theme(digitv2.spacers.spacer0) theme(digitv2.lightTheme.text-primary) inset;
42
+ }
43
+
44
+ &:active {
45
+ box-shadow: theme(digitv2.spacers.spacer0) -0.125rem theme(digitv2.spacers.spacer0) theme(digitv2.spacers.spacer0) #0B0C0C inset, theme(digitv2.spacers.spacer0) 0.063rem 0.175rem theme(digitv2.spacers.spacer0) #00000040;
46
+
47
+ h1{
48
+ font-weight: theme(digitv2.fontWeight.bold);
49
+ }
50
+ }
51
+
52
+ &.large{
53
+ h1{
54
+ @apply h-5;
55
+ margin-top: 0.125rem;
56
+ }
57
+ }
58
+
59
+ &.medium {
60
+ @apply h-8;
61
+
62
+ h1{
63
+ @extend .typography.button.medium;
64
+ }
65
+ }
66
+
67
+ &.small {
68
+ @apply h-6;
69
+
70
+ h1 {
71
+ @extend .typography.button.small;
72
+ }
73
+ }
74
+
75
+
76
76
  }
@@ -1,67 +1,67 @@
1
- .digit-label-field-pair {
2
- @apply mb-lg flex;
3
-
4
-
5
- @media (min-aspect-ratio: 9/16) {
6
- @apply items-start;
7
- }
8
-
9
- @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
10
- gap: theme(digitv2.spacers.spacer5);
11
- }
12
-
13
- @media (max-aspect-ratio: 9/16) {
14
- @apply flex-col items-start;
15
- gap: theme(digitv2.spacers.spacer4);
16
- }
17
-
18
- @media (min-aspect-ratio: 3/4) {
19
- gap: theme(digitv2.spacers.spacer6);
20
- }
21
-
22
- &.vertical {
23
- @apply flex-col items-start;
24
- gap: theme(digitv2.spacers.spacer2);
25
- }
26
-
27
- & .label,
28
- & header {
29
- width: 33%;
30
-
31
- @media (max-aspect-ratio: 9/16) {
32
- @apply w-full;
33
- }
34
- }
35
-
36
- & .digit-field {
37
- width: 60%;
38
-
39
- @media (max-aspect-ratio: 9/16) {
40
- width: 100%;
41
- }
42
- }
43
- }
44
-
45
- @screen dt {
46
- .digit-employee-card {
47
- .digit-label-field-pair {
48
- @apply mb-lg flex;
49
-
50
- h2 {
51
- width: 30%;
52
- }
53
-
54
- .digit-field {
55
-
56
- .field {
57
- margin-right: unset;
58
- }
59
-
60
- .digit-field {
61
- @apply mb-lg;
62
- margin-right: unset;
63
- }
64
- }
65
- }
66
- }
1
+ .digit-label-field-pair {
2
+ @apply mb-lg flex;
3
+
4
+
5
+ @media (min-aspect-ratio: 9/16) {
6
+ @apply items-start;
7
+ }
8
+
9
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
10
+ gap: theme(digitv2.spacers.spacer5);
11
+ }
12
+
13
+ @media (max-aspect-ratio: 9/16) {
14
+ @apply flex-col items-start;
15
+ gap: theme(digitv2.spacers.spacer4);
16
+ }
17
+
18
+ @media (min-aspect-ratio: 3/4) {
19
+ gap: theme(digitv2.spacers.spacer6);
20
+ }
21
+
22
+ &.vertical {
23
+ @apply flex-col items-start;
24
+ gap: theme(digitv2.spacers.spacer2);
25
+ }
26
+
27
+ & .label,
28
+ & header {
29
+ width: 33%;
30
+
31
+ @media (max-aspect-ratio: 9/16) {
32
+ @apply w-full;
33
+ }
34
+ }
35
+
36
+ & .digit-field {
37
+ width: 60%;
38
+
39
+ @media (max-aspect-ratio: 9/16) {
40
+ width: 100%;
41
+ }
42
+ }
43
+ }
44
+
45
+ @screen dt {
46
+ .digit-employee-card {
47
+ .digit-label-field-pair {
48
+ @apply mb-lg flex;
49
+
50
+ h2 {
51
+ width: 30%;
52
+ }
53
+
54
+ .digit-field {
55
+
56
+ .field {
57
+ margin-right: unset;
58
+ }
59
+
60
+ .digit-field {
61
+ @apply mb-lg;
62
+ margin-right: unset;
63
+ }
64
+ }
65
+ }
66
+ }
67
67
  }