@tenstorrent/vesper 0.1.0
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/LICENSE +21 -0
- package/README.md +167 -0
- package/dist/components/accordion/accordion.css +1 -0
- package/dist/components/accordion/accordion.d.ts +33 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -0
- package/dist/components/accordion/accordion.js +30 -0
- package/dist/components/accordion/accordion.js.map +1 -0
- package/dist/components/admonition/admonition.css +1 -0
- package/dist/components/admonition/admonition.d.ts +49 -0
- package/dist/components/admonition/admonition.d.ts.map +1 -0
- package/dist/components/admonition/admonition.js +47 -0
- package/dist/components/admonition/admonition.js.map +1 -0
- package/dist/components/avatar/avatar.css +1 -0
- package/dist/components/avatar/avatar.d.ts +30 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/avatar/avatar.js +24 -0
- package/dist/components/avatar/avatar.js.map +1 -0
- package/dist/components/avatar-group/avatar-group.css +1 -0
- package/dist/components/avatar-group/avatar-group.d.ts +36 -0
- package/dist/components/avatar-group/avatar-group.d.ts.map +1 -0
- package/dist/components/avatar-group/avatar-group.js +30 -0
- package/dist/components/avatar-group/avatar-group.js.map +1 -0
- package/dist/components/badge/badge.css +1 -0
- package/dist/components/badge/badge.d.ts +42 -0
- package/dist/components/badge/badge.d.ts.map +1 -0
- package/dist/components/badge/badge.js +49 -0
- package/dist/components/badge/badge.js.map +1 -0
- package/dist/components/button/button.css +1 -0
- package/dist/components/button/button.d.ts +51 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/button/button.js +49 -0
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/checkbox/checkbox.css +1 -0
- package/dist/components/checkbox/checkbox.d.ts +53 -0
- package/dist/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.js +65 -0
- package/dist/components/checkbox/checkbox.js.map +1 -0
- package/dist/components/chip/chip.css +1 -0
- package/dist/components/chip/chip.d.ts +53 -0
- package/dist/components/chip/chip.d.ts.map +1 -0
- package/dist/components/chip/chip.js +51 -0
- package/dist/components/chip/chip.js.map +1 -0
- package/dist/components/choicebox/choicebox.css +1 -0
- package/dist/components/choicebox/choicebox.d.ts +90 -0
- package/dist/components/choicebox/choicebox.d.ts.map +1 -0
- package/dist/components/choicebox/choicebox.js +131 -0
- package/dist/components/choicebox/choicebox.js.map +1 -0
- package/dist/components/code/code.css +1 -0
- package/dist/components/code/code.d.ts +23 -0
- package/dist/components/code/code.d.ts.map +1 -0
- package/dist/components/code/code.js +23 -0
- package/dist/components/code/code.js.map +1 -0
- package/dist/components/code-block/code-block.css +1 -0
- package/dist/components/code-block/code-block.d.ts +48 -0
- package/dist/components/code-block/code-block.d.ts.map +1 -0
- package/dist/components/code-block/code-block.js +36 -0
- package/dist/components/code-block/code-block.js.map +1 -0
- package/dist/components/code-block/components.d.ts +4 -0
- package/dist/components/code-block/components.d.ts.map +1 -0
- package/dist/components/code-block/components.js +27 -0
- package/dist/components/code-block/components.js.map +1 -0
- package/dist/components/code-block/fixtures.d.ts +12 -0
- package/dist/components/code-block/fixtures.d.ts.map +1 -0
- package/dist/components/code-block/fixtures.js +491 -0
- package/dist/components/code-block/fixtures.js.map +1 -0
- package/dist/components/code-block/streaming-code-block.d.ts +5 -0
- package/dist/components/code-block/streaming-code-block.d.ts.map +1 -0
- package/dist/components/code-block/streaming-code-block.js +92 -0
- package/dist/components/code-block/streaming-code-block.js.map +1 -0
- package/dist/components/code-block/themes.d.ts +16 -0
- package/dist/components/code-block/themes.d.ts.map +1 -0
- package/dist/components/code-block/themes.js +2836 -0
- package/dist/components/code-block/themes.js.map +1 -0
- package/dist/components/code-block/utils.d.ts +7 -0
- package/dist/components/code-block/utils.d.ts.map +1 -0
- package/dist/components/code-block/utils.js +42 -0
- package/dist/components/code-block/utils.js.map +1 -0
- package/dist/components/combobox/combobox.css +1 -0
- package/dist/components/combobox/combobox.d.ts +106 -0
- package/dist/components/combobox/combobox.d.ts.map +1 -0
- package/dist/components/combobox/combobox.js +93 -0
- package/dist/components/combobox/combobox.js.map +1 -0
- package/dist/components/form-input-message/form-input-message.css +1 -0
- package/dist/components/form-input-message/form-input-message.d.ts +35 -0
- package/dist/components/form-input-message/form-input-message.d.ts.map +1 -0
- package/dist/components/form-input-message/form-input-message.js +38 -0
- package/dist/components/form-input-message/form-input-message.js.map +1 -0
- package/dist/components/icon-button/icon-button.css +1 -0
- package/dist/components/icon-button/icon-button.d.ts +38 -0
- package/dist/components/icon-button/icon-button.d.ts.map +1 -0
- package/dist/components/icon-button/icon-button.js +31 -0
- package/dist/components/icon-button/icon-button.js.map +1 -0
- package/dist/components/icons/add.d.ts +3 -0
- package/dist/components/icons/add.d.ts.map +1 -0
- package/dist/components/icons/add.js +5 -0
- package/dist/components/icons/add.js.map +1 -0
- package/dist/components/icons/ai-agent-solid.d.ts +3 -0
- package/dist/components/icons/ai-agent-solid.d.ts.map +1 -0
- package/dist/components/icons/ai-agent-solid.js +5 -0
- package/dist/components/icons/ai-agent-solid.js.map +1 -0
- package/dist/components/icons/ai-agent.d.ts +3 -0
- package/dist/components/icons/ai-agent.d.ts.map +1 -0
- package/dist/components/icons/ai-agent.js +5 -0
- package/dist/components/icons/ai-agent.js.map +1 -0
- package/dist/components/icons/ai-data.d.ts +3 -0
- package/dist/components/icons/ai-data.d.ts.map +1 -0
- package/dist/components/icons/ai-data.js +5 -0
- package/dist/components/icons/ai-data.js.map +1 -0
- package/dist/components/icons/ai-model.d.ts +3 -0
- package/dist/components/icons/ai-model.d.ts.map +1 -0
- package/dist/components/icons/ai-model.js +5 -0
- package/dist/components/icons/ai-model.js.map +1 -0
- package/dist/components/icons/ai-task.d.ts +3 -0
- package/dist/components/icons/ai-task.d.ts.map +1 -0
- package/dist/components/icons/ai-task.js +5 -0
- package/dist/components/icons/ai-task.js.map +1 -0
- package/dist/components/icons/ai-video-gen.d.ts +3 -0
- package/dist/components/icons/ai-video-gen.d.ts.map +1 -0
- package/dist/components/icons/ai-video-gen.js +5 -0
- package/dist/components/icons/ai-video-gen.js.map +1 -0
- package/dist/components/icons/ai.d.ts +3 -0
- package/dist/components/icons/ai.d.ts.map +1 -0
- package/dist/components/icons/ai.js +5 -0
- package/dist/components/icons/ai.js.map +1 -0
- package/dist/components/icons/arrow-down.d.ts +3 -0
- package/dist/components/icons/arrow-down.d.ts.map +1 -0
- package/dist/components/icons/arrow-down.js +5 -0
- package/dist/components/icons/arrow-down.js.map +1 -0
- package/dist/components/icons/arrow-left.d.ts +3 -0
- package/dist/components/icons/arrow-left.d.ts.map +1 -0
- package/dist/components/icons/arrow-left.js +5 -0
- package/dist/components/icons/arrow-left.js.map +1 -0
- package/dist/components/icons/arrow-right.d.ts +3 -0
- package/dist/components/icons/arrow-right.d.ts.map +1 -0
- package/dist/components/icons/arrow-right.js +5 -0
- package/dist/components/icons/arrow-right.js.map +1 -0
- package/dist/components/icons/arrow-up-left.d.ts +3 -0
- package/dist/components/icons/arrow-up-left.d.ts.map +1 -0
- package/dist/components/icons/arrow-up-left.js +5 -0
- package/dist/components/icons/arrow-up-left.js.map +1 -0
- package/dist/components/icons/arrow-up-right.d.ts +3 -0
- package/dist/components/icons/arrow-up-right.d.ts.map +1 -0
- package/dist/components/icons/arrow-up-right.js +5 -0
- package/dist/components/icons/arrow-up-right.js.map +1 -0
- package/dist/components/icons/arrow-up.d.ts +3 -0
- package/dist/components/icons/arrow-up.d.ts.map +1 -0
- package/dist/components/icons/arrow-up.js +5 -0
- package/dist/components/icons/arrow-up.js.map +1 -0
- package/dist/components/icons/auto.d.ts +3 -0
- package/dist/components/icons/auto.d.ts.map +1 -0
- package/dist/components/icons/auto.js +5 -0
- package/dist/components/icons/auto.js.map +1 -0
- package/dist/components/icons/blackhole.d.ts +3 -0
- package/dist/components/icons/blackhole.d.ts.map +1 -0
- package/dist/components/icons/blackhole.js +5 -0
- package/dist/components/icons/blackhole.js.map +1 -0
- package/dist/components/icons/board.d.ts +3 -0
- package/dist/components/icons/board.d.ts.map +1 -0
- package/dist/components/icons/board.js +5 -0
- package/dist/components/icons/board.js.map +1 -0
- package/dist/components/icons/bolt.d.ts +3 -0
- package/dist/components/icons/bolt.d.ts.map +1 -0
- package/dist/components/icons/bolt.js +5 -0
- package/dist/components/icons/bolt.js.map +1 -0
- package/dist/components/icons/bug.d.ts +3 -0
- package/dist/components/icons/bug.d.ts.map +1 -0
- package/dist/components/icons/bug.js +5 -0
- package/dist/components/icons/bug.js.map +1 -0
- package/dist/components/icons/caret-down.d.ts +3 -0
- package/dist/components/icons/caret-down.d.ts.map +1 -0
- package/dist/components/icons/caret-down.js +5 -0
- package/dist/components/icons/caret-down.js.map +1 -0
- package/dist/components/icons/caret-left.d.ts +3 -0
- package/dist/components/icons/caret-left.d.ts.map +1 -0
- package/dist/components/icons/caret-left.js +5 -0
- package/dist/components/icons/caret-left.js.map +1 -0
- package/dist/components/icons/caret-right.d.ts +3 -0
- package/dist/components/icons/caret-right.d.ts.map +1 -0
- package/dist/components/icons/caret-right.js +5 -0
- package/dist/components/icons/caret-right.js.map +1 -0
- package/dist/components/icons/caret-up.d.ts +3 -0
- package/dist/components/icons/caret-up.d.ts.map +1 -0
- package/dist/components/icons/caret-up.js +5 -0
- package/dist/components/icons/caret-up.js.map +1 -0
- package/dist/components/icons/cart.d.ts +3 -0
- package/dist/components/icons/cart.d.ts.map +1 -0
- package/dist/components/icons/cart.js +5 -0
- package/dist/components/icons/cart.js.map +1 -0
- package/dist/components/icons/chat-solid.d.ts +3 -0
- package/dist/components/icons/chat-solid.d.ts.map +1 -0
- package/dist/components/icons/chat-solid.js +5 -0
- package/dist/components/icons/chat-solid.js.map +1 -0
- package/dist/components/icons/chat.d.ts +3 -0
- package/dist/components/icons/chat.d.ts.map +1 -0
- package/dist/components/icons/chat.js +5 -0
- package/dist/components/icons/chat.js.map +1 -0
- package/dist/components/icons/checkmark.d.ts +3 -0
- package/dist/components/icons/checkmark.d.ts.map +1 -0
- package/dist/components/icons/checkmark.js +5 -0
- package/dist/components/icons/checkmark.js.map +1 -0
- package/dist/components/icons/chip.d.ts +3 -0
- package/dist/components/icons/chip.d.ts.map +1 -0
- package/dist/components/icons/chip.js +5 -0
- package/dist/components/icons/chip.js.map +1 -0
- package/dist/components/icons/circle-add-solid.d.ts +3 -0
- package/dist/components/icons/circle-add-solid.d.ts.map +1 -0
- package/dist/components/icons/circle-add-solid.js +5 -0
- package/dist/components/icons/circle-add-solid.js.map +1 -0
- package/dist/components/icons/circle-add.d.ts +3 -0
- package/dist/components/icons/circle-add.d.ts.map +1 -0
- package/dist/components/icons/circle-add.js +5 -0
- package/dist/components/icons/circle-add.js.map +1 -0
- package/dist/components/icons/circle-x-solid.d.ts +3 -0
- package/dist/components/icons/circle-x-solid.d.ts.map +1 -0
- package/dist/components/icons/circle-x-solid.js +5 -0
- package/dist/components/icons/circle-x-solid.js.map +1 -0
- package/dist/components/icons/circle-x.d.ts +3 -0
- package/dist/components/icons/circle-x.d.ts.map +1 -0
- package/dist/components/icons/circle-x.js +5 -0
- package/dist/components/icons/circle-x.js.map +1 -0
- package/dist/components/icons/clock-countdown.d.ts +3 -0
- package/dist/components/icons/clock-countdown.d.ts.map +1 -0
- package/dist/components/icons/clock-countdown.js +5 -0
- package/dist/components/icons/clock-countdown.js.map +1 -0
- package/dist/components/icons/clock-counter-clockwise.d.ts +3 -0
- package/dist/components/icons/clock-counter-clockwise.d.ts.map +1 -0
- package/dist/components/icons/clock-counter-clockwise.js +5 -0
- package/dist/components/icons/clock-counter-clockwise.js.map +1 -0
- package/dist/components/icons/clock.d.ts +3 -0
- package/dist/components/icons/clock.d.ts.map +1 -0
- package/dist/components/icons/clock.js +5 -0
- package/dist/components/icons/clock.js.map +1 -0
- package/dist/components/icons/close-panel.d.ts +3 -0
- package/dist/components/icons/close-panel.d.ts.map +1 -0
- package/dist/components/icons/close-panel.js +5 -0
- package/dist/components/icons/close-panel.js.map +1 -0
- package/dist/components/icons/close.d.ts +3 -0
- package/dist/components/icons/close.d.ts.map +1 -0
- package/dist/components/icons/close.js +5 -0
- package/dist/components/icons/close.js.map +1 -0
- package/dist/components/icons/cloud-server-solid.d.ts +3 -0
- package/dist/components/icons/cloud-server-solid.d.ts.map +1 -0
- package/dist/components/icons/cloud-server-solid.js +5 -0
- package/dist/components/icons/cloud-server-solid.js.map +1 -0
- package/dist/components/icons/cloud-server.d.ts +3 -0
- package/dist/components/icons/cloud-server.d.ts.map +1 -0
- package/dist/components/icons/cloud-server.js +5 -0
- package/dist/components/icons/cloud-server.js.map +1 -0
- package/dist/components/icons/constants.d.ts +3 -0
- package/dist/components/icons/constants.d.ts.map +1 -0
- package/dist/components/icons/constants.js +137 -0
- package/dist/components/icons/constants.js.map +1 -0
- package/dist/components/icons/copy.d.ts +3 -0
- package/dist/components/icons/copy.d.ts.map +1 -0
- package/dist/components/icons/copy.js +5 -0
- package/dist/components/icons/copy.js.map +1 -0
- package/dist/components/icons/document-solid.d.ts +3 -0
- package/dist/components/icons/document-solid.d.ts.map +1 -0
- package/dist/components/icons/document-solid.js +5 -0
- package/dist/components/icons/document-solid.js.map +1 -0
- package/dist/components/icons/document.d.ts +3 -0
- package/dist/components/icons/document.d.ts.map +1 -0
- package/dist/components/icons/document.js +5 -0
- package/dist/components/icons/document.js.map +1 -0
- package/dist/components/icons/download.d.ts +3 -0
- package/dist/components/icons/download.d.ts.map +1 -0
- package/dist/components/icons/download.js +5 -0
- package/dist/components/icons/download.js.map +1 -0
- package/dist/components/icons/ellipses.d.ts +3 -0
- package/dist/components/icons/ellipses.d.ts.map +1 -0
- package/dist/components/icons/ellipses.js +5 -0
- package/dist/components/icons/ellipses.js.map +1 -0
- package/dist/components/icons/error-solid.d.ts +3 -0
- package/dist/components/icons/error-solid.d.ts.map +1 -0
- package/dist/components/icons/error-solid.js +5 -0
- package/dist/components/icons/error-solid.js.map +1 -0
- package/dist/components/icons/error.d.ts +3 -0
- package/dist/components/icons/error.d.ts.map +1 -0
- package/dist/components/icons/error.js +5 -0
- package/dist/components/icons/error.js.map +1 -0
- package/dist/components/icons/eye-slash.d.ts +3 -0
- package/dist/components/icons/eye-slash.d.ts.map +1 -0
- package/dist/components/icons/eye-slash.js +5 -0
- package/dist/components/icons/eye-slash.js.map +1 -0
- package/dist/components/icons/eye.d.ts +3 -0
- package/dist/components/icons/eye.d.ts.map +1 -0
- package/dist/components/icons/eye.js +5 -0
- package/dist/components/icons/eye.js.map +1 -0
- package/dist/components/icons/folder.d.ts +3 -0
- package/dist/components/icons/folder.d.ts.map +1 -0
- package/dist/components/icons/folder.js +5 -0
- package/dist/components/icons/folder.js.map +1 -0
- package/dist/components/icons/galaxy-rack.d.ts +3 -0
- package/dist/components/icons/galaxy-rack.d.ts.map +1 -0
- package/dist/components/icons/galaxy-rack.js +5 -0
- package/dist/components/icons/galaxy-rack.js.map +1 -0
- package/dist/components/icons/galaxy.d.ts +3 -0
- package/dist/components/icons/galaxy.d.ts.map +1 -0
- package/dist/components/icons/galaxy.js +5 -0
- package/dist/components/icons/galaxy.js.map +1 -0
- package/dist/components/icons/gear-solid.d.ts +3 -0
- package/dist/components/icons/gear-solid.d.ts.map +1 -0
- package/dist/components/icons/gear-solid.js +5 -0
- package/dist/components/icons/gear-solid.js.map +1 -0
- package/dist/components/icons/gear.d.ts +3 -0
- package/dist/components/icons/gear.d.ts.map +1 -0
- package/dist/components/icons/gear.js +5 -0
- package/dist/components/icons/gear.js.map +1 -0
- package/dist/components/icons/globe.d.ts +3 -0
- package/dist/components/icons/globe.d.ts.map +1 -0
- package/dist/components/icons/globe.js +5 -0
- package/dist/components/icons/globe.js.map +1 -0
- package/dist/components/icons/grid.d.ts +3 -0
- package/dist/components/icons/grid.d.ts.map +1 -0
- package/dist/components/icons/grid.js +5 -0
- package/dist/components/icons/grid.js.map +1 -0
- package/dist/components/icons/icon.d.ts +7 -0
- package/dist/components/icons/icon.d.ts.map +1 -0
- package/dist/components/icons/icon.js +9 -0
- package/dist/components/icons/icon.js.map +1 -0
- package/dist/components/icons/icons.d.ts +131 -0
- package/dist/components/icons/icons.d.ts.map +1 -0
- package/dist/components/icons/icons.js +137 -0
- package/dist/components/icons/icons.js.map +1 -0
- package/dist/components/icons/info-solid.d.ts +3 -0
- package/dist/components/icons/info-solid.d.ts.map +1 -0
- package/dist/components/icons/info-solid.js +5 -0
- package/dist/components/icons/info-solid.js.map +1 -0
- package/dist/components/icons/info.d.ts +3 -0
- package/dist/components/icons/info.d.ts.map +1 -0
- package/dist/components/icons/info.js +5 -0
- package/dist/components/icons/info.js.map +1 -0
- package/dist/components/icons/link.d.ts +3 -0
- package/dist/components/icons/link.d.ts.map +1 -0
- package/dist/components/icons/link.js +5 -0
- package/dist/components/icons/link.js.map +1 -0
- package/dist/components/icons/list.d.ts +3 -0
- package/dist/components/icons/list.d.ts.map +1 -0
- package/dist/components/icons/list.js +5 -0
- package/dist/components/icons/list.js.map +1 -0
- package/dist/components/icons/location.d.ts +3 -0
- package/dist/components/icons/location.d.ts.map +1 -0
- package/dist/components/icons/location.js +5 -0
- package/dist/components/icons/location.js.map +1 -0
- package/dist/components/icons/lock-fill.d.ts +3 -0
- package/dist/components/icons/lock-fill.d.ts.map +1 -0
- package/dist/components/icons/lock-fill.js +5 -0
- package/dist/components/icons/lock-fill.js.map +1 -0
- package/dist/components/icons/lock.d.ts +3 -0
- package/dist/components/icons/lock.d.ts.map +1 -0
- package/dist/components/icons/lock.js +5 -0
- package/dist/components/icons/lock.js.map +1 -0
- package/dist/components/icons/loudbox.d.ts +3 -0
- package/dist/components/icons/loudbox.d.ts.map +1 -0
- package/dist/components/icons/loudbox.js +5 -0
- package/dist/components/icons/loudbox.js.map +1 -0
- package/dist/components/icons/menu.d.ts +3 -0
- package/dist/components/icons/menu.d.ts.map +1 -0
- package/dist/components/icons/menu.js +5 -0
- package/dist/components/icons/menu.js.map +1 -0
- package/dist/components/icons/microphone.d.ts +3 -0
- package/dist/components/icons/microphone.d.ts.map +1 -0
- package/dist/components/icons/microphone.js +5 -0
- package/dist/components/icons/microphone.js.map +1 -0
- package/dist/components/icons/minus.d.ts +3 -0
- package/dist/components/icons/minus.d.ts.map +1 -0
- package/dist/components/icons/minus.js +5 -0
- package/dist/components/icons/minus.js.map +1 -0
- package/dist/components/icons/mode-dark.d.ts +3 -0
- package/dist/components/icons/mode-dark.d.ts.map +1 -0
- package/dist/components/icons/mode-dark.js +5 -0
- package/dist/components/icons/mode-dark.js.map +1 -0
- package/dist/components/icons/mode-light.d.ts +3 -0
- package/dist/components/icons/mode-light.d.ts.map +1 -0
- package/dist/components/icons/mode-light.js +5 -0
- package/dist/components/icons/mode-light.js.map +1 -0
- package/dist/components/icons/mode-system.d.ts +3 -0
- package/dist/components/icons/mode-system.d.ts.map +1 -0
- package/dist/components/icons/mode-system.js +5 -0
- package/dist/components/icons/mode-system.js.map +1 -0
- package/dist/components/icons/model-deepseek-color.d.ts +3 -0
- package/dist/components/icons/model-deepseek-color.d.ts.map +1 -0
- package/dist/components/icons/model-deepseek-color.js +5 -0
- package/dist/components/icons/model-deepseek-color.js.map +1 -0
- package/dist/components/icons/model-deepseek.d.ts +3 -0
- package/dist/components/icons/model-deepseek.d.ts.map +1 -0
- package/dist/components/icons/model-deepseek.js +5 -0
- package/dist/components/icons/model-deepseek.js.map +1 -0
- package/dist/components/icons/model-falcon-color.d.ts +3 -0
- package/dist/components/icons/model-falcon-color.d.ts.map +1 -0
- package/dist/components/icons/model-falcon-color.js +5 -0
- package/dist/components/icons/model-falcon-color.js.map +1 -0
- package/dist/components/icons/model-falcon.d.ts +3 -0
- package/dist/components/icons/model-falcon.d.ts.map +1 -0
- package/dist/components/icons/model-falcon.js +5 -0
- package/dist/components/icons/model-falcon.js.map +1 -0
- package/dist/components/icons/model-google-color.d.ts +3 -0
- package/dist/components/icons/model-google-color.d.ts.map +1 -0
- package/dist/components/icons/model-google-color.js +5 -0
- package/dist/components/icons/model-google-color.js.map +1 -0
- package/dist/components/icons/model-google.d.ts +3 -0
- package/dist/components/icons/model-google.d.ts.map +1 -0
- package/dist/components/icons/model-google.js +5 -0
- package/dist/components/icons/model-google.js.map +1 -0
- package/dist/components/icons/model-llama-color.d.ts +3 -0
- package/dist/components/icons/model-llama-color.d.ts.map +1 -0
- package/dist/components/icons/model-llama-color.js +5 -0
- package/dist/components/icons/model-llama-color.js.map +1 -0
- package/dist/components/icons/model-llama.d.ts +3 -0
- package/dist/components/icons/model-llama.d.ts.map +1 -0
- package/dist/components/icons/model-llama.js +5 -0
- package/dist/components/icons/model-llama.js.map +1 -0
- package/dist/components/icons/model-openai.d.ts +3 -0
- package/dist/components/icons/model-openai.d.ts.map +1 -0
- package/dist/components/icons/model-openai.js +5 -0
- package/dist/components/icons/model-openai.js.map +1 -0
- package/dist/components/icons/model-qwen-color.d.ts +3 -0
- package/dist/components/icons/model-qwen-color.d.ts.map +1 -0
- package/dist/components/icons/model-qwen-color.js +5 -0
- package/dist/components/icons/model-qwen-color.js.map +1 -0
- package/dist/components/icons/model-qwen.d.ts +3 -0
- package/dist/components/icons/model-qwen.d.ts.map +1 -0
- package/dist/components/icons/model-qwen.js +5 -0
- package/dist/components/icons/model-qwen.js.map +1 -0
- package/dist/components/icons/monitor.d.ts +3 -0
- package/dist/components/icons/monitor.d.ts.map +1 -0
- package/dist/components/icons/monitor.js +5 -0
- package/dist/components/icons/monitor.js.map +1 -0
- package/dist/components/icons/open-panel.d.ts +3 -0
- package/dist/components/icons/open-panel.d.ts.map +1 -0
- package/dist/components/icons/open-panel.js +5 -0
- package/dist/components/icons/open-panel.js.map +1 -0
- package/dist/components/icons/org-developer.d.ts +3 -0
- package/dist/components/icons/org-developer.d.ts.map +1 -0
- package/dist/components/icons/org-developer.js +5 -0
- package/dist/components/icons/org-developer.js.map +1 -0
- package/dist/components/icons/org-experience.d.ts +3 -0
- package/dist/components/icons/org-experience.d.ts.map +1 -0
- package/dist/components/icons/org-experience.js +5 -0
- package/dist/components/icons/org-experience.js.map +1 -0
- package/dist/components/icons/org-operations.d.ts +3 -0
- package/dist/components/icons/org-operations.d.ts.map +1 -0
- package/dist/components/icons/org-operations.js +5 -0
- package/dist/components/icons/org-operations.js.map +1 -0
- package/dist/components/icons/org-systems.d.ts +3 -0
- package/dist/components/icons/org-systems.d.ts.map +1 -0
- package/dist/components/icons/org-systems.js +5 -0
- package/dist/components/icons/org-systems.js.map +1 -0
- package/dist/components/icons/org-university.d.ts +3 -0
- package/dist/components/icons/org-university.d.ts.map +1 -0
- package/dist/components/icons/org-university.js +5 -0
- package/dist/components/icons/org-university.js.map +1 -0
- package/dist/components/icons/phone.d.ts +3 -0
- package/dist/components/icons/phone.d.ts.map +1 -0
- package/dist/components/icons/phone.js +5 -0
- package/dist/components/icons/phone.js.map +1 -0
- package/dist/components/icons/quasar.d.ts +3 -0
- package/dist/components/icons/quasar.d.ts.map +1 -0
- package/dist/components/icons/quasar.js +5 -0
- package/dist/components/icons/quasar.js.map +1 -0
- package/dist/components/icons/quietbox.d.ts +3 -0
- package/dist/components/icons/quietbox.d.ts.map +1 -0
- package/dist/components/icons/quietbox.js +5 -0
- package/dist/components/icons/quietbox.js.map +1 -0
- package/dist/components/icons/registry.d.ts +6 -0
- package/dist/components/icons/registry.d.ts.map +1 -0
- package/dist/components/icons/registry.js +264 -0
- package/dist/components/icons/registry.js.map +1 -0
- package/dist/components/icons/reset.d.ts +3 -0
- package/dist/components/icons/reset.d.ts.map +1 -0
- package/dist/components/icons/reset.js +5 -0
- package/dist/components/icons/reset.js.map +1 -0
- package/dist/components/icons/search.d.ts +3 -0
- package/dist/components/icons/search.d.ts.map +1 -0
- package/dist/components/icons/search.js +5 -0
- package/dist/components/icons/search.js.map +1 -0
- package/dist/components/icons/server-solid.d.ts +3 -0
- package/dist/components/icons/server-solid.d.ts.map +1 -0
- package/dist/components/icons/server-solid.js +5 -0
- package/dist/components/icons/server-solid.js.map +1 -0
- package/dist/components/icons/server.d.ts +3 -0
- package/dist/components/icons/server.d.ts.map +1 -0
- package/dist/components/icons/server.js +5 -0
- package/dist/components/icons/server.js.map +1 -0
- package/dist/components/icons/shield-solid.d.ts +3 -0
- package/dist/components/icons/shield-solid.d.ts.map +1 -0
- package/dist/components/icons/shield-solid.js +5 -0
- package/dist/components/icons/shield-solid.js.map +1 -0
- package/dist/components/icons/shield.d.ts +3 -0
- package/dist/components/icons/shield.d.ts.map +1 -0
- package/dist/components/icons/shield.js +5 -0
- package/dist/components/icons/shield.js.map +1 -0
- package/dist/components/icons/sidebar.d.ts +3 -0
- package/dist/components/icons/sidebar.d.ts.map +1 -0
- package/dist/components/icons/sidebar.js +5 -0
- package/dist/components/icons/sidebar.js.map +1 -0
- package/dist/components/icons/size.d.ts +3 -0
- package/dist/components/icons/size.d.ts.map +1 -0
- package/dist/components/icons/size.js +5 -0
- package/dist/components/icons/size.js.map +1 -0
- package/dist/components/icons/social-discord.d.ts +3 -0
- package/dist/components/icons/social-discord.d.ts.map +1 -0
- package/dist/components/icons/social-discord.js +5 -0
- package/dist/components/icons/social-discord.js.map +1 -0
- package/dist/components/icons/social-facebook.d.ts +3 -0
- package/dist/components/icons/social-facebook.d.ts.map +1 -0
- package/dist/components/icons/social-facebook.js +5 -0
- package/dist/components/icons/social-facebook.js.map +1 -0
- package/dist/components/icons/social-github.d.ts +3 -0
- package/dist/components/icons/social-github.d.ts.map +1 -0
- package/dist/components/icons/social-github.js +5 -0
- package/dist/components/icons/social-github.js.map +1 -0
- package/dist/components/icons/social-linkedin.d.ts +3 -0
- package/dist/components/icons/social-linkedin.d.ts.map +1 -0
- package/dist/components/icons/social-linkedin.js +5 -0
- package/dist/components/icons/social-linkedin.js.map +1 -0
- package/dist/components/icons/social-x.d.ts +3 -0
- package/dist/components/icons/social-x.d.ts.map +1 -0
- package/dist/components/icons/social-x.js +5 -0
- package/dist/components/icons/social-x.js.map +1 -0
- package/dist/components/icons/social-youtube.d.ts +3 -0
- package/dist/components/icons/social-youtube.d.ts.map +1 -0
- package/dist/components/icons/social-youtube.js +5 -0
- package/dist/components/icons/social-youtube.js.map +1 -0
- package/dist/components/icons/spinner.d.ts +3 -0
- package/dist/components/icons/spinner.d.ts.map +1 -0
- package/dist/components/icons/spinner.js +5 -0
- package/dist/components/icons/spinner.js.map +1 -0
- package/dist/components/icons/success-solid.d.ts +3 -0
- package/dist/components/icons/success-solid.d.ts.map +1 -0
- package/dist/components/icons/success-solid.js +5 -0
- package/dist/components/icons/success-solid.js.map +1 -0
- package/dist/components/icons/success.d.ts +3 -0
- package/dist/components/icons/success.d.ts.map +1 -0
- package/dist/components/icons/success.js +5 -0
- package/dist/components/icons/success.js.map +1 -0
- package/dist/components/icons/tensix.d.ts +3 -0
- package/dist/components/icons/tensix.d.ts.map +1 -0
- package/dist/components/icons/tensix.js +5 -0
- package/dist/components/icons/tensix.js.map +1 -0
- package/dist/components/icons/tenstorrent.d.ts +3 -0
- package/dist/components/icons/tenstorrent.d.ts.map +1 -0
- package/dist/components/icons/tenstorrent.js +5 -0
- package/dist/components/icons/tenstorrent.js.map +1 -0
- package/dist/components/icons/trash-solid.d.ts +3 -0
- package/dist/components/icons/trash-solid.d.ts.map +1 -0
- package/dist/components/icons/trash-solid.js +5 -0
- package/dist/components/icons/trash-solid.js.map +1 -0
- package/dist/components/icons/trash.d.ts +3 -0
- package/dist/components/icons/trash.d.ts.map +1 -0
- package/dist/components/icons/trash.js +5 -0
- package/dist/components/icons/trash.js.map +1 -0
- package/dist/components/icons/tt-forge-fe.d.ts +3 -0
- package/dist/components/icons/tt-forge-fe.d.ts.map +1 -0
- package/dist/components/icons/tt-forge-fe.js +5 -0
- package/dist/components/icons/tt-forge-fe.js.map +1 -0
- package/dist/components/icons/tt-forge.d.ts +3 -0
- package/dist/components/icons/tt-forge.d.ts.map +1 -0
- package/dist/components/icons/tt-forge.js +5 -0
- package/dist/components/icons/tt-forge.js.map +1 -0
- package/dist/components/icons/tt-lang.d.ts +3 -0
- package/dist/components/icons/tt-lang.d.ts.map +1 -0
- package/dist/components/icons/tt-lang.js +5 -0
- package/dist/components/icons/tt-lang.js.map +1 -0
- package/dist/components/icons/tt-llk.d.ts +3 -0
- package/dist/components/icons/tt-llk.d.ts.map +1 -0
- package/dist/components/icons/tt-llk.js +5 -0
- package/dist/components/icons/tt-llk.js.map +1 -0
- package/dist/components/icons/tt-metalium.d.ts +3 -0
- package/dist/components/icons/tt-metalium.d.ts.map +1 -0
- package/dist/components/icons/tt-metalium.js +5 -0
- package/dist/components/icons/tt-metalium.js.map +1 -0
- package/dist/components/icons/tt-nn.d.ts +3 -0
- package/dist/components/icons/tt-nn.d.ts.map +1 -0
- package/dist/components/icons/tt-nn.js +5 -0
- package/dist/components/icons/tt-nn.js.map +1 -0
- package/dist/components/icons/tt-torch.d.ts +3 -0
- package/dist/components/icons/tt-torch.d.ts.map +1 -0
- package/dist/components/icons/tt-torch.js +5 -0
- package/dist/components/icons/tt-torch.js.map +1 -0
- package/dist/components/icons/tt-xla.d.ts +3 -0
- package/dist/components/icons/tt-xla.d.ts.map +1 -0
- package/dist/components/icons/tt-xla.js +5 -0
- package/dist/components/icons/tt-xla.js.map +1 -0
- package/dist/components/icons/types.d.ts +2 -0
- package/dist/components/icons/types.d.ts.map +1 -0
- package/dist/components/icons/types.js +9 -0
- package/dist/components/icons/types.js.map +1 -0
- package/dist/components/icons/upload.d.ts +3 -0
- package/dist/components/icons/upload.d.ts.map +1 -0
- package/dist/components/icons/upload.js +5 -0
- package/dist/components/icons/upload.js.map +1 -0
- package/dist/components/icons/user-multiple-solid.d.ts +3 -0
- package/dist/components/icons/user-multiple-solid.d.ts.map +1 -0
- package/dist/components/icons/user-multiple-solid.js +5 -0
- package/dist/components/icons/user-multiple-solid.js.map +1 -0
- package/dist/components/icons/user-multiple.d.ts +3 -0
- package/dist/components/icons/user-multiple.d.ts.map +1 -0
- package/dist/components/icons/user-multiple.js +5 -0
- package/dist/components/icons/user-multiple.js.map +1 -0
- package/dist/components/icons/user-solid.d.ts +3 -0
- package/dist/components/icons/user-solid.d.ts.map +1 -0
- package/dist/components/icons/user-solid.js +5 -0
- package/dist/components/icons/user-solid.js.map +1 -0
- package/dist/components/icons/user.d.ts +3 -0
- package/dist/components/icons/user.d.ts.map +1 -0
- package/dist/components/icons/user.js +5 -0
- package/dist/components/icons/user.js.map +1 -0
- package/dist/components/icons/warning-solid.d.ts +3 -0
- package/dist/components/icons/warning-solid.d.ts.map +1 -0
- package/dist/components/icons/warning-solid.js +5 -0
- package/dist/components/icons/warning-solid.js.map +1 -0
- package/dist/components/icons/warning.d.ts +3 -0
- package/dist/components/icons/warning.d.ts.map +1 -0
- package/dist/components/icons/warning.js +5 -0
- package/dist/components/icons/warning.js.map +1 -0
- package/dist/components/icons/wormhole.d.ts +3 -0
- package/dist/components/icons/wormhole.d.ts.map +1 -0
- package/dist/components/icons/wormhole.js +5 -0
- package/dist/components/icons/wormhole.js.map +1 -0
- package/dist/components/masked-input/getMaskitoOptions.d.ts +4 -0
- package/dist/components/masked-input/getMaskitoOptions.d.ts.map +1 -0
- package/dist/components/masked-input/getMaskitoOptions.js +27 -0
- package/dist/components/masked-input/getMaskitoOptions.js.map +1 -0
- package/dist/components/masked-input/masked-input.d.ts +68 -0
- package/dist/components/masked-input/masked-input.d.ts.map +1 -0
- package/dist/components/masked-input/masked-input.js +68 -0
- package/dist/components/masked-input/masked-input.js.map +1 -0
- package/dist/components/material/material.css +1 -0
- package/dist/components/material/material.d.ts +43 -0
- package/dist/components/material/material.d.ts.map +1 -0
- package/dist/components/material/material.js +43 -0
- package/dist/components/material/material.js.map +1 -0
- package/dist/components/menu/menu.css +1 -0
- package/dist/components/menu/menu.d.ts +75 -0
- package/dist/components/menu/menu.d.ts.map +1 -0
- package/dist/components/menu/menu.js +56 -0
- package/dist/components/menu/menu.js.map +1 -0
- package/dist/components/modal/modal.css +1 -0
- package/dist/components/modal/modal.d.ts +83 -0
- package/dist/components/modal/modal.d.ts.map +1 -0
- package/dist/components/modal/modal.js +118 -0
- package/dist/components/modal/modal.js.map +1 -0
- package/dist/components/progress-bar/progress-bar.css +1 -0
- package/dist/components/progress-bar/progress-bar.d.ts +38 -0
- package/dist/components/progress-bar/progress-bar.d.ts.map +1 -0
- package/dist/components/progress-bar/progress-bar.js +39 -0
- package/dist/components/progress-bar/progress-bar.js.map +1 -0
- package/dist/components/radio-group/radio-group.css +1 -0
- package/dist/components/radio-group/radio-group.d.ts +70 -0
- package/dist/components/radio-group/radio-group.d.ts.map +1 -0
- package/dist/components/radio-group/radio-group.js +61 -0
- package/dist/components/radio-group/radio-group.js.map +1 -0
- package/dist/components/range/range.css +1 -0
- package/dist/components/range/range.d.ts +86 -0
- package/dist/components/range/range.d.ts.map +1 -0
- package/dist/components/range/range.js +87 -0
- package/dist/components/range/range.js.map +1 -0
- package/dist/components/select/select.css +1 -0
- package/dist/components/select/select.d.ts +82 -0
- package/dist/components/select/select.d.ts.map +1 -0
- package/dist/components/select/select.js +79 -0
- package/dist/components/select/select.js.map +1 -0
- package/dist/components/sheet/sheet.css +1 -0
- package/dist/components/sheet/sheet.d.ts +71 -0
- package/dist/components/sheet/sheet.d.ts.map +1 -0
- package/dist/components/sheet/sheet.js +116 -0
- package/dist/components/sheet/sheet.js.map +1 -0
- package/dist/components/show-more/show-more.css +1 -0
- package/dist/components/show-more/show-more.d.ts +28 -0
- package/dist/components/show-more/show-more.d.ts.map +1 -0
- package/dist/components/show-more/show-more.js +26 -0
- package/dist/components/show-more/show-more.js.map +1 -0
- package/dist/components/skeleton/skeleton.css +1 -0
- package/dist/components/skeleton/skeleton.d.ts +39 -0
- package/dist/components/skeleton/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton.js +36 -0
- package/dist/components/skeleton/skeleton.js.map +1 -0
- package/dist/components/slider/slider.d.ts +69 -0
- package/dist/components/slider/slider.d.ts.map +1 -0
- package/dist/components/slider/slider.js +61 -0
- package/dist/components/slider/slider.js.map +1 -0
- package/dist/components/snippet/snippet.css +1 -0
- package/dist/components/snippet/snippet.d.ts +28 -0
- package/dist/components/snippet/snippet.d.ts.map +1 -0
- package/dist/components/snippet/snippet.js +44 -0
- package/dist/components/snippet/snippet.js.map +1 -0
- package/dist/components/split-button/split-button.css +1 -0
- package/dist/components/split-button/split-button.d.ts +78 -0
- package/dist/components/split-button/split-button.d.ts.map +1 -0
- package/dist/components/split-button/split-button.js +65 -0
- package/dist/components/split-button/split-button.js.map +1 -0
- package/dist/components/status-indicator/status-indicator.css +1 -0
- package/dist/components/status-indicator/status-indicator.d.ts +35 -0
- package/dist/components/status-indicator/status-indicator.d.ts.map +1 -0
- package/dist/components/status-indicator/status-indicator.js +33 -0
- package/dist/components/status-indicator/status-indicator.js.map +1 -0
- package/dist/components/switch/switch.css +1 -0
- package/dist/components/switch/switch.d.ts +41 -0
- package/dist/components/switch/switch.d.ts.map +1 -0
- package/dist/components/switch/switch.js +46 -0
- package/dist/components/switch/switch.js.map +1 -0
- package/dist/components/tabs/tabs.css +1 -0
- package/dist/components/tabs/tabs.d.ts +60 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/tabs/tabs.js +51 -0
- package/dist/components/tabs/tabs.js.map +1 -0
- package/dist/components/tag/tag.css +1 -0
- package/dist/components/tag/tag.d.ts +42 -0
- package/dist/components/tag/tag.d.ts.map +1 -0
- package/dist/components/tag/tag.js +48 -0
- package/dist/components/tag/tag.js.map +1 -0
- package/dist/components/text-area/text-area.css +1 -0
- package/dist/components/text-area/text-area.d.ts +35 -0
- package/dist/components/text-area/text-area.d.ts.map +1 -0
- package/dist/components/text-area/text-area.js +47 -0
- package/dist/components/text-area/text-area.js.map +1 -0
- package/dist/components/text-button/text-button.css +1 -0
- package/dist/components/text-button/text-button.d.ts +46 -0
- package/dist/components/text-button/text-button.d.ts.map +1 -0
- package/dist/components/text-button/text-button.js +46 -0
- package/dist/components/text-button/text-button.js.map +1 -0
- package/dist/components/text-input/text-input.css +1 -0
- package/dist/components/text-input/text-input.d.ts +57 -0
- package/dist/components/text-input/text-input.d.ts.map +1 -0
- package/dist/components/text-input/text-input.js +54 -0
- package/dist/components/text-input/text-input.js.map +1 -0
- package/dist/components/theme-switcher/theme-switcher.css +1 -0
- package/dist/components/theme-switcher/theme-switcher.d.ts +23 -0
- package/dist/components/theme-switcher/theme-switcher.d.ts.map +1 -0
- package/dist/components/theme-switcher/theme-switcher.js +24 -0
- package/dist/components/theme-switcher/theme-switcher.js.map +1 -0
- package/dist/components/toast/animations.d.ts +3 -0
- package/dist/components/toast/animations.d.ts.map +1 -0
- package/dist/components/toast/animations.js +28 -0
- package/dist/components/toast/animations.js.map +1 -0
- package/dist/components/toast/store.d.ts +77 -0
- package/dist/components/toast/store.d.ts.map +1 -0
- package/dist/components/toast/store.js +94 -0
- package/dist/components/toast/store.js.map +1 -0
- package/dist/components/toast/toast.css +1 -0
- package/dist/components/toast/toast.d.ts +32 -0
- package/dist/components/toast/toast.d.ts.map +1 -0
- package/dist/components/toast/toast.js +202 -0
- package/dist/components/toast/toast.js.map +1 -0
- package/dist/components/toast/utils.d.ts +10 -0
- package/dist/components/toast/utils.d.ts.map +1 -0
- package/dist/components/toast/utils.js +26 -0
- package/dist/components/toast/utils.js.map +1 -0
- package/dist/components/toggle/toggle.css +1 -0
- package/dist/components/toggle/toggle.d.ts +82 -0
- package/dist/components/toggle/toggle.d.ts.map +1 -0
- package/dist/components/toggle/toggle.js +129 -0
- package/dist/components/toggle/toggle.js.map +1 -0
- package/dist/components/tooltip/tooltip.css +1 -0
- package/dist/components/tooltip/tooltip.d.ts +58 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.js +52 -0
- package/dist/components/tooltip/tooltip.js.map +1 -0
- package/dist/components/typography/typography.css +1 -0
- package/dist/components/typography/typography.d.ts +33 -0
- package/dist/components/typography/typography.d.ts.map +1 -0
- package/dist/components/typography/typography.js +63 -0
- package/dist/components/typography/typography.js.map +1 -0
- package/dist/styles/animation.css +1 -0
- package/dist/styles/backgrounds.css +1 -0
- package/dist/styles/colors.css +1 -0
- package/dist/styles/fonts.css +1 -0
- package/dist/styles/globals.css +1 -0
- package/dist/styles/leading.css +1 -0
- package/dist/styles/radius.css +1 -0
- package/dist/styles/shadows.css +1 -0
- package/dist/styles/spacing.css +1 -0
- package/dist/styles/strokes.css +1 -0
- package/dist/styles/styles.css +1 -0
- package/dist/styles/tailwind-utilities.css +1 -0
- package/dist/styles/tailwind.css +1 -0
- package/dist/styles/tracking.css +1 -0
- package/dist/utils/cn.d.ts +2 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/cn.js +2 -0
- package/dist/utils/cn.js.map +1 -0
- package/dist/utils/generateId.d.ts +5 -0
- package/dist/utils/generateId.d.ts.map +1 -0
- package/dist/utils/generateId.js +21 -0
- package/dist/utils/generateId.js.map +1 -0
- package/dist/utils/getDisabledProps.d.ts +42 -0
- package/dist/utils/getDisabledProps.d.ts.map +1 -0
- package/dist/utils/getDisabledProps.js +36 -0
- package/dist/utils/getDisabledProps.js.map +1 -0
- package/dist/utils/getPortalContainer.d.ts +27 -0
- package/dist/utils/getPortalContainer.d.ts.map +1 -0
- package/dist/utils/getPortalContainer.js +21 -0
- package/dist/utils/getPortalContainer.js.map +1 -0
- package/dist/utils/hooks/useBaseRemSize.d.ts +9 -0
- package/dist/utils/hooks/useBaseRemSize.d.ts.map +1 -0
- package/dist/utils/hooks/useBaseRemSize.js +55 -0
- package/dist/utils/hooks/useBaseRemSize.js.map +1 -0
- package/dist/utils/hooks/useMergedRefs.d.ts +11 -0
- package/dist/utils/hooks/useMergedRefs.d.ts.map +1 -0
- package/dist/utils/hooks/useMergedRefs.js +96 -0
- package/dist/utils/hooks/useMergedRefs.js.map +1 -0
- package/dist/utils/isSingleReactElement.d.ts +3 -0
- package/dist/utils/isSingleReactElement.d.ts.map +1 -0
- package/dist/utils/isSingleReactElement.js +5 -0
- package/dist/utils/isSingleReactElement.js.map +1 -0
- package/dist/utils/polymorphic.d.ts +43 -0
- package/dist/utils/polymorphic.d.ts.map +1 -0
- package/dist/utils/polymorphic.js +2 -0
- package/dist/utils/polymorphic.js.map +1 -0
- package/dist/utils/splitFormInputProps.d.ts +119 -0
- package/dist/utils/splitFormInputProps.d.ts.map +1 -0
- package/dist/utils/splitFormInputProps.js +277 -0
- package/dist/utils/splitFormInputProps.js.map +1 -0
- package/package.json +266 -0
|
@@ -0,0 +1,491 @@
|
|
|
1
|
+
// Covers: keywords, storage types, interfaces, generics, type annotations,
|
|
2
|
+
// constants, enums, classes, decorators, functions, async/await, control flow,
|
|
3
|
+
// template literals, regex, numbers, strings, comments, operators, JSX,
|
|
4
|
+
// typeof, instanceof, try/catch, variable.other.constant, variable.language
|
|
5
|
+
export const SAMPLE_CODE_TYPESCRIPT = `/**
|
|
6
|
+
* @module ComponentSystem
|
|
7
|
+
* A comprehensive component system with state management.
|
|
8
|
+
* Demonstrates various TypeScript language features.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
// Enum members, numeric constants
|
|
12
|
+
enum Status {
|
|
13
|
+
Idle = 0,
|
|
14
|
+
Loading = 1,
|
|
15
|
+
Success = 2,
|
|
16
|
+
Error = 0xff,
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Interface with generics, readonly, optional, mapped types
|
|
20
|
+
interface EventMap {
|
|
21
|
+
readonly id: string;
|
|
22
|
+
status: Status;
|
|
23
|
+
timestamp?: number;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Conditional types, infer, mapped types, template literal types
|
|
27
|
+
type ExtractKeys<T> = T extends Record<infer K, unknown> ? K : never;
|
|
28
|
+
type Nullable<T> = { [P in keyof T]: T[P] | null };
|
|
29
|
+
type EventName = \`on\${"Change" | "Reset"}\`;
|
|
30
|
+
|
|
31
|
+
// Constants with various literal types
|
|
32
|
+
const MAX_RETRIES = 3;
|
|
33
|
+
const PI = 3.14159;
|
|
34
|
+
const HEX_MASK = 0x1f;
|
|
35
|
+
const BINARY_FLAG = 0b1010;
|
|
36
|
+
const OCTAL_VAL = 0o755; // [!code --]
|
|
37
|
+
const SCIENTIFIC = 1.5e10; // [!code --]
|
|
38
|
+
const GREETING = "Hello, world!"; // [!code --]
|
|
39
|
+
const TEMPLATE = \`Status: \${Status.Loading} at \${Date.now()}\`;
|
|
40
|
+
const REGEX_PATTERN = /^[a-z]+\\d{2,4}$/gi; // [!code ++]
|
|
41
|
+
|
|
42
|
+
// Abstract class with decorator-style pattern
|
|
43
|
+
abstract class BaseComponent<T extends EventMap> {
|
|
44
|
+
protected state: Nullable<T> | null = null;
|
|
45
|
+
private static instanceCount = 0;
|
|
46
|
+
|
|
47
|
+
constructor(readonly name: string) {
|
|
48
|
+
BaseComponent.instanceCount++;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
abstract render(): string;
|
|
52
|
+
|
|
53
|
+
// Method with overloads
|
|
54
|
+
emit(event: "change", data: T): void;
|
|
55
|
+
emit(event: "reset"): void;
|
|
56
|
+
emit(event: string, data?: T): void {
|
|
57
|
+
if (typeof data !== "undefined") {
|
|
58
|
+
console.log(\`[\${this.name}] \${event}:\`, data);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Class extending abstract, implements pattern
|
|
64
|
+
class StateManager<S extends Record<string, unknown>>
|
|
65
|
+
extends BaseComponent<EventMap>
|
|
66
|
+
{
|
|
67
|
+
#internal: Map<string, S> = new Map();
|
|
68
|
+
|
|
69
|
+
render(): string {
|
|
70
|
+
return \`<StateManager instances=\${this.#internal.size} />\`;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
async fetchState(url: string): Promise<S | null> {
|
|
74
|
+
try {
|
|
75
|
+
const response = await fetch(url);
|
|
76
|
+
if (!response.ok) {
|
|
77
|
+
throw new Error(\`HTTP \${response.status}\`);
|
|
78
|
+
}
|
|
79
|
+
const data: S = await response.json();
|
|
80
|
+
return data;
|
|
81
|
+
} catch (error: unknown) {
|
|
82
|
+
if (error instanceof Error) {
|
|
83
|
+
console.error(error.message);
|
|
84
|
+
}
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
*entries(): Generator<[string, S], void, undefined> {
|
|
90
|
+
for (const [key, value] of this.#internal) {
|
|
91
|
+
yield [key, value];
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// Arrow functions, destructuring, spread, rest params
|
|
97
|
+
const createHandler = <T,>(
|
|
98
|
+
...middleware: Array<(ctx: T) => T>
|
|
99
|
+
): ((initial: T) => T) => {
|
|
100
|
+
return (initial: T): T => {
|
|
101
|
+
let result = initial;
|
|
102
|
+
for (const fn of middleware) {
|
|
103
|
+
result = fn(result);
|
|
104
|
+
}
|
|
105
|
+
return result;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
// Switch, type guards, type assertions
|
|
110
|
+
function processStatus(input: unknown): string {
|
|
111
|
+
if (input === null || input === undefined) {
|
|
112
|
+
return "empty";
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
switch (true) {
|
|
116
|
+
case typeof input === "number":
|
|
117
|
+
return (input as number) > 0 ? "positive" : "non-positive";
|
|
118
|
+
case typeof input === "boolean":
|
|
119
|
+
return input ? "truthy" : "falsy";
|
|
120
|
+
case Array.isArray(input):
|
|
121
|
+
return \`array[\${(input as unknown[]).length}]\`;
|
|
122
|
+
default:
|
|
123
|
+
return String(input);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// Async generator, for-await-of
|
|
128
|
+
async function* streamEvents(
|
|
129
|
+
count: number,
|
|
130
|
+
): AsyncGenerator<EventMap, void, unknown> {
|
|
131
|
+
let i = 0;
|
|
132
|
+
while (i < count) {
|
|
133
|
+
await new Promise((resolve) => setTimeout(resolve, 100));
|
|
134
|
+
yield { id: \`evt_\${i}\`, status: Status.Success, timestamp: Date.now() };
|
|
135
|
+
i++;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// Usage with instanceof, delete, void, in operator
|
|
140
|
+
export async function main(): Promise<void> {
|
|
141
|
+
const manager = new StateManager<{ value: number }>("app");
|
|
142
|
+
|
|
143
|
+
if (manager instanceof BaseComponent) {
|
|
144
|
+
manager.emit("change", {
|
|
145
|
+
id: "init",
|
|
146
|
+
status: Status.Idle,
|
|
147
|
+
timestamp: Date.now(),
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
for await (const event of streamEvents(MAX_RETRIES)) {
|
|
152
|
+
if ("timestamp" in event && event.timestamp !== undefined) {
|
|
153
|
+
void processStatus(event.status);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
const handler = createHandler<{ count: number }>(
|
|
158
|
+
(ctx) => ({ ...ctx, count: ctx.count + 1 }),
|
|
159
|
+
(ctx) => ({ ...ctx, count: ctx.count * 2 }),
|
|
160
|
+
);
|
|
161
|
+
|
|
162
|
+
const { count } = handler({ count: 0 });
|
|
163
|
+
delete (manager as Record<string, unknown>)["temp"];
|
|
164
|
+
console.log(\`Final count: \${count}\`);
|
|
165
|
+
}`;
|
|
166
|
+
// Covers: CSS selectors (tag, class, id), pseudo-classes, pseudo-elements,
|
|
167
|
+
// property names, vendor-prefixed properties, values, units, colors,
|
|
168
|
+
// CSS variables, media queries, keyframes, calc(), CSS functions
|
|
169
|
+
export const SAMPLE_CODE_CSS = `/* CSS Component Styles */
|
|
170
|
+
:root {
|
|
171
|
+
--primary-color: #4eb3d4;
|
|
172
|
+
--spacing-unit: 0.5rem;
|
|
173
|
+
--font-stack: "Inter", system-ui, sans-serif;
|
|
174
|
+
--shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
*,
|
|
178
|
+
*::before,
|
|
179
|
+
*::after {
|
|
180
|
+
box-sizing: border-box;
|
|
181
|
+
margin: 0;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
body {
|
|
185
|
+
font-family: var(--font-stack);
|
|
186
|
+
font-size: 16px;
|
|
187
|
+
line-height: 1.6;
|
|
188
|
+
color: oklch(0.9 0.01 180);
|
|
189
|
+
background-color: hsl(170, 30%, 5%);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* Class and ID selectors */
|
|
193
|
+
.container {
|
|
194
|
+
max-width: 1200px;
|
|
195
|
+
margin-inline: auto;
|
|
196
|
+
padding: calc(var(--spacing-unit) * 4);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
#main-header {
|
|
200
|
+
position: sticky;
|
|
201
|
+
top: 0;
|
|
202
|
+
z-index: 100;
|
|
203
|
+
backdrop-filter: blur(12px);
|
|
204
|
+
-webkit-backdrop-filter: blur(12px);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* Pseudo-classes and pseudo-elements */
|
|
208
|
+
a:hover,
|
|
209
|
+
a:focus-visible {
|
|
210
|
+
color: var(--primary-color);
|
|
211
|
+
text-decoration-thickness: 2px;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
button:not(:disabled):active {
|
|
215
|
+
transform: scale(0.98);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.tooltip::after {
|
|
219
|
+
content: attr(data-tip);
|
|
220
|
+
position: absolute;
|
|
221
|
+
opacity: 0;
|
|
222
|
+
transition: opacity 200ms ease-in-out;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* Nesting, has(), media queries */
|
|
226
|
+
.card {
|
|
227
|
+
border-radius: 8px;
|
|
228
|
+
box-shadow: var(--shadow);
|
|
229
|
+
|
|
230
|
+
&:has(img) {
|
|
231
|
+
overflow: hidden;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
& > .card-title {
|
|
235
|
+
font-weight: 700;
|
|
236
|
+
font-size: clamp(1rem, 2vw + 0.5rem, 1.5rem);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
@media (prefers-reduced-motion: reduce) {
|
|
241
|
+
* {
|
|
242
|
+
animation-duration: 0.01ms !important;
|
|
243
|
+
transition-duration: 0.01ms !important;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
@keyframes fade-in {
|
|
248
|
+
from {
|
|
249
|
+
opacity: 0;
|
|
250
|
+
transform: translateY(-10px);
|
|
251
|
+
}
|
|
252
|
+
to {
|
|
253
|
+
opacity: 1;
|
|
254
|
+
transform: translateY(0);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
@layer components {
|
|
259
|
+
.btn-primary {
|
|
260
|
+
background: linear-gradient(135deg, #4eb3d4, #39c6ac);
|
|
261
|
+
border: none;
|
|
262
|
+
padding: 0.75em 1.5em;
|
|
263
|
+
border-radius: 9999px;
|
|
264
|
+
color: white;
|
|
265
|
+
cursor: pointer;
|
|
266
|
+
}
|
|
267
|
+
}`;
|
|
268
|
+
// Covers: JSON keys, string values, numbers, booleans, null, nested objects/arrays
|
|
269
|
+
export const SAMPLE_CODE_JSON = `{
|
|
270
|
+
"name": "@vesper/design-system",
|
|
271
|
+
"version": "2.4.0",
|
|
272
|
+
"private": true,
|
|
273
|
+
"description": "A modern design system with accessible components",
|
|
274
|
+
"keywords": ["react", "components", "design-system", "accessibility"],
|
|
275
|
+
"author": {
|
|
276
|
+
"name": "Vesper Team",
|
|
277
|
+
"email": "team@vesper.dev",
|
|
278
|
+
"url": "https://vesper.dev"
|
|
279
|
+
},
|
|
280
|
+
"license": "MIT",
|
|
281
|
+
"engines": {
|
|
282
|
+
"node": ">=20.0.0"
|
|
283
|
+
},
|
|
284
|
+
"config": {
|
|
285
|
+
"port": 5173,
|
|
286
|
+
"debug": false,
|
|
287
|
+
"verbose": true,
|
|
288
|
+
"timeout": null,
|
|
289
|
+
"retries": 3,
|
|
290
|
+
"ratio": 1.618,
|
|
291
|
+
"features": {
|
|
292
|
+
"darkMode": true,
|
|
293
|
+
"animations": true,
|
|
294
|
+
"ssr": false
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"dependencies": {
|
|
298
|
+
"react": "^19.0.0",
|
|
299
|
+
"react-dom": "^19.0.0"
|
|
300
|
+
}
|
|
301
|
+
}`;
|
|
302
|
+
// Covers: headings, bold, italic, strikethrough, links, images, code (inline & fenced),
|
|
303
|
+
// blockquotes, ordered/unordered lists, horizontal rules, tables, task lists
|
|
304
|
+
export const SAMPLE_CODE_MARKDOWN = `# Design System Documentation
|
|
305
|
+
|
|
306
|
+
## Getting Started
|
|
307
|
+
|
|
308
|
+
Install the package using your preferred **package manager**:
|
|
309
|
+
|
|
310
|
+
\`\`\`bash
|
|
311
|
+
yarn add @vesper/design-system
|
|
312
|
+
\`\`\`
|
|
313
|
+
|
|
314
|
+
### Basic Usage
|
|
315
|
+
|
|
316
|
+
Import components _directly_ from the package. Each component supports
|
|
317
|
+
~~legacy props~~ the new **slot-based** API.
|
|
318
|
+
|
|
319
|
+
> **Note:** All components are fully accessible and follow
|
|
320
|
+
> WAI-ARIA guidelines for keyboard navigation.
|
|
321
|
+
|
|
322
|
+
## Components
|
|
323
|
+
|
|
324
|
+
| Component | Status | Version |
|
|
325
|
+
|-----------|--------|---------|
|
|
326
|
+
| Button | Stable | 2.0.0 |
|
|
327
|
+
| Dialog | Beta | 1.9.0 |
|
|
328
|
+
| Tooltip | Alpha | 0.5.0 |
|
|
329
|
+
|
|
330
|
+
### Features
|
|
331
|
+
|
|
332
|
+
- [x] Fully typed with TypeScript
|
|
333
|
+
- [x] Tree-shakeable exports
|
|
334
|
+
- [ ] CSS-in-JS support
|
|
335
|
+
- [ ] React Server Components
|
|
336
|
+
|
|
337
|
+
1. Install dependencies
|
|
338
|
+
2. Configure your theme
|
|
339
|
+
3. Import and use components
|
|
340
|
+
|
|
341
|
+
---
|
|
342
|
+
|
|
343
|
+
For more details, visit [the docs](https://vesper.dev/docs) or check the
|
|
344
|
+
 on GitHub.
|
|
345
|
+
|
|
346
|
+
Use inline code like \`<Button variant="primary" />\` in your JSX files.`;
|
|
347
|
+
// Covers: shell commands, variables, pipes, redirects, subshells,
|
|
348
|
+
// conditionals, loops, functions, heredocs, globs, quoting
|
|
349
|
+
export const SAMPLE_CODE_BASH = `#!/usr/bin/env bash
|
|
350
|
+
# Build and deploy script for the design system
|
|
351
|
+
|
|
352
|
+
set -euo pipefail
|
|
353
|
+
|
|
354
|
+
# Variables and string interpolation
|
|
355
|
+
PROJECT_ROOT="$(cd "$(dirname "\${BASH_SOURCE[0]}")" && pwd)"
|
|
356
|
+
BUILD_DIR="\${PROJECT_ROOT}/dist"
|
|
357
|
+
VERSION=$(node -p "require('./package.json').version")
|
|
358
|
+
TIMESTAMP=$(date +%Y%m%d_%H%M%S)
|
|
359
|
+
|
|
360
|
+
# Function definition
|
|
361
|
+
build_package() {
|
|
362
|
+
local package_name="$1"
|
|
363
|
+
local outdir="\${BUILD_DIR}/\${package_name}"
|
|
364
|
+
|
|
365
|
+
echo "Building \${package_name} v\${VERSION}..."
|
|
366
|
+
|
|
367
|
+
if [[ -d "$outdir" ]]; then
|
|
368
|
+
rm -rf "$outdir"
|
|
369
|
+
fi
|
|
370
|
+
|
|
371
|
+
mkdir -p "$outdir"
|
|
372
|
+
|
|
373
|
+
# Pipe and redirect
|
|
374
|
+
npx tsc --project "./packages/\${package_name}/tsconfig.json" \\
|
|
375
|
+
2>&1 | tee "\${BUILD_DIR}/build_\${TIMESTAMP}.log"
|
|
376
|
+
|
|
377
|
+
local exit_code=$?
|
|
378
|
+
if (( exit_code != 0 )); then
|
|
379
|
+
echo "Error: Build failed with exit code \${exit_code}" >&2
|
|
380
|
+
return 1
|
|
381
|
+
fi
|
|
382
|
+
|
|
383
|
+
# Array and glob
|
|
384
|
+
local -a files=("\${outdir}"/*.js)
|
|
385
|
+
echo "Generated \${#files[@]} files"
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
# Conditional and loop
|
|
389
|
+
deploy() {
|
|
390
|
+
local env="\${1:-staging}"
|
|
391
|
+
|
|
392
|
+
case "$env" in
|
|
393
|
+
production)
|
|
394
|
+
echo "Deploying to production..."
|
|
395
|
+
;;
|
|
396
|
+
staging|dev)
|
|
397
|
+
echo "Deploying to \${env}..."
|
|
398
|
+
;;
|
|
399
|
+
*)
|
|
400
|
+
echo "Unknown environment: $env" >&2
|
|
401
|
+
exit 1
|
|
402
|
+
;;
|
|
403
|
+
esac
|
|
404
|
+
|
|
405
|
+
for pkg in packages/*/; do
|
|
406
|
+
[[ -f "\${pkg}package.json" ]] || continue
|
|
407
|
+
build_package "$(basename "$pkg")"
|
|
408
|
+
done
|
|
409
|
+
|
|
410
|
+
# Command substitution and arithmetic
|
|
411
|
+
local total_size=$(du -sh "$BUILD_DIR" | cut -f1)
|
|
412
|
+
local file_count=$(($(find "$BUILD_DIR" -type f | wc -l)))
|
|
413
|
+
|
|
414
|
+
cat <<EOF
|
|
415
|
+
Deploy Summary
|
|
416
|
+
==============
|
|
417
|
+
Environment: $env
|
|
418
|
+
Total Size: $total_size
|
|
419
|
+
File Count: $file_count
|
|
420
|
+
EOF
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
# Main execution
|
|
424
|
+
deploy "\${1:-staging}"`;
|
|
425
|
+
// ANSI escape sequences for terminal output rendering
|
|
426
|
+
// Covers: all 8 standard colors, all 8 bright colors, bold, italic,
|
|
427
|
+
// underline, strikethrough, dim, reverse, and combinations
|
|
428
|
+
const ESC = "\x1b";
|
|
429
|
+
export const SAMPLE_CODE_ANSI = [
|
|
430
|
+
`${ESC}[1;36m● vesper${ESC}[0m ${ESC}[2mv2.4.0${ESC}[0m`,
|
|
431
|
+
``,
|
|
432
|
+
`${ESC}[1m Standard Colors${ESC}[0m`,
|
|
433
|
+
` ${ESC}[30m■ black${ESC}[0m ${ESC}[31m■ red${ESC}[0m ${ESC}[32m■ green${ESC}[0m ${ESC}[33m■ yellow${ESC}[0m`,
|
|
434
|
+
` ${ESC}[34m■ blue${ESC}[0m ${ESC}[35m■ magenta${ESC}[0m ${ESC}[36m■ cyan${ESC}[0m ${ESC}[37m■ white${ESC}[0m`,
|
|
435
|
+
``,
|
|
436
|
+
`${ESC}[1m Bright Colors${ESC}[0m`,
|
|
437
|
+
` ${ESC}[90m■ brBlack${ESC}[0m ${ESC}[91m■ brRed${ESC}[0m ${ESC}[92m■ brGreen${ESC}[0m ${ESC}[93m■ brYellow${ESC}[0m`,
|
|
438
|
+
` ${ESC}[94m■ brBlue${ESC}[0m ${ESC}[95m■ brMagenta${ESC}[0m ${ESC}[96m■ brCyan${ESC}[0m ${ESC}[97m■ brWhite${ESC}[0m`,
|
|
439
|
+
``,
|
|
440
|
+
`${ESC}[1m Decorations${ESC}[0m`,
|
|
441
|
+
` ${ESC}[1mbold text${ESC}[0m ${ESC}[3mitalic text${ESC}[0m ${ESC}[4munderlined${ESC}[0m ${ESC}[9mstrikethrough${ESC}[0m`,
|
|
442
|
+
` ${ESC}[2mdim text${ESC}[0m ${ESC}[1;3mbold+italic${ESC}[0m ${ESC}[1;4mbold+underline${ESC}[0m`,
|
|
443
|
+
``,
|
|
444
|
+
`${ESC}[1m Build Output${ESC}[0m`,
|
|
445
|
+
` ${ESC}[32m✓${ESC}[0m Compiled ${ESC}[1m48${ESC}[0m modules in ${ESC}[33m1.2s${ESC}[0m`,
|
|
446
|
+
` ${ESC}[32m✓${ESC}[0m Generated type declarations`,
|
|
447
|
+
` ${ESC}[32m✓${ESC}[0m Bundle size: ${ESC}[36m24.8 kB${ESC}[0m ${ESC}[2m(gzipped: 8.1 kB)${ESC}[0m`,
|
|
448
|
+
` ${ESC}[33m⚠${ESC}[0m ${ESC}[33mDeprecation:${ESC}[0m ${ESC}[3mlegacyProp${ESC}[0m will be removed in v3.0`,
|
|
449
|
+
` ${ESC}[31m✗${ESC}[0m ${ESC}[31mError:${ESC}[0m Failed to resolve ${ESC}[4m@vesper/missing-pkg${ESC}[0m`,
|
|
450
|
+
``,
|
|
451
|
+
` ${ESC}[1m Test Results${ESC}[0m`,
|
|
452
|
+
` ${ESC}[32m 142 passing${ESC}[0m ${ESC}[2m(3.4s)${ESC}[0m`,
|
|
453
|
+
` ${ESC}[91m 2 failing${ESC}[0m`,
|
|
454
|
+
` ${ESC}[96m 5 pending${ESC}[0m`,
|
|
455
|
+
].join("\n");
|
|
456
|
+
export const SAMPLE_CODE_PYTHON = `x_dfb = ttl.make_dataflow_buffer_like(x,
|
|
457
|
+
shape = (2, 2),
|
|
458
|
+
block_count = 2)
|
|
459
|
+
|
|
460
|
+
@ttl.datamovement()
|
|
461
|
+
def some_read():
|
|
462
|
+
with x_dfb.reserve() as x_blk:
|
|
463
|
+
# produce data into x_blk ...
|
|
464
|
+
# implicit x_dfb.push() at the end of the scope
|
|
465
|
+
|
|
466
|
+
@ttl.compute()
|
|
467
|
+
def some_compute():
|
|
468
|
+
x_blk = x_dfb.wait()
|
|
469
|
+
# consume data in x_blk ...
|
|
470
|
+
x_blk.pop() # explicit`;
|
|
471
|
+
/**
|
|
472
|
+
* Simulate an incoming text stream
|
|
473
|
+
*/
|
|
474
|
+
export function createTextStream(code) {
|
|
475
|
+
let str = code;
|
|
476
|
+
function getNextChunk() {
|
|
477
|
+
const chunk = str.slice(0, 25);
|
|
478
|
+
str = str.slice(25);
|
|
479
|
+
return chunk;
|
|
480
|
+
}
|
|
481
|
+
return new ReadableStream({
|
|
482
|
+
async start(controller) {
|
|
483
|
+
while (str.length) {
|
|
484
|
+
controller.enqueue(getNextChunk());
|
|
485
|
+
await new Promise((r) => setTimeout(r, 50));
|
|
486
|
+
}
|
|
487
|
+
controller.close();
|
|
488
|
+
},
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../../src/components/code-block/fixtures.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,+EAA+E;AAC/E,wEAAwE;AACxE,4EAA4E;AAC5E,MAAM,CAAC,MAAM,sBAAsB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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CAAC;AAEb,MAAM,CAAC,MAAM,kBAAkB,GAAG;;;;;;;;;;;;;;2BAcP,CAAC;AAE5B;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAC,IAAY;IAC3C,IAAI,GAAG,GAAG,IAAI,CAAC;IAEf,SAAS,YAAY;QACnB,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC/B,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACpB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,IAAI,cAAc,CAAC;QACxB,KAAK,CAAC,KAAK,CAAC,UAAU;YACpB,OAAO,GAAG,CAAC,MAAM,EAAE,CAAC;gBAClB,UAAU,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;gBACnC,MAAM,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;YAC9C,CAAC;YACD,UAAU,CAAC,KAAK,EAAE,CAAC;QACrB,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CodeBlockProps } from "./code-block.js";
|
|
2
|
+
export declare function StreamingCodeBlock({ className, children: code, lang, copyOnHover, showLineNumbers, ...props }: Omit<CodeBlockProps, "children"> & {
|
|
3
|
+
children: () => ReadableStream<string> | Promise<ReadableStream<string>>;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
//# sourceMappingURL=streaming-code-block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"streaming-code-block.d.ts","sourceRoot":"","sources":["../../../src/components/code-block/streaming-code-block.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAInD,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,QAAQ,EAAE,IAAI,EACd,IAAa,EACb,WAAmB,EACnB,eAAe,EACf,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC,GAAG;IACpC,QAAQ,EAAE,MAAM,cAAc,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;CAC1E,2CA2CA"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
4
|
+
import { getTokenStyleObject } from "@shikijs/core";
|
|
5
|
+
import { cn } from "../../utils/cn.js";
|
|
6
|
+
import { generateId } from "../../utils/generateId.js";
|
|
7
|
+
import { CodeBlockPreWrapper, CopyToClipboardButton } from "./components.js";
|
|
8
|
+
import { codeToTokenStream, handleLanguageRegistration } from "./utils.js";
|
|
9
|
+
export function StreamingCodeBlock({ className, children: code, lang = "text", copyOnHover = false, showLineNumbers, ...props }) {
|
|
10
|
+
handleLanguageRegistration(lang);
|
|
11
|
+
const ref = useRef(null);
|
|
12
|
+
const shouldAutoScroll = useRef(true);
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
if (!ref.current)
|
|
15
|
+
return;
|
|
16
|
+
const observer = new MutationObserver(() => {
|
|
17
|
+
if (!ref.current || !shouldAutoScroll.current)
|
|
18
|
+
return;
|
|
19
|
+
ref.current.scrollTop = ref.current.scrollHeight;
|
|
20
|
+
});
|
|
21
|
+
const handleScroll = () => {
|
|
22
|
+
const { scrollTop, scrollHeight, clientHeight } = el;
|
|
23
|
+
const distanceFromBottom = scrollHeight - scrollTop - clientHeight;
|
|
24
|
+
shouldAutoScroll.current = distanceFromBottom < 10;
|
|
25
|
+
};
|
|
26
|
+
const el = ref.current;
|
|
27
|
+
el.addEventListener("scroll", handleScroll);
|
|
28
|
+
observer.observe(el, { childList: true, subtree: true });
|
|
29
|
+
return () => {
|
|
30
|
+
el.removeEventListener("scroll", handleScroll);
|
|
31
|
+
observer.disconnect();
|
|
32
|
+
};
|
|
33
|
+
}, [code]);
|
|
34
|
+
return (_jsxs("div", { className: cn("vesper-code-block", className), "data-copy-on-hover": copyOnHover, ...props, children: [_jsx(CodeBlockPreWrapper, { ref: ref, "data-line-numbers": showLineNumbers, children: _jsx(TokenStreamRenderer, { code: code, lang: lang }) }), _jsx(CopyToClipboardButton, {})] }));
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* This component is a re-implementation of the `ShikiStreamRenderer` component from the shiki repo:
|
|
38
|
+
*
|
|
39
|
+
* https://github.com/shikijs/shiki/blob/main/packages/stream/src/react/renderer.ts
|
|
40
|
+
*
|
|
41
|
+
* The main difference between shiki's implementation and our implementation is we use an `AbortController` to abort the `WriteableStream` when the code/lang props change. This allows consumers to swap streamed code props on-demand without previously-supplied streams interfering with the rendered output of the new token streams.
|
|
42
|
+
* */
|
|
43
|
+
function TokenStreamRenderer({ code, lang, }) {
|
|
44
|
+
// WeakMap for storing references to ThemedToken keys
|
|
45
|
+
// Because WeakMaps garbage collect their own references, we don't have to worry about memory leaks when the tokens array is reset or changes
|
|
46
|
+
const keys = useRef(new WeakMap());
|
|
47
|
+
// Gets the associated key in the above WeakMap for a ThemedToken
|
|
48
|
+
const getKey = useCallback((token) => {
|
|
49
|
+
let key = keys.current.get(token);
|
|
50
|
+
if (!keys.current.has(token)) {
|
|
51
|
+
key = generateId();
|
|
52
|
+
keys.current.set(token, key);
|
|
53
|
+
}
|
|
54
|
+
return key;
|
|
55
|
+
}, []);
|
|
56
|
+
const [tokens, setTokens] = useState([]);
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
setTokens((prevTokens) => (prevTokens.length ? [] : prevTokens));
|
|
59
|
+
const controller = new AbortController();
|
|
60
|
+
Promise.resolve()
|
|
61
|
+
.then(code)
|
|
62
|
+
.then((stream) => {
|
|
63
|
+
if (controller.signal.aborted) {
|
|
64
|
+
stream.cancel();
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
stream
|
|
68
|
+
.pipeThrough(codeToTokenStream(lang))
|
|
69
|
+
.pipeTo(new WritableStream({
|
|
70
|
+
write(token) {
|
|
71
|
+
if ("recall" in token)
|
|
72
|
+
setTokens((t) => t.slice(0, -token.recall));
|
|
73
|
+
else
|
|
74
|
+
setTokens((tokens) => [...tokens, token]);
|
|
75
|
+
},
|
|
76
|
+
}), { signal: controller.signal })
|
|
77
|
+
.catch(() => { });
|
|
78
|
+
})
|
|
79
|
+
.catch(() => { });
|
|
80
|
+
return () => controller.abort();
|
|
81
|
+
}, [code, lang]);
|
|
82
|
+
return (_jsx("pre", { className: "shiki vesper shiki-stream", children: _jsx("code", { children: tokensToLines(tokens).map((line, index) => (_jsx("span", { className: "line", children: line.map((token) => (_jsx("span", { style: token.htmlStyle || getTokenStyleObject(token), children: token.content }, getKey(token)))) }, index))) }) }));
|
|
83
|
+
}
|
|
84
|
+
const tokensToLines = (tokens) => tokens.reduce((lines, token) => {
|
|
85
|
+
if (token.content === "\n") {
|
|
86
|
+
lines.push([]);
|
|
87
|
+
return lines;
|
|
88
|
+
}
|
|
89
|
+
lines[lines.length - 1].push(token);
|
|
90
|
+
return lines;
|
|
91
|
+
}, [[]]);
|
|
92
|
+
//# sourceMappingURL=streaming-code-block.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"streaming-code-block.js","sourceRoot":"","sources":["../../../src/components/code-block/streaming-code-block.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAoB,MAAM,eAAe,CAAC;AAEtE,OAAO,EAAE,EAAE,EAAE,MAAM,YAAY,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGhD,OAAO,EAAE,m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,CAAC,KAAK,EAAE,EAAE,CAAC,CACnB,eAEE,KAAK,EAAE,KAAK,CAAC,SAAS,IAAI,mBAAmB,CAAC,KAAK,CAAC,YAEnD,KAAK,CAAC,OAAO,IAHT,MAAM,CAAC,KAAK,CAAC,CAIb,CACR,CAAC,IARO,KAAK,CAST,CACR,CAAC,GACG,GACH,CACP,CAAC;AACJ,CAAC;AAED,MAAM,aAAa,GAAG,CAAC,MAAqB,EAAE,EAAE,CAC9C,MAAM,CAAC,MAAM,CACX,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;IACf,IAAI,KAAK,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;QAC3B,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,OAAO,KAAK,CAAC;IACf,CAAC;IACD,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACrC,OAAO,KAAK,CAAC;AACf,CAAC,EACD,CAAC,EAAE,CAAoB,CACxB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ThemeRegistration } from "@shikijs/core";
|
|
2
|
+
/**
|
|
3
|
+
* Night Owl TextMate theme
|
|
4
|
+
* https://github.com/shikijs/textmate-grammars-themes/blob/main/packages/tm-themes/themes/night-owl.json
|
|
5
|
+
*
|
|
6
|
+
* Source colors are remapped to the closest Vesper dark mode palette tokens
|
|
7
|
+
*/
|
|
8
|
+
export declare const dark: ThemeRegistration;
|
|
9
|
+
/**
|
|
10
|
+
* Night Owl Light TextMate theme
|
|
11
|
+
* https://github.com/shikijs/textmate-grammars-themes/blob/main/packages/tm-themes/themes/night-owl-light.json
|
|
12
|
+
*
|
|
13
|
+
* Source colors are remapped to the closest Vesper light mode palette tokens:
|
|
14
|
+
*/
|
|
15
|
+
export declare const light: ThemeRegistration;
|
|
16
|
+
//# sourceMappingURL=themes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../../src/components/code-block/themes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD;;;;;GAKG;AACH,eAAO,MAAM,IAAI,EAAE,iBA06ClB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,KAAK,EAAE,iBA+1CnB,CAAC"}
|