@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,81 +1,81 @@
1
- .digit-toast-success {
2
- @apply fixed flex z-20 w-full max-w-full left-0 items-center;
3
- bottom: -(theme(digitv2.spacers.spacer12));
4
- gap: theme(digitv2.spacers.spacer2);
5
- height: theme(digitv2.spacers.spacer12);
6
- padding: theme(digitv2.spacers.spacer3) theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer3) theme(digitv2.spacers.spacer3) !important;
7
- background-color: theme(digitv2.lightTheme.alert-success);
8
- transition: bottom 0.5s ease;
9
-
10
- @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
11
- @apply w-auto max-w-full;
12
- min-width: 30rem;
13
- left:50%;
14
- transform: translate(-50%);
15
- }
16
-
17
- @media (max-aspect-ratio: 9/16) {
18
- @apply w-full;
19
- }
20
-
21
- @media (min-aspect-ratio: 3/4){
22
- @apply w-auto max-w-full;
23
- min-width: 50rem;
24
- left:50%;
25
- transform: translate(-50%);
26
- }
27
-
28
- &.digit-error {
29
- background-color: theme(digitv2.lightTheme.alert-error);
30
- }
31
-
32
- &.digit-warning {
33
- background-color: #F19100;
34
-
35
- &.digit-warning-buttons {
36
- @apply block;
37
- }
38
- }
39
-
40
- .toast-label {
41
- @extend .typography.caption-s;
42
- @apply text-left overflow-hidden whitespace-no-wrap flex-grow flex items-center h-6;
43
- letter-spacing: theme(digitv2.spacers.spacer0);
44
- color: theme(digitv2.lightTheme.paper-primary);
45
- margin: theme(digitv2.spacers.spacer0);
46
- text-overflow: ellipsis;
47
- }
48
-
49
- &.digit-info {
50
- background-color: theme(digitv2.lightTheme.alert-info);
51
- }
52
-
53
- .digit-warning-button-container {
54
- @apply w-full flex justify-end;
55
-
56
- button {
57
- margin-left: 0.625rem;
58
- }
59
- }
60
-
61
- .digit-toast-sub-container {
62
- @apply flex;
63
- }
64
-
65
- svg {
66
- @apply flex-shrink-0;
67
- }
68
- }
69
-
70
- @keyframes slideInFromBottom {
71
- from {
72
- bottom: -(theme(digitv2.spacers.spacer12));
73
- }
74
- to {
75
- bottom: 4rem;
76
- }
77
- }
78
-
79
- .digit-toast-success.animate {
80
- animation: slideInFromBottom 0.5s ease forwards;
1
+ .digit-toast-success {
2
+ @apply fixed flex z-20 w-full max-w-full left-0 items-center;
3
+ bottom: -(theme(digitv2.spacers.spacer12));
4
+ gap: theme(digitv2.spacers.spacer2);
5
+ height: theme(digitv2.spacers.spacer12);
6
+ padding: theme(digitv2.spacers.spacer3) theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer3) theme(digitv2.spacers.spacer3) !important;
7
+ background-color: theme(digitv2.lightTheme.alert-success);
8
+ transition: bottom 0.5s ease;
9
+
10
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
11
+ @apply w-auto max-w-full;
12
+ min-width: 30rem;
13
+ left:50%;
14
+ transform: translate(-50%);
15
+ }
16
+
17
+ @media (max-aspect-ratio: 9/16) {
18
+ @apply w-full;
19
+ }
20
+
21
+ @media (min-aspect-ratio: 3/4){
22
+ @apply w-auto max-w-full;
23
+ min-width: 50rem;
24
+ left:50%;
25
+ transform: translate(-50%);
26
+ }
27
+
28
+ &.digit-error {
29
+ background-color: theme(digitv2.lightTheme.alert-error);
30
+ }
31
+
32
+ &.digit-warning {
33
+ background-color: #F19100;
34
+
35
+ &.digit-warning-buttons {
36
+ @apply block;
37
+ }
38
+ }
39
+
40
+ .toast-label {
41
+ @extend .typography.caption-s;
42
+ @apply text-left overflow-hidden whitespace-no-wrap flex-grow flex items-center h-6;
43
+ letter-spacing: theme(digitv2.spacers.spacer0);
44
+ color: theme(digitv2.lightTheme.paper-primary);
45
+ margin: theme(digitv2.spacers.spacer0);
46
+ text-overflow: ellipsis;
47
+ }
48
+
49
+ &.digit-info {
50
+ background-color: theme(digitv2.lightTheme.alert-info);
51
+ }
52
+
53
+ .digit-warning-button-container {
54
+ @apply w-full flex justify-end;
55
+
56
+ button {
57
+ margin-left: 0.625rem;
58
+ }
59
+ }
60
+
61
+ .digit-toast-sub-container {
62
+ @apply flex;
63
+ }
64
+
65
+ svg {
66
+ @apply flex-shrink-0;
67
+ }
68
+ }
69
+
70
+ @keyframes slideInFromBottom {
71
+ from {
72
+ bottom: -(theme(digitv2.spacers.spacer12));
73
+ }
74
+ to {
75
+ bottom: 4rem;
76
+ }
77
+ }
78
+
79
+ .digit-toast-success.animate {
80
+ animation: slideInFromBottom 0.5s ease forwards;
81
81
  }
