@snksergio/design-system 0.64.0 → 0.66.0

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.
Files changed (59) hide show
  1. package/dist-lib/ai/componentes/AppShell.md +15 -0
  2. package/dist-lib/ai/componentes/SingleMenuSidebar.md +27 -0
  3. package/dist-lib/ai/manifest.json +2 -2
  4. package/dist-lib/ai/regras-por-componente.json +3 -1
  5. package/dist-lib/ai/roteiros/app-builder/roteiro.md +7 -0
  6. package/dist-lib/chunks/{avatar-CMWPg3A3.cjs → avatar-B7h09dye.cjs} +3 -3
  7. package/dist-lib/chunks/{avatar-CMWPg3A3.cjs.map → avatar-B7h09dye.cjs.map} +1 -1
  8. package/dist-lib/chunks/{avatar-CZRLkTxt.mjs → avatar-hOzvQo9K.mjs} +3 -3
  9. package/dist-lib/chunks/{avatar-CZRLkTxt.mjs.map → avatar-hOzvQo9K.mjs.map} +1 -1
  10. package/dist-lib/chunks/{input-BQABJR2N.mjs → input-BPsqrMAw.mjs} +2 -2
  11. package/dist-lib/chunks/{input-BQABJR2N.mjs.map → input-BPsqrMAw.mjs.map} +1 -1
  12. package/dist-lib/chunks/{input-DqaLFxER.cjs → input-DwQ6HFRu.cjs} +2 -2
  13. package/dist-lib/chunks/{input-DqaLFxER.cjs.map → input-DwQ6HFRu.cjs.map} +1 -1
  14. package/dist-lib/chunks/{kpi-delta-Df6C70_5.mjs → kpi-delta-CU6JxXSb.mjs} +3 -3
  15. package/dist-lib/chunks/{kpi-delta-Df6C70_5.mjs.map → kpi-delta-CU6JxXSb.mjs.map} +1 -1
  16. package/dist-lib/chunks/{kpi-delta-DyJRQjWb.cjs → kpi-delta-ous1beKW.cjs} +3 -3
  17. package/dist-lib/chunks/{kpi-delta-DyJRQjWb.cjs.map → kpi-delta-ous1beKW.cjs.map} +1 -1
  18. package/dist-lib/chunks/{page-header-t5hFIp7o.mjs → page-header-CiElo3dw.mjs} +2 -2
  19. package/dist-lib/chunks/{page-header-t5hFIp7o.mjs.map → page-header-CiElo3dw.mjs.map} +1 -1
  20. package/dist-lib/chunks/{page-header-sValhWca.cjs → page-header-DEBrPvwk.cjs} +2 -2
  21. package/dist-lib/chunks/{page-header-sValhWca.cjs.map → page-header-DEBrPvwk.cjs.map} +1 -1
  22. package/dist-lib/chunks/{panel-Cpq1xHck.cjs → panel-BA-COEiW.cjs} +5 -5
  23. package/dist-lib/chunks/{panel-Cpq1xHck.cjs.map → panel-BA-COEiW.cjs.map} +1 -1
  24. package/dist-lib/chunks/{panel-CN0ChoHM.mjs → panel-Ccy88Gnd.mjs} +5 -5
  25. package/dist-lib/chunks/{panel-CN0ChoHM.mjs.map → panel-Ccy88Gnd.mjs.map} +1 -1
  26. package/dist-lib/chunks/{sheet-Bjjo4ZaT.mjs → sheet-BBrZkT_x.mjs} +4 -4
  27. package/dist-lib/chunks/sheet-BBrZkT_x.mjs.map +1 -0
  28. package/dist-lib/chunks/{sheet-BrYriaDN.cjs → sheet-n_XtAcqI.cjs} +4 -4
  29. package/dist-lib/chunks/sheet-n_XtAcqI.cjs.map +1 -0
  30. package/dist-lib/chunks/{toggle-group-DeoBmogo.cjs → toggle-group-CgDOdmWM.cjs} +7 -7
  31. package/dist-lib/chunks/toggle-group-CgDOdmWM.cjs.map +1 -0
  32. package/dist-lib/chunks/{toggle-group-XMgZgL-H.mjs → toggle-group-WBUjC4-0.mjs} +7 -7
  33. package/dist-lib/chunks/toggle-group-WBUjC4-0.mjs.map +1 -0
  34. package/dist-lib/chunks/{useTheme-DUupiWzC.cjs → useTheme-CM-9qLsP.cjs} +11 -3
  35. package/dist-lib/chunks/{useTheme-BwxTDdqf.mjs.map → useTheme-CM-9qLsP.cjs.map} +1 -1
  36. package/dist-lib/chunks/{useTheme-BwxTDdqf.mjs → useTheme-DSHndxZC.mjs} +11 -3
  37. package/dist-lib/chunks/{useTheme-DUupiWzC.cjs.map → useTheme-DSHndxZC.mjs.map} +1 -1
  38. package/dist-lib/index.cjs +8 -8
  39. package/dist-lib/index.mjs +14 -14
  40. package/dist-lib/preview/chat.cjs +3 -3
  41. package/dist-lib/preview/chat.mjs +3 -3
  42. package/dist-lib/preview/clientes.cjs +6 -6
  43. package/dist-lib/preview/clientes.mjs +6 -6
  44. package/dist-lib/preview/dashboard.cjs +4 -4
  45. package/dist-lib/preview/dashboard.mjs +4 -4
  46. package/dist-lib/shadcn.cjs +4 -4
  47. package/dist-lib/shadcn.mjs +4 -4
  48. package/dist-lib/src/components/ui/AppShell/app-shell.d.ts.map +1 -1
  49. package/dist-lib/src/components/ui/AppShell/app-shell.types.d.ts +33 -1
  50. package/dist-lib/src/components/ui/AppShell/app-shell.types.d.ts.map +1 -1
  51. package/dist-lib/src/components/ui/SingleMenuSidebar/single-menu-sidebar.d.ts +1 -1
  52. package/dist-lib/src/components/ui/SingleMenuSidebar/single-menu-sidebar.d.ts.map +1 -1
  53. package/dist-lib/src/components/ui/SingleMenuSidebar/single-menu-sidebar.types.d.ts +12 -0
  54. package/dist-lib/src/components/ui/SingleMenuSidebar/single-menu-sidebar.types.d.ts.map +1 -1
  55. package/package.json +1 -1
  56. package/dist-lib/chunks/sheet-Bjjo4ZaT.mjs.map +0 -1
  57. package/dist-lib/chunks/sheet-BrYriaDN.cjs.map +0 -1
  58. package/dist-lib/chunks/toggle-group-DeoBmogo.cjs.map +0 -1
  59. package/dist-lib/chunks/toggle-group-XMgZgL-H.mjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx, Fragment as Fragment$1 } from "react/jsx-runtime";
