@utahdts/utah-design-system 1.14.3 → 1.15.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/_font-stuff.scss +20 -20
- package/css/1-settings/_grid.scss +22 -22
- package/css/1-settings/_icons.scss +30 -0
- package/css/1-settings/_settings-index.scss +1 -1
- package/css/4-elements/_elements-index.scss +0 -9
- package/css/6-components/_components-index.scss +3 -0
- package/css/6-components/base-components/forms/_calendar-input.scss +96 -0
- package/css/6-components/base-components/forms/_combo-box-input.scss +6 -0
- package/css/6-components/base-components/forms/_date-input.scss +59 -0
- package/css/6-components/base-components/forms/_file-input.scss +87 -0
- package/css/6-components/base-components/forms/_info-box.scss +8 -1
- package/css/7-utilities/_animation.scss +55 -51
- package/css/7-utilities/_utilities-index.scss +132 -129
- package/dist/style.css +496 -175
- package/dist/utah-design-system.es.js +40231 -36211
- package/dist/utah-design-system.umd.js +40230 -36210
- package/index.js +67 -65
- package/package.json +13 -12
- package/react/components/forms/CalendarInput/CalendarInput.jsx +354 -0
- package/react/components/forms/CalendarInput/calendarGrid.js +87 -0
- package/react/components/forms/ComboBox/ComboBox.jsx +10 -0
- package/react/components/forms/ComboBox/context/ComboBoxContextProvider.jsx +4 -6
- package/react/components/forms/ComboBox/internal/CombBoxListBox.jsx +31 -6
- package/react/components/forms/ComboBox/internal/ComboBoxTextInput.jsx +43 -3
- package/react/components/forms/DateInput.jsx +238 -0
- package/react/components/forms/FileInput.jsx +158 -0
- package/react/components/forms/FormContext/useFormContextInputValue.js +117 -0
- package/react/components/forms/MultiSelect/MultiSelectTagTemplate.jsx +0 -1
- package/react/components/forms/MultiSelect/MultiSelectTagWrapper.jsx +2 -1
- package/react/components/forms/MultiSelect/MultiSelectTags.jsx +2 -1
- package/react/components/forms/MultiSelect/context/MultiSelectContextProvider.jsx +0 -1
- package/react/components/forms/MultiSelect/functions/removeSelectedOption.jsx +5 -1
- package/react/components/forms/PlainText.jsx +47 -0
- package/react/components/forms/RadioButton/context/RadioButtonGroupContextProvider.jsx +0 -1
- package/react/components/forms/Switch.jsx +0 -1
- package/react/components/navigation/MenuItem.jsx +0 -1
- package/react/components/navigation/pagination/Pagination.jsx +0 -2
- package/react/components/table/TableBodyData.jsx +0 -1
- package/react/components/table/TableFilterDate.jsx +6 -2
- package/react/components/table/TableFilterSelect.jsx +7 -3
- package/react/components/table/TableFilterSelectAllOptions.jsx +6 -5
- package/react/components/table/TableFilterTextInput.jsx +7 -4
- package/react/components/table/TableFilters.jsx +10 -5
- package/react/components/table/TablePagination.jsx +0 -1
- package/react/components/table/TableSortingRule.jsx +0 -1
- package/react/components/table/TableSortingRules.jsx +0 -2
- package/react/components/table/TableWrapper.jsx +9 -1
- package/react/components/table/hooks/useTableFilterRegistration.js +4 -2
- package/react/components/table/useCurrentValuesFromStateContext.js +23 -10
- package/react/components/table/util/TableContext.jsx +1 -0
- package/react/contexts/UtahDesignSystemContext/components/AriaLiveMessages.jsx +14 -4
- package/react/contexts/UtahDesignSystemContext/components/BannersGlobal.jsx +0 -1
- package/react/hooks/useClickOutside.js +0 -1
- package/react/hooks/useInterval.js +30 -0
- package/react/hooks/useTimeout.js +29 -0
|
@@ -2,135 +2,138 @@
|
|
|
2
2
|
############ _utilities.scss ############
|
|
3
3
|
utility classes, atomic css
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
@use "../1-settings/class-vars";
|
|
6
6
|
@use "animation";
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
.text-
|
|
31
|
-
.text-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
.flex
|
|
37
|
-
|
|
38
|
-
.flex-
|
|
39
|
-
.flex-
|
|
40
|
-
|
|
41
|
-
.flex-
|
|
42
|
-
|
|
43
|
-
.flex-
|
|
44
|
-
|
|
45
|
-
.flex-
|
|
46
|
-
|
|
47
|
-
.flex-
|
|
48
|
-
.flex-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
.justify-
|
|
54
|
-
.justify-
|
|
55
|
-
.justify-
|
|
56
|
-
.justify-
|
|
57
|
-
|
|
58
|
-
.justify-
|
|
59
|
-
|
|
60
|
-
.justify-self-
|
|
61
|
-
.justify-self-
|
|
62
|
-
.justify-self-
|
|
63
|
-
|
|
64
|
-
.
|
|
65
|
-
|
|
66
|
-
.items-
|
|
67
|
-
.items-
|
|
68
|
-
.items-
|
|
69
|
-
|
|
70
|
-
.
|
|
71
|
-
|
|
72
|
-
.self-
|
|
73
|
-
.self-
|
|
74
|
-
.self-
|
|
75
|
-
.self-
|
|
76
|
-
|
|
77
|
-
.
|
|
78
|
-
|
|
79
|
-
.gap { gap: var(--spacing); }
|
|
80
|
-
.gap-
|
|
81
|
-
|
|
82
|
-
.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
8
|
+
#{class-vars.$base-class} {
|
|
9
|
+
|
|
10
|
+
.content-width {
|
|
11
|
+
width: 100%;
|
|
12
|
+
max-width: var(--content-width);
|
|
13
|
+
}
|
|
14
|
+
.full-width {
|
|
15
|
+
width: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.visually-hidden, &.visually-hidden {
|
|
19
|
+
border: 0;
|
|
20
|
+
clip: rect(0 0 0 0);
|
|
21
|
+
height: 1px;
|
|
22
|
+
margin: -1px;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
padding: 0;
|
|
25
|
+
position: absolute;
|
|
26
|
+
width: 1px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* alignment */
|
|
30
|
+
.text-left { text-align: left; }
|
|
31
|
+
.text-center { text-align: center; }
|
|
32
|
+
.text-right { text-align: right; }
|
|
33
|
+
.text-justify { text-align: justify; }
|
|
34
|
+
|
|
35
|
+
/* flex */
|
|
36
|
+
.flex { display: flex; }
|
|
37
|
+
|
|
38
|
+
.flex-row { flex-direction: row; }
|
|
39
|
+
.flex-row-reverse { flex-direction: row-reverse; }
|
|
40
|
+
.flex-col { flex-direction: column; }
|
|
41
|
+
.flex-col-reverse { flex-direction: column-reverse; }
|
|
42
|
+
|
|
43
|
+
.flex-wrap { flex-wrap: wrap; }
|
|
44
|
+
.flex-wrap-reverse { flex-wrap: wrap-reverse; }
|
|
45
|
+
.flex-nowrap { flex-wrap: nowrap; }
|
|
46
|
+
|
|
47
|
+
.flex-1 { flex: 1 1 0%; }
|
|
48
|
+
.flex-auto { flex: 1 1 auto; }
|
|
49
|
+
.flex-initial { flex: 0 1 auto; }
|
|
50
|
+
.flex-none { flex: none; }
|
|
51
|
+
|
|
52
|
+
/* flex - justify content */
|
|
53
|
+
.justify-start { justify-content: flex-start; }
|
|
54
|
+
.justify-end { justify-content: flex-end; }
|
|
55
|
+
.justify-center { justify-content: center; }
|
|
56
|
+
.justify-between { justify-content: space-between; }
|
|
57
|
+
.justify-around { justify-content: space-around; }
|
|
58
|
+
.justify-evenly { justify-content: space-evenly; }
|
|
59
|
+
/* grid - justify self */
|
|
60
|
+
.justify-self-auto { justify-self: auto; }
|
|
61
|
+
.justify-self-start { justify-self: start; }
|
|
62
|
+
.justify-self-end { justify-self: end; }
|
|
63
|
+
.justify-self-center { justify-self: center; }
|
|
64
|
+
.justify-self-stretch { justify-self: stretch; }
|
|
65
|
+
/* flex - align items */
|
|
66
|
+
.items-start { align-items: flex-start; }
|
|
67
|
+
.items-end { align-items: flex-end; }
|
|
68
|
+
.items-center { align-items: center; }
|
|
69
|
+
.items-baseline { align-items: baseline; }
|
|
70
|
+
.items-stretch { align-items: stretch; }
|
|
71
|
+
/* flex - align self */
|
|
72
|
+
.self-auto { align-self: auto; }
|
|
73
|
+
.self-start { align-self: flex-start; }
|
|
74
|
+
.self-end { align-self: flex-end; }
|
|
75
|
+
.self-center { align-self: center; }
|
|
76
|
+
.self-stretch { align-self: stretch; }
|
|
77
|
+
.self-baseline { align-self: baseline; }
|
|
78
|
+
/* flex/grid - gap */
|
|
79
|
+
.gap-xs { gap: var(--spacing-xs); }
|
|
80
|
+
.gap-s { gap: var(--spacing-s); }
|
|
81
|
+
.gap { gap: var(--spacing); }
|
|
82
|
+
.gap-l { gap: var(--spacing-l); }
|
|
83
|
+
|
|
84
|
+
.flex-4up {
|
|
85
|
+
flex: 0 1 25%;
|
|
86
|
+
}
|
|
87
|
+
.flex-4up-gap {
|
|
88
|
+
flex: 0 1 calc(25% - var(--spacing));
|
|
89
|
+
}
|
|
90
|
+
.flex-3up-gap {
|
|
91
|
+
flex: 0 1 calc(33% - var(--spacing));
|
|
92
|
+
}
|
|
93
|
+
.flex-2up-gap {
|
|
94
|
+
flex: 0 1 calc(50% - var(--spacing));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
/* ----- Positioning ---- */
|
|
99
|
+
.hcenter {
|
|
100
|
+
position: absolute;
|
|
101
|
+
left: 50%;
|
|
102
|
+
transform: translateX(-50%);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.vcenter {
|
|
106
|
+
position: absolute;
|
|
107
|
+
top: 50%;
|
|
108
|
+
transform: translateY(-50%);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.vcenter.right {
|
|
112
|
+
right: 0;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.vcenter.left {
|
|
116
|
+
left: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.vcenter.hcenter {
|
|
120
|
+
transform: translate(-50%, -50%);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* ----- Transformation ---- */
|
|
124
|
+
.rotate90 {
|
|
125
|
+
transform: rotate(90deg);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.rotate180 {
|
|
129
|
+
transform: rotate(180deg);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.rotate270 {
|
|
133
|
+
transform: rotate(270deg);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.whitespace-no-wrap {
|
|
137
|
+
white-space: nowrap;
|
|
138
|
+
}
|
|
136
139
|
}
|