@utahdts/utah-design-system 4.3.0 → 5.0.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 (27) hide show
  1. package/css/1-settings/_color-swatches.scss +74 -0
  2. package/css/1-settings/_font-stuff.scss +52 -2
  3. package/css/1-settings/_settings-index.scss +91 -12
  4. package/css/6-components/base-components/containers/_drawer.scss +1 -1
  5. package/css/6-components/base-components/containers/_tab-group.scss +3 -0
  6. package/css/6-components/base-components/footer/_utah-footer.scss +4 -1
  7. package/css/6-components/base-components/forms/_text-input.scss +1 -0
  8. package/css/6-components/base-components/navigation/_main-menu.scss +8 -3
  9. package/css/6-components/base-components/navigation/_vertical-menu.scss +1 -0
  10. package/css/6-components/base-components/popups/_search-modal.scss +8 -0
  11. package/css/6-components/base-components/widgetsIndicators/_badge.scss +2 -2
  12. package/css/6-components/project-components/_swatch-list.scss +5 -2
  13. package/css/6-components/utah-header/_badge.scss +2 -2
  14. package/css/6-components/utah-header/_citizen-experience.scss +16 -0
  15. package/css/6-components/utah-header/_logos.scss +22 -6
  16. package/css/6-components/utah-header/_mobile-menu.scss +3 -3
  17. package/css/6-components/utah-header/_notifications.scss +200 -0
  18. package/css/6-components/utah-header/_official-banner.scss +85 -0
  19. package/css/6-components/utah-header/_official-website-popup.scss +3 -2
  20. package/css/6-components/utah-header/_utah-header-wrapper.scss +12 -1
  21. package/css/6-components/utah-header/index.scss +2 -0
  22. package/dist/style.css +435 -38
  23. package/dist/utah-design-system.es.js +7455 -7232
  24. package/dist/utah-design-system.umd.js +7737 -7340
  25. package/package.json +14 -14
  26. package/react/components/table/TableWrapper.jsx +7 -0
  27. package/react/components/table/useCurrentValuesFromStateContext.js +1 -2
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": "4.3.0",
5
+ "version": "5.0.1",
6
6
  "exports": {
7
7
  ".": {
8
8
  "development-local": "./index.js",
@@ -68,26 +68,26 @@
68
68
  "react": "^18.0.0 || ^19.0.0"
69
69
  },
70
70
  "dependencies": {
71
- "@floating-ui/react-dom": "2.1.7",
72
- "@utahdts/utah-design-system-header": "4.3.0",
71
+ "@floating-ui/react-dom": "^2.1.8",
72
+ "@utahdts/utah-design-system-header": "5.0.1",
73
73
  "date-fns": "4.1.0",
74
74
  "immer": "11.1.4",
75
- "lodash-es": "4.17.23",
75
+ "lodash-es": "4.18.1",
76
76
  "use-immer": "0.11.0",
77
- "uuid": "13.0.0"
77
+ "uuid": "14.0.0"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@types/lodash-es": "4.17.12",
81
- "@types/react": "^19.2.13",
82
- "@vitejs/plugin-react": "5.1.4",
83
- "@vitest/coverage-istanbul": "4.0.18",
84
- "@vitest/ui": "4.0.18",
85
- "jsdom": "28.0.0",
81
+ "@types/react": "^19.2.14",
82
+ "@vitejs/plugin-react": "^6.0.1",
83
+ "@vitest/coverage-istanbul": "^4.1.5",
84
+ "@vitest/ui": "^4.1.5",
85
+ "jsdom": "^29.1.1",
86
86
  "prop-types": "15.8.1",
87
- "sass": "1.97.3",
88
- "typescript": "5.9.3",
89
- "vite": "7.3.1",
90
- "vitest": "4.0.18"
87
+ "sass": "^1.99.0",
88
+ "typescript": "^6.0.3",
89
+ "vite": "^8.0.10",
90
+ "vitest": "^4.1.5"
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}
@@ -126,8 +126,7 @@ export function useCurrentValuesFromStateContext({
126
126
  setStateLocal(defaultOnChange(e));
127
127
  })
128
128
  ),
129
- // @ts-expect-error hacked for missing currentValue that shouldn't be?
130
- currentValue: currentValue ?? '',
129
+ currentValue: currentValue ?? /** @type {any} */(''),
131
130
  setValue,
132
131
  }),
133
132
  [