@sprawlify/primitives 0.0.111 → 0.0.113
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/collection.d.cts +2 -2
- package/dist/collection.d.mts +2 -2
- package/dist/{date-utils-Dz9DZPcZ.cjs → date-utils-B-dqorZV.cjs} +48 -13
- package/dist/{date-utils-BqOQP2-U.mjs → date-utils-BdeeOQRI.mjs} +43 -14
- package/dist/date-utils.cjs +2 -1
- package/dist/date-utils.d.cts +6 -5
- package/dist/date-utils.d.mts +2 -2
- package/dist/date-utils.mjs +2 -2
- package/dist/{focus-visible-GXKbbuiq.mjs → focus-visible-BuLf8M9F.mjs} +10 -9
- package/dist/{focus-visible-JdJXqMic.cjs → focus-visible-Co_9bW09.cjs} +14 -7
- package/dist/focus-visible.cjs +2 -1
- package/dist/focus-visible.d.cts +2 -1
- package/dist/focus-visible.d.mts +2 -1
- package/dist/focus-visible.mjs +2 -2
- package/dist/{index-6cEVkXqi.d.mts → index-BfUngXif.d.mts} +6 -5
- package/dist/{list-collection-Cjgbx_9l.d.cts → list-collection-B_8BN0XB.d.cts} +1 -1
- package/dist/{list-collection-IF510iNl.d.mts → list-collection-DkRA5LOq.d.mts} +1 -1
- package/dist/machines/accordion/index.d.cts +1 -1
- package/dist/machines/accordion/index.d.mts +1 -1
- package/dist/machines/angle-slider/index.cjs +64 -24
- package/dist/machines/angle-slider/index.d.cts +1 -1
- package/dist/machines/angle-slider/index.d.mts +1 -1
- package/dist/machines/angle-slider/index.mjs +65 -25
- package/dist/machines/carousel/index.d.cts +1 -1
- package/dist/machines/carousel/index.d.mts +1 -1
- package/dist/machines/cascade-select/index.cjs +50 -20
- package/dist/machines/cascade-select/index.d.cts +13 -10
- package/dist/machines/cascade-select/index.d.mts +13 -10
- package/dist/machines/cascade-select/index.mjs +50 -20
- package/dist/machines/checkbox/index.cjs +1 -1
- package/dist/machines/checkbox/index.mjs +1 -1
- package/dist/machines/clipboard/index.d.cts +1 -1
- package/dist/machines/clipboard/index.d.mts +1 -1
- package/dist/machines/collapsible/index.d.cts +1 -1
- package/dist/machines/collapsible/index.d.mts +1 -1
- package/dist/machines/color-picker/index.d.cts +1 -1
- package/dist/machines/color-picker/index.d.mts +1 -1
- package/dist/machines/combobox/index.cjs +21 -13
- package/dist/machines/combobox/index.d.cts +2 -2
- package/dist/machines/combobox/index.d.mts +2 -2
- package/dist/machines/combobox/index.mjs +21 -13
- package/dist/machines/date-picker/index.cjs +46 -25
- package/dist/machines/date-picker/index.d.cts +3 -2
- package/dist/machines/date-picker/index.d.mts +4 -3
- package/dist/machines/date-picker/index.mjs +47 -26
- package/dist/machines/dialog/index.d.cts +1 -1
- package/dist/machines/dialog/index.d.mts +1 -1
- package/dist/machines/drawer/index.d.cts +1 -1
- package/dist/machines/drawer/index.d.mts +1 -1
- package/dist/machines/dropdown-menu/index.cjs +7 -2
- package/dist/machines/dropdown-menu/index.d.cts +1 -1
- package/dist/machines/dropdown-menu/index.d.mts +1 -1
- package/dist/machines/dropdown-menu/index.mjs +7 -2
- package/dist/machines/editable/index.d.cts +1 -1
- package/dist/machines/editable/index.d.mts +1 -1
- package/dist/machines/file-upload/index.d.cts +1 -1
- package/dist/machines/file-upload/index.d.mts +1 -1
- package/dist/machines/floating-panel/index.d.cts +1 -1
- package/dist/machines/floating-panel/index.d.mts +1 -1
- package/dist/machines/hover-card/index.d.cts +1 -1
- package/dist/machines/hover-card/index.d.mts +1 -1
- package/dist/machines/listbox/index.cjs +1 -1
- package/dist/machines/listbox/index.d.cts +3 -3
- package/dist/machines/listbox/index.d.mts +3 -3
- package/dist/machines/listbox/index.mjs +1 -1
- package/dist/machines/marquee/index.d.cts +3 -3
- package/dist/machines/marquee/index.d.mts +3 -3
- package/dist/machines/navigation-menu/index.d.cts +1 -1
- package/dist/machines/navigation-menu/index.d.mts +1 -1
- package/dist/machines/number-input/index.d.cts +1 -1
- package/dist/machines/number-input/index.d.mts +1 -1
- package/dist/machines/password-input/index.d.cts +1 -1
- package/dist/machines/password-input/index.d.mts +1 -1
- package/dist/machines/popover/index.d.cts +1 -1
- package/dist/machines/popover/index.d.mts +1 -1
- package/dist/machines/progress/index.d.cts +1 -1
- package/dist/machines/progress/index.d.mts +1 -1
- package/dist/machines/radio-group/index.cjs +1 -1
- package/dist/machines/radio-group/index.d.cts +1 -1
- package/dist/machines/radio-group/index.d.mts +1 -1
- package/dist/machines/radio-group/index.mjs +1 -1
- package/dist/machines/scroll-area/index.d.cts +1 -1
- package/dist/machines/scroll-area/index.d.mts +1 -1
- package/dist/machines/select/index.cjs +7 -2
- package/dist/machines/select/index.d.cts +2 -2
- package/dist/machines/select/index.d.mts +2 -2
- package/dist/machines/select/index.mjs +7 -2
- package/dist/machines/slider/index.d.cts +1 -1
- package/dist/machines/slider/index.d.mts +1 -1
- package/dist/machines/steps/index.d.cts +1 -1
- package/dist/machines/steps/index.d.mts +1 -1
- package/dist/machines/switch/index.cjs +1 -1
- package/dist/machines/switch/index.d.cts +1 -1
- package/dist/machines/switch/index.d.mts +1 -1
- package/dist/machines/switch/index.mjs +1 -1
- package/dist/machines/tabs/index.d.cts +1 -1
- package/dist/machines/tabs/index.d.mts +1 -1
- package/dist/machines/tags-input/index.d.cts +1 -1
- package/dist/machines/tags-input/index.d.mts +1 -1
- package/dist/machines/timer/index.d.cts +1 -1
- package/dist/machines/timer/index.d.mts +1 -1
- package/dist/machines/toast/index.d.cts +3 -3
- package/dist/machines/toast/index.d.mts +3 -3
- package/dist/machines/tooltip/index.cjs +6 -6
- package/dist/machines/tooltip/index.d.cts +1 -1
- package/dist/machines/tooltip/index.d.mts +1 -1
- package/dist/machines/tooltip/index.mjs +7 -7
- package/dist/machines/tour/index.d.cts +1 -1
- package/dist/machines/tour/index.d.mts +1 -1
- package/dist/machines/tree-view/index.d.cts +1 -1
- package/dist/machines/tree-view/index.d.mts +1 -1
- package/dist/{selection-BmS2RDMq.d.cts → selection-Bb_ZSVxe.d.cts} +1 -1
- package/dist/{selection-6urf-c8j.d.mts → selection-DdNvrKbj.d.mts} +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
|
5
5
|
const require_core = require("../../core-DwdPztGA.cjs");
|
|
6
6
|
require("../../interact-outside-Bg-QSXqp.cjs");
|
|
7
7
|
const require_dismissable = require("../../dismissable-DxjbwsOf.cjs");
|
|
8
|
+
const require_focus_visible = require("../../focus-visible-Co_9bW09.cjs");
|
|
8
9
|
const require_popper = require("../../popper-viCrafLC.cjs");
|
|
9
10
|
const require_rect_utils = require("../../rect-utils-D3RkAaHK.cjs");
|
|
10
11
|
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
@@ -723,6 +724,7 @@ const machine = require_core.createMachine({
|
|
|
723
724
|
tags: ["open"],
|
|
724
725
|
effects: [
|
|
725
726
|
"trackInteractOutside",
|
|
727
|
+
"trackFocusVisible",
|
|
726
728
|
"trackPositioning",
|
|
727
729
|
"scrollToHighlightedItem"
|
|
728
730
|
],
|
|
@@ -849,6 +851,9 @@ const machine = require_core.createMachine({
|
|
|
849
851
|
}, 700);
|
|
850
852
|
return () => clearTimeout(timer);
|
|
851
853
|
},
|
|
854
|
+
trackFocusVisible({ scope }) {
|
|
855
|
+
return require_focus_visible.trackFocusVisible({ root: scope.getRootNode?.() });
|
|
856
|
+
},
|
|
852
857
|
trackPositioning({ context, prop, scope, refs }) {
|
|
853
858
|
const positioning = {
|
|
854
859
|
...prop("positioning"),
|
|
@@ -909,9 +914,9 @@ const machine = require_core.createMachine({
|
|
|
909
914
|
}
|
|
910
915
|
});
|
|
911
916
|
},
|
|
912
|
-
scrollToHighlightedItem({
|
|
917
|
+
scrollToHighlightedItem({ scope, computed }) {
|
|
913
918
|
const exec = () => {
|
|
914
|
-
if (
|
|
919
|
+
if (require_focus_visible.getInteractionModality() !== "keyboard") return;
|
|
915
920
|
require_dom_query.scrollIntoView(scope.getById(computed("highlightedId")), {
|
|
916
921
|
rootEl: getContentEl(scope),
|
|
917
922
|
block: "nearest"
|
|
@@ -8,7 +8,7 @@ import { c as Placement, d as PositioningOptions } from "../../types-CZAtqGqH.cj
|
|
|
8
8
|
import { a as Point } from "../../types-CLXYEgfm.cjs";
|
|
9
9
|
|
|
10
10
|
//#region src/machines/dropdown-menu/dropdown-menu.anatomy.d.ts
|
|
11
|
-
declare const anatomy: AnatomyInstance<"
|
|
11
|
+
declare const anatomy: AnatomyInstance<"separator" | "content" | "item" | "indicator" | "itemText" | "trigger" | "positioner" | "arrow" | "arrowTip" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "triggerItem">;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/machines/dropdown-menu/dropdown-menu.types.d.ts
|
|
14
14
|
interface OpenChangeDetails {
|
|
@@ -8,7 +8,7 @@ import { p as PositioningOptions, u as Placement } from "../../index-fMh0VDkR.mj
|
|
|
8
8
|
import { a as Point } from "../../types-DU764tY_.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/machines/dropdown-menu/dropdown-menu.anatomy.d.ts
|
|
11
|
-
declare const anatomy: AnatomyInstance<"
|
|
11
|
+
declare const anatomy: AnatomyInstance<"separator" | "content" | "item" | "indicator" | "itemText" | "trigger" | "positioner" | "arrow" | "arrowTip" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "triggerItem">;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/machines/dropdown-menu/dropdown-menu.types.d.ts
|
|
14
14
|
interface OpenChangeDetails {
|
|
@@ -4,6 +4,7 @@ import { G as cast, Ot as prev, Tt as next, ft as isEqual, tt as hasProp, u as c
|
|
|
4
4
|
import { a as createMachine, c as mergeProps, i as createGuards } from "../../core-Ci9Yu6QI.mjs";
|
|
5
5
|
import "../../interact-outside-Ba50N1a5.mjs";
|
|
6
6
|
import { n as trackDismissableElement } from "../../dismissable-B9k5K6f9.mjs";
|
|
7
|
+
import { o as trackFocusVisible, t as getInteractionModality } from "../../focus-visible-BuLf8M9F.mjs";
|
|
7
8
|
import { n as getPlacement, r as getPlacementSide, t as getPlacementStyles } from "../../popper-BlgbmdAn.mjs";
|
|
8
9
|
import { i as isPointInPolygon, r as getElementPolygon } from "../../rect-utils-B5xqFvKC.mjs";
|
|
9
10
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
@@ -722,6 +723,7 @@ const machine = createMachine({
|
|
|
722
723
|
tags: ["open"],
|
|
723
724
|
effects: [
|
|
724
725
|
"trackInteractOutside",
|
|
726
|
+
"trackFocusVisible",
|
|
725
727
|
"trackPositioning",
|
|
726
728
|
"scrollToHighlightedItem"
|
|
727
729
|
],
|
|
@@ -848,6 +850,9 @@ const machine = createMachine({
|
|
|
848
850
|
}, 700);
|
|
849
851
|
return () => clearTimeout(timer);
|
|
850
852
|
},
|
|
853
|
+
trackFocusVisible({ scope }) {
|
|
854
|
+
return trackFocusVisible({ root: scope.getRootNode?.() });
|
|
855
|
+
},
|
|
851
856
|
trackPositioning({ context, prop, scope, refs }) {
|
|
852
857
|
const positioning = {
|
|
853
858
|
...prop("positioning"),
|
|
@@ -908,9 +913,9 @@ const machine = createMachine({
|
|
|
908
913
|
}
|
|
909
914
|
});
|
|
910
915
|
},
|
|
911
|
-
scrollToHighlightedItem({
|
|
916
|
+
scrollToHighlightedItem({ scope, computed }) {
|
|
912
917
|
const exec = () => {
|
|
913
|
-
if (
|
|
918
|
+
if (getInteractionModality() !== "keyboard") return;
|
|
914
919
|
scrollIntoView(scope.getById(computed("highlightedId")), {
|
|
915
920
|
rootEl: getContentEl(scope),
|
|
916
921
|
block: "nearest"
|
|
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
|
|
|
4
4
|
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-DzWGFhcS.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/machines/editable/editable.anatomy.d.ts
|
|
7
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "
|
|
7
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "area" | "input" | "preview" | "editTrigger" | "submitTrigger" | "cancelTrigger">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/machines/editable/editable.types.d.ts
|
|
10
10
|
interface ValueChangeDetails {
|
|
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
|
|
|
4
4
|
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-CGNNiDyE.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/machines/editable/editable.anatomy.d.ts
|
|
7
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "
|
|
7
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "area" | "input" | "preview" | "editTrigger" | "submitTrigger" | "cancelTrigger">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/machines/editable/editable.types.d.ts
|
|
10
10
|
interface ValueChangeDetails {
|
|
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, o as LocaleProperties, t as Commo
|
|
|
4
4
|
import { i as FileMimeType, r as FileError } from "../../types-CylWsfOz.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/machines/file-upload/file-upload.anatomy.d.ts
|
|
7
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "
|
|
7
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "clearTrigger" | "item" | "trigger" | "dropzone" | "itemDeleteTrigger" | "itemGroup" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/machines/file-upload/file-upload.types.d.ts
|
|
10
10
|
interface FileRejection {
|
|
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, o as LocaleProperties, t as Commo
|
|
|
4
4
|
import { i as FileMimeType, r as FileError } from "../../types-Cctd5dol.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/machines/file-upload/file-upload.anatomy.d.ts
|
|
7
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "
|
|
7
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "clearTrigger" | "item" | "trigger" | "dropzone" | "itemDeleteTrigger" | "itemGroup" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/machines/file-upload/file-upload.types.d.ts
|
|
10
10
|
interface FileRejection {
|
|
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
|
|
|
4
4
|
import { a as Point, o as Rect, y as Size } from "../../types-CLXYEgfm.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/machines/floating-panel/floating-panel.anatomy.d.ts
|
|
7
|
-
declare const anatomy: AnatomyInstance<"control" | "
|
|
7
|
+
declare const anatomy: AnatomyInstance<"control" | "body" | "header" | "title" | "content" | "trigger" | "positioner" | "closeTrigger" | "resizeTrigger" | "dragTrigger" | "stageTrigger">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/machines/floating-panel/floating-panel.types.d.ts
|
|
10
10
|
interface PositionChangeDetails {
|
|
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
|
|
|
4
4
|
import { a as Point, o as Rect, y as Size } from "../../types-DU764tY_.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/machines/floating-panel/floating-panel.anatomy.d.ts
|
|
7
|
-
declare const anatomy: AnatomyInstance<"control" | "
|
|
7
|
+
declare const anatomy: AnatomyInstance<"control" | "body" | "header" | "title" | "content" | "trigger" | "positioner" | "closeTrigger" | "resizeTrigger" | "dragTrigger" | "stageTrigger">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/machines/floating-panel/floating-panel.types.d.ts
|
|
10
10
|
interface PositionChangeDetails {
|
|
@@ -5,7 +5,7 @@ import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusO
|
|
|
5
5
|
import { c as Placement, d as PositioningOptions } from "../../types-CZAtqGqH.cjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/hover-card/hover-card.anatomy.d.ts
|
|
8
|
-
declare const anatomy: AnatomyInstance<"
|
|
8
|
+
declare const anatomy: AnatomyInstance<"content" | "trigger" | "positioner" | "arrow" | "arrowTip">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/machines/hover-card/hover-card.types.d.ts
|
|
11
11
|
interface OpenChangeDetails {
|
|
@@ -5,7 +5,7 @@ import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusO
|
|
|
5
5
|
import { p as PositioningOptions, u as Placement } from "../../index-fMh0VDkR.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/hover-card/hover-card.anatomy.d.ts
|
|
8
|
-
declare const anatomy: AnatomyInstance<"
|
|
8
|
+
declare const anatomy: AnatomyInstance<"content" | "trigger" | "positioner" | "arrow" | "arrowTip">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/machines/hover-card/hover-card.types.d.ts
|
|
11
11
|
interface OpenChangeDetails {
|
|
@@ -4,7 +4,7 @@ const require_dom_query = require("../../dom-query-BUO7rGsg.cjs");
|
|
|
4
4
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
5
5
|
const require_collection = require("../../collection-BBgC8xCb.cjs");
|
|
6
6
|
const require_core = require("../../core-DwdPztGA.cjs");
|
|
7
|
-
const require_focus_visible = require("../../focus-visible-
|
|
7
|
+
const require_focus_visible = require("../../focus-visible-Co_9bW09.cjs");
|
|
8
8
|
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
9
9
|
//#region src/machines/listbox/listbox.anatomy.ts
|
|
10
10
|
const anatomy = require_create_anatomy.createAnatomy("listbox").parts("label", "input", "item", "itemText", "itemIndicator", "itemGroup", "itemGroupLabel", "content", "root", "valueText");
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
|
|
2
2
|
import { r as CollectionOptions, t as CollectionItem } from "../../types-D-7AMgSE.cjs";
|
|
3
|
-
import { t as ListCollection } from "../../list-collection-
|
|
4
|
-
import { i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "../../selection-
|
|
3
|
+
import { t as ListCollection } from "../../list-collection-B_8BN0XB.cjs";
|
|
4
|
+
import { i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "../../selection-Bb_ZSVxe.cjs";
|
|
5
5
|
import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMTKq.cjs";
|
|
6
6
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
7
7
|
import { n as TypeaheadState } from "../../typeahead-DMooWbbX.cjs";
|
|
8
8
|
|
|
9
9
|
//#region src/machines/listbox/listbox.anatomy.d.ts
|
|
10
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "valueText" | "input" | "
|
|
10
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "valueText" | "input" | "content" | "item" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel">;
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/machines/listbox/listbox.collection.d.ts
|
|
13
13
|
declare const collection: {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-BedZVdg0.mjs";
|
|
2
2
|
import { r as CollectionOptions, t as CollectionItem } from "../../types-9uw8LHpE.mjs";
|
|
3
|
-
import { t as ListCollection } from "../../list-collection-
|
|
4
|
-
import { i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "../../selection-
|
|
3
|
+
import { t as ListCollection } from "../../list-collection-DkRA5LOq.mjs";
|
|
4
|
+
import { i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "../../selection-DdNvrKbj.mjs";
|
|
5
5
|
import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rzfD.mjs";
|
|
6
6
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
7
7
|
import { n as TypeaheadState } from "../../typeahead-Bbeb1fAR.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/machines/listbox/listbox.anatomy.d.ts
|
|
10
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "valueText" | "input" | "
|
|
10
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "valueText" | "input" | "content" | "item" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel">;
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/machines/listbox/listbox.collection.d.ts
|
|
13
13
|
declare const collection: {
|
|
@@ -3,7 +3,7 @@ import { $t as contains, I as scrollIntoView, W as raf, _t as isComposingEvent,
|
|
|
3
3
|
import { ft as isEqual, t as ensure, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
4
4
|
import { a as GridCollection, i as Selection, o as isGridCollection, s as ListCollection } from "../../collection-DgzidRvr.mjs";
|
|
5
5
|
import { o as setup } from "../../core-Ci9Yu6QI.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { o as trackFocusVisible, t as getInteractionModality } from "../../focus-visible-BuLf8M9F.mjs";
|
|
7
7
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
8
8
|
//#region src/machines/listbox/listbox.anatomy.ts
|
|
9
9
|
const anatomy = createAnatomy("listbox").parts("label", "input", "item", "itemText", "itemIndicator", "itemGroup", "itemGroupLabel", "content", "root", "valueText");
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMT
|
|
|
3
3
|
import { b as NormalizeProps, d as Orientation, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/marquee/marquee.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "viewport" | "content" | "item" | "edge">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/marquee/marquee.types.d.ts
|
|
9
9
|
interface PauseStatusDetails {
|
|
@@ -96,7 +96,7 @@ declare function connect<T extends PropTypes>(service: MarqueeService, normalize
|
|
|
96
96
|
declare const machine: Machine<MarqueeSchema>;
|
|
97
97
|
//#endregion
|
|
98
98
|
//#region src/machines/marquee/marquee.props.d.ts
|
|
99
|
-
declare const props: ("ids" | "id" | "getRootNode" | "
|
|
100
|
-
declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "ids" | "id" | "getRootNode" | "
|
|
99
|
+
declare const props: ("ids" | "id" | "getRootNode" | "paused" | ("dir" | "reverse" | "translations" | "side" | "speed" | "delay" | "loopCount" | "spacing" | "autoFill" | "pauseOnInteraction" | "defaultPaused") | "onPauseChange" | "onLoopComplete" | "onComplete")[];
|
|
100
|
+
declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "ids" | "id" | "getRootNode" | "paused" | ("dir" | "reverse" | "translations" | "side" | "speed" | "delay" | "loopCount" | "spacing" | "autoFill" | "pauseOnInteraction" | "defaultPaused") | "onPauseChange" | "onLoopComplete" | "onComplete">];
|
|
101
101
|
//#endregion
|
|
102
102
|
export { type MarqueeApi as Api, type ContentProps, type DimensionSnapshot, type EdgeProps, type ElementIds, type IntlTranslations, type MarqueeMachine as Machine, type Orientation, type PauseStatusDetails, type MarqueeProps as Props, type MarqueeService as Service, type Side, type UserDefinedContext, anatomy, connect, machine, props, splitProps };
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rz
|
|
|
3
3
|
import { b as NormalizeProps, d as Orientation, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/marquee/marquee.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "viewport" | "content" | "item" | "edge">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/marquee/marquee.types.d.ts
|
|
9
9
|
interface PauseStatusDetails {
|
|
@@ -96,7 +96,7 @@ declare function connect<T extends PropTypes>(service: MarqueeService, normalize
|
|
|
96
96
|
declare const machine: Machine<MarqueeSchema>;
|
|
97
97
|
//#endregion
|
|
98
98
|
//#region src/machines/marquee/marquee.props.d.ts
|
|
99
|
-
declare const props: ("ids" | "id" | "getRootNode" | "
|
|
100
|
-
declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "ids" | "id" | "getRootNode" | "
|
|
99
|
+
declare const props: ("ids" | "id" | "getRootNode" | "paused" | ("dir" | "reverse" | "translations" | "side" | "speed" | "delay" | "loopCount" | "spacing" | "autoFill" | "pauseOnInteraction" | "defaultPaused") | "onPauseChange" | "onLoopComplete" | "onComplete")[];
|
|
100
|
+
declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "ids" | "id" | "getRootNode" | "paused" | ("dir" | "reverse" | "translations" | "side" | "speed" | "delay" | "loopCount" | "spacing" | "autoFill" | "pauseOnInteraction" | "defaultPaused") | "onPauseChange" | "onLoopComplete" | "onComplete">];
|
|
101
101
|
//#endregion
|
|
102
102
|
export { type MarqueeApi as Api, type ContentProps, type DimensionSnapshot, type EdgeProps, type ElementIds, type IntlTranslations, type MarqueeMachine as Machine, type Orientation, type PauseStatusDetails, type MarqueeProps as Props, type MarqueeService as Service, type Side, type UserDefinedContext, anatomy, connect, machine, props, splitProps };
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMT
|
|
|
3
3
|
import { _ as Size, b as NormalizeProps, d as Orientation, f as OrientationProperty, g as RequiredBy, m as Rect, p as Point, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/navigation-menu/navigation-menu.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "link" | "viewport" | "content" | "item" | "indicator" | "trigger" | "arrow" | "list" | "viewportPositioner" | "itemIndicator">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/navigation-menu/navigation-menu.types.d.ts
|
|
9
9
|
interface ValueChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rz
|
|
|
3
3
|
import { _ as Size, b as NormalizeProps, d as Orientation, f as OrientationProperty, g as RequiredBy, m as Rect, p as Point, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/navigation-menu/navigation-menu.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "link" | "viewport" | "content" | "item" | "indicator" | "trigger" | "arrow" | "list" | "viewportPositioner" | "itemIndicator">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/navigation-menu/navigation-menu.types.d.ts
|
|
9
9
|
interface ValueChangeDetails {
|
|
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, o as LocaleProperties, t as Commo
|
|
|
4
4
|
import { NumberFormatter, NumberParser } from "@internationalized/number";
|
|
5
5
|
|
|
6
6
|
//#region src/machines/number-input/number-input.anatomy.d.ts
|
|
7
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "
|
|
7
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "valueText" | "control" | "input" | "incrementTrigger" | "decrementTrigger" | "scrubber">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/machines/number-input/number-input.types.d.ts
|
|
10
10
|
interface ValueChangeDetails {
|
|
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, o as LocaleProperties, t as Commo
|
|
|
4
4
|
import { NumberFormatter, NumberParser } from "@internationalized/number";
|
|
5
5
|
|
|
6
6
|
//#region src/machines/number-input/number-input.anatomy.d.ts
|
|
7
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "
|
|
7
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "valueText" | "control" | "input" | "incrementTrigger" | "decrementTrigger" | "scrubber">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/machines/number-input/number-input.types.d.ts
|
|
10
10
|
interface ValueChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMT
|
|
|
3
3
|
import { b as NormalizeProps, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/password-input/password-input.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "input" | "indicator" | "visibilityTrigger">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/password-input/password-input.types.d.ts
|
|
9
9
|
interface VisibilityChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rz
|
|
|
3
3
|
import { b as NormalizeProps, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/password-input/password-input.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "input" | "indicator" | "visibilityTrigger">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/password-input/password-input.types.d.ts
|
|
9
9
|
interface VisibilityChangeDetails {
|
|
@@ -6,7 +6,7 @@ import { r as PersistentElementOptions, t as DismissableElementHandlers } from "
|
|
|
6
6
|
import { c as Placement, d as PositioningOptions } from "../../types-CZAtqGqH.cjs";
|
|
7
7
|
|
|
8
8
|
//#region src/machines/popover/popover.anatomy.d.ts
|
|
9
|
-
declare const anatomy: AnatomyInstance<"
|
|
9
|
+
declare const anatomy: AnatomyInstance<"title" | "content" | "indicator" | "trigger" | "positioner" | "description" | "closeTrigger" | "arrow" | "arrowTip" | "anchor">;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/machines/popover/popover.types.d.ts
|
|
12
12
|
interface OpenChangeDetails {
|
|
@@ -6,7 +6,7 @@ import { r as PersistentElementOptions, t as DismissableElementHandlers } from "
|
|
|
6
6
|
import { p as PositioningOptions, u as Placement } from "../../index-fMh0VDkR.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/machines/popover/popover.anatomy.d.ts
|
|
9
|
-
declare const anatomy: AnatomyInstance<"
|
|
9
|
+
declare const anatomy: AnatomyInstance<"title" | "content" | "indicator" | "trigger" | "positioner" | "description" | "closeTrigger" | "arrow" | "arrowTip" | "anchor">;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/machines/popover/popover.types.d.ts
|
|
12
12
|
interface OpenChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMT
|
|
|
3
3
|
import { b as NormalizeProps, d as Orientation, f as OrientationProperty, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/progress/progress.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "valueText" | "track" | "range" | "circle" | "view" | "circleTrack" | "circleRange">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/progress/progress.types.d.ts
|
|
9
9
|
type ProgressState = "indeterminate" | "loading" | "complete";
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rz
|
|
|
3
3
|
import { b as NormalizeProps, d as Orientation, f as OrientationProperty, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/progress/progress.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "valueText" | "track" | "range" | "circle" | "view" | "circleTrack" | "circleRange">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/progress/progress.types.d.ts
|
|
9
9
|
type ProgressState = "indeterminate" | "loading" | "complete";
|
|
@@ -3,7 +3,7 @@ const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
|
|
|
3
3
|
const require_dom_query = require("../../dom-query-BUO7rGsg.cjs");
|
|
4
4
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
5
5
|
const require_core = require("../../core-DwdPztGA.cjs");
|
|
6
|
-
const require_focus_visible = require("../../focus-visible-
|
|
6
|
+
const require_focus_visible = require("../../focus-visible-Co_9bW09.cjs");
|
|
7
7
|
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
8
8
|
//#region src/machines/radio-group/radio-group.anatomy.ts
|
|
9
9
|
const anatomy = require_create_anatomy.createAnatomy("radio-group").parts("root", "label", "item", "itemText", "itemControl", "indicator");
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMT
|
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, m as Rect, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/radio-group/radio-group.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "item" | "indicator" | "itemControl" | "itemText">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/radio-group/radio-group.types.d.ts
|
|
9
9
|
interface ValueChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rz
|
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, m as Rect, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/radio-group/radio-group.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "item" | "indicator" | "itemControl" | "itemText">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/radio-group/radio-group.types.d.ts
|
|
9
9
|
interface ValueChangeDetails {
|
|
@@ -2,7 +2,7 @@ import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
|
2
2
|
import { C as queryAll, St as isLeftClick, Vt as isSafari, a as visuallyHiddenStyle, lt as trackFormControl, m as resizeObserverBorderBox, rt as dispatchInputCheckedEvent, xn as dataAttr } from "../../dom-query-BFuRs3l4.mjs";
|
|
3
3
|
import { H as toPx, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
4
4
|
import { a as createMachine, i as createGuards } from "../../core-Ci9Yu6QI.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { o as trackFocusVisible, r as isFocusVisible } from "../../focus-visible-BuLf8M9F.mjs";
|
|
6
6
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
7
7
|
//#region src/machines/radio-group/radio-group.anatomy.ts
|
|
8
8
|
const anatomy = createAnatomy("radio-group").parts("root", "label", "item", "itemText", "itemControl", "indicator");
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMT
|
|
|
3
3
|
import { _ as Size, b as NormalizeProps, d as Orientation, p as Point, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/scroll-area/scroll-area.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "thumb" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "thumb" | "viewport" | "content" | "scrollbar" | "corner">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/scroll-area/utils/timeout.d.ts
|
|
9
9
|
declare class Timeout {
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rz
|
|
|
3
3
|
import { _ as Size, b as NormalizeProps, d as Orientation, p as Point, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/scroll-area/scroll-area.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "thumb" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "thumb" | "viewport" | "content" | "scrollbar" | "corner">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/scroll-area/utils/timeout.d.ts
|
|
9
9
|
declare class Timeout {
|
|
@@ -6,6 +6,7 @@ const require_collection = require("../../collection-BBgC8xCb.cjs");
|
|
|
6
6
|
const require_core = require("../../core-DwdPztGA.cjs");
|
|
7
7
|
require("../../interact-outside-Bg-QSXqp.cjs");
|
|
8
8
|
const require_dismissable = require("../../dismissable-DxjbwsOf.cjs");
|
|
9
|
+
const require_focus_visible = require("../../focus-visible-Co_9bW09.cjs");
|
|
9
10
|
const require_popper = require("../../popper-viCrafLC.cjs");
|
|
10
11
|
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
11
12
|
//#region src/machines/select/select.anatomy.ts
|
|
@@ -725,6 +726,7 @@ const machine = require_core.createMachine({
|
|
|
725
726
|
exit: ["scrollContentToTop"],
|
|
726
727
|
effects: [
|
|
727
728
|
"trackDismissableElement",
|
|
729
|
+
"trackFocusVisible",
|
|
728
730
|
"computePlacement",
|
|
729
731
|
"scrollToHighlightedItem"
|
|
730
732
|
],
|
|
@@ -828,6 +830,9 @@ const machine = require_core.createMachine({
|
|
|
828
830
|
isTriggerArrowDownEvent: ({ event }) => event.previousEvent?.type === "TRIGGER.ARROW_DOWN"
|
|
829
831
|
},
|
|
830
832
|
effects: {
|
|
833
|
+
trackFocusVisible({ scope }) {
|
|
834
|
+
return require_focus_visible.trackFocusVisible({ root: scope.getRootNode?.() });
|
|
835
|
+
},
|
|
831
836
|
trackFormControlState({ context, scope }) {
|
|
832
837
|
return require_dom_query.trackFormControl(getHiddenSelectEl(scope), {
|
|
833
838
|
onFieldsetDisabledChange(disabled) {
|
|
@@ -874,11 +879,11 @@ const machine = require_core.createMachine({
|
|
|
874
879
|
}
|
|
875
880
|
});
|
|
876
881
|
},
|
|
877
|
-
scrollToHighlightedItem({ context, prop, scope
|
|
882
|
+
scrollToHighlightedItem({ context, prop, scope }) {
|
|
878
883
|
const exec = (immediate) => {
|
|
879
884
|
const highlightedValue = context.get("highlightedValue");
|
|
880
885
|
if (highlightedValue == null) return;
|
|
881
|
-
if (
|
|
886
|
+
if (require_focus_visible.getInteractionModality() !== "keyboard") return;
|
|
882
887
|
const contentEl = getContentEl(scope);
|
|
883
888
|
const scrollToIndexFn = prop("scrollToIndexFn");
|
|
884
889
|
if (scrollToIndexFn) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
|
|
2
2
|
import { r as CollectionOptions, t as CollectionItem } from "../../types-D-7AMgSE.cjs";
|
|
3
|
-
import { t as ListCollection } from "../../list-collection-
|
|
3
|
+
import { t as ListCollection } from "../../list-collection-B_8BN0XB.cjs";
|
|
4
4
|
import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMTKq.cjs";
|
|
5
5
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
6
6
|
import { n as TypeaheadState } from "../../typeahead-DMooWbbX.cjs";
|
|
@@ -8,7 +8,7 @@ import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusO
|
|
|
8
8
|
import { c as Placement, d as PositioningOptions } from "../../types-CZAtqGqH.cjs";
|
|
9
9
|
|
|
10
10
|
//#region src/machines/select/select.anatomy.d.ts
|
|
11
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "
|
|
11
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "valueText" | "control" | "clearTrigger" | "content" | "item" | "indicator" | "itemText" | "trigger" | "positioner" | "list" | "itemIndicator" | "itemGroup" | "itemGroupLabel">;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/machines/select/select.collection.d.ts
|
|
14
14
|
declare const collection: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-BedZVdg0.mjs";
|
|
2
2
|
import { r as CollectionOptions, t as CollectionItem } from "../../types-9uw8LHpE.mjs";
|
|
3
|
-
import { t as ListCollection } from "../../list-collection-
|
|
3
|
+
import { t as ListCollection } from "../../list-collection-DkRA5LOq.mjs";
|
|
4
4
|
import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rzfD.mjs";
|
|
5
5
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
6
6
|
import { n as TypeaheadState } from "../../typeahead-Bbeb1fAR.mjs";
|
|
@@ -8,7 +8,7 @@ import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusO
|
|
|
8
8
|
import { p as PositioningOptions, u as Placement } from "../../index-fMh0VDkR.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/machines/select/select.anatomy.d.ts
|
|
11
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "
|
|
11
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "valueText" | "control" | "clearTrigger" | "content" | "item" | "indicator" | "itemText" | "trigger" | "positioner" | "list" | "itemIndicator" | "itemGroup" | "itemGroupLabel">;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/machines/select/select.collection.d.ts
|
|
14
14
|
declare const collection: {
|
|
@@ -5,6 +5,7 @@ import { s as ListCollection } from "../../collection-DgzidRvr.mjs";
|
|
|
5
5
|
import { a as createMachine, i as createGuards } from "../../core-Ci9Yu6QI.mjs";
|
|
6
6
|
import "../../interact-outside-Ba50N1a5.mjs";
|
|
7
7
|
import { n as trackDismissableElement } from "../../dismissable-B9k5K6f9.mjs";
|
|
8
|
+
import { o as trackFocusVisible, t as getInteractionModality } from "../../focus-visible-BuLf8M9F.mjs";
|
|
8
9
|
import { n as getPlacement, t as getPlacementStyles } from "../../popper-BlgbmdAn.mjs";
|
|
9
10
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
10
11
|
//#region src/machines/select/select.anatomy.ts
|
|
@@ -724,6 +725,7 @@ const machine = createMachine({
|
|
|
724
725
|
exit: ["scrollContentToTop"],
|
|
725
726
|
effects: [
|
|
726
727
|
"trackDismissableElement",
|
|
728
|
+
"trackFocusVisible",
|
|
727
729
|
"computePlacement",
|
|
728
730
|
"scrollToHighlightedItem"
|
|
729
731
|
],
|
|
@@ -827,6 +829,9 @@ const machine = createMachine({
|
|
|
827
829
|
isTriggerArrowDownEvent: ({ event }) => event.previousEvent?.type === "TRIGGER.ARROW_DOWN"
|
|
828
830
|
},
|
|
829
831
|
effects: {
|
|
832
|
+
trackFocusVisible({ scope }) {
|
|
833
|
+
return trackFocusVisible({ root: scope.getRootNode?.() });
|
|
834
|
+
},
|
|
830
835
|
trackFormControlState({ context, scope }) {
|
|
831
836
|
return trackFormControl(getHiddenSelectEl(scope), {
|
|
832
837
|
onFieldsetDisabledChange(disabled) {
|
|
@@ -873,11 +878,11 @@ const machine = createMachine({
|
|
|
873
878
|
}
|
|
874
879
|
});
|
|
875
880
|
},
|
|
876
|
-
scrollToHighlightedItem({ context, prop, scope
|
|
881
|
+
scrollToHighlightedItem({ context, prop, scope }) {
|
|
877
882
|
const exec = (immediate) => {
|
|
878
883
|
const highlightedValue = context.get("highlightedValue");
|
|
879
884
|
if (highlightedValue == null) return;
|
|
880
|
-
if (
|
|
885
|
+
if (getInteractionModality() !== "keyboard") return;
|
|
881
886
|
const contentEl = getContentEl(scope);
|
|
882
887
|
const scrollToIndexFn = prop("scrollToIndexFn");
|
|
883
888
|
if (scrollToIndexFn) {
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMT
|
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/slider/slider.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "thumb" | "valueText" | "track" | "range" | "control" | "markerGroup" | "marker" | "draggingIndicator">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/slider/slider.types.d.ts
|
|
9
9
|
type ThumbCollisionBehavior = "none" | "push" | "swap";
|