@stacksjs/components 0.2.955 → 0.2.958
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/{Badge-33phrqza.stx → Badge-wnz3v82e.stx} +21 -5
- package/dist/CommandPalette-cj6pe5ph.stx +208 -0
- package/dist/{CommandPaletteItem-7290ce1z.stx → CommandPaletteItem-bzvp48j8.stx} +4 -1
- package/dist/index.js +2 -2
- package/dist/ui/badge/Badge.d.ts +58 -0
- package/package.json +3 -3
- package/src/ui/badge/Badge.stx +21 -5
- package/src/ui/command-palette/CommandPalette.stx +103 -1
- package/src/ui/command-palette/CommandPaletteItem.stx +4 -1
- package/dist/CommandPalette-qqjdbcyg.stx +0 -106
package/dist/ui/badge/Badge.d.ts
CHANGED
|
@@ -34,7 +34,65 @@ export declare const className: unknown;
|
|
|
34
34
|
* `info` role would paint it blue, which is what `primary` already is, so a
|
|
35
35
|
* badge whose whole job is to distinguish would render two of its variants
|
|
36
36
|
* identically. A wrong colour is worse than an unthemeable one.
|
|
37
|
+
* @defaultValue
|
|
38
|
+
* ```ts
|
|
39
|
+
* {
|
|
40
|
+
* default: 'bg-surface-raised text-fg-strong',
|
|
41
|
+
* primary: 'bg-accent-soft text-accent-soft-ink',
|
|
42
|
+
* secondary: 'bg-secondary-soft text-secondary-soft-ink',
|
|
43
|
+
* success: 'bg-success-soft text-success-soft-ink',
|
|
44
|
+
* warning: 'bg-warning-soft text-warning-soft-ink',
|
|
45
|
+
* danger: 'bg-danger-soft text-danger-soft-ink',
|
|
46
|
+
* info: 'bg-info-soft text-info-soft-ink'
|
|
47
|
+
* }
|
|
48
|
+
* ```
|
|
37
49
|
*/
|
|
50
|
+
export declare const badgeColorClasses: {
|
|
51
|
+
/** @defaultValue 'bg-surface-raised text-fg-strong' */
|
|
52
|
+
default: string;
|
|
53
|
+
/** @defaultValue 'bg-accent-soft text-accent-soft-ink' */
|
|
54
|
+
primary: string;
|
|
55
|
+
/** @defaultValue 'bg-secondary-soft text-secondary-soft-ink' */
|
|
56
|
+
secondary: string;
|
|
57
|
+
/** @defaultValue 'bg-success-soft text-success-soft-ink' */
|
|
58
|
+
success: string;
|
|
59
|
+
/** @defaultValue 'bg-warning-soft text-warning-soft-ink' */
|
|
60
|
+
warning: string;
|
|
61
|
+
/** @defaultValue 'bg-danger-soft text-danger-soft-ink' */
|
|
62
|
+
danger: string;
|
|
63
|
+
/** @defaultValue 'bg-info-soft text-info-soft-ink' */
|
|
64
|
+
info: string
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* @defaultValue
|
|
68
|
+
* ```ts
|
|
69
|
+
* {
|
|
70
|
+
* default: 'bg-fg-soft',
|
|
71
|
+
* primary: 'bg-accent',
|
|
72
|
+
* secondary: 'bg-secondary',
|
|
73
|
+
* success: 'bg-success',
|
|
74
|
+
* warning: 'bg-warning',
|
|
75
|
+
* danger: 'bg-danger',
|
|
76
|
+
* info: 'bg-info'
|
|
77
|
+
* }
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
export declare const badgeDotColorClasses: {
|
|
81
|
+
/** @defaultValue 'bg-fg-soft' */
|
|
82
|
+
default: string;
|
|
83
|
+
/** @defaultValue 'bg-accent' */
|
|
84
|
+
primary: string;
|
|
85
|
+
/** @defaultValue 'bg-secondary' */
|
|
86
|
+
secondary: string;
|
|
87
|
+
/** @defaultValue 'bg-success' */
|
|
88
|
+
success: string;
|
|
89
|
+
/** @defaultValue 'bg-warning' */
|
|
90
|
+
warning: string;
|
|
91
|
+
/** @defaultValue 'bg-danger' */
|
|
92
|
+
danger: string;
|
|
93
|
+
/** @defaultValue 'bg-info' */
|
|
94
|
+
info: string
|
|
95
|
+
};
|
|
38
96
|
export declare const badgeClasses: unknown;
|
|
39
97
|
export declare const dotClasses: unknown;
|
|
40
98
|
export declare const removeButtonClasses: unknown;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/components",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.958",
|
|
5
5
|
"description": "A modern component library built with STX, featuring headwind utility classes and TypeScript syntax highlighting.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -144,8 +144,8 @@
|
|
|
144
144
|
"dependencies": {
|
|
145
145
|
"@iconify-json/f7": "^1.2.2",
|
|
146
146
|
"@stacksjs/ts-css": "^0.3.11",
|
|
147
|
-
"@stacksjs/stx": "0.2.
|
|
148
|
-
"bun-plugin-stx": "0.2.
|
|
147
|
+
"@stacksjs/stx": "0.2.958",
|
|
148
|
+
"bun-plugin-stx": "0.2.958",
|
|
149
149
|
"ts-syntax-highlighter": "^0.2.20",
|
|
150
150
|
"ts-video-player": "^0.1.11"
|
|
151
151
|
},
|
package/src/ui/badge/Badge.stx
CHANGED
|
@@ -38,7 +38,7 @@ export const className = $props.className || ''
|
|
|
38
38
|
* badge whose whole job is to distinguish would render two of its variants
|
|
39
39
|
* identically. A wrong colour is worse than an unthemeable one.
|
|
40
40
|
*/
|
|
41
|
-
const
|
|
41
|
+
export const badgeColorClasses = {
|
|
42
42
|
default: 'bg-surface-raised text-fg-strong',
|
|
43
43
|
primary: 'bg-accent-soft text-accent-soft-ink',
|
|
44
44
|
secondary: 'bg-secondary-soft text-secondary-soft-ink',
|
|
@@ -50,7 +50,7 @@ const variantClasses = {
|
|
|
50
50
|
|
|
51
51
|
const sizeClasses = { sm: 'px-2 py-0.5 text-xs', md: 'px-2.5 py-0.5 text-sm', lg: 'px-3 py-1 text-base' }
|
|
52
52
|
|
|
53
|
-
const
|
|
53
|
+
export const badgeDotColorClasses = {
|
|
54
54
|
default: 'bg-fg-soft',
|
|
55
55
|
primary: 'bg-accent',
|
|
56
56
|
secondary: 'bg-secondary',
|
|
@@ -60,13 +60,28 @@ const dotColorClasses = {
|
|
|
60
60
|
info: 'bg-info',
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
export const
|
|
63
|
+
const initialVariant = Object.hasOwn(badgeColorClasses, variant) ? variant : 'default'
|
|
64
|
+
export const badgeClasses = `inline-flex items-center gap-1.5 font-medium rounded-pill ${badgeColorClasses[initialVariant]} ${sizeClasses[size] || sizeClasses.md} ${className}`.trim()
|
|
65
|
+
export const dotClasses = `w-2 h-2 rounded-full ${badgeDotColorClasses[initialVariant]}`.trim()
|
|
65
66
|
export const removeButtonClasses = `ml-0.5 -mr-1 text-current hover:bg-black/10 dark:hover:bg-white/10 rounded-full p-0.5 transition-colors duration-150`.trim()
|
|
66
67
|
</script>
|
|
67
68
|
|
|
68
69
|
<script client>
|
|
69
70
|
const emit = defineEmits()
|
|
71
|
+
const colorVariant = useReactiveProp('variant', {{ variant }})
|
|
72
|
+
const badgeColors = {{ badgeColorClasses }}
|
|
73
|
+
const dotColors = {{ badgeDotColorClasses }}
|
|
74
|
+
const callerClasses = {{ className }}.split(/\s+/)
|
|
75
|
+
|
|
76
|
+
function colorToggles(options, extraClasses = []) {
|
|
77
|
+
const tone = colorVariant()
|
|
78
|
+
const current = Object.hasOwn(options, tone) ? options[tone] : options.default
|
|
79
|
+
const retained = new Set([...current.split(' '), ...extraClasses])
|
|
80
|
+
return Object.fromEntries(Object.values(options).flatMap(classes => classes.split(' ').map(token => [token, retained.has(token)])))
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
const badgeColorToggles = derived(() => colorToggles(badgeColors, callerClasses))
|
|
84
|
+
const dotColorToggles = derived(() => colorToggles(dotColors))
|
|
70
85
|
|
|
71
86
|
function onRemove() {
|
|
72
87
|
emit('remove')
|
|
@@ -75,10 +90,11 @@ function onRemove() {
|
|
|
75
90
|
|
|
76
91
|
<span
|
|
77
92
|
class="{{ badgeClasses }}"
|
|
93
|
+
:class="badgeColorToggles()"
|
|
78
94
|
@if(live)role="status" aria-live="{{ live }}"@endif
|
|
79
95
|
>
|
|
80
96
|
@if(dot)
|
|
81
|
-
<span class="{{ dotClasses }}" aria-hidden="true"></span>
|
|
97
|
+
<span class="{{ dotClasses }}" :class="dotColorToggles()" aria-hidden="true"></span>
|
|
82
98
|
@endif
|
|
83
99
|
|
|
84
100
|
<slot />
|
|
@@ -17,6 +17,7 @@ const query = state({{ initialQuery }})
|
|
|
17
17
|
function close() {
|
|
18
18
|
if (!isOpen()) return
|
|
19
19
|
isOpen.set(false)
|
|
20
|
+
setActive(null)
|
|
20
21
|
emit('close')
|
|
21
22
|
}
|
|
22
23
|
|
|
@@ -40,6 +41,94 @@ function panelEl() {
|
|
|
40
41
|
return document.querySelector(`[data-palette-id="${paletteInstanceId}"] [data-stx-command-palette-panel]`)
|
|
41
42
|
}
|
|
42
43
|
|
|
44
|
+
/*
|
|
45
|
+
* The keyboard, as a combobox (stacksjs/stx#2231). Focus stays in the search
|
|
46
|
+
* field so the user can keep typing; the command arrowed to is the ACTIVE
|
|
47
|
+
* option, named by aria-activedescendant on the field and marked
|
|
48
|
+
* aria-selected, and Enter clicks it, so it is selected exactly as a pointer
|
|
49
|
+
* selects it. The items used to be plain divs with only a click handler, so a
|
|
50
|
+
* keyboard could open the palette and close it and do nothing in between.
|
|
51
|
+
*
|
|
52
|
+
* Held as the element rather than an index: the page filters the results as
|
|
53
|
+
* the query changes, and an index would then point at a different command.
|
|
54
|
+
*/
|
|
55
|
+
let activeItem = null
|
|
56
|
+
|
|
57
|
+
function listEl() {
|
|
58
|
+
return panelEl()?.querySelector('[data-stx-command-palette-list]') ?? null
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/** The commands showing now: an item the page hid with :show or hidden is skipped. */
|
|
62
|
+
function itemElements() {
|
|
63
|
+
const list = listEl()
|
|
64
|
+
if (!list) return []
|
|
65
|
+
return Array.prototype.filter.call(list.querySelectorAll('[data-stx-command-item]'), (item) => {
|
|
66
|
+
for (let node = item; node && node !== list; node = node.parentElement) {
|
|
67
|
+
if (node.hidden || (node.style && node.style.display === 'none')) return false
|
|
68
|
+
}
|
|
69
|
+
return true
|
|
70
|
+
})
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function setActive(item) {
|
|
74
|
+
activeItem = item
|
|
75
|
+
const items = itemElements()
|
|
76
|
+
const doc = panelEl()?.ownerDocument || document
|
|
77
|
+
items.forEach((option, index) => {
|
|
78
|
+
// aria-activedescendant needs an id that is unique on the page.
|
|
79
|
+
if (!option.id || doc.querySelectorAll('[id="' + option.id + '"]').length !== 1)
|
|
80
|
+
option.id = 'stx-command-option-' + paletteInstanceId + '-' + index
|
|
81
|
+
option.setAttribute('aria-selected', option === item ? 'true' : 'false')
|
|
82
|
+
})
|
|
83
|
+
const input = panelEl()?.querySelector('[data-stx-command-palette-input]')
|
|
84
|
+
if (!input) return
|
|
85
|
+
if (item) input.setAttribute('aria-activedescendant', item.id)
|
|
86
|
+
else input.removeAttribute('aria-activedescendant')
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
function moveActive(delta) {
|
|
90
|
+
const items = itemElements()
|
|
91
|
+
if (!items.length) return
|
|
92
|
+
const from = items.indexOf(activeItem)
|
|
93
|
+
const next = from < 0
|
|
94
|
+
? (delta > 0 ? 0 : items.length - 1)
|
|
95
|
+
: (from + delta + items.length) % items.length
|
|
96
|
+
setActive(items[next])
|
|
97
|
+
// The list scrolls, and nothing moves focus there to bring the option in.
|
|
98
|
+
if (items[next].scrollIntoView) items[next].scrollIntoView({ block: 'nearest' })
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function onPaletteKey(event) {
|
|
102
|
+
const key = event.key
|
|
103
|
+
if (key === 'ArrowDown' || key === 'ArrowUp') {
|
|
104
|
+
event.preventDefault()
|
|
105
|
+
moveActive(key === 'ArrowDown' ? 1 : -1)
|
|
106
|
+
}
|
|
107
|
+
else if (key === 'Home' || key === 'End') {
|
|
108
|
+
event.preventDefault()
|
|
109
|
+
activeItem = null
|
|
110
|
+
moveActive(key === 'Home' ? 1 : -1)
|
|
111
|
+
}
|
|
112
|
+
else if (key === 'Enter' && activeItem && itemElements().includes(activeItem)) {
|
|
113
|
+
event.preventDefault()
|
|
114
|
+
activeItem.click()
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/*
|
|
119
|
+
* The results changed under the active command: keep it while it still
|
|
120
|
+
* shows, and point at nothing once it is gone rather than at a stale id.
|
|
121
|
+
*/
|
|
122
|
+
let resultsObserver = null
|
|
123
|
+
onMount(() => {
|
|
124
|
+
const list = listEl()
|
|
125
|
+
if (!list || typeof MutationObserver === 'undefined') return
|
|
126
|
+
resultsObserver = new MutationObserver(() => {
|
|
127
|
+
if (activeItem && !itemElements().includes(activeItem)) setActive(null)
|
|
128
|
+
})
|
|
129
|
+
resultsObserver.observe(list, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'hidden'] })
|
|
130
|
+
})
|
|
131
|
+
|
|
43
132
|
/*
|
|
44
133
|
* The palette takes over the page, so it is a modal layer on the page's
|
|
45
134
|
* overlay stack (window.stx.overlays): the page held still behind it, focus
|
|
@@ -63,6 +152,7 @@ effect(() => {
|
|
|
63
152
|
|
|
64
153
|
onDestroy(() => {
|
|
65
154
|
window.stx.overlays.close(paletteInstanceId)
|
|
155
|
+
resultsObserver?.disconnect()
|
|
66
156
|
})
|
|
67
157
|
|
|
68
158
|
defineExpose({ isOpen, query, show, close })
|
|
@@ -91,15 +181,27 @@ defineExpose({ isOpen, query, show, close })
|
|
|
91
181
|
</svg>
|
|
92
182
|
<input
|
|
93
183
|
type="text"
|
|
184
|
+
role="combobox"
|
|
185
|
+
aria-expanded="true"
|
|
186
|
+
aria-autocomplete="list"
|
|
187
|
+
aria-controls="stx-command-palette-list-{{ paletteInstanceId }}"
|
|
188
|
+
data-stx-command-palette-input
|
|
94
189
|
class="h-12 w-full border-0 bg-transparent pl-11 pr-4 text-fg placeholder-fg-soft focus:ring-0 sm:text-sm"
|
|
95
190
|
placeholder="Search..."
|
|
96
191
|
aria-label="Search commands"
|
|
97
192
|
:value="query()"
|
|
98
193
|
@input="onQueryInput($event)"
|
|
194
|
+
@keydown="onPaletteKey($event)"
|
|
99
195
|
/>
|
|
100
196
|
</div>
|
|
101
197
|
|
|
102
|
-
<div
|
|
198
|
+
<div
|
|
199
|
+
id="stx-command-palette-list-{{ paletteInstanceId }}"
|
|
200
|
+
role="listbox"
|
|
201
|
+
aria-label="Commands"
|
|
202
|
+
data-stx-command-palette-list
|
|
203
|
+
class="max-h-96 overflow-y-auto py-2"
|
|
204
|
+
>
|
|
103
205
|
<slot />
|
|
104
206
|
</div>
|
|
105
207
|
</div>
|
|
@@ -3,7 +3,8 @@ export const className = $props.className || ''
|
|
|
3
3
|
export const value = $props.value
|
|
4
4
|
export const valueJson = JSON.stringify(value === undefined ? null : value)
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// aria-selected marks the command the keyboard is on (CommandPalette's onPaletteKey).
|
|
7
|
+
const baseClasses = 'flex cursor-pointer select-none items-center px-4 py-2 text-fg hover:bg-accent-solid hover:text-accent-ink aria-selected:bg-accent-solid aria-selected:text-accent-ink'
|
|
7
8
|
export const itemClasses = `${baseClasses} ${className}`.trim()
|
|
8
9
|
</script>
|
|
9
10
|
|
|
@@ -33,6 +34,8 @@ function onClick(event) {
|
|
|
33
34
|
|
|
34
35
|
<div
|
|
35
36
|
class="{{ itemClasses }}"
|
|
37
|
+
role="option"
|
|
38
|
+
aria-selected="false"
|
|
36
39
|
data-stx-command-item
|
|
37
40
|
@click="onClick($event)"
|
|
38
41
|
>
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
<script server>
|
|
2
|
-
export const open = $bool($props.open)
|
|
3
|
-
export const initialQuery = $props.query || ''
|
|
4
|
-
export const className = $props.className || ''
|
|
5
|
-
|
|
6
|
-
const baseClasses = 'fixed inset-0 z-50 overflow-y-auto p-4 sm:p-6 md:p-20'
|
|
7
|
-
export const paletteClasses = `${baseClasses} ${className}`.trim()
|
|
8
|
-
export const paletteInstanceId = $uid
|
|
9
|
-
</script>
|
|
10
|
-
|
|
11
|
-
<script client>
|
|
12
|
-
const emit = defineEmits()
|
|
13
|
-
const paletteInstanceId = {{ paletteInstanceId }}
|
|
14
|
-
const isOpen = state({{ open }})
|
|
15
|
-
const query = state({{ initialQuery }})
|
|
16
|
-
|
|
17
|
-
function close() {
|
|
18
|
-
if (!isOpen()) return
|
|
19
|
-
isOpen.set(false)
|
|
20
|
-
emit('close')
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function show() {
|
|
24
|
-
if (isOpen()) return
|
|
25
|
-
isOpen.set(true)
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function onQueryInput(event) {
|
|
29
|
-
query.set(event.target.value)
|
|
30
|
-
emit('query', event.target.value)
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function onItemSelect(event) {
|
|
34
|
-
event.stopPropagation()
|
|
35
|
-
emit('select', event.detail)
|
|
36
|
-
close()
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function panelEl() {
|
|
40
|
-
return document.querySelector(`[data-palette-id="${paletteInstanceId}"] [data-stx-command-palette-panel]`)
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/*
|
|
44
|
-
* The palette takes over the page, so it is a modal layer on the page's
|
|
45
|
-
* overlay stack (window.stx.overlays): the page held still behind it, focus
|
|
46
|
-
* straight into the search field and back to whatever opened it, Tab kept
|
|
47
|
-
* inside, and Escape for whichever overlay is on top. It used to listen for
|
|
48
|
-
* Escape on the document and do none of the rest, so focus stayed behind it
|
|
49
|
-
* and a palette opened from a dialog closed the dialog too (stacksjs/stx#2057).
|
|
50
|
-
*/
|
|
51
|
-
effect(() => {
|
|
52
|
-
if (isOpen()) {
|
|
53
|
-
window.stx.overlays.open(paletteInstanceId, {
|
|
54
|
-
panel: panelEl,
|
|
55
|
-
onEscape: close,
|
|
56
|
-
initialFocus: () => panelEl()?.querySelector('input'),
|
|
57
|
-
})
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
window.stx.overlays.close(paletteInstanceId)
|
|
61
|
-
}
|
|
62
|
-
})
|
|
63
|
-
|
|
64
|
-
onDestroy(() => {
|
|
65
|
-
window.stx.overlays.close(paletteInstanceId)
|
|
66
|
-
})
|
|
67
|
-
|
|
68
|
-
defineExpose({ isOpen, query, show, close })
|
|
69
|
-
</script>
|
|
70
|
-
|
|
71
|
-
<div
|
|
72
|
-
:show="isOpen()"
|
|
73
|
-
class="{{ paletteClasses }}"
|
|
74
|
-
data-stx-command-palette
|
|
75
|
-
data-palette-id="{{ paletteInstanceId }}"
|
|
76
|
-
@stx:command-select="onItemSelect($event)"
|
|
77
|
-
>
|
|
78
|
-
<div class="fixed inset-0 bg-neutral-500/25 dark:bg-neutral-500/50 transition-opacity" aria-hidden="true" @click="close()"></div>
|
|
79
|
-
|
|
80
|
-
<div
|
|
81
|
-
data-stx-command-palette-panel
|
|
82
|
-
role="dialog"
|
|
83
|
-
aria-modal="true"
|
|
84
|
-
aria-label="Command palette"
|
|
85
|
-
tabindex="-1"
|
|
86
|
-
class="mx-auto max-w-xl transform divide-y divide-line overflow-hidden rounded-xl bg-panel shadow-2xl ring-1 ring-line transition-all relative"
|
|
87
|
-
>
|
|
88
|
-
<div class="relative">
|
|
89
|
-
<svg class="pointer-events-none absolute top-3.5 left-4 h-5 w-5 text-fg-soft" viewBox="0 0 20 20" fill="currentColor">
|
|
90
|
-
<path fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z" clip-rule="evenodd" />
|
|
91
|
-
</svg>
|
|
92
|
-
<input
|
|
93
|
-
type="text"
|
|
94
|
-
class="h-12 w-full border-0 bg-transparent pl-11 pr-4 text-fg placeholder-fg-soft focus:ring-0 sm:text-sm"
|
|
95
|
-
placeholder="Search..."
|
|
96
|
-
aria-label="Search commands"
|
|
97
|
-
:value="query()"
|
|
98
|
-
@input="onQueryInput($event)"
|
|
99
|
-
/>
|
|
100
|
-
</div>
|
|
101
|
-
|
|
102
|
-
<div class="max-h-96 overflow-y-auto py-2">
|
|
103
|
-
<slot />
|
|
104
|
-
</div>
|
|
105
|
-
</div>
|
|
106
|
-
</div>
|