@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.
- package/dist/Input/cva.d.ts +3 -3
- package/dist/TextArea/cva.d.ts +1 -1
- package/dist/blocks.js +28 -37
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +28 -37
- package/dist/blocks.umd.cjs.map +1 -1
- package/dist/utils.d.ts +9 -7
- package/package.json +2 -2
package/dist/blocks.umd.cjs
CHANGED
|
@@ -840,14 +840,15 @@
|
|
|
840
840
|
}
|
|
841
841
|
let _resizeObserver;
|
|
842
842
|
const getResizeObserver = (polyfill) => !_resizeObserver ? _resizeObserver = createResizeObserver(polyfill) : _resizeObserver;
|
|
843
|
-
const useViewportSize = () => {
|
|
843
|
+
const useViewportSize = (props) => {
|
|
844
|
+
const { xs: xsProps, sm: smProps, md: mdProps, lg: lgProps, xl: xlProps } = props;
|
|
844
845
|
const [prevSize, setPrevSize] = React.useState("initial");
|
|
845
846
|
const [size, setSize] = React.useState("initial");
|
|
846
|
-
const xs = reactResponsive.useMediaQuery({ minWidth:
|
|
847
|
-
const sm = reactResponsive.useMediaQuery({ minWidth:
|
|
848
|
-
const md = reactResponsive.useMediaQuery({ minWidth:
|
|
849
|
-
const lg = reactResponsive.useMediaQuery({ minWidth:
|
|
850
|
-
const xl = reactResponsive.useMediaQuery({ minWidth:
|
|
847
|
+
const xs = reactResponsive.useMediaQuery({ minWidth: xsProps });
|
|
848
|
+
const sm = reactResponsive.useMediaQuery({ minWidth: smProps });
|
|
849
|
+
const md = reactResponsive.useMediaQuery({ minWidth: mdProps });
|
|
850
|
+
const lg = reactResponsive.useMediaQuery({ minWidth: lgProps });
|
|
851
|
+
const xl = reactResponsive.useMediaQuery({ minWidth: xlProps });
|
|
851
852
|
React.useLayoutEffect(() => {
|
|
852
853
|
setSize((prev) => {
|
|
853
854
|
setPrevSize(prev);
|
|
@@ -1117,24 +1118,10 @@
|
|
|
1117
1118
|
center: ["text-center"],
|
|
1118
1119
|
right: ["text-right"]
|
|
1119
1120
|
}
|
|
1120
|
-
},
|
|
1121
|
-
defaultVariants: {
|
|
1122
|
-
size: "xl",
|
|
1123
|
-
weight: "medium",
|
|
1124
|
-
align: "left"
|
|
1125
1121
|
}
|
|
1126
1122
|
});
|
|
1127
1123
|
const Heading = React.forwardRef((props, ref) => {
|
|
1128
|
-
const {
|
|
1129
|
-
className,
|
|
1130
|
-
level = "1",
|
|
1131
|
-
size = "md",
|
|
1132
|
-
weight = "medium",
|
|
1133
|
-
align = "left",
|
|
1134
|
-
highContrast = false,
|
|
1135
|
-
accentColor,
|
|
1136
|
-
...rest
|
|
1137
|
-
} = props;
|
|
1124
|
+
const { className, level = "1", size, weight, align, highContrast = false, accentColor, ...rest } = props;
|
|
1138
1125
|
const Tag = headingLevelTagMapping[level];
|
|
1139
1126
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1140
1127
|
Tag,
|
|
@@ -1237,7 +1224,8 @@
|
|
|
1237
1224
|
variant: {
|
|
1238
1225
|
surface: ["inset-ring", "inset-ring-(--accent-a7)", "bg-(--accent-surface)", "text-(--accent-a12)"],
|
|
1239
1226
|
soft: ["bg-(--accent-a3)", "text-(--accent-12)"],
|
|
1240
|
-
outline: ["inset-ring", "inset-ring-(--base-a7)", "bg-transparent", "text-(--base-12)"]
|
|
1227
|
+
outline: ["inset-ring", "inset-ring-(--base-a7)", "bg-transparent", "text-(--base-12)"],
|
|
1228
|
+
ghost: ["bg-transparent", "text-(--base-12)"]
|
|
1241
1229
|
},
|
|
1242
1230
|
size: {
|
|
1243
1231
|
xs: ["h-5", "text-xs"],
|
|
@@ -1258,7 +1246,8 @@
|
|
|
1258
1246
|
variant: {
|
|
1259
1247
|
surface: ["placeholder-(--accent-12)", "placeholder:opacity-60", "selection:bg-(--accent-a5)"],
|
|
1260
1248
|
soft: ["placeholder-(--accent-12)", "placeholder:opacity-60", "selection:bg-(--accent-a5)"],
|
|
1261
|
-
outline: ["placeholder-(--base-a9)", "selection:bg-(--accent-a5)"]
|
|
1249
|
+
outline: ["placeholder-(--base-a9)", "selection:bg-(--accent-a5)"],
|
|
1250
|
+
ghost: ['placeholder-(--base-a9)", "selection:bg-(--accent-a5)']
|
|
1262
1251
|
},
|
|
1263
1252
|
size: {
|
|
1264
1253
|
xs: ["indent-1"],
|
|
@@ -1285,7 +1274,8 @@
|
|
|
1285
1274
|
variant: {
|
|
1286
1275
|
surface: ["text-(--accent-12)"],
|
|
1287
1276
|
soft: ["text-(--accent-12)"],
|
|
1288
|
-
outline: ["text-(--base-a11)"]
|
|
1277
|
+
outline: ["text-(--base-a11)"],
|
|
1278
|
+
ghost: ["text-(--base-a11)"]
|
|
1289
1279
|
}
|
|
1290
1280
|
},
|
|
1291
1281
|
defaultVariants: {
|
|
@@ -1847,11 +1837,11 @@
|
|
|
1847
1837
|
{
|
|
1848
1838
|
variants: {
|
|
1849
1839
|
size: {
|
|
1850
|
-
xs: ["p-
|
|
1851
|
-
sm: ["p-
|
|
1852
|
-
md: ["p-
|
|
1853
|
-
lg: ["p-
|
|
1854
|
-
xl: ["p-
|
|
1840
|
+
xs: ["p-0.5", "text-xs"],
|
|
1841
|
+
sm: ["p-0.75", "text-sm"],
|
|
1842
|
+
md: ["p-1", "text-md"],
|
|
1843
|
+
lg: ["p-1.25", "text-lg"],
|
|
1844
|
+
xl: ["p-1.5", "text-xl"]
|
|
1855
1845
|
},
|
|
1856
1846
|
radius: {
|
|
1857
1847
|
none: ["rounded-none"],
|
|
@@ -3594,11 +3584,11 @@
|
|
|
3594
3584
|
const tabsListCva = classVarianceAuthority.cva(["flex", "border-box", "inset-shadow-[0_-1px_0_0_var(--base-a6)]"], {
|
|
3595
3585
|
variants: {
|
|
3596
3586
|
size: {
|
|
3597
|
-
xs: ["h-
|
|
3598
|
-
sm: ["h-
|
|
3599
|
-
md: ["h-
|
|
3600
|
-
lg: ["h-
|
|
3601
|
-
xl: ["h-
|
|
3587
|
+
xs: ["h-6", "text-xs"],
|
|
3588
|
+
sm: ["h-7", "text-sm"],
|
|
3589
|
+
md: ["h-8", "text-base"],
|
|
3590
|
+
lg: ["h-9", "text-lg"],
|
|
3591
|
+
xl: ["h-10", "text-xl"]
|
|
3602
3592
|
}
|
|
3603
3593
|
},
|
|
3604
3594
|
defaultVariants: {
|
|
@@ -3668,9 +3658,9 @@
|
|
|
3668
3658
|
return tabsListContext;
|
|
3669
3659
|
};
|
|
3670
3660
|
const TabsTrigger = React.forwardRef((props, ref) => {
|
|
3671
|
-
const { className, ...rest } = props;
|
|
3661
|
+
const { className, children, ...rest } = props;
|
|
3672
3662
|
const { size } = useTabsList();
|
|
3673
|
-
return /* @__PURE__ */ jsxRuntime.jsx(RadixTabs__namespace.Trigger, { ref, className: classVarianceAuthority.cx(className, tabsTriggerCva({ size })), ...rest });
|
|
3663
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RadixTabs__namespace.Trigger, { ref, className: classVarianceAuthority.cx(className, tabsTriggerCva({ size })), ...rest, children });
|
|
3674
3664
|
});
|
|
3675
3665
|
TabsTrigger.displayName = "TabsTrigger";
|
|
3676
3666
|
const Tabs = {
|
|
@@ -3762,7 +3752,8 @@
|
|
|
3762
3752
|
"placeholder-(--accent-12)",
|
|
3763
3753
|
"placeholder:opacity-60",
|
|
3764
3754
|
"selection:bg-(--accent-a5)"
|
|
3765
|
-
]
|
|
3755
|
+
],
|
|
3756
|
+
ghost: ["placeholder-(--base-a9)", "selection:bg-(--accent-a5)", "bg-transparent", "text-(--base-12)"]
|
|
3766
3757
|
},
|
|
3767
3758
|
size: {
|
|
3768
3759
|
xs: ["p-1", "text-xs"],
|