@utahdts/utah-design-system 4.3.0 → 5.0.0
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/_color-swatches.scss +74 -0
- package/css/1-settings/_font-stuff.scss +52 -2
- package/css/1-settings/_settings-index.scss +91 -12
- package/css/6-components/base-components/containers/_drawer.scss +1 -1
- package/css/6-components/base-components/containers/_tab-group.scss +3 -0
- package/css/6-components/base-components/footer/_utah-footer.scss +4 -1
- package/css/6-components/base-components/forms/_text-input.scss +1 -0
- package/css/6-components/base-components/navigation/_main-menu.scss +4 -1
- package/css/6-components/base-components/popups/_search-modal.scss +8 -0
- package/css/6-components/base-components/widgetsIndicators/_badge.scss +2 -2
- package/css/6-components/project-components/_swatch-list.scss +5 -2
- package/css/6-components/utah-header/_badge.scss +2 -2
- package/css/6-components/utah-header/_logos.scss +9 -6
- package/css/6-components/utah-header/_mobile-menu.scss +3 -3
- package/css/6-components/utah-header/_notifications.scss +200 -0
- package/css/6-components/utah-header/_official-banner.scss +78 -0
- package/css/6-components/utah-header/_official-website-popup.scss +3 -2
- package/css/6-components/utah-header/_utah-header-wrapper.scss +12 -1
- package/css/6-components/utah-header/index.scss +2 -0
- package/dist/style.css +409 -37
- package/dist/utah-design-system.es.js +7450 -7232
- package/dist/utah-design-system.umd.js +7732 -7340
- package/package.json +11 -11
- package/react/components/table/TableWrapper.jsx +7 -0
- package/react/components/table/useCurrentValuesFromStateContext.js +1 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@utahdts/utah-design-system",
|
|
3
3
|
"description": "Utah Design System React Library",
|
|
4
4
|
"displayName": "Utah Design System React Library",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "5.0.0",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
8
|
"development-local": "./index.js",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"react": "^18.0.0 || ^19.0.0"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@floating-ui/react-dom": "2.1.
|
|
72
|
-
"@utahdts/utah-design-system-header": "
|
|
71
|
+
"@floating-ui/react-dom": "^2.1.8",
|
|
72
|
+
"@utahdts/utah-design-system-header": "5.0.0",
|
|
73
73
|
"date-fns": "4.1.0",
|
|
74
74
|
"immer": "11.1.4",
|
|
75
75
|
"lodash-es": "4.17.23",
|
|
@@ -79,15 +79,15 @@
|
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@types/lodash-es": "4.17.12",
|
|
81
81
|
"@types/react": "^19.2.13",
|
|
82
|
-
"@vitejs/plugin-react": "
|
|
83
|
-
"@vitest/coverage-istanbul": "4.
|
|
84
|
-
"@vitest/ui": "4.
|
|
85
|
-
"jsdom": "
|
|
82
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
83
|
+
"@vitest/coverage-istanbul": "^4.1.2",
|
|
84
|
+
"@vitest/ui": "^4.1.2",
|
|
85
|
+
"jsdom": "^29.0.1",
|
|
86
86
|
"prop-types": "15.8.1",
|
|
87
|
-
"sass": "1.
|
|
88
|
-
"typescript": "
|
|
89
|
-
"vite": "
|
|
90
|
-
"vitest": "4.
|
|
87
|
+
"sass": "^1.98.0",
|
|
88
|
+
"typescript": "^6.0.2",
|
|
89
|
+
"vite": "^8.0.3",
|
|
90
|
+
"vitest": "^4.1.2"
|
|
91
91
|
},
|
|
92
92
|
"type": "module"
|
|
93
93
|
}
|
|
@@ -58,6 +58,7 @@ function sortByFieldType(sortingRule, fieldValueA, fieldValueB) {
|
|
|
58
58
|
* @template TableDataT extends TableDataT & { [x: string]: any; }
|
|
59
59
|
* @param {object} props
|
|
60
60
|
* @param {boolean} [props.allowScrollOverflow]
|
|
61
|
+
* @param {string} [props.ariaLabelledBy]
|
|
61
62
|
* @param {import('react').ReactNode} props.children
|
|
62
63
|
* @param {string} [props.className]
|
|
63
64
|
* @param {import('react').RefObject<HTMLDivElement>} [props.innerRef]
|
|
@@ -66,12 +67,16 @@ function sortByFieldType(sortingRule, fieldValueA, fieldValueB) {
|
|
|
66
67
|
*/
|
|
67
68
|
export function TableWrapper({
|
|
68
69
|
allowScrollOverflow,
|
|
70
|
+
ariaLabelledBy,
|
|
69
71
|
children,
|
|
70
72
|
className,
|
|
71
73
|
id,
|
|
72
74
|
innerRef,
|
|
73
75
|
...rest
|
|
74
76
|
}) {
|
|
77
|
+
if (allowScrollOverflow && !ariaLabelledBy) {
|
|
78
|
+
console.warn(`allowScrollOverflow: TableWrapper is missing a valid ariaLabelledBy attribute`);
|
|
79
|
+
}
|
|
75
80
|
const internalId = useId();
|
|
76
81
|
/** @type {[TableContextState<TableDataT>, import('use-immer').Updater<import('@utahdts/utah-design-system').TableContextState<TableDataT>>]} */
|
|
77
82
|
const [state, setState] = useImmer(
|
|
@@ -215,9 +220,11 @@ export function TableWrapper({
|
|
|
215
220
|
return (
|
|
216
221
|
<TableContext.Provider value={contextValue}>
|
|
217
222
|
<div
|
|
223
|
+
aria-labelledby={ariaLabelledBy}
|
|
218
224
|
className={joinClassNames('table__wrapper', className)}
|
|
219
225
|
id={id} ref={innerRef}
|
|
220
226
|
tabIndex={allowScrollOverflow ? 0 : undefined}
|
|
227
|
+
role={allowScrollOverflow ? 'region' : undefined}
|
|
221
228
|
{...rest}
|
|
222
229
|
>
|
|
223
230
|
{children}
|
|
@@ -100,6 +100,7 @@ export function useCurrentValuesFromStateContext({
|
|
|
100
100
|
currentValue = defaultValueRef.current;
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
+
// @ts-expect-error I dont know how to fix this Austin
|
|
103
104
|
return useMemo(
|
|
104
105
|
() => ({
|
|
105
106
|
currentOnChange: (
|
|
@@ -126,7 +127,6 @@ export function useCurrentValuesFromStateContext({
|
|
|
126
127
|
setStateLocal(defaultOnChange(e));
|
|
127
128
|
})
|
|
128
129
|
),
|
|
129
|
-
// @ts-expect-error hacked for missing currentValue that shouldn't be?
|
|
130
130
|
currentValue: currentValue ?? '',
|
|
131
131
|
setValue,
|
|
132
132
|
}),
|