-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into open-interactions
- Loading branch information
Showing
98 changed files
with
1,198 additions
and
570 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
"@salt-ds/date-adapters": patch | ||
"@salt-ds/lab": patch | ||
--- | ||
|
||
Refine peer dependency management for DatePicker adapters by splitting them into sub-packages. You now import only the specific date framework adapter you need, simplifying dependency handling. | ||
|
||
- **For `date-fns`:** | ||
|
||
```diff | ||
- import { AdapterDateFns } from "@salt-ds/date-adapters"; | ||
+ import { AdapterDateFns } from "@salt-ds/date-adapters/date-fns"; | ||
``` | ||
|
||
- **For `dayjs`:** | ||
|
||
```diff | ||
- import { AdapterDayjs } from "@salt-ds/date-adapters"; | ||
+ import { AdapterDayjs } from "@salt-ds/date-adapters/dayjs"; | ||
``` | ||
|
||
- **For `luxon`:** | ||
|
||
```diff | ||
- import { AdapterLuxon } from "@salt-ds/date-adapters"; | ||
+ import { AdapterLuxon } from "@salt-ds/date-adapters/luxon"; | ||
``` | ||
|
||
- **For `moment`:** | ||
|
||
```diff | ||
- import { AdapterMoment } from "@salt-ds/date-adapters"; | ||
+ import { AdapterMoment } from "@salt-ds/date-adapters/moment"; | ||
``` | ||
|
||
Additionally, `DateDetailErrorEnum` is now a simpler `DateDetailError` of type `DateDetailErrorType`. | ||
|
||
```diff | ||
- import { DateDetailErrorEnum } from "@salt-ds/date-adapters"; | ||
+ import { DateDetailError } from "@salt-ds/date-adapters/moment"; | ||
``` | ||
|
||
### Instructions | ||
|
||
1. Modify your import statements to use the specific sub-package for the date adapter you require. | ||
|
||
2. Ensure your `package.json` includes the necessary date framework as a dependency. For example, if using `date-fns`: | ||
|
||
```json | ||
{ | ||
"dependencies": { | ||
"date-fns": "^x.x.x" | ||
} | ||
} | ||
``` | ||
|
||
This change helps streamline the integration of date frameworks with the DatePicker component by ensuring only the necessary adapters and dependencies are included. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@salt-ds/lab": patch | ||
--- | ||
|
||
Overlay and Dialog headers fix alignment for titles spanning into multiple lines, wrap preheader and headers in H2. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@salt-ds/core": minor | ||
--- | ||
|
||
Added `render` prop to `Link`. The `render` prop enables the substitution of the default anchor tag with an alternate link, such as React Router, facilitating integration with routing libraries. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@salt-ds/lab": patch | ||
--- | ||
|
||
Add border box to skip link container to ensure height is correctly measured. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@salt-ds/core": patch | ||
--- | ||
|
||
Fixed Toast icon alignment. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { type ComponentPropsWithoutRef, forwardRef } from "react"; | ||
import { renderProps } from "../utils"; | ||
|
||
interface LinkActionProps extends ComponentPropsWithoutRef<"a"> {} | ||
|
||
export const LinkAction = forwardRef<HTMLAnchorElement, LinkActionProps>( | ||
function LinkAction(props, ref) { | ||
return renderProps("a", { ...props, ref }); | ||
}, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.