@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
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Tenstorrent Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
# Vesper
|
|
2
|
+
|
|
3
|
+
React component library for the Vesper design system
|
|
4
|
+
|
|
5
|
+
<br />
|
|
6
|
+
|
|
7
|
+
<table><thead>
|
|
8
|
+
<tr>
|
|
9
|
+
<th align="center">🫂</th>
|
|
10
|
+
<th>✨</th>
|
|
11
|
+
</tr></thead>
|
|
12
|
+
<tbody>
|
|
13
|
+
<tr>
|
|
14
|
+
<td>
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
npm install @tenstorrent/vesper
|
|
18
|
+
|
|
19
|
+
# install peer deps (skip if these are already installed)
|
|
20
|
+
npm install --save-peer react@^19.0.0 react-dom@^19.0.0
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
```tsx
|
|
24
|
+
import "@tenstorrent/vesper/styles.css";
|
|
25
|
+
|
|
26
|
+
import { Button, Typography } from "@tenstorrent/vesper";
|
|
27
|
+
|
|
28
|
+
export default function App() {
|
|
29
|
+
return (
|
|
30
|
+
<div>
|
|
31
|
+
<Typography as="h1" variant="heading-2xl">
|
|
32
|
+
Inference
|
|
33
|
+
</Typography>
|
|
34
|
+
<Button>Buy Now</Button>
|
|
35
|
+
</div>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
</td>
|
|
41
|
+
<td>
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
"Please follow the instructions at
|
|
45
|
+
vesper.tenstorrent.com/agent-install.md
|
|
46
|
+
to setup Vesper"
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
</td>
|
|
50
|
+
</tr>
|
|
51
|
+
</tbody>
|
|
52
|
+
</table>
|
|
53
|
+
|
|
54
|
+
<details>
|
|
55
|
+
<summary><h3>Table of Contents</h3></summary>
|
|
56
|
+
|
|
57
|
+
- [Install](#install)
|
|
58
|
+
- [Import styles](#import-styles)
|
|
59
|
+
- [Fonts](#fonts)
|
|
60
|
+
- [Using custom fonts](#using-custom-fonts)
|
|
61
|
+
- [Usage](#usage)
|
|
62
|
+
- [CSS tokens](#css-tokens)
|
|
63
|
+
|
|
64
|
+
</details>
|
|
65
|
+
|
|
66
|
+
## Install
|
|
67
|
+
|
|
68
|
+
You can install the `@tenstorrent/vesper` package from the npm registry using your package manager of choice:
|
|
69
|
+
|
|
70
|
+
```sh
|
|
71
|
+
yarn add @tenstorrent/vesper
|
|
72
|
+
npm install @tenstorrent/vesper
|
|
73
|
+
pnpm add @tenstorrent/vesper
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Since `@tenstorrent/vesper` is a React package, you will also need to have `react@^19.0.0` and `react-dom@^19.0.0` installed, as they are peer dependencies.
|
|
77
|
+
|
|
78
|
+
```sh
|
|
79
|
+
# install peer deps (skip if these are already installed)
|
|
80
|
+
npm install --save-peer react@^19.0.0 react-dom@^19.0.0
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### Import styles
|
|
84
|
+
|
|
85
|
+
Prior to using any components, you will need to import the library styles from `@tenstorrent/vesper/styles.css` somewhere at the top-level of your application. For example, in a `Next.js` application, you may import them in your app's root `layout.tsx` file:
|
|
86
|
+
|
|
87
|
+
```tsx
|
|
88
|
+
import "@tenstorrent/vesper/styles.css";
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
This makes the Vesper library's component styles and css tokens globally available in your application. For more information on usage of Vesper's css tokens, see [CSS token usage](#css-token-usage).
|
|
92
|
+
|
|
93
|
+
If you are using [Tailwind](https://tailwindcss.com) to style your app, we supply a Tailwind-specific file you can import instead. This has two advantages:
|
|
94
|
+
|
|
95
|
+
1. Vesper's component styles get injected into Tailwind's `components` layer, which lets Tailwind utility classes override vesper css classes.
|
|
96
|
+
2. Vesper's css tokens get injected into the Tailwind `@theme` so you can use them in Tailwind utility classes, like `bg-vesper-purple-300`, for example.
|
|
97
|
+
|
|
98
|
+
You should import Vesper's Tailwind styles **after** importing `tailwindcss` in your css file, like so:
|
|
99
|
+
|
|
100
|
+
```css
|
|
101
|
+
@import "tailwindcss";
|
|
102
|
+
@import "@tenstorrent/vesper/tailwind.css";
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
If you import Vesper's Tailwind styles before importing `tailwindcss`, the order of Tailwind's internal css layers will get mangled.
|
|
106
|
+
|
|
107
|
+
### Fonts
|
|
108
|
+
|
|
109
|
+
Vesper components are styled using two fonts, `Inter Tight` and `IBM Plex Mono`. The fonts themselves are **not** bundled with the package, only the font stacks are. If you want Vesper's components to render in `Inter Tight` and `IBM Plex Mono`, you need to load those fonts in your app (for example with `next/font/google` if developing a `Next.js` application, a `@font-face` rule, or a `<link>` to Google Fonts). If they aren't loaded, the fallbacks in each stack are used.
|
|
110
|
+
|
|
111
|
+
The easiest way to do this is to embed the corresponding Google Fonts code into the `<head>` of your html:
|
|
112
|
+
|
|
113
|
+
```html
|
|
114
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
115
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
116
|
+
<link
|
|
117
|
+
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Inter+Tight:wght@100..900&display=swap"
|
|
118
|
+
rel="stylesheet"
|
|
119
|
+
/>
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### Using custom fonts
|
|
123
|
+
|
|
124
|
+
To use a custom font, you can simply load your custom font into your app (using `next/font/google`, `@font-face`, `<link>`, etc.) and override vesper's font css variables with your own provided font stack. For example, if you wanted to use `Roboto` instead of `Inter Tight` for `--vesper-font-sans`, you would do this:
|
|
125
|
+
|
|
126
|
+
```css
|
|
127
|
+
/* somewhere in your application's css */
|
|
128
|
+
:root {
|
|
129
|
+
--vesper-font-sans: "Roboto", system-ui, sans-serif;
|
|
130
|
+
}
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## Usage
|
|
134
|
+
|
|
135
|
+
Once you have installed the package and imported the styles, you can start importing and using components like so:
|
|
136
|
+
|
|
137
|
+
```tsx
|
|
138
|
+
import { Accordion } from "@tenstorrent/vesper/accordion";
|
|
139
|
+
|
|
140
|
+
<Accordion title="Click me to reveal some hidden content">
|
|
141
|
+
The hidden content
|
|
142
|
+
</Accordion>;
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### CSS tokens
|
|
146
|
+
|
|
147
|
+
Importing the library's styles also exposes Vesper's underlying css tokens for usage in your application.
|
|
148
|
+
|
|
149
|
+
For example, you could use them in a css file like so:
|
|
150
|
+
|
|
151
|
+
```css
|
|
152
|
+
color: var(--vesper-text-primary);
|
|
153
|
+
border: var(--vesper-stroke-base) solid var(--vesper-border-secondary);
|
|
154
|
+
background-color: var(--vesper-background-tertiary);
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
Or you can use them as inline styles in JSX:
|
|
158
|
+
|
|
159
|
+
```tsx
|
|
160
|
+
<div
|
|
161
|
+
style={{
|
|
162
|
+
color: "var(--vesper-text-primary)",
|
|
163
|
+
border: "var(--vesper-stroke-base) solid var(--vesper-border-secondary)",
|
|
164
|
+
backgroundColor: "var(--vesper-background-tertiary)",
|
|
165
|
+
}}
|
|
166
|
+
/>
|
|
167
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.vesper-accordion{padding:var(--vesper-spacing-3);border-radius:var(--vesper-radius-1)}.vesper-accordion:hover .vesper-accordion-trigger{color:var(--vesper-text-primary)}.vesper-accordion[data-open]{background:var(--vesper-state-neutral-hover)}.vesper-accordion[data-open] .vesper-accordion-trigger{color:var(--vesper-text-primary)}.vesper-accordion[data-open] .vesper-accordion-trigger-icon{transform:rotate(90deg)}.vesper-accordion-trigger{color:var(--vesper-text-secondary);cursor:pointer;z-index:2;justify-content:space-between;align-items:center;width:100%;padding:0;display:flex;position:relative}.vesper-accordion-trigger:before{inset:calc(var(--vesper-spacing-3) * -1);border-radius:var(--vesper-radius-1);content:"";position:absolute}.vesper-accordion-trigger:focus-visible{box-shadow:none;color:var(--vesper-text-primary);outline:none}.vesper-accordion-trigger:focus-visible:before{box-shadow:var(--vesper-shadow-focus-ring)}@media (forced-colors:active){.vesper-accordion-trigger:focus-visible:before{outline:var(--vesper-stroke-strong) solid CanvasText}}.vesper-accordion-trigger-icon{width:1rem;height:1rem;transition:transform var(--vesper-transition-duration-default) ease}.vesper-accordion-panel{z-index:1;will-change:opacity;position:relative;overflow:visible}.vesper-accordion-panel[data-open]{animation:vesper-accordion-open var(--vesper-transition-duration-default) ease}.vesper-accordion-panel[data-closed]{animation:vesper-accordion-close var(--vesper-transition-duration-default) ease}.vesper-accordion-children{padding-top:var(--vesper-spacing-2);color:var(--vesper-text-secondary);white-space:pre-line}@keyframes vesper-accordion-open{0%{opacity:0;height:0}to{height:var(--collapsible-panel-height);opacity:1}}@keyframes vesper-accordion-close{0%{height:var(--collapsible-panel-height);opacity:1}50%{opacity:0}to{opacity:0;height:0}}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ComponentProps } from "react";
|
|
2
|
+
export interface AccordionProps extends ComponentProps<"div"> {
|
|
3
|
+
/** Whether the accordion is open by default (uncontrolled mode). */
|
|
4
|
+
defaultOpen?: boolean;
|
|
5
|
+
/** Controls the open state of the accordion (controlled mode). */
|
|
6
|
+
open?: boolean;
|
|
7
|
+
/** Callback fired when the open state changes. Receives the new open state as an argument. */
|
|
8
|
+
onOpenChange?(open: boolean): void;
|
|
9
|
+
/** The title text displayed in the accordion trigger. */
|
|
10
|
+
title: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A collapsible content section with a trigger that toggles visibility of its children.
|
|
14
|
+
*
|
|
15
|
+
* @param {string} props.title - The title text displayed in the accordion trigger
|
|
16
|
+
* @param {boolean} [props.defaultOpen] - (optional) Whether the accordion is open by default (uncontrolled)
|
|
17
|
+
* @param {boolean} [props.open] - (optional) Controls the open state (controlled)
|
|
18
|
+
* @param {(open: boolean) => void} [props.onOpenChange] - (optional) Callback fired when the open state changes
|
|
19
|
+
*
|
|
20
|
+
* You may also pass any additional props to the underlying `div` element
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* <Accordion title="FAQ">
|
|
24
|
+
* <p>Answer to the question goes here.</p>
|
|
25
|
+
* </Accordion>
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* <Accordion title="Advanced" open={isOpen} onOpenChange={setIsOpen}>
|
|
29
|
+
* <p>Controlled accordion content.</p>
|
|
30
|
+
* </Accordion>
|
|
31
|
+
*/
|
|
32
|
+
export declare function Accordion(props: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/components/accordion/accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAQ5C,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC3D,oEAAoE;IACpE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kEAAkE;IAClE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,8FAA8F;IAC9F,YAAY,CAAC,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IACnC,yDAAyD;IACzD,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,2CAsC9C"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Collapsible } from "@base-ui/react/collapsible";
|
|
3
|
+
import { CaretRight } from "../icons/icons.js";
|
|
4
|
+
import { Typography } from "../typography/typography.js";
|
|
5
|
+
import { cn } from "../../utils/cn.js";
|
|
6
|
+
/**
|
|
7
|
+
* A collapsible content section with a trigger that toggles visibility of its children.
|
|
8
|
+
*
|
|
9
|
+
* @param {string} props.title - The title text displayed in the accordion trigger
|
|
10
|
+
* @param {boolean} [props.defaultOpen] - (optional) Whether the accordion is open by default (uncontrolled)
|
|
11
|
+
* @param {boolean} [props.open] - (optional) Controls the open state (controlled)
|
|
12
|
+
* @param {(open: boolean) => void} [props.onOpenChange] - (optional) Callback fired when the open state changes
|
|
13
|
+
*
|
|
14
|
+
* You may also pass any additional props to the underlying `div` element
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* <Accordion title="FAQ">
|
|
18
|
+
* <p>Answer to the question goes here.</p>
|
|
19
|
+
* </Accordion>
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* <Accordion title="Advanced" open={isOpen} onOpenChange={setIsOpen}>
|
|
23
|
+
* <p>Controlled accordion content.</p>
|
|
24
|
+
* </Accordion>
|
|
25
|
+
*/
|
|
26
|
+
export function Accordion(props) {
|
|
27
|
+
const { defaultOpen, open, onOpenChange, children, title, className, ...rest } = props;
|
|
28
|
+
return (_jsxs(Collapsible.Root, { defaultOpen: defaultOpen, open: open, onOpenChange: onOpenChange, className: cn("vesper-accordion", className), ...rest, children: [_jsxs(Typography, { as: Collapsible.Trigger, variant: "label-md-bold", className: "vesper-accordion-trigger", children: [_jsx("span", { children: title }), _jsx(CaretRight, { className: "vesper-accordion-trigger-icon" })] }), _jsx(Collapsible.Panel, { className: "vesper-accordion-panel", children: _jsx(Typography, { variant: "copy-sm", as: "div", className: "vesper-accordion-children", children: children }) })] }));
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=accordion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.js","sourceRoot":"","sources":["../../../src/components/accordion/accordion.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAEhE,OAAO,EAAE,EAAE,EAAE,MAAM,YAAY,CAAC;AAahC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,SAAS,CAAC,KAAqB;IAC7C,MAAM,EACJ,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,KAAK,EACL,SAAS,EACT,GAAG,IAAI,EACR,GAAG,KAAK,CAAC;IAEV,OAAO,CACL,MAAC,WAAW,CAAC,IAAI,IACf,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,EAAE,CAAC,kBAAkB,EAAE,SAAS,CAAC,KACxC,IAAI,aAER,MAAC,UAAU,IACT,EAAE,EAAE,WAAW,CAAC,OAAO,EACvB,OAAO,EAAC,eAAe,EACvB,SAAS,EAAC,0BAA0B,aAEpC,yBAAO,KAAK,GAAQ,EACpB,KAAC,UAAU,IAAC,SAAS,EAAC,+BAA+B,GAAG,IAC7C,EACb,KAAC,WAAW,CAAC,KAAK,IAAC,SAAS,EAAC,wBAAwB,YACnD,KAAC,UAAU,IACT,OAAO,EAAC,SAAS,EACjB,EAAE,EAAC,KAAK,EACR,SAAS,EAAC,2BAA2B,YAEpC,QAAQ,GACE,GACK,IACH,CACpB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.vesper-admonition{align-items:center;gap:var(--vesper-spacing-4);border-radius:var(--vesper-radius-2);display:flex}.vesper-admonition.vesper-admonition-subtle{background:var(--vesper-background-primary)}.vesper-admonition .vesper-button{align-self:flex-start}@media (forced-colors:active){.vesper-admonition:focus-visible{outline:var(--vesper-stroke-strong) solid CanvasText}}@media not (forced-colors:active){.vesper-admonition:focus-visible{box-shadow:var(--vesper-shadow-focus-ring)}}.vesper-admonition-content{align-items:flex-start;gap:var(--vesper-spacing-2);flex:1;display:flex}.vesper-admonition-sm{padding:var(--vesper-spacing-2) var(--vesper-spacing-3)}.vesper-admonition-sm:has(.vesper-button){padding-right:var(--vesper-spacing-2)}.vesper-admonition-md{padding:var(--vesper-spacing-3) var(--vesper-spacing-4)}.vesper-admonition-md:has(.vesper-button){padding-right:var(--vesper-spacing-3)}.vesper-admonition-icon{flex-shrink:0;align-items:center;width:1rem;height:1.25rem;display:flex}.vesper-admonition-icon svg{width:100%;height:auto}.vesper-admonition-info{background:var(--vesper-background-info-subtle);border:var(--vesper-stroke-base) solid var(--vesper-border-info-subtle);color:var(--vesper-text-info)}.vesper-admonition-success{background:var(--vesper-background-success-subtle);border:var(--vesper-stroke-base) solid var(--vesper-border-success-subtle);color:var(--vesper-text-success)}.vesper-admonition-warning{background:var(--vesper-background-warning-subtle);border:var(--vesper-stroke-base) solid var(--vesper-border-warning-subtle);color:var(--vesper-text-warning)}.vesper-admonition-danger{background:var(--vesper-background-error-subtle);border:var(--vesper-stroke-base) solid var(--vesper-border-error-subtle);color:var(--vesper-text-error)}.vesper-admonition-secondary{background:var(--vesper-tint-contrast-200);border:var(--vesper-stroke-base) solid var(--vesper-border-secondary);color:var(--vesper-text-primary)}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { ComponentProps, ElementType } from "react";
|
|
2
|
+
import { ButtonProps } from "../button/button.js";
|
|
3
|
+
export declare const ADMONITION_SIZES: readonly ["sm", "md"];
|
|
4
|
+
export declare const ADMONITION_VARIANTS: readonly ["info", "success", "warning", "danger", "secondary"];
|
|
5
|
+
export type AdmonitionSize = (typeof ADMONITION_SIZES)[number];
|
|
6
|
+
export type AdmonitionVariant = (typeof ADMONITION_VARIANTS)[number];
|
|
7
|
+
export interface AdmonitionProps<C extends ElementType = "button"> extends ComponentProps<"div"> {
|
|
8
|
+
/** The size of the admonition. Affects padding and typography. @default sm */
|
|
9
|
+
size?: AdmonitionSize;
|
|
10
|
+
/** The visual variant of the admonition, which determines its color scheme and icon. @default info */
|
|
11
|
+
variant?: AdmonitionVariant;
|
|
12
|
+
/** When `true`, renders the admonition with a more subdued, subtle appearance. @default false */
|
|
13
|
+
subtle?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Props passed to the optional call-to-action button rendered alongside the admonition content.
|
|
16
|
+
*
|
|
17
|
+
* The presence of this prop will render a small contrast-themed button to the right of the admonition content.
|
|
18
|
+
*/
|
|
19
|
+
cta?: Omit<ButtonProps<C>, "size" | "variant" | "as">;
|
|
20
|
+
/** Sets the `ElementType` the cta will render as. @default button */
|
|
21
|
+
ctaAs?: C;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* A callout component for displaying informational, success, warning, or error messages with an optional call-to-action button.
|
|
25
|
+
*
|
|
26
|
+
* @param {AdmonitionVariant} [props.variant] - (optional) The visual variant determining color and icon. @default info
|
|
27
|
+
* @param {AdmonitionSize} [props.size] - (optional) The size of the admonition. @default sm
|
|
28
|
+
* @param {boolean} [props.subtle] - (optional) Renders the admonition with a more subdued appearance
|
|
29
|
+
* @param {ButtonProps} [props.cta] - (optional) Props for an action button rendered alongside the content
|
|
30
|
+
* @param {React.ElementType} [props.ctaAs] - (optional) Element type to render for the cta. @default button
|
|
31
|
+
*
|
|
32
|
+
* You may also pass any additional props to the underlying `div` element
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* <Admonition variant="warning">
|
|
36
|
+
* Your session will expire in 5 minutes.
|
|
37
|
+
* </Admonition>
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* <Admonition
|
|
41
|
+
* variant="danger"
|
|
42
|
+
* size="md"
|
|
43
|
+
* cta={{ children: "Retry", onClick: handleRetry }}
|
|
44
|
+
* >
|
|
45
|
+
* Failed to save changes.
|
|
46
|
+
* </Admonition>
|
|
47
|
+
*/
|
|
48
|
+
export declare function Admonition<C extends ElementType = "button">(props: AdmonitionProps<C>): import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
//# sourceMappingURL=admonition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admonition.d.ts","sourceRoot":"","sources":["../../../src/components/admonition/admonition.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEzD,OAAO,EAAU,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAejE,eAAO,MAAM,gBAAgB,uBAAwB,CAAC;AAEtD,eAAO,MAAM,mBAAmB,gEAMtB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE,MAAM,WAAW,eAAe,CAC9B,CAAC,SAAS,WAAW,GAAG,QAAQ,CAChC,SAAQ,cAAc,CAAC,KAAK,CAAC;IAC7B,8EAA8E;IAC9E,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,sGAAsG;IACtG,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,iGAAiG;IACjG,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,GAAG,CAAC,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC,CAAC;IACtD,qEAAqE;IACrE,KAAK,CAAC,EAAE,CAAC,CAAC;CACX;AASD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,WAAW,GAAG,QAAQ,EACzD,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,2CA8C1B"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from "../button/button.js";
|
|
3
|
+
import { ErrorSolid, Info, InfoSolid, SuccessSolid, WarningSolid, } from "../icons/icons.js";
|
|
4
|
+
import { Typography, } from "../typography/typography.js";
|
|
5
|
+
import { cn } from "../../utils/cn.js";
|
|
6
|
+
export const ADMONITION_SIZES = ["sm", "md"];
|
|
7
|
+
export const ADMONITION_VARIANTS = [
|
|
8
|
+
"info",
|
|
9
|
+
"success",
|
|
10
|
+
"warning",
|
|
11
|
+
"danger",
|
|
12
|
+
"secondary",
|
|
13
|
+
];
|
|
14
|
+
const ADMONITION_TYPOGRAPHY_VARIANTS = {
|
|
15
|
+
md: "copy-sm",
|
|
16
|
+
sm: "copy-xs",
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* A callout component for displaying informational, success, warning, or error messages with an optional call-to-action button.
|
|
20
|
+
*
|
|
21
|
+
* @param {AdmonitionVariant} [props.variant] - (optional) The visual variant determining color and icon. @default info
|
|
22
|
+
* @param {AdmonitionSize} [props.size] - (optional) The size of the admonition. @default sm
|
|
23
|
+
* @param {boolean} [props.subtle] - (optional) Renders the admonition with a more subdued appearance
|
|
24
|
+
* @param {ButtonProps} [props.cta] - (optional) Props for an action button rendered alongside the content
|
|
25
|
+
* @param {React.ElementType} [props.ctaAs] - (optional) Element type to render for the cta. @default button
|
|
26
|
+
*
|
|
27
|
+
* You may also pass any additional props to the underlying `div` element
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* <Admonition variant="warning">
|
|
31
|
+
* Your session will expire in 5 minutes.
|
|
32
|
+
* </Admonition>
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* <Admonition
|
|
36
|
+
* variant="danger"
|
|
37
|
+
* size="md"
|
|
38
|
+
* cta={{ children: "Retry", onClick: handleRetry }}
|
|
39
|
+
* >
|
|
40
|
+
* Failed to save changes.
|
|
41
|
+
* </Admonition>
|
|
42
|
+
*/
|
|
43
|
+
export function Admonition(props) {
|
|
44
|
+
const { className, size = "sm", variant = "info", ctaAs = "button", cta, children, subtle, ...rest } = props;
|
|
45
|
+
return (_jsxs("div", { className: cn("vesper-admonition", `vesper-admonition-${size}`, `vesper-admonition-${variant}`, subtle && "vesper-admonition-subtle", className), ...rest, children: [_jsxs("div", { className: "vesper-admonition-content", children: [_jsxs("span", { className: "vesper-admonition-icon", children: [variant === "danger" && _jsx(ErrorSolid, {}), variant === "info" && _jsx(InfoSolid, {}), variant === "secondary" && _jsx(Info, {}), variant === "success" && _jsx(SuccessSolid, {}), variant === "warning" && _jsx(WarningSolid, {})] }), _jsx(Typography, { as: "div", variant: ADMONITION_TYPOGRAPHY_VARIANTS[size], children: children })] }), cta && (_jsx(Button, { type: "button", ...cta, as: ctaAs, variant: "contrast", size: "sm" }))] }));
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=admonition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admonition.js","sourceRoot":"","sources":["../../../src/components/admonition/admonition.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAe,MAAM,4BAA4B,CAAC;AACjE,OAAO,EACL,UAAU,EACV,IAAI,EACJ,SAAS,EACT,YAAY,EACZ,YAAY,GACb,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,UAAU,GAEX,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,EAAE,EAAE,MAAM,YAAY,CAAC;AAEhC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,IAAI,EAAE,IAAI,CAAU,CAAC;AAEtD,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,MAAM;IACN,SAAS;IACT,SAAS;IACT,QAAQ;IACR,WAAW;CACH,CAAC;AAyBX,MAAM,8BAA8B,GAEhC;IACF,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;CACd,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,UAAU,CACxB,KAAyB;IAEzB,MAAM,EACJ,SAAS,EACT,IAAI,GAAG,IAAI,EACX,OAAO,GAAG,MAAM,EAChB,KAAK,GAAG,QAAQ,EAChB,GAAG,EACH,QAAQ,EACR,MAAM,EACN,GAAG,IAAI,EACR,GAAG,KAAK,CAAC;IACV,OAAO,CACL,eACE,SAAS,EAAE,EAAE,CACX,mBAAmB,EACnB,qBAAqB,IAAI,EAAE,EAC3B,qBAAqB,OAAO,EAAE,EAC9B,MAAM,IAAI,0BAA0B,EACpC,SAAS,CACV,KACG,IAAI,aAER,eAAK,SAAS,EAAC,2BAA2B,aACxC,gBAAM,SAAS,EAAC,wBAAwB,aACrC,OAAO,KAAK,QAAQ,IAAI,KAAC,UAAU,KAAG,EACtC,OAAO,KAAK,MAAM,IAAI,KAAC,SAAS,KAAG,EACnC,OAAO,KAAK,WAAW,IAAI,KAAC,IAAI,KAAG,EACnC,OAAO,KAAK,SAAS,IAAI,KAAC,YAAY,KAAG,EACzC,OAAO,KAAK,SAAS,IAAI,KAAC,YAAY,KAAG,IACrC,EACP,KAAC,UAAU,IAAC,EAAE,EAAC,KAAK,EAAC,OAAO,EAAE,8BAA8B,CAAC,IAAI,CAAC,YAC/D,QAAQ,GACE,IACT,EACL,GAAG,IAAI,CACN,KAAC,MAAM,IACL,IAAI,EAAC,QAAQ,KACR,GAAsB,EAC3B,EAAE,EAAE,KAAK,EACT,OAAO,EAAC,UAAU,EAClB,IAAI,EAAC,IAAI,GACT,CACH,IACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.vesper-avatar{border:var(--vesper-stroke-base) solid var(--vesper-border-inverse-strong);background:var(--vesper-stone-400);border-radius:50%;overflow:hidden}@media (forced-colors:active){.vesper-avatar:focus-visible{outline:var(--vesper-stroke-strong) solid CanvasText}}@media not (forced-colors:active){.vesper-avatar:focus-visible{box-shadow:var(--vesper-shadow-focus-ring)}}.vesper-avatar-sm{width:1.5rem;height:1.5rem}.vesper-avatar-md{width:2rem;height:2rem}.vesper-avatar-lg{width:3rem;height:3rem}.vesper-avatar-image{object-fit:cover;width:100%;height:100%}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ElementType } from "react";
|
|
2
|
+
import type { Polymorphic } from "../../utils/polymorphic.js";
|
|
3
|
+
export declare const AVATAR_SIZES: readonly ["sm", "md", "lg"];
|
|
4
|
+
export type AvatarSize = (typeof AVATAR_SIZES)[number];
|
|
5
|
+
export type AvatarProps<E extends ElementType = "div"> = Polymorphic<{
|
|
6
|
+
/** The size of the avatar. @default md */
|
|
7
|
+
size?: AvatarSize;
|
|
8
|
+
/** The image source URL for the avatar. When not provided, the avatar renders as an empty placeholder. */
|
|
9
|
+
src?: string;
|
|
10
|
+
/** The alt text for the avatar image. */
|
|
11
|
+
alt?: string;
|
|
12
|
+
}, E, "children">;
|
|
13
|
+
/**
|
|
14
|
+
* A polymorphic avatar component that displays a user image or an empty placeholder.
|
|
15
|
+
*
|
|
16
|
+
* @param {AvatarSize} [props.size] - (optional) The size of the avatar. @default md
|
|
17
|
+
* @param {string} [props.src] - (optional) The image source URL for the avatar.
|
|
18
|
+
* @param {string} [props.alt] - (optional) The alt text for the avatar image.
|
|
19
|
+
* @param {React.ElementType} [props.as] - (optional) Element type to render. @default div
|
|
20
|
+
*
|
|
21
|
+
* You may also pass any additional props to the underlying element
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* <Avatar src="/profile.png" alt="Jane Doe" />
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* <Avatar size="lg" as="a" href="/profile/jane-doe" />
|
|
28
|
+
*/
|
|
29
|
+
export declare function Avatar<E extends ElementType = "div">(props: AvatarProps<E>): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,YAAY,6BAA8B,CAAC;AAExD,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,IAAI,WAAW,CAClE;IACE,0CAA0C;IAC1C,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,0GAA0G;IAC1G,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,yCAAyC;IACzC,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,EACD,CAAC,EACD,UAAU,CACX,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,2CAiB1E"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../utils/cn.js";
|
|
3
|
+
export const AVATAR_SIZES = ["sm", "md", "lg"];
|
|
4
|
+
/**
|
|
5
|
+
* A polymorphic avatar component that displays a user image or an empty placeholder.
|
|
6
|
+
*
|
|
7
|
+
* @param {AvatarSize} [props.size] - (optional) The size of the avatar. @default md
|
|
8
|
+
* @param {string} [props.src] - (optional) The image source URL for the avatar.
|
|
9
|
+
* @param {string} [props.alt] - (optional) The alt text for the avatar image.
|
|
10
|
+
* @param {React.ElementType} [props.as] - (optional) Element type to render. @default div
|
|
11
|
+
*
|
|
12
|
+
* You may also pass any additional props to the underlying element
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* <Avatar src="/profile.png" alt="Jane Doe" />
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* <Avatar size="lg" as="a" href="/profile/jane-doe" />
|
|
19
|
+
*/
|
|
20
|
+
export function Avatar(props) {
|
|
21
|
+
const { as: Component = "div", size = "md", className, src, alt = "", ...rest } = props;
|
|
22
|
+
return (_jsx(Component, { className: cn("vesper-avatar", `vesper-avatar-${size}`, className), ...rest, children: src && _jsx("img", { className: "vesper-avatar-image", src: src, alt: alt }) }));
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=avatar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.js","sourceRoot":"","sources":["../../../src/components/avatar/avatar.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,EAAE,EAAE,MAAM,YAAY,CAAC;AAGhC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AAiBxD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,MAAM,CAAgC,KAAqB;IACzE,MAAM,EACJ,EAAE,EAAE,SAAS,GAAG,KAAK,EACrB,IAAI,GAAG,IAAI,EACX,SAAS,EACT,GAAG,EACH,GAAG,GAAG,EAAE,EACR,GAAG,IAAI,EACR,GAAG,KAAK,CAAC;IACV,OAAO,CACL,KAAC,SAAS,IACR,SAAS,EAAE,EAAE,CAAC,eAAe,EAAE,iBAAiB,IAAI,EAAE,EAAE,SAAS,CAAC,KAC9D,IAAI,YAEP,GAAG,IAAI,cAAK,SAAS,EAAC,qBAAqB,EAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,GAAI,GACzD,CACb,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.vesper-avatar-group{border-radius:2rem;display:flex}@media (forced-colors:active){.vesper-avatar-group:focus-visible{outline:var(--vesper-stroke-strong) solid CanvasText}}@media not (forced-colors:active){.vesper-avatar-group:focus-visible{box-shadow:var(--vesper-shadow-focus-ring)}}.vesper-avatar-group .vesper-avatar:not(:first-child){margin-left:-.375rem}.vesper-avatar-group .vesper-avatar-md:not(:first-child){margin-left:-.625rem}.vesper-avatar-group .vesper-avatar-lg:not(:first-child){margin-left:-.875rem}.vesper-avatar-group .vesper-avatar-group-overflow{color:var(--vesper-text-inverse-primary);background:var(--vesper-background-inverse-primary);font-family:var(--vesper-font-sans);font-weight:400;line-height:var(--vesper-leading-none);letter-spacing:var(--vesper-tracking-normal);justify-content:center;align-items:center;display:flex}.vesper-avatar-group .vesper-avatar-sm.vesper-avatar-group-overflow{font-size:.5rem}.vesper-avatar-group .vesper-avatar-md.vesper-avatar-group-overflow{font-size:.5rem}.vesper-avatar-group .vesper-avatar-lg.vesper-avatar-group-overflow{font-size:.75rem}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ElementType } from "react";
|
|
2
|
+
import { type AvatarSize } from "../avatar/avatar.js";
|
|
3
|
+
import type { Polymorphic } from "../../utils/polymorphic.js";
|
|
4
|
+
export type AvatarGroupProps<E extends ElementType = "div"> = Polymorphic<{
|
|
5
|
+
/** The size applied to all avatars in the group. @default md */
|
|
6
|
+
size?: AvatarSize;
|
|
7
|
+
/** The list of avatars to display. A maximum of 3 avatars are shown, with an overflow indicator for additional items. */
|
|
8
|
+
avatars: {
|
|
9
|
+
src: string | undefined;
|
|
10
|
+
alt?: string;
|
|
11
|
+
}[];
|
|
12
|
+
}, E, "children">;
|
|
13
|
+
/**
|
|
14
|
+
* A polymorphic component that displays a row of avatars with an overflow indicator for groups larger than three.
|
|
15
|
+
*
|
|
16
|
+
* @param {AvatarGroupProps["avatars"]} props.avatars - The list of avatars to display (max 3 shown, with overflow count)
|
|
17
|
+
* @param {AvatarSize} [props.size] - (optional) The size applied to all avatars. @default md
|
|
18
|
+
* @param {React.ElementType} [props.as] - (optional) Element type to render. @default div
|
|
19
|
+
*
|
|
20
|
+
* You may also pass any additional props to the underlying element
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* <AvatarGroup
|
|
24
|
+
* avatars={[
|
|
25
|
+
* { src: "/avatar1.png", alt: "Alice" },
|
|
26
|
+
* { src: "/avatar2.png", alt: "Bob" },
|
|
27
|
+
* { src: "/avatar3.png", alt: "Charlie" },
|
|
28
|
+
* { src: "/avatar4.png", alt: "Dana" },
|
|
29
|
+
* ]}
|
|
30
|
+
* />
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* <AvatarGroup size="lg" avatars={teamMembers} />
|
|
34
|
+
*/
|
|
35
|
+
export declare function AvatarGroup<E extends ElementType = "div">(props: AvatarGroupProps<E>): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
//# sourceMappingURL=avatar-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar-group.d.ts","sourceRoot":"","sources":["../../../src/components/avatar-group/avatar-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAU,KAAK,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAGrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,IAAI,WAAW,CACvE;IACE,gEAAgE;IAChE,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,yHAAyH;IACzH,OAAO,EAAE;QAAE,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACtD,EACD,CAAC,EACD,UAAU,CACX,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,EACvD,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,2CAwB3B"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Avatar } from "../avatar/avatar.js";
|
|
3
|
+
import { cn } from "../../utils/cn.js";
|
|
4
|
+
/**
|
|
5
|
+
* A polymorphic component that displays a row of avatars with an overflow indicator for groups larger than three.
|
|
6
|
+
*
|
|
7
|
+
* @param {AvatarGroupProps["avatars"]} props.avatars - The list of avatars to display (max 3 shown, with overflow count)
|
|
8
|
+
* @param {AvatarSize} [props.size] - (optional) The size applied to all avatars. @default md
|
|
9
|
+
* @param {React.ElementType} [props.as] - (optional) Element type to render. @default div
|
|
10
|
+
*
|
|
11
|
+
* You may also pass any additional props to the underlying element
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* <AvatarGroup
|
|
15
|
+
* avatars={[
|
|
16
|
+
* { src: "/avatar1.png", alt: "Alice" },
|
|
17
|
+
* { src: "/avatar2.png", alt: "Bob" },
|
|
18
|
+
* { src: "/avatar3.png", alt: "Charlie" },
|
|
19
|
+
* { src: "/avatar4.png", alt: "Dana" },
|
|
20
|
+
* ]}
|
|
21
|
+
* />
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* <AvatarGroup size="lg" avatars={teamMembers} />
|
|
25
|
+
*/
|
|
26
|
+
export function AvatarGroup(props) {
|
|
27
|
+
const { as: Component = "div", size = "md", avatars, className, ...rest } = props;
|
|
28
|
+
return (_jsxs(Component, { className: cn("vesper-avatar-group", className), ...rest, children: [avatars.slice(0, 3).map(({ src, alt }, index) => (_jsx(Avatar, { size: size, src: src, alt: alt }, index))), avatars.length > 3 && (_jsx("div", { className: `vesper-avatar-group-overflow vesper-avatar vesper-avatar-${size}`, children: avatars.length <= 100 ? `+${avatars.length - 3}` : "99+" }))] }));
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=avatar-group.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar-group.js","sourceRoot":"","sources":["../../../src/components/avatar-group/avatar-group.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAmB,MAAM,4BAA4B,CAAC;AAErE,OAAO,EAAE,EAAE,EAAE,MAAM,YAAY,CAAC;AAchC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,WAAW,CACzB,KAA0B;IAE1B,MAAM,EACJ,EAAE,EAAE,SAAS,GAAG,KAAK,EACrB,IAAI,GAAG,IAAI,EACX,OAAO,EACP,SAAS,EACT,GAAG,IAAI,EACR,GAAG,KAAK,CAAC;IAEV,OAAO,CACL,MAAC,SAAS,IAAC,SAAS,EAAE,EAAE,CAAC,qBAAqB,EAAE,SAAS,CAAC,KAAM,IAAI,aACjE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE,CAAC,CAChD,KAAC,MAAM,IAAa,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAArC,KAAK,CAAoC,CACvD,CAAC,EACD,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,CACrB,cACE,SAAS,EAAE,4DAA4D,IAAI,EAAE,YAE5E,OAAO,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,GACrD,CACP,IACS,CACb,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.vesper-badge{border-radius:var(--vesper-radius-4);align-items:center;width:fit-content;display:inline-flex}@media (forced-colors:active){.vesper-badge{border:var(--vesper-stroke-base) solid CanvasText}.vesper-badge:focus-visible{outline:var(--vesper-stroke-strong) solid CanvasText}}@media not (forced-colors:active){.vesper-badge:focus-visible{box-shadow:var(--vesper-shadow-focus-ring)}}.vesper-badge-icon{display:flex}.vesper-badge-sm{height:1.25rem;padding:0 var(--vesper-spacing-1)}.vesper-badge-sm .vesper-badge-icon{width:.75rem;height:.75rem}.vesper-badge-md{height:1.5rem;padding:0 var(--vesper-spacing-2)}.vesper-badge-md .vesper-badge-icon{width:.875rem;height:.875rem}.vesper-badge-lg{height:1.75rem;padding:0 var(--vesper-spacing-2)}.vesper-badge-lg .vesper-badge-icon{width:.875rem;height:.875rem}.vesper-badge-text{padding:0 var(--vesper-spacing-1)}@media not (forced-colors:active){.vesper-badge-contrast{background:var(--vesper-background-inverse-primary);color:var(--vesper-text-inverse-primary)}}@media (forced-colors:active){.vesper-badge-contrast{color:canvas;forced-color-adjust:none;background:canvastext}.vesper-badge-contrast:focus-visible{outline-offset:var(--vesper-spacing-micro);outline-width:var(--vesper-stroke-base)}}.vesper-badge-contrast-subtle{background:var(--vesper-tint-neutral-300);color:var(--vesper-text-primary)}.vesper-badge-accent{background:var(--vesper-background-accent-base);color:var(--vesper-text-primary)}.vesper-badge-accent-subtle{background:var(--vesper-background-accent-subtle);color:var(--vesper-text-accent)}.vesper-badge-success{background:var(--vesper-background-success-base);color:var(--vesper-text-inverse-primary)}.vesper-badge-success-subtle{background:var(--vesper-background-success-subtle);color:var(--vesper-text-success)}.vesper-badge-warning{background:var(--vesper-background-warning-base);color:var(--vesper-text-primary)}.vesper-badge-warning-subtle{background:var(--vesper-background-warning-subtle);color:var(--vesper-text-warning)}.vesper-badge-danger{background:var(--vesper-background-error-base);color:var(--vesper-text-inverse-primary)}.vesper-badge-danger-subtle{background:var(--vesper-background-error-subtle);color:var(--vesper-text-error)}.vesper-badge-info{background:var(--vesper-background-info-base);color:var(--vesper-text-inverse-primary)}.vesper-badge-info-subtle{background:var(--vesper-background-info-subtle);color:var(--vesper-text-info)}.vesper-badge-purple{background:var(--vesper-background-brand-purple-base);color:var(--vesper-text-inverse-primary)}.vesper-badge-purple-subtle{background:var(--vesper-background-brand-purple-subtle);color:var(--vesper-text-brand-purple)}.vesper-badge-mint{background:var(--vesper-background-brand-mint-base);color:var(--vesper-text-inverse-primary)}.vesper-badge-mint-subtle{background:var(--vesper-background-brand-mint-subtle);color:var(--vesper-text-brand-mint)}.vesper-badge-pink{background:var(--vesper-background-brand-pink-base);color:var(--vesper-text-inverse-primary)}.vesper-badge-pink-subtle{background:var(--vesper-background-brand-pink-subtle);color:var(--vesper-text-brand-pink)}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { ElementType, ReactNode } from "react";
|
|
2
|
+
import type { Polymorphic } from "../../utils/polymorphic.js";
|
|
3
|
+
export declare const BADGE_SIZES: readonly ["sm", "md", "lg"];
|
|
4
|
+
export declare const BADGE_VARIANTS: readonly ["accent", "success", "warning", "danger", "info", "purple", "pink", "mint", "contrast"];
|
|
5
|
+
export type BadgeSize = (typeof BADGE_SIZES)[number];
|
|
6
|
+
export type BadgeVariant = (typeof BADGE_VARIANTS)[number];
|
|
7
|
+
export type BadgeProps<E extends ElementType = "div"> = Polymorphic<{
|
|
8
|
+
/** The size of the badge. Affects padding and typography. @default md */
|
|
9
|
+
size?: BadgeSize;
|
|
10
|
+
/** The color variant of the badge. @default accent */
|
|
11
|
+
variant?: BadgeVariant;
|
|
12
|
+
/** When true, renders the badge with a more subdued, subtle appearance. @default false */
|
|
13
|
+
subtle?: boolean;
|
|
14
|
+
/** An optional icon element rendered to the left of the badge text. */
|
|
15
|
+
icon?: ReactNode;
|
|
16
|
+
}, E>;
|
|
17
|
+
/**
|
|
18
|
+
* A polymorphic badge component for describing the content it sits next to (e.g. plan tier, environment, role) with color variants and optional icons.
|
|
19
|
+
*
|
|
20
|
+
* Unlike `Tag` (which categorizes content) and `Chip` (which displays on/off states), `Badges` provide contextual metadata about adjacent content.
|
|
21
|
+
*
|
|
22
|
+
* @see packages/vesper/src/components/chip/chip.tsx
|
|
23
|
+
* @see packages/vesper/src/components/tag/tag.tsx
|
|
24
|
+
*
|
|
25
|
+
* @param {BadgeSize} [props.size] - (optional) The size of the badge. @default md
|
|
26
|
+
* @param {BadgeVariant} [props.variant] - (optional) The color variant of the badge. @default accent
|
|
27
|
+
* @param {boolean} [props.subtle] - (optional) Renders the badge with a more subdued appearance. @default false
|
|
28
|
+
* @param {ReactNode} [props.icon] - (optional) An icon element rendered to the left of the badge text
|
|
29
|
+
* @param {React.ElementType} [props.as] - (optional) Element type to render. @default div
|
|
30
|
+
*
|
|
31
|
+
* You may also pass any additional props to the underlying element
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* <Badge variant="success">Active</Badge>
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* <Badge size="sm" variant="danger" icon={<ErrorSolid />} subtle>
|
|
38
|
+
* 3 errors
|
|
39
|
+
* </Badge>
|
|
40
|
+
*/
|
|
41
|
+
export declare function Badge<E extends ElementType = "div">(props: BadgeProps<E>): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/badge/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,eAAO,MAAM,WAAW,6BAA8B,CAAC;AAEvD,eAAO,MAAM,cAAc,mGAUjB,CAAC;AAEX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3D,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,IAAI,WAAW,CACjE;IACE,yEAAyE;IACzE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,sDAAsD;IACtD,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,0FAA0F;IAC1F,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,uEAAuE;IACvE,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,EACD,CAAC,CACF,CAAC;AAQF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,2CAgCxE"}
|