@mindtris/ui 0.1.10 → 0.1.11

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
@@ -2920,12 +2920,14 @@ interface DatePickerRangeProps {
2920
2920
  */
2921
2921
  declare function DatePickerRange({ value, onSelect, placeholder, disabled, className, calendarProps, }: DatePickerRangeProps): React$1.JSX.Element;
2922
2922
 
2923
- declare function Header({ variant, leftSlot, rightSlot, }: {
2923
+ declare function Header({ variant, leftSlot, rightSlot, hideMobileMenuButton, }: {
2924
2924
  variant?: 'default' | 'v2' | 'v3';
2925
2925
  /** App-specific header content for the left side (logo, menu, etc.). */
2926
2926
  leftSlot?: ReactNode;
2927
2927
  /** App-specific header actions (search, notifications, theme toggle, profile). Pass from app. */
2928
2928
  rightSlot?: ReactNode;
2929
+ /** When true, hides the hamburger menu button (e.g. for auth layout with full nav). */
2930
+ hideMobileMenuButton?: boolean;
2929
2931
  }): React$1.JSX.Element;
2930
2932
 
2931
2933
  interface NavbarLink {
@@ -3683,7 +3685,7 @@ type SelectItemProps = React$1.ComponentProps<typeof SelectPrimitive.Item>;
3683
3685
  type SelectLabelProps = React$1.ComponentProps<typeof SelectPrimitive.Label>;
3684
3686
  type SelectSeparatorProps = React$1.ComponentProps<typeof SelectPrimitive.Separator>;
3685
3687
  declare function SelectTrigger({ className, size, children, ...props }: SelectTriggerProps): React$1.JSX.Element;
3686
- declare function SelectContent({ className, children, position, ...props }: SelectContentProps): React$1.JSX.Element;
3688
+ declare function SelectContent({ className, children, position, sideOffset, ...props }: SelectContentProps): React$1.JSX.Element;
3687
3689
  declare function SelectLabel({ className, ...props }: SelectLabelProps): React$1.JSX.Element;
3688
3690
  declare function SelectItem({ className, children, ...props }: SelectItemProps): React$1.JSX.Element;
3689
3691
  declare function SelectSeparator({ className, ...props }: SelectSeparatorProps): React$1.JSX.Element;
package/dist/index.mjs CHANGED
@@ -2798,15 +2798,7 @@ function TooltipContent({
2798
2798
  ...props,
2799
2799
  children: [
2800
2800
  children,
2801
- /* @__PURE__ */ jsx2(
2802
- TooltipPrimitive.Arrow,
2803
- {
2804
- className: cn(
2805
- "z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]",
2806
- arrowVariantClasses[variant]
2807
- )
2808
- }
2809
- )
2801
+ /* @__PURE__ */ jsx2(TooltipPrimitive.Arrow, { className: cn("z-50", arrowVariantClasses[variant]) })
2810
2802
  ]
2811
2803
  }
2812
2804
  ) });
@@ -4007,7 +3999,7 @@ var Input = React7.forwardRef(
4007
3999
  // We only style the selector button here (token-driven).
4008
4000
  type === "file" && "cursor-pointer file:mr-3 file:px-3 file:py-1.5 file:rounded-md file:border-0 file:bg-background file:text-muted-foreground file:text-xs file:font-medium",
4009
4001
  "placeholder:text-muted-foreground",
4010
- "hover:border-border/80 focus-visible:outline-none focus-visible:ring-0 focus-visible:border-foreground/40",
4002
+ "hover:border-border/80 focus-visible:outline-none focus-visible:ring-0 focus-visible:border-primary",
4011
4003
  "disabled:bg-muted disabled:text-muted-foreground disabled:cursor-not-allowed",
4012
4004
  sizeClasses[size],
4013
4005
  className
@@ -9860,12 +9852,13 @@ import { jsx as jsx54, jsxs as jsxs34 } from "react/jsx-runtime";
9860
9852
  function Header({
9861
9853
  variant = "default",
9862
9854
  leftSlot,
9863
- rightSlot
9855
+ rightSlot,
9856
+ hideMobileMenuButton = false
9864
9857
  }) {
9865
9858
  const { sidebarOpen, setSidebarOpen } = useAppProvider();
9866
9859
  return /* @__PURE__ */ jsx54("header", { className: `sticky top-0 before:absolute before:inset-0 before:backdrop-blur-md max-lg:before:bg-background/90 before:-z-10 z-30 ${variant === "v2" || variant === "v3" ? "before:bg-background after:absolute after:h-px after:inset-x-0 after:top-full after:bg-border after:-z-10" : "max-lg:shadow-sm lg:before:bg-muted/90"} ${variant === "v2" ? "" : ""} ${variant === "v3" ? "" : ""}`, children: /* @__PURE__ */ jsx54("div", { className: "px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ jsxs34("div", { className: `flex items-center justify-between h-16 ${variant === "v2" || variant === "v3" ? "" : "lg:border-b border-border"}`, children: [
9867
9860
  /* @__PURE__ */ jsxs34("div", { className: "flex items-center gap-4", children: [
9868
- /* @__PURE__ */ jsxs34(
9861
+ !hideMobileMenuButton && /* @__PURE__ */ jsxs34(
9869
9862
  "button",
9870
9863
  {
9871
9864
  className: "text-muted-foreground hover:text-foreground lg:hidden",
@@ -12365,6 +12358,7 @@ function SelectContent({
12365
12358
  className,
12366
12359
  children,
12367
12360
  position = "popper",
12361
+ sideOffset = 4,
12368
12362
  ...props
12369
12363
  }) {
12370
12364
  return /* @__PURE__ */ jsx72(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs42(
@@ -12372,6 +12366,7 @@ function SelectContent({
12372
12366
  {
12373
12367
  "data-slot": "select-content",
12374
12368
  position,
12369
+ sideOffset,
12375
12370
  className: cn(
12376
12371
  "bg-popover text-popover-foreground border border-input",
12377
12372
  "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
@@ -12417,7 +12412,7 @@ function SelectItem({ className, children, ...props }) {
12417
12412
  "data-slot": "select-item",
12418
12413
  className: cn(
12419
12414
  "relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none",
12420
- "focus:bg-background focus:text-foreground",
12415
+ "focus:bg-muted focus:text-foreground data-[highlighted]:bg-muted data-[highlighted]:text-foreground",
12421
12416
  "data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
12422
12417
  className
12423
12418
  ),