@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.cjs
CHANGED
|
@@ -13631,13 +13631,21 @@ function useSelectState(params) {
|
|
|
13631
13631
|
(option) => isOptionSelected2(option, selectedOptions),
|
|
13632
13632
|
[isOptionSelected2, selectedOptions]
|
|
13633
13633
|
);
|
|
13634
|
+
const sssDebugSelectOptionCount = React48.useRef(0);
|
|
13634
13635
|
const selectOption = React48.useCallback(
|
|
13635
13636
|
(option) => {
|
|
13636
|
-
|
|
13637
|
-
|
|
13638
|
-
|
|
13639
|
-
currentSelectedCount: selectedOptions.length
|
|
13640
|
-
|
|
13637
|
+
sssDebugSelectOptionCount.current += 1;
|
|
13638
|
+
console.log(
|
|
13639
|
+
`[SC-debug] selectOption #${sssDebugSelectOptionCount.current}`,
|
|
13640
|
+
{ value: option.value, isMulti, currentSelectedCount: selectedOptions.length }
|
|
13641
|
+
);
|
|
13642
|
+
console.trace("[SC-debug] selectOption caller stack");
|
|
13643
|
+
if (sssDebugSelectOptionCount.current === 5) {
|
|
13644
|
+
console.warn(
|
|
13645
|
+
"[SC-debug] selectOption fired 5x \u2014 pausing. Step out to see the caller."
|
|
13646
|
+
);
|
|
13647
|
+
debugger;
|
|
13648
|
+
}
|
|
13641
13649
|
if (!isOptionEnabled(option, isOptionDisabled)) return;
|
|
13642
13650
|
if (isMulti) {
|
|
13643
13651
|
const exists = isValueSelected(option);
|
|
@@ -15142,7 +15150,8 @@ function SelectCheckboxOption(props) {
|
|
|
15142
15150
|
disabled: isDisabled,
|
|
15143
15151
|
size: "s",
|
|
15144
15152
|
tabIndex: -1,
|
|
15145
|
-
className: "pointer-events-none shrink-0"
|
|
15153
|
+
className: "pointer-events-none shrink-0",
|
|
15154
|
+
onClick: (event) => event.stopPropagation()
|
|
15146
15155
|
}
|
|
15147
15156
|
),
|
|
15148
15157
|
/* @__PURE__ */ (0, import_jsx_runtime165.jsxs)("span", { className: "flex min-w-0 flex-1 items-center justify-between gap-2", children: [
|
|
@@ -15260,7 +15269,8 @@ function SelectAllRow({ label, checked, disabled, onToggle }) {
|
|
|
15260
15269
|
disabled,
|
|
15261
15270
|
size: "s",
|
|
15262
15271
|
tabIndex: -1,
|
|
15263
|
-
className: "pointer-events-none shrink-0"
|
|
15272
|
+
className: "pointer-events-none shrink-0",
|
|
15273
|
+
onClick: (event) => event.stopPropagation()
|
|
15264
15274
|
}
|
|
15265
15275
|
),
|
|
15266
15276
|
/* @__PURE__ */ (0, import_jsx_runtime167.jsx)("span", { className: "flex-1", children: label })
|
|
@@ -15341,13 +15351,15 @@ function SelectCheckboxesInternal(props, ref) {
|
|
|
15341
15351
|
);
|
|
15342
15352
|
const currentValue = isControlled ? value : internalValue;
|
|
15343
15353
|
const selected = React59.useMemo(() => currentValue ?? [], [currentValue]);
|
|
15354
|
+
const scDebugHandleChangeCount = React59.useRef(0);
|
|
15344
15355
|
const handleChange = React59.useCallback(
|
|
15345
15356
|
(next, meta) => {
|
|
15346
|
-
|
|
15347
|
-
|
|
15348
|
-
|
|
15349
|
-
isControlled
|
|
15350
|
-
|
|
15357
|
+
scDebugHandleChangeCount.current += 1;
|
|
15358
|
+
console.log(
|
|
15359
|
+
`[SC-debug] handleChange #${scDebugHandleChangeCount.current}`,
|
|
15360
|
+
{ action: meta?.action, nextLength: next.length, isControlled }
|
|
15361
|
+
);
|
|
15362
|
+
console.trace("[SC-debug] handleChange caller stack");
|
|
15351
15363
|
if (!isControlled) setInternalValue(next);
|
|
15352
15364
|
onChange?.(next, meta);
|
|
15353
15365
|
},
|