@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.
@@ -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 checkboxContainer = "_checkboxContainer_pb9za_5";
3284
- const checkbox = "_checkbox_pb9za_5";
3285
- const checkboxIndicator = "_checkboxIndicator_pb9za_27";
3286
- const checkboxLabel = "_checkboxLabel_pb9za_38";
3287
- const noTextHighlight = "_noTextHighlight_pb9za_42";
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({ className, labelClassName, label, checked, onCheckedChange, alwaysShow = true, ...rest }, ref) {
3298
- return /* @__PURE__ */ jsx(HoverUtility, { children: ({ isHovered, ...props }) => /* @__PURE__ */ jsxs(Flex$1, { className: styles$2.checkboxContainer, ...props, children: [
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
  {