@turingpaper/ui 0.0.3 → 0.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/button.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import * as d from "react";
1
+ import { jsx as d } from "react/jsx-runtime";
2
+ import * as a from "react";
3
3
  import { Slot as u } from "radix-ui";
4
4
  import { cva as c } from "class-variance-authority";
5
5
  import { cn as f } from "./utils.mjs";
@@ -17,6 +17,7 @@ const m = c(
17
17
  },
18
18
  size: {
19
19
  default: "h-10 px-4 py-2",
20
+ xs: "h-8 rounded-md px-2.5 text-xs",
20
21
  sm: "h-9 rounded-md px-3",
21
22
  lg: "h-11 rounded-md px-8",
22
23
  icon: "h-10 w-10"
@@ -27,10 +28,10 @@ const m = c(
27
28
  size: "default"
28
29
  }
29
30
  }
30
- ), g = d.forwardRef(
31
+ ), g = a.forwardRef(
31
32
  ({ className: e, variant: r, size: t, asChild: o = !1, ...n }, i) => {
32
33
  const s = o ? u.Root : "button";
33
- return /* @__PURE__ */ a(
34
+ return /* @__PURE__ */ d(
34
35
  s,
35
36
  {
36
37
  className: f(m({ variant: r, size: t, className: e })),
@@ -2,7 +2,7 @@ import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  declare const buttonVariants: (props?: ({
4
4
  variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
5
- size?: "default" | "sm" | "lg" | "icon" | null | undefined;
5
+ size?: "default" | "xs" | "sm" | "lg" | "icon" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
8
  asChild?: boolean;
@@ -7,7 +7,7 @@ declare const inputGroupAddonVariants: (props?: ({
7
7
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
8
8
  declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): import("react/jsx-runtime").JSX.Element;
9
9
  declare const inputGroupButtonVariants: (props?: ({
10
- size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
10
+ size?: "xs" | "sm" | "icon-xs" | "icon-sm" | null | undefined;
11
11
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
12
12
  declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): import("react/jsx-runtime").JSX.Element;
13
13
  declare function InputGroupText({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
@@ -120,8 +120,6 @@ type MapControlsProps = {
120
120
  showCompass?: boolean;
121
121
  /** Show locate button to find user's location (default: false) */
122
122
  showLocate?: boolean;
123
- /** Show fullscreen toggle button (default: false) */
124
- showFullscreen?: boolean;
125
123
  /** Additional CSS classes for the controls container */
126
124
  className?: string;
127
125
  /** Callback with user coordinates when located */
@@ -130,7 +128,7 @@ type MapControlsProps = {
130
128
  latitude: number;
131
129
  }) => void;
132
130
  };
133
- declare function MapControls({ position, showZoom, showCompass, showLocate, showFullscreen, className, onLocate, }: MapControlsProps): import("react/jsx-runtime").JSX.Element;
131
+ declare function MapControls({ position, showZoom, showCompass, showLocate, className, onLocate, }: MapControlsProps): import("react/jsx-runtime").JSX.Element;
134
132
  type MapPopupProps = {
135
133
  /** Longitude coordinate for popup position */
136
134
  longitude: number;