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