Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
11 changes: 9 additions & 2 deletions components/lib/Timepicker/Timepicker.d.ts
Original file line number Diff line number Diff line change
@@ -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<TextFieldProps<string>, 'inputRef' | 'onChange'> {
/** If the field should auto-focus on mount */
autoFocus?: boolean;
/** Disables the input field */
Expand All @@ -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;
Expand All @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading