adminium 1.0.3 → 1.0.4
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 +163 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.js +157 -3
- package/dist/index.js.map +1 -1
- package/dist/styles/adminium.css +172 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6836,6 +6836,160 @@ function ProgressRadial({
|
|
|
6836
6836
|
}
|
|
6837
6837
|
);
|
|
6838
6838
|
}
|
|
6839
|
+
function NavigationMenu({
|
|
6840
|
+
className,
|
|
6841
|
+
children,
|
|
6842
|
+
viewport = true,
|
|
6843
|
+
...props
|
|
6844
|
+
}) {
|
|
6845
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6846
|
+
radixUi.NavigationMenu.Root,
|
|
6847
|
+
{
|
|
6848
|
+
"data-slot": "navigation-menu",
|
|
6849
|
+
"data-viewport": viewport,
|
|
6850
|
+
className: cn(
|
|
6851
|
+
"group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
|
|
6852
|
+
className
|
|
6853
|
+
),
|
|
6854
|
+
...props,
|
|
6855
|
+
children: [
|
|
6856
|
+
children,
|
|
6857
|
+
viewport && /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuViewport, {})
|
|
6858
|
+
]
|
|
6859
|
+
}
|
|
6860
|
+
);
|
|
6861
|
+
}
|
|
6862
|
+
function NavigationMenuList({
|
|
6863
|
+
className,
|
|
6864
|
+
...props
|
|
6865
|
+
}) {
|
|
6866
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6867
|
+
radixUi.NavigationMenu.List,
|
|
6868
|
+
{
|
|
6869
|
+
"data-slot": "navigation-menu-list",
|
|
6870
|
+
className: cn(
|
|
6871
|
+
"group flex flex-1 list-none items-center justify-center gap-1",
|
|
6872
|
+
className
|
|
6873
|
+
),
|
|
6874
|
+
...props
|
|
6875
|
+
}
|
|
6876
|
+
);
|
|
6877
|
+
}
|
|
6878
|
+
function NavigationMenuItem({
|
|
6879
|
+
className,
|
|
6880
|
+
...props
|
|
6881
|
+
}) {
|
|
6882
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6883
|
+
radixUi.NavigationMenu.Item,
|
|
6884
|
+
{
|
|
6885
|
+
"data-slot": "navigation-menu-item",
|
|
6886
|
+
className: cn("relative", className),
|
|
6887
|
+
...props
|
|
6888
|
+
}
|
|
6889
|
+
);
|
|
6890
|
+
}
|
|
6891
|
+
var navigationMenuTriggerStyle = classVarianceAuthority.cva(
|
|
6892
|
+
"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"
|
|
6893
|
+
);
|
|
6894
|
+
function NavigationMenuTrigger({
|
|
6895
|
+
className,
|
|
6896
|
+
children,
|
|
6897
|
+
...props
|
|
6898
|
+
}) {
|
|
6899
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6900
|
+
radixUi.NavigationMenu.Trigger,
|
|
6901
|
+
{
|
|
6902
|
+
"data-slot": "navigation-menu-trigger",
|
|
6903
|
+
className: cn(navigationMenuTriggerStyle(), className),
|
|
6904
|
+
...props,
|
|
6905
|
+
children: [
|
|
6906
|
+
children,
|
|
6907
|
+
" ",
|
|
6908
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6909
|
+
lucideReact.ChevronDownIcon,
|
|
6910
|
+
{
|
|
6911
|
+
className: "relative top-px ms-1 size-3.5 opacity-60 transition duration-300 group-data-[state=open]:rotate-180",
|
|
6912
|
+
"aria-hidden": "true"
|
|
6913
|
+
}
|
|
6914
|
+
)
|
|
6915
|
+
]
|
|
6916
|
+
}
|
|
6917
|
+
);
|
|
6918
|
+
}
|
|
6919
|
+
function NavigationMenuContent({
|
|
6920
|
+
className,
|
|
6921
|
+
...props
|
|
6922
|
+
}) {
|
|
6923
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6924
|
+
radixUi.NavigationMenu.Content,
|
|
6925
|
+
{
|
|
6926
|
+
"data-slot": "navigation-menu-content",
|
|
6927
|
+
className: cn(
|
|
6928
|
+
"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",
|
|
6929
|
+
"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",
|
|
6930
|
+
className
|
|
6931
|
+
),
|
|
6932
|
+
...props
|
|
6933
|
+
}
|
|
6934
|
+
);
|
|
6935
|
+
}
|
|
6936
|
+
function NavigationMenuViewport({
|
|
6937
|
+
className,
|
|
6938
|
+
...props
|
|
6939
|
+
}) {
|
|
6940
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6941
|
+
"div",
|
|
6942
|
+
{
|
|
6943
|
+
className: cn(
|
|
6944
|
+
"absolute top-full right-0 isolate z-50 flex items-center justify-center"
|
|
6945
|
+
),
|
|
6946
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6947
|
+
radixUi.NavigationMenu.Viewport,
|
|
6948
|
+
{
|
|
6949
|
+
"data-slot": "navigation-menu-viewport",
|
|
6950
|
+
className: cn(
|
|
6951
|
+
"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)",
|
|
6952
|
+
className
|
|
6953
|
+
),
|
|
6954
|
+
...props
|
|
6955
|
+
}
|
|
6956
|
+
)
|
|
6957
|
+
}
|
|
6958
|
+
);
|
|
6959
|
+
}
|
|
6960
|
+
function NavigationMenuLink({
|
|
6961
|
+
className,
|
|
6962
|
+
...props
|
|
6963
|
+
}) {
|
|
6964
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6965
|
+
radixUi.NavigationMenu.Link,
|
|
6966
|
+
{
|
|
6967
|
+
"data-slot": "navigation-menu-link",
|
|
6968
|
+
className: cn(
|
|
6969
|
+
"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",
|
|
6970
|
+
className
|
|
6971
|
+
),
|
|
6972
|
+
...props
|
|
6973
|
+
}
|
|
6974
|
+
);
|
|
6975
|
+
}
|
|
6976
|
+
function NavigationMenuIndicator({
|
|
6977
|
+
className,
|
|
6978
|
+
...props
|
|
6979
|
+
}) {
|
|
6980
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6981
|
+
radixUi.NavigationMenu.Indicator,
|
|
6982
|
+
{
|
|
6983
|
+
"data-slot": "navigation-menu-indicator",
|
|
6984
|
+
className: cn(
|
|
6985
|
+
"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",
|
|
6986
|
+
className
|
|
6987
|
+
),
|
|
6988
|
+
...props,
|
|
6989
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-ts-md shadow-md" })
|
|
6990
|
+
}
|
|
6991
|
+
);
|
|
6992
|
+
}
|
|
6839
6993
|
function Pagination({ className, ...props }) {
|
|
6840
6994
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6841
6995
|
"nav",
|
|
@@ -7235,6 +7389,14 @@ exports.KanbanItemHandle = KanbanItemHandle;
|
|
|
7235
7389
|
exports.KanbanOverlay = KanbanOverlay;
|
|
7236
7390
|
exports.Kbd = Kbd;
|
|
7237
7391
|
exports.Label = Label2;
|
|
7392
|
+
exports.NavigationMenu = NavigationMenu;
|
|
7393
|
+
exports.NavigationMenuContent = NavigationMenuContent;
|
|
7394
|
+
exports.NavigationMenuIndicator = NavigationMenuIndicator;
|
|
7395
|
+
exports.NavigationMenuItem = NavigationMenuItem;
|
|
7396
|
+
exports.NavigationMenuLink = NavigationMenuLink;
|
|
7397
|
+
exports.NavigationMenuList = NavigationMenuList;
|
|
7398
|
+
exports.NavigationMenuTrigger = NavigationMenuTrigger;
|
|
7399
|
+
exports.NavigationMenuViewport = NavigationMenuViewport;
|
|
7238
7400
|
exports.Pagination = Pagination;
|
|
7239
7401
|
exports.PaginationContent = PaginationContent;
|
|
7240
7402
|
exports.PaginationEllipsis = PaginationEllipsis;
|
|
@@ -7304,6 +7466,7 @@ exports.inputAddonVariants = inputAddonVariants;
|
|
|
7304
7466
|
exports.inputVariants = inputVariants;
|
|
7305
7467
|
exports.kbdVariants = kbdVariants;
|
|
7306
7468
|
exports.labelVariants = labelVariants;
|
|
7469
|
+
exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle;
|
|
7307
7470
|
exports.radioGroupVariants = radioGroupVariants;
|
|
7308
7471
|
exports.radioItemVariants = radioItemVariants;
|
|
7309
7472
|
exports.selectTriggerVariants = selectTriggerVariants;
|