@bysages/svelte 0.2.3 → 0.3.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 +16 -2
- package/dist/{ai-BOUoSSjw.mjs → AiLoader-0jlig3fe.mjs} +2 -34
- package/dist/Input-CZhcEeFU.mjs +75 -0
- package/dist/{spinner-EpUWE3Hu.mjs → Spinner-sd__23WT.mjs} +1 -6
- package/dist/{TabsRoot-BMMO3B77.mjs → TabsRoot-DXd41HqW.mjs} +5 -1
- package/dist/{avatar-BHYqgq4d.mjs → avatar-LR0CZ1Iz.mjs} +5 -1
- package/dist/bento-BTvt7gsB.mjs +73 -0
- package/dist/block-ui-CpiV9qza.mjs +50 -0
- package/dist/browser-gmPTH6mJ.mjs +146 -0
- package/dist/{cascade-select-C-eBcN_4.mjs → cascade-select-B-4Z6oWe.mjs} +6 -6
- package/dist/components/ai/index.d.mts +3 -2
- package/dist/components/ai/index.mjs +27 -2
- package/dist/components/ai-action/index.d.mts +1 -1
- package/dist/components/ai-action/index.mjs +1 -1
- package/dist/components/ai-message/index.d.mts +1 -1
- package/dist/components/ai-message/index.mjs +1 -1
- package/dist/components/ai-prompt-input/index.d.mts +1 -1
- package/dist/components/ai-prompt-input/index.mjs +1 -1
- package/dist/components/ai-reasoning/index.d.mts +1 -1
- package/dist/components/ai-reasoning/index.mjs +1 -1
- package/dist/components/ai-response/index.d.mts +1 -1
- package/dist/components/ai-response/index.mjs +1 -1
- package/dist/components/ai-source/index.d.mts +1 -1
- package/dist/components/ai-source/index.mjs +1 -1
- package/dist/components/ai-suggestion/index.d.mts +1 -1
- package/dist/components/ai-suggestion/index.mjs +1 -1
- package/dist/components/ai-tool/index.d.mts +1 -1
- package/dist/components/ai-tool/index.mjs +1 -1
- package/dist/components/avatar/index.d.mts +1 -1
- package/dist/components/avatar/index.mjs +1 -1
- package/dist/components/bento/index.d.mts +2 -0
- package/dist/components/bento/index.mjs +2 -0
- package/dist/components/block-ui/index.d.mts +2 -0
- package/dist/components/block-ui/index.mjs +2 -0
- package/dist/components/browser/index.d.mts +9 -0
- package/dist/components/browser/index.mjs +2 -0
- package/dist/components/cascade-select/index.mjs +1 -1
- package/dist/components/data-view/index.d.mts +2 -0
- package/dist/components/data-view/index.mjs +2 -0
- package/dist/components/deferred-content/index.d.mts +2 -0
- package/dist/components/deferred-content/index.mjs +2 -0
- package/dist/components/descriptions/index.d.mts +1 -1
- package/dist/components/descriptions/index.mjs +1 -1
- package/dist/components/dock/index.d.mts +2 -0
- package/dist/components/dock/index.mjs +2 -0
- package/dist/components/form/index.d.mts +2 -2
- package/dist/components/form/index.mjs +2 -2
- package/dist/components/icon/index.d.mts +1 -1
- package/dist/components/icon/index.mjs +1 -1
- package/dist/components/input/index.d.mts +1 -1
- package/dist/components/input/index.mjs +1 -1
- package/dist/components/order-list/index.d.mts +2 -0
- package/dist/components/order-list/index.mjs +2 -0
- package/dist/components/result/index.d.mts +12 -0
- package/dist/components/result/index.mjs +2 -0
- package/dist/components/select/index.d.mts +2 -7
- package/dist/components/select/index.mjs +2 -14
- package/dist/components/spinner/index.mjs +6 -1
- package/dist/components/spotlight/index.d.mts +2 -0
- package/dist/components/spotlight/index.mjs +2 -0
- package/dist/components/table/index.mjs +1 -1
- package/dist/components/tabs/index.d.mts +1 -1
- package/dist/components/tabs/index.mjs +1 -1
- package/dist/components/terminal/index.d.mts +2 -0
- package/dist/components/terminal/index.mjs +2 -0
- package/dist/components/timeline/index.d.mts +1 -1
- package/dist/components/timeline/index.mjs +1 -1
- package/dist/components/toolbar/index.d.mts +2 -0
- package/dist/components/toolbar/index.mjs +2 -0
- package/dist/components/tree-select/index.mjs +1 -1
- package/dist/components/user/index.d.mts +2 -0
- package/dist/components/user/index.mjs +2 -0
- package/dist/components/virtual-list/index.d.mts +2 -0
- package/dist/components/virtual-list/index.mjs +2 -0
- package/dist/data-view-B3TY3rYl.mjs +167 -0
- package/dist/deferred-content-CO9YsKMQ.mjs +65 -0
- package/dist/{descriptions-Cv3x5qLW.mjs → descriptions-DgkA_9B-.mjs} +14 -8
- package/dist/dock-CKGRnXWu.mjs +84 -0
- package/dist/{form-De-ZwM1P.mjs → form-BTL9S1gn.mjs} +4 -4
- package/dist/{icon-B6_cYYzO.mjs → icon-D7AeDq0M.mjs} +7 -6
- package/dist/index-0k-VxNRm.d.mts +15 -0
- package/dist/{index-NJ21Q4f4.d.mts → index-BEfqqxjl.d.mts} +11 -1
- package/dist/index-BmFfkztS.d.mts +14 -0
- package/dist/{index-BgLAlGbg.d.mts → index-BoR_54C_.d.mts} +3 -0
- package/dist/index-BolxaoaW.d.mts +18 -0
- package/dist/index-CAb_-2Bn.d.mts +21 -0
- package/dist/{index-Cd5VU1DI.d.mts → index-CV1LSzq5.d.mts} +3 -0
- package/dist/index-CmskeLd_.d.mts +23 -0
- package/dist/index-CnrohEXe.d.mts +24 -0
- package/dist/{index-BjVEomHj.d.mts → index-CtbGSRNw.d.mts} +719 -3781
- package/dist/{index-Nt0a2iYy.d.mts → index-D1U7Svy2.d.mts} +2 -2
- package/dist/index-D6eYSdmD.d.mts +28 -0
- package/dist/index-D9UBDdoA.d.mts +17 -0
- package/dist/index-DBbjFiDd.d.mts +20 -0
- package/dist/index-DGOBhwXN.d.mts +18 -0
- package/dist/{index-DrXCIscJ.d.mts → index-DjaHpB21.d.mts} +3 -0
- package/dist/index-KoqiUxmN.d.mts +20 -0
- package/dist/{index-BnvnT-GQ.d.mts → index-_kQsvJKo.d.mts} +6 -2
- package/dist/index-mshFOd-j.d.mts +20 -0
- package/dist/index.d.mts +24 -10
- package/dist/index.mjs +26 -12
- package/dist/order-list-q7VlsbmU.mjs +120 -0
- package/dist/result-4Oee2ndu.mjs +159 -0
- package/dist/select-rkY0qJKI.mjs +95 -0
- package/dist/spotlight-DMC5E1eS.mjs +51 -0
- package/dist/{table-C0AcH5Dw.mjs → table-BnNK4_su.mjs} +1 -1
- package/dist/terminal-B3b4KzoN.mjs +78 -0
- package/dist/{timeline-BV4eahUx.mjs → timeline-1yPOTbtY.mjs} +4 -2
- package/dist/toolbar-SNwuRrJr.mjs +68 -0
- package/dist/{tree-select-aHymj8Zu.mjs → tree-select-BSf4a_En.mjs} +1 -1
- package/dist/user-BjJSjDYV.mjs +100 -0
- package/dist/virtual-list-psKQ_NVr.mjs +59 -0
- package/package.json +28 -7
- package/dist/Input-Biz4J1B6.mjs +0 -39
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { injectComponentStyle } from "@bysages/core";
|
|
2
|
+
import "svelte/internal/disclose-version";
|
|
3
|
+
import * as $ from "svelte/internal/client";
|
|
4
|
+
//#region src/components/dock/Dock.svelte
|
|
5
|
+
var rest_excludes$1 = /* @__PURE__ */ new Set([
|
|
6
|
+
"$$slots",
|
|
7
|
+
"$$events",
|
|
8
|
+
"$$legacy",
|
|
9
|
+
"maxScale",
|
|
10
|
+
"radius",
|
|
11
|
+
"children"
|
|
12
|
+
]);
|
|
13
|
+
var root$1 = $.from_html(`<div><!></div>`);
|
|
14
|
+
function Dock$1($$anchor, $$props) {
|
|
15
|
+
$.push($$props, true);
|
|
16
|
+
injectComponentStyle("dock");
|
|
17
|
+
/** The tallest an item swells under the hand — 1 stands still. */
|
|
18
|
+
/** How far the hand reaches, in px, before an item stops answering. */
|
|
19
|
+
let maxScale = $.prop($$props, "maxScale", 3, 1.5), radius = $.prop($$props, "radius", 3, 96), rest = $.rest_props($$props, rest_excludes$1);
|
|
20
|
+
const ITEM = "[data-scope=\"dock\"][data-part=\"item\"]";
|
|
21
|
+
function magnify(event) {
|
|
22
|
+
for (const item of event.currentTarget.querySelectorAll(ITEM)) {
|
|
23
|
+
const rect = item.getBoundingClientRect();
|
|
24
|
+
const dist = Math.abs(event.clientX - (rect.left + rect.width / 2));
|
|
25
|
+
const t = Math.max(0, 1 - dist / radius());
|
|
26
|
+
item.style.setProperty("--bs-dock-scale", (1 + (maxScale() - 1) * t * t).toFixed(4));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function reset(event) {
|
|
30
|
+
for (const item of event.currentTarget.querySelectorAll(ITEM)) item.style.removeProperty("--bs-dock-scale");
|
|
31
|
+
}
|
|
32
|
+
var div = root$1();
|
|
33
|
+
$.attribute_effect(div, ($0) => ({
|
|
34
|
+
...rest,
|
|
35
|
+
"data-scope": "dock",
|
|
36
|
+
"data-part": "root",
|
|
37
|
+
style: $0,
|
|
38
|
+
onpointermove: magnify,
|
|
39
|
+
onpointerleave: reset
|
|
40
|
+
}), [() => ({
|
|
41
|
+
...$$props.style,
|
|
42
|
+
"--bs-dock-max-scale": String(maxScale())
|
|
43
|
+
})]);
|
|
44
|
+
var node = $.child(div);
|
|
45
|
+
$.snippet(node, () => $$props.children ?? $.noop);
|
|
46
|
+
$.reset(div);
|
|
47
|
+
$.append($$anchor, div);
|
|
48
|
+
$.pop();
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/components/dock/DockItem.svelte
|
|
52
|
+
var rest_excludes = /* @__PURE__ */ new Set([
|
|
53
|
+
"$$slots",
|
|
54
|
+
"$$events",
|
|
55
|
+
"$$legacy",
|
|
56
|
+
"children"
|
|
57
|
+
]);
|
|
58
|
+
var root = $.from_html(`<div><!></div>`);
|
|
59
|
+
function DockItem($$anchor, $$props) {
|
|
60
|
+
$.push($$props, true);
|
|
61
|
+
injectComponentStyle("dock");
|
|
62
|
+
let rest = $.rest_props($$props, rest_excludes);
|
|
63
|
+
var div = root();
|
|
64
|
+
$.attribute_effect(div, () => ({
|
|
65
|
+
...rest,
|
|
66
|
+
"data-scope": "dock",
|
|
67
|
+
"data-part": "item"
|
|
68
|
+
}));
|
|
69
|
+
var node = $.child(div);
|
|
70
|
+
$.snippet(node, () => $$props.children ?? $.noop);
|
|
71
|
+
$.reset(div);
|
|
72
|
+
$.append($$anchor, div);
|
|
73
|
+
$.pop();
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region src/components/dock/index.ts
|
|
77
|
+
/** The magnifying dock: a floating rail whose icons swell toward the
|
|
78
|
+
* hand — Dock, Dock.Item. */
|
|
79
|
+
const Dock = Object.assign(Dock$1, {
|
|
80
|
+
Root: Dock$1,
|
|
81
|
+
Item: DockItem
|
|
82
|
+
});
|
|
83
|
+
//#endregion
|
|
84
|
+
export { Dock as t };
|
|
@@ -3,14 +3,14 @@ import "svelte/internal/disclose-version";
|
|
|
3
3
|
import * as $ from "svelte/internal/client";
|
|
4
4
|
import { Field } from "@ark-ui/svelte/field";
|
|
5
5
|
import { getContext, setContext } from "svelte";
|
|
6
|
-
import { createField, createForm } from "@tanstack/svelte-form";
|
|
6
|
+
import { createField, createField as useField, createForm, createForm as useForm } from "@tanstack/svelte-form";
|
|
7
7
|
//#region src/components/form/context.ts
|
|
8
8
|
const FORM_KEY = Symbol("bysages-form");
|
|
9
9
|
function provideForm(engine) {
|
|
10
10
|
setContext(FORM_KEY, engine);
|
|
11
11
|
return engine;
|
|
12
12
|
}
|
|
13
|
-
function useForm() {
|
|
13
|
+
function useForm$1() {
|
|
14
14
|
return getContext(FORM_KEY) ?? null;
|
|
15
15
|
}
|
|
16
16
|
//#endregion
|
|
@@ -163,7 +163,7 @@ function FormField$1($$anchor, $$props) {
|
|
|
163
163
|
};
|
|
164
164
|
injectComponentStyle("form");
|
|
165
165
|
let required = $.prop($$props, "required", 3, false), invalid = $.prop($$props, "invalid", 3, false), disabled = $.prop($$props, "disabled", 3, false), rest = $.rest_props($$props, rest_excludes);
|
|
166
|
-
const engine = $$props.form ?? useForm();
|
|
166
|
+
const engine = $$props.form ?? useForm$1();
|
|
167
167
|
function errorText(error) {
|
|
168
168
|
if (error == null) return "";
|
|
169
169
|
if (typeof error === "string") return error;
|
|
@@ -209,4 +209,4 @@ const Form = Form$1;
|
|
|
209
209
|
const FormField = FormField$1;
|
|
210
210
|
injectComponentStyle("field");
|
|
211
211
|
//#endregion
|
|
212
|
-
export { createForm as i, FormField as n, createField as r, Form as t };
|
|
212
|
+
export { useField as a, createForm as i, FormField as n, useForm as o, createField as r, Form as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { injectComponentStyle } from "@bysages/core";
|
|
2
2
|
import "svelte/internal/disclose-version";
|
|
3
3
|
import * as $ from "svelte/internal/client";
|
|
4
|
-
import { getIcon } from "@bysages/icons";
|
|
4
|
+
import { getIcon } from "@bysages/core/icons";
|
|
5
5
|
//#region src/components/icon/Icon.svelte
|
|
6
6
|
var rest_excludes = /* @__PURE__ */ new Set([
|
|
7
7
|
"$$slots",
|
|
@@ -9,6 +9,7 @@ var rest_excludes = /* @__PURE__ */ new Set([
|
|
|
9
9
|
"$$legacy",
|
|
10
10
|
"size",
|
|
11
11
|
"label",
|
|
12
|
+
"glyph",
|
|
12
13
|
"name",
|
|
13
14
|
"children"
|
|
14
15
|
]);
|
|
@@ -18,8 +19,8 @@ function Icon$1($$anchor, $$props) {
|
|
|
18
19
|
$.push($$props, true);
|
|
19
20
|
injectComponentStyle("icon");
|
|
20
21
|
let size = $.prop($$props, "size", 3, "inherit"), rest = $.rest_props($$props, rest_excludes);
|
|
21
|
-
const
|
|
22
|
-
if ($$props.name && $$props.children == null && !
|
|
22
|
+
const resolved = $$props.glyph ?? ($$props.name && $$props.children == null ? getIcon($$props.name) : void 0);
|
|
23
|
+
if ($$props.name && $$props.children == null && $$props.glyph == null && !resolved) console.error(`[icons] unknown icon name "${$$props.name}" — not in the wrappers' whitelist; import the glyph from @bysages/icons and pass it as glyph`);
|
|
23
24
|
var span = root_1();
|
|
24
25
|
$.attribute_effect(span, () => ({
|
|
25
26
|
...rest,
|
|
@@ -39,14 +40,14 @@ function Icon$1($$anchor, $$props) {
|
|
|
39
40
|
};
|
|
40
41
|
var consequent_1 = ($$anchor) => {
|
|
41
42
|
var svg = root();
|
|
42
|
-
$.html(svg, () =>
|
|
43
|
+
$.html(svg, () => resolved.body, true);
|
|
43
44
|
$.reset(svg);
|
|
44
|
-
$.template_effect(() => $.set_attribute(svg, "viewBox", `0 0 ${
|
|
45
|
+
$.template_effect(() => $.set_attribute(svg, "viewBox", `0 0 ${resolved.width ?? 24 ?? ""} ${resolved.height ?? 24 ?? ""}`));
|
|
45
46
|
$.append($$anchor, svg);
|
|
46
47
|
};
|
|
47
48
|
$.if(node, ($$render) => {
|
|
48
49
|
if ($$props.children) $$render(consequent);
|
|
49
|
-
else if (
|
|
50
|
+
else if (resolved) $$render(consequent_1, 1);
|
|
50
51
|
});
|
|
51
52
|
$.reset(span);
|
|
52
53
|
$.append($$anchor, span);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HTMLAttributes } from "svelte/elements";
|
|
2
|
+
//#region src/components/spotlight/props.d.ts
|
|
3
|
+
interface SpotlightProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/** How far the lamp throws before the ink swallows it. */
|
|
5
|
+
radius?: string;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/components/spotlight/index.d.ts
|
|
9
|
+
/** The ink-light card: a vessel whose rim and face take light from the
|
|
10
|
+
* reader's hand. */
|
|
11
|
+
declare const Spotlight: import("svelte").Component<import("svelte/elements").HTMLAttributes<HTMLDivElement> & {
|
|
12
|
+
radius?: string;
|
|
13
|
+
}, {}, "">;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { SpotlightProps as n, Spotlight as t };
|
|
@@ -5,6 +5,16 @@ interface DescriptionsRootProps extends HTMLAttributes<HTMLDListElement> {
|
|
|
5
5
|
/** The horizontal layout reads as a table of two columns; the
|
|
6
6
|
* vertical one stacks each pair for narrow measures. */
|
|
7
7
|
layout?: "horizontal" | "vertical";
|
|
8
|
+
/** The framed register: one hairline round the whole, terms on
|
|
9
|
+
* inset paper. */
|
|
10
|
+
bordered?: boolean;
|
|
11
|
+
/** Pairs across the grid: one ledger per column. */
|
|
12
|
+
column?: number;
|
|
13
|
+
children?: Snippet;
|
|
14
|
+
}
|
|
15
|
+
interface DescriptionsItemProps extends HTMLAttributes<HTMLElement> {
|
|
16
|
+
/** Column pairs this entry stretches across. */
|
|
17
|
+
span?: number;
|
|
8
18
|
children?: Snippet;
|
|
9
19
|
}
|
|
10
20
|
interface DescriptionsPartProps extends HTMLAttributes<HTMLElement> {
|
|
@@ -17,7 +27,7 @@ interface DescriptionsPartProps extends HTMLAttributes<HTMLElement> {
|
|
|
17
27
|
* stacks each pair for narrow measures. */
|
|
18
28
|
declare const Descriptions: import("svelte").Component<DescriptionsRootProps, {}, ""> & {
|
|
19
29
|
Root: import("svelte").Component<DescriptionsRootProps, {}, "">;
|
|
20
|
-
Item: import("svelte").Component<
|
|
30
|
+
Item: import("svelte").Component<DescriptionsItemProps, {}, "">;
|
|
21
31
|
Term: import("svelte").Component<DescriptionsPartProps, {}, "">;
|
|
22
32
|
Detail: import("svelte").Component<DescriptionsPartProps, {}, "">;
|
|
23
33
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HTMLAttributes } from "svelte/elements";
|
|
2
|
+
//#region src/components/block-ui/props.d.ts
|
|
3
|
+
interface BlockUIProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/** Whether the curtain is drawn. */
|
|
5
|
+
blocked?: boolean;
|
|
6
|
+
children?: import("svelte").Snippet;
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/components/block-ui/index.d.ts
|
|
10
|
+
/** A curtain over content that must wait: frosted paper and one
|
|
11
|
+
* quiet wheel. */
|
|
12
|
+
declare const BlockUI: import("svelte").Component<BlockUIProps, {}, "">;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { BlockUIProps as n, BlockUI as t };
|
|
@@ -2,6 +2,9 @@ import { Snippet } from "svelte";
|
|
|
2
2
|
import { HTMLAttributes } from "svelte/elements";
|
|
3
3
|
//#region src/components/timeline/props.d.ts
|
|
4
4
|
interface TimelineProps extends HTMLAttributes<HTMLOListElement> {
|
|
5
|
+
/** The thread's direction: a vertical line of moments, or one
|
|
6
|
+
* running left to right. */
|
|
7
|
+
orientation?: "vertical" | "horizontal";
|
|
5
8
|
children?: Snippet;
|
|
6
9
|
}
|
|
7
10
|
interface TimelineItemProps extends HTMLAttributes<HTMLLIElement> {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Snippet } from "svelte";
|
|
2
|
+
import { HTMLAttributes } from "svelte/elements";
|
|
3
|
+
//#region src/components/deferred-content/props.d.ts
|
|
4
|
+
interface DeferredContentProps extends Omit<HTMLAttributes<HTMLDivElement>, "placeholder"> {
|
|
5
|
+
/** How much of the placeholder must be visible before the content
|
|
6
|
+
* mounts, from 0 (any pixel) to 1 (the whole box). */
|
|
7
|
+
threshold?: number;
|
|
8
|
+
/** Drawn until the box approaches the viewport. */
|
|
9
|
+
placeholder?: Snippet;
|
|
10
|
+
children?: Snippet;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/deferred-content/index.d.ts
|
|
14
|
+
/** Content that waits to be worth rendering: the slot mounts when the
|
|
15
|
+
* placeholder approaches the viewport. */
|
|
16
|
+
declare const DeferredContent: import("svelte").Component<DeferredContentProps, {}, "">;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { DeferredContentProps as n, DeferredContent as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { HTMLAttributes } from "svelte/elements";
|
|
2
|
+
//#region src/components/order-list/props.d.ts
|
|
3
|
+
interface OrderOption {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
interface OrderListProps extends HTMLAttributes<HTMLDivElement> {
|
|
8
|
+
/** Two-way bindable — the rows in their current order; the value is
|
|
9
|
+
* the order. */
|
|
10
|
+
value?: string[];
|
|
11
|
+
/** Every row the ledger knows, in no particular order. */
|
|
12
|
+
options: OrderOption[];
|
|
13
|
+
label?: string;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/order-list/index.d.ts
|
|
17
|
+
/** A ledger the reader may rewrite: rows move by grip or by the side
|
|
18
|
+
* arrows; the value is the order. */
|
|
19
|
+
declare const OrderList: import("svelte").Component<OrderListProps, {}, "value">;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { OrderListProps as n, OrderOption as r, OrderList as t };
|
|
@@ -6,6 +6,9 @@ interface AvatarProps {
|
|
|
6
6
|
* default (large) stands as tall as the biggest control so an avatar
|
|
7
7
|
* rides a row without stretching it. */
|
|
8
8
|
size?: AvatarSize;
|
|
9
|
+
/** The corner: round by default; square cuts it sharp, a stamp
|
|
10
|
+
* beside a round portrait. */
|
|
11
|
+
shape?: "circle" | "square";
|
|
9
12
|
children?: import("svelte").Snippet;
|
|
10
13
|
}
|
|
11
14
|
//#endregion
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { HTMLAttributes } from "svelte/elements";
|
|
2
|
+
//#region src/components/bento/props.d.ts
|
|
3
|
+
interface BentoProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/** Tracks across the lattice. */
|
|
5
|
+
columns?: number;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/components/bento/index.d.ts
|
|
9
|
+
/** The bento lattice: a grid of unequal tiles that reads as one plate
|
|
10
|
+
* — Bento, Bento.Cell. */
|
|
11
|
+
declare const Bento: import("svelte").Component<import("svelte/elements").HTMLAttributes<HTMLDivElement> & {
|
|
12
|
+
columns?: number;
|
|
13
|
+
}, {}, ""> & {
|
|
14
|
+
Root: import("svelte").Component<import("svelte/elements").HTMLAttributes<HTMLDivElement> & {
|
|
15
|
+
columns?: number;
|
|
16
|
+
}, {}, "">;
|
|
17
|
+
Cell: import("svelte").Component<import("svelte/elements").HTMLAttributes<HTMLDivElement> & {
|
|
18
|
+
span?: number;
|
|
19
|
+
rowSpan?: number;
|
|
20
|
+
}, {}, "">;
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { BentoProps as n, Bento as t };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { HTMLAttributes } from "svelte/elements";
|
|
2
|
+
//#region src/components/dock/props.d.ts
|
|
3
|
+
interface DockProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/** The tallest an item swells under the hand — 1 stands still. */
|
|
5
|
+
maxScale?: number;
|
|
6
|
+
/** How far the hand reaches, in px, before an item stops answering. */
|
|
7
|
+
radius?: number;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/components/dock/index.d.ts
|
|
11
|
+
/** The magnifying dock: a floating rail whose icons swell toward the
|
|
12
|
+
* hand — Dock, Dock.Item. */
|
|
13
|
+
declare const Dock: import("svelte").Component<import("svelte/elements").HTMLAttributes<HTMLDivElement> & {
|
|
14
|
+
maxScale?: number;
|
|
15
|
+
radius?: number;
|
|
16
|
+
}, {}, ""> & {
|
|
17
|
+
Root: import("svelte").Component<import("svelte/elements").HTMLAttributes<HTMLDivElement> & {
|
|
18
|
+
maxScale?: number;
|
|
19
|
+
radius?: number;
|
|
20
|
+
}, {}, "">;
|
|
21
|
+
Item: import("svelte").Component<import("svelte/elements").HTMLAttributes<HTMLDivElement>, {}, "">;
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
24
|
+
export { DockProps as n, Dock as t };
|