@egovernments/digit-ui-components-css 0.0.1 → 0.0.2-1

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 (191) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist/index.css +6903 -14436
  3. package/dist/index.min.css +2 -2
  4. package/package.json +4 -2
  5. package/src/digitv2/components/actionbarV2.scss +100 -3
  6. package/src/digitv2/components/backLinkV2.scss +37 -0
  7. package/src/digitv2/components/breadcrumbV2.scss +57 -0
  8. package/src/digitv2/components/buttonsV2.scss +45 -2
  9. package/src/digitv2/components/cardV2.scss +380 -265
  10. package/src/digitv2/components/cardbasedoptionsV2.scss +47 -0
  11. package/src/digitv2/components/checkboxV2.scss +4 -0
  12. package/src/digitv2/components/{tagV2.scss → chipV2.scss} +9 -0
  13. package/src/digitv2/components/dividerV2.scss +11 -0
  14. package/src/digitv2/components/{ErrorMessage.scss → errorMessageV2.scss} +2 -0
  15. package/src/digitv2/components/fieldV1.scss +1 -1
  16. package/src/digitv2/components/headerdropdownV2.scss +152 -0
  17. package/src/digitv2/components/infoCardV2.scss +1 -4
  18. package/src/digitv2/components/labelFieldPairV2.scss +20 -11
  19. package/src/digitv2/components/mobileNumberV2.scss +1 -1
  20. package/src/digitv2/components/mobilesidebarV2.scss +439 -0
  21. package/src/digitv2/components/multiSelectDropdownV2.scss +1 -1
  22. package/src/digitv2/components/popUpV2.scss +31 -9
  23. package/src/digitv2/components/radiobtnV2.scss +6 -4
  24. package/src/digitv2/components/{selectdropdownV2.scss → selectDropdownV2.scss} +7 -3
  25. package/src/digitv2/components/sidebarV2.scss +404 -6
  26. package/src/digitv2/components/{stepper.scss → stepperV2.scss} +30 -9
  27. package/src/digitv2/components/textInputV2.scss +1 -1
  28. package/src/digitv2/components/textareaV2.scss +1 -1
  29. package/src/digitv2/components/{timeline.scss → timelineV2.scss} +55 -11
  30. package/src/digitv2/components/tooltipwrapperV2.scss +96 -0
  31. package/src/digitv2/components/topbarV2.scss +368 -167
  32. package/src/digitv2/components/{uploader.scss → uploaderV2.scss} +98 -10
  33. package/src/digitv2/components/viewCardFieldPairV2.scss +45 -0
  34. package/src/digitv2/index.scss +25 -50
  35. package/src/digitv2/typography.scss +1 -20
  36. package/src/index.scss +3 -100
  37. package/src/pages/employee/index.scss +1 -1
  38. package/img/browser-icon.png +0 -0
  39. package/img/m_seva_white_logo.png +0 -0
  40. package/img/mseva-demo.png +0 -0
  41. package/src/components/CardBasedOptions.scss +0 -46
  42. package/src/components/CitizenHomeCard.scss +0 -56
  43. package/src/components/EllipsisMenu.scss +0 -17
  44. package/src/components/EventCalendarView.scss +0 -10
  45. package/src/components/FAQ.scss +0 -64
  46. package/src/components/OnGroundEventCard.scss +0 -72
  47. package/src/components/PageBasedInput.scss +0 -29
  48. package/src/components/PopupHeadingLabel.scss +0 -15
  49. package/src/components/PropertySearchForm.scss +0 -58
  50. package/src/components/SearchForm.scss +0 -56
  51. package/src/components/SearchOnRadioButton.scss +0 -10
  52. package/src/components/StandaloneSearchBar.scss +0 -10
  53. package/src/components/TimeLine.scss +0 -68
  54. package/src/components/WhatsNewCard.scss +0 -13
  55. package/src/components/actionLink.scss +0 -3
  56. package/src/components/actionbar.scss +0 -97
  57. package/src/components/bannercomponents.scss +0 -136
  58. package/src/components/body.scss +0 -144
  59. package/src/components/buttons.scss +0 -101
  60. package/src/components/card.scss +0 -391
  61. package/src/components/cardHeaderWithOptions.scss +0 -14
  62. package/src/components/changeLanguage.scss +0 -3
  63. package/src/components/charts.scss +0 -186
  64. package/src/components/checkbox.scss +0 -53
  65. package/src/components/checkpoint.scss +0 -63
  66. package/src/components/citizenInfoLabel.scss +0 -14
  67. package/src/components/custombtn.scss +0 -11
  68. package/src/components/datatable.scss +0 -134
  69. package/src/components/datewrap.scss +0 -21
  70. package/src/components/detailscard.scss +0 -6
  71. package/src/components/detailscontainer.scss +0 -13
  72. package/src/components/filters.scss +0 -98
  73. package/src/components/grey.scss +0 -3
  74. package/src/components/hoc/InboxComposer.scss +0 -115
  75. package/src/components/hoc/index.scss +0 -1
  76. package/src/components/howItWorks.scss +0 -71
  77. package/src/components/imageviewer.scss +0 -33
  78. package/src/components/inboxv2/InboxLinks.scss +0 -59
  79. package/src/components/inboxv2/horizontalNav.scss +0 -224
  80. package/src/components/inboxv2/inboxSearch.scss +0 -116
  81. package/src/components/inboxv2/inboxSearchComposer.scss +0 -134
  82. package/src/components/inboxv2/index.scss +0 -5
  83. package/src/components/inboxv2/searchComponentTable.scss +0 -44
  84. package/src/components/info-banner.scss +0 -35
  85. package/src/components/inputotp.scss +0 -15
  86. package/src/components/keynote.scss +0 -27
  87. package/src/components/languageSelector.scss +0 -24
  88. package/src/components/loader.scss +0 -96
  89. package/src/components/map.scss +0 -30
  90. package/src/components/menu.scss +0 -0
  91. package/src/components/metricsTable.scss +0 -28
  92. package/src/components/multiLink.scss +0 -88
  93. package/src/components/multiSelectDropdown.scss +0 -77
  94. package/src/components/navbar.scss +0 -312
  95. package/src/components/plusMinus.scss +0 -15
  96. package/src/components/popup.scss +0 -16
  97. package/src/components/radiobtn.scss +0 -45
  98. package/src/components/ratingstar.scss +0 -33
  99. package/src/components/roundedLabel.scss +0 -10
  100. package/src/components/searchAction.scss +0 -20
  101. package/src/components/sectionalDropdown.scss +0 -43
  102. package/src/components/selectdropdown.scss +0 -174
  103. package/src/components/sidebar.scss +0 -141
  104. package/src/components/staticDynamicMessages.scss +0 -107
  105. package/src/components/staticSideBar.scss +0 -27
  106. package/src/components/statushighlight.scss +0 -17
  107. package/src/components/submiterrors.scss +0 -11
  108. package/src/components/summary.scss +0 -29
  109. package/src/components/table.scss +0 -201
  110. package/src/components/tag.scss +0 -27
  111. package/src/components/telephone.scss +0 -17
  112. package/src/components/textfields.scss +0 -96
  113. package/src/components/toast.scss +0 -31
  114. package/src/components/toggleSwitch.scss +0 -41
  115. package/src/components/topbar.scss +0 -153
  116. package/src/components/uploadcomponents.scss +0 -100
  117. package/src/digitv2/components/CitizenHomeCardV2.scss +0 -56
  118. package/src/digitv2/components/PageBasedInputV2.scss +0 -33
  119. package/src/digitv2/components/WhatsNewCardV2.scss +0 -13
  120. package/src/digitv2/components/actionLinkV2.scss +0 -9
  121. package/src/digitv2/components/appContainerV2.scss +0 -49
  122. package/src/digitv2/components/backButtonV2.scss +0 -26
  123. package/src/digitv2/components/bannerV2.scss +0 -120
  124. package/src/digitv2/components/breadCrumbV2.scss +0 -34
  125. package/src/digitv2/components/breakLineV2.scss +0 -6
  126. package/src/digitv2/components/cardBasedOptionsV2.scss +0 -46
  127. package/src/digitv2/components/checkpointV2.scss +0 -71
  128. package/src/digitv2/components/collapseAndExpandGroups.scss +0 -60
  129. package/src/digitv2/components/dateWrapV2.scss +0 -17
  130. package/src/digitv2/components/detailsCardV2.scss +0 -17
  131. package/src/digitv2/components/displayPhotosV2.scss +0 -33
  132. package/src/digitv2/components/footerV2.scss +0 -55
  133. package/src/digitv2/components/headerBarV2.scss +0 -34
  134. package/src/digitv2/components/headerV2.scss +0 -12
  135. package/src/digitv2/components/keynoteV2.scss +0 -35
  136. package/src/digitv2/components/loaderV2.scss +0 -85
  137. package/src/digitv2/components/modalV2.scss +0 -46
  138. package/src/digitv2/components/multiUploadWrapperV2.scss +0 -6
  139. package/src/digitv2/components/navbarV2.scss +0 -9
  140. package/src/digitv2/components/noresultsfoundV2.scss +0 -11
  141. package/src/digitv2/components/numeric.scss +0 -47
  142. package/src/digitv2/components/otpInputV2.scss +0 -15
  143. package/src/digitv2/components/paragraphV2.scss +0 -5
  144. package/src/digitv2/components/ratingV2.scss +0 -33
  145. package/src/digitv2/components/searchActionV2.scss +0 -11
  146. package/src/digitv2/components/searchFormV2.scss +0 -76
  147. package/src/digitv2/components/searchcomponent.scss +0 -7
  148. package/src/digitv2/components/telephoneV2.scss +0 -18
  149. package/src/digitv2/components/toggleswitchV2.scss +0 -42
  150. package/src/digitv2/components/uploadFileV2.scss +0 -146
  151. package/src/pages/citizen/CitizenEngagementNotificationWrapper.scss +0 -8
  152. package/src/pages/citizen/DocumentList.scss +0 -305
  153. package/src/pages/citizen/Events.scss +0 -47
  154. package/src/pages/citizen/HomePageWrapper.scss +0 -158
  155. package/src/pages/citizen/SurveyList.scss +0 -22
  156. package/src/pages/citizen/citizenDocument.scss +0 -22
  157. package/src/pages/citizen/container.scss +0 -19
  158. package/src/pages/citizen/payment/payment-type.scss +0 -3
  159. package/src/pages/citizen/updatePropertyNumber.scss +0 -46
  160. package/src/pages/employee/EmployeeLogin.scss +0 -7
  161. package/src/pages/employee/cardfix.scss +0 -13
  162. package/src/pages/employee/container.scss +0 -72
  163. package/src/pages/employee/dss.scss +0 -266
  164. package/src/pages/employee/form-fields.scss +0 -13
  165. package/src/pages/employee/iframe.scss +0 -66
  166. package/src/pages/employee/inbox.scss +0 -585
  167. package/src/pages/employee/oldMobileInbox.scss +0 -5
  168. package/src/pages/employee/popupmodule.scss +0 -34
  169. package/src/pages/employee/response.scss +0 -3
  170. package/src/pages/employee/scroll-table.scss +0 -119
  171. package/src/pages/employee/surveys.scss +0 -273
  172. package/src/pages/employee/tooltip.scss +0 -36
  173. package/src/pages/employee/updateNumber.scss +0 -13
  174. package/svg/arrowdown.svg +0 -1
  175. package/svg/arrowleft.svg +0 -1
  176. package/svg/calendar.svg +0 -1
  177. package/svg/camera.svg +0 -4
  178. package/svg/check.svg +0 -4
  179. package/svg/close.svg +0 -4
  180. package/svg/error.svg +0 -4
  181. package/svg/error2.svg +0 -5
  182. package/svg/searchicon.svg +0 -4
  183. package/svg/starempty.svg +0 -4
  184. package/svg/starfilled.svg +0 -5
  185. package/svg/success.svg +0 -4
  186. /package/src/digitv2/components/{cardLabelV2.scss → cardlabelV2.scss} +0 -0
  187. /package/src/digitv2/components/{infobuttons.scss → infobuttonV2.scss} +0 -0
  188. /package/src/digitv2/components/{panelcard.scss → panelCardV2.scss} +0 -0
  189. /package/src/digitv2/components/{panels.scss → panelV2.scss} +0 -0
  190. /package/src/digitv2/components/{textblock.scss → textblockV2.scss} +0 -0
  191. /package/src/digitv2/components/{toggle.scss → toggleV2.scss} +0 -0
