# @intility/bifrost-react-datepicker

## 5.1.0

### Minor Changes

- d5d392c: Feat: `<DatePicker>` component now forwards `ref` prop (to support certain form libs like `react-hook-form`). #67

### Patch Changes

- 6d67f5f: Fix: Explicitly set `font-family` to "Open Sans" to prevent inheriting wrong
  font from parent. #86

## 5.0.0

### Major Changes

- 526d727: Refactor: removed `date-fns` dependency from `@intility/bifrost-react` and added it to `@intility/bifrost-react-datepicker` and bumped from `3.6.0` to `4.1.0`
- fcbbe97: Update `@Intility/bifrost-react` peer dependency to `>=5.0.0`
- dd6b460: Update `react-datepicker` dependency to `8.1.0` which supports React 19

### Patch Changes

- 48ebed2: Fix datepicker `icon` prop type

## 4.1.3 - 2025-02-26

### Patch Changes

- 1e2116f: update package metadata

## 4.1.2 - 2025-02-14

### Patch Changes

- 66a9741: Fix: Feedback text for datepicker in `alert` state should now correctly be colored red.

## 4.1.1 - 2024-11-06

### Patch Changes

- 9ac0d65: allow react 17 as a peer dep

## 4.1.0 - 2024-10-15

### Minor Changes

- 2703b98: Add support for `small` variants for most form field inputs, to match existing `small` button styling.

  - `<Input>`
  - `<DatePicker>`
  - `<FieldGroup.Item>`
  - `<Select>`

### Patch Changes

- f70f414: Changed some colors to use `theme` variables.

## 4.0.7 - 2024-08-06

### Patch Changes

- 899927b: Fix: form field height should follow browser font-size setting. Use `rem` over `px` for height-related units for form fields (input, button, select, datepicker).

## 4.0.6 - 2024-07-30

### Patch Changes

- 3434ad1: Update DatePicker styling to match new bifrost Button

  - Increased `border-radius` (from xs to s)
  - Slight `border-color` tweaks
  - Doesn't use theme color anymore

- 7b2eacc: Fix: Apparently, Chrome has changed its `<input autocomplete>` behaviour and now appears to only respect `autoComplete="off"`, so lets try that and pray to the browser gods that this will satisfy all of them for the forseeable future. #758

## 4.0.5 - 2024-06-21

### Patch Changes

- a2ec3e53: Fix: remove CSS references to non-existing variable `--bfc-alert-c-2` #755

## 4.0.4 - 2024-05-15

### Patch Changes

- 924c0b5f: Bump datepicker and date-fns versions !557

## 4.0.3 - 2024-04-23

### Patch Changes

- debaf8e1: Fix: Clicks on DatePicker icon should now do the same as clicking the rest of the input

## 4.0.2 - 2024-04-10

### Patch Changes

- 26deecde: Fix de-dupe issues by un-pinning `@intility/bifrost-react` version number and and moved to `devDependencies` and `peerDependencies`.
- Updated dependencies [79b9ab5d]
  - @intility/bifrost-react@4.0.2

## 4.0.1 - 2024-04-05

### Patch Changes

- 611f82ca: Removed unnecessary files from npm package output.
- Updated dependencies [611f82ca]
  - @intility/bifrost-react@4.0.1

## 4.0.0 - 2024-04-03 (first release, previously part of @intility/bifrost-react)

### Minor Changes

- dad94ad9: Fix: include `@types/react-datepicker` in dependencies
  Update styling, and update CSS with support for `holidays` prop
- 62b02461: Include JSDoc comments in typescript definition output
- 6b355639: New styling for inputs, now always outlined. Removed `variant` prop from `<Input>`.

### Patch Changes

- 217c8741: Named export for Select and DatePicker
- bde2974b: Fix: dynamic viewport height `dvh` for supporting browsers, since `vh` does not account for browsers that hide/show toolbars (with fallback to `vh`) #733
- a903f282: Fix: export typescript types used in react components
- e410a910: New base color values for light mode #711
- ea861dbc: Update lint config, add displayName for components
- 165904af: Use deep imports from @intility/bifrost-react
