adminium 1.0.3 → 1.0.5

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.cjs CHANGED
@@ -6544,6 +6544,28 @@ function Scrollspy({
6544
6544
  function AspectRatio(props) {
6545
6545
  return /* @__PURE__ */ jsxRuntime.jsx(radixUi.AspectRatio.Root, { "data-slot": "aspect-ratio", ...props });
6546
6546
  }
6547
+ var containerVariants = classVarianceAuthority.cva("w-full mx-auto px-4 lg:px-8 2xl:px-30", {
6548
+ variants: {
6549
+ width: {
6550
+ fixed: "max-w-480",
6551
+ fluid: ""
6552
+ }
6553
+ },
6554
+ defaultVariants: {
6555
+ width: "fixed"
6556
+ }
6557
+ });
6558
+ function Container({ children, width, className, ...props }) {
6559
+ return /* @__PURE__ */ jsxRuntime.jsx(
6560
+ "div",
6561
+ {
6562
+ "data-slot": "container",
6563
+ className: cn(containerVariants({ width }), className),
6564
+ ...props,
6565
+ children
6566
+ }
6567
+ );
6568
+ }
6547
6569
  var headings = {
6548
6570
  h1: "h1",
6549
6571
  h2: "h2",
@@ -6836,6 +6858,160 @@ function ProgressRadial({
6836
6858
  }
6837
6859
  );
6838
6860
  }
6861
+ function NavigationMenu({
6862
+ className,
6863
+ children,
6864
+ viewport = true,
6865
+ ...props
6866
+ }) {
6867
+ return /* @__PURE__ */ jsxRuntime.jsxs(
6868
+ radixUi.NavigationMenu.Root,
6869
+ {
6870
+ "data-slot": "navigation-menu",
6871
+ "data-viewport": viewport,
6872
+ className: cn(
6873
+ "group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
6874
+ className
6875
+ ),
6876
+ ...props,
6877
+ children: [
6878
+ children,
6879
+ viewport && /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuViewport, {})
6880
+ ]
6881
+ }
6882
+ );
6883
+ }
6884
+ function NavigationMenuList({
6885
+ className,
6886
+ ...props
6887
+ }) {
6888
+ return /* @__PURE__ */ jsxRuntime.jsx(
6889
+ radixUi.NavigationMenu.List,
6890
+ {
6891
+ "data-slot": "navigation-menu-list",
6892
+ className: cn(
6893
+ "group flex flex-1 list-none items-center justify-center gap-1",
6894
+ className
6895
+ ),
6896
+ ...props
6897
+ }
6898
+ );
6899
+ }
6900
+ function NavigationMenuItem({
6901
+ className,
6902
+ ...props
6903
+ }) {
6904
+ return /* @__PURE__ */ jsxRuntime.jsx(
6905
+ radixUi.NavigationMenu.Item,
6906
+ {
6907
+ "data-slot": "navigation-menu-item",
6908
+ className: cn("relative", className),
6909
+ ...props
6910
+ }
6911
+ );
6912
+ }
6913
+ var navigationMenuTriggerStyle = classVarianceAuthority.cva(
6914
+ "cursor-pointer group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[active=true]:bg-accent/50 data-[state=open]:bg-accent/50 data-[active=true]:text-accent-foreground ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1"
6915
+ );
6916
+ function NavigationMenuTrigger({
6917
+ className,
6918
+ children,
6919
+ ...props
6920
+ }) {
6921
+ return /* @__PURE__ */ jsxRuntime.jsxs(
6922
+ radixUi.NavigationMenu.Trigger,
6923
+ {
6924
+ "data-slot": "navigation-menu-trigger",
6925
+ className: cn(navigationMenuTriggerStyle(), className),
6926
+ ...props,
6927
+ children: [
6928
+ children,
6929
+ " ",
6930
+ /* @__PURE__ */ jsxRuntime.jsx(
6931
+ lucideReact.ChevronDownIcon,
6932
+ {
6933
+ className: "relative top-px ms-1 size-3.5 opacity-60 transition duration-300 group-data-[state=open]:rotate-180",
6934
+ "aria-hidden": "true"
6935
+ }
6936
+ )
6937
+ ]
6938
+ }
6939
+ );
6940
+ }
6941
+ function NavigationMenuContent({
6942
+ className,
6943
+ ...props
6944
+ }) {
6945
+ return /* @__PURE__ */ jsxRuntime.jsx(
6946
+ radixUi.NavigationMenu.Content,
6947
+ {
6948
+ "data-slot": "navigation-menu-content",
6949
+ className: cn(
6950
+ "data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52! data-[motion=from-start]:slide-in-from-left-52! data-[motion=to-end]:slide-out-to-right-52! data-[motion=to-start]:slide-out-to-left-52! top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto",
6951
+ "group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none",
6952
+ className
6953
+ ),
6954
+ ...props
6955
+ }
6956
+ );
6957
+ }
6958
+ function NavigationMenuViewport({
6959
+ className,
6960
+ ...props
6961
+ }) {
6962
+ return /* @__PURE__ */ jsxRuntime.jsx(
6963
+ "div",
6964
+ {
6965
+ className: cn(
6966
+ "absolute top-full right-0 isolate z-50 flex items-center justify-center"
6967
+ ),
6968
+ children: /* @__PURE__ */ jsxRuntime.jsx(
6969
+ radixUi.NavigationMenu.Viewport,
6970
+ {
6971
+ "data-slot": "navigation-menu-viewport",
6972
+ className: cn(
6973
+ "shadow-md shadow-black/5 rounded-md border border-border bg-popover text-popover-foreground p-1.5 origin-top-center data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden md:w-(--radix-navigation-menu-viewport-width)",
6974
+ className
6975
+ ),
6976
+ ...props
6977
+ }
6978
+ )
6979
+ }
6980
+ );
6981
+ }
6982
+ function NavigationMenuLink({
6983
+ className,
6984
+ ...props
6985
+ }) {
6986
+ return /* @__PURE__ */ jsxRuntime.jsx(
6987
+ radixUi.NavigationMenu.Link,
6988
+ {
6989
+ "data-slot": "navigation-menu-link",
6990
+ className: cn(
6991
+ "hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 flex flex-col gap-1 rounded-md p-2 text-sm transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1",
6992
+ className
6993
+ ),
6994
+ ...props
6995
+ }
6996
+ );
6997
+ }
6998
+ function NavigationMenuIndicator({
6999
+ className,
7000
+ ...props
7001
+ }) {
7002
+ return /* @__PURE__ */ jsxRuntime.jsx(
7003
+ radixUi.NavigationMenu.Indicator,
7004
+ {
7005
+ "data-slot": "navigation-menu-indicator",
7006
+ className: cn(
7007
+ "data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-10 flex h-1.5 items-end justify-center overflow-hidden",
7008
+ className
7009
+ ),
7010
+ ...props,
7011
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-ts-md shadow-md" })
7012
+ }
7013
+ );
7014
+ }
6839
7015
  function Pagination({ className, ...props }) {
6840
7016
  return /* @__PURE__ */ jsxRuntime.jsx(
6841
7017
  "nav",
@@ -7126,6 +7302,7 @@ exports.CommandItem = CommandItem;
7126
7302
  exports.CommandList = CommandList;
7127
7303
  exports.CommandSeparator = CommandSeparator;
7128
7304
  exports.CommandShortcut = CommandShortcut;
7305
+ exports.Container = Container;
7129
7306
  exports.ContextMenu = ContextMenu;
7130
7307
  exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem;
7131
7308
  exports.ContextMenuContent = ContextMenuContent;
@@ -7235,6 +7412,14 @@ exports.KanbanItemHandle = KanbanItemHandle;
7235
7412
  exports.KanbanOverlay = KanbanOverlay;
7236
7413
  exports.Kbd = Kbd;
7237
7414
  exports.Label = Label2;
7415
+ exports.NavigationMenu = NavigationMenu;
7416
+ exports.NavigationMenuContent = NavigationMenuContent;
7417
+ exports.NavigationMenuIndicator = NavigationMenuIndicator;
7418
+ exports.NavigationMenuItem = NavigationMenuItem;
7419
+ exports.NavigationMenuLink = NavigationMenuLink;
7420
+ exports.NavigationMenuList = NavigationMenuList;
7421
+ exports.NavigationMenuTrigger = NavigationMenuTrigger;
7422
+ exports.NavigationMenuViewport = NavigationMenuViewport;
7238
7423
  exports.Pagination = Pagination;
7239
7424
  exports.PaginationContent = PaginationContent;
7240
7425
  exports.PaginationEllipsis = PaginationEllipsis;
@@ -7298,12 +7483,14 @@ exports.buttonVariantConfig = buttonVariantConfig;
7298
7483
  exports.buttonVariants = buttonVariants;
7299
7484
  exports.cn = cn;
7300
7485
  exports.codeVariants = codeVariants;
7486
+ exports.containerVariants = containerVariants;
7301
7487
  exports.dateInputStyles = dateInputStyles;
7302
7488
  exports.headings = headings;
7303
7489
  exports.inputAddonVariants = inputAddonVariants;
7304
7490
  exports.inputVariants = inputVariants;
7305
7491
  exports.kbdVariants = kbdVariants;
7306
7492
  exports.labelVariants = labelVariants;
7493
+ exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle;
7307
7494
  exports.radioGroupVariants = radioGroupVariants;
7308
7495
  exports.radioItemVariants = radioItemVariants;
7309
7496
  exports.selectTriggerVariants = selectTriggerVariants;