@dxos/react-input 0.8.1 → 0.8.2-main.10c050d

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,11 +1,13 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
 
3
3
  // packages/ui/primitives/react-input/src/InputMeta.tsx
4
+ import { useSignals as _useSignals2 } from "@preact-signals/safe-react/tracking";
4
5
  import { Primitive } from "@radix-ui/react-primitive";
5
6
  import { Slot } from "@radix-ui/react-slot";
6
7
  import React2, { forwardRef } from "react";
7
8
 
8
9
  // packages/ui/primitives/react-input/src/Root.tsx
10
+ import { useSignals as _useSignals } from "@preact-signals/safe-react/tracking";
9
11
  import { createContextScope } from "@radix-ui/react-context";
10
12
  import React from "react";
11
13
  import { useId } from "@dxos/react-hooks";
@@ -13,152 +15,200 @@ var INPUT_NAME = "Input";
13
15
  var [createInputContext, createInputScope] = createContextScope(INPUT_NAME, []);
14
16
  var [InputProvider, useInputContext] = createInputContext(INPUT_NAME);
15
17
  var InputRoot = ({ __inputScope, id: propsId, descriptionId: propsDescriptionId, errorMessageId: propsErrorMessageId, validationValence = "neutral", children }) => {
16
- const id = useId("input", propsId);
17
- const descriptionId = useId("input__description", propsDescriptionId);
18
- const errorMessageId = useId("input__error-message", propsErrorMessageId);
19
- return /* @__PURE__ */ React.createElement(InputProvider, {
20
- id,
21
- descriptionId,
22
- errorMessageId,
23
- validationValence,
24
- scope: __inputScope
25
- }, children);
18
+ var _effect = _useSignals();
19
+ try {
20
+ const id = useId("input", propsId);
21
+ const descriptionId = useId("input__description", propsDescriptionId);
22
+ const errorMessageId = useId("input__error-message", propsErrorMessageId);
23
+ return /* @__PURE__ */ React.createElement(InputProvider, {
24
+ id,
25
+ descriptionId,
26
+ errorMessageId,
27
+ validationValence,
28
+ scope: __inputScope
29
+ }, children);
30
+ } finally {
31
+ _effect.f();
32
+ }
26
33
  };
27
34
  InputRoot.displayName = INPUT_NAME;
28
35
 
29
36
  // packages/ui/primitives/react-input/src/InputMeta.tsx
30
37
  var Label = /* @__PURE__ */ forwardRef(({ __inputScope, asChild, children, ...props }, forwardedRef) => {
31
- const { id } = useInputContext(INPUT_NAME, __inputScope);
32
- const Root = asChild ? Slot : Primitive.label;
33
- return /* @__PURE__ */ React2.createElement(Root, {
34
- ...props,
35
- htmlFor: id,
36
- ref: forwardedRef
37
- }, children);
38
+ var _effect = _useSignals2();
39
+ try {
40
+ const { id } = useInputContext(INPUT_NAME, __inputScope);
41
+ const Root = asChild ? Slot : Primitive.label;
42
+ return /* @__PURE__ */ React2.createElement(Root, {
43
+ ...props,
44
+ htmlFor: id,
45
+ ref: forwardedRef
46
+ }, children);
47
+ } finally {
48
+ _effect.f();
49
+ }
38
50
  });
39
51
  var Description = /* @__PURE__ */ forwardRef(({ __inputScope, asChild, children, ...props }, forwardedRef) => {
40
- const { descriptionId, validationValence } = useInputContext(INPUT_NAME, __inputScope);
41
- const Root = asChild ? Slot : Primitive.span;
42
- return /* @__PURE__ */ React2.createElement(Root, {
43
- ...props,
44
- ...validationValence === "error" && {
45
- id: descriptionId
46
- },
47
- ref: forwardedRef
48
- }, children);
49
- });
50
- var ErrorMessage = /* @__PURE__ */ forwardRef(({ __inputScope, asChild, children, ...props }, forwardedRef) => {
51
- const { errorMessageId } = useInputContext(INPUT_NAME, __inputScope);
52
- const Root = asChild ? Slot : Primitive.span;
53
- return /* @__PURE__ */ React2.createElement(Root, {
54
- ...props,
55
- id: errorMessageId,
56
- ref: forwardedRef
57
- }, children);
58
- });
59
- var Validation = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
60
- const { __inputScope, asChild, children, ...otherProps } = props;
61
- const { validationValence } = useInputContext(INPUT_NAME, __inputScope);
62
- if (validationValence === "error") {
63
- return /* @__PURE__ */ React2.createElement(ErrorMessage, {
52
+ var _effect = _useSignals2();
53
+ try {
54
+ const { descriptionId, validationValence } = useInputContext(INPUT_NAME, __inputScope);
55
+ const Root = asChild ? Slot : Primitive.span;
56
+ return /* @__PURE__ */ React2.createElement(Root, {
64
57
  ...props,
58
+ ...validationValence === "error" && {
59
+ id: descriptionId
60
+ },
65
61
  ref: forwardedRef
66
- });
67
- } else {
62
+ }, children);
63
+ } finally {
64
+ _effect.f();
65
+ }
66
+ });
67
+ var ErrorMessage = /* @__PURE__ */ forwardRef(({ __inputScope, asChild, children, ...props }, forwardedRef) => {
68
+ var _effect = _useSignals2();
69
+ try {
70
+ const { errorMessageId } = useInputContext(INPUT_NAME, __inputScope);
68
71
  const Root = asChild ? Slot : Primitive.span;
69
72
  return /* @__PURE__ */ React2.createElement(Root, {
70
- ...otherProps,
73
+ ...props,
74
+ id: errorMessageId,
71
75
  ref: forwardedRef
72
76
  }, children);
77
+ } finally {
78
+ _effect.f();
79
+ }
80
+ });
81
+ var Validation = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
82
+ var _effect = _useSignals2();
83
+ try {
84
+ const { __inputScope, asChild, children, ...otherProps } = props;
85
+ const { validationValence } = useInputContext(INPUT_NAME, __inputScope);
86
+ if (validationValence === "error") {
87
+ return /* @__PURE__ */ React2.createElement(ErrorMessage, {
88
+ ...props,
89
+ ref: forwardedRef
90
+ });
91
+ } else {
92
+ const Root = asChild ? Slot : Primitive.span;
93
+ return /* @__PURE__ */ React2.createElement(Root, {
94
+ ...otherProps,
95
+ ref: forwardedRef
96
+ }, children);
97
+ }
98
+ } finally {
99
+ _effect.f();
73
100
  }
74
101
  });
75
102
  var DescriptionAndValidation = /* @__PURE__ */ forwardRef(({ __inputScope, asChild, children, ...props }, forwardedRef) => {
76
- const { descriptionId, validationValence } = useInputContext(INPUT_NAME, __inputScope);
77
- const Root = asChild ? Slot : Primitive.p;
78
- return /* @__PURE__ */ React2.createElement(Root, {
79
- ...props,
80
- ...validationValence !== "error" && {
81
- id: descriptionId
82
- },
83
- ref: forwardedRef
84
- }, children);
103
+ var _effect = _useSignals2();
104
+ try {
105
+ const { descriptionId, validationValence } = useInputContext(INPUT_NAME, __inputScope);
106
+ const Root = asChild ? Slot : Primitive.p;
107
+ return /* @__PURE__ */ React2.createElement(Root, {
108
+ ...props,
109
+ ...validationValence !== "error" && {
110
+ id: descriptionId
111
+ },
112
+ ref: forwardedRef
113
+ }, children);
114
+ } finally {
115
+ _effect.f();
116
+ }
85
117
  });
86
118
 
87
119
  // packages/ui/primitives/react-input/src/PinInput.tsx
120
+ import { useSignals as _useSignals3 } from "@preact-signals/safe-react/tracking";
88
121
  import { CodeInput, getSegmentCssWidth } from "rci";
89
122
  import React3, { forwardRef as forwardRef2, useCallback } from "react";
90
123
  import { useForwardedRef, useIsFocused } from "@dxos/react-hooks";
91
124
  var PinInput = /* @__PURE__ */ forwardRef2(({ __inputScope, segmentClassName, inputClassName, segmentPadding = "8px", segmentHeight = "100%", ...props }, forwardedRef) => {
92
- const { id, validationValence, descriptionId, errorMessageId } = useInputContext(INPUT_NAME, __inputScope);
93
- const width = getSegmentCssWidth(segmentPadding);
94
- const inputRef = useForwardedRef(forwardedRef);
95
- const inputFocused = useIsFocused(inputRef);
96
- const renderSegment = useCallback(({ state, index }) => /* @__PURE__ */ React3.createElement("div", {
97
- key: index,
98
- className: segmentClassName?.({
99
- focused: !!(inputFocused && state),
125
+ var _effect = _useSignals3();
126
+ try {
127
+ const { id, validationValence, descriptionId, errorMessageId } = useInputContext(INPUT_NAME, __inputScope);
128
+ const width = getSegmentCssWidth(segmentPadding);
129
+ const inputRef = useForwardedRef(forwardedRef);
130
+ const inputFocused = useIsFocused(inputRef);
131
+ const renderSegment = useCallback(({ state, index }) => /* @__PURE__ */ React3.createElement("div", {
132
+ key: index,
133
+ className: segmentClassName?.({
134
+ focused: !!(inputFocused && state),
135
+ validationValence
136
+ }),
137
+ "data-state": state,
138
+ style: {
139
+ width,
140
+ height: segmentHeight
141
+ }
142
+ }), [
143
+ segmentClassName,
144
+ inputFocused,
100
145
  validationValence
101
- }),
102
- "data-state": state,
103
- style: {
104
- width,
105
- height: segmentHeight
106
- }
107
- }), [
108
- segmentClassName,
109
- inputFocused,
110
- validationValence
111
- ]);
112
- return /* @__PURE__ */ React3.createElement(CodeInput, {
113
- padding: "8px",
114
- spacing: "8px",
115
- fontFamily: "",
116
- spellCheck: false,
117
- length: 6,
118
- ...props,
119
- id,
120
- "aria-describedby": descriptionId,
121
- ...validationValence === "error" && {
122
- "aria-invalid": "true",
123
- "aria-errormessage": errorMessageId
124
- },
125
- inputRef,
126
- renderSegment,
127
- className: inputClassName
128
- });
146
+ ]);
147
+ return /* @__PURE__ */ React3.createElement(CodeInput, {
148
+ padding: "8px",
149
+ spacing: "8px",
150
+ fontFamily: "",
151
+ spellCheck: false,
152
+ length: 6,
153
+ ...props,
154
+ id,
155
+ "aria-describedby": descriptionId,
156
+ ...validationValence === "error" && {
157
+ "aria-invalid": "true",
158
+ "aria-errormessage": errorMessageId
159
+ },
160
+ inputRef,
161
+ renderSegment,
162
+ className: inputClassName
163
+ });
164
+ } finally {
165
+ _effect.f();
166
+ }
129
167
  });
130
168
 
131
169
  // packages/ui/primitives/react-input/src/TextInput.tsx
170
+ import { useSignals as _useSignals4 } from "@preact-signals/safe-react/tracking";
132
171
  import { Primitive as Primitive2 } from "@radix-ui/react-primitive";
133
172
  import React4, { forwardRef as forwardRef3 } from "react";
134
173
  var TextInput = /* @__PURE__ */ forwardRef3(({ __inputScope, ...props }, forwardedRef) => {
135
- const { id, validationValence, descriptionId, errorMessageId } = useInputContext(INPUT_NAME, __inputScope);
136
- return /* @__PURE__ */ React4.createElement(Primitive2.input, {
137
- ...props,
138
- id,
139
- "aria-describedby": descriptionId,
140
- ...validationValence === "error" && {
141
- "aria-invalid": "true",
142
- "aria-errormessage": errorMessageId
143
- },
144
- ref: forwardedRef
145
- });
174
+ var _effect = _useSignals4();
175
+ try {
176
+ const { id, validationValence, descriptionId, errorMessageId } = useInputContext(INPUT_NAME, __inputScope);
177
+ return /* @__PURE__ */ React4.createElement(Primitive2.input, {
178
+ ...props,
179
+ id,
180
+ "aria-describedby": descriptionId,
181
+ ...validationValence === "error" && {
182
+ "aria-invalid": "true",
183
+ "aria-errormessage": errorMessageId
184
+ },
185
+ ref: forwardedRef
186
+ });
187
+ } finally {
188
+ _effect.f();
189
+ }
146
190
  });
147
191
 
148
192
  // packages/ui/primitives/react-input/src/TextArea.tsx
193
+ import { useSignals as _useSignals5 } from "@preact-signals/safe-react/tracking";
149
194
  import React5, { forwardRef as forwardRef4 } from "react";
