@vygruppen/spor-react 12.4.6 → 12.4.7
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/.turbo/turbo-build.log +12 -12
- package/.turbo/turbo-postinstall.log +1 -1
- package/CHANGELOG.md +7 -0
- package/dist/index.d.mts +12 -7
- package/dist/index.d.ts +12 -7
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/datepicker/TimePicker.tsx +5 -0
- package/src/loader/ProgressBar.tsx +3 -3
- package/src/util/externals.tsx +1 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vygruppen/spor-react",
|
3
|
-
"version": "12.4.
|
3
|
+
"version": "12.4.7",
|
4
4
|
"exports": {
|
5
5
|
".": {
|
6
6
|
"types": "./dist/index.d.ts",
|
@@ -66,7 +66,7 @@
|
|
66
66
|
"vitest": "^0.26.3",
|
67
67
|
"vitest-axe": "^0.1.0",
|
68
68
|
"vitest-canvas-mock": "^0.2.2",
|
69
|
-
"@vygruppen/eslint-config": "1.1.
|
69
|
+
"@vygruppen/eslint-config": "1.1.1",
|
70
70
|
"@vygruppen/tsconfig": "0.1.0"
|
71
71
|
},
|
72
72
|
"peerDependencies": {
|
@@ -45,6 +45,11 @@ type TimePickerProps = Omit<BoxProps, "defaultValue" | "onChange"> &
|
|
45
45
|
minuteInterval?: number;
|
46
46
|
/** Whether or not the field is disabled */
|
47
47
|
disabled?: boolean;
|
48
|
+
/**
|
49
|
+
* The variant of the time picker.
|
50
|
+
* Defaults to "core".
|
51
|
+
*/
|
52
|
+
variant?: "core" | "floating" | "ghost";
|
48
53
|
};
|
49
54
|
/** A time picker component.
|
50
55
|
*
|
@@ -16,7 +16,7 @@ type ProgressBarVariants = RecipeVariantProps<typeof progressBarRecipe>;
|
|
16
16
|
export type ProgressBarProps = BoxProps &
|
17
17
|
UseProgressProps &
|
18
18
|
PropsWithChildren<ProgressBarVariants> & {
|
19
|
-
children
|
19
|
+
children?: React.ReactNode;
|
20
20
|
/** The height of the progress bar.
|
21
21
|
* Defaults to .5rem
|
22
22
|
**/
|
@@ -28,12 +28,12 @@ export type ProgressBarProps = BoxProps &
|
|
28
28
|
width?: BoxProps["width"];
|
29
29
|
|
30
30
|
/** Pass if no label is passed to the label */
|
31
|
-
"aria-label"
|
31
|
+
"aria-label"?: string;
|
32
32
|
/** Optional text shown below the loader.
|
33
33
|
*
|
34
34
|
* If you pass an array of strings, the text will rotate every 5 seconds. If you want to change the delay, pass the delay in milliseconds to the `labelRotationDelay` prop.
|
35
35
|
*/
|
36
|
-
label
|
36
|
+
label?: string | string[];
|
37
37
|
/** The number of milliseconds a label is shown, if an array of strings is passed to the `label` prop.
|
38
38
|
*
|
39
39
|
* Defaults to 5000 (5 seconds).
|