@overmap-ai/blocks 1.0.25 → 1.0.26-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 +17 -10
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +17 -10
- 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
|
@@ -3433,22 +3433,29 @@ function $e698a72e93240346$var$getState(checked) {
|
|
|
3433
3433
|
}
|
|
3434
3434
|
const $e698a72e93240346$export$be92b6f5f03c0fe9 = $e698a72e93240346$export$48513f6b9f8ce62d;
|
|
3435
3435
|
const $e698a72e93240346$export$adb584737d712b70 = $e698a72e93240346$export$59aad738f51d1c05;
|
|
3436
|
-
const
|
|
3437
|
-
const
|
|
3438
|
-
const
|
|
3439
|
-
const
|
|
3440
|
-
const
|
|
3441
|
-
const checkboxHidden = "_checkboxHidden_pb9za_51";
|
|
3436
|
+
const checkbox = "_checkbox_yl8iy_5";
|
|
3437
|
+
const checkboxIndicator = "_checkboxIndicator_yl8iy_22";
|
|
3438
|
+
const checkboxLabel = "_checkboxLabel_yl8iy_33";
|
|
3439
|
+
const noTextHighlight = "_noTextHighlight_yl8iy_37";
|
|
3440
|
+
const checkboxHidden = "_checkboxHidden_yl8iy_46";
|
|
3442
3441
|
const styles$2 = {
|
|
3443
|
-
checkboxContainer,
|
|
3444
3442
|
checkbox,
|
|
3445
3443
|
checkboxIndicator,
|
|
3446
3444
|
checkboxLabel,
|
|
3447
3445
|
noTextHighlight,
|
|
3448
3446
|
checkboxHidden
|
|
3449
3447
|
};
|
|
3450
|
-
const _Checkbox = forwardRef(function Checkbox2({
|
|
3451
|
-
|
|
3448
|
+
const _Checkbox = forwardRef(function Checkbox2({
|
|
3449
|
+
className,
|
|
3450
|
+
labelClassName,
|
|
3451
|
+
label,
|
|
3452
|
+
checked,
|
|
3453
|
+
onCheckedChange,
|
|
3454
|
+
checkboxPosition = "center",
|
|
3455
|
+
alwaysShow = true,
|
|
3456
|
+
...rest
|
|
3457
|
+
}, ref) {
|
|
3458
|
+
return /* @__PURE__ */ jsx(HoverUtility, { children: ({ isHovered, ...props }) => /* @__PURE__ */ jsxs(Flex$1, { align: checkboxPosition, ...props, children: [
|
|
3452
3459
|
/* @__PURE__ */ jsx(
|
|
3453
3460
|
$e698a72e93240346$export$be92b6f5f03c0fe9,
|
|
3454
3461
|
{
|
|
@@ -3985,7 +3992,7 @@ const _Table = forwardRef(function Table2(props, ref) {
|
|
|
3985
3992
|
className: classNames(styles$1.tableRow, rowClassName, row.className, {
|
|
3986
3993
|
[styles$1.disabled]: row.disabled
|
|
3987
3994
|
}),
|
|
3988
|
-
onClick: !row.
|
|
3995
|
+
onClick: !row.disabled && row.onClick,
|
|
3989
3996
|
children: row.loading ? /* @__PURE__ */ jsx(
|
|
3990
3997
|
Cell,
|
|
3991
3998
|
{
|