150
195
  var TextArea = /* @__PURE__ */ forwardRef4(({ __inputScope, ...props }, forwardedRef) => {
151
- const { id, validationValence, descriptionId, errorMessageId } = useInputContext(INPUT_NAME, __inputScope);
152
- return /* @__PURE__ */ React5.createElement("textarea", {
153
- ...props,
154
- id,
155
- "aria-describedby": descriptionId,
156
- ...validationValence === "error" && {
157
- "aria-invalid": "true",
158
- "aria-errormessage": errorMessageId
159
- },
160
- ref: forwardedRef
161
- });
196
+ var _effect = _useSignals5();
197
+ try {
198
+ const { id, validationValence, descriptionId, errorMessageId } = useInputContext(INPUT_NAME, __inputScope);
199
+ return /* @__PURE__ */ React5.createElement("textarea", {
200
+ ...props,
201
+ id,
202
+ "aria-describedby": descriptionId,
203
+ ...validationValence === "error" && {
204
+ "aria-invalid": "true",
205
+ "aria-errormessage": errorMessageId
206
+ },
207
+ ref: forwardedRef
208
+ });
209
+ } finally {
210
+ _effect.f();
211
+ }
162
212
  });
163
213
  export {
164
214
  Description,
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/InputMeta.tsx", "../../../src/Root.tsx", "../../../src/PinInput.tsx", "../../../src/TextInput.tsx", "../../../src/TextArea.tsx"],
4
4
  "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Primitive } from '@radix-ui/react-primitive';\nimport { Slot } from '@radix-ui/react-slot';\nimport React, { type ComponentPropsWithRef, forwardRef } from 'react';\n\nimport { INPUT_NAME, type InputScopedProps, useInputContext } from './Root';\n\ntype LabelProps = ComponentPropsWithRef<typeof Primitive.label> & { asChild?: boolean };\n\nconst Label = forwardRef<HTMLLabelElement, LabelProps>(\n ({ __inputScope, asChild, children, ...props }: InputScopedProps<LabelProps>, forwardedRef) => {\n const { id } = useInputContext(INPUT_NAME, __inputScope);\n const Root = asChild ? Slot : Primitive.label;\n return (\n <Root {...props} htmlFor={id} ref={forwardedRef}>\n {children}\n </Root>\n );\n },\n);\n\ntype DescriptionProps = Omit<ComponentPropsWithRef<typeof Primitive.span>, 'id'> & { asChild?: boolean };\n\nconst Description = forwardRef<HTMLSpanElement, DescriptionProps>(\n ({ __inputScope, asChild, children, ...props }: InputScopedProps<DescriptionProps>, forwardedRef) => {\n const { descriptionId, validationValence } = useInputContext(INPUT_NAME, __inputScope);\n const Root = asChild ? Slot : Primitive.span;\n return (\n <Root {...props} {...(validationValence === 'error' && { id: descriptionId })} ref={forwardedRef}>\n {children}\n </Root>\n );\n },\n);\n\ntype ErrorMessageProps = Omit<ComponentPropsWithRef<typeof Primitive.span>, 'id'> & { asChild?: boolean };\n\nconst ErrorMessage = forwardRef<HTMLSpanElement, ErrorMessageProps>(\n ({ __inputScope, asChild, children, ...props }: InputScopedProps<ErrorMessageProps>, forwardedRef) => {\n const { errorMessageId } = useInputContext(INPUT_NAME, __inputScope);\n const Root = asChild ? Slot : Primitive.span;\n return (\n <Root {...props} id={errorMessageId} ref={forwardedRef}>\n {children}\n </Root>\n );\n },\n);\n\ntype ValidationProps = Omit<ComponentPropsWithRef<typeof Primitive.span>, 'id'> & { asChild?: boolean };\n\nconst Validation = forwardRef<HTMLSpanElement, ValidationProps>(\n (props: InputScopedProps<ValidationProps>, forwardedRef) => {\n const { __inputScope, asChild, children, ...otherProps } = props;\n const { validationValence } = useInputContext(INPUT_NAME, __inputScope);\n if (validationValence === 'error') {\n return <ErrorMessage {...props} ref={forwardedRef} />;\n } else {\n const Root = asChild ? Slot : Primitive.span;\n return (\n <Root {...otherProps} ref={forwardedRef}>\n {children}\n </Root>\n );\n }\n },\n);\n\ntype DescriptionAndValidationProps = ComponentPropsWithRef<typeof Primitive.p> & { asChild?: boolean };\n\nconst DescriptionAndValidation = forwardRef<HTMLParagraphElement, DescriptionAndValidationProps>(\n ({ __inputScope, asChild, children, ...props }: InputScopedProps<DescriptionAndValidationProps>, forwardedRef) => {\n const { descriptionId, validationValence } = useInputContext(INPUT_NAME, __inputScope);\n const Root = asChild ? Slot : Primitive.p;\n return (\n <Root {...props} {...(validationValence !== 'error' && { id: descriptionId })} ref={forwardedRef}>\n {children}\n </Root>\n );\n },\n);\n\nexport { Label, Validation, Description, DescriptionAndValidation, ErrorMessage };\n\nexport type { LabelProps, ValidationProps, DescriptionProps, DescriptionAndValidationProps, ErrorMessageProps };\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { createContextScope, type Scope } from '@radix-ui/react-context';\nimport React, { type PropsWithChildren } from 'react';\n\nimport { useId } from '@dxos/react-hooks';\n\nconst INPUT_NAME = 'Input';\n\ntype Valence = 'success' | 'info' | 'warning' | 'error' | 'neutral';\n\ntype InputScopedProps<P> = P & { __inputScope?: Scope };\n\ntype InputRootProps = PropsWithChildren<{\n id?: string;\n validationValence?: Valence;\n descriptionId?: string;\n errorMessageId?: string;\n}>;\n\nconst [createInputContext, createInputScope] = createContextScope(INPUT_NAME, []);\n\ntype InputContextValue = {\n id: string;\n descriptionId: string;\n errorMessageId: string;\n validationValence: Valence;\n};\n\nconst [InputProvider, useInputContext] = createInputContext<InputContextValue>(INPUT_NAME);\n\nconst InputRoot = ({\n __inputScope,\n id: propsId,\n descriptionId: propsDescriptionId,\n errorMessageId: propsErrorMessageId,\n validationValence = 'neutral',\n children,\n}: InputScopedProps<InputRootProps>) => {\n const id = useId('input', propsId);\n const descriptionId = useId('input__description', propsDescriptionId);\n const errorMessageId = useId('input__error-message', propsErrorMessageId);\n return (\n <InputProvider {...{ id, descriptionId, errorMessageId, validationValence }} scope={__inputScope}>\n {children}\n </InputProvider>\n );\n};\n\nInputRoot.displayName = INPUT_NAME;\n\nexport { InputRoot, InputRoot as Root, createInputScope, useInputContext, INPUT_NAME };\n\nexport type { Valence, InputRootProps, InputScopedProps };\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { CodeInput, getSegmentCssWidth } from 'rci';\nimport React, { type ComponentProps, type ComponentPropsWithRef, forwardRef, useCallback } from 'react';\n\nimport { useForwardedRef, useIsFocused } from '@dxos/react-hooks';\n\nimport { INPUT_NAME, type InputScopedProps, useInputContext, type Valence } from './Root';\n\ntype PinInputProps = Omit<\n ComponentPropsWithRef<typeof CodeInput>,\n 'id' | 'className' | 'inputRef' | 'renderSegment'\n> & {\n inputClassName?: string;\n segmentClassName?: (styleProps: { focused: boolean; validationValence: Valence }) => string;\n segmentPadding?: string;\n segmentHeight?: string;\n};\n\nconst PinInput = forwardRef<HTMLInputElement, PinInputProps>(\n (\n {\n __inputScope,\n segmentClassName,\n inputClassName,\n segmentPadding = '8px',\n segmentHeight = '100%',\n ...props\n }: InputScopedProps<PinInputProps>,\n forwardedRef,\n ) => {\n const { id, validationValence, descriptionId, errorMessageId } = useInputContext(INPUT_NAME, __inputScope);\n const width = getSegmentCssWidth(segmentPadding);\n const inputRef = useForwardedRef(forwardedRef);\n const inputFocused = useIsFocused(inputRef);\n\n const renderSegment = useCallback<ComponentProps<typeof CodeInput>['renderSegment']>(\n ({ state, index }) => (\n <div\n key={index}\n className={segmentClassName?.({\n focused: !!(inputFocused && state),\n validationValence,\n })}\n data-state={state}\n style={{ width, height: segmentHeight }}\n />\n ),\n [segmentClassName, inputFocused, validationValence],\n );\n\n return (\n <CodeInput\n {...{\n padding: '8px',\n spacing: '8px',\n fontFamily: '',\n spellCheck: false,\n length: 6,\n ...props,\n id,\n 'aria-describedby': descriptionId,\n ...(validationValence === 'error' && {\n 'aria-invalid': 'true' as const,\n 'aria-errormessage': errorMessageId,\n }),\n inputRef,\n renderSegment,\n className: inputClassName,\n }}\n />\n );\n },\n);\n\nexport { PinInput };\n\nexport type { PinInputProps };\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { Primitive } from '@radix-ui/react-primitive';\nimport React, { type ComponentPropsWithRef, forwardRef } from 'react';\n\nimport { INPUT_NAME, type InputScopedProps, useInputContext } from './Root';\n\ntype TextInputProps = Omit<ComponentPropsWithRef<typeof Primitive.input>, 'id'>;\n\nconst TextInput = forwardRef<HTMLInputElement, TextInputProps>(\n ({ __inputScope, ...props }: InputScopedProps<TextInputProps>, forwardedRef) => {\n const { id, validationValence, descriptionId, errorMessageId } = useInputContext(INPUT_NAME, __inputScope);\n return (\n <Primitive.input\n {...{\n ...props,\n id,\n 'aria-describedby': descriptionId,\n ...(validationValence === 'error' && {\n 'aria-invalid': 'true' as const,\n 'aria-errormessage': errorMessageId,\n }),\n ref: forwardedRef,\n }}\n />\n );\n },\n);\n\nexport { TextInput };\n\nexport type { TextInputProps };\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { type ComponentPropsWithRef, forwardRef } from 'react';\n\nimport { INPUT_NAME, type InputScopedProps, useInputContext } from './Root';\n\ntype TextAreaProps = Omit<ComponentPropsWithRef<'textarea'>, 'id'>;\n\nconst TextArea = forwardRef<HTMLTextAreaElement, TextAreaProps>(\n ({ __inputScope, ...props }: InputScopedProps<TextAreaProps>, forwardedRef) => {\n const { id, validationValence, descriptionId, errorMessageId } = useInputContext(INPUT_NAME, __inputScope);\n return (\n <textarea\n {...{\n ...props,\n id,\n 'aria-describedby': descriptionId,\n ...(validationValence === 'error' && {\n 'aria-invalid': 'true' as const,\n 'aria-errormessage': errorMessageId,\n }),\n ref: forwardedRef,\n }}\n />\n );\n },\n);\n\nexport { TextArea };\n\nexport type { TextAreaProps };\n"],
