@cdx-ui/primitives 0.0.1-beta.106 → 0.0.1-beta.108
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.
|
@@ -2,18 +2,22 @@ import type { PressableProps } from 'react-native';
|
|
|
2
2
|
export interface InterfaceButtonProps extends PressableProps {
|
|
3
3
|
/**
|
|
4
4
|
* If true, the button will be in hovered state.
|
|
5
|
+
* @internal
|
|
5
6
|
*/
|
|
6
7
|
isHovered?: boolean;
|
|
7
8
|
/**
|
|
8
9
|
* If true, the button will be in pressed state.
|
|
10
|
+
* @internal
|
|
9
11
|
*/
|
|
10
12
|
isActive?: boolean;
|
|
11
13
|
/**
|
|
12
14
|
* If true, the button will be focused.
|
|
15
|
+
* @internal
|
|
13
16
|
*/
|
|
14
17
|
isFocused?: boolean;
|
|
15
18
|
/**
|
|
16
19
|
* If true, the button focus ring will be visible.
|
|
20
|
+
* @internal
|
|
17
21
|
*/
|
|
18
22
|
isFocusVisible?: boolean;
|
|
19
23
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/button/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC1D
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/button/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC1D;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,MAAM,YAAY,GAAG,oBAAoB,CAAC"}
|
|
@@ -19,9 +19,15 @@ export interface IInputFieldProps {
|
|
|
19
19
|
isInvalid?: boolean;
|
|
20
20
|
/** If true, the input will be disabled. */
|
|
21
21
|
isDisabled?: boolean;
|
|
22
|
-
/**
|
|
22
|
+
/**
|
|
23
|
+
* If true, the input will be hovered.
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
23
26
|
isHovered?: boolean;
|
|
24
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* If true, the input will be focused.
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
25
31
|
isFocused?: boolean;
|
|
26
32
|
/** Sets `aria-required="true"` on web when passed in form control. */
|
|
27
33
|
isRequired?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/input/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9D,MAAM,WAAW,YAAY;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;IAClE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK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ta.
|
|
3
|
+
"version": "0.0.1-beta.108",
|
|
4
4
|
"main": "lib/commonjs/index.js",
|
|
5
5
|
"module": "lib/module/index.js",
|
|
6
6
|
"react-native": "src/index.ts",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@react-stately/checkbox": "3.7.4",
|
|
61
61
|
"@react-stately/radio": "3.12.0",
|
|
62
62
|
"@react-stately/toggle": "3.9.4",
|
|
63
|
-
"@cdx-ui/utils": "0.0.1-beta.
|
|
63
|
+
"@cdx-ui/utils": "0.0.1-beta.108"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@types/react": "19.1.17",
|
package/src/button/types.ts
CHANGED
|
@@ -3,18 +3,22 @@ import type { PressableProps } from 'react-native';
|
|
|
3
3
|
export interface InterfaceButtonProps extends PressableProps {
|
|
4
4
|
/**
|
|
5
5
|
* If true, the button will be in hovered state.
|
|
6
|
+
* @internal
|
|
6
7
|
*/
|
|
7
8
|
isHovered?: boolean;
|
|
8
9
|
/**
|
|
9
10
|
* If true, the button will be in pressed state.
|
|
11
|
+
* @internal
|
|
10
12
|
*/
|
|
11
13
|
isActive?: boolean;
|
|
12
14
|
/**
|
|
13
15
|
* If true, the button will be focused.
|
|
16
|
+
* @internal
|
|
14
17
|
*/
|
|
15
18
|
isFocused?: boolean;
|
|
16
19
|
/**
|
|
17
20
|
* If true, the button focus ring will be visible.
|
|
21
|
+
* @internal
|
|
18
22
|
*/
|
|
19
23
|
isFocusVisible?: boolean;
|
|
20
24
|
/**
|
package/src/input/types.ts
CHANGED
|
@@ -21,9 +21,15 @@ export interface IInputFieldProps {
|
|
|
21
21
|
isInvalid?: boolean;
|
|
22
22
|
/** If true, the input will be disabled. */
|
|
23
23
|
isDisabled?: boolean;
|
|
24
|
-
/**
|
|
24
|
+
/**
|
|
25
|
+
* If true, the input will be hovered.
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
25
28
|
isHovered?: boolean;
|
|
26
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* If true, the input will be focused.
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
27
33
|
isFocused?: boolean;
|
|
28
34
|
/** Sets `aria-required="true"` on web when passed in form control. */
|
|
29
35
|
isRequired?: boolean;
|