@dxos/react-input 0.6.6 → 0.6.7-staging.1976059
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/types/src/InputMeta.d.ts +5 -5
- package/dist/types/src/InputMeta.d.ts.map +1 -1
- package/dist/types/src/PinInput.d.ts +1 -1
- package/dist/types/src/PinInput.d.ts.map +1 -1
- package/dist/types/src/Root.d.ts +2 -2
- package/dist/types/src/Root.d.ts.map +1 -1
- package/dist/types/src/TextArea.d.ts +1 -1
- package/dist/types/src/TextArea.d.ts.map +1 -1
- package/dist/types/src/TextInput.d.ts +1 -1
- package/dist/types/src/TextInput.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -3,23 +3,23 @@ import React, { type ComponentPropsWithRef } from 'react';
|
|
|
3
3
|
type LabelProps = ComponentPropsWithRef<typeof Primitive.label> & {
|
|
4
4
|
asChild?: boolean;
|
|
5
5
|
};
|
|
6
|
-
declare const Label: React.ForwardRefExoticComponent<
|
|
6
|
+
declare const Label: React.ForwardRefExoticComponent<Omit<LabelProps, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
7
7
|
type DescriptionProps = Omit<ComponentPropsWithRef<typeof Primitive.span>, 'id'> & {
|
|
8
8
|
asChild?: boolean;
|
|
9
9
|
};
|
|
10
|
-
declare const Description: React.ForwardRefExoticComponent<
|
|
10
|
+
declare const Description: React.ForwardRefExoticComponent<Omit<DescriptionProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
11
11
|
type ErrorMessageProps = Omit<ComponentPropsWithRef<typeof Primitive.span>, 'id'> & {
|
|
12
12
|
asChild?: boolean;
|
|
13
13
|
};
|
|
14
|
-
declare const ErrorMessage: React.ForwardRefExoticComponent<
|
|
14
|
+
declare const ErrorMessage: React.ForwardRefExoticComponent<Omit<ErrorMessageProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
15
15
|
type ValidationProps = Omit<ComponentPropsWithRef<typeof Primitive.span>, 'id'> & {
|
|
16
16
|
asChild?: boolean;
|
|
17
17
|
};
|
|
18
|
-
declare const Validation: React.ForwardRefExoticComponent<
|
|
18
|
+
declare const Validation: React.ForwardRefExoticComponent<Omit<ValidationProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
19
19
|
type DescriptionAndValidationProps = ComponentPropsWithRef<typeof Primitive.p> & {
|
|
20
20
|
asChild?: boolean;
|
|
21
21
|
};
|
|
22
|
-
declare const DescriptionAndValidation: React.ForwardRefExoticComponent<
|
|
22
|
+
declare const DescriptionAndValidation: React.ForwardRefExoticComponent<Omit<DescriptionAndValidationProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
23
23
|
export { Label, Validation, Description, DescriptionAndValidation, ErrorMessage };
|
|
24
24
|
export type { LabelProps, ValidationProps, DescriptionProps, DescriptionAndValidationProps, ErrorMessageProps };
|
|
25
25
|
//# sourceMappingURL=InputMeta.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputMeta.d.ts","sourceRoot":"","sources":["../../../src/InputMeta.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAc,MAAM,OAAO,CAAC;AAItE,KAAK,UAAU,GAAG,qBAAqB,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAExF,QAAA,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"InputMeta.d.ts","sourceRoot":"","sources":["../../../src/InputMeta.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAc,MAAM,OAAO,CAAC;AAItE,KAAK,UAAU,GAAG,qBAAqB,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAExF,QAAA,MAAM,KAAK,kGAUV,CAAC;AAEF,KAAK,gBAAgB,GAAG,IAAI,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEzG,QAAA,MAAM,WAAW,uGAUhB,CAAC;AAEF,KAAK,iBAAiB,GAAG,IAAI,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAE1G,QAAA,MAAM,YAAY,wGAUjB,CAAC;AAEF,KAAK,eAAe,GAAG,IAAI,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAExG,QAAA,MAAM,UAAU,sGAef,CAAC;AAEF,KAAK,6BAA6B,GAAG,qBAAqB,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEvG,QAAA,MAAM,wBAAwB,yHAU7B,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,wBAAwB,EAAE,YAAY,EAAE,CAAC;AAElF,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,gBAAgB,EAAE,6BAA6B,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -10,7 +10,7 @@ type PinInputProps = Omit<ComponentPropsWithRef<typeof CodeInput>, 'id' | 'class
|
|
|
10
10
|
segmentPadding?: string;
|
|
11
11
|
segmentHeight?: string;
|
|
12
12
|
};
|
|
13
|
-
declare const PinInput: React.ForwardRefExoticComponent<
|
|
13
|
+
declare const PinInput: React.ForwardRefExoticComponent<Omit<PinInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
14
14
|
export { PinInput };
|
|
15
15
|
export type { PinInputProps };
|
|
16
16
|
//# sourceMappingURL=PinInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PinInput.d.ts","sourceRoot":"","sources":["../../../src/PinInput.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAsB,MAAM,KAAK,CAAC;AACpD,OAAO,KAAK,EAAE,EAAuB,KAAK,qBAAqB,EAA2B,MAAM,OAAO,CAAC;AAIxG,OAAO,EAAsD,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AAE1F,KAAK,aAAa,GAAG,IAAI,CACvB,qBAAqB,CAAC,OAAO,SAAS,CAAC,EACvC,IAAI,GAAG,WAAW,GAAG,UAAU,GAAG,eAAe,CAClD,GAAG;IACF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,iBAAiB,EAAE,OAAO,CAAA;KAAE,KAAK,MAAM,CAAC;IAC5F,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"PinInput.d.ts","sourceRoot":"","sources":["../../../src/PinInput.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAsB,MAAM,KAAK,CAAC;AACpD,OAAO,KAAK,EAAE,EAAuB,KAAK,qBAAqB,EAA2B,MAAM,OAAO,CAAC;AAIxG,OAAO,EAAsD,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AAE1F,KAAK,aAAa,GAAG,IAAI,CACvB,qBAAqB,CAAC,OAAO,SAAS,CAAC,EACvC,IAAI,GAAG,WAAW,GAAG,UAAU,GAAG,eAAe,CAClD,GAAG;IACF,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,iBAAiB,EAAE,OAAO,CAAA;KAAE,KAAK,MAAM,CAAC;IAC5F,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,QAAQ,qGAsDb,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC;AAEpB,YAAY,EAAE,aAAa,EAAE,CAAC"}
|
package/dist/types/src/Root.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Scope } from '@radix-ui/react-context';
|
|
2
|
-
import { type PropsWithChildren } from 'react';
|
|
2
|
+
import React, { type PropsWithChildren } from 'react';
|
|
3
3
|
declare const INPUT_NAME = "Input";
|
|
4
4
|
type Valence = 'success' | 'info' | 'warning' | 'error' | 'neutral';
|
|
5
5
|
type InputScopedProps<P> = P & {
|
|
@@ -20,7 +20,7 @@ type InputContextValue = {
|
|
|
20
20
|
};
|
|
21
21
|
declare const useInputContext: (consumerName: string, scope: Scope<InputContextValue | undefined>) => InputContextValue;
|
|
22
22
|
declare const InputRoot: {
|
|
23
|
-
({ __inputScope, id: propsId, descriptionId: propsDescriptionId, errorMessageId: propsErrorMessageId, validationValence, children, }: InputScopedProps<InputRootProps>): JSX.Element;
|
|
23
|
+
({ __inputScope, id: propsId, descriptionId: propsDescriptionId, errorMessageId: propsErrorMessageId, validationValence, children, }: InputScopedProps<InputRootProps>): React.JSX.Element;
|
|
24
24
|
displayName: string;
|
|
25
25
|
};
|
|
26
26
|
export { InputRoot, InputRoot as Root, createInputScope, useInputContext, INPUT_NAME };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Root.d.ts","sourceRoot":"","sources":["../../../src/Root.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAsB,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACzE,
|
|
1
|
+
{"version":3,"file":"Root.d.ts","sourceRoot":"","sources":["../../../src/Root.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAsB,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAItD,QAAA,MAAM,UAAU,UAAU,CAAC;AAE3B,KAAK,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAEpE,KAAK,gBAAgB,CAAC,CAAC,IAAI,CAAC,GAAG;IAAE,YAAY,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAExD,KAAK,cAAc,GAAG,iBAAiB,CAAC;IACtC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC,CAAC;AAEH,QAAA,MAA2B,gBAAgB,+CAAsC,CAAC;AAElF,KAAK,iBAAiB,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,QAAA,MAAsB,eAAe,0FAAqD,CAAC;AAE3F,QAAA,MAAM,SAAS;0IAOZ,gBAAgB,CAAC,cAAc,CAAC;;CASlC,CAAC;AAIF,OAAO,EAAE,SAAS,EAAE,SAAS,IAAI,IAAI,EAAE,gBAAgB,EAAE,eAAe,EAAE,UAAU,EAAE,CAAC;AAEvF,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { type ComponentPropsWithRef } from 'react';
|
|
2
2
|
type TextAreaProps = Omit<ComponentPropsWithRef<'textarea'>, 'id'>;
|
|
3
|
-
declare const TextArea: React.ForwardRefExoticComponent<
|
|
3
|
+
declare const TextArea: React.ForwardRefExoticComponent<Omit<TextAreaProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
4
4
|
export { TextArea };
|
|
5
5
|
export type { TextAreaProps };
|
|
6
6
|
//# sourceMappingURL=TextArea.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/TextArea.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAc,MAAM,OAAO,CAAC;AAItE,KAAK,aAAa,GAAG,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC,CAAC;AAEnE,QAAA,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../src/TextArea.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAc,MAAM,OAAO,CAAC;AAItE,KAAK,aAAa,GAAG,IAAI,CAAC,qBAAqB,CAAC,UAAU,CAAC,EAAE,IAAI,CAAC,CAAC;AAEnE,QAAA,MAAM,QAAQ,wGAkBb,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,CAAC;AAEpB,YAAY,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Primitive } from '@radix-ui/react-primitive';
|
|
2
2
|
import React, { type ComponentPropsWithRef } from 'react';
|
|
3
3
|
type TextInputProps = Omit<ComponentPropsWithRef<typeof Primitive.input>, 'id'>;
|
|
4
|
-
declare const TextInput: React.ForwardRefExoticComponent<
|
|
4
|
+
declare const TextInput: React.ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
5
5
|
export { TextInput };
|
|
6
6
|
export type { TextInputProps };
|
|
7
7
|
//# sourceMappingURL=TextInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../src/TextInput.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAc,MAAM,OAAO,CAAC;AAItE,KAAK,cAAc,GAAG,IAAI,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC;AAEhF,QAAA,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../src/TextInput.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,KAAK,EAAE,EAAE,KAAK,qBAAqB,EAAc,MAAM,OAAO,CAAC;AAItE,KAAK,cAAc,GAAG,IAAI,CAAC,qBAAqB,CAAC,OAAO,SAAS,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,CAAC;AAEhF,QAAA,MAAM,SAAS,sGAkBd,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC;AAErB,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/react-input",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7-staging.1976059",
|
|
4
4
|
"description": "Input primitive components for React.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"@radix-ui/react-use-controllable-state": "^1.0.0",
|
|
24
24
|
"lodash.omit": "^4.5.0",
|
|
25
25
|
"rci": "^0.1.0",
|
|
26
|
-
"@dxos/react-hooks": "0.6.
|
|
26
|
+
"@dxos/react-hooks": "0.6.7-staging.1976059"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@types/react": "
|
|
30
|
-
"@types/react-dom": "
|
|
29
|
+
"@types/react": "~18.2.0",
|
|
30
|
+
"@types/react-dom": "~18.2.0",
|
|
31
31
|
"react": "~18.2.0",
|
|
32
32
|
"react-dom": "~18.2.0"
|
|
33
33
|
},
|