@apolitical/component-library 2.3.0-beta.3 → 2.3.0-beta.5
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.
- package/general/time-to-complete/time-to-complete.d.ts +3 -1
- package/helpers/intl.d.ts +2 -0
- package/index.js +13 -13
- package/index.mjs +561 -537
- package/package.json +1 -1
- package/style.css +1 -1
- package/styles/base/buttons/_button-wrapper.scss +1 -0
- package/text/icon-bulleted-list/icon-bulleted-list.d.ts +1 -1
|
@@ -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;
|