@utahdts/utah-design-system 1.13.2 → 1.14.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.
@@ -13,7 +13,7 @@
13
13
  width: 100%;
14
14
  display: flex;
15
15
  flex-wrap: wrap;
16
- align-items: start;
16
+ align-items: flex-start;
17
17
  gap: var(--spacing-2xs);
18
18
  padding: var(--spacing-2xs) var(--spacing-xl) var(--spacing-2xs) var(--spacing-2xs);
19
19
 
@@ -1,8 +1,13 @@
1
1
  @use "../../../1-settings/class-vars";
2
2
 
3
3
  #{class-vars.$base-class} {
4
+ //this doesn't nest under table so it has to be written like this
4
5
  .table__wrapper {
5
6
  overflow-x: auto;
7
+
8
+ &--full-width {
9
+ width: 100%;
10
+ }
6
11
  }
7
12
  table {
8
13
  border-collapse: collapse;
@@ -29,6 +34,7 @@
29
34
  td {
30
35
  vertical-align: top;
31
36
  padding: var(--spacing-s);
37
+ background: white;
32
38
  }
33
39
  }
34
40
  tr:last-child {
@@ -75,6 +81,16 @@
75
81
  }
76
82
  }
77
83
  }
84
+ &--lines-y {
85
+ tbody {
86
+ tr {
87
+ td {
88
+ border-left: 1px solid var(--gray-3-1-contrast);
89
+ border-right: 1px solid var(--gray-3-1-contrast);
90
+ }
91
+ }
92
+ }
93
+ }
78
94
  &--v-align-center {
79
95
  tbody {
80
96
  tr {
@@ -11,9 +11,9 @@
11
11
  .content-width {
12
12
  max-width: calc(var(--content-width-narrow) + (2 * var(--spacing-2xl)));
13
13
  padding: 0 var(--spacing-2xl);
14
- box-sizing: border-box; }
14
+ box-sizing: border-box;
15
+ }
15
16
  }
16
-
17
17
  }
18
18
 
19
19
  @media screen and (max-width: #{media-size-vars.$media-size-mobile}) {
package/dist/style.css CHANGED
@@ -3346,7 +3346,7 @@ base color swatches for the design system
3346
3346
  width: 100%;
3347
3347
  display: flex;
3348
3348
  flex-wrap: wrap;
3349
- align-items: start;
3349
+ align-items: flex-start;
3350
3350
  gap: var(--spacing-2xs);
3351
3351
  padding: var(--spacing-2xs) var(--spacing-xl) var(--spacing-2xs) var(--spacing-2xs);
3352
3352
  box-shadow: var(--hover-gray-color) 0 0 0 0;
@@ -6129,6 +6129,10 @@ BEM standard: Block, Element, Modifier
6129
6129
  overflow-x: auto;
6130
6130
  }
6131
6131
 
6132
+ .utah-design-system .table__wrapper--full-width {
6133
+ width: 100%;
6134
+ }
6135
+
6132
6136
  .utah-design-system table {
6133
6137
  border-collapse: collapse;
6134
6138
  }
@@ -6156,6 +6160,7 @@ BEM standard: Block, Element, Modifier
6156
6160
  .utah-design-system table tbody tr td {
6157
6161
  vertical-align: top;
6158
6162
  padding: var(--spacing-s);
6163
+ background: white;
6159
6164
  }
6160
6165
 
6161
6166
  .utah-design-system table tbody tr:last-child td {
@@ -6184,6 +6189,11 @@ BEM standard: Block, Element, Modifier
6184
6189
  border-bottom: 1px solid var(--gray-color);
6185
6190
  }
6186
6191
 
6192
+ .utah-design-system table.table--lines-y tbody tr td {
6193
+ border-left: 1px solid var(--gray-3-1-contrast);
6194
+ border-right: 1px solid var(--gray-3-1-contrast);
6195
+ }
6196
+
6187
6197
  .utah-design-system table.table--v-align-center tbody tr td {
6188
6198
  vertical-align: middle;
6189
6199
  }
