Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ The following is a curated list of changes in the Enact samples module, newest c

## [unreleased]

- Added `ui/spotlight-sandbox` sample demonstrating standalone `@enact/spotlight` usage
- Updated minor dependencies

## [2.7.0] - 2023-05-09
Expand Down
15 changes: 15 additions & 0 deletions ui/spotlight-sandbox/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
node_modules

# testing
coverage

# production
build
dist

# misc
.DS_Store
npm-debug.log
21 changes: 21 additions & 0 deletions ui/spotlight-sandbox/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## Spotlight Sandbox

A sample Enact application that demonstrates standalone usage of `@enact/spotlight` for 5-way navigation and focus management.

The sample includes:

- **Container navigation** — nested spotlight containers with visual feedback when a container receives focus
- **Sandbox** — draggable and resizable spottable controls to exercise spatial navigation
- **Disappear sample** — focus behavior when controls are disabled, destroyed, or hidden
- **Hold sample** — press-and-hold Enter on a focused control to trigger hold and pulse events
- **Test page** — wide and tall controls for nearest-neighbor navigation testing

Use the arrow keys on your keyboard to move focus between controls. Press Enter to activate a focused control.

Each sample runs on its own page so 5-way navigation is not affected by other examples on screen.

Run `npm install` then `npm run serve` to view the app at [http://localhost:8080](http://localhost:8080).

---

This project was bootstrapped with the Enact [cli](https://github.com/enactjs/cli).
9 changes: 9 additions & 0 deletions ui/spotlight-sandbox/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = [
{
ignores: [
'node_modules/*',
'build/*',
'dist/*'
]
}
];
319 changes: 319 additions & 0 deletions ui/spotlight-sandbox/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading