@foldkit/ui 0.161.0 → 0.162.0-canary.591649ea58a6
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/animation/update.d.ts.map +1 -1
- package/dist/animation/update.js +11 -7
- package/dist/calendar/index.d.ts.map +1 -1
- package/dist/calendar/index.js +27 -19
- package/dist/checkbox/index.d.ts +1 -1
- package/dist/checkbox/index.js +1 -1
- package/dist/combobox/multi.js +2 -2
- package/dist/combobox/shared.js +15 -15
- package/dist/combobox/single.js +4 -4
- package/dist/datePicker/index.d.ts.map +1 -1
- package/dist/datePicker/index.js +10 -10
- package/dist/dialog/index.js +9 -9
- package/dist/disclosure/index.d.ts +1 -1
- package/dist/disclosure/index.js +1 -1
- package/dist/dragAndDrop/index.js +11 -11
- package/dist/fileDrop/index.d.ts.map +1 -1
- package/dist/fileDrop/index.js +7 -5
- package/dist/hoverIntent/hoverIntent.d.ts.map +1 -1
- package/dist/hoverIntent/hoverIntent.js +16 -16
- package/dist/listbox/shared.d.ts.map +1 -1
- package/dist/listbox/shared.js +20 -18
- package/dist/menu/index.d.ts.map +1 -1
- package/dist/menu/index.js +23 -17
- package/dist/popover/index.d.ts.map +1 -1
- package/dist/popover/index.js +12 -10
- package/dist/radioGroup/index.d.ts.map +1 -1
- package/dist/radioGroup/index.js +5 -3
- package/dist/slider/index.js +6 -6
- package/dist/switch/index.d.ts +1 -1
- package/dist/switch/index.js +1 -1
- package/dist/tabs/index.d.ts.map +1 -1
- package/dist/tabs/index.js +5 -3
- package/dist/test/apps/disabledButton.d.ts.map +1 -1
- package/dist/test/apps/disabledButton.js +3 -3
- package/dist/toast/update.js +7 -7
- package/dist/tooltip/tooltip.d.ts.map +1 -1
- package/dist/tooltip/tooltip.js +14 -12
- package/dist/virtualList/index.d.ts.map +1 -1
- package/dist/virtualList/index.js +8 -6
- package/package.json +4 -4
package/dist/tooltip/tooltip.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Duration, Effect, Equal, Function, Match, Number, Option, Predicate, Sc
|
|
|
3
3
|
import * as Command from 'foldkit/command';
|
|
4
4
|
import { childAttributes } from 'foldkit/html';
|
|
5
5
|
import * as Mount from 'foldkit/mount';
|
|
6
|
-
import {
|
|
6
|
+
import { modifyFields } from 'foldkit/struct';
|
|
7
7
|
import { defineView } from 'foldkit/submodel';
|
|
8
8
|
import * as Update from 'foldkit/update';
|
|
9
9
|
import { AnchorConfig, anchorSetup } from '../anchor/index.js';
|
|
@@ -67,11 +67,11 @@ export const AnchorTooltip = Mount.define('AnchorTooltip', {
|
|
|
67
67
|
const computeUpdate = (model, message) => __foldkitBrandViewResult((Message.match(message, {
|
|
68
68
|
EnteredTrigger: () => {
|
|
69
69
|
if (model.isOpen || model.isDismissed) {
|
|
70
|
-
return __foldkitBrandViewResult(({ model:
|
|
70
|
+
return __foldkitBrandViewResult(({ model: modifyFields(model, { isHovered: () => __foldkitBrandViewResult((true), "@foldkit/ui/tooltip/tooltip.js#isHovered") }) }), "@foldkit/ui/tooltip/tooltip.js#EnteredTrigger");
|
|
71
71
|
}
|
|
72
72
|
const nextVersion = Number.increment(model.pendingShowVersion);
|
|
73
73
|
return __foldkitBrandViewResult(({
|
|
74
|
-
model:
|
|
74
|
+
model: modifyFields(model, {
|
|
75
75
|
isHovered: () => __foldkitBrandViewResult((true), "@foldkit/ui/tooltip/tooltip.js#isHovered~2"),
|
|
76
76
|
pendingShowVersion: () => __foldkitBrandViewResult((nextVersion), "@foldkit/ui/tooltip/tooltip.js#pendingShowVersion"),
|
|
77
77
|
}),
|
|
@@ -81,7 +81,7 @@ const computeUpdate = (model, message) => __foldkitBrandViewResult((Message.matc
|
|
|
81
81
|
}), "@foldkit/ui/tooltip/tooltip.js#EnteredTrigger");
|
|
82
82
|
},
|
|
83
83
|
LeftTrigger: () => (__foldkitBrandViewResult(({
|
|
84
|
-
model:
|
|
84
|
+
model: modifyFields(model, {
|
|
85
85
|
isHovered: () => __foldkitBrandViewResult((false), "@foldkit/ui/tooltip/tooltip.js#isHovered~3"),
|
|
86
86
|
isOpen: () => __foldkitBrandViewResult((model.isFocused && model.isOpen), "@foldkit/ui/tooltip/tooltip.js#isOpen"),
|
|
87
87
|
isDismissed: () => __foldkitBrandViewResult((false), "@foldkit/ui/tooltip/tooltip.js#isDismissed"),
|
|
@@ -92,21 +92,21 @@ const computeUpdate = (model, message) => __foldkitBrandViewResult((Message.matc
|
|
|
92
92
|
const isFromMousePress = Option.exists(model.maybeLastPointerType, Equal.equals('mouse'));
|
|
93
93
|
if (isFromMousePress) {
|
|
94
94
|
return __foldkitBrandViewResult(({
|
|
95
|
-
model:
|
|
95
|
+
model: modifyFields(model, {
|
|
96
96
|
maybeLastPointerType: () => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/tooltip/tooltip.js#maybeLastPointerType"),
|
|
97
97
|
}),
|
|
98
98
|
}), "@foldkit/ui/tooltip/tooltip.js#FocusedTrigger");
|
|
99
99
|
}
|
|
100
100
|
if (model.isDismissed) {
|
|
101
101
|
return __foldkitBrandViewResult(({
|
|
102
|
-
model:
|
|
102
|
+
model: modifyFields(model, {
|
|
103
103
|
isFocused: () => __foldkitBrandViewResult((true), "@foldkit/ui/tooltip/tooltip.js#isFocused"),
|
|
104
104
|
maybeLastPointerType: () => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/tooltip/tooltip.js#maybeLastPointerType~2"),
|
|
105
105
|
}),
|
|
106
106
|
}), "@foldkit/ui/tooltip/tooltip.js#FocusedTrigger");
|
|
107
107
|
}
|
|
108
108
|
return __foldkitBrandViewResult(({
|
|
109
|
-
model:
|
|
109
|
+
model: modifyFields(model, {
|
|
110
110
|
isFocused: () => __foldkitBrandViewResult((true), "@foldkit/ui/tooltip/tooltip.js#isFocused~2"),
|
|
111
111
|
isOpen: () => __foldkitBrandViewResult((true), "@foldkit/ui/tooltip/tooltip.js#isOpen~2"),
|
|
112
112
|
pendingShowVersion: Number.increment,
|
|
@@ -114,7 +114,7 @@ const computeUpdate = (model, message) => __foldkitBrandViewResult((Message.matc
|
|
|
114
114
|
}), "@foldkit/ui/tooltip/tooltip.js#FocusedTrigger");
|
|
115
115
|
},
|
|
116
116
|
BlurredTrigger: () => (__foldkitBrandViewResult(({
|
|
117
|
-
model:
|
|
117
|
+
model: modifyFields(model, {
|
|
118
118
|
isFocused: () => __foldkitBrandViewResult((false), "@foldkit/ui/tooltip/tooltip.js#isFocused~3"),
|
|
119
119
|
isOpen: () => __foldkitBrandViewResult((model.isHovered && model.isOpen), "@foldkit/ui/tooltip/tooltip.js#isOpen~3"),
|
|
120
120
|
isDismissed: () => __foldkitBrandViewResult((false), "@foldkit/ui/tooltip/tooltip.js#isDismissed~2"),
|
|
@@ -123,14 +123,14 @@ const computeUpdate = (model, message) => __foldkitBrandViewResult((Message.matc
|
|
|
123
123
|
}),
|
|
124
124
|
}), "@foldkit/ui/tooltip/tooltip.js#BlurredTrigger")),
|
|
125
125
|
PressedEscape: () => (__foldkitBrandViewResult(({
|
|
126
|
-
model:
|
|
126
|
+
model: modifyFields(model, {
|
|
127
127
|
isOpen: () => __foldkitBrandViewResult((false), "@foldkit/ui/tooltip/tooltip.js#isOpen~4"),
|
|
128
128
|
isDismissed: () => __foldkitBrandViewResult((true), "@foldkit/ui/tooltip/tooltip.js#isDismissed~3"),
|
|
129
129
|
pendingShowVersion: Number.increment,
|
|
130
130
|
}),
|
|
131
131
|
}), "@foldkit/ui/tooltip/tooltip.js#PressedEscape")),
|
|
132
132
|
PressedPointerOnTrigger: ({ pointerType }) => (__foldkitBrandViewResult(({
|
|
133
|
-
model:
|
|
133
|
+
model: modifyFields(model, {
|
|
134
134
|
maybeLastPointerType: () => __foldkitBrandViewResult((Option.some(pointerType)), "@foldkit/ui/tooltip/tooltip.js#maybeLastPointerType~4"),
|
|
135
135
|
}),
|
|
136
136
|
}), "@foldkit/ui/tooltip/tooltip.js#PressedPointerOnTrigger")),
|
|
@@ -141,7 +141,7 @@ const computeUpdate = (model, message) => __foldkitBrandViewResult((Message.matc
|
|
|
141
141
|
if (!model.isHovered) {
|
|
142
142
|
return __foldkitBrandViewResult(({ model }), "@foldkit/ui/tooltip/tooltip.js#CompletedWaitBeforeShowing");
|
|
143
143
|
}
|
|
144
|
-
return __foldkitBrandViewResult(({ model:
|
|
144
|
+
return __foldkitBrandViewResult(({ model: modifyFields(model, { isOpen: () => __foldkitBrandViewResult((true), "@foldkit/ui/tooltip/tooltip.js#isOpen~5") }) }), "@foldkit/ui/tooltip/tooltip.js#CompletedWaitBeforeShowing");
|
|
145
145
|
},
|
|
146
146
|
CompletedAnchorTooltip: () => (__foldkitBrandViewResult(({ model }), "@foldkit/ui/tooltip/tooltip.js#CompletedAnchorTooltip")),
|
|
147
147
|
})), "@foldkit/ui/tooltip/tooltip.js#computeUpdate");
|
|
@@ -168,7 +168,9 @@ export const update = (model, message) => {
|
|
|
168
168
|
/** Reflects an externally-sourced hover show-delay onto the Model without
|
|
169
169
|
* emitting an OutMessage. Use to mirror an external config value (a user
|
|
170
170
|
* preference, a restored setting) onto the tooltip. */
|
|
171
|
-
export const reflectShowDelay = Function.dual(2, (model, showDelay) => __foldkitBrandViewResult((
|
|
171
|
+
export const reflectShowDelay = Function.dual(2, (model, showDelay) => __foldkitBrandViewResult((modifyFields(model, {
|
|
172
|
+
showDelay: () => __foldkitBrandViewResult((Duration.fromInputUnsafe(showDelay)), "@foldkit/ui/tooltip/tooltip.js#showDelay"),
|
|
173
|
+
})), "@foldkit/ui/tooltip/tooltip.js#anonymous~4"));
|
|
172
174
|
/** Renders a headless tooltip with an anchored non-interactive panel.
|
|
173
175
|
* Shows on hover (after delay) or focus (from keyboard, touch, or pen;
|
|
174
176
|
* mouse-click focus is excluded). Hides on leave, blur, or Escape. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/virtualList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EAEN,MAAM,EAEN,MAAM,EAGP,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I,CAAC,CAAA;IAC1B,SAAS,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;IAChD,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/C,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;IACzD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC,CAAA;IACzC,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,mBAAmB,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAA;CACpD,CAAC,CAAA;AAEF;;;;;;;YAOY;AACZ,KAAK,WAAW,CAAC,IAAI,IAAI,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,CAAA;AAEvE,eAAO,MAAM,IAAI,GAAI,IAAI,OAEA,WAAW,CAAC,IAAI,CAAC,CAAA"}
|
|
@@ -4,7 +4,7 @@ import * as Command from 'foldkit/command';
|
|
|
4
4
|
import { childAttributes, } from 'foldkit/html';
|
|
5
5
|
import { defineMessageUnion } from 'foldkit/message';
|
|
6
6
|
import { defineTaggedUnion } from 'foldkit/schema';
|
|
7
|
-
import {
|
|
7
|
+
import { modifyFields } from 'foldkit/struct';
|
|
8
8
|
import { defineView } from 'foldkit/submodel';
|
|
9
9
|
import * as Subscription from 'foldkit/subscription';
|
|
10
10
|
// MODEL
|
|
@@ -67,7 +67,7 @@ export const ApplyScroll = Command.define('ApplyScroll', {
|
|
|
67
67
|
/** Processes a VirtualList Message and returns the next Model and optional Commands. */
|
|
68
68
|
export const update = (model, message) => __foldkitBrandViewResult((Message.match(message, {
|
|
69
69
|
ScrolledContainer: ({ scrollTop }) => (__foldkitBrandViewResult(({
|
|
70
|
-
model:
|
|
70
|
+
model: modifyFields(model, { scrollTop: () => __foldkitBrandViewResult((scrollTop), "@foldkit/ui/virtualList/index.js#scrollTop") }),
|
|
71
71
|
}), "@foldkit/ui/virtualList/index.js#ScrolledContainer")),
|
|
72
72
|
MeasuredContainer: ({ containerHeight }) => {
|
|
73
73
|
const wasUnmeasured = model.measurement._tag === 'Unmeasured';
|
|
@@ -75,7 +75,7 @@ export const update = (model, message) => __foldkitBrandViewResult((Message.matc
|
|
|
75
75
|
if (needsInitialApply) {
|
|
76
76
|
const nextVersion = Number.increment(model.pendingScrollVersion);
|
|
77
77
|
return __foldkitBrandViewResult(({
|
|
78
|
-
model:
|
|
78
|
+
model: modifyFields(model, {
|
|
79
79
|
measurement: () => __foldkitBrandViewResult((Measurement.Measured({ containerHeight })), "@foldkit/ui/virtualList/index.js#measurement"),
|
|
80
80
|
pendingScrollVersion: () => __foldkitBrandViewResult((nextVersion), "@foldkit/ui/virtualList/index.js#pendingScrollVersion"),
|
|
81
81
|
pendingScroll: () => __foldkitBrandViewResult((PendingScroll.ScrollingToIndex({
|
|
@@ -94,7 +94,7 @@ export const update = (model, message) => __foldkitBrandViewResult((Message.matc
|
|
|
94
94
|
}
|
|
95
95
|
else {
|
|
96
96
|
return __foldkitBrandViewResult(({
|
|
97
|
-
model:
|
|
97
|
+
model: modifyFields(model, {
|
|
98
98
|
measurement: () => __foldkitBrandViewResult((Measurement.Measured({ containerHeight })), "@foldkit/ui/virtualList/index.js#measurement~2"),
|
|
99
99
|
}),
|
|
100
100
|
}), "@foldkit/ui/virtualList/index.js#MeasuredContainer");
|
|
@@ -106,7 +106,9 @@ export const update = (model, message) => __foldkitBrandViewResult((Message.matc
|
|
|
106
106
|
}
|
|
107
107
|
else {
|
|
108
108
|
return __foldkitBrandViewResult(({
|
|
109
|
-
model:
|
|
109
|
+
model: modifyFields(model, {
|
|
110
|
+
pendingScroll: () => __foldkitBrandViewResult((PendingScroll.Idle()), "@foldkit/ui/virtualList/index.js#pendingScroll~2"),
|
|
111
|
+
}),
|
|
110
112
|
}), "@foldkit/ui/virtualList/index.js#CompletedApplyScroll");
|
|
111
113
|
}
|
|
112
114
|
},
|
|
@@ -114,7 +116,7 @@ export const update = (model, message) => __foldkitBrandViewResult((Message.matc
|
|
|
114
116
|
const buildScrollToIndex = (model, index, targetScrollTop) => {
|
|
115
117
|
const nextVersion = Number.increment(model.pendingScrollVersion);
|
|
116
118
|
return __foldkitBrandViewResult(({
|
|
117
|
-
model:
|
|
119
|
+
model: modifyFields(model, {
|
|
118
120
|
pendingScrollVersion: () => __foldkitBrandViewResult((nextVersion), "@foldkit/ui/virtualList/index.js#pendingScrollVersion~2"),
|
|
119
121
|
pendingScroll: () => __foldkitBrandViewResult((PendingScroll.ScrollingToIndex({ index, version: nextVersion })), "@foldkit/ui/virtualList/index.js#pendingScroll~3"),
|
|
120
122
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foldkit/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.162.0-canary.591649ea58a6",
|
|
4
4
|
"description": "Headless, accessible UI components for Foldkit",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
],
|
|
123
123
|
"peerDependencies": {
|
|
124
124
|
"effect": "4.0.0-rc.115",
|
|
125
|
-
"foldkit": "
|
|
125
|
+
"foldkit": "0.162.0-canary.591649ea58a6"
|
|
126
126
|
},
|
|
127
127
|
"dependencies": {
|
|
128
128
|
"@floating-ui/dom": "^1.8.0"
|
|
@@ -134,8 +134,8 @@
|
|
|
134
134
|
"rimraf": "^6.1.3",
|
|
135
135
|
"typescript": "^7.0.2",
|
|
136
136
|
"vitest": "^5.0.0",
|
|
137
|
-
"@foldkit/vite-plugin": "0.23.0",
|
|
138
|
-
"foldkit": "0.
|
|
137
|
+
"@foldkit/vite-plugin": "0.23.0-canary.591649ea58a6",
|
|
138
|
+
"foldkit": "0.162.0-canary.591649ea58a6"
|
|
139
139
|
},
|
|
140
140
|
"keywords": [
|
|
141
141
|
"foldkit",
|