@cboxdk/cbox-ui 0.11.1 → 0.11.2
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.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/tokens/shell.css +3 -0
package/dist/index.js
CHANGED
|
@@ -1671,6 +1671,7 @@ function dragIntent({ zone, dx, dy, scrollTop, canGrow }) {
|
|
|
1671
1671
|
var EASE = "cubic-bezier(.2, .9, .25, 1)";
|
|
1672
1672
|
var DURATION = 280;
|
|
1673
1673
|
var NO_DRAG = "input, textarea, select, [contenteditable], [data-no-drag]";
|
|
1674
|
+
var GRAB_FIELD = '.cbx-sheet-grab :is(input[type="search"], input[type="text"], input:not([type]))';
|
|
1674
1675
|
function reducedMotion() {
|
|
1675
1676
|
return typeof window.matchMedia === "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
1676
1677
|
}
|
|
@@ -1731,7 +1732,7 @@ function useSheetDrag({ panel, scrim, size, onClose, enabled = true }) {
|
|
|
1731
1732
|
if (closing) return;
|
|
1732
1733
|
if (event.pointerType === "mouse" && event.button !== 0) return;
|
|
1733
1734
|
const target = event.target instanceof Element ? event.target : null;
|
|
1734
|
-
if (target === null || target.closest(NO_DRAG) !== null) return;
|
|
1735
|
+
if (target === null || target.closest(NO_DRAG) !== null && !target.matches(GRAB_FIELD)) return;
|
|
1735
1736
|
const zone = target.closest(".cbx-sheet-grab") !== null ? "grab" : "content";
|
|
1736
1737
|
gesture = { id: event.pointerId, x: event.clientX, y: event.clientY, zone, scroller: scrollerOf(target), mode: void 0, last: event.clientY, start: 0, detents: [], tracker: new VelocityTracker() };
|
|
1737
1738
|
gesture.tracker.add(event.timeStamp, event.clientY);
|
|
@@ -4300,7 +4301,7 @@ function Combobox(props) {
|
|
|
4300
4301
|
onChange: (e) => setQuery(e.target.value),
|
|
4301
4302
|
onKeyDown,
|
|
4302
4303
|
placeholder: searchPlaceholder,
|
|
4303
|
-
className: "h-8 w-full rounded-sm border-0 bg-transparent pl-7 pr-2 text-
|
|
4304
|
+
className: "h-8 w-full rounded-sm border-0 bg-transparent pl-7 pr-2 text-base outline-none placeholder:text-muted-foreground/70 md:text-[13px]",
|
|
4304
4305
|
"aria-controls": listId,
|
|
4305
4306
|
"aria-autocomplete": "list",
|
|
4306
4307
|
"aria-activedescendant": highlightIndex >= 0 ? `${listId}-${highlightIndex}` : void 0
|