@utahdts/utah-design-system 1.4.0 → 1.5.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.
- package/css/1-settings/_icons.scss +54 -53
- package/css/4-elements/_elements-index.scss +13 -11
- package/css/6-components/base-components/buttons/_button.scss +3 -2
- package/css/6-components/base-components/containers/_accordion.scss +6 -0
- package/css/6-components/base-components/forms/_switch.scss +4 -4
- package/css/6-components/base-components/forms/_text-input.scss +25 -0
- package/css/6-components/base-components/popups/_tooltips.scss +3 -1
- package/css/6-components/base-components/tablesAndLists/_table.scss +135 -8
- package/dist/style.css +176 -13
- package/dist/utah-design-system.es.js +363 -177
- package/dist/utah-design-system.umd.js +363 -177
- package/package.json +7 -7
- package/react/components/Tooltip/Tooltip.jsx +3 -3
- package/react/components/buttons/Button.jsx +5 -6
- package/react/components/containers/tabs/TabGroup.jsx +1 -1
- package/react/components/forms/FormContextProvider.jsx +1 -1
- package/react/components/forms/Select.jsx +16 -0
- package/react/components/forms/SelectOption.jsx +8 -0
- package/react/components/forms/TextInput.jsx +71 -22
- package/react/components/navigation/pagination/Pagination.jsx +27 -9
- package/react/components/navigation/pagination/util/determinePaginationLinks.js +11 -6
- package/react/components/popups/Popup.jsx +2 -2
- package/react/components/table/Table.jsx +1 -1
- package/react/components/table/TableBody.jsx +1 -1
- package/react/components/table/TableBodyData.jsx +47 -7
- package/react/components/table/TableBodyDataRowTemplate.jsx +1 -1
- package/react/components/table/TableCell.jsx +3 -2
- package/react/components/table/TableFilterCustom.jsx +1 -1
- package/react/components/table/TableFilterDate.jsx +1 -1
- package/react/components/table/TableFilterNone.jsx +1 -1
- package/react/components/table/TableFilterSelect.jsx +1 -1
- package/react/components/table/TableFilterSelectAllOptions.jsx +1 -1
- package/react/components/table/TableFilterTextInput.jsx +3 -1
- package/react/components/table/TableFilters.jsx +3 -3
- package/react/components/table/TableFoot.jsx +1 -1
- package/react/components/table/TableFootCell.jsx +1 -1
- package/react/components/table/TableFootRow.jsx +1 -1
- package/react/components/table/TableHead.jsx +1 -1
- package/react/components/table/TableHeadCell.jsx +79 -32
- package/react/components/table/TableHeadRow.jsx +1 -1
- package/react/components/table/TableRow.jsx +1 -1
- package/react/components/table/TableSortingRule.jsx +5 -0
- package/react/components/table/TableSortingRules.jsx +2 -0
- package/react/components/table/TableWrapper.jsx +37 -3
- package/react/components/table/useCurrentValuesFromStateContext.js +61 -27
- package/react/components/widgetsIndicators/Spinner.jsx +20 -7
- package/react/contexts/utahHeaderContext/UtahHeaderContext.js +1 -1
- package/react/contexts/utahHeaderContext/UtahHeaderContextProvider.jsx +2 -2
- package/react/contexts/utahHeaderContext/useUtahHeaderContext.js +2 -2
- package/react/enums/popupPlacement.js +1 -1
- package/react/hooks/debug/useDebugDidIChange.js +18 -0
- package/react/hooks/forms/useCurrentValuesFromForm.js +4 -0
- package/react/jsDocTypes.js +35 -11
- package/react/propTypesShapes/TablePaginationShape.js +9 -0
|
@@ -3,14 +3,15 @@
|
|
|
3
3
|
// icon google font settings:
|
|
4
4
|
// fill: 0, weight 400, grade 0, optical size: 20px
|
|
5
5
|
|
|
6
|
-
/* Generated by Glyphter (
|
|
6
|
+
/* Generated by Glyphter (https://www.glyphter.com) on Fri Jan 20 2023*/
|
|
7
7
|
@font-face {
|
|
8
|
-
font-family:
|
|
9
|
-
src: url(
|
|
10
|
-
src:
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
font-family: "utah design system";
|
|
9
|
+
src: url("https://cdn.utah.gov/design-system/fonts/utah-design-system.eot");
|
|
10
|
+
src:
|
|
11
|
+
url("https://cdn.utah.gov/design-system/fonts/utah-design-system.eot?#iefix") format("embedded-opentype"),
|
|
12
|
+
url("https://cdn.utah.gov/design-system/fonts/utah-design-system.woff") format("woff"),
|
|
13
|
+
url("https://cdn.utah.gov/design-system/fonts/utah-design-system.ttf") format("truetype"),
|
|
14
|
+
url("https://cdn.utah.gov/design-system/fonts/utah-design-system.svg#utah-design-system") format("svg");
|
|
14
15
|
font-weight: normal;
|
|
15
16
|
font-style: normal;
|
|
16
17
|
font-display: block;
|
|
@@ -20,15 +21,15 @@
|
|
|
20
21
|
--icon-check-mark-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12.15'%3E%3Cg%3E%3Cpath d='M6.185,12.15L0,5.966,2.335,3.631l3.85,3.849L13.665,0l2.335,2.335L6.185,12.15Z' style='fill: %23fff;'/%3E%3C/g%3E%3C/svg%3E");
|
|
21
22
|
--icon-chevron-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cg%3E%3Crect width='14' height='14' style='fill: none;'/%3E%3Cpath d='M3.142,5l3.716,3.71,3.717-3.71,1.142,1.142-4.859,4.858L2,6.142l1.142-1.142Z' style='fill: %23474747;'/%3E%3C/g%3E%3C/svg%3E");
|
|
22
23
|
|
|
23
|
-
[class*=
|
|
24
|
-
[class*=
|
|
24
|
+
[class*="utds-icon-before-"],
|
|
25
|
+
[class*="utds-icon-after-"] {
|
|
25
26
|
display: inline-flex;
|
|
26
27
|
align-items: center;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
|
-
[class*=
|
|
30
|
+
[class*="utds-icon-after-"]::after {
|
|
30
31
|
display: inline-block;
|
|
31
|
-
font-family:
|
|
32
|
+
font-family: "utah design system";
|
|
32
33
|
font-style: normal;
|
|
33
34
|
font-weight: normal;
|
|
34
35
|
font-size: 1em;
|
|
@@ -37,9 +38,9 @@
|
|
|
37
38
|
-moz-osx-font-smoothing: grayscale;
|
|
38
39
|
margin-left: var(--spacing-2xs);
|
|
39
40
|
}
|
|
40
|
-
[class*=
|
|
41
|
+
[class*="utds-icon-before-"]::before {
|
|
41
42
|
display: inline-block;
|
|
42
|
-
font-family:
|
|
43
|
+
font-family: "utah design system";
|
|
43
44
|
font-style: normal;
|
|
44
45
|
font-weight: normal;
|
|
45
46
|
font-size: 1em;
|
|
@@ -50,197 +51,197 @@
|
|
|
50
51
|
}
|
|
51
52
|
.utds-icon-before-external-link::before,
|
|
52
53
|
.utds-icon-after-external-link::after {
|
|
53
|
-
content:
|
|
54
|
-
font-size: .65em;
|
|
54
|
+
content: "\0041";
|
|
55
|
+
font-size: 0.65em;
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
.utds-icon-before-waffle::before,
|
|
58
59
|
.utds-icon-after-waffle::after {
|
|
59
|
-
content:
|
|
60
|
+
content: "\0042";
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
.utds-icon-before-alert::before,
|
|
63
64
|
.utds-icon-after-alert::after {
|
|
64
|
-
content:
|
|
65
|
+
content: "\0043";
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
.utds-icon-before-help::before,
|
|
68
69
|
.utds-icon-after-help::after {
|
|
69
|
-
content:
|
|
70
|
+
content: "\0044";
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
.utds-icon-before-bookmark::before,
|
|
73
74
|
.utds-icon-after-bookmark::after {
|
|
74
|
-
content:
|
|
75
|
+
content: "\0045";
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
.utds-icon-before-search::before,
|
|
78
79
|
.utds-icon-after-search::after {
|
|
79
|
-
content:
|
|
80
|
+
content: "\0046";
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
.utds-icon-before-check::before,
|
|
83
84
|
.utds-icon-after-check::after {
|
|
84
|
-
content:
|
|
85
|
+
content: "\0047";
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
.utds-icon-before-star::before,
|
|
88
89
|
.utds-icon-after-star::after {
|
|
89
|
-
content:
|
|
90
|
+
content: "\0048";
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
.utds-icon-before-info::before,
|
|
93
94
|
.utds-icon-after-info::after {
|
|
94
|
-
content:
|
|
95
|
+
content: "\0049";
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
.utds-icon-before-unfold-less::before,
|
|
98
99
|
.utds-icon-after-unfold-less::after {
|
|
99
|
-
content:
|
|
100
|
+
content: "\004a";
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
.utds-icon-before-unfold-more::before,
|
|
103
104
|
.utds-icon-after-unfold-more::after {
|
|
104
|
-
content:
|
|
105
|
+
content: "\004b";
|
|
105
106
|
}
|
|
106
107
|
|
|
107
108
|
.utds-icon-before-circle-chevron-down::before,
|
|
108
109
|
.utds-icon-after-circle-chevron-down::after {
|
|
109
|
-
content:
|
|
110
|
+
content: "\004c";
|
|
110
111
|
}
|
|
111
112
|
|
|
112
113
|
.utds-icon-before-circle-chevron-up::before,
|
|
113
114
|
.utds-icon-after-circle-chevron-up::after {
|
|
114
|
-
content:
|
|
115
|
+
content: "\004d";
|
|
115
116
|
}
|
|
116
117
|
|
|
117
118
|
.utds-icon-before-chevron-up::before,
|
|
118
119
|
.utds-icon-after-chevron-up::after {
|
|
119
|
-
content:
|
|
120
|
+
content: "\004e";
|
|
120
121
|
}
|
|
121
122
|
|
|
122
123
|
.utds-icon-before-chevron-right::before,
|
|
123
124
|
.utds-icon-after-chevron-right::after {
|
|
124
|
-
content:
|
|
125
|
+
content: "\004f";
|
|
125
126
|
}
|
|
126
127
|
|
|
127
128
|
.utds-icon-before-chevron-down::before,
|
|
128
129
|
.utds-icon-after-chevron-down::after {
|
|
129
|
-
content:
|
|
130
|
+
content: "\0050";
|
|
130
131
|
}
|
|
131
132
|
|
|
132
133
|
.utds-icon-before-chevron-left::before,
|
|
133
134
|
.utds-icon-after-chevron-left::after {
|
|
134
|
-
content:
|
|
135
|
+
content: "\0051";
|
|
135
136
|
}
|
|
136
137
|
|
|
137
138
|
.utds-icon-before-arrow-up::before,
|
|
138
139
|
.utds-icon-after-arrow-up::after {
|
|
139
|
-
content:
|
|
140
|
+
content: "\0052";
|
|
140
141
|
}
|
|
141
142
|
|
|
142
143
|
.utds-icon-before-arrow-right::before,
|
|
143
144
|
.utds-icon-after-arrow-right::after {
|
|
144
|
-
content:
|
|
145
|
+
content: "\0053";
|
|
145
146
|
}
|
|
146
147
|
|
|
147
148
|
.utds-icon-before-arrow-down::before,
|
|
148
149
|
.utds-icon-after-arrow-down::after {
|
|
149
|
-
content:
|
|
150
|
+
content: "\0054";
|
|
150
151
|
}
|
|
151
152
|
|
|
152
153
|
.utds-icon-before-arrow-left::before,
|
|
153
154
|
.utds-icon-after-arrow-left::after {
|
|
154
|
-
content:
|
|
155
|
+
content: "\0055";
|
|
155
156
|
}
|
|
156
157
|
|
|
157
158
|
.utds-icon-before-plus::before,
|
|
158
159
|
.utds-icon-after-plus::after {
|
|
159
|
-
content:
|
|
160
|
+
content: "\0056";
|
|
160
161
|
}
|
|
161
162
|
|
|
162
163
|
.utds-icon-before-minus::before,
|
|
163
164
|
.utds-icon-after-minus::after {
|
|
164
|
-
content:
|
|
165
|
+
content: "\0057";
|
|
165
166
|
}
|
|
166
167
|
|
|
167
168
|
.utds-icon-before-x-icon::before,
|
|
168
169
|
.utds-icon-after-x-icon::after {
|
|
169
|
-
content:
|
|
170
|
+
content: "\0058";
|
|
170
171
|
}
|
|
171
172
|
|
|
172
173
|
.utds-icon-before-edit::before,
|
|
173
174
|
.utds-icon-after-edit::after {
|
|
174
|
-
content:
|
|
175
|
+
content: "\0059";
|
|
175
176
|
}
|
|
176
177
|
|
|
177
178
|
.utds-icon-before-edit-box::before,
|
|
178
179
|
.utds-icon-after-edit-box::after {
|
|
179
|
-
content:
|
|
180
|
+
content: "\005a";
|
|
180
181
|
}
|
|
181
182
|
|
|
182
183
|
.utds-icon-before-verified::before,
|
|
183
184
|
.utds-icon-after-verified::after {
|
|
184
|
-
content:
|
|
185
|
+
content: "\0061";
|
|
185
186
|
}
|
|
186
187
|
|
|
187
188
|
.utds-icon-before-gear::before,
|
|
188
189
|
.utds-icon-after-gear::after {
|
|
189
|
-
content:
|
|
190
|
+
content: "\0062";
|
|
190
191
|
}
|
|
191
192
|
|
|
192
193
|
.utds-icon-before-doc::before,
|
|
193
194
|
.utds-icon-after-doc::after {
|
|
194
|
-
content:
|
|
195
|
+
content: "\0063";
|
|
195
196
|
}
|
|
196
197
|
|
|
197
198
|
.utds-icon-before-doc-square::before,
|
|
198
199
|
.utds-icon-after-doc-square::after {
|
|
199
|
-
content:
|
|
200
|
+
content: "\0064";
|
|
200
201
|
}
|
|
201
202
|
|
|
202
203
|
.utds-icon-before-warning::before,
|
|
203
204
|
.utds-icon-after-warning::after {
|
|
204
|
-
content:
|
|
205
|
+
content: "\0065";
|
|
205
206
|
}
|
|
206
207
|
|
|
207
208
|
.utds-icon-before-error::before,
|
|
208
209
|
.utds-icon-after-error::after {
|
|
209
|
-
content:
|
|
210
|
+
content: "\0066";
|
|
210
211
|
}
|
|
211
212
|
|
|
212
213
|
.utds-icon-before-copy::before,
|
|
213
214
|
.utds-icon-after-copy::after {
|
|
214
|
-
content:
|
|
215
|
+
content: "\0067";
|
|
215
216
|
}
|
|
216
217
|
|
|
217
218
|
.utds-icon-before-home-menu::before,
|
|
218
219
|
.utds-icon-after-home-menu::after {
|
|
219
|
-
content:
|
|
220
|
+
content: "\0068";
|
|
220
221
|
}
|
|
221
222
|
|
|
222
223
|
.utds-icon-before-hamburger::before,
|
|
223
224
|
.utds-icon-after-hamburger::after {
|
|
224
|
-
content:
|
|
225
|
+
content: "\0069";
|
|
225
226
|
}
|
|
226
227
|
|
|
227
228
|
.utds-icon-before-account::before,
|
|
228
229
|
.utds-icon-after-account::after {
|
|
229
|
-
content:
|
|
230
|
+
content: "\006a";
|
|
230
231
|
}
|
|
231
232
|
|
|
232
233
|
.utds-icon-before-lock::before,
|
|
233
234
|
.utds-icon-after-lock::after {
|
|
234
|
-
content:
|
|
235
|
+
content: "\006b";
|
|
235
236
|
}
|
|
236
237
|
|
|
237
238
|
.utds-icon-before-more-vertical::before,
|
|
238
239
|
.utds-icon-after-more-vertical::after {
|
|
239
|
-
content:
|
|
240
|
+
content: "\006c";
|
|
240
241
|
}
|
|
241
242
|
|
|
242
243
|
.utds-icon-before-more-horizontal::before,
|
|
243
244
|
.utds-icon-after-more-horizontal::after {
|
|
244
|
-
content:
|
|
245
|
+
content: "\006d";
|
|
245
246
|
}
|
|
246
247
|
}
|
|
@@ -25,7 +25,7 @@ elemental html: h1, h2, h3, ul, li, etc.
|
|
|
25
25
|
line-height: 1.2;
|
|
26
26
|
}
|
|
27
27
|
h3 {
|
|
28
|
-
font-size: var(--font-size-2xl
|
|
28
|
+
font-size: var(--font-size-2xl);
|
|
29
29
|
font-weight: var(--font-weight-semi-bold);
|
|
30
30
|
margin: 0;
|
|
31
31
|
line-height: 1.3;
|
|
@@ -50,7 +50,7 @@ elemental html: h1, h2, h3, ul, li, etc.
|
|
|
50
50
|
|
|
51
51
|
code {
|
|
52
52
|
font-family: var(--fixed-width-font-family);
|
|
53
|
-
font-size: .95rem;
|
|
53
|
+
font-size: 0.95rem;
|
|
54
54
|
background: var(--code-color);
|
|
55
55
|
padding: var(--spacing-3xs) var(--spacing-2xs);
|
|
56
56
|
border-radius: var(--radius-small1x);
|
|
@@ -61,7 +61,8 @@ elemental html: h1, h2, h3, ul, li, etc.
|
|
|
61
61
|
}
|
|
62
62
|
// pre --- see _pre-code.scss
|
|
63
63
|
|
|
64
|
-
ul,
|
|
64
|
+
ul,
|
|
65
|
+
ol {
|
|
65
66
|
padding: 0 0 0 var(--spacing-2xl);
|
|
66
67
|
margin: 0;
|
|
67
68
|
line-height: 1.7;
|
|
@@ -77,19 +78,20 @@ elemental html: h1, h2, h3, ul, li, etc.
|
|
|
77
78
|
a[href]:not(.button, .action-card) {
|
|
78
79
|
color: var(--primary-color);
|
|
79
80
|
&:hover {
|
|
80
|
-
box-shadow:
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
box-shadow:
|
|
82
|
+
-3px -1px 0 0px var(--hover-gray-color-opaque),
|
|
83
|
+
3px -1px 0 0px var(--hover-gray-color-opaque),
|
|
84
|
+
3px 1px 0 0px var(--hover-gray-color-opaque),
|
|
85
|
+
-3px 1px 0 0px var(--hover-gray-color-opaque),
|
|
86
|
+
inset 0 0 0 1000px var(--hover-gray-color-opaque);
|
|
85
87
|
color: var(--primary-color-dark);
|
|
86
88
|
}
|
|
87
89
|
}
|
|
88
90
|
|
|
89
91
|
.external-link::after {
|
|
90
|
-
content: url("data:image/svg+xml,%3Csvg
|
|
91
|
-
height: .7rem;
|
|
92
|
-
width: .7rem;
|
|
92
|
+
content: url("data:image/svg+xml,%3Csvg viewBox='0 0 18.1143 18.1138'%3E%3Cg%3E%3Cpath d='m15.0996,18.1138H1c-.5527,0-1-.4478-1-1V3.0142c0-.5522.4473-1,1-1h7.043v2H2v12.0996h12.0996v-6.043h2v7.043c0,.5522-.4473,1-1,1Z' style='fill: var(--primary-color);'/%3E%3Crect x='6.5977' y='4.5318' width='11.9697' height='1.9998' transform='translate(-.2262 10.5174) rotate(-45)' style='fill: currentColor;'/%3E%3Cpolygon points='18.1143 8.0425 16.1143 8.0425 16.1143 2 10.0713 2 10.0713 0 18.1143 0 18.1143 8.0425' style='fill: currentColor;'/%3E%3C/g%3E%3C/svg%3E%0A");
|
|
93
|
+
height: 0.7rem;
|
|
94
|
+
width: 0.7rem;
|
|
93
95
|
background-position: top left;
|
|
94
96
|
|
|
95
97
|
display: inline-block;
|
|
@@ -16,11 +16,12 @@
|
|
|
16
16
|
align-items: center;
|
|
17
17
|
justify-content: center;
|
|
18
18
|
cursor: pointer;
|
|
19
|
-
transition: all 200ms ease-in-out,
|
|
19
|
+
transition: all 200ms ease-in-out, scale 100ms ease, box-shadow 100ms ease;
|
|
20
20
|
color: var(--gray-color);
|
|
21
21
|
text-decoration: none;
|
|
22
22
|
position: relative;
|
|
23
23
|
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
24
|
+
scale: 1;
|
|
24
25
|
|
|
25
26
|
svg {
|
|
26
27
|
fill: currentColor;
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
&:active, &--active {
|
|
45
|
-
|
|
46
|
+
scale: .96;
|
|
46
47
|
box-shadow: inset 0 3px 5px rgba(0,0,0,0.5);
|
|
47
48
|
}
|
|
48
49
|
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
transform: translateX(calc(100% + var(--spacing-2xs)));
|
|
22
22
|
color: var(--gray-color);
|
|
23
23
|
min-width: max-content;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
&.visually-hidden {
|
|
26
|
+
min-width: unset;
|
|
27
|
+
}
|
|
24
28
|
}
|
|
25
29
|
&__wrapper {
|
|
26
30
|
min-width: 20px;
|
|
@@ -96,8 +100,6 @@
|
|
|
96
100
|
font-size: var(--font-size-s);
|
|
97
101
|
line-height: var(--font-size-s);
|
|
98
102
|
&-on, &-off {
|
|
99
|
-
// display: none;
|
|
100
|
-
// width: 25px;
|
|
101
103
|
width: calc(100% - var(--form-ele-2small1x));
|
|
102
104
|
position: absolute;
|
|
103
105
|
right: 2px;
|
|
@@ -106,7 +108,6 @@
|
|
|
106
108
|
text-align: center;
|
|
107
109
|
display: inline-block;
|
|
108
110
|
&.show {
|
|
109
|
-
// display: block;
|
|
110
111
|
opacity: 1;
|
|
111
112
|
}
|
|
112
113
|
}
|
|
@@ -128,7 +129,6 @@
|
|
|
128
129
|
.input-wrapper {
|
|
129
130
|
&--switch {
|
|
130
131
|
label {
|
|
131
|
-
// padding: var(--spacing-3xs) var(--spacing) var(--spacing-3xs) var(--spacing-xl);
|
|
132
132
|
padding: var(--spacing-3xs) var(--spacing-xs);
|
|
133
133
|
}
|
|
134
134
|
}
|
|
@@ -24,6 +24,31 @@
|
|
|
24
24
|
&[aria-invalid="true"] {
|
|
25
25
|
border: 2px solid var(--danger-color)
|
|
26
26
|
}
|
|
27
|
+
|
|
28
|
+
&.text-input {
|
|
29
|
+
&--clear-icon-visible {
|
|
30
|
+
padding: 0 var(--spacing-xl) 0 var(--spacing-xs);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
.text-input {
|
|
35
|
+
&__inner-wrapper {
|
|
36
|
+
position: relative;
|
|
37
|
+
}
|
|
38
|
+
&__clear-button {
|
|
39
|
+
position: absolute;
|
|
40
|
+
top: 50%;
|
|
41
|
+
transform: translateY(-50%);
|
|
42
|
+
right: var(--spacing-xs);
|
|
43
|
+
font-weight: var(--font-weight-normal);
|
|
44
|
+
transition: transform;
|
|
45
|
+
[class*=utds-icon-before-]::before {
|
|
46
|
+
font-size: .7rem;
|
|
47
|
+
}
|
|
48
|
+
&[disabled]:active {
|
|
49
|
+
transform: translateY(-50%);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
27
52
|
}
|
|
28
53
|
|
|
29
54
|
textarea {
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
padding: var(--spacing-3xs) var(--spacing-s);
|
|
37
37
|
transition: transform 100ms ease-in-out;
|
|
38
38
|
box-shadow: var(--elevation-small);
|
|
39
|
+
font-weight: var(--font-weight-normal);
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
&__arrow {
|
|
@@ -53,7 +54,8 @@
|
|
|
53
54
|
&::before {
|
|
54
55
|
visibility: visible;
|
|
55
56
|
content: "";
|
|
56
|
-
|
|
57
|
+
left: 50%;
|
|
58
|
+
transform: translateX(-50%) rotate(45deg);
|
|
57
59
|
}
|
|
58
60
|
}
|
|
59
61
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use "../../../1-settings/class-vars";
|
|
2
2
|
|
|
3
3
|
#{class-vars.$base-class} {
|
|
4
|
-
.
|
|
4
|
+
.table__wrapper {
|
|
5
5
|
overflow-x: scroll;
|
|
6
6
|
}
|
|
7
7
|
table {
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
border-bottom: 1px solid var(--gray-color);
|
|
11
11
|
tr {
|
|
12
12
|
th {
|
|
13
|
-
text-align:
|
|
13
|
+
text-align: left;
|
|
14
14
|
vertical-align: bottom;
|
|
15
15
|
font-weight: bold;
|
|
16
16
|
padding: var(--spacing-s);
|
|
17
|
-
&.text-
|
|
18
|
-
text-align:
|
|
17
|
+
&.text-center {
|
|
18
|
+
text-align: center;
|
|
19
19
|
}
|
|
20
20
|
&.text-right {
|
|
21
21
|
text-align: right;
|
|
@@ -30,13 +30,32 @@
|
|
|
30
30
|
padding: var(--spacing-s);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
+
tr:last-child {
|
|
34
|
+
td {
|
|
35
|
+
border-bottom: 1px solid var(--gray-color);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
tfoot {
|
|
40
|
+
tr {
|
|
41
|
+
td {
|
|
42
|
+
vertical-align: top;
|
|
43
|
+
padding: var(--spacing-s);
|
|
44
|
+
font-weight: bold;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
33
47
|
}
|
|
34
48
|
&.table {
|
|
35
49
|
&--alt {
|
|
36
50
|
tbody {
|
|
37
51
|
tr:nth-child(2n) {
|
|
38
52
|
td {
|
|
39
|
-
background-color: #
|
|
53
|
+
background-color: #f5f5f5;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
tr:nth-child(2n-1) {
|
|
57
|
+
td {
|
|
58
|
+
background-color: white;
|
|
40
59
|
}
|
|
41
60
|
}
|
|
42
61
|
}
|
|
@@ -45,12 +64,12 @@
|
|
|
45
64
|
tbody {
|
|
46
65
|
tr {
|
|
47
66
|
td {
|
|
48
|
-
border-bottom: 1px solid var(--gray-3-1-contrast)
|
|
67
|
+
border-bottom: 1px solid var(--gray-3-1-contrast);
|
|
49
68
|
}
|
|
50
69
|
}
|
|
51
70
|
tr:last-child {
|
|
52
71
|
td {
|
|
53
|
-
border-bottom: 1px solid var(--gray-color)
|
|
72
|
+
border-bottom: 1px solid var(--gray-color);
|
|
54
73
|
}
|
|
55
74
|
}
|
|
56
75
|
}
|
|
@@ -83,12 +102,57 @@
|
|
|
83
102
|
&--full-width {
|
|
84
103
|
width: 100%;
|
|
85
104
|
}
|
|
105
|
+
&--td-center {
|
|
106
|
+
thead {
|
|
107
|
+
tr {
|
|
108
|
+
th {
|
|
109
|
+
text-align: center;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
tbody {
|
|
114
|
+
tr {
|
|
115
|
+
td {
|
|
116
|
+
text-align: center;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
86
121
|
}
|
|
87
122
|
.table-header {
|
|
88
123
|
position: relative;
|
|
124
|
+
|
|
125
|
+
/* Table Sorting */
|
|
126
|
+
&--sortable {
|
|
127
|
+
padding: 0;
|
|
128
|
+
button {
|
|
129
|
+
border: none;
|
|
130
|
+
background: none;
|
|
131
|
+
border-radius: var(--radius-circle);
|
|
132
|
+
justify-content: flex-start;
|
|
133
|
+
padding: var(--spacing) var(--spacing-s);
|
|
134
|
+
width: 100%;
|
|
135
|
+
font-weight: bold;
|
|
136
|
+
&:hover {
|
|
137
|
+
background: var(--gray-light-color);
|
|
138
|
+
color: var(--primary-color);
|
|
139
|
+
}
|
|
140
|
+
&:focus-visible {
|
|
141
|
+
outline-offset: -2PX;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
&__cell {
|
|
146
|
+
position: relative;
|
|
147
|
+
&--sort-ascending {
|
|
148
|
+
&::after {
|
|
149
|
+
transform: rotate(180deg);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
89
153
|
&--sorted {
|
|
90
154
|
&::before {
|
|
91
|
-
content:
|
|
155
|
+
content: "";
|
|
92
156
|
height: 7px;
|
|
93
157
|
width: 100%;
|
|
94
158
|
background: var(--primary-color);
|
|
@@ -97,6 +161,69 @@
|
|
|
97
161
|
left: 0;
|
|
98
162
|
bottom: -4px;
|
|
99
163
|
border-radius: var(--radius-circle);
|
|
164
|
+
z-index: 1;
|
|
165
|
+
}
|
|
166
|
+
&::after {
|
|
167
|
+
content: "";
|
|
168
|
+
display: block;
|
|
169
|
+
position: absolute;
|
|
170
|
+
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 9.7'%3e%3cpath d='m8 9.7-8-8L1.7 0 8 6.3 14.3 0 16 1.7l-8 8Z' fill='white'/%3e%3c/svg%3e");
|
|
171
|
+
background-color: var(--primary-color);
|
|
172
|
+
background-repeat: no-repeat;
|
|
173
|
+
background-size: 9px;
|
|
174
|
+
background-position: center;
|
|
175
|
+
border-radius: var(--radius-circle);
|
|
176
|
+
bottom: -8px;
|
|
177
|
+
left: calc(50% - (15px / 2));
|
|
178
|
+
height: 15px;
|
|
179
|
+
width: 15px;
|
|
180
|
+
z-index: 2;
|
|
181
|
+
}
|
|
182
|
+
button {
|
|
183
|
+
color: var(--primary-color);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/* Table Filters */
|
|
188
|
+
&__row {
|
|
189
|
+
&--filters {
|
|
190
|
+
th {
|
|
191
|
+
background-color: var(--gray-light-color);
|
|
192
|
+
}
|
|
193
|
+
th:first-child {
|
|
194
|
+
border-top-left-radius: var(--radius-medium);
|
|
195
|
+
border-bottom-left-radius: var(--radius-medium);
|
|
196
|
+
padding: var(--spacing-s) var(--spacing-2xs) var(--spacing-s) var(--spacing-s);
|
|
197
|
+
}
|
|
198
|
+
th:last-child {
|
|
199
|
+
border-top-right-radius: var(--radius-medium);
|
|
200
|
+
border-bottom-right-radius: var(--radius-medium);
|
|
201
|
+
padding: var(--spacing-s) var(--spacing-s) var(--spacing-s) var(--spacing-2xs);
|
|
202
|
+
}
|
|
203
|
+
th {
|
|
204
|
+
padding: var(--spacing-s) var(--spacing-2xs);
|
|
205
|
+
}
|
|
206
|
+
.input-wrapper {
|
|
207
|
+
margin: 0;
|
|
208
|
+
label {
|
|
209
|
+
/* visually hidden */
|
|
210
|
+
border: 0;
|
|
211
|
+
clip: rect(0 0 0 0);
|
|
212
|
+
height: 1px;
|
|
213
|
+
margin: -1px;
|
|
214
|
+
overflow: hidden;
|
|
215
|
+
padding: 0;
|
|
216
|
+
position: absolute;
|
|
217
|
+
width: 1px;
|
|
218
|
+
}
|
|
219
|
+
input[type="text"] {
|
|
220
|
+
border-radius: var(--radius-circle);
|
|
221
|
+
}
|
|
222
|
+
select {
|
|
223
|
+
border-radius: var(--radius-circle);
|
|
224
|
+
padding: 0 var(--spacing-l) 0 var(--spacing-xs);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
100
227
|
}
|
|
101
228
|
}
|
|
102
229
|
}
|