@foldkit/ui 0.154.0 → 0.155.0
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/README.md +1 -1
- package/dist/anchor/anchor.d.ts.map +1 -1
- package/dist/animation/index.d.ts +5 -5
- package/dist/animation/schema.d.ts.map +1 -1
- package/dist/animation/update.d.ts.map +1 -1
- package/dist/button/index.d.ts.map +1 -1
- package/dist/calendar/index.d.ts +44 -44
- package/dist/calendar/index.d.ts.map +1 -1
- package/dist/checkbox/index.d.ts.map +1 -1
- package/dist/combobox/multi.d.ts +47 -47
- package/dist/combobox/multi.d.ts.map +1 -1
- package/dist/combobox/shared.d.ts +44 -44
- package/dist/combobox/shared.d.ts.map +1 -1
- package/dist/combobox/shared.js +91 -78
- package/dist/combobox/single.d.ts +50 -50
- package/dist/combobox/single.d.ts.map +1 -1
- package/dist/datePicker/index.d.ts +102 -102
- package/dist/datePicker/index.d.ts.map +1 -1
- package/dist/dialog/index.d.ts +38 -18
- package/dist/dialog/index.d.ts.map +1 -1
- package/dist/dialog/index.js +66 -39
- package/dist/dialog/public.d.ts +1 -1
- package/dist/dialog/public.d.ts.map +1 -1
- package/dist/disclosure/index.d.ts.map +1 -1
- package/dist/dragAndDrop/index.d.ts +191 -191
- package/dist/dragAndDrop/index.d.ts.map +1 -1
- package/dist/fieldset/index.d.ts.map +1 -1
- package/dist/fileDrop/index.d.ts +10 -10
- package/dist/fileDrop/index.d.ts.map +1 -1
- package/dist/group.d.ts.map +1 -1
- package/dist/hoverIntent/hoverIntent.d.ts +103 -0
- package/dist/hoverIntent/hoverIntent.d.ts.map +1 -0
- package/dist/hoverIntent/hoverIntent.js +210 -0
- package/dist/hoverIntent/index.d.ts +4 -0
- package/dist/hoverIntent/index.d.ts.map +1 -0
- package/dist/hoverIntent/index.js +2 -0
- package/dist/hoverIntent/message.d.ts +42 -0
- package/dist/hoverIntent/message.d.ts.map +1 -0
- package/dist/hoverIntent/message.js +23 -0
- package/dist/hoverIntent/public.d.ts +3 -0
- package/dist/hoverIntent/public.d.ts.map +1 -0
- package/dist/hoverIntent/public.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/input/index.d.ts.map +1 -1
- package/dist/internal/optionExtensions.d.ts.map +1 -1
- package/dist/internal/selectors.d.ts.map +1 -1
- package/dist/keyboard.d.ts.map +1 -1
- package/dist/listbox/multi.d.ts +43 -43
- package/dist/listbox/multi.d.ts.map +1 -1
- package/dist/listbox/shared.d.ts +38 -38
- package/dist/listbox/shared.d.ts.map +1 -1
- package/dist/listbox/shared.js +46 -39
- package/dist/listbox/single.d.ts +45 -45
- package/dist/listbox/single.d.ts.map +1 -1
- package/dist/menu/index.d.ts +70 -70
- package/dist/menu/index.d.ts.map +1 -1
- package/dist/menu/index.js +39 -32
- package/dist/nav/index.d.ts.map +1 -1
- package/dist/popover/index.d.ts +33 -33
- package/dist/popover/index.d.ts.map +1 -1
- package/dist/popover/index.js +36 -29
- package/dist/radioGroup/index.d.ts +6 -6
- package/dist/radioGroup/index.d.ts.map +1 -1
- package/dist/select/index.d.ts.map +1 -1
- package/dist/slider/index.d.ts +72 -72
- package/dist/slider/index.d.ts.map +1 -1
- package/dist/switch/index.d.ts.map +1 -1
- package/dist/tabs/index.d.ts +6 -6
- package/dist/tabs/index.d.ts.map +1 -1
- package/dist/test/apps/disabledButton.d.ts +18 -15
- package/dist/test/apps/disabledButton.d.ts.map +1 -1
- package/dist/textarea/index.d.ts.map +1 -1
- package/dist/toast/index.d.ts +224 -224
- package/dist/toast/index.d.ts.map +1 -1
- package/dist/toast/schema.d.ts +16 -16
- package/dist/toast/schema.d.ts.map +1 -1
- package/dist/toast/test.d.ts.map +1 -1
- package/dist/toast/update.d.ts +151 -151
- package/dist/toast/update.d.ts.map +1 -1
- package/dist/tooltip/message.d.ts +2 -2
- package/dist/tooltip/message.d.ts.map +1 -1
- package/dist/tooltip/tooltip.d.ts +7 -7
- package/dist/tooltip/tooltip.d.ts.map +1 -1
- package/dist/tooltip/tooltip.js +15 -11
- package/dist/typeahead.d.ts.map +1 -1
- package/dist/virtualList/index.d.ts +10 -10
- package/dist/virtualList/index.d.ts.map +1 -1
- package/dist/virtualList/index.js +5 -5
- package/package.json +12 -10
package/dist/tooltip/tooltip.js
CHANGED
|
@@ -52,14 +52,18 @@ export const WaitBeforeShowing = Command.define('WaitBeforeShowing', {
|
|
|
52
52
|
execute: ({ delay, version }) => __foldkitBrandViewResult((Effect.sleep(delay).pipe(Effect.as(Message.CompletedWaitBeforeShowing({ version })))), "@foldkit/ui/tooltip/tooltip.js#execute"),
|
|
53
53
|
});
|
|
54
54
|
/** The anchor-positioning Mount this Tooltip renders on its panel. */
|
|
55
|
-
export const AnchorTooltip = Mount.define('AnchorTooltip', {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
55
|
+
export const AnchorTooltip = Mount.define('AnchorTooltip', {
|
|
56
|
+
args: { buttonId: S.String, anchor: AnchorConfig },
|
|
57
|
+
messages: [Message.CompletedAnchorTooltip],
|
|
58
|
+
execute: ({ element, buttonId, anchor }) => __foldkitBrandViewResult((Effect.gen(function* () {
|
|
59
|
+
yield* Effect.acquireRelease(Effect.sync(() => __foldkitBrandViewResult((anchorSetup(element, {
|
|
60
|
+
buttonId,
|
|
61
|
+
anchor,
|
|
62
|
+
interceptTab: false,
|
|
63
|
+
})), "@foldkit/ui/tooltip/tooltip.js#anonymous~2")), cleanup => __foldkitBrandViewResult((Effect.sync(cleanup)), "@foldkit/ui/tooltip/tooltip.js#anonymous~3"));
|
|
64
|
+
return __foldkitBrandViewResult((Message.CompletedAnchorTooltip()), "@foldkit/ui/tooltip/tooltip.js#anonymous");
|
|
65
|
+
})), "@foldkit/ui/tooltip/tooltip.js#execute~2"),
|
|
66
|
+
});
|
|
63
67
|
const computeUpdate = (model, message) => __foldkitBrandViewResult((Message.match(message, {
|
|
64
68
|
EnteredTrigger: () => {
|
|
65
69
|
if (model.isOpen || model.isDismissed) {
|
|
@@ -164,7 +168,7 @@ export const update = (model, message) => {
|
|
|
164
168
|
/** Reflects an externally-sourced hover show-delay onto the Model without
|
|
165
169
|
* emitting an OutMessage. Use to mirror an external config value (a user
|
|
166
170
|
* preference, a restored setting) onto the tooltip. */
|
|
167
|
-
export const reflectShowDelay = Function.dual(2, (model, showDelay) => __foldkitBrandViewResult((evo(model, { showDelay: () => __foldkitBrandViewResult((Duration.fromInputUnsafe(showDelay)), "@foldkit/ui/tooltip/tooltip.js#showDelay") })), "@foldkit/ui/tooltip/tooltip.js#anonymous~
|
|
171
|
+
export const reflectShowDelay = Function.dual(2, (model, showDelay) => __foldkitBrandViewResult((evo(model, { showDelay: () => __foldkitBrandViewResult((Duration.fromInputUnsafe(showDelay)), "@foldkit/ui/tooltip/tooltip.js#showDelay") })), "@foldkit/ui/tooltip/tooltip.js#anonymous~4"));
|
|
168
172
|
/** Renders a headless tooltip with an anchored non-interactive panel.
|
|
169
173
|
* Shows on hover (after delay) or focus (from keyboard, touch, or pen;
|
|
170
174
|
* mouse-click focus is excluded). Hides on leave, blur, or Escape. */
|
|
@@ -183,7 +187,7 @@ export const view = defineView((model, viewInputs, h) => {
|
|
|
183
187
|
}
|
|
184
188
|
};
|
|
185
189
|
const triggerLabelAttributes = resolveTriggerLabel();
|
|
186
|
-
const handleTriggerKeyDown = (key) => __foldkitBrandViewResult((M.value(key).pipe(M.when('Escape', () => __foldkitBrandViewResult((OptionExt.when(isOpen, Message.PressedEscape())), "@foldkit/ui/tooltip/tooltip.js#anonymous~
|
|
190
|
+
const handleTriggerKeyDown = (key) => __foldkitBrandViewResult((M.value(key).pipe(M.when('Escape', () => __foldkitBrandViewResult((OptionExt.when(isOpen, Message.PressedEscape())), "@foldkit/ui/tooltip/tooltip.js#anonymous~6")), M.orElse(() => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/tooltip/tooltip.js#anonymous~7")))), "@foldkit/ui/tooltip/tooltip.js#handleTriggerKeyDown");
|
|
187
191
|
const handleTriggerPointerDown = (pointerType) => __foldkitBrandViewResult((Option.some(Message.PressedPointerOnTrigger({ pointerType }))), "@foldkit/ui/tooltip/tooltip.js#handleTriggerPointerDown");
|
|
188
192
|
const triggerAttributes = [
|
|
189
193
|
h.Id(triggerId(id)),
|
|
@@ -218,5 +222,5 @@ export const view = defineView((model, viewInputs, h) => {
|
|
|
218
222
|
trigger: childAttributes(triggerAttributes),
|
|
219
223
|
panel: childAttributes(panelAttributes),
|
|
220
224
|
isVisible: isOpen,
|
|
221
|
-
})), "@foldkit/ui/tooltip/tooltip.js#anonymous~
|
|
225
|
+
})), "@foldkit/ui/tooltip/tooltip.js#anonymous~5");
|
|
222
226
|
});
|
package/dist/typeahead.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeahead.d.ts","sourceRoot":"","sources":["../src/typeahead.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,MAAM,EAAuB,MAAM,QAAQ,CAAA;AAI3D,oOAAoO;AACpO,eAAO,MAAM,qBAAqB,GAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"typeahead.d.ts","sourceRoot":"","sources":["../src/typeahead.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,MAAM,EAAuB,MAAM,QAAQ,CAAA;AAI3D,oOAAoO;AACpO,eAAO,MAAM,qBAAqB,GAAI,IAAI,SACjC,aAAa,CAAC,IAAI,CAAC,SACnB,MAAM,wBACS,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,cAC/B,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,oBACpB,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,gBACzC,OAAO,KACpB,MAAM,CAAC,MAAM,CAAC,MAAM,CA4BtB,CAAA"}
|
|
@@ -13,14 +13,14 @@ export declare const Model: S.Struct<{
|
|
|
13
13
|
readonly measurement: import("foldkit/schema").TaggedUnion<{
|
|
14
14
|
readonly Unmeasured: {};
|
|
15
15
|
readonly Measured: {
|
|
16
|
-
|
|
16
|
+
containerHeight: S.Number;
|
|
17
17
|
};
|
|
18
18
|
}>;
|
|
19
19
|
readonly pendingScroll: import("foldkit/schema").TaggedUnion<{
|
|
20
20
|
readonly Idle: {};
|
|
21
21
|
readonly ScrollingToIndex: {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
index: S.Number;
|
|
23
|
+
version: S.Number;
|
|
24
24
|
};
|
|
25
25
|
}>;
|
|
26
26
|
readonly pendingScrollVersion: S.Number;
|
|
@@ -29,13 +29,13 @@ export type Model = typeof Model.Type;
|
|
|
29
29
|
/** Union of all messages the virtual list component can produce. */
|
|
30
30
|
export declare const Message: import("foldkit/message").MessageUnion<{
|
|
31
31
|
readonly ScrolledContainer: {
|
|
32
|
-
|
|
32
|
+
scrollTop: S.Number;
|
|
33
33
|
};
|
|
34
34
|
readonly MeasuredContainer: {
|
|
35
|
-
|
|
35
|
+
containerHeight: S.Number;
|
|
36
36
|
};
|
|
37
37
|
readonly CompletedApplyScroll: {
|
|
38
|
-
|
|
38
|
+
version: S.Number;
|
|
39
39
|
};
|
|
40
40
|
}>;
|
|
41
41
|
export type ScrolledContainer = typeof Message.ScrolledContainer.Type;
|
|
@@ -66,10 +66,10 @@ export declare const update: (model: Model, message: Message) => Readonly<{
|
|
|
66
66
|
readonly rowHeightPx: number;
|
|
67
67
|
readonly scrollTop: number;
|
|
68
68
|
readonly measurement: {
|
|
69
|
-
readonly _tag: "Unmeasured";
|
|
70
|
-
} | {
|
|
71
69
|
readonly _tag: "Measured";
|
|
72
70
|
readonly containerHeight: number;
|
|
71
|
+
} | {
|
|
72
|
+
readonly _tag: "Unmeasured";
|
|
73
73
|
};
|
|
74
74
|
readonly pendingScroll: {
|
|
75
75
|
readonly _tag: "Idle";
|
|
@@ -174,10 +174,10 @@ export declare const subscriptions: {
|
|
|
174
174
|
readonly rowHeightPx: number;
|
|
175
175
|
readonly scrollTop: number;
|
|
176
176
|
readonly measurement: {
|
|
177
|
-
readonly _tag: "Unmeasured";
|
|
178
|
-
} | {
|
|
179
177
|
readonly _tag: "Measured";
|
|
180
178
|
readonly containerHeight: number;
|
|
179
|
+
} | {
|
|
180
|
+
readonly _tag: "Unmeasured";
|
|
181
181
|
};
|
|
182
182
|
readonly pendingScroll: {
|
|
183
183
|
readonly _tag: "Idle";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/virtualList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/virtualList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EAEN,MAAM,EAEN,MAAM,IAAI,CAAC,EAGZ,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAA;AAC1C,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,IAAI,EACT,KAAK,OAAO,EAEb,MAAM,cAAc,CAAA;AAIrB,OAAO,EAAE,KAAK,IAAI,IAAI,YAAY,EAAc,MAAM,kBAAkB,CAAA;AACxE,OAAO,KAAK,YAAY,MAAM,sBAAsB,CAAA;AAsBpD;0DAC0D;AAC1D,eAAO,MAAM,KAAK;;;;;;;YAXJ,eAAe;;;;;;YAMP,KAAK;YAAY,OAAO;;;;EAY5C,CAAA;AAEF,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAC,IAAI,CAAA;AAIrC,oEAAoE;AACpE,eAAO,MAAM,OAAO;;QACG,SAAS;;;QACT,eAAe;;;QACZ,OAAO;;EAC/B,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,OAAO,OAAO,CAAC,iBAAiB,CAAC,IAAI,CAAA;AACrE,MAAM,MAAM,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|
|
2
|
+
import { Array, Effect, Number, Option, Queue, Schema as S, Stream, pipe, } from 'effect';
|
|
3
3
|
import * as Command from 'foldkit/command';
|
|
4
4
|
import { childAttributes, } from 'foldkit/html';
|
|
5
5
|
import { defineMessageUnion } from 'foldkit/message';
|
|
@@ -177,7 +177,7 @@ const lastOrZero = (values) => __foldkitBrandViewResult((pipe(values, Array.last
|
|
|
177
177
|
* Returns `Option.none()` when the container has not yet been measured;
|
|
178
178
|
* callers should render a placeholder (or `Html.empty`) and wait for the
|
|
179
179
|
* first `MeasuredContainer` message. */
|
|
180
|
-
export const visibleWindow = (model, itemCount, overscan) => __foldkitBrandViewResult((
|
|
180
|
+
export const visibleWindow = (model, itemCount, overscan) => __foldkitBrandViewResult((Measurement.match(model.measurement, {
|
|
181
181
|
Unmeasured: () => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/virtualList/index.js#Unmeasured"),
|
|
182
182
|
Measured: ({ containerHeight }) => {
|
|
183
183
|
const firstVisibleIndex = Math.floor(model.scrollTop / model.rowHeightPx);
|
|
@@ -193,7 +193,7 @@ export const visibleWindow = (model, itemCount, overscan) => __foldkitBrandViewR
|
|
|
193
193
|
bottomSpacerHeight,
|
|
194
194
|
})), "@foldkit/ui/virtualList/index.js#Measured");
|
|
195
195
|
},
|
|
196
|
-
}))
|
|
196
|
+
})), "@foldkit/ui/virtualList/index.js#visibleWindow");
|
|
197
197
|
/** Variable-height counterpart of `visibleWindow`. Walks the heights of every
|
|
198
198
|
* item to build a prefix-sum array, then locates the visible slice with two
|
|
199
199
|
* linear searches.
|
|
@@ -205,7 +205,7 @@ export const visibleWindow = (model, itemCount, overscan) => __foldkitBrandViewR
|
|
|
205
205
|
* return shape so consumers don't have to know.
|
|
206
206
|
*
|
|
207
207
|
* Returns `Option.none()` when the container has not yet been measured. */
|
|
208
|
-
export const visibleWindowVariable = (model, items, itemToRowHeightPx, overscan) => __foldkitBrandViewResult((
|
|
208
|
+
export const visibleWindowVariable = (model, items, itemToRowHeightPx, overscan) => __foldkitBrandViewResult((Measurement.match(model.measurement, {
|
|
209
209
|
Unmeasured: () => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/virtualList/index.js#Unmeasured~2"),
|
|
210
210
|
Measured: ({ containerHeight }) => {
|
|
211
211
|
const itemCount = items.length;
|
|
@@ -228,7 +228,7 @@ export const visibleWindowVariable = (model, items, itemToRowHeightPx, overscan)
|
|
|
228
228
|
bottomSpacerHeight,
|
|
229
229
|
})), "@foldkit/ui/virtualList/index.js#Measured~2");
|
|
230
230
|
},
|
|
231
|
-
}))
|
|
231
|
+
})), "@foldkit/ui/virtualList/index.js#visibleWindowVariable");
|
|
232
232
|
// SUBSCRIPTION
|
|
233
233
|
const containerElement = (id) => __foldkitBrandViewResult((Option.fromNullishOr(document.getElementById(id))), "@foldkit/ui/virtualList/index.js#containerElement");
|
|
234
234
|
/** Subscriptions that track the container's scroll position and size.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foldkit/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.155.0",
|
|
4
4
|
"description": "Headless, accessible UI components for Foldkit",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -59,6 +59,10 @@
|
|
|
59
59
|
"types": "./dist/fileDrop/public.d.ts",
|
|
60
60
|
"import": "./dist/fileDrop/public.js"
|
|
61
61
|
},
|
|
62
|
+
"./hoverIntent": {
|
|
63
|
+
"types": "./dist/hoverIntent/public.d.ts",
|
|
64
|
+
"import": "./dist/hoverIntent/public.js"
|
|
65
|
+
},
|
|
62
66
|
"./input": {
|
|
63
67
|
"types": "./dist/input/public.d.ts",
|
|
64
68
|
"import": "./dist/input/public.js"
|
|
@@ -118,21 +122,20 @@
|
|
|
118
122
|
],
|
|
119
123
|
"peerDependencies": {
|
|
120
124
|
"effect": "4.0.0-rc.112",
|
|
121
|
-
"foldkit": ">=0.
|
|
125
|
+
"foldkit": ">=0.155.0"
|
|
122
126
|
},
|
|
123
127
|
"dependencies": {
|
|
124
|
-
"@floating-ui/dom": "^1.
|
|
128
|
+
"@floating-ui/dom": "^1.8.0"
|
|
125
129
|
},
|
|
126
130
|
"devDependencies": {
|
|
127
131
|
"@effect/vitest": "4.0.0-rc.112",
|
|
128
132
|
"effect": "4.0.0-rc.112",
|
|
129
|
-
"happy-dom": "^20.
|
|
133
|
+
"happy-dom": "^20.11.13",
|
|
130
134
|
"rimraf": "^6.1.3",
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"foldkit": "0.
|
|
135
|
-
"@foldkit/vite-plugin": "0.19.0"
|
|
135
|
+
"typescript": "^7.0.2",
|
|
136
|
+
"vitest": "^4.1.11",
|
|
137
|
+
"@foldkit/vite-plugin": "0.20.0",
|
|
138
|
+
"foldkit": "0.155.0"
|
|
136
139
|
},
|
|
137
140
|
"keywords": [
|
|
138
141
|
"foldkit",
|
|
@@ -157,7 +160,6 @@
|
|
|
157
160
|
"scripts": {
|
|
158
161
|
"clean": "rimraf dist *.tsbuildinfo",
|
|
159
162
|
"build": "pnpm run clean && tsc -b tsconfig.build.json && node scripts/brand-dist.mjs",
|
|
160
|
-
"docs": "typedoc",
|
|
161
163
|
"watch": "tsc -b tsconfig.build.json --watch",
|
|
162
164
|
"lint": "pnpm --filter @foldkit/oxlint-plugin build && oxlint src",
|
|
163
165
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|