@ctlyst.id/voila-ui 1.2.2 → 1.2.3
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,5 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import * as Select from '@radix-ui/react-select';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
export interface OptionType {
|
|
4
4
|
label: string;
|
|
5
5
|
value: string;
|
|
@@ -11,5 +11,5 @@ export interface BaseSelectProps extends SelectRootProps {
|
|
|
11
11
|
position?: 'item-aligned' | 'popper';
|
|
12
12
|
'data-test-id'?: string;
|
|
13
13
|
}
|
|
14
|
-
declare const BaseSelect:
|
|
14
|
+
declare const BaseSelect: import("react").ForwardRefExoticComponent<BaseSelectProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
15
15
|
export default BaseSelect;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ElementType, ImgHTMLAttributes } from 'react';
|
|
1
|
+
import type { ElementType, ImgHTMLAttributes, ReactElement } from 'react';
|
|
2
2
|
import type { ImageRecipe } from './image.css';
|
|
3
3
|
type ImageHTMLAttributes = Omit<ImgHTMLAttributes<HTMLImageElement>, 'as' | 'src' | 'width' | 'height' | 'loading' | 'fallback' | 'onError' | 'onLoad'>;
|
|
4
4
|
export type ImageProps = ImageHTMLAttributes & ImageRecipe & {
|
|
@@ -9,9 +9,9 @@ export type ImageProps = ImageHTMLAttributes & ImageRecipe & {
|
|
|
9
9
|
height?: string | number;
|
|
10
10
|
isLoading?: boolean;
|
|
11
11
|
loading?: 'lazy' | 'eager';
|
|
12
|
-
fallback?:
|
|
13
|
-
onLoad?:
|
|
14
|
-
onError?:
|
|
12
|
+
fallback?: ReactElement;
|
|
13
|
+
onLoad?: ImgHTMLAttributes<HTMLImageElement>['onLoad'];
|
|
14
|
+
onError?: ImgHTMLAttributes<HTMLImageElement>['onError'];
|
|
15
15
|
'data-test-id'?: string;
|
|
16
16
|
};
|
|
17
17
|
declare const Image: import("react").ForwardRefExoticComponent<ImageHTMLAttributes & {
|
|
@@ -24,9 +24,9 @@ declare const Image: import("react").ForwardRefExoticComponent<ImageHTMLAttribut
|
|
|
24
24
|
height?: string | number | undefined;
|
|
25
25
|
isLoading?: boolean | undefined;
|
|
26
26
|
loading?: "lazy" | "eager" | undefined;
|
|
27
|
-
fallback?:
|
|
28
|
-
onLoad?:
|
|
29
|
-
onError?:
|
|
27
|
+
fallback?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
28
|
+
onLoad?: ImgHTMLAttributes<HTMLImageElement>['onLoad'];
|
|
29
|
+
onError?: ImgHTMLAttributes<HTMLImageElement>['onError'];
|
|
30
30
|
'data-test-id'?: string | undefined;
|
|
31
31
|
} & {
|
|
32
32
|
children?: import("react").ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
2
|
import type { ButtonRecipe } from '../../../button/button.css';
|
|
3
3
|
export type UseRipple = ButtonRecipe & {
|
|
4
|
-
ref:
|
|
4
|
+
ref: RefObject<any>;
|
|
5
5
|
};
|
|
6
6
|
declare const useRipple: ({ ref, colorScheme }: UseRipple) => JSX.Element[];
|
|
7
7
|
export default useRipple;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ctlyst.id/voila-ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "UI library for voila user facing library.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"type-check": "tsc --emitDeclarationOnly"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@ctlyst.id/icons": "^1.0.
|
|
41
|
-
"@ctlyst.id/utils": "^1.0.
|
|
40
|
+
"@ctlyst.id/icons": "^1.0.3",
|
|
41
|
+
"@ctlyst.id/utils": "^1.0.3",
|
|
42
42
|
"@radix-ui/react-checkbox": "^1.0.3",
|
|
43
43
|
"@radix-ui/react-dialog": "^1.0.3",
|
|
44
44
|
"@radix-ui/react-portal": "^1.0.1",
|
|
@@ -46,17 +46,17 @@
|
|
|
46
46
|
"@radix-ui/react-switch": "^1.0.1",
|
|
47
47
|
"@radix-ui/react-tooltip": "^1.0.4",
|
|
48
48
|
"@use-gesture/react": "^10.2.24",
|
|
49
|
+
"@vanilla-extract/css": "^1.9.4",
|
|
50
|
+
"@vanilla-extract/css-utils": "^0.1.3",
|
|
51
|
+
"@vanilla-extract/dynamic": "^2.0.3",
|
|
52
|
+
"@vanilla-extract/recipes": "^0.3.0",
|
|
53
|
+
"@vanilla-extract/sprinkles": "^1.5.1",
|
|
49
54
|
"clsx": "^1.2.1",
|
|
50
55
|
"rainbow-sprinkles": "^0.15.2",
|
|
51
56
|
"react-transition-group": "^4.4.5",
|
|
52
57
|
"tslib": "^2.5.0"
|
|
53
58
|
},
|
|
54
59
|
"peerDependencies": {
|
|
55
|
-
"@vanilla-extract/css": "^1.9.4",
|
|
56
|
-
"@vanilla-extract/css-utils": "^0.1.3",
|
|
57
|
-
"@vanilla-extract/dynamic": "^2.0.3",
|
|
58
|
-
"@vanilla-extract/recipes": "^0.3.0",
|
|
59
|
-
"@vanilla-extract/sprinkles": "^1.5.1",
|
|
60
60
|
"react": "^18.2.0",
|
|
61
61
|
"react-dom": "^18.2.0"
|
|
62
62
|
},
|
|
@@ -66,7 +66,6 @@
|
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@babel/core": "^7.20.12",
|
|
68
68
|
"@babel/preset-typescript": "^7.18.6",
|
|
69
|
-
"@ctlyst.id/icons": "^0.1.2",
|
|
70
69
|
"@testing-library/jest-dom": "^5.16.5",
|
|
71
70
|
"@testing-library/react": "^13.4.0",
|
|
72
71
|
"@types/jest": "^29.4.0",
|
|
@@ -79,5 +78,5 @@
|
|
|
79
78
|
"jest-environment-jsdom": "29.4.1",
|
|
80
79
|
"polished": "^4.2.2"
|
|
81
80
|
},
|
|
82
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "f9d7dafeb6aee9d66ae6e3a8e3fcf5c1cda7cc7f"
|
|
83
82
|
}
|