@overmap-ai/blocks 1.0.26-table-row-loading.1 → 1.0.26

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
@@ -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 checkboxContainer = "_checkboxContainer_pb9za_5";
3437
- const checkbox = "_checkbox_pb9za_5";
3438
- const checkboxIndicator = "_checkboxIndicator_pb9za_27";
3439
- const checkboxLabel = "_checkboxLabel_pb9za_38";
3440
- const noTextHighlight = "_noTextHighlight_pb9za_42";
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({ className, labelClassName, label, checked, onCheckedChange, alwaysShow = true, ...rest }, ref) {
3451
- return /* @__PURE__ */ jsx(HoverUtility, { children: ({ isHovered, ...props }) => /* @__PURE__ */ jsxs(Flex$1, { className: styles$2.checkboxContainer, ...props, children: [
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
  {
@@ -3548,24 +3555,24 @@ const SelectAllCheckbox = memo(function SelectAllCheckbox2({
3548
3555
  childrenWithProps
3549
3556
  ] });
3550
3557
  });
3551
- const disabled = "_disabled_ybi8a_1";
3552
- const outerTableContainer = "_outerTableContainer_ybi8a_5";
3553
- const headerContainer = "_headerContainer_ybi8a_17";
3554
- const tableTopContainer = "_tableTopContainer_ybi8a_21";
3555
- const tableContainer = "_tableContainer_ybi8a_25";
3556
- const searchContainer = "_searchContainer_ybi8a_30";
3557
- const columnFilterSelect = "_columnFilterSelect_ybi8a_40";
3558
- const table = "_table_ybi8a_21";
3559
- const tableHeaderCell = "_tableHeaderCell_ybi8a_59";
3560
- const showSortIcon = "_showSortIcon_ybi8a_75";
3561
- const tableRow = "_tableRow_ybi8a_79";
3562
- const tableCell = "_tableCell_ybi8a_94";
3563
- const noDataTextContainer = "_noDataTextContainer_ybi8a_104";
3564
- const tableBottomContainer = "_tableBottomContainer_ybi8a_110";
3565
- const rowsPerPageContainer = "_rowsPerPageContainer_ybi8a_114";
3566
- const rowsPerPageText = "_rowsPerPageText_ybi8a_124";
3567
- const pageText = "_pageText_ybi8a_129";
3568
- const descriptionSecondLine = "_descriptionSecondLine_ybi8a_133";
3558
+ const disabled = "_disabled_5i91d_1";
3559
+ const outerTableContainer = "_outerTableContainer_5i91d_5";
3560
+ const headerContainer = "_headerContainer_5i91d_17";
3561
+ const tableTopContainer = "_tableTopContainer_5i91d_21";
3562
+ const tableContainer = "_tableContainer_5i91d_25";
3563
+ const searchContainer = "_searchContainer_5i91d_30";
3564
+ const columnFilterSelect = "_columnFilterSelect_5i91d_40";
3565
+ const table = "_table_5i91d_21";
3566
+ const tableHeaderCell = "_tableHeaderCell_5i91d_58";
3567
+ const showSortIcon = "_showSortIcon_5i91d_74";
3568
+ const tableRow = "_tableRow_5i91d_78";
3569
+ const tableCell = "_tableCell_5i91d_93";
3570
+ const noDataTextContainer = "_noDataTextContainer_5i91d_103";
3571
+ const tableBottomContainer = "_tableBottomContainer_5i91d_109";
3572
+ const rowsPerPageContainer = "_rowsPerPageContainer_5i91d_113";
3573
+ const rowsPerPageText = "_rowsPerPageText_5i91d_123";
3574
+ const pageText = "_pageText_5i91d_128";
3575
+ const descriptionSecondLine = "_descriptionSecondLine_5i91d_132";
3569
3576
  const styles$1 = {
3570
3577
  disabled,
3571
3578
  outerTableContainer,
@@ -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.loading && !row.disabled && row.onClick,
3995
+ onClick: !row.disabled && row.onClick,
3989
3996
  children: row.loading ? /* @__PURE__ */ jsx(
3990
3997
  Cell,
3991
3998
  {