@overmap-ai/blocks 1.0.31-tailwind-components.39 → 1.0.31-tailwind-components.41

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.
@@ -1,12 +1,12 @@
1
1
  export declare const inputRoot: (props?: ({
2
- variant?: "soft" | "outline" | "surface" | null | undefined;
2
+ variant?: "soft" | "outline" | "surface" | "ghost" | null | undefined;
3
3
  size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
4
4
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
5
  export declare const inputField: (props?: ({
6
- variant?: "soft" | "outline" | "surface" | null | undefined;
6
+ variant?: "soft" | "outline" | "surface" | "ghost" | null | undefined;
7
7
  size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
8
8
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
9
  export declare const inputSlot: (props?: ({
10
10
  size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
11
- variant?: "soft" | "outline" | "surface" | null | undefined;
11
+ variant?: "soft" | "outline" | "surface" | "ghost" | null | undefined;
12
12
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -1,5 +1,5 @@
1
1
  export declare const textAreaCva: (props?: ({
2
- variant?: "soft" | "outline" | "surface" | null | undefined;
2
+ variant?: "soft" | "outline" | "surface" | "ghost" | null | undefined;
3
3
  size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
4
4
  resize?: "none" | "both" | "horizontal" | "vertical" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
package/dist/blocks.js CHANGED
@@ -834,14 +834,15 @@ function createResizeObserver(polyfill) {
834
834
  }
835
835
  let _resizeObserver;
836
836
  const getResizeObserver = (polyfill) => !_resizeObserver ? _resizeObserver = createResizeObserver(polyfill) : _resizeObserver;
837
- const useViewportSize = () => {
837
+ const useViewportSize = (props) => {
838
+ const { xs: xsProps, sm: smProps, md: mdProps, lg: lgProps, xl: xlProps } = props;
838
839
  const [prevSize, setPrevSize] = useState("initial");
839
840
  const [size2, setSize] = useState("initial");
840
- const xs = useMediaQuery({ minWidth: "520px" });
841
- const sm = useMediaQuery({ minWidth: "768px" });
842
- const md = useMediaQuery({ minWidth: "1024px" });
843
- const lg = useMediaQuery({ minWidth: "1280px" });
844
- const xl = useMediaQuery({ minWidth: "1640px" });
841
+ const xs = useMediaQuery({ minWidth: xsProps });
842
+ const sm = useMediaQuery({ minWidth: smProps });
843
+ const md = useMediaQuery({ minWidth: mdProps });
844
+ const lg = useMediaQuery({ minWidth: lgProps });
845
+ const xl = useMediaQuery({ minWidth: xlProps });
845
846
  useLayoutEffect(() => {
846
847
  setSize((prev) => {
847
848
  setPrevSize(prev);
@@ -1111,24 +1112,10 @@ const headingCva = cva([], {
1111
1112
  center: ["text-center"],
1112
1113
  right: ["text-right"]
1113
1114
  }
1114
- },
1115
- defaultVariants: {
1116
- size: "xl",
1117
- weight: "medium",
1118
- align: "left"
1119
1115
  }
1120
1116
  });
1121
1117
  const Heading = forwardRef((props, ref) => {
1122
- const {
1123
- className,
1124
- level = "1",
1125
- size: size2 = "md",
1126
- weight = "medium",
1127
- align = "left",
1128
- highContrast = false,
1129
- accentColor,
1130
- ...rest
1131
- } = props;
1118
+ const { className, level = "1", size: size2, weight, align, highContrast = false, accentColor, ...rest } = props;
1132
1119
  const Tag = headingLevelTagMapping[level];
1133
1120
  return /* @__PURE__ */ jsx(
1134
1121
  Tag,
@@ -1231,7 +1218,8 @@ const inputRoot$1 = cva(
1231
1218
  variant: {
1232
1219
  surface: ["inset-ring", "inset-ring-(--accent-a7)", "bg-(--accent-surface)", "text-(--accent-a12)"],
1233
1220
  soft: ["bg-(--accent-a3)", "text-(--accent-12)"],
1234
- outline: ["inset-ring", "inset-ring-(--base-a7)", "bg-transparent", "text-(--base-12)"]
1221
+ outline: ["inset-ring", "inset-ring-(--base-a7)", "bg-transparent", "text-(--base-12)"],
1222
+ ghost: ["bg-transparent", "text-(--base-12)"]
1235
1223
  },
1236
1224
  size: {
1237
1225
  xs: ["h-5", "text-xs"],
@@ -1252,7 +1240,8 @@ const inputField = cva(["peer-[.slot]/slot:indent-0"], {
1252
1240
  variant: {
1253
1241
  surface: ["placeholder-(--accent-12)", "placeholder:opacity-60", "selection:bg-(--accent-a5)"],
1254
1242
  soft: ["placeholder-(--accent-12)", "placeholder:opacity-60", "selection:bg-(--accent-a5)"],
1255
- outline: ["placeholder-(--base-a9)", "selection:bg-(--accent-a5)"]
1243
+ outline: ["placeholder-(--base-a9)", "selection:bg-(--accent-a5)"],
1244
+ ghost: ['placeholder-(--base-a9)", "selection:bg-(--accent-a5)']
1256
1245
  },
1257
1246
  size: {
1258
1247
  xs: ["indent-1"],
@@ -1279,7 +1268,8 @@ const inputSlot = cva(["peer/slot", "slot"], {
1279
1268
  variant: {
1280
1269
  surface: ["text-(--accent-12)"],
1281
1270
  soft: ["text-(--accent-12)"],
1282
- outline: ["text-(--base-a11)"]
1271
+ outline: ["text-(--base-a11)"],
1272
+ ghost: ["text-(--base-a11)"]
1283
1273
  }
1284
1274
  },
1285
1275
  defaultVariants: {
@@ -1841,11 +1831,11 @@ const menuContent = cva(
1841
1831
  {
1842
1832
  variants: {
1843
1833
  size: {
1844
- xs: ["p-1", "text-xs"],
1845
- sm: ["p-1.5", "text-sm"],
1846
- md: ["p-2", "text-md"],
1847
- lg: ["p-2.5", "text-lg"],
1848
- xl: ["p-3", "text-xl"]
1834
+ xs: ["p-0.5", "text-xs"],
1835
+ sm: ["p-0.75", "text-sm"],
1836
+ md: ["p-1", "text-md"],
1837
+ lg: ["p-1.25", "text-lg"],
1838
+ xl: ["p-1.5", "text-xl"]
1849
1839
  },
1850
1840
  radius: {
1851
1841
  none: ["rounded-none"],
@@ -3588,11 +3578,11 @@ const TabsListContext = createContext({});
3588
3578
  const tabsListCva = cva(["flex", "border-box", "inset-shadow-[0_-1px_0_0_var(--base-a6)]"], {
3589
3579
  variants: {
3590
3580
  size: {
3591
- xs: ["h-5", "text-xs"],
3592
- sm: ["h-6", "text-sm"],
3593
- md: ["h-7", "text-base"],
3594
- lg: ["h-8", "text-lg"],
3595
- xl: ["h-9", "text-xl"]
3581
+ xs: ["h-6", "text-xs"],
3582
+ sm: ["h-7", "text-sm"],
3583
+ md: ["h-8", "text-base"],
3584
+ lg: ["h-9", "text-lg"],
3585
+ xl: ["h-10", "text-xl"]
3596
3586
  }
3597
3587
  },
3598
3588
  defaultVariants: {
@@ -3662,9 +3652,9 @@ const useTabsList = () => {
3662
3652
  return tabsListContext;
3663
3653
  };
3664
3654
  const TabsTrigger = forwardRef((props, ref) => {
3665
- const { className, ...rest } = props;
3655
+ const { className, children, ...rest } = props;
3666
3656
  const { size: size2 } = useTabsList();
3667
- return /* @__PURE__ */ jsx(RadixTabs.Trigger, { ref, className: cx(className, tabsTriggerCva({ size: size2 })), ...rest });
3657
+ return /* @__PURE__ */ jsx(RadixTabs.Trigger, { ref, className: cx(className, tabsTriggerCva({ size: size2 })), ...rest, children });
3668
3658
  });
3669
3659
  TabsTrigger.displayName = "TabsTrigger";
3670
3660
  const Tabs = {
@@ -3756,7 +3746,8 @@ const textAreaCva = cva(
3756
3746
  "placeholder-(--accent-12)",
3757
3747
  "placeholder:opacity-60",
3758
3748
  "selection:bg-(--accent-a5)"
3759
- ]
3749
+ ],
3750
+ ghost: ["placeholder-(--base-a9)", "selection:bg-(--accent-a5)", "bg-transparent", "text-(--base-12)"]
3760
3751
  },
3761
3752
  size: {
3762
3753
  xs: ["p-1", "text-xs"],