@xerios/design-system 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/README.md +403 -2
- package/dist/components/AnchorHeading.svelte +79 -0
- package/dist/components/AnchorHeading.svelte.d.ts +28 -0
- package/dist/components/Breadcrumbs.svelte +216 -0
- package/dist/components/Breadcrumbs.svelte.d.ts +37 -0
- package/dist/components/Button.svelte +185 -0
- package/dist/components/Button.svelte.d.ts +70 -0
- package/dist/components/Canvas.svelte +248 -0
- package/dist/components/Canvas.svelte.d.ts +91 -0
- package/dist/components/Collapsible.svelte +139 -0
- package/dist/components/Collapsible.svelte.d.ts +52 -0
- package/dist/components/CollapsibleAdvanced.svelte +174 -0
- package/dist/components/CollapsibleAdvanced.svelte.d.ts +43 -0
- package/dist/components/DashOutline.svelte +47 -0
- package/dist/components/DashOutline.svelte.d.ts +6 -0
- package/dist/components/Dialogs.svelte +123 -0
- package/dist/components/Dialogs.svelte.d.ts +6 -0
- package/dist/components/Drawer.svelte +231 -0
- package/dist/components/Drawer.svelte.d.ts +62 -0
- package/dist/components/ErrorMessage.svelte +140 -0
- package/dist/components/ErrorMessage.svelte.d.ts +41 -0
- package/dist/components/Icon.svelte +94 -0
- package/dist/components/Icon.svelte.d.ts +33 -0
- package/dist/components/InfoTip.svelte +183 -0
- package/dist/components/InfoTip.svelte.d.ts +28 -0
- package/dist/components/Md.svelte +28 -0
- package/dist/components/Md.svelte.d.ts +11 -0
- package/dist/components/Modal.svelte +91 -0
- package/dist/components/Modal.svelte.d.ts +41 -0
- package/dist/components/Notice.svelte +50 -0
- package/dist/components/Notice.svelte.d.ts +30 -0
- package/dist/components/Popover.svelte +212 -0
- package/dist/components/Popover.svelte.d.ts +70 -0
- package/dist/components/Shimmer.svelte +27 -0
- package/dist/components/Shimmer.svelte.d.ts +22 -0
- package/dist/components/Splitter.svelte +152 -0
- package/dist/components/Splitter.svelte.d.ts +41 -0
- package/dist/components/Table.svelte +448 -0
- package/dist/components/Table.svelte.d.ts +268 -0
- package/dist/components/Toast.svelte +273 -0
- package/dist/components/Toast.svelte.d.ts +31 -0
- package/dist/components/Tooltip.svelte +97 -0
- package/dist/components/Tooltip.svelte.d.ts +19 -0
- package/dist/components/WorkingBorder.svelte +105 -0
- package/dist/components/WorkingBorder.svelte.d.ts +26 -0
- package/dist/components/empty/Empty.svelte +55 -0
- package/dist/components/empty/Empty.svelte.d.ts +39 -0
- package/dist/components/empty/EmptyError.svelte +47 -0
- package/dist/components/empty/EmptyError.svelte.d.ts +28 -0
- package/dist/components/empty/index.d.ts +18 -0
- package/dist/components/empty/index.js +10 -0
- package/dist/components/filters/DateFilter.svelte +59 -0
- package/dist/components/filters/DateFilter.svelte.d.ts +23 -0
- package/dist/components/filters/FilterBar.svelte +401 -0
- package/dist/components/filters/FilterBar.svelte.d.ts +283 -0
- package/dist/components/filters/FilterChip.svelte +235 -0
- package/dist/components/filters/FilterChip.svelte.d.ts +68 -0
- package/dist/components/filters/OptionList.svelte +352 -0
- package/dist/components/filters/OptionList.svelte.d.ts +91 -0
- package/dist/components/filters/Panel.svelte +123 -0
- package/dist/components/filters/Panel.svelte.d.ts +25 -0
- package/dist/components/filters/index.d.ts +288 -0
- package/dist/components/filters/index.js +12 -0
- package/dist/components/icons.d.ts +54 -0
- package/dist/components/icons.js +58 -0
- package/dist/components/inputs/ButtonGroup.svelte +110 -0
- package/dist/components/inputs/ButtonGroup.svelte.d.ts +40 -0
- package/dist/components/inputs/Calendar.svelte +535 -0
- package/dist/components/inputs/Calendar.svelte.d.ts +45 -0
- package/dist/components/inputs/DateField.svelte +247 -0
- package/dist/components/inputs/DateField.svelte.d.ts +74 -0
- package/dist/components/inputs/DateInput.svelte +118 -0
- package/dist/components/inputs/DateInput.svelte.d.ts +43 -0
- package/dist/components/inputs/DatePicker.svelte +102 -0
- package/dist/components/inputs/DatePicker.svelte.d.ts +67 -0
- package/dist/components/inputs/DateRangePicker.svelte +208 -0
- package/dist/components/inputs/DateRangePicker.svelte.d.ts +76 -0
- package/dist/components/inputs/DateRangeSelect.svelte +548 -0
- package/dist/components/inputs/DateRangeSelect.svelte.d.ts +70 -0
- package/dist/components/inputs/FieldLabel.svelte +43 -0
- package/dist/components/inputs/FieldLabel.svelte.d.ts +28 -0
- package/dist/components/inputs/ListSearch.svelte +142 -0
- package/dist/components/inputs/ListSearch.svelte.d.ts +35 -0
- package/dist/components/inputs/RadioGroup.svelte +151 -0
- package/dist/components/inputs/RadioGroup.svelte.d.ts +49 -0
- package/dist/components/inputs/RangeShortcuts.svelte +90 -0
- package/dist/components/inputs/RangeShortcuts.svelte.d.ts +31 -0
- package/dist/components/inputs/RangeSlider.svelte +225 -0
- package/dist/components/inputs/RangeSlider.svelte.d.ts +37 -0
- package/dist/components/inputs/SearchField.svelte +24 -0
- package/dist/components/inputs/SearchField.svelte.d.ts +41 -0
- package/dist/components/inputs/Segmented.svelte +79 -0
- package/dist/components/inputs/Segmented.svelte.d.ts +43 -0
- package/dist/components/inputs/Select.svelte +552 -0
- package/dist/components/inputs/Select.svelte.d.ts +100 -0
- package/dist/components/inputs/Slider.svelte +177 -0
- package/dist/components/inputs/Slider.svelte.d.ts +33 -0
- package/dist/components/inputs/SliderTicks.svelte +62 -0
- package/dist/components/inputs/SliderTicks.svelte.d.ts +23 -0
- package/dist/components/inputs/Switch.svelte +120 -0
- package/dist/components/inputs/Switch.svelte.d.ts +31 -0
- package/dist/components/inputs/TagInput.svelte +296 -0
- package/dist/components/inputs/TagInput.svelte.d.ts +61 -0
- package/dist/components/inputs/TextArea.svelte +86 -0
- package/dist/components/inputs/TextArea.svelte.d.ts +56 -0
- package/dist/components/inputs/TextField.svelte +170 -0
- package/dist/components/inputs/TextField.svelte.d.ts +80 -0
- package/dist/components/menu/ContextMenu.svelte +25 -0
- package/dist/components/menu/ContextMenu.svelte.d.ts +26 -0
- package/dist/components/menu/MenuButton.svelte +46 -0
- package/dist/components/menu/MenuButton.svelte.d.ts +16 -0
- package/dist/components/menu/MenuList.svelte +319 -0
- package/dist/components/menu/MenuList.svelte.d.ts +30 -0
- package/dist/components/metadata/Metadata.svelte +38 -0
- package/dist/components/metadata/Metadata.svelte.d.ts +31 -0
- package/dist/components/metadata/MetadataRow.svelte +84 -0
- package/dist/components/metadata/MetadataRow.svelte.d.ts +26 -0
- package/dist/components/metadata/index.d.ts +8 -0
- package/dist/components/metadata/index.js +13 -0
- package/dist/components/side-menu/SideMenu.svelte +138 -0
- package/dist/components/side-menu/SideMenu.svelte.d.ts +25 -0
- package/dist/components/side-menu/SideMenuGroup.svelte +108 -0
- package/dist/components/side-menu/SideMenuGroup.svelte.d.ts +31 -0
- package/dist/components/side-menu/SideMenuItem.svelte +221 -0
- package/dist/components/side-menu/SideMenuItem.svelte.d.ts +46 -0
- package/dist/components/side-menu/context.d.ts +1 -0
- package/dist/components/side-menu/context.js +3 -0
- package/dist/components/side-menu/index.d.ts +62 -0
- package/dist/components/side-menu/index.js +15 -0
- package/dist/components/tiles/Tile.svelte +419 -0
- package/dist/components/tiles/Tile.svelte.d.ts +58 -0
- package/dist/components/tiles/TileGroup.svelte +135 -0
- package/dist/components/tiles/TileGroup.svelte.d.ts +45 -0
- package/dist/components/tiles/context.d.ts +35 -0
- package/dist/components/tiles/context.js +14 -0
- package/dist/components/tiles/index.d.ts +6 -0
- package/dist/components/tiles/index.js +13 -0
- package/dist/components/upload/FileCard.svelte +301 -0
- package/dist/components/upload/FileCard.svelte.d.ts +127 -0
- package/dist/components/upload/Thumb.svelte +274 -0
- package/dist/components/upload/Thumb.svelte.d.ts +101 -0
- package/dist/components/upload/UploadFile.svelte +123 -0
- package/dist/components/upload/UploadFile.svelte.d.ts +48 -0
- package/dist/components/upload/UploadFiles.svelte +177 -0
- package/dist/components/upload/UploadFiles.svelte.d.ts +50 -0
- package/dist/components/upload/UploadFolder.svelte +153 -0
- package/dist/components/upload/UploadFolder.svelte.d.ts +63 -0
- package/dist/components/upload/UploadImage.svelte +137 -0
- package/dist/components/upload/UploadImage.svelte.d.ts +52 -0
- package/dist/components/upload/UploadImages.svelte +172 -0
- package/dist/components/upload/UploadImages.svelte.d.ts +52 -0
- package/dist/components/upload/UploadZone.svelte +130 -0
- package/dist/components/upload/UploadZone.svelte.d.ts +41 -0
- package/dist/components/upload/common.d.ts +31 -0
- package/dist/components/upload/common.js +103 -0
- package/dist/components/upload/context.d.ts +18 -0
- package/dist/components/upload/context.js +10 -0
- package/dist/components/upload/index.d.ts +16 -0
- package/dist/components/upload/index.js +18 -0
- package/dist/css/atoms.css +899 -0
- package/dist/css/base.css +334 -0
- package/dist/css/effects.css +430 -0
- package/dist/css/index.css +10 -0
- package/dist/css/tokens.css +296 -0
- package/dist/fonts.d.ts +1 -0
- package/dist/fonts.js +7 -0
- package/dist/index.d.ts +68 -0
- package/dist/index.js +77 -0
- package/dist/lib/announce.d.ts +8 -0
- package/dist/lib/announce.js +48 -0
- package/dist/lib/controls.d.ts +10 -0
- package/dist/lib/controls.js +42 -0
- package/dist/lib/dates.d.ts +104 -0
- package/dist/lib/dates.js +235 -0
- package/dist/lib/dialogs.svelte.d.ts +8 -0
- package/dist/lib/dialogs.svelte.js +45 -0
- package/dist/lib/dom.d.ts +34 -0
- package/dist/lib/dom.js +90 -0
- package/dist/lib/field-errors.svelte.d.ts +40 -0
- package/dist/lib/field-errors.svelte.js +89 -0
- package/dist/lib/files.d.ts +74 -0
- package/dist/lib/files.js +215 -0
- package/dist/lib/inline-md.d.ts +1 -0
- package/dist/lib/inline-md.js +36 -0
- package/dist/lib/invalid.d.ts +4 -0
- package/dist/lib/invalid.js +35 -0
- package/dist/lib/list-search.d.ts +9 -0
- package/dist/lib/list-search.js +27 -0
- package/dist/lib/menu.svelte.d.ts +39 -0
- package/dist/lib/menu.svelte.js +98 -0
- package/dist/lib/morph.svelte.d.ts +17 -0
- package/dist/lib/morph.svelte.js +46 -0
- package/dist/lib/motion.d.ts +115 -0
- package/dist/lib/motion.js +174 -0
- package/dist/lib/observe.d.ts +36 -0
- package/dist/lib/observe.js +142 -0
- package/dist/lib/reveal.d.ts +7 -0
- package/dist/lib/reveal.js +28 -0
- package/dist/lib/roving.d.ts +16 -0
- package/dist/lib/roving.js +35 -0
- package/dist/lib/runs.d.ts +18 -0
- package/dist/lib/runs.js +25 -0
- package/dist/lib/scroll-fade.d.ts +4 -0
- package/dist/lib/scroll-fade.js +71 -0
- package/dist/lib/spotlight.d.ts +4 -0
- package/dist/lib/spotlight.js +109 -0
- package/dist/lib/ticks.d.ts +12 -0
- package/dist/lib/ticks.js +24 -0
- package/dist/lib/tooltip.d.ts +4 -0
- package/dist/lib/tooltip.js +110 -0
- package/dist/lib/validity.d.ts +16 -0
- package/dist/lib/validity.js +36 -0
- package/package.json +69 -3
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
export default Table;
|
|
2
|
+
type Table = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Omit<HTMLAttributes<HTMLDivElement>, keyof Props>>): void;
|
|
5
|
+
};
|
|
6
|
+
declare const Table: import("svelte").Component<{
|
|
7
|
+
columns: {
|
|
8
|
+
key: string;
|
|
9
|
+
label: string;
|
|
10
|
+
/**
|
|
11
|
+
* names the column in its sort tooltip when `label` is terse
|
|
12
|
+
*/
|
|
13
|
+
title?: string | undefined;
|
|
14
|
+
hideLabel?: boolean | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* cells are row headers (<th scope="row">)
|
|
17
|
+
*/
|
|
18
|
+
header?: boolean | undefined;
|
|
19
|
+
num?: boolean | undefined;
|
|
20
|
+
center?: boolean | undefined;
|
|
21
|
+
shrink?: boolean | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* sorts descending first
|
|
24
|
+
*/
|
|
25
|
+
desc?: boolean | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* makes the column sortable
|
|
28
|
+
*/
|
|
29
|
+
sortValue?: ((row: any) => string | number) | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* the cell's text when there is no `cell` snippet
|
|
32
|
+
*/
|
|
33
|
+
value?: ((row: any) => unknown) | undefined;
|
|
34
|
+
}[];
|
|
35
|
+
rows?: any[] | undefined;
|
|
36
|
+
groups?: {
|
|
37
|
+
key: string;
|
|
38
|
+
label: string;
|
|
39
|
+
rows: any[];
|
|
40
|
+
sub?: string | undefined;
|
|
41
|
+
tone?: string | undefined;
|
|
42
|
+
info?: {
|
|
43
|
+
label?: string;
|
|
44
|
+
text: string;
|
|
45
|
+
}[] | undefined;
|
|
46
|
+
}[] | null | undefined;
|
|
47
|
+
key: (row: any) => string | number;
|
|
48
|
+
cell?: import("svelte").Snippet<[any, {
|
|
49
|
+
key: string;
|
|
50
|
+
label: string;
|
|
51
|
+
/**
|
|
52
|
+
* names the column in its sort tooltip when `label` is terse
|
|
53
|
+
*/
|
|
54
|
+
title?: string | undefined;
|
|
55
|
+
hideLabel?: boolean | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* cells are row headers (<th scope="row">)
|
|
58
|
+
*/
|
|
59
|
+
header?: boolean | undefined;
|
|
60
|
+
num?: boolean | undefined;
|
|
61
|
+
center?: boolean | undefined;
|
|
62
|
+
shrink?: boolean | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* sorts descending first
|
|
65
|
+
*/
|
|
66
|
+
desc?: boolean | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* makes the column sortable
|
|
69
|
+
*/
|
|
70
|
+
sortValue?: ((row: any) => string | number) | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* the cell's text when there is no `cell` snippet
|
|
73
|
+
*/
|
|
74
|
+
value?: ((row: any) => unknown) | undefined;
|
|
75
|
+
}]> | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* bindable
|
|
78
|
+
*/
|
|
79
|
+
sort?: {
|
|
80
|
+
key: string;
|
|
81
|
+
dir: number;
|
|
82
|
+
} | null | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* bindable
|
|
85
|
+
*/
|
|
86
|
+
collapsed?: string[] | undefined;
|
|
87
|
+
selected?: string | number | null | undefined;
|
|
88
|
+
onselect?: ((row: any) => void) | undefined;
|
|
89
|
+
rowMenu?: ((row: any) => import("../lib/menu.svelte.js").MenuItem[]) | undefined;
|
|
90
|
+
rowLabel?: ((row: any) => string) | undefined;
|
|
91
|
+
label?: string | undefined;
|
|
92
|
+
emptyGroup?: string | undefined;
|
|
93
|
+
} & Omit<import("svelte/elements").HTMLAttributes<HTMLDivElement>, keyof {
|
|
94
|
+
columns: {
|
|
95
|
+
key: string;
|
|
96
|
+
label: string;
|
|
97
|
+
/**
|
|
98
|
+
* names the column in its sort tooltip when `label` is terse
|
|
99
|
+
*/
|
|
100
|
+
title?: string | undefined;
|
|
101
|
+
hideLabel?: boolean | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* cells are row headers (<th scope="row">)
|
|
104
|
+
*/
|
|
105
|
+
header?: boolean | undefined;
|
|
106
|
+
num?: boolean | undefined;
|
|
107
|
+
center?: boolean | undefined;
|
|
108
|
+
shrink?: boolean | undefined;
|
|
109
|
+
/**
|
|
110
|
+
* sorts descending first
|
|
111
|
+
*/
|
|
112
|
+
desc?: boolean | undefined;
|
|
113
|
+
/**
|
|
114
|
+
* makes the column sortable
|
|
115
|
+
*/
|
|
116
|
+
sortValue?: ((row: any) => string | number) | undefined;
|
|
117
|
+
/**
|
|
118
|
+
* the cell's text when there is no `cell` snippet
|
|
119
|
+
*/
|
|
120
|
+
value?: ((row: any) => unknown) | undefined;
|
|
121
|
+
}[];
|
|
122
|
+
rows?: any[] | undefined;
|
|
123
|
+
groups?: {
|
|
124
|
+
key: string;
|
|
125
|
+
label: string;
|
|
126
|
+
rows: any[];
|
|
127
|
+
sub?: string | undefined;
|
|
128
|
+
tone?: string | undefined;
|
|
129
|
+
info?: {
|
|
130
|
+
label?: string;
|
|
131
|
+
text: string;
|
|
132
|
+
}[] | undefined;
|
|
133
|
+
}[] | null | undefined;
|
|
134
|
+
key: (row: any) => string | number;
|
|
135
|
+
cell?: import("svelte").Snippet<[any, {
|
|
136
|
+
key: string;
|
|
137
|
+
label: string;
|
|
138
|
+
/**
|
|
139
|
+
* names the column in its sort tooltip when `label` is terse
|
|
140
|
+
*/
|
|
141
|
+
title?: string | undefined;
|
|
142
|
+
hideLabel?: boolean | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* cells are row headers (<th scope="row">)
|
|
145
|
+
*/
|
|
146
|
+
header?: boolean | undefined;
|
|
147
|
+
num?: boolean | undefined;
|
|
148
|
+
center?: boolean | undefined;
|
|
149
|
+
shrink?: boolean | undefined;
|
|
150
|
+
/**
|
|
151
|
+
* sorts descending first
|
|
152
|
+
*/
|
|
153
|
+
desc?: boolean | undefined;
|
|
154
|
+
/**
|
|
155
|
+
* makes the column sortable
|
|
156
|
+
*/
|
|
157
|
+
sortValue?: ((row: any) => string | number) | undefined;
|
|
158
|
+
/**
|
|
159
|
+
* the cell's text when there is no `cell` snippet
|
|
160
|
+
*/
|
|
161
|
+
value?: ((row: any) => unknown) | undefined;
|
|
162
|
+
}]> | undefined;
|
|
163
|
+
/**
|
|
164
|
+
* bindable
|
|
165
|
+
*/
|
|
166
|
+
sort?: {
|
|
167
|
+
key: string;
|
|
168
|
+
dir: number;
|
|
169
|
+
} | null | undefined;
|
|
170
|
+
/**
|
|
171
|
+
* bindable
|
|
172
|
+
*/
|
|
173
|
+
collapsed?: string[] | undefined;
|
|
174
|
+
selected?: string | number | null | undefined;
|
|
175
|
+
onselect?: ((row: any) => void) | undefined;
|
|
176
|
+
rowMenu?: ((row: any) => import("../lib/menu.svelte.js").MenuItem[]) | undefined;
|
|
177
|
+
rowLabel?: ((row: any) => string) | undefined;
|
|
178
|
+
label?: string | undefined;
|
|
179
|
+
emptyGroup?: string | undefined;
|
|
180
|
+
}>, {}, "sort" | "collapsed">;
|
|
181
|
+
type Props = {
|
|
182
|
+
columns: {
|
|
183
|
+
key: string;
|
|
184
|
+
label: string;
|
|
185
|
+
/**
|
|
186
|
+
* names the column in its sort tooltip when `label` is terse
|
|
187
|
+
*/
|
|
188
|
+
title?: string | undefined;
|
|
189
|
+
hideLabel?: boolean | undefined;
|
|
190
|
+
/**
|
|
191
|
+
* cells are row headers (<th scope="row">)
|
|
192
|
+
*/
|
|
193
|
+
header?: boolean | undefined;
|
|
194
|
+
num?: boolean | undefined;
|
|
195
|
+
center?: boolean | undefined;
|
|
196
|
+
shrink?: boolean | undefined;
|
|
197
|
+
/**
|
|
198
|
+
* sorts descending first
|
|
199
|
+
*/
|
|
200
|
+
desc?: boolean | undefined;
|
|
201
|
+
/**
|
|
202
|
+
* makes the column sortable
|
|
203
|
+
*/
|
|
204
|
+
sortValue?: ((row: any) => string | number) | undefined;
|
|
205
|
+
/**
|
|
206
|
+
* the cell's text when there is no `cell` snippet
|
|
207
|
+
*/
|
|
208
|
+
value?: ((row: any) => unknown) | undefined;
|
|
209
|
+
}[];
|
|
210
|
+
rows?: any[] | undefined;
|
|
211
|
+
groups?: {
|
|
212
|
+
key: string;
|
|
213
|
+
label: string;
|
|
214
|
+
rows: any[];
|
|
215
|
+
sub?: string | undefined;
|
|
216
|
+
tone?: string | undefined;
|
|
217
|
+
info?: {
|
|
218
|
+
label?: string;
|
|
219
|
+
text: string;
|
|
220
|
+
}[] | undefined;
|
|
221
|
+
}[] | null | undefined;
|
|
222
|
+
key: (row: any) => string | number;
|
|
223
|
+
cell?: import("svelte").Snippet<[any, {
|
|
224
|
+
key: string;
|
|
225
|
+
label: string;
|
|
226
|
+
/**
|
|
227
|
+
* names the column in its sort tooltip when `label` is terse
|
|
228
|
+
*/
|
|
229
|
+
title?: string | undefined;
|
|
230
|
+
hideLabel?: boolean | undefined;
|
|
231
|
+
/**
|
|
232
|
+
* cells are row headers (<th scope="row">)
|
|
233
|
+
*/
|
|
234
|
+
header?: boolean | undefined;
|
|
235
|
+
num?: boolean | undefined;
|
|
236
|
+
center?: boolean | undefined;
|
|
237
|
+
shrink?: boolean | undefined;
|
|
238
|
+
/**
|
|
239
|
+
* sorts descending first
|
|
240
|
+
*/
|
|
241
|
+
desc?: boolean | undefined;
|
|
242
|
+
/**
|
|
243
|
+
* makes the column sortable
|
|
244
|
+
*/
|
|
245
|
+
sortValue?: ((row: any) => string | number) | undefined;
|
|
246
|
+
/**
|
|
247
|
+
* the cell's text when there is no `cell` snippet
|
|
248
|
+
*/
|
|
249
|
+
value?: ((row: any) => unknown) | undefined;
|
|
250
|
+
}]> | undefined;
|
|
251
|
+
/**
|
|
252
|
+
* bindable
|
|
253
|
+
*/
|
|
254
|
+
sort?: {
|
|
255
|
+
key: string;
|
|
256
|
+
dir: number;
|
|
257
|
+
} | null | undefined;
|
|
258
|
+
/**
|
|
259
|
+
* bindable
|
|
260
|
+
*/
|
|
261
|
+
collapsed?: string[] | undefined;
|
|
262
|
+
selected?: string | number | null | undefined;
|
|
263
|
+
onselect?: ((row: any) => void) | undefined;
|
|
264
|
+
rowMenu?: ((row: any) => import("../lib/menu.svelte.js").MenuItem[]) | undefined;
|
|
265
|
+
rowLabel?: ((row: any) => string) | undefined;
|
|
266
|
+
label?: string | undefined;
|
|
267
|
+
emptyGroup?: string | undefined;
|
|
268
|
+
};
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
/**
|
|
3
|
+
* The toasts at the bottom of the window, as a stack: the newest in front, up to two older ones peeking out behind
|
|
4
|
+
* it, smaller and further back. Hovering or focusing the stack fans it out so every toast can be read and acted on.
|
|
5
|
+
* Dismissing the front toast brings the next one forward. The app owns the list and the timers; this draws them.
|
|
6
|
+
*
|
|
7
|
+
* <Toast toasts={app.toasts} onhold={holdToasts} ondismiss={(id) => dismissToast(id)} />
|
|
8
|
+
*
|
|
9
|
+
* `toasts`: oldest first, newest last. Each is { id, message, action?: { label, run, icon? } }.
|
|
10
|
+
* `onhold(true|false)`: hovering or focusing the stack pauses the app's close timers, leaving resumes them.
|
|
11
|
+
* `ondismiss(id)`: the close button, or after the action ran.
|
|
12
|
+
* Keyboard: Tab reaches each toast's buttons (the stack fans out while focus is inside). Dismissing the focused toast
|
|
13
|
+
* moves focus to the next one. Toasts never take focus on their own.
|
|
14
|
+
* It sits in the bottom-right corner, --toast-offset above the bottom edge (default --space-4); set that token to clear a bottom bar.
|
|
15
|
+
* It shows above modal dialogs: the region is a popover (top layer), and while a modal <dialog> is open it moves
|
|
16
|
+
* into that dialog, since everything outside a modal is inert and could not be clicked or announced.
|
|
17
|
+
*/
|
|
18
|
+
import { untrack } from 'svelte'
|
|
19
|
+
import Icon from './Icon.svelte'
|
|
20
|
+
import { fly } from '../lib/motion.js'
|
|
21
|
+
import { tooltip } from '../lib/tooltip.js'
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @typedef {{ id: string | number, message: string, action?: { label: string, run: () => void, icon?: string } }} ToastData
|
|
25
|
+
* @typedef {object} Props
|
|
26
|
+
* @property {ToastData[]} [toasts]
|
|
27
|
+
* @property {(held: boolean) => void} [onhold]
|
|
28
|
+
* @property {(id: ToastData['id']) => void} [ondismiss]
|
|
29
|
+
*/
|
|
30
|
+
/** @type {Props} */
|
|
31
|
+
let { toasts = [], onhold, ondismiss } = $props()
|
|
32
|
+
|
|
33
|
+
/** How many toasts show at once; older ones wait out of sight until those in front go. */
|
|
34
|
+
const VISIBLE = 3
|
|
35
|
+
/** How far each card behind sticks out above the one in front of it, in px. */
|
|
36
|
+
const PEEK = 10
|
|
37
|
+
/** How much smaller each card behind is. */
|
|
38
|
+
const SHRINK = 0.05
|
|
39
|
+
/** The 1px border above and below each card's content. */
|
|
40
|
+
const BORDER = 2
|
|
41
|
+
|
|
42
|
+
/** @type {HTMLDivElement | undefined} */
|
|
43
|
+
let region = $state()
|
|
44
|
+
/** Content height of each toast by id, measured unclamped so a card can return to its own height. */
|
|
45
|
+
/** @type {Record<string | number, number>} */
|
|
46
|
+
let heights = $state({})
|
|
47
|
+
let hovered = $state(false)
|
|
48
|
+
let focused = $state(false)
|
|
49
|
+
const expanded = $derived(toasts.length > 0 && (hovered || focused))
|
|
50
|
+
|
|
51
|
+
/** Newest first: each toast's depth in the stack (0 is the front) and, fanned out, how far up it sits. */
|
|
52
|
+
const layout = $derived.by(() => {
|
|
53
|
+
let above = 0
|
|
54
|
+
return toasts.toReversed().map((toast, depth) => {
|
|
55
|
+
const height = (heights[toast.id] ?? 0) + BORDER
|
|
56
|
+
const item = { toast, depth, offset: above, height }
|
|
57
|
+
if (depth < VISIBLE) above += height
|
|
58
|
+
return item
|
|
59
|
+
})
|
|
60
|
+
})
|
|
61
|
+
const front = $derived(layout[0]?.height ?? 0)
|
|
62
|
+
const shown = $derived(Math.min(layout.length, VISIBLE))
|
|
63
|
+
/** The region covers the whole fanned-out stack, gaps included, so the pointer can travel between cards. */
|
|
64
|
+
const regionHeight = $derived(expanded ? `calc(${layout[shown - 1].offset + layout[shown - 1].height}px + ${shown - 1} * var(--space-2))` : `${front}px`)
|
|
65
|
+
|
|
66
|
+
// untrack: onhold reads the app's list, and a change to it must not count as leaving the stack.
|
|
67
|
+
$effect(() => {
|
|
68
|
+
const held = expanded
|
|
69
|
+
untrack(() => onhold?.(held))
|
|
70
|
+
})
|
|
71
|
+
|
|
72
|
+
/** @param {{ depth: number, offset: number }} item */
|
|
73
|
+
function place({ depth, offset }) {
|
|
74
|
+
const d = Math.min(depth, VISIBLE)
|
|
75
|
+
if (expanded) return { translate: `0 calc(-1 * (${offset}px + ${d} * var(--space-2)))`, scale: '1' }
|
|
76
|
+
return { translate: `0 ${-d * PEEK}px`, scale: `${1 - d * SHRINK}` }
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/** Dismisses a toast; if focus was in it, focus goes to the next one (else nowhere, and the stack folds). */
|
|
80
|
+
function dismiss(id, depth) {
|
|
81
|
+
const card = region?.querySelector(`[data-toast-id="${CSS.escape(String(id))}"]`)
|
|
82
|
+
const hadFocus = card?.contains(document.activeElement)
|
|
83
|
+
const next = layout[depth + 1] ?? layout[depth - 1]
|
|
84
|
+
ondismiss?.(id)
|
|
85
|
+
if (!hadFocus) return
|
|
86
|
+
const target = next && region?.querySelector(`[data-toast-id="${CSS.escape(String(next.toast.id))}"] .close`)
|
|
87
|
+
if (target instanceof HTMLElement) target.focus()
|
|
88
|
+
else focused = false
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/** Attachment on the region: each new toast re-enters the top layer, so it lands above whatever opened since the last one. */
|
|
92
|
+
function inTopLayer(node) {
|
|
93
|
+
void toasts.at(-1)?.id
|
|
94
|
+
const modals = document.querySelectorAll('dialog:modal')
|
|
95
|
+
const host = modals[modals.length - 1] ?? document.body
|
|
96
|
+
const raise = () => {
|
|
97
|
+
if (node.matches(':popover-open')) node.hidePopover()
|
|
98
|
+
node.showPopover()
|
|
99
|
+
}
|
|
100
|
+
if (node.parentNode !== host) host.append(node)
|
|
101
|
+
raise()
|
|
102
|
+
if (host === document.body) return
|
|
103
|
+
// The dialog closed with the toasts still inside it: back to <body>, or they would vanish with the dialog.
|
|
104
|
+
const home = () => {
|
|
105
|
+
if (node.parentNode !== host) return
|
|
106
|
+
document.body.append(node)
|
|
107
|
+
raise()
|
|
108
|
+
}
|
|
109
|
+
host.addEventListener('close', home, { once: true })
|
|
110
|
+
return () => host.removeEventListener('close', home)
|
|
111
|
+
}
|
|
112
|
+
</script>
|
|
113
|
+
|
|
114
|
+
<!-- One polite status region; new toasts are announced as they arrive. Hover or focus fans the stack out and pauses the timers. -->
|
|
115
|
+
<div
|
|
116
|
+
bind:this={region}
|
|
117
|
+
{@attach inTopLayer}
|
|
118
|
+
class="region"
|
|
119
|
+
popover="manual"
|
|
120
|
+
role="status"
|
|
121
|
+
aria-live="polite"
|
|
122
|
+
aria-atomic="false"
|
|
123
|
+
style:height={regionHeight}
|
|
124
|
+
onpointerenter={() => (hovered = true)}
|
|
125
|
+
onpointerleave={() => (hovered = false)}
|
|
126
|
+
onfocusin={() => (focused = true)}
|
|
127
|
+
onfocusout={(e) => {
|
|
128
|
+
if (!(e.relatedTarget instanceof Node && e.currentTarget.contains(e.relatedTarget))) focused = false
|
|
129
|
+
}}
|
|
130
|
+
>
|
|
131
|
+
<ol class="stack" aria-label="Notifications">
|
|
132
|
+
{#each layout.toReversed() as item (item.toast.id)}
|
|
133
|
+
{@const { toast, depth } = item}
|
|
134
|
+
{@const at = place(item)}
|
|
135
|
+
{@const gone = depth >= VISIBLE}
|
|
136
|
+
<li
|
|
137
|
+
class="toast"
|
|
138
|
+
class:behind={depth > 0 && !expanded}
|
|
139
|
+
class:gone
|
|
140
|
+
data-toast-id={toast.id}
|
|
141
|
+
inert={gone}
|
|
142
|
+
aria-hidden={gone || undefined}
|
|
143
|
+
style:z-index={layout.length - depth}
|
|
144
|
+
style:height={heights[toast.id] === undefined ? undefined : `${expanded || depth === 0 ? heights[toast.id] : front - BORDER}px`}
|
|
145
|
+
style:translate={at.translate}
|
|
146
|
+
style:scale={at.scale}
|
|
147
|
+
in:fly={{ y: 16 }}
|
|
148
|
+
out:fly={{ y: 8 }}
|
|
149
|
+
>
|
|
150
|
+
<div class="body" bind:offsetHeight={heights[toast.id]}>
|
|
151
|
+
<span class="msg">{toast.message}</span>
|
|
152
|
+
{#if toast.action}
|
|
153
|
+
<button
|
|
154
|
+
type="button"
|
|
155
|
+
class="action"
|
|
156
|
+
onclick={() => {
|
|
157
|
+
toast.action.run()
|
|
158
|
+
dismiss(toast.id, depth)
|
|
159
|
+
}}
|
|
160
|
+
>
|
|
161
|
+
{#if toast.action.icon}<Icon name={toast.action.icon} size="sm" />{/if}
|
|
162
|
+
{toast.action.label}
|
|
163
|
+
</button>
|
|
164
|
+
{/if}
|
|
165
|
+
<button type="button" class="close" aria-label="Dismiss notification" {@attach tooltip('Dismiss')} onclick={() => dismiss(toast.id, depth)}
|
|
166
|
+
><Icon name="x" size="sm" /></button
|
|
167
|
+
>
|
|
168
|
+
</div>
|
|
169
|
+
</li>
|
|
170
|
+
{/each}
|
|
171
|
+
</ol>
|
|
172
|
+
</div>
|
|
173
|
+
|
|
174
|
+
<style>
|
|
175
|
+
/* The popover defaults (centred, bordered, padded, opaque) are reset: the region is only a place for the stack. */
|
|
176
|
+
.region {
|
|
177
|
+
inset: auto;
|
|
178
|
+
margin: 0;
|
|
179
|
+
padding: 0;
|
|
180
|
+
border: 0;
|
|
181
|
+
background: none;
|
|
182
|
+
overflow: visible;
|
|
183
|
+
color: inherit;
|
|
184
|
+
}
|
|
185
|
+
.region {
|
|
186
|
+
position: fixed;
|
|
187
|
+
right: calc(var(--space-4) + env(safe-area-inset-right, 0px));
|
|
188
|
+
bottom: calc(var(--toast-offset, var(--space-4)) + env(safe-area-inset-bottom, 0px));
|
|
189
|
+
z-index: var(--z-toast);
|
|
190
|
+
width: min(360px, 100vw - 32px);
|
|
191
|
+
}
|
|
192
|
+
.stack {
|
|
193
|
+
position: relative;
|
|
194
|
+
height: 100%;
|
|
195
|
+
margin: 0;
|
|
196
|
+
padding: 0;
|
|
197
|
+
list-style: none;
|
|
198
|
+
}
|
|
199
|
+
/* Every card sits on the bottom edge; translate and scale set its place in the stack. Scaling from the top keeps
|
|
200
|
+
each card's top edge where it was moved to, so a strip of it shows above the card in front. */
|
|
201
|
+
.toast {
|
|
202
|
+
position: absolute;
|
|
203
|
+
left: 0;
|
|
204
|
+
right: 0;
|
|
205
|
+
bottom: 0;
|
|
206
|
+
box-sizing: content-box;
|
|
207
|
+
overflow: hidden;
|
|
208
|
+
transform-origin: top center;
|
|
209
|
+
border-radius: var(--r-lg);
|
|
210
|
+
border: 1px solid transparent;
|
|
211
|
+
background:
|
|
212
|
+
linear-gradient(var(--elevated), var(--elevated)) padding-box,
|
|
213
|
+
var(--edge-grad-float);
|
|
214
|
+
color: var(--fg);
|
|
215
|
+
font-size: 13px;
|
|
216
|
+
box-shadow: var(--shadow);
|
|
217
|
+
transition:
|
|
218
|
+
translate var(--dur-slow) var(--ease-out),
|
|
219
|
+
scale var(--dur-slow) var(--ease-out),
|
|
220
|
+
height var(--dur-slow) var(--ease-out),
|
|
221
|
+
opacity var(--dur-slow) var(--ease-out);
|
|
222
|
+
}
|
|
223
|
+
.toast.gone {
|
|
224
|
+
opacity: 0;
|
|
225
|
+
pointer-events: none;
|
|
226
|
+
}
|
|
227
|
+
/* The buttons stay at the top, beside the first line, when the message wraps. */
|
|
228
|
+
.body {
|
|
229
|
+
display: flex;
|
|
230
|
+
gap: var(--space-2);
|
|
231
|
+
align-items: flex-start;
|
|
232
|
+
padding: var(--space-1) var(--space-1) var(--space-1) var(--space-4);
|
|
233
|
+
transition: opacity var(--dur) var(--ease-out);
|
|
234
|
+
}
|
|
235
|
+
/* A card behind shows only its edge; its text would only be noise under the one in front. */
|
|
236
|
+
.behind .body {
|
|
237
|
+
opacity: 0;
|
|
238
|
+
}
|
|
239
|
+
.msg {
|
|
240
|
+
flex: 1;
|
|
241
|
+
min-width: 0;
|
|
242
|
+
padding-block: var(--space-2);
|
|
243
|
+
overflow-wrap: anywhere;
|
|
244
|
+
}
|
|
245
|
+
.action,
|
|
246
|
+
.close {
|
|
247
|
+
display: inline-flex;
|
|
248
|
+
align-items: center;
|
|
249
|
+
gap: var(--space-1);
|
|
250
|
+
min-height: 32px;
|
|
251
|
+
border: 0;
|
|
252
|
+
border-radius: var(--r-sm);
|
|
253
|
+
background: none;
|
|
254
|
+
color: var(--accent);
|
|
255
|
+
font-weight: var(--w-medium);
|
|
256
|
+
padding: 0 var(--space-2);
|
|
257
|
+
white-space: nowrap;
|
|
258
|
+
/* Centred on the message's first line (its padding and one line), not on the whole block. */
|
|
259
|
+
margin-top: calc((var(--space-2) * 2 + 1lh - 32px) / 2);
|
|
260
|
+
}
|
|
261
|
+
.close {
|
|
262
|
+
color: var(--muted);
|
|
263
|
+
min-width: 32px;
|
|
264
|
+
justify-content: center;
|
|
265
|
+
}
|
|
266
|
+
.action:hover,
|
|
267
|
+
.close:hover {
|
|
268
|
+
background: var(--control-3);
|
|
269
|
+
}
|
|
270
|
+
.close:hover {
|
|
271
|
+
color: var(--fg);
|
|
272
|
+
}
|
|
273
|
+
</style>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export default Toast;
|
|
2
|
+
type Toast = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props>): void;
|
|
5
|
+
};
|
|
6
|
+
declare const Toast: import("svelte").Component<{
|
|
7
|
+
toasts?: {
|
|
8
|
+
id: string | number;
|
|
9
|
+
message: string;
|
|
10
|
+
action?: {
|
|
11
|
+
label: string;
|
|
12
|
+
run: () => void;
|
|
13
|
+
icon?: string;
|
|
14
|
+
};
|
|
15
|
+
}[] | undefined;
|
|
16
|
+
onhold?: ((held: boolean) => void) | undefined;
|
|
17
|
+
ondismiss?: ((id: string | number) => void) | undefined;
|
|
18
|
+
}, {}, "">;
|
|
19
|
+
type Props = {
|
|
20
|
+
toasts?: {
|
|
21
|
+
id: string | number;
|
|
22
|
+
message: string;
|
|
23
|
+
action?: {
|
|
24
|
+
label: string;
|
|
25
|
+
run: () => void;
|
|
26
|
+
icon?: string;
|
|
27
|
+
};
|
|
28
|
+
}[] | undefined;
|
|
29
|
+
onhold?: ((held: boolean) => void) | undefined;
|
|
30
|
+
ondismiss?: ((id: string | number) => void) | undefined;
|
|
31
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
/**
|
|
3
|
+
* Shows a small tooltip when the wrapped content is hovered or focused (it becomes focusable for that; Esc closes).
|
|
4
|
+
* Lives in the top layer (above modal dialogs), fixed below the content with an arrow pointing at it, opening toward the side with more room, so panes and sticky headers don't clip it.
|
|
5
|
+
* `tip`: snippet with the tooltip's content. focusable={false} inside buttons and links (hover only; give the content
|
|
6
|
+
* its own accessible name then). Other attributes (class…) and attachments go to the wrapping <span>.
|
|
7
|
+
*/
|
|
8
|
+
import { topLayer } from '../lib/dom.js'
|
|
9
|
+
import { pop } from '../lib/motion.js'
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @typedef {object} Props
|
|
13
|
+
* @property {import('svelte').Snippet} tip
|
|
14
|
+
* @property {boolean} [focusable]
|
|
15
|
+
* @property {import('svelte').Snippet} children
|
|
16
|
+
*/
|
|
17
|
+
/** @type {Props & Omit<import('svelte/elements').HTMLAttributes<HTMLSpanElement>, keyof Props>} */
|
|
18
|
+
let { tip, focusable = true, class: className, children, ...rest } = $props()
|
|
19
|
+
const propsId = $props.id()
|
|
20
|
+
const uid = 'tt-' + propsId
|
|
21
|
+
let el = $state()
|
|
22
|
+
let pos = $state(null) // { top, left?, right?, arrow } in viewport px while open; arrow is the arrow's --arrow-x
|
|
23
|
+
|
|
24
|
+
function show() {
|
|
25
|
+
const r = el.getBoundingClientRect()
|
|
26
|
+
const cx = r.left + r.width / 2
|
|
27
|
+
if (cx > innerWidth / 2) {
|
|
28
|
+
const right = Math.max(8, innerWidth - r.right)
|
|
29
|
+
pos = { top: r.bottom + 8, right, arrow: `calc(100% - ${innerWidth - right - cx}px)` }
|
|
30
|
+
} else {
|
|
31
|
+
const left = Math.max(8, r.left)
|
|
32
|
+
pos = { top: r.bottom + 8, left, arrow: `${cx - left}px` }
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
const hide = () => (pos = null)
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<!-- svelte-ignore a11y_no_noninteractive_tabindex -->
|
|
39
|
+
<span
|
|
40
|
+
bind:this={el}
|
|
41
|
+
class={['anchor', className]}
|
|
42
|
+
{...rest}
|
|
43
|
+
tabindex={focusable ? 0 : undefined}
|
|
44
|
+
aria-describedby={pos ? uid : undefined}
|
|
45
|
+
onpointerenter={show}
|
|
46
|
+
onpointerleave={hide}
|
|
47
|
+
onfocus={show}
|
|
48
|
+
onblur={hide}
|
|
49
|
+
onkeydown={(e) => e.key === 'Escape' && pos && (e.stopPropagation(), hide())}
|
|
50
|
+
>
|
|
51
|
+
{@render children()}
|
|
52
|
+
</span>
|
|
53
|
+
{#if pos}
|
|
54
|
+
<div
|
|
55
|
+
id={uid}
|
|
56
|
+
class="tip"
|
|
57
|
+
role="tooltip"
|
|
58
|
+
data-arrow="up"
|
|
59
|
+
{@attach topLayer(el)}
|
|
60
|
+
transition:pop={{ from: el, distance: 3 }}
|
|
61
|
+
style:--arrow-x={pos.arrow}
|
|
62
|
+
style:top="{pos.top}px"
|
|
63
|
+
style:left={pos.left != null ? `${pos.left}px` : null}
|
|
64
|
+
style:right={pos.right != null ? `${pos.right}px` : null}
|
|
65
|
+
>
|
|
66
|
+
{@render tip()}
|
|
67
|
+
</div>
|
|
68
|
+
{/if}
|
|
69
|
+
|
|
70
|
+
<style>
|
|
71
|
+
.anchor {
|
|
72
|
+
display: inline-flex;
|
|
73
|
+
border-radius: var(--r);
|
|
74
|
+
}
|
|
75
|
+
.tip {
|
|
76
|
+
position: fixed;
|
|
77
|
+
z-index: var(--z-menu);
|
|
78
|
+
width: max-content;
|
|
79
|
+
max-width: 280px;
|
|
80
|
+
pointer-events: none;
|
|
81
|
+
display: grid;
|
|
82
|
+
gap: 6px;
|
|
83
|
+
justify-items: start;
|
|
84
|
+
padding: var(--space-2) var(--space-3);
|
|
85
|
+
border: 1px solid var(--line-float);
|
|
86
|
+
background: var(--elevated);
|
|
87
|
+
border-radius: var(--r-lg);
|
|
88
|
+
box-shadow: var(--shadow);
|
|
89
|
+
color: var(--fg-2);
|
|
90
|
+
font: 400 12px/1.5 var(--font-body);
|
|
91
|
+
white-space: normal;
|
|
92
|
+
text-align: left;
|
|
93
|
+
letter-spacing: normal;
|
|
94
|
+
text-transform: none;
|
|
95
|
+
cursor: default;
|
|
96
|
+
}
|
|
97
|
+
</style>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default Tooltip;
|
|
2
|
+
type Tooltip = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Omit<HTMLAttributes<HTMLSpanElement>, keyof Props>>): void;
|
|
5
|
+
};
|
|
6
|
+
declare const Tooltip: import("svelte").Component<{
|
|
7
|
+
tip: import("svelte").Snippet;
|
|
8
|
+
focusable?: boolean | undefined;
|
|
9
|
+
children: import("svelte").Snippet;
|
|
10
|
+
} & Omit<import("svelte/elements").HTMLAttributes<HTMLSpanElement>, keyof {
|
|
11
|
+
tip: import("svelte").Snippet;
|
|
12
|
+
focusable?: boolean | undefined;
|
|
13
|
+
children: import("svelte").Snippet;
|
|
14
|
+
}>, {}, "">;
|
|
15
|
+
type Props = {
|
|
16
|
+
tip: import("svelte").Snippet;
|
|
17
|
+
focusable?: boolean | undefined;
|
|
18
|
+
children: import("svelte").Snippet;
|
|
19
|
+
};
|