diff --git a/CHANGELOG.md b/CHANGELOG.md index e259171..45e59ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Change history for stripes-types -## 3.0.0 IN PROGRESS +## [3.0.1](https://github.com/folio-org/stripes-types/tree/v3.0.1) (2025-02-24) + +* [[STTYPES-20](https://folio-org.atlassian.net/browse/STTYPES-20)] Add missing `Timepicker` props. + +## [3.0.0](https://github.com/folio-org/stripes-types/tree/v3.0.0) (2025-02-24) * [[STTYPES-18](https://folio-org.atlassian.net/browse/STTYPES-18)] Upgrade `@folio/stripes-*` dependencies. * [[STTYPES-19](https://folio-org.atlassian.net/browse/STTYPES-19)] Upgrade `react-intl` to `^7.0.0`. diff --git a/components/lib/Timepicker/Timepicker.d.ts b/components/lib/Timepicker/Timepicker.d.ts index bf823de..3e476d8 100644 --- a/components/lib/Timepicker/Timepicker.d.ts +++ b/components/lib/Timepicker/Timepicker.d.ts @@ -1,8 +1,11 @@ import { AriaAttributes, ComponentType, ReactNode, Ref } from 'react'; import { IntlShape } from 'react-intl'; import { PopperModifiers, PopperPlacement } from '../Popper'; +import { TextFieldProps } from '../TextField'; -export interface TimepickerProps extends AriaAttributes { +export interface TimepickerProps + extends AriaAttributes, + Omit, 'inputRef' | 'onChange'> { /** If the field should auto-focus on mount */ autoFocus?: boolean; /** Disables the input field */ @@ -20,7 +23,9 @@ export interface TimepickerProps extends AriaAttributes { /** Popper modifiers */ modifiers?: PopperModifiers; /** Fired anytime internal state changes */ - onChange?: (e: Event, standardizedTime?: string) => void; + onChange?: (e: Event, standardizedTime: string, inputValue: string) => void; + /** If the user-visible (formatted) output should be passed on change events, or the standard HH:MM:00Z */ + outputBackendValue?: boolean; /** Format a UTC value into the specified timezone */ outputFormatter?: (props: { value: string | undefined; @@ -47,6 +52,8 @@ export interface TimepickerProps extends AriaAttributes { showTimepicker?: boolean; /** Override the default timezone */ timeZone?: string; + /** Outputs values to onChange as seen directly in the input box */ + useInput?: boolean; /** Render to the global overlay, if the dropdown may be cut off due to some containing elements's overflow */ usePortal?: boolean; /** The field's value */ diff --git a/package.json b/package.json index 4735bc4..eb61305 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@folio/stripes-types", - "version": "3.0.0", + "version": "3.0.1", "description": "Typings for the Stripes framework", "license": "Apache-2.0", "repository": "folio-org/stripes-types",