@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
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as Button, L as LogicToggleButton, T as ToggleButton, b as buttonVariants, i as fields, l as logicToggleButtonStyles, t as toggleButtonVariants } from './index-
|
|
1
|
+
export { B as Button, L as LogicToggleButton, T as ToggleButton, b as buttonVariants, i as fields, l as logicToggleButtonStyles, t as toggleButtonVariants } from './index-DVH6qE_o.cjs';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
4
4
|
import 'class-variance-authority/types';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as Button, L as LogicToggleButton, T as ToggleButton, b as buttonVariants, i as fields, l as logicToggleButtonStyles, t as toggleButtonVariants } from './index-
|
|
1
|
+
export { B as Button, L as LogicToggleButton, T as ToggleButton, b as buttonVariants, i as fields, l as logicToggleButtonStyles, t as toggleButtonVariants } from './index-DVH6qE_o.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
4
4
|
import 'class-variance-authority/types';
|
package/dist/index.js
CHANGED
|
@@ -8928,7 +8928,10 @@ function Input({
|
|
|
8928
8928
|
required = false,
|
|
8929
8929
|
hasRequiredError = false,
|
|
8930
8930
|
className,
|
|
8931
|
-
editorClassName
|
|
8931
|
+
editorClassName,
|
|
8932
|
+
showCaseSensitivity = false,
|
|
8933
|
+
caseSensitive = false,
|
|
8934
|
+
onCaseSensitiveChange
|
|
8932
8935
|
}) {
|
|
8933
8936
|
const devCtx = useContext(DevContext);
|
|
8934
8937
|
const resolvedExpectedType = useResolvedExpectedType(expectedType, devCtx);
|
|
@@ -8972,7 +8975,19 @@ function Input({
|
|
|
8972
8975
|
title: resolvedExpectedType
|
|
8973
8976
|
},
|
|
8974
8977
|
resolvedExpectedType
|
|
8975
|
-
), showError && /* @__PURE__ */ React44.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")
|
|
8978
|
+
), showError && /* @__PURE__ */ React44.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.createElement(
|
|
8979
|
+
"button",
|
|
8980
|
+
{
|
|
8981
|
+
type: "button",
|
|
8982
|
+
title: caseSensitive ? "Case sensitive (click to ignore case)" : "Ignore case (click for case sensitive)",
|
|
8983
|
+
onClick: () => onCaseSensitiveChange(!caseSensitive),
|
|
8984
|
+
className: cn(
|
|
8985
|
+
"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",
|
|
8986
|
+
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"
|
|
8987
|
+
)
|
|
8988
|
+
},
|
|
8989
|
+
"Aa"
|
|
8990
|
+
)), /* @__PURE__ */ React44.createElement("div", { className: "uii:mt-0.5" }, /* @__PURE__ */ React44.createElement(
|
|
8976
8991
|
"input",
|
|
8977
8992
|
{
|
|
8978
8993
|
id: fieldName,
|