2
2
  import { forwardRef, useState, useMemo, Fragment, useEffect, createContext, useContext, useCallback, useRef } from "react";
3
- import { af as tv, a0 as Popover, a4 as PopoverTrigger, a3 as PopoverContent, l as Command, p as CommandInput, r as CommandList, n as CommandEmpty, o as CommandGroup, q as CommandItem, c as cn, B as Breadcrumb$1, g as BreadcrumbList, i as BreadcrumbSeparator, e as BreadcrumbItem, f as BreadcrumbLink, h as BreadcrumbPage, ae as Button, m as CommandDialog, t as CommandShortcut, s as CommandSeparator, W as InputGroup, X as InputGroupAddon, Z as InputGroupInput, H as DropdownMenu, V as DropdownMenuTrigger, J as DropdownMenuContent, L as DropdownMenuItem, a5 as Tooltip, a8 as TooltipTrigger, a6 as TooltipContent, C as Collapsible, k as CollapsibleTrigger, j as CollapsibleContent, K as DropdownMenuGroup, M as DropdownMenuLabel, Q as DropdownMenuSeparator, a7 as TooltipProvider, A as Avatar, b as AvatarImage, a as AvatarFallback, S as DropdownMenuSub, U as DropdownMenuSubTrigger, T as DropdownMenuSubContent, O as DropdownMenuRadioGroup, P as DropdownMenuRadioItem } from "./avatar-CZRLkTxt.mjs";
3
+ import { af as tv, a0 as Popover, a4 as PopoverTrigger, a3 as PopoverContent, l as Command, p as CommandInput, r as CommandList, n as CommandEmpty, o as CommandGroup, q as CommandItem, c as cn, B as Breadcrumb$1, g as BreadcrumbList, i as BreadcrumbSeparator, e as BreadcrumbItem, f as BreadcrumbLink, h as BreadcrumbPage, ae as Button, m as CommandDialog, t as CommandShortcut, s as CommandSeparator, W as InputGroup, X as InputGroupAddon, Z as InputGroupInput, H as DropdownMenu, V as DropdownMenuTrigger, J as DropdownMenuContent, L as DropdownMenuItem, a5 as Tooltip, a8 as TooltipTrigger, a6 as TooltipContent, C as Collapsible, k as CollapsibleTrigger, j as CollapsibleContent, K as DropdownMenuGroup, M as DropdownMenuLabel, Q as DropdownMenuSeparator, a7 as TooltipProvider, A as Avatar, b as AvatarImage, a as AvatarFallback, S as DropdownMenuSub, U as DropdownMenuSubTrigger, T as DropdownMenuSubContent, O as DropdownMenuRadioGroup, P as DropdownMenuRadioItem } from "./avatar-hOzvQo9K.mjs";
4
4
  import { ChevronsUpDown, Check, ChevronRight, Search, Bell, CheckCheck, MoreHorizontal, MessageSquare, PenLine, Maximize2, Sun, Moon, PanelLeftOpen, PanelLeftClose, Menu, Plus, ChevronDown, X, User, LayoutGrid, SunMoon, Settings, LogOut } from "lucide-react";
