@cnc-ti/layout-basic 8.3.21 → 8.3.22
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/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -10660,7 +10660,7 @@ var Input = React58.forwardRef(
|
|
|
10660
10660
|
type,
|
|
10661
10661
|
id: idGenerate,
|
|
10662
10662
|
className: cn(
|
|
10663
|
-
"cnc-flex cnc-h-
|
|
10663
|
+
"cnc-flex cnc-h-10 cnc-w-full cnc-rounded-md cnc-border cnc-border-input cnc-bg-transparent cnc-px-3 cnc-py-1 cnc-text-base cnc-shadow-sm cnc-transition-colors",
|
|
10664
10664
|
" file:cnc-border-0 file:cnc-bg-transparent file:cnc-text-sm file:cnc-font-medium file:cnc-text-foreground placeholder:cnc-text-muted-foreground focus-visible:cnc-outline-none",
|
|
10665
10665
|
"focus-visible:cnc-ring-2 focus-visible:cnc-ring-brand-gray-500/50 disabled:cnc-cursor-not-allowed disabled:cnc-opacity-50 md:cnc-text-sm ",
|
|
10666
10666
|
"not-disabled:hover:cnc-border-brand-gray-500",
|
|
@@ -10680,6 +10680,7 @@ import * as React59 from "react";
|
|
|
10680
10680
|
import { jsx as jsx33, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
10681
10681
|
var Checkbox = React59.forwardRef(
|
|
10682
10682
|
({ className, id, label, ...props }, ref) => {
|
|
10683
|
+
console.log();
|
|
10683
10684
|
const idGenerate = id ? id : label && `field-${Date.now()}-${Math.random() * 1e5}`;
|
|
10684
10685
|
return /* @__PURE__ */ jsxs11("div", { className: "cnc-w-full cnc-flex cnc-flex-row", children: [
|
|
10685
10686
|
/* @__PURE__ */ jsx33(
|
|
@@ -11449,7 +11450,8 @@ function Combobox({
|
|
|
11449
11450
|
placeholder = "",
|
|
11450
11451
|
command,
|
|
11451
11452
|
onChange,
|
|
11452
|
-
value = ""
|
|
11453
|
+
value = "",
|
|
11454
|
+
onInput
|
|
11453
11455
|
}) {
|
|
11454
11456
|
const [open, setOpen] = React64.useState(false);
|
|
11455
11457
|
return /* @__PURE__ */ jsxs14(Popover3, { open, onOpenChange: setOpen, children: [
|
|
@@ -11472,7 +11474,13 @@ function Combobox({
|
|
|
11472
11474
|
align: "start",
|
|
11473
11475
|
className: "cnc-w-[--radix-popover-trigger-width] cnc-p-0",
|
|
11474
11476
|
children: /* @__PURE__ */ jsxs14(Command, { children: [
|
|
11475
|
-
/* @__PURE__ */ jsx41(
|
|
11477
|
+
/* @__PURE__ */ jsx41(
|
|
11478
|
+
CommandInput,
|
|
11479
|
+
{
|
|
11480
|
+
placeholder: command?.placeholder,
|
|
11481
|
+
onInput: (e) => onInput && onInput(e.target?.value)
|
|
11482
|
+
}
|
|
11483
|
+
),
|
|
11476
11484
|
/* @__PURE__ */ jsxs14(CommandList, { children: [
|
|
11477
11485
|
/* @__PURE__ */ jsx41(CommandEmpty, { children: command?.emptyMessage ?? "Nenhum item encontrado" }),
|
|
11478
11486
|
/* @__PURE__ */ jsx41(CommandGroup, { children: options?.map((option) => /* @__PURE__ */ jsxs14(
|