5
- "mappings": ";;;AAIA,SAASA,iBAAiB;AAC1B,SAASC,YAAY;AACrB,OAAOC,UAAqCC,kBAAkB;;;ACF9D,SAASC,0BAAsC;AAC/C,OAAOC,WAAuC;AAE9C,SAASC,aAAa;AAEtB,IAAMC,aAAa;AAanB,IAAM,CAACC,oBAAoBC,gBAAAA,IAAoBC,m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BAAiB;AAC1B,OAAOC,UAAqCC,cAAAA,mBAAkB;AAM9D,IAAMC,YAAYC,gBAAAA,YAChB,CAAC,EAAEC,cAAc,GAAGC,MAAAA,GAA2CC,iBAAAA;;;AAC7D,UAAM,EAAEC,IAAIC,mBAAmBC,eAAeC,eAAc,IAAKC,gBAAgBC,YAAYR,YAAAA;AAC7F,WACE,gBAAAS,OAAA,cAACC,WAAUC,OACL;MACF,GAAGV;MACHE;MACA,oBAAoBE;MACpB,GAAID,sBAAsB,WAAW;QACnC,gBAAgB;QAChB,qBAAqBE;MACvB;MACAM,KAAKV;IACP,CAAA;;;;AAGN,CAAA;;;;ACxBF,OAAOW,UAAqCC,cAAAA,mBAAkB;AAM9D,IAAMC,WAAWC,gBAAAA,YACf,CAAC,EAAEC,cAAc,GAAGC,MAAAA,GAA0CC,iBAAAA;;;AAC5D,UAAM,EAAEC,IAAIC,mBAAmBC,eAAeC,eAAc,IAAKC,gBAAgBC,YAAYR,YAAAA;AAC7F,WACE,gBAAAS,OAAA,cAACC,YACK;MACF,GAAGT;MACHE;MACA,oBAAoBE;MACpB,GAAID,sBAAsB,WAAW;QACnC,gBAAgB;QAChB,qBAAqBE;MACvB;MACAK,KAAKT;IACP,CAAA;;;;AAGN,CAAA;",
6
6
  "names": ["Primitive", "Slot", "React", "forwardRef", "createContextScope", "React", "useId", "INPUT_NAME", "createInputContext", "createInputScope", "createContextScope", "InputProvider", "useInputContext", "InputRoot", "__inputScope", "id", "propsId", "descriptionId", "propsDescriptionId", "errorMessageId", "propsErrorMessageId", "validationValence", "children", "useId", "scope", "displayName", "Label", "forwardRef", "__inputScope", "asChild", "children", "props", "forwardedRef", "id", "useInputContext", "INPUT_NAME", "Root", "Slot", "Primitive", "label", "React", "htmlFor", "ref", "Description", "descriptionId", "validationValence", "span", "ErrorMessage", "errorMessageId", "Validation", "otherProps", "DescriptionAndValidation", "p", "CodeInput", "getSegmentCssWidth", "React", "forwardRef", "useCallback", "useForwardedRef", "useIsFocused", "PinInput", "forwardRef", "__inputScope", "segmentClassName", "inputClassName", "segmentPadding", "segmentHeight", "props", "forwardedRef", "id", "validationValence", "descriptionId", "errorMessageId", "useInputContext", "INPUT_NAME", "width", "getSegmentCssWidth", "inputRef", "useForwardedRef", "inputFocused", "useIsFocused", "renderSegment", "useCallback", "state", "index", "React", "div", "key", "className", "focused", "data-state", "style", "height", "CodeInput", "padding", "spacing", "fontFamily", "spellCheck", "length", "Primitive", "React", "forwardRef", "TextInput", "forwardRef", "__inputScope", "props", "forwardedRef", "id", "validationValence", "descriptionId", "errorMessageId", "useInputContext", "INPUT_NAME", "React", "Primitive", "input", "ref", "React", "forwardRef", "TextArea", "forwardRef", "__inputScope", "props", "forwardedRef", "id", "validationValence", "descriptionId", "errorMessageId", "useInputContext", "INPUT_NAME", "React", "textarea", "ref"]
