@jobber/components 8.1.0 → 8.2.0
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/dist/InputNumber/InputNumber.d.ts +1 -12
- package/dist/InputNumber/{InputNumber.rebuilt.types.d.ts → InputNumber.types.d.ts} +2 -3
- package/dist/InputNumber/index.cjs +9 -5076
- package/dist/InputNumber/index.d.ts +2 -11
- package/dist/InputNumber/index.mjs +8 -5079
- package/dist/InputNumber-cjs.js +5004 -0
- package/dist/InputNumber-es.js +5002 -0
- package/dist/docs/Countdown/Countdown.md +0 -1
- package/dist/docs/InputNumber/InputNumber.md +40 -36
- package/dist/docs/index.md +0 -1
- package/dist/index.cjs +2 -4
- package/dist/index.d.mts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.mjs +1 -2
- package/dist/styles.css +47 -47
- package/dist/utils/meta/meta.json +0 -1
- package/package.json +2 -7
- package/FormatTime.d.ts +0 -1
- package/FormatTime.js +0 -17
- package/dist/FormatTime/FormatTime.d.ts +0 -15
- package/dist/FormatTime/index.cjs +0 -8
- package/dist/FormatTime/index.d.ts +0 -1
- package/dist/FormatTime/index.mjs +0 -2
- package/dist/FormatTime-cjs.js +0 -24
- package/dist/FormatTime-es.js +0 -22
- package/dist/InputNumber/InputNumber.rebuilt.d.ts +0 -7
- package/dist/docs/FormatTime/FormatTime.md +0 -32
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type {
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated Use the v2 InputNumber component instead (version={2}).
|
|
5
|
-
*/
|
|
6
|
-
export interface InputNumberProps extends Omit<CommonFormFieldProps, "version">, Pick<FormFieldProps, "maxLength" | "autocomplete" | "max" | "min" | "onEnter" | "onFocus" | "onBlur" | "inputRef" | "validations" | "readonly" | "defaultValue" | "keyboard" | "prefix" | "suffix"> {
|
|
7
|
-
readonly value?: number;
|
|
8
|
-
/**
|
|
9
|
-
* Experimental:
|
|
10
|
-
* Determine which version of the FormField to use.
|
|
11
|
-
*/
|
|
12
|
-
readonly version?: 1;
|
|
13
|
-
}
|
|
2
|
+
import type { InputNumberProps } from "./InputNumber.types";
|
|
14
3
|
export interface InputNumberRef {
|
|
15
4
|
blur(): void;
|
|
16
5
|
focus(): void;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
2
|
import type { FocusEvents, HTMLInputBaseProps, KeyboardEvents, MouseEvents, RebuiltInputCommonProps } from "../sharedHelpers/types";
|
|
3
|
-
export
|
|
4
|
-
export interface InputNumberRebuiltProps extends HTMLInputBaseProps, FocusEvents<HTMLInputElement>, KeyboardEvents<HTMLInputElement>, MouseEvents<HTMLInputElement>, Omit<RebuiltInputCommonProps, "clearable" | "suffix" | "prefix"> {
|
|
3
|
+
export interface InputNumberProps extends HTMLInputBaseProps, FocusEvents<HTMLInputElement>, KeyboardEvents<HTMLInputElement>, MouseEvents<HTMLInputElement>, Omit<RebuiltInputCommonProps, "clearable" | "suffix" | "prefix" | "version"> {
|
|
5
4
|
readonly defaultValue?: number;
|
|
6
5
|
readonly formatOptions?: Intl.NumberFormatOptions;
|
|
7
6
|
readonly maxValue?: number;
|
|
@@ -15,7 +14,7 @@ export interface InputNumberRebuiltProps extends HTMLInputBaseProps, FocusEvents
|
|
|
15
14
|
readonly showMiniLabel?: boolean;
|
|
16
15
|
readonly value?: number;
|
|
17
16
|
}
|
|
18
|
-
export interface
|
|
17
|
+
export interface InputNumberRef {
|
|
19
18
|
focus: () => void;
|
|
20
19
|
blur: () => void;
|
|
21
20
|
}
|