@@ -31,7 +31,7 @@ import { useLocation, NavLink } from "react-router-dom";
31
31
  const name = "@utahdts/utah-design-system";
32
32
  const description = "Utah Design System React Library";
33
33
  const displayName = "Utah Design System React Library";
34
- const version$1 = "1.13.2";
34
+ const version$1 = "1.14.0";
35
35
  const exports = {
36
36
  ".": {
37
37
  "development-local": "./index.js",
@@ -88,13 +88,13 @@ const keywords = [
88
88
  "components"
89
89
  ];
90
90
  const author = "DTS Digital Experience <dtsui@utah.gov>";
91
- const license = "State of Utah - TOT";
91
+ const license = "state of Utah - TOT";
92
92
  const bugs = {
93
93
  url: "https://github.com/utahdts/utah-design-system/issues"
94
94
  };
95
95
  const homepage = "https://github.com/utahdts/utah-design-system";
96
96
  const dependencies = {
97
- "@utahdts/utah-design-system-header": "1.13.2",
97
+ "@utahdts/utah-design-system-header": "1.14.0",
98
98
  lodash: "4.17.21",
99
99
  "prop-types": "15.8.1",
100
100
  react: "18.x",
@@ -105,17 +105,17 @@ const dependencies = {
105
105
  };
106
106
  const devDependencies = {
107
107
  "@types/lodash": "4.14.202",
108
- "@types/react": "18.2.45",
109
- "@types/react-dom": "18.2.17",
108
+ "@types/react": "18.2.46",
109
+ "@types/react-dom": "18.2.18",
110
110
  "@types/uuid": "9.0.7",
111
111
  "@vitejs/plugin-react": "4.2.1",
112
- "@vitest/coverage-istanbul": "1.0.4",
113
- "@vitest/ui": "1.0.4",
112
+ "@vitest/coverage-istanbul": "1.1.1",
113
+ "@vitest/ui": "1.1.1",
114
114
  jsdom: "23.0.1",
115
- sass: "1.69.5",
115
+ sass: "1.69.6",
116
116
  typescript: "5.3.3",
117
- vite: "5.0.8",
118
- vitest: "1.0.4"
117
+ vite: "5.0.10",
118
+ vitest: "1.1.1"
119
119
  };
120
120
  const type = "module";
121
121
  const packageJson = {
@@ -40049,7 +40049,7 @@ function HorizontalMenu({
40049
40049
  ] });
40050
40050
  }
40051
40051
  function LandingTemplate({ content: Content }) {
40052
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Content, {});
40052
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(MainContent, { className: "landing-page-template__content", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Content, {}) });
40053
40053
  }
40054
40054
  function LinkCallback({
40055
40055
  actionDescription,
@@ -40113,11 +40113,9 @@ function Modal({
40113
40113
  lastTabElement == null ? void 0 : lastTabElement.focus();
40114
40114
  e.preventDefault();
40115
40115
  }
40116
- } else {
40117
- if (document.activeElement === lastTabElement) {
40118
- firstTabElement == null ? void 0 : firstTabElement.focus();
40119
- e.preventDefault();
40120
- }
40116
+ } else if (document.activeElement === lastTabElement) {
40117
+ firstTabElement == null ? void 0 : firstTabElement.focus();
40118
+ e.preventDefault();
40121
40119
  }
40122
40120
  }
40123
40121
  }, [firstTabElement, lastTabElement]);
