@egovernments/digit-ui-components-css 0.0.2-beta.21 → 0.0.2-beta.23
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.
- package/CHANGELOG.md +8 -0
- package/dist/index.css +257 -48
- package/dist/index.min.css +2 -2
- package/package.json +1 -1
- package/src/digitv2/components/bottomSheetV2.scss +110 -0
- package/src/digitv2/components/switchV2.scss +108 -0
- package/src/digitv2/index.scss +2 -0
- package/src/digitv2/pages/employee/workbench.scss +9 -9
package/package.json
CHANGED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
.digit-bottom-sheet {
|
|
2
|
+
position: fixed;
|
|
3
|
+
left: 0;
|
|
4
|
+
right: 0;
|
|
5
|
+
bottom: 0;
|
|
6
|
+
transition: height 0.3s ease;
|
|
7
|
+
background-color: theme(digitv2.lightTheme.paper-primary);
|
|
8
|
+
box-shadow: theme(digitv2.spacers.spacer0) -0.063rem theme(digitv2.spacers.spacer1) -0.063rem #00000026;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
border-radius: theme(digitv2.spacers.spacer3) theme(digitv2.spacers.spacer3) theme(digitv2.spacers.spacer0) theme(digitv2.spacers.spacer0);
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
|
|
14
|
+
&.full{
|
|
15
|
+
border-radius: theme(digitv2.spacers.spacer0);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.digit-bottom-sheet.closed {
|
|
20
|
+
height: theme(digitv2.spacers.spacer10);
|
|
21
|
+
|
|
22
|
+
&.actionsEnabled {
|
|
23
|
+
height: fit-content;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
.digit-bottom-sheet.fixed {
|
|
29
|
+
height: 30vh;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.digit-bottom-sheet.quarter {
|
|
33
|
+
height: 50vh;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.digit-bottom-sheet.intermediate {
|
|
37
|
+
height: 75vh;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.digit-bottom-sheet.full {
|
|
41
|
+
height: calc(100vh - 3.5rem);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.digit-bottom-sheet-header {
|
|
45
|
+
display: flex;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
height: theme(digitv2.spacers.spacer10);
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
|
|
50
|
+
&.fixed,
|
|
51
|
+
&.quarter,
|
|
52
|
+
&.intermediate,
|
|
53
|
+
&.full{
|
|
54
|
+
height: 1.875rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&.actionsEnabled {
|
|
58
|
+
height: theme(digitv2.spacers.spacer6);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.digit-bottom-sheet-content {
|
|
63
|
+
padding: theme(digitv2.spacers.spacer4);
|
|
64
|
+
overflow-y: scroll;
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
gap: theme(digitv2.spacers.spacer4);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
.digit-bottom-sheet-handle-indicator {
|
|
72
|
+
width: 6.25rem;
|
|
73
|
+
height: 0.375rem;
|
|
74
|
+
border-radius: theme(digitv2.spacers.spacer1);
|
|
75
|
+
background-color: #D9D9D9;
|
|
76
|
+
margin: theme(digitv2.spacers.spacer2) theme(digitv2.spacers.spacer0);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.digit-bottom-sheet-actions {
|
|
80
|
+
padding: theme(digitv2.spacers.spacer4);
|
|
81
|
+
display: flex;
|
|
82
|
+
gap: theme(digitv2.spacers.spacer6);
|
|
83
|
+
background-color: #FFFFFF;
|
|
84
|
+
box-shadow: theme(digitv2.spacers.spacer0) 0.063rem 0.188rem 0.063rem #00000026;
|
|
85
|
+
box-shadow: theme(digitv2.spacers.spacer0) 0.063rem 0.125rem theme(digitv2.spacers.spacer0) #0000004D;
|
|
86
|
+
justify-content: flex-end;
|
|
87
|
+
|
|
88
|
+
&.equallButtons{
|
|
89
|
+
justify-content: flex-start;
|
|
90
|
+
button {
|
|
91
|
+
flex: 1;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.digit-bottom-sheet-content::-webkit-scrollbar {
|
|
98
|
+
width: 0.375rem;
|
|
99
|
+
background-color: theme(digitv2.lightTheme.generic-background);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.digit-bottom-sheet-content::-webkit-scrollbar-track {
|
|
103
|
+
background-color: theme(digitv2.lightTheme.generic-background);
|
|
104
|
+
border-radius: 0.563rem;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.digit-bottom-sheet-content::-webkit-scrollbar-thumb {
|
|
108
|
+
background-color: theme(digitv2.lightTheme.generic-divider);
|
|
109
|
+
border-radius: 0.563rem;
|
|
110
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
.digit-switch-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.digit-switch {
|
|
7
|
+
width: theme(digitv2.spacers.spacer11);
|
|
8
|
+
height: theme(digitv2.spacers.spacer6);
|
|
9
|
+
background-color: #BFBFBF;
|
|
10
|
+
border-radius: theme(digitv2.spacers.spacer4);
|
|
11
|
+
position: relative;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
transition: background-color 0.2s ease;
|
|
14
|
+
flex-shrink: 0;
|
|
15
|
+
animation-timing-function: ease-out;
|
|
16
|
+
animation-duration: 150ms;
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
|
|
21
|
+
&:focus-within{
|
|
22
|
+
outline: none;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.digit-switch.checked {
|
|
27
|
+
background-color: theme(digitv2.lightTheme.primary-1);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.digit-switch-toggle {
|
|
31
|
+
width: 1.125rem;
|
|
32
|
+
height: 1.125rem;
|
|
33
|
+
background-color: theme(digitv2.lightTheme.paper-primary);
|
|
34
|
+
border-radius: 50%;
|
|
35
|
+
position: absolute;
|
|
36
|
+
left: 0.125rem;
|
|
37
|
+
transition: left 0.2s ease;
|
|
38
|
+
box-shadow: theme(digitv2.spacers.spacer0) 0.125rem theme(digitv2.spacers.spacer1) theme(digitv2.spacers.spacer0) #00230B33;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.digit-switch.checked .digit-switch-toggle {
|
|
42
|
+
left: theme(digitv2.spacers.spacer6);
|
|
43
|
+
background-color: theme(digitv2.lightTheme.paper-primary);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.digit-switch-label {
|
|
47
|
+
@extend .typography.body-s;
|
|
48
|
+
margin-left: theme(digitv2.spacers.spacer2);
|
|
49
|
+
font-family: theme(digitv2.fontFamily.sans);
|
|
50
|
+
font-style: theme(digitv2.fontStyle.normal);
|
|
51
|
+
font-weight: theme(digitv2.fontWeight.regular);
|
|
52
|
+
line-height: theme(digitv2.lineHeight.lineheight2);
|
|
53
|
+
|
|
54
|
+
@media (max-aspect-ratio: 9/16) {
|
|
55
|
+
font-size: theme(digitv2.fontSize.body-s.mobile);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 3/4) {
|
|
59
|
+
font-size: theme(digitv2.fontSize.body-s.tablet);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@media (min-aspect-ratio: 3/4) {
|
|
63
|
+
font-size: theme(digitv2.fontSize.body-s.desktop);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@apply text-left;
|
|
67
|
+
word-break: break-word;
|
|
68
|
+
letter-spacing: theme(digitv2.spacers.spacer0);
|
|
69
|
+
color: theme(digitv2.lightTheme.text-secondary);
|
|
70
|
+
|
|
71
|
+
&.labelFirst{
|
|
72
|
+
margin:theme(digitv2.spacers.spacer0);
|
|
73
|
+
margin-right:theme(digitv2.spacers.spacer2);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
.digit-switch-shape-on {
|
|
79
|
+
position: absolute;
|
|
80
|
+
top: theme(digitv2.spacers.spacer2);
|
|
81
|
+
width: 0.125rem;
|
|
82
|
+
height: theme(digitv2.spacers.spacer2);
|
|
83
|
+
border-radius: 0.063rem;
|
|
84
|
+
left: 0.625rem;
|
|
85
|
+
background-color: theme(digitv2.lightTheme.primary-bg);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.digit-switch-shape-off {
|
|
89
|
+
position: absolute;
|
|
90
|
+
top: theme(digitv2.spacers.spacer2);
|
|
91
|
+
width: theme(digitv2.spacers.spacer2);
|
|
92
|
+
height: theme(digitv2.spacers.spacer2);
|
|
93
|
+
right: theme(digitv2.spacers.spacer2);
|
|
94
|
+
background-color: transparent;
|
|
95
|
+
border-radius: 50%;
|
|
96
|
+
border: 0.063rem solid theme(digitv2.lightTheme.generic-background);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.digit-switch-container.switch-disabled {
|
|
100
|
+
.digit-switch {
|
|
101
|
+
cursor: not-allowed;
|
|
102
|
+
pointer-events: none;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.digit-switch-label {
|
|
106
|
+
color: theme(digitv2.lightTheme.text-disabled);
|
|
107
|
+
}
|
|
108
|
+
}
|
package/src/digitv2/index.scss
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@import url("./components/backLinkV2.scss");
|
|
2
2
|
@import url("./components/bodyContainerV2.scss");
|
|
3
|
+
@import url("./components/bottomSheetV2.scss");
|
|
3
4
|
@import url("./components/breadcrumbV2.scss");
|
|
4
5
|
@import url("./components/buttonsV2.scss");
|
|
5
6
|
@import url("./components/cardlabelV2.scss");
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
@import url("./components/chipV2.scss");
|
|
23
24
|
@import url("./components/selectDropdownV2.scss");
|
|
24
25
|
@import url("./components/stepperV2.scss");
|
|
26
|
+
@import url("./components/switchV2.scss");
|
|
25
27
|
@import url("./components/selectionCardV2.scss");
|
|
26
28
|
@import url("./components/textareaV2.scss");
|
|
27
29
|
@import url("./components/textblockV2.scss");
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
.bread-crumb.workbench-bredcrumb{
|
|
4
4
|
a{
|
|
5
|
-
color: theme(digitv2.lightTheme.primary-
|
|
5
|
+
color: theme(digitv2.lightTheme.primary-1);
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
.workbench{
|
|
@@ -142,7 +142,7 @@ a{
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
.digit__control--is-focused {
|
|
145
|
-
border-color: theme(digitv2.lightTheme.primary-
|
|
145
|
+
border-color: theme(digitv2.lightTheme.primary-1) !important;
|
|
146
146
|
box-shadow: none;
|
|
147
147
|
box-sizing: unset;
|
|
148
148
|
@apply outline-none;
|
|
@@ -158,10 +158,10 @@ a{
|
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
.digit__control:focus {
|
|
161
|
-
border-color: theme(digitv2.lightTheme.primary-
|
|
161
|
+
border-color: theme(digitv2.lightTheme.primary-1);
|
|
162
162
|
|
|
163
163
|
.digit__value-container:focus {
|
|
164
|
-
border-color: theme(digitv2.lightTheme.primary-
|
|
164
|
+
border-color: theme(digitv2.lightTheme.primary-1);
|
|
165
165
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
@@ -169,7 +169,7 @@ a{
|
|
|
169
169
|
|
|
170
170
|
&.form-select:focus {
|
|
171
171
|
@apply outline-none;
|
|
172
|
-
border-color: theme(digitv2.lightTheme.primary-
|
|
172
|
+
border-color: theme(digitv2.lightTheme.primary-1);
|
|
173
173
|
|
|
174
174
|
}
|
|
175
175
|
}
|
|
@@ -182,7 +182,7 @@ a{
|
|
|
182
182
|
.form-control:focus {
|
|
183
183
|
|
|
184
184
|
@apply outline-none;
|
|
185
|
-
border-color: theme(digitv2.lightTheme.primary-
|
|
185
|
+
border-color: theme(digitv2.lightTheme.primary-1);
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
textarea.form-control {
|
|
@@ -236,7 +236,7 @@ a{
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
input[type="checkbox"]#digit_root_active {
|
|
239
|
-
accent-color: theme(digitv2.lightTheme.primary-
|
|
239
|
+
accent-color: theme(digitv2.lightTheme.primary-1);
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
input:checked,
|
|
@@ -573,11 +573,11 @@ a{
|
|
|
573
573
|
text-decoration: none;
|
|
574
574
|
.browse-text {
|
|
575
575
|
text-decoration: none;
|
|
576
|
-
color:
|
|
576
|
+
color: theme(digitv2.lightTheme.primary-1);
|
|
577
577
|
transition: color 0.3s;
|
|
578
578
|
}
|
|
579
579
|
.browse-text:hover {
|
|
580
|
-
color:
|
|
580
|
+
color: theme(digitv2.lightTheme.primary-1);
|
|
581
581
|
text-decoration: underline;
|
|
582
582
|
cursor: pointer;
|
|
583
583
|
}
|