@cnc-ti/layout-basic 8.3.0 → 8.3.1

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 CHANGED
@@ -1,13 +1,14 @@
1
1
  import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import * as React$1 from 'react';
4
- import React__default, { HTMLAttributes, ReactNode, PropsWithChildren, ReactElement, ComponentProps, SVGProps } from 'react';
4
+ import React__default, { HTMLAttributes, ReactNode, PropsWithChildren, ReactElement, ComponentProps, SVGProps, ElementType } from 'react';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import * as DialogPrimitive from '@radix-ui/react-dialog';
7
7
  import * as Accordion from '@radix-ui/react-accordion';
8
8
  import * as PopoverPrimitive from '@radix-ui/react-popover';
9
9
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
10
10
  import * as SelectPrimitive from '@radix-ui/react-select';
11
+ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
11
12
 
12
13
  declare const buttonVariants: (props?: ({
13
14
  variant?: "default" | "confirm" | "create" | "secondary" | "danger" | null | undefined;
@@ -246,6 +247,8 @@ declare const DropdownMenuShortcut: {
246
247
  declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
247
248
  declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
248
249
  declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
250
+ declare const SelectPortal: React$1.FC<SelectPrimitive.SelectPortalProps>;
251
+ declare const SelectViewport: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectViewportProps & React$1.RefAttributes<HTMLDivElement>>;
249
252
  declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
250
253
  declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
251
254
  declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
@@ -254,4 +257,90 @@ declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitiv
254
257
  declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
255
258
  declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
256
259
 
257
- export { AplicationsHeader, Button, type ButtonProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Header, HeaderContainer, HeaderProfileHeader, HeaderProfileItem, type HeaderProps, Modal, ModalEntidade, ModalMudancaEntidade, type ModalProps, Popover, PopoverContent, PopoverTrigger, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sidebar, SidebarContainer, type SidebarContainerProps, SidebarImageBrand, type SidebarImageBrandProps, SidebarNavCollapse, type SidebarNavCollapseProps, SidebarNavLink, type SidebarNavLinkProps, type SidebarProps, buttonVariants };
260
+ interface InputProps extends React$1.ComponentProps<"input"> {
261
+ label?: string;
262
+ }
263
+ declare const Input: React$1.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
264
+
265
+ type BadgeVariant = "default" | "primary" | "success" | "warning" | "danger" | "info";
266
+ type BadgeSize = "sm" | "md" | "lg";
267
+ interface BadgeProps extends React__default.HTMLAttributes<HTMLSpanElement> {
268
+ /**
269
+ * Variação de cor do badge.
270
+ */
271
+ variant?: BadgeVariant;
272
+ /**
273
+ * Define se o badge deve ter bordas arredondadas.
274
+ */
275
+ rounded?: boolean;
276
+ /**
277
+ * Define o tamanho do badge.
278
+ */
279
+ size?: BadgeSize;
280
+ }
281
+ /**
282
+ * Badge é um componente para exibir pequenas contagens, status ou rótulos informativos.
283
+ */
284
+ declare const Badge: ({ variant, rounded, size, className, ...rest }: BadgeProps) => react_jsx_runtime.JSX.Element;
285
+
286
+ /**
287
+ * Componente principal do Card.
288
+ * Utilizado para agrupar visualmente conteúdos relacionados.
289
+ */
290
+ declare function Card({ className, ...rest }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
291
+ /**
292
+ * Cabeçalho do Card, geralmente utilizado para título ou ações superiores.
293
+ */
294
+ declare function CardHeader({ className, ...rest }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
295
+ /**
296
+ * Conteúdo principal do Card. Ideal para exibir informações ou formulários.
297
+ */
298
+ declare function CardContent({ className, ...rest }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
299
+ /**
300
+ * Rodapé do Card. Usado normalmente para botões ou ações relacionadas.
301
+ */
302
+ declare function CardFooter({ className, ...rest }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
303
+ /**
304
+ * Item do Rodapé do Card. Cada item representa uma ação ou elemento visual.
305
+ *
306
+ * ✅ Comportamento:
307
+ * - Quando dois ou mais `<CardFooterItem />` são renderizados dentro do `<CardFooter />`,
308
+ * o segundo e os subsequentes recebem automaticamente uma **borda à esquerda** como separador visual,
309
+ * aplicada pela classe `.cnc-molecule-card-item + .cnc-molecule-card-item`.
310
+ */
311
+ declare function CardFooterItem({ className, ...rest }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
312
+
313
+ declare const Collapsible: React$1.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React$1.RefAttributes<HTMLDivElement>>;
314
+ declare const CollapsibleTrigger: React$1.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
315
+ /**
316
+ * Componente que adiciona animação ao conteúdo do Collapsible.
317
+ *
318
+ * @param {React.HTMLAttributes<HTMLDivElement>} props - Propriedades do componente
319
+ * @returns {JSX.Element} Elemento animado do conteúdo
320
+ */
321
+ declare const AnimatedCollapsibleContent: ({ className, ...rest }: React.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
322
+
323
+ /**
324
+ * Props para o componente `PageHeader`.
325
+ */
326
+ interface PageHeaderProps {
327
+ title: string;
328
+ description?: string;
329
+ titleAs?: keyof JSX.IntrinsicElements;
330
+ actions?: ReactNode;
331
+ showGoBack?: boolean;
332
+ }
333
+ /**
334
+ * Componente de cabeçalho da página.
335
+ */
336
+ declare function PageHeader({ title, description, actions, titleAs, showGoBack, }: PageHeaderProps): react_jsx_runtime.JSX.Element;
337
+ interface TitleProps {
338
+ title: string;
339
+ as?: ElementType;
340
+ }
341
+ /**
342
+ * Componente de título reutilizável.
343
+ */
344
+ declare function Title({ title, as: Component }: TitleProps): react_jsx_runtime.JSX.Element;
345
+
346
+ export { AplicationsHeader, Badge, type BadgeSize, type BadgeVariant, Button, type ButtonProps, Card, CardContent, CardFooter, CardFooterItem, CardHeader, Collapsible, AnimatedCollapsibleContent as CollapsibleContent, CollapsibleTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Header, HeaderContainer, HeaderProfileHeader, HeaderProfileItem, type HeaderProps, Input, type InputProps, Modal, ModalEntidade, ModalMudancaEntidade, type ModalProps, PageHeader, Popover, PopoverContent, PopoverTrigger, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectPortal, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectViewport, Sidebar, SidebarContainer, type SidebarContainerProps, SidebarImageBrand, type SidebarImageBrandProps, SidebarNavCollapse, type SidebarNavCollapseProps, SidebarNavLink, type SidebarNavLinkProps, type SidebarProps, Title, buttonVariants };
package/dist/index.d.ts CHANGED
@@ -1,13 +1,14 @@
1
1
  import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import * as React$1 from 'react';
4
- import React__default, { HTMLAttributes, ReactNode, PropsWithChildren, ReactElement, ComponentProps, SVGProps } from 'react';
4
+ import React__default, { HTMLAttributes, ReactNode, PropsWithChildren, ReactElement, ComponentProps, SVGProps, ElementType } from 'react';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import * as DialogPrimitive from '@radix-ui/react-dialog';
7
7
  import * as Accordion from '@radix-ui/react-accordion';
8
8
  import * as PopoverPrimitive from '@radix-ui/react-popover';
9
9
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
10
10
  import * as SelectPrimitive from '@radix-ui/react-select';
11
+ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
11
12
 
12
13
  declare const buttonVariants: (props?: ({
13
14
  variant?: "default" | "confirm" | "create" | "secondary" | "danger" | null | undefined;
@@ -246,6 +247,8 @@ declare const DropdownMenuShortcut: {
246
247
  declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
247
248
  declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
248
249
  declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
250
+ declare const SelectPortal: React$1.FC<SelectPrimitive.SelectPortalProps>;
251
+ declare const SelectViewport: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectViewportProps & React$1.RefAttributes<HTMLDivElement>>;
249
252
  declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
250
253
  declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
251
254
  declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
@@ -254,4 +257,90 @@ declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitiv
254
257
  declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
255
258
  declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
256
259
 
257
- export { AplicationsHeader, Button, type ButtonProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Header, HeaderContainer, HeaderProfileHeader, HeaderProfileItem, type HeaderProps, Modal, ModalEntidade, ModalMudancaEntidade, type ModalProps, Popover, PopoverContent, PopoverTrigger, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sidebar, SidebarContainer, type SidebarContainerProps, SidebarImageBrand, type SidebarImageBrandProps, SidebarNavCollapse, type SidebarNavCollapseProps, SidebarNavLink, type SidebarNavLinkProps, type SidebarProps, buttonVariants };
260
+ interface InputProps extends React$1.ComponentProps<"input"> {
261
+ label?: string;
262
+ }
263
+ declare const Input: React$1.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
264
+
265
+ type BadgeVariant = "default" | "primary" | "success" | "warning" | "danger" | "info";
266
+ type BadgeSize = "sm" | "md" | "lg";
267
+ interface BadgeProps extends React__default.HTMLAttributes<HTMLSpanElement> {
268
+ /**
269
+ * Variação de cor do badge.
270
+ */
271
+ variant?: BadgeVariant;
272
+ /**
273
+ * Define se o badge deve ter bordas arredondadas.
274
+ */
275
+ rounded?: boolean;
276
+ /**
277
+ * Define o tamanho do badge.
278
+ */
279
+ size?: BadgeSize;
280
+ }
281
+ /**
282
+ * Badge é um componente para exibir pequenas contagens, status ou rótulos informativos.
283
+ */
284
+ declare const Badge: ({ variant, rounded, size, className, ...rest }: BadgeProps) => react_jsx_runtime.JSX.Element;
285
+
286
+ /**
287
+ * Componente principal do Card.
288
+ * Utilizado para agrupar visualmente conteúdos relacionados.
289
+ */
290
+ declare function Card({ className, ...rest }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
291
+ /**
292
+ * Cabeçalho do Card, geralmente utilizado para título ou ações superiores.
293
+ */
294
+ declare function CardHeader({ className, ...rest }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
295
+ /**
296
+ * Conteúdo principal do Card. Ideal para exibir informações ou formulários.
297
+ */
298
+ declare function CardContent({ className, ...rest }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
299
+ /**
300
+ * Rodapé do Card. Usado normalmente para botões ou ações relacionadas.
301
+ */
302
+ declare function CardFooter({ className, ...rest }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
303
+ /**
304
+ * Item do Rodapé do Card. Cada item representa uma ação ou elemento visual.
305
+ *
306
+ * ✅ Comportamento:
307
+ * - Quando dois ou mais `<CardFooterItem />` são renderizados dentro do `<CardFooter />`,
308
+ * o segundo e os subsequentes recebem automaticamente uma **borda à esquerda** como separador visual,
309
+ * aplicada pela classe `.cnc-molecule-card-item + .cnc-molecule-card-item`.
310
+ */
311
+ declare function CardFooterItem({ className, ...rest }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
312
+
313
+ declare const Collapsible: React$1.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React$1.RefAttributes<HTMLDivElement>>;
314
+ declare const CollapsibleTrigger: React$1.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
315
+ /**
316
+ * Componente que adiciona animação ao conteúdo do Collapsible.
317
+ *
318
+ * @param {React.HTMLAttributes<HTMLDivElement>} props - Propriedades do componente
319
+ * @returns {JSX.Element} Elemento animado do conteúdo
320
+ */
321
+ declare const AnimatedCollapsibleContent: ({ className, ...rest }: React.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
322
+
323
+ /**
324
+ * Props para o componente `PageHeader`.
325
+ */
326
+ interface PageHeaderProps {
327
+ title: string;
328
+ description?: string;
329
+ titleAs?: keyof JSX.IntrinsicElements;
330
+ actions?: ReactNode;
331
+ showGoBack?: boolean;
332
+ }
333
+ /**
334
+ * Componente de cabeçalho da página.
335
+ */
336
+ declare function PageHeader({ title, description, actions, titleAs, showGoBack, }: PageHeaderProps): react_jsx_runtime.JSX.Element;
337
+ interface TitleProps {
338
+ title: string;
339
+ as?: ElementType;
340
+ }
341
+ /**
342
+ * Componente de título reutilizável.
343
+ */
344
+ declare function Title({ title, as: Component }: TitleProps): react_jsx_runtime.JSX.Element;
345
+
346
+ export { AplicationsHeader, Badge, type BadgeSize, type BadgeVariant, Button, type ButtonProps, Card, CardContent, CardFooter, CardFooterItem, CardHeader, Collapsible, AnimatedCollapsibleContent as CollapsibleContent, CollapsibleTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Header, HeaderContainer, HeaderProfileHeader, HeaderProfileItem, type HeaderProps, Input, type InputProps, Modal, ModalEntidade, ModalMudancaEntidade, type ModalProps, PageHeader, Popover, PopoverContent, PopoverTrigger, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectPortal, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectViewport, Sidebar, SidebarContainer, type SidebarContainerProps, SidebarImageBrand, type SidebarImageBrandProps, SidebarNavCollapse, type SidebarNavCollapseProps, SidebarNavLink, type SidebarNavLinkProps, type SidebarProps, Title, buttonVariants };
package/dist/index.js CHANGED
@@ -36,7 +36,16 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
36
36
  var src_exports = {};
37
37
  __export(src_exports, {
38
38
  AplicationsHeader: () => AplicationsHeader,
39
+ Badge: () => Badge,
39
40
  Button: () => Button,
41
+ Card: () => Card,
42
+ CardContent: () => CardContent,
43
+ CardFooter: () => CardFooter,
44
+ CardFooterItem: () => CardFooterItem,
45
+ CardHeader: () => CardHeader,
46
+ Collapsible: () => Collapsible,
47
+ CollapsibleContent: () => AnimatedCollapsibleContent,
48
+ CollapsibleTrigger: () => CollapsibleTrigger2,
40
49
  Dialog: () => Dialog2,
41
50
  DialogClose: () => DialogClose2,
42
51
  DialogContent: () => DialogContent2,
@@ -66,9 +75,11 @@ __export(src_exports, {
66
75
  HeaderContainer: () => HeaderContainer,
67
76
  HeaderProfileHeader: () => HeaderProfileHeader,
68
77
  HeaderProfileItem: () => HeaderProfileItem,
78
+ Input: () => Input,
69
79
  Modal: () => Modal,
70
80
  ModalEntidade: () => ModalEntidade,
71
81
  ModalMudancaEntidade: () => ModalMudancaEntidade,
82
+ PageHeader: () => PageHeader,
72
83
  Popover: () => Popover2,
73
84
  PopoverContent: () => PopoverContent2,
74
85
  PopoverTrigger: () => PopoverTrigger2,
@@ -77,16 +88,19 @@ __export(src_exports, {
77
88
  SelectGroup: () => SelectGroup,
78
89
  SelectItem: () => SelectItem,
79
90
  SelectLabel: () => SelectLabel,
91
+ SelectPortal: () => SelectPortal,
80
92
  SelectScrollDownButton: () => SelectScrollDownButton,
81
93
  SelectScrollUpButton: () => SelectScrollUpButton,
82
94
  SelectSeparator: () => SelectSeparator,
83
95
  SelectTrigger: () => SelectTrigger,
84
96
  SelectValue: () => SelectValue,
97
+ SelectViewport: () => SelectViewport,
85
98
  Sidebar: () => Sidebar,
86
99
  SidebarContainer: () => SidebarContainer,
87
100
  SidebarImageBrand: () => SidebarImageBrand,
88
101
  SidebarNavCollapse: () => SidebarNavCollapse,
89
102
  SidebarNavLink: () => SidebarNavLink,
103
+ Title: () => Title2,
90
104
  buttonVariants: () => buttonVariants
91
105
  });
92
106
  module.exports = __toCommonJS(src_exports);
@@ -9329,6 +9343,8 @@ var import_jsx_runtime24 = require("react/jsx-runtime");
9329
9343
  var Select = SelectPrimitive.Root;
9330
9344
  var SelectGroup = SelectPrimitive.Group;
9331
9345
  var SelectValue = SelectPrimitive.Value;
9346
+ var SelectPortal = SelectPrimitive.Portal;
9347
+ var SelectViewport = SelectPrimitive.Viewport;
9332
9348
  var SelectTrigger = React38.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
9333
9349
  SelectPrimitive.Trigger,
9334
9350
  {
@@ -9403,7 +9419,10 @@ var SelectLabel = React38.forwardRef(({ className, ...props }, ref) => /* @__PUR
9403
9419
  SelectPrimitive.Label,
9404
9420
  {
9405
9421
  ref,
9406
- className: cn("cnc-py-1.5 cnc-pl-8 cnc-pr-2 cnc-text-sm cnc-font-semibold", className),
9422
+ className: cn(
9423
+ "cnc-py-1.5 cnc-pl-8 cnc-pr-2 cnc-text-sm cnc-font-semibold",
9424
+ className
9425
+ ),
9407
9426
  ...props
9408
9427
  }
9409
9428
  ));
@@ -9433,10 +9452,226 @@ var SelectSeparator = React38.forwardRef(({ className, ...props }, ref) => /* @_
9433
9452
  }
9434
9453
  ));
9435
9454
  SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
9455
+
9456
+ // src/components/atoms/forms/input.tsx
9457
+ var React39 = __toESM(require("react"));
9458
+ var import_jsx_runtime25 = require("react/jsx-runtime");
9459
+ var Input = React39.forwardRef(
9460
+ ({ className, type, id, label, ...props }, ref) => {
9461
+ const idGenerate = id ? id : label && `field-${Date.now()}-${Math.random() * 1e5}`;
9462
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "cnc-w-full", children: [
9463
+ label && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
9464
+ "label",
9465
+ {
9466
+ htmlFor: idGenerate,
9467
+ className: "cnc-block cnc-text-sm cnc-mb-1 cnc-font-medium cnc-text-brand-gray-600",
9468
+ children: label
9469
+ }
9470
+ ),
9471
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
9472
+ "input",
9473
+ {
9474
+ type,
9475
+ id: idGenerate,
9476
+ className: cn(
9477
+ "cnc-flex cnc-h-8 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",
9478
+ " 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",
9479
+ "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 ",
9480
+ "not-disabled:hover:cnc-border-brand-gray-500",
9481
+ className
9482
+ ),
9483
+ ref,
9484
+ ...props
9485
+ }
9486
+ )
9487
+ ] });
9488
+ }
9489
+ );
9490
+ Input.displayName = "Input";
9491
+
9492
+ // src/components/atoms/display/badge.tsx
9493
+ var import_jsx_runtime26 = require("react/jsx-runtime");
9494
+ var Badge = ({
9495
+ variant = "default",
9496
+ rounded = true,
9497
+ size: size4 = "md",
9498
+ className,
9499
+ ...rest
9500
+ }) => {
9501
+ const baseStyle = "cnc-inline-flex cnc-items-center cnc-font-semibold cnc-transition-colors";
9502
+ const variants = {
9503
+ default: "cnc-bg-brand-gray-20 cnc-text-brand-gray-600",
9504
+ primary: "cnc-bg-brand-blue-100 cnc-text-white",
9505
+ success: "cnc-bg-brand-green-200 cnc-text-white",
9506
+ warning: "cnc-bg-brand-gold-400 cnc-text-white",
9507
+ danger: "cnc-bg-brand-red-500 cnc-text-white",
9508
+ info: "cnc-bg-brand-blue-60 cnc-text-brand-blue-900"
9509
+ };
9510
+ const sizes = {
9511
+ sm: "cnc-text-xs cnc-px-2 cnc-py-0.5",
9512
+ md: "cnc-text-sm cnc-px-3 cnc-py-1",
9513
+ lg: "cnc-text-base cnc-px-4 cnc-py-2"
9514
+ };
9515
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
9516
+ "span",
9517
+ {
9518
+ className: cn(
9519
+ baseStyle,
9520
+ variants[variant],
9521
+ sizes[size4],
9522
+ rounded ? "cnc-rounded-full" : "",
9523
+ className
9524
+ ),
9525
+ ...rest
9526
+ }
9527
+ );
9528
+ };
9529
+
9530
+ // src/components/molecules/card.tsx
9531
+ var import_jsx_runtime27 = require("react/jsx-runtime");
9532
+ function Card({
9533
+ className,
9534
+ ...rest
9535
+ }) {
9536
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
9537
+ "div",
9538
+ {
9539
+ className: cn(
9540
+ "cnc-w-full cnc-flex cnc-flex-col cnc-border-2 cnc-border-brand-gray-50 cnc-rounded-md cnc-shadow",
9541
+ className
9542
+ ),
9543
+ ...rest
9544
+ }
9545
+ );
9546
+ }
9547
+ function CardHeader({
9548
+ className,
9549
+ ...rest
9550
+ }) {
9551
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "cnc-px-6 cnc-pt-6", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
9552
+ "div",
9553
+ {
9554
+ className: cn(
9555
+ "cnc-flex cnc-items-center cnc-justify-between cnc-w-full cnc-border-b-2 cnc-border-brand-gray-50 cnc-pb-4",
9556
+ className
9557
+ ),
9558
+ ...rest
9559
+ }
9560
+ ) });
9561
+ }
9562
+ function CardContent({
9563
+ className,
9564
+ ...rest
9565
+ }) {
9566
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: cn("cnc-px-6 cnc-py-2", className), ...rest });
9567
+ }
9568
+ function CardFooter({
9569
+ className,
9570
+ ...rest
9571
+ }) {
9572
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
9573
+ "div",
9574
+ {
9575
+ className: cn(
9576
+ "cnc-mt-4 cnc-flex cnc-border-t-2 cnc-border-brand-gray-50",
9577
+ className
9578
+ ),
9579
+ ...rest
9580
+ }
9581
+ );
9582
+ }
9583
+ function CardFooterItem({
9584
+ className,
9585
+ ...rest
9586
+ }) {
9587
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
9588
+ "div",
9589
+ {
9590
+ className: cn(
9591
+ "cnc-molecule-card-item cnc-flex cnc-flex-1 cnc-items-center cnc-justify-center cnc-py-3 cnc-px-8",
9592
+ className
9593
+ ),
9594
+ ...rest
9595
+ }
9596
+ );
9597
+ }
9598
+
9599
+ // src/components/molecules/collapsible.tsx
9600
+ var CollapsiblePrimitive = __toESM(require("@radix-ui/react-collapsible"));
9601
+ var import_jsx_runtime28 = require("react/jsx-runtime");
9602
+ var Collapsible = CollapsiblePrimitive.Root;
9603
+ var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
9604
+ var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
9605
+ var AnimatedCollapsibleContent = ({
9606
+ className,
9607
+ ...rest
9608
+ }) => {
9609
+ const state = rest["data-state"];
9610
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(CollapsibleContent2, { className: "cnc-collapsible-content", ...rest });
9611
+ };
9612
+
9613
+ // src/components/molecules/display/page-header.tsx
9614
+ var import_jsx_runtime29 = require("react/jsx-runtime");
9615
+ function PageHeader({
9616
+ title,
9617
+ description,
9618
+ actions,
9619
+ titleAs = "h1",
9620
+ showGoBack = false
9621
+ }) {
9622
+ const ComponentTitle = titleAs;
9623
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_jsx_runtime29.Fragment, { children: title && /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("header", { className: "cnc-w-full cnc-flex cnc-items-center cnc-justify-between cnc-p-8 cnc-bg-brand-blue-50 cnc-border-b-2 cnc-border-brand-blue-60", children: [
9624
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "cnc-flex cnc-flex-col cnc-gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "cnc-flex cnc-items-start cnc-gap-2", children: [
9625
+ showGoBack && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
9626
+ "button",
9627
+ {
9628
+ className: "cnc-mt-1 hover:cnc-opacity-60",
9629
+ onClick: () => window.history.back(),
9630
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
9631
+ "svg",
9632
+ {
9633
+ xmlns: "http://www.w3.org/2000/svg",
9634
+ className: "cnc-w-6 cnc-h-6 cnc-text-[#1F2C4D]",
9635
+ fill: "none",
9636
+ viewBox: "0 0 24 24",
9637
+ strokeWidth: 1.5,
9638
+ stroke: "currentColor",
9639
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
9640
+ "path",
9641
+ {
9642
+ strokeLinecap: "round",
9643
+ strokeLinejoin: "round",
9644
+ d: "M15.75 19.5 8.25 12l7.5-7.5"
9645
+ }
9646
+ )
9647
+ }
9648
+ )
9649
+ }
9650
+ ),
9651
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { children: [
9652
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(ComponentTitle, { className: "cnc-text-2xl cnc-leading-8 cnc-font-semibold cnc-text-brand-blue-600", children: title }),
9653
+ description && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "cnc-text-brand-gray-500 cnc-leading-4", children: description })
9654
+ ] })
9655
+ ] }) }),
9656
+ actions && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "cnc-flex cnc-gap-4", children: actions })
9657
+ ] }) });
9658
+ }
9659
+ function Title2({ title, as: Component = "h1" }) {
9660
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Component, { className: "cnc-text-[28px] cnc-text-[#1F2C4D] cnc-font-bold cnc-mt-[10px] cnc-mb-5", children: title });
9661
+ }
9436
9662
  // Annotate the CommonJS export names for ESM import in node:
9437
9663
  0 && (module.exports = {
9438
9664
  AplicationsHeader,
9665
+ Badge,
9439
9666
  Button,
9667
+ Card,
9668
+ CardContent,
9669
+ CardFooter,
9670
+ CardFooterItem,
9671
+ CardHeader,
9672
+ Collapsible,
9673
+ CollapsibleContent,
9674
+ CollapsibleTrigger,
9440
9675
  Dialog,
9441
9676
  DialogClose,
9442
9677
  DialogContent,
@@ -9466,9 +9701,11 @@ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
9466
9701
  HeaderContainer,
9467
9702
  HeaderProfileHeader,
9468
9703
  HeaderProfileItem,
9704
+ Input,
9469
9705
  Modal,
9470
9706
  ModalEntidade,
9471
9707
  ModalMudancaEntidade,
9708
+ PageHeader,
9472
9709
  Popover,
9473
9710
  PopoverContent,
9474
9711
  PopoverTrigger,
@@ -9477,16 +9714,19 @@ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
9477
9714
  SelectGroup,
9478
9715
  SelectItem,
9479
9716
  SelectLabel,
9717
+ SelectPortal,
9480
9718
  SelectScrollDownButton,
9481
9719
  SelectScrollUpButton,
9482
9720
  SelectSeparator,
9483
9721
  SelectTrigger,
9484
9722
  SelectValue,
9723
+ SelectViewport,
9485
9724
  Sidebar,
9486
9725
  SidebarContainer,
9487
9726
  SidebarImageBrand,
9488
9727
  SidebarNavCollapse,
9489
9728
  SidebarNavLink,
9729
+ Title,
9490
9730
  buttonVariants
9491
9731
  });
9492
9732
  /*! Bundled license information: