@overmap-ai/blocks 1.0.26-component-forms.0 → 1.0.26-table-row-loading.1
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 +0 -2
- package/dist/blocks.js +28 -35
- package/dist/blocks.js.map +1 -1
- package/dist/blocks.umd.cjs +28 -35
- package/dist/blocks.umd.cjs.map +1 -1
- package/dist/style.css +42 -36
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode, ReactElement } from "react";
|
|
2
2
|
import { Checkbox as RadixCheckbox } from "@radix-ui/themes";
|
|
3
|
-
import { FlexProps } from "../Flex";
|
|
4
3
|
export type RadixCheckboxProps = React.ComponentProps<typeof RadixCheckbox>;
|
|
5
4
|
export type CheckboxValue = boolean | "indeterminate";
|
|
6
5
|
export interface CheckboxProps extends RadixCheckboxProps {
|
|
@@ -9,7 +8,6 @@ export interface CheckboxProps extends RadixCheckboxProps {
|
|
|
9
8
|
label?: ReactNode;
|
|
10
9
|
doesLabelCheck?: boolean;
|
|
11
10
|
alwaysShow?: boolean;
|
|
12
|
-
checkboxPosition?: FlexProps["align"];
|
|
13
11
|
}
|
|
14
12
|
export interface SelectAllCheckboxProps extends Omit<CheckboxProps, "checked"> {
|
|
15
13
|
children: Array<ReactElement<CheckboxProps>>;
|
package/dist/blocks.js
CHANGED
|
@@ -3433,29 +3433,22 @@ 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
|
|
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";
|
|
3441
3442
|
const styles$2 = {
|
|
3443
|
+
checkboxContainer,
|
|
3442
3444
|
checkbox,
|
|
3443
3445
|
checkboxIndicator,
|
|
3444
3446
|
checkboxLabel,
|
|
3445
3447
|
noTextHighlight,
|
|
3446
3448
|
checkboxHidden
|
|
3447
3449
|
};
|
|
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: [
|
|
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: [
|
|
3459
3452
|
/* @__PURE__ */ jsx(
|
|
3460
3453
|
$e698a72e93240346$export$be92b6f5f03c0fe9,
|
|
3461
3454
|
{
|
|
@@ -3555,24 +3548,24 @@ const SelectAllCheckbox = memo(function SelectAllCheckbox2({
|
|
|
3555
3548
|
childrenWithProps
|
|
3556
3549
|
] });
|
|
3557
3550
|
});
|
|
3558
|
-
const disabled = "
|
|
3559
|
-
const outerTableContainer = "
|
|
3560
|
-
const headerContainer = "
|
|
3561
|
-
const tableTopContainer = "
|
|
3562
|
-
const tableContainer = "
|
|
3563
|
-
const searchContainer = "
|
|
3564
|
-
const columnFilterSelect = "
|
|
3565
|
-
const table = "
|
|
3566
|
-
const tableHeaderCell = "
|
|
3567
|
-
const showSortIcon = "
|
|
3568
|
-
const tableRow = "
|
|
3569
|
-
const tableCell = "
|
|
3570
|
-
const noDataTextContainer = "
|
|
3571
|
-
const tableBottomContainer = "
|
|
3572
|
-
const rowsPerPageContainer = "
|
|
3573
|
-
const rowsPerPageText = "
|
|
3574
|
-
const pageText = "
|
|
3575
|
-
const descriptionSecondLine = "
|
|
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";
|
|
3576
3569
|
const styles$1 = {
|
|
3577
3570
|
disabled,
|
|
3578
3571
|
outerTableContainer,
|
|
@@ -3992,7 +3985,7 @@ const _Table = forwardRef(function Table2(props, ref) {
|
|
|
3992
3985
|
className: classNames(styles$1.tableRow, rowClassName, row.className, {
|
|
3993
3986
|
[styles$1.disabled]: row.disabled
|
|
3994
3987
|
}),
|
|
3995
|
-
onClick: !row.disabled && row.onClick,
|
|
3988
|
+
onClick: !row.loading && !row.disabled && row.onClick,
|
|
3996
3989
|
children: row.loading ? /* @__PURE__ */ jsx(
|
|
3997
3990
|
Cell,
|
|
3998
3991
|
{
|