Skip to content

Commit

Permalink
chore: upgrade hds 4.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
joonatank committed Feb 17, 2025
1 parent e5ebe87 commit ca0d912
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 64 deletions.
4 changes: 2 additions & 2 deletions apps/admin-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"eslint-config-custom": "workspace:*",
"form-data": "^4.0.0",
"graphql": "^16.9.0",
"hds-core": "^4.1.0",
"hds-react": "^4.1.0",
"hds-core": "^4.2.0",
"hds-react": "^4.2.0",
"i18next": "^23.15.1",
"lodash": "^4.17.21",
"next": "15.1.7",
Expand Down
1 change: 0 additions & 1 deletion apps/admin-ui/src/spa/applications/[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,6 @@ function RejectOptionButton({
return null;
}
return (
// @ts-expect-error -- HDS incorrect typing for ButtonVariant.Supplementary
<Button
size={ButtonSize.Small}
variant={loading ? ButtonVariant.Clear : ButtonVariant.Supplementary}
Expand Down
6 changes: 3 additions & 3 deletions apps/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
"eslint-config-custom": "workspace:*",
"focus-trap-react": "^10.2.3",
"graphql": "^16.9.0",
"hds-core": "^4.1.0",
"hds-design-tokens": "^4.1.0",
"hds-react": "^4.1.0",
"hds-core": "^4.2.0",
"hds-design-tokens": "^4.2.0",
"hds-react": "^4.2.0",
"i18next": "^23.15.1",
"lodash": "^4.17.21",
"next": "15.1.7",
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"date-fns": "^4.1.0",
"eslint-config-custom": "workspace:*",
"focus-trap-react": "^10.2.3",
"hds-react": "^4.1.0",
"hds-react": "^4.2.0",
"i18next": "^23.15.1",
"lodash": "^4.17.21",
"next": "15.1.7",
Expand Down
12 changes: 7 additions & 5 deletions packages/common/src/components/form/ControlledSelect.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { defaultFilter, Option, Select } from "hds-react";
import { defaultFilter, Option, Select, Tooltip } from "hds-react";
import { useTranslation } from "next-i18next";
import {
type Control,
Expand Down Expand Up @@ -46,8 +46,7 @@ export function ControlledSelect<T extends FieldValues>({
style,
className,
clearable,
// ignore till HDS provides an upstream fix
tooltip: _,
tooltip,
helper: assistive,
multiselect,
disabled,
Expand Down Expand Up @@ -121,9 +120,12 @@ export function ControlledSelect<T extends FieldValues>({
error,
assistive,
language,
// FIXME tooltip is missing is an upstream issue
// tooltipText: tooltip,
}}
tooltip={
tooltip != null && tooltip !== "" ? (
<Tooltip>{tooltip}</Tooltip>
) : undefined
}
value={toHDSValue(options, value)}
options={options.map(convertOptionToHDS)}
onChange={handleChange}
Expand Down
103 changes: 51 additions & 52 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ca0d912

Please sign in to comment.