termcast 1.3.10 → 1.3.16
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,24 +1,24 @@
|
|
|
1
|
-
// node-pty does not work in bun, so we use vitest to run this test
|
|
2
1
|
import { test, expect, afterEach, beforeEach } from 'vitest'
|
|
3
|
-
import {
|
|
2
|
+
import { launchTerminal, Session } from 'tuistory/src'
|
|
4
3
|
|
|
5
|
-
let
|
|
4
|
+
let session: Session
|
|
6
5
|
|
|
7
|
-
beforeEach(() => {
|
|
8
|
-
|
|
6
|
+
beforeEach(async () => {
|
|
7
|
+
session = await launchTerminal({
|
|
8
|
+
command: 'bun',
|
|
9
|
+
args: ['src/examples/list-with-dropdown.tsx'],
|
|
9
10
|
cols: 70,
|
|
10
|
-
rows:
|
|
11
|
+
rows: 25,
|
|
11
12
|
})
|
|
12
13
|
})
|
|
13
14
|
|
|
14
15
|
afterEach(() => {
|
|
15
|
-
|
|
16
|
+
session?.close()
|
|
16
17
|
})
|
|
17
18
|
|
|
18
19
|
test('list with dropdown navigation', async () => {
|
|
19
|
-
const initialSnapshot = await
|
|
20
|
+
const initialSnapshot = await session.text({
|
|
20
21
|
waitFor: (text) => {
|
|
21
|
-
// wait for list to show up with all items loaded
|
|
22
22
|
return (
|
|
23
23
|
/search beers/i.test(text) &&
|
|
24
24
|
text.includes('Beer ▾') &&
|
|
@@ -31,12 +31,12 @@ test('list with dropdown navigation', async () => {
|
|
|
31
31
|
expect(initialSnapshot).toMatchInlineSnapshot(`
|
|
32
32
|
"
|
|
33
33
|
|
|
34
|
+
|
|
34
35
|
Search Beers ───────────────────────────────────────────────────
|
|
35
36
|
|
|
36
37
|
|
|
37
38
|
Search... Beer ▾
|
|
38
39
|
|
|
39
|
-
|
|
40
40
|
›Augustiner Helles Beer
|
|
41
41
|
Camden Hells Beer
|
|
42
42
|
Leffe Blonde Beer
|
|
@@ -49,41 +49,44 @@ test('list with dropdown navigation', async () => {
|
|
|
49
49
|
Apple Juice Juice
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
↵ select ↑↓ navigate ^k actions"
|
|
53
|
-
`)
|
|
54
|
-
|
|
55
|
-
// Press ctrl+p to open dropdown
|
|
56
|
-
await driver.keys.ctrlP()
|
|
57
52
|
|
|
58
|
-
// Capture snapshot immediately after pressing ctrl+p
|
|
59
|
-
const immediatelyAfterCtrlPSnapshot = await driver.text()
|
|
60
|
-
expect(immediatelyAfterCtrlPSnapshot).toMatchInlineSnapshot(`
|
|
61
|
-
"
|
|
62
53
|
|
|
63
54
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
Search...
|
|
67
|
-
|
|
68
|
-
Alcoholic Beverages
|
|
69
|
-
›Beer
|
|
70
|
-
Wine
|
|
71
|
-
|
|
72
|
-
Non-Alcoholic
|
|
73
|
-
Soda
|
|
74
|
-
Juice
|
|
75
|
-
|
|
55
|
+
↵ select ↑↓ navigate ^k actions"
|
|
56
|
+
`)
|
|
76
57
|
|
|
77
|
-
|
|
58
|
+
await session.press(['ctrl', 'p'])
|
|
78
59
|
|
|
60
|
+
const immediatelyAfterCtrlPSnapshot = await session.text()
|
|
61
|
+
expect(immediatelyAfterCtrlPSnapshot).toMatchInlineSnapshot(`
|
|
62
|
+
"
|
|
79
63
|
|
|
80
64
|
|
|
81
|
-
|
|
65
|
+
Search Beers ───────────────────────────────────────────────────
|
|
66
|
+
┃ ┃
|
|
67
|
+
┃ Select Drink Type esc ┃
|
|
68
|
+
┃ ┃
|
|
69
|
+
┃ Search... ┃
|
|
70
|
+
┃ ┃
|
|
71
|
+
┃ ┃
|
|
72
|
+
┃ Alcoholic Beverages ┃
|
|
73
|
+
┃ ›Beer ┃
|
|
74
|
+
┃ Wine ┃
|
|
75
|
+
┃ ┃
|
|
76
|
+
┃ Non-Alcoholic ┃
|
|
77
|
+
┃ Soda ┃
|
|
78
|
+
┃ Juice ┃
|
|
79
|
+
┃ ┃
|
|
80
|
+
┃ ┃
|
|
81
|
+
┃ ↵ select ↑↓ navigate ┃
|
|
82
|
+
┃ ┃
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
↵ select ↑↓ navigate ^k actions"
|
|
82
86
|
`)
|
|
83
87
|
|
|
84
|
-
const afterCtrlPSnapshot = await
|
|
88
|
+
const afterCtrlPSnapshot = await session.text({
|
|
85
89
|
waitFor: (text) => {
|
|
86
|
-
// wait for dropdown to show up
|
|
87
90
|
return /select drink type/i.test(text)
|
|
88
91
|
},
|
|
89
92
|
})
|
|
@@ -91,112 +94,127 @@ test('list with dropdown navigation', async () => {
|
|
|
91
94
|
"
|
|
92
95
|
|
|
93
96
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
97
|
+
Search Beers ───────────────────────────────────────────────────
|
|
98
|
+
┃ ┃
|
|
99
|
+
┃ Select Drink Type esc ┃
|
|
100
|
+
┃ ┃
|
|
101
|
+
┃ Search... ┃
|
|
102
|
+
┃ ┃
|
|
103
|
+
┃ ┃
|
|
104
|
+
┃ Alcoholic Beverages ┃
|
|
105
|
+
┃ ›Beer ┃
|
|
106
|
+
┃ Wine ┃
|
|
107
|
+
┃ ┃
|
|
108
|
+
┃ Non-Alcoholic ┃
|
|
109
|
+
┃ Soda ┃
|
|
110
|
+
┃ Juice ┃
|
|
111
|
+
┃ ┃
|
|
112
|
+
┃ ┃
|
|
113
|
+
┃ ↵ select ↑↓ navigate ┃
|
|
114
|
+
┃ ┃
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
↵ select ↑↓ navigate ^k actions"
|
|
112
118
|
`)
|
|
113
119
|
|
|
114
|
-
|
|
115
|
-
await driver.keys.down()
|
|
120
|
+
await session.press('down')
|
|
116
121
|
|
|
117
|
-
const afterDownSnapshot = await
|
|
122
|
+
const afterDownSnapshot = await session.text()
|
|
118
123
|
expect(afterDownSnapshot).toMatchInlineSnapshot(`
|
|
119
124
|
"
|
|
120
125
|
|
|
121
126
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
127
|
+
Search Beers ───────────────────────────────────────────────────
|
|
128
|
+
┃ ┃
|
|
129
|
+
┃ Select Drink Type esc ┃
|
|
130
|
+
┃ ┃
|
|
131
|
+
┃ Search... ┃
|
|
132
|
+
┃ ┃
|
|
133
|
+
┃ ┃
|
|
134
|
+
┃ Alcoholic Beverages ┃
|
|
135
|
+
┃ Beer ┃
|
|
136
|
+
┃ ›Wine ┃
|
|
137
|
+
┃ ┃
|
|
138
|
+
┃ Non-Alcoholic ┃
|
|
139
|
+
┃ Soda ┃
|
|
140
|
+
┃ Juice ┃
|
|
141
|
+
┃ ┃
|
|
142
|
+
┃ ┃
|
|
143
|
+
┃ ↵ select ↑↓ navigate ┃
|
|
144
|
+
┃ ┃
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
↵ select ↑↓ navigate ^k actions"
|
|
148
|
+
`)
|
|
134
149
|
|
|
135
|
-
|
|
150
|
+
await session.press('down')
|
|
136
151
|
|
|
152
|
+
const afterSecondDownSnapshot = await session.text()
|
|
153
|
+
expect(afterSecondDownSnapshot).toMatchInlineSnapshot(`
|
|
154
|
+
"
|
|
137
155
|
|
|
138
156
|
|
|
139
|
-
|
|
157
|
+
Search Beers ───────────────────────────────────────────────────
|
|
158
|
+
┃ ┃
|
|
159
|
+
┃ Select Drink Type esc ┃
|
|
160
|
+
┃ ┃
|
|
161
|
+
┃ Search... ┃
|
|
162
|
+
┃ ┃
|
|
163
|
+
┃ ┃
|
|
164
|
+
┃ Alcoholic Beverages ┃
|
|
165
|
+
┃ Beer ┃
|
|
166
|
+
┃ Wine ┃
|
|
167
|
+
┃ ┃
|
|
168
|
+
┃ Non-Alcoholic ┃
|
|
169
|
+
┃ ›Soda ┃
|
|
170
|
+
┃ Juice ┃
|
|
171
|
+
┃ ┃
|
|
172
|
+
┃ ┃
|
|
173
|
+
┃ ↵ select ↑↓ navigate ┃
|
|
174
|
+
┃ ┃
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
↵ select ↑↓ navigate ^k actions"
|
|
140
178
|
`)
|
|
141
179
|
|
|
142
|
-
|
|
143
|
-
await driver.keys.down()
|
|
180
|
+
await session.press('enter')
|
|
144
181
|
|
|
145
|
-
const
|
|
146
|
-
|
|
182
|
+
const afterSelectSnapshot = await session.text({
|
|
183
|
+
waitFor: (text) => {
|
|
184
|
+
return !text.includes('Select Drink Type')
|
|
185
|
+
},
|
|
186
|
+
})
|
|
187
|
+
expect(afterSelectSnapshot).toMatchInlineSnapshot(`
|
|
147
188
|
"
|
|
148
189
|
|
|
149
190
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
Search...
|
|
191
|
+
Search Beers ───────────────────────────────────────────────────
|
|
153
192
|
|
|
154
|
-
Alcoholic Beverages
|
|
155
|
-
Beer
|
|
156
|
-
Wine
|
|
157
193
|
|
|
158
|
-
|
|
159
|
-
›Soda
|
|
160
|
-
Juice
|
|
194
|
+
Search... Soda ▾
|
|
161
195
|
|
|
196
|
+
›Coca Cola Soda
|
|
197
|
+
Sprite Soda
|
|
162
198
|
|
|
163
|
-
↵ select ↑↓ navigate
|
|
164
199
|
|
|
165
200
|
|
|
166
201
|
|
|
167
|
-
↵ select ↑↓ navigate ^k actions"
|
|
168
|
-
`)
|
|
169
202
|
|
|
170
|
-
// Select the current item
|
|
171
|
-
await driver.keys.enter()
|
|
172
203
|
|
|
173
|
-
const afterSelectSnapshot = await driver.text({
|
|
174
|
-
waitFor: (text) => {
|
|
175
|
-
// wait for dropdown to close and list to update
|
|
176
|
-
return !text.includes('Select Drink Type')
|
|
177
|
-
},
|
|
178
|
-
})
|
|
179
|
-
expect(afterSelectSnapshot).toMatchInlineSnapshot(`
|
|
180
|
-
"
|
|
181
204
|
|
|
182
|
-
Search Beers ───────────────────────────────────────────────────
|
|
183
205
|
|
|
184
206
|
|
|
185
|
-
Search... Soda ▾
|
|
186
207
|
|
|
187
208
|
|
|
188
|
-
›Coca Cola Soda
|
|
189
|
-
Sprite Soda
|
|
190
209
|
|
|
191
210
|
|
|
192
|
-
|
|
193
|
-
|
|
211
|
+
↵ select ↑↓ navigate ^k actions"
|
|
212
|
+
`)
|
|
194
213
|
}, 10000)
|
|
195
214
|
|
|
196
215
|
test('list with dropdown search and filter', async () => {
|
|
197
|
-
await
|
|
216
|
+
await session.text({
|
|
198
217
|
waitFor: (text) => {
|
|
199
|
-
// wait for list to show up with all items loaded
|
|
200
218
|
return (
|
|
201
219
|
/search beers/i.test(text) &&
|
|
202
220
|
text.includes('Beer ▾') &&
|
|
@@ -206,104 +224,113 @@ test('list with dropdown search and filter', async () => {
|
|
|
206
224
|
},
|
|
207
225
|
})
|
|
208
226
|
|
|
209
|
-
|
|
210
|
-
await driver.keys.ctrlP()
|
|
227
|
+
await session.press(['ctrl', 'p'])
|
|
211
228
|
|
|
212
|
-
|
|
213
|
-
const immediatelyAfterCtrlPSnapshot = await driver.text()
|
|
229
|
+
const immediatelyAfterCtrlPSnapshot = await session.text()
|
|
214
230
|
expect(immediatelyAfterCtrlPSnapshot).toMatchInlineSnapshot(`
|
|
215
231
|
"
|
|
216
232
|
|
|
217
233
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
234
|
+
Search Beers ───────────────────────────────────────────────────
|
|
235
|
+
┃ ┃
|
|
236
|
+
┃ Select Drink Type esc ┃
|
|
237
|
+
┃ ┃
|
|
238
|
+
┃
|
|
239
|
+
›Augustiner Helles Beer
|
|
240
|
+
Camden Hells Beer
|
|
241
|
+
Leffe Blonde Beer
|
|
242
|
+
Sierra Nevada IPA Beer
|
|
243
|
+
Chateau Margaux Wine
|
|
244
|
+
Pinot Noir Wine
|
|
245
|
+
Coca Cola Soda
|
|
246
|
+
Sprite Soda
|
|
247
|
+
Orange Juice Juice
|
|
248
|
+
Apple Juice Juice
|
|
229
249
|
|
|
230
250
|
|
|
231
|
-
↵ select ↑↓ navigate
|
|
232
251
|
|
|
233
252
|
|
|
234
253
|
|
|
235
|
-
|
|
254
|
+
↵ select ↑↓ navigate ^k actions"
|
|
236
255
|
`)
|
|
237
256
|
|
|
238
|
-
await
|
|
257
|
+
await session.text({
|
|
239
258
|
waitFor: (text) => {
|
|
240
259
|
return /select drink type/i.test(text)
|
|
241
260
|
},
|
|
242
261
|
})
|
|
243
262
|
|
|
244
|
-
|
|
245
|
-
await driver.keys.type('wine')
|
|
263
|
+
await session.type('wine')
|
|
246
264
|
|
|
247
|
-
const afterSearchWineSnapshot = await
|
|
265
|
+
const afterSearchWineSnapshot = await session.text({
|
|
248
266
|
waitFor: (text) => {
|
|
249
267
|
return /wine/i.test(text)
|
|
250
268
|
},
|
|
251
269
|
})
|
|
252
270
|
expect(afterSearchWineSnapshot).toMatchInlineSnapshot(`
|
|
253
|
-
|
|
254
|
-
|
|
271
|
+
"
|
|
255
272
|
|
|
256
|
-
Select Drink Type esc
|
|
257
273
|
|
|
258
|
-
|
|
259
|
-
|
|
274
|
+
Search Beers ───────────────────────────────────────────────────
|
|
275
|
+
┃ ┃
|
|
276
|
+
┃ Select Drink Type esc ┃
|
|
277
|
+
┃ ┃
|
|
278
|
+
┃ wine ┃
|
|
279
|
+
┃ ┃
|
|
280
|
+
┃ Wine ┃
|
|
281
|
+
┃ ┃
|
|
282
|
+
┃ ┃
|
|
283
|
+
┃ ↵ select ↑↓ navigate ┃
|
|
284
|
+
┃ ┃
|
|
285
|
+
┃ Non-Alcoholic ┃
|
|
286
|
+
Sprite Soda
|
|
287
|
+
Orange Juice Juice
|
|
288
|
+
Apple Juice Juice
|
|
260
289
|
|
|
261
290
|
|
|
262
|
-
↵ select ↑↓ navigate
|
|
263
291
|
|
|
264
|
-
Sierra Nevada IPA Beer
|
|
265
|
-
Chateau Margaux Wine
|
|
266
|
-
Pinot Noir Wine
|
|
267
|
-
Coca Cola Soda
|
|
268
|
-
Sprite Soda
|
|
269
|
-
Orange Juice Juice
|
|
270
|
-
Apple Juice Juice
|
|
271
292
|
|
|
272
293
|
|
|
273
|
-
|
|
274
|
-
|
|
294
|
+
↵ select ↑↓ navigate ^k actions"
|
|
295
|
+
`)
|
|
275
296
|
|
|
276
|
-
|
|
277
|
-
await driver.keys.enter()
|
|
297
|
+
await session.press('enter')
|
|
278
298
|
|
|
279
|
-
const afterSelectWineSnapshot = await
|
|
299
|
+
const afterSelectWineSnapshot = await session.text({
|
|
280
300
|
waitFor: (text) => {
|
|
281
|
-
// wait for dropdown to close
|
|
282
301
|
return !text.includes('Select Drink Type')
|
|
283
302
|
},
|
|
284
303
|
})
|
|
285
304
|
expect(afterSelectWineSnapshot).toMatchInlineSnapshot(`
|
|
286
305
|
"
|
|
287
306
|
|
|
307
|
+
|
|
288
308
|
Search Beers ───────────────────────────────────────────────────
|
|
289
309
|
|
|
290
310
|
|
|
291
311
|
Search... Beer ▾
|
|
292
312
|
|
|
293
|
-
|
|
294
313
|
›Augustiner Helles Beer
|
|
295
314
|
Camden Hells Beer
|
|
296
315
|
Leffe Blonde Beer
|
|
297
316
|
Sierra Nevada IPA Beer
|
|
298
317
|
|
|
299
318
|
|
|
300
|
-
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
↵ select ↑↓ navigate ^k actions"
|
|
301
329
|
`)
|
|
302
330
|
|
|
303
|
-
|
|
304
|
-
await driver.keys.type('pinot')
|
|
331
|
+
await session.type('pinot')
|
|
305
332
|
|
|
306
|
-
const afterSearchPinotSnapshot = await
|
|
333
|
+
const afterSearchPinotSnapshot = await session.text({
|
|
307
334
|
waitFor: (text) => {
|
|
308
335
|
return /pinot/i.test(text)
|
|
309
336
|
},
|
|
@@ -311,6 +338,7 @@ test('list with dropdown search and filter', async () => {
|
|
|
311
338
|
expect(afterSearchPinotSnapshot).toMatchInlineSnapshot(`
|
|
312
339
|
"
|
|
313
340
|
|
|
341
|
+
|
|
314
342
|
Search Beers ───────────────────────────────────────────────────
|
|
315
343
|
|
|
316
344
|
|
|
@@ -319,6 +347,18 @@ test('list with dropdown search and filter', async () => {
|
|
|
319
347
|
|
|
320
348
|
|
|
321
349
|
|
|
322
|
-
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
↵ select ↑↓ navigate ^k actions"
|
|
323
363
|
`)
|
|
324
364
|
}, 10000)
|
|
@@ -94,6 +94,11 @@ function SimpleListExample() {
|
|
|
94
94
|
</ActionPanel>
|
|
95
95
|
}
|
|
96
96
|
/>
|
|
97
|
+
<List.Item id='orange' title='Orange' subtitle='Citrus and juicy' accessories={[{ text: 'Fresh' }]} />
|
|
98
|
+
<List.Item id='grape' title='Grape' subtitle='Sweet clusters' accessories={[{ tag: 'Seasonal' }]} />
|
|
99
|
+
<List.Item id='mango' title='Mango' subtitle='Tropical delight' accessories={[{ text: 'Imported' }]} />
|
|
100
|
+
<List.Item id='pineapple' title='Pineapple' subtitle='Sweet and tangy' />
|
|
101
|
+
<List.Item id='strawberry' title='Strawberry' subtitle='Red and sweet' accessories={[{ tag: 'Popular' }]} />
|
|
97
102
|
</List.Section>
|
|
98
103
|
<List.Section title='Vegetables'>
|
|
99
104
|
<List.Item
|
|
@@ -157,6 +162,11 @@ function SimpleListExample() {
|
|
|
157
162
|
</ActionPanel>
|
|
158
163
|
}
|
|
159
164
|
/>
|
|
165
|
+
<List.Item id='broccoli' title='Broccoli' subtitle='Green florets' accessories={[{ tag: 'Healthy' }]} />
|
|
166
|
+
<List.Item id='spinach' title='Spinach' subtitle='Leafy greens' accessories={[{ text: 'Organic' }]} />
|
|
167
|
+
<List.Item id='tomato' title='Tomato' subtitle='Red and ripe' />
|
|
168
|
+
<List.Item id='cucumber' title='Cucumber' subtitle='Cool and crisp' />
|
|
169
|
+
<List.Item id='pepper' title='Bell Pepper' subtitle='Colorful and crunchy' accessories={[{ tag: 'Fresh' }]} />
|
|
160
170
|
</List.Section>
|
|
161
171
|
<List.Item
|
|
162
172
|
id='bread'
|
|
@@ -189,8 +199,9 @@ function SimpleListExample() {
|
|
|
189
199
|
</ActionPanel>
|
|
190
200
|
}
|
|
191
201
|
/>
|
|
202
|
+
|
|
192
203
|
</List>
|
|
193
204
|
)
|
|
194
205
|
}
|
|
195
206
|
|
|
196
|
-
renderWithProviders(<SimpleListExample />)
|
|
207
|
+
await renderWithProviders(<SimpleListExample />)
|