@@ -0,0 +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
+ }
47
+
@@ -26,6 +26,10 @@
26
26
  @apply opacity-0;
27
27
  }
28
28
 
29
+ svg{
30
+ flex-shrink: 0;
31
+ }
32
+
29
33
  &:hover {
30
34
  @apply border-2 ;
31
35
  border-color: theme(digitv2.lightTheme.primary-1);
@@ -118,4 +118,13 @@
118
118
  }
119
119
  }
120
120
  }
121
+ }
122
+
123
+ .cp{
124
+ cursor: pointer;
125
+ }
126
+
127
+ .nonclickable{
128
+ pointer-events: none;
129
+ cursor:none;
121
130
  }
@@ -0,0 +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
+ }
11
+ }
@@ -4,6 +4,8 @@
4
4
  .digit-error-icon-message-wrap {
5
5
  @apply flex w-full whitespace-pre-wrap break-words;
6
6
  gap: theme(digitv2.spacers.spacer1);
7
+ word-break: break-word;
8
+ cursor: default;
7
9
 
8
10
  .digit-error-icon{
9
11
  @apply flex items-center;
@@ -82,7 +82,7 @@
82
82
  }
83
83
 
84
84
  @media (max-aspect-ratio: 9/16) {
85
- max-width: 20.5rem;
85
+ max-width: 100%;
86
86
  width: 100%;
87
87
  }
88
88
 
@@ -0,0 +1,152 @@
1
+ .header-dropdown-profile {
2
+ display: flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ width: theme(digitv2.spacers.spacer8);
6
+ height: theme(digitv2.spacers.spacer8);
7
+ overflow: hidden;
8
+ border-radius: 50%;
9
+
10
+ &.text {
11
+ color: theme(digitv2.lightTheme.paper-primary);
12
+ font-weight: 700;
13
+ background: theme(digitv2.lightTheme.primary-2);
14
+ }
15
+
16
+ &.dark {
17
+ &.text {
18
+ background: theme(digitv2.lightTheme.paper-primary);
19
+ font-weight: 700;
20
+ color: theme(digitv2.lightTheme.primary-2);
21
+ }
22
+ }
23
+
24
+ img {
25
+ width: 100%;
26
+ height: auto;
27
+ display: block;
28
+ }
29
+ }
30
+
31
+ .header-dropdown-label {
32
+ @extend .typography.body-s;
33
+ cursor: pointer;
34
+ display: flex;
35
+ align-items: center;
36
+ color: theme(digitv2.lightTheme.text-primary);
37
+ position: relative;
38
+
39
+ &.dark {
40
+ color: theme(digitv2.lightTheme.paper-primary);
41
+ }
42
+ }
43
+
44
+ .header-dropdown-arrow {
45
+ margin-left: theme(digitv2.spacers.spacer2);
46
+ width: theme(digitv2.spacers.spacer6);
47
+ height: theme(digitv2.spacers.spacer6);
48
+ }
49
+
50
+ .header-dropdown-menu {
51
+ width: fit-content !important;
52
+ box-shadow: theme(digitv2.spacers.spacer0) 0.063rem 0.275rem theme(digitv2.spacers.spacer0) #00000026;
53
+ max-height: 80%;
54
+ background-color: theme(digitv2.lightTheme.paper-primary);
55
+ margin-top: theme(digitv2.spacers.spacer5);
56
+ position: fixed;
57
+ min-width: 14rem;
58
+ max-width: 25rem;
59
+ @apply z-30 overflow-y-auto overflow-x-hidden;
60
+ }
61
+
62
+ .header-dropdown-search-container {
63
+ height: 3.5rem;
64
+ min-width: 14rem;
65
+ max-width: 25rem;
66
+ width: auto;
67
+ padding: theme(digitv2.spacers.spacer3) !important;
68
+ }
69
+
70
+ .header-dropdown-search {
71
+ height: theme(digitv2.spacers.spacer8) !important;
72
+ min-width: 12.5rem;
73
+ max-width: 23.5rem;
74
+
75
+ .digit-text-input-customIcon {
76
+ height: theme(digitv2.spacers.spacer5);
77
+ width: theme(digitv2.spacers.spacer5);
78
+ top: 0.4rem;
79
+ right: theme(digitv2.spacers.spacer4);
80
+ }
81
+
82
+ .input-container {
83
+ max-height: 100%;
84
+ }
85
+
86
+ input {
87
+ max-height: 100%;
88
+ }
89
+ }
90
+
91
+ .header-dropdown-options {
92
+ max-height: 12.5rem;
93
+ overflow-y: auto;
94
+ }
95
+
96
+ .header-dropdown-option {
97
+ @extend .typography.body-s;
98
+ @apply whitespace-no-wrap w-full max-w-full overflow-hidden;
99
+ padding: theme(digitv2.spacers.spacer4) 0.625rem;
100
+ color: theme(digitv2.lightTheme.text-primary);
101
+ gap: theme(digitv2.spacers.spacer2);
102
+ height: theme(digitv2.spacers.spacer10);
103
+ display: flex;
104
+ align-items: center;
105
+ word-break: break-word;
106
+ text-overflow: ellipsis;
107
+ cursor: pointer;
108
+
109
+ svg {
110
+ flex-shrink: 0;
111
+ }
112
+ }
113
+
114
+ .header-dropdown-option:not(:hover):not(:active):nth-of-type(2n +1) {
115
+ background-color: theme(digitv2.lightTheme.paper-secondary);
116
+ }
117
+
118
+ .header-dropdown-nooption {
119
+ @extend .typography.body-s;
120
+ padding: theme(digitv2.spacers.spacer2);
121
+ pointer-events: none;
122
+ color: theme(digitv2.lightTheme.text-disabled);
123
+ background-color: theme(digitv2.lightTheme.paper-secondary);
124
+ }
125
+
126
+ .header-dropdown-option:hover,
127
+ .header-dropdown-option.keyChange {
128
+ background: theme(digitv2.lightTheme.primary-bg) !important;
129
+ border: 0.031rem solid theme(digitv2.lightTheme.primary-1);
130
+ }
131
+
132
+ .header-dropdown-option:active,
133
+ .header-dropdown-option.activeIndex {
134
+ @extend .typography.heading-s;
135
+ background: theme(digitv2.lightTheme.primary-1) !important;
136
+ color: theme(digitv2.lightTheme.paper-primary);
137
+ }
138
+
139
+ .header-dropdown-options::-webkit-scrollbar {
140
+ width: theme(digitv2.spacers.spacer2);
141
+ background-color: theme(digitv2.lightTheme.generic-background);
142
+ }
143
+
144
+ .header-dropdown-options::-webkit-scrollbar-track {
145
+ background-color: theme(digitv2.lightTheme.generic-background);
146
+ border-radius: 0.563rem;
147
+ }
148
+
149
+ .header-dropdown-options::-webkit-scrollbar-thumb {
150
+ background-color: theme(digitv2.lightTheme.generic-divider);
151
+ border-radius: 0.563rem;
152
+ }
@@ -2,7 +2,7 @@
2
2
  @import url("../typography.scss");
3
3
 
4
4
  .digit-infobanner-wrap {
5
- @apply m-sm p-md flex flex-col;
5
+ @apply p-md flex flex-col;
6
6
  top: theme(digitv2.spacers.spacer5);
7
7
  left: theme(digitv2.spacers.spacer5);
8
8
  gap: theme(digitv2.spacers.spacer2);
@@ -86,19 +86,16 @@
86
86
  @media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
87
87
  /* Media query for tablets */
88
88
  max-width: 44.5rem;
89
- min-width: 22.5rem;
90
89
  }
91
90
 
92
91
  @media (max-aspect-ratio: 9/16) {
93
92
  /* Media query for mobile */
94
93
  max-width: 21.5rem;
95
- min-width: 15rem;
96
94
  }
97
95
 
98
96
  @media (min-aspect-ratio: 3/4) {
99
97
  /* Media query for desktop */
100
98
  max-width: 87rem;
101
- min-width: 25rem;
102
99
  }
103
100
 
104
101
  &.inline {
@@ -3,40 +3,49 @@
3
3
 
4
4
 
5
5
  @media (min-aspect-ratio: 9/16) {
6
- @apply items-start;
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);
7
11
  }
8
12
 
9
13
  @media (max-aspect-ratio: 9/16) {
10
- @apply flex-col items-start;
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);
11
20
  }