@@ -47,7 +47,7 @@ var __privateSet = (obj, member, value, setter) => {
47
47
  const name = "@utahdts/utah-design-system";
48
48
  const description = "Utah Design System React Library";
49
49
  const displayName = "Utah Design System React Library";
50
- const version$1 = "1.13.2";
50
+ const version$1 = "1.14.0";
51
51
  const exports$1 = {
52
52
  ".": {
53
53
  "development-local": "./index.js",
@@ -104,13 +104,13 @@ var __privateSet = (obj, member, value, setter) => {
104
104
  "components"
105
105
  ];
106
106
  const author = "DTS Digital Experience <dtsui@utah.gov>";
107
- const license = "State of Utah - TOT";
107
+ const license = "state of Utah - TOT";
108
108
  const bugs = {
109
109
  url: "https://github.com/utahdts/utah-design-system/issues"
110
110
  };
111
111
  const homepage = "https://github.com/utahdts/utah-design-system";
112
112
  const dependencies = {
113
- "@utahdts/utah-design-system-header": "1.13.2",
113
+ "@utahdts/utah-design-system-header": "1.14.0",
114
114
  lodash: "4.17.21",
115
115
  "prop-types": "15.8.1",
116
116
  react: "18.x",
@@ -121,17 +121,17 @@ var __privateSet = (obj, member, value, setter) => {
121
121
  };
122
122
  const devDependencies = {
123
123
  "@types/lodash": "4.14.202",
124
- "@types/react": "18.2.45",
125
- "@types/react-dom": "18.2.17",
124
+ "@types/react": "18.2.46",
125
+ "@types/react-dom": "18.2.18",
126
126
  "@types/uuid": "9.0.7",
127
127
  "@vitejs/plugin-react": "4.2.1",
128
- "@vitest/coverage-istanbul": "1.0.4",
129
- "@vitest/ui": "1.0.4",
128
+ "@vitest/coverage-istanbul": "1.1.1",
129
+ "@vitest/ui": "1.1.1",
130
130
  jsdom: "23.0.1",
131
- sass: "1.69.5",
131
+ sass: "1.69.6",
132
132
  typescript: "5.3.3",
133
- vite: "5.0.8",
134
- vitest: "1.0.4"
133
+ vite: "5.0.10",
134
+ vitest: "1.1.1"
135
135
  };
136
136
  const type = "module";
137
137
  const packageJson = {
@@ -40065,7 +40065,7 @@ var __privateSet = (obj, member, value, setter) => {
40065
40065
  ] });
40066
40066
  }
40067
40067
  function LandingTemplate({ content: Content }) {
40068
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Content, {});
40068
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(MainContent, { className: "landing-page-template__content", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Content, {}) });
40069
40069
  }
40070
40070
  function LinkCallback({
40071
40071
  actionDescription,
@@ -40129,11 +40129,9 @@ var __privateSet = (obj, member, value, setter) => {
40129
40129
  lastTabElement == null ? void 0 : lastTabElement.focus();
40130
40130
  e.preventDefault();
40131
40131
  }
40132
- } else {
40133
- if (document.activeElement === lastTabElement) {
40134
- firstTabElement == null ? void 0 : firstTabElement.focus();
40135
- e.preventDefault();
40136
- }
40132
+ } else if (document.activeElement === lastTabElement) {
40133
+ firstTabElement == null ? void 0 : firstTabElement.focus();
40134
+ e.preventDefault();
40137
40135
  }
40138
40136
  }
