@cnc-ti/layout-basic 8.3.19 → 8.3.20
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.css +38 -2
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +120 -66
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +111 -61
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -2
package/dist/index.mjs
CHANGED
|
@@ -8348,7 +8348,7 @@ var ModalMudancaEntidade = ({
|
|
|
8348
8348
|
onClose,
|
|
8349
8349
|
visibleModal,
|
|
8350
8350
|
content: /* @__PURE__ */ jsxs6(Fragment6, { children: [
|
|
8351
|
-
/* @__PURE__ */ jsx18(DialogTitle, { className: "cnc-DialogTitle cnc-mt-10 cnc-mb-4 ", children: "Selecionar a
|
|
8351
|
+
/* @__PURE__ */ jsx18(DialogTitle, { className: "cnc-DialogTitle cnc-mt-10 cnc-mb-4 ", children: "Selecionar a entidade" }),
|
|
8352
8352
|
/* @__PURE__ */ jsxs6("div", { className: "cnc-flex cnc-mb-5 ", children: [
|
|
8353
8353
|
/* @__PURE__ */ jsx18(SelectComponent, {}),
|
|
8354
8354
|
/* @__PURE__ */ jsx18(Button, { className: "cnc-text-white cnc-ml-5", onClick: buttonAction, children: "Trocar entidade" })
|
|
@@ -10595,14 +10595,60 @@ var SelectSeparator = React56.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
10595
10595
|
));
|
|
10596
10596
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
10597
10597
|
|
|
10598
|
-
// src/components/
|
|
10598
|
+
// src/components/Tabs/index.tsx
|
|
10599
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
10599
10600
|
import * as React57 from "react";
|
|
10600
|
-
import { jsx as jsx31
|
|
10601
|
-
var
|
|
10601
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
10602
|
+
var Tabs = TabsPrimitive.Root;
|
|
10603
|
+
var TabsList = React57.forwardRef(({ className, ...props }, ref) => {
|
|
10604
|
+
console.log({ props });
|
|
10605
|
+
return /* @__PURE__ */ jsx31(
|
|
10606
|
+
TabsPrimitive.List,
|
|
10607
|
+
{
|
|
10608
|
+
ref,
|
|
10609
|
+
className: cn("cnc-flex cnc-gap-[2px] cnc-border-b ", className),
|
|
10610
|
+
...props
|
|
10611
|
+
}
|
|
10612
|
+
);
|
|
10613
|
+
});
|
|
10614
|
+
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
10615
|
+
var TabsTrigger = React57.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
10616
|
+
TabsPrimitive.Trigger,
|
|
10617
|
+
{
|
|
10618
|
+
ref,
|
|
10619
|
+
className: cn(
|
|
10620
|
+
"cnc-data-[state=active]:bg-muted cnc-data-[state=active]:text-primary cnc-relative cnc-text-sm cnc-font-medium cnc-px-4 cnc-py-2 cnc-bg-[#00000005] data-[state=active]:cnc-bg-white data-[state=active]:cnc-text-[#04319bfd] cnc-border-l cnc-border-r cnc-border-t cnc-rounded-tl-sm cnc-rounded-tr-sm ",
|
|
10621
|
+
className
|
|
10622
|
+
),
|
|
10623
|
+
...props
|
|
10624
|
+
}
|
|
10625
|
+
));
|
|
10626
|
+
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
10627
|
+
var TabsContent = React57.forwardRef(({ className, children, ...props }, ref) => {
|
|
10628
|
+
console.log({ className });
|
|
10629
|
+
return /* @__PURE__ */ jsx31(
|
|
10630
|
+
TabsPrimitive.Content,
|
|
10631
|
+
{
|
|
10632
|
+
ref,
|
|
10633
|
+
className: cn(
|
|
10634
|
+
"cnc-space-y-4 cnc-border-l cnc-border-r cnc-border-b cnc-p-5 cnc-h-full",
|
|
10635
|
+
className
|
|
10636
|
+
),
|
|
10637
|
+
...props,
|
|
10638
|
+
children
|
|
10639
|
+
}
|
|
10640
|
+
);
|
|
10641
|
+
});
|
|
10642
|
+
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
10643
|
+
|
|
10644
|
+
// src/components/atoms/forms/input.tsx
|
|
10645
|
+
import * as React58 from "react";
|
|
10646
|
+
import { jsx as jsx32, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
10647
|
+
var Input = React58.forwardRef(
|
|
10602
10648
|
({ className, type, id, label, ...props }, ref) => {
|
|
10603
10649
|
const idGenerate = id ? id : label && `field-${Date.now()}-${Math.random() * 1e5}`;
|
|
10604
10650
|
return /* @__PURE__ */ jsxs10("div", { className: "cnc-w-full", children: [
|
|
10605
|
-
label && /* @__PURE__ */
|
|
10651
|
+
label && /* @__PURE__ */ jsx32(
|
|
10606
10652
|
"label",
|
|
10607
10653
|
{
|
|
10608
10654
|
htmlFor: idGenerate,
|
|
@@ -10610,7 +10656,7 @@ var Input = React57.forwardRef(
|
|
|
10610
10656
|
children: label
|
|
10611
10657
|
}
|
|
10612
10658
|
),
|
|
10613
|
-
/* @__PURE__ */
|
|
10659
|
+
/* @__PURE__ */ jsx32(
|
|
10614
10660
|
"input",
|
|
10615
10661
|
{
|
|
10616
10662
|
type,
|
|
@@ -10632,14 +10678,14 @@ var Input = React57.forwardRef(
|
|
|
10632
10678
|
Input.displayName = "Input";
|
|
10633
10679
|
|
|
10634
10680
|
// src/components/atoms/forms/checkbox.tsx
|
|
10635
|
-
import * as
|
|
10636
|
-
import { jsx as
|
|
10637
|
-
var Checkbox =
|
|
10681
|
+
import * as React59 from "react";
|
|
10682
|
+
import { jsx as jsx33, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
10683
|
+
var Checkbox = React59.forwardRef(
|
|
10638
10684
|
({ className, id, label, ...props }, ref) => {
|
|
10639
10685
|
console.log();
|
|
10640
10686
|
const idGenerate = id ? id : label && `field-${Date.now()}-${Math.random() * 1e5}`;
|
|
10641
10687
|
return /* @__PURE__ */ jsxs11("div", { className: "cnc-w-full cnc-flex cnc-flex-row", children: [
|
|
10642
|
-
/* @__PURE__ */
|
|
10688
|
+
/* @__PURE__ */ jsx33(
|
|
10643
10689
|
"input",
|
|
10644
10690
|
{
|
|
10645
10691
|
type: "checkbox",
|
|
@@ -10649,7 +10695,7 @@ var Checkbox = React58.forwardRef(
|
|
|
10649
10695
|
...props
|
|
10650
10696
|
}
|
|
10651
10697
|
),
|
|
10652
|
-
label && /* @__PURE__ */
|
|
10698
|
+
label && /* @__PURE__ */ jsx33(
|
|
10653
10699
|
"label",
|
|
10654
10700
|
{
|
|
10655
10701
|
htmlFor: idGenerate,
|
|
@@ -10663,7 +10709,7 @@ var Checkbox = React58.forwardRef(
|
|
|
10663
10709
|
Checkbox.displayName = "Checkbox";
|
|
10664
10710
|
|
|
10665
10711
|
// src/components/atoms/display/badge.tsx
|
|
10666
|
-
import { jsx as
|
|
10712
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
10667
10713
|
var Badge = ({
|
|
10668
10714
|
variant = "default",
|
|
10669
10715
|
rounded = true,
|
|
@@ -10685,7 +10731,7 @@ var Badge = ({
|
|
|
10685
10731
|
md: "cnc-text-sm cnc-px-3 cnc-py-1",
|
|
10686
10732
|
lg: "cnc-text-base cnc-px-4 cnc-py-2"
|
|
10687
10733
|
};
|
|
10688
|
-
return /* @__PURE__ */
|
|
10734
|
+
return /* @__PURE__ */ jsx34(
|
|
10689
10735
|
"span",
|
|
10690
10736
|
{
|
|
10691
10737
|
className: cn(
|
|
@@ -10701,12 +10747,12 @@ var Badge = ({
|
|
|
10701
10747
|
};
|
|
10702
10748
|
|
|
10703
10749
|
// src/components/molecules/card.tsx
|
|
10704
|
-
import { jsx as
|
|
10750
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
10705
10751
|
function Card({
|
|
10706
10752
|
className,
|
|
10707
10753
|
...rest
|
|
10708
10754
|
}) {
|
|
10709
|
-
return /* @__PURE__ */
|
|
10755
|
+
return /* @__PURE__ */ jsx35(
|
|
10710
10756
|
"div",
|
|
10711
10757
|
{
|
|
10712
10758
|
className: cn(
|
|
@@ -10721,7 +10767,7 @@ function CardHeader({
|
|
|
10721
10767
|
className,
|
|
10722
10768
|
...rest
|
|
10723
10769
|
}) {
|
|
10724
|
-
return /* @__PURE__ */
|
|
10770
|
+
return /* @__PURE__ */ jsx35("div", { className: "cnc-px-6 cnc-pt-6", children: /* @__PURE__ */ jsx35(
|
|
10725
10771
|
"div",
|
|
10726
10772
|
{
|
|
10727
10773
|
className: cn(
|
|
@@ -10736,13 +10782,13 @@ function CardContent({
|
|
|
10736
10782
|
className,
|
|
10737
10783
|
...rest
|
|
10738
10784
|
}) {
|
|
10739
|
-
return /* @__PURE__ */
|
|
10785
|
+
return /* @__PURE__ */ jsx35("div", { className: cn("cnc-px-6 cnc-py-2", className), ...rest });
|
|
10740
10786
|
}
|
|
10741
10787
|
function CardFooter({
|
|
10742
10788
|
className,
|
|
10743
10789
|
...rest
|
|
10744
10790
|
}) {
|
|
10745
|
-
return /* @__PURE__ */
|
|
10791
|
+
return /* @__PURE__ */ jsx35(
|
|
10746
10792
|
"div",
|
|
10747
10793
|
{
|
|
10748
10794
|
className: cn(
|
|
@@ -10757,7 +10803,7 @@ function CardFooterItem({
|
|
|
10757
10803
|
className,
|
|
10758
10804
|
...rest
|
|
10759
10805
|
}) {
|
|
10760
|
-
return /* @__PURE__ */
|
|
10806
|
+
return /* @__PURE__ */ jsx35(
|
|
10761
10807
|
"div",
|
|
10762
10808
|
{
|
|
10763
10809
|
className: cn(
|
|
@@ -10771,7 +10817,7 @@ function CardFooterItem({
|
|
|
10771
10817
|
|
|
10772
10818
|
// src/components/molecules/collapsible.tsx
|
|
10773
10819
|
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
10774
|
-
import { jsx as
|
|
10820
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
10775
10821
|
var Collapsible = CollapsiblePrimitive.Root;
|
|
10776
10822
|
var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
|
10777
10823
|
var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
@@ -10779,16 +10825,16 @@ var AnimatedCollapsibleContent = ({
|
|
|
10779
10825
|
className,
|
|
10780
10826
|
...rest
|
|
10781
10827
|
}) => {
|
|
10782
|
-
return /* @__PURE__ */
|
|
10828
|
+
return /* @__PURE__ */ jsx36(CollapsibleContent2, { className: "cnc-collapsible-content", ...rest });
|
|
10783
10829
|
};
|
|
10784
10830
|
|
|
10785
10831
|
// src/components/molecules/display/page-header.tsx
|
|
10786
|
-
import { jsx as
|
|
10832
|
+
import { jsx as jsx37, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
10787
10833
|
function PageHeader({
|
|
10788
10834
|
children,
|
|
10789
10835
|
className
|
|
10790
10836
|
}) {
|
|
10791
|
-
return /* @__PURE__ */
|
|
10837
|
+
return /* @__PURE__ */ jsx37(
|
|
10792
10838
|
"header",
|
|
10793
10839
|
{
|
|
10794
10840
|
className: cn(
|
|
@@ -10803,7 +10849,7 @@ function PageHeaderTitleContent({
|
|
|
10803
10849
|
children,
|
|
10804
10850
|
className
|
|
10805
10851
|
}) {
|
|
10806
|
-
return /* @__PURE__ */
|
|
10852
|
+
return /* @__PURE__ */ jsx37(
|
|
10807
10853
|
"div",
|
|
10808
10854
|
{
|
|
10809
10855
|
className: cn(
|
|
@@ -10821,15 +10867,15 @@ function PageHeaderTitle({
|
|
|
10821
10867
|
}) {
|
|
10822
10868
|
const ComponentTitle = titleAs;
|
|
10823
10869
|
return /* @__PURE__ */ jsxs12("div", { children: [
|
|
10824
|
-
/* @__PURE__ */
|
|
10825
|
-
description && /* @__PURE__ */
|
|
10870
|
+
/* @__PURE__ */ jsx37(ComponentTitle, { className: "cnc-text-2xl cnc-font-semibold cnc-text-brand-blue-600", children: title }),
|
|
10871
|
+
description && /* @__PURE__ */ jsx37("p", { className: "cnc-text-sm cnc-text-brand-gray-500", children: description })
|
|
10826
10872
|
] });
|
|
10827
10873
|
}
|
|
10828
10874
|
function PageHeaderActionsContainer({
|
|
10829
10875
|
children,
|
|
10830
10876
|
className
|
|
10831
10877
|
}) {
|
|
10832
|
-
return /* @__PURE__ */
|
|
10878
|
+
return /* @__PURE__ */ jsx37(
|
|
10833
10879
|
"div",
|
|
10834
10880
|
{
|
|
10835
10881
|
className: cn(
|
|
@@ -10841,14 +10887,14 @@ function PageHeaderActionsContainer({
|
|
|
10841
10887
|
);
|
|
10842
10888
|
}
|
|
10843
10889
|
function Title2({ title, as: Component = "h1" }) {
|
|
10844
|
-
return /* @__PURE__ */
|
|
10890
|
+
return /* @__PURE__ */ jsx37(Component, { className: "cnc-text-[24px] cnc-text-[#1F2C4D] cnc-font-bold cnc-mt-2 cnc-mb-4 text-center md:cnc-text-[28px] md:cnc-text-left", children: title });
|
|
10845
10891
|
}
|
|
10846
10892
|
|
|
10847
10893
|
// src/components/molecules/forms/combobox.tsx
|
|
10848
|
-
import * as
|
|
10894
|
+
import * as React64 from "react";
|
|
10849
10895
|
|
|
10850
10896
|
// src/components/molecules/overlay/command.tsx
|
|
10851
|
-
import * as
|
|
10897
|
+
import * as React62 from "react";
|
|
10852
10898
|
|
|
10853
10899
|
// ../../node_modules/cmdk/dist/chunk-NZJY6EH4.mjs
|
|
10854
10900
|
var U = 1;
|
|
@@ -10882,10 +10928,10 @@ import * as w from "@radix-ui/react-dialog";
|
|
|
10882
10928
|
import * as t from "react";
|
|
10883
10929
|
|
|
10884
10930
|
// ../../node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
10885
|
-
import * as
|
|
10931
|
+
import * as React60 from "react";
|
|
10886
10932
|
import * as ReactDOM6 from "react-dom";
|
|
10887
10933
|
import { createSlot as createSlot3 } from "@radix-ui/react-slot";
|
|
10888
|
-
import { jsx as
|
|
10934
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
10889
10935
|
var NODES3 = [
|
|
10890
10936
|
"a",
|
|
10891
10937
|
"button",
|
|
@@ -10907,20 +10953,20 @@ var NODES3 = [
|
|
|
10907
10953
|
];
|
|
10908
10954
|
var Primitive3 = NODES3.reduce((primitive, node) => {
|
|
10909
10955
|
const Slot7 = createSlot3(`Primitive.${node}`);
|
|
10910
|
-
const Node2 =
|
|
10956
|
+
const Node2 = React60.forwardRef((props, forwardedRef) => {
|
|
10911
10957
|
const { asChild, ...primitiveProps } = props;
|
|
10912
10958
|
const Comp = asChild ? Slot7 : node;
|
|
10913
10959
|
if (typeof window !== "undefined") {
|
|
10914
10960
|
window[Symbol.for("radix-ui")] = true;
|
|
10915
10961
|
}
|
|
10916
|
-
return /* @__PURE__ */
|
|
10962
|
+
return /* @__PURE__ */ jsx38(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
10917
10963
|
});
|
|
10918
10964
|
Node2.displayName = `Primitive.${node}`;
|
|
10919
10965
|
return { ...primitive, [node]: Node2 };
|
|
10920
10966
|
}, {});
|
|
10921
10967
|
|
|
10922
10968
|
// ../../node_modules/cmdk/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
10923
|
-
import * as
|
|
10969
|
+
import * as React61 from "react";
|
|
10924
10970
|
function setRef3(ref, value) {
|
|
10925
10971
|
if (typeof ref === "function") {
|
|
10926
10972
|
return ref(value);
|
|
@@ -11270,8 +11316,8 @@ function B2({ asChild: r2, children: o }, n) {
|
|
|
11270
11316
|
var Te = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
11271
11317
|
|
|
11272
11318
|
// src/components/molecules/overlay/command.tsx
|
|
11273
|
-
import { jsx as
|
|
11274
|
-
var Command =
|
|
11319
|
+
import { jsx as jsx39, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
11320
|
+
var Command = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39(
|
|
11275
11321
|
_e,
|
|
11276
11322
|
{
|
|
11277
11323
|
ref,
|
|
@@ -11284,16 +11330,16 @@ var Command = React61.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
11284
11330
|
));
|
|
11285
11331
|
Command.displayName = _e.displayName;
|
|
11286
11332
|
var CommandDialog = ({ children, ...props }) => {
|
|
11287
|
-
return /* @__PURE__ */
|
|
11333
|
+
return /* @__PURE__ */ jsx39(Dialog, { ...props, children: /* @__PURE__ */ jsx39(DialogContent, { className: "cnc-overflow-hidden cnc-p-0", children: /* @__PURE__ */ jsx39(Command, { className: "cnc-[&_cmdk-group-heading]:cnc-px-2 cnc-[&_cmdk-group-heading]:cnc-font-medium cnc-[&_cmdk-group-heading]:cnc-text-muted-foreground cnc-[&_cmdk-group]:not([hidden])~[cmdk-group]:cnc-pt-0 cnc-[&_cmdk-group]:cnc-px-2 cnc-[&_cmdk-input-wrapper]_svg:cnc-h-5 cnc-[&_cmdk-input-wrapper]_svg:cnc-w-5 cnc-[&_cmdk-input]:cnc-h-12 cnc-[&_cmdk-item]:cnc-px-2 cnc-[&_cmdk-item]:cnc-py-3 cnc-[&_cmdk-item]_svg:cnc-h-5 cnc-[&_cmdk-item]_svg:cnc-w-5", children }) }) });
|
|
11288
11334
|
};
|
|
11289
|
-
var CommandInput =
|
|
11335
|
+
var CommandInput = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs13(
|
|
11290
11336
|
"div",
|
|
11291
11337
|
{
|
|
11292
11338
|
className: "cnc-flex cnc-items-center cnc-border-b cnc-px-3",
|
|
11293
11339
|
"cmdk-input-wrapper": "",
|
|
11294
11340
|
children: [
|
|
11295
|
-
/* @__PURE__ */
|
|
11296
|
-
/* @__PURE__ */
|
|
11341
|
+
/* @__PURE__ */ jsx39(Search, { className: "cnc-mr-2 cnc-h-4 cnc-w-4 cnc-shrink-0 cnc-opacity-50" }),
|
|
11342
|
+
/* @__PURE__ */ jsx39(
|
|
11297
11343
|
_e.Input,
|
|
11298
11344
|
{
|
|
11299
11345
|
ref,
|
|
@@ -11308,7 +11354,7 @@ var CommandInput = React61.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
11308
11354
|
}
|
|
11309
11355
|
));
|
|
11310
11356
|
CommandInput.displayName = _e.Input.displayName;
|
|
11311
|
-
var CommandList =
|
|
11357
|
+
var CommandList = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39(
|
|
11312
11358
|
_e.List,
|
|
11313
11359
|
{
|
|
11314
11360
|
ref,
|
|
@@ -11320,7 +11366,7 @@ var CommandList = React61.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
11320
11366
|
}
|
|
11321
11367
|
));
|
|
11322
11368
|
CommandList.displayName = _e.List.displayName;
|
|
11323
|
-
var CommandEmpty =
|
|
11369
|
+
var CommandEmpty = React62.forwardRef((props, ref) => /* @__PURE__ */ jsx39(
|
|
11324
11370
|
_e.Empty,
|
|
11325
11371
|
{
|
|
11326
11372
|
ref,
|
|
@@ -11329,7 +11375,7 @@ var CommandEmpty = React61.forwardRef((props, ref) => /* @__PURE__ */ jsx38(
|
|
|
11329
11375
|
}
|
|
11330
11376
|
));
|
|
11331
11377
|
CommandEmpty.displayName = _e.Empty.displayName;
|
|
11332
|
-
var CommandGroup =
|
|
11378
|
+
var CommandGroup = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39(
|
|
11333
11379
|
_e.Group,
|
|
11334
11380
|
{
|
|
11335
11381
|
ref,
|
|
@@ -11341,7 +11387,7 @@ var CommandGroup = React61.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
11341
11387
|
}
|
|
11342
11388
|
));
|
|
11343
11389
|
CommandGroup.displayName = _e.Group.displayName;
|
|
11344
|
-
var CommandSeparator =
|
|
11390
|
+
var CommandSeparator = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39(
|
|
11345
11391
|
_e.Separator,
|
|
11346
11392
|
{
|
|
11347
11393
|
ref,
|
|
@@ -11350,12 +11396,12 @@ var CommandSeparator = React61.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
11350
11396
|
}
|
|
11351
11397
|
));
|
|
11352
11398
|
CommandSeparator.displayName = _e.Separator.displayName;
|
|
11353
|
-
var CommandItem =
|
|
11399
|
+
var CommandItem = React62.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx39(
|
|
11354
11400
|
_e.Item,
|
|
11355
11401
|
{
|
|
11356
11402
|
ref,
|
|
11357
11403
|
className: cn(
|
|
11358
|
-
"cnc-relative cnc-flex cnc-cursor-default cnc-gap-2 cnc-select-none cnc-items-center cnc-rounded-sm cnc-px-2 cnc-py-1.5 cnc-text-sm cnc-outline-none data-[disabled=true]:cnc-pointer-events-none data-[disabled=true]:cnc-opacity-50 data-[selected=true]:cnc-bg-accent data-[selected=true]:cnc-text-accent-foreground
|
|
11404
|
+
"cnc-relative cnc-flex cnc-cursor-default cnc-gap-2 cnc-select-none cnc-items-center cnc-rounded-sm cnc-px-2 cnc-py-1.5 cnc-text-sm cnc-outline-none data-[disabled=true]:cnc-pointer-events-none data-[disabled=true]:cnc-opacity-50 data-[selected=true]:cnc-bg-accent data-[selected=true]:cnc-text-accent-foreground [&_svg]:cnc-pointer-events-none [&_svg]:cnc-size-4 [&_svg]:cnc-shrink-0",
|
|
11359
11405
|
className
|
|
11360
11406
|
),
|
|
11361
11407
|
...props
|
|
@@ -11366,7 +11412,7 @@ var CommandShortcut = ({
|
|
|
11366
11412
|
className,
|
|
11367
11413
|
...props
|
|
11368
11414
|
}) => {
|
|
11369
|
-
return /* @__PURE__ */
|
|
11415
|
+
return /* @__PURE__ */ jsx39(
|
|
11370
11416
|
"span",
|
|
11371
11417
|
{
|
|
11372
11418
|
className: cn(
|
|
@@ -11380,11 +11426,11 @@ var CommandShortcut = ({
|
|
|
11380
11426
|
CommandShortcut.displayName = "CommandShortcut";
|
|
11381
11427
|
|
|
11382
11428
|
// src/components/molecules/overlay/popover.tsx
|
|
11383
|
-
import * as
|
|
11384
|
-
import { jsx as
|
|
11429
|
+
import * as React63 from "react";
|
|
11430
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
11385
11431
|
var Popover3 = Root24;
|
|
11386
11432
|
var PopoverTrigger3 = Trigger4;
|
|
11387
|
-
var PopoverContent3 =
|
|
11433
|
+
var PopoverContent3 = React63.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx40(Portal5, { children: /* @__PURE__ */ jsx40(
|
|
11388
11434
|
Content23,
|
|
11389
11435
|
{
|
|
11390
11436
|
ref,
|
|
@@ -11400,7 +11446,7 @@ var PopoverContent3 = React62.forwardRef(({ className, align = "center", sideOff
|
|
|
11400
11446
|
PopoverContent3.displayName = Content23.displayName;
|
|
11401
11447
|
|
|
11402
11448
|
// src/components/molecules/forms/combobox.tsx
|
|
11403
|
-
import { jsx as
|
|
11449
|
+
import { jsx as jsx41, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
11404
11450
|
function Combobox({
|
|
11405
11451
|
options,
|
|
11406
11452
|
placeholder = "",
|
|
@@ -11408,9 +11454,9 @@ function Combobox({
|
|
|
11408
11454
|
onChange,
|
|
11409
11455
|
value = ""
|
|
11410
11456
|
}) {
|
|
11411
|
-
const [open, setOpen] =
|
|
11457
|
+
const [open, setOpen] = React64.useState(false);
|
|
11412
11458
|
return /* @__PURE__ */ jsxs14(Popover3, { open, onOpenChange: setOpen, children: [
|
|
11413
|
-
/* @__PURE__ */
|
|
11459
|
+
/* @__PURE__ */ jsx41(PopoverTrigger3, { asChild: true, children: /* @__PURE__ */ jsxs14(
|
|
11414
11460
|
Button,
|
|
11415
11461
|
{
|
|
11416
11462
|
variant: "outline",
|
|
@@ -11418,21 +11464,21 @@ function Combobox({
|
|
|
11418
11464
|
"aria-expanded": open,
|
|
11419
11465
|
className: "cnc-w-full cnc-justify-between cnc-truncate ",
|
|
11420
11466
|
children: [
|
|
11421
|
-
/* @__PURE__ */
|
|
11422
|
-
/* @__PURE__ */
|
|
11467
|
+
/* @__PURE__ */ jsx41("div", { children: value ? options?.find((framework) => framework.value === value)?.label : placeholder }),
|
|
11468
|
+
/* @__PURE__ */ jsx41(ChevronsUpDown, { className: "cnc-ml-2 cnc-h-4 cnc-w-4 cnc-shrink-0 cnc-opacity-50" })
|
|
11423
11469
|
]
|
|
11424
11470
|
}
|
|
11425
11471
|
) }),
|
|
11426
|
-
/* @__PURE__ */
|
|
11472
|
+
/* @__PURE__ */ jsx41(
|
|
11427
11473
|
PopoverContent3,
|
|
11428
11474
|
{
|
|
11429
11475
|
align: "start",
|
|
11430
11476
|
className: "cnc-w-[--radix-popover-trigger-width] cnc-p-0",
|
|
11431
11477
|
children: /* @__PURE__ */ jsxs14(Command, { children: [
|
|
11432
|
-
/* @__PURE__ */
|
|
11478
|
+
/* @__PURE__ */ jsx41(CommandInput, { placeholder: command?.placeholder }),
|
|
11433
11479
|
/* @__PURE__ */ jsxs14(CommandList, { children: [
|
|
11434
|
-
/* @__PURE__ */
|
|
11435
|
-
/* @__PURE__ */
|
|
11480
|
+
/* @__PURE__ */ jsx41(CommandEmpty, { children: command?.emptyMessage ?? "Nenhum item encontrado" }),
|
|
11481
|
+
/* @__PURE__ */ jsx41(CommandGroup, { children: options?.map((option) => /* @__PURE__ */ jsxs14(
|
|
11436
11482
|
CommandItem,
|
|
11437
11483
|
{
|
|
11438
11484
|
value: option.value,
|
|
@@ -11443,7 +11489,7 @@ function Combobox({
|
|
|
11443
11489
|
},
|
|
11444
11490
|
keywords: [option.value, option.label],
|
|
11445
11491
|
children: [
|
|
11446
|
-
/* @__PURE__ */
|
|
11492
|
+
/* @__PURE__ */ jsx41(
|
|
11447
11493
|
Check,
|
|
11448
11494
|
{
|
|
11449
11495
|
className: cn(
|
|
@@ -11543,6 +11589,10 @@ export {
|
|
|
11543
11589
|
SidebarImageBrand,
|
|
11544
11590
|
SidebarNavCollapse,
|
|
11545
11591
|
SidebarNavLink,
|
|
11592
|
+
Tabs,
|
|
11593
|
+
TabsContent,
|
|
11594
|
+
TabsList,
|
|
11595
|
+
TabsTrigger,
|
|
11546
11596
|
Title2 as Title,
|
|
11547
11597
|
buttonVariants
|
|
11548
11598
|
};
|