5
5
  import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
6
6
  const headerRoot = tv({
@@ -3025,6 +3025,7 @@ function SingleMenuSidebar({
3025
3025
  activeItemId,
3026
3026
  onItemClick,
3027
3027
  renderLink,
3028
+ topSlot,
3028
3029
  user,
3029
3030
  defaultExpanded = true,
3030
3031
  expanded: controlledExpanded,
@@ -3130,8 +3131,9 @@ function SingleMenuSidebar({
3130
3131
  }
3131
3132
  ),
3132
3133
  /* @__PURE__ */ jsx("div", { className: styles.divider }),
3133
- expanded && (moduleDisplay || showSearch) && /* @__PURE__ */ jsxs("div", { className: cn(styles.sectionPadding, styles.textFadeIn), children: [
3134
+ expanded && (moduleDisplay || topSlot || showSearch) && /* @__PURE__ */ jsxs("div", { className: cn(styles.sectionPadding, styles.textFadeIn), children: [
3134
3135
  moduleDisplay && /* @__PURE__ */ jsx(SingleMenuModuleSelector, { ...moduleDisplay }),
3136
+ topSlot,
3135
3137
  showSearch && /* @__PURE__ */ jsx(
3136
3138
  SingleMenuSearch,
3137
3139
  {
@@ -3416,8 +3418,11 @@ function AppShell(props) {
3416
3418
  activeItemId,
3417
3419
  onSidebarItemClick,
3418
3420
  sidebarModules,
3421
+ sidebarModule,
3419
3422
  sidebarShowSearch,
3420
3423
  sidebarSearchPlaceholder,
3424
+ sidebarSearchCommand,
3425
+ sidebarTopSlot,
3421
3426
  className
3422
3427
  } = props;
3423
3428
  const [internalCollapsed, setInternalCollapsed] = useState(() => {
@@ -3458,11 +3463,14 @@ function AppShell(props) {
3458
3463
  title: sidebarTitle ?? "",
3459
3464
  categories,
3460
3465
  modules: sidebarModules,
3466
+ module: sidebarModule,
3467
+ topSlot: sidebarTopSlot,
3461
3468
  activeItemId,
3462
3469
  onItemClick: onSidebarItemClick,
3463
3470
  renderLink,
3464
3471
  showSearch: sidebarShowSearch ?? false,
3465
3472
  searchPlaceholder: sidebarSearchPlaceholder,
3473
+ searchCommand: sidebarSearchCommand,
3466
3474
  expanded: isMobile ? mobileMenuOpen : !menuCollapsed,
3467
3475
  onExpandedChange: (next) => {
3468
3476
  if (isMobile) {
@@ -3640,4 +3648,4 @@ export {
3640
3648
  useControllable as y,
3641
3649
  useMediaQuery as z
3642
3650
  };
3643
- //# sourceMappingURL=useTheme-BwxTDdqf.mjs.map
3651
+ //# sourceMappingURL=useTheme-DSHndxZC.mjs.map