@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,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
  }
@@ -1,65 +1,65 @@
1
- @import url("../index.scss");
2
- @import url("../typography.scss");
3
-
4
- .digit-mobile-number-container {
5
- @apply flex items-center;
6
- width: 100%;
7
-
8
- @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
9
- /* Media query for tablets */
10
- max-width: 27.5rem;
11
- min-width: 12.5rem;
12
- }
13
-
14
- @media (max-aspect-ratio: 9/16) {
15
- /* Media query for mobile */
16
- max-width:100%;
17
- min-width: 9.75rem;
18
- width: 100%;
19
- }
20
-
21
- @media (min-aspect-ratio: 3/4) {
22
- /* Media query for desktop */
23
- max-width: 37.5rem;
24
- min-width: 12.5rem;
25
- }
26
-
27
- .digit-text-mobile-input-width {
28
- .digit-text-input-width {
29
- width: calc(540px - 41px);
30
- }
31
- }
32
- .digit-citizen-card-input--front {
33
- @extend .typography.text-body-s;
34
- @extend .light-background;
35
- width: fit-content !important;
36
- display: flex;
37
- align-items: center;
38
- /* background: theme(colors.grey.mid); */
39
- border-right: 0;
40
- padding-right: 5px;
41
- }
42
-
43
- .digit-citizen-card-input {
44
- @extend .typography.text-body-s;
45
- @apply pl-sm outline-none block w-full h-10 bg-white leading-10 text-form-field;
46
- border: 1px solid theme(digitv2.lightTheme.text-secondary);
47
- color: theme(digitv2.lightTheme.text-primary);
48
- }
49
-
50
- .digit-citizen-card-input--front {
51
- @extend .typography.text-body-s;
52
- width: fit-content !important;
53
- display: flex;
54
- align-items: center;
55
- background: theme(colors.grey.mid);
56
- border-right: 0;
57
- padding-right: 5px;
58
- }
59
- .digit-employee-card-input-error {
60
- @extend .typography.text-body-s;
61
- @extend .light-input-border;
62
- @extend .alert-error;
63
- @apply mb-lg pl-sm block w-full h-10 outline-none border-2 border-solid bg-white leading-10 text-form-field text-text-primary;
64
- }
65
- }
1
+ @import url("../index.scss");
2
+ @import url("../typography.scss");
3
+
4
+ .digit-mobile-number-container {
5
+ @apply flex items-center;
6
+ width: 100%;
7
+
8
+ @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
9
+ /* Media query for tablets */
10
+ max-width: 27.5rem;
11
+ min-width: 12.5rem;
12
+ }
13
+
14
+ @media (max-aspect-ratio: 9/16) {
15
+ /* Media query for mobile */
16
+ max-width:100%;
17
+ min-width: 9.75rem;
18
+ width: 100%;
19
+ }
20
+
21
+ @media (min-aspect-ratio: 3/4) {
22
+ /* Media query for desktop */
23
+ max-width: 37.5rem;
24
+ min-width: 12.5rem;
25
+ }
26
+
27
+ .digit-text-mobile-input-width {
28
+ .digit-text-input-width {
29
+ width: calc(540px - 41px);
30
+ }
31
+ }
32
+ .digit-citizen-card-input--front {
33
+ @extend .typography.text-body-s;
34
+ @extend .light-background;
35
+ width: fit-content !important;
36
+ display: flex;
37
+ align-items: center;
38
+ /* background: theme(colors.grey.mid); */
39
+ border-right: 0;
40
+ padding-right: 5px;
41
+ }
42
+
43
+ .digit-citizen-card-input {
44
+ @extend .typography.text-body-s;
45
+ @apply pl-sm outline-none block w-full h-10 bg-white leading-10 text-form-field;
46
+ border: 1px solid theme(digitv2.lightTheme.text-secondary);
47
+ color: theme(digitv2.lightTheme.text-primary);
48
+ }
49
+
50
+ .digit-citizen-card-input--front {
51
+ @extend .typography.text-body-s;
52
+ width: fit-content !important;
53
+ display: flex;
54
+ align-items: center;
55
+ background: theme(colors.grey.mid);
56
+ border-right: 0;
57
+ padding-right: 5px;
58
+ }
59
+ .digit-employee-card-input-error {
60
+ @extend .typography.text-body-s;
61
+ @extend .light-input-border;
62
+ @extend .alert-error;
63
+ @apply mb-lg pl-sm block w-full h-10 outline-none border-2 border-solid bg-white leading-10 text-form-field text-text-primary;
64
+ }
65
+ }