7
7
  }
@@ -1 +1 @@
1
- {"inputs":{"packages/ui/primitives/react-input/src/Root.tsx":{"bytes":4739,"imports":[{"path":"@radix-ui/react-context","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/primitives/react-input/src/InputMeta.tsx":{"bytes":10207,"imports":[{"path":"@radix-ui/react-primitive","kind":"import-statement","external":true},{"path":"@radix-ui/react-slot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"packages/ui/primitives/react-input/src/Root.tsx","kind":"import-statement","original":"./Root"}],"format":"esm"},"packages/ui/primitives/react-input/src/PinInput.tsx":{"bytes":7091,"imports":[{"path":"rci","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"packages/ui/primitives/react-input/src/Root.tsx","kind":"import-statement","original":"./Root"}],"format":"esm"},"packages/ui/primitives/react-input/src/TextInput.tsx":{"bytes":3262,"imports":[{"path":"@radix-ui/react-primitive","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"packages/ui/primitives/react-input/src/Root.tsx","kind":"import-statement","original":"./Root"}],"format":"esm"},"packages/ui/primitives/react-input/src/TextArea.tsx":{"bytes":3027,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"packages/ui/primitives/react-input/src/Root.tsx","kind":"import-statement","original":"./Root"}],"format":"esm"},"packages/ui/primitives/react-input/src/index.ts":{"bytes":860,"imports":[{"path":"packages/ui/primitives/react-input/src/InputMeta.tsx","kind":"import-statement","original":"./InputMeta"},{"path":"packages/ui/primitives/react-input/src/Root.tsx","kind":"import-statement","original":"./Root"},{"path":"packages/ui/primitives/react-input/src/PinInput.tsx","kind":"import-statement","original":"./PinInput"},{"path":"packages/ui/primitives/react-input/src/TextInput.tsx","kind":"import-statement","original":"./TextInput"},{"path":"packages/ui/primitives/react-input/src/TextArea.tsx","kind":"import-statement","original":"./TextArea"}],"format":"esm"}},"outputs":{"packages/ui/primitives/react-input/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":15009},"packages/ui/primitives/react-input/dist/lib/node-esm/index.mjs":{"imports":[{"path":"@radix-ui/react-primitive","kind":"import-statement","external":true},{"path":"@radix-ui/react-slot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@radix-ui/react-context","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"rci","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@radix-ui/react-primitive","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"exports":["Description","DescriptionAndValidation","ErrorMessage","INPUT_NAME","InputRoot","Label","PinInput","Root","TextArea","TextInput","Validation","createInputScope","useInputContext"],"entryPoint":"packages/ui/primitives/react-input/src/index.ts","inputs":{"packages/ui/primitives/react-input/src/InputMeta.tsx":{"bytesInOutput":2282},"packages/ui/primitives/react-input/src/Root.tsx":{"bytesInOutput":875},"packages/ui/primitives/react-input/src/index.ts":{"bytesInOutput":0},"packages/ui/primitives/react-input/src/PinInput.tsx":{"bytesInOutput":1427},"packages/ui/primitives/react-input/src/TextInput.tsx":{"bytesInOutput":610},"packages/ui/primitives/react-input/src/TextArea.tsx":{"bytesInOutput":534}},"bytes":6407}}}
1
+ {"inputs":{"packages/ui/primitives/react-input/src/Root.tsx":{"bytes":4897,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"@radix-ui/react-context","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true}],"format":"esm"},"packages/ui/primitives/react-input/src/InputMeta.tsx":{"bytes":10829,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"@radix-ui/react-primitive","kind":"import-statement","external":true},{"path":"@radix-ui/react-slot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"packages/ui/primitives/react-input/src/Root.tsx","kind":"import-statement","original":"./Root"}],"format":"esm"},"packages/ui/primitives/react-input/src/PinInput.tsx":{"bytes":7337,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"rci","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"packages/ui/primitives/react-input/src/Root.tsx","kind":"import-statement","original":"./Root"}],"format":"esm"},"packages/ui/primitives/react-input/src/TextInput.tsx":{"bytes":3432,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"@radix-ui/react-primitive","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"packages/ui/primitives/react-input/src/Root.tsx","kind":"import-statement","original":"./Root"}],"format":"esm"},"packages/ui/primitives/react-input/src/TextArea.tsx":{"bytes":3197,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"packages/ui/primitives/react-input/src/Root.tsx","kind":"import-statement","original":"./Root"}],"format":"esm"},"packages/ui/primitives/react-input/src/index.ts":{"bytes":824,"imports":[{"path":"packages/ui/primitives/react-input/src/InputMeta.tsx","kind":"import-statement","original":"./InputMeta"},{"path":"packages/ui/primitives/react-input/src/Root.tsx","kind":"import-statement","original":"./Root"},{"path":"packages/ui/primitives/react-input/src/PinInput.tsx","kind":"import-statement","original":"./PinInput"},{"path":"packages/ui/primitives/react-input/src/TextInput.tsx","kind":"import-statement","original":"./TextInput"},{"path":"packages/ui/primitives/react-input/src/TextArea.tsx","kind":"import-statement","original":"./TextArea"}],"format":"esm"}},"outputs":{"packages/ui/primitives/react-input/dist/lib/node-esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":15059},"packages/ui/primitives/react-input/dist/lib/node-esm/index.mjs":{"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"@radix-ui/react-primitive","kind":"import-statement","external":true},{"path":"@radix-ui/react-slot","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"@radix-ui/react-context","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"rci","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/react-hooks","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"@radix-ui/react-primitive","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true}],"exports":["Description","DescriptionAndValidation","ErrorMessage","INPUT_NAME","InputRoot","Label","PinInput","Root","TextArea","TextInput","Validation","createInputScope","useInputContext"],"entryPoint":"packages/ui/primitives/react-input/src/index.ts","inputs":{"packages/ui/primitives/react-input/src/InputMeta.tsx":{"bytesInOutput":2831},"packages/ui/primitives/react-input/src/Root.tsx":{"bytesInOutput":1050},"packages/ui/primitives/react-input/src/index.ts":{"bytesInOutput":0},"packages/ui/primitives/react-input/src/PinInput.tsx":{"bytesInOutput":1658},"packages/ui/primitives/react-input/src/TextInput.tsx":{"bytesInOutput":789},"packages/ui/primitives/react-input/src/TextArea.tsx":{"bytesInOutput":713}},"bytes":7720}}}
@@ -1 +1 @@
1
- {"version":"5.7.3"}
1
+ {"version":"5.8.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/react-input",
3
- "version": "0.8.1",
3
+ "version": "0.8.2-main.10c050d",
4
4
  "description": "Input primitive components for React.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -21,6 +21,7 @@
21
21
  "src"
22
22
  ],
23
23
  "dependencies": {
24
+ "@preact-signals/safe-react": "^0.9.0",
24
25
  "@radix-ui/react-compose-refs": "1.1.1",
25
26
  "@radix-ui/react-context": "1.1.1",
26
27
  "@radix-ui/react-primitive": "2.0.2",
@@ -28,7 +29,7 @@
28
29
  "@radix-ui/react-use-controllable-state": "1.1.0",
29
30
  "lodash.omit": "^4.5.0",
30
31
  "rci": "^0.1.0",
31
- "@dxos/react-hooks": "0.8.1"
32
+ "@dxos/react-hooks": "0.8.2-main.10c050d"
32
33
  },
33
34
  "devDependencies": {
34
35
  "@types/react": "~18.2.0",