@sprawlify/primitives 0.1.5 → 0.1.7
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/core-Bw_czdwX.cjs +383 -0
- package/dist/core-CTtbW9qh.mjs +288 -0
- package/dist/core.cjs +9 -1
- package/dist/core.d.cts +25 -2
- package/dist/core.d.mts +25 -2
- package/dist/core.mjs +2 -2
- package/dist/{index-BLh1IiOx.d.mts → index-fMh0VDkR.d.mts} +1 -1
- package/dist/machines/accordion/index.cjs +1 -1
- package/dist/machines/accordion/index.d.cts +1 -1
- package/dist/machines/accordion/index.d.mts +1 -1
- package/dist/machines/accordion/index.mjs +1 -1
- package/dist/machines/angle-slider/index.cjs +1 -1
- package/dist/machines/angle-slider/index.d.cts +2 -2
- package/dist/machines/angle-slider/index.d.mts +2 -2
- package/dist/machines/angle-slider/index.mjs +1 -1
- package/dist/machines/aspect-ratio/index.cjs +1 -1
- package/dist/machines/aspect-ratio/index.d.cts +1 -1
- package/dist/machines/aspect-ratio/index.d.mts +1 -1
- package/dist/machines/aspect-ratio/index.mjs +1 -1
- package/dist/machines/async-list/index.cjs +1 -1
- package/dist/machines/async-list/index.d.cts +1 -1
- package/dist/machines/async-list/index.d.mts +1 -1
- package/dist/machines/async-list/index.mjs +1 -1
- package/dist/machines/avatar/index.cjs +1 -1
- package/dist/machines/avatar/index.d.cts +1 -1
- package/dist/machines/avatar/index.d.mts +1 -1
- package/dist/machines/avatar/index.mjs +1 -1
- package/dist/machines/carousel/index.cjs +1 -1
- package/dist/machines/carousel/index.d.cts +2 -2
- package/dist/machines/carousel/index.d.mts +2 -2
- package/dist/machines/carousel/index.mjs +1 -1
- package/dist/machines/cascade-select/index.cjs +1 -1
- package/dist/machines/cascade-select/index.d.cts +3 -3
- package/dist/machines/cascade-select/index.d.mts +4 -4
- package/dist/machines/cascade-select/index.mjs +1 -1
- package/dist/machines/checkbox/index.cjs +1 -1
- package/dist/machines/checkbox/index.d.cts +2 -2
- package/dist/machines/checkbox/index.d.mts +2 -2
- package/dist/machines/checkbox/index.mjs +1 -1
- package/dist/machines/clipboard/index.cjs +1 -1
- package/dist/machines/clipboard/index.d.cts +2 -2
- package/dist/machines/clipboard/index.d.mts +2 -2
- package/dist/machines/clipboard/index.mjs +1 -1
- package/dist/machines/collapsible/index.cjs +1 -1
- package/dist/machines/collapsible/index.d.cts +2 -2
- package/dist/machines/collapsible/index.d.mts +2 -2
- package/dist/machines/collapsible/index.mjs +1 -1
- package/dist/machines/color-picker/index.cjs +76 -102
- package/dist/machines/color-picker/index.d.cts +3 -3
- package/dist/machines/color-picker/index.d.mts +4 -4
- package/dist/machines/color-picker/index.mjs +76 -102
- package/dist/machines/combobox/index.cjs +1 -1
- package/dist/machines/combobox/index.d.cts +2 -2
- package/dist/machines/combobox/index.d.mts +3 -3
- package/dist/machines/combobox/index.mjs +1 -1
- package/dist/machines/date-picker/index.cjs +1 -1
- package/dist/machines/date-picker/index.d.cts +2 -2
- package/dist/machines/date-picker/index.d.mts +3 -3
- package/dist/machines/date-picker/index.mjs +1 -1
- package/dist/machines/dialog/index.cjs +1 -1
- package/dist/machines/dialog/index.d.cts +2 -2
- package/dist/machines/dialog/index.d.mts +2 -2
- package/dist/machines/dialog/index.mjs +1 -1
- package/dist/machines/drawer/index.cjs +1 -1
- package/dist/machines/drawer/index.d.cts +2 -2
- package/dist/machines/drawer/index.d.mts +2 -2
- package/dist/machines/drawer/index.mjs +1 -1
- package/dist/machines/dropdown-menu/index.cjs +1 -1
- package/dist/machines/dropdown-menu/index.d.cts +2 -2
- package/dist/machines/dropdown-menu/index.d.mts +3 -3
- package/dist/machines/dropdown-menu/index.mjs +1 -1
- package/dist/machines/editable/index.cjs +1 -1
- package/dist/machines/editable/index.d.cts +2 -2
- package/dist/machines/editable/index.d.mts +2 -2
- package/dist/machines/editable/index.mjs +1 -1
- package/dist/machines/file-upload/index.cjs +1 -1
- package/dist/machines/file-upload/index.d.cts +2 -2
- package/dist/machines/file-upload/index.d.mts +2 -2
- package/dist/machines/file-upload/index.mjs +1 -1
- package/dist/machines/floating-panel/index.cjs +96 -93
- package/dist/machines/floating-panel/index.d.cts +3 -3
- package/dist/machines/floating-panel/index.d.mts +3 -3
- package/dist/machines/floating-panel/index.mjs +96 -93
- package/dist/machines/hover-card/index.cjs +1 -1
- package/dist/machines/hover-card/index.d.cts +1 -1
- package/dist/machines/hover-card/index.d.mts +2 -2
- package/dist/machines/hover-card/index.mjs +1 -1
- package/dist/machines/image-cropper/index.cjs +1 -1
- package/dist/machines/image-cropper/index.d.cts +1 -1
- package/dist/machines/image-cropper/index.d.mts +1 -1
- package/dist/machines/image-cropper/index.mjs +1 -1
- package/dist/machines/listbox/index.cjs +1 -1
- package/dist/machines/listbox/index.d.cts +2 -2
- package/dist/machines/listbox/index.d.mts +2 -2
- package/dist/machines/listbox/index.mjs +1 -1
- package/dist/machines/marquee/index.cjs +1 -1
- package/dist/machines/marquee/index.d.cts +4 -4
- package/dist/machines/marquee/index.d.mts +4 -4
- package/dist/machines/marquee/index.mjs +1 -1
- package/dist/machines/navigation-menu/index.cjs +1 -1
- package/dist/machines/navigation-menu/index.d.cts +2 -2
- package/dist/machines/navigation-menu/index.d.mts +2 -2
- package/dist/machines/navigation-menu/index.mjs +1 -1
- package/dist/machines/number-input/index.cjs +1 -1
- package/dist/machines/number-input/index.d.cts +2 -2
- package/dist/machines/number-input/index.d.mts +2 -2
- package/dist/machines/number-input/index.mjs +1 -1
- package/dist/machines/pagination/index.cjs +1 -1
- package/dist/machines/pagination/index.d.cts +1 -1
- package/dist/machines/pagination/index.d.mts +1 -1
- package/dist/machines/pagination/index.mjs +1 -1
- package/dist/machines/password-input/index.cjs +1 -1
- package/dist/machines/password-input/index.d.cts +2 -2
- package/dist/machines/password-input/index.d.mts +2 -2
- package/dist/machines/password-input/index.mjs +1 -1
- package/dist/machines/pin-input/index.cjs +1 -1
- package/dist/machines/pin-input/index.d.cts +2 -2
- package/dist/machines/pin-input/index.d.mts +2 -2
- package/dist/machines/pin-input/index.mjs +1 -1
- package/dist/machines/popover/index.cjs +2 -2
- package/dist/machines/popover/index.d.cts +2 -2
- package/dist/machines/popover/index.d.mts +3 -3
- package/dist/machines/popover/index.mjs +2 -2
- package/dist/machines/presence/index.cjs +1 -1
- package/dist/machines/presence/index.d.cts +1 -1
- package/dist/machines/presence/index.d.mts +1 -1
- package/dist/machines/presence/index.mjs +1 -1
- package/dist/machines/progress/index.cjs +1 -1
- package/dist/machines/progress/index.d.cts +2 -2
- package/dist/machines/progress/index.d.mts +2 -2
- package/dist/machines/progress/index.mjs +1 -1
- package/dist/machines/qr-code/index.cjs +1 -1
- package/dist/machines/qr-code/index.d.cts +1 -1
- package/dist/machines/qr-code/index.d.mts +1 -1
- package/dist/machines/qr-code/index.mjs +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/rating-group/index.cjs +1 -1
- package/dist/machines/rating-group/index.d.cts +2 -2
- package/dist/machines/rating-group/index.d.mts +2 -2
- package/dist/machines/rating-group/index.mjs +1 -1
- package/dist/machines/scroll-area/index.cjs +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/scroll-area/index.mjs +1 -1
- package/dist/machines/select/index.cjs +1 -1
- package/dist/machines/select/index.d.cts +2 -2
- package/dist/machines/select/index.d.mts +3 -3
- package/dist/machines/select/index.mjs +1 -1
- package/dist/machines/separator/index.cjs +1 -1
- package/dist/machines/separator/index.d.cts +1 -1
- package/dist/machines/separator/index.d.mts +1 -1
- package/dist/machines/separator/index.mjs +1 -1
- package/dist/machines/signature-pad/index.cjs +1 -1
- package/dist/machines/signature-pad/index.d.cts +2 -2
- package/dist/machines/signature-pad/index.d.mts +2 -2
- package/dist/machines/signature-pad/index.mjs +1 -1
- package/dist/machines/slider/index.cjs +1 -1
- package/dist/machines/slider/index.d.cts +2 -2
- package/dist/machines/slider/index.d.mts +2 -2
- package/dist/machines/slider/index.mjs +1 -1
- package/dist/machines/splitter/index.cjs +1 -1
- package/dist/machines/splitter/index.d.cts +1 -1
- package/dist/machines/splitter/index.d.mts +1 -1
- package/dist/machines/splitter/index.mjs +1 -1
- package/dist/machines/steps/index.cjs +1 -1
- package/dist/machines/steps/index.d.cts +2 -2
- package/dist/machines/steps/index.d.mts +2 -2
- package/dist/machines/steps/index.mjs +1 -1
- package/dist/machines/switch/index.cjs +1 -1
- package/dist/machines/switch/index.d.cts +2 -2
- package/dist/machines/switch/index.d.mts +2 -2
- package/dist/machines/switch/index.mjs +1 -1
- package/dist/machines/tabs/index.cjs +1 -1
- package/dist/machines/tabs/index.d.cts +2 -2
- package/dist/machines/tabs/index.d.mts +2 -2
- package/dist/machines/tabs/index.mjs +1 -1
- package/dist/machines/tags-input/index.cjs +1 -1
- package/dist/machines/tags-input/index.d.cts +2 -2
- package/dist/machines/tags-input/index.d.mts +2 -2
- package/dist/machines/tags-input/index.mjs +1 -1
- package/dist/machines/timer/index.cjs +1 -1
- package/dist/machines/timer/index.d.cts +2 -2
- package/dist/machines/timer/index.d.mts +2 -2
- package/dist/machines/timer/index.mjs +1 -1
- package/dist/machines/toast/index.cjs +1 -1
- package/dist/machines/toast/index.d.cts +2 -2
- package/dist/machines/toast/index.d.mts +2 -2
- package/dist/machines/toast/index.mjs +1 -1
- package/dist/machines/toggle/index.cjs +1 -1
- package/dist/machines/toggle/index.d.cts +1 -1
- package/dist/machines/toggle/index.d.mts +1 -1
- package/dist/machines/toggle/index.mjs +1 -1
- package/dist/machines/toggle-group/index.cjs +1 -1
- package/dist/machines/toggle-group/index.d.cts +1 -1
- package/dist/machines/toggle-group/index.d.mts +1 -1
- package/dist/machines/toggle-group/index.mjs +1 -1
- package/dist/machines/tooltip/index.cjs +1 -1
- package/dist/machines/tooltip/index.d.cts +1 -1
- package/dist/machines/tooltip/index.d.mts +2 -2
- package/dist/machines/tooltip/index.mjs +1 -1
- package/dist/machines/tour/index.cjs +51 -49
- package/dist/machines/tour/index.d.cts +3 -3
- package/dist/machines/tour/index.d.mts +4 -4
- package/dist/machines/tour/index.mjs +51 -49
- package/dist/machines/tree-view/index.cjs +1 -1
- package/dist/machines/tree-view/index.d.cts +2 -2
- package/dist/machines/tree-view/index.d.mts +2 -2
- package/dist/machines/tree-view/index.mjs +1 -1
- package/dist/popper.d.cts +1 -1
- package/dist/popper.d.mts +1 -1
- package/dist/{types-DUM9rzfD.d.mts → types-DvUmCWsb.d.mts} +28 -12
- package/dist/{types-B24gMTKq.d.cts → types-u-LWCSDE.d.cts} +28 -12
- package/package.json +1 -1
- package/dist/core-Ci9Yu6QI.mjs +0 -123
- package/dist/core-DwdPztGA.cjs +0 -170
|
@@ -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_color_utils = require("../../color-utils-XoYeFX3g.cjs");
|
|
6
|
-
const require_core = require("../../core-
|
|
6
|
+
const require_core = require("../../core-Bw_czdwX.cjs");
|
|
7
7
|
require("../../interact-outside-Bg-QSXqp.cjs");
|
|
8
8
|
const require_dismissable = require("../../dismissable-DxjbwsOf.cjs");
|
|
9
9
|
const require_popper = require("../../popper-viCrafLC.cjs");
|
|
@@ -1036,6 +1036,7 @@ const machine = require_core.createMachine({
|
|
|
1036
1036
|
}
|
|
1037
1037
|
},
|
|
1038
1038
|
focused: {
|
|
1039
|
+
id: "color-picker-focused",
|
|
1039
1040
|
tags: ["closed", "focused"],
|
|
1040
1041
|
on: {
|
|
1041
1042
|
"CONTROLLED.OPEN": {
|
|
@@ -1067,52 +1068,13 @@ const machine = require_core.createMachine({
|
|
|
1067
1068
|
open: {
|
|
1068
1069
|
tags: ["open"],
|
|
1069
1070
|
effects: ["trackPositioning", "trackDismissableElement"],
|
|
1071
|
+
initial: "idle",
|
|
1070
1072
|
on: {
|
|
1071
1073
|
"CONTROLLED.CLOSE": [{
|
|
1072
1074
|
guard: "shouldRestoreFocus",
|
|
1073
1075
|
target: "focused",
|
|
1074
1076
|
actions: ["setReturnFocus"]
|
|
1075
1077
|
}, { target: "idle" }],
|
|
1076
|
-
"TRIGGER.CLICK": [{
|
|
1077
|
-
guard: "isOpenControlled",
|
|
1078
|
-
actions: ["invokeOnClose"]
|
|
1079
|
-
}, {
|
|
1080
|
-
target: "idle",
|
|
1081
|
-
actions: ["invokeOnClose"]
|
|
1082
|
-
}],
|
|
1083
|
-
"AREA.POINTER_DOWN": {
|
|
1084
|
-
target: "open:dragging",
|
|
1085
|
-
actions: [
|
|
1086
|
-
"setActiveChannel",
|
|
1087
|
-
"setAreaColorFromPoint",
|
|
1088
|
-
"focusAreaThumb"
|
|
1089
|
-
]
|
|
1090
|
-
},
|
|
1091
|
-
"AREA.FOCUS": { actions: ["setActiveChannel"] },
|
|
1092
|
-
"CHANNEL_SLIDER.POINTER_DOWN": {
|
|
1093
|
-
target: "open:dragging",
|
|
1094
|
-
actions: [
|
|
1095
|
-
"setActiveChannel",
|
|
1096
|
-
"setChannelColorFromPoint",
|
|
1097
|
-
"focusChannelThumb"
|
|
1098
|
-
]
|
|
1099
|
-
},
|
|
1100
|
-
"CHANNEL_SLIDER.FOCUS": { actions: ["setActiveChannel"] },
|
|
1101
|
-
"AREA.ARROW_LEFT": { actions: ["decrementAreaXChannel"] },
|
|
1102
|
-
"AREA.ARROW_RIGHT": { actions: ["incrementAreaXChannel"] },
|
|
1103
|
-
"AREA.ARROW_UP": { actions: ["incrementAreaYChannel"] },
|
|
1104
|
-
"AREA.ARROW_DOWN": { actions: ["decrementAreaYChannel"] },
|
|
1105
|
-
"AREA.PAGE_UP": { actions: ["incrementAreaXChannel"] },
|
|
1106
|
-
"AREA.PAGE_DOWN": { actions: ["decrementAreaXChannel"] },
|
|
1107
|
-
"CHANNEL_SLIDER.ARROW_LEFT": { actions: ["decrementChannel"] },
|
|
1108
|
-
"CHANNEL_SLIDER.ARROW_RIGHT": { actions: ["incrementChannel"] },
|
|
1109
|
-
"CHANNEL_SLIDER.ARROW_UP": { actions: ["incrementChannel"] },
|
|
1110
|
-
"CHANNEL_SLIDER.ARROW_DOWN": { actions: ["decrementChannel"] },
|
|
1111
|
-
"CHANNEL_SLIDER.PAGE_UP": { actions: ["incrementChannel"] },
|
|
1112
|
-
"CHANNEL_SLIDER.PAGE_DOWN": { actions: ["decrementChannel"] },
|
|
1113
|
-
"CHANNEL_SLIDER.HOME": { actions: ["setChannelToMin"] },
|
|
1114
|
-
"CHANNEL_SLIDER.END": { actions: ["setChannelToMax"] },
|
|
1115
|
-
"CHANNEL_INPUT.BLUR": { actions: ["setChannelColorFromInput"] },
|
|
1116
1078
|
INTERACT_OUTSIDE: [
|
|
1117
1079
|
{
|
|
1118
1080
|
guard: "isOpenControlled",
|
|
@@ -1134,72 +1096,84 @@ const machine = require_core.createMachine({
|
|
|
1134
1096
|
}, {
|
|
1135
1097
|
target: "idle",
|
|
1136
1098
|
actions: ["invokeOnClose"]
|
|
1137
|
-
}]
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
},
|
|
1143
|
-
{
|
|
1144
|
-
guard: "closeOnSelect",
|
|
1145
|
-
target: "focused",
|
|
1146
|
-
actions: [
|
|
1147
|
-
"setValue",
|
|
1148
|
-
"invokeOnClose",
|
|
1149
|
-
"setReturnFocus"
|
|
1150
|
-
]
|
|
1151
|
-
},
|
|
1152
|
-
{ actions: ["setValue"] }
|
|
1153
|
-
]
|
|
1154
|
-
}
|
|
1155
|
-
},
|
|
1156
|
-
"open:dragging": {
|
|
1157
|
-
tags: ["open"],
|
|
1158
|
-
exit: ["clearActiveChannel"],
|
|
1159
|
-
effects: [
|
|
1160
|
-
"trackPointerMove",
|
|
1161
|
-
"disableTextSelection",
|
|
1162
|
-
"trackPositioning",
|
|
1163
|
-
"trackDismissableElement"
|
|
1164
|
-
],
|
|
1165
|
-
on: {
|
|
1166
|
-
"CONTROLLED.CLOSE": [{
|
|
1167
|
-
guard: "shouldRestoreFocus",
|
|
1168
|
-
target: "focused",
|
|
1169
|
-
actions: ["setReturnFocus"]
|
|
1170
|
-
}, { target: "idle" }],
|
|
1171
|
-
"AREA.POINTER_MOVE": { actions: ["setAreaColorFromPoint", "focusAreaThumb"] },
|
|
1172
|
-
"AREA.POINTER_UP": {
|
|
1173
|
-
target: "open",
|
|
1174
|
-
actions: ["invokeOnChangeEnd"]
|
|
1175
|
-
},
|
|
1176
|
-
"CHANNEL_SLIDER.POINTER_MOVE": { actions: ["setChannelColorFromPoint", "focusChannelThumb"] },
|
|
1177
|
-
"CHANNEL_SLIDER.POINTER_UP": {
|
|
1178
|
-
target: "open",
|
|
1179
|
-
actions: ["invokeOnChangeEnd"]
|
|
1180
|
-
},
|
|
1181
|
-
INTERACT_OUTSIDE: [
|
|
1182
|
-
{
|
|
1099
|
+
}]
|
|
1100
|
+
},
|
|
1101
|
+
states: {
|
|
1102
|
+
idle: { on: {
|
|
1103
|
+
"TRIGGER.CLICK": [{
|
|
1183
1104
|
guard: "isOpenControlled",
|
|
1184
1105
|
actions: ["invokeOnClose"]
|
|
1106
|
+
}, {
|
|
1107
|
+
target: "#color-picker-focused",
|
|
1108
|
+
actions: ["invokeOnClose"]
|
|
1109
|
+
}],
|
|
1110
|
+
"AREA.POINTER_DOWN": {
|
|
1111
|
+
target: "dragging",
|
|
1112
|
+
actions: [
|
|
1113
|
+
"setActiveChannel",
|
|
1114
|
+
"setAreaColorFromPoint",
|
|
1115
|
+
"focusAreaThumb"
|
|
1116
|
+
]
|
|
1185
1117
|
},
|
|
1186
|
-
{
|
|
1187
|
-
|
|
1188
|
-
target: "
|
|
1189
|
-
actions: [
|
|
1118
|
+
"AREA.FOCUS": { actions: ["setActiveChannel"] },
|
|
1119
|
+
"CHANNEL_SLIDER.POINTER_DOWN": {
|
|
1120
|
+
target: "dragging",
|
|
1121
|
+
actions: [
|
|
1122
|
+
"setActiveChannel",
|
|
1123
|
+
"setChannelColorFromPoint",
|
|
1124
|
+
"focusChannelThumb"
|
|
1125
|
+
]
|
|
1190
1126
|
},
|
|
1191
|
-
{
|
|
1192
|
-
|
|
1193
|
-
|
|
1127
|
+
"CHANNEL_SLIDER.FOCUS": { actions: ["setActiveChannel"] },
|
|
1128
|
+
"AREA.ARROW_LEFT": { actions: ["decrementAreaXChannel"] },
|
|
1129
|
+
"AREA.ARROW_RIGHT": { actions: ["incrementAreaXChannel"] },
|
|
1130
|
+
"AREA.ARROW_UP": { actions: ["incrementAreaYChannel"] },
|
|
1131
|
+
"AREA.ARROW_DOWN": { actions: ["decrementAreaYChannel"] },
|
|
1132
|
+
"AREA.PAGE_UP": { actions: ["incrementAreaXChannel"] },
|
|
1133
|
+
"AREA.PAGE_DOWN": { actions: ["decrementAreaXChannel"] },
|
|
1134
|
+
"CHANNEL_SLIDER.ARROW_LEFT": { actions: ["decrementChannel"] },
|
|
1135
|
+
"CHANNEL_SLIDER.ARROW_RIGHT": { actions: ["incrementChannel"] },
|
|
1136
|
+
"CHANNEL_SLIDER.ARROW_UP": { actions: ["incrementChannel"] },
|
|
1137
|
+
"CHANNEL_SLIDER.ARROW_DOWN": { actions: ["decrementChannel"] },
|
|
1138
|
+
"CHANNEL_SLIDER.PAGE_UP": { actions: ["incrementChannel"] },
|
|
1139
|
+
"CHANNEL_SLIDER.PAGE_DOWN": { actions: ["decrementChannel"] },
|
|
1140
|
+
"CHANNEL_SLIDER.HOME": { actions: ["setChannelToMin"] },
|
|
1141
|
+
"CHANNEL_SLIDER.END": { actions: ["setChannelToMax"] },
|
|
1142
|
+
"CHANNEL_INPUT.BLUR": { actions: ["setChannelColorFromInput"] },
|
|
1143
|
+
"SWATCH_TRIGGER.CLICK": [
|
|
1144
|
+
{
|
|
1145
|
+
guard: and("isOpenControlled", "closeOnSelect"),
|
|
1146
|
+
actions: ["setValue", "invokeOnClose"]
|
|
1147
|
+
},
|
|
1148
|
+
{
|
|
1149
|
+
guard: "closeOnSelect",
|
|
1150
|
+
target: "focused",
|
|
1151
|
+
actions: [
|
|
1152
|
+
"setValue",
|
|
1153
|
+
"invokeOnClose",
|
|
1154
|
+
"setReturnFocus"
|
|
1155
|
+
]
|
|
1156
|
+
},
|
|
1157
|
+
{ actions: ["setValue"] }
|
|
1158
|
+
]
|
|
1159
|
+
} },
|
|
1160
|
+
dragging: {
|
|
1161
|
+
tags: ["dragging"],
|
|
1162
|
+
exit: ["clearActiveChannel"],
|
|
1163
|
+
effects: ["trackPointerMove", "disableTextSelection"],
|
|
1164
|
+
on: {
|
|
1165
|
+
"AREA.POINTER_MOVE": { actions: ["setAreaColorFromPoint", "focusAreaThumb"] },
|
|
1166
|
+
"AREA.POINTER_UP": {
|
|
1167
|
+
target: "idle",
|
|
1168
|
+
actions: ["invokeOnChangeEnd"]
|
|
1169
|
+
},
|
|
1170
|
+
"CHANNEL_SLIDER.POINTER_MOVE": { actions: ["setChannelColorFromPoint", "focusChannelThumb"] },
|
|
1171
|
+
"CHANNEL_SLIDER.POINTER_UP": {
|
|
1172
|
+
target: "idle",
|
|
1173
|
+
actions: ["invokeOnChangeEnd"]
|
|
1174
|
+
}
|
|
1194
1175
|
}
|
|
1195
|
-
|
|
1196
|
-
CLOSE: [{
|
|
1197
|
-
guard: "isOpenControlled",
|
|
1198
|
-
actions: ["invokeOnClose"]
|
|
1199
|
-
}, {
|
|
1200
|
-
target: "idle",
|
|
1201
|
-
actions: ["invokeOnClose"]
|
|
1202
|
-
}]
|
|
1176
|
+
}
|
|
1203
1177
|
}
|
|
1204
1178
|
}
|
|
1205
1179
|
},
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as Anatomy } from "../../create-anatomy-9eFQs7lO.cjs";
|
|
2
2
|
import { a as ColorFormat, n as ColorAxes, r as ColorChannel, s as ColorType, t as Color } from "../../color-vvN_Cdao.cjs";
|
|
3
|
-
import {
|
|
3
|
+
import { b as Service, p as Machine, u as EventObject } from "../../types-u-LWCSDE.cjs";
|
|
4
4
|
import { b as NormalizeProps, d as Orientation, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
5
5
|
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-DzWGFhcS.cjs";
|
|
6
6
|
import { d as PositioningOptions } from "../../types-CZAtqGqH.cjs";
|
|
7
7
|
|
|
8
8
|
//#region src/machines/color-picker/color-picker.anatomy.d.ts
|
|
9
|
-
declare const anatomy: Anatomy<"root" | "
|
|
9
|
+
declare const anatomy: Anatomy<"root" | "trigger" | "content" | "label" | "valueText" | "control" | "positioner" | "area" | "formatSelect" | "areaThumb" | "channelInput" | "channelSliderTrack" | "channelSliderThumb" | "areaBackground" | "channelSlider" | "channelSliderLabel" | "channelSliderValueText" | "transparencyGrid" | "swatchGroup" | "swatchTrigger" | "swatchIndicator" | "swatch" | "eyeDropperTrigger" | "formatTrigger">;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/machines/color-picker/color-picker.types.d.ts
|
|
12
12
|
type ExtendedColorChannel = ColorChannel | "hex" | "css";
|
|
@@ -78,7 +78,7 @@ interface ColorPickerProps extends CommonProperties, DirectionProperty, Interact
|
|
|
78
78
|
type PropsWithDefault = "defaultFormat" | "defaultValue" | "openAutoFocus" | "dir" | "positioning";
|
|
79
79
|
type ColorPickerSchema = {
|
|
80
80
|
tag: "open" | "closed" | "dragging" | "focused";
|
|
81
|
-
state: "idle" | "focused" | "open" | "open
|
|
81
|
+
state: "idle" | "focused" | "open" | "open.idle" | "open.dragging";
|
|
82
82
|
props: RequiredBy<ColorPickerProps, PropsWithDefault>;
|
|
83
83
|
computed: {
|
|
84
84
|
disabled: boolean;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as Anatomy } from "../../create-anatomy-BedZVdg0.mjs";
|
|
2
2
|
import { a as ColorFormat, n as ColorAxes, r as ColorChannel, s as ColorType, t as Color } from "../../color-tco923EC.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { b as Service, p as Machine, u as EventObject } from "../../types-DvUmCWsb.mjs";
|
|
4
4
|
import { b as NormalizeProps, d as Orientation, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
5
5
|
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-CGNNiDyE.mjs";
|
|
6
|
-
import { p as PositioningOptions } from "../../index-
|
|
6
|
+
import { p as PositioningOptions } from "../../index-fMh0VDkR.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/machines/color-picker/color-picker.anatomy.d.ts
|
|
9
|
-
declare const anatomy: Anatomy<"root" | "
|
|
9
|
+
declare const anatomy: Anatomy<"root" | "trigger" | "content" | "label" | "valueText" | "control" | "positioner" | "area" | "formatSelect" | "areaThumb" | "channelInput" | "channelSliderTrack" | "channelSliderThumb" | "areaBackground" | "channelSlider" | "channelSliderLabel" | "channelSliderValueText" | "transparencyGrid" | "swatchGroup" | "swatchTrigger" | "swatchIndicator" | "swatch" | "eyeDropperTrigger" | "formatTrigger">;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/machines/color-picker/color-picker.types.d.ts
|
|
12
12
|
type ExtendedColorChannel = ColorChannel | "hex" | "css";
|
|
@@ -78,7 +78,7 @@ interface ColorPickerProps extends CommonProperties, DirectionProperty, Interact
|
|
|
78
78
|
type PropsWithDefault = "defaultFormat" | "defaultValue" | "openAutoFocus" | "dir" | "positioning";
|
|
79
79
|
type ColorPickerSchema = {
|
|
80
80
|
tag: "open" | "closed" | "dragging" | "focused";
|
|
81
|
-
state: "idle" | "focused" | "open" | "open
|
|
81
|
+
state: "idle" | "focused" | "open" | "open.idle" | "open.dragging";
|
|
82
82
|
props: RequiredBy<ColorPickerProps, PropsWithDefault>;
|
|
83
83
|
computed: {
|
|
84
84
|
disabled: boolean;
|
|
@@ -2,7 +2,7 @@ import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
|
2
2
|
import { A as getRelativePoint, C as queryAll, Ct as isModifierKey, D as disableTextSelection, E as trackPointerMove, G as getInitialFocus, S as query, St as isLeftClick, W as raf, a as visuallyHiddenStyle, ct as setElementValue, ft as getEventKey, it as dispatchInputValueEvent, lt as trackFormControl, mt as getEventStep, pt as getEventPoint, xn as dataAttr } from "../../dom-query-BFuRs3l4.mjs";
|
|
3
3
|
import { $ as tryCatch, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
4
4
|
import { i as getColorAreaGradient, n as parseColor, t as normalizeColor } from "../../color-utils-BK3Ae7x1.mjs";
|
|
5
|
-
import { a as createMachine, i as createGuards } from "../../core-
|
|
5
|
+
import { a as createMachine, i as createGuards } from "../../core-CTtbW9qh.mjs";
|
|
6
6
|
import "../../interact-outside-Ba50N1a5.mjs";
|
|
7
7
|
import { n as trackDismissableElement } from "../../dismissable-B9k5K6f9.mjs";
|
|
8
8
|
import { n as getPlacement, t as getPlacementStyles } from "../../popper-BlgbmdAn.mjs";
|
|
@@ -1035,6 +1035,7 @@ const machine = createMachine({
|
|
|
1035
1035
|
}
|
|
1036
1036
|
},
|
|
1037
1037
|
focused: {
|
|
1038
|
+
id: "color-picker-focused",
|
|
1038
1039
|
tags: ["closed", "focused"],
|
|
1039
1040
|
on: {
|
|
1040
1041
|
"CONTROLLED.OPEN": {
|
|
@@ -1066,52 +1067,13 @@ const machine = createMachine({
|
|
|
1066
1067
|
open: {
|
|
1067
1068
|
tags: ["open"],
|
|
1068
1069
|
effects: ["trackPositioning", "trackDismissableElement"],
|
|
1070
|
+
initial: "idle",
|
|
1069
1071
|
on: {
|
|
1070
1072
|
"CONTROLLED.CLOSE": [{
|
|
1071
1073
|
guard: "shouldRestoreFocus",
|
|
1072
1074
|
target: "focused",
|
|
1073
1075
|
actions: ["setReturnFocus"]
|
|
1074
1076
|
}, { target: "idle" }],
|
|
1075
|
-
"TRIGGER.CLICK": [{
|
|
1076
|
-
guard: "isOpenControlled",
|
|
1077
|
-
actions: ["invokeOnClose"]
|
|
1078
|
-
}, {
|
|
1079
|
-
target: "idle",
|
|
1080
|
-
actions: ["invokeOnClose"]
|
|
1081
|
-
}],
|
|
1082
|
-
"AREA.POINTER_DOWN": {
|
|
1083
|
-
target: "open:dragging",
|
|
1084
|
-
actions: [
|
|
1085
|
-
"setActiveChannel",
|
|
1086
|
-
"setAreaColorFromPoint",
|
|
1087
|
-
"focusAreaThumb"
|
|
1088
|
-
]
|
|
1089
|
-
},
|
|
1090
|
-
"AREA.FOCUS": { actions: ["setActiveChannel"] },
|
|
1091
|
-
"CHANNEL_SLIDER.POINTER_DOWN": {
|
|
1092
|
-
target: "open:dragging",
|
|
1093
|
-
actions: [
|
|
1094
|
-
"setActiveChannel",
|
|
1095
|
-
"setChannelColorFromPoint",
|
|
1096
|
-
"focusChannelThumb"
|
|
1097
|
-
]
|
|
1098
|
-
},
|
|
1099
|
-
"CHANNEL_SLIDER.FOCUS": { actions: ["setActiveChannel"] },
|
|
1100
|
-
"AREA.ARROW_LEFT": { actions: ["decrementAreaXChannel"] },
|
|
1101
|
-
"AREA.ARROW_RIGHT": { actions: ["incrementAreaXChannel"] },
|
|
1102
|
-
"AREA.ARROW_UP": { actions: ["incrementAreaYChannel"] },
|
|
1103
|
-
"AREA.ARROW_DOWN": { actions: ["decrementAreaYChannel"] },
|
|
1104
|
-
"AREA.PAGE_UP": { actions: ["incrementAreaXChannel"] },
|
|
1105
|
-
"AREA.PAGE_DOWN": { actions: ["decrementAreaXChannel"] },
|
|
1106
|
-
"CHANNEL_SLIDER.ARROW_LEFT": { actions: ["decrementChannel"] },
|
|
1107
|
-
"CHANNEL_SLIDER.ARROW_RIGHT": { actions: ["incrementChannel"] },
|
|
1108
|
-
"CHANNEL_SLIDER.ARROW_UP": { actions: ["incrementChannel"] },
|
|
1109
|
-
"CHANNEL_SLIDER.ARROW_DOWN": { actions: ["decrementChannel"] },
|
|
1110
|
-
"CHANNEL_SLIDER.PAGE_UP": { actions: ["incrementChannel"] },
|
|
1111
|
-
"CHANNEL_SLIDER.PAGE_DOWN": { actions: ["decrementChannel"] },
|
|
1112
|
-
"CHANNEL_SLIDER.HOME": { actions: ["setChannelToMin"] },
|
|
1113
|
-
"CHANNEL_SLIDER.END": { actions: ["setChannelToMax"] },
|
|
1114
|
-
"CHANNEL_INPUT.BLUR": { actions: ["setChannelColorFromInput"] },
|
|
1115
1077
|
INTERACT_OUTSIDE: [
|
|
1116
1078
|
{
|
|
1117
1079
|
guard: "isOpenControlled",
|
|
@@ -1133,72 +1095,84 @@ const machine = createMachine({
|
|
|
1133
1095
|
}, {
|
|
1134
1096
|
target: "idle",
|
|
1135
1097
|
actions: ["invokeOnClose"]
|
|
1136
|
-
}]
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
},
|
|
1142
|
-
{
|
|
1143
|
-
guard: "closeOnSelect",
|
|
1144
|
-
target: "focused",
|
|
1145
|
-
actions: [
|
|
1146
|
-
"setValue",
|
|
1147
|
-
"invokeOnClose",
|
|
1148
|
-
"setReturnFocus"
|
|
1149
|
-
]
|
|
1150
|
-
},
|
|
1151
|
-
{ actions: ["setValue"] }
|
|
1152
|
-
]
|
|
1153
|
-
}
|
|
1154
|
-
},
|
|
1155
|
-
"open:dragging": {
|
|
1156
|
-
tags: ["open"],
|
|
1157
|
-
exit: ["clearActiveChannel"],
|
|
1158
|
-
effects: [
|
|
1159
|
-
"trackPointerMove",
|
|
1160
|
-
"disableTextSelection",
|
|
1161
|
-
"trackPositioning",
|
|
1162
|
-
"trackDismissableElement"
|
|
1163
|
-
],
|
|
1164
|
-
on: {
|
|
1165
|
-
"CONTROLLED.CLOSE": [{
|
|
1166
|
-
guard: "shouldRestoreFocus",
|
|
1167
|
-
target: "focused",
|
|
1168
|
-
actions: ["setReturnFocus"]
|
|
1169
|
-
}, { target: "idle" }],
|
|
1170
|
-
"AREA.POINTER_MOVE": { actions: ["setAreaColorFromPoint", "focusAreaThumb"] },
|
|
1171
|
-
"AREA.POINTER_UP": {
|
|
1172
|
-
target: "open",
|
|
1173
|
-
actions: ["invokeOnChangeEnd"]
|
|
1174
|
-
},
|
|
1175
|
-
"CHANNEL_SLIDER.POINTER_MOVE": { actions: ["setChannelColorFromPoint", "focusChannelThumb"] },
|
|
1176
|
-
"CHANNEL_SLIDER.POINTER_UP": {
|
|
1177
|
-
target: "open",
|
|
1178
|
-
actions: ["invokeOnChangeEnd"]
|
|
1179
|
-
},
|
|
1180
|
-
INTERACT_OUTSIDE: [
|
|
1181
|
-
{
|
|
1098
|
+
}]
|
|
1099
|
+
},
|
|
1100
|
+
states: {
|
|
1101
|
+
idle: { on: {
|
|
1102
|
+
"TRIGGER.CLICK": [{
|
|
1182
1103
|
guard: "isOpenControlled",
|
|
1183
1104
|
actions: ["invokeOnClose"]
|
|
1105
|
+
}, {
|
|
1106
|
+
target: "#color-picker-focused",
|
|
1107
|
+
actions: ["invokeOnClose"]
|
|
1108
|
+
}],
|
|
1109
|
+
"AREA.POINTER_DOWN": {
|
|
1110
|
+
target: "dragging",
|
|
1111
|
+
actions: [
|
|
1112
|
+
"setActiveChannel",
|
|
1113
|
+
"setAreaColorFromPoint",
|
|
1114
|
+
"focusAreaThumb"
|
|
1115
|
+
]
|
|
1184
1116
|
},
|
|
1185
|
-
{
|
|
1186
|
-
|
|
1187
|
-
target: "
|
|
1188
|
-
actions: [
|
|
1117
|
+
"AREA.FOCUS": { actions: ["setActiveChannel"] },
|
|
1118
|
+
"CHANNEL_SLIDER.POINTER_DOWN": {
|
|
1119
|
+
target: "dragging",
|
|
1120
|
+
actions: [
|
|
1121
|
+
"setActiveChannel",
|
|
1122
|
+
"setChannelColorFromPoint",
|
|
1123
|
+
"focusChannelThumb"
|
|
1124
|
+
]
|
|
1189
1125
|
},
|
|
1190
|
-
{
|
|
1191
|
-
|
|
1192
|
-
|
|
1126
|
+
"CHANNEL_SLIDER.FOCUS": { actions: ["setActiveChannel"] },
|
|
1127
|
+
"AREA.ARROW_LEFT": { actions: ["decrementAreaXChannel"] },
|
|
1128
|
+
"AREA.ARROW_RIGHT": { actions: ["incrementAreaXChannel"] },
|
|
1129
|
+
"AREA.ARROW_UP": { actions: ["incrementAreaYChannel"] },
|
|
1130
|
+
"AREA.ARROW_DOWN": { actions: ["decrementAreaYChannel"] },
|
|
1131
|
+
"AREA.PAGE_UP": { actions: ["incrementAreaXChannel"] },
|
|
1132
|
+
"AREA.PAGE_DOWN": { actions: ["decrementAreaXChannel"] },
|
|
1133
|
+
"CHANNEL_SLIDER.ARROW_LEFT": { actions: ["decrementChannel"] },
|
|
1134
|
+
"CHANNEL_SLIDER.ARROW_RIGHT": { actions: ["incrementChannel"] },
|
|
1135
|
+
"CHANNEL_SLIDER.ARROW_UP": { actions: ["incrementChannel"] },
|
|
1136
|
+
"CHANNEL_SLIDER.ARROW_DOWN": { actions: ["decrementChannel"] },
|
|
1137
|
+
"CHANNEL_SLIDER.PAGE_UP": { actions: ["incrementChannel"] },
|
|
1138
|
+
"CHANNEL_SLIDER.PAGE_DOWN": { actions: ["decrementChannel"] },
|
|
1139
|
+
"CHANNEL_SLIDER.HOME": { actions: ["setChannelToMin"] },
|
|
1140
|
+
"CHANNEL_SLIDER.END": { actions: ["setChannelToMax"] },
|
|
1141
|
+
"CHANNEL_INPUT.BLUR": { actions: ["setChannelColorFromInput"] },
|
|
1142
|
+
"SWATCH_TRIGGER.CLICK": [
|
|
1143
|
+
{
|
|
1144
|
+
guard: and("isOpenControlled", "closeOnSelect"),
|
|
1145
|
+
actions: ["setValue", "invokeOnClose"]
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
guard: "closeOnSelect",
|
|
1149
|
+
target: "focused",
|
|
1150
|
+
actions: [
|
|
1151
|
+
"setValue",
|
|
1152
|
+
"invokeOnClose",
|
|
1153
|
+
"setReturnFocus"
|
|
1154
|
+
]
|
|
1155
|
+
},
|
|
1156
|
+
{ actions: ["setValue"] }
|
|
1157
|
+
]
|
|
1158
|
+
} },
|
|
1159
|
+
dragging: {
|
|
1160
|
+
tags: ["dragging"],
|
|
1161
|
+
exit: ["clearActiveChannel"],
|
|
1162
|
+
effects: ["trackPointerMove", "disableTextSelection"],
|
|
1163
|
+
on: {
|
|
1164
|
+
"AREA.POINTER_MOVE": { actions: ["setAreaColorFromPoint", "focusAreaThumb"] },
|
|
1165
|
+
"AREA.POINTER_UP": {
|
|
1166
|
+
target: "idle",
|
|
1167
|
+
actions: ["invokeOnChangeEnd"]
|
|
1168
|
+
},
|
|
1169
|
+
"CHANNEL_SLIDER.POINTER_MOVE": { actions: ["setChannelColorFromPoint", "focusChannelThumb"] },
|
|
1170
|
+
"CHANNEL_SLIDER.POINTER_UP": {
|
|
1171
|
+
target: "idle",
|
|
1172
|
+
actions: ["invokeOnChangeEnd"]
|
|
1173
|
+
}
|
|
1193
1174
|
}
|
|
1194
|
-
|
|
1195
|
-
CLOSE: [{
|
|
1196
|
-
guard: "isOpenControlled",
|
|
1197
|
-
actions: ["invokeOnClose"]
|
|
1198
|
-
}, {
|
|
1199
|
-
target: "idle",
|
|
1200
|
-
actions: ["invokeOnClose"]
|
|
1201
|
-
}]
|
|
1175
|
+
}
|
|
1202
1176
|
}
|
|
1203
1177
|
}
|
|
1204
1178
|
},
|
|
@@ -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_collection = require("../../collection-BBgC8xCb.cjs");
|
|
6
|
-
const require_core = require("../../core-
|
|
6
|
+
const require_core = require("../../core-Bw_czdwX.cjs");
|
|
7
7
|
require("../../interact-outside-Bg-QSXqp.cjs");
|
|
8
8
|
const require_dismissable = require("../../dismissable-DxjbwsOf.cjs");
|
|
9
9
|
const require_focus_visible = require("../../focus-visible-Co_9bW09.cjs");
|
|
@@ -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
3
|
import { t as ListCollection } from "../../list-collection-B_8BN0XB.cjs";
|
|
4
|
-
import {
|
|
4
|
+
import { b as Service, p as Machine, u as EventObject } from "../../types-u-LWCSDE.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 { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-DzWGFhcS.cjs";
|
|
7
7
|
import { c as Placement, d as PositioningOptions } from "../../types-CZAtqGqH.cjs";
|
|
8
8
|
|
|
9
9
|
//#region src/machines/combobox/combobox.anatomy.d.ts
|
|
10
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
10
|
+
declare const anatomy: AnatomyInstance<"root" | "trigger" | "content" | "label" | "control" | "item" | "itemIndicator" | "input" | "positioner" | "list" | "clearTrigger" | "itemText" | "itemGroup" | "itemGroupLabel">;
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/machines/combobox/combobox.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
3
|
import { t as ListCollection } from "../../list-collection-DkRA5LOq.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { b as Service, p as Machine, u as EventObject } from "../../types-DvUmCWsb.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 { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-CGNNiDyE.mjs";
|
|
7
|
-
import { p as PositioningOptions, u as Placement } from "../../index-
|
|
7
|
+
import { p as PositioningOptions, u as Placement } from "../../index-fMh0VDkR.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/machines/combobox/combobox.anatomy.d.ts
|
|
10
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
10
|
+
declare const anatomy: AnatomyInstance<"root" | "trigger" | "content" | "label" | "control" | "item" | "itemIndicator" | "input" | "positioner" | "list" | "clearTrigger" | "itemText" | "itemGroup" | "itemGroupLabel">;
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/machines/combobox/combobox.collection.d.ts
|
|
13
13
|
declare const collection: {
|
|
@@ -2,7 +2,7 @@ import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
|
2
2
|
import { Cn as setCaretToEnd, H as nextTick, I as scrollIntoView, L as clickIfLink, S as query, St as isLeftClick, W as raf, _t as isComposingEvent, bn as ariaAttr, bt as isDownloadingEvent, cn as isAnchorElement, ft as getEventKey, vt as isContextMenuEvent, wt as isOpeningInNewTab, xn as dataAttr, z as observeAttributes } from "../../dom-query-BFuRs3l4.mjs";
|
|
3
3
|
import { At as remove, Y as match, ft as isEqual, mt as addOrRemove, rt as isBoolean, t as ensure, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
4
4
|
import { s as ListCollection } from "../../collection-DgzidRvr.mjs";
|
|
5
|
-
import { o as setup } from "../../core-
|
|
5
|
+
import { o as setup } from "../../core-CTtbW9qh.mjs";
|
|
6
6
|
import "../../interact-outside-Ba50N1a5.mjs";
|
|
7
7
|
import { n as trackDismissableElement } from "../../dismissable-B9k5K6f9.mjs";
|
|
8
8
|
import { a as setInteractionModality, o as trackFocusVisible, t as getInteractionModality } from "../../focus-visible-BuLf8M9F.mjs";
|
|
@@ -3,7 +3,7 @@ require("../../chunk-CKQMccvm.cjs");
|
|
|
3
3
|
const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
|
|
4
4
|
const require_dom_query = require("../../dom-query-BUO7rGsg.cjs");
|
|
5
5
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
6
|
-
const require_core = require("../../core-
|
|
6
|
+
const require_core = require("../../core-Bw_czdwX.cjs");
|
|
7
7
|
const require_date_utils = require("../../date-utils-B-dqorZV.cjs");
|
|
8
8
|
require("../../interact-outside-Bg-QSXqp.cjs");
|
|
9
9
|
const require_dismissable = require("../../dismissable-DxjbwsOf.cjs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
|
|
2
|
-
import {
|
|
2
|
+
import { b as Service, p as Machine } from "../../types-u-LWCSDE.cjs";
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
4
|
import { a as DateRangePreset, o as DateValue } from "../../types-MFO-RQR7.cjs";
|
|
5
5
|
import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-DzWGFhcS.cjs";
|
|
@@ -8,7 +8,7 @@ import { c as Placement, d as PositioningOptions } from "../../types-CZAtqGqH.cj
|
|
|
8
8
|
import { Calendar, CalendarDate, CalendarDateTime, CalendarIdentifier, DateDuration, DateFormatter, ZonedDateTime } from "@internationalized/date";
|
|
9
9
|
|
|
10
10
|
//#region src/machines/date-picker/date-picker.anatomy.d.ts
|
|
11
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
11
|
+
declare const anatomy: AnatomyInstance<"root" | "trigger" | "content" | "label" | "control" | "input" | "positioner" | "table" | "view" | "clearTrigger" | "nextTrigger" | "prevTrigger" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/machines/date-picker/date-picker.types.d.ts
|
|
14
14
|
type DateView = "day" | "month" | "year";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-BedZVdg0.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { b as Service, p as Machine } from "../../types-DvUmCWsb.mjs";
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
4
|
import { $ as DateValue, Q as DateRangePreset } from "../../index-BfUngXif.mjs";
|
|
5
5
|
import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-CGNNiDyE.mjs";
|
|
6
6
|
import { t as LiveRegion } from "../../index-1L40UHp8.mjs";
|
|
7
|
-
import { p as PositioningOptions, u as Placement } from "../../index-
|
|
7
|
+
import { p as PositioningOptions, u as Placement } from "../../index-fMh0VDkR.mjs";
|
|
8
8
|
import { Calendar, CalendarDate, CalendarDateTime, CalendarIdentifier, DateDuration, DateFormatter, ZonedDateTime } from "@internationalized/date";
|
|
9
9
|
|
|
10
10
|
//#region src/machines/date-picker/date-picker.anatomy.d.ts
|
|
11
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
11
|
+
declare const anatomy: AnatomyInstance<"root" | "trigger" | "content" | "label" | "control" | "input" | "positioner" | "table" | "view" | "clearTrigger" | "nextTrigger" | "prevTrigger" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/machines/date-picker/date-picker.types.d.ts
|
|
14
14
|
type DateView = "day" | "month" | "year";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
2
|
import { C as queryAll, D as disableTextSelection, O as restoreTextSelection, S as query, W as raf, _t as isComposingEvent, bn as ariaAttr, ct as setElementValue, ft as getEventKey, gt as getNativeEvent, xn as dataAttr } from "../../dom-query-BFuRs3l4.mjs";
|
|
3
3
|
import { N as isValueWithinRange, Y as match, g as clampValue, ht as chunk, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
4
|
-
import { a as createMachine,
|
|
4
|
+
import { a as createMachine, h as memo, i as createGuards } from "../../core-CTtbW9qh.mjs";
|
|
5
5
|
import { B as alignDate, C as getMonthNames, E as getWeekOfYear, F as isDateEqual, I as isDateOutsideRange, K as constrainValue, L as isDateUnavailable, M as getMonthFormatter, N as getEndDate, P as getUnitDuration, R as isNextRangeInvalid, S as getMonthDays, T as getWeekDays, _ as getDefaultYearRange, b as getDaysInWeek, g as getDecadeRange, i as getNextPage, j as getDayFormatter, k as formatSelectedDate, l as getPreviousSection, n as parseDateString, o as getNextSection, p as getTodayDate, r as getAdjustedDateFn, s as getPreviousPage, t as getDateRangePreset, v as getYearsRange, z as isPreviousRangeInvalid } from "../../date-utils-BdeeOQRI.mjs";
|
|
6
6
|
import "../../interact-outside-Ba50N1a5.mjs";
|
|
7
7
|
import { n as trackDismissableElement } from "../../dismissable-B9k5K6f9.mjs";
|
|
@@ -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_aria_hidden = require("../../aria-hidden-CIBHXlCy.cjs");
|
|
5
5
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
6
|
-
const require_core = require("../../core-
|
|
6
|
+
const require_core = require("../../core-Bw_czdwX.cjs");
|
|
7
7
|
require("../../interact-outside-Bg-QSXqp.cjs");
|
|
8
8
|
const require_dismissable = require("../../dismissable-DxjbwsOf.cjs");
|
|
9
9
|
const require_focus_trap = require("../../focus-trap-BewqTQFt.cjs");
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
|
|
2
|
-
import {
|
|
2
|
+
import { b as Service, p as Machine } from "../../types-u-LWCSDE.cjs";
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, s as MaybeElement, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
4
|
import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-DzWGFhcS.cjs";
|
|
5
5
|
import { r as PersistentElementOptions, t as DismissableElementHandlers } from "../../dismissable-layer-ZgyqN8AD.cjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/dialog/dialog.anatomy.d.ts
|
|
8
|
-
declare const anatomy: AnatomyInstance<"trigger" | "
|
|
8
|
+
declare const anatomy: AnatomyInstance<"trigger" | "content" | "title" | "description" | "positioner" | "backdrop" | "closeTrigger">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/machines/dialog/dialog.types.d.ts
|
|
11
11
|
interface OpenChangeDetails {
|