@@ -1,73 +1,73 @@
1
- @import url("../index.scss");
2
-
3
-
4
- .digit-toggle-toolbar {
5
- @apply flex justify-start w-full;
6
- max-width: 37.5rem;
7
- min-width: 7.5rem;
8
- }
9
-
10
-
11
- .toggle-option-container {
12
- @apply inline-flex items-center;
13
- gap: theme(digitv2.spacers.spacer2);
14
- }
15
-
16
- .digit-toggle-btn-wrap {
17
- @apply flex items-center justify-center cursor-pointer bg-white overflow-hidden text-center;
18
- padding: 0.125rem theme(digitv2.spacers.spacer0);
19
- width: 7rem;
20
- height: theme(digitv2.spacers.spacer8);
21
- border: 0.063rem solid theme(digitv2.lightTheme.generic-divider);
22
- text-overflow: ellipsis;
23
-
24
- .digit-toggle-label {
25
- @extend .typography.body-xs;
26
- @apply w-full overflow-hidden whitespace-no-wrap;
27
- color: theme(digitv2.lightTheme.text-disabled);
28
- text-overflow: ellipsis;
29
- }
30
-
31
- &:hover,
32
- &:active {
33
- border: 0.063rem solid theme(digitv2.lightTheme.primary-1);
34
- background: theme(digitv2.lightTheme.paper-primary);
35
- width: 7.125rem;
36
- color: theme(digitv2.lightTheme.primary-1);
37
-
38
- .digit-toggle-label {
39
- color: theme(digitv2.lightTheme.primary-1) !important;
40
- }
41
- }
42
-
43
- &:active {
44
- box-shadow: theme(digitv2.spacers.spacer0) theme(digitv2.spacers.spacer0) 0.375rem theme(digitv2.spacers.spacer0) #F4773840;
45
- }
46
-
47
- input:checked+.digit-toggle-label {
48
- @extend .typography.heading-s;
49
- background-color: theme(digitv2.lightTheme.primary-1);
50
- color: theme(digitv2.lightTheme.paper-primary) !important;
51
- }
52
-
53
- &.checked {
54
- background-color: theme(digitv2.lightTheme.primary-1);
55
- width: 7.125rem;
56
- border: 0.063rem solid theme(digitv2.lightTheme.primary-1);
57
-
58
- .digit-toggle-label {
59
- @extend .typography.heading-s;
60
- color: theme(digitv2.lightTheme.paper-primary);
61
- }
62
- }
63
- }
64
-
65
-
66
- .digit-toggle-input {
67
- @apply absolute opacity-0;
68
- }
69
-
70
- .digit-toggle-label {
71
- color: theme(digitv2.lightTheme.text-disabled);
72
- padding: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer3);
1
+ @import url("../index.scss");
2
+
3
+
4
+ .digit-toggle-toolbar {
5
+ @apply flex justify-start w-full;
6
+ max-width: 37.5rem;
7
+ min-width: 7.5rem;
8
+ }
9
+
10
+
11
+ .toggle-option-container {
12
+ @apply inline-flex items-center;
13
+ gap: theme(digitv2.spacers.spacer2);
14
+ }
15
+
16
+ .digit-toggle-btn-wrap {
17
+ @apply flex items-center justify-center cursor-pointer bg-white overflow-hidden text-center;
18
+ padding: 0.125rem theme(digitv2.spacers.spacer0);
19
+ width: 7rem;
20
+ height: theme(digitv2.spacers.spacer8);
21
+ border: 0.063rem solid theme(digitv2.lightTheme.generic-divider);
22
+ text-overflow: ellipsis;
23
+
24
+ .digit-toggle-label {
25
+ @extend .typography.body-xs;
26
+ @apply w-full overflow-hidden whitespace-no-wrap;
27
+ color: theme(digitv2.lightTheme.text-disabled);
28
+ text-overflow: ellipsis;
29
+ }
30
+
31
+ &:hover,
32
+ &:active {
33
+ border: 0.063rem solid theme(digitv2.lightTheme.primary-1);
34
+ background: theme(digitv2.lightTheme.paper-primary);
35
+ width: 7.125rem;
36
+ color: theme(digitv2.lightTheme.primary-1);
37
+
38
+ .digit-toggle-label {
39
+ color: theme(digitv2.lightTheme.primary-1) !important;
40
+ }
41
+ }
42
+
43
+ &:active {
44
+ box-shadow: theme(digitv2.spacers.spacer0) theme(digitv2.spacers.spacer0) 0.375rem theme(digitv2.spacers.spacer0) #F4773840;
45
+ }
46
+
47
+ input:checked+.digit-toggle-label {
48
+ @extend .typography.heading-s;
49
+ background-color: theme(digitv2.lightTheme.primary-1);
50
+ color: theme(digitv2.lightTheme.paper-primary) !important;
51
+ }
52
+
53
+ &.checked {
54
+ background-color: theme(digitv2.lightTheme.primary-1);
55
+ width: 7.125rem;
56
+ border: 0.063rem solid theme(digitv2.lightTheme.primary-1);
57
+
58
+ .digit-toggle-label {
59
+ @extend .typography.heading-s;
60
+ color: theme(digitv2.lightTheme.paper-primary);
61
+ }
62
+ }
63
+ }
64
+
65
+
66
+ .digit-toggle-input {
67
+ @apply absolute opacity-0;
68
+ }
69
+
70
+ .digit-toggle-label {
71
+ color: theme(digitv2.lightTheme.text-disabled);
72
+ padding: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer3);
73
73
  }
