@chekinapp/ui 0.0.133 → 0.0.135
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/index.cjs +24 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +24 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13267,13 +13267,21 @@ function useSelectState(params) {
|
|
|
13267
13267
|
(option) => isOptionSelected2(option, selectedOptions),
|
|
13268
13268
|
[isOptionSelected2, selectedOptions]
|
|
13269
13269
|
);
|
|
13270
|
+
const sssDebugSelectOptionCount = React48.useRef(0);
|
|
13270
13271
|
const selectOption = React48.useCallback(
|
|
13271
13272
|
(option) => {
|
|
13272
|
-
|
|
13273
|
-
|
|
13274
|
-
|
|
13275
|
-
currentSelectedCount: selectedOptions.length
|
|
13276
|
-
|
|
13273
|
+
sssDebugSelectOptionCount.current += 1;
|
|
13274
|
+
console.log(
|
|
13275
|
+
`[SC-debug] selectOption #${sssDebugSelectOptionCount.current}`,
|
|
13276
|
+
{ value: option.value, isMulti, currentSelectedCount: selectedOptions.length }
|
|
13277
|
+
);
|
|
13278
|
+
console.trace("[SC-debug] selectOption caller stack");
|
|
13279
|
+
if (sssDebugSelectOptionCount.current === 5) {
|
|
13280
|
+
console.warn(
|
|
13281
|
+
"[SC-debug] selectOption fired 5x \u2014 pausing. Step out to see the caller."
|
|
13282
|
+
);
|
|
13283
|
+
debugger;
|
|
13284
|
+
}
|
|
13277
13285
|
if (!isOptionEnabled(option, isOptionDisabled)) return;
|
|
13278
13286
|
if (isMulti) {
|
|
13279
13287
|
const exists = isValueSelected(option);
|
|
@@ -14778,7 +14786,8 @@ function SelectCheckboxOption(props) {
|
|
|
14778
14786
|
disabled: isDisabled,
|
|
14779
14787
|
size: "s",
|
|
14780
14788
|
tabIndex: -1,
|
|
14781
|
-
className: "pointer-events-none shrink-0"
|
|
14789
|
+
className: "pointer-events-none shrink-0",
|
|
14790
|
+
onClick: (event) => event.stopPropagation()
|
|
14782
14791
|
}
|
|
14783
14792
|
),
|
|
14784
14793
|
/* @__PURE__ */ jsxs102("span", { className: "flex min-w-0 flex-1 items-center justify-between gap-2", children: [
|
|
@@ -14896,7 +14905,8 @@ function SelectAllRow({ label, checked, disabled, onToggle }) {
|
|
|
14896
14905
|
disabled,
|
|
14897
14906
|
size: "s",
|
|
14898
14907
|
tabIndex: -1,
|
|
14899
|
-
className: "pointer-events-none shrink-0"
|
|
14908
|
+
className: "pointer-events-none shrink-0",
|
|
14909
|
+
onClick: (event) => event.stopPropagation()
|
|
14900
14910
|
}
|
|
14901
14911
|
),
|
|
14902
14912
|
/* @__PURE__ */ jsx165("span", { className: "flex-1", children: label })
|
|
@@ -14977,13 +14987,15 @@ function SelectCheckboxesInternal(props, ref) {
|
|
|
14977
14987
|
);
|
|
14978
14988
|
const currentValue = isControlled ? value : internalValue;
|
|
14979
14989
|
const selected = React59.useMemo(() => currentValue ?? [], [currentValue]);
|
|
14990
|
+
const scDebugHandleChangeCount = React59.useRef(0);
|
|
14980
14991
|
const handleChange = React59.useCallback(
|
|
14981
14992
|
(next, meta) => {
|
|
14982
|
-
|
|
14983
|
-
|
|
14984
|
-
|
|
14985
|
-
isControlled
|
|
14986
|
-
|
|
14993
|
+
scDebugHandleChangeCount.current += 1;
|
|
14994
|
+
console.log(
|
|
14995
|
+
`[SC-debug] handleChange #${scDebugHandleChangeCount.current}`,
|
|
14996
|
+
{ action: meta?.action, nextLength: next.length, isControlled }
|
|
14997
|
+
);
|
|
14998
|
+
console.trace("[SC-debug] handleChange caller stack");
|
|
14987
14999
|
if (!isControlled) setInternalValue(next);
|
|
14988
15000
|
onChange?.(next, meta);
|
|
14989
15001
|
},
|