40139
40137
  }, [firstTabElement, lastTabElement]);
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": "1.13.2",
5
+ "version": "1.14.0",
6
6
  "exports": {
7
7
  ".": {
8
8
  "development-local": "./index.js",
@@ -59,13 +59,13 @@
59
59
  "components"
60
60
  ],
61
61
  "author": "DTS Digital Experience <dtsui@utah.gov>",
62
- "license": "State of Utah - TOT",
62
+ "license": "state of Utah - TOT",
63
63
  "bugs": {
64
64
  "url": "https://github.com/utahdts/utah-design-system/issues"
65
65
  },
66
66
  "homepage": "https://github.com/utahdts/utah-design-system",
67
67
  "dependencies": {
68
- "@utahdts/utah-design-system-header": "1.13.2",
68
+ "@utahdts/utah-design-system-header": "1.14.0",
69
69
  "lodash": "4.17.21",
70
70
  "prop-types": "15.8.1",
71
71
  "react": "18.x",
@@ -76,17 +76,17 @@
76
76
  },
77
77
  "devDependencies": {
78
78
  "@types/lodash": "4.14.202",
79
- "@types/react": "18.2.45",
80
- "@types/react-dom": "18.2.17",
79
+ "@types/react": "18.2.46",
80
+ "@types/react-dom": "18.2.18",
81
81
  "@types/uuid": "9.0.7",
82
82
  "@vitejs/plugin-react": "4.2.1",
83
- "@vitest/coverage-istanbul": "1.0.4",
84
- "@vitest/ui": "1.0.4",
83
+ "@vitest/coverage-istanbul": "1.1.1",
84
+ "@vitest/ui": "1.1.1",
85
85
  "jsdom": "23.0.1",
86
- "sass": "1.69.5",
86
+ "sass": "1.69.6",
87
87
  "typescript": "5.3.3",
88
- "vite": "5.0.8",
89
- "vitest": "1.0.4"
88
+ "vite": "5.0.10",
89
+ "vitest": "1.1.1"
90
90
  },
91
91
  "type": "module"
92
92
  }
@@ -178,9 +178,6 @@ export function ComboBoxOption({
178
178
  draftContext.isFilterValueDirty = false;
179
179
  draftContext.isOptionsExpanded = false;
180
180
  draftContext.optionValueHighlighted = null;
181
- // TODO: onChange does this? so not needed here?
182
- // draftContext.filterValue = label;
183
- // draftContext.optionValueSelected = value;
184
181
  setTimeout(
185
182
  () => {
186
183
  // move cursor to end after clicking an option so it can be edited
@@ -20,10 +20,8 @@ export function selectComboBoxSelection(draftContext, textInput, onSubmit) {
20
20
  );
21
21
 
22
22
  // select currently highlighted menu item
23
- // draftContext.filterValue = selectedOption?.label ?? '';
24
23
  draftContext.isFilterValueDirty = false;
25
24
  draftContext.isOptionsExpanded = false;
26
- // draftContext.optionValueSelected = selectedOption?.value ?? null;
27
25
 
28
26
  if (selectedOption) {
29
27
  const selectedOptionLabel = selectedOption.label;
@@ -59,12 +59,9 @@ export function Modal({
59
59
  lastTabElement?.focus();
60
60
  e.preventDefault();
61
61
  }
62
- } else {
63
- // eslint-disable-next-line no-lonely-if
64
- if (document.activeElement === lastTabElement) {
65
- firstTabElement?.focus();
66
- e.preventDefault();
67
- }
62
+ } else if (document.activeElement === lastTabElement) {
63
+ firstTabElement?.focus();
64
+ e.preventDefault();
68
65
  }
69
66
  }
70
67
  }, [firstTabElement, lastTabElement]);
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { MainContent } from './MainContent';
2
3
 
3
4
  /**
4
5
  * @param {object} props
@@ -6,5 +7,9 @@ import React from 'react';
6
7
  * @returns {import('react').JSX.Element}
7
8
  */
8
9
  export function LandingTemplate({ content: Content }) {
9
- return (<Content />);
10
+ return (
11
+ <MainContent className="landing-page-template__content">
12
+ <Content />
13
+ </MainContent>
14
+ );
10
15
  }
@@ -1,6 +1,8 @@
1
1
  // The MainContent component renders a <main> tag.
2
2
  // Use primarily to provide a target for the skip link.
3
3
  /**
4
+ * The MainContent component renders a <main> tag.
5
+ * Use primarily to provide a target for the skip link.
4
6
  * @param {object} props
5
7
  * @param {import('react').ReactNode} props.children
6
8
  * @param {string} [props.className]