termcast 1.3.10 → 1.3.18
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/apis/toast.d.ts +1 -5
- package/dist/apis/toast.d.ts.map +1 -1
- package/dist/apis/toast.js +23 -17
- package/dist/apis/toast.js.map +1 -1
- package/dist/build.d.ts +2 -0
- package/dist/build.d.ts.map +1 -1
- package/dist/build.js +4 -3
- package/dist/build.js.map +1 -1
- package/dist/cli.js +42 -0
- package/dist/cli.js.map +1 -1
- package/dist/colors.d.ts +8 -1
- package/dist/colors.d.ts.map +1 -1
- package/dist/colors.js +12 -0
- package/dist/colors.js.map +1 -1
- package/dist/compile.d.ts +30 -0
- package/dist/compile.d.ts.map +1 -0
- package/dist/compile.js +156 -0
- package/dist/compile.js.map +1 -0
- package/dist/components/actions.d.ts +1 -0
- package/dist/components/actions.d.ts.map +1 -1
- package/dist/components/actions.js +5 -2
- package/dist/components/actions.js.map +1 -1
- package/dist/components/command-arguments.d.ts +9 -0
- package/dist/components/command-arguments.d.ts.map +1 -0
- package/dist/components/command-arguments.js +21 -0
- package/dist/components/command-arguments.js.map +1 -0
- package/dist/components/detail.d.ts +1 -1
- package/dist/components/detail.d.ts.map +1 -1
- package/dist/components/detail.js +17 -39
- package/dist/components/detail.js.map +1 -1
- package/dist/components/dropdown.d.ts +1 -0
- package/dist/components/dropdown.d.ts.map +1 -1
- package/dist/components/dropdown.js +77 -21
- package/dist/components/dropdown.js.map +1 -1
- package/dist/components/extension-preferences.d.ts.map +1 -1
- package/dist/components/extension-preferences.js +19 -29
- package/dist/components/extension-preferences.js.map +1 -1
- package/dist/components/form/checkbox.d.ts.map +1 -1
- package/dist/components/form/checkbox.js +9 -2
- package/dist/components/form/checkbox.js.map +1 -1
- package/dist/components/form/date-picker.d.ts.map +1 -1
- package/dist/components/form/date-picker.js +15 -28
- package/dist/components/form/date-picker.js.map +1 -1
- package/dist/components/form/description.d.ts +2 -0
- package/dist/components/form/description.d.ts.map +1 -1
- package/dist/components/form/description.js +20 -2
- package/dist/components/form/description.js.map +1 -1
- package/dist/components/form/dropdown.d.ts.map +1 -1
- package/dist/components/form/dropdown.js +13 -28
- package/dist/components/form/dropdown.js.map +1 -1
- package/dist/components/form/file-autocomplete.d.ts +7 -4
- package/dist/components/form/file-autocomplete.d.ts.map +1 -1
- package/dist/components/form/file-autocomplete.js +54 -46
- package/dist/components/form/file-autocomplete.js.map +1 -1
- package/dist/components/form/file-picker.d.ts +5 -0
- package/dist/components/form/file-picker.d.ts.map +1 -1
- package/dist/components/form/file-picker.js +46 -49
- package/dist/components/form/file-picker.js.map +1 -1
- package/dist/components/form/form-ref.d.ts +43 -0
- package/dist/components/form/form-ref.d.ts.map +1 -0
- package/dist/components/form/form-ref.js +53 -0
- package/dist/components/form/form-ref.js.map +1 -0
- package/dist/components/form/index.d.ts +16 -0
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/index.js +86 -23
- package/dist/components/form/index.js.map +1 -1
- package/dist/components/form/password-field.d.ts.map +1 -1
- package/dist/components/form/password-field.js +32 -16
- package/dist/components/form/password-field.js.map +1 -1
- package/dist/components/form/text-area.d.ts.map +1 -1
- package/dist/components/form/text-area.js +32 -15
- package/dist/components/form/text-area.js.map +1 -1
- package/dist/components/form/text-field.d.ts.map +1 -1
- package/dist/components/form/text-field.js +37 -17
- package/dist/components/form/text-field.js.map +1 -1
- package/dist/components/form/use-form-navigation.d.ts +4 -0
- package/dist/components/form/use-form-navigation.d.ts.map +1 -1
- package/dist/components/form/use-form-navigation.js +35 -18
- package/dist/components/form/use-form-navigation.js.map +1 -1
- package/dist/components/form/with-left-border.d.ts.map +1 -1
- package/dist/components/form/with-left-border.js +2 -2
- package/dist/components/form/with-left-border.js.map +1 -1
- package/dist/components/icon.d.ts +3 -1
- package/dist/components/icon.d.ts.map +1 -1
- package/dist/components/icon.js +494 -469
- package/dist/components/icon.js.map +1 -1
- package/dist/components/list.d.ts +11 -7
- package/dist/components/list.d.ts.map +1 -1
- package/dist/components/list.js +170 -38
- package/dist/components/list.js.map +1 -1
- package/dist/components/loading-bar.js +1 -1
- package/dist/components/loading-bar.js.map +1 -1
- package/dist/descendants.d.ts.map +1 -1
- package/dist/descendants.js +8 -5
- package/dist/descendants.js.map +1 -1
- package/dist/examples/action-show-in-finder.js +1 -1
- package/dist/examples/action-show-in-finder.js.map +1 -1
- package/dist/examples/environment-test.js +1 -1
- package/dist/examples/environment-test.js.map +1 -1
- package/dist/examples/error-boundary.js +1 -1
- package/dist/examples/error-boundary.js.map +1 -1
- package/dist/examples/form-basic.d.ts.map +1 -1
- package/dist/examples/form-basic.js +2 -2
- package/dist/examples/form-basic.js.map +1 -1
- package/dist/examples/form-dropdown.js +1 -1
- package/dist/examples/form-dropdown.js.map +1 -1
- package/dist/examples/form-scroll.d.ts +2 -0
- package/dist/examples/form-scroll.d.ts.map +1 -0
- package/dist/examples/form-scroll.js +8 -0
- package/dist/examples/form-scroll.js.map +1 -0
- package/dist/examples/form-tagpicker.js +1 -1
- package/dist/examples/form-tagpicker.js.map +1 -1
- package/dist/examples/internal/descendants-filtering.js +8 -3
- package/dist/examples/internal/descendants-filtering.js.map +1 -1
- package/dist/examples/internal/descendants.js +10 -3
- package/dist/examples/internal/descendants.js.map +1 -1
- package/dist/examples/internal/rhf-custom-ref.d.ts +2 -0
- package/dist/examples/internal/rhf-custom-ref.d.ts.map +1 -0
- package/dist/examples/internal/rhf-custom-ref.js +67 -0
- package/dist/examples/internal/rhf-custom-ref.js.map +1 -0
- package/dist/examples/internal/scrollbox-demo.js +3 -7
- package/dist/examples/internal/scrollbox-demo.js.map +1 -1
- package/dist/examples/internal/scrollbox-with-descendants.d.ts +2 -0
- package/dist/examples/internal/scrollbox-with-descendants.d.ts.map +1 -0
- package/dist/examples/internal/scrollbox-with-descendants.js +63 -0
- package/dist/examples/internal/scrollbox-with-descendants.js.map +1 -0
- package/dist/examples/internal/simple-dialog.js +1 -1
- package/dist/examples/internal/simple-dialog.js.map +1 -1
- package/dist/examples/internal/simple-scrollbox.js +2 -3
- package/dist/examples/internal/simple-scrollbox.js.map +1 -1
- package/dist/examples/internal/text-stacking.js +4 -2
- package/dist/examples/internal/text-stacking.js.map +1 -1
- package/dist/examples/list-dropdown-default.js +1 -1
- package/dist/examples/list-dropdown-default.js.map +1 -1
- package/dist/examples/list-fetch-data.js +1 -1
- package/dist/examples/list-fetch-data.js.map +1 -1
- package/dist/examples/list-scrollbox.d.ts +2 -0
- package/dist/examples/list-scrollbox.d.ts.map +1 -0
- package/dist/examples/list-scrollbox.js +29 -0
- package/dist/examples/list-scrollbox.js.map +1 -0
- package/dist/examples/list-with-detail.js +1 -1
- package/dist/examples/list-with-detail.js.map +1 -1
- package/dist/examples/list-with-dropdown.js +1 -1
- package/dist/examples/list-with-dropdown.js.map +1 -1
- package/dist/examples/list-with-sections.js +3 -3
- package/dist/examples/list-with-sections.js.map +1 -1
- package/dist/examples/miscellaneous.js +1 -1
- package/dist/examples/miscellaneous.js.map +1 -1
- package/dist/examples/nested-navigation.js +4 -2
- package/dist/examples/nested-navigation.js.map +1 -1
- package/dist/examples/preferences-test.js +1 -1
- package/dist/examples/preferences-test.js.map +1 -1
- package/dist/examples/simple-dropdown.js +1 -1
- package/dist/examples/simple-dropdown.js.map +1 -1
- package/dist/examples/simple-file-picker.js +1 -1
- package/dist/examples/simple-file-picker.js.map +1 -1
- package/dist/examples/simple-grid.js +1 -1
- package/dist/examples/simple-grid.js.map +1 -1
- package/dist/examples/simple-hud.js +1 -1
- package/dist/examples/simple-hud.js.map +1 -1
- package/dist/examples/simple-list-search.js +1 -1
- package/dist/examples/simple-list-search.js.map +1 -1
- package/dist/examples/simple-list.js +1 -1
- package/dist/examples/simple-list.js.map +1 -1
- package/dist/examples/simple-navigation.js +4 -2
- package/dist/examples/simple-navigation.js.map +1 -1
- package/dist/examples/store.js +1 -1
- package/dist/examples/store.js.map +1 -1
- package/dist/examples/submodule-diff.d.ts +2 -0
- package/dist/examples/submodule-diff.d.ts.map +1 -0
- package/dist/examples/submodule-diff.js +99 -0
- package/dist/examples/submodule-diff.js.map +1 -0
- package/dist/examples/tanstack-demo.js +1 -1
- package/dist/examples/tanstack-demo.js.map +1 -1
- package/dist/examples/use-promise-demo.js +1 -1
- package/dist/examples/use-promise-demo.js.map +1 -1
- package/dist/extensions/dev.d.ts +8 -0
- package/dist/extensions/dev.d.ts.map +1 -1
- package/dist/extensions/dev.js +53 -28
- package/dist/extensions/dev.js.map +1 -1
- package/dist/extensions/home.d.ts.map +1 -1
- package/dist/extensions/home.js +16 -91
- package/dist/extensions/home.js.map +1 -1
- package/dist/globals.js +1 -1
- package/dist/globals.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/internal/date-picker-widget.d.ts.map +1 -1
- package/dist/internal/date-picker-widget.js +56 -48
- package/dist/internal/date-picker-widget.js.map +1 -1
- package/dist/internal/dialog.d.ts.map +1 -1
- package/dist/internal/dialog.js +7 -7
- package/dist/internal/dialog.js.map +1 -1
- package/dist/internal/scrollbox.d.ts +2 -1
- package/dist/internal/scrollbox.d.ts.map +1 -1
- package/dist/internal/scrollbox.js +13 -7
- package/dist/internal/scrollbox.js.map +1 -1
- package/dist/release.d.ts +11 -0
- package/dist/release.d.ts.map +1 -0
- package/dist/release.js +113 -0
- package/dist/release.js.map +1 -0
- package/dist/state.d.ts +1 -0
- package/dist/state.d.ts.map +1 -1
- package/dist/state.js +1 -0
- package/dist/state.js.map +1 -1
- package/dist/theme.d.ts +11 -8
- package/dist/theme.d.ts.map +1 -1
- package/dist/theme.js +31 -8
- package/dist/theme.js.map +1 -1
- package/dist/utils/run-command.d.ts +22 -0
- package/dist/utils/run-command.d.ts.map +1 -0
- package/dist/utils/run-command.js +127 -0
- package/dist/utils/run-command.js.map +1 -0
- package/dist/utils.d.ts +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +5 -3
- package/dist/utils.js.map +1 -1
- package/package.json +10 -7
- package/src/apis/toast.tsx +38 -17
- package/src/build.tsx +5 -3
- package/src/cli.tsx +46 -0
- package/src/colors.tsx +22 -1
- package/src/compile.tsx +219 -0
- package/src/components/actions.tsx +7 -1
- package/src/components/command-arguments.tsx +81 -0
- package/src/components/detail.tsx +26 -58
- package/src/components/dropdown.tsx +108 -23
- package/src/components/extension-preferences.tsx +55 -35
- package/src/components/form/checkbox.tsx +13 -5
- package/src/components/form/date-picker.tsx +24 -29
- package/src/components/form/description.tsx +35 -7
- package/src/components/form/dropdown.tsx +16 -30
- package/src/components/form/file-autocomplete.tsx +87 -77
- package/src/components/form/file-picker.tsx +69 -57
- package/src/components/form/form-ref.tsx +68 -0
- package/src/components/form/index.tsx +152 -41
- package/src/components/form/password-field.tsx +35 -22
- package/src/components/form/text-area.tsx +78 -58
- package/src/components/form/text-field.tsx +82 -61
- package/src/components/form/use-form-navigation.tsx +43 -23
- package/src/components/form/with-left-border.tsx +2 -1
- package/src/components/icon.tsx +497 -469
- package/src/components/list.tsx +279 -112
- package/src/components/loading-bar.tsx +1 -1
- package/src/descendants.tsx +15 -5
- package/src/examples/action-show-in-finder.tsx +1 -1
- package/src/examples/environment-test.tsx +1 -1
- package/src/examples/error-boundary.tsx +1 -1
- package/src/examples/file-autocomplete.vitest.tsx +245 -0
- package/src/examples/form-basic.tsx +12 -12
- package/src/examples/form-basic.vitest.tsx +297 -671
- package/src/examples/form-dropdown.tsx +1 -1
- package/src/examples/form-dropdown.vitest.tsx +353 -221
- package/src/examples/form-scroll.tsx +56 -0
- package/src/examples/form-scroll.vitest.tsx +228 -0
- package/src/examples/form-tagpicker.tsx +1 -1
- package/src/examples/form-tagpicker.vitest.tsx +438 -193
- package/src/examples/internal/descendants-filtering.tsx +13 -5
- package/src/examples/internal/descendants.tsx +17 -5
- package/src/examples/internal/rhf-custom-ref.tsx +152 -0
- package/src/examples/internal/scrollbox-demo.tsx +15 -7
- package/src/examples/internal/scrollbox-with-descendants.tsx +94 -0
- package/src/examples/internal/simple-dialog.tsx +1 -1
- package/src/examples/internal/simple-scrollbox.tsx +8 -5
- package/src/examples/internal/simple-scrollbox.vitest.tsx +47 -37
- package/src/examples/internal/text-stacking.tsx +4 -2
- package/src/examples/list-dropdown-default.tsx +1 -1
- package/src/examples/list-dropdown-default.vitest.tsx +136 -71
- package/src/examples/list-fetch-data.tsx +1 -1
- package/src/examples/list-fetch-data.vitest.tsx +42 -33
- package/src/examples/list-scrollbox.tsx +46 -0
- package/src/examples/list-scrollbox.vitest.tsx +103 -0
- package/src/examples/list-with-detail.tsx +1 -1
- package/src/examples/list-with-detail.vitest.tsx +290 -294
- package/src/examples/list-with-dropdown.tsx +1 -1
- package/src/examples/list-with-dropdown.vitest.tsx +190 -150
- package/src/examples/list-with-sections.tsx +12 -1
- package/src/examples/list-with-sections.vitest.tsx +390 -218
- package/src/examples/miscellaneous.tsx +1 -1
- package/src/examples/nested-navigation.tsx +4 -2
- package/src/examples/preferences-test.tsx +1 -1
- package/src/examples/simple-dropdown.tsx +1 -1
- package/src/examples/simple-file-picker.tsx +1 -1
- package/src/examples/simple-file-picker.vitest.tsx +538 -132
- package/src/examples/simple-grid.tsx +1 -1
- package/src/examples/simple-grid.vitest.tsx +258 -234
- package/src/examples/simple-hud.tsx +1 -1
- package/src/examples/simple-list-search.tsx +1 -1
- package/src/examples/simple-list.tsx +1 -1
- package/src/examples/simple-navigation.tsx +4 -2
- package/src/examples/simple-navigation.vitest.tsx +434 -238
- package/src/examples/store.tsx +1 -1
- package/src/examples/store.vitest.tsx +31 -10
- package/src/examples/submodule-diff.tsx +153 -0
- package/src/examples/tanstack-demo.tsx +1 -1
- package/src/examples/use-promise-demo.tsx +1 -1
- package/src/extensions/dev.tsx +74 -36
- package/src/extensions/dev.vitest.tsx +220 -0
- package/src/extensions/home.tsx +17 -118
- package/src/globals.ts +1 -1
- package/src/index.tsx +7 -1
- package/src/internal/date-picker-widget.tsx +56 -46
- package/src/internal/dialog.tsx +6 -6
- package/src/internal/scrollbox.tsx +15 -5
- package/src/release.tsx +159 -0
- package/src/state.tsx +2 -0
- package/src/store-api/search.test.tsx +4 -13
- package/src/theme.tsx +33 -8
- package/src/utils/run-command.tsx +204 -0
- package/src/utils.tsx +5 -3
- package/dist/ai.d.ts +0 -104
- package/dist/ai.d.ts.map +0 -1
- package/dist/ai.js +0 -135
- package/dist/ai.js.map +0 -1
- package/dist/apis/cache.test.d.ts +0 -2
- package/dist/apis/cache.test.d.ts.map +0 -1
- package/dist/apis/cache.test.js +0 -246
- package/dist/apis/cache.test.js.map +0 -1
- package/dist/apis/localstorage.test.d.ts +0 -2
- package/dist/apis/localstorage.test.d.ts.map +0 -1
- package/dist/apis/localstorage.test.js +0 -131
- package/dist/apis/localstorage.test.js.map +0 -1
- package/dist/apis/toast.test.d.ts +0 -2
- package/dist/apis/toast.test.d.ts.map +0 -1
- package/dist/apis/toast.test.js +0 -67
- package/dist/apis/toast.test.js.map +0 -1
- package/dist/build.test.d.ts +0 -2
- package/dist/build.test.d.ts.map +0 -1
- package/dist/build.test.js +0 -73
- package/dist/build.test.js.map +0 -1
- package/dist/cache.d.ts +0 -32
- package/dist/cache.d.ts.map +0 -1
- package/dist/cache.js +0 -205
- package/dist/cache.js.map +0 -1
- package/dist/cache.test.d.ts +0 -2
- package/dist/cache.test.d.ts.map +0 -1
- package/dist/cache.test.js +0 -246
- package/dist/cache.test.js.map +0 -1
- package/dist/clipboard.d.ts +0 -36
- package/dist/clipboard.d.ts.map +0 -1
- package/dist/clipboard.js +0 -154
- package/dist/clipboard.js.map +0 -1
- package/dist/components/form/form-type-only.d.ts +0 -174
- package/dist/components/form/form-type-only.d.ts.map +0 -1
- package/dist/components/form/form-type-only.js +0 -2
- package/dist/components/form/form-type-only.js.map +0 -1
- package/dist/components/form/use-form-handling.d.ts +0 -4
- package/dist/components/form/use-form-handling.d.ts.map +0 -1
- package/dist/components/form/use-form-handling.js +0 -37
- package/dist/components/form/use-form-handling.js.map +0 -1
- package/dist/dev-ui.d.ts +0 -7
- package/dist/dev-ui.d.ts.map +0 -1
- package/dist/dev-ui.js +0 -118
- package/dist/dev-ui.js.map +0 -1
- package/dist/environment.d.ts +0 -63
- package/dist/environment.d.ts.map +0 -1
- package/dist/environment.js +0 -189
- package/dist/environment.js.map +0 -1
- package/dist/examples/datepicker.d.ts +0 -2
- package/dist/examples/datepicker.d.ts.map +0 -1
- package/dist/examples/datepicker.js +0 -344
- package/dist/examples/datepicker.js.map +0 -1
- package/dist/examples/form-basic-arrow-keys.vitest.d.ts +0 -2
- package/dist/examples/form-basic-arrow-keys.vitest.d.ts.map +0 -1
- package/dist/examples/form-basic-arrow-keys.vitest.js +0 -46
- package/dist/examples/form-basic-arrow-keys.vitest.js.map +0 -1
- package/dist/examples/form-basic.vitest.d.ts +0 -2
- package/dist/examples/form-basic.vitest.d.ts.map +0 -1
- package/dist/examples/form-basic.vitest.js +0 -995
- package/dist/examples/form-basic.vitest.js.map +0 -1
- package/dist/examples/form-dropdown-with-sections.d.ts +0 -2
- package/dist/examples/form-dropdown-with-sections.d.ts.map +0 -1
- package/dist/examples/form-dropdown-with-sections.js +0 -13
- package/dist/examples/form-dropdown-with-sections.js.map +0 -1
- package/dist/examples/form-dropdown-with-sections.vitest.d.ts +0 -2
- package/dist/examples/form-dropdown-with-sections.vitest.d.ts.map +0 -1
- package/dist/examples/form-dropdown-with-sections.vitest.js +0 -75
- package/dist/examples/form-dropdown-with-sections.vitest.js.map +0 -1
- package/dist/examples/form-dropdown.vitest.d.ts +0 -2
- package/dist/examples/form-dropdown.vitest.d.ts.map +0 -1
- package/dist/examples/form-dropdown.vitest.js +0 -722
- package/dist/examples/form-dropdown.vitest.js.map +0 -1
- package/dist/examples/form-multiselect-dropdown.d.ts +0 -2
- package/dist/examples/form-multiselect-dropdown.d.ts.map +0 -1
- package/dist/examples/form-multiselect-dropdown.js +0 -13
- package/dist/examples/form-multiselect-dropdown.js.map +0 -1
- package/dist/examples/form-tagpicker.vitest.d.ts +0 -2
- package/dist/examples/form-tagpicker.vitest.d.ts.map +0 -1
- package/dist/examples/form-tagpicker.vitest.js +0 -491
- package/dist/examples/form-tagpicker.vitest.js.map +0 -1
- package/dist/examples/internal/nested-boxes.d.ts +0 -2
- package/dist/examples/internal/nested-boxes.d.ts.map +0 -1
- package/dist/examples/internal/nested-boxes.js +0 -7
- package/dist/examples/internal/nested-boxes.js.map +0 -1
- package/dist/examples/internal/simple-scrollbox.vitest.d.ts +0 -2
- package/dist/examples/internal/simple-scrollbox.vitest.d.ts.map +0 -1
- package/dist/examples/internal/simple-scrollbox.vitest.js +0 -88
- package/dist/examples/internal/simple-scrollbox.vitest.js.map +0 -1
- package/dist/examples/internal/unicode-square-repro.d.ts +0 -2
- package/dist/examples/internal/unicode-square-repro.d.ts.map +0 -1
- package/dist/examples/internal/unicode-square-repro.js +0 -7
- package/dist/examples/internal/unicode-square-repro.js.map +0 -1
- package/dist/examples/list-dropdown-default.vitest.d.ts +0 -2
- package/dist/examples/list-dropdown-default.vitest.d.ts.map +0 -1
- package/dist/examples/list-dropdown-default.vitest.js +0 -164
- package/dist/examples/list-dropdown-default.vitest.js.map +0 -1
- package/dist/examples/list-fetch-data.vitest.d.ts +0 -2
- package/dist/examples/list-fetch-data.vitest.d.ts.map +0 -1
- package/dist/examples/list-fetch-data.vitest.js +0 -103
- package/dist/examples/list-fetch-data.vitest.js.map +0 -1
- package/dist/examples/list-filter-navigation.d.ts +0 -2
- package/dist/examples/list-filter-navigation.d.ts.map +0 -1
- package/dist/examples/list-filter-navigation.js +0 -8
- package/dist/examples/list-filter-navigation.js.map +0 -1
- package/dist/examples/list-with-detail.vitest.d.ts +0 -2
- package/dist/examples/list-with-detail.vitest.d.ts.map +0 -1
- package/dist/examples/list-with-detail.vitest.js +0 -438
- package/dist/examples/list-with-detail.vitest.js.map +0 -1
- package/dist/examples/list-with-dropdown.vitest.d.ts +0 -2
- package/dist/examples/list-with-dropdown.vitest.d.ts.map +0 -1
- package/dist/examples/list-with-dropdown.vitest.js +0 -297
- package/dist/examples/list-with-dropdown.vitest.js.map +0 -1
- package/dist/examples/list-with-sections.vitest.d.ts +0 -2
- package/dist/examples/list-with-sections.vitest.d.ts.map +0 -1
- package/dist/examples/list-with-sections.vitest.js +0 -441
- package/dist/examples/list-with-sections.vitest.js.map +0 -1
- package/dist/examples/simple-file-picker.vitest.d.ts +0 -2
- package/dist/examples/simple-file-picker.vitest.d.ts.map +0 -1
- package/dist/examples/simple-file-picker.vitest.js +0 -277
- package/dist/examples/simple-file-picker.vitest.js.map +0 -1
- package/dist/examples/simple-grid.vitest.d.ts +0 -2
- package/dist/examples/simple-grid.vitest.d.ts.map +0 -1
- package/dist/examples/simple-grid.vitest.js +0 -498
- package/dist/examples/simple-grid.vitest.js.map +0 -1
- package/dist/examples/simple-navigation.vitest.d.ts +0 -2
- package/dist/examples/simple-navigation.vitest.d.ts.map +0 -1
- package/dist/examples/simple-navigation.vitest.js +0 -522
- package/dist/examples/simple-navigation.vitest.js.map +0 -1
- package/dist/examples/store.vitest.d.ts +0 -2
- package/dist/examples/store.vitest.d.ts.map +0 -1
- package/dist/examples/store.vitest.js +0 -48
- package/dist/examples/store.vitest.js.map +0 -1
- package/dist/home-command.d.ts +0 -8
- package/dist/home-command.d.ts.map +0 -1
- package/dist/home-command.js +0 -181
- package/dist/home-command.js.map +0 -1
- package/dist/hooks/hooks.test.d.ts +0 -2
- package/dist/hooks/hooks.test.d.ts.map +0 -1
- package/dist/hooks/hooks.test.js +0 -37
- package/dist/hooks/hooks.test.js.map +0 -1
- package/dist/hover-repro.d.ts +0 -2
- package/dist/hover-repro.d.ts.map +0 -1
- package/dist/hover-repro.js +0 -20
- package/dist/hover-repro.js.map +0 -1
- package/dist/localstorage.d.ts +0 -13
- package/dist/localstorage.d.ts.map +0 -1
- package/dist/localstorage.js +0 -190
- package/dist/localstorage.js.map +0 -1
- package/dist/localstorage.test.d.ts +0 -2
- package/dist/localstorage.test.d.ts.map +0 -1
- package/dist/localstorage.test.js +0 -131
- package/dist/localstorage.test.js.map +0 -1
- package/dist/oauth.d.ts +0 -142
- package/dist/oauth.d.ts.map +0 -1
- package/dist/oauth.js +0 -551
- package/dist/oauth.js.map +0 -1
- package/dist/preferences.d.ts +0 -23
- package/dist/preferences.d.ts.map +0 -1
- package/dist/preferences.js +0 -105
- package/dist/preferences.js.map +0 -1
- package/dist/store-api/download.test.d.ts +0 -2
- package/dist/store-api/download.test.d.ts.map +0 -1
- package/dist/store-api/download.test.js +0 -36
- package/dist/store-api/download.test.js.map +0 -1
- package/dist/store-api/extension.test.d.ts +0 -2
- package/dist/store-api/extension.test.d.ts.map +0 -1
- package/dist/store-api/extension.test.js +0 -22
- package/dist/store-api/extension.test.js.map +0 -1
- package/dist/store-api/search.test.d.ts +0 -2
- package/dist/store-api/search.test.d.ts.map +0 -1
- package/dist/store-api/search.test.js +0 -45
- package/dist/store-api/search.test.js.map +0 -1
- package/dist/store.d.ts +0 -21
- package/dist/store.d.ts.map +0 -1
- package/dist/store.js +0 -84
- package/dist/store.js.map +0 -1
- package/dist/toast.d.ts +0 -44
- package/dist/toast.d.ts.map +0 -1
- package/dist/toast.js +0 -221
- package/dist/toast.js.map +0 -1
- package/dist/utils.test.d.ts +0 -2
- package/dist/utils.test.d.ts.map +0 -1
- package/dist/utils.test.js +0 -152
- package/dist/utils.test.js.map +0 -1
- package/dist/window.d.ts +0 -12
- package/dist/window.d.ts.map +0 -1
- package/dist/window.js +0 -48
- package/dist/window.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-multiselect-dropdown.d.ts","sourceRoot":"","sources":["../../src/examples/form-multiselect-dropdown.tsx"],"names":[],"mappings":""}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@opentui/react/jsx-runtime";
|
|
2
|
-
import { useState } from 'react';
|
|
3
|
-
import { renderWithProviders } from '@termcast/cli/src/utils';
|
|
4
|
-
import { Form, ActionPanel, Action } from '@termcast/cli';
|
|
5
|
-
function FormMultiSelectDropdownExample() {
|
|
6
|
-
const [submitted, setSubmitted] = useState(null);
|
|
7
|
-
const handleSubmit = (data) => {
|
|
8
|
-
setSubmitted(data);
|
|
9
|
-
};
|
|
10
|
-
return (_jsxs(Form, { actions: _jsx(ActionPanel, { children: _jsx(Action.SubmitForm, { title: 'Submit Form', onSubmit: handleSubmit }) }), children: [_jsx(Form.Description, { title: 'Multi-Select Dropdown Demo', text: 'Test dropdown with multiple selection capability' }), _jsxs(Form.Dropdown, { id: 'tags', title: 'Select Tags', placeholder: 'Choose multiple tags...', info: 'You can select multiple items', hasMultipleSelection: true, defaultValue: ['work', 'urgent'], children: [_jsx(Form.Dropdown.Item, { value: 'work', title: 'Work', icon: '\uD83D\uDCBC' }), _jsx(Form.Dropdown.Item, { value: 'personal', title: 'Personal', icon: '\uD83C\uDFE0' }), _jsx(Form.Dropdown.Item, { value: 'urgent', title: 'Urgent', icon: '\uD83D\uDEA8' }), _jsx(Form.Dropdown.Item, { value: 'later', title: 'Later', icon: '\u23F0' }), _jsx(Form.Dropdown.Item, { value: 'done', title: 'Done', icon: '\u2705' }), _jsx(Form.Dropdown.Item, { value: 'canceled', title: 'Canceled', icon: '\u274C' })] }), _jsxs(Form.Dropdown, { id: 'singleChoice', title: 'Single Choice', placeholder: 'Choose one option...', hasMultipleSelection: false, children: [_jsx(Form.Dropdown.Item, { value: 'option1', title: 'Option 1' }), _jsx(Form.Dropdown.Item, { value: 'option2', title: 'Option 2' }), _jsx(Form.Dropdown.Item, { value: 'option3', title: 'Option 3' })] }), submitted && (_jsx(Form.Description, { title: 'Submitted Data', text: JSON.stringify(submitted, null, 2) }))] }));
|
|
11
|
-
}
|
|
12
|
-
renderWithProviders(_jsx(FormMultiSelectDropdownExample, {}));
|
|
13
|
-
//# sourceMappingURL=form-multiselect-dropdown.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"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0 @@
|
|
|
1
|
-
// node-pty does not work in bun, so we use vitest to run this test
|
|
2
|
-
import { test, expect, afterEach, beforeEach } from 'vitest';
|
|
3
|
-
import { NodeTuiDriver } from 'termcast/src/e2e-node';
|
|
4
|
-
let driver;
|
|
5
|
-
beforeEach(() => {
|
|
6
|
-
driver = new NodeTuiDriver('bun', ['src/examples/form-tagpicker.tsx'], {
|
|
7
|
-
cols: 70,
|
|
8
|
-
rows: 50,
|
|
9
|
-
});
|
|
10
|
-
});
|
|
11
|
-
afterEach(() => {
|
|
12
|
-
driver?.dispose();
|
|
13
|
-
});
|
|
14
|
-
test('form tagpicker shows inline options', async () => {
|
|
15
|
-
await driver.text({
|
|
16
|
-
waitFor: (text) => {
|
|
17
|
-
// wait for form to show up
|
|
18
|
-
return /TagPicker Component Demo/i.test(text);
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
// Small delay to ensure form components are fully rendered
|
|
22
|
-
await driver.waitIdle();
|
|
23
|
-
const initialSnapshot = await driver.text();
|
|
24
|
-
expect(initialSnapshot).toMatchInlineSnapshot(`
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
TagPicker Component Demo
|
|
28
|
-
│ Test tag picker with multiple selection support
|
|
29
|
-
│
|
|
30
|
-
◆ Favorite Sport
|
|
31
|
-
│ Choose your favorite sport...
|
|
32
|
-
│
|
|
33
|
-
│› ○ Basketball
|
|
34
|
-
│ ○ Football
|
|
35
|
-
│ ○ Tennis
|
|
36
|
-
│ ○ Baseball
|
|
37
|
-
│ ↑↓ to see more options
|
|
38
|
-
│
|
|
39
|
-
│ Select your favorite sport from the list
|
|
40
|
-
│
|
|
41
|
-
◇ Country
|
|
42
|
-
│ Germany
|
|
43
|
-
│
|
|
44
|
-
│ ● Germany
|
|
45
|
-
│ ○ India
|
|
46
|
-
│ ○ Netherlands
|
|
47
|
-
│ ○ Norway
|
|
48
|
-
│ ↑↓ to see more options
|
|
49
|
-
│
|
|
50
|
-
└
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
↵ submit ↑↓ navigate ^k actions"
|
|
54
|
-
`);
|
|
55
|
-
// Select Basketball by pressing space
|
|
56
|
-
await driver.keys.space();
|
|
57
|
-
const afterSelectBasketballSnapshot = await driver.text();
|
|
58
|
-
expect(afterSelectBasketballSnapshot).toMatchInlineSnapshot(`
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
TagPicker Component Demo
|
|
62
|
-
│ Test tag picker with multiple selection support
|
|
63
|
-
│
|
|
64
|
-
◆ Favorite Sport
|
|
65
|
-
│ Basketball
|
|
66
|
-
│
|
|
67
|
-
│› ● Basketball
|
|
68
|
-
│ ○ Football
|
|
69
|
-
│ ○ Tennis
|
|
70
|
-
│ ○ Baseball
|
|
71
|
-
│ ↑↓ to see more options
|
|
72
|
-
│
|
|
73
|
-
│ Select your favorite sport from the list
|
|
74
|
-
│
|
|
75
|
-
◇ Country
|
|
76
|
-
│ Germany
|
|
77
|
-
│
|
|
78
|
-
│ ● Germany
|
|
79
|
-
│ ○ India
|
|
80
|
-
│ ○ Netherlands
|
|
81
|
-
│ ○ Norway
|
|
82
|
-
│ ↑↓ to see more options
|
|
83
|
-
│
|
|
84
|
-
└
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
↵ submit ↑↓ navigate ^k actions"
|
|
88
|
-
`);
|
|
89
|
-
// Navigate down
|
|
90
|
-
await driver.keys.down();
|
|
91
|
-
const afterDownSnapshot = await driver.text();
|
|
92
|
-
expect(afterDownSnapshot).toMatchInlineSnapshot(`
|
|
93
|
-
"
|
|
94
|
-
|
|
95
|
-
TagPicker Component Demo
|
|
96
|
-
│ Test tag picker with multiple selection support
|
|
97
|
-
│
|
|
98
|
-
◆ Favorite Sport
|
|
99
|
-
│ Basketball
|
|
100
|
-
│
|
|
101
|
-
│ ● Basketball
|
|
102
|
-
│› ○ Football
|
|
103
|
-
│ ○ Tennis
|
|
104
|
-
│ ○ Baseball
|
|
105
|
-
│ ↑↓ to see more options
|
|
106
|
-
│
|
|
107
|
-
│ Select your favorite sport from the list
|
|
108
|
-
│
|
|
109
|
-
◇ Country
|
|
110
|
-
│ Germany
|
|
111
|
-
│
|
|
112
|
-
│ ● Germany
|
|
113
|
-
│ ○ India
|
|
114
|
-
│ ○ Netherlands
|
|
115
|
-
│ ○ Norway
|
|
116
|
-
│ ↑↓ to see more options
|
|
117
|
-
│
|
|
118
|
-
└
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
↵ submit ↑↓ navigate ^k actions"
|
|
122
|
-
`);
|
|
123
|
-
// Navigate down to see pagination
|
|
124
|
-
await driver.keys.down();
|
|
125
|
-
await driver.keys.down();
|
|
126
|
-
await driver.keys.down();
|
|
127
|
-
await driver.keys.down();
|
|
128
|
-
const afterMultipleDownSnapshot = await driver.text();
|
|
129
|
-
expect(afterMultipleDownSnapshot).toMatchInlineSnapshot(`
|
|
130
|
-
"
|
|
131
|
-
|
|
132
|
-
TagPicker Component Demo
|
|
133
|
-
│ Test tag picker with multiple selection support
|
|
134
|
-
│
|
|
135
|
-
◆ Favorite Sport
|
|
136
|
-
│ Basketball
|
|
137
|
-
│
|
|
138
|
-
│ ○ Tennis
|
|
139
|
-
│ ○ Baseball
|
|
140
|
-
│ ○ Golf
|
|
141
|
-
│› ○ Swimming
|
|
142
|
-
│ ↑↓ to see more options
|
|
143
|
-
│
|
|
144
|
-
│ Select your favorite sport from the list
|
|
145
|
-
│
|
|
146
|
-
◇ Country
|
|
147
|
-
│ Germany
|
|
148
|
-
│
|
|
149
|
-
│ ● Germany
|
|
150
|
-
│ ○ India
|
|
151
|
-
│ ○ Netherlands
|
|
152
|
-
│ ○ Norway
|
|
153
|
-
│ ↑↓ to see more options
|
|
154
|
-
│
|
|
155
|
-
└
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
↵ submit ↑↓ navigate ^k actions"
|
|
159
|
-
`);
|
|
160
|
-
// Select an item
|
|
161
|
-
await driver.keys.enter();
|
|
162
|
-
const afterSelectSnapshot = await driver.text();
|
|
163
|
-
expect(afterSelectSnapshot).toMatchInlineSnapshot(`
|
|
164
|
-
"
|
|
165
|
-
|
|
166
|
-
TagPicker Component Demo
|
|
167
|
-
│ Test tag picker with multiple selection support
|
|
168
|
-
│
|
|
169
|
-
◆ Favorite Sport
|
|
170
|
-
│ Basketball, Swimming
|
|
171
|
-
│
|
|
172
|
-
│ ○ Tennis
|
|
173
|
-
│ ○ Baseball
|
|
174
|
-
│ ○ Golf
|
|
175
|
-
│› ● Swimming
|
|
176
|
-
│ ↑↓ to see more options
|
|
177
|
-
│
|
|
178
|
-
│ Select your favorite sport from the list
|
|
179
|
-
│
|
|
180
|
-
◇ Country
|
|
181
|
-
│ Germany
|
|
182
|
-
│
|
|
183
|
-
│ ● Germany
|
|
184
|
-
│ ○ India
|
|
185
|
-
│ ○ Netherlands
|
|
186
|
-
│ ○ Norway
|
|
187
|
-
│ ↑↓ to see more options
|
|
188
|
-
│
|
|
189
|
-
└
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
↵ submit ↑↓ navigate ^k actions"
|
|
193
|
-
`);
|
|
194
|
-
}, 15000);
|
|
195
|
-
test('form tagpicker keyboard navigation', async () => {
|
|
196
|
-
await driver.text({
|
|
197
|
-
waitFor: (text) => {
|
|
198
|
-
// wait for form to show up
|
|
199
|
-
return /TagPicker Component Demo/i.test(text);
|
|
200
|
-
},
|
|
201
|
-
});
|
|
202
|
-
// Select Basketball by pressing space
|
|
203
|
-
await driver.keys.space();
|
|
204
|
-
const afterSelectSnapshot = await driver.text();
|
|
205
|
-
expect(afterSelectSnapshot).toMatchInlineSnapshot(`
|
|
206
|
-
"
|
|
207
|
-
|
|
208
|
-
TagPicker Component Demo
|
|
209
|
-
│ Test tag picker with multiple selection support
|
|
210
|
-
│
|
|
211
|
-
◆ Favorite Sport
|
|
212
|
-
│ Basketball
|
|
213
|
-
│
|
|
214
|
-
│› ● Basketball
|
|
215
|
-
│ ○ Football
|
|
216
|
-
│ ○ Tennis
|
|
217
|
-
│ ○ Baseball
|
|
218
|
-
│ ↑↓ to see more options
|
|
219
|
-
│
|
|
220
|
-
│ Select your favorite sport from the list
|
|
221
|
-
│
|
|
222
|
-
◇ Country
|
|
223
|
-
│ Germany
|
|
224
|
-
│
|
|
225
|
-
│ ● Germany
|
|
226
|
-
│ ○ India
|
|
227
|
-
│ ○ Netherlands
|
|
228
|
-
│ ○ Norway
|
|
229
|
-
│ ↑↓ to see more options
|
|
230
|
-
│
|
|
231
|
-
└
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
↵ submit ↑↓ navigate ^k actions"
|
|
235
|
-
`);
|
|
236
|
-
// Navigate to last visible item
|
|
237
|
-
await driver.keys.down();
|
|
238
|
-
await driver.keys.down();
|
|
239
|
-
await driver.keys.down();
|
|
240
|
-
await driver.keys.down();
|
|
241
|
-
const lastVisibleSnapshot = await driver.text();
|
|
242
|
-
expect(lastVisibleSnapshot).toMatchInlineSnapshot(`
|
|
243
|
-
"
|
|
244
|
-
|
|
245
|
-
TagPicker Component Demo
|
|
246
|
-
│ Test tag picker with multiple selection support
|
|
247
|
-
│
|
|
248
|
-
◆ Favorite Sport
|
|
249
|
-
│ Basketball
|
|
250
|
-
│
|
|
251
|
-
│ ○ Football
|
|
252
|
-
│ ○ Tennis
|
|
253
|
-
│ ○ Baseball
|
|
254
|
-
│› ○ Golf
|
|
255
|
-
│ ↑↓ to see more options
|
|
256
|
-
│
|
|
257
|
-
│ Select your favorite sport from the list
|
|
258
|
-
│
|
|
259
|
-
◇ Country
|
|
260
|
-
│ Germany
|
|
261
|
-
│
|
|
262
|
-
│ ● Germany
|
|
263
|
-
│ ○ India
|
|
264
|
-
│ ○ Netherlands
|
|
265
|
-
│ ○ Norway
|
|
266
|
-
│ ↑↓ to see more options
|
|
267
|
-
│
|
|
268
|
-
└
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
↵ submit ↑↓ navigate ^k actions"
|
|
272
|
-
`);
|
|
273
|
-
// Navigate to next page
|
|
274
|
-
await driver.keys.down();
|
|
275
|
-
const nextPageSnapshot = await driver.text();
|
|
276
|
-
expect(nextPageSnapshot).toMatchInlineSnapshot(`
|
|
277
|
-
"
|
|
278
|
-
|
|
279
|
-
TagPicker Component Demo
|
|
280
|
-
│ Test tag picker with multiple selection support
|
|
281
|
-
│
|
|
282
|
-
◆ Favorite Sport
|
|
283
|
-
│ Basketball
|
|
284
|
-
│
|
|
285
|
-
│ ○ Tennis
|
|
286
|
-
│ ○ Baseball
|
|
287
|
-
│ ○ Golf
|
|
288
|
-
│› ○ Swimming
|
|
289
|
-
│ ↑↓ to see more options
|
|
290
|
-
│
|
|
291
|
-
│ Select your favorite sport from the list
|
|
292
|
-
│
|
|
293
|
-
◇ Country
|
|
294
|
-
│ Germany
|
|
295
|
-
│
|
|
296
|
-
│ ● Germany
|
|
297
|
-
│ ○ India
|
|
298
|
-
│ ○ Netherlands
|
|
299
|
-
│ ○ Norway
|
|
300
|
-
│ ↑↓ to see more options
|
|
301
|
-
│
|
|
302
|
-
└
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
↵ submit ↑↓ navigate ^k actions"
|
|
306
|
-
`);
|
|
307
|
-
// Go back up
|
|
308
|
-
await driver.keys.up();
|
|
309
|
-
const backToPreviousPageSnapshot = await driver.text();
|
|
310
|
-
expect(backToPreviousPageSnapshot).toMatchInlineSnapshot(`
|
|
311
|
-
"
|
|
312
|
-
|
|
313
|
-
TagPicker Component Demo
|
|
314
|
-
│ Test tag picker with multiple selection support
|
|
315
|
-
│
|
|
316
|
-
◆ Favorite Sport
|
|
317
|
-
│ Basketball
|
|
318
|
-
│
|
|
319
|
-
│ ○ Tennis
|
|
320
|
-
│ ○ Baseball
|
|
321
|
-
│› ○ Golf
|
|
322
|
-
│ ○ Swimming
|
|
323
|
-
│ ↑↓ to see more options
|
|
324
|
-
│
|
|
325
|
-
│ Select your favorite sport from the list
|
|
326
|
-
│
|
|
327
|
-
◇ Country
|
|
328
|
-
│ Germany
|
|
329
|
-
│
|
|
330
|
-
│ ● Germany
|
|
331
|
-
│ ○ India
|
|
332
|
-
│ ○ Netherlands
|
|
333
|
-
│ ○ Norway
|
|
334
|
-
│ ↑↓ to see more options
|
|
335
|
-
│
|
|
336
|
-
└
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
↵ submit ↑↓ navigate ^k actions"
|
|
340
|
-
`);
|
|
341
|
-
// Escape doesn't close anything since tagpicker is always inline
|
|
342
|
-
await driver.keys.escape();
|
|
343
|
-
const afterEscapeSnapshot = await driver.text();
|
|
344
|
-
expect(afterEscapeSnapshot).toMatchInlineSnapshot(`
|
|
345
|
-
"
|
|
346
|
-
|
|
347
|
-
TagPicker Component Demo
|
|
348
|
-
│ Test tag picker with multiple selection support
|
|
349
|
-
│
|
|
350
|
-
◆ Favorite Sport
|
|
351
|
-
│ Basketball
|
|
352
|
-
│
|
|
353
|
-
│ ○ Tennis
|
|
354
|
-
│ ○ Baseball
|
|
355
|
-
│› ○ Golf
|
|
356
|
-
│ ○ Swimming
|
|
357
|
-
│ ↑↓ to see more options
|
|
358
|
-
│
|
|
359
|
-
│ Select your favorite sport from the list
|
|
360
|
-
│
|
|
361
|
-
◇ Country
|
|
362
|
-
│ Germany
|
|
363
|
-
│
|
|
364
|
-
│ ● Germany
|
|
365
|
-
│ ○ India
|
|
366
|
-
│ ○ Netherlands
|
|
367
|
-
│ ○ Norway
|
|
368
|
-
│ ↑↓ to see more options
|
|
369
|
-
│
|
|
370
|
-
└
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
↵ submit ↑↓ navigate ^k actions"
|
|
374
|
-
`);
|
|
375
|
-
}, 15000);
|
|
376
|
-
test('form tagpicker with default value', async () => {
|
|
377
|
-
await driver.text({
|
|
378
|
-
waitFor: (text) => {
|
|
379
|
-
// wait for form to show up
|
|
380
|
-
return /TagPicker Component Demo/i.test(text);
|
|
381
|
-
},
|
|
382
|
-
});
|
|
383
|
-
// Navigate to second tagpicker
|
|
384
|
-
await driver.keys.tab();
|
|
385
|
-
const secondTagpickerFocusedSnapshot = await driver.text();
|
|
386
|
-
expect(secondTagpickerFocusedSnapshot).toMatchInlineSnapshot(`
|
|
387
|
-
"
|
|
388
|
-
|
|
389
|
-
TagPicker Component Demo
|
|
390
|
-
│ Test tag picker with multiple selection support
|
|
391
|
-
│
|
|
392
|
-
◇ Favorite Sport
|
|
393
|
-
│ Choose your favorite sport...
|
|
394
|
-
│
|
|
395
|
-
│ ○ Basketball
|
|
396
|
-
│ ○ Football
|
|
397
|
-
│ ○ Tennis
|
|
398
|
-
│ ○ Baseball
|
|
399
|
-
│ ↑↓ to see more options
|
|
400
|
-
│
|
|
401
|
-
│ Select your favorite sport from the list
|
|
402
|
-
│
|
|
403
|
-
◆ Country
|
|
404
|
-
│ Germany
|
|
405
|
-
│
|
|
406
|
-
│› ● Germany
|
|
407
|
-
│ ○ India
|
|
408
|
-
│ ○ Netherlands
|
|
409
|
-
│ ○ Norway
|
|
410
|
-
│ ↑↓ to see more options
|
|
411
|
-
│
|
|
412
|
-
└
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
↵ submit ↑↓ navigate ^k actions"
|
|
416
|
-
`);
|
|
417
|
-
// Deselect Germany by pressing space (it was selected by default)
|
|
418
|
-
await driver.keys.space();
|
|
419
|
-
const afterDeselectGermanySnapshot = await driver.text();
|
|
420
|
-
expect(afterDeselectGermanySnapshot).toMatchInlineSnapshot(`
|
|
421
|
-
"
|
|
422
|
-
|
|
423
|
-
TagPicker Component Demo
|
|
424
|
-
│ Test tag picker with multiple selection support
|
|
425
|
-
│
|
|
426
|
-
◇ Favorite Sport
|
|
427
|
-
│ Choose your favorite sport...
|
|
428
|
-
│
|
|
429
|
-
│ ○ Basketball
|
|
430
|
-
│ ○ Football
|
|
431
|
-
│ ○ Tennis
|
|
432
|
-
│ ○ Baseball
|
|
433
|
-
│ ↑↓ to see more options
|
|
434
|
-
│
|
|
435
|
-
│ Select your favorite sport from the list
|
|
436
|
-
│
|
|
437
|
-
◆ Country
|
|
438
|
-
│ Select a country
|
|
439
|
-
│
|
|
440
|
-
│› ○ Germany
|
|
441
|
-
│ ○ India
|
|
442
|
-
│ ○ Netherlands
|
|
443
|
-
│ ○ Norway
|
|
444
|
-
│ ↑↓ to see more options
|
|
445
|
-
│
|
|
446
|
-
└
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
↵ submit ↑↓ navigate ^k actions"
|
|
450
|
-
`);
|
|
451
|
-
// Submit form
|
|
452
|
-
await driver.keys.escape();
|
|
453
|
-
await driver.keys.cmdEnter();
|
|
454
|
-
const afterSubmitSnapshot = await driver.text({
|
|
455
|
-
waitFor: (text) => {
|
|
456
|
-
return /Submitted Data/i.test(text);
|
|
457
|
-
},
|
|
458
|
-
});
|
|
459
|
-
expect(afterSubmitSnapshot).toMatchInlineSnapshot(`
|
|
460
|
-
"
|
|
461
|
-
|
|
462
|
-
TagPicker Component Demo
|
|
463
|
-
│ Test tag picker with multiple selection support
|
|
464
|
-
│
|
|
465
|
-
◇ Favorite Sport
|
|
466
|
-
│ Choose your favorite sport...
|
|
467
|
-
│
|
|
468
|
-
│ ○ Basketball
|
|
469
|
-
│ ○ Football
|
|
470
|
-
│ ○ Tennis
|
|
471
|
-
│ ○ Baseball
|
|
472
|
-
│ ↑↓ to see more options
|
|
473
|
-
│
|
|
474
|
-
│ Select your favorite sport from the list
|
|
475
|
-
│
|
|
476
|
-
◆ Country
|
|
477
|
-
│ Select a country
|
|
478
|
-
│
|
|
479
|
-
│› ○ Germany
|
|
480
|
-
│ ○ India
|
|
481
|
-
│ ○ Netherlands
|
|
482
|
-
│ ○ Norway
|
|
483
|
-
│ ↑↓ to see more options
|
|
484
|
-
│
|
|
485
|
-
└
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
↵ submit ↑↓ navigate ^k actions"
|
|
489
|
-
`);
|
|
490
|
-
}, 15000);
|
|
491
|
-
//# sourceMappingURL=form-tagpicker.vitest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-tagpicker.vit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,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nested-boxes.d.ts","sourceRoot":"","sources":["../../../src/examples/internal/nested-boxes.tsx"],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@opentui/react/jsx-runtime";
|
|
2
|
-
import { renderWithProviders } from '@termcast/cli';
|
|
3
|
-
function NestedBoxes() {
|
|
4
|
-
return (_jsxs("box", { backgroundColor: "gray", gap: 1, children: [_jsx("box", { backgroundColor: "blue", children: "Box 1" }), _jsx("box", { backgroundColor: "green", children: "Box 2" })] }));
|
|
5
|
-
}
|
|
6
|
-
renderWithProviders(_jsx(NestedBoxes, {}));
|
|
7
|
-
//# sourceMappingURL=nested-boxes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nested-boxes.js","sourceRoot":"","sources":["../../../src/examples/internal/nested-boxes.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAEnD,SAAS,WAAW;IAClB,OAAO,CACL,eAAK,eAAe,EAAC,MAAM,EAAC,GAAG,EAAE,CAAC,aAChC,cAAK,eAAe,EAAC,MAAM,sBAErB,EACN,cAAK,eAAe,EAAC,OAAO,sBAEtB,IACF,CACP,CAAA;AACH,CAAC;AAED,mBAAmB,CAAC,KAAC,WAAW,KAAG,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"simple-scrollbox.vitest.d.ts","sourceRoot":"","sources":["../../../src/examples/internal/simple-scrollbox.vitest.tsx"],"names":[],"mappings":""}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { expect, test } from 'vitest';
|
|
2
|
-
import { NodeTuiDriver } from 'termcast/src/e2e-node';
|
|
3
|
-
test('simple scrollbox navigation and scrolling', async () => {
|
|
4
|
-
const driver = new NodeTuiDriver('bun', ['src/examples/internal/simple-scrollbox.tsx']);
|
|
5
|
-
await driver.text({
|
|
6
|
-
waitFor: (text) => text.includes('Simple ScrollBox Demo'),
|
|
7
|
-
});
|
|
8
|
-
const initialText = await driver.text();
|
|
9
|
-
expect(initialText).toMatchInlineSnapshot(`
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
Simple ScrollBox Demo
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
Item 1 - This is content for item number 1. Lorem ipsum dolor sit amet, cons
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Item 2 - This is content for item number 2. Lorem ipsum dolor sit amet, cons
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
Item 3 - This is content for item number 3. Lorem ipsum dolor sit amet, cons
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
Item 4 - This is content for item number 4. Lorem ipsum dolor sit amet, cons
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
Item 5 - This is content for item number 5. Lorem ipsum dolor sit amet, cons"
|
|
33
|
-
`);
|
|
34
|
-
await driver.scrollDown(3);
|
|
35
|
-
const afterScrollDown = await driver.text();
|
|
36
|
-
expect(afterScrollDown).toMatchInlineSnapshot(`
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
Simple ScrollBox Demo
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
Item 2 - This is content for item number 2. Lorem ipsum dolor sit amet, cons
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
Item 3 - This is content for item number 3. Lorem ipsum dolor sit amet, cons
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
Item 4 - This is content for item number 4. Lorem ipsum dolor sit amet, cons
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
Item 5 - This is content for item number 5. Lorem ipsum dolor sit amet, cons"
|
|
58
|
-
`);
|
|
59
|
-
await driver.scrollUp(2);
|
|
60
|
-
const afterScrollUp = await driver.text();
|
|
61
|
-
expect(afterScrollUp).toMatchInlineSnapshot(`
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
Simple ScrollBox Demo
|
|
66
|
-
|
|
67
|
-
Item 1 - This is content for item number 1. Lorem ipsum dolor sit amet, cons
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
Item 2 - This is content for item number 2. Lorem ipsum dolor sit amet, cons
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
Item 3 - This is content for item number 3. Lorem ipsum dolor sit amet, cons
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
Item 4 - This is content for item number 4. Lorem ipsum dolor sit amet, cons
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
Item 5 - This is content for item number 5. Lorem ipsum dolor sit amet, cons"
|
|
84
|
-
`);
|
|
85
|
-
await driver.keys.escape();
|
|
86
|
-
driver.dispose();
|
|
87
|
-
}, 30000);
|
|
88
|
-
//# sourceMappingURL=simple-scrollbox.vitest.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"simple-scrollbox.vitest.js","sourceRoot":"","sources":["../../../src/examples/internal/simple-scrollbox.vitest.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAErD,IAAI,CAAC,2CAA2C,EAAE,KAAK,IAAI,EAAE;IAC3D,MAAM,MAAM,GAAG,IAAI,aAAa,CAAC,KAAK,EAAE,CAAC,4CAA4C,CAAC,CAAC,CAAA;IAEvF,MAAM,MAAM,CAAC,IAAI,CAAC;QAChB,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,uBAAuB,CAAC;KAC1D,CAAC,CAAA;IAEF,MAAM,WAAW,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAA;IACvC,MAAM,CAAC,WAAW,CAAC,CAAC,qBAAqB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;GAwBzC,CAAC,CAAA;IAEF,MAAM,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAA;IAC1B,MAAM,eAAe,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAA;IAC3C,MAAM,CAAC,eAAe,CAAC,CAAC,qBAAqB,CAAC;;;;;;;;;;;;;;;;;;;;;;GAsB7C,CAAC,CAAA;IAEF,MAAM,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAA;IACxB,MAAM,aAAa,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAA;IACzC,MAAM,CAAC,aAAa,CAAC,CAAC,qBAAqB,CAAC;;;;;;;;;;;;;;;;;;;;;;;GAuB3C,CAAC,CAAA;IAEF,MAAM,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,CAAA;IAE1B,MAAM,CAAC,OAAO,EAAE,CAAA;AAClB,CAAC,EAAE,KAAK,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unicode-square-repro.d.ts","sourceRoot":"","sources":["../../../src/examples/internal/unicode-square-repro.tsx"],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@opentui/react/jsx-runtime";
|
|
2
|
-
import { render } from '@opentui/react';
|
|
3
|
-
function UnicodeSquareRepro() {
|
|
4
|
-
return (_jsxs("box", { flexDirection: 'column', gap: 1, children: [_jsx("text", { children: "Direct unicode square: \u25AA\uFE0E" }), _jsx("box", { flexDirection: 'row', children: _jsx("text", { children: "Unicode square in flex row: \u25AA\uFE0E" }) }), _jsx("box", { flexDirection: 'row', children: _jsx("text", { children: "Unicode square with key prop: \u25AA\uFE0E" }, 'static') }), _jsx("box", { flexDirection: 'row', children: _jsx("text", { children: "Unicode square with dynamic key: \u25AA\uFE0E" }, String(false)) })] }));
|
|
5
|
-
}
|
|
6
|
-
render(_jsx(UnicodeSquareRepro, {}));
|
|
7
|
-
//# sourceMappingURL=unicode-square-repro.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unicode-square-repro.js","sourceRoot":"","sources":["../../../src/examples/internal/unicode-square-repro.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAEvC,SAAS,kBAAkB;IACzB,OAAO,CACL,eAAK,aAAa,EAAC,QAAQ,EAAC,GAAG,EAAE,CAAC,aAChC,iEAAsC,EACtC,cAAK,aAAa,EAAC,KAAK,YACtB,sEAA2C,GACvC,EACN,cAAK,aAAa,EAAC,KAAK,YACtB,yEAAU,QAAQ,CAAwC,GACtD,EACN,cAAK,aAAa,EAAC,KAAK,YACtB,4EAAW,MAAM,CAAC,KAAK,CAAC,CAA4C,GAChE,IACF,CACP,CAAA;AACH,CAAC;AAED,MAAM,CAAC,KAAC,kBAAkB,KAAG,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-dropdown-default.vitest.d.ts","sourceRoot":"","sources":["../../src/examples/list-dropdown-default.vitest.tsx"],"names":[],"mappings":""}
|