@snksergio/design-system 0.65.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.
- package/dist-lib/ai/componentes/AppShell.md +13 -8
- package/dist-lib/ai/componentes/SingleMenuSidebar.md +27 -0
- package/dist-lib/ai/manifest.json +2 -2
- package/dist-lib/ai/regras-por-componente.json +3 -2
- package/dist-lib/ai/roteiros/app-builder/roteiro.md +7 -0
- package/dist-lib/chunks/{avatar-CMWPg3A3.cjs → avatar-B7h09dye.cjs} +3 -3
- package/dist-lib/chunks/{avatar-CMWPg3A3.cjs.map → avatar-B7h09dye.cjs.map} +1 -1
- package/dist-lib/chunks/{avatar-CZRLkTxt.mjs → avatar-hOzvQo9K.mjs} +3 -3
- package/dist-lib/chunks/{avatar-CZRLkTxt.mjs.map → avatar-hOzvQo9K.mjs.map} +1 -1
- package/dist-lib/chunks/{input-BQABJR2N.mjs → input-BPsqrMAw.mjs} +2 -2
- package/dist-lib/chunks/{input-BQABJR2N.mjs.map → input-BPsqrMAw.mjs.map} +1 -1
- package/dist-lib/chunks/{input-DqaLFxER.cjs → input-DwQ6HFRu.cjs} +2 -2
- package/dist-lib/chunks/{input-DqaLFxER.cjs.map → input-DwQ6HFRu.cjs.map} +1 -1
- package/dist-lib/chunks/{kpi-delta-iKhYhdD1.mjs → kpi-delta-CU6JxXSb.mjs} +3 -3
- package/dist-lib/chunks/{kpi-delta-iKhYhdD1.mjs.map → kpi-delta-CU6JxXSb.mjs.map} +1 -1
- package/dist-lib/chunks/{kpi-delta-BDrsKM-f.cjs → kpi-delta-ous1beKW.cjs} +3 -3
- package/dist-lib/chunks/{kpi-delta-BDrsKM-f.cjs.map → kpi-delta-ous1beKW.cjs.map} +1 -1
- package/dist-lib/chunks/{page-header-t5hFIp7o.mjs → page-header-CiElo3dw.mjs} +2 -2
- package/dist-lib/chunks/{page-header-t5hFIp7o.mjs.map → page-header-CiElo3dw.mjs.map} +1 -1
- package/dist-lib/chunks/{page-header-sValhWca.cjs → page-header-DEBrPvwk.cjs} +2 -2
- package/dist-lib/chunks/{page-header-sValhWca.cjs.map → page-header-DEBrPvwk.cjs.map} +1 -1
- package/dist-lib/chunks/{panel-BihHQ-sP.cjs → panel-BA-COEiW.cjs} +5 -5
- package/dist-lib/chunks/{panel-BihHQ-sP.cjs.map → panel-BA-COEiW.cjs.map} +1 -1
- package/dist-lib/chunks/{panel-B7uZTYVh.mjs → panel-Ccy88Gnd.mjs} +5 -5
- package/dist-lib/chunks/{panel-B7uZTYVh.mjs.map → panel-Ccy88Gnd.mjs.map} +1 -1
- package/dist-lib/chunks/{sheet-Bjjo4ZaT.mjs → sheet-BBrZkT_x.mjs} +4 -4
- package/dist-lib/chunks/sheet-BBrZkT_x.mjs.map +1 -0
- package/dist-lib/chunks/{sheet-BrYriaDN.cjs → sheet-n_XtAcqI.cjs} +4 -4
- package/dist-lib/chunks/sheet-n_XtAcqI.cjs.map +1 -0
- package/dist-lib/chunks/{toggle-group-DeoBmogo.cjs → toggle-group-CgDOdmWM.cjs} +7 -7
- package/dist-lib/chunks/toggle-group-CgDOdmWM.cjs.map +1 -0
- package/dist-lib/chunks/{toggle-group-XMgZgL-H.mjs → toggle-group-WBUjC4-0.mjs} +7 -7
- package/dist-lib/chunks/toggle-group-WBUjC4-0.mjs.map +1 -0
- package/dist-lib/chunks/{useTheme-N5Nc0jdR.cjs → useTheme-CM-9qLsP.cjs} +7 -3
- package/dist-lib/chunks/{useTheme-N5Nc0jdR.cjs.map → useTheme-CM-9qLsP.cjs.map} +1 -1
- package/dist-lib/chunks/{useTheme-DwhMIlTr.mjs → useTheme-DSHndxZC.mjs} +7 -3
- package/dist-lib/chunks/{useTheme-DwhMIlTr.mjs.map → useTheme-DSHndxZC.mjs.map} +1 -1
- package/dist-lib/index.cjs +8 -8
- package/dist-lib/index.mjs +14 -14
- package/dist-lib/preview/chat.cjs +3 -3
- package/dist-lib/preview/chat.mjs +3 -3
- package/dist-lib/preview/clientes.cjs +6 -6
- package/dist-lib/preview/clientes.mjs +6 -6
- package/dist-lib/preview/dashboard.cjs +4 -4
- package/dist-lib/preview/dashboard.mjs +4 -4
- package/dist-lib/shadcn.cjs +4 -4
- package/dist-lib/shadcn.mjs +4 -4
- package/dist-lib/src/components/ui/AppShell/app-shell.d.ts.map +1 -1
- package/dist-lib/src/components/ui/AppShell/app-shell.types.d.ts +13 -0
- package/dist-lib/src/components/ui/AppShell/app-shell.types.d.ts.map +1 -1
- package/dist-lib/src/components/ui/SingleMenuSidebar/single-menu-sidebar.d.ts +1 -1
- package/dist-lib/src/components/ui/SingleMenuSidebar/single-menu-sidebar.d.ts.map +1 -1
- package/dist-lib/src/components/ui/SingleMenuSidebar/single-menu-sidebar.types.d.ts +12 -0
- package/dist-lib/src/components/ui/SingleMenuSidebar/single-menu-sidebar.types.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist-lib/chunks/sheet-Bjjo4ZaT.mjs.map +0 -1
- package/dist-lib/chunks/sheet-BrYriaDN.cjs.map +0 -1
- package/dist-lib/chunks/toggle-group-DeoBmogo.cjs.map +0 -1
- 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-
|
|
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
|
{
|
|
@@ -3420,6 +3422,7 @@ function AppShell(props) {
|
|
|
3420
3422
|
sidebarShowSearch,
|
|
3421
3423
|
sidebarSearchPlaceholder,
|
|
3422
3424
|
sidebarSearchCommand,
|
|
3425
|
+
sidebarTopSlot,
|
|
3423
3426
|
className
|
|
3424
3427
|
} = props;
|
|
3425
3428
|
const [internalCollapsed, setInternalCollapsed] = useState(() => {
|
|
@@ -3461,6 +3464,7 @@ function AppShell(props) {
|
|
|
3461
3464
|
categories,
|
|
3462
3465
|
modules: sidebarModules,
|
|
3463
3466
|
module: sidebarModule,
|
|
3467
|
+
topSlot: sidebarTopSlot,
|
|
3464
3468
|
activeItemId,
|
|
3465
3469
|
onItemClick: onSidebarItemClick,
|
|
3466
3470
|
renderLink,
|
|
@@ -3644,4 +3648,4 @@ export {
|
|
|
3644
3648
|
useControllable as y,
|
|
3645
3649
|
useMediaQuery as z
|
|
3646
3650
|
};
|
|
3647
|
-
//# sourceMappingURL=useTheme-
|
|
3651
|
+
//# sourceMappingURL=useTheme-DSHndxZC.mjs.map
|