@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,207 +1,207 @@
1
- @import url("../index.scss");
2
-
3
- /*.digit-action-bar-wrap {
4
- @extend .light-text-color-primary;
5
- @extend .light-paper-primary;
6
- box-shadow: rgba(0, 0, 0, 0.16) 0 -2px 8px;
7
- max-width: 100%;
8
- z-index: 100;
9
-
10
- @apply left-0 bottom-0 w-full bg-white py-sm px-sm fixed text-right;
11
-
12
- div {
13
- @apply w-full;
14
- }
15
-
16
- .digit-menu-wrap {
17
- @extend .light-background;
18
- @apply absolute bg-white text-left mb-xs z-30 cursor-pointer;
19
- bottom: 45px;
20
- box-shadow: rgba(0, 0, 0, 0.14) 0 8px 10px 1px, rgba(0, 0, 0, 0.12) 0 3px 14px 2px, rgba(0, 0, 0, 0.2) 0 5px 5px -3px;
21
- width: calc(100% - 16px);
22
- right: 8px;
23
-
24
- div {
25
- @extend .light-primary;
26
- @apply h-12 pl-sm py-md text-body-l text-text-primary;
27
-
28
- &:hover {
29
- @extend .light-background;
30
- @apply bg-grey-mid w-full;
31
- }
32
- }
33
- }
34
- }
35
-
36
- @screen dt {
37
- .digit-action-bar-wrap {
38
- box-shadow: rgba(0, 0, 0, 0.16) 0 -2px 8px;
39
- left: 0;
40
- max-width: none;
41
- z-index: 999;
42
-
43
- @apply fixed bottom-0 bg-white py-sm pr-lg text-right;
44
-
45
- div {
46
- width: calc(100% - 16px);
47
- }
48
-
49
- .digit-menu-wrap {
50
- bottom: 45px;
51
- top: unset;
52
- box-shadow: rgba(0, 0, 0, 0.14) 0 8px 10px 1px, rgba(0, 0, 0, 0.12) 0 3px 14px 2px, rgba(0, 0, 0, 0.2) 0 5px 5px -3px;
53
- @apply absolute h-auto bg-white text-left mb-xs z-30;
54
- width: 240px;
55
- right: 24px;
56
-
57
- div {
58
- @apply h-12 pl-sm py-md text-body-l text-text-primary;
59
-
60
- &:hover {
61
- @apply bg-grey-mid w-full;
62
- }
63
- }
64
- }
65
- }
66
- }
67
-
68
- .digit-action-bar-wrap-registry {
69
- div {
70
- @apply w-full;
71
- }
72
- .digit-menu-wrap {
73
- @extend .light-background;
74
- @apply absolute bg-white text-left mb-xs z-30 cursor-pointer;
75
- box-shadow: rgba(0, 0, 0, 0.14) 0 8px 10px 1px, rgba(0, 0, 0, 0.12) 0 3px 14px 2px, rgba(0, 0, 0, 0.2) 0 5px 5px -3px;
76
- width: 160px;
77
- right: 60px;
78
-
79
- div {
80
- @apply h-12 pl-sm py-md text-body-l text-text-primary;
81
-
82
- &:hover {
83
- @extend .light-background;
84
- @apply bg-grey-mid w-full;
85
- }
86
- }
87
- }
88
-
89
- .digit-search-add {
90
- @extend .light-primary;
91
- padding: 12px 16px;
92
- color: rgb(244, 119, 56);
93
- display: flex;
94
- cursor: pointer;
95
- }
96
-
97
- .digit-search-add-icon {
98
- @extend .light-primary-button;
99
- background: rgb(244, 119, 56);
100
- border-radius: 50%;
101
- height: 24px;
102
- width: 24px;
103
- display: flex;
104
- justify-content: center;
105
- align-items: center;
106
- margin-left: 10px;
107
- }
108
- }
109
- */
110
-
111
- .digit-action-bar-wrap{
112
- width: 100%;
113
- max-width: 100%;
114
- padding: theme(digitv2.spacers.spacer4) theme(digitv2.spacers.spacer8);
115
- display: flex !important;
116
- align-items: center;
117
- justify-content: space-between;
118
- box-shadow: theme(digitv2.spacers.spacer0) -0.063rem 0.125rem theme(digitv2.spacers.spacer0) #00000029;
119
- background-color: theme(digitv2.lightTheme.paper-primary);
120
- height: 4.5rem;
121
- position: fixed;
122
- bottom: 0;
123
- left: 0;
124
- right: 0;
125
- z-index: 100;
126
-
127
- @media (min-width: 48rem) {
128
- gap: theme(digitv2.spacers.spacer6);
129
- }
130
-
131
- @media (min-width: 30.063rem) and (max-width: 47.938rem) {
132
- gap: theme(digitv2.spacers.spacer5);
133
- }
134
-
135
- @media (max-width: 30rem) {
136
- gap: theme(digitv2.spacers.spacer4);
137
- box-shadow: theme(digitv2.spacers.spacer0) -0.063rem 0.125rem theme(digitv2.spacers.spacer0) #00000026;
138
- height: 8rem;
139
- padding: theme(digitv2.spacers.spacer4);
140
- }
141
-
142
- .digit-action-bar-fields{
143
- display: flex;
144
- justify-content: space-between;
145
- flex-wrap: wrap;
146
-
147
- @media (min-width: 48rem) {
148
- gap: theme(digitv2.spacers.spacer6);
149
- }
150
-
151
- @media (min-width: 30.063rem) and (max-width: 47.938rem) {
152
- gap: theme(digitv2.spacers.spacer5);
153
- }
154
-
155
- @media (max-width: 30rem) {
156
- gap: theme(digitv2.spacers.spacer4);
157
- flex-direction: column;
158
-
159
- .action-bar-individual-action-field{
160
- button{
161
- width: 100%;
162
- max-width: 100%;
163
- }
164
- }
165
- }
166
-
167
- &.toRight{
168
- margin-left: auto;
169
- }
170
-
171
- &.toLeft{
172
- justify-content: unset;
173
- }
174
-
175
- .action-bar-individual-action-field{
176
- button{
177
- flex: 1;
178
- }
179
- }
180
-
181
- &:not(.toRight){
182
- width: 100%;
183
- }
184
- }
185
-
186
- .digit-dropdown-select-wrap,
187
- .digit-employee-dropdown-select-wrap{
188
- margin-bottom: 0rem;
189
- }
190
-
191
- .header-dropdown-container {
192
- position: relative;
193
- }
194
-
195
- .header-dropdown-menu {
196
- @apply absolute z-30;
197
- bottom: theme(digitv2.spacers.spacer10);
198
- right: 0;
199
- max-height: unset;
200
- margin-top: unset;
201
-
202
- &.showBottom{
203
- bottom: unset;
204
- }
205
- }
206
-
1
+ @import url("../index.scss");
2
+
3
+ /*.digit-action-bar-wrap {
4
+ @extend .light-text-color-primary;
5
+ @extend .light-paper-primary;
6
+ box-shadow: rgba(0, 0, 0, 0.16) 0 -2px 8px;
7
+ max-width: 100%;
8
+ z-index: 100;
9
+
10
+ @apply left-0 bottom-0 w-full bg-white py-sm px-sm fixed text-right;
11
+
12
+ div {
13
+ @apply w-full;
14
+ }
15
+
16
+ .digit-menu-wrap {
17
+ @extend .light-background;
18
+ @apply absolute bg-white text-left mb-xs z-30 cursor-pointer;
19
+ bottom: 45px;
20
+ box-shadow: rgba(0, 0, 0, 0.14) 0 8px 10px 1px, rgba(0, 0, 0, 0.12) 0 3px 14px 2px, rgba(0, 0, 0, 0.2) 0 5px 5px -3px;
21
+ width: calc(100% - 16px);
22
+ right: 8px;
23
+
24
+ div {
25
+ @extend .light-primary;
26
+ @apply h-12 pl-sm py-md text-body-l text-text-primary;
27
+
28
+ &:hover {
29
+ @extend .light-background;
30
+ @apply bg-grey-mid w-full;
31
+ }
32
+ }
33
+ }
34
+ }
35
+
36
+ @screen dt {
37
+ .digit-action-bar-wrap {
38
+ box-shadow: rgba(0, 0, 0, 0.16) 0 -2px 8px;
39
+ left: 0;
40
+ max-width: none;
41
+ z-index: 999;
42
+
43
+ @apply fixed bottom-0 bg-white py-sm pr-lg text-right;
44
+
45
+ div {
46
+ width: calc(100% - 16px);
47
+ }
48
+
49
+ .digit-menu-wrap {
50
+ bottom: 45px;
51
+ top: unset;
52
+ box-shadow: rgba(0, 0, 0, 0.14) 0 8px 10px 1px, rgba(0, 0, 0, 0.12) 0 3px 14px 2px, rgba(0, 0, 0, 0.2) 0 5px 5px -3px;
53
+ @apply absolute h-auto bg-white text-left mb-xs z-30;
54
+ width: 240px;
55
+ right: 24px;
56
+
57
+ div {
58
+ @apply h-12 pl-sm py-md text-body-l text-text-primary;
59
+
60
+ &:hover {
61
+ @apply bg-grey-mid w-full;
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+
68
+ .digit-action-bar-wrap-registry {
69
+ div {
70
+ @apply w-full;
71
+ }
72
+ .digit-menu-wrap {
73
+ @extend .light-background;
74
+ @apply absolute bg-white text-left mb-xs z-30 cursor-pointer;
75
+ box-shadow: rgba(0, 0, 0, 0.14) 0 8px 10px 1px, rgba(0, 0, 0, 0.12) 0 3px 14px 2px, rgba(0, 0, 0, 0.2) 0 5px 5px -3px;
76
+ width: 160px;
77
+ right: 60px;
78
+
79
+ div {
80
+ @apply h-12 pl-sm py-md text-body-l text-text-primary;
81
+
82
+ &:hover {
83
+ @extend .light-background;
84
+ @apply bg-grey-mid w-full;
85
+ }
86
+ }
87
+ }
88
+
89
+ .digit-search-add {
90
+ @extend .light-primary;
91
+ padding: 12px 16px;
92
+ color: rgb(244, 119, 56);
93
+ display: flex;
94
+ cursor: pointer;
95
+ }
96
+
97
+ .digit-search-add-icon {
98
+ @extend .light-primary-button;
99
+ background: rgb(244, 119, 56);
100
+ border-radius: 50%;
101
+ height: 24px;
102
+ width: 24px;
103
+ display: flex;
104
+ justify-content: center;
105
+ align-items: center;
106
+ margin-left: 10px;
107
+ }
108
+ }
109
+ */
110
+
111
+ .digit-action-bar-wrap{
112
+ width: 100%;
113
+ max-width: 100%;
114
+ padding: theme(digitv2.spacers.spacer4) theme(digitv2.spacers.spacer8);
115
+ display: flex !important;
116
+ align-items: center;
117
+ justify-content: space-between;
118
+ box-shadow: theme(digitv2.spacers.spacer0) -0.063rem 0.125rem theme(digitv2.spacers.spacer0) #00000029;
119
+ background-color: theme(digitv2.lightTheme.paper-primary);
120
+ height: 4.5rem;
121
+ position: fixed;
122
+ bottom: 0;
123
+ left: 0;
124
+ right: 0;
125
+ z-index: 100;
126
+
127
+ @media (min-width: 48rem) {
128
+ gap: theme(digitv2.spacers.spacer6);
129
+ }
130
+
131
+ @media (min-width: 30.063rem) and (max-width: 47.938rem) {
132
+ gap: theme(digitv2.spacers.spacer5);
133
+ }
134
+
135
+ @media (max-width: 30rem) {
136
+ gap: theme(digitv2.spacers.spacer4);
137
+ box-shadow: theme(digitv2.spacers.spacer0) -0.063rem 0.125rem theme(digitv2.spacers.spacer0) #00000026;
138
+ height: 8rem;
139
+ padding: theme(digitv2.spacers.spacer4);
140
+ }
141
+
142
+ .digit-action-bar-fields{
143
+ display: flex;
144
+ justify-content: space-between;
145
+ flex-wrap: wrap;
146
+
147
+ @media (min-width: 48rem) {
148
+ gap: theme(digitv2.spacers.spacer6);
149
+ }
150
+
151
+ @media (min-width: 30.063rem) and (max-width: 47.938rem) {
152
+ gap: theme(digitv2.spacers.spacer5);
153
+ }
154
+
155
+ @media (max-width: 30rem) {
156
+ gap: theme(digitv2.spacers.spacer4);
157
+ flex-direction: column;
158
+
159
+ .action-bar-individual-action-field{
160
+ button{
161
+ width: 100%;
162
+ max-width: 100%;
163
+ }
164
+ }
165
+ }
166
+
167
+ &.toRight{
168
+ margin-left: auto;
169
+ }
170
+
171
+ &.toLeft{
172
+ justify-content: unset;
173
+ }
174
+
175
+ .action-bar-individual-action-field{
176
+ button{
177
+ flex: 1;
178
+ }
179
+ }
180
+
181
+ &:not(.toRight){
182
+ width: 100%;
183
+ }
184
+ }
185
+
186
+ .digit-dropdown-select-wrap,
187
+ .digit-employee-dropdown-select-wrap{
188
+ margin-bottom: 0rem;
189
+ }
190
+
191
+ .header-dropdown-container {
192
+ position: relative;
193
+ }
194
+
195
+ .header-dropdown-menu {
196
+ @apply absolute z-30;
197
+ bottom: theme(digitv2.spacers.spacer10);
198
+ right: 0;
199
+ max-height: unset;
200
+ margin-top: unset;
201
+
202
+ &.showBottom{
203
+ bottom: unset;
204
+ }
205
+ }
206
+
207
207
  }
@@ -1,37 +1,37 @@
1
- .digit-back-link {
2
- gap: theme(digitv2.spacers.spacer1);
3
- display: flex;
4
- align-items: center;
5
-
6
- .digit-back-link-icon {
7
- flex-shrink: 0;
8
- width: theme(digitv2.spacers.spacer6);
9
- height: theme(digitv2.spacers.spacer6);
10
- cursor: pointer;
11
-
12
- @media (max-width: 30rem) {
13
- width: theme(digitv2.spacers.spacer5);
14
- height: theme(digitv2.spacers.spacer5);
15
- }
16
-
17
- }
18
-
19
- .digit-back-link-label {
20
- @extend .typography.body-l;
21
- color: theme(digitv2.lightTheme.primary-2);
22
- margin-top:0.063rem;
23
- cursor: pointer;
24
- }
25
-
26
- &.disabled{
27
- pointer-events: none;
28
- .digit-back-link-label{
29
- color: theme(digitv2.lightTheme.text-disabled);
30
- cursor: default;
31
- }
32
-
33
- .digit-back-link-icon{
34
- cursor: default;
35
- }
36
- }
1
+ .digit-back-link {
2
+ gap: theme(digitv2.spacers.spacer1);
3
+ display: flex;
4
+ align-items: center;
5
+
6
+ .digit-back-link-icon {
7
+ flex-shrink: 0;
8
+ width: theme(digitv2.spacers.spacer6);
9
+ height: theme(digitv2.spacers.spacer6);
10
+ cursor: pointer;
11
+
12
+ @media (max-width: 30rem) {
13
+ width: theme(digitv2.spacers.spacer5);
14
+ height: theme(digitv2.spacers.spacer5);
15
+ }
16
+
17
+ }
18
+
19
+ .digit-back-link-label {
20
+ @extend .typography.body-l;
21
+ color: theme(digitv2.lightTheme.primary-2);
22
+ margin-top:0.063rem;
23
+ cursor: pointer;
24
+ }
25
+
26
+ &.disabled{
27
+ pointer-events: none;
28
+ .digit-back-link-label{
29
+ color: theme(digitv2.lightTheme.text-disabled);
30
+ cursor: default;
31
+ }
32
+
33
+ .digit-back-link-icon{
34
+ cursor: default;
35
+ }
36
+ }
37
37
  }
@@ -1,39 +1,39 @@
1
- @import url("../index.scss");
2
-
3
- body {
4
- background-color: #fafafa;
5
- }
6
-
7
- .body-container {
8
- @extend .light-background;
9
- @apply h-full min-h-screen overflow-x-hidden;
10
- }
11
-
12
- .body-container::-webkit-scrollbar {
13
- display: none;
14
- }
15
-
16
- .h1 {
17
- @extend .light-text-color-primary;
18
- @apply text-heading-l font-bold mb-md ml-md;
19
- }
20
-
21
- .link-label {
22
- @extend .light-primary;
23
- @apply block mb-md ml-md cursor-pointer;
24
-
25
- &:hover {
26
- @extend .light-text-color-primary;
27
- }
28
- }
29
-
30
- @screen dt {
31
- .h1 {
32
- margin-left: 0;
33
- @apply text-heading-l-dt;
34
- }
35
-
36
- .link-label {
37
- margin-left: 0;
38
- }
39
- }
1
+ @import url("../index.scss");
2
+
3
+ body {
4
+ background-color: #fafafa;
5
+ }
6
+
7
+ .body-container {
8
+ @extend .light-background;
9
+ @apply h-full min-h-screen overflow-x-hidden;
10
+ }
11
+
12
+ .body-container::-webkit-scrollbar {
13
+ display: none;
14
+ }
15
+
16
+ .h1 {
17
+ @extend .light-text-color-primary;
18
+ @apply text-heading-l font-bold mb-md ml-md;
19
+ }
20
+
21
+ .link-label {
22
+ @extend .light-primary;
23
+ @apply block mb-md ml-md cursor-pointer;
24
+
25
+ &:hover {
26
+ @extend .light-text-color-primary;
27
+ }
28
+ }
29
+
30
+ @screen dt {
31
+ .h1 {
32
+ margin-left: 0;
33
+ @apply text-heading-l-dt;
34
+ }
35
+
36
+ .link-label {
37
+ margin-left: 0;
38
+ }
39
+ }
@@ -1,57 +1,57 @@
1
- @import url("../index.scss");
2
- @import url("../typography.scss");
3
-
4
- .digit-bread-crumb {
5
- display: flex;
6
- gap: theme(digitv2.spacers.spacer2);
7
- height: 1.375rem;
8
- padding: unset;
9
- }
10
-
11
- .digit-bread-crumb--item {
12
- display: flex;
13
- gap: theme(digitv2.spacers.spacer2);
14
-
15
-
16
- button {
17
- outline: none;
18
- }
19
-
20
-
21
- .digit-bread-crumb-content {
22
- @extend .typography.body-s;
23
- display: flex !important;
24
- gap: theme(digitv2.spacers.spacer1);
25
- cursor: pointer;
26
- text-decoration: none;
27
-
28
- svg {
29
- width: theme(digitv2.spacers.spacer5);
30
- height: theme(digitv2.spacers.spacer5);
31
- }
32
-
33
- color: theme(digitv2.lightTheme.primary-1);
34
-
35
- &:hover {
36
- text-decoration: underline;
37
- }
38
- }
39
-
40
- span {
41
- cursor: pointer;
42
- }
43
-
44
- .digit-bread-crumb-content.current,
45
- .digit-bread-crumb-seperator {
46
- @extend .typography.body-s;
47
- color: theme(digitv2.lightTheme.text-secondary);
48
- text-decoration: none;
49
- cursor: default;
50
- }
51
-
52
- }
53
-
54
- ol,
55
- ul {
56
- list-style: none;
1
+ @import url("../index.scss");
2
+ @import url("../typography.scss");
3
+
4
+ .digit-bread-crumb {
5
+ display: flex;
6
+ gap: theme(digitv2.spacers.spacer2);
7
+ height: 1.375rem;
8
+ padding: unset;
9
+ }
10
+
11
+ .digit-bread-crumb--item {
12
+ display: flex;
13
+ gap: theme(digitv2.spacers.spacer2);
14
+
15
+
16
+ button {
17
+ outline: none;
18
+ }
19
+
20
+
21
+ .digit-bread-crumb-content {
22
+ @extend .typography.body-s;
23
+ display: flex !important;
24
+ gap: theme(digitv2.spacers.spacer1);
25
+ cursor: pointer;
26
+ text-decoration: none;
27
+
28
+ svg {
29
+ width: theme(digitv2.spacers.spacer5);
30
+ height: theme(digitv2.spacers.spacer5);
31
+ }
32
+
33
+ color: theme(digitv2.lightTheme.primary-1);
34
+
35
+ &:hover {
36
+ text-decoration: underline;
37
+ }
38
+ }
39
+
40
+ span {
41
+ cursor: pointer;
42
+ }
43
+
44
+ .digit-bread-crumb-content.current,
45
+ .digit-bread-crumb-seperator {
46
+ @extend .typography.body-s;
47
+ color: theme(digitv2.lightTheme.text-secondary);
48
+ text-decoration: none;
49
+ cursor: default;
50
+ }
51
+
52
+ }
53
+
54
+ ol,
55
+ ul {
56
+ list-style: none;
57
57
  }