24725216e4
* add watch script * make interactions in Vue and React consistent * re-work focus restoration When we click outside of the Menu or Listbox, we want to restore the focus to the Button, *unless* we clicked on/in an element that is focusable in itself. For example, when the Menu is open and you click in an input field, the input field should stay focused. We should also close the Menu itself at this point. * add examples with multiple elements * bump dependencies
15 lines
274 B
Bash
Executable File
15 lines
274 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
node="yarn node"
|
|
tsdxArgs=()
|
|
|
|
# Add script name
|
|
tsdxArgs+=("watch" "--name" "headlessui" "--format" "cjs,esm,umd" "--tsconfig" "./tsconfig.tsdx.json")
|
|
|
|
# Passthrough arguments and flags
|
|
tsdxArgs+=($@)
|
|
|
|
# Execute
|
|
$node "$(yarn bin tsdx)" "${tsdxArgs[@]}"
|