12
21
 
13
- &.vertical{
14
- @apply flex-col items-start;
22
+ &.vertical {
23
+ @apply flex-col items-start;
24
+ gap: theme(digitv2.spacers.spacer2);
15
25
  }
16
26
 
17
27
  & .label,
18
28
  & header {
19
- margin-right: theme(digitv2.spacers.spacer6);
20
29
  width: 33%;
21
30
 
22
31
  @media (max-aspect-ratio: 9/16) {
23
- @apply w-full;
24
- }
32
+ @apply w-full;
33
+ }
25
34
  }
26
35
 
27
36
  & .digit-field {
28
37
  width: 60%;
29
38
 
30
39
  @media (max-aspect-ratio: 9/16) {
31
- width: 100%;
32
- }
40
+ width: 100%;
41
+ }
33
42
  }
34
43
  }
35
44
 
36
- @screen dt {
45
+ @screen dt {
37
46
  .digit-employee-card {
38
47
  .digit-label-field-pair {
39
- @apply mb-lg flex ;
48
+ @apply mb-lg flex;
40
49
 
41
50
  h2 {
42
51
  width: 30%;
@@ -13,7 +13,7 @@
13
13
 
14
14
  @media (max-aspect-ratio: 9/16) {
15
15
  /* Media query for mobile */
16
- max-width: 20.5rem;
16
+ max-width:100%;
17
17
  min-width: 9.75rem;
18
18
  width: 100%;
19
19
  }