@@ -0,0 +1,96 @@
1
+ .tooltip-wrapper {
2
+ position: relative;
3
+ display: inline-block;
4
+ }
5
+
6
+ .tooltip-content{
7
+ position: absolute;
8
+ background-color: theme(digitv2.lightTheme.generic-inputborder);
9
+ color: theme(digitv2.lightTheme.paper-primary);
10
+ padding: theme(digitv2.spacers.spacer2);
11
+ border-radius: theme(digitv2.spacers.spacer1);
12
+ z-index: 1000;
13
+ pointer-events: none;
14
+ width: max-content;
15
+ transition: all 0.5s ease;
16
+
17
+ min-width: 4.125rem;
18
+ max-width: 14.563rem;
19
+
20
+ font-family: theme(digitv2.fontFamily.sans);
21
+ font-style: theme(digitv2.fontStyle.normal);
22
+ font-weight: theme(digitv2.fontWeight.regular);
23
+ line-height: theme(digitv2.lineHeight.lineheight2);
24
+
25
+ @media (max-aspect-ratio: 9/16) {
26
+ font-size: theme(digitv2.fontSize.body-s.mobile);
27
+ }
28
+
29
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
30
+ font-size: theme(digitv2.fontSize.body-s.tablet);
31
+ }
32
+
33
+ @media (min-aspect-ratio: 3/4) {
34
+ font-size: theme(digitv2.fontSize.body-s.desktop);
35
+ }
36
+ }
37
+
38
+ .tooltip-content.tooltip-left{
39
+ left: -10rem;
40
+ }
41
+
42
+ .tooltip-content.tooltip-right{
43
+ left: 10rem;
44
+ }
45
+
46
+ .tooltip-content.tooltip-top{
47
+ top: -3.75rem;
48
+ }
49
+
50
+ .tooltip-content.tooltip-bottom{
51
+ top: 3.75rem;
52
+ }
53
+
54
+ .tooltip-left:before{
55
+ content: "";
56
+ position: absolute;
57
+ top: 0;
58
+ right:-0.625rem;
59
+ border-left:0.625rem solid transparent;
60
+ border-right:0.625rem solid transparent;
61
+ border-top:0.625rem solid theme(digitv2.lightTheme.generic-inputborder);
62
+ border-bottom:0.625rem solid transparent;
63
+ }
64
+
65
+ .tooltip-right:before{
66
+ content: "";
67
+ position: absolute;
68
+ top: 0;
69
+ left:-0.625rem;
70
+ border-left:0.625rem solid transparent;
71
+ border-right:0.625rem solid transparent;
72
+ border-top:0.625rem solid theme(digitv2.lightTheme.generic-inputborder);
73
+ border-bottom:0.625rem solid transparent;
74
+ }
75
+
76
+ .tooltip-top:before{
77
+ content: "";
78
+ position: absolute;
79
+ bottom:-0.625rem;
80
+ right:0rem;
81
+ border-left:0.625rem solid transparent;
82
+ border-right:0.625rem solid theme(digitv2.lightTheme.generic-inputborder);
83
+ border-top:0.625rem solid transparent;
84
+ border-bottom:0.625rem solid transparent;
85
+ }
86
+
87
+ .tooltip-bottom:before{
88
+ content: "";
89
+ position: absolute;
90
+ top:-0.625rem;
91
+ left:0rem;
92
+ border-left:0.625rem solid theme(digitv2.lightTheme.generic-inputborder);
93
+ border-right:0.625rem solid transparent;
94
+ border-top:0.625rem solid transparent;
95
+ border-bottom:0.625rem solid transparent;
96
+ }