@overmap-ai/blocks 1.0.24 → 1.0.25-component-forms.0
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/Checkbox/typings.d.ts +2 -0
- package/dist/blocks.js +16 -9
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +16 -9
- package/dist/blocks.umd.cjs.map +1 -1
- package/dist/style.css +6 -11
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode, ReactElement } from "react";
|
|
2
2
|
import { Checkbox as RadixCheckbox } from "@radix-ui/themes";
|
|
3
|
+
import { FlexProps } from "../Flex";
|
|
3
4
|
export type RadixCheckboxProps = React.ComponentProps<typeof RadixCheckbox>;
|
|
4
5
|
export type CheckboxValue = boolean | "indeterminate";
|
|
5
6
|
export interface CheckboxProps extends RadixCheckboxProps {
|
|
@@ -8,6 +9,7 @@ export interface CheckboxProps extends RadixCheckboxProps {
|
|
|
8
9
|
label?: ReactNode;
|
|
9
10
|
doesLabelCheck?: boolean;
|
|
10
11
|
alwaysShow?: boolean;
|
|
12
|
+
checkboxPosition?: FlexProps["align"];
|
|
11
13
|
}
|
|
12
14
|
export interface SelectAllCheckboxProps extends Omit<CheckboxProps, "checked"> {
|
|
13
15
|
children: Array<ReactElement<CheckboxProps>>;
|
package/dist/blocks.js
CHANGED
|
@@ -3280,22 +3280,29 @@ function $e698a72e93240346$var$getState(checked) {
|
|
|
3280
3280
|
}
|
|
3281
3281
|
const $e698a72e93240346$export$be92b6f5f03c0fe9 = $e698a72e93240346$export$48513f6b9f8ce62d;
|
|
3282
3282
|
const $e698a72e93240346$export$adb584737d712b70 = $e698a72e93240346$export$59aad738f51d1c05;
|
|
3283
|
-
const
|
|
3284
|
-
const
|
|
3285
|
-
const
|
|
3286
|
-
const
|
|
3287
|
-
const
|
|
3288
|
-
const checkboxHidden = "_checkboxHidden_pb9za_51";
|
|
3283
|
+
const checkbox = "_checkbox_yl8iy_5";
|
|
3284
|
+
const checkboxIndicator = "_checkboxIndicator_yl8iy_22";
|
|
3285
|
+
const checkboxLabel = "_checkboxLabel_yl8iy_33";
|
|
3286
|
+
const noTextHighlight = "_noTextHighlight_yl8iy_37";
|
|
3287
|
+
const checkboxHidden = "_checkboxHidden_yl8iy_46";
|
|
3289
3288
|
const styles$2 = {
|
|
3290
|
-
checkboxContainer,
|
|
3291
3289
|
checkbox,
|
|
3292
3290
|
checkboxIndicator,
|
|
3293
3291
|
checkboxLabel,
|
|
3294
3292
|
noTextHighlight,
|
|
3295
3293
|
checkboxHidden
|
|
3296
3294
|
};
|
|
3297
|
-
const _Checkbox = forwardRef(function Checkbox2({
|
|
3298
|
-
|
|
3295
|
+
const _Checkbox = forwardRef(function Checkbox2({
|
|
3296
|
+
className,
|
|
3297
|
+
labelClassName,
|
|
3298
|
+
label,
|
|
3299
|
+
checked,
|
|
3300
|
+
onCheckedChange,
|
|
3301
|
+
checkboxPosition = "center",
|
|
3302
|
+
alwaysShow = true,
|
|
3303
|
+
...rest
|
|
3304
|
+
}, ref) {
|
|
3305
|
+
return /* @__PURE__ */ jsx(HoverUtility, { children: ({ isHovered, ...props }) => /* @__PURE__ */ jsxs(Flex$1, { align: checkboxPosition, ...props, children: [
|
|
3299
3306
|
/* @__PURE__ */ jsx(
|
|
3300
3307
|
$e698a72e93240346$export$be92b6f5f03c0fe9,
|
|
3301
3308
|
{
|