@visulima/tui 1.0.0-alpha.6 → 1.0.0-alpha.8
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/CHANGELOG.md +21 -0
- package/dist/core/index.js +1 -5
- package/dist/ink/index.d.ts +15 -34
- package/dist/ink/index.js +1 -155
- package/dist/packem_chunks/devtools.js +3 -26
- package/dist/packem_shared/Accordion-BXsqchV-.js +1 -0
- package/dist/packem_shared/Alert-BhYVMHtR.js +1 -0
- package/dist/packem_shared/AnimatePresence-Eu7Z8KHc.js +1 -0
- package/dist/packem_shared/ApprovalPrompt-BSn0FT1g.js +1 -0
- package/dist/packem_shared/AreaChart-Chy-frI7.js +1 -0
- package/dist/packem_shared/Badge-B8WPyRsK.js +1 -0
- package/dist/packem_shared/BarChart-rpZtlMcF.js +1 -0
- package/dist/packem_shared/BigText-CRpwUzrt.js +1 -0
- package/dist/packem_shared/BlinkDot-BvnRuWP8.js +1 -0
- package/dist/packem_shared/Box-BwqSvWuq.js +1 -0
- package/dist/packem_shared/Breadcrumb-D0hClbRV.js +1 -0
- package/dist/packem_shared/Button-B89Yvbc6.js +1 -0
- package/dist/packem_shared/COLOR_BLINDNESS_SIMULATION-DqErf7XX.js +1 -0
- package/dist/packem_shared/Calendar-Dmflvm2S.js +1 -0
- package/dist/packem_shared/Canvas-CKg6WV47.js +1 -0
- package/dist/packem_shared/Card-B_9fXdtU.js +1 -0
- package/dist/packem_shared/Cell-BrXn3jxY.js +1 -0
- package/dist/packem_shared/Checkbox-BN71eCWU.js +1 -0
- package/dist/packem_shared/Code-HhevcyiH.js +2 -0
- package/dist/packem_shared/Collapsible-u6uf_FdV.js +1 -0
- package/dist/packem_shared/CommandBlock-B-nslpCv.js +4 -0
- package/dist/packem_shared/CommandPalette-CEFdaURo.js +1 -0
- package/dist/packem_shared/ConfirmDialog-5Jje_Xpu.js +1 -0
- package/dist/packem_shared/ConfirmInput-D44Mb9oo.js +1 -0
- package/dist/packem_shared/ConsoleOverlay-CM3APfgP.js +1 -0
- package/dist/packem_shared/ContentSwitcher-Dm5BkrCt.js +1 -0
- package/dist/packem_shared/ControlledScrollView-DI8KZOQB.js +1 -0
- package/dist/packem_shared/Cursor-BoLFIMol.js +1 -0
- package/dist/packem_shared/DatePicker-CnSrFFAE.js +1 -0
- package/dist/packem_shared/DefinitionList-v8RDuF_R.js +1 -0
- package/dist/packem_shared/DevTools-O8EbCfHa.js +1 -0
- package/dist/packem_shared/Dialog-CTaL8pn0.js +1 -0
- package/dist/packem_shared/DiffView-BUIFqUB0.js +1 -0
- package/dist/packem_shared/Divider-C47bKmqu.js +1 -0
- package/dist/packem_shared/FilePicker-CUo7R5Qb.js +1 -0
- package/dist/packem_shared/FocusContext-Xy0cwJpO.js +1 -0
- package/dist/packem_shared/FormField-af3aUpRL.js +1 -0
- package/dist/packem_shared/Fullscreen-CuJ8y0s0.js +1 -0
- package/dist/packem_shared/Gauge-Dz-usH__.js +1 -0
- package/dist/packem_shared/Gradient-DYNc0GZA.js +1 -0
- package/dist/packem_shared/Heading-mwEYza3Y.js +1 -0
- package/dist/packem_shared/Heatmap-ChL97U1-.js +1 -0
- package/dist/packem_shared/Help-Zcelyw_U.js +1 -0
- package/dist/packem_shared/Histogram-FIf2F83d.js +1 -0
- package/dist/packem_shared/IMECompositionBuffer-C89PhiOu.js +1 -0
- package/dist/packem_shared/InputParser-rZKjY_7Y.js +2 -0
- package/dist/packem_shared/KEY-Bk8B-3h_.js +1 -0
- package/dist/packem_shared/Kbd-DpkPp4jB.js +1 -0
- package/dist/packem_shared/LayoutNode-rxblE317.js +1 -0
- package/dist/packem_shared/LineChart-BXE_girm.js +1 -0
- package/dist/packem_shared/Link-i2o2EG4-.js +1 -0
- package/dist/packem_shared/LoadingIndicator-TC1Fjwyt.js +1 -0
- package/dist/packem_shared/Markdown-R1XqK63D.js +1 -0
- package/dist/packem_shared/MaskedInput-J01phOZs.js +1 -0
- package/dist/packem_shared/Menu-CfrH4ymk.js +1 -0
- package/dist/packem_shared/MessageBubble-BmBBU2Rm.js +1 -0
- package/dist/packem_shared/ModelBadge-D3wrXncu.js +1 -0
- package/dist/packem_shared/MouseProvider-pjza-lpc.js +1 -0
- package/dist/packem_shared/MultiSelect-Dqmn-bVo.js +1 -0
- package/dist/packem_shared/NAMED_COLORS-B9fJsYdg.js +1 -0
- package/dist/packem_shared/Newline-BSG4iUqp.js +2 -0
- package/dist/packem_shared/OperationTree-DksxjMIV.js +1 -0
- package/dist/packem_shared/OptionList-CNx7r9yN.js +1 -0
- package/dist/packem_shared/OrderedList-BeDy035w.js +1 -0
- package/dist/packem_shared/Paginator-B56s6bhS.js +1 -0
- package/dist/packem_shared/Paragraph-BqJlH0R-.js +1 -0
- package/dist/packem_shared/Placeholder-GMpHRGC8.js +1 -0
- package/dist/packem_shared/ProgressBar-Bj3fmORR.js +1 -0
- package/dist/packem_shared/RadioGroup-Br8BeEwS.js +1 -0
- package/dist/packem_shared/Renderer-DJXooAsp.js +1 -0
- package/dist/packem_shared/ResizeObserverEntry-Dq0dk8Kq.js +1 -0
- package/dist/packem_shared/ScatterPlot-OhfYco5l.js +1 -0
- package/dist/packem_shared/ScrollBar-Da5Y3z7N.js +1 -0
- package/dist/packem_shared/ScrollBarBox-Dz6F-Eat.js +1 -0
- package/dist/packem_shared/ScrollList-DiVGyEjv.js +1 -0
- package/dist/packem_shared/ScrollView-BojONotI.js +1 -0
- package/dist/packem_shared/SearchInput-BoPTRbhV.js +1 -0
- package/dist/packem_shared/SelectInput-CAJ7SCBq.js +1 -0
- package/dist/packem_shared/SelectInputIndicator-N1n8ULHs.js +1 -0
- package/dist/packem_shared/SelectInputItem-BEkbmobs.js +1 -0
- package/dist/packem_shared/ShimmerText-CuGQ2NDC.js +1 -0
- package/dist/packem_shared/Slider-Cg_tJpKa.js +1 -0
- package/dist/packem_shared/Spacer-eT3HOrXk.js +1 -0
- package/dist/packem_shared/Sparkline-T6_FPVET.js +1 -0
- package/dist/packem_shared/Spinner-B0-A50pu.js +1 -0
- package/dist/packem_shared/Static-DLynr5pn.js +1 -0
- package/dist/packem_shared/Static-jzLPaHJF.js +1 -0
- package/dist/packem_shared/StaticRender-BgD61E7x.js +1 -0
- package/dist/packem_shared/StatusLine-Ch4jjef1.js +1 -0
- package/dist/packem_shared/StatusMessage-B1qfKeMM.js +1 -0
- package/dist/packem_shared/Stepper-CNPAqxiU.js +1 -0
- package/dist/packem_shared/Stopwatch-CAx2EWwq.js +1 -0
- package/dist/packem_shared/StreamingText-BYOKSB2T.js +1 -0
- package/dist/packem_shared/Switch-DzSpKYu7.js +1 -0
- package/dist/packem_shared/Tab-BcXzSUdj.js +1 -0
- package/dist/packem_shared/Table-DJp1TLrR.js +1 -0
- package/dist/packem_shared/Tabs-D68z0SOt.js +1 -0
- package/dist/packem_shared/Tag-BvLHnYRn.js +1 -0
- package/dist/packem_shared/Text-mTAve9R2.js +1 -0
- package/dist/packem_shared/TextInput-C_gYQlnF.js +1 -0
- package/dist/packem_shared/Textarea-C2ET_oMb.js +2 -0
- package/dist/packem_shared/Timer-CI3aQX65.js +1 -0
- package/dist/packem_shared/Toast-Drvc8XfG.js +1 -0
- package/dist/packem_shared/Tooltip-C5UnQlLd.js +1 -0
- package/dist/packem_shared/Transform-fYmcdqRT.js +1 -0
- package/dist/packem_shared/Transition-CJDBKYUB.js +1 -0
- package/dist/packem_shared/TreeNodeMap-CspqSCpb.js +1 -0
- package/dist/packem_shared/TreeView-DjhacGJ5.js +1 -0
- package/dist/packem_shared/TuiApp-DrjI_i-R.js +1 -0
- package/dist/packem_shared/TuiContext-BoJvG3NN.js +3 -0
- package/dist/packem_shared/UnorderedList-BnfqexZs.js +1 -0
- package/dist/packem_shared/accessibility-context-DDyHTwmA.js +1 -0
- package/dist/packem_shared/animation-context-DW3p-vpk.js +1 -0
- package/dist/packem_shared/ansi-parser-B6uXaq65.js +1 -0
- package/dist/packem_shared/ansi-tokenizer-DqX9nJuk.js +1 -0
- package/dist/packem_shared/app-context-BVpKlG1z.js +1 -0
- package/dist/packem_shared/background-context-rjOaWFki.js +1 -0
- package/dist/packem_shared/boxes-DyY_LXCi.js +1 -0
- package/dist/packem_shared/braille-BBjIoaN0.js +1 -0
- package/dist/packem_shared/colorize-DbTZMrJO.js +1 -0
- package/dist/packem_shared/comparePoints-C85EsmNz.js +1 -0
- package/dist/packem_shared/controlled-scroll-view-CmrAEvJk.js +1 -0
- package/dist/packem_shared/createInlineLoop-DRNZ7jqH.js +2 -0
- package/dist/packem_shared/createLinkedScrollGroup-BMTJ7rAj.js +1 -0
- package/dist/packem_shared/createMemoryStorage-QVZNXbWz.js +2 -0
- package/dist/packem_shared/createScreen-CrLrxA6t.js +3 -0
- package/dist/packem_shared/cursor-context-CFviBqPX.js +1 -0
- package/dist/packem_shared/dom-4y__5fWB.js +1 -0
- package/dist/packem_shared/focus-context-CsT69klR.js +1 -0
- package/dist/packem_shared/format-time-C7Q-hQZq.js +1 -0
- package/dist/packem_shared/getPathToRoot-B2tKmx3i.js +1 -0
- package/dist/packem_shared/getScrollHeight-BTEY8ewu.js +1 -0
- package/dist/packem_shared/input-utils-fAxzSlNh.js +1 -0
- package/dist/packem_shared/isIntersecting-B3KbKTmu.js +1 -0
- package/dist/packem_shared/isOsc52Supported-DKK7Uee6.js +1 -0
- package/dist/packem_shared/isTerminalPaletteQuerySupported-Dn2hFAZ_.js +1 -0
- package/dist/packem_shared/kittyFlags-C3rZLbcK.js +1 -0
- package/dist/packem_shared/line-chart-DrM8PwnI.js +1 -0
- package/dist/packem_shared/measure-element-DSp7YDus.js +2 -0
- package/dist/packem_shared/measure-text-DDjHT1jD.js +3 -0
- package/dist/packem_shared/measureElement-DA8WqFP_.js +1 -0
- package/dist/packem_shared/mouse-context-DaARgUu1.js +1 -0
- package/dist/packem_shared/parseSgrMouse-Ccj70ijb.js +1 -0
- package/dist/packem_shared/processLayout-DXDfFb_d.js +1 -0
- package/dist/packem_shared/reconciler-BuOP-TZ6.js +1 -0
- package/dist/packem_shared/reconciler-DSYCrIZs.js +1 -0
- package/dist/packem_shared/render-DDqtMAFN.js +1 -0
- package/dist/packem_shared/render-_r0K9K11.js +28 -0
- package/dist/packem_shared/renderToString-DeqOWRP8.js +4 -0
- package/dist/packem_shared/renderToString-IYYPyASm.js +2 -0
- package/dist/packem_shared/renderTreeToBuffer-DPkoCgP2.js +2 -0
- package/dist/packem_shared/renderer-D2p6av2X.js +17 -0
- package/dist/packem_shared/setEnableStyledLineCache-D2gZbwFM.js +1 -0
- package/dist/packem_shared/squashTextNodesWithMap-Cpqmc45i.js +1 -0
- package/dist/packem_shared/stderr-context-BzEaUICS.js +1 -0
- package/dist/packem_shared/stdin-context-BTaaFagk.js +1 -0
- package/dist/packem_shared/stdout-context-BnblEPez.js +1 -0
- package/dist/packem_shared/text-width-CZ9vPvM0.js +2 -0
- package/dist/packem_shared/token-to-elements-BYxT6J_Q.js +1 -0
- package/dist/packem_shared/treeViewTheme-1RIZyB4M.js +1 -0
- package/dist/packem_shared/useAnimation-B9we6ZzL.js +1 -0
- package/dist/packem_shared/useApp-B6fvM42d.js +1 -0
- package/dist/packem_shared/useBoxMetrics-D5pkIr6P.js +1 -0
- package/dist/packem_shared/useClipboard-CBxy0hT8.js +1 -0
- package/dist/packem_shared/useColorBlindness-BvWcu2Bb.js +1 -0
- package/dist/packem_shared/useConsoleCapture-BxiG8iLJ.js +1 -0
- package/dist/packem_shared/useCursor-CPu8T5Db.js +1 -0
- package/dist/packem_shared/useElementDimensions-qJ_WXFZ9.js +1 -0
- package/dist/packem_shared/useFocus-DSmziO_x.js +1 -0
- package/dist/packem_shared/useFocusManager-Uapn3LQo.js +1 -0
- package/dist/packem_shared/useForm-CzV-Oext.js +1 -0
- package/dist/packem_shared/useHotkey-D0dGey14.js +1 -0
- package/dist/packem_shared/useInput-D1_jG26Z.js +2 -0
- package/dist/packem_shared/useInterval-AobjZT3u.js +1 -0
- package/dist/packem_shared/useIsScreenReaderEnabled-DjWHh-II.js +1 -0
- package/dist/packem_shared/useKeyBindings-zabkEJQs.js +1 -0
- package/dist/packem_shared/useKeyChord-CICQIxXj.js +1 -0
- package/dist/packem_shared/useMouseAction-2dRfU1vE.js +1 -0
- package/dist/packem_shared/useMouseContext-C746G7kY.js +1 -0
- package/dist/packem_shared/useMousePosition-BTWfV4JK.js +1 -0
- package/dist/packem_shared/useOnMouseClick-nY8xLZmt.js +1 -0
- package/dist/packem_shared/useOnMouseHover-D3DczIol.js +1 -0
- package/dist/packem_shared/useOnMouseState-cRK8QvzD.js +1 -0
- package/dist/packem_shared/usePaste-CKKB9H-Z.js +1 -0
- package/dist/packem_shared/useScrollAcceleration-NrY1oVMs.js +1 -0
- package/dist/packem_shared/useScrollInput-Caghtn-Q.js +1 -0
- package/dist/packem_shared/useStderr-BDZb6InG.js +1 -0
- package/dist/packem_shared/useStdin-DKa4h35k.js +1 -0
- package/dist/packem_shared/useStdout-B-2lX4C5.js +1 -0
- package/dist/packem_shared/useStopwatch-DffK7iMh.js +1 -0
- package/dist/packem_shared/useTerminalPalette-Cv7tSduR.js +1 -0
- package/dist/packem_shared/useTextBuffer-DekkGLxI.js +4 -0
- package/dist/packem_shared/useTextSelection-CGT0GLDR.js +1 -0
- package/dist/packem_shared/useTimeout-7LEFYTnG.js +1 -0
- package/dist/packem_shared/useTimer-DyoqSyGi.js +1 -0
- package/dist/packem_shared/useTreeView-8UlTK6sW.js +1 -0
- package/dist/packem_shared/useTreeViewState-CRPCUWrb.js +1 -0
- package/dist/packem_shared/useWindowSize-yDZsXF8z.js +1 -0
- package/dist/packem_shared/utils-THUhYKG2.js +1 -0
- package/dist/packem_shared/variant-config-BJqpNo7H.js +1 -0
- package/dist/packem_shared/waitFor-Dj5zfL5s.js +4 -0
- package/dist/packem_shared/wrapOrTruncateStyledLine-BZ00SM8i.js +3 -0
- package/dist/react/index.js +1 -9
- package/dist/testing/index.js +1 -152
- package/package.json +9 -9
- package/dist/packem_shared/Accordion-BG-yfIkV.js +0 -80
- package/dist/packem_shared/Alert-BLcwIW8V.js +0 -17
- package/dist/packem_shared/AnimatePresence-D8nEOr_B.js +0 -98
- package/dist/packem_shared/ApprovalPrompt-BXdPros1.js +0 -104
- package/dist/packem_shared/AreaChart-CmTcxLum.js +0 -116
- package/dist/packem_shared/Badge-CUfbXwAB.js +0 -13
- package/dist/packem_shared/BarChart-DWRae67P.js +0 -87
- package/dist/packem_shared/BigText-CVq2X7B5.js +0 -24
- package/dist/packem_shared/BlinkDot-CrbHMR3L.js +0 -11
- package/dist/packem_shared/Box-W1w_NGin.js +0 -71
- package/dist/packem_shared/Breadcrumb-CPdNxVYs.js +0 -26
- package/dist/packem_shared/Button-CBmTbJ_D.js +0 -57
- package/dist/packem_shared/COLOR_BLINDNESS_SIMULATION-BsMy5Ewl.js +0 -81
- package/dist/packem_shared/Calendar-C2Qxt-LA.js +0 -139
- package/dist/packem_shared/Canvas-COttmLPX.js +0 -246
- package/dist/packem_shared/Card-D3tGkNCm.js +0 -24
- package/dist/packem_shared/Cell-DCg1kJY-.js +0 -48
- package/dist/packem_shared/Checkbox-Dpy_4Lws.js +0 -49
- package/dist/packem_shared/Code-CwzzbsLx.js +0 -53
- package/dist/packem_shared/Collapsible-BMDrXf5C.js +0 -45
- package/dist/packem_shared/CommandBlock-jdOGJPjY.js +0 -80
- package/dist/packem_shared/CommandPalette-B5IfUQwi.js +0 -146
- package/dist/packem_shared/ConfirmDialog-5XJv3Cc4.js +0 -67
- package/dist/packem_shared/ConfirmInput-CxUS0XAA.js +0 -44
- package/dist/packem_shared/ConsoleOverlay-BvnCEgjG.js +0 -57
- package/dist/packem_shared/ContentSwitcher-BHFpO5Za.js +0 -81
- package/dist/packem_shared/ControlledScrollView-C2wOOlJO.js +0 -5
- package/dist/packem_shared/Cursor-DiW7YoSK.js +0 -18
- package/dist/packem_shared/DatePicker-CPejKoqS.js +0 -73
- package/dist/packem_shared/DefinitionList-BAwr0l5J.js +0 -18
- package/dist/packem_shared/DevTools-BdxRSkhL.js +0 -63
- package/dist/packem_shared/Dialog-S9r7Izff.js +0 -71
- package/dist/packem_shared/DiffView-BR4T6-Sj.js +0 -329
- package/dist/packem_shared/Divider-DocXIqNn.js +0 -30
- package/dist/packem_shared/FilePicker-BZ55oF_n.js +0 -261
- package/dist/packem_shared/FocusContext-D5wFxSRz.js +0 -153
- package/dist/packem_shared/FormField-BSG16cnA.js +0 -29
- package/dist/packem_shared/Fullscreen-DO7voOq5.js +0 -11
- package/dist/packem_shared/Gauge-CKXUXxft.js +0 -122
- package/dist/packem_shared/Gradient-Dg0NezWc.js +0 -136
- package/dist/packem_shared/Heading-BnR7McmP.js +0 -29
- package/dist/packem_shared/Heatmap-_jqISOU0.js +0 -79
- package/dist/packem_shared/Help-0yZ_IcQg.js +0 -105
- package/dist/packem_shared/Histogram-CB6XcmZW.js +0 -92
- package/dist/packem_shared/IMECompositionBuffer-Dl3S0KnF.js +0 -55
- package/dist/packem_shared/InputParser-BlsfeY9J.js +0 -158
- package/dist/packem_shared/KEY-STOdi-nc.js +0 -74
- package/dist/packem_shared/Kbd-BNDXQgey.js +0 -19
- package/dist/packem_shared/LayoutNode-DAkKg9TE.js +0 -129
- package/dist/packem_shared/LineChart-ef3HF816.js +0 -7
- package/dist/packem_shared/Link-DZ2Tiq1m.js +0 -66
- package/dist/packem_shared/LoadingIndicator-DzbLGfyJ.js +0 -13
- package/dist/packem_shared/Markdown-33bpCUoe.js +0 -212
- package/dist/packem_shared/MaskedInput-Ctr6v2dO.js +0 -119
- package/dist/packem_shared/Menu-CeKxhEix.js +0 -112
- package/dist/packem_shared/MessageBubble-BMoU8L2Q.js +0 -26
- package/dist/packem_shared/ModelBadge-CNIxPs7v.js +0 -40
- package/dist/packem_shared/MouseProvider-CekPbXCh.js +0 -136
- package/dist/packem_shared/MultiSelect-yz7-w0Zv.js +0 -129
- package/dist/packem_shared/NAMED_COLORS-DcI3erCu.js +0 -300
- package/dist/packem_shared/Newline-DBtYEg8x.js +0 -7
- package/dist/packem_shared/OperationTree-Dudx5o1o.js +0 -67
- package/dist/packem_shared/OptionList-CTyqQaZ1.js +0 -24
- package/dist/packem_shared/OrderedList-VsvSmHUC.js +0 -26
- package/dist/packem_shared/Paginator-DmGogvEI.js +0 -104
- package/dist/packem_shared/Paragraph-CNNhfepo.js +0 -9
- package/dist/packem_shared/Placeholder-DkM69Q8Z.js +0 -29
- package/dist/packem_shared/ProgressBar-B7cS4uQm.js +0 -22
- package/dist/packem_shared/RadioGroup-B4F9PUyL.js +0 -108
- package/dist/packem_shared/Renderer-zZ5O3vxc.js +0 -31
- package/dist/packem_shared/ResizeObserverEntry-Vr8GZ74x.js +0 -102
- package/dist/packem_shared/ScatterPlot-CWOg4G5h.js +0 -63
- package/dist/packem_shared/ScrollBar-DFeWH43I.js +0 -106
- package/dist/packem_shared/ScrollBarBox-C7VL6Izd.js +0 -72
- package/dist/packem_shared/ScrollList-DRcr_RrN.js +0 -227
- package/dist/packem_shared/ScrollView-C6rdlGwU.js +0 -196
- package/dist/packem_shared/SearchInput-cB8zFhSg.js +0 -32
- package/dist/packem_shared/SelectInput-WzZSqp72.js +0 -260
- package/dist/packem_shared/SelectInputIndicator-DKeN6v5Z.js +0 -9
- package/dist/packem_shared/SelectInputItem-CxFL3spM.js +0 -8
- package/dist/packem_shared/ShimmerText-B2VbPUSB.js +0 -34
- package/dist/packem_shared/Slider-BOrNTOQe.js +0 -116
- package/dist/packem_shared/Spacer-DhmXyTb8.js +0 -8
- package/dist/packem_shared/Sparkline-BSbjPrwK.js +0 -44
- package/dist/packem_shared/Spinner-BcO5BCAa.js +0 -1942
- package/dist/packem_shared/Static-DpTd6Eed.js +0 -22
- package/dist/packem_shared/Static-xmD9giJj.js +0 -18
- package/dist/packem_shared/StaticRender-C3XWvJdC.js +0 -69
- package/dist/packem_shared/StatusLine-DQNUstN9.js +0 -22
- package/dist/packem_shared/StatusMessage-BYTL6Pl-.js +0 -14
- package/dist/packem_shared/Stepper-CmUPRK3z.js +0 -60
- package/dist/packem_shared/Stopwatch-zqLQAxXC.js +0 -21
- package/dist/packem_shared/StreamingText-BmuoJtGu.js +0 -38
- package/dist/packem_shared/Switch-DcPdy8nm.js +0 -59
- package/dist/packem_shared/Tab-C6r5q4hR.js +0 -7
- package/dist/packem_shared/Table-Bgxo87Df.js +0 -88
- package/dist/packem_shared/Tabs-DubuHdYV.js +0 -164
- package/dist/packem_shared/Tag-CCqM7Ee9.js +0 -35
- package/dist/packem_shared/Text-CtUwV89_.js +0 -65
- package/dist/packem_shared/TextInput-C9r7zT0U.js +0 -137
- package/dist/packem_shared/Textarea-CGmgt-Nl.js +0 -272
- package/dist/packem_shared/Timer-D7ZZ0_wz.js +0 -20
- package/dist/packem_shared/Toast-DXSCXFPY.js +0 -37
- package/dist/packem_shared/Tooltip-SvVjj-2k.js +0 -32
- package/dist/packem_shared/Transform-Cfyva2wd.js +0 -14
- package/dist/packem_shared/Transition-CbNfKhaj.js +0 -108
- package/dist/packem_shared/TreeNodeMap-CtJUvBnd.js +0 -155
- package/dist/packem_shared/TreeView-DGlZeSsK.js +0 -148
- package/dist/packem_shared/TuiApp-DtdgNRWa.js +0 -122
- package/dist/packem_shared/TuiContext-lXmJFd-x.js +0 -418
- package/dist/packem_shared/UnorderedList-D8RPaEAW.js +0 -33
- package/dist/packem_shared/accessibility-context-BLelHhNU.js +0 -7
- package/dist/packem_shared/animation-context-BcJg8Jr6.js +0 -15
- package/dist/packem_shared/ansi-parser-BOP8fNdT.js +0 -43
- package/dist/packem_shared/ansi-tokenizer-LHq2LUWA.js +0 -307
- package/dist/packem_shared/app-context-CP0U6H7O.js +0 -11
- package/dist/packem_shared/background-context-BAUaxfOb.js +0 -5
- package/dist/packem_shared/boxes-oi3WUbyR.js +0 -92
- package/dist/packem_shared/braille-BoEWoH2I.js +0 -93
- package/dist/packem_shared/colorize-88_Vk8cn.js +0 -48
- package/dist/packem_shared/comparePoints-CAAlhiMS.js +0 -287
- package/dist/packem_shared/controlled-scroll-view-DJXfdWMm.js +0 -286
- package/dist/packem_shared/createInlineLoop-Dnfm1ZSJ.js +0 -99
- package/dist/packem_shared/createLinkedScrollGroup-Djw4Ceo0.js +0 -44
- package/dist/packem_shared/createMemoryStorage-esFJ61La.js +0 -115
- package/dist/packem_shared/createScreen-Dh0sZlQ0.js +0 -38
- package/dist/packem_shared/cursor-context-JxRzlqAx.js +0 -9
- package/dist/packem_shared/dom-CrbpQgat.js +0 -228
- package/dist/packem_shared/focus-context-CWkYtgcm.js +0 -26
- package/dist/packem_shared/format-time-BGmnDukX.js +0 -12
- package/dist/packem_shared/getPathToRoot-BbvlppLC.js +0 -4
- package/dist/packem_shared/getScrollHeight-Cz3CDQN2.js +0 -63
- package/dist/packem_shared/input-utils-ViAEXa0Z.js +0 -19
- package/dist/packem_shared/isIntersecting-fEXHJN5R.js +0 -10
- package/dist/packem_shared/isOsc52Supported-G0k4sXJx.js +0 -36
- package/dist/packem_shared/isTerminalPaletteQuerySupported-EeiwMKbr.js +0 -93
- package/dist/packem_shared/kittyFlags-bNNf_9kX.js +0 -26
- package/dist/packem_shared/line-chart-VGU2l7pu.js +0 -139
- package/dist/packem_shared/measure-element-Bc6PEaIe.js +0 -405
- package/dist/packem_shared/measure-text-BdOhbOeh.js +0 -1256
- package/dist/packem_shared/measureElement-DTELRaij.js +0 -4
- package/dist/packem_shared/mouse-context-BUHWKEIe.js +0 -6
- package/dist/packem_shared/parseSgrMouse-4hpBJBsW.js +0 -1
- package/dist/packem_shared/processLayout-B0Coz0Ua.js +0 -2
- package/dist/packem_shared/reconciler-Dd7Z0A97.js +0 -696
- package/dist/packem_shared/reconciler-mzMwSOft.js +0 -221
- package/dist/packem_shared/render-Bm9Oa1sG.js +0 -2799
- package/dist/packem_shared/render-CjlKdg4m.js +0 -199
- package/dist/packem_shared/renderToString-CWYS1ZXE.js +0 -86
- package/dist/packem_shared/renderToString-DB3ILWFm.js +0 -62
- package/dist/packem_shared/renderTreeToBuffer-CDDTGyZn.js +0 -311
- package/dist/packem_shared/renderer-GE9OLNNM.js +0 -1437
- package/dist/packem_shared/setEnableStyledLineCache-D5f4favX.js +0 -2
- package/dist/packem_shared/squashTextNodesWithMap-iqm6OMMT.js +0 -100
- package/dist/packem_shared/stderr-context-Bj4Mf7v7.js +0 -17
- package/dist/packem_shared/stdin-context-Bq_GNJ3z.js +0 -38
- package/dist/packem_shared/stdout-context-CgjWeCdO.js +0 -17
- package/dist/packem_shared/text-width-Db-AxMea.js +0 -43
- package/dist/packem_shared/token-to-elements-CK4s8MJd.js +0 -249
- package/dist/packem_shared/treeViewTheme-BpSw9TMf.js +0 -52
- package/dist/packem_shared/useAnimation-DV22qxiJ.js +0 -62
- package/dist/packem_shared/useApp-Cbi788rV.js +0 -6
- package/dist/packem_shared/useBoxMetrics-_5icypir.js +0 -54
- package/dist/packem_shared/useClipboard-MNj6MNR-.js +0 -23
- package/dist/packem_shared/useColorBlindness-D_sTIhcb.js +0 -30
- package/dist/packem_shared/useConsoleCapture-Dvt7G1W1.js +0 -61
- package/dist/packem_shared/useCursor-DS6LjIgv.js +0 -19
- package/dist/packem_shared/useElementDimensions-CAoKitVD.js +0 -67
- package/dist/packem_shared/useFocus-DLoGQJd9.js +0 -37
- package/dist/packem_shared/useFocusManager-UeZWtnNc.js +0 -16
- package/dist/packem_shared/useForm-sQENbEuv.js +0 -88
- package/dist/packem_shared/useHotkey-D9giUX3q.js +0 -112
- package/dist/packem_shared/useInput-DKZbqMRc.js +0 -594
- package/dist/packem_shared/useInterval-CSXM8c2I.js +0 -32
- package/dist/packem_shared/useIsScreenReaderEnabled-BeoVqo1R.js +0 -9
- package/dist/packem_shared/useKeyBindings-S4fSIEAk.js +0 -66
- package/dist/packem_shared/useKeyChord-BmXGNuEO.js +0 -114
- package/dist/packem_shared/useMouseAction-C5gZ2nj7.js +0 -29
- package/dist/packem_shared/useMouseContext-D-rFy60Q.js +0 -12
- package/dist/packem_shared/useMousePosition-BHBJ-kBk.js +0 -25
- package/dist/packem_shared/useOnMouseClick--ZIyBOBO.js +0 -35
- package/dist/packem_shared/useOnMouseHover-26diuXUC.js +0 -32
- package/dist/packem_shared/useOnMouseState-NO_Kda_C.js +0 -13
- package/dist/packem_shared/usePaste-png73gvT.js +0 -35
- package/dist/packem_shared/useScrollAcceleration-R9LfrPVG.js +0 -73
- package/dist/packem_shared/useScrollInput-DfzRGQFe.js +0 -72
- package/dist/packem_shared/useStderr-BSWerMZ7.js +0 -6
- package/dist/packem_shared/useStdin-Rf0zPzVA.js +0 -7
- package/dist/packem_shared/useStdout-B5yRcg9N.js +0 -6
- package/dist/packem_shared/useStopwatch-C__Zu6hd.js +0 -33
- package/dist/packem_shared/useTerminalPalette-CtFG2JTq.js +0 -38
- package/dist/packem_shared/useTextBuffer-C8fEe9Ly.js +0 -398
- package/dist/packem_shared/useTextSelection-ChrYZXsn.js +0 -50
- package/dist/packem_shared/useTimeout-DuCqgWPX.js +0 -34
- package/dist/packem_shared/useTimer-DnBtbhB5.js +0 -46
- package/dist/packem_shared/useTreeView-mkN5Di7w.js +0 -101
- package/dist/packem_shared/useTreeViewState-BpS_KZ-K.js +0 -502
- package/dist/packem_shared/useWindowSize-D3UU41mv.js +0 -20
- package/dist/packem_shared/utils-BgdlrbOH.js +0 -140
- package/dist/packem_shared/variant-config-DSZoX5TM.js +0 -8
- package/dist/packem_shared/waitFor-Cv9M2jKA.js +0 -39
- package/dist/packem_shared/wrapOrTruncateStyledLine-49Mne3t3.js +0 -147
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## @visulima/tui [1.0.0-alpha.8](https://github.com/visulima/visulima/compare/@visulima/tui@1.0.0-alpha.7...@visulima/tui@1.0.0-alpha.8) (2026-05-06)
|
|
2
|
+
|
|
3
|
+
## @visulima/tui [1.0.0-alpha.7](https://github.com/visulima/visulima/compare/@visulima/tui@1.0.0-alpha.6...@visulima/tui@1.0.0-alpha.7) (2026-05-06)
|
|
4
|
+
|
|
5
|
+
### Miscellaneous Chores
|
|
6
|
+
|
|
7
|
+
* re-enable jsdoc/match-description in api-platform and tighten config docs ([4ecaa31](https://github.com/visulima/visulima/commit/4ecaa315064cdd798af1ea1296be1fe52967bf9a))
|
|
8
|
+
* **tui:** align jsx ternaries with prettier formatting ([3ed06fa](https://github.com/visulima/visulima/commit/3ed06fa1979e8c5be29948a4793580e516b1c370))
|
|
9
|
+
* **tui:** apply prettier and eslint quote-style auto-fix ([a815954](https://github.com/visulima/visulima/commit/a8159542aa6fcef2060bf69d6a9fd4fe8a034ec2))
|
|
10
|
+
* **tui:** clear lint warnings ([74a3679](https://github.com/visulima/visulima/commit/74a36798eb1768dad01bcc14e1ba25079ada25d5))
|
|
11
|
+
* **tui:** fix lint errors ([ca7d9ff](https://github.com/visulima/visulima/commit/ca7d9ff9b1abe21a660b71897d33ff6c9c0446c7))
|
|
12
|
+
* **tui:** housekeeping cleanup ([b79b801](https://github.com/visulima/visulima/commit/b79b801b28d4a56171581ebcebb8fd0d75e89ac7))
|
|
13
|
+
|
|
14
|
+
### Tests
|
|
15
|
+
|
|
16
|
+
* **tui:** use assertions(0) so empty-series test allows expectTypeOf-only ([7c728dd](https://github.com/visulima/visulima/commit/7c728dddcb1f0a1751924e2585eb03c60d31132e))
|
|
17
|
+
|
|
18
|
+
### Continuous Integration
|
|
19
|
+
|
|
20
|
+
* integrate codspeed for benchmark tracking ([e758f3d](https://github.com/visulima/visulima/commit/e758f3da491cc00d3f8bbf10d7ba3fdf8deb5325))
|
|
21
|
+
|
|
1
22
|
## @visulima/tui [1.0.0-alpha.6](https://github.com/visulima/visulima/compare/@visulima/tui@1.0.0-alpha.5...@visulima/tui@1.0.0-alpha.6) (2026-05-04)
|
|
2
23
|
|
|
3
24
|
### Bug Fixes
|
package/dist/core/index.js
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Cell, StyleMasks } from '../packem_shared/Cell-DCg1kJY-.js';
|
|
3
|
-
export { createInlineLoop } from '../packem_shared/createInlineLoop-Dnfm1ZSJ.js';
|
|
4
|
-
export { InputParser } from '../packem_shared/InputParser-BlsfeY9J.js';
|
|
5
|
-
export { Renderer, TerminalGuard, terminalSize } from '../packem_shared/Renderer-zZ5O3vxc.js';
|
|
1
|
+
import{TuiApp as o}from"../packem_shared/TuiApp-DrjI_i-R.js";import{Cell as t,StyleMasks as m}from"../packem_shared/Cell-BrXn3jxY.js";import{createInlineLoop as l}from"../packem_shared/createInlineLoop-DRNZ7jqH.js";import{InputParser as f}from"../packem_shared/InputParser-rZKjY_7Y.js";import{Renderer as x,TerminalGuard as s,terminalSize as u}from"../packem_shared/Renderer-DJXooAsp.js";export{t as Cell,f as InputParser,x as Renderer,m as StyleMasks,s as TerminalGuard,o as TuiApp,l as createInlineLoop,u as terminalSize};
|
package/dist/ink/index.d.ts
CHANGED
|
@@ -123,7 +123,6 @@ type Props$1p = {
|
|
|
123
123
|
/**
|
|
124
124
|
* Keyboard-navigable accordion. Use arrow keys to move between panels and
|
|
125
125
|
* Enter / Space to toggle.
|
|
126
|
-
* @param props See {@link Props}.
|
|
127
126
|
* @returns A `ReactElement` rendering the accordion column.
|
|
128
127
|
*/
|
|
129
128
|
declare function Accordion({
|
|
@@ -253,7 +252,6 @@ type Props$1l = {
|
|
|
253
252
|
/**
|
|
254
253
|
* Three-way approval prompt for tool calls. Resolves via `onDecision`:
|
|
255
254
|
* `y` / Enter → allow-once, `a` → allow-always, `n` / Esc → deny.
|
|
256
|
-
* @param props See {@link Props}.
|
|
257
255
|
* @returns A bordered `ReactElement` containing the risk banner, params
|
|
258
256
|
* preview, optional body, and the prompt line.
|
|
259
257
|
*/
|
|
@@ -599,8 +597,8 @@ declare function BigText({
|
|
|
599
597
|
}: Props$1h): ReactElement;
|
|
600
598
|
type Props$1g = {
|
|
601
599
|
/**
|
|
602
|
-
*
|
|
603
|
-
* @default "●"
|
|
600
|
+
* Glyph rendered as the blinking dot.
|
|
601
|
+
* @default "●" (filled bullet)
|
|
604
602
|
*/
|
|
605
603
|
readonly character?: string;
|
|
606
604
|
/**
|
|
@@ -698,8 +696,8 @@ type Props$1e = {
|
|
|
698
696
|
*/
|
|
699
697
|
readonly items: ReadonlyArray<BreadcrumbItem>;
|
|
700
698
|
/**
|
|
701
|
-
*
|
|
702
|
-
* @default "›"
|
|
699
|
+
* Glyph rendered between adjacent items.
|
|
700
|
+
* @default "›" (right single angle quote)
|
|
703
701
|
*/
|
|
704
702
|
readonly separator?: string;
|
|
705
703
|
};
|
|
@@ -742,7 +740,6 @@ type Props$1d = {
|
|
|
742
740
|
};
|
|
743
741
|
/**
|
|
744
742
|
* Focusable button. Triggers `onPress` on Enter / Space.
|
|
745
|
-
* @param props See {@link Props}.
|
|
746
743
|
* @returns A `ReactElement` rendering the button (bordered or ghost variant).
|
|
747
744
|
*/
|
|
748
745
|
declare function Button({
|
|
@@ -805,7 +802,6 @@ type Props$1c = {
|
|
|
805
802
|
/**
|
|
806
803
|
* Month-grid date picker. Arrow keys move focus by one day, page up/down move
|
|
807
804
|
* by month. Enter submits; Space or Enter selects.
|
|
808
|
-
* @param props See {@link Props}.
|
|
809
805
|
* @returns A bordered `ReactElement` containing the month header, weekday
|
|
810
806
|
* labels, and the day grid.
|
|
811
807
|
*/
|
|
@@ -1234,7 +1230,6 @@ type Props$14 = {
|
|
|
1234
1230
|
* Full-width modal-style confirm/cancel prompt. Unlike `ConfirmInput`, this
|
|
1235
1231
|
* renders a visible two-button UI: ← / → to toggle focus, Enter to activate,
|
|
1236
1232
|
* y/n as shortcuts, Esc to cancel.
|
|
1237
|
-
* @param props See {@link Props}.
|
|
1238
1233
|
* @returns A bordered `ReactElement` with optional title, body, and two
|
|
1239
1234
|
* buttons (cancel / confirm).
|
|
1240
1235
|
*/
|
|
@@ -1421,7 +1416,6 @@ type Props$11 = {
|
|
|
1421
1416
|
* Segmented control that flips between mutually exclusive content. More
|
|
1422
1417
|
* compact than `Tabs`: the selected segment is highlighted as a pill, and
|
|
1423
1418
|
* only the active segment's content is rendered.
|
|
1424
|
-
* @param props See {@link Props}.
|
|
1425
1419
|
* @returns A `ReactElement` with a segmented header row and the active
|
|
1426
1420
|
* panel's content beneath it.
|
|
1427
1421
|
*/
|
|
@@ -2368,9 +2362,9 @@ type HeatmapProps = {
|
|
|
2368
2362
|
*/
|
|
2369
2363
|
readonly cellWidth?: number;
|
|
2370
2364
|
/**
|
|
2371
|
-
*
|
|
2365
|
+
* Glyph used to paint each heatmap cell. Defaults to `█` so the
|
|
2372
2366
|
* background color fills the cell.
|
|
2373
|
-
* @default "█"
|
|
2367
|
+
* @default "█" (full block)
|
|
2374
2368
|
*/
|
|
2375
2369
|
readonly character?: string;
|
|
2376
2370
|
/**
|
|
@@ -2571,7 +2565,6 @@ type Props$Q = {
|
|
|
2571
2565
|
/**
|
|
2572
2566
|
* Histogram built on top of BarChart. Bins the raw values (via explicit
|
|
2573
2567
|
* thresholds or equal-width bins) and hands the counts off to BarChart.
|
|
2574
|
-
* @param props See {@link Props}.
|
|
2575
2568
|
* @returns A `ReactElement` rendering a BarChart of bucket counts.
|
|
2576
2569
|
*/
|
|
2577
2570
|
declare function Histogram({
|
|
@@ -2605,7 +2598,6 @@ type Props$P = {
|
|
|
2605
2598
|
};
|
|
2606
2599
|
/**
|
|
2607
2600
|
* Render a keyboard key (e.g. `<Kbd>Enter</Kbd>`).
|
|
2608
|
-
* @param props See {@link Props}.
|
|
2609
2601
|
* @returns A `ReactElement` styled as a key cap (solid / outline / bare).
|
|
2610
2602
|
*/
|
|
2611
2603
|
declare function Kbd({
|
|
@@ -2752,8 +2744,8 @@ type Props$L = {
|
|
|
2752
2744
|
*/
|
|
2753
2745
|
readonly placeholderChar?: string;
|
|
2754
2746
|
/**
|
|
2755
|
-
*
|
|
2756
|
-
* @default "#"
|
|
2747
|
+
* Sentinel character in the mask string used to mark editable positions.
|
|
2748
|
+
* @default "#" (hash)
|
|
2757
2749
|
*/
|
|
2758
2750
|
readonly token?: string;
|
|
2759
2751
|
};
|
|
@@ -2834,7 +2826,6 @@ type Props$K = {
|
|
|
2834
2826
|
/**
|
|
2835
2827
|
* Dropdown / context menu with optional sections and disabled items.
|
|
2836
2828
|
* Keyboard: ↑/↓ (or j/k) to navigate, Enter to select, Esc to cancel.
|
|
2837
|
-
* @param props See {@link Props}.
|
|
2838
2829
|
* @returns A `ReactElement` rendering the menu, optionally wrapped in a
|
|
2839
2830
|
* rounded border when `bordered` is true.
|
|
2840
2831
|
*/
|
|
@@ -3036,7 +3027,6 @@ type Props$F = {
|
|
|
3036
3027
|
/**
|
|
3037
3028
|
* Renders a tree of operations with per-node status. Perfect for agent
|
|
3038
3029
|
* progress panels (reading → editing → running tests → done).
|
|
3039
|
-
* @param props See {@link Props}.
|
|
3040
3030
|
* @returns A `ReactElement` rendering the nested tree of operation rows.
|
|
3041
3031
|
*/
|
|
3042
3032
|
declare function OperationTree({
|
|
@@ -3077,7 +3067,6 @@ type Props$E = {
|
|
|
3077
3067
|
* Read-only presentational option list. Like `SelectInput` but without focus,
|
|
3078
3068
|
* input handling, or scrolling — just a styled list of rows. Useful inside
|
|
3079
3069
|
* modals, sidebars, or summary panels.
|
|
3080
|
-
* @param props See {@link Props}.
|
|
3081
3070
|
* @returns A `ReactElement` rendering the list; bordered when requested.
|
|
3082
3071
|
*/
|
|
3083
3072
|
declare function OptionList({
|
|
@@ -3217,8 +3206,8 @@ type Props$A = {
|
|
|
3217
3206
|
*/
|
|
3218
3207
|
readonly animated?: boolean;
|
|
3219
3208
|
/**
|
|
3220
|
-
*
|
|
3221
|
-
* @default "█"
|
|
3209
|
+
* Glyph repeated to fill each placeholder block.
|
|
3210
|
+
* @default "█" (full block)
|
|
3222
3211
|
*/
|
|
3223
3212
|
readonly character?: string;
|
|
3224
3213
|
/**
|
|
@@ -3250,7 +3239,6 @@ type Props$A = {
|
|
|
3250
3239
|
/**
|
|
3251
3240
|
* Skeleton loading indicator. Renders a stack of solid blocks whose widths
|
|
3252
3241
|
* vary to mimic text placeholders. Pair with `async` data fetching.
|
|
3253
|
-
* @param props See {@link Props}.
|
|
3254
3242
|
* @returns A `ReactElement` rendering the skeleton rows.
|
|
3255
3243
|
*/
|
|
3256
3244
|
declare function Placeholder({
|
|
@@ -3467,7 +3455,6 @@ type Props$w = {
|
|
|
3467
3455
|
/**
|
|
3468
3456
|
* Scatter plot rendered on a braille pixel grid. Each sample lights one
|
|
3469
3457
|
* sub-cell pixel; overlapping points merge into denser braille glyphs.
|
|
3470
|
-
* @param props See {@link Props}.
|
|
3471
3458
|
* @returns A `ReactElement` containing the plot and an optional legend.
|
|
3472
3459
|
*/
|
|
3473
3460
|
declare function ScatterPlot({
|
|
@@ -3493,8 +3480,8 @@ type Props$v = {
|
|
|
3493
3480
|
*/
|
|
3494
3481
|
readonly defaultValue?: string;
|
|
3495
3482
|
/**
|
|
3496
|
-
*
|
|
3497
|
-
* @default "⌕"
|
|
3483
|
+
* Node rendered before the input as a search affordance.
|
|
3484
|
+
* @default "⌕" (telephone recorder)
|
|
3498
3485
|
*/
|
|
3499
3486
|
readonly icon?: ReactNode;
|
|
3500
3487
|
/**
|
|
@@ -3521,7 +3508,6 @@ type Props$v = {
|
|
|
3521
3508
|
};
|
|
3522
3509
|
/**
|
|
3523
3510
|
* Search-styled text input with an icon and bordered container.
|
|
3524
|
-
* @param props See {@link Props}.
|
|
3525
3511
|
* @returns A `ReactElement` wrapping `TextInput` with an icon column.
|
|
3526
3512
|
*/
|
|
3527
3513
|
declare function SearchInput({
|
|
@@ -3731,6 +3717,7 @@ type Props$r = {
|
|
|
3731
3717
|
/**
|
|
3732
3718
|
* Text with an animated highlight band that sweeps across the characters.
|
|
3733
3719
|
* Perfect for "generating…" states.
|
|
3720
|
+
* @param props Component props.
|
|
3734
3721
|
* @param props.bandWidth Number of characters in the bright band.
|
|
3735
3722
|
* @param props.color Color applied to characters outside the band.
|
|
3736
3723
|
* @param props.highlightColor Color applied to characters inside the band.
|
|
@@ -3872,7 +3859,6 @@ type Props$p = {
|
|
|
3872
3859
|
};
|
|
3873
3860
|
/**
|
|
3874
3861
|
* Inline bar chart using Unicode block glyphs.
|
|
3875
|
-
* @param props See {@link Props}.
|
|
3876
3862
|
* @returns A `ReactElement` containing the glyph string, or `null` when
|
|
3877
3863
|
* `data` is empty.
|
|
3878
3864
|
*/
|
|
@@ -4056,7 +4042,6 @@ type Props$h = {
|
|
|
4056
4042
|
};
|
|
4057
4043
|
/**
|
|
4058
4044
|
* Step indicator for multi-stage flows.
|
|
4059
|
-
* @param props See {@link Props}.
|
|
4060
4045
|
* @returns A `ReactElement` rendering the steps horizontally or vertically.
|
|
4061
4046
|
*/
|
|
4062
4047
|
declare function Stepper({
|
|
@@ -4156,8 +4141,8 @@ type Props$f = {
|
|
|
4156
4141
|
*/
|
|
4157
4142
|
readonly color?: LiteralUnion<AnsiColors, string>;
|
|
4158
4143
|
/**
|
|
4159
|
-
*
|
|
4160
|
-
* @default "▊"
|
|
4144
|
+
* Glyph rendered at the streaming caret while characters are still being revealed.
|
|
4145
|
+
* @default "▊" (left three quarters block)
|
|
4161
4146
|
*/
|
|
4162
4147
|
readonly cursor?: string;
|
|
4163
4148
|
/**
|
|
@@ -4230,7 +4215,6 @@ type Props$e = {
|
|
|
4230
4215
|
};
|
|
4231
4216
|
/**
|
|
4232
4217
|
* Focusable on/off switch. Toggles with Space or Enter.
|
|
4233
|
-
* @param props See {@link Props}.
|
|
4234
4218
|
* @returns A `ReactElement` rendering two labeled segments plus an optional
|
|
4235
4219
|
* trailing label.
|
|
4236
4220
|
*/
|
|
@@ -4462,7 +4446,6 @@ type Props$a = {
|
|
|
4462
4446
|
};
|
|
4463
4447
|
/**
|
|
4464
4448
|
* Render a short pill-shaped label.
|
|
4465
|
-
* @param props See {@link Props}.
|
|
4466
4449
|
* @returns A `ReactElement` rendering the tag in the requested variant.
|
|
4467
4450
|
*/
|
|
4468
4451
|
declare function Tag({
|
|
@@ -4721,7 +4704,6 @@ type Props$6 = {
|
|
|
4721
4704
|
};
|
|
4722
4705
|
/**
|
|
4723
4706
|
* Ephemeral notification. Disappears automatically after `duration` ms.
|
|
4724
|
-
* @param props See {@link Props}.
|
|
4725
4707
|
* @returns A bordered `ReactElement` while visible; `null` once dismissed.
|
|
4726
4708
|
*/
|
|
4727
4709
|
declare function Toast({
|
|
@@ -5771,7 +5753,6 @@ type UseKeyChordOptions = {
|
|
|
5771
5753
|
* @param callback Invoked exactly once per successful chord match. Latest
|
|
5772
5754
|
* reference is captured in a ref.
|
|
5773
5755
|
* @param options Optional `isActive` flag and `resetAfter` silence timeout.
|
|
5774
|
-
* @returns `void` — chord detection is wired up via `useInput` internally.
|
|
5775
5756
|
*/
|
|
5776
5757
|
declare const useKeyChord: (sequence: ReadonlyArray<KeyChordStep>, callback: () => void, options?: UseKeyChordOptions) => void;
|
|
5777
5758
|
type UseLinkedScrollReturn = {
|
package/dist/ink/index.js
CHANGED
|
@@ -1,155 +1 @@
|
|
|
1
|
-
export { clearOsc52, isOsc52Supported, writeOsc52 } from '../packem_shared/isOsc52Supported-G0k4sXJx.js';
|
|
2
|
-
export { COLOR_BLINDNESS_COMPENSATION, COLOR_BLINDNESS_SIMULATION, IDENTITY_MATRIX, applyColorMatrix, hexToRgb, rgbToHex, transformHexColor } from '../packem_shared/COLOR_BLINDNESS_SIMULATION-BsMy5Ewl.js';
|
|
3
|
-
export { default as Accordion } from '../packem_shared/Accordion-BG-yfIkV.js';
|
|
4
|
-
export { default as Alert } from '../packem_shared/Alert-BLcwIW8V.js';
|
|
5
|
-
export { default as AnimatePresence } from '../packem_shared/AnimatePresence-D8nEOr_B.js';
|
|
6
|
-
export { default as ApprovalPrompt } from '../packem_shared/ApprovalPrompt-BXdPros1.js';
|
|
7
|
-
export { default as AreaChart } from '../packem_shared/AreaChart-CmTcxLum.js';
|
|
8
|
-
export { default as Badge } from '../packem_shared/Badge-CUfbXwAB.js';
|
|
9
|
-
export { default as BarChart } from '../packem_shared/BarChart-DWRae67P.js';
|
|
10
|
-
export { default as BigText } from '../packem_shared/BigText-CVq2X7B5.js';
|
|
11
|
-
export { default as BlinkDot } from '../packem_shared/BlinkDot-CrbHMR3L.js';
|
|
12
|
-
export { default as Box } from '../packem_shared/Box-W1w_NGin.js';
|
|
13
|
-
export { default as Breadcrumb } from '../packem_shared/Breadcrumb-CPdNxVYs.js';
|
|
14
|
-
export { default as Button } from '../packem_shared/Button-CBmTbJ_D.js';
|
|
15
|
-
export { default as Calendar } from '../packem_shared/Calendar-C2Qxt-LA.js';
|
|
16
|
-
export { default as Canvas } from '../packem_shared/Canvas-COttmLPX.js';
|
|
17
|
-
export { default as Card } from '../packem_shared/Card-D3tGkNCm.js';
|
|
18
|
-
export { default as Checkbox } from '../packem_shared/Checkbox-Dpy_4Lws.js';
|
|
19
|
-
export { default as Code } from '../packem_shared/Code-CwzzbsLx.js';
|
|
20
|
-
export { default as Collapsible } from '../packem_shared/Collapsible-BMDrXf5C.js';
|
|
21
|
-
export { default as CommandBlock } from '../packem_shared/CommandBlock-jdOGJPjY.js';
|
|
22
|
-
export { default as CommandPalette } from '../packem_shared/CommandPalette-B5IfUQwi.js';
|
|
23
|
-
export { default as ConfirmDialog } from '../packem_shared/ConfirmDialog-5XJv3Cc4.js';
|
|
24
|
-
export { default as ConfirmInput } from '../packem_shared/ConfirmInput-CxUS0XAA.js';
|
|
25
|
-
export { default as ConsoleOverlay } from '../packem_shared/ConsoleOverlay-BvnCEgjG.js';
|
|
26
|
-
export { default as ContentSwitcher } from '../packem_shared/ContentSwitcher-BHFpO5Za.js';
|
|
27
|
-
export { default as Cursor } from '../packem_shared/Cursor-DiW7YoSK.js';
|
|
28
|
-
export { default as DatePicker } from '../packem_shared/DatePicker-CPejKoqS.js';
|
|
29
|
-
export { default as DefinitionList } from '../packem_shared/DefinitionList-BAwr0l5J.js';
|
|
30
|
-
export { default as Dialog } from '../packem_shared/Dialog-S9r7Izff.js';
|
|
31
|
-
export { default as DiffView } from '../packem_shared/DiffView-BR4T6-Sj.js';
|
|
32
|
-
export { default as Divider } from '../packem_shared/Divider-DocXIqNn.js';
|
|
33
|
-
export { default as FilePicker } from '../packem_shared/FilePicker-BZ55oF_n.js';
|
|
34
|
-
export { default as Form, FormField } from '../packem_shared/FormField-BSG16cnA.js';
|
|
35
|
-
export { default as Gauge } from '../packem_shared/Gauge-CKXUXxft.js';
|
|
36
|
-
export { default as Gradient } from '../packem_shared/Gradient-Dg0NezWc.js';
|
|
37
|
-
export { default as Heading } from '../packem_shared/Heading-BnR7McmP.js';
|
|
38
|
-
export { default as Heatmap } from '../packem_shared/Heatmap-_jqISOU0.js';
|
|
39
|
-
export { default as Help } from '../packem_shared/Help-0yZ_IcQg.js';
|
|
40
|
-
export { default as Histogram } from '../packem_shared/Histogram-CB6XcmZW.js';
|
|
41
|
-
export { default as Kbd } from '../packem_shared/Kbd-BNDXQgey.js';
|
|
42
|
-
export { L as LineChart } from '../packem_shared/line-chart-VGU2l7pu.js';
|
|
43
|
-
export { default as Link } from '../packem_shared/Link-DZ2Tiq1m.js';
|
|
44
|
-
export { default as LoadingIndicator } from '../packem_shared/LoadingIndicator-DzbLGfyJ.js';
|
|
45
|
-
export { default as Markdown } from '../packem_shared/Markdown-33bpCUoe.js';
|
|
46
|
-
export { default as MaskedInput } from '../packem_shared/MaskedInput-Ctr6v2dO.js';
|
|
47
|
-
export { default as Menu } from '../packem_shared/Menu-CeKxhEix.js';
|
|
48
|
-
export { default as MessageBubble } from '../packem_shared/MessageBubble-BMoU8L2Q.js';
|
|
49
|
-
export { default as ModelBadge } from '../packem_shared/ModelBadge-CNIxPs7v.js';
|
|
50
|
-
export { default as MultiSelect } from '../packem_shared/MultiSelect-yz7-w0Zv.js';
|
|
51
|
-
export { default as Newline } from '../packem_shared/Newline-DBtYEg8x.js';
|
|
52
|
-
export { default as OperationTree } from '../packem_shared/OperationTree-Dudx5o1o.js';
|
|
53
|
-
export { default as OptionList } from '../packem_shared/OptionList-CTyqQaZ1.js';
|
|
54
|
-
export { default as OrderedList } from '../packem_shared/OrderedList-VsvSmHUC.js';
|
|
55
|
-
export { default as Paginator } from '../packem_shared/Paginator-DmGogvEI.js';
|
|
56
|
-
export { default as Paragraph } from '../packem_shared/Paragraph-CNNhfepo.js';
|
|
57
|
-
export { default as Placeholder } from '../packem_shared/Placeholder-DkM69Q8Z.js';
|
|
58
|
-
export { default as ProgressBar } from '../packem_shared/ProgressBar-B7cS4uQm.js';
|
|
59
|
-
export { default as RadioGroup } from '../packem_shared/RadioGroup-B4F9PUyL.js';
|
|
60
|
-
export { default as ScatterPlot } from '../packem_shared/ScatterPlot-CWOg4G5h.js';
|
|
61
|
-
export { C as ControlledScrollView } from '../packem_shared/controlled-scroll-view-DJXfdWMm.js';
|
|
62
|
-
export { ScrollBar } from '../packem_shared/ScrollBar-DFeWH43I.js';
|
|
63
|
-
export { ScrollBarBox } from '../packem_shared/ScrollBarBox-C7VL6Izd.js';
|
|
64
|
-
export { ScrollList } from '../packem_shared/ScrollList-DRcr_RrN.js';
|
|
65
|
-
export { ScrollView } from '../packem_shared/ScrollView-C6rdlGwU.js';
|
|
66
|
-
export { default as SearchInput } from '../packem_shared/SearchInput-cB8zFhSg.js';
|
|
67
|
-
export { default as SelectInput } from '../packem_shared/SelectInput-WzZSqp72.js';
|
|
68
|
-
export { default as SelectInputIndicator } from '../packem_shared/SelectInputIndicator-DKeN6v5Z.js';
|
|
69
|
-
export { default as SelectInputItem } from '../packem_shared/SelectInputItem-CxFL3spM.js';
|
|
70
|
-
export { default as ShimmerText } from '../packem_shared/ShimmerText-B2VbPUSB.js';
|
|
71
|
-
export { default as Slider } from '../packem_shared/Slider-BOrNTOQe.js';
|
|
72
|
-
export { default as Spacer } from '../packem_shared/Spacer-DhmXyTb8.js';
|
|
73
|
-
export { default as Sparkline } from '../packem_shared/Sparkline-BSbjPrwK.js';
|
|
74
|
-
export { default as Spinner } from '../packem_shared/Spinner-BcO5BCAa.js';
|
|
75
|
-
export { default as Static } from '../packem_shared/Static-DpTd6Eed.js';
|
|
76
|
-
export { default as StaticRender } from '../packem_shared/StaticRender-C3XWvJdC.js';
|
|
77
|
-
export { default as StatusLine } from '../packem_shared/StatusLine-DQNUstN9.js';
|
|
78
|
-
export { default as StatusMessage } from '../packem_shared/StatusMessage-BYTL6Pl-.js';
|
|
79
|
-
export { default as Stepper } from '../packem_shared/Stepper-CmUPRK3z.js';
|
|
80
|
-
export { default as Stopwatch } from '../packem_shared/Stopwatch-zqLQAxXC.js';
|
|
81
|
-
export { default as StreamingText } from '../packem_shared/StreamingText-BmuoJtGu.js';
|
|
82
|
-
export { default as Switch } from '../packem_shared/Switch-DcPdy8nm.js';
|
|
83
|
-
export { default as Tab } from '../packem_shared/Tab-C6r5q4hR.js';
|
|
84
|
-
export { default as Table } from '../packem_shared/Table-Bgxo87Df.js';
|
|
85
|
-
export { default as Tabs } from '../packem_shared/Tabs-DubuHdYV.js';
|
|
86
|
-
export { default as Tag } from '../packem_shared/Tag-CCqM7Ee9.js';
|
|
87
|
-
export { default as Text } from '../packem_shared/Text-CtUwV89_.js';
|
|
88
|
-
export { default as TextInput } from '../packem_shared/TextInput-C9r7zT0U.js';
|
|
89
|
-
export { default as Textarea } from '../packem_shared/Textarea-CGmgt-Nl.js';
|
|
90
|
-
export { default as Timer } from '../packem_shared/Timer-D7ZZ0_wz.js';
|
|
91
|
-
export { default as Toast } from '../packem_shared/Toast-DXSCXFPY.js';
|
|
92
|
-
export { default as Tooltip } from '../packem_shared/Tooltip-SvVjj-2k.js';
|
|
93
|
-
export { default as Transform } from '../packem_shared/Transform-Cfyva2wd.js';
|
|
94
|
-
export { default as Transition } from '../packem_shared/Transition-CbNfKhaj.js';
|
|
95
|
-
export { theme as treeViewTheme } from '../packem_shared/treeViewTheme-BpSw9TMf.js';
|
|
96
|
-
export { TreeNodeMap } from '../packem_shared/TreeNodeMap-CtJUvBnd.js';
|
|
97
|
-
export { TreeView } from '../packem_shared/TreeView-DGlZeSsK.js';
|
|
98
|
-
export { useTreeView } from '../packem_shared/useTreeView-mkN5Di7w.js';
|
|
99
|
-
export { useTreeViewState } from '../packem_shared/useTreeViewState-BpS_KZ-K.js';
|
|
100
|
-
export { default as UnorderedList } from '../packem_shared/UnorderedList-D8RPaEAW.js';
|
|
101
|
-
export { g as getPathToRoot, i as isNodeSelectable } from '../packem_shared/dom-CrbpQgat.js';
|
|
102
|
-
export { default as useAnimation } from '../packem_shared/useAnimation-DV22qxiJ.js';
|
|
103
|
-
export { default as useApp } from '../packem_shared/useApp-Cbi788rV.js';
|
|
104
|
-
export { default as useBoxMetrics } from '../packem_shared/useBoxMetrics-_5icypir.js';
|
|
105
|
-
export { default as useClipboard } from '../packem_shared/useClipboard-MNj6MNR-.js';
|
|
106
|
-
export { default as useColorBlindness } from '../packem_shared/useColorBlindness-D_sTIhcb.js';
|
|
107
|
-
export { default as useConsoleCapture } from '../packem_shared/useConsoleCapture-Dvt7G1W1.js';
|
|
108
|
-
export { default as useCursor } from '../packem_shared/useCursor-DS6LjIgv.js';
|
|
109
|
-
export { default as useFocus } from '../packem_shared/useFocus-DLoGQJd9.js';
|
|
110
|
-
export { default as useFocusManager } from '../packem_shared/useFocusManager-UeZWtnNc.js';
|
|
111
|
-
export { default as useForm } from '../packem_shared/useForm-sQENbEuv.js';
|
|
112
|
-
export { default as useHotkey } from '../packem_shared/useHotkey-D9giUX3q.js';
|
|
113
|
-
export { default as useInput } from '../packem_shared/useInput-DKZbqMRc.js';
|
|
114
|
-
export { default as useInterval } from '../packem_shared/useInterval-CSXM8c2I.js';
|
|
115
|
-
export { default as useIsScreenReaderEnabled } from '../packem_shared/useIsScreenReaderEnabled-BeoVqo1R.js';
|
|
116
|
-
export { default as useKeyBindings } from '../packem_shared/useKeyBindings-S4fSIEAk.js';
|
|
117
|
-
export { default as useKeyChord } from '../packem_shared/useKeyChord-BmXGNuEO.js';
|
|
118
|
-
export { default as createLinkedScrollGroup } from '../packem_shared/createLinkedScrollGroup-Djw4Ceo0.js';
|
|
119
|
-
export { default as usePaste } from '../packem_shared/usePaste-png73gvT.js';
|
|
120
|
-
export { createFileStorage, createMemoryStorage, default as usePersistentState } from '../packem_shared/createMemoryStorage-esFJ61La.js';
|
|
121
|
-
export { default as useScrollAcceleration } from '../packem_shared/useScrollAcceleration-R9LfrPVG.js';
|
|
122
|
-
export { default as useScrollInput } from '../packem_shared/useScrollInput-DfzRGQFe.js';
|
|
123
|
-
export { default as useStderr } from '../packem_shared/useStderr-BSWerMZ7.js';
|
|
124
|
-
export { default as useStdin } from '../packem_shared/useStdin-Rf0zPzVA.js';
|
|
125
|
-
export { default as useStdout } from '../packem_shared/useStdout-B5yRcg9N.js';
|
|
126
|
-
export { default as useStopwatch } from '../packem_shared/useStopwatch-C__Zu6hd.js';
|
|
127
|
-
export { default as useTerminalPalette } from '../packem_shared/useTerminalPalette-CtFG2JTq.js';
|
|
128
|
-
export { default as useTextBuffer } from '../packem_shared/useTextBuffer-C8fEe9Ly.js';
|
|
129
|
-
export { default as useTextSelection } from '../packem_shared/useTextSelection-ChrYZXsn.js';
|
|
130
|
-
export { default as useTimeout } from '../packem_shared/useTimeout-DuCqgWPX.js';
|
|
131
|
-
export { default as useTimer } from '../packem_shared/useTimer-DnBtbhB5.js';
|
|
132
|
-
export { default as useWindowSize } from '../packem_shared/useWindowSize-D3UU41mv.js';
|
|
133
|
-
export { IMECompositionBuffer, isIMEInput } from '../packem_shared/IMECompositionBuffer-Dl3S0KnF.js';
|
|
134
|
-
export { kittyFlags, kittyModifiers } from '../packem_shared/kittyFlags-bNNf_9kX.js';
|
|
135
|
-
export { c as calculateScrollbarLayout, a as calculateScrollbarThumb, b as collectSortedFragments, g as getAddedScrollHeight, d as getBoundingBox, e as getHorizontalScrollbarBoundingBox, f as getInnerHeight, h as getInnerWidth, i as getRelativeLeft, j as getRelativeTop, k as getText, l as getVerticalScrollbarBoundingBox, m as measureElement, p as processLayout } from '../packem_shared/measure-element-Bc6PEaIe.js';
|
|
136
|
-
export { c as clearStringWidthCache, a as clearStyledLineCache, i as inkCharacterWidth, s as setEnableStyledLineCache, b as setStringWidthFunction, t as toStyledLine } from '../packem_shared/measure-text-BdOhbOeh.js';
|
|
137
|
-
export { default as render } from '../packem_shared/render-Bm9Oa1sG.js';
|
|
138
|
-
export { default as renderToString } from '../packem_shared/renderToString-CWYS1ZXE.js';
|
|
139
|
-
export { default as ResizeObserver, ResizeObserverEntry } from '../packem_shared/ResizeObserverEntry-Vr8GZ74x.js';
|
|
140
|
-
export { calculateScroll, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth } from '../packem_shared/getScrollHeight-Cz3CDQN2.js';
|
|
141
|
-
export { Range, Selection, applySelectionToStyledLine, comparePoints } from '../packem_shared/comparePoints-CAAlhiMS.js';
|
|
142
|
-
export { squashTextNodesWithMap } from '../packem_shared/squashTextNodesWithMap-iqm6OMMT.js';
|
|
143
|
-
export { isTerminalPaletteQuerySupported, queryTerminalPalette } from '../packem_shared/isTerminalPaletteQuerySupported-EeiwMKbr.js';
|
|
144
|
-
export { wrapOrTruncateStyledLine } from '../packem_shared/wrapOrTruncateStyledLine-49Mne3t3.js';
|
|
145
|
-
export { default as Fullscreen } from '../packem_shared/Fullscreen-DO7voOq5.js';
|
|
146
|
-
export { default as MouseProvider } from '../packem_shared/MouseProvider-CekPbXCh.js';
|
|
147
|
-
export { default as isIntersecting } from '../packem_shared/isIntersecting-fEXHJN5R.js';
|
|
148
|
-
export { default as useMouseAction } from '../packem_shared/useMouseAction-C5gZ2nj7.js';
|
|
149
|
-
export { default as useMouseContext } from '../packem_shared/useMouseContext-D-rFy60Q.js';
|
|
150
|
-
export { default as useMousePosition } from '../packem_shared/useMousePosition-BHBJ-kBk.js';
|
|
151
|
-
export { default as useOnMouseHover } from '../packem_shared/useOnMouseHover-26diuXUC.js';
|
|
152
|
-
export { default as useOnMouseState } from '../packem_shared/useOnMouseState-NO_Kda_C.js';
|
|
153
|
-
export { p as parseSgrMouse } from '../packem_shared/ansi-parser-BOP8fNdT.js';
|
|
154
|
-
export { useElementDimensions, useElementPosition } from '../packem_shared/useElementDimensions-CAoKitVD.js';
|
|
155
|
-
export { useOnMouseClick } from '../packem_shared/useOnMouseClick--ZIyBOBO.js';
|
|
1
|
+
import{clearOsc52 as t,isOsc52Supported as o,writeOsc52 as a}from"../packem_shared/isOsc52Supported-DKK7Uee6.js";import{COLOR_BLINDNESS_COMPENSATION as s,COLOR_BLINDNESS_SIMULATION as l,IDENTITY_MATRIX as u,applyColorMatrix as p,hexToRgb as d,rgbToHex as m,transformHexColor as x}from"../packem_shared/COLOR_BLINDNESS_SIMULATION-DqErf7XX.js";import{default as n}from"../packem_shared/Accordion-BXsqchV-.js";import{default as S}from"../packem_shared/Alert-BhYVMHtR.js";import{default as T}from"../packem_shared/AnimatePresence-Eu7Z8KHc.js";import{default as h}from"../packem_shared/ApprovalPrompt-BSn0FT1g.js";import{default as B}from"../packem_shared/AreaChart-Chy-frI7.js";import{default as b}from"../packem_shared/Badge-B8WPyRsK.js";import{default as P}from"../packem_shared/BarChart-rpZtlMcF.js";import{default as y}from"../packem_shared/BigText-CRpwUzrt.js";import{default as w}from"../packem_shared/BlinkDot-BvnRuWP8.js";import{default as E}from"../packem_shared/Box-BwqSvWuq.js";import{default as F}from"../packem_shared/Breadcrumb-D0hClbRV.js";import{default as N}from"../packem_shared/Button-B89Yvbc6.js";import{default as D}from"../packem_shared/Calendar-Dmflvm2S.js";import{default as W}from"../packem_shared/Canvas-CKg6WV47.js";import{default as z}from"../packem_shared/Card-B_9fXdtU.js";import{default as K}from"../packem_shared/Checkbox-BN71eCWU.js";import{default as U}from"../packem_shared/Code-HhevcyiH.js";import{default as Q}from"../packem_shared/Collapsible-u6uf_FdV.js";import{default as Y}from"../packem_shared/CommandBlock-B-nslpCv.js";import{default as Z}from"../packem_shared/CommandPalette-CEFdaURo.js";import{default as ee}from"../packem_shared/ConfirmDialog-5Jje_Xpu.js";import{default as te}from"../packem_shared/ConfirmInput-D44Mb9oo.js";import{default as ae}from"../packem_shared/ConsoleOverlay-CM3APfgP.js";import{default as se}from"../packem_shared/ContentSwitcher-Dm5BkrCt.js";import{default as ue}from"../packem_shared/Cursor-BoLFIMol.js";import{default as de}from"../packem_shared/DatePicker-CnSrFFAE.js";import{default as xe}from"../packem_shared/DefinitionList-v8RDuF_R.js";import{default as ne}from"../packem_shared/Dialog-CTaL8pn0.js";import{default as Se}from"../packem_shared/DiffView-BUIFqUB0.js";import{default as Te}from"../packem_shared/Divider-C47bKmqu.js";import{default as he}from"../packem_shared/FilePicker-CUo7R5Qb.js";import{default as Be,FormField as Me}from"../packem_shared/FormField-af3aUpRL.js";import{default as Le}from"../packem_shared/Gauge-Dz-usH__.js";import{default as Oe}from"../packem_shared/Gradient-DYNc0GZA.js";import{default as ke}from"../packem_shared/Heading-mwEYza3Y.js";import{default as Ae}from"../packem_shared/Heatmap-ChL97U1-.js";import{default as Re}from"../packem_shared/Help-Zcelyw_U.js";import{default as He}from"../packem_shared/Histogram-FIf2F83d.js";import{default as ve}from"../packem_shared/Kbd-DpkPp4jB.js";import{E as Ve}from"../packem_shared/line-chart-DrM8PwnI.js";import{default as _e}from"../packem_shared/Link-i2o2EG4-.js";import{default as Ge}from"../packem_shared/LoadingIndicator-TC1Fjwyt.js";import{default as qe}from"../packem_shared/Markdown-R1XqK63D.js";import{default as je}from"../packem_shared/MaskedInput-J01phOZs.js";import{default as Xe}from"../packem_shared/Menu-CfrH4ymk.js";import{default as Je}from"../packem_shared/MessageBubble-BmBBU2Rm.js";import{default as $e}from"../packem_shared/ModelBadge-D3wrXncu.js";import{default as rr}from"../packem_shared/MultiSelect-Dqmn-bVo.js";import{default as or}from"../packem_shared/Newline-BSG4iUqp.js";import{default as fr}from"../packem_shared/OperationTree-DksxjMIV.js";import{default as lr}from"../packem_shared/OptionList-CNx7r9yN.js";import{default as pr}from"../packem_shared/OrderedList-BeDy035w.js";import{default as mr}from"../packem_shared/Paginator-B56s6bhS.js";import{default as ir}from"../packem_shared/Paragraph-BqJlH0R-.js";import{default as cr}from"../packem_shared/Placeholder-GMpHRGC8.js";import{default as gr}from"../packem_shared/ProgressBar-Bj3fmORR.js";import{default as Cr}from"../packem_shared/RadioGroup-Br8BeEwS.js";import{default as Ir}from"../packem_shared/ScatterPlot-OhfYco5l.js";import{C as Mr}from"../packem_shared/controlled-scroll-view-CmrAEvJk.js";import{ScrollBar as Lr}from"../packem_shared/ScrollBar-Da5Y3z7N.js";import{ScrollBarBox as Or}from"../packem_shared/ScrollBarBox-Dz6F-Eat.js";import{ScrollList as kr}from"../packem_shared/ScrollList-DiVGyEjv.js";import{ScrollView as Ar}from"../packem_shared/ScrollView-BojONotI.js";import{default as Rr}from"../packem_shared/SearchInput-BoPTRbhV.js";import{default as Hr}from"../packem_shared/SelectInput-CAJ7SCBq.js";import{default as vr}from"../packem_shared/SelectInputIndicator-N1n8ULHs.js";import{default as Vr}from"../packem_shared/SelectInputItem-BEkbmobs.js";import{default as _r}from"../packem_shared/ShimmerText-CuGQ2NDC.js";import{default as Gr}from"../packem_shared/Slider-Cg_tJpKa.js";import{default as qr}from"../packem_shared/Spacer-eT3HOrXk.js";import{default as jr}from"../packem_shared/Sparkline-T6_FPVET.js";import{default as Xr}from"../packem_shared/Spinner-B0-A50pu.js";import{default as Jr}from"../packem_shared/Static-jzLPaHJF.js";import{default as $r}from"../packem_shared/StaticRender-BgD61E7x.js";import{default as rt}from"../packem_shared/StatusLine-Ch4jjef1.js";import{default as ot}from"../packem_shared/StatusMessage-B1qfKeMM.js";import{default as ft}from"../packem_shared/Stepper-CNPAqxiU.js";import{default as lt}from"../packem_shared/Stopwatch-CAx2EWwq.js";import{default as pt}from"../packem_shared/StreamingText-BYOKSB2T.js";import{default as mt}from"../packem_shared/Switch-DzSpKYu7.js";import{default as it}from"../packem_shared/Tab-BcXzSUdj.js";import{default as ct}from"../packem_shared/Table-DJp1TLrR.js";import{default as gt}from"../packem_shared/Tabs-D68z0SOt.js";import{default as Ct}from"../packem_shared/Tag-BvLHnYRn.js";import{default as It}from"../packem_shared/Text-mTAve9R2.js";import{default as Mt}from"../packem_shared/TextInput-C_gYQlnF.js";import{default as Lt}from"../packem_shared/Textarea-C2ET_oMb.js";import{default as Ot}from"../packem_shared/Timer-CI3aQX65.js";import{default as kt}from"../packem_shared/Toast-Drvc8XfG.js";import{default as At}from"../packem_shared/Tooltip-C5UnQlLd.js";import{default as Rt}from"../packem_shared/Transform-fYmcdqRT.js";import{default as Ht}from"../packem_shared/Transition-CJDBKYUB.js";import{theme as vt}from"../packem_shared/treeViewTheme-1RIZyB4M.js";import{TreeNodeMap as Vt}from"../packem_shared/TreeNodeMap-CspqSCpb.js";import{TreeView as _t}from"../packem_shared/TreeView-DjhacGJ5.js";import{useTreeView as Gt}from"../packem_shared/useTreeView-8UlTK6sW.js";import{useTreeViewState as qt}from"../packem_shared/useTreeViewState-CRPCUWrb.js";import{default as jt}from"../packem_shared/UnorderedList-BnfqexZs.js";import{g as Xt,i as Yt}from"../packem_shared/dom-4y__5fWB.js";import{default as Zt}from"../packem_shared/useAnimation-B9we6ZzL.js";import{default as eo}from"../packem_shared/useApp-B6fvM42d.js";import{default as to}from"../packem_shared/useBoxMetrics-D5pkIr6P.js";import{default as ao}from"../packem_shared/useClipboard-CBxy0hT8.js";import{default as so}from"../packem_shared/useColorBlindness-BvWcu2Bb.js";import{default as uo}from"../packem_shared/useConsoleCapture-BxiG8iLJ.js";import{default as mo}from"../packem_shared/useCursor-CPu8T5Db.js";import{default as io}from"../packem_shared/useFocus-DSmziO_x.js";import{default as co}from"../packem_shared/useFocusManager-Uapn3LQo.js";import{default as go}from"../packem_shared/useForm-CzV-Oext.js";import{default as Co}from"../packem_shared/useHotkey-D0dGey14.js";import{default as Io}from"../packem_shared/useInput-D1_jG26Z.js";import{default as Mo}from"../packem_shared/useInterval-AobjZT3u.js";import{default as Lo}from"../packem_shared/useIsScreenReaderEnabled-DjWHh-II.js";import{default as Oo}from"../packem_shared/useKeyBindings-zabkEJQs.js";import{default as ko}from"../packem_shared/useKeyChord-CICQIxXj.js";import{default as Ao}from"../packem_shared/createLinkedScrollGroup-BMTJ7rAj.js";import{default as Ro}from"../packem_shared/usePaste-CKKB9H-Z.js";import{createFileStorage as Ho,createMemoryStorage as No,default as vo}from"../packem_shared/createMemoryStorage-QVZNXbWz.js";import{default as Vo}from"../packem_shared/useScrollAcceleration-NrY1oVMs.js";import{default as _o}from"../packem_shared/useScrollInput-Caghtn-Q.js";import{default as Go}from"../packem_shared/useStderr-BDZb6InG.js";import{default as qo}from"../packem_shared/useStdin-DKa4h35k.js";import{default as jo}from"../packem_shared/useStdout-B-2lX4C5.js";import{default as Xo}from"../packem_shared/useStopwatch-DffK7iMh.js";import{default as Jo}from"../packem_shared/useTerminalPalette-Cv7tSduR.js";import{default as $o}from"../packem_shared/useTextBuffer-DekkGLxI.js";import{default as ra}from"../packem_shared/useTextSelection-CGT0GLDR.js";import{default as oa}from"../packem_shared/useTimeout-7LEFYTnG.js";import{default as fa}from"../packem_shared/useTimer-DyoqSyGi.js";import{default as la}from"../packem_shared/useWindowSize-yDZsXF8z.js";import{IMECompositionBuffer as pa,isIMEInput as da}from"../packem_shared/IMECompositionBuffer-C89PhiOu.js";import{kittyFlags as xa,kittyModifiers as ia}from"../packem_shared/kittyFlags-C3rZLbcK.js";import{c as ca,a as Sa,b as ga,g as Ta,d as Ca,e as ha,f as Ia,h as Ba,i as Ma,j as ba,k as La,l as Pa,P as Oa,p as ya}from"../packem_shared/measure-element-DSp7YDus.js";import{c as wa,a as Aa,i as Ea,s as Ra,b as Fa,t as Ha}from"../packem_shared/measure-text-DDjHT1jD.js";import{default as va}from"../packem_shared/render-_r0K9K11.js";import{default as Va}from"../packem_shared/renderToString-DeqOWRP8.js";import{default as _a,ResizeObserverEntry as za}from"../packem_shared/ResizeObserverEntry-Dq0dk8Kq.js";import{calculateScroll as Ka,getScrollHeight as qa,getScrollLeft as Ua,getScrollTop as ja,getScrollWidth as Qa}from"../packem_shared/getScrollHeight-BTEY8ewu.js";import{Range as Ya,Selection as Ja,applySelectionToStyledLine as Za,comparePoints as $a}from"../packem_shared/comparePoints-C85EsmNz.js";import{squashTextNodesWithMap as rf}from"../packem_shared/squashTextNodesWithMap-Cpqmc45i.js";import{isTerminalPaletteQuerySupported as of,queryTerminalPalette as af}from"../packem_shared/isTerminalPaletteQuerySupported-Dn2hFAZ_.js";import{wrapOrTruncateStyledLine as sf}from"../packem_shared/wrapOrTruncateStyledLine-BZ00SM8i.js";import{default as uf}from"../packem_shared/Fullscreen-CuJ8y0s0.js";import{default as df}from"../packem_shared/MouseProvider-pjza-lpc.js";import{default as xf}from"../packem_shared/isIntersecting-B3KbKTmu.js";import{default as cf}from"../packem_shared/useMouseAction-2dRfU1vE.js";import{default as gf}from"../packem_shared/useMouseContext-C746G7kY.js";import{default as Cf}from"../packem_shared/useMousePosition-BTWfV4JK.js";import{default as If}from"../packem_shared/useOnMouseHover-D3DczIol.js";import{default as Mf}from"../packem_shared/useOnMouseState-cRK8QvzD.js";import{a as Lf}from"../packem_shared/ansi-parser-B6uXaq65.js";import{useElementDimensions as Of,useElementPosition as yf}from"../packem_shared/useElementDimensions-qJ_WXFZ9.js";import{useOnMouseClick as wf}from"../packem_shared/useOnMouseClick-nY8xLZmt.js";export{n as Accordion,S as Alert,T as AnimatePresence,h as ApprovalPrompt,B as AreaChart,b as Badge,P as BarChart,y as BigText,w as BlinkDot,E as Box,F as Breadcrumb,N as Button,s as COLOR_BLINDNESS_COMPENSATION,l as COLOR_BLINDNESS_SIMULATION,D as Calendar,W as Canvas,z as Card,K as Checkbox,U as Code,Q as Collapsible,Y as CommandBlock,Z as CommandPalette,ee as ConfirmDialog,te as ConfirmInput,ae as ConsoleOverlay,se as ContentSwitcher,Mr as ControlledScrollView,ue as Cursor,de as DatePicker,xe as DefinitionList,ne as Dialog,Se as DiffView,Te as Divider,he as FilePicker,Be as Form,Me as FormField,uf as Fullscreen,Le as Gauge,Oe as Gradient,ke as Heading,Ae as Heatmap,Re as Help,He as Histogram,u as IDENTITY_MATRIX,pa as IMECompositionBuffer,ve as Kbd,Ve as LineChart,_e as Link,Ge as LoadingIndicator,qe as Markdown,je as MaskedInput,Xe as Menu,Je as MessageBubble,$e as ModelBadge,df as MouseProvider,rr as MultiSelect,or as Newline,fr as OperationTree,lr as OptionList,pr as OrderedList,mr as Paginator,ir as Paragraph,cr as Placeholder,gr as ProgressBar,Cr as RadioGroup,Ya as Range,_a as ResizeObserver,za as ResizeObserverEntry,Ir as ScatterPlot,Lr as ScrollBar,Or as ScrollBarBox,kr as ScrollList,Ar as ScrollView,Rr as SearchInput,Hr as SelectInput,vr as SelectInputIndicator,Vr as SelectInputItem,Ja as Selection,_r as ShimmerText,Gr as Slider,qr as Spacer,jr as Sparkline,Xr as Spinner,Jr as Static,$r as StaticRender,rt as StatusLine,ot as StatusMessage,ft as Stepper,lt as Stopwatch,pt as StreamingText,mt as Switch,it as Tab,ct as Table,gt as Tabs,Ct as Tag,It as Text,Mt as TextInput,Lt as Textarea,Ot as Timer,kt as Toast,At as Tooltip,Rt as Transform,Ht as Transition,Vt as TreeNodeMap,_t as TreeView,jt as UnorderedList,p as applyColorMatrix,Za as applySelectionToStyledLine,Ka as calculateScroll,ca as calculateScrollbarLayout,Sa as calculateScrollbarThumb,t as clearOsc52,wa as clearStringWidthCache,Aa as clearStyledLineCache,ga as collectSortedFragments,$a as comparePoints,Ho as createFileStorage,Ao as createLinkedScrollGroup,No as createMemoryStorage,Ta as getAddedScrollHeight,Ca as getBoundingBox,ha as getHorizontalScrollbarBoundingBox,Ia as getInnerHeight,Ba as getInnerWidth,Xt as getPathToRoot,Ma as getRelativeLeft,ba as getRelativeTop,qa as getScrollHeight,Ua as getScrollLeft,ja as getScrollTop,Qa as getScrollWidth,La as getText,Pa as getVerticalScrollbarBoundingBox,d as hexToRgb,Ea as inkCharacterWidth,da as isIMEInput,xf as isIntersecting,Yt as isNodeSelectable,o as isOsc52Supported,of as isTerminalPaletteQuerySupported,xa as kittyFlags,ia as kittyModifiers,Oa as measureElement,Lf as parseSgrMouse,ya as processLayout,af as queryTerminalPalette,va as render,Va as renderToString,m as rgbToHex,Ra as setEnableStyledLineCache,Fa as setStringWidthFunction,rf as squashTextNodesWithMap,Ha as toStyledLine,x as transformHexColor,vt as treeViewTheme,Zt as useAnimation,eo as useApp,to as useBoxMetrics,ao as useClipboard,so as useColorBlindness,uo as useConsoleCapture,mo as useCursor,Of as useElementDimensions,yf as useElementPosition,io as useFocus,co as useFocusManager,go as useForm,Co as useHotkey,Io as useInput,Mo as useInterval,Lo as useIsScreenReaderEnabled,Oo as useKeyBindings,ko as useKeyChord,cf as useMouseAction,gf as useMouseContext,Cf as useMousePosition,wf as useOnMouseClick,If as useOnMouseHover,Mf as useOnMouseState,Ro as usePaste,vo as usePersistentState,Vo as useScrollAcceleration,_o as useScrollInput,Go as useStderr,qo as useStdin,jo as useStdout,Xo as useStopwatch,Jo as useTerminalPalette,$o as useTextBuffer,ra as useTextSelection,oa as useTimeout,fa as useTimer,Gt as useTreeView,qt as useTreeViewState,la as useWindowSize,sf as wrapOrTruncateStyledLine,a as writeOsc52};
|
|
@@ -1,27 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import ws from 'ws';
|
|
1
|
+
var a=Object.defineProperty;var r=(t,e)=>a(t,"name",{value:e,configurable:!0});import n from"react-devtools-core";import i from"ws";var s=Object.defineProperty,l=r((t,e)=>s(t,"name",{value:e,configurable:!0}),"n");const c=l(async()=>new Promise(t=>{const e=new i("ws://localhost:8097"),o=setTimeout(()=>{e.terminate(),t(!1)},2e3);o.unref(),e.on("open",()=>{clearTimeout(o),e.terminate(),t(!0)}),e.on("error",()=>{clearTimeout(o),e.terminate(),t(!1)})}),"isDevToolsReachable");await c()?(n.initialize(),n.connectToDevTools()):console.warn(`DEV is set to true, but the React DevTools server is not running. Start it with:
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const timeout = setTimeout(() => {
|
|
7
|
-
socket.terminate();
|
|
8
|
-
resolve(false);
|
|
9
|
-
}, 2e3);
|
|
10
|
-
timeout.unref();
|
|
11
|
-
socket.on("open", () => {
|
|
12
|
-
clearTimeout(timeout);
|
|
13
|
-
socket.terminate();
|
|
14
|
-
resolve(true);
|
|
15
|
-
});
|
|
16
|
-
socket.on("error", () => {
|
|
17
|
-
clearTimeout(timeout);
|
|
18
|
-
socket.terminate();
|
|
19
|
-
resolve(false);
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
if (await isDevToolsReachable()) {
|
|
23
|
-
devtools.initialize();
|
|
24
|
-
devtools.connectToDevTools();
|
|
25
|
-
} else {
|
|
26
|
-
console.warn("DEV is set to true, but the React DevTools server is not running. Start it with:\n\n$ npx react-devtools\n");
|
|
27
|
-
}
|
|
3
|
+
$ npx react-devtools
|
|
4
|
+
`);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var F=Object.defineProperty;var m=(c,n)=>F(c,"name",{value:n,configurable:!0});import{jsx as p,jsxs as v}from"react/jsx-runtime";import{useState as g,useRef as k,useCallback as A}from"react";import L from"./useFocus-DSmziO_x.js";import y from"./useInput-D1_jG26Z.js";import f from"./Box-BwqSvWuq.js";import w from"./Text-mTAve9R2.js";var z=Object.defineProperty,B=m((c,n)=>z(c,"name",{value:n,configurable:!0}),"A");function E({accentColor:c="blue",allowMultiple:n=!1,autoFocus:j=!1,defaultExpanded:l,isDisabled:u=!1,items:d}){const{isFocused:s}=L({autoFocus:j,isActive:!u}),[C,D]=g(()=>l===void 0||l.length===0?[]:n?l:l.slice(0,1)),[a,h]=g(0),i=k(a);i.current=a;const x=A(r=>{D(e=>{const o=e.includes(r);return n?o?e.filter(t=>t!==r):[...e,r]:o?[]:[r]})},[n]);return y(A((r,e)=>{if(!s)return;const o=d.length;if((e.downArrow||r==="j")&&i.current<o-1)h(i.current+1);else if((e.upArrow||r==="k")&&i.current>0)h(i.current-1);else if(e.return||r===" "){const t=d[i.current];t&&x(t.id)}},[s,d,x]),{isActive:!u&&s}),p(f,{flexDirection:"column",children:d.map((r,e)=>{const o=C.includes(r.id),t=s&&e===a,b=t?c:void 0;return v(f,{flexDirection:"column",children:[v(f,{children:[v(w,{color:b,dimColor:u,children:[t?"▸ ":" ",o?"▼ ":"▶ "]}),p(w,{bold:t,color:b,dimColor:u,children:r.title})]}),o?p(f,{flexDirection:"column",marginBottom:1,marginLeft:4,children:r.content}):void 0]},r.id)})})}m(E,"w");B(E,"Accordion");export{E as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var f=Object.defineProperty;var i=(e,r)=>f(e,"name",{value:r,configurable:!0});import{jsxs as d,jsx as o}from"react/jsx-runtime";import l from"./Box-BwqSvWuq.js";import n from"./Text-mTAve9R2.js";import{o as m}from"./variant-config-BJqpNo7H.js";var h=Object.defineProperty,p=i((e,r)=>h(e,"name",{value:r,configurable:!0}),"i");function u({children:e,title:r,variant:c}){const{color:t,icon:a}=m[c];return d(l,{borderColor:t,borderStyle:"round",flexGrow:1,gap:1,paddingX:1,children:[o(l,{flexShrink:0,children:o(n,{color:t,children:a})}),d(l,{flexDirection:"column",flexGrow:1,flexShrink:1,gap:1,minWidth:0,children:[r?o(n,{bold:!0,children:r}):void 0,o(n,{children:e})]})]})}i(u,"c");p(u,"Alert");export{u as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var w=Object.defineProperty;var c=(o,s)=>w(o,"name",{value:s,configurable:!0});import{jsx as E}from"react/jsx-runtime";import{useState as b,Children as p,isValidElement as h,useEffect as x,useCallback as v,cloneElement as y}from"react";import A from"./Box-BwqSvWuq.js";var g=Object.defineProperty,u=c((o,s)=>g(o,"name",{value:s,configurable:!0}),"a");const k=u(o=>{const{key:s}=o;if(s!==null)return s},"getKey"),a=u(o=>o.type?.isAnimatable===!0?!0:typeof o.props=="object"&&o.props!==null&&"show"in o.props,"isAnimatable");function j({children:o}){const[s,f]=b(()=>{const e=[];return p.forEach(o,t=>{if(!h(t))return;const r=k(t);r!==void 0&&e.push({element:(a(t),t),key:r,show:!0})}),e});x(()=>{const e=new Map;p.forEach(o,t=>{if(!h(t))return;const r=k(t);r!==void 0&&e.set(r,(a(t),t))}),f(t=>{const r=[],m=new Set;let l=!1;for(const n of t)if(e.has(n.key)){const i=e.get(n.key);(!n.show||n.element!==i)&&(l=!0),r.push({element:i,key:n.key,show:!0}),m.add(n.key)}else n.show&&(l=!0),r.push({...n,show:!1});for(const[n,i]of e)m.has(n)||(l=!0,r.push({element:i,key:n,show:!0}));return l?r:t})},[o]);const d=v(e=>{f(t=>t.filter(r=>r.key!==e))},[]);return E(A,{flexDirection:"column",children:s.map(e=>{if(!a(e.element))return y(e.element,{key:e.key});const t=e.element.props.onExit;return y(e.element,{key:e.key,onExit:u(()=>{t?.(),d(e.key)},"onExit"),show:e.show})})})}c(j,"A");u(j,"AnimatePresence");export{j as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var I=Object.defineProperty;var s=(r,l)=>I(r,"name",{value:l,configurable:!0});import{jsxs as n,jsx as e}from"react/jsx-runtime";import{useCallback as C}from"react";import D from"./useFocus-DSmziO_x.js";import T from"./useInput-D1_jG26Z.js";import i from"./Box-BwqSvWuq.js";import o from"./Text-mTAve9R2.js";var j=Object.defineProperty,y=s((r,l)=>j(r,"name",{value:l,configurable:!0}),"m");const k={high:"red",low:"green",medium:"yellow"},x={high:"HIGH RISK",low:"LOW RISK",medium:"MEDIUM RISK"},A=y(r=>{if(r===null)return"null";if(typeof r=="string")return r;if(typeof r=="number"||typeof r=="boolean")return String(r);try{return JSON.stringify(r)}catch{return String(r)}},"formatParameterValue");function O({accentColor:r,autoFocus:l=!0,children:p,description:h,isDisabled:f=!1,onDecision:t,params:b,risk:g="medium",tool:w}){const a=k[g],u=r??a,{isFocused:S}=D({autoFocus:l,isActive:!f});T(C((c,d)=>{const m=c.toLowerCase();if(m==="y"||d.return){t("allow-once");return}if(m==="a"){t("allow-always");return}(m==="n"||d.escape)&&t("deny")},[t]),{isActive:!f&&S});const v=b===void 0?[]:Object.entries(b);return n(i,{borderColor:a,borderStyle:"round",flexDirection:"column",paddingX:1,children:[n(i,{children:[n(o,{backgroundColor:a,color:"black",children:[" ",x[g]," "]}),n(o,{children:[" ",e(o,{bold:!0,children:w})]})]}),h===void 0?void 0:e(i,{marginTop:1,children:e(o,{children:h})}),v.length===0?void 0:e(i,{flexDirection:"column",marginTop:1,children:v.map(([c,d])=>n(i,{children:[n(o,{color:"cyan",children:[c,"="]}),e(o,{wrap:"truncate-end",children:A(d)})]},c))}),p===void 0?void 0:e(i,{marginTop:1,children:p}),e(i,{marginTop:1,children:n(o,{children:["Allow? [",e(o,{bold:!0,color:u,children:"y"}),"es /"," ",e(o,{bold:!0,color:u,children:"a"}),"lways /"," ",e(o,{bold:!0,color:u,children:"n"}),"o ]"]})})]})}s(O,"I");y(O,"ApprovalPrompt");export{O as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var P=Object.defineProperty;var f=(c,p)=>P(c,"name",{value:p,configurable:!0});import{jsxs as w,jsx as x}from"react/jsx-runtime";import{useMemo as Y}from"react";import{c as _}from"./braille-BBjIoaN0.js";import I from"./Box-BwqSvWuq.js";import D from"./Canvas-CKg6WV47.js";import{t as F,p as j,D as G,c as L,a as g}from"./line-chart-DrM8PwnI.js";import v from"./Text-mTAve9R2.js";var S=Object.defineProperty,V=f((c,p)=>S(c,"name",{value:p,configurable:!0}),"E");const $=G,O={heavy:"▓",light:"░",medium:"▒"};function U({axisColor:c="gray",fillDensity:p="medium",height:N=10,maxY:d,minY:M,palette:u=$,series:y,showLegend:A=!0,width:T=40}){const n=Y(()=>{const o=y.map((r,m)=>({color:j(r,m,u),points:F(r.data),series:r})),t=L(o);return{list:o,xMax:t.xMax===Number.NEGATIVE_INFINITY?1:t.xMax,xMin:t.xMin===Number.POSITIVE_INFINITY?0:t.xMin,yMax:d??(t.yMax===Number.NEGATIVE_INFINITY?1:t.yMax),yMin:M??(t.yMin===Number.POSITIVE_INFINITY?0:t.yMin)}},[y,u,M,d]),E=O[p];return w(I,{flexDirection:"column",children:[x(D,{draw:f(o=>{o.clear();const t=o.width*2,r=o.height*4,m={xMax:n.xMax,xMin:n.xMin,yMax:n.yMax,yMin:n.yMin};for(const{color:a,points:s}of n.list)if(s.length!==0)for(let l=0;l<o.width;l+=1){let i;for(const e of s){const{px:h,py:C}=g(e,m,t,r);if(Math.floor(h/2)===l){const b=Math.floor(C/4);(i===void 0||b<i)&&(i=b)}}if(i!==void 0)for(let e=i+1;e<o.height;e+=1)o.setCell(l,e,E,{color:a,dim:!0})}for(let a=0;a<o.width;a+=2)o.setCell(a,o.height-1,"·",{color:c,dim:!0});for(const{color:a,points:s}of n.list){if(s.length===0)continue;const l=_(o.width,o.height);let i=g(s[0],m,t,r);l.plotPoint(i.px,i.py);for(let e=1;e<s.length;e+=1){const h=g(s[e],m,t,r);l.plotLine(i.px,i.py,h.px,h.py),i=h}l.flush(o,{bold:!0,color:a})}},"draw"),height:N,version:[y,T,N,M,d,p,c,u],width:T}),A?x(I,{gap:2,marginTop:1,children:n.list.map(({color:o,series:t},r)=>w(I,{gap:1,children:[x(v,{color:o,children:E}),x(v,{children:t.label??`Series ${r+1}`})]},`${r}:${t.label??""}`))}):void 0]})}f(U,"G");V(U,"AreaChart");export{U as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var n=Object.defineProperty;var o=(r,e)=>n(r,"name",{value:e,configurable:!0});import{jsxs as c,jsx as l}from"react/jsx-runtime";import t from"./Text-mTAve9R2.js";var i=Object.defineProperty,p=o((r,e)=>i(r,"name",{value:e,configurable:!0}),"t");function d({children:r,color:e="magenta"}){const a=typeof r=="string"?r.toUpperCase():r;return c(t,{backgroundColor:e,children:[" ",l(t,{color:"black",children:a})," "]})}o(d,"p");p(d,"Badge");export{d as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var D=Object.defineProperty;var m=(r,l)=>D(r,"name",{value:l,configurable:!0});import{jsx as e,jsxs as k}from"react/jsx-runtime";import{useMemo as M}from"react";import i from"./Box-BwqSvWuq.js";import E from"./Canvas-CKg6WV47.js";import p from"./Text-mTAve9R2.js";var y=Object.defineProperty,x=m((r,l)=>y(r,"name",{value:l,configurable:!0}),"u");const z=["cyan","magenta","yellow","green","blue","red"],V=x((r,l)=>{if(l!==void 0)return l;if(r.length===0)return 0;let o=r[0].value;for(let u=1;u<r.length;u+=1){const{value:c}=r[u];c>o&&(o=c)}return o},"findMax"),j=x((r,l,o)=>o.color??l[r%l.length]??"cyan","colorFor");function F({data:r,height:l=10,max:o,orientation:u="vertical",palette:c=z,showLabels:b=!0,showValues:C=!1,width:S}){const h=M(()=>V(r,o),[r,o]);if(u==="horizontal"){const t=S??24;return e(i,{flexDirection:"column",children:r.map((n,f)=>{const w=h===0?0:n.value/h,s=j(f,c,n);return k(i,{gap:1,children:[b&&n.label!==void 0?e(i,{flexShrink:0,minWidth:8,children:e(p,{dimColor:!0,wrap:"truncate-end",children:n.label})}):void 0,e(i,{flexGrow:1,flexShrink:1,children:e(E,{draw:m(v=>{v.clear(),v.drawHBar(0,0,t,w,{color:s})},"draw"),height:1,version:[n.value,h,s,t],width:t})}),C?e(i,{flexShrink:0,children:e(p,{children:String(n.value)})}):void 0]},f)})})}const a=2,d=1,B=S??Math.max(r.length*(a+d),1);return k(i,{flexDirection:"column",children:[e(E,{draw:m(t=>{t.clear(),r.forEach((n,f)=>{const w=h===0?0:n.value/h,s=j(f,c,n),v=f*(a+d);for(let g=0;g<a;g+=1)t.drawVBar(v+g,0,l,w,{color:s})})},"draw"),height:l,version:[r,h,c,a,d,l],width:B}),C?e(i,{children:r.map((t,n)=>e(i,{width:a+d,children:e(p,{dimColor:!0,children:String(t.value).padEnd(a+d," ")})},n))}):void 0,b?e(i,{children:r.map((t,n)=>e(i,{width:a+d,children:e(p,{dimColor:!0,wrap:"truncate-end",children:(t.label??"").padEnd(a+d," ")})},n))}):void 0]})}m(F,"R");x(F,"BarChart");export{F as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var p=Object.defineProperty;var r=(e,t)=>p(e,"name",{value:t,configurable:!0});import{jsx as s}from"react/jsx-runtime";import f from"cfonts";import{useMemo as u}from"react";import d from"./Text-mTAve9R2.js";var h=Object.defineProperty,x=r((e,t)=>h(e,"name",{value:t,configurable:!0}),"i");const b={align:"left",backgroundColor:"transparent",colors:["system"],font:"block",letterSpacing:1,lineHeight:1,maxLength:0,space:!0};function k({align:e,backgroundColor:t,colors:o,font:n,letterSpacing:a,lineHeight:i,maxLength:l,space:g,text:c}){const m=u(()=>f.render(c,{...b,align:e,backgroundColor:t,colors:o,font:n,letterSpacing:a,lineHeight:i,maxLength:l,space:g}),[c,e,t,o,n,a,i,l,g]);return s(d,{children:m&&m.string})}r(k,"f");x(k,"BigText");export{k as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var l=Object.defineProperty;var t=(r,e)=>l(r,"name",{value:e,configurable:!0});import{jsx as n}from"react/jsx-runtime";import f from"./useAnimation-B9we6ZzL.js";import m from"./Text-mTAve9R2.js";var u=Object.defineProperty,v=t((r,e)=>u(r,"name",{value:e,configurable:!0}),"e");function s({character:r="●",color:e="red",interval:a=800,isActive:o=!0}){const{frame:i}=f({interval:Math.max(1,Math.floor(a/2)),isActive:o}),c=!o||i%2===0;return n(m,{color:e,children:c?r:" "})}t(s,"s");v(s,"BlinkDot");export{s as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as i,jsxs as k}from"react/jsx-runtime";import{forwardRef as w,useContext as m}from"react";import{a as y}from"./accessibility-context-DDyHTwmA.js";import{b as h}from"./background-context-rjOaWFki.js";const C={flexDirection:"row",flexGrow:0,flexShrink:1,flexWrap:"nowrap"},g=w(({"aria-hidden":d,"aria-label":l,"aria-role":t,"aria-state":a,backgroundColor:o,children:b,opaque:u,scrollbar:x,sticky:n,stickyChildren:s,...r},p)=>{const{isScreenReaderEnabled:e}=m(y),c=l?i("ink-text",{children:l}):void 0,v=t||a?{role:t,state:a}:void 0;if(e&&d)return null;const f=k("ink-box",{internal_accessibility:v,opaque:u,ref:p,scrollbar:x,sticky:n,style:{...C,...r,backgroundColor:o,overflowX:r.overflowX??r.overflow??"visible",overflowY:r.overflowY??r.overflow??"visible"},children:[e&&c?c:b,n&&s&&!e?i("ink-box",{internalStickyAlternate:!0,style:{position:"absolute",...r},children:s}):null]});return o?i(h.Provider,{value:o,children:f}):f});g.displayName="Box";export{g as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var c=Object.defineProperty;var a=(o,r)=>c(o,"name",{value:r,configurable:!0});import{jsx as d,jsxs as i,Fragment as u}from"react/jsx-runtime";import{Fragment as p}from"react";import f from"./Box-BwqSvWuq.js";import m from"./Text-mTAve9R2.js";var s=Object.defineProperty,b=a((o,r)=>s(o,"name",{value:r,configurable:!0}),"a");function v({currentColor:o="blue",items:r,separator:n="›"}){return d(f,{children:r.map((e,t)=>{const l=t===r.length-1;return i(p,{children:[t>0?i(m,{dimColor:!0,children:[" ",n," "]}):void 0,i(m,{bold:l,color:l?o:void 0,dimColor:!l,children:[e.icon===void 0?void 0:i(u,{children:[e.icon," "]}),e.label]})]},e.key??`${t}:${e.label}`)})})}a(v,"c");b(v,"Breadcrumb");export{v as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var b=Object.defineProperty;var a=(o,i)=>b(o,"name",{value:i,configurable:!0});import{jsx as c,jsxs as v}from"react/jsx-runtime";import{useCallback as C}from"react";import y from"./useFocus-DSmziO_x.js";import g from"./useInput-D1_jG26Z.js";import s from"./Box-BwqSvWuq.js";import u from"./Text-mTAve9R2.js";var h=Object.defineProperty,m=a((o,i)=>h(o,"name",{value:i,configurable:!0}),"l");const x="round",j=m((o,i,l,e)=>{if(!l){if(o==="primary"&&i)return"black";if(i)return e}},"resolveTextColor");function k({accentColor:o="blue",autoFocus:i=!1,children:l,isDisabled:e=!1,onPress:d,variant:t="primary"}){const{isFocused:r}=y({autoFocus:i,isActive:!e});g(C((f,p)=>{r&&(p.return||f===" ")&&d?.()},[r,d]),{isActive:!e&&r});const n=j(t,r,e,o);return t==="ghost"?c(s,{paddingX:1,children:v(u,{bold:r,color:n,dimColor:e,children:[r?"▸ ":" ",l]})}):c(s,{backgroundColor:t==="primary"&&r?o:void 0,borderColor:t==="outline"?r?o:"gray":t==="secondary"||r?o:void 0,borderStyle:x,paddingX:1,children:c(u,{bold:r,color:n,dimColor:e,children:l})})}a(k,"C");m(k,"Button");export{k as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var u=Object.defineProperty;var p=(t,a)=>u(t,"name",{value:a,configurable:!0});var b=Object.defineProperty,n=p((t,a)=>b(t,"name",{value:a,configurable:!0}),"t");const x={achromatopsia:[[.299,.587,.114],[.299,.587,.114],[.299,.587,.114]],deuteranopia:[[.625,.375,0],[.7,.3,0],[0,.3,.7]],protanopia:[[.567,.433,0],[.558,.442,0],[0,.242,.758]],tritanopia:[[.95,.05,0],[0,.433,.567],[0,.475,.525]]},S={deuteranopia:[[1,.7,0],[0,1,0],[0,.7,1]],protanopia:[[1,0,0],[.7,1,0],[.7,0,1]],tritanopia:[[1,0,.7],[0,1,.7],[0,0,1]]},l=[[1,0,0],[0,1,0],[0,0,1]],e=n(t=>Math.max(0,Math.min(255,Math.round(t))),"clamp"),c=n((t,a,r,o)=>[e(o[0][0]*t+o[0][1]*a+o[0][2]*r),e(o[1][0]*t+o[1][1]*a+o[1][2]*r),e(o[2][0]*t+o[2][1]*a+o[2][2]*r)],"applyColorMatrix"),I=/^#?(?<r>[\da-f]{2})(?<g>[\da-f]{2})(?<b>[\da-f]{2})$/i,N=/^#?(?<r>[\da-f])(?<g>[\da-f])(?<b>[\da-f])$/i,d=n(t=>{const a=I.exec(t);if(a)return[Number.parseInt(a[1],16),Number.parseInt(a[2],16),Number.parseInt(a[3],16)];const r=N.exec(t);return r?[Number.parseInt(r[1]+r[1],16),Number.parseInt(r[2]+r[2],16),Number.parseInt(r[3]+r[3],16)]:null},"hexToRgb"),m=n((t,a,r)=>`#${e(t).toString(16).padStart(2,"0")}${e(a).toString(16).padStart(2,"0")}${e(r).toString(16).padStart(2,"0")}`,"rgbToHex"),g=n((t,a)=>{const r=d(t);if(!r)return t;const[o,i,s]=c(r[0],r[1],r[2],a);return m(o,i,s)},"transformHexColor");export{S as COLOR_BLINDNESS_COMPENSATION,x as COLOR_BLINDNESS_SIMULATION,l as IDENTITY_MATRIX,c as applyColorMatrix,d as hexToRgb,m as rgbToHex,g as transformHexColor};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var X=Object.defineProperty;var v=(e,r)=>X(e,"name",{value:r,configurable:!0});import{jsxs as k,jsx as u}from"react/jsx-runtime";import{useMemo as F,useState as $,useRef as z,useCallback as O}from"react";import B from"./useFocus-DSmziO_x.js";import L from"./useInput-D1_jG26Z.js";import h from"./Box-BwqSvWuq.js";import b from"./Text-mTAve9R2.js";var _=Object.defineProperty,p=v((e,r)=>_(e,"name",{value:r,configurable:!0}),"g");const q=["January","February","March","April","May","June","July","August","September","October","November","December"],j=["Su","Mo","Tu","We","Th","Fr","Sa"],f=p(e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),"startOfDay"),x=p((e,r)=>{const i=e.getFullYear(),l=e.getMonth()+r,g=new Date(i,l+1,0).getDate(),a=Math.min(e.getDate(),g);return new Date(i,l,a)},"shiftMonth"),J=p((e,r)=>e.getFullYear()===r.getFullYear()&&e.getMonth()===r.getMonth()&&e.getDate()===r.getDate(),"isSameDay"),R=p((e,r,i)=>r!==void 0&&e<f(r)||i!==void 0&&e>f(i),"isOutOfRange"),G=p((e,r,i)=>{const l=(new Date(e,r,1).getDay()-i+7)%7,g=new Date(e,r+1,0).getDate(),a=[];for(let o=0;o<l;o+=1)a.push(void 0);for(let o=1;o<=g;o+=1)a.push(new Date(e,r,o));for(;a.length%7!==0;)a.push(void 0);const D=[];for(let o=0;o<a.length;o+=7)D.push(a.slice(o,o+7));return D},"buildWeeks");function H({accentColor:e="blue",autoFocus:r=!1,defaultValue:i,firstDayOfWeek:l=1,isDisabled:g=!1,maxDate:a,minDate:D,onChange:o,onSubmit:M,selectedColor:T="green",value:w}){const{isFocused:m}=B({autoFocus:r,isActive:!g}),Y=F(()=>f(new Date),[]),W=f(w??i??Y),[E,I]=$(W),c=w?f(w):E,y=z(c);y.current=c;const N=F(()=>[...j.slice(l),...j.slice(0,l)],[l]),P=F(()=>G(c.getFullYear(),c.getMonth(),l),[c,l]),d=O(s=>{const n=f(s);R(n,D,a)||(w===void 0&&I(n),o?.(n))},[w,o,D,a]);L(O((s,n)=>{if(!m)return;const{current:t}=y;n.leftArrow?d(new Date(t.getFullYear(),t.getMonth(),t.getDate()-1)):n.rightArrow?d(new Date(t.getFullYear(),t.getMonth(),t.getDate()+1)):n.upArrow?d(new Date(t.getFullYear(),t.getMonth(),t.getDate()-7)):n.downArrow?d(new Date(t.getFullYear(),t.getMonth(),t.getDate()+7)):n.pageUp?d(x(t,-1)):n.pageDown?d(x(t,1)):n.return&&M?.(t)},[m,d,M]),{isActive:!g&&m});const U=`${q[c.getMonth()]} ${c.getFullYear()}`;return k(h,{borderColor:m?e:void 0,borderStyle:"round",flexDirection:"column",paddingX:1,children:[u(h,{justifyContent:"center",children:u(b,{bold:!0,color:e,children:U})}),u(h,{marginTop:1,children:N.map(s=>u(h,{width:3,children:u(b,{dimColor:!0,children:s.padEnd(2," ")})},s))}),P.map((s,n)=>u(h,{children:s.map((t,C)=>{if(t===void 0)return u(h,{width:3,children:u(b,{children:" "})},C);const S=J(t,Y),A=J(t,c),V=R(t,D,a);return u(h,{width:3,children:k(b,{backgroundColor:A&&m?e:void 0,bold:S,color:A&&m?"black":S?T:void 0,dimColor:V||g,children:[String(t.getDate()).padStart(2," ")," "]})},C)})},n))]})}v(H,"j");p(H,"Calendar");export{H as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var O=Object.defineProperty;var S=(r,e)=>O(r,"name",{value:e,configurable:!0});import{jsx as D}from"react/jsx-runtime";import{useRef as P,useMemo as T,Fragment as H}from"react";import{d as I}from"./colorize-DbTZMrJO.js";import V from"./Box-BwqSvWuq.js";import _ from"./Text-mTAve9R2.js";var E=Object.defineProperty,m=S((r,e)=>E(r,"name",{value:e,configurable:!0}),"u$1");const z=Math.trunc(1),F=2,R=32,q=0,G=m(()=>{const r=new Map,e=[void 0];return{decode:m(d=>e[d],"decode"),encode:m(d=>{if(d===void 0)return q;const u=typeof d=="number"?`n:${d}`:`s:${d}`,h=r.get(u);if(h!==void 0)return h;const p=e.length;return e.push(d),r.set(u,p),p},"encode")}},"createColorCoders"),$=[9601,9602,9603,9604,9605,9606,9607,9608],k=[9615,9614,9613,9612,9611,9610,9609,9608],U=9608,J=m(r=>{if(!r)return 0;let e=0;return r.bold&&(e|=z),r.dim&&(e|=F),e},"flagsFromStyle"),j=m(r=>typeof r=="number"?r:r.codePointAt(0)??R,"toCodepoint"),K=m((r,e)=>{const d=Math.max(0,r*e),u=new Uint32Array(d),h=new Uint32Array(d),p=new Int32Array(d),y=new Int32Array(d),v=new Uint8Array(e),{decode:x,encode:g}=G();u.fill(R);const M=m(o=>{o>=0&&o<e&&(v[o]=1)},"markDirty"),w=m((o,n,c,a)=>{if(o<0||o>=r||n<0||n>=e)return;const t=n*r+o,l=j(c),f=g(a?.color),i=g(a?.background),s=J(a);u[t]===l&&h[t]===s&&p[t]===f&&y[t]===i||(u[t]=l,h[t]=s,p[t]=f,y[t]=i,v[n]=1)},"setCellImpl");return{bg:y,chars:u,colorDecoder:x,context:{clear:m(()=>{u.fill(R),h.fill(0),p.fill(0),y.fill(0),v.fill(1)},"clear"),drawHBar:m((o,n,c,a,t)=>{if(c<=0||n<0||n>=e)return;const l=Math.max(0,Math.min(1,a)),f=c*k.length,i=Math.round(l*f),s=Math.floor(i/k.length),C=i%k.length;for(let b=0;b<c;b+=1){const B=o+b;b<s?w(B,n,U,t):b===s&&C>0?w(B,n,k[C-1],t):w(B,n,R,t)}M(n)},"drawHBar"),drawRect:m((o,n,c,a,t,l)=>{if(c<=0||a<=0)return;const f=j(t);for(let i=0;i<a;i+=1){for(let s=0;s<c;s+=1)w(o+s,n+i,f,l);M(n+i)}},"drawRect"),drawText:m((o,n,c,a)=>{if(n<0||n>=e||c.length===0)return;let t=0;for(const l of c)w(o+t,n,l,a),t+=1;M(n)},"drawText"),drawVBar:m((o,n,c,a,t)=>{if(c<=0||o<0||o>=r)return;const l=Math.max(0,Math.min(1,a)),f=c*$.length,i=Math.round(l*f),s=Math.floor(i/$.length),C=i%$.length;for(let b=0;b<c;b+=1){const B=c-b-1,A=n+b;B<s?w(o,A,U,t):B===s&&C>0?w(o,A,$[C-1],t):w(o,A,R,t),M(A)}},"drawVBar"),height:e,setCell:w,width:r},dirty:v,fg:p,height:e,styles:h,width:r}},"createCanvasBuffer"),L=m((r,e)=>{const{bg:d,chars:u,colorDecoder:h,fg:p,styles:y,width:v}=r,x=e*v;let g="",M=0,w=y[x],o=p[x],n=d[x];const c=m(a=>{let t="";for(let s=M;s<a;s+=1)t+=String.fromCodePoint(u[x+s]);const l=h(o),f=h(n);let i=t;l!==void 0&&(i=I(i,typeof l=="number"?String(l):l,"foreground")),f!==void 0&&(i=I(i,typeof f=="number"?String(f):f,"background")),(w&z)!==0&&(i=`\x1B[1m${i}\x1B[22m`),(w&F)!==0&&(i=`\x1B[2m${i}\x1B[22m`),g+=i},"flush");for(let a=1;a<v;a+=1){const t=y[x+a],l=p[x+a],f=d[x+a];(t!==w||l!==o||f!==n)&&(c(a),M=a,w=t,o=l,n=f)}return c(v),g},"serializeRow");var N=Object.defineProperty,Q=S((r,e)=>N(r,"name",{value:e,configurable:!0}),"u");function W({draw:r,height:e,version:d,width:u}){const h=P(void 0),p=P(void 0);(h.current?.width!==u||h.current.height!==e)&&(h.current=K(u,e),p.current={hasRendered:!1,lines:Array.from({length:e}).fill("")});const y=h.current,v=p.current,x=T(()=>{r(y.context);for(let g=0;g<y.height;g+=1)v.hasRendered&&y.dirty[g]===0||(v.lines[g]=L(y,g),y.dirty[g]=0);return v.hasRendered=!0,[...v.lines]},[d,u,e]);return D(V,{flexDirection:"column",flexShrink:0,height:e,width:u,children:x.map((g,M)=>D(H,{children:D(_,{wrap:"truncate-end",children:g})},M))})}S(W,"w");Q(W,"Canvas");export{W as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var f=Object.defineProperty;var m=(e,i)=>f(e,"name",{value:i,configurable:!0});import{jsxs as d,jsx as r}from"react/jsx-runtime";import o from"./Box-BwqSvWuq.js";import p from"./Divider-C47bKmqu.js";import u from"./Text-mTAve9R2.js";var b=Object.defineProperty,x=m((e,i)=>b(e,"name",{value:i,configurable:!0}),"m");function g({borderColor:e,borderStyle:i="round",children:v,footer:h,headerRight:t,subtitle:n,title:l,titleColor:a,width:c}){return d(o,{borderColor:e,borderStyle:i,flexDirection:"column",paddingX:1,width:c,children:[l!==void 0||n!==void 0||t!==void 0?d(o,{flexDirection:"column",marginBottom:1,children:[d(o,{justifyContent:"space-between",children:[r(o,{children:l===void 0?void 0:r(u,{bold:!0,color:a,children:l})}),t===void 0?void 0:r(o,{children:t})]}),n===void 0?void 0:r(u,{dimColor:!0,children:n})]}):void 0,r(o,{flexDirection:"column",children:v}),h===void 0?void 0:d(o,{flexDirection:"column",marginTop:1,children:[r(p,{dimColor:!0,length:typeof c=="number"?Math.max(1,c-4):void 0}),r(o,{marginTop:1,children:h})]})]})}m(g,"y");x(g,"Card");export{g as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const g={getBg(t){return t>>8&255},getChar(t){return t===0?" ":t>1114111?"":String.fromCodePoint(t)},getFg(t){return t&255},getStyles(t){return t>>16&255},pack(t,r=255,e=255,n=0){const o=t.codePointAt(0)??32,I=(n&255)<<16|(e&255)<<8|r&255;return[o,I]}},u={BLINK:16,BOLD:1,DIM:2,HIDDEN:64,INVERT:32,ITALIC:4,STRIKETHROUGH:128,UNDERLINE:8};export{g as Cell,u as StyleMasks};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var C=Object.defineProperty;var l=(o,r)=>C(o,"name",{value:r,configurable:!0});import{jsxs as n,jsx as b}from"react/jsx-runtime";import{useState as x,useCallback as k}from"react";import g from"./useFocus-DSmziO_x.js";import j from"./useInput-D1_jG26Z.js";import A from"./Box-BwqSvWuq.js";import m from"./Text-mTAve9R2.js";var F=Object.defineProperty,$=l((o,r)=>F(o,"name",{value:r,configurable:!0}),"d");const I="☒",y="☐";function z({accentColor:o="blue",autoFocus:r=!1,children:s,defaultChecked:u=!1,isChecked:c,isDisabled:i=!1,onChange:a}){const{isFocused:e}=g({autoFocus:r,isActive:!i}),[f,v]=x(u),t=c??f;return j(k((p,h)=>{if(e&&(h.return||p===" ")){const d=!t;c===void 0&&v(d),a?.(d)}},[e,t,c,a]),{isActive:!i&&e}),n(A,{gap:1,children:[n(m,{color:e?o:void 0,dimColor:i,children:[e?"▸ ":" ",t?I:y]}),s===void 0?void 0:b(m,{color:e?o:void 0,dimColor:i,children:s})]})}l(z,"I");$(z,"Checkbox");export{z as default};
|