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