@cnc-ti/layout-basic 8.3.12 → 8.3.13
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 +9 -11
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +92 -59
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +91 -59
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -43,6 +43,7 @@ __export(src_exports, {
|
|
|
43
43
|
CardFooter: () => CardFooter,
|
|
44
44
|
CardFooterItem: () => CardFooterItem,
|
|
45
45
|
CardHeader: () => CardHeader,
|
|
46
|
+
Checkbox: () => Checkbox,
|
|
46
47
|
Collapsible: () => Collapsible,
|
|
47
48
|
CollapsibleContent: () => AnimatedCollapsibleContent,
|
|
48
49
|
CollapsibleTrigger: () => CollapsibleTrigger2,
|
|
@@ -2768,13 +2769,12 @@ var buttonVariants = cva(
|
|
|
2768
2769
|
{
|
|
2769
2770
|
variants: {
|
|
2770
2771
|
variant: {
|
|
2771
|
-
default: "cnc-bg-primary cnc-text-primary-foreground hover:cnc-bg-primary/90",
|
|
2772
2772
|
confirm: "cnc-bg-brand-blue-400 cnc-border-brand-blue-500 hover:cnc-bg-brand-blue-400/90",
|
|
2773
2773
|
create: "cnc-bg-brand-green-100 cnc-border-brand-green-200 hover:cnc-bg-brand-green-100/80",
|
|
2774
2774
|
secondary: "cnc-bg-brand-gray-20 cnc-text-secondary-foreground hover:cnc-brightness-95",
|
|
2775
2775
|
danger: "cnc-bg-brand-red-500 cnc-border-brand-red-600 hover:cnc-bg-brand-red-500/80",
|
|
2776
|
-
|
|
2777
|
-
|
|
2776
|
+
outline: "cnc-border cnc-border-input cnc-text-brand-gray-200 cnc-bg-background cnc-shadow-sm hover:cnc-bg-brand-blue-50 cnc-text-accent-foreground",
|
|
2777
|
+
default: "cnc-bg-primary cnc-text-primary-foreground hover:cnc-bg-primary/90"
|
|
2778
2778
|
},
|
|
2779
2779
|
size: {
|
|
2780
2780
|
default: "cnc-h-10 cnc-px-4 cnc-py-2",
|
|
@@ -10175,7 +10175,7 @@ function Sidebar({ children, ...rest }) {
|
|
|
10175
10175
|
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Accordion.Root, { ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
10176
10176
|
"div",
|
|
10177
10177
|
{
|
|
10178
|
-
className: "cnc-w-full cnc-h-screen-minus-70 cnc-flex cnc-flex-col cnc-py-8 cnc-bg-primary-800 cnc-px-5 \
|
|
10178
|
+
className: "cnc-w-full cnc-h-screen-minus-70 cnc-flex cnc-flex-col cnc-py-8 cnc-bg-primary-800 cnc-px-5 \n cnc-scroll-smooth cnc-overflow-y-auto\n [&::-webkit-scrollbar]:cnc-w-1\n [&::-webkit-scrollbar-track]:cnc-bg-brand-blue-500\n [&::-webkit-scrollbar-thumb]:cnc-rounded\n [&::-webkit-scrollbar-thumb]:cnc-border\n [&::-webkit-scrollbar-thumb]:cnc-border-solid\n [&::-webkit-scrollbar-thumb]:cnc-border-brand-gray-400\n [&::-webkit-scrollbar-thumb]:cnc-bg-brand-gray-200\n cnc-sidebar-child-w-0",
|
|
10179
10179
|
children
|
|
10180
10180
|
}
|
|
10181
10181
|
) });
|
|
@@ -12207,8 +12207,39 @@ var Input = React74.forwardRef(
|
|
|
12207
12207
|
);
|
|
12208
12208
|
Input.displayName = "Input";
|
|
12209
12209
|
|
|
12210
|
-
// src/components/atoms/
|
|
12210
|
+
// src/components/atoms/forms/checkbox.tsx
|
|
12211
|
+
var React75 = __toESM(require("react"));
|
|
12211
12212
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
12213
|
+
var Checkbox = React75.forwardRef(
|
|
12214
|
+
({ className, id, label, ...props }, ref) => {
|
|
12215
|
+
console.log();
|
|
12216
|
+
const idGenerate = id ? id : label && `field-${Date.now()}-${Math.random() * 1e5}`;
|
|
12217
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "cnc-w-full cnc-flex cnc-flex-row", children: [
|
|
12218
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
12219
|
+
"input",
|
|
12220
|
+
{
|
|
12221
|
+
type: "checkbox",
|
|
12222
|
+
id: idGenerate,
|
|
12223
|
+
className: cn("cnc-w-6 cnc-h-6", className),
|
|
12224
|
+
ref,
|
|
12225
|
+
...props
|
|
12226
|
+
}
|
|
12227
|
+
),
|
|
12228
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
12229
|
+
"label",
|
|
12230
|
+
{
|
|
12231
|
+
htmlFor: idGenerate,
|
|
12232
|
+
className: "cnc-block cnc-text-sm cnc-font-medium cnc-text-brand-gray-600 cnc-ml-2",
|
|
12233
|
+
children: label
|
|
12234
|
+
}
|
|
12235
|
+
)
|
|
12236
|
+
] });
|
|
12237
|
+
}
|
|
12238
|
+
);
|
|
12239
|
+
Checkbox.displayName = "Checkbox";
|
|
12240
|
+
|
|
12241
|
+
// src/components/atoms/display/badge.tsx
|
|
12242
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
12212
12243
|
var Badge = ({
|
|
12213
12244
|
variant = "default",
|
|
12214
12245
|
rounded = true,
|
|
@@ -12230,7 +12261,7 @@ var Badge = ({
|
|
|
12230
12261
|
md: "cnc-text-sm cnc-px-3 cnc-py-1",
|
|
12231
12262
|
lg: "cnc-text-base cnc-px-4 cnc-py-2"
|
|
12232
12263
|
};
|
|
12233
|
-
return /* @__PURE__ */ (0,
|
|
12264
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
12234
12265
|
"span",
|
|
12235
12266
|
{
|
|
12236
12267
|
className: cn(
|
|
@@ -12246,12 +12277,12 @@ var Badge = ({
|
|
|
12246
12277
|
};
|
|
12247
12278
|
|
|
12248
12279
|
// src/components/molecules/card.tsx
|
|
12249
|
-
var
|
|
12280
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
12250
12281
|
function Card({
|
|
12251
12282
|
className,
|
|
12252
12283
|
...rest
|
|
12253
12284
|
}) {
|
|
12254
|
-
return /* @__PURE__ */ (0,
|
|
12285
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
12255
12286
|
"div",
|
|
12256
12287
|
{
|
|
12257
12288
|
className: cn(
|
|
@@ -12266,7 +12297,7 @@ function CardHeader({
|
|
|
12266
12297
|
className,
|
|
12267
12298
|
...rest
|
|
12268
12299
|
}) {
|
|
12269
|
-
return /* @__PURE__ */ (0,
|
|
12300
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "cnc-px-6 cnc-pt-6", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
12270
12301
|
"div",
|
|
12271
12302
|
{
|
|
12272
12303
|
className: cn(
|
|
@@ -12281,13 +12312,13 @@ function CardContent({
|
|
|
12281
12312
|
className,
|
|
12282
12313
|
...rest
|
|
12283
12314
|
}) {
|
|
12284
|
-
return /* @__PURE__ */ (0,
|
|
12315
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: cn("cnc-px-6 cnc-py-2", className), ...rest });
|
|
12285
12316
|
}
|
|
12286
12317
|
function CardFooter({
|
|
12287
12318
|
className,
|
|
12288
12319
|
...rest
|
|
12289
12320
|
}) {
|
|
12290
|
-
return /* @__PURE__ */ (0,
|
|
12321
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
12291
12322
|
"div",
|
|
12292
12323
|
{
|
|
12293
12324
|
className: cn(
|
|
@@ -12302,7 +12333,7 @@ function CardFooterItem({
|
|
|
12302
12333
|
className,
|
|
12303
12334
|
...rest
|
|
12304
12335
|
}) {
|
|
12305
|
-
return /* @__PURE__ */ (0,
|
|
12336
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
12306
12337
|
"div",
|
|
12307
12338
|
{
|
|
12308
12339
|
className: cn(
|
|
@@ -12316,7 +12347,7 @@ function CardFooterItem({
|
|
|
12316
12347
|
|
|
12317
12348
|
// src/components/molecules/collapsible.tsx
|
|
12318
12349
|
var CollapsiblePrimitive = __toESM(require("@radix-ui/react-collapsible"));
|
|
12319
|
-
var
|
|
12350
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
12320
12351
|
var Collapsible = CollapsiblePrimitive.Root;
|
|
12321
12352
|
var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
|
12322
12353
|
var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
@@ -12324,16 +12355,16 @@ var AnimatedCollapsibleContent = ({
|
|
|
12324
12355
|
className,
|
|
12325
12356
|
...rest
|
|
12326
12357
|
}) => {
|
|
12327
|
-
return /* @__PURE__ */ (0,
|
|
12358
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(CollapsibleContent2, { className: "cnc-collapsible-content", ...rest });
|
|
12328
12359
|
};
|
|
12329
12360
|
|
|
12330
12361
|
// src/components/molecules/display/page-header.tsx
|
|
12331
|
-
var
|
|
12362
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
12332
12363
|
function PageHeader({
|
|
12333
12364
|
children,
|
|
12334
12365
|
className
|
|
12335
12366
|
}) {
|
|
12336
|
-
return /* @__PURE__ */ (0,
|
|
12367
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
12337
12368
|
"header",
|
|
12338
12369
|
{
|
|
12339
12370
|
className: cn(
|
|
@@ -12348,7 +12379,7 @@ function PageHeaderTitleContent({
|
|
|
12348
12379
|
children,
|
|
12349
12380
|
className
|
|
12350
12381
|
}) {
|
|
12351
|
-
return /* @__PURE__ */ (0,
|
|
12382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
12352
12383
|
"div",
|
|
12353
12384
|
{
|
|
12354
12385
|
className: cn(
|
|
@@ -12365,16 +12396,16 @@ function PageHeaderTitle({
|
|
|
12365
12396
|
titleAs = "h1"
|
|
12366
12397
|
}) {
|
|
12367
12398
|
const ComponentTitle = titleAs;
|
|
12368
|
-
return /* @__PURE__ */ (0,
|
|
12369
|
-
/* @__PURE__ */ (0,
|
|
12370
|
-
description && /* @__PURE__ */ (0,
|
|
12399
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { children: [
|
|
12400
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(ComponentTitle, { className: "cnc-text-2xl cnc-font-semibold cnc-text-brand-blue-600", children: title }),
|
|
12401
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: "cnc-text-sm cnc-text-brand-gray-500", children: description })
|
|
12371
12402
|
] });
|
|
12372
12403
|
}
|
|
12373
12404
|
function PageHeaderActionsContainer({
|
|
12374
12405
|
children,
|
|
12375
12406
|
className
|
|
12376
12407
|
}) {
|
|
12377
|
-
return /* @__PURE__ */ (0,
|
|
12408
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
12378
12409
|
"div",
|
|
12379
12410
|
{
|
|
12380
12411
|
className: cn(
|
|
@@ -12386,14 +12417,14 @@ function PageHeaderActionsContainer({
|
|
|
12386
12417
|
);
|
|
12387
12418
|
}
|
|
12388
12419
|
function Title2({ title, as: Component = "h1" }) {
|
|
12389
|
-
return /* @__PURE__ */ (0,
|
|
12420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(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 });
|
|
12390
12421
|
}
|
|
12391
12422
|
|
|
12392
12423
|
// src/components/molecules/forms/combobox.tsx
|
|
12393
|
-
var
|
|
12424
|
+
var React80 = __toESM(require("react"));
|
|
12394
12425
|
|
|
12395
12426
|
// src/components/molecules/overlay/command.tsx
|
|
12396
|
-
var
|
|
12427
|
+
var React78 = __toESM(require("react"));
|
|
12397
12428
|
|
|
12398
12429
|
// ../../node_modules/cmdk/dist/chunk-NZJY6EH4.mjs
|
|
12399
12430
|
var U = 1;
|
|
@@ -12426,10 +12457,10 @@ function W(_, C, h) {
|
|
|
12426
12457
|
var t = __toESM(require("react"), 1);
|
|
12427
12458
|
|
|
12428
12459
|
// ../../node_modules/cmdk/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
12429
|
-
var
|
|
12460
|
+
var React76 = __toESM(require("react"), 1);
|
|
12430
12461
|
var ReactDOM8 = __toESM(require("react-dom"), 1);
|
|
12431
12462
|
var import_react_slot10 = require("@radix-ui/react-slot");
|
|
12432
|
-
var
|
|
12463
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
12433
12464
|
var NODES4 = [
|
|
12434
12465
|
"a",
|
|
12435
12466
|
"button",
|
|
@@ -12451,20 +12482,20 @@ var NODES4 = [
|
|
|
12451
12482
|
];
|
|
12452
12483
|
var Primitive4 = NODES4.reduce((primitive, node) => {
|
|
12453
12484
|
const Slot8 = (0, import_react_slot10.createSlot)(`Primitive.${node}`);
|
|
12454
|
-
const Node2 =
|
|
12485
|
+
const Node2 = React76.forwardRef((props, forwardedRef) => {
|
|
12455
12486
|
const { asChild, ...primitiveProps } = props;
|
|
12456
12487
|
const Comp = asChild ? Slot8 : node;
|
|
12457
12488
|
if (typeof window !== "undefined") {
|
|
12458
12489
|
window[Symbol.for("radix-ui")] = true;
|
|
12459
12490
|
}
|
|
12460
|
-
return /* @__PURE__ */ (0,
|
|
12491
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
12461
12492
|
});
|
|
12462
12493
|
Node2.displayName = `Primitive.${node}`;
|
|
12463
12494
|
return { ...primitive, [node]: Node2 };
|
|
12464
12495
|
}, {});
|
|
12465
12496
|
|
|
12466
12497
|
// ../../node_modules/cmdk/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
12467
|
-
var
|
|
12498
|
+
var React77 = __toESM(require("react"), 1);
|
|
12468
12499
|
function setRef4(ref, value) {
|
|
12469
12500
|
if (typeof ref === "function") {
|
|
12470
12501
|
return ref(value);
|
|
@@ -12814,8 +12845,8 @@ function B2({ asChild: r2, children: o }, n) {
|
|
|
12814
12845
|
var Te = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
12815
12846
|
|
|
12816
12847
|
// src/components/molecules/overlay/command.tsx
|
|
12817
|
-
var
|
|
12818
|
-
var Command =
|
|
12848
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
12849
|
+
var Command = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
12819
12850
|
_e,
|
|
12820
12851
|
{
|
|
12821
12852
|
ref,
|
|
@@ -12828,16 +12859,16 @@ var Command = React77.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
12828
12859
|
));
|
|
12829
12860
|
Command.displayName = _e.displayName;
|
|
12830
12861
|
var CommandDialog = ({ children, ...props }) => {
|
|
12831
|
-
return /* @__PURE__ */ (0,
|
|
12862
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Dialog2, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(DialogContent2, { className: "cnc-overflow-hidden cnc-p-0", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(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 }) }) });
|
|
12832
12863
|
};
|
|
12833
|
-
var CommandInput =
|
|
12864
|
+
var CommandInput = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
12834
12865
|
"div",
|
|
12835
12866
|
{
|
|
12836
12867
|
className: "cnc-flex cnc-items-center cnc-border-b cnc-px-3",
|
|
12837
12868
|
"cmdk-input-wrapper": "",
|
|
12838
12869
|
children: [
|
|
12839
|
-
/* @__PURE__ */ (0,
|
|
12840
|
-
/* @__PURE__ */ (0,
|
|
12870
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Search, { className: "cnc-mr-2 cnc-h-4 cnc-w-4 cnc-shrink-0 cnc-opacity-50" }),
|
|
12871
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
12841
12872
|
_e.Input,
|
|
12842
12873
|
{
|
|
12843
12874
|
ref,
|
|
@@ -12852,7 +12883,7 @@ var CommandInput = React77.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
12852
12883
|
}
|
|
12853
12884
|
));
|
|
12854
12885
|
CommandInput.displayName = _e.Input.displayName;
|
|
12855
|
-
var CommandList =
|
|
12886
|
+
var CommandList = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
12856
12887
|
_e.List,
|
|
12857
12888
|
{
|
|
12858
12889
|
ref,
|
|
@@ -12864,7 +12895,7 @@ var CommandList = React77.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
12864
12895
|
}
|
|
12865
12896
|
));
|
|
12866
12897
|
CommandList.displayName = _e.List.displayName;
|
|
12867
|
-
var CommandEmpty =
|
|
12898
|
+
var CommandEmpty = React78.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
12868
12899
|
_e.Empty,
|
|
12869
12900
|
{
|
|
12870
12901
|
ref,
|
|
@@ -12873,7 +12904,7 @@ var CommandEmpty = React77.forwardRef((props, ref) => /* @__PURE__ */ (0, import
|
|
|
12873
12904
|
}
|
|
12874
12905
|
));
|
|
12875
12906
|
CommandEmpty.displayName = _e.Empty.displayName;
|
|
12876
|
-
var CommandGroup =
|
|
12907
|
+
var CommandGroup = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
12877
12908
|
_e.Group,
|
|
12878
12909
|
{
|
|
12879
12910
|
ref,
|
|
@@ -12885,7 +12916,7 @@ var CommandGroup = React77.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
12885
12916
|
}
|
|
12886
12917
|
));
|
|
12887
12918
|
CommandGroup.displayName = _e.Group.displayName;
|
|
12888
|
-
var CommandSeparator =
|
|
12919
|
+
var CommandSeparator = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
12889
12920
|
_e.Separator,
|
|
12890
12921
|
{
|
|
12891
12922
|
ref,
|
|
@@ -12894,7 +12925,7 @@ var CommandSeparator = React77.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
12894
12925
|
}
|
|
12895
12926
|
));
|
|
12896
12927
|
CommandSeparator.displayName = _e.Separator.displayName;
|
|
12897
|
-
var CommandItem =
|
|
12928
|
+
var CommandItem = React78.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
12898
12929
|
_e.Item,
|
|
12899
12930
|
{
|
|
12900
12931
|
ref,
|
|
@@ -12910,7 +12941,7 @@ var CommandShortcut = ({
|
|
|
12910
12941
|
className,
|
|
12911
12942
|
...props
|
|
12912
12943
|
}) => {
|
|
12913
|
-
return /* @__PURE__ */ (0,
|
|
12944
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
12914
12945
|
"span",
|
|
12915
12946
|
{
|
|
12916
12947
|
className: cn(
|
|
@@ -12924,11 +12955,11 @@ var CommandShortcut = ({
|
|
|
12924
12955
|
CommandShortcut.displayName = "CommandShortcut";
|
|
12925
12956
|
|
|
12926
12957
|
// src/components/molecules/overlay/popover.tsx
|
|
12927
|
-
var
|
|
12928
|
-
var
|
|
12958
|
+
var React79 = __toESM(require("react"));
|
|
12959
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
12929
12960
|
var Popover3 = Root24;
|
|
12930
12961
|
var PopoverTrigger3 = Trigger4;
|
|
12931
|
-
var PopoverContent3 =
|
|
12962
|
+
var PopoverContent3 = React79.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Portal6, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
12932
12963
|
Content23,
|
|
12933
12964
|
{
|
|
12934
12965
|
ref,
|
|
@@ -12944,7 +12975,7 @@ var PopoverContent3 = React78.forwardRef(({ className, align = "center", sideOff
|
|
|
12944
12975
|
PopoverContent3.displayName = Content23.displayName;
|
|
12945
12976
|
|
|
12946
12977
|
// src/components/molecules/forms/combobox.tsx
|
|
12947
|
-
var
|
|
12978
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
12948
12979
|
function Combobox({
|
|
12949
12980
|
options,
|
|
12950
12981
|
placeholder = "",
|
|
@@ -12952,30 +12983,31 @@ function Combobox({
|
|
|
12952
12983
|
onChange,
|
|
12953
12984
|
value = ""
|
|
12954
12985
|
}) {
|
|
12955
|
-
const [open, setOpen] =
|
|
12956
|
-
return /* @__PURE__ */ (0,
|
|
12957
|
-
/* @__PURE__ */ (0,
|
|
12958
|
-
|
|
12986
|
+
const [open, setOpen] = React80.useState(false);
|
|
12987
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(Popover3, { open, onOpenChange: setOpen, children: [
|
|
12988
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(PopoverTrigger3, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
12989
|
+
Button,
|
|
12959
12990
|
{
|
|
12991
|
+
variant: "outline",
|
|
12960
12992
|
role: "combobox",
|
|
12961
12993
|
"aria-expanded": open,
|
|
12962
|
-
className: "cnc-
|
|
12994
|
+
className: "cnc-w-full cnc-justify-between",
|
|
12963
12995
|
children: [
|
|
12964
|
-
|
|
12965
|
-
/* @__PURE__ */ (0,
|
|
12996
|
+
value ? options?.find((framework) => framework.value === value)?.label : placeholder,
|
|
12997
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(ChevronsUpDown, { className: "cnc-ml-2 cnc-h-4 cnc-w-4 cnc-shrink-0 cnc-opacity-50" })
|
|
12966
12998
|
]
|
|
12967
12999
|
}
|
|
12968
13000
|
) }),
|
|
12969
|
-
/* @__PURE__ */ (0,
|
|
13001
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
12970
13002
|
PopoverContent3,
|
|
12971
13003
|
{
|
|
12972
13004
|
align: "start",
|
|
12973
13005
|
className: "cnc-w-[--radix-popover-trigger-width] cnc-p-0",
|
|
12974
|
-
children: /* @__PURE__ */ (0,
|
|
12975
|
-
/* @__PURE__ */ (0,
|
|
12976
|
-
/* @__PURE__ */ (0,
|
|
12977
|
-
/* @__PURE__ */ (0,
|
|
12978
|
-
/* @__PURE__ */ (0,
|
|
13006
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(Command, { children: [
|
|
13007
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(CommandInput, { placeholder: command?.placeholder }),
|
|
13008
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(CommandList, { children: [
|
|
13009
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(CommandEmpty, { children: command?.emptyMessage ?? "Nenhum item encontrado" }),
|
|
13010
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(CommandGroup, { children: options?.map((option) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
12979
13011
|
CommandItem,
|
|
12980
13012
|
{
|
|
12981
13013
|
value: option.value,
|
|
@@ -12986,7 +13018,7 @@ function Combobox({
|
|
|
12986
13018
|
},
|
|
12987
13019
|
keywords: [option.value, option.label],
|
|
12988
13020
|
children: [
|
|
12989
|
-
/* @__PURE__ */ (0,
|
|
13021
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
12990
13022
|
Check,
|
|
12991
13023
|
{
|
|
12992
13024
|
className: cn(
|
|
@@ -13016,6 +13048,7 @@ function Combobox({
|
|
|
13016
13048
|
CardFooter,
|
|
13017
13049
|
CardFooterItem,
|
|
13018
13050
|
CardHeader,
|
|
13051
|
+
Checkbox,
|
|
13019
13052
|
Collapsible,
|
|
13020
13053
|
CollapsibleContent,
|
|
13021
13054
|
CollapsibleTrigger,
|