Skip to content

Commit

Permalink
feat: make sure to use mantine component headless
Browse files Browse the repository at this point in the history
  • Loading branch information
Akari0731 authored and mblodau1337 committed Jan 10, 2024
1 parent 25bc09b commit fc3bfac
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/polite-shirts-fly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@einride/ui-dates": minor
"@einride/ui": minor
---

Make sure to use Mantine components in headless mode so as to remove conflicts between Mantine in
this package and Saga apps that are importing Mantine components on their own.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const DatePicker = ({ wrapperProps, ...props }: DatePickerProps): React.J
hideOutsideDates
maxLevel="month"
withCellSpacing={false}
unstyled
{...props}
/>
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export const DatePickerInput = ({
valueFormat={inputFormat}
withAsterisk={false}
withCellSpacing={false}
unstyled
{...props}
/>
{message && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const DateRangePicker = ({ wrapperProps, ...props }: DateRangePicker): Re
maxLevel="month"
withCellSpacing={false}
type="range"
unstyled
{...props}
/>
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ export const DateRangePickerInput = ({
valueFormat={inputFormat}
withAsterisk={false}
withCellSpacing={false}
unstyled
{...props}
/>
{message && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const Calendar = ({ wrapperProps, ...props }: CalendarProps): React.JSX.E
hideOutsideDates
maxLevel="month"
withCellSpacing={false}
unstyled
{...props}
/>
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ export const DatePicker = ({
valueFormat={inputFormat}
withAsterisk={false}
withCellSpacing={false}
unstyled
{...props}
/>
{message && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ export const DateRangePicker = ({
valueFormat={inputFormat}
withAsterisk={false}
withCellSpacing={false}
unstyled
{...props}
/>
{message && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export const RangeCalendar = ({
maxLevel="month"
withCellSpacing={false}
type="range"
unstyled
{...props}
/>
</Box>
Expand Down

0 comments on commit fc3bfac

Please sign in to comment.