@process.co/ui 0.0.17 → 0.0.18
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/css/ui.css +3 -0
- package/dist/components/fields/index.cjs +17 -2
- package/dist/components/fields/index.cjs.map +1 -1
- package/dist/components/fields/index.d.cts +1 -1
- package/dist/components/fields/index.d.ts +1 -1
- package/dist/components/fields/index.js +17 -2
- package/dist/components/fields/index.js.map +1 -1
- package/dist/{index-D9NS5Zgl.d.cts → index-DVH6qE_o.d.cts} +10 -1
- package/dist/{index-D9NS5Zgl.d.ts → index-DVH6qE_o.d.ts} +10 -1
- package/dist/index.cjs +17 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -197,6 +197,15 @@ interface InputProps {
|
|
|
197
197
|
editorClassName?: string;
|
|
198
198
|
/** Property definition (for richer context) */
|
|
199
199
|
propertyDefinition?: any;
|
|
200
|
+
/**
|
|
201
|
+
* When true, show a small case-sensitivity toggle next to the type label (e.g. for Value position in conditions).
|
|
202
|
+
* Controlled by caseSensitive and onCaseSensitiveChange.
|
|
203
|
+
*/
|
|
204
|
+
showCaseSensitivity?: boolean;
|
|
205
|
+
/** Current case-sensitive state (when showCaseSensitivity is true). */
|
|
206
|
+
caseSensitive?: boolean;
|
|
207
|
+
/** Called when the user toggles case sensitivity (when showCaseSensitivity is true). */
|
|
208
|
+
onCaseSensitiveChange?: (value: boolean) => void;
|
|
200
209
|
}
|
|
201
210
|
/**
|
|
202
211
|
* Mock Input component for development/design mode.
|
|
@@ -215,7 +224,7 @@ interface InputProps {
|
|
|
215
224
|
* />
|
|
216
225
|
* ```
|
|
217
226
|
*/
|
|
218
|
-
declare function Input({ fieldName, label, value, onChange, disabled, placeholder, expectedType, required, hasRequiredError, className, editorClassName, }: InputProps): React.JSX.Element;
|
|
227
|
+
declare function Input({ fieldName, label, value, onChange, disabled, placeholder, expectedType, required, hasRequiredError, className, editorClassName, showCaseSensitivity, caseSensitive, onCaseSensitiveChange, }: InputProps): React.JSX.Element;
|
|
219
228
|
|
|
220
229
|
interface SelectOption {
|
|
221
230
|
node?: React.ReactNode;
|
|
@@ -197,6 +197,15 @@ interface InputProps {
|
|
|
197
197
|
editorClassName?: string;
|
|
198
198
|
/** Property definition (for richer context) */
|
|
199
199
|
propertyDefinition?: any;
|
|
200
|
+
/**
|
|
201
|
+
* When true, show a small case-sensitivity toggle next to the type label (e.g. for Value position in conditions).
|
|
202
|
+
* Controlled by caseSensitive and onCaseSensitiveChange.
|
|
203
|
+
*/
|
|
204
|
+
showCaseSensitivity?: boolean;
|
|
205
|
+
/** Current case-sensitive state (when showCaseSensitivity is true). */
|
|
206
|
+
caseSensitive?: boolean;
|
|
207
|
+
/** Called when the user toggles case sensitivity (when showCaseSensitivity is true). */
|
|
208
|
+
onCaseSensitiveChange?: (value: boolean) => void;
|
|
200
209
|
}
|
|
201
210
|
/**
|
|
202
211
|
* Mock Input component for development/design mode.
|
|
@@ -215,7 +224,7 @@ interface InputProps {
|
|
|
215
224
|
* />
|
|
216
225
|
* ```
|
|
217
226
|
*/
|
|
218
|
-
declare function Input({ fieldName, label, value, onChange, disabled, placeholder, expectedType, required, hasRequiredError, className, editorClassName, }: InputProps): React.JSX.Element;
|
|
227
|
+
declare function Input({ fieldName, label, value, onChange, disabled, placeholder, expectedType, required, hasRequiredError, className, editorClassName, showCaseSensitivity, caseSensitive, onCaseSensitiveChange, }: InputProps): React.JSX.Element;
|
|
219
228
|
|
|
220
229
|
interface SelectOption {
|
|
221
230
|
node?: React.ReactNode;
|
package/dist/index.cjs
CHANGED
|
@@ -8949,7 +8949,10 @@ function Input({
|
|
|
8949
8949
|
required = false,
|
|
8950
8950
|
hasRequiredError = false,
|
|
8951
8951
|
className,
|
|
8952
|
-
editorClassName
|
|
8952
|
+
editorClassName,
|
|
8953
|
+
showCaseSensitivity = false,
|
|
8954
|
+
caseSensitive = false,
|
|
8955
|
+
onCaseSensitiveChange
|
|
8953
8956
|
}) {
|
|
8954
8957
|
const devCtx = React44.useContext(DevContext);
|
|
8955
8958
|
const resolvedExpectedType = useResolvedExpectedType(expectedType, devCtx);
|
|
@@ -8993,7 +8996,19 @@ function Input({
|
|
|
8993
8996
|
title: resolvedExpectedType
|
|
8994
8997
|
},
|
|
8995
8998
|
resolvedExpectedType
|
|
8996
|
-
), showError && /* @__PURE__ */ React44__namespace.createElement("span", { className: "uii:-mt-2 uii:inline-flex uii:px-1 uii:py-0.5 uii:bg-red-100 uii:text-red-600 uii:rounded-sm uii:text-[10px] uii:font-medium" }, "Required")
|
|
8999
|
+
), showError && /* @__PURE__ */ React44__namespace.createElement("span", { className: "uii:-mt-2 uii:inline-flex uii:px-1 uii:py-0.5 uii:bg-red-100 uii:text-red-600 uii:rounded-sm uii:text-[10px] uii:font-medium" }, "Required"), showCaseSensitivity && onCaseSensitiveChange && /* @__PURE__ */ React44__namespace.createElement(
|
|
9000
|
+
"button",
|
|
9001
|
+
{
|
|
9002
|
+
type: "button",
|
|
9003
|
+
title: caseSensitive ? "Case sensitive (click to ignore case)" : "Ignore case (click for case sensitive)",
|
|
9004
|
+
onClick: () => onCaseSensitiveChange(!caseSensitive),
|
|
9005
|
+
className: cn(
|
|
9006
|
+
"uii:-mt-2 uii:inline-flex uii:items-center uii:justify-center uii:rounded-sm uii:border uii:px-1 uii:py-0.5 uii:text-[10px] uii:font-medium uii:transition-colors uii:outline-none focus:uii:ring-2 focus:uii:ring-ring focus:uii:ring-offset-1",
|
|
9007
|
+
caseSensitive ? "uii:bg-primary uii:text-primary-foreground uii:border-primary" : "uii:bg-gray-200 uii:text-muted-foreground uii:border-input hover:uii:bg-gray-300"
|
|
9008
|
+
)
|
|
9009
|
+
},
|
|
9010
|
+
"Aa"
|
|
9011
|
+
)), /* @__PURE__ */ React44__namespace.createElement("div", { className: "uii:mt-0.5" }, /* @__PURE__ */ React44__namespace.createElement(
|
|
8997
9012
|
"input",
|
|
8998
9013
|
{
|
|
8999
9014
|
id: fieldName,
|