@apolitical/component-library 2.3.0-beta.1 → 2.3.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,8 @@
1
1
  interface Props {
2
2
  /** The time to display, in minutes */
3
3
  time: number;
4
+ /** An optional number to add to `time`, showing a range rather than a specific number, like `1h 45m - 2h` */
5
+ rangeTime?: number;
4
6
  /** Text to show before the time */
5
7
  prependedText?: string;
6
8
  /** Text to show after the time */
@@ -8,5 +10,5 @@ interface Props {
8
10
  /** Additional classes */
9
11
  className?: string;
10
12
  }
11
- declare const TimeToComplete: ({ time, prependedText, appendedText, className }: Props) => import("react/jsx-runtime").JSX.Element | null;
13
+ declare const TimeToComplete: ({ time, rangeTime, prependedText, appendedText, className, }: Props) => import("react/jsx-runtime").JSX.Element | null;
12
14
  export default TimeToComplete;
package/helpers/intl.d.ts CHANGED
@@ -232,6 +232,8 @@ export declare const checkIntlPathExists: (path: string, language?: {
232
232
  timeToComplete_hours_short: string;
233
233
  timeToComplete_minutes: string;
234
234
  timeToComplete_minutes_short: string;
235
+ timeToComplete_range: string;
236
+ timeToComplete_range_aria: string;
235
237
  tooltip_loading: string;
236
238
  return_to_nav_button: string;
237
239
  cookieBanner_title: string;
package/index.d.ts CHANGED
@@ -20,4 +20,4 @@ export * from './text';
20
20
  export * from './user';
21
21
  export * from './helpers/cases';
22
22
  export * from './helpers/prerender';
23
- export { checkIntlPathExists, generateCssIcon, getLongDate, getShortDate, passwordValidator, } from './helpers';
23
+ export { basicReducer, checkIntlPathExists, generateCssIcon, getLongDate, getShortDate, passwordValidator, } from './helpers';